I don't mean to be rude or offensive. I am very sorry to hear for your dying loss.
However, if she is suffering that bad the right choice would be to unplug any machine aids and let her go. I know this sounds overly extreme, but would you rather watch her suffer or rest in peace?
I am not saying do this, since it's only a suggestion.