Ortho-to-para ratio of interstellar heavy water