1document.addEventListener("DOMContentLoaded",(function(){const e=document.querySelector(".menu-container");if(!e)return;const t=e.querySelector("#site-header-menu");document.querySelectorAll(".menu-item-has-children > a").forEach((function(e){const t=e.textContent,n=document.createElement("button");n.className="dropdown-toggle",n.setAttribute("aria-expanded","false"),n.setAttribute("aria-label",t+" submenu"),"#"===e.getAttribute("href")&&(n.innerHTML=e.innerHTML,e.style.display="none",n.classList.add("dropdown-toggle--no-link")),e.insertAdjacentElement("afterend",n)})),t.querySelectorAll(".dropdown-toggle").forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault(),e.stopPropagation(),this.classList.toggle("toggled-on");const t=this.nextElementSibling;t&&t.classList.contains("sub-menu")&&t.classList.toggle("toggled-on");const n="false"===this.getAttribute("aria-expanded")?"true":"false";this.setAttribute("aria-expanded",n);const o=this.closest("li");o&&o.classList.toggle("dropdown-active"),Array.from(this.parentElement.parentElement.children).map((e=>e.querySelector(".dropdown-toggle"))).filter((e=>null!==e&&e!==this)).forEach((e=>{e.classList.remove("toggled-on");const t=e.nextElementSibling;t&&t.classList.contains("sub-menu")&&t.classList.remove("toggled-on"),e.setAttribute("aria-expanded","false");const n=e.closest("li");n&&n.classList.remove("dropdown-active")}))}))})),document.querySelectorAll(".sub-menu .menu-item-has-children").forEach((function(e){e.parentElement.classList.add("has-sub-menu")})),document.querySelectorAll(".menu-item a, button.dropdown-toggle").forEach((function(e){e.addEventListener("keydown",(function(e){const t=e.keyCode;if([27,37,38,39,40].includes(t))switch(t){case 27:e.preventDefault(),e.stopPropagation();const t=this.closest("ul").previousElementSibling;t&&t.classList.contains("dropdown-toggle")&&t.classList.contains("toggled-on")&&(t.focus(),t.click());break;case 37:if(e.preventDefault(),this.classList.contains("dropdown-toggle"))this.previousElementSibling.focus();else{const e=this.parentElement.previousElementSibling;e&&e.querySelector("button.dropdown-toggle")?e.querySelector("button.dropdown-toggle").focus():e&&e.querySelector("a")&&e.querySelector("a").focus()}break;case 39:if(e.preventDefault(),this.nextElementSibling&&this.nextElementSibling.matches("button.dropdown-toggle"))this.nextElementSibling.focus();else{const e=this.parentElement.nextElementSibling;e&&e.querySelector("a").focus()}this.matches("ul.sub-menu .dropdown-toggle.toggled-on")&&this.parentElement.querySelector("ul.sub-menu li:first-child a").focus();break;case 40:if(e.preventDefault(),this.nextElementSibling){const e=this.nextElementSibling.querySelector("li:first-child a");e&&e.focus()}else{const e=this.parentElement.nextElementSibling;e&&e.querySelector("a").focus()}break;case 38:e.preventDefault();const n=this.parentElement.previousElementSibling;if(n)n.querySelector("a").focus();else{const e=this.closest("ul");e&&e.previousElementSibling.matches(".dropdown-toggle.toggled-on")&&e.previousElementSibling.focus()}}}))}))})),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector(".dropbtn");if(!e)return;const t=document.querySelector(".header-toolbar-container-account-user-dropdown-account-dropdown");e.addEventListener("click",(function(){const e=t.classList.contains("show");t.classList.toggle("show"),this.setAttribute("aria-expanded",e?"false":"true")})),window.addEventListener("click",(function(n){n.target.matches(".dropbtn, .dropbtn *")||t.classList.contains("show")&&(t.classList.remove("show"),e.setAttribute("aria-expanded","false"))})),window.addEventListener("keyup",(function(n){"Escape"!==n.key&&27!==n.keyCode||t.classList.contains("show")&&(t.classList.remove("show"),e.setAttribute("aria-expanded","false"),e.focus())})),jQuery(".header-toolbar-container-account-user-dropdown-account-dropdown li:last-child a").on("keydown",(function(e){"Tab"!==e.key||e.shiftKey||(e.preventDefault(),jQuery(".dropbtn").focus())}));const n=document.querySelector(".current_page_item, .current-menu-parent");
1if(n){const e=n.querySelector(".dropdown-toggle");if(e)e.click();else{const t=n.closest(".menu-item-has-children");t&&t.querySelector(".dropdown-toggle")&&e.click()}}})),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector(".header-toolbar-container-mobile-nav-button");if(!e)return;const t=document.querySelector(".site-header"),n=document.querySelector(".site-title a");e.addEventListener("click",(function(){const e=t.classList.contains("show");t.classList.toggle("show"),this.setAttribute("aria-expanded",e?"false":"true"),n.focus()})),window.addEventListener("click",(function(n){n.target.matches(".header-toolbar-container-mobile-nav-button, .header-toolbar-container-mobile-nav-button *")||t.classList.contains("show")&&(t.classList.remove("show"),e.setAttribute("aria-expanded","false"))})),document.addEventListener("keyup",(e=>{o(e)})),document.addEventListener("keydown",(e=>{o(e)}));const o=e=>{"Escape"!==e.key&&"Esc"!==e.key||e.target.ownerDocument.activeElement.closest(".site-header-main-nav")&&(document.querySelector(".title-area-mobile-close").click(),document.querySelector(".header-toolbar-container-mobile-nav-button").focus())};window.matchMedia("(max-width: 768px)").matches&&(jQuery(".main-navigation li:last-child a").on("keydown",(function(e){"Tab"!==e.key||e.shiftKey||(e.preventDefault(),jQuery(".site-title a").focus())})),jQuery(".site-title a").on("keydown",(function(e){"Tab"===e.key&&e.shiftKey&&e.preventDefault()})))})); 2//# sourceMappingURL=menu.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.