"use strict";!function(t,n){var r=/:scope\b/gi;function i(e){var s=t[e];t[e]=function(e){var t=this,n=t.id||"qsid"+(new Date).getTime(),i=!t.id,o=r.test(e);try{return o&&(i&&(t.id=n),e=e.replace(r,"#"+n)),s.call(this,e)}finally{i&&(t.id=null)}}}function o(e){var t=n[e];n[e]=function(e){return t.call(this,e.replace(r,""))}}try{document.querySelector(":scope")}catch(e){i("querySelector"),i("querySelectorAll"),o("querySelector"),o("querySelectorAll")}}(Element.prototype,Document.prototype),[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach(function(e){e.hasOwnProperty("append")||Object.defineProperty(e,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=Array.prototype.slice.call(arguments),n=document.createDocumentFragment();e.forEach(function(e){var t=e instanceof Node;n.appendChild(t?e:document.createTextNode(String(e)))}),this.appendChild(n)}})}),function(){if("function"==typeof NodeList.prototype.forEach)return;NodeList.prototype.forEach=Array.prototype.forEach}(),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}),function(){var e=function(){this.options={menuToggleDuration:300},this.menuSidebarState="closed",this.isPreviewing=document.body.classList.contains("customize-previewing"),this.init()};e.prototype.checkTouchScreen=function(){"ontouchstart"in document.documentElement?document.body.classList.add("ontouch-screen"):document.body.classList.add("not-touch-screen")},e.prototype.isMobile=function(){return!!(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/Windows Phone/i))},e.prototype.initMenuSidebar=function(){var e;document.body.classList.contains("menu_sidebar_dropdown")||(e=document.getElementById("header-menu-sidebar"))&&document.body.append(e),document.addEventListener("customize_section_opened",function(e){"header_sidebar"===e.detail&&this.toggleMenuSidebar(!1)}.bind(this));var t=document.querySelectorAll(".menu-mobile-toggle");this.addEvent(t,"click",function(e){e.preventDefault(),this.toggleMenuSidebar()}.bind(this));var n=document.querySelectorAll("#header-menu-sidebar .close-panel, .close-sidebar-panel");this.addEvent(n,"click",function(e){e.preventDefault(),this.closeMenuSidebar()}.bind(this)),this.addEvent(document,"click",function(e){if(document.body.classList.contains("is-menu-sidebar")){var t=document.getElementById("header-menu-sidebar"),n=document.querySelectorAll(".menu-mobile-toggle"),i=!1;e.target.closest("#header-menu-sidebar")||e.target===t||(i=!0);var o=!1;if(n.length)for(var s=0;s .sub-menu, .sub-lv-0");if(t.classList.contains("open-sub")){if(n.length)for(i=0;i a"),o=i.cloneNode(!0);this.isPreviewing;var s=document.createElement("span");s.classList.add("nav-toggle-icon"),s.innerHTML='',i.parentNode.insertBefore(s,i);var r=n.querySelector(":scope > .sub-menu");"1"!==Customify_JS.sidebar_menu_no_duplicator&&r.prepend(o);var a=n.querySelectorAll(":scope > .sub-menu, .sub-lv-0");if(a.length)for(var l=0;lt/2?Customify_JS.is_rtl?(this.removeClass(i,"search-left"),this.addClass(i,"search-right")):(this.removeClass(i,"search-right"),this.addClass(i,"search-left")):Customify_JS.is_rtl?(this.removeClass(i,"search-right"),this.addClass(i,"search-left")):(this.removeClass(i,"search-left"),this.addClass(i,"search-right"))}},e.prototype.initSearchForm=function(){var e=document.querySelectorAll(".header-search_icon-item"),i=this;e.forEach(function(n){if(!n.classList.contains("js-added")){i.addClass(n,"js-added"),i.removeClass(n,"active");var e=n.querySelector(".search-icon"),t=function(e){e.preventDefault();var t=n.querySelector(".search-field");n.classList.contains("active")?(this.removeClass(n,"active"),t.focus()):(n.classList.add("active"),t.blur())};e.removeEventListener("click",t),i.addEvent(e,"click",t.bind(i)),i.addEvent(document,"click",function(e){n===e.target||n.contains(e.target)||i.removeClass(n,"active")}.bind(i))}}),i.searchFormAutoAlign()},e.prototype.wrapper=function(e,t){void 0===t&&(t="div");var n=document.createElement(t);return e.parentNode.replaceChild(n,e),n.appendChild(e),n},e.prototype.responsiveTable=function(){for(var e=document.querySelectorAll(".entry-content table"),t=0;t .header-menu-sidebar").remove(),this.initMobieSearchForm(),this.initMobileSubMenu(),this.insertMenuOverlayClass(),this.setupMobileItemAnimations(),this.initMenuSidebar(),this.initSearchForm(),console.log("header_change"));"Customify_Builder_Item_Search_Icon__render"===e.detail&&(this.initMobieSearchForm(),this.initSearchForm(),this.setupMobileItemAnimations())}.bind(this))},window.customify_is_mobile=function(){return e.isMobile()},window.Customify=new e,function(){if(window.Customify.isMobile()){var e=.01*window.innerHeight,t=.01*window.innerWidth;document.documentElement.style.setProperty("--vh",e+"px"),document.documentElement.style.setProperty("--vw",t+"px"),window.addEventListener("resize",function(){var e=.01*window.innerHeight,t=.01*window.innerWidth;document.documentElement.style.setProperty("--vh",e+"px"),document.documentElement.style.setProperty("--vw",t+"px")})}}()}(),function(){var o,e,t,n,i;if((o=document.getElementById("site-navigation-main-desktop"))&&void 0!==(e=o.getElementsByTagName("ul")[0])){for(e.setAttribute("aria-expanded","false"),-1===e.className.indexOf("nav-menu")&&(e.className+=" nav-menu"),n=0,i=(t=e.getElementsByTagName("a")).length;n a, .page_item_has_children > a");if("ontouchstart"in window)for(t=function(e){var t,n=this.parentNode;if(n.classList.contains("focus"))n.classList.remove("focus");else{for(e.preventDefault(),t=0;t