I think the Army has emerged as the comprehensive and legitimate winner of this Pakistani imbroglio.
Democracy has been defanged until the next election but at the same time the fiction of it’s legitimacy has been maintained.
Compared to the results of the Arab spring (Egypt, Libya, Syria); a stable military is very good for unsteady democracies. Kudos to GHQ for steering an optimal outcome for all parties concerned.