(window.blocksyJsonP=window.blocksyJsonP||[]).push([[1],{28:function(e,n,t){var o,r,i;r=[n],void 0===(i="function"==typeof(o=function(e){"use strict";function n(e){if(Array.isArray(e)){for(var n=0,t=Array(e.length);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]"],m=v.join(","),y=m+", [data-focus-guard]",p=function(e,n){return e.reduce((function(e,t){return e.concat(r(t.querySelectorAll(n?y:m)),t.parentNode?r(t.parentNode.querySelectorAll(v.join(","))).filter((function(e){return e===t})):[])}),[])},b=function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.push(n),n.parentNode&&e(n.parentNode,t),t},h=function(e,n){for(var t=b(e),o=b(n),r=0;r=0)return i}return!1},g=function(e){return r(e).filter((function(e){return function e(n){return!n||n===document||n.nodeType===Node.DOCUMENT_NODE||!((t=window.getComputedStyle(n,null))&&t.getPropertyValue&&("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility")))&&e(n.parentNode);var t}(e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},w=function(e,n){return s(g(p(e,n)),!0,n)},S=function(e){return g((n=e.querySelectorAll("[data-autofocus-inside]"),r(n).map((function(e){return p([e])})).reduce((function(e,n){return e.concat(n)}),[])));var n},O=function(e){return"INPUT"===e.tagName&&"radio"===e.type},E=function(e,n){return n.filter(O).filter((function(n){return n.name===e.name})).filter((function(e){return e.checked}))[0]||e},k=function(e,n){return e.length>1&&O(e[n])&&e[n].name?e.indexOf(E(e[n],e)):n},x=function(e){return e[0]&&e.length>1&&O(e[0])&&e[0].name?E(e[0],e):e[0]},L=function(e){return e&&e.dataset&&e.dataset.focusGuard},q=function(e){return!L(e)},A=function(e,n,t){var o=i(e),r=i(n),c=o[0],a=null;return r.filter(Boolean).forEach((function(e){a=h(a||e,e)||a,t.filter(Boolean).forEach((function(e){var n=h(c,e);n&&(a=!a||n.contains(a)?n:h(n,a))}))})),a},P=function(e,n){var t=document&&document.activeElement,o=u(e).filter(q),r=A(t||e,e,o),i=w(o).filter((function(e){var n=e.node;return q(n)}));if(i[0]||(i=(c=o,s(g(p(c)),!1)).filter((function(e){var n=e.node;return q(n)})))[0]){var c,a,l,d,f,v=w([r]).map((function(e){return e.node})),m=(a=v,l=i,d=new Map,l.forEach((function(e){return d.set(e.node,e)})),a.map((function(e){return d.get(e)})).filter(Boolean)),y=m.map((function(e){return e.node})),b=function(e,n,t,o,r){var i=e.length,c=e[0],a=e[i-1],u=L(t);if(!(e.indexOf(t)>=0)){var l=n.indexOf(t),d=n.indexOf(o||l),f=e.indexOf(o),s=l-d,v=n.indexOf(c),m=n.indexOf(a),y=k(e,0),p=k(e,i-1);return-1===l||-1===f?e.indexOf(r&&r.length?x(r):x(e)):!s&&f>=0?f:l<=v&&u&&Math.abs(s)>1?p:l>=v&&u&&Math.abs(s)>1?y:s&&Math.abs(s)>1?f:l<=v?p:l>m?y:s?Math.abs(s)>1?f:(i+f+s)%i:void 0}}(y,v,t,n,y.filter((f=function(e){return e.reduce((function(e,n){return e.concat(S(n))}),[])}(o),function(e){return!!e.autofocus||e.dataset&&!!e.dataset.autofocus||f.indexOf(e)>=0})));return void 0===b?b:m[b]}},T=0,j=!1,B=function(e,n){var t,o=P(e,n);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++,(t=o.node).focus(),t.contentWindow&&t.contentWindow.focus(),T--}},C=0,N=null,I=function(){return document&&document.activeElement===document.body||c()},M=function(e){C=e,e&&function(){var e=!1;if(C){var n=C;I()||(n&&!d(n)&&(e=B(n,N)),N=document.activeElement)}}()},D=[],W=function(e){return!!M((n=D,n.filter((function(e){return e})).slice(-1)[0]))&&(e&&e.preventDefault(),!0);var n},G={on:function(e){0===D.length&&document.addEventListener("focusin",W),D.indexOf(e)<0&&(D.push(e),W())},off:function(e){D=D.filter((function(n){return n!==e})),W(),0===D.length&&document.removeEventListener("focusin",W)}};function U(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function R(e){for(var n=1;n-1?":left":e.container.dataset.behaviour.indexOf("right")>-1?":right":"")),e.container.addEventListener(e.container.dataset.behaviour.indexOf("side")>-1?"transitionend":"animationend",(function(){}),{once:!0}),e.forceOpen||document.addEventListener("keyup",(function(n){var t=n.keyCode;n.target;27===t&&(n.preventDefault(),document.body.hasAttribute("data-panel")&&F(e))}),{once:!0}),e.container&&e.container.querySelector(".close-button")&&e.container.querySelector(".close-button").addEventListener("click",(function(n){n.preventDefault(),F(e)}),{once:!0}),(e.scrollContainer||e.container.querySelector(".content-container"))&&(e.skipScrollLock||(n=e.scrollContainer||e.container.querySelector(".content-container"),Object(o.disableBodyScroll)(n,{reserveScrollBarGap:!0}),G.on(e.container.querySelector(".content-container")))),e.forceOpen||requestAnimationFrame((function(){return window.addEventListener("click",e.handleWindowClick)}))},F=function(e){if(e=R({onClose:function(){},container:null},e),!document.body.hasAttribute("data-panel"))return e.container.classList.remove("active"),void e.onClose();e.container.classList.remove("active"),document.body.dataset.panel="out",e.container.addEventListener("transitionend",(function(){setTimeout((function(){var n;document.body.removeAttribute("data-panel"),ctEvents.trigger("ct:modal:closed",e.container),e.skipScrollLock||(n=e.scrollContainer||e.container.querySelector(".content-container"),Object(o.enableBodyScroll)(n,{reserveScrollBarGap:!0})),G.off(e.container.querySelector(".content-container"))}),300)}),{once:!0});window.removeEventListener("click",e.handleWindowClick),e.onClose()},H=function(e,n){if(e.preventDefault(),n=R({onClose:function(){},container:null,focus:!0,clickOutside:!1,isModal:!1,forceOpen:!1,scrollContainer:null,skipScrollLock:!1,handleWindowClick:function(e){n.container.contains(e.target)||document.body.hasAttribute("data-panel")&&F(n)}},n),document.body.hasAttribute("data-panel")&&!n.forceOpen)if(n.isModal&&!n.container.classList.contains("active")){var t=document.querySelector(".ct-header-trigger");t&&t.click(),setTimeout((function(){_(n)}),450)}else F(n);else _(n)};ctEvents.on("ct:offcanvas:force-close",(function(e){return F(e)}));var J=function(e){e.hasSearchEventListener||(e.hasSearchEventListener=!0,e.addEventListener("click",(function(n){H(n,{isModal:!0,container:document.querySelector(e.hash)})})))}}}]);