(window.blocksyJsonP=window.blocksyJsonP||[]).push([[1],{20:function(e,t,n){var o,r,c;r=[t],void 0===(c="function"==typeof(o=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=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(","),h=p+", [data-focus-guard]",g=function(e,t){return e.reduce((function(e,n){return e.concat(c(n.querySelectorAll(t?h:p)),n.parentNode?c(n.parentNode.querySelectorAll(v.join(","))).filter((function(e){return e===n})):[])}),[])},y=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},b=function(e,t){for(var n=y(e),o=y(t),r=0;r=0)return c}return!1},S=function(e){return c(e).filter((function(e){return 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}(e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},w=function(e,t){return m(S(g(e,t)),!0,t)},O=function(e){return S((t=e.querySelectorAll("[data-autofocus-inside]"),c(t).map((function(e){return g([e])})).reduce((function(e,t){return e.concat(t)}),[])));var t},L=function(e){return"INPUT"===e.tagName&&"radio"===e.type},E=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(E(e[t],e)):t},k=function(e){return e[0]&&e.length>1&&L(e[0])&&e[0].name?E(e[0],e):e[0]},x=function(e){return e&&e.dataset&&e.dataset.focusGuard},q=function(e){return!x(e)},C=function(e,t,n){var o=i(e),r=i(t),c=o[0],a=null;return r.filter(Boolean).forEach((function(e){a=b(a||e,e)||a,n.filter(Boolean).forEach((function(e){var t=b(c,e);t&&(a=!a||t.contains(a)?t:b(t,a))}))})),a},P=function(e,t){var n=document&&document.activeElement,o=l(e).filter(q),r=C(n||e,e,o),c=w(o).filter((function(e){var t=e.node;return q(t)}));if(c[0]||(c=(i=o,m(S(g(i)),!1)).filter((function(e){var t=e.node;return q(t)})))[0]){var i,a,u,s,d,f=w([r]).map((function(e){return e.node})),v=(a=f,u=c,s=new Map,u.forEach((function(e){return s.set(e.node,e)})),a.map((function(e){return s.get(e)})).filter(Boolean)),p=v.map((function(e){return e.node})),h=function(e,t,n,o,r){var c=e.length,i=e[0],a=e[c-1],u=x(n);if(!(e.indexOf(n)>=0)){var l=t.indexOf(n),s=t.indexOf(o||l),d=e.indexOf(o),f=l-s,m=t.indexOf(i),v=t.indexOf(a),p=A(e,0),h=A(e,c-1);return-1===l||-1===d?e.indexOf(r&&r.length?k(r):k(e)):!f&&d>=0?d:l<=m&&u&&Math.abs(f)>1?h:l>=m&&u&&Math.abs(f)>1?p:f&&Math.abs(f)>1?d:l<=m?h:l>v?p:f?Math.abs(f)>1?d:(c+d+f)%c:void 0}}(p,f,n,t,p.filter((d=function(e){return e.reduce((function(e,t){return e.concat(O(t))}),[])}(o),function(e){return!!e.autofocus||e.dataset&&!!e.dataset.autofocus||d.indexOf(e)>=0})));return void 0===h?h:v[h]}},T=0,j=!1,N=function(e,t){var n,o=P(e,t);if(!j&&o){if(T>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);T++,(n=o.node).focus(),n.contentWindow&&n.contentWindow.focus(),T--}},B=0,I=null,D=function(){return document&&document.activeElement===document.body||a()},M=function(e){B=e,e&&function(){var e=!1;if(B){var t=B;D()||(t&&!d(t)&&(e=N(t,I)),I=document.activeElement)}}()},_=[],W=function(e){return!!M((t=_,t.filter((function(e){return e})).slice(-1)[0]))&&(e&&e.preventDefault(),!0);var t},F={on:function(e){0===_.length&&document.addEventListener("focusin",W),_.indexOf(e)<0&&(_.push(e),W())},off:function(e){_=_.filter((function(t){return t!==e})),W(),0===_.length&&document.removeEventListener("focusin",W)}},G=n(0),R=n.n(G),U=n(2);const V=e=>{if(!e)return;const t=e.querySelector(".child-indicator");e.classList.contains("current-menu-active")?(t.setAttribute("aria-expanded","false"),((e,t)=>{const n=e.querySelector("ul");requestAnimationFrame(()=>{const e=n.getBoundingClientRect().height;n.style.height=e+"px",n.classList.add("is-animating"),requestAnimationFrame(()=>{n.style.height="0px",H(n,()=>{n.classList.remove("is-animating"),n.removeAttribute("style"),t()})})})})(e,()=>{e.classList.toggle("current-menu-active"),[...e.querySelectorAll(".menu-item-has-children.current-menu-active, .page_item_has_children.current-menu-active")].map(e=>e.classList.remove("current-menu-active"))})):(t.setAttribute("aria-expanded","true"),[...e.parentNode.children].map(e=>e.classList.contains("current-menu-active")&&V(e)),e.classList.toggle("current-menu-active"),(e=>{const t=e.querySelector("ul");requestAnimationFrame(()=>{const e=t.getBoundingClientRect().height;t.style.height="0px",t.classList.add("is-animating"),requestAnimationFrame(()=>{t.style.height=e+"px",H(t,()=>{t.classList.remove("is-animating"),t.removeAttribute("style")})})})})(e))};function H(e,t){const n=o=>{o.target===e&&(e.removeEventListener("transitionend",n),t())};e.addEventListener("transitionend",n)}function J(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 Y(e){for(var t=1;t{var t;e=Y({onClose:()=>{},container:null,focus:!0,forceOpen:!1},e),[...document.querySelectorAll(`[href*="${e.container.id}"]`)].map(e=>{e.classList.add("active")}),e.container&&e.container.classList.add("active"),e.focus&&setTimeout(()=>{e.container.querySelector("input")&&e.container.querySelector("input").focus()},200),e.container.querySelector(".ct-panel-content")&&e.container.querySelector(".ct-panel-content").addEventListener("click",t=>{Array.from(e.container.querySelectorAll("select")).map(e=>e.selectr&&e.selectr.events.dismiss(t))}),e.clickOutside&&e.container.querySelector(".ct-panel-content")&&e.container.addEventListener("click",e.handleContainerClick),e.forceOpen||(document.body.dataset.panel="in"+(e.container.dataset.behaviour.indexOf("left")>-1?":left":e.container.dataset.behaviour.indexOf("right")>-1?":right":""),document.addEventListener("keyup",t=>{const{keyCode:n,target:o}=t;27===n&&(t.preventDefault(),document.body.hasAttribute("data-panel")&&K(e))},{once:!0})),e.container&&e.container.querySelector(".ct-close-button")&&e.container.querySelector(".ct-close-button").addEventListener("click",t=>{t.preventDefault(),K(e)},{once:!0}),(e.computeScrollContainer||e.container.querySelector(".ct-panel-content"))&&(t=e.computeScrollContainer?e.computeScrollContainer():e.container.querySelector(".ct-panel-content"),Object(o.disableBodyScroll)(t,{reserveScrollBarGap:!0,allowTouchMove:e=>!!e.closest(".select2-container")}),F.on(e.container.querySelector(".ct-panel-content"))),e.forceOpen||requestAnimationFrame(()=>{window.addEventListener("click",e.handleWindowClick)}),R.a.trigger("ct:modal:opened",e.container),[...e.container.querySelectorAll(".child-indicator")].map(e=>{(e=>{if(e.hasListener)return;e.hasListener=!0;let t=e.parentNode.getAttribute("href");t&&"#"!==t||e.parentNode.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),V(e.closest(".menu-item-has-children, .page_item_has_children"))}),e.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),V(e.closest(".menu-item-has-children, .page_item_has_children"))}),e.addEventListener("keyup",e=>{13===e.keyCode&&(e.preventDefault(),e.target.click())})})(e)})},K=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e=Y({onClose:()=>{},container:null},e),t=Y({closeInstant:!1},t),!document.body.hasAttribute("data-panel"))return e.container.classList.remove("active"),void e.onClose();[...document.querySelectorAll(`[href*="${e.container.id}"]`)].map(e=>{e.classList.remove("active")}),e.container.classList.remove("active"),t.closeInstant?(document.body.removeAttribute("data-panel"),R.a.trigger("ct:modal:closed",e.container),r(e.computeScrollContainer?e.computeScrollContainer():e.container.querySelector(".ct-panel-content"))):(document.body.dataset.panel="out",e.container.addEventListener("transitionend",()=>{setTimeout(()=>{document.body.removeAttribute("data-panel"),R.a.trigger("ct:modal:closed",e.container),r(e.computeScrollContainer?e.computeScrollContainer():e.container.querySelector(".ct-panel-content")),F.off(e.container.querySelector(".ct-panel-content"))},300)},{once:!0}));window.removeEventListener("click",e.handleWindowClick),e.container.removeEventListener("click",e.handleContainerClick),e.onClose()},Q=(e,t)=>{e&&e.preventDefault&&e.preventDefault(),t=Y({onClose:()=>{},container:null,focus:!1,forceOpen:!1,clickOutside:!0,isModal:!1,computeScrollContainer:null,closeWhenLinkInside:!1,handleContainerClick: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")&&K(t)},handleWindowClick:e=>{t.container.contains(e.target)||e.target===document.body||event.target.closest('[class*="select2-container"]')||e.target.classList.contains("ct-header-trigger")||e.target.closest(".ct-header-trigger")||document.body.hasAttribute("data-panel")&&K(t)}},t);const n=()=>{if(document.body.hasAttribute("data-panel")&&!t.forceOpen)if(t.isModal&&!t.container.classList.contains("active")){const e=document.querySelector(".ct-header-trigger");e&&e.click(),setTimeout(()=>{z(t)},600)}else K(t);else z(t);t.closeWhenLinkInside&&(t.container.hasListener||(t.container.hasListener=!0,t.container.addEventListener("click",e=>{e.target&&e.target.matches("a")&&K(t,{closeInstant:"#"!==e.target.getAttribute("href")[0]})})))},o=ct_localizations.dynamic_styles_selectors.find(e=>t.container.matches(e.selector));o?Object(U.b)(o.url).then(()=>{n()}):n()};R.a.on("ct:offcanvas:force-close",e=>K(e));const X=(e,t)=>{let{event:n,focus:o=!1}=t;Q(n,{isModal:!0,container:document.querySelector(e.hash),clickOutside:!0,focus:o})}}}]);