From what you have said, your friend is suffering from an extreme form of obsessive-compulsive disorder with other very serious symptoms of depression and a condition called borderline.
The reason that this continues to get worse is because all of the symptoms are meant to keep her away from her own personal "truths" and the realities of her life, and her life choices. Therefore, when her healthy thinking mind feels and thinks about these things, the symptoms become more necessary, and more intense. It is a vicious cycle.
The only thing you can do for your friend is to get her in the hands of an experienced psychiatrist.
Hopes this helps.