The future of Puerto Rico’s electric grid hinges on a lot of moving parts: the utility’s long-term plan, a debt restructuring agreement, the search for replacement generation and access to federal emergency funding.