As the US–Israel war on Iran enters its fourth week, Pakistan is rapidly positioning itself as a central diplomatic player.