import{r as Uf,R as Er,a as v,_ as Yf,b as Zn,c as qf,g as Kf,l as fe}from"./react-Dj9FBkYo.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f6063ecf-2bb5-4608-a9ad-8a5dc35ba416",e._sentryDebugIdIdentifier="sentry-dbid-f6063ecf-2bb5-4608-a9ad-8a5dc35ba416")}catch{}})();var ao={exports:{}},sr={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ta;function Xf(){if(Ta)return sr;Ta=1;var e=Uf(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(a,l,c){var d,u={},b=null,g=null;c!==void 0&&(b=""+c),l.key!==void 0&&(b=""+l.key),l.ref!==void 0&&(g=l.ref);for(d in l)r.call(l,d)&&!o.hasOwnProperty(d)&&(u[d]=l[d]);if(a&&a.defaultProps)for(d in l=a.defaultProps,l)u[d]===void 0&&(u[d]=l[d]);return{$$typeof:t,type:a,key:b,ref:g,props:u,_owner:i.current}}return sr.Fragment=n,sr.jsx=s,sr.jsxs=s,sr}var Aa;function Zf(){return Aa||(Aa=1,ao.exports=Xf()),ao.exports}var M=Zf();function Jf(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 Qf(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 ep=function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Qf(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Jf(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Je="-ms-",gi="-moz-",xe="-webkit-",uc="comm",vs="rule",bs="decl",tp="@import",dc="@keyframes",np="@layer",rp=Math.abs,Fi=String.fromCharCode,ip=Object.assign;function op(e,t){return Ke(e,0)^45?(((t<<2^Ke(e,0))<<2^Ke(e,1))<<2^Ke(e,2))<<2^Ke(e,3):0}function fc(e){return e.trim()}function sp(e,t){return(e=t.exec(e))?e[0]:e}function Ce(e,t,n){return e.replace(t,n)}function zo(e,t){return e.indexOf(t)}function Ke(e,t){return e.charCodeAt(t)|0}function kr(e,t,n){return e.slice(t,n)}function zt(e){return e.length}function ys(e){return e.length}function Wr(e,t){return t.push(e),e}function ap(e,t){return e.map(t).join("")}var $i=1,Kn=1,pc=0,ft=0,je=0,Jn="";function zi(e,t,n,r,i,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:$i,column:Kn,length:s,return:""}}function ar(e,t){return ip(zi("",null,null,"",null,null,0),e,{length:-e.length},t)}function lp(){return je}function cp(){return je=ft>0?Ke(Jn,--ft):0,Kn--,je===10&&(Kn=1,$i--),je}function gt(){return je=ft<pc?Ke(Jn,ft++):0,Kn++,je===10&&(Kn=1,$i++),je}function Ht(){return Ke(Jn,ft)}function li(){return ft}function Mr(e,t){return kr(Jn,e,t)}function Tr(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 mc(e){return $i=Kn=1,pc=zt(Jn=e),ft=0,[]}function hc(e){return Jn="",e}function ci(e){return fc(Mr(ft-1,Bo(e===91?e+2:e===40?e+1:e)))}function up(e){for(;(je=Ht())&&je<33;)gt();return Tr(e)>2||Tr(je)>3?"":" "}function dp(e,t){for(;--t&>()&&!(je<48||je>102||je>57&&je<65||je>70&&je<97););return Mr(e,li()+(t<6&&Ht()==32&>()==32))}function Bo(e){for(;gt();)switch(je){case e:return ft;case 34:case 39:e!==34&&e!==39&&Bo(je);break;case 40:e===41&&Bo(e);break;case 92:gt();break}return ft}function fp(e,t){for(;gt()&&e+je!==57;)if(e+je===84&&Ht()===47)break;return"/*"+Mr(t,ft-1)+"*"+Fi(e===47?e:gt())}function pp(e){for(;!Tr(Ht());)gt();return Mr(e,ft)}function mp(e){return hc(ui("",null,null,null,[""],e=mc(e),0,[0],e))}function ui(e,t,n,r,i,o,s,a,l){for(var c=0,d=0,u=s,b=0,g=0,m=0,f=1,y=1,p=1,h=0,w="",S=i,x=o,A=r,T=w;y;)switch(m=h,h=gt()){case 40:if(m!=108&&Ke(T,u-1)==58){zo(T+=Ce(ci(h),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:T+=ci(h);break;case 9:case 10:case 13:case 32:T+=up(m);break;case 92:T+=dp(li()-1,7);continue;case 47:switch(Ht()){case 42:case 47:Wr(hp(fp(gt(),li()),t,n),l);break;default:T+="/"}break;case 123*f:a[c++]=zt(T)*p;case 125*f:case 59:case 0:switch(h){case 0:case 125:y=0;case 59+d:p==-1&&(T=Ce(T,/\f/g,"")),g>0&&zt(T)-u&&Wr(g>32?Ia(T+";",r,n,u-1):Ia(Ce(T," ","")+";",r,n,u-2),l);break;case 59:T+=";";default:if(Wr(A=Pa(T,t,n,c,d,i,a,w,S=[],x=[],u),o),h===123)if(d===0)ui(T,t,A,A,S,o,u,a,x);else switch(b===99&&Ke(T,3)===110?100:b){case 100:case 108:case 109:case 115:ui(e,A,A,r&&Wr(Pa(e,A,A,0,0,i,a,w,i,S=[],u),x),i,x,u,a,r?S:x);break;default:ui(T,A,A,A,[""],x,0,a,x)}}c=d=g=0,f=p=1,w=T="",u=s;break;case 58:u=1+zt(T),g=m;default:if(f<1){if(h==123)--f;else if(h==125&&f++==0&&cp()==125)continue}switch(T+=Fi(h),h*f){case 38:p=d>0?1:(T+="\f",-1);break;case 44:a[c++]=(zt(T)-1)*p,p=1;break;case 64:Ht()===45&&(T+=ci(gt())),b=Ht(),d=u=zt(w=T+=pp(li())),h++;break;case 45:m===45&&zt(T)==2&&(f=0)}}return o}function Pa(e,t,n,r,i,o,s,a,l,c,d){for(var u=i-1,b=i===0?o:[""],g=ys(b),m=0,f=0,y=0;m<r;++m)for(var p=0,h=kr(e,u+1,u=rp(f=s[m])),w=e;p<g;++p)(w=fc(f>0?b[p]+" "+h:Ce(h,/&\f/g,b[p])))&&(l[y++]=w);return zi(e,t,n,i===0?vs:a,l,c,d)}function hp(e,t,n){return zi(e,t,n,uc,Fi(lp()),kr(e,2,-2),0)}function Ia(e,t,n,r){return zi(e,t,n,bs,kr(e,0,r),kr(e,r+1,-1),r)}function Wn(e,t){for(var n="",r=ys(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function gp(e,t,n,r){switch(e.type){case np:if(e.children.length)break;case tp:case bs:return e.return=e.return||e.value;case uc:return"";case dc:return e.return=e.value+"{"+Wn(e.children,r)+"}";case vs:e.value=e.props.join(",")}return zt(n=Wn(e.children,r))?e.return=e.value+"{"+n+"}":""}function vp(e){var t=ys(e);return function(n,r,i,o){for(var s="",a=0;a<t;a++)s+=e[a](n,r,i,o)||"";return s}}function bp(e){return function(t){t.root||(t=t.return)&&e(t)}}var Oa=function(t){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var i=t(r);return n.set(r,i),i}};function yp(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var wp=function(t,n,r){for(var i=0,o=0;i=o,o=Ht(),i===38&&o===12&&(n[r]=1),!Tr(o);)gt();return Mr(t,ft)},Sp=function(t,n){var r=-1,i=44;do switch(Tr(i)){case 0:i===38&&Ht()===12&&(n[r]=1),t[r]+=wp(ft-1,n,r);break;case 2:t[r]+=ci(i);break;case 4:if(i===44){t[++r]=Ht()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Fi(i)}while(i=gt());return t},xp=function(t,n){return hc(Sp(mc(t),n))},Ra=new WeakMap,Cp=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Ra.get(r))&&!i){Ra.set(t,!0);for(var o=[],s=xp(n,o),a=r.props,l=0,c=0;l<s.length;l++)for(var d=0;d<a.length;d++,c++)t.props[c]=o[l]?s[l].replace(/&\f/g,a[d]):a[d]+" "+s[l]}}},Ep=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function gc(e,t){switch(op(e,t)){case 5103:return xe+"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 xe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return xe+e+gi+e+Je+e+e;case 6828:case 4268:return xe+e+Je+e+e;case 6165:return xe+e+Je+"flex-"+e+e;case 5187:return xe+e+Ce(e,/(\w+).+(:[^]+)/,xe+"box-$1$2"+Je+"flex-$1$2")+e;case 5443:return xe+e+Je+"flex-item-"+Ce(e,/flex-|-self/,"")+e;case 4675:return xe+e+Je+"flex-line-pack"+Ce(e,/align-content|flex-|-self/,"")+e;case 5548:return xe+e+Je+Ce(e,"shrink","negative")+e;case 5292:return xe+e+Je+Ce(e,"basis","preferred-size")+e;case 6060:return xe+"box-"+Ce(e,"-grow","")+xe+e+Je+Ce(e,"grow","positive")+e;case 4554:return xe+Ce(e,/([^-])(transform)/g,"$1"+xe+"$2")+e;case 6187:return Ce(Ce(Ce(e,/(zoom-|grab)/,xe+"$1"),/(image-set)/,xe+"$1"),e,"")+e;case 5495:case 3959:return Ce(e,/(image-set\([^]*)/,xe+"$1$`$1");case 4968:return Ce(Ce(e,/(.+:)(flex-)?(.*)/,xe+"box-pack:$3"+Je+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xe+e+e;case 4095:case 3583:case 4068:case 2532:return Ce(e,/(.+)-inline(.+)/,xe+"$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(zt(e)-1-t>6)switch(Ke(e,t+1)){case 109:if(Ke(e,t+4)!==45)break;case 102:return Ce(e,/(.+:)(.+)-([^]+)/,"$1"+xe+"$2-$3$1"+gi+(Ke(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zo(e,"stretch")?gc(Ce(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ke(e,t+1)!==115)break;case 6444:switch(Ke(e,zt(e)-3-(~zo(e,"!important")&&10))){case 107:return Ce(e,":",":"+xe)+e;case 101:return Ce(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+xe+(Ke(e,14)===45?"inline-":"")+"box$3$1"+xe+"$2$3$1"+Je+"$2box$3")+e}break;case 5936:switch(Ke(e,t+11)){case 114:return xe+e+Je+Ce(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xe+e+Je+Ce(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xe+e+Je+Ce(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return xe+e+Je+e+e}return e}var kp=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case bs:t.return=gc(t.value,t.length);break;case dc:return Wn([ar(t,{value:Ce(t.value,"@","@"+xe)})],i);case vs:if(t.length)return ap(t.props,function(o){switch(sp(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wn([ar(t,{props:[Ce(o,/:(read-\w+)/,":"+gi+"$1")]})],i);case"::placeholder":return Wn([ar(t,{props:[Ce(o,/:(plac\w+)/,":"+xe+"input-$1")]}),ar(t,{props:[Ce(o,/:(plac\w+)/,":"+gi+"$1")]}),ar(t,{props:[Ce(o,/:(plac\w+)/,Je+"input-$1")]})],i)}return""})}},Tp=[kp],Ap=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(f){var y=f.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var i=t.stylisPlugins||Tp,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(f){for(var y=f.getAttribute("data-emotion").split(" "),p=1;p<y.length;p++)o[y[p]]=!0;a.push(f)});var l,c=[Cp,Ep];{var d,u=[gp,bp(function(f){d.insert(f)})],b=vp(c.concat(i,u)),g=function(y){return Wn(mp(y),b)};l=function(y,p,h,w){d=h,g(y?y+"{"+p.styles+"}":p.styles),w&&(m.inserted[p.name]=!0)}}var m={key:n,sheet:new ep({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return m.sheet.hydrate(a),m},Pp=!0;function Ip(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var vc=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Pp===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},bc=function(t,n,r){vc(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function Op(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 Rp={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},_p=/[A-Z]|^ms/g,Mp=/_EMO_([^_]+?)_([^]*?)_EMO_/g,yc=function(t){return t.charCodeAt(1)===45},_a=function(t){return t!=null&&typeof t!="boolean"},lo=yp(function(e){return yc(e)?e:e.replace(_p,"-$&").toLowerCase()}),Ma=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Mp,function(r,i,o){return Bt={name:i,styles:o,next:Bt},i})}return Rp[t]!==1&&!yc(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ar(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 Bt={name:i.name,styles:i.styles,next:Bt},i.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)Bt={name:s.name,styles:s.styles,next:Bt},s=s.next;var a=o.styles+";";return a}return Dp(e,t,n)}case"function":{if(e!==void 0){var l=Bt,c=n(e);return Bt=l,Ar(e,t,c)}break}}var d=n;return d}function Dp(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Ar(e,t,n[i])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var a=s;_a(a)&&(r+=lo(o)+":"+Ma(o,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var l=0;l<s.length;l++)_a(s[l])&&(r+=lo(o)+":"+Ma(o,s[l])+";");else{var c=Ar(e,t,s);switch(o){case"animation":case"animationName":{r+=lo(o)+":"+c+";";break}default:r+=o+"{"+c+"}"}}}return r}var Da=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Bt;function ws(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="";Bt=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=Ar(n,t,o);else{var s=o;i+=s[0]}for(var a=1;a<e.length;a++)if(i+=Ar(n,t,e[a]),r){var l=o;i+=l[a]}Da.lastIndex=0;for(var c="",d;(d=Da.exec(i))!==null;)c+="-"+d[1];var u=Op(i)+c;return{name:u,styles:i,next:Bt}}var Lp=function(t){return t()},wc=Er.useInsertionEffect?Er.useInsertionEffect:!1,Np=wc||Lp,La=wc||v.useLayoutEffect,Sc=v.createContext(typeof HTMLElement<"u"?Ap({key:"css"}):null);Sc.Provider;var xc=function(t){return v.forwardRef(function(n,r){var i=v.useContext(Sc);return t(n,i,r)})},vi=v.createContext({}),Fp=function(t,n){if(typeof n=="function"){var r=n(t);return r}return Yf({},t,n)},$p=Oa(function(e){return Oa(function(t){return Fp(e,t)})}),zp=function(t){var n=v.useContext(vi);return t.theme!==n&&(n=$p(n)(t.theme)),v.createElement(vi.Provider,{value:n},t.children)},Bi={}.hasOwnProperty,jo="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Cc=function(t,n){var r={};for(var i in n)Bi.call(n,i)&&(r[i]=n[i]);return r[jo]=t,r},Bp=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return vc(n,r,i),Np(function(){return bc(n,r,i)}),null},jp=xc(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[jo],o=[r],s="";typeof e.className=="string"?s=Ip(t.registered,o,e.className):e.className!=null&&(s=e.className+" ");var a=ws(o,void 0,v.useContext(vi));s+=t.key+"-"+a.name;var l={};for(var c in e)Bi.call(e,c)&&c!=="css"&&c!==jo&&(l[c]=e[c]);return l.className=s,n&&(l.ref=n),v.createElement(v.Fragment,null,v.createElement(Bp,{cache:t,serialized:a,isStringTag:typeof i=="string"}),v.createElement(i,l))}),Ec=jp,Vp=xc(function(e,t){var n=e.styles,r=ws([n],void 0,v.useContext(vi)),i=v.useRef();return La(function(){var o=t.key+"-global",s=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,l=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),l!==null&&(a=!0,l.setAttribute("data-emotion",o),s.hydrate([l])),i.current=[s,a],function(){s.flush()}},[t]),La(function(){var o=i.current,s=o[0],a=o[1];if(a){o[1]=!1;return}if(r.next!==void 0&&bc(t,r.next,!0),s.tags.length){var l=s.tags[s.tags.length-1].nextElementSibling;s.before=l,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function Hp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ws(t)}var nn=function(){var t=Hp.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function ye(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e?.(i),n===!1||!i.defaultPrevented)return t?.(i)}}function Wp(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Ss(...e){return t=>e.forEach(n=>Wp(n,t))}function Te(...e){return v.useCallback(Ss(...e),e)}function Gp(e,t){const n=v.createContext(t);function r(o){const{children:s,...a}=o,l=v.useMemo(()=>a,Object.values(a));return M.jsx(n.Provider,{value:l,children:s})}function i(o){const s=v.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,i]}function Wt(e,t=[]){let n=[];function r(o,s){const a=v.createContext(s),l=n.length;n=[...n,s];function c(u){const{scope:b,children:g,...m}=u,f=b?.[e][l]||a,y=v.useMemo(()=>m,Object.values(m));return M.jsx(f.Provider,{value:y,children:g})}function d(u,b){const g=b?.[e][l]||a,m=v.useContext(g);if(m)return m;if(s!==void 0)return s;throw new Error(`\`${u}\` must be used within \`${o}\``)}return c.displayName=o+"Provider",[c,d]}const i=()=>{const o=n.map(s=>v.createContext(s));return function(a){const l=a?.[e]||o;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,Up(i,...t)]}function Up(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const s=r.reduce((a,{useScope:l,scopeName:c})=>{const u=l(o)[`__scope${c}`];return{...a,...u}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Qe=globalThis?.document?v.useLayoutEffect:()=>{},Yp=Er.useId||(()=>{}),qp=0;function xn(e){const[t,n]=v.useState(Yp());return Qe(()=>{n(r=>r??String(qp++))},[e]),t?`radix-${t}`:""}function Jt(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>t.current?.(...n),[])}function En({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=Kp({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:r,a=Jt(n),l=v.useCallback(c=>{if(o){const u=typeof c=="function"?c(e):c;u!==e&&a(u)}else i(c)},[o,e,i,a]);return[s,l]}function Kp({defaultProp:e,onChange:t}){const n=v.useState(e),[r]=n,i=v.useRef(r),o=Jt(t);return v.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}var Xn=v.forwardRef((e,t)=>{const{children:n,...r}=e,i=v.Children.toArray(n),o=i.find(Zp);if(o){const s=o.props.children,a=i.map(l=>l===o?v.Children.count(s)>1?v.Children.only(null):v.isValidElement(s)?s.props.children:null:l);return M.jsx(Vo,{...r,ref:t,children:v.isValidElement(s)?v.cloneElement(s,void 0,a):null})}return M.jsx(Vo,{...r,ref:t,children:n})});Xn.displayName="Slot";var Vo=v.forwardRef((e,t)=>{const{children:n,...r}=e;if(v.isValidElement(n)){const i=Qp(n);return v.cloneElement(n,{...Jp(r,n.props),ref:t?Ss(t,i):i})}return v.Children.count(n)>1?v.Children.only(null):null});Vo.displayName="SlotClone";var Xp=({children:e})=>M.jsx(M.Fragment,{children:e});function Zp(e){return v.isValidElement(e)&&e.type===Xp}function Jp(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{o(...a),i(...a)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function Qp(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 em=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ke=em.reduce((e,t)=>{const n=v.forwardRef((r,i)=>{const{asChild:o,...s}=r,a=o?Xn:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),M.jsx(a,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function tm(e,t){e&&Zn.flushSync(()=>e.dispatchEvent(t))}function nm(e,t=globalThis?.document){const n=Jt(e);v.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var rm="DismissableLayer",Ho="dismissableLayer.update",im="dismissableLayer.pointerDownOutside",om="dismissableLayer.focusOutside",Na,kc=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xs=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...l}=e,c=v.useContext(kc),[d,u]=v.useState(null),b=d?.ownerDocument??globalThis?.document,[,g]=v.useState({}),m=Te(t,T=>u(T)),f=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),p=f.indexOf(y),h=d?f.indexOf(d):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,S=h>=p,x=lm(T=>{const k=T.target,_=[...c.branches].some(z=>z.contains(k));!S||_||(i?.(T),s?.(T),T.defaultPrevented||a?.())},b),A=cm(T=>{const k=T.target;[...c.branches].some(z=>z.contains(k))||(o?.(T),s?.(T),T.defaultPrevented||a?.())},b);return nm(T=>{h===c.layers.size-1&&(r?.(T),!T.defaultPrevented&&a&&(T.preventDefault(),a()))},b),v.useEffect(()=>{if(d)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(Na=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),Fa(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Na)}},[d,b,n,c]),v.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Fa())},[d,c]),v.useEffect(()=>{const T=()=>g({});return document.addEventListener(Ho,T),()=>document.removeEventListener(Ho,T)},[]),M.jsx(ke.div,{...l,ref:m,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,A.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,x.onPointerDownCapture)})});xs.displayName=rm;var sm="DismissableLayerBranch",am=v.forwardRef((e,t)=>{const n=v.useContext(kc),r=v.useRef(null),i=Te(t,r);return v.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),M.jsx(ke.div,{...e,ref:i})});am.displayName=sm;function lm(e,t=globalThis?.document){const n=Jt(e),r=v.useRef(!1),i=v.useRef(()=>{});return v.useEffect(()=>{const o=a=>{if(a.target&&!r.current){let l=function(){Tc(im,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function cm(e,t=globalThis?.document){const n=Jt(e),r=v.useRef(!1);return v.useEffect(()=>{const i=o=>{o.target&&!r.current&&Tc(om,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Fa(){const e=new CustomEvent(Ho);document.dispatchEvent(e)}function Tc(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?tm(i,o):i.dispatchEvent(o)}var co="focusScope.autoFocusOnMount",uo="focusScope.autoFocusOnUnmount",$a={bubbles:!1,cancelable:!0},um="FocusScope",Cs=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[a,l]=v.useState(null),c=Jt(i),d=Jt(o),u=v.useRef(null),b=Te(t,f=>l(f)),g=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let f=function(w){if(g.paused||!a)return;const S=w.target;a.contains(S)?u.current=S:un(u.current,{select:!0})},y=function(w){if(g.paused||!a)return;const S=w.relatedTarget;S!==null&&(a.contains(S)||un(u.current,{select:!0}))},p=function(w){if(document.activeElement===document.body)for(const x of w)x.removedNodes.length>0&&un(a)};document.addEventListener("focusin",f),document.addEventListener("focusout",y);const h=new MutationObserver(p);return a&&h.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",y),h.disconnect()}}},[r,a,g.paused]),v.useEffect(()=>{if(a){Ba.add(g);const f=document.activeElement;if(!a.contains(f)){const p=new CustomEvent(co,$a);a.addEventListener(co,c),a.dispatchEvent(p),p.defaultPrevented||(dm(gm(Ac(a)),{select:!0}),document.activeElement===f&&un(a))}return()=>{a.removeEventListener(co,c),setTimeout(()=>{const p=new CustomEvent(uo,$a);a.addEventListener(uo,d),a.dispatchEvent(p),p.defaultPrevented||un(f??document.body,{select:!0}),a.removeEventListener(uo,d),Ba.remove(g)},0)}}},[a,c,d,g]);const m=v.useCallback(f=>{if(!n&&!r||g.paused)return;const y=f.key==="Tab"&&!f.altKey&&!f.ctrlKey&&!f.metaKey,p=document.activeElement;if(y&&p){const h=f.currentTarget,[w,S]=fm(h);w&&S?!f.shiftKey&&p===S?(f.preventDefault(),n&&un(w,{select:!0})):f.shiftKey&&p===w&&(f.preventDefault(),n&&un(S,{select:!0})):p===h&&f.preventDefault()}},[n,r,g.paused]);return M.jsx(ke.div,{tabIndex:-1,...s,ref:b,onKeyDown:m})});Cs.displayName=um;function dm(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(un(r,{select:t}),document.activeElement!==n)return}function fm(e){const t=Ac(e),n=za(t,e),r=za(t.reverse(),e);return[n,r]}function Ac(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function za(e,t){for(const n of e)if(!pm(n,{upTo:t}))return n}function pm(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 mm(e){return e instanceof HTMLInputElement&&"select"in e}function un(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&mm(e)&&t&&e.select()}}var Ba=hm();function hm(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=ja(e,t),e.unshift(t)},remove(t){e=ja(e,t),e[0]?.resume()}}}function ja(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function gm(e){return e.filter(t=>t.tagName!=="A")}var vm="Portal",Es=v.forwardRef((e,t)=>{const{container:n,...r}=e,[i,o]=v.useState(!1);Qe(()=>o(!0),[]);const s=n||i&&globalThis?.document?.body;return s?qf.createPortal(M.jsx(ke.div,{...r,ref:t}),s):null});Es.displayName=vm;function bm(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var On=e=>{const{present:t,children:n}=e,r=ym(t),i=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),o=Te(r.ref,wm(i));return typeof n=="function"||r.isPresent?v.cloneElement(i,{ref:o}):null};On.displayName="Presence";function ym(e){const[t,n]=v.useState(),r=v.useRef({}),i=v.useRef(e),o=v.useRef("none"),s=e?"mounted":"unmounted",[a,l]=bm(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const c=Gr(r.current);o.current=a==="mounted"?c:"none"},[a]),Qe(()=>{const c=r.current,d=i.current;if(d!==e){const b=o.current,g=Gr(c);e?l("MOUNT"):g==="none"||c?.display==="none"?l("UNMOUNT"):l(d&&b!==g?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Qe(()=>{if(t){const c=u=>{const g=Gr(r.current).includes(u.animationName);u.target===t&&g&&Zn.flushSync(()=>l("ANIMATION_END"))},d=u=>{u.target===t&&(o.current=Gr(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Gr(e){return e?.animationName||"none"}function wm(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 fo=0;function Pc(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Va()),document.body.insertAdjacentElement("beforeend",e[1]??Va()),fo++,()=>{fo===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),fo--}},[])}function Va(){const 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 dn=function(){return dn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},dn.apply(this,arguments)};function Sm(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 xm(e,t,n){for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var Gn="right-scroll-bar-position",Un="width-before-scroll-bar",Cm="with-scroll-bars-hidden",Em="--removed-body-scroll-bar-size";function po(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function km(e,t){var n=v.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var Tm=typeof window<"u"?v.useLayoutEffect:v.useEffect,Ha=new WeakMap;function ks(e,t){var n=km(null,function(r){return e.forEach(function(i){return po(i,r)})});return Tm(function(){var r=Ha.get(n);if(r){var i=new Set(r),o=new Set(e),s=n.current;i.forEach(function(a){o.has(a)||po(a,null)}),o.forEach(function(a){i.has(a)||po(a,s)})}Ha.set(n,e)},[e]),n}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var bi=function(){return bi=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},bi.apply(this,arguments)};function Am(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 Pm(e){return e}function Im(e,t){t===void 0&&(t=Pm);var n=[],r=!1,i={read:function(){if(r)throw new 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(o){var s=t(o,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(r=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(o),s=n}var l=function(){var d=s;s=[],d.forEach(o)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(d){s.push(d),c()},filter:function(d){return s=s.filter(d),n}}}};return i}function Ts(e){e===void 0&&(e={});var t=Im(null);return t.options=bi({async:!0,ssr:!1},e),t}var Ic=function(e){var t=e.sideCar,n=Am(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,bi({},n))};Ic.isSideCarExport=!0;function As(e,t){return e.useMedium(t),Ic}var Oc=Ts(),mo=function(){},ji=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:mo,onWheelCapture:mo,onTouchMoveCapture:mo}),i=r[0],o=r[1],s=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,u=e.shards,b=e.sideCar,g=e.noIsolation,m=e.inert,f=e.allowPinchZoom,y=e.as,p=y===void 0?"div":y,h=e.gapMode,w=Sm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=b,x=ks([n,t]),A=dn(dn({},w),i);return v.createElement(v.Fragment,null,d&&v.createElement(S,{sideCar:Oc,removeScrollBar:c,shards:u,noIsolation:g,inert:m,setCallbacks:o,allowPinchZoom:!!f,lockRef:n,gapMode:h}),s?v.cloneElement(v.Children.only(a),dn(dn({},A),{ref:x})):v.createElement(p,dn({},A,{className:l,ref:x}),a))});ji.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ji.classNames={fullWidth:Un,zeroRight:Gn};var Om=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Rm(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Om();return t&&e.setAttribute("nonce",t),e}function _m(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Mm(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Dm=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Rm())&&(_m(t,n),Mm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Lm=function(){var e=Dm();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Vi=function(){var e=Lm(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},Nm={left:0,top:0,right:0,gap:0},ho=function(e){return parseInt(e||"",10)||0},Fm=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[ho(n),ho(r),ho(i)]},$m=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Nm;var t=Fm(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])}},zm=Vi(),Yn="data-scroll-locked",Bm=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` .`.concat(Cm,` { overflow: hidden `).concat(r,`; padding-right: `).concat(a,"px ").concat(r,`; } body[`).concat(Yn,`] { overflow: hidden `).concat(r,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` padding-left: `.concat(i,`px; padding-top: `).concat(o,`px; padding-right: `).concat(s,`px; margin-left:0; margin-top:0; margin-right: `).concat(a,"px ").concat(r,`; `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),` } .`).concat(Gn,` { right: `).concat(a,"px ").concat(r,`; } .`).concat(Un,` { margin-right: `).concat(a,"px ").concat(r,`; } .`).concat(Gn," .").concat(Gn,` { right: 0 `).concat(r,`; } .`).concat(Un," .").concat(Un,` { margin-right: 0 `).concat(r,`; } body[`).concat(Yn,`] { `).concat(Em,": ").concat(a,`px; } `)},Wa=function(){var e=parseInt(document.body.getAttribute(Yn)||"0",10);return isFinite(e)?e:0},jm=function(){v.useEffect(function(){return document.body.setAttribute(Yn,(Wa()+1).toString()),function(){var e=Wa()-1;e<=0?document.body.removeAttribute(Yn):document.body.setAttribute(Yn,e.toString())}},[])},Ps=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;jm();var o=v.useMemo(function(){return $m(i)},[i]);return v.createElement(zm,{styles:Bm(o,!t,i,n?"":"!important")})},Wo=!1;if(typeof window<"u")try{var Ur=Object.defineProperty({},"passive",{get:function(){return Wo=!0,!0}});window.addEventListener("test",Ur,Ur),window.removeEventListener("test",Ur,Ur)}catch{Wo=!1}var Dn=Wo?{passive:!1}:!1,Vm=function(e){return e.tagName==="TEXTAREA"},Rc=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Vm(e)&&n[t]==="visible")},Hm=function(e){return Rc(e,"overflowY")},Wm=function(e){return Rc(e,"overflowX")},Ga=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=_c(e,r);if(i){var o=Mc(e,r),s=o[1],a=o[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Gm=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Um=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},_c=function(e,t){return e==="v"?Hm(t):Wm(t)},Mc=function(e,t){return e==="v"?Gm(t):Um(t)},Ym=function(e,t){return e==="h"&&t==="rtl"?-1:1},qm=function(e,t,n,r,i){var o=Ym(e,window.getComputedStyle(t).direction),s=o*r,a=n.target,l=t.contains(a),c=!1,d=s>0,u=0,b=0;do{var g=Mc(e,a),m=g[0],f=g[1],y=g[2],p=f-y-o*m;(m||p)&&_c(e,a)&&(u+=p,b+=m),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&Math.abs(u)<1||!d&&Math.abs(b)<1)&&(c=!0),c},Yr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ua=function(e){return[e.deltaX,e.deltaY]},Ya=function(e){return e&&"current"in e?e.current:e},Km=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Xm=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},Zm=0,Ln=[];function Jm(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),i=v.useState(Zm++)[0],o=v.useState(Vi)[0],s=v.useRef(e);v.useEffect(function(){s.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var f=xm([e.lockRef.current],(e.shards||[]).map(Ya)).filter(Boolean);return f.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),f.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=v.useCallback(function(f,y){if("touches"in f&&f.touches.length===2)return!s.current.allowPinchZoom;var p=Yr(f),h=n.current,w="deltaX"in f?f.deltaX:h[0]-p[0],S="deltaY"in f?f.deltaY:h[1]-p[1],x,A=f.target,T=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in f&&T==="h"&&A.type==="range")return!1;var k=Ga(T,A);if(!k)return!0;if(k?x=T:(x=T==="v"?"h":"v",k=Ga(T,A)),!k)return!1;if(!r.current&&"changedTouches"in f&&(w||S)&&(r.current=x),!x)return!0;var _=r.current||x;return qm(_,y,f,_==="h"?w:S)},[]),l=v.useCallback(function(f){var y=f;if(!(!Ln.length||Ln[Ln.length-1]!==o)){var p="deltaY"in y?Ua(y):Yr(y),h=t.current.filter(function(x){return x.name===y.type&&(x.target===y.target||y.target===x.shadowParent)&&Km(x.delta,p)})[0];if(h&&h.should){y.cancelable&&y.preventDefault();return}if(!h){var w=(s.current.shards||[]).map(Ya).filter(Boolean).filter(function(x){return x.contains(y.target)}),S=w.length>0?a(y,w[0]):!s.current.noIsolation;S&&y.cancelable&&y.preventDefault()}}},[]),c=v.useCallback(function(f,y,p,h){var w={name:f,delta:y,target:p,should:h,shadowParent:Qm(p)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),d=v.useCallback(function(f){n.current=Yr(f),r.current=void 0},[]),u=v.useCallback(function(f){c(f.type,Ua(f),f.target,a(f,e.lockRef.current))},[]),b=v.useCallback(function(f){c(f.type,Yr(f),f.target,a(f,e.lockRef.current))},[]);v.useEffect(function(){return Ln.push(o),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:b}),document.addEventListener("wheel",l,Dn),document.addEventListener("touchmove",l,Dn),document.addEventListener("touchstart",d,Dn),function(){Ln=Ln.filter(function(f){return f!==o}),document.removeEventListener("wheel",l,Dn),document.removeEventListener("touchmove",l,Dn),document.removeEventListener("touchstart",d,Dn)}},[]);var g=e.removeScrollBar,m=e.inert;return v.createElement(v.Fragment,null,m?v.createElement(o,{styles:Xm(i)}):null,g?v.createElement(Ps,{gapMode:e.gapMode}):null)}function Qm(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const eh=As(Oc,Jm);var Dc=v.forwardRef(function(e,t){return v.createElement(ji,dn({},e,{ref:t,sideCar:eh}))});Dc.classNames=ji.classNames;var th=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Nn=new WeakMap,qr=new WeakMap,Kr={},go=0,Lc=function(e){return e&&(e.host||Lc(e.parentNode))},nh=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Lc(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},rh=function(e,t,n,r){var i=nh(t,Array.isArray(e)?e:[e]);Kr[n]||(Kr[n]=new WeakMap);var o=Kr[n],s=[],a=new Set,l=new Set(i),c=function(u){!u||a.has(u)||(a.add(u),c(u.parentNode))};i.forEach(c);var d=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(b){if(a.has(b))d(b);else try{var g=b.getAttribute(r),m=g!==null&&g!=="false",f=(Nn.get(b)||0)+1,y=(o.get(b)||0)+1;Nn.set(b,f),o.set(b,y),s.push(b),f===1&&m&&qr.set(b,!0),y===1&&b.setAttribute(n,"true"),m||b.setAttribute(r,"true")}catch(p){console.error("aria-hidden: cannot operate on ",b,p)}})};return d(t),a.clear(),go++,function(){s.forEach(function(u){var b=Nn.get(u)-1,g=o.get(u)-1;Nn.set(u,b),o.set(u,g),b||(qr.has(u)||u.removeAttribute(r),qr.delete(u)),g||u.removeAttribute(n)}),go--,go||(Nn=new WeakMap,Nn=new WeakMap,qr=new WeakMap,Kr={})}},Nc=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=th(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),rh(r,i,n,"aria-hidden")):function(){return null}},Is="Dialog",[Fc,zC]=Wt(Is),[ih,_t]=Fc(Is),$c=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,a=v.useRef(null),l=v.useRef(null),[c=!1,d]=En({prop:r,defaultProp:i,onChange:o});return M.jsx(ih,{scope:t,triggerRef:a,contentRef:l,contentId:xn(),titleId:xn(),descriptionId:xn(),open:c,onOpenChange:d,onOpenToggle:v.useCallback(()=>d(u=>!u),[d]),modal:s,children:n})};$c.displayName=Is;var zc="DialogTrigger",oh=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=_t(zc,n),o=Te(t,i.triggerRef);return M.jsx(ke.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":_s(i.open),...r,ref:o,onClick:ye(e.onClick,i.onOpenToggle)})});oh.displayName=zc;var Os="DialogPortal",[sh,Bc]=Fc(Os,{forceMount:void 0}),jc=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=_t(Os,t);return M.jsx(sh,{scope:t,forceMount:n,children:v.Children.map(r,s=>M.jsx(On,{present:n||o.open,children:M.jsx(Es,{asChild:!0,container:i,children:s})}))})};jc.displayName=Os;var yi="DialogOverlay",Vc=v.forwardRef((e,t)=>{const n=Bc(yi,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=_t(yi,e.__scopeDialog);return o.modal?M.jsx(On,{present:r||o.open,children:M.jsx(ah,{...i,ref:t})}):null});Vc.displayName=yi;var ah=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=_t(yi,n);return M.jsx(Dc,{as:Xn,allowPinchZoom:!0,shards:[i.contentRef],children:M.jsx(ke.div,{"data-state":_s(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),kn="DialogContent",Hc=v.forwardRef((e,t)=>{const n=Bc(kn,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=_t(kn,e.__scopeDialog);return M.jsx(On,{present:r||o.open,children:o.modal?M.jsx(lh,{...i,ref:t}):M.jsx(ch,{...i,ref:t})})});Hc.displayName=kn;var lh=v.forwardRef((e,t)=>{const n=_t(kn,e.__scopeDialog),r=v.useRef(null),i=Te(t,n.contentRef,r);return v.useEffect(()=>{const o=r.current;if(o)return Nc(o)},[]),M.jsx(Wc,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ye(e.onCloseAutoFocus,o=>{o.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:ye(e.onPointerDownOutside,o=>{const s=o.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&o.preventDefault()}),onFocusOutside:ye(e.onFocusOutside,o=>o.preventDefault())})}),ch=v.forwardRef((e,t)=>{const n=_t(kn,e.__scopeDialog),r=v.useRef(!1),i=v.useRef(!1);return M.jsx(Wc,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{e.onCloseAutoFocus?.(o),o.defaultPrevented||(r.current||n.triggerRef.current?.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{e.onInteractOutside?.(o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const s=o.target;n.triggerRef.current?.contains(s)&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),Wc=v.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...s}=e,a=_t(kn,n),l=v.useRef(null),c=Te(t,l);return Pc(),M.jsxs(M.Fragment,{children:[M.jsx(Cs,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:M.jsx(xs,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":_s(a.open),...s,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),M.jsxs(M.Fragment,{children:[M.jsx(uh,{titleId:a.titleId}),M.jsx(fh,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Rs="DialogTitle",Gc=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=_t(Rs,n);return M.jsx(ke.h2,{id:i.titleId,...r,ref:t})});Gc.displayName=Rs;var Uc="DialogDescription",Yc=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=_t(Uc,n);return M.jsx(ke.p,{id:i.descriptionId,...r,ref:t})});Yc.displayName=Uc;var qc="DialogClose",Kc=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=_t(qc,n);return M.jsx(ke.button,{type:"button",...r,ref:t,onClick:ye(e.onClick,()=>i.onOpenChange(!1))})});Kc.displayName=qc;function _s(e){return e?"open":"closed"}var Xc="DialogTitleWarning",[BC,Zc]=Gp(Xc,{contentName:kn,titleName:Rs,docsSlug:"dialog"}),uh=({titleId:e})=>{const t=Zc(Xc),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 v.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},dh="DialogDescriptionWarning",fh=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Zc(dh).contentName}}.`;return v.useEffect(()=>{const i=e.current?.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ph=$c,mh=jc,hh=Vc,gh=Hc,vh=Gc,bh=Yc,yh=Kc,Hi=M.Fragment;function C(e,t,n){return Bi.call(t,"css")?M.jsx(Ec,Cc(e,t),n):M.jsx(e,t,n)}function ae(e,t,n){return Bi.call(t,"css")?M.jsxs(Ec,Cc(e,t),n):M.jsxs(e,t,n)}function Jc(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=Jc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function wh(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Jc(e))&&(r&&(r+=" "),r+=t);return r}var vo={};const Sh=JSON.parse('["-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"]'),xh={properties:Sh};var qa;function Ch(){return qa||(qa=1,vo.all=xh.properties),vo}var Eh=Ch();const kh=Kf(Eh);/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */const{entries:Qc,setPrototypeOf:Ka,isFrozen:Th,getPrototypeOf:Ah,getOwnPropertyDescriptor:Ph}=Object;let{freeze:ot,seal:Ct,create:eu}=Object,{apply:Go,construct:Uo}=typeof Reflect<"u"&&Reflect;ot||(ot=function(t){return t});Ct||(Ct=function(t){return t});Go||(Go=function(t,n,r){return t.apply(n,r)});Uo||(Uo=function(t,n){return new t(...n)});const Xr=st(Array.prototype.forEach),Ih=st(Array.prototype.lastIndexOf),Xa=st(Array.prototype.pop),lr=st(Array.prototype.push),Oh=st(Array.prototype.splice),di=st(String.prototype.toLowerCase),bo=st(String.prototype.toString),Za=st(String.prototype.match),cr=st(String.prototype.replace),Rh=st(String.prototype.indexOf),_h=st(String.prototype.trim),Tt=st(Object.prototype.hasOwnProperty),nt=st(RegExp.prototype.test),ur=Mh(TypeError);function st(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Go(e,t,r)}}function Mh(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Uo(e,n)}}function ve(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:di;Ka&&Ka(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const o=n(i);o!==i&&(Th(t)||(t[r]=o),i=o)}e[i]=!0}return e}function Dh(e){for(let t=0;t<e.length;t++)Tt(e,t)||(e[t]=null);return e}function Sn(e){const t=eu(null);for(const[n,r]of Qc(e))Tt(e,n)&&(Array.isArray(r)?t[n]=Dh(r):r&&typeof r=="object"&&r.constructor===Object?t[n]=Sn(r):t[n]=r);return t}function dr(e,t){for(;e!==null;){const r=Ph(e,t);if(r){if(r.get)return st(r.get);if(typeof r.value=="function")return st(r.value)}e=Ah(e)}function n(){return null}return n}const Ja=ot(["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","section","select","shadow","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"]),yo=ot(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),wo=ot(["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"]),Lh=ot(["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"]),So=ot(["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"]),Nh=ot(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Qa=ot(["#text"]),el=ot(["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","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),xo=ot(["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","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"]),tl=ot(["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"]),Zr=ot(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Fh=Ct(/\{\{[\w\W]*|[\w\W]*\}\}/gm),$h=Ct(/<%[\w\W]*|[\w\W]*%>/gm),zh=Ct(/\$\{[\w\W]*/gm),Bh=Ct(/^data-[\-\w.\u00B7-\uFFFF]+$/),jh=Ct(/^aria-[\-\w]+$/),tu=Ct(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Vh=Ct(/^(?:\w+script|data):/i),Hh=Ct(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),nu=Ct(/^html$/i),Wh=Ct(/^[a-z][.\w]*(-[.\w]+)+$/i);var nl=Object.freeze({__proto__:null,ARIA_ATTR:jh,ATTR_WHITESPACE:Hh,CUSTOM_ELEMENT:Wh,DATA_ATTR:Bh,DOCTYPE_NAME:nu,ERB_EXPR:$h,IS_ALLOWED_URI:tu,IS_SCRIPT_OR_DATA:Vh,MUSTACHE_EXPR:Fh,TMPLIT_EXPR:zh});const fr={element:1,text:3,progressingInstruction:7,comment:8,document:9},Gh=function(){return typeof window>"u"?null:window},Uh=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},rl=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ru(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gh();const t=te=>ru(te);if(t.version="3.2.4",t.removed=[],!e||!e.document||e.document.nodeType!==fr.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:c,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:u,DOMParser:b,trustedTypes:g}=e,m=l.prototype,f=dr(m,"cloneNode"),y=dr(m,"remove"),p=dr(m,"nextSibling"),h=dr(m,"childNodes"),w=dr(m,"parentNode");if(typeof s=="function"){const te=n.createElement("template");te.content&&te.content.ownerDocument&&(n=te.content.ownerDocument)}let S,x="";const{implementation:A,createNodeIterator:T,createDocumentFragment:k,getElementsByTagName:_}=n,{importNode:z}=r;let R=rl();t.isSupported=typeof Qc=="function"&&typeof w=="function"&&A&&A.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:I,ERB_EXPR:L,TMPLIT_EXPR:N,DATA_ATTR:j,ARIA_ATTR:B,IS_SCRIPT_OR_DATA:V,ATTR_WHITESPACE:G,CUSTOM_ELEMENT:J}=nl;let{IS_ALLOWED_URI:ge}=nl,re=null;const Re=ve({},[...Ja,...yo,...wo,...So,...Qa]);let be=null;const Ae=ve({},[...el,...xo,...tl,...Zr]);let oe=Object.seal(eu(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}})),we=null,Z=null,le=!0,Se=!0,de=!1,ne=!0,Y=!1,ce=!0,me=!1,_e=!1,He=!1,$e=!1,E=!1,O=!1,F=!0,K=!1;const q="user-content-";let H=!0,Q=!1,pe={},Pe=null;const Me=ve({},["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"]);let wt=null;const ln=ve({},["audio","video","img","source","image","track"]);let Xe=null;const Mt=ve({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Dt="http://www.w3.org/1998/Math/MathML",St="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let kt=et,rr=!1,ir=null;const Br=ve({},[Dt,St,et],bo);let _n=ve({},["mi","mo","mn","ms","mtext"]),wn=ve({},["annotation-xml"]);const jr=ve({},["title","style","font","a","script"]);let cn=null;const io=["application/xhtml+xml","text/html"],Vr="text/html";let Be=null,Mn=null;const Hf=n.createElement("form"),ma=function(P){return P instanceof RegExp||P instanceof Function},oo=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Mn&&Mn===P)){if((!P||typeof P!="object")&&(P={}),P=Sn(P),cn=io.indexOf(P.PARSER_MEDIA_TYPE)===-1?Vr:P.PARSER_MEDIA_TYPE,Be=cn==="application/xhtml+xml"?bo:di,re=Tt(P,"ALLOWED_TAGS")?ve({},P.ALLOWED_TAGS,Be):Re,be=Tt(P,"ALLOWED_ATTR")?ve({},P.ALLOWED_ATTR,Be):Ae,ir=Tt(P,"ALLOWED_NAMESPACES")?ve({},P.ALLOWED_NAMESPACES,bo):Br,Xe=Tt(P,"ADD_URI_SAFE_ATTR")?ve(Sn(Mt),P.ADD_URI_SAFE_ATTR,Be):Mt,wt=Tt(P,"ADD_DATA_URI_TAGS")?ve(Sn(ln),P.ADD_DATA_URI_TAGS,Be):ln,Pe=Tt(P,"FORBID_CONTENTS")?ve({},P.FORBID_CONTENTS,Be):Me,we=Tt(P,"FORBID_TAGS")?ve({},P.FORBID_TAGS,Be):{},Z=Tt(P,"FORBID_ATTR")?ve({},P.FORBID_ATTR,Be):{},pe=Tt(P,"USE_PROFILES")?P.USE_PROFILES:!1,le=P.ALLOW_ARIA_ATTR!==!1,Se=P.ALLOW_DATA_ATTR!==!1,de=P.ALLOW_UNKNOWN_PROTOCOLS||!1,ne=P.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Y=P.SAFE_FOR_TEMPLATES||!1,ce=P.SAFE_FOR_XML!==!1,me=P.WHOLE_DOCUMENT||!1,$e=P.RETURN_DOM||!1,E=P.RETURN_DOM_FRAGMENT||!1,O=P.RETURN_TRUSTED_TYPE||!1,He=P.FORCE_BODY||!1,F=P.SANITIZE_DOM!==!1,K=P.SANITIZE_NAMED_PROPS||!1,H=P.KEEP_CONTENT!==!1,Q=P.IN_PLACE||!1,ge=P.ALLOWED_URI_REGEXP||tu,kt=P.NAMESPACE||et,_n=P.MATHML_TEXT_INTEGRATION_POINTS||_n,wn=P.HTML_INTEGRATION_POINTS||wn,oe=P.CUSTOM_ELEMENT_HANDLING||{},P.CUSTOM_ELEMENT_HANDLING&&ma(P.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(oe.tagNameCheck=P.CUSTOM_ELEMENT_HANDLING.tagNameCheck),P.CUSTOM_ELEMENT_HANDLING&&ma(P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(oe.attributeNameCheck=P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),P.CUSTOM_ELEMENT_HANDLING&&typeof P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(oe.allowCustomizedBuiltInElements=P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&(Se=!1),E&&($e=!0),pe&&(re=ve({},Qa),be=[],pe.html===!0&&(ve(re,Ja),ve(be,el)),pe.svg===!0&&(ve(re,yo),ve(be,xo),ve(be,Zr)),pe.svgFilters===!0&&(ve(re,wo),ve(be,xo),ve(be,Zr)),pe.mathMl===!0&&(ve(re,So),ve(be,tl),ve(be,Zr))),P.ADD_TAGS&&(re===Re&&(re=Sn(re)),ve(re,P.ADD_TAGS,Be)),P.ADD_ATTR&&(be===Ae&&(be=Sn(be)),ve(be,P.ADD_ATTR,Be)),P.ADD_URI_SAFE_ATTR&&ve(Xe,P.ADD_URI_SAFE_ATTR,Be),P.FORBID_CONTENTS&&(Pe===Me&&(Pe=Sn(Pe)),ve(Pe,P.FORBID_CONTENTS,Be)),H&&(re["#text"]=!0),me&&ve(re,["html","head","body"]),re.table&&(ve(re,["tbody"]),delete we.tbody),P.TRUSTED_TYPES_POLICY){if(typeof P.TRUSTED_TYPES_POLICY.createHTML!="function")throw ur('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof P.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ur('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=P.TRUSTED_TYPES_POLICY,x=S.createHTML("")}else S===void 0&&(S=Uh(g,i)),S!==null&&typeof x=="string"&&(x=S.createHTML(""));ot&&ot(P),Mn=P}},ha=ve({},[...yo,...wo,...Lh]),ga=ve({},[...So,...Nh]),Wf=function(P){let U=w(P);(!U||!U.tagName)&&(U={namespaceURI:kt,tagName:"template"});const ee=di(P.tagName),De=di(U.tagName);return ir[P.namespaceURI]?P.namespaceURI===St?U.namespaceURI===et?ee==="svg":U.namespaceURI===Dt?ee==="svg"&&(De==="annotation-xml"||_n[De]):!!ha[ee]:P.namespaceURI===Dt?U.namespaceURI===et?ee==="math":U.namespaceURI===St?ee==="math"&&wn[De]:!!ga[ee]:P.namespaceURI===et?U.namespaceURI===St&&!wn[De]||U.namespaceURI===Dt&&!_n[De]?!1:!ga[ee]&&(jr[ee]||!ha[ee]):!!(cn==="application/xhtml+xml"&&ir[P.namespaceURI]):!1},Lt=function(P){lr(t.removed,{element:P});try{w(P).removeChild(P)}catch{y(P)}},Hr=function(P,U){try{lr(t.removed,{attribute:U.getAttributeNode(P),from:U})}catch{lr(t.removed,{attribute:null,from:U})}if(U.removeAttribute(P),P==="is")if($e||E)try{Lt(U)}catch{}else try{U.setAttribute(P,"")}catch{}},va=function(P){let U=null,ee=null;if(He)P="<remove></remove>"+P;else{const Ye=Za(P,/^[\r\n\t ]+/);ee=Ye&&Ye[0]}cn==="application/xhtml+xml"&&kt===et&&(P='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+P+"</body></html>");const De=S?S.createHTML(P):P;if(kt===et)try{U=new b().parseFromString(De,cn)}catch{}if(!U||!U.documentElement){U=A.createDocument(kt,"template",null);try{U.documentElement.innerHTML=rr?x:De}catch{}}const Ze=U.body||U.documentElement;return P&&ee&&Ze.insertBefore(n.createTextNode(ee),Ze.childNodes[0]||null),kt===et?_.call(U,me?"html":"body")[0]:me?U.documentElement:Ze},ba=function(P){return T.call(P.ownerDocument||P,P,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},so=function(P){return P instanceof u&&(typeof P.nodeName!="string"||typeof P.textContent!="string"||typeof P.removeChild!="function"||!(P.attributes instanceof d)||typeof P.removeAttribute!="function"||typeof P.setAttribute!="function"||typeof P.namespaceURI!="string"||typeof P.insertBefore!="function"||typeof P.hasChildNodes!="function")},ya=function(P){return typeof a=="function"&&P instanceof a};function Gt(te,P,U){Xr(te,ee=>{ee.call(t,P,U,Mn)})}const wa=function(P){let U=null;if(Gt(R.beforeSanitizeElements,P,null),so(P))return Lt(P),!0;const ee=Be(P.nodeName);if(Gt(R.uponSanitizeElement,P,{tagName:ee,allowedTags:re}),P.hasChildNodes()&&!ya(P.firstElementChild)&&nt(/<[/\w]/g,P.innerHTML)&&nt(/<[/\w]/g,P.textContent)||P.nodeType===fr.progressingInstruction||ce&&P.nodeType===fr.comment&&nt(/<[/\w]/g,P.data))return Lt(P),!0;if(!re[ee]||we[ee]){if(!we[ee]&&xa(ee)&&(oe.tagNameCheck instanceof RegExp&&nt(oe.tagNameCheck,ee)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(ee)))return!1;if(H&&!Pe[ee]){const De=w(P)||P.parentNode,Ze=h(P)||P.childNodes;if(Ze&&De){const Ye=Ze.length;for(let at=Ye-1;at>=0;--at){const Nt=f(Ze[at],!0);Nt.__removalCount=(P.__removalCount||0)+1,De.insertBefore(Nt,p(P))}}}return Lt(P),!0}return P instanceof l&&!Wf(P)||(ee==="noscript"||ee==="noembed"||ee==="noframes")&&nt(/<\/no(script|embed|frames)/i,P.innerHTML)?(Lt(P),!0):(Y&&P.nodeType===fr.text&&(U=P.textContent,Xr([I,L,N],De=>{U=cr(U,De," ")}),P.textContent!==U&&(lr(t.removed,{element:P.cloneNode()}),P.textContent=U)),Gt(R.afterSanitizeElements,P,null),!1)},Sa=function(P,U,ee){if(F&&(U==="id"||U==="name")&&(ee in n||ee in Hf))return!1;if(!(Se&&!Z[U]&&nt(j,U))){if(!(le&&nt(B,U))){if(!be[U]||Z[U]){if(!(xa(P)&&(oe.tagNameCheck instanceof RegExp&&nt(oe.tagNameCheck,P)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(P))&&(oe.attributeNameCheck instanceof RegExp&&nt(oe.attributeNameCheck,U)||oe.attributeNameCheck instanceof Function&&oe.attributeNameCheck(U))||U==="is"&&oe.allowCustomizedBuiltInElements&&(oe.tagNameCheck instanceof RegExp&&nt(oe.tagNameCheck,ee)||oe.tagNameCheck instanceof Function&&oe.tagNameCheck(ee))))return!1}else if(!Xe[U]){if(!nt(ge,cr(ee,G,""))){if(!((U==="src"||U==="xlink:href"||U==="href")&&P!=="script"&&Rh(ee,"data:")===0&&wt[P])){if(!(de&&!nt(V,cr(ee,G,"")))){if(ee)return!1}}}}}}return!0},xa=function(P){return P!=="annotation-xml"&&Za(P,J)},Ca=function(P){Gt(R.beforeSanitizeAttributes,P,null);const{attributes:U}=P;if(!U||so(P))return;const ee={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:be,forceKeepAttr:void 0};let De=U.length;for(;De--;){const Ze=U[De],{name:Ye,namespaceURI:at,value:Nt}=Ze,or=Be(Ye);let tt=Ye==="value"?Nt:_h(Nt);if(ee.attrName=or,ee.attrValue=tt,ee.keepAttr=!0,ee.forceKeepAttr=void 0,Gt(R.uponSanitizeAttribute,P,ee),tt=ee.attrValue,K&&(or==="id"||or==="name")&&(Hr(Ye,P),tt=q+tt),ce&&nt(/((--!?|])>)|<\/(style|title)/i,tt)){Hr(Ye,P);continue}if(ee.forceKeepAttr||(Hr(Ye,P),!ee.keepAttr))continue;if(!ne&&nt(/\/>/i,tt)){Hr(Ye,P);continue}Y&&Xr([I,L,N],ka=>{tt=cr(tt,ka," ")});const Ea=Be(P.nodeName);if(Sa(Ea,or,tt)){if(S&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!at)switch(g.getAttributeType(Ea,or)){case"TrustedHTML":{tt=S.createHTML(tt);break}case"TrustedScriptURL":{tt=S.createScriptURL(tt);break}}try{at?P.setAttributeNS(at,Ye,tt):P.setAttribute(Ye,tt),so(P)?Lt(P):Xa(t.removed)}catch{}}}Gt(R.afterSanitizeAttributes,P,null)},Gf=function te(P){let U=null;const ee=ba(P);for(Gt(R.beforeSanitizeShadowDOM,P,null);U=ee.nextNode();)Gt(R.uponSanitizeShadowNode,U,null),wa(U),Ca(U),U.content instanceof o&&te(U.content);Gt(R.afterSanitizeShadowDOM,P,null)};return t.sanitize=function(te){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=null,ee=null,De=null,Ze=null;if(rr=!te,rr&&(te="<!-->"),typeof te!="string"&&!ya(te))if(typeof te.toString=="function"){if(te=te.toString(),typeof te!="string")throw ur("dirty is not a string, aborting")}else throw ur("toString is not a function");if(!t.isSupported)return te;if(_e||oo(P),t.removed=[],typeof te=="string"&&(Q=!1),Q){if(te.nodeName){const Nt=Be(te.nodeName);if(!re[Nt]||we[Nt])throw ur("root node is forbidden and cannot be sanitized in-place")}}else if(te instanceof a)U=va("<!---->"),ee=U.ownerDocument.importNode(te,!0),ee.nodeType===fr.element&&ee.nodeName==="BODY"||ee.nodeName==="HTML"?U=ee:U.appendChild(ee);else{if(!$e&&!Y&&!me&&te.indexOf("<")===-1)return S&&O?S.createHTML(te):te;if(U=va(te),!U)return $e?null:O?x:""}U&&He&&Lt(U.firstChild);const Ye=ba(Q?te:U);for(;De=Ye.nextNode();)wa(De),Ca(De),De.content instanceof o&&Gf(De.content);if(Q)return te;if($e){if(E)for(Ze=k.call(U.ownerDocument);U.firstChild;)Ze.appendChild(U.firstChild);else Ze=U;return(be.shadowroot||be.shadowrootmode)&&(Ze=z.call(r,Ze,!0)),Ze}let at=me?U.outerHTML:U.innerHTML;return me&&re["!doctype"]&&U.ownerDocument&&U.ownerDocument.doctype&&U.ownerDocument.doctype.name&&nt(nu,U.ownerDocument.doctype.name)&&(at="<!DOCTYPE "+U.ownerDocument.doctype.name+`> `+at),Y&&Xr([I,L,N],Nt=>{at=cr(at,Nt," ")}),S&&O?S.createHTML(at):at},t.setConfig=function(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};oo(te),_e=!0},t.clearConfig=function(){Mn=null,_e=!1},t.isValidAttribute=function(te,P,U){Mn||oo({});const ee=Be(te),De=Be(P);return Sa(ee,De,U)},t.addHook=function(te,P){typeof P=="function"&&lr(R[te],P)},t.removeHook=function(te,P){if(P!==void 0){const U=Ih(R[te],P);return U===-1?void 0:Oh(R[te],U,1)[0]}return Xa(R[te])},t.removeHooks=function(te){R[te]=[]},t.removeAllHooks=function(){R=rl()},t}var Yh=ru();let Jr;const qh=new Uint8Array(16);function Kh(){if(!Jr&&(Jr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Jr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Jr(qh)}const qe=[];for(let e=0;e<256;++e)qe.push((e+256).toString(16).slice(1));function Xh(e,t=0){return qe[e[t+0]]+qe[e[t+1]]+qe[e[t+2]]+qe[e[t+3]]+"-"+qe[e[t+4]]+qe[e[t+5]]+"-"+qe[e[t+6]]+qe[e[t+7]]+"-"+qe[e[t+8]]+qe[e[t+9]]+"-"+qe[e[t+10]]+qe[e[t+11]]+qe[e[t+12]]+qe[e[t+13]]+qe[e[t+14]]+qe[e[t+15]]}const Zh=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),il={randomUUID:Zh};function ol(e,t,n){if(il.randomUUID&&!e)return il.randomUUID();e=e||{};const r=e.random||(e.rng||Kh)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Xh(r)}var Jh=Object.defineProperty,Qh=Object.defineProperties,eg=Object.getOwnPropertyDescriptors,sl=Object.getOwnPropertySymbols,tg=Object.prototype.hasOwnProperty,ng=Object.prototype.propertyIsEnumerable,al=(e,t,n)=>t in e?Jh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rt=(e,t)=>{for(var n in t||(t={}))tg.call(t,n)&&al(e,n,t[n]);if(sl)for(var n of sl(t))ng.call(t,n)&&al(e,n,t[n]);return e},wr=(e,t)=>Qh(e,eg(t)),he=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())}),ct={};function gr(e){return`${e.__instanceId}-${e.apiKey}`}var iu=class{constructor(e){this.config={apiKey:"",apiUrl:"https://api.frigade.com",userId:bg(),__instanceId:Math.random().toString(12).substring(4),generateGuestId:!0};let t=Object.fromEntries(Object.entries(e).filter(([n,r])=>r!=null));!e.userId&&e.generateGuestId===!1&&delete this.config.userId,this.config=rt(rt({},this.config),t)}fetch(e,t){return he(this,null,function*(){return this.config.__readOnly?$t():vg(this.getAPIUrl(e),rt(rt({keepalive:!0},t??{}),dg(this.config)))})}getAPIUrl(e){return`${this.config.apiUrl.replace(/\/$/,"")}/${e.replace(/^\//,"")}`}getGlobalState(){let e=gr(this.config);if(!ct[e])throw new Error("Frigade has not yet been initialized");return ct[e]}},Yo=class extends iu{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){var t,n,r,i,o;let s=Ft(e??this.getStatefulFlow());this.rawData=s,this.title=(t=s?.data)==null?void 0:t.title,this.subtitle=(n=s?.data)==null?void 0:n.subtitle,this.props=(i=(r=s?.data)==null?void 0:r.props)!=null?i:{},this.isCompleted=s.$state.completed,this.isStarted=s.$state.started,this.isSkipped=s.$state.skipped,this._isVisible=s.$state.visible,s.data.steps.forEach((a,l)=>{var c;let d=this.initStepFromStatefulStep(a,l),u=(c=this.steps)==null?void 0:c.get(a.id);u&&Object.keys(d).forEach(b=>{u[b]=d[b]})}),this.getGlobalState().variables[this.id]&&this.applyVariables((o=this.getGlobalState().variables[this.id])!=null?o:{})}initStepFromStatefulStep(e,t){return wr(rt({},e),{flow:this,$state:wr(rt({},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((n,r)=>{let i=this.initStepFromStatefulStep(n,r);i.start=s=>he(this,null,function*(){let a=this.steps.get(n.id);if(this.getCurrentStep().id===a.id&&a.$state.started)return;let l=Ft(this.getGlobalState().flowStates[this.id]);l.data.steps[a.order].$state.started=!0,l.data.steps[a.order].$state.lastActionAt=new Date,l.$state.lastActionAt=new Date,l.$state.currentStepId=a.id,l.$state.currentStepIndex=a.order,this.getGlobalState().flowStates[this.id]=l,this.resyncState(),yield this.sendFlowStateToAPI(cl,s,a.id)});let o=(s,a,l=!0)=>he(this,null,function*(){let c=this.steps.get(n.id);if((c.$state.completed||c.$state.skipped)&&l){let u=this.getStepByIndex(c.order+1);for(;u&&!u.$state.visible&&u.order!==this.steps.size-1;)u=this.getStepByIndex(u.order+1);if(u){let b=Ft(this.getGlobalState().flowStates[this.id]);b.$state.currentStepId=this.getStepByIndex(c.order+1).id,b.$state.currentStepIndex=c.order+1,b.data.steps[c.order+1].$state.started=!0,this.getGlobalState().flowStates[this.id]=b,yield this.sendFlowStateToAPI(cl,void 0,u.id),this.resyncState()}return}let d=this.getCurrentStepOrder()+1===this.getNumberOfAvailableSteps();if(l){let u=Ft(this.getGlobalState().flowStates[this.id]);if(u.$state.started=!0,s=="complete"?u.data.steps[c.order].$state.completed=!0:u.data.steps[c.order].$state.skipped=!0,u.data.steps[c.order].$state.started=!0,u.data.steps[c.order].$state.lastActionAt=new Date,d)u.$state.completed=!0,u.$state.visible=!1;else{let b=this.getNextVisibleStepIndexAfterIndex(c.order);b!==-1&&(u.$state.currentStepId=this.getStepByIndex(b).id,u.$state.currentStepIndex=b,u.data.steps[b].$state.started=!0)}this.getGlobalState().flowStates[this.id]=u,this.resyncState(),d&&this.optimisticallyMarkFlowCompleted()}yield this.sendFlowStateToAPI(s=="complete"?lg:cg,a,c.id),d&&(yield this.sendFlowStateToAPI(ll,a))});i.complete=(s,a=!0)=>he(this,null,function*(){yield o("complete",s,a)}),i.skip=(s,a=!0)=>he(this,null,function*(){yield o("skip",s,a)}),i.reset=()=>he(this,null,function*(){let s=this.steps.get(n.id);if(!s.$state.completed)return;let a=Ft(this.getGlobalState().flowStates[this.id]);a.data.steps[s.order].$state.started=!1,a.data.steps[s.order].$state.completed=!1,a.data.steps[s.order].$state.lastActionAt=void 0,this.getGlobalState().flowStates[this.id]=a,this.resyncState(),yield this.sendFlowStateToAPI(ig,void 0,s.id)}),i.onStateChange=s=>{let a=l=>{if(l.id!==this.id)return;let c=l.steps.get(n.id),d=this.lastStepUpdate.get(s);(c.$state.completed!==d?.$state.completed||c.$state.started!==d?.$state.started||c.$state.visible!==d?.$state.visible||c.$state.blocked!==d?.$state.blocked)&&(s(c,d??Ft(c)),this.lastStepUpdate.set(s,Ft(c)))};this.getGlobalState().onStepStateChangeHandlerWrappers.set(s,a),this.getGlobalState().onFlowStateChangeHandlers.push(a)},i.removeStateChangeHandler=s=>{let a=this.getGlobalState().onStepStateChangeHandlerWrappers.get(s);a&&(this.getGlobalState().onFlowStateChangeHandlers=this.getGlobalState().onFlowStateChangeHandlers.filter(l=>l!==a))},t.set(n.id,i)}),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 he(this,null,function*(){this.isStarted||this.isCompleted||(this.optimisticallyMarkFlowStarted(),yield this.sendFlowStateToAPI(sg,e))})}complete(e){return he(this,null,function*(){this.isCompleted||(this.optimisticallyMarkFlowCompleted(),yield this.sendFlowStateToAPI(ll,e))})}skip(e){return he(this,null,function*(){this.isSkipped||(this.optimisticallyMarkFlowSkipped(),yield this.sendFlowStateToAPI(og,e))})}forward(e){return he(this,null,function*(){let t=this.getStepByIndex(this.getNextVisibleStepIndexAfterIndex(this.getCurrentStepIndex()));t&&(yield t.start(e))})}back(e){return he(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 he(this,null,function*(){yield this.sendFlowStateToAPI(ag)})}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(t=>t.$state.visible).indexOf(e)}getProgress(){return(this.getNumberOfCompletedSteps()||0)/(this.getNumberOfAvailableSteps()||1)}onStateChange(e){let t=(n,r)=>{n.id===this.id&&(n.isCompleted!==r?.isCompleted||n.isStarted!==r?.isStarted||n.isSkipped!==r?.isSkipped||n.isVisible!==r?.isVisible||JSON.stringify(n.steps)!==JSON.stringify(r?.steps))&&e(n,r)};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(n=>n!==t))}applyVariables(e){var t,n;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 r=o=>{let s=o.match(/\${(.*?)}/g);return s&&s.forEach(a=>{let l=a.replace("${","").replace("}","");if(!e[l]){o=o.replace(a,"");return}o=o.replace(a,e[l])}),o};this.title=r((t=this.title)!=null?t:""),this.subtitle=r((n=this.subtitle)!=null?n:"");let i=o=>{o&&Object.keys(o).forEach(s=>{typeof o[s]=="string"?o[s]=r(o[s]):typeof o[s]=="object"?i(o[s]):Array.isArray(o[s])&&o[s].forEach(a=>{i(a)})})};this.steps&&this.steps.forEach(o=>{i(o)}),this.getGlobalState().variables[this.id]=e}getStatefulFlow(){return this.getGlobalState().flowStates[this.id]}optimisticallyMarkFlowCompleted(){let e=Ft(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=Ft(this.getGlobalState().flowStates[this.id]);e.$state.started=!0,this.getGlobalState().flowStates[this.id]=e,this.resyncState()}sendFlowStateToAPI(e,t,n){return he(this,null,function*(){var r;let i=new Date;this.getGlobalState().lastFlowSyncDate[this.id]=i,this.getGlobalState().pendingRequests[this.id]=((r=this.getGlobalState().pendingRequests[this.id])!=null?r:0)+1;let o=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:i,context:ou(this.getGlobalState())})});this.getGlobalState().pendingRequests[this.id]-=1,!(i<this.getGlobalState().lastFlowSyncDate[this.id]||this.getGlobalState().pendingRequests[this.id]>0)&&(yield this.getGlobalState().refreshStateFromAPI(o))})}optimisticallyMarkFlowSkipped(){let e=Ft(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(r=>{r(this,n),this.getGlobalState().previousFlows.set(this.id,fi(this))}),e?.(t)})}unregister(){this.getGlobalState().collections&&this.getGlobalState().collections.unregister(this.id)}},rg="0.7.9",ig="NOT_STARTED_STEP",ll="COMPLETED_FLOW",og="SKIPPED_FLOW",sg="STARTED_FLOW",ag="NOT_STARTED_FLOW",lg="COMPLETED_STEP",cg="SKIPPED_STEP",cl="STARTED_STEP",ul="frigade-guest-key",qo="guest_",ug="get-cache-",Ms="fr-js-";function fi(e){return new Yo({config:e.config,id:e.id})}function Ft(e){return JSON.parse(JSON.stringify(e))}function dg(e){var t,n;return{headers:{Authorization:`Bearer ${e.apiKey}`,"Content-Type":"application/json","x-frigade-sdk-version":(t=e.__platformVersion)!=null?t:rg,"x-frigade-sdk-platform":(n=e.__platformName)!=null?n:"Javascript"}}}function fg(e){return Zt()?window.localStorage.getItem(`${Ms}${e}`):null}function pg(e,t){Zt()&&window.localStorage.setItem(`${Ms}${e}`,t)}function mg(){Object.keys(ct).forEach(e=>{e.startsWith(ug)&&delete ct[e]})}function hg(){Zt()&&Object.keys(window.localStorage).forEach(e=>{e.startsWith(Ms)&&window.localStorage.removeItem(e)})}var gg=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(n=>t.getTime()-n.time<this.ttlInMS),this.queue.find(n=>n.call===e)}},dl=new gg;function vg(e,t){return he(this,null,function*(){var n;if(typeof globalThis.fetch!="function")return $t("- Attempted to call fetch() in an environment that doesn't support it.");let r=`${e}${JSON.stringify((n=t.body)!=null?n:{})}`,i,o=Zt()&&t&&t.body&&t.method==="POST";if(o){let s=dl.hasIdenticalCall(r);s!=null&&s.response!=null&&(i=(yield s.response).clone())}if(!i)try{let s=fetch(e,t);o&&dl.push(r,s.then(a=>a.clone()).catch(()=>$t())),i=yield s}catch(s){return $t(s)}if(!i)return $t("Received an empty response");if(i.status>=400)return $t(i.statusText);try{if(i.status===204)return $t();let s;try{s=yield i.json()}catch{return $t()}return s.error?$t(s.error):s}catch(s){return $t(s)}})}function $t(e){return e&&console.warn("Call to Frigade failed",e),{json:()=>({}),clone:()=>({})}}function bg(){if(Zt()){let e=fg(ul);return e||(e=`${qo}${ol()}`,pg(ul,e)),e}else return`${qo}${ol()}`}function Zt(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.localStorage<"u"}function ou(e){let t={registeredCollectionIds:Array.from(e.registeredCollectionIds)};return Zt()?rt({url:e.currentUrl,userAgent:navigator.userAgent},t):t}var yg=class{constructor(t){this.registry=new Map,this.registryStateLocked=!1,this.collections=new Map,this.flowsInCollections=new Set,this.ingestCollectionsData(t)}getCollection(t){return this.collections.get(t)}getCollections(){return this.collections}ingestCollectionsData(t){this.collections=t;for(let[,n]of this.collections)for(let{flowId:r}of n.flows)this.flowsInCollections.add(r);this.registry.size>0&&(this.registryStateLocked||this.resetRegistryState(),this.processCollections()),this.fireCallbacks()}fireCallbacks(){for(let[t,{callback:n}]of this.registry)typeof n=="function"&&n(this.isFlowVisible(t))}isFlowVisible(t){let n=this.registry.get(t),r=this.flowsInCollections.has(t);return n==null||!r?!0:n.visible}lockRegistryState(){this.registryStateLocked=!0}unlockRegistryState(){this.registryStateLocked=!1}resetRegistryState(){for(let[t,n]of this.registry)n.visible=!1,n.visited=!1,this.registry.set(t,n)}processCollections(){for(let[,t]of this.collections)for(let{flowId:n,visible:r}of t.flows){let i=this.registry.get(n);if(i!=null){if(r===!1&&i.visible!==!0){this.visit(n,!1);continue}i.visited&&this.registryStateLocked||(t.flows.map(({flowId:o})=>o).filter(o=>o!==n),this.visit(n))}}}register(t,n){if(Array.isArray(t)){this.batchRegister(t);return}this.registry.set(t,{callback:n??(()=>{}),visible:!1,visited:!1}),this.registryStateLocked||this.resetRegistryState(),this.processCollections(),this.fireCallbacks()}batchRegister(t){t.forEach(([n,r])=>{this.registry.set(n,{callback:r??(()=>{}),visible:!1,visited:!1})}),this.registryStateLocked||this.resetRegistryState(),this.processCollections(),this.lockRegistryState(),this.fireCallbacks()}unregister(t){this.registry.delete(t),this.resetRegistryState(),this.processCollections(),this.fireCallbacks()}visit(t,n=!0){var r;let i=(r=this.registry.get(t))!=null?r:{callback:()=>{},visible:n,visited:!0};i.visible=n,i.visited=!0,this.registry.set(t,i)}},wg=class extends iu{constructor(t,n){super(rt({apiKey:t},n)),this.flows=[],this.hasFailed=!1,this.visibilityChangeHandler=()=>he(this,null,function*(){document.visibilityState==="visible"&&(yield this.refreshStateFromAPI())}),this.init(this.config),Zt()&&this.config.syncOnWindowUpdates!==!1&&(document.addEventListener("visibilitychange",this.visibilityChangeHandler),window.navigation&&window.navigation.addEventListener("navigate",r=>he(this,null,function*(){try{if(this.getGlobalState().currentUrl===r.destination.url)return;this.getGlobalState().currentUrl=r.destination.url,this.refreshStateFromAPI()}catch{}})))}getConfig(){return this.config}destroy(){if(Zt()){document.removeEventListener("visibilitychange",this.visibilityChangeHandler);let t=gr(this.config);ct[t]&&(ct[t].onFlowStateChangeHandlers=[])}}init(t){return he(this,null,function*(){if(this.updateConfig(rt(rt({},this.config),t)),!(!this.config.userId&&this.config.generateGuestId===!1))return this.initPromise=he(this,null,function*(){var n;this.config.__readOnly||(n=this.config.userId)!=null&&n.startsWith(qo)||(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(t,n){return he(this,null,function*(){yield this.updateConfig(wr(rt({},this.config),{userId:t})),yield this.initIfNeeded(),yield this.session({userId:this.config.userId,userProperties:n}),yield this.resync()})}group(t,n){return he(this,null,function*(){yield this.initIfNeeded(),this.updateConfig(wr(rt({},this.config),{groupId:t})),yield this.session({userId:this.config.userId,groupId:this.config.groupId,groupProperties:n}),yield this.resync()})}track(t,n){return he(this,null,function*(){if(yield this.initIfNeeded(),!t){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:t,properties:n}],userEvents:[{event:t,properties:n}]}):this.config.userId&&(yield this.session({userId:this.config.userId,userEvents:[{event:t,properties:n}]})),yield this.resync()})}session(t){return he(this,null,function*(){yield this.fetch("/v1/public/sessions",{method:"POST",body:JSON.stringify(t)})})}isReady(){return!!(this.config.__instanceId&&this.config.apiKey&&this.initPromise)}getFlow(t){return he(this,null,function*(){return yield this.initIfNeeded(),this.getFlowSync(t)})}getFlowSync(t){return this.flows.find(n=>n.id==t)}getFlows(){return he(this,null,function*(){return yield this.initIfNeeded(),this.flows})}getCollection(t){return he(this,null,function*(){yield this.initIfNeeded();let n=this.getGlobalState().collections.getCollection(t);if(n==null)return;this.getGlobalState().registeredCollectionIds.add(t);let r=yield Promise.all(n.flows.map(i=>he(this,null,function*(){return wr(rt({},i),{flow:yield this.getFlow(i.flowId)})})));return n.flows=r,n})}getCollectionSync(t){let n=this.getGlobalState().collections.getCollection(t);if(n!=null)return this.getGlobalState().registeredCollectionIds.add(t),n}getCollections(){return he(this,null,function*(){if(yield this.initIfNeeded(),!this.config.userId&&this.config.generateGuestId===!1)return;let t=this.getGlobalState().collections.getCollections();if(t!=null)return t})}reload(t){return he(this,null,function*(){hg(),mg(),t&&(yield this.updateConfig(t),this.mockFlowStates(gr(this.config))),this.initPromise=null,yield this.init(this.config),this.flows.forEach(n=>{this.getGlobalState().onFlowStateChangeHandlers.forEach(r=>{let i=this.getGlobalState().previousFlows.get(n.id);r(n,i),this.getGlobalState().previousFlows.set(n.id,fi(n))})})})}resync(){return he(this,null,function*(){yield this.refreshStateFromAPI()})}onStateChange(t){return he(this,null,function*(){yield this.initIfNeeded(),this.getGlobalState().onFlowStateChangeHandlers.push(t)})}hasFailedToLoad(){return this.hasFailed}removeStateChangeHandler(t){return he(this,null,function*(){yield this.initIfNeeded(),this.getGlobalState().onFlowStateChangeHandlers=this.getGlobalState().onFlowStateChangeHandlers.filter(n=>n!==t)})}initIfNeeded(){return he(this,null,function*(){return this.initPromise?this.initPromise:this.init(this.config)})}refreshStateFromAPI(){return he(this,null,function*(){let t=gr(this.config);if(!ct[t]){let n=this,r={set:function(i,o,s){if(i[o]){let a=i[o],l=s;JSON.stringify(a)!==JSON.stringify(l)&&n.triggerEventHandlers(l,a)}return i[o]=s,!0}};if(ct[t]={refreshStateFromAPI:()=>he(this,null,function*(){}),collections:new yg(new Map),registeredCollectionIds:new Set,flowStates:new Proxy({},r),onFlowStateChangeHandlerWrappers:new Map,onStepStateChangeHandlerWrappers:new Map,onFlowStateChangeHandlers:[],previousFlows:new Map,variables:{},config:this.config,currentUrl:Zt()?window.location.href:"",pendingRequests:new Map,lastFlowSyncDate:new Map},this.config.__readOnly&&this.config.__flowStateOverrides){this.mockFlowStates(t);return}ct[t].refreshStateFromAPI=i=>he(this,null,function*(){var o,s;if(this.config.__readOnly)return;let a=i||(yield this.fetch("/v1/public/flowStates",{method:"POST",body:JSON.stringify({userId:this.getGlobalState().config.userId,groupId:this.getGlobalState().config.groupId,context:ou(this.getGlobalState())})})),l=new Map;(s=(o=a.collections)==null?void 0:o.computedOrder)==null||s.forEach(({allowedComponents:c,collectionId:d,collectionType:u,flowId:b,visible:g})=>{var m;let f=(m=l.get(d))!=null?m:{allowedComponents:c,collectionType:u,flows:[]};f.flows.push({flowId:b,visible:g}),l.set(d,f)}),l.size>0&&ct[t].collections.ingestCollectionsData(l),a&&a.eligibleFlows?(a.eligibleFlows.forEach(c=>{ct[t].flowStates[c.flowSlug]=c,this.flows.find(d=>d.id==c.flowSlug)?this.flows.forEach(d=>{d.id==c.flowSlug&&d.resyncState(c)}):this.flows.push(new Yo({config:this.config,id:c.flowSlug}))}),this.hasFailed=!1):this.hasFailed=!0})}yield ct[t].refreshStateFromAPI()})}mockFlowStates(t){Object.keys(this.config.__flowStateOverrides).forEach(n=>{ct[t].flowStates[n]=this.config.__flowStateOverrides[n],this.flows.find(r=>r.id==n)?this.flows.forEach(r=>{r.id==n&&r.resyncState(this.config.__flowStateOverrides[n])}):this.flows.push(new Yo({config:this.config,id:n}))})}updateConfig(t){return he(this,null,function*(){this.config=rt(rt({},this.config),t),ct[gr(this.config)]&&(this.getGlobalState().config=this.config)})}triggerEventHandlers(t,n){return he(this,null,function*(){t&&this.flows.forEach(r=>{r.id==n.flowSlug&&this.getGlobalState().onFlowStateChangeHandlers.forEach(i=>{let o=this.getGlobalState().previousFlows.get(r.id);r.resyncState(t),i(r,o),this.getGlobalState().previousFlows.set(r.id,fi(r))})})})}batchRegister(t){return he(this,null,function*(){let n=t.map(r=>he(this,[r],function*([i,o]){let s=yield this.getFlow(i);return[i,a=>{let l=this.getGlobalState().previousFlows.get(i);l?.isVisible!==a&&this.getGlobalState().onFlowStateChangeHandlers.forEach(c=>{c(s,l),this.getGlobalState().previousFlows.set(i,fi(s))}),o?.(a)}]}));Promise.all(n).then(r=>{this.getGlobalState().collections.batchRegister(r)})})}},Sg=(e=>(e.MANUAL="MANUAL",e.AUTOMATIC="AUTOMATIC",e))(Sg||{}),xg=(e=>(e.DRAFT="DRAFT",e.ACTIVE="ACTIVE",e.ARCHIVED="ARCHIVED",e))(xg||{}),wi=(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))(wi||{});function Cg(e){return Object.prototype.toString.call(e)==="[object Object]"}function fl(e){return Cg(e)||Array.isArray(e)}function Eg(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ds(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const i=JSON.stringify(Object.keys(e.breakpoints||{})),o=JSON.stringify(Object.keys(t.breakpoints||{}));return i!==o?!1:n.every(s=>{const a=e[s],l=t[s];return typeof a=="function"?`${a}`==`${l}`:!fl(a)||!fl(l)?a===l:Ds(a,l)})}function pl(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function kg(e,t){if(e.length!==t.length)return!1;const n=pl(e),r=pl(t);return n.every((i,o)=>{const s=r[o];return Ds(i,s)})}function Ls(e){return typeof e=="number"}function Ko(e){return typeof e=="string"}function Wi(e){return typeof e=="boolean"}function ml(e){return Object.prototype.toString.call(e)==="[object Object]"}function Le(e){return Math.abs(e)}function Ns(e){return Math.sign(e)}function Sr(e,t){return Le(e-t)}function Tg(e,t){if(e===0||t===0||Le(e)<=Le(t))return 0;const n=Sr(Le(e),Le(t));return Le(n/e)}function Pr(e){return Ir(e).map(Number)}function Ot(e){return e[Dr(e)]}function Dr(e){return Math.max(0,e.length-1)}function Fs(e,t){return t===Dr(e)}function hl(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function Ir(e){return Object.keys(e)}function su(e,t){return[e,t].reduce((n,r)=>(Ir(r).forEach(i=>{const o=n[i],s=r[i],a=ml(o)&&ml(s);n[i]=a?su(o,s):s}),n),{})}function Xo(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function Ag(e,t){const n={start:r,center:i,end:o};function r(){return 0}function i(l){return o(l)/2}function o(l){return t-l}function s(l,c){return Ko(e)?n[e](l):e(t,l,c)}return{measure:s}}function Or(){let e=[];function t(i,o,s,a={passive:!0}){let l;if("addEventListener"in i)i.addEventListener(o,s,a),l=()=>i.removeEventListener(o,s,a);else{const c=i;c.addListener(s),l=()=>c.removeListener(s)}return e.push(l),r}function n(){e=e.filter(i=>i())}const r={add:t,clear:n};return r}function Pg(e,t,n,r){const i=Or(),o=1e3/60;let s=null,a=0,l=0;function c(){i.add(e,"visibilitychange",()=>{e.hidden&&m()})}function d(){g(),i.clear()}function u(y){if(!l)return;s||(s=y);const p=y-s;for(s=y,a+=p;a>=o;)n(o),a-=o;const h=a/o;r(h),l&&t.requestAnimationFrame(u)}function b(){l||(l=t.requestAnimationFrame(u))}function g(){t.cancelAnimationFrame(l),s=null,a=0,l=0}function m(){s=null,a=0}return{init:c,destroy:d,start:b,stop:g,update:()=>n(o),render:r}}function Ig(e,t){const n=t==="rtl",r=e==="y",i=r?"y":"x",o=r?"x":"y",s=!r&&n?-1:1,a=d(),l=u();function c(m){const{height:f,width:y}=m;return r?f:y}function d(){return r?"top":n?"right":"left"}function u(){return r?"bottom":n?"left":"right"}function b(m){return m*s}return{scroll:i,cross:o,startEdge:a,endEdge:l,measureSize:c,direction:b}}function Tn(e=0,t=0){const n=Le(e-t);function r(c){return c<e}function i(c){return c>t}function o(c){return r(c)||i(c)}function s(c){return o(c)?r(c)?e:t:c}function a(c){return n?c-n*Math.ceil((c-t)/n):c}return{length:n,max:t,min:e,constrain:s,reachedAny:o,reachedMax:i,reachedMin:r,removeOffset:a}}function au(e,t,n){const{constrain:r}=Tn(0,e),i=e+1;let o=s(t);function s(b){return n?Le((i+b)%i):r(b)}function a(){return o}function l(b){return o=s(b),u}function c(b){return d().set(a()+b)}function d(){return au(e,a(),n)}const u={get:a,set:l,add:c,clone:d};return u}function Og(e,t,n,r,i,o,s,a,l,c,d,u,b,g,m,f,y,p,h){const{cross:w,direction:S}=e,x=["INPUT","SELECT","TEXTAREA"],A={passive:!1},T=Or(),k=Or(),_=Tn(50,225).constrain(g.measure(20)),z={mouse:300,touch:400},R={mouse:500,touch:600},I=m?43:25;let L=!1,N=0,j=0,B=!1,V=!1,G=!1,J=!1;function ge(Y){if(!h)return;function ce(_e){(Wi(h)||h(Y,_e))&&we(_e)}const me=t;T.add(me,"dragstart",_e=>_e.preventDefault(),A).add(me,"touchmove",()=>{},A).add(me,"touchend",()=>{}).add(me,"touchstart",ce).add(me,"mousedown",ce).add(me,"touchcancel",le).add(me,"contextmenu",le).add(me,"click",Se,!0)}function re(){T.clear(),k.clear()}function Re(){const Y=J?n:t;k.add(Y,"touchmove",Z,A).add(Y,"touchend",le).add(Y,"mousemove",Z,A).add(Y,"mouseup",le)}function be(Y){const ce=Y.nodeName||"";return x.includes(ce)}function Ae(){return(m?R:z)[J?"mouse":"touch"]}function oe(Y,ce){const me=u.add(Ns(Y)*-1),_e=d.byDistance(Y,!m).distance;return m||Le(Y)<_?_e:y&&ce?_e*.5:d.byIndex(me.get(),0).distance}function we(Y){const ce=Xo(Y,r);J=ce,G=m&&ce&&!Y.buttons&&L,L=Sr(i.get(),s.get())>=2,!(ce&&Y.button!==0)&&(be(Y.target)||(B=!0,o.pointerDown(Y),c.useFriction(0).useDuration(0),i.set(s),Re(),N=o.readPoint(Y),j=o.readPoint(Y,w),b.emit("pointerDown")))}function Z(Y){if(!Xo(Y,r)&&Y.touches.length>=2)return le(Y);const me=o.readPoint(Y),_e=o.readPoint(Y,w),He=Sr(me,N),$e=Sr(_e,j);if(!V&&!J&&(!Y.cancelable||(V=He>$e,!V)))return le(Y);const E=o.pointerMove(Y);He>f&&(G=!0),c.useFriction(.3).useDuration(.75),a.start(),i.add(S(E)),Y.preventDefault()}function le(Y){const me=d.byDistance(0,!1).index!==u.get(),_e=o.pointerUp(Y)*Ae(),He=oe(S(_e),me),$e=Tg(_e,He),E=I-10*$e,O=p+$e/50;V=!1,B=!1,k.clear(),c.useDuration(E).useFriction(O),l.distance(He,!m),J=!1,b.emit("pointerUp")}function Se(Y){G&&(Y.stopPropagation(),Y.preventDefault(),G=!1)}function de(){return B}return{init:ge,destroy:re,pointerDown:de}}function Rg(e,t){let r,i;function o(u){return u.timeStamp}function s(u,b){const m=`client${(b||e.scroll)==="x"?"X":"Y"}`;return(Xo(u,t)?u:u.touches[0])[m]}function a(u){return r=u,i=u,s(u)}function l(u){const b=s(u)-s(i),g=o(u)-o(r)>170;return i=u,g&&(r=u),b}function c(u){if(!r||!i)return 0;const b=s(i)-s(r),g=o(u)-o(r),m=o(u)-o(i)>170,f=b/g;return g&&!m&&Le(f)>.1?f:0}return{pointerDown:a,pointerMove:l,pointerUp:c,readPoint:s}}function _g(){function e(n){const{offsetTop:r,offsetLeft:i,offsetWidth:o,offsetHeight:s}=n;return{top:r,right:i+o,bottom:r+s,left:i,width:o,height:s}}return{measure:e}}function Mg(e){function t(r){return e*(r/100)}return{measure:t}}function Dg(e,t,n,r,i,o,s){const a=[e].concat(r);let l,c,d=[],u=!1;function b(y){return i.measureSize(s.measure(y))}function g(y){if(!o)return;c=b(e),d=r.map(b);function p(h){for(const w of h){if(u)return;const S=w.target===e,x=r.indexOf(w.target),A=S?c:d[x],T=b(S?e:r[x]);if(Le(T-A)>=.5){y.reInit(),t.emit("resize");break}}}l=new ResizeObserver(h=>{(Wi(o)||o(y,h))&&p(h)}),n.requestAnimationFrame(()=>{a.forEach(h=>l.observe(h))})}function m(){u=!0,l&&l.disconnect()}return{init:g,destroy:m}}function Lg(e,t,n,r,i,o){let s=0,a=0,l=i,c=o,d=e.get(),u=0;function b(A){const T=A/1e3,k=l*T,_=r.get()-e.get(),z=!l;let R=0;return z?(s=0,n.set(r),e.set(r),R=_):(n.set(e),s+=_/k,s*=c,d+=s,e.add(s*T),R=d-u),a=Ns(R),u=d,x}function g(){const A=r.get()-t.get();return Le(A)<.001}function m(){return l}function f(){return a}function y(){return s}function p(){return w(i)}function h(){return S(o)}function w(A){return l=A,x}function S(A){return c=A,x}const x={direction:f,duration:m,velocity:y,seek:b,settled:g,useBaseFriction:h,useBaseDuration:p,useFriction:S,useDuration:w};return x}function Ng(e,t,n,r,i){const o=i.measure(10),s=i.measure(50),a=Tn(.1,.99);let l=!1;function c(){return!(l||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function d(g){if(!c())return;const m=e.reachedMin(t.get())?"min":"max",f=Le(e[m]-t.get()),y=n.get()-t.get(),p=a.constrain(f/s);n.subtract(y*p),!g&&Le(y)<o&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function u(g){l=!g}return{shouldConstrain:c,constrain:d,toggleActive:u}}function Fg(e,t,n,r,i){const o=Tn(-t+e,0),s=u(),a=d(),l=b();function c(m,f){return Sr(m,f)<1}function d(){const m=s[0],f=Ot(s),y=s.lastIndexOf(m),p=s.indexOf(f)+1;return Tn(y,p)}function u(){return n.map((m,f)=>{const{min:y,max:p}=o,h=o.constrain(m),w=!f,S=Fs(n,f);return w?p:S||c(y,h)?y:c(p,h)?p:h}).map(m=>parseFloat(m.toFixed(3)))}function b(){if(t<=e+i)return[o.max];if(r==="keepSnaps")return s;const{min:m,max:f}=a;return s.slice(m,f)}return{snapsContained:l,scrollContainLimit:a}}function $g(e,t,n){const r=t[0],i=n?r-e:Ot(t);return{limit:Tn(i,r)}}function zg(e,t,n,r){const o=t.min+.1,s=t.max+.1,{reachedMin:a,reachedMax:l}=Tn(o,s);function c(b){return b===1?l(n.get()):b===-1?a(n.get()):!1}function d(b){if(!c(b))return;const g=e*(b*-1);r.forEach(m=>m.add(g))}return{loop:d}}function Bg(e){const{max:t,length:n}=e;function r(o){const s=o-t;return n?s/-n:0}return{get:r}}function jg(e,t,n,r,i){const{startEdge:o,endEdge:s}=e,{groupSlides:a}=i,l=u().map(t.measure),c=b(),d=g();function u(){return a(r).map(f=>Ot(f)[s]-f[0][o]).map(Le)}function b(){return r.map(f=>n[o]-f[o]).map(f=>-Le(f))}function g(){return a(c).map(f=>f[0]).map((f,y)=>f+l[y])}return{snaps:c,snapsAligned:d}}function Vg(e,t,n,r,i,o){const{groupSlides:s}=i,{min:a,max:l}=r,c=d();function d(){const b=s(o),g=!e||t==="keepSnaps";return n.length===1?[o]:g?b:b.slice(a,l).map((m,f,y)=>{const p=!f,h=Fs(y,f);if(p){const w=Ot(y[0])+1;return hl(w)}if(h){const w=Dr(o)-Ot(y)[0]+1;return hl(w,Ot(y)[0])}return m})}return{slideRegistry:c}}function Hg(e,t,n,r,i){const{reachedAny:o,removeOffset:s,constrain:a}=r;function l(m){return m.concat().sort((f,y)=>Le(f)-Le(y))[0]}function c(m){const f=e?s(m):a(m),y=t.map((h,w)=>({diff:d(h-f,0),index:w})).sort((h,w)=>Le(h.diff)-Le(w.diff)),{index:p}=y[0];return{index:p,distance:f}}function d(m,f){const y=[m,m+n,m-n];if(!e)return m;if(!f)return l(y);const p=y.filter(h=>Ns(h)===f);return p.length?l(p):Ot(y)-n}function u(m,f){const y=t[m]-i.get(),p=d(y,f);return{index:m,distance:p}}function b(m,f){const y=i.get()+m,{index:p,distance:h}=c(y),w=!e&&o(y);if(!f||w)return{index:p,distance:m};const S=t[p]-h,x=m+d(S,0);return{index:p,distance:x}}return{byDistance:b,byIndex:u,shortcut:d}}function Wg(e,t,n,r,i,o,s){function a(u){const b=u.distance,g=u.index!==t.get();o.add(b),b&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),g&&(n.set(t.get()),t.set(u.index),s.emit("select"))}function l(u,b){const g=i.byDistance(u,b);a(g)}function c(u,b){const g=t.clone().set(u),m=i.byIndex(g.get(),b);a(m)}return{distance:l,index:c}}function Gg(e,t,n,r,i,o,s,a){const l={passive:!0,capture:!0};let c=0;function d(g){if(!a)return;function m(f){if(new Date().getTime()-c>10)return;s.emit("slideFocusStart"),e.scrollLeft=0;const h=n.findIndex(w=>w.includes(f));Ls(h)&&(i.useDuration(0),r.index(h,0),s.emit("slideFocus"))}o.add(document,"keydown",u,!1),t.forEach((f,y)=>{o.add(f,"focus",p=>{(Wi(a)||a(g,p))&&m(y)},l)})}function u(g){g.code==="Tab"&&(c=new Date().getTime())}return{init:d}}function vr(e){let t=e;function n(){return t}function r(l){t=s(l)}function i(l){t+=s(l)}function o(l){t-=s(l)}function s(l){return Ls(l)?l:l.get()}return{get:n,set:r,add:i,subtract:o}}function lu(e,t){const n=e.scroll==="x"?o:s,r=t.style;let i=!1;function o(u){return`translate3d(${u}px,0px,0px)`}function s(u){return`translate3d(0px,${u}px,0px)`}function a(u){i||(r.transform=n(e.direction(u)))}function l(u){i=!u}function c(){i||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:c,to:a,toggleActive:l}}function Ug(e,t,n,r,i,o,s,a,l){const d=Pr(i),u=Pr(i).reverse(),b=p().concat(h());function g(T,k){return T.reduce((_,z)=>_-i[z],k)}function m(T,k){return T.reduce((_,z)=>g(_,k)>0?_.concat([z]):_,[])}function f(T){return o.map((k,_)=>({start:k-r[_]+.5+T,end:k+t-.5+T}))}function y(T,k,_){const z=f(k);return T.map(R=>{const I=_?0:-n,L=_?n:0,N=_?"end":"start",j=z[R][N];return{index:R,loopPoint:j,slideLocation:vr(-1),translate:lu(e,l[R]),target:()=>a.get()>j?I:L}})}function p(){const T=s[0],k=m(u,T);return y(k,n,!1)}function h(){const T=t-s[0]-1,k=m(d,T);return y(k,-n,!0)}function w(){return b.every(({index:T})=>{const k=d.filter(_=>_!==T);return g(k,t)<=.1})}function S(){b.forEach(T=>{const{target:k,translate:_,slideLocation:z}=T,R=k();R!==z.get()&&(_.to(R),z.set(R))})}function x(){b.forEach(T=>T.translate.clear())}return{canLoop:w,clear:x,loop:S,loopPoints:b}}function Yg(e,t,n){let r,i=!1;function o(l){if(!n)return;function c(d){for(const u of d)if(u.type==="childList"){l.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(d=>{i||(Wi(n)||n(l,d))&&c(d)}),r.observe(e,{childList:!0})}function s(){r&&r.disconnect(),i=!0}return{init:o,destroy:s}}function qg(e,t,n,r){const i={};let o=null,s=null,a,l=!1;function c(){a=new IntersectionObserver(m=>{l||(m.forEach(f=>{const y=t.indexOf(f.target);i[y]=f}),o=null,s=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(m=>a.observe(m))}function d(){a&&a.disconnect(),l=!0}function u(m){return Ir(i).reduce((f,y)=>{const p=parseInt(y),{isIntersecting:h}=i[p];return(m&&h||!m&&!h)&&f.push(p),f},[])}function b(m=!0){if(m&&o)return o;if(!m&&s)return s;const f=u(m);return m&&(o=f),m||(s=f),f}return{init:c,destroy:d,get:b}}function Kg(e,t,n,r,i,o){const{measureSize:s,startEdge:a,endEdge:l}=e,c=n[0]&&i,d=m(),u=f(),b=n.map(s),g=y();function m(){if(!c)return 0;const h=n[0];return Le(t[a]-h[a])}function f(){if(!c)return 0;const h=o.getComputedStyle(Ot(r));return parseFloat(h.getPropertyValue(`margin-${l}`))}function y(){return n.map((h,w,S)=>{const x=!w,A=Fs(S,w);return x?b[w]+d:A?b[w]+u:S[w+1][a]-h[a]}).map(Le)}return{slideSizes:b,slideSizesWithGaps:g,startGap:d,endGap:u}}function Xg(e,t,n,r,i,o,s,a,l){const{startEdge:c,endEdge:d,direction:u}=e,b=Ls(n);function g(p,h){return Pr(p).filter(w=>w%h===0).map(w=>p.slice(w,w+h))}function m(p){return p.length?Pr(p).reduce((h,w,S)=>{const x=Ot(h)||0,A=x===0,T=w===Dr(p),k=i[c]-o[x][c],_=i[c]-o[w][d],z=!r&&A?u(s):0,R=!r&&T?u(a):0,I=Le(_-R-(k+z));return S&&I>t+l&&h.push(w),T&&h.push(p.length),h},[]).map((h,w,S)=>{const x=Math.max(S[w-1]||0);return p.slice(x,h)}):[]}function f(p){return b?g(p,n):m(p)}return{groupSlides:f}}function Zg(e,t,n,r,i,o,s){const{align:a,axis:l,direction:c,startIndex:d,loop:u,duration:b,dragFree:g,dragThreshold:m,inViewThreshold:f,slidesToScroll:y,skipSnaps:p,containScroll:h,watchResize:w,watchSlides:S,watchDrag:x,watchFocus:A}=o,T=2,k=_g(),_=k.measure(t),z=n.map(k.measure),R=Ig(l,c),I=R.measureSize(_),L=Mg(I),N=Ag(a,I),j=!u&&!!h,B=u||!!h,{slideSizes:V,slideSizesWithGaps:G,startGap:J,endGap:ge}=Kg(R,_,z,n,B,i),re=Xg(R,I,y,u,_,z,J,ge,T),{snaps:Re,snapsAligned:be}=jg(R,N,_,z,re),Ae=-Ot(Re)+Ot(G),{snapsContained:oe,scrollContainLimit:we}=Fg(I,Ae,be,h,T),Z=j?oe:be,{limit:le}=$g(Ae,Z,u),Se=au(Dr(Z),d,u),de=Se.clone(),ne=Pr(n),Y=({dragHandler:Xe,scrollBody:Mt,scrollBounds:Dt,options:{loop:St}},et)=>{St||Dt.constrain(Xe.pointerDown()),Mt.seek(et)},ce=({scrollBody:Xe,translate:Mt,location:Dt,offsetLocation:St,scrollLooper:et,slideLooper:kt,dragHandler:rr,animation:ir,eventHandler:Br,scrollBounds:_n,options:{loop:wn}},jr)=>{const cn=Xe.settled(),io=!_n.shouldConstrain(),Vr=wn?cn:cn&&io;Vr&&!rr.pointerDown()&&(ir.stop(),Br.emit("settle")),Vr||Br.emit("scroll");const Be=Dt.get()*jr+E.get()*(1-jr);St.set(Be),wn&&(et.loop(Xe.direction()),kt.loop()),Mt.to(St.get())},me=Pg(r,i,Xe=>Y(ln,Xe),Xe=>ce(ln,Xe)),_e=.68,He=Z[Se.get()],$e=vr(He),E=vr(He),O=vr(He),F=vr(He),K=Lg($e,O,E,F,b,_e),q=Hg(u,Z,Ae,le,F),H=Wg(me,Se,de,K,q,F,s),Q=Bg(le),pe=Or(),Pe=qg(t,n,s,f),{slideRegistry:Me}=Vg(j,h,Z,we,re,ne),wt=Gg(e,n,Me,H,K,pe,s,A),ln={ownerDocument:r,ownerWindow:i,eventHandler:s,containerRect:_,slideRects:z,animation:me,axis:R,dragHandler:Og(R,e,r,i,F,Rg(R,i),$e,me,H,K,q,Se,s,L,g,m,p,_e,x),eventStore:pe,percentOfView:L,index:Se,indexPrevious:de,limit:le,location:$e,offsetLocation:O,previousLocation:E,options:o,resizeHandler:Dg(t,s,i,n,R,w,k),scrollBody:K,scrollBounds:Ng(le,O,F,K,L),scrollLooper:zg(Ae,le,O,[$e,O,E,F]),scrollProgress:Q,scrollSnapList:Z.map(Q.get),scrollSnaps:Z,scrollTarget:q,scrollTo:H,slideLooper:Ug(R,I,Ae,V,G,Re,Z,O,n),slideFocus:wt,slidesHandler:Yg(t,s,S),slidesInView:Pe,slideIndexes:ne,slideRegistry:Me,slidesToScroll:re,target:F,translate:lu(R,t)};return ln}function Jg(){let e={},t;function n(c){t=c}function r(c){return e[c]||[]}function i(c){return r(c).forEach(d=>d(t,c)),l}function o(c,d){return e[c]=r(c).concat([d]),l}function s(c,d){return e[c]=r(c).filter(u=>u!==d),l}function a(){e={}}const l={init:n,emit:i,off:s,on:o,clear:a};return l}const Qg={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 ev(e){function t(o,s){return su(o,s||{})}function n(o){const s=o.breakpoints||{},a=Ir(s).filter(l=>e.matchMedia(l).matches).map(l=>s[l]).reduce((l,c)=>t(l,c),{});return t(o,a)}function r(o){return o.map(s=>Ir(s.breakpoints||{})).reduce((s,a)=>s.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function tv(e){let t=[];function n(o,s){return t=s.filter(({options:a})=>e.optionsAtMedia(a).active!==!1),t.forEach(a=>a.init(o,e)),s.reduce((a,l)=>Object.assign(a,{[l.name]:l}),{})}function r(){t=t.filter(o=>o.destroy())}return{init:n,destroy:r}}function Si(e,t,n){const r=e.ownerDocument,i=r.defaultView,o=ev(i),s=tv(o),a=Or(),l=Jg(),{mergeOptions:c,optionsAtMedia:d,optionsMediaQueries:u}=o,{on:b,off:g,emit:m}=l,f=R;let y=!1,p,h=c(Qg,Si.globalOptions),w=c(h),S=[],x,A,T;function k(){const{container:ne,slides:Y}=w;A=(Ko(ne)?e.querySelector(ne):ne)||e.children[0];const me=Ko(Y)?A.querySelectorAll(Y):Y;T=[].slice.call(me||A.children)}function _(ne){const Y=Zg(e,A,T,r,i,ne,l);if(ne.loop&&!Y.slideLooper.canLoop()){const ce=Object.assign({},ne,{loop:!1});return _(ce)}return Y}function z(ne,Y){y||(h=c(h,ne),w=d(h),S=Y||S,k(),p=_(w),u([h,...S.map(({options:ce})=>ce)]).forEach(ce=>a.add(ce,"change",R)),w.active&&(p.translate.to(p.location.get()),p.animation.init(),p.slidesInView.init(),p.slideFocus.init(de),p.eventHandler.init(de),p.resizeHandler.init(de),p.slidesHandler.init(de),p.options.loop&&p.slideLooper.loop(),A.offsetParent&&T.length&&p.dragHandler.init(de),x=s.init(de,S)))}function R(ne,Y){const ce=re();I(),z(c({startIndex:ce},ne),Y),l.emit("reInit")}function I(){p.dragHandler.destroy(),p.eventStore.clear(),p.translate.clear(),p.slideLooper.clear(),p.resizeHandler.destroy(),p.slidesHandler.destroy(),p.slidesInView.destroy(),p.animation.destroy(),s.destroy(),a.clear()}function L(){y||(y=!0,a.clear(),I(),l.emit("destroy"),l.clear())}function N(ne,Y,ce){!w.active||y||(p.scrollBody.useBaseFriction().useDuration(Y===!0?0:w.duration),p.scrollTo.index(ne,ce||0))}function j(ne){const Y=p.index.add(1).get();N(Y,ne,-1)}function B(ne){const Y=p.index.add(-1).get();N(Y,ne,1)}function V(){return p.index.add(1).get()!==re()}function G(){return p.index.add(-1).get()!==re()}function J(){return p.scrollSnapList}function ge(){return p.scrollProgress.get(p.location.get())}function re(){return p.index.get()}function Re(){return p.indexPrevious.get()}function be(){return p.slidesInView.get()}function Ae(){return p.slidesInView.get(!1)}function oe(){return x}function we(){return p}function Z(){return e}function le(){return A}function Se(){return T}const de={canScrollNext:V,canScrollPrev:G,containerNode:le,internalEngine:we,destroy:L,off:g,on:b,emit:m,plugins:oe,previousScrollSnap:Re,reInit:f,rootNode:Z,scrollNext:j,scrollPrev:B,scrollProgress:ge,scrollSnapList:J,scrollTo:N,selectedScrollSnap:re,slideNodes:Se,slidesInView:be,slidesNotInView:Ae};return z(t,n),setTimeout(()=>l.emit("init"),0),de}Si.globalOptions=void 0;function $s(e={},t=[]){const n=v.useRef(e),r=v.useRef(t),[i,o]=v.useState(),[s,a]=v.useState(),l=v.useCallback(()=>{i&&i.reInit(n.current,r.current)},[i]);return v.useEffect(()=>{Ds(n.current,e)||(n.current=e,l())},[e,l]),v.useEffect(()=>{kg(r.current,t)||(r.current=t,l())},[t,l]),v.useEffect(()=>{if(Eg()&&s){Si.globalOptions=$s.globalOptions;const c=Si(s,n.current,r.current);return o(c),()=>c.destroy()}else o(void 0)},[s,o]),[a,i]}$s.globalOptions=void 0;var zs="Collapsible",[nv,HC]=Wt(zs),[rv,Bs]=nv(zs),cu=v.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:o,onOpenChange:s,...a}=e,[l=!1,c]=En({prop:r,defaultProp:i,onChange:s});return M.jsx(rv,{scope:n,disabled:o,contentId:xn(),open:l,onOpenToggle:v.useCallback(()=>c(d=>!d),[c]),children:M.jsx(ke.div,{"data-state":Vs(l),"data-disabled":o?"":void 0,...a,ref:t})})});cu.displayName=zs;var uu="CollapsibleTrigger",du=v.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=Bs(uu,n);return M.jsx(ke.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Vs(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:ye(e.onClick,i.onOpenToggle)})});du.displayName=uu;var js="CollapsibleContent",fu=v.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=Bs(js,e.__scopeCollapsible);return M.jsx(On,{present:n||i.open,children:({present:o})=>M.jsx(iv,{...r,ref:t,present:o})})});fu.displayName=js;var iv=v.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...o}=e,s=Bs(js,n),[a,l]=v.useState(r),c=v.useRef(null),d=Te(t,c),u=v.useRef(0),b=u.current,g=v.useRef(0),m=g.current,f=s.open||a,y=v.useRef(f),p=v.useRef();return v.useEffect(()=>{const h=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(h)},[]),Qe(()=>{const h=c.current;if(h){p.current=p.current||{transitionDuration:h.style.transitionDuration,animationName:h.style.animationName},h.style.transitionDuration="0s",h.style.animationName="none";const w=h.getBoundingClientRect();u.current=w.height,g.current=w.width,y.current||(h.style.transitionDuration=p.current.transitionDuration,h.style.animationName=p.current.animationName),l(r)}},[s.open,r]),M.jsx(ke.div,{"data-state":Vs(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!f,...o,ref:d,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:f&&i})});function Vs(e){return e?"open":"closed"}var ov=cu,sv=du,av=fu,Lr=e=>e.type==="checkbox",Hn=e=>e instanceof Date,it=e=>e==null;const pu=e=>typeof e=="object";var Ve=e=>!it(e)&&!Array.isArray(e)&&pu(e)&&!Hn(e),mu=e=>Ve(e)&&e.target?Lr(e.target)?e.target.checked:e.target.value:e,lv=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,hu=(e,t)=>e.has(lv(t)),cv=e=>{const t=e.constructor&&e.constructor.prototype;return Ve(t)&&t.hasOwnProperty("isPrototypeOf")},Hs=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function lt(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Hs&&(e instanceof Blob||e instanceof FileList))&&(n||Ve(e)))if(t=n?[]:{},!n&&!cv(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=lt(e[r]));else return e;return t}var Gi=e=>Array.isArray(e)?e.filter(Boolean):[],Fe=e=>e===void 0,X=(e,t,n)=>{if(!t||!Ve(e))return n;const r=Gi(t.split(/[,[\].]+?/)).reduce((i,o)=>it(i)?i:i[o],e);return Fe(r)||r===e?Fe(e[t])?n:e[t]:r},xt=e=>typeof e=="boolean",Ws=e=>/^\w*$/.test(e),gu=e=>Gi(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Ie=(e,t,n)=>{let r=-1;const i=Ws(t)?[t]:gu(t),o=i.length,s=o-1;for(;++r<o;){const a=i[r];let l=n;if(r!==s){const c=e[a];l=Ve(c)||Array.isArray(c)?c:isNaN(+i[r+1])?{}:[]}if(a==="__proto__")return;e[a]=l,e=e[a]}return e};const xi={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Pt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ut={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},vu=fe.createContext(null),Ui=()=>fe.useContext(vu),uv=e=>{const{children:t,...n}=e;return fe.createElement(vu.Provider,{value:n},t)};var bu=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const s=o;return t._proxyFormState[s]!==Pt.all&&(t._proxyFormState[s]=!r||Pt.all),n&&(n[s]=!0),e[s]}});return i},ut=e=>Ve(e)&&!Object.keys(e).length,yu=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return ut(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(s=>t[s]===(!r||Pt.all))},xr=e=>Array.isArray(e)?e:[e],wu=(e,t,n)=>!e||!t||e===t||xr(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Gs(e){const t=fe.useRef(e);t.current=e,fe.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function dv(e){const t=Ui(),{control:n=t.control,disabled:r,name:i,exact:o}=e||{},[s,a]=fe.useState(n._formState),l=fe.useRef(!0),c=fe.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=fe.useRef(i);return d.current=i,Gs({disabled:r,next:u=>l.current&&wu(d.current,u.name,o)&&yu(u,c.current,n._updateFormState)&&a({...n._formState,...u}),subject:n._subjects.state}),fe.useEffect(()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),bu(s,n,c.current,!1)}var jt=e=>typeof e=="string",Su=(e,t,n,r,i)=>jt(e)?(r&&t.watch.add(e),X(n,e,i)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),X(n,o))):(r&&(t.watchAll=!0),n);function fv(e){const t=Ui(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:s}=e||{},a=fe.useRef(r);a.current=r,Gs({disabled:o,subject:n._subjects.values,next:d=>{wu(a.current,d.name,s)&&c(lt(Su(a.current,n._names,d.values||n._formValues,!1,i)))}});const[l,c]=fe.useState(n._getWatch(r,i));return fe.useEffect(()=>n._removeUnmounted()),l}function pv(e){const t=Ui(),{name:n,disabled:r,control:i=t.control,shouldUnregister:o}=e,s=hu(i._names.array,n),a=fv({control:i,name:n,defaultValue:X(i._formValues,n,X(i._defaultValues,n,e.defaultValue)),exact:!0}),l=dv({control:i,name:n,exact:!0}),c=fe.useRef(i.register(n,{...e.rules,value:a,...xt(e.disabled)?{disabled:e.disabled}:{}}));return fe.useEffect(()=>{const d=i._options.shouldUnregister||o,u=(b,g)=>{const m=X(i._fields,b);m&&m._f&&(m._f.mount=g)};if(u(n,!0),d){const b=lt(X(i._options.defaultValues,n));Ie(i._defaultValues,n,b),Fe(X(i._formValues,n))&&Ie(i._formValues,n,b)}return()=>{(s?d&&!i._state.action:d)?i.unregister(n):u(n,!1)}},[n,i,s,o]),fe.useEffect(()=>{X(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:X(i._fields,n)._f.value})},[r,n,i]),{field:{name:n,value:a,...xt(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:fe.useCallback(d=>c.current.onChange({target:{value:mu(d),name:n},type:xi.CHANGE}),[n]),onBlur:fe.useCallback(()=>c.current.onBlur({target:{value:X(i._formValues,n),name:n},type:xi.BLUR}),[n,i]),ref:fe.useCallback(d=>{const u=X(i._fields,n);u&&d&&(u._f.ref={focus:()=>d.focus(),select:()=>d.select(),setCustomValidity:b=>d.setCustomValidity(b),reportValidity:()=>d.reportValidity()})},[i._fields,n])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!X(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!X(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!X(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!X(l.validatingFields,n)},error:{enumerable:!0,get:()=>X(l.errors,n)}})}}var mv=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},gl=e=>({isOnSubmit:!e||e===Pt.onSubmit,isOnBlur:e===Pt.onBlur,isOnChange:e===Pt.onChange,isOnAll:e===Pt.all,isOnTouch:e===Pt.onTouched}),vl=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Cr=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const o=X(e,i);if(o){const{_f:s,...a}=o;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!r)return!0;if(s.ref&&t(s.ref,s.name)&&!r)return!0;if(Cr(a,t))break}else if(Ve(a)&&Cr(a,t))break}}};var hv=(e,t,n)=>{const r=xr(X(e,n));return Ie(r,"root",t[n]),Ie(e,n,r),e},Us=e=>e.type==="file",Xt=e=>typeof e=="function",Ci=e=>{if(!Hs)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},pi=e=>jt(e),Ys=e=>e.type==="radio",Ei=e=>e instanceof RegExp;const bl={value:!1,isValid:!1},yl={value:!0,isValid:!0};var xu=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Fe(e[0].attributes.value)?Fe(e[0].value)||e[0].value===""?yl:{value:e[0].value,isValid:!0}:yl:bl}return bl};const wl={isValid:!1,value:null};var Cu=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,wl):wl;function Sl(e,t,n="validate"){if(pi(e)||Array.isArray(e)&&e.every(pi)||xt(e)&&!e)return{type:n,message:pi(e)?e:"",ref:t}}var Fn=e=>Ve(e)&&!Ei(e)?e:{value:e,message:""},xl=async(e,t,n,r,i)=>{const{ref:o,refs:s,required:a,maxLength:l,minLength:c,min:d,max:u,pattern:b,validate:g,name:m,valueAsNumber:f,mount:y,disabled:p}=e._f,h=X(t,m);if(!y||p)return{};const w=s?s[0]:o,S=I=>{r&&w.reportValidity&&(w.setCustomValidity(xt(I)?"":I||""),w.reportValidity())},x={},A=Ys(o),T=Lr(o),k=A||T,_=(f||Us(o))&&Fe(o.value)&&Fe(h)||Ci(o)&&o.value===""||h===""||Array.isArray(h)&&!h.length,z=mv.bind(null,m,n,x),R=(I,L,N,j=Ut.maxLength,B=Ut.minLength)=>{const V=I?L:N;x[m]={type:I?j:B,message:V,ref:o,...z(I?j:B,V)}};if(i?!Array.isArray(h)||!h.length:a&&(!k&&(_||it(h))||xt(h)&&!h||T&&!xu(s).isValid||A&&!Cu(s).isValid)){const{value:I,message:L}=pi(a)?{value:!!a,message:a}:Fn(a);if(I&&(x[m]={type:Ut.required,message:L,ref:w,...z(Ut.required,L)},!n))return S(L),x}if(!_&&(!it(d)||!it(u))){let I,L;const N=Fn(u),j=Fn(d);if(!it(h)&&!isNaN(h)){const B=o.valueAsNumber||h&&+h;it(N.value)||(I=B>N.value),it(j.value)||(L=B<j.value)}else{const B=o.valueAsDate||new Date(h),V=ge=>new Date(new Date().toDateString()+" "+ge),G=o.type=="time",J=o.type=="week";jt(N.value)&&h&&(I=G?V(h)>V(N.value):J?h>N.value:B>new Date(N.value)),jt(j.value)&&h&&(L=G?V(h)<V(j.value):J?h<j.value:B<new Date(j.value))}if((I||L)&&(R(!!I,N.message,j.message,Ut.max,Ut.min),!n))return S(x[m].message),x}if((l||c)&&!_&&(jt(h)||i&&Array.isArray(h))){const I=Fn(l),L=Fn(c),N=!it(I.value)&&h.length>+I.value,j=!it(L.value)&&h.length<+L.value;if((N||j)&&(R(N,I.message,L.message),!n))return S(x[m].message),x}if(b&&!_&&jt(h)){const{value:I,message:L}=Fn(b);if(Ei(I)&&!h.match(I)&&(x[m]={type:Ut.pattern,message:L,ref:o,...z(Ut.pattern,L)},!n))return S(L),x}if(g){if(Xt(g)){const I=await g(h,t),L=Sl(I,w);if(L&&(x[m]={...L,...z(Ut.validate,L.message)},!n))return S(L.message),x}else if(Ve(g)){let I={};for(const L in g){if(!ut(I)&&!n)break;const N=Sl(await g[L](h,t),w,L);N&&(I={...N,...z(L,N.message)},S(N.message),n&&(x[m]=I))}if(!ut(I)&&(x[m]={ref:w,...I},!n))return x}}return S(!0),x};function gv(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Fe(e)?r++:e[t[r++]];return e}function vv(e){for(const t in e)if(e.hasOwnProperty(t)&&!Fe(e[t]))return!1;return!0}function Ge(e,t){const n=Array.isArray(t)?t:Ws(t)?[t]:gu(t),r=n.length===1?e:gv(e,n),i=n.length-1,o=n[i];return r&&delete r[o],i!==0&&(Ve(r)&&ut(r)||Array.isArray(r)&&vv(r))&&Ge(e,n.slice(0,-1)),e}var Co=()=>{let e=[];return{get observers(){return e},next:i=>{for(const o of e)o.next&&o.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(o=>o!==i)}}),unsubscribe:()=>{e=[]}}},ki=e=>it(e)||!pu(e);function fn(e,t){if(ki(e)||ki(t))return e===t;if(Hn(e)&&Hn(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const s=t[i];if(Hn(o)&&Hn(s)||Ve(o)&&Ve(s)||Array.isArray(o)&&Array.isArray(s)?!fn(o,s):o!==s)return!1}}return!0}var Eu=e=>e.type==="select-multiple",bv=e=>Ys(e)||Lr(e),Eo=e=>Ci(e)&&e.isConnected,ku=e=>{for(const t in e)if(Xt(e[t]))return!0;return!1};function Ti(e,t={}){const n=Array.isArray(e);if(Ve(e)||n)for(const r in e)Array.isArray(e[r])||Ve(e[r])&&!ku(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Ti(e[r],t[r])):it(e[r])||(t[r]=!0);return t}function Tu(e,t,n){const r=Array.isArray(e);if(Ve(e)||r)for(const i in e)Array.isArray(e[i])||Ve(e[i])&&!ku(e[i])?Fe(t)||ki(n[i])?n[i]=Array.isArray(e[i])?Ti(e[i],[]):{...Ti(e[i])}:Tu(e[i],it(t)?{}:t[i],n[i]):n[i]=!fn(e[i],t[i]);return n}var Qr=(e,t)=>Tu(e,t,Ti(t)),Au=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Fe(e)?e:t?e===""?NaN:e&&+e:n&&jt(e)?new Date(e):r?r(e):e;function ko(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Us(t)?t.files:Ys(t)?Cu(e.refs).value:Eu(t)?[...t.selectedOptions].map(({value:n})=>n):Lr(t)?xu(e.refs).value:Au(Fe(t.value)?e.ref.value:t.value,e)}var yv=(e,t,n,r)=>{const i={};for(const o of e){const s=X(t,o);s&&Ie(i,o,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},pr=e=>Fe(e)?e:Ei(e)?e.source:Ve(e)?Ei(e.value)?e.value.source:e.value:e;const Cl="AsyncFunction";var wv=e=>(!e||!e.validate)&&!!(Xt(e.validate)&&e.validate.constructor.name===Cl||Ve(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Cl)),Sv=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function El(e,t,n){const r=X(e,n);if(r||Ws(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const o=i.join("."),s=X(t,o),a=X(e,o);if(s&&!Array.isArray(s)&&n!==o)return{name:n};if(a&&a.type)return{name:o,error:a};i.pop()}return{name:n}}var xv=(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,Cv=(e,t)=>!Gi(X(e,t)).length&&Ge(e,t);const Ev={mode:Pt.onSubmit,reValidateMode:Pt.onChange,shouldFocusError:!0};function kv(e={}){let t={...Ev,...e},n={submitCount:0,isDirty:!1,isLoading:Xt(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=Ve(t.defaultValues)||Ve(t.values)?lt(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:lt(i),s={action:!1,mount:!1,watch:!1},a={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,c=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},u={values:Co(),array:Co(),state:Co()},b=gl(t.mode),g=gl(t.reValidateMode),m=t.criteriaMode===Pt.all,f=E=>O=>{clearTimeout(c),c=setTimeout(E,O)},y=async E=>{if(d.isValid||E){const O=t.resolver?ut((await k()).errors):await z(r,!0);O!==n.isValid&&u.state.next({isValid:O})}},p=(E,O)=>{(d.isValidating||d.validatingFields)&&((E||Array.from(a.mount)).forEach(F=>{F&&(O?Ie(n.validatingFields,F,O):Ge(n.validatingFields,F))}),u.state.next({validatingFields:n.validatingFields,isValidating:!ut(n.validatingFields)}))},h=(E,O=[],F,K,q=!0,H=!0)=>{if(K&&F){if(s.action=!0,H&&Array.isArray(X(r,E))){const Q=F(X(r,E),K.argA,K.argB);q&&Ie(r,E,Q)}if(H&&Array.isArray(X(n.errors,E))){const Q=F(X(n.errors,E),K.argA,K.argB);q&&Ie(n.errors,E,Q),Cv(n.errors,E)}if(d.touchedFields&&H&&Array.isArray(X(n.touchedFields,E))){const Q=F(X(n.touchedFields,E),K.argA,K.argB);q&&Ie(n.touchedFields,E,Q)}d.dirtyFields&&(n.dirtyFields=Qr(i,o)),u.state.next({name:E,isDirty:I(E,O),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Ie(o,E,O)},w=(E,O)=>{Ie(n.errors,E,O),u.state.next({errors:n.errors})},S=E=>{n.errors=E,u.state.next({errors:n.errors,isValid:!1})},x=(E,O,F,K)=>{const q=X(r,E);if(q){const H=X(o,E,Fe(F)?X(i,E):F);Fe(H)||K&&K.defaultChecked||O?Ie(o,E,O?H:ko(q._f)):j(E,H),s.mount&&y()}},A=(E,O,F,K,q)=>{let H=!1,Q=!1;const pe={name:E},Pe=!!(X(r,E)&&X(r,E)._f&&X(r,E)._f.disabled);if(!F||K){d.isDirty&&(Q=n.isDirty,n.isDirty=pe.isDirty=I(),H=Q!==pe.isDirty);const Me=Pe||fn(X(i,E),O);Q=!!(!Pe&&X(n.dirtyFields,E)),Me||Pe?Ge(n.dirtyFields,E):Ie(n.dirtyFields,E,!0),pe.dirtyFields=n.dirtyFields,H=H||d.dirtyFields&&Q!==!Me}if(F){const Me=X(n.touchedFields,E);Me||(Ie(n.touchedFields,E,F),pe.touchedFields=n.touchedFields,H=H||d.touchedFields&&Me!==F)}return H&&q&&u.state.next(pe),H?pe:{}},T=(E,O,F,K)=>{const q=X(n.errors,E),H=d.isValid&&xt(O)&&n.isValid!==O;if(e.delayError&&F?(l=f(()=>w(E,F)),l(e.delayError)):(clearTimeout(c),l=null,F?Ie(n.errors,E,F):Ge(n.errors,E)),(F?!fn(q,F):q)||!ut(K)||H){const Q={...K,...H&&xt(O)?{isValid:O}:{},errors:n.errors,name:E};n={...n,...Q},u.state.next(Q)}},k=async E=>{p(E,!0);const O=await t.resolver(o,t.context,yv(E||a.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return p(E),O},_=async E=>{const{errors:O}=await k(E);if(E)for(const F of E){const K=X(O,F);K?Ie(n.errors,F,K):Ge(n.errors,F)}else n.errors=O;return O},z=async(E,O,F={valid:!0})=>{for(const K in E){const q=E[K];if(q){const{_f:H,...Q}=q;if(H){const pe=a.array.has(H.name),Pe=q._f&&wv(q._f);Pe&&d.validatingFields&&p([K],!0);const Me=await xl(q,o,m,t.shouldUseNativeValidation&&!O,pe);if(Pe&&d.validatingFields&&p([K]),Me[H.name]&&(F.valid=!1,O))break;!O&&(X(Me,H.name)?pe?hv(n.errors,Me,H.name):Ie(n.errors,H.name,Me[H.name]):Ge(n.errors,H.name))}!ut(Q)&&await z(Q,O,F)}}return F.valid},R=()=>{for(const E of a.unMount){const O=X(r,E);O&&(O._f.refs?O._f.refs.every(F=>!Eo(F)):!Eo(O._f.ref))&&we(E)}a.unMount=new Set},I=(E,O)=>(E&&O&&Ie(o,E,O),!fn(re(),i)),L=(E,O,F)=>Su(E,a,{...s.mount?o:Fe(O)?i:jt(E)?{[E]:O}:O},F,O),N=E=>Gi(X(s.mount?o:i,E,e.shouldUnregister?X(i,E,[]):[])),j=(E,O,F={})=>{const K=X(r,E);let q=O;if(K){const H=K._f;H&&(!H.disabled&&Ie(o,E,Au(O,H)),q=Ci(H.ref)&&it(O)?"":O,Eu(H.ref)?[...H.ref.options].forEach(Q=>Q.selected=q.includes(Q.value)):H.refs?Lr(H.ref)?H.refs.length>1?H.refs.forEach(Q=>(!Q.defaultChecked||!Q.disabled)&&(Q.checked=Array.isArray(q)?!!q.find(pe=>pe===Q.value):q===Q.value)):H.refs[0]&&(H.refs[0].checked=!!q):H.refs.forEach(Q=>Q.checked=Q.value===q):Us(H.ref)?H.ref.value="":(H.ref.value=q,H.ref.type||u.values.next({name:E,values:{...o}})))}(F.shouldDirty||F.shouldTouch)&&A(E,q,F.shouldTouch,F.shouldDirty,!0),F.shouldValidate&&ge(E)},B=(E,O,F)=>{for(const K in O){const q=O[K],H=`${E}.${K}`,Q=X(r,H);(a.array.has(E)||!ki(q)||Q&&!Q._f)&&!Hn(q)?B(H,q,F):j(H,q,F)}},V=(E,O,F={})=>{const K=X(r,E),q=a.array.has(E),H=lt(O);Ie(o,E,H),q?(u.array.next({name:E,values:{...o}}),(d.isDirty||d.dirtyFields)&&F.shouldDirty&&u.state.next({name:E,dirtyFields:Qr(i,o),isDirty:I(E,H)})):K&&!K._f&&!it(H)?B(E,H,F):j(E,H,F),vl(E,a)&&u.state.next({...n}),u.values.next({name:s.mount?E:void 0,values:{...o}})},G=async E=>{s.mount=!0;const O=E.target;let F=O.name,K=!0;const q=X(r,F),H=()=>O.type?ko(q._f):mu(E),Q=pe=>{K=Number.isNaN(pe)||fn(pe,X(o,F,pe))};if(q){let pe,Pe;const Me=H(),wt=E.type===xi.BLUR||E.type===xi.FOCUS_OUT,ln=!Sv(q._f)&&!t.resolver&&!X(n.errors,F)&&!q._f.deps||xv(wt,X(n.touchedFields,F),n.isSubmitted,g,b),Xe=vl(F,a,wt);Ie(o,F,Me),wt?(q._f.onBlur&&q._f.onBlur(E),l&&l(0)):q._f.onChange&&q._f.onChange(E);const Mt=A(F,Me,wt,!1),Dt=!ut(Mt)||Xe;if(!wt&&u.values.next({name:F,type:E.type,values:{...o}}),ln)return d.isValid&&(e.mode==="onBlur"?wt&&y():y()),Dt&&u.state.next({name:F,...Xe?{}:Mt});if(!wt&&Xe&&u.state.next({...n}),t.resolver){const{errors:St}=await k([F]);if(Q(Me),K){const et=El(n.errors,r,F),kt=El(St,r,et.name||F);pe=kt.error,F=kt.name,Pe=ut(St)}}else p([F],!0),pe=(await xl(q,o,m,t.shouldUseNativeValidation))[F],p([F]),Q(Me),K&&(pe?Pe=!1:d.isValid&&(Pe=await z(r,!0)));K&&(q._f.deps&&ge(q._f.deps),T(F,Pe,pe,Mt))}},J=(E,O)=>{if(X(n.errors,O)&&E.focus)return E.focus(),1},ge=async(E,O={})=>{let F,K;const q=xr(E);if(t.resolver){const H=await _(Fe(E)?E:q);F=ut(H),K=E?!q.some(Q=>X(H,Q)):F}else E?(K=(await Promise.all(q.map(async H=>{const Q=X(r,H);return await z(Q&&Q._f?{[H]:Q}:Q)}))).every(Boolean),!(!K&&!n.isValid)&&y()):K=F=await z(r);return u.state.next({...!jt(E)||d.isValid&&F!==n.isValid?{}:{name:E},...t.resolver||!E?{isValid:F}:{},errors:n.errors}),O.shouldFocus&&!K&&Cr(r,J,E?q:a.mount),K},re=E=>{const O={...s.mount?o:i};return Fe(E)?O:jt(E)?X(O,E):E.map(F=>X(O,F))},Re=(E,O)=>({invalid:!!X((O||n).errors,E),isDirty:!!X((O||n).dirtyFields,E),error:X((O||n).errors,E),isValidating:!!X(n.validatingFields,E),isTouched:!!X((O||n).touchedFields,E)}),be=E=>{E&&xr(E).forEach(O=>Ge(n.errors,O)),u.state.next({errors:E?n.errors:{}})},Ae=(E,O,F)=>{const K=(X(r,E,{_f:{}})._f||{}).ref,q=X(n.errors,E)||{},{ref:H,message:Q,type:pe,...Pe}=q;Ie(n.errors,E,{...Pe,...O,ref:K}),u.state.next({name:E,errors:n.errors,isValid:!1}),F&&F.shouldFocus&&K&&K.focus&&K.focus()},oe=(E,O)=>Xt(E)?u.values.subscribe({next:F=>E(L(void 0,O),F)}):L(E,O,!0),we=(E,O={})=>{for(const F of E?xr(E):a.mount)a.mount.delete(F),a.array.delete(F),O.keepValue||(Ge(r,F),Ge(o,F)),!O.keepError&&Ge(n.errors,F),!O.keepDirty&&Ge(n.dirtyFields,F),!O.keepTouched&&Ge(n.touchedFields,F),!O.keepIsValidating&&Ge(n.validatingFields,F),!t.shouldUnregister&&!O.keepDefaultValue&&Ge(i,F);u.values.next({values:{...o}}),u.state.next({...n,...O.keepDirty?{isDirty:I()}:{}}),!O.keepIsValid&&y()},Z=({disabled:E,name:O,field:F,fields:K,value:q})=>{if(xt(E)&&s.mount||E){const H=E?void 0:Fe(q)?ko(F?F._f:X(K,O)._f):q;Ie(o,O,H),A(O,H,!1,!1,!0)}},le=(E,O={})=>{let F=X(r,E);const K=xt(O.disabled)||xt(e.disabled);return Ie(r,E,{...F||{},_f:{...F&&F._f?F._f:{ref:{name:E}},name:E,mount:!0,...O}}),a.mount.add(E),F?Z({field:F,disabled:xt(O.disabled)?O.disabled:e.disabled,name:E,value:O.value}):x(E,!0,O.value),{...K?{disabled:O.disabled||e.disabled}:{},...t.progressive?{required:!!O.required,min:pr(O.min),max:pr(O.max),minLength:pr(O.minLength),maxLength:pr(O.maxLength),pattern:pr(O.pattern)}:{},name:E,onChange:G,onBlur:G,ref:q=>{if(q){le(E,O),F=X(r,E);const H=Fe(q.value)&&q.querySelectorAll&&q.querySelectorAll("input,select,textarea")[0]||q,Q=bv(H),pe=F._f.refs||[];if(Q?pe.find(Pe=>Pe===H):H===F._f.ref)return;Ie(r,E,{_f:{...F._f,...Q?{refs:[...pe.filter(Eo),H,...Array.isArray(X(i,E))?[{}]:[]],ref:{type:H.type,name:E}}:{ref:H}}}),x(E,!1,void 0,H)}else F=X(r,E,{}),F._f&&(F._f.mount=!1),(t.shouldUnregister||O.shouldUnregister)&&!(hu(a.array,E)&&s.action)&&a.unMount.add(E)}}},Se=()=>t.shouldFocusError&&Cr(r,J,a.mount),de=E=>{xt(E)&&(u.state.next({disabled:E}),Cr(r,(O,F)=>{const K=X(r,F);K&&(O.disabled=K._f.disabled||E,Array.isArray(K._f.refs)&&K._f.refs.forEach(q=>{q.disabled=K._f.disabled||E}))},0,!1))},ne=(E,O)=>async F=>{let K;F&&(F.preventDefault&&F.preventDefault(),F.persist&&F.persist());let q=lt(o);if(u.state.next({isSubmitting:!0}),t.resolver){const{errors:H,values:Q}=await k();n.errors=H,q=Q}else await z(r);if(Ge(n.errors,"root"),ut(n.errors)){u.state.next({errors:{}});try{await E(q,F)}catch(H){K=H}}else O&&await O({...n.errors},F),Se(),setTimeout(Se);if(u.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ut(n.errors)&&!K,submitCount:n.submitCount+1,errors:n.errors}),K)throw K},Y=(E,O={})=>{X(r,E)&&(Fe(O.defaultValue)?V(E,lt(X(i,E))):(V(E,O.defaultValue),Ie(i,E,lt(O.defaultValue))),O.keepTouched||Ge(n.touchedFields,E),O.keepDirty||(Ge(n.dirtyFields,E),n.isDirty=O.defaultValue?I(E,lt(X(i,E))):I()),O.keepError||(Ge(n.errors,E),d.isValid&&y()),u.state.next({...n}))},ce=(E,O={})=>{const F=E?lt(E):i,K=lt(F),q=ut(E),H=q?i:K;if(O.keepDefaultValues||(i=F),!O.keepValues){if(O.keepDirtyValues)for(const Q of a.mount)X(n.dirtyFields,Q)?Ie(H,Q,X(o,Q)):V(Q,X(H,Q));else{if(Hs&&Fe(E))for(const Q of a.mount){const pe=X(r,Q);if(pe&&pe._f){const Pe=Array.isArray(pe._f.refs)?pe._f.refs[0]:pe._f.ref;if(Ci(Pe)){const Me=Pe.closest("form");if(Me){Me.reset();break}}}}r={}}o=e.shouldUnregister?O.keepDefaultValues?lt(i):{}:lt(H),u.array.next({values:{...H}}),u.values.next({values:{...H}})}a={mount:O.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!d.isValid||!!O.keepIsValid||!!O.keepDirtyValues,s.watch=!!e.shouldUnregister,u.state.next({submitCount:O.keepSubmitCount?n.submitCount:0,isDirty:q?!1:O.keepDirty?n.isDirty:!!(O.keepDefaultValues&&!fn(E,i)),isSubmitted:O.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:q?{}:O.keepDirtyValues?O.keepDefaultValues&&o?Qr(i,o):n.dirtyFields:O.keepDefaultValues&&E?Qr(i,E):O.keepDirty?n.dirtyFields:{},touchedFields:O.keepTouched?n.touchedFields:{},errors:O.keepErrors?n.errors:{},isSubmitSuccessful:O.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},me=(E,O)=>ce(Xt(E)?E(o):E,O);return{control:{register:le,unregister:we,getFieldState:Re,handleSubmit:ne,setError:Ae,_executeSchema:k,_getWatch:L,_getDirty:I,_updateValid:y,_removeUnmounted:R,_updateFieldArray:h,_updateDisabledField:Z,_getFieldArray:N,_reset:ce,_resetDefaultValues:()=>Xt(t.defaultValues)&&t.defaultValues().then(E=>{me(E,t.resetOptions),u.state.next({isLoading:!1})}),_updateFormState:E=>{n={...n,...E}},_disableForm:de,_subjects:u,_proxyFormState:d,_setErrors:S,get _fields(){return r},get _formValues(){return o},get _state(){return s},set _state(E){s=E},get _defaultValues(){return i},get _names(){return a},set _names(E){a=E},get _formState(){return n},set _formState(E){n=E},get _options(){return t},set _options(E){t={...t,...E}}},trigger:ge,register:le,handleSubmit:ne,watch:oe,setValue:V,getValues:re,reset:me,resetField:Y,clearErrors:be,unregister:we,setError:Ae,setFocus:(E,O={})=>{const F=X(r,E),K=F&&F._f;if(K){const q=K.refs?K.refs[0]:K.ref;q.focus&&(q.focus(),O.shouldSelect&&q.select())}},getFieldState:Re}}function Tv(e={}){const t=fe.useRef(),n=fe.useRef(),[r,i]=fe.useState({isDirty:!1,isValidating:!1,isLoading:Xt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Xt(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...kv(e),formState:r});const o=t.current.control;return o._options=e,Gs({subject:o._subjects.state,next:s=>{yu(s,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),fe.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),fe.useEffect(()=>{if(o._proxyFormState.isDirty){const s=o._getDirty();s!==r.isDirty&&o._subjects.state.next({isDirty:s})}},[o,r.isDirty]),fe.useEffect(()=>{e.values&&!fn(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i(s=>({...s}))):o._resetDefaultValues()},[e.values,o]),fe.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),fe.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),fe.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=bu(r,o),t.current}var Ai=v.forwardRef((e,t)=>{const{children:n,...r}=e,i=v.Children.toArray(n),o=i.find(Pv);if(o){const s=o.props.children,a=i.map(l=>l===o?v.Children.count(s)>1?v.Children.only(null):v.isValidElement(s)?s.props.children:null:l);return M.jsx(Zo,{...r,ref:t,children:v.isValidElement(s)?v.cloneElement(s,void 0,a):null})}return M.jsx(Zo,{...r,ref:t,children:n})});Ai.displayName="Slot";var Zo=v.forwardRef((e,t)=>{const{children:n,...r}=e;if(v.isValidElement(n)){const i=Ov(n);return v.cloneElement(n,{...Iv(r,n.props),ref:t?Ss(t,i):i})}return v.Children.count(n)>1?v.Children.only(null):null});Zo.displayName="SlotClone";var Av=({children:e})=>M.jsx(M.Fragment,{children:e});function Pv(e){return v.isValidElement(e)&&e.type===Av}function Iv(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...a)=>{o(...a),i(...a)}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function Ov(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 Rv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Nr=Rv.reduce((e,t)=>{const n=v.forwardRef((r,i)=>{const{asChild:o,...s}=r,a=o?Ai:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),M.jsx(a,{...s,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function _v(e){const t=e+"CollectionProvider",[n,r]=Wt(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:m,children:f}=g,y=fe.useRef(null),p=fe.useRef(new Map).current;return M.jsx(i,{scope:m,itemMap:p,collectionRef:y,children:f})};s.displayName=t;const a=e+"CollectionSlot",l=fe.forwardRef((g,m)=>{const{scope:f,children:y}=g,p=o(a,f),h=Te(m,p.collectionRef);return M.jsx(Ai,{ref:h,children:y})});l.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",u=fe.forwardRef((g,m)=>{const{scope:f,children:y,...p}=g,h=fe.useRef(null),w=Te(m,h),S=o(c,f);return fe.useEffect(()=>(S.itemMap.set(h,{ref:h,...p}),()=>void S.itemMap.delete(h))),M.jsx(Ai,{[d]:"",ref:w,children:y})});u.displayName=c;function b(g){const m=o(e+"CollectionConsumer",g);return fe.useCallback(()=>{const y=m.collectionRef.current;if(!y)return[];const p=Array.from(y.querySelectorAll(`[${d}]`));return Array.from(m.itemMap.values()).sort((S,x)=>p.indexOf(S.ref.current)-p.indexOf(x.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:s,Slot:l,ItemSlot:u},b,r]}var Mv=globalThis?.document?v.useLayoutEffect:()=>{},Dv=Er.useId||(()=>{}),Lv=0;function Nv(e){const[t,n]=v.useState(Dv());return Mv(()=>{n(r=>r??String(Lv++))},[e]),t?`radix-${t}`:""}function Fv(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>t.current?.(...n),[])}var $v=v.createContext(void 0);function Pu(e){const t=v.useContext($v);return e||t||"ltr"}var To="rovingFocusGroup.onEntryFocus",zv={bubbles:!1,cancelable:!0},Yi="RovingFocusGroup",[Jo,Iu,Bv]=_v(Yi),[jv,Ou]=Wt(Yi,[Bv]),[Vv,Hv]=jv(Yi),Ru=v.forwardRef((e,t)=>M.jsx(Jo.Provider,{scope:e.__scopeRovingFocusGroup,children:M.jsx(Jo.Slot,{scope:e.__scopeRovingFocusGroup,children:M.jsx(Wv,{...e,ref:t})})}));Ru.displayName=Yi;var Wv=v.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...u}=e,b=v.useRef(null),g=Te(t,b),m=Pu(o),[f=null,y]=En({prop:s,defaultProp:a,onChange:l}),[p,h]=v.useState(!1),w=Fv(c),S=Iu(n),x=v.useRef(!1),[A,T]=v.useState(0);return v.useEffect(()=>{const k=b.current;if(k)return k.addEventListener(To,w),()=>k.removeEventListener(To,w)},[w]),M.jsx(Vv,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:f,onItemFocus:v.useCallback(k=>y(k),[y]),onItemShiftTab:v.useCallback(()=>h(!0),[]),onFocusableItemAdd:v.useCallback(()=>T(k=>k+1),[]),onFocusableItemRemove:v.useCallback(()=>T(k=>k-1),[]),children:M.jsx(Nr.div,{tabIndex:p||A===0?-1:0,"data-orientation":r,...u,ref:g,style:{outline:"none",...e.style},onMouseDown:ye(e.onMouseDown,()=>{x.current=!0}),onFocus:ye(e.onFocus,k=>{const _=!x.current;if(k.target===k.currentTarget&&_&&!p){const z=new CustomEvent(To,zv);if(k.currentTarget.dispatchEvent(z),!z.defaultPrevented){const R=S().filter(B=>B.focusable),I=R.find(B=>B.active),L=R.find(B=>B.id===f),j=[I,L,...R].filter(Boolean).map(B=>B.ref.current);Du(j,d)}}x.current=!1}),onBlur:ye(e.onBlur,()=>h(!1))})})}),_u="RovingFocusGroupItem",Mu=v.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:o,...s}=e,a=Nv(),l=o||a,c=Hv(_u,n),d=c.currentTabStopId===l,u=Iu(n),{onFocusableItemAdd:b,onFocusableItemRemove:g}=c;return v.useEffect(()=>{if(r)return b(),()=>g()},[r,b,g]),M.jsx(Jo.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:M.jsx(Nr.span,{tabIndex:d?0:-1,"data-orientation":c.orientation,...s,ref:t,onMouseDown:ye(e.onMouseDown,m=>{r?c.onItemFocus(l):m.preventDefault()}),onFocus:ye(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:ye(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){c.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const f=Yv(m,c.orientation,c.dir);if(f!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let p=u().filter(h=>h.focusable).map(h=>h.ref.current);if(f==="last")p.reverse();else if(f==="prev"||f==="next"){f==="prev"&&p.reverse();const h=p.indexOf(m.currentTarget);p=c.loop?qv(p,h+1):p.slice(h+1)}setTimeout(()=>Du(p))}})})})});Mu.displayName=_u;var Gv={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Uv(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Yv(e,t,n){const r=Uv(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Gv[r]}function Du(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function qv(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Kv=Ru,Xv=Mu;function qs(e){const[t,n]=v.useState(void 0);return Qe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let s,a;if("borderBoxSize"in o){const l=o.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function Ks(e){const t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Xs="Radio",[Zv,Lu]=Wt(Xs),[Jv,Qv]=Zv(Xs),Nu=v.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:i=!1,required:o,disabled:s,value:a="on",onCheck:l,...c}=e,[d,u]=v.useState(null),b=Te(t,f=>u(f)),g=v.useRef(!1),m=d?!!d.closest("form"):!0;return M.jsxs(Jv,{scope:n,checked:i,disabled:s,children:[M.jsx(Nr.button,{type:"button",role:"radio","aria-checked":i,"data-state":zu(i),"data-disabled":s?"":void 0,disabled:s,value:a,...c,ref:b,onClick:ye(e.onClick,f=>{i||l?.(),m&&(g.current=f.isPropagationStopped(),g.current||f.stopPropagation())})}),m&&M.jsx(eb,{control:d,bubbles:!g.current,name:r,value:a,checked:i,required:o,disabled:s,style:{transform:"translateX(-100%)"}})]})});Nu.displayName=Xs;var Fu="RadioIndicator",$u=v.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...i}=e,o=Qv(Fu,n);return M.jsx(On,{present:r||o.checked,children:M.jsx(Nr.span,{"data-state":zu(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t})})});$u.displayName=Fu;var eb=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,o=v.useRef(null),s=Ks(n),a=qs(t);return v.useEffect(()=>{const l=o.current,c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"checked").set;if(s!==n&&u){const b=new Event("click",{bubbles:r});u.call(l,n),l.dispatchEvent(b)}},[s,n,r]),M.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:o,style:{...e.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function zu(e){return e?"checked":"unchecked"}var tb=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Zs="RadioGroup",[nb,WC]=Wt(Zs,[Ou,Lu]),Bu=Ou(),ju=Lu(),[rb,ib]=nb(Zs),Vu=v.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:i,value:o,required:s=!1,disabled:a=!1,orientation:l,dir:c,loop:d=!0,onValueChange:u,...b}=e,g=Bu(n),m=Pu(c),[f,y]=En({prop:o,defaultProp:i,onChange:u});return M.jsx(rb,{scope:n,name:r,required:s,disabled:a,value:f,onValueChange:y,children:M.jsx(Kv,{asChild:!0,...g,orientation:l,dir:m,loop:d,children:M.jsx(Nr.div,{role:"radiogroup","aria-required":s,"aria-orientation":l,"data-disabled":a?"":void 0,dir:m,...b,ref:t})})})});Vu.displayName=Zs;var Hu="RadioGroupItem",Wu=v.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...i}=e,o=ib(Hu,n),s=o.disabled||r,a=Bu(n),l=ju(n),c=v.useRef(null),d=Te(t,c),u=o.value===i.value,b=v.useRef(!1);return v.useEffect(()=>{const g=f=>{tb.includes(f.key)&&(b.current=!0)},m=()=>b.current=!1;return document.addEventListener("keydown",g),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",g),document.removeEventListener("keyup",m)}},[]),M.jsx(Xv,{asChild:!0,...a,focusable:!s,active:u,children:M.jsx(Nu,{disabled:s,required:o.required,checked:u,...l,...i,name:o.name,ref:d,onCheck:()=>o.onValueChange(i.value),onKeyDown:ye(g=>{g.key==="Enter"&&g.preventDefault()}),onFocus:ye(i.onFocus,()=>{b.current&&c.current?.click()})})})});Wu.displayName=Hu;var ob="RadioGroupIndicator",Gu=v.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,i=ju(n);return M.jsx($u,{...i,...r,ref:t})});Gu.displayName=ob;var sb=Vu,ab=Wu,lb=Gu;function kl(e,[t,n]){return Math.min(n,Math.max(t,e))}function cb(e){const t=e+"CollectionProvider",[n,r]=Wt(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{const{scope:m,children:f}=g,y=fe.useRef(null),p=fe.useRef(new Map).current;return M.jsx(i,{scope:m,itemMap:p,collectionRef:y,children:f})};s.displayName=t;const a=e+"CollectionSlot",l=fe.forwardRef((g,m)=>{const{scope:f,children:y}=g,p=o(a,f),h=Te(m,p.collectionRef);return M.jsx(Xn,{ref:h,children:y})});l.displayName=a;const c=e+"CollectionItemSlot",d="data-radix-collection-item",u=fe.forwardRef((g,m)=>{const{scope:f,children:y,...p}=g,h=fe.useRef(null),w=Te(m,h),S=o(c,f);return fe.useEffect(()=>(S.itemMap.set(h,{ref:h,...p}),()=>void S.itemMap.delete(h))),M.jsx(Xn,{[d]:"",ref:w,children:y})});u.displayName=c;function b(g){const m=o(e+"CollectionConsumer",g);return fe.useCallback(()=>{const y=m.collectionRef.current;if(!y)return[];const p=Array.from(y.querySelectorAll(`[${d}]`));return Array.from(m.itemMap.values()).sort((S,x)=>p.indexOf(S.ref.current)-p.indexOf(x.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:s,Slot:l,ItemSlot:u},b,r]}var ub=v.createContext(void 0);function db(e){const t=v.useContext(ub);return e||t||"ltr"}const fb=["top","right","bottom","left"],Vt=Math.min,ht=Math.max,Pi=Math.round,ei=Math.floor,hn=e=>({x:e,y:e}),pb={left:"right",right:"left",bottom:"top",top:"bottom"},mb={start:"end",end:"start"};function Qo(e,t,n){return ht(e,Vt(t,n))}function Qt(e,t){return typeof e=="function"?e(t):e}function en(e){return e.split("-")[0]}function Qn(e){return e.split("-")[1]}function Js(e){return e==="x"?"y":"x"}function Qs(e){return e==="y"?"height":"width"}function gn(e){return["top","bottom"].includes(en(e))?"y":"x"}function ea(e){return Js(gn(e))}function hb(e,t,n){n===void 0&&(n=!1);const r=Qn(e),i=ea(e),o=Qs(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Ii(s)),[s,Ii(s)]}function gb(e){const t=Ii(e);return[es(e),t,es(t)]}function es(e){return e.replace(/start|end/g,t=>mb[t])}function vb(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function bb(e,t,n,r){const i=Qn(e);let o=vb(en(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(es)))),o}function Ii(e){return e.replace(/left|right|bottom|top/g,t=>pb[t])}function yb(e){return{top:0,right:0,bottom:0,left:0,...e}}function Uu(e){return typeof e!="number"?yb(e):{top:e,right:e,bottom:e,left:e}}function Oi(e){const{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 Tl(e,t,n){let{reference:r,floating:i}=e;const o=gn(t),s=ea(t),a=Qs(s),l=en(t),c=o==="y",d=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,b=r[a]/2-i[a]/2;let g;switch(l){case"top":g={x:d,y:r.y-i.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:u};break;case"left":g={x:r.x-i.width,y:u};break;default:g={x:r.x,y:r.y}}switch(Qn(t)){case"start":g[s]-=b*(n&&c?-1:1);break;case"end":g[s]+=b*(n&&c?-1:1);break}return g}const wb=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:u}=Tl(c,r,l),b=r,g={},m=0;for(let f=0;f<a.length;f++){const{name:y,fn:p}=a[f],{x:h,y:w,data:S,reset:x}=await p({x:d,y:u,initialPlacement:r,placement:b,strategy:i,middlewareData:g,rects:c,platform:s,elements:{reference:e,floating:t}});d=h??d,u=w??u,g={...g,[y]:{...g[y],...S}},x&&m<=50&&(m++,typeof x=="object"&&(x.placement&&(b=x.placement),x.rects&&(c=x.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:d,y:u}=Tl(c,b,l)),f=-1)}return{x:d,y:u,placement:b,strategy:i,middlewareData:g}};async function Rr(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:b=!1,padding:g=0}=Qt(t,e),m=Uu(g),y=a[b?u==="floating"?"reference":"floating":u],p=Oi(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(y)))==null||n?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:l})),h=u==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),S=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},x=Oi(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:h,offsetParent:w,strategy:l}):h);return{top:(p.top-x.top+m.top)/S.y,bottom:(x.bottom-p.bottom+m.bottom)/S.y,left:(p.left-x.left+m.left)/S.x,right:(x.right-p.right+m.right)/S.x}}const Sb=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=Qt(e,t)||{};if(c==null)return{};const u=Uu(d),b={x:n,y:r},g=ea(i),m=Qs(g),f=await s.getDimensions(c),y=g==="y",p=y?"top":"left",h=y?"bottom":"right",w=y?"clientHeight":"clientWidth",S=o.reference[m]+o.reference[g]-b[g]-o.floating[m],x=b[g]-o.reference[g],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let T=A?A[w]:0;(!T||!await(s.isElement==null?void 0:s.isElement(A)))&&(T=a.floating[w]||o.floating[m]);const k=S/2-x/2,_=T/2-f[m]/2-1,z=Vt(u[p],_),R=Vt(u[h],_),I=z,L=T-f[m]-R,N=T/2-f[m]/2+k,j=Qo(I,N,L),B=!l.arrow&&Qn(i)!=null&&N!==j&&o.reference[m]/2-(N<I?z:R)-f[m]/2<0,V=B?N<I?N-I:N-L:0;return{[g]:b[g]+V,data:{[g]:j,centerOffset:N-j-V,...B&&{alignmentOffset:V}},reset:B}}}),xb=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:b,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:f=!0,...y}=Qt(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const p=en(i),h=gn(a),w=en(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),x=b||(w||!f?[Ii(a)]:gb(a)),A=m!=="none";!b&&A&&x.push(...bb(a,f,m,S));const T=[a,...x],k=await Rr(t,y),_=[];let z=((r=o.flip)==null?void 0:r.overflows)||[];if(d&&_.push(k[p]),u){const N=hb(i,s,S);_.push(k[N[0]],k[N[1]])}if(z=[...z,{placement:i,overflows:_}],!_.every(N=>N<=0)){var R,I;const N=(((R=o.flip)==null?void 0:R.index)||0)+1,j=T[N];if(j)return{data:{index:N,overflows:z},reset:{placement:j}};let B=(I=z.filter(V=>V.overflows[0]<=0).sort((V,G)=>V.overflows[1]-G.overflows[1])[0])==null?void 0:I.placement;if(!B)switch(g){case"bestFit":{var L;const V=(L=z.filter(G=>{if(A){const J=gn(G.placement);return J===h||J==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(J=>J>0).reduce((J,ge)=>J+ge,0)]).sort((G,J)=>G[1]-J[1])[0])==null?void 0:L[0];V&&(B=V);break}case"initialPlacement":B=a;break}if(i!==B)return{reset:{placement:B}}}return{}}}};function Al(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pl(e){return fb.some(t=>e[t]>=0)}const Cb=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Qt(e,t);switch(r){case"referenceHidden":{const o=await Rr(t,{...i,elementContext:"reference"}),s=Al(o,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Pl(s)}}}case"escaped":{const o=await Rr(t,{...i,altBoundary:!0}),s=Al(o,n.floating);return{data:{escapedOffsets:s,escaped:Pl(s)}}}default:return{}}}}};async function Eb(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=en(n),a=Qn(n),l=gn(n)==="y",c=["left","top"].includes(s)?-1:1,d=o&&l?-1:1,u=Qt(t,e);let{mainAxis:b,crossAxis:g,alignmentAxis:m}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof m=="number"&&(g=a==="end"?m*-1:m),l?{x:g*d,y:b*c}:{x:b*c,y:g*d}}const kb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await Eb(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},Tb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:p,y:h}=y;return{x:p,y:h}}},...l}=Qt(e,t),c={x:n,y:r},d=await Rr(t,l),u=gn(en(i)),b=Js(u);let g=c[b],m=c[u];if(o){const y=b==="y"?"top":"left",p=b==="y"?"bottom":"right",h=g+d[y],w=g-d[p];g=Qo(h,g,w)}if(s){const y=u==="y"?"top":"left",p=u==="y"?"bottom":"right",h=m+d[y],w=m-d[p];m=Qo(h,m,w)}const f=a.fn({...t,[b]:g,[u]:m});return{...f,data:{x:f.x-n,y:f.y-r}}}}},Ab=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Qt(e,t),d={x:n,y:r},u=gn(i),b=Js(u);let g=d[b],m=d[u];const f=Qt(a,t),y=typeof f=="number"?{mainAxis:f,crossAxis:0}:{mainAxis:0,crossAxis:0,...f};if(l){const w=b==="y"?"height":"width",S=o.reference[b]-o.floating[w]+y.mainAxis,x=o.reference[b]+o.reference[w]-y.mainAxis;g<S?g=S:g>x&&(g=x)}if(c){var p,h;const w=b==="y"?"width":"height",S=["top","left"].includes(en(i)),x=o.reference[u]-o.floating[w]+(S&&((p=s.offset)==null?void 0:p[u])||0)+(S?0:y.crossAxis),A=o.reference[u]+o.reference[w]+(S?0:((h=s.offset)==null?void 0:h[u])||0)-(S?y.crossAxis:0);m<x?m=x:m>A&&(m=A)}return{[b]:g,[u]:m}}}},Pb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:o}=t,{apply:s=()=>{},...a}=Qt(e,t),l=await Rr(t,a),c=en(n),d=Qn(n),u=gn(n)==="y",{width:b,height:g}=r.floating;let m,f;c==="top"||c==="bottom"?(m=c,f=d===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(f=c,m=d==="end"?"top":"bottom");const y=g-l.top-l.bottom,p=b-l.left-l.right,h=Vt(g-l[m],y),w=Vt(b-l[f],p),S=!t.middlewareData.shift;let x=h,A=w;if(u?A=d||S?Vt(w,p):p:x=d||S?Vt(h,y):y,S&&!d){const k=ht(l.left,0),_=ht(l.right,0),z=ht(l.top,0),R=ht(l.bottom,0);u?A=b-2*(k!==0||_!==0?k+_:ht(l.left,l.right)):x=g-2*(z!==0||R!==0?z+R:ht(l.top,l.bottom))}await s({...t,availableWidth:A,availableHeight:x});const T=await i.getDimensions(o.floating);return b!==T.width||g!==T.height?{reset:{rects:!0}}:{}}}};function er(e){return Yu(e)?(e.nodeName||"").toLowerCase():"#document"}function vt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rn(e){var t;return(t=(Yu(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yu(e){return e instanceof Node||e instanceof vt(e).Node}function ze(e){return e instanceof Element||e instanceof vt(e).Element}function bt(e){return e instanceof HTMLElement||e instanceof vt(e).HTMLElement}function ts(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof vt(e).ShadowRoot}function Fr(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Et(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Ib(e){return["table","td","th"].includes(er(e))}function qi(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function ta(e){const t=na(),n=ze(e)?Et(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(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Ob(e){let t=tn(e);for(;bt(t)&&!vn(t);){if(ta(t))return t;if(qi(t))return null;t=tn(t)}return null}function na(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function vn(e){return["html","body","#document"].includes(er(e))}function Et(e){return vt(e).getComputedStyle(e)}function Ki(e){return ze(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function tn(e){if(er(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ts(e)&&e.host||rn(e);return ts(t)?t.host:t}function qu(e){const t=tn(e);return vn(t)?e.ownerDocument?e.ownerDocument.body:e.body:bt(t)&&Fr(t)?t:qu(t)}function mn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=qu(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=vt(i);if(o){const a=ns(s);return t.concat(s,s.visualViewport||[],Fr(i)?i:[],a&&n?mn(a):[])}return t.concat(i,mn(i,[],n))}function ns(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ku(e){const t=Et(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=bt(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=Pi(n)!==o||Pi(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function ra(e){return ze(e)?e:e.contextElement}function qn(e){const t=ra(e);if(!bt(t))return hn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Ku(t);let s=(o?Pi(n.width):n.width)/r,a=(o?Pi(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Rb=hn(0);function Xu(e){const t=vt(e);return!na()||!t.visualViewport?Rb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _b(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==vt(e)?!1:t}function An(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=ra(e);let s=hn(1);t&&(r?ze(r)&&(s=qn(r)):s=qn(e));const a=_b(o,n,r)?Xu(o):hn(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,d=i.width/s.x,u=i.height/s.y;if(o){const b=vt(o),g=r&&ze(r)?vt(r):r;let m=b,f=ns(m);for(;f&&r&&g!==m;){const y=qn(f),p=f.getBoundingClientRect(),h=Et(f),w=p.left+(f.clientLeft+parseFloat(h.paddingLeft))*y.x,S=p.top+(f.clientTop+parseFloat(h.paddingTop))*y.y;l*=y.x,c*=y.y,d*=y.x,u*=y.y,l+=w,c+=S,m=vt(f),f=ns(m)}}return Oi({width:d,height:u,x:l,y:c})}function Mb(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=rn(r),a=t?qi(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=hn(1);const d=hn(0),u=bt(r);if((u||!u&&!o)&&((er(r)!=="body"||Fr(s))&&(l=Ki(r)),bt(r))){const b=An(r);c=qn(r),d.x=b.x+r.clientLeft,d.y=b.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x,y:n.y*c.y-l.scrollTop*c.y+d.y}}function Db(e){return Array.from(e.getClientRects())}function Zu(e){return An(rn(e)).left+Ki(e).scrollLeft}function Lb(e){const t=rn(e),n=Ki(e),r=e.ownerDocument.body,i=ht(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ht(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Zu(e);const a=-n.scrollTop;return Et(r).direction==="rtl"&&(s+=ht(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function Nb(e,t){const n=vt(e),r=rn(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const c=na();(!c||c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function Fb(e,t){const n=An(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=bt(e)?qn(e):hn(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,c=r*o.y;return{width:s,height:a,x:l,y:c}}function Il(e,t,n){let r;if(t==="viewport")r=Nb(e,n);else if(t==="document")r=Lb(rn(e));else if(ze(t))r=Fb(t,n);else{const i=Xu(e);r={...t,x:t.x-i.x,y:t.y-i.y}}return Oi(r)}function Ju(e,t){const n=tn(e);return n===t||!ze(n)||vn(n)?!1:Et(n).position==="fixed"||Ju(n,t)}function $b(e,t){const n=t.get(e);if(n)return n;let r=mn(e,[],!1).filter(a=>ze(a)&&er(a)!=="body"),i=null;const o=Et(e).position==="fixed";let s=o?tn(e):e;for(;ze(s)&&!vn(s);){const a=Et(s),l=ta(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Fr(s)&&!l&&Ju(e,s))?r=r.filter(d=>d!==s):i=a,s=tn(s)}return t.set(e,r),r}function zb(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?qi(t)?[]:$b(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,d)=>{const u=Il(t,d,i);return c.top=ht(u.top,c.top),c.right=Vt(u.right,c.right),c.bottom=Vt(u.bottom,c.bottom),c.left=ht(u.left,c.left),c},Il(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Bb(e){const{width:t,height:n}=Ku(e);return{width:t,height:n}}function jb(e,t,n){const r=bt(t),i=rn(t),o=n==="fixed",s=An(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=hn(0);if(r||!r&&!o)if((er(t)!=="body"||Fr(i))&&(a=Ki(t)),r){const u=An(t,!0,o,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else i&&(l.x=Zu(i));const c=s.left+a.scrollLeft-l.x,d=s.top+a.scrollTop-l.y;return{x:c,y:d,width:s.width,height:s.height}}function Ao(e){return Et(e).position==="static"}function Ol(e,t){return!bt(e)||Et(e).position==="fixed"?null:t?t(e):e.offsetParent}function Qu(e,t){const n=vt(e);if(qi(e))return n;if(!bt(e)){let i=tn(e);for(;i&&!vn(i);){if(ze(i)&&!Ao(i))return i;i=tn(i)}return n}let r=Ol(e,t);for(;r&&Ib(r)&&Ao(r);)r=Ol(r,t);return r&&vn(r)&&Ao(r)&&!ta(r)?n:r||Ob(e)||n}const Vb=async function(e){const t=this.getOffsetParent||Qu,n=this.getDimensions,r=await n(e.floating);return{reference:jb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Hb(e){return Et(e).direction==="rtl"}const Wb={convertOffsetParentRelativeRectToViewportRelativeRect:Mb,getDocumentElement:rn,getClippingRect:zb,getOffsetParent:Qu,getElementRects:Vb,getClientRects:Db,getDimensions:Bb,getScale:qn,isElement:ze,isRTL:Hb};function Gb(e,t){let n=null,r;const i=rn(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const{left:c,top:d,width:u,height:b}=e.getBoundingClientRect();if(a||t(),!u||!b)return;const g=ei(d),m=ei(i.clientWidth-(c+u)),f=ei(i.clientHeight-(d+b)),y=ei(c),h={rootMargin:-g+"px "+-m+"px "+-f+"px "+-y+"px",threshold:ht(0,Vt(1,l))||1};let w=!0;function S(x){const A=x[0].intersectionRatio;if(A!==l){if(!w)return s();A?s(!1,A):r=setTimeout(()=>{s(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(S,{...h,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,h)}n.observe(e)}return s(!0),o}function ia(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=ra(e),d=i||o?[...c?mn(c):[],...mn(t)]:[];d.forEach(p=>{i&&p.addEventListener("scroll",n,{passive:!0}),o&&p.addEventListener("resize",n)});const u=c&&a?Gb(c,n):null;let b=-1,g=null;s&&(g=new ResizeObserver(p=>{let[h]=p;h&&h.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),n()}),c&&!l&&g.observe(c),g.observe(t));let m,f=l?An(e):null;l&&y();function y(){const p=An(e);f&&(p.x!==f.x||p.y!==f.y||p.width!==f.width||p.height!==f.height)&&n(),f=p,m=requestAnimationFrame(y)}return n(),()=>{var p;d.forEach(h=>{i&&h.removeEventListener("scroll",n),o&&h.removeEventListener("resize",n)}),u?.(),(p=g)==null||p.disconnect(),g=null,l&&cancelAnimationFrame(m)}}const Ub=kb,Yb=Tb,qb=xb,Kb=Pb,Xb=Cb,Rl=Sb,Zb=Ab,Jb=(e,t,n)=>{const r=new Map,i={platform:Wb,...n},o={...i.platform,_c:r};return wb(e,t,{...i,platform:o})};var mi=typeof document<"u"?v.useLayoutEffect:v.useEffect;function Ri(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(!Ri(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;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Ri(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function ed(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _l(e,t){const n=ed(e);return Math.round(t*n)/n}function Ml(e){const t=v.useRef(e);return mi(()=>{t.current=e}),t}function td(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[d,u]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,g]=v.useState(r);Ri(b,r)||g(r);const[m,f]=v.useState(null),[y,p]=v.useState(null),h=v.useCallback(V=>{V!==A.current&&(A.current=V,f(V))},[]),w=v.useCallback(V=>{V!==T.current&&(T.current=V,p(V))},[]),S=o||m,x=s||y,A=v.useRef(null),T=v.useRef(null),k=v.useRef(d),_=l!=null,z=Ml(l),R=Ml(i),I=v.useCallback(()=>{if(!A.current||!T.current)return;const V={placement:t,strategy:n,middleware:b};R.current&&(V.platform=R.current),Jb(A.current,T.current,V).then(G=>{const J={...G,isPositioned:!0};L.current&&!Ri(k.current,J)&&(k.current=J,Zn.flushSync(()=>{u(J)}))})},[b,t,n,R]);mi(()=>{c===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,u(V=>({...V,isPositioned:!1})))},[c]);const L=v.useRef(!1);mi(()=>(L.current=!0,()=>{L.current=!1}),[]),mi(()=>{if(S&&(A.current=S),x&&(T.current=x),S&&x){if(z.current)return z.current(S,x,I);I()}},[S,x,I,z,_]);const N=v.useMemo(()=>({reference:A,floating:T,setReference:h,setFloating:w}),[h,w]),j=v.useMemo(()=>({reference:S,floating:x}),[S,x]),B=v.useMemo(()=>{const V={position:n,left:0,top:0};if(!j.floating)return V;const G=_l(j.floating,d.x),J=_l(j.floating,d.y);return a?{...V,transform:"translate("+G+"px, "+J+"px)",...ed(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:J}},[n,a,j.floating,d.x,d.y]);return v.useMemo(()=>({...d,update:I,refs:N,elements:j,floatingStyles:B}),[d,I,N,j,B])}const Qb=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Rl({element:r.current,padding:i}).fn(n):{}:r?Rl({element:r,padding:i}).fn(n):{}}}},nd=(e,t)=>({...Ub(e),options:[e,t]}),rd=(e,t)=>({...Yb(e),options:[e,t]}),ey=(e,t)=>({...Zb(e),options:[e,t]}),id=(e,t)=>({...qb(e),options:[e,t]}),ty=(e,t)=>({...Kb(e),options:[e,t]}),ny=(e,t)=>({...Xb(e),options:[e,t]}),ry=(e,t)=>({...Qb(e),options:[e,t]});var iy="Arrow",od=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return M.jsx(ke.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:M.jsx("polygon",{points:"0,0 30,0 15,10"})})});od.displayName=iy;var oy=od,oa="Popper",[sd,ad]=Wt(oa),[sy,ld]=sd(oa),cd=e=>{const{__scopePopper:t,children:n}=e,[r,i]=v.useState(null);return M.jsx(sy,{scope:t,anchor:r,onAnchorChange:i,children:n})};cd.displayName=oa;var ud="PopperAnchor",dd=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=ld(ud,n),s=v.useRef(null),a=Te(t,s);return v.useEffect(()=>{o.onAnchorChange(r?.current||s.current)}),r?null:M.jsx(ke.div,{...i,ref:a})});dd.displayName=ud;var sa="PopperContent",[ay,ly]=sd(sa),fd=v.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:u="partial",hideWhenDetached:b=!1,updatePositionStrategy:g="optimized",onPlaced:m,...f}=e,y=ld(sa,n),[p,h]=v.useState(null),w=Te(t,Z=>h(Z)),[S,x]=v.useState(null),A=qs(S),T=A?.width??0,k=A?.height??0,_=r+(o!=="center"?"-"+o:""),z=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},R=Array.isArray(c)?c:[c],I=R.length>0,L={padding:z,boundary:R.filter(uy),altBoundary:I},{refs:N,floatingStyles:j,placement:B,isPositioned:V,middlewareData:G}=td({strategy:"fixed",placement:_,whileElementsMounted:(...Z)=>ia(...Z,{animationFrame:g==="always"}),elements:{reference:y.anchor},middleware:[nd({mainAxis:i+k,alignmentAxis:s}),l&&rd({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?ey():void 0,...L}),l&&id({...L}),ty({...L,apply:({elements:Z,rects:le,availableWidth:Se,availableHeight:de})=>{const{width:ne,height:Y}=le.reference,ce=Z.floating.style;ce.setProperty("--radix-popper-available-width",`${Se}px`),ce.setProperty("--radix-popper-available-height",`${de}px`),ce.setProperty("--radix-popper-anchor-width",`${ne}px`),ce.setProperty("--radix-popper-anchor-height",`${Y}px`)}}),S&&ry({element:S,padding:a}),dy({arrowWidth:T,arrowHeight:k}),b&&ny({strategy:"referenceHidden",...L})]}),[J,ge]=hd(B),re=Jt(m);Qe(()=>{V&&re?.()},[V,re]);const Re=G.arrow?.x,be=G.arrow?.y,Ae=G.arrow?.centerOffset!==0,[oe,we]=v.useState();return Qe(()=>{p&&we(window.getComputedStyle(p).zIndex)},[p]),M.jsx("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:V?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[G.transformOrigin?.x,G.transformOrigin?.y].join(" "),...G.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:M.jsx(ay,{scope:n,placedSide:J,onArrowChange:x,arrowX:Re,arrowY:be,shouldHideArrow:Ae,children:M.jsx(ke.div,{"data-side":J,"data-align":ge,...f,ref:w,style:{...f.style,animation:V?void 0:"none"}})})})});fd.displayName=sa;var pd="PopperArrow",cy={top:"bottom",right:"left",bottom:"top",left:"right"},md=v.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=ly(pd,r),s=cy[o.placedSide];return M.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:M.jsx(oy,{...i,ref:n,style:{...i.style,display:"block"}})})});md.displayName=pd;function uy(e){return e!==null}var dy=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:i}=t,s=i.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,d]=hd(n),u={start:"0%",center:"50%",end:"100%"}[d],b=(i.arrow?.x??0)+a/2,g=(i.arrow?.y??0)+l/2;let m="",f="";return c==="bottom"?(m=s?u:`${b}px`,f=`${-l}px`):c==="top"?(m=s?u:`${b}px`,f=`${r.floating.height+l}px`):c==="right"?(m=`${-l}px`,f=s?u:`${g}px`):c==="left"&&(m=`${r.floating.width+l}px`,f=s?u:`${g}px`),{data:{x:m,y:f}}}});function hd(e){const[t,n="center"]=e.split("-");return[t,n]}var fy=cd,py=dd,my=fd,hy=md,gy="VisuallyHidden",gd=v.forwardRef((e,t)=>M.jsx(ke.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}}));gd.displayName=gy;var dt=function(){return dt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},dt.apply(this,arguments)};function vd(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 bd(e,t,n){for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var yd=Ts(),Po=function(){},Xi=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:Po,onWheelCapture:Po,onTouchMoveCapture:Po}),i=r[0],o=r[1],s=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,u=e.shards,b=e.sideCar,g=e.noIsolation,m=e.inert,f=e.allowPinchZoom,y=e.as,p=y===void 0?"div":y,h=e.gapMode,w=vd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=b,x=ks([n,t]),A=dt(dt({},w),i);return v.createElement(v.Fragment,null,d&&v.createElement(S,{sideCar:yd,removeScrollBar:c,shards:u,noIsolation:g,inert:m,setCallbacks:o,allowPinchZoom:!!f,lockRef:n,gapMode:h}),s?v.cloneElement(v.Children.only(a),dt(dt({},A),{ref:x})):v.createElement(p,dt({},A,{className:l,ref:x}),a))});Xi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Xi.classNames={fullWidth:Un,zeroRight:Gn};var rs=!1;if(typeof window<"u")try{var ti=Object.defineProperty({},"passive",{get:function(){return rs=!0,!0}});window.addEventListener("test",ti,ti),window.removeEventListener("test",ti,ti)}catch{rs=!1}var $n=rs?{passive:!1}:!1,vy=function(e){return e.tagName==="TEXTAREA"},wd=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!vy(e)&&n[t]==="visible")},by=function(e){return wd(e,"overflowY")},yy=function(e){return wd(e,"overflowX")},Dl=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=Sd(e,r);if(i){var o=xd(e,r),s=o[1],a=o[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},wy=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Sy=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Sd=function(e,t){return e==="v"?by(t):yy(t)},xd=function(e,t){return e==="v"?wy(t):Sy(t)},xy=function(e,t){return e==="h"&&t==="rtl"?-1:1},Cy=function(e,t,n,r,i){var o=xy(e,window.getComputedStyle(t).direction),s=o*r,a=n.target,l=t.contains(a),c=!1,d=s>0,u=0,b=0;do{var g=xd(e,a),m=g[0],f=g[1],y=g[2],p=f-y-o*m;(m||p)&&Sd(e,a)&&(u+=p,b+=m),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&Math.abs(u)<1||!d&&Math.abs(b)<1)&&(c=!0),c},ni=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ll=function(e){return[e.deltaX,e.deltaY]},Nl=function(e){return e&&"current"in e?e.current:e},Ey=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ky=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},Ty=0,zn=[];function Ay(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),i=v.useState(Ty++)[0],o=v.useState(Vi)[0],s=v.useRef(e);v.useEffect(function(){s.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var f=bd([e.lockRef.current],(e.shards||[]).map(Nl)).filter(Boolean);return f.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),f.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=v.useCallback(function(f,y){if("touches"in f&&f.touches.length===2)return!s.current.allowPinchZoom;var p=ni(f),h=n.current,w="deltaX"in f?f.deltaX:h[0]-p[0],S="deltaY"in f?f.deltaY:h[1]-p[1],x,A=f.target,T=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in f&&T==="h"&&A.type==="range")return!1;var k=Dl(T,A);if(!k)return!0;if(k?x=T:(x=T==="v"?"h":"v",k=Dl(T,A)),!k)return!1;if(!r.current&&"changedTouches"in f&&(w||S)&&(r.current=x),!x)return!0;var _=r.current||x;return Cy(_,y,f,_==="h"?w:S)},[]),l=v.useCallback(function(f){var y=f;if(!(!zn.length||zn[zn.length-1]!==o)){var p="deltaY"in y?Ll(y):ni(y),h=t.current.filter(function(x){return x.name===y.type&&(x.target===y.target||y.target===x.shadowParent)&&Ey(x.delta,p)})[0];if(h&&h.should){y.cancelable&&y.preventDefault();return}if(!h){var w=(s.current.shards||[]).map(Nl).filter(Boolean).filter(function(x){return x.contains(y.target)}),S=w.length>0?a(y,w[0]):!s.current.noIsolation;S&&y.cancelable&&y.preventDefault()}}},[]),c=v.useCallback(function(f,y,p,h){var w={name:f,delta:y,target:p,should:h,shadowParent:Py(p)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),d=v.useCallback(function(f){n.current=ni(f),r.current=void 0},[]),u=v.useCallback(function(f){c(f.type,Ll(f),f.target,a(f,e.lockRef.current))},[]),b=v.useCallback(function(f){c(f.type,ni(f),f.target,a(f,e.lockRef.current))},[]);v.useEffect(function(){return zn.push(o),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:b}),document.addEventListener("wheel",l,$n),document.addEventListener("touchmove",l,$n),document.addEventListener("touchstart",d,$n),function(){zn=zn.filter(function(f){return f!==o}),document.removeEventListener("wheel",l,$n),document.removeEventListener("touchmove",l,$n),document.removeEventListener("touchstart",d,$n)}},[]);var g=e.removeScrollBar,m=e.inert;return v.createElement(v.Fragment,null,m?v.createElement(o,{styles:ky(i)}):null,g?v.createElement(Ps,{gapMode:e.gapMode}):null)}function Py(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Iy=As(yd,Ay);var Cd=v.forwardRef(function(e,t){return v.createElement(Xi,dt({},e,{ref:t,sideCar:Iy}))});Cd.classNames=Xi.classNames;var Oy=[" ","Enter","ArrowUp","ArrowDown"],Ry=[" ","Enter"],$r="Select",[Zi,Ji,_y]=cb($r),[tr,GC]=Wt($r,[_y,ad]),Qi=ad(),[My,bn]=tr($r),[Dy,Ly]=tr($r),Ed=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:o,value:s,defaultValue:a,onValueChange:l,dir:c,name:d,autoComplete:u,disabled:b,required:g}=e,m=Qi(t),[f,y]=v.useState(null),[p,h]=v.useState(null),[w,S]=v.useState(!1),x=db(c),[A=!1,T]=En({prop:r,defaultProp:i,onChange:o}),[k,_]=En({prop:s,defaultProp:a,onChange:l}),z=v.useRef(null),R=f?!!f.closest("form"):!0,[I,L]=v.useState(new Set),N=Array.from(I).map(j=>j.props.value).join(";");return M.jsx(fy,{...m,children:M.jsxs(My,{required:g,scope:t,trigger:f,onTriggerChange:y,valueNode:p,onValueNodeChange:h,valueNodeHasChildren:w,onValueNodeHasChildrenChange:S,contentId:xn(),value:k,onValueChange:_,open:A,onOpenChange:T,dir:x,triggerPointerDownPosRef:z,disabled:b,children:[M.jsx(Zi.Provider,{scope:t,children:M.jsx(Dy,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback(j=>{L(B=>new Set(B).add(j))},[]),onNativeOptionRemove:v.useCallback(j=>{L(B=>{const V=new Set(B);return V.delete(j),V})},[]),children:n})}),R?M.jsxs(Wd,{"aria-hidden":!0,required:g,tabIndex:-1,name:d,autoComplete:u,value:k,onChange:j=>_(j.target.value),disabled:b,children:[k===void 0?M.jsx("option",{value:""}):null,Array.from(I)]},N):null]})})};Ed.displayName=$r;var kd="SelectTrigger",Td=v.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,o=Qi(n),s=bn(kd,n),a=s.disabled||r,l=Te(t,s.onTriggerChange),c=Ji(n),[d,u,b]=Gd(m=>{const f=c().filter(h=>!h.disabled),y=f.find(h=>h.value===s.value),p=Ud(f,m,y);p!==void 0&&s.onValueChange(p.value)}),g=()=>{a||(s.onOpenChange(!0),b())};return M.jsx(py,{asChild:!0,...o,children:M.jsx(ke.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Hd(s.value)?"":void 0,...i,ref:l,onClick:ye(i.onClick,m=>{m.currentTarget.focus()}),onPointerDown:ye(i.onPointerDown,m=>{const f=m.target;f.hasPointerCapture(m.pointerId)&&f.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&(g(),s.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)},m.preventDefault())}),onKeyDown:ye(i.onKeyDown,m=>{const f=d.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&u(m.key),!(f&&m.key===" ")&&Oy.includes(m.key)&&(g(),m.preventDefault())})})})});Td.displayName=kd;var Ad="SelectValue",Pd=v.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:o,placeholder:s="",...a}=e,l=bn(Ad,n),{onValueNodeHasChildrenChange:c}=l,d=o!==void 0,u=Te(t,l.onValueNodeChange);return Qe(()=>{c(d)},[c,d]),M.jsx(ke.span,{...a,ref:u,style:{pointerEvents:"none"},children:Hd(l.value)?M.jsx(M.Fragment,{children:s}):o})});Pd.displayName=Ad;var Ny="SelectIcon",Id=v.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return M.jsx(ke.span,{"aria-hidden":!0,...i,ref:t,children:r||"â–¼"})});Id.displayName=Ny;var Fy="SelectPortal",Od=e=>M.jsx(Es,{asChild:!0,...e});Od.displayName=Fy;var Pn="SelectContent",Rd=v.forwardRef((e,t)=>{const n=bn(Pn,e.__scopeSelect),[r,i]=v.useState();if(Qe(()=>{i(new DocumentFragment)},[]),!n.open){const o=r;return o?Zn.createPortal(M.jsx(_d,{scope:e.__scopeSelect,children:M.jsx(Zi.Slot,{scope:e.__scopeSelect,children:M.jsx("div",{children:e.children})})}),o):null}return M.jsx(Md,{...e,ref:t})});Rd.displayName=Pn;var qt=10,[_d,yn]=tr(Pn),$y="SelectContentImpl",Md=v.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:s,side:a,sideOffset:l,align:c,alignOffset:d,arrowPadding:u,collisionBoundary:b,collisionPadding:g,sticky:m,hideWhenDetached:f,avoidCollisions:y,...p}=e,h=bn(Pn,n),[w,S]=v.useState(null),[x,A]=v.useState(null),T=Te(t,Z=>S(Z)),[k,_]=v.useState(null),[z,R]=v.useState(null),I=Ji(n),[L,N]=v.useState(!1),j=v.useRef(!1);v.useEffect(()=>{if(w)return Nc(w)},[w]),Pc();const B=v.useCallback(Z=>{const[le,...Se]=I().map(Y=>Y.ref.current),[de]=Se.slice(-1),ne=document.activeElement;for(const Y of Z)if(Y===ne||(Y?.scrollIntoView({block:"nearest"}),Y===le&&x&&(x.scrollTop=0),Y===de&&x&&(x.scrollTop=x.scrollHeight),Y?.focus(),document.activeElement!==ne))return},[I,x]),V=v.useCallback(()=>B([k,w]),[B,k,w]);v.useEffect(()=>{L&&V()},[L,V]);const{onOpenChange:G,triggerPointerDownPosRef:J}=h;v.useEffect(()=>{if(w){let Z={x:0,y:0};const le=de=>{Z={x:Math.abs(Math.round(de.pageX)-(J.current?.x??0)),y:Math.abs(Math.round(de.pageY)-(J.current?.y??0))}},Se=de=>{Z.x<=10&&Z.y<=10?de.preventDefault():w.contains(de.target)||G(!1),document.removeEventListener("pointermove",le),J.current=null};return J.current!==null&&(document.addEventListener("pointermove",le),document.addEventListener("pointerup",Se,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",le),document.removeEventListener("pointerup",Se,{capture:!0})}}},[w,G,J]),v.useEffect(()=>{const Z=()=>G(!1);return window.addEventListener("blur",Z),window.addEventListener("resize",Z),()=>{window.removeEventListener("blur",Z),window.removeEventListener("resize",Z)}},[G]);const[ge,re]=Gd(Z=>{const le=I().filter(ne=>!ne.disabled),Se=le.find(ne=>ne.ref.current===document.activeElement),de=Ud(le,Z,Se);de&&setTimeout(()=>de.ref.current.focus())}),Re=v.useCallback((Z,le,Se)=>{const de=!j.current&&!Se;(h.value!==void 0&&h.value===le||de)&&(_(Z),de&&(j.current=!0))},[h.value]),be=v.useCallback(()=>w?.focus(),[w]),Ae=v.useCallback((Z,le,Se)=>{const de=!j.current&&!Se;(h.value!==void 0&&h.value===le||de)&&R(Z)},[h.value]),oe=r==="popper"?is:Dd,we=oe===is?{side:a,sideOffset:l,align:c,alignOffset:d,arrowPadding:u,collisionBoundary:b,collisionPadding:g,sticky:m,hideWhenDetached:f,avoidCollisions:y}:{};return M.jsx(_d,{scope:n,content:w,viewport:x,onViewportChange:A,itemRefCallback:Re,selectedItem:k,onItemLeave:be,itemTextRefCallback:Ae,focusSelectedItem:V,selectedItemText:z,position:r,isPositioned:L,searchRef:ge,children:M.jsx(Cd,{as:Xn,allowPinchZoom:!0,children:M.jsx(Cs,{asChild:!0,trapped:h.open,onMountAutoFocus:Z=>{Z.preventDefault()},onUnmountAutoFocus:ye(i,Z=>{h.trigger?.focus({preventScroll:!0}),Z.preventDefault()}),children:M.jsx(xs,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:Z=>Z.preventDefault(),onDismiss:()=>h.onOpenChange(!1),children:M.jsx(oe,{role:"listbox",id:h.contentId,"data-state":h.open?"open":"closed",dir:h.dir,onContextMenu:Z=>Z.preventDefault(),...p,...we,onPlaced:()=>N(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...p.style},onKeyDown:ye(p.onKeyDown,Z=>{const le=Z.ctrlKey||Z.altKey||Z.metaKey;if(Z.key==="Tab"&&Z.preventDefault(),!le&&Z.key.length===1&&re(Z.key),["ArrowUp","ArrowDown","Home","End"].includes(Z.key)){let de=I().filter(ne=>!ne.disabled).map(ne=>ne.ref.current);if(["ArrowUp","End"].includes(Z.key)&&(de=de.slice().reverse()),["ArrowUp","ArrowDown"].includes(Z.key)){const ne=Z.target,Y=de.indexOf(ne);de=de.slice(Y+1)}setTimeout(()=>B(de)),Z.preventDefault()}})})})})})})});Md.displayName=$y;var zy="SelectItemAlignedPosition",Dd=v.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,o=bn(Pn,n),s=yn(Pn,n),[a,l]=v.useState(null),[c,d]=v.useState(null),u=Te(t,T=>d(T)),b=Ji(n),g=v.useRef(!1),m=v.useRef(!0),{viewport:f,selectedItem:y,selectedItemText:p,focusSelectedItem:h}=s,w=v.useCallback(()=>{if(o.trigger&&o.valueNode&&a&&c&&f&&y&&p){const T=o.trigger.getBoundingClientRect(),k=c.getBoundingClientRect(),_=o.valueNode.getBoundingClientRect(),z=p.getBoundingClientRect();if(o.dir!=="rtl"){const ne=z.left-k.left,Y=_.left-ne,ce=T.left-Y,me=T.width+ce,_e=Math.max(me,k.width),He=window.innerWidth-qt,$e=kl(Y,[qt,He-_e]);a.style.minWidth=me+"px",a.style.left=$e+"px"}else{const ne=k.right-z.right,Y=window.innerWidth-_.right-ne,ce=window.innerWidth-T.right-Y,me=T.width+ce,_e=Math.max(me,k.width),He=window.innerWidth-qt,$e=kl(Y,[qt,He-_e]);a.style.minWidth=me+"px",a.style.right=$e+"px"}const R=b(),I=window.innerHeight-qt*2,L=f.scrollHeight,N=window.getComputedStyle(c),j=parseInt(N.borderTopWidth,10),B=parseInt(N.paddingTop,10),V=parseInt(N.borderBottomWidth,10),G=parseInt(N.paddingBottom,10),J=j+B+L+G+V,ge=Math.min(y.offsetHeight*5,J),re=window.getComputedStyle(f),Re=parseInt(re.paddingTop,10),be=parseInt(re.paddingBottom,10),Ae=T.top+T.height/2-qt,oe=I-Ae,we=y.offsetHeight/2,Z=y.offsetTop+we,le=j+B+Z,Se=J-le;if(le<=Ae){const ne=y===R[R.length-1].ref.current;a.style.bottom="0px";const Y=c.clientHeight-f.offsetTop-f.offsetHeight,ce=Math.max(oe,we+(ne?be:0)+Y+V),me=le+ce;a.style.height=me+"px"}else{const ne=y===R[0].ref.current;a.style.top="0px";const ce=Math.max(Ae,j+f.offsetTop+(ne?Re:0)+we)+Se;a.style.height=ce+"px",f.scrollTop=le-Ae+f.offsetTop}a.style.margin=`${qt}px 0`,a.style.minHeight=ge+"px",a.style.maxHeight=I+"px",r?.(),requestAnimationFrame(()=>g.current=!0)}},[b,o.trigger,o.valueNode,a,c,f,y,p,o.dir,r]);Qe(()=>w(),[w]);const[S,x]=v.useState();Qe(()=>{c&&x(window.getComputedStyle(c).zIndex)},[c]);const A=v.useCallback(T=>{T&&m.current===!0&&(w(),h?.(),m.current=!1)},[w,h]);return M.jsx(jy,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:g,onScrollButtonChange:A,children:M.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:M.jsx(ke.div,{...i,ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});Dd.displayName=zy;var By="SelectPopperPosition",is=v.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=qt,...o}=e,s=Qi(n);return M.jsx(my,{...s,...o,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...o.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)"}})});is.displayName=By;var[jy,aa]=tr(Pn,{}),os="SelectViewport",Ld=v.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,o=yn(os,n),s=aa(os,n),a=Te(t,o.onViewportChange),l=v.useRef(0);return M.jsxs(M.Fragment,{children:[M.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}),M.jsx(Zi.Slot,{scope:n,children:M.jsx(ke.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:a,style:{position:"relative",flex:1,overflow:"auto",...i.style},onScroll:ye(i.onScroll,c=>{const d=c.currentTarget,{contentWrapper:u,shouldExpandOnScrollRef:b}=s;if(b?.current&&u){const g=Math.abs(l.current-d.scrollTop);if(g>0){const m=window.innerHeight-qt*2,f=parseFloat(u.style.minHeight),y=parseFloat(u.style.height),p=Math.max(f,y);if(p<m){const h=p+g,w=Math.min(m,h),S=h-w;u.style.height=w+"px",u.style.bottom==="0px"&&(d.scrollTop=S>0?S:0,u.style.justifyContent="flex-end")}}}l.current=d.scrollTop})})})]})});Ld.displayName=os;var Nd="SelectGroup",[Vy,Hy]=tr(Nd),Wy=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=xn();return M.jsx(Vy,{scope:n,id:i,children:M.jsx(ke.div,{role:"group","aria-labelledby":i,...r,ref:t})})});Wy.displayName=Nd;var Fd="SelectLabel",Gy=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Hy(Fd,n);return M.jsx(ke.div,{id:i.id,...r,ref:t})});Gy.displayName=Fd;var _i="SelectItem",[Uy,$d]=tr(_i),zd=v.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:o,...s}=e,a=bn(_i,n),l=yn(_i,n),c=a.value===r,[d,u]=v.useState(o??""),[b,g]=v.useState(!1),m=Te(t,p=>l.itemRefCallback?.(p,r,i)),f=xn(),y=()=>{i||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new 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 M.jsx(Uy,{scope:n,value:r,disabled:i,textId:f,isSelected:c,onItemTextChange:v.useCallback(p=>{u(h=>h||(p?.textContent??"").trim())},[]),children:M.jsx(Zi.ItemSlot,{scope:n,value:r,disabled:i,textValue:d,children:M.jsx(ke.div,{role:"option","aria-labelledby":f,"data-highlighted":b?"":void 0,"aria-selected":c&&b,"data-state":c?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...s,ref:m,onFocus:ye(s.onFocus,()=>g(!0)),onBlur:ye(s.onBlur,()=>g(!1)),onPointerUp:ye(s.onPointerUp,y),onPointerMove:ye(s.onPointerMove,p=>{i?l.onItemLeave?.():p.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ye(s.onPointerLeave,p=>{p.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:ye(s.onKeyDown,p=>{l.searchRef?.current!==""&&p.key===" "||(Ry.includes(p.key)&&y(),p.key===" "&&p.preventDefault())})})})})});zd.displayName=_i;var br="SelectItemText",Bd=v.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...o}=e,s=bn(br,n),a=yn(br,n),l=$d(br,n),c=Ly(br,n),[d,u]=v.useState(null),b=Te(t,p=>u(p),l.onItemTextChange,p=>a.itemTextRefCallback?.(p,l.value,l.disabled)),g=d?.textContent,m=v.useMemo(()=>M.jsx("option",{value:l.value,disabled:l.disabled,children:g},l.value),[l.disabled,l.value,g]),{onNativeOptionAdd:f,onNativeOptionRemove:y}=c;return Qe(()=>(f(m),()=>y(m)),[f,y,m]),M.jsxs(M.Fragment,{children:[M.jsx(ke.span,{id:l.textId,...o,ref:b}),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Zn.createPortal(o.children,s.valueNode):null]})});Bd.displayName=br;var jd="SelectItemIndicator",Yy=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return $d(jd,n).isSelected?M.jsx(ke.span,{"aria-hidden":!0,...r,ref:t}):null});Yy.displayName=jd;var ss="SelectScrollUpButton",qy=v.forwardRef((e,t)=>{const n=yn(ss,e.__scopeSelect),r=aa(ss,e.__scopeSelect),[i,o]=v.useState(!1),s=Te(t,r.onScrollButtonChange);return Qe(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollTop>0;o(c)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),i?M.jsx(Vd,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});qy.displayName=ss;var as="SelectScrollDownButton",Ky=v.forwardRef((e,t)=>{const n=yn(as,e.__scopeSelect),r=aa(as,e.__scopeSelect),[i,o]=v.useState(!1),s=Te(t,r.onScrollButtonChange);return Qe(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollHeight-l.clientHeight,d=Math.ceil(l.scrollTop)<c;o(d)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),i?M.jsx(Vd,{...e,ref:s,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});Ky.displayName=as;var Vd=v.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,o=yn("SelectScrollButton",n),s=v.useRef(null),a=Ji(n),l=v.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return v.useEffect(()=>()=>l(),[l]),Qe(()=>{a().find(d=>d.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),M.jsx(ke.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:ye(i.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:ye(i.onPointerMove,()=>{o.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:ye(i.onPointerLeave,()=>{l()})})}),Xy="SelectSeparator",Zy=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return M.jsx(ke.div,{"aria-hidden":!0,...r,ref:t})});Zy.displayName=Xy;var ls="SelectArrow",Jy=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Qi(n),o=bn(ls,n),s=yn(ls,n);return o.open&&s.position==="popper"?M.jsx(hy,{...i,...r,ref:t}):null});Jy.displayName=ls;function Hd(e){return e===""||e===void 0}var Wd=v.forwardRef((e,t)=>{const{value:n,...r}=e,i=v.useRef(null),o=Te(t,i),s=Ks(n);return v.useEffect(()=>{const a=i.current,l=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==n&&d){const u=new Event("change",{bubbles:!0});d.call(a,n),a.dispatchEvent(u)}},[s,n]),M.jsx(gd,{asChild:!0,children:M.jsx("select",{...r,ref:o,defaultValue:n})})});Wd.displayName="BubbleSelect";function Gd(e){const t=Jt(e),n=v.useRef(""),r=v.useRef(0),i=v.useCallback(s=>{const a=n.current+s;t(a),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),o=v.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,o]}function Ud(e,t,n){const i=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let s=Qy(e,Math.max(o,0));i.length===1&&(s=s.filter(c=>c!==n));const l=s.find(c=>c.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==n?l:void 0}function Qy(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ew=Ed,tw=Td,nw=Pd,rw=Id,iw=Od,ow=Rd,sw=Ld,aw=zd,lw=Bd,la="Checkbox",[cw,UC]=Wt(la),[uw,dw]=cw(la),Yd=v.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:i,defaultChecked:o,required:s,disabled:a,value:l="on",onCheckedChange:c,...d}=e,[u,b]=v.useState(null),g=Te(t,w=>b(w)),m=v.useRef(!1),f=u?!!u.closest("form"):!0,[y=!1,p]=En({prop:i,defaultProp:o,onChange:c}),h=v.useRef(y);return v.useEffect(()=>{const w=u?.form;if(w){const S=()=>p(h.current);return w.addEventListener("reset",S),()=>w.removeEventListener("reset",S)}},[u,p]),M.jsxs(uw,{scope:n,state:y,disabled:a,children:[M.jsx(ke.button,{type:"button",role:"checkbox","aria-checked":Cn(y)?"mixed":y,"aria-required":s,"data-state":Xd(y),"data-disabled":a?"":void 0,disabled:a,value:l,...d,ref:g,onKeyDown:ye(e.onKeyDown,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:ye(e.onClick,w=>{p(S=>Cn(S)?!0:!S),f&&(m.current=w.isPropagationStopped(),m.current||w.stopPropagation())})}),f&&M.jsx(fw,{control:u,bubbles:!m.current,name:r,value:l,checked:y,required:s,disabled:a,style:{transform:"translateX(-100%)"}})]})});Yd.displayName=la;var qd="CheckboxIndicator",Kd=v.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...i}=e,o=dw(qd,n);return M.jsx(On,{present:r||Cn(o.state)||o.state===!0,children:M.jsx(ke.span,{"data-state":Xd(o.state),"data-disabled":o.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});Kd.displayName=qd;var fw=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,o=v.useRef(null),s=Ks(n),a=qs(t);return v.useEffect(()=>{const l=o.current,c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"checked").set;if(s!==n&&u){const b=new Event("click",{bubbles:r});l.indeterminate=Cn(n),u.call(l,Cn(n)?!1:n),l.dispatchEvent(b)}},[s,n,r]),M.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:Cn(n)?!1:n,...i,tabIndex:-1,ref:o,style:{...e.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Cn(e){return e==="indeterminate"}function Xd(e){return Cn(e)?"indeterminate":e?"checked":"unchecked"}var Zd=Yd,Jd=Kd,Qd=Ts(),Io=function(){},eo=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:Io,onWheelCapture:Io,onTouchMoveCapture:Io}),i=r[0],o=r[1],s=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,d=e.enabled,u=e.shards,b=e.sideCar,g=e.noIsolation,m=e.inert,f=e.allowPinchZoom,y=e.as,p=y===void 0?"div":y,h=e.gapMode,w=vd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=b,x=ks([n,t]),A=dt(dt({},w),i);return v.createElement(v.Fragment,null,d&&v.createElement(S,{sideCar:Qd,removeScrollBar:c,shards:u,noIsolation:g,inert:m,setCallbacks:o,allowPinchZoom:!!f,lockRef:n,gapMode:h}),s?v.cloneElement(v.Children.only(a),dt(dt({},A),{ref:x})):v.createElement(p,dt({},A,{className:l,ref:x}),a))});eo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};eo.classNames={fullWidth:Un,zeroRight:Gn};var cs=!1;if(typeof window<"u")try{var ri=Object.defineProperty({},"passive",{get:function(){return cs=!0,!0}});window.addEventListener("test",ri,ri),window.removeEventListener("test",ri,ri)}catch{cs=!1}var Bn=cs?{passive:!1}:!1,pw=function(e){return e.tagName==="TEXTAREA"},ef=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!pw(e)&&n[t]==="visible")},mw=function(e){return ef(e,"overflowY")},hw=function(e){return ef(e,"overflowX")},Fl=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=tf(e,r);if(i){var o=nf(e,r),s=o[1],a=o[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},gw=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},vw=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},tf=function(e,t){return e==="v"?mw(t):hw(t)},nf=function(e,t){return e==="v"?gw(t):vw(t)},bw=function(e,t){return e==="h"&&t==="rtl"?-1:1},yw=function(e,t,n,r,i){var o=bw(e,window.getComputedStyle(t).direction),s=o*r,a=n.target,l=t.contains(a),c=!1,d=s>0,u=0,b=0;do{var g=nf(e,a),m=g[0],f=g[1],y=g[2],p=f-y-o*m;(m||p)&&tf(e,a)&&(u+=p,b+=m),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(d&&Math.abs(u)<1||!d&&Math.abs(b)<1)&&(c=!0),c},ii=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$l=function(e){return[e.deltaX,e.deltaY]},zl=function(e){return e&&"current"in e?e.current:e},ww=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Sw=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},xw=0,jn=[];function Cw(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),i=v.useState(xw++)[0],o=v.useState(Vi)[0],s=v.useRef(e);v.useEffect(function(){s.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var f=bd([e.lockRef.current],(e.shards||[]).map(zl)).filter(Boolean);return f.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),f.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=v.useCallback(function(f,y){if("touches"in f&&f.touches.length===2)return!s.current.allowPinchZoom;var p=ii(f),h=n.current,w="deltaX"in f?f.deltaX:h[0]-p[0],S="deltaY"in f?f.deltaY:h[1]-p[1],x,A=f.target,T=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in f&&T==="h"&&A.type==="range")return!1;var k=Fl(T,A);if(!k)return!0;if(k?x=T:(x=T==="v"?"h":"v",k=Fl(T,A)),!k)return!1;if(!r.current&&"changedTouches"in f&&(w||S)&&(r.current=x),!x)return!0;var _=r.current||x;return yw(_,y,f,_==="h"?w:S)},[]),l=v.useCallback(function(f){var y=f;if(!(!jn.length||jn[jn.length-1]!==o)){var p="deltaY"in y?$l(y):ii(y),h=t.current.filter(function(x){return x.name===y.type&&(x.target===y.target||y.target===x.shadowParent)&&ww(x.delta,p)})[0];if(h&&h.should){y.cancelable&&y.preventDefault();return}if(!h){var w=(s.current.shards||[]).map(zl).filter(Boolean).filter(function(x){return x.contains(y.target)}),S=w.length>0?a(y,w[0]):!s.current.noIsolation;S&&y.cancelable&&y.preventDefault()}}},[]),c=v.useCallback(function(f,y,p,h){var w={name:f,delta:y,target:p,should:h,shadowParent:Ew(p)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),d=v.useCallback(function(f){n.current=ii(f),r.current=void 0},[]),u=v.useCallback(function(f){c(f.type,$l(f),f.target,a(f,e.lockRef.current))},[]),b=v.useCallback(function(f){c(f.type,ii(f),f.target,a(f,e.lockRef.current))},[]);v.useEffect(function(){return jn.push(o),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:b}),document.addEventListener("wheel",l,Bn),document.addEventListener("touchmove",l,Bn),document.addEventListener("touchstart",d,Bn),function(){jn=jn.filter(function(f){return f!==o}),document.removeEventListener("wheel",l,Bn),document.removeEventListener("touchmove",l,Bn),document.removeEventListener("touchstart",d,Bn)}},[]);var g=e.removeScrollBar,m=e.inert;return v.createElement(v.Fragment,null,m?v.createElement(o,{styles:Sw(i)}):null,g?v.createElement(Ps,{gapMode:e.gapMode}):null)}function Ew(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const kw=As(Qd,Cw);var rf=v.forwardRef(function(e,t){return v.createElement(eo,dt({},e,{ref:t,sideCar:kw}))});rf.classNames=eo.classNames;function Bl(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ts(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function jl(e,t){return["mouse","pen"].includes(e)}function Tw(e){return"nativeEvent"in e}function Aw(e){return e.matches("html,body")}function Vl(e){return e?.ownerDocument||document}function Oo(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function mr(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Pw="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Iw(e){return bt(e)&&e.matches(Pw)}const of={...Er},Ow=of.useInsertionEffect,Rw=Ow||(e=>e());function Vn(e){const t=v.useRef(()=>{});return Rw(()=>{t.current=e}),v.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var us=typeof document<"u"?v.useLayoutEffect:v.useEffect;let Hl=!1,_w=0;const Wl=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+_w++;function Mw(){const[e,t]=v.useState(()=>Hl?Wl():void 0);return us(()=>{e==null&&t(Wl())},[]),v.useEffect(()=>{Hl=!0},[]),e}const Dw=of.useId,sf=Dw||Mw;function Lw(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const Nw=v.createContext(null),Fw=v.createContext(null),af=()=>{var e;return((e=v.useContext(Nw))==null?void 0:e.id)||null},lf=()=>v.useContext(Fw);function $w(e){return"data-floating-ui-"+e}function Ro(e,t){let n=e.filter(i=>{var o;return i.parentId===t&&((o=i.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(i=>{var o;return(o=r)==null?void 0:o.some(s=>{var a;return i.parentId===s.id&&((a=i.context)==null?void 0:a.open)})}),n=n.concat(r);return n}const zw="data-floating-ui-focusable";function Gl(e){return bt(e.target)&&e.target.tagName==="BUTTON"}function Ul(e){return Iw(e)}function Bw(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:s=!0,event:a="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:d=!0}=t,u=v.useRef(),b=v.useRef(!1),g=v.useMemo(()=>({onPointerDown(m){u.current=m.pointerType},onMouseDown(m){const f=u.current;m.button===0&&a!=="click"&&(jl(f)&&c||(n&&l&&(!i.current.openEvent||i.current.openEvent.type==="mousedown")?r(!1,m.nativeEvent,"click"):(m.preventDefault(),r(!0,m.nativeEvent,"click"))))},onClick(m){const f=u.current;if(a==="mousedown"&&u.current){u.current=void 0;return}jl(f)&&c||(n&&l&&(!i.current.openEvent||i.current.openEvent.type==="click")?r(!1,m.nativeEvent,"click"):r(!0,m.nativeEvent,"click"))},onKeyDown(m){u.current=void 0,!(m.defaultPrevented||!d||Gl(m))&&(m.key===" "&&!Ul(o)&&(m.preventDefault(),b.current=!0),m.key==="Enter"&&r(!(n&&l),m.nativeEvent,"click"))},onKeyUp(m){m.defaultPrevented||!d||Gl(m)||Ul(o)||m.key===" "&&b.current&&(b.current=!1,r(!(n&&l),m.nativeEvent,"click"))}}),[i,o,a,c,d,r,n,l]);return v.useMemo(()=>s?{reference:g}:{},[s,g])}const jw={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Vw={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Yl=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e?.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e?.outsidePress)!=null?n:!0}};function Hw(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:s=!0,escapeKey:a=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:d=!1,referencePressEvent:u="pointerdown",ancestorScroll:b=!1,bubbles:g,capture:m}=t,f=lf(),y=Vn(typeof l=="function"?l:()=>!1),p=typeof l=="function"?y:l,h=v.useRef(!1),w=v.useRef(!1),{escapeKey:S,outsidePress:x}=Yl(g),{escapeKey:A,outsidePress:T}=Yl(m),k=Vn(N=>{var j;if(!n||!s||!a||N.key!=="Escape")return;const B=(j=o.current.floatingContext)==null?void 0:j.nodeId,V=f?Ro(f.nodesRef.current,B):[];if(!S&&(N.stopPropagation(),V.length>0)){let G=!0;if(V.forEach(J=>{var ge;if((ge=J.context)!=null&&ge.open&&!J.context.dataRef.current.__escapeKeyBubbles){G=!1;return}}),!G)return}r(!1,Tw(N)?N.nativeEvent:N,"escape-key")}),_=Vn(N=>{var j;const B=()=>{var V;k(N),(V=mr(N))==null||V.removeEventListener("keydown",B)};(j=mr(N))==null||j.addEventListener("keydown",B)}),z=Vn(N=>{var j;const B=h.current;h.current=!1;const V=w.current;if(w.current=!1,c==="click"&&V||B||typeof p=="function"&&!p(N))return;const G=mr(N),J="["+$w("inert")+"]",ge=Vl(i.floating).querySelectorAll(J);let re=ze(G)?G:null;for(;re&&!vn(re);){const oe=tn(re);if(vn(oe)||!ze(oe))break;re=oe}if(ge.length&&ze(G)&&!Aw(G)&&!Bl(G,i.floating)&&Array.from(ge).every(oe=>!Bl(re,oe)))return;if(bt(G)&&L){const oe=G.clientWidth>0&&G.scrollWidth>G.clientWidth,we=G.clientHeight>0&&G.scrollHeight>G.clientHeight;let Z=we&&N.offsetX>G.clientWidth;if(we&&Et(G).direction==="rtl"&&(Z=N.offsetX<=G.offsetWidth-G.clientWidth),Z||oe&&N.offsetY>G.clientHeight)return}const Re=(j=o.current.floatingContext)==null?void 0:j.nodeId,be=f&&Ro(f.nodesRef.current,Re).some(oe=>{var we;return Oo(N,(we=oe.context)==null?void 0:we.elements.floating)});if(Oo(N,i.floating)||Oo(N,i.domReference)||be)return;const Ae=f?Ro(f.nodesRef.current,Re):[];if(Ae.length>0){let oe=!0;if(Ae.forEach(we=>{var Z;if((Z=we.context)!=null&&Z.open&&!we.context.dataRef.current.__outsidePressBubbles){oe=!1;return}}),!oe)return}r(!1,N,"outside-press")}),R=Vn(N=>{var j;const B=()=>{var V;z(N),(V=mr(N))==null||V.removeEventListener(c,B)};(j=mr(N))==null||j.addEventListener(c,B)});v.useEffect(()=>{if(!n||!s)return;o.current.__escapeKeyBubbles=S,o.current.__outsidePressBubbles=x;function N(V){r(!1,V,"ancestor-scroll")}const j=Vl(i.floating);a&&j.addEventListener("keydown",A?_:k,A),p&&j.addEventListener(c,T?R:z,T);let B=[];return b&&(ze(i.domReference)&&(B=mn(i.domReference)),ze(i.floating)&&(B=B.concat(mn(i.floating))),!ze(i.reference)&&i.reference&&i.reference.contextElement&&(B=B.concat(mn(i.reference.contextElement)))),B=B.filter(V=>{var G;return V!==((G=j.defaultView)==null?void 0:G.visualViewport)}),B.forEach(V=>{V.addEventListener("scroll",N,{passive:!0})}),()=>{a&&j.removeEventListener("keydown",A?_:k,A),p&&j.removeEventListener(c,T?R:z,T),B.forEach(V=>{V.removeEventListener("scroll",N)})}},[o,i,a,p,c,n,r,b,s,S,x,k,A,_,z,T,R]),v.useEffect(()=>{h.current=!1},[p,c]);const I=v.useMemo(()=>({onKeyDown:k,[jw[u]]:N=>{d&&r(!1,N.nativeEvent,"reference-press")}}),[k,r,d,u]),L=v.useMemo(()=>({onKeyDown:k,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[Vw[c]]:()=>{h.current=!0}}),[k,c]);return v.useMemo(()=>s?{reference:I,floating:L}:{},[s,I,L])}function Ww(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=sf(),o=v.useRef({}),[s]=v.useState(()=>Lw()),a=af()!=null,[l,c]=v.useState(r.reference),d=Vn((g,m,f)=>{o.current.openEvent=g?m:void 0,s.emit("openchange",{open:g,event:m,reason:f,nested:a}),n?.(g,m,f)}),u=v.useMemo(()=>({setPositionReference:c}),[]),b=v.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return v.useMemo(()=>({dataRef:o,open:t,onOpenChange:d,elements:b,events:s,floatingId:i,refs:u}),[t,d,b,s,i,u])}function cf(e){e===void 0&&(e={});const{nodeId:t}=e,n=Ww({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=v.useState(null),[a,l]=v.useState(null),d=i?.reference||o,u=v.useRef(null),b=lf();us(()=>{d&&(u.current=d)},[d]);const g=td({...e,elements:{...i,...a&&{reference:a}}}),m=v.useCallback(w=>{const S=ze(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),contextElement:w}:w;l(S),g.refs.setReference(S)},[g.refs]),f=v.useCallback(w=>{(ze(w)||w===null)&&(u.current=w,s(w)),(ze(g.refs.reference.current)||g.refs.reference.current===null||w!==null&&!ze(w))&&g.refs.setReference(w)},[g.refs]),y=v.useMemo(()=>({...g.refs,setReference:f,setPositionReference:m,domReference:u}),[g.refs,f,m]),p=v.useMemo(()=>({...g.elements,domReference:d}),[g.elements,d]),h=v.useMemo(()=>({...g,...r,refs:y,elements:p,nodeId:t}),[g,y,p,t,r]);return us(()=>{r.dataRef.current.floatingContext=h;const w=b?.nodesRef.current.find(S=>S.id===t);w&&(w.context=h)}),v.useMemo(()=>({...g,context:h,refs:y,elements:p}),[g,y,p,h])}const ql="active",Kl="selected";function _o(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[ql]:s,[Kl]:a,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1,[zw]:""},...o,...t.map(s=>{const a=s?s[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((s,a)=>(a&&Object.entries(a).forEach(l=>{let[c,d]=l;if(!(i&&[ql,Kl].includes(c)))if(c.indexOf("on")===0){if(r.has(c)||r.set(c,[]),typeof d=="function"){var u;(u=r.get(c))==null||u.push(d),s[c]=function(){for(var b,g=arguments.length,m=new Array(g),f=0;f<g;f++)m[f]=arguments[f];return(b=r.get(c))==null?void 0:b.map(y=>y(...m)).find(y=>y!==void 0)}}}else s[c]=d}),s),{})}}function Gw(e){e===void 0&&(e=[]);const t=e.map(a=>a?.reference),n=e.map(a=>a?.floating),r=e.map(a=>a?.item),i=v.useCallback(a=>_o(a,e,"reference"),t),o=v.useCallback(a=>_o(a,e,"floating"),n),s=v.useCallback(a=>_o(a,e,"item"),r);return v.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}const Uw=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Yw(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:s="dialog"}=t,a=(n=Uw.get(s))!=null?n:s,l=sf(),d=af()!=null,u=v.useMemo(()=>a==="tooltip"||s==="label"?{["aria-"+(s==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":a==="alertdialog"?"dialog":a,"aria-controls":r?i:void 0,...a==="listbox"&&{role:"combobox"},...a==="menu"&&{id:l},...a==="menu"&&d&&{role:"menuitem"},...s==="select"&&{"aria-autocomplete":"none"},...s==="combobox"&&{"aria-autocomplete":"list"}},[a,i,d,r,l,s]),b=v.useMemo(()=>{const m={id:i,...a&&{role:a}};return a==="tooltip"||s==="label"?m:{...m,...a==="menu"&&{"aria-labelledby":l}}},[a,i,l,s]),g=v.useCallback(m=>{let{active:f,selected:y}=m;const p={role:"option",...f&&{id:i+"-option"}};switch(s){case"select":return{...p,"aria-selected":f&&y};case"combobox":return{...p,...f&&{"aria-selected":!0}}}return{}},[i,s]);return v.useMemo(()=>o?{reference:u,floating:b,item:g}:{},[o,u,b,g])}var uf=Object.defineProperty,qw=Object.defineProperties,Kw=Object.getOwnPropertyDescriptors,Mi=Object.getOwnPropertySymbols,df=Object.prototype.hasOwnProperty,ff=Object.prototype.propertyIsEnumerable,Xl=(e,t,n)=>t in e?uf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,D=(e,t)=>{for(var n in t||(t={}))df.call(t,n)&&Xl(e,n,t[n]);if(Mi)for(var n of Mi(t))ff.call(t,n)&&Xl(e,n,t[n]);return e},W=(e,t)=>qw(e,Kw(t)),Xw=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),ie=(e,t)=>{var n={};for(var r in e)df.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Mi)for(var r of Mi(e))t.indexOf(r)<0&&ff.call(e,r)&&(n[r]=e[r]);return n},on=(e,t)=>{for(var n in t)uf(e,n,{get:t[n],enumerable:!0})},In=(e,t,n)=>new Promise((r,i)=>{var o=l=>{try{a(n.next(l))}catch(c){i(c)}},s=l=>{try{a(n.throw(l))}catch(c){i(c)}},a=l=>l.done?r(l.value):Promise.resolve(l.value).then(o,s);a((n=n.apply(e,t)).next())});function pf(e){return C("svg",W(D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5"},e),{children:C("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 Zw={borderWidths:{md:"1px"}},Di=[5,10,20,35,50,65,80,95,98],mf=[...Di],ds=[...Di];mf[4]=40;ds[4]=60;var Jw={blue:{h:213,s:100,l:Di},gray:{h:220,s:10,l:Di},green:{h:141,s:90,l:mf},red:{h:9,s:90,l:ds},yellow:{h:50,s:90,l:ds}},We={};for(let[e,{h:t,s:n,l:r}]of Object.entries(Jw))We[e]=Object.fromEntries(r.map((i,o)=>[`${(o+1)*100}`,`hsl(${t} ${n}% ${i}%)`]));var Qw=W(D({black:"hsl(0 0% 0%)",white:"hsl(0 0% 100%)"},We),{gray100:We.gray[100],gray200:We.gray[200],gray300:We.gray[300],gray400:We.gray[400],gray500:We.gray[500],gray600:We.gray[600],gray700:We.gray[700],gray800:We.gray[800],gray900:We.gray[900],blue400:We.blue[400],blue500:We.blue[500],blue800:We.blue[800],blue900:We.blue[900],green400:We.blue[400],green500:We.green[500],green800:We.green[800],red500:We.red[500],transparent:"#FFFFFF00",inherit:"inherit"}),e0={md:"8px",lg:"20px",round:"50%"},$=e=>`var(--fr-colors-${e})`,t0={negative:{100:$("red-100"),200:$("red-200"),300:$("red-300"),400:$("red-400"),500:$("red-500"),600:$("red-600"),700:$("red-700"),800:$("red-800"),900:$("red-900"),background:$("negative-500"),border:$("negative-500"),foreground:$("white"),surface:$("negative-500"),active:{background:$("negative-400"),border:$("negative-400"),foreground:$("white"),surface:$("negative-400")},focus:{background:$("negative-500"),border:$("negative-500"),foreground:$("white"),surface:$("negative-500")},hover:{background:$("negative-400"),border:$("negative-400"),foreground:$("white"),surface:$("negative-400")}},neutral:{100:$("gray-100"),200:$("gray-200"),300:$("gray-300"),400:$("gray-400"),500:$("gray-500"),600:$("gray-600"),700:$("gray-700"),800:$("gray-800"),900:$("gray-900"),background:$("white"),border:$("neutral-800"),foreground:$("black"),surface:$("neutral-700"),active:{background:$("white"),border:$("neutral-900"),foreground:$("black"),surface:$("neutral-700")},focus:{background:$("white"),border:$("neutral-900"),foreground:$("black"),surface:$("neutral-700")},hover:{background:$("white"),border:$("neutral-900"),foreground:$("black"),surface:$("neutral-700")}},positive:{100:$("green-100"),200:$("green-200"),300:$("green-300"),400:$("green-400"),500:$("green-500"),600:$("green-600"),700:$("green-700"),800:$("green-800"),900:$("green-900"),background:$("positive-500"),border:$("positive-500"),foreground:$("white"),surface:$("positive-500"),active:{background:$("positive-400"),border:$("positive-400"),foreground:$("white"),surface:$("positive-400")},focus:{background:$("positive-500"),border:$("positive-500"),foreground:$("white"),surface:$("positive-500")},hover:{background:$("positive-400"),border:$("positive-400"),foreground:$("white"),surface:$("positive-400")}},primary:{100:$("blue-100"),200:$("blue-200"),300:$("blue-300"),400:$("blue-400"),500:$("blue-500"),600:$("blue-600"),700:$("blue-700"),800:$("blue-800"),900:$("blue-900"),background:$("primary-500"),border:$("primary-500"),foreground:$("white"),surface:$("primary-500"),active:{background:$("primary-400"),border:$("primary-400"),foreground:$("white"),surface:$("primary-400")},focus:{background:$("primary-500"),border:$("primary-500"),foreground:$("white"),surface:$("primary-500")},hover:{background:$("primary-400"),border:$("primary-400"),foreground:$("white"),surface:$("primary-400")}},secondary:{100:$("gray-100"),200:$("gray-200"),300:$("gray-300"),400:$("gray-400"),500:$("gray-500"),600:$("gray-600"),700:$("gray-700"),800:$("gray-800"),900:$("gray-900"),background:$("white"),border:$("secondary-800"),foreground:$("black"),surface:$("secondary-900"),active:{background:$("secondary-900"),border:$("secondary-800"),foreground:$("black"),surface:$("secondary-800")},focus:{background:$("secondary-900"),border:$("secondary-800"),foreground:$("black"),surface:$("secondary-900")},hover:{background:$("secondary-900"),border:$("secondary-800"),foreground:$("black"),surface:$("secondary-800")}}},n0={md:"0px 4px 20px rgba(0, 0, 0, 0.1)"},r0="px",i0=e=>typeof e=="number"?`${4*e}${r0}`:e,o0=[-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"],s0=Object.fromEntries(o0.map(e=>[e,i0(e)])),a0={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"}},hf=W(D(W(D({},Zw),{colors:D(D({},Qw),t0)}),a0),{radii:e0,shadows:n0,space:s0});function ca(e,t="",n="."){return Object.keys(e).reduce((r,i)=>{let o=`${t.length?`${t}${n}`:""}${i}`,s=e[i];return typeof s=="object"&&s!==null&&!Array.isArray(s)?Object.assign(r,ca(s,o,n)):r[o]=s,r},{})}function gf(e){let t=ca(e,"--fr","-");for(let[n,r]of Object.entries(t))if(n.indexOf(".")>-1){let i=n.replace(/\./g,"-");t[i]=r,delete t[n]}return t}function vf(e,t="--fr"){let n={};return Object.keys(e).forEach(r=>{let i=e[r],o=r.replace(/\./g,"-");typeof i=="object"&&i!==null&&!Array.isArray(i)?n[r]=vf(i,`${t}-${r}`):n[r]=`var(${t}-${o})`}),n}var l0=gf(hf),Oe=vf(hf),c0=new Set(["alt","size","src"]),u0=kh.all.filter(e=>e.indexOf("-")!=0&&!c0.has(e)).map(e=>[e.replace(/-([a-z])/g,(t,n)=>n.toUpperCase()),null]),d0=Object.fromEntries(u0),oi=ca(Oe.colors),f0={color:oi,backgroundColor:oi,borderColor:oi,border:D(D({},Oe.borderWidths),oi),borderRadius:Oe.radii,borderWidth:Oe.borderWidths,boxShadow:Oe.shadows,fontFamily:Oe.fontFamilies,fontSize:Oe.fontSizes,fontWeight:Oe.fontWeights,gap:Oe.space,lineHeight:Oe.lineHeights,margin:Oe.space,marginBottom:Oe.space,marginLeft:Oe.space,marginRight:Oe.space,marginTop:Oe.space,padding:Oe.space,paddingBottom:Oe.space,paddingLeft:Oe.space,paddingRight:Oe.space,paddingTop:Oe.space},p0=D(D({},d0),f0),m0={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"]},h0=new Set(["active","disabled","focus","focusVisible","focusWithin","hover"]);function g0(e){return Array.isArray(e)?new Map(e.map(t=>[t,t])):typeof e=="object"&&e!==null?new Map(Object.entries(e)):typeof e=="string"||typeof e=="number"?new Map([[e,e]]):new Map}var Zl=new Map(Object.entries(p0).map(([e,t])=>[e,g0(t)])),v0=new Map(Object.entries(m0).map(([e,t])=>[e,new Set(t)])),b0=new Set(["height","width"]),y0=new Set(["canvas","embed","iframe","img","input","object","video"]);function Jl(e){let[t,n]=e.split(":");return[t,h0.has(n)?n:null]}function w0(e,t="div"){let n=Object.assign({},e),r={};function i(o){if(o==null)return r;let s=`&:${o.replace(/[A-Z]/g,a=>`-${a.toLocaleLowerCase()}`)}`;return r[s]==null&&(r[s]={}),r[s]}return Object.entries(n).forEach(([o,s])=>{let[a,l]=Jl(o),c=v0.get(a);c!=null&&(c.forEach(d=>{let u=`${d}${l?":"+l:""}`;n[u]=s}),delete n[o])}),Object.entries(n).forEach(([o,s])=>{let[a,l]=Jl(o),c=Zl.get(a);if(c!=null){if(s==null)delete n[o];else if(typeof s=="string"&&s.indexOf(" ")>-1){let d=s.split(" ");i(l)[a]=d.map(u=>{var b;return(b=c.get(u.toString()))!=null?b:u}).join(" ")}else c.has(s.toString())?i(l)[a]=c.get(s.toString()):i(l)[a]=s;(typeof t!="string"||!y0.has(t)||!b0.has(a))&&delete n[o]}}),Object.keys(n).forEach(o=>{let s=o.substring(1);o.indexOf("_")===0&&Zl.has(s)&&(n[s]=n[o],delete n[o])}),{cssFromProps:r,unmatchedProps:n}}function S0(){if(typeof window>"u"){let{JSDOM:e}=Xw("jsdom");return new e("<!DOCTYPE html>").window}return window}function x0(e){return e?{__html:Yh(S0()).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"],ALLOWED_ATTR:["style","class","target","id","href","alt","src","controls","autoplay","loop","muted","playsinline"]})}:{__html:""}}function C0(e){return e&&`fr-${e}`}function bf(e){return e&&(Array.isArray(e)?e.filter(t=>t!=null).map(t=>bf(t)).join(" "):C0(e))}function E0(e,t){var n=e,{as:r,children:i,className:o,css:s={},part:a}=n,l=ie(n,["as","children","className","css","part"]);let c=r??"div",{cssFromProps:d,unmatchedProps:u}=w0(l,c),b=bf(a),g=o||b?wh(o,b):void 0,m=[{boxSizing:"border-box"},d,s];return typeof i=="string"?C(c,W(D({className:g,css:m},u),{ref:t,dangerouslySetInnerHTML:x0(i)})):C(c,W(D({className:g,css:m},u),{ref:t,children:i}))}var se=v.forwardRef(E0),yt={};on(yt,{Link:()=>Z0,Plain:()=>J0,Primary:()=>K0,Secondary:()=>X0});var Ne={};on(Ne,{Body1:()=>j0,Body2:()=>V0,Caption:()=>H0,Display1:()=>L0,Display2:()=>N0,H1:()=>F0,H2:()=>$0,H3:()=>z0,H4:()=>B0});var yf={};on(yf,{Body1:()=>R0,Body2:()=>_0,Caption:()=>M0,Display1:()=>k0,Display2:()=>T0,H1:()=>A0,H2:()=>P0,H3:()=>I0,H4:()=>O0});var sn={color:"neutral.foreground",fontFamily:"default",margin:"0"},k0=W(D({},sn),{fontSize:"5xl",fontWeight:"bold",lineHeight:"4xl"}),T0=W(D({},sn),{fontSize:"4xl",fontWeight:"bold",lineHeight:"3xl"}),A0=W(D({},sn),{fontSize:"3xl",fontWeight:"demibold",lineHeight:"2xl"}),P0=W(D({},sn),{fontSize:"2xl",fontWeight:"demibold",lineHeight:"xl"}),I0=W(D({},sn),{fontSize:"xl",fontWeight:"demibold",lineHeight:"lg"}),O0=W(D({},sn),{fontSize:"md",fontWeight:"demibold",lineHeight:"md"}),R0=W(D({},sn),{fontSize:"md",fontWeight:"regular",lineHeight:"md"}),_0=W(D({},sn),{fontSize:"sm",fontWeight:"regular",lineHeight:"sm"}),M0=W(D({},sn),{fontSize:"xs",fontWeight:"regular",lineHeight:"xs"}),D0=["Display1","Display2","H1","H2","H3","H4","Body1","Body2","Caption"],an=Object.fromEntries(D0.map(e=>{let t=["H1","H2","H3","H4"].includes(e)?e.toLowerCase():"span",n=v.forwardRef((r,i)=>{var o=r,{as:s=t,children:a}=o,l=ie(o,["as","children"]);return C(se,W(D(D({as:s},yf[e]),l),{ref:i,children:a}))});return n.displayName=`Text.${e}`,[e,n]})),L0=an.Display1,N0=an.Display2,F0=an.H1,$0=an.H2,z0=an.H3,B0=an.H4,j0=an.Body1,V0=an.Body2,H0=an.Caption,wf={};on(wf,{Link:()=>U0,Plain:()=>Y0,Primary:()=>W0,Secondary:()=>G0,loadingCSSStyle:()=>Sf});var to={borderWidth:"md",borderRadius:"md",borderStyle:"solid","cursor:disabled":"not-allowed",display:"flex",gap:"2",padding:"2 4",fontFamily:"inherit"},W0=W(D({},to),{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"}),G0=W(D({},to),{backgroundColor:"secondary.background",borderColor:"secondary.border",color:"secondary.foreground","backgroundColor:hover":"secondary.hover.background","backgroundColor:disabled":"secondary.background","opacity:disabled":"0.6"}),U0=W(D({},to),{backgroundColor:"transparent",borderColor:"transparent",color:"primary.surface","color:hover":"primary.hover.surface"}),Y0=W(D({},to),{backgroundColor:"transparent",borderColor:"transparent",color:"neutral.foreground"}),q0=nn({from:{transform:"rotate(0turn)"},to:{transform:"rotate(1turn)"}}),Sf={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:q0+" 1s ease infinite"}};function no(e){var t=e,{as:n,children:r,part:i,title:o,variant:s="Primary"}=t,a=ie(t,["as","children","part","title","variant"]),l;let c=s.toLocaleLowerCase();return ae(se,W(D(W(D({as:n??"button",part:[`button-${c}`,i]},wf[s]),{css:D(D({},(l=a.css)!=null?l:{}),a.loading?Sf:{})}),a),{loading:void 0,children:[r,o&&C(Ne.Body2,{color:"inherit",css:{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},flexGrow:"1",fontWeight:"medium",lineHeight:"20px",part:"button-title",textWrap:"nowrap",children:o})]}))}function K0(e){var t=e,{children:n}=t,r=ie(t,["children"]);return C(no,W(D({},r),{variant:"Primary",children:n}))}function X0(e){var t=e,{children:n}=t,r=ie(t,["children"]);return C(no,W(D({},r),{variant:"Secondary",children:n}))}function Z0(e){var t=e,{children:n}=t,r=ie(t,["children"]);return C(no,W(D({},r),{variant:"Link",children:n}))}function J0(e){var t=e,{children:n}=t,r=ie(t,["children"]);return C(no,W(D({},r),{variant:"Plain",children:n}))}var Ee={};on(Ee,{Column:()=>eS,Row:()=>Q0});var Q0=v.forwardRef((e,t)=>C(se,W(D({display:"flex",flexDirection:"row"},e),{ref:t}))),eS=v.forwardRef((e,t)=>C(se,W(D({display:"flex",flexDirection:"column"},e),{ref:t})));function tS(e){var t=e,{dismissible:n,flowId:r,part:i}=t,o=ie(t,["dismissible","flowId","part"]);return C(Rn,W(D({as:null,flowId:r},o),{children:({handleDismiss:s,handlePrimary:a,handleSecondary:l,parentProps:{containerProps:c},step:d})=>{var u,b,g,m,f;let y=(u=d.props)!=null?u:{},p=(g=(b=d.primaryButton)==null?void 0:b.title)!=null?g:d.primaryButtonTitle,h=(f=(m=d.secondaryButton)==null?void 0:m.title)!=null?f:d.secondaryButtonTitle,w=d.$state.blocked;return ae(ue,W(D(D({alignItems:"center",borderWidth:"md",display:"flex",flexDirection:"row",gap:3,justifyContent:"flex-start",part:["banner",i]},c),y),{children:[d.imageUri&&C(se,{as:"img",part:"image",src:d.imageUri,style:{height:40,width:40,alignSelf:"center"}}),ae(Ee.Column,{marginInlineEnd:"auto",part:"banner-title-wrapper",children:[C(ue.Title,{part:"title",children:d.title}),C(ue.Subtitle,{part:"subtitle",children:d.subtitle})]}),C(ue.Secondary,{disabled:w,title:h,onClick:l}),C(ue.Primary,{disabled:w,title:p,onClick:a}),n&&C(ue.Dismiss,{onClick:s})]}))}}))}var nS={};on(nS,{Carousel:()=>pS,Collapsible:()=>If,CollapsibleStep:()=>Cf});var rS={};on(rS,{Bar:()=>ua,Dots:()=>iS,Fraction:()=>xf,Segments:()=>oS});function ua(e){var t=e,{current:n,total:r}=t,i=ie(t,["current","total"]);let o=r>0?Math.min(n/r,1):0,s=o===0?"10px":`${100*o}%`;return C(se,W(D({part:"progress-bar",backgroundColor:"neutral.800",borderRadius:"md",height:"10px"},i),{children:C(se,{backgroundColor:"primary.surface",part:"progress-bar-fill",borderRadius:"md",height:"100%",style:{width:s},transition:"width 300ms ease-out"})}))}function iS(e){var t=e,{current:n,total:r}=t,i=ie(t,["current","total"]);if(r==1)return null;let o=[...Array(r)].map((s,a)=>C(se,{as:"circle",r:4,cx:4+16*a,cy:"4px",fill:n-1===a?Oe.colors.blue500:Oe.colors.blue800},a));return C(se,W(D({as:"svg",height:"8px",part:"progress-dots",viewBox:`0 0 ${16*r-8} 8`,width:16*r-8},i),{children:o}))}function xf(e){var t=e,{current:n,total:r}=t,i=ie(t,["current","total"]);return C(Ne.Body2,W(D({part:"progress-fraction"},i),{children:`${n}/${r}`}))}function oS(e){var t=e,{current:n,total:r}=t,i=ie(t,["current","total"]);let o=[...Array(r)].map((s,a)=>C(se,{backgroundColor:n-1===a?"primary.surface":"blue800",borderRadius:"md",flexGrow:1,height:"100%"},a));return C(Ee.Row,W(D({gap:1,height:"10px",part:"progress-segments"},i),{children:o}))}function sS(e){return C("svg",W(D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:"size-4"},e),{children:C("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 aS(){return C(se,{as:"svg",color:"primary.foreground",fill:"none",height:"8px",part:"check-icon",viewBox:"0 0 10 8",width:"10px",children:C("path",{d:"M1 4.34664L3.4618 6.99729L3.4459 6.98017L9 1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}function lS(e){var t=e,{checked:n=!1}=t,r=ie(t,["checked"]);return C(se,W(D({backgroundColor:"inherit",borderWidth:"md",borderStyle:"solid",borderColor:"neutral.border",borderRadius:"100%",padding:"0",part:"check-indicator",position:"relative",height:"22px",width:"22px"},r),{children:n&&C(se,{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:C(aS,{})})}))}function ro(e,{onPrimary:t,onSecondary:n}={}){let{navigate:r}=v.useContext(nr),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:v.useCallback((o,s,a=!0)=>In(this,null,function*(){if((yield t?.(e,o,s))===!1)return o.preventDefault(),!1;if(e.primaryButton!=null){let l=e.primaryButton.action===!1?!1:i[e.primaryButton.action];typeof l=="function"?l():l!==!1&&(yield e.complete(s,a)),e.primaryButton.uri!=null&&r(e.primaryButton.uri,e.primaryButton.target)}else yield e.complete(s,a),e.primaryButtonUri!=null&&r(e.primaryButtonUri,e.primaryButtonUriTarget);return!0}),[e]),handleSecondary:v.useCallback((o,s)=>In(this,null,function*(){if((yield n?.(e,o,s))===!1)return o.preventDefault(),!1;if(e.secondaryButton!=null){let a=e.secondaryButton.action===!1?!1:i[e.secondaryButton.action];typeof a=="function"?a():a!==!1&&e.complete(s),e.secondaryButton.uri!=null&&r(e.secondaryButton.uri,e.secondaryButton.target)}else e.complete(s),e.secondaryButtonUri!=null&&r(e.secondaryButtonUri,e.secondaryButtonUriTarget);return!0}),[e])}}function cS({onPrimary:e,onSecondary:t,step:n}){var r,i;let{handlePrimary:o,handleSecondary:s}=ro(n,{onPrimary:e,onSecondary:t}),{blocked:a,completed:l,skipped:c}=n.$state,d=l||c||!a?C(lS,{checked:l||c,marginLeft:"auto"}):C(se,{as:sS,height:"22px",marginLeft:"auto",width:"22px"});return ae(ue,{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:[ae(Ee.Row,{marginBottom:"2",part:"carousel-step-header",children:[n.iconUri&&C(ue.Media,{borderRadius:"0",height:"24px",src:n.iconUri,width:"24px"}),d]}),C(ue.Title,{children:n.title}),C(ue.Subtitle,{children:n.subtitle}),ae(Ee.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:[C(ue.Secondary,{disabled:a,onClick:s,title:(r=n.secondaryButton)==null?void 0:r.title}),C(ue.Primary,{disabled:a,onClick:o,title:(i=n.primaryButton)==null?void 0:i.title})]})]})}function uS(e){return C("svg",W(D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5"},e),{children:C("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 dS(e){return C("svg",W(D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5"},e),{children:C("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 Ql=nn` from { opacity: 0; } to { opacity: 1; } `;function fS({flow:e,sort:t,onPrimary:n,onSecondary:r}){var i,o;let[s,a]=v.useState(),[l]=v.useState({align:"start",container:".fr-carousel-content",skipSnaps:!0,slides:".fr-carousel-step",startIndex:t=="completed-last"?0:(o=(i=Array.from(e.steps.values()).find(p=>!p.$state.completed&&!p.$state.skipped))==null?void 0:i.order)!=null?o:0}),[c,d]=$s(l),[u,b]=v.useState(),[g,m]=v.useState();v.useLayoutEffect(()=>{d&&(u==null&&b(d.canScrollNext()),g==null&&m(d.canScrollPrev()),d.on("select",()=>{b(d.canScrollNext()),m(d.canScrollPrev())}))},[d]),v.useEffect(()=>{if(!s){let p=Array.from(e.steps.values()),h=p.filter(S=>S.$state.completed||S.$state.skipped).sort((S,x)=>S.order-x.order),w=p.filter(S=>!S.$state.completed&&!S.$state.skipped).sort((S,x)=>S.order-x.order);a(t==="completed-last"?[...w,...h].map(S=>S.id):p.map(S=>S.id))}},[]);let f=e.getNumberOfCompletedSteps(),y=e.getNumberOfAvailableSteps();return s?ae(Hi,{children:[ae(Ee.Row,{css:{"@container (max-width: 750px)":{flexDirection:"column",gap:Oe.space[5]}},justifyContent:"space-between",part:"carousel-header",children:[ae(Ee.Column,{part:"carousel-header-content",children:[C(Ne.H3,{children:e.title}),C(Ne.Body2,{color:"neutral.400",children:e.subtitle})]}),ae(Ee.Row,{alignItems:"center",gap:2,part:"progress",children:[ae(Ne.Body2,{fontWeight:"demibold",part:"progress-text",children:[f,"/",y]}),C(ua,{current:f,total:y,minWidth:"200px"})]})]}),ae(se,{margin:`0 ${Oe.space[-4]}`,overflow:"hidden",part:"carousel-wrapper",px:"4",position:"relative",ref:c,children:[C(Ee.Row,{gap:4,part:"carousel-content",children:Array.from(e.steps.values()).filter(p=>p.$state.visible).sort((p,h)=>s.indexOf(p.id)-s.indexOf(h.id)).map(p=>C(cS,{onPrimary:n,onSecondary:r,step:p},p.id))}),g&&C(Ee.Column,{animation:`${Ql} 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:C(yt.Plain,{border:"1px solid neutral.border",borderRadius:"100%",boxShadow:"md",backgroundColor:"neutral.background",color:"primary.surface",onClick:()=>d.scrollPrev(),padding:"2",children:C(dS,{height:"24px",width:"24px"})})}),u&&C(Ee.Column,{animation:`${Ql} 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:C(yt.Plain,{border:"1px solid neutral.border",borderRadius:"100%",boxShadow:"md",backgroundColor:"neutral.background",color:"primary.surface",onClick:()=>d.scrollNext(),padding:"2",children:C(uS,{height:"24px",width:"24px"})})})]})]}):null}function pS(e){var t=ie(e,[]);return C(Rn,W(D({as:ue,borderWidth:1,containerType:"inline-size",p:"4",part:"carousel"},t),{children:n=>C(fS,D(D({},t),n))}))}var Cf={};on(Cf,{Content:()=>Ef,Root:()=>kf,Trigger:()=>Tf});function mS(e){return C("svg",W(D({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6"},e),{children:C("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})}))}var hS=nn` from { height: 0; opacity: 0; } to { height: var(--radix-collapsible-content-height); opacity: 1; } `,gS=nn` from { height: var(--radix-collapsible-content-height); opacity: 1; } to { height: 0; opacity: 0; } `,vS=()=>C(se,{as:"svg",color:"primary.foreground",width:"10px",height:"8px",viewBox:"0 0 10 8",fill:"none",children:C("path",{d:"M1 4.34664L3.4618 6.99729L3.4459 6.98017L9 1",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})});function bS({checked:e=!1}){return C(se,{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&&C(se,{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:C(vS,{})})})}function Ef({children:e}){return C(av,{asChild:!0,children:ae(Ee.Column,{css:{'&[data-state="open"]':{animation:`${hS} 300ms ease-out`},'&[data-state="closed"]':{animation:`${gS} 300ms ease-out`},overflow:"hidden"},gap:5,part:"collapsible-content",children:[C(se,{}),e]})})}function kf(e){var t=e,{children:n,disabled:r=!1,onOpenChange:i=()=>{},open:o=!1}=t,s=ie(t,["children","disabled","onOpenChange","open"]);return C(ov,{asChild:!0,disabled:r,open:o,onOpenChange:i,children:C(ue,W(D({borderWidth:"md",css:{'&[data-state="open"] .fr-collapsible-step-icon':{transform:"rotate(180deg)"}},gap:0,part:"collapsible-step"},s),{children:n}))})}function Tf({isCompleted:e,isBlocked:t,title:n}){return C(sv,{asChild:!0,children:ae(Ee.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:[ae(Ee.Row,{alignItems:"center",gap:2,children:[C(bS,{checked:e}),C(Ne.Body2,{fontWeight:"demibold",userSelect:"none",part:"collapsible-title",children:n})]}),C(se,{as:mS,color:"neutral.100",css:{"& path":{vectorEffect:"non-scaling-stroke"}},display:"block",height:"16px",order:2,part:"collapsible-step-icon",width:"16px"})]})})}var Af=v.createContext({onPrimary:()=>{},onSecondary:()=>{},openStepId:null,setOpenStepId:()=>{},stepTypes:{}});function Pf({handlePrimary:e,handleSecondary:t,open:n,onOpenChange:r,step:i}){var o,s,a,l,c,d;let{$state:{blocked:u,completed:b,skipped:g},subtitle:m,title:f}=i,y=(s=(o=i.primaryButton)==null?void 0:o.title)!=null?s:i.primaryButtonTitle,p=(l=(a=i.secondaryButton)==null?void 0:a.title)!=null?l:i.secondaryButtonTitle,h=(c=i.props)!=null?c:{},w=!!u;return ae(kf,W(D({open:n,onOpenChange:r},h),{children:[C(Tf,{isBlocked:i.$state.blocked,isCompleted:b||g,title:f}),ae(Ef,{children:[C(ue.Media,{aspectRatio:2.5,objectFit:"cover",overflowClipMargin:"unset",src:(d=i.videoUri)!=null?d:i.imageUri,transform:"translate3d(0, 0, 1px)",type:i.videoUri?"video":"image"}),C(ue.Subtitle,{color:"neutral.400",children:m}),ae(Ee.Row,{gap:3,part:"collapsible-footer",children:[C(ue.Secondary,{title:p,onClick:t}),C(ue.Primary,{disabled:w,title:y,onClick:e})]})]})]}))}var yS={default:Pf};function wS(e){var t=e,{flow:n,step:r}=t,i=ie(t,["flow","step"]),o;let{onPrimary:s,onSecondary:a,openStepId:l,setOpenStepId:c,stepTypes:d}=v.useContext(Af),{handlePrimary:u,handleSecondary:b}=ro(r,{onPrimary:s,onSecondary:a}),g=(l??n.getCurrentStep().id)===r.id,m=(o=d[r.type])!=null?o:Pf;function f(y){return In(this,null,function*(){c(y?r.id:""),y&&!r.$state.completed&&(yield r.start(),c(null))})}return C(m,W(D({flow:n,onOpenChange:f,open:g,step:r},i),{handlePrimary:u,handleSecondary:b}),r.id)}function If(e){var t=e,{dismissible:n,flowId:r,onPrimary:i,onSecondary:o,part:s,stepTypes:a={}}=t,l=ie(t,["dismissible","flowId","onPrimary","onSecondary","part","stepTypes"]);let[c,d]=v.useState(null),u=D(D({},yS),a);return C(Af.Provider,{value:{openStepId:c,setOpenStepId:d,onPrimary:i,onSecondary:o,stepTypes:u},children:C(Rn,W(D({as:ue,borderWidth:"md",flowId:r,part:["checklist",s]},l),{children:b=>{var g=b,{flow:m,handleDismiss:f}=g,y=ie(g,["flow","handleDismiss"]);let p=Array.from(m.steps.entries()).filter(([,S])=>S.$state.visible===!0).map(([,S])=>C(wS,W(D({flow:m,handleDismiss:f},y),{step:S}),S.id)),h=m.getNumberOfCompletedSteps(),w=m.getNumberOfAvailableSteps();return ae(Hi,{children:[ae(Ee.Column,{gap:2,children:[C(ue.Header,{dismissible:n,handleDismiss:f,part:"checklist-header",subtitle:m.subtitle,title:m.title}),ae(Ee.Row,{alignItems:"center",gap:2,children:[ae(Ne.Body2,{fontWeight:"demibold",children:[h,"/",w]}),C(ua,{current:h,total:w,flexGrow:1})]})]}),p]})}}))})}var SS=new Set(["required","min","max","minLength","maxLength","pattern"]);function xS({fieldComponent:e,control:t,fieldData:n,submit:r}){let i=Ui();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 o=Object.fromEntries(Object.entries(n).filter(([a])=>SS.has(a))),s=pv({name:n.id,control:t,rules:o});return C(e,W(D({},s),{fieldData:n,formContext:i,submit:r}))}function CS({fieldTypes:e,handleDismiss:t,handlePrimary:n,handleSecondary:r,parentProps:{dismissible:i},step:o}){var s,a,l,c,d;let{__readOnly:u}=v.useContext(nr),b=v.useMemo(()=>{var k;return(k=o.fields)==null?void 0:k.filter(_=>e[_.type]!=null&&_.id)},[o.fields,e]),g=Tv({delayError:2e3,mode:"onChange",defaultValues:b.reduce((k,_)=>{var z;return k[_.id]=(z=_.value)!=null?z:"",k},{})});v.useEffect(()=>{g.formState.isDirty||g.reset(b.reduce((k,_)=>{var z;return k[_.id]=(z=_.value)!=null?z:"",k},{}))},[b]);let[m,f]=v.useState(!1),y=[],{control:p,handleSubmit:h}=g,w=(s=o.props)!=null?s:{};function S(k,_){f(!0),n(_,k,u===!0).then(()=>f(!1))}b.forEach(k=>{e[k.type]!=null&&y.push(C(xS,{control:p,fieldComponent:e[k.type],fieldData:k,submit:h(S)},`${o.flow.id}-${k.id}`))});let x=(l=(a=o.primaryButton)==null?void 0:a.title)!=null?l:o.primaryButtonTitle,A=(d=(c=o.secondaryButton)==null?void 0:c.title)!=null?d:o.secondaryButtonTitle,T=!!(o.$state.blocked||!g.formState.isValid);return v.useEffect(()=>{g.clearErrors()},[o]),ae(Ee.Column,W(D({gap:5,part:"form-step"},w),{children:[C(ue.Header,{dismissible:i,handleDismiss:t,part:"form-step-header",subtitle:o.subtitle,title:o.title}),C(uv,W(D({},g),{children:y})),ae(Ee.Row,{part:"form-step-footer",justifyContent:"flex-end",gap:3,children:[A&&C(yt.Secondary,{onClick:r,title:A}),C(yt.Primary,{disabled:T||m,onClick:h(S),title:x??"Submit",loading:m})]},`form-footer-${o.id}`)]}))}function ES({error:e}){var t;return(t=e?.message)!=null&&t.length?C(Ne.Caption,{color:"red500",display:"block",part:"field-error",mt:"1",textAlign:"end",children:e?.message}):null}function kS({children:e,id:t,required:n=!1}){return ae(Ne.Body2,{as:"label",htmlFor:t,part:"field-label",fontWeight:"medium",mb:"2",display:"block",children:[e,C(se,{part:"field-label-required",display:"inline",children:n&&"*"})]})}var Of={backgroundColor:"neutral.background",borderColor:"neutral.border",borderStyle:"solid",borderWidth:"md",borderRadius:"md"},fs=W(D({},Of),{px:"4",py:"2",display:"block",outline:"none",width:"100%"}),Rf={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 zr({children:e,field:t,fieldData:n,fieldState:r}){var i;let{id:o,label:s,placeholder:a}=n,{error:l}=r,c=W(D(D(D({id:o},t),a?{placeholder:a}:{}),fs),{"aria-invalid":!!l,value:(i=t.value)!=null?i:""});return ae(se,{part:"field",children:[C(kS,{id:o,required:!!n.required,children:s}),e(c),C(ES,{error:l})]})}function da(e){return C("svg",W(D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5"},e),{children:C("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 TS=v.forwardRef(({label:e,value:t},n)=>ae(se,{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:[C(Ne.Body2,{part:"field-radio-label",children:e}),C(ab,{id:t,value:t,ref:n,asChild:!0,children:C(se,{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:C(se,W(D({as:lb},Rf),{children:C(da,{height:"14",width:"14"})}))})})]}));function AS(e){let{field:{onChange:t,value:n},fieldData:{options:r=[]}}=e,i=r.map(({label:o,value:s})=>C(TS,{value:s,label:o},s));return C(zr,W(D({},e),{children:()=>C(sb,{value:n,onValueChange:t,asChild:!0,children:C(Ee.Column,{gap:2,part:"field-radio-group",children:i})})}))}function PS(e){return C("svg",W(D({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5"},e),{children:C("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 IS(e){let{field:{onChange:t,value:n},fieldData:{options:r=[]}}=e,[i,o]=v.useState([]);function s(a){let l=[];i.includes(a)?l=[...i.filter(c=>c!==a)]:l=[...i,a],o(l),t(l)}return C(zr,W(D({},e),{children:()=>C(Ee.Column,{gap:2,part:"field-select-multiple",children:r.map(({label:a,value:l})=>C(Zd,{value:i.includes(l)?l:void 0,onCheckedChange:()=>s(l),asChild:!0,children:ae(se,{as:"label",backgroundColor:"neutral.background",borderColor:"neutral.border",borderRadius:"md",borderStyle:"solid",borderWidth:"md",display:"flex",htmlFor:l,justifyContent:"space-between",part:"field-check",px:4,py:2,children:[C(Ne.Body2,{part:"field-check-label",children:a}),C(se,{as:"button",backgroundColor:"inherit",borderWidth:"md",borderStyle:"solid",borderColor:"neutral.border",borderRadius:"100%",flex:"0 0 auto",id:l,padding:"0",part:"field-check-value",position:"relative",height:"24px",width:"24px",children:C(Jd,{asChild:!0,children:C(se,W(D({},Rf),{children:C(da,{height:"14",width:"14"})}))})})]})},l))})}))}var OS=v.forwardRef(({label:e,value:t},n)=>C(aw,{value:t,ref:n,asChild:!0,children:C(se,{"backgroundColor:hover":"neutral.900",borderRadius:"md",outline:"none",part:"field-select-option",px:"3",py:"2",children:C(lw,{asChild:!0,children:C(Ne.Body2,{part:"field-select-option-label",children:e})})})}));function RS(e){let{field:{onChange:t,value:n},fieldData:{options:r=[],placeholder:i}}=e,o=r.map(({label:s,value:a})=>C(OS,{value:a,label:s},a));return e.fieldData.multiple?C(IS,D({},e)):C(zr,W(D({},e),{children:()=>ae(ew,{value:n,onValueChange:t,children:[C(tw,{asChild:!0,children:ae(Ne.Body2,W(D({},fs),{alignItems:"center",display:"flex",justifyContent:"space-between",part:"field-select",children:[C(nw,{placeholder:i??"Select one"}),C(rw,{children:C(se,{as:PS,color:"neutral.100",display:"block",height:"24px",part:"field-select-icon",width:"24px"})})]}))}),C(iw,{children:C(ow,{position:"popper",sideOffset:4,asChild:!0,children:C(se,W(D({},fs),{boxShadow:"md",maxHeight:"var(--radix-select-content-available-height)",p:"1",part:"field-select-options",width:"var(--radix-popper-anchor-width)",zIndex:"99999",children:C(sw,{children:o})}))})})]})}))}function _S(e){return C(zr,W(D({},e),{children:t=>C(Ne.Body2,D({as:"input",part:"field-text",type:"text"},t))}))}function MS(e){return C(zr,W(D({},e),{children:t=>C(Ne.Body2,D({as:"textarea",part:"field-textarea"},t))}))}function DS(e){let{field:{onChange:t,value:n},fieldData:{options:r,label:i,id:o=[]}}=e;return ae(se,{part:"field",display:"flex",gap:2,alignItems:"center",children:[C(Zd,{defaultChecked:!0,onCheckedChange:t,value:n,checked:n===!0,asChild:!0,children:C(se,W(D({},Of),{as:"button",width:"25px",minWidth:"25px",height:"25px",justifyContent:"center",alignItems:"center",display:"flex","backgroundColor:hover":"neutral.900",part:"field-checkbox",id:o,children:C(Jd,{asChild:!0,children:C(se,{width:"20px",height:"20px",display:"flex",alignItems:"center",justifyContent:"center",children:C(da,{height:"14",fill:"currentColor"})})})}))}),C(Ne.Body2,{part:"field-checkbox-label",as:"label",htmlFor:o,children:i})]})}var LS={checkbox:DS,radio:AS,select:RS,text:_S,textarea:MS};function ps(e){var t=e,{fieldTypes:n={},flowId:r,part:i}=t,o=ie(t,["fieldTypes","flowId","part"]);let s=Object.assign({},LS,n);return C(Rn,W(D({flowId:r,part:["form",i]},o),{children:a=>C(CS,D({fieldTypes:s},a))}))}var NS={};on(NS,{NPS:()=>ms});function FS({field:e,fieldData:t,submit:n}){var r,i;let o=[...Array(11)].map((s,a)=>{let l=e.value===a?yt.Primary:yt.Secondary;return C(l,{borderWidth:"1px",onClick:()=>{e.onChange(a),n()},title:`${a}`,css:{".fr-button-title":{fontSize:"15px"}}},a)});return ae(Ee.Column,{gap:2,children:[C(Ee.Row,{gap:2,part:"field-nps",css:{"@media (min-width: 660px)":{flexWrap:"nowrap",justifyContent:"space-between"},flexWrap:"wrap",justifyContent:"center"},children:o}),ae(Ee.Row,{justifyContent:"space-between",part:"field-nps-label",children:[C(Ne.Caption,{part:"field-nps-left-label",color:"neutral.400",children:(r=t.negativeLabel)!=null?r:"Not likely at all"}),C(Ne.Caption,{part:"field-nps-right-label",color:"neutral.400",children:(i=t.positiveLabel)!=null?i:"Extremely likely"})]})]})}function ms(e){var t=e,{as:n=Ue,flowId:r,fieldTypes:i,part:o}=t,s=ie(t,["as","flowId","fieldTypes","part"]);let{flow:a}=fa(r);return C(ps,D({alignSelf:"end",as:n,flowId:r,fieldTypes:D({nps:FS},i),modal:!1,onEscapeKeyDown:l=>{typeof s.onEscapeKeyDown=="function"&&s.onEscapeKeyDown(l),l.defaultPrevented||a.skip()},part:["nps",o],css:W(D({},!a||a.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"}}})},s))}function $S(e,t){var n=e,{children:r,part:i}=n,o=ie(n,["children","part"]);return C(rf,{forwardProps:!0,ref:t,children:C(se,W(D({backgroundColor:"black",inset:"0",opacity:"0.5",part:["overlay",i],position:"absolute"},o),{children:r}))})}var _f=v.forwardRef($S),zS=nn({"0%":{opacity:.5,transform:"scale(0.5)"},"50%":{opacity:0,transform:"scale(1)"},"100%":{opacity:0,transform:"scale(1)"}});function BS(e){var t=e,{part:n=""}=t,r=ie(t,["part"]);return ae(se,W(D({borderRadius:"24px",height:"24px",part:`ping-wrapper ${n}`,position:"relative",width:"24px"},r),{children:[C(se,{backgroundColor:"primary.surface",animation:`2s ease-out infinite ${zS}`,borderRadius:"24px",height:"48px",left:"-12px",part:"ping-pulse",pointerEvents:"none",position:"absolute",top:"-12px",transformOrigin:"center center",width:"48px"}),C(se,{backgroundColor:"primary.surface",borderRadius:"12px",height:"24px",left:"0",part:"ping",position:"absolute",top:"0",width:"24px"})]}))}function jS({maxX:e,maxY:t,radius:n,x1:r,x2:i,y1:o,y2:s}){return n>0?`path("${[`M${r+n},${o}`,`H${i-n}`,`A${n} ${n} 0,0,1 ${i} ${o+n}`,`V${s-n}`,`A${n} ${n} 0,0,1 ${i-n} ${s}`,`H${r+n}`,`A${n} ${n} 0,0,1 ${r} ${s-n}`,`V${t}`,`H${e}`,"V0","H0",`V${t}`,`H${r}`,`V${o+n}`,`A${n} ${n} 0,0,1 ${r+n} ${o}`,"Z"].join(" ")}")`:`path("M${r},${o} H${i} V${s} H${r} V${t} H${e} V0 H0 V${t} H${r} Z")`}function VS(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 HS(e){var t=e,{anchor:n,part:r,style:i={}}=t,o=ie(t,["anchor","part","style"]);let[s,a]=v.useState({maxX:0,maxY:0,radius:0,x1:0,x2:0,y1:0,y2:0}),{refs:l}=cf({middleware:[{name:"clipPath",fn({elements:c,rects:d}){return a({maxX:c.floating.clientWidth,maxY:c.floating.clientHeight,radius:VS(c.reference),x1:d.reference.x,x2:d.reference.x+d.reference.width,y1:d.reference.y,y2:d.reference.y+d.reference.height}),{}}}],open:!0,placement:"top-center",transform:!1,whileElementsMounted:ia});return v.useEffect(()=>{let c=document.querySelector(n);c!=null?l.setReference(c):console.debug(`[frigade] Spotlight: No anchor found for selector: ${n}`)},[n]),C(_f,D({part:["spotlight",r],ref:l.setFloating,style:D({clipPath:jS(s)},i)},o))}function WS({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 GS(e){switch(e){case"after":return"end";case"before":return"start";default:return e}}function US({align:e,alignOffset:t,anchor:n,onOpenChange:r=()=>{},open:i,side:o,sideOffset:s}){let a=`${o}-${GS(e)}`;function l({rects:w}){let S={alignmentAxis:t,mainAxis:s};return["after","before"].includes(e)&&(["bottom","top"].includes(o)?S.alignmentAxis=t-w.floating.width:S.alignmentAxis=t-w.floating.height),S}let{context:c,floatingStyles:d,placement:u,refs:b}=cf({middleware:[nd(l),id(),rd()],onOpenChange:r,open:i,placement:a,whileElementsMounted:ia}),g=Bw(c),m=Hw(c,{outsidePress:!1}),f=Yw(c),{getFloatingProps:y,getReferenceProps:p}=Gw([g,m,f]);v.useEffect(()=>{let w=document.querySelector(n);w!=null?b.setReference(w):console.debug(`[frigade] Hint: No anchor found for selector: ${n}`)},[n]);let h=u.split("-");return e==="before"?h[1]=h[1]==="end"?"after":"before":e==="after"&&(h[1]=h[1]==="start"?"before":"after"),{context:c,getFloatingProps:y,getReferenceProps:p,floatingStyles:d,placement:h.join("-"),refs:b}}function YS(e){var t=e,{align:n="center",alignOffset:r=0,anchor:i,children:o,defaultOpen:s=!0,modal:a=!1,onOpenChange:l=()=>{},open:c,part:d,side:u="bottom",sideOffset:b=0,spotlight:g=!1,style:m={}}=t,f=ie(t,["align","alignOffset","anchor","children","defaultOpen","modal","onOpenChange","open","part","side","sideOffset","spotlight","style"]);let[y,p]=v.useState(s),h=c??y,{getFloatingProps:w,getReferenceProps:S,floatingStyles:x,placement:A,refs:T}=US({align:n,alignOffset:r,anchor:i,onOpenChange:R=>{l(R),c==null&&p(R)},open:h,side:u,sideOffset:b}),[k,_]=A.split("-"),z=S();return ae(Hi,{children:[g&&h&&C(HS,{anchor:i}),a&&!g&&h&&C(_f,{lockScroll:!0}),ae(se,W(D(D({part:["hint",d],ref:T.setFloating,style:D(D({},x),m)},w()),f),{children:[h&&o,C(BS,W(D({},z),{position:"absolute",style:WS({align:_,side:k})}))]}))]})}var qS=nn` from { opacity: 0; } 25% { opacity: 0; } to { opacity: 1; } `;function ec(e){var t=e,{align:n,alignOffset:r,defaultOpen:i,dismissible:o,flow:s,handleDismiss:a,modal:l,onPrimary:c,onSecondary:d,part:u,side:b,sideOffset:g,spotlight:m,step:f}=t,y=ie(t,["align","alignOffset","defaultOpen","dismissible","flow","handleDismiss","modal","onPrimary","onSecondary","part","side","sideOffset","spotlight","step"]),p,h,w,S,x;let{handlePrimary:A,handleSecondary:T}=ro(f,{onPrimary:c,onSecondary:d}),k=(h=(p=f.primaryButton)==null?void 0:p.title)!=null?h:f.primaryButtonTitle,_=(S=(w=f.secondaryButton)==null?void 0:w.title)!=null?S:f.secondaryButtonTitle,z=!!f.$state.blocked;return C(YS,W(D({align:n,alignOffset:r,anchor:f.selector,"data-step-id":f.id,defaultOpen:i,modal:l,part:u,side:b,sideOffset:g,spotlight:m},y),{children:ae(ue,{animation:`${qS} 300ms ease-out`,boxShadow:"md",maxWidth:"min(360px, calc(100vw - 25px))",children:[C(ue.Media,{aspectRatio:"2",borderRadius:"md md 0 0",borderWidth:"0",margin:"-5 -5 0",objectFit:"cover",overflowClipMargin:"unset",src:(x=f.videoUri)!=null?x:f.imageUri,transform:"translate3d(0, 0, 1px)",type:f.videoUri?"video":"image"}),C(ue.Header,{css:{".fr-dismiss":{position:"absolute",right:"12px",top:"12px"}},dismissible:o,handleDismiss:a,subtitle:f.subtitle,title:f.title}),ae(ue.Footer,{children:[s.getNumberOfAvailableSteps()>1&&C(xf,{current:s.getCurrentStepOrder()+1,marginRight:"auto",total:s.getNumberOfAvailableSteps()}),C(ue.Secondary,{disabled:z,onClick:T,title:_}),C(ue.Primary,{disabled:z,onClick:A,title:k})]})]})}))}function KS(e,t,n){let[r,i]=v.useState(!1),o=v.useRef();return v.useEffect(()=>{o.current=document.querySelector(t),i(!0)},[]),r?Zn.createPortal(e,o.current,n):null}function XS(e){var t=e,{align:n="after",alignOffset:r=0,as:i,defaultOpen:o,dismissible:s=!1,flowId:a,modal:l,part:c,sequential:d=!0,side:u="bottom",sideOffset:b=0,spotlight:g,zIndex:m=9999}=t,f=ie(t,["align","alignOffset","as","defaultOpen","dismissible","flowId","modal","part","sequential","side","sideOffset","spotlight","zIndex"]);let{onDismiss:y,onPrimary:p,onSecondary:h}=f;return KS(C(Rn,W(D({as:i,flowId:a,part:"tour"},f),{children:({flow:w,handleDismiss:S,parentProps:{containerProps:x},step:A})=>{var T,k,_,z;let R=D({align:n,alignOffset:r,dismissible:s,flow:w,handleDismiss:S,modal:l,onPrimary:p,onSecondary:h,part:c,side:u,sideOffset:b,spotlight:g,step:A,zIndex:(_=(k=(T=A.props)==null?void 0:T.zIndex)!=null?k:x?.zIndex)!=null?_:m},(z=A.props)!=null?z:{});return d?C(ec,D({defaultOpen:o??!0},R)):Array.from(w.steps.values()).filter(I=>{let{blocked:L,completed:N,skipped:j,visible:B}=I.$state;return!L&&!N&&!j&&B}).map(I=>{var L,N,j,B,V;function G(Re){return In(this,null,function*(){return(yield y?.(w,Re))===!1?(Re.preventDefault(),!1):(I.skip(),!0)})}let J=g&&I.id===A.id,ge=(j=(N=(L=I.props)==null?void 0:L.zIndex)!=null?N:x?.zIndex)!=null?j:m,re=D({align:n,alignOffset:r,dismissible:s,flow:w,handleDismiss:G,onPrimary:p,onSecondary:h,part:c,side:u,sideOffset:b,spotlight:g,zIndex:ge},(B=I.props)!=null?B:{});return C(ec,D({css:{"&:has([aria-expanded=true])":{zIndex:Number(ge)+2},".fr-overlay":{zIndex:Number(ge)+1},".fr-progress-fraction":{display:"none"}},defaultOpen:(V=o||J)!=null?V:!1,step:I},re),`${I.id}-${J}`)})}})),"body")}function ZS(e){var t,n,r;let{frigade:i}=v.useContext(nr),[,o]=v.useState(!1),s,a=v.useCallback(u=>{i?.getCollection(e).then(()=>{u()});let b=()=>{clearTimeout(s),s=setTimeout(()=>{o(g=>!g),u()},100)};return i?.onStateChange(b),()=>{i?.removeStateChangeHandler(b)}},[e]),l=v.useSyncExternalStore(a,()=>{let u;try{u=i?.getCollectionSync(e)}catch{}return u},()=>{let u;try{u=i?.getCollectionSync(e)}catch{}return u}),c=(r=((n=(t=l?.flows)==null?void 0:t.map(u=>W(D({},u),{flow:i?.getFlowSync(u.flowId)})))!=null?n:[]).find(({flow:u})=>u.isVisible))==null?void 0:r.flowId,{flow:d}=fa(c);return{collection:l,currentFlow:d}}function JS(e){var t=e,{collectionId:n,part:r}=t,i=ie(t,["collectionId","part"]),o,s,a;let l={ANNOUNCEMENT:ux,BANNER:tS,CARD:ue,CHECKLIST:If,EMBEDDED_TIP:ue,FORM:ps,NPS_SURVEY:ms,SURVEY:ms,TOUR:XS},{currentFlow:c}=ZS(n),d=(s=l[(o=c?.rawData)==null?void 0:o.flowType])!=null?s:null;return c==null||d==null?null:((a=c?.rawData)==null?void 0:a.flowType)===wi.FORM?C(se,W(D({part:["collection",r],"data-collection-id":n},i),{children:C(ps,{flowId:c.id,as:Ue},c.id)})):C(se,W(D({part:["collection",r],"data-collection-id":n},i),{children:C(d,{flowId:c.id},c.id)}))}function Mf(){let{frigade:e}=v.useContext(nr);return{frigade:e,isLoading:!(e!=null&&e.isReady())}}function QS(){let[e,t]=v.useState(),{frigade:n}=Mf();return v.useEffect(()=>{n.getCollections().then(r=>{r?.forEach((i,o)=>{i.collectionType==="DEFAULT"&&t(o)})})},[]),e==null?null:C(JS,{as:null,collectionId:e})}var nr=v.createContext({apiKey:"",navigate:()=>{},hasInitialized:!1,registerComponent:()=>{},unregisterComponent:()=>{}});function ex(){let{frigade:e}=Mf();return v.useEffect(()=>{In(this,null,function*(){(yield e.getFlows()).forEach(t=>{t.steps.forEach(n=>{if(n.imageUri){let r=new Image;r.src=n.imageUri}})})})},[]),null}var tx="2.5.1";function YC(e){var t=e,{children:n,css:r={},defaultCollection:i=!0,navigate:o,theme:s}=t,a=ie(t,["children","css","defaultCollection","navigate","theme"]);let l=s?gf(s):{},c=v.useRef(new Map),d=v.useRef(),[u,b]=v.useState(!1),g=v.useMemo(()=>(b(!1),d.current=void 0,new wg(a.apiKey,{apiKey:a.apiKey,apiUrl:a.apiUrl,userId:a.userId,groupId:a.groupId,userProperties:a.userProperties,groupProperties:a.groupProperties,generateGuestId:a.generateGuestId,syncOnWindowUpdates:a.syncOnWindowUpdates,__readOnly:a.__readOnly,__flowStateOverrides:a.__flowStateOverrides,__platformVersion:tx,__platformName:"React"})),[a.userId,a.groupId,a.apiKey]);v.useEffect(()=>{if(a.__flowStateOverrides){let h=g.getConfig();h.__flowStateOverrides=a.__flowStateOverrides,g.reload(h)}},[a.__flowStateOverrides]);function m(){let h=[...c.current.entries()].map(([w,S])=>[w,S.callback]);g.batchRegister(h),b(!0)}function f(h,w){if(d.current&&clearTimeout(d.current),u){c.current.has(h)?g.getFlow(h).then(S=>w(S.isVisible)):(g.getFlow(h).then(S=>S.register(w)),c.current.set(h,{callback:w}));return}c.current.has(h)||c.current.set(h,{callback:w}),d.current&&clearTimeout(d.current),d.current=setTimeout(()=>m(),0)}function y(h){c.current.has(h)&&g.getFlow(h).then(w=>{c.current.delete(h),w?.unregister()})}let p=o??((h,w="_self")=>{window.open(h,w)});return v.useEffect(()=>()=>{g.destroy()},[]),ae(nr.Provider,{value:W(D({navigate:p},a),{frigade:g,registerComponent:f,unregisterComponent:y,hasInitialized:u}),children:[C(Vp,{styles:{":root":D(D(D({},l0),l),r)}}),ae(zp,{theme:Oe,children:[i&&C(QS,{}),n]}),a.preloadImages!==!1&&C(ex,{})]})}function fa(e,t){let{frigade:n}=v.useContext(nr),[,r]=v.useState(!1),i=v.useCallback(s=>{n?.getFlow(e).then(()=>{s()});let a=l=>{l.id===e&&setTimeout(()=>{r(c=>!c),s()},0)};return n?.onStateChange(a),()=>{n?.removeStateChangeHandler(a)}},[e]),o=v.useSyncExternalStore(i,()=>n?.getFlowSync(e),()=>n?.getFlowSync(e));return o!=null&&t!=null&&t.variables&&o.applyVariables(t.variables),{flow:o,isLoading:n!=null&&n.hasFailedToLoad()?!1:!o}}function nx(e,{onComplete:t,onDismiss:n}={}){let r=v.useRef(null);return v.useEffect(()=>{e!=null&&(e.isCompleted&&r.current===!1&&In(this,null,function*(){yield t?.(e)}),r.current=e?.isCompleted)},[e?.isCompleted]),{handleDismiss:v.useCallback(i=>In(this,null,function*(){if((yield n?.(e,i))===!1)return i.preventDefault(),!1;e.skip()}),[e])}}var Yt=new Set;function rx(e,t=!0){let n=v.useCallback(()=>{Yt.has(e?.id)&&Yt.delete(e?.id)},[Yt,t]),r=v.useCallback(()=>{t&&e!=null&&e.isVisible&&!Yt.has(e.id)&&Yt.add(e.id)},[Yt,t]);v.useEffect(()=>()=>{n()},[]),e!=null&&e.isVisible?r():n();let i=Yt.size>0?Yt.values().next().value:null;return{isCurrentModal:t?i===e?.id||Yt.size==0:!0}}function Rn(e){var t=e,{as:n,children:r,flowId:i,onComplete:o,onDismiss:s,onPrimary:a,onSecondary:l,variables:c}=t,d=ie(t,["as","children","flowId","onComplete","onDismiss","onPrimary","onSecondary","variables"]),u,b;let{flow:g}=fa(i,{variables:c}),m=D(D({},d),(u=g?.props)!=null?u:{}),{dismissible:f=!1,forceMount:y=!1}=m,p=ie(m,["dismissible","forceMount"]),h=g?.getCurrentStep(),{handleDismiss:w}=nx(g,{onComplete:o,onDismiss:s}),{handlePrimary:S,handleSecondary:x}=ro(h,{onPrimary:a,onSecondary:l}),A=p?.modal||typeof n=="function"&&n?.displayName==="Dialog"||[wi.ANNOUNCEMENT,wi.TOUR].includes((b=g?.rawData)==null?void 0:b.flowType),{isCurrentModal:T}=rx(g,A),k=y&&(g?.isCompleted||g?.isSkipped);if(!g||!g.isVisible&&!k||!k&&!T)return null;(k||!g.isCompleted&&!g.isSkipped)&&h.start();let _=n===null?v.Fragment:n??se,z=W(D({},p),{"data-flow-id":g.id});return C(_,W(D({},n===null?{}:z),{children:r({flow:g,handleDismiss:w,handlePrimary:S,handleSecondary:x,parentProps:{dismissible:f,flowId:i,variables:c,containerProps:z},step:h})}))}function ix(e){var t=e,{part:n}=t,r=ie(t,["part"]);return C(Rn,W(D({as:ue,gap:5,borderColor:"neutral.border",borderStyle:"solid",borderWidth:"md",part:["card",n]},r),{children:({handleDismiss:i,handlePrimary:o,handleSecondary:s,parentProps:{dismissible:a},step:l})=>{var c,d,u,b;let g=(d=(c=l.primaryButton)==null?void 0:c.title)!=null?d:l.primaryButtonTitle,m=(b=(u=l.secondaryButton)==null?void 0:u.title)!=null?b:l.secondaryButtonTitle;return ae(Hi,{children:[C(ue.Header,{dismissible:a,handleDismiss:i,subtitle:l.subtitle,title:l.title}),C(ue.Media,{src:l.imageUri,css:{objectFit:"contain",width:"100%"}}),ae(Ee.Row,{gap:3,justifyContent:"flex-end",part:"card-footer",children:[C(ue.Secondary,{title:m,onClick:s}),C(ue.Primary,{title:g,onClick:o})]})]})}}))}function ox(e){var t=e,{part:n,src:r}=t,i=ie(t,["part","src"]);return C(se,D({as:"img",maxWidth:"unset",part:["image",n],src:r},i))}function sx(e){var t,n,r,i,o;return e.includes("youtube")?`https://www.youtube.com/embed/${(t=e.split("v=")[1])==null?void 0:t.split("&")[0]}`:e.includes("youtu.be")?`https://www.youtube.com/embed/${(n=e.split("youtu.be/")[1])==null?void 0:n.split("&")[0]}`:e.includes("vimeo")?`https://player.vimeo.com/video/${(r=e.split("vimeo.com/")[1])==null?void 0:r.split("&")[0]}`:e.includes("wistia")?`https://fast.wistia.net/embed/iframe/${(i=e.split("wistia.com/medias/")[1])==null?void 0:i.split("&")[0]}`:e.includes("loom")?`https://loom.com/embed/${(o=e.split("loom.com/share/")[1])==null?void 0:o.split("&")[0]}?hideEmbedTopBar=true&hide_title=true&hide_share=true&hide_owner=true`:null}function ax(e){var t=e,{part:n,src:r}=t,i=ie(t,["part","src"]);let o=sx(r);return o?C(se,D({allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,as:"iframe",backgroundColor:"neutral.100",borderWidth:"0",part:["video",n],src:o},i)):r!=null&&r.endsWith(".mp4")?C(se,D({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 Df(e){var t=e,{src:n,type:r}=t,i=ie(t,["src","type"]);return C(r==="video"?ax:ox,D({src:n},i))}var ue=v.forwardRef((e,t)=>{var n=e,{children:r,flowId:i,part:o}=n,s=ie(n,["children","flowId","part"]),a;if(i!=null)return C(ix,D({flowId:i},s));let l=(a=s.as)!=null?a:Ee.Column;return C(l,W(D({backgroundColor:"neutral.background",borderColor:"neutral.border",borderStyle:"solid",borderRadius:"md",borderWidth:"0",gap:5,p:5,part:["card",o]},s),{ref:t,children:r}))});ue.Dismiss=e=>C(yt.Plain,W(D({part:"dismiss",padding:0},e),{children:C(pf,{height:"20",fill:"currentColor"})}));ue.Footer=e=>{var t=e,{children:n,part:r}=t,i=ie(t,["children","part"]);return C(Ee.Row,W(D({alignItems:"center",gap:3,justifyContent:"flex-end",part:["card-footer",r]},i),{children:n}))};ue.Header=e=>{var t=e,{dismissible:n,handleDismiss:r,part:i,subtitle:o,title:s}=t,a=ie(t,["dismissible","handleDismiss","part","subtitle","title"]);return ae(Ee.Row,W(D({alignItems:"flex-start",flexWrap:"wrap",gap:1,part:["card-header",i]},a),{children:[C(ue.Title,{maxWidth:"calc(100% - 32px)",children:s}),n&&C(ue.Dismiss,{onClick:r,marginLeft:"auto"}),C(ue.Subtitle,{color:"neutral.400",flexBasis:"100%",children:o})]}))};ue.Media=e=>{var t=e,{src:n}=t,r=ie(t,["src"]);return n==null||n?.length===0?null:C(Df,D({borderRadius:"md",src:n},r))};ue.Primary=e=>{var t=e,{onClick:n,title:r}=t,i=ie(t,["onClick","title"]);return r==null||r?.length===0?null:C(yt.Primary,D({title:r,onClick:n},i))};ue.Secondary=e=>{var t=e,{onClick:n,title:r}=t,i=ie(t,["onClick","title"]);return r==null||r?.length===0?null:C(yt.Secondary,D({title:r,onClick:n},i))};ue.Subtitle=e=>{var t=e,{children:n,part:r}=t,i=ie(t,["children","part"]);return n==null?null:C(Ne.Body2,W(D({display:"block",color:"neutral.400",part:["subtitle",r]},i),{children:n}))};ue.Title=e=>{var t=e,{children:n,part:r}=t,i=ie(t,["children","part"]);return n==null?null:C(Ne.H4,W(D({display:"block",part:["title",r]},i),{children:n}))};var si={content:["onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onPointerDownOutside","onInteractOutside"],root:["defaultOpen","modal","onOpenChange","open"]};function lx(e){let t=Object.fromEntries(si.content.map(i=>[i,e[i]]).filter(i=>i[1]!==void 0)),n=Object.fromEntries(si.root.map(i=>[i,e[i]]).filter(i=>i[1]!==void 0)),r={};for(let i of Object.keys(e))!si.content.some(o=>o===i)&&!si.root.some(o=>o===i)&&(r[i]=e[i]);return{contentProps:t,otherProps:r,rootProps:n}}var cx=nn` from { opacity: 0; } 25% { opacity: 0; } to { opacity: 1; } `;function Ue(e){var t=e,{children:n,className:r,modal:i=!0}=t,o=ie(t,["children","className","modal"]);let{rootProps:s,contentProps:a,otherProps:l}=lx(o),c=l,{zIndex:d}=c,u=ie(c,["zIndex"]);return C(ph,W(D({defaultOpen:!0,modal:i},s),{children:C(mh,{children:ae(se,{animation:`${cx} 300ms ease-out`,className:r,display:"grid",inset:"0",padding:"6",part:"dialog-wrapper",pointerEvents:"none",position:"fixed",zIndex:d??10,children:[i&&C(hh,{asChild:!0,children:C(se,{background:"rgb(0 0 0 / 0.5)",inset:"0",part:"dialog-overlay",position:"absolute"})}),C(gh,W(D({asChild:!0,onOpenAutoFocus:b=>b.preventDefault(),onPointerDownOutside:b=>b.preventDefault(),onInteractOutside:b=>b.preventDefault()},a),{children:C(ue,W(D({alignSelf:"center",boxShadow:"md",justifySelf:"center",maxHeight:"100%",maxWidth:"430px",overflowY:"auto",padding:8,part:"dialog",pointerEvents:"auto",position:"relative"},u),{children:n}))}))]})})}))}Ue.Dismiss=e=>C(yh,{"aria-label":"Close",asChild:!0,children:C(yt.Plain,W(D({part:"close",position:"absolute",right:"2px",top:"2px"},e),{children:C(pf,{height:"20",fill:"currentColor"})}))});Ue.Subtitle=e=>{var t=e,{children:n}=t,r=ie(t,["children"]);return C(bh,{asChild:!0,children:C(Ne.Body2,W(D({part:"subtitle"},r),{children:n}))})};Ue.Media=e=>{var t=e,{src:n}=t,r=ie(t,["src"]);return n==null?null:C(Df,D({borderRadius:"md",src:n},r))};Ue.Primary=e=>{var t=e,{onClick:n,title:r}=t,i=ie(t,["onClick","title"]);return r==null?null:C(yt.Primary,D({title:r,onClick:n},i))};Ue.ProgressDots=({current:e,total:t})=>{if(t==1)return null;let n=[...Array(t)].map((r,i)=>C(se,{as:"circle",r:4,cx:4+16*i,cy:"4px",fill:e===i?Oe.colors.primary.surface:Oe.colors.neutral[700],part:e===i?"progress-dot-selected":"progress-dot"},i));return C(se,{as:"svg",height:"8px",marginInline:"auto",part:"progress",viewBox:`0 0 ${16*t-8} 8`,width:16*t-8,children:n})};Ue.Secondary=e=>{var t=e,{onClick:n,title:r}=t,i=ie(t,["onClick","title"]);return r==null?null:C(yt.Secondary,D({title:r,onClick:n},i))};Ue.Title=e=>{var t=e,{children:n}=t,r=ie(t,["children"]);return C(vh,{asChild:!0,children:C(Ne.H4,W(D({part:"title"},r),{children:n}))})};Ue.displayName="Dialog";var tc=["dismissible","flowId","forceMount","onComplete","onDismiss","onPrimary","onSecondary","variables"];function ux(e){var t=e,{flowId:n,part:r}=t,i=ie(t,["flowId","part"]);let o=Object.fromEntries(Object.entries(i).filter(([a])=>tc.some(l=>a===l))),s=Object.fromEntries(Object.entries(i).filter(([a])=>tc.indexOf(a)===-1));return C(Rn,W(D({as:null,flowId:n},o),{children:({flow:a,handleDismiss:l,handlePrimary:c,handleSecondary:d,parentProps:{containerProps:u,dismissible:b},step:g})=>{var m,f,y,p,h,w;let S=(m=g.props)!=null?m:{},x=(y=(f=g.primaryButton)==null?void 0:f.title)!=null?y:g.primaryButtonTitle,A=(h=(p=g.secondaryButton)==null?void 0:p.title)!=null?h:g.secondaryButtonTitle,T=g.$state.blocked;return C(Ue,W(D(D({part:["announcement",r],textAlign:"center"},u),s),{onEscapeKeyDown:k=>{if(i.dismissible===!1){k.preventDefault();return}typeof i.onEscapeKeyDown=="function"&&i.onEscapeKeyDown(k),k.defaultPrevented||l(k)},children:ae(Ee.Column,W(D({gap:5,part:"announcement-step"},S),{children:[b&&C(Ue.Dismiss,{onClick:l}),ae(Ee.Column,{gap:1,part:"announcement-header",children:[C(Ue.Title,{children:g.title}),C(Ue.Subtitle,{children:g.subtitle})]}),C(Ue.Media,{aspectRatio:"1.5",objectFit:"cover",overflowClipMargin:"unset",src:(w=g.videoUri)!=null?w:g.imageUri,transform:"translate3d(0, 0, 1px)",type:g.videoUri?"video":"image",width:"100%"}),C(Ue.ProgressDots,{current:a.getCurrentStepIndex(),total:a.getNumberOfAvailableSteps()}),ae(Ee.Row,{css:{"& > button":{flexBasis:"50%",flexGrow:1}},gap:3,part:"announcement-footer",children:[A&&C(Ue.Secondary,{disabled:T,onClick:d,title:A}),x&&C(Ue.Primary,{disabled:T,onClick:c,title:x})]})]}))}))}}))}nn({"0%":{opacity:.5,transform:"scale(0.5)"},"50%":{opacity:0,transform:"scale(1)"},"100%":{opacity:0,transform:"scale(1)"}});nn` from { opacity: 0; } 25% { opacity: 0; } to { opacity: 1; } `;function nc(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function pa(e={},t={}){Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:nc(t[n])&&nc(e[n])&&Object.keys(t[n]).length>0&&pa(e[n],t[n])})}const Lf={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 Rt(){const e=typeof document<"u"?document:{};return pa(e,Lf),e}const dx={document:Lf,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 pt(){const e=typeof window<"u"?window:{};return pa(e,dx),e}function fx(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function _r(e,t=0){return setTimeout(e,t)}function Kt(){return Date.now()}function px(e){const t=pt();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function mx(e,t="x"){const n=pt();let r,i,o;const s=px(e);return n.WebKitCSSMatrix?(i=s.transform||s.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(a=>a.replace(",",".")).join(", ")),o=new n.WebKitCSSMatrix(i==="none"?"":i)):(o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=o.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?i=o.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?i=o.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function yr(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function hx(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function mt(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<e.length;r+=1){const i=e[r];if(i!=null&&!hx(i)){const o=Object.keys(Object(i)).filter(s=>n.indexOf(s)<0);for(let s=0,a=o.length;s<a;s+=1){const l=o[s],c=Object.getOwnPropertyDescriptor(i,l);c!==void 0&&c.enumerable&&(yr(t[l])&&yr(i[l])?i[l].__swiper__?t[l]=i[l]:mt(t[l],i[l]):!yr(t[l])&&yr(i[l])?(t[l]={},i[l].__swiper__?t[l]=i[l]:mt(t[l],i[l])):t[l]=i[l])}}}return t}function ai(e,t,n){e.style.setProperty(t,n)}function Nf({swiper:e,targetPosition:t,side:n}){const r=pt(),i=-e.translate;let o=null,s;const a=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const l=t>i?"next":"prev",c=(u,b)=>l==="next"&&u>=b||l==="prev"&&u<=b,d=()=>{s=new Date().getTime(),o===null&&(o=s);const u=Math.max(Math.min((s-o)/a,1),0),b=.5-Math.cos(u*Math.PI)/2;let g=i+b*(t-i);if(c(g,t)&&(g=t),e.wrapperEl.scrollTo({[n]:g}),c(g,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:g})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(d)};d()}function It(e,t=""){return[...e.children].filter(n=>n.matches(t))}function Ff(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function gx(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function vx(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function pn(e,t){return pt().getComputedStyle(e,null).getPropertyValue(t)}function Li(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function $f(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function hs(e,t,n){const r=pt();return 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"))}let Mo;function bx(){const e=pt(),t=Rt();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function zf(){return Mo||(Mo=bx()),Mo}let Do;function yx({userAgent:e}={}){const t=zf(),n=pt(),r=n.navigator.platform,i=e||n.navigator.userAgent,o={ios:!1,android:!1},s=n.screen.width,a=n.screen.height,l=i.match(/(Android);?[\s\/]+([\d.]+)?/);let c=i.match(/(iPad).*OS\s([\d_]+)/);const d=i.match(/(iPod)(.*OS\s([\d_]+))?/),u=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),b=r==="Win32";let g=r==="MacIntel";const m=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&g&&t.touch&&m.indexOf(`${s}x${a}`)>=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),g=!1),l&&!b&&(o.os="android",o.android=!0),(c||u||d)&&(o.os="ios",o.ios=!0),o}function wx(e={}){return Do||(Do=yx(e)),Do}let Lo;function Sx(){const e=pt();let t=!1;function n(){const r=e.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}if(n()){const r=String(e.navigator.userAgent);if(r.includes("Version/")){const[i,o]=r.split("Version/")[1].split(" ")[0].split(".").map(s=>Number(s));t=i<16||i===16&&o<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function xx(){return Lo||(Lo=Sx()),Lo}function Cx({swiper:e,on:t,emit:n}){const r=pt();let i=null,o=null;const s=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},a=()=>{!e||e.destroyed||!e.initialized||(i=new ResizeObserver(d=>{o=r.requestAnimationFrame(()=>{const{width:u,height:b}=e;let g=u,m=b;d.forEach(({contentBoxSize:f,contentRect:y,target:p})=>{p&&p!==e.el||(g=y?y.width:(f[0]||f).inlineSize,m=y?y.height:(f[0]||f).blockSize)}),(g!==u||m!==b)&&s()})}),i.observe(e.el))},l=()=>{o&&r.cancelAnimationFrame(o),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null)},c=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){a();return}r.addEventListener("resize",s),r.addEventListener("orientationchange",c)}),t("destroy",()=>{l(),r.removeEventListener("resize",s),r.removeEventListener("orientationchange",c)})}function Ex({swiper:e,extendParams:t,on:n,emit:r}){const i=[],o=pt(),s=(c,d={})=>{const u=o.MutationObserver||o.WebkitMutationObserver,b=new u(g=>{if(e.__preventObserver__)return;if(g.length===1){r("observerUpdate",g[0]);return}const m=function(){r("observerUpdate",g[0])};o.requestAnimationFrame?o.requestAnimationFrame(m):o.setTimeout(m,0)});b.observe(c,{attributes:typeof d.attributes>"u"?!0:d.attributes,childList:typeof d.childList>"u"?!0:d.childList,characterData:typeof d.characterData>"u"?!0:d.characterData}),i.push(b)},a=()=>{if(e.params.observer){if(e.params.observeParents){const c=$f(e.el);for(let d=0;d<c.length;d+=1)s(c[d])}s(e.el,{childList:e.params.observeSlideChildren}),s(e.wrapperEl,{attributes:!1})}},l=()=>{i.forEach(c=>{c.disconnect()}),i.splice(0,i.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",a),n("destroy",l)}const kx={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const i=n?"unshift":"push";return e.split(" ").forEach(o=>{r.eventsListeners[o]||(r.eventsListeners[o]=[]),r.eventsListeners[o][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function i(...o){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,o)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((i,o)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[r].splice(o,1)})}),n},emit(...e){const 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(s=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(a=>{a.apply(i,[s,...r])}),t.eventsListeners&&t.eventsListeners[s]&&t.eventsListeners[s].forEach(a=>{a.apply(i,r)})}),t}};function Tx(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(pn(r,"padding-left")||0,10)-parseInt(pn(r,"padding-right")||0,10),n=n-parseInt(pn(r,"padding-top")||0,10)-parseInt(pn(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 Ax(){const e=this;function t(R){return e.isHorizontal()?R:{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"}[R]}function n(R,I){return parseFloat(R.getPropertyValue(t(I))||0)}const r=e.params,{wrapperEl:i,slidesEl:o,size:s,rtlTranslate:a,wrongRTL:l}=e,c=e.virtual&&r.virtual.enabled,d=c?e.virtual.slides.length:e.slides.length,u=It(o,`.${e.params.slideClass}, swiper-slide`),b=c?e.virtual.slides.length:u.length;let g=[];const m=[],f=[];let y=r.slidesOffsetBefore;typeof y=="function"&&(y=r.slidesOffsetBefore.call(e));let p=r.slidesOffsetAfter;typeof p=="function"&&(p=r.slidesOffsetAfter.call(e));const h=e.snapGrid.length,w=e.slidesGrid.length;let S=r.spaceBetween,x=-y,A=0,T=0;if(typeof s>"u")return;typeof S=="string"&&S.indexOf("%")>=0?S=parseFloat(S.replace("%",""))/100*s:typeof S=="string"&&(S=parseFloat(S)),e.virtualSize=-S,u.forEach(R=>{a?R.style.marginLeft="":R.style.marginRight="",R.style.marginBottom="",R.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(ai(i,"--swiper-centered-offset-before",""),ai(i,"--swiper-centered-offset-after",""));const k=r.grid&&r.grid.rows>1&&e.grid;k&&e.grid.initSlides(b);let _;const z=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(R=>typeof r.breakpoints[R].slidesPerView<"u").length>0;for(let R=0;R<b;R+=1){_=0;let I;if(u[R]&&(I=u[R]),k&&e.grid.updateSlide(R,I,b,t),!(u[R]&&pn(I,"display")==="none")){if(r.slidesPerView==="auto"){z&&(u[R].style[t("width")]="");const L=getComputedStyle(I),N=I.style.transform,j=I.style.webkitTransform;if(N&&(I.style.transform="none"),j&&(I.style.webkitTransform="none"),r.roundLengths)_=e.isHorizontal()?hs(I,"width"):hs(I,"height");else{const B=n(L,"width"),V=n(L,"padding-left"),G=n(L,"padding-right"),J=n(L,"margin-left"),ge=n(L,"margin-right"),re=L.getPropertyValue("box-sizing");if(re&&re==="border-box")_=B+J+ge;else{const{clientWidth:Re,offsetWidth:be}=I;_=B+V+G+J+ge+(be-Re)}}N&&(I.style.transform=N),j&&(I.style.webkitTransform=j),r.roundLengths&&(_=Math.floor(_))}else _=(s-(r.slidesPerView-1)*S)/r.slidesPerView,r.roundLengths&&(_=Math.floor(_)),u[R]&&(u[R].style[t("width")]=`${_}px`);u[R]&&(u[R].swiperSlideSize=_),f.push(_),r.centeredSlides?(x=x+_/2+A/2+S,A===0&&R!==0&&(x=x-s/2-S),R===0&&(x=x-s/2-S),Math.abs(x)<1/1e3&&(x=0),r.roundLengths&&(x=Math.floor(x)),T%r.slidesPerGroup===0&&g.push(x),m.push(x)):(r.roundLengths&&(x=Math.floor(x)),(T-Math.min(e.params.slidesPerGroupSkip,T))%e.params.slidesPerGroup===0&&g.push(x),m.push(x),x=x+_+S),e.virtualSize+=_+S,A=_,T+=1}}if(e.virtualSize=Math.max(e.virtualSize,s)+p,a&&l&&(r.effect==="slide"||r.effect==="coverflow")&&(i.style.width=`${e.virtualSize+S}px`),r.setWrapperSize&&(i.style[t("width")]=`${e.virtualSize+S}px`),k&&e.grid.updateWrapperSize(_,g,t),!r.centeredSlides){const R=[];for(let I=0;I<g.length;I+=1){let L=g[I];r.roundLengths&&(L=Math.floor(L)),g[I]<=e.virtualSize-s&&R.push(L)}g=R,Math.floor(e.virtualSize-s)-Math.floor(g[g.length-1])>1&&g.push(e.virtualSize-s)}if(c&&r.loop){const R=f[0]+S;if(r.slidesPerGroup>1){const I=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),L=R*r.slidesPerGroup;for(let N=0;N<I;N+=1)g.push(g[g.length-1]+L)}for(let I=0;I<e.virtual.slidesBefore+e.virtual.slidesAfter;I+=1)r.slidesPerGroup===1&&g.push(g[g.length-1]+R),m.push(m[m.length-1]+R),e.virtualSize+=R}if(g.length===0&&(g=[0]),S!==0){const R=e.isHorizontal()&&a?"marginLeft":t("marginRight");u.filter((I,L)=>!r.cssMode||r.loop?!0:L!==u.length-1).forEach(I=>{I.style[R]=`${S}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let R=0;f.forEach(L=>{R+=L+(S||0)}),R-=S;const I=R-s;g=g.map(L=>L<=0?-y:L>I?I+p:L)}if(r.centerInsufficientSlides){let R=0;if(f.forEach(I=>{R+=I+(S||0)}),R-=S,R<s){const I=(s-R)/2;g.forEach((L,N)=>{g[N]=L-I}),m.forEach((L,N)=>{m[N]=L+I})}}if(Object.assign(e,{slides:u,snapGrid:g,slidesGrid:m,slidesSizesGrid:f}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){ai(i,"--swiper-centered-offset-before",`${-g[0]}px`),ai(i,"--swiper-centered-offset-after",`${e.size/2-f[f.length-1]/2}px`);const R=-e.snapGrid[0],I=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(L=>L+R),e.slidesGrid=e.slidesGrid.map(L=>L+I)}if(b!==d&&e.emit("slidesLengthChange"),g.length!==h&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),m.length!==w&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),!c&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const R=`${r.containerModifierClass}backface-hidden`,I=e.el.classList.contains(R);b<=r.maxBackfaceHiddenSlides?I||e.el.classList.add(R):I&&e.el.classList.remove(R)}}function Px(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i=0,o;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const s=a=>r?t.slides[t.getSlideIndexByData(a)]:t.slides[a];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(a=>{n.push(a)});else for(o=0;o<Math.ceil(t.params.slidesPerView);o+=1){const a=t.activeIndex+o;if(a>t.slides.length&&!r)break;n.push(s(a))}else n.push(s(t.activeIndex));for(o=0;o<n.length;o+=1)if(typeof n[o]<"u"){const a=n[o].offsetHeight;i=a>i?a:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function Ix(){const 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 Ox(e=this&&this.translate||0){const t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:o}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let s=-e;i&&(s=e),r.forEach(l=>{l.classList.remove(n.slideVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let a=n.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*t.size:typeof a=="string"&&(a=parseFloat(a));for(let l=0;l<r.length;l+=1){const c=r[l];let d=c.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(d-=r[0].swiperSlideOffset);const u=(s+(n.centeredSlides?t.minTranslate():0)-d)/(c.swiperSlideSize+a),b=(s-o[0]+(n.centeredSlides?t.minTranslate():0)-d)/(c.swiperSlideSize+a),g=-(s-d),m=g+t.slidesSizesGrid[l];(g>=0&&g<t.size-1||m>1&&m<=t.size||g<=0&&m>=t.size)&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(l),r[l].classList.add(n.slideVisibleClass)),c.progress=i?-u:u,c.originalProgress=i?-b:b}}function Rx(e){const t=this;if(typeof e>"u"){const d=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*d||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:o,isEnd:s,progressLoop:a}=t;const l=o,c=s;if(r===0)i=0,o=!0,s=!0;else{i=(e-t.minTranslate())/r;const d=Math.abs(e-t.minTranslate())<1,u=Math.abs(e-t.maxTranslate())<1;o=d||i<=0,s=u||i>=1,d&&(i=0),u&&(i=1)}if(n.loop){const d=t.getSlideIndexByData(0),u=t.getSlideIndexByData(t.slides.length-1),b=t.slidesGrid[d],g=t.slidesGrid[u],m=t.slidesGrid[t.slidesGrid.length-1],f=Math.abs(e);f>=b?a=(f-b)/m:a=(f+m-g)/m,a>1&&(a-=1)}Object.assign(t,{progress:i,progressLoop:a,isBeginning:o,isEnd:s}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),s&&!c&&t.emit("reachEnd toEdge"),(l&&!o||c&&!s)&&t.emit("fromEdge"),t.emit("progress",i)}function _x(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,o=e.virtual&&n.virtual.enabled,s=l=>It(r,`.${n.slideClass}${l}, swiper-slide${l}`)[0];t.forEach(l=>{l.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let a;if(o)if(n.loop){let l=i-e.virtual.slidesBefore;l<0&&(l=e.virtual.slides.length+l),l>=e.virtual.slides.length&&(l-=e.virtual.slides.length),a=s(`[data-swiper-slide-index="${l}"]`)}else a=s(`[data-swiper-slide-index="${i}"]`);else a=t[i];if(a){a.classList.add(n.slideActiveClass);let l=vx(a,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!l&&(l=t[0]),l&&l.classList.add(n.slideNextClass);let c=gx(a,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!c===0&&(c=t[t.length-1]),c&&c.classList.add(n.slidePrevClass)}e.emitSlidesClasses()}const hi=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){const i=r.querySelector(`.${e.params.lazyPreloaderClass}`);i&&i.remove()}},No=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},gs=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const s=i,a=[s-t];a.push(...Array.from({length:t}).map((l,c)=>s+r+c)),e.slides.forEach((l,c)=>{a.includes(l.column)&&No(e,c)});return}const o=i+r-1;if(e.params.rewind||e.params.loop)for(let s=i-t;s<=o+t;s+=1){const a=(s%n+n)%n;(a<i||a>o)&&No(e,a)}else for(let s=Math.max(i-t,0);s<=Math.min(o+t,n-1);s+=1)s!==i&&(s>o||s<i)&&No(e,s)};function Mx(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let i;for(let o=0;o<t.length;o+=1)typeof t[o+1]<"u"?r>=t[o]&&r<t[o+1]-(t[o+1]-t[o])/2?i=o:r>=t[o]&&r<t[o+1]&&(i=o+1):r>=t[o]&&(i=o);return n.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function Dx(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:o,realIndex:s,snapIndex:a}=t;let l=e,c;const d=b=>{let g=b-t.virtual.slidesBefore;return g<0&&(g=t.virtual.slides.length+g),g>=t.virtual.slides.length&&(g-=t.virtual.slides.length),g};if(typeof l>"u"&&(l=Mx(t)),r.indexOf(n)>=0)c=r.indexOf(n);else{const b=Math.min(i.slidesPerGroupSkip,l);c=b+Math.floor((l-b)/i.slidesPerGroup)}if(c>=r.length&&(c=r.length-1),l===o){c!==a&&(t.snapIndex=c,t.emit("snapIndexChange")),t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=d(l));return}let u;t.virtual&&i.virtual.enabled&&i.loop?u=d(l):t.slides[l]?u=parseInt(t.slides[l].getAttribute("data-swiper-slide-index")||l,10):u=l,Object.assign(t,{previousSnapIndex:a,snapIndex:c,previousRealIndex:s,realIndex:u,previousIndex:o,activeIndex:l}),t.initialized&&gs(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),s!==u&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function Lx(e){const t=this,n=t.params,r=e.closest(`.${n.slideClass}, swiper-slide`);let i=!1,o;if(r){for(let s=0;s<t.slides.length;s+=1)if(t.slides[s]===r){i=!0,o=s;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=o;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}n.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}const Nx={updateSize:Tx,updateSlides:Ax,updateAutoHeight:Px,updateSlidesOffset:Ix,updateSlidesProgress:Ox,updateProgress:Rx,updateSlidesClasses:_x,updateActiveIndex:Dx,updateClickedSlide:Lx};function Fx(e=this.isHorizontal()?"x":"y"){const t=this,{params:n,rtlTranslate:r,translate:i,wrapperEl:o}=t;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;let s=mx(o,e);return s+=t.cssOverflowAdjustment(),r&&(s=-s),s||0}function $x(e,t){const n=this,{rtlTranslate:r,params:i,wrapperEl:o,progress:s}=n;let a=0,l=0;const c=0;n.isHorizontal()?a=r?-e:e:l=e,i.roundLengths&&(a=Math.floor(a),l=Math.floor(l)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?a:l,i.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-a:-l:i.virtualTranslate||(n.isHorizontal()?a-=n.cssOverflowAdjustment():l-=n.cssOverflowAdjustment(),o.style.transform=`translate3d(${a}px, ${l}px, ${c}px)`);let d;const u=n.maxTranslate()-n.minTranslate();u===0?d=0:d=(e-n.minTranslate())/u,d!==s&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function zx(){return-this.snapGrid[0]}function Bx(){return-this.snapGrid[this.snapGrid.length-1]}function jx(e=0,t=this.params.speed,n=!0,r=!0,i){const o=this,{params:s,wrapperEl:a}=o;if(o.animating&&s.preventInteractionOnTransition)return!1;const l=o.minTranslate(),c=o.maxTranslate();let d;if(r&&e>l?d=l:r&&e<c?d=c:d=e,o.updateProgress(d),s.cssMode){const u=o.isHorizontal();if(t===0)a[u?"scrollLeft":"scrollTop"]=-d;else{if(!o.support.smoothScroll)return Nf({swiper:o,targetPosition:-d,side:u?"left":"top"}),!0;a.scrollTo({[u?"left":"top"]:-d,behavior:"smooth"})}return!0}return t===0?(o.setTransition(0),o.setTranslate(d),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionEnd"))):(o.setTransition(t),o.setTranslate(d),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(b){!o||o.destroyed||b.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,n&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}const Vx={getTranslate:Fx,setTranslate:$x,minTranslate:zx,maxTranslate:Bx,translateTo:jx};function Hx(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`),n.emit("setTransition",e,t)}function Bf({swiper:e,runCallbacks:t,direction:n,step:r}){const{activeIndex:i,previousIndex:o}=e;let s=n;if(s||(i>o?s="next":i<o?s="prev":s="reset"),e.emit(`transition${r}`),t&&i!==o){if(s==="reset"){e.emit(`slideResetTransition${r}`);return}e.emit(`slideChangeTransition${r}`),s==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function Wx(e=!0,t){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),Bf({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function Gx(e=!0,t){const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),Bf({swiper:n,runCallbacks:e,direction:t,step:"End"}))}const Ux={setTransition:Hx,transitionStart:Wx,transitionEnd:Gx};function Yx(e=0,t=this.params.speed,n=!0,r,i){typeof e=="string"&&(e=parseInt(e,10));const o=this;let s=e;s<0&&(s=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:b,wrapperEl:g,enabled:m}=o;if(o.animating&&a.preventInteractionOnTransition||!m&&!r&&!i)return!1;const f=Math.min(o.params.slidesPerGroupSkip,s);let y=f+Math.floor((s-f)/o.params.slidesPerGroup);y>=l.length&&(y=l.length-1);const p=-l[y];if(a.normalizeSlideIndex)for(let w=0;w<c.length;w+=1){const S=-Math.floor(p*100),x=Math.floor(c[w]*100),A=Math.floor(c[w+1]*100);typeof c[w+1]<"u"?S>=x&&S<A-(A-x)/2?s=w:S>=x&&S<A&&(s=w+1):S>=x&&(s=w)}if(o.initialized&&s!==u&&(!o.allowSlideNext&&(b?p>o.translate&&p>o.minTranslate():p<o.translate&&p<o.minTranslate())||!o.allowSlidePrev&&p>o.translate&&p>o.maxTranslate()&&(u||0)!==s))return!1;s!==(d||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(p);let h;if(s>u?h="next":s<u?h="prev":h="reset",b&&-p===o.translate||!b&&p===o.translate)return o.updateActiveIndex(s),a.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),a.effect!=="slide"&&o.setTranslate(p),h!=="reset"&&(o.transitionStart(n,h),o.transitionEnd(n,h)),!1;if(a.cssMode){const w=o.isHorizontal(),S=b?p:-p;if(t===0){const x=o.virtual&&o.params.virtual.enabled;x&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),x&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{g[w?"scrollLeft":"scrollTop"]=S})):g[w?"scrollLeft":"scrollTop"]=S,x&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1})}else{if(!o.support.smoothScroll)return Nf({swiper:o,targetPosition:S,side:w?"left":"top"}),!0;g.scrollTo({[w?"left":"top"]:S,behavior:"smooth"})}return!0}return o.setTransition(t),o.setTranslate(p),o.updateActiveIndex(s),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,h),t===0?o.transitionEnd(n,h):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(S){!o||o.destroyed||S.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,h))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0}function qx(e=0,t=this.params.speed,n=!0,r){typeof e=="string"&&(e=parseInt(e,10));const i=this;let o=e;return i.params.loop&&(i.virtual&&i.params.virtual.enabled?o=o+i.virtual.slidesBefore:o=i.getSlideIndexByData(o)),i.slideTo(o,t,n,r)}function Kx(e=this.params.speed,t=!0,n){const r=this,{enabled:i,params:o,animating:s}=r;if(!i)return r;let a=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(a=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<o.slidesPerGroupSkip?1:a,c=r.virtual&&o.virtual.enabled;if(o.loop){if(s&&!c&&o.loopPreventsSliding)return!1;r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft}return o.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)}function Xx(e=this.params.speed,t=!0,n){const r=this,{params:i,snapGrid:o,slidesGrid:s,rtlTranslate:a,enabled:l,animating:c}=r;if(!l)return r;const d=r.virtual&&i.virtual.enabled;if(i.loop){if(c&&!d&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const u=a?r.translate:-r.translate;function b(p){return p<0?-Math.floor(Math.abs(p)):Math.floor(p)}const g=b(u),m=o.map(p=>b(p));let f=o[m.indexOf(g)-1];if(typeof f>"u"&&i.cssMode){let p;o.forEach((h,w)=>{g>=h&&(p=w)}),typeof p<"u"&&(f=o[p>0?p-1:p])}let y=0;if(typeof f<"u"&&(y=s.indexOf(f),y<0&&(y=r.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(y=y-r.slidesPerViewDynamic("previous",!0)+1,y=Math.max(y,0))),i.rewind&&r.isBeginning){const p=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(p,e,t,n)}return r.slideTo(y,e,t,n)}function Zx(e=this.params.speed,t=!0,n){const r=this;return r.slideTo(r.activeIndex,e,t,n)}function Jx(e=this.params.speed,t=!0,n,r=.5){const i=this;let o=i.activeIndex;const s=Math.min(i.params.slidesPerGroupSkip,o),a=s+Math.floor((o-s)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[a]){const c=i.snapGrid[a],d=i.snapGrid[a+1];l-c>(d-c)*r&&(o+=i.params.slidesPerGroup)}else{const c=i.snapGrid[a-1],d=i.snapGrid[a];l-c<=(d-c)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)}function Qx(){const e=this,{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let i=e.clickedIndex,o;const s=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;o=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(It(n,`${s}[data-swiper-slide-index="${o}"]`)[0]),_r(()=>{e.slideTo(i)})):e.slideTo(i):i>e.slides.length-r?(e.loopFix(),i=e.getSlideIndex(It(n,`${s}[data-swiper-slide-index="${o}"]`)[0]),_r(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}const eC={slideTo:Yx,slideToLoop:qx,slideNext:Kx,slidePrev:Xx,slideReset:Zx,slideToClosest:Jx,slideToClickedSlide:Qx};function tC(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;It(r,`.${n.slideClass}, swiper-slide`).forEach((o,s)=>{o.setAttribute("data-swiper-slide-index",s)}),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})}function nC({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:i,byController:o,byMousewheel:s}={}){const a=this;if(!a.params.loop)return;a.emit("beforeLoopFix");const{slides:l,allowSlidePrev:c,allowSlideNext:d,slidesEl:u,params:b}=a;if(a.allowSlidePrev=!0,a.allowSlideNext=!0,a.virtual&&b.virtual.enabled){t&&(!b.centeredSlides&&a.snapIndex===0?a.slideTo(a.virtual.slides.length,0,!1,!0):b.centeredSlides&&a.snapIndex<b.slidesPerView?a.slideTo(a.virtual.slides.length+a.snapIndex,0,!1,!0):a.snapIndex===a.snapGrid.length-1&&a.slideTo(a.virtual.slidesBefore,0,!1,!0)),a.allowSlidePrev=c,a.allowSlideNext=d,a.emit("loopFix");return}const g=b.slidesPerView==="auto"?a.slidesPerViewDynamic():Math.ceil(parseFloat(b.slidesPerView,10));let m=b.loopedSlides||g;m%b.slidesPerGroup!==0&&(m+=b.slidesPerGroup-m%b.slidesPerGroup),a.loopedSlides=m;const f=[],y=[];let p=a.activeIndex;typeof i>"u"?i=a.getSlideIndex(a.slides.filter(A=>A.classList.contains(b.slideActiveClass))[0]):p=i;const h=n==="next"||!n,w=n==="prev"||!n;let S=0,x=0;if(i<m){S=Math.max(m-i,b.slidesPerGroup);for(let A=0;A<m-i;A+=1){const T=A-Math.floor(A/l.length)*l.length;f.push(l.length-T-1)}}else if(i>a.slides.length-m*2){x=Math.max(i-(a.slides.length-m*2),b.slidesPerGroup);for(let A=0;A<x;A+=1){const T=A-Math.floor(A/l.length)*l.length;y.push(T)}}if(w&&f.forEach(A=>{a.slides[A].swiperLoopMoveDOM=!0,u.prepend(a.slides[A]),a.slides[A].swiperLoopMoveDOM=!1}),h&&y.forEach(A=>{a.slides[A].swiperLoopMoveDOM=!0,u.append(a.slides[A]),a.slides[A].swiperLoopMoveDOM=!1}),a.recalcSlides(),b.slidesPerView==="auto"&&a.updateSlides(),b.watchSlidesProgress&&a.updateSlidesOffset(),t){if(f.length>0&&w)if(typeof e>"u"){const A=a.slidesGrid[p],k=a.slidesGrid[p+S]-A;s?a.setTranslate(a.translate-k):(a.slideTo(p+S,0,!1,!0),r&&(a.touches[a.isHorizontal()?"startX":"startY"]+=k))}else r&&a.slideToLoop(e,0,!1,!0);else if(y.length>0&&h)if(typeof e>"u"){const A=a.slidesGrid[p],k=a.slidesGrid[p-x]-A;s?a.setTranslate(a.translate-k):(a.slideTo(p-x,0,!1,!0),r&&(a.touches[a.isHorizontal()?"startX":"startY"]+=k))}else a.slideToLoop(e,0,!1,!0)}if(a.allowSlidePrev=c,a.allowSlideNext=d,a.controller&&a.controller.control&&!o){const A={slideRealIndex:e,slideTo:!1,direction:n,setTranslate:r,activeSlideIndex:i,byController:!0};Array.isArray(a.controller.control)?a.controller.control.forEach(T=>{!T.destroyed&&T.params.loop&&T.loopFix(A)}):a.controller.control instanceof a.constructor&&a.controller.control.params.loop&&a.controller.control.loopFix(A)}a.emit("loopFix")}function rC(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(i=>{const o=typeof i.swiperSlideIndex>"u"?i.getAttribute("data-swiper-slide-index")*1:i.swiperSlideIndex;r[o]=i}),e.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),r.forEach(i=>{n.append(i)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}const iC={loopCreate:tC,loopFix:nC,loopDestroy:rC};function oC(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const 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 sC(){const 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}))}const aC={setGrabCursor:oC,unsetGrabCursor:sC};function lC(e,t=this){function n(r){if(!r||r===Rt()||r===pt())return null;r.assignedSlot&&(r=r.assignedSlot);const i=r.closest(e);return!i&&!r.getRootNode?null:i||n(r.getRootNode().host)}return n(t)}function cC(e){const t=this,n=Rt(),r=pt(),i=t.touchEventsData;i.evCache.push(e);const{params:o,touches:s,enabled:a}=t;if(!a||!o.simulateTouch&&e.pointerType==="mouse"||t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let l=e;l.originalEvent&&(l=l.originalEvent);let c=l.target;if(o.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(c)||"which"in l&&l.which===3||"button"in l&&l.button>0||i.isTouched&&i.isMoved)return;const d=!!o.noSwipingClass&&o.noSwipingClass!=="",u=e.composedPath?e.composedPath():e.path;d&&l.target&&l.target.shadowRoot&&u&&(c=u[0]);const b=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,g=!!(l.target&&l.target.shadowRoot);if(o.noSwiping&&(g?lC(b,c):c.closest(b))){t.allowClick=!0;return}if(o.swipeHandler&&!c.closest(o.swipeHandler))return;s.currentX=l.pageX,s.currentY=l.pageY;const m=s.currentX,f=s.currentY,y=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,p=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(y&&(m<=p||m>=r.innerWidth-p))if(y==="prevent")e.preventDefault();else return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=m,s.startY=f,i.touchStartTime=Kt(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1);let h=!0;c.matches(i.focusableElements)&&(h=!1,c.nodeName==="SELECT"&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==c&&n.activeElement.blur();const w=h&&t.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||w)&&!c.isContentEditable&&l.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",l)}function uC(e){const t=Rt(),n=this,r=n.touchEventsData,{params:i,touches:o,rtlTranslate:s,enabled:a}=n;if(!a||!i.simulateTouch&&e.pointerType==="mouse")return;let l=e;if(l.originalEvent&&(l=l.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l);return}const c=r.evCache.findIndex(A=>A.pointerId===l.pointerId);c>=0&&(r.evCache[c]=l);const d=r.evCache.length>1?r.evCache[0]:l,u=d.pageX,b=d.pageY;if(l.preventedByNestedSwiper){o.startX=u,o.startY=b;return}if(!n.allowTouchMove){l.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(o,{startX:u,startY:b,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:u,currentY:b}),r.touchStartTime=Kt());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(b<o.startY&&n.translate<=n.maxTranslate()||b>o.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(u<o.startX&&n.translate<=n.maxTranslate()||u>o.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&l.target===t.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}if(r.allowTouchCallbacks&&n.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;o.currentX=u,o.currentY=b;const g=o.currentX-o.startX,m=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(g**2+m**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let A;n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?r.isScrolling=!1:g*g+m*m>=25&&(A=Math.atan2(Math.abs(m),Math.abs(g))*180/Math.PI,r.isScrolling=n.isHorizontal()?A>i.touchAngle:90-A>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.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&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let f=n.isHorizontal()?g:m,y=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;i.oneWayMovement&&(f=Math.abs(f)*(s?1:-1),y=Math.abs(y)*(s?1:-1)),o.diff=f,f*=i.touchRatio,s&&(f=-f,y=-y);const p=n.touchesDirection;n.swipeDirection=f>0?"prev":"next",n.touchesDirection=y>0?"prev":"next";const h=n.params.loop&&!i.cssMode;if(!r.isMoved){if(h&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const A=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(A)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let w;r.isMoved&&p!==n.touchesDirection&&h&&Math.abs(f)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),w=!0),n.emit("sliderMove",l),r.isMoved=!0,r.currentTranslate=f+r.startTranslate;let S=!0,x=i.resistanceRatio;if(i.touchReleaseOnEdges&&(x=0),f>0?(h&&!w&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(S=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+f)**x))):f<0&&(h&&!w&&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()&&(S=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-f)**x))),S&&(l.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(f)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.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 dC(e){const t=this,n=t.touchEventsData,r=n.evCache.findIndex(w=>w.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;const{params:i,touches:o,rtlTranslate:s,slidesGrid:a,enabled:l}=t;if(!l||!i.simulateTouch&&e.pointerType==="mouse")return;let c=e;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",c),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);const d=Kt(),u=d-n.touchStartTime;if(t.allowClick){const w=c.path||c.composedPath&&c.composedPath();t.updateClickedSlide(w&&w[0]||c.target),t.emit("tap click",c),u<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",c)}if(n.lastClickTime=Kt(),_r(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||o.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 b;if(i.followFinger?b=s?t.translate:-t.translate:b=-n.currentTranslate,i.cssMode)return;if(i.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:b});return}let g=0,m=t.slidesSizesGrid[0];for(let w=0;w<a.length;w+=w<i.slidesPerGroupSkip?1:i.slidesPerGroup){const S=w<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;typeof a[w+S]<"u"?b>=a[w]&&b<a[w+S]&&(g=w,m=a[w+S]-a[w]):b>=a[w]&&(g=w,m=a[a.length-1]-a[a.length-2])}let f=null,y=null;i.rewind&&(t.isBeginning?y=i.virtual&&i.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(f=0));const p=(b-a[g])/m,h=g<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(u>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(p>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?f:g+h):t.slideTo(g)),t.swipeDirection==="prev"&&(p>1-i.longSwipesRatio?t.slideTo(g+h):y!==null&&p<0&&Math.abs(p)>i.longSwipesRatio?t.slideTo(y):t.slideTo(g))}else{if(!i.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(c.target===t.navigation.nextEl||c.target===t.navigation.prevEl)?c.target===t.navigation.nextEl?t.slideTo(g+h):t.slideTo(g):(t.swipeDirection==="next"&&t.slideTo(f!==null?f:g+h),t.swipeDirection==="prev"&&t.slideTo(y!==null?y:g))}}function rc(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:o}=e,s=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const a=s&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!a?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!s?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&&o!==e.snapGrid&&e.checkOverflow()}function fC(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function pC(){const 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;const o=e.maxTranslate()-e.minTranslate();o===0?i=0:i=(e.translate-e.minTranslate())/o,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function mC(e){const t=this;hi(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}let ic=!1;function hC(){}const jf=(e,t)=>{const n=Rt(),{params:r,el:i,wrapperEl:o,device:s}=e,a=!!r.nested,l=t==="on"?"addEventListener":"removeEventListener",c=t;i[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:a}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[l]("click",e.onClick,!0),r.cssMode&&o[l]("scroll",e.onScroll),r.updateOnWindowResize?e[c](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",rc,!0):e[c]("observerUpdate",rc,!0),i[l]("load",e.onLoad,{capture:!0})};function gC(){const e=this,t=Rt(),{params:n}=e;e.onTouchStart=cC.bind(e),e.onTouchMove=uC.bind(e),e.onTouchEnd=dC.bind(e),n.cssMode&&(e.onScroll=pC.bind(e)),e.onClick=fC.bind(e),e.onLoad=mC.bind(e),ic||(t.addEventListener("touchstart",hC),ic=!0),jf(e,"on")}function vC(){jf(this,"off")}const bC={attachEvents:gC,detachEvents:vC},oc=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function yC(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,o=r.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const s=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!s||e.currentBreakpoint===s)return;const l=(s in o?o[s]:void 0)||e.originalParams,c=oc(e,r),d=oc(e,l),u=r.enabled;c&&!d?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&d&&(i.classList.add(`${r.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column")&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(f=>{if(typeof l[f]>"u")return;const y=r[f]&&r[f].enabled,p=l[f]&&l[f].enabled;y&&!p&&e[f].disable(),!y&&p&&e[f].enable()});const b=l.direction&&l.direction!==r.direction,g=r.loop&&(l.slidesPerView!==r.slidesPerView||b);b&&n&&e.changeDirection(),mt(e.params,l);const m=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),u&&!m?e.disable():!u&&m&&e.enable(),e.currentBreakpoint=s,e.emit("_beforeBreakpoint",l),g&&n&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",l)}function wC(e,t="window",n){if(!e||t==="container"&&!n)return;let r=!1;const i=pt(),o=t==="window"?i.innerHeight:n.clientHeight,s=Object.keys(e).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const l=parseFloat(a.substr(1));return{value:o*l,point:a}}return{value:a,point:a}});s.sort((a,l)=>parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a<s.length;a+=1){const{point:l,value:c}=s[a];t==="window"?i.matchMedia(`(min-width: ${c}px)`).matches&&(r=l):c<=n.clientWidth&&(r=l)}return r||"max"}const SC={setBreakpoint:yC,getBreakpoint:wC};function xC(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(i=>{r[i]&&n.push(t+i)}):typeof r=="string"&&n.push(t+r)}),n}function CC(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:o}=e,s=xC(["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:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...s),i.classList.add(...t),e.emitContainerClasses()}function EC(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}const kC={addClasses:CC,removeClasses:EC};function TC(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const i=e.slides.length-1,o=e.slidesGrid[i]+e.slidesSizesGrid[i]+r*2;e.isLocked=e.size>o}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")}const AC={checkOverflow:TC},sc={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 PC(e,t){return function(r={}){const i=Object.keys(r)[0],o=r[i];if(typeof o!="object"||o===null){mt(t,r);return}if(["navigation","pagination","scrollbar"].indexOf(i)>=0&&e[i]===!0&&(e[i]={auto:!0}),!(i in e&&"enabled"in o)){mt(t,r);return}e[i]===!0&&(e[i]={enabled:!0}),typeof e[i]=="object"&&!("enabled"in e[i])&&(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),mt(t,r)}}const Fo={eventsEmitter:kx,update:Nx,translate:Vx,transition:Ux,slide:eC,loop:iC,grabCursor:aC,events:bC,breakpoints:SC,checkOverflow:AC,classes:kC},$o={};class At{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={}),r=mt({},r),n&&!r.el&&(r.el=n);const i=Rt();if(r.el&&typeof r.el=="string"&&i.querySelectorAll(r.el).length>1){const l=[];return i.querySelectorAll(r.el).forEach(c=>{const d=mt({},r,{el:c});l.push(new At(d))}),l}const o=this;o.__swiper__=!0,o.support=zf(),o.device=wx({userAgent:r.userAgent}),o.browser=xx(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],r.modules&&Array.isArray(r.modules)&&o.modules.push(...r.modules);const s={};o.modules.forEach(l=>{l({params:r,swiper:o,extendParams:PC(r,s),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const a=mt({},sc,s);return o.params=mt({},a,$o,r),o.originalParams=mt({},o.params),o.passedParams=mt({},r),o.params&&o.params.on&&Object.keys(o.params.on).forEach(l=>{o.on(l,o.params.on[l])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return o.params.direction==="horizontal"},isVertical(){return o.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:o.params.allowSlideNext,allowSlidePrev:o.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:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getSlideIndex(t){const{slidesEl:n,params:r}=this,i=It(n,`.${r.slideClass}, swiper-slide`),o=Li(i[0]);return Li(t)-o}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=It(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const i=r.minTranslate(),s=(r.maxTranslate()-i)*t+i;r.translateTo(s,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const i=t.getSlideClasses(r);n.push({slideEl:r,classNames:i}),t.emit("_slideClass",r,i)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t="current",n=!1){const r=this,{params:i,slides:o,slidesGrid:s,slidesSizesGrid:a,size:l,activeIndex:c}=r;let d=1;if(i.centeredSlides){let u=o[c]?o[c].swiperSlideSize:0,b;for(let g=c+1;g<o.length;g+=1)o[g]&&!b&&(u+=o[g].swiperSlideSize,d+=1,u>l&&(b=!0));for(let g=c-1;g>=0;g-=1)o[g]&&!b&&(u+=o[g].swiperSlideSize,d+=1,u>l&&(b=!0))}else if(t==="current")for(let u=c+1;u<o.length;u+=1)(n?s[u]+a[u]-s[c]<l:s[u]-s[c]<l)&&(d+=1);else for(let u=c-1;u>=0;u-=1)s[c]-s[u]<l&&(d+=1);return d}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete&&hi(t,s)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function i(){const s=t.rtlTranslate?t.translate*-1:t.translate,a=Math.min(Math.max(s,t.maxTranslate()),t.minTranslate());t.setTranslate(a),t.updateActiveIndex(),t.updateSlidesClasses()}let o;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)i(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const s=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;o=t.slideTo(s.length-1,0,!1,!0)}else o=t.slideTo(t.activeIndex,0,!1,!0);o||i()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const r=this,i=r.params.direction;return t||(t=i==="horizontal"?"vertical":"horizontal"),t===i||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${i}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(o=>{t==="vertical"?o.style.width="":o.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.shadowEl&&(n.isElement=!0);const i=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(i()):It(r,i())[0];return!s&&n.params.createElements&&(s=Ff("div",n.params.wrapperClass),r.append(s),It(r,`.${n.params.slideClass}`).forEach(a=>{s.append(a)})),Object.assign(n,{el:r,wrapperEl:s,slidesEl:n.isElement?r:s,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||pn(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||pn(r,"direction")==="rtl"),wrongRTL:pn(s,"display")==="-webkit-box"}),!0}init(t){const n=this;return n.initialized||n.mount(t)===!1||(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents(),[...n.el.querySelectorAll('[loading="lazy"]')].forEach(i=>{i.complete?hi(n,i):i.addEventListener("load",o=>{hi(n,o.target)})}),gs(n),n.initialized=!0,gs(n),n.emit("init"),n.emit("afterInit")),n}destroy(t=!0,n=!0){const r=this,{params:i,el:o,wrapperEl:s,slides:a}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),o.removeAttribute("style"),s.removeAttribute("style"),a&&a.length&&a.forEach(l=>{l.classList.remove(i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(l=>{r.off(l)}),t!==!1&&(r.el.swiper=null,fx(r)),r.destroyed=!0),null}static extendDefaults(t){mt($o,t)}static get extendedDefaults(){return $o}static get defaults(){return sc}static installModule(t){At.prototype.__modules__||(At.prototype.__modules__=[]);const n=At.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>At.installModule(n)),At):(At.installModule(t),At)}}Object.keys(Fo).forEach(e=>{Object.keys(Fo[e]).forEach(t=>{At.prototype[t]=Fo[e][t]})});At.use([Cx,Ex]);function qC({swiper:e,extendParams:t,on:n,emit:r}){const i=pt();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 o,s=Kt(),a;const l=[];function c(h){let A=0,T=0,k=0,_=0;return"detail"in h&&(T=h.detail),"wheelDelta"in h&&(T=-h.wheelDelta/120),"wheelDeltaY"in h&&(T=-h.wheelDeltaY/120),"wheelDeltaX"in h&&(A=-h.wheelDeltaX/120),"axis"in h&&h.axis===h.HORIZONTAL_AXIS&&(A=T,T=0),k=A*10,_=T*10,"deltaY"in h&&(_=h.deltaY),"deltaX"in h&&(k=h.deltaX),h.shiftKey&&!k&&(k=_,_=0),(k||_)&&h.deltaMode&&(h.deltaMode===1?(k*=40,_*=40):(k*=800,_*=800)),k&&!A&&(A=k<1?-1:1),_&&!T&&(T=_<1?-1:1),{spinX:A,spinY:T,pixelX:k,pixelY:_}}function d(){e.enabled&&(e.mouseEntered=!0)}function u(){e.enabled&&(e.mouseEntered=!1)}function b(h){return e.params.mousewheel.thresholdDelta&&h.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&Kt()-s<e.params.mousewheel.thresholdTime?!1:h.delta>=6&&Kt()-s<60?!0:(h.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),r("scroll",h.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),r("scroll",h.raw)),s=new i.Date().getTime(),!1)}function g(h){const w=e.params.mousewheel;if(h.direction<0){if(e.isEnd&&!e.params.loop&&w.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&w.releaseOnEdges)return!0;return!1}function m(h){let w=h,S=!0;if(!e.enabled||h.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const x=e.params.mousewheel;e.params.cssMode&&w.preventDefault();let A=e.el;e.params.mousewheel.eventsTarget!=="container"&&(A=document.querySelector(e.params.mousewheel.eventsTarget));const T=A&&A.contains(w.target);if(!e.mouseEntered&&!T&&!x.releaseOnEdges)return!0;w.originalEvent&&(w=w.originalEvent);let k=0;const _=e.rtlTranslate?-1:1,z=c(w);if(x.forceToAxis)if(e.isHorizontal())if(Math.abs(z.pixelX)>Math.abs(z.pixelY))k=-z.pixelX*_;else return!0;else if(Math.abs(z.pixelY)>Math.abs(z.pixelX))k=-z.pixelY;else return!0;else k=Math.abs(z.pixelX)>Math.abs(z.pixelY)?-z.pixelX*_:-z.pixelY;if(k===0)return!0;x.invert&&(k=-k);let R=e.getTranslate()+k*x.sensitivity;if(R>=e.minTranslate()&&(R=e.minTranslate()),R<=e.maxTranslate()&&(R=e.maxTranslate()),S=e.params.loop?!0:!(R===e.minTranslate()||R===e.maxTranslate()),S&&e.params.nested&&w.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const I={time:Kt(),delta:Math.abs(k),direction:Math.sign(k),raw:h};l.length>=2&&l.shift();const L=l.length?l[l.length-1]:void 0;if(l.push(I),L?(I.direction!==L.direction||I.delta>L.delta||I.time>L.time+150)&&b(I):b(I),g(I))return!0}else{const I={time:Kt(),delta:Math.abs(k),direction:Math.sign(k)},L=a&&I.time<a.time+500&&I.delta<=a.delta&&I.direction===a.direction;if(!L){a=void 0;let N=e.getTranslate()+k*x.sensitivity;const j=e.isBeginning,B=e.isEnd;if(N>=e.minTranslate()&&(N=e.minTranslate()),N<=e.maxTranslate()&&(N=e.maxTranslate()),e.setTransition(0),e.setTranslate(N),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!j&&e.isBeginning||!B&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:I.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(o),o=void 0,l.length>=15&&l.shift();const V=l.length?l[l.length-1]:void 0,G=l[0];if(l.push(I),V&&(I.delta>V.delta||I.direction!==V.direction))l.splice(0);else if(l.length>=15&&I.time-G.time<500&&G.delta-I.delta>=1&&I.delta<=6){const J=k>0?.8:.2;a=I,l.splice(0),o=_r(()=>{e.slideToClosest(e.params.speed,!0,void 0,J)},0)}o||(o=_r(()=>{a=I,l.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(L||r("scroll",w),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),N===e.minTranslate()||N===e.maxTranslate())return!0}}return w.preventDefault?w.preventDefault():w.returnValue=!1,!1}function f(h){let w=e.el;e.params.mousewheel.eventsTarget!=="container"&&(w=document.querySelector(e.params.mousewheel.eventsTarget)),w[h]("mouseenter",d),w[h]("mouseleave",u),w[h]("wheel",m)}function y(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",m),!0):e.mousewheel.enabled?!1:(f("addEventListener"),e.mousewheel.enabled=!0,!0)}function p(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,m),!0):e.mousewheel.enabled?(f("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&p(),e.params.mousewheel.enabled&&y()}),n("destroy",()=>{e.params.cssMode&&y(),e.mousewheel.enabled&&p()}),Object.assign(e.mousewheel,{enable:y,disable:p})}function Vf(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&n.auto===!0){let o=It(e.el,`.${r[i]}`)[0];o||(o=Ff("div",r[i]),o.className=r[i],e.el.append(o)),n[i]=o,t[i]=o}}),n}function KC({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};const i=m=>(Array.isArray(m)||(m=[m].filter(f=>!!f)),m);function o(m){let f;return m&&typeof m=="string"&&e.isElement&&(f=e.el.shadowRoot.querySelector(m),f)?f:(m&&(typeof m=="string"&&(f=[...document.querySelectorAll(m)]),e.params.uniqueNavElements&&typeof m=="string"&&f.length>1&&e.el.querySelectorAll(m).length===1&&(f=e.el.querySelector(m))),m&&!f?m:f)}function s(m,f){const y=e.params.navigation;m=i(m),m.forEach(p=>{p&&(p.classList[f?"add":"remove"](...y.disabledClass.split(" ")),p.tagName==="BUTTON"&&(p.disabled=f),e.params.watchOverflow&&e.enabled&&p.classList[e.isLocked?"add":"remove"](y.lockClass))})}function a(){const{nextEl:m,prevEl:f}=e.navigation;if(e.params.loop){s(f,!1),s(m,!1);return}s(f,e.isBeginning&&!e.params.rewind),s(m,e.isEnd&&!e.params.rewind)}function l(m){m.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function c(m){m.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function d(){const m=e.params.navigation;if(e.params.navigation=Vf(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(m.nextEl||m.prevEl))return;let f=o(m.nextEl),y=o(m.prevEl);Object.assign(e.navigation,{nextEl:f,prevEl:y}),f=i(f),y=i(y);const p=(h,w)=>{h&&h.addEventListener("click",w==="next"?c:l),!e.enabled&&h&&h.classList.add(...m.lockClass.split(" "))};f.forEach(h=>p(h,"next")),y.forEach(h=>p(h,"prev"))}function u(){let{nextEl:m,prevEl:f}=e.navigation;m=i(m),f=i(f);const y=(p,h)=>{p.removeEventListener("click",h==="next"?c:l),p.classList.remove(...e.params.navigation.disabledClass.split(" "))};m.forEach(p=>y(p,"next")),f.forEach(p=>y(p,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?g():(d(),a())}),n("toEdge fromEdge lock unlock",()=>{a()}),n("destroy",()=>{u()}),n("enable disable",()=>{let{nextEl:m,prevEl:f}=e.navigation;m=i(m),f=i(f),[...m,...f].filter(y=>!!y).forEach(y=>y.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),n("click",(m,f)=>{let{nextEl:y,prevEl:p}=e.navigation;y=i(y),p=i(p);const h=f.target;if(e.params.navigation.hideOnClick&&!p.includes(h)&&!y.includes(h)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===h||e.pagination.el.contains(h)))return;let w;y.length?w=y[0].classList.contains(e.params.navigation.hiddenClass):p.length&&(w=p[0].classList.contains(e.params.navigation.hiddenClass)),r(w===!0?"navigationShow":"navigationHide"),[...y,...p].filter(S=>!!S).forEach(S=>S.classList.toggle(e.params.navigation.hiddenClass))}});const b=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),d(),a()},g=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(e.navigation,{enable:b,disable:g,update:a,init:d,destroy:u})}function hr(e=""){return`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function XC({swiper:e,extendParams:t,on:n,emit:r}){const 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:p=>p,formatFractionTotal:p=>p,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 o,s=0;const a=p=>(Array.isArray(p)||(p=[p].filter(h=>!!h)),p);function l(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(p,h){const{bulletActiveClass:w}=e.params.pagination;p&&(p=p[`${h==="prev"?"previous":"next"}ElementSibling`],p&&(p.classList.add(`${w}-${h}`),p=p[`${h==="prev"?"previous":"next"}ElementSibling`],p&&p.classList.add(`${w}-${h}-${h}`)))}function d(p){const h=p.target.closest(hr(e.params.pagination.bulletClass));if(!h)return;p.preventDefault();const w=Li(h)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===w)return;const S=e.getSlideIndexByData(w),x=e.getSlideIndexByData(e.realIndex);S>e.slides.length-e.loopedSlides&&e.loopFix({direction:S>x?"next":"prev",activeSlideIndex:S,slideTo:!1}),e.slideToLoop(w)}else e.slideTo(w)}function u(){const p=e.rtl,h=e.params.pagination;if(l())return;let w=e.pagination.el;w=a(w);let S,x;const A=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,T=e.params.loop?Math.ceil(A/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(x=e.previousRealIndex||0,S=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(S=e.snapIndex,x=e.previousSnapIndex):(x=e.previousIndex||0,S=e.activeIndex||0),h.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const k=e.pagination.bullets;let _,z,R;if(h.dynamicBullets&&(o=hs(k[0],e.isHorizontal()?"width":"height"),w.forEach(I=>{I.style[e.isHorizontal()?"width":"height"]=`${o*(h.dynamicMainBullets+4)}px`}),h.dynamicMainBullets>1&&x!==void 0&&(s+=S-(x||0),s>h.dynamicMainBullets-1?s=h.dynamicMainBullets-1:s<0&&(s=0)),_=Math.max(S-s,0),z=_+(Math.min(k.length,h.dynamicMainBullets)-1),R=(z+_)/2),k.forEach(I=>{const L=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(N=>`${h.bulletActiveClass}${N}`)].map(N=>typeof N=="string"&&N.includes(" ")?N.split(" "):N).flat();I.classList.remove(...L)}),w.length>1)k.forEach(I=>{const L=Li(I);L===S?I.classList.add(...h.bulletActiveClass.split(" ")):e.isElement&&I.setAttribute("part","bullet"),h.dynamicBullets&&(L>=_&&L<=z&&I.classList.add(...`${h.bulletActiveClass}-main`.split(" ")),L===_&&c(I,"prev"),L===z&&c(I,"next"))});else{const I=k[S];if(I&&I.classList.add(...h.bulletActiveClass.split(" ")),e.isElement&&k.forEach((L,N)=>{L.setAttribute("part",N===S?"bullet-active":"bullet")}),h.dynamicBullets){const L=k[_],N=k[z];for(let j=_;j<=z;j+=1)k[j]&&k[j].classList.add(...`${h.bulletActiveClass}-main`.split(" "));c(L,"prev"),c(N,"next")}}if(h.dynamicBullets){const I=Math.min(k.length,h.dynamicMainBullets+4),L=(o*I-o)/2-R*o,N=p?"right":"left";k.forEach(j=>{j.style[e.isHorizontal()?N:"top"]=`${L}px`})}}w.forEach((k,_)=>{if(h.type==="fraction"&&(k.querySelectorAll(hr(h.currentClass)).forEach(z=>{z.textContent=h.formatFractionCurrent(S+1)}),k.querySelectorAll(hr(h.totalClass)).forEach(z=>{z.textContent=h.formatFractionTotal(T)})),h.type==="progressbar"){let z;h.progressbarOpposite?z=e.isHorizontal()?"vertical":"horizontal":z=e.isHorizontal()?"horizontal":"vertical";const R=(S+1)/T;let I=1,L=1;z==="horizontal"?I=R:L=R,k.querySelectorAll(hr(h.progressbarFillClass)).forEach(N=>{N.style.transform=`translate3d(0,0,0) scaleX(${I}) scaleY(${L})`,N.style.transitionDuration=`${e.params.speed}ms`})}h.type==="custom"&&h.renderCustom?(k.innerHTML=h.renderCustom(e,S+1,T),_===0&&r("paginationRender",k)):(_===0&&r("paginationRender",k),r("paginationUpdate",k)),e.params.watchOverflow&&e.enabled&&k.classList[e.isLocked?"add":"remove"](h.lockClass)})}function b(){const p=e.params.pagination;if(l())return;const h=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let w=e.pagination.el;w=a(w);let S="";if(p.type==="bullets"){let x=e.params.loop?Math.ceil(h/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&x>h&&(x=h);for(let A=0;A<x;A+=1)p.renderBullet?S+=p.renderBullet.call(e,A,p.bulletClass):S+=`<${p.bulletElement} ${e.isElement?'part="bullet"':""} class="${p.bulletClass}"></${p.bulletElement}>`}p.type==="fraction"&&(p.renderFraction?S=p.renderFraction.call(e,p.currentClass,p.totalClass):S=`<span class="${p.currentClass}"></span> / <span class="${p.totalClass}"></span>`),p.type==="progressbar"&&(p.renderProgressbar?S=p.renderProgressbar.call(e,p.progressbarFillClass):S=`<span class="${p.progressbarFillClass}"></span>`),e.pagination.bullets=[],w.forEach(x=>{p.type!=="custom"&&(x.innerHTML=S||""),p.type==="bullets"&&e.pagination.bullets.push(...x.querySelectorAll(hr(p.bulletClass)))}),p.type!=="custom"&&r("paginationRender",w[0])}function g(){e.params.pagination=Vf(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const p=e.params.pagination;if(!p.el)return;let h;typeof p.el=="string"&&e.isElement&&(h=e.el.shadowRoot.querySelector(p.el)),!h&&typeof p.el=="string"&&(h=[...document.querySelectorAll(p.el)]),h||(h=p.el),!(!h||h.length===0)&&(e.params.uniqueNavElements&&typeof p.el=="string"&&Array.isArray(h)&&h.length>1&&(h=[...e.el.querySelectorAll(p.el)],h.length>1&&(h=h.filter(w=>$f(w,".swiper")[0]===e.el)[0])),Array.isArray(h)&&h.length===1&&(h=h[0]),Object.assign(e.pagination,{el:h}),h=a(h),h.forEach(w=>{p.type==="bullets"&&p.clickable&&w.classList.add(p.clickableClass),w.classList.add(p.modifierClass+p.type),w.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.type==="bullets"&&p.dynamicBullets&&(w.classList.add(`${p.modifierClass}${p.type}-dynamic`),s=0,p.dynamicMainBullets<1&&(p.dynamicMainBullets=1)),p.type==="progressbar"&&p.progressbarOpposite&&w.classList.add(p.progressbarOppositeClass),p.clickable&&w.addEventListener("click",d),e.enabled||w.classList.add(p.lockClass)}))}function m(){const p=e.params.pagination;if(l())return;let h=e.pagination.el;h&&(h=a(h),h.forEach(w=>{w.classList.remove(p.hiddenClass),w.classList.remove(p.modifierClass+p.type),w.classList.remove(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.clickable&&w.removeEventListener("click",d)})),e.pagination.bullets&&e.pagination.bullets.forEach(w=>w.classList.remove(...p.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const p=e.params.pagination;let{el:h}=e.pagination;h=a(h),h.forEach(w=>{w.classList.remove(p.horizontalClass,p.verticalClass),w.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?y():(g(),b(),u())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&u()}),n("snapIndexChange",()=>{u()}),n("snapGridLengthChange",()=>{b(),u()}),n("destroy",()=>{m()}),n("enable disable",()=>{let{el:p}=e.pagination;p&&(p=a(p),p.forEach(h=>h.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{u()}),n("click",(p,h)=>{const w=h.target;let{el:S}=e.pagination;if(Array.isArray(S)||(S=[S].filter(x=>!!x)),e.params.pagination.el&&e.params.pagination.hideOnClick&&S&&S.length>0&&!w.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&w===e.navigation.nextEl||e.navigation.prevEl&&w===e.navigation.prevEl))return;const x=S[0].classList.contains(e.params.pagination.hiddenClass);r(x===!0?"paginationShow":"paginationHide"),S.forEach(A=>A.classList.toggle(e.params.pagination.hiddenClass))}});const f=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=a(p),p.forEach(h=>h.classList.remove(e.params.pagination.paginationDisabledClass))),g(),b(),u()},y=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=a(p),p.forEach(h=>h.classList.add(e.params.pagination.paginationDisabledClass))),m()};Object.assign(e.pagination,{enable:f,disable:y,render:b,update:u,init:g,destroy:m})}function ZC({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 o,s,a=i&&i.autoplay?i.autoplay.delay:3e3,l=i&&i.autoplay?i.autoplay.delay:3e3,c,d=new Date().getTime,u,b,g,m,f,y;function p(B){!e||e.destroyed||!e.wrapperEl||B.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",p),k())}const h=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?u=!0:u&&(l=c,u=!1);const B=e.autoplay.paused?c:d+l-new Date().getTime();e.autoplay.timeLeft=B,r("autoplayTimeLeft",B,B/a),s=requestAnimationFrame(()=>{h()})},w=()=>{let B;return e.virtual&&e.params.virtual.enabled?B=e.slides.filter(G=>G.classList.contains("swiper-slide-active"))[0]:B=e.slides[e.activeIndex],B?parseInt(B.getAttribute("data-swiper-autoplay"),10):void 0},S=B=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(s),h();let V=typeof B>"u"?e.params.autoplay.delay:B;a=e.params.autoplay.delay,l=e.params.autoplay.delay;const G=w();!Number.isNaN(G)&&G>0&&typeof B>"u"&&(V=G,a=G,l=G),c=V;const J=e.params.speed,ge=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(J,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,J,!0,!0),r("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(J,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,J,!0,!0),r("autoplay")),e.params.cssMode&&(d=new Date().getTime(),requestAnimationFrame(()=>{S()})))};return V>0?(clearTimeout(o),o=setTimeout(()=>{ge()},V)):requestAnimationFrame(()=>{ge()}),V},x=()=>{e.autoplay.running=!0,S(),r("autoplayStart")},A=()=>{e.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(s),r("autoplayStop")},T=(B,V)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(o),B||(y=!0);const G=()=>{r("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",p):k()};if(e.autoplay.paused=!0,V){f&&(c=e.params.autoplay.delay),f=!1,G();return}c=(c||e.params.autoplay.delay)-(new Date().getTime()-d),!(e.isEnd&&c<0&&!e.params.loop)&&(c<0&&(c=0),G())},k=()=>{e.isEnd&&c<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(d=new Date().getTime(),y?(y=!1,S(c)):S(),e.autoplay.paused=!1,r("autoplayResume"))},_=()=>{if(e.destroyed||!e.autoplay.running)return;const B=Rt();B.visibilityState==="hidden"&&(y=!0,T(!0)),B.visibilityState==="visible"&&k()},z=B=>{B.pointerType==="mouse"&&(y=!0,T(!0))},R=B=>{B.pointerType==="mouse"&&e.autoplay.paused&&k()},I=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",z),e.el.addEventListener("pointerleave",R))},L=()=>{e.el.removeEventListener("pointerenter",z),e.el.removeEventListener("pointerleave",R)},N=()=>{Rt().addEventListener("visibilitychange",_)},j=()=>{Rt().removeEventListener("visibilitychange",_)};n("init",()=>{e.params.autoplay.enabled&&(I(),N(),d=new Date().getTime(),x())}),n("destroy",()=>{L(),j(),e.autoplay.running&&A()}),n("beforeTransitionStart",(B,V,G)=>{e.destroyed||!e.autoplay.running||(G||!e.params.autoplay.disableOnInteraction?T(!0,!0):A())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){A();return}b=!0,g=!1,y=!1,m=setTimeout(()=>{y=!0,g=!0,T(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!b)){if(clearTimeout(m),clearTimeout(o),e.params.autoplay.disableOnInteraction){g=!1,b=!1;return}g&&e.params.cssMode&&k(),g=!1,b=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(f=!0)}),Object.assign(e.autoplay,{start:x,stop:A,pause:T,resume:k})}function JC({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 o(){const l=e.thumbs.swiper;if(!l||l.destroyed)return;const c=l.clickedIndex,d=l.clickedSlide;if(d&&d.classList.contains(e.params.thumbs.slideThumbActiveClass)||typeof c>"u"||c===null)return;let u;l.params.loop?u=parseInt(l.clickedSlide.getAttribute("data-swiper-slide-index"),10):u=c,e.params.loop?e.slideToLoop(u):e.slideTo(u)}function s(){const{thumbs:l}=e.params;if(r)return!1;r=!0;const c=e.constructor;if(l.swiper instanceof c)e.thumbs.swiper=l.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(yr(l.swiper)){const d=Object.assign({},l.swiper);Object.assign(d,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new c(d),i=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",o),!0}function a(l){const c=e.thumbs.swiper;if(!c||c.destroyed)return;const d=c.params.slidesPerView==="auto"?c.slidesPerViewDynamic():c.params.slidesPerView;let u=1;const b=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(u=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(u=1),u=Math.floor(u),c.slides.forEach(f=>f.classList.remove(b)),c.params.loop||c.params.virtual&&c.params.virtual.enabled)for(let f=0;f<u;f+=1)It(c.slidesEl,`[data-swiper-slide-index="${e.realIndex+f}"]`).forEach(y=>{y.classList.add(b)});else for(let f=0;f<u;f+=1)c.slides[e.realIndex+f]&&c.slides[e.realIndex+f].classList.add(b);const g=e.params.thumbs.autoScrollOffset,m=g&&!c.params.loop;if(e.realIndex!==c.realIndex||m){const f=c.activeIndex;let y,p;if(c.params.loop){const h=c.slides.filter(w=>w.getAttribute("data-swiper-slide-index")===`${e.realIndex}`)[0];y=c.slides.indexOf(h),p=e.activeIndex>e.previousIndex?"next":"prev"}else y=e.realIndex,p=y>e.previousIndex?"next":"prev";m&&(y+=p==="next"?g:-1*g),c.visibleSlidesIndexes&&c.visibleSlidesIndexes.indexOf(y)<0&&(c.params.centeredSlides?y>f?y=y-Math.floor(d/2)+1:y=y+Math.floor(d/2)-1:y>f&&c.params.slidesPerGroup,c.slideTo(y,l?0:void 0))}}n("beforeInit",()=>{const{thumbs:l}=e.params;if(!(!l||!l.swiper))if(typeof l.swiper=="string"||l.swiper instanceof HTMLElement){const c=Rt(),d=()=>{const b=typeof l.swiper=="string"?c.querySelector(l.swiper):l.swiper;if(b&&b.swiper)l.swiper=b.swiper,s(),a(!0);else if(b){const g=m=>{l.swiper=m.detail[0],b.removeEventListener("init",g),s(),a(!0),l.swiper.update(),e.update()};b.addEventListener("init",g)}return b},u=()=>{if(e.destroyed)return;d()||requestAnimationFrame(u)};requestAnimationFrame(u)}else s(),a(!0)}),n("slideChange update resize observerUpdate",()=>{a()}),n("setTransition",(l,c)=>{const d=e.thumbs.swiper;!d||d.destroyed||d.setTransition(c)}),n("beforeDestroy",()=>{const l=e.thumbs.swiper;!l||l.destroyed||i&&l.destroy()}),Object.assign(e.thumbs,{init:s,update:a})}function IC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ac(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ac(Object(n),!0).forEach(function(r){IC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ac(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function RC(e,t){if(e==null)return{};var n=OC(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ni(e,t){return _C(e)||MC(e,t)||DC(e,t)||LC()}function _C(e){if(Array.isArray(e))return e}function MC(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var s=e[Symbol.iterator](),a;!(r=(a=s.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(l){i=!0,o=l}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw o}}return n}}function DC(e,t){if(e){if(typeof e=="string")return cc(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 cc(e,t)}}function cc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function LC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NC(e){var t=e.src,n=e.checkForExisting,r=n===void 0?!1:n,i=RC(e,["src","checkForExisting"]),o=v.useState(!!t),s=Ni(o,2),a=s[0],l=s[1],c=v.useState(null),d=Ni(c,2),u=d[0],b=d[1];return v.useEffect(function(){if(!(!FC||!t)){if(r){var g=document.querySelectorAll('script[src="'.concat(t,'"]'));if(g.length>0){l(!1);return}}var m=document.createElement("script");m.setAttribute("src",t),Object.keys(i).forEach(function(p){m[p]===void 0?m.setAttribute(p,i[p]):m[p]=i[p]});var f=function(){l(!1)},y=function(h){b(h)};return m.addEventListener("load",f),m.addEventListener("error",y),document.body.appendChild(m),function(){m.removeEventListener("load",f),m.removeEventListener("error",y)}}},[t]),[a,u]}var FC=typeof window<"u"&&typeof window.document<"u",QC=function(t){var n=NC({src:"https://cdn.merge.dev/initialize.js",checkForExisting:!0}),r=Ni(n,2),i=r[0],o=r[1],s=v.useState(!1),a=Ni(s,2),l=a[0],c=a[1],d=typeof window>"u",u=!d&&!!window.MergeLink&&!i&&!o;v.useEffect(function(){u&&window.MergeLink&&window.MergeLink.initialize(lc(lc({},t),{},{onReady:function(){return c(!0)}}))},[u,t]);var b=function(){window.MergeLink&&window.MergeLink.openLink(t)};return{open:b,isReady:l,error:o}};export{ZC as A,Om as B,my as C,YC as D,qC as M,KC as N,XC as P,rS as R,fa as S,JC as T,Mf as _,Rn as a,At as b,Ts as c,ks as d,Ps as e,Un as f,As as g,ad as h,fy as i,M as j,py as k,Nc as l,hy as m,td as n,nd as o,rd as p,id as q,Zf as r,Vi as s,ty as t,QC as u,ry as v,ny as w,ey as x,ia as y,Gn as z}; //# sourceMappingURL=vendors-PeTR6lQN.js.map