Near-horizon states of black holes and Calogero models