!function(){function e(e,t){var n,e=document.querySelector(e),r=document.querySelector(t);function a(e){for(var t=e.parentNode;!t.classList.contains("menu");)t.classList.contains("menu-item-has-children")&&t.classList.toggle("focus"),t=t.parentNode}null!==r&&(null!==(n=e.querySelector(".menu-toggle"))&&(n.setAttribute("aria-expanded","false"),n.addEventListener("click",function(){r.classList.toggle("toggled-on"),n.setAttribute("aria-expanded",r.classList.contains("toggled-on"))})),r.querySelectorAll(".menu-item-has-children > a, .page_item_has_children > a").forEach(function(e){e.after(function(){var e=document.createElement("button");e.classList.add("dropdown-toggle"),e.setAttribute("aria-expanded","false");var t=(new DOMParser).parseFromString(harrisonScreenReaderText.icon,"text/html").body.firstElementChild;return e.appendChild(t),(t=document.createElement("span")).classList.add("screen-reader-text"),t.textContent=harrisonScreenReaderText.expand,e.appendChild(t),e.cloneNode(!0)}())}),r.querySelectorAll(".current-menu-ancestor > button").forEach(function(e){e.classList.add("toggled-on"),e.setAttribute("aria-expanded","true"),e.querySelector(".screen-reader-text").textContent=harrisonScreenReaderText.collapse}),r.querySelectorAll(".current-menu-ancestor > .sub-menu").forEach(function(e){e.classList.add("toggled-on")}),r.querySelectorAll(".dropdown-toggle").forEach(function(e){e.addEventListener("click",function(){e.classList.toggle("toggled-on"),e.setAttribute("aria-expanded",e.classList.contains("toggled-on")),e.querySelector(".screen-reader-text").textContent=e.classList.contains("toggled-on")?harrisonScreenReaderText.collapse:harrisonScreenReaderText.expand,e.nextElementSibling.classList.toggle("toggled-on")})}),r.querySelectorAll(".menu-item-has-children a, .page_item_has_children a").forEach(function(e){e.addEventListener("focus",function(){a(e)}),e.addEventListener("blur",function(){a(e)})}))}document.addEventListener("DOMContentLoaded",function(){e(".header-main",".main-navigation"),e(".header-bar",".top-navigation")})}();