@zappway/embeds 1.0.122 → 1.0.123

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
- var MK=Object.create;var Ok=Object.defineProperty;var FK=Object.getOwnPropertyDescriptor;var NK=Object.getOwnPropertyNames;var BK=Object.getPrototypeOf,RK=Object.prototype.hasOwnProperty;var L=(e,a)=>()=>(e&&(a=e(e=0)),a);var da=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports),Wi=(e,a)=>{for(var t in a)Ok(e,t,{get:a[t],enumerable:!0})},rx=(e,a,t,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let n of NK(a))!RK.call(e,n)&&n!==t&&Ok(e,n,{get:()=>a[n],enumerable:!(i=FK(a,n))||i.enumerable});return e};var S=(e,a,t)=>(t=e!=null?MK(BK(e)):{},rx(a||!e||!e.__esModule?Ok(t,"default",{value:e,enumerable:!0}):t,e)),co=e=>rx(Ok({},"__esModule",{value:!0}),e);var l=L(()=>{});function UK(e){if(e.sheet)return e.sheet;for(var a=0;a<document.styleSheets.length;a++)if(document.styleSheets[a].ownerNode===e)return document.styleSheets[a]}function OK(e){var a=document.createElement("style");return a.setAttribute("data-emotion",e.key),e.nonce!==void 0&&a.setAttribute("nonce",e.nonce),a.appendChild(document.createTextNode("")),a.setAttribute("data-s",""),a}var VK,ux,px=L(()=>{l();VK=!1;ux=function(){function e(t){var i=this;this._insertTag=function(n){var o;i.tags.length===0?i.insertionPoint?o=i.insertionPoint.nextSibling:i.prepend?o=i.container.firstChild:o=i.before:o=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(n,o),i.tags.push(n)},this.isSpeedy=t.speedy===void 0?!VK:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var a=e.prototype;return a.hydrate=function(i){i.forEach(this._insertTag)},a.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(OK(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=UK(n);try{o.insertRule(i,o.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(i));this.ctr++},a.flush=function(){this.tags.forEach(function(i){var n;return(n=i.parentNode)==null?void 0:n.removeChild(i)}),this.tags=[],this.ctr=0},e}()});var Ct,Cm,ra,Kk,Qd,$d,mx,Hk,cx,Yk=L(()=>{l();Ct="-ms-",Cm="-moz-",ra="-webkit-",Kk="comm",Qd="rule",$d="decl",mx="@import",Hk="@keyframes",cx="@layer"});function hx(e,a){return at(e,0)^45?(((a<<2^at(e,0))<<2^at(e,1))<<2^at(e,2))<<2^at(e,3):0}function Qk(e){return e.trim()}function tA(e,a){return(e=a.exec(e))?e[0]:e}function ia(e,a,t){return e.replace(a,t)}function Dm(e,a){return e.indexOf(a)}function at(e,a){return e.charCodeAt(a)|0}function qr(e,a,t){return e.slice(a,t)}function si(e){return e.length}function Jd(e){return e.length}function Xd(e,a){return a.push(e),e}function iA(e,a){return e.map(a).join("")}var gx,Xs,kx,eu=L(()=>{l();gx=Math.abs,Xs=String.fromCharCode,kx=Object.assign});function Gm(e,a,t,i,n,o,r){return{value:e,root:a,parent:t,type:i,props:n,children:o,line:$k,column:au,length:r,return:""}}function nu(e,a){return kx(Gm("",null,null,"",null,null,0),e,{length:-e.length},a)}function vx(){return st}function yx(){return st=li>0?at(iu,--li):0,au--,st===10&&(au=1,$k--),st}function di(){return st=li<bx?at(iu,li++):0,au++,st===10&&(au=1,$k++),st}function an(){return at(iu,li)}function Wm(){return li}function ou(e,a){return qr(iu,e,a)}function tu(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 Jk(e){return $k=au=1,bx=si(iu=e),li=0,[]}function Xk(e){return iu="",e}function ru(e){return Qk(ou(li-1,nA(e===91?e+2:e===40?e+1:e)))}function fx(e){for(;(st=an())&&st<33;)di();return tu(e)>2||tu(st)>3?"":" "}function _x(e,a){for(;--a&&di()&&!(st<48||st>102||st>57&&st<65||st>70&&st<97););return ou(e,Wm()+(a<6&&an()==32&&di()==32))}function nA(e){for(;di();)switch(st){case e:return li;case 34:case 39:e!==34&&e!==39&&nA(st);break;case 40:e===41&&nA(e);break;case 92:di();break}return li}function Ax(e,a){for(;di()&&e+st!==57;)if(e+st===84&&an()===47)break;return"/*"+ou(a,li-1)+"*"+Xs(e===47?e:di())}function Ix(e){for(;!tu(an());)di();return ou(e,li)}var $k,au,bx,li,st,iu,oA=L(()=>{l();eu();$k=1,au=1,bx=0,li=0,st=0,iu=""});function zx(e){return Xk(eh("",null,null,null,[""],e=Jk(e),0,[0],e))}function eh(e,a,t,i,n,o,r,s,d){for(var u=0,p=0,m=r,g=0,b=0,f=0,v=1,_=1,h=1,k=0,y="",I=n,A=o,T=i,P=y;_;)switch(f=k,k=di()){case 40:if(f!=108&&at(P,m-1)==58){Dm(P+=ia(ru(k),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:P+=ru(k);break;case 9:case 10:case 13:case 32:P+=fx(f);break;case 92:P+=_x(Wm()-1,7);continue;case 47:switch(an()){case 42:case 47:Xd(KK(Ax(di(),Wm()),a,t),d);break;default:P+="/"}break;case 123*v:s[u++]=si(P)*h;case 125*v:case 59:case 0:switch(k){case 0:case 125:_=0;case 59+p:h==-1&&(P=ia(P,/\f/g,"")),b>0&&si(P)-m&&Xd(b>32?Px(P+";",i,t,m-1):Px(ia(P," ","")+";",i,t,m-2),d);break;case 59:P+=";";default:if(Xd(T=Tx(P,a,t,u,p,n,s,y,I=[],A=[],m),o),k===123)if(p===0)eh(P,a,T,T,I,o,m,s,A);else switch(g===99&&at(P,3)===110?100:g){case 100:case 108:case 109:case 115:eh(e,T,T,i&&Xd(Tx(e,T,T,0,0,n,s,y,n,I=[],m),A),n,A,m,s,i?I:A);break;default:eh(P,T,T,T,[""],A,0,s,A)}}u=p=b=0,v=h=1,y=P="",m=r;break;case 58:m=1+si(P),b=f;default:if(v<1){if(k==123)--v;else if(k==125&&v++==0&&yx()==125)continue}switch(P+=Xs(k),k*v){case 38:h=p>0?1:(P+="\f",-1);break;case 44:s[u++]=(si(P)-1)*h,h=1;break;case 64:an()===45&&(P+=ru(di())),g=an(),p=m=si(y=P+=Ix(Wm())),k++;break;case 45:f===45&&si(P)==2&&(v=0)}}return o}function Tx(e,a,t,i,n,o,r,s,d,u,p){for(var m=n-1,g=n===0?o:[""],b=Jd(g),f=0,v=0,_=0;f<i;++f)for(var h=0,k=qr(e,m+1,m=gx(v=r[f])),y=e;h<b;++h)(y=Qk(v>0?g[h]+" "+k:ia(k,/&\f/g,g[h])))&&(d[_++]=y);return Gm(e,a,t,n===0?Qd:s,d,u,p)}function KK(e,a,t){return Gm(e,a,t,Kk,Xs(vx()),qr(e,2,-2),0)}function Px(e,a,t,i){return Gm(e,a,t,$d,qr(e,0,i),qr(e,i+1,-1),i)}var wx=L(()=>{l();Yk();eu();oA()});var Sx=L(()=>{l()});function el(e,a){for(var t="",i=Jd(e),n=0;n<i;n++)t+=a(e[n],n,e,a)||"";return t}function jx(e,a,t,i){switch(e.type){case cx:if(e.children.length)break;case mx:case $d:return e.return=e.return||e.value;case Kk:return"";case Hk:return e.return=e.value+"{"+el(e.children,i)+"}";case Qd:e.value=e.props.join(",")}return si(t=el(e.children,i))?e.return=e.value+"{"+t+"}":""}var xx=L(()=>{l();Yk();eu()});function Cx(e){var a=Jd(e);return function(t,i,n,o){for(var r="",s=0;s<a;s++)r+=e[s](t,i,n,o)||"";return r}}function Dx(e){return function(a){a.root||(a=a.return)&&e(a)}}var Gx=L(()=>{l();eu()});var Wx=L(()=>{l();Yk();eu();wx();Sx();oA();xx();Gx()});var ah=L(()=>{l()});function th(e){var a=Object.create(null);return function(t){return a[t]===void 0&&(a[t]=e(t)),a[t]}}var ih=L(()=>{l()});function Lx(e,a){switch(hx(e,a)){case 5103:return ra+"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 ra+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ra+e+Cm+e+Ct+e+e;case 6828:case 4268:return ra+e+Ct+e+e;case 6165:return ra+e+Ct+"flex-"+e+e;case 5187:return ra+e+ia(e,/(\w+).+(:[^]+)/,ra+"box-$1$2"+Ct+"flex-$1$2")+e;case 5443:return ra+e+Ct+"flex-item-"+ia(e,/flex-|-self/,"")+e;case 4675:return ra+e+Ct+"flex-line-pack"+ia(e,/align-content|flex-|-self/,"")+e;case 5548:return ra+e+Ct+ia(e,"shrink","negative")+e;case 5292:return ra+e+Ct+ia(e,"basis","preferred-size")+e;case 6060:return ra+"box-"+ia(e,"-grow","")+ra+e+Ct+ia(e,"grow","positive")+e;case 4554:return ra+ia(e,/([^-])(transform)/g,"$1"+ra+"$2")+e;case 6187:return ia(ia(ia(e,/(zoom-|grab)/,ra+"$1"),/(image-set)/,ra+"$1"),e,"")+e;case 5495:case 3959:return ia(e,/(image-set\([^]*)/,ra+"$1$`$1");case 4968:return ia(ia(e,/(.+:)(flex-)?(.*)/,ra+"box-pack:$3"+Ct+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ra+e+e;case 4095:case 3583:case 4068:case 2532:return ia(e,/(.+)-inline(.+)/,ra+"$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(si(e)-1-a>6)switch(at(e,a+1)){case 109:if(at(e,a+4)!==45)break;case 102:return ia(e,/(.+:)(.+)-([^]+)/,"$1"+ra+"$2-$3$1"+Cm+(at(e,a+3)==108?"$3":"$2-$3"))+e;case 115:return~Dm(e,"stretch")?Lx(ia(e,"stretch","fill-available"),a)+e:e}break;case 4949:if(at(e,a+1)!==115)break;case 6444:switch(at(e,si(e)-3-(~Dm(e,"!important")&&10))){case 107:return ia(e,":",":"+ra)+e;case 101:return ia(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ra+(at(e,14)===45?"inline-":"")+"box$3$1"+ra+"$2$3$1"+Ct+"$2box$3")+e}break;case 5936:switch(at(e,a+11)){case 114:return ra+e+Ct+ia(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ra+e+Ct+ia(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ra+e+Ct+ia(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ra+e+Ct+e+e}return e}var HK,YK,QK,Ex,$K,JK,XK,eH,su,Em=L(()=>{l();px();Wx();ah();ih();HK=function(a,t,i){for(var n=0,o=0;n=o,o=an(),n===38&&o===12&&(t[i]=1),!tu(o);)di();return ou(a,li)},YK=function(a,t){var i=-1,n=44;do switch(tu(n)){case 0:n===38&&an()===12&&(t[i]=1),a[i]+=HK(li-1,t,i);break;case 2:a[i]+=ru(n);break;case 4:if(n===44){a[++i]=an()===58?"&\f":"",t[i]=a[i].length;break}default:a[i]+=Xs(n)}while(n=di());return a},QK=function(a,t){return Xk(YK(Jk(a),t))},Ex=new WeakMap,$K=function(a){if(!(a.type!=="rule"||!a.parent||a.length<1)){for(var t=a.value,i=a.parent,n=a.column===i.column&&a.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(a.props.length===1&&t.charCodeAt(0)!==58&&!Ex.get(i))&&!n){Ex.set(a,!0);for(var o=[],r=QK(t,o),s=i.props,d=0,u=0;d<r.length;d++)for(var p=0;p<s.length;p++,u++)a.props[u]=o[d]?r[d].replace(/&\f/g,s[p]):s[p]+" "+r[d]}}},JK=function(a){if(a.type==="decl"){var t=a.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(a.return="",a.value="")}};XK=function(a,t,i,n){if(a.length>-1&&!a.return)switch(a.type){case $d:a.return=Lx(a.value,a.length);break;case Hk:return el([nu(a,{value:ia(a.value,"@","@"+ra)})],n);case Qd:if(a.length)return iA(a.props,function(o){switch(tA(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return el([nu(a,{props:[ia(o,/:(read-\w+)/,":"+Cm+"$1")]})],n);case"::placeholder":return el([nu(a,{props:[ia(o,/:(plac\w+)/,":"+ra+"input-$1")]}),nu(a,{props:[ia(o,/:(plac\w+)/,":"+Cm+"$1")]}),nu(a,{props:[ia(o,/:(plac\w+)/,Ct+"input-$1")]})],n)}return""})}},eH=[XK],su=function(a){var t=a.key;if(t==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(v){var _=v.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var n=a.stylisPlugins||eH,o={},r,s=[];r=a.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(v){for(var _=v.getAttribute("data-emotion").split(" "),h=1;h<_.length;h++)o[_[h]]=!0;s.push(v)});var d,u=[$K,JK];{var p,m=[jx,Dx(function(v){p.insert(v)})],g=Cx(u.concat(n,m)),b=function(_){return el(zx(_),g)};d=function(_,h,k,y){p=k,b(_?_+"{"+h.styles+"}":h.styles),y&&(f.inserted[h.name]=!0)}}var f={key:t,sheet:new ux({key:t,container:r,nonce:a.nonce,speedy:a.speedy,prepend:a.prepend,insertionPoint:a.insertionPoint}),nonce:a.nonce,inserted:o,registered:{},insert:d};return f.sheet.hydrate(s),f}});var Hx=da(Ye=>{"use strict";l();var Lm=Symbol.for("react.element"),aH=Symbol.for("react.portal"),tH=Symbol.for("react.fragment"),iH=Symbol.for("react.strict_mode"),nH=Symbol.for("react.profiler"),oH=Symbol.for("react.provider"),rH=Symbol.for("react.context"),sH=Symbol.for("react.forward_ref"),lH=Symbol.for("react.suspense"),dH=Symbol.for("react.memo"),uH=Symbol.for("react.lazy"),Mx=Symbol.iterator;function pH(e){return e===null||typeof e!="object"?null:(e=Mx&&e[Mx]||e["@@iterator"],typeof e=="function"?e:null)}var Bx={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Rx=Object.assign,Zx={};function lu(e,a,t){this.props=e,this.context=a,this.refs=Zx,this.updater=t||Bx}lu.prototype.isReactComponent={};lu.prototype.setState=function(e,a){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,a,"setState")};lu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function qx(){}qx.prototype=lu.prototype;function sA(e,a,t){this.props=e,this.context=a,this.refs=Zx,this.updater=t||Bx}var lA=sA.prototype=new qx;lA.constructor=sA;Rx(lA,lu.prototype);lA.isPureReactComponent=!0;var Fx=Array.isArray,Vx=Object.prototype.hasOwnProperty,dA={current:null},Ux={key:!0,ref:!0,__self:!0,__source:!0};function Ox(e,a,t){var i,n={},o=null,r=null;if(a!=null)for(i in a.ref!==void 0&&(r=a.ref),a.key!==void 0&&(o=""+a.key),a)Vx.call(a,i)&&!Ux.hasOwnProperty(i)&&(n[i]=a[i]);var s=arguments.length-2;if(s===1)n.children=t;else if(1<s){for(var d=Array(s),u=0;u<s;u++)d[u]=arguments[u+2];n.children=d}if(e&&e.defaultProps)for(i in s=e.defaultProps,s)n[i]===void 0&&(n[i]=s[i]);return{$$typeof:Lm,type:e,key:o,ref:r,props:n,_owner:dA.current}}function mH(e,a){return{$$typeof:Lm,type:e.type,key:a,ref:e.ref,props:e.props,_owner:e._owner}}function uA(e){return typeof e=="object"&&e!==null&&e.$$typeof===Lm}function cH(e){var a={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(t){return a[t]})}var Nx=/\/+/g;function rA(e,a){return typeof e=="object"&&e!==null&&e.key!=null?cH(""+e.key):a.toString(36)}function oh(e,a,t,i,n){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var r=!1;if(e===null)r=!0;else switch(o){case"string":case"number":r=!0;break;case"object":switch(e.$$typeof){case Lm:case aH:r=!0}}if(r)return r=e,n=n(r),e=i===""?"."+rA(r,0):i,Fx(n)?(t="",e!=null&&(t=e.replace(Nx,"$&/")+"/"),oh(n,a,t,"",function(u){return u})):n!=null&&(uA(n)&&(n=mH(n,t+(!n.key||r&&r.key===n.key?"":(""+n.key).replace(Nx,"$&/")+"/")+e)),a.push(n)),1;if(r=0,i=i===""?".":i+":",Fx(e))for(var s=0;s<e.length;s++){o=e[s];var d=i+rA(o,s);r+=oh(o,a,t,d,n)}else if(d=pH(e),typeof d=="function")for(e=d.call(e),s=0;!(o=e.next()).done;)o=o.value,d=i+rA(o,s++),r+=oh(o,a,t,d,n);else if(o==="object")throw a=String(e),Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.");return r}function nh(e,a,t){if(e==null)return e;var i=[],n=0;return oh(e,i,"","",function(o){return a.call(t,o,n++)}),i}function gH(e){if(e._status===-1){var a=e._result;a=a(),a.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=a)}if(e._status===1)return e._result.default;throw e._result}var ui={current:null},rh={transition:null},kH={ReactCurrentDispatcher:ui,ReactCurrentBatchConfig:rh,ReactCurrentOwner:dA};function Kx(){throw Error("act(...) is not supported in production builds of React.")}Ye.Children={map:nh,forEach:function(e,a,t){nh(e,function(){a.apply(this,arguments)},t)},count:function(e){var a=0;return nh(e,function(){a++}),a},toArray:function(e){return nh(e,function(a){return a})||[]},only:function(e){if(!uA(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ye.Component=lu;Ye.Fragment=tH;Ye.Profiler=nH;Ye.PureComponent=sA;Ye.StrictMode=iH;Ye.Suspense=lH;Ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kH;Ye.act=Kx;Ye.cloneElement=function(e,a,t){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=Rx({},e.props),n=e.key,o=e.ref,r=e._owner;if(a!=null){if(a.ref!==void 0&&(o=a.ref,r=dA.current),a.key!==void 0&&(n=""+a.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(d in a)Vx.call(a,d)&&!Ux.hasOwnProperty(d)&&(i[d]=a[d]===void 0&&s!==void 0?s[d]:a[d])}var d=arguments.length-2;if(d===1)i.children=t;else if(1<d){s=Array(d);for(var u=0;u<d;u++)s[u]=arguments[u+2];i.children=s}return{$$typeof:Lm,type:e.type,key:n,ref:o,props:i,_owner:r}};Ye.createContext=function(e){return e={$$typeof:rH,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:oH,_context:e},e.Consumer=e};Ye.createElement=Ox;Ye.createFactory=function(e){var a=Ox.bind(null,e);return a.type=e,a};Ye.createRef=function(){return{current:null}};Ye.forwardRef=function(e){return{$$typeof:sH,render:e}};Ye.isValidElement=uA;Ye.lazy=function(e){return{$$typeof:uH,_payload:{_status:-1,_result:e},_init:gH}};Ye.memo=function(e,a){return{$$typeof:dH,type:e,compare:a===void 0?null:a}};Ye.startTransition=function(e){var a=rh.transition;rh.transition={};try{e()}finally{rh.transition=a}};Ye.unstable_act=Kx;Ye.useCallback=function(e,a){return ui.current.useCallback(e,a)};Ye.useContext=function(e){return ui.current.useContext(e)};Ye.useDebugValue=function(){};Ye.useDeferredValue=function(e){return ui.current.useDeferredValue(e)};Ye.useEffect=function(e,a){return ui.current.useEffect(e,a)};Ye.useId=function(){return ui.current.useId()};Ye.useImperativeHandle=function(e,a,t){return ui.current.useImperativeHandle(e,a,t)};Ye.useInsertionEffect=function(e,a){return ui.current.useInsertionEffect(e,a)};Ye.useLayoutEffect=function(e,a){return ui.current.useLayoutEffect(e,a)};Ye.useMemo=function(e,a){return ui.current.useMemo(e,a)};Ye.useReducer=function(e,a,t){return ui.current.useReducer(e,a,t)};Ye.useRef=function(e){return ui.current.useRef(e)};Ye.useState=function(e){return ui.current.useState(e)};Ye.useSyncExternalStore=function(e,a,t){return ui.current.useSyncExternalStore(e,a,t)};Ye.useTransition=function(){return ui.current.useTransition()};Ye.version="18.3.1"});var R=da((Zre,Yx)=>{"use strict";l();Yx.exports=Hx()});function w(){return w=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},w.apply(null,arguments)}var je=L(()=>{l()});var $x=da(ga=>{"use strict";l();var pA=Symbol.for("react.element"),mA=Symbol.for("react.portal"),sh=Symbol.for("react.fragment"),lh=Symbol.for("react.strict_mode"),dh=Symbol.for("react.profiler"),uh=Symbol.for("react.provider"),ph=Symbol.for("react.context"),hH=Symbol.for("react.server_context"),mh=Symbol.for("react.forward_ref"),ch=Symbol.for("react.suspense"),gh=Symbol.for("react.suspense_list"),kh=Symbol.for("react.memo"),hh=Symbol.for("react.lazy"),bH=Symbol.for("react.offscreen"),Qx;Qx=Symbol.for("react.module.reference");function tn(e){if(typeof e=="object"&&e!==null){var a=e.$$typeof;switch(a){case pA:switch(e=e.type,e){case sh:case dh:case lh:case ch:case gh:return e;default:switch(e=e&&e.$$typeof,e){case hH:case ph:case mh:case hh:case kh:case uh:return e;default:return a}}case mA:return a}}}ga.ContextConsumer=ph;ga.ContextProvider=uh;ga.Element=pA;ga.ForwardRef=mh;ga.Fragment=sh;ga.Lazy=hh;ga.Memo=kh;ga.Portal=mA;ga.Profiler=dh;ga.StrictMode=lh;ga.Suspense=ch;ga.SuspenseList=gh;ga.isAsyncMode=function(){return!1};ga.isConcurrentMode=function(){return!1};ga.isContextConsumer=function(e){return tn(e)===ph};ga.isContextProvider=function(e){return tn(e)===uh};ga.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===pA};ga.isForwardRef=function(e){return tn(e)===mh};ga.isFragment=function(e){return tn(e)===sh};ga.isLazy=function(e){return tn(e)===hh};ga.isMemo=function(e){return tn(e)===kh};ga.isPortal=function(e){return tn(e)===mA};ga.isProfiler=function(e){return tn(e)===dh};ga.isStrictMode=function(e){return tn(e)===lh};ga.isSuspense=function(e){return tn(e)===ch};ga.isSuspenseList=function(e){return tn(e)===gh};ga.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===sh||e===dh||e===lh||e===ch||e===gh||e===bH||typeof e=="object"&&e!==null&&(e.$$typeof===hh||e.$$typeof===kh||e.$$typeof===uh||e.$$typeof===ph||e.$$typeof===mh||e.$$typeof===Qx||e.getModuleId!==void 0)};ga.typeOf=tn});var cA=da((Hre,Jx)=>{"use strict";l();Jx.exports=$x()});var oC=da((Qre,nC)=>{"use strict";l();var gA=cA(),vH={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},yH={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},fH={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tC={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},kA={};kA[gA.ForwardRef]=fH;kA[gA.Memo]=tC;function Xx(e){return gA.isMemo(e)?tC:kA[e.$$typeof]||vH}var _H=Object.defineProperty,AH=Object.getOwnPropertyNames,eC=Object.getOwnPropertySymbols,IH=Object.getOwnPropertyDescriptor,TH=Object.getPrototypeOf,aC=Object.prototype;function iC(e,a,t){if(typeof a!="string"){if(aC){var i=TH(a);i&&i!==aC&&iC(e,i,t)}var n=AH(a);eC&&(n=n.concat(eC(a)));for(var o=Xx(e),r=Xx(a),s=0;s<n.length;++s){var d=n[s];if(!yH[d]&&!(t&&t[d])&&!(r&&r[d])&&!(o&&o[d])){var u=IH(a,d);try{_H(e,d,u)}catch{}}}}return e}nC.exports=iC});function Mm(e,a,t){var i="";return t.split(" ").forEach(function(n){e[n]!==void 0?a.push(e[n]+";"):n&&(i+=n+" ")}),i}var PH,du,uu,Fm=L(()=>{l();PH=!0;du=function(a,t,i){var n=a.key+"-"+t.name;(i===!1||PH===!1)&&a.registered[n]===void 0&&(a.registered[n]=t.styles)},uu=function(a,t,i){du(a,t,i);var n=a.key+"-"+t.name;if(a.inserted[t.name]===void 0){var o=t;do a.insert(t===o?"."+n:"",o,a.sheet,!0),o=o.next;while(o!==void 0)}}});function rC(e){for(var a=0,t,i=0,n=e.length;n>=4;++i,n-=4)t=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,a=(t&65535)*1540483477+((t>>>16)*59797<<16)^(a&65535)*1540483477+((a>>>16)*59797<<16);switch(n){case 3:a^=(e.charCodeAt(i+2)&255)<<16;case 2:a^=(e.charCodeAt(i+1)&255)<<8;case 1:a^=e.charCodeAt(i)&255,a=(a&65535)*1540483477+((a>>>16)*59797<<16)}return a^=a>>>13,a=(a&65535)*1540483477+((a>>>16)*59797<<16),((a^a>>>15)>>>0).toString(36)}var sC=L(()=>{l()});var lC,dC=L(()=>{l();lC={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,scale: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}});function Nm(e,a,t){if(t==null)return"";var i=t;if(i.__emotion_styles!==void 0)return i;switch(typeof t){case"boolean":return"";case"object":{var n=t;if(n.anim===1)return go={name:n.name,styles:n.styles,next:go},n.name;var o=t;if(o.styles!==void 0){var r=o.next;if(r!==void 0)for(;r!==void 0;)go={name:r.name,styles:r.styles,next:go},r=r.next;var s=o.styles+";";return s}return xH(e,a,t)}case"function":{if(e!==void 0){var d=go,u=t(e);return go=d,Nm(e,a,u)}break}}var p=t;if(a==null)return p;var m=a[p];return m!==void 0?m:p}function xH(e,a,t){var i="";if(Array.isArray(t))for(var n=0;n<t.length;n++)i+=Nm(e,a,t[n])+";";else for(var o in t){var r=t[o];if(typeof r!="object"){var s=r;a!=null&&a[s]!==void 0?i+=o+"{"+a[s]+"}":uC(s)&&(i+=hA(o)+":"+pC(o,s)+";")}else{if(o==="NO_COMPONENT_SELECTOR"&&zH)throw new Error(jH);if(Array.isArray(r)&&typeof r[0]=="string"&&(a==null||a[r[0]]===void 0))for(var d=0;d<r.length;d++)uC(r[d])&&(i+=hA(o)+":"+pC(o,r[d])+";");else{var u=Nm(e,a,r);switch(o){case"animation":case"animationName":{i+=hA(o)+":"+u+";";break}default:i+=o+"{"+u+"}"}}}}return i}function al(e,a,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,n="";go=void 0;var o=e[0];if(o==null||o.raw===void 0)i=!1,n+=Nm(t,a,o);else{var r=o;n+=r[0]}for(var s=1;s<e.length;s++)if(n+=Nm(t,a,e[s]),i){var d=o;n+=d[s]}mC.lastIndex=0;for(var u="",p;(p=mC.exec(n))!==null;)u+="-"+p[1];var m=rC(n)+u;return{name:m,styles:n,next:go}}var zH,wH,SH,cC,uC,hA,pC,jH,mC,go,Bm=L(()=>{l();sC();dC();ih();zH=!1,wH=/[A-Z]|^ms/g,SH=/_EMO_([^_]+?)_([^]*?)_EMO_/g,cC=function(a){return a.charCodeAt(1)===45},uC=function(a){return a!=null&&typeof a!="boolean"},hA=th(function(e){return cC(e)?e:e.replace(wH,"-$&").toLowerCase()}),pC=function(a,t){switch(a){case"animation":case"animationName":if(typeof t=="string")return t.replace(SH,function(i,n,o){return go={name:n,styles:o,next:go},n})}return lC[a]!==1&&!cC(a)&&typeof t=="number"&&t!==0?t+"px":t},jH="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";mC=/label:\s*([^\s;{]+)\s*(;|$)/g});var Rm,CH,gC,Zm,bA,qm=L(()=>{l();Rm=S(R()),CH=function(a){return a()},gC=Rm.useInsertionEffect?Rm.useInsertionEffect:!1,Zm=gC||CH,bA=gC||Rm.useLayoutEffect});var nn,bh,kC,hC,Vm,pu,on,vh,vA,bC,DH,GH,vC,yA=L(()=>{l();nn=S(R()),bh=S(R());Em();je();ah();Fm();Bm();qm();kC=!1,hC=nn.createContext(typeof HTMLElement<"u"?su({key:"css"}):null),Vm=hC.Provider,pu=function(a){return(0,bh.forwardRef)(function(t,i){var n=(0,bh.useContext)(hC);return a(t,n,i)})},on=nn.createContext({}),vh={}.hasOwnProperty,vA="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",bC=function(a,t){var i={};for(var n in t)vh.call(t,n)&&(i[n]=t[n]);return i[vA]=a,i},DH=function(a){var t=a.cache,i=a.serialized,n=a.isStringTag;return du(t,i,n),Zm(function(){return uu(t,i,n)}),null},GH=pu(function(e,a,t){var i=e.css;typeof i=="string"&&a.registered[i]!==void 0&&(i=a.registered[i]);var n=e[vA],o=[i],r="";typeof e.className=="string"?r=Mm(a.registered,o,e.className):e.className!=null&&(r=e.className+" ");var s=al(o,void 0,nn.useContext(on));r+=a.key+"-"+s.name;var d={};for(var u in e)vh.call(e,u)&&u!=="css"&&u!==vA&&!kC&&(d[u]=e[u]);return d.className=r,t&&(d.ref=t),nn.createElement(nn.Fragment,null,nn.createElement(DH,{cache:a,serialized:s,isStringTag:typeof n=="string"}),nn.createElement(n,d))}),vC=GH});function ko(){for(var e=arguments.length,a=new Array(e),t=0;t<e;t++)a[t]=arguments[t];return al(a)}function Ln(){var e=ko.apply(void 0,arguments),a="animation-"+e.name;return{name:a,styles:"@keyframes "+a+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Vr,Cse,yC,fC,mu=L(()=>{l();yA();yA();Vr=S(R());Fm();qm();Bm();Em();je();ah();Cse=S(oC()),yC=function(a,t){var i=arguments;if(t==null||!vh.call(t,"css"))return Vr.createElement.apply(void 0,i);var n=i.length,o=new Array(n);o[0]=vC,o[1]=bC(a,t);for(var r=2;r<n;r++)o[r]=i[r];return Vr.createElement.apply(null,o)};(function(e){var a;a||(a=e.JSX||(e.JSX={}))})(yC||(yC={}));fC=pu(function(e,a){var t=e.styles,i=al([t],void 0,Vr.useContext(on)),n=Vr.useRef();return bA(function(){var o=a.key+"-global",r=new a.sheet.constructor({key:o,nonce:a.sheet.nonce,container:a.sheet.container,speedy:a.sheet.isSpeedy}),s=!1,d=document.querySelector('style[data-emotion="'+o+" "+i.name+'"]');return a.sheet.tags.length&&(r.before=a.sheet.tags[0]),d!==null&&(s=!0,d.setAttribute("data-emotion",o),r.hydrate([d])),n.current=[r,s],function(){r.flush()}},[a]),bA(function(){var o=n.current,r=o[0],s=o[1];if(s){o[1]=!1;return}if(i.next!==void 0&&uu(a,i.next,!0),r.tags.length){var d=r.tags[r.tags.length-1].nextElementSibling;r.before=d,r.flush()}a.insert("",i,r,!1)},[a,i.name]),null})});function ye(e,a){if(e==null)return{};var t={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(a.indexOf(i)!==-1)continue;t[i]=e[i]}return t}var sa=L(()=>{l()});function _C(e){var a,t,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(a=0;a<n;a++)e[a]&&(t=_C(e[a]))&&(i&&(i+=" "),i+=t)}else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function WH(){for(var e,a,t=0,i="",n=arguments.length;t<n;t++)(e=arguments[t])&&(a=_C(e))&&(i&&(i+=" "),i+=a);return i}var ua,Dt=L(()=>{l();ua=WH});function EH(e){return typeof e=="string"}var fA,AC=L(()=>{l();fA=EH});var IC=L(()=>{l();AC()});function LH(e,a,t){return e===void 0||fA(e)?a:w({},a,{ownerState:w({},a.ownerState,t)})}var tl,TC=L(()=>{l();je();IC();tl=LH});var _A=L(()=>{l();TC()});var zC=da(yh=>{"use strict";l();var MH=R(),FH=Symbol.for("react.element"),NH=Symbol.for("react.fragment"),BH=Object.prototype.hasOwnProperty,RH=MH.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ZH={key:!0,ref:!0,__self:!0,__source:!0};function PC(e,a,t){var i,n={},o=null,r=null;t!==void 0&&(o=""+t),a.key!==void 0&&(o=""+a.key),a.ref!==void 0&&(r=a.ref);for(i in a)BH.call(a,i)&&!ZH.hasOwnProperty(i)&&(n[i]=a[i]);if(e&&e.defaultProps)for(i in a=e.defaultProps,a)n[i]===void 0&&(n[i]=a[i]);return{$$typeof:FH,type:e,key:o,ref:r,props:n,_owner:RH.current}}yh.Fragment=NH;yh.jsx=PC;yh.jsxs=PC});var ne=da((nle,wC)=>{"use strict";l();wC.exports=zC()});function OH(e,a=[]){if(e===void 0)return{};let t={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!a.includes(i)).forEach(i=>{t[i]=e[i]}),t}var Ga,jC=L(()=>{l();Ga=OH});var IA=L(()=>{l();jC()});function KH(e,a,t){return typeof e=="function"?e(a,t):e}var il,xC=L(()=>{l();il=KH});var TA=L(()=>{l();xC()});function ho(e,a){typeof e=="function"?e(a):e&&(e.current=a)}var DC=L(()=>{l()});var fh=L(()=>{l();DC()});function qe(...e){return GC.useMemo(()=>e.every(a=>a==null)?null:a=>{e.forEach(t=>{ho(t,a)})},e)}var GC,WC=L(()=>{"use client";l();GC=S(R());fh()});var _h=L(()=>{l();WC()});function HH(e){if(e===void 0)return{};let a={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]=="function")).forEach(t=>{a[t]=e[t]}),a}var Ah,EC=L(()=>{l();Ah=HH});var LC=L(()=>{l();EC()});function YH(e){let{getSlotProps:a,additionalProps:t,externalSlotProps:i,externalForwardedProps:n,className:o}=e;if(!a){let b=ua(t?.className,o,n?.className,i?.className),f=w({},t?.style,n?.style,i?.style),v=w({},t,n,i);return b.length>0&&(v.className=b),Object.keys(f).length>0&&(v.style=f),{props:v,internalRef:void 0}}let r=Ga(w({},n,i)),s=Ah(i),d=Ah(n),u=a(r),p=ua(u?.className,t?.className,o,n?.className,i?.className),m=w({},u?.style,t?.style,n?.style,i?.style),g=w({},u,t,d,s);return p.length>0&&(g.className=p),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:u.ref}}var nl,MC=L(()=>{l();je();Dt();IA();LC();nl=YH});var PA=L(()=>{l();MC()});function $H(e){var a;let{elementType:t,externalSlotProps:i,ownerState:n,skipResolvingSlotProps:o=!1}=e,r=ye(e,QH),s=o?{}:il(i,n),{props:d,internalRef:u}=nl(w({},r,{externalSlotProps:s})),p=qe(u,s?.ref,(a=e.additionalProps)==null?void 0:a.ref);return tl(t,w({},d,{ref:p}),n)}var QH,Km,FC=L(()=>{"use client";l();je();sa();_h();_A();PA();TA();QH=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];Km=$H});var NC=L(()=>{l();FC()});function H(){return H=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},H.apply(null,arguments)}var va=L(()=>{l()});function Aa(e,a){if(e==null)return{};var t={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(a.indexOf(i)!==-1)continue;t[i]=e[i]}return t}var rn=L(()=>{l()});function Mn(e){if(typeof e!="object"||e===null)return!1;let a=Object.getPrototypeOf(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function BC(e){if(zA.isValidElement(e)||!Mn(e))return e;let a={};return Object.keys(e).forEach(t=>{a[t]=BC(e[t])}),a}function la(e,a,t={clone:!0}){let i=t.clone?w({},e):e;return Mn(e)&&Mn(a)&&Object.keys(a).forEach(n=>{zA.isValidElement(a[n])?i[n]=a[n]:Mn(a[n])&&Object.prototype.hasOwnProperty.call(e,n)&&Mn(e[n])?i[n]=la(e[n],a[n],t):t.clone?i[n]=Mn(a[n])?BC(a[n]):a[n]:i[n]=a[n]}),i}var zA,wA=L(()=>{l();je();zA=S(R())});var RC={};Wi(RC,{default:()=>la,isPlainObject:()=>Mn});var bi=L(()=>{l();wA();wA()});function Gt(e){let a="https://mui.com/production-error/?code="+e;for(let t=1;t<arguments.length;t+=1)a+="&args[]="+encodeURIComponent(arguments[t]);return"Minified MUI error #"+e+"; visit "+a+" for the full message."}var ZC=L(()=>{l()});var qC={};Wi(qC,{default:()=>Gt});var Ur=L(()=>{l();ZC()});function UC(e){let a=`${e}`.match(JH);return a&&a[1]||""}function OC(e,a=""){return e.displayName||e.name||UC(e)||a}function VC(e,a,t){let i=OC(a);return e.displayName||(i!==""?`${t}(${i})`:t)}function SA(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return OC(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ih.ForwardRef:return VC(e,e.render,"ForwardRef");case Ih.Memo:return VC(e,e.type,"memo");default:return}}}var Ih,JH,jA=L(()=>{l();Ih=S(cA()),JH=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/});var KC={};Wi(KC,{default:()=>SA,getFunctionName:()=>UC});var HC=L(()=>{l();jA();jA()});function he(e){if(typeof e!="string")throw new Error(Gt(7));return e.charAt(0).toUpperCase()+e.slice(1)}var YC=L(()=>{l();Ur()});var QC={};Wi(QC,{default:()=>he});var cu=L(()=>{l();YC()});function Th(...e){return e.reduce((a,t)=>t==null?a:function(...n){a.apply(this,n),t.apply(this,n)},()=>{})}var $C=L(()=>{l()});var JC=L(()=>{l();$C()});function ol(e,a=166){let t;function i(...n){let o=()=>{e.apply(this,n)};clearTimeout(t),t=setTimeout(o,a)}return i.clear=()=>{clearTimeout(t)},i}var xA=L(()=>{l()});var CA=L(()=>{l();xA();xA()});function Ph(e,a){return()=>null}var XC=L(()=>{l()});var eD=L(()=>{l();XC()});function Oo(e,a){var t,i;return aD.isValidElement(e)&&a.indexOf((t=e.type.muiName)!=null?t:(i=e.type)==null||(i=i._payload)==null||(i=i.value)==null?void 0:i.muiName)!==-1}var aD,tD=L(()=>{l();aD=S(R())});var DA=L(()=>{l();tD()});function vi(e){return e&&e.ownerDocument||document}var iD=L(()=>{l()});var zh=L(()=>{l();iD()});function Or(e){return vi(e).defaultView||window}var nD=L(()=>{l();zh()});var GA=L(()=>{l();nD()});function wh(e,a){return()=>null}var oD=L(()=>{l();je()});var rD=L(()=>{l();oD()});var Sh,XH,pt,sD=L(()=>{"use client";l();Sh=S(R()),XH=typeof window<"u"?Sh.useLayoutEffect:Sh.useEffect,pt=XH});var jh=L(()=>{l();sD()});function e2(e){let[a,t]=gu.useState(e),i=e||a;return gu.useEffect(()=>{a==null&&(lD+=1,t(`mui-${lD}`))},[a]),i}function Ei(e){if(dD!==void 0){let a=dD();return e??a}return e2(e)}var gu,lD,dD,uD=L(()=>{"use client";l();gu=S(R()),lD=0;dD=gu.useId});var WA=L(()=>{l();uD()});function xh(e,a,t,i,n){return null}var pD=L(()=>{l()});var mD=L(()=>{l();pD()});function Ch({controlled:e,default:a,name:t,state:i="value"}){let{current:n}=rl.useRef(e!==void 0),[o,r]=rl.useState(a),s=n?e:o,d=rl.useCallback(u=>{n||r(u)},[]);return[s,d]}var rl,cD=L(()=>{"use client";l();rl=S(R())});var gD=L(()=>{l();cD()});function a2(e){let a=EA.useRef(e);return pt(()=>{a.current=e}),EA.useRef((...t)=>(0,a.current)(...t)).current}var EA,Ko,kD=L(()=>{"use client";l();EA=S(R());jh();Ko=a2});var LA=L(()=>{l();kD()});function MA(e,a){let t=bD.useRef(hD);return t.current===hD&&(t.current=e(a)),t}var bD,hD,vD=L(()=>{"use client";l();bD=S(R()),hD={}});function FA(e){yD.useEffect(e,t2)}var yD,t2,fD=L(()=>{"use client";l();yD=S(R()),t2=[]});function Hm(){let e=MA(ku.create).current;return FA(e.disposeEffect),e}var ku,NA=L(()=>{"use client";l();vD();fD();ku=class e{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e}start(a,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},a)}}});var _D=L(()=>{l();NA()});function o2(e){let{type:a,tagName:t}=e;return!!(t==="INPUT"&&n2[a]&&!e.readOnly||t==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function r2(e){e.metaKey||e.altKey||e.ctrlKey||(Gh=!0)}function BA(){Gh=!1}function s2(){this.visibilityState==="hidden"&&RA&&(Gh=!0)}function l2(e){e.addEventListener("keydown",r2,!0),e.addEventListener("mousedown",BA,!0),e.addEventListener("pointerdown",BA,!0),e.addEventListener("touchstart",BA,!0),e.addEventListener("visibilitychange",s2,!0)}function d2(e){let{target:a}=e;try{return a.matches(":focus-visible")}catch{}return Gh||o2(a)}function sl(){let e=Dh.useCallback(n=>{n!=null&&l2(n.ownerDocument)},[]),a=Dh.useRef(!1);function t(){return a.current?(RA=!0,i2.start(100,()=>{RA=!1}),a.current=!1,!0):!1}function i(n){return d2(n)?(a.current=!0,!0):!1}return{isFocusVisibleRef:a,onFocus:i,onBlur:t,ref:e}}var Dh,Gh,RA,i2,n2,ZA=L(()=>{"use client";l();Dh=S(R());NA();Gh=!0,RA=!1,i2=new ku,n2={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0}});var qA=L(()=>{l();ZA();ZA()});var u2,Wh,AD=L(()=>{l();u2={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Wh=u2});var ID=L(()=>{l();AD()});function Kr(e,a){let t=w({},a);return Object.keys(e).forEach(i=>{if(i.toString().match(/^(components|slots)$/))t[i]=w({},e[i],t[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){let n=e[i]||{},o=a[i];t[i]={},!o||!Object.keys(o)?t[i]=n:!n||!Object.keys(n)?t[i]=o:(t[i]=w({},o),Object.keys(n).forEach(r=>{t[i][r]=Kr(n[r],o[r])}))}else t[i]===void 0&&(t[i]=e[i])}),t}var TD=L(()=>{l();je()});var VA=L(()=>{l();TD()});function De(e,a,t=void 0){let i={};return Object.keys(e).forEach(n=>{i[n]=e[n].reduce((o,r)=>{if(r){let s=a(r);s!==""&&o.push(s),t&&t[r]&&o.push(t[r])}return o},[]).join(" ")}),i}var PD=L(()=>{l()});var Eh=L(()=>{l();PD()});var zD,p2,m2,Ho,wD=L(()=>{l();zD=e=>e,p2=()=>{let e=zD;return{configure(a){e=a},generate(a){return e(a)},reset(){e=zD}}},m2=p2(),Ho=m2});var UA=L(()=>{l();wD()});function Fn(e,a,t="Mui"){let i=OA[a];return i?`${t}-${i}`:`${Ho.generate(e)}-${a}`}var OA,KA=L(()=>{l();UA();OA={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"}});var ll=L(()=>{l();KA();KA()});function Yo(e,a,t="Mui"){let i={};return a.forEach(n=>{i[n]=Fn(e,n,t)}),i}var SD=L(()=>{l();ll()});var HA=L(()=>{l();SD()});function c2(e,a=Number.MIN_SAFE_INTEGER,t=Number.MAX_SAFE_INTEGER){return Math.max(a,Math.min(e,t))}var jD,xD=L(()=>{l();jD=c2});var CD={};Wi(CD,{default:()=>jD});var DD=L(()=>{l();xD()});function dl(e){if(parseInt(GD.version,10)>=19){var a;return(e==null||(a=e.props)==null?void 0:a.ref)||null}return e?.ref||null}var GD,WD=L(()=>{l();GD=S(R())});var YA=L(()=>{l();WD()});var ED=L(()=>{l()});var Xe=L(()=>{l();bi();cu();CA();DA();zh();GA();fh();jh();WA();LA();_h();_D();qA();ID();Eh();ll();ll();HA();UA();YA();ED()});var rG=da(Ia=>{"use strict";l();function oI(e,a){var t=e.length;e.push(a);e:for(;0<t;){var i=t-1>>>1,n=e[i];if(0<Zh(n,a))e[i]=a,e[t]=n,t=i;else break e}}function Bn(e){return e.length===0?null:e[0]}function Vh(e){if(e.length===0)return null;var a=e[0],t=e.pop();if(t!==a){e[0]=t;e:for(var i=0,n=e.length,o=n>>>1;i<o;){var r=2*(i+1)-1,s=e[r],d=r+1,u=e[d];if(0>Zh(s,t))d<n&&0>Zh(u,s)?(e[i]=u,e[d]=t,i=d):(e[i]=s,e[r]=t,i=r);else if(d<n&&0>Zh(u,t))e[i]=u,e[d]=t,i=d;else break e}}return a}function Zh(e,a){var t=e.sortIndex-a.sortIndex;return t!==0?t:e.id-a.id}typeof performance=="object"&&typeof performance.now=="function"?($D=performance,Ia.unstable_now=function(){return $D.now()}):(tI=Date,JD=tI.now(),Ia.unstable_now=function(){return tI.now()-JD});var $D,tI,JD,bo=[],Yr=[],L2=1,sn=null,Ut=3,Uh=!1,pl=!1,$m=!1,aG=typeof setTimeout=="function"?setTimeout:null,tG=typeof clearTimeout=="function"?clearTimeout:null,XD=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function rI(e){for(var a=Bn(Yr);a!==null;){if(a.callback===null)Vh(Yr);else if(a.startTime<=e)Vh(Yr),a.sortIndex=a.expirationTime,oI(bo,a);else break;a=Bn(Yr)}}function sI(e){if($m=!1,rI(e),!pl)if(Bn(bo)!==null)pl=!0,dI(lI);else{var a=Bn(Yr);a!==null&&uI(sI,a.startTime-e)}}function lI(e,a){pl=!1,$m&&($m=!1,tG(Jm),Jm=-1),Uh=!0;var t=Ut;try{for(rI(a),sn=Bn(bo);sn!==null&&(!(sn.expirationTime>a)||e&&!oG());){var i=sn.callback;if(typeof i=="function"){sn.callback=null,Ut=sn.priorityLevel;var n=i(sn.expirationTime<=a);a=Ia.unstable_now(),typeof n=="function"?sn.callback=n:sn===Bn(bo)&&Vh(bo),rI(a)}else Vh(bo);sn=Bn(bo)}if(sn!==null)var o=!0;else{var r=Bn(Yr);r!==null&&uI(sI,r.startTime-a),o=!1}return o}finally{sn=null,Ut=t,Uh=!1}}var Oh=!1,qh=null,Jm=-1,iG=5,nG=-1;function oG(){return!(Ia.unstable_now()-nG<iG)}function iI(){if(qh!==null){var e=Ia.unstable_now();nG=e;var a=!0;try{a=qh(!0,e)}finally{a?Qm():(Oh=!1,qh=null)}}else Oh=!1}var Qm;typeof XD=="function"?Qm=function(){XD(iI)}:typeof MessageChannel<"u"?(nI=new MessageChannel,eG=nI.port2,nI.port1.onmessage=iI,Qm=function(){eG.postMessage(null)}):Qm=function(){aG(iI,0)};var nI,eG;function dI(e){qh=e,Oh||(Oh=!0,Qm())}function uI(e,a){Jm=aG(function(){e(Ia.unstable_now())},a)}Ia.unstable_IdlePriority=5;Ia.unstable_ImmediatePriority=1;Ia.unstable_LowPriority=4;Ia.unstable_NormalPriority=3;Ia.unstable_Profiling=null;Ia.unstable_UserBlockingPriority=2;Ia.unstable_cancelCallback=function(e){e.callback=null};Ia.unstable_continueExecution=function(){pl||Uh||(pl=!0,dI(lI))};Ia.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):iG=0<e?Math.floor(1e3/e):5};Ia.unstable_getCurrentPriorityLevel=function(){return Ut};Ia.unstable_getFirstCallbackNode=function(){return Bn(bo)};Ia.unstable_next=function(e){switch(Ut){case 1:case 2:case 3:var a=3;break;default:a=Ut}var t=Ut;Ut=a;try{return e()}finally{Ut=t}};Ia.unstable_pauseExecution=function(){};Ia.unstable_requestPaint=function(){};Ia.unstable_runWithPriority=function(e,a){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=Ut;Ut=e;try{return a()}finally{Ut=t}};Ia.unstable_scheduleCallback=function(e,a,t){var i=Ia.unstable_now();switch(typeof t=="object"&&t!==null?(t=t.delay,t=typeof t=="number"&&0<t?i+t:i):t=i,e){case 1:var n=-1;break;case 2:n=250;break;case 5:n=1073741823;break;case 4:n=1e4;break;default:n=5e3}return n=t+n,e={id:L2++,callback:a,priorityLevel:e,startTime:t,expirationTime:n,sortIndex:-1},t>i?(e.sortIndex=t,oI(Yr,e),Bn(bo)===null&&e===Bn(Yr)&&($m?(tG(Jm),Jm=-1):$m=!0,uI(sI,t-i))):(e.sortIndex=n,oI(bo,e),pl||Uh||(pl=!0,dI(lI))),e};Ia.unstable_shouldYield=oG;Ia.unstable_wrapCallback=function(e){var a=Ut;return function(){var t=Ut;Ut=a;try{return e.apply(this,arguments)}finally{Ut=t}}}});var lG=da((yge,sG)=>{"use strict";l();sG.exports=rG()});var mL=da(Vi=>{"use strict";l();var M2=R(),Zi=lG();function ae(e){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)a+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var kW=new Set,fc={};function Tl(e,a){Mu(e,a),Mu(e+"Capture",a)}function Mu(e,a){for(fc[e]=a,e=0;e<a.length;e++)kW.add(a[e])}var tr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),GI=Object.prototype.hasOwnProperty,F2=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,dG={},uG={};function N2(e){return GI.call(uG,e)?!0:GI.call(dG,e)?!1:F2.test(e)?uG[e]=!0:(dG[e]=!0,!1)}function B2(e,a,t,i){if(t!==null&&t.type===0)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":return i?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function R2(e,a,t,i){if(a===null||typeof a>"u"||B2(e,a,t,i))return!0;if(i)return!1;if(t!==null)switch(t.type){case 3:return!a;case 4:return a===!1;case 5:return isNaN(a);case 6:return isNaN(a)||1>a}return!1}function ci(e,a,t,i,n,o,r){this.acceptsBooleans=a===2||a===3||a===4,this.attributeName=i,this.attributeNamespace=n,this.mustUseProperty=t,this.propertyName=e,this.type=a,this.sanitizeURL=o,this.removeEmptyString=r}var Lt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Lt[e]=new ci(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var a=e[0];Lt[a]=new ci(a,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Lt[e]=new ci(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Lt[e]=new ci(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Lt[e]=new ci(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Lt[e]=new ci(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Lt[e]=new ci(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Lt[e]=new ci(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Lt[e]=new ci(e,5,!1,e.toLowerCase(),null,!1,!1)});var PT=/[\-:]([a-z])/g;function zT(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var a=e.replace(PT,zT);Lt[a]=new ci(a,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var a=e.replace(PT,zT);Lt[a]=new ci(a,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var a=e.replace(PT,zT);Lt[a]=new ci(a,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Lt[e]=new ci(e,1,!1,e.toLowerCase(),null,!1,!1)});Lt.xlinkHref=new ci("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Lt[e]=new ci(e,1,!1,e.toLowerCase(),null,!0,!0)});function wT(e,a,t,i){var n=Lt.hasOwnProperty(a)?Lt[a]:null;(n!==null?n.type!==0:i||!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(R2(a,t,n,i)&&(t=null),i||n===null?N2(a)&&(t===null?e.removeAttribute(a):e.setAttribute(a,""+t)):n.mustUseProperty?e[n.propertyName]=t===null?n.type===3?!1:"":t:(a=n.attributeName,i=n.attributeNamespace,t===null?e.removeAttribute(a):(n=n.type,t=n===3||n===4&&t===!0?"":""+t,i?e.setAttributeNS(i,a,t):e.setAttribute(a,t))))}var rr=M2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Kh=Symbol.for("react.element"),yu=Symbol.for("react.portal"),fu=Symbol.for("react.fragment"),ST=Symbol.for("react.strict_mode"),WI=Symbol.for("react.profiler"),hW=Symbol.for("react.provider"),bW=Symbol.for("react.context"),jT=Symbol.for("react.forward_ref"),EI=Symbol.for("react.suspense"),LI=Symbol.for("react.suspense_list"),xT=Symbol.for("react.memo"),$r=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var vW=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var pG=Symbol.iterator;function Xm(e){return e===null||typeof e!="object"?null:(e=pG&&e[pG]||e["@@iterator"],typeof e=="function"?e:null)}var qa=Object.assign,pI;function sc(e){if(pI===void 0)try{throw Error()}catch(t){var a=t.stack.trim().match(/\n( *(at )?)/);pI=a&&a[1]||""}return`
1
+ var MK=Object.create;var Ok=Object.defineProperty;var FK=Object.getOwnPropertyDescriptor;var NK=Object.getOwnPropertyNames;var BK=Object.getPrototypeOf,RK=Object.prototype.hasOwnProperty;var L=(e,a)=>()=>(e&&(a=e(e=0)),a);var da=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports),Wi=(e,a)=>{for(var t in a)Ok(e,t,{get:a[t],enumerable:!0})},rx=(e,a,t,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let n of NK(a))!RK.call(e,n)&&n!==t&&Ok(e,n,{get:()=>a[n],enumerable:!(i=FK(a,n))||i.enumerable});return e};var S=(e,a,t)=>(t=e!=null?MK(BK(e)):{},rx(a||!e||!e.__esModule?Ok(t,"default",{value:e,enumerable:!0}):t,e)),co=e=>rx(Ok({},"__esModule",{value:!0}),e);var l=L(()=>{});function UK(e){if(e.sheet)return e.sheet;for(var a=0;a<document.styleSheets.length;a++)if(document.styleSheets[a].ownerNode===e)return document.styleSheets[a]}function OK(e){var a=document.createElement("style");return a.setAttribute("data-emotion",e.key),e.nonce!==void 0&&a.setAttribute("nonce",e.nonce),a.appendChild(document.createTextNode("")),a.setAttribute("data-s",""),a}var VK,ux,px=L(()=>{l();VK=!1;ux=function(){function e(t){var i=this;this._insertTag=function(n){var o;i.tags.length===0?i.insertionPoint?o=i.insertionPoint.nextSibling:i.prepend?o=i.container.firstChild:o=i.before:o=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(n,o),i.tags.push(n)},this.isSpeedy=t.speedy===void 0?!VK:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var a=e.prototype;return a.hydrate=function(i){i.forEach(this._insertTag)},a.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(OK(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=UK(n);try{o.insertRule(i,o.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(i));this.ctr++},a.flush=function(){this.tags.forEach(function(i){var n;return(n=i.parentNode)==null?void 0:n.removeChild(i)}),this.tags=[],this.ctr=0},e}()});var Ct,Cm,ra,Kk,Qd,$d,mx,Hk,cx,Yk=L(()=>{l();Ct="-ms-",Cm="-moz-",ra="-webkit-",Kk="comm",Qd="rule",$d="decl",mx="@import",Hk="@keyframes",cx="@layer"});function hx(e,a){return at(e,0)^45?(((a<<2^at(e,0))<<2^at(e,1))<<2^at(e,2))<<2^at(e,3):0}function Qk(e){return e.trim()}function tA(e,a){return(e=a.exec(e))?e[0]:e}function ia(e,a,t){return e.replace(a,t)}function Dm(e,a){return e.indexOf(a)}function at(e,a){return e.charCodeAt(a)|0}function qr(e,a,t){return e.slice(a,t)}function si(e){return e.length}function Jd(e){return e.length}function Xd(e,a){return a.push(e),e}function iA(e,a){return e.map(a).join("")}var gx,Xs,kx,eu=L(()=>{l();gx=Math.abs,Xs=String.fromCharCode,kx=Object.assign});function Gm(e,a,t,i,n,o,r){return{value:e,root:a,parent:t,type:i,props:n,children:o,line:$k,column:au,length:r,return:""}}function nu(e,a){return kx(Gm("",null,null,"",null,null,0),e,{length:-e.length},a)}function vx(){return st}function yx(){return st=li>0?at(iu,--li):0,au--,st===10&&(au=1,$k--),st}function di(){return st=li<bx?at(iu,li++):0,au++,st===10&&(au=1,$k++),st}function an(){return at(iu,li)}function Wm(){return li}function ou(e,a){return qr(iu,e,a)}function tu(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 Jk(e){return $k=au=1,bx=si(iu=e),li=0,[]}function Xk(e){return iu="",e}function ru(e){return Qk(ou(li-1,nA(e===91?e+2:e===40?e+1:e)))}function fx(e){for(;(st=an())&&st<33;)di();return tu(e)>2||tu(st)>3?"":" "}function _x(e,a){for(;--a&&di()&&!(st<48||st>102||st>57&&st<65||st>70&&st<97););return ou(e,Wm()+(a<6&&an()==32&&di()==32))}function nA(e){for(;di();)switch(st){case e:return li;case 34:case 39:e!==34&&e!==39&&nA(st);break;case 40:e===41&&nA(e);break;case 92:di();break}return li}function Ax(e,a){for(;di()&&e+st!==57;)if(e+st===84&&an()===47)break;return"/*"+ou(a,li-1)+"*"+Xs(e===47?e:di())}function Ix(e){for(;!tu(an());)di();return ou(e,li)}var $k,au,bx,li,st,iu,oA=L(()=>{l();eu();$k=1,au=1,bx=0,li=0,st=0,iu=""});function zx(e){return Xk(eh("",null,null,null,[""],e=Jk(e),0,[0],e))}function eh(e,a,t,i,n,o,r,s,d){for(var u=0,p=0,m=r,g=0,b=0,f=0,v=1,_=1,h=1,k=0,y="",I=n,A=o,T=i,P=y;_;)switch(f=k,k=di()){case 40:if(f!=108&&at(P,m-1)==58){Dm(P+=ia(ru(k),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:P+=ru(k);break;case 9:case 10:case 13:case 32:P+=fx(f);break;case 92:P+=_x(Wm()-1,7);continue;case 47:switch(an()){case 42:case 47:Xd(KK(Ax(di(),Wm()),a,t),d);break;default:P+="/"}break;case 123*v:s[u++]=si(P)*h;case 125*v:case 59:case 0:switch(k){case 0:case 125:_=0;case 59+p:h==-1&&(P=ia(P,/\f/g,"")),b>0&&si(P)-m&&Xd(b>32?Px(P+";",i,t,m-1):Px(ia(P," ","")+";",i,t,m-2),d);break;case 59:P+=";";default:if(Xd(T=Tx(P,a,t,u,p,n,s,y,I=[],A=[],m),o),k===123)if(p===0)eh(P,a,T,T,I,o,m,s,A);else switch(g===99&&at(P,3)===110?100:g){case 100:case 108:case 109:case 115:eh(e,T,T,i&&Xd(Tx(e,T,T,0,0,n,s,y,n,I=[],m),A),n,A,m,s,i?I:A);break;default:eh(P,T,T,T,[""],A,0,s,A)}}u=p=b=0,v=h=1,y=P="",m=r;break;case 58:m=1+si(P),b=f;default:if(v<1){if(k==123)--v;else if(k==125&&v++==0&&yx()==125)continue}switch(P+=Xs(k),k*v){case 38:h=p>0?1:(P+="\f",-1);break;case 44:s[u++]=(si(P)-1)*h,h=1;break;case 64:an()===45&&(P+=ru(di())),g=an(),p=m=si(y=P+=Ix(Wm())),k++;break;case 45:f===45&&si(P)==2&&(v=0)}}return o}function Tx(e,a,t,i,n,o,r,s,d,u,p){for(var m=n-1,g=n===0?o:[""],b=Jd(g),f=0,v=0,_=0;f<i;++f)for(var h=0,k=qr(e,m+1,m=gx(v=r[f])),y=e;h<b;++h)(y=Qk(v>0?g[h]+" "+k:ia(k,/&\f/g,g[h])))&&(d[_++]=y);return Gm(e,a,t,n===0?Qd:s,d,u,p)}function KK(e,a,t){return Gm(e,a,t,Kk,Xs(vx()),qr(e,2,-2),0)}function Px(e,a,t,i){return Gm(e,a,t,$d,qr(e,0,i),qr(e,i+1,-1),i)}var wx=L(()=>{l();Yk();eu();oA()});var Sx=L(()=>{l()});function el(e,a){for(var t="",i=Jd(e),n=0;n<i;n++)t+=a(e[n],n,e,a)||"";return t}function jx(e,a,t,i){switch(e.type){case cx:if(e.children.length)break;case mx:case $d:return e.return=e.return||e.value;case Kk:return"";case Hk:return e.return=e.value+"{"+el(e.children,i)+"}";case Qd:e.value=e.props.join(",")}return si(t=el(e.children,i))?e.return=e.value+"{"+t+"}":""}var xx=L(()=>{l();Yk();eu()});function Cx(e){var a=Jd(e);return function(t,i,n,o){for(var r="",s=0;s<a;s++)r+=e[s](t,i,n,o)||"";return r}}function Dx(e){return function(a){a.root||(a=a.return)&&e(a)}}var Gx=L(()=>{l();eu()});var Wx=L(()=>{l();Yk();eu();wx();Sx();oA();xx();Gx()});var ah=L(()=>{l()});function th(e){var a=Object.create(null);return function(t){return a[t]===void 0&&(a[t]=e(t)),a[t]}}var ih=L(()=>{l()});function Lx(e,a){switch(hx(e,a)){case 5103:return ra+"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 ra+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ra+e+Cm+e+Ct+e+e;case 6828:case 4268:return ra+e+Ct+e+e;case 6165:return ra+e+Ct+"flex-"+e+e;case 5187:return ra+e+ia(e,/(\w+).+(:[^]+)/,ra+"box-$1$2"+Ct+"flex-$1$2")+e;case 5443:return ra+e+Ct+"flex-item-"+ia(e,/flex-|-self/,"")+e;case 4675:return ra+e+Ct+"flex-line-pack"+ia(e,/align-content|flex-|-self/,"")+e;case 5548:return ra+e+Ct+ia(e,"shrink","negative")+e;case 5292:return ra+e+Ct+ia(e,"basis","preferred-size")+e;case 6060:return ra+"box-"+ia(e,"-grow","")+ra+e+Ct+ia(e,"grow","positive")+e;case 4554:return ra+ia(e,/([^-])(transform)/g,"$1"+ra+"$2")+e;case 6187:return ia(ia(ia(e,/(zoom-|grab)/,ra+"$1"),/(image-set)/,ra+"$1"),e,"")+e;case 5495:case 3959:return ia(e,/(image-set\([^]*)/,ra+"$1$`$1");case 4968:return ia(ia(e,/(.+:)(flex-)?(.*)/,ra+"box-pack:$3"+Ct+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ra+e+e;case 4095:case 3583:case 4068:case 2532:return ia(e,/(.+)-inline(.+)/,ra+"$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(si(e)-1-a>6)switch(at(e,a+1)){case 109:if(at(e,a+4)!==45)break;case 102:return ia(e,/(.+:)(.+)-([^]+)/,"$1"+ra+"$2-$3$1"+Cm+(at(e,a+3)==108?"$3":"$2-$3"))+e;case 115:return~Dm(e,"stretch")?Lx(ia(e,"stretch","fill-available"),a)+e:e}break;case 4949:if(at(e,a+1)!==115)break;case 6444:switch(at(e,si(e)-3-(~Dm(e,"!important")&&10))){case 107:return ia(e,":",":"+ra)+e;case 101:return ia(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ra+(at(e,14)===45?"inline-":"")+"box$3$1"+ra+"$2$3$1"+Ct+"$2box$3")+e}break;case 5936:switch(at(e,a+11)){case 114:return ra+e+Ct+ia(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ra+e+Ct+ia(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ra+e+Ct+ia(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ra+e+Ct+e+e}return e}var HK,YK,QK,Ex,$K,JK,XK,eH,su,Em=L(()=>{l();px();Wx();ah();ih();HK=function(a,t,i){for(var n=0,o=0;n=o,o=an(),n===38&&o===12&&(t[i]=1),!tu(o);)di();return ou(a,li)},YK=function(a,t){var i=-1,n=44;do switch(tu(n)){case 0:n===38&&an()===12&&(t[i]=1),a[i]+=HK(li-1,t,i);break;case 2:a[i]+=ru(n);break;case 4:if(n===44){a[++i]=an()===58?"&\f":"",t[i]=a[i].length;break}default:a[i]+=Xs(n)}while(n=di());return a},QK=function(a,t){return Xk(YK(Jk(a),t))},Ex=new WeakMap,$K=function(a){if(!(a.type!=="rule"||!a.parent||a.length<1)){for(var t=a.value,i=a.parent,n=a.column===i.column&&a.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(a.props.length===1&&t.charCodeAt(0)!==58&&!Ex.get(i))&&!n){Ex.set(a,!0);for(var o=[],r=QK(t,o),s=i.props,d=0,u=0;d<r.length;d++)for(var p=0;p<s.length;p++,u++)a.props[u]=o[d]?r[d].replace(/&\f/g,s[p]):s[p]+" "+r[d]}}},JK=function(a){if(a.type==="decl"){var t=a.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(a.return="",a.value="")}};XK=function(a,t,i,n){if(a.length>-1&&!a.return)switch(a.type){case $d:a.return=Lx(a.value,a.length);break;case Hk:return el([nu(a,{value:ia(a.value,"@","@"+ra)})],n);case Qd:if(a.length)return iA(a.props,function(o){switch(tA(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return el([nu(a,{props:[ia(o,/:(read-\w+)/,":"+Cm+"$1")]})],n);case"::placeholder":return el([nu(a,{props:[ia(o,/:(plac\w+)/,":"+ra+"input-$1")]}),nu(a,{props:[ia(o,/:(plac\w+)/,":"+Cm+"$1")]}),nu(a,{props:[ia(o,/:(plac\w+)/,Ct+"input-$1")]})],n)}return""})}},eH=[XK],su=function(a){var t=a.key;if(t==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(v){var _=v.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var n=a.stylisPlugins||eH,o={},r,s=[];r=a.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(v){for(var _=v.getAttribute("data-emotion").split(" "),h=1;h<_.length;h++)o[_[h]]=!0;s.push(v)});var d,u=[$K,JK];{var p,m=[jx,Dx(function(v){p.insert(v)})],g=Cx(u.concat(n,m)),b=function(_){return el(zx(_),g)};d=function(_,h,k,y){p=k,b(_?_+"{"+h.styles+"}":h.styles),y&&(f.inserted[h.name]=!0)}}var f={key:t,sheet:new ux({key:t,container:r,nonce:a.nonce,speedy:a.speedy,prepend:a.prepend,insertionPoint:a.insertionPoint}),nonce:a.nonce,inserted:o,registered:{},insert:d};return f.sheet.hydrate(s),f}});var Hx=da(Ye=>{"use strict";l();var Lm=Symbol.for("react.element"),aH=Symbol.for("react.portal"),tH=Symbol.for("react.fragment"),iH=Symbol.for("react.strict_mode"),nH=Symbol.for("react.profiler"),oH=Symbol.for("react.provider"),rH=Symbol.for("react.context"),sH=Symbol.for("react.forward_ref"),lH=Symbol.for("react.suspense"),dH=Symbol.for("react.memo"),uH=Symbol.for("react.lazy"),Mx=Symbol.iterator;function pH(e){return e===null||typeof e!="object"?null:(e=Mx&&e[Mx]||e["@@iterator"],typeof e=="function"?e:null)}var Bx={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Rx=Object.assign,Zx={};function lu(e,a,t){this.props=e,this.context=a,this.refs=Zx,this.updater=t||Bx}lu.prototype.isReactComponent={};lu.prototype.setState=function(e,a){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,a,"setState")};lu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function qx(){}qx.prototype=lu.prototype;function sA(e,a,t){this.props=e,this.context=a,this.refs=Zx,this.updater=t||Bx}var lA=sA.prototype=new qx;lA.constructor=sA;Rx(lA,lu.prototype);lA.isPureReactComponent=!0;var Fx=Array.isArray,Vx=Object.prototype.hasOwnProperty,dA={current:null},Ux={key:!0,ref:!0,__self:!0,__source:!0};function Ox(e,a,t){var i,n={},o=null,r=null;if(a!=null)for(i in a.ref!==void 0&&(r=a.ref),a.key!==void 0&&(o=""+a.key),a)Vx.call(a,i)&&!Ux.hasOwnProperty(i)&&(n[i]=a[i]);var s=arguments.length-2;if(s===1)n.children=t;else if(1<s){for(var d=Array(s),u=0;u<s;u++)d[u]=arguments[u+2];n.children=d}if(e&&e.defaultProps)for(i in s=e.defaultProps,s)n[i]===void 0&&(n[i]=s[i]);return{$$typeof:Lm,type:e,key:o,ref:r,props:n,_owner:dA.current}}function mH(e,a){return{$$typeof:Lm,type:e.type,key:a,ref:e.ref,props:e.props,_owner:e._owner}}function uA(e){return typeof e=="object"&&e!==null&&e.$$typeof===Lm}function cH(e){var a={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(t){return a[t]})}var Nx=/\/+/g;function rA(e,a){return typeof e=="object"&&e!==null&&e.key!=null?cH(""+e.key):a.toString(36)}function oh(e,a,t,i,n){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var r=!1;if(e===null)r=!0;else switch(o){case"string":case"number":r=!0;break;case"object":switch(e.$$typeof){case Lm:case aH:r=!0}}if(r)return r=e,n=n(r),e=i===""?"."+rA(r,0):i,Fx(n)?(t="",e!=null&&(t=e.replace(Nx,"$&/")+"/"),oh(n,a,t,"",function(u){return u})):n!=null&&(uA(n)&&(n=mH(n,t+(!n.key||r&&r.key===n.key?"":(""+n.key).replace(Nx,"$&/")+"/")+e)),a.push(n)),1;if(r=0,i=i===""?".":i+":",Fx(e))for(var s=0;s<e.length;s++){o=e[s];var d=i+rA(o,s);r+=oh(o,a,t,d,n)}else if(d=pH(e),typeof d=="function")for(e=d.call(e),s=0;!(o=e.next()).done;)o=o.value,d=i+rA(o,s++),r+=oh(o,a,t,d,n);else if(o==="object")throw a=String(e),Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.");return r}function nh(e,a,t){if(e==null)return e;var i=[],n=0;return oh(e,i,"","",function(o){return a.call(t,o,n++)}),i}function gH(e){if(e._status===-1){var a=e._result;a=a(),a.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=a)}if(e._status===1)return e._result.default;throw e._result}var ui={current:null},rh={transition:null},kH={ReactCurrentDispatcher:ui,ReactCurrentBatchConfig:rh,ReactCurrentOwner:dA};function Kx(){throw Error("act(...) is not supported in production builds of React.")}Ye.Children={map:nh,forEach:function(e,a,t){nh(e,function(){a.apply(this,arguments)},t)},count:function(e){var a=0;return nh(e,function(){a++}),a},toArray:function(e){return nh(e,function(a){return a})||[]},only:function(e){if(!uA(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ye.Component=lu;Ye.Fragment=tH;Ye.Profiler=nH;Ye.PureComponent=sA;Ye.StrictMode=iH;Ye.Suspense=lH;Ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kH;Ye.act=Kx;Ye.cloneElement=function(e,a,t){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=Rx({},e.props),n=e.key,o=e.ref,r=e._owner;if(a!=null){if(a.ref!==void 0&&(o=a.ref,r=dA.current),a.key!==void 0&&(n=""+a.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(d in a)Vx.call(a,d)&&!Ux.hasOwnProperty(d)&&(i[d]=a[d]===void 0&&s!==void 0?s[d]:a[d])}var d=arguments.length-2;if(d===1)i.children=t;else if(1<d){s=Array(d);for(var u=0;u<d;u++)s[u]=arguments[u+2];i.children=s}return{$$typeof:Lm,type:e.type,key:n,ref:o,props:i,_owner:r}};Ye.createContext=function(e){return e={$$typeof:rH,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:oH,_context:e},e.Consumer=e};Ye.createElement=Ox;Ye.createFactory=function(e){var a=Ox.bind(null,e);return a.type=e,a};Ye.createRef=function(){return{current:null}};Ye.forwardRef=function(e){return{$$typeof:sH,render:e}};Ye.isValidElement=uA;Ye.lazy=function(e){return{$$typeof:uH,_payload:{_status:-1,_result:e},_init:gH}};Ye.memo=function(e,a){return{$$typeof:dH,type:e,compare:a===void 0?null:a}};Ye.startTransition=function(e){var a=rh.transition;rh.transition={};try{e()}finally{rh.transition=a}};Ye.unstable_act=Kx;Ye.useCallback=function(e,a){return ui.current.useCallback(e,a)};Ye.useContext=function(e){return ui.current.useContext(e)};Ye.useDebugValue=function(){};Ye.useDeferredValue=function(e){return ui.current.useDeferredValue(e)};Ye.useEffect=function(e,a){return ui.current.useEffect(e,a)};Ye.useId=function(){return ui.current.useId()};Ye.useImperativeHandle=function(e,a,t){return ui.current.useImperativeHandle(e,a,t)};Ye.useInsertionEffect=function(e,a){return ui.current.useInsertionEffect(e,a)};Ye.useLayoutEffect=function(e,a){return ui.current.useLayoutEffect(e,a)};Ye.useMemo=function(e,a){return ui.current.useMemo(e,a)};Ye.useReducer=function(e,a,t){return ui.current.useReducer(e,a,t)};Ye.useRef=function(e){return ui.current.useRef(e)};Ye.useState=function(e){return ui.current.useState(e)};Ye.useSyncExternalStore=function(e,a,t){return ui.current.useSyncExternalStore(e,a,t)};Ye.useTransition=function(){return ui.current.useTransition()};Ye.version="18.3.1"});var R=da((Zre,Yx)=>{"use strict";l();Yx.exports=Hx()});function w(){return w=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},w.apply(null,arguments)}var je=L(()=>{l()});var $x=da(ga=>{"use strict";l();var pA=Symbol.for("react.element"),mA=Symbol.for("react.portal"),sh=Symbol.for("react.fragment"),lh=Symbol.for("react.strict_mode"),dh=Symbol.for("react.profiler"),uh=Symbol.for("react.provider"),ph=Symbol.for("react.context"),hH=Symbol.for("react.server_context"),mh=Symbol.for("react.forward_ref"),ch=Symbol.for("react.suspense"),gh=Symbol.for("react.suspense_list"),kh=Symbol.for("react.memo"),hh=Symbol.for("react.lazy"),bH=Symbol.for("react.offscreen"),Qx;Qx=Symbol.for("react.module.reference");function tn(e){if(typeof e=="object"&&e!==null){var a=e.$$typeof;switch(a){case pA:switch(e=e.type,e){case sh:case dh:case lh:case ch:case gh:return e;default:switch(e=e&&e.$$typeof,e){case hH:case ph:case mh:case hh:case kh:case uh:return e;default:return a}}case mA:return a}}}ga.ContextConsumer=ph;ga.ContextProvider=uh;ga.Element=pA;ga.ForwardRef=mh;ga.Fragment=sh;ga.Lazy=hh;ga.Memo=kh;ga.Portal=mA;ga.Profiler=dh;ga.StrictMode=lh;ga.Suspense=ch;ga.SuspenseList=gh;ga.isAsyncMode=function(){return!1};ga.isConcurrentMode=function(){return!1};ga.isContextConsumer=function(e){return tn(e)===ph};ga.isContextProvider=function(e){return tn(e)===uh};ga.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===pA};ga.isForwardRef=function(e){return tn(e)===mh};ga.isFragment=function(e){return tn(e)===sh};ga.isLazy=function(e){return tn(e)===hh};ga.isMemo=function(e){return tn(e)===kh};ga.isPortal=function(e){return tn(e)===mA};ga.isProfiler=function(e){return tn(e)===dh};ga.isStrictMode=function(e){return tn(e)===lh};ga.isSuspense=function(e){return tn(e)===ch};ga.isSuspenseList=function(e){return tn(e)===gh};ga.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===sh||e===dh||e===lh||e===ch||e===gh||e===bH||typeof e=="object"&&e!==null&&(e.$$typeof===hh||e.$$typeof===kh||e.$$typeof===uh||e.$$typeof===ph||e.$$typeof===mh||e.$$typeof===Qx||e.getModuleId!==void 0)};ga.typeOf=tn});var cA=da((Hre,Jx)=>{"use strict";l();Jx.exports=$x()});var oC=da((Qre,nC)=>{"use strict";l();var gA=cA(),vH={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},yH={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},fH={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},tC={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},kA={};kA[gA.ForwardRef]=fH;kA[gA.Memo]=tC;function Xx(e){return gA.isMemo(e)?tC:kA[e.$$typeof]||vH}var _H=Object.defineProperty,AH=Object.getOwnPropertyNames,eC=Object.getOwnPropertySymbols,IH=Object.getOwnPropertyDescriptor,TH=Object.getPrototypeOf,aC=Object.prototype;function iC(e,a,t){if(typeof a!="string"){if(aC){var i=TH(a);i&&i!==aC&&iC(e,i,t)}var n=AH(a);eC&&(n=n.concat(eC(a)));for(var o=Xx(e),r=Xx(a),s=0;s<n.length;++s){var d=n[s];if(!yH[d]&&!(t&&t[d])&&!(r&&r[d])&&!(o&&o[d])){var u=IH(a,d);try{_H(e,d,u)}catch{}}}}return e}nC.exports=iC});function Mm(e,a,t){var i="";return t.split(" ").forEach(function(n){e[n]!==void 0?a.push(e[n]+";"):n&&(i+=n+" ")}),i}var PH,du,uu,Fm=L(()=>{l();PH=!0;du=function(a,t,i){var n=a.key+"-"+t.name;(i===!1||PH===!1)&&a.registered[n]===void 0&&(a.registered[n]=t.styles)},uu=function(a,t,i){du(a,t,i);var n=a.key+"-"+t.name;if(a.inserted[t.name]===void 0){var o=t;do a.insert(t===o?"."+n:"",o,a.sheet,!0),o=o.next;while(o!==void 0)}}});function rC(e){for(var a=0,t,i=0,n=e.length;n>=4;++i,n-=4)t=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,a=(t&65535)*1540483477+((t>>>16)*59797<<16)^(a&65535)*1540483477+((a>>>16)*59797<<16);switch(n){case 3:a^=(e.charCodeAt(i+2)&255)<<16;case 2:a^=(e.charCodeAt(i+1)&255)<<8;case 1:a^=e.charCodeAt(i)&255,a=(a&65535)*1540483477+((a>>>16)*59797<<16)}return a^=a>>>13,a=(a&65535)*1540483477+((a>>>16)*59797<<16),((a^a>>>15)>>>0).toString(36)}var sC=L(()=>{l()});var lC,dC=L(()=>{l();lC={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,scale: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}});function Nm(e,a,t){if(t==null)return"";var i=t;if(i.__emotion_styles!==void 0)return i;switch(typeof t){case"boolean":return"";case"object":{var n=t;if(n.anim===1)return go={name:n.name,styles:n.styles,next:go},n.name;var o=t;if(o.styles!==void 0){var r=o.next;if(r!==void 0)for(;r!==void 0;)go={name:r.name,styles:r.styles,next:go},r=r.next;var s=o.styles+";";return s}return xH(e,a,t)}case"function":{if(e!==void 0){var d=go,u=t(e);return go=d,Nm(e,a,u)}break}}var p=t;if(a==null)return p;var m=a[p];return m!==void 0?m:p}function xH(e,a,t){var i="";if(Array.isArray(t))for(var n=0;n<t.length;n++)i+=Nm(e,a,t[n])+";";else for(var o in t){var r=t[o];if(typeof r!="object"){var s=r;a!=null&&a[s]!==void 0?i+=o+"{"+a[s]+"}":uC(s)&&(i+=hA(o)+":"+pC(o,s)+";")}else{if(o==="NO_COMPONENT_SELECTOR"&&zH)throw new Error(jH);if(Array.isArray(r)&&typeof r[0]=="string"&&(a==null||a[r[0]]===void 0))for(var d=0;d<r.length;d++)uC(r[d])&&(i+=hA(o)+":"+pC(o,r[d])+";");else{var u=Nm(e,a,r);switch(o){case"animation":case"animationName":{i+=hA(o)+":"+u+";";break}default:i+=o+"{"+u+"}"}}}}return i}function al(e,a,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,n="";go=void 0;var o=e[0];if(o==null||o.raw===void 0)i=!1,n+=Nm(t,a,o);else{var r=o;n+=r[0]}for(var s=1;s<e.length;s++)if(n+=Nm(t,a,e[s]),i){var d=o;n+=d[s]}mC.lastIndex=0;for(var u="",p;(p=mC.exec(n))!==null;)u+="-"+p[1];var m=rC(n)+u;return{name:m,styles:n,next:go}}var zH,wH,SH,cC,uC,hA,pC,jH,mC,go,Bm=L(()=>{l();sC();dC();ih();zH=!1,wH=/[A-Z]|^ms/g,SH=/_EMO_([^_]+?)_([^]*?)_EMO_/g,cC=function(a){return a.charCodeAt(1)===45},uC=function(a){return a!=null&&typeof a!="boolean"},hA=th(function(e){return cC(e)?e:e.replace(wH,"-$&").toLowerCase()}),pC=function(a,t){switch(a){case"animation":case"animationName":if(typeof t=="string")return t.replace(SH,function(i,n,o){return go={name:n,styles:o,next:go},n})}return lC[a]!==1&&!cC(a)&&typeof t=="number"&&t!==0?t+"px":t},jH="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";mC=/label:\s*([^\s;{]+)\s*(;|$)/g});var Rm,CH,gC,Zm,bA,qm=L(()=>{l();Rm=S(R()),CH=function(a){return a()},gC=Rm.useInsertionEffect?Rm.useInsertionEffect:!1,Zm=gC||CH,bA=gC||Rm.useLayoutEffect});var nn,bh,kC,hC,Vm,pu,on,vh,vA,bC,DH,GH,vC,yA=L(()=>{l();nn=S(R()),bh=S(R());Em();je();ah();Fm();Bm();qm();kC=!1,hC=nn.createContext(typeof HTMLElement<"u"?su({key:"css"}):null),Vm=hC.Provider,pu=function(a){return(0,bh.forwardRef)(function(t,i){var n=(0,bh.useContext)(hC);return a(t,n,i)})},on=nn.createContext({}),vh={}.hasOwnProperty,vA="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",bC=function(a,t){var i={};for(var n in t)vh.call(t,n)&&(i[n]=t[n]);return i[vA]=a,i},DH=function(a){var t=a.cache,i=a.serialized,n=a.isStringTag;return du(t,i,n),Zm(function(){return uu(t,i,n)}),null},GH=pu(function(e,a,t){var i=e.css;typeof i=="string"&&a.registered[i]!==void 0&&(i=a.registered[i]);var n=e[vA],o=[i],r="";typeof e.className=="string"?r=Mm(a.registered,o,e.className):e.className!=null&&(r=e.className+" ");var s=al(o,void 0,nn.useContext(on));r+=a.key+"-"+s.name;var d={};for(var u in e)vh.call(e,u)&&u!=="css"&&u!==vA&&!kC&&(d[u]=e[u]);return d.className=r,t&&(d.ref=t),nn.createElement(nn.Fragment,null,nn.createElement(DH,{cache:a,serialized:s,isStringTag:typeof n=="string"}),nn.createElement(n,d))}),vC=GH});function ko(){for(var e=arguments.length,a=new Array(e),t=0;t<e;t++)a[t]=arguments[t];return al(a)}function Ln(){var e=ko.apply(void 0,arguments),a="animation-"+e.name;return{name:a,styles:"@keyframes "+a+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Vr,Cse,yC,fC,mu=L(()=>{l();yA();yA();Vr=S(R());Fm();qm();Bm();Em();je();ah();Cse=S(oC()),yC=function(a,t){var i=arguments;if(t==null||!vh.call(t,"css"))return Vr.createElement.apply(void 0,i);var n=i.length,o=new Array(n);o[0]=vC,o[1]=bC(a,t);for(var r=2;r<n;r++)o[r]=i[r];return Vr.createElement.apply(null,o)};(function(e){var a;a||(a=e.JSX||(e.JSX={}))})(yC||(yC={}));fC=pu(function(e,a){var t=e.styles,i=al([t],void 0,Vr.useContext(on)),n=Vr.useRef();return bA(function(){var o=a.key+"-global",r=new a.sheet.constructor({key:o,nonce:a.sheet.nonce,container:a.sheet.container,speedy:a.sheet.isSpeedy}),s=!1,d=document.querySelector('style[data-emotion="'+o+" "+i.name+'"]');return a.sheet.tags.length&&(r.before=a.sheet.tags[0]),d!==null&&(s=!0,d.setAttribute("data-emotion",o),r.hydrate([d])),n.current=[r,s],function(){r.flush()}},[a]),bA(function(){var o=n.current,r=o[0],s=o[1];if(s){o[1]=!1;return}if(i.next!==void 0&&uu(a,i.next,!0),r.tags.length){var d=r.tags[r.tags.length-1].nextElementSibling;r.before=d,r.flush()}a.insert("",i,r,!1)},[a,i.name]),null})});function ye(e,a){if(e==null)return{};var t={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(a.indexOf(i)!==-1)continue;t[i]=e[i]}return t}var sa=L(()=>{l()});function _C(e){var a,t,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(a=0;a<n;a++)e[a]&&(t=_C(e[a]))&&(i&&(i+=" "),i+=t)}else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function WH(){for(var e,a,t=0,i="",n=arguments.length;t<n;t++)(e=arguments[t])&&(a=_C(e))&&(i&&(i+=" "),i+=a);return i}var ua,Dt=L(()=>{l();ua=WH});function EH(e){return typeof e=="string"}var fA,AC=L(()=>{l();fA=EH});var IC=L(()=>{l();AC()});function LH(e,a,t){return e===void 0||fA(e)?a:w({},a,{ownerState:w({},a.ownerState,t)})}var tl,TC=L(()=>{l();je();IC();tl=LH});var _A=L(()=>{l();TC()});var zC=da(yh=>{"use strict";l();var MH=R(),FH=Symbol.for("react.element"),NH=Symbol.for("react.fragment"),BH=Object.prototype.hasOwnProperty,RH=MH.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ZH={key:!0,ref:!0,__self:!0,__source:!0};function PC(e,a,t){var i,n={},o=null,r=null;t!==void 0&&(o=""+t),a.key!==void 0&&(o=""+a.key),a.ref!==void 0&&(r=a.ref);for(i in a)BH.call(a,i)&&!ZH.hasOwnProperty(i)&&(n[i]=a[i]);if(e&&e.defaultProps)for(i in a=e.defaultProps,a)n[i]===void 0&&(n[i]=a[i]);return{$$typeof:FH,type:e,key:o,ref:r,props:n,_owner:RH.current}}yh.Fragment=NH;yh.jsx=PC;yh.jsxs=PC});var ne=da((nle,wC)=>{"use strict";l();wC.exports=zC()});function OH(e,a=[]){if(e===void 0)return{};let t={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!a.includes(i)).forEach(i=>{t[i]=e[i]}),t}var Wa,jC=L(()=>{l();Wa=OH});var IA=L(()=>{l();jC()});function KH(e,a,t){return typeof e=="function"?e(a,t):e}var il,xC=L(()=>{l();il=KH});var TA=L(()=>{l();xC()});function ho(e,a){typeof e=="function"?e(a):e&&(e.current=a)}var DC=L(()=>{l()});var fh=L(()=>{l();DC()});function qe(...e){return GC.useMemo(()=>e.every(a=>a==null)?null:a=>{e.forEach(t=>{ho(t,a)})},e)}var GC,WC=L(()=>{"use client";l();GC=S(R());fh()});var _h=L(()=>{l();WC()});function HH(e){if(e===void 0)return{};let a={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]=="function")).forEach(t=>{a[t]=e[t]}),a}var Ah,EC=L(()=>{l();Ah=HH});var LC=L(()=>{l();EC()});function YH(e){let{getSlotProps:a,additionalProps:t,externalSlotProps:i,externalForwardedProps:n,className:o}=e;if(!a){let b=ua(t?.className,o,n?.className,i?.className),f=w({},t?.style,n?.style,i?.style),v=w({},t,n,i);return b.length>0&&(v.className=b),Object.keys(f).length>0&&(v.style=f),{props:v,internalRef:void 0}}let r=Wa(w({},n,i)),s=Ah(i),d=Ah(n),u=a(r),p=ua(u?.className,t?.className,o,n?.className,i?.className),m=w({},u?.style,t?.style,n?.style,i?.style),g=w({},u,t,d,s);return p.length>0&&(g.className=p),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:u.ref}}var nl,MC=L(()=>{l();je();Dt();IA();LC();nl=YH});var PA=L(()=>{l();MC()});function $H(e){var a;let{elementType:t,externalSlotProps:i,ownerState:n,skipResolvingSlotProps:o=!1}=e,r=ye(e,QH),s=o?{}:il(i,n),{props:d,internalRef:u}=nl(w({},r,{externalSlotProps:s})),p=qe(u,s?.ref,(a=e.additionalProps)==null?void 0:a.ref);return tl(t,w({},d,{ref:p}),n)}var QH,Km,FC=L(()=>{"use client";l();je();sa();_h();_A();PA();TA();QH=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];Km=$H});var NC=L(()=>{l();FC()});function H(){return H=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},H.apply(null,arguments)}var va=L(()=>{l()});function Aa(e,a){if(e==null)return{};var t={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(a.indexOf(i)!==-1)continue;t[i]=e[i]}return t}var rn=L(()=>{l()});function Mn(e){if(typeof e!="object"||e===null)return!1;let a=Object.getPrototypeOf(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function BC(e){if(zA.isValidElement(e)||!Mn(e))return e;let a={};return Object.keys(e).forEach(t=>{a[t]=BC(e[t])}),a}function la(e,a,t={clone:!0}){let i=t.clone?w({},e):e;return Mn(e)&&Mn(a)&&Object.keys(a).forEach(n=>{zA.isValidElement(a[n])?i[n]=a[n]:Mn(a[n])&&Object.prototype.hasOwnProperty.call(e,n)&&Mn(e[n])?i[n]=la(e[n],a[n],t):t.clone?i[n]=Mn(a[n])?BC(a[n]):a[n]:i[n]=a[n]}),i}var zA,wA=L(()=>{l();je();zA=S(R())});var RC={};Wi(RC,{default:()=>la,isPlainObject:()=>Mn});var bi=L(()=>{l();wA();wA()});function Gt(e){let a="https://mui.com/production-error/?code="+e;for(let t=1;t<arguments.length;t+=1)a+="&args[]="+encodeURIComponent(arguments[t]);return"Minified MUI error #"+e+"; visit "+a+" for the full message."}var ZC=L(()=>{l()});var qC={};Wi(qC,{default:()=>Gt});var Ur=L(()=>{l();ZC()});function UC(e){let a=`${e}`.match(JH);return a&&a[1]||""}function OC(e,a=""){return e.displayName||e.name||UC(e)||a}function VC(e,a,t){let i=OC(a);return e.displayName||(i!==""?`${t}(${i})`:t)}function SA(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return OC(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ih.ForwardRef:return VC(e,e.render,"ForwardRef");case Ih.Memo:return VC(e,e.type,"memo");default:return}}}var Ih,JH,jA=L(()=>{l();Ih=S(cA()),JH=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/});var KC={};Wi(KC,{default:()=>SA,getFunctionName:()=>UC});var HC=L(()=>{l();jA();jA()});function he(e){if(typeof e!="string")throw new Error(Gt(7));return e.charAt(0).toUpperCase()+e.slice(1)}var YC=L(()=>{l();Ur()});var QC={};Wi(QC,{default:()=>he});var cu=L(()=>{l();YC()});function Th(...e){return e.reduce((a,t)=>t==null?a:function(...n){a.apply(this,n),t.apply(this,n)},()=>{})}var $C=L(()=>{l()});var JC=L(()=>{l();$C()});function ol(e,a=166){let t;function i(...n){let o=()=>{e.apply(this,n)};clearTimeout(t),t=setTimeout(o,a)}return i.clear=()=>{clearTimeout(t)},i}var xA=L(()=>{l()});var CA=L(()=>{l();xA();xA()});function Ph(e,a){return()=>null}var XC=L(()=>{l()});var eD=L(()=>{l();XC()});function Oo(e,a){var t,i;return aD.isValidElement(e)&&a.indexOf((t=e.type.muiName)!=null?t:(i=e.type)==null||(i=i._payload)==null||(i=i.value)==null?void 0:i.muiName)!==-1}var aD,tD=L(()=>{l();aD=S(R())});var DA=L(()=>{l();tD()});function vi(e){return e&&e.ownerDocument||document}var iD=L(()=>{l()});var zh=L(()=>{l();iD()});function Or(e){return vi(e).defaultView||window}var nD=L(()=>{l();zh()});var GA=L(()=>{l();nD()});function wh(e,a){return()=>null}var oD=L(()=>{l();je()});var rD=L(()=>{l();oD()});var Sh,XH,pt,sD=L(()=>{"use client";l();Sh=S(R()),XH=typeof window<"u"?Sh.useLayoutEffect:Sh.useEffect,pt=XH});var jh=L(()=>{l();sD()});function e2(e){let[a,t]=gu.useState(e),i=e||a;return gu.useEffect(()=>{a==null&&(lD+=1,t(`mui-${lD}`))},[a]),i}function Ei(e){if(dD!==void 0){let a=dD();return e??a}return e2(e)}var gu,lD,dD,uD=L(()=>{"use client";l();gu=S(R()),lD=0;dD=gu.useId});var WA=L(()=>{l();uD()});function xh(e,a,t,i,n){return null}var pD=L(()=>{l()});var mD=L(()=>{l();pD()});function Ch({controlled:e,default:a,name:t,state:i="value"}){let{current:n}=rl.useRef(e!==void 0),[o,r]=rl.useState(a),s=n?e:o,d=rl.useCallback(u=>{n||r(u)},[]);return[s,d]}var rl,cD=L(()=>{"use client";l();rl=S(R())});var gD=L(()=>{l();cD()});function a2(e){let a=EA.useRef(e);return pt(()=>{a.current=e}),EA.useRef((...t)=>(0,a.current)(...t)).current}var EA,Ko,kD=L(()=>{"use client";l();EA=S(R());jh();Ko=a2});var LA=L(()=>{l();kD()});function MA(e,a){let t=bD.useRef(hD);return t.current===hD&&(t.current=e(a)),t}var bD,hD,vD=L(()=>{"use client";l();bD=S(R()),hD={}});function FA(e){yD.useEffect(e,t2)}var yD,t2,fD=L(()=>{"use client";l();yD=S(R()),t2=[]});function Hm(){let e=MA(ku.create).current;return FA(e.disposeEffect),e}var ku,NA=L(()=>{"use client";l();vD();fD();ku=class e{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e}start(a,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},a)}}});var _D=L(()=>{l();NA()});function o2(e){let{type:a,tagName:t}=e;return!!(t==="INPUT"&&n2[a]&&!e.readOnly||t==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function r2(e){e.metaKey||e.altKey||e.ctrlKey||(Gh=!0)}function BA(){Gh=!1}function s2(){this.visibilityState==="hidden"&&RA&&(Gh=!0)}function l2(e){e.addEventListener("keydown",r2,!0),e.addEventListener("mousedown",BA,!0),e.addEventListener("pointerdown",BA,!0),e.addEventListener("touchstart",BA,!0),e.addEventListener("visibilitychange",s2,!0)}function d2(e){let{target:a}=e;try{return a.matches(":focus-visible")}catch{}return Gh||o2(a)}function sl(){let e=Dh.useCallback(n=>{n!=null&&l2(n.ownerDocument)},[]),a=Dh.useRef(!1);function t(){return a.current?(RA=!0,i2.start(100,()=>{RA=!1}),a.current=!1,!0):!1}function i(n){return d2(n)?(a.current=!0,!0):!1}return{isFocusVisibleRef:a,onFocus:i,onBlur:t,ref:e}}var Dh,Gh,RA,i2,n2,ZA=L(()=>{"use client";l();Dh=S(R());NA();Gh=!0,RA=!1,i2=new ku,n2={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0}});var qA=L(()=>{l();ZA();ZA()});var u2,Wh,AD=L(()=>{l();u2={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Wh=u2});var ID=L(()=>{l();AD()});function Kr(e,a){let t=w({},a);return Object.keys(e).forEach(i=>{if(i.toString().match(/^(components|slots)$/))t[i]=w({},e[i],t[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){let n=e[i]||{},o=a[i];t[i]={},!o||!Object.keys(o)?t[i]=n:!n||!Object.keys(n)?t[i]=o:(t[i]=w({},o),Object.keys(n).forEach(r=>{t[i][r]=Kr(n[r],o[r])}))}else t[i]===void 0&&(t[i]=e[i])}),t}var TD=L(()=>{l();je()});var VA=L(()=>{l();TD()});function De(e,a,t=void 0){let i={};return Object.keys(e).forEach(n=>{i[n]=e[n].reduce((o,r)=>{if(r){let s=a(r);s!==""&&o.push(s),t&&t[r]&&o.push(t[r])}return o},[]).join(" ")}),i}var PD=L(()=>{l()});var Eh=L(()=>{l();PD()});var zD,p2,m2,Ho,wD=L(()=>{l();zD=e=>e,p2=()=>{let e=zD;return{configure(a){e=a},generate(a){return e(a)},reset(){e=zD}}},m2=p2(),Ho=m2});var UA=L(()=>{l();wD()});function Fn(e,a,t="Mui"){let i=OA[a];return i?`${t}-${i}`:`${Ho.generate(e)}-${a}`}var OA,KA=L(()=>{l();UA();OA={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"}});var ll=L(()=>{l();KA();KA()});function Yo(e,a,t="Mui"){let i={};return a.forEach(n=>{i[n]=Fn(e,n,t)}),i}var SD=L(()=>{l();ll()});var HA=L(()=>{l();SD()});function c2(e,a=Number.MIN_SAFE_INTEGER,t=Number.MAX_SAFE_INTEGER){return Math.max(a,Math.min(e,t))}var jD,xD=L(()=>{l();jD=c2});var CD={};Wi(CD,{default:()=>jD});var DD=L(()=>{l();xD()});function dl(e){if(parseInt(GD.version,10)>=19){var a;return(e==null||(a=e.props)==null?void 0:a.ref)||null}return e?.ref||null}var GD,WD=L(()=>{l();GD=S(R())});var YA=L(()=>{l();WD()});var ED=L(()=>{l()});var Xe=L(()=>{l();bi();cu();CA();DA();zh();GA();fh();jh();WA();LA();_h();_D();qA();ID();Eh();ll();ll();HA();UA();YA();ED()});var rG=da(Ia=>{"use strict";l();function oI(e,a){var t=e.length;e.push(a);e:for(;0<t;){var i=t-1>>>1,n=e[i];if(0<Zh(n,a))e[i]=a,e[t]=n,t=i;else break e}}function Bn(e){return e.length===0?null:e[0]}function Vh(e){if(e.length===0)return null;var a=e[0],t=e.pop();if(t!==a){e[0]=t;e:for(var i=0,n=e.length,o=n>>>1;i<o;){var r=2*(i+1)-1,s=e[r],d=r+1,u=e[d];if(0>Zh(s,t))d<n&&0>Zh(u,s)?(e[i]=u,e[d]=t,i=d):(e[i]=s,e[r]=t,i=r);else if(d<n&&0>Zh(u,t))e[i]=u,e[d]=t,i=d;else break e}}return a}function Zh(e,a){var t=e.sortIndex-a.sortIndex;return t!==0?t:e.id-a.id}typeof performance=="object"&&typeof performance.now=="function"?($D=performance,Ia.unstable_now=function(){return $D.now()}):(tI=Date,JD=tI.now(),Ia.unstable_now=function(){return tI.now()-JD});var $D,tI,JD,bo=[],Yr=[],L2=1,sn=null,Ut=3,Uh=!1,pl=!1,$m=!1,aG=typeof setTimeout=="function"?setTimeout:null,tG=typeof clearTimeout=="function"?clearTimeout:null,XD=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function rI(e){for(var a=Bn(Yr);a!==null;){if(a.callback===null)Vh(Yr);else if(a.startTime<=e)Vh(Yr),a.sortIndex=a.expirationTime,oI(bo,a);else break;a=Bn(Yr)}}function sI(e){if($m=!1,rI(e),!pl)if(Bn(bo)!==null)pl=!0,dI(lI);else{var a=Bn(Yr);a!==null&&uI(sI,a.startTime-e)}}function lI(e,a){pl=!1,$m&&($m=!1,tG(Jm),Jm=-1),Uh=!0;var t=Ut;try{for(rI(a),sn=Bn(bo);sn!==null&&(!(sn.expirationTime>a)||e&&!oG());){var i=sn.callback;if(typeof i=="function"){sn.callback=null,Ut=sn.priorityLevel;var n=i(sn.expirationTime<=a);a=Ia.unstable_now(),typeof n=="function"?sn.callback=n:sn===Bn(bo)&&Vh(bo),rI(a)}else Vh(bo);sn=Bn(bo)}if(sn!==null)var o=!0;else{var r=Bn(Yr);r!==null&&uI(sI,r.startTime-a),o=!1}return o}finally{sn=null,Ut=t,Uh=!1}}var Oh=!1,qh=null,Jm=-1,iG=5,nG=-1;function oG(){return!(Ia.unstable_now()-nG<iG)}function iI(){if(qh!==null){var e=Ia.unstable_now();nG=e;var a=!0;try{a=qh(!0,e)}finally{a?Qm():(Oh=!1,qh=null)}}else Oh=!1}var Qm;typeof XD=="function"?Qm=function(){XD(iI)}:typeof MessageChannel<"u"?(nI=new MessageChannel,eG=nI.port2,nI.port1.onmessage=iI,Qm=function(){eG.postMessage(null)}):Qm=function(){aG(iI,0)};var nI,eG;function dI(e){qh=e,Oh||(Oh=!0,Qm())}function uI(e,a){Jm=aG(function(){e(Ia.unstable_now())},a)}Ia.unstable_IdlePriority=5;Ia.unstable_ImmediatePriority=1;Ia.unstable_LowPriority=4;Ia.unstable_NormalPriority=3;Ia.unstable_Profiling=null;Ia.unstable_UserBlockingPriority=2;Ia.unstable_cancelCallback=function(e){e.callback=null};Ia.unstable_continueExecution=function(){pl||Uh||(pl=!0,dI(lI))};Ia.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):iG=0<e?Math.floor(1e3/e):5};Ia.unstable_getCurrentPriorityLevel=function(){return Ut};Ia.unstable_getFirstCallbackNode=function(){return Bn(bo)};Ia.unstable_next=function(e){switch(Ut){case 1:case 2:case 3:var a=3;break;default:a=Ut}var t=Ut;Ut=a;try{return e()}finally{Ut=t}};Ia.unstable_pauseExecution=function(){};Ia.unstable_requestPaint=function(){};Ia.unstable_runWithPriority=function(e,a){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=Ut;Ut=e;try{return a()}finally{Ut=t}};Ia.unstable_scheduleCallback=function(e,a,t){var i=Ia.unstable_now();switch(typeof t=="object"&&t!==null?(t=t.delay,t=typeof t=="number"&&0<t?i+t:i):t=i,e){case 1:var n=-1;break;case 2:n=250;break;case 5:n=1073741823;break;case 4:n=1e4;break;default:n=5e3}return n=t+n,e={id:L2++,callback:a,priorityLevel:e,startTime:t,expirationTime:n,sortIndex:-1},t>i?(e.sortIndex=t,oI(Yr,e),Bn(bo)===null&&e===Bn(Yr)&&($m?(tG(Jm),Jm=-1):$m=!0,uI(sI,t-i))):(e.sortIndex=n,oI(bo,e),pl||Uh||(pl=!0,dI(lI))),e};Ia.unstable_shouldYield=oG;Ia.unstable_wrapCallback=function(e){var a=Ut;return function(){var t=Ut;Ut=a;try{return e.apply(this,arguments)}finally{Ut=t}}}});var lG=da((yge,sG)=>{"use strict";l();sG.exports=rG()});var mL=da(Vi=>{"use strict";l();var M2=R(),Zi=lG();function ae(e){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)a+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var kW=new Set,fc={};function Tl(e,a){Mu(e,a),Mu(e+"Capture",a)}function Mu(e,a){for(fc[e]=a,e=0;e<a.length;e++)kW.add(a[e])}var tr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),GI=Object.prototype.hasOwnProperty,F2=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,dG={},uG={};function N2(e){return GI.call(uG,e)?!0:GI.call(dG,e)?!1:F2.test(e)?uG[e]=!0:(dG[e]=!0,!1)}function B2(e,a,t,i){if(t!==null&&t.type===0)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":return i?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function R2(e,a,t,i){if(a===null||typeof a>"u"||B2(e,a,t,i))return!0;if(i)return!1;if(t!==null)switch(t.type){case 3:return!a;case 4:return a===!1;case 5:return isNaN(a);case 6:return isNaN(a)||1>a}return!1}function ci(e,a,t,i,n,o,r){this.acceptsBooleans=a===2||a===3||a===4,this.attributeName=i,this.attributeNamespace=n,this.mustUseProperty=t,this.propertyName=e,this.type=a,this.sanitizeURL=o,this.removeEmptyString=r}var Lt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Lt[e]=new ci(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var a=e[0];Lt[a]=new ci(a,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Lt[e]=new ci(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Lt[e]=new ci(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Lt[e]=new ci(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Lt[e]=new ci(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Lt[e]=new ci(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Lt[e]=new ci(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Lt[e]=new ci(e,5,!1,e.toLowerCase(),null,!1,!1)});var PT=/[\-:]([a-z])/g;function zT(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var a=e.replace(PT,zT);Lt[a]=new ci(a,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var a=e.replace(PT,zT);Lt[a]=new ci(a,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var a=e.replace(PT,zT);Lt[a]=new ci(a,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Lt[e]=new ci(e,1,!1,e.toLowerCase(),null,!1,!1)});Lt.xlinkHref=new ci("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Lt[e]=new ci(e,1,!1,e.toLowerCase(),null,!0,!0)});function wT(e,a,t,i){var n=Lt.hasOwnProperty(a)?Lt[a]:null;(n!==null?n.type!==0:i||!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(R2(a,t,n,i)&&(t=null),i||n===null?N2(a)&&(t===null?e.removeAttribute(a):e.setAttribute(a,""+t)):n.mustUseProperty?e[n.propertyName]=t===null?n.type===3?!1:"":t:(a=n.attributeName,i=n.attributeNamespace,t===null?e.removeAttribute(a):(n=n.type,t=n===3||n===4&&t===!0?"":""+t,i?e.setAttributeNS(i,a,t):e.setAttribute(a,t))))}var rr=M2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Kh=Symbol.for("react.element"),yu=Symbol.for("react.portal"),fu=Symbol.for("react.fragment"),ST=Symbol.for("react.strict_mode"),WI=Symbol.for("react.profiler"),hW=Symbol.for("react.provider"),bW=Symbol.for("react.context"),jT=Symbol.for("react.forward_ref"),EI=Symbol.for("react.suspense"),LI=Symbol.for("react.suspense_list"),xT=Symbol.for("react.memo"),$r=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var vW=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var pG=Symbol.iterator;function Xm(e){return e===null||typeof e!="object"?null:(e=pG&&e[pG]||e["@@iterator"],typeof e=="function"?e:null)}var qa=Object.assign,pI;function sc(e){if(pI===void 0)try{throw Error()}catch(t){var a=t.stack.trim().match(/\n( *(at )?)/);pI=a&&a[1]||""}return`
2
2
  `+pI+e}var mI=!1;function cI(e,a){if(!e||mI)return"";mI=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(a)if(a=function(){throw Error()},Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(u){var i=u}Reflect.construct(e,[],a)}else{try{a.call()}catch(u){i=u}e.call(a.prototype)}else{try{throw Error()}catch(u){i=u}e()}}catch(u){if(u&&i&&typeof u.stack=="string"){for(var n=u.stack.split(`
3
3
  `),o=i.stack.split(`
4
4
  `),r=n.length-1,s=o.length-1;1<=r&&0<=s&&n[r]!==o[s];)s--;for(;1<=r&&0<=s;r--,s--)if(n[r]!==o[s]){if(r!==1||s!==1)do if(r--,s--,0>s||n[r]!==o[s]){var d=`
5
5
  `+n[r].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=r&&0<=s);break}}}finally{mI=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?sc(e):""}function Z2(e){switch(e.tag){case 5:return sc(e.type);case 16:return sc("Lazy");case 13:return sc("Suspense");case 19:return sc("SuspenseList");case 0:case 2:case 15:return e=cI(e.type,!1),e;case 11:return e=cI(e.type.render,!1),e;case 1:return e=cI(e.type,!0),e;default:return""}}function MI(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fu:return"Fragment";case yu:return"Portal";case WI:return"Profiler";case ST:return"StrictMode";case EI:return"Suspense";case LI:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case bW:return(e.displayName||"Context")+".Consumer";case hW:return(e._context.displayName||"Context")+".Provider";case jT:var a=e.render;return e=e.displayName,e||(e=a.displayName||a.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xT:return a=e.displayName||null,a!==null?a:MI(e.type)||"Memo";case $r:a=e._payload,e=e._init;try{return MI(e(a))}catch{}}return null}function q2(e){var a=e.type;switch(e.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=a.render,e=e.displayName||e.name||"",a.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return MI(a);case 8:return a===ST?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function ps(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function yW(e){var a=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function V2(e){var a=yW(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,a),i=""+e[a];if(!e.hasOwnProperty(a)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var n=t.get,o=t.set;return Object.defineProperty(e,a,{configurable:!0,get:function(){return n.call(this)},set:function(r){i=""+r,o.call(this,r)}}),Object.defineProperty(e,a,{enumerable:t.enumerable}),{getValue:function(){return i},setValue:function(r){i=""+r},stopTracking:function(){e._valueTracker=null,delete e[a]}}}}function Hh(e){e._valueTracker||(e._valueTracker=V2(e))}function fW(e){if(!e)return!1;var a=e._valueTracker;if(!a)return!0;var t=a.getValue(),i="";return e&&(i=yW(e)?e.checked?"true":"false":e.value),e=i,e!==t?(a.setValue(e),!0):!1}function Ab(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function FI(e,a){var t=a.checked;return qa({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function mG(e,a){var t=a.defaultValue==null?"":a.defaultValue,i=a.checked!=null?a.checked:a.defaultChecked;t=ps(a.value!=null?a.value:t),e._wrapperState={initialChecked:i,initialValue:t,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function _W(e,a){a=a.checked,a!=null&&wT(e,"checked",a,!1)}function NI(e,a){_W(e,a);var t=ps(a.value),i=a.type;if(t!=null)i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}a.hasOwnProperty("value")?BI(e,a.type,t):a.hasOwnProperty("defaultValue")&&BI(e,a.type,ps(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(e.defaultChecked=!!a.defaultChecked)}function cG(e,a,t){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var i=a.type;if(!(i!=="submit"&&i!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+e._wrapperState.initialValue,t||a===e.value||(e.value=a),e.defaultValue=a}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function BI(e,a,t){(a!=="number"||Ab(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var lc=Array.isArray;function Cu(e,a,t,i){if(e=e.options,a){a={};for(var n=0;n<t.length;n++)a["$"+t[n]]=!0;for(t=0;t<e.length;t++)n=a.hasOwnProperty("$"+e[t].value),e[t].selected!==n&&(e[t].selected=n),n&&i&&(e[t].defaultSelected=!0)}else{for(t=""+ps(t),a=null,n=0;n<e.length;n++){if(e[n].value===t){e[n].selected=!0,i&&(e[n].defaultSelected=!0);return}a!==null||e[n].disabled||(a=e[n])}a!==null&&(a.selected=!0)}}function RI(e,a){if(a.dangerouslySetInnerHTML!=null)throw Error(ae(91));return qa({},a,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function gG(e,a){var t=a.value;if(t==null){if(t=a.children,a=a.defaultValue,t!=null){if(a!=null)throw Error(ae(92));if(lc(t)){if(1<t.length)throw Error(ae(93));t=t[0]}a=t}a==null&&(a=""),t=a}e._wrapperState={initialValue:ps(t)}}function AW(e,a){var t=ps(a.value),i=ps(a.defaultValue);t!=null&&(t=""+t,t!==e.value&&(e.value=t),a.defaultValue==null&&e.defaultValue!==t&&(e.defaultValue=t)),i!=null&&(e.defaultValue=""+i)}function kG(e){var a=e.textContent;a===e._wrapperState.initialValue&&a!==""&&a!==null&&(e.value=a)}function IW(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ZI(e,a){return e==null||e==="http://www.w3.org/1999/xhtml"?IW(a):e==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Yh,TW=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,t,i,n){MSApp.execUnsafeLocalFunction(function(){return e(a,t,i,n)})}:e}(function(e,a){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=a;else{for(Yh=Yh||document.createElement("div"),Yh.innerHTML="<svg>"+a.valueOf().toString()+"</svg>",a=Yh.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;a.firstChild;)e.appendChild(a.firstChild)}});function _c(e,a){if(a){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=a;return}}e.textContent=a}var pc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},U2=["Webkit","ms","Moz","O"];Object.keys(pc).forEach(function(e){U2.forEach(function(a){a=a+e.charAt(0).toUpperCase()+e.substring(1),pc[a]=pc[e]})});function PW(e,a,t){return a==null||typeof a=="boolean"||a===""?"":t||typeof a!="number"||a===0||pc.hasOwnProperty(e)&&pc[e]?(""+a).trim():a+"px"}function zW(e,a){e=e.style;for(var t in a)if(a.hasOwnProperty(t)){var i=t.indexOf("--")===0,n=PW(t,a[t],i);t==="float"&&(t="cssFloat"),i?e.setProperty(t,n):e[t]=n}}var O2=qa({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function qI(e,a){if(a){if(O2[e]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(ae(137,e));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(ae(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(ae(61))}if(a.style!=null&&typeof a.style!="object")throw Error(ae(62))}}function VI(e,a){if(e.indexOf("-")===-1)return typeof a.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var UI=null;function CT(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var OI=null,Du=null,Gu=null;function hG(e){if(e=Nc(e)){if(typeof OI!="function")throw Error(ae(280));var a=e.stateNode;a&&(a=Qb(a),OI(e.stateNode,e.type,a))}}function wW(e){Du?Gu?Gu.push(e):Gu=[e]:Du=e}function SW(){if(Du){var e=Du,a=Gu;if(Gu=Du=null,hG(e),a)for(e=0;e<a.length;e++)hG(a[e])}}function jW(e,a){return e(a)}function xW(){}var gI=!1;function CW(e,a,t){if(gI)return e(a,t);gI=!0;try{return jW(e,a,t)}finally{gI=!1,(Du!==null||Gu!==null)&&(xW(),SW())}}function Ac(e,a){var t=e.stateNode;if(t===null)return null;var i=Qb(t);if(i===null)return null;t=i[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(t&&typeof t!="function")throw Error(ae(231,a,typeof t));return t}var KI=!1;if(tr)try{bu={},Object.defineProperty(bu,"passive",{get:function(){KI=!0}}),window.addEventListener("test",bu,bu),window.removeEventListener("test",bu,bu)}catch{KI=!1}var bu;function K2(e,a,t,i,n,o,r,s,d){var u=Array.prototype.slice.call(arguments,3);try{a.apply(t,u)}catch(p){this.onError(p)}}var mc=!1,Ib=null,Tb=!1,HI=null,H2={onError:function(e){mc=!0,Ib=e}};function Y2(e,a,t,i,n,o,r,s,d){mc=!1,Ib=null,K2.apply(H2,arguments)}function Q2(e,a,t,i,n,o,r,s,d){if(Y2.apply(this,arguments),mc){if(mc){var u=Ib;mc=!1,Ib=null}else throw Error(ae(198));Tb||(Tb=!0,HI=u)}}function Pl(e){var a=e,t=e;if(e.alternate)for(;a.return;)a=a.return;else{e=a;do a=e,(a.flags&4098)!==0&&(t=a.return),e=a.return;while(e)}return a.tag===3?t:null}function DW(e){if(e.tag===13){var a=e.memoizedState;if(a===null&&(e=e.alternate,e!==null&&(a=e.memoizedState)),a!==null)return a.dehydrated}return null}function bG(e){if(Pl(e)!==e)throw Error(ae(188))}function $2(e){var a=e.alternate;if(!a){if(a=Pl(e),a===null)throw Error(ae(188));return a!==e?null:e}for(var t=e,i=a;;){var n=t.return;if(n===null)break;var o=n.alternate;if(o===null){if(i=n.return,i!==null){t=i;continue}break}if(n.child===o.child){for(o=n.child;o;){if(o===t)return bG(n),e;if(o===i)return bG(n),a;o=o.sibling}throw Error(ae(188))}if(t.return!==i.return)t=n,i=o;else{for(var r=!1,s=n.child;s;){if(s===t){r=!0,t=n,i=o;break}if(s===i){r=!0,i=n,t=o;break}s=s.sibling}if(!r){for(s=o.child;s;){if(s===t){r=!0,t=o,i=n;break}if(s===i){r=!0,i=o,t=n;break}s=s.sibling}if(!r)throw Error(ae(189))}}if(t.alternate!==i)throw Error(ae(190))}if(t.tag!==3)throw Error(ae(188));return t.stateNode.current===t?e:a}function GW(e){return e=$2(e),e!==null?WW(e):null}function WW(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var a=WW(e);if(a!==null)return a;e=e.sibling}return null}var EW=Zi.unstable_scheduleCallback,vG=Zi.unstable_cancelCallback,J2=Zi.unstable_shouldYield,X2=Zi.unstable_requestPaint,tt=Zi.unstable_now,eY=Zi.unstable_getCurrentPriorityLevel,DT=Zi.unstable_ImmediatePriority,LW=Zi.unstable_UserBlockingPriority,Pb=Zi.unstable_NormalPriority,aY=Zi.unstable_LowPriority,MW=Zi.unstable_IdlePriority,Ob=null,_o=null;function tY(e){if(_o&&typeof _o.onCommitFiberRoot=="function")try{_o.onCommitFiberRoot(Ob,e,void 0,(e.current.flags&128)===128)}catch{}}var Un=Math.clz32?Math.clz32:oY,iY=Math.log,nY=Math.LN2;function oY(e){return e>>>=0,e===0?32:31-(iY(e)/nY|0)|0}var Qh=64,$h=4194304;function dc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function zb(e,a){var t=e.pendingLanes;if(t===0)return 0;var i=0,n=e.suspendedLanes,o=e.pingedLanes,r=t&268435455;if(r!==0){var s=r&~n;s!==0?i=dc(s):(o&=r,o!==0&&(i=dc(o)))}else r=t&~n,r!==0?i=dc(r):o!==0&&(i=dc(o));if(i===0)return 0;if(a!==0&&a!==i&&(a&n)===0&&(n=i&-i,o=a&-a,n>=o||n===16&&(o&4194240)!==0))return a;if((i&4)!==0&&(i|=t&16),a=e.entangledLanes,a!==0)for(e=e.entanglements,a&=i;0<a;)t=31-Un(a),n=1<<t,i|=e[t],a&=~n;return i}function rY(e,a){switch(e){case 1:case 2:case 4:return a+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function sY(e,a){for(var t=e.suspendedLanes,i=e.pingedLanes,n=e.expirationTimes,o=e.pendingLanes;0<o;){var r=31-Un(o),s=1<<r,d=n[r];d===-1?((s&t)===0||(s&i)!==0)&&(n[r]=rY(s,a)):d<=a&&(e.expiredLanes|=s),o&=~s}}function YI(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function FW(){var e=Qh;return Qh<<=1,(Qh&4194240)===0&&(Qh=64),e}function kI(e){for(var a=[],t=0;31>t;t++)a.push(e);return a}function Mc(e,a,t){e.pendingLanes|=a,a!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,a=31-Un(a),e[a]=t}function lY(e,a){var t=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0<t;){var n=31-Un(t),o=1<<n;a[n]=0,i[n]=-1,e[n]=-1,t&=~o}}function GT(e,a){var t=e.entangledLanes|=a;for(e=e.entanglements;t;){var i=31-Un(t),n=1<<i;n&a|e[i]&a&&(e[i]|=a),t&=~n}}var ka=0;function NW(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var BW,WT,RW,ZW,qW,QI=!1,Jh=[],is=null,ns=null,os=null,Ic=new Map,Tc=new Map,Xr=[],dY="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function yG(e,a){switch(e){case"focusin":case"focusout":is=null;break;case"dragenter":case"dragleave":ns=null;break;case"mouseover":case"mouseout":os=null;break;case"pointerover":case"pointerout":Ic.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tc.delete(a.pointerId)}}function ec(e,a,t,i,n,o){return e===null||e.nativeEvent!==o?(e={blockedOn:a,domEventName:t,eventSystemFlags:i,nativeEvent:o,targetContainers:[n]},a!==null&&(a=Nc(a),a!==null&&WT(a)),e):(e.eventSystemFlags|=i,a=e.targetContainers,n!==null&&a.indexOf(n)===-1&&a.push(n),e)}function uY(e,a,t,i,n){switch(a){case"focusin":return is=ec(is,e,a,t,i,n),!0;case"dragenter":return ns=ec(ns,e,a,t,i,n),!0;case"mouseover":return os=ec(os,e,a,t,i,n),!0;case"pointerover":var o=n.pointerId;return Ic.set(o,ec(Ic.get(o)||null,e,a,t,i,n)),!0;case"gotpointercapture":return o=n.pointerId,Tc.set(o,ec(Tc.get(o)||null,e,a,t,i,n)),!0}return!1}function VW(e){var a=gl(e.target);if(a!==null){var t=Pl(a);if(t!==null){if(a=t.tag,a===13){if(a=DW(t),a!==null){e.blockedOn=a,qW(e.priority,function(){RW(t)});return}}else if(a===3&&t.stateNode.current.memoizedState.isDehydrated){e.blockedOn=t.tag===3?t.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mb(e){if(e.blockedOn!==null)return!1;for(var a=e.targetContainers;0<a.length;){var t=$I(e.domEventName,e.eventSystemFlags,a[0],e.nativeEvent);if(t===null){t=e.nativeEvent;var i=new t.constructor(t.type,t);UI=i,t.target.dispatchEvent(i),UI=null}else return a=Nc(t),a!==null&&WT(a),e.blockedOn=t,!1;a.shift()}return!0}function fG(e,a,t){mb(e)&&t.delete(a)}function pY(){QI=!1,is!==null&&mb(is)&&(is=null),ns!==null&&mb(ns)&&(ns=null),os!==null&&mb(os)&&(os=null),Ic.forEach(fG),Tc.forEach(fG)}function ac(e,a){e.blockedOn===a&&(e.blockedOn=null,QI||(QI=!0,Zi.unstable_scheduleCallback(Zi.unstable_NormalPriority,pY)))}function Pc(e){function a(n){return ac(n,e)}if(0<Jh.length){ac(Jh[0],e);for(var t=1;t<Jh.length;t++){var i=Jh[t];i.blockedOn===e&&(i.blockedOn=null)}}for(is!==null&&ac(is,e),ns!==null&&ac(ns,e),os!==null&&ac(os,e),Ic.forEach(a),Tc.forEach(a),t=0;t<Xr.length;t++)i=Xr[t],i.blockedOn===e&&(i.blockedOn=null);for(;0<Xr.length&&(t=Xr[0],t.blockedOn===null);)VW(t),t.blockedOn===null&&Xr.shift()}var Wu=rr.ReactCurrentBatchConfig,wb=!0;function mY(e,a,t,i){var n=ka,o=Wu.transition;Wu.transition=null;try{ka=1,ET(e,a,t,i)}finally{ka=n,Wu.transition=o}}function cY(e,a,t,i){var n=ka,o=Wu.transition;Wu.transition=null;try{ka=4,ET(e,a,t,i)}finally{ka=n,Wu.transition=o}}function ET(e,a,t,i){if(wb){var n=$I(e,a,t,i);if(n===null)AI(e,a,i,Sb,t),yG(e,i);else if(uY(n,e,a,t,i))i.stopPropagation();else if(yG(e,i),a&4&&-1<dY.indexOf(e)){for(;n!==null;){var o=Nc(n);if(o!==null&&BW(o),o=$I(e,a,t,i),o===null&&AI(e,a,i,Sb,t),o===n)break;n=o}n!==null&&i.stopPropagation()}else AI(e,a,i,null,t)}}var Sb=null;function $I(e,a,t,i){if(Sb=null,e=CT(i),e=gl(e),e!==null)if(a=Pl(e),a===null)e=null;else if(t=a.tag,t===13){if(e=DW(a),e!==null)return e;e=null}else if(t===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;e=null}else a!==e&&(e=null);return Sb=e,null}function UW(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(eY()){case DT:return 1;case LW:return 4;case Pb:case aY:return 16;case MW:return 536870912;default:return 16}default:return 16}}var as=null,LT=null,cb=null;function OW(){if(cb)return cb;var e,a=LT,t=a.length,i,n="value"in as?as.value:as.textContent,o=n.length;for(e=0;e<t&&a[e]===n[e];e++);var r=t-e;for(i=1;i<=r&&a[t-i]===n[o-i];i++);return cb=n.slice(e,1<i?1-i:void 0)}function gb(e){var a=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&a===13&&(e=13)):e=a,e===10&&(e=13),32<=e||e===13?e:0}function Xh(){return!0}function _G(){return!1}function qi(e){function a(t,i,n,o,r){this._reactName=t,this._targetInst=n,this.type=i,this.nativeEvent=o,this.target=r,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Xh:_G,this.isPropagationStopped=_G,this}return qa(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():typeof t.returnValue!="unknown"&&(t.returnValue=!1),this.isDefaultPrevented=Xh)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():typeof t.cancelBubble!="unknown"&&(t.cancelBubble=!0),this.isPropagationStopped=Xh)},persist:function(){},isPersistent:Xh}),a}var Vu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},MT=qi(Vu),Fc=qa({},Vu,{view:0,detail:0}),gY=qi(Fc),hI,bI,tc,Kb=qa({},Fc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:FT,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==tc&&(tc&&e.type==="mousemove"?(hI=e.screenX-tc.screenX,bI=e.screenY-tc.screenY):bI=hI=0,tc=e),hI)},movementY:function(e){return"movementY"in e?e.movementY:bI}}),AG=qi(Kb),kY=qa({},Kb,{dataTransfer:0}),hY=qi(kY),bY=qa({},Fc,{relatedTarget:0}),vI=qi(bY),vY=qa({},Vu,{animationName:0,elapsedTime:0,pseudoElement:0}),yY=qi(vY),fY=qa({},Vu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_Y=qi(fY),AY=qa({},Vu,{data:0}),IG=qi(AY),IY={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},TY={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},PY={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zY(e){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(e):(e=PY[e])?!!a[e]:!1}function FT(){return zY}var wY=qa({},Fc,{key:function(e){if(e.key){var a=IY[e.key]||e.key;if(a!=="Unidentified")return a}return e.type==="keypress"?(e=gb(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?TY[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:FT,charCode:function(e){return e.type==="keypress"?gb(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?gb(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),SY=qi(wY),jY=qa({},Kb,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),TG=qi(jY),xY=qa({},Fc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:FT}),CY=qi(xY),DY=qa({},Vu,{propertyName:0,elapsedTime:0,pseudoElement:0}),GY=qi(DY),WY=qa({},Kb,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),EY=qi(WY),LY=[9,13,27,32],NT=tr&&"CompositionEvent"in window,cc=null;tr&&"documentMode"in document&&(cc=document.documentMode);var MY=tr&&"TextEvent"in window&&!cc,KW=tr&&(!NT||cc&&8<cc&&11>=cc),PG=" ",zG=!1;function HW(e,a){switch(e){case"keyup":return LY.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function YW(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _u=!1;function FY(e,a){switch(e){case"compositionend":return YW(a);case"keypress":return a.which!==32?null:(zG=!0,PG);case"textInput":return e=a.data,e===PG&&zG?null:e;default:return null}}function NY(e,a){if(_u)return e==="compositionend"||!NT&&HW(e,a)?(e=OW(),cb=LT=as=null,_u=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return KW&&a.locale!=="ko"?null:a.data;default:return null}}var BY={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function wG(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a==="input"?!!BY[e.type]:a==="textarea"}function QW(e,a,t,i){wW(i),a=jb(a,"onChange"),0<a.length&&(t=new MT("onChange","change",null,t,i),e.push({event:t,listeners:a}))}var gc=null,zc=null;function RY(e){sE(e,0)}function Hb(e){var a=Tu(e);if(fW(a))return e}function ZY(e,a){if(e==="change")return a}var $W=!1;tr&&(tr?(ab="oninput"in document,ab||(yI=document.createElement("div"),yI.setAttribute("oninput","return;"),ab=typeof yI.oninput=="function"),eb=ab):eb=!1,$W=eb&&(!document.documentMode||9<document.documentMode));var eb,ab,yI;function SG(){gc&&(gc.detachEvent("onpropertychange",JW),zc=gc=null)}function JW(e){if(e.propertyName==="value"&&Hb(zc)){var a=[];QW(a,zc,e,CT(e)),CW(RY,a)}}function qY(e,a,t){e==="focusin"?(SG(),gc=a,zc=t,gc.attachEvent("onpropertychange",JW)):e==="focusout"&&SG()}function VY(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hb(zc)}function UY(e,a){if(e==="click")return Hb(a)}function OY(e,a){if(e==="input"||e==="change")return Hb(a)}function KY(e,a){return e===a&&(e!==0||1/e===1/a)||e!==e&&a!==a}var Kn=typeof Object.is=="function"?Object.is:KY;function wc(e,a){if(Kn(e,a))return!0;if(typeof e!="object"||e===null||typeof a!="object"||a===null)return!1;var t=Object.keys(e),i=Object.keys(a);if(t.length!==i.length)return!1;for(i=0;i<t.length;i++){var n=t[i];if(!GI.call(a,n)||!Kn(e[n],a[n]))return!1}return!0}function jG(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xG(e,a){var t=jG(e);e=0;for(var i;t;){if(t.nodeType===3){if(i=e+t.textContent.length,e<=a&&i>=a)return{node:t,offset:a-e};e=i}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=jG(t)}}function XW(e,a){return e&&a?e===a?!0:e&&e.nodeType===3?!1:a&&a.nodeType===3?XW(e,a.parentNode):"contains"in e?e.contains(a):e.compareDocumentPosition?!!(e.compareDocumentPosition(a)&16):!1:!1}function eE(){for(var e=window,a=Ab();a instanceof e.HTMLIFrameElement;){try{var t=typeof a.contentWindow.location.href=="string"}catch{t=!1}if(t)e=a.contentWindow;else break;a=Ab(e.document)}return a}function BT(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a&&(a==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||a==="textarea"||e.contentEditable==="true")}function HY(e){var a=eE(),t=e.focusedElem,i=e.selectionRange;if(a!==t&&t&&t.ownerDocument&&XW(t.ownerDocument.documentElement,t)){if(i!==null&&BT(t)){if(a=i.start,e=i.end,e===void 0&&(e=a),"selectionStart"in t)t.selectionStart=a,t.selectionEnd=Math.min(e,t.value.length);else if(e=(a=t.ownerDocument||document)&&a.defaultView||window,e.getSelection){e=e.getSelection();var n=t.textContent.length,o=Math.min(i.start,n);i=i.end===void 0?o:Math.min(i.end,n),!e.extend&&o>i&&(n=i,i=o,o=n),n=xG(t,o);var r=xG(t,i);n&&r&&(e.rangeCount!==1||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==r.node||e.focusOffset!==r.offset)&&(a=a.createRange(),a.setStart(n.node,n.offset),e.removeAllRanges(),o>i?(e.addRange(a),e.extend(r.node,r.offset)):(a.setEnd(r.node,r.offset),e.addRange(a)))}}for(a=[],e=t;e=e.parentNode;)e.nodeType===1&&a.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t<a.length;t++)e=a[t],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var YY=tr&&"documentMode"in document&&11>=document.documentMode,Au=null,JI=null,kc=null,XI=!1;function CG(e,a,t){var i=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;XI||Au==null||Au!==Ab(i)||(i=Au,"selectionStart"in i&&BT(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),kc&&wc(kc,i)||(kc=i,i=jb(JI,"onSelect"),0<i.length&&(a=new MT("onSelect","select",null,a,t),e.push({event:a,listeners:i}),a.target=Au)))}function tb(e,a){var t={};return t[e.toLowerCase()]=a.toLowerCase(),t["Webkit"+e]="webkit"+a,t["Moz"+e]="moz"+a,t}var Iu={animationend:tb("Animation","AnimationEnd"),animationiteration:tb("Animation","AnimationIteration"),animationstart:tb("Animation","AnimationStart"),transitionend:tb("Transition","TransitionEnd")},fI={},aE={};tr&&(aE=document.createElement("div").style,"AnimationEvent"in window||(delete Iu.animationend.animation,delete Iu.animationiteration.animation,delete Iu.animationstart.animation),"TransitionEvent"in window||delete Iu.transitionend.transition);function Yb(e){if(fI[e])return fI[e];if(!Iu[e])return e;var a=Iu[e],t;for(t in a)if(a.hasOwnProperty(t)&&t in aE)return fI[e]=a[t];return e}var tE=Yb("animationend"),iE=Yb("animationiteration"),nE=Yb("animationstart"),oE=Yb("transitionend"),rE=new Map,DG="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function cs(e,a){rE.set(e,a),Tl(a,[e])}for(ib=0;ib<DG.length;ib++)nb=DG[ib],GG=nb.toLowerCase(),WG=nb[0].toUpperCase()+nb.slice(1),cs(GG,"on"+WG);var nb,GG,WG,ib;cs(tE,"onAnimationEnd");cs(iE,"onAnimationIteration");cs(nE,"onAnimationStart");cs("dblclick","onDoubleClick");cs("focusin","onFocus");cs("focusout","onBlur");cs(oE,"onTransitionEnd");Mu("onMouseEnter",["mouseout","mouseover"]);Mu("onMouseLeave",["mouseout","mouseover"]);Mu("onPointerEnter",["pointerout","pointerover"]);Mu("onPointerLeave",["pointerout","pointerover"]);Tl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Tl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Tl("onBeforeInput",["compositionend","keypress","textInput","paste"]);Tl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Tl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Tl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var uc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),QY=new Set("cancel close invalid load scroll toggle".split(" ").concat(uc));function EG(e,a,t){var i=e.type||"unknown-event";e.currentTarget=t,Q2(i,a,void 0,e),e.currentTarget=null}function sE(e,a){a=(a&4)!==0;for(var t=0;t<e.length;t++){var i=e[t],n=i.event;i=i.listeners;e:{var o=void 0;if(a)for(var r=i.length-1;0<=r;r--){var s=i[r],d=s.instance,u=s.currentTarget;if(s=s.listener,d!==o&&n.isPropagationStopped())break e;EG(n,s,u),o=d}else for(r=0;r<i.length;r++){if(s=i[r],d=s.instance,u=s.currentTarget,s=s.listener,d!==o&&n.isPropagationStopped())break e;EG(n,s,u),o=d}}}if(Tb)throw e=HI,Tb=!1,HI=null,e}function Pa(e,a){var t=a[nT];t===void 0&&(t=a[nT]=new Set);var i=e+"__bubble";t.has(i)||(lE(a,e,2,!1),t.add(i))}function _I(e,a,t){var i=0;a&&(i|=4),lE(t,e,i,a)}var ob="_reactListening"+Math.random().toString(36).slice(2);function Sc(e){if(!e[ob]){e[ob]=!0,kW.forEach(function(t){t!=="selectionchange"&&(QY.has(t)||_I(t,!1,e),_I(t,!0,e))});var a=e.nodeType===9?e:e.ownerDocument;a===null||a[ob]||(a[ob]=!0,_I("selectionchange",!1,a))}}function lE(e,a,t,i){switch(UW(a)){case 1:var n=mY;break;case 4:n=cY;break;default:n=ET}t=n.bind(null,a,t,e),n=void 0,!KI||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(n=!0),i?n!==void 0?e.addEventListener(a,t,{capture:!0,passive:n}):e.addEventListener(a,t,!0):n!==void 0?e.addEventListener(a,t,{passive:n}):e.addEventListener(a,t,!1)}function AI(e,a,t,i,n){var o=i;if((a&1)===0&&(a&2)===0&&i!==null)e:for(;;){if(i===null)return;var r=i.tag;if(r===3||r===4){var s=i.stateNode.containerInfo;if(s===n||s.nodeType===8&&s.parentNode===n)break;if(r===4)for(r=i.return;r!==null;){var d=r.tag;if((d===3||d===4)&&(d=r.stateNode.containerInfo,d===n||d.nodeType===8&&d.parentNode===n))return;r=r.return}for(;s!==null;){if(r=gl(s),r===null)return;if(d=r.tag,d===5||d===6){i=o=r;continue e}s=s.parentNode}}i=i.return}CW(function(){var u=o,p=CT(t),m=[];e:{var g=rE.get(e);if(g!==void 0){var b=MT,f=e;switch(e){case"keypress":if(gb(t)===0)break e;case"keydown":case"keyup":b=SY;break;case"focusin":f="focus",b=vI;break;case"focusout":f="blur",b=vI;break;case"beforeblur":case"afterblur":b=vI;break;case"click":if(t.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":b=AG;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":b=hY;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":b=CY;break;case tE:case iE:case nE:b=yY;break;case oE:b=GY;break;case"scroll":b=gY;break;case"wheel":b=EY;break;case"copy":case"cut":case"paste":b=_Y;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":b=TG}var v=(a&4)!==0,_=!v&&e==="scroll",h=v?g!==null?g+"Capture":null:g;v=[];for(var k=u,y;k!==null;){y=k;var I=y.stateNode;if(y.tag===5&&I!==null&&(y=I,h!==null&&(I=Ac(k,h),I!=null&&v.push(jc(k,I,y)))),_)break;k=k.return}0<v.length&&(g=new b(g,f,null,t,p),m.push({event:g,listeners:v}))}}if((a&7)===0){e:{if(g=e==="mouseover"||e==="pointerover",b=e==="mouseout"||e==="pointerout",g&&t!==UI&&(f=t.relatedTarget||t.fromElement)&&(gl(f)||f[ir]))break e;if((b||g)&&(g=p.window===p?p:(g=p.ownerDocument)?g.defaultView||g.parentWindow:window,b?(f=t.relatedTarget||t.toElement,b=u,f=f?gl(f):null,f!==null&&(_=Pl(f),f!==_||f.tag!==5&&f.tag!==6)&&(f=null)):(b=null,f=u),b!==f)){if(v=AG,I="onMouseLeave",h="onMouseEnter",k="mouse",(e==="pointerout"||e==="pointerover")&&(v=TG,I="onPointerLeave",h="onPointerEnter",k="pointer"),_=b==null?g:Tu(b),y=f==null?g:Tu(f),g=new v(I,k+"leave",b,t,p),g.target=_,g.relatedTarget=y,I=null,gl(p)===u&&(v=new v(h,k+"enter",f,t,p),v.target=y,v.relatedTarget=_,I=v),_=I,b&&f)a:{for(v=b,h=f,k=0,y=v;y;y=vu(y))k++;for(y=0,I=h;I;I=vu(I))y++;for(;0<k-y;)v=vu(v),k--;for(;0<y-k;)h=vu(h),y--;for(;k--;){if(v===h||h!==null&&v===h.alternate)break a;v=vu(v),h=vu(h)}v=null}else v=null;b!==null&&LG(m,g,b,v,!1),f!==null&&_!==null&&LG(m,_,f,v,!0)}}e:{if(g=u?Tu(u):window,b=g.nodeName&&g.nodeName.toLowerCase(),b==="select"||b==="input"&&g.type==="file")var A=ZY;else if(wG(g))if($W)A=OY;else{A=VY;var T=qY}else(b=g.nodeName)&&b.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(A=UY);if(A&&(A=A(e,u))){QW(m,A,t,p);break e}T&&T(e,g,u),e==="focusout"&&(T=g._wrapperState)&&T.controlled&&g.type==="number"&&BI(g,"number",g.value)}switch(T=u?Tu(u):window,e){case"focusin":(wG(T)||T.contentEditable==="true")&&(Au=T,JI=u,kc=null);break;case"focusout":kc=JI=Au=null;break;case"mousedown":XI=!0;break;case"contextmenu":case"mouseup":case"dragend":XI=!1,CG(m,t,p);break;case"selectionchange":if(YY)break;case"keydown":case"keyup":CG(m,t,p)}var P;if(NT)e:{switch(e){case"compositionstart":var z="onCompositionStart";break e;case"compositionend":z="onCompositionEnd";break e;case"compositionupdate":z="onCompositionUpdate";break e}z=void 0}else _u?HW(e,t)&&(z="onCompositionEnd"):e==="keydown"&&t.keyCode===229&&(z="onCompositionStart");z&&(KW&&t.locale!=="ko"&&(_u||z!=="onCompositionStart"?z==="onCompositionEnd"&&_u&&(P=OW()):(as=p,LT="value"in as?as.value:as.textContent,_u=!0)),T=jb(u,z),0<T.length&&(z=new IG(z,e,null,t,p),m.push({event:z,listeners:T}),P?z.data=P:(P=YW(t),P!==null&&(z.data=P)))),(P=MY?FY(e,t):NY(e,t))&&(u=jb(u,"onBeforeInput"),0<u.length&&(p=new IG("onBeforeInput","beforeinput",null,t,p),m.push({event:p,listeners:u}),p.data=P))}sE(m,a)})}function jc(e,a,t){return{instance:e,listener:a,currentTarget:t}}function jb(e,a){for(var t=a+"Capture",i=[];e!==null;){var n=e,o=n.stateNode;n.tag===5&&o!==null&&(n=o,o=Ac(e,t),o!=null&&i.unshift(jc(e,o,n)),o=Ac(e,a),o!=null&&i.push(jc(e,o,n))),e=e.return}return i}function vu(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function LG(e,a,t,i,n){for(var o=a._reactName,r=[];t!==null&&t!==i;){var s=t,d=s.alternate,u=s.stateNode;if(d!==null&&d===i)break;s.tag===5&&u!==null&&(s=u,n?(d=Ac(t,o),d!=null&&r.unshift(jc(t,d,s))):n||(d=Ac(t,o),d!=null&&r.push(jc(t,d,s)))),t=t.return}r.length!==0&&e.push({event:a,listeners:r})}var $Y=/\r\n?/g,JY=/\u0000|\uFFFD/g;function MG(e){return(typeof e=="string"?e:""+e).replace($Y,`
6
- `).replace(JY,"")}function rb(e,a,t){if(a=MG(a),MG(e)!==a&&t)throw Error(ae(425))}function xb(){}var eT=null,aT=null;function tT(e,a){return e==="textarea"||e==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var iT=typeof setTimeout=="function"?setTimeout:void 0,XY=typeof clearTimeout=="function"?clearTimeout:void 0,FG=typeof Promise=="function"?Promise:void 0,e4=typeof queueMicrotask=="function"?queueMicrotask:typeof FG<"u"?function(e){return FG.resolve(null).then(e).catch(a4)}:iT;function a4(e){setTimeout(function(){throw e})}function II(e,a){var t=a,i=0;do{var n=t.nextSibling;if(e.removeChild(t),n&&n.nodeType===8)if(t=n.data,t==="/$"){if(i===0){e.removeChild(n),Pc(a);return}i--}else t!=="$"&&t!=="$?"&&t!=="$!"||i++;t=n}while(t);Pc(a)}function rs(e){for(;e!=null;e=e.nextSibling){var a=e.nodeType;if(a===1||a===3)break;if(a===8){if(a=e.data,a==="$"||a==="$!"||a==="$?")break;if(a==="/$")return null}}return e}function NG(e){e=e.previousSibling;for(var a=0;e;){if(e.nodeType===8){var t=e.data;if(t==="$"||t==="$!"||t==="$?"){if(a===0)return e;a--}else t==="/$"&&a++}e=e.previousSibling}return null}var Uu=Math.random().toString(36).slice(2),fo="__reactFiber$"+Uu,xc="__reactProps$"+Uu,ir="__reactContainer$"+Uu,nT="__reactEvents$"+Uu,t4="__reactListeners$"+Uu,i4="__reactHandles$"+Uu;function gl(e){var a=e[fo];if(a)return a;for(var t=e.parentNode;t;){if(a=t[ir]||t[fo]){if(t=a.alternate,a.child!==null||t!==null&&t.child!==null)for(e=NG(e);e!==null;){if(t=e[fo])return t;e=NG(e)}return a}e=t,t=e.parentNode}return null}function Nc(e){return e=e[fo]||e[ir],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Tu(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ae(33))}function Qb(e){return e[xc]||null}var oT=[],Pu=-1;function gs(e){return{current:e}}function za(e){0>Pu||(e.current=oT[Pu],oT[Pu]=null,Pu--)}function Ta(e,a){Pu++,oT[Pu]=e.current,e.current=a}var ms={},Yt=gs(ms),_i=gs(!1),yl=ms;function Fu(e,a){var t=e.type.contextTypes;if(!t)return ms;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===a)return i.__reactInternalMemoizedMaskedChildContext;var n={},o;for(o in t)n[o]=a[o];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=n),n}function Ai(e){return e=e.childContextTypes,e!=null}function Cb(){za(_i),za(Yt)}function BG(e,a,t){if(Yt.current!==ms)throw Error(ae(168));Ta(Yt,a),Ta(_i,t)}function dE(e,a,t){var i=e.stateNode;if(a=a.childContextTypes,typeof i.getChildContext!="function")return t;i=i.getChildContext();for(var n in i)if(!(n in a))throw Error(ae(108,q2(e)||"Unknown",n));return qa({},t,i)}function Db(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ms,yl=Yt.current,Ta(Yt,e),Ta(_i,_i.current),!0}function RG(e,a,t){var i=e.stateNode;if(!i)throw Error(ae(169));t?(e=dE(e,a,yl),i.__reactInternalMemoizedMergedChildContext=e,za(_i),za(Yt),Ta(Yt,e)):za(_i),Ta(_i,t)}var Jo=null,$b=!1,TI=!1;function uE(e){Jo===null?Jo=[e]:Jo.push(e)}function n4(e){$b=!0,uE(e)}function ks(){if(!TI&&Jo!==null){TI=!0;var e=0,a=ka;try{var t=Jo;for(ka=1;e<t.length;e++){var i=t[e];do i=i(!0);while(i!==null)}Jo=null,$b=!1}catch(n){throw Jo!==null&&(Jo=Jo.slice(e+1)),EW(DT,ks),n}finally{ka=a,TI=!1}}return null}var zu=[],wu=0,Gb=null,Wb=0,ln=[],dn=0,fl=null,Xo=1,er="";function ml(e,a){zu[wu++]=Wb,zu[wu++]=Gb,Gb=e,Wb=a}function pE(e,a,t){ln[dn++]=Xo,ln[dn++]=er,ln[dn++]=fl,fl=e;var i=Xo;e=er;var n=32-Un(i)-1;i&=~(1<<n),t+=1;var o=32-Un(a)+n;if(30<o){var r=n-n%5;o=(i&(1<<r)-1).toString(32),i>>=r,n-=r,Xo=1<<32-Un(a)+n|t<<n|i,er=o+e}else Xo=1<<o|t<<n|i,er=e}function RT(e){e.return!==null&&(ml(e,1),pE(e,1,0))}function ZT(e){for(;e===Gb;)Gb=zu[--wu],zu[wu]=null,Wb=zu[--wu],zu[wu]=null;for(;e===fl;)fl=ln[--dn],ln[dn]=null,er=ln[--dn],ln[dn]=null,Xo=ln[--dn],ln[dn]=null}var Ri=null,Bi=null,Wa=!1,Vn=null;function mE(e,a){var t=un(5,null,null,0);t.elementType="DELETED",t.stateNode=a,t.return=e,a=e.deletions,a===null?(e.deletions=[t],e.flags|=16):a.push(t)}function ZG(e,a){switch(e.tag){case 5:var t=e.type;return a=a.nodeType!==1||t.toLowerCase()!==a.nodeName.toLowerCase()?null:a,a!==null?(e.stateNode=a,Ri=e,Bi=rs(a.firstChild),!0):!1;case 6:return a=e.pendingProps===""||a.nodeType!==3?null:a,a!==null?(e.stateNode=a,Ri=e,Bi=null,!0):!1;case 13:return a=a.nodeType!==8?null:a,a!==null?(t=fl!==null?{id:Xo,overflow:er}:null,e.memoizedState={dehydrated:a,treeContext:t,retryLane:1073741824},t=un(18,null,null,0),t.stateNode=a,t.return=e,e.child=t,Ri=e,Bi=null,!0):!1;default:return!1}}function rT(e){return(e.mode&1)!==0&&(e.flags&128)===0}function sT(e){if(Wa){var a=Bi;if(a){var t=a;if(!ZG(e,a)){if(rT(e))throw Error(ae(418));a=rs(t.nextSibling);var i=Ri;a&&ZG(e,a)?mE(i,t):(e.flags=e.flags&-4097|2,Wa=!1,Ri=e)}}else{if(rT(e))throw Error(ae(418));e.flags=e.flags&-4097|2,Wa=!1,Ri=e}}}function qG(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ri=e}function sb(e){if(e!==Ri)return!1;if(!Wa)return qG(e),Wa=!0,!1;var a;if((a=e.tag!==3)&&!(a=e.tag!==5)&&(a=e.type,a=a!=="head"&&a!=="body"&&!tT(e.type,e.memoizedProps)),a&&(a=Bi)){if(rT(e))throw cE(),Error(ae(418));for(;a;)mE(e,a),a=rs(a.nextSibling)}if(qG(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ae(317));e:{for(e=e.nextSibling,a=0;e;){if(e.nodeType===8){var t=e.data;if(t==="/$"){if(a===0){Bi=rs(e.nextSibling);break e}a--}else t!=="$"&&t!=="$!"&&t!=="$?"||a++}e=e.nextSibling}Bi=null}}else Bi=Ri?rs(e.stateNode.nextSibling):null;return!0}function cE(){for(var e=Bi;e;)e=rs(e.nextSibling)}function Nu(){Bi=Ri=null,Wa=!1}function qT(e){Vn===null?Vn=[e]:Vn.push(e)}var o4=rr.ReactCurrentBatchConfig;function ic(e,a,t){if(e=t.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(t._owner){if(t=t._owner,t){if(t.tag!==1)throw Error(ae(309));var i=t.stateNode}if(!i)throw Error(ae(147,e));var n=i,o=""+e;return a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===o?a.ref:(a=function(r){var s=n.refs;r===null?delete s[o]:s[o]=r},a._stringRef=o,a)}if(typeof e!="string")throw Error(ae(284));if(!t._owner)throw Error(ae(290,e))}return e}function lb(e,a){throw e=Object.prototype.toString.call(a),Error(ae(31,e==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":e))}function VG(e){var a=e._init;return a(e._payload)}function gE(e){function a(h,k){if(e){var y=h.deletions;y===null?(h.deletions=[k],h.flags|=16):y.push(k)}}function t(h,k){if(!e)return null;for(;k!==null;)a(h,k),k=k.sibling;return null}function i(h,k){for(h=new Map;k!==null;)k.key!==null?h.set(k.key,k):h.set(k.index,k),k=k.sibling;return h}function n(h,k){return h=us(h,k),h.index=0,h.sibling=null,h}function o(h,k,y){return h.index=y,e?(y=h.alternate,y!==null?(y=y.index,y<k?(h.flags|=2,k):y):(h.flags|=2,k)):(h.flags|=1048576,k)}function r(h){return e&&h.alternate===null&&(h.flags|=2),h}function s(h,k,y,I){return k===null||k.tag!==6?(k=CI(y,h.mode,I),k.return=h,k):(k=n(k,y),k.return=h,k)}function d(h,k,y,I){var A=y.type;return A===fu?p(h,k,y.props.children,I,y.key):k!==null&&(k.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===$r&&VG(A)===k.type)?(I=n(k,y.props),I.ref=ic(h,k,y),I.return=h,I):(I=_b(y.type,y.key,y.props,null,h.mode,I),I.ref=ic(h,k,y),I.return=h,I)}function u(h,k,y,I){return k===null||k.tag!==4||k.stateNode.containerInfo!==y.containerInfo||k.stateNode.implementation!==y.implementation?(k=DI(y,h.mode,I),k.return=h,k):(k=n(k,y.children||[]),k.return=h,k)}function p(h,k,y,I,A){return k===null||k.tag!==7?(k=vl(y,h.mode,I,A),k.return=h,k):(k=n(k,y),k.return=h,k)}function m(h,k,y){if(typeof k=="string"&&k!==""||typeof k=="number")return k=CI(""+k,h.mode,y),k.return=h,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Kh:return y=_b(k.type,k.key,k.props,null,h.mode,y),y.ref=ic(h,null,k),y.return=h,y;case yu:return k=DI(k,h.mode,y),k.return=h,k;case $r:var I=k._init;return m(h,I(k._payload),y)}if(lc(k)||Xm(k))return k=vl(k,h.mode,y,null),k.return=h,k;lb(h,k)}return null}function g(h,k,y,I){var A=k!==null?k.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return A!==null?null:s(h,k,""+y,I);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Kh:return y.key===A?d(h,k,y,I):null;case yu:return y.key===A?u(h,k,y,I):null;case $r:return A=y._init,g(h,k,A(y._payload),I)}if(lc(y)||Xm(y))return A!==null?null:p(h,k,y,I,null);lb(h,y)}return null}function b(h,k,y,I,A){if(typeof I=="string"&&I!==""||typeof I=="number")return h=h.get(y)||null,s(k,h,""+I,A);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case Kh:return h=h.get(I.key===null?y:I.key)||null,d(k,h,I,A);case yu:return h=h.get(I.key===null?y:I.key)||null,u(k,h,I,A);case $r:var T=I._init;return b(h,k,y,T(I._payload),A)}if(lc(I)||Xm(I))return h=h.get(y)||null,p(k,h,I,A,null);lb(k,I)}return null}function f(h,k,y,I){for(var A=null,T=null,P=k,z=k=0,D=null;P!==null&&z<y.length;z++){P.index>z?(D=P,P=null):D=P.sibling;var C=g(h,P,y[z],I);if(C===null){P===null&&(P=D);break}e&&P&&C.alternate===null&&a(h,P),k=o(C,k,z),T===null?A=C:T.sibling=C,T=C,P=D}if(z===y.length)return t(h,P),Wa&&ml(h,z),A;if(P===null){for(;z<y.length;z++)P=m(h,y[z],I),P!==null&&(k=o(P,k,z),T===null?A=P:T.sibling=P,T=P);return Wa&&ml(h,z),A}for(P=i(h,P);z<y.length;z++)D=b(P,h,z,y[z],I),D!==null&&(e&&D.alternate!==null&&P.delete(D.key===null?z:D.key),k=o(D,k,z),T===null?A=D:T.sibling=D,T=D);return e&&P.forEach(function(W){return a(h,W)}),Wa&&ml(h,z),A}function v(h,k,y,I){var A=Xm(y);if(typeof A!="function")throw Error(ae(150));if(y=A.call(y),y==null)throw Error(ae(151));for(var T=A=null,P=k,z=k=0,D=null,C=y.next();P!==null&&!C.done;z++,C=y.next()){P.index>z?(D=P,P=null):D=P.sibling;var W=g(h,P,C.value,I);if(W===null){P===null&&(P=D);break}e&&P&&W.alternate===null&&a(h,P),k=o(W,k,z),T===null?A=W:T.sibling=W,T=W,P=D}if(C.done)return t(h,P),Wa&&ml(h,z),A;if(P===null){for(;!C.done;z++,C=y.next())C=m(h,C.value,I),C!==null&&(k=o(C,k,z),T===null?A=C:T.sibling=C,T=C);return Wa&&ml(h,z),A}for(P=i(h,P);!C.done;z++,C=y.next())C=b(P,h,z,C.value,I),C!==null&&(e&&C.alternate!==null&&P.delete(C.key===null?z:C.key),k=o(C,k,z),T===null?A=C:T.sibling=C,T=C);return e&&P.forEach(function(F){return a(h,F)}),Wa&&ml(h,z),A}function _(h,k,y,I){if(typeof y=="object"&&y!==null&&y.type===fu&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Kh:e:{for(var A=y.key,T=k;T!==null;){if(T.key===A){if(A=y.type,A===fu){if(T.tag===7){t(h,T.sibling),k=n(T,y.props.children),k.return=h,h=k;break e}}else if(T.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===$r&&VG(A)===T.type){t(h,T.sibling),k=n(T,y.props),k.ref=ic(h,T,y),k.return=h,h=k;break e}t(h,T);break}else a(h,T);T=T.sibling}y.type===fu?(k=vl(y.props.children,h.mode,I,y.key),k.return=h,h=k):(I=_b(y.type,y.key,y.props,null,h.mode,I),I.ref=ic(h,k,y),I.return=h,h=I)}return r(h);case yu:e:{for(T=y.key;k!==null;){if(k.key===T)if(k.tag===4&&k.stateNode.containerInfo===y.containerInfo&&k.stateNode.implementation===y.implementation){t(h,k.sibling),k=n(k,y.children||[]),k.return=h,h=k;break e}else{t(h,k);break}else a(h,k);k=k.sibling}k=DI(y,h.mode,I),k.return=h,h=k}return r(h);case $r:return T=y._init,_(h,k,T(y._payload),I)}if(lc(y))return f(h,k,y,I);if(Xm(y))return v(h,k,y,I);lb(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,k!==null&&k.tag===6?(t(h,k.sibling),k=n(k,y),k.return=h,h=k):(t(h,k),k=CI(y,h.mode,I),k.return=h,h=k),r(h)):t(h,k)}return _}var Bu=gE(!0),kE=gE(!1),Eb=gs(null),Lb=null,Su=null,VT=null;function UT(){VT=Su=Lb=null}function OT(e){var a=Eb.current;za(Eb),e._currentValue=a}function lT(e,a,t){for(;e!==null;){var i=e.alternate;if((e.childLanes&a)!==a?(e.childLanes|=a,i!==null&&(i.childLanes|=a)):i!==null&&(i.childLanes&a)!==a&&(i.childLanes|=a),e===t)break;e=e.return}}function Eu(e,a){Lb=e,VT=Su=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&a)!==0&&(fi=!0),e.firstContext=null)}function mn(e){var a=e._currentValue;if(VT!==e)if(e={context:e,memoizedValue:a,next:null},Su===null){if(Lb===null)throw Error(ae(308));Su=e,Lb.dependencies={lanes:0,firstContext:e}}else Su=Su.next=e;return a}var kl=null;function KT(e){kl===null?kl=[e]:kl.push(e)}function hE(e,a,t,i){var n=a.interleaved;return n===null?(t.next=t,KT(a)):(t.next=n.next,n.next=t),a.interleaved=t,nr(e,i)}function nr(e,a){e.lanes|=a;var t=e.alternate;for(t!==null&&(t.lanes|=a),t=e,e=e.return;e!==null;)e.childLanes|=a,t=e.alternate,t!==null&&(t.childLanes|=a),t=e,e=e.return;return t.tag===3?t.stateNode:null}var Jr=!1;function HT(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bE(e,a){e=e.updateQueue,a.updateQueue===e&&(a.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ar(e,a){return{eventTime:e,lane:a,tag:0,payload:null,callback:null,next:null}}function ss(e,a,t){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(oa&2)!==0){var n=i.pending;return n===null?a.next=a:(a.next=n.next,n.next=a),i.pending=a,nr(e,t)}return n=i.interleaved,n===null?(a.next=a,KT(i)):(a.next=n.next,n.next=a),i.interleaved=a,nr(e,t)}function kb(e,a,t){if(a=a.updateQueue,a!==null&&(a=a.shared,(t&4194240)!==0)){var i=a.lanes;i&=e.pendingLanes,t|=i,a.lanes=t,GT(e,t)}}function UG(e,a){var t=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,t===i)){var n=null,o=null;if(t=t.firstBaseUpdate,t!==null){do{var r={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};o===null?n=o=r:o=o.next=r,t=t.next}while(t!==null);o===null?n=o=a:o=o.next=a}else n=o=a;t={baseState:i.baseState,firstBaseUpdate:n,lastBaseUpdate:o,shared:i.shared,effects:i.effects},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=a:e.next=a,t.lastBaseUpdate=a}function Mb(e,a,t,i){var n=e.updateQueue;Jr=!1;var o=n.firstBaseUpdate,r=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var d=s,u=d.next;d.next=null,r===null?o=u:r.next=u,r=d;var p=e.alternate;p!==null&&(p=p.updateQueue,s=p.lastBaseUpdate,s!==r&&(s===null?p.firstBaseUpdate=u:s.next=u,p.lastBaseUpdate=d))}if(o!==null){var m=n.baseState;r=0,p=u=d=null,s=o;do{var g=s.lane,b=s.eventTime;if((i&g)===g){p!==null&&(p=p.next={eventTime:b,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,v=s;switch(g=a,b=t,v.tag){case 1:if(f=v.payload,typeof f=="function"){m=f.call(b,m,g);break e}m=f;break e;case 3:f.flags=f.flags&-65537|128;case 0:if(f=v.payload,g=typeof f=="function"?f.call(b,m,g):f,g==null)break e;m=qa({},m,g);break e;case 2:Jr=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,g=n.effects,g===null?n.effects=[s]:g.push(s))}else b={eventTime:b,lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},p===null?(u=p=b,d=m):p=p.next=b,r|=g;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;g=s,s=g.next,g.next=null,n.lastBaseUpdate=g,n.shared.pending=null}}while(!0);if(p===null&&(d=m),n.baseState=d,n.firstBaseUpdate=u,n.lastBaseUpdate=p,a=n.shared.interleaved,a!==null){n=a;do r|=n.lane,n=n.next;while(n!==a)}else o===null&&(n.shared.lanes=0);Al|=r,e.lanes=r,e.memoizedState=m}}function OG(e,a,t){if(e=a.effects,a.effects=null,e!==null)for(a=0;a<e.length;a++){var i=e[a],n=i.callback;if(n!==null){if(i.callback=null,i=t,typeof n!="function")throw Error(ae(191,n));n.call(i)}}}var Bc={},Ao=gs(Bc),Cc=gs(Bc),Dc=gs(Bc);function hl(e){if(e===Bc)throw Error(ae(174));return e}function YT(e,a){switch(Ta(Dc,a),Ta(Cc,e),Ta(Ao,Bc),e=a.nodeType,e){case 9:case 11:a=(a=a.documentElement)?a.namespaceURI:ZI(null,"");break;default:e=e===8?a.parentNode:a,a=e.namespaceURI||null,e=e.tagName,a=ZI(a,e)}za(Ao),Ta(Ao,a)}function Ru(){za(Ao),za(Cc),za(Dc)}function vE(e){hl(Dc.current);var a=hl(Ao.current),t=ZI(a,e.type);a!==t&&(Ta(Cc,e),Ta(Ao,t))}function QT(e){Cc.current===e&&(za(Ao),za(Cc))}var Ra=gs(0);function Fb(e){for(var a=e;a!==null;){if(a.tag===13){var t=a.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var PI=[];function $T(){for(var e=0;e<PI.length;e++)PI[e]._workInProgressVersionPrimary=null;PI.length=0}var hb=rr.ReactCurrentDispatcher,zI=rr.ReactCurrentBatchConfig,_l=0,Za=null,mt=null,At=null,Nb=!1,hc=!1,Gc=0,r4=0;function Ot(){throw Error(ae(321))}function JT(e,a){if(a===null)return!1;for(var t=0;t<a.length&&t<e.length;t++)if(!Kn(e[t],a[t]))return!1;return!0}function XT(e,a,t,i,n,o){if(_l=o,Za=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,hb.current=e===null||e.memoizedState===null?u4:p4,e=t(i,n),hc){o=0;do{if(hc=!1,Gc=0,25<=o)throw Error(ae(301));o+=1,At=mt=null,a.updateQueue=null,hb.current=m4,e=t(i,n)}while(hc)}if(hb.current=Bb,a=mt!==null&&mt.next!==null,_l=0,At=mt=Za=null,Nb=!1,a)throw Error(ae(300));return e}function eP(){var e=Gc!==0;return Gc=0,e}function yo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return At===null?Za.memoizedState=At=e:At=At.next=e,At}function cn(){if(mt===null){var e=Za.alternate;e=e!==null?e.memoizedState:null}else e=mt.next;var a=At===null?Za.memoizedState:At.next;if(a!==null)At=a,mt=e;else{if(e===null)throw Error(ae(310));mt=e,e={memoizedState:mt.memoizedState,baseState:mt.baseState,baseQueue:mt.baseQueue,queue:mt.queue,next:null},At===null?Za.memoizedState=At=e:At=At.next=e}return At}function Wc(e,a){return typeof a=="function"?a(e):a}function wI(e){var a=cn(),t=a.queue;if(t===null)throw Error(ae(311));t.lastRenderedReducer=e;var i=mt,n=i.baseQueue,o=t.pending;if(o!==null){if(n!==null){var r=n.next;n.next=o.next,o.next=r}i.baseQueue=n=o,t.pending=null}if(n!==null){o=n.next,i=i.baseState;var s=r=null,d=null,u=o;do{var p=u.lane;if((_l&p)===p)d!==null&&(d=d.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var m={lane:p,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};d===null?(s=d=m,r=i):d=d.next=m,Za.lanes|=p,Al|=p}u=u.next}while(u!==null&&u!==o);d===null?r=i:d.next=s,Kn(i,a.memoizedState)||(fi=!0),a.memoizedState=i,a.baseState=r,a.baseQueue=d,t.lastRenderedState=i}if(e=t.interleaved,e!==null){n=e;do o=n.lane,Za.lanes|=o,Al|=o,n=n.next;while(n!==e)}else n===null&&(t.lanes=0);return[a.memoizedState,t.dispatch]}function SI(e){var a=cn(),t=a.queue;if(t===null)throw Error(ae(311));t.lastRenderedReducer=e;var i=t.dispatch,n=t.pending,o=a.memoizedState;if(n!==null){t.pending=null;var r=n=n.next;do o=e(o,r.action),r=r.next;while(r!==n);Kn(o,a.memoizedState)||(fi=!0),a.memoizedState=o,a.baseQueue===null&&(a.baseState=o),t.lastRenderedState=o}return[o,i]}function yE(){}function fE(e,a){var t=Za,i=cn(),n=a(),o=!Kn(i.memoizedState,n);if(o&&(i.memoizedState=n,fi=!0),i=i.queue,aP(IE.bind(null,t,i,e),[e]),i.getSnapshot!==a||o||At!==null&&At.memoizedState.tag&1){if(t.flags|=2048,Ec(9,AE.bind(null,t,i,n,a),void 0,null),It===null)throw Error(ae(349));(_l&30)!==0||_E(t,a,n)}return n}function _E(e,a,t){e.flags|=16384,e={getSnapshot:a,value:t},a=Za.updateQueue,a===null?(a={lastEffect:null,stores:null},Za.updateQueue=a,a.stores=[e]):(t=a.stores,t===null?a.stores=[e]:t.push(e))}function AE(e,a,t,i){a.value=t,a.getSnapshot=i,TE(a)&&PE(e)}function IE(e,a,t){return t(function(){TE(a)&&PE(e)})}function TE(e){var a=e.getSnapshot;e=e.value;try{var t=a();return!Kn(e,t)}catch{return!0}}function PE(e){var a=nr(e,1);a!==null&&On(a,e,1,-1)}function KG(e){var a=yo();return typeof e=="function"&&(e=e()),a.memoizedState=a.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Wc,lastRenderedState:e},a.queue=e,e=e.dispatch=d4.bind(null,Za,e),[a.memoizedState,e]}function Ec(e,a,t,i){return e={tag:e,create:a,destroy:t,deps:i,next:null},a=Za.updateQueue,a===null?(a={lastEffect:null,stores:null},Za.updateQueue=a,a.lastEffect=e.next=e):(t=a.lastEffect,t===null?a.lastEffect=e.next=e:(i=t.next,t.next=e,e.next=i,a.lastEffect=e)),e}function zE(){return cn().memoizedState}function bb(e,a,t,i){var n=yo();Za.flags|=e,n.memoizedState=Ec(1|a,t,void 0,i===void 0?null:i)}function Jb(e,a,t,i){var n=cn();i=i===void 0?null:i;var o=void 0;if(mt!==null){var r=mt.memoizedState;if(o=r.destroy,i!==null&&JT(i,r.deps)){n.memoizedState=Ec(a,t,o,i);return}}Za.flags|=e,n.memoizedState=Ec(1|a,t,o,i)}function HG(e,a){return bb(8390656,8,e,a)}function aP(e,a){return Jb(2048,8,e,a)}function wE(e,a){return Jb(4,2,e,a)}function SE(e,a){return Jb(4,4,e,a)}function jE(e,a){if(typeof a=="function")return e=e(),a(e),function(){a(null)};if(a!=null)return e=e(),a.current=e,function(){a.current=null}}function xE(e,a,t){return t=t!=null?t.concat([e]):null,Jb(4,4,jE.bind(null,a,e),t)}function tP(){}function CE(e,a){var t=cn();a=a===void 0?null:a;var i=t.memoizedState;return i!==null&&a!==null&&JT(a,i[1])?i[0]:(t.memoizedState=[e,a],e)}function DE(e,a){var t=cn();a=a===void 0?null:a;var i=t.memoizedState;return i!==null&&a!==null&&JT(a,i[1])?i[0]:(e=e(),t.memoizedState=[e,a],e)}function GE(e,a,t){return(_l&21)===0?(e.baseState&&(e.baseState=!1,fi=!0),e.memoizedState=t):(Kn(t,a)||(t=FW(),Za.lanes|=t,Al|=t,e.baseState=!0),a)}function s4(e,a){var t=ka;ka=t!==0&&4>t?t:4,e(!0);var i=zI.transition;zI.transition={};try{e(!1),a()}finally{ka=t,zI.transition=i}}function WE(){return cn().memoizedState}function l4(e,a,t){var i=ds(e);if(t={lane:i,action:t,hasEagerState:!1,eagerState:null,next:null},EE(e))LE(a,t);else if(t=hE(e,a,t,i),t!==null){var n=mi();On(t,e,i,n),ME(t,a,i)}}function d4(e,a,t){var i=ds(e),n={lane:i,action:t,hasEagerState:!1,eagerState:null,next:null};if(EE(e))LE(a,n);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=a.lastRenderedReducer,o!==null))try{var r=a.lastRenderedState,s=o(r,t);if(n.hasEagerState=!0,n.eagerState=s,Kn(s,r)){var d=a.interleaved;d===null?(n.next=n,KT(a)):(n.next=d.next,d.next=n),a.interleaved=n;return}}catch{}finally{}t=hE(e,a,n,i),t!==null&&(n=mi(),On(t,e,i,n),ME(t,a,i))}}function EE(e){var a=e.alternate;return e===Za||a!==null&&a===Za}function LE(e,a){hc=Nb=!0;var t=e.pending;t===null?a.next=a:(a.next=t.next,t.next=a),e.pending=a}function ME(e,a,t){if((t&4194240)!==0){var i=a.lanes;i&=e.pendingLanes,t|=i,a.lanes=t,GT(e,t)}}var Bb={readContext:mn,useCallback:Ot,useContext:Ot,useEffect:Ot,useImperativeHandle:Ot,useInsertionEffect:Ot,useLayoutEffect:Ot,useMemo:Ot,useReducer:Ot,useRef:Ot,useState:Ot,useDebugValue:Ot,useDeferredValue:Ot,useTransition:Ot,useMutableSource:Ot,useSyncExternalStore:Ot,useId:Ot,unstable_isNewReconciler:!1},u4={readContext:mn,useCallback:function(e,a){return yo().memoizedState=[e,a===void 0?null:a],e},useContext:mn,useEffect:HG,useImperativeHandle:function(e,a,t){return t=t!=null?t.concat([e]):null,bb(4194308,4,jE.bind(null,a,e),t)},useLayoutEffect:function(e,a){return bb(4194308,4,e,a)},useInsertionEffect:function(e,a){return bb(4,2,e,a)},useMemo:function(e,a){var t=yo();return a=a===void 0?null:a,e=e(),t.memoizedState=[e,a],e},useReducer:function(e,a,t){var i=yo();return a=t!==void 0?t(a):a,i.memoizedState=i.baseState=a,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},i.queue=e,e=e.dispatch=l4.bind(null,Za,e),[i.memoizedState,e]},useRef:function(e){var a=yo();return e={current:e},a.memoizedState=e},useState:KG,useDebugValue:tP,useDeferredValue:function(e){return yo().memoizedState=e},useTransition:function(){var e=KG(!1),a=e[0];return e=s4.bind(null,e[1]),yo().memoizedState=e,[a,e]},useMutableSource:function(){},useSyncExternalStore:function(e,a,t){var i=Za,n=yo();if(Wa){if(t===void 0)throw Error(ae(407));t=t()}else{if(t=a(),It===null)throw Error(ae(349));(_l&30)!==0||_E(i,a,t)}n.memoizedState=t;var o={value:t,getSnapshot:a};return n.queue=o,HG(IE.bind(null,i,o,e),[e]),i.flags|=2048,Ec(9,AE.bind(null,i,o,t,a),void 0,null),t},useId:function(){var e=yo(),a=It.identifierPrefix;if(Wa){var t=er,i=Xo;t=(i&~(1<<32-Un(i)-1)).toString(32)+t,a=":"+a+"R"+t,t=Gc++,0<t&&(a+="H"+t.toString(32)),a+=":"}else t=r4++,a=":"+a+"r"+t.toString(32)+":";return e.memoizedState=a},unstable_isNewReconciler:!1},p4={readContext:mn,useCallback:CE,useContext:mn,useEffect:aP,useImperativeHandle:xE,useInsertionEffect:wE,useLayoutEffect:SE,useMemo:DE,useReducer:wI,useRef:zE,useState:function(){return wI(Wc)},useDebugValue:tP,useDeferredValue:function(e){var a=cn();return GE(a,mt.memoizedState,e)},useTransition:function(){var e=wI(Wc)[0],a=cn().memoizedState;return[e,a]},useMutableSource:yE,useSyncExternalStore:fE,useId:WE,unstable_isNewReconciler:!1},m4={readContext:mn,useCallback:CE,useContext:mn,useEffect:aP,useImperativeHandle:xE,useInsertionEffect:wE,useLayoutEffect:SE,useMemo:DE,useReducer:SI,useRef:zE,useState:function(){return SI(Wc)},useDebugValue:tP,useDeferredValue:function(e){var a=cn();return mt===null?a.memoizedState=e:GE(a,mt.memoizedState,e)},useTransition:function(){var e=SI(Wc)[0],a=cn().memoizedState;return[e,a]},useMutableSource:yE,useSyncExternalStore:fE,useId:WE,unstable_isNewReconciler:!1};function Zn(e,a){if(e&&e.defaultProps){a=qa({},a),e=e.defaultProps;for(var t in e)a[t]===void 0&&(a[t]=e[t]);return a}return a}function dT(e,a,t,i){a=e.memoizedState,t=t(i,a),t=t==null?a:qa({},a,t),e.memoizedState=t,e.lanes===0&&(e.updateQueue.baseState=t)}var Xb={isMounted:function(e){return(e=e._reactInternals)?Pl(e)===e:!1},enqueueSetState:function(e,a,t){e=e._reactInternals;var i=mi(),n=ds(e),o=ar(i,n);o.payload=a,t!=null&&(o.callback=t),a=ss(e,o,n),a!==null&&(On(a,e,n,i),kb(a,e,n))},enqueueReplaceState:function(e,a,t){e=e._reactInternals;var i=mi(),n=ds(e),o=ar(i,n);o.tag=1,o.payload=a,t!=null&&(o.callback=t),a=ss(e,o,n),a!==null&&(On(a,e,n,i),kb(a,e,n))},enqueueForceUpdate:function(e,a){e=e._reactInternals;var t=mi(),i=ds(e),n=ar(t,i);n.tag=2,a!=null&&(n.callback=a),a=ss(e,n,i),a!==null&&(On(a,e,i,t),kb(a,e,i))}};function YG(e,a,t,i,n,o,r){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,o,r):a.prototype&&a.prototype.isPureReactComponent?!wc(t,i)||!wc(n,o):!0}function FE(e,a,t){var i=!1,n=ms,o=a.contextType;return typeof o=="object"&&o!==null?o=mn(o):(n=Ai(a)?yl:Yt.current,i=a.contextTypes,o=(i=i!=null)?Fu(e,n):ms),a=new a(t,o),e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Xb,e.stateNode=a,a._reactInternals=e,i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=o),a}function QG(e,a,t,i){e=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(t,i),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(t,i),a.state!==e&&Xb.enqueueReplaceState(a,a.state,null)}function uT(e,a,t,i){var n=e.stateNode;n.props=t,n.state=e.memoizedState,n.refs={},HT(e);var o=a.contextType;typeof o=="object"&&o!==null?n.context=mn(o):(o=Ai(a)?yl:Yt.current,n.context=Fu(e,o)),n.state=e.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(dT(e,a,o,t),n.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(a=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),a!==n.state&&Xb.enqueueReplaceState(n,n.state,null),Mb(e,t,n,i),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308)}function Zu(e,a){try{var t="",i=a;do t+=Z2(i),i=i.return;while(i);var n=t}catch(o){n=`
6
+ `).replace(JY,"")}function rb(e,a,t){if(a=MG(a),MG(e)!==a&&t)throw Error(ae(425))}function xb(){}var eT=null,aT=null;function tT(e,a){return e==="textarea"||e==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var iT=typeof setTimeout=="function"?setTimeout:void 0,XY=typeof clearTimeout=="function"?clearTimeout:void 0,FG=typeof Promise=="function"?Promise:void 0,e4=typeof queueMicrotask=="function"?queueMicrotask:typeof FG<"u"?function(e){return FG.resolve(null).then(e).catch(a4)}:iT;function a4(e){setTimeout(function(){throw e})}function II(e,a){var t=a,i=0;do{var n=t.nextSibling;if(e.removeChild(t),n&&n.nodeType===8)if(t=n.data,t==="/$"){if(i===0){e.removeChild(n),Pc(a);return}i--}else t!=="$"&&t!=="$?"&&t!=="$!"||i++;t=n}while(t);Pc(a)}function rs(e){for(;e!=null;e=e.nextSibling){var a=e.nodeType;if(a===1||a===3)break;if(a===8){if(a=e.data,a==="$"||a==="$!"||a==="$?")break;if(a==="/$")return null}}return e}function NG(e){e=e.previousSibling;for(var a=0;e;){if(e.nodeType===8){var t=e.data;if(t==="$"||t==="$!"||t==="$?"){if(a===0)return e;a--}else t==="/$"&&a++}e=e.previousSibling}return null}var Uu=Math.random().toString(36).slice(2),fo="__reactFiber$"+Uu,xc="__reactProps$"+Uu,ir="__reactContainer$"+Uu,nT="__reactEvents$"+Uu,t4="__reactListeners$"+Uu,i4="__reactHandles$"+Uu;function gl(e){var a=e[fo];if(a)return a;for(var t=e.parentNode;t;){if(a=t[ir]||t[fo]){if(t=a.alternate,a.child!==null||t!==null&&t.child!==null)for(e=NG(e);e!==null;){if(t=e[fo])return t;e=NG(e)}return a}e=t,t=e.parentNode}return null}function Nc(e){return e=e[fo]||e[ir],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Tu(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ae(33))}function Qb(e){return e[xc]||null}var oT=[],Pu=-1;function gs(e){return{current:e}}function za(e){0>Pu||(e.current=oT[Pu],oT[Pu]=null,Pu--)}function Ta(e,a){Pu++,oT[Pu]=e.current,e.current=a}var ms={},Yt=gs(ms),_i=gs(!1),yl=ms;function Fu(e,a){var t=e.type.contextTypes;if(!t)return ms;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===a)return i.__reactInternalMemoizedMaskedChildContext;var n={},o;for(o in t)n[o]=a[o];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=n),n}function Ai(e){return e=e.childContextTypes,e!=null}function Cb(){za(_i),za(Yt)}function BG(e,a,t){if(Yt.current!==ms)throw Error(ae(168));Ta(Yt,a),Ta(_i,t)}function dE(e,a,t){var i=e.stateNode;if(a=a.childContextTypes,typeof i.getChildContext!="function")return t;i=i.getChildContext();for(var n in i)if(!(n in a))throw Error(ae(108,q2(e)||"Unknown",n));return qa({},t,i)}function Db(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ms,yl=Yt.current,Ta(Yt,e),Ta(_i,_i.current),!0}function RG(e,a,t){var i=e.stateNode;if(!i)throw Error(ae(169));t?(e=dE(e,a,yl),i.__reactInternalMemoizedMergedChildContext=e,za(_i),za(Yt),Ta(Yt,e)):za(_i),Ta(_i,t)}var Jo=null,$b=!1,TI=!1;function uE(e){Jo===null?Jo=[e]:Jo.push(e)}function n4(e){$b=!0,uE(e)}function ks(){if(!TI&&Jo!==null){TI=!0;var e=0,a=ka;try{var t=Jo;for(ka=1;e<t.length;e++){var i=t[e];do i=i(!0);while(i!==null)}Jo=null,$b=!1}catch(n){throw Jo!==null&&(Jo=Jo.slice(e+1)),EW(DT,ks),n}finally{ka=a,TI=!1}}return null}var zu=[],wu=0,Gb=null,Wb=0,ln=[],dn=0,fl=null,Xo=1,er="";function ml(e,a){zu[wu++]=Wb,zu[wu++]=Gb,Gb=e,Wb=a}function pE(e,a,t){ln[dn++]=Xo,ln[dn++]=er,ln[dn++]=fl,fl=e;var i=Xo;e=er;var n=32-Un(i)-1;i&=~(1<<n),t+=1;var o=32-Un(a)+n;if(30<o){var r=n-n%5;o=(i&(1<<r)-1).toString(32),i>>=r,n-=r,Xo=1<<32-Un(a)+n|t<<n|i,er=o+e}else Xo=1<<o|t<<n|i,er=e}function RT(e){e.return!==null&&(ml(e,1),pE(e,1,0))}function ZT(e){for(;e===Gb;)Gb=zu[--wu],zu[wu]=null,Wb=zu[--wu],zu[wu]=null;for(;e===fl;)fl=ln[--dn],ln[dn]=null,er=ln[--dn],ln[dn]=null,Xo=ln[--dn],ln[dn]=null}var Ri=null,Bi=null,Ea=!1,Vn=null;function mE(e,a){var t=un(5,null,null,0);t.elementType="DELETED",t.stateNode=a,t.return=e,a=e.deletions,a===null?(e.deletions=[t],e.flags|=16):a.push(t)}function ZG(e,a){switch(e.tag){case 5:var t=e.type;return a=a.nodeType!==1||t.toLowerCase()!==a.nodeName.toLowerCase()?null:a,a!==null?(e.stateNode=a,Ri=e,Bi=rs(a.firstChild),!0):!1;case 6:return a=e.pendingProps===""||a.nodeType!==3?null:a,a!==null?(e.stateNode=a,Ri=e,Bi=null,!0):!1;case 13:return a=a.nodeType!==8?null:a,a!==null?(t=fl!==null?{id:Xo,overflow:er}:null,e.memoizedState={dehydrated:a,treeContext:t,retryLane:1073741824},t=un(18,null,null,0),t.stateNode=a,t.return=e,e.child=t,Ri=e,Bi=null,!0):!1;default:return!1}}function rT(e){return(e.mode&1)!==0&&(e.flags&128)===0}function sT(e){if(Ea){var a=Bi;if(a){var t=a;if(!ZG(e,a)){if(rT(e))throw Error(ae(418));a=rs(t.nextSibling);var i=Ri;a&&ZG(e,a)?mE(i,t):(e.flags=e.flags&-4097|2,Ea=!1,Ri=e)}}else{if(rT(e))throw Error(ae(418));e.flags=e.flags&-4097|2,Ea=!1,Ri=e}}}function qG(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ri=e}function sb(e){if(e!==Ri)return!1;if(!Ea)return qG(e),Ea=!0,!1;var a;if((a=e.tag!==3)&&!(a=e.tag!==5)&&(a=e.type,a=a!=="head"&&a!=="body"&&!tT(e.type,e.memoizedProps)),a&&(a=Bi)){if(rT(e))throw cE(),Error(ae(418));for(;a;)mE(e,a),a=rs(a.nextSibling)}if(qG(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ae(317));e:{for(e=e.nextSibling,a=0;e;){if(e.nodeType===8){var t=e.data;if(t==="/$"){if(a===0){Bi=rs(e.nextSibling);break e}a--}else t!=="$"&&t!=="$!"&&t!=="$?"||a++}e=e.nextSibling}Bi=null}}else Bi=Ri?rs(e.stateNode.nextSibling):null;return!0}function cE(){for(var e=Bi;e;)e=rs(e.nextSibling)}function Nu(){Bi=Ri=null,Ea=!1}function qT(e){Vn===null?Vn=[e]:Vn.push(e)}var o4=rr.ReactCurrentBatchConfig;function ic(e,a,t){if(e=t.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(t._owner){if(t=t._owner,t){if(t.tag!==1)throw Error(ae(309));var i=t.stateNode}if(!i)throw Error(ae(147,e));var n=i,o=""+e;return a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===o?a.ref:(a=function(r){var s=n.refs;r===null?delete s[o]:s[o]=r},a._stringRef=o,a)}if(typeof e!="string")throw Error(ae(284));if(!t._owner)throw Error(ae(290,e))}return e}function lb(e,a){throw e=Object.prototype.toString.call(a),Error(ae(31,e==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":e))}function VG(e){var a=e._init;return a(e._payload)}function gE(e){function a(h,k){if(e){var y=h.deletions;y===null?(h.deletions=[k],h.flags|=16):y.push(k)}}function t(h,k){if(!e)return null;for(;k!==null;)a(h,k),k=k.sibling;return null}function i(h,k){for(h=new Map;k!==null;)k.key!==null?h.set(k.key,k):h.set(k.index,k),k=k.sibling;return h}function n(h,k){return h=us(h,k),h.index=0,h.sibling=null,h}function o(h,k,y){return h.index=y,e?(y=h.alternate,y!==null?(y=y.index,y<k?(h.flags|=2,k):y):(h.flags|=2,k)):(h.flags|=1048576,k)}function r(h){return e&&h.alternate===null&&(h.flags|=2),h}function s(h,k,y,I){return k===null||k.tag!==6?(k=CI(y,h.mode,I),k.return=h,k):(k=n(k,y),k.return=h,k)}function d(h,k,y,I){var A=y.type;return A===fu?p(h,k,y.props.children,I,y.key):k!==null&&(k.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===$r&&VG(A)===k.type)?(I=n(k,y.props),I.ref=ic(h,k,y),I.return=h,I):(I=_b(y.type,y.key,y.props,null,h.mode,I),I.ref=ic(h,k,y),I.return=h,I)}function u(h,k,y,I){return k===null||k.tag!==4||k.stateNode.containerInfo!==y.containerInfo||k.stateNode.implementation!==y.implementation?(k=DI(y,h.mode,I),k.return=h,k):(k=n(k,y.children||[]),k.return=h,k)}function p(h,k,y,I,A){return k===null||k.tag!==7?(k=vl(y,h.mode,I,A),k.return=h,k):(k=n(k,y),k.return=h,k)}function m(h,k,y){if(typeof k=="string"&&k!==""||typeof k=="number")return k=CI(""+k,h.mode,y),k.return=h,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Kh:return y=_b(k.type,k.key,k.props,null,h.mode,y),y.ref=ic(h,null,k),y.return=h,y;case yu:return k=DI(k,h.mode,y),k.return=h,k;case $r:var I=k._init;return m(h,I(k._payload),y)}if(lc(k)||Xm(k))return k=vl(k,h.mode,y,null),k.return=h,k;lb(h,k)}return null}function g(h,k,y,I){var A=k!==null?k.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return A!==null?null:s(h,k,""+y,I);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Kh:return y.key===A?d(h,k,y,I):null;case yu:return y.key===A?u(h,k,y,I):null;case $r:return A=y._init,g(h,k,A(y._payload),I)}if(lc(y)||Xm(y))return A!==null?null:p(h,k,y,I,null);lb(h,y)}return null}function b(h,k,y,I,A){if(typeof I=="string"&&I!==""||typeof I=="number")return h=h.get(y)||null,s(k,h,""+I,A);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case Kh:return h=h.get(I.key===null?y:I.key)||null,d(k,h,I,A);case yu:return h=h.get(I.key===null?y:I.key)||null,u(k,h,I,A);case $r:var T=I._init;return b(h,k,y,T(I._payload),A)}if(lc(I)||Xm(I))return h=h.get(y)||null,p(k,h,I,A,null);lb(k,I)}return null}function f(h,k,y,I){for(var A=null,T=null,P=k,z=k=0,D=null;P!==null&&z<y.length;z++){P.index>z?(D=P,P=null):D=P.sibling;var C=g(h,P,y[z],I);if(C===null){P===null&&(P=D);break}e&&P&&C.alternate===null&&a(h,P),k=o(C,k,z),T===null?A=C:T.sibling=C,T=C,P=D}if(z===y.length)return t(h,P),Ea&&ml(h,z),A;if(P===null){for(;z<y.length;z++)P=m(h,y[z],I),P!==null&&(k=o(P,k,z),T===null?A=P:T.sibling=P,T=P);return Ea&&ml(h,z),A}for(P=i(h,P);z<y.length;z++)D=b(P,h,z,y[z],I),D!==null&&(e&&D.alternate!==null&&P.delete(D.key===null?z:D.key),k=o(D,k,z),T===null?A=D:T.sibling=D,T=D);return e&&P.forEach(function(W){return a(h,W)}),Ea&&ml(h,z),A}function v(h,k,y,I){var A=Xm(y);if(typeof A!="function")throw Error(ae(150));if(y=A.call(y),y==null)throw Error(ae(151));for(var T=A=null,P=k,z=k=0,D=null,C=y.next();P!==null&&!C.done;z++,C=y.next()){P.index>z?(D=P,P=null):D=P.sibling;var W=g(h,P,C.value,I);if(W===null){P===null&&(P=D);break}e&&P&&W.alternate===null&&a(h,P),k=o(W,k,z),T===null?A=W:T.sibling=W,T=W,P=D}if(C.done)return t(h,P),Ea&&ml(h,z),A;if(P===null){for(;!C.done;z++,C=y.next())C=m(h,C.value,I),C!==null&&(k=o(C,k,z),T===null?A=C:T.sibling=C,T=C);return Ea&&ml(h,z),A}for(P=i(h,P);!C.done;z++,C=y.next())C=b(P,h,z,C.value,I),C!==null&&(e&&C.alternate!==null&&P.delete(C.key===null?z:C.key),k=o(C,k,z),T===null?A=C:T.sibling=C,T=C);return e&&P.forEach(function(F){return a(h,F)}),Ea&&ml(h,z),A}function _(h,k,y,I){if(typeof y=="object"&&y!==null&&y.type===fu&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Kh:e:{for(var A=y.key,T=k;T!==null;){if(T.key===A){if(A=y.type,A===fu){if(T.tag===7){t(h,T.sibling),k=n(T,y.props.children),k.return=h,h=k;break e}}else if(T.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===$r&&VG(A)===T.type){t(h,T.sibling),k=n(T,y.props),k.ref=ic(h,T,y),k.return=h,h=k;break e}t(h,T);break}else a(h,T);T=T.sibling}y.type===fu?(k=vl(y.props.children,h.mode,I,y.key),k.return=h,h=k):(I=_b(y.type,y.key,y.props,null,h.mode,I),I.ref=ic(h,k,y),I.return=h,h=I)}return r(h);case yu:e:{for(T=y.key;k!==null;){if(k.key===T)if(k.tag===4&&k.stateNode.containerInfo===y.containerInfo&&k.stateNode.implementation===y.implementation){t(h,k.sibling),k=n(k,y.children||[]),k.return=h,h=k;break e}else{t(h,k);break}else a(h,k);k=k.sibling}k=DI(y,h.mode,I),k.return=h,h=k}return r(h);case $r:return T=y._init,_(h,k,T(y._payload),I)}if(lc(y))return f(h,k,y,I);if(Xm(y))return v(h,k,y,I);lb(h,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,k!==null&&k.tag===6?(t(h,k.sibling),k=n(k,y),k.return=h,h=k):(t(h,k),k=CI(y,h.mode,I),k.return=h,h=k),r(h)):t(h,k)}return _}var Bu=gE(!0),kE=gE(!1),Eb=gs(null),Lb=null,Su=null,VT=null;function UT(){VT=Su=Lb=null}function OT(e){var a=Eb.current;za(Eb),e._currentValue=a}function lT(e,a,t){for(;e!==null;){var i=e.alternate;if((e.childLanes&a)!==a?(e.childLanes|=a,i!==null&&(i.childLanes|=a)):i!==null&&(i.childLanes&a)!==a&&(i.childLanes|=a),e===t)break;e=e.return}}function Eu(e,a){Lb=e,VT=Su=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&a)!==0&&(fi=!0),e.firstContext=null)}function mn(e){var a=e._currentValue;if(VT!==e)if(e={context:e,memoizedValue:a,next:null},Su===null){if(Lb===null)throw Error(ae(308));Su=e,Lb.dependencies={lanes:0,firstContext:e}}else Su=Su.next=e;return a}var kl=null;function KT(e){kl===null?kl=[e]:kl.push(e)}function hE(e,a,t,i){var n=a.interleaved;return n===null?(t.next=t,KT(a)):(t.next=n.next,n.next=t),a.interleaved=t,nr(e,i)}function nr(e,a){e.lanes|=a;var t=e.alternate;for(t!==null&&(t.lanes|=a),t=e,e=e.return;e!==null;)e.childLanes|=a,t=e.alternate,t!==null&&(t.childLanes|=a),t=e,e=e.return;return t.tag===3?t.stateNode:null}var Jr=!1;function HT(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bE(e,a){e=e.updateQueue,a.updateQueue===e&&(a.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ar(e,a){return{eventTime:e,lane:a,tag:0,payload:null,callback:null,next:null}}function ss(e,a,t){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(oa&2)!==0){var n=i.pending;return n===null?a.next=a:(a.next=n.next,n.next=a),i.pending=a,nr(e,t)}return n=i.interleaved,n===null?(a.next=a,KT(i)):(a.next=n.next,n.next=a),i.interleaved=a,nr(e,t)}function kb(e,a,t){if(a=a.updateQueue,a!==null&&(a=a.shared,(t&4194240)!==0)){var i=a.lanes;i&=e.pendingLanes,t|=i,a.lanes=t,GT(e,t)}}function UG(e,a){var t=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,t===i)){var n=null,o=null;if(t=t.firstBaseUpdate,t!==null){do{var r={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};o===null?n=o=r:o=o.next=r,t=t.next}while(t!==null);o===null?n=o=a:o=o.next=a}else n=o=a;t={baseState:i.baseState,firstBaseUpdate:n,lastBaseUpdate:o,shared:i.shared,effects:i.effects},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=a:e.next=a,t.lastBaseUpdate=a}function Mb(e,a,t,i){var n=e.updateQueue;Jr=!1;var o=n.firstBaseUpdate,r=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var d=s,u=d.next;d.next=null,r===null?o=u:r.next=u,r=d;var p=e.alternate;p!==null&&(p=p.updateQueue,s=p.lastBaseUpdate,s!==r&&(s===null?p.firstBaseUpdate=u:s.next=u,p.lastBaseUpdate=d))}if(o!==null){var m=n.baseState;r=0,p=u=d=null,s=o;do{var g=s.lane,b=s.eventTime;if((i&g)===g){p!==null&&(p=p.next={eventTime:b,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,v=s;switch(g=a,b=t,v.tag){case 1:if(f=v.payload,typeof f=="function"){m=f.call(b,m,g);break e}m=f;break e;case 3:f.flags=f.flags&-65537|128;case 0:if(f=v.payload,g=typeof f=="function"?f.call(b,m,g):f,g==null)break e;m=qa({},m,g);break e;case 2:Jr=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,g=n.effects,g===null?n.effects=[s]:g.push(s))}else b={eventTime:b,lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},p===null?(u=p=b,d=m):p=p.next=b,r|=g;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;g=s,s=g.next,g.next=null,n.lastBaseUpdate=g,n.shared.pending=null}}while(!0);if(p===null&&(d=m),n.baseState=d,n.firstBaseUpdate=u,n.lastBaseUpdate=p,a=n.shared.interleaved,a!==null){n=a;do r|=n.lane,n=n.next;while(n!==a)}else o===null&&(n.shared.lanes=0);Al|=r,e.lanes=r,e.memoizedState=m}}function OG(e,a,t){if(e=a.effects,a.effects=null,e!==null)for(a=0;a<e.length;a++){var i=e[a],n=i.callback;if(n!==null){if(i.callback=null,i=t,typeof n!="function")throw Error(ae(191,n));n.call(i)}}}var Bc={},Ao=gs(Bc),Cc=gs(Bc),Dc=gs(Bc);function hl(e){if(e===Bc)throw Error(ae(174));return e}function YT(e,a){switch(Ta(Dc,a),Ta(Cc,e),Ta(Ao,Bc),e=a.nodeType,e){case 9:case 11:a=(a=a.documentElement)?a.namespaceURI:ZI(null,"");break;default:e=e===8?a.parentNode:a,a=e.namespaceURI||null,e=e.tagName,a=ZI(a,e)}za(Ao),Ta(Ao,a)}function Ru(){za(Ao),za(Cc),za(Dc)}function vE(e){hl(Dc.current);var a=hl(Ao.current),t=ZI(a,e.type);a!==t&&(Ta(Cc,e),Ta(Ao,t))}function QT(e){Cc.current===e&&(za(Ao),za(Cc))}var Ra=gs(0);function Fb(e){for(var a=e;a!==null;){if(a.tag===13){var t=a.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var PI=[];function $T(){for(var e=0;e<PI.length;e++)PI[e]._workInProgressVersionPrimary=null;PI.length=0}var hb=rr.ReactCurrentDispatcher,zI=rr.ReactCurrentBatchConfig,_l=0,Za=null,mt=null,At=null,Nb=!1,hc=!1,Gc=0,r4=0;function Ot(){throw Error(ae(321))}function JT(e,a){if(a===null)return!1;for(var t=0;t<a.length&&t<e.length;t++)if(!Kn(e[t],a[t]))return!1;return!0}function XT(e,a,t,i,n,o){if(_l=o,Za=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,hb.current=e===null||e.memoizedState===null?u4:p4,e=t(i,n),hc){o=0;do{if(hc=!1,Gc=0,25<=o)throw Error(ae(301));o+=1,At=mt=null,a.updateQueue=null,hb.current=m4,e=t(i,n)}while(hc)}if(hb.current=Bb,a=mt!==null&&mt.next!==null,_l=0,At=mt=Za=null,Nb=!1,a)throw Error(ae(300));return e}function eP(){var e=Gc!==0;return Gc=0,e}function yo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return At===null?Za.memoizedState=At=e:At=At.next=e,At}function cn(){if(mt===null){var e=Za.alternate;e=e!==null?e.memoizedState:null}else e=mt.next;var a=At===null?Za.memoizedState:At.next;if(a!==null)At=a,mt=e;else{if(e===null)throw Error(ae(310));mt=e,e={memoizedState:mt.memoizedState,baseState:mt.baseState,baseQueue:mt.baseQueue,queue:mt.queue,next:null},At===null?Za.memoizedState=At=e:At=At.next=e}return At}function Wc(e,a){return typeof a=="function"?a(e):a}function wI(e){var a=cn(),t=a.queue;if(t===null)throw Error(ae(311));t.lastRenderedReducer=e;var i=mt,n=i.baseQueue,o=t.pending;if(o!==null){if(n!==null){var r=n.next;n.next=o.next,o.next=r}i.baseQueue=n=o,t.pending=null}if(n!==null){o=n.next,i=i.baseState;var s=r=null,d=null,u=o;do{var p=u.lane;if((_l&p)===p)d!==null&&(d=d.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var m={lane:p,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};d===null?(s=d=m,r=i):d=d.next=m,Za.lanes|=p,Al|=p}u=u.next}while(u!==null&&u!==o);d===null?r=i:d.next=s,Kn(i,a.memoizedState)||(fi=!0),a.memoizedState=i,a.baseState=r,a.baseQueue=d,t.lastRenderedState=i}if(e=t.interleaved,e!==null){n=e;do o=n.lane,Za.lanes|=o,Al|=o,n=n.next;while(n!==e)}else n===null&&(t.lanes=0);return[a.memoizedState,t.dispatch]}function SI(e){var a=cn(),t=a.queue;if(t===null)throw Error(ae(311));t.lastRenderedReducer=e;var i=t.dispatch,n=t.pending,o=a.memoizedState;if(n!==null){t.pending=null;var r=n=n.next;do o=e(o,r.action),r=r.next;while(r!==n);Kn(o,a.memoizedState)||(fi=!0),a.memoizedState=o,a.baseQueue===null&&(a.baseState=o),t.lastRenderedState=o}return[o,i]}function yE(){}function fE(e,a){var t=Za,i=cn(),n=a(),o=!Kn(i.memoizedState,n);if(o&&(i.memoizedState=n,fi=!0),i=i.queue,aP(IE.bind(null,t,i,e),[e]),i.getSnapshot!==a||o||At!==null&&At.memoizedState.tag&1){if(t.flags|=2048,Ec(9,AE.bind(null,t,i,n,a),void 0,null),It===null)throw Error(ae(349));(_l&30)!==0||_E(t,a,n)}return n}function _E(e,a,t){e.flags|=16384,e={getSnapshot:a,value:t},a=Za.updateQueue,a===null?(a={lastEffect:null,stores:null},Za.updateQueue=a,a.stores=[e]):(t=a.stores,t===null?a.stores=[e]:t.push(e))}function AE(e,a,t,i){a.value=t,a.getSnapshot=i,TE(a)&&PE(e)}function IE(e,a,t){return t(function(){TE(a)&&PE(e)})}function TE(e){var a=e.getSnapshot;e=e.value;try{var t=a();return!Kn(e,t)}catch{return!0}}function PE(e){var a=nr(e,1);a!==null&&On(a,e,1,-1)}function KG(e){var a=yo();return typeof e=="function"&&(e=e()),a.memoizedState=a.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Wc,lastRenderedState:e},a.queue=e,e=e.dispatch=d4.bind(null,Za,e),[a.memoizedState,e]}function Ec(e,a,t,i){return e={tag:e,create:a,destroy:t,deps:i,next:null},a=Za.updateQueue,a===null?(a={lastEffect:null,stores:null},Za.updateQueue=a,a.lastEffect=e.next=e):(t=a.lastEffect,t===null?a.lastEffect=e.next=e:(i=t.next,t.next=e,e.next=i,a.lastEffect=e)),e}function zE(){return cn().memoizedState}function bb(e,a,t,i){var n=yo();Za.flags|=e,n.memoizedState=Ec(1|a,t,void 0,i===void 0?null:i)}function Jb(e,a,t,i){var n=cn();i=i===void 0?null:i;var o=void 0;if(mt!==null){var r=mt.memoizedState;if(o=r.destroy,i!==null&&JT(i,r.deps)){n.memoizedState=Ec(a,t,o,i);return}}Za.flags|=e,n.memoizedState=Ec(1|a,t,o,i)}function HG(e,a){return bb(8390656,8,e,a)}function aP(e,a){return Jb(2048,8,e,a)}function wE(e,a){return Jb(4,2,e,a)}function SE(e,a){return Jb(4,4,e,a)}function jE(e,a){if(typeof a=="function")return e=e(),a(e),function(){a(null)};if(a!=null)return e=e(),a.current=e,function(){a.current=null}}function xE(e,a,t){return t=t!=null?t.concat([e]):null,Jb(4,4,jE.bind(null,a,e),t)}function tP(){}function CE(e,a){var t=cn();a=a===void 0?null:a;var i=t.memoizedState;return i!==null&&a!==null&&JT(a,i[1])?i[0]:(t.memoizedState=[e,a],e)}function DE(e,a){var t=cn();a=a===void 0?null:a;var i=t.memoizedState;return i!==null&&a!==null&&JT(a,i[1])?i[0]:(e=e(),t.memoizedState=[e,a],e)}function GE(e,a,t){return(_l&21)===0?(e.baseState&&(e.baseState=!1,fi=!0),e.memoizedState=t):(Kn(t,a)||(t=FW(),Za.lanes|=t,Al|=t,e.baseState=!0),a)}function s4(e,a){var t=ka;ka=t!==0&&4>t?t:4,e(!0);var i=zI.transition;zI.transition={};try{e(!1),a()}finally{ka=t,zI.transition=i}}function WE(){return cn().memoizedState}function l4(e,a,t){var i=ds(e);if(t={lane:i,action:t,hasEagerState:!1,eagerState:null,next:null},EE(e))LE(a,t);else if(t=hE(e,a,t,i),t!==null){var n=mi();On(t,e,i,n),ME(t,a,i)}}function d4(e,a,t){var i=ds(e),n={lane:i,action:t,hasEagerState:!1,eagerState:null,next:null};if(EE(e))LE(a,n);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=a.lastRenderedReducer,o!==null))try{var r=a.lastRenderedState,s=o(r,t);if(n.hasEagerState=!0,n.eagerState=s,Kn(s,r)){var d=a.interleaved;d===null?(n.next=n,KT(a)):(n.next=d.next,d.next=n),a.interleaved=n;return}}catch{}finally{}t=hE(e,a,n,i),t!==null&&(n=mi(),On(t,e,i,n),ME(t,a,i))}}function EE(e){var a=e.alternate;return e===Za||a!==null&&a===Za}function LE(e,a){hc=Nb=!0;var t=e.pending;t===null?a.next=a:(a.next=t.next,t.next=a),e.pending=a}function ME(e,a,t){if((t&4194240)!==0){var i=a.lanes;i&=e.pendingLanes,t|=i,a.lanes=t,GT(e,t)}}var Bb={readContext:mn,useCallback:Ot,useContext:Ot,useEffect:Ot,useImperativeHandle:Ot,useInsertionEffect:Ot,useLayoutEffect:Ot,useMemo:Ot,useReducer:Ot,useRef:Ot,useState:Ot,useDebugValue:Ot,useDeferredValue:Ot,useTransition:Ot,useMutableSource:Ot,useSyncExternalStore:Ot,useId:Ot,unstable_isNewReconciler:!1},u4={readContext:mn,useCallback:function(e,a){return yo().memoizedState=[e,a===void 0?null:a],e},useContext:mn,useEffect:HG,useImperativeHandle:function(e,a,t){return t=t!=null?t.concat([e]):null,bb(4194308,4,jE.bind(null,a,e),t)},useLayoutEffect:function(e,a){return bb(4194308,4,e,a)},useInsertionEffect:function(e,a){return bb(4,2,e,a)},useMemo:function(e,a){var t=yo();return a=a===void 0?null:a,e=e(),t.memoizedState=[e,a],e},useReducer:function(e,a,t){var i=yo();return a=t!==void 0?t(a):a,i.memoizedState=i.baseState=a,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},i.queue=e,e=e.dispatch=l4.bind(null,Za,e),[i.memoizedState,e]},useRef:function(e){var a=yo();return e={current:e},a.memoizedState=e},useState:KG,useDebugValue:tP,useDeferredValue:function(e){return yo().memoizedState=e},useTransition:function(){var e=KG(!1),a=e[0];return e=s4.bind(null,e[1]),yo().memoizedState=e,[a,e]},useMutableSource:function(){},useSyncExternalStore:function(e,a,t){var i=Za,n=yo();if(Ea){if(t===void 0)throw Error(ae(407));t=t()}else{if(t=a(),It===null)throw Error(ae(349));(_l&30)!==0||_E(i,a,t)}n.memoizedState=t;var o={value:t,getSnapshot:a};return n.queue=o,HG(IE.bind(null,i,o,e),[e]),i.flags|=2048,Ec(9,AE.bind(null,i,o,t,a),void 0,null),t},useId:function(){var e=yo(),a=It.identifierPrefix;if(Ea){var t=er,i=Xo;t=(i&~(1<<32-Un(i)-1)).toString(32)+t,a=":"+a+"R"+t,t=Gc++,0<t&&(a+="H"+t.toString(32)),a+=":"}else t=r4++,a=":"+a+"r"+t.toString(32)+":";return e.memoizedState=a},unstable_isNewReconciler:!1},p4={readContext:mn,useCallback:CE,useContext:mn,useEffect:aP,useImperativeHandle:xE,useInsertionEffect:wE,useLayoutEffect:SE,useMemo:DE,useReducer:wI,useRef:zE,useState:function(){return wI(Wc)},useDebugValue:tP,useDeferredValue:function(e){var a=cn();return GE(a,mt.memoizedState,e)},useTransition:function(){var e=wI(Wc)[0],a=cn().memoizedState;return[e,a]},useMutableSource:yE,useSyncExternalStore:fE,useId:WE,unstable_isNewReconciler:!1},m4={readContext:mn,useCallback:CE,useContext:mn,useEffect:aP,useImperativeHandle:xE,useInsertionEffect:wE,useLayoutEffect:SE,useMemo:DE,useReducer:SI,useRef:zE,useState:function(){return SI(Wc)},useDebugValue:tP,useDeferredValue:function(e){var a=cn();return mt===null?a.memoizedState=e:GE(a,mt.memoizedState,e)},useTransition:function(){var e=SI(Wc)[0],a=cn().memoizedState;return[e,a]},useMutableSource:yE,useSyncExternalStore:fE,useId:WE,unstable_isNewReconciler:!1};function Zn(e,a){if(e&&e.defaultProps){a=qa({},a),e=e.defaultProps;for(var t in e)a[t]===void 0&&(a[t]=e[t]);return a}return a}function dT(e,a,t,i){a=e.memoizedState,t=t(i,a),t=t==null?a:qa({},a,t),e.memoizedState=t,e.lanes===0&&(e.updateQueue.baseState=t)}var Xb={isMounted:function(e){return(e=e._reactInternals)?Pl(e)===e:!1},enqueueSetState:function(e,a,t){e=e._reactInternals;var i=mi(),n=ds(e),o=ar(i,n);o.payload=a,t!=null&&(o.callback=t),a=ss(e,o,n),a!==null&&(On(a,e,n,i),kb(a,e,n))},enqueueReplaceState:function(e,a,t){e=e._reactInternals;var i=mi(),n=ds(e),o=ar(i,n);o.tag=1,o.payload=a,t!=null&&(o.callback=t),a=ss(e,o,n),a!==null&&(On(a,e,n,i),kb(a,e,n))},enqueueForceUpdate:function(e,a){e=e._reactInternals;var t=mi(),i=ds(e),n=ar(t,i);n.tag=2,a!=null&&(n.callback=a),a=ss(e,n,i),a!==null&&(On(a,e,i,t),kb(a,e,i))}};function YG(e,a,t,i,n,o,r){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,o,r):a.prototype&&a.prototype.isPureReactComponent?!wc(t,i)||!wc(n,o):!0}function FE(e,a,t){var i=!1,n=ms,o=a.contextType;return typeof o=="object"&&o!==null?o=mn(o):(n=Ai(a)?yl:Yt.current,i=a.contextTypes,o=(i=i!=null)?Fu(e,n):ms),a=new a(t,o),e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Xb,e.stateNode=a,a._reactInternals=e,i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=o),a}function QG(e,a,t,i){e=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(t,i),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(t,i),a.state!==e&&Xb.enqueueReplaceState(a,a.state,null)}function uT(e,a,t,i){var n=e.stateNode;n.props=t,n.state=e.memoizedState,n.refs={},HT(e);var o=a.contextType;typeof o=="object"&&o!==null?n.context=mn(o):(o=Ai(a)?yl:Yt.current,n.context=Fu(e,o)),n.state=e.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(dT(e,a,o,t),n.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(a=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),a!==n.state&&Xb.enqueueReplaceState(n,n.state,null),Mb(e,t,n,i),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308)}function Zu(e,a){try{var t="",i=a;do t+=Z2(i),i=i.return;while(i);var n=t}catch(o){n=`
7
7
  Error generating stack: `+o.message+`
8
- `+o.stack}return{value:e,source:a,stack:n,digest:null}}function jI(e,a,t){return{value:e,source:null,stack:t??null,digest:a??null}}function pT(e,a){try{console.error(a.value)}catch(t){setTimeout(function(){throw t})}}var c4=typeof WeakMap=="function"?WeakMap:Map;function NE(e,a,t){t=ar(-1,t),t.tag=3,t.payload={element:null};var i=a.value;return t.callback=function(){Zb||(Zb=!0,_T=i),pT(e,a)},t}function BE(e,a,t){t=ar(-1,t),t.tag=3;var i=e.type.getDerivedStateFromError;if(typeof i=="function"){var n=a.value;t.payload=function(){return i(n)},t.callback=function(){pT(e,a)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){pT(e,a),typeof i!="function"&&(ls===null?ls=new Set([this]):ls.add(this));var r=a.stack;this.componentDidCatch(a.value,{componentStack:r!==null?r:""})}),t}function $G(e,a,t){var i=e.pingCache;if(i===null){i=e.pingCache=new c4;var n=new Set;i.set(a,n)}else n=i.get(a),n===void 0&&(n=new Set,i.set(a,n));n.has(t)||(n.add(t),e=w4.bind(null,e,a,t),a.then(e,e))}function JG(e){do{var a;if((a=e.tag===13)&&(a=e.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return e;e=e.return}while(e!==null);return null}function XG(e,a,t,i,n){return(e.mode&1)===0?(e===a?e.flags|=65536:(e.flags|=128,t.flags|=131072,t.flags&=-52805,t.tag===1&&(t.alternate===null?t.tag=17:(a=ar(-1,1),a.tag=2,ss(t,a,1))),t.lanes|=1),e):(e.flags|=65536,e.lanes=n,e)}var g4=rr.ReactCurrentOwner,fi=!1;function pi(e,a,t,i){a.child=e===null?kE(a,null,t,i):Bu(a,e.child,t,i)}function eW(e,a,t,i,n){t=t.render;var o=a.ref;return Eu(a,n),i=XT(e,a,t,i,o,n),t=eP(),e!==null&&!fi?(a.updateQueue=e.updateQueue,a.flags&=-2053,e.lanes&=~n,or(e,a,n)):(Wa&&t&&RT(a),a.flags|=1,pi(e,a,i,n),a.child)}function aW(e,a,t,i,n){if(e===null){var o=t.type;return typeof o=="function"&&!uP(o)&&o.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(a.tag=15,a.type=o,RE(e,a,o,i,n)):(e=_b(t.type,null,i,a,a.mode,n),e.ref=a.ref,e.return=a,a.child=e)}if(o=e.child,(e.lanes&n)===0){var r=o.memoizedProps;if(t=t.compare,t=t!==null?t:wc,t(r,i)&&e.ref===a.ref)return or(e,a,n)}return a.flags|=1,e=us(o,i),e.ref=a.ref,e.return=a,a.child=e}function RE(e,a,t,i,n){if(e!==null){var o=e.memoizedProps;if(wc(o,i)&&e.ref===a.ref)if(fi=!1,a.pendingProps=i=o,(e.lanes&n)!==0)(e.flags&131072)!==0&&(fi=!0);else return a.lanes=e.lanes,or(e,a,n)}return mT(e,a,t,i,n)}function ZE(e,a,t){var i=a.pendingProps,n=i.children,o=e!==null?e.memoizedState:null;if(i.mode==="hidden")if((a.mode&1)===0)a.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ta(xu,Ni),Ni|=t;else{if((t&1073741824)===0)return e=o!==null?o.baseLanes|t:t,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:e,cachePool:null,transitions:null},a.updateQueue=null,Ta(xu,Ni),Ni|=e,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=o!==null?o.baseLanes:t,Ta(xu,Ni),Ni|=i}else o!==null?(i=o.baseLanes|t,a.memoizedState=null):i=t,Ta(xu,Ni),Ni|=i;return pi(e,a,n,t),a.child}function qE(e,a){var t=a.ref;(e===null&&t!==null||e!==null&&e.ref!==t)&&(a.flags|=512,a.flags|=2097152)}function mT(e,a,t,i,n){var o=Ai(t)?yl:Yt.current;return o=Fu(a,o),Eu(a,n),t=XT(e,a,t,i,o,n),i=eP(),e!==null&&!fi?(a.updateQueue=e.updateQueue,a.flags&=-2053,e.lanes&=~n,or(e,a,n)):(Wa&&i&&RT(a),a.flags|=1,pi(e,a,t,n),a.child)}function tW(e,a,t,i,n){if(Ai(t)){var o=!0;Db(a)}else o=!1;if(Eu(a,n),a.stateNode===null)vb(e,a),FE(a,t,i),uT(a,t,i,n),i=!0;else if(e===null){var r=a.stateNode,s=a.memoizedProps;r.props=s;var d=r.context,u=t.contextType;typeof u=="object"&&u!==null?u=mn(u):(u=Ai(t)?yl:Yt.current,u=Fu(a,u));var p=t.getDerivedStateFromProps,m=typeof p=="function"||typeof r.getSnapshotBeforeUpdate=="function";m||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(s!==i||d!==u)&&QG(a,r,i,u),Jr=!1;var g=a.memoizedState;r.state=g,Mb(a,i,r,n),d=a.memoizedState,s!==i||g!==d||_i.current||Jr?(typeof p=="function"&&(dT(a,t,p,i),d=a.memoizedState),(s=Jr||YG(a,t,s,i,g,d,u))?(m||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(a.flags|=4194308)):(typeof r.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=i,a.memoizedState=d),r.props=i,r.state=d,r.context=u,i=s):(typeof r.componentDidMount=="function"&&(a.flags|=4194308),i=!1)}else{r=a.stateNode,bE(e,a),s=a.memoizedProps,u=a.type===a.elementType?s:Zn(a.type,s),r.props=u,m=a.pendingProps,g=r.context,d=t.contextType,typeof d=="object"&&d!==null?d=mn(d):(d=Ai(t)?yl:Yt.current,d=Fu(a,d));var b=t.getDerivedStateFromProps;(p=typeof b=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(s!==m||g!==d)&&QG(a,r,i,d),Jr=!1,g=a.memoizedState,r.state=g,Mb(a,i,r,n);var f=a.memoizedState;s!==m||g!==f||_i.current||Jr?(typeof b=="function"&&(dT(a,t,b,i),f=a.memoizedState),(u=Jr||YG(a,t,u,i,g,f,d)||!1)?(p||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(i,f,d),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(i,f,d)),typeof r.componentDidUpdate=="function"&&(a.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof r.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(a.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(a.flags|=1024),a.memoizedProps=i,a.memoizedState=f),r.props=i,r.state=f,r.context=d,i=u):(typeof r.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(a.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(a.flags|=1024),i=!1)}return cT(e,a,t,i,o,n)}function cT(e,a,t,i,n,o){qE(e,a);var r=(a.flags&128)!==0;if(!i&&!r)return n&&RG(a,t,!1),or(e,a,o);i=a.stateNode,g4.current=a;var s=r&&typeof t.getDerivedStateFromError!="function"?null:i.render();return a.flags|=1,e!==null&&r?(a.child=Bu(a,e.child,null,o),a.child=Bu(a,null,s,o)):pi(e,a,s,o),a.memoizedState=i.state,n&&RG(a,t,!0),a.child}function VE(e){var a=e.stateNode;a.pendingContext?BG(e,a.pendingContext,a.pendingContext!==a.context):a.context&&BG(e,a.context,!1),YT(e,a.containerInfo)}function iW(e,a,t,i,n){return Nu(),qT(n),a.flags|=256,pi(e,a,t,i),a.child}var gT={dehydrated:null,treeContext:null,retryLane:0};function kT(e){return{baseLanes:e,cachePool:null,transitions:null}}function UE(e,a,t){var i=a.pendingProps,n=Ra.current,o=!1,r=(a.flags&128)!==0,s;if((s=r)||(s=e!==null&&e.memoizedState===null?!1:(n&2)!==0),s?(o=!0,a.flags&=-129):(e===null||e.memoizedState!==null)&&(n|=1),Ta(Ra,n&1),e===null)return sT(a),e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((a.mode&1)===0?a.lanes=1:e.data==="$!"?a.lanes=8:a.lanes=1073741824,null):(r=i.children,e=i.fallback,o?(i=a.mode,o=a.child,r={mode:"hidden",children:r},(i&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=r):o=tv(r,i,0,null),e=vl(e,i,t,null),o.return=a,e.return=a,o.sibling=e,a.child=o,a.child.memoizedState=kT(t),a.memoizedState=gT,e):iP(a,r));if(n=e.memoizedState,n!==null&&(s=n.dehydrated,s!==null))return k4(e,a,r,i,s,n,t);if(o){o=i.fallback,r=a.mode,n=e.child,s=n.sibling;var d={mode:"hidden",children:i.children};return(r&1)===0&&a.child!==n?(i=a.child,i.childLanes=0,i.pendingProps=d,a.deletions=null):(i=us(n,d),i.subtreeFlags=n.subtreeFlags&14680064),s!==null?o=us(s,o):(o=vl(o,r,t,null),o.flags|=2),o.return=a,i.return=a,i.sibling=o,a.child=i,i=o,o=a.child,r=e.child.memoizedState,r=r===null?kT(t):{baseLanes:r.baseLanes|t,cachePool:null,transitions:r.transitions},o.memoizedState=r,o.childLanes=e.childLanes&~t,a.memoizedState=gT,i}return o=e.child,e=o.sibling,i=us(o,{mode:"visible",children:i.children}),(a.mode&1)===0&&(i.lanes=t),i.return=a,i.sibling=null,e!==null&&(t=a.deletions,t===null?(a.deletions=[e],a.flags|=16):t.push(e)),a.child=i,a.memoizedState=null,i}function iP(e,a){return a=tv({mode:"visible",children:a},e.mode,0,null),a.return=e,e.child=a}function db(e,a,t,i){return i!==null&&qT(i),Bu(a,e.child,null,t),e=iP(a,a.pendingProps.children),e.flags|=2,a.memoizedState=null,e}function k4(e,a,t,i,n,o,r){if(t)return a.flags&256?(a.flags&=-257,i=jI(Error(ae(422))),db(e,a,r,i)):a.memoizedState!==null?(a.child=e.child,a.flags|=128,null):(o=i.fallback,n=a.mode,i=tv({mode:"visible",children:i.children},n,0,null),o=vl(o,n,r,null),o.flags|=2,i.return=a,o.return=a,i.sibling=o,a.child=i,(a.mode&1)!==0&&Bu(a,e.child,null,r),a.child.memoizedState=kT(r),a.memoizedState=gT,o);if((a.mode&1)===0)return db(e,a,r,null);if(n.data==="$!"){if(i=n.nextSibling&&n.nextSibling.dataset,i)var s=i.dgst;return i=s,o=Error(ae(419)),i=jI(o,i,void 0),db(e,a,r,i)}if(s=(r&e.childLanes)!==0,fi||s){if(i=It,i!==null){switch(r&-r){case 4:n=2;break;case 16:n=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:n=32;break;case 536870912:n=268435456;break;default:n=0}n=(n&(i.suspendedLanes|r))!==0?0:n,n!==0&&n!==o.retryLane&&(o.retryLane=n,nr(e,n),On(i,e,n,-1))}return dP(),i=jI(Error(ae(421))),db(e,a,r,i)}return n.data==="$?"?(a.flags|=128,a.child=e.child,a=S4.bind(null,e),n._reactRetry=a,null):(e=o.treeContext,Bi=rs(n.nextSibling),Ri=a,Wa=!0,Vn=null,e!==null&&(ln[dn++]=Xo,ln[dn++]=er,ln[dn++]=fl,Xo=e.id,er=e.overflow,fl=a),a=iP(a,i.children),a.flags|=4096,a)}function nW(e,a,t){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a),lT(e.return,a,t)}function xI(e,a,t,i,n){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:i,tail:t,tailMode:n}:(o.isBackwards=a,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=t,o.tailMode=n)}function OE(e,a,t){var i=a.pendingProps,n=i.revealOrder,o=i.tail;if(pi(e,a,i.children,t),i=Ra.current,(i&2)!==0)i=i&1|2,a.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=a.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&nW(e,t,a);else if(e.tag===19)nW(e,t,a);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===a)break e;for(;e.sibling===null;){if(e.return===null||e.return===a)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}if(Ta(Ra,i),(a.mode&1)===0)a.memoizedState=null;else switch(n){case"forwards":for(t=a.child,n=null;t!==null;)e=t.alternate,e!==null&&Fb(e)===null&&(n=t),t=t.sibling;t=n,t===null?(n=a.child,a.child=null):(n=t.sibling,t.sibling=null),xI(a,!1,n,t,o);break;case"backwards":for(t=null,n=a.child,a.child=null;n!==null;){if(e=n.alternate,e!==null&&Fb(e)===null){a.child=n;break}e=n.sibling,n.sibling=t,t=n,n=e}xI(a,!0,t,null,o);break;case"together":xI(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function vb(e,a){(a.mode&1)===0&&e!==null&&(e.alternate=null,a.alternate=null,a.flags|=2)}function or(e,a,t){if(e!==null&&(a.dependencies=e.dependencies),Al|=a.lanes,(t&a.childLanes)===0)return null;if(e!==null&&a.child!==e.child)throw Error(ae(153));if(a.child!==null){for(e=a.child,t=us(e,e.pendingProps),a.child=t,t.return=a;e.sibling!==null;)e=e.sibling,t=t.sibling=us(e,e.pendingProps),t.return=a;t.sibling=null}return a.child}function h4(e,a,t){switch(a.tag){case 3:VE(a),Nu();break;case 5:vE(a);break;case 1:Ai(a.type)&&Db(a);break;case 4:YT(a,a.stateNode.containerInfo);break;case 10:var i=a.type._context,n=a.memoizedProps.value;Ta(Eb,i._currentValue),i._currentValue=n;break;case 13:if(i=a.memoizedState,i!==null)return i.dehydrated!==null?(Ta(Ra,Ra.current&1),a.flags|=128,null):(t&a.child.childLanes)!==0?UE(e,a,t):(Ta(Ra,Ra.current&1),e=or(e,a,t),e!==null?e.sibling:null);Ta(Ra,Ra.current&1);break;case 19:if(i=(t&a.childLanes)!==0,(e.flags&128)!==0){if(i)return OE(e,a,t);a.flags|=128}if(n=a.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Ta(Ra,Ra.current),i)break;return null;case 22:case 23:return a.lanes=0,ZE(e,a,t)}return or(e,a,t)}var KE,hT,HE,YE;KE=function(e,a){for(var t=a.child;t!==null;){if(t.tag===5||t.tag===6)e.appendChild(t.stateNode);else if(t.tag!==4&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===a)break;for(;t.sibling===null;){if(t.return===null||t.return===a)return;t=t.return}t.sibling.return=t.return,t=t.sibling}};hT=function(){};HE=function(e,a,t,i){var n=e.memoizedProps;if(n!==i){e=a.stateNode,hl(Ao.current);var o=null;switch(t){case"input":n=FI(e,n),i=FI(e,i),o=[];break;case"select":n=qa({},n,{value:void 0}),i=qa({},i,{value:void 0}),o=[];break;case"textarea":n=RI(e,n),i=RI(e,i),o=[];break;default:typeof n.onClick!="function"&&typeof i.onClick=="function"&&(e.onclick=xb)}qI(t,i);var r;t=null;for(u in n)if(!i.hasOwnProperty(u)&&n.hasOwnProperty(u)&&n[u]!=null)if(u==="style"){var s=n[u];for(r in s)s.hasOwnProperty(r)&&(t||(t={}),t[r]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(fc.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in i){var d=i[u];if(s=n?.[u],i.hasOwnProperty(u)&&d!==s&&(d!=null||s!=null))if(u==="style")if(s){for(r in s)!s.hasOwnProperty(r)||d&&d.hasOwnProperty(r)||(t||(t={}),t[r]="");for(r in d)d.hasOwnProperty(r)&&s[r]!==d[r]&&(t||(t={}),t[r]=d[r])}else t||(o||(o=[]),o.push(u,t)),t=d;else u==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,s=s?s.__html:void 0,d!=null&&s!==d&&(o=o||[]).push(u,d)):u==="children"?typeof d!="string"&&typeof d!="number"||(o=o||[]).push(u,""+d):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(fc.hasOwnProperty(u)?(d!=null&&u==="onScroll"&&Pa("scroll",e),o||s===d||(o=[])):(o=o||[]).push(u,d))}t&&(o=o||[]).push("style",t);var u=o;(a.updateQueue=u)&&(a.flags|=4)}};YE=function(e,a,t,i){t!==i&&(a.flags|=4)};function nc(e,a){if(!Wa)switch(e.tailMode){case"hidden":a=e.tail;for(var t=null;a!==null;)a.alternate!==null&&(t=a),a=a.sibling;t===null?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?a||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Kt(e){var a=e.alternate!==null&&e.alternate.child===e.child,t=0,i=0;if(a)for(var n=e.child;n!==null;)t|=n.lanes|n.childLanes,i|=n.subtreeFlags&14680064,i|=n.flags&14680064,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)t|=n.lanes|n.childLanes,i|=n.subtreeFlags,i|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=i,e.childLanes=t,a}function b4(e,a,t){var i=a.pendingProps;switch(ZT(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kt(a),null;case 1:return Ai(a.type)&&Cb(),Kt(a),null;case 3:return i=a.stateNode,Ru(),za(_i),za(Yt),$T(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(sb(a)?a.flags|=4:e===null||e.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Vn!==null&&(TT(Vn),Vn=null))),hT(e,a),Kt(a),null;case 5:QT(a);var n=hl(Dc.current);if(t=a.type,e!==null&&a.stateNode!=null)HE(e,a,t,i,n),e.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!i){if(a.stateNode===null)throw Error(ae(166));return Kt(a),null}if(e=hl(Ao.current),sb(a)){i=a.stateNode,t=a.type;var o=a.memoizedProps;switch(i[fo]=a,i[xc]=o,e=(a.mode&1)!==0,t){case"dialog":Pa("cancel",i),Pa("close",i);break;case"iframe":case"object":case"embed":Pa("load",i);break;case"video":case"audio":for(n=0;n<uc.length;n++)Pa(uc[n],i);break;case"source":Pa("error",i);break;case"img":case"image":case"link":Pa("error",i),Pa("load",i);break;case"details":Pa("toggle",i);break;case"input":mG(i,o),Pa("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!o.multiple},Pa("invalid",i);break;case"textarea":gG(i,o),Pa("invalid",i)}qI(t,o),n=null;for(var r in o)if(o.hasOwnProperty(r)){var s=o[r];r==="children"?typeof s=="string"?i.textContent!==s&&(o.suppressHydrationWarning!==!0&&rb(i.textContent,s,e),n=["children",s]):typeof s=="number"&&i.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&rb(i.textContent,s,e),n=["children",""+s]):fc.hasOwnProperty(r)&&s!=null&&r==="onScroll"&&Pa("scroll",i)}switch(t){case"input":Hh(i),cG(i,o,!0);break;case"textarea":Hh(i),kG(i);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(i.onclick=xb)}i=n,a.updateQueue=i,i!==null&&(a.flags|=4)}else{r=n.nodeType===9?n:n.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=IW(t)),e==="http://www.w3.org/1999/xhtml"?t==="script"?(e=r.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=r.createElement(t,{is:i.is}):(e=r.createElement(t),t==="select"&&(r=e,i.multiple?r.multiple=!0:i.size&&(r.size=i.size))):e=r.createElementNS(e,t),e[fo]=a,e[xc]=i,KE(e,a,!1,!1),a.stateNode=e;e:{switch(r=VI(t,i),t){case"dialog":Pa("cancel",e),Pa("close",e),n=i;break;case"iframe":case"object":case"embed":Pa("load",e),n=i;break;case"video":case"audio":for(n=0;n<uc.length;n++)Pa(uc[n],e);n=i;break;case"source":Pa("error",e),n=i;break;case"img":case"image":case"link":Pa("error",e),Pa("load",e),n=i;break;case"details":Pa("toggle",e),n=i;break;case"input":mG(e,i),n=FI(e,i),Pa("invalid",e);break;case"option":n=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},n=qa({},i,{value:void 0}),Pa("invalid",e);break;case"textarea":gG(e,i),n=RI(e,i),Pa("invalid",e);break;default:n=i}qI(t,n),s=n;for(o in s)if(s.hasOwnProperty(o)){var d=s[o];o==="style"?zW(e,d):o==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,d!=null&&TW(e,d)):o==="children"?typeof d=="string"?(t!=="textarea"||d!=="")&&_c(e,d):typeof d=="number"&&_c(e,""+d):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(fc.hasOwnProperty(o)?d!=null&&o==="onScroll"&&Pa("scroll",e):d!=null&&wT(e,o,d,r))}switch(t){case"input":Hh(e),cG(e,i,!1);break;case"textarea":Hh(e),kG(e);break;case"option":i.value!=null&&e.setAttribute("value",""+ps(i.value));break;case"select":e.multiple=!!i.multiple,o=i.value,o!=null?Cu(e,!!i.multiple,o,!1):i.defaultValue!=null&&Cu(e,!!i.multiple,i.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=xb)}switch(t){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(a.flags|=4)}a.ref!==null&&(a.flags|=512,a.flags|=2097152)}return Kt(a),null;case 6:if(e&&a.stateNode!=null)YE(e,a,e.memoizedProps,i);else{if(typeof i!="string"&&a.stateNode===null)throw Error(ae(166));if(t=hl(Dc.current),hl(Ao.current),sb(a)){if(i=a.stateNode,t=a.memoizedProps,i[fo]=a,(o=i.nodeValue!==t)&&(e=Ri,e!==null))switch(e.tag){case 3:rb(i.nodeValue,t,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&rb(i.nodeValue,t,(e.mode&1)!==0)}o&&(a.flags|=4)}else i=(t.nodeType===9?t:t.ownerDocument).createTextNode(i),i[fo]=a,a.stateNode=i}return Kt(a),null;case 13:if(za(Ra),i=a.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Wa&&Bi!==null&&(a.mode&1)!==0&&(a.flags&128)===0)cE(),Nu(),a.flags|=98560,o=!1;else if(o=sb(a),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(ae(318));if(o=a.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(ae(317));o[fo]=a}else Nu(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Kt(a),o=!1}else Vn!==null&&(TT(Vn),Vn=null),o=!0;if(!o)return a.flags&65536?a:null}return(a.flags&128)!==0?(a.lanes=t,a):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(a.child.flags|=8192,(a.mode&1)!==0&&(e===null||(Ra.current&1)!==0?ct===0&&(ct=3):dP())),a.updateQueue!==null&&(a.flags|=4),Kt(a),null);case 4:return Ru(),hT(e,a),e===null&&Sc(a.stateNode.containerInfo),Kt(a),null;case 10:return OT(a.type._context),Kt(a),null;case 17:return Ai(a.type)&&Cb(),Kt(a),null;case 19:if(za(Ra),o=a.memoizedState,o===null)return Kt(a),null;if(i=(a.flags&128)!==0,r=o.rendering,r===null)if(i)nc(o,!1);else{if(ct!==0||e!==null&&(e.flags&128)!==0)for(e=a.child;e!==null;){if(r=Fb(e),r!==null){for(a.flags|=128,nc(o,!1),i=r.updateQueue,i!==null&&(a.updateQueue=i,a.flags|=4),a.subtreeFlags=0,i=t,t=a.child;t!==null;)o=t,e=i,o.flags&=14680066,r=o.alternate,r===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=r.childLanes,o.lanes=r.lanes,o.child=r.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=r.memoizedProps,o.memoizedState=r.memoizedState,o.updateQueue=r.updateQueue,o.type=r.type,e=r.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t=t.sibling;return Ta(Ra,Ra.current&1|2),a.child}e=e.sibling}o.tail!==null&&tt()>qu&&(a.flags|=128,i=!0,nc(o,!1),a.lanes=4194304)}else{if(!i)if(e=Fb(r),e!==null){if(a.flags|=128,i=!0,t=e.updateQueue,t!==null&&(a.updateQueue=t,a.flags|=4),nc(o,!0),o.tail===null&&o.tailMode==="hidden"&&!r.alternate&&!Wa)return Kt(a),null}else 2*tt()-o.renderingStartTime>qu&&t!==1073741824&&(a.flags|=128,i=!0,nc(o,!1),a.lanes=4194304);o.isBackwards?(r.sibling=a.child,a.child=r):(t=o.last,t!==null?t.sibling=r:a.child=r,o.last=r)}return o.tail!==null?(a=o.tail,o.rendering=a,o.tail=a.sibling,o.renderingStartTime=tt(),a.sibling=null,t=Ra.current,Ta(Ra,i?t&1|2:t&1),a):(Kt(a),null);case 22:case 23:return lP(),i=a.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(a.flags|=8192),i&&(a.mode&1)!==0?(Ni&1073741824)!==0&&(Kt(a),a.subtreeFlags&6&&(a.flags|=8192)):Kt(a),null;case 24:return null;case 25:return null}throw Error(ae(156,a.tag))}function v4(e,a){switch(ZT(a),a.tag){case 1:return Ai(a.type)&&Cb(),e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 3:return Ru(),za(_i),za(Yt),$T(),e=a.flags,(e&65536)!==0&&(e&128)===0?(a.flags=e&-65537|128,a):null;case 5:return QT(a),null;case 13:if(za(Ra),e=a.memoizedState,e!==null&&e.dehydrated!==null){if(a.alternate===null)throw Error(ae(340));Nu()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 19:return za(Ra),null;case 4:return Ru(),null;case 10:return OT(a.type._context),null;case 22:case 23:return lP(),null;case 24:return null;default:return null}}var ub=!1,Ht=!1,y4=typeof WeakSet=="function"?WeakSet:Set,fe=null;function ju(e,a){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(i){Ya(e,a,i)}else t.current=null}function bT(e,a,t){try{t()}catch(i){Ya(e,a,i)}}var oW=!1;function f4(e,a){if(eT=wb,e=eE(),BT(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var i=t.getSelection&&t.getSelection();if(i&&i.rangeCount!==0){t=i.anchorNode;var n=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{t.nodeType,o.nodeType}catch{t=null;break e}var r=0,s=-1,d=-1,u=0,p=0,m=e,g=null;a:for(;;){for(var b;m!==t||n!==0&&m.nodeType!==3||(s=r+n),m!==o||i!==0&&m.nodeType!==3||(d=r+i),m.nodeType===3&&(r+=m.nodeValue.length),(b=m.firstChild)!==null;)g=m,m=b;for(;;){if(m===e)break a;if(g===t&&++u===n&&(s=r),g===o&&++p===i&&(d=r),(b=m.nextSibling)!==null)break;m=g,g=m.parentNode}m=b}t=s===-1||d===-1?null:{start:s,end:d}}else t=null}t=t||{start:0,end:0}}else t=null;for(aT={focusedElem:e,selectionRange:t},wb=!1,fe=a;fe!==null;)if(a=fe,e=a.child,(a.subtreeFlags&1028)!==0&&e!==null)e.return=a,fe=e;else for(;fe!==null;){a=fe;try{var f=a.alternate;if((a.flags&1024)!==0)switch(a.tag){case 0:case 11:case 15:break;case 1:if(f!==null){var v=f.memoizedProps,_=f.memoizedState,h=a.stateNode,k=h.getSnapshotBeforeUpdate(a.elementType===a.type?v:Zn(a.type,v),_);h.__reactInternalSnapshotBeforeUpdate=k}break;case 3:var y=a.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ae(163))}}catch(I){Ya(a,a.return,I)}if(e=a.sibling,e!==null){e.return=a.return,fe=e;break}fe=a.return}return f=oW,oW=!1,f}function bc(e,a,t){var i=a.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var n=i=i.next;do{if((n.tag&e)===e){var o=n.destroy;n.destroy=void 0,o!==void 0&&bT(a,t,o)}n=n.next}while(n!==i)}}function ev(e,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var t=a=a.next;do{if((t.tag&e)===e){var i=t.create;t.destroy=i()}t=t.next}while(t!==a)}}function vT(e){var a=e.ref;if(a!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof a=="function"?a(e):a.current=e}}function QE(e){var a=e.alternate;a!==null&&(e.alternate=null,QE(a)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(a=e.stateNode,a!==null&&(delete a[fo],delete a[xc],delete a[nT],delete a[t4],delete a[i4])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function $E(e){return e.tag===5||e.tag===3||e.tag===4}function rW(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$E(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function yT(e,a,t){var i=e.tag;if(i===5||i===6)e=e.stateNode,a?t.nodeType===8?t.parentNode.insertBefore(e,a):t.insertBefore(e,a):(t.nodeType===8?(a=t.parentNode,a.insertBefore(e,t)):(a=t,a.appendChild(e)),t=t._reactRootContainer,t!=null||a.onclick!==null||(a.onclick=xb));else if(i!==4&&(e=e.child,e!==null))for(yT(e,a,t),e=e.sibling;e!==null;)yT(e,a,t),e=e.sibling}function fT(e,a,t){var i=e.tag;if(i===5||i===6)e=e.stateNode,a?t.insertBefore(e,a):t.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(fT(e,a,t),e=e.sibling;e!==null;)fT(e,a,t),e=e.sibling}var Wt=null,qn=!1;function Qr(e,a,t){for(t=t.child;t!==null;)JE(e,a,t),t=t.sibling}function JE(e,a,t){if(_o&&typeof _o.onCommitFiberUnmount=="function")try{_o.onCommitFiberUnmount(Ob,t)}catch{}switch(t.tag){case 5:Ht||ju(t,a);case 6:var i=Wt,n=qn;Wt=null,Qr(e,a,t),Wt=i,qn=n,Wt!==null&&(qn?(e=Wt,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):Wt.removeChild(t.stateNode));break;case 18:Wt!==null&&(qn?(e=Wt,t=t.stateNode,e.nodeType===8?II(e.parentNode,t):e.nodeType===1&&II(e,t),Pc(e)):II(Wt,t.stateNode));break;case 4:i=Wt,n=qn,Wt=t.stateNode.containerInfo,qn=!0,Qr(e,a,t),Wt=i,qn=n;break;case 0:case 11:case 14:case 15:if(!Ht&&(i=t.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){n=i=i.next;do{var o=n,r=o.destroy;o=o.tag,r!==void 0&&((o&2)!==0||(o&4)!==0)&&bT(t,a,r),n=n.next}while(n!==i)}Qr(e,a,t);break;case 1:if(!Ht&&(ju(t,a),i=t.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=t.memoizedProps,i.state=t.memoizedState,i.componentWillUnmount()}catch(s){Ya(t,a,s)}Qr(e,a,t);break;case 21:Qr(e,a,t);break;case 22:t.mode&1?(Ht=(i=Ht)||t.memoizedState!==null,Qr(e,a,t),Ht=i):Qr(e,a,t);break;default:Qr(e,a,t)}}function sW(e){var a=e.updateQueue;if(a!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new y4),a.forEach(function(i){var n=j4.bind(null,e,i);t.has(i)||(t.add(i),i.then(n,n))})}}function Rn(e,a){var t=a.deletions;if(t!==null)for(var i=0;i<t.length;i++){var n=t[i];try{var o=e,r=a,s=r;e:for(;s!==null;){switch(s.tag){case 5:Wt=s.stateNode,qn=!1;break e;case 3:Wt=s.stateNode.containerInfo,qn=!0;break e;case 4:Wt=s.stateNode.containerInfo,qn=!0;break e}s=s.return}if(Wt===null)throw Error(ae(160));JE(o,r,n),Wt=null,qn=!1;var d=n.alternate;d!==null&&(d.return=null),n.return=null}catch(u){Ya(n,a,u)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)XE(a,e),a=a.sibling}function XE(e,a){var t=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Rn(a,e),vo(e),i&4){try{bc(3,e,e.return),ev(3,e)}catch(v){Ya(e,e.return,v)}try{bc(5,e,e.return)}catch(v){Ya(e,e.return,v)}}break;case 1:Rn(a,e),vo(e),i&512&&t!==null&&ju(t,t.return);break;case 5:if(Rn(a,e),vo(e),i&512&&t!==null&&ju(t,t.return),e.flags&32){var n=e.stateNode;try{_c(n,"")}catch(v){Ya(e,e.return,v)}}if(i&4&&(n=e.stateNode,n!=null)){var o=e.memoizedProps,r=t!==null?t.memoizedProps:o,s=e.type,d=e.updateQueue;if(e.updateQueue=null,d!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&_W(n,o),VI(s,r);var u=VI(s,o);for(r=0;r<d.length;r+=2){var p=d[r],m=d[r+1];p==="style"?zW(n,m):p==="dangerouslySetInnerHTML"?TW(n,m):p==="children"?_c(n,m):wT(n,p,m,u)}switch(s){case"input":NI(n,o);break;case"textarea":AW(n,o);break;case"select":var g=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!o.multiple;var b=o.value;b!=null?Cu(n,!!o.multiple,b,!1):g!==!!o.multiple&&(o.defaultValue!=null?Cu(n,!!o.multiple,o.defaultValue,!0):Cu(n,!!o.multiple,o.multiple?[]:"",!1))}n[xc]=o}catch(v){Ya(e,e.return,v)}}break;case 6:if(Rn(a,e),vo(e),i&4){if(e.stateNode===null)throw Error(ae(162));n=e.stateNode,o=e.memoizedProps;try{n.nodeValue=o}catch(v){Ya(e,e.return,v)}}break;case 3:if(Rn(a,e),vo(e),i&4&&t!==null&&t.memoizedState.isDehydrated)try{Pc(a.containerInfo)}catch(v){Ya(e,e.return,v)}break;case 4:Rn(a,e),vo(e);break;case 13:Rn(a,e),vo(e),n=e.child,n.flags&8192&&(o=n.memoizedState!==null,n.stateNode.isHidden=o,!o||n.alternate!==null&&n.alternate.memoizedState!==null||(rP=tt())),i&4&&sW(e);break;case 22:if(p=t!==null&&t.memoizedState!==null,e.mode&1?(Ht=(u=Ht)||p,Rn(a,e),Ht=u):Rn(a,e),vo(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!p&&(e.mode&1)!==0)for(fe=e,p=e.child;p!==null;){for(m=fe=p;fe!==null;){switch(g=fe,b=g.child,g.tag){case 0:case 11:case 14:case 15:bc(4,g,g.return);break;case 1:ju(g,g.return);var f=g.stateNode;if(typeof f.componentWillUnmount=="function"){i=g,t=g.return;try{a=i,f.props=a.memoizedProps,f.state=a.memoizedState,f.componentWillUnmount()}catch(v){Ya(i,t,v)}}break;case 5:ju(g,g.return);break;case 22:if(g.memoizedState!==null){dW(m);continue}}b!==null?(b.return=g,fe=b):dW(m)}p=p.sibling}e:for(p=null,m=e;;){if(m.tag===5){if(p===null){p=m;try{n=m.stateNode,u?(o=n.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=m.stateNode,d=m.memoizedProps.style,r=d!=null&&d.hasOwnProperty("display")?d.display:null,s.style.display=PW("display",r))}catch(v){Ya(e,e.return,v)}}}else if(m.tag===6){if(p===null)try{m.stateNode.nodeValue=u?"":m.memoizedProps}catch(v){Ya(e,e.return,v)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;p===m&&(p=null),m=m.return}p===m&&(p=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:Rn(a,e),vo(e),i&4&&sW(e);break;case 21:break;default:Rn(a,e),vo(e)}}function vo(e){var a=e.flags;if(a&2){try{e:{for(var t=e.return;t!==null;){if($E(t)){var i=t;break e}t=t.return}throw Error(ae(160))}switch(i.tag){case 5:var n=i.stateNode;i.flags&32&&(_c(n,""),i.flags&=-33);var o=rW(e);fT(e,o,n);break;case 3:case 4:var r=i.stateNode.containerInfo,s=rW(e);yT(e,s,r);break;default:throw Error(ae(161))}}catch(d){Ya(e,e.return,d)}e.flags&=-3}a&4096&&(e.flags&=-4097)}function _4(e,a,t){fe=e,eL(e,a,t)}function eL(e,a,t){for(var i=(e.mode&1)!==0;fe!==null;){var n=fe,o=n.child;if(n.tag===22&&i){var r=n.memoizedState!==null||ub;if(!r){var s=n.alternate,d=s!==null&&s.memoizedState!==null||Ht;s=ub;var u=Ht;if(ub=r,(Ht=d)&&!u)for(fe=n;fe!==null;)r=fe,d=r.child,r.tag===22&&r.memoizedState!==null?uW(n):d!==null?(d.return=r,fe=d):uW(n);for(;o!==null;)fe=o,eL(o,a,t),o=o.sibling;fe=n,ub=s,Ht=u}lW(e,a,t)}else(n.subtreeFlags&8772)!==0&&o!==null?(o.return=n,fe=o):lW(e,a,t)}}function lW(e){for(;fe!==null;){var a=fe;if((a.flags&8772)!==0){var t=a.alternate;try{if((a.flags&8772)!==0)switch(a.tag){case 0:case 11:case 15:Ht||ev(5,a);break;case 1:var i=a.stateNode;if(a.flags&4&&!Ht)if(t===null)i.componentDidMount();else{var n=a.elementType===a.type?t.memoizedProps:Zn(a.type,t.memoizedProps);i.componentDidUpdate(n,t.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=a.updateQueue;o!==null&&OG(a,o,i);break;case 3:var r=a.updateQueue;if(r!==null){if(t=null,a.child!==null)switch(a.child.tag){case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}OG(a,r,t)}break;case 5:var s=a.stateNode;if(t===null&&a.flags&4){t=s;var d=a.memoizedProps;switch(a.type){case"button":case"input":case"select":case"textarea":d.autoFocus&&t.focus();break;case"img":d.src&&(t.src=d.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(a.memoizedState===null){var u=a.alternate;if(u!==null){var p=u.memoizedState;if(p!==null){var m=p.dehydrated;m!==null&&Pc(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ae(163))}Ht||a.flags&512&&vT(a)}catch(g){Ya(a,a.return,g)}}if(a===e){fe=null;break}if(t=a.sibling,t!==null){t.return=a.return,fe=t;break}fe=a.return}}function dW(e){for(;fe!==null;){var a=fe;if(a===e){fe=null;break}var t=a.sibling;if(t!==null){t.return=a.return,fe=t;break}fe=a.return}}function uW(e){for(;fe!==null;){var a=fe;try{switch(a.tag){case 0:case 11:case 15:var t=a.return;try{ev(4,a)}catch(d){Ya(a,t,d)}break;case 1:var i=a.stateNode;if(typeof i.componentDidMount=="function"){var n=a.return;try{i.componentDidMount()}catch(d){Ya(a,n,d)}}var o=a.return;try{vT(a)}catch(d){Ya(a,o,d)}break;case 5:var r=a.return;try{vT(a)}catch(d){Ya(a,r,d)}}}catch(d){Ya(a,a.return,d)}if(a===e){fe=null;break}var s=a.sibling;if(s!==null){s.return=a.return,fe=s;break}fe=a.return}}var A4=Math.ceil,Rb=rr.ReactCurrentDispatcher,nP=rr.ReactCurrentOwner,pn=rr.ReactCurrentBatchConfig,oa=0,It=null,lt=null,Et=0,Ni=0,xu=gs(0),ct=0,Lc=null,Al=0,av=0,oP=0,vc=null,yi=null,rP=0,qu=1/0,$o=null,Zb=!1,_T=null,ls=null,pb=!1,ts=null,qb=0,yc=0,AT=null,yb=-1,fb=0;function mi(){return(oa&6)!==0?tt():yb!==-1?yb:yb=tt()}function ds(e){return(e.mode&1)===0?1:(oa&2)!==0&&Et!==0?Et&-Et:o4.transition!==null?(fb===0&&(fb=FW()),fb):(e=ka,e!==0||(e=window.event,e=e===void 0?16:UW(e.type)),e)}function On(e,a,t,i){if(50<yc)throw yc=0,AT=null,Error(ae(185));Mc(e,t,i),((oa&2)===0||e!==It)&&(e===It&&((oa&2)===0&&(av|=t),ct===4&&es(e,Et)),Ii(e,i),t===1&&oa===0&&(a.mode&1)===0&&(qu=tt()+500,$b&&ks()))}function Ii(e,a){var t=e.callbackNode;sY(e,a);var i=zb(e,e===It?Et:0);if(i===0)t!==null&&vG(t),e.callbackNode=null,e.callbackPriority=0;else if(a=i&-i,e.callbackPriority!==a){if(t!=null&&vG(t),a===1)e.tag===0?n4(pW.bind(null,e)):uE(pW.bind(null,e)),e4(function(){(oa&6)===0&&ks()}),t=null;else{switch(NW(i)){case 1:t=DT;break;case 4:t=LW;break;case 16:t=Pb;break;case 536870912:t=MW;break;default:t=Pb}t=lL(t,aL.bind(null,e))}e.callbackPriority=a,e.callbackNode=t}}function aL(e,a){if(yb=-1,fb=0,(oa&6)!==0)throw Error(ae(327));var t=e.callbackNode;if(Lu()&&e.callbackNode!==t)return null;var i=zb(e,e===It?Et:0);if(i===0)return null;if((i&30)!==0||(i&e.expiredLanes)!==0||a)a=Vb(e,i);else{a=i;var n=oa;oa|=2;var o=iL();(It!==e||Et!==a)&&($o=null,qu=tt()+500,bl(e,a));do try{P4();break}catch(s){tL(e,s)}while(!0);UT(),Rb.current=o,oa=n,lt!==null?a=0:(It=null,Et=0,a=ct)}if(a!==0){if(a===2&&(n=YI(e),n!==0&&(i=n,a=IT(e,n))),a===1)throw t=Lc,bl(e,0),es(e,i),Ii(e,tt()),t;if(a===6)es(e,i);else{if(n=e.current.alternate,(i&30)===0&&!I4(n)&&(a=Vb(e,i),a===2&&(o=YI(e),o!==0&&(i=o,a=IT(e,o))),a===1))throw t=Lc,bl(e,0),es(e,i),Ii(e,tt()),t;switch(e.finishedWork=n,e.finishedLanes=i,a){case 0:case 1:throw Error(ae(345));case 2:cl(e,yi,$o);break;case 3:if(es(e,i),(i&130023424)===i&&(a=rP+500-tt(),10<a)){if(zb(e,0)!==0)break;if(n=e.suspendedLanes,(n&i)!==i){mi(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=iT(cl.bind(null,e,yi,$o),a);break}cl(e,yi,$o);break;case 4:if(es(e,i),(i&4194240)===i)break;for(a=e.eventTimes,n=-1;0<i;){var r=31-Un(i);o=1<<r,r=a[r],r>n&&(n=r),i&=~o}if(i=n,i=tt()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*A4(i/1960))-i,10<i){e.timeoutHandle=iT(cl.bind(null,e,yi,$o),i);break}cl(e,yi,$o);break;case 5:cl(e,yi,$o);break;default:throw Error(ae(329))}}}return Ii(e,tt()),e.callbackNode===t?aL.bind(null,e):null}function IT(e,a){var t=vc;return e.current.memoizedState.isDehydrated&&(bl(e,a).flags|=256),e=Vb(e,a),e!==2&&(a=yi,yi=t,a!==null&&TT(a)),e}function TT(e){yi===null?yi=e:yi.push.apply(yi,e)}function I4(e){for(var a=e;;){if(a.flags&16384){var t=a.updateQueue;if(t!==null&&(t=t.stores,t!==null))for(var i=0;i<t.length;i++){var n=t[i],o=n.getSnapshot;n=n.value;try{if(!Kn(o(),n))return!1}catch{return!1}}}if(t=a.child,a.subtreeFlags&16384&&t!==null)t.return=a,a=t;else{if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function es(e,a){for(a&=~oP,a&=~av,e.suspendedLanes|=a,e.pingedLanes&=~a,e=e.expirationTimes;0<a;){var t=31-Un(a),i=1<<t;e[t]=-1,a&=~i}}function pW(e){if((oa&6)!==0)throw Error(ae(327));Lu();var a=zb(e,0);if((a&1)===0)return Ii(e,tt()),null;var t=Vb(e,a);if(e.tag!==0&&t===2){var i=YI(e);i!==0&&(a=i,t=IT(e,i))}if(t===1)throw t=Lc,bl(e,0),es(e,a),Ii(e,tt()),t;if(t===6)throw Error(ae(345));return e.finishedWork=e.current.alternate,e.finishedLanes=a,cl(e,yi,$o),Ii(e,tt()),null}function sP(e,a){var t=oa;oa|=1;try{return e(a)}finally{oa=t,oa===0&&(qu=tt()+500,$b&&ks())}}function Il(e){ts!==null&&ts.tag===0&&(oa&6)===0&&Lu();var a=oa;oa|=1;var t=pn.transition,i=ka;try{if(pn.transition=null,ka=1,e)return e()}finally{ka=i,pn.transition=t,oa=a,(oa&6)===0&&ks()}}function lP(){Ni=xu.current,za(xu)}function bl(e,a){e.finishedWork=null,e.finishedLanes=0;var t=e.timeoutHandle;if(t!==-1&&(e.timeoutHandle=-1,XY(t)),lt!==null)for(t=lt.return;t!==null;){var i=t;switch(ZT(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&Cb();break;case 3:Ru(),za(_i),za(Yt),$T();break;case 5:QT(i);break;case 4:Ru();break;case 13:za(Ra);break;case 19:za(Ra);break;case 10:OT(i.type._context);break;case 22:case 23:lP()}t=t.return}if(It=e,lt=e=us(e.current,null),Et=Ni=a,ct=0,Lc=null,oP=av=Al=0,yi=vc=null,kl!==null){for(a=0;a<kl.length;a++)if(t=kl[a],i=t.interleaved,i!==null){t.interleaved=null;var n=i.next,o=t.pending;if(o!==null){var r=o.next;o.next=n,i.next=r}t.pending=i}kl=null}return e}function tL(e,a){do{var t=lt;try{if(UT(),hb.current=Bb,Nb){for(var i=Za.memoizedState;i!==null;){var n=i.queue;n!==null&&(n.pending=null),i=i.next}Nb=!1}if(_l=0,At=mt=Za=null,hc=!1,Gc=0,nP.current=null,t===null||t.return===null){ct=1,Lc=a,lt=null;break}e:{var o=e,r=t.return,s=t,d=a;if(a=Et,s.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){var u=d,p=s,m=p.tag;if((p.mode&1)===0&&(m===0||m===11||m===15)){var g=p.alternate;g?(p.updateQueue=g.updateQueue,p.memoizedState=g.memoizedState,p.lanes=g.lanes):(p.updateQueue=null,p.memoizedState=null)}var b=JG(r);if(b!==null){b.flags&=-257,XG(b,r,s,o,a),b.mode&1&&$G(o,u,a),a=b,d=u;var f=a.updateQueue;if(f===null){var v=new Set;v.add(d),a.updateQueue=v}else f.add(d);break e}else{if((a&1)===0){$G(o,u,a),dP();break e}d=Error(ae(426))}}else if(Wa&&s.mode&1){var _=JG(r);if(_!==null){(_.flags&65536)===0&&(_.flags|=256),XG(_,r,s,o,a),qT(Zu(d,s));break e}}o=d=Zu(d,s),ct!==4&&(ct=2),vc===null?vc=[o]:vc.push(o),o=r;do{switch(o.tag){case 3:o.flags|=65536,a&=-a,o.lanes|=a;var h=NE(o,d,a);UG(o,h);break e;case 1:s=d;var k=o.type,y=o.stateNode;if((o.flags&128)===0&&(typeof k.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(ls===null||!ls.has(y)))){o.flags|=65536,a&=-a,o.lanes|=a;var I=BE(o,s,a);UG(o,I);break e}}o=o.return}while(o!==null)}oL(t)}catch(A){a=A,lt===t&&t!==null&&(lt=t=t.return);continue}break}while(!0)}function iL(){var e=Rb.current;return Rb.current=Bb,e===null?Bb:e}function dP(){(ct===0||ct===3||ct===2)&&(ct=4),It===null||(Al&268435455)===0&&(av&268435455)===0||es(It,Et)}function Vb(e,a){var t=oa;oa|=2;var i=iL();(It!==e||Et!==a)&&($o=null,bl(e,a));do try{T4();break}catch(n){tL(e,n)}while(!0);if(UT(),oa=t,Rb.current=i,lt!==null)throw Error(ae(261));return It=null,Et=0,ct}function T4(){for(;lt!==null;)nL(lt)}function P4(){for(;lt!==null&&!J2();)nL(lt)}function nL(e){var a=sL(e.alternate,e,Ni);e.memoizedProps=e.pendingProps,a===null?oL(e):lt=a,nP.current=null}function oL(e){var a=e;do{var t=a.alternate;if(e=a.return,(a.flags&32768)===0){if(t=b4(t,a,Ni),t!==null){lt=t;return}}else{if(t=v4(t,a),t!==null){t.flags&=32767,lt=t;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ct=6,lt=null;return}}if(a=a.sibling,a!==null){lt=a;return}lt=a=e}while(a!==null);ct===0&&(ct=5)}function cl(e,a,t){var i=ka,n=pn.transition;try{pn.transition=null,ka=1,z4(e,a,t,i)}finally{pn.transition=n,ka=i}return null}function z4(e,a,t,i){do Lu();while(ts!==null);if((oa&6)!==0)throw Error(ae(327));t=e.finishedWork;var n=e.finishedLanes;if(t===null)return null;if(e.finishedWork=null,e.finishedLanes=0,t===e.current)throw Error(ae(177));e.callbackNode=null,e.callbackPriority=0;var o=t.lanes|t.childLanes;if(lY(e,o),e===It&&(lt=It=null,Et=0),(t.subtreeFlags&2064)===0&&(t.flags&2064)===0||pb||(pb=!0,lL(Pb,function(){return Lu(),null})),o=(t.flags&15990)!==0,(t.subtreeFlags&15990)!==0||o){o=pn.transition,pn.transition=null;var r=ka;ka=1;var s=oa;oa|=4,nP.current=null,f4(e,t),XE(t,e),HY(aT),wb=!!eT,aT=eT=null,e.current=t,_4(t,e,n),X2(),oa=s,ka=r,pn.transition=o}else e.current=t;if(pb&&(pb=!1,ts=e,qb=n),o=e.pendingLanes,o===0&&(ls=null),tY(t.stateNode,i),Ii(e,tt()),a!==null)for(i=e.onRecoverableError,t=0;t<a.length;t++)n=a[t],i(n.value,{componentStack:n.stack,digest:n.digest});if(Zb)throw Zb=!1,e=_T,_T=null,e;return(qb&1)!==0&&e.tag!==0&&Lu(),o=e.pendingLanes,(o&1)!==0?e===AT?yc++:(yc=0,AT=e):yc=0,ks(),null}function Lu(){if(ts!==null){var e=NW(qb),a=pn.transition,t=ka;try{if(pn.transition=null,ka=16>e?16:e,ts===null)var i=!1;else{if(e=ts,ts=null,qb=0,(oa&6)!==0)throw Error(ae(331));var n=oa;for(oa|=4,fe=e.current;fe!==null;){var o=fe,r=o.child;if((fe.flags&16)!==0){var s=o.deletions;if(s!==null){for(var d=0;d<s.length;d++){var u=s[d];for(fe=u;fe!==null;){var p=fe;switch(p.tag){case 0:case 11:case 15:bc(8,p,o)}var m=p.child;if(m!==null)m.return=p,fe=m;else for(;fe!==null;){p=fe;var g=p.sibling,b=p.return;if(QE(p),p===u){fe=null;break}if(g!==null){g.return=b,fe=g;break}fe=b}}}var f=o.alternate;if(f!==null){var v=f.child;if(v!==null){f.child=null;do{var _=v.sibling;v.sibling=null,v=_}while(v!==null)}}fe=o}}if((o.subtreeFlags&2064)!==0&&r!==null)r.return=o,fe=r;else e:for(;fe!==null;){if(o=fe,(o.flags&2048)!==0)switch(o.tag){case 0:case 11:case 15:bc(9,o,o.return)}var h=o.sibling;if(h!==null){h.return=o.return,fe=h;break e}fe=o.return}}var k=e.current;for(fe=k;fe!==null;){r=fe;var y=r.child;if((r.subtreeFlags&2064)!==0&&y!==null)y.return=r,fe=y;else e:for(r=k;fe!==null;){if(s=fe,(s.flags&2048)!==0)try{switch(s.tag){case 0:case 11:case 15:ev(9,s)}}catch(A){Ya(s,s.return,A)}if(s===r){fe=null;break e}var I=s.sibling;if(I!==null){I.return=s.return,fe=I;break e}fe=s.return}}if(oa=n,ks(),_o&&typeof _o.onPostCommitFiberRoot=="function")try{_o.onPostCommitFiberRoot(Ob,e)}catch{}i=!0}return i}finally{ka=t,pn.transition=a}}return!1}function mW(e,a,t){a=Zu(t,a),a=NE(e,a,1),e=ss(e,a,1),a=mi(),e!==null&&(Mc(e,1,a),Ii(e,a))}function Ya(e,a,t){if(e.tag===3)mW(e,e,t);else for(;a!==null;){if(a.tag===3){mW(a,e,t);break}else if(a.tag===1){var i=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(ls===null||!ls.has(i))){e=Zu(t,e),e=BE(a,e,1),a=ss(a,e,1),e=mi(),a!==null&&(Mc(a,1,e),Ii(a,e));break}}a=a.return}}function w4(e,a,t){var i=e.pingCache;i!==null&&i.delete(a),a=mi(),e.pingedLanes|=e.suspendedLanes&t,It===e&&(Et&t)===t&&(ct===4||ct===3&&(Et&130023424)===Et&&500>tt()-rP?bl(e,0):oP|=t),Ii(e,a)}function rL(e,a){a===0&&((e.mode&1)===0?a=1:(a=$h,$h<<=1,($h&130023424)===0&&($h=4194304)));var t=mi();e=nr(e,a),e!==null&&(Mc(e,a,t),Ii(e,t))}function S4(e){var a=e.memoizedState,t=0;a!==null&&(t=a.retryLane),rL(e,t)}function j4(e,a){var t=0;switch(e.tag){case 13:var i=e.stateNode,n=e.memoizedState;n!==null&&(t=n.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(ae(314))}i!==null&&i.delete(a),rL(e,t)}var sL;sL=function(e,a,t){if(e!==null)if(e.memoizedProps!==a.pendingProps||_i.current)fi=!0;else{if((e.lanes&t)===0&&(a.flags&128)===0)return fi=!1,h4(e,a,t);fi=(e.flags&131072)!==0}else fi=!1,Wa&&(a.flags&1048576)!==0&&pE(a,Wb,a.index);switch(a.lanes=0,a.tag){case 2:var i=a.type;vb(e,a),e=a.pendingProps;var n=Fu(a,Yt.current);Eu(a,t),n=XT(null,a,i,e,n,t);var o=eP();return a.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,Ai(i)?(o=!0,Db(a)):o=!1,a.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,HT(a),n.updater=Xb,a.stateNode=n,n._reactInternals=a,uT(a,i,e,t),a=cT(null,a,i,!0,o,t)):(a.tag=0,Wa&&o&&RT(a),pi(null,a,n,t),a=a.child),a;case 16:i=a.elementType;e:{switch(vb(e,a),e=a.pendingProps,n=i._init,i=n(i._payload),a.type=i,n=a.tag=C4(i),e=Zn(i,e),n){case 0:a=mT(null,a,i,e,t);break e;case 1:a=tW(null,a,i,e,t);break e;case 11:a=eW(null,a,i,e,t);break e;case 14:a=aW(null,a,i,Zn(i.type,e),t);break e}throw Error(ae(306,i,""))}return a;case 0:return i=a.type,n=a.pendingProps,n=a.elementType===i?n:Zn(i,n),mT(e,a,i,n,t);case 1:return i=a.type,n=a.pendingProps,n=a.elementType===i?n:Zn(i,n),tW(e,a,i,n,t);case 3:e:{if(VE(a),e===null)throw Error(ae(387));i=a.pendingProps,o=a.memoizedState,n=o.element,bE(e,a),Mb(a,i,null,t);var r=a.memoizedState;if(i=r.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:r.cache,pendingSuspenseBoundaries:r.pendingSuspenseBoundaries,transitions:r.transitions},a.updateQueue.baseState=o,a.memoizedState=o,a.flags&256){n=Zu(Error(ae(423)),a),a=iW(e,a,i,t,n);break e}else if(i!==n){n=Zu(Error(ae(424)),a),a=iW(e,a,i,t,n);break e}else for(Bi=rs(a.stateNode.containerInfo.firstChild),Ri=a,Wa=!0,Vn=null,t=kE(a,null,i,t),a.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(Nu(),i===n){a=or(e,a,t);break e}pi(e,a,i,t)}a=a.child}return a;case 5:return vE(a),e===null&&sT(a),i=a.type,n=a.pendingProps,o=e!==null?e.memoizedProps:null,r=n.children,tT(i,n)?r=null:o!==null&&tT(i,o)&&(a.flags|=32),qE(e,a),pi(e,a,r,t),a.child;case 6:return e===null&&sT(a),null;case 13:return UE(e,a,t);case 4:return YT(a,a.stateNode.containerInfo),i=a.pendingProps,e===null?a.child=Bu(a,null,i,t):pi(e,a,i,t),a.child;case 11:return i=a.type,n=a.pendingProps,n=a.elementType===i?n:Zn(i,n),eW(e,a,i,n,t);case 7:return pi(e,a,a.pendingProps,t),a.child;case 8:return pi(e,a,a.pendingProps.children,t),a.child;case 12:return pi(e,a,a.pendingProps.children,t),a.child;case 10:e:{if(i=a.type._context,n=a.pendingProps,o=a.memoizedProps,r=n.value,Ta(Eb,i._currentValue),i._currentValue=r,o!==null)if(Kn(o.value,r)){if(o.children===n.children&&!_i.current){a=or(e,a,t);break e}}else for(o=a.child,o!==null&&(o.return=a);o!==null;){var s=o.dependencies;if(s!==null){r=o.child;for(var d=s.firstContext;d!==null;){if(d.context===i){if(o.tag===1){d=ar(-1,t&-t),d.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var p=u.pending;p===null?d.next=d:(d.next=p.next,p.next=d),u.pending=d}}o.lanes|=t,d=o.alternate,d!==null&&(d.lanes|=t),lT(o.return,t,a),s.lanes|=t;break}d=d.next}}else if(o.tag===10)r=o.type===a.type?null:o.child;else if(o.tag===18){if(r=o.return,r===null)throw Error(ae(341));r.lanes|=t,s=r.alternate,s!==null&&(s.lanes|=t),lT(r,t,a),r=o.sibling}else r=o.child;if(r!==null)r.return=o;else for(r=o;r!==null;){if(r===a){r=null;break}if(o=r.sibling,o!==null){o.return=r.return,r=o;break}r=r.return}o=r}pi(e,a,n.children,t),a=a.child}return a;case 9:return n=a.type,i=a.pendingProps.children,Eu(a,t),n=mn(n),i=i(n),a.flags|=1,pi(e,a,i,t),a.child;case 14:return i=a.type,n=Zn(i,a.pendingProps),n=Zn(i.type,n),aW(e,a,i,n,t);case 15:return RE(e,a,a.type,a.pendingProps,t);case 17:return i=a.type,n=a.pendingProps,n=a.elementType===i?n:Zn(i,n),vb(e,a),a.tag=1,Ai(i)?(e=!0,Db(a)):e=!1,Eu(a,t),FE(a,i,n),uT(a,i,n,t),cT(null,a,i,!0,e,t);case 19:return OE(e,a,t);case 22:return ZE(e,a,t)}throw Error(ae(156,a.tag))};function lL(e,a){return EW(e,a)}function x4(e,a,t,i){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function un(e,a,t,i){return new x4(e,a,t,i)}function uP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function C4(e){if(typeof e=="function")return uP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===jT)return 11;if(e===xT)return 14}return 2}function us(e,a){var t=e.alternate;return t===null?(t=un(e.tag,a,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=a,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,a=e.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function _b(e,a,t,i,n,o){var r=2;if(i=e,typeof e=="function")uP(e)&&(r=1);else if(typeof e=="string")r=5;else e:switch(e){case fu:return vl(t.children,n,o,a);case ST:r=8,n|=8;break;case WI:return e=un(12,t,a,n|2),e.elementType=WI,e.lanes=o,e;case EI:return e=un(13,t,a,n),e.elementType=EI,e.lanes=o,e;case LI:return e=un(19,t,a,n),e.elementType=LI,e.lanes=o,e;case vW:return tv(t,n,o,a);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hW:r=10;break e;case bW:r=9;break e;case jT:r=11;break e;case xT:r=14;break e;case $r:r=16,i=null;break e}throw Error(ae(130,e==null?e:typeof e,""))}return a=un(r,t,a,n),a.elementType=e,a.type=i,a.lanes=o,a}function vl(e,a,t,i){return e=un(7,e,i,a),e.lanes=t,e}function tv(e,a,t,i){return e=un(22,e,i,a),e.elementType=vW,e.lanes=t,e.stateNode={isHidden:!1},e}function CI(e,a,t){return e=un(6,e,null,a),e.lanes=t,e}function DI(e,a,t){return a=un(4,e.children!==null?e.children:[],e.key,a),a.lanes=t,a.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},a}function D4(e,a,t,i,n){this.tag=a,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=kI(0),this.expirationTimes=kI(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kI(0),this.identifierPrefix=i,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function pP(e,a,t,i,n,o,r,s,d){return e=new D4(e,a,t,s,d),a===1?(a=1,o===!0&&(a|=8)):a=0,o=un(3,null,null,a),e.current=o,o.stateNode=e,o.memoizedState={element:i,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},HT(o),e}function G4(e,a,t){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:yu,key:i==null?null:""+i,children:e,containerInfo:a,implementation:t}}function dL(e){if(!e)return ms;e=e._reactInternals;e:{if(Pl(e)!==e||e.tag!==1)throw Error(ae(170));var a=e;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(Ai(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(a!==null);throw Error(ae(171))}if(e.tag===1){var t=e.type;if(Ai(t))return dE(e,t,a)}return a}function uL(e,a,t,i,n,o,r,s,d){return e=pP(t,i,!0,e,n,o,r,s,d),e.context=dL(null),t=e.current,i=mi(),n=ds(t),o=ar(i,n),o.callback=a??null,ss(t,o,n),e.current.lanes=n,Mc(e,n,i),Ii(e,i),e}function iv(e,a,t,i){var n=a.current,o=mi(),r=ds(n);return t=dL(t),a.context===null?a.context=t:a.pendingContext=t,a=ar(o,r),a.payload={element:e},i=i===void 0?null:i,i!==null&&(a.callback=i),e=ss(n,a,r),e!==null&&(On(e,n,r,o),kb(e,n,r)),r}function Ub(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function cW(e,a){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var t=e.retryLane;e.retryLane=t!==0&&t<a?t:a}}function mP(e,a){cW(e,a),(e=e.alternate)&&cW(e,a)}function W4(){return null}var pL=typeof reportError=="function"?reportError:function(e){console.error(e)};function cP(e){this._internalRoot=e}nv.prototype.render=cP.prototype.render=function(e){var a=this._internalRoot;if(a===null)throw Error(ae(409));iv(e,a,null,null)};nv.prototype.unmount=cP.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var a=e.containerInfo;Il(function(){iv(null,e,null,null)}),a[ir]=null}};function nv(e){this._internalRoot=e}nv.prototype.unstable_scheduleHydration=function(e){if(e){var a=ZW();e={blockedOn:null,target:e,priority:a};for(var t=0;t<Xr.length&&a!==0&&a<Xr[t].priority;t++);Xr.splice(t,0,e),t===0&&VW(e)}};function gP(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ov(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function gW(){}function E4(e,a,t,i,n){if(n){if(typeof i=="function"){var o=i;i=function(){var u=Ub(r);o.call(u)}}var r=uL(a,i,e,0,null,!1,!1,"",gW);return e._reactRootContainer=r,e[ir]=r.current,Sc(e.nodeType===8?e.parentNode:e),Il(),r}for(;n=e.lastChild;)e.removeChild(n);if(typeof i=="function"){var s=i;i=function(){var u=Ub(d);s.call(u)}}var d=pP(e,0,!1,null,null,!1,!1,"",gW);return e._reactRootContainer=d,e[ir]=d.current,Sc(e.nodeType===8?e.parentNode:e),Il(function(){iv(a,d,t,i)}),d}function rv(e,a,t,i,n){var o=t._reactRootContainer;if(o){var r=o;if(typeof n=="function"){var s=n;n=function(){var d=Ub(r);s.call(d)}}iv(a,r,e,n)}else r=E4(t,a,e,n,i);return Ub(r)}BW=function(e){switch(e.tag){case 3:var a=e.stateNode;if(a.current.memoizedState.isDehydrated){var t=dc(a.pendingLanes);t!==0&&(GT(a,t|1),Ii(a,tt()),(oa&6)===0&&(qu=tt()+500,ks()))}break;case 13:Il(function(){var i=nr(e,1);if(i!==null){var n=mi();On(i,e,1,n)}}),mP(e,1)}};WT=function(e){if(e.tag===13){var a=nr(e,134217728);if(a!==null){var t=mi();On(a,e,134217728,t)}mP(e,134217728)}};RW=function(e){if(e.tag===13){var a=ds(e),t=nr(e,a);if(t!==null){var i=mi();On(t,e,a,i)}mP(e,a)}};ZW=function(){return ka};qW=function(e,a){var t=ka;try{return ka=e,a()}finally{ka=t}};OI=function(e,a,t){switch(a){case"input":if(NI(e,t),a=t.name,t.type==="radio"&&a!=null){for(t=e;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),a=0;a<t.length;a++){var i=t[a];if(i!==e&&i.form===e.form){var n=Qb(i);if(!n)throw Error(ae(90));fW(i),NI(i,n)}}}break;case"textarea":AW(e,t);break;case"select":a=t.value,a!=null&&Cu(e,!!t.multiple,a,!1)}};jW=sP;xW=Il;var L4={usingClientEntryPoint:!1,Events:[Nc,Tu,Qb,wW,SW,sP]},oc={findFiberByHostInstance:gl,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},M4={bundleType:oc.bundleType,version:oc.version,rendererPackageName:oc.rendererPackageName,rendererConfig:oc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:rr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=GW(e),e===null?null:e.stateNode},findFiberByHostInstance:oc.findFiberByHostInstance||W4,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(rc=__REACT_DEVTOOLS_GLOBAL_HOOK__,!rc.isDisabled&&rc.supportsFiber))try{Ob=rc.inject(M4),_o=rc}catch{}var rc;Vi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L4;Vi.createPortal=function(e,a){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!gP(a))throw Error(ae(200));return G4(e,a,null,t)};Vi.createRoot=function(e,a){if(!gP(e))throw Error(ae(299));var t=!1,i="",n=pL;return a!=null&&(a.unstable_strictMode===!0&&(t=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onRecoverableError!==void 0&&(n=a.onRecoverableError)),a=pP(e,1,!1,null,null,t,!1,i,n),e[ir]=a.current,Sc(e.nodeType===8?e.parentNode:e),new cP(a)};Vi.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var a=e._reactInternals;if(a===void 0)throw typeof e.render=="function"?Error(ae(188)):(e=Object.keys(e).join(","),Error(ae(268,e)));return e=GW(a),e=e===null?null:e.stateNode,e};Vi.flushSync=function(e){return Il(e)};Vi.hydrate=function(e,a,t){if(!ov(a))throw Error(ae(200));return rv(null,e,a,!0,t)};Vi.hydrateRoot=function(e,a,t){if(!gP(e))throw Error(ae(405));var i=t!=null&&t.hydratedSources||null,n=!1,o="",r=pL;if(t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(r=t.onRecoverableError)),a=uL(a,null,e,1,t??null,n,!1,o,r),e[ir]=a.current,Sc(e),i)for(e=0;e<i.length;e++)t=i[e],n=t._getVersion,n=n(t._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[t,n]:a.mutableSourceEagerHydrationData.push(t,n);return new nv(a)};Vi.render=function(e,a,t){if(!ov(a))throw Error(ae(200));return rv(null,e,a,!1,t)};Vi.unmountComponentAtNode=function(e){if(!ov(e))throw Error(ae(40));return e._reactRootContainer?(Il(function(){rv(null,null,e,!1,function(){e._reactRootContainer=null,e[ir]=null})}),!0):!1};Vi.unstable_batchedUpdates=sP;Vi.unstable_renderSubtreeIntoContainer=function(e,a,t,i){if(!ov(t))throw Error(ae(200));if(e==null||e._reactInternals===void 0)throw Error(ae(38));return rv(e,a,t,!1,i)};Vi.version="18.3.1-next-f1338f8080-20240426"});var kP=da((Ige,gL)=>{"use strict";l();function cL(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cL)}catch(e){console.error(e)}}cL(),gL.exports=mL()});var VL={};Wi(VL,{default:()=>RP});var j5,RP,hv=L(()=>{l();ih();j5=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,RP=th(function(e){return j5.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})});var vs,x5,C5,D5,UL,OL,G5,KL,HL=L(()=>{l();je();mu();Bm();qm();Fm();vs=S(R());hv();x5=!1,C5=RP,D5=function(a){return a!=="theme"},UL=function(a){return typeof a=="string"&&a.charCodeAt(0)>96?C5:D5},OL=function(a,t,i){var n;if(t){var o=t.shouldForwardProp;n=a.__emotion_forwardProp&&o?function(r){return a.__emotion_forwardProp(r)&&o(r)}:o}return typeof n!="function"&&i&&(n=a.__emotion_forwardProp),n},G5=function(a){var t=a.cache,i=a.serialized,n=a.isStringTag;return du(t,i,n),Zm(function(){return uu(t,i,n)}),null},KL=function e(a,t){var i=a.__emotion_real===a,n=i&&a.__emotion_base||a,o,r;t!==void 0&&(o=t.label,r=t.target);var s=OL(a,t,i),d=s||UL(n),u=!d("as");return function(){var p=arguments,m=i&&a.__emotion_styles!==void 0?a.__emotion_styles.slice(0):[];if(o!==void 0&&m.push("label:"+o+";"),p[0]==null||p[0].raw===void 0)m.push.apply(m,p);else{var g=p[0];m.push(g[0]);for(var b=p.length,f=1;f<b;f++)m.push(p[f],g[f])}var v=pu(function(_,h,k){var y=u&&_.as||n,I="",A=[],T=_;if(_.theme==null){T={};for(var P in _)T[P]=_[P];T.theme=vs.useContext(on)}typeof _.className=="string"?I=Mm(h.registered,A,_.className):_.className!=null&&(I=_.className+" ");var z=al(m.concat(A),h.registered,T);I+=h.key+"-"+z.name,r!==void 0&&(I+=" "+r);var D=u&&s===void 0?UL(y):d,C={};for(var W in _)u&&W==="as"||D(W)&&(C[W]=_[W]);return C.className=I,k&&(C.ref=k),vs.createElement(vs.Fragment,null,vs.createElement(G5,{cache:h,serialized:z,isStringTag:typeof y=="string"}),vs.createElement(y,C))});return v.displayName=o!==void 0?o:"Styled("+(typeof n=="string"?n:n.displayName||n.name||"Component")+")",v.defaultProps=a.defaultProps,v.__emotion_real=v,v.__emotion_base=n,v.__emotion_styles=m,v.__emotion_forwardProp=s,Object.defineProperty(v,"toString",{value:function(){return r===void 0&&x5?"NO_COMPONENT_SELECTOR":"."+r}}),v.withComponent=function(_,h){var k=e(_,w({},t,h,{shouldForwardProp:OL(v,h,!0)}));return k.apply(void 0,m)},v}}});var I_e,W5,bv,YL=L(()=>{l();HL();je();Bm();qm();Fm();I_e=S(R());hv();W5=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],bv=KL.bind(null);W5.forEach(function(e){bv[e]=bv(e)})});function Kc(e){let{injectFirst:a,children:t}=e;return a&&ZP?(0,QL.jsx)(Vm,{value:ZP,children:t}):t}var w_e,QL,ZP,$L=L(()=>{"use client";l();w_e=S(R());mu();Em();QL=S(ne());typeof document=="object"&&(ZP=su({key:"css",prepend:!0}))});var JL=L(()=>{"use client";l();$L()});function E5(e){return e==null||Object.keys(e).length===0}function ys(e){let{styles:a,defaultTheme:t={}}=e;return(0,XL.jsx)(fC,{styles:typeof a=="function"?n=>a(E5(n)?t:n):a})}var E_e,XL,eM=L(()=>{"use client";l();E_e=S(R());mu();XL=S(ne())});var aM=L(()=>{"use client";l();eM()});var tM={};Wi(tM,{GlobalStyles:()=>ys,StyledEngineProvider:()=>Kc,ThemeContext:()=>on,css:()=>ko,default:()=>ep,internal_processStyles:()=>qP,keyframes:()=>Ln});function ep(e,a){return bv(e,a)}var qP,fs=L(()=>{"use client";l();YL();mu();JL();aM();qP=(e,a)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=a(e.__emotion_styles))}});function _s(e){let{values:a={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:t="px",step:i=5}=e,n=Aa(e,L5),o=M5(a),r=Object.keys(o);function s(g){return`@media (min-width:${typeof a[g]=="number"?a[g]:g}${t})`}function d(g){return`@media (max-width:${(typeof a[g]=="number"?a[g]:g)-i/100}${t})`}function u(g,b){let f=r.indexOf(b);return`@media (min-width:${typeof a[g]=="number"?a[g]:g}${t}) and (max-width:${(f!==-1&&typeof a[r[f]]=="number"?a[r[f]]:b)-i/100}${t})`}function p(g){return r.indexOf(g)+1<r.length?u(g,r[r.indexOf(g)+1]):s(g)}function m(g){let b=r.indexOf(g);return b===0?s(r[1]):b===r.length-1?d(r[b]):u(g,r[r.indexOf(g)+1]).replace("@media","@media not all and")}return H({keys:r,values:o,up:s,down:d,between:u,only:p,not:m,unit:t},n)}var L5,M5,vv=L(()=>{l();rn();va();L5=["values","unit","step"],M5=e=>{let a=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return a.sort((t,i)=>t.val-i.val),a.reduce((t,i)=>H({},t,{[i.key]:i.val}),{})}});var F5,iM,nM=L(()=>{l();F5={borderRadius:4},iM=F5});function N5(e,a){return a?la(e,a,{clone:!1}):e}var As,yv=L(()=>{l();bi();As=N5});function zt(e,a,t){let i=e.theme||{};if(Array.isArray(a)){let o=i.breakpoints||oM;return a.reduce((r,s,d)=>(r[o.up(o.keys[d])]=t(a[d]),r),{})}if(typeof a=="object"){let o=i.breakpoints||oM;return Object.keys(a).reduce((r,s)=>{if(Object.keys(o.values||fv).indexOf(s)!==-1){let d=o.up(s);r[d]=t(a[s],s)}else{let d=s;r[d]=a[d]}return r},{})}return t(a)}function VP(e={}){var a;return((a=e.keys)==null?void 0:a.reduce((i,n)=>{let o=e.up(n);return i[o]={},i},{}))||{}}function UP(e,a){return e.reduce((t,i)=>{let n=t[i];return(!n||Object.keys(n).length===0)&&delete t[i],t},a)}function rM(e,...a){let t=VP(e),i=[t,...a].reduce((n,o)=>la(n,o),{});return UP(Object.keys(t),i)}function B5(e,a){if(typeof e!="object")return{};let t={},i=Object.keys(a);return Array.isArray(e)?i.forEach((n,o)=>{o<e.length&&(t[n]=!0)}):i.forEach(n=>{e[n]!=null&&(t[n]=!0)}),t}function _v({values:e,breakpoints:a,base:t}){let i=t||B5(e,a),n=Object.keys(i);if(n.length===0)return e;let o;return n.reduce((r,s,d)=>(Array.isArray(e)?(r[s]=e[d]!=null?e[d]:e[o],o=d):typeof e=="object"?(r[s]=e[s]!=null?e[s]:e[o],o=s):r[s]=e,r),{})}var fv,oM,Is=L(()=>{l();va();bi();fv={xs:0,sm:600,md:900,lg:1200,xl:1536},oM={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${fv[e]}px)`}});function ap(e,a,t=!0){if(!a||typeof a!="string")return null;if(e&&e.vars&&t){let i=`vars.${a}`.split(".").reduce((n,o)=>n&&n[o]?n[o]:null,e);if(i!=null)return i}return a.split(".").reduce((i,n)=>i&&i[n]!=null?i[n]:null,e)}function Hc(e,a,t,i=t){let n;return typeof e=="function"?n=e(t):Array.isArray(e)?n=e[t]||i:n=ap(e,t)||i,a&&(n=a(n,i,e)),n}function R5(e){let{prop:a,cssProperty:t=e.prop,themeKey:i,transform:n}=e,o=r=>{if(r[a]==null)return null;let s=r[a],d=r.theme,u=ap(d,i)||{};return zt(r,s,m=>{let g=Hc(u,n,m);return m===g&&typeof m=="string"&&(g=Hc(u,n,`${a}${m==="default"?"":he(m)}`,m)),t===!1?g:{[t]:g}})};return o.propTypes={},o.filterProps=[a],o}var Sa,Wl=L(()=>{l();cu();Is();Sa=R5});function OP(e){let a={};return t=>(a[t]===void 0&&(a[t]=e(t)),a[t])}var sM=L(()=>{l()});function El(e,a,t,i){var n;let o=(n=ap(e,a,!1))!=null?n:t;return typeof o=="number"?r=>typeof r=="string"?r:o*r:Array.isArray(o)?r=>typeof r=="string"?r:o[r]:typeof o=="function"?o:()=>{}}function Yc(e){return El(e,"spacing",8,"spacing")}function Io(e,a){if(typeof a=="string"||a==null)return a;let t=Math.abs(a),i=e(t);return a>=0?i:typeof i=="number"?-i:`-${i}`}function U5(e,a){return t=>e.reduce((i,n)=>(i[n]=Io(a,t),i),{})}function O5(e,a,t,i){if(a.indexOf(t)===-1)return null;let n=V5(t),o=U5(n,i),r=e[t];return zt(e,r,o)}function YP(e,a){let t=Yc(e.theme);return Object.keys(e).map(i=>O5(e,a,i,t)).reduce(As,{})}function Va(e){return YP(e,KP)}function Ua(e){return YP(e,HP)}function uM(e){return YP(e,dM)}var Z5,q5,lM,V5,KP,HP,dM,Ll=L(()=>{l();Is();Wl();yv();sM();Z5={m:"margin",p:"padding"},q5={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},lM={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},V5=OP(e=>{if(e.length>2)if(lM[e])e=lM[e];else return[e];let[a,t]=e.split(""),i=Z5[a],n=q5[t]||"";return Array.isArray(n)?n.map(o=>i+o):[i+n]}),KP=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],HP=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],dM=[...KP,...HP];Va.propTypes={};Va.filterProps=KP;Ua.propTypes={};Ua.filterProps=HP;uM.propTypes={};uM.filterProps=dM});function tp(e=8){if(e.mui)return e;let a=Yc({spacing:e}),t=(...i)=>(i.length===0?[1]:i).map(o=>{let r=a(o);return typeof r=="number"?`${r}px`:r}).join(" ");return t.mui=!0,t}var QP=L(()=>{l();Ll()});function K5(...e){let a=e.reduce((i,n)=>(n.filterProps.forEach(o=>{i[o]=n}),i),{}),t=i=>Object.keys(i).reduce((n,o)=>a[o]?As(n,a[o](i)):n,{});return t.propTypes={},t.filterProps=e.reduce((i,n)=>i.concat(n.filterProps),[]),t}var Ts,Qc=L(()=>{l();yv();Ts=K5});function Ui(e){return typeof e!="number"?e:`${e}px solid`}function yn(e,a){return Sa({prop:e,themeKey:"borders",transform:a})}var H5,Y5,Q5,$5,J5,X5,e3,a3,t3,i3,n3,o3,$c,SAe,$P=L(()=>{l();Wl();Qc();Ll();Is();H5=yn("border",Ui),Y5=yn("borderTop",Ui),Q5=yn("borderRight",Ui),$5=yn("borderBottom",Ui),J5=yn("borderLeft",Ui),X5=yn("borderColor"),e3=yn("borderTopColor"),a3=yn("borderRightColor"),t3=yn("borderBottomColor"),i3=yn("borderLeftColor"),n3=yn("outline",Ui),o3=yn("outlineColor"),$c=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let a=El(e.theme,"shape.borderRadius",4,"borderRadius"),t=i=>({borderRadius:Io(a,i)});return zt(e,e.borderRadius,t)}return null};$c.propTypes={};$c.filterProps=["borderRadius"];SAe=Ts(H5,Y5,Q5,$5,J5,X5,e3,a3,t3,i3,$c,n3,o3)});var Jc,Xc,eg,r3,s3,l3,d3,u3,p3,m3,c3,g3,EAe,JP=L(()=>{l();Wl();Qc();Ll();Is();Jc=e=>{if(e.gap!==void 0&&e.gap!==null){let a=El(e.theme,"spacing",8,"gap"),t=i=>({gap:Io(a,i)});return zt(e,e.gap,t)}return null};Jc.propTypes={};Jc.filterProps=["gap"];Xc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let a=El(e.theme,"spacing",8,"columnGap"),t=i=>({columnGap:Io(a,i)});return zt(e,e.columnGap,t)}return null};Xc.propTypes={};Xc.filterProps=["columnGap"];eg=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let a=El(e.theme,"spacing",8,"rowGap"),t=i=>({rowGap:Io(a,i)});return zt(e,e.rowGap,t)}return null};eg.propTypes={};eg.filterProps=["rowGap"];r3=Sa({prop:"gridColumn"}),s3=Sa({prop:"gridRow"}),l3=Sa({prop:"gridAutoFlow"}),d3=Sa({prop:"gridAutoColumns"}),u3=Sa({prop:"gridAutoRows"}),p3=Sa({prop:"gridTemplateColumns"}),m3=Sa({prop:"gridTemplateRows"}),c3=Sa({prop:"gridTemplateAreas"}),g3=Sa({prop:"gridArea"}),EAe=Ts(Jc,Xc,eg,r3,s3,l3,d3,u3,p3,m3,c3,g3)});function Ml(e,a){return a==="grey"?a:e}var k3,h3,b3,BAe,XP=L(()=>{l();Wl();Qc();k3=Sa({prop:"color",themeKey:"palette",transform:Ml}),h3=Sa({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ml}),b3=Sa({prop:"backgroundColor",themeKey:"palette",transform:Ml}),BAe=Ts(k3,h3,b3)});function Ti(e){return e<=1&&e!==0?`${e*100}%`:e}var v3,Av,y3,f3,_3,A3,OAe,KAe,I3,HAe,ez=L(()=>{l();Wl();Qc();Is();v3=Sa({prop:"width",transform:Ti}),Av=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){let a=t=>{var i,n;let o=((i=e.theme)==null||(i=i.breakpoints)==null||(i=i.values)==null?void 0:i[t])||fv[t];return o?((n=e.theme)==null||(n=n.breakpoints)==null?void 0:n.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Ti(t)}};return zt(e,e.maxWidth,a)}return null};Av.filterProps=["maxWidth"];y3=Sa({prop:"minWidth",transform:Ti}),f3=Sa({prop:"height",transform:Ti}),_3=Sa({prop:"maxHeight",transform:Ti}),A3=Sa({prop:"minHeight",transform:Ti}),OAe=Sa({prop:"size",cssProperty:"width",transform:Ti}),KAe=Sa({prop:"size",cssProperty:"height",transform:Ti}),I3=Sa({prop:"boxSizing"}),HAe=Ts(v3,Av,y3,f3,_3,A3,I3)});var T3,Oi,ag=L(()=>{l();Ll();$P();JP();XP();ez();T3={border:{themeKey:"borders",transform:Ui},borderTop:{themeKey:"borders",transform:Ui},borderRight:{themeKey:"borders",transform:Ui},borderBottom:{themeKey:"borders",transform:Ui},borderLeft:{themeKey:"borders",transform:Ui},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ui},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:$c},color:{themeKey:"palette",transform:Ml},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ml},backgroundColor:{themeKey:"palette",transform:Ml},p:{style:Ua},pt:{style:Ua},pr:{style:Ua},pb:{style:Ua},pl:{style:Ua},px:{style:Ua},py:{style:Ua},padding:{style:Ua},paddingTop:{style:Ua},paddingRight:{style:Ua},paddingBottom:{style:Ua},paddingLeft:{style:Ua},paddingX:{style:Ua},paddingY:{style:Ua},paddingInline:{style:Ua},paddingInlineStart:{style:Ua},paddingInlineEnd:{style:Ua},paddingBlock:{style:Ua},paddingBlockStart:{style:Ua},paddingBlockEnd:{style:Ua},m:{style:Va},mt:{style:Va},mr:{style:Va},mb:{style:Va},ml:{style:Va},mx:{style:Va},my:{style:Va},margin:{style:Va},marginTop:{style:Va},marginRight:{style:Va},marginBottom:{style:Va},marginLeft:{style:Va},marginX:{style:Va},marginY:{style:Va},marginInline:{style:Va},marginInlineStart:{style:Va},marginInlineEnd:{style:Va},marginBlock:{style:Va},marginBlockStart:{style:Va},marginBlockEnd:{style:Va},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Jc},rowGap:{style:eg},columnGap:{style:Xc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ti},maxWidth:{style:Av},minWidth:{transform:Ti},height:{transform:Ti},maxHeight:{transform:Ti},minHeight:{transform:Ti},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Oi=T3});function P3(...e){let a=e.reduce((i,n)=>i.concat(Object.keys(n)),[]),t=new Set(a);return e.every(i=>t.size===Object.keys(i).length)}function z3(e,a){return typeof e=="function"?e(a):e}function Iv(){function e(t,i,n,o){let r={[t]:i,theme:n},s=o[t];if(!s)return{[t]:i};let{cssProperty:d=t,themeKey:u,transform:p,style:m}=s;if(i==null)return null;if(u==="typography"&&i==="inherit")return{[t]:i};let g=ap(n,u)||{};return m?m(r):zt(r,i,f=>{let v=Hc(g,p,f);return f===v&&typeof f=="string"&&(v=Hc(g,p,`${t}${f==="default"?"":he(f)}`,f)),d===!1?v:{[d]:v}})}function a(t){var i;let{sx:n,theme:o={}}=t||{};if(!n)return null;let r=(i=o.unstable_sxConfig)!=null?i:Oi;function s(d){let u=d;if(typeof d=="function")u=d(o);else if(typeof d!="object")return d;if(!u)return null;let p=VP(o.breakpoints),m=Object.keys(p),g=p;return Object.keys(u).forEach(b=>{let f=z3(u[b],o);if(f!=null)if(typeof f=="object")if(r[b])g=As(g,e(b,f,o,r));else{let v=zt({theme:o},f,_=>({[b]:_}));P3(v,f)?g[b]=a({sx:f,theme:o}):g=As(g,v)}else g=As(g,e(b,f,o,r))}),UP(m,g)}return Array.isArray(n)?n.map(s):s(n)}return a}var pM,Ki,Tv=L(()=>{l();cu();yv();Wl();Is();ag();pM=Iv();pM.filterProps=["sx"];Ki=pM});function Fl(e,a){let t=this;return t.vars&&typeof t.getColorSchemeSelector=="function"?{[t.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:a}:t.palette.mode===e?a:{}}var az=L(()=>{l()});function S3(e={},...a){let{breakpoints:t={},palette:i={},spacing:n,shape:o={}}=e,r=Aa(e,w3),s=_s(t),d=tp(n),u=la({breakpoints:s,direction:"ltr",components:{},palette:H({mode:"light"},i),spacing:d,shape:H({},iM,o)},r);return u.applyStyles=Fl,u=a.reduce((p,m)=>la(p,m),u),u.unstable_sxConfig=H({},Oi,r?.unstable_sxConfig),u.unstable_sx=function(m){return Ki({sx:m,theme:this})},u}var w3,To,mM=L(()=>{l();va();rn();bi();vv();nM();QP();Tv();ag();az();w3=["breakpoints","palette","spacing","shape"];To=S3});var cM={};Wi(cM,{default:()=>To,private_createBreakpoints:()=>_s,unstable_applyStyles:()=>Fl});var Nl=L(()=>{l();mM();vv();az()});function Po(e){let{sx:a}=e,t=Aa(e,G3),{systemProps:i,otherProps:n}=W3(t),o;return Array.isArray(a)?o=[i,...a]:typeof a=="function"?o=(...r)=>{let s=a(...r);return Mn(s)?H({},i,s):i}:o=H({},i,a),H({},n,{sx:o})}var G3,W3,kM=L(()=>{l();va();rn();bi();ag();G3=["sx"],W3=e=>{var a,t;let i={systemProps:{},otherProps:{}},n=(a=e==null||(t=e.theme)==null?void 0:t.unstable_sxConfig)!=null?a:Oi;return Object.keys(e).forEach(o=>{n[o]?i.systemProps[o]=e[o]:i.otherProps[o]=e[o]}),i}});var hM={};Wi(hM,{default:()=>Ki,extendSxProp:()=>Po,unstable_createStyleFunctionSx:()=>Iv,unstable_defaultSxConfig:()=>Oi});var Bl=L(()=>{l();Tv();Tv();kM();ag()});function X3({value:e,children:a}){return(0,wM.jsx)(SM.Provider,{value:e,children:a})}function eQ(e){let{theme:a,name:t,props:i}=e;if(!a||!a.components||!a.components[t])return i;let n=a.components[t];return n.defaultProps?Kr(n.defaultProps,i):!n.styleOverrides&&!n.variants?Kr(n,i):i}function oz({props:e,name:a}){let t=Gv.useContext(SM);return eQ({props:e,name:a,theme:{components:t}})}var Gv,wM,SM,Wv,jM=L(()=>{"use client";l();Gv=S(R());VA();wM=S(ne()),SM=Gv.createContext(void 0);Wv=X3});var rz=L(()=>{l();jM()});var HM=da(vz=>{"use strict";l();var KM=kP();vz.createRoot=KM.createRoot,vz.hydrateRoot=KM.hydrateRoot;var wSe});var pp=da((mje,pg)=>{l();function e$(e){return e&&e.__esModule?e:{default:e}}pg.exports=e$,pg.exports.__esModule=!0,pg.exports.default=pg.exports});var Ol,Wz=L(()=>{l();cu();Ol=he});var wF,SF=L(()=>{l();JC();wF=Th});function Ez(e){return oz(e)}var _je,a$,jF=L(()=>{"use client";l();je();_je=S(R());rz();a$=S(ne())});var xF=L(()=>{l();jF()});var Lz=da((jje,mg)=>{l();function t$(e){return e&&e.__esModule?e:{default:e}}mg.exports=t$,mg.exports.__esModule=!0,mg.exports.default=mg.exports});var CF=da((Cje,mr)=>{l();function Mz(){return mr.exports=Mz=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},mr.exports.__esModule=!0,mr.exports.default=mr.exports,Mz.apply(null,arguments)}mr.exports=Mz,mr.exports.__esModule=!0,mr.exports.default=mr.exports});var DF=da((Gje,cg)=>{l();function i$(e,a){if(e==null)return{};var t={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(a.indexOf(i)!==-1)continue;t[i]=e[i]}return t}cg.exports=i$,cg.exports.__esModule=!0,cg.exports.default=cg.exports});var EF=da(cp=>{"use strict";l();var mp=Lz();Object.defineProperty(cp,"__esModule",{value:!0});cp.default=h$;cp.shouldForwardProp=Uv;cp.systemDefaultTheme=void 0;var _n=mp(CF()),Fz=mp(DF()),GF=u$((fs(),co(tM))),n$=(bi(),co(RC)),Eje=mp((cu(),co(QC))),Lje=mp((HC(),co(KC))),o$=mp((Nl(),co(cM))),r$=mp((Bl(),co(hM))),s$=["ownerState"],l$=["variants"],d$=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function WF(e){if(typeof WeakMap!="function")return null;var a=new WeakMap,t=new WeakMap;return(WF=function(i){return i?t:a})(e)}function u$(e,a){if(!a&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=WF(a);if(t&&t.has(e))return t.get(e);var i={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var r=n?Object.getOwnPropertyDescriptor(e,o):null;r&&(r.get||r.set)?Object.defineProperty(i,o,r):i[o]=e[o]}return i.default=e,t&&t.set(e,i),i}function p$(e){return Object.keys(e).length===0}function m$(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Uv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}var c$=cp.systemDefaultTheme=(0,o$.default)(),g$=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Vv({defaultTheme:e,theme:a,themeId:t}){return p$(a)?e:a[t]||a}function k$(e){return e?(a,t)=>t[e]:null}function Ov(e,a){let{ownerState:t}=a,i=(0,Fz.default)(a,s$),n=typeof e=="function"?e((0,_n.default)({ownerState:t},i)):e;if(Array.isArray(n))return n.flatMap(o=>Ov(o,(0,_n.default)({ownerState:t},i)));if(n&&typeof n=="object"&&Array.isArray(n.variants)){let{variants:o=[]}=n,s=(0,Fz.default)(n,l$);return o.forEach(d=>{let u=!0;typeof d.props=="function"?u=d.props((0,_n.default)({ownerState:t},i,t)):Object.keys(d.props).forEach(p=>{t?.[p]!==d.props[p]&&i[p]!==d.props[p]&&(u=!1)}),u&&(Array.isArray(s)||(s=[s]),s.push(typeof d.style=="function"?d.style((0,_n.default)({ownerState:t},i,t)):d.style))}),s}return n}function h$(e={}){let{themeId:a,defaultTheme:t=c$,rootShouldForwardProp:i=Uv,slotShouldForwardProp:n=Uv}=e,o=r=>(0,r$.default)((0,_n.default)({},r,{theme:Vv((0,_n.default)({},r,{defaultTheme:t,themeId:a}))}));return o.__mui_systemSx=!0,(r,s={})=>{(0,GF.internal_processStyles)(r,A=>A.filter(T=>!(T!=null&&T.__mui_systemSx)));let{name:d,slot:u,skipVariantsResolver:p,skipSx:m,overridesResolver:g=k$(g$(u))}=s,b=(0,Fz.default)(s,d$),f=p!==void 0?p:u&&u!=="Root"&&u!=="root"||!1,v=m||!1,_,h=Uv;u==="Root"||u==="root"?h=i:u?h=n:m$(r)&&(h=void 0);let k=(0,GF.default)(r,(0,_n.default)({shouldForwardProp:h,label:_},b)),y=A=>typeof A=="function"&&A.__emotion_real!==A||(0,n$.isPlainObject)(A)?T=>Ov(A,(0,_n.default)({},T,{theme:Vv({theme:T.theme,defaultTheme:t,themeId:a})})):A,I=(A,...T)=>{let P=y(A),z=T?T.map(y):[];d&&g&&z.push(W=>{let F=Vv((0,_n.default)({},W,{defaultTheme:t,themeId:a}));if(!F.components||!F.components[d]||!F.components[d].styleOverrides)return null;let N=F.components[d].styleOverrides,q={};return Object.entries(N).forEach(([Z,x])=>{q[Z]=Ov(x,(0,_n.default)({},W,{theme:F}))}),g(W,q)}),d&&!f&&z.push(W=>{var F;let N=Vv((0,_n.default)({},W,{defaultTheme:t,themeId:a})),q=N==null||(F=N.components)==null||(F=F[d])==null?void 0:F.variants;return Ov({variants:q},(0,_n.default)({},W,{theme:N}))}),v||z.push(o);let D=z.length-T.length;if(Array.isArray(A)&&D>0){let W=new Array(D).fill("");P=[...A,...W],P.raw=[...A.raw,...W]}let C=k(P,...z);return r.muiName&&(C.muiName=r.muiName),C};return k.withConfig&&(I.withConfig=k.withConfig),I}}});function Nz(e,a){return w({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},a)}var LF=L(()=>{l();je()});var VF=da($a=>{"use strict";l();var FF=Lz();Object.defineProperty($a,"__esModule",{value:!0});$a.alpha=ZF;$a.blend=z$;$a.colorChannel=void 0;$a.darken=Rz;$a.decomposeColor=An;$a.emphasize=qF;$a.getContrastRatio=_$;$a.getLuminance=Kv;$a.hexToRgb=NF;$a.hslToRgb=RF;$a.lighten=Zz;$a.private_safeAlpha=A$;$a.private_safeColorChannel=void 0;$a.private_safeDarken=I$;$a.private_safeEmphasize=P$;$a.private_safeLighten=T$;$a.recomposeColor=gp;$a.rgbToHex=f$;var MF=FF((Ur(),co(qC))),b$=FF((DD(),co(CD)));function Bz(e,a=0,t=1){return(0,b$.default)(e,a,t)}function NF(e){e=e.slice(1);let a=new RegExp(`.{1,${e.length>=6?2:1}}`,"g"),t=e.match(a);return t&&t[0].length===1&&(t=t.map(i=>i+i)),t?`rgb${t.length===4?"a":""}(${t.map((i,n)=>n<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function v$(e){let a=e.toString(16);return a.length===1?`0${a}`:a}function An(e){if(e.type)return e;if(e.charAt(0)==="#")return An(NF(e));let a=e.indexOf("("),t=e.substring(0,a);if(["rgb","rgba","hsl","hsla","color"].indexOf(t)===-1)throw new Error((0,MF.default)(9,e));let i=e.substring(a+1,e.length-1),n;if(t==="color"){if(i=i.split(" "),n=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n)===-1)throw new Error((0,MF.default)(10,n))}else i=i.split(",");return i=i.map(o=>parseFloat(o)),{type:t,values:i,colorSpace:n}}var BF=e=>{let a=An(e);return a.values.slice(0,3).map((t,i)=>a.type.indexOf("hsl")!==-1&&i!==0?`${t}%`:t).join(" ")};$a.colorChannel=BF;var y$=(e,a)=>{try{return BF(e)}catch{return e}};$a.private_safeColorChannel=y$;function gp(e){let{type:a,colorSpace:t}=e,{values:i}=e;return a.indexOf("rgb")!==-1?i=i.map((n,o)=>o<3?parseInt(n,10):n):a.indexOf("hsl")!==-1&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),a.indexOf("color")!==-1?i=`${t} ${i.join(" ")}`:i=`${i.join(", ")}`,`${a}(${i})`}function f$(e){if(e.indexOf("#")===0)return e;let{values:a}=An(e);return`#${a.map((t,i)=>v$(i===3?Math.round(255*t):t)).join("")}`}function RF(e){e=An(e);let{values:a}=e,t=a[0],i=a[1]/100,n=a[2]/100,o=i*Math.min(n,1-n),r=(u,p=(u+t/30)%12)=>n-o*Math.max(Math.min(p-3,9-p,1),-1),s="rgb",d=[Math.round(r(0)*255),Math.round(r(8)*255),Math.round(r(4)*255)];return e.type==="hsla"&&(s+="a",d.push(a[3])),gp({type:s,values:d})}function Kv(e){e=An(e);let a=e.type==="hsl"||e.type==="hsla"?An(RF(e)).values:e.values;return a=a.map(t=>(e.type!=="color"&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*a[0]+.7152*a[1]+.0722*a[2]).toFixed(3))}function _$(e,a){let t=Kv(e),i=Kv(a);return(Math.max(t,i)+.05)/(Math.min(t,i)+.05)}function ZF(e,a){return e=An(e),a=Bz(a),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${a}`:e.values[3]=a,gp(e)}function A$(e,a,t){try{return ZF(e,a)}catch{return e}}function Rz(e,a){if(e=An(e),a=Bz(a),e.type.indexOf("hsl")!==-1)e.values[2]*=1-a;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let t=0;t<3;t+=1)e.values[t]*=1-a;return gp(e)}function I$(e,a,t){try{return Rz(e,a)}catch{return e}}function Zz(e,a){if(e=An(e),a=Bz(a),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*a;else if(e.type.indexOf("rgb")!==-1)for(let t=0;t<3;t+=1)e.values[t]+=(255-e.values[t])*a;else if(e.type.indexOf("color")!==-1)for(let t=0;t<3;t+=1)e.values[t]+=(1-e.values[t])*a;return gp(e)}function T$(e,a,t){try{return Zz(e,a)}catch{return e}}function qF(e,a=.15){return Kv(e)>.5?Rz(e,a):Zz(e,a)}function P$(e,a,t){try{return qF(e,a)}catch{return e}}function z$(e,a,t,i=1){let n=(d,u)=>Math.round((d**(1/i)*(1-t)+u**(1/i)*t)**i),o=An(e),r=An(a),s=[n(o.values[0],r.values[0]),n(o.values[1],r.values[1]),n(o.values[2],r.values[2])];return gp({type:"rgb",values:s})}});var w$,kp,UF=L(()=>{l();w$={black:"#000",white:"#fff"},kp=w$});var S$,OF,KF=L(()=>{l();S$={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},OF=S$});var j$,Kl,HF=L(()=>{l();j$={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Kl=j$});var x$,Hl,YF=L(()=>{l();x$={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Hl=x$});var C$,hp,QF=L(()=>{l();C$={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},hp=C$});var D$,Yl,$F=L(()=>{l();D$={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Yl=D$});var G$,Ql,JF=L(()=>{l();G$={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ql=G$});var W$,$l,XF=L(()=>{l();W$={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},$l=W$});function aN(e,a,t,i){let n=i.light||i,o=i.dark||i*1.5;e[a]||(e.hasOwnProperty(t)?e[a]=e[t]:a==="light"?e.light=(0,bp.lighten)(e.main,n):a==="dark"&&(e.dark=(0,bp.darken)(e.main,o)))}function L$(e="light"){return e==="dark"?{main:Yl[200],light:Yl[50],dark:Yl[400]}:{main:Yl[700],light:Yl[400],dark:Yl[800]}}function M$(e="light"){return e==="dark"?{main:Kl[200],light:Kl[50],dark:Kl[400]}:{main:Kl[500],light:Kl[300],dark:Kl[700]}}function F$(e="light"){return e==="dark"?{main:Hl[500],light:Hl[300],dark:Hl[700]}:{main:Hl[700],light:Hl[400],dark:Hl[800]}}function N$(e="light"){return e==="dark"?{main:Ql[400],light:Ql[300],dark:Ql[700]}:{main:Ql[700],light:Ql[500],dark:Ql[900]}}function B$(e="light"){return e==="dark"?{main:$l[400],light:$l[300],dark:$l[700]}:{main:$l[800],light:$l[500],dark:$l[900]}}function R$(e="light"){return e==="dark"?{main:hp[400],light:hp[300],dark:hp[700]}:{main:"#ed6c02",light:hp[500],dark:hp[900]}}function Vz(e){let{mode:a="light",contrastThreshold:t=3,tonalOffset:i=.2}=e,n=ye(e,E$),o=e.primary||L$(a),r=e.secondary||M$(a),s=e.error||F$(a),d=e.info||N$(a),u=e.success||B$(a),p=e.warning||R$(a);function m(v){return(0,bp.getContrastRatio)(v,qz.text.primary)>=t?qz.text.primary:eN.text.primary}let g=({color:v,name:_,mainShade:h=500,lightShade:k=300,darkShade:y=700})=>{if(v=w({},v),!v.main&&v[h]&&(v.main=v[h]),!v.hasOwnProperty("main"))throw new Error(Gt(11,_?` (${_})`:"",h));if(typeof v.main!="string")throw new Error(Gt(12,_?` (${_})`:"",JSON.stringify(v.main)));return aN(v,"light",k,i),aN(v,"dark",y,i),v.contrastText||(v.contrastText=m(v.main)),v},b={dark:qz,light:eN};return la(w({common:w({},kp),mode:a,primary:g({color:o,name:"primary"}),secondary:g({color:r,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:s,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:d,name:"info"}),success:g({color:u,name:"success"}),grey:OF,contrastThreshold:t,getContrastText:m,augmentColor:g,tonalOffset:i},b[a]),n)}var bp,E$,eN,qz,tN=L(()=>{l();je();sa();Ur();bi();bp=S(VF());UF();KF();HF();YF();QF();$F();JF();XF();E$=["mode","contrastThreshold","tonalOffset"],eN={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:kp.white,default:kp.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},qz={text:{primary:kp.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:kp.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}});function q$(e){return Math.round(e*1e5)/1e5}function Uz(e,a){let t=typeof a=="function"?a(e):a,{fontFamily:i=nN,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:r=400,fontWeightMedium:s=500,fontWeightBold:d=700,htmlFontSize:u=16,allVariants:p,pxToRem:m}=t,g=ye(t,Z$),b=n/14,f=m||(h=>`${h/u*b}rem`),v=(h,k,y,I,A)=>w({fontFamily:i,fontWeight:h,fontSize:f(k),lineHeight:y},i===nN?{letterSpacing:`${q$(I/k)}em`}:{},A,p),_={h1:v(o,96,1.167,-1.5),h2:v(o,60,1.2,-.5),h3:v(r,48,1.167,0),h4:v(r,34,1.235,.25),h5:v(r,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(r,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(r,16,1.5,.15),body2:v(r,14,1.43,.15),button:v(s,14,1.75,.4,iN),caption:v(r,12,1.66,.4),overline:v(r,12,2.66,1,iN),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return la(w({htmlFontSize:u,pxToRem:f,fontFamily:i,fontSize:n,fontWeightLight:o,fontWeightRegular:r,fontWeightMedium:s,fontWeightBold:d},_),g,{clone:!1})}var Z$,iN,nN,oN=L(()=>{l();je();sa();bi();Z$=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];iN={textTransform:"uppercase"},nN='"Roboto", "Helvetica", "Arial", sans-serif'});function La(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${.2})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${.14})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${.12})`].join(",")}var V$,rN,sN=L(()=>{l();V$=["none",La(0,2,1,-1,0,1,1,0,0,1,3,0),La(0,3,1,-2,0,2,2,0,0,1,5,0),La(0,3,3,-2,0,3,4,0,0,1,8,0),La(0,2,4,-1,0,4,5,0,0,1,10,0),La(0,3,5,-1,0,5,8,0,0,1,14,0),La(0,3,5,-1,0,6,10,0,0,1,18,0),La(0,4,5,-2,0,7,10,1,0,2,16,1),La(0,5,5,-3,0,8,10,1,0,3,14,2),La(0,5,6,-3,0,9,12,1,0,3,16,2),La(0,6,6,-3,0,10,14,1,0,4,18,3),La(0,6,7,-4,0,11,15,1,0,4,20,3),La(0,7,8,-4,0,12,17,2,0,5,22,4),La(0,7,8,-4,0,13,19,2,0,5,24,4),La(0,7,9,-4,0,14,21,2,0,5,26,4),La(0,8,9,-5,0,15,22,2,0,6,28,5),La(0,8,10,-5,0,16,24,2,0,6,30,5),La(0,8,11,-5,0,17,26,2,0,6,32,5),La(0,9,11,-5,0,18,28,2,0,7,34,6),La(0,9,12,-6,0,19,29,2,0,7,36,6),La(0,10,13,-6,0,20,31,3,0,8,38,7),La(0,10,13,-6,0,21,33,3,0,8,40,7),La(0,10,14,-6,0,22,35,3,0,8,42,7),La(0,11,14,-7,0,23,36,3,0,9,44,8),La(0,11,15,-7,0,24,38,3,0,9,46,8)],rN=V$});function lN(e){return`${Math.round(e)}ms`}function H$(e){if(!e)return 0;let a=e/36;return Math.round((4+15*a**.25+a/5)*10)}function Oz(e){let a=w({},O$,e.easing),t=w({},K$,e.duration);return w({getAutoHeightDuration:H$,create:(n=["all"],o={})=>{let{duration:r=t.standard,easing:s=a.easeInOut,delay:d=0}=o,u=ye(o,U$);return(Array.isArray(n)?n:[n]).map(p=>`${p} ${typeof r=="string"?r:lN(r)} ${s} ${typeof d=="string"?d:lN(d)}`).join(",")}},e,{easing:a,duration:t})}var U$,O$,K$,dN=L(()=>{l();sa();je();U$=["duration","easing","delay"],O$={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},K$={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195}});var Y$,uN,pN=L(()=>{l();Y$={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},uN=Y$});function $$(e={},...a){let{mixins:t={},palette:i={},transitions:n={},typography:o={}}=e,r=ye(e,Q$);if(e.vars&&e.generateCssVars===void 0)throw new Error(Gt(18));let s=Vz(i),d=To(e),u=la(d,{mixins:Nz(d.breakpoints,t),palette:s,shadows:rN.slice(),typography:Uz(s,o),transitions:Oz(n),zIndex:w({},uN)});return u=la(u,r),u=a.reduce((p,m)=>la(p,m),u),u.unstable_sxConfig=w({},Oi,r?.unstable_sxConfig),u.unstable_sx=function(m){return Ki({sx:m,theme:this})},u}var Q$,mN,cN=L(()=>{l();je();sa();Ur();bi();Bl();Nl();LF();tN();oN();sN();dN();pN();Q$=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];mN=$$});var J$,gN,kN=L(()=>{"use client";l();cN();J$=mN(),gN=J$});var hN,bN=L(()=>{l();hN="$$material"});function X$(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}var vN,yN=L(()=>{l();vN=X$});var e7,fN,_N=L(()=>{l();yN();e7=e=>vN(e)&&e!=="classes",fN=e7});var AN,a7,IN,TN=L(()=>{"use client";l();AN=S(EF());kN();bN();_N();a7=(0,AN.default)({themeId:hN,defaultTheme:gN,rootShouldForwardProp:fN}),IN=a7});function PN(e){return Fn("MuiSvgIcon",e)}var uCe,Kz=L(()=>{l();HA();ll();uCe=Yo("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"])});var Hv,zN,wN,t7,i7,n7,SN,Yv,jN=L(()=>{"use client";l();je();sa();Hv=S(R());Dt();Eh();Wz();xF();TN();Kz();zN=S(ne()),wN=S(ne()),t7=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],i7=e=>{let{color:a,fontSize:t,classes:i}=e,n={root:["root",a!=="inherit"&&`color${Ol(a)}`,`fontSize${Ol(t)}`]};return De(n,PN,i)},n7=IN("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,a)=>{let{ownerState:t}=e;return[a.root,t.color!=="inherit"&&a[`color${Ol(t.color)}`],a[`fontSize${Ol(t.fontSize)}`]]}})(({theme:e,ownerState:a})=>{var t,i,n,o,r,s,d,u,p,m,g,b,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:a.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(t=e.transitions)==null||(i=t.create)==null?void 0:i.call(t,"fill",{duration:(n=e.transitions)==null||(n=n.duration)==null?void 0:n.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(r=o.pxToRem)==null?void 0:r.call(o,20))||"1.25rem",medium:((s=e.typography)==null||(d=s.pxToRem)==null?void 0:d.call(s,24))||"1.5rem",large:((u=e.typography)==null||(p=u.pxToRem)==null?void 0:p.call(u,35))||"2.1875rem"}[a.fontSize],color:(m=(g=(e.vars||e).palette)==null||(g=g[a.color])==null?void 0:g.main)!=null?m:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(f=(e.vars||e).palette)==null||(f=f.action)==null?void 0:f.disabled,inherit:void 0}[a.color]}}),SN=Hv.forwardRef(function(a,t){let i=Ez({props:a,name:"MuiSvgIcon"}),{children:n,className:o,color:r="inherit",component:s="svg",fontSize:d="medium",htmlColor:u,inheritViewBox:p=!1,titleAccess:m,viewBox:g="0 0 24 24"}=i,b=ye(i,t7),f=Hv.isValidElement(n)&&n.type==="svg",v=w({},i,{color:r,component:s,fontSize:d,instanceFontSize:a.fontSize,inheritViewBox:p,viewBox:g,hasSvgAsChild:f}),_={};p||(_.viewBox=g);let h=i7(v);return(0,wN.jsxs)(n7,w({as:s,className:ua(h.root,o),focusable:"false",color:u,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:t},_,b,f&&n.props,{ownerState:v,children:[f?n.props.children:n,m?(0,zN.jsx)("title",{children:m}):null]}))});SN.muiName="SvgIcon";Yv=SN});var xN=L(()=>{"use client";l();jN();Kz()});function Hz(e,a){function t(i,n){return(0,CN.jsx)(Yv,w({"data-testid":`${a}Icon`,ref:n},i,{children:e}))}return t.muiName=Yv.muiName,Qv.memo(Qv.forwardRef(t))}var Qv,CN,DN=L(()=>{"use client";l();je();Qv=S(R());xN();CN=S(ne())});var GN,WN=L(()=>{l();CA();GN=ol});var EN,LN=L(()=>{l();eD();EN=Ph});var MN,FN=L(()=>{l();DA();MN=Oo});var NN,BN=L(()=>{l();zh();NN=vi});var RN,ZN=L(()=>{l();GA();RN=Or});var qN,VN=L(()=>{l();rD();qN=wh});var UN,ON=L(()=>{l();fh();UN=ho});var KN,HN=L(()=>{"use client";l();jh();KN=pt});var YN,QN=L(()=>{"use client";l();WA();YN=Ei});var $N,JN=L(()=>{l();mD();$N=xh});var XN,e0=L(()=>{"use client";l();gD();XN=Ch});var a0,t0=L(()=>{"use client";l();LA();a0=Ko});var i0,n0=L(()=>{"use client";l();_h();i0=qe});var o0,r0=L(()=>{"use client";l();qA();o0=sl});var s0={};Wi(s0,{capitalize:()=>Ol,createChainedFunction:()=>wF,createSvgIcon:()=>Hz,debounce:()=>GN,deprecatedPropType:()=>EN,isMuiElement:()=>MN,ownerDocument:()=>NN,ownerWindow:()=>RN,requirePropFactory:()=>qN,setRef:()=>UN,unstable_ClassNameGenerator:()=>o7,unstable_useEnhancedEffect:()=>KN,unstable_useId:()=>YN,unsupportedProp:()=>$N,useControlled:()=>XN,useEventCallback:()=>a0,useForkRef:()=>i0,useIsFocusVisible:()=>o0});var o7,l0=L(()=>{"use client";l();Xe();Wz();SF();DN();WN();LN();FN();BN();ZN();VN();ON();HN();QN();JN();e0();t0();n0();r0();o7={configure:e=>{Ho.configure(e)}}});var vp=da(Yz=>{"use strict";"use client";l();Object.defineProperty(Yz,"__esModule",{value:!0});Object.defineProperty(Yz,"default",{enumerable:!0,get:function(){return r7.createSvgIcon}});var r7=(l0(),co(s0))});var d0=da($v=>{"use strict";"use client";l();var s7=pp();Object.defineProperty($v,"__esModule",{value:!0});$v.default=void 0;var l7=s7(vp()),d7=ne(),BDe=$v.default=(0,l7.default)((0,d7.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M9.29 16.29 5.7 12.7a.9959.9959 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L10 14.17l6.88-6.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-7.59 7.59c-.38.39-1.02.39-1.41 0"}),"CheckCircleRounded")});var u0=da(Jv=>{"use strict";"use client";l();var u7=pp();Object.defineProperty(Jv,"__esModule",{value:!0});Jv.default=void 0;var p7=u7(vp()),m7=ne(),qDe=Jv.default=(0,p7.default)((0,m7.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send")});var B1=da(N1=>{"use strict";l();var om=R();function Wee(e,a){return e===a&&(e!==0||1/e===1/a)||e!==e&&a!==a}var Eee=typeof Object.is=="function"?Object.is:Wee,Lee=om.useState,Mee=om.useEffect,Fee=om.useLayoutEffect,Nee=om.useDebugValue;function Bee(e,a){var t=a(),i=Lee({inst:{value:t,getSnapshot:a}}),n=i[0].inst,o=i[1];return Fee(function(){n.value=t,n.getSnapshot=a,US(n)&&o({inst:n})},[e,t,a]),Mee(function(){return US(n)&&o({inst:n}),e(function(){US(n)&&o({inst:n})})},[e]),Nee(t),t}function US(e){var a=e.getSnapshot;e=e.value;try{var t=a();return!Eee(e,t)}catch{return!0}}function Ree(e,a){return a()}var Zee=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Ree:Bee;N1.useSyncExternalStore=om.useSyncExternalStore!==void 0?om.useSyncExternalStore:Zee});var Z1=da((gna,R1)=>{"use strict";l();R1.exports=B1()});var vV=da((Toa,bV)=>{l();bV.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}});var MO=da(q_=>{"use strict";"use client";l();var Fne=pp();Object.defineProperty(q_,"__esModule",{value:!0});q_.default=void 0;var Nne=Fne(vp()),Bne=ne(),hpa=q_.default=(0,Nne.default)((0,Bne.jsx)("path",{d:"M16.5 6.75v10.58c0 2.09-1.53 3.95-3.61 4.15-2.39.23-4.39-1.64-4.39-3.98V5.14c0-1.31.94-2.5 2.24-2.63 1.5-.15 2.76 1.02 2.76 2.49v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6.75c0-.41-.34-.75-.75-.75s-.75.34-.75.75v8.61c0 1.31.94 2.5 2.24 2.63 1.5.15 2.76-1.02 2.76-2.49V5.17c0-2.09-1.53-3.95-3.61-4.15C9.01.79 7 2.66 7 5v12.27c0 2.87 2.1 5.44 4.96 5.71 3.29.3 6.04-2.26 6.04-5.48V6.75c0-.41-.34-.75-.75-.75s-.75.34-.75.75"}),"AttachFileRounded")});var NO=da(O_=>{"use strict";"use client";l();var Zne=pp();Object.defineProperty(O_,"__esModule",{value:!0});O_.default=void 0;var qne=Zne(vp()),Vne=ne(),Ppa=O_.default=(0,qne.default)((0,Vne.jsx)("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.9 13.98l2.1 2.53 3.1-3.99c.2-.26.6-.26.8.01l3.51 4.68c.25.33.01.8-.4.8H6.02c-.42 0-.65-.48-.39-.81L8.12 14c.19-.26.57-.27.78-.02"}),"ImageRounded")});var $O=da(K_=>{"use strict";"use client";l();var Yne=pp();Object.defineProperty(K_,"__esModule",{value:!0});K_.default=void 0;var Qne=Yne(vp()),$ne=ne(),jma=K_.default=(0,Qne.default)((0,$ne.jsx)("path",{d:"M15.88 9.29 12 13.17 8.12 9.29a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41-.39-.38-1.03-.39-1.42 0"}),"ExpandMoreRounded")});var $j=da((rca,lK)=>{l();lK.exports=function(a,t){var i="000000000"+a;return i.substr(i.length-t)}});var uK=da((lca,dK)=>{l();var Toe=$j(),Poe=typeof window=="object"?window:self,zoe=Object.keys(Poe).length,woe=navigator.mimeTypes?navigator.mimeTypes.length:0,Soe=Toe((woe+navigator.userAgent.length).toString(36)+zoe.toString(36),4);dK.exports=function(){return Soe}});var gK=da((uca,cK)=>{l();var Jj,pK=typeof window<"u"&&(window.crypto||window.msCrypto)||typeof self<"u"&&self.crypto;pK?(mK=Math.pow(2,32)-1,Jj=function(){return Math.abs(pK.getRandomValues(new Uint32Array(1))[0]/mK)}):Jj=Math.random;var mK;cK.exports=Jj});var yK=da((mca,vK)=>{l();var J_=uK(),kK=$j(),joe=gK(),Zk=0,ex=4,X_=36,hK=Math.pow(X_,ex);function Xj(){return kK((joe()*hK<<0).toString(X_),ex)}function bK(){return Zk=Zk<hK?Zk:0,Zk++,Zk-1}function qk(){var e="c",a=new Date().getTime().toString(X_),t=kK(bK().toString(X_),ex),i=J_(),n=Xj()+Xj();return e+a+t+i+n}qk.slug=function(){var a=new Date().getTime().toString(36),t=bK().toString(36).slice(-4),i=J_().slice(0,1)+J_().slice(-1),n=Xj().slice(-2);return a.slice(-2)+t+i+n};qk.isCuid=function(a){return typeof a!="string"?!1:!!a.startsWith("c")};qk.isSlug=function(a){if(typeof a!="string")return!1;var t=a.length;return t>=7&&t<=10};qk.fingerprint=J_;vK.exports=qk});l();l();l();l();function ZK(e){return e.replace(/[-:]([a-z])/g,(a,t)=>`${t.toUpperCase()}`)}function sx(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}var lx=e=>{for(let a in e)typeof e[a]=="function"&&(window[ZK(a)]=function(){e[a]()})};var qK=e=>{if(e.agentId&&e.element.setAttribute("agent-id",e.agentId||""),e.formId&&e.element.setAttribute("form-id",e.formId||""),e.contact)for(let a of Object.keys(e.contact))e.element.setAttribute(sx(a),e.contact?.[a]||"");return e.id&&e.element.setAttribute("id",e.id),e.context&&e.element.setAttribute("context",e.context),e.interface&&e.element.setAttribute("interface",JSON.stringify(e.interface)),e.styles&&(console.log("before",e.styles),console.log("after",JSON.stringify(e.styles)),e.element.setAttribute("styles",JSON.stringify(e.styles))),e?.onMarkedAsResolved&&e.element.setAttribute("on-marked-as-resolved",e?.onMarkedAsResolved.name),e.element},dx=qK;l();l();l();l();Em();mu();l();l();sa();je();var UM=S(R());Dt();l();l();_A();l();function AA(e,a,t=(i,n)=>i===n){return e.length===a.length&&e.every((i,n)=>t(i,a[n]))}l();var Um=S(R()),qH=S(ne()),VH={disableDefaultClasses:!1},UH=Um.createContext(VH);function SC(e){let{disableDefaultClasses:a}=Um.useContext(UH);return t=>a?"":e(t)}l();IA();l();TA();l();var Om=S(R());function CC(e){let{rootElementName:a="",componentName:t}=e,[i,n]=Om.useState(a.toUpperCase()),o=Om.useCallback(r=>{var s;n((s=r?.tagName)!=null?s:"")},[]);return[i,o]}l();NC();l();PA();l();Xe();l();l();ll();var LD="base";function g2(e){return`${LD}--${e}`}function k2(e,a){return`${LD}-${e}-${a}`}function Lh(e,a){let t=OA[a];return t?g2(t):k2(e,a)}function MD(e,a){let t={};return a.forEach(i=>{t[i]=Lh(e,i)}),t}l();l();va();var ul=S(R());Xe();function Li(e={}){let{disabled:a=!1,focusableWhenDisabled:t,href:i,rootRef:n,tabIndex:o,to:r,type:s,rootElementName:d}=e,u=ul.useRef(null),[p,m]=ul.useState(!1),{isFocusVisibleRef:g,onFocus:b,onBlur:f,ref:v}=sl(),[_,h]=ul.useState(!1);a&&!t&&_&&h(!1),ul.useEffect(()=>{g.current=_},[_,g]);let[k,y]=CC({rootElementName:d??(i||r?"a":void 0),componentName:"Button"}),I=Z=>x=>{var E;_&&x.preventDefault(),(E=Z.onMouseLeave)==null||E.call(Z,x)},A=Z=>x=>{var E;f(x),g.current===!1&&h(!1),(E=Z.onBlur)==null||E.call(Z,x)},T=Z=>x=>{var E;if(u.current||(u.current=x.currentTarget),b(x),g.current===!0){var V;h(!0),(V=Z.onFocusVisible)==null||V.call(Z,x)}(E=Z.onFocus)==null||E.call(Z,x)},P=()=>{let Z=u.current;return k==="BUTTON"||k==="INPUT"&&["button","submit","reset"].includes(Z?.type)||k==="A"&&Z?.href},z=Z=>x=>{if(!a){var E;(E=Z.onClick)==null||E.call(Z,x)}},D=Z=>x=>{var E;a||(m(!0),document.addEventListener("mouseup",()=>{m(!1)},{once:!0})),(E=Z.onMouseDown)==null||E.call(Z,x)},C=Z=>x=>{var E;if((E=Z.onKeyDown)==null||E.call(Z,x),!x.defaultMuiPrevented&&(x.target===x.currentTarget&&!P()&&x.key===" "&&x.preventDefault(),x.target===x.currentTarget&&x.key===" "&&!a&&m(!0),x.target===x.currentTarget&&!P()&&x.key==="Enter"&&!a)){var V;(V=Z.onClick)==null||V.call(Z,x),x.preventDefault()}},W=Z=>x=>{var E;if(x.target===x.currentTarget&&m(!1),(E=Z.onKeyUp)==null||E.call(Z,x),x.target===x.currentTarget&&!P()&&!a&&x.key===" "&&!x.defaultMuiPrevented){var V;(V=Z.onClick)==null||V.call(Z,x)}},F=qe(y,n,v,u),N={};return o!==void 0&&(N.tabIndex=o),k==="BUTTON"?(N.type=s??"button",t?N["aria-disabled"]=a:N.disabled=a):k==="INPUT"?s&&["button","submit","reset"].includes(s)&&(t?N["aria-disabled"]=a:N.disabled=a):k!==""&&(!i&&!r&&(N.role="button",N.tabIndex=o??0),a&&(N["aria-disabled"]=a,N.tabIndex=t?o??0:-1)),{getRootProps:(Z={})=>{let x=H({},Ga(e),Ga(Z)),E=H({type:s},x,N,Z,{onBlur:A(x),onClick:z(x),onFocus:T(x),onKeyDown:C(x),onKeyUp:W(x),onMouseDown:D(x),onMouseLeave:I(x),ref:F});return delete E.onFocusVisible,E},focusVisible:_,setFocusVisible:h,active:p,rootRef:F}}l();var Mi=S(R());Xe();var ND=S(ne());function FD(e){return e.substring(2).toLowerCase()}function h2(e,a){return a.documentElement.clientWidth<e.clientX||a.documentElement.clientHeight<e.clientY}function BD(e){let{children:a,disableReactTree:t=!1,mouseEvent:i="onClick",onClickAway:n,touchEvent:o="onTouchEnd"}=e,r=Mi.useRef(!1),s=Mi.useRef(null),d=Mi.useRef(!1),u=Mi.useRef(!1);Mi.useEffect(()=>(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);let p=qe(dl(a),s),m=Ko(f=>{let v=u.current;u.current=!1;let _=vi(s.current);if(!d.current||!s.current||"clientX"in f&&h2(f,_))return;if(r.current){r.current=!1;return}let h;f.composedPath?h=f.composedPath().indexOf(s.current)>-1:h=!_.documentElement.contains(f.target)||s.current.contains(f.target),!h&&(t||!v)&&n(f)}),g=f=>v=>{u.current=!0;let _=a.props[f];_&&_(v)},b={ref:p};return o!==!1&&(b[o]=g(o)),Mi.useEffect(()=>{if(o!==!1){let f=FD(o),v=vi(s.current),_=()=>{r.current=!0};return v.addEventListener(f,m),v.addEventListener("touchmove",_),()=>{v.removeEventListener(f,m),v.removeEventListener("touchmove",_)}}},[m,o]),i!==!1&&(b[i]=g(i)),Mi.useEffect(()=>{if(i!==!1){let f=FD(i),v=vi(s.current);return v.addEventListener(f,m),()=>{v.removeEventListener(f,m)}}},[m,i]),(0,ND.jsx)(Mi.Fragment,{children:Mi.cloneElement(a,b)})}l();va();var Nn=S(R());function b2(e,a){return e===a}var QA={},RD=()=>{};function $A(e,a){let t=H({},e);return Object.keys(a).forEach(i=>{a[i]!==void 0&&(t[i]=a[i])}),t}function v2(e){let{nextState:a,initialState:t,stateComparers:i,onStateChange:n,controlledProps:o,lastActionRef:r}=e,s=Nn.useRef(t);Nn.useEffect(()=>{if(r.current===null)return;let d=$A(s.current,o);Object.keys(a).forEach(u=>{var p;let m=(p=i[u])!=null?p:b2,g=a[u],b=d[u];if(b==null&&g!=null||b!=null&&g==null||b!=null&&g!=null&&!m(g,b)){var f,v;n?.((f=r.current.event)!=null?f:null,u,g,(v=r.current.type)!=null?v:"",a)}}),s.current=a,r.current=null},[s,a,r,n,i,o])}function ZD(e){let a=Nn.useRef(null),{reducer:t,initialState:i,controlledProps:n=QA,stateComparers:o=QA,onStateChange:r=RD,actionContext:s,componentName:d=""}=e,u=Nn.useRef(n),p=Nn.useCallback((f,v)=>{a.current=v;let _=$A(f,n);return t(_,v)},[n,t]),[m,g]=Nn.useReducer(p,i),b=Nn.useCallback(f=>{g(H({},f,{context:s}))},[s]);return v2({nextState:m,initialState:i,stateComparers:o??QA,onStateChange:r??RD,controlledProps:n,lastActionRef:a}),[$A(m,n),b]}l();l();var qD=S(R()),VD=qD.createContext(void 0);l();var UD=S(R());function JA(){return UD.useContext(VD)}l();l();va();Ur();var Qo=S(R());Xe();function XA(e={}){let{defaultValue:a,disabled:t=!1,error:i=!1,onBlur:n,onChange:o,onFocus:r,required:s=!1,value:d,inputRef:u}=e,p=JA(),m,g,b,f,v;if(p){var _,h,k;m=void 0,g=(_=p.disabled)!=null?_:!1,b=(h=p.error)!=null?h:!1,f=(k=p.required)!=null?k:!1,v=p.value}else m=a,g=t,b=i,f=s,v=d;let{current:y}=Qo.useRef(v!=null),I=Qo.useCallback(Z=>{},[]),A=Qo.useRef(null),T=qe(A,u,I),[P,z]=Qo.useState(!1);Qo.useEffect(()=>{!p&&g&&P&&(z(!1),n?.())},[p,g,P,n]);let D=Z=>x=>{var E;if(p!=null&&p.disabled){x.stopPropagation();return}if((E=Z.onFocus)==null||E.call(Z,x),p&&p.onFocus){var V;p==null||(V=p.onFocus)==null||V.call(p)}else z(!0)},C=Z=>x=>{var E;(E=Z.onBlur)==null||E.call(Z,x),p&&p.onBlur?p.onBlur():z(!1)},W=Z=>(x,...E)=>{var V,pe;if(!y&&(x.target||A.current)==null)throw new Error(Gt(17));p==null||(V=p.onChange)==null||V.call(p,x),(pe=Z.onChange)==null||pe.call(Z,x,...E)},F=Z=>x=>{var E;A.current&&x.currentTarget===x.target&&A.current.focus(),(E=Z.onClick)==null||E.call(Z,x)};return{disabled:g,error:b,focused:P,formControlContext:p,getInputProps:(Z={})=>{let E=H({},{onBlur:n,onChange:o,onFocus:r},Ga(Z)),V=H({},E,{onBlur:C(E),onChange:W(E),onFocus:D(E)});return H({},V,{"aria-invalid":b||void 0,defaultValue:m,value:v,required:f,disabled:g},Z,{ref:T},V)},getRootProps:(Z={})=>{let x=Ga(e,["onBlur","onChange","onFocus"]),E=H({},x,Ga(Z));return H({},Z,E,{onClick:F(E)})},inputRef:T,required:f,value:v}}l();l();va();var Vt=S(R());Xe();l();var ya={blur:"list:blur",focus:"list:focus",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",highlightLast:"list:highlightLast",textNavigation:"list:textNavigation",clearSelection:"list:clearSelection"};l();va();function y2(e,a,t,i,n,o){if(t.length===0||!i&&t.every((s,d)=>n(s,d)))return-1;let r=e;for(;;){if(!o&&a==="next"&&r===t.length||!o&&a==="previous"&&r===-1)return-1;if(i?!1:n(t[r],r))r+=a==="next"?1:-1,o&&(r=(r+t.length)%t.length);else return r}}function _t(e,a,t){var i;let{items:n,isItemDisabled:o,disableListWrap:r,disabledItemsFocusable:s,itemComparer:d,focusManagement:u}=t,p=u==="DOM"?0:-1,m=n.length-1,g=e==null?-1:n.findIndex(h=>d(h,e)),b,f,v=!r;switch(a){case"reset":if(p===-1)return null;b=0,f="next",v=!1;break;case"start":b=0,f="next",v=!1;break;case"end":b=m,f="previous",v=!1;break;default:{let h=g+a;h<0?!v&&g!==-1||Math.abs(a)>1?(b=0,f="next"):(b=m,f="previous"):h>m?!v||Math.abs(a)>1?(b=m,f="previous"):(b=0,f="next"):(b=h,f=a>=0?"next":"previous")}}let _=y2(b,f,n,s,o,v);return _===-1&&e!==null&&!o(e,g)?e:(i=n[_])!=null?i:null}function f2(e,a,t,i){return t==="none"?[]:t==="single"?i(a[0],e)?a:[e]:a.some(n=>i(n,e))?a.filter(n=>!i(n,e)):[...a,e]}function Mh(e,a,t){let{itemComparer:i,isItemDisabled:n,selectionMode:o,items:r}=t,{selectedValues:s}=a,d=r.findIndex(p=>i(e,p));if(n(e,d))return a;let u=f2(e,s,o,i);return H({},a,{selectedValues:u,highlightedValue:e})}function _2(e,a,t){let i=a.highlightedValue,{orientation:n,pageSize:o}=t;switch(e){case"Home":return H({},a,{highlightedValue:_t(i,"start",t)});case"End":return H({},a,{highlightedValue:_t(i,"end",t)});case"PageUp":return H({},a,{highlightedValue:_t(i,-o,t)});case"PageDown":return H({},a,{highlightedValue:_t(i,o,t)});case"ArrowUp":if(n!=="vertical")break;return H({},a,{highlightedValue:_t(i,-1,t)});case"ArrowDown":if(n!=="vertical")break;return H({},a,{highlightedValue:_t(i,1,t)});case"ArrowLeft":{if(n==="vertical")break;return H({},a,{highlightedValue:_t(i,n==="horizontal-ltr"?-1:1,t)})}case"ArrowRight":{if(n==="vertical")break;return H({},a,{highlightedValue:_t(i,n==="horizontal-ltr"?1:-1,t)})}case"Enter":case" ":return a.highlightedValue===null?a:Mh(a.highlightedValue,a,t);default:break}return a}function A2(e,a){return a.focusManagement==="DOM"?e:H({},e,{highlightedValue:null})}function I2(e,a,t){var i;let n=(i=t(e))==null?void 0:i.trim().toLowerCase();return!n||n.length===0?!1:n.indexOf(a)===0}function T2(e,a,t){let{items:i,isItemDisabled:n,disabledItemsFocusable:o,getItemAsString:r}=t,s=a.length>1,d=s?e.highlightedValue:_t(e.highlightedValue,1,t);for(let u=0;u<i.length;u+=1){if(!d||!s&&e.highlightedValue===d)return e;if(I2(d,a,r)&&(!n(d,i.indexOf(d))||o))return H({},e,{highlightedValue:d});d=_t(d,1,t)}return e}function P2(e,a,t,i){var n;let{itemComparer:o,focusManagement:r}=i,s=null;if(t.highlightedValue!=null){var d;s=(d=e.find(m=>o(m,t.highlightedValue)))!=null?d:null}else r==="DOM"&&a.length===0&&(s=_t(null,"reset",i));let p=((n=t.selectedValues)!=null?n:[]).filter(m=>e.some(g=>o(g,m)));return H({},t,{highlightedValue:s,selectedValues:p})}function z2(e,a){return H({},e,{highlightedValue:_t(null,"reset",a)})}function w2(e,a){return H({},e,{highlightedValue:_t(null,"end",a)})}function S2(e,a){return H({},e,{selectedValues:[],highlightedValue:_t(null,"reset",a)})}function Fh(e,a){let{type:t,context:i}=a;switch(t){case ya.keyDown:return _2(a.key,e,i);case ya.itemClick:return Mh(a.item,e,i);case ya.blur:return A2(e,i);case ya.textNavigation:return T2(e,a.searchString,i);case ya.itemsChange:return P2(a.items,a.previousItems,e,i);case ya.resetHighlight:return z2(e,i);case ya.highlightLast:return w2(e,i);case ya.clearSelection:return S2(e,i);default:return e}}l();var Nh=S(R()),j2=500;function OD(e){let a=Nh.useRef({searchString:"",lastTime:null});return Nh.useCallback(t=>{if(t.key.length===1&&t.key!==" "){let i=a.current,n=t.key.toLowerCase(),o=performance.now();i.searchString.length>0&&i.lastTime&&o-i.lastTime>j2?i.searchString=n:(i.searchString.length!==1||n!==i.searchString)&&(i.searchString+=n),i.lastTime=o,e(i.searchString,t)}},[e])}var KD={},x2=()=>{},C2=(e,a)=>e===a,D2=()=>!1,G2=e=>typeof e=="string"?e:String(e),W2=()=>({highlightedValue:null,selectedValues:[]});function eI(e){let{controlledProps:a=KD,disabledItemsFocusable:t=!1,disableListWrap:i=!1,focusManagement:n="activeDescendant",getInitialState:o=W2,getItemDomElement:r,getItemId:s,isItemDisabled:d=D2,rootRef:u,onStateChange:p=x2,items:m,itemComparer:g=C2,getItemAsString:b=G2,onChange:f,onHighlightChange:v,onItemsChange:_,orientation:h="vertical",pageSize:k=5,reducerActionContext:y=KD,selectionMode:I="single",stateReducer:A,componentName:T="useList"}=e,P=Vt.useRef(null),z=qe(u,P),D=Vt.useCallback((K,U,Q)=>{if(v?.(K,U,Q),n==="DOM"&&U!=null&&(Q===ya.itemClick||Q===ya.keyDown||Q===ya.textNavigation)){var oe;r==null||(oe=r(U))==null||oe.focus()}},[r,v,n]),C=Vt.useMemo(()=>({highlightedValue:g,selectedValues:(K,U)=>AA(K,U,g)}),[g]),W=Vt.useCallback((K,U,Q,oe,de)=>{switch(p?.(K,U,Q,oe,de),U){case"highlightedValue":D(K,Q,oe);break;case"selectedValues":f?.(K,Q,oe);break;default:break}},[D,f,p]),F=Vt.useMemo(()=>({disabledItemsFocusable:t,disableListWrap:i,focusManagement:n,isItemDisabled:d,itemComparer:g,items:m,getItemAsString:b,onHighlightChange:D,orientation:h,pageSize:k,selectionMode:I,stateComparers:C}),[t,i,n,d,g,m,b,D,h,k,I,C]),N=o(),q=A??Fh,Z=Vt.useMemo(()=>H({},y,F),[y,F]),[x,E]=ZD({reducer:q,actionContext:Z,initialState:N,controlledProps:a,stateComparers:C,onStateChange:W,componentName:T}),{highlightedValue:V,selectedValues:pe}=x,we=OD((K,U)=>E({type:ya.textNavigation,event:U,searchString:K})),be=Vt.useRef([]);Vt.useEffect(()=>{AA(be.current,m,g)||(E({type:ya.itemsChange,event:null,items:m,previousItems:be.current}),be.current=m,_?.(m))},[m,g,E,_]);let ge=K=>U=>{var Q;if((Q=K.onKeyDown)==null||Q.call(K,U),U.defaultMuiPrevented)return;let oe=["Home","End","PageUp","PageDown"];h==="vertical"?oe.push("ArrowUp","ArrowDown"):oe.push("ArrowLeft","ArrowRight"),n==="activeDescendant"&&oe.push(" ","Enter"),oe.includes(U.key)&&U.preventDefault(),E({type:ya.keyDown,key:U.key,event:U}),we(U)},G=K=>U=>{var Q,oe;(Q=K.onBlur)==null||Q.call(K,U),!U.defaultMuiPrevented&&((oe=P.current)!=null&&oe.contains(U.relatedTarget)||E({type:ya.blur,event:U}))},ee=(K={})=>{let U=Ga(K);return H({},K,{"aria-activedescendant":n==="activeDescendant"&&V!=null?s(V):void 0,tabIndex:n==="DOM"?-1:0,ref:z},U,{onBlur:G(U),onKeyDown:ge(U)})},X=Vt.useCallback(K=>{let U=(pe??[]).some(de=>de!=null&&g(K,de)),Q=V!=null&&g(K,V);return{focusable:n==="DOM",highlighted:Q,selected:U}},[g,pe,V,n]),Oe=Vt.useMemo(()=>({dispatch:E,getItemState:X}),[E,X]);return Vt.useDebugValue({state:x}),{contextValue:Oe,dispatch:E,getRootProps:ee,rootRef:z,state:x}}l();va();var Ym=S(R());l();var HD=S(R()),Hr=HD.createContext(null);function aI(e){let{handlePointerOverEvents:a=!1,item:t}=e,i=Ym.useContext(Hr);if(!i)throw new Error("useListItem must be used within a ListProvider");let{dispatch:n,getItemState:o}=i,{highlighted:r,selected:s,focusable:d}=o(t),u=Ym.useCallback(b=>f=>{var v;(v=b.onClick)==null||v.call(b,f),!f.defaultPrevented&&n({type:ya.itemClick,item:t,event:f})},[n,t]),p=Ym.useCallback(b=>f=>{var v;(v=b.onMouseOver)==null||v.call(b,f),!f.defaultPrevented&&n({type:ya.itemHover,item:t,event:f})},[n,t]),m;return d&&(m=r?0:-1),{getRootProps:(b={})=>{let f=Ga(b);return H({},b,{onClick:u(f),onPointerOver:a?p(f):void 0,tabIndex:m})},highlighted:r,selected:s}}l();var Fi=S(R()),Bh=Fi.createContext(null);function E2(e){let a=Array.from(e.keys()).map(t=>{let i=e.get(t);return{key:t,subitem:i}});return a.sort((t,i)=>{let n=t.subitem.ref.current,o=i.subitem.ref.current;return n===null||o===null||n===o?0:n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(a.map(t=>[t.key,t.subitem]))}function YD(){let[e,a]=Fi.useState(new Map),t=Fi.useRef(new Set),i=Fi.useCallback(function(u){t.current.delete(u),a(p=>{let m=new Map(p);return m.delete(u),m})},[]),n=Fi.useCallback(function(u,p){let m;return typeof u=="function"?m=u(t.current):m=u,t.current.add(m),a(g=>{let b=new Map(g);return b.set(m,p),b}),{id:m,deregister:()=>i(m)}},[i]),o=Fi.useMemo(()=>E2(e),[e]),r=Fi.useCallback(function(u){return Array.from(o.keys()).indexOf(u)},[o]);return{contextValue:Fi.useMemo(()=>({getItemIndex:r,registerItem:n,totalSubitemCount:e.size}),[r,n,e.size]),subitems:o}}l();var Rh=S(R());Xe();function QD(e,a){let t=Rh.useContext(Bh);if(t===null)throw new Error("useCompoundItem must be used within a useCompoundParent");let{registerItem:i}=t,[n,o]=Rh.useState(typeof e=="function"?void 0:e);return pt(()=>{let{id:r,deregister:s}=i(e,a);return o(r),s},[i,a,e]),{id:n,index:n!==void 0?t.getItemIndex(n):-1,totalItemCount:t.totalSubitemCount}}l();va();function hu(e,a){return function(i={}){let n=H({},i,e(i));return H({},n,a(n))}}l();l();var gn=S(R()),kL=S(kP());YA();Xe();var hP=S(ne());function F4(e){return typeof e=="function"?e():e}var bP=gn.forwardRef(function(a,t){let{children:i,container:n,disablePortal:o=!1}=a,[r,s]=gn.useState(null),d=qe(gn.isValidElement(i)?dl(i):null,t);return pt(()=>{o||s(F4(n)||document.body)},[n,o]),pt(()=>{if(r&&!o)return ho(t,r),()=>{ho(t,null)}},[t,r,o]),o?gn.isValidElement(i)?gn.cloneElement(i,{ref:d}):(0,hP.jsx)(gn.Fragment,{children:i}):(0,hP.jsx)(gn.Fragment,{children:r&&kL.createPortal(i,r)})});l();l();va();var sv=S(R());Xe();function vP(e){let{value:a,label:t,disabled:i,rootRef:n,id:o}=e,{getRootProps:r,highlighted:s,selected:d}=aI({item:a}),{getRootProps:u,rootRef:p}=Li({disabled:i,focusableWhenDisabled:!0}),m=Ei(o),g=sv.useRef(null),b=sv.useMemo(()=>({disabled:i,label:t,value:a,ref:g,id:m}),[i,t,a,m]),{index:f}=QD(a,b),v=qe(n,g,p),_=k=>y=>{var I;(I=k.onKeyDown)==null||I.call(k,y),!y.defaultMuiPrevented&&[" ","Enter"].includes(y.key)&&(y.defaultMuiPrevented=!0)},h=(k={})=>({onKeyDown:_(k)});return{getRootProps:(k={})=>{let y=Ga(k),I=hu(r,hu(u,h));return H({},k,y,I(y),{id:m,ref:v,role:"option","aria-selected":d})},highlighted:s,index:f,selected:d,rootRef:v}}l();var Ou=S(R());function hL(e){let a=Ou.useContext(Hr);if(!a)throw new Error("Option: ListContext was not found.");let{getItemState:t,dispatch:i}=a,{highlighted:n,selected:o,focusable:r}=t(e),s=Ou.useCallback(u=>{if(u!==e)throw new Error(["Base UI Option: Tried to access the state of another Option.","This is unsupported when the Option uses the OptionContextStabilizer as a performance optimization."].join("/n"));return{highlighted:n,selected:o,focusable:r}},[n,o,r,e]);return{contextValue:Ou.useMemo(()=>({dispatch:i,getItemState:s}),[i,s])}}l();l();va();rn();var Qt=S(R());Xe();l();l();var Qa="top",gt="bottom",dt="right",it="left",lv="auto",hs=[Qa,gt,dt,it],sr="start",zl="end",bL="clippingParents",dv="viewport",Ku="popper",vL="reference",yP=hs.reduce(function(e,a){return e.concat([a+"-"+sr,a+"-"+zl])},[]),uv=[].concat(hs,[lv]).reduce(function(e,a){return e.concat([a,a+"-"+sr,a+"-"+zl])},[]),N4="beforeRead",B4="read",R4="afterRead",Z4="beforeMain",q4="main",V4="afterMain",U4="beforeWrite",O4="write",K4="afterWrite",yL=[N4,B4,R4,Z4,q4,V4,U4,O4,K4];l();l();function Tt(e){return e?(e.nodeName||"").toLowerCase():null}l();l();function Ea(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var a=e.ownerDocument;return a&&a.defaultView||window}return e}function kn(e){var a=Ea(e).Element;return e instanceof a||e instanceof Element}function kt(e){var a=Ea(e).HTMLElement;return e instanceof a||e instanceof HTMLElement}function Hu(e){if(typeof ShadowRoot>"u")return!1;var a=Ea(e).ShadowRoot;return e instanceof a||e instanceof ShadowRoot}function H4(e){var a=e.state;Object.keys(a.elements).forEach(function(t){var i=a.styles[t]||{},n=a.attributes[t]||{},o=a.elements[t];!kt(o)||!Tt(o)||(Object.assign(o.style,i),Object.keys(n).forEach(function(r){var s=n[r];s===!1?o.removeAttribute(r):o.setAttribute(r,s===!0?"":s)}))})}function Y4(e){var a=e.state,t={popper:{position:a.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(a.elements.popper.style,t.popper),a.styles=t,a.elements.arrow&&Object.assign(a.elements.arrow.style,t.arrow),function(){Object.keys(a.elements).forEach(function(i){var n=a.elements[i],o=a.attributes[i]||{},r=Object.keys(a.styles.hasOwnProperty(i)?a.styles[i]:t[i]),s=r.reduce(function(d,u){return d[u]="",d},{});!kt(n)||!Tt(n)||(Object.assign(n.style,s),Object.keys(o).forEach(function(d){n.removeAttribute(d)}))})}}var fL={name:"applyStyles",enabled:!0,phase:"write",fn:H4,effect:Y4,requires:["computeStyles"]};l();l();function Pt(e){return e.split("-")[0]}l();l();l();var Hn=Math.max,wl=Math.min,lr=Math.round;l();l();function Yu(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}function Rc(){return!/^((?!chrome|android).)*safari/i.test(Yu())}function hn(e,a,t){a===void 0&&(a=!1),t===void 0&&(t=!1);var i=e.getBoundingClientRect(),n=1,o=1;a&&kt(e)&&(n=e.offsetWidth>0&&lr(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&lr(i.height)/e.offsetHeight||1);var r=kn(e)?Ea(e):window,s=r.visualViewport,d=!Rc()&&t,u=(i.left+(d&&s?s.offsetLeft:0))/n,p=(i.top+(d&&s?s.offsetTop:0))/o,m=i.width/n,g=i.height/o;return{width:m,height:g,top:p,right:u+m,bottom:p+g,left:u,x:u,y:p}}function Sl(e){var a=hn(e),t=e.offsetWidth,i=e.offsetHeight;return Math.abs(a.width-t)<=1&&(t=a.width),Math.abs(a.height-i)<=1&&(i=a.height),{x:e.offsetLeft,y:e.offsetTop,width:t,height:i}}l();function Zc(e,a){var t=a.getRootNode&&a.getRootNode();if(e.contains(a))return!0;if(t&&Hu(t)){var i=a;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}l();l();function gi(e){return Ea(e).getComputedStyle(e)}l();function fP(e){return["table","td","th"].indexOf(Tt(e))>=0}l();l();function Mt(e){return((kn(e)?e.ownerDocument:e.document)||window.document).documentElement}function dr(e){return Tt(e)==="html"?e:e.assignedSlot||e.parentNode||(Hu(e)?e.host:null)||Mt(e)}function _L(e){return!kt(e)||gi(e).position==="fixed"?null:e.offsetParent}function Q4(e){var a=/firefox/i.test(Yu()),t=/Trident/i.test(Yu());if(t&&kt(e)){var i=gi(e);if(i.position==="fixed")return null}var n=dr(e);for(Hu(n)&&(n=n.host);kt(n)&&["html","body"].indexOf(Tt(n))<0;){var o=gi(n);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||a&&o.willChange==="filter"||a&&o.filter&&o.filter!=="none")return n;n=n.parentNode}return null}function Yn(e){for(var a=Ea(e),t=_L(e);t&&fP(t)&&gi(t).position==="static";)t=_L(t);return t&&(Tt(t)==="html"||Tt(t)==="body"&&gi(t).position==="static")?a:t||Q4(e)||a}l();function jl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}l();function xl(e,a,t){return Hn(e,wl(a,t))}function AL(e,a,t){var i=xl(e,a,t);return i>t?t:i}l();l();function qc(){return{top:0,right:0,bottom:0,left:0}}function Vc(e){return Object.assign({},qc(),e)}l();function Uc(e,a){return a.reduce(function(t,i){return t[i]=e,t},{})}var $4=function(a,t){return a=typeof a=="function"?a(Object.assign({},t.rects,{placement:t.placement})):a,Vc(typeof a!="number"?a:Uc(a,hs))};function J4(e){var a,t=e.state,i=e.name,n=e.options,o=t.elements.arrow,r=t.modifiersData.popperOffsets,s=Pt(t.placement),d=jl(s),u=[it,dt].indexOf(s)>=0,p=u?"height":"width";if(!(!o||!r)){var m=$4(n.padding,t),g=Sl(o),b=d==="y"?Qa:it,f=d==="y"?gt:dt,v=t.rects.reference[p]+t.rects.reference[d]-r[d]-t.rects.popper[p],_=r[d]-t.rects.reference[d],h=Yn(o),k=h?d==="y"?h.clientHeight||0:h.clientWidth||0:0,y=v/2-_/2,I=m[b],A=k-g[p]-m[f],T=k/2-g[p]/2+y,P=xl(I,T,A),z=d;t.modifiersData[i]=(a={},a[z]=P,a.centerOffset=P-T,a)}}function X4(e){var a=e.state,t=e.options,i=t.element,n=i===void 0?"[data-popper-arrow]":i;n!=null&&(typeof n=="string"&&(n=a.elements.popper.querySelector(n),!n)||Zc(a.elements.popper,n)&&(a.elements.arrow=n))}var IL={name:"arrow",enabled:!0,phase:"main",fn:J4,effect:X4,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};l();l();function bn(e){return e.split("-")[1]}var e5={top:"auto",right:"auto",bottom:"auto",left:"auto"};function a5(e,a){var t=e.x,i=e.y,n=a.devicePixelRatio||1;return{x:lr(t*n)/n||0,y:lr(i*n)/n||0}}function TL(e){var a,t=e.popper,i=e.popperRect,n=e.placement,o=e.variation,r=e.offsets,s=e.position,d=e.gpuAcceleration,u=e.adaptive,p=e.roundOffsets,m=e.isFixed,g=r.x,b=g===void 0?0:g,f=r.y,v=f===void 0?0:f,_=typeof p=="function"?p({x:b,y:v}):{x:b,y:v};b=_.x,v=_.y;var h=r.hasOwnProperty("x"),k=r.hasOwnProperty("y"),y=it,I=Qa,A=window;if(u){var T=Yn(t),P="clientHeight",z="clientWidth";if(T===Ea(t)&&(T=Mt(t),gi(T).position!=="static"&&s==="absolute"&&(P="scrollHeight",z="scrollWidth")),T=T,n===Qa||(n===it||n===dt)&&o===zl){I=gt;var D=m&&T===A&&A.visualViewport?A.visualViewport.height:T[P];v-=D-i.height,v*=d?1:-1}if(n===it||(n===Qa||n===gt)&&o===zl){y=dt;var C=m&&T===A&&A.visualViewport?A.visualViewport.width:T[z];b-=C-i.width,b*=d?1:-1}}var W=Object.assign({position:s},u&&e5),F=p===!0?a5({x:b,y:v},Ea(t)):{x:b,y:v};if(b=F.x,v=F.y,d){var N;return Object.assign({},W,(N={},N[I]=k?"0":"",N[y]=h?"0":"",N.transform=(A.devicePixelRatio||1)<=1?"translate("+b+"px, "+v+"px)":"translate3d("+b+"px, "+v+"px, 0)",N))}return Object.assign({},W,(a={},a[I]=k?v+"px":"",a[y]=h?b+"px":"",a.transform="",a))}function t5(e){var a=e.state,t=e.options,i=t.gpuAcceleration,n=i===void 0?!0:i,o=t.adaptive,r=o===void 0?!0:o,s=t.roundOffsets,d=s===void 0?!0:s,u={placement:Pt(a.placement),variation:bn(a.placement),popper:a.elements.popper,popperRect:a.rects.popper,gpuAcceleration:n,isFixed:a.options.strategy==="fixed"};a.modifiersData.popperOffsets!=null&&(a.styles.popper=Object.assign({},a.styles.popper,TL(Object.assign({},u,{offsets:a.modifiersData.popperOffsets,position:a.options.strategy,adaptive:r,roundOffsets:d})))),a.modifiersData.arrow!=null&&(a.styles.arrow=Object.assign({},a.styles.arrow,TL(Object.assign({},u,{offsets:a.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-placement":a.placement})}var PL={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:t5,data:{}};l();var pv={passive:!0};function i5(e){var a=e.state,t=e.instance,i=e.options,n=i.scroll,o=n===void 0?!0:n,r=i.resize,s=r===void 0?!0:r,d=Ea(a.elements.popper),u=[].concat(a.scrollParents.reference,a.scrollParents.popper);return o&&u.forEach(function(p){p.addEventListener("scroll",t.update,pv)}),s&&d.addEventListener("resize",t.update,pv),function(){o&&u.forEach(function(p){p.removeEventListener("scroll",t.update,pv)}),s&&d.removeEventListener("resize",t.update,pv)}}var zL={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:i5,data:{}};l();l();var n5={left:"right",right:"left",bottom:"top",top:"bottom"};function Qu(e){return e.replace(/left|right|bottom|top/g,function(a){return n5[a]})}l();var o5={start:"end",end:"start"};function mv(e){return e.replace(/start|end/g,function(a){return o5[a]})}l();l();l();l();l();function Cl(e){var a=Ea(e),t=a.pageXOffset,i=a.pageYOffset;return{scrollLeft:t,scrollTop:i}}function Dl(e){return hn(Mt(e)).left+Cl(e).scrollLeft}function _P(e,a){var t=Ea(e),i=Mt(e),n=t.visualViewport,o=i.clientWidth,r=i.clientHeight,s=0,d=0;if(n){o=n.width,r=n.height;var u=Rc();(u||!u&&a==="fixed")&&(s=n.offsetLeft,d=n.offsetTop)}return{width:o,height:r,x:s+Dl(e),y:d}}l();function AP(e){var a,t=Mt(e),i=Cl(e),n=(a=e.ownerDocument)==null?void 0:a.body,o=Hn(t.scrollWidth,t.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=Hn(t.scrollHeight,t.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-i.scrollLeft+Dl(e),d=-i.scrollTop;return gi(n||t).direction==="rtl"&&(s+=Hn(t.clientWidth,n?n.clientWidth:0)-o),{width:o,height:r,x:s,y:d}}l();l();l();function Gl(e){var a=gi(e),t=a.overflow,i=a.overflowX,n=a.overflowY;return/auto|scroll|overlay|hidden/.test(t+n+i)}function cv(e){return["html","body","#document"].indexOf(Tt(e))>=0?e.ownerDocument.body:kt(e)&&Gl(e)?e:cv(dr(e))}function bs(e,a){var t;a===void 0&&(a=[]);var i=cv(e),n=i===((t=e.ownerDocument)==null?void 0:t.body),o=Ea(i),r=n?[o].concat(o.visualViewport||[],Gl(i)?i:[]):i,s=a.concat(r);return n?s:s.concat(bs(dr(r)))}l();function $u(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function r5(e,a){var t=hn(e,!1,a==="fixed");return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function wL(e,a,t){return a===dv?$u(_P(e,t)):kn(a)?r5(a,t):$u(AP(Mt(e)))}function s5(e){var a=bs(dr(e)),t=["absolute","fixed"].indexOf(gi(e).position)>=0,i=t&&kt(e)?Yn(e):e;return kn(i)?a.filter(function(n){return kn(n)&&Zc(n,i)&&Tt(n)!=="body"}):[]}function IP(e,a,t,i){var n=a==="clippingParents"?s5(e):[].concat(a),o=[].concat(n,[t]),r=o[0],s=o.reduce(function(d,u){var p=wL(e,u,i);return d.top=Hn(p.top,d.top),d.right=wl(p.right,d.right),d.bottom=wl(p.bottom,d.bottom),d.left=Hn(p.left,d.left),d},wL(e,r,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}l();function Oc(e){var a=e.reference,t=e.element,i=e.placement,n=i?Pt(i):null,o=i?bn(i):null,r=a.x+a.width/2-t.width/2,s=a.y+a.height/2-t.height/2,d;switch(n){case Qa:d={x:r,y:a.y-t.height};break;case gt:d={x:r,y:a.y+a.height};break;case dt:d={x:a.x+a.width,y:s};break;case it:d={x:a.x-t.width,y:s};break;default:d={x:a.x,y:a.y}}var u=n?jl(n):null;if(u!=null){var p=u==="y"?"height":"width";switch(o){case sr:d[u]=d[u]-(a[p]/2-t[p]/2);break;case zl:d[u]=d[u]+(a[p]/2-t[p]/2);break;default:}}return d}function Qn(e,a){a===void 0&&(a={});var t=a,i=t.placement,n=i===void 0?e.placement:i,o=t.strategy,r=o===void 0?e.strategy:o,s=t.boundary,d=s===void 0?bL:s,u=t.rootBoundary,p=u===void 0?dv:u,m=t.elementContext,g=m===void 0?Ku:m,b=t.altBoundary,f=b===void 0?!1:b,v=t.padding,_=v===void 0?0:v,h=Vc(typeof _!="number"?_:Uc(_,hs)),k=g===Ku?vL:Ku,y=e.rects.popper,I=e.elements[f?k:g],A=IP(kn(I)?I:I.contextElement||Mt(e.elements.popper),d,p,r),T=hn(e.elements.reference),P=Oc({reference:T,element:y,strategy:"absolute",placement:n}),z=$u(Object.assign({},y,P)),D=g===Ku?z:T,C={top:A.top-D.top+h.top,bottom:D.bottom-A.bottom+h.bottom,left:A.left-D.left+h.left,right:D.right-A.right+h.right},W=e.modifiersData.offset;if(g===Ku&&W){var F=W[n];Object.keys(C).forEach(function(N){var q=[dt,gt].indexOf(N)>=0?1:-1,Z=[Qa,gt].indexOf(N)>=0?"y":"x";C[N]+=F[Z]*q})}return C}l();function TP(e,a){a===void 0&&(a={});var t=a,i=t.placement,n=t.boundary,o=t.rootBoundary,r=t.padding,s=t.flipVariations,d=t.allowedAutoPlacements,u=d===void 0?uv:d,p=bn(i),m=p?s?yP:yP.filter(function(f){return bn(f)===p}):hs,g=m.filter(function(f){return u.indexOf(f)>=0});g.length===0&&(g=m);var b=g.reduce(function(f,v){return f[v]=Qn(e,{placement:v,boundary:n,rootBoundary:o,padding:r})[Pt(v)],f},{});return Object.keys(b).sort(function(f,v){return b[f]-b[v]})}function l5(e){if(Pt(e)===lv)return[];var a=Qu(e);return[mv(e),a,mv(a)]}function d5(e){var a=e.state,t=e.options,i=e.name;if(!a.modifiersData[i]._skip){for(var n=t.mainAxis,o=n===void 0?!0:n,r=t.altAxis,s=r===void 0?!0:r,d=t.fallbackPlacements,u=t.padding,p=t.boundary,m=t.rootBoundary,g=t.altBoundary,b=t.flipVariations,f=b===void 0?!0:b,v=t.allowedAutoPlacements,_=a.options.placement,h=Pt(_),k=h===_,y=d||(k||!f?[Qu(_)]:l5(_)),I=[_].concat(y).reduce(function(ee,X){return ee.concat(Pt(X)===lv?TP(a,{placement:X,boundary:p,rootBoundary:m,padding:u,flipVariations:f,allowedAutoPlacements:v}):X)},[]),A=a.rects.reference,T=a.rects.popper,P=new Map,z=!0,D=I[0],C=0;C<I.length;C++){var W=I[C],F=Pt(W),N=bn(W)===sr,q=[Qa,gt].indexOf(F)>=0,Z=q?"width":"height",x=Qn(a,{placement:W,boundary:p,rootBoundary:m,altBoundary:g,padding:u}),E=q?N?dt:it:N?gt:Qa;A[Z]>T[Z]&&(E=Qu(E));var V=Qu(E),pe=[];if(o&&pe.push(x[F]<=0),s&&pe.push(x[E]<=0,x[V]<=0),pe.every(function(ee){return ee})){D=W,z=!1;break}P.set(W,pe)}if(z)for(var we=f?3:1,be=function(X){var Oe=I.find(function(K){var U=P.get(K);if(U)return U.slice(0,X).every(function(Q){return Q})});if(Oe)return D=Oe,"break"},ge=we;ge>0;ge--){var G=be(ge);if(G==="break")break}a.placement!==D&&(a.modifiersData[i]._skip=!0,a.placement=D,a.reset=!0)}}var SL={name:"flip",enabled:!0,phase:"main",fn:d5,requiresIfExists:["offset"],data:{_skip:!1}};l();function jL(e,a,t){return t===void 0&&(t={x:0,y:0}),{top:e.top-a.height-t.y,right:e.right-a.width+t.x,bottom:e.bottom-a.height+t.y,left:e.left-a.width-t.x}}function xL(e){return[Qa,dt,gt,it].some(function(a){return e[a]>=0})}function u5(e){var a=e.state,t=e.name,i=a.rects.reference,n=a.rects.popper,o=a.modifiersData.preventOverflow,r=Qn(a,{elementContext:"reference"}),s=Qn(a,{altBoundary:!0}),d=jL(r,i),u=jL(s,n,o),p=xL(d),m=xL(u);a.modifiersData[t]={referenceClippingOffsets:d,popperEscapeOffsets:u,isReferenceHidden:p,hasPopperEscaped:m},a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":m})}var CL={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:u5};l();function p5(e,a,t){var i=Pt(e),n=[it,Qa].indexOf(i)>=0?-1:1,o=typeof t=="function"?t(Object.assign({},a,{placement:e})):t,r=o[0],s=o[1];return r=r||0,s=(s||0)*n,[it,dt].indexOf(i)>=0?{x:s,y:r}:{x:r,y:s}}function m5(e){var a=e.state,t=e.options,i=e.name,n=t.offset,o=n===void 0?[0,0]:n,r=uv.reduce(function(p,m){return p[m]=p5(m,a.rects,o),p},{}),s=r[a.placement],d=s.x,u=s.y;a.modifiersData.popperOffsets!=null&&(a.modifiersData.popperOffsets.x+=d,a.modifiersData.popperOffsets.y+=u),a.modifiersData[i]=r}var DL={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:m5};l();function c5(e){var a=e.state,t=e.name;a.modifiersData[t]=Oc({reference:a.rects.reference,element:a.rects.popper,strategy:"absolute",placement:a.placement})}var GL={name:"popperOffsets",enabled:!0,phase:"read",fn:c5,data:{}};l();l();function PP(e){return e==="x"?"y":"x"}function g5(e){var a=e.state,t=e.options,i=e.name,n=t.mainAxis,o=n===void 0?!0:n,r=t.altAxis,s=r===void 0?!1:r,d=t.boundary,u=t.rootBoundary,p=t.altBoundary,m=t.padding,g=t.tether,b=g===void 0?!0:g,f=t.tetherOffset,v=f===void 0?0:f,_=Qn(a,{boundary:d,rootBoundary:u,padding:m,altBoundary:p}),h=Pt(a.placement),k=bn(a.placement),y=!k,I=jl(h),A=PP(I),T=a.modifiersData.popperOffsets,P=a.rects.reference,z=a.rects.popper,D=typeof v=="function"?v(Object.assign({},a.rects,{placement:a.placement})):v,C=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),W=a.modifiersData.offset?a.modifiersData.offset[a.placement]:null,F={x:0,y:0};if(T){if(o){var N,q=I==="y"?Qa:it,Z=I==="y"?gt:dt,x=I==="y"?"height":"width",E=T[I],V=E+_[q],pe=E-_[Z],we=b?-z[x]/2:0,be=k===sr?P[x]:z[x],ge=k===sr?-z[x]:-P[x],G=a.elements.arrow,ee=b&&G?Sl(G):{width:0,height:0},X=a.modifiersData["arrow#persistent"]?a.modifiersData["arrow#persistent"].padding:qc(),Oe=X[q],K=X[Z],U=xl(0,P[x],ee[x]),Q=y?P[x]/2-we-U-Oe-C.mainAxis:be-U-Oe-C.mainAxis,oe=y?-P[x]/2+we+U+K+C.mainAxis:ge+U+K+C.mainAxis,de=a.elements.arrow&&Yn(a.elements.arrow),Re=de?I==="y"?de.clientTop||0:de.clientLeft||0:0,_e=(N=W?.[I])!=null?N:0,Te=E+Q-_e-Re,Ge=E+oe-_e,He=xl(b?wl(V,Te):V,E,b?Hn(pe,Ge):pe);T[I]=He,F[I]=He-E}if(s){var Pe,ze=I==="x"?Qa:it,Je=I==="x"?gt:dt,j=T[A],M=A==="y"?"height":"width",O=j+_[ze],te=j-_[Je],ie=[Qa,it].indexOf(h)!==-1,$=(Pe=W?.[A])!=null?Pe:0,ue=ie?O:j-P[M]-z[M]-$+C.altAxis,Ce=ie?j+P[M]+z[M]-$-C.altAxis:te,Me=b&&ie?AL(ue,j,Ce):xl(b?ue:O,j,b?Ce:te);T[A]=Me,F[A]=Me-j}a.modifiersData[i]=F}}var WL={name:"preventOverflow",enabled:!0,phase:"main",fn:g5,requiresIfExists:["offset"]};l();l();l();l();function zP(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function wP(e){return e===Ea(e)||!kt(e)?Cl(e):zP(e)}function k5(e){var a=e.getBoundingClientRect(),t=lr(a.width)/e.offsetWidth||1,i=lr(a.height)/e.offsetHeight||1;return t!==1||i!==1}function SP(e,a,t){t===void 0&&(t=!1);var i=kt(a),n=kt(a)&&k5(a),o=Mt(a),r=hn(e,n,t),s={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!t)&&((Tt(a)!=="body"||Gl(o))&&(s=wP(a)),kt(a)?(d=hn(a,!0),d.x+=a.clientLeft,d.y+=a.clientTop):o&&(d.x=Dl(o))),{x:r.left+s.scrollLeft-d.x,y:r.top+s.scrollTop-d.y,width:r.width,height:r.height}}l();function h5(e){var a=new Map,t=new Set,i=[];e.forEach(function(o){a.set(o.name,o)});function n(o){t.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(s){if(!t.has(s)){var d=a.get(s);d&&n(d)}}),i.push(o)}return e.forEach(function(o){t.has(o.name)||n(o)}),i}function jP(e){var a=h5(e);return yL.reduce(function(t,i){return t.concat(a.filter(function(n){return n.phase===i}))},[])}l();function xP(e){var a;return function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(e())})})),a}}l();function CP(e){var a=e.reduce(function(t,i){var n=t[i.name];return t[i.name]=n?Object.assign({},n,i,{options:Object.assign({},n.options,i.options),data:Object.assign({},n.data,i.data)}):i,t},{});return Object.keys(a).map(function(t){return a[t]})}var EL={placement:"bottom",modifiers:[],strategy:"absolute"};function LL(){for(var e=arguments.length,a=new Array(e),t=0;t<e;t++)a[t]=arguments[t];return!a.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function ML(e){e===void 0&&(e={});var a=e,t=a.defaultModifiers,i=t===void 0?[]:t,n=a.defaultOptions,o=n===void 0?EL:n;return function(s,d,u){u===void 0&&(u=o);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},EL,o),modifiersData:{},elements:{reference:s,popper:d},attributes:{},styles:{}},m=[],g=!1,b={state:p,setOptions:function(h){var k=typeof h=="function"?h(p.options):h;v(),p.options=Object.assign({},o,p.options,k),p.scrollParents={reference:kn(s)?bs(s):s.contextElement?bs(s.contextElement):[],popper:bs(d)};var y=jP(CP([].concat(i,p.options.modifiers)));return p.orderedModifiers=y.filter(function(I){return I.enabled}),f(),b.update()},forceUpdate:function(){if(!g){var h=p.elements,k=h.reference,y=h.popper;if(LL(k,y)){p.rects={reference:SP(k,Yn(y),p.options.strategy==="fixed"),popper:Sl(y)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(C){return p.modifiersData[C.name]=Object.assign({},C.data)});for(var I=0;I<p.orderedModifiers.length;I++){if(p.reset===!0){p.reset=!1,I=-1;continue}var A=p.orderedModifiers[I],T=A.fn,P=A.options,z=P===void 0?{}:P,D=A.name;typeof T=="function"&&(p=T({state:p,options:z,name:D,instance:b})||p)}}}},update:xP(function(){return new Promise(function(_){b.forceUpdate(),_(p)})}),destroy:function(){v(),g=!0}};if(!LL(s,d))return b;b.setOptions(u).then(function(_){!g&&u.onFirstUpdate&&u.onFirstUpdate(_)});function f(){p.orderedModifiers.forEach(function(_){var h=_.name,k=_.options,y=k===void 0?{}:k,I=_.effect;if(typeof I=="function"){var A=I({state:p,name:h,instance:b,options:y}),T=function(){};m.push(A||T)}})}function v(){m.forEach(function(_){return _()}),m=[]}return b}}l();var b5=[zL,GL,PL,fL,DL,SL,WL,IL,CL],DP=ML({defaultModifiers:b5});l();var FL="Popper";function NL(e){return Lh(FL,e)}var Hye=MD(FL,["root"]);var gv=S(ne()),v5=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],y5=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function f5(e,a){if(a==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function GP(e){return typeof e=="function"?e():e}function _5(e){return e.nodeType!==void 0}var A5=()=>De({root:["root"]},SC(NL)),I5={},T5=Qt.forwardRef(function(a,t){var i;let{anchorEl:n,children:o,direction:r,disablePortal:s,modifiers:d,open:u,placement:p,popperOptions:m,popperRef:g,slotProps:b={},slots:f={},TransitionProps:v}=a,_=Aa(a,v5),h=Qt.useRef(null),k=qe(h,t),y=Qt.useRef(null),I=qe(y,g),A=Qt.useRef(I);pt(()=>{A.current=I},[I]),Qt.useImperativeHandle(g,()=>y.current,[]);let T=f5(p,r),[P,z]=Qt.useState(T),[D,C]=Qt.useState(GP(n));Qt.useEffect(()=>{y.current&&y.current.forceUpdate()}),Qt.useEffect(()=>{n&&C(GP(n))},[n]),pt(()=>{if(!D||!u)return;let Z=V=>{z(V.placement)},x=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:V})=>{Z(V)}}];d!=null&&(x=x.concat(d)),m&&m.modifiers!=null&&(x=x.concat(m.modifiers));let E=DP(D,h.current,H({placement:T},m,{modifiers:x}));return A.current(E),()=>{E.destroy(),A.current(null)}},[D,s,d,u,m,T]);let W={placement:P};v!==null&&(W.TransitionProps=v);let F=A5(),N=(i=f.root)!=null?i:"div",q=Km({elementType:N,externalSlotProps:b.root,externalForwardedProps:_,additionalProps:{role:"tooltip",ref:k},ownerState:a,className:F.root});return(0,gv.jsx)(N,H({},q,{children:typeof o=="function"?o(W):o}))}),WP=Qt.forwardRef(function(a,t){let{anchorEl:i,children:n,container:o,direction:r="ltr",disablePortal:s=!1,keepMounted:d=!1,modifiers:u,open:p,placement:m="bottom",popperOptions:g=I5,popperRef:b,style:f,transition:v=!1,slotProps:_={},slots:h={}}=a,k=Aa(a,y5),[y,I]=Qt.useState(!0),A=()=>{I(!1)},T=()=>{I(!0)};if(!d&&!p&&(!v||y))return null;let P;if(o)P=o;else if(i){let C=GP(i);P=C&&_5(C)?vi(C).body:vi(null).body}let z=!p&&d&&(!v||y)?"none":void 0,D=v?{in:p,onEnter:A,onExited:T}:void 0;return(0,gv.jsx)(bP,{disablePortal:s,container:P,children:(0,gv.jsx)(T5,H({anchorEl:i,direction:r,disablePortal:s,modifiers:u,ref:t,open:v?!y:p,placement:m,popperOptions:g,popperRef:b,slotProps:_,slots:h},k,{style:H({position:"fixed",top:0,left:0,display:z},f),TransitionProps:D,children:n}))})});l();l();va();var wa=S(R());Xe();l();var Ju={buttonClick:"buttonClick",browserAutoFill:"browserAutoFill"};l();var BL=e=>{let{label:a,value:t}=e;return typeof a=="string"?a:typeof t=="string"?t:String(e)};l();va();function RL(e,a){let{open:t}=e,{context:{selectionMode:i}}=a;if(a.type===Ju.buttonClick){var n;let d=(n=e.selectedValues[0])!=null?n:_t(null,"start",a.context);return H({},e,{open:!t,highlightedValue:t?null:d})}if(a.type===Ju.browserAutoFill)return Mh(a.item,e,a.context);let o=Fh(e,a);switch(a.type){case ya.keyDown:if(e.open){if(a.event.key==="Escape")return H({},o,{open:!1})}else{if(a.event.key==="ArrowDown"){var r;return H({},e,{open:!0,highlightedValue:(r=e.selectedValues[0])!=null?r:_t(null,"start",a.context)})}if(a.event.key==="ArrowUp"){var s;return H({},e,{open:!0,highlightedValue:(s=e.selectedValues[0])!=null?s:_t(null,"end",a.context)})}}break;case ya.itemClick:if(i==="single")return H({},o,{open:!1});break;case ya.blur:return H({},o,{open:!1});default:return o}return o}function P5(e){return Array.isArray(e)?e.length===0?"":JSON.stringify(e.map(a=>a.value)):e?.value==null?"":typeof e.value=="string"||typeof e.value=="number"?e.value:JSON.stringify(e.value)}function EP(e){let{areOptionsEqual:a,buttonRef:t,defaultOpen:i=!1,defaultValue:n,disabled:o=!1,listboxId:r,listboxRef:s,multiple:d=!1,name:u,required:p,onChange:m,onHighlightChange:g,onOpenChange:b,open:f,options:v,getOptionAsString:_=BL,getSerializedValue:h=P5,value:k,componentName:y="useSelect"}=e,I=wa.useRef(null),A=qe(t,I),T=wa.useRef(null),P=Ei(r),z;k===void 0&&n===void 0?z=[]:n!==void 0&&(d?z=n:z=n==null?[]:[n]);let D=wa.useMemo(()=>{if(k!==void 0)return d?k:k==null?[]:[k]},[k,d]),{subitems:C,contextValue:W}=YD(),F=wa.useMemo(()=>v!=null?new Map(v.map((me,ve)=>[me.value,{value:me.value,label:me.label,disabled:me.disabled,ref:wa.createRef(),id:`${P}_${ve}`}])):C,[v,C,P]),N=qe(s,T),{getRootProps:q,active:Z,focusVisible:x,rootRef:E}=Li({disabled:o,rootRef:A}),V=wa.useMemo(()=>Array.from(F.keys()),[F]),pe=wa.useCallback(me=>{if(a!==void 0){let ve=V.find(Se=>a(Se,me));return F.get(ve)}return F.get(me)},[F,a,V]),we=wa.useCallback(me=>{var ve;let Se=pe(me);return(ve=Se?.disabled)!=null?ve:!1},[pe]),be=wa.useCallback(me=>{let ve=pe(me);return ve?_(ve):""},[pe,_]),ge=wa.useMemo(()=>({selectedValues:D,open:f}),[D,f]),G=wa.useCallback(me=>{var ve;return(ve=F.get(me))==null?void 0:ve.id},[F]),ee=wa.useCallback((me,ve)=>{if(d)m?.(me,ve);else{var Se;m?.(me,(Se=ve[0])!=null?Se:null)}},[d,m]),X=wa.useCallback((me,ve)=>{g?.(me,ve??null)},[g]),Oe=wa.useCallback((me,ve,Se)=>{if(ve==="open"&&(b?.(Se),Se===!1&&me?.type!=="blur")){var Ba;(Ba=I.current)==null||Ba.focus()}},[b]),K=wa.useCallback(me=>{var ve,Se;return me==null?null:(ve=(Se=C.get(me))==null?void 0:Se.ref.current)!=null?ve:null},[C]),U={getInitialState:()=>{var me;return{highlightedValue:null,selectedValues:(me=z)!=null?me:[],open:i}},getItemId:G,controlledProps:ge,focusManagement:"DOM",getItemDomElement:K,itemComparer:a,isItemDisabled:we,rootRef:N,onChange:ee,onHighlightChange:X,onStateChange:Oe,reducerActionContext:wa.useMemo(()=>({multiple:d}),[d]),items:V,getItemAsString:be,selectionMode:d?"multiple":"single",stateReducer:RL,componentName:y},{dispatch:Q,getRootProps:oe,contextValue:de,state:{open:Re,highlightedValue:_e,selectedValues:Te},rootRef:Ge}=eI(U),He=wa.useRef(Re);pt(()=>{if(Re&&_e!==null){var me;let ve=(me=pe(_e))==null?void 0:me.ref;if(!T.current||!(ve!=null&&ve.current))return;He.current||ve.current.focus({preventScroll:!0});let Se=T.current.getBoundingClientRect(),Ba=ve.current.getBoundingClientRect();Ba.top<Se.top?T.current.scrollTop-=Se.top-Ba.top:Ba.bottom>Se.bottom&&(T.current.scrollTop+=Ba.bottom-Se.bottom)}},[Re,_e,pe]);let Pe=wa.useCallback(me=>pe(me),[pe]),ze=me=>ve=>{var Se;if(me==null||(Se=me.onClick)==null||Se.call(me,ve),!ve.defaultMuiPrevented){let Ba={type:Ju.buttonClick,event:ve};Q(Ba)}},Je=me=>ve=>{var Se;(Se=me.onKeyDown)==null||Se.call(me,ve),!ve.defaultMuiPrevented&&(ve.key==="ArrowDown"||ve.key==="ArrowUp")&&(ve.preventDefault(),Q({type:ya.keyDown,key:ve.key,event:ve}))},j=(me={})=>({onClick:ze(me),onKeyDown:Je(me)}),M=(me={})=>H({},me,j(me),{role:"combobox","aria-expanded":Re,"aria-controls":P}),O=(me={})=>{let ve=Ga(me),Se=hu(M,q);return H({},me,Se(ve))},te=me=>ve=>{var Se,Ba;(Se=me.onBlur)==null||Se.call(me,ve),!ve.defaultMuiPrevented&&((Ba=T.current)!=null&&Ba.contains(ve.relatedTarget)||ve.relatedTarget===I.current)&&(ve.defaultMuiPrevented=!0)},ie=(me={})=>({onBlur:te(me)}),$=(me={})=>{let ve=Ga(me),Se=hu(ie,oe);return H({id:P,role:"listbox","aria-multiselectable":d?"true":void 0},me,Se(ve))};wa.useDebugValue({selectedOptions:Te,highlightedOption:_e,open:Re});let ue=wa.useMemo(()=>H({},de,W),[de,W]),Ce;e.multiple?Ce=Te:Ce=Te.length>0?Te[0]:null;let Me;if(d)Me=Ce.map(me=>Pe(me)).filter(me=>me!==void 0);else{var Ue;Me=(Ue=Pe(Ce))!=null?Ue:null}let Na=me=>ve=>{var Se;if(me==null||(Se=me.onChange)==null||Se.call(me,ve),ve.defaultMuiPrevented)return;let Ba=F.get(ve.target.value);ve.target.value===""?Q({type:ya.clearSelection}):Ba!==void 0&&Q({type:Ju.browserAutoFill,item:Ba.value,event:ve})};return{buttonActive:Z,buttonFocusVisible:x,buttonRef:E,contextValue:ue,disabled:o,dispatch:Q,getButtonProps:O,getHiddenInputProps:(me={})=>{let ve=Ga(me);return H({name:u,tabIndex:-1,"aria-hidden":!0,required:p?!0:void 0,value:h(Me),style:Wh},me,{onChange:Na(ve)})},getListboxProps:$,getOptionMetadata:Pe,listboxRef:Ge,open:Re,options:V,value:Ce,highlightedOption:_e}}l();var LP=S(R());var MP=S(ne());function ZL(e){let{value:a,children:t}=e,{dispatch:i,getItemIndex:n,getItemState:o,registerItem:r,totalSubitemCount:s}=a,d=LP.useMemo(()=>({dispatch:i,getItemState:o,getItemIndex:n}),[i,n,o]),u=LP.useMemo(()=>({getItemIndex:n,registerItem:r,totalSubitemCount:s}),[r,n,s]);return(0,MP.jsx)(Bh.Provider,{value:u,children:(0,MP.jsx)(Hr.Provider,{value:d,children:t})})}l();l();va();var Xu=S(R());Xe();function FP(e={}){let{autoHideDuration:a=null,disableWindowBlurListener:t=!1,onClose:i,open:n,resumeHideDuration:o}=e,r=Hm();Xu.useEffect(()=>{if(!n)return;function h(k){k.defaultPrevented||(k.key==="Escape"||k.key==="Esc")&&i?.(k,"escapeKeyDown")}return document.addEventListener("keydown",h),()=>{document.removeEventListener("keydown",h)}},[n,i]);let s=Ko((h,k)=>{i?.(h,k)}),d=Ko(h=>{!i||h==null||r.start(h,()=>{s(null,"timeout")})});Xu.useEffect(()=>(n&&d(a),r.clear),[n,a,d,r]);let u=h=>{i?.(h,"clickaway")},p=r.clear,m=Xu.useCallback(()=>{a!=null&&d(o??a*.5)},[a,o,d]),g=h=>k=>{let y=h.onBlur;y?.(k),m()},b=h=>k=>{let y=h.onFocus;y?.(k),p()},f=h=>k=>{let y=h.onMouseEnter;y?.(k),p()},v=h=>k=>{let y=h.onMouseLeave;y?.(k),m()};return Xu.useEffect(()=>{if(!t&&n)return window.addEventListener("focus",m),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",p)}},[t,n,m,p]),{getRootProps:(h={})=>{let k=H({},Ga(e),Ga(h));return H({role:"presentation"},h,k,{onBlur:g(k),onFocus:b(k),onMouseEnter:f(k),onMouseLeave:v(k)})},onClickAway:u}}l();l();va();rn();var vn=S(R());Xe();var NP=S(ne()),qL=S(ne()),z5=["onChange","maxRows","minRows","style","value"];function kv(e){return parseInt(e,10)||0}var w5={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function S5(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}var BP=vn.forwardRef(function(a,t){let{onChange:i,maxRows:n,minRows:o=1,style:r,value:s}=a,d=Aa(a,z5),{current:u}=vn.useRef(s!=null),p=vn.useRef(null),m=qe(t,p),g=vn.useRef(null),b=vn.useRef(null),f=vn.useCallback(()=>{let h=p.current,y=Or(h).getComputedStyle(h);if(y.width==="0px")return{outerHeightStyle:0,overflowing:!1};let I=b.current;I.style.width=y.width,I.value=h.value||a.placeholder||"x",I.value.slice(-1)===`
8
+ `+o.stack}return{value:e,source:a,stack:n,digest:null}}function jI(e,a,t){return{value:e,source:null,stack:t??null,digest:a??null}}function pT(e,a){try{console.error(a.value)}catch(t){setTimeout(function(){throw t})}}var c4=typeof WeakMap=="function"?WeakMap:Map;function NE(e,a,t){t=ar(-1,t),t.tag=3,t.payload={element:null};var i=a.value;return t.callback=function(){Zb||(Zb=!0,_T=i),pT(e,a)},t}function BE(e,a,t){t=ar(-1,t),t.tag=3;var i=e.type.getDerivedStateFromError;if(typeof i=="function"){var n=a.value;t.payload=function(){return i(n)},t.callback=function(){pT(e,a)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){pT(e,a),typeof i!="function"&&(ls===null?ls=new Set([this]):ls.add(this));var r=a.stack;this.componentDidCatch(a.value,{componentStack:r!==null?r:""})}),t}function $G(e,a,t){var i=e.pingCache;if(i===null){i=e.pingCache=new c4;var n=new Set;i.set(a,n)}else n=i.get(a),n===void 0&&(n=new Set,i.set(a,n));n.has(t)||(n.add(t),e=w4.bind(null,e,a,t),a.then(e,e))}function JG(e){do{var a;if((a=e.tag===13)&&(a=e.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return e;e=e.return}while(e!==null);return null}function XG(e,a,t,i,n){return(e.mode&1)===0?(e===a?e.flags|=65536:(e.flags|=128,t.flags|=131072,t.flags&=-52805,t.tag===1&&(t.alternate===null?t.tag=17:(a=ar(-1,1),a.tag=2,ss(t,a,1))),t.lanes|=1),e):(e.flags|=65536,e.lanes=n,e)}var g4=rr.ReactCurrentOwner,fi=!1;function pi(e,a,t,i){a.child=e===null?kE(a,null,t,i):Bu(a,e.child,t,i)}function eW(e,a,t,i,n){t=t.render;var o=a.ref;return Eu(a,n),i=XT(e,a,t,i,o,n),t=eP(),e!==null&&!fi?(a.updateQueue=e.updateQueue,a.flags&=-2053,e.lanes&=~n,or(e,a,n)):(Ea&&t&&RT(a),a.flags|=1,pi(e,a,i,n),a.child)}function aW(e,a,t,i,n){if(e===null){var o=t.type;return typeof o=="function"&&!uP(o)&&o.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(a.tag=15,a.type=o,RE(e,a,o,i,n)):(e=_b(t.type,null,i,a,a.mode,n),e.ref=a.ref,e.return=a,a.child=e)}if(o=e.child,(e.lanes&n)===0){var r=o.memoizedProps;if(t=t.compare,t=t!==null?t:wc,t(r,i)&&e.ref===a.ref)return or(e,a,n)}return a.flags|=1,e=us(o,i),e.ref=a.ref,e.return=a,a.child=e}function RE(e,a,t,i,n){if(e!==null){var o=e.memoizedProps;if(wc(o,i)&&e.ref===a.ref)if(fi=!1,a.pendingProps=i=o,(e.lanes&n)!==0)(e.flags&131072)!==0&&(fi=!0);else return a.lanes=e.lanes,or(e,a,n)}return mT(e,a,t,i,n)}function ZE(e,a,t){var i=a.pendingProps,n=i.children,o=e!==null?e.memoizedState:null;if(i.mode==="hidden")if((a.mode&1)===0)a.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ta(xu,Ni),Ni|=t;else{if((t&1073741824)===0)return e=o!==null?o.baseLanes|t:t,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:e,cachePool:null,transitions:null},a.updateQueue=null,Ta(xu,Ni),Ni|=e,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=o!==null?o.baseLanes:t,Ta(xu,Ni),Ni|=i}else o!==null?(i=o.baseLanes|t,a.memoizedState=null):i=t,Ta(xu,Ni),Ni|=i;return pi(e,a,n,t),a.child}function qE(e,a){var t=a.ref;(e===null&&t!==null||e!==null&&e.ref!==t)&&(a.flags|=512,a.flags|=2097152)}function mT(e,a,t,i,n){var o=Ai(t)?yl:Yt.current;return o=Fu(a,o),Eu(a,n),t=XT(e,a,t,i,o,n),i=eP(),e!==null&&!fi?(a.updateQueue=e.updateQueue,a.flags&=-2053,e.lanes&=~n,or(e,a,n)):(Ea&&i&&RT(a),a.flags|=1,pi(e,a,t,n),a.child)}function tW(e,a,t,i,n){if(Ai(t)){var o=!0;Db(a)}else o=!1;if(Eu(a,n),a.stateNode===null)vb(e,a),FE(a,t,i),uT(a,t,i,n),i=!0;else if(e===null){var r=a.stateNode,s=a.memoizedProps;r.props=s;var d=r.context,u=t.contextType;typeof u=="object"&&u!==null?u=mn(u):(u=Ai(t)?yl:Yt.current,u=Fu(a,u));var p=t.getDerivedStateFromProps,m=typeof p=="function"||typeof r.getSnapshotBeforeUpdate=="function";m||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(s!==i||d!==u)&&QG(a,r,i,u),Jr=!1;var g=a.memoizedState;r.state=g,Mb(a,i,r,n),d=a.memoizedState,s!==i||g!==d||_i.current||Jr?(typeof p=="function"&&(dT(a,t,p,i),d=a.memoizedState),(s=Jr||YG(a,t,s,i,g,d,u))?(m||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(a.flags|=4194308)):(typeof r.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=i,a.memoizedState=d),r.props=i,r.state=d,r.context=u,i=s):(typeof r.componentDidMount=="function"&&(a.flags|=4194308),i=!1)}else{r=a.stateNode,bE(e,a),s=a.memoizedProps,u=a.type===a.elementType?s:Zn(a.type,s),r.props=u,m=a.pendingProps,g=r.context,d=t.contextType,typeof d=="object"&&d!==null?d=mn(d):(d=Ai(t)?yl:Yt.current,d=Fu(a,d));var b=t.getDerivedStateFromProps;(p=typeof b=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(s!==m||g!==d)&&QG(a,r,i,d),Jr=!1,g=a.memoizedState,r.state=g,Mb(a,i,r,n);var f=a.memoizedState;s!==m||g!==f||_i.current||Jr?(typeof b=="function"&&(dT(a,t,b,i),f=a.memoizedState),(u=Jr||YG(a,t,u,i,g,f,d)||!1)?(p||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(i,f,d),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(i,f,d)),typeof r.componentDidUpdate=="function"&&(a.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof r.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(a.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(a.flags|=1024),a.memoizedProps=i,a.memoizedState=f),r.props=i,r.state=f,r.context=d,i=u):(typeof r.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(a.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(a.flags|=1024),i=!1)}return cT(e,a,t,i,o,n)}function cT(e,a,t,i,n,o){qE(e,a);var r=(a.flags&128)!==0;if(!i&&!r)return n&&RG(a,t,!1),or(e,a,o);i=a.stateNode,g4.current=a;var s=r&&typeof t.getDerivedStateFromError!="function"?null:i.render();return a.flags|=1,e!==null&&r?(a.child=Bu(a,e.child,null,o),a.child=Bu(a,null,s,o)):pi(e,a,s,o),a.memoizedState=i.state,n&&RG(a,t,!0),a.child}function VE(e){var a=e.stateNode;a.pendingContext?BG(e,a.pendingContext,a.pendingContext!==a.context):a.context&&BG(e,a.context,!1),YT(e,a.containerInfo)}function iW(e,a,t,i,n){return Nu(),qT(n),a.flags|=256,pi(e,a,t,i),a.child}var gT={dehydrated:null,treeContext:null,retryLane:0};function kT(e){return{baseLanes:e,cachePool:null,transitions:null}}function UE(e,a,t){var i=a.pendingProps,n=Ra.current,o=!1,r=(a.flags&128)!==0,s;if((s=r)||(s=e!==null&&e.memoizedState===null?!1:(n&2)!==0),s?(o=!0,a.flags&=-129):(e===null||e.memoizedState!==null)&&(n|=1),Ta(Ra,n&1),e===null)return sT(a),e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((a.mode&1)===0?a.lanes=1:e.data==="$!"?a.lanes=8:a.lanes=1073741824,null):(r=i.children,e=i.fallback,o?(i=a.mode,o=a.child,r={mode:"hidden",children:r},(i&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=r):o=tv(r,i,0,null),e=vl(e,i,t,null),o.return=a,e.return=a,o.sibling=e,a.child=o,a.child.memoizedState=kT(t),a.memoizedState=gT,e):iP(a,r));if(n=e.memoizedState,n!==null&&(s=n.dehydrated,s!==null))return k4(e,a,r,i,s,n,t);if(o){o=i.fallback,r=a.mode,n=e.child,s=n.sibling;var d={mode:"hidden",children:i.children};return(r&1)===0&&a.child!==n?(i=a.child,i.childLanes=0,i.pendingProps=d,a.deletions=null):(i=us(n,d),i.subtreeFlags=n.subtreeFlags&14680064),s!==null?o=us(s,o):(o=vl(o,r,t,null),o.flags|=2),o.return=a,i.return=a,i.sibling=o,a.child=i,i=o,o=a.child,r=e.child.memoizedState,r=r===null?kT(t):{baseLanes:r.baseLanes|t,cachePool:null,transitions:r.transitions},o.memoizedState=r,o.childLanes=e.childLanes&~t,a.memoizedState=gT,i}return o=e.child,e=o.sibling,i=us(o,{mode:"visible",children:i.children}),(a.mode&1)===0&&(i.lanes=t),i.return=a,i.sibling=null,e!==null&&(t=a.deletions,t===null?(a.deletions=[e],a.flags|=16):t.push(e)),a.child=i,a.memoizedState=null,i}function iP(e,a){return a=tv({mode:"visible",children:a},e.mode,0,null),a.return=e,e.child=a}function db(e,a,t,i){return i!==null&&qT(i),Bu(a,e.child,null,t),e=iP(a,a.pendingProps.children),e.flags|=2,a.memoizedState=null,e}function k4(e,a,t,i,n,o,r){if(t)return a.flags&256?(a.flags&=-257,i=jI(Error(ae(422))),db(e,a,r,i)):a.memoizedState!==null?(a.child=e.child,a.flags|=128,null):(o=i.fallback,n=a.mode,i=tv({mode:"visible",children:i.children},n,0,null),o=vl(o,n,r,null),o.flags|=2,i.return=a,o.return=a,i.sibling=o,a.child=i,(a.mode&1)!==0&&Bu(a,e.child,null,r),a.child.memoizedState=kT(r),a.memoizedState=gT,o);if((a.mode&1)===0)return db(e,a,r,null);if(n.data==="$!"){if(i=n.nextSibling&&n.nextSibling.dataset,i)var s=i.dgst;return i=s,o=Error(ae(419)),i=jI(o,i,void 0),db(e,a,r,i)}if(s=(r&e.childLanes)!==0,fi||s){if(i=It,i!==null){switch(r&-r){case 4:n=2;break;case 16:n=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:n=32;break;case 536870912:n=268435456;break;default:n=0}n=(n&(i.suspendedLanes|r))!==0?0:n,n!==0&&n!==o.retryLane&&(o.retryLane=n,nr(e,n),On(i,e,n,-1))}return dP(),i=jI(Error(ae(421))),db(e,a,r,i)}return n.data==="$?"?(a.flags|=128,a.child=e.child,a=S4.bind(null,e),n._reactRetry=a,null):(e=o.treeContext,Bi=rs(n.nextSibling),Ri=a,Ea=!0,Vn=null,e!==null&&(ln[dn++]=Xo,ln[dn++]=er,ln[dn++]=fl,Xo=e.id,er=e.overflow,fl=a),a=iP(a,i.children),a.flags|=4096,a)}function nW(e,a,t){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a),lT(e.return,a,t)}function xI(e,a,t,i,n){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:i,tail:t,tailMode:n}:(o.isBackwards=a,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=t,o.tailMode=n)}function OE(e,a,t){var i=a.pendingProps,n=i.revealOrder,o=i.tail;if(pi(e,a,i.children,t),i=Ra.current,(i&2)!==0)i=i&1|2,a.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=a.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&nW(e,t,a);else if(e.tag===19)nW(e,t,a);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===a)break e;for(;e.sibling===null;){if(e.return===null||e.return===a)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}if(Ta(Ra,i),(a.mode&1)===0)a.memoizedState=null;else switch(n){case"forwards":for(t=a.child,n=null;t!==null;)e=t.alternate,e!==null&&Fb(e)===null&&(n=t),t=t.sibling;t=n,t===null?(n=a.child,a.child=null):(n=t.sibling,t.sibling=null),xI(a,!1,n,t,o);break;case"backwards":for(t=null,n=a.child,a.child=null;n!==null;){if(e=n.alternate,e!==null&&Fb(e)===null){a.child=n;break}e=n.sibling,n.sibling=t,t=n,n=e}xI(a,!0,t,null,o);break;case"together":xI(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function vb(e,a){(a.mode&1)===0&&e!==null&&(e.alternate=null,a.alternate=null,a.flags|=2)}function or(e,a,t){if(e!==null&&(a.dependencies=e.dependencies),Al|=a.lanes,(t&a.childLanes)===0)return null;if(e!==null&&a.child!==e.child)throw Error(ae(153));if(a.child!==null){for(e=a.child,t=us(e,e.pendingProps),a.child=t,t.return=a;e.sibling!==null;)e=e.sibling,t=t.sibling=us(e,e.pendingProps),t.return=a;t.sibling=null}return a.child}function h4(e,a,t){switch(a.tag){case 3:VE(a),Nu();break;case 5:vE(a);break;case 1:Ai(a.type)&&Db(a);break;case 4:YT(a,a.stateNode.containerInfo);break;case 10:var i=a.type._context,n=a.memoizedProps.value;Ta(Eb,i._currentValue),i._currentValue=n;break;case 13:if(i=a.memoizedState,i!==null)return i.dehydrated!==null?(Ta(Ra,Ra.current&1),a.flags|=128,null):(t&a.child.childLanes)!==0?UE(e,a,t):(Ta(Ra,Ra.current&1),e=or(e,a,t),e!==null?e.sibling:null);Ta(Ra,Ra.current&1);break;case 19:if(i=(t&a.childLanes)!==0,(e.flags&128)!==0){if(i)return OE(e,a,t);a.flags|=128}if(n=a.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Ta(Ra,Ra.current),i)break;return null;case 22:case 23:return a.lanes=0,ZE(e,a,t)}return or(e,a,t)}var KE,hT,HE,YE;KE=function(e,a){for(var t=a.child;t!==null;){if(t.tag===5||t.tag===6)e.appendChild(t.stateNode);else if(t.tag!==4&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===a)break;for(;t.sibling===null;){if(t.return===null||t.return===a)return;t=t.return}t.sibling.return=t.return,t=t.sibling}};hT=function(){};HE=function(e,a,t,i){var n=e.memoizedProps;if(n!==i){e=a.stateNode,hl(Ao.current);var o=null;switch(t){case"input":n=FI(e,n),i=FI(e,i),o=[];break;case"select":n=qa({},n,{value:void 0}),i=qa({},i,{value:void 0}),o=[];break;case"textarea":n=RI(e,n),i=RI(e,i),o=[];break;default:typeof n.onClick!="function"&&typeof i.onClick=="function"&&(e.onclick=xb)}qI(t,i);var r;t=null;for(u in n)if(!i.hasOwnProperty(u)&&n.hasOwnProperty(u)&&n[u]!=null)if(u==="style"){var s=n[u];for(r in s)s.hasOwnProperty(r)&&(t||(t={}),t[r]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(fc.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in i){var d=i[u];if(s=n?.[u],i.hasOwnProperty(u)&&d!==s&&(d!=null||s!=null))if(u==="style")if(s){for(r in s)!s.hasOwnProperty(r)||d&&d.hasOwnProperty(r)||(t||(t={}),t[r]="");for(r in d)d.hasOwnProperty(r)&&s[r]!==d[r]&&(t||(t={}),t[r]=d[r])}else t||(o||(o=[]),o.push(u,t)),t=d;else u==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,s=s?s.__html:void 0,d!=null&&s!==d&&(o=o||[]).push(u,d)):u==="children"?typeof d!="string"&&typeof d!="number"||(o=o||[]).push(u,""+d):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(fc.hasOwnProperty(u)?(d!=null&&u==="onScroll"&&Pa("scroll",e),o||s===d||(o=[])):(o=o||[]).push(u,d))}t&&(o=o||[]).push("style",t);var u=o;(a.updateQueue=u)&&(a.flags|=4)}};YE=function(e,a,t,i){t!==i&&(a.flags|=4)};function nc(e,a){if(!Ea)switch(e.tailMode){case"hidden":a=e.tail;for(var t=null;a!==null;)a.alternate!==null&&(t=a),a=a.sibling;t===null?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?a||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Kt(e){var a=e.alternate!==null&&e.alternate.child===e.child,t=0,i=0;if(a)for(var n=e.child;n!==null;)t|=n.lanes|n.childLanes,i|=n.subtreeFlags&14680064,i|=n.flags&14680064,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)t|=n.lanes|n.childLanes,i|=n.subtreeFlags,i|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=i,e.childLanes=t,a}function b4(e,a,t){var i=a.pendingProps;switch(ZT(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kt(a),null;case 1:return Ai(a.type)&&Cb(),Kt(a),null;case 3:return i=a.stateNode,Ru(),za(_i),za(Yt),$T(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(sb(a)?a.flags|=4:e===null||e.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Vn!==null&&(TT(Vn),Vn=null))),hT(e,a),Kt(a),null;case 5:QT(a);var n=hl(Dc.current);if(t=a.type,e!==null&&a.stateNode!=null)HE(e,a,t,i,n),e.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!i){if(a.stateNode===null)throw Error(ae(166));return Kt(a),null}if(e=hl(Ao.current),sb(a)){i=a.stateNode,t=a.type;var o=a.memoizedProps;switch(i[fo]=a,i[xc]=o,e=(a.mode&1)!==0,t){case"dialog":Pa("cancel",i),Pa("close",i);break;case"iframe":case"object":case"embed":Pa("load",i);break;case"video":case"audio":for(n=0;n<uc.length;n++)Pa(uc[n],i);break;case"source":Pa("error",i);break;case"img":case"image":case"link":Pa("error",i),Pa("load",i);break;case"details":Pa("toggle",i);break;case"input":mG(i,o),Pa("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!o.multiple},Pa("invalid",i);break;case"textarea":gG(i,o),Pa("invalid",i)}qI(t,o),n=null;for(var r in o)if(o.hasOwnProperty(r)){var s=o[r];r==="children"?typeof s=="string"?i.textContent!==s&&(o.suppressHydrationWarning!==!0&&rb(i.textContent,s,e),n=["children",s]):typeof s=="number"&&i.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&rb(i.textContent,s,e),n=["children",""+s]):fc.hasOwnProperty(r)&&s!=null&&r==="onScroll"&&Pa("scroll",i)}switch(t){case"input":Hh(i),cG(i,o,!0);break;case"textarea":Hh(i),kG(i);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(i.onclick=xb)}i=n,a.updateQueue=i,i!==null&&(a.flags|=4)}else{r=n.nodeType===9?n:n.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=IW(t)),e==="http://www.w3.org/1999/xhtml"?t==="script"?(e=r.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=r.createElement(t,{is:i.is}):(e=r.createElement(t),t==="select"&&(r=e,i.multiple?r.multiple=!0:i.size&&(r.size=i.size))):e=r.createElementNS(e,t),e[fo]=a,e[xc]=i,KE(e,a,!1,!1),a.stateNode=e;e:{switch(r=VI(t,i),t){case"dialog":Pa("cancel",e),Pa("close",e),n=i;break;case"iframe":case"object":case"embed":Pa("load",e),n=i;break;case"video":case"audio":for(n=0;n<uc.length;n++)Pa(uc[n],e);n=i;break;case"source":Pa("error",e),n=i;break;case"img":case"image":case"link":Pa("error",e),Pa("load",e),n=i;break;case"details":Pa("toggle",e),n=i;break;case"input":mG(e,i),n=FI(e,i),Pa("invalid",e);break;case"option":n=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},n=qa({},i,{value:void 0}),Pa("invalid",e);break;case"textarea":gG(e,i),n=RI(e,i),Pa("invalid",e);break;default:n=i}qI(t,n),s=n;for(o in s)if(s.hasOwnProperty(o)){var d=s[o];o==="style"?zW(e,d):o==="dangerouslySetInnerHTML"?(d=d?d.__html:void 0,d!=null&&TW(e,d)):o==="children"?typeof d=="string"?(t!=="textarea"||d!=="")&&_c(e,d):typeof d=="number"&&_c(e,""+d):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(fc.hasOwnProperty(o)?d!=null&&o==="onScroll"&&Pa("scroll",e):d!=null&&wT(e,o,d,r))}switch(t){case"input":Hh(e),cG(e,i,!1);break;case"textarea":Hh(e),kG(e);break;case"option":i.value!=null&&e.setAttribute("value",""+ps(i.value));break;case"select":e.multiple=!!i.multiple,o=i.value,o!=null?Cu(e,!!i.multiple,o,!1):i.defaultValue!=null&&Cu(e,!!i.multiple,i.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=xb)}switch(t){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(a.flags|=4)}a.ref!==null&&(a.flags|=512,a.flags|=2097152)}return Kt(a),null;case 6:if(e&&a.stateNode!=null)YE(e,a,e.memoizedProps,i);else{if(typeof i!="string"&&a.stateNode===null)throw Error(ae(166));if(t=hl(Dc.current),hl(Ao.current),sb(a)){if(i=a.stateNode,t=a.memoizedProps,i[fo]=a,(o=i.nodeValue!==t)&&(e=Ri,e!==null))switch(e.tag){case 3:rb(i.nodeValue,t,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&rb(i.nodeValue,t,(e.mode&1)!==0)}o&&(a.flags|=4)}else i=(t.nodeType===9?t:t.ownerDocument).createTextNode(i),i[fo]=a,a.stateNode=i}return Kt(a),null;case 13:if(za(Ra),i=a.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ea&&Bi!==null&&(a.mode&1)!==0&&(a.flags&128)===0)cE(),Nu(),a.flags|=98560,o=!1;else if(o=sb(a),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(ae(318));if(o=a.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(ae(317));o[fo]=a}else Nu(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Kt(a),o=!1}else Vn!==null&&(TT(Vn),Vn=null),o=!0;if(!o)return a.flags&65536?a:null}return(a.flags&128)!==0?(a.lanes=t,a):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(a.child.flags|=8192,(a.mode&1)!==0&&(e===null||(Ra.current&1)!==0?ct===0&&(ct=3):dP())),a.updateQueue!==null&&(a.flags|=4),Kt(a),null);case 4:return Ru(),hT(e,a),e===null&&Sc(a.stateNode.containerInfo),Kt(a),null;case 10:return OT(a.type._context),Kt(a),null;case 17:return Ai(a.type)&&Cb(),Kt(a),null;case 19:if(za(Ra),o=a.memoizedState,o===null)return Kt(a),null;if(i=(a.flags&128)!==0,r=o.rendering,r===null)if(i)nc(o,!1);else{if(ct!==0||e!==null&&(e.flags&128)!==0)for(e=a.child;e!==null;){if(r=Fb(e),r!==null){for(a.flags|=128,nc(o,!1),i=r.updateQueue,i!==null&&(a.updateQueue=i,a.flags|=4),a.subtreeFlags=0,i=t,t=a.child;t!==null;)o=t,e=i,o.flags&=14680066,r=o.alternate,r===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=r.childLanes,o.lanes=r.lanes,o.child=r.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=r.memoizedProps,o.memoizedState=r.memoizedState,o.updateQueue=r.updateQueue,o.type=r.type,e=r.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t=t.sibling;return Ta(Ra,Ra.current&1|2),a.child}e=e.sibling}o.tail!==null&&tt()>qu&&(a.flags|=128,i=!0,nc(o,!1),a.lanes=4194304)}else{if(!i)if(e=Fb(r),e!==null){if(a.flags|=128,i=!0,t=e.updateQueue,t!==null&&(a.updateQueue=t,a.flags|=4),nc(o,!0),o.tail===null&&o.tailMode==="hidden"&&!r.alternate&&!Ea)return Kt(a),null}else 2*tt()-o.renderingStartTime>qu&&t!==1073741824&&(a.flags|=128,i=!0,nc(o,!1),a.lanes=4194304);o.isBackwards?(r.sibling=a.child,a.child=r):(t=o.last,t!==null?t.sibling=r:a.child=r,o.last=r)}return o.tail!==null?(a=o.tail,o.rendering=a,o.tail=a.sibling,o.renderingStartTime=tt(),a.sibling=null,t=Ra.current,Ta(Ra,i?t&1|2:t&1),a):(Kt(a),null);case 22:case 23:return lP(),i=a.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(a.flags|=8192),i&&(a.mode&1)!==0?(Ni&1073741824)!==0&&(Kt(a),a.subtreeFlags&6&&(a.flags|=8192)):Kt(a),null;case 24:return null;case 25:return null}throw Error(ae(156,a.tag))}function v4(e,a){switch(ZT(a),a.tag){case 1:return Ai(a.type)&&Cb(),e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 3:return Ru(),za(_i),za(Yt),$T(),e=a.flags,(e&65536)!==0&&(e&128)===0?(a.flags=e&-65537|128,a):null;case 5:return QT(a),null;case 13:if(za(Ra),e=a.memoizedState,e!==null&&e.dehydrated!==null){if(a.alternate===null)throw Error(ae(340));Nu()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 19:return za(Ra),null;case 4:return Ru(),null;case 10:return OT(a.type._context),null;case 22:case 23:return lP(),null;case 24:return null;default:return null}}var ub=!1,Ht=!1,y4=typeof WeakSet=="function"?WeakSet:Set,fe=null;function ju(e,a){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(i){Ya(e,a,i)}else t.current=null}function bT(e,a,t){try{t()}catch(i){Ya(e,a,i)}}var oW=!1;function f4(e,a){if(eT=wb,e=eE(),BT(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var i=t.getSelection&&t.getSelection();if(i&&i.rangeCount!==0){t=i.anchorNode;var n=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{t.nodeType,o.nodeType}catch{t=null;break e}var r=0,s=-1,d=-1,u=0,p=0,m=e,g=null;a:for(;;){for(var b;m!==t||n!==0&&m.nodeType!==3||(s=r+n),m!==o||i!==0&&m.nodeType!==3||(d=r+i),m.nodeType===3&&(r+=m.nodeValue.length),(b=m.firstChild)!==null;)g=m,m=b;for(;;){if(m===e)break a;if(g===t&&++u===n&&(s=r),g===o&&++p===i&&(d=r),(b=m.nextSibling)!==null)break;m=g,g=m.parentNode}m=b}t=s===-1||d===-1?null:{start:s,end:d}}else t=null}t=t||{start:0,end:0}}else t=null;for(aT={focusedElem:e,selectionRange:t},wb=!1,fe=a;fe!==null;)if(a=fe,e=a.child,(a.subtreeFlags&1028)!==0&&e!==null)e.return=a,fe=e;else for(;fe!==null;){a=fe;try{var f=a.alternate;if((a.flags&1024)!==0)switch(a.tag){case 0:case 11:case 15:break;case 1:if(f!==null){var v=f.memoizedProps,_=f.memoizedState,h=a.stateNode,k=h.getSnapshotBeforeUpdate(a.elementType===a.type?v:Zn(a.type,v),_);h.__reactInternalSnapshotBeforeUpdate=k}break;case 3:var y=a.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ae(163))}}catch(I){Ya(a,a.return,I)}if(e=a.sibling,e!==null){e.return=a.return,fe=e;break}fe=a.return}return f=oW,oW=!1,f}function bc(e,a,t){var i=a.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var n=i=i.next;do{if((n.tag&e)===e){var o=n.destroy;n.destroy=void 0,o!==void 0&&bT(a,t,o)}n=n.next}while(n!==i)}}function ev(e,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var t=a=a.next;do{if((t.tag&e)===e){var i=t.create;t.destroy=i()}t=t.next}while(t!==a)}}function vT(e){var a=e.ref;if(a!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof a=="function"?a(e):a.current=e}}function QE(e){var a=e.alternate;a!==null&&(e.alternate=null,QE(a)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(a=e.stateNode,a!==null&&(delete a[fo],delete a[xc],delete a[nT],delete a[t4],delete a[i4])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function $E(e){return e.tag===5||e.tag===3||e.tag===4}function rW(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$E(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function yT(e,a,t){var i=e.tag;if(i===5||i===6)e=e.stateNode,a?t.nodeType===8?t.parentNode.insertBefore(e,a):t.insertBefore(e,a):(t.nodeType===8?(a=t.parentNode,a.insertBefore(e,t)):(a=t,a.appendChild(e)),t=t._reactRootContainer,t!=null||a.onclick!==null||(a.onclick=xb));else if(i!==4&&(e=e.child,e!==null))for(yT(e,a,t),e=e.sibling;e!==null;)yT(e,a,t),e=e.sibling}function fT(e,a,t){var i=e.tag;if(i===5||i===6)e=e.stateNode,a?t.insertBefore(e,a):t.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(fT(e,a,t),e=e.sibling;e!==null;)fT(e,a,t),e=e.sibling}var Wt=null,qn=!1;function Qr(e,a,t){for(t=t.child;t!==null;)JE(e,a,t),t=t.sibling}function JE(e,a,t){if(_o&&typeof _o.onCommitFiberUnmount=="function")try{_o.onCommitFiberUnmount(Ob,t)}catch{}switch(t.tag){case 5:Ht||ju(t,a);case 6:var i=Wt,n=qn;Wt=null,Qr(e,a,t),Wt=i,qn=n,Wt!==null&&(qn?(e=Wt,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):Wt.removeChild(t.stateNode));break;case 18:Wt!==null&&(qn?(e=Wt,t=t.stateNode,e.nodeType===8?II(e.parentNode,t):e.nodeType===1&&II(e,t),Pc(e)):II(Wt,t.stateNode));break;case 4:i=Wt,n=qn,Wt=t.stateNode.containerInfo,qn=!0,Qr(e,a,t),Wt=i,qn=n;break;case 0:case 11:case 14:case 15:if(!Ht&&(i=t.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){n=i=i.next;do{var o=n,r=o.destroy;o=o.tag,r!==void 0&&((o&2)!==0||(o&4)!==0)&&bT(t,a,r),n=n.next}while(n!==i)}Qr(e,a,t);break;case 1:if(!Ht&&(ju(t,a),i=t.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=t.memoizedProps,i.state=t.memoizedState,i.componentWillUnmount()}catch(s){Ya(t,a,s)}Qr(e,a,t);break;case 21:Qr(e,a,t);break;case 22:t.mode&1?(Ht=(i=Ht)||t.memoizedState!==null,Qr(e,a,t),Ht=i):Qr(e,a,t);break;default:Qr(e,a,t)}}function sW(e){var a=e.updateQueue;if(a!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new y4),a.forEach(function(i){var n=j4.bind(null,e,i);t.has(i)||(t.add(i),i.then(n,n))})}}function Rn(e,a){var t=a.deletions;if(t!==null)for(var i=0;i<t.length;i++){var n=t[i];try{var o=e,r=a,s=r;e:for(;s!==null;){switch(s.tag){case 5:Wt=s.stateNode,qn=!1;break e;case 3:Wt=s.stateNode.containerInfo,qn=!0;break e;case 4:Wt=s.stateNode.containerInfo,qn=!0;break e}s=s.return}if(Wt===null)throw Error(ae(160));JE(o,r,n),Wt=null,qn=!1;var d=n.alternate;d!==null&&(d.return=null),n.return=null}catch(u){Ya(n,a,u)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)XE(a,e),a=a.sibling}function XE(e,a){var t=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Rn(a,e),vo(e),i&4){try{bc(3,e,e.return),ev(3,e)}catch(v){Ya(e,e.return,v)}try{bc(5,e,e.return)}catch(v){Ya(e,e.return,v)}}break;case 1:Rn(a,e),vo(e),i&512&&t!==null&&ju(t,t.return);break;case 5:if(Rn(a,e),vo(e),i&512&&t!==null&&ju(t,t.return),e.flags&32){var n=e.stateNode;try{_c(n,"")}catch(v){Ya(e,e.return,v)}}if(i&4&&(n=e.stateNode,n!=null)){var o=e.memoizedProps,r=t!==null?t.memoizedProps:o,s=e.type,d=e.updateQueue;if(e.updateQueue=null,d!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&_W(n,o),VI(s,r);var u=VI(s,o);for(r=0;r<d.length;r+=2){var p=d[r],m=d[r+1];p==="style"?zW(n,m):p==="dangerouslySetInnerHTML"?TW(n,m):p==="children"?_c(n,m):wT(n,p,m,u)}switch(s){case"input":NI(n,o);break;case"textarea":AW(n,o);break;case"select":var g=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!o.multiple;var b=o.value;b!=null?Cu(n,!!o.multiple,b,!1):g!==!!o.multiple&&(o.defaultValue!=null?Cu(n,!!o.multiple,o.defaultValue,!0):Cu(n,!!o.multiple,o.multiple?[]:"",!1))}n[xc]=o}catch(v){Ya(e,e.return,v)}}break;case 6:if(Rn(a,e),vo(e),i&4){if(e.stateNode===null)throw Error(ae(162));n=e.stateNode,o=e.memoizedProps;try{n.nodeValue=o}catch(v){Ya(e,e.return,v)}}break;case 3:if(Rn(a,e),vo(e),i&4&&t!==null&&t.memoizedState.isDehydrated)try{Pc(a.containerInfo)}catch(v){Ya(e,e.return,v)}break;case 4:Rn(a,e),vo(e);break;case 13:Rn(a,e),vo(e),n=e.child,n.flags&8192&&(o=n.memoizedState!==null,n.stateNode.isHidden=o,!o||n.alternate!==null&&n.alternate.memoizedState!==null||(rP=tt())),i&4&&sW(e);break;case 22:if(p=t!==null&&t.memoizedState!==null,e.mode&1?(Ht=(u=Ht)||p,Rn(a,e),Ht=u):Rn(a,e),vo(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!p&&(e.mode&1)!==0)for(fe=e,p=e.child;p!==null;){for(m=fe=p;fe!==null;){switch(g=fe,b=g.child,g.tag){case 0:case 11:case 14:case 15:bc(4,g,g.return);break;case 1:ju(g,g.return);var f=g.stateNode;if(typeof f.componentWillUnmount=="function"){i=g,t=g.return;try{a=i,f.props=a.memoizedProps,f.state=a.memoizedState,f.componentWillUnmount()}catch(v){Ya(i,t,v)}}break;case 5:ju(g,g.return);break;case 22:if(g.memoizedState!==null){dW(m);continue}}b!==null?(b.return=g,fe=b):dW(m)}p=p.sibling}e:for(p=null,m=e;;){if(m.tag===5){if(p===null){p=m;try{n=m.stateNode,u?(o=n.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=m.stateNode,d=m.memoizedProps.style,r=d!=null&&d.hasOwnProperty("display")?d.display:null,s.style.display=PW("display",r))}catch(v){Ya(e,e.return,v)}}}else if(m.tag===6){if(p===null)try{m.stateNode.nodeValue=u?"":m.memoizedProps}catch(v){Ya(e,e.return,v)}}else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===e)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break e;for(;m.sibling===null;){if(m.return===null||m.return===e)break e;p===m&&(p=null),m=m.return}p===m&&(p=null),m.sibling.return=m.return,m=m.sibling}}break;case 19:Rn(a,e),vo(e),i&4&&sW(e);break;case 21:break;default:Rn(a,e),vo(e)}}function vo(e){var a=e.flags;if(a&2){try{e:{for(var t=e.return;t!==null;){if($E(t)){var i=t;break e}t=t.return}throw Error(ae(160))}switch(i.tag){case 5:var n=i.stateNode;i.flags&32&&(_c(n,""),i.flags&=-33);var o=rW(e);fT(e,o,n);break;case 3:case 4:var r=i.stateNode.containerInfo,s=rW(e);yT(e,s,r);break;default:throw Error(ae(161))}}catch(d){Ya(e,e.return,d)}e.flags&=-3}a&4096&&(e.flags&=-4097)}function _4(e,a,t){fe=e,eL(e,a,t)}function eL(e,a,t){for(var i=(e.mode&1)!==0;fe!==null;){var n=fe,o=n.child;if(n.tag===22&&i){var r=n.memoizedState!==null||ub;if(!r){var s=n.alternate,d=s!==null&&s.memoizedState!==null||Ht;s=ub;var u=Ht;if(ub=r,(Ht=d)&&!u)for(fe=n;fe!==null;)r=fe,d=r.child,r.tag===22&&r.memoizedState!==null?uW(n):d!==null?(d.return=r,fe=d):uW(n);for(;o!==null;)fe=o,eL(o,a,t),o=o.sibling;fe=n,ub=s,Ht=u}lW(e,a,t)}else(n.subtreeFlags&8772)!==0&&o!==null?(o.return=n,fe=o):lW(e,a,t)}}function lW(e){for(;fe!==null;){var a=fe;if((a.flags&8772)!==0){var t=a.alternate;try{if((a.flags&8772)!==0)switch(a.tag){case 0:case 11:case 15:Ht||ev(5,a);break;case 1:var i=a.stateNode;if(a.flags&4&&!Ht)if(t===null)i.componentDidMount();else{var n=a.elementType===a.type?t.memoizedProps:Zn(a.type,t.memoizedProps);i.componentDidUpdate(n,t.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=a.updateQueue;o!==null&&OG(a,o,i);break;case 3:var r=a.updateQueue;if(r!==null){if(t=null,a.child!==null)switch(a.child.tag){case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}OG(a,r,t)}break;case 5:var s=a.stateNode;if(t===null&&a.flags&4){t=s;var d=a.memoizedProps;switch(a.type){case"button":case"input":case"select":case"textarea":d.autoFocus&&t.focus();break;case"img":d.src&&(t.src=d.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(a.memoizedState===null){var u=a.alternate;if(u!==null){var p=u.memoizedState;if(p!==null){var m=p.dehydrated;m!==null&&Pc(m)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ae(163))}Ht||a.flags&512&&vT(a)}catch(g){Ya(a,a.return,g)}}if(a===e){fe=null;break}if(t=a.sibling,t!==null){t.return=a.return,fe=t;break}fe=a.return}}function dW(e){for(;fe!==null;){var a=fe;if(a===e){fe=null;break}var t=a.sibling;if(t!==null){t.return=a.return,fe=t;break}fe=a.return}}function uW(e){for(;fe!==null;){var a=fe;try{switch(a.tag){case 0:case 11:case 15:var t=a.return;try{ev(4,a)}catch(d){Ya(a,t,d)}break;case 1:var i=a.stateNode;if(typeof i.componentDidMount=="function"){var n=a.return;try{i.componentDidMount()}catch(d){Ya(a,n,d)}}var o=a.return;try{vT(a)}catch(d){Ya(a,o,d)}break;case 5:var r=a.return;try{vT(a)}catch(d){Ya(a,r,d)}}}catch(d){Ya(a,a.return,d)}if(a===e){fe=null;break}var s=a.sibling;if(s!==null){s.return=a.return,fe=s;break}fe=a.return}}var A4=Math.ceil,Rb=rr.ReactCurrentDispatcher,nP=rr.ReactCurrentOwner,pn=rr.ReactCurrentBatchConfig,oa=0,It=null,lt=null,Et=0,Ni=0,xu=gs(0),ct=0,Lc=null,Al=0,av=0,oP=0,vc=null,yi=null,rP=0,qu=1/0,$o=null,Zb=!1,_T=null,ls=null,pb=!1,ts=null,qb=0,yc=0,AT=null,yb=-1,fb=0;function mi(){return(oa&6)!==0?tt():yb!==-1?yb:yb=tt()}function ds(e){return(e.mode&1)===0?1:(oa&2)!==0&&Et!==0?Et&-Et:o4.transition!==null?(fb===0&&(fb=FW()),fb):(e=ka,e!==0||(e=window.event,e=e===void 0?16:UW(e.type)),e)}function On(e,a,t,i){if(50<yc)throw yc=0,AT=null,Error(ae(185));Mc(e,t,i),((oa&2)===0||e!==It)&&(e===It&&((oa&2)===0&&(av|=t),ct===4&&es(e,Et)),Ii(e,i),t===1&&oa===0&&(a.mode&1)===0&&(qu=tt()+500,$b&&ks()))}function Ii(e,a){var t=e.callbackNode;sY(e,a);var i=zb(e,e===It?Et:0);if(i===0)t!==null&&vG(t),e.callbackNode=null,e.callbackPriority=0;else if(a=i&-i,e.callbackPriority!==a){if(t!=null&&vG(t),a===1)e.tag===0?n4(pW.bind(null,e)):uE(pW.bind(null,e)),e4(function(){(oa&6)===0&&ks()}),t=null;else{switch(NW(i)){case 1:t=DT;break;case 4:t=LW;break;case 16:t=Pb;break;case 536870912:t=MW;break;default:t=Pb}t=lL(t,aL.bind(null,e))}e.callbackPriority=a,e.callbackNode=t}}function aL(e,a){if(yb=-1,fb=0,(oa&6)!==0)throw Error(ae(327));var t=e.callbackNode;if(Lu()&&e.callbackNode!==t)return null;var i=zb(e,e===It?Et:0);if(i===0)return null;if((i&30)!==0||(i&e.expiredLanes)!==0||a)a=Vb(e,i);else{a=i;var n=oa;oa|=2;var o=iL();(It!==e||Et!==a)&&($o=null,qu=tt()+500,bl(e,a));do try{P4();break}catch(s){tL(e,s)}while(!0);UT(),Rb.current=o,oa=n,lt!==null?a=0:(It=null,Et=0,a=ct)}if(a!==0){if(a===2&&(n=YI(e),n!==0&&(i=n,a=IT(e,n))),a===1)throw t=Lc,bl(e,0),es(e,i),Ii(e,tt()),t;if(a===6)es(e,i);else{if(n=e.current.alternate,(i&30)===0&&!I4(n)&&(a=Vb(e,i),a===2&&(o=YI(e),o!==0&&(i=o,a=IT(e,o))),a===1))throw t=Lc,bl(e,0),es(e,i),Ii(e,tt()),t;switch(e.finishedWork=n,e.finishedLanes=i,a){case 0:case 1:throw Error(ae(345));case 2:cl(e,yi,$o);break;case 3:if(es(e,i),(i&130023424)===i&&(a=rP+500-tt(),10<a)){if(zb(e,0)!==0)break;if(n=e.suspendedLanes,(n&i)!==i){mi(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=iT(cl.bind(null,e,yi,$o),a);break}cl(e,yi,$o);break;case 4:if(es(e,i),(i&4194240)===i)break;for(a=e.eventTimes,n=-1;0<i;){var r=31-Un(i);o=1<<r,r=a[r],r>n&&(n=r),i&=~o}if(i=n,i=tt()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*A4(i/1960))-i,10<i){e.timeoutHandle=iT(cl.bind(null,e,yi,$o),i);break}cl(e,yi,$o);break;case 5:cl(e,yi,$o);break;default:throw Error(ae(329))}}}return Ii(e,tt()),e.callbackNode===t?aL.bind(null,e):null}function IT(e,a){var t=vc;return e.current.memoizedState.isDehydrated&&(bl(e,a).flags|=256),e=Vb(e,a),e!==2&&(a=yi,yi=t,a!==null&&TT(a)),e}function TT(e){yi===null?yi=e:yi.push.apply(yi,e)}function I4(e){for(var a=e;;){if(a.flags&16384){var t=a.updateQueue;if(t!==null&&(t=t.stores,t!==null))for(var i=0;i<t.length;i++){var n=t[i],o=n.getSnapshot;n=n.value;try{if(!Kn(o(),n))return!1}catch{return!1}}}if(t=a.child,a.subtreeFlags&16384&&t!==null)t.return=a,a=t;else{if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function es(e,a){for(a&=~oP,a&=~av,e.suspendedLanes|=a,e.pingedLanes&=~a,e=e.expirationTimes;0<a;){var t=31-Un(a),i=1<<t;e[t]=-1,a&=~i}}function pW(e){if((oa&6)!==0)throw Error(ae(327));Lu();var a=zb(e,0);if((a&1)===0)return Ii(e,tt()),null;var t=Vb(e,a);if(e.tag!==0&&t===2){var i=YI(e);i!==0&&(a=i,t=IT(e,i))}if(t===1)throw t=Lc,bl(e,0),es(e,a),Ii(e,tt()),t;if(t===6)throw Error(ae(345));return e.finishedWork=e.current.alternate,e.finishedLanes=a,cl(e,yi,$o),Ii(e,tt()),null}function sP(e,a){var t=oa;oa|=1;try{return e(a)}finally{oa=t,oa===0&&(qu=tt()+500,$b&&ks())}}function Il(e){ts!==null&&ts.tag===0&&(oa&6)===0&&Lu();var a=oa;oa|=1;var t=pn.transition,i=ka;try{if(pn.transition=null,ka=1,e)return e()}finally{ka=i,pn.transition=t,oa=a,(oa&6)===0&&ks()}}function lP(){Ni=xu.current,za(xu)}function bl(e,a){e.finishedWork=null,e.finishedLanes=0;var t=e.timeoutHandle;if(t!==-1&&(e.timeoutHandle=-1,XY(t)),lt!==null)for(t=lt.return;t!==null;){var i=t;switch(ZT(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&Cb();break;case 3:Ru(),za(_i),za(Yt),$T();break;case 5:QT(i);break;case 4:Ru();break;case 13:za(Ra);break;case 19:za(Ra);break;case 10:OT(i.type._context);break;case 22:case 23:lP()}t=t.return}if(It=e,lt=e=us(e.current,null),Et=Ni=a,ct=0,Lc=null,oP=av=Al=0,yi=vc=null,kl!==null){for(a=0;a<kl.length;a++)if(t=kl[a],i=t.interleaved,i!==null){t.interleaved=null;var n=i.next,o=t.pending;if(o!==null){var r=o.next;o.next=n,i.next=r}t.pending=i}kl=null}return e}function tL(e,a){do{var t=lt;try{if(UT(),hb.current=Bb,Nb){for(var i=Za.memoizedState;i!==null;){var n=i.queue;n!==null&&(n.pending=null),i=i.next}Nb=!1}if(_l=0,At=mt=Za=null,hc=!1,Gc=0,nP.current=null,t===null||t.return===null){ct=1,Lc=a,lt=null;break}e:{var o=e,r=t.return,s=t,d=a;if(a=Et,s.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){var u=d,p=s,m=p.tag;if((p.mode&1)===0&&(m===0||m===11||m===15)){var g=p.alternate;g?(p.updateQueue=g.updateQueue,p.memoizedState=g.memoizedState,p.lanes=g.lanes):(p.updateQueue=null,p.memoizedState=null)}var b=JG(r);if(b!==null){b.flags&=-257,XG(b,r,s,o,a),b.mode&1&&$G(o,u,a),a=b,d=u;var f=a.updateQueue;if(f===null){var v=new Set;v.add(d),a.updateQueue=v}else f.add(d);break e}else{if((a&1)===0){$G(o,u,a),dP();break e}d=Error(ae(426))}}else if(Ea&&s.mode&1){var _=JG(r);if(_!==null){(_.flags&65536)===0&&(_.flags|=256),XG(_,r,s,o,a),qT(Zu(d,s));break e}}o=d=Zu(d,s),ct!==4&&(ct=2),vc===null?vc=[o]:vc.push(o),o=r;do{switch(o.tag){case 3:o.flags|=65536,a&=-a,o.lanes|=a;var h=NE(o,d,a);UG(o,h);break e;case 1:s=d;var k=o.type,y=o.stateNode;if((o.flags&128)===0&&(typeof k.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(ls===null||!ls.has(y)))){o.flags|=65536,a&=-a,o.lanes|=a;var I=BE(o,s,a);UG(o,I);break e}}o=o.return}while(o!==null)}oL(t)}catch(A){a=A,lt===t&&t!==null&&(lt=t=t.return);continue}break}while(!0)}function iL(){var e=Rb.current;return Rb.current=Bb,e===null?Bb:e}function dP(){(ct===0||ct===3||ct===2)&&(ct=4),It===null||(Al&268435455)===0&&(av&268435455)===0||es(It,Et)}function Vb(e,a){var t=oa;oa|=2;var i=iL();(It!==e||Et!==a)&&($o=null,bl(e,a));do try{T4();break}catch(n){tL(e,n)}while(!0);if(UT(),oa=t,Rb.current=i,lt!==null)throw Error(ae(261));return It=null,Et=0,ct}function T4(){for(;lt!==null;)nL(lt)}function P4(){for(;lt!==null&&!J2();)nL(lt)}function nL(e){var a=sL(e.alternate,e,Ni);e.memoizedProps=e.pendingProps,a===null?oL(e):lt=a,nP.current=null}function oL(e){var a=e;do{var t=a.alternate;if(e=a.return,(a.flags&32768)===0){if(t=b4(t,a,Ni),t!==null){lt=t;return}}else{if(t=v4(t,a),t!==null){t.flags&=32767,lt=t;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ct=6,lt=null;return}}if(a=a.sibling,a!==null){lt=a;return}lt=a=e}while(a!==null);ct===0&&(ct=5)}function cl(e,a,t){var i=ka,n=pn.transition;try{pn.transition=null,ka=1,z4(e,a,t,i)}finally{pn.transition=n,ka=i}return null}function z4(e,a,t,i){do Lu();while(ts!==null);if((oa&6)!==0)throw Error(ae(327));t=e.finishedWork;var n=e.finishedLanes;if(t===null)return null;if(e.finishedWork=null,e.finishedLanes=0,t===e.current)throw Error(ae(177));e.callbackNode=null,e.callbackPriority=0;var o=t.lanes|t.childLanes;if(lY(e,o),e===It&&(lt=It=null,Et=0),(t.subtreeFlags&2064)===0&&(t.flags&2064)===0||pb||(pb=!0,lL(Pb,function(){return Lu(),null})),o=(t.flags&15990)!==0,(t.subtreeFlags&15990)!==0||o){o=pn.transition,pn.transition=null;var r=ka;ka=1;var s=oa;oa|=4,nP.current=null,f4(e,t),XE(t,e),HY(aT),wb=!!eT,aT=eT=null,e.current=t,_4(t,e,n),X2(),oa=s,ka=r,pn.transition=o}else e.current=t;if(pb&&(pb=!1,ts=e,qb=n),o=e.pendingLanes,o===0&&(ls=null),tY(t.stateNode,i),Ii(e,tt()),a!==null)for(i=e.onRecoverableError,t=0;t<a.length;t++)n=a[t],i(n.value,{componentStack:n.stack,digest:n.digest});if(Zb)throw Zb=!1,e=_T,_T=null,e;return(qb&1)!==0&&e.tag!==0&&Lu(),o=e.pendingLanes,(o&1)!==0?e===AT?yc++:(yc=0,AT=e):yc=0,ks(),null}function Lu(){if(ts!==null){var e=NW(qb),a=pn.transition,t=ka;try{if(pn.transition=null,ka=16>e?16:e,ts===null)var i=!1;else{if(e=ts,ts=null,qb=0,(oa&6)!==0)throw Error(ae(331));var n=oa;for(oa|=4,fe=e.current;fe!==null;){var o=fe,r=o.child;if((fe.flags&16)!==0){var s=o.deletions;if(s!==null){for(var d=0;d<s.length;d++){var u=s[d];for(fe=u;fe!==null;){var p=fe;switch(p.tag){case 0:case 11:case 15:bc(8,p,o)}var m=p.child;if(m!==null)m.return=p,fe=m;else for(;fe!==null;){p=fe;var g=p.sibling,b=p.return;if(QE(p),p===u){fe=null;break}if(g!==null){g.return=b,fe=g;break}fe=b}}}var f=o.alternate;if(f!==null){var v=f.child;if(v!==null){f.child=null;do{var _=v.sibling;v.sibling=null,v=_}while(v!==null)}}fe=o}}if((o.subtreeFlags&2064)!==0&&r!==null)r.return=o,fe=r;else e:for(;fe!==null;){if(o=fe,(o.flags&2048)!==0)switch(o.tag){case 0:case 11:case 15:bc(9,o,o.return)}var h=o.sibling;if(h!==null){h.return=o.return,fe=h;break e}fe=o.return}}var k=e.current;for(fe=k;fe!==null;){r=fe;var y=r.child;if((r.subtreeFlags&2064)!==0&&y!==null)y.return=r,fe=y;else e:for(r=k;fe!==null;){if(s=fe,(s.flags&2048)!==0)try{switch(s.tag){case 0:case 11:case 15:ev(9,s)}}catch(A){Ya(s,s.return,A)}if(s===r){fe=null;break e}var I=s.sibling;if(I!==null){I.return=s.return,fe=I;break e}fe=s.return}}if(oa=n,ks(),_o&&typeof _o.onPostCommitFiberRoot=="function")try{_o.onPostCommitFiberRoot(Ob,e)}catch{}i=!0}return i}finally{ka=t,pn.transition=a}}return!1}function mW(e,a,t){a=Zu(t,a),a=NE(e,a,1),e=ss(e,a,1),a=mi(),e!==null&&(Mc(e,1,a),Ii(e,a))}function Ya(e,a,t){if(e.tag===3)mW(e,e,t);else for(;a!==null;){if(a.tag===3){mW(a,e,t);break}else if(a.tag===1){var i=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(ls===null||!ls.has(i))){e=Zu(t,e),e=BE(a,e,1),a=ss(a,e,1),e=mi(),a!==null&&(Mc(a,1,e),Ii(a,e));break}}a=a.return}}function w4(e,a,t){var i=e.pingCache;i!==null&&i.delete(a),a=mi(),e.pingedLanes|=e.suspendedLanes&t,It===e&&(Et&t)===t&&(ct===4||ct===3&&(Et&130023424)===Et&&500>tt()-rP?bl(e,0):oP|=t),Ii(e,a)}function rL(e,a){a===0&&((e.mode&1)===0?a=1:(a=$h,$h<<=1,($h&130023424)===0&&($h=4194304)));var t=mi();e=nr(e,a),e!==null&&(Mc(e,a,t),Ii(e,t))}function S4(e){var a=e.memoizedState,t=0;a!==null&&(t=a.retryLane),rL(e,t)}function j4(e,a){var t=0;switch(e.tag){case 13:var i=e.stateNode,n=e.memoizedState;n!==null&&(t=n.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(ae(314))}i!==null&&i.delete(a),rL(e,t)}var sL;sL=function(e,a,t){if(e!==null)if(e.memoizedProps!==a.pendingProps||_i.current)fi=!0;else{if((e.lanes&t)===0&&(a.flags&128)===0)return fi=!1,h4(e,a,t);fi=(e.flags&131072)!==0}else fi=!1,Ea&&(a.flags&1048576)!==0&&pE(a,Wb,a.index);switch(a.lanes=0,a.tag){case 2:var i=a.type;vb(e,a),e=a.pendingProps;var n=Fu(a,Yt.current);Eu(a,t),n=XT(null,a,i,e,n,t);var o=eP();return a.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,Ai(i)?(o=!0,Db(a)):o=!1,a.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,HT(a),n.updater=Xb,a.stateNode=n,n._reactInternals=a,uT(a,i,e,t),a=cT(null,a,i,!0,o,t)):(a.tag=0,Ea&&o&&RT(a),pi(null,a,n,t),a=a.child),a;case 16:i=a.elementType;e:{switch(vb(e,a),e=a.pendingProps,n=i._init,i=n(i._payload),a.type=i,n=a.tag=C4(i),e=Zn(i,e),n){case 0:a=mT(null,a,i,e,t);break e;case 1:a=tW(null,a,i,e,t);break e;case 11:a=eW(null,a,i,e,t);break e;case 14:a=aW(null,a,i,Zn(i.type,e),t);break e}throw Error(ae(306,i,""))}return a;case 0:return i=a.type,n=a.pendingProps,n=a.elementType===i?n:Zn(i,n),mT(e,a,i,n,t);case 1:return i=a.type,n=a.pendingProps,n=a.elementType===i?n:Zn(i,n),tW(e,a,i,n,t);case 3:e:{if(VE(a),e===null)throw Error(ae(387));i=a.pendingProps,o=a.memoizedState,n=o.element,bE(e,a),Mb(a,i,null,t);var r=a.memoizedState;if(i=r.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:r.cache,pendingSuspenseBoundaries:r.pendingSuspenseBoundaries,transitions:r.transitions},a.updateQueue.baseState=o,a.memoizedState=o,a.flags&256){n=Zu(Error(ae(423)),a),a=iW(e,a,i,t,n);break e}else if(i!==n){n=Zu(Error(ae(424)),a),a=iW(e,a,i,t,n);break e}else for(Bi=rs(a.stateNode.containerInfo.firstChild),Ri=a,Ea=!0,Vn=null,t=kE(a,null,i,t),a.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(Nu(),i===n){a=or(e,a,t);break e}pi(e,a,i,t)}a=a.child}return a;case 5:return vE(a),e===null&&sT(a),i=a.type,n=a.pendingProps,o=e!==null?e.memoizedProps:null,r=n.children,tT(i,n)?r=null:o!==null&&tT(i,o)&&(a.flags|=32),qE(e,a),pi(e,a,r,t),a.child;case 6:return e===null&&sT(a),null;case 13:return UE(e,a,t);case 4:return YT(a,a.stateNode.containerInfo),i=a.pendingProps,e===null?a.child=Bu(a,null,i,t):pi(e,a,i,t),a.child;case 11:return i=a.type,n=a.pendingProps,n=a.elementType===i?n:Zn(i,n),eW(e,a,i,n,t);case 7:return pi(e,a,a.pendingProps,t),a.child;case 8:return pi(e,a,a.pendingProps.children,t),a.child;case 12:return pi(e,a,a.pendingProps.children,t),a.child;case 10:e:{if(i=a.type._context,n=a.pendingProps,o=a.memoizedProps,r=n.value,Ta(Eb,i._currentValue),i._currentValue=r,o!==null)if(Kn(o.value,r)){if(o.children===n.children&&!_i.current){a=or(e,a,t);break e}}else for(o=a.child,o!==null&&(o.return=a);o!==null;){var s=o.dependencies;if(s!==null){r=o.child;for(var d=s.firstContext;d!==null;){if(d.context===i){if(o.tag===1){d=ar(-1,t&-t),d.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var p=u.pending;p===null?d.next=d:(d.next=p.next,p.next=d),u.pending=d}}o.lanes|=t,d=o.alternate,d!==null&&(d.lanes|=t),lT(o.return,t,a),s.lanes|=t;break}d=d.next}}else if(o.tag===10)r=o.type===a.type?null:o.child;else if(o.tag===18){if(r=o.return,r===null)throw Error(ae(341));r.lanes|=t,s=r.alternate,s!==null&&(s.lanes|=t),lT(r,t,a),r=o.sibling}else r=o.child;if(r!==null)r.return=o;else for(r=o;r!==null;){if(r===a){r=null;break}if(o=r.sibling,o!==null){o.return=r.return,r=o;break}r=r.return}o=r}pi(e,a,n.children,t),a=a.child}return a;case 9:return n=a.type,i=a.pendingProps.children,Eu(a,t),n=mn(n),i=i(n),a.flags|=1,pi(e,a,i,t),a.child;case 14:return i=a.type,n=Zn(i,a.pendingProps),n=Zn(i.type,n),aW(e,a,i,n,t);case 15:return RE(e,a,a.type,a.pendingProps,t);case 17:return i=a.type,n=a.pendingProps,n=a.elementType===i?n:Zn(i,n),vb(e,a),a.tag=1,Ai(i)?(e=!0,Db(a)):e=!1,Eu(a,t),FE(a,i,n),uT(a,i,n,t),cT(null,a,i,!0,e,t);case 19:return OE(e,a,t);case 22:return ZE(e,a,t)}throw Error(ae(156,a.tag))};function lL(e,a){return EW(e,a)}function x4(e,a,t,i){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function un(e,a,t,i){return new x4(e,a,t,i)}function uP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function C4(e){if(typeof e=="function")return uP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===jT)return 11;if(e===xT)return 14}return 2}function us(e,a){var t=e.alternate;return t===null?(t=un(e.tag,a,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=a,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,a=e.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function _b(e,a,t,i,n,o){var r=2;if(i=e,typeof e=="function")uP(e)&&(r=1);else if(typeof e=="string")r=5;else e:switch(e){case fu:return vl(t.children,n,o,a);case ST:r=8,n|=8;break;case WI:return e=un(12,t,a,n|2),e.elementType=WI,e.lanes=o,e;case EI:return e=un(13,t,a,n),e.elementType=EI,e.lanes=o,e;case LI:return e=un(19,t,a,n),e.elementType=LI,e.lanes=o,e;case vW:return tv(t,n,o,a);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hW:r=10;break e;case bW:r=9;break e;case jT:r=11;break e;case xT:r=14;break e;case $r:r=16,i=null;break e}throw Error(ae(130,e==null?e:typeof e,""))}return a=un(r,t,a,n),a.elementType=e,a.type=i,a.lanes=o,a}function vl(e,a,t,i){return e=un(7,e,i,a),e.lanes=t,e}function tv(e,a,t,i){return e=un(22,e,i,a),e.elementType=vW,e.lanes=t,e.stateNode={isHidden:!1},e}function CI(e,a,t){return e=un(6,e,null,a),e.lanes=t,e}function DI(e,a,t){return a=un(4,e.children!==null?e.children:[],e.key,a),a.lanes=t,a.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},a}function D4(e,a,t,i,n){this.tag=a,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=kI(0),this.expirationTimes=kI(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kI(0),this.identifierPrefix=i,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function pP(e,a,t,i,n,o,r,s,d){return e=new D4(e,a,t,s,d),a===1?(a=1,o===!0&&(a|=8)):a=0,o=un(3,null,null,a),e.current=o,o.stateNode=e,o.memoizedState={element:i,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},HT(o),e}function G4(e,a,t){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:yu,key:i==null?null:""+i,children:e,containerInfo:a,implementation:t}}function dL(e){if(!e)return ms;e=e._reactInternals;e:{if(Pl(e)!==e||e.tag!==1)throw Error(ae(170));var a=e;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(Ai(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(a!==null);throw Error(ae(171))}if(e.tag===1){var t=e.type;if(Ai(t))return dE(e,t,a)}return a}function uL(e,a,t,i,n,o,r,s,d){return e=pP(t,i,!0,e,n,o,r,s,d),e.context=dL(null),t=e.current,i=mi(),n=ds(t),o=ar(i,n),o.callback=a??null,ss(t,o,n),e.current.lanes=n,Mc(e,n,i),Ii(e,i),e}function iv(e,a,t,i){var n=a.current,o=mi(),r=ds(n);return t=dL(t),a.context===null?a.context=t:a.pendingContext=t,a=ar(o,r),a.payload={element:e},i=i===void 0?null:i,i!==null&&(a.callback=i),e=ss(n,a,r),e!==null&&(On(e,n,r,o),kb(e,n,r)),r}function Ub(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function cW(e,a){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var t=e.retryLane;e.retryLane=t!==0&&t<a?t:a}}function mP(e,a){cW(e,a),(e=e.alternate)&&cW(e,a)}function W4(){return null}var pL=typeof reportError=="function"?reportError:function(e){console.error(e)};function cP(e){this._internalRoot=e}nv.prototype.render=cP.prototype.render=function(e){var a=this._internalRoot;if(a===null)throw Error(ae(409));iv(e,a,null,null)};nv.prototype.unmount=cP.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var a=e.containerInfo;Il(function(){iv(null,e,null,null)}),a[ir]=null}};function nv(e){this._internalRoot=e}nv.prototype.unstable_scheduleHydration=function(e){if(e){var a=ZW();e={blockedOn:null,target:e,priority:a};for(var t=0;t<Xr.length&&a!==0&&a<Xr[t].priority;t++);Xr.splice(t,0,e),t===0&&VW(e)}};function gP(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ov(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function gW(){}function E4(e,a,t,i,n){if(n){if(typeof i=="function"){var o=i;i=function(){var u=Ub(r);o.call(u)}}var r=uL(a,i,e,0,null,!1,!1,"",gW);return e._reactRootContainer=r,e[ir]=r.current,Sc(e.nodeType===8?e.parentNode:e),Il(),r}for(;n=e.lastChild;)e.removeChild(n);if(typeof i=="function"){var s=i;i=function(){var u=Ub(d);s.call(u)}}var d=pP(e,0,!1,null,null,!1,!1,"",gW);return e._reactRootContainer=d,e[ir]=d.current,Sc(e.nodeType===8?e.parentNode:e),Il(function(){iv(a,d,t,i)}),d}function rv(e,a,t,i,n){var o=t._reactRootContainer;if(o){var r=o;if(typeof n=="function"){var s=n;n=function(){var d=Ub(r);s.call(d)}}iv(a,r,e,n)}else r=E4(t,a,e,n,i);return Ub(r)}BW=function(e){switch(e.tag){case 3:var a=e.stateNode;if(a.current.memoizedState.isDehydrated){var t=dc(a.pendingLanes);t!==0&&(GT(a,t|1),Ii(a,tt()),(oa&6)===0&&(qu=tt()+500,ks()))}break;case 13:Il(function(){var i=nr(e,1);if(i!==null){var n=mi();On(i,e,1,n)}}),mP(e,1)}};WT=function(e){if(e.tag===13){var a=nr(e,134217728);if(a!==null){var t=mi();On(a,e,134217728,t)}mP(e,134217728)}};RW=function(e){if(e.tag===13){var a=ds(e),t=nr(e,a);if(t!==null){var i=mi();On(t,e,a,i)}mP(e,a)}};ZW=function(){return ka};qW=function(e,a){var t=ka;try{return ka=e,a()}finally{ka=t}};OI=function(e,a,t){switch(a){case"input":if(NI(e,t),a=t.name,t.type==="radio"&&a!=null){for(t=e;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),a=0;a<t.length;a++){var i=t[a];if(i!==e&&i.form===e.form){var n=Qb(i);if(!n)throw Error(ae(90));fW(i),NI(i,n)}}}break;case"textarea":AW(e,t);break;case"select":a=t.value,a!=null&&Cu(e,!!t.multiple,a,!1)}};jW=sP;xW=Il;var L4={usingClientEntryPoint:!1,Events:[Nc,Tu,Qb,wW,SW,sP]},oc={findFiberByHostInstance:gl,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},M4={bundleType:oc.bundleType,version:oc.version,rendererPackageName:oc.rendererPackageName,rendererConfig:oc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:rr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=GW(e),e===null?null:e.stateNode},findFiberByHostInstance:oc.findFiberByHostInstance||W4,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(rc=__REACT_DEVTOOLS_GLOBAL_HOOK__,!rc.isDisabled&&rc.supportsFiber))try{Ob=rc.inject(M4),_o=rc}catch{}var rc;Vi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L4;Vi.createPortal=function(e,a){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!gP(a))throw Error(ae(200));return G4(e,a,null,t)};Vi.createRoot=function(e,a){if(!gP(e))throw Error(ae(299));var t=!1,i="",n=pL;return a!=null&&(a.unstable_strictMode===!0&&(t=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onRecoverableError!==void 0&&(n=a.onRecoverableError)),a=pP(e,1,!1,null,null,t,!1,i,n),e[ir]=a.current,Sc(e.nodeType===8?e.parentNode:e),new cP(a)};Vi.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var a=e._reactInternals;if(a===void 0)throw typeof e.render=="function"?Error(ae(188)):(e=Object.keys(e).join(","),Error(ae(268,e)));return e=GW(a),e=e===null?null:e.stateNode,e};Vi.flushSync=function(e){return Il(e)};Vi.hydrate=function(e,a,t){if(!ov(a))throw Error(ae(200));return rv(null,e,a,!0,t)};Vi.hydrateRoot=function(e,a,t){if(!gP(e))throw Error(ae(405));var i=t!=null&&t.hydratedSources||null,n=!1,o="",r=pL;if(t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(r=t.onRecoverableError)),a=uL(a,null,e,1,t??null,n,!1,o,r),e[ir]=a.current,Sc(e),i)for(e=0;e<i.length;e++)t=i[e],n=t._getVersion,n=n(t._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[t,n]:a.mutableSourceEagerHydrationData.push(t,n);return new nv(a)};Vi.render=function(e,a,t){if(!ov(a))throw Error(ae(200));return rv(null,e,a,!1,t)};Vi.unmountComponentAtNode=function(e){if(!ov(e))throw Error(ae(40));return e._reactRootContainer?(Il(function(){rv(null,null,e,!1,function(){e._reactRootContainer=null,e[ir]=null})}),!0):!1};Vi.unstable_batchedUpdates=sP;Vi.unstable_renderSubtreeIntoContainer=function(e,a,t,i){if(!ov(t))throw Error(ae(200));if(e==null||e._reactInternals===void 0)throw Error(ae(38));return rv(e,a,t,!1,i)};Vi.version="18.3.1-next-f1338f8080-20240426"});var kP=da((Ige,gL)=>{"use strict";l();function cL(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cL)}catch(e){console.error(e)}}cL(),gL.exports=mL()});var VL={};Wi(VL,{default:()=>RP});var j5,RP,hv=L(()=>{l();ih();j5=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,RP=th(function(e){return j5.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})});var vs,x5,C5,D5,UL,OL,G5,KL,HL=L(()=>{l();je();mu();Bm();qm();Fm();vs=S(R());hv();x5=!1,C5=RP,D5=function(a){return a!=="theme"},UL=function(a){return typeof a=="string"&&a.charCodeAt(0)>96?C5:D5},OL=function(a,t,i){var n;if(t){var o=t.shouldForwardProp;n=a.__emotion_forwardProp&&o?function(r){return a.__emotion_forwardProp(r)&&o(r)}:o}return typeof n!="function"&&i&&(n=a.__emotion_forwardProp),n},G5=function(a){var t=a.cache,i=a.serialized,n=a.isStringTag;return du(t,i,n),Zm(function(){return uu(t,i,n)}),null},KL=function e(a,t){var i=a.__emotion_real===a,n=i&&a.__emotion_base||a,o,r;t!==void 0&&(o=t.label,r=t.target);var s=OL(a,t,i),d=s||UL(n),u=!d("as");return function(){var p=arguments,m=i&&a.__emotion_styles!==void 0?a.__emotion_styles.slice(0):[];if(o!==void 0&&m.push("label:"+o+";"),p[0]==null||p[0].raw===void 0)m.push.apply(m,p);else{var g=p[0];m.push(g[0]);for(var b=p.length,f=1;f<b;f++)m.push(p[f],g[f])}var v=pu(function(_,h,k){var y=u&&_.as||n,I="",A=[],T=_;if(_.theme==null){T={};for(var P in _)T[P]=_[P];T.theme=vs.useContext(on)}typeof _.className=="string"?I=Mm(h.registered,A,_.className):_.className!=null&&(I=_.className+" ");var z=al(m.concat(A),h.registered,T);I+=h.key+"-"+z.name,r!==void 0&&(I+=" "+r);var D=u&&s===void 0?UL(y):d,C={};for(var W in _)u&&W==="as"||D(W)&&(C[W]=_[W]);return C.className=I,k&&(C.ref=k),vs.createElement(vs.Fragment,null,vs.createElement(G5,{cache:h,serialized:z,isStringTag:typeof y=="string"}),vs.createElement(y,C))});return v.displayName=o!==void 0?o:"Styled("+(typeof n=="string"?n:n.displayName||n.name||"Component")+")",v.defaultProps=a.defaultProps,v.__emotion_real=v,v.__emotion_base=n,v.__emotion_styles=m,v.__emotion_forwardProp=s,Object.defineProperty(v,"toString",{value:function(){return r===void 0&&x5?"NO_COMPONENT_SELECTOR":"."+r}}),v.withComponent=function(_,h){var k=e(_,w({},t,h,{shouldForwardProp:OL(v,h,!0)}));return k.apply(void 0,m)},v}}});var I_e,W5,bv,YL=L(()=>{l();HL();je();Bm();qm();Fm();I_e=S(R());hv();W5=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],bv=KL.bind(null);W5.forEach(function(e){bv[e]=bv(e)})});function Kc(e){let{injectFirst:a,children:t}=e;return a&&ZP?(0,QL.jsx)(Vm,{value:ZP,children:t}):t}var w_e,QL,ZP,$L=L(()=>{"use client";l();w_e=S(R());mu();Em();QL=S(ne());typeof document=="object"&&(ZP=su({key:"css",prepend:!0}))});var JL=L(()=>{"use client";l();$L()});function E5(e){return e==null||Object.keys(e).length===0}function ys(e){let{styles:a,defaultTheme:t={}}=e;return(0,XL.jsx)(fC,{styles:typeof a=="function"?n=>a(E5(n)?t:n):a})}var E_e,XL,eM=L(()=>{"use client";l();E_e=S(R());mu();XL=S(ne())});var aM=L(()=>{"use client";l();eM()});var tM={};Wi(tM,{GlobalStyles:()=>ys,StyledEngineProvider:()=>Kc,ThemeContext:()=>on,css:()=>ko,default:()=>ep,internal_processStyles:()=>qP,keyframes:()=>Ln});function ep(e,a){return bv(e,a)}var qP,fs=L(()=>{"use client";l();YL();mu();JL();aM();qP=(e,a)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=a(e.__emotion_styles))}});function _s(e){let{values:a={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:t="px",step:i=5}=e,n=Aa(e,L5),o=M5(a),r=Object.keys(o);function s(g){return`@media (min-width:${typeof a[g]=="number"?a[g]:g}${t})`}function d(g){return`@media (max-width:${(typeof a[g]=="number"?a[g]:g)-i/100}${t})`}function u(g,b){let f=r.indexOf(b);return`@media (min-width:${typeof a[g]=="number"?a[g]:g}${t}) and (max-width:${(f!==-1&&typeof a[r[f]]=="number"?a[r[f]]:b)-i/100}${t})`}function p(g){return r.indexOf(g)+1<r.length?u(g,r[r.indexOf(g)+1]):s(g)}function m(g){let b=r.indexOf(g);return b===0?s(r[1]):b===r.length-1?d(r[b]):u(g,r[r.indexOf(g)+1]).replace("@media","@media not all and")}return H({keys:r,values:o,up:s,down:d,between:u,only:p,not:m,unit:t},n)}var L5,M5,vv=L(()=>{l();rn();va();L5=["values","unit","step"],M5=e=>{let a=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return a.sort((t,i)=>t.val-i.val),a.reduce((t,i)=>H({},t,{[i.key]:i.val}),{})}});var F5,iM,nM=L(()=>{l();F5={borderRadius:4},iM=F5});function N5(e,a){return a?la(e,a,{clone:!1}):e}var As,yv=L(()=>{l();bi();As=N5});function zt(e,a,t){let i=e.theme||{};if(Array.isArray(a)){let o=i.breakpoints||oM;return a.reduce((r,s,d)=>(r[o.up(o.keys[d])]=t(a[d]),r),{})}if(typeof a=="object"){let o=i.breakpoints||oM;return Object.keys(a).reduce((r,s)=>{if(Object.keys(o.values||fv).indexOf(s)!==-1){let d=o.up(s);r[d]=t(a[s],s)}else{let d=s;r[d]=a[d]}return r},{})}return t(a)}function VP(e={}){var a;return((a=e.keys)==null?void 0:a.reduce((i,n)=>{let o=e.up(n);return i[o]={},i},{}))||{}}function UP(e,a){return e.reduce((t,i)=>{let n=t[i];return(!n||Object.keys(n).length===0)&&delete t[i],t},a)}function rM(e,...a){let t=VP(e),i=[t,...a].reduce((n,o)=>la(n,o),{});return UP(Object.keys(t),i)}function B5(e,a){if(typeof e!="object")return{};let t={},i=Object.keys(a);return Array.isArray(e)?i.forEach((n,o)=>{o<e.length&&(t[n]=!0)}):i.forEach(n=>{e[n]!=null&&(t[n]=!0)}),t}function _v({values:e,breakpoints:a,base:t}){let i=t||B5(e,a),n=Object.keys(i);if(n.length===0)return e;let o;return n.reduce((r,s,d)=>(Array.isArray(e)?(r[s]=e[d]!=null?e[d]:e[o],o=d):typeof e=="object"?(r[s]=e[s]!=null?e[s]:e[o],o=s):r[s]=e,r),{})}var fv,oM,Is=L(()=>{l();va();bi();fv={xs:0,sm:600,md:900,lg:1200,xl:1536},oM={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${fv[e]}px)`}});function ap(e,a,t=!0){if(!a||typeof a!="string")return null;if(e&&e.vars&&t){let i=`vars.${a}`.split(".").reduce((n,o)=>n&&n[o]?n[o]:null,e);if(i!=null)return i}return a.split(".").reduce((i,n)=>i&&i[n]!=null?i[n]:null,e)}function Hc(e,a,t,i=t){let n;return typeof e=="function"?n=e(t):Array.isArray(e)?n=e[t]||i:n=ap(e,t)||i,a&&(n=a(n,i,e)),n}function R5(e){let{prop:a,cssProperty:t=e.prop,themeKey:i,transform:n}=e,o=r=>{if(r[a]==null)return null;let s=r[a],d=r.theme,u=ap(d,i)||{};return zt(r,s,m=>{let g=Hc(u,n,m);return m===g&&typeof m=="string"&&(g=Hc(u,n,`${a}${m==="default"?"":he(m)}`,m)),t===!1?g:{[t]:g}})};return o.propTypes={},o.filterProps=[a],o}var Sa,Wl=L(()=>{l();cu();Is();Sa=R5});function OP(e){let a={};return t=>(a[t]===void 0&&(a[t]=e(t)),a[t])}var sM=L(()=>{l()});function El(e,a,t,i){var n;let o=(n=ap(e,a,!1))!=null?n:t;return typeof o=="number"?r=>typeof r=="string"?r:o*r:Array.isArray(o)?r=>typeof r=="string"?r:o[r]:typeof o=="function"?o:()=>{}}function Yc(e){return El(e,"spacing",8,"spacing")}function Io(e,a){if(typeof a=="string"||a==null)return a;let t=Math.abs(a),i=e(t);return a>=0?i:typeof i=="number"?-i:`-${i}`}function U5(e,a){return t=>e.reduce((i,n)=>(i[n]=Io(a,t),i),{})}function O5(e,a,t,i){if(a.indexOf(t)===-1)return null;let n=V5(t),o=U5(n,i),r=e[t];return zt(e,r,o)}function YP(e,a){let t=Yc(e.theme);return Object.keys(e).map(i=>O5(e,a,i,t)).reduce(As,{})}function Va(e){return YP(e,KP)}function Ua(e){return YP(e,HP)}function uM(e){return YP(e,dM)}var Z5,q5,lM,V5,KP,HP,dM,Ll=L(()=>{l();Is();Wl();yv();sM();Z5={m:"margin",p:"padding"},q5={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},lM={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},V5=OP(e=>{if(e.length>2)if(lM[e])e=lM[e];else return[e];let[a,t]=e.split(""),i=Z5[a],n=q5[t]||"";return Array.isArray(n)?n.map(o=>i+o):[i+n]}),KP=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],HP=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],dM=[...KP,...HP];Va.propTypes={};Va.filterProps=KP;Ua.propTypes={};Ua.filterProps=HP;uM.propTypes={};uM.filterProps=dM});function tp(e=8){if(e.mui)return e;let a=Yc({spacing:e}),t=(...i)=>(i.length===0?[1]:i).map(o=>{let r=a(o);return typeof r=="number"?`${r}px`:r}).join(" ");return t.mui=!0,t}var QP=L(()=>{l();Ll()});function K5(...e){let a=e.reduce((i,n)=>(n.filterProps.forEach(o=>{i[o]=n}),i),{}),t=i=>Object.keys(i).reduce((n,o)=>a[o]?As(n,a[o](i)):n,{});return t.propTypes={},t.filterProps=e.reduce((i,n)=>i.concat(n.filterProps),[]),t}var Ts,Qc=L(()=>{l();yv();Ts=K5});function Ui(e){return typeof e!="number"?e:`${e}px solid`}function yn(e,a){return Sa({prop:e,themeKey:"borders",transform:a})}var H5,Y5,Q5,$5,J5,X5,e3,a3,t3,i3,n3,o3,$c,SAe,$P=L(()=>{l();Wl();Qc();Ll();Is();H5=yn("border",Ui),Y5=yn("borderTop",Ui),Q5=yn("borderRight",Ui),$5=yn("borderBottom",Ui),J5=yn("borderLeft",Ui),X5=yn("borderColor"),e3=yn("borderTopColor"),a3=yn("borderRightColor"),t3=yn("borderBottomColor"),i3=yn("borderLeftColor"),n3=yn("outline",Ui),o3=yn("outlineColor"),$c=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let a=El(e.theme,"shape.borderRadius",4,"borderRadius"),t=i=>({borderRadius:Io(a,i)});return zt(e,e.borderRadius,t)}return null};$c.propTypes={};$c.filterProps=["borderRadius"];SAe=Ts(H5,Y5,Q5,$5,J5,X5,e3,a3,t3,i3,$c,n3,o3)});var Jc,Xc,eg,r3,s3,l3,d3,u3,p3,m3,c3,g3,EAe,JP=L(()=>{l();Wl();Qc();Ll();Is();Jc=e=>{if(e.gap!==void 0&&e.gap!==null){let a=El(e.theme,"spacing",8,"gap"),t=i=>({gap:Io(a,i)});return zt(e,e.gap,t)}return null};Jc.propTypes={};Jc.filterProps=["gap"];Xc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let a=El(e.theme,"spacing",8,"columnGap"),t=i=>({columnGap:Io(a,i)});return zt(e,e.columnGap,t)}return null};Xc.propTypes={};Xc.filterProps=["columnGap"];eg=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let a=El(e.theme,"spacing",8,"rowGap"),t=i=>({rowGap:Io(a,i)});return zt(e,e.rowGap,t)}return null};eg.propTypes={};eg.filterProps=["rowGap"];r3=Sa({prop:"gridColumn"}),s3=Sa({prop:"gridRow"}),l3=Sa({prop:"gridAutoFlow"}),d3=Sa({prop:"gridAutoColumns"}),u3=Sa({prop:"gridAutoRows"}),p3=Sa({prop:"gridTemplateColumns"}),m3=Sa({prop:"gridTemplateRows"}),c3=Sa({prop:"gridTemplateAreas"}),g3=Sa({prop:"gridArea"}),EAe=Ts(Jc,Xc,eg,r3,s3,l3,d3,u3,p3,m3,c3,g3)});function Ml(e,a){return a==="grey"?a:e}var k3,h3,b3,BAe,XP=L(()=>{l();Wl();Qc();k3=Sa({prop:"color",themeKey:"palette",transform:Ml}),h3=Sa({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ml}),b3=Sa({prop:"backgroundColor",themeKey:"palette",transform:Ml}),BAe=Ts(k3,h3,b3)});function Ti(e){return e<=1&&e!==0?`${e*100}%`:e}var v3,Av,y3,f3,_3,A3,OAe,KAe,I3,HAe,ez=L(()=>{l();Wl();Qc();Is();v3=Sa({prop:"width",transform:Ti}),Av=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){let a=t=>{var i,n;let o=((i=e.theme)==null||(i=i.breakpoints)==null||(i=i.values)==null?void 0:i[t])||fv[t];return o?((n=e.theme)==null||(n=n.breakpoints)==null?void 0:n.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Ti(t)}};return zt(e,e.maxWidth,a)}return null};Av.filterProps=["maxWidth"];y3=Sa({prop:"minWidth",transform:Ti}),f3=Sa({prop:"height",transform:Ti}),_3=Sa({prop:"maxHeight",transform:Ti}),A3=Sa({prop:"minHeight",transform:Ti}),OAe=Sa({prop:"size",cssProperty:"width",transform:Ti}),KAe=Sa({prop:"size",cssProperty:"height",transform:Ti}),I3=Sa({prop:"boxSizing"}),HAe=Ts(v3,Av,y3,f3,_3,A3,I3)});var T3,Oi,ag=L(()=>{l();Ll();$P();JP();XP();ez();T3={border:{themeKey:"borders",transform:Ui},borderTop:{themeKey:"borders",transform:Ui},borderRight:{themeKey:"borders",transform:Ui},borderBottom:{themeKey:"borders",transform:Ui},borderLeft:{themeKey:"borders",transform:Ui},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ui},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:$c},color:{themeKey:"palette",transform:Ml},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ml},backgroundColor:{themeKey:"palette",transform:Ml},p:{style:Ua},pt:{style:Ua},pr:{style:Ua},pb:{style:Ua},pl:{style:Ua},px:{style:Ua},py:{style:Ua},padding:{style:Ua},paddingTop:{style:Ua},paddingRight:{style:Ua},paddingBottom:{style:Ua},paddingLeft:{style:Ua},paddingX:{style:Ua},paddingY:{style:Ua},paddingInline:{style:Ua},paddingInlineStart:{style:Ua},paddingInlineEnd:{style:Ua},paddingBlock:{style:Ua},paddingBlockStart:{style:Ua},paddingBlockEnd:{style:Ua},m:{style:Va},mt:{style:Va},mr:{style:Va},mb:{style:Va},ml:{style:Va},mx:{style:Va},my:{style:Va},margin:{style:Va},marginTop:{style:Va},marginRight:{style:Va},marginBottom:{style:Va},marginLeft:{style:Va},marginX:{style:Va},marginY:{style:Va},marginInline:{style:Va},marginInlineStart:{style:Va},marginInlineEnd:{style:Va},marginBlock:{style:Va},marginBlockStart:{style:Va},marginBlockEnd:{style:Va},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Jc},rowGap:{style:eg},columnGap:{style:Xc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ti},maxWidth:{style:Av},minWidth:{transform:Ti},height:{transform:Ti},maxHeight:{transform:Ti},minHeight:{transform:Ti},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Oi=T3});function P3(...e){let a=e.reduce((i,n)=>i.concat(Object.keys(n)),[]),t=new Set(a);return e.every(i=>t.size===Object.keys(i).length)}function z3(e,a){return typeof e=="function"?e(a):e}function Iv(){function e(t,i,n,o){let r={[t]:i,theme:n},s=o[t];if(!s)return{[t]:i};let{cssProperty:d=t,themeKey:u,transform:p,style:m}=s;if(i==null)return null;if(u==="typography"&&i==="inherit")return{[t]:i};let g=ap(n,u)||{};return m?m(r):zt(r,i,f=>{let v=Hc(g,p,f);return f===v&&typeof f=="string"&&(v=Hc(g,p,`${t}${f==="default"?"":he(f)}`,f)),d===!1?v:{[d]:v}})}function a(t){var i;let{sx:n,theme:o={}}=t||{};if(!n)return null;let r=(i=o.unstable_sxConfig)!=null?i:Oi;function s(d){let u=d;if(typeof d=="function")u=d(o);else if(typeof d!="object")return d;if(!u)return null;let p=VP(o.breakpoints),m=Object.keys(p),g=p;return Object.keys(u).forEach(b=>{let f=z3(u[b],o);if(f!=null)if(typeof f=="object")if(r[b])g=As(g,e(b,f,o,r));else{let v=zt({theme:o},f,_=>({[b]:_}));P3(v,f)?g[b]=a({sx:f,theme:o}):g=As(g,v)}else g=As(g,e(b,f,o,r))}),UP(m,g)}return Array.isArray(n)?n.map(s):s(n)}return a}var pM,Ki,Tv=L(()=>{l();cu();yv();Wl();Is();ag();pM=Iv();pM.filterProps=["sx"];Ki=pM});function Fl(e,a){let t=this;return t.vars&&typeof t.getColorSchemeSelector=="function"?{[t.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:a}:t.palette.mode===e?a:{}}var az=L(()=>{l()});function S3(e={},...a){let{breakpoints:t={},palette:i={},spacing:n,shape:o={}}=e,r=Aa(e,w3),s=_s(t),d=tp(n),u=la({breakpoints:s,direction:"ltr",components:{},palette:H({mode:"light"},i),spacing:d,shape:H({},iM,o)},r);return u.applyStyles=Fl,u=a.reduce((p,m)=>la(p,m),u),u.unstable_sxConfig=H({},Oi,r?.unstable_sxConfig),u.unstable_sx=function(m){return Ki({sx:m,theme:this})},u}var w3,To,mM=L(()=>{l();va();rn();bi();vv();nM();QP();Tv();ag();az();w3=["breakpoints","palette","spacing","shape"];To=S3});var cM={};Wi(cM,{default:()=>To,private_createBreakpoints:()=>_s,unstable_applyStyles:()=>Fl});var Nl=L(()=>{l();mM();vv();az()});function Po(e){let{sx:a}=e,t=Aa(e,G3),{systemProps:i,otherProps:n}=W3(t),o;return Array.isArray(a)?o=[i,...a]:typeof a=="function"?o=(...r)=>{let s=a(...r);return Mn(s)?H({},i,s):i}:o=H({},i,a),H({},n,{sx:o})}var G3,W3,kM=L(()=>{l();va();rn();bi();ag();G3=["sx"],W3=e=>{var a,t;let i={systemProps:{},otherProps:{}},n=(a=e==null||(t=e.theme)==null?void 0:t.unstable_sxConfig)!=null?a:Oi;return Object.keys(e).forEach(o=>{n[o]?i.systemProps[o]=e[o]:i.otherProps[o]=e[o]}),i}});var hM={};Wi(hM,{default:()=>Ki,extendSxProp:()=>Po,unstable_createStyleFunctionSx:()=>Iv,unstable_defaultSxConfig:()=>Oi});var Bl=L(()=>{l();Tv();Tv();kM();ag()});function X3({value:e,children:a}){return(0,wM.jsx)(SM.Provider,{value:e,children:a})}function eQ(e){let{theme:a,name:t,props:i}=e;if(!a||!a.components||!a.components[t])return i;let n=a.components[t];return n.defaultProps?Kr(n.defaultProps,i):!n.styleOverrides&&!n.variants?Kr(n,i):i}function oz({props:e,name:a}){let t=Gv.useContext(SM);return eQ({props:e,name:a,theme:{components:t}})}var Gv,wM,SM,Wv,jM=L(()=>{"use client";l();Gv=S(R());VA();wM=S(ne()),SM=Gv.createContext(void 0);Wv=X3});var rz=L(()=>{l();jM()});var HM=da(vz=>{"use strict";l();var KM=kP();vz.createRoot=KM.createRoot,vz.hydrateRoot=KM.hydrateRoot;var wSe});var pp=da((mje,pg)=>{l();function e$(e){return e&&e.__esModule?e:{default:e}}pg.exports=e$,pg.exports.__esModule=!0,pg.exports.default=pg.exports});var Ol,Wz=L(()=>{l();cu();Ol=he});var wF,SF=L(()=>{l();JC();wF=Th});function Ez(e){return oz(e)}var _je,a$,jF=L(()=>{"use client";l();je();_je=S(R());rz();a$=S(ne())});var xF=L(()=>{l();jF()});var Lz=da((jje,mg)=>{l();function t$(e){return e&&e.__esModule?e:{default:e}}mg.exports=t$,mg.exports.__esModule=!0,mg.exports.default=mg.exports});var CF=da((Cje,mr)=>{l();function Mz(){return mr.exports=Mz=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},mr.exports.__esModule=!0,mr.exports.default=mr.exports,Mz.apply(null,arguments)}mr.exports=Mz,mr.exports.__esModule=!0,mr.exports.default=mr.exports});var DF=da((Gje,cg)=>{l();function i$(e,a){if(e==null)return{};var t={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(a.indexOf(i)!==-1)continue;t[i]=e[i]}return t}cg.exports=i$,cg.exports.__esModule=!0,cg.exports.default=cg.exports});var EF=da(cp=>{"use strict";l();var mp=Lz();Object.defineProperty(cp,"__esModule",{value:!0});cp.default=h$;cp.shouldForwardProp=Uv;cp.systemDefaultTheme=void 0;var _n=mp(CF()),Fz=mp(DF()),GF=u$((fs(),co(tM))),n$=(bi(),co(RC)),Eje=mp((cu(),co(QC))),Lje=mp((HC(),co(KC))),o$=mp((Nl(),co(cM))),r$=mp((Bl(),co(hM))),s$=["ownerState"],l$=["variants"],d$=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function WF(e){if(typeof WeakMap!="function")return null;var a=new WeakMap,t=new WeakMap;return(WF=function(i){return i?t:a})(e)}function u$(e,a){if(!a&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=WF(a);if(t&&t.has(e))return t.get(e);var i={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var r=n?Object.getOwnPropertyDescriptor(e,o):null;r&&(r.get||r.set)?Object.defineProperty(i,o,r):i[o]=e[o]}return i.default=e,t&&t.set(e,i),i}function p$(e){return Object.keys(e).length===0}function m$(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Uv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}var c$=cp.systemDefaultTheme=(0,o$.default)(),g$=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Vv({defaultTheme:e,theme:a,themeId:t}){return p$(a)?e:a[t]||a}function k$(e){return e?(a,t)=>t[e]:null}function Ov(e,a){let{ownerState:t}=a,i=(0,Fz.default)(a,s$),n=typeof e=="function"?e((0,_n.default)({ownerState:t},i)):e;if(Array.isArray(n))return n.flatMap(o=>Ov(o,(0,_n.default)({ownerState:t},i)));if(n&&typeof n=="object"&&Array.isArray(n.variants)){let{variants:o=[]}=n,s=(0,Fz.default)(n,l$);return o.forEach(d=>{let u=!0;typeof d.props=="function"?u=d.props((0,_n.default)({ownerState:t},i,t)):Object.keys(d.props).forEach(p=>{t?.[p]!==d.props[p]&&i[p]!==d.props[p]&&(u=!1)}),u&&(Array.isArray(s)||(s=[s]),s.push(typeof d.style=="function"?d.style((0,_n.default)({ownerState:t},i,t)):d.style))}),s}return n}function h$(e={}){let{themeId:a,defaultTheme:t=c$,rootShouldForwardProp:i=Uv,slotShouldForwardProp:n=Uv}=e,o=r=>(0,r$.default)((0,_n.default)({},r,{theme:Vv((0,_n.default)({},r,{defaultTheme:t,themeId:a}))}));return o.__mui_systemSx=!0,(r,s={})=>{(0,GF.internal_processStyles)(r,A=>A.filter(T=>!(T!=null&&T.__mui_systemSx)));let{name:d,slot:u,skipVariantsResolver:p,skipSx:m,overridesResolver:g=k$(g$(u))}=s,b=(0,Fz.default)(s,d$),f=p!==void 0?p:u&&u!=="Root"&&u!=="root"||!1,v=m||!1,_,h=Uv;u==="Root"||u==="root"?h=i:u?h=n:m$(r)&&(h=void 0);let k=(0,GF.default)(r,(0,_n.default)({shouldForwardProp:h,label:_},b)),y=A=>typeof A=="function"&&A.__emotion_real!==A||(0,n$.isPlainObject)(A)?T=>Ov(A,(0,_n.default)({},T,{theme:Vv({theme:T.theme,defaultTheme:t,themeId:a})})):A,I=(A,...T)=>{let P=y(A),z=T?T.map(y):[];d&&g&&z.push(W=>{let F=Vv((0,_n.default)({},W,{defaultTheme:t,themeId:a}));if(!F.components||!F.components[d]||!F.components[d].styleOverrides)return null;let N=F.components[d].styleOverrides,q={};return Object.entries(N).forEach(([Z,x])=>{q[Z]=Ov(x,(0,_n.default)({},W,{theme:F}))}),g(W,q)}),d&&!f&&z.push(W=>{var F;let N=Vv((0,_n.default)({},W,{defaultTheme:t,themeId:a})),q=N==null||(F=N.components)==null||(F=F[d])==null?void 0:F.variants;return Ov({variants:q},(0,_n.default)({},W,{theme:N}))}),v||z.push(o);let D=z.length-T.length;if(Array.isArray(A)&&D>0){let W=new Array(D).fill("");P=[...A,...W],P.raw=[...A.raw,...W]}let C=k(P,...z);return r.muiName&&(C.muiName=r.muiName),C};return k.withConfig&&(I.withConfig=k.withConfig),I}}});function Nz(e,a){return w({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},a)}var LF=L(()=>{l();je()});var VF=da($a=>{"use strict";l();var FF=Lz();Object.defineProperty($a,"__esModule",{value:!0});$a.alpha=ZF;$a.blend=z$;$a.colorChannel=void 0;$a.darken=Rz;$a.decomposeColor=An;$a.emphasize=qF;$a.getContrastRatio=_$;$a.getLuminance=Kv;$a.hexToRgb=NF;$a.hslToRgb=RF;$a.lighten=Zz;$a.private_safeAlpha=A$;$a.private_safeColorChannel=void 0;$a.private_safeDarken=I$;$a.private_safeEmphasize=P$;$a.private_safeLighten=T$;$a.recomposeColor=gp;$a.rgbToHex=f$;var MF=FF((Ur(),co(qC))),b$=FF((DD(),co(CD)));function Bz(e,a=0,t=1){return(0,b$.default)(e,a,t)}function NF(e){e=e.slice(1);let a=new RegExp(`.{1,${e.length>=6?2:1}}`,"g"),t=e.match(a);return t&&t[0].length===1&&(t=t.map(i=>i+i)),t?`rgb${t.length===4?"a":""}(${t.map((i,n)=>n<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function v$(e){let a=e.toString(16);return a.length===1?`0${a}`:a}function An(e){if(e.type)return e;if(e.charAt(0)==="#")return An(NF(e));let a=e.indexOf("("),t=e.substring(0,a);if(["rgb","rgba","hsl","hsla","color"].indexOf(t)===-1)throw new Error((0,MF.default)(9,e));let i=e.substring(a+1,e.length-1),n;if(t==="color"){if(i=i.split(" "),n=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n)===-1)throw new Error((0,MF.default)(10,n))}else i=i.split(",");return i=i.map(o=>parseFloat(o)),{type:t,values:i,colorSpace:n}}var BF=e=>{let a=An(e);return a.values.slice(0,3).map((t,i)=>a.type.indexOf("hsl")!==-1&&i!==0?`${t}%`:t).join(" ")};$a.colorChannel=BF;var y$=(e,a)=>{try{return BF(e)}catch{return e}};$a.private_safeColorChannel=y$;function gp(e){let{type:a,colorSpace:t}=e,{values:i}=e;return a.indexOf("rgb")!==-1?i=i.map((n,o)=>o<3?parseInt(n,10):n):a.indexOf("hsl")!==-1&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),a.indexOf("color")!==-1?i=`${t} ${i.join(" ")}`:i=`${i.join(", ")}`,`${a}(${i})`}function f$(e){if(e.indexOf("#")===0)return e;let{values:a}=An(e);return`#${a.map((t,i)=>v$(i===3?Math.round(255*t):t)).join("")}`}function RF(e){e=An(e);let{values:a}=e,t=a[0],i=a[1]/100,n=a[2]/100,o=i*Math.min(n,1-n),r=(u,p=(u+t/30)%12)=>n-o*Math.max(Math.min(p-3,9-p,1),-1),s="rgb",d=[Math.round(r(0)*255),Math.round(r(8)*255),Math.round(r(4)*255)];return e.type==="hsla"&&(s+="a",d.push(a[3])),gp({type:s,values:d})}function Kv(e){e=An(e);let a=e.type==="hsl"||e.type==="hsla"?An(RF(e)).values:e.values;return a=a.map(t=>(e.type!=="color"&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*a[0]+.7152*a[1]+.0722*a[2]).toFixed(3))}function _$(e,a){let t=Kv(e),i=Kv(a);return(Math.max(t,i)+.05)/(Math.min(t,i)+.05)}function ZF(e,a){return e=An(e),a=Bz(a),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${a}`:e.values[3]=a,gp(e)}function A$(e,a,t){try{return ZF(e,a)}catch{return e}}function Rz(e,a){if(e=An(e),a=Bz(a),e.type.indexOf("hsl")!==-1)e.values[2]*=1-a;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let t=0;t<3;t+=1)e.values[t]*=1-a;return gp(e)}function I$(e,a,t){try{return Rz(e,a)}catch{return e}}function Zz(e,a){if(e=An(e),a=Bz(a),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*a;else if(e.type.indexOf("rgb")!==-1)for(let t=0;t<3;t+=1)e.values[t]+=(255-e.values[t])*a;else if(e.type.indexOf("color")!==-1)for(let t=0;t<3;t+=1)e.values[t]+=(1-e.values[t])*a;return gp(e)}function T$(e,a,t){try{return Zz(e,a)}catch{return e}}function qF(e,a=.15){return Kv(e)>.5?Rz(e,a):Zz(e,a)}function P$(e,a,t){try{return qF(e,a)}catch{return e}}function z$(e,a,t,i=1){let n=(d,u)=>Math.round((d**(1/i)*(1-t)+u**(1/i)*t)**i),o=An(e),r=An(a),s=[n(o.values[0],r.values[0]),n(o.values[1],r.values[1]),n(o.values[2],r.values[2])];return gp({type:"rgb",values:s})}});var w$,kp,UF=L(()=>{l();w$={black:"#000",white:"#fff"},kp=w$});var S$,OF,KF=L(()=>{l();S$={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},OF=S$});var j$,Kl,HF=L(()=>{l();j$={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Kl=j$});var x$,Hl,YF=L(()=>{l();x$={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Hl=x$});var C$,hp,QF=L(()=>{l();C$={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},hp=C$});var D$,Yl,$F=L(()=>{l();D$={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Yl=D$});var G$,Ql,JF=L(()=>{l();G$={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ql=G$});var W$,$l,XF=L(()=>{l();W$={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},$l=W$});function aN(e,a,t,i){let n=i.light||i,o=i.dark||i*1.5;e[a]||(e.hasOwnProperty(t)?e[a]=e[t]:a==="light"?e.light=(0,bp.lighten)(e.main,n):a==="dark"&&(e.dark=(0,bp.darken)(e.main,o)))}function L$(e="light"){return e==="dark"?{main:Yl[200],light:Yl[50],dark:Yl[400]}:{main:Yl[700],light:Yl[400],dark:Yl[800]}}function M$(e="light"){return e==="dark"?{main:Kl[200],light:Kl[50],dark:Kl[400]}:{main:Kl[500],light:Kl[300],dark:Kl[700]}}function F$(e="light"){return e==="dark"?{main:Hl[500],light:Hl[300],dark:Hl[700]}:{main:Hl[700],light:Hl[400],dark:Hl[800]}}function N$(e="light"){return e==="dark"?{main:Ql[400],light:Ql[300],dark:Ql[700]}:{main:Ql[700],light:Ql[500],dark:Ql[900]}}function B$(e="light"){return e==="dark"?{main:$l[400],light:$l[300],dark:$l[700]}:{main:$l[800],light:$l[500],dark:$l[900]}}function R$(e="light"){return e==="dark"?{main:hp[400],light:hp[300],dark:hp[700]}:{main:"#ed6c02",light:hp[500],dark:hp[900]}}function Vz(e){let{mode:a="light",contrastThreshold:t=3,tonalOffset:i=.2}=e,n=ye(e,E$),o=e.primary||L$(a),r=e.secondary||M$(a),s=e.error||F$(a),d=e.info||N$(a),u=e.success||B$(a),p=e.warning||R$(a);function m(v){return(0,bp.getContrastRatio)(v,qz.text.primary)>=t?qz.text.primary:eN.text.primary}let g=({color:v,name:_,mainShade:h=500,lightShade:k=300,darkShade:y=700})=>{if(v=w({},v),!v.main&&v[h]&&(v.main=v[h]),!v.hasOwnProperty("main"))throw new Error(Gt(11,_?` (${_})`:"",h));if(typeof v.main!="string")throw new Error(Gt(12,_?` (${_})`:"",JSON.stringify(v.main)));return aN(v,"light",k,i),aN(v,"dark",y,i),v.contrastText||(v.contrastText=m(v.main)),v},b={dark:qz,light:eN};return la(w({common:w({},kp),mode:a,primary:g({color:o,name:"primary"}),secondary:g({color:r,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:s,name:"error"}),warning:g({color:p,name:"warning"}),info:g({color:d,name:"info"}),success:g({color:u,name:"success"}),grey:OF,contrastThreshold:t,getContrastText:m,augmentColor:g,tonalOffset:i},b[a]),n)}var bp,E$,eN,qz,tN=L(()=>{l();je();sa();Ur();bi();bp=S(VF());UF();KF();HF();YF();QF();$F();JF();XF();E$=["mode","contrastThreshold","tonalOffset"],eN={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:kp.white,default:kp.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},qz={text:{primary:kp.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:kp.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}});function q$(e){return Math.round(e*1e5)/1e5}function Uz(e,a){let t=typeof a=="function"?a(e):a,{fontFamily:i=nN,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:r=400,fontWeightMedium:s=500,fontWeightBold:d=700,htmlFontSize:u=16,allVariants:p,pxToRem:m}=t,g=ye(t,Z$),b=n/14,f=m||(h=>`${h/u*b}rem`),v=(h,k,y,I,A)=>w({fontFamily:i,fontWeight:h,fontSize:f(k),lineHeight:y},i===nN?{letterSpacing:`${q$(I/k)}em`}:{},A,p),_={h1:v(o,96,1.167,-1.5),h2:v(o,60,1.2,-.5),h3:v(r,48,1.167,0),h4:v(r,34,1.235,.25),h5:v(r,24,1.334,0),h6:v(s,20,1.6,.15),subtitle1:v(r,16,1.75,.15),subtitle2:v(s,14,1.57,.1),body1:v(r,16,1.5,.15),body2:v(r,14,1.43,.15),button:v(s,14,1.75,.4,iN),caption:v(r,12,1.66,.4),overline:v(r,12,2.66,1,iN),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return la(w({htmlFontSize:u,pxToRem:f,fontFamily:i,fontSize:n,fontWeightLight:o,fontWeightRegular:r,fontWeightMedium:s,fontWeightBold:d},_),g,{clone:!1})}var Z$,iN,nN,oN=L(()=>{l();je();sa();bi();Z$=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];iN={textTransform:"uppercase"},nN='"Roboto", "Helvetica", "Arial", sans-serif'});function Ma(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${.2})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${.14})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${.12})`].join(",")}var V$,rN,sN=L(()=>{l();V$=["none",Ma(0,2,1,-1,0,1,1,0,0,1,3,0),Ma(0,3,1,-2,0,2,2,0,0,1,5,0),Ma(0,3,3,-2,0,3,4,0,0,1,8,0),Ma(0,2,4,-1,0,4,5,0,0,1,10,0),Ma(0,3,5,-1,0,5,8,0,0,1,14,0),Ma(0,3,5,-1,0,6,10,0,0,1,18,0),Ma(0,4,5,-2,0,7,10,1,0,2,16,1),Ma(0,5,5,-3,0,8,10,1,0,3,14,2),Ma(0,5,6,-3,0,9,12,1,0,3,16,2),Ma(0,6,6,-3,0,10,14,1,0,4,18,3),Ma(0,6,7,-4,0,11,15,1,0,4,20,3),Ma(0,7,8,-4,0,12,17,2,0,5,22,4),Ma(0,7,8,-4,0,13,19,2,0,5,24,4),Ma(0,7,9,-4,0,14,21,2,0,5,26,4),Ma(0,8,9,-5,0,15,22,2,0,6,28,5),Ma(0,8,10,-5,0,16,24,2,0,6,30,5),Ma(0,8,11,-5,0,17,26,2,0,6,32,5),Ma(0,9,11,-5,0,18,28,2,0,7,34,6),Ma(0,9,12,-6,0,19,29,2,0,7,36,6),Ma(0,10,13,-6,0,20,31,3,0,8,38,7),Ma(0,10,13,-6,0,21,33,3,0,8,40,7),Ma(0,10,14,-6,0,22,35,3,0,8,42,7),Ma(0,11,14,-7,0,23,36,3,0,9,44,8),Ma(0,11,15,-7,0,24,38,3,0,9,46,8)],rN=V$});function lN(e){return`${Math.round(e)}ms`}function H$(e){if(!e)return 0;let a=e/36;return Math.round((4+15*a**.25+a/5)*10)}function Oz(e){let a=w({},O$,e.easing),t=w({},K$,e.duration);return w({getAutoHeightDuration:H$,create:(n=["all"],o={})=>{let{duration:r=t.standard,easing:s=a.easeInOut,delay:d=0}=o,u=ye(o,U$);return(Array.isArray(n)?n:[n]).map(p=>`${p} ${typeof r=="string"?r:lN(r)} ${s} ${typeof d=="string"?d:lN(d)}`).join(",")}},e,{easing:a,duration:t})}var U$,O$,K$,dN=L(()=>{l();sa();je();U$=["duration","easing","delay"],O$={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},K$={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195}});var Y$,uN,pN=L(()=>{l();Y$={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},uN=Y$});function $$(e={},...a){let{mixins:t={},palette:i={},transitions:n={},typography:o={}}=e,r=ye(e,Q$);if(e.vars&&e.generateCssVars===void 0)throw new Error(Gt(18));let s=Vz(i),d=To(e),u=la(d,{mixins:Nz(d.breakpoints,t),palette:s,shadows:rN.slice(),typography:Uz(s,o),transitions:Oz(n),zIndex:w({},uN)});return u=la(u,r),u=a.reduce((p,m)=>la(p,m),u),u.unstable_sxConfig=w({},Oi,r?.unstable_sxConfig),u.unstable_sx=function(m){return Ki({sx:m,theme:this})},u}var Q$,mN,cN=L(()=>{l();je();sa();Ur();bi();Bl();Nl();LF();tN();oN();sN();dN();pN();Q$=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];mN=$$});var J$,gN,kN=L(()=>{"use client";l();cN();J$=mN(),gN=J$});var hN,bN=L(()=>{l();hN="$$material"});function X$(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}var vN,yN=L(()=>{l();vN=X$});var e7,fN,_N=L(()=>{l();yN();e7=e=>vN(e)&&e!=="classes",fN=e7});var AN,a7,IN,TN=L(()=>{"use client";l();AN=S(EF());kN();bN();_N();a7=(0,AN.default)({themeId:hN,defaultTheme:gN,rootShouldForwardProp:fN}),IN=a7});function PN(e){return Fn("MuiSvgIcon",e)}var uCe,Kz=L(()=>{l();HA();ll();uCe=Yo("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"])});var Hv,zN,wN,t7,i7,n7,SN,Yv,jN=L(()=>{"use client";l();je();sa();Hv=S(R());Dt();Eh();Wz();xF();TN();Kz();zN=S(ne()),wN=S(ne()),t7=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],i7=e=>{let{color:a,fontSize:t,classes:i}=e,n={root:["root",a!=="inherit"&&`color${Ol(a)}`,`fontSize${Ol(t)}`]};return De(n,PN,i)},n7=IN("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,a)=>{let{ownerState:t}=e;return[a.root,t.color!=="inherit"&&a[`color${Ol(t.color)}`],a[`fontSize${Ol(t.fontSize)}`]]}})(({theme:e,ownerState:a})=>{var t,i,n,o,r,s,d,u,p,m,g,b,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:a.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(t=e.transitions)==null||(i=t.create)==null?void 0:i.call(t,"fill",{duration:(n=e.transitions)==null||(n=n.duration)==null?void 0:n.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(r=o.pxToRem)==null?void 0:r.call(o,20))||"1.25rem",medium:((s=e.typography)==null||(d=s.pxToRem)==null?void 0:d.call(s,24))||"1.5rem",large:((u=e.typography)==null||(p=u.pxToRem)==null?void 0:p.call(u,35))||"2.1875rem"}[a.fontSize],color:(m=(g=(e.vars||e).palette)==null||(g=g[a.color])==null?void 0:g.main)!=null?m:{action:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.active,disabled:(f=(e.vars||e).palette)==null||(f=f.action)==null?void 0:f.disabled,inherit:void 0}[a.color]}}),SN=Hv.forwardRef(function(a,t){let i=Ez({props:a,name:"MuiSvgIcon"}),{children:n,className:o,color:r="inherit",component:s="svg",fontSize:d="medium",htmlColor:u,inheritViewBox:p=!1,titleAccess:m,viewBox:g="0 0 24 24"}=i,b=ye(i,t7),f=Hv.isValidElement(n)&&n.type==="svg",v=w({},i,{color:r,component:s,fontSize:d,instanceFontSize:a.fontSize,inheritViewBox:p,viewBox:g,hasSvgAsChild:f}),_={};p||(_.viewBox=g);let h=i7(v);return(0,wN.jsxs)(n7,w({as:s,className:ua(h.root,o),focusable:"false",color:u,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:t},_,b,f&&n.props,{ownerState:v,children:[f?n.props.children:n,m?(0,zN.jsx)("title",{children:m}):null]}))});SN.muiName="SvgIcon";Yv=SN});var xN=L(()=>{"use client";l();jN();Kz()});function Hz(e,a){function t(i,n){return(0,CN.jsx)(Yv,w({"data-testid":`${a}Icon`,ref:n},i,{children:e}))}return t.muiName=Yv.muiName,Qv.memo(Qv.forwardRef(t))}var Qv,CN,DN=L(()=>{"use client";l();je();Qv=S(R());xN();CN=S(ne())});var GN,WN=L(()=>{l();CA();GN=ol});var EN,LN=L(()=>{l();eD();EN=Ph});var MN,FN=L(()=>{l();DA();MN=Oo});var NN,BN=L(()=>{l();zh();NN=vi});var RN,ZN=L(()=>{l();GA();RN=Or});var qN,VN=L(()=>{l();rD();qN=wh});var UN,ON=L(()=>{l();fh();UN=ho});var KN,HN=L(()=>{"use client";l();jh();KN=pt});var YN,QN=L(()=>{"use client";l();WA();YN=Ei});var $N,JN=L(()=>{l();mD();$N=xh});var XN,e0=L(()=>{"use client";l();gD();XN=Ch});var a0,t0=L(()=>{"use client";l();LA();a0=Ko});var i0,n0=L(()=>{"use client";l();_h();i0=qe});var o0,r0=L(()=>{"use client";l();qA();o0=sl});var s0={};Wi(s0,{capitalize:()=>Ol,createChainedFunction:()=>wF,createSvgIcon:()=>Hz,debounce:()=>GN,deprecatedPropType:()=>EN,isMuiElement:()=>MN,ownerDocument:()=>NN,ownerWindow:()=>RN,requirePropFactory:()=>qN,setRef:()=>UN,unstable_ClassNameGenerator:()=>o7,unstable_useEnhancedEffect:()=>KN,unstable_useId:()=>YN,unsupportedProp:()=>$N,useControlled:()=>XN,useEventCallback:()=>a0,useForkRef:()=>i0,useIsFocusVisible:()=>o0});var o7,l0=L(()=>{"use client";l();Xe();Wz();SF();DN();WN();LN();FN();BN();ZN();VN();ON();HN();QN();JN();e0();t0();n0();r0();o7={configure:e=>{Ho.configure(e)}}});var vp=da(Yz=>{"use strict";"use client";l();Object.defineProperty(Yz,"__esModule",{value:!0});Object.defineProperty(Yz,"default",{enumerable:!0,get:function(){return r7.createSvgIcon}});var r7=(l0(),co(s0))});var d0=da($v=>{"use strict";"use client";l();var s7=pp();Object.defineProperty($v,"__esModule",{value:!0});$v.default=void 0;var l7=s7(vp()),d7=ne(),BDe=$v.default=(0,l7.default)((0,d7.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M9.29 16.29 5.7 12.7a.9959.9959 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L10 14.17l6.88-6.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-7.59 7.59c-.38.39-1.02.39-1.41 0"}),"CheckCircleRounded")});var u0=da(Jv=>{"use strict";"use client";l();var u7=pp();Object.defineProperty(Jv,"__esModule",{value:!0});Jv.default=void 0;var p7=u7(vp()),m7=ne(),qDe=Jv.default=(0,p7.default)((0,m7.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send")});var B1=da(N1=>{"use strict";l();var om=R();function Wee(e,a){return e===a&&(e!==0||1/e===1/a)||e!==e&&a!==a}var Eee=typeof Object.is=="function"?Object.is:Wee,Lee=om.useState,Mee=om.useEffect,Fee=om.useLayoutEffect,Nee=om.useDebugValue;function Bee(e,a){var t=a(),i=Lee({inst:{value:t,getSnapshot:a}}),n=i[0].inst,o=i[1];return Fee(function(){n.value=t,n.getSnapshot=a,US(n)&&o({inst:n})},[e,t,a]),Mee(function(){return US(n)&&o({inst:n}),e(function(){US(n)&&o({inst:n})})},[e]),Nee(t),t}function US(e){var a=e.getSnapshot;e=e.value;try{var t=a();return!Eee(e,t)}catch{return!0}}function Ree(e,a){return a()}var Zee=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Ree:Bee;N1.useSyncExternalStore=om.useSyncExternalStore!==void 0?om.useSyncExternalStore:Zee});var Z1=da((gna,R1)=>{"use strict";l();R1.exports=B1()});var vV=da((Toa,bV)=>{l();bV.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}});var MO=da(q_=>{"use strict";"use client";l();var Fne=pp();Object.defineProperty(q_,"__esModule",{value:!0});q_.default=void 0;var Nne=Fne(vp()),Bne=ne(),hpa=q_.default=(0,Nne.default)((0,Bne.jsx)("path",{d:"M16.5 6.75v10.58c0 2.09-1.53 3.95-3.61 4.15-2.39.23-4.39-1.64-4.39-3.98V5.14c0-1.31.94-2.5 2.24-2.63 1.5-.15 2.76 1.02 2.76 2.49v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6.75c0-.41-.34-.75-.75-.75s-.75.34-.75.75v8.61c0 1.31.94 2.5 2.24 2.63 1.5.15 2.76-1.02 2.76-2.49V5.17c0-2.09-1.53-3.95-3.61-4.15C9.01.79 7 2.66 7 5v12.27c0 2.87 2.1 5.44 4.96 5.71 3.29.3 6.04-2.26 6.04-5.48V6.75c0-.41-.34-.75-.75-.75s-.75.34-.75.75"}),"AttachFileRounded")});var NO=da(O_=>{"use strict";"use client";l();var Zne=pp();Object.defineProperty(O_,"__esModule",{value:!0});O_.default=void 0;var qne=Zne(vp()),Vne=ne(),Ppa=O_.default=(0,qne.default)((0,Vne.jsx)("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.9 13.98l2.1 2.53 3.1-3.99c.2-.26.6-.26.8.01l3.51 4.68c.25.33.01.8-.4.8H6.02c-.42 0-.65-.48-.39-.81L8.12 14c.19-.26.57-.27.78-.02"}),"ImageRounded")});var $O=da(K_=>{"use strict";"use client";l();var Yne=pp();Object.defineProperty(K_,"__esModule",{value:!0});K_.default=void 0;var Qne=Yne(vp()),$ne=ne(),jma=K_.default=(0,Qne.default)((0,$ne.jsx)("path",{d:"M15.88 9.29 12 13.17 8.12 9.29a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41-.39-.38-1.03-.39-1.42 0"}),"ExpandMoreRounded")});var $j=da((rca,lK)=>{l();lK.exports=function(a,t){var i="000000000"+a;return i.substr(i.length-t)}});var uK=da((lca,dK)=>{l();var Toe=$j(),Poe=typeof window=="object"?window:self,zoe=Object.keys(Poe).length,woe=navigator.mimeTypes?navigator.mimeTypes.length:0,Soe=Toe((woe+navigator.userAgent.length).toString(36)+zoe.toString(36),4);dK.exports=function(){return Soe}});var gK=da((uca,cK)=>{l();var Jj,pK=typeof window<"u"&&(window.crypto||window.msCrypto)||typeof self<"u"&&self.crypto;pK?(mK=Math.pow(2,32)-1,Jj=function(){return Math.abs(pK.getRandomValues(new Uint32Array(1))[0]/mK)}):Jj=Math.random;var mK;cK.exports=Jj});var yK=da((mca,vK)=>{l();var J_=uK(),kK=$j(),joe=gK(),Zk=0,ex=4,X_=36,hK=Math.pow(X_,ex);function Xj(){return kK((joe()*hK<<0).toString(X_),ex)}function bK(){return Zk=Zk<hK?Zk:0,Zk++,Zk-1}function qk(){var e="c",a=new Date().getTime().toString(X_),t=kK(bK().toString(X_),ex),i=J_(),n=Xj()+Xj();return e+a+t+i+n}qk.slug=function(){var a=new Date().getTime().toString(36),t=bK().toString(36).slice(-4),i=J_().slice(0,1)+J_().slice(-1),n=Xj().slice(-2);return a.slice(-2)+t+i+n};qk.isCuid=function(a){return typeof a!="string"?!1:!!a.startsWith("c")};qk.isSlug=function(a){if(typeof a!="string")return!1;var t=a.length;return t>=7&&t<=10};qk.fingerprint=J_;vK.exports=qk});l();l();l();l();function ZK(e){return e.replace(/[-:]([a-z])/g,(a,t)=>`${t.toUpperCase()}`)}function sx(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}var lx=e=>{for(let a in e)typeof e[a]=="function"&&(window[ZK(a)]=function(){e[a]()})};var qK=e=>{if(e.agentId&&e.element.setAttribute("agent-id",e.agentId||""),e.formId&&e.element.setAttribute("form-id",e.formId||""),e.contact)for(let a of Object.keys(e.contact))e.element.setAttribute(sx(a),e.contact?.[a]||"");return e.id&&e.element.setAttribute("id",e.id),e.context&&e.element.setAttribute("context",e.context),e.interface&&e.element.setAttribute("interface",JSON.stringify(e.interface)),e.styles&&(console.log("before",e.styles),console.log("after",JSON.stringify(e.styles)),e.element.setAttribute("styles",JSON.stringify(e.styles))),e?.onMarkedAsResolved&&e.element.setAttribute("on-marked-as-resolved",e?.onMarkedAsResolved.name),e.element},dx=qK;l();l();l();l();Em();mu();l();l();sa();je();var UM=S(R());Dt();l();l();_A();l();function AA(e,a,t=(i,n)=>i===n){return e.length===a.length&&e.every((i,n)=>t(i,a[n]))}l();var Um=S(R()),qH=S(ne()),VH={disableDefaultClasses:!1},UH=Um.createContext(VH);function SC(e){let{disableDefaultClasses:a}=Um.useContext(UH);return t=>a?"":e(t)}l();IA();l();TA();l();var Om=S(R());function CC(e){let{rootElementName:a="",componentName:t}=e,[i,n]=Om.useState(a.toUpperCase()),o=Om.useCallback(r=>{var s;n((s=r?.tagName)!=null?s:"")},[]);return[i,o]}l();NC();l();PA();l();Xe();l();l();ll();var LD="base";function g2(e){return`${LD}--${e}`}function k2(e,a){return`${LD}-${e}-${a}`}function Lh(e,a){let t=OA[a];return t?g2(t):k2(e,a)}function MD(e,a){let t={};return a.forEach(i=>{t[i]=Lh(e,i)}),t}l();l();va();var ul=S(R());Xe();function Li(e={}){let{disabled:a=!1,focusableWhenDisabled:t,href:i,rootRef:n,tabIndex:o,to:r,type:s,rootElementName:d}=e,u=ul.useRef(null),[p,m]=ul.useState(!1),{isFocusVisibleRef:g,onFocus:b,onBlur:f,ref:v}=sl(),[_,h]=ul.useState(!1);a&&!t&&_&&h(!1),ul.useEffect(()=>{g.current=_},[_,g]);let[k,y]=CC({rootElementName:d??(i||r?"a":void 0),componentName:"Button"}),I=Z=>x=>{var E;_&&x.preventDefault(),(E=Z.onMouseLeave)==null||E.call(Z,x)},A=Z=>x=>{var E;f(x),g.current===!1&&h(!1),(E=Z.onBlur)==null||E.call(Z,x)},T=Z=>x=>{var E;if(u.current||(u.current=x.currentTarget),b(x),g.current===!0){var V;h(!0),(V=Z.onFocusVisible)==null||V.call(Z,x)}(E=Z.onFocus)==null||E.call(Z,x)},P=()=>{let Z=u.current;return k==="BUTTON"||k==="INPUT"&&["button","submit","reset"].includes(Z?.type)||k==="A"&&Z?.href},z=Z=>x=>{if(!a){var E;(E=Z.onClick)==null||E.call(Z,x)}},D=Z=>x=>{var E;a||(m(!0),document.addEventListener("mouseup",()=>{m(!1)},{once:!0})),(E=Z.onMouseDown)==null||E.call(Z,x)},C=Z=>x=>{var E;if((E=Z.onKeyDown)==null||E.call(Z,x),!x.defaultMuiPrevented&&(x.target===x.currentTarget&&!P()&&x.key===" "&&x.preventDefault(),x.target===x.currentTarget&&x.key===" "&&!a&&m(!0),x.target===x.currentTarget&&!P()&&x.key==="Enter"&&!a)){var V;(V=Z.onClick)==null||V.call(Z,x),x.preventDefault()}},W=Z=>x=>{var E;if(x.target===x.currentTarget&&m(!1),(E=Z.onKeyUp)==null||E.call(Z,x),x.target===x.currentTarget&&!P()&&!a&&x.key===" "&&!x.defaultMuiPrevented){var V;(V=Z.onClick)==null||V.call(Z,x)}},F=qe(y,n,v,u),N={};return o!==void 0&&(N.tabIndex=o),k==="BUTTON"?(N.type=s??"button",t?N["aria-disabled"]=a:N.disabled=a):k==="INPUT"?s&&["button","submit","reset"].includes(s)&&(t?N["aria-disabled"]=a:N.disabled=a):k!==""&&(!i&&!r&&(N.role="button",N.tabIndex=o??0),a&&(N["aria-disabled"]=a,N.tabIndex=t?o??0:-1)),{getRootProps:(Z={})=>{let x=H({},Wa(e),Wa(Z)),E=H({type:s},x,N,Z,{onBlur:A(x),onClick:z(x),onFocus:T(x),onKeyDown:C(x),onKeyUp:W(x),onMouseDown:D(x),onMouseLeave:I(x),ref:F});return delete E.onFocusVisible,E},focusVisible:_,setFocusVisible:h,active:p,rootRef:F}}l();var Mi=S(R());Xe();var ND=S(ne());function FD(e){return e.substring(2).toLowerCase()}function h2(e,a){return a.documentElement.clientWidth<e.clientX||a.documentElement.clientHeight<e.clientY}function BD(e){let{children:a,disableReactTree:t=!1,mouseEvent:i="onClick",onClickAway:n,touchEvent:o="onTouchEnd"}=e,r=Mi.useRef(!1),s=Mi.useRef(null),d=Mi.useRef(!1),u=Mi.useRef(!1);Mi.useEffect(()=>(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);let p=qe(dl(a),s),m=Ko(f=>{let v=u.current;u.current=!1;let _=vi(s.current);if(!d.current||!s.current||"clientX"in f&&h2(f,_))return;if(r.current){r.current=!1;return}let h;f.composedPath?h=f.composedPath().indexOf(s.current)>-1:h=!_.documentElement.contains(f.target)||s.current.contains(f.target),!h&&(t||!v)&&n(f)}),g=f=>v=>{u.current=!0;let _=a.props[f];_&&_(v)},b={ref:p};return o!==!1&&(b[o]=g(o)),Mi.useEffect(()=>{if(o!==!1){let f=FD(o),v=vi(s.current),_=()=>{r.current=!0};return v.addEventListener(f,m),v.addEventListener("touchmove",_),()=>{v.removeEventListener(f,m),v.removeEventListener("touchmove",_)}}},[m,o]),i!==!1&&(b[i]=g(i)),Mi.useEffect(()=>{if(i!==!1){let f=FD(i),v=vi(s.current);return v.addEventListener(f,m),()=>{v.removeEventListener(f,m)}}},[m,i]),(0,ND.jsx)(Mi.Fragment,{children:Mi.cloneElement(a,b)})}l();va();var Nn=S(R());function b2(e,a){return e===a}var QA={},RD=()=>{};function $A(e,a){let t=H({},e);return Object.keys(a).forEach(i=>{a[i]!==void 0&&(t[i]=a[i])}),t}function v2(e){let{nextState:a,initialState:t,stateComparers:i,onStateChange:n,controlledProps:o,lastActionRef:r}=e,s=Nn.useRef(t);Nn.useEffect(()=>{if(r.current===null)return;let d=$A(s.current,o);Object.keys(a).forEach(u=>{var p;let m=(p=i[u])!=null?p:b2,g=a[u],b=d[u];if(b==null&&g!=null||b!=null&&g==null||b!=null&&g!=null&&!m(g,b)){var f,v;n?.((f=r.current.event)!=null?f:null,u,g,(v=r.current.type)!=null?v:"",a)}}),s.current=a,r.current=null},[s,a,r,n,i,o])}function ZD(e){let a=Nn.useRef(null),{reducer:t,initialState:i,controlledProps:n=QA,stateComparers:o=QA,onStateChange:r=RD,actionContext:s,componentName:d=""}=e,u=Nn.useRef(n),p=Nn.useCallback((f,v)=>{a.current=v;let _=$A(f,n);return t(_,v)},[n,t]),[m,g]=Nn.useReducer(p,i),b=Nn.useCallback(f=>{g(H({},f,{context:s}))},[s]);return v2({nextState:m,initialState:i,stateComparers:o??QA,onStateChange:r??RD,controlledProps:n,lastActionRef:a}),[$A(m,n),b]}l();l();var qD=S(R()),VD=qD.createContext(void 0);l();var UD=S(R());function JA(){return UD.useContext(VD)}l();l();va();Ur();var Qo=S(R());Xe();function XA(e={}){let{defaultValue:a,disabled:t=!1,error:i=!1,onBlur:n,onChange:o,onFocus:r,required:s=!1,value:d,inputRef:u}=e,p=JA(),m,g,b,f,v;if(p){var _,h,k;m=void 0,g=(_=p.disabled)!=null?_:!1,b=(h=p.error)!=null?h:!1,f=(k=p.required)!=null?k:!1,v=p.value}else m=a,g=t,b=i,f=s,v=d;let{current:y}=Qo.useRef(v!=null),I=Qo.useCallback(Z=>{},[]),A=Qo.useRef(null),T=qe(A,u,I),[P,z]=Qo.useState(!1);Qo.useEffect(()=>{!p&&g&&P&&(z(!1),n?.())},[p,g,P,n]);let D=Z=>x=>{var E;if(p!=null&&p.disabled){x.stopPropagation();return}if((E=Z.onFocus)==null||E.call(Z,x),p&&p.onFocus){var V;p==null||(V=p.onFocus)==null||V.call(p)}else z(!0)},C=Z=>x=>{var E;(E=Z.onBlur)==null||E.call(Z,x),p&&p.onBlur?p.onBlur():z(!1)},W=Z=>(x,...E)=>{var V,pe;if(!y&&(x.target||A.current)==null)throw new Error(Gt(17));p==null||(V=p.onChange)==null||V.call(p,x),(pe=Z.onChange)==null||pe.call(Z,x,...E)},F=Z=>x=>{var E;A.current&&x.currentTarget===x.target&&A.current.focus(),(E=Z.onClick)==null||E.call(Z,x)};return{disabled:g,error:b,focused:P,formControlContext:p,getInputProps:(Z={})=>{let E=H({},{onBlur:n,onChange:o,onFocus:r},Wa(Z)),V=H({},E,{onBlur:C(E),onChange:W(E),onFocus:D(E)});return H({},V,{"aria-invalid":b||void 0,defaultValue:m,value:v,required:f,disabled:g},Z,{ref:T},V)},getRootProps:(Z={})=>{let x=Wa(e,["onBlur","onChange","onFocus"]),E=H({},x,Wa(Z));return H({},Z,E,{onClick:F(E)})},inputRef:T,required:f,value:v}}l();l();va();var Vt=S(R());Xe();l();var ya={blur:"list:blur",focus:"list:focus",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",highlightLast:"list:highlightLast",textNavigation:"list:textNavigation",clearSelection:"list:clearSelection"};l();va();function y2(e,a,t,i,n,o){if(t.length===0||!i&&t.every((s,d)=>n(s,d)))return-1;let r=e;for(;;){if(!o&&a==="next"&&r===t.length||!o&&a==="previous"&&r===-1)return-1;if(i?!1:n(t[r],r))r+=a==="next"?1:-1,o&&(r=(r+t.length)%t.length);else return r}}function _t(e,a,t){var i;let{items:n,isItemDisabled:o,disableListWrap:r,disabledItemsFocusable:s,itemComparer:d,focusManagement:u}=t,p=u==="DOM"?0:-1,m=n.length-1,g=e==null?-1:n.findIndex(h=>d(h,e)),b,f,v=!r;switch(a){case"reset":if(p===-1)return null;b=0,f="next",v=!1;break;case"start":b=0,f="next",v=!1;break;case"end":b=m,f="previous",v=!1;break;default:{let h=g+a;h<0?!v&&g!==-1||Math.abs(a)>1?(b=0,f="next"):(b=m,f="previous"):h>m?!v||Math.abs(a)>1?(b=m,f="previous"):(b=0,f="next"):(b=h,f=a>=0?"next":"previous")}}let _=y2(b,f,n,s,o,v);return _===-1&&e!==null&&!o(e,g)?e:(i=n[_])!=null?i:null}function f2(e,a,t,i){return t==="none"?[]:t==="single"?i(a[0],e)?a:[e]:a.some(n=>i(n,e))?a.filter(n=>!i(n,e)):[...a,e]}function Mh(e,a,t){let{itemComparer:i,isItemDisabled:n,selectionMode:o,items:r}=t,{selectedValues:s}=a,d=r.findIndex(p=>i(e,p));if(n(e,d))return a;let u=f2(e,s,o,i);return H({},a,{selectedValues:u,highlightedValue:e})}function _2(e,a,t){let i=a.highlightedValue,{orientation:n,pageSize:o}=t;switch(e){case"Home":return H({},a,{highlightedValue:_t(i,"start",t)});case"End":return H({},a,{highlightedValue:_t(i,"end",t)});case"PageUp":return H({},a,{highlightedValue:_t(i,-o,t)});case"PageDown":return H({},a,{highlightedValue:_t(i,o,t)});case"ArrowUp":if(n!=="vertical")break;return H({},a,{highlightedValue:_t(i,-1,t)});case"ArrowDown":if(n!=="vertical")break;return H({},a,{highlightedValue:_t(i,1,t)});case"ArrowLeft":{if(n==="vertical")break;return H({},a,{highlightedValue:_t(i,n==="horizontal-ltr"?-1:1,t)})}case"ArrowRight":{if(n==="vertical")break;return H({},a,{highlightedValue:_t(i,n==="horizontal-ltr"?1:-1,t)})}case"Enter":case" ":return a.highlightedValue===null?a:Mh(a.highlightedValue,a,t);default:break}return a}function A2(e,a){return a.focusManagement==="DOM"?e:H({},e,{highlightedValue:null})}function I2(e,a,t){var i;let n=(i=t(e))==null?void 0:i.trim().toLowerCase();return!n||n.length===0?!1:n.indexOf(a)===0}function T2(e,a,t){let{items:i,isItemDisabled:n,disabledItemsFocusable:o,getItemAsString:r}=t,s=a.length>1,d=s?e.highlightedValue:_t(e.highlightedValue,1,t);for(let u=0;u<i.length;u+=1){if(!d||!s&&e.highlightedValue===d)return e;if(I2(d,a,r)&&(!n(d,i.indexOf(d))||o))return H({},e,{highlightedValue:d});d=_t(d,1,t)}return e}function P2(e,a,t,i){var n;let{itemComparer:o,focusManagement:r}=i,s=null;if(t.highlightedValue!=null){var d;s=(d=e.find(m=>o(m,t.highlightedValue)))!=null?d:null}else r==="DOM"&&a.length===0&&(s=_t(null,"reset",i));let p=((n=t.selectedValues)!=null?n:[]).filter(m=>e.some(g=>o(g,m)));return H({},t,{highlightedValue:s,selectedValues:p})}function z2(e,a){return H({},e,{highlightedValue:_t(null,"reset",a)})}function w2(e,a){return H({},e,{highlightedValue:_t(null,"end",a)})}function S2(e,a){return H({},e,{selectedValues:[],highlightedValue:_t(null,"reset",a)})}function Fh(e,a){let{type:t,context:i}=a;switch(t){case ya.keyDown:return _2(a.key,e,i);case ya.itemClick:return Mh(a.item,e,i);case ya.blur:return A2(e,i);case ya.textNavigation:return T2(e,a.searchString,i);case ya.itemsChange:return P2(a.items,a.previousItems,e,i);case ya.resetHighlight:return z2(e,i);case ya.highlightLast:return w2(e,i);case ya.clearSelection:return S2(e,i);default:return e}}l();var Nh=S(R()),j2=500;function OD(e){let a=Nh.useRef({searchString:"",lastTime:null});return Nh.useCallback(t=>{if(t.key.length===1&&t.key!==" "){let i=a.current,n=t.key.toLowerCase(),o=performance.now();i.searchString.length>0&&i.lastTime&&o-i.lastTime>j2?i.searchString=n:(i.searchString.length!==1||n!==i.searchString)&&(i.searchString+=n),i.lastTime=o,e(i.searchString,t)}},[e])}var KD={},x2=()=>{},C2=(e,a)=>e===a,D2=()=>!1,G2=e=>typeof e=="string"?e:String(e),W2=()=>({highlightedValue:null,selectedValues:[]});function eI(e){let{controlledProps:a=KD,disabledItemsFocusable:t=!1,disableListWrap:i=!1,focusManagement:n="activeDescendant",getInitialState:o=W2,getItemDomElement:r,getItemId:s,isItemDisabled:d=D2,rootRef:u,onStateChange:p=x2,items:m,itemComparer:g=C2,getItemAsString:b=G2,onChange:f,onHighlightChange:v,onItemsChange:_,orientation:h="vertical",pageSize:k=5,reducerActionContext:y=KD,selectionMode:I="single",stateReducer:A,componentName:T="useList"}=e,P=Vt.useRef(null),z=qe(u,P),D=Vt.useCallback((K,U,Q)=>{if(v?.(K,U,Q),n==="DOM"&&U!=null&&(Q===ya.itemClick||Q===ya.keyDown||Q===ya.textNavigation)){var oe;r==null||(oe=r(U))==null||oe.focus()}},[r,v,n]),C=Vt.useMemo(()=>({highlightedValue:g,selectedValues:(K,U)=>AA(K,U,g)}),[g]),W=Vt.useCallback((K,U,Q,oe,de)=>{switch(p?.(K,U,Q,oe,de),U){case"highlightedValue":D(K,Q,oe);break;case"selectedValues":f?.(K,Q,oe);break;default:break}},[D,f,p]),F=Vt.useMemo(()=>({disabledItemsFocusable:t,disableListWrap:i,focusManagement:n,isItemDisabled:d,itemComparer:g,items:m,getItemAsString:b,onHighlightChange:D,orientation:h,pageSize:k,selectionMode:I,stateComparers:C}),[t,i,n,d,g,m,b,D,h,k,I,C]),N=o(),q=A??Fh,Z=Vt.useMemo(()=>H({},y,F),[y,F]),[x,E]=ZD({reducer:q,actionContext:Z,initialState:N,controlledProps:a,stateComparers:C,onStateChange:W,componentName:T}),{highlightedValue:V,selectedValues:pe}=x,we=OD((K,U)=>E({type:ya.textNavigation,event:U,searchString:K})),be=Vt.useRef([]);Vt.useEffect(()=>{AA(be.current,m,g)||(E({type:ya.itemsChange,event:null,items:m,previousItems:be.current}),be.current=m,_?.(m))},[m,g,E,_]);let ge=K=>U=>{var Q;if((Q=K.onKeyDown)==null||Q.call(K,U),U.defaultMuiPrevented)return;let oe=["Home","End","PageUp","PageDown"];h==="vertical"?oe.push("ArrowUp","ArrowDown"):oe.push("ArrowLeft","ArrowRight"),n==="activeDescendant"&&oe.push(" ","Enter"),oe.includes(U.key)&&U.preventDefault(),E({type:ya.keyDown,key:U.key,event:U}),we(U)},G=K=>U=>{var Q,oe;(Q=K.onBlur)==null||Q.call(K,U),!U.defaultMuiPrevented&&((oe=P.current)!=null&&oe.contains(U.relatedTarget)||E({type:ya.blur,event:U}))},ee=(K={})=>{let U=Wa(K);return H({},K,{"aria-activedescendant":n==="activeDescendant"&&V!=null?s(V):void 0,tabIndex:n==="DOM"?-1:0,ref:z},U,{onBlur:G(U),onKeyDown:ge(U)})},X=Vt.useCallback(K=>{let U=(pe??[]).some(de=>de!=null&&g(K,de)),Q=V!=null&&g(K,V);return{focusable:n==="DOM",highlighted:Q,selected:U}},[g,pe,V,n]),Oe=Vt.useMemo(()=>({dispatch:E,getItemState:X}),[E,X]);return Vt.useDebugValue({state:x}),{contextValue:Oe,dispatch:E,getRootProps:ee,rootRef:z,state:x}}l();va();var Ym=S(R());l();var HD=S(R()),Hr=HD.createContext(null);function aI(e){let{handlePointerOverEvents:a=!1,item:t}=e,i=Ym.useContext(Hr);if(!i)throw new Error("useListItem must be used within a ListProvider");let{dispatch:n,getItemState:o}=i,{highlighted:r,selected:s,focusable:d}=o(t),u=Ym.useCallback(b=>f=>{var v;(v=b.onClick)==null||v.call(b,f),!f.defaultPrevented&&n({type:ya.itemClick,item:t,event:f})},[n,t]),p=Ym.useCallback(b=>f=>{var v;(v=b.onMouseOver)==null||v.call(b,f),!f.defaultPrevented&&n({type:ya.itemHover,item:t,event:f})},[n,t]),m;return d&&(m=r?0:-1),{getRootProps:(b={})=>{let f=Wa(b);return H({},b,{onClick:u(f),onPointerOver:a?p(f):void 0,tabIndex:m})},highlighted:r,selected:s}}l();var Fi=S(R()),Bh=Fi.createContext(null);function E2(e){let a=Array.from(e.keys()).map(t=>{let i=e.get(t);return{key:t,subitem:i}});return a.sort((t,i)=>{let n=t.subitem.ref.current,o=i.subitem.ref.current;return n===null||o===null||n===o?0:n.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(a.map(t=>[t.key,t.subitem]))}function YD(){let[e,a]=Fi.useState(new Map),t=Fi.useRef(new Set),i=Fi.useCallback(function(u){t.current.delete(u),a(p=>{let m=new Map(p);return m.delete(u),m})},[]),n=Fi.useCallback(function(u,p){let m;return typeof u=="function"?m=u(t.current):m=u,t.current.add(m),a(g=>{let b=new Map(g);return b.set(m,p),b}),{id:m,deregister:()=>i(m)}},[i]),o=Fi.useMemo(()=>E2(e),[e]),r=Fi.useCallback(function(u){return Array.from(o.keys()).indexOf(u)},[o]);return{contextValue:Fi.useMemo(()=>({getItemIndex:r,registerItem:n,totalSubitemCount:e.size}),[r,n,e.size]),subitems:o}}l();var Rh=S(R());Xe();function QD(e,a){let t=Rh.useContext(Bh);if(t===null)throw new Error("useCompoundItem must be used within a useCompoundParent");let{registerItem:i}=t,[n,o]=Rh.useState(typeof e=="function"?void 0:e);return pt(()=>{let{id:r,deregister:s}=i(e,a);return o(r),s},[i,a,e]),{id:n,index:n!==void 0?t.getItemIndex(n):-1,totalItemCount:t.totalSubitemCount}}l();va();function hu(e,a){return function(i={}){let n=H({},i,e(i));return H({},n,a(n))}}l();l();var gn=S(R()),kL=S(kP());YA();Xe();var hP=S(ne());function F4(e){return typeof e=="function"?e():e}var bP=gn.forwardRef(function(a,t){let{children:i,container:n,disablePortal:o=!1}=a,[r,s]=gn.useState(null),d=qe(gn.isValidElement(i)?dl(i):null,t);return pt(()=>{o||s(F4(n)||document.body)},[n,o]),pt(()=>{if(r&&!o)return ho(t,r),()=>{ho(t,null)}},[t,r,o]),o?gn.isValidElement(i)?gn.cloneElement(i,{ref:d}):(0,hP.jsx)(gn.Fragment,{children:i}):(0,hP.jsx)(gn.Fragment,{children:r&&kL.createPortal(i,r)})});l();l();va();var sv=S(R());Xe();function vP(e){let{value:a,label:t,disabled:i,rootRef:n,id:o}=e,{getRootProps:r,highlighted:s,selected:d}=aI({item:a}),{getRootProps:u,rootRef:p}=Li({disabled:i,focusableWhenDisabled:!0}),m=Ei(o),g=sv.useRef(null),b=sv.useMemo(()=>({disabled:i,label:t,value:a,ref:g,id:m}),[i,t,a,m]),{index:f}=QD(a,b),v=qe(n,g,p),_=k=>y=>{var I;(I=k.onKeyDown)==null||I.call(k,y),!y.defaultMuiPrevented&&[" ","Enter"].includes(y.key)&&(y.defaultMuiPrevented=!0)},h=(k={})=>({onKeyDown:_(k)});return{getRootProps:(k={})=>{let y=Wa(k),I=hu(r,hu(u,h));return H({},k,y,I(y),{id:m,ref:v,role:"option","aria-selected":d})},highlighted:s,index:f,selected:d,rootRef:v}}l();var Ou=S(R());function hL(e){let a=Ou.useContext(Hr);if(!a)throw new Error("Option: ListContext was not found.");let{getItemState:t,dispatch:i}=a,{highlighted:n,selected:o,focusable:r}=t(e),s=Ou.useCallback(u=>{if(u!==e)throw new Error(["Base UI Option: Tried to access the state of another Option.","This is unsupported when the Option uses the OptionContextStabilizer as a performance optimization."].join("/n"));return{highlighted:n,selected:o,focusable:r}},[n,o,r,e]);return{contextValue:Ou.useMemo(()=>({dispatch:i,getItemState:s}),[i,s])}}l();l();va();rn();var Qt=S(R());Xe();l();l();var Qa="top",gt="bottom",dt="right",it="left",lv="auto",hs=[Qa,gt,dt,it],sr="start",zl="end",bL="clippingParents",dv="viewport",Ku="popper",vL="reference",yP=hs.reduce(function(e,a){return e.concat([a+"-"+sr,a+"-"+zl])},[]),uv=[].concat(hs,[lv]).reduce(function(e,a){return e.concat([a,a+"-"+sr,a+"-"+zl])},[]),N4="beforeRead",B4="read",R4="afterRead",Z4="beforeMain",q4="main",V4="afterMain",U4="beforeWrite",O4="write",K4="afterWrite",yL=[N4,B4,R4,Z4,q4,V4,U4,O4,K4];l();l();function Tt(e){return e?(e.nodeName||"").toLowerCase():null}l();l();function La(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var a=e.ownerDocument;return a&&a.defaultView||window}return e}function kn(e){var a=La(e).Element;return e instanceof a||e instanceof Element}function kt(e){var a=La(e).HTMLElement;return e instanceof a||e instanceof HTMLElement}function Hu(e){if(typeof ShadowRoot>"u")return!1;var a=La(e).ShadowRoot;return e instanceof a||e instanceof ShadowRoot}function H4(e){var a=e.state;Object.keys(a.elements).forEach(function(t){var i=a.styles[t]||{},n=a.attributes[t]||{},o=a.elements[t];!kt(o)||!Tt(o)||(Object.assign(o.style,i),Object.keys(n).forEach(function(r){var s=n[r];s===!1?o.removeAttribute(r):o.setAttribute(r,s===!0?"":s)}))})}function Y4(e){var a=e.state,t={popper:{position:a.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(a.elements.popper.style,t.popper),a.styles=t,a.elements.arrow&&Object.assign(a.elements.arrow.style,t.arrow),function(){Object.keys(a.elements).forEach(function(i){var n=a.elements[i],o=a.attributes[i]||{},r=Object.keys(a.styles.hasOwnProperty(i)?a.styles[i]:t[i]),s=r.reduce(function(d,u){return d[u]="",d},{});!kt(n)||!Tt(n)||(Object.assign(n.style,s),Object.keys(o).forEach(function(d){n.removeAttribute(d)}))})}}var fL={name:"applyStyles",enabled:!0,phase:"write",fn:H4,effect:Y4,requires:["computeStyles"]};l();l();function Pt(e){return e.split("-")[0]}l();l();l();var Hn=Math.max,wl=Math.min,lr=Math.round;l();l();function Yu(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}function Rc(){return!/^((?!chrome|android).)*safari/i.test(Yu())}function hn(e,a,t){a===void 0&&(a=!1),t===void 0&&(t=!1);var i=e.getBoundingClientRect(),n=1,o=1;a&&kt(e)&&(n=e.offsetWidth>0&&lr(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&lr(i.height)/e.offsetHeight||1);var r=kn(e)?La(e):window,s=r.visualViewport,d=!Rc()&&t,u=(i.left+(d&&s?s.offsetLeft:0))/n,p=(i.top+(d&&s?s.offsetTop:0))/o,m=i.width/n,g=i.height/o;return{width:m,height:g,top:p,right:u+m,bottom:p+g,left:u,x:u,y:p}}function Sl(e){var a=hn(e),t=e.offsetWidth,i=e.offsetHeight;return Math.abs(a.width-t)<=1&&(t=a.width),Math.abs(a.height-i)<=1&&(i=a.height),{x:e.offsetLeft,y:e.offsetTop,width:t,height:i}}l();function Zc(e,a){var t=a.getRootNode&&a.getRootNode();if(e.contains(a))return!0;if(t&&Hu(t)){var i=a;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}l();l();function gi(e){return La(e).getComputedStyle(e)}l();function fP(e){return["table","td","th"].indexOf(Tt(e))>=0}l();l();function Mt(e){return((kn(e)?e.ownerDocument:e.document)||window.document).documentElement}function dr(e){return Tt(e)==="html"?e:e.assignedSlot||e.parentNode||(Hu(e)?e.host:null)||Mt(e)}function _L(e){return!kt(e)||gi(e).position==="fixed"?null:e.offsetParent}function Q4(e){var a=/firefox/i.test(Yu()),t=/Trident/i.test(Yu());if(t&&kt(e)){var i=gi(e);if(i.position==="fixed")return null}var n=dr(e);for(Hu(n)&&(n=n.host);kt(n)&&["html","body"].indexOf(Tt(n))<0;){var o=gi(n);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||a&&o.willChange==="filter"||a&&o.filter&&o.filter!=="none")return n;n=n.parentNode}return null}function Yn(e){for(var a=La(e),t=_L(e);t&&fP(t)&&gi(t).position==="static";)t=_L(t);return t&&(Tt(t)==="html"||Tt(t)==="body"&&gi(t).position==="static")?a:t||Q4(e)||a}l();function jl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}l();function xl(e,a,t){return Hn(e,wl(a,t))}function AL(e,a,t){var i=xl(e,a,t);return i>t?t:i}l();l();function qc(){return{top:0,right:0,bottom:0,left:0}}function Vc(e){return Object.assign({},qc(),e)}l();function Uc(e,a){return a.reduce(function(t,i){return t[i]=e,t},{})}var $4=function(a,t){return a=typeof a=="function"?a(Object.assign({},t.rects,{placement:t.placement})):a,Vc(typeof a!="number"?a:Uc(a,hs))};function J4(e){var a,t=e.state,i=e.name,n=e.options,o=t.elements.arrow,r=t.modifiersData.popperOffsets,s=Pt(t.placement),d=jl(s),u=[it,dt].indexOf(s)>=0,p=u?"height":"width";if(!(!o||!r)){var m=$4(n.padding,t),g=Sl(o),b=d==="y"?Qa:it,f=d==="y"?gt:dt,v=t.rects.reference[p]+t.rects.reference[d]-r[d]-t.rects.popper[p],_=r[d]-t.rects.reference[d],h=Yn(o),k=h?d==="y"?h.clientHeight||0:h.clientWidth||0:0,y=v/2-_/2,I=m[b],A=k-g[p]-m[f],T=k/2-g[p]/2+y,P=xl(I,T,A),z=d;t.modifiersData[i]=(a={},a[z]=P,a.centerOffset=P-T,a)}}function X4(e){var a=e.state,t=e.options,i=t.element,n=i===void 0?"[data-popper-arrow]":i;n!=null&&(typeof n=="string"&&(n=a.elements.popper.querySelector(n),!n)||Zc(a.elements.popper,n)&&(a.elements.arrow=n))}var IL={name:"arrow",enabled:!0,phase:"main",fn:J4,effect:X4,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};l();l();function bn(e){return e.split("-")[1]}var e5={top:"auto",right:"auto",bottom:"auto",left:"auto"};function a5(e,a){var t=e.x,i=e.y,n=a.devicePixelRatio||1;return{x:lr(t*n)/n||0,y:lr(i*n)/n||0}}function TL(e){var a,t=e.popper,i=e.popperRect,n=e.placement,o=e.variation,r=e.offsets,s=e.position,d=e.gpuAcceleration,u=e.adaptive,p=e.roundOffsets,m=e.isFixed,g=r.x,b=g===void 0?0:g,f=r.y,v=f===void 0?0:f,_=typeof p=="function"?p({x:b,y:v}):{x:b,y:v};b=_.x,v=_.y;var h=r.hasOwnProperty("x"),k=r.hasOwnProperty("y"),y=it,I=Qa,A=window;if(u){var T=Yn(t),P="clientHeight",z="clientWidth";if(T===La(t)&&(T=Mt(t),gi(T).position!=="static"&&s==="absolute"&&(P="scrollHeight",z="scrollWidth")),T=T,n===Qa||(n===it||n===dt)&&o===zl){I=gt;var D=m&&T===A&&A.visualViewport?A.visualViewport.height:T[P];v-=D-i.height,v*=d?1:-1}if(n===it||(n===Qa||n===gt)&&o===zl){y=dt;var C=m&&T===A&&A.visualViewport?A.visualViewport.width:T[z];b-=C-i.width,b*=d?1:-1}}var W=Object.assign({position:s},u&&e5),F=p===!0?a5({x:b,y:v},La(t)):{x:b,y:v};if(b=F.x,v=F.y,d){var N;return Object.assign({},W,(N={},N[I]=k?"0":"",N[y]=h?"0":"",N.transform=(A.devicePixelRatio||1)<=1?"translate("+b+"px, "+v+"px)":"translate3d("+b+"px, "+v+"px, 0)",N))}return Object.assign({},W,(a={},a[I]=k?v+"px":"",a[y]=h?b+"px":"",a.transform="",a))}function t5(e){var a=e.state,t=e.options,i=t.gpuAcceleration,n=i===void 0?!0:i,o=t.adaptive,r=o===void 0?!0:o,s=t.roundOffsets,d=s===void 0?!0:s,u={placement:Pt(a.placement),variation:bn(a.placement),popper:a.elements.popper,popperRect:a.rects.popper,gpuAcceleration:n,isFixed:a.options.strategy==="fixed"};a.modifiersData.popperOffsets!=null&&(a.styles.popper=Object.assign({},a.styles.popper,TL(Object.assign({},u,{offsets:a.modifiersData.popperOffsets,position:a.options.strategy,adaptive:r,roundOffsets:d})))),a.modifiersData.arrow!=null&&(a.styles.arrow=Object.assign({},a.styles.arrow,TL(Object.assign({},u,{offsets:a.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-placement":a.placement})}var PL={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:t5,data:{}};l();var pv={passive:!0};function i5(e){var a=e.state,t=e.instance,i=e.options,n=i.scroll,o=n===void 0?!0:n,r=i.resize,s=r===void 0?!0:r,d=La(a.elements.popper),u=[].concat(a.scrollParents.reference,a.scrollParents.popper);return o&&u.forEach(function(p){p.addEventListener("scroll",t.update,pv)}),s&&d.addEventListener("resize",t.update,pv),function(){o&&u.forEach(function(p){p.removeEventListener("scroll",t.update,pv)}),s&&d.removeEventListener("resize",t.update,pv)}}var zL={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:i5,data:{}};l();l();var n5={left:"right",right:"left",bottom:"top",top:"bottom"};function Qu(e){return e.replace(/left|right|bottom|top/g,function(a){return n5[a]})}l();var o5={start:"end",end:"start"};function mv(e){return e.replace(/start|end/g,function(a){return o5[a]})}l();l();l();l();l();function Cl(e){var a=La(e),t=a.pageXOffset,i=a.pageYOffset;return{scrollLeft:t,scrollTop:i}}function Dl(e){return hn(Mt(e)).left+Cl(e).scrollLeft}function _P(e,a){var t=La(e),i=Mt(e),n=t.visualViewport,o=i.clientWidth,r=i.clientHeight,s=0,d=0;if(n){o=n.width,r=n.height;var u=Rc();(u||!u&&a==="fixed")&&(s=n.offsetLeft,d=n.offsetTop)}return{width:o,height:r,x:s+Dl(e),y:d}}l();function AP(e){var a,t=Mt(e),i=Cl(e),n=(a=e.ownerDocument)==null?void 0:a.body,o=Hn(t.scrollWidth,t.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=Hn(t.scrollHeight,t.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-i.scrollLeft+Dl(e),d=-i.scrollTop;return gi(n||t).direction==="rtl"&&(s+=Hn(t.clientWidth,n?n.clientWidth:0)-o),{width:o,height:r,x:s,y:d}}l();l();l();function Gl(e){var a=gi(e),t=a.overflow,i=a.overflowX,n=a.overflowY;return/auto|scroll|overlay|hidden/.test(t+n+i)}function cv(e){return["html","body","#document"].indexOf(Tt(e))>=0?e.ownerDocument.body:kt(e)&&Gl(e)?e:cv(dr(e))}function bs(e,a){var t;a===void 0&&(a=[]);var i=cv(e),n=i===((t=e.ownerDocument)==null?void 0:t.body),o=La(i),r=n?[o].concat(o.visualViewport||[],Gl(i)?i:[]):i,s=a.concat(r);return n?s:s.concat(bs(dr(r)))}l();function $u(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function r5(e,a){var t=hn(e,!1,a==="fixed");return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function wL(e,a,t){return a===dv?$u(_P(e,t)):kn(a)?r5(a,t):$u(AP(Mt(e)))}function s5(e){var a=bs(dr(e)),t=["absolute","fixed"].indexOf(gi(e).position)>=0,i=t&&kt(e)?Yn(e):e;return kn(i)?a.filter(function(n){return kn(n)&&Zc(n,i)&&Tt(n)!=="body"}):[]}function IP(e,a,t,i){var n=a==="clippingParents"?s5(e):[].concat(a),o=[].concat(n,[t]),r=o[0],s=o.reduce(function(d,u){var p=wL(e,u,i);return d.top=Hn(p.top,d.top),d.right=wl(p.right,d.right),d.bottom=wl(p.bottom,d.bottom),d.left=Hn(p.left,d.left),d},wL(e,r,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}l();function Oc(e){var a=e.reference,t=e.element,i=e.placement,n=i?Pt(i):null,o=i?bn(i):null,r=a.x+a.width/2-t.width/2,s=a.y+a.height/2-t.height/2,d;switch(n){case Qa:d={x:r,y:a.y-t.height};break;case gt:d={x:r,y:a.y+a.height};break;case dt:d={x:a.x+a.width,y:s};break;case it:d={x:a.x-t.width,y:s};break;default:d={x:a.x,y:a.y}}var u=n?jl(n):null;if(u!=null){var p=u==="y"?"height":"width";switch(o){case sr:d[u]=d[u]-(a[p]/2-t[p]/2);break;case zl:d[u]=d[u]+(a[p]/2-t[p]/2);break;default:}}return d}function Qn(e,a){a===void 0&&(a={});var t=a,i=t.placement,n=i===void 0?e.placement:i,o=t.strategy,r=o===void 0?e.strategy:o,s=t.boundary,d=s===void 0?bL:s,u=t.rootBoundary,p=u===void 0?dv:u,m=t.elementContext,g=m===void 0?Ku:m,b=t.altBoundary,f=b===void 0?!1:b,v=t.padding,_=v===void 0?0:v,h=Vc(typeof _!="number"?_:Uc(_,hs)),k=g===Ku?vL:Ku,y=e.rects.popper,I=e.elements[f?k:g],A=IP(kn(I)?I:I.contextElement||Mt(e.elements.popper),d,p,r),T=hn(e.elements.reference),P=Oc({reference:T,element:y,strategy:"absolute",placement:n}),z=$u(Object.assign({},y,P)),D=g===Ku?z:T,C={top:A.top-D.top+h.top,bottom:D.bottom-A.bottom+h.bottom,left:A.left-D.left+h.left,right:D.right-A.right+h.right},W=e.modifiersData.offset;if(g===Ku&&W){var F=W[n];Object.keys(C).forEach(function(N){var q=[dt,gt].indexOf(N)>=0?1:-1,Z=[Qa,gt].indexOf(N)>=0?"y":"x";C[N]+=F[Z]*q})}return C}l();function TP(e,a){a===void 0&&(a={});var t=a,i=t.placement,n=t.boundary,o=t.rootBoundary,r=t.padding,s=t.flipVariations,d=t.allowedAutoPlacements,u=d===void 0?uv:d,p=bn(i),m=p?s?yP:yP.filter(function(f){return bn(f)===p}):hs,g=m.filter(function(f){return u.indexOf(f)>=0});g.length===0&&(g=m);var b=g.reduce(function(f,v){return f[v]=Qn(e,{placement:v,boundary:n,rootBoundary:o,padding:r})[Pt(v)],f},{});return Object.keys(b).sort(function(f,v){return b[f]-b[v]})}function l5(e){if(Pt(e)===lv)return[];var a=Qu(e);return[mv(e),a,mv(a)]}function d5(e){var a=e.state,t=e.options,i=e.name;if(!a.modifiersData[i]._skip){for(var n=t.mainAxis,o=n===void 0?!0:n,r=t.altAxis,s=r===void 0?!0:r,d=t.fallbackPlacements,u=t.padding,p=t.boundary,m=t.rootBoundary,g=t.altBoundary,b=t.flipVariations,f=b===void 0?!0:b,v=t.allowedAutoPlacements,_=a.options.placement,h=Pt(_),k=h===_,y=d||(k||!f?[Qu(_)]:l5(_)),I=[_].concat(y).reduce(function(ee,X){return ee.concat(Pt(X)===lv?TP(a,{placement:X,boundary:p,rootBoundary:m,padding:u,flipVariations:f,allowedAutoPlacements:v}):X)},[]),A=a.rects.reference,T=a.rects.popper,P=new Map,z=!0,D=I[0],C=0;C<I.length;C++){var W=I[C],F=Pt(W),N=bn(W)===sr,q=[Qa,gt].indexOf(F)>=0,Z=q?"width":"height",x=Qn(a,{placement:W,boundary:p,rootBoundary:m,altBoundary:g,padding:u}),E=q?N?dt:it:N?gt:Qa;A[Z]>T[Z]&&(E=Qu(E));var V=Qu(E),pe=[];if(o&&pe.push(x[F]<=0),s&&pe.push(x[E]<=0,x[V]<=0),pe.every(function(ee){return ee})){D=W,z=!1;break}P.set(W,pe)}if(z)for(var we=f?3:1,be=function(X){var Oe=I.find(function(K){var U=P.get(K);if(U)return U.slice(0,X).every(function(Q){return Q})});if(Oe)return D=Oe,"break"},ge=we;ge>0;ge--){var G=be(ge);if(G==="break")break}a.placement!==D&&(a.modifiersData[i]._skip=!0,a.placement=D,a.reset=!0)}}var SL={name:"flip",enabled:!0,phase:"main",fn:d5,requiresIfExists:["offset"],data:{_skip:!1}};l();function jL(e,a,t){return t===void 0&&(t={x:0,y:0}),{top:e.top-a.height-t.y,right:e.right-a.width+t.x,bottom:e.bottom-a.height+t.y,left:e.left-a.width-t.x}}function xL(e){return[Qa,dt,gt,it].some(function(a){return e[a]>=0})}function u5(e){var a=e.state,t=e.name,i=a.rects.reference,n=a.rects.popper,o=a.modifiersData.preventOverflow,r=Qn(a,{elementContext:"reference"}),s=Qn(a,{altBoundary:!0}),d=jL(r,i),u=jL(s,n,o),p=xL(d),m=xL(u);a.modifiersData[t]={referenceClippingOffsets:d,popperEscapeOffsets:u,isReferenceHidden:p,hasPopperEscaped:m},a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":m})}var CL={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:u5};l();function p5(e,a,t){var i=Pt(e),n=[it,Qa].indexOf(i)>=0?-1:1,o=typeof t=="function"?t(Object.assign({},a,{placement:e})):t,r=o[0],s=o[1];return r=r||0,s=(s||0)*n,[it,dt].indexOf(i)>=0?{x:s,y:r}:{x:r,y:s}}function m5(e){var a=e.state,t=e.options,i=e.name,n=t.offset,o=n===void 0?[0,0]:n,r=uv.reduce(function(p,m){return p[m]=p5(m,a.rects,o),p},{}),s=r[a.placement],d=s.x,u=s.y;a.modifiersData.popperOffsets!=null&&(a.modifiersData.popperOffsets.x+=d,a.modifiersData.popperOffsets.y+=u),a.modifiersData[i]=r}var DL={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:m5};l();function c5(e){var a=e.state,t=e.name;a.modifiersData[t]=Oc({reference:a.rects.reference,element:a.rects.popper,strategy:"absolute",placement:a.placement})}var GL={name:"popperOffsets",enabled:!0,phase:"read",fn:c5,data:{}};l();l();function PP(e){return e==="x"?"y":"x"}function g5(e){var a=e.state,t=e.options,i=e.name,n=t.mainAxis,o=n===void 0?!0:n,r=t.altAxis,s=r===void 0?!1:r,d=t.boundary,u=t.rootBoundary,p=t.altBoundary,m=t.padding,g=t.tether,b=g===void 0?!0:g,f=t.tetherOffset,v=f===void 0?0:f,_=Qn(a,{boundary:d,rootBoundary:u,padding:m,altBoundary:p}),h=Pt(a.placement),k=bn(a.placement),y=!k,I=jl(h),A=PP(I),T=a.modifiersData.popperOffsets,P=a.rects.reference,z=a.rects.popper,D=typeof v=="function"?v(Object.assign({},a.rects,{placement:a.placement})):v,C=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),W=a.modifiersData.offset?a.modifiersData.offset[a.placement]:null,F={x:0,y:0};if(T){if(o){var N,q=I==="y"?Qa:it,Z=I==="y"?gt:dt,x=I==="y"?"height":"width",E=T[I],V=E+_[q],pe=E-_[Z],we=b?-z[x]/2:0,be=k===sr?P[x]:z[x],ge=k===sr?-z[x]:-P[x],G=a.elements.arrow,ee=b&&G?Sl(G):{width:0,height:0},X=a.modifiersData["arrow#persistent"]?a.modifiersData["arrow#persistent"].padding:qc(),Oe=X[q],K=X[Z],U=xl(0,P[x],ee[x]),Q=y?P[x]/2-we-U-Oe-C.mainAxis:be-U-Oe-C.mainAxis,oe=y?-P[x]/2+we+U+K+C.mainAxis:ge+U+K+C.mainAxis,de=a.elements.arrow&&Yn(a.elements.arrow),Re=de?I==="y"?de.clientTop||0:de.clientLeft||0:0,_e=(N=W?.[I])!=null?N:0,Te=E+Q-_e-Re,Ge=E+oe-_e,He=xl(b?wl(V,Te):V,E,b?Hn(pe,Ge):pe);T[I]=He,F[I]=He-E}if(s){var Pe,ze=I==="x"?Qa:it,Je=I==="x"?gt:dt,j=T[A],M=A==="y"?"height":"width",O=j+_[ze],te=j-_[Je],ie=[Qa,it].indexOf(h)!==-1,$=(Pe=W?.[A])!=null?Pe:0,ue=ie?O:j-P[M]-z[M]-$+C.altAxis,Ce=ie?j+P[M]+z[M]-$-C.altAxis:te,Me=b&&ie?AL(ue,j,Ce):xl(b?ue:O,j,b?Ce:te);T[A]=Me,F[A]=Me-j}a.modifiersData[i]=F}}var WL={name:"preventOverflow",enabled:!0,phase:"main",fn:g5,requiresIfExists:["offset"]};l();l();l();l();function zP(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function wP(e){return e===La(e)||!kt(e)?Cl(e):zP(e)}function k5(e){var a=e.getBoundingClientRect(),t=lr(a.width)/e.offsetWidth||1,i=lr(a.height)/e.offsetHeight||1;return t!==1||i!==1}function SP(e,a,t){t===void 0&&(t=!1);var i=kt(a),n=kt(a)&&k5(a),o=Mt(a),r=hn(e,n,t),s={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(i||!i&&!t)&&((Tt(a)!=="body"||Gl(o))&&(s=wP(a)),kt(a)?(d=hn(a,!0),d.x+=a.clientLeft,d.y+=a.clientTop):o&&(d.x=Dl(o))),{x:r.left+s.scrollLeft-d.x,y:r.top+s.scrollTop-d.y,width:r.width,height:r.height}}l();function h5(e){var a=new Map,t=new Set,i=[];e.forEach(function(o){a.set(o.name,o)});function n(o){t.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(s){if(!t.has(s)){var d=a.get(s);d&&n(d)}}),i.push(o)}return e.forEach(function(o){t.has(o.name)||n(o)}),i}function jP(e){var a=h5(e);return yL.reduce(function(t,i){return t.concat(a.filter(function(n){return n.phase===i}))},[])}l();function xP(e){var a;return function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(e())})})),a}}l();function CP(e){var a=e.reduce(function(t,i){var n=t[i.name];return t[i.name]=n?Object.assign({},n,i,{options:Object.assign({},n.options,i.options),data:Object.assign({},n.data,i.data)}):i,t},{});return Object.keys(a).map(function(t){return a[t]})}var EL={placement:"bottom",modifiers:[],strategy:"absolute"};function LL(){for(var e=arguments.length,a=new Array(e),t=0;t<e;t++)a[t]=arguments[t];return!a.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function ML(e){e===void 0&&(e={});var a=e,t=a.defaultModifiers,i=t===void 0?[]:t,n=a.defaultOptions,o=n===void 0?EL:n;return function(s,d,u){u===void 0&&(u=o);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},EL,o),modifiersData:{},elements:{reference:s,popper:d},attributes:{},styles:{}},m=[],g=!1,b={state:p,setOptions:function(h){var k=typeof h=="function"?h(p.options):h;v(),p.options=Object.assign({},o,p.options,k),p.scrollParents={reference:kn(s)?bs(s):s.contextElement?bs(s.contextElement):[],popper:bs(d)};var y=jP(CP([].concat(i,p.options.modifiers)));return p.orderedModifiers=y.filter(function(I){return I.enabled}),f(),b.update()},forceUpdate:function(){if(!g){var h=p.elements,k=h.reference,y=h.popper;if(LL(k,y)){p.rects={reference:SP(k,Yn(y),p.options.strategy==="fixed"),popper:Sl(y)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(C){return p.modifiersData[C.name]=Object.assign({},C.data)});for(var I=0;I<p.orderedModifiers.length;I++){if(p.reset===!0){p.reset=!1,I=-1;continue}var A=p.orderedModifiers[I],T=A.fn,P=A.options,z=P===void 0?{}:P,D=A.name;typeof T=="function"&&(p=T({state:p,options:z,name:D,instance:b})||p)}}}},update:xP(function(){return new Promise(function(_){b.forceUpdate(),_(p)})}),destroy:function(){v(),g=!0}};if(!LL(s,d))return b;b.setOptions(u).then(function(_){!g&&u.onFirstUpdate&&u.onFirstUpdate(_)});function f(){p.orderedModifiers.forEach(function(_){var h=_.name,k=_.options,y=k===void 0?{}:k,I=_.effect;if(typeof I=="function"){var A=I({state:p,name:h,instance:b,options:y}),T=function(){};m.push(A||T)}})}function v(){m.forEach(function(_){return _()}),m=[]}return b}}l();var b5=[zL,GL,PL,fL,DL,SL,WL,IL,CL],DP=ML({defaultModifiers:b5});l();var FL="Popper";function NL(e){return Lh(FL,e)}var Hye=MD(FL,["root"]);var gv=S(ne()),v5=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],y5=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function f5(e,a){if(a==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function GP(e){return typeof e=="function"?e():e}function _5(e){return e.nodeType!==void 0}var A5=()=>De({root:["root"]},SC(NL)),I5={},T5=Qt.forwardRef(function(a,t){var i;let{anchorEl:n,children:o,direction:r,disablePortal:s,modifiers:d,open:u,placement:p,popperOptions:m,popperRef:g,slotProps:b={},slots:f={},TransitionProps:v}=a,_=Aa(a,v5),h=Qt.useRef(null),k=qe(h,t),y=Qt.useRef(null),I=qe(y,g),A=Qt.useRef(I);pt(()=>{A.current=I},[I]),Qt.useImperativeHandle(g,()=>y.current,[]);let T=f5(p,r),[P,z]=Qt.useState(T),[D,C]=Qt.useState(GP(n));Qt.useEffect(()=>{y.current&&y.current.forceUpdate()}),Qt.useEffect(()=>{n&&C(GP(n))},[n]),pt(()=>{if(!D||!u)return;let Z=V=>{z(V.placement)},x=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:V})=>{Z(V)}}];d!=null&&(x=x.concat(d)),m&&m.modifiers!=null&&(x=x.concat(m.modifiers));let E=DP(D,h.current,H({placement:T},m,{modifiers:x}));return A.current(E),()=>{E.destroy(),A.current(null)}},[D,s,d,u,m,T]);let W={placement:P};v!==null&&(W.TransitionProps=v);let F=A5(),N=(i=f.root)!=null?i:"div",q=Km({elementType:N,externalSlotProps:b.root,externalForwardedProps:_,additionalProps:{role:"tooltip",ref:k},ownerState:a,className:F.root});return(0,gv.jsx)(N,H({},q,{children:typeof o=="function"?o(W):o}))}),WP=Qt.forwardRef(function(a,t){let{anchorEl:i,children:n,container:o,direction:r="ltr",disablePortal:s=!1,keepMounted:d=!1,modifiers:u,open:p,placement:m="bottom",popperOptions:g=I5,popperRef:b,style:f,transition:v=!1,slotProps:_={},slots:h={}}=a,k=Aa(a,y5),[y,I]=Qt.useState(!0),A=()=>{I(!1)},T=()=>{I(!0)};if(!d&&!p&&(!v||y))return null;let P;if(o)P=o;else if(i){let C=GP(i);P=C&&_5(C)?vi(C).body:vi(null).body}let z=!p&&d&&(!v||y)?"none":void 0,D=v?{in:p,onEnter:A,onExited:T}:void 0;return(0,gv.jsx)(bP,{disablePortal:s,container:P,children:(0,gv.jsx)(T5,H({anchorEl:i,direction:r,disablePortal:s,modifiers:u,ref:t,open:v?!y:p,placement:m,popperOptions:g,popperRef:b,slotProps:_,slots:h},k,{style:H({position:"fixed",top:0,left:0,display:z},f),TransitionProps:D,children:n}))})});l();l();va();var wa=S(R());Xe();l();var Ju={buttonClick:"buttonClick",browserAutoFill:"browserAutoFill"};l();var BL=e=>{let{label:a,value:t}=e;return typeof a=="string"?a:typeof t=="string"?t:String(e)};l();va();function RL(e,a){let{open:t}=e,{context:{selectionMode:i}}=a;if(a.type===Ju.buttonClick){var n;let d=(n=e.selectedValues[0])!=null?n:_t(null,"start",a.context);return H({},e,{open:!t,highlightedValue:t?null:d})}if(a.type===Ju.browserAutoFill)return Mh(a.item,e,a.context);let o=Fh(e,a);switch(a.type){case ya.keyDown:if(e.open){if(a.event.key==="Escape")return H({},o,{open:!1})}else{if(a.event.key==="ArrowDown"){var r;return H({},e,{open:!0,highlightedValue:(r=e.selectedValues[0])!=null?r:_t(null,"start",a.context)})}if(a.event.key==="ArrowUp"){var s;return H({},e,{open:!0,highlightedValue:(s=e.selectedValues[0])!=null?s:_t(null,"end",a.context)})}}break;case ya.itemClick:if(i==="single")return H({},o,{open:!1});break;case ya.blur:return H({},o,{open:!1});default:return o}return o}function P5(e){return Array.isArray(e)?e.length===0?"":JSON.stringify(e.map(a=>a.value)):e?.value==null?"":typeof e.value=="string"||typeof e.value=="number"?e.value:JSON.stringify(e.value)}function EP(e){let{areOptionsEqual:a,buttonRef:t,defaultOpen:i=!1,defaultValue:n,disabled:o=!1,listboxId:r,listboxRef:s,multiple:d=!1,name:u,required:p,onChange:m,onHighlightChange:g,onOpenChange:b,open:f,options:v,getOptionAsString:_=BL,getSerializedValue:h=P5,value:k,componentName:y="useSelect"}=e,I=wa.useRef(null),A=qe(t,I),T=wa.useRef(null),P=Ei(r),z;k===void 0&&n===void 0?z=[]:n!==void 0&&(d?z=n:z=n==null?[]:[n]);let D=wa.useMemo(()=>{if(k!==void 0)return d?k:k==null?[]:[k]},[k,d]),{subitems:C,contextValue:W}=YD(),F=wa.useMemo(()=>v!=null?new Map(v.map((me,ve)=>[me.value,{value:me.value,label:me.label,disabled:me.disabled,ref:wa.createRef(),id:`${P}_${ve}`}])):C,[v,C,P]),N=qe(s,T),{getRootProps:q,active:Z,focusVisible:x,rootRef:E}=Li({disabled:o,rootRef:A}),V=wa.useMemo(()=>Array.from(F.keys()),[F]),pe=wa.useCallback(me=>{if(a!==void 0){let ve=V.find(Se=>a(Se,me));return F.get(ve)}return F.get(me)},[F,a,V]),we=wa.useCallback(me=>{var ve;let Se=pe(me);return(ve=Se?.disabled)!=null?ve:!1},[pe]),be=wa.useCallback(me=>{let ve=pe(me);return ve?_(ve):""},[pe,_]),ge=wa.useMemo(()=>({selectedValues:D,open:f}),[D,f]),G=wa.useCallback(me=>{var ve;return(ve=F.get(me))==null?void 0:ve.id},[F]),ee=wa.useCallback((me,ve)=>{if(d)m?.(me,ve);else{var Se;m?.(me,(Se=ve[0])!=null?Se:null)}},[d,m]),X=wa.useCallback((me,ve)=>{g?.(me,ve??null)},[g]),Oe=wa.useCallback((me,ve,Se)=>{if(ve==="open"&&(b?.(Se),Se===!1&&me?.type!=="blur")){var Ba;(Ba=I.current)==null||Ba.focus()}},[b]),K=wa.useCallback(me=>{var ve,Se;return me==null?null:(ve=(Se=C.get(me))==null?void 0:Se.ref.current)!=null?ve:null},[C]),U={getInitialState:()=>{var me;return{highlightedValue:null,selectedValues:(me=z)!=null?me:[],open:i}},getItemId:G,controlledProps:ge,focusManagement:"DOM",getItemDomElement:K,itemComparer:a,isItemDisabled:we,rootRef:N,onChange:ee,onHighlightChange:X,onStateChange:Oe,reducerActionContext:wa.useMemo(()=>({multiple:d}),[d]),items:V,getItemAsString:be,selectionMode:d?"multiple":"single",stateReducer:RL,componentName:y},{dispatch:Q,getRootProps:oe,contextValue:de,state:{open:Re,highlightedValue:_e,selectedValues:Te},rootRef:Ge}=eI(U),He=wa.useRef(Re);pt(()=>{if(Re&&_e!==null){var me;let ve=(me=pe(_e))==null?void 0:me.ref;if(!T.current||!(ve!=null&&ve.current))return;He.current||ve.current.focus({preventScroll:!0});let Se=T.current.getBoundingClientRect(),Ba=ve.current.getBoundingClientRect();Ba.top<Se.top?T.current.scrollTop-=Se.top-Ba.top:Ba.bottom>Se.bottom&&(T.current.scrollTop+=Ba.bottom-Se.bottom)}},[Re,_e,pe]);let Pe=wa.useCallback(me=>pe(me),[pe]),ze=me=>ve=>{var Se;if(me==null||(Se=me.onClick)==null||Se.call(me,ve),!ve.defaultMuiPrevented){let Ba={type:Ju.buttonClick,event:ve};Q(Ba)}},Je=me=>ve=>{var Se;(Se=me.onKeyDown)==null||Se.call(me,ve),!ve.defaultMuiPrevented&&(ve.key==="ArrowDown"||ve.key==="ArrowUp")&&(ve.preventDefault(),Q({type:ya.keyDown,key:ve.key,event:ve}))},j=(me={})=>({onClick:ze(me),onKeyDown:Je(me)}),M=(me={})=>H({},me,j(me),{role:"combobox","aria-expanded":Re,"aria-controls":P}),O=(me={})=>{let ve=Wa(me),Se=hu(M,q);return H({},me,Se(ve))},te=me=>ve=>{var Se,Ba;(Se=me.onBlur)==null||Se.call(me,ve),!ve.defaultMuiPrevented&&((Ba=T.current)!=null&&Ba.contains(ve.relatedTarget)||ve.relatedTarget===I.current)&&(ve.defaultMuiPrevented=!0)},ie=(me={})=>({onBlur:te(me)}),$=(me={})=>{let ve=Wa(me),Se=hu(ie,oe);return H({id:P,role:"listbox","aria-multiselectable":d?"true":void 0},me,Se(ve))};wa.useDebugValue({selectedOptions:Te,highlightedOption:_e,open:Re});let ue=wa.useMemo(()=>H({},de,W),[de,W]),Ce;e.multiple?Ce=Te:Ce=Te.length>0?Te[0]:null;let Me;if(d)Me=Ce.map(me=>Pe(me)).filter(me=>me!==void 0);else{var Ue;Me=(Ue=Pe(Ce))!=null?Ue:null}let Na=me=>ve=>{var Se;if(me==null||(Se=me.onChange)==null||Se.call(me,ve),ve.defaultMuiPrevented)return;let Ba=F.get(ve.target.value);ve.target.value===""?Q({type:ya.clearSelection}):Ba!==void 0&&Q({type:Ju.browserAutoFill,item:Ba.value,event:ve})};return{buttonActive:Z,buttonFocusVisible:x,buttonRef:E,contextValue:ue,disabled:o,dispatch:Q,getButtonProps:O,getHiddenInputProps:(me={})=>{let ve=Wa(me);return H({name:u,tabIndex:-1,"aria-hidden":!0,required:p?!0:void 0,value:h(Me),style:Wh},me,{onChange:Na(ve)})},getListboxProps:$,getOptionMetadata:Pe,listboxRef:Ge,open:Re,options:V,value:Ce,highlightedOption:_e}}l();var LP=S(R());var MP=S(ne());function ZL(e){let{value:a,children:t}=e,{dispatch:i,getItemIndex:n,getItemState:o,registerItem:r,totalSubitemCount:s}=a,d=LP.useMemo(()=>({dispatch:i,getItemState:o,getItemIndex:n}),[i,n,o]),u=LP.useMemo(()=>({getItemIndex:n,registerItem:r,totalSubitemCount:s}),[r,n,s]);return(0,MP.jsx)(Bh.Provider,{value:u,children:(0,MP.jsx)(Hr.Provider,{value:d,children:t})})}l();l();va();var Xu=S(R());Xe();function FP(e={}){let{autoHideDuration:a=null,disableWindowBlurListener:t=!1,onClose:i,open:n,resumeHideDuration:o}=e,r=Hm();Xu.useEffect(()=>{if(!n)return;function h(k){k.defaultPrevented||(k.key==="Escape"||k.key==="Esc")&&i?.(k,"escapeKeyDown")}return document.addEventListener("keydown",h),()=>{document.removeEventListener("keydown",h)}},[n,i]);let s=Ko((h,k)=>{i?.(h,k)}),d=Ko(h=>{!i||h==null||r.start(h,()=>{s(null,"timeout")})});Xu.useEffect(()=>(n&&d(a),r.clear),[n,a,d,r]);let u=h=>{i?.(h,"clickaway")},p=r.clear,m=Xu.useCallback(()=>{a!=null&&d(o??a*.5)},[a,o,d]),g=h=>k=>{let y=h.onBlur;y?.(k),m()},b=h=>k=>{let y=h.onFocus;y?.(k),p()},f=h=>k=>{let y=h.onMouseEnter;y?.(k),p()},v=h=>k=>{let y=h.onMouseLeave;y?.(k),m()};return Xu.useEffect(()=>{if(!t&&n)return window.addEventListener("focus",m),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",p)}},[t,n,m,p]),{getRootProps:(h={})=>{let k=H({},Wa(e),Wa(h));return H({role:"presentation"},h,k,{onBlur:g(k),onFocus:b(k),onMouseEnter:f(k),onMouseLeave:v(k)})},onClickAway:u}}l();l();va();rn();var vn=S(R());Xe();var NP=S(ne()),qL=S(ne()),z5=["onChange","maxRows","minRows","style","value"];function kv(e){return parseInt(e,10)||0}var w5={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function S5(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}var BP=vn.forwardRef(function(a,t){let{onChange:i,maxRows:n,minRows:o=1,style:r,value:s}=a,d=Aa(a,z5),{current:u}=vn.useRef(s!=null),p=vn.useRef(null),m=qe(t,p),g=vn.useRef(null),b=vn.useRef(null),f=vn.useCallback(()=>{let h=p.current,y=Or(h).getComputedStyle(h);if(y.width==="0px")return{outerHeightStyle:0,overflowing:!1};let I=b.current;I.style.width=y.width,I.value=h.value||a.placeholder||"x",I.value.slice(-1)===`
9
9
  `&&(I.value+=" ");let A=y.boxSizing,T=kv(y.paddingBottom)+kv(y.paddingTop),P=kv(y.borderBottomWidth)+kv(y.borderTopWidth),z=I.scrollHeight;I.value="x";let D=I.scrollHeight,C=z;o&&(C=Math.max(Number(o)*D,C)),n&&(C=Math.min(Number(n)*D,C)),C=Math.max(C,D);let W=C+(A==="border-box"?T+P:0),F=Math.abs(C-z)<=1;return{outerHeightStyle:W,overflowing:F}},[n,o,a.placeholder]),v=vn.useCallback(()=>{let h=f();if(S5(h))return;let k=h.outerHeightStyle,y=p.current;g.current!==k&&(g.current=k,y.style.height=`${k}px`),y.style.overflow=h.overflowing?"hidden":""},[f]);return pt(()=>{let h=()=>{v()},k,y=()=>{cancelAnimationFrame(k),k=requestAnimationFrame(()=>{h()})},I=ol(h),A=p.current,T=Or(A);T.addEventListener("resize",I);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(h),P.observe(A)),()=>{I.clear(),cancelAnimationFrame(k),T.removeEventListener("resize",I),P&&P.disconnect()}},[f,v]),pt(()=>{v()}),(0,qL.jsxs)(vn.Fragment,{children:[(0,NP.jsx)("textarea",H({value:s,onChange:h=>{u||v(),i&&i(h)},ref:m,rows:o,style:r},d)),(0,NP.jsx)("textarea",{"aria-hidden":!0,className:a.className,readOnly:!0,ref:b,tabIndex:-1,style:H({},w5.shadow,r,{paddingTop:0,paddingBottom:0})})]})});l();je();l();fs();l();Nl();l();var gM=S(R());fs();function j3(e){return Object.keys(e).length===0}function x3(e=null){let a=gM.useContext(on);return!a||j3(a)?e:a}var Pv=x3;var C3=To();function D3(e=C3){return Pv(e)}var zv=D3;$P();JP();XP();ez();Ll();Bl();l();va();rn();var bM=S(R());Dt();fs();Bl();var vM=S(ne()),E3=["className","component"];function wv(e={}){let{themeId:a,defaultTheme:t,defaultClassName:i="MuiBox-root",generateClassName:n}=e,o=ep("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(Ki);return bM.forwardRef(function(d,u){let p=zv(t),m=Po(d),{className:g,component:b="div"}=m,f=Aa(m,E3);return(0,vM.jsx)(o,H({as:b,ref:u,className:ua(g,n?n(i):i),theme:a&&p[a]||p},f))})}l();va();rn();fs();bi();Nl();Bl();var L3=["ownerState"],M3=["variants"],F3=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function N3(e){return Object.keys(e).length===0}function B3(e){return typeof e=="string"&&e.charCodeAt(0)>96}function tz(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}var R3=To(),Z3=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Sv({defaultTheme:e,theme:a,themeId:t}){return N3(a)?e:a[t]||a}function q3(e){return e?(a,t)=>t[e]:null}function jv(e,a){let{ownerState:t}=a,i=Aa(a,L3),n=typeof e=="function"?e(H({ownerState:t},i)):e;if(Array.isArray(n))return n.flatMap(o=>jv(o,H({ownerState:t},i)));if(n&&typeof n=="object"&&Array.isArray(n.variants)){let{variants:o=[]}=n,s=Aa(n,M3);return o.forEach(d=>{let u=!0;typeof d.props=="function"?u=d.props(H({ownerState:t},i,t)):Object.keys(d.props).forEach(p=>{t?.[p]!==d.props[p]&&i[p]!==d.props[p]&&(u=!1)}),u&&(Array.isArray(s)||(s=[s]),s.push(typeof d.style=="function"?d.style(H({ownerState:t},i,t)):d.style))}),s}return n}function ip(e={}){let{themeId:a,defaultTheme:t=R3,rootShouldForwardProp:i=tz,slotShouldForwardProp:n=tz}=e,o=r=>Ki(H({},r,{theme:Sv(H({},r,{defaultTheme:t,themeId:a}))}));return o.__mui_systemSx=!0,(r,s={})=>{qP(r,A=>A.filter(T=>!(T!=null&&T.__mui_systemSx)));let{name:d,slot:u,skipVariantsResolver:p,skipSx:m,overridesResolver:g=q3(Z3(u))}=s,b=Aa(s,F3),f=p!==void 0?p:u&&u!=="Root"&&u!=="root"||!1,v=m||!1,_,h=tz;u==="Root"||u==="root"?h=i:u?h=n:B3(r)&&(h=void 0);let k=ep(r,H({shouldForwardProp:h,label:_},b)),y=A=>typeof A=="function"&&A.__emotion_real!==A||Mn(A)?T=>jv(A,H({},T,{theme:Sv({theme:T.theme,defaultTheme:t,themeId:a})})):A,I=(A,...T)=>{let P=y(A),z=T?T.map(y):[];d&&g&&z.push(W=>{let F=Sv(H({},W,{defaultTheme:t,themeId:a}));if(!F.components||!F.components[d]||!F.components[d].styleOverrides)return null;let N=F.components[d].styleOverrides,q={};return Object.entries(N).forEach(([Z,x])=>{q[Z]=jv(x,H({},W,{theme:F}))}),g(W,q)}),d&&!f&&z.push(W=>{var F;let N=Sv(H({},W,{defaultTheme:t,themeId:a})),q=N==null||(F=N.components)==null||(F=F[d])==null?void 0:F.variants;return jv({variants:q},H({},W,{theme:N}))}),v||z.push(o);let D=z.length-T.length;if(Array.isArray(A)&&D>0){let W=new Array(D).fill("");P=[...A,...W],P.raw=[...A.raw,...W]}let C=k(P,...z);return r.muiName&&(C.muiName=r.muiName),C};return k.withConfig&&(I.withConfig=k.withConfig),I}}l();var V3=ip(),yM=V3;vv();QP();l();l();l();VA();function xv(e){let{theme:a,name:t,props:i}=e;return!a||!a.components||!a.components[t]||!a.components[t].defaultProps?i:Kr(a.components[t].defaultProps,i)}function Rl({props:e,name:a,defaultTheme:t,themeId:i}){let n=zv(t);return i&&(n=n[i]||n),xv({theme:n,name:a,props:e})}l();Ur();function U3(e){e=e.slice(1);let a=new RegExp(`.{1,${e.length>=6?2:1}}`,"g"),t=e.match(a);return t&&t[0].length===1&&(t=t.map(i=>i+i)),t?`rgb${t.length===4?"a":""}(${t.map((i,n)=>n<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function fM(e){if(e.type)return e;if(e.charAt(0)==="#")return fM(U3(e));let a=e.indexOf("("),t=e.substring(0,a);if(["rgb","rgba","hsl","hsla","color"].indexOf(t)===-1)throw new Error(Gt(9,e));let i=e.substring(a+1,e.length-1),n;if(t==="color"){if(i=i.split(" "),n=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n)===-1)throw new Error(Gt(10,n))}else i=i.split(",");return i=i.map(o=>parseFloat(o)),{type:t,values:i,colorSpace:n}}var Ps=e=>{let a=fM(e);return a.values.slice(0,3).map((t,i)=>a.type.indexOf("hsl")!==-1&&i!==0?`${t}%`:t).join(" ")};l();l();va();var DM=S(R());l();l();l();va();var IM=S(R());l();var _M=S(R()),O3=_M.createContext(null),Cv=O3;l();l();var iz=S(R());function ur(){return iz.useContext(Cv)}l();var K3=typeof Symbol=="function"&&Symbol.for,AM=K3?Symbol.for("mui.nested"):"__THEME_NESTED__";var TM=S(ne());function H3(e,a){return typeof a=="function"?a(e):H({},e,a)}function Y3(e){let{children:a,theme:t}=e,i=ur(),n=IM.useMemo(()=>{let o=i===null?t:H3(i,t);return o!=null&&(o[AM]=i!==null),o},[t,i]);return(0,TM.jsx)(Cv.Provider,{value:n,children:a})}var Dv=Y3;fs();l();va();rn();var nz=S(R());var PM=S(ne()),Q3=["value"],$3=nz.createContext();function J3(e){let{value:a}=e,t=Aa(e,Q3);return(0,PM.jsx)($3.Provider,H({value:a??!0},t))}var zM=J3;rz();var tg=S(ne()),xM={};function CM(e,a,t,i=!1){return DM.useMemo(()=>{let n=e&&a[e]||a;if(typeof t=="function"){let o=t(n),r=e?H({},a,{[e]:o}):o;return i?()=>r:r}return e?H({},a,{[e]:t}):H({},a,t)},[e,a,t,i])}function aQ(e){let{children:a,theme:t,themeId:i}=e,n=Pv(xM),o=ur()||xM,r=CM(i,n,t),s=CM(i,o,t,!0),d=r.direction==="rtl";return(0,tg.jsx)(Dv,{theme:s,children:(0,tg.jsx)(on.Provider,{value:r,children:(0,tg.jsx)(zM,{value:d,children:(0,tg.jsx)(Wv,{value:r?.components,children:a})})})})}var sz=aQ;l();va();rn();Ur();var $t=S(R());bi();fs();l();var kPe=S(R()),GM=S(ne()),ig="mode",ng="color-scheme",lz="data-color-scheme";function dz(e){let{defaultMode:a="light",defaultLightColorScheme:t="light",defaultDarkColorScheme:i="dark",modeStorageKey:n=ig,colorSchemeStorageKey:o=ng,attribute:r=lz,colorSchemeNode:s="document.documentElement",nonce:d}=e||{};return(0,GM.jsx)("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?d:"",dangerouslySetInnerHTML:{__html:`(function() {
10
10
  try {
11
11
  var mode = localStorage.getItem('${n}') || '${a}';
@@ -114,7 +114,7 @@ try {
114
114
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...t){let i=new this(a);return t.forEach(n=>i.set(n)),i}static accessor(a){let i=(this[iR]=this[iR]={accessors:{}}).accessors,n=this.prototype;function o(r){let s=xg(r);i[s]||(a9(n,r),i[s]=!0)}return B.isArray(a)?a.forEach(o):o(a),this}};zp.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);B.reduceDescriptors(zp.prototype,({value:e},a)=>{let t=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(i){this[t]=i}}});B.freezeMethods(zp);var bt=zp;function Cg(e,a){let t=this||Pp,i=a||t,n=bt.from(i.headers),o=i.data;return B.forEach(e,function(s){o=s.call(t,o,n.normalize(),a?a.status:void 0)}),n.normalize(),o}l();function Dg(e){return!!(e&&e.__CANCEL__)}l();function nR(e,a,t){Le.call(this,e??"canceled",Le.ERR_CANCELED,a,t),this.name="CanceledError"}B.inherits(nR,Le,{__CANCEL__:!0});var Wo=nR;l();l();l();function Gg(e,a,t){let i=t.config.validateStatus;!t.status||!i||i(t.status)?e(t):a(new Le("Request failed with status code "+t.status,[Le.ERR_BAD_REQUEST,Le.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}l();function zw(e){let a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}l();l();function t9(e,a){e=e||10;let t=new Array(e),i=new Array(e),n=0,o=0,r;return a=a!==void 0?a:1e3,function(d){let u=Date.now(),p=i[o];r||(r=u),t[n]=d,i[n]=u;let m=o,g=0;for(;m!==n;)g+=t[m++],m=m%e;if(n=(n+1)%e,n===o&&(o=(o+1)%e),u-r<a)return;let b=p&&u-p;return b?Math.round(g*1e3/b):void 0}}var oR=t9;l();function i9(e,a){let t=0,i=1e3/a,n,o,r=(u,p=Date.now())=>{t=p,n=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{let p=Date.now(),m=p-t;m>=i?r(u,p):(n=u,o||(o=setTimeout(()=>{o=null,r(n)},i-m)))},()=>n&&r(n)]}var rR=i9;var wp=(e,a,t=3)=>{let i=0,n=oR(50,250);return rR(o=>{let r=o.loaded,s=o.lengthComputable?o.total:void 0,d=r-i,u=n(d),p=r<=s;i=r;let m={loaded:r,total:s,progress:s?r/s:void 0,bytes:d,rate:u||void 0,estimated:u&&s&&p?(s-r)/u:void 0,event:o,lengthComputable:s!=null,[a?"download":"upload"]:!0};e(m)},t)},ww=(e,a)=>{let t=e!=null;return[i=>a[0]({lengthComputable:t,total:e,loaded:i}),a[1]]},Sw=e=>(...a)=>B.asap(()=>e(...a));l();l();var sR=Oa.hasStandardBrowserEnv?((e,a)=>t=>(t=new URL(t,Oa.origin),e.protocol===t.protocol&&e.host===t.host&&(a||e.port===t.port)))(new URL(Oa.origin),Oa.navigator&&/(msie|trident)/i.test(Oa.navigator.userAgent)):()=>!0;l();var lR=Oa.hasStandardBrowserEnv?{write(e,a,t,i,n,o){let r=[e+"="+encodeURIComponent(a)];B.isNumber(t)&&r.push("expires="+new Date(t).toGMTString()),B.isString(i)&&r.push("path="+i),B.isString(n)&&r.push("domain="+n),o===!0&&r.push("secure"),document.cookie=r.join("; ")},read(e){let a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};l();l();function jw(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}l();function xw(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function Wg(e,a,t){let i=!jw(a);return e&&(i||t==!1)?xw(e,a):a}l();var dR=e=>e instanceof bt?{...e}:e;function to(e,a){a=a||{};let t={};function i(u,p,m,g){return B.isPlainObject(u)&&B.isPlainObject(p)?B.merge.call({caseless:g},u,p):B.isPlainObject(p)?B.merge({},p):B.isArray(p)?p.slice():p}function n(u,p,m,g){if(B.isUndefined(p)){if(!B.isUndefined(u))return i(void 0,u,m,g)}else return i(u,p,m,g)}function o(u,p){if(!B.isUndefined(p))return i(void 0,p)}function r(u,p){if(B.isUndefined(p)){if(!B.isUndefined(u))return i(void 0,u)}else return i(void 0,p)}function s(u,p,m){if(m in a)return i(u,p);if(m in e)return i(void 0,u)}let d={url:o,method:o,data:o,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:s,headers:(u,p,m)=>n(dR(u),dR(p),m,!0)};return B.forEach(Object.keys(Object.assign({},e,a)),function(p){let m=d[p]||n,g=m(e[p],a[p],p);B.isUndefined(g)&&m!==s||(t[p]=g)}),t}var xy=e=>{let a=to({},e),{data:t,withXSRFToken:i,xsrfHeaderName:n,xsrfCookieName:o,headers:r,auth:s}=a;a.headers=r=bt.from(r),a.url=jg(Wg(a.baseURL,a.url,a.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&r.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let d;if(B.isFormData(t)){if(Oa.hasStandardBrowserEnv||Oa.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if((d=r.getContentType())!==!1){let[u,...p]=d?d.split(";").map(m=>m.trim()).filter(Boolean):[];r.setContentType([u||"multipart/form-data",...p].join("; "))}}if(Oa.hasStandardBrowserEnv&&(i&&B.isFunction(i)&&(i=i(a)),i||i!==!1&&sR(a.url))){let u=n&&o&&lR.read(o);u&&r.set(n,u)}return a};var n9=typeof XMLHttpRequest<"u",uR=n9&&function(e){return new Promise(function(t,i){let n=xy(e),o=n.data,r=bt.from(n.headers).normalize(),{responseType:s,onUploadProgress:d,onDownloadProgress:u}=n,p,m,g,b,f;function v(){b&&b(),f&&f(),n.cancelToken&&n.cancelToken.unsubscribe(p),n.signal&&n.signal.removeEventListener("abort",p)}let _=new XMLHttpRequest;_.open(n.method.toUpperCase(),n.url,!0),_.timeout=n.timeout;function h(){if(!_)return;let y=bt.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),A={data:!s||s==="text"||s==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:y,config:e,request:_};Gg(function(P){t(P),v()},function(P){i(P),v()},A),_=null}"onloadend"in _?_.onloadend=h:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(h)},_.onabort=function(){_&&(i(new Le("Request aborted",Le.ECONNABORTED,e,_)),_=null)},_.onerror=function(){i(new Le("Network Error",Le.ERR_NETWORK,e,_)),_=null},_.ontimeout=function(){let I=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded",A=n.transitional||wy;n.timeoutErrorMessage&&(I=n.timeoutErrorMessage),i(new Le(I,A.clarifyTimeoutError?Le.ETIMEDOUT:Le.ECONNABORTED,e,_)),_=null},o===void 0&&r.setContentType(null),"setRequestHeader"in _&&B.forEach(r.toJSON(),function(I,A){_.setRequestHeader(A,I)}),B.isUndefined(n.withCredentials)||(_.withCredentials=!!n.withCredentials),s&&s!=="json"&&(_.responseType=n.responseType),u&&([g,f]=wp(u,!0),_.addEventListener("progress",g)),d&&_.upload&&([m,b]=wp(d),_.upload.addEventListener("progress",m),_.upload.addEventListener("loadend",b)),(n.cancelToken||n.signal)&&(p=y=>{_&&(i(!y||y.type?new Wo(null,e,_):y),_.abort(),_=null)},n.cancelToken&&n.cancelToken.subscribe(p),n.signal&&(n.signal.aborted?p():n.signal.addEventListener("abort",p)));let k=zw(n.url);if(k&&Oa.protocols.indexOf(k)===-1){i(new Le("Unsupported protocol "+k+":",Le.ERR_BAD_REQUEST,e));return}_.send(o||null)})};l();l();var o9=(e,a)=>{let{length:t}=e=e?e.filter(Boolean):[];if(a||t){let i=new AbortController,n,o=function(u){if(!n){n=!0,s();let p=u instanceof Error?u:this.reason;i.abort(p instanceof Le?p:new Wo(p instanceof Error?p.message:p))}},r=a&&setTimeout(()=>{r=null,o(new Le(`timeout ${a} of ms exceeded`,Le.ETIMEDOUT))},a),s=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));let{signal:d}=i;return d.unsubscribe=()=>B.asap(s),d}},pR=o9;l();var r9=function*(e,a){let t=e.byteLength;if(!a||t<a){yield e;return}let i=0,n;for(;i<t;)n=i+a,yield e.slice(i,n),i=n},s9=async function*(e,a){for await(let t of l9(e))yield*r9(t,a)},l9=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let a=e.getReader();try{for(;;){let{done:t,value:i}=await a.read();if(t)break;yield i}}finally{await a.cancel()}},Cw=(e,a,t,i)=>{let n=s9(e,a),o=0,r,s=d=>{r||(r=!0,i&&i(d))};return new ReadableStream({async pull(d){try{let{done:u,value:p}=await n.next();if(u){s(),d.close();return}let m=p.byteLength;if(t){let g=o+=m;t(g)}d.enqueue(new Uint8Array(p))}catch(u){throw s(u),u}},cancel(d){return s(d),n.return()}},{highWaterMark:2})};var Dy=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",cR=Dy&&typeof ReadableStream=="function",d9=Dy&&(typeof TextEncoder=="function"?(e=>a=>e.encode(a))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),gR=(e,...a)=>{try{return!!e(...a)}catch{return!1}},u9=cR&&gR(()=>{let e=!1,a=new Request(Oa.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!a}),mR=64*1024,Dw=cR&&gR(()=>B.isReadableStream(new Response("").body)),Cy={stream:Dw&&(e=>e.body)};Dy&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(a=>{!Cy[a]&&(Cy[a]=B.isFunction(e[a])?t=>t[a]():(t,i)=>{throw new Le(`Response type '${a}' is not supported`,Le.ERR_NOT_SUPPORT,i)})})})(new Response);var p9=async e=>{if(e==null)return 0;if(B.isBlob(e))return e.size;if(B.isSpecCompliantForm(e))return(await new Request(Oa.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(B.isArrayBufferView(e)||B.isArrayBuffer(e))return e.byteLength;if(B.isURLSearchParams(e)&&(e=e+""),B.isString(e))return(await d9(e)).byteLength},m9=async(e,a)=>{let t=B.toFiniteNumber(e.getContentLength());return t??p9(a)},kR=Dy&&(async e=>{let{url:a,method:t,data:i,signal:n,cancelToken:o,timeout:r,onDownloadProgress:s,onUploadProgress:d,responseType:u,headers:p,withCredentials:m="same-origin",fetchOptions:g}=xy(e);u=u?(u+"").toLowerCase():"text";let b=pR([n,o&&o.toAbortSignal()],r),f,v=b&&b.unsubscribe&&(()=>{b.unsubscribe()}),_;try{if(d&&u9&&t!=="get"&&t!=="head"&&(_=await m9(p,i))!==0){let A=new Request(a,{method:"POST",body:i,duplex:"half"}),T;if(B.isFormData(i)&&(T=A.headers.get("content-type"))&&p.setContentType(T),A.body){let[P,z]=ww(_,wp(Sw(d)));i=Cw(A.body,mR,P,z)}}B.isString(m)||(m=m?"include":"omit");let h="credentials"in Request.prototype;f=new Request(a,{...g,signal:b,method:t.toUpperCase(),headers:p.normalize().toJSON(),body:i,duplex:"half",credentials:h?m:void 0});let k=await fetch(f,g),y=Dw&&(u==="stream"||u==="response");if(Dw&&(s||y&&v)){let A={};["status","statusText","headers"].forEach(D=>{A[D]=k[D]});let T=B.toFiniteNumber(k.headers.get("content-length")),[P,z]=s&&ww(T,wp(Sw(s),!0))||[];k=new Response(Cw(k.body,mR,P,()=>{z&&z(),v&&v()}),A)}u=u||"text";let I=await Cy[B.findKey(Cy,u)||"text"](k,e);return!y&&v&&v(),await new Promise((A,T)=>{Gg(A,T,{data:I,headers:bt.from(k.headers),status:k.status,statusText:k.statusText,config:e,request:f})})}catch(h){throw v&&v(),h&&h.name==="TypeError"&&/Load failed|fetch/i.test(h.message)?Object.assign(new Le("Network Error",Le.ERR_NETWORK,e,f),{cause:h.cause||h}):Le.from(h,h&&h.code,e,f)}});var Gw={http:Py,xhr:uR,fetch:kR};B.forEach(Gw,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});var hR=e=>`- ${e}`,c9=e=>B.isFunction(e)||e===null||e===!1,Gy={getAdapter:e=>{e=B.isArray(e)?e:[e];let{length:a}=e,t,i,n={};for(let o=0;o<a;o++){t=e[o];let r;if(i=t,!c9(t)&&(i=Gw[(r=String(t)).toLowerCase()],i===void 0))throw new Le(`Unknown adapter '${r}'`);if(i)break;n[r||"#"+o]=i}if(!i){let o=Object.entries(n).map(([s,d])=>`adapter ${s} `+(d===!1?"is not supported by the environment":"is not available in the build")),r=a?o.length>1?`since :
115
115
  `+o.map(hR).join(`
116
116
  `):" "+hR(o[0]):"as no adapter specified";throw new Le("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return i},adapters:Gw};function Ww(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Wo(null,e)}function Wy(e){return Ww(e),e.headers=bt.from(e.headers),e.data=Cg.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Gy.getAdapter(e.adapter||Pp.adapter)(e).then(function(i){return Ww(e),i.data=Cg.call(e,e.transformResponse,i),i.headers=bt.from(i.headers),i},function(i){return Dg(i)||(Ww(e),i&&i.response&&(i.response.data=Cg.call(e,e.transformResponse,i.response),i.response.headers=bt.from(i.response.headers))),Promise.reject(i)})}l();l();var Ey="1.10.0";var Ly={};["object","boolean","number","function","string","symbol"].forEach((e,a)=>{Ly[e]=function(i){return typeof i===e||"a"+(a<1?"n ":" ")+e}});var bR={};Ly.transitional=function(a,t,i){function n(o,r){return"[Axios v"+Ey+"] Transitional option '"+o+"'"+r+(i?". "+i:"")}return(o,r,s)=>{if(a===!1)throw new Le(n(r," has been removed"+(t?" in "+t:"")),Le.ERR_DEPRECATED);return t&&!bR[r]&&(bR[r]=!0,console.warn(n(r," has been deprecated since v"+t+" and will be removed in the near future"))),a?a(o,r,s):!0}};Ly.spelling=function(a){return(t,i)=>(console.warn(`${i} is likely a misspelling of ${a}`),!0)};function g9(e,a,t){if(typeof e!="object")throw new Le("options must be an object",Le.ERR_BAD_OPTION_VALUE);let i=Object.keys(e),n=i.length;for(;n-- >0;){let o=i[n],r=a[o];if(r){let s=e[o],d=s===void 0||r(s,o,e);if(d!==!0)throw new Le("option "+o+" must be "+d,Le.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Le("Unknown option "+o,Le.ERR_BAD_OPTION)}}var Eg={assertOptions:g9,validators:Ly};var Eo=Eg.validators,Sp=class{constructor(a){this.defaults=a||{},this.interceptors={request:new yw,response:new yw}}async request(a,t){try{return await this._request(a,t)}catch(i){if(i instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;let o=n.stack?n.stack.replace(/^.+\n/,""):"";try{i.stack?o&&!String(i.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(i.stack+=`
117
- `+o):i.stack=o}catch{}}throw i}}_request(a,t){typeof a=="string"?(t=t||{},t.url=a):t=a||{},t=to(this.defaults,t);let{transitional:i,paramsSerializer:n,headers:o}=t;i!==void 0&&Eg.assertOptions(i,{silentJSONParsing:Eo.transitional(Eo.boolean),forcedJSONParsing:Eo.transitional(Eo.boolean),clarifyTimeoutError:Eo.transitional(Eo.boolean)},!1),n!=null&&(B.isFunction(n)?t.paramsSerializer={serialize:n}:Eg.assertOptions(n,{encode:Eo.function,serialize:Eo.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Eg.assertOptions(t,{baseUrl:Eo.spelling("baseURL"),withXsrfToken:Eo.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=o&&B.merge(o.common,o[t.method]);o&&B.forEach(["delete","get","head","post","put","patch","common"],f=>{delete o[f]}),t.headers=bt.concat(r,o);let s=[],d=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(t)===!1||(d=d&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});let u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let p,m=0,g;if(!d){let f=[Wy.bind(this),void 0];for(f.unshift.apply(f,s),f.push.apply(f,u),g=f.length,p=Promise.resolve(t);m<g;)p=p.then(f[m++],f[m++]);return p}g=s.length;let b=t;for(m=0;m<g;){let f=s[m++],v=s[m++];try{b=f(b)}catch(_){v.call(this,_);break}}try{p=Wy.call(this,b)}catch(f){return Promise.reject(f)}for(m=0,g=u.length;m<g;)p=p.then(u[m++],u[m++]);return p}getUri(a){a=to(this.defaults,a);let t=Wg(a.baseURL,a.url,a.allowAbsoluteUrls);return jg(t,a.params,a.paramsSerializer)}};B.forEach(["delete","get","head","options"],function(a){Sp.prototype[a]=function(t,i){return this.request(to(i||{},{method:a,url:t,data:(i||{}).data}))}});B.forEach(["post","put","patch"],function(a){function t(i){return function(o,r,s){return this.request(to(s||{},{method:a,headers:i?{"Content-Type":"multipart/form-data"}:{},url:o,data:r}))}}Sp.prototype[a]=t(),Sp.prototype[a+"Form"]=t(!0)});var Lg=Sp;l();var Ew=class e{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(o){t=o});let i=this;this.promise.then(n=>{if(!i._listeners)return;let o=i._listeners.length;for(;o-- >0;)i._listeners[o](n);i._listeners=null}),this.promise.then=n=>{let o,r=new Promise(s=>{i.subscribe(s),o=s}).then(n);return r.cancel=function(){i.unsubscribe(o)},r},a(function(o,r,s){i.reason||(i.reason=new Wo(o,r,s),t(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;let t=this._listeners.indexOf(a);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let a=new AbortController,t=i=>{a.abort(i)};return this.subscribe(t),a.signal.unsubscribe=()=>this.unsubscribe(t),a.signal}static source(){let a;return{token:new e(function(n){a=n}),cancel:a}}},vR=Ew;l();function Lw(e){return function(t){return e.apply(null,t)}}l();function Mw(e){return B.isObject(e)&&e.isAxiosError===!0}l();var Fw={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Fw).forEach(([e,a])=>{Fw[a]=e});var yR=Fw;function fR(e){let a=new Lg(e),t=zg(Lg.prototype.request,a);return B.extend(t,Lg.prototype,a,{allOwnKeys:!0}),B.extend(t,a,null,{allOwnKeys:!0}),t.create=function(n){return fR(to(e,n))},t}var ut=fR(Pp);ut.Axios=Lg;ut.CanceledError=Wo;ut.CancelToken=vR;ut.isCancel=Dg;ut.VERSION=Ey;ut.toFormData=Cs;ut.AxiosError=Le;ut.Cancel=ut.CanceledError;ut.all=function(a){return Promise.all(a)};ut.spread=Lw;ut.isAxiosError=Mw;ut.mergeConfig=to;ut.AxiosHeaders=bt;ut.formToJSON=e=>Sy(B.isHTMLForm(e)?new FormData(e):e);ut.getAdapter=Gy.getAdapter;ut.HttpStatusCode=yR;ut.default=ut;var fr=ut;var{Axios:JUe,AxiosError:XUe,CanceledError:eOe,isCancel:aOe,CancelToken:tOe,VERSION:iOe,all:nOe,Cancel:oOe,isAxiosError:rOe,spread:sOe,toFormData:lOe,AxiosHeaders:dOe,HttpStatusCode:uOe,formToJSON:pOe,getAdapter:mOe,mergeConfig:cOe}=fr;l();l();var mk=S(ne(),1),No=S(R(),1);l();var _R=S(R(),1),jp=(0,_R.createContext)({});l();var AR=S(R(),1);function xp(e){let a=(0,AR.useRef)(null);return a.current===null&&(a.current=e()),a.current}l();var My=S(R(),1);l();var Cp=typeof window<"u";var Fy=Cp?My.useLayoutEffect:My.useEffect;l();var fS=S(ne(),1),SZ=S(R(),1),uk=S(R(),1);l();var IR=S(R(),1),Ds=(0,IR.createContext)(null);l();var zZ=S(ne(),1);l();l();l();l();function rd(e,a){e.indexOf(a)===-1&&e.push(a)}function sd(e,a){let t=e.indexOf(a);t>-1&&e.splice(t,1)}l();var wt=(e,a,t)=>t>a?a:t<e?e:t;l();var _r=()=>{},In=()=>{};l();var Xt={};l();var Mg=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);l();function Fg(e){return typeof e=="object"&&e!==null}l();var Ng=e=>/^0[^.\s]+$/u.test(e);l();function ld(e){let a;return()=>(a===void 0&&(a=e()),a)}l();var Ka=e=>e;l();var k9=(e,a)=>t=>a(e(t)),io=(...e)=>e.reduce(k9);l();var Lo=(e,a,t)=>{let i=a-e;return i===0?1:(t-e)/i};l();var Ar=class{constructor(){this.subscriptions=[]}add(a){return rd(this.subscriptions,a),()=>sd(this.subscriptions,a)}notify(a,t,i){let n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](a,t,i);else for(let o=0;o<n;o++){let r=this.subscriptions[o];r&&r(a,t,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};l();var vt=e=>e*1e3,Bt=e=>e/1e3;l();function Bg(e,a){return a?e*(1e3/a):0}l();l();l();var TR=(e,a,t)=>(((1-3*t+3*a)*e+(3*t-6*a))*e+3*a)*e,h9=1e-7,b9=12;function v9(e,a,t,i,n){let o,r,s=0;do r=a+(t-a)/2,o=TR(r,i,n)-e,o>0?t=r:a=r;while(Math.abs(o)>h9&&++s<b9);return r}function Gs(e,a,t,i){if(e===a&&t===i)return Ka;let n=o=>v9(o,0,1,e,t);return o=>o===0||o===1?o:TR(n(o),a,i)}l();var Ny=e=>a=>a<=.5?e(2*a)/2:(2-e(2*(1-a)))/2;l();var By=e=>a=>1-e(1-a);var Ry=Gs(.33,1.53,.69,.99),Dp=By(Ry),Rg=Ny(Dp);var Zg=e=>(e*=2)<1?.5*Dp(e):.5*(2-Math.pow(2,-10*(e-1)));l();var qg=e=>1-Math.sin(Math.acos(e)),Vg=By(qg),Ug=Ny(qg);l();var Nw=Gs(.42,0,1,1),Bw=Gs(0,0,.58,1),Og=Gs(.42,0,.58,1);l();var Rw=e=>Array.isArray(e)&&typeof e[0]!="number";l();var Kg=e=>Array.isArray(e)&&typeof e[0]=="number";l();var PR={linear:Ka,easeIn:Nw,easeInOut:Og,easeOut:Bw,circIn:qg,circInOut:Ug,circOut:Vg,backIn:Dp,backInOut:Rg,backOut:Ry,anticipate:Zg},y9=e=>typeof e=="string",Zy=e=>{if(Kg(e)){In(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[a,t,i,n]=e;return Gs(a,t,i,n)}else if(y9(e))return In(PR[e]!==void 0,`Invalid easing type '${e}'`),PR[e];return e};l();l();l();l();var Hg=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];l();l();var wi={value:null,addProjectionMetrics:null};function zR(e,a){let t=new Set,i=new Set,n=!1,o=!1,r=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},d=0;function u(m){r.has(m)&&(p.schedule(m),e()),d++,m(s)}let p={schedule:(m,g=!1,b=!1)=>{let v=b&&n?t:i;return g&&r.add(m),v.has(m)||v.add(m),m},cancel:m=>{i.delete(m),r.delete(m)},process:m=>{if(s=m,n){o=!0;return}n=!0,[t,i]=[i,t],t.forEach(u),a&&wi.value&&wi.value.frameloop[a].push(d),d=0,t.clear(),n=!1,o&&(o=!1,p.process(m))}};return p}var f9=40;function qy(e,a){let t=!1,i=!0,n={delta:0,timestamp:0,isProcessing:!1},o=()=>t=!0,r=Hg.reduce((y,I)=>(y[I]=zR(o,a?I:void 0),y),{}),{setup:s,read:d,resolveKeyframes:u,preUpdate:p,update:m,preRender:g,render:b,postRender:f}=r,v=()=>{let y=Xt.useManualTiming?n.timestamp:performance.now();t=!1,Xt.useManualTiming||(n.delta=i?1e3/60:Math.max(Math.min(y-n.timestamp,f9),1)),n.timestamp=y,n.isProcessing=!0,s.process(n),d.process(n),u.process(n),p.process(n),m.process(n),g.process(n),b.process(n),f.process(n),n.isProcessing=!1,t&&a&&(i=!1,e(v))},_=()=>{t=!0,i=!0,n.isProcessing||e(v)};return{schedule:Hg.reduce((y,I)=>{let A=r[I];return y[I]=(T,P=!1,z=!1)=>(t||_(),A.schedule(T,P,z)),y},{}),cancel:y=>{for(let I=0;I<Hg.length;I++)r[Hg[I]].cancel(y)},state:n,steps:r}}var{schedule:Ke,cancel:Si,state:Xa,steps:Yg}=qy(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ka,!0);var Vy;function _9(){Vy=void 0}var et={now:()=>(Vy===void 0&&et.set(Xa.isProcessing||Xt.useManualTiming?Xa.timestamp:performance.now()),Vy),set:e=>{Vy=e,queueMicrotask(_9)}};l();l();var no={layout:0,mainThread:0,waapi:0};l();l();l();var wR=e=>a=>typeof a=="string"&&a.startsWith(e),dd=wR("--"),A9=wR("var(--"),ud=e=>A9(e)?I9.test(e.split("/*")[0].trim()):!1,I9=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;l();l();l();l();var Mo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ir={...Mo,transform:e=>wt(0,1,e)},Qg={...Mo,default:1};l();var Ws=e=>Math.round(e*1e5)/1e5;l();l();var Gp=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;l();function SR(e){return e==null}l();var jR=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Wp=(e,a)=>t=>!!(typeof t=="string"&&jR.test(t)&&t.startsWith(e)||a&&!SR(t)&&Object.prototype.hasOwnProperty.call(t,a)),Uy=(e,a,t)=>i=>{if(typeof i!="string")return i;let[n,o,r,s]=i.match(Gp);return{[e]:parseFloat(n),[a]:parseFloat(o),[t]:parseFloat(r),alpha:s!==void 0?parseFloat(s):1}};var T9=e=>wt(0,255,e),Zw={...Mo,transform:e=>Math.round(T9(e))},Fo={test:Wp("rgb","red"),parse:Uy("red","green","blue"),transform:({red:e,green:a,blue:t,alpha:i=1})=>"rgba("+Zw.transform(e)+", "+Zw.transform(a)+", "+Zw.transform(t)+", "+Ws(Ir.transform(i))+")"};function P9(e){let a="",t="",i="",n="";return e.length>5?(a=e.substring(1,3),t=e.substring(3,5),i=e.substring(5,7),n=e.substring(7,9)):(a=e.substring(1,2),t=e.substring(2,3),i=e.substring(3,4),n=e.substring(4,5),a+=a,t+=t,i+=i,n+=n),{red:parseInt(a,16),green:parseInt(t,16),blue:parseInt(i,16),alpha:n?parseInt(n,16)/255:1}}var $g={test:Wp("#"),parse:P9,transform:Fo.transform};l();l();var Jg=e=>({test:a=>typeof a=="string"&&a.endsWith(e)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${e}`}),oo=Jg("deg"),ei=Jg("%"),Ie=Jg("px"),qw=Jg("vh"),Vw=Jg("vw"),Oy={...ei,parse:e=>ei.parse(e)/100,transform:e=>ei.transform(e*100)};var Es={test:Wp("hsl","hue"),parse:Uy("hue","saturation","lightness"),transform:({hue:e,saturation:a,lightness:t,alpha:i=1})=>"hsla("+Math.round(e)+", "+ei.transform(Ws(a))+", "+ei.transform(Ws(t))+", "+Ws(Ir.transform(i))+")"};var Ma={test:e=>Fo.test(e)||$g.test(e)||Es.test(e),parse:e=>Fo.test(e)?Fo.parse(e):Es.test(e)?Es.parse(e):$g.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Fo.transform(e):Es.transform(e),getAnimatableNone:e=>{let a=Ma.parse(e);return a.alpha=0,Ma.transform(a)}};l();l();var xR=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function z9(e){return isNaN(e)&&typeof e=="string"&&(e.match(Gp)?.length||0)+(e.match(xR)?.length||0)>0}var DR="number",GR="color",w9="var",S9="var(",CR="${}",j9=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ls(e){let a=e.toString(),t=[],i={color:[],number:[],var:[]},n=[],o=0,s=a.replace(j9,d=>(Ma.test(d)?(i.color.push(o),n.push(GR),t.push(Ma.parse(d))):d.startsWith(S9)?(i.var.push(o),n.push(w9),t.push(d)):(i.number.push(o),n.push(DR),t.push(parseFloat(d))),++o,CR)).split(CR);return{values:t,split:s,indexes:i,types:n}}function WR(e){return Ls(e).values}function ER(e){let{split:a,types:t}=Ls(e),i=a.length;return n=>{let o="";for(let r=0;r<i;r++)if(o+=a[r],n[r]!==void 0){let s=t[r];s===DR?o+=Ws(n[r]):s===GR?o+=Ma.transform(n[r]):o+=n[r]}return o}}var x9=e=>typeof e=="number"?0:Ma.test(e)?Ma.getAnimatableNone(e):e;function C9(e){let a=WR(e);return ER(e)(a.map(x9))}var ai={test:z9,parse:WR,createTransformer:ER,getAnimatableNone:C9};l();l();function Uw(e,a,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(a-e)*6*t:t<1/2?a:t<2/3?e+(a-e)*(2/3-t)*6:e}function LR({hue:e,saturation:a,lightness:t,alpha:i}){e/=360,a/=100,t/=100;let n=0,o=0,r=0;if(!a)n=o=r=t;else{let s=t<.5?t*(1+a):t+a-t*a,d=2*t-s;n=Uw(d,s,e+1/3),o=Uw(d,s,e),r=Uw(d,s,e-1/3)}return{red:Math.round(n*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:i}}l();function Ep(e,a){return t=>t>0?a:e}l();var ea=(e,a,t)=>e+(a-e)*t;var Ow=(e,a,t)=>{let i=e*e,n=t*(a*a-i)+i;return n<0?0:Math.sqrt(n)},D9=[$g,Fo,Es],G9=e=>D9.find(a=>a.test(e));function MR(e){let a=G9(e);if(_r(!!a,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!a)return!1;let t=a.parse(e);return a===Es&&(t=LR(t)),t}var Kw=(e,a)=>{let t=MR(e),i=MR(a);if(!t||!i)return Ep(e,a);let n={...t};return o=>(n.red=Ow(t.red,i.red,o),n.green=Ow(t.green,i.green,o),n.blue=Ow(t.blue,i.blue,o),n.alpha=ea(t.alpha,i.alpha,o),Fo.transform(n))};l();var Ky=new Set(["none","hidden"]);function FR(e,a){return Ky.has(e)?t=>t<=0?e:a:t=>t>=1?a:e}function W9(e,a){return t=>ea(e,a,t)}function Hy(e){return typeof e=="number"?W9:typeof e=="string"?ud(e)?Ep:Ma.test(e)?Kw:M9:Array.isArray(e)?NR:typeof e=="object"?Ma.test(e)?Kw:E9:Ep}function NR(e,a){let t=[...e],i=t.length,n=e.map((o,r)=>Hy(o)(o,a[r]));return o=>{for(let r=0;r<i;r++)t[r]=n[r](o);return t}}function E9(e,a){let t={...e,...a},i={};for(let n in t)e[n]!==void 0&&a[n]!==void 0&&(i[n]=Hy(e[n])(e[n],a[n]));return n=>{for(let o in i)t[o]=i[o](n);return t}}function L9(e,a){let t=[],i={color:0,var:0,number:0};for(let n=0;n<a.values.length;n++){let o=a.types[n],r=e.indexes[o][i[o]],s=e.values[r]??0;t[n]=s,i[o]++}return t}var M9=(e,a)=>{let t=ai.createTransformer(a),i=Ls(e),n=Ls(a);return i.indexes.var.length===n.indexes.var.length&&i.indexes.color.length===n.indexes.color.length&&i.indexes.number.length>=n.indexes.number.length?Ky.has(e)&&!n.values.length||Ky.has(a)&&!i.values.length?FR(e,a):io(NR(L9(i,n),n.values),t):(_r(!0,`Complex values '${e}' and '${a}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Ep(e,a))};function Yy(e,a,t){return typeof e=="number"&&typeof a=="number"&&typeof t=="number"?ea(e,a,t):Hy(e)(e,a)}l();var BR=e=>{let a=({timestamp:t})=>e(t);return{start:(t=!0)=>Ke.update(a,t),stop:()=>Si(a),now:()=>Xa.isProcessing?Xa.timestamp:et.now()}};l();l();l();var Qy=(e,a,t=10)=>{let i="",n=Math.max(Math.round(a/t),2);for(let o=0;o<n;o++)i+=Math.round(e(o/(n-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`};l();function Lp(e){let a=0,t=50,i=e.next(a);for(;!i.done&&a<2e4;)a+=t,i=e.next(a);return a>=2e4?1/0:a}l();function RR(e,a=100,t){let i=t({...e,keyframes:[0,a]}),n=Math.min(Lp(i),2e4);return{type:"keyframes",ease:o=>i.next(n*o).value/a,duration:Bt(n)}}l();var F9=5;function $y(e,a,t){let i=Math.max(a-F9,0);return Bg(t-e(i),a-i)}l();var ja={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};l();var Yw=.001;function ZR({duration:e=ja.duration,bounce:a=ja.bounce,velocity:t=ja.velocity,mass:i=ja.mass}){let n,o;_r(e<=vt(ja.maxDuration),"Spring duration must be 10 seconds or less");let r=1-a;r=wt(ja.minDamping,ja.maxDamping,r),e=wt(ja.minDuration,ja.maxDuration,Bt(e)),r<1?(n=u=>{let p=u*r,m=p*e,g=p-t,b=Jy(u,r),f=Math.exp(-m);return Yw-g/b*f},o=u=>{let m=u*r*e,g=m*t+t,b=Math.pow(r,2)*Math.pow(u,2)*e,f=Math.exp(-m),v=Jy(Math.pow(u,2),r);return(-n(u)+Yw>0?-1:1)*((g-b)*f)/v}):(n=u=>{let p=Math.exp(-u*e),m=(u-t)*e+1;return-Yw+p*m},o=u=>{let p=Math.exp(-u*e),m=(t-u)*(e*e);return p*m});let s=5/e,d=B9(n,o,s);if(e=vt(e),isNaN(d))return{stiffness:ja.stiffness,damping:ja.damping,duration:e};{let u=Math.pow(d,2)*i;return{stiffness:u,damping:r*2*Math.sqrt(i*u),duration:e}}}var N9=12;function B9(e,a,t){let i=t;for(let n=1;n<N9;n++)i=i-e(i)/a(i);return i}function Jy(e,a){return e*Math.sqrt(1-a*a)}var R9=["duration","bounce"],Z9=["stiffness","damping","mass"];function qR(e,a){return a.some(t=>e[t]!==void 0)}function q9(e){let a={velocity:ja.velocity,stiffness:ja.stiffness,damping:ja.damping,mass:ja.mass,isResolvedFromDuration:!1,...e};if(!qR(e,Z9)&&qR(e,R9))if(e.visualDuration){let t=e.visualDuration,i=2*Math.PI/(t*1.2),n=i*i,o=2*wt(.05,1,1-(e.bounce||0))*Math.sqrt(n);a={...a,mass:ja.mass,stiffness:n,damping:o}}else{let t=ZR(e);a={...a,...t,mass:ja.mass},a.isResolvedFromDuration=!0}return a}function Mp(e=ja.visualDuration,a=ja.bounce){let t=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:a}:e,{restSpeed:i,restDelta:n}=t,o=t.keyframes[0],r=t.keyframes[t.keyframes.length-1],s={done:!1,value:o},{stiffness:d,damping:u,mass:p,duration:m,velocity:g,isResolvedFromDuration:b}=q9({...t,velocity:-Bt(t.velocity||0)}),f=g||0,v=u/(2*Math.sqrt(d*p)),_=r-o,h=Bt(Math.sqrt(d/p)),k=Math.abs(_)<5;i||(i=k?ja.restSpeed.granular:ja.restSpeed.default),n||(n=k?ja.restDelta.granular:ja.restDelta.default);let y;if(v<1){let A=Jy(h,v);y=T=>{let P=Math.exp(-v*h*T);return r-P*((f+v*h*_)/A*Math.sin(A*T)+_*Math.cos(A*T))}}else if(v===1)y=A=>r-Math.exp(-h*A)*(_+(f+h*_)*A);else{let A=h*Math.sqrt(v*v-1);y=T=>{let P=Math.exp(-v*h*T),z=Math.min(A*T,300);return r-P*((f+v*h*_)*Math.sinh(z)+A*_*Math.cosh(z))/A}}let I={calculatedDuration:b&&m||null,next:A=>{let T=y(A);if(b)s.done=A>=m;else{let P=A===0?f:0;v<1&&(P=A===0?vt(f):$y(y,A,T));let z=Math.abs(P)<=i,D=Math.abs(r-T)<=n;s.done=z&&D}return s.value=s.done?r:T,s},toString:()=>{let A=Math.min(Lp(I),2e4),T=Qy(P=>I.next(A*P).value,A,30);return A+"ms "+T},toTransition:()=>{}};return I}Mp.applyToOptions=e=>{let a=RR(e,100,Mp);return e.ease=a.ease,e.duration=vt(a.duration),e.type="keyframes",e};function Xg({keyframes:e,velocity:a=0,power:t=.8,timeConstant:i=325,bounceDamping:n=10,bounceStiffness:o=500,modifyTarget:r,min:s,max:d,restDelta:u=.5,restSpeed:p}){let m=e[0],g={done:!1,value:m},b=z=>s!==void 0&&z<s||d!==void 0&&z>d,f=z=>s===void 0?d:d===void 0||Math.abs(s-z)<Math.abs(d-z)?s:d,v=t*a,_=m+v,h=r===void 0?_:r(_);h!==_&&(v=h-m);let k=z=>-v*Math.exp(-z/i),y=z=>h+k(z),I=z=>{let D=k(z),C=y(z);g.done=Math.abs(D)<=u,g.value=g.done?h:C},A,T,P=z=>{b(g.value)&&(A=z,T=Mp({keyframes:[g.value,f(g.value)],velocity:$y(y,z,g.value),damping:n,stiffness:o,restDelta:u,restSpeed:p}))};return P(0),{calculatedDuration:null,next:z=>{let D=!1;return!T&&A===void 0&&(D=!0,I(z),P(z)),A!==void 0&&z>=A?T.next(z-A):(!D&&I(z),g)}}}l();l();function V9(e,a,t){let i=[],n=t||Xt.mix||Yy,o=e.length-1;for(let r=0;r<o;r++){let s=n(e[r],e[r+1]);if(a){let d=Array.isArray(a)?a[r]||Ka:a;s=io(d,s)}i.push(s)}return i}function VR(e,a,{clamp:t=!0,ease:i,mixer:n}={}){let o=e.length;if(In(o===a.length,"Both input and output ranges must be the same length"),o===1)return()=>a[0];if(o===2&&a[0]===a[1])return()=>a[1];let r=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),a=[...a].reverse());let s=V9(a,i,n),d=s.length,u=p=>{if(r&&p<e[0])return a[0];let m=0;if(d>1)for(;m<e.length-2&&!(p<e[m+1]);m++);let g=Lo(e[m],e[m+1],p);return s[m](g)};return t?p=>u(wt(e[0],e[o-1],p)):u}l();l();function UR(e,a){let t=e[e.length-1];for(let i=1;i<=a;i++){let n=Lo(0,a,i);e.push(ea(t,1,n))}}function OR(e){let a=[0];return UR(a,e.length-1),a}l();function KR(e,a){return e.map(t=>t*a)}function U9(e,a){return e.map(()=>a||Og).splice(0,e.length-1)}function pd({duration:e=300,keyframes:a,times:t,ease:i="easeInOut"}){let n=Rw(i)?i.map(Zy):Zy(i),o={done:!1,value:a[0]},r=KR(t&&t.length===a.length?t:OR(a),e),s=VR(r,a,{ease:Array.isArray(n)?n:U9(a,n)});return{calculatedDuration:e,next:d=>(o.value=s(d),o.done=d>=e,o)}}l();var O9=e=>e!==null;function Fp(e,{repeat:a,repeatType:t="loop"},i,n=1){let o=e.filter(O9),s=n<0||a&&t!=="loop"&&a%2===1?0:o.length-1;return!s||i===void 0?o[s]:i}l();var K9={decay:Xg,inertia:Xg,tween:pd,keyframes:pd,spring:Mp};function Xy(e){typeof e.type=="string"&&(e.type=K9[e.type])}l();var Ms=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(a=>{this.resolve=a})}notifyFinished(){this.resolve()}then(a,t){return this.finished.then(a,t)}};var H9=e=>e/100,Tr=class extends Ms{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==et.now()&&this.tick(et.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},no.mainThread++,this.options=a,this.initAnimation(),this.play(),a.autoplay===!1&&this.pause()}initAnimation(){let{options:a}=this;Xy(a);let{type:t=pd,repeat:i=0,repeatDelay:n=0,repeatType:o,velocity:r=0}=a,{keyframes:s}=a,d=t||pd;d!==pd&&typeof s[0]!="number"&&(this.mixKeyframes=io(H9,Yy(s[0],s[1])),s=[0,100]);let u=d({...a,keyframes:s});o==="mirror"&&(this.mirroredGenerator=d({...a,keyframes:[...s].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=Lp(u));let{calculatedDuration:p}=u;this.calculatedDuration=p,this.resolvedDuration=p+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=u}updateTime(a){let t=Math.round(a-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=t}tick(a,t=!1){let{generator:i,totalDuration:n,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:s,calculatedDuration:d}=this;if(this.startTime===null)return i.next(0);let{delay:u=0,keyframes:p,repeat:m,repeatType:g,repeatDelay:b,type:f,onUpdate:v,finalKeyframe:_}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-n/this.speed,this.startTime)),t?this.currentTime=a:this.updateTime(a);let h=this.currentTime-u*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?h<0:h>n;this.currentTime=Math.max(h,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=n);let y=this.currentTime,I=i;if(m){let z=Math.min(this.currentTime,n)/s,D=Math.floor(z),C=z%1;!C&&z>=1&&(C=1),C===1&&D--,D=Math.min(D,m+1),!!(D%2)&&(g==="reverse"?(C=1-C,b&&(C-=b/s)):g==="mirror"&&(I=r)),y=wt(0,1,C)*s}let A=k?{done:!1,value:p[0]}:I.next(y);o&&(A.value=o(A.value));let{done:T}=A;!k&&d!==null&&(T=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return P&&f!==Xg&&(A.value=Fp(p,this.options,_,this.speed)),v&&v(A.value),P&&this.finish(),A}then(a,t){return this.finished.then(a,t)}get duration(){return Bt(this.calculatedDuration)}get time(){return Bt(this.currentTime)}set time(a){a=vt(a),this.currentTime=a,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(a){this.updateTime(et.now());let t=this.playbackSpeed!==a;this.playbackSpeed=a,t&&(this.time=Bt(this.currentTime))}play(){if(this.isStopped)return;let{driver:a=BR,startTime:t}=this.options;this.driver||(this.driver=a(n=>this.tick(n))),this.options.onPlay?.();let i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=t??i),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(et.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,no.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),a.observe(this)}};l();l();function HR(e){for(let a=1;a<e.length;a++)e[a]??(e[a]=e[a-1])}l();l();var md=e=>e*180/Math.PI,Qw=e=>{let a=md(Math.atan2(e[1],e[0]));return $w(a)},Y9={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Qw,rotateZ:Qw,skewX:e=>md(Math.atan(e[1])),skewY:e=>md(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},$w=e=>(e=e%360,e<0&&(e+=360),e),YR=Qw,QR=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),$R=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Q9={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:QR,scaleY:$R,scale:e=>(QR(e)+$R(e))/2,rotateX:e=>$w(md(Math.atan2(e[6],e[5]))),rotateY:e=>$w(md(Math.atan2(-e[2],e[0]))),rotateZ:YR,rotate:YR,skewX:e=>md(Math.atan(e[4])),skewY:e=>md(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ek(e){return e.includes("scale")?1:0}function ak(e,a){if(!e||e==="none")return ek(a);let t=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),i,n;if(t)i=Q9,n=t;else{let s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=Y9,n=s}if(!n)return ek(a);let o=i[a],r=n[1].split(",").map($9);return typeof o=="function"?o(r):r[o]}var Jw=(e,a)=>{let{transform:t="none"}=getComputedStyle(e);return ak(t,a)};function $9(e){return parseFloat(e.trim())}l();var ro=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Qi=new Set(ro);var Xw=e=>e===Mo||e===Ie,J9=new Set(["x","y","z"]),X9=ro.filter(e=>!J9.has(e));function JR(e){let a=[];return X9.forEach(t=>{let i=e.getValue(t);i!==void 0&&(a.push([t,i.get()]),i.set(t.startsWith("scale")?1:0))}),a}var Fs={width:({x:e},{paddingLeft:a="0",paddingRight:t="0"})=>e.max-e.min-parseFloat(a)-parseFloat(t),height:({y:e},{paddingTop:a="0",paddingBottom:t="0"})=>e.max-e.min-parseFloat(a)-parseFloat(t),top:(e,{top:a})=>parseFloat(a),left:(e,{left:a})=>parseFloat(a),bottom:({y:e},{top:a})=>parseFloat(a)+(e.max-e.min),right:({x:e},{left:a})=>parseFloat(a)+(e.max-e.min),x:(e,{transform:a})=>ak(a,"x"),y:(e,{transform:a})=>ak(a,"y")};Fs.translateX=Fs.x;Fs.translateY=Fs.y;var cd=new Set,eS=!1,aS=!1,tS=!1;function XR(){if(aS){let e=Array.from(cd).filter(i=>i.needsMeasurement),a=new Set(e.map(i=>i.element)),t=new Map;a.forEach(i=>{let n=JR(i);n.length&&(t.set(i,n),i.render())}),e.forEach(i=>i.measureInitialState()),a.forEach(i=>{i.render();let n=t.get(i);n&&n.forEach(([o,r])=>{i.getValue(o)?.set(r)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}aS=!1,eS=!1,cd.forEach(e=>e.complete(tS)),cd.clear()}function eZ(){cd.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(aS=!0)})}function iS(){tS=!0,eZ(),XR(),tS=!1}var Pr=class{constructor(a,t,i,n,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=t,this.name=i,this.motionValue=n,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(cd.add(this),eS||(eS=!0,Ke.read(eZ),Ke.resolveKeyframes(XR))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:a,name:t,element:i,motionValue:n}=this;if(a[0]===null){let o=n?.get(),r=a[a.length-1];if(o!==void 0)a[0]=o;else if(i&&t){let s=i.readValue(t,r);s!=null&&(a[0]=s)}a[0]===void 0&&(a[0]=r),n&&o===void 0&&n.set(a[0])}HR(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),cd.delete(this)}cancel(){this.state==="scheduled"&&(cd.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};l();l();l();l();var aZ=e=>e.startsWith("--");function tZ(e,a,t){aZ(a)?e.style.setProperty(a,t):e.style[a]=t}l();var iZ=ld(()=>window.ScrollTimeline!==void 0);l();l();l();l();l();var nZ={};function oZ(e,a){let t=ld(e);return()=>nZ[a]??t()}var ef=oZ(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");l();var gd=([e,a,t,i])=>`cubic-bezier(${e}, ${a}, ${t}, ${i})`;l();var nS={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gd([0,.65,.55,1]),circOut:gd([.55,0,1,.45]),backIn:gd([.31,.01,.66,-.59]),backOut:gd([.33,1.53,.69,.99])};function oS(e,a){if(e)return typeof e=="function"?ef()?Qy(e,a):"ease-out":Kg(e)?gd(e):Array.isArray(e)?e.map(t=>oS(t,a)||nS.easeOut):nS[e]}function rZ(e,a,t,{delay:i=0,duration:n=300,repeat:o=0,repeatType:r="loop",ease:s="easeOut",times:d}={},u=void 0){let p={[a]:t};d&&(p.offset=d);let m=oS(s,n);Array.isArray(m)&&(p.easing=m),wi.value&&no.waapi++;let g={delay:i,duration:n,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};u&&(g.pseudoElement=u);let b=e.animate(p,g);return wi.value&&b.finished.finally(()=>{no.waapi--}),b}l();l();function af(e){return typeof e=="function"&&"applyToOptions"in e}function sZ({type:e,...a}){return af(e)&&ef()?e.applyToOptions(a):(a.duration??(a.duration=300),a.ease??(a.ease="easeOut"),a)}var tf=class extends Ms{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,!a)return;let{element:t,name:i,keyframes:n,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:s,onComplete:d}=a;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=a,In(typeof a.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);let u=sZ(a);this.animation=rZ(t,i,n,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){let p=Fp(n,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(p):tZ(t,i,p),this.animation.cancel()}d?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:a}=this;a==="idle"||a==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let a=this.animation.effect?.getComputedTiming?.().duration||0;return Bt(Number(a))}get time(){return Bt(Number(this.animation.currentTime)||0)}set time(a){this.finishedTime=null,this.animation.currentTime=vt(a)}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(a){this.animation.startTime=a}attachTimeline({timeline:a,observe:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,a&&iZ()?(this.animation.timeline=a,Ka):t(this)}};l();var lZ={anticipate:Zg,backInOut:Rg,circInOut:Ug};function eX(e){return e in lZ}function dZ(e){typeof e.ease=="string"&&eX(e.ease)&&(e.ease=lZ[e.ease])}var uZ=10,nf=class extends tf{constructor(a){dZ(a),Xy(a),super(a),a.startTime&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){let{motionValue:t,onUpdate:i,onComplete:n,element:o,...r}=this.options;if(!t)return;if(a!==void 0){t.set(a);return}let s=new Tr({...r,autoplay:!1}),d=vt(this.finishedTime??this.time);t.setWithVelocity(s.sample(d-uZ).value,s.sample(d).value,uZ),s.stop()}};l();l();var rS=(e,a)=>a==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ai.test(e)||e==="0")&&!e.startsWith("url("));function aX(e){let a=e[0];if(e.length===1)return!0;for(let t=0;t<e.length;t++)if(e[t]!==a)return!0}function pZ(e,a,t,i){let n=e[0];if(n===null)return!1;if(a==="display"||a==="visibility")return!0;let o=e[e.length-1],r=rS(n,a),s=rS(o,a);return _r(r===s,`You are trying to animate ${a} from "${n}" to "${o}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${o} via the \`style\` property.`),!r||!s?!1:aX(e)||(t==="spring"||af(t))&&i}l();l();function kd(e){return Fg(e)&&"offsetHeight"in e}var tX=new Set(["opacity","clipPath","filter","transform"]),iX=ld(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function mZ(e){let{motionValue:a,name:t,repeatDelay:i,repeatType:n,damping:o,type:r}=e;if(!kd(a?.owner?.current))return!1;let{onUpdate:s,transformTemplate:d}=a.owner.getProps();return iX()&&t&&tX.has(t)&&(t!=="transform"||!d)&&!s&&!i&&n!=="mirror"&&o!==0&&r!=="inertia"}var nX=40,tk=class extends Ms{constructor({autoplay:a=!0,delay:t=0,type:i="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:r="loop",keyframes:s,name:d,motionValue:u,element:p,...m}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=et.now();let g={autoplay:a,delay:t,type:i,repeat:n,repeatDelay:o,repeatType:r,name:d,motionValue:u,element:p,...m},b=p?.KeyframeResolver||Pr;this.keyframeResolver=new b(s,(f,v,_)=>this.onKeyframesResolved(f,v,g,!_),d,u,p),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(a,t,i,n){this.keyframeResolver=void 0;let{name:o,type:r,velocity:s,delay:d,isHandoff:u,onUpdate:p}=i;this.resolvedAt=et.now(),pZ(a,o,r,s)||((Xt.instantAnimations||!d)&&p?.(Fp(a,i,t)),a[0]=a[a.length-1],i.duration=0,i.repeat=0);let g={startTime:n?this.resolvedAt?this.resolvedAt-this.createdAt>nX?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:t,...i,keyframes:a},b=!u&&mZ(g)?new nf({...g,element:g.motionValue.owner.current}):new Tr(g);b.finished.then(()=>this.notifyFinished()).catch(Ka),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(a,t){return this.finished.finally(a).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),iS()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};l();var oX=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function rX(e){let a=oX.exec(e);if(!a)return[,];let[,t,i,n]=a;return[`--${t??i}`,n]}var sX=4;function sS(e,a,t=1){In(t<=sX,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[i,n]=rX(e);if(!i)return;let o=window.getComputedStyle(a).getPropertyValue(i);if(o){let r=o.trim();return Mg(r)?parseFloat(r):r}return ud(n)?sS(n,a,t+1):n}l();function hd(e,a){return e?.[a]??e?.default??e}l();l();var ik=new Set(["width","height","top","left","right","bottom",...ro]);l();l();var cZ={test:e=>e==="auto",parse:e=>e};l();var of=e=>a=>a.test(e);var lS=[Mo,Ie,ei,oo,Vw,qw,cZ],dS=e=>lS.find(of(e));l();function gZ(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ng(e):!0}l();l();l();var lX=new Set(["brightness","contrast","saturate","opacity"]);function dX(e){let[a,t]=e.slice(0,-1).split("(");if(a==="drop-shadow")return e;let[i]=t.match(Gp)||[];if(!i)return e;let n=t.replace(i,""),o=lX.has(a)?1:0;return i!==t&&(o*=100),a+"("+o+n+")"}var uX=/\b([a-z-]*)\(.*?\)/gu,nk={...ai,getAnimatableNone:e=>{let a=e.match(uX);return a?a.map(dX).join(" "):e}};l();l();l();var uS={...Mo,transform:Math.round};l();var kZ={rotate:oo,rotateX:oo,rotateY:oo,rotateZ:oo,scale:Qg,scaleX:Qg,scaleY:Qg,scaleZ:Qg,skew:oo,skewX:oo,skewY:oo,distance:Ie,translateX:Ie,translateY:Ie,translateZ:Ie,x:Ie,y:Ie,z:Ie,perspective:Ie,transformPerspective:Ie,opacity:Ir,originX:Oy,originY:Oy,originZ:Ie};var bd={borderWidth:Ie,borderTopWidth:Ie,borderRightWidth:Ie,borderBottomWidth:Ie,borderLeftWidth:Ie,borderRadius:Ie,radius:Ie,borderTopLeftRadius:Ie,borderTopRightRadius:Ie,borderBottomRightRadius:Ie,borderBottomLeftRadius:Ie,width:Ie,maxWidth:Ie,height:Ie,maxHeight:Ie,top:Ie,right:Ie,bottom:Ie,left:Ie,padding:Ie,paddingTop:Ie,paddingRight:Ie,paddingBottom:Ie,paddingLeft:Ie,margin:Ie,marginTop:Ie,marginRight:Ie,marginBottom:Ie,marginLeft:Ie,backgroundPositionX:Ie,backgroundPositionY:Ie,...kZ,zIndex:uS,fillOpacity:Ir,strokeOpacity:Ir,numOctaves:uS};var hZ={...bd,color:Ma,backgroundColor:Ma,outlineColor:Ma,fill:Ma,stroke:Ma,borderColor:Ma,borderTopColor:Ma,borderRightColor:Ma,borderBottomColor:Ma,borderLeftColor:Ma,filter:nk,WebkitFilter:nk},ok=e=>hZ[e];function rk(e,a){let t=ok(e);return t!==nk&&(t=ai),t.getAnimatableNone?t.getAnimatableNone(a):void 0}var pX=new Set(["auto","none","0"]);function bZ(e,a,t){let i=0,n;for(;i<e.length&&!n;){let o=e[i];typeof o=="string"&&!pX.has(o)&&Ls(o).values.length&&(n=e[i]),i++}if(n&&t)for(let o of a)e[o]=rk(t,n)}var sk=class extends Pr{constructor(a,t,i,n,o){super(a,t,i,n,o,!0)}readKeyframes(){let{unresolvedKeyframes:a,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let d=0;d<a.length;d++){let u=a[d];if(typeof u=="string"&&(u=u.trim(),ud(u))){let p=sS(u,t.current);p!==void 0&&(a[d]=p),d===a.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!ik.has(i)||a.length!==2)return;let[n,o]=a,r=dS(n),s=dS(o);if(r!==s)if(Xw(r)&&Xw(s))for(let d=0;d<a.length;d++){let u=a[d];typeof u=="string"&&(a[d]=parseFloat(u))}else Fs[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:a,name:t}=this,i=[];for(let n=0;n<a.length;n++)(a[n]===null||gZ(a[n]))&&i.push(n);i.length&&bZ(a,i,t)}measureInitialState(){let{element:a,unresolvedKeyframes:t,name:i}=this;if(!a||!a.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Fs[i](a.measureViewportBox(),window.getComputedStyle(a.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];n!==void 0&&a.getValue(i,n).jump(n,!1)}measureEndState(){let{element:a,name:t,unresolvedKeyframes:i}=this;if(!a||!a.current)return;let n=a.getValue(t);n&&n.jump(this.measuredOrigin,!1);let o=i.length-1,r=i[o];i[o]=Fs[t](a.measureViewportBox(),window.getComputedStyle(a.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([s,d])=>{a.getValue(s).set(d)}),this.resolveNoneKeyframes()}};l();function vZ(e,a,t){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;a&&(i=a.current);let n=t?.[e]??i.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}l();var lk=(e,a)=>a&&typeof e=="number"?a.transform(e):e;l();var yZ=30,mX=e=>!isNaN(parseFloat(e)),pS={current:void 0},rf=class{constructor(a,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,n=!0)=>{let o=et.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let r of this.dependents)r.dirty();n&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(a),this.owner=t.owner}setCurrent(a){this.current=a,this.updatedAt=et.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=mX(this.current))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,t){this.events[a]||(this.events[a]=new Ar);let i=this.events[a].add(t);return a==="change"?()=>{i(),Ke.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let a in this.events)this.events[a].clear()}attach(a,t){this.passiveEffect=a,this.stopPassiveEffect=t}set(a,t=!0){!t||!this.passiveEffect?this.updateAndNotify(a,t):this.passiveEffect(a,this.updateAndNotify)}setWithVelocity(a,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-i}jump(a,t=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return pS.current&&pS.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let a=et.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>yZ)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,yZ);return Bg(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(a){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=a(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Tn(e,a){return new rf(e,a)}l();var{schedule:vd,cancel:cX}=qy(queueMicrotask,!1);l();var Pn={x:!1,y:!1};function sf(){return Pn.x||Pn.y}l();function mS(e){return e==="x"||e==="y"?Pn[e]?null:(Pn[e]=!0,()=>{Pn[e]=!1}):Pn.x||Pn.y?null:(Pn.x=Pn.y=!0,()=>{Pn.x=Pn.y=!1})}l();l();function lf(e,a){let t=vZ(e),i=new AbortController,n={passive:!0,...a,signal:i.signal};return[t,n,()=>i.abort()]}function fZ(e){return!(e.pointerType==="touch"||sf())}function cS(e,a,t={}){let[i,n,o]=lf(e,t),r=s=>{if(!fZ(s))return;let{target:d}=s,u=a(d,s);if(typeof u!="function"||!d)return;let p=m=>{fZ(m)&&(u(m),d.removeEventListener("pointerleave",p))};d.addEventListener("pointerleave",p,n)};return i.forEach(s=>{s.addEventListener("pointerenter",r,n)}),o}l();l();var gS=(e,a)=>a?e===a?!0:gS(e,a.parentElement):!1;l();var yd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;l();var gX=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function _Z(e){return gX.has(e.tagName)||e.tabIndex!==-1}l();l();var Np=new WeakSet;function AZ(e){return a=>{a.key==="Enter"&&e(a)}}function kS(e,a){e.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}var IZ=(e,a)=>{let t=e.currentTarget;if(!t)return;let i=AZ(()=>{if(Np.has(t))return;kS(t,"down");let n=AZ(()=>{kS(t,"up")}),o=()=>kS(t,"cancel");t.addEventListener("keyup",n,a),t.addEventListener("blur",o,a)});t.addEventListener("keydown",i,a),t.addEventListener("blur",()=>t.removeEventListener("keydown",i),a)};function TZ(e){return yd(e)&&!sf()}function hS(e,a,t={}){let[i,n,o]=lf(e,t),r=s=>{let d=s.currentTarget;if(!TZ(s))return;Np.add(d);let u=a(d,s),p=(b,f)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),Np.has(d)&&Np.delete(d),TZ(b)&&typeof u=="function"&&u(b,{success:f})},m=b=>{p(b,d===window||d===document||t.useGlobalTarget||gS(d,b.target))},g=b=>{p(b,!1)};window.addEventListener("pointerup",m,n),window.addEventListener("pointercancel",g,n)};return i.forEach(s=>{(t.useGlobalTarget?window:s).addEventListener("pointerdown",r,n),kd(s)&&(s.addEventListener("focus",u=>IZ(u,n)),!_Z(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),o}l();function dk(e){return Fg(e)&&"ownerSVGElement"in e}l();function bS(e){return dk(e)&&e.tagName==="svg"}l();var fa=e=>!!(e&&e.getVelocity);l();var kX=[...lS,Ma,ai],vS=e=>kX.find(of(e));var df=S(R(),1),zr=S(R(),1);l();var PZ=S(R(),1),Bp=(0,PZ.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var yS=class extends df.Component{getSnapshotBeforeUpdate(a){let t=this.props.childRef.current;if(t&&a.isPresent&&!this.props.isPresent){let i=t.offsetParent,n=kd(i)&&i.offsetWidth||0,o=this.props.sizeRef.current;o.height=t.offsetHeight||0,o.width=t.offsetWidth||0,o.top=t.offsetTop,o.left=t.offsetLeft,o.right=n-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}};function wZ({children:e,isPresent:a,anchorX:t}){let i=(0,zr.useId)(),n=(0,zr.useRef)(null),o=(0,zr.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:r}=(0,zr.useContext)(Bp);return(0,zr.useInsertionEffect)(()=>{let{width:s,height:d,top:u,left:p,right:m}=o.current;if(a||!n.current||!s||!d)return;let g=t==="left"?`left: ${p}`:`right: ${m}`;n.current.dataset.motionPopId=i;let b=document.createElement("style");return r&&(b.nonce=r),document.head.appendChild(b),b.sheet&&b.sheet.insertRule(`
117
+ `+o):i.stack=o}catch{}}throw i}}_request(a,t){typeof a=="string"?(t=t||{},t.url=a):t=a||{},t=to(this.defaults,t);let{transitional:i,paramsSerializer:n,headers:o}=t;i!==void 0&&Eg.assertOptions(i,{silentJSONParsing:Eo.transitional(Eo.boolean),forcedJSONParsing:Eo.transitional(Eo.boolean),clarifyTimeoutError:Eo.transitional(Eo.boolean)},!1),n!=null&&(B.isFunction(n)?t.paramsSerializer={serialize:n}:Eg.assertOptions(n,{encode:Eo.function,serialize:Eo.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Eg.assertOptions(t,{baseUrl:Eo.spelling("baseURL"),withXsrfToken:Eo.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=o&&B.merge(o.common,o[t.method]);o&&B.forEach(["delete","get","head","post","put","patch","common"],f=>{delete o[f]}),t.headers=bt.concat(r,o);let s=[],d=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(t)===!1||(d=d&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});let u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let p,m=0,g;if(!d){let f=[Wy.bind(this),void 0];for(f.unshift.apply(f,s),f.push.apply(f,u),g=f.length,p=Promise.resolve(t);m<g;)p=p.then(f[m++],f[m++]);return p}g=s.length;let b=t;for(m=0;m<g;){let f=s[m++],v=s[m++];try{b=f(b)}catch(_){v.call(this,_);break}}try{p=Wy.call(this,b)}catch(f){return Promise.reject(f)}for(m=0,g=u.length;m<g;)p=p.then(u[m++],u[m++]);return p}getUri(a){a=to(this.defaults,a);let t=Wg(a.baseURL,a.url,a.allowAbsoluteUrls);return jg(t,a.params,a.paramsSerializer)}};B.forEach(["delete","get","head","options"],function(a){Sp.prototype[a]=function(t,i){return this.request(to(i||{},{method:a,url:t,data:(i||{}).data}))}});B.forEach(["post","put","patch"],function(a){function t(i){return function(o,r,s){return this.request(to(s||{},{method:a,headers:i?{"Content-Type":"multipart/form-data"}:{},url:o,data:r}))}}Sp.prototype[a]=t(),Sp.prototype[a+"Form"]=t(!0)});var Lg=Sp;l();var Ew=class e{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(o){t=o});let i=this;this.promise.then(n=>{if(!i._listeners)return;let o=i._listeners.length;for(;o-- >0;)i._listeners[o](n);i._listeners=null}),this.promise.then=n=>{let o,r=new Promise(s=>{i.subscribe(s),o=s}).then(n);return r.cancel=function(){i.unsubscribe(o)},r},a(function(o,r,s){i.reason||(i.reason=new Wo(o,r,s),t(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;let t=this._listeners.indexOf(a);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let a=new AbortController,t=i=>{a.abort(i)};return this.subscribe(t),a.signal.unsubscribe=()=>this.unsubscribe(t),a.signal}static source(){let a;return{token:new e(function(n){a=n}),cancel:a}}},vR=Ew;l();function Lw(e){return function(t){return e.apply(null,t)}}l();function Mw(e){return B.isObject(e)&&e.isAxiosError===!0}l();var Fw={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Fw).forEach(([e,a])=>{Fw[a]=e});var yR=Fw;function fR(e){let a=new Lg(e),t=zg(Lg.prototype.request,a);return B.extend(t,Lg.prototype,a,{allOwnKeys:!0}),B.extend(t,a,null,{allOwnKeys:!0}),t.create=function(n){return fR(to(e,n))},t}var ut=fR(Pp);ut.Axios=Lg;ut.CanceledError=Wo;ut.CancelToken=vR;ut.isCancel=Dg;ut.VERSION=Ey;ut.toFormData=Cs;ut.AxiosError=Le;ut.Cancel=ut.CanceledError;ut.all=function(a){return Promise.all(a)};ut.spread=Lw;ut.isAxiosError=Mw;ut.mergeConfig=to;ut.AxiosHeaders=bt;ut.formToJSON=e=>Sy(B.isHTMLForm(e)?new FormData(e):e);ut.getAdapter=Gy.getAdapter;ut.HttpStatusCode=yR;ut.default=ut;var fr=ut;var{Axios:JUe,AxiosError:XUe,CanceledError:eOe,isCancel:aOe,CancelToken:tOe,VERSION:iOe,all:nOe,Cancel:oOe,isAxiosError:rOe,spread:sOe,toFormData:lOe,AxiosHeaders:dOe,HttpStatusCode:uOe,formToJSON:pOe,getAdapter:mOe,mergeConfig:cOe}=fr;l();l();var mk=S(ne(),1),No=S(R(),1);l();var _R=S(R(),1),jp=(0,_R.createContext)({});l();var AR=S(R(),1);function xp(e){let a=(0,AR.useRef)(null);return a.current===null&&(a.current=e()),a.current}l();var My=S(R(),1);l();var Cp=typeof window<"u";var Fy=Cp?My.useLayoutEffect:My.useEffect;l();var fS=S(ne(),1),SZ=S(R(),1),uk=S(R(),1);l();var IR=S(R(),1),Ds=(0,IR.createContext)(null);l();var zZ=S(ne(),1);l();l();l();l();function rd(e,a){e.indexOf(a)===-1&&e.push(a)}function sd(e,a){let t=e.indexOf(a);t>-1&&e.splice(t,1)}l();var wt=(e,a,t)=>t>a?a:t<e?e:t;l();var _r=()=>{},In=()=>{};l();var Xt={};l();var Mg=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);l();function Fg(e){return typeof e=="object"&&e!==null}l();var Ng=e=>/^0[^.\s]+$/u.test(e);l();function ld(e){let a;return()=>(a===void 0&&(a=e()),a)}l();var Ka=e=>e;l();var k9=(e,a)=>t=>a(e(t)),io=(...e)=>e.reduce(k9);l();var Lo=(e,a,t)=>{let i=a-e;return i===0?1:(t-e)/i};l();var Ar=class{constructor(){this.subscriptions=[]}add(a){return rd(this.subscriptions,a),()=>sd(this.subscriptions,a)}notify(a,t,i){let n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](a,t,i);else for(let o=0;o<n;o++){let r=this.subscriptions[o];r&&r(a,t,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};l();var vt=e=>e*1e3,Bt=e=>e/1e3;l();function Bg(e,a){return a?e*(1e3/a):0}l();l();l();var TR=(e,a,t)=>(((1-3*t+3*a)*e+(3*t-6*a))*e+3*a)*e,h9=1e-7,b9=12;function v9(e,a,t,i,n){let o,r,s=0;do r=a+(t-a)/2,o=TR(r,i,n)-e,o>0?t=r:a=r;while(Math.abs(o)>h9&&++s<b9);return r}function Gs(e,a,t,i){if(e===a&&t===i)return Ka;let n=o=>v9(o,0,1,e,t);return o=>o===0||o===1?o:TR(n(o),a,i)}l();var Ny=e=>a=>a<=.5?e(2*a)/2:(2-e(2*(1-a)))/2;l();var By=e=>a=>1-e(1-a);var Ry=Gs(.33,1.53,.69,.99),Dp=By(Ry),Rg=Ny(Dp);var Zg=e=>(e*=2)<1?.5*Dp(e):.5*(2-Math.pow(2,-10*(e-1)));l();var qg=e=>1-Math.sin(Math.acos(e)),Vg=By(qg),Ug=Ny(qg);l();var Nw=Gs(.42,0,1,1),Bw=Gs(0,0,.58,1),Og=Gs(.42,0,.58,1);l();var Rw=e=>Array.isArray(e)&&typeof e[0]!="number";l();var Kg=e=>Array.isArray(e)&&typeof e[0]=="number";l();var PR={linear:Ka,easeIn:Nw,easeInOut:Og,easeOut:Bw,circIn:qg,circInOut:Ug,circOut:Vg,backIn:Dp,backInOut:Rg,backOut:Ry,anticipate:Zg},y9=e=>typeof e=="string",Zy=e=>{if(Kg(e)){In(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[a,t,i,n]=e;return Gs(a,t,i,n)}else if(y9(e))return In(PR[e]!==void 0,`Invalid easing type '${e}'`),PR[e];return e};l();l();l();l();var Hg=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];l();l();var wi={value:null,addProjectionMetrics:null};function zR(e,a){let t=new Set,i=new Set,n=!1,o=!1,r=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},d=0;function u(m){r.has(m)&&(p.schedule(m),e()),d++,m(s)}let p={schedule:(m,g=!1,b=!1)=>{let v=b&&n?t:i;return g&&r.add(m),v.has(m)||v.add(m),m},cancel:m=>{i.delete(m),r.delete(m)},process:m=>{if(s=m,n){o=!0;return}n=!0,[t,i]=[i,t],t.forEach(u),a&&wi.value&&wi.value.frameloop[a].push(d),d=0,t.clear(),n=!1,o&&(o=!1,p.process(m))}};return p}var f9=40;function qy(e,a){let t=!1,i=!0,n={delta:0,timestamp:0,isProcessing:!1},o=()=>t=!0,r=Hg.reduce((y,I)=>(y[I]=zR(o,a?I:void 0),y),{}),{setup:s,read:d,resolveKeyframes:u,preUpdate:p,update:m,preRender:g,render:b,postRender:f}=r,v=()=>{let y=Xt.useManualTiming?n.timestamp:performance.now();t=!1,Xt.useManualTiming||(n.delta=i?1e3/60:Math.max(Math.min(y-n.timestamp,f9),1)),n.timestamp=y,n.isProcessing=!0,s.process(n),d.process(n),u.process(n),p.process(n),m.process(n),g.process(n),b.process(n),f.process(n),n.isProcessing=!1,t&&a&&(i=!1,e(v))},_=()=>{t=!0,i=!0,n.isProcessing||e(v)};return{schedule:Hg.reduce((y,I)=>{let A=r[I];return y[I]=(T,P=!1,z=!1)=>(t||_(),A.schedule(T,P,z)),y},{}),cancel:y=>{for(let I=0;I<Hg.length;I++)r[Hg[I]].cancel(y)},state:n,steps:r}}var{schedule:Ke,cancel:Si,state:Xa,steps:Yg}=qy(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ka,!0);var Vy;function _9(){Vy=void 0}var et={now:()=>(Vy===void 0&&et.set(Xa.isProcessing||Xt.useManualTiming?Xa.timestamp:performance.now()),Vy),set:e=>{Vy=e,queueMicrotask(_9)}};l();l();var no={layout:0,mainThread:0,waapi:0};l();l();l();var wR=e=>a=>typeof a=="string"&&a.startsWith(e),dd=wR("--"),A9=wR("var(--"),ud=e=>A9(e)?I9.test(e.split("/*")[0].trim()):!1,I9=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;l();l();l();l();var Mo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ir={...Mo,transform:e=>wt(0,1,e)},Qg={...Mo,default:1};l();var Ws=e=>Math.round(e*1e5)/1e5;l();l();var Gp=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;l();function SR(e){return e==null}l();var jR=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Wp=(e,a)=>t=>!!(typeof t=="string"&&jR.test(t)&&t.startsWith(e)||a&&!SR(t)&&Object.prototype.hasOwnProperty.call(t,a)),Uy=(e,a,t)=>i=>{if(typeof i!="string")return i;let[n,o,r,s]=i.match(Gp);return{[e]:parseFloat(n),[a]:parseFloat(o),[t]:parseFloat(r),alpha:s!==void 0?parseFloat(s):1}};var T9=e=>wt(0,255,e),Zw={...Mo,transform:e=>Math.round(T9(e))},Fo={test:Wp("rgb","red"),parse:Uy("red","green","blue"),transform:({red:e,green:a,blue:t,alpha:i=1})=>"rgba("+Zw.transform(e)+", "+Zw.transform(a)+", "+Zw.transform(t)+", "+Ws(Ir.transform(i))+")"};function P9(e){let a="",t="",i="",n="";return e.length>5?(a=e.substring(1,3),t=e.substring(3,5),i=e.substring(5,7),n=e.substring(7,9)):(a=e.substring(1,2),t=e.substring(2,3),i=e.substring(3,4),n=e.substring(4,5),a+=a,t+=t,i+=i,n+=n),{red:parseInt(a,16),green:parseInt(t,16),blue:parseInt(i,16),alpha:n?parseInt(n,16)/255:1}}var $g={test:Wp("#"),parse:P9,transform:Fo.transform};l();l();var Jg=e=>({test:a=>typeof a=="string"&&a.endsWith(e)&&a.split(" ").length===1,parse:parseFloat,transform:a=>`${a}${e}`}),oo=Jg("deg"),ei=Jg("%"),Ie=Jg("px"),qw=Jg("vh"),Vw=Jg("vw"),Oy={...ei,parse:e=>ei.parse(e)/100,transform:e=>ei.transform(e*100)};var Es={test:Wp("hsl","hue"),parse:Uy("hue","saturation","lightness"),transform:({hue:e,saturation:a,lightness:t,alpha:i=1})=>"hsla("+Math.round(e)+", "+ei.transform(Ws(a))+", "+ei.transform(Ws(t))+", "+Ws(Ir.transform(i))+")"};var Fa={test:e=>Fo.test(e)||$g.test(e)||Es.test(e),parse:e=>Fo.test(e)?Fo.parse(e):Es.test(e)?Es.parse(e):$g.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Fo.transform(e):Es.transform(e),getAnimatableNone:e=>{let a=Fa.parse(e);return a.alpha=0,Fa.transform(a)}};l();l();var xR=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function z9(e){return isNaN(e)&&typeof e=="string"&&(e.match(Gp)?.length||0)+(e.match(xR)?.length||0)>0}var DR="number",GR="color",w9="var",S9="var(",CR="${}",j9=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ls(e){let a=e.toString(),t=[],i={color:[],number:[],var:[]},n=[],o=0,s=a.replace(j9,d=>(Fa.test(d)?(i.color.push(o),n.push(GR),t.push(Fa.parse(d))):d.startsWith(S9)?(i.var.push(o),n.push(w9),t.push(d)):(i.number.push(o),n.push(DR),t.push(parseFloat(d))),++o,CR)).split(CR);return{values:t,split:s,indexes:i,types:n}}function WR(e){return Ls(e).values}function ER(e){let{split:a,types:t}=Ls(e),i=a.length;return n=>{let o="";for(let r=0;r<i;r++)if(o+=a[r],n[r]!==void 0){let s=t[r];s===DR?o+=Ws(n[r]):s===GR?o+=Fa.transform(n[r]):o+=n[r]}return o}}var x9=e=>typeof e=="number"?0:Fa.test(e)?Fa.getAnimatableNone(e):e;function C9(e){let a=WR(e);return ER(e)(a.map(x9))}var ai={test:z9,parse:WR,createTransformer:ER,getAnimatableNone:C9};l();l();function Uw(e,a,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(a-e)*6*t:t<1/2?a:t<2/3?e+(a-e)*(2/3-t)*6:e}function LR({hue:e,saturation:a,lightness:t,alpha:i}){e/=360,a/=100,t/=100;let n=0,o=0,r=0;if(!a)n=o=r=t;else{let s=t<.5?t*(1+a):t+a-t*a,d=2*t-s;n=Uw(d,s,e+1/3),o=Uw(d,s,e),r=Uw(d,s,e-1/3)}return{red:Math.round(n*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:i}}l();function Ep(e,a){return t=>t>0?a:e}l();var ea=(e,a,t)=>e+(a-e)*t;var Ow=(e,a,t)=>{let i=e*e,n=t*(a*a-i)+i;return n<0?0:Math.sqrt(n)},D9=[$g,Fo,Es],G9=e=>D9.find(a=>a.test(e));function MR(e){let a=G9(e);if(_r(!!a,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!a)return!1;let t=a.parse(e);return a===Es&&(t=LR(t)),t}var Kw=(e,a)=>{let t=MR(e),i=MR(a);if(!t||!i)return Ep(e,a);let n={...t};return o=>(n.red=Ow(t.red,i.red,o),n.green=Ow(t.green,i.green,o),n.blue=Ow(t.blue,i.blue,o),n.alpha=ea(t.alpha,i.alpha,o),Fo.transform(n))};l();var Ky=new Set(["none","hidden"]);function FR(e,a){return Ky.has(e)?t=>t<=0?e:a:t=>t>=1?a:e}function W9(e,a){return t=>ea(e,a,t)}function Hy(e){return typeof e=="number"?W9:typeof e=="string"?ud(e)?Ep:Fa.test(e)?Kw:M9:Array.isArray(e)?NR:typeof e=="object"?Fa.test(e)?Kw:E9:Ep}function NR(e,a){let t=[...e],i=t.length,n=e.map((o,r)=>Hy(o)(o,a[r]));return o=>{for(let r=0;r<i;r++)t[r]=n[r](o);return t}}function E9(e,a){let t={...e,...a},i={};for(let n in t)e[n]!==void 0&&a[n]!==void 0&&(i[n]=Hy(e[n])(e[n],a[n]));return n=>{for(let o in i)t[o]=i[o](n);return t}}function L9(e,a){let t=[],i={color:0,var:0,number:0};for(let n=0;n<a.values.length;n++){let o=a.types[n],r=e.indexes[o][i[o]],s=e.values[r]??0;t[n]=s,i[o]++}return t}var M9=(e,a)=>{let t=ai.createTransformer(a),i=Ls(e),n=Ls(a);return i.indexes.var.length===n.indexes.var.length&&i.indexes.color.length===n.indexes.color.length&&i.indexes.number.length>=n.indexes.number.length?Ky.has(e)&&!n.values.length||Ky.has(a)&&!i.values.length?FR(e,a):io(NR(L9(i,n),n.values),t):(_r(!0,`Complex values '${e}' and '${a}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Ep(e,a))};function Yy(e,a,t){return typeof e=="number"&&typeof a=="number"&&typeof t=="number"?ea(e,a,t):Hy(e)(e,a)}l();var BR=e=>{let a=({timestamp:t})=>e(t);return{start:(t=!0)=>Ke.update(a,t),stop:()=>Si(a),now:()=>Xa.isProcessing?Xa.timestamp:et.now()}};l();l();l();var Qy=(e,a,t=10)=>{let i="",n=Math.max(Math.round(a/t),2);for(let o=0;o<n;o++)i+=Math.round(e(o/(n-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`};l();function Lp(e){let a=0,t=50,i=e.next(a);for(;!i.done&&a<2e4;)a+=t,i=e.next(a);return a>=2e4?1/0:a}l();function RR(e,a=100,t){let i=t({...e,keyframes:[0,a]}),n=Math.min(Lp(i),2e4);return{type:"keyframes",ease:o=>i.next(n*o).value/a,duration:Bt(n)}}l();var F9=5;function $y(e,a,t){let i=Math.max(a-F9,0);return Bg(t-e(i),a-i)}l();var ja={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};l();var Yw=.001;function ZR({duration:e=ja.duration,bounce:a=ja.bounce,velocity:t=ja.velocity,mass:i=ja.mass}){let n,o;_r(e<=vt(ja.maxDuration),"Spring duration must be 10 seconds or less");let r=1-a;r=wt(ja.minDamping,ja.maxDamping,r),e=wt(ja.minDuration,ja.maxDuration,Bt(e)),r<1?(n=u=>{let p=u*r,m=p*e,g=p-t,b=Jy(u,r),f=Math.exp(-m);return Yw-g/b*f},o=u=>{let m=u*r*e,g=m*t+t,b=Math.pow(r,2)*Math.pow(u,2)*e,f=Math.exp(-m),v=Jy(Math.pow(u,2),r);return(-n(u)+Yw>0?-1:1)*((g-b)*f)/v}):(n=u=>{let p=Math.exp(-u*e),m=(u-t)*e+1;return-Yw+p*m},o=u=>{let p=Math.exp(-u*e),m=(t-u)*(e*e);return p*m});let s=5/e,d=B9(n,o,s);if(e=vt(e),isNaN(d))return{stiffness:ja.stiffness,damping:ja.damping,duration:e};{let u=Math.pow(d,2)*i;return{stiffness:u,damping:r*2*Math.sqrt(i*u),duration:e}}}var N9=12;function B9(e,a,t){let i=t;for(let n=1;n<N9;n++)i=i-e(i)/a(i);return i}function Jy(e,a){return e*Math.sqrt(1-a*a)}var R9=["duration","bounce"],Z9=["stiffness","damping","mass"];function qR(e,a){return a.some(t=>e[t]!==void 0)}function q9(e){let a={velocity:ja.velocity,stiffness:ja.stiffness,damping:ja.damping,mass:ja.mass,isResolvedFromDuration:!1,...e};if(!qR(e,Z9)&&qR(e,R9))if(e.visualDuration){let t=e.visualDuration,i=2*Math.PI/(t*1.2),n=i*i,o=2*wt(.05,1,1-(e.bounce||0))*Math.sqrt(n);a={...a,mass:ja.mass,stiffness:n,damping:o}}else{let t=ZR(e);a={...a,...t,mass:ja.mass},a.isResolvedFromDuration=!0}return a}function Mp(e=ja.visualDuration,a=ja.bounce){let t=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:a}:e,{restSpeed:i,restDelta:n}=t,o=t.keyframes[0],r=t.keyframes[t.keyframes.length-1],s={done:!1,value:o},{stiffness:d,damping:u,mass:p,duration:m,velocity:g,isResolvedFromDuration:b}=q9({...t,velocity:-Bt(t.velocity||0)}),f=g||0,v=u/(2*Math.sqrt(d*p)),_=r-o,h=Bt(Math.sqrt(d/p)),k=Math.abs(_)<5;i||(i=k?ja.restSpeed.granular:ja.restSpeed.default),n||(n=k?ja.restDelta.granular:ja.restDelta.default);let y;if(v<1){let A=Jy(h,v);y=T=>{let P=Math.exp(-v*h*T);return r-P*((f+v*h*_)/A*Math.sin(A*T)+_*Math.cos(A*T))}}else if(v===1)y=A=>r-Math.exp(-h*A)*(_+(f+h*_)*A);else{let A=h*Math.sqrt(v*v-1);y=T=>{let P=Math.exp(-v*h*T),z=Math.min(A*T,300);return r-P*((f+v*h*_)*Math.sinh(z)+A*_*Math.cosh(z))/A}}let I={calculatedDuration:b&&m||null,next:A=>{let T=y(A);if(b)s.done=A>=m;else{let P=A===0?f:0;v<1&&(P=A===0?vt(f):$y(y,A,T));let z=Math.abs(P)<=i,D=Math.abs(r-T)<=n;s.done=z&&D}return s.value=s.done?r:T,s},toString:()=>{let A=Math.min(Lp(I),2e4),T=Qy(P=>I.next(A*P).value,A,30);return A+"ms "+T},toTransition:()=>{}};return I}Mp.applyToOptions=e=>{let a=RR(e,100,Mp);return e.ease=a.ease,e.duration=vt(a.duration),e.type="keyframes",e};function Xg({keyframes:e,velocity:a=0,power:t=.8,timeConstant:i=325,bounceDamping:n=10,bounceStiffness:o=500,modifyTarget:r,min:s,max:d,restDelta:u=.5,restSpeed:p}){let m=e[0],g={done:!1,value:m},b=z=>s!==void 0&&z<s||d!==void 0&&z>d,f=z=>s===void 0?d:d===void 0||Math.abs(s-z)<Math.abs(d-z)?s:d,v=t*a,_=m+v,h=r===void 0?_:r(_);h!==_&&(v=h-m);let k=z=>-v*Math.exp(-z/i),y=z=>h+k(z),I=z=>{let D=k(z),C=y(z);g.done=Math.abs(D)<=u,g.value=g.done?h:C},A,T,P=z=>{b(g.value)&&(A=z,T=Mp({keyframes:[g.value,f(g.value)],velocity:$y(y,z,g.value),damping:n,stiffness:o,restDelta:u,restSpeed:p}))};return P(0),{calculatedDuration:null,next:z=>{let D=!1;return!T&&A===void 0&&(D=!0,I(z),P(z)),A!==void 0&&z>=A?T.next(z-A):(!D&&I(z),g)}}}l();l();function V9(e,a,t){let i=[],n=t||Xt.mix||Yy,o=e.length-1;for(let r=0;r<o;r++){let s=n(e[r],e[r+1]);if(a){let d=Array.isArray(a)?a[r]||Ka:a;s=io(d,s)}i.push(s)}return i}function VR(e,a,{clamp:t=!0,ease:i,mixer:n}={}){let o=e.length;if(In(o===a.length,"Both input and output ranges must be the same length"),o===1)return()=>a[0];if(o===2&&a[0]===a[1])return()=>a[1];let r=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),a=[...a].reverse());let s=V9(a,i,n),d=s.length,u=p=>{if(r&&p<e[0])return a[0];let m=0;if(d>1)for(;m<e.length-2&&!(p<e[m+1]);m++);let g=Lo(e[m],e[m+1],p);return s[m](g)};return t?p=>u(wt(e[0],e[o-1],p)):u}l();l();function UR(e,a){let t=e[e.length-1];for(let i=1;i<=a;i++){let n=Lo(0,a,i);e.push(ea(t,1,n))}}function OR(e){let a=[0];return UR(a,e.length-1),a}l();function KR(e,a){return e.map(t=>t*a)}function U9(e,a){return e.map(()=>a||Og).splice(0,e.length-1)}function pd({duration:e=300,keyframes:a,times:t,ease:i="easeInOut"}){let n=Rw(i)?i.map(Zy):Zy(i),o={done:!1,value:a[0]},r=KR(t&&t.length===a.length?t:OR(a),e),s=VR(r,a,{ease:Array.isArray(n)?n:U9(a,n)});return{calculatedDuration:e,next:d=>(o.value=s(d),o.done=d>=e,o)}}l();var O9=e=>e!==null;function Fp(e,{repeat:a,repeatType:t="loop"},i,n=1){let o=e.filter(O9),s=n<0||a&&t!=="loop"&&a%2===1?0:o.length-1;return!s||i===void 0?o[s]:i}l();var K9={decay:Xg,inertia:Xg,tween:pd,keyframes:pd,spring:Mp};function Xy(e){typeof e.type=="string"&&(e.type=K9[e.type])}l();var Ms=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(a=>{this.resolve=a})}notifyFinished(){this.resolve()}then(a,t){return this.finished.then(a,t)}};var H9=e=>e/100,Tr=class extends Ms{constructor(a){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==et.now()&&this.tick(et.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},no.mainThread++,this.options=a,this.initAnimation(),this.play(),a.autoplay===!1&&this.pause()}initAnimation(){let{options:a}=this;Xy(a);let{type:t=pd,repeat:i=0,repeatDelay:n=0,repeatType:o,velocity:r=0}=a,{keyframes:s}=a,d=t||pd;d!==pd&&typeof s[0]!="number"&&(this.mixKeyframes=io(H9,Yy(s[0],s[1])),s=[0,100]);let u=d({...a,keyframes:s});o==="mirror"&&(this.mirroredGenerator=d({...a,keyframes:[...s].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=Lp(u));let{calculatedDuration:p}=u;this.calculatedDuration=p,this.resolvedDuration=p+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=u}updateTime(a){let t=Math.round(a-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=t}tick(a,t=!1){let{generator:i,totalDuration:n,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:s,calculatedDuration:d}=this;if(this.startTime===null)return i.next(0);let{delay:u=0,keyframes:p,repeat:m,repeatType:g,repeatDelay:b,type:f,onUpdate:v,finalKeyframe:_}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-n/this.speed,this.startTime)),t?this.currentTime=a:this.updateTime(a);let h=this.currentTime-u*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?h<0:h>n;this.currentTime=Math.max(h,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=n);let y=this.currentTime,I=i;if(m){let z=Math.min(this.currentTime,n)/s,D=Math.floor(z),C=z%1;!C&&z>=1&&(C=1),C===1&&D--,D=Math.min(D,m+1),!!(D%2)&&(g==="reverse"?(C=1-C,b&&(C-=b/s)):g==="mirror"&&(I=r)),y=wt(0,1,C)*s}let A=k?{done:!1,value:p[0]}:I.next(y);o&&(A.value=o(A.value));let{done:T}=A;!k&&d!==null&&(T=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return P&&f!==Xg&&(A.value=Fp(p,this.options,_,this.speed)),v&&v(A.value),P&&this.finish(),A}then(a,t){return this.finished.then(a,t)}get duration(){return Bt(this.calculatedDuration)}get time(){return Bt(this.currentTime)}set time(a){a=vt(a),this.currentTime=a,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(a){this.updateTime(et.now());let t=this.playbackSpeed!==a;this.playbackSpeed=a,t&&(this.time=Bt(this.currentTime))}play(){if(this.isStopped)return;let{driver:a=BR,startTime:t}=this.options;this.driver||(this.driver=a(n=>this.tick(n))),this.options.onPlay?.();let i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=t??i),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(et.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,no.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(a){return this.startTime=0,this.tick(a,!0)}attachTimeline(a){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),a.observe(this)}};l();l();function HR(e){for(let a=1;a<e.length;a++)e[a]??(e[a]=e[a-1])}l();l();var md=e=>e*180/Math.PI,Qw=e=>{let a=md(Math.atan2(e[1],e[0]));return $w(a)},Y9={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Qw,rotateZ:Qw,skewX:e=>md(Math.atan(e[1])),skewY:e=>md(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},$w=e=>(e=e%360,e<0&&(e+=360),e),YR=Qw,QR=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),$R=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Q9={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:QR,scaleY:$R,scale:e=>(QR(e)+$R(e))/2,rotateX:e=>$w(md(Math.atan2(e[6],e[5]))),rotateY:e=>$w(md(Math.atan2(-e[2],e[0]))),rotateZ:YR,rotate:YR,skewX:e=>md(Math.atan(e[4])),skewY:e=>md(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ek(e){return e.includes("scale")?1:0}function ak(e,a){if(!e||e==="none")return ek(a);let t=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),i,n;if(t)i=Q9,n=t;else{let s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=Y9,n=s}if(!n)return ek(a);let o=i[a],r=n[1].split(",").map($9);return typeof o=="function"?o(r):r[o]}var Jw=(e,a)=>{let{transform:t="none"}=getComputedStyle(e);return ak(t,a)};function $9(e){return parseFloat(e.trim())}l();var ro=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Qi=new Set(ro);var Xw=e=>e===Mo||e===Ie,J9=new Set(["x","y","z"]),X9=ro.filter(e=>!J9.has(e));function JR(e){let a=[];return X9.forEach(t=>{let i=e.getValue(t);i!==void 0&&(a.push([t,i.get()]),i.set(t.startsWith("scale")?1:0))}),a}var Fs={width:({x:e},{paddingLeft:a="0",paddingRight:t="0"})=>e.max-e.min-parseFloat(a)-parseFloat(t),height:({y:e},{paddingTop:a="0",paddingBottom:t="0"})=>e.max-e.min-parseFloat(a)-parseFloat(t),top:(e,{top:a})=>parseFloat(a),left:(e,{left:a})=>parseFloat(a),bottom:({y:e},{top:a})=>parseFloat(a)+(e.max-e.min),right:({x:e},{left:a})=>parseFloat(a)+(e.max-e.min),x:(e,{transform:a})=>ak(a,"x"),y:(e,{transform:a})=>ak(a,"y")};Fs.translateX=Fs.x;Fs.translateY=Fs.y;var cd=new Set,eS=!1,aS=!1,tS=!1;function XR(){if(aS){let e=Array.from(cd).filter(i=>i.needsMeasurement),a=new Set(e.map(i=>i.element)),t=new Map;a.forEach(i=>{let n=JR(i);n.length&&(t.set(i,n),i.render())}),e.forEach(i=>i.measureInitialState()),a.forEach(i=>{i.render();let n=t.get(i);n&&n.forEach(([o,r])=>{i.getValue(o)?.set(r)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}aS=!1,eS=!1,cd.forEach(e=>e.complete(tS)),cd.clear()}function eZ(){cd.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(aS=!0)})}function iS(){tS=!0,eZ(),XR(),tS=!1}var Pr=class{constructor(a,t,i,n,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...a],this.onComplete=t,this.name=i,this.motionValue=n,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(cd.add(this),eS||(eS=!0,Ke.read(eZ),Ke.resolveKeyframes(XR))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:a,name:t,element:i,motionValue:n}=this;if(a[0]===null){let o=n?.get(),r=a[a.length-1];if(o!==void 0)a[0]=o;else if(i&&t){let s=i.readValue(t,r);s!=null&&(a[0]=s)}a[0]===void 0&&(a[0]=r),n&&o===void 0&&n.set(a[0])}HR(a)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(a=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,a),cd.delete(this)}cancel(){this.state==="scheduled"&&(cd.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};l();l();l();l();var aZ=e=>e.startsWith("--");function tZ(e,a,t){aZ(a)?e.style.setProperty(a,t):e.style[a]=t}l();var iZ=ld(()=>window.ScrollTimeline!==void 0);l();l();l();l();l();var nZ={};function oZ(e,a){let t=ld(e);return()=>nZ[a]??t()}var ef=oZ(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");l();var gd=([e,a,t,i])=>`cubic-bezier(${e}, ${a}, ${t}, ${i})`;l();var nS={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gd([0,.65,.55,1]),circOut:gd([.55,0,1,.45]),backIn:gd([.31,.01,.66,-.59]),backOut:gd([.33,1.53,.69,.99])};function oS(e,a){if(e)return typeof e=="function"?ef()?Qy(e,a):"ease-out":Kg(e)?gd(e):Array.isArray(e)?e.map(t=>oS(t,a)||nS.easeOut):nS[e]}function rZ(e,a,t,{delay:i=0,duration:n=300,repeat:o=0,repeatType:r="loop",ease:s="easeOut",times:d}={},u=void 0){let p={[a]:t};d&&(p.offset=d);let m=oS(s,n);Array.isArray(m)&&(p.easing=m),wi.value&&no.waapi++;let g={delay:i,duration:n,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};u&&(g.pseudoElement=u);let b=e.animate(p,g);return wi.value&&b.finished.finally(()=>{no.waapi--}),b}l();l();function af(e){return typeof e=="function"&&"applyToOptions"in e}function sZ({type:e,...a}){return af(e)&&ef()?e.applyToOptions(a):(a.duration??(a.duration=300),a.ease??(a.ease="easeOut"),a)}var tf=class extends Ms{constructor(a){if(super(),this.finishedTime=null,this.isStopped=!1,!a)return;let{element:t,name:i,keyframes:n,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:s,onComplete:d}=a;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=a,In(typeof a.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "motion"?`);let u=sZ(a);this.animation=rZ(t,i,n,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){let p=Fp(n,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(p):tZ(t,i,p),this.animation.cancel()}d?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:a}=this;a==="idle"||a==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let a=this.animation.effect?.getComputedTiming?.().duration||0;return Bt(Number(a))}get time(){return Bt(Number(this.animation.currentTime)||0)}set time(a){this.finishedTime=null,this.animation.currentTime=vt(a)}get speed(){return this.animation.playbackRate}set speed(a){a<0&&(this.finishedTime=null),this.animation.playbackRate=a}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(a){this.animation.startTime=a}attachTimeline({timeline:a,observe:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,a&&iZ()?(this.animation.timeline=a,Ka):t(this)}};l();var lZ={anticipate:Zg,backInOut:Rg,circInOut:Ug};function eX(e){return e in lZ}function dZ(e){typeof e.ease=="string"&&eX(e.ease)&&(e.ease=lZ[e.ease])}var uZ=10,nf=class extends tf{constructor(a){dZ(a),Xy(a),super(a),a.startTime&&(this.startTime=a.startTime),this.options=a}updateMotionValue(a){let{motionValue:t,onUpdate:i,onComplete:n,element:o,...r}=this.options;if(!t)return;if(a!==void 0){t.set(a);return}let s=new Tr({...r,autoplay:!1}),d=vt(this.finishedTime??this.time);t.setWithVelocity(s.sample(d-uZ).value,s.sample(d).value,uZ),s.stop()}};l();l();var rS=(e,a)=>a==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ai.test(e)||e==="0")&&!e.startsWith("url("));function aX(e){let a=e[0];if(e.length===1)return!0;for(let t=0;t<e.length;t++)if(e[t]!==a)return!0}function pZ(e,a,t,i){let n=e[0];if(n===null)return!1;if(a==="display"||a==="visibility")return!0;let o=e[e.length-1],r=rS(n,a),s=rS(o,a);return _r(r===s,`You are trying to animate ${a} from "${n}" to "${o}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${o} via the \`style\` property.`),!r||!s?!1:aX(e)||(t==="spring"||af(t))&&i}l();l();function kd(e){return Fg(e)&&"offsetHeight"in e}var tX=new Set(["opacity","clipPath","filter","transform"]),iX=ld(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function mZ(e){let{motionValue:a,name:t,repeatDelay:i,repeatType:n,damping:o,type:r}=e;if(!kd(a?.owner?.current))return!1;let{onUpdate:s,transformTemplate:d}=a.owner.getProps();return iX()&&t&&tX.has(t)&&(t!=="transform"||!d)&&!s&&!i&&n!=="mirror"&&o!==0&&r!=="inertia"}var nX=40,tk=class extends Ms{constructor({autoplay:a=!0,delay:t=0,type:i="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:r="loop",keyframes:s,name:d,motionValue:u,element:p,...m}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=et.now();let g={autoplay:a,delay:t,type:i,repeat:n,repeatDelay:o,repeatType:r,name:d,motionValue:u,element:p,...m},b=p?.KeyframeResolver||Pr;this.keyframeResolver=new b(s,(f,v,_)=>this.onKeyframesResolved(f,v,g,!_),d,u,p),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(a,t,i,n){this.keyframeResolver=void 0;let{name:o,type:r,velocity:s,delay:d,isHandoff:u,onUpdate:p}=i;this.resolvedAt=et.now(),pZ(a,o,r,s)||((Xt.instantAnimations||!d)&&p?.(Fp(a,i,t)),a[0]=a[a.length-1],i.duration=0,i.repeat=0);let g={startTime:n?this.resolvedAt?this.resolvedAt-this.createdAt>nX?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:t,...i,keyframes:a},b=!u&&mZ(g)?new nf({...g,element:g.motionValue.owner.current}):new Tr(g);b.finished.then(()=>this.notifyFinished()).catch(Ka),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(a,t){return this.finished.finally(a).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),iS()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(a){this.animation.time=a}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(a){this.animation.speed=a}get startTime(){return this.animation.startTime}attachTimeline(a){return this._animation?this.stopTimeline=this.animation.attachTimeline(a):this.pendingTimeline=a,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};l();var oX=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function rX(e){let a=oX.exec(e);if(!a)return[,];let[,t,i,n]=a;return[`--${t??i}`,n]}var sX=4;function sS(e,a,t=1){In(t<=sX,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[i,n]=rX(e);if(!i)return;let o=window.getComputedStyle(a).getPropertyValue(i);if(o){let r=o.trim();return Mg(r)?parseFloat(r):r}return ud(n)?sS(n,a,t+1):n}l();function hd(e,a){return e?.[a]??e?.default??e}l();l();var ik=new Set(["width","height","top","left","right","bottom",...ro]);l();l();var cZ={test:e=>e==="auto",parse:e=>e};l();var of=e=>a=>a.test(e);var lS=[Mo,Ie,ei,oo,Vw,qw,cZ],dS=e=>lS.find(of(e));l();function gZ(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ng(e):!0}l();l();l();var lX=new Set(["brightness","contrast","saturate","opacity"]);function dX(e){let[a,t]=e.slice(0,-1).split("(");if(a==="drop-shadow")return e;let[i]=t.match(Gp)||[];if(!i)return e;let n=t.replace(i,""),o=lX.has(a)?1:0;return i!==t&&(o*=100),a+"("+o+n+")"}var uX=/\b([a-z-]*)\(.*?\)/gu,nk={...ai,getAnimatableNone:e=>{let a=e.match(uX);return a?a.map(dX).join(" "):e}};l();l();l();var uS={...Mo,transform:Math.round};l();var kZ={rotate:oo,rotateX:oo,rotateY:oo,rotateZ:oo,scale:Qg,scaleX:Qg,scaleY:Qg,scaleZ:Qg,skew:oo,skewX:oo,skewY:oo,distance:Ie,translateX:Ie,translateY:Ie,translateZ:Ie,x:Ie,y:Ie,z:Ie,perspective:Ie,transformPerspective:Ie,opacity:Ir,originX:Oy,originY:Oy,originZ:Ie};var bd={borderWidth:Ie,borderTopWidth:Ie,borderRightWidth:Ie,borderBottomWidth:Ie,borderLeftWidth:Ie,borderRadius:Ie,radius:Ie,borderTopLeftRadius:Ie,borderTopRightRadius:Ie,borderBottomRightRadius:Ie,borderBottomLeftRadius:Ie,width:Ie,maxWidth:Ie,height:Ie,maxHeight:Ie,top:Ie,right:Ie,bottom:Ie,left:Ie,padding:Ie,paddingTop:Ie,paddingRight:Ie,paddingBottom:Ie,paddingLeft:Ie,margin:Ie,marginTop:Ie,marginRight:Ie,marginBottom:Ie,marginLeft:Ie,backgroundPositionX:Ie,backgroundPositionY:Ie,...kZ,zIndex:uS,fillOpacity:Ir,strokeOpacity:Ir,numOctaves:uS};var hZ={...bd,color:Fa,backgroundColor:Fa,outlineColor:Fa,fill:Fa,stroke:Fa,borderColor:Fa,borderTopColor:Fa,borderRightColor:Fa,borderBottomColor:Fa,borderLeftColor:Fa,filter:nk,WebkitFilter:nk},ok=e=>hZ[e];function rk(e,a){let t=ok(e);return t!==nk&&(t=ai),t.getAnimatableNone?t.getAnimatableNone(a):void 0}var pX=new Set(["auto","none","0"]);function bZ(e,a,t){let i=0,n;for(;i<e.length&&!n;){let o=e[i];typeof o=="string"&&!pX.has(o)&&Ls(o).values.length&&(n=e[i]),i++}if(n&&t)for(let o of a)e[o]=rk(t,n)}var sk=class extends Pr{constructor(a,t,i,n,o){super(a,t,i,n,o,!0)}readKeyframes(){let{unresolvedKeyframes:a,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let d=0;d<a.length;d++){let u=a[d];if(typeof u=="string"&&(u=u.trim(),ud(u))){let p=sS(u,t.current);p!==void 0&&(a[d]=p),d===a.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!ik.has(i)||a.length!==2)return;let[n,o]=a,r=dS(n),s=dS(o);if(r!==s)if(Xw(r)&&Xw(s))for(let d=0;d<a.length;d++){let u=a[d];typeof u=="string"&&(a[d]=parseFloat(u))}else Fs[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:a,name:t}=this,i=[];for(let n=0;n<a.length;n++)(a[n]===null||gZ(a[n]))&&i.push(n);i.length&&bZ(a,i,t)}measureInitialState(){let{element:a,unresolvedKeyframes:t,name:i}=this;if(!a||!a.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Fs[i](a.measureViewportBox(),window.getComputedStyle(a.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];n!==void 0&&a.getValue(i,n).jump(n,!1)}measureEndState(){let{element:a,name:t,unresolvedKeyframes:i}=this;if(!a||!a.current)return;let n=a.getValue(t);n&&n.jump(this.measuredOrigin,!1);let o=i.length-1,r=i[o];i[o]=Fs[t](a.measureViewportBox(),window.getComputedStyle(a.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([s,d])=>{a.getValue(s).set(d)}),this.resolveNoneKeyframes()}};l();function vZ(e,a,t){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;a&&(i=a.current);let n=t?.[e]??i.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}l();var lk=(e,a)=>a&&typeof e=="number"?a.transform(e):e;l();var yZ=30,mX=e=>!isNaN(parseFloat(e)),pS={current:void 0},rf=class{constructor(a,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,n=!0)=>{let o=et.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let r of this.dependents)r.dirty();n&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(a),this.owner=t.owner}setCurrent(a){this.current=a,this.updatedAt=et.now(),this.canTrackVelocity===null&&a!==void 0&&(this.canTrackVelocity=mX(this.current))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,t){this.events[a]||(this.events[a]=new Ar);let i=this.events[a].add(t);return a==="change"?()=>{i(),Ke.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let a in this.events)this.events[a].clear()}attach(a,t){this.passiveEffect=a,this.stopPassiveEffect=t}set(a,t=!0){!t||!this.passiveEffect?this.updateAndNotify(a,t):this.passiveEffect(a,this.updateAndNotify)}setWithVelocity(a,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-i}jump(a,t=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(a){this.dependents||(this.dependents=new Set),this.dependents.add(a)}removeDependent(a){this.dependents&&this.dependents.delete(a)}get(){return pS.current&&pS.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let a=et.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||a-this.updatedAt>yZ)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,yZ);return Bg(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(a){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=a(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Tn(e,a){return new rf(e,a)}l();var{schedule:vd,cancel:cX}=qy(queueMicrotask,!1);l();var Pn={x:!1,y:!1};function sf(){return Pn.x||Pn.y}l();function mS(e){return e==="x"||e==="y"?Pn[e]?null:(Pn[e]=!0,()=>{Pn[e]=!1}):Pn.x||Pn.y?null:(Pn.x=Pn.y=!0,()=>{Pn.x=Pn.y=!1})}l();l();function lf(e,a){let t=vZ(e),i=new AbortController,n={passive:!0,...a,signal:i.signal};return[t,n,()=>i.abort()]}function fZ(e){return!(e.pointerType==="touch"||sf())}function cS(e,a,t={}){let[i,n,o]=lf(e,t),r=s=>{if(!fZ(s))return;let{target:d}=s,u=a(d,s);if(typeof u!="function"||!d)return;let p=m=>{fZ(m)&&(u(m),d.removeEventListener("pointerleave",p))};d.addEventListener("pointerleave",p,n)};return i.forEach(s=>{s.addEventListener("pointerenter",r,n)}),o}l();l();var gS=(e,a)=>a?e===a?!0:gS(e,a.parentElement):!1;l();var yd=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;l();var gX=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function _Z(e){return gX.has(e.tagName)||e.tabIndex!==-1}l();l();var Np=new WeakSet;function AZ(e){return a=>{a.key==="Enter"&&e(a)}}function kS(e,a){e.dispatchEvent(new PointerEvent("pointer"+a,{isPrimary:!0,bubbles:!0}))}var IZ=(e,a)=>{let t=e.currentTarget;if(!t)return;let i=AZ(()=>{if(Np.has(t))return;kS(t,"down");let n=AZ(()=>{kS(t,"up")}),o=()=>kS(t,"cancel");t.addEventListener("keyup",n,a),t.addEventListener("blur",o,a)});t.addEventListener("keydown",i,a),t.addEventListener("blur",()=>t.removeEventListener("keydown",i),a)};function TZ(e){return yd(e)&&!sf()}function hS(e,a,t={}){let[i,n,o]=lf(e,t),r=s=>{let d=s.currentTarget;if(!TZ(s))return;Np.add(d);let u=a(d,s),p=(b,f)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),Np.has(d)&&Np.delete(d),TZ(b)&&typeof u=="function"&&u(b,{success:f})},m=b=>{p(b,d===window||d===document||t.useGlobalTarget||gS(d,b.target))},g=b=>{p(b,!1)};window.addEventListener("pointerup",m,n),window.addEventListener("pointercancel",g,n)};return i.forEach(s=>{(t.useGlobalTarget?window:s).addEventListener("pointerdown",r,n),kd(s)&&(s.addEventListener("focus",u=>IZ(u,n)),!_Z(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),o}l();function dk(e){return Fg(e)&&"ownerSVGElement"in e}l();function bS(e){return dk(e)&&e.tagName==="svg"}l();var fa=e=>!!(e&&e.getVelocity);l();var kX=[...lS,Fa,ai],vS=e=>kX.find(of(e));var df=S(R(),1),zr=S(R(),1);l();var PZ=S(R(),1),Bp=(0,PZ.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var yS=class extends df.Component{getSnapshotBeforeUpdate(a){let t=this.props.childRef.current;if(t&&a.isPresent&&!this.props.isPresent){let i=t.offsetParent,n=kd(i)&&i.offsetWidth||0,o=this.props.sizeRef.current;o.height=t.offsetHeight||0,o.width=t.offsetWidth||0,o.top=t.offsetTop,o.left=t.offsetLeft,o.right=n-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}};function wZ({children:e,isPresent:a,anchorX:t}){let i=(0,zr.useId)(),n=(0,zr.useRef)(null),o=(0,zr.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:r}=(0,zr.useContext)(Bp);return(0,zr.useInsertionEffect)(()=>{let{width:s,height:d,top:u,left:p,right:m}=o.current;if(a||!n.current||!s||!d)return;let g=t==="left"?`left: ${p}`:`right: ${m}`;n.current.dataset.motionPopId=i;let b=document.createElement("style");return r&&(b.nonce=r),document.head.appendChild(b),b.sheet&&b.sheet.insertRule(`
118
118
  [data-motion-pop-id="${i}"] {
119
119
  position: absolute !important;
120
120
  width: ${s}px !important;
@@ -122,7 +122,7 @@ try {
122
122
  ${g}px !important;
123
123
  top: ${u}px !important;
124
124
  }
125
- `),()=>{document.head.contains(b)&&document.head.removeChild(b)}},[a]),(0,zZ.jsx)(yS,{isPresent:a,childRef:n,sizeRef:o,children:df.cloneElement(e,{ref:n})})}var jZ=({children:e,initial:a,isPresent:t,onExitComplete:i,custom:n,presenceAffectsLayout:o,mode:r,anchorX:s})=>{let d=xp(hX),u=(0,uk.useId)(),p=!0,m=(0,uk.useMemo)(()=>(p=!1,{id:u,initial:a,isPresent:t,custom:n,onExitComplete:g=>{d.set(g,!0);for(let b of d.values())if(!b)return;i&&i()},register:g=>(d.set(g,!1),()=>d.delete(g))}),[t,d,i]);return o&&p&&(m={...m}),(0,uk.useMemo)(()=>{d.forEach((g,b)=>d.set(b,!1))},[t]),SZ.useEffect(()=>{!t&&!d.size&&i&&i()},[t]),r==="popLayout"&&(e=(0,fS.jsx)(wZ,{isPresent:t,anchorX:s,children:e})),(0,fS.jsx)(Ds.Provider,{value:m,children:e})};function hX(){return new Map}l();var Ns=S(R(),1);function uf(e=!0){let a=(0,Ns.useContext)(Ds);if(a===null)return[!0,null];let{isPresent:t,onExitComplete:i,register:n}=a,o=(0,Ns.useId)();(0,Ns.useEffect)(()=>{if(e)return n(o)},[e]);let r=(0,Ns.useCallback)(()=>e&&i&&i(o),[o,i,e]);return!t&&i?[!1,r]:[!0]}l();var pf=S(R(),1),pk=e=>e.key||"";function _S(e){let a=[];return pf.Children.forEach(e,t=>{(0,pf.isValidElement)(t)&&a.push(t)}),a}var Rp=({children:e,custom:a,initial:t=!0,onExitComplete:i,presenceAffectsLayout:n=!0,mode:o="sync",propagate:r=!1,anchorX:s="left"})=>{let[d,u]=uf(r),p=(0,No.useMemo)(()=>_S(e),[e]),m=r&&!d?[]:p.map(pk),g=(0,No.useRef)(!0),b=(0,No.useRef)(p),f=xp(()=>new Map),[v,_]=(0,No.useState)(p),[h,k]=(0,No.useState)(p);Fy(()=>{g.current=!1,b.current=p;for(let A=0;A<h.length;A++){let T=pk(h[A]);m.includes(T)?f.delete(T):f.get(T)!==!0&&f.set(T,!1)}},[h,m.length,m.join("-")]);let y=[];if(p!==v){let A=[...p];for(let T=0;T<h.length;T++){let P=h[T],z=pk(P);m.includes(z)||(A.splice(T,0,P),y.push(P))}return o==="wait"&&y.length&&(A=y),k(_S(A)),_(p),null}let{forceRender:I}=(0,No.useContext)(jp);return(0,mk.jsx)(mk.Fragment,{children:h.map(A=>{let T=pk(A),P=r&&!d?!1:p===h||m.includes(T),z=()=>{if(f.has(T))f.set(T,!0);else return;let D=!0;f.forEach(C=>{C||(D=!1)}),D&&(I?.(),k(b.current),r&&u?.(),i&&i())};return(0,mk.jsx)(jZ,{isPresent:P,initial:!g.current||t?void 0:!1,custom:a,presenceAffectsLayout:n,mode:o,onExitComplete:P?void 0:z,anchorX:s,children:A},T)})})};l();var xZ=S(R(),1),mf=(0,xZ.createContext)({strict:!1});l();l();var CZ={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},wr={};for(let e in CZ)wr[e]={isEnabled:a=>CZ[e].some(t=>!!a[t])};function DZ(e){for(let a in e)wr[a]={...wr[a],...e[a]}}l();l();var bX=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ck(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||bX.has(e)}var GZ=e=>!ck(e);function vX(e){typeof e=="function"&&(GZ=a=>a.startsWith("on")?!ck(a):e(a))}try{vX((hv(),co(VL)).default)}catch{}function WZ(e,a,t){let i={};for(let n in e)n==="values"&&typeof e.values=="object"||(GZ(n)||t===!0&&ck(n)||!a&&!ck(n)||e.draggable&&n.startsWith("onDrag"))&&(i[n]=e[n]);return i}l();function EZ(e){if(typeof Proxy>"u")return e;let a=new Map,t=(...i)=>e(...i);return new Proxy(t,{get:(i,n)=>n==="create"?e:(a.has(n)||a.set(n,e(n)),a.get(n))})}l();l();var vf=S(ne(),1);var qp=S(R(),1);l();var LZ=S(R(),1),Bs=(0,LZ.createContext)({});l();var kf=S(R(),1);l();l();l();function Rs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}l();function Sr(e){return typeof e=="string"||Array.isArray(e)}l();var cf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],gk=["initial",...cf];function fd(e){return Rs(e.animate)||gk.some(a=>Sr(e[a]))}function gf(e){return!!(fd(e)||e.variants)}function MZ(e,a){if(fd(e)){let{initial:t,animate:i}=e;return{initial:t===!1||Sr(t)?t:void 0,animate:Sr(i)?i:void 0}}return e.inherit!==!1?a:{}}function NZ(e){let{initial:a,animate:t}=MZ(e,(0,kf.useContext)(Bs));return(0,kf.useMemo)(()=>({initial:a,animate:t}),[FZ(a),FZ(t)])}function FZ(e){return Array.isArray(e)?e.join(" "):e}l();var BZ=Symbol.for("motionComponentSymbol");l();var RZ=S(R(),1);l();function jr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ZZ(e,a,t){return(0,RZ.useCallback)(i=>{i&&e.onMount&&e.onMount(i),a&&(i?a.mount(i):a.unmount()),t&&(typeof t=="function"?t(i):jr(t)&&(t.current=i))},[a])}l();var ji=S(R(),1);l();l();var Zp=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var yX="framerAppearId",hf="data-"+Zp(yX);l();var qZ=S(R(),1),bf=(0,qZ.createContext)({});function VZ(e,a,t,i,n){let{visualElement:o}=(0,ji.useContext)(Bs),r=(0,ji.useContext)(mf),s=(0,ji.useContext)(Ds),d=(0,ji.useContext)(Bp).reducedMotion,u=(0,ji.useRef)(null);i=i||r.renderer,!u.current&&i&&(u.current=i(e,{visualState:a,parent:o,props:t,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:d}));let p=u.current,m=(0,ji.useContext)(bf);p&&!p.projection&&n&&(p.type==="html"||p.type==="svg")&&fX(u.current,t,n,m);let g=(0,ji.useRef)(!1);(0,ji.useInsertionEffect)(()=>{p&&g.current&&p.update(t,s)});let b=t[hf],f=(0,ji.useRef)(!!b&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return Fy(()=>{p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),vd.render(p.render),f.current&&p.animationState&&p.animationState.animateChanges())}),(0,ji.useEffect)(()=>{p&&(!f.current&&p.animationState&&p.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}),f.current=!1))}),p}function fX(e,a,t,i){let{layoutId:n,layout:o,drag:r,dragConstraints:s,layoutScroll:d,layoutRoot:u,layoutCrossfade:p}=a;e.projection=new t(e.latestValues,a["data-framer-portal-id"]?void 0:UZ(e.parent)),e.projection.setOptions({layoutId:n,layout:o,alwaysMeasureLayout:!!r||s&&jr(s),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:i,crossfade:p,layoutScroll:d,layoutRoot:u})}function UZ(e){if(e)return e.options.allowProjection!==!1?e.projection:UZ(e.parent)}function OZ({preloadedFeatures:e,createVisualElement:a,useRender:t,useVisualState:i,Component:n}){e&&DZ(e);function o(s,d){let u,p={...(0,qp.useContext)(Bp),...s,layoutId:_X(s)},{isStatic:m}=p,g=NZ(s),b=i(s,m);if(!m&&Cp){AX(p,e);let f=IX(p);u=f.MeasureLayout,g.visualElement=VZ(n,b,p,a,f.ProjectionNode)}return(0,vf.jsxs)(Bs.Provider,{value:g,children:[u&&g.visualElement?(0,vf.jsx)(u,{visualElement:g.visualElement,...p}):null,t(n,s,ZZ(b,g.visualElement,d),b,m,g.visualElement)]})}o.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;let r=(0,qp.forwardRef)(o);return r[BZ]=n,r}function _X({layoutId:e}){let a=(0,qp.useContext)(jp).id;return a&&e!==void 0?a+"-"+e:e}function AX(e,a){let t=(0,qp.useContext)(mf).strict}function IX(e){let{drag:a,layout:t}=wr;if(!a&&!t)return{};let i={...a,...t};return{MeasureLayout:a?.isEnabled(e)||t?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}l();var Kp=S(R(),1);l();var YZ=S(R(),1);l();l();var _d={};function KZ(e){for(let a in e)_d[a]=e[a],dd(a)&&(_d[a].isCSSVariable=!0)}function yf(e,{layout:a,layoutId:t}){return Qi.has(e)||e.startsWith("origin")||(a||t!==void 0)&&(!!_d[e]||e==="opacity")}l();l();var TX={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},PX=ro.length;function HZ(e,a,t){let i="",n=!0;for(let o=0;o<PX;o++){let r=ro[o],s=e[r];if(s===void 0)continue;let d=!0;if(typeof s=="number"?d=s===(r.startsWith("scale")?1:0):d=parseFloat(s)===0,!d||t){let u=lk(s,bd[r]);if(!d){n=!1;let p=TX[r]||r;i+=`${p}(${u}) `}t&&(a[r]=u)}}return i=i.trim(),t?i=t(a,n?"":i):n&&(i="none"),i}function Vp(e,a,t){let{style:i,vars:n,transformOrigin:o}=e,r=!1,s=!1;for(let d in a){let u=a[d];if(Qi.has(d)){r=!0;continue}else if(dd(d)){n[d]=u;continue}else{let p=lk(u,bd[d]);d.startsWith("origin")?(s=!0,o[d]=p):i[d]=p}}if(a.transform||(r||t?i.transform=HZ(a,e.transform,t):i.transform&&(i.transform="none")),s){let{originX:d="50%",originY:u="50%",originZ:p=0}=o;i.transformOrigin=`${d} ${u} ${p}`}}l();var Up=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function AS(e,a,t){for(let i in a)!fa(a[i])&&!yf(i,t)&&(e[i]=a[i])}function zX({transformTemplate:e},a){return(0,YZ.useMemo)(()=>{let t=Up();return Vp(t,a,e),Object.assign({},t.vars,t.style)},[a])}function wX(e,a){let t=e.style||{},i={};return AS(i,t,e),Object.assign(i,zX(e,a)),i}function QZ(e,a){let t={},i=wX(e,a);return e.drag&&e.dragListener!==!1&&(t.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(t.tabIndex=0),t.style=i,t}l();var JZ=S(R(),1);l();l();var SX={offset:"stroke-dashoffset",array:"stroke-dasharray"},jX={offset:"strokeDashoffset",array:"strokeDasharray"};function $Z(e,a,t=1,i=0,n=!0){e.pathLength=1;let o=n?SX:jX;e[o.offset]=Ie.transform(-i);let r=Ie.transform(a),s=Ie.transform(t);e[o.array]=`${r} ${s}`}function ff(e,{attrX:a,attrY:t,attrScale:i,pathLength:n,pathSpacing:o=1,pathOffset:r=0,...s},d,u,p){if(Vp(e,s,u),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:m,style:g}=e;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=p?.transformBox??"fill-box",delete m.transformBox),a!==void 0&&(m.x=a),t!==void 0&&(m.y=t),i!==void 0&&(m.scale=i),n!==void 0&&$Z(m,n,o,r,!1)}l();var _f=()=>({...Up(),attrs:{}});l();var Af=e=>typeof e=="string"&&e.toLowerCase()==="svg";function XZ(e,a,t,i){let n=(0,JZ.useMemo)(()=>{let o=_f();return ff(o,a,Af(i),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[a]);if(e.style){let o={};AS(o,e.style,e),n.style={...o,...n.style}}return n}l();l();var eq=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Op(e){return typeof e!="string"||e.includes("-")?!1:!!(eq.indexOf(e)>-1||/[A-Z]/u.test(e))}function aq(e=!1){return(t,i,n,{latestValues:o},r)=>{let d=(Op(t)?XZ:QZ)(i,o,r,t),u=WZ(i,typeof t=="string",e),p=t!==Kp.Fragment?{...u,...d,ref:n}:{},{children:m}=i,g=(0,Kp.useMemo)(()=>fa(m)?m.get():m,[m]);return(0,Kp.createElement)(t,{...p,children:g})}}l();l();var IS=S(R(),1);l();function tq(e){let a=[{},{}];return e?.values.forEach((t,i)=>{a[0][i]=t.get(),a[1][i]=t.getVelocity()}),a}function Hp(e,a,t,i){if(typeof a=="function"){let[n,o]=tq(i);a=a(t!==void 0?t:e.custom,n,o)}if(typeof a=="string"&&(a=e.variants&&e.variants[a]),typeof a=="function"){let[n,o]=tq(i);a=a(t!==void 0?t:e.custom,n,o)}return a}l();function Yp(e){return fa(e)?e.get():e}function xX({scrapeMotionValuesFromProps:e,createRenderState:a},t,i,n){return{latestValues:CX(t,i,n,e),renderState:a()}}var If=e=>(a,t)=>{let i=(0,IS.useContext)(Bs),n=(0,IS.useContext)(Ds),o=()=>xX(e,a,i,n);return t?o():xp(o)};function CX(e,a,t,i){let n={},o=i(e,{});for(let g in o)n[g]=Yp(o[g]);let{initial:r,animate:s}=e,d=fd(e),u=gf(e);a&&u&&!d&&e.inherit!==!1&&(r===void 0&&(r=a.initial),s===void 0&&(s=a.animate));let p=t?t.initial===!1:!1;p=p||r===!1;let m=p?s:r;if(m&&typeof m!="boolean"&&!Rs(m)){let g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){let f=Hp(e,g[b]);if(f){let{transitionEnd:v,transition:_,...h}=f;for(let k in h){let y=h[k];if(Array.isArray(y)){let I=p?y.length-1:0;y=y[I]}y!==null&&(n[k]=y)}for(let k in v)n[k]=v[k]}}}return n}l();function Qp(e,a,t){let{style:i}=e,n={};for(let o in i)(fa(i[o])||a.style&&fa(a.style[o])||yf(o,e)||t?.getValue(o)?.liveStyle!==void 0)&&(n[o]=i[o]);return n}var iq={useVisualState:If({scrapeMotionValuesFromProps:Qp,createRenderState:Up})};l();l();function Tf(e,a,t){let i=Qp(e,a,t);for(let n in e)if(fa(e[n])||fa(a[n])){let o=ro.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;i[o]=e[n]}return i}var nq={useVisualState:If({scrapeMotionValuesFromProps:Tf,createRenderState:_f})};function oq(e,a){return function(i,{forwardMotionProps:n}={forwardMotionProps:!1}){let r={...Op(i)?nq:iq,preloadedFeatures:e,useRender:aq(n),createVisualElement:a,Component:i};return OZ(r)}}l();l();l();l();l();l();l();function xr(e,a,t){let i=e.getProps();return Hp(i,a,t!==void 0?t:i.custom,e)}l();l();l();var kk=e=>Array.isArray(e);function DX(e,a,t){e.hasValue(a)?e.getValue(a).set(t):e.addValue(a,Tn(t))}function GX(e){return kk(e)?e[e.length-1]||0:e}function rq(e,a){let t=xr(e,a),{transitionEnd:i={},transition:n={},...o}=t||{};o={...o,...i};for(let r in o){let s=GX(o[r]);DX(e,r,s)}}l();l();function sq(e){return!!(fa(e)&&e.add)}function hk(e,a){let t=e.getValue("willChange");if(sq(t))return t.add(a);if(!t&&Xt.WillChange){let i=new Xt.WillChange("auto");e.addValue("willChange",i),i.add(a)}}l();function Pf(e){return e.props[hf]}l();l();var WX=e=>e!==null;function lq(e,{repeat:a,repeatType:t="loop"},i){let n=e.filter(WX),o=a&&t!=="loop"&&a%2===1?0:n.length-1;return!o||i===void 0?n[o]:i}l();var EX={type:"spring",stiffness:500,damping:25,restSpeed:10},LX=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),MX={type:"keyframes",duration:.8},FX={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dq=(e,{keyframes:a})=>a.length>2?MX:Qi.has(e)?e.startsWith("scale")?LX(a[1]):EX:FX;l();function uq({when:e,delay:a,delayChildren:t,staggerChildren:i,staggerDirection:n,repeat:o,repeatType:r,repeatDelay:s,from:d,elapsed:u,...p}){return!!Object.keys(p).length}var $p=(e,a,t,i={},n,o)=>r=>{let s=hd(i,e)||{},d=s.delay||i.delay||0,{elapsed:u=0}=i;u=u-vt(d);let p={keyframes:Array.isArray(t)?t:[null,t],ease:"easeOut",velocity:a.getVelocity(),...s,delay:-u,onUpdate:g=>{a.set(g),s.onUpdate&&s.onUpdate(g)},onComplete:()=>{r(),s.onComplete&&s.onComplete()},name:e,motionValue:a,element:o?void 0:n};uq(s)||Object.assign(p,dq(e,p)),p.duration&&(p.duration=vt(p.duration)),p.repeatDelay&&(p.repeatDelay=vt(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let m=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(p.duration=0,p.delay===0&&(m=!0)),(Xt.instantAnimations||Xt.skipAnimations)&&(m=!0,p.duration=0,p.delay=0),p.allowFlatten=!s.type&&!s.ease,m&&!o&&a.get()!==void 0){let g=lq(p.keyframes,s);if(g!==void 0){Ke.update(()=>{p.onUpdate(g),p.onComplete()});return}}return s.isSync?new Tr(p):new tk(p)};function NX({protectedKeys:e,needsAnimating:a},t){let i=e.hasOwnProperty(t)&&a[t]!==!0;return a[t]=!1,i}function zf(e,a,{delay:t=0,transitionOverride:i,type:n}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:r,...s}=a;i&&(o=i);let d=[],u=n&&e.animationState&&e.animationState.getState()[n];for(let p in s){let m=e.getValue(p,e.latestValues[p]??null),g=s[p];if(g===void 0||u&&NX(u,p))continue;let b={delay:t,...hd(o||{},p)},f=m.get();if(f!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===f&&!b.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){let h=Pf(e);if(h){let k=window.MotionHandoffAnimation(h,p,Ke);k!==null&&(b.startTime=k,v=!0)}}hk(e,p),m.start($p(p,m,g,e.shouldReduceMotion&&ik.has(p)?{type:!1}:b,e,v));let _=m.animation;_&&d.push(_)}return r&&Promise.all(d).then(()=>{Ke.update(()=>{r&&rq(e,r)})}),d}l();function wf(e,a,t={}){let i=xr(e,a,t.type==="exit"?e.presenceContext?.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=i||{};t.transitionOverride&&(n=t.transitionOverride);let o=i?()=>Promise.all(zf(e,i,t)):()=>Promise.resolve(),r=e.variantChildren&&e.variantChildren.size?(d=0)=>{let{delayChildren:u=0,staggerChildren:p,staggerDirection:m}=n;return BX(e,a,u+d,p,m,t)}:()=>Promise.resolve(),{when:s}=n;if(s){let[d,u]=s==="beforeChildren"?[o,r]:[r,o];return d().then(()=>u())}else return Promise.all([o(),r(t.delay)])}function BX(e,a,t=0,i=0,n=1,o){let r=[],s=(e.variantChildren.size-1)*i,d=n===1?(u=0)=>u*i:(u=0)=>s-u*i;return Array.from(e.variantChildren).sort(RX).forEach((u,p)=>{u.notify("AnimationStart",a),r.push(wf(u,a,{...o,delay:t+d(p)}).then(()=>u.notify("AnimationComplete",a)))}),Promise.all(r)}function RX(e,a){return e.sortNodePosition(a)}function pq(e,a,t={}){e.notify("AnimationStart",a);let i;if(Array.isArray(a)){let n=a.map(o=>wf(e,o,t));i=Promise.all(n)}else if(typeof a=="string")i=wf(e,a,t);else{let n=typeof a=="function"?xr(e,a,t.custom):a;i=Promise.all(zf(e,n,t))}return i.then(()=>{e.notify("AnimationComplete",a)})}l();function TS(e,a){if(!Array.isArray(a))return!1;let t=a.length;if(t!==e.length)return!1;for(let i=0;i<t;i++)if(a[i]!==e[i])return!1;return!0}l();var ZX=gk.length;function PS(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent?PS(e.parent)||{}:{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let a={};for(let t=0;t<ZX;t++){let i=gk[t],n=e.props[i];(Sr(n)||n===!1)&&(a[i]=n)}return a}var qX=[...cf].reverse(),VX=cf.length;function UX(e){return a=>Promise.all(a.map(({animation:t,options:i})=>pq(e,t,i)))}function cq(e){let a=UX(e),t=mq(),i=!0,n=d=>(u,p)=>{let m=xr(e,p,d==="exit"?e.presenceContext?.custom:void 0);if(m){let{transition:g,transitionEnd:b,...f}=m;u={...u,...f,...b}}return u};function o(d){a=d(e)}function r(d){let{props:u}=e,p=PS(e.parent)||{},m=[],g=new Set,b={},f=1/0;for(let _=0;_<VX;_++){let h=qX[_],k=t[h],y=u[h]!==void 0?u[h]:p[h],I=Sr(y),A=h===d?k.isActive:null;A===!1&&(f=_);let T=y===p[h]&&y!==u[h]&&I;if(T&&i&&e.manuallyAnimateOnMount&&(T=!1),k.protectedKeys={...b},!k.isActive&&A===null||!y&&!k.prevProp||Rs(y)||typeof y=="boolean")continue;let P=OX(k.prevProp,y),z=P||h===d&&k.isActive&&!T&&I||_>f&&I,D=!1,C=Array.isArray(y)?y:[y],W=C.reduce(n(h),{});A===!1&&(W={});let{prevResolvedValues:F={}}=k,N={...F,...W},q=E=>{z=!0,g.has(E)&&(D=!0,g.delete(E)),k.needsAnimating[E]=!0;let V=e.getValue(E);V&&(V.liveStyle=!1)};for(let E in N){let V=W[E],pe=F[E];if(b.hasOwnProperty(E))continue;let we=!1;kk(V)&&kk(pe)?we=!TS(V,pe):we=V!==pe,we?V!=null?q(E):g.add(E):V!==void 0&&g.has(E)?q(E):k.protectedKeys[E]=!0}k.prevProp=y,k.prevResolvedValues=W,k.isActive&&(b={...b,...W}),i&&e.blockInitialAnimation&&(z=!1),z&&(!(T&&P)||D)&&m.push(...C.map(E=>({animation:E,options:{type:h}})))}if(g.size){let _={};if(typeof u.initial!="boolean"){let h=xr(e,Array.isArray(u.initial)?u.initial[0]:u.initial);h&&h.transition&&(_.transition=h.transition)}g.forEach(h=>{let k=e.getBaseTarget(h),y=e.getValue(h);y&&(y.liveStyle=!0),_[h]=k??null}),m.push({animation:_})}let v=!!m.length;return i&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(v=!1),i=!1,v?a(m):Promise.resolve()}function s(d,u){if(t[d].isActive===u)return Promise.resolve();e.variantChildren?.forEach(m=>m.animationState?.setActive(d,u)),t[d].isActive=u;let p=r(d);for(let m in t)t[m].protectedKeys={};return p}return{animateChanges:r,setActive:s,setAnimateFunction:o,getState:()=>t,reset:()=>{t=mq(),i=!0}}}function OX(e,a){return typeof a=="string"?a!==e:Array.isArray(a)?!TS(a,e):!1}function Ad(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mq(){return{animate:Ad(!0),whileInView:Ad(),whileHover:Ad(),whileTap:Ad(),whileDrag:Ad(),whileFocus:Ad(),exit:Ad()}}l();var St=class{constructor(a){this.isMounted=!1,this.node=a}update(){}};var Sf=class extends St{constructor(a){super(a),a.animationState||(a.animationState=cq(a))}updateAnimationControlsSubscription(){let{animate:a}=this.node.getProps();Rs(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:a}=this.node.getProps(),{animate:t}=this.node.prevProps||{};a!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};l();var KX=0,jf=class extends St{constructor(){super(...arguments),this.id=KX++}update(){if(!this.node.presenceContext)return;let{isPresent:a,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===i)return;let n=this.node.animationState.setActive("exit",!a);t&&!a&&n.then(()=>{t(this.id)})}mount(){let{register:a,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),a&&(this.unmount=a(this.id))}unmount(){}};var gq={animation:{Feature:Sf},exit:{Feature:jf}};l();l();l();l();function Cr(e,a,t,i={passive:!0}){return e.addEventListener(a,t,i),()=>e.removeEventListener(a,t)}l();l();function Dr(e){return{point:{x:e.pageX,y:e.pageY}}}var kq=e=>a=>yd(a)&&e(a,Dr(a));function Zs(e,a,t,i){return Cr(e,a,kq(t),i)}l();function xf({top:e,left:a,right:t,bottom:i}){return{x:{min:a,max:t},y:{min:e,max:i}}}function hq({x:e,y:a}){return{top:a.min,right:e.max,bottom:a.max,left:e.min}}function bq(e,a){if(!a)return e;let t=a({x:e.left,y:e.top}),i=a({x:e.right,y:e.bottom});return{top:t.y,left:t.x,bottom:i.y,right:i.x}}l();var _q=1e-4,HX=1-_q,YX=1+_q,Aq=.01,QX=0-Aq,$X=0+Aq;function yt(e){return e.max-e.min}function Iq(e,a,t){return Math.abs(e-a)<=t}function vq(e,a,t,i=.5){e.origin=i,e.originPoint=ea(a.min,a.max,e.origin),e.scale=yt(t)/yt(a),e.translate=ea(t.min,t.max,e.origin)-e.originPoint,(e.scale>=HX&&e.scale<=YX||isNaN(e.scale))&&(e.scale=1),(e.translate>=QX&&e.translate<=$X||isNaN(e.translate))&&(e.translate=0)}function Jp(e,a,t,i){vq(e.x,a.x,t.x,i?i.originX:void 0),vq(e.y,a.y,t.y,i?i.originY:void 0)}function yq(e,a,t){e.min=t.min+a.min,e.max=e.min+yt(a)}function Tq(e,a,t){yq(e.x,a.x,t.x),yq(e.y,a.y,t.y)}function fq(e,a,t){e.min=a.min-t.min,e.max=e.min+yt(a)}function Xp(e,a,t){fq(e.x,a.x,t.x),fq(e.y,a.y,t.y)}l();var Pq=()=>({translate:0,scale:1,origin:0,originPoint:0}),Id=()=>({x:Pq(),y:Pq()}),zq=()=>({min:0,max:0}),xa=()=>({x:zq(),y:zq()});l();function xi(e){return[e("x"),e("y")]}l();l();l();function zS(e){return e===void 0||e===1}function Cf({scale:e,scaleX:a,scaleY:t}){return!zS(e)||!zS(a)||!zS(t)}function Gr(e){return Cf(e)||wS(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function wS(e){return wq(e.x)||wq(e.y)}function wq(e){return e&&e!=="0%"}function bk(e,a,t){let i=e-t,n=a*i;return t+n}function Sq(e,a,t,i,n){return n!==void 0&&(e=bk(e,n,i)),bk(e,t,i)+a}function SS(e,a=0,t=1,i,n){e.min=Sq(e.min,a,t,i,n),e.max=Sq(e.max,a,t,i,n)}function jS(e,{x:a,y:t}){SS(e.x,a.translate,a.scale,a.originPoint),SS(e.y,t.translate,t.scale,t.originPoint)}var jq=.999999999999,xq=1.0000000000001;function Dq(e,a,t,i=!1){let n=t.length;if(!n)return;a.x=a.y=1;let o,r;for(let s=0;s<n;s++){o=t[s],r=o.projectionDelta;let{visualElement:d}=o.options;d&&d.props.style&&d.props.style.display==="contents"||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Td(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(a.x*=r.x.scale,a.y*=r.y.scale,jS(e,r)),i&&Gr(o.latestValues)&&Td(e,o.latestValues))}a.x<xq&&a.x>jq&&(a.x=1),a.y<xq&&a.y>jq&&(a.y=1)}function qs(e,a){e.min=e.min+a,e.max=e.max+a}function Cq(e,a,t,i,n=.5){let o=ea(e.min,e.max,n);SS(e,a,t,o,i)}function Td(e,a){Cq(e.x,a.x,a.scaleX,a.scale,a.originX),Cq(e.y,a.y,a.scaleY,a.scale,a.originY)}function xS(e,a){return xf(bq(e.getBoundingClientRect(),a))}function Gq(e,a,t){let i=xS(e,t),{scroll:n}=a;return n&&(qs(i.x,n.offset.x),qs(i.y,n.offset.y)),i}l();var Df=({current:e})=>e?e.ownerDocument.defaultView:null;l();l();var Wq=(e,a)=>Math.abs(e-a);function Eq(e,a){let t=Wq(e.x,a.x),i=Wq(e.y,a.y);return Math.sqrt(t**2+i**2)}var em=class{constructor(a,t,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let m=DS(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,b=Eq(m.offset,{x:0,y:0})>=3;if(!g&&!b)return;let{point:f}=m,{timestamp:v}=Xa;this.history.push({...f,timestamp:v});let{onStart:_,onMove:h}=this.handlers;g||(_&&_(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=CS(g,this.transformPagePoint),Ke.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();let{onEnd:b,onSessionEnd:f,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let _=DS(m.type==="pointercancel"?this.lastMoveEventInfo:CS(g,this.transformPagePoint),this.history);this.startEvent&&b&&b(m,_),f&&f(m,_)},!yd(a))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=i,this.contextWindow=n||window;let r=Dr(a),s=CS(r,this.transformPagePoint),{point:d}=s,{timestamp:u}=Xa;this.history=[{...d,timestamp:u}];let{onSessionStart:p}=t;p&&p(a,DS(s,this.history)),this.removeListeners=io(Zs(this.contextWindow,"pointermove",this.handlePointerMove),Zs(this.contextWindow,"pointerup",this.handlePointerUp),Zs(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),Si(this.updatePoint)}};function CS(e,a){return a?{point:a(e.point)}:e}function Lq(e,a){return{x:e.x-a.x,y:e.y-a.y}}function DS({point:e},a){return{point:e,delta:Lq(e,Mq(a)),offset:Lq(e,JX(a)),velocity:XX(a,.1)}}function JX(e){return e[0]}function Mq(e){return e[e.length-1]}function XX(e,a){if(e.length<2)return{x:0,y:0};let t=e.length-1,i=null,n=Mq(e);for(;t>=0&&(i=e[t],!(n.timestamp-i.timestamp>vt(a)));)t--;if(!i)return{x:0,y:0};let o=Bt(n.timestamp-i.timestamp);if(o===0)return{x:0,y:0};let r={x:(n.x-i.x)/o,y:(n.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}l();function Zq(e,{min:a,max:t},i){return a!==void 0&&e<a?e=i?ea(a,e,i.min):Math.max(e,a):t!==void 0&&e>t&&(e=i?ea(t,e,i.max):Math.min(e,t)),e}function Fq(e,a,t){return{min:a!==void 0?e.min+a:void 0,max:t!==void 0?e.max+t-(e.max-e.min):void 0}}function qq(e,{top:a,left:t,bottom:i,right:n}){return{x:Fq(e.x,t,n),y:Fq(e.y,a,i)}}function Nq(e,a){let t=a.min-e.min,i=a.max-e.max;return a.max-a.min<e.max-e.min&&([t,i]=[i,t]),{min:t,max:i}}function Vq(e,a){return{x:Nq(e.x,a.x),y:Nq(e.y,a.y)}}function Uq(e,a){let t=.5,i=yt(e),n=yt(a);return n>i?t=Lo(a.min,a.max-i,e.min):i>n&&(t=Lo(e.min,e.max-n,a.min)),wt(0,1,t)}function Oq(e,a){let t={};return a.min!==void 0&&(t.min=a.min-e.min),a.max!==void 0&&(t.max=a.max-e.min),t}var Gf=.35;function Kq(e=Gf){return e===!1?e=0:e===!0&&(e=Gf),{x:Bq(e,"left","right"),y:Bq(e,"top","bottom")}}function Bq(e,a,t){return{min:Rq(e,a),max:Rq(e,t)}}function Rq(e,a){return typeof e=="number"?e:e[a]||0}var eee=new WeakMap,Ef=class{constructor(a){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=xa(),this.visualElement=a}start(a,{snapToCursor:t=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;let n=p=>{let{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Dr(p).point)},o=(p,m)=>{let{drag:g,dragPropagation:b,onDragStart:f}=this.getProps();if(g&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=mS(g),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),xi(_=>{let h=this.getAxisMotionValue(_).get()||0;if(ei.test(h)){let{projection:k}=this.visualElement;if(k&&k.layout){let y=k.layout.layoutBox[_];y&&(h=yt(y)*(parseFloat(h)/100))}}this.originPoint[_]=h}),f&&Ke.postRender(()=>f(p,m)),hk(this.visualElement,"transform");let{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},r=(p,m)=>{let{dragPropagation:g,dragDirectionLock:b,onDirectionLock:f,onDrag:v}=this.getProps();if(!g&&!this.openDragLock)return;let{offset:_}=m;if(b&&this.currentDirection===null){this.currentDirection=aee(_),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",m.point,_),this.updateAxis("y",m.point,_),this.visualElement.render(),v&&v(p,m)},s=(p,m)=>this.stop(p,m),d=()=>xi(p=>this.getAnimationState(p)==="paused"&&this.getAxisMotionValue(p).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new em(a,{onSessionStart:n,onStart:o,onMove:r,onSessionEnd:s,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Df(this.visualElement)})}stop(a,t){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=t;this.startAnimation(n);let{onDragEnd:o}=this.getProps();o&&Ke.postRender(()=>o(a,t))}cancel(){this.isDragging=!1;let{projection:a,animationState:t}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(a,t,i){let{drag:n}=this.getProps();if(!i||!Wf(a,n,this.currentDirection))return;let o=this.getAxisMotionValue(a),r=this.originPoint[a]+i[a];this.constraints&&this.constraints[a]&&(r=Zq(r,this.constraints[a],this.elastic[a])),o.set(r)}resolveConstraints(){let{dragConstraints:a,dragElastic:t}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;a&&jr(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&i?this.constraints=qq(i.layoutBox,a):this.constraints=!1,this.elastic=Kq(t),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&xi(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Oq(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){let{dragConstraints:a,onMeasureDragConstraints:t}=this.getProps();if(!a||!jr(a))return!1;let i=a.current;In(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let o=Gq(i,n.root,this.visualElement.getTransformPagePoint()),r=Vq(n.layout.layoutBox,o);if(t){let s=t(hq(r));this.hasMutatedConstraints=!!s,s&&(r=xf(s))}return r}startAnimation(a){let{drag:t,dragMomentum:i,dragElastic:n,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:s}=this.getProps(),d=this.constraints||{},u=xi(p=>{if(!Wf(p,t,this.currentDirection))return;let m=d&&d[p]||{};r&&(m={min:0,max:0});let g=n?200:1e6,b=n?40:1e7,f={type:"inertia",velocity:i?a[p]:0,bounceStiffness:g,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(p,f)});return Promise.all(u).then(s)}startAxisValueAnimation(a,t){let i=this.getAxisMotionValue(a);return hk(this.visualElement,a),i.start($p(a,i,0,t,this.visualElement,!1))}stopAnimation(){xi(a=>this.getAxisMotionValue(a).stop())}pauseAnimation(){xi(a=>this.getAxisMotionValue(a).animation?.pause())}getAnimationState(a){return this.getAxisMotionValue(a).animation?.state}getAxisMotionValue(a){let t=`_drag${a.toUpperCase()}`,i=this.visualElement.getProps(),n=i[t];return n||this.visualElement.getValue(a,(i.initial?i.initial[a]:void 0)||0)}snapToCursor(a){xi(t=>{let{drag:i}=this.getProps();if(!Wf(t,i,this.currentDirection))return;let{projection:n}=this.visualElement,o=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:s}=n.layout.layoutBox[t];o.set(a[t]-ea(r,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:a,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!jr(t)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};xi(r=>{let s=this.getAxisMotionValue(r);if(s&&this.constraints!==!1){let d=s.get();n[r]=Uq({min:d,max:d},this.constraints[r])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),xi(r=>{if(!Wf(r,a,null))return;let s=this.getAxisMotionValue(r),{min:d,max:u}=this.constraints[r];s.set(ea(d,u,n[r]))})}addListeners(){if(!this.visualElement.current)return;eee.set(this.visualElement,this);let a=this.visualElement.current,t=Zs(a,"pointerdown",d=>{let{drag:u,dragListener:p=!0}=this.getProps();u&&p&&this.start(d)}),i=()=>{let{dragConstraints:d}=this.getProps();jr(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,o=n.addEventListener("measure",i);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),Ke.read(i);let r=Cr(window,"resize",()=>this.scalePositionWithinConstraints()),s=n.addEventListener("didUpdate",({delta:d,hasLayoutChanged:u})=>{this.isDragging&&u&&(xi(p=>{let m=this.getAxisMotionValue(p);m&&(this.originPoint[p]+=d[p].translate,m.set(m.get()+d[p].translate))}),this.visualElement.render())});return()=>{r(),t(),o(),s&&s()}}getProps(){let a=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:o=!1,dragElastic:r=Gf,dragMomentum:s=!0}=a;return{...a,drag:t,dragDirectionLock:i,dragPropagation:n,dragConstraints:o,dragElastic:r,dragMomentum:s}}};function Wf(e,a,t){return(a===!0||a===e)&&(t===null||t===e)}function aee(e,a=10){let t=null;return Math.abs(e.y)>a?t="y":Math.abs(e.x)>a&&(t="x"),t}var Lf=class extends St{constructor(a){super(a),this.removeGroupControls=Ka,this.removeListeners=Ka,this.controls=new Ef(a)}mount(){let{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ka}unmount(){this.removeGroupControls(),this.removeListeners()}};l();var Hq=e=>(a,t)=>{e&&Ke.postRender(()=>e(a,t))},Mf=class extends St{constructor(){super(...arguments),this.removePointerDownListener=Ka}onPointerDown(a){this.session=new em(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Df(this.node)})}createPanHandlers(){let{onPanSessionStart:a,onPanStart:t,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:Hq(a),onStart:Hq(t),onMove:i,onEnd:(o,r)=>{delete this.session,n&&Ke.postRender(()=>n(o,r))}}}mount(){this.removePointerDownListener=Zs(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};l();var $q=S(ne(),1);var vk=S(R(),1);l();var am={hasAnimatedSinceResize:!0,hasEverUpdated:!1};l();function Yq(e,a){return a.max===a.min?0:e/(a.max-a.min)*100}var tm={correct:(e,a)=>{if(!a.target)return e;if(typeof e=="string")if(Ie.test(e))e=parseFloat(e);else return e;let t=Yq(e,a.target.x),i=Yq(e,a.target.y);return`${t}% ${i}%`}};l();var Qq={correct:(e,{treeScale:a,projectionDelta:t})=>{let i=e,n=ai.parse(e);if(n.length>5)return i;let o=ai.createTransformer(e),r=typeof n[0]!="number"?1:0,s=t.x.scale*a.x,d=t.y.scale*a.y;n[0+r]/=s,n[1+r]/=d;let u=ea(s,d,.5);return typeof n[2+r]=="number"&&(n[2+r]/=u),typeof n[3+r]=="number"&&(n[3+r]/=u),o(n)}};var GS=class extends vk.Component{componentDidMount(){let{visualElement:a,layoutGroup:t,switchLayoutGroup:i,layoutId:n}=this.props,{projection:o}=a;KZ(tee),o&&(t.group&&t.group.add(o),i&&i.register&&n&&i.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),am.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){let{layoutDependency:t,visualElement:i,drag:n,isPresent:o}=this.props,{projection:r}=i;return r&&(r.isPresent=o,n||a.layoutDependency!==t||t===void 0||a.isPresent!==o?r.willUpdate():this.safeToRemove(),a.isPresent!==o&&(o?r.promote():r.relegate()||Ke.postRender(()=>{let s=r.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),vd.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:a,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:n}=a;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:a}=this.props;a&&a()}render(){return null}};function Ff(e){let[a,t]=uf(),i=(0,vk.useContext)(jp);return(0,$q.jsx)(GS,{...e,layoutGroup:i,switchLayoutGroup:(0,vk.useContext)(bf),isPresent:a,safeToRemove:t})}var tee={borderRadius:{...tm,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tm,borderTopRightRadius:tm,borderBottomLeftRadius:tm,borderBottomRightRadius:tm,boxShadow:Qq};l();l();l();function Jq(e,a,t){let i=fa(e)?e:Tn(e);return i.start($p("",i,a,t)),i.animation}l();l();var Xq=(e,a)=>e.depth-a.depth;var Nf=class{constructor(){this.children=[],this.isDirty=!1}add(a){rd(this.children,a),this.isDirty=!0}remove(a){sd(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(Xq),this.isDirty=!1,this.children.forEach(a)}};l();function e1(e,a){let t=et.now(),i=({timestamp:n})=>{let o=n-t;o>=a&&(Si(i),e(o-a))};return Ke.setup(i,!0),()=>Si(i)}l();var n1=["TopLeft","TopRight","BottomLeft","BottomRight"],iee=n1.length,a1=e=>typeof e=="string"?parseFloat(e):e,t1=e=>typeof e=="number"||Ie.test(e);function o1(e,a,t,i,n,o){n?(e.opacity=ea(0,t.opacity??1,nee(i)),e.opacityExit=ea(a.opacity??1,0,oee(i))):o&&(e.opacity=ea(a.opacity??1,t.opacity??1,i));for(let r=0;r<iee;r++){let s=`border${n1[r]}Radius`,d=i1(a,s),u=i1(t,s);if(d===void 0&&u===void 0)continue;d||(d=0),u||(u=0),d===0||u===0||t1(d)===t1(u)?(e[s]=Math.max(ea(a1(d),a1(u),i),0),(ei.test(u)||ei.test(d))&&(e[s]+="%")):e[s]=u}(a.rotate||t.rotate)&&(e.rotate=ea(a.rotate||0,t.rotate||0,i))}function i1(e,a){return e[a]!==void 0?e[a]:e.borderRadius}var nee=r1(0,.5,Vg),oee=r1(.5,.95,Ka);function r1(e,a,t){return i=>i<e?0:i>a?1:t(Lo(e,a,i))}l();function s1(e,a){e.min=a.min,e.max=a.max}function $i(e,a){s1(e.x,a.x),s1(e.y,a.y)}function WS(e,a){e.translate=a.translate,e.scale=a.scale,e.originPoint=a.originPoint,e.origin=a.origin}l();function l1(e,a,t,i,n){return e-=a,e=bk(e,1/t,i),n!==void 0&&(e=bk(e,1/n,i)),e}function ree(e,a=0,t=1,i=.5,n,o=e,r=e){if(ei.test(a)&&(a=parseFloat(a),a=ea(r.min,r.max,a/100)-r.min),typeof a!="number")return;let s=ea(o.min,o.max,i);e===o&&(s-=a),e.min=l1(e.min,a,t,s,n),e.max=l1(e.max,a,t,s,n)}function d1(e,a,[t,i,n],o,r){ree(e,a[t],a[i],a[n],a.scale,o,r)}var see=["x","scaleX","originX"],lee=["y","scaleY","originY"];function ES(e,a,t,i){d1(e.x,a,see,t?t.x:void 0,i?i.x:void 0),d1(e.y,a,lee,t?t.y:void 0,i?i.y:void 0)}l();function u1(e){return e.translate===0&&e.scale===1}function LS(e){return u1(e.x)&&u1(e.y)}function p1(e,a){return e.min===a.min&&e.max===a.max}function c1(e,a){return p1(e.x,a.x)&&p1(e.y,a.y)}function m1(e,a){return Math.round(e.min)===Math.round(a.min)&&Math.round(e.max)===Math.round(a.max)}function MS(e,a){return m1(e.x,a.x)&&m1(e.y,a.y)}function FS(e){return yt(e.x)/yt(e.y)}function NS(e,a){return e.translate===a.translate&&e.scale===a.scale&&e.originPoint===a.originPoint}l();var Bf=class{constructor(){this.members=[]}add(a){rd(this.members,a),a.scheduleRender()}remove(a){if(sd(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(a){let t=this.members.findIndex(n=>a===n);if(t===0)return!1;let i;for(let n=t;n>=0;n--){let o=this.members[n];if(o.isPresent!==!1){i=o;break}}return i?(this.promote(i),!0):!1}promote(a,t){let i=this.lead;if(a!==i&&(this.prevLead=i,this.lead=a,a.show(),i)){i.instance&&i.scheduleRender(),a.scheduleRender(),a.resumeFrom=i,t&&(a.resumeFrom.preserveOpacity=!0),i.snapshot&&(a.snapshot=i.snapshot,a.snapshot.latestValues=i.animationValues||i.latestValues),a.root&&a.root.isUpdating&&(a.isLayoutDirty=!0);let{crossfade:n}=a.options;n===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(a=>{let{options:t,resumingFrom:i}=a;t.onExitComplete&&t.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(a=>{a.instance&&a.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};l();function g1(e,a,t){let i="",n=e.x.translate/a.x,o=e.y.translate/a.y,r=t?.z||0;if((n||o||r)&&(i=`translate3d(${n}px, ${o}px, ${r}px) `),(a.x!==1||a.y!==1)&&(i+=`scale(${1/a.x}, ${1/a.y}) `),t){let{transformPerspective:u,rotate:p,rotateX:m,rotateY:g,skewX:b,skewY:f}=t;u&&(i=`perspective(${u}px) ${i}`),p&&(i+=`rotate(${p}deg) `),m&&(i+=`rotateX(${m}deg) `),g&&(i+=`rotateY(${g}deg) `),b&&(i+=`skewX(${b}deg) `),f&&(i+=`skewY(${f}deg) `)}let s=e.x.scale*a.x,d=e.y.scale*a.y;return(s!==1||d!==1)&&(i+=`scale(${s}, ${d})`),i||"none"}var Pd={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},BS=["","X","Y","Z"],dee={visibility:"hidden"},uee=1e3,pee=0;function RS(e,a,t,i){let{latestValues:n}=a;n[e]&&(t[e]=n[e],a.setStaticValue(e,0),i&&(i[e]=0))}function A1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:a}=e.options;if(!a)return;let t=Pf(a);if(window.MotionHasOptimisedAnimation(t,"transform")){let{layout:n,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(t,"transform",Ke,!(n||o))}let{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&A1(i)}function Rf({attachResizeListener:e,defaultParent:a,measureScroll:t,checkIsScrollRoot:i,resetTransform:n}){return class{constructor(r={},s=a?.()){this.id=pee++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,wi.value&&(Pd.nodes=Pd.calculatedTargetDeltas=Pd.calculatedProjections=0),this.nodes.forEach(gee),this.nodes.forEach(yee),this.nodes.forEach(fee),this.nodes.forEach(kee),wi.addProjectionMetrics&&wi.addProjectionMetrics(Pd)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new Nf)}addEventListener(r,s){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Ar),this.eventHandlers.get(r).add(s)}notifyListeners(r,...s){let d=this.eventHandlers.get(r);d&&d.notify(...s)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=dk(r)&&!bS(r),this.instance=r;let{layoutId:s,layout:d,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(d||s)&&(this.isLayoutDirty=!0),e){let p,m=()=>this.root.updateBlockedByResize=!1;e(r,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=e1(m,250),am.hasAnimatedSinceResize&&(am.hasAnimatedSinceResize=!1,this.nodes.forEach(h1))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&u&&(s||d)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:m,hasRelativeLayoutChanged:g,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let f=this.options.transition||u.getDefaultTransition()||Pee,{onLayoutAnimationStart:v,onLayoutAnimationComplete:_}=u.getProps(),h=!this.targetLayout||!MS(this.targetLayout,b),k=!m&&g;if(this.options.layoutRoot||this.resumeFrom||k||m&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let y={...hd(f,"layout"),onPlay:v,onComplete:_};(u.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(p,k)}else m||h1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Si(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(_ee),this.animationId++)}getTransformTemplate(){let{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&A1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){let m=this.path[p];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}let{layoutId:s,layout:d}=this.options;if(s===void 0&&!d)return;let u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(k1);return}this.isUpdating||this.nodes.forEach(bee),this.isUpdating=!1,this.nodes.forEach(vee),this.nodes.forEach(mee),this.nodes.forEach(cee),this.clearAllSnapshots();let s=et.now();Xa.delta=wt(0,1e3/60,s-Xa.timestamp),Xa.timestamp=s,Xa.isProcessing=!0,Yg.update.process(Xa),Yg.preRender.process(Xa),Yg.render.process(Xa),Xa.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,vd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(hee),this.sharedNodes.forEach(Aee)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ke.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ke.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!yt(this.snapshot.measuredBox.x)&&!yt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d<this.path.length;d++)this.path[d].updateScroll();let r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=xa(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(s=!1),s&&this.instance){let d=i(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:d,offset:t(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!n)return;let r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!LS(this.projectionDelta),d=this.getTransformTemplate(),u=d?d(this.latestValues,""):void 0,p=u!==this.prevTransformTemplateValue;r&&this.instance&&(s||Gr(this.latestValues)||p)&&(n(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){let s=this.measurePageBox(),d=this.removeElementScroll(s);return r&&(d=this.removeTransform(d)),zee(d),{animationId:this.root.animationId,measuredBox:s,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:r}=this.options;if(!r)return xa();let s=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(wee))){let{scroll:u}=this.root;u&&(qs(s.x,u.offset.x),qs(s.y,u.offset.y))}return s}removeElementScroll(r){let s=xa();if($i(s,r),this.scroll?.wasRoot)return s;for(let d=0;d<this.path.length;d++){let u=this.path[d],{scroll:p,options:m}=u;u!==this.root&&p&&m.layoutScroll&&(p.wasRoot&&$i(s,r),qs(s.x,p.offset.x),qs(s.y,p.offset.y))}return s}applyTransform(r,s=!1){let d=xa();$i(d,r);for(let u=0;u<this.path.length;u++){let p=this.path[u];!s&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Td(d,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),Gr(p.latestValues)&&Td(d,p.latestValues)}return Gr(this.latestValues)&&Td(d,this.latestValues),d}removeTransform(r){let s=xa();$i(s,r);for(let d=0;d<this.path.length;d++){let u=this.path[d];if(!u.instance||!Gr(u.latestValues))continue;Cf(u.latestValues)&&u.updateSnapshot();let p=xa(),m=u.measurePageBox();$i(p,m),ES(s,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,p)}return Gr(this.latestValues)&&ES(s,this.latestValues),s}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Xa.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);let d=!!this.resumingFrom||this!==s;if(!(r||d&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:p,layoutId:m}=this.options;if(!(!this.layout||!(p||m))){if(this.resolvedRelativeTargetAt=Xa.timestamp,!this.targetDelta&&!this.relativeTarget){let g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xa(),this.relativeTargetOrigin=xa(),Xp(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),$i(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=xa(),this.targetWithTransforms=xa()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Tq(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):$i(this.target,this.layout.layoutBox),jS(this.target,this.targetDelta)):$i(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xa(),this.relativeTargetOrigin=xa(),Xp(this.relativeTargetOrigin,this.target,g.target),$i(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}wi.value&&Pd.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Cf(this.parent.latestValues)||wS(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let r=this.getLead(),s=!!this.resumingFrom||this!==r,d=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(d=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===Xa.timestamp&&(d=!1),d)return;let{layout:u,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||p))return;$i(this.layoutCorrected,this.layout.layoutBox);let m=this.treeScale.x,g=this.treeScale.y;Dq(this.layoutCorrected,this.treeScale,this.path,s),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=xa());let{target:b}=r;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(WS(this.prevProjectionDelta.x,this.projectionDelta.x),WS(this.prevProjectionDelta.y,this.projectionDelta.y)),Jp(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!NS(this.projectionDelta.x,this.prevProjectionDelta.x)||!NS(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),wi.value&&Pd.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){let s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Id(),this.projectionDelta=Id(),this.projectionDeltaWithTransform=Id()}setAnimationOrigin(r,s=!1){let d=this.snapshot,u=d?d.latestValues:{},p={...this.latestValues},m=Id();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;let g=xa(),b=d?d.source:void 0,f=this.layout?this.layout.source:void 0,v=b!==f,_=this.getStack(),h=!_||_.members.length<=1,k=!!(v&&!h&&this.options.crossfade===!0&&!this.path.some(Tee));this.animationProgress=0;let y;this.mixTargetDelta=I=>{let A=I/1e3;b1(m.x,r.x,A),b1(m.y,r.y,A),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Xp(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Iee(this.relativeTarget,this.relativeTargetOrigin,g,A),y&&c1(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=xa()),$i(y,this.relativeTarget)),v&&(this.animationValues=p,o1(p,u,this.latestValues,A,k,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Si(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ke.update(()=>{am.hasAnimatedSinceResize=!0,no.layout++,this.motionValue||(this.motionValue=Tn(0)),this.currentAnimation=Jq(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),r.onUpdate&&r.onUpdate(s)},onStop:()=>{no.layout--},onComplete:()=>{no.layout--,r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(uee),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let r=this.getLead(),{targetWithTransforms:s,target:d,layout:u,latestValues:p}=r;if(!(!s||!d||!u)){if(this!==r&&this.layout&&u&&I1(this.options.animationType,this.layout.layoutBox,u.layoutBox)){d=this.target||xa();let m=yt(this.layout.layoutBox.x);d.x.min=r.target.x.min,d.x.max=d.x.min+m;let g=yt(this.layout.layoutBox.y);d.y.min=r.target.y.min,d.y.max=d.y.min+g}$i(s,d),Td(s,p),Jp(this.projectionDeltaWithTransform,this.layoutCorrected,s,p)}}registerSharedNode(r,s){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Bf),this.sharedNodes.get(r).add(s);let u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){let r=this.getStack();return r?r.lead===this:!0}getLead(){let{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:s,preserveFollowOpacity:d}={}){let u=this.getStack();u&&u.promote(this,d),r&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){let r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){let{visualElement:r}=this.options;if(!r)return;let s=!1,{latestValues:d}=r;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(s=!0),!s)return;let u={};d.z&&RS("z",r,u,this.animationValues);for(let p=0;p<BS.length;p++)RS(`rotate${BS[p]}`,r,u,this.animationValues),RS(`skew${BS[p]}`,r,u,this.animationValues);r.render();for(let p in u)r.setStaticValue(p,u[p]),this.animationValues&&(this.animationValues[p]=u[p]);r.scheduleRender()}getProjectionStyles(r){if(!this.instance||this.isSVG)return;if(!this.isVisible)return dee;let s={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Yp(r?.pointerEvents)||"",s.transform=d?d(this.latestValues,""):"none",s;let u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){let b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Yp(r?.pointerEvents)||""),this.hasProjected&&!Gr(this.latestValues)&&(b.transform=d?d({},""):"none",this.hasProjected=!1),b}let p=u.animationValues||u.latestValues;this.applyTransformsToTarget(),s.transform=g1(this.projectionDeltaWithTransform,this.treeScale,p),d&&(s.transform=d(p,s.transform));let{x:m,y:g}=this.projectionDelta;s.transformOrigin=`${m.origin*100}% ${g.origin*100}% 0`,u.animationValues?s.opacity=u===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:s.opacity=u===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(let b in _d){if(p[b]===void 0)continue;let{correct:f,applyTo:v,isCSSVariable:_}=_d[b],h=s.transform==="none"?p[b]:f(p[b],u);if(v){let k=v.length;for(let y=0;y<k;y++)s[v[y]]=h}else _?this.options.visualElement.renderState.vars[b]=h:s[b]=h}return this.options.layoutId&&(s.pointerEvents=u===this?Yp(r?.pointerEvents)||"":"none"),s}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(k1),this.root.sharedNodes.clear()}}}function mee(e){e.updateLayout()}function cee(e){let a=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:i}=e.layout,{animationType:n}=e.options,o=a.source!==e.layout.source;n==="size"?xi(p=>{let m=o?a.measuredBox[p]:a.layoutBox[p],g=yt(m);m.min=t[p].min,m.max=m.min+g}):I1(n,a.layoutBox,t)&&xi(p=>{let m=o?a.measuredBox[p]:a.layoutBox[p],g=yt(t[p]);m.max=m.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+g)});let r=Id();Jp(r,t,a.layoutBox);let s=Id();o?Jp(s,e.applyTransform(i,!0),a.measuredBox):Jp(s,t,a.layoutBox);let d=!LS(r),u=!1;if(!e.resumeFrom){let p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){let{snapshot:m,layout:g}=p;if(m&&g){let b=xa();Xp(b,a.layoutBox,m.layoutBox);let f=xa();Xp(f,t,g.layoutBox),MS(b,f)||(u=!0),p.options.layoutRoot&&(e.relativeTarget=f,e.relativeTargetOrigin=b,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:a,delta:s,layoutDelta:r,hasLayoutChanged:d,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function gee(e){wi.value&&Pd.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function kee(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function hee(e){e.clearSnapshot()}function k1(e){e.clearMeasurements()}function bee(e){e.isLayoutDirty=!1}function vee(e){let{visualElement:a}=e.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),e.resetTransform()}function h1(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function yee(e){e.resolveTargetDelta()}function fee(e){e.calcProjection()}function _ee(e){e.resetSkewAndRotation()}function Aee(e){e.removeLeadSnapshot()}function b1(e,a,t){e.translate=ea(a.translate,0,t),e.scale=ea(a.scale,1,t),e.origin=a.origin,e.originPoint=a.originPoint}function v1(e,a,t,i){e.min=ea(a.min,t.min,i),e.max=ea(a.max,t.max,i)}function Iee(e,a,t,i){v1(e.x,a.x,t.x,i),v1(e.y,a.y,t.y,i)}function Tee(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Pee={duration:.45,ease:[.4,0,.1,1]},y1=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),f1=y1("applewebkit/")&&!y1("chrome/")?Math.round:Ka;function _1(e){e.min=f1(e.min),e.max=f1(e.max)}function zee(e){_1(e.x),_1(e.y)}function I1(e,a,t){return e==="position"||e==="preserve-aspect"&&!Iq(FS(a),FS(t),.2)}function wee(e){return e!==e.root&&e.scroll?.wasRoot}l();var T1=Rf({attachResizeListener:(e,a)=>Cr(e,"resize",a),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var ZS={current:void 0},Zf=Rf({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ZS.current){let e=new T1({});e.mount(window),e.setOptions({layoutScroll:!0}),ZS.current=e}return ZS.current},resetTransform:(e,a)=>{e.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var P1={pan:{Feature:Mf},drag:{Feature:Lf,ProjectionNode:Zf,MeasureLayout:Ff}};l();l();function z1(e,a,t){let{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t==="Start");let n="onHover"+t,o=i[n];o&&Ke.postRender(()=>o(a,Dr(a)))}var qf=class extends St{mount(){let{current:a}=this.node;a&&(this.unmount=cS(a,(t,i)=>(z1(this.node,i,"Start"),n=>z1(this.node,n,"End"))))}unmount(){}};l();var Vf=class extends St{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch{a=!0}!a||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=io(Cr(this.node.current,"focus",()=>this.onFocus()),Cr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};l();function w1(e,a,t){let{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",t==="Start");let n="onTap"+(t==="End"?"":t),o=i[n];o&&Ke.postRender(()=>o(a,Dr(a)))}var Uf=class extends St{mount(){let{current:a}=this.node;a&&(this.unmount=hS(a,(t,i)=>(w1(this.node,i,"Start"),(n,{success:o})=>w1(this.node,n,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};l();l();var VS=new WeakMap,qS=new WeakMap,See=e=>{let a=VS.get(e.target);a&&a(e)},jee=e=>{e.forEach(See)};function xee({root:e,...a}){let t=e||document;qS.has(t)||qS.set(t,{});let i=qS.get(t),n=JSON.stringify(a);return i[n]||(i[n]=new IntersectionObserver(jee,{root:e,...a})),i[n]}function S1(e,a,t){let i=xee(a);return VS.set(e,t),i.observe(e),()=>{VS.delete(e),i.unobserve(e)}}var Cee={some:0,all:1},Of=class extends St{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:a={}}=this.node.getProps(),{root:t,margin:i,amount:n="some",once:o}=a,r={root:t?t.current:void 0,rootMargin:i,threshold:typeof n=="number"?n:Cee[n]},s=d=>{let{isIntersecting:u}=d;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);let{onViewportEnter:p,onViewportLeave:m}=this.node.getProps(),g=u?p:m;g&&g(d)};return S1(this.node.current,r,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:a,prevProps:t}=this.node;["amount","margin","root"].some(Dee(a,t))&&this.startObserver()}unmount(){}};function Dee({viewport:e={}},{viewport:a={}}={}){return t=>e[t]!==a[t]}var j1={inView:{Feature:Of},tap:{Feature:Uf},focus:{Feature:Vf},hover:{Feature:qf}};l();var x1={layout:{ProjectionNode:Zf,MeasureLayout:Ff}};l();var L1=S(R(),1);l();l();l();l();l();var yk={current:null},Kf={current:!1};function C1(){if(Kf.current=!0,!!Cp)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),a=()=>yk.current=e.matches;e.addListener(a),a()}else yk.current=!1}l();var D1=new WeakMap;l();function G1(e,a,t){for(let i in a){let n=a[i],o=t[i];if(fa(n))e.addValue(i,n);else if(fa(o))e.addValue(i,Tn(n,{owner:e}));else if(o!==n)if(e.hasValue(i)){let r=e.getValue(i);r.liveStyle===!0?r.jump(n):r.hasAnimated||r.set(n)}else{let r=e.getStaticValue(i);e.addValue(i,Tn(r!==void 0?r:n,{owner:e}))}}for(let i in t)a[i]===void 0&&e.removeValue(i);return a}var W1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Hf=class{scrapeMotionValuesFromProps(a,t,i){return{}}constructor({parent:a,props:t,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:o,visualState:r},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Pr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let g=et.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Ke.render(this.render,!1,!0))};let{latestValues:d,renderState:u}=r;this.latestValues=d,this.baseTarget={...d},this.initialValues=t.initial?{...d}:{},this.renderState=u,this.parent=a,this.props=t,this.presenceContext=i,this.depth=a?a.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.blockInitialAnimation=!!o,this.isControllingVariants=fd(t),this.isVariantNode=gf(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);let{willChange:p,...m}=this.scrapeMotionValuesFromProps(t,{},this);for(let g in m){let b=m[g];d[g]!==void 0&&fa(b)&&b.set(d[g],!1)}}mount(a){this.current=a,D1.set(a,this),this.projection&&!this.projection.instance&&this.projection.mount(a),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,i)=>this.bindToMotionValue(i,t)),Kf.current||C1(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:yk.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Si(this.notifyUpdate),Si(this.render),this.valueSubscriptions.forEach(a=>a()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let a in this.events)this.events[a].clear();for(let a in this.features){let t=this.features[a];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(a,t){this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)();let i=Qi.has(a);i&&this.onBindTransform&&this.onBindTransform();let n=t.on("change",s=>{this.latestValues[a]=s,this.props.onUpdate&&Ke.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender),r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,a,t)),this.valueSubscriptions.set(a,()=>{n(),o(),r&&r(),t.owner&&t.stop()})}sortNodePosition(a){return!this.current||!this.sortInstanceNodePosition||this.type!==a.type?0:this.sortInstanceNodePosition(this.current,a.current)}updateFeatures(){let a="animation";for(a in wr){let t=wr[a];if(!t)continue;let{isEnabled:i,Feature:n}=t;if(!this.features[a]&&n&&i(this.props)&&(this.features[a]=new n(this)),this.features[a]){let o=this.features[a];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):xa()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,t){this.latestValues[a]=t}update(a,t){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let i=0;i<W1.length;i++){let n=W1[i];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let o="on"+n,r=a[o];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=G1(this,this.scrapeMotionValuesFromProps(a,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(a){return this.props.variants?this.props.variants[a]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(a){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(a),()=>t.variantChildren.delete(a)}addValue(a,t){let i=this.values.get(a);t!==i&&(i&&this.removeValue(a),this.bindToMotionValue(a,t),this.values.set(a,t),this.latestValues[a]=t.get())}removeValue(a){this.values.delete(a);let t=this.valueSubscriptions.get(a);t&&(t(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,t){if(this.props.values&&this.props.values[a])return this.props.values[a];let i=this.values.get(a);return i===void 0&&t!==void 0&&(i=Tn(t===null?void 0:t,{owner:this}),this.addValue(a,i)),i}readValue(a,t){let i=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options);return i!=null&&(typeof i=="string"&&(Mg(i)||Ng(i))?i=parseFloat(i):!vS(i)&&ai.test(t)&&(i=rk(a,t)),this.setBaseTarget(a,fa(i)?i.get():i)),fa(i)?i.get():i}setBaseTarget(a,t){this.baseTarget[a]=t}getBaseTarget(a){let{initial:t}=this.props,i;if(typeof t=="string"||typeof t=="object"){let o=Hp(this.props,t,this.presenceContext?.custom);o&&(i=o[a])}if(t&&i!==void 0)return i;let n=this.getBaseTargetFromProps(this.props,a);return n!==void 0&&!fa(n)?n:this.initialValues[a]!==void 0&&i===void 0?void 0:this.baseTarget[a]}on(a,t){return this.events[a]||(this.events[a]=new Ar),this.events[a].add(t)}notify(a,...t){this.events[a]&&this.events[a].notify(...t)}};var im=class extends Hf{constructor(){super(...arguments),this.KeyframeResolver=sk}sortInstanceNodePosition(a,t){return a.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(a,t){return a.style?a.style[t]:void 0}removeValueFromRenderState(a,{vars:t,style:i}){delete t[a],delete i[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:a}=this.props;fa(a)&&(this.childSubscription=a.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}};l();function Yf(e,{style:a,vars:t},i,n){Object.assign(e.style,a,n&&n.getProjectionStyles(i));for(let o in t)e.style.setProperty(o,t[o])}function Gee(e){return window.getComputedStyle(e)}var Qf=class extends im{constructor(){super(...arguments),this.type="html",this.renderInstance=Yf}readValueFromInstance(a,t){if(Qi.has(t))return this.projection?.isProjecting?ek(t):Jw(a,t);{let i=Gee(a),n=(dd(t)?i.getPropertyValue(t):i[t])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(a,{transformPagePoint:t}){return xS(a,t)}build(a,t,i){Vp(a,t,i.transformTemplate)}scrapeMotionValuesFromProps(a,t,i){return Qp(a,t,i)}};l();l();var $f=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);l();function E1(e,a,t,i){Yf(e,a,void 0,i);for(let n in a.attrs)e.setAttribute($f.has(n)?n:Zp(n),a.attrs[n])}var Jf=class extends im{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=xa}getBaseTargetFromProps(a,t){return a[t]}readValueFromInstance(a,t){if(Qi.has(t)){let i=ok(t);return i&&i.default||0}return t=$f.has(t)?t:Zp(t),a.getAttribute(t)}scrapeMotionValuesFromProps(a,t,i){return Tf(a,t,i)}build(a,t,i){ff(a,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(a,t,i,n){E1(a,t,i,n)}mount(a){this.isSVGTag=Af(a.tagName),super.mount(a)}};var M1=(e,a)=>Op(e)?new Jf(a):new Qf(a,{allowProjection:e!==L1.Fragment});var F1=oq({...gq,...j1,...P1,...x1},M1);var nm=EZ(F1);var En=S(R());l();var jt=S(R(),1),oV=S(Z1(),1);l();l();var Rt=S(R(),1);var Vs={};Wi(Vs,{ERROR_REVALIDATE_EVENT:()=>qee,FOCUS_EVENT:()=>q1,MUTATE_EVENT:()=>U1,RECONNECT_EVENT:()=>V1});l();var q1=0,V1=1,U1=2,qee=3;l();var O1=Object.prototype.hasOwnProperty;function Xf(e,a){var t,i;if(e===a)return!0;if(e&&a&&(t=e.constructor)===a.constructor){if(t===Date)return e.getTime()===a.getTime();if(t===RegExp)return e.toString()===a.toString();if(t===Array){if((i=e.length)===a.length)for(;i--&&Xf(e[i],a[i]););return i===-1}if(!t||typeof e=="object"){i=0;for(t in e)if(O1.call(e,t)&&++i&&!O1.call(a,t)||!(t in a)||!Xf(e[t],a[t]))return!1;return Object.keys(a).length===i}}return e!==e&&a!==a}var so=new WeakMap,Wr=()=>{},Ha=Wr(),rm=Object,ta=e=>e===Ha,Ji=e=>typeof e=="function",hi=(e,a)=>({...e,...a}),o_=e=>Ji(e.then),OS={},e_={},XS="undefined",sm=typeof window!=XS,t_=typeof document!=XS,H1=sm&&"Deno"in window,Y1=()=>sm&&typeof window.requestAnimationFrame!=XS,r_=(e,a)=>{let t=so.get(e);return[()=>!ta(a)&&e.get(a)||OS,i=>{if(!ta(a)){let n=e.get(a);a in e_||(e_[a]=n),t[5](a,hi(n,i),n||OS)}},t[6],()=>!ta(a)&&a in e_?e_[a]:!ta(a)&&e.get(a)||OS]},YS=!0,Vee=()=>YS,[QS,$S]=sm&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Wr,Wr],Uee=()=>{let e=t_&&document.visibilityState;return ta(e)||e!=="hidden"},Oee=e=>(t_&&document.addEventListener("visibilitychange",e),QS("focus",e),()=>{t_&&document.removeEventListener("visibilitychange",e),$S("focus",e)}),Kee=e=>{let a=()=>{YS=!0,e()},t=()=>{YS=!1};return QS("online",a),QS("offline",t),()=>{$S("online",a),$S("offline",t)}},Q1={isOnline:Vee,isVisible:Uee},$1={initFocus:Oee,initReconnect:Kee},lm=!Rt.default.useId,zd=!sm||H1,ej=e=>Y1()?window.requestAnimationFrame(e):setTimeout(e,1),Er=zd?Rt.useEffect:Rt.useLayoutEffect,KS=typeof navigator<"u"&&navigator.connection,JS=!zd&&KS&&(["slow-2g","2g"].includes(KS.effectiveType)||KS.saveData),a_=new WeakMap,HS=(e,a)=>rm.prototype.toString.call(e)===`[object ${a}]`,Hee=0,i_=e=>{let a=typeof e,t=HS(e,"Date"),i=HS(e,"RegExp"),n=HS(e,"Object"),o,r;if(rm(e)===e&&!t&&!i){if(o=a_.get(e),o)return o;if(o=++Hee+"~",a_.set(e,o),Array.isArray(e)){for(o="@",r=0;r<e.length;r++)o+=i_(e[r])+",";a_.set(e,o)}if(n){o="#";let s=rm.keys(e).sort();for(;!ta(r=s.pop());)ta(e[r])||(o+=r+":"+i_(e[r])+",");a_.set(e,o)}}else o=t?e.toJSON():a=="symbol"?e.toString():a=="string"?JSON.stringify(e):""+e;return o},wd=e=>{if(Ji(e))try{e=e()}catch{e=""}let a=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?i_(e):"",[e,a]},Yee=0,Us=()=>++Yee;async function s_(...e){let[a,t,i,n]=e,o=hi({populateCache:!0,throwOnError:!0},typeof n=="boolean"?{revalidate:n}:n||{}),r=o.populateCache,s=o.rollbackOnError,d=o.optimisticData,u=g=>typeof s=="function"?s(g):s!==!1,p=o.throwOnError;if(Ji(t)){let g=t,b=[],f=a.keys();for(let v of f)!/^\$(inf|sub)\$/.test(v)&&g(a.get(v)._k)&&b.push(v);return Promise.all(b.map(m))}return m(t);async function m(g){let[b]=wd(g);if(!b)return;let[f,v]=r_(a,b),[_,h,k,y]=so.get(a),I=()=>{let N=_[b];return(Ji(o.revalidate)?o.revalidate(f().data,g):o.revalidate!==!1)&&(delete k[b],delete y[b],N&&N[0])?N[0](2).then(()=>f().data):f().data};if(e.length<3)return I();let A=i,T,P=Us();h[b]=[P,0];let z=!ta(d),D=f(),C=D.data,W=D._c,F=ta(W)?C:W;if(z&&(d=Ji(d)?d(F,C):d,v({data:d,_c:F})),Ji(A))try{A=A(F)}catch(N){T=N}if(A&&o_(A))if(A=await A.catch(N=>{T=N}),P!==h[b][0]){if(T)throw T;return A}else T&&z&&u(T)&&(r=!0,v({data:F,_c:Ha}));if(r&&!T)if(Ji(r)){let N=r(A,F);v({data:N,error:Ha,_c:Ha})}else v({data:A,error:Ha,_c:Ha});if(h[b][1]=Us(),Promise.resolve(I()).then(()=>{v({_c:Ha})}),T){if(p)throw T;return}return A}}var K1=(e,a)=>{for(let t in e)e[t][0]&&e[t][0](a)},aj=(e,a)=>{if(!so.has(e)){let t=hi($1,a),i=Object.create(null),n=s_.bind(Ha,e),o=Wr,r=Object.create(null),s=(p,m)=>{let g=r[p]||[];return r[p]=g,g.push(m),()=>g.splice(g.indexOf(m),1)},d=(p,m,g)=>{e.set(p,m);let b=r[p];if(b)for(let f of b)f(m,g)},u=()=>{if(!so.has(e)&&(so.set(e,[i,Object.create(null),Object.create(null),Object.create(null),n,d,s]),!zd)){let p=t.initFocus(setTimeout.bind(Ha,K1.bind(Ha,i,0))),m=t.initReconnect(setTimeout.bind(Ha,K1.bind(Ha,i,1)));o=()=>{p&&p(),m&&m(),so.delete(e)}}};return u(),[e,n,u,o]}return[e,so.get(e)[4]]},Qee=(e,a,t,i,n)=>{let o=t.errorRetryCount,r=n.retryCount,s=~~((Math.random()+.5)*(1<<(r<8?r:8)))*t.errorRetryInterval;!ta(o)&&r>o||setTimeout(i,s,n)},J1=Xf,[l_,tj]=aj(new Map),d_=hi({onLoadingSlow:Wr,onSuccess:Wr,onError:Wr,onErrorRetry:Qee,onDiscarded:Wr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:JS?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:JS?5e3:3e3,compare:J1,isPaused:()=>!1,cache:l_,mutate:tj,fallback:{}},Q1),ij=(e,a)=>{let t=hi(e,a);if(a){let{use:i,fallback:n}=e,{use:o,fallback:r}=a;i&&o&&(t.use=i.concat(o)),n&&r&&(t.fallback=hi(n,r))}return t},n_=(0,Rt.createContext)({}),nj=e=>{let{value:a}=e,t=(0,Rt.useContext)(n_),i=Ji(a),n=(0,Rt.useMemo)(()=>i?a(t):a,[i,t,a]),o=(0,Rt.useMemo)(()=>i?n:ij(t,n),[i,t,n]),r=n&&n.provider,s=(0,Rt.useRef)(Ha);r&&!s.current&&(s.current=aj(r(o.cache||l_),n));let d=s.current;return d&&(o.cache=d[0],o.mutate=d[1]),Er(()=>{if(d)return d[2]&&d[2](),d[3]},[]),(0,Rt.createElement)(n_.Provider,hi(e,{value:o}))};l();var X1="$inf$";var u_=S(R(),1);var eV=sm&&window.__SWR_DEVTOOLS_USE__,$ee=eV?window.__SWR_DEVTOOLS_USE__:[],Jee=()=>{eV&&(window.__SWR_DEVTOOLS_REACT__=u_.default)},aV=e=>Ji(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],p_=()=>hi(d_,(0,u_.useContext)(n_));var Xee=e=>(a,t,i)=>e(a,t&&((...o)=>{let[r]=wd(a),[,,,s]=so.get(l_);if(r.startsWith(X1))return t(...o);let d=s[r];return ta(d)?t(...o):(delete s[r],d)}),i),eae=$ee.concat(Xee),tV=e=>function(...t){let i=p_(),[n,o,r]=aV(t),s=ij(i,r),d=e,{use:u}=s,p=(u||[]).concat(eae);for(let m=p.length;m--;)d=p[m](d);return d(n,o||s.fetcher||null,s)},iV=(e,a,t)=>{let i=a[e]||(a[e]=[]);return i.push(t),()=>{let n=i.indexOf(t);n>=0&&(i[n]=i[i.length-1],i.pop())}},nV=(e,a)=>(...t)=>{let[i,n,o]=aV(t),r=(o.use||[]).concat(a);return e(i,n,{...o,use:r})};Jee();var aae=()=>{},Dna=aae();var oj=jt.default.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(a=>{e.status="fulfilled",e.value=a},a=>{e.status="rejected",e.reason=a}),e}}),rj={dedupe:!0},tae=(e,a,t)=>{let{cache:i,compare:n,suspense:o,fallbackData:r,revalidateOnMount:s,revalidateIfStale:d,refreshInterval:u,refreshWhenHidden:p,refreshWhenOffline:m,keepPreviousData:g}=t,[b,f,v,_]=so.get(i),[h,k]=wd(e),y=(0,jt.useRef)(!1),I=(0,jt.useRef)(!1),A=(0,jt.useRef)(h),T=(0,jt.useRef)(a),P=(0,jt.useRef)(t),z=()=>P.current,D=()=>z().isVisible()&&z().isOnline(),[C,W,F,N]=r_(i,h),q=(0,jt.useRef)({}).current,Z=ta(r)?ta(t.fallback)?Ha:t.fallback[h]:r,x=(_e,Te)=>{for(let Ge in q){let He=Ge;if(He==="data"){if(!n(_e[He],Te[He])&&(!ta(_e[He])||!n(X,Te[He])))return!1}else if(Te[He]!==_e[He])return!1}return!0},E=(0,jt.useMemo)(()=>{let _e=!h||!a?!1:ta(s)?z().isPaused()||o?!1:d!==!1:s,Te=j=>{let M=hi(j);return delete M._k,_e?{isValidating:!0,isLoading:!0,...M}:M},Ge=C(),He=N(),Pe=Te(Ge),ze=Ge===He?Pe:Te(He),Je=Pe;return[()=>{let j=Te(C());return x(j,Je)?(Je.data=j.data,Je.isLoading=j.isLoading,Je.isValidating=j.isValidating,Je.error=j.error,Je):(Je=j,j)},()=>ze]},[i,h]),V=(0,oV.useSyncExternalStore)((0,jt.useCallback)(_e=>F(h,(Te,Ge)=>{x(Ge,Te)||_e()}),[i,h]),E[0],E[1]),pe=!y.current,we=b[h]&&b[h].length>0,be=V.data,ge=ta(be)?Z&&o_(Z)?oj(Z):Z:be,G=V.error,ee=(0,jt.useRef)(ge),X=g?ta(be)?ta(ee.current)?ge:ee.current:be:ge,Oe=we&&!ta(G)?!1:pe&&!ta(s)?s:z().isPaused()?!1:o?ta(ge)?!1:d:ta(ge)||d,K=!!(h&&a&&pe&&Oe),U=ta(V.isValidating)?K:V.isValidating,Q=ta(V.isLoading)?K:V.isLoading,oe=(0,jt.useCallback)(async _e=>{let Te=T.current;if(!h||!Te||I.current||z().isPaused())return!1;let Ge,He,Pe=!0,ze=_e||{},Je=!v[h]||!ze.dedupe,j=()=>lm?!I.current&&h===A.current&&y.current:h===A.current,M={isValidating:!1,isLoading:!1},O=()=>{W(M)},te=()=>{let $=v[h];$&&$[1]===He&&delete v[h]},ie={isValidating:!0};ta(C().data)&&(ie.isLoading=!0);try{if(Je&&(W(ie),t.loadingTimeout&&ta(C().data)&&setTimeout(()=>{Pe&&j()&&z().onLoadingSlow(h,t)},t.loadingTimeout),v[h]=[Te(k),Us()]),[Ge,He]=v[h],Ge=await Ge,Je&&setTimeout(te,t.dedupingInterval),!v[h]||v[h][1]!==He)return Je&&j()&&z().onDiscarded(h),!1;M.error=Ha;let $=f[h];if(!ta($)&&(He<=$[0]||He<=$[1]||$[1]===0))return O(),Je&&j()&&z().onDiscarded(h),!1;let ue=C().data;M.data=n(ue,Ge)?ue:Ge,Je&&j()&&z().onSuccess(Ge,h,t)}catch($){te();let ue=z(),{shouldRetryOnError:Ce}=ue;ue.isPaused()||(M.error=$,Je&&j()&&(ue.onError($,h,ue),(Ce===!0||Ji(Ce)&&Ce($))&&(!z().revalidateOnFocus||!z().revalidateOnReconnect||D())&&ue.onErrorRetry($,h,ue,Me=>{let Ue=b[h];Ue&&Ue[0]&&Ue[0](Vs.ERROR_REVALIDATE_EVENT,Me)},{retryCount:(ze.retryCount||0)+1,dedupe:!0})))}return Pe=!1,O(),!0},[h,i]),de=(0,jt.useCallback)((..._e)=>s_(i,A.current,..._e),[]);if(Er(()=>{T.current=a,P.current=t,ta(be)||(ee.current=be)}),Er(()=>{if(!h)return;let _e=oe.bind(Ha,rj),Te=0;z().revalidateOnFocus&&(Te=Date.now()+z().focusThrottleInterval);let He=iV(h,b,(Pe,ze={})=>{if(Pe==Vs.FOCUS_EVENT){let Je=Date.now();z().revalidateOnFocus&&Je>Te&&D()&&(Te=Je+z().focusThrottleInterval,_e())}else if(Pe==Vs.RECONNECT_EVENT)z().revalidateOnReconnect&&D()&&_e();else{if(Pe==Vs.MUTATE_EVENT)return oe();if(Pe==Vs.ERROR_REVALIDATE_EVENT)return oe(ze)}});return I.current=!1,A.current=h,y.current=!0,W({_k:k}),Oe&&(ta(ge)||zd?_e():ej(_e)),()=>{I.current=!0,He()}},[h]),Er(()=>{let _e;function Te(){let He=Ji(u)?u(C().data):u;He&&_e!==-1&&(_e=setTimeout(Ge,He))}function Ge(){!C().error&&(p||z().isVisible())&&(m||z().isOnline())?oe(rj).then(Te):Te()}return Te(),()=>{_e&&(clearTimeout(_e),_e=-1)}},[u,p,m,h]),(0,jt.useDebugValue)(X),o&&ta(ge)&&h){if(!lm&&zd)throw new Error("Fallback data is required when using Suspense in SSR.");T.current=a,P.current=t,I.current=!1;let _e=_[h];if(!ta(_e)){let Te=de(_e);oj(Te)}if(ta(G)){let Te=oe(rj);ta(X)||(Te.status="fulfilled",Te.value=!0),oj(Te)}else throw G}return{mutate:de,get data(){return q.data=!0,X},get error(){return q.error=!0,G},get isValidating(){return q.isValidating=!0,U},get isLoading(){return q.isLoading=!0,Q}}},Gna=rm.defineProperty(nj,"defaultValue",{value:d_}),m_=tV(tae);l();l();var Fa={};Wi(Fa,{BRAND:()=>Sae,DIRTY:()=>Sd,EMPTY_PATH:()=>rae,INVALID:()=>xe,NEVER:()=>mte,OK:()=>ti,ParseStatus:()=>Zt,Schema:()=>Ve,ZodAny:()=>Hs,ZodArray:()=>Nr,ZodBigInt:()=>xd,ZodBoolean:()=>Cd,ZodBranded:()=>_k,ZodCatch:()=>Zd,ZodDate:()=>Dd,ZodDefault:()=>Rd,ZodDiscriminatedUnion:()=>k_,ZodEffects:()=>Sn,ZodEnum:()=>Nd,ZodError:()=>Ci,ZodFirstPartyTypeKind:()=>We,ZodFunction:()=>b_,ZodIntersection:()=>Ld,ZodIssueCode:()=>J,ZodLazy:()=>Md,ZodLiteral:()=>Fd,ZodMap:()=>gm,ZodNaN:()=>hm,ZodNativeEnum:()=>Bd,ZodNever:()=>lo,ZodNull:()=>Wd,ZodNullable:()=>Zo,ZodNumber:()=>jd,ZodObject:()=>Di,ZodOptional:()=>zn,ZodParsedType:()=>ce,ZodPipeline:()=>Ak,ZodPromise:()=>Ys,ZodReadonly:()=>qd,ZodRecord:()=>h_,ZodSchema:()=>Ve,ZodSet:()=>km,ZodString:()=>Ks,ZodSymbol:()=>mm,ZodTransformer:()=>Sn,ZodTuple:()=>Ro,ZodType:()=>Ve,ZodUndefined:()=>Gd,ZodUnion:()=>Ed,ZodUnknown:()=>Fr,ZodVoid:()=>cm,addIssueToContext:()=>le,any:()=>Mae,array:()=>Rae,bigint:()=>Dae,boolean:()=>hV,coerce:()=>pte,custom:()=>cV,date:()=>Gae,datetimeRegex:()=>pV,defaultErrorMap:()=>Lr,discriminatedUnion:()=>Uae,effect:()=>ite,enum:()=>ete,function:()=>$ae,getErrorMap:()=>dm,getParsedType:()=>Bo,instanceof:()=>xae,intersection:()=>Oae,isAborted:()=>c_,isAsync:()=>um,isDirty:()=>g_,isValid:()=>Os,late:()=>jae,lazy:()=>Jae,literal:()=>Xae,makeIssue:()=>fk,map:()=>Yae,nan:()=>Cae,nativeEnum:()=>ate,never:()=>Nae,null:()=>Lae,nullable:()=>ote,number:()=>kV,object:()=>Zae,objectUtil:()=>sj,oboolean:()=>ute,onumber:()=>dte,optional:()=>nte,ostring:()=>lte,pipeline:()=>ste,preprocess:()=>rte,promise:()=>tte,quotelessJson:()=>iae,record:()=>Hae,set:()=>Qae,setErrorMap:()=>oae,strictObject:()=>qae,string:()=>gV,symbol:()=>Wae,transformer:()=>ite,tuple:()=>Kae,undefined:()=>Eae,union:()=>Vae,unknown:()=>Fae,util:()=>Qe,void:()=>Bae});l();l();l();l();l();var Qe;(function(e){e.assertEqual=n=>{};function a(n){}e.assertIs=a;function t(n){throw new Error}e.assertNever=t,e.arrayToEnum=n=>{let o={};for(let r of n)o[r]=r;return o},e.getValidEnumValues=n=>{let o=e.objectKeys(n).filter(s=>typeof n[n[s]]!="number"),r={};for(let s of o)r[s]=n[s];return e.objectValues(r)},e.objectValues=n=>e.objectKeys(n).map(function(o){return n[o]}),e.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{let o=[];for(let r in n)Object.prototype.hasOwnProperty.call(n,r)&&o.push(r);return o},e.find=(n,o)=>{for(let r of n)if(o(r))return r},e.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&Number.isFinite(n)&&Math.floor(n)===n;function i(n,o=" | "){return n.map(r=>typeof r=="string"?`'${r}'`:r).join(o)}e.joinValues=i,e.jsonStringifyReplacer=(n,o)=>typeof o=="bigint"?o.toString():o})(Qe||(Qe={}));var sj;(function(e){e.mergeShapes=(a,t)=>({...a,...t})})(sj||(sj={}));var ce=Qe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Bo=e=>{switch(typeof e){case"undefined":return ce.undefined;case"string":return ce.string;case"number":return Number.isNaN(e)?ce.nan:ce.number;case"boolean":return ce.boolean;case"function":return ce.function;case"bigint":return ce.bigint;case"symbol":return ce.symbol;case"object":return Array.isArray(e)?ce.array:e===null?ce.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ce.promise:typeof Map<"u"&&e instanceof Map?ce.map:typeof Set<"u"&&e instanceof Set?ce.set:typeof Date<"u"&&e instanceof Date?ce.date:ce.object;default:return ce.unknown}};var J=Qe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),iae=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),Ci=class e extends Error{get errors(){return this.issues}constructor(a){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=a}format(a){let t=a||function(o){return o.message},i={_errors:[]},n=o=>{for(let r of o.issues)if(r.code==="invalid_union")r.unionErrors.map(n);else if(r.code==="invalid_return_type")n(r.returnTypeError);else if(r.code==="invalid_arguments")n(r.argumentsError);else if(r.path.length===0)i._errors.push(t(r));else{let s=i,d=0;for(;d<r.path.length;){let u=r.path[d];d===r.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(t(r))):s[u]=s[u]||{_errors:[]},s=s[u],d++}}};return n(this),i}static assert(a){if(!(a instanceof e))throw new Error(`Not a ZodError: ${a}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Qe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(a=t=>t.message){let t={},i=[];for(let n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(a(n))):i.push(a(n));return{formErrors:i,fieldErrors:t}}get formErrors(){return this.flatten()}};Ci.create=e=>new Ci(e);var nae=(e,a)=>{let t;switch(e.code){case J.invalid_type:e.received===ce.undefined?t="Required":t=`Expected ${e.expected}, received ${e.received}`;break;case J.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(e.expected,Qe.jsonStringifyReplacer)}`;break;case J.unrecognized_keys:t=`Unrecognized key(s) in object: ${Qe.joinValues(e.keys,", ")}`;break;case J.invalid_union:t="Invalid input";break;case J.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${Qe.joinValues(e.options)}`;break;case J.invalid_enum_value:t=`Invalid enum value. Expected ${Qe.joinValues(e.options)}, received '${e.received}'`;break;case J.invalid_arguments:t="Invalid function arguments";break;case J.invalid_return_type:t="Invalid function return type";break;case J.invalid_date:t="Invalid date";break;case J.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(t=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?t=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?t=`Invalid input: must end with "${e.validation.endsWith}"`:Qe.assertNever(e.validation):e.validation!=="regex"?t=`Invalid ${e.validation}`:t="Invalid";break;case J.too_small:e.type==="array"?t=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?t=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?t=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?t=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:t="Invalid input";break;case J.too_big:e.type==="array"?t=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?t=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?t=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?t=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?t=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:t="Invalid input";break;case J.custom:t="Invalid input";break;case J.invalid_intersection_types:t="Intersection results could not be merged";break;case J.not_multiple_of:t=`Number must be a multiple of ${e.multipleOf}`;break;case J.not_finite:t="Number must be finite";break;default:t=a.defaultError,Qe.assertNever(e)}return{message:t}},Lr=nae;var rV=Lr;function oae(e){rV=e}function dm(){return rV}l();var fk=e=>{let{data:a,path:t,errorMaps:i,issueData:n}=e,o=[...t,...n.path||[]],r={...n,path:o};if(n.message!==void 0)return{...n,path:o,message:n.message};let s="",d=i.filter(u=>!!u).slice().reverse();for(let u of d)s=u(r,{data:a,defaultError:s}).message;return{...n,path:o,message:s}},rae=[];function le(e,a){let t=dm(),i=fk({issueData:a,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,t,t===Lr?void 0:Lr].filter(n=>!!n)});e.common.issues.push(i)}var Zt=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(a,t){let i=[];for(let n of t){if(n.status==="aborted")return xe;n.status==="dirty"&&a.dirty(),i.push(n.value)}return{status:a.value,value:i}}static async mergeObjectAsync(a,t){let i=[];for(let n of t){let o=await n.key,r=await n.value;i.push({key:o,value:r})}return e.mergeObjectSync(a,i)}static mergeObjectSync(a,t){let i={};for(let n of t){let{key:o,value:r}=n;if(o.status==="aborted"||r.status==="aborted")return xe;o.status==="dirty"&&a.dirty(),r.status==="dirty"&&a.dirty(),o.value!=="__proto__"&&(typeof r.value<"u"||n.alwaysSet)&&(i[o.value]=r.value)}return{status:a.value,value:i}}},xe=Object.freeze({status:"aborted"}),Sd=e=>({status:"dirty",value:e}),ti=e=>({status:"valid",value:e}),c_=e=>e.status==="aborted",g_=e=>e.status==="dirty",Os=e=>e.status==="valid",um=e=>typeof Promise<"u"&&e instanceof Promise;l();l();l();var Ae;(function(e){e.errToObj=a=>typeof a=="string"?{message:a}:a||{},e.toString=a=>typeof a=="string"?a:a?.message})(Ae||(Ae={}));var wn=class{constructor(a,t,i,n){this._cachedPath=[],this.parent=a,this.data=t,this._path=i,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},sV=(e,a)=>{if(Os(a))return{success:!0,data:a.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new Ci(e.common.issues);return this._error=t,this._error}}};function Ze(e){if(!e)return{};let{errorMap:a,invalid_type_error:t,required_error:i,description:n}=e;if(a&&(t||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return a?{errorMap:a,description:n}:{errorMap:(r,s)=>{let{message:d}=e;return r.code==="invalid_enum_value"?{message:d??s.defaultError}:typeof s.data>"u"?{message:d??i??s.defaultError}:r.code!=="invalid_type"?{message:s.defaultError}:{message:d??t??s.defaultError}},description:n}}var Ve=class{get description(){return this._def.description}_getType(a){return Bo(a.data)}_getOrReturnCtx(a,t){return t||{common:a.parent.common,data:a.data,parsedType:Bo(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}_processInputParams(a){return{status:new Zt,ctx:{common:a.parent.common,data:a.data,parsedType:Bo(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}}_parseSync(a){let t=this._parse(a);if(um(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(a){let t=this._parse(a);return Promise.resolve(t)}parse(a,t){let i=this.safeParse(a,t);if(i.success)return i.data;throw i.error}safeParse(a,t){let i={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:Bo(a)},n=this._parseSync({data:a,path:i.path,parent:i});return sV(i,n)}"~validate"(a){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:Bo(a)};if(!this["~standard"].async)try{let i=this._parseSync({data:a,path:[],parent:t});return Os(i)?{value:i.value}:{issues:t.common.issues}}catch(i){i?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:a,path:[],parent:t}).then(i=>Os(i)?{value:i.value}:{issues:t.common.issues})}async parseAsync(a,t){let i=await this.safeParseAsync(a,t);if(i.success)return i.data;throw i.error}async safeParseAsync(a,t){let i={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:Bo(a)},n=this._parse({data:a,path:i.path,parent:i}),o=await(um(n)?n:Promise.resolve(n));return sV(i,o)}refine(a,t){let i=n=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(n):t;return this._refinement((n,o)=>{let r=a(n),s=()=>o.addIssue({code:J.custom,...i(n)});return typeof Promise<"u"&&r instanceof Promise?r.then(d=>d?!0:(s(),!1)):r?!0:(s(),!1)})}refinement(a,t){return this._refinement((i,n)=>a(i)?!0:(n.addIssue(typeof t=="function"?t(i,n):t),!1))}_refinement(a){return new Sn({schema:this,typeName:We.ZodEffects,effect:{type:"refinement",refinement:a}})}superRefine(a){return this._refinement(a)}constructor(a){this.spa=this.safeParseAsync,this._def=a,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:t=>this["~validate"](t)}}optional(){return zn.create(this,this._def)}nullable(){return Zo.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Nr.create(this)}promise(){return Ys.create(this,this._def)}or(a){return Ed.create([this,a],this._def)}and(a){return Ld.create(this,a,this._def)}transform(a){return new Sn({...Ze(this._def),schema:this,typeName:We.ZodEffects,effect:{type:"transform",transform:a}})}default(a){let t=typeof a=="function"?a:()=>a;return new Rd({...Ze(this._def),innerType:this,defaultValue:t,typeName:We.ZodDefault})}brand(){return new _k({typeName:We.ZodBranded,type:this,...Ze(this._def)})}catch(a){let t=typeof a=="function"?a:()=>a;return new Zd({...Ze(this._def),innerType:this,catchValue:t,typeName:We.ZodCatch})}describe(a){let t=this.constructor;return new t({...this._def,description:a})}pipe(a){return Ak.create(this,a)}readonly(){return qd.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},sae=/^c[^\s-]{8,}$/i,lae=/^[0-9a-z]+$/,dae=/^[0-9A-HJKMNP-TV-Z]{26}$/i,uae=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,pae=/^[a-z0-9_-]{21}$/i,mae=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,cae=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,gae=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,kae="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",lj,hae=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,bae=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,vae=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,yae=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,fae=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,_ae=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,dV="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Aae=new RegExp(`^${dV}$`);function uV(e){let a="[0-5]\\d";e.precision?a=`${a}\\.\\d{${e.precision}}`:e.precision==null&&(a=`${a}(\\.\\d+)?`);let t=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${a})${t}`}function Iae(e){return new RegExp(`^${uV(e)}$`)}function pV(e){let a=`${dV}T${uV(e)}`,t=[];return t.push(e.local?"Z?":"Z"),e.offset&&t.push("([+-]\\d{2}:?\\d{2})"),a=`${a}(${t.join("|")})`,new RegExp(`^${a}$`)}function Tae(e,a){return!!((a==="v4"||!a)&&hae.test(e)||(a==="v6"||!a)&&vae.test(e))}function Pae(e,a){if(!mae.test(e))return!1;try{let[t]=e.split("."),i=t.replace(/-/g,"+").replace(/_/g,"/").padEnd(t.length+(4-t.length%4)%4,"="),n=JSON.parse(atob(i));return!(typeof n!="object"||n===null||"typ"in n&&n?.typ!=="JWT"||!n.alg||a&&n.alg!==a)}catch{return!1}}function zae(e,a){return!!((a==="v4"||!a)&&bae.test(e)||(a==="v6"||!a)&&yae.test(e))}var Ks=class e extends Ve{_parse(a){if(this._def.coerce&&(a.data=String(a.data)),this._getType(a)!==ce.string){let o=this._getOrReturnCtx(a);return le(o,{code:J.invalid_type,expected:ce.string,received:o.parsedType}),xe}let i=new Zt,n;for(let o of this._def.checks)if(o.kind==="min")a.data.length<o.value&&(n=this._getOrReturnCtx(a,n),le(n,{code:J.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="max")a.data.length>o.value&&(n=this._getOrReturnCtx(a,n),le(n,{code:J.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="length"){let r=a.data.length>o.value,s=a.data.length<o.value;(r||s)&&(n=this._getOrReturnCtx(a,n),r?le(n,{code:J.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):s&&le(n,{code:J.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),i.dirty())}else if(o.kind==="email")gae.test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"email",code:J.invalid_string,message:o.message}),i.dirty());else if(o.kind==="emoji")lj||(lj=new RegExp(kae,"u")),lj.test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"emoji",code:J.invalid_string,message:o.message}),i.dirty());else if(o.kind==="uuid")uae.test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"uuid",code:J.invalid_string,message:o.message}),i.dirty());else if(o.kind==="nanoid")pae.test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"nanoid",code:J.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid")sae.test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"cuid",code:J.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid2")lae.test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"cuid2",code:J.invalid_string,message:o.message}),i.dirty());else if(o.kind==="ulid")dae.test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"ulid",code:J.invalid_string,message:o.message}),i.dirty());else if(o.kind==="url")try{new URL(a.data)}catch{n=this._getOrReturnCtx(a,n),le(n,{validation:"url",code:J.invalid_string,message:o.message}),i.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"regex",code:J.invalid_string,message:o.message}),i.dirty())):o.kind==="trim"?a.data=a.data.trim():o.kind==="includes"?a.data.includes(o.value,o.position)||(n=this._getOrReturnCtx(a,n),le(n,{code:J.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),i.dirty()):o.kind==="toLowerCase"?a.data=a.data.toLowerCase():o.kind==="toUpperCase"?a.data=a.data.toUpperCase():o.kind==="startsWith"?a.data.startsWith(o.value)||(n=this._getOrReturnCtx(a,n),le(n,{code:J.invalid_string,validation:{startsWith:o.value},message:o.message}),i.dirty()):o.kind==="endsWith"?a.data.endsWith(o.value)||(n=this._getOrReturnCtx(a,n),le(n,{code:J.invalid_string,validation:{endsWith:o.value},message:o.message}),i.dirty()):o.kind==="datetime"?pV(o).test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{code:J.invalid_string,validation:"datetime",message:o.message}),i.dirty()):o.kind==="date"?Aae.test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{code:J.invalid_string,validation:"date",message:o.message}),i.dirty()):o.kind==="time"?Iae(o).test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{code:J.invalid_string,validation:"time",message:o.message}),i.dirty()):o.kind==="duration"?cae.test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"duration",code:J.invalid_string,message:o.message}),i.dirty()):o.kind==="ip"?Tae(a.data,o.version)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"ip",code:J.invalid_string,message:o.message}),i.dirty()):o.kind==="jwt"?Pae(a.data,o.alg)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"jwt",code:J.invalid_string,message:o.message}),i.dirty()):o.kind==="cidr"?zae(a.data,o.version)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"cidr",code:J.invalid_string,message:o.message}),i.dirty()):o.kind==="base64"?fae.test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"base64",code:J.invalid_string,message:o.message}),i.dirty()):o.kind==="base64url"?_ae.test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"base64url",code:J.invalid_string,message:o.message}),i.dirty()):Qe.assertNever(o);return{status:i.value,value:a.data}}_regex(a,t,i){return this.refinement(n=>a.test(n),{validation:t,code:J.invalid_string,...Ae.errToObj(i)})}_addCheck(a){return new e({...this._def,checks:[...this._def.checks,a]})}email(a){return this._addCheck({kind:"email",...Ae.errToObj(a)})}url(a){return this._addCheck({kind:"url",...Ae.errToObj(a)})}emoji(a){return this._addCheck({kind:"emoji",...Ae.errToObj(a)})}uuid(a){return this._addCheck({kind:"uuid",...Ae.errToObj(a)})}nanoid(a){return this._addCheck({kind:"nanoid",...Ae.errToObj(a)})}cuid(a){return this._addCheck({kind:"cuid",...Ae.errToObj(a)})}cuid2(a){return this._addCheck({kind:"cuid2",...Ae.errToObj(a)})}ulid(a){return this._addCheck({kind:"ulid",...Ae.errToObj(a)})}base64(a){return this._addCheck({kind:"base64",...Ae.errToObj(a)})}base64url(a){return this._addCheck({kind:"base64url",...Ae.errToObj(a)})}jwt(a){return this._addCheck({kind:"jwt",...Ae.errToObj(a)})}ip(a){return this._addCheck({kind:"ip",...Ae.errToObj(a)})}cidr(a){return this._addCheck({kind:"cidr",...Ae.errToObj(a)})}datetime(a){return typeof a=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:a}):this._addCheck({kind:"datetime",precision:typeof a?.precision>"u"?null:a?.precision,offset:a?.offset??!1,local:a?.local??!1,...Ae.errToObj(a?.message)})}date(a){return this._addCheck({kind:"date",message:a})}time(a){return typeof a=="string"?this._addCheck({kind:"time",precision:null,message:a}):this._addCheck({kind:"time",precision:typeof a?.precision>"u"?null:a?.precision,...Ae.errToObj(a?.message)})}duration(a){return this._addCheck({kind:"duration",...Ae.errToObj(a)})}regex(a,t){return this._addCheck({kind:"regex",regex:a,...Ae.errToObj(t)})}includes(a,t){return this._addCheck({kind:"includes",value:a,position:t?.position,...Ae.errToObj(t?.message)})}startsWith(a,t){return this._addCheck({kind:"startsWith",value:a,...Ae.errToObj(t)})}endsWith(a,t){return this._addCheck({kind:"endsWith",value:a,...Ae.errToObj(t)})}min(a,t){return this._addCheck({kind:"min",value:a,...Ae.errToObj(t)})}max(a,t){return this._addCheck({kind:"max",value:a,...Ae.errToObj(t)})}length(a,t){return this._addCheck({kind:"length",value:a,...Ae.errToObj(t)})}nonempty(a){return this.min(1,Ae.errToObj(a))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(a=>a.kind==="datetime")}get isDate(){return!!this._def.checks.find(a=>a.kind==="date")}get isTime(){return!!this._def.checks.find(a=>a.kind==="time")}get isDuration(){return!!this._def.checks.find(a=>a.kind==="duration")}get isEmail(){return!!this._def.checks.find(a=>a.kind==="email")}get isURL(){return!!this._def.checks.find(a=>a.kind==="url")}get isEmoji(){return!!this._def.checks.find(a=>a.kind==="emoji")}get isUUID(){return!!this._def.checks.find(a=>a.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(a=>a.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(a=>a.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(a=>a.kind==="cuid2")}get isULID(){return!!this._def.checks.find(a=>a.kind==="ulid")}get isIP(){return!!this._def.checks.find(a=>a.kind==="ip")}get isCIDR(){return!!this._def.checks.find(a=>a.kind==="cidr")}get isBase64(){return!!this._def.checks.find(a=>a.kind==="base64")}get isBase64url(){return!!this._def.checks.find(a=>a.kind==="base64url")}get minLength(){let a=null;for(let t of this._def.checks)t.kind==="min"&&(a===null||t.value>a)&&(a=t.value);return a}get maxLength(){let a=null;for(let t of this._def.checks)t.kind==="max"&&(a===null||t.value<a)&&(a=t.value);return a}};Ks.create=e=>new Ks({checks:[],typeName:We.ZodString,coerce:e?.coerce??!1,...Ze(e)});function wae(e,a){let t=(e.toString().split(".")[1]||"").length,i=(a.toString().split(".")[1]||"").length,n=t>i?t:i,o=Number.parseInt(e.toFixed(n).replace(".","")),r=Number.parseInt(a.toFixed(n).replace(".",""));return o%r/10**n}var jd=class e extends Ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(a){if(this._def.coerce&&(a.data=Number(a.data)),this._getType(a)!==ce.number){let o=this._getOrReturnCtx(a);return le(o,{code:J.invalid_type,expected:ce.number,received:o.parsedType}),xe}let i,n=new Zt;for(let o of this._def.checks)o.kind==="int"?Qe.isInteger(a.data)||(i=this._getOrReturnCtx(a,i),le(i,{code:J.invalid_type,expected:"integer",received:"float",message:o.message}),n.dirty()):o.kind==="min"?(o.inclusive?a.data<o.value:a.data<=o.value)&&(i=this._getOrReturnCtx(a,i),le(i,{code:J.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()):o.kind==="max"?(o.inclusive?a.data>o.value:a.data>=o.value)&&(i=this._getOrReturnCtx(a,i),le(i,{code:J.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()):o.kind==="multipleOf"?wae(a.data,o.value)!==0&&(i=this._getOrReturnCtx(a,i),le(i,{code:J.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):o.kind==="finite"?Number.isFinite(a.data)||(i=this._getOrReturnCtx(a,i),le(i,{code:J.not_finite,message:o.message}),n.dirty()):Qe.assertNever(o);return{status:n.value,value:a.data}}gte(a,t){return this.setLimit("min",a,!0,Ae.toString(t))}gt(a,t){return this.setLimit("min",a,!1,Ae.toString(t))}lte(a,t){return this.setLimit("max",a,!0,Ae.toString(t))}lt(a,t){return this.setLimit("max",a,!1,Ae.toString(t))}setLimit(a,t,i,n){return new e({...this._def,checks:[...this._def.checks,{kind:a,value:t,inclusive:i,message:Ae.toString(n)}]})}_addCheck(a){return new e({...this._def,checks:[...this._def.checks,a]})}int(a){return this._addCheck({kind:"int",message:Ae.toString(a)})}positive(a){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ae.toString(a)})}negative(a){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ae.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ae.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ae.toString(a)})}multipleOf(a,t){return this._addCheck({kind:"multipleOf",value:a,message:Ae.toString(t)})}finite(a){return this._addCheck({kind:"finite",message:Ae.toString(a)})}safe(a){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ae.toString(a)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ae.toString(a)})}get minValue(){let a=null;for(let t of this._def.checks)t.kind==="min"&&(a===null||t.value>a)&&(a=t.value);return a}get maxValue(){let a=null;for(let t of this._def.checks)t.kind==="max"&&(a===null||t.value<a)&&(a=t.value);return a}get isInt(){return!!this._def.checks.find(a=>a.kind==="int"||a.kind==="multipleOf"&&Qe.isInteger(a.value))}get isFinite(){let a=null,t=null;for(let i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(t===null||i.value>t)&&(t=i.value):i.kind==="max"&&(a===null||i.value<a)&&(a=i.value)}return Number.isFinite(t)&&Number.isFinite(a)}};jd.create=e=>new jd({checks:[],typeName:We.ZodNumber,coerce:e?.coerce||!1,...Ze(e)});var xd=class e extends Ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(a){if(this._def.coerce)try{a.data=BigInt(a.data)}catch{return this._getInvalidInput(a)}if(this._getType(a)!==ce.bigint)return this._getInvalidInput(a);let i,n=new Zt;for(let o of this._def.checks)o.kind==="min"?(o.inclusive?a.data<o.value:a.data<=o.value)&&(i=this._getOrReturnCtx(a,i),le(i,{code:J.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()):o.kind==="max"?(o.inclusive?a.data>o.value:a.data>=o.value)&&(i=this._getOrReturnCtx(a,i),le(i,{code:J.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()):o.kind==="multipleOf"?a.data%o.value!==BigInt(0)&&(i=this._getOrReturnCtx(a,i),le(i,{code:J.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):Qe.assertNever(o);return{status:n.value,value:a.data}}_getInvalidInput(a){let t=this._getOrReturnCtx(a);return le(t,{code:J.invalid_type,expected:ce.bigint,received:t.parsedType}),xe}gte(a,t){return this.setLimit("min",a,!0,Ae.toString(t))}gt(a,t){return this.setLimit("min",a,!1,Ae.toString(t))}lte(a,t){return this.setLimit("max",a,!0,Ae.toString(t))}lt(a,t){return this.setLimit("max",a,!1,Ae.toString(t))}setLimit(a,t,i,n){return new e({...this._def,checks:[...this._def.checks,{kind:a,value:t,inclusive:i,message:Ae.toString(n)}]})}_addCheck(a){return new e({...this._def,checks:[...this._def.checks,a]})}positive(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ae.toString(a)})}negative(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ae.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ae.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ae.toString(a)})}multipleOf(a,t){return this._addCheck({kind:"multipleOf",value:a,message:Ae.toString(t)})}get minValue(){let a=null;for(let t of this._def.checks)t.kind==="min"&&(a===null||t.value>a)&&(a=t.value);return a}get maxValue(){let a=null;for(let t of this._def.checks)t.kind==="max"&&(a===null||t.value<a)&&(a=t.value);return a}};xd.create=e=>new xd({checks:[],typeName:We.ZodBigInt,coerce:e?.coerce??!1,...Ze(e)});var Cd=class extends Ve{_parse(a){if(this._def.coerce&&(a.data=!!a.data),this._getType(a)!==ce.boolean){let i=this._getOrReturnCtx(a);return le(i,{code:J.invalid_type,expected:ce.boolean,received:i.parsedType}),xe}return ti(a.data)}};Cd.create=e=>new Cd({typeName:We.ZodBoolean,coerce:e?.coerce||!1,...Ze(e)});var Dd=class e extends Ve{_parse(a){if(this._def.coerce&&(a.data=new Date(a.data)),this._getType(a)!==ce.date){let o=this._getOrReturnCtx(a);return le(o,{code:J.invalid_type,expected:ce.date,received:o.parsedType}),xe}if(Number.isNaN(a.data.getTime())){let o=this._getOrReturnCtx(a);return le(o,{code:J.invalid_date}),xe}let i=new Zt,n;for(let o of this._def.checks)o.kind==="min"?a.data.getTime()<o.value&&(n=this._getOrReturnCtx(a,n),le(n,{code:J.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),i.dirty()):o.kind==="max"?a.data.getTime()>o.value&&(n=this._getOrReturnCtx(a,n),le(n,{code:J.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),i.dirty()):Qe.assertNever(o);return{status:i.value,value:new Date(a.data.getTime())}}_addCheck(a){return new e({...this._def,checks:[...this._def.checks,a]})}min(a,t){return this._addCheck({kind:"min",value:a.getTime(),message:Ae.toString(t)})}max(a,t){return this._addCheck({kind:"max",value:a.getTime(),message:Ae.toString(t)})}get minDate(){let a=null;for(let t of this._def.checks)t.kind==="min"&&(a===null||t.value>a)&&(a=t.value);return a!=null?new Date(a):null}get maxDate(){let a=null;for(let t of this._def.checks)t.kind==="max"&&(a===null||t.value<a)&&(a=t.value);return a!=null?new Date(a):null}};Dd.create=e=>new Dd({checks:[],coerce:e?.coerce||!1,typeName:We.ZodDate,...Ze(e)});var mm=class extends Ve{_parse(a){if(this._getType(a)!==ce.symbol){let i=this._getOrReturnCtx(a);return le(i,{code:J.invalid_type,expected:ce.symbol,received:i.parsedType}),xe}return ti(a.data)}};mm.create=e=>new mm({typeName:We.ZodSymbol,...Ze(e)});var Gd=class extends Ve{_parse(a){if(this._getType(a)!==ce.undefined){let i=this._getOrReturnCtx(a);return le(i,{code:J.invalid_type,expected:ce.undefined,received:i.parsedType}),xe}return ti(a.data)}};Gd.create=e=>new Gd({typeName:We.ZodUndefined,...Ze(e)});var Wd=class extends Ve{_parse(a){if(this._getType(a)!==ce.null){let i=this._getOrReturnCtx(a);return le(i,{code:J.invalid_type,expected:ce.null,received:i.parsedType}),xe}return ti(a.data)}};Wd.create=e=>new Wd({typeName:We.ZodNull,...Ze(e)});var Hs=class extends Ve{constructor(){super(...arguments),this._any=!0}_parse(a){return ti(a.data)}};Hs.create=e=>new Hs({typeName:We.ZodAny,...Ze(e)});var Fr=class extends Ve{constructor(){super(...arguments),this._unknown=!0}_parse(a){return ti(a.data)}};Fr.create=e=>new Fr({typeName:We.ZodUnknown,...Ze(e)});var lo=class extends Ve{_parse(a){let t=this._getOrReturnCtx(a);return le(t,{code:J.invalid_type,expected:ce.never,received:t.parsedType}),xe}};lo.create=e=>new lo({typeName:We.ZodNever,...Ze(e)});var cm=class extends Ve{_parse(a){if(this._getType(a)!==ce.undefined){let i=this._getOrReturnCtx(a);return le(i,{code:J.invalid_type,expected:ce.void,received:i.parsedType}),xe}return ti(a.data)}};cm.create=e=>new cm({typeName:We.ZodVoid,...Ze(e)});var Nr=class e extends Ve{_parse(a){let{ctx:t,status:i}=this._processInputParams(a),n=this._def;if(t.parsedType!==ce.array)return le(t,{code:J.invalid_type,expected:ce.array,received:t.parsedType}),xe;if(n.exactLength!==null){let r=t.data.length>n.exactLength.value,s=t.data.length<n.exactLength.value;(r||s)&&(le(t,{code:r?J.too_big:J.too_small,minimum:s?n.exactLength.value:void 0,maximum:r?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),i.dirty())}if(n.minLength!==null&&t.data.length<n.minLength.value&&(le(t,{code:J.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),i.dirty()),n.maxLength!==null&&t.data.length>n.maxLength.value&&(le(t,{code:J.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),i.dirty()),t.common.async)return Promise.all([...t.data].map((r,s)=>n.type._parseAsync(new wn(t,r,t.path,s)))).then(r=>Zt.mergeArray(i,r));let o=[...t.data].map((r,s)=>n.type._parseSync(new wn(t,r,t.path,s)));return Zt.mergeArray(i,o)}get element(){return this._def.type}min(a,t){return new e({...this._def,minLength:{value:a,message:Ae.toString(t)}})}max(a,t){return new e({...this._def,maxLength:{value:a,message:Ae.toString(t)}})}length(a,t){return new e({...this._def,exactLength:{value:a,message:Ae.toString(t)}})}nonempty(a){return this.min(1,a)}};Nr.create=(e,a)=>new Nr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:We.ZodArray,...Ze(a)});function pm(e){if(e instanceof Di){let a={};for(let t in e.shape){let i=e.shape[t];a[t]=zn.create(pm(i))}return new Di({...e._def,shape:()=>a})}else return e instanceof Nr?new Nr({...e._def,type:pm(e.element)}):e instanceof zn?zn.create(pm(e.unwrap())):e instanceof Zo?Zo.create(pm(e.unwrap())):e instanceof Ro?Ro.create(e.items.map(a=>pm(a))):e}var Di=class e extends Ve{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let a=this._def.shape(),t=Qe.objectKeys(a);return this._cached={shape:a,keys:t},this._cached}_parse(a){if(this._getType(a)!==ce.object){let u=this._getOrReturnCtx(a);return le(u,{code:J.invalid_type,expected:ce.object,received:u.parsedType}),xe}let{status:i,ctx:n}=this._processInputParams(a),{shape:o,keys:r}=this._getCached(),s=[];if(!(this._def.catchall instanceof lo&&this._def.unknownKeys==="strip"))for(let u in n.data)r.includes(u)||s.push(u);let d=[];for(let u of r){let p=o[u],m=n.data[u];d.push({key:{status:"valid",value:u},value:p._parse(new wn(n,m,n.path,u)),alwaysSet:u in n.data})}if(this._def.catchall instanceof lo){let u=this._def.unknownKeys;if(u==="passthrough")for(let p of s)d.push({key:{status:"valid",value:p},value:{status:"valid",value:n.data[p]}});else if(u==="strict")s.length>0&&(le(n,{code:J.unrecognized_keys,keys:s}),i.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let p of s){let m=n.data[p];d.push({key:{status:"valid",value:p},value:u._parse(new wn(n,m,n.path,p)),alwaysSet:p in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let u=[];for(let p of d){let m=await p.key,g=await p.value;u.push({key:m,value:g,alwaysSet:p.alwaysSet})}return u}).then(u=>Zt.mergeObjectSync(i,u)):Zt.mergeObjectSync(i,d)}get shape(){return this._def.shape()}strict(a){return Ae.errToObj,new e({...this._def,unknownKeys:"strict",...a!==void 0?{errorMap:(t,i)=>{let n=this._def.errorMap?.(t,i).message??i.defaultError;return t.code==="unrecognized_keys"?{message:Ae.errToObj(a).message??n}:{message:n}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(a){return new e({...this._def,shape:()=>({...this._def.shape(),...a})})}merge(a){return new e({unknownKeys:a._def.unknownKeys,catchall:a._def.catchall,shape:()=>({...this._def.shape(),...a._def.shape()}),typeName:We.ZodObject})}setKey(a,t){return this.augment({[a]:t})}catchall(a){return new e({...this._def,catchall:a})}pick(a){let t={};for(let i of Qe.objectKeys(a))a[i]&&this.shape[i]&&(t[i]=this.shape[i]);return new e({...this._def,shape:()=>t})}omit(a){let t={};for(let i of Qe.objectKeys(this.shape))a[i]||(t[i]=this.shape[i]);return new e({...this._def,shape:()=>t})}deepPartial(){return pm(this)}partial(a){let t={};for(let i of Qe.objectKeys(this.shape)){let n=this.shape[i];a&&!a[i]?t[i]=n:t[i]=n.optional()}return new e({...this._def,shape:()=>t})}required(a){let t={};for(let i of Qe.objectKeys(this.shape))if(a&&!a[i])t[i]=this.shape[i];else{let o=this.shape[i];for(;o instanceof zn;)o=o._def.innerType;t[i]=o}return new e({...this._def,shape:()=>t})}keyof(){return mV(Qe.objectKeys(this.shape))}};Di.create=(e,a)=>new Di({shape:()=>e,unknownKeys:"strip",catchall:lo.create(),typeName:We.ZodObject,...Ze(a)});Di.strictCreate=(e,a)=>new Di({shape:()=>e,unknownKeys:"strict",catchall:lo.create(),typeName:We.ZodObject,...Ze(a)});Di.lazycreate=(e,a)=>new Di({shape:e,unknownKeys:"strip",catchall:lo.create(),typeName:We.ZodObject,...Ze(a)});var Ed=class extends Ve{_parse(a){let{ctx:t}=this._processInputParams(a),i=this._def.options;function n(o){for(let s of o)if(s.result.status==="valid")return s.result;for(let s of o)if(s.result.status==="dirty")return t.common.issues.push(...s.ctx.common.issues),s.result;let r=o.map(s=>new Ci(s.ctx.common.issues));return le(t,{code:J.invalid_union,unionErrors:r}),xe}if(t.common.async)return Promise.all(i.map(async o=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await o._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(n);{let o,r=[];for(let d of i){let u={...t,common:{...t.common,issues:[]},parent:null},p=d._parseSync({data:t.data,path:t.path,parent:u});if(p.status==="valid")return p;p.status==="dirty"&&!o&&(o={result:p,ctx:u}),u.common.issues.length&&r.push(u.common.issues)}if(o)return t.common.issues.push(...o.ctx.common.issues),o.result;let s=r.map(d=>new Ci(d));return le(t,{code:J.invalid_union,unionErrors:s}),xe}}get options(){return this._def.options}};Ed.create=(e,a)=>new Ed({options:e,typeName:We.ZodUnion,...Ze(a)});var Mr=e=>e instanceof Md?Mr(e.schema):e instanceof Sn?Mr(e.innerType()):e instanceof Fd?[e.value]:e instanceof Nd?e.options:e instanceof Bd?Qe.objectValues(e.enum):e instanceof Rd?Mr(e._def.innerType):e instanceof Gd?[void 0]:e instanceof Wd?[null]:e instanceof zn?[void 0,...Mr(e.unwrap())]:e instanceof Zo?[null,...Mr(e.unwrap())]:e instanceof _k||e instanceof qd?Mr(e.unwrap()):e instanceof Zd?Mr(e._def.innerType):[],k_=class e extends Ve{_parse(a){let{ctx:t}=this._processInputParams(a);if(t.parsedType!==ce.object)return le(t,{code:J.invalid_type,expected:ce.object,received:t.parsedType}),xe;let i=this.discriminator,n=t.data[i],o=this.optionsMap.get(n);return o?t.common.async?o._parseAsync({data:t.data,path:t.path,parent:t}):o._parseSync({data:t.data,path:t.path,parent:t}):(le(t,{code:J.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),xe)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(a,t,i){let n=new Map;for(let o of t){let r=Mr(o.shape[a]);if(!r.length)throw new Error(`A discriminator value for key \`${a}\` could not be extracted from all schema options`);for(let s of r){if(n.has(s))throw new Error(`Discriminator property ${String(a)} has duplicate value ${String(s)}`);n.set(s,o)}}return new e({typeName:We.ZodDiscriminatedUnion,discriminator:a,options:t,optionsMap:n,...Ze(i)})}};function dj(e,a){let t=Bo(e),i=Bo(a);if(e===a)return{valid:!0,data:e};if(t===ce.object&&i===ce.object){let n=Qe.objectKeys(a),o=Qe.objectKeys(e).filter(s=>n.indexOf(s)!==-1),r={...e,...a};for(let s of o){let d=dj(e[s],a[s]);if(!d.valid)return{valid:!1};r[s]=d.data}return{valid:!0,data:r}}else if(t===ce.array&&i===ce.array){if(e.length!==a.length)return{valid:!1};let n=[];for(let o=0;o<e.length;o++){let r=e[o],s=a[o],d=dj(r,s);if(!d.valid)return{valid:!1};n.push(d.data)}return{valid:!0,data:n}}else return t===ce.date&&i===ce.date&&+e==+a?{valid:!0,data:e}:{valid:!1}}var Ld=class extends Ve{_parse(a){let{status:t,ctx:i}=this._processInputParams(a),n=(o,r)=>{if(c_(o)||c_(r))return xe;let s=dj(o.value,r.value);return s.valid?((g_(o)||g_(r))&&t.dirty(),{status:t.value,value:s.data}):(le(i,{code:J.invalid_intersection_types}),xe)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([o,r])=>n(o,r)):n(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};Ld.create=(e,a,t)=>new Ld({left:e,right:a,typeName:We.ZodIntersection,...Ze(t)});var Ro=class e extends Ve{_parse(a){let{status:t,ctx:i}=this._processInputParams(a);if(i.parsedType!==ce.array)return le(i,{code:J.invalid_type,expected:ce.array,received:i.parsedType}),xe;if(i.data.length<this._def.items.length)return le(i,{code:J.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),xe;!this._def.rest&&i.data.length>this._def.items.length&&(le(i,{code:J.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let o=[...i.data].map((r,s)=>{let d=this._def.items[s]||this._def.rest;return d?d._parse(new wn(i,r,i.path,s)):null}).filter(r=>!!r);return i.common.async?Promise.all(o).then(r=>Zt.mergeArray(t,r)):Zt.mergeArray(t,o)}get items(){return this._def.items}rest(a){return new e({...this._def,rest:a})}};Ro.create=(e,a)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ro({items:e,typeName:We.ZodTuple,rest:null,...Ze(a)})};var h_=class e extends Ve{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){let{status:t,ctx:i}=this._processInputParams(a);if(i.parsedType!==ce.object)return le(i,{code:J.invalid_type,expected:ce.object,received:i.parsedType}),xe;let n=[],o=this._def.keyType,r=this._def.valueType;for(let s in i.data)n.push({key:o._parse(new wn(i,s,i.path,s)),value:r._parse(new wn(i,i.data[s],i.path,s)),alwaysSet:s in i.data});return i.common.async?Zt.mergeObjectAsync(t,n):Zt.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(a,t,i){return t instanceof Ve?new e({keyType:a,valueType:t,typeName:We.ZodRecord,...Ze(i)}):new e({keyType:Ks.create(),valueType:a,typeName:We.ZodRecord,...Ze(t)})}},gm=class extends Ve{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){let{status:t,ctx:i}=this._processInputParams(a);if(i.parsedType!==ce.map)return le(i,{code:J.invalid_type,expected:ce.map,received:i.parsedType}),xe;let n=this._def.keyType,o=this._def.valueType,r=[...i.data.entries()].map(([s,d],u)=>({key:n._parse(new wn(i,s,i.path,[u,"key"])),value:o._parse(new wn(i,d,i.path,[u,"value"]))}));if(i.common.async){let s=new Map;return Promise.resolve().then(async()=>{for(let d of r){let u=await d.key,p=await d.value;if(u.status==="aborted"||p.status==="aborted")return xe;(u.status==="dirty"||p.status==="dirty")&&t.dirty(),s.set(u.value,p.value)}return{status:t.value,value:s}})}else{let s=new Map;for(let d of r){let u=d.key,p=d.value;if(u.status==="aborted"||p.status==="aborted")return xe;(u.status==="dirty"||p.status==="dirty")&&t.dirty(),s.set(u.value,p.value)}return{status:t.value,value:s}}}};gm.create=(e,a,t)=>new gm({valueType:a,keyType:e,typeName:We.ZodMap,...Ze(t)});var km=class e extends Ve{_parse(a){let{status:t,ctx:i}=this._processInputParams(a);if(i.parsedType!==ce.set)return le(i,{code:J.invalid_type,expected:ce.set,received:i.parsedType}),xe;let n=this._def;n.minSize!==null&&i.data.size<n.minSize.value&&(le(i,{code:J.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),n.maxSize!==null&&i.data.size>n.maxSize.value&&(le(i,{code:J.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let o=this._def.valueType;function r(d){let u=new Set;for(let p of d){if(p.status==="aborted")return xe;p.status==="dirty"&&t.dirty(),u.add(p.value)}return{status:t.value,value:u}}let s=[...i.data.values()].map((d,u)=>o._parse(new wn(i,d,i.path,u)));return i.common.async?Promise.all(s).then(d=>r(d)):r(s)}min(a,t){return new e({...this._def,minSize:{value:a,message:Ae.toString(t)}})}max(a,t){return new e({...this._def,maxSize:{value:a,message:Ae.toString(t)}})}size(a,t){return this.min(a,t).max(a,t)}nonempty(a){return this.min(1,a)}};km.create=(e,a)=>new km({valueType:e,minSize:null,maxSize:null,typeName:We.ZodSet,...Ze(a)});var b_=class e extends Ve{constructor(){super(...arguments),this.validate=this.implement}_parse(a){let{ctx:t}=this._processInputParams(a);if(t.parsedType!==ce.function)return le(t,{code:J.invalid_type,expected:ce.function,received:t.parsedType}),xe;function i(s,d){return fk({data:s,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,dm(),Lr].filter(u=>!!u),issueData:{code:J.invalid_arguments,argumentsError:d}})}function n(s,d){return fk({data:s,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,dm(),Lr].filter(u=>!!u),issueData:{code:J.invalid_return_type,returnTypeError:d}})}let o={errorMap:t.common.contextualErrorMap},r=t.data;if(this._def.returns instanceof Ys){let s=this;return ti(async function(...d){let u=new Ci([]),p=await s._def.args.parseAsync(d,o).catch(b=>{throw u.addIssue(i(d,b)),u}),m=await Reflect.apply(r,this,p);return await s._def.returns._def.type.parseAsync(m,o).catch(b=>{throw u.addIssue(n(m,b)),u})})}else{let s=this;return ti(function(...d){let u=s._def.args.safeParse(d,o);if(!u.success)throw new Ci([i(d,u.error)]);let p=Reflect.apply(r,this,u.data),m=s._def.returns.safeParse(p,o);if(!m.success)throw new Ci([n(p,m.error)]);return m.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...a){return new e({...this._def,args:Ro.create(a).rest(Fr.create())})}returns(a){return new e({...this._def,returns:a})}implement(a){return this.parse(a)}strictImplement(a){return this.parse(a)}static create(a,t,i){return new e({args:a||Ro.create([]).rest(Fr.create()),returns:t||Fr.create(),typeName:We.ZodFunction,...Ze(i)})}},Md=class extends Ve{get schema(){return this._def.getter()}_parse(a){let{ctx:t}=this._processInputParams(a);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};Md.create=(e,a)=>new Md({getter:e,typeName:We.ZodLazy,...Ze(a)});var Fd=class extends Ve{_parse(a){if(a.data!==this._def.value){let t=this._getOrReturnCtx(a);return le(t,{received:t.data,code:J.invalid_literal,expected:this._def.value}),xe}return{status:"valid",value:a.data}}get value(){return this._def.value}};Fd.create=(e,a)=>new Fd({value:e,typeName:We.ZodLiteral,...Ze(a)});function mV(e,a){return new Nd({values:e,typeName:We.ZodEnum,...Ze(a)})}var Nd=class e extends Ve{_parse(a){if(typeof a.data!="string"){let t=this._getOrReturnCtx(a),i=this._def.values;return le(t,{expected:Qe.joinValues(i),received:t.parsedType,code:J.invalid_type}),xe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(a.data)){let t=this._getOrReturnCtx(a),i=this._def.values;return le(t,{received:t.data,code:J.invalid_enum_value,options:i}),xe}return ti(a.data)}get options(){return this._def.values}get enum(){let a={};for(let t of this._def.values)a[t]=t;return a}get Values(){let a={};for(let t of this._def.values)a[t]=t;return a}get Enum(){let a={};for(let t of this._def.values)a[t]=t;return a}extract(a,t=this._def){return e.create(a,{...this._def,...t})}exclude(a,t=this._def){return e.create(this.options.filter(i=>!a.includes(i)),{...this._def,...t})}};Nd.create=mV;var Bd=class extends Ve{_parse(a){let t=Qe.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(a);if(i.parsedType!==ce.string&&i.parsedType!==ce.number){let n=Qe.objectValues(t);return le(i,{expected:Qe.joinValues(n),received:i.parsedType,code:J.invalid_type}),xe}if(this._cache||(this._cache=new Set(Qe.getValidEnumValues(this._def.values))),!this._cache.has(a.data)){let n=Qe.objectValues(t);return le(i,{received:i.data,code:J.invalid_enum_value,options:n}),xe}return ti(a.data)}get enum(){return this._def.values}};Bd.create=(e,a)=>new Bd({values:e,typeName:We.ZodNativeEnum,...Ze(a)});var Ys=class extends Ve{unwrap(){return this._def.type}_parse(a){let{ctx:t}=this._processInputParams(a);if(t.parsedType!==ce.promise&&t.common.async===!1)return le(t,{code:J.invalid_type,expected:ce.promise,received:t.parsedType}),xe;let i=t.parsedType===ce.promise?t.data:Promise.resolve(t.data);return ti(i.then(n=>this._def.type.parseAsync(n,{path:t.path,errorMap:t.common.contextualErrorMap})))}};Ys.create=(e,a)=>new Ys({type:e,typeName:We.ZodPromise,...Ze(a)});var Sn=class extends Ve{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===We.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(a){let{status:t,ctx:i}=this._processInputParams(a),n=this._def.effect||null,o={addIssue:r=>{le(i,r),r.fatal?t.abort():t.dirty()},get path(){return i.path}};if(o.addIssue=o.addIssue.bind(o),n.type==="preprocess"){let r=n.transform(i.data,o);if(i.common.async)return Promise.resolve(r).then(async s=>{if(t.value==="aborted")return xe;let d=await this._def.schema._parseAsync({data:s,path:i.path,parent:i});return d.status==="aborted"?xe:d.status==="dirty"?Sd(d.value):t.value==="dirty"?Sd(d.value):d});{if(t.value==="aborted")return xe;let s=this._def.schema._parseSync({data:r,path:i.path,parent:i});return s.status==="aborted"?xe:s.status==="dirty"?Sd(s.value):t.value==="dirty"?Sd(s.value):s}}if(n.type==="refinement"){let r=s=>{let d=n.refinement(s,o);if(i.common.async)return Promise.resolve(d);if(d instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(i.common.async===!1){let s=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?xe:(s.status==="dirty"&&t.dirty(),r(s.value),{status:t.value,value:s.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(s=>s.status==="aborted"?xe:(s.status==="dirty"&&t.dirty(),r(s.value).then(()=>({status:t.value,value:s.value}))))}if(n.type==="transform")if(i.common.async===!1){let r=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!Os(r))return xe;let s=n.transform(r.value,o);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:s}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(r=>Os(r)?Promise.resolve(n.transform(r.value,o)).then(s=>({status:t.value,value:s})):xe);Qe.assertNever(n)}};Sn.create=(e,a,t)=>new Sn({schema:e,typeName:We.ZodEffects,effect:a,...Ze(t)});Sn.createWithPreprocess=(e,a,t)=>new Sn({schema:a,effect:{type:"preprocess",transform:e},typeName:We.ZodEffects,...Ze(t)});var zn=class extends Ve{_parse(a){return this._getType(a)===ce.undefined?ti(void 0):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}};zn.create=(e,a)=>new zn({innerType:e,typeName:We.ZodOptional,...Ze(a)});var Zo=class extends Ve{_parse(a){return this._getType(a)===ce.null?ti(null):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}};Zo.create=(e,a)=>new Zo({innerType:e,typeName:We.ZodNullable,...Ze(a)});var Rd=class extends Ve{_parse(a){let{ctx:t}=this._processInputParams(a),i=t.data;return t.parsedType===ce.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};Rd.create=(e,a)=>new Rd({innerType:e,typeName:We.ZodDefault,defaultValue:typeof a.default=="function"?a.default:()=>a.default,...Ze(a)});var Zd=class extends Ve{_parse(a){let{ctx:t}=this._processInputParams(a),i={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return um(n)?n.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Ci(i.common.issues)},input:i.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new Ci(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};Zd.create=(e,a)=>new Zd({innerType:e,typeName:We.ZodCatch,catchValue:typeof a.catch=="function"?a.catch:()=>a.catch,...Ze(a)});var hm=class extends Ve{_parse(a){if(this._getType(a)!==ce.nan){let i=this._getOrReturnCtx(a);return le(i,{code:J.invalid_type,expected:ce.nan,received:i.parsedType}),xe}return{status:"valid",value:a.data}}};hm.create=e=>new hm({typeName:We.ZodNaN,...Ze(e)});var Sae=Symbol("zod_brand"),_k=class extends Ve{_parse(a){let{ctx:t}=this._processInputParams(a),i=t.data;return this._def.type._parse({data:i,path:t.path,parent:t})}unwrap(){return this._def.type}},Ak=class e extends Ve{_parse(a){let{status:t,ctx:i}=this._processInputParams(a);if(i.common.async)return(async()=>{let o=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?xe:o.status==="dirty"?(t.dirty(),Sd(o.value)):this._def.out._parseAsync({data:o.value,path:i.path,parent:i})})();{let n=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return n.status==="aborted"?xe:n.status==="dirty"?(t.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:i.path,parent:i})}}static create(a,t){return new e({in:a,out:t,typeName:We.ZodPipeline})}},qd=class extends Ve{_parse(a){let t=this._def.innerType._parse(a),i=n=>(Os(n)&&(n.value=Object.freeze(n.value)),n);return um(t)?t.then(n=>i(n)):i(t)}unwrap(){return this._def.innerType}};qd.create=(e,a)=>new qd({innerType:e,typeName:We.ZodReadonly,...Ze(a)});function lV(e,a){let t=typeof e=="function"?e(a):typeof e=="string"?{message:e}:e;return typeof t=="string"?{message:t}:t}function cV(e,a={},t){return e?Hs.create().superRefine((i,n)=>{let o=e(i);if(o instanceof Promise)return o.then(r=>{if(!r){let s=lV(a,i),d=s.fatal??t??!0;n.addIssue({code:"custom",...s,fatal:d})}});if(!o){let r=lV(a,i),s=r.fatal??t??!0;n.addIssue({code:"custom",...r,fatal:s})}}):Hs.create()}var jae={object:Di.lazycreate},We;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(We||(We={}));var xae=(e,a={message:`Input not instance of ${e.name}`})=>cV(t=>t instanceof e,a),gV=Ks.create,kV=jd.create,Cae=hm.create,Dae=xd.create,hV=Cd.create,Gae=Dd.create,Wae=mm.create,Eae=Gd.create,Lae=Wd.create,Mae=Hs.create,Fae=Fr.create,Nae=lo.create,Bae=cm.create,Rae=Nr.create,Zae=Di.create,qae=Di.strictCreate,Vae=Ed.create,Uae=k_.create,Oae=Ld.create,Kae=Ro.create,Hae=h_.create,Yae=gm.create,Qae=km.create,$ae=b_.create,Jae=Md.create,Xae=Fd.create,ete=Nd.create,ate=Bd.create,tte=Ys.create,ite=Sn.create,nte=zn.create,ote=Zo.create,rte=Sn.createWithPreprocess,ste=Ak.create,lte=()=>gV().optional(),dte=()=>kV().optional(),ute=()=>hV().optional(),pte={string:e=>Ks.create({...e,coerce:!0}),number:e=>jd.create({...e,coerce:!0}),boolean:e=>Cd.create({...e,coerce:!0}),bigint:e=>xd.create({...e,coerce:!0}),date:e=>Dd.create({...e,coerce:!0})};var mte=xe;l();l();var vte=S(R(),1);l();var Pk=S(R(),1);l();var cte=S(vV());l();var fV=(e,a,t,i)=>{let n=[t,{code:a,...i||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(n,"warn","react-i18next::",!0);Br(n[0])&&(n[0]=`react-i18next:: ${n[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...n):console?.warn&&console.warn(...n)},yV={},Ik=(e,a,t,i)=>{Br(t)&&yV[t]||(Br(t)&&(yV[t]=new Date),fV(e,a,t,i))},_V=(e,a)=>()=>{if(e.isInitialized)a();else{let t=()=>{setTimeout(()=>{e.off("initialized",t)},0),a()};e.on("initialized",t)}},v_=(e,a,t)=>{e.loadNamespaces(a,_V(e,t))},uj=(e,a,t,i)=>{if(Br(t)&&(t=[t]),e.options.preload&&e.options.preload.indexOf(a)>-1)return v_(e,t,i);t.forEach(n=>{e.options.ns.indexOf(n)<0&&e.options.ns.push(n)}),e.loadLanguages(a,_V(e,i))},AV=(e,a,t={})=>!a.languages||!a.languages.length?(Ik(a,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:a.languages}),!0):a.hasLoadedNamespace(e,{lng:t.lng,precheck:(i,n)=>{if(t.bindI18n?.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!n(i.isLanguageChangingTo,e))return!1}});var Br=e=>typeof e=="string",pj=e=>typeof e=="object"&&e!==null;l();l();var gte=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,kte={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},hte=e=>kte[e],IV=e=>e.replace(gte,hte);var mj={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:IV},y_=(e={})=>{mj={...mj,...e}},Tk=()=>mj;l();var TV,f_=e=>{TV=e},Vd=()=>TV;l();var PV=S(R(),1);l();var __={type:"3rdParty",init(e){y_(e.options.react),f_(e)}};var bm=(0,PV.createContext)(),A_=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(a){a.forEach(t=>{this.usedNamespaces[t]||(this.usedNamespaces[t]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}};l();var Xi=S(R(),1);var yte=(e,a)=>{let t=(0,Xi.useRef)();return(0,Xi.useEffect)(()=>{t.current=a?t.current:e},[e,a]),t.current},zV=(e,a,t,i)=>e.getFixedT(a,t,i),fte=(e,a,t,i)=>(0,Xi.useCallback)(zV(e,a,t,i),[e,a,t,i]),uo=(e,a={})=>{let{i18n:t}=a,{i18n:i,defaultNS:n}=(0,Xi.useContext)(bm)||{},o=t||i||Vd();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new A_),!o){Ik(o,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");let I=(T,P)=>Br(P)?P:pj(P)&&Br(P.defaultValue)?P.defaultValue:Array.isArray(T)?T[T.length-1]:T,A=[I,{},!1];return A.t=I,A.i18n={},A.ready=!1,A}o.options.react?.wait&&Ik(o,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let r={...Tk(),...o.options.react,...a},{useSuspense:s,keyPrefix:d}=r,u=e||n||o.options?.defaultNS;u=Br(u)?[u]:u||["translation"],o.reportNamespaces.addUsedNamespaces?.(u);let p=(o.isInitialized||o.initializedStoreOnce)&&u.every(I=>AV(I,o,r)),m=fte(o,a.lng||null,r.nsMode==="fallback"?u:u[0],d),g=()=>m,b=()=>zV(o,a.lng||null,r.nsMode==="fallback"?u:u[0],d),[f,v]=(0,Xi.useState)(g),_=u.join();a.lng&&(_=`${a.lng}${_}`);let h=yte(_),k=(0,Xi.useRef)(!0);(0,Xi.useEffect)(()=>{let{bindI18n:I,bindI18nStore:A}=r;k.current=!0,!p&&!s&&(a.lng?uj(o,a.lng,u,()=>{k.current&&v(b)}):v_(o,u,()=>{k.current&&v(b)})),p&&h&&h!==_&&k.current&&v(b);let T=()=>{k.current&&v(b)};return I&&o?.on(I,T),A&&o?.store.on(A,T),()=>{k.current=!1,o&&I?.split(" ").forEach(P=>o.off(P,T)),A&&o&&A.split(" ").forEach(P=>o.store.off(P,T))}},[o,_]),(0,Xi.useEffect)(()=>{k.current&&p&&v(g)},[o,d,p]);let y=[f,o,p];if(y.t=f,y.i18n=o,y.ready=p,p||!p&&!s)return y;throw new Promise(I=>{a.lng?uj(o,a.lng,u,()=>I()):v_(o,u,()=>I())})};l();var wV=S(R(),1);l();l();var SV=S(R(),1);l();var Pte=S(R(),1);l();var Ate=S(R(),1);l();l();var Be=e=>typeof e=="string",zk=()=>{let e,a,t=new Promise((i,n)=>{e=i,a=n});return t.resolve=e,t.reject=a,t},jV=e=>e==null?"":""+e,zte=(e,a,t)=>{e.forEach(i=>{a[i]&&(t[i]=a[i])})},wte=/###/g,xV=e=>e&&e.indexOf("###")>-1?e.replace(wte,"."):e,CV=e=>!e||Be(e),wk=(e,a,t)=>{let i=Be(a)?a.split("."):a,n=0;for(;n<i.length-1;){if(CV(e))return{};let o=xV(i[n]);!e[o]&&t&&(e[o]=new t),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++n}return CV(e)?{}:{obj:e,k:xV(i[n])}},DV=(e,a,t)=>{let{obj:i,k:n}=wk(e,a,Object);if(i!==void 0||a.length===1){i[n]=t;return}let o=a[a.length-1],r=a.slice(0,a.length-1),s=wk(e,r,Object);for(;s.obj===void 0&&r.length;)o=`${r[r.length-1]}.${o}`,r=r.slice(0,r.length-1),s=wk(e,r,Object),s?.obj&&typeof s.obj[`${s.k}.${o}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=t},Ste=(e,a,t,i)=>{let{obj:n,k:o}=wk(e,a,Object);n[o]=n[o]||[],n[o].push(t)},T_=(e,a)=>{let{obj:t,k:i}=wk(e,a);if(t&&Object.prototype.hasOwnProperty.call(t,i))return t[i]},jte=(e,a,t)=>{let i=T_(e,t);return i!==void 0?i:T_(a,t)},RV=(e,a,t)=>{for(let i in a)i!=="__proto__"&&i!=="constructor"&&(i in e?Be(e[i])||e[i]instanceof String||Be(a[i])||a[i]instanceof String?t&&(e[i]=a[i]):RV(e[i],a[i],t):e[i]=a[i]);return e},vm=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),xte={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},Cte=e=>Be(e)?e.replace(/[&<>"'\/]/g,a=>xte[a]):e,gj=class{constructor(a){this.capacity=a,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(a){let t=this.regExpMap.get(a);if(t!==void 0)return t;let i=new RegExp(a);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(a,i),this.regExpQueue.push(a),i}},Dte=[" ",",","?","!",";"],Gte=new gj(20),Wte=(e,a,t)=>{a=a||"",t=t||"";let i=Dte.filter(r=>a.indexOf(r)<0&&t.indexOf(r)<0);if(i.length===0)return!0;let n=Gte.getRegExp(`(${i.map(r=>r==="?"?"\\?":r).join("|")})`),o=!n.test(e);if(!o){let r=e.indexOf(t);r>0&&!n.test(e.substring(0,r))&&(o=!0)}return o},kj=(e,a,t=".")=>{if(!e)return;if(e[a])return Object.prototype.hasOwnProperty.call(e,a)?e[a]:void 0;let i=a.split(t),n=e;for(let o=0;o<i.length;){if(!n||typeof n!="object")return;let r,s="";for(let d=o;d<i.length;++d)if(d!==o&&(s+=t),s+=i[d],r=n[s],r!==void 0){if(["string","number","boolean"].indexOf(typeof r)>-1&&d<i.length-1)continue;o+=d-o+1;break}n=r}return n},Sk=e=>e?.replace("_","-"),Ete={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,a){console?.[e]?.apply?.(console,a)}},hj=class e{constructor(a,t={}){this.init(a,t)}init(a,t={}){this.prefix=t.prefix||"i18next:",this.logger=a||Ete,this.options=t,this.debug=t.debug}log(...a){return this.forward(a,"log","",!0)}warn(...a){return this.forward(a,"warn","",!0)}error(...a){return this.forward(a,"error","")}deprecate(...a){return this.forward(a,"warn","WARNING DEPRECATED: ",!0)}forward(a,t,i,n){return n&&!this.debug?null:(Be(a[0])&&(a[0]=`${i}${this.prefix} ${a[0]}`),this.logger[t](a))}create(a){return new e(this.logger,{prefix:`${this.prefix}:${a}:`,...this.options})}clone(a){return a=a||this.options,a.prefix=a.prefix||this.prefix,new e(this.logger,a)}},qo=new hj,ym=class{constructor(){this.observers={}}on(a,t){return a.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let n=this.observers[i].get(t)||0;this.observers[i].set(t,n+1)}),this}off(a,t){if(this.observers[a]){if(!t){delete this.observers[a];return}this.observers[a].delete(t)}}emit(a,...t){this.observers[a]&&Array.from(this.observers[a].entries()).forEach(([n,o])=>{for(let r=0;r<o;r++)n(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,o])=>{for(let r=0;r<o;r++)n.apply(n,[a,...t])})}},P_=class extends ym{constructor(a,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=a||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(a){this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}removeNamespaces(a){let t=this.options.ns.indexOf(a);t>-1&&this.options.ns.splice(t,1)}getResource(a,t,i,n={}){let o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,r=n.ignoreJSONStructure!==void 0?n.ignoreJSONStructure:this.options.ignoreJSONStructure,s;a.indexOf(".")>-1?s=a.split("."):(s=[a,t],i&&(Array.isArray(i)?s.push(...i):Be(i)&&o?s.push(...i.split(o)):s.push(i)));let d=T_(this.data,s);return!d&&!t&&!i&&a.indexOf(".")>-1&&(a=s[0],t=s[1],i=s.slice(2).join(".")),d||!r||!Be(i)?d:kj(this.data?.[a]?.[t],i,o)}addResource(a,t,i,n,o={silent:!1}){let r=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=[a,t];i&&(s=s.concat(r?i.split(r):i)),a.indexOf(".")>-1&&(s=a.split("."),n=t,t=s[1]),this.addNamespaces(t),DV(this.data,s,n),o.silent||this.emit("added",a,t,i,n)}addResources(a,t,i,n={silent:!1}){for(let o in i)(Be(i[o])||Array.isArray(i[o]))&&this.addResource(a,t,o,i[o],{silent:!0});n.silent||this.emit("added",a,t,i)}addResourceBundle(a,t,i,n,o,r={silent:!1,skipCopy:!1}){let s=[a,t];a.indexOf(".")>-1&&(s=a.split("."),n=i,i=t,t=s[1]),this.addNamespaces(t);let d=T_(this.data,s)||{};r.skipCopy||(i=JSON.parse(JSON.stringify(i))),n?RV(d,i,o):d={...d,...i},DV(this.data,s,d),r.silent||this.emit("added",a,t,i)}removeResourceBundle(a,t){this.hasResourceBundle(a,t)&&delete this.data[a][t],this.removeNamespaces(t),this.emit("removed",a,t)}hasResourceBundle(a,t){return this.getResource(a,t)!==void 0}getResourceBundle(a,t){return t||(t=this.options.defaultNS),this.getResource(a,t)}getDataByLanguage(a){return this.data[a]}hasLanguageSomeTranslations(a){let t=this.getDataByLanguage(a);return!!(t&&Object.keys(t)||[]).find(n=>t[n]&&Object.keys(t[n]).length>0)}toJSON(){return this.data}},ZV={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,a,t,i,n){return e.forEach(o=>{a=this.processors[o]?.process(a,t,i,n)??a}),a}},GV={},WV=e=>!Be(e)&&typeof e!="boolean"&&typeof e!="number",z_=class e extends ym{constructor(a,t={}){super(),zte(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],a,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=qo.create("translator")}changeLanguage(a){a&&(this.language=a)}exists(a,t={interpolation:{}}){let i={...t};return a==null?!1:this.resolve(a,i)?.res!==void 0}extractFromKey(a,t){let i=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let n=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],r=i&&a.indexOf(i)>-1,s=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Wte(a,i,n);if(r&&!s){let d=a.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:a,namespaces:Be(o)?[o]:o};let u=a.split(i);(i!==n||i===n&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),a=u.join(n)}return{key:a,namespaces:Be(o)?[o]:o}}translate(a,t,i){let n=typeof t=="object"?{...t}:t;if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(n={...n}),n||(n={}),a==null)return"";Array.isArray(a)||(a=[String(a)]);let o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:d}=this.extractFromKey(a[a.length-1],n),u=d[d.length-1],p=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;p===void 0&&(p=":");let m=n.lng||this.language,g=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m?.toLowerCase()==="cimode")return g?o?{res:`${u}${p}${s}`,usedKey:s,exactUsedKey:s,usedLng:m,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${p}${s}`:o?{res:s,usedKey:s,exactUsedKey:s,usedLng:m,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:s;let b=this.resolve(a,n),f=b?.res,v=b?.usedKey||s,_=b?.exactUsedKey||s,h=["[object Number]","[object Function]","[object RegExp]"],k=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,I=n.count!==void 0&&!Be(n.count),A=e.hasDefaultValue(n),T=I?this.pluralResolver.getSuffix(m,n.count,n):"",P=n.ordinal&&I?this.pluralResolver.getSuffix(m,n.count,{ordinal:!1}):"",z=I&&!n.ordinal&&n.count===0,D=z&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${T}`]||n[`defaultValue${P}`]||n.defaultValue,C=f;y&&!f&&A&&(C=D);let W=WV(C),F=Object.prototype.toString.apply(C);if(y&&C&&W&&h.indexOf(F)<0&&!(Be(k)&&Array.isArray(C))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let N=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,C,{...n,ns:d}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(b.res=N,b.usedParams=this.getUsedParamsDetails(n),b):N}if(r){let N=Array.isArray(C),q=N?[]:{},Z=N?_:v;for(let x in C)if(Object.prototype.hasOwnProperty.call(C,x)){let E=`${Z}${r}${x}`;A&&!f?q[x]=this.translate(E,{...n,defaultValue:WV(D)?D[x]:void 0,joinArrays:!1,ns:d}):q[x]=this.translate(E,{...n,joinArrays:!1,ns:d}),q[x]===E&&(q[x]=C[x])}f=q}}else if(y&&Be(k)&&Array.isArray(f))f=f.join(k),f&&(f=this.extendTranslation(f,a,n,i));else{let N=!1,q=!1;!this.isValidLookup(f)&&A&&(N=!0,f=D),this.isValidLookup(f)||(q=!0,f=s);let x=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&q?void 0:f,E=A&&D!==f&&this.options.updateMissing;if(q||N||E){if(this.logger.log(E?"updateKey":"missingKey",m,u,s,E?D:f),r){let be=this.resolve(s,{...n,keySeparator:!1});be&&be.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let V=[],pe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&pe&&pe[0])for(let be=0;be<pe.length;be++)V.push(pe[be]);else this.options.saveMissingTo==="all"?V=this.languageUtils.toResolveHierarchy(n.lng||this.language):V.push(n.lng||this.language);let we=(be,ge,G)=>{let ee=A&&G!==f?G:x;this.options.missingKeyHandler?this.options.missingKeyHandler(be,u,ge,ee,E,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(be,u,ge,ee,E,n),this.emit("missingKey",be,u,ge,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&I?V.forEach(be=>{let ge=this.pluralResolver.getSuffixes(be,n);z&&n[`defaultValue${this.options.pluralSeparator}zero`]&&ge.indexOf(`${this.options.pluralSeparator}zero`)<0&&ge.push(`${this.options.pluralSeparator}zero`),ge.forEach(G=>{we([be],s+G,n[`defaultValue${G}`]||D)})}):we(V,s,D))}f=this.extendTranslation(f,a,n,b,i),q&&f===s&&this.options.appendNamespaceToMissingKey&&(f=`${u}${p}${s}`),(q||N)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${p}${s}`:s,N?f:void 0,n))}return o?(b.res=f,b.usedParams=this.getUsedParamsDetails(n),b):f}extendTranslation(a,t,i,n,o){if(this.i18nFormat?.parse)a=this.i18nFormat.parse(a,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let d=Be(a)&&(i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),u;if(d){let m=a.match(this.interpolator.nestingRegexp);u=m&&m.length}let p=i.replace&&!Be(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),a=this.interpolator.interpolate(a,p,i.lng||this.language||n.usedLng,i),d){let m=a.match(this.interpolator.nestingRegexp),g=m&&m.length;u<g&&(i.nest=!1)}!i.lng&&n&&n.res&&(i.lng=this.language||n.usedLng),i.nest!==!1&&(a=this.interpolator.nest(a,(...m)=>o?.[0]===m[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${t[0]}`),null):this.translate(...m,t),i)),i.interpolation&&this.interpolator.reset()}let r=i.postProcess||this.options.postProcess,s=Be(r)?[r]:r;return a!=null&&s?.length&&i.applyPostProcessor!==!1&&(a=ZV.handle(s,a,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),a}resolve(a,t={}){let i,n,o,r,s;return Be(a)&&(a=[a]),a.forEach(d=>{if(this.isValidLookup(i))return;let u=this.extractFromKey(d,t),p=u.key;n=p;let m=u.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));let g=t.count!==void 0&&!Be(t.count),b=g&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(Be(t.context)||typeof t.context=="number")&&t.context!=="",v=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);m.forEach(_=>{this.isValidLookup(i)||(s=_,!GV[`${v[0]}-${_}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(s)&&(GV[`${v[0]}-${_}`]=!0,this.logger.warn(`key "${n}" for languages "${v.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),v.forEach(h=>{if(this.isValidLookup(i))return;r=h;let k=[p];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(k,p,h,_,t);else{let I;g&&(I=this.pluralResolver.getSuffix(h,t.count,t));let A=`${this.options.pluralSeparator}zero`,T=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(k.push(p+I),t.ordinal&&I.indexOf(T)===0&&k.push(p+I.replace(T,this.options.pluralSeparator)),b&&k.push(p+A)),f){let P=`${p}${this.options.contextSeparator}${t.context}`;k.push(P),g&&(k.push(P+I),t.ordinal&&I.indexOf(T)===0&&k.push(P+I.replace(T,this.options.pluralSeparator)),b&&k.push(P+A))}}let y;for(;y=k.pop();)this.isValidLookup(i)||(o=y,i=this.getResource(h,_,y,t))}))})}),{res:i,usedKey:n,exactUsedKey:o,usedLng:r,usedNS:s}}isValidLookup(a){return a!==void 0&&!(!this.options.returnNull&&a===null)&&!(!this.options.returnEmptyString&&a==="")}getResource(a,t,i,n={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(a,t,i,n):this.resourceStore.getResource(a,t,i,n)}getUsedParamsDetails(a={}){let t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=a.replace&&!Be(a.replace),n=i?a.replace:a;if(i&&typeof a.count<"u"&&(n.count=a.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!i){n={...n};for(let o of t)delete n[o]}return n}static hasDefaultValue(a){let t="defaultValue";for(let i in a)if(Object.prototype.hasOwnProperty.call(a,i)&&t===i.substring(0,t.length)&&a[i]!==void 0)return!0;return!1}},w_=class{constructor(a){this.options=a,this.supportedLngs=this.options.supportedLngs||!1,this.logger=qo.create("languageUtils")}getScriptPartFromCode(a){if(a=Sk(a),!a||a.indexOf("-")<0)return null;let t=a.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(a){if(a=Sk(a),!a||a.indexOf("-")<0)return a;let t=a.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(a){if(Be(a)&&a.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(a)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?a.toLowerCase():a)}return this.options.cleanCode||this.options.lowerCaseLng?a.toLowerCase():a}isSupportedCode(a){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(a=this.getLanguagePartFromCode(a)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(a)>-1}getBestMatchFromCodes(a){if(!a)return null;let t;return a.forEach(i=>{if(t)return;let n=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&a.forEach(i=>{if(t)return;let n=this.getScriptPartFromCode(i);if(this.isSupportedCode(n))return t=n;let o=this.getLanguagePartFromCode(i);if(this.isSupportedCode(o))return t=o;t=this.options.supportedLngs.find(r=>{if(r===o)return r;if(!(r.indexOf("-")<0&&o.indexOf("-")<0)&&(r.indexOf("-")>0&&o.indexOf("-")<0&&r.substring(0,r.indexOf("-"))===o||r.indexOf(o)===0&&o.length>1))return r})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(a,t){if(!a)return[];if(typeof a=="function"&&(a=a(t)),Be(a)&&(a=[a]),Array.isArray(a))return a;if(!t)return a.default||[];let i=a[t];return i||(i=a[this.getScriptPartFromCode(t)]),i||(i=a[this.formatLanguageCode(t)]),i||(i=a[this.getLanguagePartFromCode(t)]),i||(i=a.default),i||[]}toResolveHierarchy(a,t){let i=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],a),n=[],o=r=>{r&&(this.isSupportedCode(r)?n.push(r):this.logger.warn(`rejecting language code not found in supportedLngs: ${r}`))};return Be(a)&&(a.indexOf("-")>-1||a.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(a)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(a)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(a))):Be(a)&&o(this.formatLanguageCode(a)),i.forEach(r=>{n.indexOf(r)<0&&o(this.formatLanguageCode(r))}),n}},EV={zero:0,one:1,two:2,few:3,many:4,other:5},LV={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})},bj=class{constructor(a,t={}){this.languageUtils=a,this.options=t,this.logger=qo.create("pluralResolver"),this.pluralRulesCache={}}addRule(a,t){this.rules[a]=t}clearCache(){this.pluralRulesCache={}}getRule(a,t={}){let i=Sk(a==="dev"?"en":a),n=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:i,type:n});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let r;try{r=new Intl.PluralRules(i,{type:n})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),LV;if(!a.match(/-|_/))return LV;let d=this.languageUtils.getLanguagePartFromCode(a);r=this.getRule(d,t)}return this.pluralRulesCache[o]=r,r}needsPlural(a,t={}){let i=this.getRule(a,t);return i||(i=this.getRule("dev",t)),i?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(a,t,i={}){return this.getSuffixes(a,i).map(n=>`${t}${n}`)}getSuffixes(a,t={}){let i=this.getRule(a,t);return i||(i=this.getRule("dev",t)),i?i.resolvedOptions().pluralCategories.sort((n,o)=>EV[n]-EV[o]).map(n=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${n}`):[]}getSuffix(a,t,i={}){let n=this.getRule(a,i);return n?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:(this.logger.warn(`no plural rule found for: ${a}`),this.getSuffix("dev",t,i))}},MV=(e,a,t,i=".",n=!0)=>{let o=jte(e,a,t);return!o&&n&&Be(t)&&(o=kj(e,t,i),o===void 0&&(o=kj(a,t,i))),o},cj=e=>e.replace(/\$/g,"$$$$"),vj=class{constructor(a={}){this.logger=qo.create("interpolator"),this.options=a,this.format=a?.interpolation?.format||(t=>t),this.init(a)}init(a={}){a.interpolation||(a.interpolation={escapeValue:!0});let{escape:t,escapeValue:i,useRawValueToEscape:n,prefix:o,prefixEscaped:r,suffix:s,suffixEscaped:d,formatSeparator:u,unescapeSuffix:p,unescapePrefix:m,nestingPrefix:g,nestingPrefixEscaped:b,nestingSuffix:f,nestingSuffixEscaped:v,nestingOptionsSeparator:_,maxReplaces:h,alwaysFormat:k}=a.interpolation;this.escape=t!==void 0?t:Cte,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=n!==void 0?n:!1,this.prefix=o?vm(o):r||"{{",this.suffix=s?vm(s):d||"}}",this.formatSeparator=u||",",this.unescapePrefix=p?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":p||"",this.nestingPrefix=g?vm(g):b||vm("$t("),this.nestingSuffix=f?vm(f):v||vm(")"),this.nestingOptionsSeparator=_||",",this.maxReplaces=h||1e3,this.alwaysFormat=k!==void 0?k:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let a=(t,i)=>t?.source===i?(t.lastIndex=0,t):new RegExp(i,"g");this.regexp=a(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=a(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=a(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(a,t,i,n){let o,r,s,d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=b=>{if(b.indexOf(this.formatSeparator)<0){let h=MV(t,d,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(h,void 0,i,{...n,...t,interpolationkey:b}):h}let f=b.split(this.formatSeparator),v=f.shift().trim(),_=f.join(this.formatSeparator).trim();return this.format(MV(t,d,v,this.options.keySeparator,this.options.ignoreJSONStructure),_,i,{...n,...t,interpolationkey:v})};this.resetRegExp();let p=n?.missingInterpolationHandler||this.options.missingInterpolationHandler,m=n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>cj(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?cj(this.escape(b)):cj(b)}].forEach(b=>{for(s=0;o=b.regex.exec(a);){let f=o[1].trim();if(r=u(f),r===void 0)if(typeof p=="function"){let _=p(a,o,n);r=Be(_)?_:""}else if(n&&Object.prototype.hasOwnProperty.call(n,f))r="";else if(m){r=o[0];continue}else this.logger.warn(`missed to pass in variable ${f} for interpolating ${a}`),r="";else!Be(r)&&!this.useRawValueToEscape&&(r=jV(r));let v=b.safeValue(r);if(a=a.replace(o[0],v),m?(b.regex.lastIndex+=r.length,b.regex.lastIndex-=o[0].length):b.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),a}nest(a,t,i={}){let n,o,r,s=(d,u)=>{let p=this.nestingOptionsSeparator;if(d.indexOf(p)<0)return d;let m=d.split(new RegExp(`${p}[ ]*{`)),g=`{${m[1]}`;d=m[0],g=this.interpolate(g,r);let b=g.match(/'/g),f=g.match(/"/g);((b?.length??0)%2===0&&!f||f.length%2!==0)&&(g=g.replace(/'/g,'"'));try{r=JSON.parse(g),u&&(r={...u,...r})}catch(v){return this.logger.warn(`failed parsing options string in nesting for key ${d}`,v),`${d}${p}${g}`}return r.defaultValue&&r.defaultValue.indexOf(this.prefix)>-1&&delete r.defaultValue,d};for(;n=this.nestingRegexp.exec(a);){let d=[];r={...i},r=r.replace&&!Be(r.replace)?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;let u=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){let p=n[1].split(this.formatSeparator).map(m=>m.trim());n[1]=p.shift(),d=p,u=!0}if(o=t(s.call(this,n[1].trim(),r),r),o&&n[0]===a&&!Be(o))return o;Be(o)||(o=jV(o)),o||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${a}`),o=""),u&&(o=d.reduce((p,m)=>this.format(p,m,i.lng,{...i,interpolationkey:n[1].trim()}),o.trim())),a=a.replace(n[0],o),this.regexp.lastIndex=0}return a}},Lte=e=>{let a=e.toLowerCase().trim(),t={};if(e.indexOf("(")>-1){let i=e.split("(");a=i[0].toLowerCase().trim();let n=i[1].substring(0,i[1].length-1);a==="currency"&&n.indexOf(":")<0?t.currency||(t.currency=n.trim()):a==="relativetime"&&n.indexOf(":")<0?t.range||(t.range=n.trim()):n.split(";").forEach(r=>{if(r){let[s,...d]=r.split(":"),u=d.join(":").trim().replace(/^'+|'+$/g,""),p=s.trim();t[p]||(t[p]=u),u==="false"&&(t[p]=!1),u==="true"&&(t[p]=!0),isNaN(u)||(t[p]=parseInt(u,10))}})}return{formatName:a,formatOptions:t}},FV=e=>{let a={};return(t,i,n)=>{let o=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(o={...o,[n.interpolationkey]:void 0});let r=i+JSON.stringify(o),s=a[r];return s||(s=e(Sk(i),n),a[r]=s),s(t)}},Mte=e=>(a,t,i)=>e(Sk(t),i)(a),yj=class{constructor(a={}){this.logger=qo.create("formatter"),this.options=a,this.init(a)}init(a,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let i=t.cacheInBuiltFormats?FV:Mte;this.formats={number:i((n,o)=>{let r=new Intl.NumberFormat(n,{...o});return s=>r.format(s)}),currency:i((n,o)=>{let r=new Intl.NumberFormat(n,{...o,style:"currency"});return s=>r.format(s)}),datetime:i((n,o)=>{let r=new Intl.DateTimeFormat(n,{...o});return s=>r.format(s)}),relativetime:i((n,o)=>{let r=new Intl.RelativeTimeFormat(n,{...o});return s=>r.format(s,o.range||"day")}),list:i((n,o)=>{let r=new Intl.ListFormat(n,{...o});return s=>r.format(s)})}}add(a,t){this.formats[a.toLowerCase().trim()]=t}addCached(a,t){this.formats[a.toLowerCase().trim()]=FV(t)}format(a,t,i,n={}){let o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(s=>s.indexOf(")")>-1)){let s=o.findIndex(d=>d.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,s)].join(this.formatSeparator)}return o.reduce((s,d)=>{let{formatName:u,formatOptions:p}=Lte(d);if(this.formats[u]){let m=s;try{let g=n?.formatParams?.[n.interpolationkey]||{},b=g.locale||g.lng||n.locale||n.lng||i;m=this.formats[u](s,b,{...p,...n,...g})}catch(g){this.logger.warn(g)}return m}else this.logger.warn(`there was no format function for ${u}`);return s},a)}},Fte=(e,a)=>{e.pending[a]!==void 0&&(delete e.pending[a],e.pendingCount--)},fj=class extends ym{constructor(a,t,i,n={}){super(),this.backend=a,this.store=t,this.services=i,this.languageUtils=i.languageUtils,this.options=n,this.logger=qo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(i,n.backend,n)}queueLoad(a,t,i,n){let o={},r={},s={},d={};return a.forEach(u=>{let p=!0;t.forEach(m=>{let g=`${u}|${m}`;!i.reload&&this.store.hasResourceBundle(u,m)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?r[g]===void 0&&(r[g]=!0):(this.state[g]=1,p=!1,r[g]===void 0&&(r[g]=!0),o[g]===void 0&&(o[g]=!0),d[m]===void 0&&(d[m]=!0)))}),p||(s[u]=!0)}),(Object.keys(o).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(o),pending:Object.keys(r),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(d)}}loaded(a,t,i){let n=a.split("|"),o=n[0],r=n[1];t&&this.emit("failedLoading",o,r,t),!t&&i&&this.store.addResourceBundle(o,r,i,void 0,void 0,{skipCopy:!0}),this.state[a]=t?-1:2,t&&i&&(this.state[a]=0);let s={};this.queue.forEach(d=>{Ste(d.loaded,[o],r),Fte(d,a),t&&d.errors.push(t),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(u=>{s[u]||(s[u]={});let p=d.loaded[u];p.length&&p.forEach(m=>{s[u][m]===void 0&&(s[u][m]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(d=>!d.done)}read(a,t,i,n=0,o=this.retryTimeout,r){if(!a.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:a,ns:t,fcName:i,tried:n,wait:o,callback:r});return}this.readingCalls++;let s=(u,p)=>{if(this.readingCalls--,this.waitingReads.length>0){let m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(u&&p&&n<this.maxRetries){setTimeout(()=>{this.read.call(this,a,t,i,n+1,o*2,r)},o);return}r(u,p)},d=this.backend[i].bind(this.backend);if(d.length===2){try{let u=d(a,t);u&&typeof u.then=="function"?u.then(p=>s(null,p)).catch(s):s(null,u)}catch(u){s(u)}return}return d(a,t,s)}prepareLoading(a,t,i={},n){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();Be(a)&&(a=this.languageUtils.toResolveHierarchy(a)),Be(t)&&(t=[t]);let o=this.queueLoad(a,t,i,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach(r=>{this.loadOne(r)})}load(a,t,i){this.prepareLoading(a,t,{},i)}reload(a,t,i){this.prepareLoading(a,t,{reload:!0},i)}loadOne(a,t=""){let i=a.split("|"),n=i[0],o=i[1];this.read(n,o,"read",void 0,void 0,(r,s)=>{r&&this.logger.warn(`${t}loading namespace ${o} for language ${n} failed`,r),!r&&s&&this.logger.log(`${t}loaded namespace ${o} for language ${n}`,s),this.loaded(a,r,s)})}saveMissing(a,t,i,n,o,r={},s=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${i}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend?.create){let d={...r,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let p;u.length===5?p=u(a,t,i,n,d):p=u(a,t,i,n),p&&typeof p.then=="function"?p.then(m=>s(null,m)).catch(s):s(null,p)}catch(p){s(p)}else u(a,t,i,n,s,d)}!a||!a[0]||this.store.addResource(a[0],t,i,n)}}},NV=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let a={};if(typeof e[1]=="object"&&(a=e[1]),Be(e[1])&&(a.defaultValue=e[1]),Be(e[2])&&(a.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let t=e[3]||e[2];Object.keys(t).forEach(i=>{a[i]=t[i]})}return a},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),BV=e=>(Be(e.ns)&&(e.ns=[e.ns]),Be(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Be(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),I_=()=>{},Nte=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]=="function"&&(e[t]=e[t].bind(e))})},S_=class e extends ym{constructor(a={},t){if(super(),this.options=BV(a),this.services={},this.logger=qo,this.modules={external:[]},Nte(this),t&&!this.isInitialized&&!a.isClone){if(!this.options.initAsync)return this.init(a,t),this;setTimeout(()=>{this.init(a,t)},0)}}init(a={},t){this.isInitializing=!0,typeof a=="function"&&(t=a,a={}),a.defaultNS==null&&a.ns&&(Be(a.ns)?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));let i=NV();this.options={...i,...this.options,...BV(a)},this.options.interpolation={...i.interpolation,...this.options.interpolation},a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator);let n=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?qo.init(n(this.modules.logger),this.options):qo.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=yj;let p=new w_(this.options);this.store=new P_(this.options.resources,this.options);let m=this.services;m.logger=qo,m.resourceStore=this.store,m.languageUtils=p,m.pluralResolver=new bj(p,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(m.formatter=n(u),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new vj(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new fj(n(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",(g,...b)=>{this.emit(g,...b)}),this.modules.languageDetector&&(m.languageDetector=n(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=n(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new z_(this.services,this.options),this.translator.on("*",(g,...b)=>{this.emit(g,...b)}),this.modules.external.forEach(g=>{g.init&&g.init(this)})}if(this.format=this.options.interpolation.format,t||(t=I_),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=(...p)=>this.store[u](...p)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...p)=>(this.store[u](...p),this)});let s=zk(),d=()=>{let u=(p,m)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(m),t(p,m)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?d():setTimeout(d,0),s}loadResources(a,t=I_){let i=t,n=Be(a)?a:this.language;if(typeof a=="function"&&(i=a),!this.options.resources||this.options.partialBundledLanguages){if(n?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let o=[],r=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};n?r(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>r(d)),this.options.preload?.forEach?.(s=>r(s)),this.services.backendConnector.load(o,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(s)})}else i(null)}reloadResources(a,t,i){let n=zk();return typeof a=="function"&&(i=a,a=void 0),typeof t=="function"&&(i=t,t=void 0),a||(a=this.languages),t||(t=this.options.ns),i||(i=I_),this.services.backendConnector.reload(a,t,o=>{n.resolve(),i(o)}),n}use(a){if(!a)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!a.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return a.type==="backend"&&(this.modules.backend=a),(a.type==="logger"||a.log&&a.warn&&a.error)&&(this.modules.logger=a),a.type==="languageDetector"&&(this.modules.languageDetector=a),a.type==="i18nFormat"&&(this.modules.i18nFormat=a),a.type==="postProcessor"&&ZV.addPostProcessor(a),a.type==="formatter"&&(this.modules.formatter=a),a.type==="3rdParty"&&this.modules.external.push(a),this}setResolvedLanguage(a){if(!(!a||!this.languages)&&!(["cimode","dev"].indexOf(a)>-1)){for(let t=0;t<this.languages.length;t++){let i=this.languages[t];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!this.resolvedLanguage&&this.languages.indexOf(a)<0&&this.store.hasLanguageSomeTranslations(a)&&(this.resolvedLanguage=a,this.languages.unshift(a))}}changeLanguage(a,t){this.isLanguageChangingTo=a;let i=zk();this.emit("languageChanging",a);let n=s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},o=(s,d)=>{d?this.isLanguageChangingTo===a&&(n(d),this.translator.changeLanguage(d),this.isLanguageChangingTo=void 0,this.emit("languageChanged",d),this.logger.log("languageChanged",d)):this.isLanguageChangingTo=void 0,i.resolve((...u)=>this.t(...u)),t&&t(s,(...u)=>this.t(...u))},r=s=>{!a&&!s&&this.services.languageDetector&&(s=[]);let d=Be(s)?s:s&&s[0],u=this.store.hasLanguageSomeTranslations(d)?d:this.services.languageUtils.getBestMatchFromCodes(Be(s)?[s]:s);u&&(this.language||n(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector?.cacheUserLanguage?.(u)),this.loadResources(u,p=>{o(p,u)})};return!a&&this.services.languageDetector&&!this.services.languageDetector.async?r(this.services.languageDetector.detect()):!a&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(r):this.services.languageDetector.detect(r):r(a),i}getFixedT(a,t,i){let n=(o,r,...s)=>{let d;typeof r!="object"?d=this.options.overloadTranslationOptionHandler([o,r].concat(s)):d={...r},d.lng=d.lng||n.lng,d.lngs=d.lngs||n.lngs,d.ns=d.ns||n.ns,d.keyPrefix!==""&&(d.keyPrefix=d.keyPrefix||i||n.keyPrefix);let u=this.options.keySeparator||".",p;return d.keyPrefix&&Array.isArray(o)?p=o.map(m=>`${d.keyPrefix}${u}${m}`):p=d.keyPrefix?`${d.keyPrefix}${u}${o}`:o,this.t(p,d)};return Be(a)?n.lng=a:n.lngs=a,n.ns=t,n.keyPrefix=i,n}t(...a){return this.translator?.translate(...a)}exists(...a){return this.translator?.exists(...a)}setDefaultNamespace(a){this.options.defaultNS=a}hasLoadedNamespace(a,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=t.lng||this.resolvedLanguage||this.languages[0],n=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let r=(s,d)=>{let u=this.services.backendConnector.state[`${s}|${d}`];return u===-1||u===0||u===2};if(t.precheck){let s=t.precheck(this,r);if(s!==void 0)return s}return!!(this.hasResourceBundle(i,a)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||r(i,a)&&(!n||r(o,a)))}loadNamespaces(a,t){let i=zk();return this.options.ns?(Be(a)&&(a=[a]),a.forEach(n=>{this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}),this.loadResources(n=>{i.resolve(),t&&t(n)}),i):(t&&t(),Promise.resolve())}loadLanguages(a,t){let i=zk();Be(a)&&(a=[a]);let n=this.options.preload||[],o=a.filter(r=>n.indexOf(r)<0&&this.services.languageUtils.isSupportedCode(r));return o.length?(this.options.preload=n.concat(o),this.loadResources(r=>{i.resolve(),t&&t(r)}),i):(t&&t(),Promise.resolve())}dir(a){if(a||(a=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!a)return"rtl";let t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services?.languageUtils||new w_(NV());return t.indexOf(i.getLanguagePartFromCode(a))>-1||a.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(a={},t){return new e(a,t)}cloneInstance(a={},t=I_){let i=a.forkResourceStore;i&&delete a.forkResourceStore;let n={...this.options,...a,isClone:!0},o=new e(n);if((a.debug!==void 0||a.prefix!==void 0)&&(o.logger=o.logger.clone(a)),["store","services","language"].forEach(s=>{o[s]=this[s]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},i){let s=Object.keys(this.store.data).reduce((d,u)=>(d[u]={...this.store.data[u]},d[u]=Object.keys(d[u]).reduce((p,m)=>(p[m]={...d[u][m]},p),d[u]),d),{});o.store=new P_(s,n),o.services.resourceStore=o.store}return o.translator=new z_(o.services,n),o.translator.on("*",(s,...d)=>{o.emit(s,...d)}),o.init(n,t),o.translator.options=n,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},xt=S_.createInstance();xt.createInstance=S_.createInstance;var Ora=xt.createInstance,Kra=xt.dir,Hra=xt.init,Yra=xt.loadResources,Qra=xt.reloadResources,$ra=xt.use,Jra=xt.changeLanguage,Xra=xt.getFixedT,j_=xt.t,esa=xt.exists,asa=xt.setDefaultNamespace,tsa=xt.hasLoadedNamespace,isa=xt.loadNamespaces,nsa=xt.loadLanguages;l();var{slice:Bte,forEach:Rte}=[];function Zte(e){return Rte.call(Bte.call(arguments,1),a=>{if(a)for(let t in a)e[t]===void 0&&(e[t]=a[t])}),e}function qte(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(t=>t.test(e))}var qV=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Vte=function(e,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},n=encodeURIComponent(a),o=`${e}=${n}`;if(i.maxAge>0){let r=i.maxAge-0;if(Number.isNaN(r))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(r)}`}if(i.domain){if(!qV.test(i.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${i.domain}`}if(i.path){if(!qV.test(i.path))throw new TypeError("option path is invalid");o+=`; Path=${i.path}`}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+=`; Expires=${i.expires.toUTCString()}`}if(i.httpOnly&&(o+="; HttpOnly"),i.secure&&(o+="; Secure"),i.sameSite)switch(typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i.partitioned&&(o+="; Partitioned"),o},VV={create(e,a,t,i){let n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};t&&(n.expires=new Date,n.expires.setTime(n.expires.getTime()+t*60*1e3)),i&&(n.domain=i),document.cookie=Vte(e,a,n)},read(e){let a=`${e}=`,t=document.cookie.split(";");for(let i=0;i<t.length;i++){let n=t[i];for(;n.charAt(0)===" ";)n=n.substring(1,n.length);if(n.indexOf(a)===0)return n.substring(a.length,n.length)}return null},remove(e,a){this.create(e,"",-1,a)}},Ute={name:"cookie",lookup(e){let{lookupCookie:a}=e;if(a&&typeof document<"u")return VV.read(a)||void 0},cacheUserLanguage(e,a){let{lookupCookie:t,cookieMinutes:i,cookieDomain:n,cookieOptions:o}=a;t&&typeof document<"u"&&VV.create(t,e,i,n,o)}},Ote={name:"querystring",lookup(e){let{lookupQuerystring:a}=e,t;if(typeof window<"u"){let{search:i}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));let o=i.substring(1).split("&");for(let r=0;r<o.length;r++){let s=o[r].indexOf("=");s>0&&o[r].substring(0,s)===a&&(t=o[r].substring(s+1))}}return t}},Kte={name:"hash",lookup(e){let{lookupHash:a,lookupFromHashIndex:t}=e,i;if(typeof window<"u"){let{hash:n}=window.location;if(n&&n.length>2){let o=n.substring(1);if(a){let r=o.split("&");for(let s=0;s<r.length;s++){let d=r[s].indexOf("=");d>0&&r[s].substring(0,d)===a&&(i=r[s].substring(d+1))}}if(i)return i;if(!i&&t>-1){let r=n.match(/\/([a-zA-Z-]*)/g);return Array.isArray(r)?r[typeof t=="number"?t:0]?.replace("/",""):void 0}}}return i}},fm=null,UV=()=>{if(fm!==null)return fm;try{if(fm=typeof window<"u"&&window.localStorage!==null,!fm)return!1;let e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{fm=!1}return fm},Hte={name:"localStorage",lookup(e){let{lookupLocalStorage:a}=e;if(a&&UV())return window.localStorage.getItem(a)||void 0},cacheUserLanguage(e,a){let{lookupLocalStorage:t}=a;t&&UV()&&window.localStorage.setItem(t,e)}},_m=null,OV=()=>{if(_m!==null)return _m;try{if(_m=typeof window<"u"&&window.sessionStorage!==null,!_m)return!1;let e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{_m=!1}return _m},Yte={name:"sessionStorage",lookup(e){let{lookupSessionStorage:a}=e;if(a&&OV())return window.sessionStorage.getItem(a)||void 0},cacheUserLanguage(e,a){let{lookupSessionStorage:t}=a;t&&OV()&&window.sessionStorage.setItem(t,e)}},Qte={name:"navigator",lookup(e){let a=[];if(typeof navigator<"u"){let{languages:t,userLanguage:i,language:n}=navigator;if(t)for(let o=0;o<t.length;o++)a.push(t[o]);i&&a.push(i),n&&a.push(n)}return a.length>0?a:void 0}},$te={name:"htmlTag",lookup(e){let{htmlTag:a}=e,t,i=a||(typeof document<"u"?document.documentElement:null);return i&&typeof i.getAttribute=="function"&&(t=i.getAttribute("lang")),t}},Jte={name:"path",lookup(e){let{lookupFromPathIndex:a}=e;if(typeof window>"u")return;let t=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(t)?t[typeof a=="number"?a:0]?.replace("/",""):void 0}},Xte={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:a}=e,t=typeof a=="number"?a+1:1,i=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i[t]}},KV=!1;try{document.cookie,KV=!0}catch{}var HV=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];KV||HV.splice(1,1);var eie=()=>({order:HV,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}),jk=class{constructor(a){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(a,t)}init(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=a,this.options=Zte(t,this.options||{},eie()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=n=>n.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(Ute),this.addDetector(Ote),this.addDetector(Hte),this.addDetector(Yte),this.addDetector(Qte),this.addDetector($te),this.addDetector(Jte),this.addDetector(Xte),this.addDetector(Kte)}addDetector(a){return this.detectors[a.name]=a,this}detect(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,t=[];return a.forEach(i=>{if(this.detectors[i]){let n=this.detectors[i].lookup(this.options);n&&typeof n=="string"&&(n=[n]),n&&(t=t.concat(n))}}),t=t.filter(i=>i!=null&&!qte(i)).map(i=>this.options.convertDetectedLanguage(i)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?t:t.length>0?t[0]:null}cacheUserLanguage(a){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(a)>-1||t.forEach(i=>{this.detectors[i]&&this.detectors[i].cacheUserLanguage(a,this.options)}))}};jk.type="languageDetector";var YV={crisp:{choices:{resolve:"مارك حل",request:"طلب أخصائي للدعم البشري",enableAi:"إعادة تنشيط الذكاء الاصطناعي"},instructions:{callback:"المشغل سيعود إليك قريباً",unavailable:"وللأسف، لا يوجد مشغلون حاليا."},description:"GPT AI موظف مدرب على بيانات الموقع الشبكي"},chatbubble:{actions:{resolve:"مارك كما حل",mark_as_unresolved:"تحديد كغير محلول",request:"الطلب الإنساني"},lead:{instruction:"لنعلم كيف نتصل بك",email:"البريد الإلكتروني",phoneNumber:"رقم الهاتف",required:"هذا الحقل مطلوب"}},AgentPage:{breadcrumbs:{label:"التنقل"},tabs:{editor:"المحرر",settings:"الإعدادات",install:"تثبيت",preview:"معاينة"},employees:"موظفو الذكاء الاصطناعي 'GPT'",tools:"الأدوات",chat:"دردشة",deploy:"نشر",settings:"الإعدادات",model_not_compatible:"النموذج غير متوافق",enabled_on_bubble:"مفعل فقط في الويدجتات القياسية/فقاعة",running:"قيد التشغيل",synched:"متزامن",http_tool:"أداة HTTP",http_tool_description:"اسمح لموظفك الذكاء الاصطناعي 'GPT' بإجراء مكالمات إلى نقطة نهاية HTTP.",update:"تحديث",upgrade:"قم بالترقية إلى البريميوم لاستخدام هذه الميزة",upgrade_description:"هذه الميزة مقيدة لمستخدمي البريميوم",poweredBy:"مدعوم من قبل",newChat:"دردشة جديدة"},AgentsPage:{breadcrumbs_aiEmployees:"موظفو الذكاء الاصطناعي 'GPT'",title:"إدارة موظف الذكاء الاصطناعي",newAIEmployee:"إنشاء موظف ذكاء اصطناعي جديد",description:"موظفو الذكاء الاصطناعي هم وكلاء يمكن تخصيصهم من خلال نماذج اللغة الكبيرة (LLM) لتلبية احتياجات عملائك. قم بالاتصال بمخزن بيانات وسيتم تدريبه على قاعدة بياناتك الخاصة.",aiEmployeeFormTitle:"إنشاء موظف ذكاء اصطناعي جديد",modelPromptSettings:"الإعدادات المتقدمة",toolsTitle:"الأدوات",toolsDescription:"قم بتكوين أدوات موظف الذكاء الاصطناعي الخاص بك لجعله أكثر ذكاءً.",create:"إنشاء"},AnalyticsPage:{breadcrumbs:{label:"التنقل",analytics:"التحليلات"},alert:{refreshedEveryHour:"يتم تحديث البيانات كل ساعة."},dateRange:{label:"نطاق التواريخ",allTime:"كل الفترات",thisMonth:"هذا الشهر"},aiEmployee:{label:"الموظف الذكي 'GPT'",placeholder:"تصفية حسب الموظف الذكي 'GPT'"},analytics:{totalConversations:"إجمالي المحادثات",likedResponses:"الردود المعجَب بها",dislikedResponses:"الردود غير المعجَب بها",leadsGenerated:"العملاء المحتملون الذين تم إنشاؤهم",mostUsedDatasource:"مصدر البيانات الأكثر استخداماً"},charts:{conversationsOverTime:"عدد المحادثات بمرور الوقت",repliesQualityPerformance:"أداء جودة الردود",conversationsEvolution:"تطور المحادثات",conversationsByCountry:"المحادثات حسب المدينة/الدولة"},toast:{unableToFetchAnalytics:"تعذر الحصول على التحليلات"}},authError:{signIn:"وقع",unableToSignIn:"غير قادر على التوقيع",errorOccurred:"!",linkUsedOrExpired:"وقد استُخدمت وصلة الإشارة بالفعل أو ربما تكون قد انتهت.",errorDuringAuthentication:"حدث خطأ أثناء التوثيق حاولي التوقيع مجدداً"},signInPage:{emailAddress:"عنوان البريد الإلكتروني",signIn:"وقع",signInWithGoogle:"وقع مع جوجل",signInWithGitHub:"وقع مع جيت هوب",orContinueWith:"أو تابع"},verifyRequest:{header_checkYourEmail:"تحقق من بريدك الإلكتروني",description_emailSent:"إشارة في الرابط أرسلت إلى عنوان البريد الإلكتروني الخاص بك."},ChatPage:{placeholders:{chain:"اختر المسار",knowledge:"اختر المعرفة"},options:{qa:"أسئلة وأجوبة",agent:"وكيل"},messages:{datasourceNotFound:"مصدر البيانات غير موجود. هل تم حذفه؟"}},FormPage:{seo:{title:"الاستمارة",description:"هذه صفحة الاستمارة حيث يمكنك التفاعل مع الشكل ورؤية النتائج"}},FormsPage:{templates:{fromScratch:{name:"البدء من الصفر",description:"أنشئ نموذجًا من الصفر. يمكنك إضافة أي حقل تريده وتخصيص التصميم.",fields:{email:{name:"البريد الإلكتروني",placeholder:"أدخل بريدك الإلكتروني"},select:{name:"اختر خيارًا",options:{support:"الدعم",sales:"المبيعات",feedback:"الملاحظات",partnership:"الشراكات",other:"أخرى"},placeholder:"اختر خيارًا"}},startScreen:{title:"العنوان",description:"الوصف"},endScreen:{message:"شكرًا! سنتواصل معك قريبًا.",cta:{label:"شكرًا!",url:"/forms/{formId}"}}},leadForm:{name:"جمع العملاء المتوقعين",description:"اجمع معلومات العملاء المحتملين، بما في ذلك البريد الإلكتروني والهاتف.",overview:"هذا النموذج مصمم لجمع المعلومات الأساسية للعملاء المحتملين، بما في ذلك البريد الإلكتروني والهاتف، لتسهيل التواصل المستقبلي.",fields:{email:{name:"البريد الإلكتروني",placeholder:"أدخل بريدك الإلكتروني"},phone:{name:"الهاتف",placeholder:"أدخل رقم هاتفك"},comment:{name:"تعليق",placeholder:"أدخل أي تعليقات إضافية"},select:{name:"اختر",options:{getMoreClients:"الحصول على المزيد من العملاء",automateTasks:"أتمتة المهام المتكررة",organizeContacts:"تنظيم جهات الاتصال والمحادثات",learnMore:"معرفة المزيد عن المنصة",other:"أخرى"},placeholder:"اختر خيارًا"}},startScreen:{title:"تواصل معنا",description:`نحن هنا للمساعدة!
125
+ `),()=>{document.head.contains(b)&&document.head.removeChild(b)}},[a]),(0,zZ.jsx)(yS,{isPresent:a,childRef:n,sizeRef:o,children:df.cloneElement(e,{ref:n})})}var jZ=({children:e,initial:a,isPresent:t,onExitComplete:i,custom:n,presenceAffectsLayout:o,mode:r,anchorX:s})=>{let d=xp(hX),u=(0,uk.useId)(),p=!0,m=(0,uk.useMemo)(()=>(p=!1,{id:u,initial:a,isPresent:t,custom:n,onExitComplete:g=>{d.set(g,!0);for(let b of d.values())if(!b)return;i&&i()},register:g=>(d.set(g,!1),()=>d.delete(g))}),[t,d,i]);return o&&p&&(m={...m}),(0,uk.useMemo)(()=>{d.forEach((g,b)=>d.set(b,!1))},[t]),SZ.useEffect(()=>{!t&&!d.size&&i&&i()},[t]),r==="popLayout"&&(e=(0,fS.jsx)(wZ,{isPresent:t,anchorX:s,children:e})),(0,fS.jsx)(Ds.Provider,{value:m,children:e})};function hX(){return new Map}l();var Ns=S(R(),1);function uf(e=!0){let a=(0,Ns.useContext)(Ds);if(a===null)return[!0,null];let{isPresent:t,onExitComplete:i,register:n}=a,o=(0,Ns.useId)();(0,Ns.useEffect)(()=>{if(e)return n(o)},[e]);let r=(0,Ns.useCallback)(()=>e&&i&&i(o),[o,i,e]);return!t&&i?[!1,r]:[!0]}l();var pf=S(R(),1),pk=e=>e.key||"";function _S(e){let a=[];return pf.Children.forEach(e,t=>{(0,pf.isValidElement)(t)&&a.push(t)}),a}var Rp=({children:e,custom:a,initial:t=!0,onExitComplete:i,presenceAffectsLayout:n=!0,mode:o="sync",propagate:r=!1,anchorX:s="left"})=>{let[d,u]=uf(r),p=(0,No.useMemo)(()=>_S(e),[e]),m=r&&!d?[]:p.map(pk),g=(0,No.useRef)(!0),b=(0,No.useRef)(p),f=xp(()=>new Map),[v,_]=(0,No.useState)(p),[h,k]=(0,No.useState)(p);Fy(()=>{g.current=!1,b.current=p;for(let A=0;A<h.length;A++){let T=pk(h[A]);m.includes(T)?f.delete(T):f.get(T)!==!0&&f.set(T,!1)}},[h,m.length,m.join("-")]);let y=[];if(p!==v){let A=[...p];for(let T=0;T<h.length;T++){let P=h[T],z=pk(P);m.includes(z)||(A.splice(T,0,P),y.push(P))}return o==="wait"&&y.length&&(A=y),k(_S(A)),_(p),null}let{forceRender:I}=(0,No.useContext)(jp);return(0,mk.jsx)(mk.Fragment,{children:h.map(A=>{let T=pk(A),P=r&&!d?!1:p===h||m.includes(T),z=()=>{if(f.has(T))f.set(T,!0);else return;let D=!0;f.forEach(C=>{C||(D=!1)}),D&&(I?.(),k(b.current),r&&u?.(),i&&i())};return(0,mk.jsx)(jZ,{isPresent:P,initial:!g.current||t?void 0:!1,custom:a,presenceAffectsLayout:n,mode:o,onExitComplete:P?void 0:z,anchorX:s,children:A},T)})})};l();var xZ=S(R(),1),mf=(0,xZ.createContext)({strict:!1});l();l();var CZ={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},wr={};for(let e in CZ)wr[e]={isEnabled:a=>CZ[e].some(t=>!!a[t])};function DZ(e){for(let a in e)wr[a]={...wr[a],...e[a]}}l();l();var bX=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ck(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||bX.has(e)}var GZ=e=>!ck(e);function vX(e){typeof e=="function"&&(GZ=a=>a.startsWith("on")?!ck(a):e(a))}try{vX((hv(),co(VL)).default)}catch{}function WZ(e,a,t){let i={};for(let n in e)n==="values"&&typeof e.values=="object"||(GZ(n)||t===!0&&ck(n)||!a&&!ck(n)||e.draggable&&n.startsWith("onDrag"))&&(i[n]=e[n]);return i}l();function EZ(e){if(typeof Proxy>"u")return e;let a=new Map,t=(...i)=>e(...i);return new Proxy(t,{get:(i,n)=>n==="create"?e:(a.has(n)||a.set(n,e(n)),a.get(n))})}l();l();var vf=S(ne(),1);var qp=S(R(),1);l();var LZ=S(R(),1),Bs=(0,LZ.createContext)({});l();var kf=S(R(),1);l();l();l();function Rs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}l();function Sr(e){return typeof e=="string"||Array.isArray(e)}l();var cf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],gk=["initial",...cf];function fd(e){return Rs(e.animate)||gk.some(a=>Sr(e[a]))}function gf(e){return!!(fd(e)||e.variants)}function MZ(e,a){if(fd(e)){let{initial:t,animate:i}=e;return{initial:t===!1||Sr(t)?t:void 0,animate:Sr(i)?i:void 0}}return e.inherit!==!1?a:{}}function NZ(e){let{initial:a,animate:t}=MZ(e,(0,kf.useContext)(Bs));return(0,kf.useMemo)(()=>({initial:a,animate:t}),[FZ(a),FZ(t)])}function FZ(e){return Array.isArray(e)?e.join(" "):e}l();var BZ=Symbol.for("motionComponentSymbol");l();var RZ=S(R(),1);l();function jr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ZZ(e,a,t){return(0,RZ.useCallback)(i=>{i&&e.onMount&&e.onMount(i),a&&(i?a.mount(i):a.unmount()),t&&(typeof t=="function"?t(i):jr(t)&&(t.current=i))},[a])}l();var ji=S(R(),1);l();l();var Zp=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var yX="framerAppearId",hf="data-"+Zp(yX);l();var qZ=S(R(),1),bf=(0,qZ.createContext)({});function VZ(e,a,t,i,n){let{visualElement:o}=(0,ji.useContext)(Bs),r=(0,ji.useContext)(mf),s=(0,ji.useContext)(Ds),d=(0,ji.useContext)(Bp).reducedMotion,u=(0,ji.useRef)(null);i=i||r.renderer,!u.current&&i&&(u.current=i(e,{visualState:a,parent:o,props:t,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:d}));let p=u.current,m=(0,ji.useContext)(bf);p&&!p.projection&&n&&(p.type==="html"||p.type==="svg")&&fX(u.current,t,n,m);let g=(0,ji.useRef)(!1);(0,ji.useInsertionEffect)(()=>{p&&g.current&&p.update(t,s)});let b=t[hf],f=(0,ji.useRef)(!!b&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return Fy(()=>{p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),vd.render(p.render),f.current&&p.animationState&&p.animationState.animateChanges())}),(0,ji.useEffect)(()=>{p&&(!f.current&&p.animationState&&p.animationState.animateChanges(),f.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}),f.current=!1))}),p}function fX(e,a,t,i){let{layoutId:n,layout:o,drag:r,dragConstraints:s,layoutScroll:d,layoutRoot:u,layoutCrossfade:p}=a;e.projection=new t(e.latestValues,a["data-framer-portal-id"]?void 0:UZ(e.parent)),e.projection.setOptions({layoutId:n,layout:o,alwaysMeasureLayout:!!r||s&&jr(s),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:i,crossfade:p,layoutScroll:d,layoutRoot:u})}function UZ(e){if(e)return e.options.allowProjection!==!1?e.projection:UZ(e.parent)}function OZ({preloadedFeatures:e,createVisualElement:a,useRender:t,useVisualState:i,Component:n}){e&&DZ(e);function o(s,d){let u,p={...(0,qp.useContext)(Bp),...s,layoutId:_X(s)},{isStatic:m}=p,g=NZ(s),b=i(s,m);if(!m&&Cp){AX(p,e);let f=IX(p);u=f.MeasureLayout,g.visualElement=VZ(n,b,p,a,f.ProjectionNode)}return(0,vf.jsxs)(Bs.Provider,{value:g,children:[u&&g.visualElement?(0,vf.jsx)(u,{visualElement:g.visualElement,...p}):null,t(n,s,ZZ(b,g.visualElement,d),b,m,g.visualElement)]})}o.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;let r=(0,qp.forwardRef)(o);return r[BZ]=n,r}function _X({layoutId:e}){let a=(0,qp.useContext)(jp).id;return a&&e!==void 0?a+"-"+e:e}function AX(e,a){let t=(0,qp.useContext)(mf).strict}function IX(e){let{drag:a,layout:t}=wr;if(!a&&!t)return{};let i={...a,...t};return{MeasureLayout:a?.isEnabled(e)||t?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}l();var Kp=S(R(),1);l();var YZ=S(R(),1);l();l();var _d={};function KZ(e){for(let a in e)_d[a]=e[a],dd(a)&&(_d[a].isCSSVariable=!0)}function yf(e,{layout:a,layoutId:t}){return Qi.has(e)||e.startsWith("origin")||(a||t!==void 0)&&(!!_d[e]||e==="opacity")}l();l();var TX={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},PX=ro.length;function HZ(e,a,t){let i="",n=!0;for(let o=0;o<PX;o++){let r=ro[o],s=e[r];if(s===void 0)continue;let d=!0;if(typeof s=="number"?d=s===(r.startsWith("scale")?1:0):d=parseFloat(s)===0,!d||t){let u=lk(s,bd[r]);if(!d){n=!1;let p=TX[r]||r;i+=`${p}(${u}) `}t&&(a[r]=u)}}return i=i.trim(),t?i=t(a,n?"":i):n&&(i="none"),i}function Vp(e,a,t){let{style:i,vars:n,transformOrigin:o}=e,r=!1,s=!1;for(let d in a){let u=a[d];if(Qi.has(d)){r=!0;continue}else if(dd(d)){n[d]=u;continue}else{let p=lk(u,bd[d]);d.startsWith("origin")?(s=!0,o[d]=p):i[d]=p}}if(a.transform||(r||t?i.transform=HZ(a,e.transform,t):i.transform&&(i.transform="none")),s){let{originX:d="50%",originY:u="50%",originZ:p=0}=o;i.transformOrigin=`${d} ${u} ${p}`}}l();var Up=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function AS(e,a,t){for(let i in a)!fa(a[i])&&!yf(i,t)&&(e[i]=a[i])}function zX({transformTemplate:e},a){return(0,YZ.useMemo)(()=>{let t=Up();return Vp(t,a,e),Object.assign({},t.vars,t.style)},[a])}function wX(e,a){let t=e.style||{},i={};return AS(i,t,e),Object.assign(i,zX(e,a)),i}function QZ(e,a){let t={},i=wX(e,a);return e.drag&&e.dragListener!==!1&&(t.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(t.tabIndex=0),t.style=i,t}l();var JZ=S(R(),1);l();l();var SX={offset:"stroke-dashoffset",array:"stroke-dasharray"},jX={offset:"strokeDashoffset",array:"strokeDasharray"};function $Z(e,a,t=1,i=0,n=!0){e.pathLength=1;let o=n?SX:jX;e[o.offset]=Ie.transform(-i);let r=Ie.transform(a),s=Ie.transform(t);e[o.array]=`${r} ${s}`}function ff(e,{attrX:a,attrY:t,attrScale:i,pathLength:n,pathSpacing:o=1,pathOffset:r=0,...s},d,u,p){if(Vp(e,s,u),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:m,style:g}=e;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=p?.transformBox??"fill-box",delete m.transformBox),a!==void 0&&(m.x=a),t!==void 0&&(m.y=t),i!==void 0&&(m.scale=i),n!==void 0&&$Z(m,n,o,r,!1)}l();var _f=()=>({...Up(),attrs:{}});l();var Af=e=>typeof e=="string"&&e.toLowerCase()==="svg";function XZ(e,a,t,i){let n=(0,JZ.useMemo)(()=>{let o=_f();return ff(o,a,Af(i),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[a]);if(e.style){let o={};AS(o,e.style,e),n.style={...o,...n.style}}return n}l();l();var eq=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Op(e){return typeof e!="string"||e.includes("-")?!1:!!(eq.indexOf(e)>-1||/[A-Z]/u.test(e))}function aq(e=!1){return(t,i,n,{latestValues:o},r)=>{let d=(Op(t)?XZ:QZ)(i,o,r,t),u=WZ(i,typeof t=="string",e),p=t!==Kp.Fragment?{...u,...d,ref:n}:{},{children:m}=i,g=(0,Kp.useMemo)(()=>fa(m)?m.get():m,[m]);return(0,Kp.createElement)(t,{...p,children:g})}}l();l();var IS=S(R(),1);l();function tq(e){let a=[{},{}];return e?.values.forEach((t,i)=>{a[0][i]=t.get(),a[1][i]=t.getVelocity()}),a}function Hp(e,a,t,i){if(typeof a=="function"){let[n,o]=tq(i);a=a(t!==void 0?t:e.custom,n,o)}if(typeof a=="string"&&(a=e.variants&&e.variants[a]),typeof a=="function"){let[n,o]=tq(i);a=a(t!==void 0?t:e.custom,n,o)}return a}l();function Yp(e){return fa(e)?e.get():e}function xX({scrapeMotionValuesFromProps:e,createRenderState:a},t,i,n){return{latestValues:CX(t,i,n,e),renderState:a()}}var If=e=>(a,t)=>{let i=(0,IS.useContext)(Bs),n=(0,IS.useContext)(Ds),o=()=>xX(e,a,i,n);return t?o():xp(o)};function CX(e,a,t,i){let n={},o=i(e,{});for(let g in o)n[g]=Yp(o[g]);let{initial:r,animate:s}=e,d=fd(e),u=gf(e);a&&u&&!d&&e.inherit!==!1&&(r===void 0&&(r=a.initial),s===void 0&&(s=a.animate));let p=t?t.initial===!1:!1;p=p||r===!1;let m=p?s:r;if(m&&typeof m!="boolean"&&!Rs(m)){let g=Array.isArray(m)?m:[m];for(let b=0;b<g.length;b++){let f=Hp(e,g[b]);if(f){let{transitionEnd:v,transition:_,...h}=f;for(let k in h){let y=h[k];if(Array.isArray(y)){let I=p?y.length-1:0;y=y[I]}y!==null&&(n[k]=y)}for(let k in v)n[k]=v[k]}}}return n}l();function Qp(e,a,t){let{style:i}=e,n={};for(let o in i)(fa(i[o])||a.style&&fa(a.style[o])||yf(o,e)||t?.getValue(o)?.liveStyle!==void 0)&&(n[o]=i[o]);return n}var iq={useVisualState:If({scrapeMotionValuesFromProps:Qp,createRenderState:Up})};l();l();function Tf(e,a,t){let i=Qp(e,a,t);for(let n in e)if(fa(e[n])||fa(a[n])){let o=ro.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;i[o]=e[n]}return i}var nq={useVisualState:If({scrapeMotionValuesFromProps:Tf,createRenderState:_f})};function oq(e,a){return function(i,{forwardMotionProps:n}={forwardMotionProps:!1}){let r={...Op(i)?nq:iq,preloadedFeatures:e,useRender:aq(n),createVisualElement:a,Component:i};return OZ(r)}}l();l();l();l();l();l();l();function xr(e,a,t){let i=e.getProps();return Hp(i,a,t!==void 0?t:i.custom,e)}l();l();l();var kk=e=>Array.isArray(e);function DX(e,a,t){e.hasValue(a)?e.getValue(a).set(t):e.addValue(a,Tn(t))}function GX(e){return kk(e)?e[e.length-1]||0:e}function rq(e,a){let t=xr(e,a),{transitionEnd:i={},transition:n={},...o}=t||{};o={...o,...i};for(let r in o){let s=GX(o[r]);DX(e,r,s)}}l();l();function sq(e){return!!(fa(e)&&e.add)}function hk(e,a){let t=e.getValue("willChange");if(sq(t))return t.add(a);if(!t&&Xt.WillChange){let i=new Xt.WillChange("auto");e.addValue("willChange",i),i.add(a)}}l();function Pf(e){return e.props[hf]}l();l();var WX=e=>e!==null;function lq(e,{repeat:a,repeatType:t="loop"},i){let n=e.filter(WX),o=a&&t!=="loop"&&a%2===1?0:n.length-1;return!o||i===void 0?n[o]:i}l();var EX={type:"spring",stiffness:500,damping:25,restSpeed:10},LX=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),MX={type:"keyframes",duration:.8},FX={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dq=(e,{keyframes:a})=>a.length>2?MX:Qi.has(e)?e.startsWith("scale")?LX(a[1]):EX:FX;l();function uq({when:e,delay:a,delayChildren:t,staggerChildren:i,staggerDirection:n,repeat:o,repeatType:r,repeatDelay:s,from:d,elapsed:u,...p}){return!!Object.keys(p).length}var $p=(e,a,t,i={},n,o)=>r=>{let s=hd(i,e)||{},d=s.delay||i.delay||0,{elapsed:u=0}=i;u=u-vt(d);let p={keyframes:Array.isArray(t)?t:[null,t],ease:"easeOut",velocity:a.getVelocity(),...s,delay:-u,onUpdate:g=>{a.set(g),s.onUpdate&&s.onUpdate(g)},onComplete:()=>{r(),s.onComplete&&s.onComplete()},name:e,motionValue:a,element:o?void 0:n};uq(s)||Object.assign(p,dq(e,p)),p.duration&&(p.duration=vt(p.duration)),p.repeatDelay&&(p.repeatDelay=vt(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let m=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(p.duration=0,p.delay===0&&(m=!0)),(Xt.instantAnimations||Xt.skipAnimations)&&(m=!0,p.duration=0,p.delay=0),p.allowFlatten=!s.type&&!s.ease,m&&!o&&a.get()!==void 0){let g=lq(p.keyframes,s);if(g!==void 0){Ke.update(()=>{p.onUpdate(g),p.onComplete()});return}}return s.isSync?new Tr(p):new tk(p)};function NX({protectedKeys:e,needsAnimating:a},t){let i=e.hasOwnProperty(t)&&a[t]!==!0;return a[t]=!1,i}function zf(e,a,{delay:t=0,transitionOverride:i,type:n}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:r,...s}=a;i&&(o=i);let d=[],u=n&&e.animationState&&e.animationState.getState()[n];for(let p in s){let m=e.getValue(p,e.latestValues[p]??null),g=s[p];if(g===void 0||u&&NX(u,p))continue;let b={delay:t,...hd(o||{},p)},f=m.get();if(f!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===f&&!b.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){let h=Pf(e);if(h){let k=window.MotionHandoffAnimation(h,p,Ke);k!==null&&(b.startTime=k,v=!0)}}hk(e,p),m.start($p(p,m,g,e.shouldReduceMotion&&ik.has(p)?{type:!1}:b,e,v));let _=m.animation;_&&d.push(_)}return r&&Promise.all(d).then(()=>{Ke.update(()=>{r&&rq(e,r)})}),d}l();function wf(e,a,t={}){let i=xr(e,a,t.type==="exit"?e.presenceContext?.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=i||{};t.transitionOverride&&(n=t.transitionOverride);let o=i?()=>Promise.all(zf(e,i,t)):()=>Promise.resolve(),r=e.variantChildren&&e.variantChildren.size?(d=0)=>{let{delayChildren:u=0,staggerChildren:p,staggerDirection:m}=n;return BX(e,a,u+d,p,m,t)}:()=>Promise.resolve(),{when:s}=n;if(s){let[d,u]=s==="beforeChildren"?[o,r]:[r,o];return d().then(()=>u())}else return Promise.all([o(),r(t.delay)])}function BX(e,a,t=0,i=0,n=1,o){let r=[],s=(e.variantChildren.size-1)*i,d=n===1?(u=0)=>u*i:(u=0)=>s-u*i;return Array.from(e.variantChildren).sort(RX).forEach((u,p)=>{u.notify("AnimationStart",a),r.push(wf(u,a,{...o,delay:t+d(p)}).then(()=>u.notify("AnimationComplete",a)))}),Promise.all(r)}function RX(e,a){return e.sortNodePosition(a)}function pq(e,a,t={}){e.notify("AnimationStart",a);let i;if(Array.isArray(a)){let n=a.map(o=>wf(e,o,t));i=Promise.all(n)}else if(typeof a=="string")i=wf(e,a,t);else{let n=typeof a=="function"?xr(e,a,t.custom):a;i=Promise.all(zf(e,n,t))}return i.then(()=>{e.notify("AnimationComplete",a)})}l();function TS(e,a){if(!Array.isArray(a))return!1;let t=a.length;if(t!==e.length)return!1;for(let i=0;i<t;i++)if(a[i]!==e[i])return!1;return!0}l();var ZX=gk.length;function PS(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent?PS(e.parent)||{}:{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let a={};for(let t=0;t<ZX;t++){let i=gk[t],n=e.props[i];(Sr(n)||n===!1)&&(a[i]=n)}return a}var qX=[...cf].reverse(),VX=cf.length;function UX(e){return a=>Promise.all(a.map(({animation:t,options:i})=>pq(e,t,i)))}function cq(e){let a=UX(e),t=mq(),i=!0,n=d=>(u,p)=>{let m=xr(e,p,d==="exit"?e.presenceContext?.custom:void 0);if(m){let{transition:g,transitionEnd:b,...f}=m;u={...u,...f,...b}}return u};function o(d){a=d(e)}function r(d){let{props:u}=e,p=PS(e.parent)||{},m=[],g=new Set,b={},f=1/0;for(let _=0;_<VX;_++){let h=qX[_],k=t[h],y=u[h]!==void 0?u[h]:p[h],I=Sr(y),A=h===d?k.isActive:null;A===!1&&(f=_);let T=y===p[h]&&y!==u[h]&&I;if(T&&i&&e.manuallyAnimateOnMount&&(T=!1),k.protectedKeys={...b},!k.isActive&&A===null||!y&&!k.prevProp||Rs(y)||typeof y=="boolean")continue;let P=OX(k.prevProp,y),z=P||h===d&&k.isActive&&!T&&I||_>f&&I,D=!1,C=Array.isArray(y)?y:[y],W=C.reduce(n(h),{});A===!1&&(W={});let{prevResolvedValues:F={}}=k,N={...F,...W},q=E=>{z=!0,g.has(E)&&(D=!0,g.delete(E)),k.needsAnimating[E]=!0;let V=e.getValue(E);V&&(V.liveStyle=!1)};for(let E in N){let V=W[E],pe=F[E];if(b.hasOwnProperty(E))continue;let we=!1;kk(V)&&kk(pe)?we=!TS(V,pe):we=V!==pe,we?V!=null?q(E):g.add(E):V!==void 0&&g.has(E)?q(E):k.protectedKeys[E]=!0}k.prevProp=y,k.prevResolvedValues=W,k.isActive&&(b={...b,...W}),i&&e.blockInitialAnimation&&(z=!1),z&&(!(T&&P)||D)&&m.push(...C.map(E=>({animation:E,options:{type:h}})))}if(g.size){let _={};if(typeof u.initial!="boolean"){let h=xr(e,Array.isArray(u.initial)?u.initial[0]:u.initial);h&&h.transition&&(_.transition=h.transition)}g.forEach(h=>{let k=e.getBaseTarget(h),y=e.getValue(h);y&&(y.liveStyle=!0),_[h]=k??null}),m.push({animation:_})}let v=!!m.length;return i&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(v=!1),i=!1,v?a(m):Promise.resolve()}function s(d,u){if(t[d].isActive===u)return Promise.resolve();e.variantChildren?.forEach(m=>m.animationState?.setActive(d,u)),t[d].isActive=u;let p=r(d);for(let m in t)t[m].protectedKeys={};return p}return{animateChanges:r,setActive:s,setAnimateFunction:o,getState:()=>t,reset:()=>{t=mq(),i=!0}}}function OX(e,a){return typeof a=="string"?a!==e:Array.isArray(a)?!TS(a,e):!1}function Ad(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mq(){return{animate:Ad(!0),whileInView:Ad(),whileHover:Ad(),whileTap:Ad(),whileDrag:Ad(),whileFocus:Ad(),exit:Ad()}}l();var St=class{constructor(a){this.isMounted=!1,this.node=a}update(){}};var Sf=class extends St{constructor(a){super(a),a.animationState||(a.animationState=cq(a))}updateAnimationControlsSubscription(){let{animate:a}=this.node.getProps();Rs(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:a}=this.node.getProps(),{animate:t}=this.node.prevProps||{};a!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};l();var KX=0,jf=class extends St{constructor(){super(...arguments),this.id=KX++}update(){if(!this.node.presenceContext)return;let{isPresent:a,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===i)return;let n=this.node.animationState.setActive("exit",!a);t&&!a&&n.then(()=>{t(this.id)})}mount(){let{register:a,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),a&&(this.unmount=a(this.id))}unmount(){}};var gq={animation:{Feature:Sf},exit:{Feature:jf}};l();l();l();l();function Cr(e,a,t,i={passive:!0}){return e.addEventListener(a,t,i),()=>e.removeEventListener(a,t)}l();l();function Dr(e){return{point:{x:e.pageX,y:e.pageY}}}var kq=e=>a=>yd(a)&&e(a,Dr(a));function Zs(e,a,t,i){return Cr(e,a,kq(t),i)}l();function xf({top:e,left:a,right:t,bottom:i}){return{x:{min:a,max:t},y:{min:e,max:i}}}function hq({x:e,y:a}){return{top:a.min,right:e.max,bottom:a.max,left:e.min}}function bq(e,a){if(!a)return e;let t=a({x:e.left,y:e.top}),i=a({x:e.right,y:e.bottom});return{top:t.y,left:t.x,bottom:i.y,right:i.x}}l();var _q=1e-4,HX=1-_q,YX=1+_q,Aq=.01,QX=0-Aq,$X=0+Aq;function yt(e){return e.max-e.min}function Iq(e,a,t){return Math.abs(e-a)<=t}function vq(e,a,t,i=.5){e.origin=i,e.originPoint=ea(a.min,a.max,e.origin),e.scale=yt(t)/yt(a),e.translate=ea(t.min,t.max,e.origin)-e.originPoint,(e.scale>=HX&&e.scale<=YX||isNaN(e.scale))&&(e.scale=1),(e.translate>=QX&&e.translate<=$X||isNaN(e.translate))&&(e.translate=0)}function Jp(e,a,t,i){vq(e.x,a.x,t.x,i?i.originX:void 0),vq(e.y,a.y,t.y,i?i.originY:void 0)}function yq(e,a,t){e.min=t.min+a.min,e.max=e.min+yt(a)}function Tq(e,a,t){yq(e.x,a.x,t.x),yq(e.y,a.y,t.y)}function fq(e,a,t){e.min=a.min-t.min,e.max=e.min+yt(a)}function Xp(e,a,t){fq(e.x,a.x,t.x),fq(e.y,a.y,t.y)}l();var Pq=()=>({translate:0,scale:1,origin:0,originPoint:0}),Id=()=>({x:Pq(),y:Pq()}),zq=()=>({min:0,max:0}),xa=()=>({x:zq(),y:zq()});l();function xi(e){return[e("x"),e("y")]}l();l();l();function zS(e){return e===void 0||e===1}function Cf({scale:e,scaleX:a,scaleY:t}){return!zS(e)||!zS(a)||!zS(t)}function Gr(e){return Cf(e)||wS(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function wS(e){return wq(e.x)||wq(e.y)}function wq(e){return e&&e!=="0%"}function bk(e,a,t){let i=e-t,n=a*i;return t+n}function Sq(e,a,t,i,n){return n!==void 0&&(e=bk(e,n,i)),bk(e,t,i)+a}function SS(e,a=0,t=1,i,n){e.min=Sq(e.min,a,t,i,n),e.max=Sq(e.max,a,t,i,n)}function jS(e,{x:a,y:t}){SS(e.x,a.translate,a.scale,a.originPoint),SS(e.y,t.translate,t.scale,t.originPoint)}var jq=.999999999999,xq=1.0000000000001;function Dq(e,a,t,i=!1){let n=t.length;if(!n)return;a.x=a.y=1;let o,r;for(let s=0;s<n;s++){o=t[s],r=o.projectionDelta;let{visualElement:d}=o.options;d&&d.props.style&&d.props.style.display==="contents"||(i&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Td(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(a.x*=r.x.scale,a.y*=r.y.scale,jS(e,r)),i&&Gr(o.latestValues)&&Td(e,o.latestValues))}a.x<xq&&a.x>jq&&(a.x=1),a.y<xq&&a.y>jq&&(a.y=1)}function qs(e,a){e.min=e.min+a,e.max=e.max+a}function Cq(e,a,t,i,n=.5){let o=ea(e.min,e.max,n);SS(e,a,t,o,i)}function Td(e,a){Cq(e.x,a.x,a.scaleX,a.scale,a.originX),Cq(e.y,a.y,a.scaleY,a.scale,a.originY)}function xS(e,a){return xf(bq(e.getBoundingClientRect(),a))}function Gq(e,a,t){let i=xS(e,t),{scroll:n}=a;return n&&(qs(i.x,n.offset.x),qs(i.y,n.offset.y)),i}l();var Df=({current:e})=>e?e.ownerDocument.defaultView:null;l();l();var Wq=(e,a)=>Math.abs(e-a);function Eq(e,a){let t=Wq(e.x,a.x),i=Wq(e.y,a.y);return Math.sqrt(t**2+i**2)}var em=class{constructor(a,t,{transformPagePoint:i,contextWindow:n,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let m=DS(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,b=Eq(m.offset,{x:0,y:0})>=3;if(!g&&!b)return;let{point:f}=m,{timestamp:v}=Xa;this.history.push({...f,timestamp:v});let{onStart:_,onMove:h}=this.handlers;g||(_&&_(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=CS(g,this.transformPagePoint),Ke.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();let{onEnd:b,onSessionEnd:f,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let _=DS(m.type==="pointercancel"?this.lastMoveEventInfo:CS(g,this.transformPagePoint),this.history);this.startEvent&&b&&b(m,_),f&&f(m,_)},!yd(a))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=i,this.contextWindow=n||window;let r=Dr(a),s=CS(r,this.transformPagePoint),{point:d}=s,{timestamp:u}=Xa;this.history=[{...d,timestamp:u}];let{onSessionStart:p}=t;p&&p(a,DS(s,this.history)),this.removeListeners=io(Zs(this.contextWindow,"pointermove",this.handlePointerMove),Zs(this.contextWindow,"pointerup",this.handlePointerUp),Zs(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(a){this.handlers=a}end(){this.removeListeners&&this.removeListeners(),Si(this.updatePoint)}};function CS(e,a){return a?{point:a(e.point)}:e}function Lq(e,a){return{x:e.x-a.x,y:e.y-a.y}}function DS({point:e},a){return{point:e,delta:Lq(e,Mq(a)),offset:Lq(e,JX(a)),velocity:XX(a,.1)}}function JX(e){return e[0]}function Mq(e){return e[e.length-1]}function XX(e,a){if(e.length<2)return{x:0,y:0};let t=e.length-1,i=null,n=Mq(e);for(;t>=0&&(i=e[t],!(n.timestamp-i.timestamp>vt(a)));)t--;if(!i)return{x:0,y:0};let o=Bt(n.timestamp-i.timestamp);if(o===0)return{x:0,y:0};let r={x:(n.x-i.x)/o,y:(n.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}l();function Zq(e,{min:a,max:t},i){return a!==void 0&&e<a?e=i?ea(a,e,i.min):Math.max(e,a):t!==void 0&&e>t&&(e=i?ea(t,e,i.max):Math.min(e,t)),e}function Fq(e,a,t){return{min:a!==void 0?e.min+a:void 0,max:t!==void 0?e.max+t-(e.max-e.min):void 0}}function qq(e,{top:a,left:t,bottom:i,right:n}){return{x:Fq(e.x,t,n),y:Fq(e.y,a,i)}}function Nq(e,a){let t=a.min-e.min,i=a.max-e.max;return a.max-a.min<e.max-e.min&&([t,i]=[i,t]),{min:t,max:i}}function Vq(e,a){return{x:Nq(e.x,a.x),y:Nq(e.y,a.y)}}function Uq(e,a){let t=.5,i=yt(e),n=yt(a);return n>i?t=Lo(a.min,a.max-i,e.min):i>n&&(t=Lo(e.min,e.max-n,a.min)),wt(0,1,t)}function Oq(e,a){let t={};return a.min!==void 0&&(t.min=a.min-e.min),a.max!==void 0&&(t.max=a.max-e.min),t}var Gf=.35;function Kq(e=Gf){return e===!1?e=0:e===!0&&(e=Gf),{x:Bq(e,"left","right"),y:Bq(e,"top","bottom")}}function Bq(e,a,t){return{min:Rq(e,a),max:Rq(e,t)}}function Rq(e,a){return typeof e=="number"?e:e[a]||0}var eee=new WeakMap,Ef=class{constructor(a){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=xa(),this.visualElement=a}start(a,{snapToCursor:t=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;let n=p=>{let{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Dr(p).point)},o=(p,m)=>{let{drag:g,dragPropagation:b,onDragStart:f}=this.getProps();if(g&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=mS(g),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),xi(_=>{let h=this.getAxisMotionValue(_).get()||0;if(ei.test(h)){let{projection:k}=this.visualElement;if(k&&k.layout){let y=k.layout.layoutBox[_];y&&(h=yt(y)*(parseFloat(h)/100))}}this.originPoint[_]=h}),f&&Ke.postRender(()=>f(p,m)),hk(this.visualElement,"transform");let{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},r=(p,m)=>{let{dragPropagation:g,dragDirectionLock:b,onDirectionLock:f,onDrag:v}=this.getProps();if(!g&&!this.openDragLock)return;let{offset:_}=m;if(b&&this.currentDirection===null){this.currentDirection=aee(_),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",m.point,_),this.updateAxis("y",m.point,_),this.visualElement.render(),v&&v(p,m)},s=(p,m)=>this.stop(p,m),d=()=>xi(p=>this.getAnimationState(p)==="paused"&&this.getAxisMotionValue(p).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new em(a,{onSessionStart:n,onStart:o,onMove:r,onSessionEnd:s,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Df(this.visualElement)})}stop(a,t){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:n}=t;this.startAnimation(n);let{onDragEnd:o}=this.getProps();o&&Ke.postRender(()=>o(a,t))}cancel(){this.isDragging=!1;let{projection:a,animationState:t}=this.visualElement;a&&(a.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(a,t,i){let{drag:n}=this.getProps();if(!i||!Wf(a,n,this.currentDirection))return;let o=this.getAxisMotionValue(a),r=this.originPoint[a]+i[a];this.constraints&&this.constraints[a]&&(r=Zq(r,this.constraints[a],this.elastic[a])),o.set(r)}resolveConstraints(){let{dragConstraints:a,dragElastic:t}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;a&&jr(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&i?this.constraints=qq(i.layoutBox,a):this.constraints=!1,this.elastic=Kq(t),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&xi(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Oq(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){let{dragConstraints:a,onMeasureDragConstraints:t}=this.getProps();if(!a||!jr(a))return!1;let i=a.current;In(i!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let o=Gq(i,n.root,this.visualElement.getTransformPagePoint()),r=Vq(n.layout.layoutBox,o);if(t){let s=t(hq(r));this.hasMutatedConstraints=!!s,s&&(r=xf(s))}return r}startAnimation(a){let{drag:t,dragMomentum:i,dragElastic:n,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:s}=this.getProps(),d=this.constraints||{},u=xi(p=>{if(!Wf(p,t,this.currentDirection))return;let m=d&&d[p]||{};r&&(m={min:0,max:0});let g=n?200:1e6,b=n?40:1e7,f={type:"inertia",velocity:i?a[p]:0,bounceStiffness:g,bounceDamping:b,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(p,f)});return Promise.all(u).then(s)}startAxisValueAnimation(a,t){let i=this.getAxisMotionValue(a);return hk(this.visualElement,a),i.start($p(a,i,0,t,this.visualElement,!1))}stopAnimation(){xi(a=>this.getAxisMotionValue(a).stop())}pauseAnimation(){xi(a=>this.getAxisMotionValue(a).animation?.pause())}getAnimationState(a){return this.getAxisMotionValue(a).animation?.state}getAxisMotionValue(a){let t=`_drag${a.toUpperCase()}`,i=this.visualElement.getProps(),n=i[t];return n||this.visualElement.getValue(a,(i.initial?i.initial[a]:void 0)||0)}snapToCursor(a){xi(t=>{let{drag:i}=this.getProps();if(!Wf(t,i,this.currentDirection))return;let{projection:n}=this.visualElement,o=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:s}=n.layout.layoutBox[t];o.set(a[t]-ea(r,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:a,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!jr(t)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};xi(r=>{let s=this.getAxisMotionValue(r);if(s&&this.constraints!==!1){let d=s.get();n[r]=Uq({min:d,max:d},this.constraints[r])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),xi(r=>{if(!Wf(r,a,null))return;let s=this.getAxisMotionValue(r),{min:d,max:u}=this.constraints[r];s.set(ea(d,u,n[r]))})}addListeners(){if(!this.visualElement.current)return;eee.set(this.visualElement,this);let a=this.visualElement.current,t=Zs(a,"pointerdown",d=>{let{drag:u,dragListener:p=!0}=this.getProps();u&&p&&this.start(d)}),i=()=>{let{dragConstraints:d}=this.getProps();jr(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,o=n.addEventListener("measure",i);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),Ke.read(i);let r=Cr(window,"resize",()=>this.scalePositionWithinConstraints()),s=n.addEventListener("didUpdate",({delta:d,hasLayoutChanged:u})=>{this.isDragging&&u&&(xi(p=>{let m=this.getAxisMotionValue(p);m&&(this.originPoint[p]+=d[p].translate,m.set(m.get()+d[p].translate))}),this.visualElement.render())});return()=>{r(),t(),o(),s&&s()}}getProps(){let a=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:o=!1,dragElastic:r=Gf,dragMomentum:s=!0}=a;return{...a,drag:t,dragDirectionLock:i,dragPropagation:n,dragConstraints:o,dragElastic:r,dragMomentum:s}}};function Wf(e,a,t){return(a===!0||a===e)&&(t===null||t===e)}function aee(e,a=10){let t=null;return Math.abs(e.y)>a?t="y":Math.abs(e.x)>a&&(t="x"),t}var Lf=class extends St{constructor(a){super(a),this.removeGroupControls=Ka,this.removeListeners=Ka,this.controls=new Ef(a)}mount(){let{dragControls:a}=this.node.getProps();a&&(this.removeGroupControls=a.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ka}unmount(){this.removeGroupControls(),this.removeListeners()}};l();var Hq=e=>(a,t)=>{e&&Ke.postRender(()=>e(a,t))},Mf=class extends St{constructor(){super(...arguments),this.removePointerDownListener=Ka}onPointerDown(a){this.session=new em(a,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Df(this.node)})}createPanHandlers(){let{onPanSessionStart:a,onPanStart:t,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:Hq(a),onStart:Hq(t),onMove:i,onEnd:(o,r)=>{delete this.session,n&&Ke.postRender(()=>n(o,r))}}}mount(){this.removePointerDownListener=Zs(this.node.current,"pointerdown",a=>this.onPointerDown(a))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};l();var $q=S(ne(),1);var vk=S(R(),1);l();var am={hasAnimatedSinceResize:!0,hasEverUpdated:!1};l();function Yq(e,a){return a.max===a.min?0:e/(a.max-a.min)*100}var tm={correct:(e,a)=>{if(!a.target)return e;if(typeof e=="string")if(Ie.test(e))e=parseFloat(e);else return e;let t=Yq(e,a.target.x),i=Yq(e,a.target.y);return`${t}% ${i}%`}};l();var Qq={correct:(e,{treeScale:a,projectionDelta:t})=>{let i=e,n=ai.parse(e);if(n.length>5)return i;let o=ai.createTransformer(e),r=typeof n[0]!="number"?1:0,s=t.x.scale*a.x,d=t.y.scale*a.y;n[0+r]/=s,n[1+r]/=d;let u=ea(s,d,.5);return typeof n[2+r]=="number"&&(n[2+r]/=u),typeof n[3+r]=="number"&&(n[3+r]/=u),o(n)}};var GS=class extends vk.Component{componentDidMount(){let{visualElement:a,layoutGroup:t,switchLayoutGroup:i,layoutId:n}=this.props,{projection:o}=a;KZ(tee),o&&(t.group&&t.group.add(o),i&&i.register&&n&&i.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),am.hasEverUpdated=!0}getSnapshotBeforeUpdate(a){let{layoutDependency:t,visualElement:i,drag:n,isPresent:o}=this.props,{projection:r}=i;return r&&(r.isPresent=o,n||a.layoutDependency!==t||t===void 0||a.isPresent!==o?r.willUpdate():this.safeToRemove(),a.isPresent!==o&&(o?r.promote():r.relegate()||Ke.postRender(()=>{let s=r.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:a}=this.props.visualElement;a&&(a.root.didUpdate(),vd.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:a,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:n}=a;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:a}=this.props;a&&a()}render(){return null}};function Ff(e){let[a,t]=uf(),i=(0,vk.useContext)(jp);return(0,$q.jsx)(GS,{...e,layoutGroup:i,switchLayoutGroup:(0,vk.useContext)(bf),isPresent:a,safeToRemove:t})}var tee={borderRadius:{...tm,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tm,borderTopRightRadius:tm,borderBottomLeftRadius:tm,borderBottomRightRadius:tm,boxShadow:Qq};l();l();l();function Jq(e,a,t){let i=fa(e)?e:Tn(e);return i.start($p("",i,a,t)),i.animation}l();l();var Xq=(e,a)=>e.depth-a.depth;var Nf=class{constructor(){this.children=[],this.isDirty=!1}add(a){rd(this.children,a),this.isDirty=!0}remove(a){sd(this.children,a),this.isDirty=!0}forEach(a){this.isDirty&&this.children.sort(Xq),this.isDirty=!1,this.children.forEach(a)}};l();function e1(e,a){let t=et.now(),i=({timestamp:n})=>{let o=n-t;o>=a&&(Si(i),e(o-a))};return Ke.setup(i,!0),()=>Si(i)}l();var n1=["TopLeft","TopRight","BottomLeft","BottomRight"],iee=n1.length,a1=e=>typeof e=="string"?parseFloat(e):e,t1=e=>typeof e=="number"||Ie.test(e);function o1(e,a,t,i,n,o){n?(e.opacity=ea(0,t.opacity??1,nee(i)),e.opacityExit=ea(a.opacity??1,0,oee(i))):o&&(e.opacity=ea(a.opacity??1,t.opacity??1,i));for(let r=0;r<iee;r++){let s=`border${n1[r]}Radius`,d=i1(a,s),u=i1(t,s);if(d===void 0&&u===void 0)continue;d||(d=0),u||(u=0),d===0||u===0||t1(d)===t1(u)?(e[s]=Math.max(ea(a1(d),a1(u),i),0),(ei.test(u)||ei.test(d))&&(e[s]+="%")):e[s]=u}(a.rotate||t.rotate)&&(e.rotate=ea(a.rotate||0,t.rotate||0,i))}function i1(e,a){return e[a]!==void 0?e[a]:e.borderRadius}var nee=r1(0,.5,Vg),oee=r1(.5,.95,Ka);function r1(e,a,t){return i=>i<e?0:i>a?1:t(Lo(e,a,i))}l();function s1(e,a){e.min=a.min,e.max=a.max}function $i(e,a){s1(e.x,a.x),s1(e.y,a.y)}function WS(e,a){e.translate=a.translate,e.scale=a.scale,e.originPoint=a.originPoint,e.origin=a.origin}l();function l1(e,a,t,i,n){return e-=a,e=bk(e,1/t,i),n!==void 0&&(e=bk(e,1/n,i)),e}function ree(e,a=0,t=1,i=.5,n,o=e,r=e){if(ei.test(a)&&(a=parseFloat(a),a=ea(r.min,r.max,a/100)-r.min),typeof a!="number")return;let s=ea(o.min,o.max,i);e===o&&(s-=a),e.min=l1(e.min,a,t,s,n),e.max=l1(e.max,a,t,s,n)}function d1(e,a,[t,i,n],o,r){ree(e,a[t],a[i],a[n],a.scale,o,r)}var see=["x","scaleX","originX"],lee=["y","scaleY","originY"];function ES(e,a,t,i){d1(e.x,a,see,t?t.x:void 0,i?i.x:void 0),d1(e.y,a,lee,t?t.y:void 0,i?i.y:void 0)}l();function u1(e){return e.translate===0&&e.scale===1}function LS(e){return u1(e.x)&&u1(e.y)}function p1(e,a){return e.min===a.min&&e.max===a.max}function c1(e,a){return p1(e.x,a.x)&&p1(e.y,a.y)}function m1(e,a){return Math.round(e.min)===Math.round(a.min)&&Math.round(e.max)===Math.round(a.max)}function MS(e,a){return m1(e.x,a.x)&&m1(e.y,a.y)}function FS(e){return yt(e.x)/yt(e.y)}function NS(e,a){return e.translate===a.translate&&e.scale===a.scale&&e.originPoint===a.originPoint}l();var Bf=class{constructor(){this.members=[]}add(a){rd(this.members,a),a.scheduleRender()}remove(a){if(sd(this.members,a),a===this.prevLead&&(this.prevLead=void 0),a===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(a){let t=this.members.findIndex(n=>a===n);if(t===0)return!1;let i;for(let n=t;n>=0;n--){let o=this.members[n];if(o.isPresent!==!1){i=o;break}}return i?(this.promote(i),!0):!1}promote(a,t){let i=this.lead;if(a!==i&&(this.prevLead=i,this.lead=a,a.show(),i)){i.instance&&i.scheduleRender(),a.scheduleRender(),a.resumeFrom=i,t&&(a.resumeFrom.preserveOpacity=!0),i.snapshot&&(a.snapshot=i.snapshot,a.snapshot.latestValues=i.animationValues||i.latestValues),a.root&&a.root.isUpdating&&(a.isLayoutDirty=!0);let{crossfade:n}=a.options;n===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(a=>{let{options:t,resumingFrom:i}=a;t.onExitComplete&&t.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(a=>{a.instance&&a.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};l();function g1(e,a,t){let i="",n=e.x.translate/a.x,o=e.y.translate/a.y,r=t?.z||0;if((n||o||r)&&(i=`translate3d(${n}px, ${o}px, ${r}px) `),(a.x!==1||a.y!==1)&&(i+=`scale(${1/a.x}, ${1/a.y}) `),t){let{transformPerspective:u,rotate:p,rotateX:m,rotateY:g,skewX:b,skewY:f}=t;u&&(i=`perspective(${u}px) ${i}`),p&&(i+=`rotate(${p}deg) `),m&&(i+=`rotateX(${m}deg) `),g&&(i+=`rotateY(${g}deg) `),b&&(i+=`skewX(${b}deg) `),f&&(i+=`skewY(${f}deg) `)}let s=e.x.scale*a.x,d=e.y.scale*a.y;return(s!==1||d!==1)&&(i+=`scale(${s}, ${d})`),i||"none"}var Pd={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},BS=["","X","Y","Z"],dee={visibility:"hidden"},uee=1e3,pee=0;function RS(e,a,t,i){let{latestValues:n}=a;n[e]&&(t[e]=n[e],a.setStaticValue(e,0),i&&(i[e]=0))}function A1(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:a}=e.options;if(!a)return;let t=Pf(a);if(window.MotionHasOptimisedAnimation(t,"transform")){let{layout:n,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(t,"transform",Ke,!(n||o))}let{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&A1(i)}function Rf({attachResizeListener:e,defaultParent:a,measureScroll:t,checkIsScrollRoot:i,resetTransform:n}){return class{constructor(r={},s=a?.()){this.id=pee++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,wi.value&&(Pd.nodes=Pd.calculatedTargetDeltas=Pd.calculatedProjections=0),this.nodes.forEach(gee),this.nodes.forEach(yee),this.nodes.forEach(fee),this.nodes.forEach(kee),wi.addProjectionMetrics&&wi.addProjectionMetrics(Pd)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new Nf)}addEventListener(r,s){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Ar),this.eventHandlers.get(r).add(s)}notifyListeners(r,...s){let d=this.eventHandlers.get(r);d&&d.notify(...s)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=dk(r)&&!bS(r),this.instance=r;let{layoutId:s,layout:d,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(d||s)&&(this.isLayoutDirty=!0),e){let p,m=()=>this.root.updateBlockedByResize=!1;e(r,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=e1(m,250),am.hasAnimatedSinceResize&&(am.hasAnimatedSinceResize=!1,this.nodes.forEach(h1))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&u&&(s||d)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:m,hasRelativeLayoutChanged:g,layout:b})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let f=this.options.transition||u.getDefaultTransition()||Pee,{onLayoutAnimationStart:v,onLayoutAnimationComplete:_}=u.getProps(),h=!this.targetLayout||!MS(this.targetLayout,b),k=!m&&g;if(this.options.layoutRoot||this.resumeFrom||k||m&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let y={...hd(f,"layout"),onPlay:v,onComplete:_};(u.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(p,k)}else m||h1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=b})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Si(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(_ee),this.animationId++)}getTransformTemplate(){let{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&A1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){let m=this.path[p];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}let{layoutId:s,layout:d}=this.options;if(s===void 0&&!d)return;let u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(k1);return}this.isUpdating||this.nodes.forEach(bee),this.isUpdating=!1,this.nodes.forEach(vee),this.nodes.forEach(mee),this.nodes.forEach(cee),this.clearAllSnapshots();let s=et.now();Xa.delta=wt(0,1e3/60,s-Xa.timestamp),Xa.timestamp=s,Xa.isProcessing=!0,Yg.update.process(Xa),Yg.preRender.process(Xa),Yg.render.process(Xa),Xa.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,vd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(hee),this.sharedNodes.forEach(Aee)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ke.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ke.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!yt(this.snapshot.measuredBox.x)&&!yt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d<this.path.length;d++)this.path[d].updateScroll();let r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=xa(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(s=!1),s&&this.instance){let d=i(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:d,offset:t(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!n)return;let r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!LS(this.projectionDelta),d=this.getTransformTemplate(),u=d?d(this.latestValues,""):void 0,p=u!==this.prevTransformTemplateValue;r&&this.instance&&(s||Gr(this.latestValues)||p)&&(n(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){let s=this.measurePageBox(),d=this.removeElementScroll(s);return r&&(d=this.removeTransform(d)),zee(d),{animationId:this.root.animationId,measuredBox:s,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:r}=this.options;if(!r)return xa();let s=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(wee))){let{scroll:u}=this.root;u&&(qs(s.x,u.offset.x),qs(s.y,u.offset.y))}return s}removeElementScroll(r){let s=xa();if($i(s,r),this.scroll?.wasRoot)return s;for(let d=0;d<this.path.length;d++){let u=this.path[d],{scroll:p,options:m}=u;u!==this.root&&p&&m.layoutScroll&&(p.wasRoot&&$i(s,r),qs(s.x,p.offset.x),qs(s.y,p.offset.y))}return s}applyTransform(r,s=!1){let d=xa();$i(d,r);for(let u=0;u<this.path.length;u++){let p=this.path[u];!s&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Td(d,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),Gr(p.latestValues)&&Td(d,p.latestValues)}return Gr(this.latestValues)&&Td(d,this.latestValues),d}removeTransform(r){let s=xa();$i(s,r);for(let d=0;d<this.path.length;d++){let u=this.path[d];if(!u.instance||!Gr(u.latestValues))continue;Cf(u.latestValues)&&u.updateSnapshot();let p=xa(),m=u.measurePageBox();$i(p,m),ES(s,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,p)}return Gr(this.latestValues)&&ES(s,this.latestValues),s}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Xa.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);let d=!!this.resumingFrom||this!==s;if(!(r||d&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:p,layoutId:m}=this.options;if(!(!this.layout||!(p||m))){if(this.resolvedRelativeTargetAt=Xa.timestamp,!this.targetDelta&&!this.relativeTarget){let g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xa(),this.relativeTargetOrigin=xa(),Xp(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),$i(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=xa(),this.targetWithTransforms=xa()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Tq(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):$i(this.target,this.layout.layoutBox),jS(this.target,this.targetDelta)):$i(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xa(),this.relativeTargetOrigin=xa(),Xp(this.relativeTargetOrigin,this.target,g.target),$i(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}wi.value&&Pd.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Cf(this.parent.latestValues)||wS(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let r=this.getLead(),s=!!this.resumingFrom||this!==r,d=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(d=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===Xa.timestamp&&(d=!1),d)return;let{layout:u,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||p))return;$i(this.layoutCorrected,this.layout.layoutBox);let m=this.treeScale.x,g=this.treeScale.y;Dq(this.layoutCorrected,this.treeScale,this.path,s),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=xa());let{target:b}=r;if(!b){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(WS(this.prevProjectionDelta.x,this.projectionDelta.x),WS(this.prevProjectionDelta.y,this.projectionDelta.y)),Jp(this.projectionDelta,this.layoutCorrected,b,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!NS(this.projectionDelta.x,this.prevProjectionDelta.x)||!NS(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b)),wi.value&&Pd.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){let s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Id(),this.projectionDelta=Id(),this.projectionDeltaWithTransform=Id()}setAnimationOrigin(r,s=!1){let d=this.snapshot,u=d?d.latestValues:{},p={...this.latestValues},m=Id();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;let g=xa(),b=d?d.source:void 0,f=this.layout?this.layout.source:void 0,v=b!==f,_=this.getStack(),h=!_||_.members.length<=1,k=!!(v&&!h&&this.options.crossfade===!0&&!this.path.some(Tee));this.animationProgress=0;let y;this.mixTargetDelta=I=>{let A=I/1e3;b1(m.x,r.x,A),b1(m.y,r.y,A),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Xp(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Iee(this.relativeTarget,this.relativeTargetOrigin,g,A),y&&c1(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=xa()),$i(y,this.relativeTarget)),v&&(this.animationValues=p,o1(p,u,this.latestValues,A,k,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Si(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ke.update(()=>{am.hasAnimatedSinceResize=!0,no.layout++,this.motionValue||(this.motionValue=Tn(0)),this.currentAnimation=Jq(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),r.onUpdate&&r.onUpdate(s)},onStop:()=>{no.layout--},onComplete:()=>{no.layout--,r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(uee),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let r=this.getLead(),{targetWithTransforms:s,target:d,layout:u,latestValues:p}=r;if(!(!s||!d||!u)){if(this!==r&&this.layout&&u&&I1(this.options.animationType,this.layout.layoutBox,u.layoutBox)){d=this.target||xa();let m=yt(this.layout.layoutBox.x);d.x.min=r.target.x.min,d.x.max=d.x.min+m;let g=yt(this.layout.layoutBox.y);d.y.min=r.target.y.min,d.y.max=d.y.min+g}$i(s,d),Td(s,p),Jp(this.projectionDeltaWithTransform,this.layoutCorrected,s,p)}}registerSharedNode(r,s){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Bf),this.sharedNodes.get(r).add(s);let u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){let r=this.getStack();return r?r.lead===this:!0}getLead(){let{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:s,preserveFollowOpacity:d}={}){let u=this.getStack();u&&u.promote(this,d),r&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){let r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){let{visualElement:r}=this.options;if(!r)return;let s=!1,{latestValues:d}=r;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(s=!0),!s)return;let u={};d.z&&RS("z",r,u,this.animationValues);for(let p=0;p<BS.length;p++)RS(`rotate${BS[p]}`,r,u,this.animationValues),RS(`skew${BS[p]}`,r,u,this.animationValues);r.render();for(let p in u)r.setStaticValue(p,u[p]),this.animationValues&&(this.animationValues[p]=u[p]);r.scheduleRender()}getProjectionStyles(r){if(!this.instance||this.isSVG)return;if(!this.isVisible)return dee;let s={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Yp(r?.pointerEvents)||"",s.transform=d?d(this.latestValues,""):"none",s;let u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){let b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Yp(r?.pointerEvents)||""),this.hasProjected&&!Gr(this.latestValues)&&(b.transform=d?d({},""):"none",this.hasProjected=!1),b}let p=u.animationValues||u.latestValues;this.applyTransformsToTarget(),s.transform=g1(this.projectionDeltaWithTransform,this.treeScale,p),d&&(s.transform=d(p,s.transform));let{x:m,y:g}=this.projectionDelta;s.transformOrigin=`${m.origin*100}% ${g.origin*100}% 0`,u.animationValues?s.opacity=u===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:s.opacity=u===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(let b in _d){if(p[b]===void 0)continue;let{correct:f,applyTo:v,isCSSVariable:_}=_d[b],h=s.transform==="none"?p[b]:f(p[b],u);if(v){let k=v.length;for(let y=0;y<k;y++)s[v[y]]=h}else _?this.options.visualElement.renderState.vars[b]=h:s[b]=h}return this.options.layoutId&&(s.pointerEvents=u===this?Yp(r?.pointerEvents)||"":"none"),s}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(k1),this.root.sharedNodes.clear()}}}function mee(e){e.updateLayout()}function cee(e){let a=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:i}=e.layout,{animationType:n}=e.options,o=a.source!==e.layout.source;n==="size"?xi(p=>{let m=o?a.measuredBox[p]:a.layoutBox[p],g=yt(m);m.min=t[p].min,m.max=m.min+g}):I1(n,a.layoutBox,t)&&xi(p=>{let m=o?a.measuredBox[p]:a.layoutBox[p],g=yt(t[p]);m.max=m.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+g)});let r=Id();Jp(r,t,a.layoutBox);let s=Id();o?Jp(s,e.applyTransform(i,!0),a.measuredBox):Jp(s,t,a.layoutBox);let d=!LS(r),u=!1;if(!e.resumeFrom){let p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){let{snapshot:m,layout:g}=p;if(m&&g){let b=xa();Xp(b,a.layoutBox,m.layoutBox);let f=xa();Xp(f,t,g.layoutBox),MS(b,f)||(u=!0),p.options.layoutRoot&&(e.relativeTarget=f,e.relativeTargetOrigin=b,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:a,delta:s,layoutDelta:r,hasLayoutChanged:d,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function gee(e){wi.value&&Pd.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function kee(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function hee(e){e.clearSnapshot()}function k1(e){e.clearMeasurements()}function bee(e){e.isLayoutDirty=!1}function vee(e){let{visualElement:a}=e.options;a&&a.getProps().onBeforeLayoutMeasure&&a.notify("BeforeLayoutMeasure"),e.resetTransform()}function h1(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function yee(e){e.resolveTargetDelta()}function fee(e){e.calcProjection()}function _ee(e){e.resetSkewAndRotation()}function Aee(e){e.removeLeadSnapshot()}function b1(e,a,t){e.translate=ea(a.translate,0,t),e.scale=ea(a.scale,1,t),e.origin=a.origin,e.originPoint=a.originPoint}function v1(e,a,t,i){e.min=ea(a.min,t.min,i),e.max=ea(a.max,t.max,i)}function Iee(e,a,t,i){v1(e.x,a.x,t.x,i),v1(e.y,a.y,t.y,i)}function Tee(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Pee={duration:.45,ease:[.4,0,.1,1]},y1=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),f1=y1("applewebkit/")&&!y1("chrome/")?Math.round:Ka;function _1(e){e.min=f1(e.min),e.max=f1(e.max)}function zee(e){_1(e.x),_1(e.y)}function I1(e,a,t){return e==="position"||e==="preserve-aspect"&&!Iq(FS(a),FS(t),.2)}function wee(e){return e!==e.root&&e.scroll?.wasRoot}l();var T1=Rf({attachResizeListener:(e,a)=>Cr(e,"resize",a),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var ZS={current:void 0},Zf=Rf({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ZS.current){let e=new T1({});e.mount(window),e.setOptions({layoutScroll:!0}),ZS.current=e}return ZS.current},resetTransform:(e,a)=>{e.style.transform=a!==void 0?a:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var P1={pan:{Feature:Mf},drag:{Feature:Lf,ProjectionNode:Zf,MeasureLayout:Ff}};l();l();function z1(e,a,t){let{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t==="Start");let n="onHover"+t,o=i[n];o&&Ke.postRender(()=>o(a,Dr(a)))}var qf=class extends St{mount(){let{current:a}=this.node;a&&(this.unmount=cS(a,(t,i)=>(z1(this.node,i,"Start"),n=>z1(this.node,n,"End"))))}unmount(){}};l();var Vf=class extends St{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch{a=!0}!a||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=io(Cr(this.node.current,"focus",()=>this.onFocus()),Cr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};l();function w1(e,a,t){let{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",t==="Start");let n="onTap"+(t==="End"?"":t),o=i[n];o&&Ke.postRender(()=>o(a,Dr(a)))}var Uf=class extends St{mount(){let{current:a}=this.node;a&&(this.unmount=hS(a,(t,i)=>(w1(this.node,i,"Start"),(n,{success:o})=>w1(this.node,n,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};l();l();var VS=new WeakMap,qS=new WeakMap,See=e=>{let a=VS.get(e.target);a&&a(e)},jee=e=>{e.forEach(See)};function xee({root:e,...a}){let t=e||document;qS.has(t)||qS.set(t,{});let i=qS.get(t),n=JSON.stringify(a);return i[n]||(i[n]=new IntersectionObserver(jee,{root:e,...a})),i[n]}function S1(e,a,t){let i=xee(a);return VS.set(e,t),i.observe(e),()=>{VS.delete(e),i.unobserve(e)}}var Cee={some:0,all:1},Of=class extends St{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:a={}}=this.node.getProps(),{root:t,margin:i,amount:n="some",once:o}=a,r={root:t?t.current:void 0,rootMargin:i,threshold:typeof n=="number"?n:Cee[n]},s=d=>{let{isIntersecting:u}=d;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);let{onViewportEnter:p,onViewportLeave:m}=this.node.getProps(),g=u?p:m;g&&g(d)};return S1(this.node.current,r,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:a,prevProps:t}=this.node;["amount","margin","root"].some(Dee(a,t))&&this.startObserver()}unmount(){}};function Dee({viewport:e={}},{viewport:a={}}={}){return t=>e[t]!==a[t]}var j1={inView:{Feature:Of},tap:{Feature:Uf},focus:{Feature:Vf},hover:{Feature:qf}};l();var x1={layout:{ProjectionNode:Zf,MeasureLayout:Ff}};l();var L1=S(R(),1);l();l();l();l();l();var yk={current:null},Kf={current:!1};function C1(){if(Kf.current=!0,!!Cp)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),a=()=>yk.current=e.matches;e.addListener(a),a()}else yk.current=!1}l();var D1=new WeakMap;l();function G1(e,a,t){for(let i in a){let n=a[i],o=t[i];if(fa(n))e.addValue(i,n);else if(fa(o))e.addValue(i,Tn(n,{owner:e}));else if(o!==n)if(e.hasValue(i)){let r=e.getValue(i);r.liveStyle===!0?r.jump(n):r.hasAnimated||r.set(n)}else{let r=e.getStaticValue(i);e.addValue(i,Tn(r!==void 0?r:n,{owner:e}))}}for(let i in t)a[i]===void 0&&e.removeValue(i);return a}var W1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Hf=class{scrapeMotionValuesFromProps(a,t,i){return{}}constructor({parent:a,props:t,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:o,visualState:r},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Pr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let g=et.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Ke.render(this.render,!1,!0))};let{latestValues:d,renderState:u}=r;this.latestValues=d,this.baseTarget={...d},this.initialValues=t.initial?{...d}:{},this.renderState=u,this.parent=a,this.props=t,this.presenceContext=i,this.depth=a?a.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.blockInitialAnimation=!!o,this.isControllingVariants=fd(t),this.isVariantNode=gf(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(a&&a.current);let{willChange:p,...m}=this.scrapeMotionValuesFromProps(t,{},this);for(let g in m){let b=m[g];d[g]!==void 0&&fa(b)&&b.set(d[g],!1)}}mount(a){this.current=a,D1.set(a,this),this.projection&&!this.projection.instance&&this.projection.mount(a),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,i)=>this.bindToMotionValue(i,t)),Kf.current||C1(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:yk.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Si(this.notifyUpdate),Si(this.render),this.valueSubscriptions.forEach(a=>a()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let a in this.events)this.events[a].clear();for(let a in this.features){let t=this.features[a];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(a,t){this.valueSubscriptions.has(a)&&this.valueSubscriptions.get(a)();let i=Qi.has(a);i&&this.onBindTransform&&this.onBindTransform();let n=t.on("change",s=>{this.latestValues[a]=s,this.props.onUpdate&&Ke.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender),r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,a,t)),this.valueSubscriptions.set(a,()=>{n(),o(),r&&r(),t.owner&&t.stop()})}sortNodePosition(a){return!this.current||!this.sortInstanceNodePosition||this.type!==a.type?0:this.sortInstanceNodePosition(this.current,a.current)}updateFeatures(){let a="animation";for(a in wr){let t=wr[a];if(!t)continue;let{isEnabled:i,Feature:n}=t;if(!this.features[a]&&n&&i(this.props)&&(this.features[a]=new n(this)),this.features[a]){let o=this.features[a];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):xa()}getStaticValue(a){return this.latestValues[a]}setStaticValue(a,t){this.latestValues[a]=t}update(a,t){(a.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=a,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let i=0;i<W1.length;i++){let n=W1[i];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let o="on"+n,r=a[o];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=G1(this,this.scrapeMotionValuesFromProps(a,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(a){return this.props.variants?this.props.variants[a]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(a){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(a),()=>t.variantChildren.delete(a)}addValue(a,t){let i=this.values.get(a);t!==i&&(i&&this.removeValue(a),this.bindToMotionValue(a,t),this.values.set(a,t),this.latestValues[a]=t.get())}removeValue(a){this.values.delete(a);let t=this.valueSubscriptions.get(a);t&&(t(),this.valueSubscriptions.delete(a)),delete this.latestValues[a],this.removeValueFromRenderState(a,this.renderState)}hasValue(a){return this.values.has(a)}getValue(a,t){if(this.props.values&&this.props.values[a])return this.props.values[a];let i=this.values.get(a);return i===void 0&&t!==void 0&&(i=Tn(t===null?void 0:t,{owner:this}),this.addValue(a,i)),i}readValue(a,t){let i=this.latestValues[a]!==void 0||!this.current?this.latestValues[a]:this.getBaseTargetFromProps(this.props,a)??this.readValueFromInstance(this.current,a,this.options);return i!=null&&(typeof i=="string"&&(Mg(i)||Ng(i))?i=parseFloat(i):!vS(i)&&ai.test(t)&&(i=rk(a,t)),this.setBaseTarget(a,fa(i)?i.get():i)),fa(i)?i.get():i}setBaseTarget(a,t){this.baseTarget[a]=t}getBaseTarget(a){let{initial:t}=this.props,i;if(typeof t=="string"||typeof t=="object"){let o=Hp(this.props,t,this.presenceContext?.custom);o&&(i=o[a])}if(t&&i!==void 0)return i;let n=this.getBaseTargetFromProps(this.props,a);return n!==void 0&&!fa(n)?n:this.initialValues[a]!==void 0&&i===void 0?void 0:this.baseTarget[a]}on(a,t){return this.events[a]||(this.events[a]=new Ar),this.events[a].add(t)}notify(a,...t){this.events[a]&&this.events[a].notify(...t)}};var im=class extends Hf{constructor(){super(...arguments),this.KeyframeResolver=sk}sortInstanceNodePosition(a,t){return a.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(a,t){return a.style?a.style[t]:void 0}removeValueFromRenderState(a,{vars:t,style:i}){delete t[a],delete i[a]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:a}=this.props;fa(a)&&(this.childSubscription=a.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}};l();function Yf(e,{style:a,vars:t},i,n){Object.assign(e.style,a,n&&n.getProjectionStyles(i));for(let o in t)e.style.setProperty(o,t[o])}function Gee(e){return window.getComputedStyle(e)}var Qf=class extends im{constructor(){super(...arguments),this.type="html",this.renderInstance=Yf}readValueFromInstance(a,t){if(Qi.has(t))return this.projection?.isProjecting?ek(t):Jw(a,t);{let i=Gee(a),n=(dd(t)?i.getPropertyValue(t):i[t])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(a,{transformPagePoint:t}){return xS(a,t)}build(a,t,i){Vp(a,t,i.transformTemplate)}scrapeMotionValuesFromProps(a,t,i){return Qp(a,t,i)}};l();l();var $f=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);l();function E1(e,a,t,i){Yf(e,a,void 0,i);for(let n in a.attrs)e.setAttribute($f.has(n)?n:Zp(n),a.attrs[n])}var Jf=class extends im{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=xa}getBaseTargetFromProps(a,t){return a[t]}readValueFromInstance(a,t){if(Qi.has(t)){let i=ok(t);return i&&i.default||0}return t=$f.has(t)?t:Zp(t),a.getAttribute(t)}scrapeMotionValuesFromProps(a,t,i){return Tf(a,t,i)}build(a,t,i){ff(a,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(a,t,i,n){E1(a,t,i,n)}mount(a){this.isSVGTag=Af(a.tagName),super.mount(a)}};var M1=(e,a)=>Op(e)?new Jf(a):new Qf(a,{allowProjection:e!==L1.Fragment});var F1=oq({...gq,...j1,...P1,...x1},M1);var nm=EZ(F1);var En=S(R());l();var jt=S(R(),1),oV=S(Z1(),1);l();l();var Rt=S(R(),1);var Vs={};Wi(Vs,{ERROR_REVALIDATE_EVENT:()=>qee,FOCUS_EVENT:()=>q1,MUTATE_EVENT:()=>U1,RECONNECT_EVENT:()=>V1});l();var q1=0,V1=1,U1=2,qee=3;l();var O1=Object.prototype.hasOwnProperty;function Xf(e,a){var t,i;if(e===a)return!0;if(e&&a&&(t=e.constructor)===a.constructor){if(t===Date)return e.getTime()===a.getTime();if(t===RegExp)return e.toString()===a.toString();if(t===Array){if((i=e.length)===a.length)for(;i--&&Xf(e[i],a[i]););return i===-1}if(!t||typeof e=="object"){i=0;for(t in e)if(O1.call(e,t)&&++i&&!O1.call(a,t)||!(t in a)||!Xf(e[t],a[t]))return!1;return Object.keys(a).length===i}}return e!==e&&a!==a}var so=new WeakMap,Wr=()=>{},Ha=Wr(),rm=Object,ta=e=>e===Ha,Ji=e=>typeof e=="function",hi=(e,a)=>({...e,...a}),o_=e=>Ji(e.then),OS={},e_={},XS="undefined",sm=typeof window!=XS,t_=typeof document!=XS,H1=sm&&"Deno"in window,Y1=()=>sm&&typeof window.requestAnimationFrame!=XS,r_=(e,a)=>{let t=so.get(e);return[()=>!ta(a)&&e.get(a)||OS,i=>{if(!ta(a)){let n=e.get(a);a in e_||(e_[a]=n),t[5](a,hi(n,i),n||OS)}},t[6],()=>!ta(a)&&a in e_?e_[a]:!ta(a)&&e.get(a)||OS]},YS=!0,Vee=()=>YS,[QS,$S]=sm&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Wr,Wr],Uee=()=>{let e=t_&&document.visibilityState;return ta(e)||e!=="hidden"},Oee=e=>(t_&&document.addEventListener("visibilitychange",e),QS("focus",e),()=>{t_&&document.removeEventListener("visibilitychange",e),$S("focus",e)}),Kee=e=>{let a=()=>{YS=!0,e()},t=()=>{YS=!1};return QS("online",a),QS("offline",t),()=>{$S("online",a),$S("offline",t)}},Q1={isOnline:Vee,isVisible:Uee},$1={initFocus:Oee,initReconnect:Kee},lm=!Rt.default.useId,zd=!sm||H1,ej=e=>Y1()?window.requestAnimationFrame(e):setTimeout(e,1),Er=zd?Rt.useEffect:Rt.useLayoutEffect,KS=typeof navigator<"u"&&navigator.connection,JS=!zd&&KS&&(["slow-2g","2g"].includes(KS.effectiveType)||KS.saveData),a_=new WeakMap,HS=(e,a)=>rm.prototype.toString.call(e)===`[object ${a}]`,Hee=0,i_=e=>{let a=typeof e,t=HS(e,"Date"),i=HS(e,"RegExp"),n=HS(e,"Object"),o,r;if(rm(e)===e&&!t&&!i){if(o=a_.get(e),o)return o;if(o=++Hee+"~",a_.set(e,o),Array.isArray(e)){for(o="@",r=0;r<e.length;r++)o+=i_(e[r])+",";a_.set(e,o)}if(n){o="#";let s=rm.keys(e).sort();for(;!ta(r=s.pop());)ta(e[r])||(o+=r+":"+i_(e[r])+",");a_.set(e,o)}}else o=t?e.toJSON():a=="symbol"?e.toString():a=="string"?JSON.stringify(e):""+e;return o},wd=e=>{if(Ji(e))try{e=e()}catch{e=""}let a=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?i_(e):"",[e,a]},Yee=0,Us=()=>++Yee;async function s_(...e){let[a,t,i,n]=e,o=hi({populateCache:!0,throwOnError:!0},typeof n=="boolean"?{revalidate:n}:n||{}),r=o.populateCache,s=o.rollbackOnError,d=o.optimisticData,u=g=>typeof s=="function"?s(g):s!==!1,p=o.throwOnError;if(Ji(t)){let g=t,b=[],f=a.keys();for(let v of f)!/^\$(inf|sub)\$/.test(v)&&g(a.get(v)._k)&&b.push(v);return Promise.all(b.map(m))}return m(t);async function m(g){let[b]=wd(g);if(!b)return;let[f,v]=r_(a,b),[_,h,k,y]=so.get(a),I=()=>{let N=_[b];return(Ji(o.revalidate)?o.revalidate(f().data,g):o.revalidate!==!1)&&(delete k[b],delete y[b],N&&N[0])?N[0](2).then(()=>f().data):f().data};if(e.length<3)return I();let A=i,T,P=Us();h[b]=[P,0];let z=!ta(d),D=f(),C=D.data,W=D._c,F=ta(W)?C:W;if(z&&(d=Ji(d)?d(F,C):d,v({data:d,_c:F})),Ji(A))try{A=A(F)}catch(N){T=N}if(A&&o_(A))if(A=await A.catch(N=>{T=N}),P!==h[b][0]){if(T)throw T;return A}else T&&z&&u(T)&&(r=!0,v({data:F,_c:Ha}));if(r&&!T)if(Ji(r)){let N=r(A,F);v({data:N,error:Ha,_c:Ha})}else v({data:A,error:Ha,_c:Ha});if(h[b][1]=Us(),Promise.resolve(I()).then(()=>{v({_c:Ha})}),T){if(p)throw T;return}return A}}var K1=(e,a)=>{for(let t in e)e[t][0]&&e[t][0](a)},aj=(e,a)=>{if(!so.has(e)){let t=hi($1,a),i=Object.create(null),n=s_.bind(Ha,e),o=Wr,r=Object.create(null),s=(p,m)=>{let g=r[p]||[];return r[p]=g,g.push(m),()=>g.splice(g.indexOf(m),1)},d=(p,m,g)=>{e.set(p,m);let b=r[p];if(b)for(let f of b)f(m,g)},u=()=>{if(!so.has(e)&&(so.set(e,[i,Object.create(null),Object.create(null),Object.create(null),n,d,s]),!zd)){let p=t.initFocus(setTimeout.bind(Ha,K1.bind(Ha,i,0))),m=t.initReconnect(setTimeout.bind(Ha,K1.bind(Ha,i,1)));o=()=>{p&&p(),m&&m(),so.delete(e)}}};return u(),[e,n,u,o]}return[e,so.get(e)[4]]},Qee=(e,a,t,i,n)=>{let o=t.errorRetryCount,r=n.retryCount,s=~~((Math.random()+.5)*(1<<(r<8?r:8)))*t.errorRetryInterval;!ta(o)&&r>o||setTimeout(i,s,n)},J1=Xf,[l_,tj]=aj(new Map),d_=hi({onLoadingSlow:Wr,onSuccess:Wr,onError:Wr,onErrorRetry:Qee,onDiscarded:Wr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:JS?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:JS?5e3:3e3,compare:J1,isPaused:()=>!1,cache:l_,mutate:tj,fallback:{}},Q1),ij=(e,a)=>{let t=hi(e,a);if(a){let{use:i,fallback:n}=e,{use:o,fallback:r}=a;i&&o&&(t.use=i.concat(o)),n&&r&&(t.fallback=hi(n,r))}return t},n_=(0,Rt.createContext)({}),nj=e=>{let{value:a}=e,t=(0,Rt.useContext)(n_),i=Ji(a),n=(0,Rt.useMemo)(()=>i?a(t):a,[i,t,a]),o=(0,Rt.useMemo)(()=>i?n:ij(t,n),[i,t,n]),r=n&&n.provider,s=(0,Rt.useRef)(Ha);r&&!s.current&&(s.current=aj(r(o.cache||l_),n));let d=s.current;return d&&(o.cache=d[0],o.mutate=d[1]),Er(()=>{if(d)return d[2]&&d[2](),d[3]},[]),(0,Rt.createElement)(n_.Provider,hi(e,{value:o}))};l();var X1="$inf$";var u_=S(R(),1);var eV=sm&&window.__SWR_DEVTOOLS_USE__,$ee=eV?window.__SWR_DEVTOOLS_USE__:[],Jee=()=>{eV&&(window.__SWR_DEVTOOLS_REACT__=u_.default)},aV=e=>Ji(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],p_=()=>hi(d_,(0,u_.useContext)(n_));var Xee=e=>(a,t,i)=>e(a,t&&((...o)=>{let[r]=wd(a),[,,,s]=so.get(l_);if(r.startsWith(X1))return t(...o);let d=s[r];return ta(d)?t(...o):(delete s[r],d)}),i),eae=$ee.concat(Xee),tV=e=>function(...t){let i=p_(),[n,o,r]=aV(t),s=ij(i,r),d=e,{use:u}=s,p=(u||[]).concat(eae);for(let m=p.length;m--;)d=p[m](d);return d(n,o||s.fetcher||null,s)},iV=(e,a,t)=>{let i=a[e]||(a[e]=[]);return i.push(t),()=>{let n=i.indexOf(t);n>=0&&(i[n]=i[i.length-1],i.pop())}},nV=(e,a)=>(...t)=>{let[i,n,o]=aV(t),r=(o.use||[]).concat(a);return e(i,n,{...o,use:r})};Jee();var aae=()=>{},Dna=aae();var oj=jt.default.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(a=>{e.status="fulfilled",e.value=a},a=>{e.status="rejected",e.reason=a}),e}}),rj={dedupe:!0},tae=(e,a,t)=>{let{cache:i,compare:n,suspense:o,fallbackData:r,revalidateOnMount:s,revalidateIfStale:d,refreshInterval:u,refreshWhenHidden:p,refreshWhenOffline:m,keepPreviousData:g}=t,[b,f,v,_]=so.get(i),[h,k]=wd(e),y=(0,jt.useRef)(!1),I=(0,jt.useRef)(!1),A=(0,jt.useRef)(h),T=(0,jt.useRef)(a),P=(0,jt.useRef)(t),z=()=>P.current,D=()=>z().isVisible()&&z().isOnline(),[C,W,F,N]=r_(i,h),q=(0,jt.useRef)({}).current,Z=ta(r)?ta(t.fallback)?Ha:t.fallback[h]:r,x=(_e,Te)=>{for(let Ge in q){let He=Ge;if(He==="data"){if(!n(_e[He],Te[He])&&(!ta(_e[He])||!n(X,Te[He])))return!1}else if(Te[He]!==_e[He])return!1}return!0},E=(0,jt.useMemo)(()=>{let _e=!h||!a?!1:ta(s)?z().isPaused()||o?!1:d!==!1:s,Te=j=>{let M=hi(j);return delete M._k,_e?{isValidating:!0,isLoading:!0,...M}:M},Ge=C(),He=N(),Pe=Te(Ge),ze=Ge===He?Pe:Te(He),Je=Pe;return[()=>{let j=Te(C());return x(j,Je)?(Je.data=j.data,Je.isLoading=j.isLoading,Je.isValidating=j.isValidating,Je.error=j.error,Je):(Je=j,j)},()=>ze]},[i,h]),V=(0,oV.useSyncExternalStore)((0,jt.useCallback)(_e=>F(h,(Te,Ge)=>{x(Ge,Te)||_e()}),[i,h]),E[0],E[1]),pe=!y.current,we=b[h]&&b[h].length>0,be=V.data,ge=ta(be)?Z&&o_(Z)?oj(Z):Z:be,G=V.error,ee=(0,jt.useRef)(ge),X=g?ta(be)?ta(ee.current)?ge:ee.current:be:ge,Oe=we&&!ta(G)?!1:pe&&!ta(s)?s:z().isPaused()?!1:o?ta(ge)?!1:d:ta(ge)||d,K=!!(h&&a&&pe&&Oe),U=ta(V.isValidating)?K:V.isValidating,Q=ta(V.isLoading)?K:V.isLoading,oe=(0,jt.useCallback)(async _e=>{let Te=T.current;if(!h||!Te||I.current||z().isPaused())return!1;let Ge,He,Pe=!0,ze=_e||{},Je=!v[h]||!ze.dedupe,j=()=>lm?!I.current&&h===A.current&&y.current:h===A.current,M={isValidating:!1,isLoading:!1},O=()=>{W(M)},te=()=>{let $=v[h];$&&$[1]===He&&delete v[h]},ie={isValidating:!0};ta(C().data)&&(ie.isLoading=!0);try{if(Je&&(W(ie),t.loadingTimeout&&ta(C().data)&&setTimeout(()=>{Pe&&j()&&z().onLoadingSlow(h,t)},t.loadingTimeout),v[h]=[Te(k),Us()]),[Ge,He]=v[h],Ge=await Ge,Je&&setTimeout(te,t.dedupingInterval),!v[h]||v[h][1]!==He)return Je&&j()&&z().onDiscarded(h),!1;M.error=Ha;let $=f[h];if(!ta($)&&(He<=$[0]||He<=$[1]||$[1]===0))return O(),Je&&j()&&z().onDiscarded(h),!1;let ue=C().data;M.data=n(ue,Ge)?ue:Ge,Je&&j()&&z().onSuccess(Ge,h,t)}catch($){te();let ue=z(),{shouldRetryOnError:Ce}=ue;ue.isPaused()||(M.error=$,Je&&j()&&(ue.onError($,h,ue),(Ce===!0||Ji(Ce)&&Ce($))&&(!z().revalidateOnFocus||!z().revalidateOnReconnect||D())&&ue.onErrorRetry($,h,ue,Me=>{let Ue=b[h];Ue&&Ue[0]&&Ue[0](Vs.ERROR_REVALIDATE_EVENT,Me)},{retryCount:(ze.retryCount||0)+1,dedupe:!0})))}return Pe=!1,O(),!0},[h,i]),de=(0,jt.useCallback)((..._e)=>s_(i,A.current,..._e),[]);if(Er(()=>{T.current=a,P.current=t,ta(be)||(ee.current=be)}),Er(()=>{if(!h)return;let _e=oe.bind(Ha,rj),Te=0;z().revalidateOnFocus&&(Te=Date.now()+z().focusThrottleInterval);let He=iV(h,b,(Pe,ze={})=>{if(Pe==Vs.FOCUS_EVENT){let Je=Date.now();z().revalidateOnFocus&&Je>Te&&D()&&(Te=Je+z().focusThrottleInterval,_e())}else if(Pe==Vs.RECONNECT_EVENT)z().revalidateOnReconnect&&D()&&_e();else{if(Pe==Vs.MUTATE_EVENT)return oe();if(Pe==Vs.ERROR_REVALIDATE_EVENT)return oe(ze)}});return I.current=!1,A.current=h,y.current=!0,W({_k:k}),Oe&&(ta(ge)||zd?_e():ej(_e)),()=>{I.current=!0,He()}},[h]),Er(()=>{let _e;function Te(){let He=Ji(u)?u(C().data):u;He&&_e!==-1&&(_e=setTimeout(Ge,He))}function Ge(){!C().error&&(p||z().isVisible())&&(m||z().isOnline())?oe(rj).then(Te):Te()}return Te(),()=>{_e&&(clearTimeout(_e),_e=-1)}},[u,p,m,h]),(0,jt.useDebugValue)(X),o&&ta(ge)&&h){if(!lm&&zd)throw new Error("Fallback data is required when using Suspense in SSR.");T.current=a,P.current=t,I.current=!1;let _e=_[h];if(!ta(_e)){let Te=de(_e);oj(Te)}if(ta(G)){let Te=oe(rj);ta(X)||(Te.status="fulfilled",Te.value=!0),oj(Te)}else throw G}return{mutate:de,get data(){return q.data=!0,X},get error(){return q.error=!0,G},get isValidating(){return q.isValidating=!0,U},get isLoading(){return q.isLoading=!0,Q}}},Gna=rm.defineProperty(nj,"defaultValue",{value:d_}),m_=tV(tae);l();l();var Ca={};Wi(Ca,{BRAND:()=>Sae,DIRTY:()=>Sd,EMPTY_PATH:()=>rae,INVALID:()=>xe,NEVER:()=>mte,OK:()=>ti,ParseStatus:()=>Zt,Schema:()=>Ve,ZodAny:()=>Hs,ZodArray:()=>Nr,ZodBigInt:()=>xd,ZodBoolean:()=>Cd,ZodBranded:()=>_k,ZodCatch:()=>Zd,ZodDate:()=>Dd,ZodDefault:()=>Rd,ZodDiscriminatedUnion:()=>k_,ZodEffects:()=>Sn,ZodEnum:()=>Nd,ZodError:()=>Ci,ZodFirstPartyTypeKind:()=>We,ZodFunction:()=>b_,ZodIntersection:()=>Ld,ZodIssueCode:()=>J,ZodLazy:()=>Md,ZodLiteral:()=>Fd,ZodMap:()=>gm,ZodNaN:()=>hm,ZodNativeEnum:()=>Bd,ZodNever:()=>lo,ZodNull:()=>Wd,ZodNullable:()=>Zo,ZodNumber:()=>jd,ZodObject:()=>Di,ZodOptional:()=>zn,ZodParsedType:()=>ce,ZodPipeline:()=>Ak,ZodPromise:()=>Ys,ZodReadonly:()=>qd,ZodRecord:()=>h_,ZodSchema:()=>Ve,ZodSet:()=>km,ZodString:()=>Ks,ZodSymbol:()=>mm,ZodTransformer:()=>Sn,ZodTuple:()=>Ro,ZodType:()=>Ve,ZodUndefined:()=>Gd,ZodUnion:()=>Ed,ZodUnknown:()=>Fr,ZodVoid:()=>cm,addIssueToContext:()=>le,any:()=>Mae,array:()=>Rae,bigint:()=>Dae,boolean:()=>hV,coerce:()=>pte,custom:()=>cV,date:()=>Gae,datetimeRegex:()=>pV,defaultErrorMap:()=>Lr,discriminatedUnion:()=>Uae,effect:()=>ite,enum:()=>ete,function:()=>$ae,getErrorMap:()=>dm,getParsedType:()=>Bo,instanceof:()=>xae,intersection:()=>Oae,isAborted:()=>c_,isAsync:()=>um,isDirty:()=>g_,isValid:()=>Os,late:()=>jae,lazy:()=>Jae,literal:()=>Xae,makeIssue:()=>fk,map:()=>Yae,nan:()=>Cae,nativeEnum:()=>ate,never:()=>Nae,null:()=>Lae,nullable:()=>ote,number:()=>kV,object:()=>Zae,objectUtil:()=>sj,oboolean:()=>ute,onumber:()=>dte,optional:()=>nte,ostring:()=>lte,pipeline:()=>ste,preprocess:()=>rte,promise:()=>tte,quotelessJson:()=>iae,record:()=>Hae,set:()=>Qae,setErrorMap:()=>oae,strictObject:()=>qae,string:()=>gV,symbol:()=>Wae,transformer:()=>ite,tuple:()=>Kae,undefined:()=>Eae,union:()=>Vae,unknown:()=>Fae,util:()=>Qe,void:()=>Bae});l();l();l();l();l();var Qe;(function(e){e.assertEqual=n=>{};function a(n){}e.assertIs=a;function t(n){throw new Error}e.assertNever=t,e.arrayToEnum=n=>{let o={};for(let r of n)o[r]=r;return o},e.getValidEnumValues=n=>{let o=e.objectKeys(n).filter(s=>typeof n[n[s]]!="number"),r={};for(let s of o)r[s]=n[s];return e.objectValues(r)},e.objectValues=n=>e.objectKeys(n).map(function(o){return n[o]}),e.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{let o=[];for(let r in n)Object.prototype.hasOwnProperty.call(n,r)&&o.push(r);return o},e.find=(n,o)=>{for(let r of n)if(o(r))return r},e.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&Number.isFinite(n)&&Math.floor(n)===n;function i(n,o=" | "){return n.map(r=>typeof r=="string"?`'${r}'`:r).join(o)}e.joinValues=i,e.jsonStringifyReplacer=(n,o)=>typeof o=="bigint"?o.toString():o})(Qe||(Qe={}));var sj;(function(e){e.mergeShapes=(a,t)=>({...a,...t})})(sj||(sj={}));var ce=Qe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Bo=e=>{switch(typeof e){case"undefined":return ce.undefined;case"string":return ce.string;case"number":return Number.isNaN(e)?ce.nan:ce.number;case"boolean":return ce.boolean;case"function":return ce.function;case"bigint":return ce.bigint;case"symbol":return ce.symbol;case"object":return Array.isArray(e)?ce.array:e===null?ce.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ce.promise:typeof Map<"u"&&e instanceof Map?ce.map:typeof Set<"u"&&e instanceof Set?ce.set:typeof Date<"u"&&e instanceof Date?ce.date:ce.object;default:return ce.unknown}};var J=Qe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),iae=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),Ci=class e extends Error{get errors(){return this.issues}constructor(a){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=a}format(a){let t=a||function(o){return o.message},i={_errors:[]},n=o=>{for(let r of o.issues)if(r.code==="invalid_union")r.unionErrors.map(n);else if(r.code==="invalid_return_type")n(r.returnTypeError);else if(r.code==="invalid_arguments")n(r.argumentsError);else if(r.path.length===0)i._errors.push(t(r));else{let s=i,d=0;for(;d<r.path.length;){let u=r.path[d];d===r.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(t(r))):s[u]=s[u]||{_errors:[]},s=s[u],d++}}};return n(this),i}static assert(a){if(!(a instanceof e))throw new Error(`Not a ZodError: ${a}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Qe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(a=t=>t.message){let t={},i=[];for(let n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(a(n))):i.push(a(n));return{formErrors:i,fieldErrors:t}}get formErrors(){return this.flatten()}};Ci.create=e=>new Ci(e);var nae=(e,a)=>{let t;switch(e.code){case J.invalid_type:e.received===ce.undefined?t="Required":t=`Expected ${e.expected}, received ${e.received}`;break;case J.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(e.expected,Qe.jsonStringifyReplacer)}`;break;case J.unrecognized_keys:t=`Unrecognized key(s) in object: ${Qe.joinValues(e.keys,", ")}`;break;case J.invalid_union:t="Invalid input";break;case J.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${Qe.joinValues(e.options)}`;break;case J.invalid_enum_value:t=`Invalid enum value. Expected ${Qe.joinValues(e.options)}, received '${e.received}'`;break;case J.invalid_arguments:t="Invalid function arguments";break;case J.invalid_return_type:t="Invalid function return type";break;case J.invalid_date:t="Invalid date";break;case J.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(t=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?t=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?t=`Invalid input: must end with "${e.validation.endsWith}"`:Qe.assertNever(e.validation):e.validation!=="regex"?t=`Invalid ${e.validation}`:t="Invalid";break;case J.too_small:e.type==="array"?t=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?t=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?t=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?t=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:t="Invalid input";break;case J.too_big:e.type==="array"?t=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?t=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?t=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?t=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?t=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:t="Invalid input";break;case J.custom:t="Invalid input";break;case J.invalid_intersection_types:t="Intersection results could not be merged";break;case J.not_multiple_of:t=`Number must be a multiple of ${e.multipleOf}`;break;case J.not_finite:t="Number must be finite";break;default:t=a.defaultError,Qe.assertNever(e)}return{message:t}},Lr=nae;var rV=Lr;function oae(e){rV=e}function dm(){return rV}l();var fk=e=>{let{data:a,path:t,errorMaps:i,issueData:n}=e,o=[...t,...n.path||[]],r={...n,path:o};if(n.message!==void 0)return{...n,path:o,message:n.message};let s="",d=i.filter(u=>!!u).slice().reverse();for(let u of d)s=u(r,{data:a,defaultError:s}).message;return{...n,path:o,message:s}},rae=[];function le(e,a){let t=dm(),i=fk({issueData:a,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,t,t===Lr?void 0:Lr].filter(n=>!!n)});e.common.issues.push(i)}var Zt=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(a,t){let i=[];for(let n of t){if(n.status==="aborted")return xe;n.status==="dirty"&&a.dirty(),i.push(n.value)}return{status:a.value,value:i}}static async mergeObjectAsync(a,t){let i=[];for(let n of t){let o=await n.key,r=await n.value;i.push({key:o,value:r})}return e.mergeObjectSync(a,i)}static mergeObjectSync(a,t){let i={};for(let n of t){let{key:o,value:r}=n;if(o.status==="aborted"||r.status==="aborted")return xe;o.status==="dirty"&&a.dirty(),r.status==="dirty"&&a.dirty(),o.value!=="__proto__"&&(typeof r.value<"u"||n.alwaysSet)&&(i[o.value]=r.value)}return{status:a.value,value:i}}},xe=Object.freeze({status:"aborted"}),Sd=e=>({status:"dirty",value:e}),ti=e=>({status:"valid",value:e}),c_=e=>e.status==="aborted",g_=e=>e.status==="dirty",Os=e=>e.status==="valid",um=e=>typeof Promise<"u"&&e instanceof Promise;l();l();l();var Ae;(function(e){e.errToObj=a=>typeof a=="string"?{message:a}:a||{},e.toString=a=>typeof a=="string"?a:a?.message})(Ae||(Ae={}));var wn=class{constructor(a,t,i,n){this._cachedPath=[],this.parent=a,this.data=t,this._path=i,this._key=n}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},sV=(e,a)=>{if(Os(a))return{success:!0,data:a.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new Ci(e.common.issues);return this._error=t,this._error}}};function Ze(e){if(!e)return{};let{errorMap:a,invalid_type_error:t,required_error:i,description:n}=e;if(a&&(t||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return a?{errorMap:a,description:n}:{errorMap:(r,s)=>{let{message:d}=e;return r.code==="invalid_enum_value"?{message:d??s.defaultError}:typeof s.data>"u"?{message:d??i??s.defaultError}:r.code!=="invalid_type"?{message:s.defaultError}:{message:d??t??s.defaultError}},description:n}}var Ve=class{get description(){return this._def.description}_getType(a){return Bo(a.data)}_getOrReturnCtx(a,t){return t||{common:a.parent.common,data:a.data,parsedType:Bo(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}_processInputParams(a){return{status:new Zt,ctx:{common:a.parent.common,data:a.data,parsedType:Bo(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}}_parseSync(a){let t=this._parse(a);if(um(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(a){let t=this._parse(a);return Promise.resolve(t)}parse(a,t){let i=this.safeParse(a,t);if(i.success)return i.data;throw i.error}safeParse(a,t){let i={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:Bo(a)},n=this._parseSync({data:a,path:i.path,parent:i});return sV(i,n)}"~validate"(a){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:Bo(a)};if(!this["~standard"].async)try{let i=this._parseSync({data:a,path:[],parent:t});return Os(i)?{value:i.value}:{issues:t.common.issues}}catch(i){i?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:a,path:[],parent:t}).then(i=>Os(i)?{value:i.value}:{issues:t.common.issues})}async parseAsync(a,t){let i=await this.safeParseAsync(a,t);if(i.success)return i.data;throw i.error}async safeParseAsync(a,t){let i={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:Bo(a)},n=this._parse({data:a,path:i.path,parent:i}),o=await(um(n)?n:Promise.resolve(n));return sV(i,o)}refine(a,t){let i=n=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(n):t;return this._refinement((n,o)=>{let r=a(n),s=()=>o.addIssue({code:J.custom,...i(n)});return typeof Promise<"u"&&r instanceof Promise?r.then(d=>d?!0:(s(),!1)):r?!0:(s(),!1)})}refinement(a,t){return this._refinement((i,n)=>a(i)?!0:(n.addIssue(typeof t=="function"?t(i,n):t),!1))}_refinement(a){return new Sn({schema:this,typeName:We.ZodEffects,effect:{type:"refinement",refinement:a}})}superRefine(a){return this._refinement(a)}constructor(a){this.spa=this.safeParseAsync,this._def=a,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:t=>this["~validate"](t)}}optional(){return zn.create(this,this._def)}nullable(){return Zo.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Nr.create(this)}promise(){return Ys.create(this,this._def)}or(a){return Ed.create([this,a],this._def)}and(a){return Ld.create(this,a,this._def)}transform(a){return new Sn({...Ze(this._def),schema:this,typeName:We.ZodEffects,effect:{type:"transform",transform:a}})}default(a){let t=typeof a=="function"?a:()=>a;return new Rd({...Ze(this._def),innerType:this,defaultValue:t,typeName:We.ZodDefault})}brand(){return new _k({typeName:We.ZodBranded,type:this,...Ze(this._def)})}catch(a){let t=typeof a=="function"?a:()=>a;return new Zd({...Ze(this._def),innerType:this,catchValue:t,typeName:We.ZodCatch})}describe(a){let t=this.constructor;return new t({...this._def,description:a})}pipe(a){return Ak.create(this,a)}readonly(){return qd.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},sae=/^c[^\s-]{8,}$/i,lae=/^[0-9a-z]+$/,dae=/^[0-9A-HJKMNP-TV-Z]{26}$/i,uae=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,pae=/^[a-z0-9_-]{21}$/i,mae=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,cae=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,gae=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,kae="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",lj,hae=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,bae=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,vae=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,yae=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,fae=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,_ae=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,dV="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Aae=new RegExp(`^${dV}$`);function uV(e){let a="[0-5]\\d";e.precision?a=`${a}\\.\\d{${e.precision}}`:e.precision==null&&(a=`${a}(\\.\\d+)?`);let t=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${a})${t}`}function Iae(e){return new RegExp(`^${uV(e)}$`)}function pV(e){let a=`${dV}T${uV(e)}`,t=[];return t.push(e.local?"Z?":"Z"),e.offset&&t.push("([+-]\\d{2}:?\\d{2})"),a=`${a}(${t.join("|")})`,new RegExp(`^${a}$`)}function Tae(e,a){return!!((a==="v4"||!a)&&hae.test(e)||(a==="v6"||!a)&&vae.test(e))}function Pae(e,a){if(!mae.test(e))return!1;try{let[t]=e.split("."),i=t.replace(/-/g,"+").replace(/_/g,"/").padEnd(t.length+(4-t.length%4)%4,"="),n=JSON.parse(atob(i));return!(typeof n!="object"||n===null||"typ"in n&&n?.typ!=="JWT"||!n.alg||a&&n.alg!==a)}catch{return!1}}function zae(e,a){return!!((a==="v4"||!a)&&bae.test(e)||(a==="v6"||!a)&&yae.test(e))}var Ks=class e extends Ve{_parse(a){if(this._def.coerce&&(a.data=String(a.data)),this._getType(a)!==ce.string){let o=this._getOrReturnCtx(a);return le(o,{code:J.invalid_type,expected:ce.string,received:o.parsedType}),xe}let i=new Zt,n;for(let o of this._def.checks)if(o.kind==="min")a.data.length<o.value&&(n=this._getOrReturnCtx(a,n),le(n,{code:J.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="max")a.data.length>o.value&&(n=this._getOrReturnCtx(a,n),le(n,{code:J.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if(o.kind==="length"){let r=a.data.length>o.value,s=a.data.length<o.value;(r||s)&&(n=this._getOrReturnCtx(a,n),r?le(n,{code:J.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):s&&le(n,{code:J.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),i.dirty())}else if(o.kind==="email")gae.test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"email",code:J.invalid_string,message:o.message}),i.dirty());else if(o.kind==="emoji")lj||(lj=new RegExp(kae,"u")),lj.test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"emoji",code:J.invalid_string,message:o.message}),i.dirty());else if(o.kind==="uuid")uae.test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"uuid",code:J.invalid_string,message:o.message}),i.dirty());else if(o.kind==="nanoid")pae.test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"nanoid",code:J.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid")sae.test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"cuid",code:J.invalid_string,message:o.message}),i.dirty());else if(o.kind==="cuid2")lae.test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"cuid2",code:J.invalid_string,message:o.message}),i.dirty());else if(o.kind==="ulid")dae.test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"ulid",code:J.invalid_string,message:o.message}),i.dirty());else if(o.kind==="url")try{new URL(a.data)}catch{n=this._getOrReturnCtx(a,n),le(n,{validation:"url",code:J.invalid_string,message:o.message}),i.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"regex",code:J.invalid_string,message:o.message}),i.dirty())):o.kind==="trim"?a.data=a.data.trim():o.kind==="includes"?a.data.includes(o.value,o.position)||(n=this._getOrReturnCtx(a,n),le(n,{code:J.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),i.dirty()):o.kind==="toLowerCase"?a.data=a.data.toLowerCase():o.kind==="toUpperCase"?a.data=a.data.toUpperCase():o.kind==="startsWith"?a.data.startsWith(o.value)||(n=this._getOrReturnCtx(a,n),le(n,{code:J.invalid_string,validation:{startsWith:o.value},message:o.message}),i.dirty()):o.kind==="endsWith"?a.data.endsWith(o.value)||(n=this._getOrReturnCtx(a,n),le(n,{code:J.invalid_string,validation:{endsWith:o.value},message:o.message}),i.dirty()):o.kind==="datetime"?pV(o).test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{code:J.invalid_string,validation:"datetime",message:o.message}),i.dirty()):o.kind==="date"?Aae.test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{code:J.invalid_string,validation:"date",message:o.message}),i.dirty()):o.kind==="time"?Iae(o).test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{code:J.invalid_string,validation:"time",message:o.message}),i.dirty()):o.kind==="duration"?cae.test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"duration",code:J.invalid_string,message:o.message}),i.dirty()):o.kind==="ip"?Tae(a.data,o.version)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"ip",code:J.invalid_string,message:o.message}),i.dirty()):o.kind==="jwt"?Pae(a.data,o.alg)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"jwt",code:J.invalid_string,message:o.message}),i.dirty()):o.kind==="cidr"?zae(a.data,o.version)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"cidr",code:J.invalid_string,message:o.message}),i.dirty()):o.kind==="base64"?fae.test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"base64",code:J.invalid_string,message:o.message}),i.dirty()):o.kind==="base64url"?_ae.test(a.data)||(n=this._getOrReturnCtx(a,n),le(n,{validation:"base64url",code:J.invalid_string,message:o.message}),i.dirty()):Qe.assertNever(o);return{status:i.value,value:a.data}}_regex(a,t,i){return this.refinement(n=>a.test(n),{validation:t,code:J.invalid_string,...Ae.errToObj(i)})}_addCheck(a){return new e({...this._def,checks:[...this._def.checks,a]})}email(a){return this._addCheck({kind:"email",...Ae.errToObj(a)})}url(a){return this._addCheck({kind:"url",...Ae.errToObj(a)})}emoji(a){return this._addCheck({kind:"emoji",...Ae.errToObj(a)})}uuid(a){return this._addCheck({kind:"uuid",...Ae.errToObj(a)})}nanoid(a){return this._addCheck({kind:"nanoid",...Ae.errToObj(a)})}cuid(a){return this._addCheck({kind:"cuid",...Ae.errToObj(a)})}cuid2(a){return this._addCheck({kind:"cuid2",...Ae.errToObj(a)})}ulid(a){return this._addCheck({kind:"ulid",...Ae.errToObj(a)})}base64(a){return this._addCheck({kind:"base64",...Ae.errToObj(a)})}base64url(a){return this._addCheck({kind:"base64url",...Ae.errToObj(a)})}jwt(a){return this._addCheck({kind:"jwt",...Ae.errToObj(a)})}ip(a){return this._addCheck({kind:"ip",...Ae.errToObj(a)})}cidr(a){return this._addCheck({kind:"cidr",...Ae.errToObj(a)})}datetime(a){return typeof a=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:a}):this._addCheck({kind:"datetime",precision:typeof a?.precision>"u"?null:a?.precision,offset:a?.offset??!1,local:a?.local??!1,...Ae.errToObj(a?.message)})}date(a){return this._addCheck({kind:"date",message:a})}time(a){return typeof a=="string"?this._addCheck({kind:"time",precision:null,message:a}):this._addCheck({kind:"time",precision:typeof a?.precision>"u"?null:a?.precision,...Ae.errToObj(a?.message)})}duration(a){return this._addCheck({kind:"duration",...Ae.errToObj(a)})}regex(a,t){return this._addCheck({kind:"regex",regex:a,...Ae.errToObj(t)})}includes(a,t){return this._addCheck({kind:"includes",value:a,position:t?.position,...Ae.errToObj(t?.message)})}startsWith(a,t){return this._addCheck({kind:"startsWith",value:a,...Ae.errToObj(t)})}endsWith(a,t){return this._addCheck({kind:"endsWith",value:a,...Ae.errToObj(t)})}min(a,t){return this._addCheck({kind:"min",value:a,...Ae.errToObj(t)})}max(a,t){return this._addCheck({kind:"max",value:a,...Ae.errToObj(t)})}length(a,t){return this._addCheck({kind:"length",value:a,...Ae.errToObj(t)})}nonempty(a){return this.min(1,Ae.errToObj(a))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(a=>a.kind==="datetime")}get isDate(){return!!this._def.checks.find(a=>a.kind==="date")}get isTime(){return!!this._def.checks.find(a=>a.kind==="time")}get isDuration(){return!!this._def.checks.find(a=>a.kind==="duration")}get isEmail(){return!!this._def.checks.find(a=>a.kind==="email")}get isURL(){return!!this._def.checks.find(a=>a.kind==="url")}get isEmoji(){return!!this._def.checks.find(a=>a.kind==="emoji")}get isUUID(){return!!this._def.checks.find(a=>a.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(a=>a.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(a=>a.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(a=>a.kind==="cuid2")}get isULID(){return!!this._def.checks.find(a=>a.kind==="ulid")}get isIP(){return!!this._def.checks.find(a=>a.kind==="ip")}get isCIDR(){return!!this._def.checks.find(a=>a.kind==="cidr")}get isBase64(){return!!this._def.checks.find(a=>a.kind==="base64")}get isBase64url(){return!!this._def.checks.find(a=>a.kind==="base64url")}get minLength(){let a=null;for(let t of this._def.checks)t.kind==="min"&&(a===null||t.value>a)&&(a=t.value);return a}get maxLength(){let a=null;for(let t of this._def.checks)t.kind==="max"&&(a===null||t.value<a)&&(a=t.value);return a}};Ks.create=e=>new Ks({checks:[],typeName:We.ZodString,coerce:e?.coerce??!1,...Ze(e)});function wae(e,a){let t=(e.toString().split(".")[1]||"").length,i=(a.toString().split(".")[1]||"").length,n=t>i?t:i,o=Number.parseInt(e.toFixed(n).replace(".","")),r=Number.parseInt(a.toFixed(n).replace(".",""));return o%r/10**n}var jd=class e extends Ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(a){if(this._def.coerce&&(a.data=Number(a.data)),this._getType(a)!==ce.number){let o=this._getOrReturnCtx(a);return le(o,{code:J.invalid_type,expected:ce.number,received:o.parsedType}),xe}let i,n=new Zt;for(let o of this._def.checks)o.kind==="int"?Qe.isInteger(a.data)||(i=this._getOrReturnCtx(a,i),le(i,{code:J.invalid_type,expected:"integer",received:"float",message:o.message}),n.dirty()):o.kind==="min"?(o.inclusive?a.data<o.value:a.data<=o.value)&&(i=this._getOrReturnCtx(a,i),le(i,{code:J.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()):o.kind==="max"?(o.inclusive?a.data>o.value:a.data>=o.value)&&(i=this._getOrReturnCtx(a,i),le(i,{code:J.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()):o.kind==="multipleOf"?wae(a.data,o.value)!==0&&(i=this._getOrReturnCtx(a,i),le(i,{code:J.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):o.kind==="finite"?Number.isFinite(a.data)||(i=this._getOrReturnCtx(a,i),le(i,{code:J.not_finite,message:o.message}),n.dirty()):Qe.assertNever(o);return{status:n.value,value:a.data}}gte(a,t){return this.setLimit("min",a,!0,Ae.toString(t))}gt(a,t){return this.setLimit("min",a,!1,Ae.toString(t))}lte(a,t){return this.setLimit("max",a,!0,Ae.toString(t))}lt(a,t){return this.setLimit("max",a,!1,Ae.toString(t))}setLimit(a,t,i,n){return new e({...this._def,checks:[...this._def.checks,{kind:a,value:t,inclusive:i,message:Ae.toString(n)}]})}_addCheck(a){return new e({...this._def,checks:[...this._def.checks,a]})}int(a){return this._addCheck({kind:"int",message:Ae.toString(a)})}positive(a){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ae.toString(a)})}negative(a){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ae.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ae.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ae.toString(a)})}multipleOf(a,t){return this._addCheck({kind:"multipleOf",value:a,message:Ae.toString(t)})}finite(a){return this._addCheck({kind:"finite",message:Ae.toString(a)})}safe(a){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ae.toString(a)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ae.toString(a)})}get minValue(){let a=null;for(let t of this._def.checks)t.kind==="min"&&(a===null||t.value>a)&&(a=t.value);return a}get maxValue(){let a=null;for(let t of this._def.checks)t.kind==="max"&&(a===null||t.value<a)&&(a=t.value);return a}get isInt(){return!!this._def.checks.find(a=>a.kind==="int"||a.kind==="multipleOf"&&Qe.isInteger(a.value))}get isFinite(){let a=null,t=null;for(let i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(t===null||i.value>t)&&(t=i.value):i.kind==="max"&&(a===null||i.value<a)&&(a=i.value)}return Number.isFinite(t)&&Number.isFinite(a)}};jd.create=e=>new jd({checks:[],typeName:We.ZodNumber,coerce:e?.coerce||!1,...Ze(e)});var xd=class e extends Ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(a){if(this._def.coerce)try{a.data=BigInt(a.data)}catch{return this._getInvalidInput(a)}if(this._getType(a)!==ce.bigint)return this._getInvalidInput(a);let i,n=new Zt;for(let o of this._def.checks)o.kind==="min"?(o.inclusive?a.data<o.value:a.data<=o.value)&&(i=this._getOrReturnCtx(a,i),le(i,{code:J.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()):o.kind==="max"?(o.inclusive?a.data>o.value:a.data>=o.value)&&(i=this._getOrReturnCtx(a,i),le(i,{code:J.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()):o.kind==="multipleOf"?a.data%o.value!==BigInt(0)&&(i=this._getOrReturnCtx(a,i),le(i,{code:J.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):Qe.assertNever(o);return{status:n.value,value:a.data}}_getInvalidInput(a){let t=this._getOrReturnCtx(a);return le(t,{code:J.invalid_type,expected:ce.bigint,received:t.parsedType}),xe}gte(a,t){return this.setLimit("min",a,!0,Ae.toString(t))}gt(a,t){return this.setLimit("min",a,!1,Ae.toString(t))}lte(a,t){return this.setLimit("max",a,!0,Ae.toString(t))}lt(a,t){return this.setLimit("max",a,!1,Ae.toString(t))}setLimit(a,t,i,n){return new e({...this._def,checks:[...this._def.checks,{kind:a,value:t,inclusive:i,message:Ae.toString(n)}]})}_addCheck(a){return new e({...this._def,checks:[...this._def.checks,a]})}positive(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ae.toString(a)})}negative(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ae.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ae.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ae.toString(a)})}multipleOf(a,t){return this._addCheck({kind:"multipleOf",value:a,message:Ae.toString(t)})}get minValue(){let a=null;for(let t of this._def.checks)t.kind==="min"&&(a===null||t.value>a)&&(a=t.value);return a}get maxValue(){let a=null;for(let t of this._def.checks)t.kind==="max"&&(a===null||t.value<a)&&(a=t.value);return a}};xd.create=e=>new xd({checks:[],typeName:We.ZodBigInt,coerce:e?.coerce??!1,...Ze(e)});var Cd=class extends Ve{_parse(a){if(this._def.coerce&&(a.data=!!a.data),this._getType(a)!==ce.boolean){let i=this._getOrReturnCtx(a);return le(i,{code:J.invalid_type,expected:ce.boolean,received:i.parsedType}),xe}return ti(a.data)}};Cd.create=e=>new Cd({typeName:We.ZodBoolean,coerce:e?.coerce||!1,...Ze(e)});var Dd=class e extends Ve{_parse(a){if(this._def.coerce&&(a.data=new Date(a.data)),this._getType(a)!==ce.date){let o=this._getOrReturnCtx(a);return le(o,{code:J.invalid_type,expected:ce.date,received:o.parsedType}),xe}if(Number.isNaN(a.data.getTime())){let o=this._getOrReturnCtx(a);return le(o,{code:J.invalid_date}),xe}let i=new Zt,n;for(let o of this._def.checks)o.kind==="min"?a.data.getTime()<o.value&&(n=this._getOrReturnCtx(a,n),le(n,{code:J.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),i.dirty()):o.kind==="max"?a.data.getTime()>o.value&&(n=this._getOrReturnCtx(a,n),le(n,{code:J.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),i.dirty()):Qe.assertNever(o);return{status:i.value,value:new Date(a.data.getTime())}}_addCheck(a){return new e({...this._def,checks:[...this._def.checks,a]})}min(a,t){return this._addCheck({kind:"min",value:a.getTime(),message:Ae.toString(t)})}max(a,t){return this._addCheck({kind:"max",value:a.getTime(),message:Ae.toString(t)})}get minDate(){let a=null;for(let t of this._def.checks)t.kind==="min"&&(a===null||t.value>a)&&(a=t.value);return a!=null?new Date(a):null}get maxDate(){let a=null;for(let t of this._def.checks)t.kind==="max"&&(a===null||t.value<a)&&(a=t.value);return a!=null?new Date(a):null}};Dd.create=e=>new Dd({checks:[],coerce:e?.coerce||!1,typeName:We.ZodDate,...Ze(e)});var mm=class extends Ve{_parse(a){if(this._getType(a)!==ce.symbol){let i=this._getOrReturnCtx(a);return le(i,{code:J.invalid_type,expected:ce.symbol,received:i.parsedType}),xe}return ti(a.data)}};mm.create=e=>new mm({typeName:We.ZodSymbol,...Ze(e)});var Gd=class extends Ve{_parse(a){if(this._getType(a)!==ce.undefined){let i=this._getOrReturnCtx(a);return le(i,{code:J.invalid_type,expected:ce.undefined,received:i.parsedType}),xe}return ti(a.data)}};Gd.create=e=>new Gd({typeName:We.ZodUndefined,...Ze(e)});var Wd=class extends Ve{_parse(a){if(this._getType(a)!==ce.null){let i=this._getOrReturnCtx(a);return le(i,{code:J.invalid_type,expected:ce.null,received:i.parsedType}),xe}return ti(a.data)}};Wd.create=e=>new Wd({typeName:We.ZodNull,...Ze(e)});var Hs=class extends Ve{constructor(){super(...arguments),this._any=!0}_parse(a){return ti(a.data)}};Hs.create=e=>new Hs({typeName:We.ZodAny,...Ze(e)});var Fr=class extends Ve{constructor(){super(...arguments),this._unknown=!0}_parse(a){return ti(a.data)}};Fr.create=e=>new Fr({typeName:We.ZodUnknown,...Ze(e)});var lo=class extends Ve{_parse(a){let t=this._getOrReturnCtx(a);return le(t,{code:J.invalid_type,expected:ce.never,received:t.parsedType}),xe}};lo.create=e=>new lo({typeName:We.ZodNever,...Ze(e)});var cm=class extends Ve{_parse(a){if(this._getType(a)!==ce.undefined){let i=this._getOrReturnCtx(a);return le(i,{code:J.invalid_type,expected:ce.void,received:i.parsedType}),xe}return ti(a.data)}};cm.create=e=>new cm({typeName:We.ZodVoid,...Ze(e)});var Nr=class e extends Ve{_parse(a){let{ctx:t,status:i}=this._processInputParams(a),n=this._def;if(t.parsedType!==ce.array)return le(t,{code:J.invalid_type,expected:ce.array,received:t.parsedType}),xe;if(n.exactLength!==null){let r=t.data.length>n.exactLength.value,s=t.data.length<n.exactLength.value;(r||s)&&(le(t,{code:r?J.too_big:J.too_small,minimum:s?n.exactLength.value:void 0,maximum:r?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),i.dirty())}if(n.minLength!==null&&t.data.length<n.minLength.value&&(le(t,{code:J.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),i.dirty()),n.maxLength!==null&&t.data.length>n.maxLength.value&&(le(t,{code:J.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),i.dirty()),t.common.async)return Promise.all([...t.data].map((r,s)=>n.type._parseAsync(new wn(t,r,t.path,s)))).then(r=>Zt.mergeArray(i,r));let o=[...t.data].map((r,s)=>n.type._parseSync(new wn(t,r,t.path,s)));return Zt.mergeArray(i,o)}get element(){return this._def.type}min(a,t){return new e({...this._def,minLength:{value:a,message:Ae.toString(t)}})}max(a,t){return new e({...this._def,maxLength:{value:a,message:Ae.toString(t)}})}length(a,t){return new e({...this._def,exactLength:{value:a,message:Ae.toString(t)}})}nonempty(a){return this.min(1,a)}};Nr.create=(e,a)=>new Nr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:We.ZodArray,...Ze(a)});function pm(e){if(e instanceof Di){let a={};for(let t in e.shape){let i=e.shape[t];a[t]=zn.create(pm(i))}return new Di({...e._def,shape:()=>a})}else return e instanceof Nr?new Nr({...e._def,type:pm(e.element)}):e instanceof zn?zn.create(pm(e.unwrap())):e instanceof Zo?Zo.create(pm(e.unwrap())):e instanceof Ro?Ro.create(e.items.map(a=>pm(a))):e}var Di=class e extends Ve{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let a=this._def.shape(),t=Qe.objectKeys(a);return this._cached={shape:a,keys:t},this._cached}_parse(a){if(this._getType(a)!==ce.object){let u=this._getOrReturnCtx(a);return le(u,{code:J.invalid_type,expected:ce.object,received:u.parsedType}),xe}let{status:i,ctx:n}=this._processInputParams(a),{shape:o,keys:r}=this._getCached(),s=[];if(!(this._def.catchall instanceof lo&&this._def.unknownKeys==="strip"))for(let u in n.data)r.includes(u)||s.push(u);let d=[];for(let u of r){let p=o[u],m=n.data[u];d.push({key:{status:"valid",value:u},value:p._parse(new wn(n,m,n.path,u)),alwaysSet:u in n.data})}if(this._def.catchall instanceof lo){let u=this._def.unknownKeys;if(u==="passthrough")for(let p of s)d.push({key:{status:"valid",value:p},value:{status:"valid",value:n.data[p]}});else if(u==="strict")s.length>0&&(le(n,{code:J.unrecognized_keys,keys:s}),i.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let p of s){let m=n.data[p];d.push({key:{status:"valid",value:p},value:u._parse(new wn(n,m,n.path,p)),alwaysSet:p in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let u=[];for(let p of d){let m=await p.key,g=await p.value;u.push({key:m,value:g,alwaysSet:p.alwaysSet})}return u}).then(u=>Zt.mergeObjectSync(i,u)):Zt.mergeObjectSync(i,d)}get shape(){return this._def.shape()}strict(a){return Ae.errToObj,new e({...this._def,unknownKeys:"strict",...a!==void 0?{errorMap:(t,i)=>{let n=this._def.errorMap?.(t,i).message??i.defaultError;return t.code==="unrecognized_keys"?{message:Ae.errToObj(a).message??n}:{message:n}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(a){return new e({...this._def,shape:()=>({...this._def.shape(),...a})})}merge(a){return new e({unknownKeys:a._def.unknownKeys,catchall:a._def.catchall,shape:()=>({...this._def.shape(),...a._def.shape()}),typeName:We.ZodObject})}setKey(a,t){return this.augment({[a]:t})}catchall(a){return new e({...this._def,catchall:a})}pick(a){let t={};for(let i of Qe.objectKeys(a))a[i]&&this.shape[i]&&(t[i]=this.shape[i]);return new e({...this._def,shape:()=>t})}omit(a){let t={};for(let i of Qe.objectKeys(this.shape))a[i]||(t[i]=this.shape[i]);return new e({...this._def,shape:()=>t})}deepPartial(){return pm(this)}partial(a){let t={};for(let i of Qe.objectKeys(this.shape)){let n=this.shape[i];a&&!a[i]?t[i]=n:t[i]=n.optional()}return new e({...this._def,shape:()=>t})}required(a){let t={};for(let i of Qe.objectKeys(this.shape))if(a&&!a[i])t[i]=this.shape[i];else{let o=this.shape[i];for(;o instanceof zn;)o=o._def.innerType;t[i]=o}return new e({...this._def,shape:()=>t})}keyof(){return mV(Qe.objectKeys(this.shape))}};Di.create=(e,a)=>new Di({shape:()=>e,unknownKeys:"strip",catchall:lo.create(),typeName:We.ZodObject,...Ze(a)});Di.strictCreate=(e,a)=>new Di({shape:()=>e,unknownKeys:"strict",catchall:lo.create(),typeName:We.ZodObject,...Ze(a)});Di.lazycreate=(e,a)=>new Di({shape:e,unknownKeys:"strip",catchall:lo.create(),typeName:We.ZodObject,...Ze(a)});var Ed=class extends Ve{_parse(a){let{ctx:t}=this._processInputParams(a),i=this._def.options;function n(o){for(let s of o)if(s.result.status==="valid")return s.result;for(let s of o)if(s.result.status==="dirty")return t.common.issues.push(...s.ctx.common.issues),s.result;let r=o.map(s=>new Ci(s.ctx.common.issues));return le(t,{code:J.invalid_union,unionErrors:r}),xe}if(t.common.async)return Promise.all(i.map(async o=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await o._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(n);{let o,r=[];for(let d of i){let u={...t,common:{...t.common,issues:[]},parent:null},p=d._parseSync({data:t.data,path:t.path,parent:u});if(p.status==="valid")return p;p.status==="dirty"&&!o&&(o={result:p,ctx:u}),u.common.issues.length&&r.push(u.common.issues)}if(o)return t.common.issues.push(...o.ctx.common.issues),o.result;let s=r.map(d=>new Ci(d));return le(t,{code:J.invalid_union,unionErrors:s}),xe}}get options(){return this._def.options}};Ed.create=(e,a)=>new Ed({options:e,typeName:We.ZodUnion,...Ze(a)});var Mr=e=>e instanceof Md?Mr(e.schema):e instanceof Sn?Mr(e.innerType()):e instanceof Fd?[e.value]:e instanceof Nd?e.options:e instanceof Bd?Qe.objectValues(e.enum):e instanceof Rd?Mr(e._def.innerType):e instanceof Gd?[void 0]:e instanceof Wd?[null]:e instanceof zn?[void 0,...Mr(e.unwrap())]:e instanceof Zo?[null,...Mr(e.unwrap())]:e instanceof _k||e instanceof qd?Mr(e.unwrap()):e instanceof Zd?Mr(e._def.innerType):[],k_=class e extends Ve{_parse(a){let{ctx:t}=this._processInputParams(a);if(t.parsedType!==ce.object)return le(t,{code:J.invalid_type,expected:ce.object,received:t.parsedType}),xe;let i=this.discriminator,n=t.data[i],o=this.optionsMap.get(n);return o?t.common.async?o._parseAsync({data:t.data,path:t.path,parent:t}):o._parseSync({data:t.data,path:t.path,parent:t}):(le(t,{code:J.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),xe)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(a,t,i){let n=new Map;for(let o of t){let r=Mr(o.shape[a]);if(!r.length)throw new Error(`A discriminator value for key \`${a}\` could not be extracted from all schema options`);for(let s of r){if(n.has(s))throw new Error(`Discriminator property ${String(a)} has duplicate value ${String(s)}`);n.set(s,o)}}return new e({typeName:We.ZodDiscriminatedUnion,discriminator:a,options:t,optionsMap:n,...Ze(i)})}};function dj(e,a){let t=Bo(e),i=Bo(a);if(e===a)return{valid:!0,data:e};if(t===ce.object&&i===ce.object){let n=Qe.objectKeys(a),o=Qe.objectKeys(e).filter(s=>n.indexOf(s)!==-1),r={...e,...a};for(let s of o){let d=dj(e[s],a[s]);if(!d.valid)return{valid:!1};r[s]=d.data}return{valid:!0,data:r}}else if(t===ce.array&&i===ce.array){if(e.length!==a.length)return{valid:!1};let n=[];for(let o=0;o<e.length;o++){let r=e[o],s=a[o],d=dj(r,s);if(!d.valid)return{valid:!1};n.push(d.data)}return{valid:!0,data:n}}else return t===ce.date&&i===ce.date&&+e==+a?{valid:!0,data:e}:{valid:!1}}var Ld=class extends Ve{_parse(a){let{status:t,ctx:i}=this._processInputParams(a),n=(o,r)=>{if(c_(o)||c_(r))return xe;let s=dj(o.value,r.value);return s.valid?((g_(o)||g_(r))&&t.dirty(),{status:t.value,value:s.data}):(le(i,{code:J.invalid_intersection_types}),xe)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([o,r])=>n(o,r)):n(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};Ld.create=(e,a,t)=>new Ld({left:e,right:a,typeName:We.ZodIntersection,...Ze(t)});var Ro=class e extends Ve{_parse(a){let{status:t,ctx:i}=this._processInputParams(a);if(i.parsedType!==ce.array)return le(i,{code:J.invalid_type,expected:ce.array,received:i.parsedType}),xe;if(i.data.length<this._def.items.length)return le(i,{code:J.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),xe;!this._def.rest&&i.data.length>this._def.items.length&&(le(i,{code:J.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let o=[...i.data].map((r,s)=>{let d=this._def.items[s]||this._def.rest;return d?d._parse(new wn(i,r,i.path,s)):null}).filter(r=>!!r);return i.common.async?Promise.all(o).then(r=>Zt.mergeArray(t,r)):Zt.mergeArray(t,o)}get items(){return this._def.items}rest(a){return new e({...this._def,rest:a})}};Ro.create=(e,a)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ro({items:e,typeName:We.ZodTuple,rest:null,...Ze(a)})};var h_=class e extends Ve{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){let{status:t,ctx:i}=this._processInputParams(a);if(i.parsedType!==ce.object)return le(i,{code:J.invalid_type,expected:ce.object,received:i.parsedType}),xe;let n=[],o=this._def.keyType,r=this._def.valueType;for(let s in i.data)n.push({key:o._parse(new wn(i,s,i.path,s)),value:r._parse(new wn(i,i.data[s],i.path,s)),alwaysSet:s in i.data});return i.common.async?Zt.mergeObjectAsync(t,n):Zt.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(a,t,i){return t instanceof Ve?new e({keyType:a,valueType:t,typeName:We.ZodRecord,...Ze(i)}):new e({keyType:Ks.create(),valueType:a,typeName:We.ZodRecord,...Ze(t)})}},gm=class extends Ve{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){let{status:t,ctx:i}=this._processInputParams(a);if(i.parsedType!==ce.map)return le(i,{code:J.invalid_type,expected:ce.map,received:i.parsedType}),xe;let n=this._def.keyType,o=this._def.valueType,r=[...i.data.entries()].map(([s,d],u)=>({key:n._parse(new wn(i,s,i.path,[u,"key"])),value:o._parse(new wn(i,d,i.path,[u,"value"]))}));if(i.common.async){let s=new Map;return Promise.resolve().then(async()=>{for(let d of r){let u=await d.key,p=await d.value;if(u.status==="aborted"||p.status==="aborted")return xe;(u.status==="dirty"||p.status==="dirty")&&t.dirty(),s.set(u.value,p.value)}return{status:t.value,value:s}})}else{let s=new Map;for(let d of r){let u=d.key,p=d.value;if(u.status==="aborted"||p.status==="aborted")return xe;(u.status==="dirty"||p.status==="dirty")&&t.dirty(),s.set(u.value,p.value)}return{status:t.value,value:s}}}};gm.create=(e,a,t)=>new gm({valueType:a,keyType:e,typeName:We.ZodMap,...Ze(t)});var km=class e extends Ve{_parse(a){let{status:t,ctx:i}=this._processInputParams(a);if(i.parsedType!==ce.set)return le(i,{code:J.invalid_type,expected:ce.set,received:i.parsedType}),xe;let n=this._def;n.minSize!==null&&i.data.size<n.minSize.value&&(le(i,{code:J.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),n.maxSize!==null&&i.data.size>n.maxSize.value&&(le(i,{code:J.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let o=this._def.valueType;function r(d){let u=new Set;for(let p of d){if(p.status==="aborted")return xe;p.status==="dirty"&&t.dirty(),u.add(p.value)}return{status:t.value,value:u}}let s=[...i.data.values()].map((d,u)=>o._parse(new wn(i,d,i.path,u)));return i.common.async?Promise.all(s).then(d=>r(d)):r(s)}min(a,t){return new e({...this._def,minSize:{value:a,message:Ae.toString(t)}})}max(a,t){return new e({...this._def,maxSize:{value:a,message:Ae.toString(t)}})}size(a,t){return this.min(a,t).max(a,t)}nonempty(a){return this.min(1,a)}};km.create=(e,a)=>new km({valueType:e,minSize:null,maxSize:null,typeName:We.ZodSet,...Ze(a)});var b_=class e extends Ve{constructor(){super(...arguments),this.validate=this.implement}_parse(a){let{ctx:t}=this._processInputParams(a);if(t.parsedType!==ce.function)return le(t,{code:J.invalid_type,expected:ce.function,received:t.parsedType}),xe;function i(s,d){return fk({data:s,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,dm(),Lr].filter(u=>!!u),issueData:{code:J.invalid_arguments,argumentsError:d}})}function n(s,d){return fk({data:s,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,dm(),Lr].filter(u=>!!u),issueData:{code:J.invalid_return_type,returnTypeError:d}})}let o={errorMap:t.common.contextualErrorMap},r=t.data;if(this._def.returns instanceof Ys){let s=this;return ti(async function(...d){let u=new Ci([]),p=await s._def.args.parseAsync(d,o).catch(b=>{throw u.addIssue(i(d,b)),u}),m=await Reflect.apply(r,this,p);return await s._def.returns._def.type.parseAsync(m,o).catch(b=>{throw u.addIssue(n(m,b)),u})})}else{let s=this;return ti(function(...d){let u=s._def.args.safeParse(d,o);if(!u.success)throw new Ci([i(d,u.error)]);let p=Reflect.apply(r,this,u.data),m=s._def.returns.safeParse(p,o);if(!m.success)throw new Ci([n(p,m.error)]);return m.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...a){return new e({...this._def,args:Ro.create(a).rest(Fr.create())})}returns(a){return new e({...this._def,returns:a})}implement(a){return this.parse(a)}strictImplement(a){return this.parse(a)}static create(a,t,i){return new e({args:a||Ro.create([]).rest(Fr.create()),returns:t||Fr.create(),typeName:We.ZodFunction,...Ze(i)})}},Md=class extends Ve{get schema(){return this._def.getter()}_parse(a){let{ctx:t}=this._processInputParams(a);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};Md.create=(e,a)=>new Md({getter:e,typeName:We.ZodLazy,...Ze(a)});var Fd=class extends Ve{_parse(a){if(a.data!==this._def.value){let t=this._getOrReturnCtx(a);return le(t,{received:t.data,code:J.invalid_literal,expected:this._def.value}),xe}return{status:"valid",value:a.data}}get value(){return this._def.value}};Fd.create=(e,a)=>new Fd({value:e,typeName:We.ZodLiteral,...Ze(a)});function mV(e,a){return new Nd({values:e,typeName:We.ZodEnum,...Ze(a)})}var Nd=class e extends Ve{_parse(a){if(typeof a.data!="string"){let t=this._getOrReturnCtx(a),i=this._def.values;return le(t,{expected:Qe.joinValues(i),received:t.parsedType,code:J.invalid_type}),xe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(a.data)){let t=this._getOrReturnCtx(a),i=this._def.values;return le(t,{received:t.data,code:J.invalid_enum_value,options:i}),xe}return ti(a.data)}get options(){return this._def.values}get enum(){let a={};for(let t of this._def.values)a[t]=t;return a}get Values(){let a={};for(let t of this._def.values)a[t]=t;return a}get Enum(){let a={};for(let t of this._def.values)a[t]=t;return a}extract(a,t=this._def){return e.create(a,{...this._def,...t})}exclude(a,t=this._def){return e.create(this.options.filter(i=>!a.includes(i)),{...this._def,...t})}};Nd.create=mV;var Bd=class extends Ve{_parse(a){let t=Qe.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(a);if(i.parsedType!==ce.string&&i.parsedType!==ce.number){let n=Qe.objectValues(t);return le(i,{expected:Qe.joinValues(n),received:i.parsedType,code:J.invalid_type}),xe}if(this._cache||(this._cache=new Set(Qe.getValidEnumValues(this._def.values))),!this._cache.has(a.data)){let n=Qe.objectValues(t);return le(i,{received:i.data,code:J.invalid_enum_value,options:n}),xe}return ti(a.data)}get enum(){return this._def.values}};Bd.create=(e,a)=>new Bd({values:e,typeName:We.ZodNativeEnum,...Ze(a)});var Ys=class extends Ve{unwrap(){return this._def.type}_parse(a){let{ctx:t}=this._processInputParams(a);if(t.parsedType!==ce.promise&&t.common.async===!1)return le(t,{code:J.invalid_type,expected:ce.promise,received:t.parsedType}),xe;let i=t.parsedType===ce.promise?t.data:Promise.resolve(t.data);return ti(i.then(n=>this._def.type.parseAsync(n,{path:t.path,errorMap:t.common.contextualErrorMap})))}};Ys.create=(e,a)=>new Ys({type:e,typeName:We.ZodPromise,...Ze(a)});var Sn=class extends Ve{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===We.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(a){let{status:t,ctx:i}=this._processInputParams(a),n=this._def.effect||null,o={addIssue:r=>{le(i,r),r.fatal?t.abort():t.dirty()},get path(){return i.path}};if(o.addIssue=o.addIssue.bind(o),n.type==="preprocess"){let r=n.transform(i.data,o);if(i.common.async)return Promise.resolve(r).then(async s=>{if(t.value==="aborted")return xe;let d=await this._def.schema._parseAsync({data:s,path:i.path,parent:i});return d.status==="aborted"?xe:d.status==="dirty"?Sd(d.value):t.value==="dirty"?Sd(d.value):d});{if(t.value==="aborted")return xe;let s=this._def.schema._parseSync({data:r,path:i.path,parent:i});return s.status==="aborted"?xe:s.status==="dirty"?Sd(s.value):t.value==="dirty"?Sd(s.value):s}}if(n.type==="refinement"){let r=s=>{let d=n.refinement(s,o);if(i.common.async)return Promise.resolve(d);if(d instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(i.common.async===!1){let s=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?xe:(s.status==="dirty"&&t.dirty(),r(s.value),{status:t.value,value:s.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(s=>s.status==="aborted"?xe:(s.status==="dirty"&&t.dirty(),r(s.value).then(()=>({status:t.value,value:s.value}))))}if(n.type==="transform")if(i.common.async===!1){let r=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!Os(r))return xe;let s=n.transform(r.value,o);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:s}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(r=>Os(r)?Promise.resolve(n.transform(r.value,o)).then(s=>({status:t.value,value:s})):xe);Qe.assertNever(n)}};Sn.create=(e,a,t)=>new Sn({schema:e,typeName:We.ZodEffects,effect:a,...Ze(t)});Sn.createWithPreprocess=(e,a,t)=>new Sn({schema:a,effect:{type:"preprocess",transform:e},typeName:We.ZodEffects,...Ze(t)});var zn=class extends Ve{_parse(a){return this._getType(a)===ce.undefined?ti(void 0):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}};zn.create=(e,a)=>new zn({innerType:e,typeName:We.ZodOptional,...Ze(a)});var Zo=class extends Ve{_parse(a){return this._getType(a)===ce.null?ti(null):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}};Zo.create=(e,a)=>new Zo({innerType:e,typeName:We.ZodNullable,...Ze(a)});var Rd=class extends Ve{_parse(a){let{ctx:t}=this._processInputParams(a),i=t.data;return t.parsedType===ce.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};Rd.create=(e,a)=>new Rd({innerType:e,typeName:We.ZodDefault,defaultValue:typeof a.default=="function"?a.default:()=>a.default,...Ze(a)});var Zd=class extends Ve{_parse(a){let{ctx:t}=this._processInputParams(a),i={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return um(n)?n.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Ci(i.common.issues)},input:i.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new Ci(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};Zd.create=(e,a)=>new Zd({innerType:e,typeName:We.ZodCatch,catchValue:typeof a.catch=="function"?a.catch:()=>a.catch,...Ze(a)});var hm=class extends Ve{_parse(a){if(this._getType(a)!==ce.nan){let i=this._getOrReturnCtx(a);return le(i,{code:J.invalid_type,expected:ce.nan,received:i.parsedType}),xe}return{status:"valid",value:a.data}}};hm.create=e=>new hm({typeName:We.ZodNaN,...Ze(e)});var Sae=Symbol("zod_brand"),_k=class extends Ve{_parse(a){let{ctx:t}=this._processInputParams(a),i=t.data;return this._def.type._parse({data:i,path:t.path,parent:t})}unwrap(){return this._def.type}},Ak=class e extends Ve{_parse(a){let{status:t,ctx:i}=this._processInputParams(a);if(i.common.async)return(async()=>{let o=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?xe:o.status==="dirty"?(t.dirty(),Sd(o.value)):this._def.out._parseAsync({data:o.value,path:i.path,parent:i})})();{let n=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return n.status==="aborted"?xe:n.status==="dirty"?(t.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:i.path,parent:i})}}static create(a,t){return new e({in:a,out:t,typeName:We.ZodPipeline})}},qd=class extends Ve{_parse(a){let t=this._def.innerType._parse(a),i=n=>(Os(n)&&(n.value=Object.freeze(n.value)),n);return um(t)?t.then(n=>i(n)):i(t)}unwrap(){return this._def.innerType}};qd.create=(e,a)=>new qd({innerType:e,typeName:We.ZodReadonly,...Ze(a)});function lV(e,a){let t=typeof e=="function"?e(a):typeof e=="string"?{message:e}:e;return typeof t=="string"?{message:t}:t}function cV(e,a={},t){return e?Hs.create().superRefine((i,n)=>{let o=e(i);if(o instanceof Promise)return o.then(r=>{if(!r){let s=lV(a,i),d=s.fatal??t??!0;n.addIssue({code:"custom",...s,fatal:d})}});if(!o){let r=lV(a,i),s=r.fatal??t??!0;n.addIssue({code:"custom",...r,fatal:s})}}):Hs.create()}var jae={object:Di.lazycreate},We;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(We||(We={}));var xae=(e,a={message:`Input not instance of ${e.name}`})=>cV(t=>t instanceof e,a),gV=Ks.create,kV=jd.create,Cae=hm.create,Dae=xd.create,hV=Cd.create,Gae=Dd.create,Wae=mm.create,Eae=Gd.create,Lae=Wd.create,Mae=Hs.create,Fae=Fr.create,Nae=lo.create,Bae=cm.create,Rae=Nr.create,Zae=Di.create,qae=Di.strictCreate,Vae=Ed.create,Uae=k_.create,Oae=Ld.create,Kae=Ro.create,Hae=h_.create,Yae=gm.create,Qae=km.create,$ae=b_.create,Jae=Md.create,Xae=Fd.create,ete=Nd.create,ate=Bd.create,tte=Ys.create,ite=Sn.create,nte=zn.create,ote=Zo.create,rte=Sn.createWithPreprocess,ste=Ak.create,lte=()=>gV().optional(),dte=()=>kV().optional(),ute=()=>hV().optional(),pte={string:e=>Ks.create({...e,coerce:!0}),number:e=>jd.create({...e,coerce:!0}),boolean:e=>Cd.create({...e,coerce:!0}),bigint:e=>xd.create({...e,coerce:!0}),date:e=>Dd.create({...e,coerce:!0})};var mte=xe;l();l();var vte=S(R(),1);l();var Pk=S(R(),1);l();var cte=S(vV());l();var fV=(e,a,t,i)=>{let n=[t,{code:a,...i||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(n,"warn","react-i18next::",!0);Br(n[0])&&(n[0]=`react-i18next:: ${n[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...n):console?.warn&&console.warn(...n)},yV={},Ik=(e,a,t,i)=>{Br(t)&&yV[t]||(Br(t)&&(yV[t]=new Date),fV(e,a,t,i))},_V=(e,a)=>()=>{if(e.isInitialized)a();else{let t=()=>{setTimeout(()=>{e.off("initialized",t)},0),a()};e.on("initialized",t)}},v_=(e,a,t)=>{e.loadNamespaces(a,_V(e,t))},uj=(e,a,t,i)=>{if(Br(t)&&(t=[t]),e.options.preload&&e.options.preload.indexOf(a)>-1)return v_(e,t,i);t.forEach(n=>{e.options.ns.indexOf(n)<0&&e.options.ns.push(n)}),e.loadLanguages(a,_V(e,i))},AV=(e,a,t={})=>!a.languages||!a.languages.length?(Ik(a,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:a.languages}),!0):a.hasLoadedNamespace(e,{lng:t.lng,precheck:(i,n)=>{if(t.bindI18n?.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!n(i.isLanguageChangingTo,e))return!1}});var Br=e=>typeof e=="string",pj=e=>typeof e=="object"&&e!==null;l();l();var gte=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,kte={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},hte=e=>kte[e],IV=e=>e.replace(gte,hte);var mj={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:IV},y_=(e={})=>{mj={...mj,...e}},Tk=()=>mj;l();var TV,f_=e=>{TV=e},Vd=()=>TV;l();var PV=S(R(),1);l();var __={type:"3rdParty",init(e){y_(e.options.react),f_(e)}};var bm=(0,PV.createContext)(),A_=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(a){a.forEach(t=>{this.usedNamespaces[t]||(this.usedNamespaces[t]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}};l();var Xi=S(R(),1);var yte=(e,a)=>{let t=(0,Xi.useRef)();return(0,Xi.useEffect)(()=>{t.current=a?t.current:e},[e,a]),t.current},zV=(e,a,t,i)=>e.getFixedT(a,t,i),fte=(e,a,t,i)=>(0,Xi.useCallback)(zV(e,a,t,i),[e,a,t,i]),uo=(e,a={})=>{let{i18n:t}=a,{i18n:i,defaultNS:n}=(0,Xi.useContext)(bm)||{},o=t||i||Vd();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new A_),!o){Ik(o,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");let I=(T,P)=>Br(P)?P:pj(P)&&Br(P.defaultValue)?P.defaultValue:Array.isArray(T)?T[T.length-1]:T,A=[I,{},!1];return A.t=I,A.i18n={},A.ready=!1,A}o.options.react?.wait&&Ik(o,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let r={...Tk(),...o.options.react,...a},{useSuspense:s,keyPrefix:d}=r,u=e||n||o.options?.defaultNS;u=Br(u)?[u]:u||["translation"],o.reportNamespaces.addUsedNamespaces?.(u);let p=(o.isInitialized||o.initializedStoreOnce)&&u.every(I=>AV(I,o,r)),m=fte(o,a.lng||null,r.nsMode==="fallback"?u:u[0],d),g=()=>m,b=()=>zV(o,a.lng||null,r.nsMode==="fallback"?u:u[0],d),[f,v]=(0,Xi.useState)(g),_=u.join();a.lng&&(_=`${a.lng}${_}`);let h=yte(_),k=(0,Xi.useRef)(!0);(0,Xi.useEffect)(()=>{let{bindI18n:I,bindI18nStore:A}=r;k.current=!0,!p&&!s&&(a.lng?uj(o,a.lng,u,()=>{k.current&&v(b)}):v_(o,u,()=>{k.current&&v(b)})),p&&h&&h!==_&&k.current&&v(b);let T=()=>{k.current&&v(b)};return I&&o?.on(I,T),A&&o?.store.on(A,T),()=>{k.current=!1,o&&I?.split(" ").forEach(P=>o.off(P,T)),A&&o&&A.split(" ").forEach(P=>o.store.off(P,T))}},[o,_]),(0,Xi.useEffect)(()=>{k.current&&p&&v(g)},[o,d,p]);let y=[f,o,p];if(y.t=f,y.i18n=o,y.ready=p,p||!p&&!s)return y;throw new Promise(I=>{a.lng?uj(o,a.lng,u,()=>I()):v_(o,u,()=>I())})};l();var wV=S(R(),1);l();l();var SV=S(R(),1);l();var Pte=S(R(),1);l();var Ate=S(R(),1);l();l();var Be=e=>typeof e=="string",zk=()=>{let e,a,t=new Promise((i,n)=>{e=i,a=n});return t.resolve=e,t.reject=a,t},jV=e=>e==null?"":""+e,zte=(e,a,t)=>{e.forEach(i=>{a[i]&&(t[i]=a[i])})},wte=/###/g,xV=e=>e&&e.indexOf("###")>-1?e.replace(wte,"."):e,CV=e=>!e||Be(e),wk=(e,a,t)=>{let i=Be(a)?a.split("."):a,n=0;for(;n<i.length-1;){if(CV(e))return{};let o=xV(i[n]);!e[o]&&t&&(e[o]=new t),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++n}return CV(e)?{}:{obj:e,k:xV(i[n])}},DV=(e,a,t)=>{let{obj:i,k:n}=wk(e,a,Object);if(i!==void 0||a.length===1){i[n]=t;return}let o=a[a.length-1],r=a.slice(0,a.length-1),s=wk(e,r,Object);for(;s.obj===void 0&&r.length;)o=`${r[r.length-1]}.${o}`,r=r.slice(0,r.length-1),s=wk(e,r,Object),s?.obj&&typeof s.obj[`${s.k}.${o}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=t},Ste=(e,a,t,i)=>{let{obj:n,k:o}=wk(e,a,Object);n[o]=n[o]||[],n[o].push(t)},T_=(e,a)=>{let{obj:t,k:i}=wk(e,a);if(t&&Object.prototype.hasOwnProperty.call(t,i))return t[i]},jte=(e,a,t)=>{let i=T_(e,t);return i!==void 0?i:T_(a,t)},RV=(e,a,t)=>{for(let i in a)i!=="__proto__"&&i!=="constructor"&&(i in e?Be(e[i])||e[i]instanceof String||Be(a[i])||a[i]instanceof String?t&&(e[i]=a[i]):RV(e[i],a[i],t):e[i]=a[i]);return e},vm=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),xte={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},Cte=e=>Be(e)?e.replace(/[&<>"'\/]/g,a=>xte[a]):e,gj=class{constructor(a){this.capacity=a,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(a){let t=this.regExpMap.get(a);if(t!==void 0)return t;let i=new RegExp(a);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(a,i),this.regExpQueue.push(a),i}},Dte=[" ",",","?","!",";"],Gte=new gj(20),Wte=(e,a,t)=>{a=a||"",t=t||"";let i=Dte.filter(r=>a.indexOf(r)<0&&t.indexOf(r)<0);if(i.length===0)return!0;let n=Gte.getRegExp(`(${i.map(r=>r==="?"?"\\?":r).join("|")})`),o=!n.test(e);if(!o){let r=e.indexOf(t);r>0&&!n.test(e.substring(0,r))&&(o=!0)}return o},kj=(e,a,t=".")=>{if(!e)return;if(e[a])return Object.prototype.hasOwnProperty.call(e,a)?e[a]:void 0;let i=a.split(t),n=e;for(let o=0;o<i.length;){if(!n||typeof n!="object")return;let r,s="";for(let d=o;d<i.length;++d)if(d!==o&&(s+=t),s+=i[d],r=n[s],r!==void 0){if(["string","number","boolean"].indexOf(typeof r)>-1&&d<i.length-1)continue;o+=d-o+1;break}n=r}return n},Sk=e=>e?.replace("_","-"),Ete={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,a){console?.[e]?.apply?.(console,a)}},hj=class e{constructor(a,t={}){this.init(a,t)}init(a,t={}){this.prefix=t.prefix||"i18next:",this.logger=a||Ete,this.options=t,this.debug=t.debug}log(...a){return this.forward(a,"log","",!0)}warn(...a){return this.forward(a,"warn","",!0)}error(...a){return this.forward(a,"error","")}deprecate(...a){return this.forward(a,"warn","WARNING DEPRECATED: ",!0)}forward(a,t,i,n){return n&&!this.debug?null:(Be(a[0])&&(a[0]=`${i}${this.prefix} ${a[0]}`),this.logger[t](a))}create(a){return new e(this.logger,{prefix:`${this.prefix}:${a}:`,...this.options})}clone(a){return a=a||this.options,a.prefix=a.prefix||this.prefix,new e(this.logger,a)}},qo=new hj,ym=class{constructor(){this.observers={}}on(a,t){return a.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let n=this.observers[i].get(t)||0;this.observers[i].set(t,n+1)}),this}off(a,t){if(this.observers[a]){if(!t){delete this.observers[a];return}this.observers[a].delete(t)}}emit(a,...t){this.observers[a]&&Array.from(this.observers[a].entries()).forEach(([n,o])=>{for(let r=0;r<o;r++)n(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,o])=>{for(let r=0;r<o;r++)n.apply(n,[a,...t])})}},P_=class extends ym{constructor(a,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=a||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(a){this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}removeNamespaces(a){let t=this.options.ns.indexOf(a);t>-1&&this.options.ns.splice(t,1)}getResource(a,t,i,n={}){let o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,r=n.ignoreJSONStructure!==void 0?n.ignoreJSONStructure:this.options.ignoreJSONStructure,s;a.indexOf(".")>-1?s=a.split("."):(s=[a,t],i&&(Array.isArray(i)?s.push(...i):Be(i)&&o?s.push(...i.split(o)):s.push(i)));let d=T_(this.data,s);return!d&&!t&&!i&&a.indexOf(".")>-1&&(a=s[0],t=s[1],i=s.slice(2).join(".")),d||!r||!Be(i)?d:kj(this.data?.[a]?.[t],i,o)}addResource(a,t,i,n,o={silent:!1}){let r=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,s=[a,t];i&&(s=s.concat(r?i.split(r):i)),a.indexOf(".")>-1&&(s=a.split("."),n=t,t=s[1]),this.addNamespaces(t),DV(this.data,s,n),o.silent||this.emit("added",a,t,i,n)}addResources(a,t,i,n={silent:!1}){for(let o in i)(Be(i[o])||Array.isArray(i[o]))&&this.addResource(a,t,o,i[o],{silent:!0});n.silent||this.emit("added",a,t,i)}addResourceBundle(a,t,i,n,o,r={silent:!1,skipCopy:!1}){let s=[a,t];a.indexOf(".")>-1&&(s=a.split("."),n=i,i=t,t=s[1]),this.addNamespaces(t);let d=T_(this.data,s)||{};r.skipCopy||(i=JSON.parse(JSON.stringify(i))),n?RV(d,i,o):d={...d,...i},DV(this.data,s,d),r.silent||this.emit("added",a,t,i)}removeResourceBundle(a,t){this.hasResourceBundle(a,t)&&delete this.data[a][t],this.removeNamespaces(t),this.emit("removed",a,t)}hasResourceBundle(a,t){return this.getResource(a,t)!==void 0}getResourceBundle(a,t){return t||(t=this.options.defaultNS),this.getResource(a,t)}getDataByLanguage(a){return this.data[a]}hasLanguageSomeTranslations(a){let t=this.getDataByLanguage(a);return!!(t&&Object.keys(t)||[]).find(n=>t[n]&&Object.keys(t[n]).length>0)}toJSON(){return this.data}},ZV={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,a,t,i,n){return e.forEach(o=>{a=this.processors[o]?.process(a,t,i,n)??a}),a}},GV={},WV=e=>!Be(e)&&typeof e!="boolean"&&typeof e!="number",z_=class e extends ym{constructor(a,t={}){super(),zte(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],a,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=qo.create("translator")}changeLanguage(a){a&&(this.language=a)}exists(a,t={interpolation:{}}){let i={...t};return a==null?!1:this.resolve(a,i)?.res!==void 0}extractFromKey(a,t){let i=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let n=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],r=i&&a.indexOf(i)>-1,s=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Wte(a,i,n);if(r&&!s){let d=a.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:a,namespaces:Be(o)?[o]:o};let u=a.split(i);(i!==n||i===n&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),a=u.join(n)}return{key:a,namespaces:Be(o)?[o]:o}}translate(a,t,i){let n=typeof t=="object"?{...t}:t;if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(n={...n}),n||(n={}),a==null)return"";Array.isArray(a)||(a=[String(a)]);let o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:d}=this.extractFromKey(a[a.length-1],n),u=d[d.length-1],p=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;p===void 0&&(p=":");let m=n.lng||this.language,g=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m?.toLowerCase()==="cimode")return g?o?{res:`${u}${p}${s}`,usedKey:s,exactUsedKey:s,usedLng:m,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${p}${s}`:o?{res:s,usedKey:s,exactUsedKey:s,usedLng:m,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:s;let b=this.resolve(a,n),f=b?.res,v=b?.usedKey||s,_=b?.exactUsedKey||s,h=["[object Number]","[object Function]","[object RegExp]"],k=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,I=n.count!==void 0&&!Be(n.count),A=e.hasDefaultValue(n),T=I?this.pluralResolver.getSuffix(m,n.count,n):"",P=n.ordinal&&I?this.pluralResolver.getSuffix(m,n.count,{ordinal:!1}):"",z=I&&!n.ordinal&&n.count===0,D=z&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${T}`]||n[`defaultValue${P}`]||n.defaultValue,C=f;y&&!f&&A&&(C=D);let W=WV(C),F=Object.prototype.toString.apply(C);if(y&&C&&W&&h.indexOf(F)<0&&!(Be(k)&&Array.isArray(C))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let N=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,C,{...n,ns:d}):`key '${s} (${this.language})' returned an object instead of string.`;return o?(b.res=N,b.usedParams=this.getUsedParamsDetails(n),b):N}if(r){let N=Array.isArray(C),q=N?[]:{},Z=N?_:v;for(let x in C)if(Object.prototype.hasOwnProperty.call(C,x)){let E=`${Z}${r}${x}`;A&&!f?q[x]=this.translate(E,{...n,defaultValue:WV(D)?D[x]:void 0,joinArrays:!1,ns:d}):q[x]=this.translate(E,{...n,joinArrays:!1,ns:d}),q[x]===E&&(q[x]=C[x])}f=q}}else if(y&&Be(k)&&Array.isArray(f))f=f.join(k),f&&(f=this.extendTranslation(f,a,n,i));else{let N=!1,q=!1;!this.isValidLookup(f)&&A&&(N=!0,f=D),this.isValidLookup(f)||(q=!0,f=s);let x=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&q?void 0:f,E=A&&D!==f&&this.options.updateMissing;if(q||N||E){if(this.logger.log(E?"updateKey":"missingKey",m,u,s,E?D:f),r){let be=this.resolve(s,{...n,keySeparator:!1});be&&be.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let V=[],pe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&pe&&pe[0])for(let be=0;be<pe.length;be++)V.push(pe[be]);else this.options.saveMissingTo==="all"?V=this.languageUtils.toResolveHierarchy(n.lng||this.language):V.push(n.lng||this.language);let we=(be,ge,G)=>{let ee=A&&G!==f?G:x;this.options.missingKeyHandler?this.options.missingKeyHandler(be,u,ge,ee,E,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(be,u,ge,ee,E,n),this.emit("missingKey",be,u,ge,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&I?V.forEach(be=>{let ge=this.pluralResolver.getSuffixes(be,n);z&&n[`defaultValue${this.options.pluralSeparator}zero`]&&ge.indexOf(`${this.options.pluralSeparator}zero`)<0&&ge.push(`${this.options.pluralSeparator}zero`),ge.forEach(G=>{we([be],s+G,n[`defaultValue${G}`]||D)})}):we(V,s,D))}f=this.extendTranslation(f,a,n,b,i),q&&f===s&&this.options.appendNamespaceToMissingKey&&(f=`${u}${p}${s}`),(q||N)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${p}${s}`:s,N?f:void 0,n))}return o?(b.res=f,b.usedParams=this.getUsedParamsDetails(n),b):f}extendTranslation(a,t,i,n,o){if(this.i18nFormat?.parse)a=this.i18nFormat.parse(a,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let d=Be(a)&&(i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),u;if(d){let m=a.match(this.interpolator.nestingRegexp);u=m&&m.length}let p=i.replace&&!Be(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(p={...this.options.interpolation.defaultVariables,...p}),a=this.interpolator.interpolate(a,p,i.lng||this.language||n.usedLng,i),d){let m=a.match(this.interpolator.nestingRegexp),g=m&&m.length;u<g&&(i.nest=!1)}!i.lng&&n&&n.res&&(i.lng=this.language||n.usedLng),i.nest!==!1&&(a=this.interpolator.nest(a,(...m)=>o?.[0]===m[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${m[0]} in key: ${t[0]}`),null):this.translate(...m,t),i)),i.interpolation&&this.interpolator.reset()}let r=i.postProcess||this.options.postProcess,s=Be(r)?[r]:r;return a!=null&&s?.length&&i.applyPostProcessor!==!1&&(a=ZV.handle(s,a,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),a}resolve(a,t={}){let i,n,o,r,s;return Be(a)&&(a=[a]),a.forEach(d=>{if(this.isValidLookup(i))return;let u=this.extractFromKey(d,t),p=u.key;n=p;let m=u.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));let g=t.count!==void 0&&!Be(t.count),b=g&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(Be(t.context)||typeof t.context=="number")&&t.context!=="",v=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);m.forEach(_=>{this.isValidLookup(i)||(s=_,!GV[`${v[0]}-${_}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(s)&&(GV[`${v[0]}-${_}`]=!0,this.logger.warn(`key "${n}" for languages "${v.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),v.forEach(h=>{if(this.isValidLookup(i))return;r=h;let k=[p];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(k,p,h,_,t);else{let I;g&&(I=this.pluralResolver.getSuffix(h,t.count,t));let A=`${this.options.pluralSeparator}zero`,T=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(k.push(p+I),t.ordinal&&I.indexOf(T)===0&&k.push(p+I.replace(T,this.options.pluralSeparator)),b&&k.push(p+A)),f){let P=`${p}${this.options.contextSeparator}${t.context}`;k.push(P),g&&(k.push(P+I),t.ordinal&&I.indexOf(T)===0&&k.push(P+I.replace(T,this.options.pluralSeparator)),b&&k.push(P+A))}}let y;for(;y=k.pop();)this.isValidLookup(i)||(o=y,i=this.getResource(h,_,y,t))}))})}),{res:i,usedKey:n,exactUsedKey:o,usedLng:r,usedNS:s}}isValidLookup(a){return a!==void 0&&!(!this.options.returnNull&&a===null)&&!(!this.options.returnEmptyString&&a==="")}getResource(a,t,i,n={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(a,t,i,n):this.resourceStore.getResource(a,t,i,n)}getUsedParamsDetails(a={}){let t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=a.replace&&!Be(a.replace),n=i?a.replace:a;if(i&&typeof a.count<"u"&&(n.count=a.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!i){n={...n};for(let o of t)delete n[o]}return n}static hasDefaultValue(a){let t="defaultValue";for(let i in a)if(Object.prototype.hasOwnProperty.call(a,i)&&t===i.substring(0,t.length)&&a[i]!==void 0)return!0;return!1}},w_=class{constructor(a){this.options=a,this.supportedLngs=this.options.supportedLngs||!1,this.logger=qo.create("languageUtils")}getScriptPartFromCode(a){if(a=Sk(a),!a||a.indexOf("-")<0)return null;let t=a.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(a){if(a=Sk(a),!a||a.indexOf("-")<0)return a;let t=a.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(a){if(Be(a)&&a.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(a)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?a.toLowerCase():a)}return this.options.cleanCode||this.options.lowerCaseLng?a.toLowerCase():a}isSupportedCode(a){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(a=this.getLanguagePartFromCode(a)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(a)>-1}getBestMatchFromCodes(a){if(!a)return null;let t;return a.forEach(i=>{if(t)return;let n=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&a.forEach(i=>{if(t)return;let n=this.getScriptPartFromCode(i);if(this.isSupportedCode(n))return t=n;let o=this.getLanguagePartFromCode(i);if(this.isSupportedCode(o))return t=o;t=this.options.supportedLngs.find(r=>{if(r===o)return r;if(!(r.indexOf("-")<0&&o.indexOf("-")<0)&&(r.indexOf("-")>0&&o.indexOf("-")<0&&r.substring(0,r.indexOf("-"))===o||r.indexOf(o)===0&&o.length>1))return r})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(a,t){if(!a)return[];if(typeof a=="function"&&(a=a(t)),Be(a)&&(a=[a]),Array.isArray(a))return a;if(!t)return a.default||[];let i=a[t];return i||(i=a[this.getScriptPartFromCode(t)]),i||(i=a[this.formatLanguageCode(t)]),i||(i=a[this.getLanguagePartFromCode(t)]),i||(i=a.default),i||[]}toResolveHierarchy(a,t){let i=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],a),n=[],o=r=>{r&&(this.isSupportedCode(r)?n.push(r):this.logger.warn(`rejecting language code not found in supportedLngs: ${r}`))};return Be(a)&&(a.indexOf("-")>-1||a.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(a)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(a)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(a))):Be(a)&&o(this.formatLanguageCode(a)),i.forEach(r=>{n.indexOf(r)<0&&o(this.formatLanguageCode(r))}),n}},EV={zero:0,one:1,two:2,few:3,many:4,other:5},LV={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})},bj=class{constructor(a,t={}){this.languageUtils=a,this.options=t,this.logger=qo.create("pluralResolver"),this.pluralRulesCache={}}addRule(a,t){this.rules[a]=t}clearCache(){this.pluralRulesCache={}}getRule(a,t={}){let i=Sk(a==="dev"?"en":a),n=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:i,type:n});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let r;try{r=new Intl.PluralRules(i,{type:n})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),LV;if(!a.match(/-|_/))return LV;let d=this.languageUtils.getLanguagePartFromCode(a);r=this.getRule(d,t)}return this.pluralRulesCache[o]=r,r}needsPlural(a,t={}){let i=this.getRule(a,t);return i||(i=this.getRule("dev",t)),i?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(a,t,i={}){return this.getSuffixes(a,i).map(n=>`${t}${n}`)}getSuffixes(a,t={}){let i=this.getRule(a,t);return i||(i=this.getRule("dev",t)),i?i.resolvedOptions().pluralCategories.sort((n,o)=>EV[n]-EV[o]).map(n=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${n}`):[]}getSuffix(a,t,i={}){let n=this.getRule(a,i);return n?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:(this.logger.warn(`no plural rule found for: ${a}`),this.getSuffix("dev",t,i))}},MV=(e,a,t,i=".",n=!0)=>{let o=jte(e,a,t);return!o&&n&&Be(t)&&(o=kj(e,t,i),o===void 0&&(o=kj(a,t,i))),o},cj=e=>e.replace(/\$/g,"$$$$"),vj=class{constructor(a={}){this.logger=qo.create("interpolator"),this.options=a,this.format=a?.interpolation?.format||(t=>t),this.init(a)}init(a={}){a.interpolation||(a.interpolation={escapeValue:!0});let{escape:t,escapeValue:i,useRawValueToEscape:n,prefix:o,prefixEscaped:r,suffix:s,suffixEscaped:d,formatSeparator:u,unescapeSuffix:p,unescapePrefix:m,nestingPrefix:g,nestingPrefixEscaped:b,nestingSuffix:f,nestingSuffixEscaped:v,nestingOptionsSeparator:_,maxReplaces:h,alwaysFormat:k}=a.interpolation;this.escape=t!==void 0?t:Cte,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=n!==void 0?n:!1,this.prefix=o?vm(o):r||"{{",this.suffix=s?vm(s):d||"}}",this.formatSeparator=u||",",this.unescapePrefix=p?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":p||"",this.nestingPrefix=g?vm(g):b||vm("$t("),this.nestingSuffix=f?vm(f):v||vm(")"),this.nestingOptionsSeparator=_||",",this.maxReplaces=h||1e3,this.alwaysFormat=k!==void 0?k:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let a=(t,i)=>t?.source===i?(t.lastIndex=0,t):new RegExp(i,"g");this.regexp=a(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=a(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=a(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(a,t,i,n){let o,r,s,d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=b=>{if(b.indexOf(this.formatSeparator)<0){let h=MV(t,d,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(h,void 0,i,{...n,...t,interpolationkey:b}):h}let f=b.split(this.formatSeparator),v=f.shift().trim(),_=f.join(this.formatSeparator).trim();return this.format(MV(t,d,v,this.options.keySeparator,this.options.ignoreJSONStructure),_,i,{...n,...t,interpolationkey:v})};this.resetRegExp();let p=n?.missingInterpolationHandler||this.options.missingInterpolationHandler,m=n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:b=>cj(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?cj(this.escape(b)):cj(b)}].forEach(b=>{for(s=0;o=b.regex.exec(a);){let f=o[1].trim();if(r=u(f),r===void 0)if(typeof p=="function"){let _=p(a,o,n);r=Be(_)?_:""}else if(n&&Object.prototype.hasOwnProperty.call(n,f))r="";else if(m){r=o[0];continue}else this.logger.warn(`missed to pass in variable ${f} for interpolating ${a}`),r="";else!Be(r)&&!this.useRawValueToEscape&&(r=jV(r));let v=b.safeValue(r);if(a=a.replace(o[0],v),m?(b.regex.lastIndex+=r.length,b.regex.lastIndex-=o[0].length):b.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),a}nest(a,t,i={}){let n,o,r,s=(d,u)=>{let p=this.nestingOptionsSeparator;if(d.indexOf(p)<0)return d;let m=d.split(new RegExp(`${p}[ ]*{`)),g=`{${m[1]}`;d=m[0],g=this.interpolate(g,r);let b=g.match(/'/g),f=g.match(/"/g);((b?.length??0)%2===0&&!f||f.length%2!==0)&&(g=g.replace(/'/g,'"'));try{r=JSON.parse(g),u&&(r={...u,...r})}catch(v){return this.logger.warn(`failed parsing options string in nesting for key ${d}`,v),`${d}${p}${g}`}return r.defaultValue&&r.defaultValue.indexOf(this.prefix)>-1&&delete r.defaultValue,d};for(;n=this.nestingRegexp.exec(a);){let d=[];r={...i},r=r.replace&&!Be(r.replace)?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;let u=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){let p=n[1].split(this.formatSeparator).map(m=>m.trim());n[1]=p.shift(),d=p,u=!0}if(o=t(s.call(this,n[1].trim(),r),r),o&&n[0]===a&&!Be(o))return o;Be(o)||(o=jV(o)),o||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${a}`),o=""),u&&(o=d.reduce((p,m)=>this.format(p,m,i.lng,{...i,interpolationkey:n[1].trim()}),o.trim())),a=a.replace(n[0],o),this.regexp.lastIndex=0}return a}},Lte=e=>{let a=e.toLowerCase().trim(),t={};if(e.indexOf("(")>-1){let i=e.split("(");a=i[0].toLowerCase().trim();let n=i[1].substring(0,i[1].length-1);a==="currency"&&n.indexOf(":")<0?t.currency||(t.currency=n.trim()):a==="relativetime"&&n.indexOf(":")<0?t.range||(t.range=n.trim()):n.split(";").forEach(r=>{if(r){let[s,...d]=r.split(":"),u=d.join(":").trim().replace(/^'+|'+$/g,""),p=s.trim();t[p]||(t[p]=u),u==="false"&&(t[p]=!1),u==="true"&&(t[p]=!0),isNaN(u)||(t[p]=parseInt(u,10))}})}return{formatName:a,formatOptions:t}},FV=e=>{let a={};return(t,i,n)=>{let o=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(o={...o,[n.interpolationkey]:void 0});let r=i+JSON.stringify(o),s=a[r];return s||(s=e(Sk(i),n),a[r]=s),s(t)}},Mte=e=>(a,t,i)=>e(Sk(t),i)(a),yj=class{constructor(a={}){this.logger=qo.create("formatter"),this.options=a,this.init(a)}init(a,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let i=t.cacheInBuiltFormats?FV:Mte;this.formats={number:i((n,o)=>{let r=new Intl.NumberFormat(n,{...o});return s=>r.format(s)}),currency:i((n,o)=>{let r=new Intl.NumberFormat(n,{...o,style:"currency"});return s=>r.format(s)}),datetime:i((n,o)=>{let r=new Intl.DateTimeFormat(n,{...o});return s=>r.format(s)}),relativetime:i((n,o)=>{let r=new Intl.RelativeTimeFormat(n,{...o});return s=>r.format(s,o.range||"day")}),list:i((n,o)=>{let r=new Intl.ListFormat(n,{...o});return s=>r.format(s)})}}add(a,t){this.formats[a.toLowerCase().trim()]=t}addCached(a,t){this.formats[a.toLowerCase().trim()]=FV(t)}format(a,t,i,n={}){let o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(s=>s.indexOf(")")>-1)){let s=o.findIndex(d=>d.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,s)].join(this.formatSeparator)}return o.reduce((s,d)=>{let{formatName:u,formatOptions:p}=Lte(d);if(this.formats[u]){let m=s;try{let g=n?.formatParams?.[n.interpolationkey]||{},b=g.locale||g.lng||n.locale||n.lng||i;m=this.formats[u](s,b,{...p,...n,...g})}catch(g){this.logger.warn(g)}return m}else this.logger.warn(`there was no format function for ${u}`);return s},a)}},Fte=(e,a)=>{e.pending[a]!==void 0&&(delete e.pending[a],e.pendingCount--)},fj=class extends ym{constructor(a,t,i,n={}){super(),this.backend=a,this.store=t,this.services=i,this.languageUtils=i.languageUtils,this.options=n,this.logger=qo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(i,n.backend,n)}queueLoad(a,t,i,n){let o={},r={},s={},d={};return a.forEach(u=>{let p=!0;t.forEach(m=>{let g=`${u}|${m}`;!i.reload&&this.store.hasResourceBundle(u,m)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?r[g]===void 0&&(r[g]=!0):(this.state[g]=1,p=!1,r[g]===void 0&&(r[g]=!0),o[g]===void 0&&(o[g]=!0),d[m]===void 0&&(d[m]=!0)))}),p||(s[u]=!0)}),(Object.keys(o).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(o),pending:Object.keys(r),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(d)}}loaded(a,t,i){let n=a.split("|"),o=n[0],r=n[1];t&&this.emit("failedLoading",o,r,t),!t&&i&&this.store.addResourceBundle(o,r,i,void 0,void 0,{skipCopy:!0}),this.state[a]=t?-1:2,t&&i&&(this.state[a]=0);let s={};this.queue.forEach(d=>{Ste(d.loaded,[o],r),Fte(d,a),t&&d.errors.push(t),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(u=>{s[u]||(s[u]={});let p=d.loaded[u];p.length&&p.forEach(m=>{s[u][m]===void 0&&(s[u][m]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(d=>!d.done)}read(a,t,i,n=0,o=this.retryTimeout,r){if(!a.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:a,ns:t,fcName:i,tried:n,wait:o,callback:r});return}this.readingCalls++;let s=(u,p)=>{if(this.readingCalls--,this.waitingReads.length>0){let m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(u&&p&&n<this.maxRetries){setTimeout(()=>{this.read.call(this,a,t,i,n+1,o*2,r)},o);return}r(u,p)},d=this.backend[i].bind(this.backend);if(d.length===2){try{let u=d(a,t);u&&typeof u.then=="function"?u.then(p=>s(null,p)).catch(s):s(null,u)}catch(u){s(u)}return}return d(a,t,s)}prepareLoading(a,t,i={},n){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();Be(a)&&(a=this.languageUtils.toResolveHierarchy(a)),Be(t)&&(t=[t]);let o=this.queueLoad(a,t,i,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach(r=>{this.loadOne(r)})}load(a,t,i){this.prepareLoading(a,t,{},i)}reload(a,t,i){this.prepareLoading(a,t,{reload:!0},i)}loadOne(a,t=""){let i=a.split("|"),n=i[0],o=i[1];this.read(n,o,"read",void 0,void 0,(r,s)=>{r&&this.logger.warn(`${t}loading namespace ${o} for language ${n} failed`,r),!r&&s&&this.logger.log(`${t}loaded namespace ${o} for language ${n}`,s),this.loaded(a,r,s)})}saveMissing(a,t,i,n,o,r={},s=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${i}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend?.create){let d={...r,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let p;u.length===5?p=u(a,t,i,n,d):p=u(a,t,i,n),p&&typeof p.then=="function"?p.then(m=>s(null,m)).catch(s):s(null,p)}catch(p){s(p)}else u(a,t,i,n,s,d)}!a||!a[0]||this.store.addResource(a[0],t,i,n)}}},NV=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let a={};if(typeof e[1]=="object"&&(a=e[1]),Be(e[1])&&(a.defaultValue=e[1]),Be(e[2])&&(a.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let t=e[3]||e[2];Object.keys(t).forEach(i=>{a[i]=t[i]})}return a},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),BV=e=>(Be(e.ns)&&(e.ns=[e.ns]),Be(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Be(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),I_=()=>{},Nte=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]=="function"&&(e[t]=e[t].bind(e))})},S_=class e extends ym{constructor(a={},t){if(super(),this.options=BV(a),this.services={},this.logger=qo,this.modules={external:[]},Nte(this),t&&!this.isInitialized&&!a.isClone){if(!this.options.initAsync)return this.init(a,t),this;setTimeout(()=>{this.init(a,t)},0)}}init(a={},t){this.isInitializing=!0,typeof a=="function"&&(t=a,a={}),a.defaultNS==null&&a.ns&&(Be(a.ns)?a.defaultNS=a.ns:a.ns.indexOf("translation")<0&&(a.defaultNS=a.ns[0]));let i=NV();this.options={...i,...this.options,...BV(a)},this.options.interpolation={...i.interpolation,...this.options.interpolation},a.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=a.keySeparator),a.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=a.nsSeparator);let n=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?qo.init(n(this.modules.logger),this.options):qo.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=yj;let p=new w_(this.options);this.store=new P_(this.options.resources,this.options);let m=this.services;m.logger=qo,m.resourceStore=this.store,m.languageUtils=p,m.pluralResolver=new bj(p,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(m.formatter=n(u),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new vj(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new fj(n(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",(g,...b)=>{this.emit(g,...b)}),this.modules.languageDetector&&(m.languageDetector=n(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=n(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new z_(this.services,this.options),this.translator.on("*",(g,...b)=>{this.emit(g,...b)}),this.modules.external.forEach(g=>{g.init&&g.init(this)})}if(this.format=this.options.interpolation.format,t||(t=I_),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=(...p)=>this.store[u](...p)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...p)=>(this.store[u](...p),this)});let s=zk(),d=()=>{let u=(p,m)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),s.resolve(m),t(p,m)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?d():setTimeout(d,0),s}loadResources(a,t=I_){let i=t,n=Be(a)?a:this.language;if(typeof a=="function"&&(i=a),!this.options.resources||this.options.partialBundledLanguages){if(n?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let o=[],r=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};n?r(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>r(d)),this.options.preload?.forEach?.(s=>r(s)),this.services.backendConnector.load(o,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(s)})}else i(null)}reloadResources(a,t,i){let n=zk();return typeof a=="function"&&(i=a,a=void 0),typeof t=="function"&&(i=t,t=void 0),a||(a=this.languages),t||(t=this.options.ns),i||(i=I_),this.services.backendConnector.reload(a,t,o=>{n.resolve(),i(o)}),n}use(a){if(!a)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!a.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return a.type==="backend"&&(this.modules.backend=a),(a.type==="logger"||a.log&&a.warn&&a.error)&&(this.modules.logger=a),a.type==="languageDetector"&&(this.modules.languageDetector=a),a.type==="i18nFormat"&&(this.modules.i18nFormat=a),a.type==="postProcessor"&&ZV.addPostProcessor(a),a.type==="formatter"&&(this.modules.formatter=a),a.type==="3rdParty"&&this.modules.external.push(a),this}setResolvedLanguage(a){if(!(!a||!this.languages)&&!(["cimode","dev"].indexOf(a)>-1)){for(let t=0;t<this.languages.length;t++){let i=this.languages[t];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!this.resolvedLanguage&&this.languages.indexOf(a)<0&&this.store.hasLanguageSomeTranslations(a)&&(this.resolvedLanguage=a,this.languages.unshift(a))}}changeLanguage(a,t){this.isLanguageChangingTo=a;let i=zk();this.emit("languageChanging",a);let n=s=>{this.language=s,this.languages=this.services.languageUtils.toResolveHierarchy(s),this.resolvedLanguage=void 0,this.setResolvedLanguage(s)},o=(s,d)=>{d?this.isLanguageChangingTo===a&&(n(d),this.translator.changeLanguage(d),this.isLanguageChangingTo=void 0,this.emit("languageChanged",d),this.logger.log("languageChanged",d)):this.isLanguageChangingTo=void 0,i.resolve((...u)=>this.t(...u)),t&&t(s,(...u)=>this.t(...u))},r=s=>{!a&&!s&&this.services.languageDetector&&(s=[]);let d=Be(s)?s:s&&s[0],u=this.store.hasLanguageSomeTranslations(d)?d:this.services.languageUtils.getBestMatchFromCodes(Be(s)?[s]:s);u&&(this.language||n(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector?.cacheUserLanguage?.(u)),this.loadResources(u,p=>{o(p,u)})};return!a&&this.services.languageDetector&&!this.services.languageDetector.async?r(this.services.languageDetector.detect()):!a&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(r):this.services.languageDetector.detect(r):r(a),i}getFixedT(a,t,i){let n=(o,r,...s)=>{let d;typeof r!="object"?d=this.options.overloadTranslationOptionHandler([o,r].concat(s)):d={...r},d.lng=d.lng||n.lng,d.lngs=d.lngs||n.lngs,d.ns=d.ns||n.ns,d.keyPrefix!==""&&(d.keyPrefix=d.keyPrefix||i||n.keyPrefix);let u=this.options.keySeparator||".",p;return d.keyPrefix&&Array.isArray(o)?p=o.map(m=>`${d.keyPrefix}${u}${m}`):p=d.keyPrefix?`${d.keyPrefix}${u}${o}`:o,this.t(p,d)};return Be(a)?n.lng=a:n.lngs=a,n.ns=t,n.keyPrefix=i,n}t(...a){return this.translator?.translate(...a)}exists(...a){return this.translator?.exists(...a)}setDefaultNamespace(a){this.options.defaultNS=a}hasLoadedNamespace(a,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=t.lng||this.resolvedLanguage||this.languages[0],n=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let r=(s,d)=>{let u=this.services.backendConnector.state[`${s}|${d}`];return u===-1||u===0||u===2};if(t.precheck){let s=t.precheck(this,r);if(s!==void 0)return s}return!!(this.hasResourceBundle(i,a)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||r(i,a)&&(!n||r(o,a)))}loadNamespaces(a,t){let i=zk();return this.options.ns?(Be(a)&&(a=[a]),a.forEach(n=>{this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}),this.loadResources(n=>{i.resolve(),t&&t(n)}),i):(t&&t(),Promise.resolve())}loadLanguages(a,t){let i=zk();Be(a)&&(a=[a]);let n=this.options.preload||[],o=a.filter(r=>n.indexOf(r)<0&&this.services.languageUtils.isSupportedCode(r));return o.length?(this.options.preload=n.concat(o),this.loadResources(r=>{i.resolve(),t&&t(r)}),i):(t&&t(),Promise.resolve())}dir(a){if(a||(a=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!a)return"rtl";let t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services?.languageUtils||new w_(NV());return t.indexOf(i.getLanguagePartFromCode(a))>-1||a.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(a={},t){return new e(a,t)}cloneInstance(a={},t=I_){let i=a.forkResourceStore;i&&delete a.forkResourceStore;let n={...this.options,...a,isClone:!0},o=new e(n);if((a.debug!==void 0||a.prefix!==void 0)&&(o.logger=o.logger.clone(a)),["store","services","language"].forEach(s=>{o[s]=this[s]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},i){let s=Object.keys(this.store.data).reduce((d,u)=>(d[u]={...this.store.data[u]},d[u]=Object.keys(d[u]).reduce((p,m)=>(p[m]={...d[u][m]},p),d[u]),d),{});o.store=new P_(s,n),o.services.resourceStore=o.store}return o.translator=new z_(o.services,n),o.translator.on("*",(s,...d)=>{o.emit(s,...d)}),o.init(n,t),o.translator.options=n,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},xt=S_.createInstance();xt.createInstance=S_.createInstance;var Ora=xt.createInstance,Kra=xt.dir,Hra=xt.init,Yra=xt.loadResources,Qra=xt.reloadResources,$ra=xt.use,Jra=xt.changeLanguage,Xra=xt.getFixedT,j_=xt.t,esa=xt.exists,asa=xt.setDefaultNamespace,tsa=xt.hasLoadedNamespace,isa=xt.loadNamespaces,nsa=xt.loadLanguages;l();var{slice:Bte,forEach:Rte}=[];function Zte(e){return Rte.call(Bte.call(arguments,1),a=>{if(a)for(let t in a)e[t]===void 0&&(e[t]=a[t])}),e}function qte(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(t=>t.test(e))}var qV=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Vte=function(e,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},n=encodeURIComponent(a),o=`${e}=${n}`;if(i.maxAge>0){let r=i.maxAge-0;if(Number.isNaN(r))throw new Error("maxAge should be a Number");o+=`; Max-Age=${Math.floor(r)}`}if(i.domain){if(!qV.test(i.domain))throw new TypeError("option domain is invalid");o+=`; Domain=${i.domain}`}if(i.path){if(!qV.test(i.path))throw new TypeError("option path is invalid");o+=`; Path=${i.path}`}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");o+=`; Expires=${i.expires.toUTCString()}`}if(i.httpOnly&&(o+="; HttpOnly"),i.secure&&(o+="; Secure"),i.sameSite)switch(typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite){case!0:o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"strict":o+="; SameSite=Strict";break;case"none":o+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i.partitioned&&(o+="; Partitioned"),o},VV={create(e,a,t,i){let n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};t&&(n.expires=new Date,n.expires.setTime(n.expires.getTime()+t*60*1e3)),i&&(n.domain=i),document.cookie=Vte(e,a,n)},read(e){let a=`${e}=`,t=document.cookie.split(";");for(let i=0;i<t.length;i++){let n=t[i];for(;n.charAt(0)===" ";)n=n.substring(1,n.length);if(n.indexOf(a)===0)return n.substring(a.length,n.length)}return null},remove(e,a){this.create(e,"",-1,a)}},Ute={name:"cookie",lookup(e){let{lookupCookie:a}=e;if(a&&typeof document<"u")return VV.read(a)||void 0},cacheUserLanguage(e,a){let{lookupCookie:t,cookieMinutes:i,cookieDomain:n,cookieOptions:o}=a;t&&typeof document<"u"&&VV.create(t,e,i,n,o)}},Ote={name:"querystring",lookup(e){let{lookupQuerystring:a}=e,t;if(typeof window<"u"){let{search:i}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));let o=i.substring(1).split("&");for(let r=0;r<o.length;r++){let s=o[r].indexOf("=");s>0&&o[r].substring(0,s)===a&&(t=o[r].substring(s+1))}}return t}},Kte={name:"hash",lookup(e){let{lookupHash:a,lookupFromHashIndex:t}=e,i;if(typeof window<"u"){let{hash:n}=window.location;if(n&&n.length>2){let o=n.substring(1);if(a){let r=o.split("&");for(let s=0;s<r.length;s++){let d=r[s].indexOf("=");d>0&&r[s].substring(0,d)===a&&(i=r[s].substring(d+1))}}if(i)return i;if(!i&&t>-1){let r=n.match(/\/([a-zA-Z-]*)/g);return Array.isArray(r)?r[typeof t=="number"?t:0]?.replace("/",""):void 0}}}return i}},fm=null,UV=()=>{if(fm!==null)return fm;try{if(fm=typeof window<"u"&&window.localStorage!==null,!fm)return!1;let e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{fm=!1}return fm},Hte={name:"localStorage",lookup(e){let{lookupLocalStorage:a}=e;if(a&&UV())return window.localStorage.getItem(a)||void 0},cacheUserLanguage(e,a){let{lookupLocalStorage:t}=a;t&&UV()&&window.localStorage.setItem(t,e)}},_m=null,OV=()=>{if(_m!==null)return _m;try{if(_m=typeof window<"u"&&window.sessionStorage!==null,!_m)return!1;let e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{_m=!1}return _m},Yte={name:"sessionStorage",lookup(e){let{lookupSessionStorage:a}=e;if(a&&OV())return window.sessionStorage.getItem(a)||void 0},cacheUserLanguage(e,a){let{lookupSessionStorage:t}=a;t&&OV()&&window.sessionStorage.setItem(t,e)}},Qte={name:"navigator",lookup(e){let a=[];if(typeof navigator<"u"){let{languages:t,userLanguage:i,language:n}=navigator;if(t)for(let o=0;o<t.length;o++)a.push(t[o]);i&&a.push(i),n&&a.push(n)}return a.length>0?a:void 0}},$te={name:"htmlTag",lookup(e){let{htmlTag:a}=e,t,i=a||(typeof document<"u"?document.documentElement:null);return i&&typeof i.getAttribute=="function"&&(t=i.getAttribute("lang")),t}},Jte={name:"path",lookup(e){let{lookupFromPathIndex:a}=e;if(typeof window>"u")return;let t=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(t)?t[typeof a=="number"?a:0]?.replace("/",""):void 0}},Xte={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:a}=e,t=typeof a=="number"?a+1:1,i=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i[t]}},KV=!1;try{document.cookie,KV=!0}catch{}var HV=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];KV||HV.splice(1,1);var eie=()=>({order:HV,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}),jk=class{constructor(a){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(a,t)}init(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=a,this.options=Zte(t,this.options||{},eie()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=n=>n.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(Ute),this.addDetector(Ote),this.addDetector(Hte),this.addDetector(Yte),this.addDetector(Qte),this.addDetector($te),this.addDetector(Jte),this.addDetector(Xte),this.addDetector(Kte)}addDetector(a){return this.detectors[a.name]=a,this}detect(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,t=[];return a.forEach(i=>{if(this.detectors[i]){let n=this.detectors[i].lookup(this.options);n&&typeof n=="string"&&(n=[n]),n&&(t=t.concat(n))}}),t=t.filter(i=>i!=null&&!qte(i)).map(i=>this.options.convertDetectedLanguage(i)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?t:t.length>0?t[0]:null}cacheUserLanguage(a){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(a)>-1||t.forEach(i=>{this.detectors[i]&&this.detectors[i].cacheUserLanguage(a,this.options)}))}};jk.type="languageDetector";var YV={crisp:{choices:{resolve:"مارك حل",request:"طلب أخصائي للدعم البشري",enableAi:"إعادة تنشيط الذكاء الاصطناعي"},instructions:{callback:"المشغل سيعود إليك قريباً",unavailable:"وللأسف، لا يوجد مشغلون حاليا."},description:"GPT AI موظف مدرب على بيانات الموقع الشبكي"},chatbubble:{actions:{resolve:"مارك كما حل",mark_as_unresolved:"تحديد كغير محلول",request:"الطلب الإنساني"},lead:{instruction:"لنعلم كيف نتصل بك",email:"البريد الإلكتروني",phoneNumber:"رقم الهاتف",required:"هذا الحقل مطلوب"}},AgentPage:{breadcrumbs:{label:"التنقل"},tabs:{editor:"المحرر",settings:"الإعدادات",install:"تثبيت",preview:"معاينة"},employees:"موظفو الذكاء الاصطناعي 'GPT'",tools:"الأدوات",chat:"دردشة",deploy:"نشر",settings:"الإعدادات",model_not_compatible:"النموذج غير متوافق",enabled_on_bubble:"مفعل فقط في الويدجتات القياسية/فقاعة",running:"قيد التشغيل",synched:"متزامن",http_tool:"أداة HTTP",http_tool_description:"اسمح لموظفك الذكاء الاصطناعي 'GPT' بإجراء مكالمات إلى نقطة نهاية HTTP.",update:"تحديث",upgrade:"قم بالترقية إلى البريميوم لاستخدام هذه الميزة",upgrade_description:"هذه الميزة مقيدة لمستخدمي البريميوم",poweredBy:"مدعوم من قبل",newChat:"دردشة جديدة"},AgentsPage:{breadcrumbs_aiEmployees:"موظفو الذكاء الاصطناعي 'GPT'",title:"إدارة موظف الذكاء الاصطناعي",newAIEmployee:"إنشاء موظف ذكاء اصطناعي جديد",description:"موظفو الذكاء الاصطناعي هم وكلاء يمكن تخصيصهم من خلال نماذج اللغة الكبيرة (LLM) لتلبية احتياجات عملائك. قم بالاتصال بمخزن بيانات وسيتم تدريبه على قاعدة بياناتك الخاصة.",aiEmployeeFormTitle:"إنشاء موظف ذكاء اصطناعي جديد",modelPromptSettings:"الإعدادات المتقدمة",toolsTitle:"الأدوات",toolsDescription:"قم بتكوين أدوات موظف الذكاء الاصطناعي الخاص بك لجعله أكثر ذكاءً.",create:"إنشاء"},AnalyticsPage:{breadcrumbs:{label:"التنقل",analytics:"التحليلات"},alert:{refreshedEveryHour:"يتم تحديث البيانات كل ساعة."},dateRange:{label:"نطاق التواريخ",allTime:"كل الفترات",thisMonth:"هذا الشهر"},aiEmployee:{label:"الموظف الذكي 'GPT'",placeholder:"تصفية حسب الموظف الذكي 'GPT'"},analytics:{totalConversations:"إجمالي المحادثات",likedResponses:"الردود المعجَب بها",dislikedResponses:"الردود غير المعجَب بها",leadsGenerated:"العملاء المحتملون الذين تم إنشاؤهم",mostUsedDatasource:"مصدر البيانات الأكثر استخداماً"},charts:{conversationsOverTime:"عدد المحادثات بمرور الوقت",repliesQualityPerformance:"أداء جودة الردود",conversationsEvolution:"تطور المحادثات",conversationsByCountry:"المحادثات حسب المدينة/الدولة"},toast:{unableToFetchAnalytics:"تعذر الحصول على التحليلات"}},authError:{signIn:"وقع",unableToSignIn:"غير قادر على التوقيع",errorOccurred:"!",linkUsedOrExpired:"وقد استُخدمت وصلة الإشارة بالفعل أو ربما تكون قد انتهت.",errorDuringAuthentication:"حدث خطأ أثناء التوثيق حاولي التوقيع مجدداً"},signInPage:{emailAddress:"عنوان البريد الإلكتروني",signIn:"وقع",signInWithGoogle:"وقع مع جوجل",signInWithGitHub:"وقع مع جيت هوب",orContinueWith:"أو تابع"},verifyRequest:{header_checkYourEmail:"تحقق من بريدك الإلكتروني",description_emailSent:"إشارة في الرابط أرسلت إلى عنوان البريد الإلكتروني الخاص بك."},ChatPage:{placeholders:{chain:"اختر المسار",knowledge:"اختر المعرفة"},options:{qa:"أسئلة وأجوبة",agent:"وكيل"},messages:{datasourceNotFound:"مصدر البيانات غير موجود. هل تم حذفه؟"}},FormPage:{seo:{title:"الاستمارة",description:"هذه صفحة الاستمارة حيث يمكنك التفاعل مع الشكل ورؤية النتائج"}},FormsPage:{templates:{fromScratch:{name:"البدء من الصفر",description:"أنشئ نموذجًا من الصفر. يمكنك إضافة أي حقل تريده وتخصيص التصميم.",fields:{email:{name:"البريد الإلكتروني",placeholder:"أدخل بريدك الإلكتروني"},select:{name:"اختر خيارًا",options:{support:"الدعم",sales:"المبيعات",feedback:"الملاحظات",partnership:"الشراكات",other:"أخرى"},placeholder:"اختر خيارًا"}},startScreen:{title:"العنوان",description:"الوصف"},endScreen:{message:"شكرًا! سنتواصل معك قريبًا.",cta:{label:"شكرًا!",url:"/forms/{formId}"}}},leadForm:{name:"جمع العملاء المتوقعين",description:"اجمع معلومات العملاء المحتملين، بما في ذلك البريد الإلكتروني والهاتف.",overview:"هذا النموذج مصمم لجمع المعلومات الأساسية للعملاء المحتملين، بما في ذلك البريد الإلكتروني والهاتف، لتسهيل التواصل المستقبلي.",fields:{email:{name:"البريد الإلكتروني",placeholder:"أدخل بريدك الإلكتروني"},phone:{name:"الهاتف",placeholder:"أدخل رقم هاتفك"},comment:{name:"تعليق",placeholder:"أدخل أي تعليقات إضافية"},select:{name:"اختر",options:{getMoreClients:"الحصول على المزيد من العملاء",automateTasks:"أتمتة المهام المتكررة",organizeContacts:"تنظيم جهات الاتصال والمحادثات",learnMore:"معرفة المزيد عن المنصة",other:"أخرى"},placeholder:"اختر خيارًا"}},startScreen:{title:"تواصل معنا",description:`نحن هنا للمساعدة!
126
126
  يرجى ملء النموذج أدناه.`},endScreen:{message:"لقد استلمنا معلوماتك! سنتواصل معك قريبًا.",cta:{label:"شكرًا!",url:"/forms/{formId}"}}},productFeedbackForm:{name:"نموذج ملاحظات المنتج",description:"نموذج لجمع ملاحظات حول منتجاتنا.",overview:"تم تصميم هذا النموذج لجمع الملاحظات حول منتجاتنا. رأيك مهم بالنسبة لنا ويساعدنا في تحسين عروضنا.",fields:{email:{name:"البريد الإلكتروني",placeholder:"أدخل بريدك الإلكتروني"},select:{name:"نوع الملاحظات",options:{featureRequest:"طلب ميزات إضافية",bugReport:"تقرير خطأ",other:"أخرى"},placeholder:"اختر نوع الملاحظات"},comment:{name:"تعليق",placeholder:"اكتب ملاحظاتك هنا"},files:{name:"ملفات",placeholder:"إرفاق ملفات (اختياري)"},type:{name:"نوع الملاحظات",placeholder:"اختر نوع الملاحظات",options:{featureRequest:"طلب ميزة",bugReport:"تقرير خطأ",other:"أخرى"}}},startScreen:{title:"رأيك يهمنا",description:"نحن هنا للاستماع! يرجى مشاركة رأيك."},endScreen:{message:"نحن نقدر ملاحظاتك كثيرًا! يتم الآن مراجعتها.",cta:{label:"شكرًا!",url:"/forms/{formId}"}}},onboardingForm:{name:"نموذج للمستخدمين الجدد",description:"اجمع المعلومات الأولية عن المستخدمين الجدد.",overview:"تم تصميم هذا النموذج لجمع المعلومات الأساسية عن المستخدمين الجدد لمساعدتنا في تكييف خدماتنا لتلبية احتياجاتهم.",fields:{email:{name:"البريد الإلكتروني",placeholder:"أدخل بريدك الإلكتروني"},Enterprise:{name:"العمل",options:{eCommerce:"التجارة الإلكترونية",healthcare:"الرعاية الصحية",finance:"المالية",technology:"التكنولوجيا",retail:"التجزئة",manufacturing:"التصنيع",other:"أخرى"},placeholder:"اختر عملك"},companySize:{name:"حجم الشركة",options:{small:"1-10",medium:"10-100",large:"100+"},placeholder:"اختر حجم شركتك"},referral:{name:"كيف تعرفت علينا؟",options:{google:"جوجل",socialMedia:"وسائل التواصل الاجتماعي",newsletter:"النشرة الإخبارية",wordOfMouth:"من شخص لشخص",tradeShow:"معرض تجاري",other:"أخرى"},placeholder:"أين عرفتنا؟"}},startScreen:{title:"مرحبًا بك في منصتنا",description:"نحن متحمسون لوجودك هنا! لنبدأ."},endScreen:{message:"مرحبًا! سنستخدم إجاباتك لتخصيص تجربتك.",cta:{label:"شكرًا!",url:"/forms/{formId}"}}},inboundLead:{name:"تحديد اهتمامات العملاء المحتملين",description:"اجمع العملاء المحتملين بشكل استراتيجي استنادًا إلى اهتمامات جمهورك الحقيقية.",overview:"استخدم هذا النموذج لتحديد ما يهم عميلك المحتمل حقًا — مثل أتمتة الخدمة أو مركزية القنوات أو زيادة المبيعات. مثالي لجذب الزوار وتأهيل الفرص التجارية من أول تواصل.",fields:{firstName:{name:"الاسم",placeholder:"أدخل اسمك"},email:{name:"البريد الإلكتروني",placeholder:"أدخل بريدك الإلكتروني"},interestedIn:{name:"مهتم بـ",options:{automatedSupport:"خدمة مؤتمتة بالذكاء الاصطناعي",increaseSales:"زيادة المبيعات",reduceResponseTime:"تقليل زمن الاستجابة",centralizeChannels:"مركزية القنوات (واتساب، إنستاجرام، إلخ)",other:"أخرى"},placeholder:"ما الذي يهمك؟"}},startScreen:{title:"(عملك)",description:"مرحبًا بك على متن الطائرة! دعنا نتعرف عليك!"},endScreen:{message:"شكرًا لمشاركتك! سيساعدك أحد الخبراء قريبًا.",cta:{label:"شكرًا!",url:"/forms/{formId}"}}},contactSales:{name:"اتصال المبيعات",description:"ساعد فريق المبيعات لديك في التركيز على العملاء ذوي الإمكانات الأكبر.",overview:"يسمح هذا النموذج بفهم احتياجات العميل التجارية بسرعة. هذا يسهل التأهيل ويسرع عملية البيع استنادًا إلى بيانات حقيقية.",fields:{firstName:{name:"الاسم",placeholder:"أدخل اسمك"},email:{name:"البريد الإلكتروني",placeholder:"أدخل بريدك الإلكتروني"},interestedIn:{name:"مهتم بـ",options:{automateSupport:"أتمتة الخدمة بالذكاء الاصطناعي",centralizeChannels:"توحيد القنوات (واتساب، إنستاجرام، إلخ)",boostConversions:"زيادة التحويلات والمبيعات",customSolutions:"حلول مخصصة لشركتي",contentMarketing:"تسويق المحتوى",affiliates:"البيع كمسوّق بالعمولة",other:"أخرى"},placeholder:"ما الذي يهمك؟"}},startScreen:{title:"اتصال المبيعات",description:"زيِّد من التحويلات والمبيعات"},endScreen:{message:"تم إرسال طلبك إلى فريق المبيعات لدينا. يرجى انتظار تواصلنا.",cta:{label:"شكرًا!",url:"/forms/{formId}"}}},feedback:{name:"ملاحظات",description:"احصل على آراء حول منتج من خلال نهج حواري تفاعلي.",overview:`جمع ملاحظات العملاء الجدد حول أحد موديلات الأحذية الرياضية لدينا.
127
127
  تعد Acme Clothes علامة تجارية مميزة في عالم الموضة، معروفة بملابسها الأنيقة وعالية الجودة.
128
128
  تقدم Acme Clothes مجموعة واسعة من خيارات الملابس للرجال والنساء والأطفال، حيث تجمع بين الراحة والاتجاهات المعاصرة لابتكار قطع فريدة ومتعددة الاستخدامات مناسبة لجميع المناسبات.`,fields:{usageContext:{name:"أين استخدمت المنتج؟",options:{work:"في العمل",sports:"في الأنشطة الرياضية",casual:"في الحياة اليومية",travel:"أثناء السفر",other:"أخرى"},placeholder:"اختر سياق الاستخدام الرئيسي"},recommendationLikelihood:{name:"هل توصي بهذا المنتج؟",options:{yes:"نعم بالتأكيد",maybe:"ربما",no:"لا أوصي به"},placeholder:"هل توصي بهذا المنتج لشخص ما؟"},priceValue:{name:"تقييم السعر",options:{excellent:"ممتاز",fair:"عادل",expensive:"باهظ"},placeholder:"ما رأيك في السعر؟"},overallSatisfaction:{name:"الرضا العام (1-5)",options:{"1":"1 - سيئ","2":"2 - ضعيف","3":"3 - متوسط","4":"4 - جيد","5":"5 - ممتاز"},placeholder:"قدم تقييمًا عامًا"}},startScreen:{title:"اترك تعليقًا",description:"أخبرنا كيف يمكننا التحسن."},endScreen:{message:"نقدّر تعليقك! إنه مهم جدًا بالنسبة لنا.",cta:{label:"شكرًا!",url:"/forms/{formId}"}}}},breadcrumbs:{ariaLabel:"التنقل",forms:"النماذج"},titles:{forms:"النماذج"},button:{newForm:"نموذج جديد"},modal:{createForm:"إنشاء نموذج"},toast:{creatingForm:"جارٍ إنشاء النموذج...",created:"تم إنشاء النموذج بنجاح!",error:"حدث خطأ أثناء إنشاء النموذج."}},DatasourcePage:{breadcrumbs:{label:"البراميل",datastores:"البيانات"},status:{unsynched:"Unsynched",pending:"معلقة",running:"تشغيل",synched:"مقتبس",error:"الرعب",usage_limit_reached:"تصاريح النقل"},form:{submitButtonText:"آخر",deleteDatasource:"تحذف البيانات",deleteDatasourceDescription:"وسيزيل جميع بياناته من مخزن البيانات."},buttons:{delete:"تحذف"},modals:{confirmDelete:"هل أنت متأكد من أنك تريد حذف هذا مصدر البيانات؟ وهذا الإجراء لا رجعة فيه."}},DatastorePage:{breadcrumbs:{label:"البراميل",datastores:"البيانات"},buttons:{addDatasource:"Add Datasource"},visibility:{public:"الجمهور",private:"خاص"},tabs:{datasources:"مصادر البيانات",settings:"الترتيبات"},modals:{usageLimit:"تصاريح النقل"}},DatasourcesPage:{breadcrumbs:{label:"البراميل",datastores:"البيانات",apps:"Apps",crispPlugin:"Crisp Plugin"},title:{datastores:"البيانات"},button:{newDatastore:"مستودع البيانات الجديد"},alert:{datastoreDescription:"ويعمل مخزن البيانات بمثابة مستودع يحتوي على أنواع مختلفة من مصادر البيانات، بما في ذلك الملفات، والصفحات الشبكية، ومذكرات النوايا، وما إلى ذلك. وحالما تُحمَّل البيانات إلى مخزن البيانات، فإنها تخضع للتجهيز (التوقيف) لإعدادها لكي يستخدمها موظف من الفئة الفنية (نموذج اللغة الكبيرة).",datastoreInfo:"ويعمل مخزن البيانات بمثابة مستودع يحتوي على أنواع مختلفة من مصادر البيانات، بما في ذلك الملفات، والصفحات الشبكية، ومذكرات النوايا، وما إلى ذلك. وحالما تُحمَّل البيانات إلى مخزن البيانات، فإنها تخضع للتجهيز (التوقيف) لإعدادها لكي يستخدمها موظف من الفئة الفنية (نموذج اللغة الكبيرة)."},instructions:{step1:"1 الحصول على مفتاح API من أحد مخزن البيانات الخاصة بك",step2:"2. الذهاب إلى سوق كريسب وتركيب زابواي",step3:"3 الحصول على مفتاح API من أحد مخزن البيانات الخاصة بك"},crispDescription:"GPT AI موظف مدرب على بيانات الموقع الشبكي",integratedVia:"عبرة متكاملة",slackBot:"Slack Bot",slackDescription:"GPT AI الموظفون المتدربون على بيانات الشركات بالقوى الخارقة",subscribe:"Subscribe",moreInfo:"مزيد من المعلومات",statusError:"نحن نواجه بعض المشاكل حاول مرة أخرى لاحقاً",sharePromo:"شاركوا في المجتمع وحصلوا على 30% من اشتراككم"},Layout:{title:"لوحة التحكم",inbox:"المحادثات / الرسائل",employees:"موظف الذكاء الاصطناعي 'GPT'",datastores:"تخزين البيانات",forms:"نماذج",analytics:"تحليلات",emailInboxes:"صناديق البريد الإلكتروني",contacts:"جهات الاتصال",settings:"الإعدادات",documentation:`تعليمات /
@@ -2864,7 +2864,7 @@ Acme Clothes 是一个以时尚高品质服饰著称的品牌。
2864
2864
  我们会保持您的 AI 'GPT' 员工与您的数据同步。`}]}},powerpoint:{name:"Microsoft PowerPoint",title:"与您的 PowerPoint 文档交互",description:"与任何 PowerPoint 文档交互,提问、获取摘要、查找信息等。",metadata:{title:"ZappWay 插件:PowerPoint - 用您的 PowerPoint 文档培训的 AI 'GPT' 员工",description:"与任何 PowerPoint 文档交互,提问、获取摘要、查找信息等。"},cta:{label:"上传 PowerPoint"},keywords:["AI 'GPT' 员工用于 PowerPoint"],features:{items:[{name:"添加您的数据",description:"将 PowerPoint 文档导入 ZappWay。这只需几秒钟。"},{name:"聊天",description:"您可以提问、获取摘要、查找信息等。"}]}},word:{name:"Microsoft Word",title:"与您的 Word 文档交互",description:"与任何 Word 文档交互,提问、获取摘要、查找信息等。",metadata:{title:"ZappWay 插件:Word - 用您的 Word 文档培训的 AI 'GPT' 员工",description:"与任何 Word 文档交互,提问、获取摘要、查找信息等。"},cta:{label:"上传文档"},keywords:["AI 'GPT' 员工用于 Word"],features:{items:[{name:"添加您的数据",description:"将 Word 文档导入 ZappWay。这只需几秒钟。"},{name:"聊天",description:"您可以提问、获取摘要、查找信息等。"}]}},excel:{name:"Microsoft Excel",title:"与您的 Excel 文档交互",description:"与任何 Excel 文档交互,提问、获取摘要、查找信息等。",metadata:{title:"ZappWay 插件:Excel - 用您的 Excel 文档培训的 AI 'GPT' 员工",description:"与任何 Excel 文档交互,提问、获取摘要、查找信息等。"},cta:{label:"上传文档"},keywords:["AI 'GPT' 员工用于 Excel"],features:{items:[{name:"添加您的数据",description:"将 Excel 文档导入 ZappWay。这只需几秒钟。"},{name:"聊天",description:"您可以提问、获取摘要、查找信息等。"}]}},pdf:{name:"PDF 文档",title:"与您的 PDF 文档交互",description:"与 PDF 文档交互,提问、获取摘要、查找信息等。",metadata:{title:"ZappWay 插件:PDF 文件 - 用您的 PDF 文档培训的 AI 'GPT' 员工",description:"与 PDF 文档交互,提问、获取摘要、查找信息等。"},cta:{label:"上传 PDF"},keywords:["AI 'GPT' 员工用于 PDF"],features:{items:[{name:"添加您的 PDF 文件",description:"将 PDF 文档导入 ZappWay。这只需几秒钟。"},{name:"聊天",description:"您可以提问、获取摘要、查找信息等。"}]}}},products2:{"ai-employee":{name:"AI员工 'GPT'",title:"几分钟内为您的网站配置AI员工",description:"使用您的数据训练AI员工 'GPT',并在几分钟内将其添加到WhatsApp或您的网站上!",metadata:{title:"AI员工 'GPT' - 为您的网站定制的AI员工 'GPT' | ZappWay",description:"使用您的数据训练AI员工 'GPT',并在几分钟内将其添加到WhatsApp或您的网站上!"},cta:{label:"免费开始"},keywords:["为您的网站配置AI员工 'GPT'","在网站上安装AI员工 'GPT'"],features:{label:"无需编码",title:"轻松使用您的自定义数据训练AI员工",description:"ZappWay简化了使用您的业务数据训练AI员工 'GPT' 的过程。",items:[{name:"导入您的数据",description:"从多个数据源导入自定义数据,如文件、Notion、Google等。"},{name:"训练",description:"收集到您的数据后,我们会处理并训练AI员工 'GPT'。不用担心,速度很快 ⚡️"},{name:"添加到您的网站",description:"轻松嵌入到您的网站或通过我们的集成之一将其添加到现有工具中。"},{name:"自动同步",description:`我们保持AI员工与您的数据同步更新。
2865
2865
  在可能的情况下自动同步您的数据。
2866
2866
  您还可以设置webhook或手动触发同步。`}]}},"ai-form":{name:"AI表单",title:"几分钟内创建AI表单",description:"创建AI表单,AI可以提出或回答问题,并与您的客户互动。",metadata:{title:"AI表单 - 几分钟内创建GPT驱动的表单 | ZappWay",description:"创建AI表单,AI可以提出或回答问题,并与您的客户互动。"},cta:{label:"免费开始"},keywords:["AI表单","ChatGPT表单","AI表单"],features:{label:"智能表单",title:"使用AI创建智能表单",description:"设置与客户互动并参与的表单。",items:[{name:"表单设置",description:"使用ZappWay的表单构建器设置您的表单。为您的AI赋予个性,并添加您希望收集的数据字段。"},{name:"发布",description:"只需点击发布按钮,即可获得一个公共链接,您可以与任何人分享。"},{name:"嵌入到您的网站",description:"通过简单的HTML代码轻松将表单嵌入到您的网站中。"},{name:"将您的表单连接到ZappWay的AI员工 'GPT'",description:"可选地,AI表单可以连接到ZappWay的AI员工 'GPT',以增强其功能。"}]}},"ai-email-support":{name:"AI邮件支持",title:"自动化您的邮件支持",description:"使用AI自动化您的邮件支持。获取10倍更快的回复!",metadata:{title:"邮件支持 - 使用AI自动化您的邮件支持 | ZappWay",description:"使用AI自动化您的邮件支持。获取10倍更快的回复!"},cta:{label:"免费开始"},keywords:["AI表单","ChatGPT表单","AI表单"],features:{label:"自动化支持",title:"AI邮件支持",description:"通过ZappWay仪表板管理您的所有邮件。邮件收件箱也使用AI - 它将帮助您更快地解决问题。",items:[{name:"2分钟内设置",description:"设置ZappWay以代表您接收和发送邮件 - 在不到2分钟内开始。"},{name:"AI邮件回复",description:"ZappWay的AI将学习 - 不仅来自您的知识库 - 还来自您之前的所有邮件对话。"},{name:"智能建议",description:"我们的AI将通过建议类似案例的解决方案,帮助您更快地管理邮件支持。"}]}},"shared-inbox":{name:"OmniChannel",title:"所有消息集中在一个地方!",description:"在一个地方管理您在WhatsApp或其他服务渠道上的对话。",metadata:{title:"共享收件箱 - 所有消息集中在一个地方 | ZappWay",description:"在一个地方管理您在WhatsApp或其他服务渠道上的对话。"},cta:{label:"免费开始"},keywords:["AI表单","ChatGPT表单","AI表单"],features:{label:"一切尽在掌握",title:"带AI的共享收件箱",description:"监控、管理、分配对话等。",items:[{name:"所有对话集中在一个地方",description:"在一个地方监控和管理与客户的所有对话。"},{name:"转接到人工",description:"在必要时控制您的AI员工 'GPT'。"},{name:"团队协作",description:"将对话分配给您的团队成员。"},{name:"AI回复",description:"即使您接管对话,我们的AI也会帮助撰写完美的回复。"}]}}},plans:{free:{label:"免费",description:"快速开始的基本功能。"},hobby:{label:"兴趣",description:"一个随着您的业务快速增长而扩展的计划。"},growth:{label:"增长",description:"一个随着您的业务快速增长而扩展的计划。"},pro:{label:"专业版",description:"适用于希望访问更强大功能的高级用户。"},enterprise:{label:"企业版",description:"为您的团队提供专门支持和功能。"},ultimate:{label:"终极版",description:"为您的团队提供专门支持和功能。"}},Partnerships:{seoTitle:"成为ZappWay合作伙伴",seoDescription:"加入ZappWay联盟计划,赚取重复佣金。",title:`加入我们的
2867
- 联盟计划`,description:"成为ZappWay的合作伙伴,开始赚取30%的重复月度佣金。只需将用户推荐到我们的平台,随着他们继续订阅,您将获得稳定的收入。",becomePartner:"成为合作伙伴",commissionInfo:"每推荐一次赚取30%的佣金。随着您的推荐用户继续订阅,您的收入将不断增长。"},WhatsAppIntegrationPage:{loading:"加载中...",accessDenied:"访问被拒绝",title:"WhatsApp 会话",updateButton:"更新",newSessionButton:"新会话",noSessionsTitle:"您尚未配置 WhatsApp 会话",noSessionsButton:"配置 WhatsApp",deniedText:"访问被拒绝",statusLabel:"状态:",deviceLabel:"设备:",lastUpdateLabel:"最后更新:",connected:"已连接",disconnected:"已断开",manageButton:"管理",connectButton:"连接",disconnectButton:"断开",manageSessionModalTitle:"管理会话:{sessionName}",connectSessionModalTitle:"连接 WhatsApp:{sessionName}",newSessionModalTitle:"新 WhatsApp 会话",newSessionPlaceholder:"会话名称",newDevicePlaceholder:"设备名称",cancelButton:"取消",createSessionButton:"创建会话"},QRCode:{titles:{error:"错误",connected:"WhatsApp 已连接!",connect:"连接您的 WhatsApp"},messages:{closeWindow:"您现在可以关闭此窗口。",expireWarning:"此二维码将在 1 分钟后过期。"},buttons:{tryAgain:"重试",disconnect:"断开 WhatsApp",generateNew:"生成新二维码"},steps:{step1:"1. 在手机上打开 WhatsApp",step2:"2. 点击菜单或设置,并选择已连接的设备",step3:"3. 点击连接设备",step4:"4. 将手机摄像头对准此二维码"},errors:{qrUnavailable:"二维码不可用",connectionCheck:"检查连接状态时出错",disconnect:"断开 WhatsApp 时出错",newQR:"生成新二维码时出错",default:"加载二维码时发生错误",unrecognizedAction:"无法识别的操作",invalidParams:"无效的参数",missingParams:"需要 organizationId 和 sessionId",internalError:"内部服务器错误",unauthorized:"未授权",sessionIdRequired:"需要会话 ID",sessionNotFound:"未找到会话",noPermission:"您无权访问此会话",sessionUpdateFailed:"会话更新失败"}},ConnectWhatsApp:{errors:{unauthorized:"未授权",methodNotAllowed:"方法不允许",creationFailed:"创建 WhatsApp 会话时出错",sessionIdMissing:"未提供会话 ID",sessionNotFound:"未找到会话",noPermissionToDisconnect:"您无权断开此会话",disconnectFailed:"断开 WhatsApp 时出错",sessionListFailed:"获取 WhatsApp 会话列表时出错",internalServerError:"内部服务器错误"},messages:{sessionCreated:"会话创建成功。请等待二维码生成。",imageSent:"图片已发送",cannotDownloadImage:"无法下载图片",errorProcessingImage:"处理图片时出错",videoSent:"视频已发送",documentSent:"文档已发送",voiceMessage:"语音消息",stickerSent:"贴纸已发送",unrecognizedMessage:"无法识别的消息:{content}"}}};var Vie={ar:YV,az:QV,bn:JV,bg:$V,ca:XV,zh:MU,cs:eU,da:aU,nl:IU,eo:oU,et:sU,fi:dU,fr:uU,de:tU,el:iU,he:mU,hi:cU,hu:gU,id:kU,it:hU,ja:bU,ko:vU,lv:fU,lt:yU,ms:_U,nb:AU,fa:lU,pl:TU,pt:PU,"pt-BR":zU,ro:wU,ru:SU,sk:jU,sl:xU,es:rU,sv:CU,th:DU,tl:GU,tr:WU,uk:EU,ur:LU,ga:pU,en:nU};xt.use(__).use(jk).init({resources:Vie,fallbackLng:"en",supportedLngs:["ar","az","bn","bg","ca","zh","cs","da","nl","eo","et","fi","fr","de","el","he","hi","hu","id","it","ja","ko","lv","lt","ms","nb","fa","pl","pt","pt-BR","ro","ru","sk","sl","es","sv","th","tl","tr","uk","ur","ga","en"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1},detection:{order:["cookie","localStorage","sessionStorage","navigator"],caches:["cookie"]}});var Qs=xt;l();l();l();l();l();l();l();l();var _j=function(e,a){return _j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},_j(e,a)};function xk(e,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");_j(e,a);function t(){this.constructor=e}e.prototype=a===null?Object.create(a):(t.prototype=a.prototype,new t)}var aa=function(){return aa=Object.assign||function(a){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(a[o]=t[o])}return a},aa.apply(this,arguments)};function FU(e,a){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&a.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)a.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t}function x_(e,a,t){if(t||arguments.length===2)for(var i=0,n=a.length,o;i<n;i++)(o||!(i in a))&&(o||(o=Array.prototype.slice.call(a,0,i)),o[i]=a[i]);return e.concat(o||Array.prototype.slice.call(a))}l();function Am(e,a){var t=a&&a.cache?a.cache:$ie,i=a&&a.serializer?a.serializer:Yie,n=a&&a.strategy?a.strategy:Oie;return n(e,{cache:t,serializer:i})}function Uie(e){return e==null||typeof e=="number"||typeof e=="boolean"}function NU(e,a,t,i){var n=Uie(i)?i:t(i),o=a.get(n);return typeof o>"u"&&(o=e.call(this,i),a.set(n,o)),o}function BU(e,a,t){var i=Array.prototype.slice.call(arguments,3),n=t(i),o=a.get(n);return typeof o>"u"&&(o=e.apply(this,i),a.set(n,o)),o}function Aj(e,a,t,i,n){return t.bind(a,e,i,n)}function Oie(e,a){var t=e.length===1?NU:BU;return Aj(e,this,t,a.cache.create(),a.serializer)}function Kie(e,a){return Aj(e,this,BU,a.cache.create(),a.serializer)}function Hie(e,a){return Aj(e,this,NU,a.cache.create(),a.serializer)}var Yie=function(){return JSON.stringify(arguments)},Qie=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(a){return this.cache[a]},e.prototype.set=function(a,t){this.cache[a]=t},e}(),$ie={create:function(){return new Qie}},Im={variadic:Kie,monadic:Hie};l();l();var $e;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})($e||($e={}));l();l();var Ca;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Ca||(Ca={}));var Ud;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Ud||(Ud={}));function Ij(e){return e.type===Ca.literal}function RU(e){return e.type===Ca.argument}function C_(e){return e.type===Ca.number}function D_(e){return e.type===Ca.date}function G_(e){return e.type===Ca.time}function W_(e){return e.type===Ca.select}function E_(e){return e.type===Ca.plural}function ZU(e){return e.type===Ca.pound}function L_(e){return e.type===Ca.tag}function M_(e){return!!(e&&typeof e=="object"&&e.type===Ud.number)}function Ck(e){return!!(e&&typeof e=="object"&&e.type===Ud.dateTime)}l();var Tj=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;l();l();var Jie=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function qU(e){var a={};return e.replace(Jie,function(t){var i=t.length;switch(t[0]){case"G":a.era=i===4?"long":i===5?"narrow":"short";break;case"y":a.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":a.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":a.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":a.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");a.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");a.weekday=["short","long","narrow","short"][i-4];break;case"a":a.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":a.hourCycle="h12",a.hour=["numeric","2-digit"][i-1];break;case"H":a.hourCycle="h23",a.hour=["numeric","2-digit"][i-1];break;case"K":a.hourCycle="h11",a.hour=["numeric","2-digit"][i-1];break;case"k":a.hourCycle="h24",a.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":a.minute=["numeric","2-digit"][i-1];break;case"s":a.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":a.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),a}l();l();var VU=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function HU(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var a=e.split(VU).filter(function(g){return g.length>0}),t=[],i=0,n=a;i<n.length;i++){var o=n[i],r=o.split("/");if(r.length===0)throw new Error("Invalid number skeleton");for(var s=r[0],d=r.slice(1),u=0,p=d;u<p.length;u++){var m=p[u];if(m.length===0)throw new Error("Invalid number skeleton")}t.push({stem:s,options:d})}return t}function Xie(e){return e.replace(/^(.*?)-/,"")}var UU=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,YU=/^(@+)?(\+|#+)?[rs]?$/g,ene=/(\*)(0+)|(#+)(0+)|(0+)/g,QU=/^(0+)$/;function OU(e){var a={};return e[e.length-1]==="r"?a.roundingPriority="morePrecision":e[e.length-1]==="s"&&(a.roundingPriority="lessPrecision"),e.replace(YU,function(t,i,n){return typeof n!="string"?(a.minimumSignificantDigits=i.length,a.maximumSignificantDigits=i.length):n==="+"?a.minimumSignificantDigits=i.length:i[0]==="#"?a.maximumSignificantDigits=i.length:(a.minimumSignificantDigits=i.length,a.maximumSignificantDigits=i.length+(typeof n=="string"?n.length:0)),""}),a}function $U(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ane(e){var a;if(e[0]==="E"&&e[1]==="E"?(a={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(a={notation:"scientific"},e=e.slice(1)),a){var t=e.slice(0,2);if(t==="+!"?(a.signDisplay="always",e=e.slice(2)):t==="+?"&&(a.signDisplay="exceptZero",e=e.slice(2)),!QU.test(e))throw new Error("Malformed concise eng/scientific notation");a.minimumIntegerDigits=e.length}return a}function KU(e){var a={},t=$U(e);return t||a}function JU(e){for(var a={},t=0,i=e;t<i.length;t++){var n=i[t];switch(n.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=n.options[0];continue;case"group-off":case",_":a.useGrouping=!1;continue;case"precision-integer":case".":a.maximumFractionDigits=0;continue;case"measure-unit":case"unit":a.style="unit",a.unit=Xie(n.options[0]);continue;case"compact-short":case"K":a.notation="compact",a.compactDisplay="short";continue;case"compact-long":case"KK":a.notation="compact",a.compactDisplay="long";continue;case"scientific":a=aa(aa(aa({},a),{notation:"scientific"}),n.options.reduce(function(d,u){return aa(aa({},d),KU(u))},{}));continue;case"engineering":a=aa(aa(aa({},a),{notation:"engineering"}),n.options.reduce(function(d,u){return aa(aa({},d),KU(u))},{}));continue;case"notation-simple":a.notation="standard";continue;case"unit-width-narrow":a.currencyDisplay="narrowSymbol",a.unitDisplay="narrow";continue;case"unit-width-short":a.currencyDisplay="code",a.unitDisplay="short";continue;case"unit-width-full-name":a.currencyDisplay="name",a.unitDisplay="long";continue;case"unit-width-iso-code":a.currencyDisplay="symbol";continue;case"scale":a.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":a.roundingMode="floor";continue;case"rounding-mode-ceiling":a.roundingMode="ceil";continue;case"rounding-mode-down":a.roundingMode="trunc";continue;case"rounding-mode-up":a.roundingMode="expand";continue;case"rounding-mode-half-even":a.roundingMode="halfEven";continue;case"rounding-mode-half-down":a.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":a.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(ene,function(d,u,p,m,g,b){if(u)a.minimumIntegerDigits=p.length;else{if(m&&g)throw new Error("We currently do not support maximum integer digits");if(b)throw new Error("We currently do not support exact integer digits")}return""});continue}if(QU.test(n.stem)){a.minimumIntegerDigits=n.stem.length;continue}if(UU.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(UU,function(d,u,p,m,g,b){return p==="*"?a.minimumFractionDigits=u.length:m&&m[0]==="#"?a.maximumFractionDigits=m.length:g&&b?(a.minimumFractionDigits=g.length,a.maximumFractionDigits=g.length+b.length):(a.minimumFractionDigits=u.length,a.maximumFractionDigits=u.length),""});var o=n.options[0];o==="w"?a=aa(aa({},a),{trailingZeroDisplay:"stripIfInteger"}):o&&(a=aa(aa({},a),OU(o)));continue}if(YU.test(n.stem)){a=aa(aa({},a),OU(n.stem));continue}var r=$U(n.stem);r&&(a=aa(aa({},a),r));var s=ane(n.stem);s&&(a=aa(aa({},a),s))}return a}l();l();var Dk={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function XU(e,a){for(var t="",i=0;i<e.length;i++){var n=e.charAt(i);if(n==="j"){for(var o=0;i+1<e.length&&e.charAt(i+1)===n;)o++,i++;var r=1+(o&1),s=o<2?1:3+(o>>1),d="a",u=tne(a);for((u=="H"||u=="k")&&(s=0);s-- >0;)t+=d;for(;r-- >0;)t=u+t}else n==="J"?t+="H":t+=n}return t}function tne(e){var a=e.hourCycle;if(a===void 0&&e.hourCycles&&e.hourCycles.length&&(a=e.hourCycles[0]),a)switch(a){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var t=e.language,i;t!=="root"&&(i=e.maximize().region);var n=Dk[i||""]||Dk[t||""]||Dk["".concat(t,"-001")]||Dk["001"];return n[0]}var Pj,ine=new RegExp("^".concat(Tj.source,"*")),nne=new RegExp("".concat(Tj.source,"*$"));function na(e,a){return{start:e,end:a}}var one=!!String.prototype.startsWith&&"_a".startsWith("a",1),rne=!!String.fromCodePoint,sne=!!Object.fromEntries,lne=!!String.prototype.codePointAt,dne=!!String.prototype.trimStart,une=!!String.prototype.trimEnd,pne=!!Number.isSafeInteger,mne=pne?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},wj=!0;try{eO=nO("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),wj=((Pj=eO.exec("a"))===null||Pj===void 0?void 0:Pj[0])==="a"}catch{wj=!1}var eO,aO=one?function(a,t,i){return a.startsWith(t,i)}:function(a,t,i){return a.slice(i,i+t.length)===t},Sj=rne?String.fromCodePoint:function(){for(var a=[],t=0;t<arguments.length;t++)a[t]=arguments[t];for(var i="",n=a.length,o=0,r;n>o;){if(r=a[o++],r>1114111)throw RangeError(r+" is not a valid code point");i+=r<65536?String.fromCharCode(r):String.fromCharCode(((r-=65536)>>10)+55296,r%1024+56320)}return i},tO=sne?Object.fromEntries:function(a){for(var t={},i=0,n=a;i<n.length;i++){var o=n[i],r=o[0],s=o[1];t[r]=s}return t},iO=lne?function(a,t){return a.codePointAt(t)}:function(a,t){var i=a.length;if(!(t<0||t>=i)){var n=a.charCodeAt(t),o;return n<55296||n>56319||t+1===i||(o=a.charCodeAt(t+1))<56320||o>57343?n:(n-55296<<10)+(o-56320)+65536}},cne=dne?function(a){return a.trimStart()}:function(a){return a.replace(ine,"")},gne=une?function(a){return a.trimEnd()}:function(a){return a.replace(nne,"")};function nO(e,a){return new RegExp(e,a)}var jj;wj?(zj=nO("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),jj=function(a,t){var i;zj.lastIndex=t;var n=zj.exec(a);return(i=n[1])!==null&&i!==void 0?i:""}):jj=function(a,t){for(var i=[];;){var n=iO(a,t);if(n===void 0||rO(n)||bne(n))break;i.push(n),t+=n>=65536?2:1}return Sj.apply(void 0,i)};var zj,oO=function(){function e(a,t){t===void 0&&(t={}),this.message=a,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(a,t,i){for(var n=[];!this.isEOF();){var o=this.char();if(o===123){var r=this.parseArgument(a,i);if(r.err)return r;n.push(r.val)}else{if(o===125&&a>0)break;if(o===35&&(t==="plural"||t==="selectordinal")){var s=this.clonePosition();this.bump(),n.push({type:Ca.pound,location:na(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error($e.UNMATCHED_CLOSING_TAG,na(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&xj(this.peek()||0)){var r=this.parseTag(a,t);if(r.err)return r;n.push(r.val)}else{var r=this.parseLiteral(a,t);if(r.err)return r;n.push(r.val)}}}return{val:n,err:null}},e.prototype.parseTag=function(a,t){var i=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ca.literal,value:"<".concat(n,"/>"),location:na(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(a+1,t,!0);if(o.err)return o;var r=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!xj(this.char()))return this.error($e.INVALID_TAG,na(s,this.clonePosition()));var d=this.clonePosition(),u=this.parseTagName();return n!==u?this.error($e.UNMATCHED_CLOSING_TAG,na(d,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ca.tag,value:n,children:r,location:na(i,this.clonePosition())},err:null}:this.error($e.INVALID_TAG,na(s,this.clonePosition())))}else return this.error($e.UNCLOSED_TAG,na(i,this.clonePosition()))}else return this.error($e.INVALID_TAG,na(i,this.clonePosition()))},e.prototype.parseTagName=function(){var a=this.offset();for(this.bump();!this.isEOF()&&hne(this.char());)this.bump();return this.message.slice(a,this.offset())},e.prototype.parseLiteral=function(a,t){for(var i=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o){n+=o;continue}var r=this.tryParseUnquoted(a,t);if(r){n+=r;continue}var s=this.tryParseLeftAngleBracket();if(s){n+=s;continue}break}var d=na(i,this.clonePosition());return{val:{type:Ca.literal,value:n,location:d},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!kne(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(a){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(a==="plural"||a==="selectordinal")break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(i);this.bump()}return Sj.apply(void 0,t)},e.prototype.tryParseUnquoted=function(a,t){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(t==="plural"||t==="selectordinal")||i===125&&a>0?null:(this.bump(),Sj(i))},e.prototype.parseArgument=function(a,t){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error($e.EXPECT_ARGUMENT_CLOSING_BRACE,na(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error($e.EMPTY_ARGUMENT,na(i,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error($e.MALFORMED_ARGUMENT,na(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error($e.EXPECT_ARGUMENT_CLOSING_BRACE,na(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ca.argument,value:n,location:na(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error($e.EXPECT_ARGUMENT_CLOSING_BRACE,na(i,this.clonePosition())):this.parseArgumentOptions(a,t,n,i);default:return this.error($e.MALFORMED_ARGUMENT,na(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var a=this.clonePosition(),t=this.offset(),i=jj(this.message,t),n=t+i.length;this.bumpTo(n);var o=this.clonePosition(),r=na(a,o);return{value:i,location:r}},e.prototype.parseArgumentOptions=function(a,t,i,n){var o,r=this.clonePosition(),s=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(s){case"":return this.error($e.EXPECT_ARGUMENT_TYPE,na(r,d));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var p=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var g=gne(m.val);if(g.length===0)return this.error($e.EXPECT_ARGUMENT_STYLE,na(this.clonePosition(),this.clonePosition()));var b=na(p,this.clonePosition());u={style:g,styleLocation:b}}var f=this.tryParseArgumentClose(n);if(f.err)return f;var v=na(n,this.clonePosition());if(u&&aO(u?.style,"::",0)){var _=cne(u.style.slice(2));if(s==="number"){var m=this.parseNumberSkeletonFromString(_,u.styleLocation);return m.err?m:{val:{type:Ca.number,value:i,location:v,style:m.val},err:null}}else{if(_.length===0)return this.error($e.EXPECT_DATE_TIME_SKELETON,v);var h=_;this.locale&&(h=XU(_,this.locale));var g={type:Ud.dateTime,pattern:h,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?qU(h):{}},k=s==="date"?Ca.date:Ca.time;return{val:{type:k,value:i,location:v,style:g},err:null}}}return{val:{type:s==="number"?Ca.number:s==="date"?Ca.date:Ca.time,value:i,location:v,style:(o=u?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error($e.EXPECT_SELECT_ARGUMENT_OPTIONS,na(y,aa({},y)));this.bumpSpace();var I=this.parseIdentifierIfPossible(),A=0;if(s!=="select"&&I.value==="offset"){if(!this.bumpIf(":"))return this.error($e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,na(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger($e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,$e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),I=this.parseIdentifierIfPossible(),A=m.val}var T=this.tryParsePluralOrSelectOptions(a,s,t,I);if(T.err)return T;var f=this.tryParseArgumentClose(n);if(f.err)return f;var P=na(n,this.clonePosition());return s==="select"?{val:{type:Ca.select,value:i,options:tO(T.val),location:P},err:null}:{val:{type:Ca.plural,value:i,options:tO(T.val),offset:A,pluralType:s==="plural"?"cardinal":"ordinal",location:P},err:null}}default:return this.error($e.INVALID_ARGUMENT_TYPE,na(r,d))}},e.prototype.tryParseArgumentClose=function(a){return this.isEOF()||this.char()!==125?this.error($e.EXPECT_ARGUMENT_CLOSING_BRACE,na(a,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var a=0,t=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error($e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,na(n,this.clonePosition()));this.bump();break}case 123:{a+=1,this.bump();break}case 125:{if(a>0)a-=1;else return{val:this.message.slice(t.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(a,t){var i=[];try{i=HU(a)}catch{return this.error($e.INVALID_NUMBER_SKELETON,t)}return{val:{type:Ud.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?JU(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(a,t,i,n){for(var o,r=!1,s=[],d=new Set,u=n.value,p=n.location;;){if(u.length===0){var m=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var g=this.tryParseDecimalInteger($e.EXPECT_PLURAL_ARGUMENT_SELECTOR,$e.INVALID_PLURAL_ARGUMENT_SELECTOR);if(g.err)return g;p=na(m,this.clonePosition()),u=this.message.slice(m.offset,this.offset())}else break}if(d.has(u))return this.error(t==="select"?$e.DUPLICATE_SELECT_ARGUMENT_SELECTOR:$e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,p);u==="other"&&(r=!0),this.bumpSpace();var b=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?$e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:$e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,na(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(a+1,t,i);if(f.err)return f;var v=this.tryParseArgumentClose(b);if(v.err)return v;s.push([u,{value:f.val,location:na(b,this.clonePosition())}]),d.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,p=o.location}return s.length===0?this.error(t==="select"?$e.EXPECT_SELECT_ARGUMENT_SELECTOR:$e.EXPECT_PLURAL_ARGUMENT_SELECTOR,na(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!r?this.error($e.MISSING_OTHER_CLAUSE,na(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(a,t){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var o=!1,r=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,r=r*10+(s-48),this.bump();else break}var d=na(n,this.clonePosition());return o?(r*=i,mne(r)?{val:r,err:null}:this.error(t,d)):this.error(a,d)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var a=this.position.offset;if(a>=this.message.length)throw Error("out of bound");var t=iO(this.message,a);if(t===void 0)throw Error("Offset ".concat(a," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(a,t){return{val:null,err:{kind:a,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var a=this.char();a===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=a<65536?1:2)}},e.prototype.bumpIf=function(a){if(aO(this.message,a,this.offset())){for(var t=0;t<a.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(a){var t=this.offset(),i=this.message.indexOf(a,t);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(a){if(this.offset()>a)throw Error("targetOffset ".concat(a," must be greater than or equal to the current offset ").concat(this.offset()));for(a=Math.min(a,this.message.length);;){var t=this.offset();if(t===a)break;if(t>a)throw Error("targetOffset ".concat(a," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&rO(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var a=this.char(),t=this.offset(),i=this.message.charCodeAt(t+(a>=65536?2:1));return i??null},e}();function xj(e){return e>=97&&e<=122||e>=65&&e<=90}function kne(e){return xj(e)||e===47}function hne(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function rO(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function bne(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Cj(e){e.forEach(function(a){if(delete a.location,W_(a)||E_(a))for(var t in a.options)delete a.options[t].location,Cj(a.options[t].value);else C_(a)&&M_(a.style)||(D_(a)||G_(a))&&Ck(a.style)?delete a.style.location:L_(a)&&Cj(a.children)})}function sO(e,a){a===void 0&&(a={}),a=aa({shouldParseSkeletons:!0,requiresOtherClause:!0},a);var t=new oO(e,a).parse();if(t.err){var i=SyntaxError($e[t.err.kind]);throw i.location=t.err.location,i.originalMessage=t.err.message,i}return a?.captureLocation||Cj(t.val),t.val}l();l();var Od;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Od||(Od={}));var Gk=function(e){xk(a,e);function a(t,i,n){var o=e.call(this,t)||this;return o.code=i,o.originalMessage=n,o}return a.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},a}(Error);var Dj=function(e){xk(a,e);function a(t,i,n,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(i,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Od.INVALID_VALUE,o)||this}return a}(Gk);var lO=function(e){xk(a,e);function a(t,i,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(i),Od.INVALID_VALUE,n)||this}return a}(Gk);var dO=function(e){xk(a,e);function a(t,i){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(i,'"'),Od.MISSING_VALUE,i)||this}return a}(Gk);var ii;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ii||(ii={}));function vne(e){return e.length<2?e:e.reduce(function(a,t){var i=a[a.length-1];return!i||i.type!==ii.literal||t.type!==ii.literal?a.push(t):i.value+=t.value,a},[])}function yne(e){return typeof e=="function"}function Wk(e,a,t,i,n,o,r){if(e.length===1&&Ij(e[0]))return[{type:ii.literal,value:e[0].value}];for(var s=[],d=0,u=e;d<u.length;d++){var p=u[d];if(Ij(p)){s.push({type:ii.literal,value:p.value});continue}if(ZU(p)){typeof o=="number"&&s.push({type:ii.literal,value:t.getNumberFormat(a).format(o)});continue}var m=p.value;if(!(n&&m in n))throw new dO(m,r);var g=n[m];if(RU(p)){(!g||typeof g=="string"||typeof g=="number")&&(g=typeof g=="string"||typeof g=="number"?String(g):""),s.push({type:typeof g=="string"?ii.literal:ii.object,value:g});continue}if(D_(p)){var b=typeof p.style=="string"?i.date[p.style]:Ck(p.style)?p.style.parsedOptions:void 0;s.push({type:ii.literal,value:t.getDateTimeFormat(a,b).format(g)});continue}if(G_(p)){var b=typeof p.style=="string"?i.time[p.style]:Ck(p.style)?p.style.parsedOptions:i.time.medium;s.push({type:ii.literal,value:t.getDateTimeFormat(a,b).format(g)});continue}if(C_(p)){var b=typeof p.style=="string"?i.number[p.style]:M_(p.style)?p.style.parsedOptions:void 0;b&&b.scale&&(g=g*(b.scale||1)),s.push({type:ii.literal,value:t.getNumberFormat(a,b).format(g)});continue}if(L_(p)){var f=p.children,v=p.value,_=n[v];if(!yne(_))throw new lO(v,"function",r);var h=Wk(f,a,t,i,n,o),k=_(h.map(function(A){return A.value}));Array.isArray(k)||(k=[k]),s.push.apply(s,k.map(function(A){return{type:typeof A=="string"?ii.literal:ii.object,value:A}}))}if(W_(p)){var y=p.options[g]||p.options.other;if(!y)throw new Dj(p.value,g,Object.keys(p.options),r);s.push.apply(s,Wk(y.value,a,t,i,n));continue}if(E_(p)){var y=p.options["=".concat(g)];if(!y){if(!Intl.PluralRules)throw new Gk(`Intl.PluralRules is not available in this environment.
2867
+ 联盟计划`,description:"成为ZappWay的合作伙伴,开始赚取30%的重复月度佣金。只需将用户推荐到我们的平台,随着他们继续订阅,您将获得稳定的收入。",becomePartner:"成为合作伙伴",commissionInfo:"每推荐一次赚取30%的佣金。随着您的推荐用户继续订阅,您的收入将不断增长。"},WhatsAppIntegrationPage:{loading:"加载中...",accessDenied:"访问被拒绝",title:"WhatsApp 会话",updateButton:"更新",newSessionButton:"新会话",noSessionsTitle:"您尚未配置 WhatsApp 会话",noSessionsButton:"配置 WhatsApp",deniedText:"访问被拒绝",statusLabel:"状态:",deviceLabel:"设备:",lastUpdateLabel:"最后更新:",connected:"已连接",disconnected:"已断开",manageButton:"管理",connectButton:"连接",disconnectButton:"断开",manageSessionModalTitle:"管理会话:{sessionName}",connectSessionModalTitle:"连接 WhatsApp:{sessionName}",newSessionModalTitle:"新 WhatsApp 会话",newSessionPlaceholder:"会话名称",newDevicePlaceholder:"设备名称",cancelButton:"取消",createSessionButton:"创建会话"},QRCode:{titles:{error:"错误",connected:"WhatsApp 已连接!",connect:"连接您的 WhatsApp"},messages:{closeWindow:"您现在可以关闭此窗口。",expireWarning:"此二维码将在 1 分钟后过期。"},buttons:{tryAgain:"重试",disconnect:"断开 WhatsApp",generateNew:"生成新二维码"},steps:{step1:"1. 在手机上打开 WhatsApp",step2:"2. 点击菜单或设置,并选择已连接的设备",step3:"3. 点击连接设备",step4:"4. 将手机摄像头对准此二维码"},errors:{qrUnavailable:"二维码不可用",connectionCheck:"检查连接状态时出错",disconnect:"断开 WhatsApp 时出错",newQR:"生成新二维码时出错",default:"加载二维码时发生错误",unrecognizedAction:"无法识别的操作",invalidParams:"无效的参数",missingParams:"需要 organizationId 和 sessionId",internalError:"内部服务器错误",unauthorized:"未授权",sessionIdRequired:"需要会话 ID",sessionNotFound:"未找到会话",noPermission:"您无权访问此会话",sessionUpdateFailed:"会话更新失败"}},ConnectWhatsApp:{errors:{unauthorized:"未授权",methodNotAllowed:"方法不允许",creationFailed:"创建 WhatsApp 会话时出错",sessionIdMissing:"未提供会话 ID",sessionNotFound:"未找到会话",noPermissionToDisconnect:"您无权断开此会话",disconnectFailed:"断开 WhatsApp 时出错",sessionListFailed:"获取 WhatsApp 会话列表时出错",internalServerError:"内部服务器错误"},messages:{sessionCreated:"会话创建成功。请等待二维码生成。",imageSent:"图片已发送",cannotDownloadImage:"无法下载图片",errorProcessingImage:"处理图片时出错",videoSent:"视频已发送",documentSent:"文档已发送",voiceMessage:"语音消息",stickerSent:"贴纸已发送",unrecognizedMessage:"无法识别的消息:{content}"}}};var Vie={ar:YV,az:QV,bn:JV,bg:$V,ca:XV,zh:MU,cs:eU,da:aU,nl:IU,eo:oU,et:sU,fi:dU,fr:uU,de:tU,el:iU,he:mU,hi:cU,hu:gU,id:kU,it:hU,ja:bU,ko:vU,lv:fU,lt:yU,ms:_U,nb:AU,fa:lU,pl:TU,pt:PU,"pt-BR":zU,ro:wU,ru:SU,sk:jU,sl:xU,es:rU,sv:CU,th:DU,tl:GU,tr:WU,uk:EU,ur:LU,ga:pU,en:nU};xt.use(__).use(jk).init({resources:Vie,fallbackLng:"en",supportedLngs:["ar","az","bn","bg","ca","zh","cs","da","nl","eo","et","fi","fr","de","el","he","hi","hu","id","it","ja","ko","lv","lt","ms","nb","fa","pl","pt","pt-BR","ro","ru","sk","sl","es","sv","th","tl","tr","uk","ur","ga","en"],nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1},detection:{order:["cookie","localStorage","sessionStorage","navigator"],caches:["cookie"]}});var Qs=xt;l();l();l();l();l();l();l();l();var _j=function(e,a){return _j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},_j(e,a)};function xk(e,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");_j(e,a);function t(){this.constructor=e}e.prototype=a===null?Object.create(a):(t.prototype=a.prototype,new t)}var aa=function(){return aa=Object.assign||function(a){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(a[o]=t[o])}return a},aa.apply(this,arguments)};function FU(e,a){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&a.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)a.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t}function x_(e,a,t){if(t||arguments.length===2)for(var i=0,n=a.length,o;i<n;i++)(o||!(i in a))&&(o||(o=Array.prototype.slice.call(a,0,i)),o[i]=a[i]);return e.concat(o||Array.prototype.slice.call(a))}l();function Am(e,a){var t=a&&a.cache?a.cache:$ie,i=a&&a.serializer?a.serializer:Yie,n=a&&a.strategy?a.strategy:Oie;return n(e,{cache:t,serializer:i})}function Uie(e){return e==null||typeof e=="number"||typeof e=="boolean"}function NU(e,a,t,i){var n=Uie(i)?i:t(i),o=a.get(n);return typeof o>"u"&&(o=e.call(this,i),a.set(n,o)),o}function BU(e,a,t){var i=Array.prototype.slice.call(arguments,3),n=t(i),o=a.get(n);return typeof o>"u"&&(o=e.apply(this,i),a.set(n,o)),o}function Aj(e,a,t,i,n){return t.bind(a,e,i,n)}function Oie(e,a){var t=e.length===1?NU:BU;return Aj(e,this,t,a.cache.create(),a.serializer)}function Kie(e,a){return Aj(e,this,BU,a.cache.create(),a.serializer)}function Hie(e,a){return Aj(e,this,NU,a.cache.create(),a.serializer)}var Yie=function(){return JSON.stringify(arguments)},Qie=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(a){return this.cache[a]},e.prototype.set=function(a,t){this.cache[a]=t},e}(),$ie={create:function(){return new Qie}},Im={variadic:Kie,monadic:Hie};l();l();var $e;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})($e||($e={}));l();l();var Da;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Da||(Da={}));var Ud;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Ud||(Ud={}));function Ij(e){return e.type===Da.literal}function RU(e){return e.type===Da.argument}function C_(e){return e.type===Da.number}function D_(e){return e.type===Da.date}function G_(e){return e.type===Da.time}function W_(e){return e.type===Da.select}function E_(e){return e.type===Da.plural}function ZU(e){return e.type===Da.pound}function L_(e){return e.type===Da.tag}function M_(e){return!!(e&&typeof e=="object"&&e.type===Ud.number)}function Ck(e){return!!(e&&typeof e=="object"&&e.type===Ud.dateTime)}l();var Tj=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;l();l();var Jie=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function qU(e){var a={};return e.replace(Jie,function(t){var i=t.length;switch(t[0]){case"G":a.era=i===4?"long":i===5?"narrow":"short";break;case"y":a.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":a.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":a.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":a.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");a.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");a.weekday=["short","long","narrow","short"][i-4];break;case"a":a.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":a.hourCycle="h12",a.hour=["numeric","2-digit"][i-1];break;case"H":a.hourCycle="h23",a.hour=["numeric","2-digit"][i-1];break;case"K":a.hourCycle="h11",a.hour=["numeric","2-digit"][i-1];break;case"k":a.hourCycle="h24",a.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":a.minute=["numeric","2-digit"][i-1];break;case"s":a.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":a.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),a}l();l();var VU=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function HU(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var a=e.split(VU).filter(function(g){return g.length>0}),t=[],i=0,n=a;i<n.length;i++){var o=n[i],r=o.split("/");if(r.length===0)throw new Error("Invalid number skeleton");for(var s=r[0],d=r.slice(1),u=0,p=d;u<p.length;u++){var m=p[u];if(m.length===0)throw new Error("Invalid number skeleton")}t.push({stem:s,options:d})}return t}function Xie(e){return e.replace(/^(.*?)-/,"")}var UU=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,YU=/^(@+)?(\+|#+)?[rs]?$/g,ene=/(\*)(0+)|(#+)(0+)|(0+)/g,QU=/^(0+)$/;function OU(e){var a={};return e[e.length-1]==="r"?a.roundingPriority="morePrecision":e[e.length-1]==="s"&&(a.roundingPriority="lessPrecision"),e.replace(YU,function(t,i,n){return typeof n!="string"?(a.minimumSignificantDigits=i.length,a.maximumSignificantDigits=i.length):n==="+"?a.minimumSignificantDigits=i.length:i[0]==="#"?a.maximumSignificantDigits=i.length:(a.minimumSignificantDigits=i.length,a.maximumSignificantDigits=i.length+(typeof n=="string"?n.length:0)),""}),a}function $U(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ane(e){var a;if(e[0]==="E"&&e[1]==="E"?(a={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(a={notation:"scientific"},e=e.slice(1)),a){var t=e.slice(0,2);if(t==="+!"?(a.signDisplay="always",e=e.slice(2)):t==="+?"&&(a.signDisplay="exceptZero",e=e.slice(2)),!QU.test(e))throw new Error("Malformed concise eng/scientific notation");a.minimumIntegerDigits=e.length}return a}function KU(e){var a={},t=$U(e);return t||a}function JU(e){for(var a={},t=0,i=e;t<i.length;t++){var n=i[t];switch(n.stem){case"percent":case"%":a.style="percent";continue;case"%x100":a.style="percent",a.scale=100;continue;case"currency":a.style="currency",a.currency=n.options[0];continue;case"group-off":case",_":a.useGrouping=!1;continue;case"precision-integer":case".":a.maximumFractionDigits=0;continue;case"measure-unit":case"unit":a.style="unit",a.unit=Xie(n.options[0]);continue;case"compact-short":case"K":a.notation="compact",a.compactDisplay="short";continue;case"compact-long":case"KK":a.notation="compact",a.compactDisplay="long";continue;case"scientific":a=aa(aa(aa({},a),{notation:"scientific"}),n.options.reduce(function(d,u){return aa(aa({},d),KU(u))},{}));continue;case"engineering":a=aa(aa(aa({},a),{notation:"engineering"}),n.options.reduce(function(d,u){return aa(aa({},d),KU(u))},{}));continue;case"notation-simple":a.notation="standard";continue;case"unit-width-narrow":a.currencyDisplay="narrowSymbol",a.unitDisplay="narrow";continue;case"unit-width-short":a.currencyDisplay="code",a.unitDisplay="short";continue;case"unit-width-full-name":a.currencyDisplay="name",a.unitDisplay="long";continue;case"unit-width-iso-code":a.currencyDisplay="symbol";continue;case"scale":a.scale=parseFloat(n.options[0]);continue;case"rounding-mode-floor":a.roundingMode="floor";continue;case"rounding-mode-ceiling":a.roundingMode="ceil";continue;case"rounding-mode-down":a.roundingMode="trunc";continue;case"rounding-mode-up":a.roundingMode="expand";continue;case"rounding-mode-half-even":a.roundingMode="halfEven";continue;case"rounding-mode-half-down":a.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":a.roundingMode="halfExpand";continue;case"integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(ene,function(d,u,p,m,g,b){if(u)a.minimumIntegerDigits=p.length;else{if(m&&g)throw new Error("We currently do not support maximum integer digits");if(b)throw new Error("We currently do not support exact integer digits")}return""});continue}if(QU.test(n.stem)){a.minimumIntegerDigits=n.stem.length;continue}if(UU.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(UU,function(d,u,p,m,g,b){return p==="*"?a.minimumFractionDigits=u.length:m&&m[0]==="#"?a.maximumFractionDigits=m.length:g&&b?(a.minimumFractionDigits=g.length,a.maximumFractionDigits=g.length+b.length):(a.minimumFractionDigits=u.length,a.maximumFractionDigits=u.length),""});var o=n.options[0];o==="w"?a=aa(aa({},a),{trailingZeroDisplay:"stripIfInteger"}):o&&(a=aa(aa({},a),OU(o)));continue}if(YU.test(n.stem)){a=aa(aa({},a),OU(n.stem));continue}var r=$U(n.stem);r&&(a=aa(aa({},a),r));var s=ane(n.stem);s&&(a=aa(aa({},a),s))}return a}l();l();var Dk={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function XU(e,a){for(var t="",i=0;i<e.length;i++){var n=e.charAt(i);if(n==="j"){for(var o=0;i+1<e.length&&e.charAt(i+1)===n;)o++,i++;var r=1+(o&1),s=o<2?1:3+(o>>1),d="a",u=tne(a);for((u=="H"||u=="k")&&(s=0);s-- >0;)t+=d;for(;r-- >0;)t=u+t}else n==="J"?t+="H":t+=n}return t}function tne(e){var a=e.hourCycle;if(a===void 0&&e.hourCycles&&e.hourCycles.length&&(a=e.hourCycles[0]),a)switch(a){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var t=e.language,i;t!=="root"&&(i=e.maximize().region);var n=Dk[i||""]||Dk[t||""]||Dk["".concat(t,"-001")]||Dk["001"];return n[0]}var Pj,ine=new RegExp("^".concat(Tj.source,"*")),nne=new RegExp("".concat(Tj.source,"*$"));function na(e,a){return{start:e,end:a}}var one=!!String.prototype.startsWith&&"_a".startsWith("a",1),rne=!!String.fromCodePoint,sne=!!Object.fromEntries,lne=!!String.prototype.codePointAt,dne=!!String.prototype.trimStart,une=!!String.prototype.trimEnd,pne=!!Number.isSafeInteger,mne=pne?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},wj=!0;try{eO=nO("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),wj=((Pj=eO.exec("a"))===null||Pj===void 0?void 0:Pj[0])==="a"}catch{wj=!1}var eO,aO=one?function(a,t,i){return a.startsWith(t,i)}:function(a,t,i){return a.slice(i,i+t.length)===t},Sj=rne?String.fromCodePoint:function(){for(var a=[],t=0;t<arguments.length;t++)a[t]=arguments[t];for(var i="",n=a.length,o=0,r;n>o;){if(r=a[o++],r>1114111)throw RangeError(r+" is not a valid code point");i+=r<65536?String.fromCharCode(r):String.fromCharCode(((r-=65536)>>10)+55296,r%1024+56320)}return i},tO=sne?Object.fromEntries:function(a){for(var t={},i=0,n=a;i<n.length;i++){var o=n[i],r=o[0],s=o[1];t[r]=s}return t},iO=lne?function(a,t){return a.codePointAt(t)}:function(a,t){var i=a.length;if(!(t<0||t>=i)){var n=a.charCodeAt(t),o;return n<55296||n>56319||t+1===i||(o=a.charCodeAt(t+1))<56320||o>57343?n:(n-55296<<10)+(o-56320)+65536}},cne=dne?function(a){return a.trimStart()}:function(a){return a.replace(ine,"")},gne=une?function(a){return a.trimEnd()}:function(a){return a.replace(nne,"")};function nO(e,a){return new RegExp(e,a)}var jj;wj?(zj=nO("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),jj=function(a,t){var i;zj.lastIndex=t;var n=zj.exec(a);return(i=n[1])!==null&&i!==void 0?i:""}):jj=function(a,t){for(var i=[];;){var n=iO(a,t);if(n===void 0||rO(n)||bne(n))break;i.push(n),t+=n>=65536?2:1}return Sj.apply(void 0,i)};var zj,oO=function(){function e(a,t){t===void 0&&(t={}),this.message=a,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(a,t,i){for(var n=[];!this.isEOF();){var o=this.char();if(o===123){var r=this.parseArgument(a,i);if(r.err)return r;n.push(r.val)}else{if(o===125&&a>0)break;if(o===35&&(t==="plural"||t==="selectordinal")){var s=this.clonePosition();this.bump(),n.push({type:Da.pound,location:na(s,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error($e.UNMATCHED_CLOSING_TAG,na(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&xj(this.peek()||0)){var r=this.parseTag(a,t);if(r.err)return r;n.push(r.val)}else{var r=this.parseLiteral(a,t);if(r.err)return r;n.push(r.val)}}}return{val:n,err:null}},e.prototype.parseTag=function(a,t){var i=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Da.literal,value:"<".concat(n,"/>"),location:na(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(a+1,t,!0);if(o.err)return o;var r=o.val,s=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!xj(this.char()))return this.error($e.INVALID_TAG,na(s,this.clonePosition()));var d=this.clonePosition(),u=this.parseTagName();return n!==u?this.error($e.UNMATCHED_CLOSING_TAG,na(d,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Da.tag,value:n,children:r,location:na(i,this.clonePosition())},err:null}:this.error($e.INVALID_TAG,na(s,this.clonePosition())))}else return this.error($e.UNCLOSED_TAG,na(i,this.clonePosition()))}else return this.error($e.INVALID_TAG,na(i,this.clonePosition()))},e.prototype.parseTagName=function(){var a=this.offset();for(this.bump();!this.isEOF()&&hne(this.char());)this.bump();return this.message.slice(a,this.offset())},e.prototype.parseLiteral=function(a,t){for(var i=this.clonePosition(),n="";;){var o=this.tryParseQuote(t);if(o){n+=o;continue}var r=this.tryParseUnquoted(a,t);if(r){n+=r;continue}var s=this.tryParseLeftAngleBracket();if(s){n+=s;continue}break}var d=na(i,this.clonePosition());return{val:{type:Da.literal,value:n,location:d},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!kne(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(a){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(a==="plural"||a==="selectordinal")break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(i);this.bump()}return Sj.apply(void 0,t)},e.prototype.tryParseUnquoted=function(a,t){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(t==="plural"||t==="selectordinal")||i===125&&a>0?null:(this.bump(),Sj(i))},e.prototype.parseArgument=function(a,t){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error($e.EXPECT_ARGUMENT_CLOSING_BRACE,na(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error($e.EMPTY_ARGUMENT,na(i,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error($e.MALFORMED_ARGUMENT,na(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error($e.EXPECT_ARGUMENT_CLOSING_BRACE,na(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Da.argument,value:n,location:na(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error($e.EXPECT_ARGUMENT_CLOSING_BRACE,na(i,this.clonePosition())):this.parseArgumentOptions(a,t,n,i);default:return this.error($e.MALFORMED_ARGUMENT,na(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var a=this.clonePosition(),t=this.offset(),i=jj(this.message,t),n=t+i.length;this.bumpTo(n);var o=this.clonePosition(),r=na(a,o);return{value:i,location:r}},e.prototype.parseArgumentOptions=function(a,t,i,n){var o,r=this.clonePosition(),s=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(s){case"":return this.error($e.EXPECT_ARGUMENT_TYPE,na(r,d));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var p=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var g=gne(m.val);if(g.length===0)return this.error($e.EXPECT_ARGUMENT_STYLE,na(this.clonePosition(),this.clonePosition()));var b=na(p,this.clonePosition());u={style:g,styleLocation:b}}var f=this.tryParseArgumentClose(n);if(f.err)return f;var v=na(n,this.clonePosition());if(u&&aO(u?.style,"::",0)){var _=cne(u.style.slice(2));if(s==="number"){var m=this.parseNumberSkeletonFromString(_,u.styleLocation);return m.err?m:{val:{type:Da.number,value:i,location:v,style:m.val},err:null}}else{if(_.length===0)return this.error($e.EXPECT_DATE_TIME_SKELETON,v);var h=_;this.locale&&(h=XU(_,this.locale));var g={type:Ud.dateTime,pattern:h,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?qU(h):{}},k=s==="date"?Da.date:Da.time;return{val:{type:k,value:i,location:v,style:g},err:null}}}return{val:{type:s==="number"?Da.number:s==="date"?Da.date:Da.time,value:i,location:v,style:(o=u?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error($e.EXPECT_SELECT_ARGUMENT_OPTIONS,na(y,aa({},y)));this.bumpSpace();var I=this.parseIdentifierIfPossible(),A=0;if(s!=="select"&&I.value==="offset"){if(!this.bumpIf(":"))return this.error($e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,na(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger($e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,$e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),I=this.parseIdentifierIfPossible(),A=m.val}var T=this.tryParsePluralOrSelectOptions(a,s,t,I);if(T.err)return T;var f=this.tryParseArgumentClose(n);if(f.err)return f;var P=na(n,this.clonePosition());return s==="select"?{val:{type:Da.select,value:i,options:tO(T.val),location:P},err:null}:{val:{type:Da.plural,value:i,options:tO(T.val),offset:A,pluralType:s==="plural"?"cardinal":"ordinal",location:P},err:null}}default:return this.error($e.INVALID_ARGUMENT_TYPE,na(r,d))}},e.prototype.tryParseArgumentClose=function(a){return this.isEOF()||this.char()!==125?this.error($e.EXPECT_ARGUMENT_CLOSING_BRACE,na(a,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var a=0,t=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error($e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,na(n,this.clonePosition()));this.bump();break}case 123:{a+=1,this.bump();break}case 125:{if(a>0)a-=1;else return{val:this.message.slice(t.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(a,t){var i=[];try{i=HU(a)}catch{return this.error($e.INVALID_NUMBER_SKELETON,t)}return{val:{type:Ud.number,tokens:i,location:t,parsedOptions:this.shouldParseSkeletons?JU(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(a,t,i,n){for(var o,r=!1,s=[],d=new Set,u=n.value,p=n.location;;){if(u.length===0){var m=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var g=this.tryParseDecimalInteger($e.EXPECT_PLURAL_ARGUMENT_SELECTOR,$e.INVALID_PLURAL_ARGUMENT_SELECTOR);if(g.err)return g;p=na(m,this.clonePosition()),u=this.message.slice(m.offset,this.offset())}else break}if(d.has(u))return this.error(t==="select"?$e.DUPLICATE_SELECT_ARGUMENT_SELECTOR:$e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,p);u==="other"&&(r=!0),this.bumpSpace();var b=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?$e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:$e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,na(this.clonePosition(),this.clonePosition()));var f=this.parseMessage(a+1,t,i);if(f.err)return f;var v=this.tryParseArgumentClose(b);if(v.err)return v;s.push([u,{value:f.val,location:na(b,this.clonePosition())}]),d.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,p=o.location}return s.length===0?this.error(t==="select"?$e.EXPECT_SELECT_ARGUMENT_SELECTOR:$e.EXPECT_PLURAL_ARGUMENT_SELECTOR,na(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!r?this.error($e.MISSING_OTHER_CLAUSE,na(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(a,t){var i=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var o=!1,r=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)o=!0,r=r*10+(s-48),this.bump();else break}var d=na(n,this.clonePosition());return o?(r*=i,mne(r)?{val:r,err:null}:this.error(t,d)):this.error(a,d)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var a=this.position.offset;if(a>=this.message.length)throw Error("out of bound");var t=iO(this.message,a);if(t===void 0)throw Error("Offset ".concat(a," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(a,t){return{val:null,err:{kind:a,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var a=this.char();a===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=a<65536?1:2)}},e.prototype.bumpIf=function(a){if(aO(this.message,a,this.offset())){for(var t=0;t<a.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(a){var t=this.offset(),i=this.message.indexOf(a,t);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(a){if(this.offset()>a)throw Error("targetOffset ".concat(a," must be greater than or equal to the current offset ").concat(this.offset()));for(a=Math.min(a,this.message.length);;){var t=this.offset();if(t===a)break;if(t>a)throw Error("targetOffset ".concat(a," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&rO(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var a=this.char(),t=this.offset(),i=this.message.charCodeAt(t+(a>=65536?2:1));return i??null},e}();function xj(e){return e>=97&&e<=122||e>=65&&e<=90}function kne(e){return xj(e)||e===47}function hne(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function rO(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function bne(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Cj(e){e.forEach(function(a){if(delete a.location,W_(a)||E_(a))for(var t in a.options)delete a.options[t].location,Cj(a.options[t].value);else C_(a)&&M_(a.style)||(D_(a)||G_(a))&&Ck(a.style)?delete a.style.location:L_(a)&&Cj(a.children)})}function sO(e,a){a===void 0&&(a={}),a=aa({shouldParseSkeletons:!0,requiresOtherClause:!0},a);var t=new oO(e,a).parse();if(t.err){var i=SyntaxError($e[t.err.kind]);throw i.location=t.err.location,i.originalMessage=t.err.message,i}return a?.captureLocation||Cj(t.val),t.val}l();l();var Od;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Od||(Od={}));var Gk=function(e){xk(a,e);function a(t,i,n){var o=e.call(this,t)||this;return o.code=i,o.originalMessage=n,o}return a.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},a}(Error);var Dj=function(e){xk(a,e);function a(t,i,n,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(i,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Od.INVALID_VALUE,o)||this}return a}(Gk);var lO=function(e){xk(a,e);function a(t,i,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(i),Od.INVALID_VALUE,n)||this}return a}(Gk);var dO=function(e){xk(a,e);function a(t,i){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(i,'"'),Od.MISSING_VALUE,i)||this}return a}(Gk);var ii;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ii||(ii={}));function vne(e){return e.length<2?e:e.reduce(function(a,t){var i=a[a.length-1];return!i||i.type!==ii.literal||t.type!==ii.literal?a.push(t):i.value+=t.value,a},[])}function yne(e){return typeof e=="function"}function Wk(e,a,t,i,n,o,r){if(e.length===1&&Ij(e[0]))return[{type:ii.literal,value:e[0].value}];for(var s=[],d=0,u=e;d<u.length;d++){var p=u[d];if(Ij(p)){s.push({type:ii.literal,value:p.value});continue}if(ZU(p)){typeof o=="number"&&s.push({type:ii.literal,value:t.getNumberFormat(a).format(o)});continue}var m=p.value;if(!(n&&m in n))throw new dO(m,r);var g=n[m];if(RU(p)){(!g||typeof g=="string"||typeof g=="number")&&(g=typeof g=="string"||typeof g=="number"?String(g):""),s.push({type:typeof g=="string"?ii.literal:ii.object,value:g});continue}if(D_(p)){var b=typeof p.style=="string"?i.date[p.style]:Ck(p.style)?p.style.parsedOptions:void 0;s.push({type:ii.literal,value:t.getDateTimeFormat(a,b).format(g)});continue}if(G_(p)){var b=typeof p.style=="string"?i.time[p.style]:Ck(p.style)?p.style.parsedOptions:i.time.medium;s.push({type:ii.literal,value:t.getDateTimeFormat(a,b).format(g)});continue}if(C_(p)){var b=typeof p.style=="string"?i.number[p.style]:M_(p.style)?p.style.parsedOptions:void 0;b&&b.scale&&(g=g*(b.scale||1)),s.push({type:ii.literal,value:t.getNumberFormat(a,b).format(g)});continue}if(L_(p)){var f=p.children,v=p.value,_=n[v];if(!yne(_))throw new lO(v,"function",r);var h=Wk(f,a,t,i,n,o),k=_(h.map(function(A){return A.value}));Array.isArray(k)||(k=[k]),s.push.apply(s,k.map(function(A){return{type:typeof A=="string"?ii.literal:ii.object,value:A}}))}if(W_(p)){var y=p.options[g]||p.options.other;if(!y)throw new Dj(p.value,g,Object.keys(p.options),r);s.push.apply(s,Wk(y.value,a,t,i,n));continue}if(E_(p)){var y=p.options["=".concat(g)];if(!y){if(!Intl.PluralRules)throw new Gk(`Intl.PluralRules is not available in this environment.
2868
2868
  Try polyfilling it using "@formatjs/intl-pluralrules"
2869
2869
  `,Od.MISSING_INTL_API,r);var I=t.getPluralRules(a,{type:p.pluralType}).select(g-(p.offset||0));y=p.options[I]||p.options.other}if(!y)throw new Dj(p.value,g,Object.keys(p.options),r);s.push.apply(s,Wk(y.value,a,t,i,n,g-(p.offset||0)));continue}}return vne(s)}function fne(e,a){return a?aa(aa(aa({},e||{}),a||{}),Object.keys(e).reduce(function(t,i){return t[i]=aa(aa({},e[i]),a[i]||{}),t},{})):e}function _ne(e,a){return a?Object.keys(e).reduce(function(t,i){return t[i]=fne(e[i],a[i]),t},aa({},e)):e}function Gj(e){return{create:function(){return{get:function(a){return e[a]},set:function(a,t){e[a]=t}}}}}function Ane(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Am(function(){for(var a,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((a=Intl.NumberFormat).bind.apply(a,x_([void 0],t,!1)))},{cache:Gj(e.number),strategy:Im.variadic}),getDateTimeFormat:Am(function(){for(var a,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((a=Intl.DateTimeFormat).bind.apply(a,x_([void 0],t,!1)))},{cache:Gj(e.dateTime),strategy:Im.variadic}),getPluralRules:Am(function(){for(var a,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new((a=Intl.PluralRules).bind.apply(a,x_([void 0],t,!1)))},{cache:Gj(e.pluralRules),strategy:Im.variadic})}}var Ek=function(){function e(a,t,i,n){t===void 0&&(t=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var p=o.formatToParts(u);if(p.length===1)return p[0].value;var m=p.reduce(function(g,b){return!g.length||b.type!==ii.literal||typeof g[g.length-1]!="string"?g.push(b.value):g[g.length-1]+=b.value,g},[]);return m.length<=1?m[0]||"":m},this.formatToParts=function(u){return Wk(o.ast,o.locales,o.formatters,o.formats,u,void 0,o.message)},this.resolvedOptions=function(){var u;return{locale:((u=o.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=t,this.resolvedLocale=e.resolveLocale(t),typeof a=="string"){if(this.message=a,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var r=n||{},s=r.formatters,d=FU(r,["formatters"]);this.ast=e.__parse(a,aa(aa({},d),{locale:this.resolvedLocale}))}else this.ast=a;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=_ne(e.formats,i),this.formatters=n&&n.formatters||Ane(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(a){if(!(typeof Intl.Locale>"u")){var t=Intl.NumberFormat.supportedLocalesOf(a);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof a=="string"?a:a[0])}},e.__parse=sO,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();var Lk=S(R(),1);var jn=class extends Error{constructor(a,t){let i=a;t&&(i+=": "+t),super(i),this.code=a,t&&(this.originalMessage=t)}},ni=function(e){return e.MISSING_MESSAGE="MISSING_MESSAGE",e.MISSING_FORMAT="MISSING_FORMAT",e.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",e.INSUFFICIENT_PATH="INSUFFICIENT_PATH",e.INVALID_MESSAGE="INVALID_MESSAGE",e.INVALID_KEY="INVALID_KEY",e.FORMATTING_ERROR="FORMATTING_ERROR",e}(ni||{});function pO(...e){return e.filter(Boolean).join(".")}function Ine(e){return pO(e.namespace,e.key)}function mO(e){console.error(e)}function cO(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function gO(e,a){return Am(e,{cache:(t=a,{create:()=>({get:i=>t[i],set(i,n){t[i]=n}})}),strategy:Im.variadic});var t}function Tm(e,a){return gO((...t)=>new e(...t),a)}function kO(e){return{getDateTimeFormat:Tm(Intl.DateTimeFormat,e.dateTime),getNumberFormat:Tm(Intl.NumberFormat,e.number),getPluralRules:Tm(Intl.PluralRules,e.pluralRules),getRelativeTimeFormat:Tm(Intl.RelativeTimeFormat,e.relativeTime),getListFormat:Tm(Intl.ListFormat,e.list),getDisplayNames:Tm(Intl.DisplayNames,e.displayNames)}}function F_(e,a,t,i){let n=pO(i,t);if(!a)throw new Error(n);let o=a;return t.split(".").forEach(r=>{let s=o[r];if(r==null||s==null)throw new Error(n+` (${e})`);o=s}),o}function hO(e){let a=function(t,i,n,o=mO){try{if(!i)throw new Error(void 0);let r=n?F_(t,i,n):i;if(!r)throw new Error(n);return r}catch(r){let s=new jn(ni.MISSING_MESSAGE,r.message);return o(s),s}}(e.locale,e.messages,e.namespace,e.onError);return function({cache:t,formats:i,formatters:n,getMessageFallback:o=Ine,locale:r,messagesOrError:s,namespace:d,onError:u,timeZone:p}){let m=s instanceof jn;function g(v,_,h){let k=new jn(_,h);return u(k),o({error:k,key:v,namespace:d})}function b(v,_,h){if(m)return o({error:s,key:v,namespace:d});let k=s,y,I;try{y=F_(r,k,v,d)}catch(T){return g(v,ni.MISSING_MESSAGE,T.message)}if(typeof y=="object"){let T;return T=Array.isArray(y)?ni.INVALID_MESSAGE:ni.INSUFFICIENT_PATH,g(v,T,void 0)}let A=function(T,P){return P?void 0:T}(y,_);if(A)return A;n.getMessageFormat||(n.getMessageFormat=function(T,P){return gO((...z)=>new Ek(z[0],z[1],z[2],{formatters:P,...z[3]}),T.message)}(t,n));try{I=n.getMessageFormat(y,r,function(T,P,z){let D=Ek.formats.date,C=Ek.formats.time,W={...T?.dateTime,...P?.dateTime},F={date:{...D,...W},time:{...C,...W},number:{...T?.number,...P?.number}};return z&&["date","time"].forEach(N=>{let q=F[N];for(let[Z,x]of Object.entries(q))q[Z]={timeZone:z,...x}}),F}(i,h,p),{formatters:{...n,getDateTimeFormat:(T,P)=>n.getDateTimeFormat(T,{timeZone:p,...P})}})}catch(T){let P=T;return g(v,ni.INVALID_MESSAGE,P.message)}try{let T=I.format(_&&function(P){let z={};return Object.keys(P).forEach(D=>{let C=0,W=P[D],F;F=typeof W=="function"?N=>{let q=W(N);return(0,Lk.isValidElement)(q)?(0,Lk.cloneElement)(q,{key:D+C++}):q}:W,z[D]=F}),z}(_));if(T==null)throw new Error(void 0);return(0,Lk.isValidElement)(T)||Array.isArray(T)||typeof T=="string"?T:String(T)}catch(T){return g(v,ni.FORMATTING_ERROR,T.message)}}function f(v,_,h){let k=b(v,_,h);return typeof k!="string"?g(v,ni.INVALID_MESSAGE,void 0):k}return f.rich=b,f.markup=(v,_,h)=>b(v,_,h),f.raw=v=>{if(m)return o({error:s,key:v,namespace:d});let _=s;try{return F_(r,_,v,d)}catch(h){return g(v,ni.MISSING_MESSAGE,h.message)}},f.has=v=>{if(m)return!1;try{return F_(r,s,v,d),!0}catch{return!1}},f}({...e,messagesOrError:a})}function bO(e,a){return e===a?void 0:e.slice((a+".").length)}var Wj=3600,Mk=86400,Ej=7*Mk,Lj=2628e3,uO=7884e3,Mj=365*Mk,Tne={second:1,seconds:1,minute:60,minutes:60,hour:Wj,hours:Wj,day:Mk,days:Mk,week:Ej,weeks:Ej,month:Lj,months:Lj,quarter:uO,quarters:uO,year:Mj,years:Mj};function vO(e){let{_cache:a=cO(),_formatters:t=kO(a),formats:i,locale:n,onError:o=mO,timeZone:r}=e;function s(m){return m?.timeZone||(r?m={...m,timeZone:r}:o(new jn(ni.ENVIRONMENT_FALLBACK,void 0))),m}function d(m,g,b,f,v){let _;try{_=function(h,k,y){let I;if(typeof k=="string"){if(I=h?.[k],!I){let T=new jn(ni.MISSING_FORMAT,void 0);throw o(T),T}}else I=k;return y&&(I={...I,...y}),I}(b,m,g)}catch{return v()}try{return f(_)}catch(h){return o(new jn(ni.FORMATTING_ERROR,h.message)),v()}}function u(m,g,b){return d(g,b,i?.dateTime,f=>(f=s(f),t.getDateTimeFormat(n,f).format(m)),()=>String(m))}function p(){return e.now?e.now:(o(new jn(ni.ENVIRONMENT_FALLBACK,void 0)),new Date)}return{dateTime:u,number:function(m,g,b){return d(g,b,i?.number,f=>t.getNumberFormat(n,f).format(m),()=>String(m))},relativeTime:function(m,g){try{let b,f,v={};g instanceof Date||typeof g=="number"?b=new Date(g):g&&(b=g.now!=null?new Date(g.now):p(),f=g.unit,v.style=g.style,v.numberingSystem=g.numberingSystem),b||(b=p());let _=(new Date(m).getTime()-b.getTime())/1e3;f||(f=function(k){let y=Math.abs(k);return y<60?"second":y<Wj?"minute":y<Mk?"hour":y<Ej?"day":y<Lj?"week":y<Mj?"month":"year"}(_)),v.numeric=f==="second"?"auto":"always";let h=function(k,y){return Math.round(k/Tne[y])}(_,f);return t.getRelativeTimeFormat(n,v).format(h,f)}catch(b){return o(new jn(ni.FORMATTING_ERROR,b.message)),String(m)}},list:function(m,g,b){let f=[],v=new Map,_=0;for(let h of m){let k;typeof h=="object"?(k=String(_),v.set(k,h)):k=String(h),f.push(k),_++}return d(g,b,i?.list,h=>{let k=t.getListFormat(n,h).formatToParts(f).map(y=>y.type==="literal"?y.value:v.get(y.value)||y.value);return v.size>0?k:k.join("")},()=>String(m))},dateTimeRange:function(m,g,b,f){return d(b,f,i?.dateTime,v=>(v=s(v),t.getDateTimeFormat(n,v).formatRange(m,g)),()=>[u(m),u(g)].join(" – "))}}}l();var Rr=S(R(),1);var Pne=S(ne(),1),zne=(0,Rr.createContext)(void 0);function Fj(){let e=(0,Rr.useContext)(zne);if(!e)throw new Error(void 0);return e}var yO=!1,wne=typeof window>"u";function Nj(e){return function(a,t,i){let{cache:n,formats:o,formatters:r,getMessageFallback:s,locale:d,onError:u,timeZone:p}=Fj(),m=a[i],g=bO(t,i);return p||yO||!wne||(yO=!0,u(new jn(ni.ENVIRONMENT_FALLBACK,void 0))),(0,Rr.useMemo)(()=>hO({cache:n,formatters:r,getMessageFallback:s,messages:m,namespace:g,onError:u,formats:o,locale:d,timeZone:p}),[n,r,s,m,g,u,o,d,p])}({"!":Fj().messages},e?`!.${e}`:"!","!")}function Bj(){let{formats:e,formatters:a,locale:t,now:i,onError:n,timeZone:o}=Fj();return(0,Rr.useMemo)(()=>vO({formats:e,locale:t,now:i,onError:n,timeZone:o,_formatters:a}),[e,a,i,t,n,o])}function fO(e,a){return(...t)=>{try{return a(...t)}catch{throw new Error(void 0)}}}var Fk=fO(0,Nj),Sne=fO(0,Bj);var AO=S(R()),_O={email:"email",phonenumber:"phone",comment:"comment",text:"text",textarea:"textArea",leadselect:"leadSelect",multiplechoice:"select",select:"select",file:"file",number:"number",type:"type",files:"files",industry:"industry",companysize:"companySize",referral:"referral",firstname:"firstName",interestedin:"interestedIn",modelpurchased:"modelPurchased",sizefitting:"sizeFitting",pricevalue:"priceValue",overallsatisfaction:"overallSatisfaction",contacttype:"ContactType",enterprise:"Enterprise",recommendationlikelihood:"recommendationLikelihood",usagecontext:"usageContext",leadform:"leadForm",productfeedbackform:"productFeedbackForm",onboardingform:"onboardingForm",inboundlead:"inboundLead",contactsales:"contactSales",feedback:"feedback",fromscratch:"fromScratch"};function xn(e){let a=e.toLowerCase();return a in _O?_O[a]:e}var jne={fromScratch:{select:"select"},leadForm:{select:"select"},productFeedbackForm:{type:"type"},onboardingForm:{Enterprise:"Enterprise",companySize:"companySize",referral:"referral"},inboundLead:{interestedIn:"interestedIn"},contactSales:{interestedIn:"interestedIn"},feedback:{usageContext:"usageContext",recommendationLikelihood:"recommendationLikelihood",priceValue:"priceValue",overallSatisfaction:"overallSatisfaction"}};function Nk(e,a,t){let i=jne[xn(e)];if(!i)return console.warn("No alias for tplId=",e),t;if(t.startsWith("templates."))return t;if(i[a])return`templates.${e}.fields.${i[a]}.options.${t}.name`;for(let[n,o]of Object.entries(i))if(t.startsWith(`${o}.`))return`templates.${e}.fields.${o}.options.${t.split(".").pop()}.name`;return console.warn("Option not matched with any alias:",e,a,t),`templates.${e}.fields.${a}.options.${t}.name`}function Pm(){let e,a,t;try{let n=Fk("FormsPage.templates"),o=Fk("FormsPage"),r=Fk("form");e=s=>n(s),a=s=>o(s),t=s=>r(s)}catch{e=n=>j_(`FormsPage.templates.${n}`,{defaultValue:n}),a=n=>j_(`FormsPage.${n}`,{defaultValue:n}),t=n=>j_(`form.${n}`,{defaultValue:n})}function i(n,o){try{let r=n(o);return typeof r!="string"||r===o?null:r}catch{return null}}return(0,AO.useMemo)(()=>(n="",o="name",r)=>{n=n.replace(/^(?:templates\.)+/,"templates."),n=n.replace(/(\.options\.)templates\.[^.]+\.fields\.[^.]+\.options\./g,"$1"),n=n.replace(/(^templates\.[^\.]+\.fields\.)phoneNumber(\.)/g,"$1phone$2");let s=n.match(/^templates\.([^\.]+)\.(.+)$/);if(s){let b=s[1],f=s[2],_=`${xn(b)}.${f}`,h=i(e,_);if(h)return h}let d=n.match(/^templates\.([^\.]+)\.(.+)$/);if(!d)return n;let u=r||d[1],p=xn(u),m=d[2],g=m.split(".");if(g.length===1){if(g[0]==="name")return i(e,`${p}.name`)||n;if(g[0]==="overview")return i(e,`${p}.overview`)||n;if(g[0]==="description")return i(e,`${p}.description`)||n}if(g[0]==="startScreen"&&g.length===2)return i(e,`${p}.startScreen.${g[1]}`)||n;if(g[0]==="fields"&&g.length>=3){if(g[2]==="options"&&g.length>=4){let b=g[1],f=xn(b),v=g[g.length-1],_=v==="name"||v==="placeholder"?g[g.length-2]:v;if(_.startsWith("templates.")){let h=i(e,_);return h||_}if(o==="name"||o==="placeholder"){let h=`${p}.fields.${f}.options.${_}.${o}`,k=i(e,h);if(k)return k}if(o==="name"){let h=`${p}.fields.${f}.options.${_}`,k=i(e,h);if(k)return k}return n}if((g[2]==="name"||g[2]==="placeholder")&&g.length===3){let b=xn(g[1]),f=`${p}.fields.${b}.${g[2]}`,v=i(e,f);if(v)return v}}if(!m.startsWith("fields.")){let b=i(a,m);if(b)return b}if(["name","placeholder"].includes(o)&&g[0]==="fields"&&g.length===3){let b=xn(g[1]);if(["email","phoneNumber","text","textArea","leadSelect","file","number","select"].includes(b))return i(t,`fieldTypes.${b}.${o}`)||n}if(o==="placeholder"&&g[0]==="fields"&&g.length===3){let b=xn(g[1]);return i(t,`fieldTypes.${b}.placeholder`)||n}return n},[e,a,t])}l();var N_=(u=>(u.Email="email",u.PhoneNumber="phoneNumber",u.Text="text",u.Number="number",u.TextArea="textArea",u.leadSelect="leadSelect",u.File="file",u.MultipleChoice="multiple_choice",u.Select="select",u))(N_||{});l();var IO=e=>(a,t)=>{let i;return t&&(typeof t=="object"&&"arg"in t?i=t.arg:i=t),fr(a,{method:e,data:i}).then(n=>n.data)};var TO=(...e)=>fr(...e).then(a=>a.data);l();l();async function Rj(e,a,{concurrency:t=Number.POSITIVE_INFINITY,stopOnError:i=!0,signal:n}={}){return new Promise((o,r)=>{if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof a!="function")throw new TypeError("Mapper function is required");if(!(Number.isSafeInteger(t)&&t>=1||t===Number.POSITIVE_INFINITY))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${t}\` (${typeof t})`);let s=[],d=[],u=new Map,p=!1,m=!1,g=!1,b=0,f=0,v=e[Symbol.iterator]===void 0?e[Symbol.asyncIterator]():e[Symbol.iterator](),_=()=>{y(n.reason)},h=()=>{n?.removeEventListener("abort",_)},k=A=>{o(A),h()},y=A=>{p=!0,m=!0,r(A),h()};n&&(n.aborted&&y(n.reason),n.addEventListener("abort",_,{once:!0}));let I=async()=>{if(m)return;let A=await v.next(),T=f;if(f++,A.done){if(g=!0,b===0&&!m){if(!i&&d.length>0){y(new AggregateError(d));return}if(m=!0,u.size===0){k(s);return}let P=[];for(let[z,D]of s.entries())u.get(z)!==PO&&P.push(D);k(P)}return}b++,(async()=>{try{let P=await A.value;if(m)return;let z=await a(P,T);z===PO&&u.set(T,z),s[T]=z,b--,await I()}catch(P){if(i)y(P);else{d.push(P),b--;try{await I()}catch(z){y(z)}}}})()};(async()=>{for(let A=0;A<t;A++){try{await I()}catch(T){y(T);break}if(g||p)break}})()})}var PO=Symbol("skip");var Cn=S(R());l();var oi=S(R(),1);var zO=lm?e=>{e()}:oi.default.startTransition,xne=e=>{let[,a]=(0,oi.useState)({}),t=(0,oi.useRef)(!1),i=(0,oi.useRef)(e),n=(0,oi.useRef)({data:!1,error:!1,isValidating:!1}),o=(0,oi.useCallback)(r=>{let s=!1,d=i.current;for(let u in r)if(Object.prototype.hasOwnProperty.call(r,u)){let p=u;d[p]!==r[p]&&(d[p]=r[p],n.current[p]&&(s=!0))}s&&!t.current&&a({})},[]);return Er(()=>(t.current=!1,()=>{t.current=!0})),[i,n.current,o]},Cne=()=>(e,a,t={})=>{let{mutate:i}=p_(),n=(0,oi.useRef)(e),o=(0,oi.useRef)(a),r=(0,oi.useRef)(t),s=(0,oi.useRef)(0),[d,u,p]=xne({data:Ha,error:Ha,isMutating:!1}),m=d.current,g=(0,oi.useCallback)(async(f,v)=>{let[_,h]=wd(n.current);if(!o.current)throw new Error("Can’t trigger the mutation: missing fetcher.");if(!_)throw new Error("Can’t trigger the mutation: missing key.");let k=hi(hi({populateCache:!1,throwOnError:!0},r.current),v),y=Us();s.current=y,p({isMutating:!0});try{let I=await i(_,o.current(h,{arg:f}),hi(k,{throwOnError:!0}));return s.current<=y&&(zO(()=>p({data:I,isMutating:!1,error:void 0})),k.onSuccess==null||k.onSuccess.call(k,I,_,k)),I}catch(I){if(s.current<=y&&(zO(()=>p({error:I,isMutating:!1})),k.onError==null||k.onError.call(k,I,_,k),k.throwOnError))throw I}},[]),b=(0,oi.useCallback)(()=>{s.current=Us(),p({data:Ha,error:Ha,isMutating:!1})},[]);return Er(()=>{n.current=e,o.current=a,r.current=t}),{trigger:g,reset:b,get data(){return u.data=!0,m.data},get error(){return u.error=!0,m.error},get isMutating(){return u.isMutating=!0,m.isMutating}}},wO=nV(m_,Cne);var Dne=["image/png","image/jpeg","image/gif","image/avif","image/apng","image/svg+xml","image/webp"];function B_(e){return Dne.includes(e)}var Gne=["application/pdf","text/plain"],Wne=["audio/mpeg","audio/ogg"],Ene=["video/mp4","video/mpeg","video/webm"];function SO(e){return B_(e)||Gne.includes(e)||Wne.includes(e)||Ene.includes(e)}function Lne(e={}){let{ref:a,changeCallback:t}=e,[i,n]=(0,Cn.useState)(!1),[o,r]=(0,Cn.useState)(!1),[s,d]=(0,Cn.useState)([]),p=wO("https://app.zappway.ai/api/generate-upload-links",IO("POST")),m=(0,Cn.useCallback)(async _=>{let h=[];try{n(!0);let k=_.map(I=>{let A=I.fileName??I.file.name;switch(I.case){case"agentIcon":{if(!B_(I.file.type))throw new Error(`MimeType inválido para agentIcon: ${I.file.type}`);return{case:"agentIcon",agentId:I.agentId,fileName:A,mimeType:I.file.type}}case"organizationIcon":{if(!B_(I.file.type))throw new Error(`MimeType inválido para organizationIcon: ${I.file.type}`);return{case:"organizationIcon",fileName:A,mimeType:I.file.type}}case"userIcon":{if(!B_(I.file.type))throw new Error(`MimeType inválido para userIcon: ${I.file.type}`);return{case:"userIcon",fileName:A,mimeType:I.file.type}}case"chatUpload":{if(!SO(I.file.type))throw new Error(`MimeType inválido para chatUpload: ${I.file.type}`);return{case:"chatUpload",conversationId:I.conversationId,agentId:I.agentId,fileName:A,mimeType:I.file.type}}case"formUpload":{if(!SO(I.file.type))throw new Error(`MimeType inválido para formUpload: ${I.file.type}`);return{case:"formUpload",formId:I.formId,conversationId:I.conversationId,fileName:A,mimeType:I.file.type}}}}),y=await p.trigger(k)||[];y.length>0&&(await Rj(y,async({signedUrl:I},A)=>fr.put(I,_[A].file,{headers:{"Content-Type":_[A].file.type}}),{concurrency:y.length}),h=y.map(I=>I.fileUrl))}catch(k){console.error(k)}finally{return n(!1),h}},[p]),g=(0,Cn.useCallback)(async _=>{let k=Array.from(_||[]).filter(A=>!s.find(T=>T.name===A.name));if(k.find(A=>A.size>1e7)){alert("O tamanho do arquivo está limitado a 10MB");return}let I=[...s,...k];t&&await t(I),d(I)},[t,s]),b=(0,Cn.useCallback)(_=>{_.preventDefault(),r(!0)},[]),f=(0,Cn.useCallback)(_=>{_.preventDefault(),r(!1)},[]),v=(0,Cn.useCallback)(_=>{_.preventDefault(),r(!1),_.dataTransfer.files&&_.dataTransfer.files.length>0&&(g(_.dataTransfer.files),_.dataTransfer.clearData())},[g]);return(0,Cn.useEffect)(()=>{let _=a?.current;return _&&(_.addEventListener("dragover",b),_.addEventListener("dragleave",f),_.addEventListener("drop",v)),()=>{_&&(_.removeEventListener("dragover",b),_.removeEventListener("dragleave",f),_.removeEventListener("drop",v))}},[a,b,f,v]),{generateLinkMutation:p,upload:m,isUploading:i,isDragOver:o}}var jO=Lne;l();var xO=S(R()),Mne=e=>(0,xO.useReducer)((t,i)=>({...t,...i}),{...e}),CO=Mne;l();var R_=S(R());var Kd=S(ne());function Z_(){let{t:e}=uo("_PoweredBy",{i18n:Qs}),{mode:a}=bz(),[t,i]=(0,R_.useState)(!1);if((0,R_.useEffect)(()=>{i(!0)},[]),!t)return null;let n=a==="light"?"linear-gradient(to right, #000f0f 0%, #009a7e 15%, #009a7e 95%, #000f0f 100%)":"#009a7e";return(0,Kd.jsx)("a",{href:"https://zappway.ai",target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",marginLeft:"auto",marginRight:"auto"},children:(0,Kd.jsx)(gr,{variant:"outlined",size:"sm",color:"neutral",children:(0,Kd.jsx)(eo,{className:"truncate",sx:{whiteSpace:"nowrap"},children:(0,Kd.jsxs)(ba,{level:"body-xs",fontSize:"10px",children:[e("powered_by")," ",(0,Kd.jsx)(ba,{component:"span",level:"h4",sx:{fontFamily:"Poppins, sans-serif",fontSize:"10px",lineHeight:"1.2",fontWeight:700,background:n,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",textAlign:"center"},children:"⚡️ ZappWay"})]})})})})}l();l();l();var DO={"application/prs.cww":["cww"],"application/prs.xsf+xml":["xsf"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["*xfdf"],"application/vnd.age":["age"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.autodesk.fbx":["fbx"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dcmp+xml":["dcmp"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["*fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.slides":["ggs"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.drawing":["gdraw"],"application/vnd.google-apps.form":["gform"],"application/vnd.google-apps.jam":["gjam"],"application/vnd.google-apps.map":["gmap"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.script":["gscript"],"application/vnd.google-apps.site":["gsite"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.gov.sk.xmldatacontainer+xml":["xdcf"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["*mpp","mpt"],"application/vnd.ms-visio.viewer":["vdx"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.nato.bindingdataobject+xml":["bdo"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.procrate.brushset":["brushset"],"application/vnd.procreate.brush":["brush"],"application/vnd.procreate.dream":["drm"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.pwg-xhtml-print+xml":["xhtm"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml","uo"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw","vsdx","vtx"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blender":["blend"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-compressed":["*rar"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-ipynb+json":["ipynb"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["*prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["*sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zip-compressed":["*zip"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["*aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif","btf"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-adobe-dng":["dng"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.bary":["bary"],"model/vnd.cld":["cld"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["*mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.pytha.pyox":["pyo","pyox"],"model/vnd.sap.vds":["vds"],"model/vnd.usda":["usda"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.familysearch.gedcom":["ged"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]};Object.freeze(DO);var GO=DO;l();var WO={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(WO);var EO=WO;l();var Dn=function(e,a,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof a=="function"?e!==a||!i:!a.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(e):i?i.value:a.get(e)},zm,Bk,Hd,Zj=class{constructor(...a){zm.set(this,new Map),Bk.set(this,new Map),Hd.set(this,new Map);for(let t of a)this.define(t)}define(a,t=!1){for(let[i,n]of Object.entries(a)){i=i.toLowerCase(),n=n.map(s=>s.toLowerCase()),Dn(this,Hd,"f").has(i)||Dn(this,Hd,"f").set(i,new Set);let o=Dn(this,Hd,"f").get(i),r=!0;for(let s of n){let d=s.startsWith("*");if(s=d?s.slice(1):s,o?.add(s),r&&Dn(this,Bk,"f").set(i,s),r=!1,d)continue;let u=Dn(this,zm,"f").get(s);if(u&&u!=i&&!t)throw new Error(`"${i} -> ${s}" conflicts with "${u} -> ${s}". Pass \`force=true\` to override this definition.`);Dn(this,zm,"f").set(s,i)}}return this}getType(a){if(typeof a!="string")return null;let t=a.replace(/^.*[/\\]/s,"").toLowerCase(),i=t.replace(/^.*\./s,"").toLowerCase(),n=t.length<a.length;return!(i.length<t.length-1)&&n?null:Dn(this,zm,"f").get(i)??null}getExtension(a){return typeof a!="string"?null:(a=a?.split?.(";")[0],(a&&Dn(this,Bk,"f").get(a.trim().toLowerCase()))??null)}getAllExtensions(a){return typeof a!="string"?null:Dn(this,Hd,"f").get(a.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(let a of Dn(this,Hd,"f").values())Object.freeze(a);return this}_getTestState(){return{types:Dn(this,zm,"f"),extensions:Dn(this,Bk,"f")}}};zm=new WeakMap,Bk=new WeakMap,Hd=new WeakMap;var qj=Zj;var LO=new qj(EO,GO)._freeze();l();var V_=S(MO());var U_=S(R()),ft=S(ne());function Vj(e,a){typeof window>"u"||!document||fetch(e).then(t=>t.blob()).then(t=>{let i=document.createElement("a");i.href=URL.createObjectURL(t),i.download=a,i.click()}).catch(t=>{console.error(t),window.open(e,"_blank")})}function Rne({attachment:e}){let a=e?.mimeType?.startsWith("image/"),t=e?.mimeType?.startsWith("video/"),i=e?.mimeType?.startsWith("audio/"),n=!a&&!t&&!i,[o,r]=(0,U_.useState)(!1);return(0,ft.jsxs)(U_.default.Fragment,{children:[a&&!o&&(0,ft.jsx)(gr,{color:"neutral",variant:"soft",onClick:()=>r(!0),size:"lg",startDecorator:(0,ft.jsx)(V_.default,{}),sx:{cursor:"pointer"},children:(0,ft.jsxs)(ca,{gap:1,direction:"row",sx:{alignItems:"end"},children:[(0,ft.jsx)(ba,{children:e.name}),(0,ft.jsx)(ba,{level:"body-xs",children:`${(e.size/1e5).toFixed(2)}MB`})]})}),a&&o&&(0,ft.jsxs)(ca,{gap:1,sx:{alignItems:"flex-start"},children:[(0,ft.jsx)(eo,{component:"img",src:e.url,alt:e.name,sx:{borderRadius:"xl",maxWidth:"100%",maxHeight:"300px",cursor:"pointer",transition:"0.2s","&:hover":{transform:"scale(1.02)"}},onClick:()=>Vj(e.url,e.name)}),(0,ft.jsx)(gr,{size:"sm",variant:"soft",color:"neutral",onClick:()=>Vj(e.url,e.name),startDecorator:(0,ft.jsx)(V_.default,{}),sx:{cursor:"pointer"},children:e.name})]}),t&&(0,ft.jsx)(eo,{component:"video",controls:!0,src:e.url,sx:{borderRadius:"xl",maxWidth:"100%",maxHeight:"300px"}}),i&&(0,ft.jsx)(eo,{component:"audio",controls:!0,src:e.url,sx:{maxWidth:"100%"}}),n&&(0,ft.jsx)(gr,{color:"neutral",variant:"soft",onClick:()=>Vj(e.url,e.name),size:"lg",startDecorator:(0,ft.jsx)(V_.default,{}),sx:{cursor:"pointer"},children:(0,ft.jsxs)(ca,{gap:1,direction:"row",sx:{alignItems:"end"},children:[(0,ft.jsx)(ba,{children:e.name}),(0,ft.jsx)(ba,{level:"body-xs",children:`${(e.size/1e5).toFixed(2)}MB`})]})})]})}var FO=Rne;l();var HO=S(NO());var po=S(R());l();var BO=["image/png","image/jpeg","image/gif","image/avif","image/apng","image/svg+xml","image/webp"],RO=["video/mp4","video/mpeg","video/webm","video/x-msvideo","video/ogg"],ZO=["audio/mp3","audio/mpeg","audio/ogg","audio/wav","audio/webm","audio/aac"],qO=["text/css","text/csv","text/javascript","text/plain","text/calendar","application/x-abiword","application/x-freearc","application/vnd.amazon.ebook","application/x-bzip2","application/x-cdf","application/x-csh","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-fontobject","application/epub+zip","application/epub+zip","application/vnd.oasis.opendocument.presentation","application/vnd.oasis.opendocument.spreadsheet","application/vnd.oasis.opendocument.text","application/ogg","application/pdf","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.rar","application/rtf","application/xhtml+xml","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/gzip","application/zip"],VO=[...BO,...RO,...ZO,...qO],Une=["text/csv","text/plain","text/markdown","application/pdf","application/json","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],Spa=[...BO,...RO,...ZO,...qO],jpa=[...Une,"image/png","image/jpeg","image/gif","image/webp"];l();var UO=S(R()),KO=S(ne()),One=(0,UO.forwardRef)((e,a)=>(0,KO.jsx)(Kne,{...e,ref:a})),Kne=re("input")`
2870
2870
  clip: rect(0 0 0 0);
@@ -2876,7 +2876,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
2876
2876
  left: 0;
2877
2877
  white-space: nowrap;
2878
2878
  width: 1px;
2879
- `,OO=One;var Gn=S(ne()),Hne=VO.join(",");function Uj({changeCallback:e,placeholder:a,variant:t="plain"}){let{t:i}=uo(["_FileUploaderDropZone"],{i18n:Qs}),[n,o]=(0,po.useState)(void 0),[r,s]=(0,po.useState)(!1),d=(0,po.useRef)(null),[u,p]=(0,po.useState)([]),m=(0,po.useCallback)(async v=>{o(!0);let _=1e7,h=Array.from(v).filter(y=>!u.find(I=>I.name===y.name));h.find(y=>y.size>_)?(d.current&&(d.current.value=""),alert(i("file_size_limit")),o(!1)):(await e(h),p([...u,...h]),o(!1))},[e,u,i]),g=(0,po.useCallback)(v=>{v.preventDefault(),s(!0)},[]),b=(0,po.useCallback)(v=>{v.preventDefault(),s(!1)},[]),f=(0,po.useCallback)(v=>{v.preventDefault(),s(!1),v.dataTransfer.files&&v.dataTransfer.files.length>0&&(m(v.dataTransfer.files),v.dataTransfer.clearData())},[m]);return(0,Gn.jsxs)(ca,{gap:1,children:[(0,Gn.jsx)(ad,{component:"div",sx:{maxHeight:"100%",borderStyle:"dashed"},onDragOver:g,onDragLeave:b,onDrop:f,color:r?"primary":"neutral",variant:"outlined",children:(0,Gn.jsxs)(ca,{sx:{justifyContent:"center",alignItems:"center"},gap:1,children:[(0,Gn.jsx)(HO.default,{sx:{opacity:.5,fontSize:32}}),(0,Gn.jsxs)(ba,{component:"label",level:"body-sm",color:"neutral",children:[i("drop_items_here_or")," ",(0,Gn.jsxs)(ba,{component:"label",color:"primary",sx:{cursor:"pointer"},level:"body-sm",fontWeight:"bold",children:[i("browse_files"),(0,Gn.jsx)(OO,{ref:d,accept:Hne,type:"file",multiple:!0,onChange:v=>{m(v.target.files)}})]})]})]})}),(0,Gn.jsx)(ca,{direction:"row",sx:{flexWrap:"wrap"},gap:1,children:u.map((v,_)=>(0,Gn.jsx)(gr,{size:"sm",variant:"soft",color:"primary",endDecorator:(0,Gn.jsx)(nw,{disabled:n,onDelete:async()=>{let h=u.filter((k,y)=>y!==_);p(h),await e(h)}}),children:v.name},v.name))})]})}l();l();l();var Oj=(e,a,t)=>{let i=a.split(/[\.\[\]]/g),n=e;for(let o of i){if(n===null||n===void 0)return t;let r=o.replace(/['"]/g,"");r.trim()!==""&&(n=n[r])}return n===void 0?t:n};var YO=S(R());var wm=S(ne()),QO=(0,YO.forwardRef)((e,a)=>{let{control:t,name:i,label:n,helperText:o,formControlProps:r,disabled:s,hidden:d,onChange:u,onBlur:p,value:m,...g}=e,{errors:b}=jz({control:t}),f=i?Oj(b,`${i}.message`):void 0,v=f??o;return(0,wm.jsxs)(Jt,{...r,error:!!f,children:[!d&&n&&(0,wm.jsx)(br,{sx:s?{color:"text.disabled"}:void 0,children:n}),(0,wm.jsx)(sw,{ref:a,name:i,onChange:u,onBlur:p,value:m,error:!!f,disabled:s,...g}),v&&(0,wm.jsx)(xo,{children:v})]})});QO.displayName="RHFormInput";var Sm=QO;l();var tK=S($O());var $s=S(R());l();var en=S(R(),1),mo=S(R(),1),Y_=S(R(),1),Hj=S(R(),1),Yj=S(R(),1),Da=S(R(),1),aK=S(R(),1),Zr=S(R(),1),Vo=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) .....-...."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253",".. .. ...."],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251",".. ... ...."],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262","",1,["269","639"]],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262","",0],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],Jne="react-international-phone-",XO=(...e)=>e.filter(a=>!!a).join(" ").trim(),Xne=(...e)=>XO(...e).split(" ").map(a=>`${Jne}${a}`).join(" "),ri=({addPrefix:e,rawClassNames:a})=>XO(Xne(...e),...a),eoe=({value:e,mask:a,maskSymbol:t,offset:i=0,trimNonMaskCharsLeftover:n=!1})=>{if(e.length<i)return e;let o=e.slice(0,i),r=e.slice(i),s=o,d=0;for(let u of a.split("")){if(d>=r.length){if(!n&&u!==t){s+=u;continue}break}u===t?(s+=r[d],d+=1):s+=u}return s},jm=e=>e?/^\d+$/.test(e):!1,Q_=e=>e.replace(/\D/g,""),aoe=(e,a)=>{let t=e.style.display;t!=="block"&&(e.style.display="block");let i=e.getBoundingClientRect(),n=a.getBoundingClientRect(),o=n.top-i.top,r=i.bottom-n.bottom;o>=0&&r>=0||(Math.abs(o)<Math.abs(r)?e.scrollTop+=o:e.scrollTop-=r),e.style.display=t};var toe=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh");var ioe=(e,a)=>{let t=a.disableDialCodeAndPrefix?!1:a.forceDialCode,i=a.disableDialCodeAndPrefix?!1:a.insertDialCodeOnEmpty,n=e,o=u=>a.trimNonDigitsEnd?u.trim():u;if(!n)return i&&!n.length||t?o(`${a.prefix}${a.dialCode}${a.charAfterDialCode}`):o(n);if(n=Q_(n),n===a.dialCode&&!a.disableDialCodeAndPrefix)return o(`${a.prefix}${a.dialCode}${a.charAfterDialCode}`);if(a.dialCode.startsWith(n)&&!a.disableDialCodeAndPrefix)return o(t?`${a.prefix}${a.dialCode}${a.charAfterDialCode}`:`${a.prefix}${n}`);if(!n.startsWith(a.dialCode)&&!a.disableDialCodeAndPrefix){if(t)return o(`${a.prefix}${a.dialCode}${a.charAfterDialCode}`);if(n.length<a.dialCode.length)return o(`${a.prefix}${n}`)}let r=()=>{let u=a.dialCode.length,p=n.slice(0,u),m=n.slice(u);return{phoneLeftSide:p,phoneRightSide:m}},{phoneLeftSide:s,phoneRightSide:d}=r();return s=`${a.prefix}${s}${a.charAfterDialCode}`,d=eoe({value:d,mask:a.mask,maskSymbol:a.maskChar,trimNonMaskCharsLeftover:a.trimNonDigitsEnd||a.disableDialCodeAndPrefix&&d.length===0}),a.disableDialCodeAndPrefix&&(s=""),o(`${s}${d}`)},noe=({phoneBeforeInput:e,phoneAfterInput:a,phoneAfterFormatted:t,cursorPositionAfterInput:i,leftOffset:n=0,deletion:o})=>{if(i<n)return n;if(!e)return t.length;let r=null;for(let p=i-1;p>=0;p-=1)if(jm(a[p])){r=p;break}if(r===null){for(let p=0;p<a.length;p+=1)if(jm(t[p]))return p;return a.length}let s=0;for(let p=0;p<r;p+=1)jm(a[p])&&(s+=1);let d=0,u=0;for(let p=0;p<t.length&&(d+=1,jm(t[p])&&(u+=1),!(u>=s+1));p+=1);if(o!=="backward")for(;!jm(t[d])&&d<t.length;)d+=1;return d},H_=({phone:e,prefix:a})=>e?`${a}${Q_(e)}`:"";function Kj({value:e,country:a,insertDialCodeOnEmpty:t,trimNonDigitsEnd:i,countries:n,prefix:o,charAfterDialCode:r,forceDialCode:s,disableDialCodeAndPrefix:d,defaultMask:u,countryGuessingEnabled:p,disableFormatting:m}){let g=e;d&&(g=g.startsWith(`${o}`)?g:`${o}${a.dialCode}${g}`);let b=p?coe({phone:g,countries:n,currentCountryIso2:a?.iso2}):void 0,f=b?.country??a,v=ioe(g,{prefix:o,mask:poe({phone:g,country:f,defaultMask:u,disableFormatting:m}),maskChar:eK,dialCode:f.dialCode,trimNonDigitsEnd:i,charAfterDialCode:r,forceDialCode:s,insertDialCodeOnEmpty:t,disableDialCodeAndPrefix:d}),_=p&&!b?.fullDialCodeMatch?a:f;return{phone:H_({phone:d?`${_.dialCode}${v}`:v,prefix:o}),inputValue:v,country:_}}var ooe=e=>{if(e?.toLocaleLowerCase().includes("delete")??!1)return e?.toLocaleLowerCase().includes("forward")?"forward":"backward"},roe=(e,{country:a,insertDialCodeOnEmpty:t,phoneBeforeInput:i,prefix:n,charAfterDialCode:o,forceDialCode:r,disableDialCodeAndPrefix:s,countryGuessingEnabled:d,defaultMask:u,disableFormatting:p,countries:m})=>{let g=e.nativeEvent,b=g.inputType,f=ooe(b),v=!!b?.startsWith("insertFrom"),_=b==="insertText",h=g?.data||void 0,k=e.target.value,y=e.target.selectionStart??0;if(b?.includes("history"))return{inputValue:i,phone:H_({phone:i,prefix:n}),cursorPosition:i.length,country:a};if(_&&!jm(h)&&k!==n)return{inputValue:i,phone:H_({phone:s?`${a.dialCode}${i}`:i,prefix:n}),cursorPosition:y-(h?.length??0),country:a};if(r&&!k.startsWith(`${n}${a.dialCode}`)&&!v){let z=k?i:`${n}${a.dialCode}${o}`;return{inputValue:z,phone:H_({phone:z,prefix:n}),cursorPosition:n.length+a.dialCode.length+o.length,country:a}}let{phone:I,inputValue:A,country:T}=Kj({value:k,country:a,trimNonDigitsEnd:f==="backward",insertDialCodeOnEmpty:t,countryGuessingEnabled:d,countries:m,prefix:n,charAfterDialCode:o,forceDialCode:r,disableDialCodeAndPrefix:s,disableFormatting:p,defaultMask:u}),P=noe({cursorPositionAfterInput:y,phoneBeforeInput:i,phoneAfterInput:k,phoneAfterFormatted:A,leftOffset:r?n.length+a.dialCode.length+o.length:0,deletion:f});return{phone:I,inputValue:A,cursorPosition:P,country:T}},soe=(e,a)=>{let t=Object.keys(e),i=Object.keys(a);if(t.length!==i.length)return!1;for(let n of t)if(e[n]!==a[n])return!1;return!0},loe=()=>{let e=(0,Hj.useRef)(),a=(0,Hj.useRef)(Date.now());return{check:()=>{let t=Date.now(),i=e.current?t-a.current:void 0;return e.current=a.current,a.current=t,i}}},doe={size:20,overrideLastItemDebounceMS:-1};function uoe(e,a){let{size:t,overrideLastItemDebounceMS:i,onChange:n}={...doe,...a},[o,r]=(0,Y_.useState)(e),[s,d]=(0,Y_.useState)([o]),[u,p]=(0,Y_.useState)(0),m=loe();return[o,(g,b)=>{if(typeof g=="object"&&typeof o=="object"&&soe(g,o)||g===o)return;let f=i>0,v=m.check(),_=f&&v!==void 0?v>i:!0;if(b?.overrideLastItem!==void 0?b.overrideLastItem:!_)d(h=>[...h.slice(0,u),g]);else{let h=s.length>=t;d(k=>[...k.slice(h?1:0,u+1),g]),h||p(k=>k+1)}r(g),n?.(g)},()=>{if(u<=0)return{success:!1};let g=s[u-1];return r(g),p(b=>b-1),n?.(g),{success:!0,value:g}},()=>{if(u+1>=s.length)return{success:!1};let g=s[u+1];return r(g),p(b=>b+1),n?.(g),{success:!0,value:g}}]}var eK=".",Wn={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:Vo,preferredCountries:[]},Qj=({defaultCountry:e=Wn.defaultCountry,value:a=Wn.value,countries:t=Wn.countries,prefix:i=Wn.prefix,defaultMask:n=Wn.defaultMask,charAfterDialCode:o=Wn.charAfterDialCode,historySaveDebounceMS:r=Wn.historySaveDebounceMS,disableCountryGuess:s=Wn.disableCountryGuess,disableDialCodePrefill:d=Wn.disableDialCodePrefill,forceDialCode:u=Wn.forceDialCode,disableDialCodeAndPrefix:p=Wn.disableDialCodeAndPrefix,disableFormatting:m=Wn.disableFormatting,onChange:g,inputRef:b})=>{let f={countries:t,prefix:i,charAfterDialCode:o,forceDialCode:p?!1:u,disableDialCodeAndPrefix:p,defaultMask:n,countryGuessingEnabled:!s,disableFormatting:m},v=(0,mo.useRef)(null),_=b||v,h=q=>{Promise.resolve().then(()=>{typeof window>"u"||_.current!==document?.activeElement||_.current?.setSelectionRange(q,q)})},[{phone:k,inputValue:y,country:I},A,T,P]=uoe(()=>{let q=xm({value:e,field:"iso2",countries:t});q||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let Z=q||xm({value:"us",field:"iso2",countries:t}),{phone:x,inputValue:E,country:V}=Kj({value:a,country:Z,insertDialCodeOnEmpty:!d,...f});return h(E.length),{phone:x,inputValue:E,country:V.iso2}},{overrideLastItemDebounceMS:r,onChange:({inputValue:q,phone:Z,country:x})=>{if(!g)return;let E=z(x);g({phone:Z,inputValue:q,country:E})}}),z=(0,mo.useCallback)(q=>xm({value:q,field:"iso2",countries:t}),[t]),D=(0,mo.useMemo)(()=>z(I),[I,z]);(0,mo.useEffect)(()=>{let q=_.current;if(!q)return;let Z=x=>{if(!x.key)return;let E=x.ctrlKey,V=x.metaKey,pe=x.shiftKey;if(x.key.toLowerCase()==="z"){if(toe()){if(!V)return}else if(!E)return;pe?P():T()}};return q.addEventListener("keydown",Z),()=>{q.removeEventListener("keydown",Z)}},[_,T,P]);let C=q=>{q.preventDefault();let{phone:Z,inputValue:x,country:E,cursorPosition:V}=roe(q,{country:D,phoneBeforeInput:y,insertDialCodeOnEmpty:!1,...f});return A({inputValue:x,phone:Z,country:E.iso2}),h(V),a},W=(q,Z={focusOnInput:!1})=>{let x=xm({value:q,field:"iso2",countries:t});if(!x){console.error(`[react-international-phone]: can not find a country with "${q}" iso2 code`);return}let E=p?"":`${i}${x.dialCode}${o}`;A({inputValue:E,phone:`${i}${x.dialCode}`,country:x.iso2}),Z.focusOnInput&&Promise.resolve().then(()=>{_.current?.focus()})},[F,N]=(0,mo.useState)(!1);return(0,mo.useEffect)(()=>{if(!F){N(!0),a!==k&&g?.({inputValue:y,phone:k,country:D});return}if(a===k)return;let{phone:q,inputValue:Z,country:x}=Kj({value:a,country:D,insertDialCodeOnEmpty:!d,...f});A({phone:q,inputValue:Z,country:x.iso2})},[a]),{phone:k,inputValue:y,country:D,setCountry:W,handlePhoneValueChange:C,inputRef:_}},poe=({phone:e,country:a,defaultMask:t="............",disableFormatting:i=!1})=>{let n=a.format,o=s=>i?s.replace(new RegExp(`[^${eK}]`,"g"),""):s;if(!n)return o(t);if(typeof n=="string")return o(n);if(!n.default)return console.error(`[react-international-phone]: default mask for ${a.iso2} is not provided`),o(t);let r=Object.keys(n).find(s=>{if(s==="default")return!1;if(!(s.charAt(0)==="/"&&s.charAt(s.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${s}" for ${a.iso2} is not valid`),!1;let d=new RegExp(s.substring(1,s.length-1)),u=e.replace(a.dialCode,"");return d.test(Q_(u))});return o(r?n[r]:n.default)},Gi=e=>{let[a,t,i,n,o,r]=e;return{name:a,iso2:t,dialCode:i,format:n,priority:o,areaCodes:r}},moe=e=>`Field "${e}" is not supported`,xm=({field:e,value:a,countries:t=Vo})=>{if(["priority"].includes(e))throw new Error(moe(e));let i=t.find(n=>{let o=Gi(n);return a===o[e]});if(i)return Gi(i)},coe=({phone:e,countries:a=Vo,currentCountryIso2:t})=>{let i={country:void 0,fullDialCodeMatch:!1};if(!e)return i;let n=Q_(e);if(!n)return i;let o=i,r=({country:s,fullDialCodeMatch:d})=>{let u=s.dialCode===o.country?.dialCode,p=(s.priority??0)<(o.country?.priority??0);(!u||p)&&(o={country:s,fullDialCodeMatch:d})};for(let s of a){let d=Gi(s),{dialCode:u,areaCodes:p}=d;if(n.startsWith(u)){let m=o.country?Number(u)>=Number(o.country.dialCode):!0;if(p){let g=n.substring(u.length);for(let b of p)if(g.startsWith(b))return{country:d,fullDialCodeMatch:!0}}(m||u===n||!o.fullDialCodeMatch)&&r({country:d,fullDialCodeMatch:!0})}o.fullDialCodeMatch||n.length<u.length&&u.startsWith(n)&&(!o.country||Number(u)<=Number(o.country.dialCode))&&r({country:d,fullDialCodeMatch:!1})}if(t){let s=xm({value:t,field:"iso2",countries:a});if(!s)return o;let d=s?(u=>{if(!u?.areaCodes)return!1;let p=n.substring(u.dialCode.length);return u.areaCodes.some(m=>m.startsWith(p))})(s):!1;o&&o.country?.dialCode===s.dialCode&&o.country!==s&&o.fullDialCodeMatch&&(!s.areaCodes||d)&&(o={country:s,fullDialCodeMatch:!0})}return o},goe=(e,a)=>{let t=parseInt(e,16);return Number(t+a).toString(16)},koe="abcdefghijklmnopqrstuvwxyz",hoe="1f1e6",JO=koe.split("").reduce((e,a,t)=>({...e,[a]:goe(hoe,t)}),{}),boe=e=>[JO[e[0]],JO[e[1]]].join("-"),$_=({iso2:e,size:a,src:t,protocol:i="https",disableLazyLoading:n,className:o,style:r,...s})=>{if(!e)return Yj.default.createElement("img",{className:ri({addPrefix:["flag-emoji"],rawClassNames:[o]}),width:a,height:a,...s});let d=()=>{if(t)return t;let u=boe(e);return`${i}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${u}.svg`};return Yj.default.createElement("img",{className:ri({addPrefix:["flag-emoji"],rawClassNames:[o]}),src:d(),width:a,height:a,draggable:!1,"data-country":e,loading:n?void 0:"lazy",style:{width:a,height:a,...r},alt:"",...s})},voe=1e3,yoe=({show:e,dialCodePrefix:a="+",selectedCountry:t,countries:i=Vo,preferredCountries:n=[],flags:o,onSelect:r,onClose:s,...d})=>{let u=(0,Da.useRef)(null),p=(0,Da.useRef)(),m=(0,Da.useMemo)(()=>{if(!n||!n.length)return i;let T=[],P=[...i];for(let z of n){let D=P.findIndex(C=>Gi(C).iso2===z);if(D!==-1){let C=P.splice(D,1)[0];T.push(C)}}return T.concat(P)},[i,n]),g=(0,Da.useRef)({updatedAt:void 0,value:""}),b=T=>{let P=g.current.updatedAt&&new Date().getTime()-g.current.updatedAt.getTime()>voe;g.current={value:P?T:`${g.current.value}${T}`,updatedAt:new Date};let z=m.findIndex(D=>Gi(D).name.toLowerCase().startsWith(g.current.value));z!==-1&&_(z)},f=(0,Da.useCallback)(T=>m.findIndex(P=>Gi(P).iso2===T),[m]),[v,_]=(0,Da.useState)(f(t)),h=()=>{p.current!==t&&_(f(t))},k=(0,Da.useCallback)(T=>{_(f(T.iso2)),r?.(T)},[r,f]),y=T=>{let P=m.length-1,z=D=>T==="prev"?D-1:T==="next"?D+1:T==="last"?P:0;_(D=>{let C=z(D);return C<0?0:C>P?P:C})},I=T=>{if(T.stopPropagation(),T.key==="Enter"){T.preventDefault();let P=Gi(m[v]);k(P);return}if(T.key==="Escape"){s?.();return}if(T.key==="ArrowUp"){T.preventDefault(),y("prev");return}if(T.key==="ArrowDown"){T.preventDefault(),y("next");return}if(T.key==="PageUp"){T.preventDefault(),y("first");return}if(T.key==="PageDown"){T.preventDefault(),y("last");return}T.key===" "&&T.preventDefault(),T.key.length===1&&!T.altKey&&!T.ctrlKey&&!T.metaKey&&b(T.key.toLocaleLowerCase())},A=(0,Da.useCallback)(()=>{if(!u.current||v===void 0)return;let T=Gi(m[v]).iso2;if(T===p.current)return;let P=u.current.querySelector(`[data-country="${T}"]`);P&&(aoe(u.current,P),p.current=T)},[v,m]);return(0,Da.useEffect)(()=>{A()},[v,A]),(0,Da.useEffect)(()=>{u.current&&(e?u.current.focus():h())},[e]),(0,Da.useEffect)(()=>{h()},[t]),Da.default.createElement("ul",{ref:u,role:"listbox",className:ri({addPrefix:["country-selector-dropdown"],rawClassNames:[d.className]}),style:{display:e?"block":"none",...d.style},onKeyDown:I,onBlur:s,tabIndex:-1,"aria-activedescendant":`react-international-phone__${Gi(m[v]).iso2}-option`},m.map((T,P)=>{let z=Gi(T),D=z.iso2===t,C=P===v,W=n.includes(z.iso2),F=P===n.length-1,N=o?.find(q=>q.iso2===z.iso2);return Da.default.createElement(Da.default.Fragment,{key:z.iso2},Da.default.createElement("li",{"data-country":z.iso2,role:"option","aria-selected":D,"aria-label":`${z.name} ${a}${z.dialCode}`,id:`react-international-phone__${z.iso2}-option`,className:ri({addPrefix:["country-selector-dropdown__list-item",W&&"country-selector-dropdown__list-item--preferred",D&&"country-selector-dropdown__list-item--selected",C&&"country-selector-dropdown__list-item--focused"],rawClassNames:[d.listItemClassName]}),onClick:()=>k(z),style:d.listItemStyle,title:z.name},Da.default.createElement($_,{iso2:z.iso2,src:N?.src,className:ri({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[d.listItemFlagClassName]}),style:d.listItemFlagStyle}),Da.default.createElement("span",{className:ri({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[d.listItemCountryNameClassName]}),style:d.listItemCountryNameStyle},z.name),Da.default.createElement("span",{className:ri({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[d.listItemDialCodeClassName]}),style:d.listItemDialCodeStyle},a,z.dialCode)),F?Da.default.createElement("hr",{className:ri({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[d.preferredListDividerClassName]}),style:d.preferredListDividerStyle}):null)}))},foe=({selectedCountry:e,onSelect:a,disabled:t,hideDropdown:i,countries:n=Vo,preferredCountries:o=[],flags:r,renderButtonWrapper:s,...d})=>{let[u,p]=(0,en.useState)(!1),m=(0,en.useMemo)(()=>{if(e)return xm({value:e,field:"iso2",countries:n})},[n,e]),g=(0,en.useRef)(null),b=v=>{v.key&&["ArrowUp","ArrowDown"].includes(v.key)&&(v.preventDefault(),p(!0))},f=()=>{let v={title:m?.name,onClick:()=>p(h=>!h),onMouseDown:h=>h.preventDefault(),onKeyDown:b,disabled:i||t,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":u},_=en.default.createElement("div",{className:ri({addPrefix:["country-selector-button__button-content"],rawClassNames:[d.buttonContentWrapperClassName]}),style:d.buttonContentWrapperStyle},en.default.createElement($_,{iso2:e,src:r?.find(h=>h.iso2===e)?.src,className:ri({addPrefix:["country-selector-button__flag-emoji",t&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[d.flagClassName]}),style:{visibility:e?"visible":"hidden",...d.flagStyle}}),!i&&en.default.createElement("div",{className:ri({addPrefix:["country-selector-button__dropdown-arrow",t&&"country-selector-button__dropdown-arrow--disabled",u&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[d.dropdownArrowClassName]}),style:d.dropdownArrowStyle}));return s?s({children:_,rootProps:v}):en.default.createElement("button",{...v,type:"button",className:ri({addPrefix:["country-selector-button",u&&"country-selector-button--active",t&&"country-selector-button--disabled",i&&"country-selector-button--hide-dropdown"],rawClassNames:[d.buttonClassName]}),"data-country":e,style:d.buttonStyle},_)};return en.default.createElement("div",{className:ri({addPrefix:["country-selector"],rawClassNames:[d.className]}),style:d.style,ref:g},f(),en.default.createElement(yoe,{show:u,countries:n,preferredCountries:o,flags:r,onSelect:v=>{p(!1),a?.(v)},selectedCountry:e,onClose:()=>{p(!1)},...d.dropdownStyleProps}))},_oe=({dialCode:e,prefix:a,disabled:t,style:i,className:n})=>aK.default.createElement("div",{className:ri({addPrefix:["dial-code-preview",t&&"dial-code-preview--disabled"],rawClassNames:[n]}),style:i},`${a}${e}`),Dma=(0,Zr.forwardRef)(({value:e,onChange:a,countries:t=Vo,preferredCountries:i=[],hideDropdown:n,showDisabledDialCodeAndPrefix:o,disableFocusAfterCountrySelect:r,flags:s,style:d,className:u,inputStyle:p,inputClassName:m,countrySelectorStyleProps:g,dialCodePreviewStyleProps:b,inputProps:f,placeholder:v,disabled:_,name:h,onFocus:k,onBlur:y,required:I,autoFocus:A,...T},P)=>{let{phone:z,inputValue:D,inputRef:C,country:W,setCountry:F,handlePhoneValueChange:N}=Qj({value:e,countries:t,...T,onChange:Z=>{a?.(Z.phone,{country:Z.country,inputValue:Z.inputValue})}}),q=T.disableDialCodeAndPrefix&&o&&W?.dialCode;return(0,Zr.useImperativeHandle)(P,()=>C.current?Object.assign(C.current,{setCountry:F,state:{phone:z,inputValue:D,country:W}}):null,[C,F,z,D,W]),Zr.default.createElement("div",{ref:P,className:ri({addPrefix:["input-container"],rawClassNames:[u]}),style:d},Zr.default.createElement(foe,{onSelect:Z=>F(Z.iso2,{focusOnInput:!r}),flags:s,selectedCountry:W.iso2,countries:t,preferredCountries:i,disabled:_,hideDropdown:n,...g}),q&&Zr.default.createElement(_oe,{dialCode:W.dialCode,prefix:T.prefix??"+",disabled:_,...b}),Zr.default.createElement("input",{onChange:N,value:D,type:"tel",ref:C,className:ri({addPrefix:["input",_&&"input--disabled"],rawClassNames:[m]}),placeholder:v,disabled:_,style:p,name:h,onFocus:k,onBlur:y,autoFocus:A,required:I,...f}))});var Uo=S(ne()),Aoe=e=>e.toUpperCase().replace(/./g,a=>String.fromCodePoint(a.charCodeAt(0)+127397)),iK=(0,$s.forwardRef)(({value:e,onChange:a,onBlur:t,defaultCountryCode:i,disabled:n,control:o,name:r,selectProps:s,...d},u)=>{let[p,m]=(0,$s.useState)(e??""),g=(0,$s.useMemo)(()=>{if(i?.startsWith("+")){let k=Vo.find(y=>Gi(y).dialCode===i);return k?Gi(k).iso2:"br"}return i??navigator.language?.split?.("-")[1]?.toLowerCase()??"br"},[i]),{inputValue:b,handlePhoneValueChange:f,inputRef:v,country:_,setCountry:h}=Qj({defaultCountry:g,value:p,countries:Vo,onChange:k=>{a(k.phone)}});return(0,$s.useEffect)(()=>{e!==p&&m(e??"")},[e]),(0,Uo.jsx)(Sm,{...d,ref:u,control:o,name:r,disabled:n,type:"tel",value:b,onChange:f,onBlur:t,startDecorator:(0,Uo.jsxs)(ba,{component:"label",sx:{position:"relative"},children:[(0,Uo.jsxs)(ca,{direction:"row",alignItems:"center",gap:.5,sx:k=>({cursor:"pointer",color:k.palette.text.secondary}),children:[(0,Uo.jsx)(eo,{sx:{width:20},children:(0,Uo.jsx)($_,{iso2:_.iso2})}),(0,Uo.jsx)(tK.default,{sx:{fontSize:"small"}})]}),(0,Uo.jsx)(eo,{component:"select",onChange:k=>h(k.target.value),sx:{position:"absolute",inset:0,width:"100%",height:"100%",opacity:0,cursor:"pointer"},children:Vo.map(k=>{let y=Gi(k);return(0,Uo.jsxs)("option",{value:y.iso2,children:[y.name," ",Aoe(y.iso2)]},y.iso2)})})]})})});iK.displayName="PhoneNumberInput";var nK=iK;var ha=S(ne()),ica={email:"email",phoneNumber:"phoneNumber",text:"text",textArea:"textArea",select:"select",multiple_choice:"ContactType",leadSelect:"leadSelect",file:"file",number:"number"};function rK(e){return typeof e.key=="string"&&e.key.trim()!==""?e.key:e.id}var sK=e=>{let a={};return e.forEach(t=>{let{key:i,required:n,type:o}=t,r;switch(o){case"email":r=Fa.string().email();break;case"textArea":r=n?Fa.string().min(25):Fa.string().optional();break;case"leadSelect":r=n?Fa.string().min(1):Fa.string().optional();break;case"multiple_choice":r=n?Fa.string().min(1):Fa.string().optional();break;case"phoneNumber":r=n?Fa.string().min(3):Fa.string().optional();break;case"text":r=n?Fa.string().min(1):Fa.string().optional();break;case"number":{let{min:s,max:d}=t,u=Fa.coerce.number().superRefine((p,m)=>{s!==void 0&&p<s&&m.addIssue({code:Fa.ZodIssueCode.too_small,minimum:s,inclusive:!1,type:"number"}),d!==void 0&&p>d&&m.addIssue({code:Fa.ZodIssueCode.too_big,maximum:d,inclusive:!1,type:"number"})});r=n?u:u.optional();break}case"file":{let s=Fa.unknown();r=n?Fa.array(s).min(1):Fa.array(s).optional();break}default:r=Fa.string()}a[i]=n?r:r.optional()}),a},Ioe={email:({key:e,methods:a,placeholder:t,disabled:i})=>{let n=a.formState.errors?.[e]?.message;return(0,ha.jsx)(Jt,{error:!!n,children:(0,ha.jsx)(fn,{name:e,control:a.control,render:({field:o})=>(0,ha.jsx)(Sm,{name:e,control:a.control,disabled:i,value:String(o.value??""),onChange:r=>{o.onChange(r),a.trigger(e)},onBlur:o.onBlur,placeholder:t??"",sx:{width:"100%"}})})})},phoneNumber:({key:e,methods:a,placeholder:t,defaultCountryCode:i,disabled:n})=>{let o=a.formState.errors?.[e]?.message;return(0,ha.jsxs)(Jt,{error:!!o,children:[(0,ha.jsx)(fn,{name:e,control:a.control,render:({field:r})=>(0,ha.jsx)(nK,{control:a.control,name:e,disabled:n,value:String(r.value??""),onChange:s=>{r.onChange(s)},onBlur:r.onBlur,defaultCountryCode:i,placeholder:t??""})}),o&&(0,ha.jsx)(xo,{children:String(o)})]})},text:({key:e,methods:a,placeholder:t,disabled:i})=>(0,ha.jsx)(Sm,{control:a.control,disabled:i,sx:{width:"100%"},...a.register(e),placeholder:t??""}),number:({key:e,methods:a,placeholder:t,min:i,max:n,disabled:o})=>(0,ha.jsx)(Sm,{control:a.control,disabled:o,type:"number",sx:{width:"100%"},placeholder:t??"",min:i,max:n,...a.register(e)}),textArea:({key:e,methods:a,placeholder:t,disabled:i})=>{let n=a.formState.errors?.[e]?.message,o=Pm(),r=typeof t=="string"&&t.startsWith("templates.")?o(t,"placeholder"):t??"";return(0,ha.jsxs)(Jt,{error:!!n,children:[(0,ha.jsx)(yy,{disabled:i,sx:{width:"100%"},...a.register(e),minRows:4,placeholder:r}),n&&(0,ha.jsx)(xo,{children:String(n)})]})},leadSelect:({key:e,options:a=[],placeholder:t,methods:i,disabled:n})=>{let o=Pm(),r=i.formState.errors?.[e]?.message;return(0,ha.jsxs)(Jt,{error:!!r,children:[(0,ha.jsx)(fn,{name:e,control:i.control,defaultValue:"",render:({field:s})=>{let d=s.value??"";return(0,ha.jsx)(Do,{value:d,onChange:(u,p)=>s.onChange(p??""),onBlur:s.onBlur,name:s.name,ref:s.ref,disabled:n,placeholder:t||"",slotProps:{listbox:{sx:{zIndex:9999999999+1}}},sx:{width:"100%"},children:a.map((u,p)=>(0,ha.jsx)(Co,{value:u,children:u.startsWith("templates.")?o(u,"name"):u},p))})}}),r&&(0,ha.jsx)(xo,{children:String(r)})]})},multiple_choice:({key:e,options:a=[],placeholder:t,methods:i,disabled:n})=>{let o=Pm(),r=i.formState.errors?.[e]?.message;return(0,ha.jsxs)(Jt,{error:!!r,children:[(0,ha.jsx)(fn,{name:e,control:i.control,defaultValue:[],render:({field:s})=>{let d=Array.isArray(s.value)?s.value:[];return(0,ha.jsx)(Do,{multiple:!0,value:d,onChange:(u,p)=>s.onChange(p??[]),onBlur:s.onBlur,name:s.name,ref:s.ref,disabled:n,placeholder:t||"",slotProps:{listbox:{sx:{zIndex:9999999999+1}}},sx:{width:"100%"},children:a.map((u,p)=>(0,ha.jsx)(Co,{value:u,children:u.startsWith("templates.")?o(u,"name"):u},p))})}}),r&&(0,ha.jsx)(xo,{children:String(r)})]})},file:({key:e,placeholder:a,changeHandler:t,methods:i,disabled:n})=>{let o=i.formState.errors?.[e]?.message,r=i.watch(e)??[],s=[];try{s=JSON.parse(r)}catch{}return(0,ha.jsxs)(Jt,{error:!!o,children:[!n&&(0,ha.jsx)(Uj,{variant:"outlined",placeholder:a??"Browse Files",changeCallback:d=>{t?.(e,d),i.setValue(e,d,{shouldDirty:!0,shouldValidate:!0}),i.trigger(e)}}),n&&(0,ha.jsx)(ca,{gap:1,children:s.map((d,u)=>(0,ha.jsx)(FO,{attachment:{url:d,name:d,mimeType:LO.getType(d),size:42}},u))}),o&&(0,ha.jsx)(xo,{children:String(o)})]})}},Rk=Ioe;l();var _a=S(yK()),fK=e=>({schema:{fields:[{id:(0,_a.default)(),key:"email",type:"email",shouldCreateContact:!0,name:"templates.fromScratch.fields.email.name",required:!0},{id:(0,_a.default)(),key:"phoneNumber",type:"phoneNumber",name:"templates.leadForm.fields.phone.name",required:!0,placeholder:"templates.leadForm.fields.phone.placeholder"}]}}),_K=e=>({name:"templates.fromScratch.name",description:"templates.fromScratch.description",schema:{fields:[{id:(0,_a.default)(),key:"email",type:"email",shouldCreateContact:!0,name:"templates.fromScratch.fields.email.name",required:!0},{id:(0,_a.default)(),key:"select",type:"select",group:"select",name:"templates.fromScratch.fields.select.name",required:!0,options:["templates.fromScratch.fields.select.options.support","templates.fromScratch.fields.select.options.sales","templates.fromScratch.fields.select.options.feedback","templates.fromScratch.fields.select.options.partnership","templates.fromScratch.fields.select.options.other"],placeholder:"templates.fromScratch.fields.select.placeholder"}],startScreen:{title:"templates.fromScratch.startScreen.title",description:"templates.fromScratch.startScreen.description"}}}),AK=e=>({name:"templates.leadForm.name",description:"templates.leadForm.description",schema:{overview:"templates.leadForm.overview",fields:[{id:(0,_a.default)(),key:"email",type:"email",shouldCreateContact:!0,name:"templates.leadForm.fields.email.name",required:!0,placeholder:"templates.leadForm.fields.email.placeholder"},{id:(0,_a.default)(),key:"phoneNumber",type:"phoneNumber",name:"templates.leadForm.fields.phone.name",required:!0,placeholder:"templates.leadForm.fields.phone.placeholder"},{id:(0,_a.default)(),key:"comment",type:"textArea",name:"templates.leadForm.fields.comment.name",required:!1,placeholder:"templates.leadForm.fields.comment.placeholder"},{id:(0,_a.default)(),key:"select",type:"leadSelect",group:"select",name:"templates.leadForm.fields.select.name",required:!1,options:["templates.leadForm.fields.select.options.getMoreClients","templates.leadForm.fields.select.options.automateTasks","templates.leadForm.fields.select.options.organizeContacts","templates.leadForm.fields.select.options.learnMore","templates.leadForm.fields.select.options.other"],placeholder:"templates.leadForm.fields.select.placeholder"}],startScreen:{title:"templates.leadForm.startScreen.title",description:"templates.leadForm.startScreen.description"}}}),IK=e=>({name:"templates.productFeedbackForm.name",description:"templates.productFeedbackForm.description",schema:{overview:"templates.productFeedbackForm.overview",fields:[{id:(0,_a.default)(),key:"email",type:"email",shouldCreateContact:!0,name:"templates.productFeedbackForm.fields.email.name",required:!0,placeholder:"templates.productFeedbackForm.fields.email.placeholder"},{id:(0,_a.default)(),key:"type",type:"select",group:"type",name:"templates.productFeedbackForm.fields.type.name",required:!0,options:["templates.productFeedbackForm.fields.type.options.featureRequest","templates.productFeedbackForm.fields.type.options.bugReport","templates.productFeedbackForm.fields.type.options.other"],placeholder:"templates.productFeedbackForm.fields.type.placeholder"},{id:(0,_a.default)(),key:"comment",type:"textArea",name:"templates.productFeedbackForm.fields.comment.name",required:!0,placeholder:"templates.productFeedbackForm.fields.comment.placeholder"},{id:(0,_a.default)(),key:"files",type:"file",name:"templates.productFeedbackForm.fields.files.name",required:!1,placeholder:"templates.productFeedbackForm.fields.files.placeholder"}],startScreen:{title:"templates.productFeedbackForm.startScreen.title",description:"templates.productFeedbackForm.startScreen.description"}}}),TK=e=>({name:"templates.onboardingForm.name",description:"templates.onboardingForm.description",schema:{overview:"templates.onboardingForm.overview",fields:[{id:(0,_a.default)(),key:"email",type:"email",shouldCreateContact:!0,name:"templates.onboardingForm.fields.email.name",required:!0,placeholder:"templates.onboardingForm.fields.email.placeholder"},{id:(0,_a.default)(),key:"Enterprise",type:"select",group:"Enterprise",name:"templates.onboardingForm.fields.Enterprise.name",required:!0,options:["templates.onboardingForm.fields.Enterprise.options.eCommerce","templates.onboardingForm.fields.Enterprise.options.healthcare","templates.onboardingForm.fields.Enterprise.options.finance","templates.onboardingForm.fields.Enterprise.options.technology","templates.onboardingForm.fields.Enterprise.options.retail","templates.onboardingForm.fields.Enterprise.options.manufacturing","templates.onboardingForm.fields.Enterprise.options.other"],placeholder:"templates.onboardingForm.fields.Enterprise.placeholder"},{id:(0,_a.default)(),key:"companySize",type:"select",group:"companySize",name:"templates.onboardingForm.fields.companySize.name",required:!0,options:["templates.onboardingForm.fields.companySize.options.small","templates.onboardingForm.fields.companySize.options.medium","templates.onboardingForm.fields.companySize.options.large"],placeholder:"templates.onboardingForm.fields.companySize.placeholder"},{id:(0,_a.default)(),key:"referral",type:"select",group:"referral",name:"templates.onboardingForm.fields.referral.name",required:!0,options:["templates.onboardingForm.fields.referral.options.google","templates.onboardingForm.fields.referral.options.socialMedia","templates.onboardingForm.fields.referral.options.newsletter","templates.onboardingForm.fields.referral.options.wordOfMouth","templates.onboardingForm.fields.referral.options.tradeShow","templates.onboardingForm.fields.referral.options.other"],placeholder:"templates.onboardingForm.fields.referral.placeholder"}],startScreen:{title:"templates.onboardingForm.startScreen.title",description:"templates.onboardingForm.startScreen.description"}}}),PK=e=>({name:"templates.inboundLead.name",description:"templates.inboundLead.description",schema:{overview:"templates.inboundLead.overview",fields:[{id:(0,_a.default)(),key:"firstName",type:"text",name:"templates.inboundLead.fields.firstName.name",required:!0},{id:(0,_a.default)(),key:"email",type:"email",shouldCreateContact:!0,name:"templates.inboundLead.fields.email.name",required:!0},{id:(0,_a.default)(),key:"interestedIn",type:"select",group:"interestedIn",name:"templates.inboundLead.fields.interestedIn.name",required:!0,options:["templates.inboundLead.fields.interestedIn.options.automatedSupport","templates.inboundLead.fields.interestedIn.options.increaseSales","templates.inboundLead.fields.interestedIn.options.reduceResponseTime","templates.inboundLead.fields.interestedIn.options.centralizeChannels","templates.inboundLead.fields.interestedIn.options.other"],placeholder:"templates.inboundLead.fields.interestedIn.placeholder"}],startScreen:{title:"templates.inboundLead.startScreen.title",description:"templates.inboundLead.startScreen.description"}}}),zK=e=>({name:"templates.contactSales.name",description:"templates.contactSales.description",schema:{overview:"templates.contactSales.overview",fields:[{id:(0,_a.default)(),key:"firstName",type:"text",name:"templates.contactSales.fields.firstName.name",required:!0},{id:(0,_a.default)(),key:"email",type:"email",shouldCreateContact:!0,name:"templates.contactSales.fields.email.name",required:!0},{id:(0,_a.default)(),key:"interestedIn",type:"select",group:"interestedIn",name:"templates.contactSales.fields.interestedIn.name",required:!0,options:["templates.contactSales.fields.interestedIn.options.automateSupport","templates.contactSales.fields.interestedIn.options.centralizeChannels","templates.contactSales.fields.interestedIn.options.boostConversions","templates.contactSales.fields.interestedIn.options.customSolutions","templates.contactSales.fields.interestedIn.options.contentMarketing","templates.contactSales.fields.interestedIn.options.affiliates","templates.contactSales.fields.interestedIn.options.other"],placeholder:"templates.contactSales.fields.interestedIn.placeholder"}],startScreen:{title:"templates.contactSales.startScreen.title",description:"templates.contactSales.startScreen.description"}}}),wK=e=>({name:"templates.feedback.name",description:"templates.feedback.description",schema:{overview:"templates.feedback.overview",fields:[{id:(0,_a.default)(),key:"usageContext",type:"select",group:"usageContext",name:"templates.feedback.fields.usageContext.name",required:!0,options:["templates.feedback.fields.usageContext.options.work","templates.feedback.fields.usageContext.options.sports","templates.feedback.fields.usageContext.options.casual","templates.feedback.fields.usageContext.options.travel","templates.feedback.fields.usageContext.options.other"],placeholder:"templates.feedback.fields.usageContext.placeholder"},{id:(0,_a.default)(),key:"recommendationLikelihood",type:"select",group:"recommendationLikelihood",name:"templates.feedback.fields.recommendationLikelihood.name",required:!0,options:["templates.feedback.fields.recommendationLikelihood.options.yes","templates.feedback.fields.recommendationLikelihood.options.maybe","templates.feedback.fields.recommendationLikelihood.options.no"],placeholder:"templates.feedback.fields.recommendationLikelihood.placeholder"},{id:(0,_a.default)(),key:"priceValue",type:"select",group:"priceValue",name:"templates.feedback.fields.priceValue.name",required:!0,options:["templates.feedback.fields.priceValue.options.excellent","templates.feedback.fields.priceValue.options.fair","templates.feedback.fields.priceValue.options.expensive"],placeholder:"templates.feedback.fields.priceValue.placeholder"},{id:(0,_a.default)(),key:"overallSatisfaction",type:"select",group:"overallSatisfaction",name:"templates.feedback.fields.overallSatisfaction.name",required:!0,options:["templates.feedback.fields.overallSatisfaction.options.1","templates.feedback.fields.overallSatisfaction.options.2","templates.feedback.fields.overallSatisfaction.options.3","templates.feedback.fields.overallSatisfaction.options.4","templates.feedback.fields.overallSatisfaction.options.5"],placeholder:"templates.feedback.fields.overallSatisfaction.placeholder"}],startScreen:{title:"templates.feedback.startScreen.title",description:"templates.feedback.startScreen.description"}}});var Y=S(ne());var eA={initials:fK,fromScratch:_K,leadForm:AK,productFeedbackForm:IK,onboardingForm:TK,inboundLead:PK,contactSales:zK,feedback:wK},xoe=(e,a)=>!e||e===""?`field_${a}`:e;function Coe({formId:e,conversationId:a,messageId:t,submissionId:i,isInEditor:n,tTpl:o,isStandalone:r=!n,isFormSubmitted:s,values:d,readOnly:u,styles:p,onEnd:m,config:g}){let{t:b}=uo("form",{i18n:Qs}),{t:f}=uo("FormsPage",{i18n:Qs}),{t:v,i18n:_}=uo("embeds_forms_traditional",{i18n:Qs}),h=_.resolvedLanguage||_.language||"en",k=m_(e?`https://app.zappway.ai/api/forms/${e}?locale=${h}`:null,TO),y=Pm(),I=(0,En.useMemo)(()=>{let G=k.data?.draftConfig,ee=k.data?.publishedConfig,X=n?g??G??null:ee??null;if(X){let Oe=X.templateId?xn(X.templateId):"initials",K=Object.keys(eA).find(U=>U.toLowerCase()==Oe.toLowerCase())??"initials";X.fields?.forEach(U=>{Array.isArray(U.options)&&(U.options=U.options.map(Q=>{if(typeof Q=="string"&&Q.includes(" ")){let oe=xn(Q);return Nk(K,U.key,oe)}return Q}))})}return X},[g,k.data,n]),A=I?.templateId?xn(I.templateId):"initials",T=Object.keys(eA).find(G=>G.toLowerCase()===A.toLowerCase())??"initials",P=(0,En.useMemo)(()=>o||((G,ee="name")=>{if(!G)return"";if(typeof G=="object"&&G!==null)return typeof G[ee]=="string"?G[ee]:"";let Oe=G.match(/^templates\.([^\.]+)\./)?.[1]??T,K=Object.keys(eA).find(Q=>Q.toLowerCase()===Oe.toLowerCase())??T,U=y(G,ee,K);return!U||U===G||/^templates\.[^.]+\.fields\.[^.]+\.name$/.test(U)?f(G):U}),[o,T,y,f]),D=(eA[T]?.(P)??null)?.schema?.fields??[],C=D.filter(G=>G.type==="leadSelect"||G.type==="multiple_choice").map(G=>G.key),W=(0,En.useMemo)(()=>{let G=Array.isArray(I?.fields)?I.fields:[];if(!D.length)return[];let ee=T==="initials",X=Object.values(N_);return G.filter(K=>{let U=!!K.id&&typeof K.name=="string"&&!!K.name&&X.includes(K.type);return U}).map(K=>{let U=K.type,Q=["select","leadSelect","multiple_choice"].includes(U),oe=rK(K),de=D.find(Pe=>Pe.key===oe)??null,Re=de?.key??oe;!K.id||K.name;let _e;if(U==="file")if(typeof K.name=="string"&&!K.name.startsWith("templates."))_e=K.name;else{let Pe=ee?"":(()=>{let ze=P(K.name,"name");return ze&&!ze.includes("templates.")&&ze.trim().length>1&&!/^\w{1,3}$/.test(ze)?ze:K.name})();_e=Pe&&!Pe.includes("templates.")?Pe:b("fieldTypes.file",{defaultValue:"Arquivo"})}else if(Q){let Pe=U==="leadSelect"?"fieldTypes.leadSelect":"fieldTypes.select";_e=n?b(Pe):(()=>{let ze=de?.name??K.name,Je=ee?"":(()=>{let j=P(ze,"name");return j&&!j.includes("templates.")&&j.trim().length>1&&!/^\w{1,3}$/.test(j)?j:ze})();return Je&&!Je.includes("templates.")?Je:b(Pe)})()}else if(!ee&&typeof K.name=="string"&&K.name.startsWith("templates.")){let Pe=(()=>{let ze=P(K.name,"name");return ze&&!ze.includes("templates.")&&ze.trim().length>1&&!/^\w{1,3}$/.test(ze)?ze:K.name})();_e=Pe&&!Pe.includes("templates.")?Pe:b(`fieldTypes.${U}`,{defaultValue:""})}else{let Pe=K.name||b(`fieldTypes.${U}`,{defaultValue:""});_e=xoe(Pe,K.id)}let Te;if(U==="file"||Q){let Pe=typeof de?.placeholder=="string"?de.placeholder:typeof K.placeholder=="string"?K.placeholder:"",ze=P(Pe,"placeholder"),Je=`templates.${T}.fields.${K.key}.placeholder`,j=f(Je);Te=j&&!j.includes("templates.")&&j.trim().length>1&&!/^\w{1,3}$/.test(j)?j:""}else{let Pe=K.placeholder??"";Te=Pe.startsWith("templates.")?(()=>{let ze=P(Pe,"placeholder");return ze&&!ze.includes("templates.")&&ze.trim().length>1&&!/^\w{1,3}$/.test(ze)?ze:f(Pe)})():Pe}let Ge,He=Pe=>Pe?.map(ze=>{if(ze.startsWith("templates."))return ze;if(ze.includes(" ")){let Je=xn(ze);return Nk(T,Re,Je)}return ze});if(Array.isArray(K.options)&&K.options.length&&(Ge=He(K.options)),!Ge&&Q&&Array.isArray(de?.options)&&(Ge=He(de.options)),!Ge&&Q){let Pe=D.find(ze=>ze.type===U&&Array.isArray(ze.options));Pe?.options?.length&&(Ge=He(Pe.options))}return{...K,key:Re,name:_e,...Te?{placeholder:Te}:{},...Ge?{options:Ge}:{}}})},[I,D,P,b,n,T]),F=(G,ee)=>{if(typeof G=="string"&&G.trim())return G;if(typeof G=="object"&&G!==null&&"name"in G){let X=G.name;if(typeof X=="string")return X}return`field_${ee}`},N=(0,En.useMemo)(()=>{let G={};return W.forEach(ee=>{let X=F(ee.key,ee.id);switch(ee.type){case"multiple_choice":G[X]=Array.isArray(d?.[X])?d[X]:[];break;case"select":case"leadSelect":G[X]=typeof d?.[X]=="string"?d[X]:"";break;case"file":G[X]=Array.isArray(d?.[X])?d[X]:[];break;default:G[X]=typeof d?.[X]=="string"?d[X]:"";break}}),G},[W,d]),q=G=>Fa.object({...sK(G.filter(ee=>typeof ee.key=="string"&&!!ee.key))}),Z=q(W),[x,E]=CO({loading:!1,files:[],isFormSubmitted:!!s,hasErrored:!1});(0,En.useEffect)(()=>{E({isFormSubmitted:!!i})},[i]),(0,En.useEffect)(()=>{E({isFormSubmitted:!!s})},[s]);let V=AF({resolver:zF(q(W)),mode:n?"onChange":"onBlur",reValidateMode:"onChange",criteriaMode:"firstError",defaultValues:N});(0,En.useEffect)(()=>{if(!d)return;let G={};W.forEach(ee=>{let X=F(ee.key,ee.id);ee.type==="multiple_choice"?G[X]=Array.isArray(d[X])?d[X]:[]:(ee.type==="select"||(ee.type,"leadSelect"),G[X]=typeof d[X]=="string"?d[X]:"")}),V.reset(G),V.clearErrors()},[d,V,W,F]),(0,En.useEffect)(()=>{},[V.formState.isValid,V.formState.errors]);let{upload:pe}=jO(),we=async G=>{if(n){E({isFormSubmitted:!0});return}try{E({loading:!0,hasErrored:!1});for(let K of W)if(K.type==="file"&&typeof K.name=="string"){let U=G[K.name]??[];if(U.length){let Q=await pe(U.map(oe=>({case:"formUpload",fileName:oe.name,mimeType:oe.type,file:oe,formId:e,conversationId:a})));G[K.name]=JSON.stringify(Q)}}let ee=V.getValues(),X=Object.fromEntries(W.filter(K=>typeof K.key=="string"&&!!K.key&&ee[K.key]!==void 0&&ee[K.key]!==null).map(K=>[K.key,ee[K.key]])),Oe=await fr.post(`https://app.zappway.ai/api/forms/${e}`,{formId:e,conversationId:a,formValues:X,draftConfig:g,messageId:t});Oe.status===200&&E({isFormSubmitted:!0}),m?.(Oe.data?.data)}catch{E({hasErrored:!0})}finally{E({loading:!1})}},be=r,ge=be?"form":"div";return Z instanceof Fa.ZodObject,r?(0,Y.jsx)(wz,{...V,children:(0,Y.jsx)(ge,{...be?{onSubmit:G=>{G.preventDefault(),V.handleSubmit(we)(G)}}:{},style:{flex:1},children:(0,Y.jsx)(ad,{variant:"outlined",color:"neutral",sx:{position:"relative",overflowY:"auto",width:"100%",maxHeight:"100%",flex:1,...p},children:!k.data&&k.isLoading?(0,Y.jsxs)(ca,{gap:1,sx:{textAlign:"left"},children:[(0,Y.jsx)(vg,{ratio:"21/9",children:(0,Y.jsx)(nd,{variant:"overlay",loading:!0,children:(0,Y.jsx)("img",{src:"",alt:""})})}),(0,Y.jsx)(ba,{children:v("loading_data")}),(0,Y.jsx)(ba,{children:(0,Y.jsx)(nd,{variant:"text",level:"h1",sx:{width:"100%"}})})]}):(0,Y.jsxs)(Ag,{sx:{textAlign:"center",alignItems:"center",position:"relative",width:"100%",display:"flex"},children:[(0,Y.jsx)(Rp,{children:x.isFormSubmitted&&!u&&(0,Y.jsx)(nm.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},children:(0,Y.jsxs)(ca,{spacing:2,sx:{p:4},justifyContent:"center",alignItems:"center",children:[(0,Y.jsx)(ax.default,{sx:{fontSize:42},color:"primary"}),(0,Y.jsx)(ba,{level:"h4",children:v("form_submitted_successfully")}),typeof I?.endScreen?.cta?.label=="string"&&(0,Y.jsx)("a",{href:I?.endScreen?.cta?.url||"#",target:I?.endScreen?.cta?.target,rel:"noopener noreferrer",children:(0,Y.jsx)(ed,{variant:"solid",size:"lg",color:"primary",children:I?.endScreen?.cta?.label})})]})})}),(0,Y.jsx)(Rp,{children:(!x.isFormSubmitted||u)&&(0,Y.jsxs)(nm.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},style:{width:"100%"},children:[(typeof I?.startScreen?.title=="string"||typeof I?.startScreen?.description=="string")&&(0,Y.jsxs)(ca,{sx:{mb:2},spacing:1.5,children:[typeof I?.startScreen?.title=="string"&&(0,Y.jsx)(ba,{level:"h3",children:(()=>{let G=P(I.startScreen.title,"name");return G&&!G.includes("templates.")&&G.trim().length>1&&!/^\w{1,3}$/.test(G)?G:I.startScreen.title})()}),typeof I?.startScreen?.description=="string"&&(0,Y.jsx)(ba,{level:"body-sm",children:(()=>{let G=P(I.startScreen.description,"placeholder");return G&&!G.includes("templates.")&&G.trim().length>1&&!/^\w{1,3}$/.test(G)?G:I.startScreen.description})()})]}),(0,Y.jsx)(ca,{width:"100%",spacing:2,onChange:G=>G.stopPropagation(),children:W.map(G=>{let ee=F(G.key,G.id);if(typeof ee!="string"||!ee.trim())return null;let X=G.type==="select"||G.type==="leadSelect"||G.type==="multiple_choice",Oe=X?!1:n,K=G.type==="multiple_choice",U=G.placeholder??"";return(0,Y.jsxs)(ca,{spacing:1,sx:{display:"flex",flexDirection:"column"},children:[(0,Y.jsxs)(ca,{direction:"row",children:[(0,Y.jsx)(ba,{level:"title-md",children:G.name}),G.required&&(0,Y.jsx)("span",{className:"text-red-500 ml-0.5",children:"*"})]}),X&&Oe?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(Jt,{children:[(0,Y.jsx)(br,{children:G.key&&typeof G.key=="string"?P(`templates.${A}.fields.${G.key}.name`):G.name}),(0,Y.jsx)(Do,{value:G.key||"",disabled:!!u,onChange:(Q,oe)=>{G.key&&oe&&V.setValue(`draftConfig.fields.${G.id}.key`,oe,{shouldDirty:!0,shouldValidate:!0})},children:C.map(Q=>(0,Y.jsx)(Co,{value:Q,children:P(`templates.${A}.fields.${Q}.name`)},Q))})]}),Array.isArray(G.options)&&G.options.length>0&&(0,Y.jsxs)(Jt,{children:[(0,Y.jsx)(br,{children:b("labels.options")}),(0,Y.jsx)(fn,{control:V.control,name:`draftConfig.fields.${G.id}.options`,defaultValue:[],render:({field:Q})=>{let oe=Array.isArray(Q.value)?Q.value:[];return(0,Y.jsx)(Do,{multiple:K,placeholder:U,value:oe,disabled:!!u,onChange:(de,Re)=>Q.onChange(Re??[]),slotProps:{listbox:{ref:Q.ref}},children:G.options.map(de=>{let _e=de.startsWith("templates.")?de:Nk(T,G.key,de),Te=(()=>{let Ge=P(_e,"name");return Ge&&!Ge.includes("templates.")&&Ge.trim().length>1&&!/^\w{1,3}$/.test(Ge)?Ge:_e})()||de;return(0,Y.jsx)(Co,{value:de,children:Te},de)})})}})]})]}):G.type==="file"?(0,Y.jsx)(fn,{control:V.control,name:ee,render:({field:Q})=>{let oe=G.type,de=oe==="select"?"leadSelect":oe,Re=Rk[de];return Re?(0,Y.jsx)(Y.Fragment,{children:Re({...G,...Q,control:V.control,key:ee,formId:e,conversationId:a,methods:V,disabled:!!u,placeholder:G.placeholder,changeHandler:(_e,Te)=>{_e&&V.setValue(ee,Te,{shouldDirty:!0,shouldValidate:!0})}})}):(0,Y.jsx)(Y.Fragment,{})}}):(0,Y.jsx)(fn,{control:V.control,name:ee,render:({field:Q})=>{let oe=G.type==="select"?"leadSelect":G.type,de=Rk[oe];return de?(0,Y.jsx)(Y.Fragment,{children:de({...G,...Q,control:V.control,key:ee,formId:e,conversationId:a,methods:V,disabled:!!u,placeholder:G.placeholder,options:G.options,choices:G.choices,comment:G.comment,changeHandler:(Re,_e)=>{Re&&V.setValue(ee,_e,{shouldDirty:!0,shouldValidate:!0})}})}):(0,Y.jsx)(Y.Fragment,{})}})]},G.id)})}),!n&&!u&&(0,Y.jsxs)(ca,{mt:2,children:[(0,Y.jsx)(ed,{type:be?"submit":"button",onClick:be?void 0:V.handleSubmit(we),disabled:W.length===0||!V.formState.isValid||V.formState.isSubmitting,loading:x.loading,size:"md",color:"primary",endDecorator:(0,Y.jsx)(tx.default,{sx:{fontSize:"sm"}}),sx:{width:"100%"},children:v("submit")}),(0,Y.jsx)(Pg,{anchorOrigin:{vertical:"bottom",horizontal:"right"},open:x.hasErrored,onClose:()=>E({hasErrored:!1}),color:"danger",children:v("submission_failed_try_again_later")})]}),!u&&(0,Y.jsx)(ca,{sx:{mt:2},children:(0,Y.jsx)(Z_,{})})]})})]})})})}):(0,Y.jsx)(wz,{...V,children:(0,Y.jsx)(ge,{...be?{onSubmit:G=>{G.preventDefault(),V.handleSubmit(we)(G)}}:{},style:{flex:1},children:(0,Y.jsx)(ad,{component:"div",variant:"outlined",color:"neutral",sx:{position:"relative",overflowY:"auto",width:"100%",maxHeight:"100%",flex:1,...p},children:!k.data&&k.isLoading?(0,Y.jsxs)(ca,{gap:1,sx:{textAlign:"left"},children:[(0,Y.jsx)(vg,{ratio:"21/9",children:(0,Y.jsx)(nd,{variant:"overlay",loading:!0,children:(0,Y.jsx)("img",{src:"",alt:""})})}),(0,Y.jsx)(ba,{children:v("loading_data")}),(0,Y.jsx)(ba,{children:(0,Y.jsx)(nd,{variant:"text",level:"h1",sx:{width:"100%"}})})]}):(0,Y.jsxs)(Ag,{sx:{textAlign:"center",alignItems:"center",position:"relative",width:"100%",display:"flex"},children:[(0,Y.jsx)(Rp,{children:x.isFormSubmitted&&!u&&(0,Y.jsx)(nm.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},children:(0,Y.jsxs)(ca,{spacing:2,sx:{p:4},justifyContent:"center",alignItems:"center",children:[(0,Y.jsx)(ax.default,{sx:{fontSize:42},color:"primary"}),(0,Y.jsx)(ba,{level:"h4",children:v("form_submitted_successfully")}),typeof I?.endScreen?.cta?.label=="string"&&(0,Y.jsx)("a",{href:I?.endScreen?.cta?.url||"#",target:I?.endScreen?.cta?.target,rel:"noopener noreferrer",children:(0,Y.jsx)(ed,{variant:"solid",size:"lg",color:"primary",children:I?.endScreen?.cta?.label})})]})})}),(0,Y.jsx)(Rp,{children:(!x.isFormSubmitted||u)&&(0,Y.jsxs)(nm.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},style:{width:"100%"},children:[I?.startScreen&&(()=>{let{title:G,description:ee}=I.startScreen;return typeof G!="string"&&typeof ee!="string"?null:(0,Y.jsxs)(ca,{sx:{mb:2},children:[typeof G=="string"&&(0,Y.jsx)(ba,{level:"h3",children:(()=>{let X=P(G,"name");return X&&!X.includes("templates.")&&X.trim().length>1&&!/^\w{1,3}$/.test(X)?X:G})()}),typeof ee=="string"&&(0,Y.jsx)(ba,{level:"body-sm",children:(()=>{let X=P(ee,"placeholder");return X&&!X.includes("templates.")&&X.trim().length>1&&!/^\w{1,3}$/.test(X)?X:ee})()})]})})(),(0,Y.jsx)(ca,{width:"100%",spacing:2,onChange:G=>G.stopPropagation(),children:W.map(G=>{let ee=F(G.key,G.id);if(typeof ee!="string"||!ee.trim())return null;let X=G.type==="select"||G.type==="leadSelect"||G.type==="multiple_choice",Oe=X?!1:n,K=G.type==="multiple_choice",U=G.placeholder??"";return(0,Y.jsxs)(ca,{spacing:1,sx:{display:"flex",flexDirection:"column"},children:[(0,Y.jsxs)(ca,{direction:"row",children:[(0,Y.jsx)(ba,{level:"title-md",children:G.name}),G.required&&(0,Y.jsx)("span",{className:"text-red-500 ml-0.5",children:"*"})]}),X&&Oe?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(Jt,{children:[(0,Y.jsx)(br,{children:G.key&&typeof G.key=="string"?P(`templates.${A}.fields.${G.key}.name`):G.name}),(0,Y.jsx)(Do,{value:G.key||"",disabled:!!u,onChange:(Q,oe)=>{G.key&&oe&&V.setValue(`draftConfig.fields.${G.id}.key`,oe,{shouldDirty:!0,shouldValidate:!0})},children:C.map(Q=>(0,Y.jsx)(Co,{value:Q,children:P(`templates.${A}.fields.${Q}.name`)},Q))})]}),Array.isArray(G.options)&&G.options.length>0&&(0,Y.jsxs)(Jt,{children:[(0,Y.jsx)(br,{children:b("labels.options")}),(0,Y.jsx)(fn,{control:V.control,name:`draftConfig.fields.${G.id}.options`,defaultValue:[],render:({field:Q})=>{let oe=Array.isArray(Q.value)?Q.value:[];return(0,Y.jsx)(Do,{multiple:K,placeholder:U,value:oe,disabled:!!u,onChange:(de,Re)=>Q.onChange(Re??[]),slotProps:{listbox:{ref:Q.ref}},children:G.options.map(de=>{let _e=de.startsWith("templates.")?de:Nk(T,G.key,de),Te=(()=>{let Ge=P(_e,"name");return Ge&&!Ge.includes("templates.")&&Ge.trim().length>1&&!/^\w{1,3}$/.test(Ge)?Ge:_e})()||de;return(0,Y.jsx)(Co,{value:de,children:Te},de)})})}})]})]}):G.type==="file"?(0,Y.jsx)(fn,{control:V.control,name:ee,render:({field:Q})=>{let oe=G.type,de=oe==="select"?"leadSelect":oe,Re=Rk[de];return Re?(0,Y.jsx)(Y.Fragment,{children:Re({...G,...Q,control:V.control,key:ee,formId:e,conversationId:a,methods:V,disabled:!!u,placeholder:G.placeholder,changeHandler:(_e,Te)=>{_e&&V.setValue(ee,Te,{shouldDirty:!0,shouldValidate:!0})}})}):(0,Y.jsx)(Y.Fragment,{})}}):(0,Y.jsx)(fn,{control:V.control,name:ee,render:({field:Q})=>{let oe=G.type==="select"?"leadSelect":G.type,de=Rk[oe];return de?(0,Y.jsx)(Y.Fragment,{children:de({...G,...Q,control:V.control,key:ee,formId:e,conversationId:a,methods:V,disabled:!!u,placeholder:G.placeholder,options:G.options,choices:G.choices,comment:G.comment,changeHandler:(Re,_e)=>{Re&&V.setValue(ee,_e,{shouldDirty:!0,shouldValidate:!0})}})}):(0,Y.jsx)(Y.Fragment,{})}})]},G.id)})}),!n&&!u&&(0,Y.jsxs)(ca,{mt:2,children:[(0,Y.jsx)(ed,{type:be?"submit":"button",onClick:be?void 0:V.handleSubmit(we),disabled:W.length===0||!V.formState.isValid||V.formState.isSubmitting,loading:x.loading,size:"md",color:"primary",endDecorator:(0,Y.jsx)(tx.default,{sx:{fontSize:"sm"}}),sx:{width:"100%"},children:v("submit")}),(0,Y.jsx)(Pg,{anchorOrigin:{vertical:"bottom",horizontal:"right"},open:x.hasErrored,onClose:()=>E({hasErrored:!1}),color:"danger",children:v("submission_failed_try_again_later")})]}),!u&&(0,Y.jsx)(ca,{sx:{mt:2},children:(0,Y.jsx)(Z_,{})})]})})]})})})})}var SK=(0,En.memo)(Coe);var jK=S(ne()),Yd="zappway-form-standard",Doe=XM({type:"form",widget:e=>(0,jK.jsx)(SK,{...e}),name:Yd}),ix=Doe;var Goe=e=>{customElements.get(Yd)||customElements.define(Yd,ix),lx(e);let a="FormStandard_"+(e.id||""),t=new ix({instanceId:a,onEnd:e.onEnd}),i=e.id?document.querySelector(`${Yd}[id="${e.id}"]`):document.querySelector(Yd);if(!i)throw new Error(`<${Yd}> element${`${e.id?` with ID ${e.id}`:""}`} not found.`);if(!window[a]){let n={...e.styles,...Array.from(i.style).reduce((o,r)=>(o[r]=i?.style.getPropertyValue(r),o),{})};dx({element:t,...e,styles:n}),window[a]=t,i.replaceWith(t)}return window[a]},xK=Goe;var Woe={initStandard:xK},Yca=Woe;export{Yca as default};
2879
+ `,OO=One;var Gn=S(ne()),Hne=VO.join(",");function Uj({changeCallback:e,placeholder:a,variant:t="plain"}){let{t:i}=uo(["_FileUploaderDropZone"],{i18n:Qs}),[n,o]=(0,po.useState)(void 0),[r,s]=(0,po.useState)(!1),d=(0,po.useRef)(null),[u,p]=(0,po.useState)([]),m=(0,po.useCallback)(async v=>{o(!0);let _=1e7,h=Array.from(v).filter(y=>!u.find(I=>I.name===y.name));h.find(y=>y.size>_)?(d.current&&(d.current.value=""),alert(i("file_size_limit")),o(!1)):(await e(h),p([...u,...h]),o(!1))},[e,u,i]),g=(0,po.useCallback)(v=>{v.preventDefault(),s(!0)},[]),b=(0,po.useCallback)(v=>{v.preventDefault(),s(!1)},[]),f=(0,po.useCallback)(v=>{v.preventDefault(),s(!1),v.dataTransfer.files&&v.dataTransfer.files.length>0&&(m(v.dataTransfer.files),v.dataTransfer.clearData())},[m]);return(0,Gn.jsxs)(ca,{gap:1,children:[(0,Gn.jsx)(ad,{component:"div",sx:{maxHeight:"100%",borderStyle:"dashed"},onDragOver:g,onDragLeave:b,onDrop:f,color:r?"primary":"neutral",variant:"outlined",children:(0,Gn.jsxs)(ca,{sx:{justifyContent:"center",alignItems:"center"},gap:1,children:[(0,Gn.jsx)(HO.default,{sx:{opacity:.5,fontSize:32}}),(0,Gn.jsxs)(ba,{component:"label",level:"body-sm",color:"neutral",children:[i("drop_items_here_or")," ",(0,Gn.jsxs)(ba,{component:"label",color:"primary",sx:{cursor:"pointer"},level:"body-sm",fontWeight:"bold",children:[i("browse_files"),(0,Gn.jsx)(OO,{ref:d,accept:Hne,type:"file",multiple:!0,onChange:v=>{m(v.target.files)}})]})]})]})}),(0,Gn.jsx)(ca,{direction:"row",sx:{flexWrap:"wrap"},gap:1,children:u.map((v,_)=>(0,Gn.jsx)(gr,{size:"sm",variant:"soft",color:"primary",endDecorator:(0,Gn.jsx)(nw,{disabled:n,onDelete:async()=>{let h=u.filter((k,y)=>y!==_);p(h),await e(h)}}),children:v.name},v.name))})]})}l();l();l();var Oj=(e,a,t)=>{let i=a.split(/[\.\[\]]/g),n=e;for(let o of i){if(n===null||n===void 0)return t;let r=o.replace(/['"]/g,"");r.trim()!==""&&(n=n[r])}return n===void 0?t:n};var YO=S(R());var wm=S(ne()),QO=(0,YO.forwardRef)((e,a)=>{let{control:t,name:i,label:n,helperText:o,formControlProps:r,disabled:s,hidden:d,onChange:u,onBlur:p,value:m,...g}=e,{errors:b}=jz({control:t}),f=i?Oj(b,`${i}.message`):void 0,v=f??o;return(0,wm.jsxs)(Jt,{...r,error:!!f,children:[!d&&n&&(0,wm.jsx)(br,{sx:s?{color:"text.disabled"}:void 0,children:n}),(0,wm.jsx)(sw,{ref:a,name:i,onChange:u,onBlur:p,value:m,error:!!f,disabled:s,...g}),v&&(0,wm.jsx)(xo,{children:v})]})});QO.displayName="RHFormInput";var Sm=QO;l();var tK=S($O());var $s=S(R());l();var en=S(R(),1),mo=S(R(),1),Y_=S(R(),1),Hj=S(R(),1),Yj=S(R(),1),Ga=S(R(),1),aK=S(R(),1),Zr=S(R(),1),Vo=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",{default:". .... ....","/^4/":"... ... ...","/^5(?!50)/":"... ... ...","/^1(3|8)00/":".... ... ...","/^13/":".. .. ..","/^180/":"... ...."},0,[]],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) .....-...."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Cayman Islands","ky","1","... ... ....",4,["345"]],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253",".. .. ...."],["Dominica","dm","1767"],["Dominican Republic","do","1","(...) ...-....",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251",".. ... ...."],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49","... ........."],["Ghana","gh","233"],["Greece","gr","30"],["Greenland","gl","299",".. .. .."],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262","",1,["269","639"]],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",{"/^06/":"(.). .........","/^6/":". .........","/^0(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":"(.).. ........","/^(10|13|14|15|20|23|24|26|30|33|35|36|38|40|43|44|45|46|50|53|55|58|70|71|72|73|74|75|76|77|78|79|82|84|85|87|88|91)/":".. ........","/^0/":"(.)... .......",default:"... ......."}],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","(...) ...-....",3,["787","939"]],["Qatar","qa","974"],["Réunion","re","262","",0],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","... ... ..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],Jne="react-international-phone-",XO=(...e)=>e.filter(a=>!!a).join(" ").trim(),Xne=(...e)=>XO(...e).split(" ").map(a=>`${Jne}${a}`).join(" "),ri=({addPrefix:e,rawClassNames:a})=>XO(Xne(...e),...a),eoe=({value:e,mask:a,maskSymbol:t,offset:i=0,trimNonMaskCharsLeftover:n=!1})=>{if(e.length<i)return e;let o=e.slice(0,i),r=e.slice(i),s=o,d=0;for(let u of a.split("")){if(d>=r.length){if(!n&&u!==t){s+=u;continue}break}u===t?(s+=r[d],d+=1):s+=u}return s},jm=e=>e?/^\d+$/.test(e):!1,Q_=e=>e.replace(/\D/g,""),aoe=(e,a)=>{let t=e.style.display;t!=="block"&&(e.style.display="block");let i=e.getBoundingClientRect(),n=a.getBoundingClientRect(),o=n.top-i.top,r=i.bottom-n.bottom;o>=0&&r>=0||(Math.abs(o)<Math.abs(r)?e.scrollTop+=o:e.scrollTop-=r),e.style.display=t};var toe=()=>typeof window>"u"?!1:window.navigator.userAgent.toLowerCase().includes("macintosh");var ioe=(e,a)=>{let t=a.disableDialCodeAndPrefix?!1:a.forceDialCode,i=a.disableDialCodeAndPrefix?!1:a.insertDialCodeOnEmpty,n=e,o=u=>a.trimNonDigitsEnd?u.trim():u;if(!n)return i&&!n.length||t?o(`${a.prefix}${a.dialCode}${a.charAfterDialCode}`):o(n);if(n=Q_(n),n===a.dialCode&&!a.disableDialCodeAndPrefix)return o(`${a.prefix}${a.dialCode}${a.charAfterDialCode}`);if(a.dialCode.startsWith(n)&&!a.disableDialCodeAndPrefix)return o(t?`${a.prefix}${a.dialCode}${a.charAfterDialCode}`:`${a.prefix}${n}`);if(!n.startsWith(a.dialCode)&&!a.disableDialCodeAndPrefix){if(t)return o(`${a.prefix}${a.dialCode}${a.charAfterDialCode}`);if(n.length<a.dialCode.length)return o(`${a.prefix}${n}`)}let r=()=>{let u=a.dialCode.length,p=n.slice(0,u),m=n.slice(u);return{phoneLeftSide:p,phoneRightSide:m}},{phoneLeftSide:s,phoneRightSide:d}=r();return s=`${a.prefix}${s}${a.charAfterDialCode}`,d=eoe({value:d,mask:a.mask,maskSymbol:a.maskChar,trimNonMaskCharsLeftover:a.trimNonDigitsEnd||a.disableDialCodeAndPrefix&&d.length===0}),a.disableDialCodeAndPrefix&&(s=""),o(`${s}${d}`)},noe=({phoneBeforeInput:e,phoneAfterInput:a,phoneAfterFormatted:t,cursorPositionAfterInput:i,leftOffset:n=0,deletion:o})=>{if(i<n)return n;if(!e)return t.length;let r=null;for(let p=i-1;p>=0;p-=1)if(jm(a[p])){r=p;break}if(r===null){for(let p=0;p<a.length;p+=1)if(jm(t[p]))return p;return a.length}let s=0;for(let p=0;p<r;p+=1)jm(a[p])&&(s+=1);let d=0,u=0;for(let p=0;p<t.length&&(d+=1,jm(t[p])&&(u+=1),!(u>=s+1));p+=1);if(o!=="backward")for(;!jm(t[d])&&d<t.length;)d+=1;return d},H_=({phone:e,prefix:a})=>e?`${a}${Q_(e)}`:"";function Kj({value:e,country:a,insertDialCodeOnEmpty:t,trimNonDigitsEnd:i,countries:n,prefix:o,charAfterDialCode:r,forceDialCode:s,disableDialCodeAndPrefix:d,defaultMask:u,countryGuessingEnabled:p,disableFormatting:m}){let g=e;d&&(g=g.startsWith(`${o}`)?g:`${o}${a.dialCode}${g}`);let b=p?coe({phone:g,countries:n,currentCountryIso2:a?.iso2}):void 0,f=b?.country??a,v=ioe(g,{prefix:o,mask:poe({phone:g,country:f,defaultMask:u,disableFormatting:m}),maskChar:eK,dialCode:f.dialCode,trimNonDigitsEnd:i,charAfterDialCode:r,forceDialCode:s,insertDialCodeOnEmpty:t,disableDialCodeAndPrefix:d}),_=p&&!b?.fullDialCodeMatch?a:f;return{phone:H_({phone:d?`${_.dialCode}${v}`:v,prefix:o}),inputValue:v,country:_}}var ooe=e=>{if(e?.toLocaleLowerCase().includes("delete")??!1)return e?.toLocaleLowerCase().includes("forward")?"forward":"backward"},roe=(e,{country:a,insertDialCodeOnEmpty:t,phoneBeforeInput:i,prefix:n,charAfterDialCode:o,forceDialCode:r,disableDialCodeAndPrefix:s,countryGuessingEnabled:d,defaultMask:u,disableFormatting:p,countries:m})=>{let g=e.nativeEvent,b=g.inputType,f=ooe(b),v=!!b?.startsWith("insertFrom"),_=b==="insertText",h=g?.data||void 0,k=e.target.value,y=e.target.selectionStart??0;if(b?.includes("history"))return{inputValue:i,phone:H_({phone:i,prefix:n}),cursorPosition:i.length,country:a};if(_&&!jm(h)&&k!==n)return{inputValue:i,phone:H_({phone:s?`${a.dialCode}${i}`:i,prefix:n}),cursorPosition:y-(h?.length??0),country:a};if(r&&!k.startsWith(`${n}${a.dialCode}`)&&!v){let z=k?i:`${n}${a.dialCode}${o}`;return{inputValue:z,phone:H_({phone:z,prefix:n}),cursorPosition:n.length+a.dialCode.length+o.length,country:a}}let{phone:I,inputValue:A,country:T}=Kj({value:k,country:a,trimNonDigitsEnd:f==="backward",insertDialCodeOnEmpty:t,countryGuessingEnabled:d,countries:m,prefix:n,charAfterDialCode:o,forceDialCode:r,disableDialCodeAndPrefix:s,disableFormatting:p,defaultMask:u}),P=noe({cursorPositionAfterInput:y,phoneBeforeInput:i,phoneAfterInput:k,phoneAfterFormatted:A,leftOffset:r?n.length+a.dialCode.length+o.length:0,deletion:f});return{phone:I,inputValue:A,cursorPosition:P,country:T}},soe=(e,a)=>{let t=Object.keys(e),i=Object.keys(a);if(t.length!==i.length)return!1;for(let n of t)if(e[n]!==a[n])return!1;return!0},loe=()=>{let e=(0,Hj.useRef)(),a=(0,Hj.useRef)(Date.now());return{check:()=>{let t=Date.now(),i=e.current?t-a.current:void 0;return e.current=a.current,a.current=t,i}}},doe={size:20,overrideLastItemDebounceMS:-1};function uoe(e,a){let{size:t,overrideLastItemDebounceMS:i,onChange:n}={...doe,...a},[o,r]=(0,Y_.useState)(e),[s,d]=(0,Y_.useState)([o]),[u,p]=(0,Y_.useState)(0),m=loe();return[o,(g,b)=>{if(typeof g=="object"&&typeof o=="object"&&soe(g,o)||g===o)return;let f=i>0,v=m.check(),_=f&&v!==void 0?v>i:!0;if(b?.overrideLastItem!==void 0?b.overrideLastItem:!_)d(h=>[...h.slice(0,u),g]);else{let h=s.length>=t;d(k=>[...k.slice(h?1:0,u+1),g]),h||p(k=>k+1)}r(g),n?.(g)},()=>{if(u<=0)return{success:!1};let g=s[u-1];return r(g),p(b=>b-1),n?.(g),{success:!0,value:g}},()=>{if(u+1>=s.length)return{success:!1};let g=s[u+1];return r(g),p(b=>b+1),n?.(g),{success:!0,value:g}}]}var eK=".",Wn={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,disableFormatting:!1,countries:Vo,preferredCountries:[]},Qj=({defaultCountry:e=Wn.defaultCountry,value:a=Wn.value,countries:t=Wn.countries,prefix:i=Wn.prefix,defaultMask:n=Wn.defaultMask,charAfterDialCode:o=Wn.charAfterDialCode,historySaveDebounceMS:r=Wn.historySaveDebounceMS,disableCountryGuess:s=Wn.disableCountryGuess,disableDialCodePrefill:d=Wn.disableDialCodePrefill,forceDialCode:u=Wn.forceDialCode,disableDialCodeAndPrefix:p=Wn.disableDialCodeAndPrefix,disableFormatting:m=Wn.disableFormatting,onChange:g,inputRef:b})=>{let f={countries:t,prefix:i,charAfterDialCode:o,forceDialCode:p?!1:u,disableDialCodeAndPrefix:p,defaultMask:n,countryGuessingEnabled:!s,disableFormatting:m},v=(0,mo.useRef)(null),_=b||v,h=q=>{Promise.resolve().then(()=>{typeof window>"u"||_.current!==document?.activeElement||_.current?.setSelectionRange(q,q)})},[{phone:k,inputValue:y,country:I},A,T,P]=uoe(()=>{let q=xm({value:e,field:"iso2",countries:t});q||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let Z=q||xm({value:"us",field:"iso2",countries:t}),{phone:x,inputValue:E,country:V}=Kj({value:a,country:Z,insertDialCodeOnEmpty:!d,...f});return h(E.length),{phone:x,inputValue:E,country:V.iso2}},{overrideLastItemDebounceMS:r,onChange:({inputValue:q,phone:Z,country:x})=>{if(!g)return;let E=z(x);g({phone:Z,inputValue:q,country:E})}}),z=(0,mo.useCallback)(q=>xm({value:q,field:"iso2",countries:t}),[t]),D=(0,mo.useMemo)(()=>z(I),[I,z]);(0,mo.useEffect)(()=>{let q=_.current;if(!q)return;let Z=x=>{if(!x.key)return;let E=x.ctrlKey,V=x.metaKey,pe=x.shiftKey;if(x.key.toLowerCase()==="z"){if(toe()){if(!V)return}else if(!E)return;pe?P():T()}};return q.addEventListener("keydown",Z),()=>{q.removeEventListener("keydown",Z)}},[_,T,P]);let C=q=>{q.preventDefault();let{phone:Z,inputValue:x,country:E,cursorPosition:V}=roe(q,{country:D,phoneBeforeInput:y,insertDialCodeOnEmpty:!1,...f});return A({inputValue:x,phone:Z,country:E.iso2}),h(V),a},W=(q,Z={focusOnInput:!1})=>{let x=xm({value:q,field:"iso2",countries:t});if(!x){console.error(`[react-international-phone]: can not find a country with "${q}" iso2 code`);return}let E=p?"":`${i}${x.dialCode}${o}`;A({inputValue:E,phone:`${i}${x.dialCode}`,country:x.iso2}),Z.focusOnInput&&Promise.resolve().then(()=>{_.current?.focus()})},[F,N]=(0,mo.useState)(!1);return(0,mo.useEffect)(()=>{if(!F){N(!0),a!==k&&g?.({inputValue:y,phone:k,country:D});return}if(a===k)return;let{phone:q,inputValue:Z,country:x}=Kj({value:a,country:D,insertDialCodeOnEmpty:!d,...f});A({phone:q,inputValue:Z,country:x.iso2})},[a]),{phone:k,inputValue:y,country:D,setCountry:W,handlePhoneValueChange:C,inputRef:_}},poe=({phone:e,country:a,defaultMask:t="............",disableFormatting:i=!1})=>{let n=a.format,o=s=>i?s.replace(new RegExp(`[^${eK}]`,"g"),""):s;if(!n)return o(t);if(typeof n=="string")return o(n);if(!n.default)return console.error(`[react-international-phone]: default mask for ${a.iso2} is not provided`),o(t);let r=Object.keys(n).find(s=>{if(s==="default")return!1;if(!(s.charAt(0)==="/"&&s.charAt(s.length-1)==="/"))return console.error(`[react-international-phone]: format regex "${s}" for ${a.iso2} is not valid`),!1;let d=new RegExp(s.substring(1,s.length-1)),u=e.replace(a.dialCode,"");return d.test(Q_(u))});return o(r?n[r]:n.default)},Gi=e=>{let[a,t,i,n,o,r]=e;return{name:a,iso2:t,dialCode:i,format:n,priority:o,areaCodes:r}},moe=e=>`Field "${e}" is not supported`,xm=({field:e,value:a,countries:t=Vo})=>{if(["priority"].includes(e))throw new Error(moe(e));let i=t.find(n=>{let o=Gi(n);return a===o[e]});if(i)return Gi(i)},coe=({phone:e,countries:a=Vo,currentCountryIso2:t})=>{let i={country:void 0,fullDialCodeMatch:!1};if(!e)return i;let n=Q_(e);if(!n)return i;let o=i,r=({country:s,fullDialCodeMatch:d})=>{let u=s.dialCode===o.country?.dialCode,p=(s.priority??0)<(o.country?.priority??0);(!u||p)&&(o={country:s,fullDialCodeMatch:d})};for(let s of a){let d=Gi(s),{dialCode:u,areaCodes:p}=d;if(n.startsWith(u)){let m=o.country?Number(u)>=Number(o.country.dialCode):!0;if(p){let g=n.substring(u.length);for(let b of p)if(g.startsWith(b))return{country:d,fullDialCodeMatch:!0}}(m||u===n||!o.fullDialCodeMatch)&&r({country:d,fullDialCodeMatch:!0})}o.fullDialCodeMatch||n.length<u.length&&u.startsWith(n)&&(!o.country||Number(u)<=Number(o.country.dialCode))&&r({country:d,fullDialCodeMatch:!1})}if(t){let s=xm({value:t,field:"iso2",countries:a});if(!s)return o;let d=s?(u=>{if(!u?.areaCodes)return!1;let p=n.substring(u.dialCode.length);return u.areaCodes.some(m=>m.startsWith(p))})(s):!1;o&&o.country?.dialCode===s.dialCode&&o.country!==s&&o.fullDialCodeMatch&&(!s.areaCodes||d)&&(o={country:s,fullDialCodeMatch:!0})}return o},goe=(e,a)=>{let t=parseInt(e,16);return Number(t+a).toString(16)},koe="abcdefghijklmnopqrstuvwxyz",hoe="1f1e6",JO=koe.split("").reduce((e,a,t)=>({...e,[a]:goe(hoe,t)}),{}),boe=e=>[JO[e[0]],JO[e[1]]].join("-"),$_=({iso2:e,size:a,src:t,protocol:i="https",disableLazyLoading:n,className:o,style:r,...s})=>{if(!e)return Yj.default.createElement("img",{className:ri({addPrefix:["flag-emoji"],rawClassNames:[o]}),width:a,height:a,...s});let d=()=>{if(t)return t;let u=boe(e);return`${i}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${u}.svg`};return Yj.default.createElement("img",{className:ri({addPrefix:["flag-emoji"],rawClassNames:[o]}),src:d(),width:a,height:a,draggable:!1,"data-country":e,loading:n?void 0:"lazy",style:{width:a,height:a,...r},alt:"",...s})},voe=1e3,yoe=({show:e,dialCodePrefix:a="+",selectedCountry:t,countries:i=Vo,preferredCountries:n=[],flags:o,onSelect:r,onClose:s,...d})=>{let u=(0,Ga.useRef)(null),p=(0,Ga.useRef)(),m=(0,Ga.useMemo)(()=>{if(!n||!n.length)return i;let T=[],P=[...i];for(let z of n){let D=P.findIndex(C=>Gi(C).iso2===z);if(D!==-1){let C=P.splice(D,1)[0];T.push(C)}}return T.concat(P)},[i,n]),g=(0,Ga.useRef)({updatedAt:void 0,value:""}),b=T=>{let P=g.current.updatedAt&&new Date().getTime()-g.current.updatedAt.getTime()>voe;g.current={value:P?T:`${g.current.value}${T}`,updatedAt:new Date};let z=m.findIndex(D=>Gi(D).name.toLowerCase().startsWith(g.current.value));z!==-1&&_(z)},f=(0,Ga.useCallback)(T=>m.findIndex(P=>Gi(P).iso2===T),[m]),[v,_]=(0,Ga.useState)(f(t)),h=()=>{p.current!==t&&_(f(t))},k=(0,Ga.useCallback)(T=>{_(f(T.iso2)),r?.(T)},[r,f]),y=T=>{let P=m.length-1,z=D=>T==="prev"?D-1:T==="next"?D+1:T==="last"?P:0;_(D=>{let C=z(D);return C<0?0:C>P?P:C})},I=T=>{if(T.stopPropagation(),T.key==="Enter"){T.preventDefault();let P=Gi(m[v]);k(P);return}if(T.key==="Escape"){s?.();return}if(T.key==="ArrowUp"){T.preventDefault(),y("prev");return}if(T.key==="ArrowDown"){T.preventDefault(),y("next");return}if(T.key==="PageUp"){T.preventDefault(),y("first");return}if(T.key==="PageDown"){T.preventDefault(),y("last");return}T.key===" "&&T.preventDefault(),T.key.length===1&&!T.altKey&&!T.ctrlKey&&!T.metaKey&&b(T.key.toLocaleLowerCase())},A=(0,Ga.useCallback)(()=>{if(!u.current||v===void 0)return;let T=Gi(m[v]).iso2;if(T===p.current)return;let P=u.current.querySelector(`[data-country="${T}"]`);P&&(aoe(u.current,P),p.current=T)},[v,m]);return(0,Ga.useEffect)(()=>{A()},[v,A]),(0,Ga.useEffect)(()=>{u.current&&(e?u.current.focus():h())},[e]),(0,Ga.useEffect)(()=>{h()},[t]),Ga.default.createElement("ul",{ref:u,role:"listbox",className:ri({addPrefix:["country-selector-dropdown"],rawClassNames:[d.className]}),style:{display:e?"block":"none",...d.style},onKeyDown:I,onBlur:s,tabIndex:-1,"aria-activedescendant":`react-international-phone__${Gi(m[v]).iso2}-option`},m.map((T,P)=>{let z=Gi(T),D=z.iso2===t,C=P===v,W=n.includes(z.iso2),F=P===n.length-1,N=o?.find(q=>q.iso2===z.iso2);return Ga.default.createElement(Ga.default.Fragment,{key:z.iso2},Ga.default.createElement("li",{"data-country":z.iso2,role:"option","aria-selected":D,"aria-label":`${z.name} ${a}${z.dialCode}`,id:`react-international-phone__${z.iso2}-option`,className:ri({addPrefix:["country-selector-dropdown__list-item",W&&"country-selector-dropdown__list-item--preferred",D&&"country-selector-dropdown__list-item--selected",C&&"country-selector-dropdown__list-item--focused"],rawClassNames:[d.listItemClassName]}),onClick:()=>k(z),style:d.listItemStyle,title:z.name},Ga.default.createElement($_,{iso2:z.iso2,src:N?.src,className:ri({addPrefix:["country-selector-dropdown__list-item-flag-emoji"],rawClassNames:[d.listItemFlagClassName]}),style:d.listItemFlagStyle}),Ga.default.createElement("span",{className:ri({addPrefix:["country-selector-dropdown__list-item-country-name"],rawClassNames:[d.listItemCountryNameClassName]}),style:d.listItemCountryNameStyle},z.name),Ga.default.createElement("span",{className:ri({addPrefix:["country-selector-dropdown__list-item-dial-code"],rawClassNames:[d.listItemDialCodeClassName]}),style:d.listItemDialCodeStyle},a,z.dialCode)),F?Ga.default.createElement("hr",{className:ri({addPrefix:["country-selector-dropdown__preferred-list-divider"],rawClassNames:[d.preferredListDividerClassName]}),style:d.preferredListDividerStyle}):null)}))},foe=({selectedCountry:e,onSelect:a,disabled:t,hideDropdown:i,countries:n=Vo,preferredCountries:o=[],flags:r,renderButtonWrapper:s,...d})=>{let[u,p]=(0,en.useState)(!1),m=(0,en.useMemo)(()=>{if(e)return xm({value:e,field:"iso2",countries:n})},[n,e]),g=(0,en.useRef)(null),b=v=>{v.key&&["ArrowUp","ArrowDown"].includes(v.key)&&(v.preventDefault(),p(!0))},f=()=>{let v={title:m?.name,onClick:()=>p(h=>!h),onMouseDown:h=>h.preventDefault(),onKeyDown:b,disabled:i||t,role:"combobox","aria-label":"Country selector","aria-haspopup":"listbox","aria-expanded":u},_=en.default.createElement("div",{className:ri({addPrefix:["country-selector-button__button-content"],rawClassNames:[d.buttonContentWrapperClassName]}),style:d.buttonContentWrapperStyle},en.default.createElement($_,{iso2:e,src:r?.find(h=>h.iso2===e)?.src,className:ri({addPrefix:["country-selector-button__flag-emoji",t&&"country-selector-button__flag-emoji--disabled"],rawClassNames:[d.flagClassName]}),style:{visibility:e?"visible":"hidden",...d.flagStyle}}),!i&&en.default.createElement("div",{className:ri({addPrefix:["country-selector-button__dropdown-arrow",t&&"country-selector-button__dropdown-arrow--disabled",u&&"country-selector-button__dropdown-arrow--active"],rawClassNames:[d.dropdownArrowClassName]}),style:d.dropdownArrowStyle}));return s?s({children:_,rootProps:v}):en.default.createElement("button",{...v,type:"button",className:ri({addPrefix:["country-selector-button",u&&"country-selector-button--active",t&&"country-selector-button--disabled",i&&"country-selector-button--hide-dropdown"],rawClassNames:[d.buttonClassName]}),"data-country":e,style:d.buttonStyle},_)};return en.default.createElement("div",{className:ri({addPrefix:["country-selector"],rawClassNames:[d.className]}),style:d.style,ref:g},f(),en.default.createElement(yoe,{show:u,countries:n,preferredCountries:o,flags:r,onSelect:v=>{p(!1),a?.(v)},selectedCountry:e,onClose:()=>{p(!1)},...d.dropdownStyleProps}))},_oe=({dialCode:e,prefix:a,disabled:t,style:i,className:n})=>aK.default.createElement("div",{className:ri({addPrefix:["dial-code-preview",t&&"dial-code-preview--disabled"],rawClassNames:[n]}),style:i},`${a}${e}`),Dma=(0,Zr.forwardRef)(({value:e,onChange:a,countries:t=Vo,preferredCountries:i=[],hideDropdown:n,showDisabledDialCodeAndPrefix:o,disableFocusAfterCountrySelect:r,flags:s,style:d,className:u,inputStyle:p,inputClassName:m,countrySelectorStyleProps:g,dialCodePreviewStyleProps:b,inputProps:f,placeholder:v,disabled:_,name:h,onFocus:k,onBlur:y,required:I,autoFocus:A,...T},P)=>{let{phone:z,inputValue:D,inputRef:C,country:W,setCountry:F,handlePhoneValueChange:N}=Qj({value:e,countries:t,...T,onChange:Z=>{a?.(Z.phone,{country:Z.country,inputValue:Z.inputValue})}}),q=T.disableDialCodeAndPrefix&&o&&W?.dialCode;return(0,Zr.useImperativeHandle)(P,()=>C.current?Object.assign(C.current,{setCountry:F,state:{phone:z,inputValue:D,country:W}}):null,[C,F,z,D,W]),Zr.default.createElement("div",{ref:P,className:ri({addPrefix:["input-container"],rawClassNames:[u]}),style:d},Zr.default.createElement(foe,{onSelect:Z=>F(Z.iso2,{focusOnInput:!r}),flags:s,selectedCountry:W.iso2,countries:t,preferredCountries:i,disabled:_,hideDropdown:n,...g}),q&&Zr.default.createElement(_oe,{dialCode:W.dialCode,prefix:T.prefix??"+",disabled:_,...b}),Zr.default.createElement("input",{onChange:N,value:D,type:"tel",ref:C,className:ri({addPrefix:["input",_&&"input--disabled"],rawClassNames:[m]}),placeholder:v,disabled:_,style:p,name:h,onFocus:k,onBlur:y,autoFocus:A,required:I,...f}))});var Uo=S(ne()),Aoe=e=>e.toUpperCase().replace(/./g,a=>String.fromCodePoint(a.charCodeAt(0)+127397)),iK=(0,$s.forwardRef)(({value:e,onChange:a,onBlur:t,defaultCountryCode:i,disabled:n,control:o,name:r,selectProps:s,...d},u)=>{let[p,m]=(0,$s.useState)(e??""),g=(0,$s.useMemo)(()=>{if(i?.startsWith("+")){let k=Vo.find(y=>Gi(y).dialCode===i);return k?Gi(k).iso2:"br"}return i??navigator.language?.split?.("-")[1]?.toLowerCase()??"br"},[i]),{inputValue:b,handlePhoneValueChange:f,inputRef:v,country:_,setCountry:h}=Qj({defaultCountry:g,value:p,countries:Vo,onChange:k=>{a(k.phone)}});return(0,$s.useEffect)(()=>{e!==p&&m(e??"")},[e]),(0,Uo.jsx)(Sm,{...d,ref:u,control:o,name:r,disabled:n,type:"tel",value:b,onChange:f,onBlur:t,startDecorator:(0,Uo.jsxs)(ba,{component:"label",sx:{position:"relative"},children:[(0,Uo.jsxs)(ca,{direction:"row",alignItems:"center",gap:.5,sx:k=>({cursor:"pointer",color:k.palette.text.secondary}),children:[(0,Uo.jsx)(eo,{sx:{width:20},children:(0,Uo.jsx)($_,{iso2:_.iso2})}),(0,Uo.jsx)(tK.default,{sx:{fontSize:"small"}})]}),(0,Uo.jsx)(eo,{component:"select",onChange:k=>h(k.target.value),sx:{position:"absolute",inset:0,width:"100%",height:"100%",opacity:0,cursor:"pointer"},children:Vo.map(k=>{let y=Gi(k);return(0,Uo.jsxs)("option",{value:y.iso2,children:[y.name," ",Aoe(y.iso2)]},y.iso2)})})]})})});iK.displayName="PhoneNumberInput";var nK=iK;var ha=S(ne()),ica={email:"email",phoneNumber:"phoneNumber",text:"text",textArea:"textArea",select:"select",multiple_choice:"ContactType",leadSelect:"leadSelect",file:"file",number:"number"};function rK(e){return typeof e.key=="string"&&e.key.trim()!==""?e.key:e.id}var sK=e=>{let a={};return e.forEach(t=>{let{key:i,required:n,type:o}=t,r;switch(o){case"email":r=Ca.string().email();break;case"textArea":r=n?Ca.string().min(20).max(1e3):Ca.string().optional().or(Ca.literal(""));break;case"leadSelect":r=n?Ca.string().min(1):Ca.string().optional();break;case"multiple_choice":r=n?Ca.string().min(1):Ca.string().optional();break;case"phoneNumber":r=n?Ca.string().min(3):Ca.string().optional();break;case"text":r=n?Ca.string().min(1):Ca.string().optional();break;case"number":{let{min:s,max:d}=t,u=Ca.coerce.number().superRefine((p,m)=>{s!==void 0&&p<s&&m.addIssue({code:Ca.ZodIssueCode.too_small,minimum:s,inclusive:!1,type:"number"}),d!==void 0&&p>d&&m.addIssue({code:Ca.ZodIssueCode.too_big,maximum:d,inclusive:!1,type:"number"})});r=n?u:u.optional();break}case"file":{let s=Ca.unknown();r=n?Ca.array(s).min(1):Ca.array(s).optional();break}default:r=Ca.string()}a[i]=r}),a},Ioe={email:({key:e,methods:a,placeholder:t,disabled:i})=>{let n=a.formState.errors?.[e]?.message;return(0,ha.jsx)(Jt,{error:!!n,children:(0,ha.jsx)(fn,{name:e,control:a.control,render:({field:o})=>(0,ha.jsx)(Sm,{name:e,control:a.control,disabled:i,value:String(o.value??""),onChange:r=>{o.onChange(r),a.trigger(e)},onBlur:o.onBlur,placeholder:t??"",sx:{width:"100%"}})})})},phoneNumber:({key:e,methods:a,placeholder:t,defaultCountryCode:i,disabled:n})=>{let o=a.formState.errors?.[e]?.message;return(0,ha.jsxs)(Jt,{error:!!o,children:[(0,ha.jsx)(fn,{name:e,control:a.control,render:({field:r})=>(0,ha.jsx)(nK,{control:a.control,name:e,disabled:n,value:String(r.value??""),onChange:s=>{r.onChange(s)},onBlur:r.onBlur,defaultCountryCode:i,placeholder:t??""})}),o&&(0,ha.jsx)(xo,{children:String(o)})]})},text:({key:e,methods:a,placeholder:t,disabled:i})=>(0,ha.jsx)(Sm,{control:a.control,disabled:i,sx:{width:"100%"},...a.register(e),placeholder:t??""}),number:({key:e,methods:a,placeholder:t,min:i,max:n,disabled:o})=>(0,ha.jsx)(Sm,{control:a.control,disabled:o,type:"number",sx:{width:"100%"},placeholder:t??"",min:i,max:n,...a.register(e)}),textArea:({key:e,methods:a,placeholder:t,disabled:i})=>{let n=a.formState.errors?.[e]?.message,o=Pm(),r=typeof t=="string"&&t.startsWith("templates.")?o(t,"placeholder"):t??"";return(0,ha.jsxs)(Jt,{error:!!n,children:[(0,ha.jsx)(yy,{disabled:i,sx:{width:"100%"},...a.register(e),minRows:4,placeholder:r}),n&&(0,ha.jsx)(xo,{children:String(n)})]})},leadSelect:({key:e,options:a=[],placeholder:t,methods:i,disabled:n})=>{let o=Pm(),r=i.formState.errors?.[e]?.message;return(0,ha.jsxs)(Jt,{error:!!r,children:[(0,ha.jsx)(fn,{name:e,control:i.control,defaultValue:"",render:({field:s})=>{let d=s.value??"";return(0,ha.jsx)(Do,{value:d,onChange:(u,p)=>s.onChange(p??""),onBlur:s.onBlur,name:s.name,ref:s.ref,disabled:n,placeholder:t||"",slotProps:{listbox:{sx:{zIndex:9999999999+1}}},sx:{width:"100%"},children:a.map((u,p)=>(0,ha.jsx)(Co,{value:u,children:u.startsWith("templates.")?o(u,"name"):u},p))})}}),r&&(0,ha.jsx)(xo,{children:String(r)})]})},multiple_choice:({key:e,options:a=[],placeholder:t,methods:i,disabled:n})=>{let o=Pm(),r=i.formState.errors?.[e]?.message;return(0,ha.jsxs)(Jt,{error:!!r,children:[(0,ha.jsx)(fn,{name:e,control:i.control,defaultValue:[],render:({field:s})=>{let d=Array.isArray(s.value)?s.value:[];return(0,ha.jsx)(Do,{multiple:!0,value:d,onChange:(u,p)=>s.onChange(p??[]),onBlur:s.onBlur,name:s.name,ref:s.ref,disabled:n,placeholder:t||"",slotProps:{listbox:{sx:{zIndex:9999999999+1}}},sx:{width:"100%"},children:a.map((u,p)=>(0,ha.jsx)(Co,{value:u,children:u.startsWith("templates.")?o(u,"name"):u},p))})}}),r&&(0,ha.jsx)(xo,{children:String(r)})]})},file:({key:e,placeholder:a,changeHandler:t,methods:i,disabled:n})=>{let o=i.formState.errors?.[e]?.message,r=i.watch(e)??[],s=[];try{s=JSON.parse(r)}catch{}return(0,ha.jsxs)(Jt,{error:!!o,children:[!n&&(0,ha.jsx)(Uj,{variant:"outlined",placeholder:a??"Browse Files",changeCallback:d=>{t?.(e,d),i.setValue(e,d,{shouldDirty:!0,shouldValidate:!0}),i.trigger(e)}}),n&&(0,ha.jsx)(ca,{gap:1,children:s.map((d,u)=>(0,ha.jsx)(FO,{attachment:{url:d,name:d,mimeType:LO.getType(d),size:42}},u))}),o&&(0,ha.jsx)(xo,{children:String(o)})]})}},Rk=Ioe;l();var _a=S(yK()),fK=e=>({schema:{fields:[{id:(0,_a.default)(),key:"email",type:"email",shouldCreateContact:!0,name:"templates.fromScratch.fields.email.name",required:!0},{id:(0,_a.default)(),key:"phoneNumber",type:"phoneNumber",name:"templates.leadForm.fields.phone.name",required:!0,placeholder:"templates.leadForm.fields.phone.placeholder"}]}}),_K=e=>({name:"templates.fromScratch.name",description:"templates.fromScratch.description",schema:{fields:[{id:(0,_a.default)(),key:"email",type:"email",shouldCreateContact:!0,name:"templates.fromScratch.fields.email.name",required:!0},{id:(0,_a.default)(),key:"select",type:"select",group:"select",name:"templates.fromScratch.fields.select.name",required:!0,options:["templates.fromScratch.fields.select.options.support","templates.fromScratch.fields.select.options.sales","templates.fromScratch.fields.select.options.feedback","templates.fromScratch.fields.select.options.partnership","templates.fromScratch.fields.select.options.other"],placeholder:"templates.fromScratch.fields.select.placeholder"}],startScreen:{title:"templates.fromScratch.startScreen.title",description:"templates.fromScratch.startScreen.description"}}}),AK=e=>({name:"templates.leadForm.name",description:"templates.leadForm.description",schema:{overview:"templates.leadForm.overview",fields:[{id:(0,_a.default)(),key:"email",type:"email",shouldCreateContact:!0,name:"templates.leadForm.fields.email.name",required:!0,placeholder:"templates.leadForm.fields.email.placeholder"},{id:(0,_a.default)(),key:"phoneNumber",type:"phoneNumber",name:"templates.leadForm.fields.phone.name",required:!0,placeholder:"templates.leadForm.fields.phone.placeholder"},{id:(0,_a.default)(),key:"comment",type:"textArea",name:"templates.leadForm.fields.comment.name",required:!1,placeholder:"templates.leadForm.fields.comment.placeholder"},{id:(0,_a.default)(),key:"select",type:"leadSelect",group:"select",name:"templates.leadForm.fields.select.name",required:!1,options:["templates.leadForm.fields.select.options.getMoreClients","templates.leadForm.fields.select.options.automateTasks","templates.leadForm.fields.select.options.organizeContacts","templates.leadForm.fields.select.options.learnMore","templates.leadForm.fields.select.options.other"],placeholder:"templates.leadForm.fields.select.placeholder"}],startScreen:{title:"templates.leadForm.startScreen.title",description:"templates.leadForm.startScreen.description"}}}),IK=e=>({name:"templates.productFeedbackForm.name",description:"templates.productFeedbackForm.description",schema:{overview:"templates.productFeedbackForm.overview",fields:[{id:(0,_a.default)(),key:"email",type:"email",shouldCreateContact:!0,name:"templates.productFeedbackForm.fields.email.name",required:!0,placeholder:"templates.productFeedbackForm.fields.email.placeholder"},{id:(0,_a.default)(),key:"type",type:"select",group:"type",name:"templates.productFeedbackForm.fields.type.name",required:!0,options:["templates.productFeedbackForm.fields.type.options.featureRequest","templates.productFeedbackForm.fields.type.options.bugReport","templates.productFeedbackForm.fields.type.options.other"],placeholder:"templates.productFeedbackForm.fields.type.placeholder"},{id:(0,_a.default)(),key:"comment",type:"textArea",name:"templates.productFeedbackForm.fields.comment.name",required:!0,placeholder:"templates.productFeedbackForm.fields.comment.placeholder"},{id:(0,_a.default)(),key:"files",type:"file",name:"templates.productFeedbackForm.fields.files.name",required:!1,placeholder:"templates.productFeedbackForm.fields.files.placeholder"}],startScreen:{title:"templates.productFeedbackForm.startScreen.title",description:"templates.productFeedbackForm.startScreen.description"}}}),TK=e=>({name:"templates.onboardingForm.name",description:"templates.onboardingForm.description",schema:{overview:"templates.onboardingForm.overview",fields:[{id:(0,_a.default)(),key:"email",type:"email",shouldCreateContact:!0,name:"templates.onboardingForm.fields.email.name",required:!0,placeholder:"templates.onboardingForm.fields.email.placeholder"},{id:(0,_a.default)(),key:"Enterprise",type:"select",group:"Enterprise",name:"templates.onboardingForm.fields.Enterprise.name",required:!0,options:["templates.onboardingForm.fields.Enterprise.options.eCommerce","templates.onboardingForm.fields.Enterprise.options.healthcare","templates.onboardingForm.fields.Enterprise.options.finance","templates.onboardingForm.fields.Enterprise.options.technology","templates.onboardingForm.fields.Enterprise.options.retail","templates.onboardingForm.fields.Enterprise.options.manufacturing","templates.onboardingForm.fields.Enterprise.options.other"],placeholder:"templates.onboardingForm.fields.Enterprise.placeholder"},{id:(0,_a.default)(),key:"companySize",type:"select",group:"companySize",name:"templates.onboardingForm.fields.companySize.name",required:!0,options:["templates.onboardingForm.fields.companySize.options.small","templates.onboardingForm.fields.companySize.options.medium","templates.onboardingForm.fields.companySize.options.large"],placeholder:"templates.onboardingForm.fields.companySize.placeholder"},{id:(0,_a.default)(),key:"referral",type:"select",group:"referral",name:"templates.onboardingForm.fields.referral.name",required:!0,options:["templates.onboardingForm.fields.referral.options.google","templates.onboardingForm.fields.referral.options.socialMedia","templates.onboardingForm.fields.referral.options.newsletter","templates.onboardingForm.fields.referral.options.wordOfMouth","templates.onboardingForm.fields.referral.options.tradeShow","templates.onboardingForm.fields.referral.options.other"],placeholder:"templates.onboardingForm.fields.referral.placeholder"}],startScreen:{title:"templates.onboardingForm.startScreen.title",description:"templates.onboardingForm.startScreen.description"}}}),PK=e=>({name:"templates.inboundLead.name",description:"templates.inboundLead.description",schema:{overview:"templates.inboundLead.overview",fields:[{id:(0,_a.default)(),key:"firstName",type:"text",name:"templates.inboundLead.fields.firstName.name",required:!0},{id:(0,_a.default)(),key:"email",type:"email",shouldCreateContact:!0,name:"templates.inboundLead.fields.email.name",required:!0},{id:(0,_a.default)(),key:"interestedIn",type:"select",group:"interestedIn",name:"templates.inboundLead.fields.interestedIn.name",required:!0,options:["templates.inboundLead.fields.interestedIn.options.automatedSupport","templates.inboundLead.fields.interestedIn.options.increaseSales","templates.inboundLead.fields.interestedIn.options.reduceResponseTime","templates.inboundLead.fields.interestedIn.options.centralizeChannels","templates.inboundLead.fields.interestedIn.options.other"],placeholder:"templates.inboundLead.fields.interestedIn.placeholder"}],startScreen:{title:"templates.inboundLead.startScreen.title",description:"templates.inboundLead.startScreen.description"}}}),zK=e=>({name:"templates.contactSales.name",description:"templates.contactSales.description",schema:{overview:"templates.contactSales.overview",fields:[{id:(0,_a.default)(),key:"firstName",type:"text",name:"templates.contactSales.fields.firstName.name",required:!0},{id:(0,_a.default)(),key:"email",type:"email",shouldCreateContact:!0,name:"templates.contactSales.fields.email.name",required:!0},{id:(0,_a.default)(),key:"interestedIn",type:"select",group:"interestedIn",name:"templates.contactSales.fields.interestedIn.name",required:!0,options:["templates.contactSales.fields.interestedIn.options.automateSupport","templates.contactSales.fields.interestedIn.options.centralizeChannels","templates.contactSales.fields.interestedIn.options.boostConversions","templates.contactSales.fields.interestedIn.options.customSolutions","templates.contactSales.fields.interestedIn.options.contentMarketing","templates.contactSales.fields.interestedIn.options.affiliates","templates.contactSales.fields.interestedIn.options.other"],placeholder:"templates.contactSales.fields.interestedIn.placeholder"}],startScreen:{title:"templates.contactSales.startScreen.title",description:"templates.contactSales.startScreen.description"}}}),wK=e=>({name:"templates.feedback.name",description:"templates.feedback.description",schema:{overview:"templates.feedback.overview",fields:[{id:(0,_a.default)(),key:"usageContext",type:"select",group:"usageContext",name:"templates.feedback.fields.usageContext.name",required:!0,options:["templates.feedback.fields.usageContext.options.work","templates.feedback.fields.usageContext.options.sports","templates.feedback.fields.usageContext.options.casual","templates.feedback.fields.usageContext.options.travel","templates.feedback.fields.usageContext.options.other"],placeholder:"templates.feedback.fields.usageContext.placeholder"},{id:(0,_a.default)(),key:"recommendationLikelihood",type:"select",group:"recommendationLikelihood",name:"templates.feedback.fields.recommendationLikelihood.name",required:!0,options:["templates.feedback.fields.recommendationLikelihood.options.yes","templates.feedback.fields.recommendationLikelihood.options.maybe","templates.feedback.fields.recommendationLikelihood.options.no"],placeholder:"templates.feedback.fields.recommendationLikelihood.placeholder"},{id:(0,_a.default)(),key:"priceValue",type:"select",group:"priceValue",name:"templates.feedback.fields.priceValue.name",required:!0,options:["templates.feedback.fields.priceValue.options.excellent","templates.feedback.fields.priceValue.options.fair","templates.feedback.fields.priceValue.options.expensive"],placeholder:"templates.feedback.fields.priceValue.placeholder"},{id:(0,_a.default)(),key:"overallSatisfaction",type:"select",group:"overallSatisfaction",name:"templates.feedback.fields.overallSatisfaction.name",required:!0,options:["templates.feedback.fields.overallSatisfaction.options.1","templates.feedback.fields.overallSatisfaction.options.2","templates.feedback.fields.overallSatisfaction.options.3","templates.feedback.fields.overallSatisfaction.options.4","templates.feedback.fields.overallSatisfaction.options.5"],placeholder:"templates.feedback.fields.overallSatisfaction.placeholder"}],startScreen:{title:"templates.feedback.startScreen.title",description:"templates.feedback.startScreen.description"}}});var Y=S(ne());var eA={initials:fK,fromScratch:_K,leadForm:AK,productFeedbackForm:IK,onboardingForm:TK,inboundLead:PK,contactSales:zK,feedback:wK},xoe=(e,a)=>!e||e===""?`field_${a}`:e;function Coe({formId:e,conversationId:a,messageId:t,submissionId:i,isInEditor:n,tTpl:o,isStandalone:r=!n,isFormSubmitted:s,values:d,readOnly:u,styles:p,onEnd:m,config:g}){let{t:b}=uo("form",{i18n:Qs}),{t:f}=uo("FormsPage",{i18n:Qs}),{t:v,i18n:_}=uo("embeds_forms_traditional",{i18n:Qs}),h=_.resolvedLanguage||_.language||"en",k=m_(e?`https://app.zappway.ai/api/forms/${e}?locale=${h}`:null,TO),y=Pm(),I=(0,En.useMemo)(()=>{let G=k.data?.draftConfig,ee=k.data?.publishedConfig,X=n?g??G??null:ee??null;if(X){let Oe=X.templateId?xn(X.templateId):"initials",K=Object.keys(eA).find(U=>U.toLowerCase()==Oe.toLowerCase())??"initials";X.fields?.forEach(U=>{Array.isArray(U.options)&&(U.options=U.options.map(Q=>{if(typeof Q=="string"&&Q.includes(" ")){let oe=xn(Q);return Nk(K,U.key,oe)}return Q}))})}return X},[g,k.data,n]),A=I?.templateId?xn(I.templateId):"initials",T=Object.keys(eA).find(G=>G.toLowerCase()===A.toLowerCase())??"initials",P=(0,En.useMemo)(()=>o||((G,ee="name")=>{if(!G)return"";if(typeof G=="object"&&G!==null)return typeof G[ee]=="string"?G[ee]:"";let Oe=G.match(/^templates\.([^\.]+)\./)?.[1]??T,K=Object.keys(eA).find(Q=>Q.toLowerCase()===Oe.toLowerCase())??T,U=y(G,ee,K);return!U||U===G||/^templates\.[^.]+\.fields\.[^.]+\.name$/.test(U)?f(G):U}),[o,T,y,f]),D=(eA[T]?.(P)??null)?.schema?.fields??[],C=D.filter(G=>G.type==="leadSelect"||G.type==="multiple_choice").map(G=>G.key),W=(0,En.useMemo)(()=>{let G=Array.isArray(I?.fields)?I.fields:[];if(!D.length)return[];let ee=T==="initials",X=Object.values(N_);return G.filter(K=>{let U=!!K.id&&typeof K.name=="string"&&!!K.name&&X.includes(K.type);return U}).map(K=>{let U=K.type,Q=["select","leadSelect","multiple_choice"].includes(U),oe=rK(K),de=D.find(Pe=>Pe.key===oe)??null,Re=de?.key??oe;!K.id||K.name;let _e;if(U==="file")if(typeof K.name=="string"&&!K.name.startsWith("templates."))_e=K.name;else{let Pe=ee?"":(()=>{let ze=P(K.name,"name");return ze&&!ze.includes("templates.")&&ze.trim().length>1&&!/^\w{1,3}$/.test(ze)?ze:K.name})();_e=Pe&&!Pe.includes("templates.")?Pe:b("fieldTypes.file",{defaultValue:"Arquivo"})}else if(Q){let Pe=U==="leadSelect"?"fieldTypes.leadSelect":"fieldTypes.select";_e=n?b(Pe):(()=>{let ze=de?.name??K.name,Je=ee?"":(()=>{let j=P(ze,"name");return j&&!j.includes("templates.")&&j.trim().length>1&&!/^\w{1,3}$/.test(j)?j:ze})();return Je&&!Je.includes("templates.")?Je:b(Pe)})()}else if(!ee&&typeof K.name=="string"&&K.name.startsWith("templates.")){let Pe=(()=>{let ze=P(K.name,"name");return ze&&!ze.includes("templates.")&&ze.trim().length>1&&!/^\w{1,3}$/.test(ze)?ze:K.name})();_e=Pe&&!Pe.includes("templates.")?Pe:b(`fieldTypes.${U}`,{defaultValue:""})}else{let Pe=K.name||b(`fieldTypes.${U}`,{defaultValue:""});_e=xoe(Pe,K.id)}let Te;if(U==="file"||Q){let Pe=typeof de?.placeholder=="string"?de.placeholder:typeof K.placeholder=="string"?K.placeholder:"",ze=P(Pe,"placeholder"),Je=`templates.${T}.fields.${K.key}.placeholder`,j=f(Je);Te=j&&!j.includes("templates.")&&j.trim().length>1&&!/^\w{1,3}$/.test(j)?j:""}else{let Pe=K.placeholder??"";Te=Pe.startsWith("templates.")?(()=>{let ze=P(Pe,"placeholder");return ze&&!ze.includes("templates.")&&ze.trim().length>1&&!/^\w{1,3}$/.test(ze)?ze:f(Pe)})():Pe}let Ge,He=Pe=>Pe?.map(ze=>{if(ze.startsWith("templates."))return ze;if(ze.includes(" ")){let Je=xn(ze);return Nk(T,Re,Je)}return ze});if(Array.isArray(K.options)&&K.options.length&&(Ge=He(K.options)),!Ge&&Q&&Array.isArray(de?.options)&&(Ge=He(de.options)),!Ge&&Q){let Pe=D.find(ze=>ze.type===U&&Array.isArray(ze.options));Pe?.options?.length&&(Ge=He(Pe.options))}return{...K,key:Re,name:_e,...Te?{placeholder:Te}:{},...Ge?{options:Ge}:{}}})},[I,D,P,b,n,T]),F=(G,ee)=>{if(typeof G=="string"&&G.trim())return G;if(typeof G=="object"&&G!==null&&"name"in G){let X=G.name;if(typeof X=="string")return X}return`field_${ee}`},N=(0,En.useMemo)(()=>{let G={};return W.forEach(ee=>{let X=F(ee.key,ee.id);switch(ee.type){case"multiple_choice":G[X]=Array.isArray(d?.[X])?d[X]:[];break;case"select":case"leadSelect":G[X]=typeof d?.[X]=="string"?d[X]:"";break;case"file":G[X]=Array.isArray(d?.[X])?d[X]:[];break;default:G[X]=typeof d?.[X]=="string"?d[X]:"";break}}),G},[W,d]),q=G=>Ca.object({...sK(G.filter(ee=>typeof ee.key=="string"&&!!ee.key))}),Z=q(W),[x,E]=CO({loading:!1,files:[],isFormSubmitted:!!s,hasErrored:!1});(0,En.useEffect)(()=>{E({isFormSubmitted:!!i})},[i]),(0,En.useEffect)(()=>{E({isFormSubmitted:!!s})},[s]);let V=AF({resolver:zF(q(W)),mode:n?"onChange":"onBlur",reValidateMode:"onChange",criteriaMode:"firstError",defaultValues:N});(0,En.useEffect)(()=>{if(!d)return;let G={};W.forEach(ee=>{let X=F(ee.key,ee.id);ee.type==="multiple_choice"?G[X]=Array.isArray(d[X])?d[X]:[]:(ee.type==="select"||(ee.type,"leadSelect"),G[X]=typeof d[X]=="string"?d[X]:"")}),V.reset(G),V.clearErrors()},[d,V,W,F]),(0,En.useEffect)(()=>{},[V.formState.isValid,V.formState.errors]);let{upload:pe}=jO(),we=async G=>{if(n){E({isFormSubmitted:!0});return}try{E({loading:!0,hasErrored:!1});for(let K of W)if(K.type==="file"&&typeof K.name=="string"){let U=G[K.name]??[];if(U.length){let Q=await pe(U.map(oe=>({case:"formUpload",fileName:oe.name,mimeType:oe.type,file:oe,formId:e,conversationId:a})));G[K.name]=JSON.stringify(Q)}}let ee=V.getValues(),X=Object.fromEntries(W.filter(K=>typeof K.key=="string"&&!!K.key&&ee[K.key]!==void 0&&ee[K.key]!==null).map(K=>[K.key,ee[K.key]])),Oe=await fr.post(`https://app.zappway.ai/api/forms/${e}`,{formId:e,conversationId:a,formValues:X,draftConfig:g,messageId:t});Oe.status===200&&E({isFormSubmitted:!0}),m?.(Oe.data?.data)}catch{E({hasErrored:!0})}finally{E({loading:!1})}},be=r,ge=be?"form":"div";return Z instanceof Ca.ZodObject,r?(0,Y.jsx)(wz,{...V,children:(0,Y.jsx)(ge,{...be?{onSubmit:G=>{G.preventDefault(),V.handleSubmit(we)(G)}}:{},style:{flex:1},children:(0,Y.jsx)(ad,{variant:"outlined",color:"neutral",sx:{position:"relative",overflowY:"auto",width:"100%",maxHeight:"100%",flex:1,...p},children:!k.data&&k.isLoading?(0,Y.jsxs)(ca,{gap:1,sx:{textAlign:"left"},children:[(0,Y.jsx)(vg,{ratio:"21/9",children:(0,Y.jsx)(nd,{variant:"overlay",loading:!0,children:(0,Y.jsx)("img",{src:"",alt:""})})}),(0,Y.jsx)(ba,{children:v("loading_data")}),(0,Y.jsx)(ba,{children:(0,Y.jsx)(nd,{variant:"text",level:"h1",sx:{width:"100%"}})})]}):(0,Y.jsxs)(Ag,{sx:{textAlign:"center",alignItems:"center",position:"relative",width:"100%",display:"flex"},children:[(0,Y.jsx)(Rp,{children:x.isFormSubmitted&&!u&&(0,Y.jsx)(nm.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},children:(0,Y.jsxs)(ca,{spacing:2,sx:{p:4},justifyContent:"center",alignItems:"center",children:[(0,Y.jsx)(ax.default,{sx:{fontSize:42},color:"primary"}),(0,Y.jsx)(ba,{level:"h4",children:v("form_submitted_successfully")}),typeof I?.endScreen?.cta?.label=="string"&&(0,Y.jsx)("a",{href:I?.endScreen?.cta?.url||"#",target:I?.endScreen?.cta?.target,rel:"noopener noreferrer",children:(0,Y.jsx)(ed,{variant:"solid",size:"lg",color:"primary",children:I?.endScreen?.cta?.label})})]})})}),(0,Y.jsx)(Rp,{children:(!x.isFormSubmitted||u)&&(0,Y.jsxs)(nm.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},style:{width:"100%"},children:[(typeof I?.startScreen?.title=="string"||typeof I?.startScreen?.description=="string")&&(0,Y.jsxs)(ca,{sx:{mb:2},spacing:1.5,children:[typeof I?.startScreen?.title=="string"&&(0,Y.jsx)(ba,{level:"h3",children:(()=>{let G=P(I.startScreen.title,"name");return G&&!G.includes("templates.")&&G.trim().length>1&&!/^\w{1,3}$/.test(G)?G:I.startScreen.title})()}),typeof I?.startScreen?.description=="string"&&(0,Y.jsx)(ba,{level:"body-sm",children:(()=>{let G=P(I.startScreen.description,"placeholder");return G&&!G.includes("templates.")&&G.trim().length>1&&!/^\w{1,3}$/.test(G)?G:I.startScreen.description})()})]}),(0,Y.jsx)(ca,{width:"100%",spacing:2,onChange:G=>G.stopPropagation(),children:W.map(G=>{let ee=F(G.key,G.id);if(typeof ee!="string"||!ee.trim())return null;let X=G.type==="select"||G.type==="leadSelect"||G.type==="multiple_choice",Oe=X?!1:n,K=G.type==="multiple_choice",U=G.placeholder??"";return(0,Y.jsxs)(ca,{spacing:1,sx:{display:"flex",flexDirection:"column"},children:[(0,Y.jsxs)(ca,{direction:"row",children:[(0,Y.jsx)(ba,{level:"title-md",children:G.name}),G.required&&(0,Y.jsx)("span",{className:"text-red-500 ml-0.5",children:"*"})]}),X&&Oe?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(Jt,{children:[(0,Y.jsx)(br,{children:G.key&&typeof G.key=="string"?P(`templates.${A}.fields.${G.key}.name`):G.name}),(0,Y.jsx)(Do,{value:G.key||"",disabled:!!u,onChange:(Q,oe)=>{G.key&&oe&&V.setValue(`draftConfig.fields.${G.id}.key`,oe,{shouldDirty:!0,shouldValidate:!0})},children:C.map(Q=>(0,Y.jsx)(Co,{value:Q,children:P(`templates.${A}.fields.${Q}.name`)},Q))})]}),Array.isArray(G.options)&&G.options.length>0&&(0,Y.jsxs)(Jt,{children:[(0,Y.jsx)(br,{children:b("labels.options")}),(0,Y.jsx)(fn,{control:V.control,name:`draftConfig.fields.${G.id}.options`,defaultValue:[],render:({field:Q})=>{let oe=Array.isArray(Q.value)?Q.value:[];return(0,Y.jsx)(Do,{multiple:K,placeholder:U,value:oe,disabled:!!u,onChange:(de,Re)=>Q.onChange(Re??[]),slotProps:{listbox:{ref:Q.ref}},children:G.options.map(de=>{let _e=de.startsWith("templates.")?de:Nk(T,G.key,de),Te=(()=>{let Ge=P(_e,"name");return Ge&&!Ge.includes("templates.")&&Ge.trim().length>1&&!/^\w{1,3}$/.test(Ge)?Ge:_e})()||de;return(0,Y.jsx)(Co,{value:de,children:Te},de)})})}})]})]}):G.type==="file"?(0,Y.jsx)(fn,{control:V.control,name:ee,render:({field:Q})=>{let oe=G.type,de=oe==="select"?"leadSelect":oe,Re=Rk[de];return Re?(0,Y.jsx)(Y.Fragment,{children:Re({...G,...Q,control:V.control,key:ee,formId:e,conversationId:a,methods:V,disabled:!!u,placeholder:G.placeholder,changeHandler:(_e,Te)=>{_e&&V.setValue(ee,Te,{shouldDirty:!0,shouldValidate:!0})}})}):(0,Y.jsx)(Y.Fragment,{})}}):(0,Y.jsx)(fn,{control:V.control,name:ee,render:({field:Q})=>{let oe=G.type==="select"?"leadSelect":G.type,de=Rk[oe];return de?(0,Y.jsx)(Y.Fragment,{children:de({...G,...Q,control:V.control,key:ee,formId:e,conversationId:a,methods:V,disabled:!!u,placeholder:G.placeholder,options:G.options,choices:G.choices,comment:G.comment,changeHandler:(Re,_e)=>{Re&&V.setValue(ee,_e,{shouldDirty:!0,shouldValidate:!0})}})}):(0,Y.jsx)(Y.Fragment,{})}})]},G.id)})}),!n&&!u&&(0,Y.jsxs)(ca,{mt:2,children:[(0,Y.jsx)(ed,{type:be?"submit":"button",onClick:be?void 0:V.handleSubmit(we),disabled:W.length===0||!V.formState.isValid||V.formState.isSubmitting,loading:x.loading,size:"md",color:"primary",endDecorator:(0,Y.jsx)(tx.default,{sx:{fontSize:"sm"}}),sx:{width:"100%"},children:v("submit")}),(0,Y.jsx)(Pg,{anchorOrigin:{vertical:"bottom",horizontal:"right"},open:x.hasErrored,onClose:()=>E({hasErrored:!1}),color:"danger",children:v("submission_failed_try_again_later")})]}),!u&&(0,Y.jsx)(ca,{sx:{mt:2},children:(0,Y.jsx)(Z_,{})})]})})]})})})}):(0,Y.jsx)(wz,{...V,children:(0,Y.jsx)(ge,{...be?{onSubmit:G=>{G.preventDefault(),V.handleSubmit(we)(G)}}:{},style:{flex:1},children:(0,Y.jsx)(ad,{component:"div",variant:"outlined",color:"neutral",sx:{position:"relative",overflowY:"auto",width:"100%",maxHeight:"100%",flex:1,...p},children:!k.data&&k.isLoading?(0,Y.jsxs)(ca,{gap:1,sx:{textAlign:"left"},children:[(0,Y.jsx)(vg,{ratio:"21/9",children:(0,Y.jsx)(nd,{variant:"overlay",loading:!0,children:(0,Y.jsx)("img",{src:"",alt:""})})}),(0,Y.jsx)(ba,{children:v("loading_data")}),(0,Y.jsx)(ba,{children:(0,Y.jsx)(nd,{variant:"text",level:"h1",sx:{width:"100%"}})})]}):(0,Y.jsxs)(Ag,{sx:{textAlign:"center",alignItems:"center",position:"relative",width:"100%",display:"flex"},children:[(0,Y.jsx)(Rp,{children:x.isFormSubmitted&&!u&&(0,Y.jsx)(nm.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},children:(0,Y.jsxs)(ca,{spacing:2,sx:{p:4},justifyContent:"center",alignItems:"center",children:[(0,Y.jsx)(ax.default,{sx:{fontSize:42},color:"primary"}),(0,Y.jsx)(ba,{level:"h4",children:v("form_submitted_successfully")}),typeof I?.endScreen?.cta?.label=="string"&&(0,Y.jsx)("a",{href:I?.endScreen?.cta?.url||"#",target:I?.endScreen?.cta?.target,rel:"noopener noreferrer",children:(0,Y.jsx)(ed,{variant:"solid",size:"lg",color:"primary",children:I?.endScreen?.cta?.label})})]})})}),(0,Y.jsx)(Rp,{children:(!x.isFormSubmitted||u)&&(0,Y.jsxs)(nm.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},style:{width:"100%"},children:[I?.startScreen&&(()=>{let{title:G,description:ee}=I.startScreen;return typeof G!="string"&&typeof ee!="string"?null:(0,Y.jsxs)(ca,{sx:{mb:2},children:[typeof G=="string"&&(0,Y.jsx)(ba,{level:"h3",children:(()=>{let X=P(G,"name");return X&&!X.includes("templates.")&&X.trim().length>1&&!/^\w{1,3}$/.test(X)?X:G})()}),typeof ee=="string"&&(0,Y.jsx)(ba,{level:"body-sm",children:(()=>{let X=P(ee,"placeholder");return X&&!X.includes("templates.")&&X.trim().length>1&&!/^\w{1,3}$/.test(X)?X:ee})()})]})})(),(0,Y.jsx)(ca,{width:"100%",spacing:2,onChange:G=>G.stopPropagation(),children:W.map(G=>{let ee=F(G.key,G.id);if(typeof ee!="string"||!ee.trim())return null;let X=G.type==="select"||G.type==="leadSelect"||G.type==="multiple_choice",Oe=X?!1:n,K=G.type==="multiple_choice",U=G.placeholder??"";return(0,Y.jsxs)(ca,{spacing:1,sx:{display:"flex",flexDirection:"column"},children:[(0,Y.jsxs)(ca,{direction:"row",children:[(0,Y.jsx)(ba,{level:"title-md",children:G.name}),G.required&&(0,Y.jsx)("span",{className:"text-red-500 ml-0.5",children:"*"})]}),X&&Oe?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(Jt,{children:[(0,Y.jsx)(br,{children:G.key&&typeof G.key=="string"?P(`templates.${A}.fields.${G.key}.name`):G.name}),(0,Y.jsx)(Do,{value:G.key||"",disabled:!!u,onChange:(Q,oe)=>{G.key&&oe&&V.setValue(`draftConfig.fields.${G.id}.key`,oe,{shouldDirty:!0,shouldValidate:!0})},children:C.map(Q=>(0,Y.jsx)(Co,{value:Q,children:P(`templates.${A}.fields.${Q}.name`)},Q))})]}),Array.isArray(G.options)&&G.options.length>0&&(0,Y.jsxs)(Jt,{children:[(0,Y.jsx)(br,{children:b("labels.options")}),(0,Y.jsx)(fn,{control:V.control,name:`draftConfig.fields.${G.id}.options`,defaultValue:[],render:({field:Q})=>{let oe=Array.isArray(Q.value)?Q.value:[];return(0,Y.jsx)(Do,{multiple:K,placeholder:U,value:oe,disabled:!!u,onChange:(de,Re)=>Q.onChange(Re??[]),slotProps:{listbox:{ref:Q.ref}},children:G.options.map(de=>{let _e=de.startsWith("templates.")?de:Nk(T,G.key,de),Te=(()=>{let Ge=P(_e,"name");return Ge&&!Ge.includes("templates.")&&Ge.trim().length>1&&!/^\w{1,3}$/.test(Ge)?Ge:_e})()||de;return(0,Y.jsx)(Co,{value:de,children:Te},de)})})}})]})]}):G.type==="file"?(0,Y.jsx)(fn,{control:V.control,name:ee,render:({field:Q})=>{let oe=G.type,de=oe==="select"?"leadSelect":oe,Re=Rk[de];return Re?(0,Y.jsx)(Y.Fragment,{children:Re({...G,...Q,control:V.control,key:ee,formId:e,conversationId:a,methods:V,disabled:!!u,placeholder:G.placeholder,changeHandler:(_e,Te)=>{_e&&V.setValue(ee,Te,{shouldDirty:!0,shouldValidate:!0})}})}):(0,Y.jsx)(Y.Fragment,{})}}):(0,Y.jsx)(fn,{control:V.control,name:ee,render:({field:Q})=>{let oe=G.type==="select"?"leadSelect":G.type,de=Rk[oe];return de?(0,Y.jsx)(Y.Fragment,{children:de({...G,...Q,control:V.control,key:ee,formId:e,conversationId:a,methods:V,disabled:!!u,placeholder:G.placeholder,options:G.options,choices:G.choices,comment:G.comment,changeHandler:(Re,_e)=>{Re&&V.setValue(ee,_e,{shouldDirty:!0,shouldValidate:!0})}})}):(0,Y.jsx)(Y.Fragment,{})}})]},G.id)})}),!n&&!u&&(0,Y.jsxs)(ca,{mt:2,children:[(0,Y.jsx)(ed,{type:be?"submit":"button",onClick:be?void 0:V.handleSubmit(we),disabled:W.length===0||!V.formState.isValid||V.formState.isSubmitting,loading:x.loading,size:"md",color:"primary",endDecorator:(0,Y.jsx)(tx.default,{sx:{fontSize:"sm"}}),sx:{width:"100%"},children:v("submit")}),(0,Y.jsx)(Pg,{anchorOrigin:{vertical:"bottom",horizontal:"right"},open:x.hasErrored,onClose:()=>E({hasErrored:!1}),color:"danger",children:v("submission_failed_try_again_later")})]}),!u&&(0,Y.jsx)(ca,{sx:{mt:2},children:(0,Y.jsx)(Z_,{})})]})})]})})})})}var SK=(0,En.memo)(Coe);var jK=S(ne()),Yd="zappway-form-standard",Doe=XM({type:"form",widget:e=>(0,jK.jsx)(SK,{...e}),name:Yd}),ix=Doe;var Goe=e=>{customElements.get(Yd)||customElements.define(Yd,ix),lx(e);let a="FormStandard_"+(e.id||""),t=new ix({instanceId:a,onEnd:e.onEnd}),i=e.id?document.querySelector(`${Yd}[id="${e.id}"]`):document.querySelector(Yd);if(!i)throw new Error(`<${Yd}> element${`${e.id?` with ID ${e.id}`:""}`} not found.`);if(!window[a]){let n={...e.styles,...Array.from(i.style).reduce((o,r)=>(o[r]=i?.style.getPropertyValue(r),o),{})};dx({element:t,...e,styles:n}),window[a]=t,i.replaceWith(t)}return window[a]},xK=Goe;var Woe={initStandard:xK},Yca=Woe;export{Yca as default};
2880
2880
  /*! Bundled license information:
2881
2881
 
2882
2882
  react/cjs/react.production.min.js: