!function(){function e(){const e=document.getElementById("masthead");if(e){const t=e.getElementsByClassName("submenu-expand");if(0<t.length)for(let e=0;e<t.length;e++){const n=t[e].getAttribute("data-toggle-parent-id"),s=t[e].nextElementSibling,i=n.replace("toggle-","submenu-");s.setAttribute("id",i),t[e].setAttribute("aria-controls",i)}}}if(newspackScreenReaderText.is_amp){const t=document.getElementById("site-navigation"),n=document.getElementById("secondary-nav-contain"),s={childList:!0},i=new MutationObserver((t=>{for(const n of t)"childList"===n.type&&(e(),i.disconnect())}));t&&i.observe(t,s),n&&i.observe(n,s)}else e()}();