(globalThis.blocksyJsonP=globalThis.blocksyJsonP||[]).push([[83],{83:function(e,t,n){"use strict";n.r(t),n.d(t,{handleClick:function(){return Y},mount:function(){return K}});var o=n(891);const r="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1);var i=function(e){r?(0,o.clearAllBodyScrollLocks)():(document.body.style.overflow="",document.body.style.removeProperty("--scrollbar-width"))},c=n(601),a=n.n(c);const u=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",l(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")&&u(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`,l(t,(function(){t.classList.remove("is-animating"),t.removeAttribute("style")}))}))}))}(e))};function l(e,t){const n=function(o){o.target===e&&(e.removeEventListener("transitionend",n),t())};e.addEventListener("transitionend",n)}var d=function(e){for(var t=Array(e.length),n=0;n=0})).sort(f)},v=["button:enabled:not([readonly])","select:enabled:not([readonly])","textarea:enabled:not([readonly])","input:enabled:not([readonly])","a[href]","area[href]","iframe","object","embed","[tabindex]","[contenteditable]","[autofocus]"],p=v.join(","),g=p+", [data-focus-guard]",h=function(e,t){return e.reduce((function(e,n){return e.concat(d(n.querySelectorAll(t?g:p)),n.parentNode?d(n.parentNode.querySelectorAll(v.join(","))).filter((function(e){return e===n})):[])}),[])},y=function e(t){return!t||t===document||t.nodeType===Node.DOCUMENT_NODE||!((n=window.getComputedStyle(t,null))&&n.getPropertyValue&&("none"===n.getPropertyValue("display")||"hidden"===n.getPropertyValue("visibility")))&&e(t.parentNode);var n},b=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n.push(t),t.parentNode&&e(t.parentNode,n),n},w=function(e,t){for(var n=b(e),o=b(t),r=0;r=0)return i}return!1},S=function(e){return d(e).filter((function(e){return y(e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},E=function(e,t){return m(S(h(e,t)),!0,t)},L=function(e){return"INPUT"===e.tagName&&"radio"===e.type},k=function(e,t){return t.filter(L).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e},A=function(e,t){return e.length>1&&L(e[t])&&e[t].name?e.indexOf(k(e[t],e)):t},x=function(e){return e[0]&&e.length>1&&L(e[0])&&e[0].name?k(e[0],e):e[0]},O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q=function e(t){for(var n=t.length,o=0;o=0)){var l=t.indexOf(n),d=t.indexOf(o||l),s=e.indexOf(o),f=l-d,m=t.indexOf(c),v=t.indexOf(a),p=A(e,0),g=A(e,i-1);return-1===l||-1===s?e.indexOf(r&&r.length?x(r):x(e)):!f&&s>=0?s:l<=m&&u&&Math.abs(f)>1?g:l>=m&&u&&Math.abs(f)>1?p:f&&Math.abs(f)>1?s:l<=m?g:l>v?p:f?Math.abs(f)>1?s:(i+s+f)%i:void 0}}(g,v,n,t,g.filter((f=function(e){return e.reduce((function(e,t){return e.concat(function(e){return S((t=e.querySelectorAll("[data-autofocus-inside]"),d(t).map((function(e){return h([e])})).reduce((function(e,t){return e.concat(t)}),[])));var t}(t))}),[])}(o),function(e){return!!e.autofocus||e.dataset&&!!e.dataset.autofocus||f.indexOf(e)>=0})));return void 0===y?y:p[y]}},_=0,j=!1,B=function(e){return e===document.activeElement},F=0,D=null,M=function(){return document&&document.activeElement===document.body||document&&d(document.querySelectorAll("[data-no-focus-lock]")).some((function(e){return e.contains(document.activeElement)}))},W=function(e){F=e,e&&function(){var e,t;if(F){var n=F;M()||(n&&(e=n,!(!(!(t=document&&document.activeElement)||t.dataset&&t.dataset.focusGuard)&&P(e).reduce((function(e,n){return e||n.contains(t)||function(e){return t=d(e.querySelectorAll("iframe")),n=B,!!t.filter((function(e){return e===n}))[0];var t,n}(n)}),!1)))&&function(e,t){var n,o=N(e,t);if(!j&&o){if(_>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),j=!0,void setTimeout((function(){j=!1}),1);_++,(n=o.node).focus(),n.contentWindow&&n.contentWindow.focus(),_--}}(n,D),D=document.activeElement)}}()},$=[],R=function(e){return!!W((t=$,t.filter((function(e){return e})).slice(-1)[0]))&&(e&&e.preventDefault(),!0);var t},G={on:function(e){0===$.length&&document.addEventListener("focusin",R),$.indexOf(e)<0&&($.push(e),R())},off:function(e){$=$.filter((function(t){return t!==e})),R(),0===$.length&&document.removeEventListener("focusin",R)}};const U=function(e){let t=G;window.ctFrontend&&window.ctFrontend.focusLock?t=ctFrontend.focusLock:(window.ctFrontend=window.ctFrontend||{},window.ctFrontend.focusLock=t),t.off(e)};function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function z(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};if(e=z({onClose:function(){},container:null},e),t=z({closeInstant:!1},t),!document.body.hasAttribute("data-panel"))return e.container.classList.remove("active"),void e.onClose();[...document.querySelectorAll(`[data-toggle-panel*="${e.container.id}"]`),...document.querySelectorAll(`[href*="${e.container.id}"]`)].map((function(e){e.setAttribute("aria-expanded","false")})),e.container.classList.remove("active"),t.closeInstant?(document.body.removeAttribute("data-panel"),a().trigger("ct:modal:closed",e.container),i(e.computeScrollContainer?e.computeScrollContainer():e.container.querySelector(".ct-panel-content"))):(document.body.dataset.panel="out",e.container.addEventListener("transitionend",(function(){setTimeout((function(){document.body.removeAttribute("data-panel"),a().trigger("ct:modal:closed",e.container),i(e.computeScrollContainer?e.computeScrollContainer():e.container.querySelector(".ct-panel-content")),U(e.container.querySelector(".ct-panel-content").parentNode)}),300)}),{once:!0})),window.removeEventListener("click",e.handleWindowClick,{capture:!0}),e.container.removeEventListener("click",e.handleContainerClick),e.onClose()},Y=function(e,t){e&&e.preventDefault&&e.preventDefault(),t=z({onClose:function(){},container:null,focus:!1,clickOutside:!0,isModal:!1,computeScrollContainer:null,closeWhenLinkInside:!1,handleContainerClick:function(e){let n=e.target.closest(".ct-panel-content"),o=[...t.container.querySelectorAll(".ct-panel-content")].indexOf(e.target)>-1;t.isModal&&!o&&n||!t.isModal&&(o||n)||e.target.closest('[class*="select2-container"]')||window.getSelection().toString().length>0||document.body.hasAttribute("data-panel")&&J(t)},handleWindowClick:function(e){t.container.contains(e.target)||e.target===document.body||event.target.closest('[class*="select2-container"]')||document.body.hasAttribute("data-panel")&&J(t)}},t),function(e){e=z({onClose:function(){},container:null,focus:!0},e),[...document.querySelectorAll(`[data-toggle-panel*="${e.container.id}"]`),...document.querySelectorAll(`[href*="${e.container.id}"]`)].map((function(e){e.setAttribute("aria-expanded","true")})),e.focus&&setTimeout((function(){e.container.querySelector("input")&&e.container.querySelector("input").focus()}),200),e.container.querySelector(".ct-panel-content")&&e.container.querySelector(".ct-panel-content").addEventListener("click",(function(t){Array.from(e.container.querySelectorAll("select")).map((function(e){return e.selectr&&e.selectr.events.dismiss(t)}))})),e.clickOutside&&e.container.querySelector(".ct-panel-content")&&e.container.addEventListener("click",e.handleContainerClick);const t=function(n){const{keyCode:o,target:r}=n;27===o&&(n.preventDefault(),document.body.hasAttribute("data-panel")&&J(e),document.removeEventListener("keyup",t))};document.addEventListener("keyup",t);let n=e.container&&e.container.querySelector(".ct-toggle-close");n&&(n.addEventListener("click",(function(t){t.preventDefault(),J(e)}),{once:!0}),n.hasEnterListener||(n.hasEnterListener=!0,n.addEventListener("keyup",(function(t){13==t.keyCode&&(t.preventDefault(),J(e))})))),(e.computeScrollContainer||e.container.querySelector(".ct-panel-content"))&&(function(e){if(r)e&&(0,o.disableBodyScroll)(e,{allowTouchMove:function(e){return!!e.closest(".select2-container")}});else{let e=window.innerWidth-document.documentElement.clientWidth;e>0&&document.body.style.setProperty("--scrollbar-width",`${e}px`),document.body.style.overflow="hidden"}}(e.computeScrollContainer?e.computeScrollContainer():e.container.querySelector(".ct-panel-content")),setTimeout((function(){!function(e){let t=G;window.ctFrontend&&window.ctFrontend.focusLock?t=ctFrontend.focusLock:(window.ctFrontend=window.ctFrontend||{},window.ctFrontend.focusLock=t),t.on(e)}(e.container.querySelector(".ct-panel-content").parentNode)}))),window.addEventListener("click",e.handleWindowClick,{capture:!0}),a().trigger("ct:modal:opened",e.container),[...e.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(),u(e.closest(".menu-item-has-children, .page_item_has_children"))})),e.addEventListener("click",(function(t){t.preventDefault(),t.stopPropagation(),u(e.closest(".menu-item-has-children, .page_item_has_children"))}))}(e)}))}(t),t.closeWhenLinkInside&&(t.container.hasListener||(t.container.hasListener=!0,t.container.addEventListener("click",(function(e){if(!e.target)return;let n=e.target;e.target.closest("a")&&(n=e.target.closest("a")),n.closest(".ct-panel").classList.contains("active")&&n.matches("a")&&(n.closest('nav[data-id*="menu"]')||n.closest('[data-id*="text"]')||n.closest('[data-id*="button"]')||n.matches(".ct-offcanvas-trigger")||n.matches(".ct-header-account")||n.closest(".widget_nav_menu"))&&(J(t,{closeInstant:"#"!==n.getAttribute("href")[0]}),setTimeout((function(){(n.matches(".ct-offcanvas-trigger")||n.matches(".ct-header-account"))&&n.click()}),500))}))))};a().on("ct:offcanvas:force-close",(function(e){return J(e)}));const K=function(e,t){let{event:n,focus:o=!1}=t;Y(n,{isModal:!0,container:document.querySelector(e.dataset.togglePanel||e.hash),clickOutside:!0,focus:o})}},891:function(e,t){var n,o;n=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t