Offline Goal-conditioned Reinforcement Learning with Quasimetric Representations