SafeDICE: Offline Safe Imitation Learning with Non-Preferred Demonstrations