Suppression and Enhancement of Thermal Chemical Rates in a Cavity.