How does an Air Conditioner Work?

If you’ve ever wondered how it works: