!function(e,t){var n=function(){e.pageYOffset>0?t.body.classList.add("scrolled"):t.body.classList.remove("scrolled")};e.addEventListener("scroll",n,!1),e.addEventListener("DOMContentLoaded",n,!1);var a=t.getElementsByTagName("header");if(xt9Opt.header_scrool&&a.length>0){var o=a[0].offsetHeight,i=!1,r=!1,d=function(){var n=a[0].nextElementSibling;!r&&e.pageYOffset>o?(t.body.classList.add("header-fixed-active"),xt9Opt.add_header_offset_margin&&n&&(n.style.marginTop=o+"px")):(t.body.classList.remove("header-fixed-active"),xt9Opt.add_header_offset_margin&&n&&(n.style.marginTop=null))},s=function(n){t.body.classList.remove("header-fixed-active"),e.removeEventListener("scroll",d),!1!==i&&clearTimeout(i),r=!0,i=setTimeout(function(){e.addEventListener("scroll",d,!0),r=!1},2e3)};e.addEventListener("DOMContentLoaded",function(){Array.prototype.forEach.call(t.getElementsByTagName("a"),function(e){var t=e.getAttribute("href");t&&0==t.indexOf("#")&&(["tab"].indexOf(e.getAttribute("role"))>0||e.getAttribute("data-toggle")||e.getAttribute("carousel-control")||e.addEventListener("click",s))})}),e.addEventListener("scroll",d,!0),e.addEventListener("DOMContentLoaded",d,!1)}}(window,document),document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll("nav .wp-block-navigation-item.has-child").forEach(function(e){e.querySelectorAll("a").forEach(function(e){if(e.hasAttribute("data-description")){var t=e.getAttribute("data-description"),n=document.createElement("span");n.className="wp-block-navigation-item__description",n.textContent=t,e.parentNode.insertBefore(n,e.nextSibling)}})})});