Even before the helicopter crash that killed Raisi, the regime had been consumed with internal political and religious struggles as the supreme leader, Ayatollah Ali Khamenei, 85, the longest-serving head of state in the Middle East, is in declining health.