"use strict";(globalThis.blocksyJsonP=globalThis.blocksyJsonP||[]).push([[447],{9680(e,t,n){n.d(t,{e:function(){return o}});const o=function(){return"undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1)}},9280(e,t,n){function o(e,t){let n=null,o=!1;const r=function(){clearTimeout(n),e.removeEventListener("transitionend",i),o||(o=!0,t())},i=function(t){t.target===e&&r()},c=parseFloat(getComputedStyle(e).transitionDuration);c?(e.addEventListener("transitionend",i),n=setTimeout(function(){r()},1e3*c)):t()}n.d(t,{u:function(){return o}})},8447(e,t,n){n.d(t,{handleClick:function(){return B}});var o=!1;if("undefined"!=typeof window){var r={get passive(){o=!0}};window.addEventListener("testPassive",null,r),window.removeEventListener("testPassive",null,r)}var i="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),c=[],a=!1,l=-1,s=void 0,u=void 0,d=function(e){return c.some(function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))})},f=function(e){var t=e||window.event;return!!d(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},m=function(){void 0!==u&&(document.body.style.paddingRight=u,u=void 0),void 0!==s&&(document.body.style.overflow=s,s=void 0)},g=function(e,t){if(e){if(!c.some(function(t){return t.targetElement===e})){var n={targetElement:e,options:t||{}};c=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?f(e):e.stopPropagation())}(t,e)},a||(document.addEventListener("touchmove",f,o?{passive:!1}:void 0),a=!0)):function(e){if(void 0===u){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(u=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===s&&(s=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},v=n(9680),p=function(){(0,v.e)()?(i?(c.forEach(function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null}),a&&(document.removeEventListener("touchmove",f,o?{passive:!1}:void 0),a=!1),l=-1):m(),c=[]):(document.body.style.overflow="",document.body.style.removeProperty("--scrollbar-width"))},h=function(e){if((0,v.e)())e&&g(e,{allowTouchMove:function(e){return!!e.closest(".select2-container")||!!e.closest(".flexy")}});else{let e=window.innerWidth-document.documentElement.clientWidth;e>0&&document.body.style.setProperty("--scrollbar-width",`${e}px`),document.body.style.overflow="hidden"}};const y=function(){return window.ctFrontend&&window.ctFrontend.scrollLockManager||(window.ctFrontend=window.ctFrontend||{},window.ctFrontend.scrollLockManager={enable:p,disable:h}),window.ctFrontend.scrollLockManager};var w=n(2151),b=n.n(w),L=n(9280);const _=function(e){if(!e)return;const t=e.querySelector(".ct-toggle-dropdown-mobile");e.classList.contains("dropdown-active")?(t.setAttribute("aria-expanded","false"),t.setAttribute("aria-label",ct_localizations.expand_submenu),function(e,t){const n=e.querySelector("ul");requestAnimationFrame(function(){const e=n.getBoundingClientRect().height;n.style.height=`${e}px`,n.classList.add("is-animating"),requestAnimationFrame(function(){n.style.height="0px",(0,L.u)(n,function(){n.classList.remove("is-animating"),n.removeAttribute("style"),t()})})})}(e,function(){e.classList.toggle("dropdown-active"),[...e.querySelectorAll(".menu-item-has-children.dropdown-active, .page_item_has_children.dropdown-active")].map(function(e){return e.classList.remove("dropdown-active")})})):(t.setAttribute("aria-expanded","true"),t.setAttribute("aria-label",ct_localizations.collapse_submenu),[...e.parentNode.children].map(function(e){return e.classList.contains("dropdown-active")&&_(e)}),e.classList.toggle("dropdown-active"),function(e){const t=e.querySelector("ul");requestAnimationFrame(function(){const e=t.getBoundingClientRect().height;t.style.height="0px",t.classList.add("is-animating"),requestAnimationFrame(function(){t.style.height=`${e}px`,(0,L.u)(t,function(){t.classList.remove("is-animating"),t.removeAttribute("style")})})})}(e))};var k=n(3793),S=n(1610);const E=["button:enabled:not([readonly])","select:enabled:not([readonly])","textarea:enabled:not([readonly])",'input:enabled:not([readonly]):not([type="hidden"])',"a[href]","area[href]","iframe","object","embed","[tabindex]","[contenteditable]","[autofocus]"];let A=null;const C=function(e){if(!A)return;let t=[...A.querySelectorAll(E.join(","))];A.querySelector('[data-device="mobile"]')&&"mobile"!==(0,k.U)()&&(t=t.filter(function(e){return!e.closest('[data-device="mobile"]')}));const n=t[0],o=t[t.length-1];if("Tab"!==e.key&&9!==e.keyCode)return;let r=t.includes(document.activeElement);A.contains(document.activeElement)&&document.activeElement.scrollHeight>document.activeElement.clientHeight&&(r=!0),r||(n.focus(),e.preventDefault()),e.shiftKey?document.activeElement===n&&(o.focus(),e.preventDefault()):document.activeElement===o&&(n.focus(),e.preventDefault())},q=function(e,t={}){if(t={focusOnMount:!0,...t},A&&A!==e)return;const n=e.querySelectorAll(E.join(","));0!==n.length&&(A=e,document.addEventListener("keydown",C),t.focusOnMount&&!(0,S.C)()&&setTimeout(function(){n[0].focus()},200))},T=function(e){e.removeEventListener("keydown",C),A=null},F=function(){return window.ctFrontend&&window.ctFrontend.focusLockManager||(window.ctFrontend=window.ctFrontend||{},window.ctFrontend.focusLockManager={focusLockOn:q,focusLockOff:T}),window.ctFrontend.focusLockManager};var O=n(6816);const x=function(e){if(!e.container)throw new Error("No container provided");return e.container.__overlay_settings__||{}},M=function(e){e.container.__overlay_settings__=null};let D=null;const P=function(e){const t={onClose:function(){},container:null,focus:!0,...x(e)};[...document.querySelectorAll(`[data-toggle-panel*="${t.container.id}"]`),...document.querySelectorAll(`[href*="${t.container.id}"]`)].map(function(e){e.setAttribute("aria-expanded","true")}),t.shouldBeInert&&(t.container.inert=!1,t.container.setAttribute("aria-modal","true")),t.focus&&setTimeout(function(){const e=t.container.querySelector("input");if(e){const t=e.value.length;e.setSelectionRange(t,t),e.focus()}},200),t.container.querySelector(".ct-panel-content")&&t.container.querySelector(".ct-panel-content").addEventListener("click",function(e){Array.from(t.container.querySelectorAll("select")).map(function(t){return t.selectr&&t.selectr.events.dismiss(e)})}),t.clickOutside&&t.container.querySelector(".ct-panel-content")&&t.container.addEventListener("click",t.handleContainerClick);const n=function(e){const{keyCode:o,target:r}=e;27===o&&(e.preventDefault(),document.body.hasAttribute("data-panel")&&R(t),document.removeEventListener("keyup",n))};document.addEventListener("keyup",n);let o=t.container&&t.container.querySelector(".ct-toggle-close");if(o&&(o.addEventListener("click",function(e){e.preventDefault(),R(t)},{once:!0}),o.hasEnterListener||(o.hasEnterListener=!0,o.addEventListener("keyup",function(e){13==e.keyCode&&(e.preventDefault(),R(t))}))),t.computeScrollContainer||t.container.querySelector(".ct-panel-content")){const e=t.computeScrollContainer?t.computeScrollContainer():t.container.querySelector(".ct-panel-content");if(y().disable(e),(0,v.e)()){const n=new MutationObserver(function(n){e.isConnected||(y().enable(),setTimeout(function(){document.body.hasAttribute("data-panel")&&y().disable(t.computeScrollContainer?t.computeScrollContainer():t.container.querySelector(".ct-panel-content"))},1e3))});n.observe(t.container,{childList:!0,subtree:!0}),t.container.__overlay_observer__=n}setTimeout(function(){F().focusLockOn(t.container.querySelector(".ct-panel-content").parentNode,{focusOnMount:!t.focus})})}"AbortController"in window&&(D=new AbortController),window.addEventListener("click",t.handleWindowClick,{capture:!0,signal:D?D.signal:void 0}),b().trigger("ct:modal:opened",t.container),b().trigger("blocksy:frontend:init"),[...t.container.querySelectorAll(".ct-toggle-dropdown-mobile")].map(function(e){!function(e){if(e.hasListener)return;e.hasListener=!0;let t=e.previousElementSibling.getAttribute("href");t&&"#"!==t||e.previousElementSibling.addEventListener("click",function(t){t.preventDefault(),t.stopPropagation(),_(e.closest(".menu-item-has-children, .page_item_has_children"))}),e.addEventListener("click",function(t){t.preventDefault(),t.stopPropagation(),_(e.closest(".menu-item-has-children, .page_item_has_children"))})}(e)})},R=function(e,t={}){const n={onClose:function(){},container:null,...x(e)};if(t={onlyUnmountEvents:!1,shouldFocusOriginalTrigger:!0,...t},n.shouldBeInert&&(n.container.inert=!0,n.container.removeAttribute("aria-modal")),!document.body.hasAttribute("data-panel"))return n.container.classList.remove("active"),void n.onClose();[...document.querySelectorAll(`[data-toggle-panel*="${n.container.id}"]`),...document.querySelectorAll(`[href*="${n.container.id}"]`)].map(function(e,n){e.setAttribute("aria-expanded","false"),t.shouldFocusOriginalTrigger&&!(0,S.C)()&&(e.focusDisabled||setTimeout(function(){0===n&&e.focus()},50),e.focusDisabled=!1)}),t.onlyUnmountEvents?(y().enable(),F().focusLockOff(n.container.querySelector(".ct-panel-content").parentNode),M(n)):(document.body.dataset.panel="out",(0,L.u)(n.container,function(){document.body.removeAttribute("data-panel"),n.container.classList.remove("active"),y().enable(),F().focusLockOff(n.container.querySelector(".ct-panel-content").parentNode),M(n),b().trigger("ct:modal:closed",n.container)})),n.container.__overlay_observer__&&(n.container.__overlay_observer__.disconnect(),n.container.__overlay_observer__=null),D&&D.abort(),n.container.removeEventListener("click",n.handleContainerClick),n.onClose()},B=function(e,t){e&&e.preventDefault&&e.preventDefault(),t={onClose:function(){},container:null,focus:!1,clickOutside:!0,isModal:!1,computeScrollContainer:null,closeWhenLinkInside:!1,shouldBeInert:!!t.container.inert,handleContainerClick:function(e){const n=e.target.closest(".ct-panel-actions");let o=e.target.closest(".ct-panel-content"),r=[...t.container.querySelectorAll(".ct-panel-content")].indexOf(e.target)>-1,i=null;if(e.target.matches('[data-toggle-panel],[href*="modal"]')&&(i=e.target),!i&&e.target.closest('[data-toggle-panel],[href*="modal"]')&&(i=e.target.closest('[data-toggle-panel],[href*="modal"]')),i&&i.hasLazyLoadClickListener&&!i.matches("[data-button-state]"))return R(t),void setTimeout(function(){i.click()},650);t.isModal&&!r&&o||!t.isModal&&(r||o||n)||e.target.closest('[class*="select2-container"]')||!e.target.closest("body")||!e.target.closest(".ct-panel")||window.getSelection().toString().length>0||document.body.hasAttribute("data-panel")&&R(t)},handleWindowClick:function(e){setTimeout(function(){t.container.contains(e.target)||e.target===document.body||e.target.closest('[class*="select2-container"]')||!e.target.closest("body")||e.target.closest(".ct-popup")||!e.isTrusted&&e.target.closest("form.woocommerce-checkout")||document.body.hasAttribute("data-panel")&&R(t)})},...t},function(e){e.container.__overlay_settings__=e}(t),P(t),t.closeWhenLinkInside&&(t.container.hasListener||(t.container.hasListener=!0,t.container.addEventListener("click",function(e){if(!e.target)return;let n=e.target;if(e.target.closest("a")&&(n=e.target.closest("a")),!n.closest(".ct-panel"))return;if(!n.closest(".ct-panel").classList.contains("active"))return;if(!n.matches("a"))return;if(n.classList.contains("ct-overlay-skip"))return;const o=(0,O.o)(n);if(!(n.closest('nav[data-id*="menu"]')||n.closest('[data-id*="text"]')||n.closest('[data-id*="button"]')||o||n.closest(".widget_nav_menu")))return;const r=0===e.button,i=n.target&&"_self"!==n.target;if(r&&(e.ctrlKey||e.metaKey||i))return;let c="regular",a=new URL(location.href),l=null;try{l=new URL(n.getAttribute("href"),location.href)}catch(e){console.error("Error parsing URLs",e,n)}a&&l&&(a.hash="",l.hash="",a.toString()===l.toString()&&(c="hash-link")),o&&(c="modal"),"regular"===c&&R(t,{onlyUnmountEvents:!0,shouldFocusOriginalTrigger:!1}),"modal"===c&&(R(t,{shouldFocusOriginalTrigger:!1}),setTimeout(function(){n.click()},500)),"hash-link"===c&&R(t,{shouldFocusOriginalTrigger:!1})})))};b().on("ct:offcanvas:force-close",function(e){return R(e)}),window.addEventListener("pageshow",function(e){if(!event.persisted)return;document.body.hasAttribute("data-panel")&&document.body.removeAttribute("data-panel");const t=document.querySelector(".ct-panel.active");D&&(D.abort(),D=null),y().enable(),t&&(t.classList.remove("active"),F().focusLockOff(t.querySelector(".ct-panel-content").parentNode))})}}]);