var ZakraFrontend={toggleMenu:function(e,t,o,n,c){e.addEventListener("click",(function(){this.classList.toggle("zak-mobile-toggle--opened"),t.classList.toggle("zak-mobile-nav--opened"),o&&o.classList.toggle("overlay-show"),t.getElementsByClassName("zak-mobile-nav-close").length||t.insertBefore(n,t.childNodes[0])})),o&&o.addEventListener("click",(function(){this.classList.toggle("overlay-show"),c.classList.toggle("zak-mobile-toggle--opened"),t.classList.toggle("zak-mobile-nav--opened")}))}};window.zakraFrontend=ZakraFrontend,document.addEventListener("DOMContentLoaded",(function(){try{!function(){var e,t,o,n,c,a,l,s,r,i,d=document.getElementById("zak-mobile-nav"),u=document.getElementById("secondary-menu"),m=document.querySelector(".zak-menu-toggle"),g=document.querySelector(".zak-overlay-wrapper"),h=document.getElementById("wpadminbar");if(a=document.getElementById("zak-mobile-nav-close"),document.querySelector(".zak-mobile-nav").addEventListener("click",(function(e){"A"===e.target.tagName&&m.click()})),d&&(e=d.querySelectorAll("li.page_item_has_children, li.menu-item-has-children"),document.body.contains(h)&&h.getBoundingClientRect().height),u&&(t=u.querySelectorAll("li.page_item_has_children, li.menu-item-has-children"),document.body.contains(h)&&h.getBoundingClientRect().height),m&&d&&(a.addEventListener("click",(function(){m.click()})),zakraFrontend.toggleMenu(m,d,g,a,m),m.addEventListener("click",(function(){s=d.querySelectorAll('a, button, input[type="search"]'),s=Array.prototype.slice.call(s),r=s[0],i=s[s.length-1],setTimeout((function(){r.focus()}),100),d.addEventListener("keydown",(function(e){"Tab"===e.key&&(e.shiftKey?document.activeElement===r&&(e.preventDefault(),i.focus()):document.activeElement===i&&(e.preventDefault(),r.focus()))}))}))),e){let t=e.length;for(l=0;lwindow.scrollY&&e.classList.remove("zak-scroll-to-top--show")})),e.addEventListener("click",(function(e){e.preventDefault(),0!==window.scrollY&&window.scrollTo({top:0,behavior:"smooth"})}))),function(){let e,t,o,n,c,a;function l(e){if("hide"===e)return t.classList.remove("zak-header-search--opened"),c.classList.remove("backdrop"),void a.classList.remove("backdrop");t.classList.toggle("zak-header-search--opened"),c.classList.toggle("backdrop"),a.classList.toggle("backdrop"),t.classList.contains("zak-header-search--opened")&&(setTimeout((function(){console.log(),t.getElementsByTagName("input")[0].focus()}),300),document.querySelector(".zak-search-container").addEventListener("keydown",(function(e){let t=document.querySelector(".zak-search-container").querySelectorAll('input[type="search"],button'),o=t[0],n=t[t.length-1];(9===e.keyCode||"Tab"===e.key)&&(e.shiftKey?document.activeElement===o&&(e.preventDefault(),n.focus()):document.activeElement===n&&(e.preventDefault(),o.focus()))})))}e=document.querySelector(".zak-header-search__toggle"),t=document.querySelector(".zak-main-header"),c=document.querySelector(".zak-content"),a=document.querySelector(".zak-footer"),n=document.querySelector(".zak-header-search .zak-icon--close"),o=function(e,t){for(Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),o=t.length;0<=--o&&t.item(o)!==this;);return-1