var ZakraFrontend={toggleMenu:function(e,t,n,o,s){e.addEventListener("click",(function(){this.classList.toggle("tg-mobile-toggle--opened"),t.classList.toggle("tg-mobile-navigation--opened"),n&&n.classList.toggle("overlay-show"),t.getElementsByClassName("tg-mobile-navigation-close").length||t.insertBefore(o,t.childNodes[0])})),n&&n.addEventListener("click",(function(){this.classList.toggle("overlay-show"),s.classList.toggle("tg-mobile-toggle--opened"),t.classList.toggle("tg-mobile-navigation--opened")}))}};window.zakraFrontend=ZakraFrontend,document.addEventListener("DOMContentLoaded",(function(){try{!function(){var e,t,n,o,s,l,a,c,i,r,u,d,g=document.getElementById("mobile-navigation"),m=document.querySelector(".tg-mobile-toggle"),h=document.querySelector(".tg-overlay-wrapper"),p=document.getElementById("wpadminbar");if((l=document.createElement("button")).classList.add("tg-mobile-navigation-close"),l.setAttribute("aria-label","Close Button"),g&&(t=g.querySelectorAll("li.page_item_has_children, li.menu-item-has-children"),document.body.contains(p)&&(e=p.getBoundingClientRect().height,a=getComputedStyle(g),c=parseInt(a.paddingTop)+e,l.style.top=e+"px",g.style.paddingTop=c+"px")),m&&g&&(l.addEventListener("click",(function(){m.click()})),zakraFrontend.toggleMenu(m,g,h,l,m),m.addEventListener("click",(function(){'a, button, input[type="search"]',r=g.querySelectorAll('a, button, input[type="search"]'),r=Array.prototype.slice.call(r),u=r[0],d=r[r.length-1],setTimeout((function(){u.focus()}),100),g.addEventListener("keydown",(function(e){"Tab"===e.key&&(e.shiftKey?document.activeElement===u&&(e.preventDefault(),d.focus()):document.activeElement===d&&(e.preventDefault(),u.focus()))}))}))),t){var y=t.length;for(i=0;iwindow.scrollY&&e.classList.remove("tg-scroll-to-top--show")})),e.addEventListener("click",(function(e){e.preventDefault(),0!==window.scrollY&&window.scrollTo({top:0,behavior:"smooth"})}))),function(){var e,t,n;function o(n){"hide"!==n?(t.classList.toggle("show-search"),t.classList.contains("show-search")&&(t.getElementsByTagName("input")[0].focus(),document.querySelector(".tg-menu-item-search").addEventListener("keydown",(function(n){n.shiftKey||"Tab"!==n.key||document.activeElement!==t.getElementsByTagName("input")[0]||(n.preventDefault(),e.focus()),n.shiftKey&&"Tab"===n.key&&document.activeElement===e&&t.classList.contains("show-search")&&(n.preventDefault(),t.getElementsByTagName("input")[0].focus())})))):t.classList.remove("show-search")}e=document.querySelector(".header-action-list .tg-menu-item-search > a"),t=document.querySelector(".header-action-list .tg-menu-item-search"),n=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),n=t.length;0<=--n&&t.item(n)!==this;);return-1