import{a as e,i as t,n,o as r,r as i,t as a}from"./rolldown-runtime-Bhmf7a9N.js";import{E as o,h as s}from"./analytics-p_StUAKk.js";import{L as c,h as l,j as u}from"./react-BbpeyRWK.js";import{$ as d}from"./utils-DEGzDwK9.js";function f(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=f(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function p(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=f(e))&&(r&&(r+=` `),r+=t);return r}var m=!1;function h(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function g(e){var t=document.createElement(`style`);return t.setAttribute(`data-emotion`,e.key),e.nonce!==void 0&&t.setAttribute(`nonce`,e.nonce),t.appendChild(document.createTextNode(``)),t.setAttribute(`data-s`,``),t}var _=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0?!m:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(g(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=h(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),v=`-ms-`,y=`-moz-`,b=`-webkit-`,x=`comm`,S=`rule`,C=`decl`,w=`@import`,T=`@keyframes`,E=`@layer`,D=Math.abs,O=String.fromCharCode,k=Object.assign;function A(e,t){return N(e,0)^45?(((t<<2^N(e,0))<<2^N(e,1))<<2^N(e,2))<<2^N(e,3):0}function j(e){return e.trim()}function ee(e,t){return(e=t.exec(e))?e[0]:e}function M(e,t,n){return e.replace(t,n)}function te(e,t){return e.indexOf(t)}function N(e,t){return e.charCodeAt(t)|0}function ne(e,t,n){return e.slice(t,n)}function P(e){return e.length}function re(e){return e.length}function ie(e,t){return t.push(e),e}function ae(e,t){return e.map(t).join(``)}var F=1,oe=1,se=0,I=0,ce=0,le=``;function ue(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:F,column:oe,length:o,return:``}}function de(e,t){return k(ue(``,null,null,``,null,null,0),e,{length:-e.length},t)}function fe(){return ce}function pe(){return ce=I>0?N(le,--I):0,oe--,ce===10&&(oe=1,F--),ce}function me(){return ce=I<se?N(le,I++):0,oe++,ce===10&&(oe=1,F++),ce}function he(){return N(le,I)}function ge(){return I}function _e(e,t){return ne(le,e,t)}function ve(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ye(e){return F=oe=1,se=P(le=e),I=0,[]}function be(e){return le=``,e}function xe(e){return j(_e(I-1,we(e===91?e+2:e===40?e+1:e)))}function Se(e){for(;(ce=he())&&ce<33;)me();return ve(e)>2||ve(ce)>3?``:` `}function Ce(e,t){for(;--t&&me()&&!(ce<48||ce>102||ce>57&&ce<65||ce>70&&ce<97););return _e(e,ge()+(t<6&&he()==32&&me()==32))}function we(e){for(;me();)switch(ce){case e:return I;case 34:case 39:e!==34&&e!==39&&we(ce);break;case 40:e===41&&we(e);break;case 92:me();break}return I}function Te(e,t){for(;me()&&e+ce!==57&&!(e+ce===84&&he()===47););return`/*`+_e(t,I-1)+`*`+O(e===47?e:me())}function Ee(e){for(;!ve(he());)me();return _e(e,I)}function De(e){return be(Oe(``,null,null,null,[``],e=ye(e),0,[0],e))}function Oe(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=me()){case 40:if(m!=108&&N(C,d-1)==58){te(C+=M(xe(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=xe(v);break;case 9:case 10:case 13:case 32:C+=Se(m);break;case 92:C+=Ce(ge()-1,7);continue;case 47:switch(he()){case 42:case 47:ie(Ae(Te(me(),ge()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=P(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=M(C,/\f/g,``)),p>0&&P(C)-d&&ie(p>32?je(C+`;`,r,n,d-1):je(M(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(ie(S=ke(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)Oe(C,t,S,S,b,a,d,s,x);else switch(f===99&&N(C,3)===110?100:f){case 100:case 108:case 109:case 115:Oe(e,S,S,r&&ie(ke(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:Oe(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+P(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&pe()==125)continue}switch(C+=O(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(P(C)-1)*_,_=1;break;case 64:he()===45&&(C+=xe(me())),f=he(),u=d=P(y=C+=Ee(ge())),v++;break;case 45:m===45&&P(C)==2&&(h=0)}}return a}function ke(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=re(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=ne(e,d+1,d=D(h=o[m])),y=e;_<p;++_)(y=j(h>0?f[_]+` `+v:M(v,/&\f/g,f[_])))&&(c[g++]=y);return ue(e,t,n,i===0?S:s,c,l,u)}function Ae(e,t,n){return ue(e,t,n,x,O(fe()),ne(e,2,-2),0)}function je(e,t,n,r){return ue(e,t,n,C,ne(e,0,r),ne(e,r+1,-1),r)}function Me(e,t){for(var n=``,r=re(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function Ne(e,t,n,r){switch(e.type){case E:if(e.children.length)break;case w:case C:return e.return=e.return||e.value;case x:return``;case T:return e.return=e.value+`{`+Me(e.children,r)+`}`;case S:e.value=e.props.join(`,`)}return P(n=Me(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Pe(e){var t=re(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function Fe(e){return function(t){t.root||(t=t.return)&&e(t)}}var Ie=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}};function Le(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Re=function(e,t,n){for(var r=0,i=0;r=i,i=he(),r===38&&i===12&&(t[n]=1),!ve(i);)me();return _e(e,I)},ze=function(e,t){var n=-1,r=44;do switch(ve(r)){case 0:r===38&&he()===12&&(t[n]=1),e[n]+=Re(I-1,t,n);break;case 2:e[n]+=xe(r);break;case 4:if(r===44){e[++n]=he()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=O(r)}while(r=me());return e},Be=function(e,t){return be(ze(ye(e),t))},Ve=new WeakMap,He=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Ve.get(n))&&!r){Ve.set(e,!0);for(var i=[],a=Be(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},Ue=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function We(e,t){switch(A(e,t)){case 5103:return b+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return b+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return b+e+y+e+v+e+e;case 6828:case 4268:return b+e+v+e+e;case 6165:return b+e+v+`flex-`+e+e;case 5187:return b+e+M(e,/(\w+).+(:[^]+)/,b+`box-$1$2`+v+`flex-$1$2`)+e;case 5443:return b+e+v+`flex-item-`+M(e,/flex-|-self/,``)+e;case 4675:return b+e+v+`flex-line-pack`+M(e,/align-content|flex-|-self/,``)+e;case 5548:return b+e+v+M(e,`shrink`,`negative`)+e;case 5292:return b+e+v+M(e,`basis`,`preferred-size`)+e;case 6060:return b+`box-`+M(e,`-grow`,``)+b+e+v+M(e,`grow`,`positive`)+e;case 4554:return b+M(e,/([^-])(transform)/g,`$1`+b+`$2`)+e;case 6187:return M(M(M(e,/(zoom-|grab)/,b+`$1`),/(image-set)/,b+`$1`),e,``)+e;case 5495:case 3959:return M(e,/(image-set\([^]*)/,b+"$1$`$1");case 4968:return M(M(e,/(.+:)(flex-)?(.*)/,b+`box-pack:$3`+v+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+b+e+e;case 4095:case 3583:case 4068:case 2532:return M(e,/(.+)-inline(.+)/,b+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(P(e)-1-t>6)switch(N(e,t+1)){case 109:if(N(e,t+4)!==45)break;case 102:return M(e,/(.+:)(.+)-([^]+)/,`$1`+b+`$2-$3$1`+y+(N(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~te(e,`stretch`)?We(M(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(N(e,t+1)!==115)break;case 6444:switch(N(e,P(e)-3-(~te(e,`!important`)&&10))){case 107:return M(e,`:`,`:`+b)+e;case 101:return M(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+b+(N(e,14)===45?`inline-`:``)+`box$3$1`+b+`$2$3$1`+v+`$2box$3`)+e}break;case 5936:switch(N(e,t+11)){case 114:return b+e+v+M(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return b+e+v+M(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return b+e+v+M(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return b+e+v+e+e}return e}var Ge=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case C:e.return=We(e.value,e.length);break;case T:return Me([de(e,{value:M(e.value,`@`,`@`+b)})],r);case S:if(e.length)return ae(e.props,function(t){switch(ee(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return Me([de(e,{props:[M(t,/:(read-\w+)/,`:`+y+`$1`)]})],r);case`::placeholder`:return Me([de(e,{props:[M(t,/:(plac\w+)/,`:`+b+`input-$1`)]}),de(e,{props:[M(t,/:(plac\w+)/,`:`+y+`$1`)]}),de(e,{props:[M(t,/:(plac\w+)/,v+`input-$1`)]})],r)}return``})}}],Ke=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||Ge,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[He,Ue],l,u=[Ne,Fe(function(e){l.insert(e)})],d=Pe(c.concat(r,u)),f=function(e){return Me(De(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new _({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},qe=!0;function Je(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?r+=n+` `:t.push(e[n]+`;`)}),r}var Ye=function(e,t,n){var r=e.key+`-`+t.name;(n===!1||qe===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},Xe=function(e,t,n){Ye(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function Ze(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Qe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},$e=!1,et=/[A-Z]|^ms/g,tt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nt=function(e){return e.charCodeAt(1)===45},rt=function(e){return e!=null&&typeof e!=`boolean`},it=Le(function(e){return nt(e)?e:e.replace(et,`-$&`).toLowerCase()}),at=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(tt,function(e,t,n){return ut={name:t,styles:n,next:ut},t})}return Qe[e]!==1&&!nt(e)&&typeof t==`number`&&t!==0?t+`px`:t},ot=`Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.`;function st(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return ut={name:i.name,styles:i.styles,next:ut},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)ut={name:o.name,styles:o.styles,next:ut},o=o.next;return a.styles+`;`}return ct(e,t,n);case`function`:if(e!==void 0){var s=ut,c=n(e);return ut=s,st(e,t,c)}break}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function ct(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=st(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:rt(s)&&(r+=it(a)+`:`+at(a,s)+`;`)}else{if(a===`NO_COMPONENT_SELECTOR`&&$e)throw Error(ot);if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)rt(o[c])&&(r+=it(a)+`:`+at(a,o[c])+`;`);else{var l=st(e,t,o);switch(a){case`animation`:case`animationName`:r+=it(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}}return r}var lt=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ut;function dt(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;ut=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=st(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=st(n,t,e[o]),r&&(i+=a[o]);lt.lastIndex=0;for(var s=``,c;(c=lt.exec(i))!==null;)s+=`-`+c[1];return{name:Ze(i)+s,styles:i,next:ut}}var L=r(o()),ft=function(e){return e()},pt=L.useInsertionEffect?L.useInsertionEffect:!1,mt=pt||ft,ht=pt||L.useLayoutEffect,gt=L.createContext(typeof HTMLElement<`u`?Ke({key:`css`}):null);gt.Provider;var _t=function(e){return(0,L.forwardRef)(function(t,n){return e(t,(0,L.useContext)(gt),n)})},vt=L.createContext({}),yt=function(e,t){return typeof t==`function`?t(e):u({},e,t)},bt=Ie(function(e){return Ie(function(t){return yt(e,t)})}),xt=function(e){var t=L.useContext(vt);return e.theme!==t&&(t=bt(t)(e.theme)),L.createElement(vt.Provider,{value:t},e.children)},St={}.hasOwnProperty,Ct=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,wt=function(e,t){var n={};for(var r in t)St.call(t,r)&&(n[r]=t[r]);return n[Ct]=e,n},Tt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Ye(t,n,r),mt(function(){return Xe(t,n,r)}),null},Et=_t(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Ct],a=[r],o=``;typeof e.className==`string`?o=Je(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=dt(a,void 0,L.useContext(vt));o+=t.key+`-`+s.name;var c={};for(var l in e)St.call(e,l)&&l!==`css`&&l!==Ct&&(c[l]=e[l]);return c.className=o,n&&(c.ref=n),L.createElement(L.Fragment,null,L.createElement(Tt,{cache:t,serialized:s,isStringTag:typeof i==`string`}),L.createElement(i,c))});s();var Dt=_t(function(e,t){var n=e.styles,r=dt([n],void 0,L.useContext(vt)),i=L.useRef();return ht(function(){var e=t.key+`-global`,n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,o=document.querySelector(`style[data-emotion="`+e+` `+r.name+`"]`);return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),o!==null&&(a=!0,o.setAttribute(`data-emotion`,e),n.hydrate([o])),i.current=[n,a],function(){n.flush()}},[t]),ht(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}r.next!==void 0&&Xe(t,r.next,!0),n.tags.length&&(n.before=n.tags[n.tags.length-1].nextElementSibling,n.flush()),t.insert(``,r,n,!1)},[t,r.name]),null});function Ot(){return dt([...arguments])}var kt=function(){var e=Ot.apply(void 0,arguments),t=`animation-`+e.name;return{name:t,styles:`@keyframes `+t+`{`+e.styles+`}`,anim:1,toString:function(){return`_EMO_`+this.name+`_`+this.styles+`_EMO_`}}};function R(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function At(e,t){typeof e==`function`?e(t):e!=null&&(e.current=t)}function jt(...e){return t=>e.forEach(e=>At(e,t))}function z(...e){return L.useCallback(jt(...e),e)}var B=r(l(),1);function Mt(e,t){let n=L.createContext(t);function r(e){let{children:t,...r}=e,i=L.useMemo(()=>r,Object.values(r));return(0,B.jsx)(n.Provider,{value:i,children:t})}function i(r){let i=L.useContext(n);if(i)return i;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return r.displayName=e+`Provider`,[r,i]}function Nt(e,t=[]){let n=[];function r(t,r){let i=L.createContext(r),a=n.length;n=[...n,r];function o(t){let{scope:n,children:r,...o}=t,s=n?.[e][a]||i,c=L.useMemo(()=>o,Object.values(o));return(0,B.jsx)(s.Provider,{value:c,children:r})}function s(n,o){let s=o?.[e][a]||i,c=L.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return o.displayName=t+`Provider`,[o,s]}let i=()=>{let t=n.map(e=>L.createContext(e));return function(n){let r=n?.[e]||t;return L.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Pt(i,...t)]}function Pt(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return L.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}var Ft=globalThis?.document?L.useLayoutEffect:()=>{},It=L.useId||(()=>void 0),Lt=0;function Rt(e){let[t,n]=L.useState(It());return Ft(()=>{e||n(e=>e??String(Lt++))},[e]),e||(t?`radix-${t}`:``)}function zt(e){let t=L.useRef(e);return L.useEffect(()=>{t.current=e}),L.useMemo(()=>(...e)=>t.current?.(...e),[])}function Bt({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=Vt({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:r,s=zt(n);return[o,L.useCallback(t=>{if(a){let n=typeof t==`function`?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}function Vt({defaultProp:e,onChange:t}){let n=L.useState(e),[r]=n,i=L.useRef(r),a=zt(t);return L.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}var Ht=L.forwardRef((e,t)=>{let{children:n,...r}=e,i=L.Children.toArray(n),a=i.find(Gt);if(a){let e=a.props.children,n=i.map(t=>t===a?L.Children.count(e)>1?L.Children.only(null):L.isValidElement(e)?e.props.children:null:t);return(0,B.jsx)(Ut,{...r,ref:t,children:L.isValidElement(e)?L.cloneElement(e,void 0,n):null})}return(0,B.jsx)(Ut,{...r,ref:t,children:n})});Ht.displayName=`Slot`;var Ut=L.forwardRef((e,t)=>{let{children:n,...r}=e;if(L.isValidElement(n)){let e=qt(n);return L.cloneElement(n,{...Kt(r,n.props),ref:t?jt(t,e):e})}return L.Children.count(n)>1?L.Children.only(null):null});Ut.displayName=`SlotClone`;var Wt=({children:e})=>(0,B.jsx)(B.Fragment,{children:e});function Gt(e){return L.isValidElement(e)&&e.type===Wt}function Kt(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{a(...e),i(...e)}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function qt(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Jt=r(c(),1),V=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=L.forwardRef((e,n)=>{let{asChild:r,...i}=e,a=r?Ht:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,B.jsx)(a,{...i,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Yt(e,t){e&&Jt.flushSync(()=>e.dispatchEvent(t))}function Xt(e,t=globalThis?.document){let n=zt(e);L.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var Zt=`DismissableLayer`,Qt=`dismissableLayer.update`,$t=`dismissableLayer.pointerDownOutside`,en=`dismissableLayer.focusOutside`,tn,nn=L.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rn=L.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...c}=e,l=L.useContext(nn),[u,d]=L.useState(null),f=u?.ownerDocument??globalThis?.document,[,p]=L.useState({}),m=z(t,e=>d(e)),h=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),_=h.indexOf(g),v=u?h.indexOf(u):-1,y=l.layersWithOutsidePointerEventsDisabled.size>0,b=v>=_,x=sn(e=>{let t=e.target,n=[...l.branches].some(e=>e.contains(t));!b||n||(i?.(e),o?.(e),e.defaultPrevented||s?.())},f),S=cn(e=>{let t=e.target;[...l.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||s?.())},f);return Xt(e=>{v===l.layers.size-1&&(r?.(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))},f),L.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(tn=f.body.style.pointerEvents,f.body.style.pointerEvents=`none`),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),ln(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=tn)}},[u,f,n,l]),L.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),ln())},[u,l]),L.useEffect(()=>{let e=()=>p({});return document.addEventListener(Qt,e),()=>document.removeEventListener(Qt,e)},[]),(0,B.jsx)(V.div,{...c,ref:m,style:{pointerEvents:y?b?`auto`:`none`:void 0,...e.style},onFocusCapture:R(e.onFocusCapture,S.onFocusCapture),onBlurCapture:R(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:R(e.onPointerDownCapture,x.onPointerDownCapture)})});rn.displayName=Zt;var an=`DismissableLayerBranch`,on=L.forwardRef((e,t)=>{let n=L.useContext(nn),r=L.useRef(null),i=z(t,r);return L.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,B.jsx)(V.div,{...e,ref:i})});on.displayName=an;function sn(e,t=globalThis?.document){let n=zt(e),r=L.useRef(!1),i=L.useRef(()=>{});return L.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){un($t,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function cn(e,t=globalThis?.document){let n=zt(e),r=L.useRef(!1);return L.useEffect(()=>{let e=e=>{e.target&&!r.current&&un(en,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ln(){let e=new CustomEvent(Qt);document.dispatchEvent(e)}function un(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Yt(i,a):i.dispatchEvent(a)}var dn=`focusScope.autoFocusOnMount`,fn=`focusScope.autoFocusOnUnmount`,pn={bubbles:!1,cancelable:!0},mn=`FocusScope`,hn=L.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=L.useState(null),l=zt(i),u=zt(a),d=L.useRef(null),f=z(t,e=>c(e)),p=L.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;L.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:Sn(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||Sn(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Sn(s)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),L.useEffect(()=>{if(s){Cn.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(dn,pn);s.addEventListener(dn,l),s.dispatchEvent(t),t.defaultPrevented||(gn(En(vn(s)),{select:!0}),document.activeElement===e&&Sn(s))}return()=>{s.removeEventListener(dn,l),setTimeout(()=>{let t=new CustomEvent(fn,pn);s.addEventListener(fn,u),s.dispatchEvent(t),t.defaultPrevented||Sn(e??document.body,{select:!0}),s.removeEventListener(fn,u),Cn.remove(p)},0)}}},[s,l,u,p]);let m=L.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=_n(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Sn(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Sn(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,B.jsx)(V.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});hn.displayName=mn;function gn(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Sn(r,{select:t}),document.activeElement!==n)return}function _n(e){let t=vn(e);return[yn(t,e),yn(t.reverse(),e)]}function vn(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function yn(e,t){for(let n of e)if(!bn(n,{upTo:t}))return n}function bn(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function xn(e){return e instanceof HTMLInputElement&&`select`in e}function Sn(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&xn(e)&&t&&e.select()}}var Cn=wn();function wn(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Tn(e,t),e.unshift(t)},remove(t){e=Tn(e,t),e[0]?.resume()}}}function Tn(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function En(e){return e.filter(e=>e.tagName!==`A`)}var Dn=`Portal`,On=L.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=L.useState(!1);Ft(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Jt.createPortal((0,B.jsx)(V.div,{...r,ref:t}),o):null});On.displayName=Dn;function kn(e,t){return L.useReducer((e,n)=>t[e][n]??e,e)}var An=e=>{let{present:t,children:n}=e,r=jn(t),i=typeof n==`function`?n({present:r.isPresent}):L.Children.only(n),a=z(r.ref,Nn(i));return typeof n==`function`||r.isPresent?L.cloneElement(i,{ref:a}):null};An.displayName=`Presence`;function jn(e){let[t,n]=L.useState(),r=L.useRef({}),i=L.useRef(e),a=L.useRef(`none`),[o,s]=kn(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return L.useEffect(()=>{let e=Mn(r.current);a.current=o===`mounted`?e:`none`},[o]),Ft(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=Mn(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),Ft(()=>{if(t){let e=e=>{let n=Mn(r.current).includes(e.animationName);e.target===t&&n&&Jt.flushSync(()=>s(`ANIMATION_END`))},n=e=>{e.target===t&&(a.current=Mn(r.current))};return t.addEventListener(`animationstart`,n),t.addEventListener(`animationcancel`,e),t.addEventListener(`animationend`,e),()=>{t.removeEventListener(`animationstart`,n),t.removeEventListener(`animationcancel`,e),t.removeEventListener(`animationend`,e)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:L.useCallback(e=>{e&&(r.current=getComputedStyle(e)),n(e)},[])}}function Mn(e){return e?.animationName||`none`}function Nn(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Pn=0;function Fn(){L.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??In()),document.body.insertAdjacentElement(`beforeend`,e[1]??In()),Pn++,()=>{Pn===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),Pn--}},[])}function In(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.cssText=`outline: none; opacity: 0; position: fixed; pointer-events: none`,e}var Ln=function(){return Ln=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ln.apply(this,arguments)};function Rn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function zn(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Bn=`right-scroll-bar-position`,Vn=`width-before-scroll-bar`,Hn=`with-scroll-bars-hidden`,Un=`--removed-body-scroll-bar-size`;function Wn(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Gn(e,t){var n=(0,L.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Kn=typeof window<`u`?L.useLayoutEffect:L.useEffect,qn=new WeakMap;function Jn(e,t){var n=Gn(t||null,function(t){return e.forEach(function(e){return Wn(e,t)})});return Kn(function(){var t=qn.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Wn(e,null)}),i.forEach(function(e){r.has(e)||Wn(e,a)})}qn.set(n,e)},[e]),n}var Yn=function(){return Yn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Yn.apply(this,arguments)};function Xn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Zn(e){return e}function Qn(e,t){t===void 0&&(t=Zn);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function $n(e){e===void 0&&(e={});var t=Qn(null);return t.options=Yn({async:!0,ssr:!1},e),t}var er=function(e){var t=e.sideCar,n=Xn(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return L.createElement(r,Yn({},n))};er.isSideCarExport=!0;function tr(e,t){return e.useMedium(t),er}var nr=$n(),rr=function(){},ir=L.forwardRef(function(e,t){var n=L.useRef(null),r=L.useState({onScrollCapture:rr,onWheelCapture:rr,onTouchMoveCapture:rr}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,m=e.inert,h=e.allowPinchZoom,g=e.as,_=g===void 0?`div`:g,v=e.gapMode,y=Rn(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),b=f,x=Jn([n,t]),S=Ln(Ln({},y),i);return L.createElement(L.Fragment,null,u&&L.createElement(b,{sideCar:nr,removeScrollBar:l,shards:d,noIsolation:p,inert:m,setCallbacks:a,allowPinchZoom:!!h,lockRef:n,gapMode:v}),o?L.cloneElement(L.Children.only(s),Ln(Ln({},S),{ref:x})):L.createElement(_,Ln({},S,{className:c,ref:x}),s))});ir.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ir.classNames={fullWidth:Vn,zeroRight:Bn};var ar,or=function(){if(ar)return ar;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function sr(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=or();return t&&e.setAttribute(`nonce`,t),e}function cr(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function lr(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var ur=function(){var e=0,t=null;return{add:function(n){e==0&&(t=sr())&&(cr(t,n),lr(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},dr=function(){var e=ur();return function(t,n){L.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},fr=function(){var e=dr();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},pr={left:0,top:0,right:0,gap:0},mr=function(e){return parseInt(e||``,10)||0},hr=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[mr(n),mr(r),mr(i)]},gr=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return pr;var t=hr(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},_r=fr(),vr=`data-scroll-locked`,yr=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
.${Hn} {
overflow: hidden ${r};
padding-right: ${s}px ${r};
}
body[${vr}] {
overflow: hidden ${r};
overscroll-behavior: contain;
${[t&&`position: relative ${r};`,n===`margin`&&`
padding-left: ${i}px;
padding-top: ${a}px;
padding-right: ${o}px;
margin-left:0;
margin-top:0;
margin-right: ${s}px ${r};
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
}
.${Bn} {
right: ${s}px ${r};
}
.${Vn} {
margin-right: ${s}px ${r};
}
.${Bn} .${Bn} {
right: 0 ${r};
}
.${Vn} .${Vn} {
margin-right: 0 ${r};
}
body[${vr}] {
${Un}: ${s}px;
}
`},br=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},xr=function(){L.useEffect(function(){return document.body.setAttribute(vr,(br()+1).toString()),function(){var e=br()-1;e<=0?document.body.removeAttribute(vr):document.body.setAttribute(vr,e.toString())}},[])},Sr=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;xr();var a=L.useMemo(function(){return gr(i)},[i]);return L.createElement(_r,{styles:yr(a,!t,i,n?``:`!important`)})},Cr=!1;if(typeof window<`u`)try{var wr=Object.defineProperty({},`passive`,{get:function(){return Cr=!0,!0}});window.addEventListener(`test`,wr,wr),window.removeEventListener(`test`,wr,wr)}catch{Cr=!1}var Tr=Cr?{passive:!1}:!1,Er=function(e){return e.tagName===`TEXTAREA`},Dr=function(e,t){var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Er(e)&&n[t]===`visible`)},Or=function(e){return Dr(e,`overflowY`)},kr=function(e){return Dr(e,`overflowX`)},Ar=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Nr(e,r)){var i=Pr(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},jr=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Mr=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Nr=function(e,t){return e===`v`?Or(t):kr(t)},Pr=function(e,t){return e===`v`?jr(t):Mr(t)},Fr=function(e,t){return e===`h`&&t===`rtl`?-1:1},Ir=function(e,t,n,r,i){var a=Fr(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{var p=Pr(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Nr(e,s)&&(d+=h,f+=m),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Lr=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Rr=function(e){return[e.deltaX,e.deltaY]},zr=function(e){return e&&`current`in e?e.current:e},Br=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Vr=function(e){return`
.block-interactivity-${e} {pointer-events: none;}
.allow-interactivity-${e} {pointer-events: all;}
`},Hr=0,Ur=[];function Wr(e){var t=L.useRef([]),n=L.useRef([0,0]),r=L.useRef(),i=L.useState(Hr++)[0],a=L.useState(fr)[0],o=L.useRef(e);L.useEffect(function(){o.current=e},[e]),L.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=zn([e.lockRef.current],(e.shards||[]).map(zr),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=L.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2)return!o.current.allowPinchZoom;var i=Lr(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=Ar(d,u);if(!f)return!0;if(f?l=d:(l=d===`v`?`h`:`v`,f=Ar(d,u)),!f)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var p=r.current||l;return Ir(p,t,e,p===`h`?s:c,!0)},[]),c=L.useCallback(function(e){var n=e;if(!(!Ur.length||Ur[Ur.length-1]!==a)){var r=`deltaY`in n?Rr(n):Lr(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Br(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(zr).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=L.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Gr(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=L.useCallback(function(e){n.current=Lr(e),r.current=void 0},[]),d=L.useCallback(function(t){l(t.type,Rr(t),t.target,s(t,e.lockRef.current))},[]),f=L.useCallback(function(t){l(t.type,Lr(t),t.target,s(t,e.lockRef.current))},[]);L.useEffect(function(){return Ur.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Tr),document.addEventListener(`touchmove`,c,Tr),document.addEventListener(`touchstart`,u,Tr),function(){Ur=Ur.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Tr),document.removeEventListener(`touchmove`,c,Tr),document.removeEventListener(`touchstart`,u,Tr)}},[]);var p=e.removeScrollBar,m=e.inert;return L.createElement(L.Fragment,null,m?L.createElement(a,{styles:Vr(i)}):null,p?L.createElement(Sr,{gapMode:e.gapMode}):null)}function Gr(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Kr=tr(nr,Wr),qr=L.forwardRef(function(e,t){return L.createElement(ir,Ln({},e,{ref:t,sideCar:Kr}))});qr.classNames=ir.classNames;var Jr=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Yr=new WeakMap,Xr=new WeakMap,Zr={},Qr=0,$r=function(e){return e&&(e.host||$r(e.parentNode))},ei=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=$r(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},ti=function(e,t,n,r){var i=ei(t,Array.isArray(e)?e:[e]);Zr[n]||(Zr[n]=new WeakMap);var a=Zr[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Yr.get(e)||0)+1,l=(a.get(e)||0)+1;Yr.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Xr.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Qr++,function(){o.forEach(function(e){var t=Yr.get(e)-1,i=a.get(e)-1;Yr.set(e,t),a.set(e,i),t||(Xr.has(e)||e.removeAttribute(r),Xr.delete(e)),i||e.removeAttribute(n)}),Qr--,Qr||(Yr=new WeakMap,Yr=new WeakMap,Xr=new WeakMap,Zr={})}},ni=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Jr(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live]`))),ti(r,i,n,`aria-hidden`)):function(){return null}},ri=`Dialog`,[ii,ai]=Nt(ri),[oi,si]=ii(ri),ci=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=L.useRef(null),c=L.useRef(null),[l=!1,u]=Bt({prop:r,defaultProp:i,onChange:a});return(0,B.jsx)(oi,{scope:t,triggerRef:s,contentRef:c,contentId:Rt(),titleId:Rt(),descriptionId:Rt(),open:l,onOpenChange:u,onOpenToggle:L.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})};ci.displayName=ri;var li=`DialogTrigger`,ui=L.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=si(li,n),a=z(t,i.triggerRef);return(0,B.jsx)(V.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":ki(i.open),...r,ref:a,onClick:R(e.onClick,i.onOpenToggle)})});ui.displayName=li;var di=`DialogPortal`,[fi,pi]=ii(di,{forceMount:void 0}),mi=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=si(di,t);return(0,B.jsx)(fi,{scope:t,forceMount:n,children:L.Children.map(r,e=>(0,B.jsx)(An,{present:n||a.open,children:(0,B.jsx)(On,{asChild:!0,container:i,children:e})}))})};mi.displayName=di;var hi=`DialogOverlay`,gi=L.forwardRef((e,t)=>{let n=pi(hi,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=si(hi,e.__scopeDialog);return a.modal?(0,B.jsx)(An,{present:r||a.open,children:(0,B.jsx)(_i,{...i,ref:t})}):null});gi.displayName=hi;var _i=L.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=si(hi,n);return(0,B.jsx)(qr,{as:Ht,allowPinchZoom:!0,shards:[i.contentRef],children:(0,B.jsx)(V.div,{"data-state":ki(i.open),...r,ref:t,style:{pointerEvents:`auto`,...r.style}})})}),vi=`DialogContent`,yi=L.forwardRef((e,t)=>{let n=pi(vi,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=si(vi,e.__scopeDialog);return(0,B.jsx)(An,{present:r||a.open,children:a.modal?(0,B.jsx)(bi,{...i,ref:t}):(0,B.jsx)(xi,{...i,ref:t})})});yi.displayName=vi;var bi=L.forwardRef((e,t)=>{let n=si(vi,e.__scopeDialog),r=L.useRef(null),i=z(t,n.contentRef,r);return L.useEffect(()=>{let e=r.current;if(e)return ni(e)},[]),(0,B.jsx)(Si,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:R(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:R(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:R(e.onFocusOutside,e=>e.preventDefault())})}),xi=L.forwardRef((e,t)=>{let n=si(vi,e.__scopeDialog),r=L.useRef(!1),i=L.useRef(!1);return(0,B.jsx)(Si,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),Si=L.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=si(vi,n),c=L.useRef(null),l=z(t,c);return Fn(),(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(hn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,B.jsx)(rn,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":ki(s.open),...o,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(Ni,{titleId:s.titleId}),(0,B.jsx)(Fi,{contentRef:c,descriptionId:s.descriptionId})]})]})}),Ci=`DialogTitle`,wi=L.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=si(Ci,n);return(0,B.jsx)(V.h2,{id:i.titleId,...r,ref:t})});wi.displayName=Ci;var Ti=`DialogDescription`,Ei=L.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=si(Ti,n);return(0,B.jsx)(V.p,{id:i.descriptionId,...r,ref:t})});Ei.displayName=Ti;var Di=`DialogClose`,Oi=L.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=si(Di,n);return(0,B.jsx)(V.button,{type:`button`,...r,ref:t,onClick:R(e.onClick,()=>i.onOpenChange(!1))})});Oi.displayName=Di;function ki(e){return e?`open`:`closed`}var Ai=`DialogTitleWarning`,[ji,Mi]=Mt(Ai,{contentName:vi,titleName:Ci,docsSlug:`dialog`}),Ni=({titleId:e})=>{let t=Mi(Ai),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return L.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Pi=`DialogDescriptionWarning`,Fi=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Mi(Pi).contentName}}.`;return L.useEffect(()=>{let r=e.current?.getAttribute(`aria-describedby`);t&&r&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Ii=ci,Li=mi,Ri=gi,zi=yi,Bi=wi,Vi=Ei,Hi=Oi,Ui=B.Fragment;function H(e,t,n){return St.call(t,`css`)?B.jsx(Et,wt(e,t),n):B.jsx(e,t,n)}function U(e,t,n){return St.call(t,`css`)?B.jsxs(Et,wt(e,t),n):B.jsxs(e,t,n)}var Wi=i({default:()=>Ki,properties:()=>Gi}),Gi,Ki,qi=n((()=>{Gi=`-epub-caption-side.-epub-hyphens.-epub-text-combine.-epub-text-emphasis.-epub-text-emphasis-color.-epub-text-emphasis-style.-epub-text-orientation.-epub-text-transform.-epub-word-break.-epub-writing-mode.-internal-text-autosizing-status.accelerator.accent-color.-wap-accesskey.additive-symbols.align-content.-webkit-align-content.align-items.-webkit-align-items.align-self.-webkit-align-self.alignment-baseline.all.alt.-webkit-alt.anchor-default.anchor-name.anchor-scroll.animation.animation-composition.animation-delay.-moz-animation-delay.-ms-animation-delay.-webkit-animation-delay.animation-direction.-moz-animation-direction.-ms-animation-direction.-webkit-animation-direction.animation-duration.-moz-animation-duration.-ms-animation-duration.-webkit-animation-duration.animation-fill-mode.-moz-animation-fill-mode.-ms-animation-fill-mode.-webkit-animation-fill-mode.animation-iteration-count.-moz-animation-iteration-count.-ms-animation-iteration-count.-webkit-animation-iteration-count.-moz-animation.-ms-animation.animation-name.-moz-animation-name.-ms-animation-name.-webkit-animation-name.animation-play-state.-moz-animation-play-state.-ms-animation-play-state.-webkit-animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.-moz-animation-timing-function.-ms-animation-timing-function.-webkit-animation-timing-function.-webkit-animation-trigger.-webkit-animation.app-region.-webkit-app-region.appearance.-moz-appearance.-webkit-appearance.ascent-override.aspect-ratio.-webkit-aspect-ratio.audio-level.azimuth.backdrop-filter.-webkit-backdrop-filter.backface-visibility.-moz-backface-visibility.-ms-backface-visibility.-webkit-backface-visibility.background.background-attachment.-webkit-background-attachment.background-blend-mode.background-clip.-moz-background-clip.-webkit-background-clip.background-color.-webkit-background-color.-webkit-background-composite.background-image.-webkit-background-image.-moz-background-inline-policy.background-origin.-moz-background-origin.-webkit-background-origin.background-position.-webkit-background-position.background-position-x.-webkit-background-position-x.background-position-y.-webkit-background-position-y.background-repeat.-webkit-background-repeat.background-repeat-x.background-repeat-y.background-size.-moz-background-size.-webkit-background-size.-webkit-background.base-palette.baseline-shift.baseline-source.behavior.-moz-binding.block-ellipsis.-ms-block-progression.block-size.block-step.block-step-align.block-step-insert.block-step-round.block-step-size.bookmark-label.bookmark-level.bookmark-state.border.-webkit-border-after-color.-webkit-border-after-style.-webkit-border-after.-webkit-border-after-width.-webkit-border-before-color.-webkit-border-before-style.-webkit-border-before.-webkit-border-before-width.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.-moz-border-bottom-colors.border-bottom-left-radius.-webkit-border-bottom-left-radius.border-bottom-right-radius.-webkit-border-bottom-right-radius.border-bottom-style.border-bottom-width.border-boundary.border-collapse.border-color.-moz-border-end-color.-webkit-border-end-color.border-end-end-radius.-moz-border-end.border-end-start-radius.-moz-border-end-style.-webkit-border-end-style.-webkit-border-end.-moz-border-end-width.-webkit-border-end-width.-webkit-border-fit.-webkit-border-horizontal-spacing.border-image.-moz-border-image.-o-border-image.border-image-outset.-webkit-border-image-outset.border-image-repeat.-webkit-border-image-repeat.border-image-slice.-webkit-border-image-slice.border-image-source.-webkit-border-image-source.-webkit-border-image.border-image-width.-webkit-border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.-moz-border-left-colors.border-left-style.border-left-width.border-radius.-moz-border-radius-bottomleft.-moz-border-radius-bottomright.-moz-border-radius.-moz-border-radius-topleft.-moz-border-radius-topright.-webkit-border-radius.border-right.border-right-color.-moz-border-right-colors.border-right-style.border-right-width.border-spacing.-moz-border-start-color.-webkit-border-start-color.border-start-end-radius.-moz-border-start.border-start-start-radius.-moz-border-start-style.-webkit-border-start-style.-webkit-border-start.-moz-border-start-width.-webkit-border-start-width.border-style.border-top.border-top-color.-moz-border-top-colors.border-top-left-radius.-webkit-border-top-left-radius.border-top-right-radius.-webkit-border-top-right-radius.border-top-style.border-top-width.-webkit-border-vertical-spacing.border-width.bottom.-moz-box-align.-webkit-box-align.box-decoration-break.-webkit-box-decoration-break.-moz-box-direction.-webkit-box-direction.-webkit-box-flex-group.-moz-box-flex.-webkit-box-flex.-webkit-box-lines.-moz-box-ordinal-group.-webkit-box-ordinal-group.-moz-box-orient.-webkit-box-orient.-moz-box-pack.-webkit-box-pack.-webkit-box-reflect.box-shadow.-moz-box-shadow.-webkit-box-shadow.box-sizing.-moz-box-sizing.-webkit-box-sizing.box-snap.break-after.break-before.break-inside.buffered-rendering.caption-side.caret.caret-color.caret-shape.chains.clear.clip.clip-path.-webkit-clip-path.clip-rule.color.color-adjust.-webkit-color-correction.-apple-color-filter.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.-webkit-column-axis.-webkit-column-break-after.-webkit-column-break-before.-webkit-column-break-inside.column-count.-moz-column-count.-webkit-column-count.column-fill.-moz-column-fill.-webkit-column-fill.column-gap.-moz-column-gap.-webkit-column-gap.column-progression.-webkit-column-progression.column-rule.column-rule-color.-moz-column-rule-color.-webkit-column-rule-color.-moz-column-rule.column-rule-style.-moz-column-rule-style.-webkit-column-rule-style.-webkit-column-rule.column-rule-width.-moz-column-rule-width.-webkit-column-rule-width.column-span.-moz-column-span.-webkit-column-span.column-width.-moz-column-width.-webkit-column-width.columns.-moz-columns.-webkit-columns.-webkit-composition-fill-color.-webkit-composition-frame-color.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.-ms-content-zoom-chaining.-ms-content-zoom-limit-max.-ms-content-zoom-limit-min.-ms-content-zoom-limit.-ms-content-zoom-snap.-ms-content-zoom-snap-points.-ms-content-zoom-snap-type.-ms-content-zooming.continue.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.-webkit-cursor-visibility.cx.cy.d.-apple-dashboard-region.-webkit-dashboard-region.descent-override.direction.display.display-align.dominant-baseline.elevation.empty-cells.enable-background.epub-caption-side.epub-hyphens.epub-text-combine.epub-text-emphasis.epub-text-emphasis-color.epub-text-emphasis-style.epub-text-orientation.epub-text-transform.epub-word-break.epub-writing-mode.fallback.fill.fill-break.fill-color.fill-image.fill-opacity.fill-origin.fill-position.fill-repeat.fill-rule.fill-size.filter.-ms-filter.-webkit-filter.flex.-ms-flex-align.-webkit-flex-align.flex-basis.-webkit-flex-basis.flex-direction.-ms-flex-direction.-webkit-flex-direction.flex-flow.-ms-flex-flow.-webkit-flex-flow.flex-grow.-webkit-flex-grow.-ms-flex-item-align.-webkit-flex-item-align.-ms-flex-line-pack.-webkit-flex-line-pack.-ms-flex.-ms-flex-negative.-ms-flex-order.-webkit-flex-order.-ms-flex-pack.-webkit-flex-pack.-ms-flex-positive.-ms-flex-preferred-size.flex-shrink.-webkit-flex-shrink.-webkit-flex.flex-wrap.-ms-flex-wrap.-webkit-flex-wrap.float.float-defer.-moz-float-edge.float-offset.float-reference.flood-color.flood-opacity.flow.flow-from.-ms-flow-from.-webkit-flow-from.flow-into.-ms-flow-into.-webkit-flow-into.font.font-display.font-family.font-feature-settings.-moz-font-feature-settings.-ms-font-feature-settings.-webkit-font-feature-settings.font-kerning.-webkit-font-kerning.font-language-override.-moz-font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.-webkit-font-size-delta.-webkit-font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.-webkit-font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.footnote-display.footnote-policy.-moz-force-broken-image-icon.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.-webkit-grid-after.grid-area.grid-auto-columns.-webkit-grid-auto-columns.grid-auto-flow.-webkit-grid-auto-flow.grid-auto-rows.-webkit-grid-auto-rows.-webkit-grid-before.grid-column.-ms-grid-column-align.grid-column-end.grid-column-gap.-ms-grid-column.-ms-grid-column-span.grid-column-start.-webkit-grid-column.-ms-grid-columns.-webkit-grid-columns.-webkit-grid-end.grid-gap.grid-row.-ms-grid-row-align.grid-row-end.grid-row-gap.-ms-grid-row.-ms-grid-row-span.grid-row-start.-webkit-grid-row.-ms-grid-rows.-webkit-grid-rows.-webkit-grid-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.-ms-high-contrast-adjust.-webkit-highlight.hyphenate-character.-webkit-hyphenate-character.-webkit-hyphenate-limit-after.-webkit-hyphenate-limit-before.hyphenate-limit-chars.-ms-hyphenate-limit-chars.hyphenate-limit-last.hyphenate-limit-lines.-ms-hyphenate-limit-lines.-webkit-hyphenate-limit-lines.hyphenate-limit-zone.-ms-hyphenate-limit-zone.hyphens.-moz-hyphens.-ms-hyphens.-webkit-hyphens.image-orientation.-moz-image-region.image-rendering.image-resolution.-ms-ime-align.ime-mode.inherits.initial-letter.initial-letter-align.-webkit-initial-letter.initial-letter-wrap.initial-value.inline-size.inline-sizing.input-format.-wap-input-format.-wap-input-required.input-security.inset.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.-ms-interpolation-mode.isolation.justify-content.-webkit-justify-content.justify-items.-webkit-justify-items.justify-self.-webkit-justify-self.kerning.layout-flow.layout-grid.layout-grid-char.layout-grid-line.layout-grid-mode.layout-grid-type.left.letter-spacing.lighting-color.-webkit-line-align.-webkit-line-box-contain.line-break.-webkit-line-break.line-clamp.-webkit-line-clamp.line-gap-override.line-grid.-webkit-line-grid-snap.-webkit-line-grid.line-height.line-height-step.line-increment.line-padding.line-snap.-webkit-line-snap.-o-link.-o-link-source.list-style.list-style-image.list-style-position.list-style-type.-webkit-locale.-webkit-logical-height.-webkit-logical-width.margin.-webkit-margin-after-collapse.-webkit-margin-after.-webkit-margin-before-collapse.-webkit-margin-before.margin-block.margin-block-end.margin-block-start.margin-bottom.-webkit-margin-bottom-collapse.margin-break.-webkit-margin-collapse.-moz-margin-end.-webkit-margin-end.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.-moz-margin-start.-webkit-margin-start.margin-top.-webkit-margin-top-collapse.margin-trim.marker.marker-end.marker-knockout-left.marker-knockout-right.marker-mid.marker-offset.marker-pattern.marker-segment.marker-side.marker-start.marks.-wap-marquee-dir.-webkit-marquee-direction.-webkit-marquee-increment.-wap-marquee-loop.-webkit-marquee-repetition.-wap-marquee-speed.-webkit-marquee-speed.-wap-marquee-style.-webkit-marquee-style.-webkit-marquee.mask.-webkit-mask-attachment.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.-webkit-mask-box-image-outset.-webkit-mask-box-image-repeat.-webkit-mask-box-image-slice.-webkit-mask-box-image-source.-webkit-mask-box-image.-webkit-mask-box-image-width.mask-clip.-webkit-mask-clip.mask-composite.-webkit-mask-composite.mask-image.-webkit-mask-image.mask-mode.mask-origin.-webkit-mask-origin.mask-position.-webkit-mask-position.mask-position-x.-webkit-mask-position-x.mask-position-y.-webkit-mask-position-y.mask-repeat.-webkit-mask-repeat.-webkit-mask-repeat-x.-webkit-mask-repeat-y.mask-size.-webkit-mask-size.mask-source-type.-webkit-mask-source-type.mask-type.-webkit-mask.-webkit-match-nearest-mail-blockquote-color.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-lines.-webkit-max-logical-height.-webkit-max-logical-width.max-width.max-zoom.min-block-size.min-height.min-inline-size.min-intrinsic-sizing.-webkit-min-logical-height.-webkit-min-logical-width.min-width.min-zoom.mix-blend-mode.motion.motion-offset.motion-path.motion-rotation.nav-down.nav-index.nav-left.nav-right.nav-up.-webkit-nbsp-mode.negative.object-fit.-o-object-fit.object-position.-o-object-position.object-view-box.offset.offset-anchor.offset-block-end.offset-block-start.offset-distance.offset-inline-end.offset-inline-start.offset-path.offset-position.offset-rotate.offset-rotation.opacity.-moz-opacity.-webkit-opacity.order.-webkit-order.-moz-orient.orientation.orphans.-moz-osx-font-smoothing.outline.outline-color.-moz-outline-color.-moz-outline.outline-offset.-moz-outline-offset.-moz-outline-radius-bottomleft.-moz-outline-radius-bottomright.-moz-outline-radius.-moz-outline-radius-topleft.-moz-outline-radius-topright.outline-style.-moz-outline-style.outline-width.-moz-outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-clip-margin-block.overflow-clip-margin-block-end.overflow-clip-margin-block-start.overflow-clip-margin-bottom.overflow-clip-margin-inline.overflow-clip-margin-inline-end.overflow-clip-margin-inline-start.overflow-clip-margin-left.overflow-clip-margin-right.overflow-clip-margin-top.overflow-inline.-webkit-overflow-scrolling.-ms-overflow-style.overflow-wrap.overflow-x.overflow-y.overlay.override-colors.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.pad.padding.-webkit-padding-after.-webkit-padding-before.padding-block.padding-block-end.padding-block-start.padding-bottom.-moz-padding-end.-webkit-padding-end.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.-moz-padding-start.-webkit-padding-start.padding-top.page.page-break-after.page-break-before.page-break-inside.page-orientation.paint-order.pause.pause-after.pause-before.-apple-pay-button-style.-apple-pay-button-type.pen-action.perspective.-moz-perspective.-ms-perspective.perspective-origin.-moz-perspective-origin.-ms-perspective-origin.-webkit-perspective-origin.perspective-origin-x.-webkit-perspective-origin-x.perspective-origin-y.-webkit-perspective-origin-y.-webkit-perspective.pitch.pitch-range.place-content.place-items.place-self.play-during.pointer-events.position.position-fallback.position-fallback-bounds.prefix.print-color-adjust.-webkit-print-color-adjust.property-name.quotes.r.range.-webkit-region-break-after.-webkit-region-break-before.-webkit-region-break-inside.region-fragment.-webkit-region-fragment.-webkit-region-overflow.resize.rest.rest-after.rest-before.richness.right.rotate.row-gap.-webkit-rtl-ordering.ruby-align.ruby-merge.ruby-overhang.ruby-position.-webkit-ruby-position.running.rx.ry.scale.scroll-behavior.-ms-scroll-chaining.-ms-scroll-limit.-ms-scroll-limit-x-max.-ms-scroll-limit-x-min.-ms-scroll-limit-y-max.-ms-scroll-limit-y-min.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.-ms-scroll-rails.scroll-snap-align.scroll-snap-coordinate.-webkit-scroll-snap-coordinate.scroll-snap-destination.-webkit-scroll-snap-destination.scroll-snap-margin.scroll-snap-margin-bottom.scroll-snap-margin-left.scroll-snap-margin-right.scroll-snap-margin-top.scroll-snap-points-x.-ms-scroll-snap-points-x.-webkit-scroll-snap-points-x.scroll-snap-points-y.-ms-scroll-snap-points-y.-webkit-scroll-snap-points-y.scroll-snap-stop.scroll-snap-type.-ms-scroll-snap-type.-webkit-scroll-snap-type.scroll-snap-type-x.scroll-snap-type-y.-ms-scroll-snap-x.-ms-scroll-snap-y.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.-ms-scroll-translation.scrollbar-arrow-color.scrollbar-base-color.scrollbar-color.scrollbar-dark-shadow-color.scrollbar-darkshadow-color.scrollbar-face-color.scrollbar-gutter.scrollbar-highlight-color.scrollbar-shadow-color.scrollbar-track-color.scrollbar-width.scrollbar3d-light-color.scrollbar3dlight-color.shape-image-threshold.-webkit-shape-image-threshold.shape-inside.-webkit-shape-inside.shape-margin.-webkit-shape-margin.shape-outside.-webkit-shape-outside.-webkit-shape-padding.shape-rendering.size.size-adjust.snap-height.solid-color.solid-opacity.spatial-navigation-action.spatial-navigation-contain.spatial-navigation-function.speak.speak-as.speak-header.speak-numeral.speak-punctuation.speech-rate.src.-moz-stack-sizing.stop-color.stop-opacity.stress.string-set.stroke.stroke-align.stroke-alignment.stroke-break.stroke-color.stroke-dash-corner.stroke-dash-justify.stroke-dashadjust.stroke-dasharray.stroke-dashcorner.stroke-dashoffset.stroke-image.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-origin.stroke-position.stroke-repeat.stroke-size.stroke-width.suffix.supported-color-schemes.-webkit-svg-shadow.symbols.syntax.system.tab-size.-moz-tab-size.-o-tab-size.-o-table-baseline.table-layout.-webkit-tap-highlight-color.text-align.text-align-all.text-align-last.-moz-text-align-last.text-anchor.text-autospace.-moz-text-blink.text-box-edge.text-box-trim.-ms-text-combine-horizontal.text-combine-upright.-webkit-text-combine.text-decoration.text-decoration-blink.text-decoration-color.-moz-text-decoration-color.-webkit-text-decoration-color.text-decoration-line.-moz-text-decoration-line.text-decoration-line-through.-webkit-text-decoration-line.text-decoration-none.text-decoration-overline.text-decoration-skip.text-decoration-skip-box.text-decoration-skip-ink.text-decoration-skip-inset.text-decoration-skip-self.text-decoration-skip-spaces.-webkit-text-decoration-skip.text-decoration-style.-moz-text-decoration-style.-webkit-text-decoration-style.text-decoration-thickness.text-decoration-trim.text-decoration-underline.-webkit-text-decoration.-webkit-text-decorations-in-effect.text-emphasis.text-emphasis-color.-webkit-text-emphasis-color.text-emphasis-position.-webkit-text-emphasis-position.text-emphasis-skip.text-emphasis-style.-webkit-text-emphasis-style.-webkit-text-emphasis.-webkit-text-fill-color.text-group-align.text-indent.text-justify.text-justify-trim.text-kashida.text-kashida-space.text-line-through.text-line-through-color.text-line-through-mode.text-line-through-style.text-line-through-width.text-orientation.-webkit-text-orientation.text-overflow.text-overline.text-overline-color.text-overline-mode.text-overline-style.text-overline-width.text-rendering.-webkit-text-security.text-shadow.text-size-adjust.-moz-text-size-adjust.-ms-text-size-adjust.-webkit-text-size-adjust.text-spacing.text-spacing-trim.-webkit-text-stroke-color.-webkit-text-stroke.-webkit-text-stroke-width.text-transform.text-underline.text-underline-color.text-underline-mode.text-underline-offset.text-underline-position.-webkit-text-underline-position.text-underline-style.text-underline-width.text-wrap.text-wrap-mode.text-wrap-style.-webkit-text-zoom.timeline-scope.top.touch-action.touch-action-delay.-ms-touch-action.-webkit-touch-callout.-ms-touch-select.-apple-trailing-word.transform.transform-box.-moz-transform.-ms-transform.-o-transform.transform-origin.-moz-transform-origin.-ms-transform-origin.-o-transform-origin.-webkit-transform-origin.transform-origin-x.-webkit-transform-origin-x.transform-origin-y.-webkit-transform-origin-y.transform-origin-z.-webkit-transform-origin-z.transform-style.-moz-transform-style.-ms-transform-style.-webkit-transform-style.-webkit-transform.transition.transition-behavior.transition-delay.-moz-transition-delay.-ms-transition-delay.-o-transition-delay.-webkit-transition-delay.transition-duration.-moz-transition-duration.-ms-transition-duration.-o-transition-duration.-webkit-transition-duration.-moz-transition.-ms-transition.-o-transition.transition-property.-moz-transition-property.-ms-transition-property.-o-transition-property.-webkit-transition-property.transition-timing-function.-moz-transition-timing-function.-ms-transition-timing-function.-o-transition-timing-function.-webkit-transition-timing-function.-webkit-transition.translate.uc-alt-skin.uc-skin.unicode-bidi.unicode-range.-webkit-user-drag.-moz-user-focus.-moz-user-input.-moz-user-modify.-webkit-user-modify.user-select.-moz-user-select.-ms-user-select.-webkit-user-select.user-zoom.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.viewport-fill.viewport-fill-opacity.viewport-fit.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.volume.white-space.white-space-collapse.white-space-trim.-webkit-widget-region.widows.width.will-change.-moz-window-dragging.-moz-window-shadow.word-boundary-detection.word-boundary-expansion.word-break.word-space-transform.word-spacing.word-wrap.wrap-after.wrap-before.wrap-flow.-ms-wrap-flow.-webkit-wrap-flow.wrap-inside.-ms-wrap-margin.-webkit-wrap-margin.-webkit-wrap-padding.-webkit-wrap-shape-inside.-webkit-wrap-shape-outside.wrap-through.-ms-wrap-through.-webkit-wrap-through.-webkit-wrap.writing-mode.-webkit-writing-mode.x.y.z-index.zoom`.split(`.`),Ki={properties:Gi}})),Ji=a(((t,n)=>{n.exports.all=(qi(),e(Wi).default).properties})),{entries:Yi,setPrototypeOf:Xi,isFrozen:Zi,getPrototypeOf:Qi,getOwnPropertyDescriptor:$i}=Object,{freeze:ea,seal:ta,create:na}=Object,{apply:ra,construct:ia}=typeof Reflect<`u`&&Reflect;ea||=function(e){return e},ta||=function(e){return e},ra||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},ia||=function(e){return new e(...[...arguments].slice(1))};var aa=ya(Array.prototype.forEach),oa=ya(Array.prototype.lastIndexOf),sa=ya(Array.prototype.pop),ca=ya(Array.prototype.push),la=ya(Array.prototype.splice),ua=ya(String.prototype.toLowerCase),da=ya(String.prototype.toString),fa=ya(String.prototype.match),pa=ya(String.prototype.replace),ma=ya(String.prototype.indexOf),ha=ya(String.prototype.trim),ga=ya(Object.prototype.hasOwnProperty),_a=ya(RegExp.prototype.test),va=ba(TypeError);function ya(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return ra(e,t,n)}}function ba(e){return function(){return ia(e,[...arguments])}}function W(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ua;Xi&&Xi(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Zi(t)||(t[r]=e),i=e)}e[i]=!0}return e}function xa(e){for(let t=0;t<e.length;t++)ga(e,t)||(e[t]=null);return e}function Sa(e){let t=na(null);for(let[n,r]of Yi(e))ga(e,n)&&(Array.isArray(r)?t[n]=xa(r):r&&typeof r==`object`&&r.constructor===Object?t[n]=Sa(r):t[n]=r);return t}function Ca(e,t){for(;e!==null;){let n=$i(e,t);if(n){if(n.get)return ya(n.get);if(typeof n.value==`function`)return ya(n.value)}e=Qi(e)}function n(){return null}return n}var wa=ea(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Ta=ea(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Ea=ea([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Da=ea([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Oa=ea(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),ka=ea([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),Aa=ea([`#text`]),ja=ea(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot`.split(`.`)),Ma=ea(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Na=ea(`accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Pa=ea([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Fa=ta(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ia=ta(/<%[\w\W]*|[\w\W]*%>/gm),La=ta(/\$\{[\w\W]*/gm),Ra=ta(/^data-[\-\w.\u00B7-\uFFFF]+$/),za=ta(/^aria-[\-\w]+$/),Ba=ta(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Va=ta(/^(?:\w+script|data):/i),Ha=ta(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ua=ta(/^html$/i),Wa=ta(/^[a-z][.\w]*(-[.\w]+)+$/i),Ga=Object.freeze({__proto__:null,ARIA_ATTR:za,ATTR_WHITESPACE:Ha,CUSTOM_ELEMENT:Wa,DATA_ATTR:Ra,DOCTYPE_NAME:Ua,ERB_EXPR:Ia,IS_ALLOWED_URI:Ba,IS_SCRIPT_OR_DATA:Va,MUSTACHE_EXPR:Fa,TMPLIT_EXPR:La}),Ka={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},qa=function(){return typeof window>`u`?null:window},Ja=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Ya=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Xa(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qa(),t=e=>Xa(e);if(t.version=`3.3.3`,t.removed=[],!e||!e.document||e.document.nodeType!==Ka.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:c,NodeFilter:l,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,m=c.prototype,h=Ca(m,`cloneNode`),g=Ca(m,`remove`),_=Ca(m,`nextSibling`),v=Ca(m,`childNodes`),y=Ca(m,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let b,x=``,{implementation:S,createNodeIterator:C,createDocumentFragment:w,getElementsByTagName:T}=n,{importNode:E}=r,D=Ya();t.isSupported=typeof Yi==`function`&&typeof y==`function`&&S&&S.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:O,ERB_EXPR:k,TMPLIT_EXPR:A,DATA_ATTR:j,ARIA_ATTR:ee,IS_SCRIPT_OR_DATA:M,ATTR_WHITESPACE:te,CUSTOM_ELEMENT:N}=Ga,{IS_ALLOWED_URI:ne}=Ga,P=null,re=W({},[...wa,...Ta,...Ea,...Oa,...Aa]),ie=null,ae=W({},[...ja,...Ma,...Na,...Pa]),F=Object.seal(na(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),oe=null,se=null,I=Object.seal(na(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),ce=!0,le=!0,ue=!1,de=!0,fe=!1,pe=!0,me=!1,he=!1,ge=!1,_e=!1,ve=!1,ye=!1,be=!0,xe=!1,Se=!0,Ce=!1,we={},Te=null,Ee=W({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),De=null,Oe=W({},[`audio`,`video`,`img`,`source`,`image`,`track`]),ke=null,Ae=W({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),je=`http://www.w3.org/1998/Math/MathML`,Me=`http://www.w3.org/2000/svg`,Ne=`http://www.w3.org/1999/xhtml`,Pe=Ne,Fe=!1,Ie=null,Le=W({},[je,Me,Ne],da),Re=W({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),ze=W({},[`annotation-xml`]),Be=W({},[`title`,`style`,`font`,`a`,`script`]),Ve=null,He=[`application/xhtml+xml`,`text/html`],Ue=null,We=null,Ge=n.createElement(`form`),Ke=function(e){return e instanceof RegExp||e instanceof Function},qe=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(We&&We===e)){if((!e||typeof e!=`object`)&&(e={}),e=Sa(e),Ve=He.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,Ue=Ve===`application/xhtml+xml`?da:ua,P=ga(e,`ALLOWED_TAGS`)?W({},e.ALLOWED_TAGS,Ue):re,ie=ga(e,`ALLOWED_ATTR`)?W({},e.ALLOWED_ATTR,Ue):ae,Ie=ga(e,`ALLOWED_NAMESPACES`)?W({},e.ALLOWED_NAMESPACES,da):Le,ke=ga(e,`ADD_URI_SAFE_ATTR`)?W(Sa(Ae),e.ADD_URI_SAFE_ATTR,Ue):Ae,De=ga(e,`ADD_DATA_URI_TAGS`)?W(Sa(Oe),e.ADD_DATA_URI_TAGS,Ue):Oe,Te=ga(e,`FORBID_CONTENTS`)?W({},e.FORBID_CONTENTS,Ue):Ee,oe=ga(e,`FORBID_TAGS`)?W({},e.FORBID_TAGS,Ue):Sa({}),se=ga(e,`FORBID_ATTR`)?W({},e.FORBID_ATTR,Ue):Sa({}),we=ga(e,`USE_PROFILES`)?e.USE_PROFILES:!1,ce=e.ALLOW_ARIA_ATTR!==!1,le=e.ALLOW_DATA_ATTR!==!1,ue=e.ALLOW_UNKNOWN_PROTOCOLS||!1,de=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,fe=e.SAFE_FOR_TEMPLATES||!1,pe=e.SAFE_FOR_XML!==!1,me=e.WHOLE_DOCUMENT||!1,_e=e.RETURN_DOM||!1,ve=e.RETURN_DOM_FRAGMENT||!1,ye=e.RETURN_TRUSTED_TYPE||!1,ge=e.FORCE_BODY||!1,be=e.SANITIZE_DOM!==!1,xe=e.SANITIZE_NAMED_PROPS||!1,Se=e.KEEP_CONTENT!==!1,Ce=e.IN_PLACE||!1,ne=e.ALLOWED_URI_REGEXP||Ba,Pe=e.NAMESPACE||Ne,Re=e.MATHML_TEXT_INTEGRATION_POINTS||Re,ze=e.HTML_INTEGRATION_POINTS||ze,F=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ke(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(F.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ke(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(F.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(F.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),fe&&(le=!1),ve&&(_e=!0),we&&(P=W({},Aa),ie=na(null),we.html===!0&&(W(P,wa),W(ie,ja)),we.svg===!0&&(W(P,Ta),W(ie,Ma),W(ie,Pa)),we.svgFilters===!0&&(W(P,Ea),W(ie,Ma),W(ie,Pa)),we.mathMl===!0&&(W(P,Oa),W(ie,Na),W(ie,Pa))),ga(e,`ADD_TAGS`)||(I.tagCheck=null),ga(e,`ADD_ATTR`)||(I.attributeCheck=null),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?I.tagCheck=e.ADD_TAGS:(P===re&&(P=Sa(P)),W(P,e.ADD_TAGS,Ue))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?I.attributeCheck=e.ADD_ATTR:(ie===ae&&(ie=Sa(ie)),W(ie,e.ADD_ATTR,Ue))),e.ADD_URI_SAFE_ATTR&&W(ke,e.ADD_URI_SAFE_ATTR,Ue),e.FORBID_CONTENTS&&(Te===Ee&&(Te=Sa(Te)),W(Te,e.FORBID_CONTENTS,Ue)),e.ADD_FORBID_CONTENTS&&(Te===Ee&&(Te=Sa(Te)),W(Te,e.ADD_FORBID_CONTENTS,Ue)),Se&&(P[`#text`]=!0),me&&W(P,[`html`,`head`,`body`]),P.table&&(W(P,[`tbody`]),delete oe.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw va(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw va(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);b=e.TRUSTED_TYPES_POLICY,x=b.createHTML(``)}else b===void 0&&(b=Ja(p,i)),b!==null&&typeof x==`string`&&(x=b.createHTML(``));ea&&ea(e),We=e}},Je=W({},[...Ta,...Ea,...Da]),Ye=W({},[...Oa,...ka]),Xe=function(e){let t=y(e);(!t||!t.tagName)&&(t={namespaceURI:Pe,tagName:`template`});let n=ua(e.tagName),r=ua(t.tagName);return Ie[e.namespaceURI]?e.namespaceURI===Me?t.namespaceURI===Ne?n===`svg`:t.namespaceURI===je?n===`svg`&&(r===`annotation-xml`||Re[r]):!!Je[n]:e.namespaceURI===je?t.namespaceURI===Ne?n===`math`:t.namespaceURI===Me?n===`math`&&ze[r]:!!Ye[n]:e.namespaceURI===Ne?t.namespaceURI===Me&&!ze[r]||t.namespaceURI===je&&!Re[r]?!1:!Ye[n]&&(Be[n]||!Je[n]):!!(Ve===`application/xhtml+xml`&&Ie[e.namespaceURI]):!1},Ze=function(e){ca(t.removed,{element:e});try{y(e).removeChild(e)}catch{g(e)}},Qe=function(e,n){try{ca(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{ca(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(_e||ve)try{Ze(n)}catch{}else try{n.setAttribute(e,``)}catch{}},$e=function(e){let t=null,r=null;if(ge)e=`<remove></remove>`+e;else{let t=fa(e,/^[\r\n\t ]+/);r=t&&t[0]}Ve===`application/xhtml+xml`&&Pe===Ne&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=b?b.createHTML(e):e;if(Pe===Ne)try{t=new f().parseFromString(i,Ve)}catch{}if(!t||!t.documentElement){t=S.createDocument(Pe,`template`,null);try{t.documentElement.innerHTML=Fe?x:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Pe===Ne?T.call(t,me?`html`:`body`)[0]:me?t.documentElement:a},et=function(e){return C.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},tt=function(e){return e instanceof d&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof u)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},nt=function(e){return typeof s==`function`&&e instanceof s};function rt(e,n,r){aa(e,e=>{e.call(t,n,r,We)})}let it=function(e){let n=null;if(rt(D.beforeSanitizeElements,e,null),tt(e))return Ze(e),!0;let r=Ue(e.nodeName);if(rt(D.uponSanitizeElement,e,{tagName:r,allowedTags:P}),pe&&e.hasChildNodes()&&!nt(e.firstElementChild)&&_a(/<[/\w!]/g,e.innerHTML)&&_a(/<[/\w!]/g,e.textContent)||e.nodeType===Ka.progressingInstruction||pe&&e.nodeType===Ka.comment&&_a(/<[/\w]/g,e.data))return Ze(e),!0;if(!(I.tagCheck instanceof Function&&I.tagCheck(r))&&(!P[r]||oe[r])){if(!oe[r]&&ot(r)&&(F.tagNameCheck instanceof RegExp&&_a(F.tagNameCheck,r)||F.tagNameCheck instanceof Function&&F.tagNameCheck(r)))return!1;if(Se&&!Te[r]){let t=y(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=h(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,_(e))}}}return Ze(e),!0}return e instanceof c&&!Xe(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&_a(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ze(e),!0):(fe&&e.nodeType===Ka.text&&(n=e.textContent,aa([O,k,A],e=>{n=pa(n,e,` `)}),e.textContent!==n&&(ca(t.removed,{element:e.cloneNode()}),e.textContent=n)),rt(D.afterSanitizeElements,e,null),!1)},at=function(e,t,r){if(se[t]||be&&(t===`id`||t===`name`)&&(r in n||r in Ge))return!1;if(!(le&&!se[t]&&_a(j,t))&&!(ce&&_a(ee,t))&&!(I.attributeCheck instanceof Function&&I.attributeCheck(t,e))){if(!ie[t]||se[t]){if(!(ot(e)&&(F.tagNameCheck instanceof RegExp&&_a(F.tagNameCheck,e)||F.tagNameCheck instanceof Function&&F.tagNameCheck(e))&&(F.attributeNameCheck instanceof RegExp&&_a(F.attributeNameCheck,t)||F.attributeNameCheck instanceof Function&&F.attributeNameCheck(t,e))||t===`is`&&F.allowCustomizedBuiltInElements&&(F.tagNameCheck instanceof RegExp&&_a(F.tagNameCheck,r)||F.tagNameCheck instanceof Function&&F.tagNameCheck(r))))return!1}else if(!ke[t]&&!_a(ne,pa(r,te,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&ma(r,`data:`)===0&&De[e])&&!(ue&&!_a(M,pa(r,te,``)))&&r)return!1}return!0},ot=function(e){return e!==`annotation-xml`&&fa(e,N)},st=function(e){rt(D.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||tt(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:ie,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=Ue(a),l=s,u=a===`value`?l:ha(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,rt(D.uponSanitizeAttribute,e,r),u=r.attrValue,xe&&(c===`id`||c===`name`)&&(Qe(a,e),u=`user-content-`+u),pe&&_a(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){Qe(a,e);continue}if(c===`attributename`&&fa(u,`href`)){Qe(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Qe(a,e);continue}if(!de&&_a(/\/>/i,u)){Qe(a,e);continue}fe&&aa([O,k,A],e=>{u=pa(u,e,` `)});let d=Ue(e.nodeName);if(!at(d,c,u)){Qe(a,e);continue}if(b&&typeof p==`object`&&typeof p.getAttributeType==`function`&&!o)switch(p.getAttributeType(d,c)){case`TrustedHTML`:u=b.createHTML(u);break;case`TrustedScriptURL`:u=b.createScriptURL(u);break}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),tt(e)?Ze(e):sa(t.removed)}catch{Qe(a,e)}}rt(D.afterSanitizeAttributes,e,null)},ct=function e(t){let n=null,r=et(t);for(rt(D.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)rt(D.uponSanitizeShadowNode,n,null),it(n),st(n),n.content instanceof a&&e(n.content);rt(D.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(Fe=!e,Fe&&(e=`<!-->`),typeof e!=`string`&&!nt(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw va(`dirty is not a string, aborting`)}else throw va(`toString is not a function`);if(!t.isSupported)return e;if(he||qe(n),t.removed=[],typeof e==`string`&&(Ce=!1),Ce){if(e.nodeName){let t=Ue(e.nodeName);if(!P[t]||oe[t])throw va(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof s)i=$e(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===Ka.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o);else{if(!_e&&!fe&&!me&&e.indexOf(`<`)===-1)return b&&ye?b.createHTML(e):e;if(i=$e(e),!i)return _e?null:ye?x:``}i&&ge&&Ze(i.firstChild);let u=et(Ce?e:i);for(;c=u.nextNode();)it(c),st(c),c.content instanceof a&&ct(c.content);if(Ce)return e;if(_e){if(ve)for(l=w.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(ie.shadowroot||ie.shadowrootmode)&&(l=E.call(r,l,!0)),l}let d=me?i.outerHTML:i.innerHTML;return me&&P[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&_a(Ua,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
`+d),fe&&aa([O,k,A],e=>{d=pa(d,e,` `)}),b&&ye?b.createHTML(d):d},t.setConfig=function(){qe(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),he=!0},t.clearConfig=function(){We=null,he=!1},t.isValidAttribute=function(e,t,n){return We||qe({}),at(Ue(e),Ue(t),n)},t.addHook=function(e,t){typeof t==`function`&&ca(D[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=oa(D[e],t);return n===-1?void 0:la(D[e],n,1)[0]}return sa(D[e])},t.removeHooks=function(e){D[e]=[]},t.removeAllHooks=function(){D=Ya()},t}var Za=Xa(),Qa=Object.defineProperty,$a=Object.defineProperties,eo=Object.getOwnPropertyDescriptors,to=Object.getOwnPropertySymbols,no=Object.prototype.hasOwnProperty,ro=Object.prototype.propertyIsEnumerable,io=(e,t,n)=>t in e?Qa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ao=(e,t)=>{for(var n in t||={})no.call(t,n)&&io(e,n,t[n]);if(to)for(var n of to(t))ro.call(t,n)&&io(e,n,t[n]);return e},oo=(e,t)=>$a(e,eo(t)),G=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())}),so={};function co(e){return`${e.__instanceId}-${e.apiKey}`}var lo=class{constructor(e){this.config={apiKey:``,apiUrl:`https://api.frigade.com`,userId:Fo(),__instanceId:Math.random().toString(12).substring(4),generateGuestId:!0};let t=Object.fromEntries(Object.entries(e).filter(([e,t])=>t!=null));!e.userId&&e.generateGuestId===!1&&delete this.config.userId,this.config=ao(ao({},this.config),t)}fetch(e,t){return G(this,null,function*(){return this.config.__readOnly?Po():No(this.getAPIUrl(e),ao(ao({keepalive:!0},t??{}),Do(this.config)))})}getAPIUrl(e){return`${this.config.apiUrl.replace(/\/$/,``)}/${e.replace(/^\//,``)}`}getGlobalState(){let e=co(this.config);if(!so[e])throw Error(`Frigade has not yet been initialized`);return so[e]}},uo=class extends lo{constructor({config:e,id:t}){super(e),this.props={},this._isVisible=!1,this.lastStepUpdate=new Map,this.id=t,this.init()}get isVisible(){return this._isVisible}set isVisible(e){this._isVisible=e}reload(){this.init()}resyncState(e){let t=Eo(e??this.getStatefulFlow());this.rawData=t,this.title=t?.data?.title,this.subtitle=t?.data?.subtitle,this.props=t?.data?.props??{},this.isCompleted=t.$state.completed,this.isStarted=t.$state.started,this.isSkipped=t.$state.skipped,this._isVisible=t.$state.visible,t.data.steps.forEach((e,t)=>{let n=this.initStepFromStatefulStep(e,t),r=this.steps?.get(e.id);r&&Object.keys(n).forEach(e=>{r[e]=n[e]})}),this.getGlobalState().variables[this.id]&&this.applyVariables(this.getGlobalState().variables[this.id]??{})}initStepFromStatefulStep(e,t){return oo(ao({},e),{flow:this,$state:oo(ao({},e.$state),{lastActionAt:e.$state.lastActionAt?new Date(e.$state.lastActionAt):void 0}),order:t})}init(){let e=this.getStatefulFlow();this.resyncState();let t=new Map;e.data.steps.forEach((e,n)=>{let r=this.initStepFromStatefulStep(e,n);r.start=t=>G(this,null,function*(){let n=this.steps.get(e.id);if(this.getCurrentStep().id===n.id&&n.$state.started)return;let r=Eo(this.getGlobalState().flowStates[this.id]);r.data.steps[n.order].$state.started=!0,r.data.steps[n.order].$state.lastActionAt=new Date,r.$state.lastActionAt=new Date,r.$state.currentStepId=n.id,r.$state.currentStepIndex=n.order,this.getGlobalState().flowStates[this.id]=r,this.resyncState(),yield this.sendFlowStateToAPI(bo,t,n.id)});let i=(t,n,r=!0)=>G(this,null,function*(){let i=this.steps.get(e.id);if((i.$state.completed||i.$state.skipped)&&r){let e=this.getStepByIndex(i.order+1);for(;e&&!e.$state.visible&&e.order!==this.steps.size-1;)e=this.getStepByIndex(e.order+1);if(e){let t=Eo(this.getGlobalState().flowStates[this.id]);t.$state.currentStepId=this.getStepByIndex(i.order+1).id,t.$state.currentStepIndex=i.order+1,t.data.steps[i.order+1].$state.started=!0,this.getGlobalState().flowStates[this.id]=t,yield this.sendFlowStateToAPI(bo,void 0,e.id),this.resyncState()}return}let a=this.getCurrentStepOrder()+1===this.getNumberOfAvailableSteps();if(r){let e=Eo(this.getGlobalState().flowStates[this.id]);if(e.$state.started=!0,t==`complete`?e.data.steps[i.order].$state.completed=!0:e.data.steps[i.order].$state.skipped=!0,e.data.steps[i.order].$state.started=!0,e.data.steps[i.order].$state.lastActionAt=new Date,a)e.$state.completed=!0,e.$state.visible=!1;else{let t=this.getNextVisibleStepIndexAfterIndex(i.order);t!==-1&&(e.$state.currentStepId=this.getStepByIndex(t).id,e.$state.currentStepIndex=t,e.data.steps[t].$state.started=!0)}this.getGlobalState().flowStates[this.id]=e,this.resyncState(),a&&this.optimisticallyMarkFlowCompleted()}yield this.sendFlowStateToAPI(t==`complete`?vo:yo,n,i.id),a&&(yield this.sendFlowStateToAPI(mo,n))});r.complete=(e,t=!0)=>G(this,null,function*(){yield i(`complete`,e,t)}),r.skip=(e,t=!0)=>G(this,null,function*(){yield i(`skip`,e,t)}),r.reset=()=>G(this,null,function*(){let t=this.steps.get(e.id);if(!t.$state.completed)return;let n=Eo(this.getGlobalState().flowStates[this.id]);n.data.steps[t.order].$state.started=!1,n.data.steps[t.order].$state.completed=!1,n.data.steps[t.order].$state.lastActionAt=void 0,this.getGlobalState().flowStates[this.id]=n,this.resyncState(),yield this.sendFlowStateToAPI(po,void 0,t.id)}),r.onStateChange=t=>{let n=n=>{if(n.id!==this.id)return;let r=n.steps.get(e.id),i=this.lastStepUpdate.get(t);(r.$state.completed!==i?.$state.completed||r.$state.started!==i?.$state.started||r.$state.visible!==i?.$state.visible||r.$state.blocked!==i?.$state.blocked)&&(t(r,i??Eo(r)),this.lastStepUpdate.set(t,Eo(r)))};this.getGlobalState().onStepStateChangeHandlerWrappers.set(t,n),this.getGlobalState().onFlowStateChangeHandlers.push(n)},r.removeStateChangeHandler=e=>{let t=this.getGlobalState().onStepStateChangeHandlerWrappers.get(e);t&&(this.getGlobalState().onFlowStateChangeHandlers=this.getGlobalState().onFlowStateChangeHandlers.filter(e=>e!==t))},t.set(e.id,r)}),this.steps=t,this.getGlobalState().variables&&this.getGlobalState().variables[this.id]&&Object.keys(this.getGlobalState().variables[this.id]).length>0&&this.applyVariables(this.getGlobalState().variables[this.id])}start(e){return G(this,null,function*(){this.isStarted||this.isCompleted||(this.optimisticallyMarkFlowStarted(),yield this.sendFlowStateToAPI(go,e))})}complete(e){return G(this,null,function*(){this.isCompleted||(this.optimisticallyMarkFlowCompleted(),yield this.sendFlowStateToAPI(mo,e))})}skip(e){return G(this,null,function*(){this.isSkipped||(this.optimisticallyMarkFlowSkipped(),yield this.sendFlowStateToAPI(ho,e))})}forward(e){return G(this,null,function*(){let t=this.getStepByIndex(this.getNextVisibleStepIndexAfterIndex(this.getCurrentStepIndex()));t&&(yield t.start(e))})}back(e){return G(this,null,function*(){let t=this.getStepByIndex(this.getCurrentStepIndex()-1);for(;t&&!t.$state.visible&&t.order!==0;)t=this.getStepByIndex(t.order-1);t&&(yield t.start(e))})}restart(){return G(this,null,function*(){yield this.sendFlowStateToAPI(_o)})}getStepByIndex(e){return this.steps.get(Array.from(this.steps.keys())[e])}getCurrentStep(){let e=this.steps.get(this.getStatefulFlow().$state.currentStepId);return e||(e=this.getFirstVisibleStep(),e)}getFirstVisibleStep(){return this.getStepByIndex(this.getNextVisibleStepIndexAfterIndex(-1))}getNextVisibleStepIndexAfterIndex(e){let t=Array.from(this.steps.values());for(let n=e+1;n<t.length;n++)if(t[n].$state.visible)return n;return-1}getCurrentStepIndex(){let e=this.getCurrentStep();return Array.from(this.steps.keys()).indexOf(e.id)}getNumberOfCompletedSteps(){return Array.from(this.steps.values()).filter(e=>e.$state.completed).length}getNumberOfAvailableSteps(){return Array.from(this.steps.values()).filter(e=>e.$state.visible).length}getCurrentStepOrder(){let e=this.getCurrentStep();return Array.from(this.steps.values()).filter(e=>e.$state.visible).indexOf(e)}getProgress(){return(this.getNumberOfCompletedSteps()||0)/(this.getNumberOfAvailableSteps()||1)}onStateChange(e){let t=(t,n)=>{t.id===this.id&&(t.isCompleted!==n?.isCompleted||t.isStarted!==n?.isStarted||t.isSkipped!==n?.isSkipped||t.isVisible!==n?.isVisible||JSON.stringify(t.steps)!==JSON.stringify(n?.steps))&&e(t,n)};this.getGlobalState().onFlowStateChangeHandlerWrappers.set(e,t),this.getGlobalState().onFlowStateChangeHandlers.push(t)}removeStateChangeHandler(e){let t=this.getGlobalState().onFlowStateChangeHandlerWrappers.get(e);t&&(this.getGlobalState().onFlowStateChangeHandlers=this.getGlobalState().onFlowStateChangeHandlers.filter(e=>e!==t))}applyVariables(e){if(this.getGlobalState().variables[this.id]&&JSON.stringify(this.getGlobalState().variables[this.id])!==JSON.stringify(e)){this.getGlobalState().variables[this.id]=e,this.reload();return}let t=t=>{let n=t.match(/\${(.*?)}/g);return n&&n.forEach(n=>{let r=n.replace("${",``).replace(`}`,``);if(!e[r]){t=t.replace(n,``);return}t=t.replace(n,e[r])}),t};this.title=t(this.title??``),this.subtitle=t(this.subtitle??``);let n=e=>{e&&Object.keys(e).forEach(r=>{typeof e[r]==`string`?e[r]=t(e[r]):typeof e[r]==`object`?n(e[r]):Array.isArray(e[r])&&e[r].forEach(e=>{n(e)})})};this.steps&&this.steps.forEach(e=>{n(e)}),this.getGlobalState().variables[this.id]=e}getStatefulFlow(){return this.getGlobalState().flowStates[this.id]}optimisticallyMarkFlowCompleted(){let e=Eo(this.getGlobalState().flowStates[this.id]);e.$state.completed=!0,e.$state.started=!0,e.$state.visible=!1,this.getGlobalState().flowStates[this.id]=e,this.resyncState()}optimisticallyMarkFlowStarted(){let e=Eo(this.getGlobalState().flowStates[this.id]);e.$state.started=!0,this.getGlobalState().flowStates[this.id]=e,this.resyncState()}sendFlowStateToAPI(e,t,n){return G(this,null,function*(){let r=new Date;this.getGlobalState().lastFlowSyncDate[this.id]=r,this.getGlobalState().pendingRequests[this.id]=(this.getGlobalState().pendingRequests[this.id]??0)+1;let i=yield this.fetch(`/v1/public/flowStates`,{method:`POST`,body:JSON.stringify({userId:this.getGlobalState().config.userId,groupId:this.getGlobalState().config.groupId,flowSlug:this.id,stepId:n,data:t||{},actionType:e,createdAt:r,context:Lo(this.getGlobalState())})});--this.getGlobalState().pendingRequests[this.id],!(r<this.getGlobalState().lastFlowSyncDate[this.id]||this.getGlobalState().pendingRequests[this.id]>0)&&(yield this.getGlobalState().refreshStateFromAPI(i))})}optimisticallyMarkFlowSkipped(){let e=Eo(this.getGlobalState().flowStates[this.id]);e.$state.skipped=!0,e.$state.visible=!1,this.getGlobalState().flowStates[this.id]=e,this.resyncState()}register(e){this.getGlobalState().collections.register(this.id,t=>{let n=this.getGlobalState().previousFlows.get(this.id);n?._isVisible!==t&&this.getGlobalState().onFlowStateChangeHandlers.forEach(e=>{e(this,n),this.getGlobalState().previousFlows.set(this.id,To(this))}),e?.(t)})}unregister(){this.getGlobalState().collections&&this.getGlobalState().collections.unregister(this.id)}},fo=`0.7.9`,po=`NOT_STARTED_STEP`,mo=`COMPLETED_FLOW`,ho=`SKIPPED_FLOW`,go=`STARTED_FLOW`,_o=`NOT_STARTED_FLOW`,vo=`COMPLETED_STEP`,yo=`SKIPPED_STEP`,bo=`STARTED_STEP`,xo=`frigade-guest-key`,So=`guest_`,Co=`get-cache-`,wo=`fr-js-`;function To(e){return new uo({config:e.config,id:e.id})}function Eo(e){return JSON.parse(JSON.stringify(e))}function Do(e){return{headers:{Authorization:`Bearer ${e.apiKey}`,"Content-Type":`application/json`,"x-frigade-sdk-version":e.__platformVersion??fo,"x-frigade-sdk-platform":e.__platformName??`Javascript`}}}function Oo(e){return Io()?window.localStorage.getItem(`${wo}${e}`):null}function ko(e,t){Io()&&window.localStorage.setItem(`${wo}${e}`,t)}function Ao(){Object.keys(so).forEach(e=>{e.startsWith(Co)&&delete so[e]})}function jo(){Io()&&Object.keys(window.localStorage).forEach(e=>{e.startsWith(wo)&&window.localStorage.removeItem(e)})}var Mo=new class{constructor(){this.queue=[],this.ttlInMS=250,this.cacheSize=5}push(e,t){let n=new Date;this.queue.length>=this.cacheSize&&this.queue.shift(),this.queue.push({call:e,time:n.getTime(),response:t??null})}hasIdenticalCall(e){let t=new Date;return this.queue=this.queue.filter(e=>t.getTime()-e.time<this.ttlInMS),this.queue.find(t=>t.call===e)}};function No(e,t){return G(this,null,function*(){if(typeof globalThis.fetch!=`function`)return Po(`- Attempted to call fetch() in an environment that doesn't support it.`);let n=`${e}${JSON.stringify(t.body??{})}`,r,i=Io()&&t&&t.body&&t.method===`POST`;if(i){let e=Mo.hasIdenticalCall(n);e!=null&&e.response!=null&&(r=(yield e.response).clone())}if(!r)try{let a=fetch(e,t);i&&Mo.push(n,a.then(e=>e.clone()).catch(()=>Po())),r=yield a}catch(e){return Po(e)}if(!r)return Po(`Received an empty response`);if(r.status>=400)return Po(r.statusText);try{if(r.status===204)return Po();let e;try{e=yield r.json()}catch{return Po()}return e.error?Po(e.error):e}catch(e){return Po(e)}})}function Po(e){return e&&console.warn(`Call to Frigade failed`,e),{json:()=>({}),clone:()=>({})}}function Fo(){if(Io()){let e=Oo(xo);return e||(e=`${So}${d()}`,ko(xo,e)),e}else return`${So}${d()}`}function Io(){return typeof window<`u`&&window.document!==void 0&&window.localStorage!==void 0}function Lo(e){let t={registeredCollectionIds:Array.from(e.registeredCollectionIds)};return Io()?ao({url:e.currentUrl,userAgent:navigator.userAgent},t):t}var Ro=class{constructor(e){this.registry=new Map,this.registryStateLocked=!1,this.collections=new Map,this.flowsInCollections=new Set,this.ingestCollectionsData(e)}getCollection(e){return this.collections.get(e)}getCollections(){return this.collections}ingestCollectionsData(e){this.collections=e;for(let[,e]of this.collections)for(let{flowId:t}of e.flows)this.flowsInCollections.add(t);this.registry.size>0&&(this.registryStateLocked||this.resetRegistryState(),this.processCollections()),this.fireCallbacks()}fireCallbacks(){for(let[e,{callback:t}]of this.registry)typeof t==`function`&&t(this.isFlowVisible(e))}isFlowVisible(e){let t=this.registry.get(e),n=this.flowsInCollections.has(e);return t==null||!n?!0:t.visible}lockRegistryState(){this.registryStateLocked=!0}unlockRegistryState(){this.registryStateLocked=!1}resetRegistryState(){for(let[e,t]of this.registry)t.visible=!1,t.visited=!1,this.registry.set(e,t)}processCollections(){for(let[,e]of this.collections)for(let{flowId:t,visible:n}of e.flows){let r=this.registry.get(t);if(r!=null){if(n===!1&&r.visible!==!0){this.visit(t,!1);continue}r.visited&&this.registryStateLocked||(e.flows.map(({flowId:e})=>e).filter(e=>e!==t),this.visit(t))}}}register(e,t){if(Array.isArray(e)){this.batchRegister(e);return}this.registry.set(e,{callback:t??(()=>{}),visible:!1,visited:!1}),this.registryStateLocked||this.resetRegistryState(),this.processCollections(),this.fireCallbacks()}batchRegister(e){e.forEach(([e,t])=>{this.registry.set(e,{callback:t??(()=>{}),visible:!1,visited:!1})}),this.registryStateLocked||this.resetRegistryState(),this.processCollections(),this.lockRegistryState(),this.fireCallbacks()}unregister(e){this.registry.delete(e),this.resetRegistryState(),this.processCollections(),this.fireCallbacks()}visit(e,t=!0){let n=this.registry.get(e)??{callback:()=>{},visible:t,visited:!0};n.visible=t,n.visited=!0,this.registry.set(e,n)}},zo=class extends lo{constructor(e,t){super(ao({apiKey:e},t)),this.flows=[],this.hasFailed=!1,this.visibilityChangeHandler=()=>G(this,null,function*(){document.visibilityState===`visible`&&(yield this.refreshStateFromAPI())}),this.init(this.config),Io()&&this.config.syncOnWindowUpdates!==!1&&(document.addEventListener(`visibilitychange`,this.visibilityChangeHandler),window.navigation&&window.navigation.addEventListener(`navigate`,e=>G(this,null,function*(){try{if(this.getGlobalState().currentUrl===e.destination.url)return;this.getGlobalState().currentUrl=e.destination.url,this.refreshStateFromAPI()}catch{}})))}getConfig(){return this.config}destroy(){if(Io()){document.removeEventListener(`visibilitychange`,this.visibilityChangeHandler);let e=co(this.config);so[e]&&(so[e].onFlowStateChangeHandlers=[])}}init(e){return G(this,null,function*(){if(this.updateConfig(ao(ao({},this.config),e)),!(!this.config.userId&&this.config.generateGuestId===!1))return this.initPromise=G(this,null,function*(){var e;this.config.__readOnly||(e=this.config.userId)!=null&&e.startsWith(So)||(this.config.userId&&this.config.groupId?yield this.session({userId:this.config.userId,groupId:this.config.groupId,userProperties:this.config.userProperties,groupProperties:this.config.groupProperties}):this.config.userId&&(yield this.session({userId:this.config.userId,userProperties:this.config.userProperties}))),yield this.refreshStateFromAPI()}),this.initPromise})}identify(e,t){return G(this,null,function*(){yield this.updateConfig(oo(ao({},this.config),{userId:e})),yield this.initIfNeeded(),yield this.session({userId:this.config.userId,userProperties:t}),yield this.resync()})}group(e,t){return G(this,null,function*(){yield this.initIfNeeded(),this.updateConfig(oo(ao({},this.config),{groupId:e})),yield this.session({userId:this.config.userId,groupId:this.config.groupId,groupProperties:t}),yield this.resync()})}track(e,t){return G(this,null,function*(){if(yield this.initIfNeeded(),!e){console.error(`Event name is required to track an event`);return}this.config.userId&&this.config.groupId?yield this.session({userId:this.config.userId,groupId:this.config.groupId,groupEvents:[{event:e,properties:t}],userEvents:[{event:e,properties:t}]}):this.config.userId&&(yield this.session({userId:this.config.userId,userEvents:[{event:e,properties:t}]})),yield this.resync()})}session(e){return G(this,null,function*(){yield this.fetch(`/v1/public/sessions`,{method:`POST`,body:JSON.stringify(e)})})}isReady(){return!!(this.config.__instanceId&&this.config.apiKey&&this.initPromise)}getFlow(e){return G(this,null,function*(){return yield this.initIfNeeded(),this.getFlowSync(e)})}getFlowSync(e){return this.flows.find(t=>t.id==e)}getFlows(){return G(this,null,function*(){return yield this.initIfNeeded(),this.flows})}getCollection(e){return G(this,null,function*(){yield this.initIfNeeded();let t=this.getGlobalState().collections.getCollection(e);if(t!=null)return this.getGlobalState().registeredCollectionIds.add(e),t.flows=yield Promise.all(t.flows.map(e=>G(this,null,function*(){return oo(ao({},e),{flow:yield this.getFlow(e.flowId)})}))),t})}getCollectionSync(e){let t=this.getGlobalState().collections.getCollection(e);if(t!=null)return this.getGlobalState().registeredCollectionIds.add(e),t}getCollections(){return G(this,null,function*(){if(yield this.initIfNeeded(),!this.config.userId&&this.config.generateGuestId===!1)return;let e=this.getGlobalState().collections.getCollections();if(e!=null)return e})}reload(e){return G(this,null,function*(){jo(),Ao(),e&&(yield this.updateConfig(e),this.mockFlowStates(co(this.config))),this.initPromise=null,yield this.init(this.config),this.flows.forEach(e=>{this.getGlobalState().onFlowStateChangeHandlers.forEach(t=>{t(e,this.getGlobalState().previousFlows.get(e.id)),this.getGlobalState().previousFlows.set(e.id,To(e))})})})}resync(){return G(this,null,function*(){yield this.refreshStateFromAPI()})}onStateChange(e){return G(this,null,function*(){yield this.initIfNeeded(),this.getGlobalState().onFlowStateChangeHandlers.push(e)})}hasFailedToLoad(){return this.hasFailed}removeStateChangeHandler(e){return G(this,null,function*(){yield this.initIfNeeded(),this.getGlobalState().onFlowStateChangeHandlers=this.getGlobalState().onFlowStateChangeHandlers.filter(t=>t!==e)})}initIfNeeded(){return G(this,null,function*(){return this.initPromise?this.initPromise:this.init(this.config)})}refreshStateFromAPI(){return G(this,null,function*(){let e=co(this.config);if(!so[e]){let t=this;if(so[e]={refreshStateFromAPI:()=>G(this,null,function*(){}),collections:new Ro(new Map),registeredCollectionIds:new Set,flowStates:new Proxy({},{set:function(e,n,r){if(e[n]){let i=e[n],a=r;JSON.stringify(i)!==JSON.stringify(a)&&t.triggerEventHandlers(a,i)}return e[n]=r,!0}}),onFlowStateChangeHandlerWrappers:new Map,onStepStateChangeHandlerWrappers:new Map,onFlowStateChangeHandlers:[],previousFlows:new Map,variables:{},config:this.config,currentUrl:Io()?window.location.href:``,pendingRequests:new Map,lastFlowSyncDate:new Map},this.config.__readOnly&&this.config.__flowStateOverrides){this.mockFlowStates(e);return}so[e].refreshStateFromAPI=t=>G(this,null,function*(){var n;if(this.config.__readOnly)return;let r=t||(yield this.fetch(`/v1/public/flowStates`,{method:`POST`,body:JSON.stringify({userId:this.getGlobalState().config.userId,groupId:this.getGlobalState().config.groupId,context:Lo(this.getGlobalState())})})),i=new Map;(n=r.collections?.computedOrder)==null||n.forEach(({allowedComponents:e,collectionId:t,collectionType:n,flowId:r,visible:a})=>{let o=i.get(t)??{allowedComponents:e,collectionType:n,flows:[]};o.flows.push({flowId:r,visible:a}),i.set(t,o)}),i.size>0&&so[e].collections.ingestCollectionsData(i),r&&r.eligibleFlows?(r.eligibleFlows.forEach(t=>{so[e].flowStates[t.flowSlug]=t,this.flows.find(e=>e.id==t.flowSlug)?this.flows.forEach(e=>{e.id==t.flowSlug&&e.resyncState(t)}):this.flows.push(new uo({config:this.config,id:t.flowSlug}))}),this.hasFailed=!1):this.hasFailed=!0})}yield so[e].refreshStateFromAPI()})}mockFlowStates(e){Object.keys(this.config.__flowStateOverrides).forEach(t=>{so[e].flowStates[t]=this.config.__flowStateOverrides[t],this.flows.find(e=>e.id==t)?this.flows.forEach(e=>{e.id==t&&e.resyncState(this.config.__flowStateOverrides[t])}):this.flows.push(new uo({config:this.config,id:t}))})}updateConfig(e){return G(this,null,function*(){this.config=ao(ao({},this.config),e),so[co(this.config)]&&(this.getGlobalState().config=this.config)})}triggerEventHandlers(e,t){return G(this,null,function*(){e&&this.flows.forEach(n=>{n.id==t.flowSlug&&this.getGlobalState().onFlowStateChangeHandlers.forEach(t=>{let r=this.getGlobalState().previousFlows.get(n.id);n.resyncState(e),t(n,r),this.getGlobalState().previousFlows.set(n.id,To(n))})})})}batchRegister(e){return G(this,null,function*(){let t=e.map(e=>G(this,[e],function*([e,t]){let n=yield this.getFlow(e);return[e,r=>{let i=this.getGlobalState().previousFlows.get(e);i?.isVisible!==r&&this.getGlobalState().onFlowStateChangeHandlers.forEach(t=>{t(n,i),this.getGlobalState().previousFlows.set(e,To(n))}),t?.(r)}]}));Promise.all(t).then(e=>{this.getGlobalState().collections.batchRegister(e)})})}},Bo=(e=>(e.MANUAL=`MANUAL`,e.AUTOMATIC=`AUTOMATIC`,e))(Bo||{}),Vo=(e=>(e.DRAFT=`DRAFT`,e.ACTIVE=`ACTIVE`,e.ARCHIVED=`ARCHIVED`,e))(Vo||{}),Ho=(e=>(e.ANNOUNCEMENT=`ANNOUNCEMENT`,e.CHECKLIST=`CHECKLIST`,e.FORM=`FORM`,e.TOUR=`TOUR`,e.SUPPORT=`SUPPORT`,e.CUSTOM=`CUSTOM`,e.BANNER=`BANNER`,e.EMBEDDED_TIP=`EMBEDDED_TIP`,e.NPS_SURVEY=`NPS_SURVEY`,e.SURVEY=`SURVEY`,e.CARD=`CARD`,e))(Ho||{});function Uo(e){return Object.prototype.toString.call(e)===`[object Object]`}function Wo(e){return Uo(e)||Array.isArray(e)}function Go(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}function Ko(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||JSON.stringify(Object.keys(e.breakpoints||{}))!==JSON.stringify(Object.keys(t.breakpoints||{}))?!1:n.every(n=>{let r=e[n],i=t[n];return typeof r==`function`?`${r}`==`${i}`:!Wo(r)||!Wo(i)?r===i:Ko(r,i)})}function qo(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function Jo(e,t){if(e.length!==t.length)return!1;let n=qo(e),r=qo(t);return n.every((e,t)=>{let n=r[t];return Ko(e,n)})}function Yo(e){return typeof e==`number`}function Xo(e){return typeof e==`string`}function Zo(e){return typeof e==`boolean`}function Qo(e){return Object.prototype.toString.call(e)===`[object Object]`}function $o(e){return Math.abs(e)}function es(e){return Math.sign(e)}function ts(e,t){return $o(e-t)}function ns(e,t){return e===0||t===0||$o(e)<=$o(t)?0:$o(ts($o(e),$o(t))/e)}function rs(e){return cs(e).map(Number)}function is(e){return e[as(e)]}function as(e){return Math.max(0,e.length-1)}function os(e,t){return t===as(e)}function ss(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function cs(e){return Object.keys(e)}function ls(e,t){return[e,t].reduce((e,t)=>(cs(t).forEach(n=>{let r=e[n],i=t[n];e[n]=Qo(r)&&Qo(i)?ls(r,i):i}),e),{})}function us(e,t){return t.MouseEvent!==void 0&&e instanceof t.MouseEvent}function ds(e,t){let n={start:r,center:i,end:a};function r(){return 0}function i(e){return a(e)/2}function a(e){return t-e}function o(r,i){return Xo(e)?n[e](r):e(t,r,i)}return{measure:o}}function fs(){let e=[];function t(t,n,i,a={passive:!0}){let o;if(`addEventListener`in t)t.addEventListener(n,i,a),o=()=>t.removeEventListener(n,i,a);else{let e=t;e.addListener(i),o=()=>e.removeListener(i)}return e.push(o),r}function n(){e=e.filter(e=>e())}let r={add:t,clear:n};return r}function ps(e,t,n,r){let i=fs(),a=1e3/60,o=null,s=0,c=0;function l(){i.add(e,`visibilitychange`,()=>{e.hidden&&m()})}function u(){p(),i.clear()}function d(e){if(!c)return;o||=e;let i=e-o;for(o=e,s+=i;s>=a;)n(a),s-=a;r(s/a),c&&t.requestAnimationFrame(d)}function f(){c||=t.requestAnimationFrame(d)}function p(){t.cancelAnimationFrame(c),o=null,s=0,c=0}function m(){o=null,s=0}return{init:l,destroy:u,start:f,stop:p,update:()=>n(a),render:r}}function ms(e,t){let n=t===`rtl`,r=e===`y`,i=r?`y`:`x`,a=r?`x`:`y`,o=!r&&n?-1:1,s=u(),c=d();function l(e){let{height:t,width:n}=e;return r?t:n}function u(){return r?`top`:n?`right`:`left`}function d(){return r?`bottom`:n?`left`:`right`}function f(e){return e*o}return{scroll:i,cross:a,startEdge:s,endEdge:c,measureSize:l,direction:f}}function hs(e=0,t=0){let n=$o(e-t);function r(t){return t<e}function i(e){return e>t}function a(e){return r(e)||i(e)}function o(n){return a(n)?r(n)?e:t:n}function s(e){return n?e-n*Math.ceil((e-t)/n):e}return{length:n,max:t,min:e,constrain:o,reachedAny:a,reachedMax:i,reachedMin:r,removeOffset:s}}function gs(e,t,n){let{constrain:r}=hs(0,e),i=e+1,a=o(t);function o(e){return n?$o((i+e)%i):r(e)}function s(){return a}function c(e){return a=o(e),d}function l(e){return u().set(s()+e)}function u(){return gs(e,s(),n)}let d={get:s,set:c,add:l,clone:u};return d}function _s(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v){let{cross:y,direction:b}=e,x=[`INPUT`,`SELECT`,`TEXTAREA`],S={passive:!1},C=fs(),w=fs(),T=hs(50,225).constrain(p.measure(20)),E={mouse:300,touch:400},D={mouse:500,touch:600},O=m?43:25,k=!1,A=0,j=0,ee=!1,M=!1,te=!1,N=!1;function ne(e){if(!v)return;function n(t){(Zo(v)||v(e,t))&&oe(t)}let r=t;C.add(r,`dragstart`,e=>e.preventDefault(),S).add(r,`touchmove`,()=>void 0,S).add(r,`touchend`,()=>void 0).add(r,`touchstart`,n).add(r,`mousedown`,n).add(r,`touchcancel`,I).add(r,`contextmenu`,I).add(r,`click`,ce,!0)}function P(){C.clear(),w.clear()}function re(){let e=N?n:t;w.add(e,`touchmove`,se,S).add(e,`touchend`,I).add(e,`mousemove`,se,S).add(e,`mouseup`,I)}function ie(e){let t=e.nodeName||``;return x.includes(t)}function ae(){return(m?D:E)[N?`mouse`:`touch`]}function F(e,t){let n=d.add(es(e)*-1),r=u.byDistance(e,!m).distance;return m||$o(e)<T?r:g&&t?r*.5:u.byIndex(n.get(),0).distance}function oe(e){let t=us(e,r);N=t,te=m&&t&&!e.buttons&&k,k=ts(i.get(),o.get())>=2,!(t&&e.button!==0)&&(ie(e.target)||(ee=!0,a.pointerDown(e),l.useFriction(0).useDuration(0),i.set(o),re(),A=a.readPoint(e),j=a.readPoint(e,y),f.emit(`pointerDown`)))}function se(e){if(!us(e,r)&&e.touches.length>=2)return I(e);let t=a.readPoint(e),n=a.readPoint(e,y),o=ts(t,A),c=ts(n,j);if(!M&&!N&&(!e.cancelable||(M=o>c,!M)))return I(e);let u=a.pointerMove(e);o>h&&(te=!0),l.useFriction(.3).useDuration(.75),s.start(),i.add(b(u)),e.preventDefault()}function I(e){let t=u.byDistance(0,!1).index!==d.get(),n=a.pointerUp(e)*ae(),r=F(b(n),t),i=ns(n,r),o=O-10*i,s=_+i/50;M=!1,ee=!1,w.clear(),l.useDuration(o).useFriction(s),c.distance(r,!m),N=!1,f.emit(`pointerUp`)}function ce(e){te&&=(e.stopPropagation(),e.preventDefault(),!1)}function le(){return ee}return{init:ne,destroy:P,pointerDown:le}}function vs(e,t){let n,r;function i(e){return e.timeStamp}function a(n,r){let i=`client${(r||e.scroll)===`x`?`X`:`Y`}`;return(us(n,t)?n:n.touches[0])[i]}function o(e){return n=e,r=e,a(e)}function s(e){let t=a(e)-a(r),o=i(e)-i(n)>170;return r=e,o&&(n=e),t}function c(e){if(!n||!r)return 0;let t=a(r)-a(n),o=i(e)-i(n),s=i(e)-i(r)>170,c=t/o;return o&&!s&&$o(c)>.1?c:0}return{pointerDown:o,pointerMove:s,pointerUp:c,readPoint:a}}function ys(){function e(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}return{measure:e}}function bs(e){function t(t){return t/100*e}return{measure:t}}function xs(e,t,n,r,i,a,o){let s=[e].concat(r),c,l,u=[],d=!1;function f(e){return i.measureSize(o.measure(e))}function p(i){if(!a)return;l=f(e),u=r.map(f);function o(n){for(let a of n){if(d)return;let n=a.target===e,o=r.indexOf(a.target),s=n?l:u[o];if($o(f(n?e:r[o])-s)>=.5){i.reInit(),t.emit(`resize`);break}}}c=new ResizeObserver(e=>{(Zo(a)||a(i,e))&&o(e)}),n.requestAnimationFrame(()=>{s.forEach(e=>c.observe(e))})}function m(){d=!0,c&&c.disconnect()}return{init:p,destroy:m}}function Ss(e,t,n,r,i,a){let o=0,s=0,c=i,l=a,u=e.get(),d=0;function f(t){let i=t/1e3,a=c*i,f=r.get()-e.get(),p=!c,m=0;return p?(o=0,n.set(r),e.set(r),m=f):(n.set(e),o+=f/a,o*=l,u+=o,e.add(o*i),m=u-d),s=es(m),d=u,x}function p(){return $o(r.get()-t.get())<.001}function m(){return c}function h(){return s}function g(){return o}function _(){return y(i)}function v(){return b(a)}function y(e){return c=e,x}function b(e){return l=e,x}let x={direction:h,duration:m,velocity:g,seek:f,settled:p,useBaseFriction:v,useBaseDuration:_,useFriction:b,useDuration:y};return x}function Cs(e,t,n,r,i){let a=i.measure(10),o=i.measure(50),s=hs(.1,.99),c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(i){if(!l())return;let c=$o(e[e.reachedMin(t.get())?`min`:`max`]-t.get()),u=n.get()-t.get(),d=s.constrain(c/o);n.subtract(u*d),!i&&$o(u)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function d(e){c=!e}return{shouldConstrain:l,constrain:u,toggleActive:d}}function ws(e,t,n,r,i){let a=hs(-t+e,0),o=d(),s=u(),c=f();function l(e,t){return ts(e,t)<1}function u(){let e=o[0],t=is(o);return hs(o.lastIndexOf(e),o.indexOf(t)+1)}function d(){return n.map((e,t)=>{let{min:r,max:i}=a,o=a.constrain(e),s=!t,c=os(n,t);return s?i:c||l(r,o)?r:l(i,o)?i:o}).map(e=>parseFloat(e.toFixed(3)))}function f(){if(t<=e+i)return[a.max];if(r===`keepSnaps`)return o;let{min:n,max:c}=s;return o.slice(n,c)}return{snapsContained:c,scrollContainLimit:s}}function Ts(e,t,n){let r=t[0];return{limit:hs(n?r-e:is(t),r)}}function Es(e,t,n,r){let i=.1,{reachedMin:a,reachedMax:o}=hs(t.min+i,t.max+i);function s(e){return e===1?o(n.get()):e===-1?a(n.get()):!1}function c(t){if(!s(t))return;let n=t*-1*e;r.forEach(e=>e.add(n))}return{loop:c}}function Ds(e){let{max:t,length:n}=e;function r(e){let r=e-t;return n?r/-n:0}return{get:r}}function Os(e,t,n,r,i){let{startEdge:a,endEdge:o}=e,{groupSlides:s}=i,c=d().map(t.measure),l=f(),u=p();function d(){return s(r).map(e=>is(e)[o]-e[0][a]).map($o)}function f(){return r.map(e=>n[a]-e[a]).map(e=>-$o(e))}function p(){return s(l).map(e=>e[0]).map((e,t)=>e+c[t])}return{snaps:l,snapsAligned:u}}function ks(e,t,n,r,i,a){let{groupSlides:o}=i,{min:s,max:c}=r,l=u();function u(){let r=o(a),i=!e||t===`keepSnaps`;return n.length===1?[a]:i?r:r.slice(s,c).map((e,t,n)=>{let r=!t,i=os(n,t);return r?ss(is(n[0])+1):i?ss(as(a)-is(n)[0]+1,is(n)[0]):e})}return{slideRegistry:l}}function As(e,t,n,r,i){let{reachedAny:a,removeOffset:o,constrain:s}=r;function c(e){return e.concat().sort((e,t)=>$o(e)-$o(t))[0]}function l(n){let r=e?o(n):s(n),{index:i}=t.map((e,t)=>({diff:u(e-r,0),index:t})).sort((e,t)=>$o(e.diff)-$o(t.diff))[0];return{index:i,distance:r}}function u(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return c(i);let a=i.filter(e=>es(e)===r);return a.length?c(a):is(i)-n}function d(e,n){return{index:e,distance:u(t[e]-i.get(),n)}}function f(n,r){let o=i.get()+n,{index:s,distance:c}=l(o),d=!e&&a(o);return!r||d?{index:s,distance:n}:{index:s,distance:n+u(t[s]-c,0)}}return{byDistance:f,byIndex:d,shortcut:u}}function js(e,t,n,r,i,a,o){function s(i){let s=i.distance,c=i.index!==t.get();a.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),c&&(n.set(t.get()),t.set(i.index),o.emit(`select`))}function c(e,t){s(i.byDistance(e,t))}function l(e,n){let r=t.clone().set(e);s(i.byIndex(r.get(),n))}return{distance:c,index:l}}function Ms(e,t,n,r,i,a,o,s){let c={passive:!0,capture:!0},l=0;function u(u){if(!s)return;function f(t){if(new Date().getTime()-l>10)return;o.emit(`slideFocusStart`),e.scrollLeft=0;let a=n.findIndex(e=>e.includes(t));Yo(a)&&(i.useDuration(0),r.index(a,0),o.emit(`slideFocus`))}a.add(document,`keydown`,d,!1),t.forEach((e,t)=>{a.add(e,`focus`,e=>{(Zo(s)||s(u,e))&&f(t)},c)})}function d(e){e.code===`Tab`&&(l=new Date().getTime())}return{init:u}}function Ns(e){let t=e;function n(){return t}function r(e){t=o(e)}function i(e){t+=o(e)}function a(e){t-=o(e)}function o(e){return Yo(e)?e:e.get()}return{get:n,set:r,add:i,subtract:a}}function Ps(e,t){let n=e.scroll===`x`?a:o,r=t.style,i=!1;function a(e){return`translate3d(${e}px,0px,0px)`}function o(e){return`translate3d(0px,${e}px,0px)`}function s(t){i||(r.transform=n(e.direction(t)))}function c(e){i=!e}function l(){i||(r.transform=``,t.getAttribute(`style`)||t.removeAttribute(`style`))}return{clear:l,to:s,toggleActive:c}}function Fs(e,t,n,r,i,a,o,s,c){let l=.5,u=rs(i),d=rs(i).reverse(),f=_().concat(v());function p(e,t){return e.reduce((e,t)=>e-i[t],t)}function m(e,t){return e.reduce((e,n)=>p(e,t)>0?e.concat([n]):e,[])}function h(e){return a.map((n,i)=>({start:n-r[i]+l+e,end:n+t-l+e}))}function g(t,r,i){let a=h(r);return t.map(t=>{let r=i?0:-n,o=i?n:0,l=i?`end`:`start`,u=a[t][l];return{index:t,loopPoint:u,slideLocation:Ns(-1),translate:Ps(e,c[t]),target:()=>s.get()>u?r:o}})}function _(){let e=o[0];return g(m(d,e),n,!1)}function v(){return g(m(u,t-o[0]-1),-n,!0)}function y(){return f.every(({index:e})=>p(u.filter(t=>t!==e),t)<=.1)}function b(){f.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})}function x(){f.forEach(e=>e.translate.clear())}return{canLoop:y,clear:x,loop:b,loopPoints:f}}function Is(e,t,n){let r,i=!1;function a(a){if(!n)return;function o(e){for(let n of e)if(n.type===`childList`){a.reInit(),t.emit(`slidesChanged`);break}}r=new MutationObserver(e=>{i||(Zo(n)||n(a,e))&&o(e)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),i=!0}return{init:a,destroy:o}}function Ls(e,t,n,r){let i={},a=null,o=null,s,c=!1;function l(){s=new IntersectionObserver(e=>{c||(e.forEach(e=>{let n=t.indexOf(e.target);i[n]=e}),a=null,o=null,n.emit(`slidesInView`))},{root:e.parentElement,threshold:r}),t.forEach(e=>s.observe(e))}function u(){s&&s.disconnect(),c=!0}function d(e){return cs(i).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:a}=i[r];return(e&&a||!e&&!a)&&t.push(r),t},[])}function f(e=!0){if(e&&a)return a;if(!e&&o)return o;let t=d(e);return e&&(a=t),e||(o=t),t}return{init:l,destroy:u,get:f}}function Rs(e,t,n,r,i,a){let{measureSize:o,startEdge:s,endEdge:c}=e,l=n[0]&&i,u=m(),d=h(),f=n.map(o),p=g();function m(){if(!l)return 0;let e=n[0];return $o(t[s]-e[s])}function h(){if(!l)return 0;let e=a.getComputedStyle(is(r));return parseFloat(e.getPropertyValue(`margin-${c}`))}function g(){return n.map((e,t,n)=>{let r=!t,i=os(n,t);return r?f[t]+u:i?f[t]+d:n[t+1][s]-e[s]}).map($o)}return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:d}}function zs(e,t,n,r,i,a,o,s,c){let{startEdge:l,endEdge:u,direction:d}=e,f=Yo(n);function p(e,t){return rs(e).filter(e=>e%t===0).map(n=>e.slice(n,n+t))}function m(e){return e.length?rs(e).reduce((n,f,p)=>{let m=is(n)||0,h=m===0,g=f===as(e),_=i[l]-a[m][l],v=i[l]-a[f][u],y=!r&&h?d(o):0,b=$o(v-(!r&&g?d(s):0)-(_+y));return p&&b>t+c&&n.push(f),g&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}function h(e){return f?p(e,n):m(e)}return{groupSlides:h}}function Bs(e,t,n,r,i,a,o){let{align:s,axis:c,direction:l,startIndex:u,loop:d,duration:f,dragFree:p,dragThreshold:m,inViewThreshold:h,slidesToScroll:g,skipSnaps:_,containScroll:v,watchResize:y,watchSlides:b,watchDrag:x,watchFocus:S}=a,C=ys(),w=C.measure(t),T=n.map(C.measure),E=ms(c,l),D=E.measureSize(w),O=bs(D),k=ds(s,D),A=!d&&!!v,{slideSizes:j,slideSizesWithGaps:ee,startGap:M,endGap:te}=Rs(E,w,T,n,d||!!v,i),N=zs(E,D,g,d,w,T,M,te,2),{snaps:ne,snapsAligned:P}=Os(E,k,w,T,N),re=-is(ne)+is(ee),{snapsContained:ie,scrollContainLimit:ae}=ws(D,re,P,v,2),F=A?ie:P,{limit:oe}=Ts(re,F,d),se=gs(as(F),u,d),I=se.clone(),ce=rs(n),le=({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}},i)=>{r||n.constrain(e.pointerDown()),t.seek(i)},ue=({scrollBody:e,translate:t,location:n,offsetLocation:r,scrollLooper:i,slideLooper:a,dragHandler:o,animation:s,eventHandler:c,scrollBounds:l,options:{loop:u}},d)=>{let f=e.settled(),p=!l.shouldConstrain(),m=u?f:f&&p;m&&!o.pointerDown()&&(s.stop(),c.emit(`settle`)),m||c.emit(`scroll`);let h=n.get()*d+he.get()*(1-d);r.set(h),u&&(i.loop(e.direction()),a.loop()),t.to(r.get())},de=ps(r,i,e=>le(Ee,e),e=>ue(Ee,e)),fe=.68,pe=F[se.get()],me=Ns(pe),he=Ns(pe),ge=Ns(pe),_e=Ns(pe),ve=Ss(me,ge,he,_e,f,fe),ye=As(d,F,re,oe,_e),be=js(de,se,I,ve,ye,_e,o),xe=Ds(oe),Se=fs(),Ce=Ls(t,n,o,h),{slideRegistry:we}=ks(A,v,F,ae,N,ce),Te=Ms(e,n,we,be,ve,Se,o,S),Ee={ownerDocument:r,ownerWindow:i,eventHandler:o,containerRect:w,slideRects:T,animation:de,axis:E,dragHandler:_s(E,e,r,i,_e,vs(E,i),me,de,be,ve,ye,se,o,O,p,m,_,fe,x),eventStore:Se,percentOfView:O,index:se,indexPrevious:I,limit:oe,location:me,offsetLocation:ge,previousLocation:he,options:a,resizeHandler:xs(t,o,i,n,E,y,C),scrollBody:ve,scrollBounds:Cs(oe,ge,_e,ve,O),scrollLooper:Es(re,oe,ge,[me,ge,he,_e]),scrollProgress:xe,scrollSnapList:F.map(xe.get),scrollSnaps:F,scrollTarget:ye,scrollTo:be,slideLooper:Fs(E,D,re,j,ee,ne,F,ge,n),slideFocus:Te,slidesHandler:Is(t,o,b),slidesInView:Ce,slideIndexes:ce,slideRegistry:we,slidesToScroll:N,target:_e,translate:Ps(E,t)};return Ee}function Vs(){let e={},t;function n(e){t=e}function r(t){return e[t]||[]}function i(e){return r(e).forEach(n=>n(t,e)),c}function a(t,n){return e[t]=r(t).concat([n]),c}function o(t,n){return e[t]=r(t).filter(e=>e!==n),c}function s(){e={}}let c={init:n,emit:i,off:o,on:a,clear:s};return c}var Hs={align:`center`,axis:`x`,container:null,slides:null,containScroll:`trimSnaps`,direction:`ltr`,slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function Us(e){function t(e,t){return ls(e,t||{})}function n(n){let r=n.breakpoints||{};return t(n,cs(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{}))}function r(t){return t.map(e=>cs(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function Ws(e){let t=[];function n(n,r){return t=r.filter(({options:t})=>e.optionsAtMedia(t).active!==!1),t.forEach(t=>t.init(n,e)),r.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})}function r(){t=t.filter(e=>e.destroy())}return{init:n,destroy:r}}function Gs(e,t,n){let r=e.ownerDocument,i=r.defaultView,a=Us(i),o=Ws(a),s=fs(),c=Vs(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=a,{on:f,off:p,emit:m}=c,h=D,g=!1,_,v=l(Hs,Gs.globalOptions),y=l(v),b=[],x,S,C;function w(){let{container:t,slides:n}=y;S=(Xo(t)?e.querySelector(t):t)||e.children[0];let r=Xo(n)?S.querySelectorAll(n):n;C=[].slice.call(r||S.children)}function T(t){let n=Bs(e,S,C,r,i,t,c);return t.loop&&!n.slideLooper.canLoop()?T(Object.assign({},t,{loop:!1})):n}function E(e,t){g||(v=l(v,e),y=u(v),b=t||b,w(),_=T(y),d([v,...b.map(({options:e})=>e)]).forEach(e=>s.add(e,`change`,D)),y.active&&(_.translate.to(_.location.get()),_.animation.init(),_.slidesInView.init(),_.slideFocus.init(le),_.eventHandler.init(le),_.resizeHandler.init(le),_.slidesHandler.init(le),_.options.loop&&_.slideLooper.loop(),S.offsetParent&&C.length&&_.dragHandler.init(le),x=o.init(le,b)))}function D(e,t){let n=P();O(),E(l({startIndex:n},e),t),c.emit(`reInit`)}function O(){_.dragHandler.destroy(),_.eventStore.clear(),_.translate.clear(),_.slideLooper.clear(),_.resizeHandler.destroy(),_.slidesHandler.destroy(),_.slidesInView.destroy(),_.animation.destroy(),o.destroy(),s.clear()}function k(){g||(g=!0,s.clear(),O(),c.emit(`destroy`),c.clear())}function A(e,t,n){!y.active||g||(_.scrollBody.useBaseFriction().useDuration(t===!0?0:y.duration),_.scrollTo.index(e,n||0))}function j(e){A(_.index.add(1).get(),e,-1)}function ee(e){A(_.index.add(-1).get(),e,1)}function M(){return _.index.add(1).get()!==P()}function te(){return _.index.add(-1).get()!==P()}function N(){return _.scrollSnapList}function ne(){return _.scrollProgress.get(_.location.get())}function P(){return _.index.get()}function re(){return _.indexPrevious.get()}function ie(){return _.slidesInView.get()}function ae(){return _.slidesInView.get(!1)}function F(){return x}function oe(){return _}function se(){return e}function I(){return S}function ce(){return C}let le={canScrollNext:M,canScrollPrev:te,containerNode:I,internalEngine:oe,destroy:k,off:p,on:f,emit:m,plugins:F,previousScrollSnap:re,reInit:h,rootNode:se,scrollNext:j,scrollPrev:ee,scrollProgress:ne,scrollSnapList:N,scrollTo:A,selectedScrollSnap:P,slideNodes:ce,slidesInView:ie,slidesNotInView:ae};return E(t,n),setTimeout(()=>c.emit(`init`),0),le}Gs.globalOptions=void 0;function Ks(e={},t=[]){let n=(0,L.useRef)(e),r=(0,L.useRef)(t),[i,a]=(0,L.useState)(),[o,s]=(0,L.useState)(),c=(0,L.useCallback)(()=>{i&&i.reInit(n.current,r.current)},[i]);return(0,L.useEffect)(()=>{Ko(n.current,e)||(n.current=e,c())},[e,c]),(0,L.useEffect)(()=>{Jo(r.current,t)||(r.current=t,c())},[t,c]),(0,L.useEffect)(()=>{if(Go()&&o){Gs.globalOptions=Ks.globalOptions;let e=Gs(o,n.current,r.current);return a(e),()=>e.destroy()}else a(void 0)},[o,a]),[s,i]}Ks.globalOptions=void 0;var qs=`Collapsible`,[Js,Ys]=Nt(qs),[Xs,Zs]=Js(qs),Qs=L.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c=!1,l]=Bt({prop:r,defaultProp:i,onChange:o});return(0,B.jsx)(Xs,{scope:n,disabled:a,contentId:Rt(),open:c,onOpenToggle:L.useCallback(()=>l(e=>!e),[l]),children:(0,B.jsx)(V.div,{"data-state":ic(c),"data-disabled":a?``:void 0,...s,ref:t})})});Qs.displayName=qs;var $s=`CollapsibleTrigger`,ec=L.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=Zs($s,n);return(0,B.jsx)(V.button,{type:`button`,"aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":ic(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:R(e.onClick,i.onOpenToggle)})});ec.displayName=$s;var tc=`CollapsibleContent`,nc=L.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Zs(tc,e.__scopeCollapsible);return(0,B.jsx)(An,{present:n||i.open,children:({present:e})=>(0,B.jsx)(rc,{...r,ref:t,present:e})})});nc.displayName=tc;var rc=L.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=Zs(tc,n),[s,c]=L.useState(r),l=L.useRef(null),u=z(t,l),d=L.useRef(0),f=d.current,p=L.useRef(0),m=p.current,h=o.open||s,g=L.useRef(h),_=L.useRef();return L.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),Ft(()=>{let e=l.current;if(e){_.current=_.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();d.current=t.height,p.current=t.width,g.current||(e.style.transitionDuration=_.current.transitionDuration,e.style.animationName=_.current.animationName),c(r)}},[o.open,r]),(0,B.jsx)(V.div,{"data-state":ic(o.open),"data-disabled":o.disabled?``:void 0,id:o.contentId,hidden:!h,...a,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:h&&i})});function ic(e){return e?`open`:`closed`}var ac=Qs,oc=ec,sc=nc,cc=e=>e.type===`checkbox`,lc=e=>e instanceof Date,uc=e=>e==null,dc=e=>typeof e==`object`,fc=e=>!uc(e)&&!Array.isArray(e)&&dc(e)&&!lc(e),pc=e=>fc(e)&&e.target?cc(e.target)?e.target.checked:e.target.value:e,mc=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,hc=(e,t)=>e.has(mc(t)),gc=e=>{let t=e.constructor&&e.constructor.prototype;return fc(t)&&t.hasOwnProperty(`isPrototypeOf`)},_c=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function vc(e){let t,n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(_c&&(e instanceof Blob||e instanceof FileList))&&(n||fc(e)))if(t=n?[]:{},!n&&!gc(e))t=e;else for(let n in e)e.hasOwnProperty(n)&&(t[n]=vc(e[n]));else return e;return t}var yc=e=>Array.isArray(e)?e.filter(Boolean):[],bc=e=>e===void 0,K=(e,t,n)=>{if(!t||!fc(e))return n;let r=yc(t.split(/[,[\].]+?/)).reduce((e,t)=>uc(e)?e:e[t],e);return bc(r)||r===e?bc(e[t])?n:e[t]:r},xc=e=>typeof e==`boolean`,Sc=e=>/^\w*$/.test(e),Cc=e=>yc(e.replace(/["|']|\]/g,``).split(/\.|\[/)),wc=(e,t,n)=>{let r=-1,i=Sc(t)?[t]:Cc(t),a=i.length,o=a-1;for(;++r<a;){let t=i[r],a=n;if(r!==o){let n=e[t];a=fc(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if(t===`__proto__`)return;e[t]=a,e=e[t]}return e},Tc={BLUR:`blur`,FOCUS_OUT:`focusout`,CHANGE:`change`},Ec={onBlur:`onBlur`,onChange:`onChange`,onSubmit:`onSubmit`,onTouched:`onTouched`,all:`all`},Dc={max:`max`,min:`min`,maxLength:`maxLength`,minLength:`minLength`,pattern:`pattern`,required:`required`,validate:`validate`},Oc=L.createContext(null),kc=()=>L.useContext(Oc),Ac=e=>{let{children:t,...n}=e;return L.createElement(Oc.Provider,{value:n},t)},jc=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==Ec.all&&(t._proxyFormState[i]=!r||Ec.all),n&&(n[i]=!0),e[i]}});return i},Mc=e=>fc(e)&&!Object.keys(e).length,Nc=(e,t,n,r)=>{n(e);let{name:i,...a}=e;return Mc(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!r||Ec.all))},Pc=e=>Array.isArray(e)?e:[e],Fc=(e,t,n)=>!e||!t||e===t||Pc(e).some(e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e)));function Ic(e){let t=L.useRef(e);t.current=e,L.useEffect(()=>{let n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function Lc(e){let t=kc(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[o,s]=L.useState(n._formState),c=L.useRef(!0),l=L.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=L.useRef(i);return u.current=i,Ic({disabled:r,next:e=>c.current&&Fc(u.current,e.name,a)&&Nc(e,l.current,n._updateFormState)&&s({...n._formState,...e}),subject:n._subjects.state}),L.useEffect(()=>(c.current=!0,l.current.isValid&&n._updateValid(!0),()=>{c.current=!1}),[n]),jc(o,n,l.current,!1)}var Rc=e=>typeof e==`string`,zc=(e,t,n,r,i)=>Rc(e)?(r&&t.watch.add(e),K(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),K(n,e))):(r&&(t.watchAll=!0),n);function Bc(e){let t=kc(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:o}=e||{},s=L.useRef(r);s.current=r,Ic({disabled:a,subject:n._subjects.values,next:e=>{Fc(s.current,e.name,o)&&l(vc(zc(s.current,n._names,e.values||n._formValues,!1,i)))}});let[c,l]=L.useState(n._getWatch(r,i));return L.useEffect(()=>n._removeUnmounted()),c}function Vc(e){let t=kc(),{name:n,disabled:r,control:i=t.control,shouldUnregister:a}=e,o=hc(i._names.array,n),s=Bc({control:i,name:n,defaultValue:K(i._formValues,n,K(i._defaultValues,n,e.defaultValue)),exact:!0}),c=Lc({control:i,name:n,exact:!0}),l=L.useRef(i.register(n,{...e.rules,value:s,...xc(e.disabled)?{disabled:e.disabled}:{}}));return L.useEffect(()=>{let e=i._options.shouldUnregister||a,t=(e,t)=>{let n=K(i._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){let e=vc(K(i._options.defaultValues,n));wc(i._defaultValues,n,e),bc(K(i._formValues,n))&&wc(i._formValues,n,e)}return()=>{(o?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}},[n,i,o,a]),L.useEffect(()=>{K(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:K(i._fields,n)._f.value})},[r,n,i]),{field:{name:n,value:s,...xc(r)||c.disabled?{disabled:c.disabled||r}:{},onChange:L.useCallback(e=>l.current.onChange({target:{value:pc(e),name:n},type:Tc.CHANGE}),[n]),onBlur:L.useCallback(()=>l.current.onBlur({target:{value:K(i._formValues,n),name:n},type:Tc.BLUR}),[n,i]),ref:L.useCallback(e=>{let t=K(i._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})},[i._fields,n])},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!K(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!K(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!K(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!K(c.validatingFields,n)},error:{enumerable:!0,get:()=>K(c.errors,n)}})}}var Hc=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},Uc=e=>({isOnSubmit:!e||e===Ec.onSubmit,isOnBlur:e===Ec.onBlur,isOnChange:e===Ec.onChange,isOnAll:e===Ec.all,isOnTouch:e===Ec.onTouched}),Wc=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),Gc=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=K(e,i);if(n){let{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(Gc(a,t))break}else if(fc(a)&&Gc(a,t))break}}},Kc=(e,t,n)=>{let r=Pc(K(e,n));return wc(r,`root`,t[n]),wc(e,n,r),e},qc=e=>e.type===`file`,Jc=e=>typeof e==`function`,Yc=e=>{if(!_c)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Xc=e=>Rc(e),Zc=e=>e.type===`radio`,Qc=e=>e instanceof RegExp,$c={value:!1,isValid:!1},el={value:!0,isValid:!0},tl=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!bc(e[0].attributes.value)?bc(e[0].value)||e[0].value===``?el:{value:e[0].value,isValid:!0}:el:$c}return $c},nl={isValid:!1,value:null},rl=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,nl):nl;function il(e,t,n=`validate`){if(Xc(e)||Array.isArray(e)&&e.every(Xc)||xc(e)&&!e)return{type:n,message:Xc(e)?e:``,ref:t}}var al=e=>fc(e)&&!Qc(e)?e:{value:e,message:``},ol=async(e,t,n,r,i)=>{let{ref:a,refs:o,required:s,maxLength:c,minLength:l,min:u,max:d,pattern:f,validate:p,name:m,valueAsNumber:h,mount:g,disabled:_}=e._f,v=K(t,m);if(!g||_)return{};let y=o?o[0]:a,b=e=>{r&&y.reportValidity&&(y.setCustomValidity(xc(e)?``:e||``),y.reportValidity())},x={},S=Zc(a),C=cc(a),w=S||C,T=(h||qc(a))&&bc(a.value)&&bc(v)||Yc(a)&&a.value===``||v===``||Array.isArray(v)&&!v.length,E=Hc.bind(null,m,n,x),D=(e,t,n,r=Dc.maxLength,i=Dc.minLength)=>{let o=e?t:n;x[m]={type:e?r:i,message:o,ref:a,...E(e?r:i,o)}};if(i?!Array.isArray(v)||!v.length:s&&(!w&&(T||uc(v))||xc(v)&&!v||C&&!tl(o).isValid||S&&!rl(o).isValid)){let{value:e,message:t}=Xc(s)?{value:!!s,message:s}:al(s);if(e&&(x[m]={type:Dc.required,message:t,ref:y,...E(Dc.required,t)},!n))return b(t),x}if(!T&&(!uc(u)||!uc(d))){let e,t,r=al(d),i=al(u);if(!uc(v)&&!isNaN(v)){let n=a.valueAsNumber||v&&+v;uc(r.value)||(e=n>r.value),uc(i.value)||(t=n<i.value)}else{let n=a.valueAsDate||new Date(v),o=e=>new Date(new Date().toDateString()+` `+e),s=a.type==`time`,c=a.type==`week`;Rc(r.value)&&v&&(e=s?o(v)>o(r.value):c?v>r.value:n>new Date(r.value)),Rc(i.value)&&v&&(t=s?o(v)<o(i.value):c?v<i.value:n<new Date(i.value))}if((e||t)&&(D(!!e,r.message,i.message,Dc.max,Dc.min),!n))return b(x[m].message),x}if((c||l)&&!T&&(Rc(v)||i&&Array.isArray(v))){let e=al(c),t=al(l),r=!uc(e.value)&&v.length>+e.value,i=!uc(t.value)&&v.length<+t.value;if((r||i)&&(D(r,e.message,t.message),!n))return b(x[m].message),x}if(f&&!T&&Rc(v)){let{value:e,message:t}=al(f);if(Qc(e)&&!v.match(e)&&(x[m]={type:Dc.pattern,message:t,ref:a,...E(Dc.pattern,t)},!n))return b(t),x}if(p){if(Jc(p)){let e=il(await p(v,t),y);if(e&&(x[m]={...e,...E(Dc.validate,e.message)},!n))return b(e.message),x}else if(fc(p)){let e={};for(let r in p){if(!Mc(e)&&!n)break;let i=il(await p[r](v,t),y,r);i&&(e={...i,...E(r,i.message)},b(i.message),n&&(x[m]=e))}if(!Mc(e)&&(x[m]={ref:y,...e},!n))return x}}return b(!0),x};function sl(e,t){let n=t.slice(0,-1).length,r=0;for(;r<n;)e=bc(e)?r++:e[t[r++]];return e}function cl(e){for(let t in e)if(e.hasOwnProperty(t)&&!bc(e[t]))return!1;return!0}function ll(e,t){let n=Array.isArray(t)?t:Sc(t)?[t]:Cc(t),r=n.length===1?e:sl(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(fc(r)&&Mc(r)||Array.isArray(r)&&cl(r))&&ll(e,n.slice(0,-1)),e}var ul=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},dl=e=>uc(e)||!dc(e);function fl(e,t){if(dl(e)||dl(t))return e===t;if(lc(e)&&lc(t))return e.getTime()===t.getTime();let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n){let n=e[i];if(!r.includes(i))return!1;if(i!==`ref`){let e=t[i];if(lc(n)&&lc(e)||fc(n)&&fc(e)||Array.isArray(n)&&Array.isArray(e)?!fl(n,e):n!==e)return!1}}return!0}var pl=e=>e.type===`select-multiple`,ml=e=>Zc(e)||cc(e),hl=e=>Yc(e)&&e.isConnected,gl=e=>{for(let t in e)if(Jc(e[t]))return!0;return!1};function _l(e,t={}){let n=Array.isArray(e);if(fc(e)||n)for(let n in e)Array.isArray(e[n])||fc(e[n])&&!gl(e[n])?(t[n]=Array.isArray(e[n])?[]:{},_l(e[n],t[n])):uc(e[n])||(t[n]=!0);return t}function vl(e,t,n){let r=Array.isArray(e);if(fc(e)||r)for(let r in e)Array.isArray(e[r])||fc(e[r])&&!gl(e[r])?bc(t)||dl(n[r])?n[r]=Array.isArray(e[r])?_l(e[r],[]):{..._l(e[r])}:vl(e[r],uc(t)?{}:t[r],n[r]):n[r]=!fl(e[r],t[r]);return n}var yl=(e,t)=>vl(e,t,_l(t)),bl=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>bc(e)?e:t?e===``?NaN:e&&+e:n&&Rc(e)?new Date(e):r?r(e):e;function xl(e){let t=e.ref;if(!(e.refs?e.refs.every(e=>e.disabled):t.disabled))return qc(t)?t.files:Zc(t)?rl(e.refs).value:pl(t)?[...t.selectedOptions].map(({value:e})=>e):cc(t)?tl(e.refs).value:bl(bc(t.value)?e.ref.value:t.value,e)}var Sl=(e,t,n,r)=>{let i={};for(let n of e){let e=K(t,n);e&&wc(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Cl=e=>bc(e)?e:Qc(e)?e.source:fc(e)?Qc(e.value)?e.value.source:e.value:e,wl=`AsyncFunction`,Tl=e=>(!e||!e.validate)&&!!(Jc(e.validate)&&e.validate.constructor.name===wl||fc(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===wl)),El=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Dl(e,t,n){let r=K(e,n);if(r||Sc(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=K(t,r),o=K(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};i.pop()}return{name:n}}var Ol=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,kl=(e,t)=>!yc(K(e,t)).length&&ll(e,t),Al={mode:Ec.onSubmit,reValidateMode:Ec.onChange,shouldFocusError:!0};function jl(e={}){let t={...Al,...e},n={submitCount:0,isDirty:!1,isLoading:Jc(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=(fc(t.defaultValues)||fc(t.values))&&vc(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:vc(i),o={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,l=0,u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:ul(),array:ul(),state:ul()},f=Uc(t.mode),p=Uc(t.reValidateMode),m=t.criteriaMode===Ec.all,h=e=>t=>{clearTimeout(l),l=setTimeout(e,t)},g=async e=>{if(u.isValid||e){let e=t.resolver?Mc((await w()).errors):await E(r,!0);e!==n.isValid&&d.state.next({isValid:e})}},_=(e,t)=>{(u.isValidating||u.validatingFields)&&((e||Array.from(s.mount)).forEach(e=>{e&&(t?wc(n.validatingFields,e,t):ll(n.validatingFields,e))}),d.state.next({validatingFields:n.validatingFields,isValidating:!Mc(n.validatingFields)}))},v=(e,t=[],s,c,l=!0,f=!0)=>{if(c&&s){if(o.action=!0,f&&Array.isArray(K(r,e))){let t=s(K(r,e),c.argA,c.argB);l&&wc(r,e,t)}if(f&&Array.isArray(K(n.errors,e))){let t=s(K(n.errors,e),c.argA,c.argB);l&&wc(n.errors,e,t),kl(n.errors,e)}if(u.touchedFields&&f&&Array.isArray(K(n.touchedFields,e))){let t=s(K(n.touchedFields,e),c.argA,c.argB);l&&wc(n.touchedFields,e,t)}u.dirtyFields&&(n.dirtyFields=yl(i,a)),d.state.next({name:e,isDirty:O(e,t),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else wc(a,e,t)},y=(e,t)=>{wc(n.errors,e,t),d.state.next({errors:n.errors})},b=e=>{n.errors=e,d.state.next({errors:n.errors,isValid:!1})},x=(e,t,n,s)=>{let c=K(r,e);if(c){let r=K(a,e,bc(n)?K(i,e):n);bc(r)||s&&s.defaultChecked||t?wc(a,e,t?r:xl(c._f)):j(e,r),o.mount&&g()}},S=(e,t,a,o,s)=>{let c=!1,l=!1,f={name:e},p=!!(K(r,e)&&K(r,e)._f&&K(r,e)._f.disabled);if(!a||o){u.isDirty&&(l=n.isDirty,n.isDirty=f.isDirty=O(),c=l!==f.isDirty);let r=p||fl(K(i,e),t);l=!!(!p&&K(n.dirtyFields,e)),r||p?ll(n.dirtyFields,e):wc(n.dirtyFields,e,!0),f.dirtyFields=n.dirtyFields,c||=u.dirtyFields&&l!==!r}if(a){let t=K(n.touchedFields,e);t||(wc(n.touchedFields,e,a),f.touchedFields=n.touchedFields,c||=u.touchedFields&&t!==a)}return c&&s&&d.state.next(f),c?f:{}},C=(t,r,i,a)=>{let o=K(n.errors,t),s=u.isValid&&xc(r)&&n.isValid!==r;if(e.delayError&&i?(c=h(()=>y(t,i)),c(e.delayError)):(clearTimeout(l),c=null,i?wc(n.errors,t,i):ll(n.errors,t)),(i?!fl(o,i):o)||!Mc(a)||s){let e={...a,...s&&xc(r)?{isValid:r}:{},errors:n.errors,name:t};n={...n,...e},d.state.next(e)}},w=async e=>{_(e,!0);let n=await t.resolver(a,t.context,Sl(e||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return _(e),n},T=async e=>{let{errors:t}=await w(e);if(e)for(let r of e){let e=K(t,r);e?wc(n.errors,r,e):ll(n.errors,r)}else n.errors=t;return t},E=async(e,r,i={valid:!0})=>{for(let o in e){let c=e[o];if(c){let{_f:e,...l}=c;if(e){let l=s.array.has(e.name),d=c._f&&Tl(c._f);d&&u.validatingFields&&_([o],!0);let f=await ol(c,a,m,t.shouldUseNativeValidation&&!r,l);if(d&&u.validatingFields&&_([o]),f[e.name]&&(i.valid=!1,r))break;!r&&(K(f,e.name)?l?Kc(n.errors,f,e.name):wc(n.errors,e.name,f[e.name]):ll(n.errors,e.name))}!Mc(l)&&await E(l,r,i)}}return i.valid},D=()=>{for(let e of s.unMount){let t=K(r,e);t&&(t._f.refs?t._f.refs.every(e=>!hl(e)):!hl(t._f.ref))&&oe(e)}s.unMount=new Set},O=(e,t)=>(e&&t&&wc(a,e,t),!fl(P(),i)),k=(e,t,n)=>zc(e,s,{...o.mount?a:bc(t)?i:Rc(e)?{[e]:t}:t},n,t),A=t=>yc(K(o.mount?a:i,t,e.shouldUnregister?K(i,t,[]):[])),j=(e,t,n={})=>{let i=K(r,e),o=t;if(i){let n=i._f;n&&(!n.disabled&&wc(a,e,bl(t,n)),o=Yc(n.ref)&&uc(t)?``:t,pl(n.ref)?[...n.ref.options].forEach(e=>e.selected=o.includes(e.value)):n.refs?cc(n.ref)?n.refs.length>1?n.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find(t=>t===e.value):o===e.value)):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach(e=>e.checked=e.value===o):qc(n.ref)?n.ref.value=``:(n.ref.value=o,n.ref.type||d.values.next({name:e,values:{...a}})))}(n.shouldDirty||n.shouldTouch)&&S(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&ne(e)},ee=(e,t,n)=>{for(let i in t){let a=t[i],o=`${e}.${i}`,c=K(r,o);(s.array.has(e)||!dl(a)||c&&!c._f)&&!lc(a)?ee(o,a,n):j(o,a,n)}},M=(e,t,c={})=>{let l=K(r,e),f=s.array.has(e),p=vc(t);wc(a,e,p),f?(d.array.next({name:e,values:{...a}}),(u.isDirty||u.dirtyFields)&&c.shouldDirty&&d.state.next({name:e,dirtyFields:yl(i,a),isDirty:O(e,p)})):l&&!l._f&&!uc(p)?ee(e,p,c):j(e,p,c),Wc(e,s)&&d.state.next({...n}),d.values.next({name:o.mount?e:void 0,values:{...a}})},te=async i=>{o.mount=!0;let l=i.target,h=l.name,v=!0,y=K(r,h),b=()=>l.type?xl(y._f):pc(i),x=e=>{v=Number.isNaN(e)||fl(e,K(a,h,e))};if(y){let o,l,T=b(),D=i.type===Tc.BLUR||i.type===Tc.FOCUS_OUT,O=!El(y._f)&&!t.resolver&&!K(n.errors,h)&&!y._f.deps||Ol(D,K(n.touchedFields,h),n.isSubmitted,p,f),k=Wc(h,s,D);wc(a,h,T),D?(y._f.onBlur&&y._f.onBlur(i),c&&c(0)):y._f.onChange&&y._f.onChange(i);let A=S(h,T,D,!1),j=!Mc(A)||k;if(!D&&d.values.next({name:h,type:i.type,values:{...a}}),O)return u.isValid&&(e.mode===`onBlur`?D&&g():g()),j&&d.state.next({name:h,...k?{}:A});if(!D&&k&&d.state.next({...n}),t.resolver){let{errors:e}=await w([h]);if(x(T),v){let t=Dl(n.errors,r,h),i=Dl(e,r,t.name||h);o=i.error,h=i.name,l=Mc(e)}}else _([h],!0),o=(await ol(y,a,m,t.shouldUseNativeValidation))[h],_([h]),x(T),v&&(o?l=!1:u.isValid&&(l=await E(r,!0)));v&&(y._f.deps&&ne(y._f.deps),C(h,l,o,A))}},N=(e,t)=>{if(K(n.errors,t)&&e.focus)return e.focus(),1},ne=async(e,i={})=>{let a,o,c=Pc(e);if(t.resolver){let t=await T(bc(e)?e:c);a=Mc(t),o=e?!c.some(e=>K(t,e)):a}else e?(o=(await Promise.all(c.map(async e=>{let t=K(r,e);return await E(t&&t._f?{[e]:t}:t)}))).every(Boolean),!(!o&&!n.isValid)&&g()):o=a=await E(r);return d.state.next({...!Rc(e)||u.isValid&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&Gc(r,N,e?c:s.mount),o},P=e=>{let t={...o.mount?a:i};return bc(e)?t:Rc(e)?K(t,e):e.map(e=>K(t,e))},re=(e,t)=>({invalid:!!K((t||n).errors,e),isDirty:!!K((t||n).dirtyFields,e),error:K((t||n).errors,e),isValidating:!!K(n.validatingFields,e),isTouched:!!K((t||n).touchedFields,e)}),ie=e=>{e&&Pc(e).forEach(e=>ll(n.errors,e)),d.state.next({errors:e?n.errors:{}})},ae=(e,t,i)=>{let a=(K(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=K(n.errors,e)||{};wc(n.errors,e,{...l,...t,ref:a}),d.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},F=(e,t)=>Jc(e)?d.values.subscribe({next:n=>e(k(void 0,t),n)}):k(e,t,!0),oe=(e,o={})=>{for(let c of e?Pc(e):s.mount)s.mount.delete(c),s.array.delete(c),o.keepValue||(ll(r,c),ll(a,c)),!o.keepError&&ll(n.errors,c),!o.keepDirty&&ll(n.dirtyFields,c),!o.keepTouched&&ll(n.touchedFields,c),!o.keepIsValidating&&ll(n.validatingFields,c),!t.shouldUnregister&&!o.keepDefaultValue&&ll(i,c);d.values.next({values:{...a}}),d.state.next({...n,...o.keepDirty?{isDirty:O()}:{}}),!o.keepIsValid&&g()},se=({disabled:e,name:t,field:n,fields:r,value:i})=>{if(xc(e)&&o.mount||e){let o=e?void 0:bc(i)?xl(n?n._f:K(r,t)._f):i;wc(a,t,o),S(t,o,!1,!1,!0)}},I=(n,a={})=>{let c=K(r,n),l=xc(a.disabled)||xc(e.disabled);return wc(r,n,{...c||{},_f:{...c&&c._f?c._f:{ref:{name:n}},name:n,mount:!0,...a}}),s.mount.add(n),c?se({field:c,disabled:xc(a.disabled)?a.disabled:e.disabled,name:n,value:a.value}):x(n,!0,a.value),{...l?{disabled:a.disabled||e.disabled}:{},...t.progressive?{required:!!a.required,min:Cl(a.min),max:Cl(a.max),minLength:Cl(a.minLength),maxLength:Cl(a.maxLength),pattern:Cl(a.pattern)}:{},name:n,onChange:te,onBlur:te,ref:e=>{if(e){I(n,a),c=K(r,n);let t=bc(e.value)&&e.querySelectorAll&&e.querySelectorAll(`input,select,textarea`)[0]||e,o=ml(t),s=c._f.refs||[];if(o?s.find(e=>e===t):t===c._f.ref)return;wc(r,n,{_f:{...c._f,...o?{refs:[...s.filter(hl),t,...Array.isArray(K(i,n))?[{}]:[]],ref:{type:t.type,name:n}}:{ref:t}}}),x(n,!1,void 0,t)}else c=K(r,n,{}),c._f&&(c._f.mount=!1),(t.shouldUnregister||a.shouldUnregister)&&!(hc(s.array,n)&&o.action)&&s.unMount.add(n)}}},ce=()=>t.shouldFocusError&&Gc(r,N,s.mount),le=e=>{xc(e)&&(d.state.next({disabled:e}),Gc(r,(t,n)=>{let i=K(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},ue=(e,i)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let c=vc(a);if(d.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await w();n.errors=e,c=t}else await E(r);if(ll(n.errors,`root`),Mc(n.errors)){d.state.next({errors:{}});try{await e(c,o)}catch(e){s=e}}else i&&await i({...n.errors},o),ce(),setTimeout(ce);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Mc(n.errors)&&!s,submitCount:n.submitCount+1,errors:n.errors}),s)throw s},de=(e,t={})=>{K(r,e)&&(bc(t.defaultValue)?M(e,vc(K(i,e))):(M(e,t.defaultValue),wc(i,e,vc(t.defaultValue))),t.keepTouched||ll(n.touchedFields,e),t.keepDirty||(ll(n.dirtyFields,e),n.isDirty=t.defaultValue?O(e,vc(K(i,e))):O()),t.keepError||(ll(n.errors,e),u.isValid&&g()),d.state.next({...n}))},fe=(t,c={})=>{let l=t?vc(t):i,f=vc(l),p=Mc(t),m=p?i:f;if(c.keepDefaultValues||(i=l),!c.keepValues){if(c.keepDirtyValues)for(let e of s.mount)K(n.dirtyFields,e)?wc(m,e,K(a,e)):M(e,K(m,e));else{if(_c&&bc(t))for(let e of s.mount){let t=K(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Yc(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}r={}}a=e.shouldUnregister?c.keepDefaultValues?vc(i):{}:vc(m),d.array.next({values:{...m}}),d.values.next({values:{...m}})}s={mount:c.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:``},o.mount=!u.isValid||!!c.keepIsValid||!!c.keepDirtyValues,o.watch=!!e.shouldUnregister,d.state.next({submitCount:c.keepSubmitCount?n.submitCount:0,isDirty:p?!1:c.keepDirty?n.isDirty:!!(c.keepDefaultValues&&!fl(t,i)),isSubmitted:c.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:p?{}:c.keepDirtyValues?c.keepDefaultValues&&a?yl(i,a):n.dirtyFields:c.keepDefaultValues&&t?yl(i,t):c.keepDirty?n.dirtyFields:{},touchedFields:c.keepTouched?n.touchedFields:{},errors:c.keepErrors?n.errors:{},isSubmitSuccessful:c.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},pe=(e,t)=>fe(Jc(e)?e(a):e,t);return{control:{register:I,unregister:oe,getFieldState:re,handleSubmit:ue,setError:ae,_executeSchema:w,_getWatch:k,_getDirty:O,_updateValid:g,_removeUnmounted:D,_updateFieldArray:v,_updateDisabledField:se,_getFieldArray:A,_reset:fe,_resetDefaultValues:()=>Jc(t.defaultValues)&&t.defaultValues().then(e=>{pe(e,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:e=>{n={...n,...e}},_disableForm:le,_subjects:d,_proxyFormState:u,_setErrors:b,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(e){o=e},get _defaultValues(){return i},get _names(){return s},set _names(e){s=e},get _formState(){return n},set _formState(e){n=e},get _options(){return t},set _options(e){t={...t,...e}}},trigger:ne,register:I,handleSubmit:ue,watch:F,setValue:M,getValues:P,reset:pe,resetField:de,clearErrors:ie,unregister:oe,setError:ae,setFocus:(e,t={})=>{let n=K(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:re}}function Ml(e={}){let t=L.useRef(),n=L.useRef(),[r,i]=L.useState({isDirty:!1,isValidating:!1,isLoading:Jc(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Jc(e.defaultValues)?void 0:e.defaultValues});t.current||={...jl(e),formState:r};let a=t.current.control;return a._options=e,Ic({subject:a._subjects.state,next:e=>{Nc(e,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),L.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),L.useEffect(()=>{if(a._proxyFormState.isDirty){let e=a._getDirty();e!==r.isDirty&&a._subjects.state.next({isDirty:e})}},[a,r.isDirty]),L.useEffect(()=>{e.values&&!fl(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,i(e=>({...e}))):a._resetDefaultValues()},[e.values,a]),L.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),L.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),L.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=jc(r,a),t.current}function Nl(e){let t=e+`CollectionProvider`,[n,r]=Nt(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=L.useRef(null),a=L.useRef(new Map).current;return(0,B.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};o.displayName=t;let s=e+`CollectionSlot`,c=L.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,B.jsx)(Ht,{ref:z(t,a(s,n).collectionRef),children:r})});c.displayName=s;let l=e+`CollectionItemSlot`,u=`data-radix-collection-item`,d=L.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=L.useRef(null),s=z(t,o),c=a(l,n);return L.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,B.jsx)(Ht,{[u]:``,ref:s,children:r})});d.displayName=l;function f(t){let n=a(e+`CollectionConsumer`,t);return L.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${u}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:o,Slot:c,ItemSlot:d},f,r]}var Pl=L.createContext(void 0);function Fl(e){let t=L.useContext(Pl);return e||t||`ltr`}var Il=`rovingFocusGroup.onEntryFocus`,Ll={bubbles:!1,cancelable:!0},Rl=`RovingFocusGroup`,[zl,Bl,Vl]=Nl(Rl),[Hl,Ul]=Nt(Rl,[Vl]),[Wl,Gl]=Hl(Rl),Kl=L.forwardRef((e,t)=>(0,B.jsx)(zl.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,B.jsx)(zl.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,B.jsx)(ql,{...e,ref:t})})}));Kl.displayName=Rl;var ql=L.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=L.useRef(null),p=z(t,f),m=Fl(a),[h=null,g]=Bt({prop:o,defaultProp:s,onChange:c}),[_,v]=L.useState(!1),y=zt(l),b=Bl(n),x=L.useRef(!1),[S,C]=L.useState(0);return L.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(Il,y),()=>e.removeEventListener(Il,y)},[y]),(0,B.jsx)(Wl,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:L.useCallback(e=>g(e),[g]),onItemShiftTab:L.useCallback(()=>v(!0),[]),onFocusableItemAdd:L.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:L.useCallback(()=>C(e=>e-1),[]),children:(0,B.jsx)(V.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:R(e.onMouseDown,()=>{x.current=!0}),onFocus:R(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(Il,Ll);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);$l([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:R(e.onBlur,()=>v(!1))})})}),Jl=`RovingFocusGroupItem`,Yl=L.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,...o}=e,s=Rt(),c=a||s,l=Gl(Jl,n),u=l.currentTabStopId===c,d=Bl(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=l;return L.useEffect(()=>{if(r)return f(),()=>p()},[r,f,p]),(0,B.jsx)(zl.ItemSlot,{scope:n,id:c,focusable:r,active:i,children:(0,B.jsx)(V.span,{tabIndex:u?0:-1,"data-orientation":l.orientation,...o,ref:t,onMouseDown:R(e.onMouseDown,e=>{r?l.onItemFocus(c):e.preventDefault()}),onFocus:R(e.onFocus,()=>l.onItemFocus(c)),onKeyDown:R(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){l.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Ql(e,l.orientation,l.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=d().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=l.loop?eu(n,r+1):n.slice(r+1)}setTimeout(()=>$l(n))}})})})});Yl.displayName=Jl;var Xl={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Zl(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function Ql(e,t,n){let r=Zl(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Xl[r]}function $l(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function eu(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var tu=Kl,nu=Yl;function ru(e){let[t,n]=L.useState(void 0);return Ft(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}else n(void 0)},[e]),t}function iu(e){let t=L.useRef({value:e,previous:e});return L.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var au=`Radio`,[ou,su]=Nt(au),[cu,lu]=ou(au),uu=L.forwardRef((e,t)=>{let{__scopeRadio:n,name:r,checked:i=!1,required:a,disabled:o,value:s=`on`,onCheck:c,...l}=e,[u,d]=L.useState(null),f=z(t,e=>d(e)),p=L.useRef(!1),m=u?!!u.closest(`form`):!0;return(0,B.jsxs)(cu,{scope:n,checked:i,disabled:o,children:[(0,B.jsx)(V.button,{type:`button`,role:`radio`,"aria-checked":i,"data-state":mu(i),"data-disabled":o?``:void 0,disabled:o,value:s,...l,ref:f,onClick:R(e.onClick,e=>{i||c?.(),m&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())})}),m&&(0,B.jsx)(pu,{control:u,bubbles:!p.current,name:r,value:s,checked:i,required:a,disabled:o,style:{transform:`translateX(-100%)`}})]})});uu.displayName=au;var du=`RadioIndicator`,fu=L.forwardRef((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,a=lu(du,n);return(0,B.jsx)(An,{present:r||a.checked,children:(0,B.jsx)(V.span,{"data-state":mu(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t})})});fu.displayName=du;var pu=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,a=L.useRef(null),o=iu(n),s=ru(t);return L.useEffect(()=>{let e=a.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,`checked`).set;if(o!==n&&i){let t=new Event(`click`,{bubbles:r});i.call(e,n),e.dispatchEvent(t)}},[o,n,r]),(0,B.jsx)(`input`,{type:`radio`,"aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:a,style:{...e.style,...s,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}})};function mu(e){return e?`checked`:`unchecked`}var hu=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],gu=`RadioGroup`,[_u,vu]=Nt(gu,[Ul,su]),yu=Ul(),bu=su(),[xu,Su]=_u(gu),Cu=L.forwardRef((e,t)=>{let{__scopeRadioGroup:n,name:r,defaultValue:i,value:a,required:o=!1,disabled:s=!1,orientation:c,dir:l,loop:u=!0,onValueChange:d,...f}=e,p=yu(n),m=Fl(l),[h,g]=Bt({prop:a,defaultProp:i,onChange:d});return(0,B.jsx)(xu,{scope:n,name:r,required:o,disabled:s,value:h,onValueChange:g,children:(0,B.jsx)(tu,{asChild:!0,...p,orientation:c,dir:m,loop:u,children:(0,B.jsx)(V.div,{role:`radiogroup`,"aria-required":o,"aria-orientation":c,"data-disabled":s?``:void 0,dir:m,...f,ref:t})})})});Cu.displayName=gu;var wu=`RadioGroupItem`,Tu=L.forwardRef((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,a=Su(wu,n),o=a.disabled||r,s=yu(n),c=bu(n),l=L.useRef(null),u=z(t,l),d=a.value===i.value,f=L.useRef(!1);return L.useEffect(()=>{let e=e=>{hu.includes(e.key)&&(f.current=!0)},t=()=>f.current=!1;return document.addEventListener(`keydown`,e),document.addEventListener(`keyup`,t),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`keyup`,t)}},[]),(0,B.jsx)(nu,{asChild:!0,...s,focusable:!o,active:d,children:(0,B.jsx)(uu,{disabled:o,required:a.required,checked:d,...c,...i,name:a.name,ref:u,onCheck:()=>a.onValueChange(i.value),onKeyDown:R(e=>{e.key===`Enter`&&e.preventDefault()}),onFocus:R(i.onFocus,()=>{f.current&&l.current?.click()})})})});Tu.displayName=wu;var Eu=`RadioGroupIndicator`,Du=L.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e;return(0,B.jsx)(fu,{...bu(n),...r,ref:t})});Du.displayName=Eu;var Ou=Cu,ku=Tu,Au=Du;function ju(e,[t,n]){return Math.min(n,Math.max(t,e))}var Mu=[`top`,`right`,`bottom`,`left`],Nu=Math.min,Pu=Math.max,Fu=Math.round,Iu=Math.floor,Lu=e=>({x:e,y:e}),Ru={left:`right`,right:`left`,bottom:`top`,top:`bottom`},zu={start:`end`,end:`start`};function Bu(e,t,n){return Pu(e,Nu(t,n))}function Vu(e,t){return typeof e==`function`?e(t):e}function Hu(e){return e.split(`-`)[0]}function Uu(e){return e.split(`-`)[1]}function Wu(e){return e===`x`?`y`:`x`}function Gu(e){return e===`y`?`height`:`width`}function Ku(e){return[`top`,`bottom`].includes(Hu(e))?`y`:`x`}function qu(e){return Wu(Ku(e))}function Ju(e,t,n){n===void 0&&(n=!1);let r=Uu(e),i=qu(e),a=Gu(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=$u(o)),[o,$u(o)]}function Yu(e){let t=$u(e);return[Xu(e),t,Xu(t)]}function Xu(e){return e.replace(/start|end/g,e=>zu[e])}function Zu(e,t,n){let r=[`left`,`right`],i=[`right`,`left`],a=[`top`,`bottom`],o=[`bottom`,`top`];switch(e){case`top`:case`bottom`:return n?t?i:r:t?r:i;case`left`:case`right`:return t?a:o;default:return[]}}function Qu(e,t,n,r){let i=Uu(e),a=Zu(Hu(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Xu)))),a}function $u(e){return e.replace(/left|right|bottom|top/g,e=>Ru[e])}function ed(e){return{top:0,right:0,bottom:0,left:0,...e}}function td(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:ed(e)}function nd(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function rd(e,t,n){let{reference:r,floating:i}=e,a=Ku(t),o=qu(t),s=Gu(o),c=Hu(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Uu(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}var id=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=rd(l,r,c),f=r,p={},m=0;for(let n=0;n<s.length;n++){let{name:a,fn:h}=s[n],{x:g,y:_,data:v,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:l,platform:o,elements:{reference:e,floating:t}});u=g??u,d=_??d,p={...p,[a]:{...p[a],...v}},y&&m<=50&&(m++,typeof y==`object`&&(y.placement&&(f=y.placement),y.rects&&(l=y.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:u,y:d}=rd(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}};async function ad(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Vu(t,e),p=td(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=nd(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=nd(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var od=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Vu(e,t)||{};if(l==null)return{};let d=td(u),f={x:n,y:r},p=qu(i),m=Gu(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Nu(d[_],T),D=Nu(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=Bu(O,A,k),ee=!c.arrow&&Uu(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,M=ee?A<O?A-O:A-k:0;return{[p]:f[p]+M,data:{[p]:j,centerOffset:A-j-M,...ee&&{alignmentOffset:M}},reset:ee}}}),sd=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Vu(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Hu(r),_=Ku(o),v=Hu(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[$u(o)]:Yu(o)),x=p!==`none`;!d&&x&&b.push(...Qu(o,m,p,y));let S=[o,...b],C=await ad(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Ju(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Ku(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function cd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ld(e){return Mu.some(t=>e[t]>=0)}var ud=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n}=t,{strategy:r=`referenceHidden`,...i}=Vu(e,t);switch(r){case`referenceHidden`:{let e=cd(await ad(t,{...i,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ld(e)}}}case`escaped`:{let e=cd(await ad(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ld(e)}}}default:return{}}}}};async function dd(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Hu(n),s=Uu(n),c=Ku(n)===`y`,l=[`left`,`top`].includes(o)?-1:1,u=a&&c?-1:1,d=Vu(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var fd=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await dd(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},pd=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Vu(e,t),l={x:n,y:r},u=await ad(t,c),d=Ku(Hu(i)),f=Wu(d),p=l[f],m=l[d];if(a){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=p+u[e],r=p-u[t];p=Bu(n,p,r)}if(o){let e=d===`y`?`top`:`left`,t=d===`y`?`bottom`:`right`,n=m+u[e],r=m-u[t];m=Bu(n,m,r)}let h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},md=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Vu(e,t),u={x:n,y:r},d=Ku(i),f=Wu(d),p=u[f],m=u[d],h=Vu(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=[`top`,`left`].includes(Hu(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},hd=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Vu(e,t),c=await ad(t,s),l=Hu(n),u=Uu(n),d=Ku(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Nu(p-c[m],g),y=Nu(f-c[h],_),b=!t.middlewareData.shift,x=v,S=y;if(d?S=u||b?Nu(y,_):_:x=u||b?Nu(v,g):g,b&&!u){let e=Pu(c.left,0),t=Pu(c.right,0),n=Pu(c.top,0),r=Pu(c.bottom,0);d?S=f-2*(e!==0||t!==0?e+t:Pu(c.left,c.right)):x=p-2*(n!==0||r!==0?n+r:Pu(c.top,c.bottom))}await o({...t,availableWidth:S,availableHeight:x});let C=await i.getDimensions(a.floating);return f!==C.width||p!==C.height?{reset:{rects:!0}}:{}}}};function gd(e){return yd(e)?(e.nodeName||``).toLowerCase():`#document`}function _d(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function vd(e){return((yd(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function yd(e){return e instanceof Node||e instanceof _d(e).Node}function bd(e){return e instanceof Element||e instanceof _d(e).Element}function xd(e){return e instanceof HTMLElement||e instanceof _d(e).HTMLElement}function Sd(e){return typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof _d(e).ShadowRoot}function Cd(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Ad(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&![`inline`,`contents`].includes(i)}function wd(e){return[`table`,`td`,`th`].includes(gd(e))}function Td(e){return[`:popover-open`,`:modal`].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ed(e){let t=Od(),n=bd(e)?Ad(e):e;return n.transform!==`none`||n.perspective!==`none`||(n.containerType?n.containerType!==`normal`:!1)||!t&&(n.backdropFilter?n.backdropFilter!==`none`:!1)||!t&&(n.filter?n.filter!==`none`:!1)||[`transform`,`perspective`,`filter`].some(e=>(n.willChange||``).includes(e))||[`paint`,`layout`,`strict`,`content`].some(e=>(n.contain||``).includes(e))}function Dd(e){let t=Md(e);for(;xd(t)&&!kd(t);){if(Ed(t))return t;if(Td(t))return null;t=Md(t)}return null}function Od(){return typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter`,`none`)}function kd(e){return[`html`,`body`,`#document`].includes(gd(e))}function Ad(e){return _d(e).getComputedStyle(e)}function jd(e){return bd(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Md(e){if(gd(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Sd(e)&&e.host||vd(e);return Sd(t)?t.host:t}function Nd(e){let t=Md(e);return kd(t)?e.ownerDocument?e.ownerDocument.body:e.body:xd(t)&&Cd(t)?t:Nd(t)}function Pd(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Nd(e),i=r===e.ownerDocument?.body,a=_d(r);if(i){let e=Fd(a);return t.concat(a,a.visualViewport||[],Cd(r)?r:[],e&&n?Pd(e):[])}return t.concat(r,Pd(r,[],n))}function Fd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Id(e){let t=Ad(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=xd(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Fu(n)!==a||Fu(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Ld(e){return bd(e)?e:e.contextElement}function Rd(e){let t=Ld(e);if(!xd(t))return Lu(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Id(t),o=(a?Fu(n.width):n.width)/r,s=(a?Fu(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var zd=Lu(0);function Bd(e){let t=_d(e);return!Od()||!t.visualViewport?zd:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vd(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==_d(e)?!1:t}function Hd(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Ld(e),o=Lu(1);t&&(r?bd(r)&&(o=Rd(r)):o=Rd(e));let s=Vd(a,n,r)?Bd(a):Lu(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=_d(a),t=r&&bd(r)?_d(r):r,n=e,i=Fd(n);for(;i&&r&&t!==n;){let e=Rd(i),t=i.getBoundingClientRect(),r=Ad(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=_d(i),i=Fd(n)}}return nd({width:u,height:d,x:c,y:l})}function Ud(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=vd(r),s=t?Td(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Lu(1),u=Lu(0),d=xd(r);if((d||!d&&!a)&&((gd(r)!==`body`||Cd(o))&&(c=jd(r)),xd(r))){let e=Hd(r);l=Rd(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x,y:n.y*l.y-c.scrollTop*l.y+u.y}}function Wd(e){return Array.from(e.getClientRects())}function Gd(e){return Hd(vd(e)).left+jd(e).scrollLeft}function Kd(e){let t=vd(e),n=jd(e),r=e.ownerDocument.body,i=Pu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Pu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Gd(e),s=-n.scrollTop;return Ad(r).direction===`rtl`&&(o+=Pu(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}function qd(e,t){let n=_d(e),r=vd(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Od();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}function Jd(e,t){let n=Hd(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=xd(e)?Rd(e):Lu(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Yd(e,t,n){let r;if(t===`viewport`)r=qd(e,n);else if(t===`document`)r=Kd(vd(e));else if(bd(t))r=Jd(t,n);else{let n=Bd(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return nd(r)}function Xd(e,t){let n=Md(e);return n===t||!bd(n)||kd(n)?!1:Ad(n).position===`fixed`||Xd(n,t)}function Zd(e,t){let n=t.get(e);if(n)return n;let r=Pd(e,[],!1).filter(e=>bd(e)&&gd(e)!==`body`),i=null,a=Ad(e).position===`fixed`,o=a?Md(e):e;for(;bd(o)&&!kd(o);){let t=Ad(o),n=Ed(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&[`absolute`,`fixed`].includes(i.position)||Cd(o)&&!n&&Xd(e,o))?r=r.filter(e=>e!==o):i=t,o=Md(o)}return t.set(e,r),r}function Qd(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Td(t)?[]:Zd(t,this._c):[].concat(n),r],o=a[0],s=a.reduce((e,n)=>{let r=Yd(t,n,i);return e.top=Pu(r.top,e.top),e.right=Nu(r.right,e.right),e.bottom=Nu(r.bottom,e.bottom),e.left=Pu(r.left,e.left),e},Yd(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function $d(e){let{width:t,height:n}=Id(e);return{width:t,height:n}}function ef(e,t,n){let r=xd(t),i=vd(t),a=n===`fixed`,o=Hd(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Lu(0);if(r||!r&&!a)if((gd(t)!==`body`||Cd(i))&&(s=jd(t)),r){let e=Hd(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&(c.x=Gd(i));return{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function tf(e){return Ad(e).position===`static`}function nf(e,t){return!xd(e)||Ad(e).position===`fixed`?null:t?t(e):e.offsetParent}function rf(e,t){let n=_d(e);if(Td(e))return n;if(!xd(e)){let t=Md(e);for(;t&&!kd(t);){if(bd(t)&&!tf(t))return t;t=Md(t)}return n}let r=nf(e,t);for(;r&&wd(r)&&tf(r);)r=nf(r,t);return r&&kd(r)&&tf(r)&&!Ed(r)?n:r||Dd(e)||n}var af=async function(e){let t=this.getOffsetParent||rf,n=this.getDimensions,r=await n(e.floating);return{reference:ef(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function of(e){return Ad(e).direction===`rtl`}var sf={convertOffsetParentRelativeRectToViewportRelativeRect:Ud,getDocumentElement:vd,getClippingRect:Qd,getOffsetParent:rf,getElementRects:af,getClientRects:Wd,getDimensions:$d,getScale:Rd,isElement:bd,isRTL:of};function cf(e,t){let n=null,r,i=vd(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let{left:l,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;let p=Iu(u),m=Iu(i.clientWidth-(l+d)),h=Iu(i.clientHeight-(u+f)),g=Iu(l),_={rootMargin:-p+`px `+-m+`px `+-h+`px `+-g+`px`,threshold:Pu(0,Nu(1,c))||1},v=!0;function y(e){let t=e[0].intersectionRatio;if(t!==c){if(!v)return o();t?o(!1,t):r=setTimeout(()=>{o(!1,1e-7)},1e3)}v=!1}try{n=new IntersectionObserver(y,{..._,root:i.ownerDocument})}catch{n=new IntersectionObserver(y,_)}n.observe(e)}return o(!0),a}function lf(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Ld(e),u=i||a?[...l?Pd(l):[],...Pd(t)]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?cf(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?Hd(e):null;c&&g();function g(){let t=Hd(e);h&&(t.x!==h.x||t.y!==h.y||t.width!==h.width||t.height!==h.height)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var uf=fd,df=pd,ff=sd,pf=hd,mf=ud,hf=od,gf=md,_f=(e,t,n)=>{let r=new Map,i={platform:sf,...n},a={...i.platform,_c:r};return id(e,t,{...i,platform:a})},vf=typeof document<`u`?L.useLayoutEffect:L.useEffect;function yf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!yf(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!yf(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function bf(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xf(e,t){let n=bf(e);return Math.round(t*n)/n}function Sf(e){let t=L.useRef(e);return vf(()=>{t.current=e}),t}function Cf(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=L.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=L.useState(r);yf(f,r)||p(r);let[m,h]=L.useState(null),[g,_]=L.useState(null),v=L.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=L.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=L.useRef(null),C=L.useRef(null),w=L.useRef(u),T=c!=null,E=Sf(c),D=Sf(i),O=L.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),_f(S.current,C.current,e).then(e=>{let t={...e,isPositioned:!0};k.current&&!yf(w.current,t)&&(w.current=t,Jt.flushSync(()=>{d(t)}))})},[f,t,n,D]);vf(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let k=L.useRef(!1);vf(()=>(k.current=!0,()=>{k.current=!1}),[]),vf(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,O);O()}},[b,x,O,E,T]);let A=L.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),j=L.useMemo(()=>({reference:b,floating:x}),[b,x]),ee=L.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=xf(j.floating,u.x),r=xf(j.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...bf(j.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,j.floating,u.x,u.y]);return L.useMemo(()=>({...u,update:O,refs:A,elements:j,floatingStyles:ee}),[u,O,A,j,ee])}var wf=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:hf({element:r.current,padding:i}).fn(n):r?hf({element:r,padding:i}).fn(n):{}}}},Tf=(e,t)=>({...uf(e),options:[e,t]}),Ef=(e,t)=>({...df(e),options:[e,t]}),Df=(e,t)=>({...gf(e),options:[e,t]}),Of=(e,t)=>({...ff(e),options:[e,t]}),kf=(e,t)=>({...pf(e),options:[e,t]}),Af=(e,t)=>({...mf(e),options:[e,t]}),jf=(e,t)=>({...wf(e),options:[e,t]}),Mf=`Arrow`,Nf=L.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,B.jsx)(V.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,B.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Nf.displayName=Mf;var Pf=Nf,Ff=`Popper`,[If,Lf]=Nt(Ff),[Rf,zf]=If(Ff),Bf=e=>{let{__scopePopper:t,children:n}=e,[r,i]=L.useState(null);return(0,B.jsx)(Rf,{scope:t,anchor:r,onAnchorChange:i,children:n})};Bf.displayName=Ff;var Vf=`PopperAnchor`,Hf=L.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=zf(Vf,n),o=L.useRef(null),s=z(t,o);return L.useEffect(()=>{a.onAnchorChange(r?.current||o.current)}),r?null:(0,B.jsx)(V.div,{...i,ref:s})});Hf.displayName=Vf;var Uf=`PopperContent`,[Wf,Gf]=If(Uf),Kf=L.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=zf(Uf,n),[_,v]=L.useState(null),y=z(t,e=>v(e)),[b,x]=L.useState(null),S=ru(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),E=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},D=Array.isArray(l)?l:[l],O=D.length>0,k={padding:E,boundary:D.filter(Xf),altBoundary:O},{refs:A,floatingStyles:j,placement:ee,isPositioned:M,middlewareData:te}=Cf({strategy:`fixed`,placement:T,whileElementsMounted:(...e)=>lf(...e,{animationFrame:p===`always`}),elements:{reference:g.anchor},middleware:[Tf({mainAxis:i+w,alignmentAxis:o}),c&&Ef({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?Df():void 0,...k}),c&&Of({...k}),kf({...k,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),b&&jf({element:b,padding:s}),Zf({arrowWidth:C,arrowHeight:w}),f&&Af({strategy:`referenceHidden`,...k})]}),[N,ne]=Qf(ee),P=zt(m);Ft(()=>{M&&P?.()},[M,P]);let re=te.arrow?.x,ie=te.arrow?.y,ae=te.arrow?.centerOffset!==0,[F,oe]=L.useState();return Ft(()=>{_&&oe(window.getComputedStyle(_).zIndex)},[_]),(0,B.jsx)(`div`,{ref:A.setFloating,"data-radix-popper-content-wrapper":``,style:{...j,transform:M?j.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:F,"--radix-popper-transform-origin":[te.transformOrigin?.x,te.transformOrigin?.y].join(` `),...te.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,B.jsx)(Wf,{scope:n,placedSide:N,onArrowChange:x,arrowX:re,arrowY:ie,shouldHideArrow:ae,children:(0,B.jsx)(V.div,{"data-side":N,"data-align":ne,...h,ref:y,style:{...h.style,animation:M?void 0:`none`}})})})});Kf.displayName=Uf;var qf=`PopperArrow`,Jf={top:`bottom`,right:`left`,bottom:`top`,left:`right`},Yf=L.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Gf(qf,n),a=Jf[i.placedSide];return(0,B.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,B.jsx)(Pf,{...r,ref:t,style:{...r.style,display:`block`}})})});Yf.displayName=qf;function Xf(e){return e!==null}var Zf=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Qf(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function Qf(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var $f=Bf,ep=Hf,tp=Kf,np=Yf,rp=`VisuallyHidden`,ip=L.forwardRef((e,t)=>(0,B.jsx)(V.span,{...e,ref:t,style:{position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`,...e.style}}));ip.displayName=rp;var ap=$n(),op=function(){},sp=L.forwardRef(function(e,t){var n=L.useRef(null),r=L.useState({onScrollCapture:op,onWheelCapture:op,onTouchMoveCapture:op}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,m=e.inert,h=e.allowPinchZoom,g=e.as,_=g===void 0?`div`:g,v=e.gapMode,y=Rn(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),b=f,x=Jn([n,t]),S=Ln(Ln({},y),i);return L.createElement(L.Fragment,null,u&&L.createElement(b,{sideCar:ap,removeScrollBar:l,shards:d,noIsolation:p,inert:m,setCallbacks:a,allowPinchZoom:!!h,lockRef:n,gapMode:v}),o?L.cloneElement(L.Children.only(s),Ln(Ln({},S),{ref:x})):L.createElement(_,Ln({},S,{className:c,ref:x}),s))});sp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},sp.classNames={fullWidth:Vn,zeroRight:Bn};var cp=!1;if(typeof window<`u`)try{var lp=Object.defineProperty({},`passive`,{get:function(){return cp=!0,!0}});window.addEventListener(`test`,lp,lp),window.removeEventListener(`test`,lp,lp)}catch{cp=!1}var up=cp?{passive:!1}:!1,dp=function(e){return e.tagName===`TEXTAREA`},fp=function(e,t){var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!dp(e)&&n[t]===`visible`)},pp=function(e){return fp(e,`overflowY`)},mp=function(e){return fp(e,`overflowX`)},hp=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),vp(e,r)){var i=yp(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},gp=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},_p=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},vp=function(e,t){return e===`v`?pp(t):mp(t)},yp=function(e,t){return e===`v`?gp(t):_p(t)},bp=function(e,t){return e===`h`&&t===`rtl`?-1:1},xp=function(e,t,n,r,i){var a=bp(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{var p=yp(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&vp(e,s)&&(d+=h,f+=m),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Sp=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Cp=function(e){return[e.deltaX,e.deltaY]},wp=function(e){return e&&`current`in e?e.current:e},Tp=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ep=function(e){return`
.block-interactivity-${e} {pointer-events: none;}
.allow-interactivity-${e} {pointer-events: all;}
`},Dp=0,Op=[];function kp(e){var t=L.useRef([]),n=L.useRef([0,0]),r=L.useRef(),i=L.useState(Dp++)[0],a=L.useState(fr)[0],o=L.useRef(e);L.useEffect(function(){o.current=e},[e]),L.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=zn([e.lockRef.current],(e.shards||[]).map(wp),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=L.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2)return!o.current.allowPinchZoom;var i=Sp(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=hp(d,u);if(!f)return!0;if(f?l=d:(l=d===`v`?`h`:`v`,f=hp(d,u)),!f)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var p=r.current||l;return xp(p,t,e,p===`h`?s:c,!0)},[]),c=L.useCallback(function(e){var n=e;if(!(!Op.length||Op[Op.length-1]!==a)){var r=`deltaY`in n?Cp(n):Sp(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Tp(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(wp).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=L.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Ap(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=L.useCallback(function(e){n.current=Sp(e),r.current=void 0},[]),d=L.useCallback(function(t){l(t.type,Cp(t),t.target,s(t,e.lockRef.current))},[]),f=L.useCallback(function(t){l(t.type,Sp(t),t.target,s(t,e.lockRef.current))},[]);L.useEffect(function(){return Op.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,up),document.addEventListener(`touchmove`,c,up),document.addEventListener(`touchstart`,u,up),function(){Op=Op.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,up),document.removeEventListener(`touchmove`,c,up),document.removeEventListener(`touchstart`,u,up)}},[]);var p=e.removeScrollBar,m=e.inert;return L.createElement(L.Fragment,null,m?L.createElement(a,{styles:Ep(i)}):null,p?L.createElement(Sr,{gapMode:e.gapMode}):null)}function Ap(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var jp=tr(ap,kp),Mp=L.forwardRef(function(e,t){return L.createElement(sp,Ln({},e,{ref:t,sideCar:jp}))});Mp.classNames=sp.classNames;var Np=[` `,`Enter`,`ArrowUp`,`ArrowDown`],Pp=[` `,`Enter`],Fp=`Select`,[Ip,Lp,Rp]=Nl(Fp),[zp,Bp]=Nt(Fp,[Rp,Lf]),Vp=Lf(),[Hp,Up]=zp(Fp),[Wp,Gp]=zp(Fp),Kp=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p}=e,m=Vp(t),[h,g]=L.useState(null),[_,v]=L.useState(null),[y,b]=L.useState(!1),x=Fl(l),[S=!1,C]=Bt({prop:r,defaultProp:i,onChange:a}),[w,T]=Bt({prop:o,defaultProp:s,onChange:c}),E=L.useRef(null),D=h?!!h.closest(`form`):!0,[O,k]=L.useState(new Set),A=Array.from(O).map(e=>e.props.value).join(`;`);return(0,B.jsx)($f,{...m,children:(0,B.jsxs)(Hp,{required:p,scope:t,trigger:h,onTriggerChange:g,valueNode:_,onValueNodeChange:v,valueNodeHasChildren:y,onValueNodeHasChildrenChange:b,contentId:Rt(),value:w,onValueChange:T,open:S,onOpenChange:C,dir:x,triggerPointerDownPosRef:E,disabled:f,children:[(0,B.jsx)(Ip.Provider,{scope:t,children:(0,B.jsx)(Wp,{scope:e.__scopeSelect,onNativeOptionAdd:L.useCallback(e=>{k(t=>new Set(t).add(e))},[]),onNativeOptionRemove:L.useCallback(e=>{k(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),D?(0,B.jsxs)(Bm,{"aria-hidden":!0,required:p,tabIndex:-1,name:u,autoComplete:d,value:w,onChange:e=>T(e.target.value),disabled:f,children:[w===void 0?(0,B.jsx)(`option`,{value:``}):null,Array.from(O)]},A):null]})})};Kp.displayName=Fp;var qp=`SelectTrigger`,Jp=L.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:r=!1,...i}=e,a=Vp(n),o=Up(qp,n),s=o.disabled||r,c=z(t,o.onTriggerChange),l=Lp(n),[u,d,f]=Vm(e=>{let t=l().filter(e=>!e.disabled),n=Hm(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),p=()=>{s||(o.onOpenChange(!0),f())};return(0,B.jsx)(ep,{asChild:!0,...a,children:(0,B.jsx)(V.button,{type:`button`,role:`combobox`,"aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":zm(o.value)?``:void 0,...i,ref:c,onClick:R(i.onClick,e=>{e.currentTarget.focus()}),onPointerDown:R(i.onPointerDown,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&(p(),o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())}),onKeyDown:R(i.onKeyDown,e=>{let t=u.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&d(e.key),!(t&&e.key===` `)&&Np.includes(e.key)&&(p(),e.preventDefault())})})})});Jp.displayName=qp;var Yp=`SelectValue`,Xp=L.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=Up(Yp,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=z(t,c.onValueNodeChange);return Ft(()=>{l(u)},[l,u]),(0,B.jsx)(V.span,{...s,ref:d,style:{pointerEvents:`none`},children:zm(c.value)?(0,B.jsx)(B.Fragment,{children:o}):a})});Xp.displayName=Yp;var Zp=`SelectIcon`,Qp=L.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,B.jsx)(V.span,{"aria-hidden":!0,...i,ref:t,children:r||`â–¼`})});Qp.displayName=Zp;var $p=`SelectPortal`,em=e=>(0,B.jsx)(On,{asChild:!0,...e});em.displayName=$p;var tm=`SelectContent`,nm=L.forwardRef((e,t)=>{let n=Up(tm,e.__scopeSelect),[r,i]=L.useState();if(Ft(()=>{i(new DocumentFragment)},[]),!n.open){let t=r;return t?Jt.createPortal((0,B.jsx)(im,{scope:e.__scopeSelect,children:(0,B.jsx)(Ip.Slot,{scope:e.__scopeSelect,children:(0,B.jsx)(`div`,{children:e.children})})}),t):null}return(0,B.jsx)(sm,{...e,ref:t})});nm.displayName=tm;var rm=10,[im,am]=zp(tm),om=`SelectContentImpl`,sm=L.forwardRef((e,t)=>{let{__scopeSelect:n,position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g,..._}=e,v=Up(tm,n),[y,b]=L.useState(null),[x,S]=L.useState(null),C=z(t,e=>b(e)),[w,T]=L.useState(null),[E,D]=L.useState(null),O=Lp(n),[k,A]=L.useState(!1),j=L.useRef(!1);L.useEffect(()=>{if(y)return ni(y)},[y]),Fn();let ee=L.useCallback(e=>{let[t,...n]=O().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&x&&(x.scrollTop=0),n===r&&x&&(x.scrollTop=x.scrollHeight),n?.focus(),document.activeElement!==i))return},[O,x]),M=L.useCallback(()=>ee([w,y]),[ee,w,y]);L.useEffect(()=>{k&&M()},[k,M]);let{onOpenChange:te,triggerPointerDownPosRef:N}=v;L.useEffect(()=>{if(y){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(N.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(N.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():y.contains(n.target)||te(!1),document.removeEventListener(`pointermove`,t),N.current=null};return N.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[y,te,N]),L.useEffect(()=>{let e=()=>te(!1);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[te]);let[ne,P]=Vm(e=>{let t=O().filter(e=>!e.disabled),n=Hm(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current.focus())}),re=L.useCallback((e,t,n)=>{let r=!j.current&&!n;(v.value!==void 0&&v.value===t||r)&&(T(e),r&&(j.current=!0))},[v.value]),ie=L.useCallback(()=>y?.focus(),[y]),ae=L.useCallback((e,t,n)=>{let r=!j.current&&!n;(v.value!==void 0&&v.value===t||r)&&D(e)},[v.value]),F=r===`popper`?dm:lm,oe=F===dm?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,B.jsx)(im,{scope:n,content:y,viewport:x,onViewportChange:S,itemRefCallback:re,selectedItem:w,onItemLeave:ie,itemTextRefCallback:ae,focusSelectedItem:M,selectedItemText:E,position:r,isPositioned:k,searchRef:ne,children:(0,B.jsx)(Mp,{as:Ht,allowPinchZoom:!0,children:(0,B.jsx)(hn,{asChild:!0,trapped:v.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:R(i,e=>{v.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,B.jsx)(rn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:(0,B.jsx)(F,{role:`listbox`,id:v.contentId,"data-state":v.open?`open`:`closed`,dir:v.dir,onContextMenu:e=>e.preventDefault(),..._,...oe,onPlaced:()=>A(!0),ref:C,style:{display:`flex`,flexDirection:`column`,outline:`none`,..._.style},onKeyDown:R(_.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&P(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=O().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>ee(t)),e.preventDefault()}})})})})})})});sm.displayName=om;var cm=`SelectItemAlignedPosition`,lm=L.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...i}=e,a=Up(tm,n),o=am(tm,n),[s,c]=L.useState(null),[l,u]=L.useState(null),d=z(t,e=>u(e)),f=Lp(n),p=L.useRef(!1),m=L.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:_,focusSelectedItem:v}=o,y=L.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&g&&_){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=_.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=ju(a,[rm,window.innerWidth-rm-l]);s.style.minWidth=c+`px`,s.style.left=u+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=ju(a,[rm,window.innerWidth-rm-l]);s.style.minWidth=c+`px`,s.style.right=u+`px`}let o=f(),c=window.innerHeight-rm*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+v+u+b+y,S=Math.min(g.offsetHeight*5,x),C=window.getComputedStyle(h),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-rm,D=c-E,O=g.offsetHeight/2,k=g.offsetTop+O,A=m+v+k,j=x-A;if(A<=E){let e=g===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-h.offsetTop-h.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=g===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,m+h.offsetTop+(e?w:0)+O)+j;s.style.height=t+`px`,h.scrollTop=A-E+h.offsetTop}s.style.margin=`${rm}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,h,g,_,a.dir,r]);Ft(()=>y(),[y]);let[b,x]=L.useState();return Ft(()=>{l&&x(window.getComputedStyle(l).zIndex)},[l]),(0,B.jsx)(fm,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:L.useCallback(e=>{e&&m.current===!0&&(y(),v?.(),m.current=!1)},[y,v]),children:(0,B.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:b},children:(0,B.jsx)(V.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})});lm.displayName=cm;var um=`SelectPopperPosition`,dm=L.forwardRef((e,t)=>{let{__scopeSelect:n,align:r=`start`,collisionPadding:i=rm,...a}=e,o=Vp(n);return(0,B.jsx)(tp,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})});dm.displayName=um;var[fm,pm]=zp(tm,{}),mm=`SelectViewport`,hm=L.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...i}=e,a=am(mm,n),o=pm(mm,n),s=z(t,a.onViewportChange),c=L.useRef(0);return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,B.jsx)(Ip.Slot,{scope:n,children:(0,B.jsx)(V.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`auto`,...i.style},onScroll:R(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-rm*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})});hm.displayName=mm;var gm=`SelectGroup`,[_m,vm]=zp(gm),ym=L.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=Rt();return(0,B.jsx)(_m,{scope:n,id:i,children:(0,B.jsx)(V.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})});ym.displayName=gm;var bm=`SelectLabel`,xm=L.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=vm(bm,n);return(0,B.jsx)(V.div,{id:i.id,...r,ref:t})});xm.displayName=bm;var Sm=`SelectItem`,[Cm,wm]=zp(Sm),Tm=L.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=Up(Sm,n),c=am(Sm,n),l=s.value===r,[u,d]=L.useState(a??``),[f,p]=L.useState(!1),m=z(t,e=>c.itemRefCallback?.(e,r,i)),h=Rt(),g=()=>{i||(s.onValueChange(r),s.onOpenChange(!1))};if(r===``)throw Error(`A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.`);return(0,B.jsx)(Cm,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:L.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,B.jsx)(Ip.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,B.jsx)(V.div,{role:`option`,"aria-labelledby":h,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:R(o.onFocus,()=>p(!0)),onBlur:R(o.onBlur,()=>p(!1)),onPointerUp:R(o.onPointerUp,g),onPointerMove:R(o.onPointerMove,e=>{i?c.onItemLeave?.():e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:R(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:R(o.onKeyDown,e=>{c.searchRef?.current!==``&&e.key===` `||(Pp.includes(e.key)&&g(),e.key===` `&&e.preventDefault())})})})})});Tm.displayName=Sm;var Em=`SelectItemText`,Dm=L.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,...a}=e,o=Up(Em,n),s=am(Em,n),c=wm(Em,n),l=Gp(Em,n),[u,d]=L.useState(null),f=z(t,e=>d(e),c.onItemTextChange,e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=u?.textContent,m=L.useMemo(()=>(0,B.jsx)(`option`,{value:c.value,disabled:c.disabled,children:p},c.value),[c.disabled,c.value,p]),{onNativeOptionAdd:h,onNativeOptionRemove:g}=l;return Ft(()=>(h(m),()=>g(m)),[h,g,m]),(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(V.span,{id:c.textId,...a,ref:f}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Jt.createPortal(a.children,o.valueNode):null]})});Dm.displayName=Em;var Om=`SelectItemIndicator`,km=L.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return wm(Om,n).isSelected?(0,B.jsx)(V.span,{"aria-hidden":!0,...r,ref:t}):null});km.displayName=Om;var Am=`SelectScrollUpButton`,jm=L.forwardRef((e,t)=>{let n=am(Am,e.__scopeSelect),r=pm(Am,e.__scopeSelect),[i,a]=L.useState(!1),o=z(t,r.onScrollButtonChange);return Ft(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,B.jsx)(Pm,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null});jm.displayName=Am;var Mm=`SelectScrollDownButton`,Nm=L.forwardRef((e,t)=>{let n=am(Mm,e.__scopeSelect),r=pm(Mm,e.__scopeSelect),[i,a]=L.useState(!1),o=z(t,r.onScrollButtonChange);return Ft(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,B.jsx)(Pm,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null});Nm.displayName=Mm;var Pm=L.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=am(`SelectScrollButton`,n),o=L.useRef(null),s=Lp(n),c=L.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return L.useEffect(()=>()=>c(),[c]),Ft(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,B.jsx)(V.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:R(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:R(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:R(i.onPointerLeave,()=>{c()})})}),Fm=`SelectSeparator`,Im=L.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,B.jsx)(V.div,{"aria-hidden":!0,...r,ref:t})});Im.displayName=Fm;var Lm=`SelectArrow`,Rm=L.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=Vp(n),a=Up(Lm,n),o=am(Lm,n);return a.open&&o.position===`popper`?(0,B.jsx)(np,{...i,...r,ref:t}):null});Rm.displayName=Lm;function zm(e){return e===``||e===void 0}var Bm=L.forwardRef((e,t)=>{let{value:n,...r}=e,i=L.useRef(null),a=z(t,i),o=iu(n);return L.useEffect(()=>{let e=i.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,`value`).set;if(o!==n&&r){let t=new Event(`change`,{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}},[o,n]),(0,B.jsx)(ip,{asChild:!0,children:(0,B.jsx)(`select`,{...r,ref:a,defaultValue:n})})});Bm.displayName=`BubbleSelect`;function Vm(e){let t=zt(e),n=L.useRef(``),r=L.useRef(0),i=L.useCallback(e=>{let i=n.current+e;t(i),(function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))})(i)},[t]),a=L.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return L.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}function Hm(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Um(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}function Um(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Wm=Kp,Gm=Jp,Km=Xp,qm=Qp,Jm=em,Ym=nm,Xm=hm,Zm=Tm,Qm=Dm,$m=`Checkbox`,[eh,th]=Nt($m),[nh,rh]=eh($m),ih=L.forwardRef((e,t)=>{let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c=`on`,onCheckedChange:l,...u}=e,[d,f]=L.useState(null),p=z(t,e=>f(e)),m=L.useRef(!1),h=d?!!d.closest(`form`):!0,[g=!1,_]=Bt({prop:i,defaultProp:a,onChange:l}),v=L.useRef(g);return L.useEffect(()=>{let e=d?.form;if(e){let t=()=>_(v.current);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[d,_]),(0,B.jsxs)(nh,{scope:n,state:g,disabled:s,children:[(0,B.jsx)(V.button,{type:`button`,role:`checkbox`,"aria-checked":ch(g)?`mixed`:g,"aria-required":o,"data-state":lh(g),"data-disabled":s?``:void 0,disabled:s,value:c,...u,ref:p,onKeyDown:R(e.onKeyDown,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:R(e.onClick,e=>{_(e=>ch(e)?!0:!e),h&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})}),h&&(0,B.jsx)(sh,{control:d,bubbles:!m.current,name:r,value:c,checked:g,required:o,disabled:s,style:{transform:`translateX(-100%)`}})]})});ih.displayName=$m;var ah=`CheckboxIndicator`,oh=L.forwardRef((e,t)=>{let{__scopeCheckbox:n,forceMount:r,...i}=e,a=rh(ah,n);return(0,B.jsx)(An,{present:r||ch(a.state)||a.state===!0,children:(0,B.jsx)(V.span,{"data-state":lh(a.state),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})});oh.displayName=ah;var sh=e=>{let{control:t,checked:n,bubbles:r=!0,...i}=e,a=L.useRef(null),o=iu(n),s=ru(t);return L.useEffect(()=>{let e=a.current,t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,`checked`).set;if(o!==n&&i){let t=new Event(`click`,{bubbles:r});e.indeterminate=ch(n),i.call(e,ch(n)?!1:n),e.dispatchEvent(t)}},[o,n,r]),(0,B.jsx)(`input`,{type:`checkbox`,"aria-hidden":!0,defaultChecked:ch(n)?!1:n,...i,tabIndex:-1,ref:a,style:{...e.style,...s,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}})};function ch(e){return e===`indeterminate`}function lh(e){return ch(e)?`indeterminate`:e?`checked`:`unchecked`}var uh=ih,dh=oh,fh=$n(),ph=function(){},mh=L.forwardRef(function(e,t){var n=L.useRef(null),r=L.useState({onScrollCapture:ph,onWheelCapture:ph,onTouchMoveCapture:ph}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,m=e.inert,h=e.allowPinchZoom,g=e.as,_=g===void 0?`div`:g,v=e.gapMode,y=Rn(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),b=f,x=Jn([n,t]),S=Ln(Ln({},y),i);return L.createElement(L.Fragment,null,u&&L.createElement(b,{sideCar:fh,removeScrollBar:l,shards:d,noIsolation:p,inert:m,setCallbacks:a,allowPinchZoom:!!h,lockRef:n,gapMode:v}),o?L.cloneElement(L.Children.only(s),Ln(Ln({},S),{ref:x})):L.createElement(_,Ln({},S,{className:c,ref:x}),s))});mh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},mh.classNames={fullWidth:Vn,zeroRight:Bn};var hh=!1;if(typeof window<`u`)try{var gh=Object.defineProperty({},`passive`,{get:function(){return hh=!0,!0}});window.addEventListener(`test`,gh,gh),window.removeEventListener(`test`,gh,gh)}catch{hh=!1}var _h=hh?{passive:!1}:!1,vh=function(e){return e.tagName===`TEXTAREA`},yh=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!vh(e)&&n[t]===`visible`)},bh=function(e){return yh(e,`overflowY`)},xh=function(e){return yh(e,`overflowX`)},Sh=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Th(e,r)){var i=Eh(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ch=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},wh=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Th=function(e,t){return e===`v`?bh(t):xh(t)},Eh=function(e,t){return e===`v`?Ch(t):wh(t)},Dh=function(e,t){return e===`h`&&t===`rtl`?-1:1},Oh=function(e,t,n,r,i){var a=Dh(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{var p=Eh(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Th(e,s)&&(d+=h,f+=m),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},kh=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ah=function(e){return[e.deltaX,e.deltaY]},jh=function(e){return e&&`current`in e?e.current:e},Mh=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Nh=function(e){return`
.block-interactivity-${e} {pointer-events: none;}
.allow-interactivity-${e} {pointer-events: all;}
`},Ph=0,Fh=[];function Ih(e){var t=L.useRef([]),n=L.useRef([0,0]),r=L.useRef(),i=L.useState(Ph++)[0],a=L.useState(fr)[0],o=L.useRef(e);L.useEffect(function(){o.current=e},[e]),L.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=zn([e.lockRef.current],(e.shards||[]).map(jh),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=L.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2)return!o.current.allowPinchZoom;var i=kh(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=Sh(d,u);if(!f)return!0;if(f?l=d:(l=d===`v`?`h`:`v`,f=Sh(d,u)),!f)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var p=r.current||l;return Oh(p,t,e,p===`h`?s:c,!0)},[]),c=L.useCallback(function(e){var n=e;if(!(!Fh.length||Fh[Fh.length-1]!==a)){var r=`deltaY`in n?Ah(n):kh(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Mh(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(jh).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=L.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Lh(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=L.useCallback(function(e){n.current=kh(e),r.current=void 0},[]),d=L.useCallback(function(t){l(t.type,Ah(t),t.target,s(t,e.lockRef.current))},[]),f=L.useCallback(function(t){l(t.type,kh(t),t.target,s(t,e.lockRef.current))},[]);L.useEffect(function(){return Fh.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,_h),document.addEventListener(`touchmove`,c,_h),document.addEventListener(`touchstart`,u,_h),function(){Fh=Fh.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,_h),document.removeEventListener(`touchmove`,c,_h),document.removeEventListener(`touchstart`,u,_h)}},[]);var p=e.removeScrollBar,m=e.inert;return L.createElement(L.Fragment,null,m?L.createElement(a,{styles:Nh(i)}):null,p?L.createElement(Sr,{gapMode:e.gapMode}):null)}function Lh(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Rh=tr(fh,Ih),zh=L.forwardRef(function(e,t){return L.createElement(mh,Ln({},e,{ref:t,sideCar:Rh}))});zh.classNames=mh.classNames;function Bh(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Sd(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Vh(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Hh(e){return`nativeEvent`in e}function Uh(e){return e.matches(`html,body`)}function Wh(e){return e?.ownerDocument||document}function Gh(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Kh(e){return`composedPath`in e?e.composedPath()[0]:e.target}function qh(e){return xd(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}var Jh={...L},Yh=Jh.useInsertionEffect||(e=>e());function Xh(e){let t=L.useRef(()=>{});return Yh(()=>{t.current=e}),L.useCallback(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}var Zh=`ArrowUp`,Qh=`ArrowDown`,$h=`ArrowLeft`,eg=`ArrowRight`,tg=typeof document<`u`?L.useLayoutEffect:L.useEffect,ng=[$h,eg],rg=[Zh,Qh];[...ng,...rg];var ig=!1,ag=0,og=()=>`floating-ui-`+Math.random().toString(36).slice(2,6)+ ag++;function sg(){let[e,t]=L.useState(()=>ig?og():void 0);return tg(()=>{e??t(og())},[]),L.useEffect(()=>{ig=!0},[]),e}var cg=Jh.useId||sg;function lg(){let e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){e.set(t,e.get(t)?.filter(e=>e!==n)||[])}}}var ug=L.createContext(null),dg=L.createContext(null),fg=()=>L.useContext(ug)?.id||null,pg=()=>L.useContext(dg);function mg(e){return`data-floating-ui-`+e}function hg(e,t){let n=e.filter(e=>e.parentId===t&&e.context?.open),r=n;for(;r.length;)r=e.filter(e=>r?.some(t=>e.parentId===t.id&&e.context?.open)),n=n.concat(r);return n}var gg=`data-floating-ui-focusable`;function _g(e){return xd(e.target)&&e.target.tagName===`BUTTON`}function vg(e){return qh(e)}function yg(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,dataRef:i,elements:{domReference:a}}=e,{enabled:o=!0,event:s=`click`,toggle:c=!0,ignoreMouse:l=!1,keyboardHandlers:u=!0}=t,d=L.useRef(),f=L.useRef(!1),p=L.useMemo(()=>({onPointerDown(e){d.current=e.pointerType},onMouseDown(e){let t=d.current;e.button===0&&s!==`click`&&(Vh(t,!0)&&l||(n&&c&&(!i.current.openEvent||i.current.openEvent.type===`mousedown`)?r(!1,e.nativeEvent,`click`):(e.preventDefault(),r(!0,e.nativeEvent,`click`))))},onClick(e){let t=d.current;if(s===`mousedown`&&d.current){d.current=void 0;return}Vh(t,!0)&&l||(n&&c&&(!i.current.openEvent||i.current.openEvent.type===`click`)?r(!1,e.nativeEvent,`click`):r(!0,e.nativeEvent,`click`))},onKeyDown(e){d.current=void 0,!(e.defaultPrevented||!u||_g(e))&&(e.key===` `&&!vg(a)&&(e.preventDefault(),f.current=!0),e.key===`Enter`&&r(!(n&&c),e.nativeEvent,`click`))},onKeyUp(e){e.defaultPrevented||!u||_g(e)||vg(a)||e.key===` `&&f.current&&(f.current=!1,r(!(n&&c),e.nativeEvent,`click`))}}),[i,a,s,l,u,r,n,c]);return L.useMemo(()=>o?{reference:p}:{},[o,p])}var bg={pointerdown:`onPointerDown`,mousedown:`onMouseDown`,click:`onClick`},xg={pointerdown:`onPointerDownCapture`,mousedown:`onMouseDownCapture`,click:`onClickCapture`},Sg=e=>({escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0});function Cg(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,elements:i,dataRef:a}=e,{enabled:o=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l=`pointerdown`,referencePress:u=!1,referencePressEvent:d=`pointerdown`,ancestorScroll:f=!1,bubbles:p,capture:m}=t,h=pg(),g=Xh(typeof c==`function`?c:()=>!1),_=typeof c==`function`?g:c,v=L.useRef(!1),y=L.useRef(!1),{escapeKey:b,outsidePress:x}=Sg(p),{escapeKey:S,outsidePress:C}=Sg(m),w=Xh(e=>{if(!n||!o||!s||e.key!==`Escape`)return;let t=a.current.floatingContext?.nodeId,i=h?hg(h.nodesRef.current,t):[];if(!b&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;if((n=t.context)!=null&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}r(!1,Hh(e)?e.nativeEvent:e,`escape-key`)}),T=Xh(e=>{var t;let n=()=>{var t;w(e),(t=Kh(e))==null||t.removeEventListener(`keydown`,n)};(t=Kh(e))==null||t.addEventListener(`keydown`,n)}),E=Xh(e=>{let t=v.current;v.current=!1;let n=y.current;if(y.current=!1,l===`click`&&n||t||typeof _==`function`&&!_(e))return;let o=Kh(e),s=`[`+mg(`inert`)+`]`,c=Wh(i.floating).querySelectorAll(s),u=bd(o)?o:null;for(;u&&!kd(u);){let e=Md(u);if(kd(e)||!bd(e))break;u=e}if(c.length&&bd(o)&&!Uh(o)&&!Bh(o,i.floating)&&Array.from(c).every(e=>!Bh(u,e)))return;if(xd(o)&&k){let t=o.clientWidth>0&&o.scrollWidth>o.clientWidth,n=o.clientHeight>0&&o.scrollHeight>o.clientHeight,r=n&&e.offsetX>o.clientWidth;if(n&&Ad(o).direction===`rtl`&&(r=e.offsetX<=o.offsetWidth-o.clientWidth),r||t&&e.offsetY>o.clientHeight)return}let d=a.current.floatingContext?.nodeId,f=h&&hg(h.nodesRef.current,d).some(t=>Gh(e,t.context?.elements.floating));if(Gh(e,i.floating)||Gh(e,i.domReference)||f)return;let p=h?hg(h.nodesRef.current,d):[];if(p.length>0){let e=!0;if(p.forEach(t=>{var n;if((n=t.context)!=null&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}r(!1,e,`outside-press`)}),D=Xh(e=>{var t;let n=()=>{var t;E(e),(t=Kh(e))==null||t.removeEventListener(l,n)};(t=Kh(e))==null||t.addEventListener(l,n)});L.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=b,a.current.__outsidePressBubbles=x;function e(e){r(!1,e,`ancestor-scroll`)}let t=Wh(i.floating);s&&t.addEventListener(`keydown`,S?T:w,S),_&&t.addEventListener(l,C?D:E,C);let c=[];return f&&(bd(i.domReference)&&(c=Pd(i.domReference)),bd(i.floating)&&(c=c.concat(Pd(i.floating))),!bd(i.reference)&&i.reference&&i.reference.contextElement&&(c=c.concat(Pd(i.reference.contextElement)))),c=c.filter(e=>e!==t.defaultView?.visualViewport),c.forEach(t=>{t.addEventListener(`scroll`,e,{passive:!0})}),()=>{s&&t.removeEventListener(`keydown`,S?T:w,S),_&&t.removeEventListener(l,C?D:E,C),c.forEach(t=>{t.removeEventListener(`scroll`,e)})}},[a,i,s,_,l,n,r,f,o,b,x,w,S,T,E,C,D]),L.useEffect(()=>{v.current=!1},[_,l]);let O=L.useMemo(()=>({onKeyDown:w,[bg[d]]:e=>{u&&r(!1,e.nativeEvent,`reference-press`)}}),[w,r,u,d]),k=L.useMemo(()=>({onKeyDown:w,onMouseDown(){y.current=!0},onMouseUp(){y.current=!0},[xg[l]]:()=>{v.current=!0}}),[w,l]);return L.useMemo(()=>o?{reference:O,floating:k}:{},[o,O,k])}function wg(e){let{open:t=!1,onOpenChange:n,elements:r}=e,i=cg(),a=L.useRef({}),[o]=L.useState(()=>lg()),s=fg()!=null,[c,l]=L.useState(r.reference),u=Xh((e,t,r)=>{a.current.openEvent=e?t:void 0,o.emit(`openchange`,{open:e,event:t,reason:r,nested:s}),n?.(e,t,r)}),d=L.useMemo(()=>({setPositionReference:l}),[]),f=L.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return L.useMemo(()=>({dataRef:a,open:t,onOpenChange:u,elements:f,events:o,floatingId:i,refs:d}),[t,u,f,o,i,d])}function Tg(e){e===void 0&&(e={});let{nodeId:t}=e,n=wg({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,o]=L.useState(null),[s,c]=L.useState(null),l=i?.reference||a,u=L.useRef(null),d=pg();tg(()=>{l&&(u.current=l)},[l]);let f=Cf({...e,elements:{...i,...s&&{reference:s}}}),p=L.useCallback(e=>{let t=bd(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),f.refs.setReference(t)},[f.refs]),m=L.useCallback(e=>{(bd(e)||e===null)&&(u.current=e,o(e)),(bd(f.refs.reference.current)||f.refs.reference.current===null||e!==null&&!bd(e))&&f.refs.setReference(e)},[f.refs]),h=L.useMemo(()=>({...f.refs,setReference:m,setPositionReference:p,domReference:u}),[f.refs,m,p]),g=L.useMemo(()=>({...f.elements,domReference:l}),[f.elements,l]),_=L.useMemo(()=>({...f,...r,refs:h,elements:g,nodeId:t}),[f,h,g,t,r]);return tg(()=>{r.dataRef.current.floatingContext=_;let e=d?.nodesRef.current.find(e=>e.id===t);e&&(e.context=_)}),L.useMemo(()=>({...f,context:_,refs:h,elements:g}),[f,h,g,_])}var Eg=`active`,Dg=`selected`;function Og(e,t,n){let r=new Map,i=n===`item`,a=e;if(i&&e){let{[Eg]:t,[Dg]:n,...r}=e;a=r}return{...n===`floating`&&{tabIndex:-1,[gg]:``},...a,...t.map(t=>{let r=t?t[n]:null;return typeof r==`function`?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,a]=t;if(!(i&&[Eg,Dg].includes(n)))if(n.indexOf(`on`)===0){if(r.has(n)||r.set(n,[]),typeof a==`function`){var o;(o=r.get(n))==null||o.push(a),e[n]=function(){var e=[...arguments];return r.get(n)?.map(t=>t(...e)).find(e=>e!==void 0)}}}else e[n]=a}),e),{})}}function kg(e){e===void 0&&(e=[]);let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=L.useCallback(t=>Og(t,e,`reference`),t),a=L.useCallback(t=>Og(t,e,`floating`),n),o=L.useCallback(t=>Og(t,e,`item`),r);return L.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}var Ag=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]);function jg(e,t){t===void 0&&(t={});let{open:n,floatingId:r}=e,{enabled:i=!0,role:a=`dialog`}=t,o=Ag.get(a)??a,s=cg(),c=fg()!=null,l=L.useMemo(()=>o===`tooltip`||a===`label`?{[`aria-`+(a===`label`?`labelledby`:`describedby`)]:n?r:void 0}:{"aria-expanded":n?`true`:`false`,"aria-haspopup":o===`alertdialog`?`dialog`:o,"aria-controls":n?r:void 0,...o===`listbox`&&{role:`combobox`},...o===`menu`&&{id:s},...o===`menu`&&c&&{role:`menuitem`},...a===`select`&&{"aria-autocomplete":`none`},...a===`combobox`&&{"aria-autocomplete":`list`}},[o,r,c,n,s,a]),u=L.useMemo(()=>{let e={id:r,...o&&{role:o}};return o===`tooltip`||a===`label`?e:{...e,...o===`menu`&&{"aria-labelledby":s}}},[o,r,s,a]),d=L.useCallback(e=>{let{active:t,selected:n}=e,i={role:`option`,...t&&{id:r+`-option`}};switch(a){case`select`:return{...i,"aria-selected":t&&n};case`combobox`:return{...i,...t&&{"aria-selected":!0}}}return{}},[r,a]);return L.useMemo(()=>i?{reference:l,floating:u,item:d}:{},[i,l,u,d])}var Mg=$n(),Ng=function(){},Pg=L.forwardRef(function(e,t){var n=L.useRef(null),r=L.useState({onScrollCapture:Ng,onWheelCapture:Ng,onTouchMoveCapture:Ng}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,m=e.inert,h=e.allowPinchZoom,g=e.as,_=g===void 0?`div`:g,v=e.gapMode,y=Rn(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),b=f,x=Jn([n,t]),S=Ln(Ln({},y),i);return L.createElement(L.Fragment,null,u&&L.createElement(b,{sideCar:Mg,removeScrollBar:l,shards:d,noIsolation:p,inert:m,setCallbacks:a,allowPinchZoom:!!h,lockRef:n,gapMode:v}),o?L.cloneElement(L.Children.only(s),Ln(Ln({},S),{ref:x})):L.createElement(_,Ln({},S,{className:c,ref:x}),s))});Pg.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Pg.classNames={fullWidth:Vn,zeroRight:Bn};var Fg=!1;if(typeof window<`u`)try{var Ig=Object.defineProperty({},`passive`,{get:function(){return Fg=!0,!0}});window.addEventListener(`test`,Ig,Ig),window.removeEventListener(`test`,Ig,Ig)}catch{Fg=!1}var Lg=Fg?{passive:!1}:!1,Rg=function(e){return e.tagName===`TEXTAREA`},zg=function(e,t){var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Rg(e)&&n[t]===`visible`)},Bg=function(e){return zg(e,`overflowY`)},Vg=function(e){return zg(e,`overflowX`)},Hg=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Gg(e,r)){var i=Kg(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Ug=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Wg=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Gg=function(e,t){return e===`v`?Bg(t):Vg(t)},Kg=function(e,t){return e===`v`?Ug(t):Wg(t)},qg=function(e,t){return e===`h`&&t===`rtl`?-1:1},Jg=function(e,t,n,r,i){var a=qg(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{var p=Kg(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Gg(e,s)&&(d+=h,f+=m),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Yg=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Xg=function(e){return[e.deltaX,e.deltaY]},Zg=function(e){return e&&`current`in e?e.current:e},Qg=function(e,t){return e[0]===t[0]&&e[1]===t[1]},$g=function(e){return`
.block-interactivity-${e} {pointer-events: none;}
.allow-interactivity-${e} {pointer-events: all;}
`},e_=0,t_=[];function n_(e){var t=L.useRef([]),n=L.useRef([0,0]),r=L.useRef(),i=L.useState(e_++)[0],a=L.useState(fr)[0],o=L.useRef(e);L.useEffect(function(){o.current=e},[e]),L.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=zn([e.lockRef.current],(e.shards||[]).map(Zg),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=L.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2)return!o.current.allowPinchZoom;var i=Yg(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=Hg(d,u);if(!f)return!0;if(f?l=d:(l=d===`v`?`h`:`v`,f=Hg(d,u)),!f)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var p=r.current||l;return Jg(p,t,e,p===`h`?s:c,!0)},[]),c=L.useCallback(function(e){var n=e;if(!(!t_.length||t_[t_.length-1]!==a)){var r=`deltaY`in n?Xg(n):Yg(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Qg(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Zg).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=L.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:r_(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=L.useCallback(function(e){n.current=Yg(e),r.current=void 0},[]),d=L.useCallback(function(t){l(t.type,Xg(t),t.target,s(t,e.lockRef.current))},[]),f=L.useCallback(function(t){l(t.type,Yg(t),t.target,s(t,e.lockRef.current))},[]);L.useEffect(function(){return t_.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Lg),document.addEventListener(`touchmove`,c,Lg),document.addEventListener(`touchstart`,u,Lg),function(){t_=t_.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Lg),document.removeEventListener(`touchmove`,c,Lg),document.removeEventListener(`touchstart`,u,Lg)}},[]);var p=e.removeScrollBar,m=e.inert;return L.createElement(L.Fragment,null,m?L.createElement(a,{styles:$g(i)}):null,p?L.createElement(Sr,{gapMode:e.gapMode}):null)}function r_(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var i_=tr(Mg,n_),a_=L.forwardRef(function(e,t){return L.createElement(Pg,Ln({},e,{ref:t,sideCar:i_}))});a_.classNames=Pg.classNames;var o_=`Popover`,[s_,c_]=Nt(o_,[Lf]),l_=Lf(),[u_,d_]=s_(o_),f_=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=l_(t),c=L.useRef(null),[l,u]=L.useState(!1),[d=!1,f]=Bt({prop:r,defaultProp:i,onChange:a});return(0,B.jsx)($f,{...s,children:(0,B.jsx)(u_,{scope:t,contentId:Rt(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:L.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:L.useCallback(()=>u(!0),[]),onCustomAnchorRemove:L.useCallback(()=>u(!1),[]),modal:o,children:n})})};f_.displayName=o_;var p_=`PopoverAnchor`,m_=L.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=d_(p_,n),a=l_(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return L.useEffect(()=>(o(),()=>s()),[o,s]),(0,B.jsx)(ep,{...a,...r,ref:t})});m_.displayName=p_;var h_=`PopoverTrigger`,g_=L.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=d_(h_,n),a=l_(n),o=z(t,i.triggerRef),s=(0,B.jsx)(V.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.contentId,"data-state":A_(i.open),...r,ref:o,onClick:R(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,B.jsx)(ep,{asChild:!0,...a,children:s})});g_.displayName=h_;var __=`PopoverPortal`,[v_,y_]=s_(__,{forceMount:void 0}),b_=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=d_(__,t);return(0,B.jsx)(v_,{scope:t,forceMount:n,children:(0,B.jsx)(An,{present:n||a.open,children:(0,B.jsx)(On,{asChild:!0,container:i,children:r})})})};b_.displayName=__;var x_=`PopoverContent`,S_=L.forwardRef((e,t)=>{let n=y_(x_,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=d_(x_,e.__scopePopover);return(0,B.jsx)(An,{present:r||a.open,children:a.modal?(0,B.jsx)(C_,{...i,ref:t}):(0,B.jsx)(w_,{...i,ref:t})})});S_.displayName=x_;var C_=L.forwardRef((e,t)=>{let n=d_(x_,e.__scopePopover),r=L.useRef(null),i=z(t,r),a=L.useRef(!1);return L.useEffect(()=>{let e=r.current;if(e)return ni(e)},[]),(0,B.jsx)(a_,{as:Ht,allowPinchZoom:!0,children:(0,B.jsx)(T_,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:R(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:R(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;a.current=t.button===2||n},{checkForDefaultPrevented:!1}),onFocusOutside:R(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),w_=L.forwardRef((e,t)=>{let n=d_(x_,e.__scopePopover),r=L.useRef(!1),i=L.useRef(!1);return(0,B.jsx)(T_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),T_=L.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=d_(x_,n),p=l_(n);return Fn(),(0,B.jsx)(hn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,B.jsx)(rn,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:(0,B.jsx)(tp,{"data-state":A_(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),E_=`PopoverClose`,D_=L.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=d_(E_,n);return(0,B.jsx)(V.button,{type:`button`,...r,ref:t,onClick:R(e.onClick,()=>i.onOpenChange(!1))})});D_.displayName=E_;var O_=`PopoverArrow`,k_=L.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=l_(n);return(0,B.jsx)(np,{...i,...r,ref:t})});k_.displayName=O_;function A_(e){return e?`open`:`closed`}var j_=f_,M_=m_,N_=b_,P_=S_,F_=D_,I_=r(Ji(),1),L_=Object.defineProperty,R_=Object.defineProperties,z_=Object.getOwnPropertyDescriptors,B_=Object.getOwnPropertySymbols,V_=Object.prototype.hasOwnProperty,H_=Object.prototype.propertyIsEnumerable,U_=(e,t,n)=>t in e?L_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,q=(e,t)=>{for(var n in t||={})V_.call(t,n)&&U_(e,n,t[n]);if(B_)for(var n of B_(t))H_.call(t,n)&&U_(e,n,t[n]);return e},J=(e,t)=>R_(e,z_(t)),W_=(e=>t===void 0?typeof Proxy<`u`?new Proxy(e,{get:(e,n)=>(t===void 0?e:t)[n]}):e:t)(function(e){if(t!==void 0)return t.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)}),Y=(e,t)=>{var n={};for(var r in e)V_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&B_)for(var r of B_(e))t.indexOf(r)<0&&H_.call(e,r)&&(n[r]=e[r]);return n},G_=(e,t)=>{for(var n in t)L_(e,n,{get:t[n],enumerable:!0})},K_=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())});function q_(e){return H(`svg`,J(q({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,className:`size-5`},e),{children:H(`path`,{d:`M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z`})}))}var J_={borderWidths:{md:`1px`}},Y_=[5,10,20,35,50,65,80,95,98],X_=[...Y_],Z_=[...Y_];X_[4]=40,Z_[4]=60;var Q_={blue:{h:213,s:100,l:Y_},gray:{h:220,s:10,l:Y_},green:{h:141,s:90,l:X_},red:{h:9,s:90,l:Z_},yellow:{h:50,s:90,l:Z_}},$_={};for(let[e,{h:t,s:n,l:r}]of Object.entries(Q_))$_[e]=Object.fromEntries(r.map((e,r)=>[`${(r+1)*100}`,`hsl(${t} ${n}% ${e}%)`]));var ev=J(q({black:`hsl(0 0% 0%)`,white:`hsl(0 0% 100%)`},$_),{gray100:$_.gray[100],gray200:$_.gray[200],gray300:$_.gray[300],gray400:$_.gray[400],gray500:$_.gray[500],gray600:$_.gray[600],gray700:$_.gray[700],gray800:$_.gray[800],gray900:$_.gray[900],blue400:$_.blue[400],blue500:$_.blue[500],blue800:$_.blue[800],blue900:$_.blue[900],green400:$_.blue[400],green500:$_.green[500],green800:$_.green[800],red500:$_.red[500],transparent:`#FFFFFF00`,inherit:`inherit`}),tv={md:`8px`,lg:`20px`,round:`50%`},X=e=>`var(--fr-colors-${e})`,nv={negative:{100:X(`red-100`),200:X(`red-200`),300:X(`red-300`),400:X(`red-400`),500:X(`red-500`),600:X(`red-600`),700:X(`red-700`),800:X(`red-800`),900:X(`red-900`),background:X(`negative-500`),border:X(`negative-500`),foreground:X(`white`),surface:X(`negative-500`),active:{background:X(`negative-400`),border:X(`negative-400`),foreground:X(`white`),surface:X(`negative-400`)},focus:{background:X(`negative-500`),border:X(`negative-500`),foreground:X(`white`),surface:X(`negative-500`)},hover:{background:X(`negative-400`),border:X(`negative-400`),foreground:X(`white`),surface:X(`negative-400`)}},neutral:{100:X(`gray-100`),200:X(`gray-200`),300:X(`gray-300`),400:X(`gray-400`),500:X(`gray-500`),600:X(`gray-600`),700:X(`gray-700`),800:X(`gray-800`),900:X(`gray-900`),background:X(`white`),border:X(`neutral-800`),foreground:X(`black`),surface:X(`neutral-700`),active:{background:X(`white`),border:X(`neutral-900`),foreground:X(`black`),surface:X(`neutral-700`)},focus:{background:X(`white`),border:X(`neutral-900`),foreground:X(`black`),surface:X(`neutral-700`)},hover:{background:X(`white`),border:X(`neutral-900`),foreground:X(`black`),surface:X(`neutral-700`)}},positive:{100:X(`green-100`),200:X(`green-200`),300:X(`green-300`),400:X(`green-400`),500:X(`green-500`),600:X(`green-600`),700:X(`green-700`),800:X(`green-800`),900:X(`green-900`),background:X(`positive-500`),border:X(`positive-500`),foreground:X(`white`),surface:X(`positive-500`),active:{background:X(`positive-400`),border:X(`positive-400`),foreground:X(`white`),surface:X(`positive-400`)},focus:{background:X(`positive-500`),border:X(`positive-500`),foreground:X(`white`),surface:X(`positive-500`)},hover:{background:X(`positive-400`),border:X(`positive-400`),foreground:X(`white`),surface:X(`positive-400`)}},primary:{100:X(`blue-100`),200:X(`blue-200`),300:X(`blue-300`),400:X(`blue-400`),500:X(`blue-500`),600:X(`blue-600`),700:X(`blue-700`),800:X(`blue-800`),900:X(`blue-900`),background:X(`primary-500`),border:X(`primary-500`),foreground:X(`white`),surface:X(`primary-500`),active:{background:X(`primary-400`),border:X(`primary-400`),foreground:X(`white`),surface:X(`primary-400`)},focus:{background:X(`primary-500`),border:X(`primary-500`),foreground:X(`white`),surface:X(`primary-500`)},hover:{background:X(`primary-400`),border:X(`primary-400`),foreground:X(`white`),surface:X(`primary-400`)}},secondary:{100:X(`gray-100`),200:X(`gray-200`),300:X(`gray-300`),400:X(`gray-400`),500:X(`gray-500`),600:X(`gray-600`),700:X(`gray-700`),800:X(`gray-800`),900:X(`gray-900`),background:X(`white`),border:X(`secondary-800`),foreground:X(`black`),surface:X(`secondary-900`),active:{background:X(`secondary-900`),border:X(`secondary-800`),foreground:X(`black`),surface:X(`secondary-800`)},focus:{background:X(`secondary-900`),border:X(`secondary-800`),foreground:X(`black`),surface:X(`secondary-900`)},hover:{background:X(`secondary-900`),border:X(`secondary-800`),foreground:X(`black`),surface:X(`secondary-800`)}}},rv={md:`0px 4px 20px rgba(0, 0, 0, 0.1)`},iv=`px`,av=e=>typeof e==`number`?`${4*e}${iv}`:e,ov=Object.fromEntries([-20,-19,-18,-17,-16,-15,-14,-13,-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,-.5,0,.5,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,`auto`].map(e=>[e,av(e)])),sv=J(q(J(q({},J_),{colors:q(q({},ev),nv)}),{fontFamilies:{default:`inherit`},fontSizes:{xs:`12px`,sm:`14px`,md:`16px`,lg:`18px`,xl:`20px`,"2xl":`24px`,"3xl":`30px`,"4xl":`36px`,"5xl":`48px`},fontWeights:{thin:`100`,extralight:`200`,light:`300`,regular:`400`,medium:`500`,demibold:`600`,bold:`700`,extrabold:`800`,black:`900`},letterSpacings:{md:`0.02em`},lineHeights:{xs:`18px`,sm:`22px`,md:`24px`,lg:`26px`,xl:`30px`,"2xl":`38px`,"3xl":`46px`,"4xl":`60px`}}),{radii:tv,shadows:rv,space:ov});function cv(e,t=``,n=`.`){return Object.keys(e).reduce((r,i)=>{let a=`${t.length?`${t}${n}`:``}${i}`,o=e[i];return typeof o==`object`&&o&&!Array.isArray(o)?Object.assign(r,cv(o,a,n)):r[a]=o,r},{})}function lv(e){let t=cv(e,`--fr`,`-`);for(let[e,n]of Object.entries(t))if(e.indexOf(`.`)>-1){let r=e.replace(/\./g,`-`);t[r]=n,delete t[e]}return t}function uv(e,t=`--fr`){let n={};return Object.keys(e).forEach(r=>{let i=e[r],a=r.replace(/\./g,`-`);typeof i==`object`&&i&&!Array.isArray(i)?n[r]=uv(i,`${t}-${r}`):n[r]=`var(${t}-${a})`}),n}var dv=lv(sv),fv=uv(sv),pv=new Set([`alt`,`size`,`src`]),mv=I_.default.all.filter(e=>e.indexOf(`-`)!=0&&!pv.has(e)).map(e=>[e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase()),null]),hv=Object.fromEntries(mv),gv=cv(fv.colors),_v={color:gv,backgroundColor:gv,borderColor:gv,border:q(q({},fv.borderWidths),gv),borderRadius:fv.radii,borderWidth:fv.borderWidths,boxShadow:fv.shadows,fontFamily:fv.fontFamilies,fontSize:fv.fontSizes,fontWeight:fv.fontWeights,gap:fv.space,lineHeight:fv.lineHeights,margin:fv.space,marginBottom:fv.space,marginLeft:fv.space,marginRight:fv.space,marginTop:fv.space,padding:fv.space,paddingBottom:fv.space,paddingLeft:fv.space,paddingRight:fv.space,paddingTop:fv.space},vv=q(q({},hv),_v),yv={bg:[`backgroundColor`],m:[`margin`],mt:[`marginTop`],mr:[`marginRight`],mb:[`marginBottom`],ml:[`marginLeft`],mx:[`marginLeft`,`marginRight`],my:[`marginTop`,`marginBottom`],p:[`padding`],pt:[`paddingTop`],pr:[`paddingRight`],pb:[`paddingBottom`],pl:[`paddingLeft`],px:[`paddingLeft`,`paddingRight`],py:[`paddingTop`,`paddingBottom`]},bv=new Set([`active`,`disabled`,`focus`,`focusVisible`,`focusWithin`,`hover`]);function xv(e){return Array.isArray(e)?new Map(e.map(e=>[e,e])):typeof e==`object`&&e?new Map(Object.entries(e)):typeof e==`string`||typeof e==`number`?new Map([[e,e]]):new Map}var Sv=new Map(Object.entries(vv).map(([e,t])=>[e,xv(t)])),Cv=new Map(Object.entries(yv).map(([e,t])=>[e,new Set(t)])),wv=new Set([`height`,`width`]),Tv=new Set([`canvas`,`embed`,`iframe`,`img`,`input`,`object`,`video`]);function Ev(e){let[t,n]=e.split(`:`);return[t,bv.has(n)?n:null]}function Dv(e,t=`div`){let n=Object.assign({},e),r={};function i(e){if(e==null)return r;let t=`&:${e.replace(/[A-Z]/g,e=>`-${e.toLocaleLowerCase()}`)}`;return r[t]??(r[t]={}),r[t]}return Object.entries(n).forEach(([e,t])=>{let[r,i]=Ev(e),a=Cv.get(r);a!=null&&(a.forEach(e=>{let r=`${e}${i?`:`+i:``}`;n[r]=t}),delete n[e])}),Object.entries(n).forEach(([e,r])=>{let[a,o]=Ev(e),s=Sv.get(a);if(s!=null){if(r==null)delete n[e];else if(typeof r==`string`&&r.indexOf(` `)>-1){let e=r.split(` `);i(o)[a]=e.map(e=>s.get(e.toString())??e).join(` `)}else s.has(r.toString())?i(o)[a]=s.get(r.toString()):i(o)[a]=r;(typeof t!=`string`||!Tv.has(t)||!wv.has(a))&&delete n[e]}}),Object.keys(n).forEach(e=>{let t=e.substring(1);e.indexOf(`_`)===0&&Sv.has(t)&&(n[t]=n[e],delete n[e])}),{cssFromProps:r,unmatchedProps:n}}function Ov(){if(typeof window>`u`){let{JSDOM:e}=W_(`jsdom`);return new e(`<!DOCTYPE html>`).window}return window}function kv(e){return e?{__html:Za(Ov()).sanitize(e,{ALLOWED_TAGS:`b.strong.i.em.a.span.div.p.pre.s.u.br.img.code.li.ol.ul.table.tbody.thead.tr.td.th.h1.h2.h3.h4.video.p.style`.split(`.`),ALLOWED_ATTR:[`style`,`class`,`target`,`id`,`href`,`alt`,`src`,`controls`,`autoplay`,`loop`,`muted`,`playsinline`]})}:{__html:``}}function Av(e){return e&&`fr-${e}`}function jv(e){return e&&(Array.isArray(e)?e.filter(e=>e!=null).map(e=>jv(e)).join(` `):Av(e))}function Mv(e,t){var n=e,{as:r,children:i,className:a,css:o={},part:s}=n,c=Y(n,[`as`,`children`,`className`,`css`,`part`]);let l=r??`div`,{cssFromProps:u,unmatchedProps:d}=Dv(c,l),f=jv(s),m=a||f?p(a,f):void 0,h=[{boxSizing:`border-box`},u,o];return typeof i==`string`?H(l,J(q({className:m,css:h},d),{ref:t,dangerouslySetInnerHTML:kv(i)})):H(l,J(q({className:m,css:h},d),{ref:t,children:i}))}var Z=L.forwardRef(Mv),Nv={};G_(Nv,{Link:()=>py,Plain:()=>my,Primary:()=>dy,Secondary:()=>fy});var Pv={};G_(Pv,{Body1:()=>$v,Body2:()=>ey,Caption:()=>ty,Display1:()=>qv,Display2:()=>Jv,H1:()=>Yv,H2:()=>Xv,H3:()=>Zv,H4:()=>Qv});var Fv={};G_(Fv,{Body1:()=>Uv,Body2:()=>Wv,Caption:()=>Gv,Display1:()=>Lv,Display2:()=>Rv,H1:()=>zv,H2:()=>Bv,H3:()=>Vv,H4:()=>Hv});var Iv={color:`neutral.foreground`,fontFamily:`default`,margin:`0`},Lv=J(q({},Iv),{fontSize:`5xl`,fontWeight:`bold`,lineHeight:`4xl`}),Rv=J(q({},Iv),{fontSize:`4xl`,fontWeight:`bold`,lineHeight:`3xl`}),zv=J(q({},Iv),{fontSize:`3xl`,fontWeight:`demibold`,lineHeight:`2xl`}),Bv=J(q({},Iv),{fontSize:`2xl`,fontWeight:`demibold`,lineHeight:`xl`}),Vv=J(q({},Iv),{fontSize:`xl`,fontWeight:`demibold`,lineHeight:`lg`}),Hv=J(q({},Iv),{fontSize:`md`,fontWeight:`demibold`,lineHeight:`md`}),Uv=J(q({},Iv),{fontSize:`md`,fontWeight:`regular`,lineHeight:`md`}),Wv=J(q({},Iv),{fontSize:`sm`,fontWeight:`regular`,lineHeight:`sm`}),Gv=J(q({},Iv),{fontSize:`xs`,fontWeight:`regular`,lineHeight:`xs`}),Kv=Object.fromEntries([`Display1`,`Display2`,`H1`,`H2`,`H3`,`H4`,`Body1`,`Body2`,`Caption`].map(e=>{let t=[`H1`,`H2`,`H3`,`H4`].includes(e)?e.toLowerCase():`span`,n=L.forwardRef((n,r)=>{var i=n,{as:a=t,children:o}=i,s=Y(i,[`as`,`children`]);return H(Z,J(q(q({as:a},Fv[e]),s),{ref:r,children:o}))});return n.displayName=`Text.${e}`,[e,n]})),qv=Kv.Display1,Jv=Kv.Display2,Yv=Kv.H1,Xv=Kv.H2,Zv=Kv.H3,Qv=Kv.H4,$v=Kv.Body1,ey=Kv.Body2,ty=Kv.Caption,ny={};G_(ny,{Link:()=>oy,Plain:()=>sy,Primary:()=>iy,Secondary:()=>ay,loadingCSSStyle:()=>ly});var ry={borderWidth:`md`,borderRadius:`md`,borderStyle:`solid`,"cursor:disabled":`not-allowed`,display:`flex`,gap:`2`,padding:`2 4`,fontFamily:`inherit`},iy=J(q({},ry),{backgroundColor:`primary.surface`,borderColor:`primary.border`,color:`primary.foreground`,"backgroundColor:disabled":`primary.surface`,"backgroundColor:hover":`primary.hover.surface`,"opacity:disabled":`0.6`,"pointerEvents:disabled":`none`}),ay=J(q({},ry),{backgroundColor:`secondary.background`,borderColor:`secondary.border`,color:`secondary.foreground`,"backgroundColor:hover":`secondary.hover.background`,"backgroundColor:disabled":`secondary.background`,"opacity:disabled":`0.6`}),oy=J(q({},ry),{backgroundColor:`transparent`,borderColor:`transparent`,color:`primary.surface`,"color:hover":`primary.hover.surface`}),sy=J(q({},ry),{backgroundColor:`transparent`,borderColor:`transparent`,color:`neutral.foreground`}),cy=kt({from:{transform:`rotate(0turn)`},to:{transform:`rotate(1turn)`}}),ly={position:`relative`,color:`transparent`,"&:after":{content:`""`,position:`absolute`,width:`16px`,height:`16px`,top:0,left:0,right:0,bottom:0,margin:`auto`,border:`4px solid transparent`,borderTopColor:`var(--fr-colors-primary-foreground)`,borderRadius:`50%`,animation:cy+` 1s ease infinite`}};function uy(e){var t=e,{as:n,children:r,part:i,title:a,variant:o=`Primary`}=t,s=Y(t,[`as`,`children`,`part`,`title`,`variant`]);let c=o.toLocaleLowerCase();return U(Z,J(q(J(q({as:n??`button`,part:[`button-${c}`,i]},ny[o]),{css:q(q({},s.css??{}),s.loading?ly:{})}),s),{loading:void 0,children:[r,a&&H(Pv.Body2,{color:`inherit`,css:{WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`},flexGrow:`1`,fontWeight:`medium`,lineHeight:`20px`,part:`button-title`,textWrap:`nowrap`,children:a})]}))}function dy(e){var t=e,{children:n}=t;return H(uy,J(q({},Y(t,[`children`])),{variant:`Primary`,children:n}))}function fy(e){var t=e,{children:n}=t;return H(uy,J(q({},Y(t,[`children`])),{variant:`Secondary`,children:n}))}function py(e){var t=e,{children:n}=t;return H(uy,J(q({},Y(t,[`children`])),{variant:`Link`,children:n}))}function my(e){var t=e,{children:n}=t;return H(uy,J(q({},Y(t,[`children`])),{variant:`Plain`,children:n}))}var Q={};G_(Q,{Column:()=>gy,Row:()=>hy});var hy=L.forwardRef((e,t)=>H(Z,J(q({display:`flex`,flexDirection:`row`},e),{ref:t}))),gy=L.forwardRef((e,t)=>H(Z,J(q({display:`flex`,flexDirection:`column`},e),{ref:t})));function _y(e){var t=e,{dismissible:n,flowId:r,part:i}=t,a=Y(t,[`dismissible`,`flowId`,`part`]);return H(Ub,J(q({as:null,flowId:r},a),{children:({handleDismiss:e,handlePrimary:t,handleSecondary:r,parentProps:{containerProps:a},step:o})=>{let s=o.props??{},c=o.primaryButton?.title??o.primaryButtonTitle,l=o.secondaryButton?.title??o.secondaryButtonTitle,u=o.$state.blocked;return U($,J(q(q({alignItems:`center`,borderWidth:`md`,display:`flex`,flexDirection:`row`,gap:3,justifyContent:`flex-start`,part:[`banner`,i]},a),s),{children:[o.imageUri&&H(Z,{as:`img`,part:`image`,src:o.imageUri,style:{height:40,width:40,alignSelf:`center`}}),U(Q.Column,{marginInlineEnd:`auto`,part:`banner-title-wrapper`,children:[H($.Title,{part:`title`,children:o.title}),H($.Subtitle,{part:`subtitle`,children:o.subtitle})]}),H($.Secondary,{disabled:u,title:l,onClick:r}),H($.Primary,{disabled:u,title:c,onClick:t}),n&&H($.Dismiss,{onClick:e})]}))}}))}G_({},{Carousel:()=>My,Collapsible:()=>Ky,CollapsibleStep:()=>Ny});var vy={};G_(vy,{Bar:()=>yy,Dots:()=>by,Fraction:()=>xy,Segments:()=>Sy});function yy(e){var t=e,{current:n,total:r}=t,i=Y(t,[`current`,`total`]);let a=r>0?Math.min(n/r,1):0,o=a===0?`10px`:`${100*a}%`;return H(Z,J(q({part:`progress-bar`,backgroundColor:`neutral.800`,borderRadius:`md`,height:`10px`},i),{children:H(Z,{backgroundColor:`primary.surface`,part:`progress-bar-fill`,borderRadius:`md`,height:`100%`,style:{width:o},transition:`width 300ms ease-out`})}))}function by(e){var t=e,{current:n,total:r}=t,i=Y(t,[`current`,`total`]);if(r==1)return null;let a=[...Array(r)].map((e,t)=>H(Z,{as:`circle`,r:4,cx:4+16*t,cy:`4px`,fill:n-1===t?fv.colors.blue500:fv.colors.blue800},t));return H(Z,J(q({as:`svg`,height:`8px`,part:`progress-dots`,viewBox:`0 0 ${16*r-8} 8`,width:16*r-8},i),{children:a}))}function xy(e){var t=e,{current:n,total:r}=t,i=Y(t,[`current`,`total`]);return H(Pv.Body2,J(q({part:`progress-fraction`},i),{children:`${n}/${r}`}))}function Sy(e){var t=e,{current:n,total:r}=t,i=Y(t,[`current`,`total`]);let a=[...Array(r)].map((e,t)=>H(Z,{backgroundColor:n-1===t?`primary.surface`:`blue800`,borderRadius:`md`,flexGrow:1,height:`100%`},t));return H(Q.Row,J(q({gap:1,height:`10px`,part:`progress-segments`},i),{children:a}))}function Cy(e){return H(`svg`,J(q({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`,fill:`currentColor`,className:`size-4`},e),{children:H(`path`,{fillRule:`evenodd`,d:`M8 1a3.5 3.5 0 0 0-3.5 3.5V7A1.5 1.5 0 0 0 3 8.5v5A1.5 1.5 0 0 0 4.5 15h7a1.5 1.5 0 0 0 1.5-1.5v-5A1.5 1.5 0 0 0 11.5 7V4.5A3.5 3.5 0 0 0 8 1Zm2 6V4.5a2 2 0 1 0-4 0V7h4Z`,clipRule:`evenodd`})}))}function wy(){return H(Z,{as:`svg`,color:`primary.foreground`,fill:`none`,height:`8px`,part:`check-icon`,viewBox:`0 0 10 8`,width:`10px`,children:H(`path`,{d:`M1 4.34664L3.4618 6.99729L3.4459 6.98017L9 1`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})})}function Ty(e){var t=e,{checked:n=!1}=t;return H(Z,J(q({backgroundColor:`inherit`,borderWidth:`md`,borderStyle:`solid`,borderColor:`neutral.border`,borderRadius:`100%`,padding:`0`,part:`check-indicator`,position:`relative`,height:`22px`,width:`22px`},Y(t,[`checked`])),{children:n&&H(Z,{alignItems:`center`,bg:`green500`,borderWidth:`md`,borderStyle:`solid`,borderColor:`green500`,borderRadius:`100%`,display:`flex`,height:`calc(100% + 2px)`,justifyContent:`center`,left:`-1px`,part:`check-indicator-checked`,position:`absolute`,top:`-1px`,width:`calc(100% + 2px)`,children:H(wy,{})})}))}function Ey(e,{onPrimary:t,onSecondary:n}={}){let{navigate:r}=(0,L.useContext)(Fb),i={"flow.back":()=>e.flow.back(),"flow.complete":()=>e.flow.complete(),"flow.forward":()=>e.flow.forward(),"flow.restart":()=>e.flow.restart(),"flow.skip":()=>e.flow.skip(),"flow.start":()=>e.flow.start(),"step.complete":()=>e.complete(),"step.skip":()=>e.skip(),"step.reset":()=>e.reset(),"step.start":()=>e.start()};return{handlePrimary:(0,L.useCallback)((n,a,o=!0)=>K_(this,null,function*(){if((yield t?.(e,n,a))===!1)return n.preventDefault(),!1;if(e.primaryButton!=null){let t=e.primaryButton.action===!1?!1:i[e.primaryButton.action];typeof t==`function`?t():t!==!1&&(yield e.complete(a,o)),e.primaryButton.uri!=null&&r(e.primaryButton.uri,e.primaryButton.target)}else yield e.complete(a,o),e.primaryButtonUri!=null&&r(e.primaryButtonUri,e.primaryButtonUriTarget);return!0}),[e]),handleSecondary:(0,L.useCallback)((t,a)=>K_(this,null,function*(){if((yield n?.(e,t,a))===!1)return t.preventDefault(),!1;if(e.secondaryButton!=null){let t=e.secondaryButton.action===!1?!1:i[e.secondaryButton.action];typeof t==`function`?t():t!==!1&&e.complete(a),e.secondaryButton.uri!=null&&r(e.secondaryButton.uri,e.secondaryButton.target)}else e.complete(a),e.secondaryButtonUri!=null&&r(e.secondaryButtonUri,e.secondaryButtonUriTarget);return!0}),[e])}}function Dy({onPrimary:e,onSecondary:t,step:n}){let{handlePrimary:r,handleSecondary:i}=Ey(n,{onPrimary:e,onSecondary:t}),{blocked:a,completed:o,skipped:s}=n.$state,c=o||s||!a?H(Ty,{checked:o||s,marginLeft:`auto`}):H(Z,{as:Cy,height:`22px`,marginLeft:`auto`,width:`22px`});return U($,{borderWidth:1,containerType:`inline-size`,css:{"@container (max-width: 600px)":{flexBasis:`85%`},"@container (min-width: 601px) and (max-width: 900px)":{flexBasis:`45%`},"@container (min-width: 1200px)":{flexBasis:`25%`}},flex:`0 0 30%`,gap:`2`,p:`4`,part:`carousel-step`,userSelect:`none`,disabled:a,opacity:a?.5:1,children:[U(Q.Row,{marginBottom:`2`,part:`carousel-step-header`,children:[n.iconUri&&H($.Media,{borderRadius:`0`,height:`24px`,src:n.iconUri,width:`24px`}),c]}),H($.Title,{children:n.title}),H($.Subtitle,{children:n.subtitle}),U(Q.Row,{css:{"@container (max-width: 200px)":{"& > button":{flexBasis:`50%`,flexGrow:1},flexDirection:`column-reverse`}},gap:`2`,marginTop:`auto`,paddingTop:`3`,part:`carousel-step-footer`,children:[H($.Secondary,{disabled:a,onClick:i,title:n.secondaryButton?.title}),H($.Primary,{disabled:a,onClick:r,title:n.primaryButton?.title})]})]})}function Oy(e){return H(`svg`,J(q({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,className:`size-5`},e),{children:H(`path`,{fillRule:`evenodd`,d:`M3 10a.75.75 0 0 1 .75-.75h10.638L10.23 5.29a.75.75 0 1 1 1.04-1.08l5.5 5.25a.75.75 0 0 1 0 1.08l-5.5 5.25a.75.75 0 1 1-1.04-1.08l4.158-3.96H3.75A.75.75 0 0 1 3 10Z`,clipRule:`evenodd`})}))}function ky(e){return H(`svg`,J(q({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,className:`size-5`},e),{children:H(`path`,{fillRule:`evenodd`,d:`M17 10a.75.75 0 0 1-.75.75H5.612l4.158 3.96a.75.75 0 1 1-1.04 1.08l-5.5-5.25a.75.75 0 0 1 0-1.08l5.5-5.25a.75.75 0 1 1 1.04 1.08L5.612 9.25H16.25A.75.75 0 0 1 17 10Z`,clipRule:`evenodd`})}))}var Ay=kt`
from {
opacity: 0;
}
to {
opacity: 1;
}
`;function jy({flow:e,sort:t,onPrimary:n,onSecondary:r}){let[i,a]=(0,L.useState)(),[o]=(0,L.useState)({align:`start`,container:`.fr-carousel-content`,skipSnaps:!0,slides:`.fr-carousel-step`,startIndex:t==`completed-last`?0:Array.from(e.steps.values()).find(e=>!e.$state.completed&&!e.$state.skipped)?.order??0}),[s,c]=Ks(o),[l,u]=(0,L.useState)(),[d,f]=(0,L.useState)();(0,L.useLayoutEffect)(()=>{c&&(l??u(c.canScrollNext()),d??f(c.canScrollPrev()),c.on(`select`,()=>{u(c.canScrollNext()),f(c.canScrollPrev())}))},[c]),(0,L.useEffect)(()=>{if(!i){let n=Array.from(e.steps.values()),r=n.filter(e=>e.$state.completed||e.$state.skipped).sort((e,t)=>e.order-t.order),i=n.filter(e=>!e.$state.completed&&!e.$state.skipped).sort((e,t)=>e.order-t.order);a(t===`completed-last`?[...i,...r].map(e=>e.id):n.map(e=>e.id))}},[]);let p=e.getNumberOfCompletedSteps(),m=e.getNumberOfAvailableSteps();return i?U(Ui,{children:[U(Q.Row,{css:{"@container (max-width: 750px)":{flexDirection:`column`,gap:fv.space[5]}},justifyContent:`space-between`,part:`carousel-header`,children:[U(Q.Column,{part:`carousel-header-content`,children:[H(Pv.H3,{children:e.title}),H(Pv.Body2,{color:`neutral.400`,children:e.subtitle})]}),U(Q.Row,{alignItems:`center`,gap:2,part:`progress`,children:[U(Pv.Body2,{fontWeight:`demibold`,part:`progress-text`,children:[p,`/`,m]}),H(yy,{current:p,total:m,minWidth:`200px`})]})]}),U(Z,{margin:`0 ${fv.space[-4]}`,overflow:`hidden`,part:`carousel-wrapper`,px:`4`,position:`relative`,ref:s,children:[H(Q.Row,{gap:4,part:`carousel-content`,children:Array.from(e.steps.values()).filter(e=>e.$state.visible).sort((e,t)=>i.indexOf(e.id)-i.indexOf(t.id)).map(e=>H(Dy,{onPrimary:n,onSecondary:r,step:e},e.id))}),d&&H(Q.Column,{animation:`${Ay} 300ms ease-out`,background:`linear-gradient(to right, rgba(255, 255, 255, 0.5), transparent 50%)`,bottom:`0`,left:`0`,justifyContent:`center`,paddingLeft:`3`,part:`carousel-prev-wrapper`,position:`absolute`,top:`0`,children:H(Nv.Plain,{border:`1px solid neutral.border`,borderRadius:`100%`,boxShadow:`md`,backgroundColor:`neutral.background`,color:`primary.surface`,onClick:()=>c.scrollPrev(),padding:`2`,children:H(ky,{height:`24px`,width:`24px`})})}),l&&H(Q.Column,{animation:`${Ay} 300ms ease-out`,background:`linear-gradient(to left, rgba(255, 255, 255, 0.5), transparent 50%)`,bottom:`0`,justifyContent:`center`,paddingRight:`3`,part:`carousel-next-wrapper`,position:`absolute`,right:`0`,top:`0`,children:H(Nv.Plain,{border:`1px solid neutral.border`,borderRadius:`100%`,boxShadow:`md`,backgroundColor:`neutral.background`,color:`primary.surface`,onClick:()=>c.scrollNext(),padding:`2`,children:H(Oy,{height:`24px`,width:`24px`})})})]})]}):null}function My(e){var t=Y(e,[]);return H(Ub,J(q({as:$,borderWidth:1,containerType:`inline-size`,p:`4`,part:`carousel`},t),{children:e=>H(jy,q(q({},t),e))}))}var Ny={};G_(Ny,{Content:()=>zy,Root:()=>By,Trigger:()=>Vy});function Py(e){return H(`svg`,J(q({xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,strokeWidth:1.5,stroke:`currentColor`,className:`size-6`},e),{children:H(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,d:`m19.5 8.25-7.5 7.5-7.5-7.5`})}))}var Fy=kt`
from {
height: 0;
opacity: 0;
}
to {
height: var(--radix-collapsible-content-height);
opacity: 1;
}
`,Iy=kt`
from {
height: var(--radix-collapsible-content-height);
opacity: 1;
}
to {
height: 0;
opacity: 0;
}
`,Ly=()=>H(Z,{as:`svg`,color:`primary.foreground`,width:`10px`,height:`8px`,viewBox:`0 0 10 8`,fill:`none`,children:H(`path`,{d:`M1 4.34664L3.4618 6.99729L3.4459 6.98017L9 1`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`})});function Ry({checked:e=!1}){return H(Z,{backgroundColor:`inherit`,borderWidth:`md`,borderStyle:`solid`,borderColor:`neutral.border`,borderRadius:`100%`,padding:`0`,part:`field-radio-value`,position:`relative`,height:`22px`,width:`22px`,children:e&&H(Z,{alignItems:`center`,bg:`green500`,borderWidth:`md`,borderStyle:`solid`,borderColor:`green500`,borderRadius:`100%`,display:`flex`,height:`calc(100% + 2px)`,justifyContent:`center`,left:`-1px`,part:`field-radio-indicator`,position:`absolute`,top:`-1px`,width:`calc(100% + 2px)`,children:H(Ly,{})})})}function zy({children:e}){return H(sc,{asChild:!0,children:U(Q.Column,{css:{'&[data-state="open"]':{animation:`${Fy} 300ms ease-out`},'&[data-state="closed"]':{animation:`${Iy} 300ms ease-out`},overflow:`hidden`},gap:5,part:`collapsible-content`,children:[H(Z,{}),e]})})}function By(e){var t=e,{children:n,disabled:r=!1,onOpenChange:i=()=>{},open:a=!1}=t,o=Y(t,[`children`,`disabled`,`onOpenChange`,`open`]);return H(ac,{asChild:!0,disabled:r,open:a,onOpenChange:i,children:H($,J(q({borderWidth:`md`,css:{'&[data-state="open"] .fr-collapsible-step-icon':{transform:`rotate(180deg)`}},gap:0,part:`collapsible-step`},o),{children:n}))})}function Vy({isCompleted:e,isBlocked:t,title:n}){return H(oc,{asChild:!0,children:U(Q.Row,{alignItems:`center`,justifyContent:`space-between`,margin:-5,padding:5,zIndex:1,opacity:t?.4:1,disabled:t,pointerEvents:t?`none`:`auto`,cursor:t?`not-allowed`:`pointer`,part:`collapsible-header`,children:[U(Q.Row,{alignItems:`center`,gap:2,children:[H(Ry,{checked:e}),H(Pv.Body2,{fontWeight:`demibold`,userSelect:`none`,part:`collapsible-title`,children:n})]}),H(Z,{as:Py,color:`neutral.100`,css:{"& path":{vectorEffect:`non-scaling-stroke`}},display:`block`,height:`16px`,order:2,part:`collapsible-step-icon`,width:`16px`})]})})}var Hy=(0,L.createContext)({onPrimary:()=>{},onSecondary:()=>{},openStepId:null,setOpenStepId:()=>{},stepTypes:{}});function Uy({handlePrimary:e,handleSecondary:t,open:n,onOpenChange:r,step:i}){let{$state:{blocked:a,completed:o,skipped:s},subtitle:c,title:l}=i,u=i.primaryButton?.title??i.primaryButtonTitle,d=i.secondaryButton?.title??i.secondaryButtonTitle,f=i.props??{},p=!!a;return U(By,J(q({open:n,onOpenChange:r},f),{children:[H(Vy,{isBlocked:i.$state.blocked,isCompleted:o||s,title:l}),U(zy,{children:[H($.Media,{aspectRatio:2.5,objectFit:`cover`,overflowClipMargin:`unset`,src:i.videoUri??i.imageUri,transform:`translate3d(0, 0, 1px)`,type:i.videoUri?`video`:`image`}),H($.Subtitle,{color:`neutral.400`,children:c}),U(Q.Row,{gap:3,part:`collapsible-footer`,children:[H($.Secondary,{title:d,onClick:t}),H($.Primary,{disabled:p,title:u,onClick:e})]})]})]}))}var Wy={default:Uy};function Gy(e){var t=e,{flow:n,step:r}=t,i=Y(t,[`flow`,`step`]);let{onPrimary:a,onSecondary:o,openStepId:s,setOpenStepId:c,stepTypes:l}=(0,L.useContext)(Hy),{handlePrimary:u,handleSecondary:d}=Ey(r,{onPrimary:a,onSecondary:o}),f=(s??n.getCurrentStep().id)===r.id,p=l[r.type]??Uy;function m(e){return K_(this,null,function*(){c(e?r.id:``),e&&!r.$state.completed&&(yield r.start(),c(null))})}return H(p,J(q({flow:n,onOpenChange:m,open:f,step:r},i),{handlePrimary:u,handleSecondary:d}),r.id)}function Ky(e){var t=e,{dismissible:n,flowId:r,onPrimary:i,onSecondary:a,part:o,stepTypes:s={}}=t,c=Y(t,[`dismissible`,`flowId`,`onPrimary`,`onSecondary`,`part`,`stepTypes`]);let[l,u]=(0,L.useState)(null),d=q(q({},Wy),s);return H(Hy.Provider,{value:{openStepId:l,setOpenStepId:u,onPrimary:i,onSecondary:a,stepTypes:d},children:H(Ub,J(q({as:$,borderWidth:`md`,flowId:r,part:[`checklist`,o]},c),{children:e=>{var t=e,{flow:r,handleDismiss:i}=t,a=Y(t,[`flow`,`handleDismiss`]);let o=Array.from(r.steps.entries()).filter(([,e])=>e.$state.visible===!0).map(([,e])=>H(Gy,J(q({flow:r,handleDismiss:i},a),{step:e}),e.id)),s=r.getNumberOfCompletedSteps(),c=r.getNumberOfAvailableSteps();return U(Ui,{children:[U(Q.Column,{gap:2,children:[H($.Header,{dismissible:n,handleDismiss:i,part:`checklist-header`,subtitle:r.subtitle,title:r.title}),U(Q.Row,{alignItems:`center`,gap:2,children:[U(Pv.Body2,{fontWeight:`demibold`,children:[s,`/`,c]}),H(yy,{current:s,total:c,flexGrow:1})]})]}),o]})}}))})}var qy=new Set([`required`,`min`,`max`,`minLength`,`maxLength`,`pattern`]);function Jy({fieldComponent:e,control:t,fieldData:n,submit:r}){let i=kc();n.pattern!=null&&(typeof n.pattern==`string`?n.pattern=new RegExp(n.pattern.replace(/^\/|\/$/g,``)):typeof n.pattern==`object`&&typeof n.pattern.value==`string`&&(n.pattern.value=new RegExp(n.pattern.value.replace(/^\/|\/$/g,``))));let a=Object.fromEntries(Object.entries(n).filter(([e])=>qy.has(e)));return H(e,J(q({},Vc({name:n.id,control:t,rules:a})),{fieldData:n,formContext:i,submit:r}))}function Yy({fieldTypes:e,handleDismiss:t,handlePrimary:n,handleSecondary:r,parentProps:{dismissible:i},step:a}){let{__readOnly:o}=(0,L.useContext)(Fb),s=(0,L.useMemo)(()=>a.fields?.filter(t=>e[t.type]!=null&&t.id),[a.fields,e]),c=Ml({delayError:2e3,mode:`onChange`,defaultValues:s.reduce((e,t)=>(e[t.id]=t.value??``,e),{})});(0,L.useEffect)(()=>{c.formState.isDirty||c.reset(s.reduce((e,t)=>(e[t.id]=t.value??``,e),{}))},[s]);let[l,u]=(0,L.useState)(!1),d=[],{control:f,handleSubmit:p}=c,m=a.props??{};function h(e,t){u(!0),n(t,e,o===!0).then(()=>u(!1))}s.forEach(t=>{e[t.type]!=null&&d.push(H(Jy,{control:f,fieldComponent:e[t.type],fieldData:t,submit:p(h)},`${a.flow.id}-${t.id}`))});let g=a.primaryButton?.title??a.primaryButtonTitle,_=a.secondaryButton?.title??a.secondaryButtonTitle,v=!!(a.$state.blocked||!c.formState.isValid);return(0,L.useEffect)(()=>{c.clearErrors()},[a]),U(Q.Column,J(q({gap:5,part:`form-step`},m),{children:[H($.Header,{dismissible:i,handleDismiss:t,part:`form-step-header`,subtitle:a.subtitle,title:a.title}),H(Ac,J(q({},c),{children:d})),U(Q.Row,{part:`form-step-footer`,justifyContent:`flex-end`,gap:3,children:[_&&H(Nv.Secondary,{onClick:r,title:_}),H(Nv.Primary,{disabled:v||l,onClick:p(h),title:g??`Submit`,loading:l})]},`form-footer-${a.id}`)]}))}function Xy({error:e}){var t;return(t=e?.message)!=null&&t.length?H(Pv.Caption,{color:`red500`,display:`block`,part:`field-error`,mt:`1`,textAlign:`end`,children:e?.message}):null}function Zy({children:e,id:t,required:n=!1}){return U(Pv.Body2,{as:`label`,htmlFor:t,part:`field-label`,fontWeight:`medium`,mb:`2`,display:`block`,children:[e,H(Z,{part:`field-label-required`,display:`inline`,children:n&&`*`})]})}var Qy={backgroundColor:`neutral.background`,borderColor:`neutral.border`,borderStyle:`solid`,borderWidth:`md`,borderRadius:`md`},$y=J(q({},Qy),{px:`4`,py:`2`,display:`block`,outline:`none`,width:`100%`}),eb={alignItems:`center`,bg:`primary.surface`,borderWidth:`md`,borderStyle:`solid`,borderColor:`primary.border`,borderRadius:`100%`,display:`flex`,height:`calc(100% + 2px)`,justifyContent:`center`,left:`-1px`,position:`absolute`,top:`-1px`,width:`calc(100% + 2px)`,color:`primary.foreground`};function tb({children:e,field:t,fieldData:n,fieldState:r}){let{id:i,label:a,placeholder:o}=n,{error:s}=r,c=J(q(q(q({id:i},t),o?{placeholder:o}:{}),$y),{"aria-invalid":!!s,value:t.value??``});return U(Z,{part:`field`,children:[H(Zy,{id:i,required:!!n.required,children:a}),e(c),H(Xy,{error:s})]})}function nb(e){return H(`svg`,J(q({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,className:`size-5`},e),{children:H(`path`,{fillRule:`evenodd`,d:`M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z`,clipRule:`evenodd`})}))}var rb=L.forwardRef(({label:e,value:t},n)=>U(Z,{as:`label`,backgroundColor:`neutral.background`,borderColor:`neutral.border`,borderRadius:`md`,borderStyle:`solid`,borderWidth:`md`,display:`flex`,htmlFor:t,justifyContent:`space-between`,part:`field-radio`,px:4,py:2,children:[H(Pv.Body2,{part:`field-radio-label`,children:e}),H(ku,{id:t,value:t,ref:n,asChild:!0,children:H(Z,{as:`button`,backgroundColor:`inherit`,borderWidth:`md`,borderStyle:`solid`,borderColor:`neutral.border`,borderRadius:`100%`,flex:`0 0 auto`,padding:`0`,part:`field-radio-value`,position:`relative`,height:`24px`,width:`24px`,children:H(Z,J(q({as:Au},eb),{children:H(nb,{height:`14`,width:`14`})}))})})]}));function ib(e){let{field:{onChange:t,value:n},fieldData:{options:r=[]}}=e,i=r.map(({label:e,value:t})=>H(rb,{value:t,label:e},t));return H(tb,J(q({},e),{children:()=>H(Ou,{value:n,onValueChange:t,asChild:!0,children:H(Q.Column,{gap:2,part:`field-radio-group`,children:i})})}))}function ab(e){return H(`svg`,J(q({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,className:`size-5`},e),{children:H(`path`,{fillRule:`evenodd`,d:`M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z`,clipRule:`evenodd`})}))}function ob(e){let{field:{onChange:t,value:n},fieldData:{options:r=[]}}=e,[i,a]=L.useState([]);function o(e){let n=[];n=i.includes(e)?[...i.filter(t=>t!==e)]:[...i,e],a(n),t(n)}return H(tb,J(q({},e),{children:()=>H(Q.Column,{gap:2,part:`field-select-multiple`,children:r.map(({label:e,value:t})=>H(uh,{value:i.includes(t)?t:void 0,onCheckedChange:()=>o(t),asChild:!0,children:U(Z,{as:`label`,backgroundColor:`neutral.background`,borderColor:`neutral.border`,borderRadius:`md`,borderStyle:`solid`,borderWidth:`md`,display:`flex`,htmlFor:t,justifyContent:`space-between`,part:`field-check`,px:4,py:2,children:[H(Pv.Body2,{part:`field-check-label`,children:e}),H(Z,{as:`button`,backgroundColor:`inherit`,borderWidth:`md`,borderStyle:`solid`,borderColor:`neutral.border`,borderRadius:`100%`,flex:`0 0 auto`,id:t,padding:`0`,part:`field-check-value`,position:`relative`,height:`24px`,width:`24px`,children:H(dh,{asChild:!0,children:H(Z,J(q({},eb),{children:H(nb,{height:`14`,width:`14`})}))})})]})},t))})}))}var sb=L.forwardRef(({label:e,value:t},n)=>H(Zm,{value:t,ref:n,asChild:!0,children:H(Z,{"backgroundColor:hover":`neutral.900`,borderRadius:`md`,outline:`none`,part:`field-select-option`,px:`3`,py:`2`,children:H(Qm,{asChild:!0,children:H(Pv.Body2,{part:`field-select-option-label`,children:e})})})}));function cb(e){let{field:{onChange:t,value:n},fieldData:{options:r=[],placeholder:i}}=e,a=r.map(({label:e,value:t})=>H(sb,{value:t,label:e},t));return e.fieldData.multiple?H(ob,q({},e)):H(tb,J(q({},e),{children:()=>U(Wm,{value:n,onValueChange:t,children:[H(Gm,{asChild:!0,children:U(Pv.Body2,J(q({},$y),{alignItems:`center`,display:`flex`,justifyContent:`space-between`,part:`field-select`,children:[H(Km,{placeholder:i??`Select one`}),H(qm,{children:H(Z,{as:ab,color:`neutral.100`,display:`block`,height:`24px`,part:`field-select-icon`,width:`24px`})})]}))}),H(Jm,{children:H(Ym,{position:`popper`,sideOffset:4,asChild:!0,children:H(Z,J(q({},$y),{boxShadow:`md`,maxHeight:`var(--radix-select-content-available-height)`,p:`1`,part:`field-select-options`,width:`var(--radix-popper-anchor-width)`,zIndex:`99999`,children:H(Xm,{children:a})}))})})]})}))}function lb(e){return H(tb,J(q({},e),{children:e=>H(Pv.Body2,q({as:`input`,part:`field-text`,type:`text`},e))}))}function ub(e){return H(tb,J(q({},e),{children:e=>H(Pv.Body2,q({as:`textarea`,part:`field-textarea`},e))}))}function db(e){let{field:{onChange:t,value:n},fieldData:{options:r,label:i,id:a=[]}}=e;return U(Z,{part:`field`,display:`flex`,gap:2,alignItems:`center`,children:[H(uh,{defaultChecked:!0,onCheckedChange:t,value:n,checked:n===!0,asChild:!0,children:H(Z,J(q({},Qy),{as:`button`,width:`25px`,minWidth:`25px`,height:`25px`,justifyContent:`center`,alignItems:`center`,display:`flex`,"backgroundColor:hover":`neutral.900`,part:`field-checkbox`,id:a,children:H(dh,{asChild:!0,children:H(Z,{width:`20px`,height:`20px`,display:`flex`,alignItems:`center`,justifyContent:`center`,children:H(nb,{height:`14`,fill:`currentColor`})})})}))}),H(Pv.Body2,{part:`field-checkbox-label`,as:`label`,htmlFor:a,children:i})]})}var fb={checkbox:db,radio:ib,select:cb,text:lb,textarea:ub};function pb(e){var t=e,{fieldTypes:n={},flowId:r,part:i}=t,a=Y(t,[`fieldTypes`,`flowId`,`part`]);let o=Object.assign({},fb,n);return H(Ub,J(q({flowId:r,part:[`form`,i]},a),{children:e=>H(Yy,q({fieldTypes:o},e))}))}G_({},{NPS:()=>hb});function mb({field:e,fieldData:t,submit:n}){let r=[...Array(11)].map((t,r)=>H(e.value===r?Nv.Primary:Nv.Secondary,{borderWidth:`1px`,onClick:()=>{e.onChange(r),n()},title:`${r}`,css:{".fr-button-title":{fontSize:`15px`}}},r));return U(Q.Column,{gap:2,children:[H(Q.Row,{gap:2,part:`field-nps`,css:{"@media (min-width: 660px)":{flexWrap:`nowrap`,justifyContent:`space-between`},flexWrap:`wrap`,justifyContent:`center`},children:r}),U(Q.Row,{justifyContent:`space-between`,part:`field-nps-label`,children:[H(Pv.Caption,{part:`field-nps-left-label`,color:`neutral.400`,children:t.negativeLabel??`Not likely at all`}),H(Pv.Caption,{part:`field-nps-right-label`,color:`neutral.400`,children:t.positiveLabel??`Extremely likely`})]})]})}function hb(e){var t=e,{as:n=Qb,flowId:r,fieldTypes:i,part:a}=t,o=Y(t,[`as`,`flowId`,`fieldTypes`,`part`]);let{flow:s}=zb(r);return H(pb,q({alignSelf:`end`,as:n,flowId:r,fieldTypes:q({nps:mb},i),modal:!1,onEscapeKeyDown:e=>{typeof o.onEscapeKeyDown==`function`&&o.onEscapeKeyDown(e),e.defaultPrevented||s.skip()},part:[`nps`,a],css:J(q({},!s||s.getCurrentStepIndex()==0?{".fr-form-step-footer":{display:`none`}}:{}),{".fr-form":{padding:`20px`,"@media (min-width: 660px)":{minWidth:`600px`},minWidth:`100%`},".fr-form-step":{gap:`14px`,"@media (min-width: 660px)":{gap:`1`}}})},o))}function gb(e,t){var n=e,{children:r,part:i}=n,a=Y(n,[`children`,`part`]);return H(zh,{forwardProps:!0,ref:t,children:H(Z,J(q({backgroundColor:`black`,inset:`0`,opacity:`0.5`,part:[`overlay`,i],position:`absolute`},a),{children:r}))})}var _b=L.forwardRef(gb),vb=kt({"0%":{opacity:.5,transform:`scale(0.5)`},"50%":{opacity:0,transform:`scale(1)`},"100%":{opacity:0,transform:`scale(1)`}});function yb(e){var t=e,{part:n=``}=t,r=Y(t,[`part`]);return U(Z,J(q({borderRadius:`24px`,height:`24px`,part:`ping-wrapper ${n}`,position:`relative`,width:`24px`},r),{children:[H(Z,{backgroundColor:`primary.surface`,animation:`2s ease-out infinite ${vb}`,borderRadius:`24px`,height:`48px`,left:`-12px`,part:`ping-pulse`,pointerEvents:`none`,position:`absolute`,top:`-12px`,transformOrigin:`center center`,width:`48px`}),H(Z,{backgroundColor:`primary.surface`,borderRadius:`12px`,height:`24px`,left:`0`,part:`ping`,position:`absolute`,top:`0`,width:`24px`})]}))}function bb({maxX:e,maxY:t,radius:n,x1:r,x2:i,y1:a,y2:o}){return n>0?`path("${[`M${r+n},${a}`,`H${i-n}`,`A${n} ${n} 0,0,1 ${i} ${a+n}`,`V${o-n}`,`A${n} ${n} 0,0,1 ${i-n} ${o}`,`H${r+n}`,`A${n} ${n} 0,0,1 ${r} ${o-n}`,`V${t}`,`H${e}`,`V0`,`H0`,`V${t}`,`H${r}`,`V${a+n}`,`A${n} ${n} 0,0,1 ${r+n} ${a}`,`Z`].join(` `)}")`:`path("M${r},${a} H${i} V${o} H${r} V${t} H${e} V0 H0 V${t} H${r} Z")`}function xb(e){if(!window||!(`nodeType`in e))return 0;let t=Number(window.getComputedStyle(e).borderRadius.replace(/\D/g,``));return Number.isNaN(t)?0:t}function Sb(e){var t=e,{anchor:n,part:r,style:i={}}=t,a=Y(t,[`anchor`,`part`,`style`]);let[o,s]=(0,L.useState)({maxX:0,maxY:0,radius:0,x1:0,x2:0,y1:0,y2:0}),{refs:c}=Tg({middleware:[{name:`clipPath`,fn({elements:e,rects:t}){return s({maxX:e.floating.clientWidth,maxY:e.floating.clientHeight,radius:xb(e.reference),x1:t.reference.x,x2:t.reference.x+t.reference.width,y1:t.reference.y,y2:t.reference.y+t.reference.height}),{}}}],open:!0,placement:`top-center`,transform:!1,whileElementsMounted:lf});return(0,L.useEffect)(()=>{let e=document.querySelector(n);e==null?console.debug(`[frigade] Spotlight: No anchor found for selector: ${n}`):c.setReference(e)},[n]),H(_b,q({part:[`spotlight`,r],ref:c.setFloating,style:q({clipPath:bb(o)},i)},a))}function Cb({align:e,side:t}){let n={},r=`-12px`,i={top:`bottom`,right:`left`,bottom:`top`,left:`right`};return n[i[t]]=r,[`before`,`end`].includes(e)?[`top`,`bottom`].includes(t)?n.right=r:n.bottom=r:[`after`,`start`].includes(e)?[`top`,`bottom`].includes(t)?n.left=r:n.top=r:[`top`,`bottom`].includes(t)?n.left=`calc(50% + ${r})`:n.top=`calc(50% + ${r})`,n}function wb(e){switch(e){case`after`:return`end`;case`before`:return`start`;default:return e}}function Tb({align:e,alignOffset:t,anchor:n,onOpenChange:r=()=>{},open:i,side:a,sideOffset:o}){let s=`${a}-${wb(e)}`;function c({rects:n}){let r={alignmentAxis:t,mainAxis:o};return[`after`,`before`].includes(e)&&([`bottom`,`top`].includes(a)?r.alignmentAxis=t-n.floating.width:r.alignmentAxis=t-n.floating.height),r}let{context:l,floatingStyles:u,placement:d,refs:f}=Tg({middleware:[Tf(c),Of(),Ef()],onOpenChange:r,open:i,placement:s,whileElementsMounted:lf}),{getFloatingProps:p,getReferenceProps:m}=kg([yg(l),Cg(l,{outsidePress:!1}),jg(l)]);(0,L.useEffect)(()=>{let e=document.querySelector(n);e==null?console.debug(`[frigade] Hint: No anchor found for selector: ${n}`):f.setReference(e)},[n]);let h=d.split(`-`);return e===`before`?h[1]=h[1]===`end`?`after`:`before`:e===`after`&&(h[1]=h[1]===`start`?`before`:`after`),{context:l,getFloatingProps:p,getReferenceProps:m,floatingStyles:u,placement:h.join(`-`),refs:f}}function Eb(e){var t=e,{align:n=`center`,alignOffset:r=0,anchor:i,children:a,defaultOpen:o=!0,modal:s=!1,onOpenChange:c=()=>{},open:l,part:u,side:d=`bottom`,sideOffset:f=0,spotlight:p=!1,style:m={}}=t,h=Y(t,[`align`,`alignOffset`,`anchor`,`children`,`defaultOpen`,`modal`,`onOpenChange`,`open`,`part`,`side`,`sideOffset`,`spotlight`,`style`]);let[g,_]=(0,L.useState)(o),v=l??g,{getFloatingProps:y,getReferenceProps:b,floatingStyles:x,placement:S,refs:C}=Tb({align:n,alignOffset:r,anchor:i,onOpenChange:e=>{c(e),l??_(e)},open:v,side:d,sideOffset:f}),[w,T]=S.split(`-`),E=b();return U(Ui,{children:[p&&v&&H(Sb,{anchor:i}),s&&!p&&v&&H(_b,{lockScroll:!0}),U(Z,J(q(q({part:[`hint`,u],ref:C.setFloating,style:q(q({},x),m)},y()),h),{children:[v&&a,H(yb,J(q({},E),{position:`absolute`,style:Cb({align:T,side:w})}))]}))]})}var Db=kt`
from {
opacity: 0;
}
25% {
opacity: 0;
}
to {
opacity: 1;
}
`;function Ob(e){var t=e,{align:n,alignOffset:r,defaultOpen:i,dismissible:a,flow:o,handleDismiss:s,modal:c,onPrimary:l,onSecondary:u,part:d,side:f,sideOffset:p,spotlight:m,step:h}=t,g=Y(t,[`align`,`alignOffset`,`defaultOpen`,`dismissible`,`flow`,`handleDismiss`,`modal`,`onPrimary`,`onSecondary`,`part`,`side`,`sideOffset`,`spotlight`,`step`]);let{handlePrimary:_,handleSecondary:v}=Ey(h,{onPrimary:l,onSecondary:u}),y=h.primaryButton?.title??h.primaryButtonTitle,b=h.secondaryButton?.title??h.secondaryButtonTitle,x=!!h.$state.blocked;return H(Eb,J(q({align:n,alignOffset:r,anchor:h.selector,"data-step-id":h.id,defaultOpen:i,modal:c,part:d,side:f,sideOffset:p,spotlight:m},g),{children:U($,{animation:`${Db} 300ms ease-out`,boxShadow:`md`,maxWidth:`min(360px, calc(100vw - 25px))`,children:[H($.Media,{aspectRatio:`2`,borderRadius:`md md 0 0`,borderWidth:`0`,margin:`-5 -5 0`,objectFit:`cover`,overflowClipMargin:`unset`,src:h.videoUri??h.imageUri,transform:`translate3d(0, 0, 1px)`,type:h.videoUri?`video`:`image`}),H($.Header,{css:{".fr-dismiss":{position:`absolute`,right:`12px`,top:`12px`}},dismissible:a,handleDismiss:s,subtitle:h.subtitle,title:h.title}),U($.Footer,{children:[o.getNumberOfAvailableSteps()>1&&H(xy,{current:o.getCurrentStepOrder()+1,marginRight:`auto`,total:o.getNumberOfAvailableSteps()}),H($.Secondary,{disabled:x,onClick:v,title:b}),H($.Primary,{disabled:x,onClick:_,title:y})]})]})}))}function kb(e,t,n){let[r,i]=(0,L.useState)(!1),a=(0,L.useRef)();return(0,L.useEffect)(()=>{a.current=typeof t==`string`?document.querySelector(t):t,i(!0)},[]),r?(0,Jt.createPortal)(e,a.current,n):null}function Ab(e){var t=e,{align:n=`after`,alignOffset:r=0,as:i,defaultOpen:a,dismissible:o=!1,flowId:s,modal:c,part:l,sequential:u=!0,side:d=`bottom`,sideOffset:f=0,spotlight:p,zIndex:m=9999}=t,h=Y(t,[`align`,`alignOffset`,`as`,`defaultOpen`,`dismissible`,`flowId`,`modal`,`part`,`sequential`,`side`,`sideOffset`,`spotlight`,`zIndex`]);let{onDismiss:g,onPrimary:_,onSecondary:v}=h;return kb(H(Ub,J(q({as:i,flowId:s,part:`tour`},h),{children:({flow:e,handleDismiss:t,parentProps:{containerProps:i},step:s})=>{let h=q({align:n,alignOffset:r,dismissible:o,flow:e,handleDismiss:t,modal:c,onPrimary:_,onSecondary:v,part:l,side:d,sideOffset:f,spotlight:p,step:s,zIndex:s.props?.zIndex??i?.zIndex??m},s.props??{});return u?H(Ob,q({defaultOpen:a??!0},h)):Array.from(e.steps.values()).filter(e=>{let{blocked:t,completed:n,skipped:r,visible:i}=e.$state;return!t&&!n&&!r&&i}).map(t=>{function c(n){return K_(this,null,function*(){return(yield g?.(e,n))===!1?(n.preventDefault(),!1):(t.skip(),!0)})}let u=p&&t.id===s.id,h=t.props?.zIndex??i?.zIndex??m,y=q({align:n,alignOffset:r,dismissible:o,flow:e,handleDismiss:c,onPrimary:_,onSecondary:v,part:l,side:d,sideOffset:f,spotlight:p,zIndex:h},t.props??{});return H(Ob,q({css:{"&:has([aria-expanded=true])":{zIndex:Number(h)+2},".fr-overlay":{zIndex:Number(h)+1},".fr-progress-fraction":{display:`none`}},defaultOpen:(a||u)??!1,step:t},y),`${t.id}-${u}`)})}})),`body`)}function jb(e){let{frigade:t}=(0,L.useContext)(Fb),[,n]=(0,L.useState)(!1),r,i=(0,L.useSyncExternalStore)((0,L.useCallback)(i=>{t?.getCollection(e).then(()=>{i()});let a=()=>{clearTimeout(r),r=setTimeout(()=>{n(e=>!e),i()},100)};return t?.onStateChange(a),()=>{t?.removeStateChangeHandler(a)}},[e]),()=>{let n;try{n=t?.getCollectionSync(e)}catch{}return n},()=>{let n;try{n=t?.getCollectionSync(e)}catch{}return n}),{flow:a}=zb(((i?.flows)?.map(e=>J(q({},e),{flow:t?.getFlowSync(e.flowId)}))??[]).find(({flow:e})=>e.isVisible)?.flowId);return{collection:i,currentFlow:a}}function Mb(e){var t=e,{collectionId:n,part:r}=t,i=Y(t,[`collectionId`,`part`]);let a={ANNOUNCEMENT:ex,BANNER:_y,CARD:$,CHECKLIST:Ky,EMBEDDED_TIP:$,FORM:pb,NPS_SURVEY:hb,SURVEY:hb,TOUR:Ab},{currentFlow:o}=jb(n),s=a[o?.rawData?.flowType]??null;return o==null||s==null?null:o?.rawData?.flowType===Ho.FORM?H(Z,J(q({part:[`collection`,r],"data-collection-id":n},i),{children:H(pb,{flowId:o.id,as:Qb},o.id)})):H(Z,J(q({part:[`collection`,r],"data-collection-id":n},i),{children:H(s,{flowId:o.id},o.id)}))}function Nb(){let{frigade:e}=(0,L.useContext)(Fb);return{frigade:e,isLoading:!(e!=null&&e.isReady())}}function Pb(){let[e,t]=(0,L.useState)(),{frigade:n}=Nb();return(0,L.useEffect)(()=>{n.getCollections().then(e=>{e?.forEach((e,n)=>{e.collectionType===`DEFAULT`&&t(n)})})},[]),e==null?null:H(Mb,{as:null,collectionId:e})}var Fb=(0,L.createContext)({apiKey:``,navigate:()=>{},hasInitialized:!1,registerComponent:()=>{},unregisterComponent:()=>{}});function Ib(){let{frigade:e}=Nb();return(0,L.useEffect)(()=>{K_(this,null,function*(){(yield e.getFlows()).forEach(e=>{e.steps.forEach(e=>{if(e.imageUri){let t=new Image;t.src=e.imageUri}})})})},[]),null}var Lb=`2.5.1`;function Rb(e){var t=e,{children:n,css:r={},defaultCollection:i=!0,navigate:a,theme:o}=t,s=Y(t,[`children`,`css`,`defaultCollection`,`navigate`,`theme`]);let c=o?lv(o):{},l=(0,L.useRef)(new Map),u=(0,L.useRef)(),[d,f]=(0,L.useState)(!1),p=(0,L.useMemo)(()=>(f(!1),u.current=void 0,new zo(s.apiKey,{apiKey:s.apiKey,apiUrl:s.apiUrl,userId:s.userId,groupId:s.groupId,userProperties:s.userProperties,groupProperties:s.groupProperties,generateGuestId:s.generateGuestId,syncOnWindowUpdates:s.syncOnWindowUpdates,__readOnly:s.__readOnly,__flowStateOverrides:s.__flowStateOverrides,__platformVersion:Lb,__platformName:`React`})),[s.userId,s.groupId,s.apiKey]);(0,L.useEffect)(()=>{if(s.__flowStateOverrides){let e=p.getConfig();e.__flowStateOverrides=s.__flowStateOverrides,p.reload(e)}},[s.__flowStateOverrides]);function m(){let e=[...l.current.entries()].map(([e,t])=>[e,t.callback]);p.batchRegister(e),f(!0)}function h(e,t){if(u.current&&clearTimeout(u.current),d){l.current.has(e)?p.getFlow(e).then(e=>t(e.isVisible)):(p.getFlow(e).then(e=>e.register(t)),l.current.set(e,{callback:t}));return}l.current.has(e)||l.current.set(e,{callback:t}),u.current&&clearTimeout(u.current),u.current=setTimeout(()=>m(),0)}function g(e){l.current.has(e)&&p.getFlow(e).then(t=>{l.current.delete(e),t?.unregister()})}let _=a??((e,t=`_self`)=>{window.open(e,t)});return(0,L.useEffect)(()=>()=>{p.destroy()},[]),U(Fb.Provider,{value:J(q({navigate:_},s),{frigade:p,registerComponent:h,unregisterComponent:g,hasInitialized:d}),children:[H(Dt,{styles:{":root":q(q(q({},dv),c),r)}}),U(xt,{theme:fv,children:[i&&H(Pb,{}),n]}),s.preloadImages!==!1&&H(Ib,{})]})}function zb(e,t){let{frigade:n}=(0,L.useContext)(Fb),[,r]=(0,L.useState)(!1),i=(0,L.useSyncExternalStore)((0,L.useCallback)(t=>{n?.getFlow(e).then(()=>{t()});let i=n=>{n.id===e&&setTimeout(()=>{r(e=>!e),t()},0)};return n?.onStateChange(i),()=>{n?.removeStateChangeHandler(i)}},[e]),()=>n?.getFlowSync(e),()=>n?.getFlowSync(e));return i!=null&&t!=null&&t.variables&&i.applyVariables(t.variables),{flow:i,isLoading:n!=null&&n.hasFailedToLoad()?!1:!i}}function Bb(e,{onComplete:t,onDismiss:n}={}){let r=(0,L.useRef)(null);return(0,L.useEffect)(()=>{e!=null&&(e.isCompleted&&r.current===!1&&K_(this,null,function*(){yield t?.(e)}),r.current=e?.isCompleted)},[e?.isCompleted]),{handleDismiss:(0,L.useCallback)(t=>K_(this,null,function*(){if((yield n?.(e,t))===!1)return t.preventDefault(),!1;e.skip()}),[e])}}var Vb=new Set;function Hb(e,t=!0){let n=(0,L.useCallback)(()=>{Vb.has(e?.id)&&Vb.delete(e?.id)},[Vb,t]),r=(0,L.useCallback)(()=>{t&&e!=null&&e.isVisible&&!Vb.has(e.id)&&Vb.add(e.id)},[Vb,t]);(0,L.useEffect)(()=>()=>{n()},[]),e!=null&&e.isVisible?r():n();let i=Vb.size>0?Vb.values().next().value:null;return{isCurrentModal:t?i===e?.id||Vb.size==0:!0}}function Ub(e){var t=e,{as:n,children:r,flowId:i,onComplete:a,onDismiss:o,onPrimary:s,onSecondary:c,variables:l}=t,u=Y(t,[`as`,`children`,`flowId`,`onComplete`,`onDismiss`,`onPrimary`,`onSecondary`,`variables`]);let{flow:d}=zb(i,{variables:l}),f=q(q({},u),d?.props??{}),{dismissible:p=!1,forceMount:m=!1}=f,h=Y(f,[`dismissible`,`forceMount`]),g=d?.getCurrentStep(),{handleDismiss:_}=Bb(d,{onComplete:a,onDismiss:o}),{handlePrimary:v,handleSecondary:y}=Ey(g,{onPrimary:s,onSecondary:c}),{isCurrentModal:b}=Hb(d,h?.modal||typeof n==`function`&&n?.displayName===`Dialog`||[Ho.ANNOUNCEMENT,Ho.TOUR].includes(d?.rawData?.flowType)),x=m&&(d?.isCompleted||d?.isSkipped);if(!d||!d.isVisible&&!x||!x&&!b)return null;(x||!d.isCompleted&&!d.isSkipped)&&g.start();let S=n===null?L.Fragment:n??Z,C=J(q({},h),{"data-flow-id":d.id});return H(S,J(q({},n===null?{}:C),{children:r({flow:d,handleDismiss:_,handlePrimary:v,handleSecondary:y,parentProps:{dismissible:p,flowId:i,variables:l,containerProps:C},step:g})}))}function Wb(e){var t=e,{part:n}=t,r=Y(t,[`part`]);return H(Ub,J(q({as:$,gap:5,borderColor:`neutral.border`,borderStyle:`solid`,borderWidth:`md`,part:[`card`,n]},r),{children:({handleDismiss:e,handlePrimary:t,handleSecondary:n,parentProps:{dismissible:r},step:i})=>{let a=i.primaryButton?.title??i.primaryButtonTitle,o=i.secondaryButton?.title??i.secondaryButtonTitle;return U(Ui,{children:[H($.Header,{dismissible:r,handleDismiss:e,subtitle:i.subtitle,title:i.title}),H($.Media,{src:i.imageUri,css:{objectFit:`contain`,width:`100%`}}),U(Q.Row,{gap:3,justifyContent:`flex-end`,part:`card-footer`,children:[H($.Secondary,{title:o,onClick:n}),H($.Primary,{title:a,onClick:t})]})]})}}))}function Gb(e){var t=e,{part:n,src:r}=t,i=Y(t,[`part`,`src`]);return H(Z,q({as:`img`,maxWidth:`unset`,part:[`image`,n],src:r},i))}function Kb(e){return e.includes(`youtube`)?`https://www.youtube.com/embed/${e.split(`v=`)[1]?.split(`&`)[0]}`:e.includes(`youtu.be`)?`https://www.youtube.com/embed/${e.split(`youtu.be/`)[1]?.split(`&`)[0]}`:e.includes(`vimeo`)?`https://player.vimeo.com/video/${e.split(`vimeo.com/`)[1]?.split(`&`)[0]}`:e.includes(`wistia`)?`https://fast.wistia.net/embed/iframe/${e.split(`wistia.com/medias/`)[1]?.split(`&`)[0]}`:e.includes(`loom`)?`https://loom.com/embed/${e.split(`loom.com/share/`)[1]?.split(`&`)[0]}?hideEmbedTopBar=true&hide_title=true&hide_share=true&hide_owner=true`:null}function qb(e){var t=e,{part:n,src:r}=t,i=Y(t,[`part`,`src`]);let a=Kb(r);return a?H(Z,q({allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture`,allowFullScreen:!0,as:`iframe`,backgroundColor:`neutral.100`,borderWidth:`0`,part:[`video`,n],src:a},i)):r!=null&&r.endsWith(`.mp4`)?H(Z,q({as:`video`,controls:!0,part:[`video`,n],src:r},i)):(console.error(`Could not map videoUri ${r} to a known provider (Youtube, Vimeo, Wistia, Loom) or valid mp4 file.`),null)}function Jb(e){var t=e,{src:n,type:r}=t,i=Y(t,[`src`,`type`]);return H(r===`video`?qb:Gb,q({src:n},i))}var $=L.forwardRef((e,t)=>{var n=e,{children:r,flowId:i,part:a}=n,o=Y(n,[`children`,`flowId`,`part`]);return i==null?H(o.as??Q.Column,J(q({backgroundColor:`neutral.background`,borderColor:`neutral.border`,borderStyle:`solid`,borderRadius:`md`,borderWidth:`0`,gap:5,p:5,part:[`card`,a]},o),{ref:t,children:r})):H(Wb,q({flowId:i},o))});$.Dismiss=e=>H(Nv.Plain,J(q({part:`dismiss`,padding:0},e),{children:H(q_,{height:`20`,fill:`currentColor`})})),$.Footer=e=>{var t=e,{children:n,part:r}=t,i=Y(t,[`children`,`part`]);return H(Q.Row,J(q({alignItems:`center`,gap:3,justifyContent:`flex-end`,part:[`card-footer`,r]},i),{children:n}))},$.Header=e=>{var t=e,{dismissible:n,handleDismiss:r,part:i,subtitle:a,title:o}=t,s=Y(t,[`dismissible`,`handleDismiss`,`part`,`subtitle`,`title`]);return U(Q.Row,J(q({alignItems:`flex-start`,flexWrap:`wrap`,gap:1,part:[`card-header`,i]},s),{children:[H($.Title,{maxWidth:`calc(100% - 32px)`,children:o}),n&&H($.Dismiss,{onClick:r,marginLeft:`auto`}),H($.Subtitle,{color:`neutral.400`,flexBasis:`100%`,children:a})]}))},$.Media=e=>{var t=e,{src:n}=t,r=Y(t,[`src`]);return n==null||n?.length===0?null:H(Jb,q({borderRadius:`md`,src:n},r))},$.Primary=e=>{var t=e,{onClick:n,title:r}=t,i=Y(t,[`onClick`,`title`]);return r==null||r?.length===0?null:H(Nv.Primary,q({title:r,onClick:n},i))},$.Secondary=e=>{var t=e,{onClick:n,title:r}=t,i=Y(t,[`onClick`,`title`]);return r==null||r?.length===0?null:H(Nv.Secondary,q({title:r,onClick:n},i))},$.Subtitle=e=>{var t=e,{children:n,part:r}=t,i=Y(t,[`children`,`part`]);return n==null?null:H(Pv.Body2,J(q({display:`block`,color:`neutral.400`,part:[`subtitle`,r]},i),{children:n}))},$.Title=e=>{var t=e,{children:n,part:r}=t,i=Y(t,[`children`,`part`]);return n==null?null:H(Pv.H4,J(q({display:`block`,part:[`title`,r]},i),{children:n}))};var Yb={content:[`onOpenAutoFocus`,`onCloseAutoFocus`,`onEscapeKeyDown`,`onPointerDownOutside`,`onInteractOutside`],root:[`defaultOpen`,`modal`,`onOpenChange`,`open`]};function Xb(e){let t=Object.fromEntries(Yb.content.map(t=>[t,e[t]]).filter(e=>e[1]!==void 0)),n=Object.fromEntries(Yb.root.map(t=>[t,e[t]]).filter(e=>e[1]!==void 0)),r={};for(let t of Object.keys(e))!Yb.content.some(e=>e===t)&&!Yb.root.some(e=>e===t)&&(r[t]=e[t]);return{contentProps:t,otherProps:r,rootProps:n}}var Zb=kt`
from {
opacity: 0;
}
25% {
opacity: 0;
}
to {
opacity: 1;
}
`;function Qb(e){var t=e,{children:n,className:r,modal:i=!0}=t;let{rootProps:a,contentProps:o,otherProps:s}=Xb(Y(t,[`children`,`className`,`modal`])),c=s,{zIndex:l}=c,u=Y(c,[`zIndex`]);return H(Ii,J(q({defaultOpen:!0,modal:i},a),{children:H(Li,{children:U(Z,{animation:`${Zb} 300ms ease-out`,className:r,display:`grid`,inset:`0`,padding:`6`,part:`dialog-wrapper`,pointerEvents:`none`,position:`fixed`,zIndex:l??10,children:[i&&H(Ri,{asChild:!0,children:H(Z,{background:`rgb(0 0 0 / 0.5)`,inset:`0`,part:`dialog-overlay`,position:`absolute`})}),H(zi,J(q({asChild:!0,onOpenAutoFocus:e=>e.preventDefault(),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault()},o),{children:H($,J(q({alignSelf:`center`,boxShadow:`md`,justifySelf:`center`,maxHeight:`100%`,maxWidth:`430px`,overflowY:`auto`,padding:8,part:`dialog`,pointerEvents:`auto`,position:`relative`},u),{children:n}))}))]})})}))}Qb.Dismiss=e=>H(Hi,{"aria-label":`Close`,asChild:!0,children:H(Nv.Plain,J(q({part:`close`,position:`absolute`,right:`2px`,top:`2px`},e),{children:H(q_,{height:`20`,fill:`currentColor`})}))}),Qb.Subtitle=e=>{var t=e,{children:n}=t,r=Y(t,[`children`]);return H(Vi,{asChild:!0,children:H(Pv.Body2,J(q({part:`subtitle`},r),{children:n}))})},Qb.Media=e=>{var t=e,{src:n}=t,r=Y(t,[`src`]);return n==null?null:H(Jb,q({borderRadius:`md`,src:n},r))},Qb.Primary=e=>{var t=e,{onClick:n,title:r}=t,i=Y(t,[`onClick`,`title`]);return r==null?null:H(Nv.Primary,q({title:r,onClick:n},i))},Qb.ProgressDots=({current:e,total:t})=>{if(t==1)return null;let n=[...Array(t)].map((t,n)=>H(Z,{as:`circle`,r:4,cx:4+16*n,cy:`4px`,fill:e===n?fv.colors.primary.surface:fv.colors.neutral[700],part:e===n?`progress-dot-selected`:`progress-dot`},n));return H(Z,{as:`svg`,height:`8px`,marginInline:`auto`,part:`progress`,viewBox:`0 0 ${16*t-8} 8`,width:16*t-8,children:n})},Qb.Secondary=e=>{var t=e,{onClick:n,title:r}=t,i=Y(t,[`onClick`,`title`]);return r==null?null:H(Nv.Secondary,q({title:r,onClick:n},i))},Qb.Title=e=>{var t=e,{children:n}=t,r=Y(t,[`children`]);return H(Bi,{asChild:!0,children:H(Pv.H4,J(q({part:`title`},r),{children:n}))})},Qb.displayName=`Dialog`;var $b=[`dismissible`,`flowId`,`forceMount`,`onComplete`,`onDismiss`,`onPrimary`,`onSecondary`,`variables`];function ex(e){var t=e,{flowId:n,part:r}=t,i=Y(t,[`flowId`,`part`]);let a=Object.fromEntries(Object.entries(i).filter(([e])=>$b.some(t=>e===t))),o=Object.fromEntries(Object.entries(i).filter(([e])=>$b.indexOf(e)===-1));return H(Ub,J(q({as:null,flowId:n},a),{children:({flow:e,handleDismiss:t,handlePrimary:n,handleSecondary:a,parentProps:{containerProps:s,dismissible:c},step:l})=>{let u=l.props??{},d=l.primaryButton?.title??l.primaryButtonTitle,f=l.secondaryButton?.title??l.secondaryButtonTitle,p=l.$state.blocked;return H(Qb,J(q(q({part:[`announcement`,r],textAlign:`center`},s),o),{onEscapeKeyDown:e=>{if(i.dismissible===!1){e.preventDefault();return}typeof i.onEscapeKeyDown==`function`&&i.onEscapeKeyDown(e),e.defaultPrevented||t(e)},children:U(Q.Column,J(q({gap:5,part:`announcement-step`},u),{children:[c&&H(Qb.Dismiss,{onClick:t}),U(Q.Column,{gap:1,part:`announcement-header`,children:[H(Qb.Title,{children:l.title}),H(Qb.Subtitle,{children:l.subtitle})]}),H(Qb.Media,{aspectRatio:`1.5`,objectFit:`cover`,overflowClipMargin:`unset`,src:l.videoUri??l.imageUri,transform:`translate3d(0, 0, 1px)`,type:l.videoUri?`video`:`image`,width:`100%`}),H(Qb.ProgressDots,{current:e.getCurrentStepIndex(),total:e.getNumberOfAvailableSteps()}),U(Q.Row,{css:{"& > button":{flexBasis:`50%`,flexGrow:1}},gap:3,part:`announcement-footer`,children:[f&&H(Qb.Secondary,{disabled:p,onClick:a,title:f}),d&&H(Qb.Primary,{disabled:p,onClick:n,title:d})]})]}))}))}}))}function tx(){let[e,t]=(0,L.useState)(`DOMRect`in globalThis?new DOMRect:{height:0,width:0,x:0,y:0,bottom:0,top:0,right:0,left:0,toJSON:()=>{}}),[n,r]=(0,L.useState)(null),i=(0,L.useCallback)(e=>{r(e)},[]);return(0,L.useLayoutEffect)(()=>{if(!n)return;let e=()=>{t(n.getBoundingClientRect())};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[n]),{node:n,rect:e,ref:i}}var nx=kt({"0%":{opacity:.5,transform:`scale(0.5)`},"50%":{opacity:0,transform:`scale(1)`},"100%":{opacity:0,transform:`scale(1)`}});function rx(e){var t=e,{style:n={},part:r=``}=t,i=Y(t,[`style`,`part`]);return U(Z,J(q({part:`dot-wrapper ${r}`,style:q({height:`48px`,position:`absolute`,width:`48px`},n)},i),{children:[H(Z,{backgroundColor:`primary.surface`,part:`dot-pulse`,css:{animation:`2s ease-out infinite ${nx}`,borderRadius:`24px`,height:`48px`,left:0,position:`absolute`,top:0,transformOrigin:`center center`,width:`48px`}}),H(Z,{backgroundColor:`primary.surface`,part:`dot`,style:{borderRadius:`12px`,height:`24px`,left:`12px`,position:`absolute`,top:`12px`,width:`24px`}})]}))}function ix({props:e,alignAttr:t,sideAttr:n}){let r=n??`bottom`,i={},a=()=>{if([`after`,`before`].includes(e.align)){if(t==`start`)return`before`;if(t==`end`)return`after`}return e.align??`after`},o=`-24px`,s={top:`bottom`,right:`left`,bottom:`top`,left:`right`};i[s[r]]=o;let c=a();return[`before`,`end`].includes(c)?[`top`,`bottom`].includes(r)?i.right=o:i.bottom=o:[`after`,`start`].includes(c)?[`top`,`bottom`].includes(r)?i.left=o:i.top=o:[`top`,`bottom`].includes(r)?i.left=`calc(50% + ${o})`:i.top=`calc(50% + ${o})`,i}var ax={content:[`align`,`alignOffset`,`arrowPadding`,`avoidCollisions`,`collisionBoundary`,`collisionPadding`,`forceMount`,`hideWhenDetached`,`onCloseAutoFocus`,`onEscapeKeyDown`,`onFocusOutside`,`onInteractOutside`,`onOpenAutoFocus`,`onPointerDownOutside`,`side`,`sideOffset`,`sticky`],root:[`modal`,`onOpenChange`]};function ox(e,t){let n=Object.fromEntries(ax.content.map(t=>[t,e[t]]).filter(e=>e[1]!==void 0)),r=Object.fromEntries(ax.root.map(t=>[t,e[t]]).filter(e=>e[1]!==void 0)),i={};for(let t of Object.keys(e))!ax.content.includes(t)&&!ax.root.includes(t)&&(i[t]=e[t]);if(n.align=n.align??`after`,n.side=n.side??`bottom`,[`before`,`after`].includes(n.align)){let e={after:`end`,before:`start`},r=(e,t)=>[`top`,`bottom`].includes(t)?e==`after`?`marginLeft`:`marginRight`:e==`after`?`marginTop`:`marginBottom`,i=n.alignOffset??0,a=n.style??{},o=n.side??`bottom`,s=n.align;n.style=J(q({},a),{[r(s,o)]:i}),n.alignOffset=(([`top`,`bottom`].includes(o)?t.width:t.height)+i)*-1,n.align=e[s]}return{contentProps:n,otherProps:i,rootProps:r}}var sx=kt`
from {
opacity: 0;
}
25% {
opacity: 0;
}
to {
opacity: 1;
}
`;function cx(e){return e instanceof HTMLElement?!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length):!1}function lx(e){var t=e,{anchor:n,children:r,className:i,defaultOpen:a=!0,open:o,part:s,spotlight:c=!1,style:l={}}=t,u=Y(t,[`anchor`,`children`,`className`,`defaultOpen`,`open`,`part`,`spotlight`,`style`]);let{node:d,rect:f,ref:p}=tx(),{node:m,rect:h,ref:g}=tx(),{contentProps:_,otherProps:v,rootProps:y}=ox(u,f),[b,x]=(0,L.useState)(a),[S,C]=(0,L.useState)(_.align),[w,T]=(0,L.useState)(_.side),[E,D]=(0,L.useState)(0),[O,k]=(0,L.useState)(0);function A(){return o==null?(console.log(`INTERNAL: `,b),b):(console.log(`OVERRIDE: `,o),o)}if(d!==null){let e=d.getAttribute(`data-align`),t=d.getAttribute(`data-side`);S!==e&&C(e),w!==t&&T(t)}let j=(0,L.useRef)(null);if((0,L.useEffect)(()=>{let e=document.querySelector(n);e==null?console.debug(`[frigade] Tooltip: No anchor found for query: ${n}`):(g(e),j.current=e)},[n]),(0,L.useEffect)(()=>{function e(e){if(e.matches(n))return cx(e)?e:null;let t=e.querySelectorAll(n);return t.length>0&&cx(t[0])?t[0]:null}let t=new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){for(let t of n.addedNodes){if(t.nodeType!==Node.ELEMENT_NODE)continue;let n=e(t);if(n!=null){g(n),j.current=n,console.debug(`[frigade] Tooltip: MutationObserver added anchor: `,n);break}}for(let t of n.removedNodes){if(t.nodeType!==Node.ELEMENT_NODE)continue;let n=e(t);if(n!=null){g(null),j.current=null,console.debug(`[frigade] Tooltip: MutationObserver removed anchor: `,n);break}}}});return t.observe(document.querySelector(`body`),{childList:!0,subtree:!0}),()=>t.disconnect()},[]),(0,L.useEffect)(()=>{let{scrollX:e,scrollY:t}=window;D(h.left+e),k(h.top+t)},[h.left,h.top]),m==null)return null;let ee=`0`;typeof window<`u`&&(ee=window.getComputedStyle(m).borderRadius);let M=ix({props:u,alignAttr:S,sideAttr:w});return U(j_,J(q({defaultOpen:!0},y),{children:[H(M_,{virtualRef:j}),H(N_,{children:U(Ui,{children:[c&&H(Z,q({animation:`${sx} 300ms ease-out`,boxShadow:`0 0 0 20000px rgb(0 0 0 / 0.5)`,part:`tooltip-spotlight`,pointerEvents:`none`,position:`absolute`,style:{borderRadius:ee,height:h.height,left:E,top:O,width:h.width}},u.zIndex==null?{}:{zIndex:u.zIndex})),H(P_,J(q({},_),{ref:p,children:U(Ui,{children:[A()&&H($,J(q({animation:`${sx} 300ms ease-out`,boxShadow:`md`,position:`relative`,className:i,maxWidth:`min(360px, calc(100vw - 25px))`,part:[`tooltip`,s],style:l},v),{children:r})),H(rx,{onClick:()=>{x(()=>(typeof y.onOpenChange==`function`&&y.onOpenChange(!A()),!A()))},style:M})]})}),b)]})})]}))}lx.Close=e=>H(F_,{"aria-label":`Close`,asChild:!0,children:H(Nv.Plain,J(q({css:{top:`0px`,right:`-6px`},part:`close`,position:`absolute`},e),{children:H(q_,{height:`20`,fill:`currentColor`})}))}),lx.Media=e=>{var t=e,{src:n}=t,r=Y(t,[`src`]);return n==null?null:H(Jb,q({aspectRatio:`2`,borderRadius:`md md 0 0`,borderWidth:`0`,margin:`-5 -5 0`,objectFit:`cover`,overflowClipMargin:`unset`,src:n,transform:`translate3d(0, 0, 1px)`},r))},lx.Primary=e=>{var t=e,{onClick:n,title:r}=t,i=Y(t,[`onClick`,`title`]);return r==null?null:H(Nv.Primary,q({title:r,onClick:n},i))},lx.Progress=e=>{var t=e,{children:n}=t,r=Y(t,[`children`]);return n==null?null:H(Pv.Body2,J(q({part:`progress`},r),{children:n}))},lx.Secondary=e=>{var t=e,{onClick:n,title:r}=t,i=Y(t,[`onClick`,`title`]);return r==null?null:H(Nv.Secondary,q({title:r,onClick:n},i))},lx.Subtitle=e=>{var t=e,{children:n}=t,r=Y(t,[`children`]);return n==null?null:H(Pv.Body2,J(q({part:`subtitle`},r),{children:n}))},lx.Title=e=>{var t=e,{children:n}=t,r=Y(t,[`children`]);return n==null?null:H(Pv.H4,J(q({part:`title`},r),{children:n}))};function ux(e){return typeof e==`object`&&!!e&&`constructor`in e&&e.constructor===Object}function dx(e={},t={}){Object.keys(t).forEach(n=>{e[n]===void 0?e[n]=t[n]:ux(t[n])&&ux(e[n])&&Object.keys(t[n]).length>0&&dx(e[n],t[n])})}var fx={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:``},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:``,host:``,hostname:``,href:``,origin:``,pathname:``,protocol:``,search:``}};function px(){let e=typeof document<`u`?document:{};return dx(e,fx),e}var mx={document:fx,navigator:{userAgent:``},location:{hash:``,host:``,hostname:``,href:``,origin:``,pathname:``,protocol:``,search:``},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return``}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>`u`?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>`u`||clearTimeout(e)}};function hx(){let e=typeof window<`u`?window:{};return dx(e,mx),e}function gx(e){let t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch{}try{delete t[e]}catch{}})}function _x(e,t=0){return setTimeout(e,t)}function vx(){return Date.now()}function yx(e){let t=hx(),n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||=e.style,n}function bx(e,t=`x`){let n=hx(),r,i,a,o=yx(e,null);return n.WebKitCSSMatrix?(i=o.transform||o.webkitTransform,i.split(`,`).length>6&&(i=i.split(`, `).map(e=>e.replace(`,`,`.`)).join(`, `)),a=new n.WebKitCSSMatrix(i===`none`?``:i)):(a=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue(`transform`).replace(`translate(`,`matrix(1, 0, 0, 1,`),r=a.toString().split(`,`)),t===`x`&&(i=n.WebKitCSSMatrix?a.m41:r.length===16?parseFloat(r[12]):parseFloat(r[4])),t===`y`&&(i=n.WebKitCSSMatrix?a.m42:r.length===16?parseFloat(r[13]):parseFloat(r[5])),i||0}function xx(e){return typeof e==`object`&&!!e&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)===`Object`}function Sx(e){return typeof window<`u`&&window.HTMLElement!==void 0?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Cx(...e){let t=Object(e[0]),n=[`__proto__`,`constructor`,`prototype`];for(let r=1;r<e.length;r+=1){let i=e[r];if(i!=null&&!Sx(i)){let e=Object.keys(Object(i)).filter(e=>n.indexOf(e)<0);for(let n=0,r=e.length;n<r;n+=1){let r=e[n],a=Object.getOwnPropertyDescriptor(i,r);a!==void 0&&a.enumerable&&(xx(t[r])&&xx(i[r])?i[r].__swiper__?t[r]=i[r]:Cx(t[r],i[r]):!xx(t[r])&&xx(i[r])?(t[r]={},i[r].__swiper__?t[r]=i[r]:Cx(t[r],i[r])):t[r]=i[r])}}}return t}function wx(e,t,n){e.style.setProperty(t,n)}function Tx({swiper:e,targetPosition:t,side:n}){let r=hx(),i=-e.translate,a=null,o,s=e.params.speed;e.wrapperEl.style.scrollSnapType=`none`,r.cancelAnimationFrame(e.cssModeFrameID);let c=t>i?`next`:`prev`,l=(e,t)=>c===`next`&&e>=t||c===`prev`&&e<=t,u=()=>{o=new Date().getTime(),a===null&&(a=o);let c=Math.max(Math.min((o-a)/s,1),0),d=i+(.5-Math.cos(c*Math.PI)/2)*(t-i);if(l(d,t)&&(d=t),e.wrapperEl.scrollTo({[n]:d}),l(d,t)){e.wrapperEl.style.overflow=`hidden`,e.wrapperEl.style.scrollSnapType=``,setTimeout(()=>{e.wrapperEl.style.overflow=``,e.wrapperEl.scrollTo({[n]:d})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(u)};u()}function Ex(e,t=``){return[...e.children].filter(e=>e.matches(t))}function Dx(e,t=[]){let n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function Ox(e,t){let n=[];for(;e.previousElementSibling;){let r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function kx(e,t){let n=[];for(;e.nextElementSibling;){let r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function Ax(e,t){return hx().getComputedStyle(e,null).getPropertyValue(t)}function jx(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function Mx(e,t){let n=[],r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Nx(e,t,n){let r=hx();return n?e[t===`width`?`offsetWidth`:`offsetHeight`]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t===`width`?`margin-right`:`margin-top`))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t===`width`?`margin-left`:`margin-bottom`)):e.offsetWidth}var Px;function Fx(){let e=hx(),t=px();return{smoothScroll:t.documentElement&&t.documentElement.style&&`scrollBehavior`in t.documentElement.style,touch:!!(`ontouchstart`in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Ix(){return Px||=Fx(),Px}var Lx;function Rx({userAgent:e}={}){let t=Ix(),n=hx(),r=n.navigator.platform,i=e||n.navigator.userAgent,a={ios:!1,android:!1},o=n.screen.width,s=n.screen.height,c=i.match(/(Android);?[\s\/]+([\d.]+)?/),l=i.match(/(iPad).*OS\s([\d_]+)/),u=i.match(/(iPod)(.*OS\s([\d_]+))?/),d=!l&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=r===`Win32`,p=r===`MacIntel`;return!l&&p&&t.touch&&[`1024x1366`,`1366x1024`,`834x1194`,`1194x834`,`834x1112`,`1112x834`,`768x1024`,`1024x768`,`820x1180`,`1180x820`,`810x1080`,`1080x810`].indexOf(`${o}x${s}`)>=0&&(l=i.match(/(Version)\/([\d.]+)/),l||=[0,1,`13_0_0`],p=!1),c&&!f&&(a.os=`android`,a.android=!0),(l||d||u)&&(a.os=`ios`,a.ios=!0),a}function zx(e={}){return Lx||=Rx(e),Lx}var Bx;function Vx(){let e=hx(),t=!1;function n(){let t=e.navigator.userAgent.toLowerCase();return t.indexOf(`safari`)>=0&&t.indexOf(`chrome`)<0&&t.indexOf(`android`)<0}if(n()){let n=String(e.navigator.userAgent);if(n.includes(`Version/`)){let[e,r]=n.split(`Version/`)[1].split(` `)[0].split(`.`).map(e=>Number(e));t=e<16||e===16&&r<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function Hx(){return Bx||=Vx(),Bx}function Ux({swiper:e,on:t,emit:n}){let r=hx(),i=null,a=null,o=()=>{!e||e.destroyed||!e.initialized||(n(`beforeResize`),n(`resize`))},s=()=>{!e||e.destroyed||!e.initialized||(i=new ResizeObserver(t=>{a=r.requestAnimationFrame(()=>{let{width:n,height:r}=e,i=n,a=r;t.forEach(({contentBoxSize:t,contentRect:n,target:r})=>{r&&r!==e.el||(i=n?n.width:(t[0]||t).inlineSize,a=n?n.height:(t[0]||t).blockSize)}),(i!==n||a!==r)&&o()})}),i.observe(e.el))},c=()=>{a&&r.cancelAnimationFrame(a),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null)},l=()=>{!e||e.destroyed||!e.initialized||n(`orientationchange`)};t(`init`,()=>{if(e.params.resizeObserver&&r.ResizeObserver!==void 0){s();return}r.addEventListener(`resize`,o),r.addEventListener(`orientationchange`,l)}),t(`destroy`,()=>{c(),r.removeEventListener(`resize`,o),r.removeEventListener(`orientationchange`,l)})}function Wx({swiper:e,extendParams:t,on:n,emit:r}){let i=[],a=hx(),o=(t,n={})=>{let o=new(a.MutationObserver||a.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(t.length===1){r(`observerUpdate`,t[0]);return}let n=function(){r(`observerUpdate`,t[0])};a.requestAnimationFrame?a.requestAnimationFrame(n):a.setTimeout(n,0)});o.observe(t,{attributes:n.attributes===void 0?!0:n.attributes,childList:n.childList===void 0?!0:n.childList,characterData:n.characterData===void 0?!0:n.characterData}),i.push(o)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n(`init`,()=>{if(e.params.observer){if(e.params.observeParents){let t=Mx(e.el);for(let e=0;e<t.length;e+=1)o(t[e])}o(e.el,{childList:e.params.observeSlideChildren}),o(e.wrapperEl,{attributes:!1})}}),n(`destroy`,()=>{i.forEach(e=>{e.disconnect()}),i.splice(0,i.length)})}var Gx={on(e,t,n){let r=this;if(!r.eventsListeners||r.destroyed||typeof t!=`function`)return r;let i=n?`unshift`:`push`;return e.split(` `).forEach(e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)}),r},once(e,t,n){let r=this;if(!r.eventsListeners||r.destroyed||typeof t!=`function`)return r;function i(...n){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,n)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){let n=this;if(!n.eventsListeners||n.destroyed||typeof e!=`function`)return n;let r=t?`unshift`:`push`;return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){let t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;let n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){let n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(` `).forEach(e=>{t===void 0?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((r,i)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)})}),n},emit(...e){let t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,i;return typeof e[0]==`string`||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),i=t):(n=e[0].events,r=e[0].data,i=e[0].context||t),r.unshift(i),(Array.isArray(n)?n:n.split(` `)).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(i,[e,...r])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(e=>{e.apply(i,r)})}),t}};function Kx(){let e=this,t,n,r=e.el;t=e.params.width!==void 0&&e.params.width!==null?e.params.width:r.clientWidth,n=e.params.height!==void 0&&e.params.height!==null?e.params.height:r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(Ax(r,`padding-left`)||0,10)-parseInt(Ax(r,`padding-right`)||0,10),n=n-parseInt(Ax(r,`padding-top`)||0,10)-parseInt(Ax(r,`padding-bottom`)||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function qx(){let e=this;function t(t){return e.isHorizontal()?t:{width:`height`,"margin-top":`margin-left`,"margin-bottom ":`margin-right`,"margin-left":`margin-top`,"margin-right":`margin-bottom`,"padding-left":`padding-top`,"padding-right":`padding-bottom`,marginRight:`marginBottom`}[t]}function n(e,n){return parseFloat(e.getPropertyValue(t(n))||0)}let r=e.params,{wrapperEl:i,slidesEl:a,size:o,rtlTranslate:s,wrongRTL:c}=e,l=e.virtual&&r.virtual.enabled,u=l?e.virtual.slides.length:e.slides.length,d=Ex(a,`.${e.params.slideClass}, swiper-slide`),f=l?e.virtual.slides.length:d.length,p=[],m=[],h=[],g=r.slidesOffsetBefore;typeof g==`function`&&(g=r.slidesOffsetBefore.call(e));let _=r.slidesOffsetAfter;typeof _==`function`&&(_=r.slidesOffsetAfter.call(e));let v=e.snapGrid.length,y=e.slidesGrid.length,b=r.spaceBetween,x=-g,S=0,C=0;if(o===void 0)return;typeof b==`string`&&b.indexOf(`%`)>=0?b=parseFloat(b.replace(`%`,``))/100*o:typeof b==`string`&&(b=parseFloat(b)),e.virtualSize=-b,d.forEach(e=>{s?e.style.marginLeft=``:e.style.marginRight=``,e.style.marginBottom=``,e.style.marginTop=``}),r.centeredSlides&&r.cssMode&&(wx(i,`--swiper-centered-offset-before`,``),wx(i,`--swiper-centered-offset-after`,``));let w=r.grid&&r.grid.rows>1&&e.grid;w&&e.grid.initSlides(f);let T,E=r.slidesPerView===`auto`&&r.breakpoints&&Object.keys(r.breakpoints).filter(e=>r.breakpoints[e].slidesPerView!==void 0).length>0;for(let i=0;i<f;i+=1){T=0;let a;if(d[i]&&(a=d[i]),w&&e.grid.updateSlide(i,a,f,t),!(d[i]&&Ax(a,`display`)===`none`)){if(r.slidesPerView===`auto`){E&&(d[i].style[t(`width`)]=``);let o=getComputedStyle(a),s=a.style.transform,c=a.style.webkitTransform;if(s&&(a.style.transform=`none`),c&&(a.style.webkitTransform=`none`),r.roundLengths)T=e.isHorizontal()?Nx(a,`width`,!0):Nx(a,`height`,!0);else{let e=n(o,`width`),t=n(o,`padding-left`),r=n(o,`padding-right`),i=n(o,`margin-left`),s=n(o,`margin-right`),c=o.getPropertyValue(`box-sizing`);if(c&&c===`border-box`)T=e+i+s;else{let{clientWidth:n,offsetWidth:o}=a;T=e+t+r+i+s+(o-n)}}s&&(a.style.transform=s),c&&(a.style.webkitTransform=c),r.roundLengths&&(T=Math.floor(T))}else T=(o-(r.slidesPerView-1)*b)/r.slidesPerView,r.roundLengths&&(T=Math.floor(T)),d[i]&&(d[i].style[t(`width`)]=`${T}px`);d[i]&&(d[i].swiperSlideSize=T),h.push(T),r.centeredSlides?(x=x+T/2+S/2+b,S===0&&i!==0&&(x=x-o/2-b),i===0&&(x=x-o/2-b),Math.abs(x)<1/1e3&&(x=0),r.roundLengths&&(x=Math.floor(x)),C%r.slidesPerGroup===0&&p.push(x),m.push(x)):(r.roundLengths&&(x=Math.floor(x)),(C-Math.min(e.params.slidesPerGroupSkip,C))%e.params.slidesPerGroup===0&&p.push(x),m.push(x),x=x+T+b),e.virtualSize+=T+b,S=T,C+=1}}if(e.virtualSize=Math.max(e.virtualSize,o)+_,s&&c&&(r.effect===`slide`||r.effect===`coverflow`)&&(i.style.width=`${e.virtualSize+b}px`),r.setWrapperSize&&(i.style[t(`width`)]=`${e.virtualSize+b}px`),w&&e.grid.updateWrapperSize(T,p,t),!r.centeredSlides){let t=[];for(let n=0;n<p.length;n+=1){let i=p[n];r.roundLengths&&(i=Math.floor(i)),p[n]<=e.virtualSize-o&&t.push(i)}p=t,Math.floor(e.virtualSize-o)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-o)}if(l&&r.loop){let t=h[0]+b;if(r.slidesPerGroup>1){let n=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),i=t*r.slidesPerGroup;for(let e=0;e<n;e+=1)p.push(p[p.length-1]+i)}for(let n=0;n<e.virtual.slidesBefore+e.virtual.slidesAfter;n+=1)r.slidesPerGroup===1&&p.push(p[p.length-1]+t),m.push(m[m.length-1]+t),e.virtualSize+=t}if(p.length===0&&(p=[0]),b!==0){let n=e.isHorizontal()&&s?`marginLeft`:t(`marginRight`);d.filter((e,t)=>!r.cssMode||r.loop?!0:t!==d.length-1).forEach(e=>{e.style[n]=`${b}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let e=0;h.forEach(t=>{e+=t+(b||0)}),e-=b;let t=e-o;p=p.map(e=>e<=0?-g:e>t?t+_:e)}if(r.centerInsufficientSlides){let e=0;if(h.forEach(t=>{e+=t+(b||0)}),e-=b,e<o){let t=(o-e)/2;p.forEach((e,n)=>{p[n]=e-t}),m.forEach((e,n)=>{m[n]=e+t})}}if(Object.assign(e,{slides:d,snapGrid:p,slidesGrid:m,slidesSizesGrid:h}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){wx(i,`--swiper-centered-offset-before`,`${-p[0]}px`),wx(i,`--swiper-centered-offset-after`,`${e.size/2-h[h.length-1]/2}px`);let t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+n)}if(f!==u&&e.emit(`slidesLengthChange`),p.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit(`snapGridLengthChange`)),m.length!==y&&e.emit(`slidesGridLengthChange`),r.watchSlidesProgress&&e.updateSlidesOffset(),!l&&!r.cssMode&&(r.effect===`slide`||r.effect===`fade`)){let t=`${r.containerModifierClass}backface-hidden`,n=e.el.classList.contains(t);f<=r.maxBackfaceHiddenSlides?n||e.el.classList.add(t):n&&e.el.classList.remove(t)}}function Jx(e){let t=this,n=[],r=t.virtual&&t.params.virtual.enabled,i=0,a;typeof e==`number`?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);let o=e=>r?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if(t.params.slidesPerView!==`auto`&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{n.push(e)});else for(a=0;a<Math.ceil(t.params.slidesPerView);a+=1){let e=t.activeIndex+a;if(e>t.slides.length&&!r)break;n.push(o(e))}else n.push(o(t.activeIndex));for(a=0;a<n.length;a+=1)if(n[a]!==void 0){let e=n[a].offsetHeight;i=e>i?e:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function Yx(){let e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}function Xx(e=this&&this.translate||0){let t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:a}=t;if(r.length===0)return;r[0].swiperSlideOffset===void 0&&t.updateSlidesOffset();let o=-e;i&&(o=e),r.forEach(e=>{e.classList.remove(n.slideVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let s=n.spaceBetween;typeof s==`string`&&s.indexOf(`%`)>=0?s=parseFloat(s.replace(`%`,``))/100*t.size:typeof s==`string`&&(s=parseFloat(s));for(let e=0;e<r.length;e+=1){let c=r[e],l=c.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(l-=r[0].swiperSlideOffset);let u=(o+(n.centeredSlides?t.minTranslate():0)-l)/(c.swiperSlideSize+s),d=(o-a[0]+(n.centeredSlides?t.minTranslate():0)-l)/(c.swiperSlideSize+s),f=-(o-l),p=f+t.slidesSizesGrid[e];(f>=0&&f<t.size-1||p>1&&p<=t.size||f<=0&&p>=t.size)&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(e),r[e].classList.add(n.slideVisibleClass)),c.progress=i?-u:u,c.originalProgress=i?-d:d}}function Zx(e){let t=this;if(e===void 0){let n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}let n=t.params,r=t.maxTranslate()-t.minTranslate(),{progress:i,isBeginning:a,isEnd:o,progressLoop:s}=t,c=a,l=o;if(r===0)i=0,a=!0,o=!0;else{i=(e-t.minTranslate())/r;let n=Math.abs(e-t.minTranslate())<1,s=Math.abs(e-t.maxTranslate())<1;a=n||i<=0,o=s||i>=1,n&&(i=0),s&&(i=1)}if(n.loop){let n=t.getSlideIndexByData(0),r=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[n],a=t.slidesGrid[r],o=t.slidesGrid[t.slidesGrid.length-1],c=Math.abs(e);s=c>=i?(c-i)/o:(c+o-a)/o,s>1&&--s}Object.assign(t,{progress:i,progressLoop:s,isBeginning:a,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),a&&!c&&t.emit(`reachBeginning toEdge`),o&&!l&&t.emit(`reachEnd toEdge`),(c&&!a||l&&!o)&&t.emit(`fromEdge`),t.emit(`progress`,i)}function Qx(){let e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,a=e.virtual&&n.virtual.enabled,o=e=>Ex(r,`.${n.slideClass}${e}, swiper-slide${e}`)[0];t.forEach(e=>{e.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let s;if(a)if(n.loop){let t=i-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),s=o(`[data-swiper-slide-index="${t}"]`)}else s=o(`[data-swiper-slide-index="${i}"]`);else s=t[i];if(s){s.classList.add(n.slideActiveClass);let e=kx(s,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!e&&(e=t[0]),e&&e.classList.add(n.slideNextClass);let r=Ox(s,`.${n.slideClass}, swiper-slide`)[0];n.loop,r&&r.classList.add(n.slidePrevClass)}e.emitSlidesClasses()}var $x=(e,t)=>{if(!e||e.destroyed||!e.params)return;let n=t.closest(e.isElement?`swiper-slide`:`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);t&&t.remove()}},eS=(e,t)=>{if(!e.slides[t])return;let n=e.slides[t].querySelector(`[loading="lazy"]`);n&&n.removeAttribute(`loading`)},tS=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext,n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);let r=e.params.slidesPerView===`auto`?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){let n=i,a=[n-t];a.push(...Array.from({length:t}).map((e,t)=>n+r+t)),e.slides.forEach((t,n)=>{a.includes(t.column)&&eS(e,n)});return}let a=i+r-1;if(e.params.rewind||e.params.loop)for(let r=i-t;r<=a+t;r+=1){let t=(r%n+n)%n;(t<i||t>a)&&eS(e,t)}else for(let r=Math.max(i-t,0);r<=Math.min(a+t,n-1);r+=1)r!==i&&(r>a||r<i)&&eS(e,r)};function nS(e){let{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate,i;for(let e=0;e<t.length;e+=1)t[e+1]===void 0?r>=t[e]&&(i=e):r>=t[e]&&r<t[e+1]-(t[e+1]-t[e])/2?i=e:r>=t[e]&&r<t[e+1]&&(i=e+1);return n.normalizeSlideIndex&&(i<0||i===void 0)&&(i=0),i}function rS(e){let t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:a,realIndex:o,snapIndex:s}=t,c=e,l,u=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(c===void 0&&(c=nS(t)),r.indexOf(n)>=0)l=r.indexOf(n);else{let e=Math.min(i.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/i.slidesPerGroup)}if(l>=r.length&&(l=r.length-1),c===a){l!==s&&(t.snapIndex=l,t.emit(`snapIndexChange`)),t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=u(c));return}let d;d=t.virtual&&i.virtual.enabled&&i.loop?u(c):t.slides[c]?parseInt(t.slides[c].getAttribute(`data-swiper-slide-index`)||c,10):c,Object.assign(t,{previousSnapIndex:s,snapIndex:l,previousRealIndex:o,realIndex:d,previousIndex:a,activeIndex:c}),t.initialized&&tS(t),t.emit(`activeIndexChange`),t.emit(`snapIndexChange`),o!==d&&t.emit(`realIndexChange`),(t.initialized||t.params.runCallbacksOnInit)&&t.emit(`slideChange`)}function iS(e){let t=this,n=t.params,r=e.closest(`.${n.slideClass}, swiper-slide`),i=!1,a;if(r){for(let e=0;e<t.slides.length;e+=1)if(t.slides[e]===r){i=!0,a=e;break}}if(r&&i)t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(r.getAttribute(`data-swiper-slide-index`),10):t.clickedIndex=a;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}n.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}var aS={updateSize:Kx,updateSlides:qx,updateAutoHeight:Jx,updateSlidesOffset:Yx,updateSlidesProgress:Xx,updateProgress:Zx,updateSlidesClasses:Qx,updateActiveIndex:rS,updateClickedSlide:iS};function oS(e=this.isHorizontal()?`x`:`y`){let t=this,{params:n,rtlTranslate:r,translate:i,wrapperEl:a}=t;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;let o=bx(a,e);return o+=t.cssOverflowAdjustment(),r&&(o=-o),o||0}function sS(e,t){let n=this,{rtlTranslate:r,params:i,wrapperEl:a,progress:o}=n,s=0,c=0;n.isHorizontal()?s=r?-e:e:c=e,i.roundLengths&&(s=Math.floor(s),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?s:c,i.cssMode?a[n.isHorizontal()?`scrollLeft`:`scrollTop`]=n.isHorizontal()?-s:-c:i.virtualTranslate||(n.isHorizontal()?s-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),a.style.transform=`translate3d(${s}px, ${c}px, 0px)`);let l,u=n.maxTranslate()-n.minTranslate();l=u===0?0:(e-n.minTranslate())/u,l!==o&&n.updateProgress(e),n.emit(`setTranslate`,n.translate,t)}function cS(){return-this.snapGrid[0]}function lS(){return-this.snapGrid[this.snapGrid.length-1]}function uS(e=0,t=this.params.speed,n=!0,r=!0,i){let a=this,{params:o,wrapperEl:s}=a;if(a.animating&&o.preventInteractionOnTransition)return!1;let c=a.minTranslate(),l=a.maxTranslate(),u;if(u=r&&e>c?c:r&&e<l?l:e,a.updateProgress(u),o.cssMode){let e=a.isHorizontal();if(t===0)s[e?`scrollLeft`:`scrollTop`]=-u;else{if(!a.support.smoothScroll)return Tx({swiper:a,targetPosition:-u,side:e?`left`:`top`}),!0;s.scrollTo({[e?`left`:`top`]:-u,behavior:`smooth`})}return!0}return t===0?(a.setTransition(0),a.setTranslate(u),n&&(a.emit(`beforeTransitionStart`,t,i),a.emit(`transitionEnd`))):(a.setTransition(t),a.setTranslate(u),n&&(a.emit(`beforeTransitionStart`,t,i),a.emit(`transitionStart`)),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||=function(e){!a||a.destroyed||e.target===this&&(a.wrapperEl.removeEventListener(`transitionend`,a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,n&&a.emit(`transitionEnd`))},a.wrapperEl.addEventListener(`transitionend`,a.onTranslateToWrapperTransitionEnd))),!0}var dS={getTranslate:oS,setTranslate:sS,minTranslate:cS,maxTranslate:lS,translateTo:uS};function fS(e,t){let n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`),n.emit(`setTransition`,e,t)}function pS({swiper:e,runCallbacks:t,direction:n,step:r}){let{activeIndex:i,previousIndex:a}=e,o=n;if(o||=i>a?`next`:i<a?`prev`:`reset`,e.emit(`transition${r}`),t&&i!==a){if(o===`reset`){e.emit(`slideResetTransition${r}`);return}e.emit(`slideChangeTransition${r}`),o===`next`?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function mS(e=!0,t){let n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),pS({swiper:n,runCallbacks:e,direction:t,step:`Start`}))}function hS(e=!0,t){let n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),pS({swiper:n,runCallbacks:e,direction:t,step:`End`}))}var gS={setTransition:fS,transitionStart:mS,transitionEnd:hS};function _S(e=0,t=this.params.speed,n=!0,r,i){typeof e==`string`&&(e=parseInt(e,10));let a=this,o=e;o<0&&(o=0);let{params:s,snapGrid:c,slidesGrid:l,previousIndex:u,activeIndex:d,rtlTranslate:f,wrapperEl:p,enabled:m}=a;if(a.animating&&s.preventInteractionOnTransition||!m&&!r&&!i)return!1;let h=Math.min(a.params.slidesPerGroupSkip,o),g=h+Math.floor((o-h)/a.params.slidesPerGroup);g>=c.length&&(g=c.length-1);let _=-c[g];if(s.normalizeSlideIndex)for(let e=0;e<l.length;e+=1){let t=-Math.floor(_*100),n=Math.floor(l[e]*100),r=Math.floor(l[e+1]*100);l[e+1]===void 0?t>=n&&(o=e):t>=n&&t<r-(r-n)/2?o=e:t>=n&&t<r&&(o=e+1)}if(a.initialized&&o!==d&&(!a.allowSlideNext&&(f?_>a.translate&&_>a.minTranslate():_<a.translate&&_<a.minTranslate())||!a.allowSlidePrev&&_>a.translate&&_>a.maxTranslate()&&(d||0)!==o))return!1;o!==(u||0)&&n&&a.emit(`beforeSlideChangeStart`),a.updateProgress(_);let v;if(v=o>d?`next`:o<d?`prev`:`reset`,f&&-_===a.translate||!f&&_===a.translate)return a.updateActiveIndex(o),s.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),s.effect!==`slide`&&a.setTranslate(_),v!==`reset`&&(a.transitionStart(n,v),a.transitionEnd(n,v)),!1;if(s.cssMode){let e=a.isHorizontal(),n=f?_:-_;if(t===0){let t=a.virtual&&a.params.virtual.enabled;t&&(a.wrapperEl.style.scrollSnapType=`none`,a._immediateVirtual=!0),t&&!a._cssModeVirtualInitialSet&&a.params.initialSlide>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[e?`scrollLeft`:`scrollTop`]=n})):p[e?`scrollLeft`:`scrollTop`]=n,t&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType=``,a._immediateVirtual=!1})}else{if(!a.support.smoothScroll)return Tx({swiper:a,targetPosition:n,side:e?`left`:`top`}),!0;p.scrollTo({[e?`left`:`top`]:n,behavior:`smooth`})}return!0}return a.setTransition(t),a.setTranslate(_),a.updateActiveIndex(o),a.updateSlidesClasses(),a.emit(`beforeTransitionStart`,t,r),a.transitionStart(n,v),t===0?a.transitionEnd(n,v):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||=function(e){!a||a.destroyed||e.target===this&&(a.wrapperEl.removeEventListener(`transitionend`,a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(n,v))},a.wrapperEl.addEventListener(`transitionend`,a.onSlideToWrapperTransitionEnd)),!0}function vS(e=0,t=this.params.speed,n=!0,r){typeof e==`string`&&(e=parseInt(e,10));let i=this,a=e;return i.params.loop&&(i.virtual&&i.params.virtual.enabled?a+=i.virtual.slidesBefore:a=i.getSlideIndexByData(a)),i.slideTo(a,t,n,r)}function yS(e=this.params.speed,t=!0,n){let r=this,{enabled:i,params:a,animating:o}=r;if(!i)return r;let s=a.slidesPerGroup;a.slidesPerView===`auto`&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic(`current`,!0),1));let c=r.activeIndex<a.slidesPerGroupSkip?1:s,l=r.virtual&&a.virtual.enabled;if(a.loop){if(o&&!l&&a.loopPreventsSliding)return!1;r.loopFix({direction:`next`}),r._clientLeft=r.wrapperEl.clientLeft}return a.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+c,e,t,n)}function bS(e=this.params.speed,t=!0,n){let r=this,{params:i,snapGrid:a,slidesGrid:o,rtlTranslate:s,enabled:c,animating:l}=r;if(!c)return r;let u=r.virtual&&i.virtual.enabled;if(i.loop){if(l&&!u&&i.loopPreventsSliding)return!1;r.loopFix({direction:`prev`}),r._clientLeft=r.wrapperEl.clientLeft}let d=s?r.translate:-r.translate;function f(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}let p=f(d),m=a[a.map(e=>f(e)).indexOf(p)-1];if(m===void 0&&i.cssMode){let e;a.forEach((t,n)=>{p>=t&&(e=n)}),e!==void 0&&(m=a[e>0?e-1:e])}let h=0;if(m!==void 0&&(h=o.indexOf(m),h<0&&(h=r.activeIndex-1),i.slidesPerView===`auto`&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(h=h-r.slidesPerViewDynamic(`previous`,!0)+1,h=Math.max(h,0))),i.rewind&&r.isBeginning){let i=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(i,e,t,n)}return r.slideTo(h,e,t,n)}function xS(e=this.params.speed,t=!0,n){let r=this;return r.slideTo(r.activeIndex,e,t,n)}function SS(e=this.params.speed,t=!0,n,r=.5){let i=this,a=i.activeIndex,o=Math.min(i.params.slidesPerGroupSkip,a),s=o+Math.floor((a-o)/i.params.slidesPerGroup),c=i.rtlTranslate?i.translate:-i.translate;if(c>=i.snapGrid[s]){let e=i.snapGrid[s],t=i.snapGrid[s+1];c-e>(t-e)*r&&(a+=i.params.slidesPerGroup)}else{let e=i.snapGrid[s-1],t=i.snapGrid[s];c-e<=(t-e)*r&&(a-=i.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,i.slidesGrid.length-1),i.slideTo(a,e,t,n)}function CS(){let e=this,{params:t,slidesEl:n}=e,r=t.slidesPerView===`auto`?e.slidesPerViewDynamic():t.slidesPerView,i=e.clickedIndex,a,o=e.isElement?`swiper-slide`:`.${t.slideClass}`;if(t.loop){if(e.animating)return;a=parseInt(e.clickedSlide.getAttribute(`data-swiper-slide-index`),10),t.centeredSlides?i<e.loopedSlides-r/2||i>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),i=e.getSlideIndex(Ex(n,`${o}[data-swiper-slide-index="${a}"]`)[0]),_x(()=>{e.slideTo(i)})):e.slideTo(i):i>e.slides.length-r?(e.loopFix(),i=e.getSlideIndex(Ex(n,`${o}[data-swiper-slide-index="${a}"]`)[0]),_x(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}var wS={slideTo:_S,slideToLoop:vS,slideNext:yS,slidePrev:bS,slideReset:xS,slideToClosest:SS,slideToClickedSlide:CS};function TS(e){let t=this,{params:n,slidesEl:r}=t;!n.loop||t.virtual&&t.params.virtual.enabled||(Ex(r,`.${n.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute(`data-swiper-slide-index`,t)}),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:`next`}))}function ES({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:i,byController:a,byMousewheel:o}={}){let s=this;if(!s.params.loop)return;s.emit(`beforeLoopFix`);let{slides:c,allowSlidePrev:l,allowSlideNext:u,slidesEl:d,params:f}=s;if(s.allowSlidePrev=!0,s.allowSlideNext=!0,s.virtual&&f.virtual.enabled){t&&(!f.centeredSlides&&s.snapIndex===0?s.slideTo(s.virtual.slides.length,0,!1,!0):f.centeredSlides&&s.snapIndex<f.slidesPerView?s.slideTo(s.virtual.slides.length+s.snapIndex,0,!1,!0):s.snapIndex===s.snapGrid.length-1&&s.slideTo(s.virtual.slidesBefore,0,!1,!0)),s.allowSlidePrev=l,s.allowSlideNext=u,s.emit(`loopFix`);return}let p=f.slidesPerView===`auto`?s.slidesPerViewDynamic():Math.ceil(parseFloat(f.slidesPerView,10)),m=f.loopedSlides||p;m%f.slidesPerGroup!==0&&(m+=f.slidesPerGroup-m%f.slidesPerGroup),s.loopedSlides=m;let h=[],g=[],_=s.activeIndex;i===void 0?i=s.getSlideIndex(s.slides.filter(e=>e.classList.contains(f.slideActiveClass))[0]):_=i;let v=n===`next`||!n,y=n===`prev`||!n,b=0,x=0;if(i<m){b=Math.max(m-i,f.slidesPerGroup);for(let e=0;e<m-i;e+=1){let t=e-Math.floor(e/c.length)*c.length;h.push(c.length-t-1)}}else if(i>s.slides.length-m*2){x=Math.max(i-(s.slides.length-m*2),f.slidesPerGroup);for(let e=0;e<x;e+=1){let t=e-Math.floor(e/c.length)*c.length;g.push(t)}}if(y&&h.forEach(e=>{s.slides[e].swiperLoopMoveDOM=!0,d.prepend(s.slides[e]),s.slides[e].swiperLoopMoveDOM=!1}),v&&g.forEach(e=>{s.slides[e].swiperLoopMoveDOM=!0,d.append(s.slides[e]),s.slides[e].swiperLoopMoveDOM=!1}),s.recalcSlides(),f.slidesPerView===`auto`&&s.updateSlides(),f.watchSlidesProgress&&s.updateSlidesOffset(),t){if(h.length>0&&y)if(e===void 0){let e=s.slidesGrid[_],t=s.slidesGrid[_+b]-e;o?s.setTranslate(s.translate-t):(s.slideTo(_+b,0,!1,!0),r&&(s.touches[s.isHorizontal()?`startX`:`startY`]+=t))}else r&&s.slideToLoop(e,0,!1,!0);else if(g.length>0&&v)if(e===void 0){let e=s.slidesGrid[_],t=s.slidesGrid[_-x]-e;o?s.setTranslate(s.translate-t):(s.slideTo(_-x,0,!1,!0),r&&(s.touches[s.isHorizontal()?`startX`:`startY`]+=t))}else s.slideToLoop(e,0,!1,!0)}if(s.allowSlidePrev=l,s.allowSlideNext=u,s.controller&&s.controller.control&&!a){let t={slideRealIndex:e,slideTo:!1,direction:n,setTranslate:r,activeSlideIndex:i,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix(t)}):s.controller.control instanceof s.constructor&&s.controller.control.params.loop&&s.controller.control.loopFix(t)}s.emit(`loopFix`)}function DS(){let e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();let r=[];e.slides.forEach(e=>{let t=e.swiperSlideIndex===void 0?e.getAttribute(`data-swiper-slide-index`)*1:e.swiperSlideIndex;r[t]=e}),e.slides.forEach(e=>{e.removeAttribute(`data-swiper-slide-index`)}),r.forEach(e=>{n.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var OS={loopCreate:TS,loopFix:ES,loopDestroy:DS};function kS(e){let t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;let n=t.params.touchEventsTarget===`container`?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor=`move`,n.style.cursor=e?`grabbing`:`grab`,t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function AS(){let e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget===`container`?`el`:`wrapperEl`].style.cursor=``,e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var jS={setGrabCursor:kS,unsetGrabCursor:AS};function MS(e,t=this){function n(t){if(!t||t===px()||t===hx())return null;t.assignedSlot&&(t=t.assignedSlot);let r=t.closest(e);return!r&&!t.getRootNode?null:r||n(t.getRootNode().host)}return n(t)}function NS(e){let t=this,n=px(),r=hx(),i=t.touchEventsData;i.evCache.push(e);let{params:a,touches:o,enabled:s}=t;if(!s||!a.simulateTouch&&e.pointerType===`mouse`||t.animating&&a.preventInteractionOnTransition)return;!t.animating&&a.cssMode&&a.loop&&t.loopFix();let c=e;c.originalEvent&&(c=c.originalEvent);let l=c.target;if(a.touchEventsTarget===`wrapper`&&!t.wrapperEl.contains(l)||`which`in c&&c.which===3||`button`in c&&c.button>0||i.isTouched&&i.isMoved)return;let u=!!a.noSwipingClass&&a.noSwipingClass!==``,d=e.composedPath?e.composedPath():e.path;u&&c.target&&c.target.shadowRoot&&d&&(l=d[0]);let f=a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`,p=!!(c.target&&c.target.shadowRoot);if(a.noSwiping&&(p?MS(f,l):l.closest(f))){t.allowClick=!0;return}if(a.swipeHandler&&!l.closest(a.swipeHandler))return;o.currentX=c.pageX,o.currentY=c.pageY;let m=o.currentX,h=o.currentY,g=a.edgeSwipeDetection||a.iOSEdgeSwipeDetection,_=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(g&&(m<=_||m>=r.innerWidth-_))if(g===`prevent`)e.preventDefault();else return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=m,o.startY=h,i.touchStartTime=vx(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,a.threshold>0&&(i.allowThresholdMove=!1);let v=!0;l.matches(i.focusableElements)&&(v=!1,l.nodeName===`SELECT`&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==l&&n.activeElement.blur();let y=v&&t.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||y)&&!l.isContentEditable&&c.preventDefault(),a.freeMode&&a.freeMode.enabled&&t.freeMode&&t.animating&&!a.cssMode&&t.freeMode.onTouchStart(),t.emit(`touchStart`,c)}function PS(e){let t=px(),n=this,r=n.touchEventsData,{params:i,touches:a,rtlTranslate:o,enabled:s}=n;if(!s||!i.simulateTouch&&e.pointerType===`mouse`)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&n.emit(`touchMoveOpposite`,c);return}let l=r.evCache.findIndex(e=>e.pointerId===c.pointerId);l>=0&&(r.evCache[l]=c);let u=r.evCache.length>1?r.evCache[0]:c,d=u.pageX,f=u.pageY;if(c.preventedByNestedSwiper){a.startX=d,a.startY=f;return}if(!n.allowTouchMove){c.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(a,{startX:d,startY:f,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:d,currentY:f}),r.touchStartTime=vx());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(f<a.startY&&n.translate<=n.maxTranslate()||f>a.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(d<a.startX&&n.translate<=n.maxTranslate()||d>a.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&c.target===t.activeElement&&c.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}if(r.allowTouchCallbacks&&n.emit(`touchMove`,c),c.targetTouches&&c.targetTouches.length>1)return;a.currentX=d,a.currentY=f;let p=a.currentX-a.startX,m=a.currentY-a.startY;if(n.params.threshold&&Math.sqrt(p**2+m**2)<n.params.threshold)return;if(r.isScrolling===void 0){let e;n.isHorizontal()&&a.currentY===a.startY||n.isVertical()&&a.currentX===a.startX?r.isScrolling=!1:p*p+m*m>=25&&(e=Math.atan2(Math.abs(m),Math.abs(p))*180/Math.PI,r.isScrolling=n.isHorizontal()?e>i.touchAngle:90-e>i.touchAngle)}if(r.isScrolling&&n.emit(`touchMoveOpposite`,c),r.startMoving===void 0&&(a.currentX!==a.startX||a.currentY!==a.startY)&&(r.startMoving=!0),r.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&r.evCache.length>1){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&c.cancelable&&c.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&c.stopPropagation();let h=n.isHorizontal()?p:m,g=n.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;i.oneWayMovement&&(h=Math.abs(h)*(o?1:-1),g=Math.abs(g)*(o?1:-1)),a.diff=h,h*=i.touchRatio,o&&(h=-h,g=-g);let _=n.touchesDirection;n.swipeDirection=h>0?`prev`:`next`,n.touchesDirection=g>0?`prev`:`next`;let v=n.params.loop&&!i.cssMode;if(!r.isMoved){if(v&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){let e=new window.CustomEvent(`transitionend`,{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(e)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit(`sliderFirstMove`,c)}let y;r.isMoved&&_!==n.touchesDirection&&v&&Math.abs(h)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),y=!0),n.emit(`sliderMove`,c),r.isMoved=!0,r.currentTranslate=h+r.startTranslate;let b=!0,x=i.resistanceRatio;if(i.touchReleaseOnEdges&&(x=0),h>0?(v&&!y&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:`prev`,setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(b=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+h)**x))):h<0&&(v&&!y&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:`next`,setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView===`auto`?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(b=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-h)**x))),b&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection===`next`&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection===`prev`&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(h)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,r.currentTranslate=r.startTranslate,a.diff=n.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function FS(e){let t=this,n=t.touchEventsData,r=n.evCache.findIndex(t=>t.pointerId===e.pointerId);if(r>=0&&n.evCache.splice(r,1),[`pointercancel`,`pointerout`,`pointerleave`].includes(e.type)&&!(e.type===`pointercancel`&&(t.browser.isSafari||t.browser.isWebView)))return;let{params:i,touches:a,rtlTranslate:o,slidesGrid:s,enabled:c}=t;if(!c||!i.simulateTouch&&e.pointerType===`mouse`)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),n.allowTouchCallbacks&&t.emit(`touchEnd`,l),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&i.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}i.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);let u=vx(),d=u-n.touchStartTime;if(t.allowClick){let e=l.path||l.composedPath&&l.composedPath();t.updateClickedSlide(e&&e[0]||l.target),t.emit(`tap click`,l),d<300&&u-n.lastClickTime<300&&t.emit(`doubleTap doubleClick`,l)}if(n.lastClickTime=vx(),_x(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||a.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let f;if(f=i.followFinger?o?t.translate:-t.translate:-n.currentTranslate,i.cssMode)return;if(i.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:f});return}let p=0,m=t.slidesSizesGrid[0];for(let e=0;e<s.length;e+=e<i.slidesPerGroupSkip?1:i.slidesPerGroup){let t=e<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;s[e+t]===void 0?f>=s[e]&&(p=e,m=s[s.length-1]-s[s.length-2]):f>=s[e]&&f<s[e+t]&&(p=e,m=s[e+t]-s[e])}let h=null,g=null;i.rewind&&(t.isBeginning?g=i.virtual&&i.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(h=0));let _=(f-s[p])/m,v=p<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(d>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection===`next`&&(_>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?h:p+v):t.slideTo(p)),t.swipeDirection===`prev`&&(_>1-i.longSwipesRatio?t.slideTo(p+v):g!==null&&_<0&&Math.abs(_)>i.longSwipesRatio?t.slideTo(g):t.slideTo(p))}else{if(!i.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(l.target===t.navigation.nextEl||l.target===t.navigation.prevEl)?l.target===t.navigation.nextEl?t.slideTo(p+v):t.slideTo(p):(t.swipeDirection===`next`&&t.slideTo(h===null?p+v:h),t.swipeDirection===`prev`&&t.slideTo(g===null?p:g))}}function IS(){let e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();let{allowSlideNext:r,allowSlidePrev:i,snapGrid:a}=e,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();let s=o&&t.loop;(t.slidesPerView===`auto`||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!s?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}function LS(e){let t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function RS(){let e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i,a=e.maxTranslate()-e.minTranslate();i=a===0?0:(e.translate-e.minTranslate())/a,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit(`setTranslate`,e.translate,!1)}function zS(e){let t=this;$x(t,e.target),!(t.params.cssMode||t.params.slidesPerView!==`auto`&&!t.params.autoHeight)&&t.update()}var BS=!1;function VS(){}var HS=(e,t)=>{let n=px(),{params:r,el:i,wrapperEl:a,device:o}=e,s=!!r.nested,c=t===`on`?`addEventListener`:`removeEventListener`,l=t;i[c](`pointerdown`,e.onTouchStart,{passive:!1}),n[c](`pointermove`,e.onTouchMove,{passive:!1,capture:s}),n[c](`pointerup`,e.onTouchEnd,{passive:!0}),n[c](`pointercancel`,e.onTouchEnd,{passive:!0}),n[c](`pointerout`,e.onTouchEnd,{passive:!0}),n[c](`pointerleave`,e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[c](`click`,e.onClick,!0),r.cssMode&&a[c](`scroll`,e.onScroll),r.updateOnWindowResize?e[l](o.ios||o.android?`resize orientationchange observerUpdate`:`resize observerUpdate`,IS,!0):e[l](`observerUpdate`,IS,!0),i[c](`load`,e.onLoad,{capture:!0})};function US(){let e=this,t=px(),{params:n}=e;e.onTouchStart=NS.bind(e),e.onTouchMove=PS.bind(e),e.onTouchEnd=FS.bind(e),n.cssMode&&(e.onScroll=RS.bind(e)),e.onClick=LS.bind(e),e.onLoad=zS.bind(e),BS||=(t.addEventListener(`touchstart`,VS),!0),HS(e,`on`)}function WS(){HS(this,`off`)}var GS={attachEvents:US,detachEvents:WS},KS=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function qS(){let e=this,{realIndex:t,initialized:n,params:r,el:i}=e,a=r.breakpoints;if(!a||a&&Object.keys(a).length===0)return;let o=e.getBreakpoint(a,e.params.breakpointsBase,e.el);if(!o||e.currentBreakpoint===o)return;let s=(o in a?a[o]:void 0)||e.originalParams,c=KS(e,r),l=KS(e,s),u=r.enabled;c&&!l?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&l&&(i.classList.add(`${r.containerModifierClass}grid`),(s.grid.fill&&s.grid.fill===`column`||!s.grid.fill&&r.grid.fill===`column`)&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),[`navigation`,`pagination`,`scrollbar`].forEach(t=>{if(s[t]===void 0)return;let n=r[t]&&r[t].enabled,i=s[t]&&s[t].enabled;n&&!i&&e[t].disable(),!n&&i&&e[t].enable()});let d=s.direction&&s.direction!==r.direction,f=r.loop&&(s.slidesPerView!==r.slidesPerView||d);d&&n&&e.changeDirection(),Cx(e.params,s);let p=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),u&&!p?e.disable():!u&&p&&e.enable(),e.currentBreakpoint=o,e.emit(`_beforeBreakpoint`,s),f&&n&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit(`breakpoint`,s)}function JS(e,t=`window`,n){if(!e||t===`container`&&!n)return;let r=!1,i=hx(),a=t===`window`?i.innerHeight:n.clientHeight,o=Object.keys(e).map(e=>typeof e==`string`&&e.indexOf(`@`)===0?{value:a*parseFloat(e.substr(1)),point:e}:{value:e,point:e});o.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<o.length;e+=1){let{point:a,value:s}=o[e];t===`window`?i.matchMedia(`(min-width: ${s}px)`).matches&&(r=a):s<=n.clientWidth&&(r=a)}return r||`max`}var YS={setBreakpoint:qS,getBreakpoint:JS};function XS(e,t){let n=[];return e.forEach(e=>{typeof e==`object`?Object.keys(e).forEach(r=>{e[r]&&n.push(t+r)}):typeof e==`string`&&n.push(t+e)}),n}function ZS(){let e=this,{classNames:t,params:n,rtl:r,el:i,device:a}=e,o=XS([`initialized`,n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill===`column`},{android:a.android},{ios:a.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),i.classList.add(...t),e.emitContainerClasses()}function QS(){let e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}var $S={addClasses:ZS,removeClasses:QS};function eC(){let e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){let t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+r*2;e.isLocked=e.size>n}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?`lock`:`unlock`)}var tC={checkOverflow:eC},nC={init:!0,direction:`horizontal`,oneWayMovement:!1,touchEventsTarget:`wrapper`,initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:`input, select, option, textarea, button, video, label`,width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:`slide`,breakpoints:void 0,breakpointsBase:`window`,spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:`swiper-no-swiping`,noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:`swiper-`,slideClass:`swiper-slide`,slideActiveClass:`swiper-slide-active`,slideVisibleClass:`swiper-slide-visible`,slideNextClass:`swiper-slide-next`,slidePrevClass:`swiper-slide-prev`,wrapperClass:`swiper-wrapper`,lazyPreloaderClass:`swiper-lazy-preloader`,lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function rC(e,t){return function(n={}){let r=Object.keys(n)[0],i=n[r];if(typeof i!=`object`||!i){Cx(t,n);return}if([`navigation`,`pagination`,`scrollbar`].indexOf(r)>=0&&e[r]===!0&&(e[r]={auto:!0}),!(r in e&&`enabled`in i)){Cx(t,n);return}e[r]===!0&&(e[r]={enabled:!0}),typeof e[r]==`object`&&!(`enabled`in e[r])&&(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),Cx(t,n)}}var iC={eventsEmitter:Gx,update:aS,translate:dS,transition:gS,slide:wS,loop:OS,grabCursor:jS,events:GS,breakpoints:YS,checkOverflow:tC,classes:$S},aC={},oC=class e{constructor(...t){let n,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)===`Object`?r=t[0]:[n,r]=t,r||={},r=Cx({},r),n&&!r.el&&(r.el=n);let i=px();if(r.el&&typeof r.el==`string`&&i.querySelectorAll(r.el).length>1){let t=[];return i.querySelectorAll(r.el).forEach(n=>{let i=Cx({},r,{el:n});t.push(new e(i))}),t}let a=this;a.__swiper__=!0,a.support=Ix(),a.device=zx({userAgent:r.userAgent}),a.browser=Hx(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],r.modules&&Array.isArray(r.modules)&&a.modules.push(...r.modules);let o={};return a.modules.forEach(e=>{e({params:r,swiper:a,extendParams:rC(r,o),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})}),a.params=Cx({},Cx({},nC,o),aC,r),a.originalParams=Cx({},a.params),a.passedParams=Cx({},r),a.params&&a.params.on&&Object.keys(a.params.on).forEach(e=>{a.on(e,a.params.on[e])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction===`horizontal`},isVertical(){return a.params.direction===`vertical`},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit(`_swiper`),a.params.init&&a.init(),a}getSlideIndex(e){let{slidesEl:t,params:n}=this,r=jx(Ex(t,`.${n.slideClass}, swiper-slide`)[0]);return jx(e)-r}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(t=>t.getAttribute(`data-swiper-slide-index`)*1===e)[0])}recalcSlides(){let e=this,{slidesEl:t,params:n}=e;e.slides=Ex(t,`.${n.slideClass}, swiper-slide`)}enable(){let e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit(`enable`))}disable(){let e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit(`disable`))}setProgress(e,t){let n=this;e=Math.min(Math.max(e,0),1);let r=n.minTranslate(),i=(n.maxTranslate()-r)*e+r;n.translateTo(i,t===void 0?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=e.el.className.split(` `).filter(t=>t.indexOf(`swiper`)===0||t.indexOf(e.params.containerModifierClass)===0);e.emit(`_containerClasses`,t.join(` `))}getSlideClasses(e){let t=this;return t.destroyed?``:e.className.split(` `).filter(e=>e.indexOf(`swiper-slide`)===0||e.indexOf(t.params.slideClass)===0).join(` `)}emitSlidesClasses(){let e=this;if(!e.params._emitClasses||!e.el)return;let t=[];e.slides.forEach(n=>{let r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit(`_slideClass`,n,r)}),e.emit(`_slideClasses`,t)}slidesPerViewDynamic(e=`current`,t=!1){let{params:n,slides:r,slidesGrid:i,slidesSizesGrid:a,size:o,activeIndex:s}=this,c=1;if(n.centeredSlides){let e=r[s]?r[s].swiperSlideSize:0,t;for(let n=s+1;n<r.length;n+=1)r[n]&&!t&&(e+=r[n].swiperSlideSize,c+=1,e>o&&(t=!0));for(let n=s-1;n>=0;--n)r[n]&&!t&&(e+=r[n].swiperSlideSize,c+=1,e>o&&(t=!0))}else if(e===`current`)for(let e=s+1;e<r.length;e+=1)(t?i[e]+a[e]-i[s]<o:i[e]-i[s]<o)&&(c+=1);else for(let e=s-1;e>=0;--e)i[s]-i[e]<o&&(c+=1);return c}update(){let e=this;if(!e||e.destroyed)return;let{snapGrid:t,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll(`[loading="lazy"]`)].forEach(t=>{t.complete&&$x(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function r(){let t=e.rtlTranslate?e.translate*-1:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let i;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)r(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView===`auto`||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){let t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;i=e.slideTo(t.length-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||r()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit(`update`)}changeDirection(e,t=!0){let n=this,r=n.params.direction;return e||=r===`horizontal`?`vertical`:`horizontal`,e===r||e!==`horizontal`&&e!==`vertical`?n:(n.el.classList.remove(`${n.params.containerModifierClass}${r}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(t=>{e===`vertical`?t.style.width=``:t.style.height=``}),n.emit(`changeDirection`),t&&n.update(),n)}changeLanguageDirection(e){let t=this;t.rtl&&e===`rtl`||!t.rtl&&e===`ltr`||(t.rtl=e===`rtl`,t.rtlTranslate=t.params.direction===`horizontal`&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir=`rtl`):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir=`ltr`),t.update())}mount(e){let t=this;if(t.mounted)return!0;let n=e||t.params.el;if(typeof n==`string`&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.shadowEl&&(t.isElement=!0);let r=()=>`.${(t.params.wrapperClass||``).trim().split(` `).join(`.`)}`,i=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(r()):Ex(n,r())[0];return!i&&t.params.createElements&&(i=Dx(`div`,t.params.wrapperClass),n.append(i),Ex(n,`.${t.params.slideClass}`).forEach(e=>{i.append(e)})),Object.assign(t,{el:n,wrapperEl:i,slidesEl:t.isElement?n:i,mounted:!0,rtl:n.dir.toLowerCase()===`rtl`||Ax(n,`direction`)===`rtl`,rtlTranslate:t.params.direction===`horizontal`&&(n.dir.toLowerCase()===`rtl`||Ax(n,`direction`)===`rtl`),wrongRTL:Ax(i,`display`)===`-webkit-box`}),!0}init(e){let t=this;return t.initialized||t.mount(e)===!1?t:(t.emit(`beforeInit`),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents(),[...t.el.querySelectorAll(`[loading="lazy"]`)].forEach(e=>{e.complete?$x(t,e):e.addEventListener(`load`,e=>{$x(t,e.target)})}),tS(t),t.initialized=!0,tS(t),t.emit(`init`),t.emit(`afterInit`),t)}destroy(e=!0,t=!0){let n=this,{params:r,el:i,wrapperEl:a,slides:o}=n;return n.params===void 0||n.destroyed?null:(n.emit(`beforeDestroy`),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i.removeAttribute(`style`),a.removeAttribute(`style`),o&&o.length&&o.forEach(e=>{e.classList.remove(r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),e.removeAttribute(`style`),e.removeAttribute(`data-swiper-slide-index`)})),n.emit(`destroy`),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),e!==!1&&(n.el.swiper=null,gx(n)),n.destroyed=!0,null)}static extendDefaults(e){Cx(aC,e)}static get extendedDefaults(){return aC}static get defaults(){return nC}static installModule(t){e.prototype.__modules__||(e.prototype.__modules__=[]);let n=e.prototype.__modules__;typeof t==`function`&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(t=>e.installModule(t)),e):(e.installModule(t),e)}};Object.keys(iC).forEach(e=>{Object.keys(iC[e]).forEach(t=>{oC.prototype[t]=iC[e][t]})}),oC.use([Ux,Wx]);function sC({swiper:e,extendParams:t,on:n,emit:r}){let i=hx();t({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:`container`,thresholdDelta:null,thresholdTime:null,noMousewheelClass:`swiper-no-mousewheel`}}),e.mousewheel={enabled:!1};let a,o=vx(),s,c=[];function l(e){let t=0,n=0,r=0,i=0;return`detail`in e&&(n=e.detail),`wheelDelta`in e&&(n=-e.wheelDelta/120),`wheelDeltaY`in e&&(n=-e.wheelDeltaY/120),`wheelDeltaX`in e&&(t=-e.wheelDeltaX/120),`axis`in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*10,i=n*10,`deltaY`in e&&(i=e.deltaY),`deltaX`in e&&(r=e.deltaX),e.shiftKey&&!r&&(r=i,i=0),(r||i)&&e.deltaMode&&(e.deltaMode===1?(r*=40,i*=40):(r*=800,i*=800)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}function u(){e.enabled&&(e.mouseEntered=!0)}function d(){e.enabled&&(e.mouseEntered=!1)}function f(t){return e.params.mousewheel.thresholdDelta&&t.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&vx()-o<e.params.mousewheel.thresholdTime?!1:t.delta>=6&&vx()-o<60?!0:(t.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),r(`scroll`,t.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),r(`scroll`,t.raw)),o=new i.Date().getTime(),!1)}function p(t){let n=e.params.mousewheel;if(t.direction<0){if(e.isEnd&&!e.params.loop&&n.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&n.releaseOnEdges)return!0;return!1}function m(t){let n=t,i=!0;if(!e.enabled||t.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;let o=e.params.mousewheel;e.params.cssMode&&n.preventDefault();let u=e.el;e.params.mousewheel.eventsTarget!==`container`&&(u=document.querySelector(e.params.mousewheel.eventsTarget));let d=u&&u.contains(n.target);if(!e.mouseEntered&&!d&&!o.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);let m=0,h=e.rtlTranslate?-1:1,g=l(n);if(o.forceToAxis)if(e.isHorizontal())if(Math.abs(g.pixelX)>Math.abs(g.pixelY))m=-g.pixelX*h;else return!0;else if(Math.abs(g.pixelY)>Math.abs(g.pixelX))m=-g.pixelY;else return!0;else m=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*h:-g.pixelY;if(m===0)return!0;o.invert&&(m=-m);let _=e.getTranslate()+m*o.sensitivity;if(_>=e.minTranslate()&&(_=e.minTranslate()),_<=e.maxTranslate()&&(_=e.maxTranslate()),i=e.params.loop?!0:!(_===e.minTranslate()||_===e.maxTranslate()),i&&e.params.nested&&n.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){let e={time:vx(),delta:Math.abs(m),direction:Math.sign(m),raw:t};c.length>=2&&c.shift();let n=c.length?c[c.length-1]:void 0;if(c.push(e),n?(e.direction!==n.direction||e.delta>n.delta||e.time>n.time+150)&&f(e):f(e),p(e))return!0}else{let t={time:vx(),delta:Math.abs(m),direction:Math.sign(m)},i=s&&t.time<s.time+500&&t.delta<=s.delta&&t.direction===s.direction;if(!i){s=void 0;let l=e.getTranslate()+m*o.sensitivity,u=e.isBeginning,d=e.isEnd;if(l>=e.minTranslate()&&(l=e.minTranslate()),l<=e.maxTranslate()&&(l=e.maxTranslate()),e.setTransition(0),e.setTranslate(l),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!u&&e.isBeginning||!d&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:t.direction<0?`next`:`prev`,byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(a),a=void 0,c.length>=15&&c.shift();let n=c.length?c[c.length-1]:void 0,r=c[0];if(c.push(t),n&&(t.delta>n.delta||t.direction!==n.direction))c.splice(0);else if(c.length>=15&&t.time-r.time<500&&r.delta-t.delta>=1&&t.delta<=6){let n=m>0?.8:.2;s=t,c.splice(0),a=_x(()=>{e.slideToClosest(e.params.speed,!0,void 0,n)},0)}a||=_x(()=>{s=t,c.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500)}if(i||r(`scroll`,n),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),l===e.minTranslate()||l===e.maxTranslate())return!0}}return n.preventDefault?n.preventDefault():n.returnValue=!1,!1}function h(t){let n=e.el;e.params.mousewheel.eventsTarget!==`container`&&(n=document.querySelector(e.params.mousewheel.eventsTarget)),n[t](`mouseenter`,u),n[t](`mouseleave`,d),n[t](`wheel`,m)}function g(){return e.params.cssMode?(e.wrapperEl.removeEventListener(`wheel`,m),!0):e.mousewheel.enabled?!1:(h(`addEventListener`),e.mousewheel.enabled=!0,!0)}function _(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,m),!0):e.mousewheel.enabled?(h(`removeEventListener`),e.mousewheel.enabled=!1,!0):!1}n(`init`,()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&_(),e.params.mousewheel.enabled&&g()}),n(`destroy`,()=>{e.params.cssMode&&g(),e.mousewheel.enabled&&_()}),Object.assign(e.mousewheel,{enable:g,disable:_})}function cC(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&n.auto===!0){let a=Ex(e.el,`.${r[i]}`)[0];a||(a=Dx(`div`,r[i]),a.className=r[i],e.el.append(a)),n[i]=a,t[i]=a}}),n}function lC({swiper:e,extendParams:t,on:n,emit:r}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:`swiper-button-disabled`,hiddenClass:`swiper-button-hidden`,lockClass:`swiper-button-lock`,navigationDisabledClass:`swiper-navigation-disabled`}}),e.navigation={nextEl:null,prevEl:null};let i=e=>(Array.isArray(e)||(e=[e].filter(e=>!!e)),e);function a(t){let n;return t&&typeof t==`string`&&e.isElement&&(n=e.el.shadowRoot.querySelector(t),n)?n:(t&&(typeof t==`string`&&(n=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&typeof t==`string`&&n.length>1&&e.el.querySelectorAll(t).length===1&&(n=e.el.querySelector(t))),t&&!n?t:n)}function o(t,n){let r=e.params.navigation;t=i(t),t.forEach(t=>{t&&(t.classList[n?`add`:`remove`](...r.disabledClass.split(` `)),t.tagName===`BUTTON`&&(t.disabled=n),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?`add`:`remove`](r.lockClass))})}function s(){let{nextEl:t,prevEl:n}=e.navigation;if(e.params.loop){o(n,!1),o(t,!1);return}o(n,e.isBeginning&&!e.params.rewind),o(t,e.isEnd&&!e.params.rewind)}function c(t){t.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r(`navigationPrev`))}function l(t){t.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r(`navigationNext`))}function u(){let t=e.params.navigation;if(e.params.navigation=cC(e,e.originalParams.navigation,e.params.navigation,{nextEl:`swiper-button-next`,prevEl:`swiper-button-prev`}),!(t.nextEl||t.prevEl))return;let n=a(t.nextEl),r=a(t.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:r}),n=i(n),r=i(r);let o=(n,r)=>{n&&n.addEventListener(`click`,r===`next`?l:c),!e.enabled&&n&&n.classList.add(...t.lockClass.split(` `))};n.forEach(e=>o(e,`next`)),r.forEach(e=>o(e,`prev`))}function d(){let{nextEl:t,prevEl:n}=e.navigation;t=i(t),n=i(n);let r=(t,n)=>{t.removeEventListener(`click`,n===`next`?l:c),t.classList.remove(...e.params.navigation.disabledClass.split(` `))};t.forEach(e=>r(e,`next`)),n.forEach(e=>r(e,`prev`))}n(`init`,()=>{e.params.navigation.enabled===!1?p():(u(),s())}),n(`toEdge fromEdge lock unlock`,()=>{s()}),n(`destroy`,()=>{d()}),n(`enable disable`,()=>{let{nextEl:t,prevEl:n}=e.navigation;t=i(t),n=i(n),[...t,...n].filter(e=>!!e).forEach(t=>t.classList[e.enabled?`remove`:`add`](e.params.navigation.lockClass))}),n(`click`,(t,n)=>{let{nextEl:a,prevEl:o}=e.navigation;a=i(a),o=i(o);let s=n.target;if(e.params.navigation.hideOnClick&&!o.includes(s)&&!a.includes(s)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===s||e.pagination.el.contains(s)))return;let t;a.length?t=a[0].classList.contains(e.params.navigation.hiddenClass):o.length&&(t=o[0].classList.contains(e.params.navigation.hiddenClass)),r(t===!0?`navigationShow`:`navigationHide`),[...a,...o].filter(e=>!!e).forEach(t=>t.classList.toggle(e.params.navigation.hiddenClass))}});let f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(` `)),u(),s()},p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(` `)),d()};Object.assign(e.navigation,{enable:f,disable:p,update:s,init:u,destroy:d})}function uC(e=``){return`.${e.trim().replace(/([\.:!+\/])/g,`\\$1`).replace(/ /g,`.`)}`}function dC({swiper:e,extendParams:t,on:n,emit:r}){let i=`swiper-pagination`;t({pagination:{el:null,bulletElement:`span`,clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:`bullets`,dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),e.pagination={el:null,bullets:[]};let a,o=0,s=e=>(Array.isArray(e)||(e=[e].filter(e=>!!e)),e);function c(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function l(t,n){let{bulletActiveClass:r}=e.params.pagination;t&&(t=t[`${n===`prev`?`previous`:`next`}ElementSibling`],t&&(t.classList.add(`${r}-${n}`),t=t[`${n===`prev`?`previous`:`next`}ElementSibling`],t&&t.classList.add(`${r}-${n}-${n}`)))}function u(t){let n=t.target.closest(uC(e.params.pagination.bulletClass));if(!n)return;t.preventDefault();let r=jx(n)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===r)return;let t=e.getSlideIndexByData(r),n=e.getSlideIndexByData(e.realIndex);t>e.slides.length-e.loopedSlides&&e.loopFix({direction:t>n?`next`:`prev`,activeSlideIndex:t,slideTo:!1}),e.slideToLoop(r)}else e.slideTo(r)}function d(){let t=e.rtl,n=e.params.pagination;if(c())return;let i=e.pagination.el;i=s(i);let u,d,f=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,p=e.params.loop?Math.ceil(f/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(d=e.previousRealIndex||0,u=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):e.snapIndex===void 0?(d=e.previousIndex||0,u=e.activeIndex||0):(u=e.snapIndex,d=e.previousSnapIndex),n.type===`bullets`&&e.pagination.bullets&&e.pagination.bullets.length>0){let r=e.pagination.bullets,s,c,f;if(n.dynamicBullets&&(a=Nx(r[0],e.isHorizontal()?`width`:`height`,!0),i.forEach(t=>{t.style[e.isHorizontal()?`width`:`height`]=`${a*(n.dynamicMainBullets+4)}px`}),n.dynamicMainBullets>1&&d!==void 0&&(o+=u-(d||0),o>n.dynamicMainBullets-1?o=n.dynamicMainBullets-1:o<0&&(o=0)),s=Math.max(u-o,0),c=s+(Math.min(r.length,n.dynamicMainBullets)-1),f=(c+s)/2),r.forEach(e=>{let t=[...[``,`-next`,`-next-next`,`-prev`,`-prev-prev`,`-main`].map(e=>`${n.bulletActiveClass}${e}`)].map(e=>typeof e==`string`&&e.includes(` `)?e.split(` `):e).flat();e.classList.remove(...t)}),i.length>1)r.forEach(t=>{let r=jx(t);r===u?t.classList.add(...n.bulletActiveClass.split(` `)):e.isElement&&t.setAttribute(`part`,`bullet`),n.dynamicBullets&&(r>=s&&r<=c&&t.classList.add(...`${n.bulletActiveClass}-main`.split(` `)),r===s&&l(t,`prev`),r===c&&l(t,`next`))});else{let t=r[u];if(t&&t.classList.add(...n.bulletActiveClass.split(` `)),e.isElement&&r.forEach((e,t)=>{e.setAttribute(`part`,t===u?`bullet-active`:`bullet`)}),n.dynamicBullets){let e=r[s],t=r[c];for(let e=s;e<=c;e+=1)r[e]&&r[e].classList.add(...`${n.bulletActiveClass}-main`.split(` `));l(e,`prev`),l(t,`next`)}}if(n.dynamicBullets){let i=Math.min(r.length,n.dynamicMainBullets+4),o=(a*i-a)/2-f*a,s=t?`right`:`left`;r.forEach(t=>{t.style[e.isHorizontal()?s:`top`]=`${o}px`})}}i.forEach((t,i)=>{if(n.type===`fraction`&&(t.querySelectorAll(uC(n.currentClass)).forEach(e=>{e.textContent=n.formatFractionCurrent(u+1)}),t.querySelectorAll(uC(n.totalClass)).forEach(e=>{e.textContent=n.formatFractionTotal(p)})),n.type===`progressbar`){let r;r=n.progressbarOpposite?e.isHorizontal()?`vertical`:`horizontal`:e.isHorizontal()?`horizontal`:`vertical`;let i=(u+1)/p,a=1,o=1;r===`horizontal`?a=i:o=i,t.querySelectorAll(uC(n.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${a}) scaleY(${o})`,t.style.transitionDuration=`${e.params.speed}ms`})}n.type===`custom`&&n.renderCustom?(t.innerHTML=n.renderCustom(e,u+1,p),i===0&&r(`paginationRender`,t)):(i===0&&r(`paginationRender`,t),r(`paginationUpdate`,t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?`add`:`remove`](n.lockClass)})}function f(){let t=e.params.pagination;if(c())return;let n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,i=e.pagination.el;i=s(i);let a=``;if(t.type===`bullets`){let r=e.params.loop?Math.ceil(n/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&r>n&&(r=n);for(let n=0;n<r;n+=1)t.renderBullet?a+=t.renderBullet.call(e,n,t.bulletClass):a+=`<${t.bulletElement} ${e.isElement?`part="bullet"`:``} class="${t.bulletClass}"></${t.bulletElement}>`}t.type===`fraction`&&(a=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),t.type===`progressbar`&&(a=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],i.forEach(n=>{t.type!==`custom`&&(n.innerHTML=a||``),t.type===`bullets`&&e.pagination.bullets.push(...n.querySelectorAll(uC(t.bulletClass)))}),t.type!==`custom`&&r(`paginationRender`,i[0])}function p(){e.params.pagination=cC(e,e.originalParams.pagination,e.params.pagination,{el:`swiper-pagination`});let t=e.params.pagination;if(!t.el)return;let n;typeof t.el==`string`&&e.isElement&&(n=e.el.shadowRoot.querySelector(t.el)),!n&&typeof t.el==`string`&&(n=[...document.querySelectorAll(t.el)]),n||=t.el,!(!n||n.length===0)&&(e.params.uniqueNavElements&&typeof t.el==`string`&&Array.isArray(n)&&n.length>1&&(n=[...e.el.querySelectorAll(t.el)],n.length>1&&(n=n.filter(t=>Mx(t,`.swiper`)[0]===e.el)[0])),Array.isArray(n)&&n.length===1&&(n=n[0]),Object.assign(e.pagination,{el:n}),n=s(n),n.forEach(n=>{t.type===`bullets`&&t.clickable&&n.classList.add(t.clickableClass),n.classList.add(t.modifierClass+t.type),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.type===`bullets`&&t.dynamicBullets&&(n.classList.add(`${t.modifierClass}${t.type}-dynamic`),o=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),t.type===`progressbar`&&t.progressbarOpposite&&n.classList.add(t.progressbarOppositeClass),t.clickable&&n.addEventListener(`click`,u),e.enabled||n.classList.add(t.lockClass)}))}function m(){let t=e.params.pagination;if(c())return;let n=e.pagination.el;n&&(n=s(n),n.forEach(n=>{n.classList.remove(t.hiddenClass),n.classList.remove(t.modifierClass+t.type),n.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&n.removeEventListener(`click`,u)})),e.pagination.bullets&&e.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(` `)))}n(`changeDirection`,()=>{if(!e.pagination||!e.pagination.el)return;let t=e.params.pagination,{el:n}=e.pagination;n=s(n),n.forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n(`init`,()=>{e.params.pagination.enabled===!1?g():(p(),f(),d())}),n(`activeIndexChange`,()=>{e.snapIndex===void 0&&d()}),n(`snapIndexChange`,()=>{d()}),n(`snapGridLengthChange`,()=>{f(),d()}),n(`destroy`,()=>{m()}),n(`enable disable`,()=>{let{el:t}=e.pagination;t&&(t=s(t),t.forEach(t=>t.classList[e.enabled?`remove`:`add`](e.params.pagination.lockClass)))}),n(`lock unlock`,()=>{d()}),n(`click`,(t,n)=>{let i=n.target,{el:a}=e.pagination;if(Array.isArray(a)||(a=[a].filter(e=>!!e)),e.params.pagination.el&&e.params.pagination.hideOnClick&&a&&a.length>0&&!i.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&i===e.navigation.nextEl||e.navigation.prevEl&&i===e.navigation.prevEl))return;a[0].classList.contains(e.params.pagination.hiddenClass)===!0?r(`paginationShow`):r(`paginationHide`),a.forEach(t=>t.classList.toggle(e.params.pagination.hiddenClass))}});let h=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=s(t),t.forEach(t=>t.classList.remove(e.params.pagination.paginationDisabledClass))),p(),f(),d()},g=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=s(t),t.forEach(t=>t.classList.add(e.params.pagination.paginationDisabledClass))),m()};Object.assign(e.pagination,{enable:h,disable:g,render:f,update:d,init:p,destroy:m})}function fC({swiper:e,extendParams:t,on:n}){t({a11y:{enabled:!0,notificationClass:`swiper-notification`,prevSlideMessage:`Previous slide`,nextSlideMessage:`Next slide`,firstSlideMessage:`This is the first slide`,lastSlideMessage:`This is the last slide`,paginationBulletMessage:`Go to slide {{index}}`,slideLabelMessage:`{{index}} / {{slidesLength}}`,containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:`group`,id:null}}),e.a11y={clicked:!1};let r=null;function i(e){let t=r;t.length!==0&&(t.innerHTML=``,t.innerHTML=e)}let a=e=>(Array.isArray(e)||(e=[e].filter(e=>!!e)),e);function o(e=16){return`x`.repeat(e).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}function s(e){e=a(e),e.forEach(e=>{e.setAttribute(`tabIndex`,`0`)})}function c(e){e=a(e),e.forEach(e=>{e.setAttribute(`tabIndex`,`-1`)})}function l(e,t){e=a(e),e.forEach(e=>{e.setAttribute(`role`,t)})}function u(e,t){e=a(e),e.forEach(e=>{e.setAttribute(`aria-roledescription`,t)})}function d(e,t){e=a(e),e.forEach(e=>{e.setAttribute(`aria-controls`,t)})}function f(e,t){e=a(e),e.forEach(e=>{e.setAttribute(`aria-label`,t)})}function p(e,t){e=a(e),e.forEach(e=>{e.setAttribute(`id`,t)})}function m(e,t){e=a(e),e.forEach(e=>{e.setAttribute(`aria-live`,t)})}function h(e){e=a(e),e.forEach(e=>{e.setAttribute(`aria-disabled`,!0)})}function g(e){e=a(e),e.forEach(e=>{e.setAttribute(`aria-disabled`,!1)})}function _(t){if(t.keyCode!==13&&t.keyCode!==32)return;let n=e.params.a11y,r=t.target;e.pagination&&e.pagination.el&&(r===e.pagination.el||e.pagination.el.contains(t.target))&&!t.target.matches(uC(e.params.pagination.bulletClass))||(e.navigation&&e.navigation.nextEl&&r===e.navigation.nextEl&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?i(n.lastSlideMessage):i(n.nextSlideMessage)),e.navigation&&e.navigation.prevEl&&r===e.navigation.prevEl&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?i(n.firstSlideMessage):i(n.prevSlideMessage)),e.pagination&&r.matches(uC(e.params.pagination.bulletClass))&&r.click())}function v(){if(e.params.loop||e.params.rewind||!e.navigation)return;let{nextEl:t,prevEl:n}=e.navigation;n&&(e.isBeginning?(h(n),c(n)):(g(n),s(n))),t&&(e.isEnd?(h(t),c(t)):(g(t),s(t)))}function y(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function b(){return y()&&e.params.pagination.clickable}function x(){let t=e.params.a11y;y()&&e.pagination.bullets.forEach(n=>{e.params.pagination.clickable&&(s(n),e.params.pagination.renderBullet||(l(n,`button`),f(n,t.paginationBulletMessage.replace(/\{\{index\}\}/,jx(n)+1)))),n.matches(uC(e.params.pagination.bulletActiveClass))?n.setAttribute(`aria-current`,`true`):n.removeAttribute(`aria-current`)})}let S=(e,t,n)=>{s(e),e.tagName!==`BUTTON`&&(l(e,`button`),e.addEventListener(`keydown`,_)),f(e,n),d(e,t)},C=()=>{e.a11y.clicked=!0},w=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},T=t=>{if(e.a11y.clicked)return;let n=t.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!n||!e.slides.includes(n))return;let r=e.slides.indexOf(n)===e.activeIndex,i=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(n);r||i||t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,e.slideTo(e.slides.indexOf(n),0))},E=()=>{let t=e.params.a11y;t.itemRoleDescriptionMessage&&u(e.slides,t.itemRoleDescriptionMessage),t.slideRole&&l(e.slides,t.slideRole);let n=e.slides.length;t.slideLabelMessage&&e.slides.forEach((r,i)=>{let a=e.params.loop?parseInt(r.getAttribute(`data-swiper-slide-index`),10):i;f(r,t.slideLabelMessage.replace(/\{\{index\}\}/,a+1).replace(/\{\{slidesLength\}\}/,n))})},D=()=>{let t=e.params.a11y;e.isElement?e.el.shadowEl.append(r):e.el.append(r);let n=e.el;t.containerRoleDescriptionMessage&&u(n,t.containerRoleDescriptionMessage),t.containerMessage&&f(n,t.containerMessage);let i=e.wrapperEl,s=t.id||i.getAttribute(`id`)||`swiper-wrapper-${o(16)}`,c=e.params.autoplay&&e.params.autoplay.enabled?`off`:`polite`;p(i,s),m(i,c),E();let{nextEl:l,prevEl:d}=e.navigation?e.navigation:{};l=a(l),d=a(d),l&&l.forEach(e=>S(e,s,t.nextSlideMessage)),d&&d.forEach(e=>S(e,s,t.prevSlideMessage)),b()&&(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach(e=>{e.addEventListener(`keydown`,_)}),e.el.addEventListener(`focus`,T,!0),e.el.addEventListener(`pointerdown`,C,!0),e.el.addEventListener(`pointerup`,w,!0)};function O(){r&&r.remove();let{nextEl:t,prevEl:n}=e.navigation?e.navigation:{};t=a(t),n=a(n),t&&t.forEach(e=>e.removeEventListener(`keydown`,_)),n&&n.forEach(e=>e.removeEventListener(`keydown`,_)),b()&&(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach(e=>{e.removeEventListener(`keydown`,_)}),e.el.removeEventListener(`focus`,T,!0),e.el.removeEventListener(`pointerdown`,C,!0),e.el.removeEventListener(`pointerup`,w,!0)}n(`beforeInit`,()=>{r=Dx(`span`,e.params.a11y.notificationClass),r.setAttribute(`aria-live`,`assertive`),r.setAttribute(`aria-atomic`,`true`)}),n(`afterInit`,()=>{e.params.a11y.enabled&&D()}),n(`slidesLengthChange snapGridLengthChange slidesGridLengthChange`,()=>{e.params.a11y.enabled&&E()}),n(`fromEdge toEdge afterInit lock unlock`,()=>{e.params.a11y.enabled&&v()}),n(`paginationUpdate`,()=>{e.params.a11y.enabled&&x()}),n(`destroy`,()=>{e.params.a11y.enabled&&O()})}function pC({swiper:e,extendParams:t,on:n,emit:r,params:i}){e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,o,s=i&&i.autoplay?i.autoplay.delay:3e3,c=i&&i.autoplay?i.autoplay.delay:3e3,l,u=new Date().getTime,d,f,p,m,h,g;function _(t){!e||e.destroyed||!e.wrapperEl||t.target===e.wrapperEl&&(e.wrapperEl.removeEventListener(`transitionend`,_),w())}let v=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?d=!0:d&&=(c=l,!1);let t=e.autoplay.paused?l:u+c-new Date().getTime();e.autoplay.timeLeft=t,r(`autoplayTimeLeft`,t,t/s),o=requestAnimationFrame(()=>{v()})},y=()=>{let t;if(t=e.virtual&&e.params.virtual.enabled?e.slides.filter(e=>e.classList.contains(`swiper-slide-active`))[0]:e.slides[e.activeIndex],t)return parseInt(t.getAttribute(`data-swiper-autoplay`),10)},b=t=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(o),v();let n=t===void 0?e.params.autoplay.delay:t;s=e.params.autoplay.delay,c=e.params.autoplay.delay;let i=y();!Number.isNaN(i)&&i>0&&t===void 0&&(n=i,s=i,c=i),l=n;let d=e.params.speed,f=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(d,!0,!0),r(`autoplay`)):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,d,!0,!0),r(`autoplay`)):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(d,!0,!0),r(`autoplay`)):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,d,!0,!0),r(`autoplay`)),e.params.cssMode&&(u=new Date().getTime(),requestAnimationFrame(()=>{b()})))};return n>0?(clearTimeout(a),a=setTimeout(()=>{f()},n)):requestAnimationFrame(()=>{f()}),n},x=()=>{e.autoplay.running=!0,b(),r(`autoplayStart`)},S=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(o),r(`autoplayStop`)},C=(t,n)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),t||(g=!0);let i=()=>{r(`autoplayPause`),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener(`transitionend`,_):w()};if(e.autoplay.paused=!0,n){h&&(l=e.params.autoplay.delay),h=!1,i();return}l=(l||e.params.autoplay.delay)-(new Date().getTime()-u),!(e.isEnd&&l<0&&!e.params.loop)&&(l<0&&(l=0),i())},w=()=>{e.isEnd&&l<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(u=new Date().getTime(),g?(g=!1,b(l)):b(),e.autoplay.paused=!1,r(`autoplayResume`))},T=()=>{if(e.destroyed||!e.autoplay.running)return;let t=px();t.visibilityState===`hidden`&&(g=!0,C(!0)),t.visibilityState===`visible`&&w()},E=e=>{e.pointerType===`mouse`&&(g=!0,C(!0))},D=t=>{t.pointerType===`mouse`&&e.autoplay.paused&&w()},O=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener(`pointerenter`,E),e.el.addEventListener(`pointerleave`,D))},k=()=>{e.el.removeEventListener(`pointerenter`,E),e.el.removeEventListener(`pointerleave`,D)},A=()=>{px().addEventListener(`visibilitychange`,T)},j=()=>{px().removeEventListener(`visibilitychange`,T)};n(`init`,()=>{e.params.autoplay.enabled&&(O(),A(),u=new Date().getTime(),x())}),n(`destroy`,()=>{k(),j(),e.autoplay.running&&S()}),n(`beforeTransitionStart`,(t,n,r)=>{e.destroyed||!e.autoplay.running||(r||!e.params.autoplay.disableOnInteraction?C(!0,!0):S())}),n(`sliderFirstMove`,()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){S();return}f=!0,p=!1,g=!1,m=setTimeout(()=>{g=!0,p=!0,C(!0)},200)}}),n(`touchEnd`,()=>{if(!(e.destroyed||!e.autoplay.running||!f)){if(clearTimeout(m),clearTimeout(a),e.params.autoplay.disableOnInteraction){p=!1,f=!1;return}p&&e.params.cssMode&&w(),p=!1,f=!1}}),n(`slideChange`,()=>{e.destroyed||!e.autoplay.running||(h=!0)}),Object.assign(e.autoplay,{start:x,stop:S,pause:C,resume:w})}function mC({swiper:e,extendParams:t,on:n}){t({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:`swiper-slide-thumb-active`,thumbsContainerClass:`swiper-thumbs`}});let r=!1,i=!1;e.thumbs={swiper:null};function a(){let t=e.thumbs.swiper;if(!t||t.destroyed)return;let n=t.clickedIndex,r=t.clickedSlide;if(r&&r.classList.contains(e.params.thumbs.slideThumbActiveClass)||n==null)return;let i;i=t.params.loop?parseInt(t.clickedSlide.getAttribute(`data-swiper-slide-index`),10):n,e.params.loop?e.slideToLoop(i):e.slideTo(i)}function o(){let{thumbs:t}=e.params;if(r)return!1;r=!0;let n=e.constructor;if(t.swiper instanceof n)e.thumbs.swiper=t.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper.update();else if(xx(t.swiper)){let r=Object.assign({},t.swiper);Object.assign(r,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new n(r),i=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on(`tap`,a),!0}function s(t){let n=e.thumbs.swiper;if(!n||n.destroyed)return;let r=n.params.slidesPerView===`auto`?n.slidesPerViewDynamic():n.params.slidesPerView,i=1,a=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(i=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(i=1),i=Math.floor(i),n.slides.forEach(e=>e.classList.remove(a)),n.params.loop||n.params.virtual&&n.params.virtual.enabled)for(let t=0;t<i;t+=1)Ex(n.slidesEl,`[data-swiper-slide-index="${e.realIndex+t}"]`).forEach(e=>{e.classList.add(a)});else for(let t=0;t<i;t+=1)n.slides[e.realIndex+t]&&n.slides[e.realIndex+t].classList.add(a);let o=e.params.thumbs.autoScrollOffset,s=o&&!n.params.loop;if(e.realIndex!==n.realIndex||s){let i=n.activeIndex,a,c;if(n.params.loop){let t=n.slides.filter(t=>t.getAttribute(`data-swiper-slide-index`)===`${e.realIndex}`)[0];a=n.slides.indexOf(t),c=e.activeIndex>e.previousIndex?`next`:`prev`}else a=e.realIndex,c=a>e.previousIndex?`next`:`prev`;s&&(a+=c===`next`?o:-1*o),n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(a)<0&&(n.params.centeredSlides?a=a>i?a-Math.floor(r/2)+1:a+Math.floor(r/2)-1:a>i&&n.params.slidesPerGroup,n.slideTo(a,t?0:void 0))}}n(`beforeInit`,()=>{let{thumbs:t}=e.params;if(!(!t||!t.swiper))if(typeof t.swiper==`string`||t.swiper instanceof HTMLElement){let n=px(),r=()=>{let r=typeof t.swiper==`string`?n.querySelector(t.swiper):t.swiper;if(r&&r.swiper)t.swiper=r.swiper,o(),s(!0);else if(r){let n=i=>{t.swiper=i.detail[0],r.removeEventListener(`init`,n),o(),s(!0),t.swiper.update(),e.update()};r.addEventListener(`init`,n)}return r},i=()=>{e.destroyed||r()||requestAnimationFrame(i)};requestAnimationFrame(i)}else o(),s(!0)}),n(`slideChange update resize observerUpdate`,()=>{s()}),n(`setTransition`,(t,n)=>{let r=e.thumbs.swiper;!r||r.destroyed||r.setTransition(n)}),n(`beforeDestroy`,()=>{let t=e.thumbs.swiper;!t||t.destroyed||i&&t.destroy()}),Object.assign(e.thumbs,{init:o,update:s})}function hC(e){return typeof e==`object`&&!!e&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)===`Object`}function gC(e,t){let n=[`__proto__`,`constructor`,`prototype`];Object.keys(t).filter(e=>n.indexOf(e)<0).forEach(n=>{e[n]===void 0?e[n]=t[n]:hC(t[n])&&hC(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:gC(e[n],t[n]):e[n]=t[n]})}function _C(e={}){return e.navigation&&e.navigation.nextEl===void 0&&e.navigation.prevEl===void 0}function vC(e={}){return e.pagination&&e.pagination.el===void 0}function yC(e={}){return e.scrollbar&&e.scrollbar.el===void 0}function bC(e=``){let t=e.split(` `).map(e=>e.trim()).filter(e=>!!e),n=[];return t.forEach(e=>{n.indexOf(e)<0&&n.push(e)}),n.join(` `)}function xC(e=``){return e?e.includes(`swiper-wrapper`)?e:`swiper-wrapper ${e}`:`swiper-wrapper`}var SC=`eventsPrefix.injectStyles.injectStylesUrls.modules.init._direction.oneWayMovement.touchEventsTarget.initialSlide._speed.cssMode.updateOnWindowResize.resizeObserver.nested.focusableElements._enabled._width._height.preventInteractionOnTransition.userAgent.url._edgeSwipeDetection._edgeSwipeThreshold._freeMode._autoHeight.setWrapperSize.virtualTranslate._effect.breakpoints._spaceBetween._slidesPerView.maxBackfaceHiddenSlides._grid._slidesPerGroup._slidesPerGroupSkip._slidesPerGroupAuto._centeredSlides._centeredSlidesBounds._slidesOffsetBefore._slidesOffsetAfter.normalizeSlideIndex._centerInsufficientSlides._watchOverflow.roundLengths.touchRatio.touchAngle.simulateTouch._shortSwipes._longSwipes.longSwipesRatio.longSwipesMs._followFinger.allowTouchMove._threshold.touchMoveStopPropagation.touchStartPreventDefault.touchStartForcePreventDefault.touchReleaseOnEdges.uniqueNavElements._resistance._resistanceRatio._watchSlidesProgress._grabCursor.preventClicks.preventClicksPropagation._slideToClickedSlide._loop.loopedSlides.loopPreventsSliding._rewind._allowSlidePrev._allowSlideNext._swipeHandler._noSwiping.noSwipingClass.noSwipingSelector.passiveListeners.containerModifierClass.slideClass.slideActiveClass.slideVisibleClass.slideNextClass.slidePrevClass.wrapperClass.lazyPreloaderClass.lazyPreloadPrevNext.runCallbacksOnInit.observer.observeParents.observeSlideChildren.a11y._autoplay._controller.coverflowEffect.cubeEffect.fadeEffect.flipEffect.creativeEffect.cardsEffect.hashNavigation.history.keyboard.mousewheel._navigation._pagination.parallax._scrollbar._thumbs.virtual.zoom.control`.split(`.`);function CC(e={},t=!0){let n={on:{}},r={},i={};gC(n,oC.defaults),gC(n,oC.extendedDefaults),n._emitClasses=!0,n.init=!1;let a={},o=SC.map(e=>e.replace(/_/,``)),s=Object.assign({},e);return Object.keys(s).forEach(s=>{e[s]!==void 0&&(o.indexOf(s)>=0?hC(e[s])?(n[s]={},i[s]={},gC(n[s],e[s]),gC(i[s],e[s])):(n[s]=e[s],i[s]=e[s]):s.search(/on[A-Z]/)===0&&typeof e[s]==`function`?t?r[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:n.on[`${s[2].toLowerCase()}${s.substr(3)}`]=e[s]:a[s]=e[s])}),[`navigation`,`pagination`,`scrollbar`].forEach(e=>{n[e]===!0&&(n[e]={}),n[e]===!1&&delete n[e]}),{params:n,passedParams:i,rest:a,events:r}}function wC({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:i,swiper:a},o){_C(o)&&t&&n&&(a.params.navigation.nextEl=t,a.originalParams.navigation.nextEl=t,a.params.navigation.prevEl=n,a.originalParams.navigation.prevEl=n),vC(o)&&r&&(a.params.pagination.el=r,a.originalParams.pagination.el=r),yC(o)&&i&&(a.params.scrollbar.el=i,a.originalParams.scrollbar.el=i),a.init(e)}function TC(e,t,n,r,i){let a=[];if(!t)return a;let o=e=>{a.indexOf(e)<0&&a.push(e)};if(n&&r){let e=r.map(i),t=n.map(i);e.join(``)!==t.join(``)&&o(`children`),r.length!==n.length&&o(`children`)}return SC.filter(e=>e[0]===`_`).map(e=>e.replace(/_/,``)).forEach(n=>{if(n in e&&n in t)if(hC(e[n])&&hC(t[n])){let r=Object.keys(e[n]),i=Object.keys(t[n]);r.length===i.length?(r.forEach(r=>{e[n][r]!==t[n][r]&&o(n)}),i.forEach(r=>{e[n][r]!==t[n][r]&&o(n)})):o(n)}else e[n]!==t[n]&&o(n)}),a}function EC(e){return e.type&&e.type.displayName&&e.type.displayName.includes(`SwiperSlide`)}function DC(e){let t=[];return L.Children.toArray(e).forEach(e=>{EC(e)?t.push(e):e.props&&e.props.children&&DC(e.props.children).forEach(e=>t.push(e))}),t}function OC(e){let t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return L.Children.toArray(e).forEach(e=>{if(EC(e))t.push(e);else if(e.props&&e.props.slot&&n[e.props.slot])n[e.props.slot].push(e);else if(e.props&&e.props.children){let r=DC(e.props.children);r.length>0?r.forEach(e=>t.push(e)):n[`container-end`].push(e)}else n[`container-end`].push(e)}),{slides:t,slots:n}}function kC({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:i,prevEl:a,scrollbarEl:o,paginationEl:s}){let c=r.filter(e=>e!==`children`&&e!==`direction`&&e!==`wrapperClass`),{params:l,pagination:u,navigation:d,scrollbar:f,virtual:p,thumbs:m}=e,h,g,_,v,y,b,x,S;r.includes(`thumbs`)&&n.thumbs&&n.thumbs.swiper&&l.thumbs&&!l.thumbs.swiper&&(h=!0),r.includes(`controller`)&&n.controller&&n.controller.control&&l.controller&&!l.controller.control&&(g=!0),r.includes(`pagination`)&&n.pagination&&(n.pagination.el||s)&&(l.pagination||l.pagination===!1)&&u&&!u.el&&(_=!0),r.includes(`scrollbar`)&&n.scrollbar&&(n.scrollbar.el||o)&&(l.scrollbar||l.scrollbar===!1)&&f&&!f.el&&(v=!0),r.includes(`navigation`)&&n.navigation&&(n.navigation.prevEl||a)&&(n.navigation.nextEl||i)&&(l.navigation||l.navigation===!1)&&d&&!d.prevEl&&!d.nextEl&&(y=!0);let C=t=>{e[t]&&(e[t].destroy(),t===`navigation`?(e.isElement&&(e[t].prevEl.remove(),e[t].nextEl.remove()),l[t].prevEl=void 0,l[t].nextEl=void 0,e[t].prevEl=void 0,e[t].nextEl=void 0):(e.isElement&&e[t].el.remove(),l[t].el=void 0,e[t].el=void 0))};r.includes(`loop`)&&e.isElement&&(l.loop&&!n.loop?b=!0:!l.loop&&n.loop?x=!0:S=!0),c.forEach(e=>{if(hC(l[e])&&hC(n[e]))gC(l[e],n[e]),(e===`navigation`||e===`pagination`||e===`scrollbar`)&&`enabled`in n[e]&&!n[e].enabled&&C(e);else{let t=n[e];(t===!0||t===!1)&&(e===`navigation`||e===`pagination`||e===`scrollbar`)?t===!1&&C(e):l[e]=n[e]}}),c.includes(`controller`)&&!g&&e.controller&&e.controller.control&&l.controller&&l.controller.control&&(e.controller.control=l.controller.control),r.includes(`children`)&&t&&p&&l.virtual.enabled&&(p.slides=t,p.update(!0)),r.includes(`children`)&&t&&l.loop&&(S=!0),h&&m.init()&&m.update(!0),g&&(e.controller.control=l.controller.control),_&&(e.isElement&&(!s||typeof s==`string`)&&(s=document.createElement(`div`),s.classList.add(`swiper-pagination`),e.el.shadowEl.appendChild(s)),s&&(l.pagination.el=s),u.init(),u.render(),u.update()),v&&(e.isElement&&(!o||typeof o==`string`)&&(o=document.createElement(`div`),o.classList.add(`swiper-scrollbar`),e.el.shadowEl.appendChild(o)),o&&(l.scrollbar.el=o),f.init(),f.updateSize(),f.setTranslate()),y&&(e.isElement&&((!i||typeof i==`string`)&&(i=document.createElement(`div`),i.classList.add(`swiper-button-next`),e.el.shadowEl.appendChild(i)),(!a||typeof a==`string`)&&(a=document.createElement(`div`),a.classList.add(`swiper-button-prev`),e.el.shadowEl.appendChild(a))),i&&(l.navigation.nextEl=i),a&&(l.navigation.prevEl=a),d.init(),d.update()),r.includes(`allowSlideNext`)&&(e.allowSlideNext=n.allowSlideNext),r.includes(`allowSlidePrev`)&&(e.allowSlidePrev=n.allowSlidePrev),r.includes(`direction`)&&e.changeDirection(n.direction,!1),(b||S)&&e.loopDestroy(),(x||S)&&e.loopCreate(),e.update()}function AC(e,t,n){if(!n)return null;let r=e=>{let n=e;return e<0?n=t.length+e:n>=t.length&&(n-=t.length),n},i=e.isHorizontal()?{[e.rtlTranslate?`right`:`left`]:`${n.offset}px`}:{top:`${n.offset}px`},{from:a,to:o}=n,s=e.params.loop?-t.length:0,c=e.params.loop?t.length*2:t.length,l=[];for(let e=s;e<c;e+=1)e>=a&&e<=o&&l.push(t[r(e)]);return l.map((t,n)=>L.cloneElement(t,{swiper:e,style:i,key:`slide-${n}`}))}var jC=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function MC(e,t){return typeof window>`u`?(0,L.useEffect)(e,t):(0,L.useLayoutEffect)(e,t)}var NC=(0,L.createContext)(null),PC=(0,L.createContext)(null);function FC(){return FC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FC.apply(this,arguments)}var IC=(0,L.forwardRef)(function(e,t){let{className:n,tag:r=`div`,wrapperTag:i=`div`,children:a,onSwiper:o,...s}=e===void 0?{}:e,c=!1,[l,u]=(0,L.useState)(`swiper`),[d,f]=(0,L.useState)(null),[p,m]=(0,L.useState)(!1),h=(0,L.useRef)(!1),g=(0,L.useRef)(null),_=(0,L.useRef)(null),v=(0,L.useRef)(null),y=(0,L.useRef)(null),b=(0,L.useRef)(null),x=(0,L.useRef)(null),S=(0,L.useRef)(null),C=(0,L.useRef)(null),{params:w,passedParams:T,rest:E,events:D}=CC(s),{slides:O,slots:k}=OC(a),A=()=>{m(!p)};Object.assign(w.on,{_containerClasses(e,t){u(t)}});let j=()=>{Object.assign(w.on,D),c=!0;let e={...w};if(delete e.wrapperClass,_.current=new oC(e),_.current.virtual&&_.current.params.virtual.enabled){_.current.virtual.slides=O;let e={cache:!1,slides:O,renderExternal:f,renderExternalUpdate:!1};gC(_.current.params.virtual,e),gC(_.current.originalParams.virtual,e)}};g.current||j(),_.current&&_.current.on(`_beforeBreakpoint`,A);let ee=()=>{c||!D||!_.current||Object.keys(D).forEach(e=>{_.current.on(e,D[e])})},M=()=>{!D||!_.current||Object.keys(D).forEach(e=>{_.current.off(e,D[e])})};(0,L.useEffect)(()=>()=>{_.current&&_.current.off(`_beforeBreakpoint`,A)}),(0,L.useEffect)(()=>{!h.current&&_.current&&(_.current.emitSlidesClasses(),h.current=!0)}),MC(()=>{if(t&&(t.current=g.current),g.current)return _.current.destroyed&&j(),wC({el:g.current,nextEl:b.current,prevEl:x.current,paginationEl:S.current,scrollbarEl:C.current,swiper:_.current},w),o&&o(_.current),()=>{_.current&&!_.current.destroyed&&_.current.destroy(!0,!1)}},[]),MC(()=>{ee();let e=TC(T,v.current,O,y.current,e=>e.key);return v.current=T,y.current=O,e.length&&_.current&&!_.current.destroyed&&kC({swiper:_.current,slides:O,passedParams:T,changedParams:e,nextEl:b.current,prevEl:x.current,scrollbarEl:C.current,paginationEl:S.current}),()=>{M()}}),MC(()=>{jC(_.current)},[d]);function te(){return w.virtual?AC(_.current,O,d):O.map((e,t)=>L.cloneElement(e,{swiper:_.current,swiperSlideIndex:t}))}return L.createElement(r,FC({ref:g,className:bC(`${l}${n?` ${n}`:``}`)},E),L.createElement(PC.Provider,{value:_.current},k[`container-start`],L.createElement(i,{className:xC(w.wrapperClass)},k[`wrapper-start`],te(),k[`wrapper-end`]),_C(w)&&L.createElement(L.Fragment,null,L.createElement(`div`,{ref:x,className:`swiper-button-prev`}),L.createElement(`div`,{ref:b,className:`swiper-button-next`})),yC(w)&&L.createElement(`div`,{ref:C,className:`swiper-scrollbar`}),vC(w)&&L.createElement(`div`,{ref:S,className:`swiper-pagination`}),k[`container-end`]))});IC.displayName=`Swiper`;function LC(){return LC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LC.apply(this,arguments)}var RC=(0,L.forwardRef)(function(e,t){let{tag:n=`div`,children:r,className:i=``,swiper:a,zoom:o,lazy:s,virtualIndex:c,swiperSlideIndex:l,...u}=e===void 0?{}:e,d=(0,L.useRef)(null),[f,p]=(0,L.useState)(`swiper-slide`),[m,h]=(0,L.useState)(!1);function g(e,t,n){t===d.current&&p(n)}MC(()=>{if(l!==void 0&&(d.current.swiperSlideIndex=l),t&&(t.current=d.current),!(!d.current||!a)){if(a.destroyed){f!==`swiper-slide`&&p(`swiper-slide`);return}return a.on(`_slideClass`,g),()=>{a&&a.off(`_slideClass`,g)}}}),MC(()=>{a&&d.current&&!a.destroyed&&p(a.getSlideClasses(d.current))},[a]);let _={isActive:f.indexOf(`swiper-slide-active`)>=0,isVisible:f.indexOf(`swiper-slide-visible`)>=0,isPrev:f.indexOf(`swiper-slide-prev`)>=0,isNext:f.indexOf(`swiper-slide-next`)>=0},v=()=>typeof r==`function`?r(_):r,y=()=>{h(!0)};return L.createElement(n,LC({ref:d,className:bC(`${f}${i?` ${i}`:``}`),"data-swiper-slide-index":c,onLoad:y},u),o&&L.createElement(NC.Provider,{value:_},L.createElement(`div`,{className:`swiper-zoom-container`,"data-swiper-zoom":typeof o==`number`?o:void 0},v(),s&&!m&&L.createElement(`div`,{className:`swiper-lazy-preloader`}))),!o&&L.createElement(NC.Provider,{value:_},v(),s&&!m&&L.createElement(`div`,{className:`swiper-lazy-preloader`})))});RC.displayName=`SwiperSlide`;function zC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function VC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?BC(Object(n),!0).forEach(function(t){zC(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function HC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function UC(e,t){if(e==null)return{};var n=HC(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function WC(e,t){return GC(e)||KC(e,t)||qC(e,t)||YC()}function GC(e){if(Array.isArray(e))return e}function KC(e,t){if(!(typeof Symbol>`u`||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function qC(e,t){if(e){if(typeof e==`string`)return JC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JC(e,t)}}function JC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function YC(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XC(e){var t=e.src,n=e.checkForExisting,r=n===void 0?!1:n,i=UC(e,[`src`,`checkForExisting`]),a=WC((0,L.useState)(!!t),2),o=a[0],s=a[1],c=WC((0,L.useState)(null),2),l=c[0],u=c[1];return(0,L.useEffect)(function(){if(!(!ZC||!t)){if(r&&document.querySelectorAll(`script[src="${t}"]`).length>0){s(!1);return}var e=document.createElement(`script`);e.setAttribute(`src`,t),Object.keys(i).forEach(function(t){e[t]===void 0?e.setAttribute(t,i[t]):e[t]=i[t]});var n=function(){s(!1)},a=function(e){u(e)};return e.addEventListener(`load`,n),e.addEventListener(`error`,a),document.body.appendChild(e),function(){e.removeEventListener(`load`,n),e.removeEventListener(`error`,a)}}},[t]),[o,l]}var ZC=typeof window<`u`&&window.document!==void 0,QC=function(e){var t=WC(XC({src:`https://cdn.merge.dev/initialize.js`,checkForExisting:!0}),2),n=t[0],r=t[1],i=WC((0,L.useState)(!1),2),a=i[0],o=i[1],s=!(typeof window>`u`)&&!!window.MergeLink&&!n&&!r;return(0,L.useEffect)(function(){s&&window.MergeLink&&window.MergeLink.initialize(VC(VC({},e),{},{onReady:function(){return o(!0)}}))},[s,e]),{open:function(){window.MergeLink&&window.MergeLink.openLink(e)},isReady:a,error:r}};export{lf as C,Cf as S,p as T,Af as _,pC as a,Ef as b,lC as c,Rb as d,zb as f,Of as g,jf as h,mC as i,sC as l,Nb as m,RC as n,fC as o,Ub as p,IC as r,dC as s,QC as t,vy as u,Df as v,or as w,kf as x,Tf as y};