preline
Version:
Preline UI is an open-source set of prebuilt UI components based on the utility-first Tailwind CSS framework.
25 lines • 255 kB
JavaScript
var e={316:(e,t,i)=>{function s(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function n(e){return e instanceof s(e).Element||e instanceof Element}function o(e){return e instanceof s(e).HTMLElement||e instanceof HTMLElement}function l(e){return"undefined"!=typeof ShadowRoot&&(e instanceof s(e).ShadowRoot||e instanceof ShadowRoot)}i.d(t,{n4:()=>ve});var r=Math.max,a=Math.min,h=Math.round;function d(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function c(){return!/^((?!chrome|android).)*safari/i.test(d())}function u(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var l=e.getBoundingClientRect(),r=1,a=1;t&&o(e)&&(r=e.offsetWidth>0&&h(l.width)/e.offsetWidth||1,a=e.offsetHeight>0&&h(l.height)/e.offsetHeight||1);var d=(n(e)?s(e):window).visualViewport,u=!c()&&i,p=(l.left+(u&&d?d.offsetLeft:0))/r,m=(l.top+(u&&d?d.offsetTop:0))/a,g=l.width/r,v=l.height/a;return{width:g,height:v,top:m,right:p+g,bottom:m+v,left:p,x:p,y:m}}function p(e){var t=s(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function m(e){return e?(e.nodeName||"").toLowerCase():null}function g(e){return((n(e)?e.ownerDocument:e.document)||window.document).documentElement}function v(e){return u(g(e)).left+p(e).scrollLeft}function f(e){return s(e).getComputedStyle(e)}function w(e){var t=f(e),i=t.overflow,s=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+n+s)}function y(e,t,i){void 0===i&&(i=!1);var n,l,r=o(t),a=o(t)&&function(e){var t=e.getBoundingClientRect(),i=h(t.width)/e.offsetWidth||1,s=h(t.height)/e.offsetHeight||1;return 1!==i||1!==s}(t),d=g(t),c=u(e,a,i),f={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(r||!r&&!i)&&(("body"!==m(t)||w(d))&&(f=(n=t)!==s(n)&&o(n)?{scrollLeft:(l=n).scrollLeft,scrollTop:l.scrollTop}:p(n)),o(t)?((y=u(t,!0)).x+=t.clientLeft,y.y+=t.clientTop):d&&(y.x=v(d))),{x:c.left+f.scrollLeft-y.x,y:c.top+f.scrollTop-y.y,width:c.width,height:c.height}}function b(e){var t=u(e),i=e.offsetWidth,s=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:s}}function C(e){return"html"===m(e)?e:e.assignedSlot||e.parentNode||(l(e)?e.host:null)||g(e)}function S(e){return["html","body","#document"].indexOf(m(e))>=0?e.ownerDocument.body:o(e)&&w(e)?e:S(C(e))}function L(e,t){var i;void 0===t&&(t=[]);var n=S(e),o=n===(null==(i=e.ownerDocument)?void 0:i.body),l=s(n),r=o?[l].concat(l.visualViewport||[],w(n)?n:[]):n,a=t.concat(r);return o?a:a.concat(L(C(r)))}function x(e){return["table","td","th"].indexOf(m(e))>=0}function I(e){return o(e)&&"fixed"!==f(e).position?e.offsetParent:null}function E(e){for(var t=s(e),i=I(e);i&&x(i)&&"static"===f(i).position;)i=I(i);return i&&("html"===m(i)||"body"===m(i)&&"static"===f(i).position)?t:i||function(e){var t=/firefox/i.test(d());if(/Trident/i.test(d())&&o(e)&&"fixed"===f(e).position)return null;var i=C(e);for(l(i)&&(i=i.host);o(i)&&["html","body"].indexOf(m(i))<0;){var s=f(i);if("none"!==s.transform||"none"!==s.perspective||"paint"===s.contain||-1!==["transform","perspective"].indexOf(s.willChange)||t&&"filter"===s.willChange||t&&s.filter&&"none"!==s.filter)return i;i=i.parentNode}return null}(e)||t}var k="top",T="bottom",A="right",O="left",P="auto",$=[k,T,A,O],D="start",B="end",q="clippingParents",M="viewport",H="popper",N="reference",F=$.reduce((function(e,t){return e.concat([t+"-"+D,t+"-"+B])}),[]),V=[].concat($,[P]).reduce((function(e,t){return e.concat([t,t+"-"+D,t+"-"+B])}),[]),R=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function z(e){var t=new Map,i=new Set,s=[];function n(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var s=t.get(e);s&&n(s)}})),s.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||n(e)})),s}var j={placement:"bottom",modifiers:[],strategy:"absolute"};function W(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function U(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,s=void 0===i?[]:i,o=t.defaultOptions,l=void 0===o?j:o;return function(e,t,i){void 0===i&&(i=l);var o,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},j,l),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},h=[],d=!1,c={state:a,setOptions:function(i){var o="function"==typeof i?i(a.options):i;u(),a.options=Object.assign({},l,a.options,o),a.scrollParents={reference:n(e)?L(e):e.contextElement?L(e.contextElement):[],popper:L(t)};var r,d,p=function(e){var t=z(e);return R.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}((r=[].concat(s,a.options.modifiers),d=r.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e}),{}),Object.keys(d).map((function(e){return d[e]}))));return a.orderedModifiers=p.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,s=void 0===i?{}:i,n=e.effect;if("function"==typeof n){var o=n({state:a,name:t,instance:c,options:s}),l=function(){};h.push(o||l)}})),c.update()},forceUpdate:function(){if(!d){var e=a.elements,t=e.reference,i=e.popper;if(W(t,i)){a.rects={reference:y(t,E(i),"fixed"===a.options.strategy),popper:b(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var s=0;s<a.orderedModifiers.length;s++)if(!0!==a.reset){var n=a.orderedModifiers[s],o=n.fn,l=n.options,r=void 0===l?{}:l,h=n.name;"function"==typeof o&&(a=o({state:a,options:r,name:h,instance:c})||a)}else a.reset=!1,s=-1}}},update:(o=function(){return new Promise((function(e){c.forceUpdate(),e(a)}))},function(){return r||(r=new Promise((function(e){Promise.resolve().then((function(){r=void 0,e(o())}))}))),r}),destroy:function(){u(),d=!0}};if(!W(e,t))return c;function u(){h.forEach((function(e){return e()})),h=[]}return c.setOptions(i).then((function(e){!d&&i.onFirstUpdate&&i.onFirstUpdate(e)})),c}}var J={passive:!0};function Q(e){return e.split("-")[0]}function K(e){return e.split("-")[1]}function X(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Z(e){var t,i=e.reference,s=e.element,n=e.placement,o=n?Q(n):null,l=n?K(n):null,r=i.x+i.width/2-s.width/2,a=i.y+i.height/2-s.height/2;switch(o){case k:t={x:r,y:i.y-s.height};break;case T:t={x:r,y:i.y+i.height};break;case A:t={x:i.x+i.width,y:a};break;case O:t={x:i.x-s.width,y:a};break;default:t={x:i.x,y:i.y}}var h=o?X(o):null;if(null!=h){var d="y"===h?"height":"width";switch(l){case D:t[h]=t[h]-(i[d]/2-s[d]/2);break;case B:t[h]=t[h]+(i[d]/2-s[d]/2)}}return t}var G={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _(e){var t,i=e.popper,n=e.popperRect,o=e.placement,l=e.variation,r=e.offsets,a=e.position,d=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,p=e.isFixed,m=r.x,v=void 0===m?0:m,w=r.y,y=void 0===w?0:w,b="function"==typeof u?u({x:v,y}):{x:v,y};v=b.x,y=b.y;var C=r.hasOwnProperty("x"),S=r.hasOwnProperty("y"),L=O,x=k,I=window;if(c){var P=E(i),$="clientHeight",D="clientWidth";if(P===s(i)&&"static"!==f(P=g(i)).position&&"absolute"===a&&($="scrollHeight",D="scrollWidth"),o===k||(o===O||o===A)&&l===B)x=T,y-=(p&&P===I&&I.visualViewport?I.visualViewport.height:P[$])-n.height,y*=d?1:-1;if(o===O||(o===k||o===T)&&l===B)L=A,v-=(p&&P===I&&I.visualViewport?I.visualViewport.width:P[D])-n.width,v*=d?1:-1}var q,M=Object.assign({position:a},c&&G),H=!0===u?function(e,t){var i=e.x,s=e.y,n=t.devicePixelRatio||1;return{x:h(i*n)/n||0,y:h(s*n)/n||0}}({x:v,y},s(i)):{x:v,y};return v=H.x,y=H.y,d?Object.assign({},M,((q={})[x]=S?"0":"",q[L]=C?"0":"",q.transform=(I.devicePixelRatio||1)<=1?"translate("+v+"px, "+y+"px)":"translate3d("+v+"px, "+y+"px, 0)",q)):Object.assign({},M,((t={})[x]=S?y+"px":"",t[L]=C?v+"px":"",t.transform="",t))}const Y={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,s=e.name,n=i.offset,o=void 0===n?[0,0]:n,l=V.reduce((function(e,i){return e[i]=function(e,t,i){var s=Q(e),n=[O,k].indexOf(s)>=0?-1:1,o="function"==typeof i?i(Object.assign({},t,{placement:e})):i,l=o[0],r=o[1];return l=l||0,r=(r||0)*n,[O,A].indexOf(s)>=0?{x:r,y:l}:{x:l,y:r}}(i,t.rects,o),e}),{}),r=l[t.placement],a=r.x,h=r.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=h),t.modifiersData[s]=l}};var ee={left:"right",right:"left",bottom:"top",top:"bottom"};function te(e){return e.replace(/left|right|bottom|top/g,(function(e){return ee[e]}))}var ie={start:"end",end:"start"};function se(e){return e.replace(/start|end/g,(function(e){return ie[e]}))}function ne(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&l(i)){var s=t;do{if(s&&e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function oe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function le(e,t,i){return t===M?oe(function(e,t){var i=s(e),n=g(e),o=i.visualViewport,l=n.clientWidth,r=n.clientHeight,a=0,h=0;if(o){l=o.width,r=o.height;var d=c();(d||!d&&"fixed"===t)&&(a=o.offsetLeft,h=o.offsetTop)}return{width:l,height:r,x:a+v(e),y:h}}(e,i)):n(t)?function(e,t){var i=u(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):oe(function(e){var t,i=g(e),s=p(e),n=null==(t=e.ownerDocument)?void 0:t.body,o=r(i.scrollWidth,i.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),l=r(i.scrollHeight,i.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-s.scrollLeft+v(e),h=-s.scrollTop;return"rtl"===f(n||i).direction&&(a+=r(i.clientWidth,n?n.clientWidth:0)-o),{width:o,height:l,x:a,y:h}}(g(e)))}function re(e,t,i,s){var l="clippingParents"===t?function(e){var t=L(C(e)),i=["absolute","fixed"].indexOf(f(e).position)>=0&&o(e)?E(e):e;return n(i)?t.filter((function(e){return n(e)&&ne(e,i)&&"body"!==m(e)})):[]}(e):[].concat(t),h=[].concat(l,[i]),d=h[0],c=h.reduce((function(t,i){var n=le(e,i,s);return t.top=r(n.top,t.top),t.right=a(n.right,t.right),t.bottom=a(n.bottom,t.bottom),t.left=r(n.left,t.left),t}),le(e,d,s));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function ae(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function he(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}function de(e,t){void 0===t&&(t={});var i=t,s=i.placement,o=void 0===s?e.placement:s,l=i.strategy,r=void 0===l?e.strategy:l,a=i.boundary,h=void 0===a?q:a,d=i.rootBoundary,c=void 0===d?M:d,p=i.elementContext,m=void 0===p?H:p,v=i.altBoundary,f=void 0!==v&&v,w=i.padding,y=void 0===w?0:w,b=ae("number"!=typeof y?y:he(y,$)),C=m===H?N:H,S=e.rects.popper,L=e.elements[f?C:m],x=re(n(L)?L:L.contextElement||g(e.elements.popper),h,c,r),I=u(e.elements.reference),E=Z({reference:I,element:S,strategy:"absolute",placement:o}),O=oe(Object.assign({},S,E)),P=m===H?O:I,D={top:x.top-P.top+b.top,bottom:P.bottom-x.bottom+b.bottom,left:x.left-P.left+b.left,right:P.right-x.right+b.right},B=e.modifiersData.offset;if(m===H&&B){var F=B[o];Object.keys(D).forEach((function(e){var t=[A,T].indexOf(e)>=0?1:-1,i=[k,T].indexOf(e)>=0?"y":"x";D[e]+=F[i]*t}))}return D}function ce(e,t,i){return r(e,a(t,i))}const ue={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,s=e.name,n=i.mainAxis,o=void 0===n||n,l=i.altAxis,h=void 0!==l&&l,d=i.boundary,c=i.rootBoundary,u=i.altBoundary,p=i.padding,m=i.tether,g=void 0===m||m,v=i.tetherOffset,f=void 0===v?0:v,w=de(t,{boundary:d,rootBoundary:c,padding:p,altBoundary:u}),y=Q(t.placement),C=K(t.placement),S=!C,L=X(y),x="x"===L?"y":"x",I=t.modifiersData.popperOffsets,P=t.rects.reference,$=t.rects.popper,B="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,q="number"==typeof B?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(I){if(o){var N,F="y"===L?k:O,V="y"===L?T:A,R="y"===L?"height":"width",z=I[L],j=z+w[F],W=z-w[V],U=g?-$[R]/2:0,J=C===D?P[R]:$[R],Z=C===D?-$[R]:-P[R],G=t.elements.arrow,_=g&&G?b(G):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Y[F],te=Y[V],ie=ce(0,P[R],_[R]),se=S?P[R]/2-U-ie-ee-q.mainAxis:J-ie-ee-q.mainAxis,ne=S?-P[R]/2+U+ie+te+q.mainAxis:Z+ie+te+q.mainAxis,oe=t.elements.arrow&&E(t.elements.arrow),le=oe?"y"===L?oe.clientTop||0:oe.clientLeft||0:0,re=null!=(N=null==M?void 0:M[L])?N:0,ae=z+ne-re,he=ce(g?a(j,z+se-re-le):j,z,g?r(W,ae):W);I[L]=he,H[L]=he-z}if(h){var ue,pe="x"===L?k:O,me="x"===L?T:A,ge=I[x],ve="y"===x?"height":"width",fe=ge+w[pe],we=ge-w[me],ye=-1!==[k,O].indexOf(y),be=null!=(ue=null==M?void 0:M[x])?ue:0,Ce=ye?fe:ge-P[ve]-$[ve]-be+q.altAxis,Se=ye?ge+P[ve]+$[ve]-be-q.altAxis:we,Le=g&&ye?function(e,t,i){var s=ce(e,t,i);return s>i?i:s}(Ce,ge,Se):ce(g?Ce:fe,ge,g?Se:we);I[x]=Le,H[x]=Le-ge}t.modifiersData[s]=H}},requiresIfExists:["offset"]};const pe={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,s=e.name,n=e.options,o=i.elements.arrow,l=i.modifiersData.popperOffsets,r=Q(i.placement),a=X(r),h=[O,A].indexOf(r)>=0?"height":"width";if(o&&l){var d=function(e,t){return ae("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:he(e,$))}(n.padding,i),c=b(o),u="y"===a?k:O,p="y"===a?T:A,m=i.rects.reference[h]+i.rects.reference[a]-l[a]-i.rects.popper[h],g=l[a]-i.rects.reference[a],v=E(o),f=v?"y"===a?v.clientHeight||0:v.clientWidth||0:0,w=m/2-g/2,y=d[u],C=f-c[h]-d[p],S=f/2-c[h]/2+w,L=ce(y,S,C),x=a;i.modifiersData[s]=((t={})[x]=L,t.centerOffset=L-S,t)}},effect:function(e){var t=e.state,i=e.options.element,s=void 0===i?"[data-popper-arrow]":i;null!=s&&("string"!=typeof s||(s=t.elements.popper.querySelector(s)))&&ne(t.elements.popper,s)&&(t.elements.arrow=s)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function me(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function ge(e){return[k,A,T,O].some((function(t){return e[t]>=0}))}var ve=U({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,o=n.scroll,l=void 0===o||o,r=n.resize,a=void 0===r||r,h=s(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&d.forEach((function(e){e.addEventListener("scroll",i.update,J)})),a&&h.addEventListener("resize",i.update,J),function(){l&&d.forEach((function(e){e.removeEventListener("scroll",i.update,J)})),a&&h.removeEventListener("resize",i.update,J)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=Z({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,s=i.gpuAcceleration,n=void 0===s||s,o=i.adaptive,l=void 0===o||o,r=i.roundOffsets,a=void 0===r||r,h={placement:Q(t.placement),variation:K(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,_(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,_(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},s=t.attributes[e]||{},n=t.elements[e];o(n)&&m(n)&&(Object.assign(n.style,i),Object.keys(s).forEach((function(e){var t=s[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var s=t.elements[e],n=t.attributes[e]||{},l=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});o(s)&&m(s)&&(Object.assign(s.style,l),Object.keys(n).forEach((function(e){s.removeAttribute(e)})))}))}},requires:["computeStyles"]},Y,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,s=e.name;if(!t.modifiersData[s]._skip){for(var n=i.mainAxis,o=void 0===n||n,l=i.altAxis,r=void 0===l||l,a=i.fallbackPlacements,h=i.padding,d=i.boundary,c=i.rootBoundary,u=i.altBoundary,p=i.flipVariations,m=void 0===p||p,g=i.allowedAutoPlacements,v=t.options.placement,f=Q(v),w=a||(f===v||!m?[te(v)]:function(e){if(Q(e)===P)return[];var t=te(e);return[se(e),t,se(t)]}(v)),y=[v].concat(w).reduce((function(e,i){return e.concat(Q(i)===P?function(e,t){void 0===t&&(t={});var i=t,s=i.placement,n=i.boundary,o=i.rootBoundary,l=i.padding,r=i.flipVariations,a=i.allowedAutoPlacements,h=void 0===a?V:a,d=K(s),c=d?r?F:F.filter((function(e){return K(e)===d})):$,u=c.filter((function(e){return h.indexOf(e)>=0}));0===u.length&&(u=c);var p=u.reduce((function(t,i){return t[i]=de(e,{placement:i,boundary:n,rootBoundary:o,padding:l})[Q(i)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:i,boundary:d,rootBoundary:c,padding:h,flipVariations:m,allowedAutoPlacements:g}):i)}),[]),b=t.rects.reference,C=t.rects.popper,S=new Map,L=!0,x=y[0],I=0;I<y.length;I++){var E=y[I],B=Q(E),q=K(E)===D,M=[k,T].indexOf(B)>=0,H=M?"width":"height",N=de(t,{placement:E,boundary:d,rootBoundary:c,altBoundary:u,padding:h}),R=M?q?A:O:q?T:k;b[H]>C[H]&&(R=te(R));var z=te(R),j=[];if(o&&j.push(N[B]<=0),r&&j.push(N[R]<=0,N[z]<=0),j.every((function(e){return e}))){x=E,L=!1;break}S.set(E,j)}if(L)for(var W=function(e){var t=y.find((function(t){var i=S.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},U=m?3:1;U>0;U--){if("break"===W(U))break}t.placement!==x&&(t.modifiersData[s]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},ue,pe,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,s=t.rects.reference,n=t.rects.popper,o=t.modifiersData.preventOverflow,l=de(t,{elementContext:"reference"}),r=de(t,{altBoundary:!0}),a=me(l,s),h=me(r,n,o),d=ge(a),c=ge(h);t.modifiersData[i]={referenceClippingOffsets:a,popperEscapeOffsets:h,isReferenceHidden:d,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":c})}}]})},189:(e,t,i)=>{i.d(t,{Fy:()=>o,In:()=>n,LO:()=>a,fp:()=>l,jU:()=>r,lP:()=>s});const s={auto:"auto","auto-start":"auto-start","auto-end":"auto-end",top:"top","top-left":"top-start","top-right":"top-end",bottom:"bottom","bottom-left":"bottom-start","bottom-right":"bottom-end",right:"right","right-start":"right-start","right-end":"right-end",left:"left","left-start":"left-start","left-end":"left-end"},n=["Escape","ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Home","End","Enter"],o=["ArrowUp","ArrowLeft","ArrowDown","ArrowRight","Home","End"],l=["ArrowUp","ArrowLeft","ArrowDown","ArrowRight","Home","End","Escape","Enter","Space","Tab"],r=["ArrowUp","ArrowLeft","ArrowDown","ArrowRight","Home","End","Escape","Enter"],a={xs:0,sm:640,md:768,lg:1024,xl:1280,"2xl":1536}},290:(e,t,i)=>{i.d(t,{A:()=>l});var s=i(926),n=i(615);
/*
* HSAccordion
* @version: 2.6.0
* @author: Preline Labs Ltd.
* @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)
* Copyright 2024 Preline Labs Ltd.
*/
class o extends n.A{constructor(e,t,i){super(e,t,i),this.toggle=this.el.querySelector(".hs-accordion-toggle")||null,this.content=this.el.querySelector(".hs-accordion-content")||null,this.update(),this.isToggleStopPropagated=(0,s.PK)((0,s.gj)(this.toggle,"--stop-propagation","false")||"false"),this.toggle&&this.content&&this.init()}init(){this.createCollection(window.$hsAccordionCollection,this),this.onToggleClickListener=e=>this.toggleClick(e),this.toggle.addEventListener("click",this.onToggleClickListener)}toggleClick(e){this.isToggleStopPropagated&&e.stopPropagation(),this.el.classList.contains("active")?this.hide():this.show()}show(){var e;if(this.group&&!this.isAlwaysOpened&&this.group.querySelector(":scope > .hs-accordion.active")&&this.group.querySelector(":scope > .hs-accordion.active")!==this.el){window.$hsAccordionCollection.find((e=>e.element.el===this.group.querySelector(":scope > .hs-accordion.active"))).element.hide()}if(this.el.classList.contains("active"))return!1;this.el.classList.add("active"),(null===(e=null==this?void 0:this.toggle)||void 0===e?void 0:e.ariaExpanded)&&(this.toggle.ariaExpanded="true"),this.content.style.display="block",this.content.style.height="0",setTimeout((()=>{this.content.style.height=`${this.content.scrollHeight}px`,(0,s.yd)(this.content,(()=>{this.content.style.display="block",this.content.style.height="",this.fireEvent("open",this.el),(0,s.JD)("open.hs.accordion",this.el,this.el)}))}))}hide(){var e;if(!this.el.classList.contains("active"))return!1;this.el.classList.remove("active"),(null===(e=null==this?void 0:this.toggle)||void 0===e?void 0:e.ariaExpanded)&&(this.toggle.ariaExpanded="false"),this.content.style.height=`${this.content.scrollHeight}px`,setTimeout((()=>{this.content.style.height="0"})),(0,s.yd)(this.content,(()=>{this.content.style.display="",this.content.style.height="0",this.fireEvent("close",this.el),(0,s.JD)("close.hs.accordion",this.el,this.el)}))}update(){if(this.group=this.el.closest(".hs-accordion-group")||null,!this.group)return!1;this.isAlwaysOpened=this.group.hasAttribute("data-hs-accordion-always-open")||!1,window.$hsAccordionCollection.map((e=>(e.id===this.el.id&&(e.element.group=this.group,e.element.isAlwaysOpened=this.isAlwaysOpened),e)))}destroy(){var e;(null===(e=null==o?void 0:o.selectable)||void 0===e?void 0:e.length)&&o.selectable.forEach((e=>{e.listeners.forEach((({el:e,listener:t})=>{e.removeEventListener("click",t)}))})),this.onToggleClickListener&&this.toggle.removeEventListener("click",this.onToggleClickListener),this.toggle=null,this.content=null,this.group=null,this.onToggleClickListener=null,window.$hsAccordionCollection=window.$hsAccordionCollection.filter((({element:e})=>e.el!==this.el))}static getInstance(e,t){const i=window.$hsAccordionCollection.find((t=>t.element.el===("string"==typeof e?document.querySelector(e):e)));return i?t?i:i.element.el:null}static show(e){const t=window.$hsAccordionCollection.find((t=>t.element.el===("string"==typeof e?document.querySelector(e):e)));t&&"block"!==t.element.content.style.display&&t.element.show()}static hide(e){const t=window.$hsAccordionCollection.find((t=>t.element.el===("string"==typeof e?document.querySelector(e):e)));t&&"block"===t.element.content.style.display&&t.element.hide()}static autoInit(){window.$hsAccordionCollection||(window.$hsAccordionCollection=[]),window.$hsAccordionCollection&&(window.$hsAccordionCollection=window.$hsAccordionCollection.filter((({element:e})=>document.contains(e.el)))),document.querySelectorAll(".hs-accordion:not(.--prevent-on-load-init)").forEach((e=>{window.$hsAccordionCollection.find((t=>{var i;return(null===(i=null==t?void 0:t.element)||void 0===i?void 0:i.el)===e}))||new o(e)}))}static treeView(){if(!document.querySelectorAll(".hs-accordion-treeview-root").length)return!1;this.selectable=[],document.querySelectorAll(".hs-accordion-treeview-root").forEach((e=>{const t=null==e?void 0:e.getAttribute("data-hs-accordion-options"),i=t?JSON.parse(t):{};this.selectable.push({el:e,options:Object.assign({},i),listeners:[]})})),this.selectable.length&&this.selectable.forEach((e=>{const{el:t}=e;t.querySelectorAll(".hs-accordion-selectable").forEach((t=>{const i=i=>this.onSelectableClick(i,e,t);t.addEventListener("click",i),e.listeners.push({el:t,listener:i})}))}))}static toggleSelected(e,t){t.classList.contains("selected")?t.classList.remove("selected"):(e.el.querySelectorAll(".hs-accordion-selectable").forEach((e=>e.classList.remove("selected"))),t.classList.add("selected"))}static on(e,t,i){const s=window.$hsAccordionCollection.find((e=>e.element.el===("string"==typeof t?document.querySelector(t):t)));s&&(s.element.events[e]=i)}}o.onSelectableClick=(e,t,i)=>{e.stopPropagation(),o.toggleSelected(t,i)},window.addEventListener("load",(()=>{o.autoInit(),document.querySelectorAll(".hs-accordion-treeview-root").length&&o.treeView()})),"undefined"!=typeof window&&(window.HSAccordion=o);const l=o},615:(e,t,i)=>{i.d(t,{A:()=>s});class s{constructor(e,t,i){this.el=e,this.options=t,this.events=i,this.el=e,this.options=t,this.events={}}createCollection(e,t){var i;e.push({id:(null===(i=null==t?void 0:t.el)||void 0===i?void 0:i.id)||e.length+1,element:t})}fireEvent(e,t=null){if(this.events.hasOwnProperty(e))return this.events[e](t)}on(e,t){this.events[e]=t}}},238:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(926),n=i(615),o=i(189);
/*
* HSCarousel
* @version: 2.6.0
* @author: Preline Labs Ltd.
* @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)
* Copyright 2024 Preline Labs Ltd.
*/
class l extends n.A{constructor(e,t){var i,s,n,o,l;super(e,t);const r=e.getAttribute("data-hs-carousel"),a=r?JSON.parse(r):{},h=Object.assign(Object.assign({},a),t);this.currentIndex=h.currentIndex||0,this.loadingClasses=h.loadingClasses?`${h.loadingClasses}`.split(","):null,this.dotsItemClasses=h.dotsItemClasses?h.dotsItemClasses:null,this.isAutoHeight=void 0!==h.isAutoHeight&&h.isAutoHeight,this.isAutoPlay=void 0!==h.isAutoPlay&&h.isAutoPlay,this.isCentered=void 0!==h.isCentered&&h.isCentered,this.isDraggable=void 0!==h.isDraggable&&h.isDraggable,this.isInfiniteLoop=void 0!==h.isInfiniteLoop&&h.isInfiniteLoop,this.isRTL=void 0!==h.isRTL&&h.isRTL,this.isSnap=void 0!==h.isSnap&&h.isSnap,this.hasSnapSpacers=void 0===h.hasSnapSpacers||h.hasSnapSpacers,this.speed=h.speed||4e3,this.updateDelay=h.updateDelay||0,this.slidesQty=h.slidesQty||1,this.loadingClassesRemove=(null===(i=this.loadingClasses)||void 0===i?void 0:i[0])?this.loadingClasses[0].split(" "):"opacity-0",this.loadingClassesAdd=(null===(s=this.loadingClasses)||void 0===s?void 0:s[1])?this.loadingClasses[1].split(" "):"",this.afterLoadingClassesAdd=(null===(n=this.loadingClasses)||void 0===n?void 0:n[2])?this.loadingClasses[2].split(" "):"",this.container=this.el.querySelector(".hs-carousel")||null,this.inner=this.el.querySelector(".hs-carousel-body")||null,this.slides=this.el.querySelectorAll(".hs-carousel-slide")||[],this.prev=this.el.querySelector(".hs-carousel-prev")||null,this.next=this.el.querySelector(".hs-carousel-next")||null,this.dots=this.el.querySelector(".hs-carousel-pagination")||null,this.info=this.el.querySelector(".hs-carousel-info")||null,this.infoTotal=(null===(o=null==this?void 0:this.info)||void 0===o?void 0:o.querySelector(".hs-carousel-info-total"))||null,this.infoCurrent=(null===(l=null==this?void 0:this.info)||void 0===l?void 0:l.querySelector(".hs-carousel-info-current"))||null,this.sliderWidth=this.el.getBoundingClientRect().width,this.isDragging=!1,this.dragStartX=null,this.initialTranslateX=null,this.touchX={start:0,end:0},this.resizeContainer=document.querySelector("body"),this.resizeContainerWidth=0,this.init()}setIsSnap(){const e=this.container.getBoundingClientRect(),t=e.left+e.width/2;let i=null,s=null,n=1/0;Array.from(this.inner.children).forEach((e=>{const s=e.getBoundingClientRect(),o=this.inner.getBoundingClientRect(),l=s.left+s.width/2-o.left,r=Math.abs(t-(o.left+l));r<n&&(n=r,i=e)})),i&&(s=Array.from(this.slides).findIndex((e=>e===i))),this.setIndex(s),this.dots&&this.setCurrentDot()}prevClick(){this.goToPrev(),this.isAutoPlay&&(this.resetTimer(),this.setTimer())}nextClick(){this.goToNext(),this.isAutoPlay&&(this.resetTimer(),this.setTimer())}containerScroll(){clearTimeout(this.isScrolling),this.isScrolling=setTimeout((()=>{this.setIsSnap()}),100)}elementTouchStart(e){this.touchX.start=e.changedTouches[0].screenX}elementTouchEnd(e){this.touchX.end=e.changedTouches[0].screenX,this.detectDirection()}innerMouseDown(e){this.handleDragStart(e)}innerTouchStart(e){this.handleDragStart(e)}documentMouseMove(e){this.handleDragMove(e)}documentTouchMove(e){this.handleDragMove(e)}documentMouseUp(){this.handleDragEnd()}documentTouchEnd(){this.handleDragEnd()}dotClick(e){this.goTo(e),this.isAutoPlay&&(this.resetTimer(),this.setTimer())}init(){this.createCollection(window.$hsCarouselCollection,this),this.inner&&(this.calculateWidth(),this.isDraggable&&!this.isSnap&&this.initDragHandling()),this.prev&&(this.onPrevClickListener=()=>this.prevClick(),this.prev.addEventListener("click",this.onPrevClickListener)),this.next&&(this.onNextClickListener=()=>this.nextClick(),this.next.addEventListener("click",this.onNextClickListener)),this.dots&&this.initDots(),this.info&&this.buildInfo(),this.slides.length&&(this.addCurrentClass(),this.isInfiniteLoop||this.addDisabledClass(),this.isAutoPlay&&this.autoPlay()),setTimeout((()=>{this.isSnap&&this.setIsSnap(),this.loadingClassesRemove&&("string"==typeof this.loadingClassesRemove?this.inner.classList.remove(this.loadingClassesRemove):this.inner.classList.remove(...this.loadingClassesRemove)),this.loadingClassesAdd&&("string"==typeof this.loadingClassesAdd?this.inner.classList.add(this.loadingClassesAdd):this.inner.classList.add(...this.loadingClassesAdd)),this.inner&&this.afterLoadingClassesAdd&&setTimeout((()=>{"string"==typeof this.afterLoadingClassesAdd?this.inner.classList.add(this.afterLoadingClassesAdd):this.inner.classList.add(...this.afterLoadingClassesAdd)}))}),400),this.isSnap&&(this.onContainerScrollListener=()=>this.containerScroll(),this.container.addEventListener("scroll",this.onContainerScrollListener)),this.el.classList.add("init"),this.isSnap||(this.onElementTouchStartListener=e=>this.elementTouchStart(e),this.onElementTouchEndListener=e=>this.elementTouchEnd(e),this.el.addEventListener("touchstart",this.onElementTouchStartListener),this.el.addEventListener("touchend",this.onElementTouchEndListener)),this.observeResize()}initDragHandling(){const e=this.inner;this.onInnerMouseDownListener=e=>this.innerMouseDown(e),this.onInnerTouchStartListener=e=>this.innerTouchStart(e),this.onDocumentMouseMoveListener=e=>this.documentMouseMove(e),this.onDocumentTouchMoveListener=e=>this.documentTouchMove(e),this.onDocumentMouseUpListener=()=>this.documentMouseUp(),this.onDocumentTouchEndListener=()=>this.documentTouchEnd(),e&&(e.addEventListener("mousedown",this.onInnerMouseDownListener),e.addEventListener("touchstart",this.onInnerTouchStartListener,{passive:!0}),document.addEventListener("mousemove",this.onDocumentMouseMoveListener),document.addEventListener("touchmove",this.onDocumentTouchMoveListener,{passive:!1}),document.addEventListener("mouseup",this.onDocumentMouseUpListener),document.addEventListener("touchend",this.onDocumentTouchEndListener))}getTranslateXValue(){var e;const t=window.getComputedStyle(this.inner).transform;if("none"!==t){const i=null===(e=t.match(/matrix.*\((.+)\)/))||void 0===e?void 0:e[1].split(", ");if(i){let e=parseFloat(6===i.length?i[4]:i[12]);return this.isRTL&&(e=-e),isNaN(e)||0===e?0:-e}}return 0}removeClickEventWhileDragging(e){e.preventDefault()}handleDragStart(e){e.preventDefault(),this.isDragging=!0,this.dragStartX=this.getEventX(e),this.initialTranslateX=this.isRTL?this.getTranslateXValue():-this.getTranslateXValue(),this.inner.classList.add("dragging")}handleDragMove(e){if(!this.isDragging)return;this.inner.querySelectorAll("a:not(.prevented-click)").forEach((e=>{e.classList.add("prevented-click"),e.addEventListener("click",this.removeClickEventWhileDragging)}));let t=this.getEventX(e)-this.dragStartX;this.isRTL&&(t=-t);const i=this.initialTranslateX+t;this.setTranslate((()=>{let e=this.sliderWidth*this.slides.length/this.getCurrentSlidesQty()-this.sliderWidth;const t=this.sliderWidth,s=(t-t/this.getCurrentSlidesQty())/2,n=this.isCentered?s:0;this.isCentered&&(e+=s);const o=-e;return this.isRTL?i<n?n:i>e?o:-i:i>n?n:i<-e?o:i})())}handleDragEnd(){if(!this.isDragging)return;this.isDragging=!1;const e=this.sliderWidth/this.getCurrentSlidesQty(),t=this.getTranslateXValue();let i=Math.round(t/e);this.isRTL&&(i=Math.round(t/e)),this.inner.classList.remove("dragging"),setTimeout((()=>{this.calculateTransform(i),this.dots&&this.setCurrentDot(),this.dragStartX=null,this.initialTranslateX=null,this.inner.querySelectorAll("a.prevented-click").forEach((e=>{e.classList.remove("prevented-click"),e.removeEventListener("click",this.removeClickEventWhileDragging)}))}))}getEventX(e){return e instanceof MouseEvent?e.clientX:e.touches[0].clientX}getCurrentSlidesQty(){if("object"==typeof this.slidesQty){const e=document.body.clientWidth;let t=0;return Object.keys(this.slidesQty).forEach((i=>{e>=(typeof i+1=="number"?this.slidesQty[i]:o.LO[i])&&(t=this.slidesQty[i])})),t}return this.slidesQty}buildSnapSpacers(){const e=this.inner.querySelector(".hs-snap-before"),t=this.inner.querySelector(".hs-snap-after");e&&e.remove(),t&&t.remove();const i=this.sliderWidth,n=i/2-i/this.getCurrentSlidesQty()/2,o=(0,s.fc)(`<div class="hs-snap-before" style="height: 100%; width: ${n}px"></div>`),l=(0,s.fc)(`<div class="hs-snap-after" style="height: 100%; width: ${n}px"></div>`);this.inner.prepend(o),this.inner.appendChild(l)}initDots(){this.el.querySelectorAll(".hs-carousel-pagination-item").length?this.setDots():this.buildDots(),this.dots&&this.setCurrentDot()}buildDots(){this.dots.innerHTML="";const e=!this.isCentered&&this.slidesQty?this.slides.length-(this.getCurrentSlidesQty()-1):this.slides.length;for(let t=0;t<e;t++){const e=this.buildSingleDot(t);this.dots.append(e)}}setDots(){this.dotsItems=this.dots.querySelectorAll(".hs-carousel-pagination-item"),this.dotsItems.forEach(((e,t)=>{const i=e.getAttribute("data-carousel-pagination-item-target");this.singleDotEvents(e,i?+i:t)}))}goToCurrentDot(){const e=this.dots,t=e.getBoundingClientRect(),i=e.scrollLeft,s=e.scrollTop,n=e.clientWidth,o=e.clientHeight,l=this.dotsItems[this.currentIndex],r=l.getBoundingClientRect(),a=r.left-t.left+i,h=a+l.clientWidth,d=r.top-t.top+s,c=d+l.clientHeight;let u=i,p=s;(a<i||h>i+n)&&(u=h-n),(d<s||c>s+o)&&(p=c-o),e.scrollTo({left:u,top:p,behavior:"smooth"})}buildInfo(){this.infoTotal&&this.setInfoTotal(),this.infoCurrent&&this.setInfoCurrent()}setInfoTotal(){this.infoTotal.innerText=`${this.slides.length}`}setInfoCurrent(){this.infoCurrent.innerText=`${this.currentIndex+1}`}buildSingleDot(e){const t=(0,s.fc)("<span></span>");return this.dotsItemClasses&&(0,s.en)(this.dotsItemClasses,t),this.singleDotEvents(t,e),t}singleDotEvents(e,t){this.onDotClickListener=()=>this.dotClick(t),e.addEventListener("click",this.onDotClickListener)}observeResize(){new ResizeObserver((0,s.sg)((e=>{for(let t of e){const e=t.contentRect.width;e!==this.resizeContainerWidth&&(this.recalculateWidth(),this.dots&&this.initDots(),this.addCurrentClass(),this.resizeContainerWidth=e)}}),this.updateDelay)).observe(this.resizeContainer)}calculateWidth(){this.isSnap||(this.inner.style.width=this.sliderWidth*this.slides.length/this.getCurrentSlidesQty()+"px"),this.slides.forEach((e=>{e.style.width=this.sliderWidth/this.getCurrentSlidesQty()+"px"})),this.calculateTransform()}addCurrentClass(){if(this.isSnap){const e=Math.floor(this.getCurrentSlidesQty()/2);for(let t=0;t<this.slides.length;t++){const i=this.slides[t];t<=this.currentIndex+e&&t>=this.currentIndex-e?i.classList.add("active"):i.classList.remove("active")}}else{const e=this.isCentered?this.currentIndex+this.getCurrentSlidesQty()+(this.getCurrentSlidesQty()-1):this.currentIndex+this.getCurrentSlidesQty();this.slides.forEach(((t,i)=>{i>=this.currentIndex&&i<e?t.classList.add("active"):t.classList.remove("active")}))}}setCurrentDot(){const e=(e,t)=>{let i=!1;const s=Math.floor(this.getCurrentSlidesQty()/2);i=this.isSnap&&!this.hasSnapSpacers?t===(this.getCurrentSlidesQty()%2==0?this.currentIndex-s+1:this.currentIndex-s):t===this.currentIndex,i?e.classList.add("active"):e.classList.remove("active")};this.dotsItems?this.dotsItems.forEach(((t,i)=>e(t,i))):this.dots.querySelectorAll(":scope > *").forEach(((t,i)=>e(t,i)))}setElementToDisabled(e){e.classList.add("disabled"),"BUTTON"!==e.tagName&&"INPUT"!==e.tagName||e.setAttribute("disabled","disabled")}unsetElementToDisabled(e){e.classList.remove("disabled"),"BUTTON"!==e.tagName&&"INPUT"!==e.tagName||e.removeAttribute("disabled")}addDisabledClass(){if(!this.prev||!this.next)return!1;const e=getComputedStyle(this.inner).getPropertyValue("gap"),t=Math.floor(this.getCurrentSlidesQty()/2);let i=0,s=0,n=!1,o=!1;this.isSnap?(i=this.currentIndex,s=this.hasSnapSpacers?this.slides.length-1:this.slides.length-t-1,n=this.hasSnapSpacers?0===i:this.getCurrentSlidesQty()%2==0?i-t<0:i-t==0,o=i>=s&&this.container.scrollLeft+this.container.clientWidth+(parseFloat(e)||0)>=this.container.scrollWidth):(i=this.currentIndex,s=this.isCentered?this.slides.length-this.getCurrentSlidesQty()+(this.getCurrentSlidesQty()-1):this.slides.length-this.getCurrentSlidesQty(),n=0===i,o=i>=s),n?(this.unsetElementToDisabled(this.next),this.setElementToDisabled(this.prev)):o?(this.unsetElementToDisabled(this.prev),this.setElementToDisabled(this.next)):(this.unsetElementToDisabled(this.prev),this.unsetElementToDisabled(this.next))}autoPlay(){this.setTimer()}setTimer(){this.timer=setInterval((()=>{this.currentIndex===this.slides.length-1?this.goTo(0):this.goToNext()}),this.speed)}resetTimer(){clearInterval(this.timer)}detectDirection(){const{start:e,end:t}=this.touchX;t<e&&this.goToNext(),t>e&&this.goToPrev()}calculateTransform(e){void 0!==e&&(this.currentIndex=e),this.currentIndex>this.slides.length-this.getCurrentSlidesQty()&&!this.isCentered&&(this.currentIndex=this.slides.length-this.getCurrentSlidesQty());const t=this.sliderWidth,i=t/this.getCurrentSlidesQty();let s=this.currentIndex*i;if(this.isSnap&&!this.isCentered&&this.container.scrollLeft<t&&this.container.scrollLeft+i/2>t&&(this.container.scrollLeft=this.container.scrollWidth),this.isCentered&&!this.isSnap){const e=(t-i)/2;if(0===this.currentIndex)s=-e;else if(this.currentIndex>=this.slides.length-this.getCurrentSlidesQty()+(this.getCurrentSlidesQty()-1)){s=this.slides.length*i-t+e}else s=this.currentIndex*i-e}this.isSnap||(this.inner.style.transform=this.isRTL?`translate(${s}px, 0px)`:`translate(${-s}px, 0px)`),this.isAutoHeight&&(this.inner.style.height=`${this.slides[this.currentIndex].clientHeight}px`),this.dotsItems&&this.goToCurrentDot(),this.addCurrentClass(),this.isInfiniteLoop||this.addDisabledClass(),this.isSnap&&this.hasSnapSpacers&&this.buildSnapSpacers(),this.infoCurrent&&this.setInfoCurrent()}setTranslate(e){this.inner.style.transform=this.isRTL?`translate(${-e}px, 0px)`:`translate(${e}px, 0px)`}setIndex(e){this.currentIndex=e,this.addCurrentClass(),this.isInfiniteLoop||this.addDisabledClass()}recalculateWidth(){this.sliderWidth=this.inner.parentElement.getBoundingClientRect().width,this.calculateWidth(),this.sliderWidth!==this.inner.parentElement.getBoundingClientRect().width&&this.recalculateWidth()}goToPrev(){if(this.currentIndex>0?this.currentIndex--:this.currentIndex=this.slides.length-this.getCurrentSlidesQty(),this.isSnap){const e=this.sliderWidth/this.getCurrentSlidesQty();this.container.scrollBy({left:Math.max(-this.container.scrollLeft,-e),behavior:"smooth"}),this.addCurrentClass(),this.isInfiniteLoop||this.addDisabledClass()}else this.calculateTransform();this.dots&&this.setCurrentDot()}goToNext(){const e=this.isCentered?this.slides.length-this.getCurrentSlidesQty()+(this.getCurrentSlidesQty()-1):this.slides.length-this.getCurrentSlidesQty();if(this.currentIndex<e?this.currentIndex++:this.currentIndex=0,this.isSnap){const e=this.sliderWidth/this.getCurrentSlidesQty(),t=this.container.scrollWidth-this.container.clientWidth;this.container.scrollBy({left:Math.min(e,t-this.container.scrollLeft),behavior:"smooth"}),this.addCurrentClass(),this.isInfiniteLoop||this.addDisabledClass()}else this.calculateTransform();this.dots&&this.setCurrentDot()}goTo(e){const t=this.currentIndex;if(this.currentIndex=e,this.isSnap){const e=this.sliderWidth/this.getCurrentSlidesQty(),i=t>this.currentIndex?t-this.currentIndex:this.currentIndex-t,s=t>this.currentIndex?-e*i:e*i;this.container.scrollBy({left:s,behavior:"smooth"}),this.addCurrentClass(),this.isInfiniteLoop||this.addDisabledClass()}else this.calculateTransform();this.dots&&this.setCurrentDot()}destroy(){var e,t;if(this.loadingClassesAdd&&("string"==typeof this.loadingClassesAdd?this.inner.classList.remove(this.loadingClassesAdd):this.inner.classList.remove(...this.loadingClassesAdd)),this.inner&&this.afterLoadingClassesAdd&&setTimeout((()=>{"string"==typeof this.afterLoadingClassesAdd?this.inner.classList.remove(this.afterLoadingClassesAdd):this.inner.classList.remove(...this.afterLoadingClassesAdd)})),this.el.classList.remove("init"),this.inner.classList.remove("dragging"),this.slides.forEach((e=>e.classList.remove("active"))),(null===(e=null==this?void 0:this.dotsItems)||void 0===e?void 0:e.length)&&this.dotsItems.forEach((e=>e.classList.remove("active"))),this.prev.classList.remove("disabled"),this.next.classList.remove("disabled"),this.inner.style.width="",this.slides.forEach((e=>e.style.width="")),this.isSnap||(this.inner.style.transform=""),this.isAutoHeight&&(this.inner.style.height=""),this.prev.removeEventListener("click",this.onPrevClickListener),this.next.removeEventListener("click",this.onNextClickListener),this.container.removeEventListener("scroll",this.onContainerScrollListener),this.el.removeEventListener("touchstart",this.onElementTouchStartListener),this.el.removeEventListener("touchend",this.onElementTouchEndListener),this.inner.removeEventListener("mousedown",this.onInnerMouseDownListener),this.inner.removeEventListener("touchstart",this.onInnerTouchStartListener),document.removeEventListener("mousemove",this.onDocumentMouseMoveListener),document.removeEventListener("touchmove",this.onDocumentTouchMoveListener),document.removeEventListener("mouseup",this.onDocumentMouseUpListener),document.removeEventListener("touchend",this.onDocumentTouchEndListener),this.inner.querySelectorAll("a:not(.prevented-click)").forEach((e=>{e.classList.remove("prevented-click"),e.removeEventListener("click",this.removeClickEventWhileDragging)})),(null===(t=null==this?void 0:this.dotsItems)||void 0===t?void 0:t.length)||this.dots.querySelectorAll(":scope > *").length){((null==this?void 0:this.dotsItems)||this.dots.querySelectorAll(":scope > *")).forEach((e=>e.removeEventListener("click",this.onDotClickListener))),this.dots.innerHTML=null}this.inner.querySelector(".hs-snap-before").remove(),this.inner.querySelector(".hs-snap-after").remove(),this.dotsItems=null,this.isDragging=!1,this.dragStartX=null,this.initialTranslateX=null,window.$hsCarouselCollection=window.$hsCarouselCollection.filter((({element:e})=>e.el!==this.el))}static getInstance(e,t){const i=window.$hsCarouselCollection.find((t=>t.element.el===("string"==typeof e?document.querySelector(e):e)));return i?t?i:i.element:null}static autoInit(){window.$hsCarouselCollection||(window.$hsCarouselCollection=[]),window.$hsCarouselCollection&&(window.$hsCarouselCollection=window.$hsCarouselCollection.filter((({element:e})=>document.contains(e.el)))),document.querySelectorAll("[data-hs-carousel]:not(.--prevent-on-load-init)").forEach((e=>{window.$hsCarouselCollection.find((t=>{var i;return(null===(i=null==t?void 0:t.element)||void 0===i?void 0:i.el)===e}))||new l(e)}))}}window.addEventListener("load",(()=>{l.autoInit()})),"undefined"!=typeof window&&(window.HSCarousel=l);const r=l},883:(e,t,i)=>{i.d(t,{A:()=>l});var s=i(926),n=i(615);
/*
* HSCollapse
* @version: 2.6.0
* @author: Preline Labs Ltd.
* @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html)
* Copyright 2024 Preline Labs Ltd.
*/
class o extends n.A{constructor(e,t,i){super(e,t,i),this.contentId=this.el.dataset.hsCollapse,this.content=document.querySelector(this.contentId),this.animationInProcess=!1,this.content&&this.init()}elementClick(){this.content.classList.contains("open")?this.hide():this.show()}init(){var e;this.createCollection(window.$hsCollapseCollection,this),this.onElementClickListener=()=>this.elementClick(),(null===(e=null==this?void 0:this.el)||void 0===e?void 0:e.ariaExpanded)&&(this.el.classList.contains("open")?this.el.ariaExpanded="true":this.el.ariaExpanded="false"),this.el.addEventListener("click",this.onElementClickListener)}hideAllMegaMenuItems(){this.content.querySelectorAll(".hs-mega-menu-content.block").forEach((e=>{e.classList.remove("block"),e.classList.add("hidden")}))}show(){var e;if(this.animationInProcess||this.el.classList.contains("open"))return!1;this.animationInProcess=!0,this.el.classList.add("open"),(null===(e=null==this?void 0:this.el)||void 0===e?void 0:e.ariaExpanded)&&(this.el.ariaExpanded="true"),this.content.classList.add("open"),this.content.classList.remove("hidden"),this.content.style.height="0",setTimeout((()=>{this.content.style.height=`${this.content.scrollHeight}px`,this.fireEvent("beforeOpen",this.el),(0,s.JD)("beforeOpen.hs.collapse",this.el,this.el)})),(0,s.yd)(this.content,(()=>{this.content.style.height="",this.fireEvent("open",this.el),(0,s.JD)("open.hs.collapse",this.el,this.el),this.animationInProcess=!1}))}hide(){var e;if(this.animationInProcess||!this.el.classList.contains("open"))return!1;this.animationInProcess=!0,this.el.classList.remove("open"),(null===(e=null==this?void 0:this.el)||void 0===e?void 0:e.ariaExpanded)&&(this.el.ariaExpanded="false"),this.content.style.height=`${this.content.scrollHeight}px`,setTimeout((()=>{this.content.style.height="0"})),this.content.classList.remove("open"),(0,s.yd)(this.content,(()=>{this.content.classList.add("hidden"),this.content.style.height="",this.fireEvent("hide",this.el),(0,s.JD)("hide.hs.collapse",this.el,this.el),this.animationInProcess=!1})),this.content.querySelectorAll(".hs-mega-menu-content.block").length&&this.hideAllMegaMenuItems()}destroy(){this.el.removeEventListener("click",this.onElementClickListener),this.content=null,this.animationInProcess=!1,window.$hsCollapseCollection=window.$hsCollapseCollection.filter((({element:e})=>e.el!==this.el))}static getInstance(e,t=!1){const i=window.$hsCollapseCollection.find((t=>t.element.el===("string"==typeof e?document.querySelector(e):e)));return i?t?i:i.element.el:null}static autoInit(){window.$hsCollapseCollection||(window.$hsCollapseCollection=[]),window.$hsCollapseCollection&&(window.$hsCollapseCollection=window.$hsCollapseCollection.filter((({element:e})=>document.contains(e.el)))),document.querySelectorAll(".hs-collapse-toggle:not(.--prevent-on-load-init)").forEach((e=>{window.$hsCollapseCollection.find((t=>{var i;return(null===(i=null==t?void 0:t.element)||void 0===i?void 0:i.el)===e}))||new o(e)}))}static show(e){const t=window.$hsCollapseCollection.find((t=>t.element.el===("string"==typeof e?document.querySelector(e):e)));t&&t.element.content.classList.contains("hidden")&&t.element.show()}static hide(e){const t=window.$hsCollapseCollection.find((t=>t.element.el===("string"==typeof e?document.querySelector(e):e)));t&&!t.element.content.classList.contains("hidden")&&t.element.hide()}static on(e,t,i){const s=window.$hsCollapseCollection.find((e=>e.element.el===("string"==typeof t?document.querySelector(t):t)));s&&(s.element.events[e]=i)}}window.addEventListener("load",(()=>{o.autoInit()})),"undefined"!=typeof window&&(window.HSCollapse=o);const l=o},459:(e,t,i)=>{i.d(t,{A:()=>a});var s=i(926),n=i(615),o=i(189),l=function(e,t,i,s){return new(i||(i=Promise))((function(n,o){function l(e){try{a(s.next(e))}catch(e){o(e)}}function r(e){try{a(s.throw(e))}catch(e){o(e)}}function a(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(l,r)}a((s=s.apply(e,t||[])).next())}))};class r extends n.A{constructor(e,t,i){var s,n,o,l,r,a,h,d,c,u,p,m,g,v,f,w,y,b,C,S,L,x,I,E,k,T,A;super(e,t,i);const O=e.getAttribute("data-hs-combo-box"),P=O?JSON.parse(O):{},$=Object.assign(Object.assign({},P),t);this.gap=5,this.viewport=null!==(s="string"==typeof(null==$?void 0:$.viewport)?document.querySelector(null==$?void 0:$.viewport):null==$?void 0:$.viewport)&&void 0!==s?s:null,this.preventVisibility=null!==(n=null==$?void 0:$.preventVisibility)&&void 0!==n&&n,this.apiUrl=null!==(o=null==$?void 0:$.apiUrl)&&void 0!==o?o:null,this.apiDataPart=null!==(l=null==$?void 0:$.apiDataPart)&&void 0!==l?l:null,this.apiQuery=null!==(r=null==$?void 0:$.apiQuery)&&void 0!==r?r:null,this.apiSearchQuery=null!==(a=null==$?void 0:$.apiSearchQuery)&&void 0!==a?a:null,this.apiSearchPath=null!==(h=null==$?void 0:$.apiSearchPath)&&void 0!==h?h:null,this.apiSearchDefaultPath=null!==(d=null==$?void 0:$.apiSearchDefaultPath)&&void 0!==d?d:null,this.apiHeaders=null!==(c=null==$?void 0:$.apiHeaders)&&void 0!==c?c:{},this.apiGroupField=null!==(u=null==$?void 0:$.apiGroupField)&&void 0!==u?u:null,this.outputItemTemplat