
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3da7cb3e-2199-5e91-9c43-51027468e585")}catch(e){}}();
import{r as Zy,R as Bu,a as p,c as is,g as qc,b as ht,d as Fp}from"./vendor-Bsk9EUbx.js";var Za={exports:{}},Wn={};/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var zu;function Jy(){if(zu)return Wn;zu=1;var e=Zy(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function a(i,c,l){var u,d={},f=null,h=null;l!==void 0&&(f=""+l),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(h=c.ref);for(u in c)n.call(c,u)&&!s.hasOwnProperty(u)&&(d[u]=c[u]);if(i&&i.defaultProps)for(u in c=i.defaultProps,c)d[u]===void 0&&(d[u]=c[u]);return{$$typeof:t,type:i,key:f,ref:h,props:d,_owner:o.current}}return Wn.Fragment=r,Wn.jsx=a,Wn.jsxs=a,Wn}var Lu;function Qy(){return Lu||(Lu=1,Za.exports=Jy()),Za.exports}var y=Qy();function ev(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function tv(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var rv=function(){function e(r){var n=this;this._insertTag=function(o){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,s),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(tv(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=ev(o);try{s.insertRule(n,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Ue="-ms-",Us="-moz-",he="-webkit-",Dp="comm",Kc="rule",Xc="decl",nv="@import",jp="@keyframes",ov="@layer",sv=Math.abs,ua=String.fromCharCode,av=Object.assign;function iv(e,t){return We(e,0)^45?(((t<<2^We(e,0))<<2^We(e,1))<<2^We(e,2))<<2^We(e,3):0}function Np(e){return e.trim()}function cv(e,t){return(e=t.exec(e))?e[0]:e}function me(e,t,r){return e.replace(t,r)}function qi(e,t){return e.indexOf(t)}function We(e,t){return e.charCodeAt(t)|0}function Co(e,t,r){return e.slice(t,r)}function Mt(e){return e.length}function Yc(e){return e.length}function cs(e,t){return t.push(e),e}function lv(e,t){return e.map(t).join("")}var da=1,Sn=1,Bp=0,nt=0,Ne=0,In="";function fa(e,t,r,n,o,s,a){return{value:e,root:t,parent:r,type:n,props:o,children:s,line:da,column:Sn,length:a,return:""}}function Hn(e,t){return av(fa("",null,null,"",null,null,0),e,{length:-e.length},t)}function uv(){return Ne}function dv(){return Ne=nt>0?We(In,--nt):0,Sn--,Ne===10&&(Sn=1,da--),Ne}function ct(){return Ne=nt<Bp?We(In,nt++):0,Sn++,Ne===10&&(Sn=1,da++),Ne}function jt(){return We(In,nt)}function Ts(){return nt}function zo(e,t){return Co(In,e,t)}function _o(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 zp(e){return da=Sn=1,Bp=Mt(In=e),nt=0,[]}function Lp(e){return In="",e}function As(e){return Np(zo(nt-1,Ki(e===91?e+2:e===40?e+1:e)))}function fv(e){for(;(Ne=jt())&&Ne<33;)ct();return _o(e)>2||_o(Ne)>3?"":" "}function pv(e,t){for(;--t&&ct()&&!(Ne<48||Ne>102||Ne>57&&Ne<65||Ne>70&&Ne<97););return zo(e,Ts()+(t<6&&jt()==32&&ct()==32))}function Ki(e){for(;ct();)switch(Ne){case e:return nt;case 34:case 39:e!==34&&e!==39&&Ki(Ne);break;case 40:e===41&&Ki(e);break;case 92:ct();break}return nt}function hv(e,t){for(;ct()&&e+Ne!==57;)if(e+Ne===84&&jt()===47)break;return"/*"+zo(t,nt-1)+"*"+ua(e===47?e:ct())}function mv(e){for(;!_o(jt());)ct();return zo(e,nt)}function gv(e){return Lp(Es("",null,null,null,[""],e=zp(e),0,[0],e))}function Es(e,t,r,n,o,s,a,i,c){for(var l=0,u=0,d=a,f=0,h=0,g=0,m=1,b=1,S=1,v=0,x="",C=o,k=s,A=n,T=x;b;)switch(g=v,v=ct()){case 40:if(g!=108&&We(T,d-1)==58){qi(T+=me(As(v),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:T+=As(v);break;case 9:case 10:case 13:case 32:T+=fv(g);break;case 92:T+=pv(Ts()-1,7);continue;case 47:switch(jt()){case 42:case 47:cs(bv(hv(ct(),Ts()),t,r),c);break;default:T+="/"}break;case 123*m:i[l++]=Mt(T)*S;case 125*m:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+u:S==-1&&(T=me(T,/\f/g,"")),h>0&&Mt(T)-d&&cs(h>32?Wu(T+";",n,r,d-1):Wu(me(T," ","")+";",n,r,d-2),c);break;case 59:T+=";";default:if(cs(A=Vu(T,t,r,l,u,o,i,x,C=[],k=[],d),s),v===123)if(u===0)Es(T,t,A,A,C,s,d,i,k);else switch(f===99&&We(T,3)===110?100:f){case 100:case 108:case 109:case 115:Es(e,A,A,n&&cs(Vu(e,A,A,0,0,o,i,x,o,C=[],d),k),o,k,d,i,n?C:k);break;default:Es(T,A,A,A,[""],k,0,i,k)}}l=u=h=0,m=S=1,x=T="",d=a;break;case 58:d=1+Mt(T),h=g;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&dv()==125)continue}switch(T+=ua(v),v*m){case 38:S=u>0?1:(T+="\f",-1);break;case 44:i[l++]=(Mt(T)-1)*S,S=1;break;case 64:jt()===45&&(T+=As(ct())),f=jt(),u=d=Mt(x=T+=mv(Ts())),v++;break;case 45:g===45&&Mt(T)==2&&(m=0)}}return s}function Vu(e,t,r,n,o,s,a,i,c,l,u){for(var d=o-1,f=o===0?s:[""],h=Yc(f),g=0,m=0,b=0;g<n;++g)for(var S=0,v=Co(e,d+1,d=sv(m=a[g])),x=e;S<h;++S)(x=Np(m>0?f[S]+" "+v:me(v,/&\f/g,f[S])))&&(c[b++]=x);return fa(e,t,r,o===0?Kc:i,c,l,u)}function bv(e,t,r){return fa(e,t,r,Dp,ua(uv()),Co(e,2,-2),0)}function Wu(e,t,r,n){return fa(e,t,r,Xc,Co(e,0,n),Co(e,n+1,-1),n)}function ln(e,t){for(var r="",n=Yc(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function yv(e,t,r,n){switch(e.type){case ov:if(e.children.length)break;case nv:case Xc:return e.return=e.return||e.value;case Dp:return"";case jp:return e.return=e.value+"{"+ln(e.children,n)+"}";case Kc:e.value=e.props.join(",")}return Mt(r=ln(e.children,n))?e.return=e.value+"{"+r+"}":""}function vv(e){var t=Yc(e);return function(r,n,o,s){for(var a="",i=0;i<t;i++)a+=e[i](r,n,o,s)||"";return a}}function xv(e){return function(t){t.root||(t=t.return)&&e(t)}}var Hu=function(t){var r=new WeakMap;return function(n){if(r.has(n))return r.get(n);var o=t(n);return r.set(n,o),o}};function Vp(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Sv=function(t,r,n){for(var o=0,s=0;o=s,s=jt(),o===38&&s===12&&(r[n]=1),!_o(s);)ct();return zo(t,nt)},wv=function(t,r){var n=-1,o=44;do switch(_o(o)){case 0:o===38&&jt()===12&&(r[n]=1),t[n]+=Sv(nt-1,r,n);break;case 2:t[n]+=As(o);break;case 4:if(o===44){t[++n]=jt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=ua(o)}while(o=ct());return t},kv=function(t,r){return Lp(wv(zp(t),r))},Uu=new WeakMap,Cv=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Uu.get(n))&&!o){Uu.set(t,!0);for(var s=[],a=kv(r,s),i=n.props,c=0,l=0;c<a.length;c++)for(var u=0;u<i.length;u++,l++)t.props[l]=s[c]?a[c].replace(/&\f/g,i[u]):i[u]+" "+a[c]}}},_v=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Wp(e,t){switch(iv(e,t)){case 5103:return he+"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 he+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return he+e+Us+e+Ue+e+e;case 6828:case 4268:return he+e+Ue+e+e;case 6165:return he+e+Ue+"flex-"+e+e;case 5187:return he+e+me(e,/(\w+).+(:[^]+)/,he+"box-$1$2"+Ue+"flex-$1$2")+e;case 5443:return he+e+Ue+"flex-item-"+me(e,/flex-|-self/,"")+e;case 4675:return he+e+Ue+"flex-line-pack"+me(e,/align-content|flex-|-self/,"")+e;case 5548:return he+e+Ue+me(e,"shrink","negative")+e;case 5292:return he+e+Ue+me(e,"basis","preferred-size")+e;case 6060:return he+"box-"+me(e,"-grow","")+he+e+Ue+me(e,"grow","positive")+e;case 4554:return he+me(e,/([^-])(transform)/g,"$1"+he+"$2")+e;case 6187:return me(me(me(e,/(zoom-|grab)/,he+"$1"),/(image-set)/,he+"$1"),e,"")+e;case 5495:case 3959:return me(e,/(image-set\([^]*)/,he+"$1$`$1");case 4968:return me(me(e,/(.+:)(flex-)?(.*)/,he+"box-pack:$3"+Ue+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+he+e+e;case 4095:case 3583:case 4068:case 2532:return me(e,/(.+)-inline(.+)/,he+"$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(Mt(e)-1-t>6)switch(We(e,t+1)){case 109:if(We(e,t+4)!==45)break;case 102:return me(e,/(.+:)(.+)-([^]+)/,"$1"+he+"$2-$3$1"+Us+(We(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~qi(e,"stretch")?Wp(me(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(We(e,t+1)!==115)break;case 6444:switch(We(e,Mt(e)-3-(~qi(e,"!important")&&10))){case 107:return me(e,":",":"+he)+e;case 101:return me(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+he+(We(e,14)===45?"inline-":"")+"box$3$1"+he+"$2$3$1"+Ue+"$2box$3")+e}break;case 5936:switch(We(e,t+11)){case 114:return he+e+Ue+me(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return he+e+Ue+me(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return he+e+Ue+me(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return he+e+Ue+e+e}return e}var Pv=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Xc:t.return=Wp(t.value,t.length);break;case jp:return ln([Hn(t,{value:me(t.value,"@","@"+he)})],o);case Kc:if(t.length)return lv(t.props,function(s){switch(cv(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ln([Hn(t,{props:[me(s,/:(read-\w+)/,":"+Us+"$1")]})],o);case"::placeholder":return ln([Hn(t,{props:[me(s,/:(plac\w+)/,":"+he+"input-$1")]}),Hn(t,{props:[me(s,/:(plac\w+)/,":"+Us+"$1")]}),Hn(t,{props:[me(s,/:(plac\w+)/,Ue+"input-$1")]})],o)}return""})}},Tv=[Pv],Av=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var b=m.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||Tv,s={},a,i=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var b=m.getAttribute("data-emotion").split(" "),S=1;S<b.length;S++)s[b[S]]=!0;i.push(m)});var c,l=[Cv,_v];{var u,d=[yv,xv(function(m){u.insert(m)})],f=vv(l.concat(o,d)),h=function(b){return ln(gv(b),f)};c=function(b,S,v,x){u=v,h(b?b+"{"+S.styles+"}":S.styles),x&&(g.inserted[S.name]=!0)}}var g={key:r,sheet:new rv({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:c};return g.sheet.hydrate(i),g};function Mr(){return Mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mr.apply(null,arguments)}var Ja={exports:{}},ye={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Gu;function Ev(){if(Gu)return ye;Gu=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,i=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(k){if(typeof k=="object"&&k!==null){var A=k.$$typeof;switch(A){case t:switch(k=k.type,k){case c:case l:case n:case s:case o:case d:return k;default:switch(k=k&&k.$$typeof,k){case i:case u:case g:case h:case a:return k;default:return A}}case r:return A}}}function C(k){return x(k)===l}return ye.AsyncMode=c,ye.ConcurrentMode=l,ye.ContextConsumer=i,ye.ContextProvider=a,ye.Element=t,ye.ForwardRef=u,ye.Fragment=n,ye.Lazy=g,ye.Memo=h,ye.Portal=r,ye.Profiler=s,ye.StrictMode=o,ye.Suspense=d,ye.isAsyncMode=function(k){return C(k)||x(k)===c},ye.isConcurrentMode=C,ye.isContextConsumer=function(k){return x(k)===i},ye.isContextProvider=function(k){return x(k)===a},ye.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===t},ye.isForwardRef=function(k){return x(k)===u},ye.isFragment=function(k){return x(k)===n},ye.isLazy=function(k){return x(k)===g},ye.isMemo=function(k){return x(k)===h},ye.isPortal=function(k){return x(k)===r},ye.isProfiler=function(k){return x(k)===s},ye.isStrictMode=function(k){return x(k)===o},ye.isSuspense=function(k){return x(k)===d},ye.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===n||k===l||k===s||k===o||k===d||k===f||typeof k=="object"&&k!==null&&(k.$$typeof===g||k.$$typeof===h||k.$$typeof===a||k.$$typeof===i||k.$$typeof===u||k.$$typeof===b||k.$$typeof===S||k.$$typeof===v||k.$$typeof===m)},ye.typeOf=x,ye}var qu;function Rv(){return qu||(qu=1,Ja.exports=Ev()),Ja.exports}var Qa,Ku;function $v(){if(Ku)return Qa;Ku=1;var e=Rv(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=n,s[e.Memo]=o;function a(g){return e.isMemo(g)?o:s[g.$$typeof]||t}var i=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;function h(g,m,b){if(typeof m!="string"){if(f){var S=d(m);S&&S!==f&&h(g,S,b)}var v=c(m);l&&(v=v.concat(l(m)));for(var x=a(g),C=a(m),k=0;k<v.length;++k){var A=v[k];if(!r[A]&&!(b&&b[A])&&!(C&&C[A])&&!(x&&x[A])){var T=u(m,A);try{i(g,A,T)}catch{}}}}return g}return Qa=h,Qa}$v();var Iv=!0;function Hp(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var Zc=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||Iv===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Jc=function(t,r,n){Zc(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function Mv(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Ov={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},Fv=/[A-Z]|^ms/g,Dv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Up=function(t){return t.charCodeAt(1)===45},Xu=function(t){return t!=null&&typeof t!="boolean"},ei=Vp(function(e){return Up(e)?e:e.replace(Fv,"-$&").toLowerCase()}),Yu=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Dv,function(n,o,s){return Ot={name:o,styles:s,next:Ot},o})}return Ov[t]!==1&&!Up(t)&&typeof r=="number"&&r!==0?r+"px":r};function Po(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return Ot={name:o.name,styles:o.styles,next:Ot},o.name;var s=r;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)Ot={name:a.name,styles:a.styles,next:Ot},a=a.next;var i=s.styles+";";return i}return jv(e,t,r)}case"function":{if(e!==void 0){var c=Ot,l=r(e);return Ot=c,Po(e,t,l)}break}}var u=r;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function jv(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Po(e,t,r[o])+";";else for(var s in r){var a=r[s];if(typeof a!="object"){var i=a;t!=null&&t[i]!==void 0?n+=s+"{"+t[i]+"}":Xu(i)&&(n+=ei(s)+":"+Yu(s,i)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)Xu(a[c])&&(n+=ei(s)+":"+Yu(s,a[c])+";");else{var l=Po(e,t,a);switch(s){case"animation":case"animationName":{n+=ei(s)+":"+l+";";break}default:n+=s+"{"+l+"}"}}}return n}var Zu=/label:\s*([^\s;{]+)\s*(;|$)/g,Ot;function pa(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";Ot=void 0;var s=e[0];if(s==null||s.raw===void 0)n=!1,o+=Po(r,t,s);else{var a=s;o+=a[0]}for(var i=1;i<e.length;i++)if(o+=Po(r,t,e[i]),n){var c=s;o+=c[i]}Zu.lastIndex=0;for(var l="",u;(u=Zu.exec(o))!==null;)l+="-"+u[1];var d=Mv(o)+l;return{name:d,styles:o,next:Ot}}var Nv=function(t){return t()},Gp=Bu.useInsertionEffect?Bu.useInsertionEffect:!1,qp=Gp||Nv,Ju=Gp||p.useLayoutEffect,Kp=p.createContext(typeof HTMLElement<"u"?Av({key:"css"}):null);Kp.Provider;var ha=function(t){return p.forwardRef(function(r,n){var o=p.useContext(Kp);return t(r,o,n)})},wn=p.createContext({}),Bv=function(t,r){if(typeof r=="function"){var n=r(t);return n}return Mr({},t,r)},zv=Hu(function(e){return Hu(function(t){return Bv(e,t)})}),Lv=function(t){var r=p.useContext(wn);return t.theme!==r&&(r=zv(r)(t.theme)),p.createElement(wn.Provider,{value:r},t.children)},Qc={}.hasOwnProperty,Xi="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Vv=function(t,r){var n={};for(var o in r)Qc.call(r,o)&&(n[o]=r[o]);return n[Xi]=t,n},Wv=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Zc(r,n,o),qp(function(){return Jc(r,n,o)}),null},Hv=ha(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Xi],s=[n],a="";typeof e.className=="string"?a=Hp(t.registered,s,e.className):e.className!=null&&(a=e.className+" ");var i=pa(s,void 0,p.useContext(wn));a+=t.key+"-"+i.name;var c={};for(var l in e)Qc.call(e,l)&&l!=="css"&&l!==Xi&&(c[l]=e[l]);return c.className=a,r&&(c.ref=r),p.createElement(p.Fragment,null,p.createElement(Wv,{cache:t,serialized:i,isStringTag:typeof o=="string"}),p.createElement(o,c))}),Uv=Hv;function ma(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function Gv(){return!!(globalThis!=null&&globalThis.document)}function Xp(e){return e.parentElement&&Xp(e.parentElement)?!0:e.hidden}function qv(e){const t=e.getAttribute("contenteditable");return t!=="false"&&t!=null}function Kv(e){return!!e.getAttribute("disabled")||!!e.getAttribute("aria-disabled")}function Xv(e){var t;return((t=Yp(e))==null?void 0:t.defaultView)??window}function Yp(e){return ma(e)?e.ownerDocument:document}function Yv(e){return Yp(e).activeElement}function Zv(e,...t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");const r={...e};for(const n of t)if(n!=null)for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(o in r&&delete r[o],r[o]=n[o]);return r}const V=e=>e?"":void 0,un=e=>e?!0:void 0;function Yi(e){return Array.isArray(e)}function je(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Yi(e)}function Jv(e){const t=e==null?0:e.length;return t?e[t-1]:void 0}function Qv(e){const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}function Zi(e){if(e==null)return e;const{unitless:t}=Qv(e);return t||typeof e=="number"?`${e}px`:e}const Zp=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,el=e=>Object.fromEntries(Object.entries(e).sort(Zp));function Qu(e){const t=el(e);return Object.assign(Object.values(t),t)}function e0(e){const t=Object.keys(el(e));return new Set(t)}function ed(e){if(!e)return e;e=Zi(e)??e;const t=-.02;return typeof e=="number"?`${e+t}`:e.replace(/(\d+\.?\d*)/u,r=>`${parseFloat(r)+t}`)}function Qn(e,t){const r=["@media screen"];return e&&r.push("and",`(min-width: ${Zi(e)})`),t&&r.push("and",`(max-width: ${Zi(t)})`),r.join(" ")}function t0(e){if(!e)return null;e.base=e.base??"0px";const t=Qu(e),r=Object.entries(e).sort(Zp).map(([s,a],i,c)=>{let[,l]=c[i+1]??[];return l=parseFloat(l)>0?ed(l):void 0,{_minW:ed(a),breakpoint:s,minW:a,maxW:l,maxWQuery:Qn(null,l),minWQuery:Qn(a),minMaxQuery:Qn(a,l)}}),n=e0(e),o=Array.from(n.values());return{keys:n,normalized:t,isResponsive(s){const a=Object.keys(s);return a.length>0&&a.every(i=>n.has(i))},asObject:el(e),asArray:Qu(e),details:r,get(s){return r.find(a=>a.breakpoint===s)},media:[null,...t.map(s=>Qn(s)).slice(1)],toArrayValue(s){if(!je(s))throw new Error("toArrayValue: value must be an object");const a=o.map(i=>s[i]??null);for(;Jv(a)===null;)a.pop();return a},toObjectValue(s){if(!Array.isArray(s))throw new Error("toObjectValue: value must be an array");return s.reduce((a,i,c)=>{const l=o[c];return l!=null&&i!=null&&(a[l]=i),a},{})}}}function ga(...e){return function(...r){e.forEach(n=>n==null?void 0:n(...r))}}function H(...e){return function(r){e.some(n=>(n==null||n(r),r==null?void 0:r.defaultPrevented))}}function Mn(e){return p.Children.toArray(e).filter(t=>p.isValidElement(t))}function On(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function r0(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function ae(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:s,defaultValue:a}=e,i=p.createContext(a);i.displayName=t;function c(){var u;const l=p.useContext(i);if(!l&&r){const d=new Error(s??r0(n,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,c),d}return l}return[i.Provider,c,i]}const j=(...e)=>e.filter(Boolean).join(" "),Jp=e=>e.hasAttribute("tabindex"),n0=e=>Jp(e)&&e.tabIndex===-1;function Gs(e){if(!ma(e)||Xp(e)||Kv(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():qv(e)?!0:Jp(e)}function o0(e){return e?ma(e)&&Gs(e)&&!n0(e):!1}const s0=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],a0=s0.join(),i0=e=>e.offsetWidth>0&&e.offsetHeight>0;function Qp(e){const t=Array.from(e.querySelectorAll(a0));return t.unshift(e),t.filter(r=>Gs(r)&&i0(r))}function c0(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n<o.length&&e;n+=1)e=e[o[n]];return e===void 0?r:e}const l0=e=>{const t=new WeakMap;return(n,o,s,a)=>{if(typeof n>"u")return e(n,o,s);t.has(n)||t.set(n,new Map);const i=t.get(n);if(i.has(o))return i.get(o);const c=e(n,o,s,a);return i.set(o,c),c}},eh=l0(c0),u0=e=>e.default||e;function tl(e){const{wasSelected:t,enabled:r,isSelected:n,mode:o="unmount"}=e;return!!(!r||n||o==="keepMounted"&&t)}function Fn(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}function th(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}const rh=Object.freeze(["base","sm","md","lg","xl","2xl"]);function ba(e,t){return Array.isArray(e)?e.map(r=>r===null?null:t(r)):je(e)?Object.keys(e).reduce((r,n)=>(r[n]=t(e[n]),r),{}):e!=null?t(e):null}function d0(e,t=rh){const r={};return e.forEach((n,o)=>{const s=t[o];n!=null&&(r[s]=n)}),r}const f0=e=>typeof e=="function";function He(e,...t){return f0(e)?e(...t):e}function p0(e){const t=e.ownerDocument.defaultView||window,{overflow:r,overflowX:n,overflowY:o}=t.getComputedStyle(e);return/auto|scroll|overlay|hidden/.test(r+o+n)}function h0(e){return e.localName==="html"?e:e.assignedSlot||e.parentElement||e.ownerDocument.documentElement}function nh(e){return["html","body","#document"].includes(e.localName)?e.ownerDocument.body:ma(e)&&p0(e)?e:nh(h0(e))}function oh(e,t){const r={},n={};for(const[o,s]of Object.entries(e))t.includes(o)?r[o]=s:n[o]=s;return[r,n]}function m0(e,...t){const r=Object.getOwnPropertyDescriptors(e),n=Object.keys(r),o=a=>{const i={};for(let c=0;c<a.length;c++){const l=a[c];r[l]&&(Object.defineProperty(i,l,r[l]),delete r[l])}return i},s=a=>o(Array.isArray(a)?a:n.filter(a));return t.map(s).concat(o(n))}function td(e,t,r={}){const{stop:n,getKey:o}=r;function s(a,i=[]){if(je(a)||Array.isArray(a)){const c={};for(const[l,u]of Object.entries(a)){const d=(o==null?void 0:o(l))??l,f=[...i,d];if(n!=null&&n(a,f))return t(a,i);c[d]=s(u,f)}return c}return t(a,i)}return s(e)}const Lo=e=>{const{condition:t,message:r}=e};var eo={exports:{}};eo.exports;var rd;function g0(){return rd||(rd=1,function(e,t){var r=200,n="__lodash_hash_undefined__",o=800,s=16,a=9007199254740991,i="[object Arguments]",c="[object Array]",l="[object AsyncFunction]",u="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",g="[object GeneratorFunction]",m="[object Map]",b="[object Number]",S="[object Null]",v="[object Object]",x="[object Proxy]",C="[object RegExp]",k="[object Set]",A="[object String]",T="[object Undefined]",$="[object WeakMap]",M="[object ArrayBuffer]",I="[object DataView]",D="[object Float32Array]",X="[object Float64Array]",L="[object Int8Array]",q="[object Int16Array]",Z="[object Int32Array]",U="[object Uint8Array]",F="[object Uint8ClampedArray]",ee="[object Uint16Array]",te="[object Uint32Array]",le=/[\\^$.*+?()[\]{}|]/g,ke=/^\[object .+?Constructor\]$/,xe=/^(?:0|[1-9]\d*)$/,N={};N[D]=N[X]=N[L]=N[q]=N[Z]=N[U]=N[F]=N[ee]=N[te]=!0,N[i]=N[c]=N[M]=N[u]=N[I]=N[d]=N[f]=N[h]=N[m]=N[b]=N[v]=N[C]=N[k]=N[A]=N[$]=!1;var K=typeof is=="object"&&is&&is.Object===Object&&is,ne=typeof self=="object"&&self&&self.Object===Object&&self,oe=K||ne||Function("return this")(),Ce=t&&!t.nodeType&&t,_e=Ce&&!0&&e&&!e.nodeType&&e,qe=_e&&_e.exports===Ce,Je=qe&&K.process,J=function(){try{var w=_e&&_e.require&&_e.require("util").types;return w||Je&&Je.binding&&Je.binding("util")}catch{}}(),re=J&&J.isTypedArray;function $e(w,P,E){switch(E.length){case 0:return w.call(P);case 1:return w.call(P,E[0]);case 2:return w.call(P,E[0],E[1]);case 3:return w.call(P,E[0],E[1],E[2])}return w.apply(P,E)}function xt(w,P){for(var E=-1,B=Array(w);++E<w;)B[E]=P(E);return B}function Q(w){return function(P){return w(P)}}function ve(w,P){return w==null?void 0:w[P]}function z(w,P){return function(E){return w(P(E))}}var ue=Array.prototype,de=Function.prototype,Se=Object.prototype,Ke=oe["__core-js_shared__"],St=de.toString,at=Se.hasOwnProperty,nr=function(){var w=/[^.]+$/.exec(Ke&&Ke.keys&&Ke.keys.IE_PROTO||"");return w?"Symbol(src)_1."+w:""}(),Bn=Se.toString,es=St.call(Object),ts=RegExp("^"+St.call(at).replace(le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gr=qe?oe.Buffer:void 0,ku=oe.Symbol,Cu=oe.Uint8Array;gr&&gr.allocUnsafe;var _u=z(Object.getPrototypeOf,Object),Pu=Object.create,qb=Se.propertyIsEnumerable,Kb=ue.splice,br=ku?ku.toStringTag:void 0,rs=function(){try{var w=Wa(Object,"defineProperty");return w({},"",{}),w}catch{}}(),Xb=gr?gr.isBuffer:void 0,Tu=Math.max,Yb=Date.now,Au=Wa(oe,"Map"),zn=Wa(Object,"create"),Zb=function(){function w(){}return function(P){if(!vr(P))return{};if(Pu)return Pu(P);w.prototype=P;var E=new w;return w.prototype=void 0,E}}();function yr(w){var P=-1,E=w==null?0:w.length;for(this.clear();++P<E;){var B=w[P];this.set(B[0],B[1])}}function Jb(){this.__data__=zn?zn(null):{},this.size=0}function Qb(w){var P=this.has(w)&&delete this.__data__[w];return this.size-=P?1:0,P}function ey(w){var P=this.__data__;if(zn){var E=P[w];return E===n?void 0:E}return at.call(P,w)?P[w]:void 0}function ty(w){var P=this.__data__;return zn?P[w]!==void 0:at.call(P,w)}function ry(w,P){var E=this.__data__;return this.size+=this.has(w)?0:1,E[w]=zn&&P===void 0?n:P,this}yr.prototype.clear=Jb,yr.prototype.delete=Qb,yr.prototype.get=ey,yr.prototype.has=ty,yr.prototype.set=ry;function Ht(w){var P=-1,E=w==null?0:w.length;for(this.clear();++P<E;){var B=w[P];this.set(B[0],B[1])}}function ny(){this.__data__=[],this.size=0}function oy(w){var P=this.__data__,E=ns(P,w);if(E<0)return!1;var B=P.length-1;return E==B?P.pop():Kb.call(P,E,1),--this.size,!0}function sy(w){var P=this.__data__,E=ns(P,w);return E<0?void 0:P[E][1]}function ay(w){return ns(this.__data__,w)>-1}function iy(w,P){var E=this.__data__,B=ns(E,w);return B<0?(++this.size,E.push([w,P])):E[B][1]=P,this}Ht.prototype.clear=ny,Ht.prototype.delete=oy,Ht.prototype.get=sy,Ht.prototype.has=ay,Ht.prototype.set=iy;function Vr(w){var P=-1,E=w==null?0:w.length;for(this.clear();++P<E;){var B=w[P];this.set(B[0],B[1])}}function cy(){this.size=0,this.__data__={hash:new yr,map:new(Au||Ht),string:new yr}}function ly(w){var P=ss(this,w).delete(w);return this.size-=P?1:0,P}function uy(w){return ss(this,w).get(w)}function dy(w){return ss(this,w).has(w)}function fy(w,P){var E=ss(this,w),B=E.size;return E.set(w,P),this.size+=E.size==B?0:1,this}Vr.prototype.clear=cy,Vr.prototype.delete=ly,Vr.prototype.get=uy,Vr.prototype.has=dy,Vr.prototype.set=fy;function Wr(w){var P=this.__data__=new Ht(w);this.size=P.size}function py(){this.__data__=new Ht,this.size=0}function hy(w){var P=this.__data__,E=P.delete(w);return this.size=P.size,E}function my(w){return this.__data__.get(w)}function gy(w){return this.__data__.has(w)}function by(w,P){var E=this.__data__;if(E instanceof Ht){var B=E.__data__;if(!Au||B.length<r-1)return B.push([w,P]),this.size=++E.size,this;E=this.__data__=new Vr(B)}return E.set(w,P),this.size=E.size,this}Wr.prototype.clear=py,Wr.prototype.delete=hy,Wr.prototype.get=my,Wr.prototype.has=gy,Wr.prototype.set=by;function yy(w,P){var E=Ga(w),B=!E&&Ua(w),ie=!E&&!B&&Mu(w),we=!E&&!B&&!ie&&Fu(w),Ee=E||B||ie||we,fe=Ee?xt(w.length,String):[],Re=fe.length;for(var wt in w)Ee&&(wt=="length"||ie&&(wt=="offset"||wt=="parent")||we&&(wt=="buffer"||wt=="byteLength"||wt=="byteOffset")||$u(wt,Re))||fe.push(wt);return fe}function La(w,P,E){(E!==void 0&&!as(w[P],E)||E===void 0&&!(P in w))&&Va(w,P,E)}function vy(w,P,E){var B=w[P];(!(at.call(w,P)&&as(B,E))||E===void 0&&!(P in w))&&Va(w,P,E)}function ns(w,P){for(var E=w.length;E--;)if(as(w[E][0],P))return E;return-1}function Va(w,P,E){P=="__proto__"&&rs?rs(w,P,{configurable:!0,enumerable:!0,value:E,writable:!0}):w[P]=E}var xy=My();function os(w){return w==null?w===void 0?T:S:br&&br in Object(w)?Oy(w):zy(w)}function Eu(w){return Ln(w)&&os(w)==i}function Sy(w){if(!vr(w)||Ny(w))return!1;var P=Ka(w)?ts:ke;return P.test(Hy(w))}function wy(w){return Ln(w)&&Ou(w.length)&&!!N[os(w)]}function ky(w){if(!vr(w))return By(w);var P=Iu(w),E=[];for(var B in w)B=="constructor"&&(P||!at.call(w,B))||E.push(B);return E}function Ru(w,P,E,B,ie){w!==P&&xy(P,function(we,Ee){if(ie||(ie=new Wr),vr(we))Cy(w,P,Ee,E,Ru,B,ie);else{var fe=B?B(Ha(w,Ee),we,Ee+"",w,P,ie):void 0;fe===void 0&&(fe=we),La(w,Ee,fe)}},Du)}function Cy(w,P,E,B,ie,we,Ee){var fe=Ha(w,E),Re=Ha(P,E),wt=Ee.get(Re);if(wt){La(w,E,wt);return}var it=we?we(fe,Re,E+"",w,P,Ee):void 0,Vn=it===void 0;if(Vn){var Xa=Ga(Re),Ya=!Xa&&Mu(Re),Nu=!Xa&&!Ya&&Fu(Re);it=Re,Xa||Ya||Nu?Ga(fe)?it=fe:Uy(fe)?it=Ry(fe):Ya?(Vn=!1,it=Ty(Re)):Nu?(Vn=!1,it=Ey(Re)):it=[]:Gy(Re)||Ua(Re)?(it=fe,Ua(fe)?it=qy(fe):(!vr(fe)||Ka(fe))&&(it=Fy(Re))):Vn=!1}Vn&&(Ee.set(Re,it),ie(it,Re,B,we,Ee),Ee.delete(Re)),La(w,E,it)}function _y(w,P){return Vy(Ly(w,P,ju),w+"")}var Py=rs?function(w,P){return rs(w,"toString",{configurable:!0,enumerable:!1,value:Xy(P),writable:!0})}:ju;function Ty(w,P){return w.slice()}function Ay(w){var P=new w.constructor(w.byteLength);return new Cu(P).set(new Cu(w)),P}function Ey(w,P){var E=Ay(w.buffer);return new w.constructor(E,w.byteOffset,w.length)}function Ry(w,P){var E=-1,B=w.length;for(P||(P=Array(B));++E<B;)P[E]=w[E];return P}function $y(w,P,E,B){var ie=!E;E||(E={});for(var we=-1,Ee=P.length;++we<Ee;){var fe=P[we],Re=void 0;Re===void 0&&(Re=w[fe]),ie?Va(E,fe,Re):vy(E,fe,Re)}return E}function Iy(w){return _y(function(P,E){var B=-1,ie=E.length,we=ie>1?E[ie-1]:void 0,Ee=ie>2?E[2]:void 0;for(we=w.length>3&&typeof we=="function"?(ie--,we):void 0,Ee&&Dy(E[0],E[1],Ee)&&(we=ie<3?void 0:we,ie=1),P=Object(P);++B<ie;){var fe=E[B];fe&&w(P,fe,B,we)}return P})}function My(w){return function(P,E,B){for(var ie=-1,we=Object(P),Ee=B(P),fe=Ee.length;fe--;){var Re=Ee[++ie];if(E(we[Re],Re,we)===!1)break}return P}}function ss(w,P){var E=w.__data__;return jy(P)?E[typeof P=="string"?"string":"hash"]:E.map}function Wa(w,P){var E=ve(w,P);return Sy(E)?E:void 0}function Oy(w){var P=at.call(w,br),E=w[br];try{w[br]=void 0;var B=!0}catch{}var ie=Bn.call(w);return B&&(P?w[br]=E:delete w[br]),ie}function Fy(w){return typeof w.constructor=="function"&&!Iu(w)?Zb(_u(w)):{}}function $u(w,P){var E=typeof w;return P=P??a,!!P&&(E=="number"||E!="symbol"&&xe.test(w))&&w>-1&&w%1==0&&w<P}function Dy(w,P,E){if(!vr(E))return!1;var B=typeof P;return(B=="number"?qa(E)&&$u(P,E.length):B=="string"&&P in E)?as(E[P],w):!1}function jy(w){var P=typeof w;return P=="string"||P=="number"||P=="symbol"||P=="boolean"?w!=="__proto__":w===null}function Ny(w){return!!nr&&nr in w}function Iu(w){var P=w&&w.constructor,E=typeof P=="function"&&P.prototype||Se;return w===E}function By(w){var P=[];if(w!=null)for(var E in Object(w))P.push(E);return P}function zy(w){return Bn.call(w)}function Ly(w,P,E){return P=Tu(P===void 0?w.length-1:P,0),function(){for(var B=arguments,ie=-1,we=Tu(B.length-P,0),Ee=Array(we);++ie<we;)Ee[ie]=B[P+ie];ie=-1;for(var fe=Array(P+1);++ie<P;)fe[ie]=B[ie];return fe[P]=E(Ee),$e(w,this,fe)}}function Ha(w,P){if(!(P==="constructor"&&typeof w[P]=="function")&&P!="__proto__")return w[P]}var Vy=Wy(Py);function Wy(w){var P=0,E=0;return function(){var B=Yb(),ie=s-(B-E);if(E=B,ie>0){if(++P>=o)return arguments[0]}else P=0;return w.apply(void 0,arguments)}}function Hy(w){if(w!=null){try{return St.call(w)}catch{}try{return w+""}catch{}}return""}function as(w,P){return w===P||w!==w&&P!==P}var Ua=Eu(function(){return arguments}())?Eu:function(w){return Ln(w)&&at.call(w,"callee")&&!qb.call(w,"callee")},Ga=Array.isArray;function qa(w){return w!=null&&Ou(w.length)&&!Ka(w)}function Uy(w){return Ln(w)&&qa(w)}var Mu=Xb||Yy;function Ka(w){if(!vr(w))return!1;var P=os(w);return P==h||P==g||P==l||P==x}function Ou(w){return typeof w=="number"&&w>-1&&w%1==0&&w<=a}function vr(w){var P=typeof w;return w!=null&&(P=="object"||P=="function")}function Ln(w){return w!=null&&typeof w=="object"}function Gy(w){if(!Ln(w)||os(w)!=v)return!1;var P=_u(w);if(P===null)return!0;var E=at.call(P,"constructor")&&P.constructor;return typeof E=="function"&&E instanceof E&&St.call(E)==es}var Fu=re?Q(re):wy;function qy(w){return $y(w,Du(w))}function Du(w){return qa(w)?yy(w):ky(w)}var Ky=Iy(function(w,P,E,B){Ru(w,P,E,B)});function Xy(w){return function(){return w}}function ju(w){return w}function Yy(){return!1}e.exports=Ky}(eo,eo.exports)),eo.exports}var b0=g0();const mt=qc(b0);function gt(e,t=[]){const r=p.useRef(e);return p.useEffect(()=>{r.current=e}),p.useCallback((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function dn(e,t,r,n){const o=gt(r);return p.useEffect(()=>{const s=typeof e=="function"?e():e??document;if(!(!r||!s))return s.addEventListener(t,o,n),()=>{s.removeEventListener(t,o,n)}},[t,e,n,o,r]),()=>{const s=typeof e=="function"?e():e??document;s==null||s.removeEventListener(t,o,n)}}function sh(e){const{isOpen:t,ref:r}=e,[n,o]=p.useState(t),[s,a]=p.useState(!1);return p.useEffect(()=>{s||(o(t),a(!0))},[t,s,n]),dn(()=>r.current,"animationend",()=>{o(t)}),{present:!(t?!1:!n),onComplete(){var u;const c=Xv(r.current),l=new c.CustomEvent("animationend",{bubbles:!0});(u=r.current)==null||u.dispatchEvent(l)}}}function fj(e=!1){const[t,r]=p.useState(e),n=p.useMemo(()=>({on:()=>r(!0),off:()=>r(!1),toggle:()=>r(o=>!o)}),[]);return[t,n]}function rl(e){const{value:t,defaultValue:r,onChange:n,shouldUpdate:o=(f,h)=>f!==h}=e,s=gt(n),a=gt(o),[i,c]=p.useState(r),l=t!==void 0,u=l?t:i,d=gt(f=>{const g=typeof f=="function"?f(u):f;a(u,g)&&(l||c(g),s(g))},[l,s,u,a]);return[u,d]}function nl(e={}){const{onClose:t,onOpen:r,isOpen:n,id:o}=e,s=gt(r),a=gt(t),[i,c]=p.useState(e.defaultIsOpen||!1),l=n!==void 0?n:i,u=n!==void 0,d=p.useId(),f=o??`disclosure-${d}`,h=p.useCallback(()=>{u||c(!1),a==null||a()},[u,a]),g=p.useCallback(()=>{u||c(!0),s==null||s()},[u,s]),m=p.useCallback(()=>{l?h():g()},[l,g,h]);function b(v={}){return{...v,"aria-expanded":l,"aria-controls":f,onClick(x){var C;(C=v.onClick)==null||C.call(v,x),m()}}}function S(v={}){return{...v,hidden:!l,id:f}}return{isOpen:l,onOpen:g,onClose:h,onToggle:m,isControlled:u,getButtonProps:b,getDisclosureProps:S}}const Zt=globalThis!=null&&globalThis.document?p.useLayoutEffect:p.useEffect,Or=(e,t)=>{const r=p.useRef(!1),n=p.useRef(!1);p.useEffect(()=>{if(r.current&&n.current)return e();n.current=!0},t),p.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function y0(e){const t=e.current;if(!t)return!1;const r=Yv(t);return!r||t.contains(r)?!1:!!o0(r)}function ah(e,t){const{shouldFocus:r,visible:n,focusRef:o}=t,s=r&&!n;Or(()=>{if(!s||y0(e))return;const a=(o==null?void 0:o.current)||e.current;let i;if(a)return i=requestAnimationFrame(()=>{a.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(i)}},[s,e,o])}const v0={preventScroll:!0,shouldFocus:!1};function x0(e,t=v0){const{focusRef:r,preventScroll:n,shouldFocus:o,visible:s}=t,a=S0(e)?e.current:e,i=o&&s,c=p.useRef(i),l=p.useRef(s);Zt(()=>{!l.current&&s&&(c.current=i),l.current=s},[s,i]);const u=p.useCallback(()=>{if(!(!s||!a||!c.current)&&(c.current=!1,!a.contains(document.activeElement)))if(r!=null&&r.current)requestAnimationFrame(()=>{var d;(d=r.current)==null||d.focus({preventScroll:n})});else{const d=Qp(a);d.length>0&&requestAnimationFrame(()=>{d[0].focus({preventScroll:n})})}},[s,n,a,r]);Or(()=>{u()},[u]),dn(a,"transitionend",u)}function S0(e){return"current"in e}function w0(e){return"current"in e}const ih=()=>typeof window<"u";function k0(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}const C0=e=>ih()&&e.test(navigator.vendor),_0=e=>ih()&&e.test(k0()),P0=()=>_0(/mac|iphone|ipad|ipod/i),T0=()=>P0()&&C0(/apple/i);function A0(e){const{ref:t,elements:r,enabled:n}=e,o=()=>{var s;return((s=t.current)==null?void 0:s.ownerDocument)??document};dn(o,"pointerdown",s=>{var l,u;if(!T0()||!n)return;const a=((u=(l=s.composedPath)==null?void 0:l.call(s))==null?void 0:u[0])??s.target,c=(r??[t]).some(d=>{const f=w0(d)?d.current:d;return(f==null?void 0:f.contains(a))||f===a});o().activeElement!==a&&c&&(s.preventDefault(),a.focus())})}function E0(e,t){const r=p.useId();return p.useMemo(()=>e||[t,r].filter(Boolean).join("-"),[e,t,r])}function R0(e,...t){const r=E0(e);return p.useMemo(()=>t.map(n=>`${n}-${r}`),[r,t])}function $0(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Ie(...e){return t=>{e.forEach(r=>{$0(r,t)})}}function I0(...e){return p.useMemo(()=>Ie(...e),e)}function ch(e){const{ref:t,handler:r,enabled:n=!0}=e,o=gt(r),a=p.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;p.useEffect(()=>{if(!n)return;const i=d=>{ti(d,t)&&(a.isPointerDown=!0)},c=d=>{if(a.ignoreEmulatedMouseEvents){a.ignoreEmulatedMouseEvents=!1;return}a.isPointerDown&&r&&ti(d,t)&&(a.isPointerDown=!1,o(d))},l=d=>{a.ignoreEmulatedMouseEvents=!0,r&&a.isPointerDown&&ti(d,t)&&(a.isPointerDown=!1,o(d))},u=lh(t.current);return u.addEventListener("mousedown",i,!0),u.addEventListener("mouseup",c,!0),u.addEventListener("touchstart",i,!0),u.addEventListener("touchend",l,!0),()=>{u.removeEventListener("mousedown",i,!0),u.removeEventListener("mouseup",c,!0),u.removeEventListener("touchstart",i,!0),u.removeEventListener("touchend",l,!0)}},[r,t,o,a,n])}function ti(e,t){var n,o;const r=((n=e.composedPath)==null?void 0:n.call(e)[0])??e.target;return r&&!lh(r).contains(r)?!1:!((o=t.current)!=null&&o.contains(r))}function lh(e){return(e==null?void 0:e.ownerDocument)??document}function M0(e){const t=p.useRef();return p.useEffect(()=>{t.current=e},[e]),t.current}function O0(e,t){if(!e){t(void 0);return}t({width:e.offsetWidth,height:e.offsetHeight});const r=e.ownerDocument.defaultView??window,n=new r.ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const[s]=o;let a,i;if("borderBoxSize"in s){const c=s.borderBoxSize,l=Array.isArray(c)?c[0]:c;a=l.inlineSize,i=l.blockSize}else a=e.offsetWidth,i=e.offsetHeight;t({width:a,height:i})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}const F0=globalThis!=null&&globalThis.document?p.useLayoutEffect:p.useEffect;function D0(e,t){var o;if(!e||!e.parentElement)return;const r=((o=e.ownerDocument)==null?void 0:o.defaultView)??window,n=new r.MutationObserver(()=>{t()});return n.observe(e.parentElement,{childList:!0}),()=>{n.disconnect()}}function j0(e){const{getNodes:t,observeMutation:r=!0,enabled:n=!0,fallback:o=[]}=e,[s,a]=p.useState(o),[i,c]=p.useState(0);return F0(()=>{if(!n)return;const l=t(),u=l.map((d,f)=>O0(d,h=>{a(g=>[...g.slice(0,f),h,...g.slice(f+1)])}));if(r){const d=l[0];u.push(D0(d,()=>{c(f=>f+1)}))}return()=>{u.forEach(d=>{d==null||d()})}},[i,n]),s}function N0(e){return typeof e=="object"&&e!==null&&"current"in e}function pj(e,t){const{observeMutation:r=!1,enabled:n,fallback:o}={},[s]=j0({observeMutation:r,enabled:n,fallback:o?[o]:void 0,getNodes(){return[N0(e)?e.current:e]}});return s}function B0(e,t){const r=gt(e);p.useEffect(()=>{if(t==null)return;let n=null;return n=window.setTimeout(()=>{r()},t),()=>{n&&window.clearTimeout(n)}},[t,r])}const ze={open:(e,t)=>`${e}[data-open], ${e}[open], ${e}[data-state=open] ${t}`,closed:(e,t)=>`${e}[data-closed], ${e}[data-state=closed] ${t}`,hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},Et=e=>uh(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Ut=e=>uh(t=>e(t,"~ &"),"[data-peer]",".peer"),uh=(e,...t)=>t.map(e).join(", "),fn={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within, &[data-focus-within]",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty, &[data-empty]",_expanded:"&[aria-expanded=true], &[data-expanded], &[data-state=expanded]",_checked:"&[aria-checked=true], &[data-checked], &[data-state=checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate], &[data-state=indeterminate]",_groupOpen:Et(ze.open),_groupClosed:Et(ze.closed),_groupHover:Et(ze.hover),_peerHover:Ut(ze.hover),_groupFocus:Et(ze.focus),_peerFocus:Ut(ze.focus),_groupFocusVisible:Et(ze.focusVisible),_peerFocusVisible:Ut(ze.focusVisible),_groupActive:Et(ze.active),_peerActive:Ut(ze.active),_groupDisabled:Et(ze.disabled),_peerDisabled:Ut(ze.disabled),_groupInvalid:Et(ze.invalid),_peerInvalid:Ut(ze.invalid),_groupChecked:Et(ze.checked),_peerChecked:Ut(ze.checked),_groupFocusWithin:Et(ze.focusWithin),_peerFocusWithin:Ut(ze.focusWithin),_peerPlaceholderShown:Ut(ze.placeholderShown),_placeholder:"&::placeholder, &[data-placeholder]",_placeholderShown:"&:placeholder-shown, &[data-placeholder-shown]",_fullScreen:"&:fullscreen, &[data-fullscreen]",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]",_open:"&[data-open], &[open], &[data-state=open]",_closed:"&[data-closed], &[data-state=closed]",_complete:"&[data-complete]",_incomplete:"&[data-incomplete]",_current:"&[data-current]"},dh=Object.keys(fn),z0=e=>/!(important)?$/.test(e),nd=e=>typeof e=="string"?e.replace(/!(important)?$/,"").trim():e,L0=(e,t)=>r=>{const n=String(t),o=z0(n),s=nd(n),a=e?`${e}.${s}`:s;let i=je(r.__cssMap)&&a in r.__cssMap?r.__cssMap[a].varRef:t;return i=nd(i),o?`${i} !important`:i};function ol(e){const{scale:t,transform:r,compose:n}=e;return(s,a)=>{const i=L0(t,s)(a);let c=(r==null?void 0:r(i,a))??i;return n&&(c=n(c,a)),c}}const ls=(...e)=>t=>e.reduce((r,n)=>n(r),t);function ft(e,t){return r=>{const n={property:r,scale:e};return n.transform=ol({scale:e,transform:t}),n}}const V0=({rtl:e,ltr:t})=>r=>r.direction==="rtl"?e:t;function W0(e){const{property:t,scale:r,transform:n}=e;return{scale:r,property:V0(t),transform:r?ol({scale:r,compose:n}):n}}const fh=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function H0(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...fh].join(" ")}function U0(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...fh].join(" ")}const G0={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},q0={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function K0(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}const X0={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Ji={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},Y0=new Set(Object.values(Ji)),Qi=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Z0=e=>e.trim();function J0(e,t){if(e==null||Qi.has(e))return e;if(!(ec(e)||Qi.has(e)))return`url('${e}')`;const o=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),s=o==null?void 0:o[1],a=o==null?void 0:o[2];if(!s||!a)return e;const i=s.includes("-gradient")?s:`${s}-gradient`,[c,...l]=a.split(",").map(Z0).filter(Boolean);if((l==null?void 0:l.length)===0)return e;const u=c in Ji?Ji[c]:c;l.unshift(u);const d=l.map(f=>{if(Y0.has(f))return f;const h=f.indexOf(" "),[g,m]=h!==-1?[f.substr(0,h),f.substr(h+1)]:[f],b=ec(m)?m:m&&m.split(" "),S=`colors.${g}`,v=S in t.__cssMap?t.__cssMap[S].varRef:g;return b?[v,...Array.isArray(b)?b:[b]].join(" "):v});return`${i}(${d.join(", ")})`}const ec=e=>typeof e=="string"&&e.includes("(")&&e.includes(")"),Q0=(e,t)=>J0(e,t??{});function ex(e){return/^var\(--.+\)$/.test(e)}const tx=e=>{const t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},Rt=e=>t=>`${e}(${t})`,se={filter(e){return e!=="auto"?e:G0},backdropFilter(e){return e!=="auto"?e:q0},ring(e){return K0(se.px(e))},bgClip(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}},transform(e){return e==="auto"?H0():e==="auto-gpu"?U0():e},vh(e){return e==="$100vh"?"var(--chakra-vh)":e},px(e){if(e==null)return e;const{unitless:t}=tx(e);return t||typeof e=="number"?`${e}px`:e},fraction(e){return typeof e!="number"||e>1?e:`${e*100}%`},float(e,t){const r={left:"right",right:"left"};return t.direction==="rtl"?r[e]:e},degree(e){if(ex(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},gradient:Q0,blur:Rt("blur"),opacity:Rt("opacity"),brightness:Rt("brightness"),contrast:Rt("contrast"),dropShadow:Rt("drop-shadow"),grayscale:Rt("grayscale"),hueRotate:e=>Rt("hue-rotate")(se.degree(e)),invert:Rt("invert"),saturate:Rt("saturate"),sepia:Rt("sepia"),bgImage(e){return e==null||ec(e)||Qi.has(e)?e:`url(${e})`},outline(e){const t=String(e)==="0"||String(e)==="none";return e!==null&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){const{space:t,divide:r}=X0[e]??{},n={flexDirection:e};return t&&(n[t]=1),r&&(n[r]=1),n}},_={borderWidths:ft("borderWidths"),borderStyles:ft("borderStyles"),colors:ft("colors"),borders:ft("borders"),gradients:ft("gradients",se.gradient),radii:ft("radii",se.px),space:ft("space",ls(se.vh,se.px)),spaceT:ft("space",ls(se.vh,se.px)),degreeT(e){return{property:e,transform:se.degree}},prop(e,t,r){return{property:e,scale:t,...t&&{transform:ol({scale:t,transform:r})}}},propT(e,t){return{property:e,transform:t}},sizes:ft("sizes",ls(se.vh,se.px)),sizesT:ft("sizes",ls(se.vh,se.fraction)),shadows:ft("shadows"),logical:W0,blur:ft("blur",se.blur)},Rs={background:_.colors("background"),backgroundColor:_.colors("backgroundColor"),backgroundImage:_.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:se.bgClip},bgSize:_.prop("backgroundSize"),bgPosition:_.prop("backgroundPosition"),bg:_.colors("background"),bgColor:_.colors("backgroundColor"),bgPos:_.prop("backgroundPosition"),bgRepeat:_.prop("backgroundRepeat"),bgAttachment:_.prop("backgroundAttachment"),bgGradient:_.gradients("backgroundImage"),bgClip:{transform:se.bgClip}};Object.assign(Rs,{bgImage:Rs.backgroundImage,bgImg:Rs.backgroundImage});const pe={border:_.borders("border"),borderWidth:_.borderWidths("borderWidth"),borderStyle:_.borderStyles("borderStyle"),borderColor:_.colors("borderColor"),borderRadius:_.radii("borderRadius"),borderTop:_.borders("borderTop"),borderBlockStart:_.borders("borderBlockStart"),borderTopLeftRadius:_.radii("borderTopLeftRadius"),borderStartStartRadius:_.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:_.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:_.radii("borderTopRightRadius"),borderStartEndRadius:_.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:_.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:_.borders("borderRight"),borderInlineEnd:_.borders("borderInlineEnd"),borderBottom:_.borders("borderBottom"),borderBlockEnd:_.borders("borderBlockEnd"),borderBottomLeftRadius:_.radii("borderBottomLeftRadius"),borderBottomRightRadius:_.radii("borderBottomRightRadius"),borderLeft:_.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:_.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:_.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:_.borders(["borderLeft","borderRight"]),borderInline:_.borders("borderInline"),borderY:_.borders(["borderTop","borderBottom"]),borderBlock:_.borders("borderBlock"),borderTopWidth:_.borderWidths("borderTopWidth"),borderBlockStartWidth:_.borderWidths("borderBlockStartWidth"),borderTopColor:_.colors("borderTopColor"),borderBlockStartColor:_.colors("borderBlockStartColor"),borderTopStyle:_.borderStyles("borderTopStyle"),borderBlockStartStyle:_.borderStyles("borderBlockStartStyle"),borderBottomWidth:_.borderWidths("borderBottomWidth"),borderBlockEndWidth:_.borderWidths("borderBlockEndWidth"),borderBottomColor:_.colors("borderBottomColor"),borderBlockEndColor:_.colors("borderBlockEndColor"),borderBottomStyle:_.borderStyles("borderBottomStyle"),borderBlockEndStyle:_.borderStyles("borderBlockEndStyle"),borderLeftWidth:_.borderWidths("borderLeftWidth"),borderInlineStartWidth:_.borderWidths("borderInlineStartWidth"),borderLeftColor:_.colors("borderLeftColor"),borderInlineStartColor:_.colors("borderInlineStartColor"),borderLeftStyle:_.borderStyles("borderLeftStyle"),borderInlineStartStyle:_.borderStyles("borderInlineStartStyle"),borderRightWidth:_.borderWidths("borderRightWidth"),borderInlineEndWidth:_.borderWidths("borderInlineEndWidth"),borderRightColor:_.colors("borderRightColor"),borderInlineEndColor:_.colors("borderInlineEndColor"),borderRightStyle:_.borderStyles("borderRightStyle"),borderInlineEndStyle:_.borderStyles("borderInlineEndStyle"),borderTopRadius:_.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:_.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:_.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:_.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(pe,{rounded:pe.borderRadius,roundedTop:pe.borderTopRadius,roundedTopLeft:pe.borderTopLeftRadius,roundedTopRight:pe.borderTopRightRadius,roundedTopStart:pe.borderStartStartRadius,roundedTopEnd:pe.borderStartEndRadius,roundedBottom:pe.borderBottomRadius,roundedBottomLeft:pe.borderBottomLeftRadius,roundedBottomRight:pe.borderBottomRightRadius,roundedBottomStart:pe.borderEndStartRadius,roundedBottomEnd:pe.borderEndEndRadius,roundedLeft:pe.borderLeftRadius,roundedRight:pe.borderRightRadius,roundedStart:pe.borderInlineStartRadius,roundedEnd:pe.borderInlineEndRadius,borderStart:pe.borderInlineStart,borderEnd:pe.borderInlineEnd,borderTopStartRadius:pe.borderStartStartRadius,borderTopEndRadius:pe.borderStartEndRadius,borderBottomStartRadius:pe.borderEndStartRadius,borderBottomEndRadius:pe.borderEndEndRadius,borderStartRadius:pe.borderInlineStartRadius,borderEndRadius:pe.borderInlineEndRadius,borderStartWidth:pe.borderInlineStartWidth,borderEndWidth:pe.borderInlineEndWidth,borderStartColor:pe.borderInlineStartColor,borderEndColor:pe.borderInlineEndColor,borderStartStyle:pe.borderInlineStartStyle,borderEndStyle:pe.borderInlineEndStyle});const rx={color:_.colors("color"),textColor:_.colors("color"),fill:_.colors("fill"),stroke:_.colors("stroke"),accentColor:_.colors("accentColor"),textFillColor:_.colors("textFillColor")},qs={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:se.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:_.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:_.space("gap"),rowGap:_.space("rowGap"),columnGap:_.space("columnGap")};Object.assign(qs,{flexDir:qs.flexDirection});const pt={width:_.sizesT("width"),inlineSize:_.sizesT("inlineSize"),height:_.sizes("height"),blockSize:_.sizes("blockSize"),boxSize:_.sizes(["width","height"]),minWidth:_.sizes("minWidth"),minInlineSize:_.sizes("minInlineSize"),minHeight:_.sizes("minHeight"),minBlockSize:_.sizes("minBlockSize"),maxWidth:_.sizes("maxWidth"),maxInlineSize:_.sizes("maxInlineSize"),maxHeight:_.sizes("maxHeight"),maxBlockSize:_.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var o,s;return{[`@media screen and (min-width: ${((s=(o=t.__breakpoints)==null?void 0:o.get(e))==null?void 0:s.minW)??e})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var o,s;return{[`@media screen and (max-width: ${((s=(o=t.__breakpoints)==null?void 0:o.get(e))==null?void 0:s._minW)??e})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:_.propT("float",se.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(pt,{w:pt.width,h:pt.height,minW:pt.minWidth,maxW:pt.maxWidth,minH:pt.minHeight,maxH:pt.maxHeight,overscroll:pt.overscrollBehavior,overscrollX:pt.overscrollBehaviorX,overscrollY:pt.overscrollBehaviorY});const nx={filter:{transform:se.filter},blur:_.blur("--chakra-blur"),brightness:_.propT("--chakra-brightness",se.brightness),contrast:_.propT("--chakra-contrast",se.contrast),hueRotate:_.propT("--chakra-hue-rotate",se.hueRotate),invert:_.propT("--chakra-invert",se.invert),saturate:_.propT("--chakra-saturate",se.saturate),dropShadow:_.propT("--chakra-drop-shadow",se.dropShadow),backdropFilter:{transform:se.backdropFilter},backdropBlur:_.blur("--chakra-backdrop-blur"),backdropBrightness:_.propT("--chakra-backdrop-brightness",se.brightness),backdropContrast:_.propT("--chakra-backdrop-contrast",se.contrast),backdropHueRotate:_.propT("--chakra-backdrop-hue-rotate",se.hueRotate),backdropInvert:_.propT("--chakra-backdrop-invert",se.invert),backdropSaturate:_.propT("--chakra-backdrop-saturate",se.saturate)},ox={ring:{transform:se.ring},ringColor:_.colors("--chakra-ring-color"),ringOffset:_.prop("--chakra-ring-offset-width"),ringOffsetColor:_.colors("--chakra-ring-offset-color"),ringInset:_.prop("--chakra-ring-inset")},sx={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:se.outline},outlineOffset:!0,outlineColor:_.colors("outlineColor")},ph={gridGap:_.space("gridGap"),gridColumnGap:_.space("gridColumnGap"),gridRowGap:_.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0};function ax(e,t,r,n){const o=typeof t=="string"?t.split("."):[t];for(n=0;n<o.length&&e;n+=1)e=e[o[n]];return e===void 0?r:e}const ix=e=>{const t=new WeakMap;return(n,o,s,a)=>{if(typeof n>"u")return e(n,o,s);t.has(n)||t.set(n,new Map);const i=t.get(n);if(i.has(o))return i.get(o);const c=e(n,o,s,a);return i.set(o,c),c}},cx=ix(ax),lx={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},ux={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},ri=(e,t,r)=>{const n={},o=cx(e,t,{});for(const s in o)s in r&&r[s]!=null||(n[s]=o[s]);return n},dx={srOnly:{transform(e){return e===!0?lx:e==="focusable"?ux:{}}},layerStyle:{processResult:!0,transform:(e,t,r)=>ri(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>ri(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>ri(t,e,r)}},lo={position:!0,pos:_.prop("position"),zIndex:_.prop("zIndex","zIndices"),inset:_.spaceT("inset"),insetX:_.spaceT(["left","right"]),insetInline:_.spaceT("insetInline"),insetY:_.spaceT(["top","bottom"]),insetBlock:_.spaceT("insetBlock"),top:_.spaceT("top"),insetBlockStart:_.spaceT("insetBlockStart"),bottom:_.spaceT("bottom"),insetBlockEnd:_.spaceT("insetBlockEnd"),left:_.spaceT("left"),insetInlineStart:_.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:_.spaceT("right"),insetInlineEnd:_.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(lo,{insetStart:lo.insetInlineStart,insetEnd:lo.insetInlineEnd});const tc={boxShadow:_.shadows("boxShadow"),mixBlendMode:!0,blendMode:_.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:_.prop("backgroundBlendMode"),opacity:!0};Object.assign(tc,{shadow:tc.boxShadow});const Ae={margin:_.spaceT("margin"),marginTop:_.spaceT("marginTop"),marginBlockStart:_.spaceT("marginBlockStart"),marginRight:_.spaceT("marginRight"),marginInlineEnd:_.spaceT("marginInlineEnd"),marginBottom:_.spaceT("marginBottom"),marginBlockEnd:_.spaceT("marginBlockEnd"),marginLeft:_.spaceT("marginLeft"),marginInlineStart:_.spaceT("marginInlineStart"),marginX:_.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:_.spaceT("marginInline"),marginY:_.spaceT(["marginTop","marginBottom"]),marginBlock:_.spaceT("marginBlock"),padding:_.space("padding"),paddingTop:_.space("paddingTop"),paddingBlockStart:_.space("paddingBlockStart"),paddingRight:_.space("paddingRight"),paddingBottom:_.space("paddingBottom"),paddingBlockEnd:_.space("paddingBlockEnd"),paddingLeft:_.space("paddingLeft"),paddingInlineStart:_.space("paddingInlineStart"),paddingInlineEnd:_.space("paddingInlineEnd"),paddingX:_.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:_.space("paddingInline"),paddingY:_.space(["paddingTop","paddingBottom"]),paddingBlock:_.space("paddingBlock")};Object.assign(Ae,{m:Ae.margin,mt:Ae.marginTop,mr:Ae.marginRight,me:Ae.marginInlineEnd,marginEnd:Ae.marginInlineEnd,mb:Ae.marginBottom,ml:Ae.marginLeft,ms:Ae.marginInlineStart,marginStart:Ae.marginInlineStart,mx:Ae.marginX,my:Ae.marginY,p:Ae.padding,pt:Ae.paddingTop,py:Ae.paddingY,px:Ae.paddingX,pb:Ae.paddingBottom,pl:Ae.paddingLeft,ps:Ae.paddingInlineStart,paddingStart:Ae.paddingInlineStart,pr:Ae.paddingRight,pe:Ae.paddingInlineEnd,paddingEnd:Ae.paddingInlineEnd});const fx={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:_.spaceT("scrollMargin"),scrollMarginTop:_.spaceT("scrollMarginTop"),scrollMarginBottom:_.spaceT("scrollMarginBottom"),scrollMarginLeft:_.spaceT("scrollMarginLeft"),scrollMarginRight:_.spaceT("scrollMarginRight"),scrollMarginX:_.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:_.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:_.spaceT("scrollPadding"),scrollPaddingTop:_.spaceT("scrollPaddingTop"),scrollPaddingBottom:_.spaceT("scrollPaddingBottom"),scrollPaddingLeft:_.spaceT("scrollPaddingLeft"),scrollPaddingRight:_.spaceT("scrollPaddingRight"),scrollPaddingX:_.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:_.spaceT(["scrollPaddingTop","scrollPaddingBottom"])},px={fontFamily:_.prop("fontFamily","fonts"),fontSize:_.prop("fontSize","fontSizes",se.px),fontWeight:_.prop("fontWeight","fontWeights"),lineHeight:_.prop("lineHeight","lineHeights"),letterSpacing:_.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(e===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},hx={textDecorationColor:_.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:_.shadows("textShadow")},mx={clipPath:!0,transform:_.propT("transform",se.transform),transformOrigin:!0,translateX:_.spaceT("--chakra-translate-x"),translateY:_.spaceT("--chakra-translate-y"),skewX:_.degreeT("--chakra-skew-x"),skewY:_.degreeT("--chakra-skew-y"),scaleX:_.prop("--chakra-scale-x"),scaleY:_.prop("--chakra-scale-y"),scale:_.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:_.degreeT("--chakra-rotate")},gx={listStyleType:!0,listStylePosition:!0,listStylePos:_.prop("listStylePosition"),listStyleImage:!0,listStyleImg:_.prop("listStyleImage")},bx={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:_.prop("transitionDuration","transition.duration"),transitionProperty:_.prop("transitionProperty","transition.property"),transitionTimingFunction:_.prop("transitionTimingFunction","transition.easing")},sl=mt({},Rs,pe,rx,qs,pt,nx,ox,sx,ph,dx,lo,tc,Ae,fx,px,hx,mx,gx,bx),yx=Object.assign({},Ae,pt,qs,ph,lo),hh=Object.keys(yx),vx=[...Object.keys(sl),...dh],xx={...sl,...fn},Sx=e=>e in xx,wx=e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:r,toArrayValue:n,media:o}=t.__breakpoints,s={};for(const a in e){let i=He(e[a],t);if(i==null)continue;if(i=je(i)&&r(i)?n(i):i,!Array.isArray(i)){s[a]=i;continue}const c=i.slice(0,o.length).length;for(let l=0;l<c;l+=1){const u=o==null?void 0:o[l];if(!u){s[a]=i[l];continue}s[u]=s[u]||{},i[l]!=null&&(s[u][a]=i[l])}}return s};function kx(e){const t=[];let r="",n=!1;for(let o=0;o<e.length;o++){const s=e[o];s==="("?(n=!0,r+=s):s===")"?(n=!1,r+=s):s===","&&!n?(t.push(r),r=""):r+=s}return r=r.trim(),r&&t.push(r),t}function Cx(e){return/^var\(--.+\)$/.test(e)}const _x=(e,t)=>e.startsWith("--")&&typeof t=="string"&&!Cx(t),Px=(e,t)=>{if(t==null)return t;const r=a=>{var i,c;return(c=(i=e.__cssMap)==null?void 0:i[a])==null?void 0:c.varRef},n=a=>r(a)??a,[o,s]=kx(t);return t=r(o)??n(s)??n(t),t};function Tx(e){const{configs:t={},pseudos:r={},theme:n}=e,o=(s,a=!1)=>{var u;const i=He(s,n),c=wx(i)(n);let l={};for(let d in c){const f=c[d];let h=He(f,n);d in r&&(d=r[d]),_x(d,h)&&(h=Px(n,h));let g=t[d];if(g===!0&&(g={property:d}),je(h)){l[d]=l[d]??{},l[d]=mt({},l[d],o(h,!0));continue}let m=((u=g==null?void 0:g.transform)==null?void 0:u.call(g,h,n,i))??h;m=g!=null&&g.processResult?o(m,!0):m;const b=He(g==null?void 0:g.property,n);if(!a&&(g!=null&&g.static)){const S=He(g.static,n);l=mt({},l,S)}if(b&&Array.isArray(b)){for(const S of b)l[S]=m;continue}if(b){b==="&"&&je(m)?l=mt({},l,m):l[b]=m;continue}if(je(m)){l=mt({},l,m);continue}l[d]=m}return l};return o}const mh=e=>t=>Tx({theme:t,pseudos:fn,configs:sl})(e);function hj(e){return e}function mj(e){return e}function Te(e){return{definePartsStyle(t){return t},defineMultiStyleConfig(t){return{parts:e,...t}}}}function Ax(e,t,r){var n,o;return((o=(n=e.__cssMap)==null?void 0:n[`${t}.${r}`])==null?void 0:o.varRef)??r}function Ex(e,t){if(Array.isArray(e))return e;if(je(e))return t(e);if(e!=null)return[e]}function Rx(e,t){for(let r=t+1;r<e.length;r++)if(e[r]!=null)return r;return-1}function $x(e){const t=e.__breakpoints;return function(n,o,s,a){var f,h;if(!t)return;const i={},c=Ex(s,t.toArrayValue);if(!c)return i;const l=c.length,u=l===1,d=!!n.parts;for(let g=0;g<l;g++){const m=t.details[g],b=t.details[Rx(c,g)],S=Qn(m.minW,b==null?void 0:b._minW),v=He((f=n[o])==null?void 0:f[c[g]],a);if(v){if(d){(h=n.parts)==null||h.forEach(x=>{mt(i,{[x]:u?v[x]:{[S]:v[x]}})});continue}if(!d){u?mt(i,v):i[S]=v;continue}i[S]=v}}return i}}function Ix(e){return t=>{const{variant:r,size:n,theme:o}=t,s=$x(o);return mt({},He(e.baseStyle??{},t),s(e,"sizes",n,t),s(e,"variants",r,t))}}function ce(e){return Fn(e,["styleConfig","size","variant","colorScheme"])}function gh(e){return je(e)&&e.reference?e.reference:String(e)}const ya=(e,...t)=>t.map(gh).join(` ${e} `).replace(/calc/g,""),od=(...e)=>`calc(${ya("+",...e)})`,sd=(...e)=>`calc(${ya("-",...e)})`,rc=(...e)=>`calc(${ya("*",...e)})`,ad=(...e)=>`calc(${ya("/",...e)})`,id=e=>{const t=gh(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:rc(t,-1)},qt=Object.assign(e=>({add:(...t)=>qt(od(e,...t)),subtract:(...t)=>qt(sd(e,...t)),multiply:(...t)=>qt(rc(e,...t)),divide:(...t)=>qt(ad(e,...t)),negate:()=>qt(id(e)),toString:()=>e.toString()}),{add:od,subtract:sd,multiply:rc,divide:ad,negate:id});function Mx(e,t="-"){return e.replace(/\s+/g,t)}function Ox(e){const t=Mx(e.toString());return Dx(Fx(t))}function Fx(e){return e.includes("\\.")?e:!Number.isInteger(parseFloat(e.toString()))?e.replace(".","\\."):e}function Dx(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function jx(e,t=""){return[t,e].filter(Boolean).join("-")}function Nx(e,t){return`var(${e}${t?`, ${t}`:""})`}function Bx(e,t=""){return Ox(`--${jx(e,t)}`)}function W(e,t,r){const n=Bx(e,r);return{variable:n,reference:Nx(n,t)}}function zx(e,t){const r={};for(const n of t){if(Array.isArray(n)){const[o,s]=n;r[o]=W(`${e}-${o}`,s);continue}r[n]=W(`${e}-${n}`)}return r}const Lx=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function Vx(e){return th(e,Lx)}function Wx(e){return e.semanticTokens}function Hx(e){const{__cssMap:t,__cssVars:r,__breakpoints:n,...o}=e;return o}function Ux(e){const t=Vx(e),r=Wx(e),n=s=>dh.includes(s)||s==="default",o={};return td(t,(s,a)=>{s!=null&&(o[a.join(".")]={isSemantic:!1,value:s})}),td(r,(s,a)=>{s!=null&&(o[a.join(".")]={isSemantic:!0,value:s})},{stop:s=>Object.keys(s).every(n)}),o}function cd(e,t){return W(String(e).replace(/\./g,"-"),void 0,t)}function Gx(e){var a;const t=Ux(e),r=(a=e.config)==null?void 0:a.cssVarPrefix;let n={};const o={};function s(i,c){const u=[String(i).split(".")[0],c].join(".");if(!t[u])return c;const{reference:f}=cd(u,r);return f}for(const[i,c]of Object.entries(t)){const{isSemantic:l,value:u}=c,{variable:d,reference:f}=cd(i,r);if(!l){if(i.startsWith("space")){const g=i.split("."),[m,...b]=g,S=`${m}.-${b.join(".")}`,v=qt.negate(u),x=qt.negate(f);o[S]={value:v,var:d,varRef:x}}n[d]=u,o[i]={value:u,var:d,varRef:f};continue}const h=je(u)?u:{default:u};n=mt(n,Object.entries(h).reduce((g,[m,b])=>{if(!b)return g;const S=s(i,`${b}`);if(m==="default")return g[d]=S,g;const v=(fn==null?void 0:fn[m])??m;return g[v]={[d]:S},g},{})),o[i]={value:f,var:d,varRef:f}}return{cssVars:n,cssMap:o}}function qx(e){const t=Hx(e),{cssMap:r,cssVars:n}=Gx(t);return Object.assign(t,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...n},__cssMap:r,__breakpoints:t0(t.breakpoints)}),t}function be(e,t={}){let r=!1;function n(){if(!r){r=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function o(...u){n();for(const d of u)t[d]=c(d);return be(e,t)}function s(...u){for(const d of u)d in t||(t[d]=c(d));return be(e,t)}function a(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.selector]))}function i(){return Object.fromEntries(Object.entries(t).map(([d,f])=>[d,f.className]))}function c(u){const h=`chakra-${(["container","root"].includes(u??"")?[e]:[e,u]).filter(Boolean).join("__")}`;return{className:h,selector:`.${h}`,toString:()=>u}}return{parts:o,toPart:c,extend:s,selectors:a,classnames:i,get keys(){return Object.keys(t)},__type:{}}}const Kx=be("accordion").parts("root","container","button","panel","icon"),Xx=be("alert").parts("title","description","container","icon","spinner"),Yx=be("avatar").parts("label","badge","container","excessLabel","group"),Zx=be("breadcrumb").parts("link","item","container","separator");be("button").parts();const Jx=be("checkbox").parts("control","icon","container","label");be("progress").parts("track","filledTrack","label");const Qx=be("drawer").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),eS=be("editable").parts("preview","input","textarea"),tS=be("form").parts("container","requiredIndicator","helperText"),rS=be("formError").parts("text","icon"),nS=be("input").parts("addon","field","element","group"),oS=be("list").parts("container","item","icon"),sS=be("menu").parts("button","list","item","groupTitle","icon","command","divider"),aS=be("modal").parts("overlay","dialogContainer","dialog","header","closeButton","body","footer"),iS=be("numberinput").parts("root","field","stepperGroup","stepper");be("pininput").parts("field");const cS=be("popover").parts("content","header","body","footer","popper","arrow","closeButton"),lS=be("progress").parts("label","filledTrack","track"),uS=be("radio").parts("container","control","label"),dS=be("select").parts("field","icon"),fS=be("slider").parts("container","track","thumb","filledTrack","mark"),pS=be("stat").parts("container","label","helpText","number","icon"),hS=be("switch").parts("container","track","thumb","label"),mS=be("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),gS=be("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),bS=be("tag").parts("container","label","closeButton"),yS=be("card").parts("container","header","body","footer");be("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:vS,defineMultiStyleConfig:xS}=Te(Kx.keys),SS={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},wS={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},kS={pt:"2",px:"4",pb:"5"},CS={fontSize:"1.25em"},_S=vS({container:SS,button:wS,panel:kS,icon:CS}),PS=xS({baseStyle:_S});function Cr(e,t,r){return Math.min(Math.max(e,r),t)}class TS extends Error{constructor(t){super(`Failed to parse color: "${t}"`)}}var to=TS;function al(e){if(typeof e!="string")throw new to(e);if(e.trim().toLowerCase()==="transparent")return[0,0,0,0];let t=e.trim();t=FS.test(e)?RS(e):e;const r=$S.exec(t);if(r){const a=Array.from(r).slice(1);return[...a.slice(0,3).map(i=>parseInt(To(i,2),16)),parseInt(To(a[3]||"f",2),16)/255]}const n=IS.exec(t);if(n){const a=Array.from(n).slice(1);return[...a.slice(0,3).map(i=>parseInt(i,16)),parseInt(a[3]||"ff",16)/255]}const o=MS.exec(t);if(o){const a=Array.from(o).slice(1);return[...a.slice(0,3).map(i=>parseInt(i,10)),parseFloat(a[3]||"1")]}const s=OS.exec(t);if(s){const[a,i,c,l]=Array.from(s).slice(1).map(parseFloat);if(Cr(0,100,i)!==i)throw new to(e);if(Cr(0,100,c)!==c)throw new to(e);return[...DS(a,i,c),Number.isNaN(l)?1:l]}throw new to(e)}function AS(e){let t=5381,r=e.length;for(;r;)t=t*33^e.charCodeAt(--r);return(t>>>0)%2341}const ld=e=>parseInt(e.replace(/_/g,""),36),ES="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const r=ld(t.substring(0,3)),n=ld(t.substring(3)).toString(16);let o="";for(let s=0;s<6-n.length;s++)o+="0";return e[r]=`${o}${n}`,e},{});function RS(e){const t=e.toLowerCase().trim(),r=ES[AS(t)];if(!r)throw new to(e);return`#${r}`}const To=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),$S=new RegExp(`^#${To("([a-f0-9])",3)}([a-f0-9])?$`,"i"),IS=new RegExp(`^#${To("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),MS=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${To(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),OS=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,FS=/^[a-z]+$/i,ud=e=>Math.round(e*255),DS=(e,t,r)=>{let n=r/100;if(t===0)return[n,n,n].map(ud);const o=(e%360+360)%360/60,s=(1-Math.abs(2*n-1))*(t/100),a=s*(1-Math.abs(o%2-1));let i=0,c=0,l=0;o>=0&&o<1?(i=s,c=a):o>=1&&o<2?(i=a,c=s):o>=2&&o<3?(c=s,l=a):o>=3&&o<4?(c=a,l=s):o>=4&&o<5?(i=a,l=s):o>=5&&o<6&&(i=s,l=a);const u=n-s/2,d=i+u,f=c+u,h=l+u;return[d,f,h].map(ud)};function jS(e,t,r,n){return`rgba(${Cr(0,255,e).toFixed()}, ${Cr(0,255,t).toFixed()}, ${Cr(0,255,r).toFixed()}, ${parseFloat(Cr(0,1,n).toFixed(3))})`}function NS(e,t){const[r,n,o,s]=al(e);return jS(r,n,o,s-t)}function BS(e){const[t,r,n,o]=al(e);let s=a=>{const i=Cr(0,255,a).toString(16);return i.length===1?`0${i}`:i};return`#${s(t)}${s(r)}${s(n)}${o<1?s(Math.round(o*255)):""}`}const zS=e=>Object.keys(e).length===0;function LS(e,t,r,n,o){for(t=t.split?t.split("."):t,n=0;n<t.length;n++)e=e?e[t[n]]:o;return e===o?r:e}const Ye=(e,t,r)=>{const n=LS(e,`colors.${t}`,t);try{return BS(n),n}catch{return r??"#000000"}},VS=e=>{const[t,r,n]=al(e);return(t*299+r*587+n*114)/1e3},WS=e=>t=>{const r=Ye(t,e);return VS(r)<128?"dark":"light"},HS=e=>t=>WS(e)(t)==="dark",kn=(e,t)=>r=>{const n=Ye(r,e);return NS(n,1-t)};function dd(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
    45deg,
    ${t} 25%,
    transparent 25%,
    transparent 50%,
    ${t} 50%,
    ${t} 75%,
    transparent 75%,
    transparent
  )`,backgroundSize:`${e} ${e}`}}const US=()=>`#${Math.floor(Math.random()*16777215).toString(16).padEnd(6,"0")}`;function GS(e){const t=US();return!e||zS(e)?t:e.string&&e.colors?KS(e.string,e.colors):e.string&&!e.colors?qS(e.string):e.colors&&!e.string?XS(e.colors):t}function qS(e){let t=0;if(e.length===0)return t.toString();for(let n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t),t=t&t;let r="#";for(let n=0;n<3;n+=1){const o=t>>n*8&255;r+=`00${o.toString(16)}`.substr(-2)}return r}function KS(e,t){let r=0;if(e.length===0)return t[0];for(let n=0;n<e.length;n+=1)r=e.charCodeAt(n)+((r<<5)-r),r=r&r;return r=(r%t.length+t.length)%t.length,t[r]}function XS(e){return e[Math.floor(Math.random()*e.length)]}function G(e,t){return r=>r.colorMode==="dark"?t:e}function il(e){const{orientation:t,vertical:r,horizontal:n}=e;return t?t==="vertical"?r:n:{}}function bh(e){return je(e)&&e.reference?e.reference:String(e)}const va=(e,...t)=>t.map(bh).join(` ${e} `).replace(/calc/g,""),fd=(...e)=>`calc(${va("+",...e)})`,pd=(...e)=>`calc(${va("-",...e)})`,nc=(...e)=>`calc(${va("*",...e)})`,hd=(...e)=>`calc(${va("/",...e)})`,md=e=>{const t=bh(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:nc(t,-1)},Kt=Object.assign(e=>({add:(...t)=>Kt(fd(e,...t)),subtract:(...t)=>Kt(pd(e,...t)),multiply:(...t)=>Kt(nc(e,...t)),divide:(...t)=>Kt(hd(e,...t)),negate:()=>Kt(md(e)),toString:()=>e.toString()}),{add:fd,subtract:pd,multiply:nc,divide:hd,negate:md});function YS(e){return!Number.isInteger(parseFloat(e.toString()))}function ZS(e,t="-"){return e.replace(/\s+/g,t)}function yh(e){const t=ZS(e.toString());return t.includes("\\.")?e:YS(e)?t.replace(".","\\."):e}function JS(e,t=""){return[t,yh(e)].filter(Boolean).join("-")}function QS(e,t){return`var(${yh(e)}${t?`, ${t}`:""})`}function e1(e,t=""){return`--${JS(e,t)}`}function Ve(e,t){const r=e1(e,t==null?void 0:t.prefix);return{variable:r,reference:QS(r,t1(t==null?void 0:t.fallback))}}function t1(e){return e==null?void 0:e.reference}const{definePartsStyle:Vo,defineMultiStyleConfig:r1}=Te(Xx.keys),lt=W("alert-fg"),er=W("alert-bg"),n1=Vo({container:{bg:er.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:lt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:lt.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function cl(e){const{theme:t,colorScheme:r}=e,n=kn(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}const o1=Vo(e=>{const{colorScheme:t}=e,r=cl(e);return{container:{[lt.variable]:`colors.${t}.600`,[er.variable]:r.light,_dark:{[lt.variable]:`colors.${t}.200`,[er.variable]:r.dark}}}}),s1=Vo(e=>{const{colorScheme:t}=e,r=cl(e);return{container:{[lt.variable]:`colors.${t}.600`,[er.variable]:r.light,_dark:{[lt.variable]:`colors.${t}.200`,[er.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:lt.reference}}}),a1=Vo(e=>{const{colorScheme:t}=e,r=cl(e);return{container:{[lt.variable]:`colors.${t}.600`,[er.variable]:r.light,_dark:{[lt.variable]:`colors.${t}.200`,[er.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:lt.reference}}}),i1=Vo(e=>{const{colorScheme:t}=e;return{container:{[lt.variable]:"colors.white",[er.variable]:`colors.${t}.600`,_dark:{[lt.variable]:"colors.gray.900",[er.variable]:`colors.${t}.200`},color:lt.reference}}}),c1={subtle:o1,"left-accent":s1,"top-accent":a1,solid:i1},l1=r1({baseStyle:n1,variants:c1,defaultProps:{variant:"subtle",colorScheme:"blue"}}),vh={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},u1={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},d1={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},xh={...vh,...u1,container:d1},f1=e=>typeof e=="function";function Ze(e,...t){return f1(e)?e(...t):e}const{definePartsStyle:Sh,defineMultiStyleConfig:p1}=Te(Yx.keys),pn=W("avatar-border-color"),uo=W("avatar-bg"),Ao=W("avatar-font-size"),Cn=W("avatar-size"),h1={borderRadius:"full",border:"0.2em solid",borderColor:pn.reference,[pn.variable]:"white",_dark:{[pn.variable]:"colors.gray.800"}},m1={bg:uo.reference,fontSize:Ao.reference,width:Cn.reference,height:Cn.reference,lineHeight:"1",[uo.variable]:"colors.gray.200",_dark:{[uo.variable]:"colors.whiteAlpha.400"}},g1=e=>{const{name:t,theme:r}=e,n=t?GS({string:t}):"colors.gray.400",o=HS(n)(r);let s="white";return o||(s="gray.800"),{bg:uo.reference,fontSize:Ao.reference,color:s,borderColor:pn.reference,verticalAlign:"top",width:Cn.reference,height:Cn.reference,"&:not([data-loaded])":{[uo.variable]:n},[pn.variable]:"colors.white",_dark:{[pn.variable]:"colors.gray.800"}}},b1={fontSize:Ao.reference,lineHeight:"1"},y1=Sh(e=>({badge:Ze(h1,e),excessLabel:Ze(m1,e),container:Ze(g1,e),label:b1}));function or(e){const t=e!=="100%"?xh[e]:void 0;return Sh({container:{[Cn.variable]:t??e,[Ao.variable]:`calc(${t??e} / 2.5)`},excessLabel:{[Cn.variable]:t??e,[Ao.variable]:`calc(${t??e} / 2.5)`}})}const v1={"2xs":or(4),xs:or(6),sm:or(8),md:or(12),lg:or(16),xl:or(24),"2xl":or(32),full:or("100%")},x1=p1({baseStyle:y1,sizes:v1,defaultProps:{size:"md"}}),De=zx("badge",["bg","color","shadow"]),S1={px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:De.bg.reference,color:De.color.reference,boxShadow:De.shadow.reference},w1=e=>{const{colorScheme:t,theme:r}=e,n=kn(`${t}.500`,.6)(r);return{[De.bg.variable]:`colors.${t}.500`,[De.color.variable]:"colors.white",_dark:{[De.bg.variable]:n,[De.color.variable]:"colors.whiteAlpha.800"}}},k1=e=>{const{colorScheme:t,theme:r}=e,n=kn(`${t}.200`,.16)(r);return{[De.bg.variable]:`colors.${t}.100`,[De.color.variable]:`colors.${t}.800`,_dark:{[De.bg.variable]:n,[De.color.variable]:`colors.${t}.200`}}},C1=e=>{const{colorScheme:t,theme:r}=e,n=kn(`${t}.200`,.8)(r);return{[De.color.variable]:`colors.${t}.500`,_dark:{[De.color.variable]:n},[De.shadow.variable]:`inset 0 0 0px 1px ${De.color.reference}`}},_1={solid:w1,subtle:k1,outline:C1},fo={baseStyle:S1,variants:_1,defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:P1,definePartsStyle:T1}=Te(Zx.keys),ni=W("breadcrumb-link-decor"),A1={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:ni.reference,[ni.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[ni.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},E1=T1({link:A1}),R1=P1({baseStyle:E1}),$1={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},wh=e=>{const{colorScheme:t,theme:r}=e;if(t==="gray")return{color:G("gray.800","whiteAlpha.900")(e),_hover:{bg:G("gray.100","whiteAlpha.200")(e)},_active:{bg:G("gray.200","whiteAlpha.300")(e)}};const n=kn(`${t}.200`,.12)(r),o=kn(`${t}.200`,.24)(r);return{color:G(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:G(`${t}.50`,n)(e)},_active:{bg:G(`${t}.100`,o)(e)}}},I1=e=>{const{colorScheme:t}=e,r=G("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:t==="gray"?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...Ze(wh,e)}},M1={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},O1=e=>{const{colorScheme:t}=e;if(t==="gray"){const i=G("gray.100","whiteAlpha.200")(e);return{bg:i,color:G("gray.800","whiteAlpha.900")(e),_hover:{bg:G("gray.200","whiteAlpha.300")(e),_disabled:{bg:i}},_active:{bg:G("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${t}.500`,color:n="white",hoverBg:o=`${t}.600`,activeBg:s=`${t}.700`}=M1[t]??{},a=G(r,`${t}.200`)(e);return{bg:a,color:G(n,"gray.800")(e),_hover:{bg:G(o,`${t}.300`)(e),_disabled:{bg:a}},_active:{bg:G(s,`${t}.400`)(e)}}},F1=e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:G(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:G(`${t}.700`,`${t}.500`)(e)}}},D1={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},j1={ghost:wh,outline:I1,solid:O1,link:F1,unstyled:D1},N1={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},B1={baseStyle:$1,variants:j1,sizes:N1,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:Tr,defineMultiStyleConfig:z1}=Te(yS.keys),Ks=W("card-bg"),Jt=W("card-padding"),kh=W("card-shadow"),$s=W("card-radius"),Ch=W("card-border-width","0"),_h=W("card-border-color"),L1=Tr({container:{[Ks.variable]:"colors.chakra-body-bg",backgroundColor:Ks.reference,boxShadow:kh.reference,borderRadius:$s.reference,color:"chakra-body-text",borderWidth:Ch.reference,borderColor:_h.reference},body:{padding:Jt.reference,flex:"1 1 0%"},header:{padding:Jt.reference},footer:{padding:Jt.reference}}),V1={sm:Tr({container:{[$s.variable]:"radii.base",[Jt.variable]:"space.3"}}),md:Tr({container:{[$s.variable]:"radii.md",[Jt.variable]:"space.5"}}),lg:Tr({container:{[$s.variable]:"radii.xl",[Jt.variable]:"space.7"}})},W1={elevated:Tr({container:{[kh.variable]:"shadows.base",_dark:{[Ks.variable]:"colors.gray.700"}}}),outline:Tr({container:{[Ch.variable]:"1px",[_h.variable]:"colors.chakra-border-color"}}),filled:Tr({container:{[Ks.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[Jt.variable]:0},header:{[Jt.variable]:0},footer:{[Jt.variable]:0}}},H1=z1({baseStyle:L1,variants:W1,sizes:V1,defaultProps:{variant:"elevated",size:"md"}}),{definePartsStyle:Is,defineMultiStyleConfig:U1}=Te(Jx.keys),po=W("checkbox-size"),G1=e=>{const{colorScheme:t}=e;return{w:po.reference,h:po.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:G(`${t}.500`,`${t}.200`)(e),borderColor:G(`${t}.500`,`${t}.200`)(e),color:G("white","gray.900")(e),_hover:{bg:G(`${t}.600`,`${t}.300`)(e),borderColor:G(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:G("gray.200","transparent")(e),bg:G("gray.200","whiteAlpha.300")(e),color:G("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:G(`${t}.500`,`${t}.200`)(e),borderColor:G(`${t}.500`,`${t}.200`)(e),color:G("white","gray.900")(e)},_disabled:{bg:G("gray.100","whiteAlpha.100")(e),borderColor:G("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:G("red.500","red.300")(e)}}},q1={_disabled:{cursor:"not-allowed"}},K1={userSelect:"none",_disabled:{opacity:.4}},X1={transitionProperty:"transform",transitionDuration:"normal"},Y1=Is(e=>({icon:X1,container:q1,control:Ze(G1,e),label:K1})),Z1={sm:Is({control:{[po.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:Is({control:{[po.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:Is({control:{[po.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},ir=U1({baseStyle:Y1,sizes:Z1,defaultProps:{size:"md",colorScheme:"blue"}}),ho=Ve("close-button-size"),Un=Ve("close-button-bg"),J1={w:[ho.reference],h:[ho.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[Un.variable]:"colors.blackAlpha.100",_dark:{[Un.variable]:"colors.whiteAlpha.100"}},_active:{[Un.variable]:"colors.blackAlpha.200",_dark:{[Un.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:Un.reference},Q1={lg:{[ho.variable]:"sizes.10",fontSize:"md"},md:{[ho.variable]:"sizes.8",fontSize:"xs"},sm:{[ho.variable]:"sizes.6",fontSize:"2xs"}},ew={baseStyle:J1,sizes:Q1,defaultProps:{size:"md"}},{variants:tw,defaultProps:rw}=fo,nw={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:De.bg.reference,color:De.color.reference,boxShadow:De.shadow.reference},ow={baseStyle:nw,variants:tw,defaultProps:rw},sw={w:"100%",mx:"auto",maxW:"prose",px:"4"},aw={baseStyle:sw},iw={opacity:.6,borderColor:"inherit"},cw={borderStyle:"solid"},lw={borderStyle:"dashed"},uw={solid:cw,dashed:lw},dw={baseStyle:iw,variants:uw,defaultProps:{variant:"solid"}},{definePartsStyle:oc,defineMultiStyleConfig:fw}=Te(Qx.keys),oi=W("drawer-bg"),si=W("drawer-box-shadow");function Hr(e){return oc(e==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}const pw={bg:"blackAlpha.600",zIndex:"modal"},hw={display:"flex",zIndex:"modal",justifyContent:"center"},mw=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[oi.variable]:"colors.white",[si.variable]:"shadows.lg",_dark:{[oi.variable]:"colors.gray.700",[si.variable]:"shadows.dark-lg"},bg:oi.reference,boxShadow:si.reference}},gw={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},bw={position:"absolute",top:"2",insetEnd:"3"},yw={px:"6",py:"2",flex:"1",overflow:"auto"},vw={px:"6",py:"4"},xw=oc(e=>({overlay:pw,dialogContainer:hw,dialog:Ze(mw,e),header:gw,closeButton:bw,body:yw,footer:vw})),Sw={xs:Hr("xs"),sm:Hr("md"),md:Hr("lg"),lg:Hr("2xl"),xl:Hr("4xl"),full:Hr("full")},ww=fw({baseStyle:xw,sizes:Sw,defaultProps:{size:"xs"}}),{definePartsStyle:kw,defineMultiStyleConfig:Cw}=Te(eS.keys),_w={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},Pw={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Tw={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},Aw=kw({preview:_w,input:Pw,textarea:Tw}),Ew=Cw({baseStyle:Aw}),{definePartsStyle:Rw,defineMultiStyleConfig:$w}=Te(tS.keys),hn=W("form-control-color"),Iw={marginStart:"1",[hn.variable]:"colors.red.500",_dark:{[hn.variable]:"colors.red.300"},color:hn.reference},Mw={mt:"2",[hn.variable]:"colors.gray.600",_dark:{[hn.variable]:"colors.whiteAlpha.600"},color:hn.reference,lineHeight:"normal",fontSize:"sm"},Ow=Rw({container:{width:"100%",position:"relative"},requiredIndicator:Iw,helperText:Mw}),Fw=$w({baseStyle:Ow}),{definePartsStyle:Dw,defineMultiStyleConfig:jw}=Te(rS.keys),mn=W("form-error-color"),Nw={[mn.variable]:"colors.red.500",_dark:{[mn.variable]:"colors.red.300"},color:mn.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},Bw={marginEnd:"0.5em",[mn.variable]:"colors.red.500",_dark:{[mn.variable]:"colors.red.300"},color:mn.reference},zw=Dw({text:Nw,icon:Bw}),Lw=jw({baseStyle:zw}),Vw={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},Ww={baseStyle:Vw},Hw={fontFamily:"heading",fontWeight:"bold"},Uw={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},Gw={baseStyle:Hw,sizes:Uw,defaultProps:{size:"xl"}},{definePartsStyle:Yt,defineMultiStyleConfig:qw}=Te(nS.keys),Qr=W("input-height"),en=W("input-font-size"),tn=W("input-padding"),rn=W("input-border-radius"),Kw=Yt({addon:{height:Qr.reference,fontSize:en.reference,px:tn.reference,borderRadius:rn.reference},field:{width:"100%",height:Qr.reference,fontSize:en.reference,px:tn.reference,borderRadius:rn.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),sr={lg:{[en.variable]:"fontSizes.lg",[tn.variable]:"space.4",[rn.variable]:"radii.md",[Qr.variable]:"sizes.12"},md:{[en.variable]:"fontSizes.md",[tn.variable]:"space.4",[rn.variable]:"radii.md",[Qr.variable]:"sizes.10"},sm:{[en.variable]:"fontSizes.sm",[tn.variable]:"space.3",[rn.variable]:"radii.sm",[Qr.variable]:"sizes.8"},xs:{[en.variable]:"fontSizes.xs",[tn.variable]:"space.2",[rn.variable]:"radii.sm",[Qr.variable]:"sizes.6"}},Xw={lg:Yt({field:sr.lg,group:sr.lg}),md:Yt({field:sr.md,group:sr.md}),sm:Yt({field:sr.sm,group:sr.sm}),xs:Yt({field:sr.xs,group:sr.xs})};function ll(e){const{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||G("blue.500","blue.300")(e),errorBorderColor:r||G("red.500","red.300")(e)}}const Yw=Yt(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=ll(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:G("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ye(t,n),boxShadow:`0 0 0 1px ${Ye(t,n)}`},_focusVisible:{zIndex:1,borderColor:Ye(t,r),boxShadow:`0 0 0 1px ${Ye(t,r)}`}},addon:{border:"1px solid",borderColor:G("inherit","whiteAlpha.50")(e),bg:G("gray.100","whiteAlpha.300")(e)}}}),Zw=Yt(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=ll(e);return{field:{border:"2px solid",borderColor:"transparent",bg:G("gray.100","whiteAlpha.50")(e),_hover:{bg:G("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ye(t,n)},_focusVisible:{bg:"transparent",borderColor:Ye(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:G("gray.100","whiteAlpha.50")(e)}}}),Jw=Yt(e=>{const{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=ll(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:Ye(t,n),boxShadow:`0px 1px 0px 0px ${Ye(t,n)}`},_focusVisible:{borderColor:Ye(t,r),boxShadow:`0px 1px 0px 0px ${Ye(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),Qw=Yt({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}}),ek={outline:Yw,filled:Zw,flushed:Jw,unstyled:Qw},ge=qw({baseStyle:Kw,sizes:Xw,variants:ek,defaultProps:{size:"md",variant:"outline"}}),ai=W("kbd-bg"),tk={[ai.variable]:"colors.gray.100",_dark:{[ai.variable]:"colors.whiteAlpha.100"},bg:ai.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},rk={baseStyle:tk},nk={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},ok={baseStyle:nk},{defineMultiStyleConfig:sk,definePartsStyle:ak}=Te(oS.keys),ik={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},ck=ak({icon:ik}),lk=sk({baseStyle:ck}),{defineMultiStyleConfig:uk,definePartsStyle:dk}=Te(sS.keys),It=W("menu-bg"),ii=W("menu-shadow"),fk={[It.variable]:"#fff",[ii.variable]:"shadows.sm",_dark:{[It.variable]:"colors.gray.700",[ii.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:"dropdown",borderRadius:"md",borderWidth:"1px",bg:It.reference,boxShadow:ii.reference},pk={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[It.variable]:"colors.gray.100",_dark:{[It.variable]:"colors.whiteAlpha.100"}},_active:{[It.variable]:"colors.gray.200",_dark:{[It.variable]:"colors.whiteAlpha.200"}},_expanded:{[It.variable]:"colors.gray.100",_dark:{[It.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:It.reference},hk={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},mk={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},gk={opacity:.6},bk={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},yk={transitionProperty:"common",transitionDuration:"normal"},vk=dk({button:yk,list:fk,item:pk,groupTitle:hk,icon:mk,command:gk,divider:bk}),xk=uk({baseStyle:vk}),{defineMultiStyleConfig:Sk,definePartsStyle:sc}=Te(aS.keys),ci=W("modal-bg"),li=W("modal-shadow"),wk={bg:"blackAlpha.600",zIndex:"modal"},kk=e=>{const{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:r==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},Ck=e=>{const{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:r==="inside"?"calc(100% - 7.5rem)":void 0,[ci.variable]:"colors.white",[li.variable]:"shadows.lg",_dark:{[ci.variable]:"colors.gray.700",[li.variable]:"shadows.dark-lg"},bg:ci.reference,boxShadow:li.reference}},_k={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Pk={position:"absolute",top:"2",insetEnd:"3"},Tk=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:t==="inside"?"auto":void 0}},Ak={px:"6",py:"4"},Ek=sc(e=>({overlay:wk,dialogContainer:Ze(kk,e),dialog:Ze(Ck,e),header:_k,closeButton:Pk,body:Ze(Tk,e),footer:Ak}));function kt(e){return sc(e==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}const Rk={xs:kt("xs"),sm:kt("sm"),md:kt("md"),lg:kt("lg"),xl:kt("xl"),"2xl":kt("2xl"),"3xl":kt("3xl"),"4xl":kt("4xl"),"5xl":kt("5xl"),"6xl":kt("6xl"),full:kt("full")},$k=Sk({baseStyle:Ek,sizes:Rk,defaultProps:{size:"md"}}),Ph={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},{defineMultiStyleConfig:Ik,definePartsStyle:Th}=Te(iS.keys),ul=Ve("number-input-stepper-width"),Ah=Ve("number-input-input-padding"),Mk=Kt(ul).add("0.5rem").toString(),ui=Ve("number-input-bg"),di=Ve("number-input-color"),fi=Ve("number-input-border-color"),Ok={[ul.variable]:"sizes.6",[Ah.variable]:Mk},Fk=e=>{var t;return((t=Ze(ge.baseStyle,e))==null?void 0:t.field)??{}},Dk={width:ul.reference},jk={borderStart:"1px solid",borderStartColor:fi.reference,color:di.reference,bg:ui.reference,[di.variable]:"colors.chakra-body-text",[fi.variable]:"colors.chakra-border-color",_dark:{[di.variable]:"colors.whiteAlpha.800",[fi.variable]:"colors.whiteAlpha.300"},_active:{[ui.variable]:"colors.gray.200",_dark:{[ui.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},Nk=Th(e=>({root:Ok,field:Ze(Fk,e)??{},stepperGroup:Dk,stepper:jk}));function us(e){var s,a;const t=(s=ge.sizes)==null?void 0:s[e],r={lg:"md",md:"md",sm:"sm",xs:"sm"},n=((a=t.field)==null?void 0:a.fontSize)??"md",o=Ph.fontSizes[n];return Th({field:{...t.field,paddingInlineEnd:Ah.reference,verticalAlign:"top"},stepper:{fontSize:Kt(o).multiply(.75).toString(),_first:{borderTopEndRadius:r[e]},_last:{borderBottomEndRadius:r[e],mt:"-1px",borderTopWidth:1}}})}const Bk={xs:us("xs"),sm:us("sm"),md:us("md"),lg:us("lg")},zk=Ik({baseStyle:Nk,sizes:Bk,variants:ge.variants,defaultProps:ge.defaultProps});var yp;const Lk={...(yp=ge.baseStyle)==null?void 0:yp.field,textAlign:"center"},Vk={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}};var vp;const Wk={outline:e=>{var t,r;return((r=Ze((t=ge.variants)==null?void 0:t.outline,e))==null?void 0:r.field)??{}},flushed:e=>{var t,r;return((r=Ze((t=ge.variants)==null?void 0:t.flushed,e))==null?void 0:r.field)??{}},filled:e=>{var t,r;return((r=Ze((t=ge.variants)==null?void 0:t.filled,e))==null?void 0:r.field)??{}},unstyled:((vp=ge.variants)==null?void 0:vp.unstyled.field)??{}},Hk={baseStyle:Lk,sizes:Vk,variants:Wk,defaultProps:ge.defaultProps},{defineMultiStyleConfig:Uk,definePartsStyle:Gk}=Te(cS.keys),ds=Ve("popper-bg"),qk=Ve("popper-arrow-bg"),gd=Ve("popper-arrow-shadow-color"),Kk={zIndex:"popover"},Xk={[ds.variable]:"colors.white",bg:ds.reference,[qk.variable]:ds.reference,[gd.variable]:"colors.gray.200",_dark:{[ds.variable]:"colors.gray.700",[gd.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},Yk={px:3,py:2,borderBottomWidth:"1px"},Zk={px:3,py:2},Jk={px:3,py:2,borderTopWidth:"1px"},Qk={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},eC=Gk({popper:Kk,content:Xk,header:Yk,body:Zk,footer:Jk,closeButton:Qk}),tC=Uk({baseStyle:eC}),{defineMultiStyleConfig:rC,definePartsStyle:ro}=Te(lS.keys),nC=e=>{const{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:o}=e,s=G(dd(),dd("1rem","rgba(0,0,0,0.1)"))(e),a=G(`${t}.500`,`${t}.200`)(e),i=`linear-gradient(
    to right,
    transparent 0%,
    ${Ye(r,a)} 50%,
    transparent 100%
  )`;return{...!n&&o&&s,...n?{bgImage:i}:{bgColor:a}}},oC={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},sC=e=>({bg:G("gray.100","whiteAlpha.300")(e)}),aC=e=>({transitionProperty:"common",transitionDuration:"slow",...nC(e)}),iC=ro(e=>({label:oC,filledTrack:aC(e),track:sC(e)})),cC={xs:ro({track:{h:"1"}}),sm:ro({track:{h:"2"}}),md:ro({track:{h:"3"}}),lg:ro({track:{h:"4"}})},lC=rC({sizes:cC,baseStyle:iC,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:uC,definePartsStyle:Ms}=Te(uS.keys),dC=e=>{var r;const t=(r=Ze(ir.baseStyle,e))==null?void 0:r.control;return{...t,borderRadius:"full",_checked:{...t==null?void 0:t._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},fC=Ms(e=>{var t,r;return{label:(t=ir.baseStyle)==null?void 0:t.call(ir,e).label,container:(r=ir.baseStyle)==null?void 0:r.call(ir,e).container,control:dC(e)}}),pC={md:Ms({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:Ms({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:Ms({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},hC=uC({baseStyle:fC,sizes:pC,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:mC,definePartsStyle:gC}=Te(dS.keys),fs=W("select-bg");var xp;const bC={...(xp=ge.baseStyle)==null?void 0:xp.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:fs.reference,[fs.variable]:"colors.white",_dark:{[fs.variable]:"colors.gray.700"},"> option, > optgroup":{bg:fs.reference}},yC={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},vC=gC({field:bC,icon:yC}),ps={paddingInlineEnd:"8"};var Sp,wp,kp,Cp,_p,Pp,Tp,Ap;const xC={lg:{...(Sp=ge.sizes)==null?void 0:Sp.lg,field:{...(wp=ge.sizes)==null?void 0:wp.lg.field,...ps}},md:{...(kp=ge.sizes)==null?void 0:kp.md,field:{...(Cp=ge.sizes)==null?void 0:Cp.md.field,...ps}},sm:{...(_p=ge.sizes)==null?void 0:_p.sm,field:{...(Pp=ge.sizes)==null?void 0:Pp.sm.field,...ps}},xs:{...(Tp=ge.sizes)==null?void 0:Tp.xs,field:{...(Ap=ge.sizes)==null?void 0:Ap.xs.field,...ps},icon:{insetEnd:"1"}}},SC=mC({baseStyle:vC,sizes:xC,variants:ge.variants,defaultProps:ge.defaultProps}),pi=W("skeleton-start-color"),hi=W("skeleton-end-color"),wC={[pi.variable]:"colors.gray.100",[hi.variable]:"colors.gray.400",_dark:{[pi.variable]:"colors.gray.800",[hi.variable]:"colors.gray.600"},background:pi.reference,borderColor:hi.reference,opacity:.7,borderRadius:"sm"},kC={baseStyle:wC},mi=W("skip-link-bg"),CC={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[mi.variable]:"colors.white",_dark:{[mi.variable]:"colors.gray.700"},bg:mi.reference}},_C={baseStyle:CC},{defineMultiStyleConfig:PC,definePartsStyle:xa}=Te(fS.keys),Fr=W("slider-thumb-size"),Eo=W("slider-track-size"),lr=W("slider-bg"),TC=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...il({orientation:t,vertical:{h:"100%",px:qt(Fr.reference).divide(2).toString()},horizontal:{w:"100%",py:qt(Fr.reference).divide(2).toString()}})}},AC=e=>({...il({orientation:e.orientation,horizontal:{h:Eo.reference},vertical:{w:Eo.reference}}),overflow:"hidden",borderRadius:"sm",[lr.variable]:"colors.gray.200",_dark:{[lr.variable]:"colors.whiteAlpha.200"},_disabled:{[lr.variable]:"colors.gray.300",_dark:{[lr.variable]:"colors.whiteAlpha.300"}},bg:lr.reference}),EC=e=>{const{orientation:t}=e;return{...il({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:Fr.reference,h:Fr.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},RC=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[lr.variable]:`colors.${t}.500`,_dark:{[lr.variable]:`colors.${t}.200`},bg:lr.reference}},$C=xa(e=>({container:TC(e),track:AC(e),thumb:EC(e),filledTrack:RC(e)})),IC=xa({container:{[Fr.variable]:"sizes.4",[Eo.variable]:"sizes.1"}}),MC=xa({container:{[Fr.variable]:"sizes.3.5",[Eo.variable]:"sizes.1"}}),OC=xa({container:{[Fr.variable]:"sizes.2.5",[Eo.variable]:"sizes.0.5"}}),FC={lg:IC,md:MC,sm:OC},DC=PC({baseStyle:$C,sizes:FC,defaultProps:{size:"md",colorScheme:"blue"}}),kr=Ve("spinner-size"),jC={width:[kr.reference],height:[kr.reference]},NC={xs:{[kr.variable]:"sizes.3"},sm:{[kr.variable]:"sizes.4"},md:{[kr.variable]:"sizes.6"},lg:{[kr.variable]:"sizes.8"},xl:{[kr.variable]:"sizes.12"}},BC={baseStyle:jC,sizes:NC,defaultProps:{size:"md"}},{defineMultiStyleConfig:zC,definePartsStyle:Eh}=Te(pS.keys),LC={fontWeight:"medium"},VC={opacity:.8,marginBottom:"2"},WC={verticalAlign:"baseline",fontWeight:"semibold"},HC={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},UC=Eh({container:{},label:LC,helpText:VC,number:WC,icon:HC}),GC={md:Eh({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},qC=zC({baseStyle:UC,sizes:GC,defaultProps:{size:"md"}}),{defineMultiStyleConfig:KC,definePartsStyle:no}=Te(["stepper","step","title","description","indicator","separator","icon","number"]),Xt=W("stepper-indicator-size"),nn=W("stepper-icon-size"),on=W("stepper-title-font-size"),oo=W("stepper-description-font-size"),Gn=W("stepper-accent-color"),XC=no(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[Gn.variable]:`colors.${e}.500`,_dark:{[Gn.variable]:`colors.${e}.200`}},title:{fontSize:on.reference,fontWeight:"medium"},description:{fontSize:oo.reference,color:"chakra-subtle-text"},number:{fontSize:on.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:nn.reference,height:nn.reference},indicator:{flexShrink:0,borderRadius:"full",width:Xt.reference,height:Xt.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Gn.reference},"&[data-status=complete]":{bg:Gn.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Gn.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Xt.reference} - 8px)`,top:`calc(${Xt.reference} + 4px)`,insetStart:`calc(${Xt.reference} / 2 - 1px)`}}})),YC=KC({baseStyle:XC,sizes:{xs:no({stepper:{[Xt.variable]:"sizes.4",[nn.variable]:"sizes.3",[on.variable]:"fontSizes.xs",[oo.variable]:"fontSizes.xs"}}),sm:no({stepper:{[Xt.variable]:"sizes.6",[nn.variable]:"sizes.4",[on.variable]:"fontSizes.sm",[oo.variable]:"fontSizes.xs"}}),md:no({stepper:{[Xt.variable]:"sizes.8",[nn.variable]:"sizes.5",[on.variable]:"fontSizes.md",[oo.variable]:"fontSizes.sm"}}),lg:no({stepper:{[Xt.variable]:"sizes.10",[nn.variable]:"sizes.6",[on.variable]:"fontSizes.lg",[oo.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ZC,definePartsStyle:Os}=Te(hS.keys),mo=Ve("switch-track-width"),Ar=Ve("switch-track-height"),gi=Ve("switch-track-diff"),JC=Kt.subtract(mo,Ar),ac=Ve("switch-thumb-x"),qn=Ve("switch-bg"),QC=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[mo.reference],height:[Ar.reference],transitionProperty:"common",transitionDuration:"fast",[qn.variable]:"colors.gray.300",_dark:{[qn.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[qn.variable]:`colors.${t}.500`,_dark:{[qn.variable]:`colors.${t}.200`}},bg:qn.reference}},e_={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Ar.reference],height:[Ar.reference],_checked:{transform:`translateX(${ac.reference})`}},t_=Os(e=>({container:{[gi.variable]:JC,[ac.variable]:gi.reference,_rtl:{[ac.variable]:Kt(gi).negate().toString()}},track:QC(e),thumb:e_})),r_={sm:Os({container:{[mo.variable]:"1.375rem",[Ar.variable]:"sizes.3"}}),md:Os({container:{[mo.variable]:"1.875rem",[Ar.variable]:"sizes.4"}}),lg:Os({container:{[mo.variable]:"2.875rem",[Ar.variable]:"sizes.6"}})},n_=ZC({baseStyle:t_,sizes:r_,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:o_,definePartsStyle:gn}=Te(mS.keys),s_=gn({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Xs={"&[data-is-numeric=true]":{textAlign:"end"}},a_=gn(e=>{const{colorScheme:t}=e;return{th:{color:G("gray.600","gray.400")(e),borderBottom:"1px",borderColor:G(`${t}.100`,`${t}.700`)(e),...Xs},td:{borderBottom:"1px",borderColor:G(`${t}.100`,`${t}.700`)(e),...Xs},caption:{color:G("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),i_=gn(e=>{const{colorScheme:t}=e;return{th:{color:G("gray.600","gray.400")(e),borderBottom:"1px",borderColor:G(`${t}.100`,`${t}.700`)(e),...Xs},td:{borderBottom:"1px",borderColor:G(`${t}.100`,`${t}.700`)(e),...Xs},caption:{color:G("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:G(`${t}.100`,`${t}.700`)(e)},td:{background:G(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),c_={simple:a_,striped:i_,unstyled:{}},l_={sm:gn({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:gn({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:gn({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},u_=o_({baseStyle:s_,variants:c_,sizes:l_,defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}}),et=W("tabs-color"),_t=W("tabs-bg"),hs=W("tabs-border-color"),{defineMultiStyleConfig:d_,definePartsStyle:Nt}=Te(gS.keys),f_=e=>{const{orientation:t}=e;return{display:t==="vertical"?"flex":"block"}},p_=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},h_=e=>{const{align:t="start",orientation:r}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:r==="vertical"?"column":"row"}},m_={p:4},g_=Nt(e=>({root:f_(e),tab:p_(e),tablist:h_(e),tabpanel:m_})),b_={sm:Nt({tab:{py:1,px:4,fontSize:"sm"}}),md:Nt({tab:{fontSize:"md",py:2,px:4}}),lg:Nt({tab:{fontSize:"lg",py:3,px:4}})},y_=Nt(e=>{const{colorScheme:t,orientation:r}=e,n=r==="vertical",o=n?"borderStart":"borderBottom",s=n?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[s]:"-2px",_selected:{[et.variable]:`colors.${t}.600`,_dark:{[et.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[_t.variable]:"colors.gray.200",_dark:{[_t.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:et.reference,bg:_t.reference}}}),v_=Nt(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[hs.variable]:"transparent",_selected:{[et.variable]:`colors.${t}.600`,[hs.variable]:"colors.white",_dark:{[et.variable]:`colors.${t}.300`,[hs.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:hs.reference},color:et.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),x_=Nt(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[_t.variable]:"colors.gray.50",_dark:{[_t.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[_t.variable]:"colors.white",[et.variable]:`colors.${t}.600`,_dark:{[_t.variable]:"colors.gray.800",[et.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:et.reference,bg:_t.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),S_=Nt(e=>{const{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:Ye(r,`${t}.700`),bg:Ye(r,`${t}.100`)}}}}),w_=Nt(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[et.variable]:"colors.gray.600",_dark:{[et.variable]:"inherit"},_selected:{[et.variable]:"colors.white",[_t.variable]:`colors.${t}.600`,_dark:{[et.variable]:"colors.gray.800",[_t.variable]:`colors.${t}.300`}},color:et.reference,bg:_t.reference}}}),k_=Nt({}),C_={line:y_,enclosed:v_,"enclosed-colored":x_,"soft-rounded":S_,"solid-rounded":w_,unstyled:k_},__=d_({baseStyle:g_,sizes:b_,variants:C_,defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),{defineMultiStyleConfig:P_,definePartsStyle:Er}=Te(bS.keys),bd=W("tag-bg"),yd=W("tag-color"),bi=W("tag-shadow"),Fs=W("tag-min-height"),Ds=W("tag-min-width"),js=W("tag-font-size"),Ns=W("tag-padding-inline"),T_={fontWeight:"medium",lineHeight:1.2,outline:0,[yd.variable]:De.color.reference,[bd.variable]:De.bg.reference,[bi.variable]:De.shadow.reference,color:yd.reference,bg:bd.reference,boxShadow:bi.reference,borderRadius:"md",minH:Fs.reference,minW:Ds.reference,fontSize:js.reference,px:Ns.reference,_focusVisible:{[bi.variable]:"shadows.outline"}},A_={lineHeight:1.2,overflow:"visible"},E_={fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}},R_=Er({container:T_,label:A_,closeButton:E_}),$_={sm:Er({container:{[Fs.variable]:"sizes.5",[Ds.variable]:"sizes.5",[js.variable]:"fontSizes.xs",[Ns.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Er({container:{[Fs.variable]:"sizes.6",[Ds.variable]:"sizes.6",[js.variable]:"fontSizes.sm",[Ns.variable]:"space.2"}}),lg:Er({container:{[Fs.variable]:"sizes.8",[Ds.variable]:"sizes.8",[js.variable]:"fontSizes.md",[Ns.variable]:"space.3"}})},I_={subtle:Er(e=>{var t;return{container:(t=fo.variants)==null?void 0:t.subtle(e)}}),solid:Er(e=>{var t;return{container:(t=fo.variants)==null?void 0:t.solid(e)}}),outline:Er(e=>{var t;return{container:(t=fo.variants)==null?void 0:t.outline(e)}})},M_=P_({variants:I_,baseStyle:R_,sizes:$_,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}});var Ep;const O_={...(Ep=ge.baseStyle)==null?void 0:Ep.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"};var Rp;const F_={outline:e=>{var t;return((t=ge.variants)==null?void 0:t.outline(e).field)??{}},flushed:e=>{var t;return((t=ge.variants)==null?void 0:t.flushed(e).field)??{}},filled:e=>{var t;return((t=ge.variants)==null?void 0:t.filled(e).field)??{}},unstyled:((Rp=ge.variants)==null?void 0:Rp.unstyled.field)??{}};var $p,Ip,Mp,Op;const D_={xs:(($p=ge.sizes)==null?void 0:$p.xs.field)??{},sm:((Ip=ge.sizes)==null?void 0:Ip.sm.field)??{},md:((Mp=ge.sizes)==null?void 0:Mp.md.field)??{},lg:((Op=ge.sizes)==null?void 0:Op.lg.field)??{}},j_={baseStyle:O_,sizes:D_,variants:F_,defaultProps:{size:"md",variant:"outline"}},ms=Ve("tooltip-bg"),yi=Ve("tooltip-fg"),N_=Ve("popper-arrow-bg"),B_={bg:ms.reference,color:yi.reference,[ms.variable]:"colors.gray.700",[yi.variable]:"colors.whiteAlpha.900",_dark:{[ms.variable]:"colors.gray.300",[yi.variable]:"colors.gray.900"},[N_.variable]:ms.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"},z_={baseStyle:B_},L_={Accordion:PS,Alert:l1,Avatar:x1,Badge:fo,Breadcrumb:R1,Button:B1,Checkbox:ir,CloseButton:ew,Code:ow,Container:aw,Divider:dw,Drawer:ww,Editable:Ew,Form:Fw,FormError:Lw,FormLabel:Ww,Heading:Gw,Input:ge,Kbd:rk,Link:ok,List:lk,Menu:xk,Modal:$k,NumberInput:zk,PinInput:Hk,Popover:tC,Progress:lC,Radio:hC,Select:SC,Skeleton:kC,SkipLink:_C,Slider:DC,Spinner:BC,Stat:qC,Switch:n_,Table:u_,Tabs:__,Tag:M_,Textarea:j_,Tooltip:z_,Card:H1,Stepper:YC},V_={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},W_={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},H_={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"}},U_={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},G_={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},q_={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},K_={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},X_={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},Y_={property:q_,easing:K_,duration:X_},Z_={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},J_={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},Q_={breakpoints:W_,zIndices:Z_,radii:U_,blur:J_,colors:H_,...Ph,sizes:xh,shadows:G_,space:vh,borders:V_,transition:Y_},eP={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},tP={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},rP=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function nP(e){return je(e)?rP.every(t=>Object.prototype.hasOwnProperty.call(e,t)):!1}const oP="ltr",sP={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},dl={semanticTokens:eP,direction:oP,...Q_,components:L_,styles:tP,config:sP};var vd=function(t,r){var n=arguments;if(r==null||!Qc.call(r,"css"))return p.createElement.apply(void 0,n);var o=n.length,s=new Array(o);s[0]=Uv,s[1]=Vv(t,r);for(var a=2;a<o;a++)s[a]=n[a];return p.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(vd||(vd={}));var Sa=ha(function(e,t){var r=e.styles,n=pa([r],void 0,p.useContext(wn)),o=p.useRef();return Ju(function(){var s=t.key+"-global",a=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,c=document.querySelector('style[data-emotion="'+s+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(i=!0,c.setAttribute("data-emotion",s),a.hydrate([c])),o.current=[a,i],function(){a.flush()}},[t]),Ju(function(){var s=o.current,a=s[0],i=s[1];if(i){s[1]=!1;return}if(n.next!==void 0&&Jc(t,n.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});function aP(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return pa(t)}function Vt(){var e=aP.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}const wa=p.createContext({});wa.displayName="ColorModeContext";function ka(){const e=p.useContext(wa);if(e===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return e}function gj(e,t){const{colorMode:r}=ka();return r==="dark"?t:e}const gs={light:"chakra-ui-light",dark:"chakra-ui-dark"};function iP(e={}){const{preventTransition:t=!0,nonce:r}=e,n={setDataset:o=>{const s=t?n.preventTransition():void 0;document.documentElement.dataset.theme=o,document.documentElement.style.colorScheme=o,s==null||s()},setClassName(o){document.body.classList.add(o?gs.dark:gs.light),document.body.classList.remove(o?gs.light:gs.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(o){return n.query().matches??o==="dark"?"dark":"light"},addListener(o){const s=n.query(),a=i=>{o(i.matches?"dark":"light")};return typeof s.addListener=="function"?s.addListener(a):s.addEventListener("change",a),()=>{typeof s.removeListener=="function"?s.removeListener(a):s.removeEventListener("change",a)}},preventTransition(){const o=document.createElement("style");return o.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),r!==void 0&&(o.nonce=r),document.head.appendChild(o),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(o)})})}}};return n}const cP="chakra-ui-color-mode";function lP(e){return{ssr:!1,type:"localStorage",get(t){if(!(globalThis!=null&&globalThis.document))return t;let r;try{r=localStorage.getItem(e)||t}catch{}return r||t},set(t){try{localStorage.setItem(e,t)}catch{}}}}const uP=lP(cP),xd=()=>{},dP=Gv()?p.useLayoutEffect:p.useEffect;function Sd(e,t){return e.type==="cookie"&&e.ssr?e.get(t):t}const Rh=ha(function(t,r){const{value:n,children:o,options:{useSystemColorMode:s,initialColorMode:a,disableTransitionOnChange:i}={},colorModeManager:c=uP}=t,l=a==="dark"?"dark":"light",[u,d]=p.useState(()=>Sd(c,l)),[f,h]=p.useState(()=>Sd(c)),{getSystemTheme:g,setClassName:m,setDataset:b,addListener:S}=p.useMemo(()=>iP({preventTransition:i,nonce:r==null?void 0:r.nonce}),[i,r==null?void 0:r.nonce]),v=a==="system"&&!u?f:u,x=p.useCallback(A=>{const T=A==="system"?g():A;d(T),m(T==="dark"),b(T),c.set(T)},[c,g,m,b]);dP(()=>{a==="system"&&h(g())},[]),p.useEffect(()=>{const A=c.get();if(A){x(A);return}if(a==="system"){x("system");return}x(l)},[c,l,a,x]);const C=p.useCallback(()=>{x(v==="dark"?"light":"dark")},[v,x]);p.useEffect(()=>{if(s)return S(x)},[s,S,x]);const k=p.useMemo(()=>({colorMode:n??v,toggleColorMode:n?xd:C,setColorMode:n?xd:x,forced:n!==void 0}),[v,C,x,n]);return y.jsx(wa.Provider,{value:k,children:o})});Rh.displayName="ColorModeProvider";const $h=String.raw,Ih=$h`
  :root,
  :host {
    --chakra-vh: 100vh;
  }

  @supports (height: -webkit-fill-available) {
    :root,
    :host {
      --chakra-vh: -webkit-fill-available;
    }
  }

  @supports (height: -moz-fill-available) {
    :root,
    :host {
      --chakra-vh: -moz-fill-available;
    }
  }

  @supports (height: 100dvh) {
    :root,
    :host {
      --chakra-vh: 100dvh;
    }
  }
`,fP=()=>y.jsx(Sa,{styles:Ih}),pP=({scope:e=""})=>y.jsx(Sa,{styles:$h`
      html {
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
        font-family: system-ui, sans-serif;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
        -moz-osx-font-smoothing: grayscale;
        touch-action: manipulation;
      }

      body {
        position: relative;
        min-height: 100%;
        margin: 0;
        font-feature-settings: "kern";
      }

      ${e} :where(*, *::before, *::after) {
        border-width: 0;
        border-style: solid;
        box-sizing: border-box;
        word-wrap: break-word;
      }

      main {
        display: block;
      }

      ${e} hr {
        border-top-width: 1px;
        box-sizing: content-box;
        height: 0;
        overflow: visible;
      }

      ${e} :where(pre, code, kbd,samp) {
        font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
        font-size: 1em;
      }

      ${e} a {
        background-color: transparent;
        color: inherit;
        text-decoration: inherit;
      }

      ${e} abbr[title] {
        border-bottom: none;
        text-decoration: underline;
        -webkit-text-decoration: underline dotted;
        text-decoration: underline dotted;
      }

      ${e} :where(b, strong) {
        font-weight: bold;
      }

      ${e} small {
        font-size: 80%;
      }

      ${e} :where(sub,sup) {
        font-size: 75%;
        line-height: 0;
        position: relative;
        vertical-align: baseline;
      }

      ${e} sub {
        bottom: -0.25em;
      }

      ${e} sup {
        top: -0.5em;
      }

      ${e} img {
        border-style: none;
      }

      ${e} :where(button, input, optgroup, select, textarea) {
        font-family: inherit;
        font-size: 100%;
        line-height: 1.15;
        margin: 0;
      }

      ${e} :where(button, input) {
        overflow: visible;
      }

      ${e} :where(button, select) {
        text-transform: none;
      }

      ${e} :where(
          button::-moz-focus-inner,
          [type="button"]::-moz-focus-inner,
          [type="reset"]::-moz-focus-inner,
          [type="submit"]::-moz-focus-inner
        ) {
        border-style: none;
        padding: 0;
      }

      ${e} fieldset {
        padding: 0.35em 0.75em 0.625em;
      }

      ${e} legend {
        box-sizing: border-box;
        color: inherit;
        display: table;
        max-width: 100%;
        padding: 0;
        white-space: normal;
      }

      ${e} progress {
        vertical-align: baseline;
      }

      ${e} textarea {
        overflow: auto;
      }

      ${e} :where([type="checkbox"], [type="radio"]) {
        box-sizing: border-box;
        padding: 0;
      }

      ${e} input[type="number"]::-webkit-inner-spin-button,
      ${e} input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none !important;
      }

      ${e} input[type="number"] {
        -moz-appearance: textfield;
      }

      ${e} input[type="search"] {
        -webkit-appearance: textfield;
        outline-offset: -2px;
      }

      ${e} input[type="search"]::-webkit-search-decoration {
        -webkit-appearance: none !important;
      }

      ${e} ::-webkit-file-upload-button {
        -webkit-appearance: button;
        font: inherit;
      }

      ${e} details {
        display: block;
      }

      ${e} summary {
        display: list-item;
      }

      template {
        display: none;
      }

      [hidden] {
        display: none !important;
      }

      ${e} :where(
          blockquote,
          dl,
          dd,
          h1,
          h2,
          h3,
          h4,
          h5,
          h6,
          hr,
          figure,
          p,
          pre
        ) {
        margin: 0;
      }

      ${e} button {
        background: transparent;
        padding: 0;
      }

      ${e} fieldset {
        margin: 0;
        padding: 0;
      }

      ${e} :where(ol, ul) {
        margin: 0;
        padding: 0;
      }

      ${e} textarea {
        resize: vertical;
      }

      ${e} :where(button, [role="button"]) {
        cursor: pointer;
      }

      ${e} button::-moz-focus-inner {
        border: 0 !important;
      }

      ${e} table {
        border-collapse: collapse;
      }

      ${e} :where(h1, h2, h3, h4, h5, h6) {
        font-size: inherit;
        font-weight: inherit;
      }

      ${e} :where(button, input, optgroup, select, textarea) {
        padding: 0;
        line-height: inherit;
        color: inherit;
      }

      ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
        display: block;
      }

      ${e} :where(img, video) {
        max-width: 100%;
        height: auto;
      }

      [data-js-focus-visible]
        :focus:not([data-focus-visible-added]):not(
          [data-focus-visible-disabled]
        ) {
        outline: none;
        box-shadow: none;
      }

      ${e} select::-ms-expand {
        display: none;
      }

      ${Ih}
    `});function Mh(e){const{cssVarsRoot:t,theme:r,children:n}=e,o=p.useMemo(()=>qx(r),[r]);return y.jsxs(Lv,{theme:o,children:[y.jsx(hP,{root:t}),n]})}function hP({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return y.jsx(Sa,{styles:r=>({[t]:r.__cssVars})})}ae({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function Oh(e){return ae({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function mP(){const{colorMode:e}=ka();return y.jsx(Sa,{styles:t=>{const r=eh(t,"styles.global"),n=He(r,{theme:t,colorMode:e});return n?mh(n)(t):void 0}})}const[gP,bP]=ae({strict:!1,name:"PortalManagerContext"});function Fh(e){const{children:t,zIndex:r}=e;return y.jsx(gP,{value:{zIndex:r},children:t})}Fh.displayName="PortalManager";const fl=p.createContext({getDocument(){return document},getWindow(){return window}});fl.displayName="EnvironmentContext";function yP({defer:e}={}){const[,t]=p.useReducer(r=>r+1,0);return Zt(()=>{e&&t()},[e]),p.useContext(fl)}function Dh(e){const{children:t,environment:r,disabled:n}=e,o=p.useRef(null),s=p.useMemo(()=>r||{getDocument:()=>{var i;return((i=o.current)==null?void 0:i.ownerDocument)??document},getWindow:()=>{var i;return((i=o.current)==null?void 0:i.ownerDocument.defaultView)??window}},[r]),a=!n||!r;return y.jsxs(fl.Provider,{value:s,children:[t,a&&y.jsx("span",{id:"__chakra_env",hidden:!0,ref:o})]})}Dh.displayName="EnvironmentProvider";const vP=e=>{const{children:t,colorModeManager:r,portalZIndex:n,resetScope:o,resetCSS:s=!0,theme:a={},environment:i,cssVarsRoot:c,disableEnvironment:l,disableGlobalStyle:u}=e,d=y.jsx(Dh,{environment:i,disabled:l,children:t});return y.jsx(Mh,{theme:a,cssVarsRoot:c,children:y.jsxs(Rh,{colorModeManager:r,options:a.config,children:[s?y.jsx(pP,{scope:o}):y.jsx(fP,{}),!u&&y.jsx(mP,{}),n?y.jsx(Fh,{zIndex:n,children:d}):d]})})},pl=p.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ca=p.createContext({});function xP(){return p.useContext(Ca).visualElement}const Dn=p.createContext(null),_a=typeof document<"u",Ys=_a?p.useLayoutEffect:p.useEffect,jh=p.createContext({strict:!1});function SP(e,t,r,n){const o=xP(),s=p.useContext(jh),a=p.useContext(Dn),i=p.useContext(pl).reducedMotion,c=p.useRef();n=n||s.renderer,!c.current&&n&&(c.current=n(e,{visualState:t,parent:o,props:r,presenceId:a?a.id:void 0,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:i}));const l=c.current;return Ys(()=>{l&&l.render()}),(window.HandoffAppearAnimations?Ys:p.useEffect)(()=>{l&&l.animationState&&l.animationState.animateChanges()}),l}function sn(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function wP(e,t,r){return p.useCallback(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):sn(r)&&(r.current=n))},[t])}function Ro(e){return typeof e=="string"||Array.isArray(e)}function Pa(e){return typeof e=="object"&&typeof e.start=="function"}const kP=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Ta(e){return Pa(e.animate)||kP.some(t=>Ro(e[t]))}function Nh(e){return!!(Ta(e)||e.variants)}function CP(e,t){if(Ta(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Ro(r)?r:void 0,animate:Ro(n)?n:void 0}}return e.inherit!==!1?t:{}}function _P(e){const{initial:t,animate:r}=CP(e,p.useContext(Ca));return p.useMemo(()=>({initial:t,animate:r}),[wd(t),wd(r)])}function wd(e){return Array.isArray(e)?e.join(" "):e}const Gt=e=>({isEnabled:t=>e.some(r=>!!t[r])}),$o={measureLayout:Gt(["layout","layoutId","drag"]),animation:Gt(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Gt(["exit"]),drag:Gt(["drag","dragControls"]),focus:Gt(["whileFocus"]),hover:Gt(["whileHover","onHoverStart","onHoverEnd"]),tap:Gt(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Gt(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Gt(["whileInView","onViewportEnter","onViewportLeave"])};function PP(e){for(const t in e)t==="projectionNodeConstructor"?$o.projectionNodeConstructor=e[t]:$o[t].Component=e[t]}function Aa(e){const t=p.useRef(null);return t.current===null&&(t.current=e()),t.current}const go={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let TP=1;function AP(){return Aa(()=>{if(go.hasEverUpdated)return TP++})}const hl=p.createContext({});class EP extends ht.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:r}=this.props;return t&&t.setProps(r),null}componentDidUpdate(){}render(){return this.props.children}}const Bh=p.createContext({}),RP=Symbol.for("motionComponentSymbol");function $P({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:r,useRender:n,useVisualState:o,Component:s}){e&&PP(e);function a(c,l){const u={...p.useContext(pl),...c,layoutId:IP(c)},{isStatic:d}=u;let f=null;const h=_P(c),g=d?void 0:AP(),m=o(c,d);if(!d&&_a){h.visualElement=SP(s,m,u,t);const b=p.useContext(jh).strict,S=p.useContext(Bh);h.visualElement&&(f=h.visualElement.loadFeatures(u,b,e,g,r||$o.projectionNodeConstructor,S))}return p.createElement(EP,{visualElement:h.visualElement,props:u},f,p.createElement(Ca.Provider,{value:h},n(s,c,g,wP(m,h.visualElement,l),m,d,h.visualElement)))}const i=p.forwardRef(a);return i[RP]=s,i}function IP({layoutId:e}){const t=p.useContext(hl).id;return t&&e!==void 0?t+"-"+e:e}function MP(e){function t(n,o={}){return $P(e(n,o))}if(typeof Proxy>"u")return t;const r=new Map;return new Proxy(t,{get:(n,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}const OP=["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 ml(e){return typeof e!="string"||e.includes("-")?!1:!!(OP.indexOf(e)>-1||/[A-Z]/.test(e))}const Zs={};function FP(e){Object.assign(Zs,e)}const Js=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],jn=new Set(Js);function zh(e,{layout:t,layoutId:r}){return jn.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Zs[e]||e==="opacity")}const ot=e=>!!(e!=null&&e.getVelocity),DP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},jP=(e,t)=>Js.indexOf(e)-Js.indexOf(t);function NP({transform:e,transformKeys:t},{enableHardwareAcceleration:r=!0,allowTransformNone:n=!0},o,s){let a="";t.sort(jP);for(const i of t)a+=`${DP[i]||i}(${e[i]}) `;return r&&!e.z&&(a+="translateZ(0)"),a=a.trim(),s?a=s(e,o?"":a):n&&o&&(a="none"),a}function Lh(e){return e.startsWith("--")}const BP=(e,t)=>t&&typeof e=="number"?t.transform(e):e,_n=(e,t,r)=>Math.min(Math.max(r,e),t),Br={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},bo={...Br,transform:e=>_n(0,1,e)},bs={...Br,default:1},yo=e=>Math.round(e*1e5)/1e5,Io=/(-)?([\d]*\.?[\d])+/g,ic=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,zP=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Wo(e){return typeof e=="string"}const Ho=e=>({test:t=>Wo(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ar=Ho("deg"),Bt=Ho("%"),Y=Ho("px"),LP=Ho("vh"),VP=Ho("vw"),kd={...Bt,parse:e=>Bt.parse(e)/100,transform:e=>Bt.transform(e*100)},Cd={...Br,transform:Math.round},Vh={borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,radius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,size:Y,top:Y,right:Y,bottom:Y,left:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,rotate:ar,rotateX:ar,rotateY:ar,rotateZ:ar,scale:bs,scaleX:bs,scaleY:bs,scaleZ:bs,skew:ar,skewX:ar,skewY:ar,distance:Y,translateX:Y,translateY:Y,translateZ:Y,x:Y,y:Y,z:Y,perspective:Y,transformPerspective:Y,opacity:bo,originX:kd,originY:kd,originZ:Y,zIndex:Cd,fillOpacity:bo,strokeOpacity:bo,numOctaves:Cd};function gl(e,t,r,n){const{style:o,vars:s,transform:a,transformKeys:i,transformOrigin:c}=e;i.length=0;let l=!1,u=!1,d=!0;for(const f in t){const h=t[f];if(Lh(f)){s[f]=h;continue}const g=Vh[f],m=BP(h,g);if(jn.has(f)){if(l=!0,a[f]=m,i.push(f),!d)continue;h!==(g.default||0)&&(d=!1)}else f.startsWith("origin")?(u=!0,c[f]=m):o[f]=m}if(t.transform||(l||n?o.transform=NP(e,r,d,n):o.transform&&(o.transform="none")),u){const{originX:f="50%",originY:h="50%",originZ:g=0}=c;o.transformOrigin=`${f} ${h} ${g}`}}const bl=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function Wh(e,t,r){for(const n in t)!ot(t[n])&&!zh(n,r)&&(e[n]=t[n])}function WP({transformTemplate:e},t,r){return p.useMemo(()=>{const n=bl();return gl(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function HP(e,t,r){const n=e.style||{},o={};return Wh(o,n,e),Object.assign(o,WP(e,t,r)),e.transformValues?e.transformValues(o):o}function UP(e,t,r){const n={},o=HP(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),n.style=o,n}const GP=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","viewport"]);function Qs(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||GP.has(e)}let Hh=e=>!Qs(e);function qP(e){e&&(Hh=t=>t.startsWith("on")?!Qs(t):e(t))}try{qP(require("@emotion/is-prop-valid").default)}catch{}function KP(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(Hh(o)||r===!0&&Qs(o)||!t&&!Qs(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}function _d(e,t,r){return typeof e=="string"?e:Y.transform(t+r*e)}function XP(e,t,r){const n=_d(t,e.x,e.width),o=_d(r,e.y,e.height);return`${n} ${o}`}const YP={offset:"stroke-dashoffset",array:"stroke-dasharray"},ZP={offset:"strokeDashoffset",array:"strokeDasharray"};function JP(e,t,r=1,n=0,o=!0){e.pathLength=1;const s=o?YP:ZP;e[s.offset]=Y.transform(-n);const a=Y.transform(t),i=Y.transform(r);e[s.array]=`${a} ${i}`}function yl(e,{attrX:t,attrY:r,originX:n,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:i=0,...c},l,u,d){if(gl(e,c,l,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:g}=e;f.transform&&(g&&(h.transform=f.transform),delete f.transform),g&&(n!==void 0||o!==void 0||h.transform)&&(h.transformOrigin=XP(g,n!==void 0?n:.5,o!==void 0?o:.5)),t!==void 0&&(f.x=t),r!==void 0&&(f.y=r),s!==void 0&&JP(f,s,a,i,!1)}const Uh=()=>({...bl(),attrs:{}}),vl=e=>typeof e=="string"&&e.toLowerCase()==="svg";function QP(e,t,r,n){const o=p.useMemo(()=>{const s=Uh();return yl(s,t,{enableHardwareAcceleration:!1},vl(n),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Wh(s,e.style,e),o.style={...s,...o.style}}return o}function eT(e=!1){return(r,n,o,s,{latestValues:a},i)=>{const l=(ml(r)?QP:UP)(n,a,i,r),d={...KP(n,typeof r=="string",e),...l,ref:s},{children:f}=n,h=p.useMemo(()=>ot(f)?f.get():f,[f]);return o&&(d["data-projection-id"]=o),p.createElement(r,{...d,children:h})}}const xl=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Gh(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const s in r)e.style.setProperty(s,r[s])}const qh=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"]);function Kh(e,t,r,n){Gh(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(qh.has(o)?o:xl(o),t.attrs[o])}function Sl(e,t){const{style:r}=e,n={};for(const o in r)(ot(r[o])||t.style&&ot(t.style[o])||zh(o,e))&&(n[o]=r[o]);return n}function Xh(e,t){const r=Sl(e,t);for(const n in e)if(ot(e[n])||ot(t[n])){const o=n==="x"||n==="y"?"attr"+n.toUpperCase():n;r[o]=e[n]}return r}function wl(e,t,r,n={},o={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),t}const ea=e=>Array.isArray(e),tT=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),rT=e=>ea(e)?e[e.length-1]||0:e;function Bs(e){const t=ot(e)?e.get():e;return tT(t)?t.toValue():t}function nT({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,s){const a={latestValues:oT(n,o,s,e),renderState:t()};return r&&(a.mount=i=>r(n,i,a)),a}const Yh=e=>(t,r)=>{const n=p.useContext(Ca),o=p.useContext(Dn),s=()=>nT(e,t,n,o);return r?s():Aa(s)};function oT(e,t,r,n){const o={},s=n(e,{});for(const f in s)o[f]=Bs(s[f]);let{initial:a,animate:i}=e;const c=Ta(e),l=Nh(e);t&&l&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),i===void 0&&(i=t.animate));let u=r?r.initial===!1:!1;u=u||a===!1;const d=u?i:a;return d&&typeof d!="boolean"&&!Pa(d)&&(Array.isArray(d)?d:[d]).forEach(h=>{const g=wl(e,h);if(!g)return;const{transitionEnd:m,transition:b,...S}=g;for(const v in S){let x=S[v];if(Array.isArray(x)){const C=u?x.length-1:0;x=x[C]}x!==null&&(o[v]=x)}for(const v in m)o[v]=m[v]}),o}const sT={useVisualState:Yh({scrapeMotionValuesFromProps:Xh,createRenderState:Uh,onMount:(e,t,{renderState:r,latestValues:n})=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}yl(r,n,{enableHardwareAcceleration:!1},vl(t.tagName),e.transformTemplate),Kh(t,r)}})},aT={useVisualState:Yh({scrapeMotionValuesFromProps:Sl,createRenderState:bl})};function iT(e,{forwardMotionProps:t=!1},r,n,o){return{...ml(e)?sT:aT,preloadedFeatures:r,useRender:eT(t),createVisualElement:n,projectionNodeConstructor:o,Component:e}}var Pe;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(Pe||(Pe={}));function Ea(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function cc(e,t,r,n){p.useEffect(()=>{const o=e.current;if(r&&o)return Ea(o,t,r,n)},[e,t,r,n])}function cT({whileFocus:e,visualElement:t}){const{animationState:r}=t,n=p.useCallback(()=>{r&&r.setActive(Pe.Focus,!0)},[r]),o=p.useCallback(()=>{r&&r.setActive(Pe.Focus,!1)},[r]);cc(t,"focus",e?n:void 0),cc(t,"blur",e?o:void 0)}const Zh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function kl(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Jh=e=>t=>Zh(t)&&e(t,kl(t));function bn(e,t,r,n){return Ea(e,t,Jh(r),n)}function ta(e,t,r,n){return cc(e,t,r&&Jh(r),n)}function Qh(e){let t=null;return()=>{const r=()=>{t=null};return t===null?(t=e,r):!1}}const Pd=Qh("dragHorizontal"),Td=Qh("dragVertical");function em(e){let t=!1;if(e==="y")t=Td();else if(e==="x")t=Pd();else{const r=Pd(),n=Td();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function tm(){const e=em(!0);return e?(e(),!1):!0}function Ad(e,t,r,n){return(o,s)=>{o.type==="touch"||tm()||(r&&e.animationState&&e.animationState.setActive(Pe.Hover,t),n&&n(o,s))}}function lT({onHoverStart:e,onHoverEnd:t,whileHover:r,visualElement:n}){ta(n,"pointerenter",p.useMemo(()=>e||r?Ad(n,!0,!!r,e):void 0,[e,!!r,n]),{passive:!e}),ta(n,"pointerleave",p.useMemo(()=>t||r?Ad(n,!1,!!r,t):void 0,[e,!!r,n]),{passive:!t})}const rm=(e,t)=>t?e===t?!0:rm(e,t.parentElement):!1;function Cl(e){return p.useEffect(()=>()=>e(),[])}const uT=(e,t)=>r=>t(e(r)),Ra=(...e)=>e.reduce(uT);function dT({onTap:e,onTapStart:t,onTapCancel:r,whileTap:n,visualElement:o,...s}){const a=e||t||r||n,i=p.useRef(!1),c=p.useRef(null),l={passive:!(t||e||r||s.onPointerDown)};function u(){c.current&&c.current(),c.current=null}function d(){return u(),i.current=!1,o.getProps().whileTap&&o.animationState&&o.animationState.setActive(Pe.Tap,!1),!tm()}function f(m,b){var S,v,x,C;d()&&(rm(o.current,m.target)?(C=(x=o.getProps()).onTap)===null||C===void 0||C.call(x,m,b):(v=(S=o.getProps()).onTapCancel)===null||v===void 0||v.call(S,m,b))}function h(m,b){var S,v;d()&&((v=(S=o.getProps()).onTapCancel)===null||v===void 0||v.call(S,m,b))}const g=p.useCallback((m,b)=>{var S;if(u(),i.current)return;i.current=!0,c.current=Ra(bn(window,"pointerup",f,l),bn(window,"pointercancel",h,l));const v=o.getProps();v.whileTap&&o.animationState&&o.animationState.setActive(Pe.Tap,!0),(S=v.onTapStart)===null||S===void 0||S.call(v,m,b)},[!!t,o]);ta(o,"pointerdown",a?g:void 0,l),Cl(u)}const lc=new WeakMap,vi=new WeakMap,fT=e=>{const t=lc.get(e.target);t&&t(e)},pT=e=>{e.forEach(fT)};function hT({root:e,...t}){const r=e||document;vi.has(r)||vi.set(r,{});const n=vi.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(pT,{root:e,...t})),n[o]}function mT(e,t,r){const n=hT(t);return lc.set(e,r),n.observe(e),()=>{lc.delete(e),n.unobserve(e)}}function gT({visualElement:e,whileInView:t,onViewportEnter:r,onViewportLeave:n,viewport:o={}}){const s=p.useRef({hasEnteredView:!1,isInView:!1});let a=!!(t||r||n);o.once&&s.current.hasEnteredView&&(a=!1),(typeof IntersectionObserver>"u"?vT:yT)(a,s.current,e,o)}const bT={some:0,all:1};function yT(e,t,r,{root:n,margin:o,amount:s="some",once:a}){p.useEffect(()=>{if(!e||!r.current)return;const i={root:n==null?void 0:n.current,rootMargin:o,threshold:typeof s=="number"?s:bT[s]},c=l=>{const{isIntersecting:u}=l;if(t.isInView===u||(t.isInView=u,a&&!u&&t.hasEnteredView))return;u&&(t.hasEnteredView=!0),r.animationState&&r.animationState.setActive(Pe.InView,u);const d=r.getProps(),f=u?d.onViewportEnter:d.onViewportLeave;f&&f(l)};return mT(r.current,i,c)},[e,n,o,s])}function vT(e,t,r,{fallback:n=!0}){p.useEffect(()=>{!e||!n||requestAnimationFrame(()=>{t.hasEnteredView=!0;const{onViewportEnter:o}=r.getProps();o&&o(null),r.animationState&&r.animationState.setActive(Pe.InView,!0)})},[e])}const ur=e=>t=>(e(t),null),xT={inView:ur(gT),tap:ur(dT),focus:ur(cT),hover:ur(lT)};function _l(){const e=p.useContext(Dn);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:r,register:n}=e,o=p.useId();return p.useEffect(()=>n(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}function ST(){return wT(p.useContext(Dn))}function wT(e){return e===null?!0:e.isPresent}function nm(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}const kT=e=>/^\-?\d*\.?\d+$/.test(e),CT=e=>/^0[^.\s]+$/.test(e),Qt={delta:0,timestamp:0},om=1/60*1e3,_T=typeof performance<"u"?()=>performance.now():()=>Date.now(),sm=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(_T()),om);function PT(e){let t=[],r=[],n=0,o=!1,s=!1;const a=new WeakSet,i={schedule:(c,l=!1,u=!1)=>{const d=u&&o,f=d?t:r;return l&&a.add(c),f.indexOf(c)===-1&&(f.push(c),d&&o&&(n=t.length)),c},cancel:c=>{const l=r.indexOf(c);l!==-1&&r.splice(l,1),a.delete(c)},process:c=>{if(o){s=!0;return}if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let l=0;l<n;l++){const u=t[l];u(c),a.has(u)&&(i.schedule(u),e())}o=!1,s&&(s=!1,i.process(c))}};return i}const TT=40;let uc=!0,Mo=!1,dc=!1;const Uo=["read","update","preRender","render","postRender"],$a=Uo.reduce((e,t)=>(e[t]=PT(()=>Mo=!0),e),{}),Ge=Uo.reduce((e,t)=>{const r=$a[t];return e[t]=(n,o=!1,s=!1)=>(Mo||ET(),r.schedule(n,o,s)),e},{}),dr=Uo.reduce((e,t)=>(e[t]=$a[t].cancel,e),{}),xi=Uo.reduce((e,t)=>(e[t]=()=>$a[t].process(Qt),e),{}),AT=e=>$a[e].process(Qt),am=e=>{Mo=!1,Qt.delta=uc?om:Math.max(Math.min(e-Qt.timestamp,TT),1),Qt.timestamp=e,dc=!0,Uo.forEach(AT),dc=!1,Mo&&(uc=!1,sm(am))},ET=()=>{Mo=!0,uc=!0,dc||sm(am)};function Pl(e,t){e.indexOf(t)===-1&&e.push(t)}function Tl(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class Al{constructor(){this.subscriptions=[]}add(t){return Pl(this.subscriptions,t),()=>Tl(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let s=0;s<o;s++){const a=this.subscriptions[s];a&&a(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function El(e,t){return t?e*(1e3/t):0}const RT=e=>!isNaN(parseFloat(e));class $T{constructor(t,r={}){this.version="8.5.5",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,o=!0)=>{this.prev=this.current,this.current=n;const{delta:s,timestamp:a}=Qt;this.lastUpdated!==a&&(this.timeDelta=s,this.lastUpdated=a,Ge.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ge.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=RT(this.current),this.owner=r.owner}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Al);const n=this.events[t].add(r);return t==="change"?()=>{n(),Ge.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?El(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r)||null,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(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Pn(e,t){return new $T(e,t)}const Rl=(e,t)=>r=>!!(Wo(r)&&zP.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),im=(e,t,r)=>n=>{if(!Wo(n))return n;const[o,s,a,i]=n.match(Io);return{[e]:parseFloat(o),[t]:parseFloat(s),[r]:parseFloat(a),alpha:i!==void 0?parseFloat(i):1}},IT=e=>_n(0,255,e),Si={...Br,transform:e=>Math.round(IT(e))},_r={test:Rl("rgb","red"),parse:im("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Si.transform(e)+", "+Si.transform(t)+", "+Si.transform(r)+", "+yo(bo.transform(n))+")"};function MT(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const fc={test:Rl("#"),parse:MT,transform:_r.transform},an={test:Rl("hsl","hue"),parse:im("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Bt.transform(yo(t))+", "+Bt.transform(yo(r))+", "+yo(bo.transform(n))+")"},Xe={test:e=>_r.test(e)||fc.test(e)||an.test(e),parse:e=>_r.test(e)?_r.parse(e):an.test(e)?an.parse(e):fc.parse(e),transform:e=>Wo(e)?e:e.hasOwnProperty("red")?_r.transform(e):an.transform(e)},cm="${c}",lm="${n}";function OT(e){var t,r;return isNaN(e)&&Wo(e)&&(((t=e.match(Io))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(ic))===null||r===void 0?void 0:r.length)||0)>0}function ra(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0,n=0;const o=e.match(ic);o&&(r=o.length,e=e.replace(ic,cm),t.push(...o.map(Xe.parse)));const s=e.match(Io);return s&&(n=s.length,e=e.replace(Io,lm),t.push(...s.map(Br.parse))),{values:t,numColors:r,numNumbers:n,tokenised:e}}function um(e){return ra(e).values}function dm(e){const{values:t,numColors:r,tokenised:n}=ra(e),o=t.length;return s=>{let a=n;for(let i=0;i<o;i++)a=a.replace(i<r?cm:lm,i<r?Xe.transform(s[i]):yo(s[i]));return a}}const FT=e=>typeof e=="number"?0:e;function DT(e){const t=um(e);return dm(e)(t.map(FT))}const fr={test:OT,parse:um,createTransformer:dm,getAnimatableNone:DT},jT=new Set(["brightness","contrast","saturate","opacity"]);function NT(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Io)||[];if(!n)return e;const o=r.replace(n,"");let s=jT.has(t)?1:0;return n!==r&&(s*=100),t+"("+s+o+")"}const BT=/([a-z-]*)\(.*?\)/g,pc={...fr,getAnimatableNone:e=>{const t=e.match(BT);return t?t.map(NT).join(" "):e}},zT={...Vh,color:Xe,backgroundColor:Xe,outlineColor:Xe,fill:Xe,stroke:Xe,borderColor:Xe,borderTopColor:Xe,borderRightColor:Xe,borderBottomColor:Xe,borderLeftColor:Xe,filter:pc,WebkitFilter:pc},$l=e=>zT[e];function Il(e,t){var r;let n=$l(e);return n!==pc&&(n=fr),(r=n.getAnimatableNone)===null||r===void 0?void 0:r.call(n,t)}const fm=e=>t=>t.test(e),LT={test:e=>e==="auto",parse:e=>e},pm=[Br,Y,Bt,ar,VP,LP,LT],Kn=e=>pm.find(fm(e)),VT=[...pm,Xe,fr],WT=e=>VT.find(fm(e));function HT(e){const t={};return e.values.forEach((r,n)=>t[n]=r.get()),t}function UT(e){const t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function Ia(e,t,r){const n=e.getProps();return wl(n,t,r!==void 0?r:n.custom,HT(e),UT(e))}function GT(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Pn(r))}function qT(e,t){const r=Ia(e,t);let{transitionEnd:n={},transition:o={},...s}=r?e.makeTargetAnimatable(r,!1):{};s={...s,...n};for(const a in s){const i=rT(s[a]);GT(e,a,i)}}function KT(e,t,r){var n,o;const s=Object.keys(t).filter(i=>!e.hasValue(i)),a=s.length;if(a)for(let i=0;i<a;i++){const c=s[i],l=t[c];let u=null;Array.isArray(l)&&(u=l[0]),u===null&&(u=(o=(n=r[c])!==null&&n!==void 0?n:e.readValue(c))!==null&&o!==void 0?o:t[c]),u!=null&&(typeof u=="string"&&(kT(u)||CT(u))?u=parseFloat(u):!WT(u)&&fr.test(l)&&(u=Il(c,l)),e.addValue(c,Pn(u,{owner:e})),r[c]===void 0&&(r[c]=u),u!==null&&e.setBaseTarget(c,u))}}function XT(e,t){return t?(t[e]||t.default||t).from:void 0}function YT(e,t,r){var n;const o={};for(const s in e){const a=XT(s,t);o[s]=a!==void 0?a:(n=r.getValue(s))===null||n===void 0?void 0:n.get()}return o}function na(e){return!!(ot(e)&&e.add)}const ZT="framerAppearId",JT="data-"+xl(ZT);var oa=function(){};const zs=e=>e*1e3,QT={current:!1},Ml=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ol=e=>t=>1-e(1-t),Fl=e=>e*e,eA=Ol(Fl),Dl=Ml(Fl),Oe=(e,t,r)=>-r*e+r*t+e;function wi(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function tA({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,s=0,a=0;if(!t)o=s=a=r;else{const i=r<.5?r*(1+t):r+t-r*t,c=2*r-i;o=wi(c,i,e+1/3),s=wi(c,i,e),a=wi(c,i,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(a*255),alpha:n}}const ki=(e,t,r)=>{const n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},rA=[fc,_r,an],nA=e=>rA.find(t=>t.test(e));function Ed(e){const t=nA(e);let r=t.parse(e);return t===an&&(r=tA(r)),r}const hm=(e,t)=>{const r=Ed(e),n=Ed(t),o={...r};return s=>(o.red=ki(r.red,n.red,s),o.green=ki(r.green,n.green,s),o.blue=ki(r.blue,n.blue,s),o.alpha=Oe(r.alpha,n.alpha,s),_r.transform(o))};function mm(e,t){return typeof e=="number"?r=>Oe(e,t,r):Xe.test(e)?hm(e,t):bm(e,t)}const gm=(e,t)=>{const r=[...e],n=r.length,o=e.map((s,a)=>mm(s,t[a]));return s=>{for(let a=0;a<n;a++)r[a]=o[a](s);return r}},oA=(e,t)=>{const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=mm(e[o],t[o]));return o=>{for(const s in n)r[s]=n[s](o);return r}},bm=(e,t)=>{const r=fr.createTransformer(t),n=ra(e),o=ra(t);return n.numColors===o.numColors&&n.numNumbers>=o.numNumbers?Ra(gm(n.values,o.values),r):a=>`${a>0?t:e}`},sa=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},Rd=(e,t)=>r=>Oe(e,t,r);function sA(e){return typeof e=="number"?Rd:typeof e=="string"?Xe.test(e)?hm:bm:Array.isArray(e)?gm:typeof e=="object"?oA:Rd}function aA(e,t,r){const n=[],o=r||sA(e[0]),s=e.length-1;for(let a=0;a<s;a++){let i=o(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]:t;i=Ra(c,i)}n.push(i)}return n}function ym(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const s=e.length;oa(s===t.length),oa(!n||!Array.isArray(n)||n.length===s-1),e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=aA(t,n,o),i=a.length,c=l=>{let u=0;if(i>1)for(;u<e.length-2&&!(l<e[u+1]);u++);const d=sa(e[u],e[u+1],l);return a[u](d)};return r?l=>c(_n(e[0],e[s-1],l)):c}const jl=e=>e,vm=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,iA=1e-7,cA=12;function lA(e,t,r,n,o){let s,a,i=0;do a=t+(r-t)/2,s=vm(a,n,o)-e,s>0?r=a:t=a;while(Math.abs(s)>iA&&++i<cA);return a}function xm(e,t,r,n){if(e===t&&r===n)return jl;const o=s=>lA(s,0,1,e,r);return s=>s===0||s===1?s:vm(o(s),t,n)}const Sm=e=>1-Math.sin(Math.acos(e)),Nl=Ol(Sm),uA=Ml(Nl),wm=xm(.33,1.53,.69,.99),Bl=Ol(wm),dA=Ml(Bl),fA=e=>(e*=2)<1?.5*Bl(e):.5*(2-Math.pow(2,-10*(e-1))),pA={linear:jl,easeIn:Fl,easeInOut:Dl,easeOut:eA,circIn:Sm,circInOut:uA,circOut:Nl,backIn:Bl,backInOut:dA,backOut:wm,anticipate:fA},$d=e=>{if(Array.isArray(e)){oa(e.length===4);const[t,r,n,o]=e;return xm(t,r,n,o)}else if(typeof e=="string")return pA[e];return e},hA=e=>Array.isArray(e)&&typeof e[0]!="number";function mA(e,t){return e.map(()=>t||Dl).splice(0,e.length-1)}function gA(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function bA(e,t){return e.map(r=>r*t)}function hc({keyframes:e,ease:t=Dl,times:r,duration:n=300}){e=[...e];const o=hA(t)?t.map($d):$d(t),s={done:!1,value:e[0]},a=bA(r&&r.length===e.length?r:gA(e),n);function i(){return ym(a,e,{ease:Array.isArray(o)?o:mA(e,o)})}let c=i();return{next:l=>(s.value=c(l),s.done=l>=n,s),flipTarget:()=>{e.reverse(),c=i()}}}const Id=.001,yA=.01,vA=10,xA=.05,SA=1;function wA({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,s,a=1-t;a=_n(xA,SA,a),e=_n(yA,vA,e/1e3),a<1?(o=l=>{const u=l*a,d=u*e,f=u-r,h=mc(l,a),g=Math.exp(-d);return Id-f/h*g},s=l=>{const d=l*a*e,f=d*r+r,h=Math.pow(a,2)*Math.pow(l,2)*e,g=Math.exp(-d),m=mc(Math.pow(l,2),a);return(-o(l)+Id>0?-1:1)*((f-h)*g)/m}):(o=l=>{const u=Math.exp(-l*e),d=(l-r)*e+1;return-.001+u*d},s=l=>{const u=Math.exp(-l*e),d=(r-l)*(e*e);return u*d});const i=5/e,c=CA(o,s,i);if(e=e*1e3,isNaN(c))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(c,2)*n;return{stiffness:l,damping:a*2*Math.sqrt(n*l),duration:e}}}const kA=12;function CA(e,t,r){let n=r;for(let o=1;o<kA;o++)n=n-e(n)/t(n);return n}function mc(e,t){return e*Math.sqrt(1-t*t)}const _A=["duration","bounce"],PA=["stiffness","damping","mass"];function Md(e,t){return t.some(r=>e[r]!==void 0)}function TA(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Md(e,PA)&&Md(e,_A)){const r=wA(e);t={...t,...r,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}const AA=5;function km({keyframes:e,restDelta:t,restSpeed:r,...n}){let o=e[0],s=e[e.length-1];const a={done:!1,value:o},{stiffness:i,damping:c,mass:l,velocity:u,duration:d,isResolvedFromDuration:f}=TA(n);let h=EA,g=u?-(u/1e3):0;const m=c/(2*Math.sqrt(i*l));function b(){const S=s-o,v=Math.sqrt(i/l)/1e3,x=Math.abs(S)<5;if(r||(r=x?.01:2),t||(t=x?.005:.5),m<1){const C=mc(v,m);h=k=>{const A=Math.exp(-m*v*k);return s-A*((g+m*v*S)/C*Math.sin(C*k)+S*Math.cos(C*k))}}else if(m===1)h=C=>s-Math.exp(-v*C)*(S+(g+v*S)*C);else{const C=v*Math.sqrt(m*m-1);h=k=>{const A=Math.exp(-m*v*k),T=Math.min(C*k,300);return s-A*((g+m*v*S)*Math.sinh(T)+C*S*Math.cosh(T))/C}}}return b(),{next:S=>{const v=h(S);if(f)a.done=S>=d;else{let x=g;if(S!==0)if(m<1){const A=Math.max(0,S-AA);x=El(v-h(A),S-A)}else x=0;const C=Math.abs(x)<=r,k=Math.abs(s-v)<=t;a.done=C&&k}return a.value=a.done?s:v,a},flipTarget:()=>{g=-g,[o,s]=[s,o],b()}}}km.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const EA=e=>0;function RA({keyframes:e=[0],velocity:t=0,power:r=.8,timeConstant:n=350,restDelta:o=.5,modifyTarget:s}){const a=e[0],i={done:!1,value:a};let c=r*t;const l=a+c,u=s===void 0?l:s(l);return u!==l&&(c=u-a),{next:d=>{const f=-c*Math.exp(-d/n);return i.done=!(f>o||f<-o),i.value=i.done?u:u+f,i},flipTarget:()=>{}}}const $A={decay:RA,keyframes:hc,tween:hc,spring:km};function Cm(e,t,r=0){return e-t-r}function IA(e,t=0,r=0,n=!0){return n?Cm(t+-e,t,r):t-(e-t)+r}function MA(e,t,r,n){return n?e>=t+r:e<=-r}const OA=e=>{const t=({delta:r})=>e(r);return{start:()=>Ge.update(t,!0),stop:()=>dr.update(t)}};function aa({duration:e,driver:t=OA,elapsed:r=0,repeat:n=0,repeatType:o="loop",repeatDelay:s=0,keyframes:a,autoplay:i=!0,onPlay:c,onStop:l,onComplete:u,onRepeat:d,onUpdate:f,type:h="keyframes",...g}){var m,b;const S=r;let v,x=0,C=e,k=!1,A=!0,T;const $=$A[a.length>2?"keyframes":h]||hc,M=a[0],I=a[a.length-1];let D={done:!1,value:M};!((b=(m=$).needsInterpolation)===null||b===void 0)&&b.call(m,M,I)&&(T=ym([0,100],[M,I],{clamp:!1}),a=[0,100]);const X=$({...g,duration:e,keyframes:a});function L(){x++,o==="reverse"?(A=x%2===0,r=IA(r,C,s,A)):(r=Cm(r,C,s),o==="mirror"&&X.flipTarget()),k=!1,d&&d()}function q(){v&&v.stop(),u&&u()}function Z(F){A||(F=-F),r+=F,k||(D=X.next(Math.max(0,r)),T&&(D.value=T(D.value)),k=A?D.done:r<=0),f&&f(D.value),k&&(x===0&&(C=C!==void 0?C:r),x<n?MA(r,C,s,A)&&L():q())}function U(){c&&c(),v=t(Z),v.start()}return i&&U(),{stop:()=>{l&&l(),v&&v.stop()},set currentTime(F){r=S,Z(F)},sample:F=>{r=S;const ee=e&&typeof e=="number"?Math.max(e*.5,50):50;let te=0;for(Z(0);te<=F;){const le=F-te;Z(Math.min(le,ee)),te+=ee}return D}}}function FA(e){return!e||Array.isArray(e)||typeof e=="string"&&_m[e]}const so=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,_m={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:so([0,.65,.55,1]),circOut:so([.55,0,1,.45]),backIn:so([.31,.01,.66,-.59]),backOut:so([.33,1.53,.69,.99])};function DA(e){if(e)return Array.isArray(e)?so(e):_m[e]}function jA(e,t,r,{delay:n=0,duration:o,repeat:s=0,repeatType:a="loop",ease:i,times:c}={}){return e.animate({[t]:r,offset:c},{delay:n,duration:o,easing:DA(i),fill:"both",iterations:s+1,direction:a==="reverse"?"alternate":"normal"})}const Od={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},Ci={},Pm={};for(const e in Od)Pm[e]=()=>(Ci[e]===void 0&&(Ci[e]=Od[e]()),Ci[e]);function NA(e,{repeat:t,repeatType:r="loop"}){const n=t&&r!=="loop"&&t%2===1?0:e.length-1;return e[n]}const BA=new Set(["opacity"]),ys=10;function zA(e,t,{onUpdate:r,onComplete:n,...o}){if(!(Pm.waapi()&&BA.has(t)&&!o.repeatDelay&&o.repeatType!=="mirror"&&o.damping!==0))return!1;let{keyframes:a,duration:i=300,elapsed:c=0,ease:l}=o;if(o.type==="spring"||!FA(o.ease)){if(o.repeat===1/0)return;const d=aa({...o,elapsed:0});let f={done:!1,value:a[0]};const h=[];let g=0;for(;!f.done&&g<2e4;)f=d.sample(g),h.push(f.value),g+=ys;a=h,i=g-ys,l="linear"}const u=jA(e.owner.current,t,a,{...o,delay:-c,duration:i,ease:l});return u.onfinish=()=>{e.set(NA(a,o)),Ge.update(()=>u.cancel()),n&&n()},{get currentTime(){return u.currentTime||0},set currentTime(d){u.currentTime=d},stop:()=>{const{currentTime:d}=u;if(d){const f=aa({...o,autoplay:!1});e.setWithVelocity(f.sample(d-ys).value,f.sample(d).value,ys)}Ge.update(()=>u.cancel())}}}function Tm(e,t){const r=performance.now(),n=({timestamp:o})=>{const s=o-r;s>=t&&(dr.read(n),e(s-t))};return Ge.read(n,!0),()=>dr.read(n)}function LA({keyframes:e,elapsed:t,onUpdate:r,onComplete:n}){const o=()=>{r&&r(e[e.length-1]),n&&n()};return t?{stop:Tm(o,-t)}:o()}function VA({keyframes:e,velocity:t=0,min:r,max:n,power:o=.8,timeConstant:s=750,bounceStiffness:a=500,bounceDamping:i=10,restDelta:c=1,modifyTarget:l,driver:u,onUpdate:d,onComplete:f,onStop:h}){const g=e[0];let m;function b(C){return r!==void 0&&C<r||n!==void 0&&C>n}function S(C){return r===void 0?n:n===void 0||Math.abs(r-C)<Math.abs(n-C)?r:n}function v(C){m==null||m.stop(),m=aa({keyframes:[0,1],velocity:0,...C,driver:u,onUpdate:k=>{var A;d==null||d(k),(A=C.onUpdate)===null||A===void 0||A.call(C,k)},onComplete:f,onStop:h})}function x(C){v({type:"spring",stiffness:a,damping:i,restDelta:c,...C})}if(b(g))x({velocity:t,keyframes:[g,S(g)]});else{let C=o*t+g;typeof l<"u"&&(C=l(C));const k=S(C),A=k===r?-1:1;let T,$;const M=I=>{T=$,$=I,t=El(I-T,Qt.delta),(A===1&&I>k||A===-1&&I<k)&&x({keyframes:[I,k],velocity:t})};v({type:"decay",keyframes:[g,0],velocity:t,timeConstant:s,power:o,restDelta:c,modifyTarget:l,onUpdate:b(C)?M:void 0})}return{stop:()=>m==null?void 0:m.stop()}}const xr=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),vs=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),_i=()=>({type:"keyframes",ease:"linear",duration:.3}),WA={type:"keyframes",duration:.8},Fd={x:xr,y:xr,z:xr,rotate:xr,rotateX:xr,rotateY:xr,rotateZ:xr,scaleX:vs,scaleY:vs,scale:vs,opacity:_i,backgroundColor:_i,color:_i,default:vs},HA=(e,{keyframes:t})=>t.length>2?WA:(Fd[e]||Fd.default)(t[1]),gc=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&fr.test(t)&&!t.startsWith("url("));function UA({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:s,repeatType:a,repeatDelay:i,from:c,elapsed:l,...u}){return!!Object.keys(u).length}function Dd(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function jd(e){return typeof e=="number"?0:Il("",e)}function Am(e,t){return e[t]||e.default||e}function GA(e,t,r,n){const o=gc(t,r);let s=n.from!==void 0?n.from:e.get();return s==="none"&&o&&typeof r=="string"?s=Il(t,r):Dd(s)&&typeof r=="string"?s=jd(r):!Array.isArray(r)&&Dd(r)&&typeof s=="string"&&(r=jd(s)),Array.isArray(r)?(r[0]===null&&(r[0]=s),r):[s,r]}const zl=(e,t,r,n={})=>o=>{const s=Am(n,e)||{},a=s.delay||n.delay||0;let{elapsed:i=0}=n;i=i-zs(a);const c=GA(t,e,r,s),l=c[0],u=c[c.length-1],d=gc(e,l),f=gc(e,u);let h={keyframes:c,velocity:t.getVelocity(),...s,elapsed:i,onUpdate:b=>{t.set(b),s.onUpdate&&s.onUpdate(b)},onComplete:()=>{o(),s.onComplete&&s.onComplete()}};if(!d||!f||QT.current||s.type===!1)return LA(h);if(s.type==="inertia")return VA(h);UA(s)||(h={...h,...HA(e,h)}),h.duration&&(h.duration=zs(h.duration)),h.repeatDelay&&(h.repeatDelay=zs(h.repeatDelay));const g=t.owner,m=g&&g.current;if(g&&m instanceof HTMLElement&&!(g!=null&&g.getProps().onUpdate)){const b=zA(t,e,h);if(b)return b}return aa(h)};function qA(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(s=>bc(e,s,r));n=Promise.all(o)}else if(typeof t=="string")n=bc(e,t,r);else{const o=typeof t=="function"?Ia(e,t,r.custom):t;n=Em(e,o,r)}return n.then(()=>e.notify("AnimationComplete",t))}function bc(e,t,r={}){var n;const o=Ia(e,t,r.custom);let{transition:s=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(s=r.transitionOverride);const a=o?()=>Em(e,o,r):()=>Promise.resolve(),i=!((n=e.variantChildren)===null||n===void 0)&&n.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=s;return KA(e,t,u+l,d,f,r)}:()=>Promise.resolve(),{when:c}=s;if(c){const[l,u]=c==="beforeChildren"?[a,i]:[i,a];return l().then(u)}else return Promise.all([a(),i(r.delay)])}function Em(e,t,{delay:r=0,transitionOverride:n,type:o}={}){var s;let{transition:a=e.getDefaultTransition(),transitionEnd:i,...c}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");n&&(a=n);const u=[],d=o&&((s=e.animationState)===null||s===void 0?void 0:s.getState()[o]);for(const f in c){const h=e.getValue(f),g=c[f];if(!h||g===void 0||d&&YA(d,f))continue;const m={delay:r,elapsed:0,...a};if(window.HandoffAppearAnimations&&!h.hasAnimated){const S=e.getProps()[JT];S&&(m.elapsed=window.HandoffAppearAnimations(S,f,h,Ge))}let b=h.start(zl(f,h,g,e.shouldReduceMotion&&jn.has(f)?{type:!1}:m));na(l)&&(l.add(f),b=b.then(()=>l.remove(f))),u.push(b)}return Promise.all(u).then(()=>{i&&qT(e,i)})}function KA(e,t,r=0,n=0,o=1,s){const a=[],i=(e.variantChildren.size-1)*n,c=o===1?(l=0)=>l*n:(l=0)=>i-l*n;return Array.from(e.variantChildren).sort(XA).forEach((l,u)=>{l.notify("AnimationStart",t),a.push(bc(l,t,{...s,delay:r+c(u)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(a)}function XA(e,t){return e.sortNodePosition(t)}function YA({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}const Ll=[Pe.Animate,Pe.InView,Pe.Focus,Pe.Hover,Pe.Tap,Pe.Drag,Pe.Exit],ZA=[...Ll].reverse(),JA=Ll.length;function QA(e){return t=>Promise.all(t.map(({animation:r,options:n})=>qA(e,r,n)))}function eE(e){let t=QA(e);const r=rE();let n=!0;const o=(c,l)=>{const u=Ia(e,l);if(u){const{transition:d,transitionEnd:f,...h}=u;c={...c,...h,...f}}return c};function s(c){t=c(e)}function a(c,l){const u=e.getProps(),d=e.getVariantContext(!0)||{},f=[],h=new Set;let g={},m=1/0;for(let S=0;S<JA;S++){const v=ZA[S],x=r[v],C=u[v]!==void 0?u[v]:d[v],k=Ro(C),A=v===l?x.isActive:null;A===!1&&(m=S);let T=C===d[v]&&C!==u[v]&&k;if(T&&n&&e.manuallyAnimateOnMount&&(T=!1),x.protectedKeys={...g},!x.isActive&&A===null||!C&&!x.prevProp||Pa(C)||typeof C=="boolean")continue;const $=tE(x.prevProp,C);let M=$||v===l&&x.isActive&&!T&&k||S>m&&k;const I=Array.isArray(C)?C:[C];let D=I.reduce(o,{});A===!1&&(D={});const{prevResolvedValues:X={}}=x,L={...X,...D},q=Z=>{M=!0,h.delete(Z),x.needsAnimating[Z]=!0};for(const Z in L){const U=D[Z],F=X[Z];g.hasOwnProperty(Z)||(U!==F?ea(U)&&ea(F)?!nm(U,F)||$?q(Z):x.protectedKeys[Z]=!0:U!==void 0?q(Z):h.add(Z):U!==void 0&&h.has(Z)?q(Z):x.protectedKeys[Z]=!0)}x.prevProp=C,x.prevResolvedValues=D,x.isActive&&(g={...g,...D}),n&&e.blockInitialAnimation&&(M=!1),M&&!T&&f.push(...I.map(Z=>({animation:Z,options:{type:v,...c}})))}if(h.size){const S={};h.forEach(v=>{const x=e.getBaseTarget(v);x!==void 0&&(S[v]=x)}),f.push({animation:S})}let b=!!f.length;return n&&u.initial===!1&&!e.manuallyAnimateOnMount&&(b=!1),n=!1,b?t(f):Promise.resolve()}function i(c,l,u){var d;if(r[c].isActive===l)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var g;return(g=h.animationState)===null||g===void 0?void 0:g.setActive(c,l)}),r[c].isActive=l;const f=a(u,c);for(const h in r)r[h].protectedKeys={};return f}return{animateChanges:a,setActive:i,setAnimateFunction:s,getState:()=>r}}function tE(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!nm(t,e):!1}function Sr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rE(){return{[Pe.Animate]:Sr(!0),[Pe.InView]:Sr(),[Pe.Hover]:Sr(),[Pe.Tap]:Sr(),[Pe.Drag]:Sr(),[Pe.Focus]:Sr(),[Pe.Exit]:Sr()}}const nE={animation:ur(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=eE(e)),Pa(t)&&p.useEffect(()=>t.subscribe(e),[t])}),exit:ur(e=>{const{custom:t,visualElement:r}=e,[n,o]=_l(),s=p.useContext(Dn);p.useEffect(()=>{r.isPresent=n;const a=r.animationState&&r.animationState.setActive(Pe.Exit,!n,{custom:s&&s.custom||t});a&&!n&&a.then(o)},[n])})},Nd=(e,t)=>Math.abs(e-t);function oE(e,t){const r=Nd(e.x,t.x),n=Nd(e.y,t.y);return Math.sqrt(r**2+n**2)}class Rm{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const l=Ti(this.lastMoveEventInfo,this.history),u=this.startEvent!==null,d=oE(l.offset,{x:0,y:0})>=3;if(!u&&!d)return;const{point:f}=l,{timestamp:h}=Qt;this.history.push({...f,timestamp:h});const{onStart:g,onMove:m}=this.handlers;u||(g&&g(this.lastMoveEvent,l),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,l)},this.handlePointerMove=(l,u)=>{this.lastMoveEvent=l,this.lastMoveEventInfo=Pi(u,this.transformPagePoint),Ge.update(this.updatePoint,!0)},this.handlePointerUp=(l,u)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:d,onSessionEnd:f}=this.handlers,h=Ti(l.type==="pointercancel"?this.lastMoveEventInfo:Pi(u,this.transformPagePoint),this.history);this.startEvent&&d&&d(l,h),f&&f(l,h)},!Zh(t))return;this.handlers=r,this.transformPagePoint=n;const o=kl(t),s=Pi(o,this.transformPagePoint),{point:a}=s,{timestamp:i}=Qt;this.history=[{...a,timestamp:i}];const{onSessionStart:c}=r;c&&c(t,Ti(s,this.history)),this.removeListeners=Ra(bn(window,"pointermove",this.handlePointerMove),bn(window,"pointerup",this.handlePointerUp),bn(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),dr.update(this.updatePoint)}}function Pi(e,t){return t?{point:t(e.point)}:e}function Bd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ti({point:e},t){return{point:e,delta:Bd(e,$m(t)),offset:Bd(e,sE(t)),velocity:aE(t,.1)}}function sE(e){return e[0]}function $m(e){return e[e.length-1]}function aE(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=$m(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>zs(t)));)r--;if(!n)return{x:0,y:0};const s=(o.timestamp-n.timestamp)/1e3;if(s===0)return{x:0,y:0};const a={x:(o.x-n.x)/s,y:(o.y-n.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function ut(e){return e.max-e.min}function yc(e,t=0,r=.01){return Math.abs(e-t)<=r}function zd(e,t,r,n=.5){e.origin=n,e.originPoint=Oe(t.min,t.max,e.origin),e.scale=ut(r)/ut(t),(yc(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Oe(r.min,r.max,e.origin)-e.originPoint,(yc(e.translate)||isNaN(e.translate))&&(e.translate=0)}function vo(e,t,r,n){zd(e.x,t.x,r.x,n==null?void 0:n.originX),zd(e.y,t.y,r.y,n==null?void 0:n.originY)}function Ld(e,t,r){e.min=r.min+t.min,e.max=e.min+ut(t)}function iE(e,t,r){Ld(e.x,t.x,r.x),Ld(e.y,t.y,r.y)}function Vd(e,t,r){e.min=t.min-r.min,e.max=e.min+ut(t)}function xo(e,t,r){Vd(e.x,t.x,r.x),Vd(e.y,t.y,r.y)}function cE(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?Oe(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?Oe(r,e,n.max):Math.min(e,r)),e}function Wd(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function lE(e,{top:t,left:r,bottom:n,right:o}){return{x:Wd(e.x,r,o),y:Wd(e.y,t,n)}}function Hd(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function uE(e,t){return{x:Hd(e.x,t.x),y:Hd(e.y,t.y)}}function dE(e,t){let r=.5;const n=ut(e),o=ut(t);return o>n?r=sa(t.min,t.max-n,e.min):n>o&&(r=sa(e.min,e.max-o,t.min)),_n(0,1,r)}function fE(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const vc=.35;function pE(e=vc){return e===!1?e=0:e===!0&&(e=vc),{x:Ud(e,"left","right"),y:Ud(e,"top","bottom")}}function Ud(e,t,r){return{min:Gd(e,t),max:Gd(e,r)}}function Gd(e,t){return typeof e=="number"?e:e[t]||0}const qd=()=>({translate:0,scale:1,origin:0,originPoint:0}),So=()=>({x:qd(),y:qd()}),Kd=()=>({min:0,max:0}),Le=()=>({x:Kd(),y:Kd()});function $t(e){return[e("x"),e("y")]}function Im({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function hE({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function mE(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Ai(e){return e===void 0||e===1}function xc({scale:e,scaleX:t,scaleY:r}){return!Ai(e)||!Ai(t)||!Ai(r)}function wr(e){return xc(e)||Mm(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Mm(e){return Xd(e.x)||Xd(e.y)}function Xd(e){return e&&e!=="0%"}function ia(e,t,r){const n=e-r,o=t*n;return r+o}function Yd(e,t,r,n,o){return o!==void 0&&(e=ia(e,o,n)),ia(e,r,n)+t}function Sc(e,t=0,r=1,n,o){e.min=Yd(e.min,t,r,n,o),e.max=Yd(e.max,t,r,n,o)}function Om(e,{x:t,y:r}){Sc(e.x,t.translate,t.scale,t.originPoint),Sc(e.y,r.translate,r.scale,r.originPoint)}function gE(e,t,r,n=!1){var o,s;const a=r.length;if(!a)return;t.x=t.y=1;let i,c;for(let l=0;l<a;l++)i=r[l],c=i.projectionDelta,((s=(o=i.instance)===null||o===void 0?void 0:o.style)===null||s===void 0?void 0:s.display)!=="contents"&&(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&cn(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,Om(e,c)),n&&wr(i.latestValues)&&cn(e,i.latestValues));t.x=Zd(t.x),t.y=Zd(t.y)}function Zd(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function cr(e,t){e.min=e.min+t,e.max=e.max+t}function Jd(e,t,[r,n,o]){const s=t[o]!==void 0?t[o]:.5,a=Oe(e.min,e.max,s);Sc(e,t[r],t[n],a,t.scale)}const bE=["x","scaleX","originX"],yE=["y","scaleY","originY"];function cn(e,t){Jd(e.x,t,bE),Jd(e.y,t,yE)}function Fm(e,t){return Im(mE(e.getBoundingClientRect(),t))}function vE(e,t,r){const n=Fm(e,r),{scroll:o}=t;return o&&(cr(n.x,o.offset.x),cr(n.y,o.offset.y)),n}const xE=new WeakMap;class SE{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Le(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){if(this.visualElement.isPresent===!1)return;const n=i=>{this.stopAnimation(),r&&this.snapToCursor(kl(i,"page").point)},o=(i,c)=>{var l;const{drag:u,dragPropagation:d,onDragStart:f}=this.getProps();u&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=em(u),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$t(h=>{var g,m;let b=this.getAxisMotionValue(h).get()||0;if(Bt.test(b)){const S=(m=(g=this.visualElement.projection)===null||g===void 0?void 0:g.layout)===null||m===void 0?void 0:m.layoutBox[h];S&&(b=ut(S)*(parseFloat(b)/100))}this.originPoint[h]=b}),f==null||f(i,c),(l=this.visualElement.animationState)===null||l===void 0||l.setActive(Pe.Drag,!0))},s=(i,c)=>{const{dragPropagation:l,dragDirectionLock:u,onDirectionLock:d,onDrag:f}=this.getProps();if(!l&&!this.openGlobalLock)return;const{offset:h}=c;if(u&&this.currentDirection===null){this.currentDirection=wE(h),this.currentDirection!==null&&(d==null||d(this.currentDirection));return}this.updateAxis("x",c.point,h),this.updateAxis("y",c.point,h),this.visualElement.render(),f==null||f(i,c)},a=(i,c)=>this.stop(i,c);this.panSession=new Rm(t,{onSessionStart:n,onStart:o,onMove:s,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:s}=this.getProps();s==null||s(t,r)}cancel(){var t,r;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(r=this.visualElement.animationState)===null||r===void 0||r.setActive(Pe.Drag,!1)}updateAxis(t,r,n){const{drag:o}=this.getProps();if(!n||!xs(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=cE(a,this.constraints[t],this.elastic[t])),s.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},o=this.constraints;t&&sn(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=lE(n.layoutBox,t):this.constraints=!1,this.elastic=pE(r),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&$t(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=fE(n.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!sn(t))return!1;const n=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=vE(n,o.root,this.visualElement.getTransformPagePoint());let a=uE(o.layout.layoutBox,s);if(r){const i=r(hE(a));this.hasMutatedConstraints=!!i,i&&(a=Im(i))}return a}startAnimation(t){const{drag:r,dragMomentum:n,dragElastic:o,dragTransition:s,dragSnapToOrigin:a,onDragTransitionEnd:i}=this.getProps(),c=this.constraints||{},l=$t(u=>{if(!xs(u,r,this.currentDirection))return;let d=(c==null?void 0:c[u])||{};a&&(d={min:0,max:0});const f=o?200:1e6,h=o?40:1e7,g={type:"inertia",velocity:n?t[u]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(u,g)});return Promise.all(l).then(i)}startAxisValueAnimation(t,r){const n=this.getAxisMotionValue(t);return n.start(zl(t,n,0,r))}stopAnimation(){$t(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var r;const n="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[n];return o||this.visualElement.getValue(t,((r=this.visualElement.getProps().initial)===null||r===void 0?void 0:r[t])||0)}snapToCursor(t){$t(r=>{const{drag:n}=this.getProps();if(!xs(r,n,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(r);if(o&&o.layout){const{min:a,max:i}=o.layout.layoutBox[r];s.set(t[r]-Oe(a,i,.5))}})}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;const{drag:r,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!sn(n)||!o||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};$t(i=>{const c=this.getAxisMotionValue(i);if(c){const l=c.get();s[i]=dE({min:l,max:l},this.constraints[i])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",(t=o.root)===null||t===void 0||t.updateScroll(),o.updateLayout(),this.resolveConstraints(),$t(i=>{if(!xs(i,r,null))return;const c=this.getAxisMotionValue(i),{min:l,max:u}=this.constraints[i];c.set(Oe(l,u,s[i]))})}addListeners(){var t;if(!this.visualElement.current)return;xE.set(this.visualElement,this);const r=this.visualElement.current,n=bn(r,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),o=()=>{const{dragConstraints:l}=this.getProps();sn(l)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,a=s.addEventListener("measure",o);s&&!s.layout&&((t=s.root)===null||t===void 0||t.updateScroll(),s.updateLayout()),o();const i=Ea(window,"resize",()=>this.scalePositionWithinConstraints()),c=s.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&($t(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{i(),n(),a(),c==null||c()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:a=vc,dragMomentum:i=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:s,dragElastic:a,dragMomentum:i}}}function xs(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function wE(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}function kE(e){const{dragControls:t,visualElement:r}=e,n=Aa(()=>new SE(r));p.useEffect(()=>t&&t.subscribe(n),[n,t]),p.useEffect(()=>n.addListeners(),[n])}function CE({onPan:e,onPanStart:t,onPanEnd:r,onPanSessionStart:n,visualElement:o}){const s=e||t||r||n,a=p.useRef(null),{transformPagePoint:i}=p.useContext(pl),c={onSessionStart:n,onStart:t,onMove:e,onEnd:(u,d)=>{a.current=null,r&&r(u,d)}};p.useEffect(()=>{a.current!==null&&a.current.updateHandlers(c)});function l(u){a.current=new Rm(u,c,{transformPagePoint:i})}ta(o,"pointerdown",s&&l),Cl(()=>a.current&&a.current.end())}const _E={pan:ur(CE),drag:ur(kE)};function wc(e){return typeof e=="string"&&e.startsWith("var(--")}const Dm=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function PE(e){const t=Dm.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]}function kc(e,t,r=1){const[n,o]=PE(e);if(!n)return;const s=window.getComputedStyle(t).getPropertyValue(n);return s?s.trim():wc(o)?kc(o,t,r+1):o}function TE(e,{...t},r){const n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};r&&(r={...r}),e.values.forEach(o=>{const s=o.get();if(!wc(s))return;const a=kc(s,n);a&&o.set(a)});for(const o in t){const s=t[o];if(!wc(s))continue;const a=kc(s,n);a&&(t[o]=a,r&&r[o]===void 0&&(r[o]=s))}return{target:t,transitionEnd:r}}const AE=new Set(["width","height","top","left","right","bottom","x","y"]),jm=e=>AE.has(e),EE=e=>Object.keys(e).some(jm),Qd=e=>e===Br||e===Y;var ef;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(ef||(ef={}));const tf=(e,t)=>parseFloat(e.split(", ")[t]),rf=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/);if(o)return tf(o[1],t);{const s=n.match(/^matrix\((.+)\)$/);return s?tf(s[1],e):0}},RE=new Set(["x","y","z"]),$E=Js.filter(e=>!RE.has(e));function IE(e){const t=[];return $E.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}const nf={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:rf(4,13),y:rf(5,14)},ME=(e,t,r)=>{const n=t.measureViewportBox(),o=t.current,s=getComputedStyle(o),{display:a}=s,i={};a==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(l=>{i[l]=nf[l](n,s)}),t.render();const c=t.measureViewportBox();return r.forEach(l=>{const u=t.getValue(l);u&&u.jump(i[l]),e[l]=nf[l](c,s)}),e},OE=(e,t,r={},n={})=>{t={...t},n={...n};const o=Object.keys(t).filter(jm);let s=[],a=!1;const i=[];if(o.forEach(c=>{const l=e.getValue(c);if(!e.hasValue(c))return;let u=r[c],d=Kn(u);const f=t[c];let h;if(ea(f)){const g=f.length,m=f[0]===null?1:0;u=f[m],d=Kn(u);for(let b=m;b<g;b++)h?oa(Kn(f[b])===h):h=Kn(f[b])}else h=Kn(f);if(d!==h)if(Qd(d)&&Qd(h)){const g=l.get();typeof g=="string"&&l.set(parseFloat(g)),typeof f=="string"?t[c]=parseFloat(f):Array.isArray(f)&&h===Y&&(t[c]=f.map(parseFloat))}else d!=null&&d.transform&&(h!=null&&h.transform)&&(u===0||f===0)?u===0?l.set(h.transform(u)):t[c]=d.transform(f):(a||(s=IE(e),a=!0),i.push(c),n[c]=n[c]!==void 0?n[c]:t[c],l.jump(f))}),i.length){const c=i.indexOf("height")>=0?window.pageYOffset:null,l=ME(t,e,i);return s.length&&s.forEach(([u,d])=>{e.getValue(u).set(d)}),e.render(),_a&&c!==null&&window.scrollTo({top:c}),{target:l,transitionEnd:n}}else return{target:t,transitionEnd:n}};function FE(e,t,r,n){return EE(t)?OE(e,t,r,n):{target:t,transitionEnd:n}}const DE=(e,t,r,n)=>{const o=TE(e,t,n);return t=o.target,n=o.transitionEnd,FE(e,t,r,n)},Cc={current:null},Nm={current:!1};function jE(){if(Nm.current=!0,!!_a)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Cc.current=e.matches;e.addListener(t),t()}else Cc.current=!1}function NE(e,t,r){const{willChange:n}=t;for(const o in t){const s=t[o],a=r[o];if(ot(s))e.addValue(o,s),na(n)&&n.add(o);else if(ot(a))e.addValue(o,Pn(s,{owner:e})),na(n)&&n.remove(o);else if(a!==s)if(e.hasValue(o)){const i=e.getValue(o);!i.hasAnimated&&i.set(s)}else{const i=e.getStaticValue(o);e.addValue(o,Pn(i!==void 0?i:s,{owner:e}))}}for(const o in r)t[o]===void 0&&e.removeValue(o);return t}const Bm=Object.keys($o),BE=Bm.length,of=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class zE{constructor({parent:t,props:r,reducedMotionConfig:n,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,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.scheduleRender=()=>Ge.render(this.render,!1,!0);const{latestValues:a,renderState:i}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=r.initial?{...a}:{},this.renderState=i,this.parent=t,this.props=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.isControllingVariants=Ta(r),this.isVariantNode=Nh(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...l}=this.scrapeMotionValuesFromProps(r,{});for(const u in l){const d=l[u];a[u]!==void 0&&ot(d)&&(d.set(a[u],!1),na(c)&&c.add(u))}}scrapeMotionValuesFromProps(t,r){return{}}mount(t){var r;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=(r=this.parent)===null||r===void 0?void 0:r.addVariantChild(this)),this.values.forEach((n,o)=>this.bindToMotionValue(o,n)),Nm.current||jE(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Cc.current,this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,r,n;(t=this.projection)===null||t===void 0||t.unmount(),dr.update(this.notifyUpdate),dr.render(this.render),this.valueSubscriptions.forEach(o=>o()),(r=this.removeFromVariantTree)===null||r===void 0||r.call(this),(n=this.parent)===null||n===void 0||n.children.delete(this);for(const o in this.events)this.events[o].clear();this.current=null}bindToMotionValue(t,r){const n=jn.has(t),o=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Ge.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),s()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,o,s,a,i){const c=[];for(let l=0;l<BE;l++){const u=Bm[l],{isEnabled:d,Component:f}=$o[u];d(r)&&f&&c.push(p.createElement(f,{key:u,...r,visualElement:this}))}if(!this.projection&&a){this.projection=new a(s,this.latestValues,this.parent&&this.parent.projection);const{layoutId:l,layout:u,drag:d,dragConstraints:f,layoutScroll:h,layoutRoot:g}=r;this.projection.setOptions({layoutId:l,layout:u,alwaysMeasureLayout:!!d||f&&sn(f),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:i,layoutScroll:h,layoutRoot:g})}return c}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Le()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender();const r=this.props;this.props=t;for(let n=0;n<of.length;n++){const o=of[n];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s=t["on"+o];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=NE(this,this.scrapeMotionValuesFromProps(t,r),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){var r;return(r=this.props.variants)===null||r===void 0?void 0:r[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:(t=this.parent)===null||t===void 0?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var r,n;if(t)return(r=this.parent)===null||r===void 0?void 0:r.getVariantContext();if(!this.isControllingVariants){const s=((n=this.parent)===null||n===void 0?void 0:n.getVariantContext())||{};return this.props.initial!==void 0&&(s.initial=this.props.initial),s}const o={};for(let s=0;s<LE;s++){const a=zm[s],i=this.props[a];(Ro(i)||i===!1)&&(o[a]=i)}return o}addVariantChild(t){var r;const n=this.getClosestVariantNode();if(n)return(r=n.variantChildren)===null||r===void 0||r.add(t),()=>n.variantChildren.delete(t)}addValue(t,r){r!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,r)),this.values.set(t,r),this.latestValues[t]=r.get()}removeValue(t){var r;this.values.delete(t),(r=this.valueSubscriptions.get(t))===null||r===void 0||r(),this.valueSubscriptions.delete(t),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Pn(r,{owner:this}),this.addValue(t,n)),n}readValue(t){return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;const{initial:n}=this.props,o=typeof n=="string"||typeof n=="object"?(r=wl(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&o!==void 0)return o;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!ot(s)?s:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Al),this.events[t].add(r)}notify(t,...r){var n;(n=this.events[t])===null||n===void 0||n.notify(...r)}}const zm=["initial",...Ll],LE=zm.length;class Lm extends zE{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){var n;return(n=t.style)===null||n===void 0?void 0:n[r]}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:r,...n},{transformValues:o},s){let a=YT(n,t||{},this);if(o&&(r&&(r=o(r)),n&&(n=o(n)),a&&(a=o(a))),s){KT(this,n,a);const i=DE(this,n,a,r);r=i.transitionEnd,n=i.target}return{transition:t,transitionEnd:r,...n}}}function VE(e){return window.getComputedStyle(e)}class WE extends Lm{readValueFromInstance(t,r){if(jn.has(r)){const n=$l(r);return n&&n.default||0}else{const n=VE(t),o=(Lh(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return Fm(t,r)}build(t,r,n,o){gl(t,r,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,r){return Sl(t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ot(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,o){Gh(t,r,n,o)}}class HE extends Lm{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){var n;return jn.has(r)?((n=$l(r))===null||n===void 0?void 0:n.default)||0:(r=qh.has(r)?r:xl(r),t.getAttribute(r))}measureInstanceViewportBox(){return Le()}scrapeMotionValuesFromProps(t,r){return Xh(t,r)}build(t,r,n,o){yl(t,r,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,n,o){Kh(t,r,n,o)}mount(t){this.isSVGTag=vl(t.tagName),super.mount(t)}}const UE=(e,t)=>ml(e)?new HE(t,{enableHardwareAcceleration:!1}):new WE(t,{enableHardwareAcceleration:!0});function sf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Xn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Y.test(e))e=parseFloat(e);else return e;const r=sf(e,t.target.x),n=sf(e,t.target.y);return`${r}% ${n}%`}},af="_$css",GE={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=e.includes("var("),s=[];o&&(e=e.replace(Dm,h=>(s.push(h),af)));const a=fr.parse(e);if(a.length>5)return n;const i=fr.createTransformer(e),c=typeof a[0]!="number"?1:0,l=r.x.scale*t.x,u=r.y.scale*t.y;a[0+c]/=l,a[1+c]/=u;const d=Oe(l,u,.5);typeof a[2+c]=="number"&&(a[2+c]/=d),typeof a[3+c]=="number"&&(a[3+c]/=d);let f=i(a);if(o){let h=0;f=f.replace(af,()=>{const g=s[h];return h++,g})}return f}};class qE extends ht.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:s}=t;FP(XE),s&&(r.group&&r.group.add(s),n&&n.register&&o&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),go.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:n,drag:o,isPresent:s}=this.props,a=n.projection;return a&&(a.isPresent=s,o||t.layoutDependency!==r||r===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?a.promote():a.relegate()||Ge.postRender(()=>{var i;!((i=a.getStack())===null||i===void 0)&&i.members.length||this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),r!=null&&r.group&&r.group.remove(o),n!=null&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t==null||t()}render(){return null}}function KE(e){const[t,r]=_l(),n=p.useContext(hl);return ht.createElement(qE,{...e,layoutGroup:n,switchLayoutGroup:p.useContext(Bh),isPresent:t,safeToRemove:r})}const XE={borderRadius:{...Xn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Xn,borderTopRightRadius:Xn,borderBottomLeftRadius:Xn,borderBottomRightRadius:Xn,boxShadow:GE},YE={measureLayout:KE};function ZE(e,t,r={}){const n=ot(e)?e:Pn(e);return n.start(zl("",n,t,r)),{stop:()=>n.stop(),isAnimating:()=>n.isAnimating()}}const Vm=["TopLeft","TopRight","BottomLeft","BottomRight"],JE=Vm.length,cf=e=>typeof e=="string"?parseFloat(e):e,lf=e=>typeof e=="number"||Y.test(e);function QE(e,t,r,n,o,s){o?(e.opacity=Oe(0,r.opacity!==void 0?r.opacity:1,eR(n)),e.opacityExit=Oe(t.opacity!==void 0?t.opacity:1,0,tR(n))):s&&(e.opacity=Oe(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let a=0;a<JE;a++){const i=`border${Vm[a]}Radius`;let c=uf(t,i),l=uf(r,i);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||lf(c)===lf(l)?(e[i]=Math.max(Oe(cf(c),cf(l),n),0),(Bt.test(l)||Bt.test(c))&&(e[i]+="%")):e[i]=l}(t.rotate||r.rotate)&&(e.rotate=Oe(t.rotate||0,r.rotate||0,n))}function uf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const eR=Wm(0,.5,Nl),tR=Wm(.5,.95,jl);function Wm(e,t,r){return n=>n<e?0:n>t?1:r(sa(e,t,n))}function df(e,t){e.min=t.min,e.max=t.max}function Ct(e,t){df(e.x,t.x),df(e.y,t.y)}function ff(e,t,r,n,o){return e-=t,e=ia(e,1/r,n),o!==void 0&&(e=ia(e,1/o,n)),e}function rR(e,t=0,r=1,n=.5,o,s=e,a=e){if(Bt.test(t)&&(t=parseFloat(t),t=Oe(a.min,a.max,t/100)-a.min),typeof t!="number")return;let i=Oe(s.min,s.max,n);e===s&&(i-=t),e.min=ff(e.min,t,r,i,o),e.max=ff(e.max,t,r,i,o)}function pf(e,t,[r,n,o],s,a){rR(e,t[r],t[n],t[o],t.scale,s,a)}const nR=["x","scaleX","originX"],oR=["y","scaleY","originY"];function hf(e,t,r,n){pf(e.x,t,nR,r==null?void 0:r.x,n==null?void 0:n.x),pf(e.y,t,oR,r==null?void 0:r.y,n==null?void 0:n.y)}function mf(e){return e.translate===0&&e.scale===1}function Hm(e){return mf(e.x)&&mf(e.y)}function Um(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function gf(e){return ut(e.x)/ut(e.y)}class sR{constructor(){this.members=[]}add(t){Pl(this.members,t),t.scheduleRender()}remove(t){if(Tl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){const s=this.members[o];if(s.isPresent!==!1){n=s;break}}return n?(this.promote(n),!0):!1}promote(t,r){var n;const o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,r&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),!((n=t.root)===null||n===void 0)&&n.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:s}=t.options;s===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var r,n,o,s,a;(n=(r=t.options).onExitComplete)===null||n===void 0||n.call(r),(a=(o=t.resumingFrom)===null||o===void 0?void 0:(s=o.options).onExitComplete)===null||a===void 0||a.call(s)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function bf(e,t,r){let n="";const o=e.x.translate/t.x,s=e.y.translate/t.y;if((o||s)&&(n=`translate3d(${o}px, ${s}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{rotate:c,rotateX:l,rotateY:u}=r;c&&(n+=`rotate(${c}deg) `),l&&(n+=`rotateX(${l}deg) `),u&&(n+=`rotateY(${u}deg) `)}const a=e.x.scale*t.x,i=e.y.scale*t.y;return(a!==1||i!==1)&&(n+=`scale(${a}, ${i})`),n||"none"}const aR=(e,t)=>e.depth-t.depth;class iR{constructor(){this.children=[],this.isDirty=!1}add(t){Pl(this.children,t),this.isDirty=!0}remove(t){Tl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(aR),this.isDirty=!1,this.children.forEach(t)}}const yf=["","X","Y","Z"],vf=1e3;let cR=0;function Gm({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(a,i={},c=t==null?void 0:t()){this.id=cR++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(dR),this.nodes.forEach(hR),this.nodes.forEach(mR)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=a,this.latestValues=i,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0,a&&this.root.registerPotentialNode(a,this);for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new iR)}addEventListener(a,i){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Al),this.eventHandlers.get(a).add(i)}notifyListeners(a,...i){const c=this.eventHandlers.get(a);c==null||c.notify(...i)}hasListeners(a){return this.eventHandlers.has(a)}registerPotentialNode(a,i){this.potentialNodes.set(a,i)}mount(a,i=!1){var c;if(this.instance)return;this.isSVG=a instanceof SVGElement&&a.tagName!=="svg",this.instance=a;const{layoutId:l,layout:u,visualElement:d}=this.options;if(d&&!d.current&&d.mount(a),this.root.nodes.add(this),(c=this.parent)===null||c===void 0||c.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),i&&(u||l)&&(this.isLayoutDirty=!0),e){let f;const h=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Tm(h,250),go.hasAnimatedSinceResize&&(go.hasAnimatedSinceResize=!1,this.nodes.forEach(Sf))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h,hasRelativeTargetChanged:g,layout:m})=>{var b,S,v,x,C;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const k=(S=(b=this.options.transition)!==null&&b!==void 0?b:d.getDefaultTransition())!==null&&S!==void 0?S:xR,{onLayoutAnimationStart:A,onLayoutAnimationComplete:T}=d.getProps(),$=!this.targetLayout||!Um(this.targetLayout,m)||g,M=!h&&g;if(this.options.layoutRoot||!((v=this.resumeFrom)===null||v===void 0)&&v.instance||M||h&&($||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,M);const I={...Am(k,"layout"),onPlay:A,onComplete:T};(d.shouldReduceMotion||this.options.layoutRoot)&&(I.delay=0,I.type=!1),this.startAnimation(I)}else!h&&this.animationProgress===0&&Sf(this),this.isLead()&&((C=(x=this.options).onExitComplete)===null||C===void 0||C.call(x));this.targetLayout=m})}unmount(){var a,i;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(a=this.getStack())===null||a===void 0||a.remove(this),(i=this.parent)===null||i===void 0||i.children.delete(this),this.instance=void 0,dr.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var a;return this.isAnimationBlocked||((a=this.parent)===null||a===void 0?void 0:a.isTreeAnimationBlocked())||!1}startUpdate(){var a;this.isUpdateBlocked()||(this.isUpdating=!0,(a=this.nodes)===null||a===void 0||a.forEach(gR),this.animationId++)}getTransformTemplate(){var a;return(a=this.options.visualElement)===null||a===void 0?void 0:a.getProps().transformTemplate}willUpdate(a=!0){var i,c,l;if(this.root.isUpdateBlocked()){(c=(i=this.options).onExitComplete)===null||c===void 0||c.call(i);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const h=this.path[f];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:u,layout:d}=this.options;u===void 0&&!d||(this.prevTransformTemplateValue=(l=this.getTransformTemplate())===null||l===void 0?void 0:l(this.latestValues,""),this.updateSnapshot(),a&&this.notifyListeners("willUpdate"))}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(xf);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(SR),this.potentialNodes.clear()),this.nodes.forEach(pR),this.nodes.forEach(lR),this.nodes.forEach(uR),this.clearAllSnapshots(),xi.update(),xi.preRender(),xi.render())}clearAllSnapshots(){this.nodes.forEach(fR),this.sharedNodes.forEach(bR)}scheduleUpdateProjection(){Ge.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Ge.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){var a;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Le(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),(a=this.options.visualElement)===null||a===void 0||a.notify("LayoutMeasure",this.layout.layoutBox,i==null?void 0:i.layoutBox)}updateScroll(a="measure"){let i=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(i=!1),i&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){var a;if(!o)return;const i=this.isLayoutDirty||this.shouldResetTransform,c=this.projectionDelta&&!Hm(this.projectionDelta),l=(a=this.getTransformTemplate())===null||a===void 0?void 0:a(this.latestValues,""),u=l!==this.prevTransformTemplateValue;i&&(c||wr(this.latestValues)||u)&&(o(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const i=this.measurePageBox();let c=this.removeElementScroll(i);return a&&(c=this.removeTransform(c)),wR(c),{animationId:this.root.animationId,measuredBox:i,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Le();const i=a.measureViewportBox(),{scroll:c}=this.root;return c&&(cr(i.x,c.offset.x),cr(i.y,c.offset.y)),i}removeElementScroll(a){const i=Le();Ct(i,a);for(let c=0;c<this.path.length;c++){const l=this.path[c],{scroll:u,options:d}=l;if(l!==this.root&&u&&d.layoutScroll){if(u.isRoot){Ct(i,a);const{scroll:f}=this.root;f&&(cr(i.x,-f.offset.x),cr(i.y,-f.offset.y))}cr(i.x,u.offset.x),cr(i.y,u.offset.y)}}return i}applyTransform(a,i=!1){const c=Le();Ct(c,a);for(let l=0;l<this.path.length;l++){const u=this.path[l];!i&&u.options.layoutScroll&&u.scroll&&u!==u.root&&cn(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),wr(u.latestValues)&&cn(c,u.latestValues)}return wr(this.latestValues)&&cn(c,this.latestValues),c}removeTransform(a){var i;const c=Le();Ct(c,a);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!wr(u.latestValues))continue;xc(u.latestValues)&&u.updateSnapshot();const d=Le(),f=u.measurePageBox();Ct(d,f),hf(c,u.latestValues,(i=u.snapshot)===null||i===void 0?void 0:i.layoutBox,d)}return wr(this.latestValues)&&hf(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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}resolveTargetDelta(){var a;const i=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=i.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=i.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;const{layout:c,layoutId:l}=this.options;if(!(!this.layout||!(c||l))){if(!this.targetDelta&&!this.relativeTarget){const u=this.getClosestProjectingParent();u&&u.layout?(this.relativeParent=u,this.relativeTarget=Le(),this.relativeTargetOrigin=Le(),xo(this.relativeTargetOrigin,this.layout.layoutBox,u.layout.layoutBox),Ct(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Le(),this.targetWithTransforms=Le()),this.relativeTarget&&this.relativeTargetOrigin&&(!((a=this.relativeParent)===null||a===void 0)&&a.target)?iE(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ct(this.target,this.layout.layoutBox),Om(this.target,this.targetDelta)):Ct(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const u=this.getClosestProjectingParent();u&&!!u.resumingFrom==!!this.resumingFrom&&!u.options.layoutScroll&&u.target?(this.relativeParent=u,this.relativeTarget=Le(),this.relativeTargetOrigin=Le(),xo(this.relativeTargetOrigin,this.target,u.target),Ct(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||xc(this.parent.latestValues)||Mm(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta||this.parent.options.layoutRoot)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var a;const{isProjectionDirty:i,isTransformDirty:c}=this;this.isProjectionDirty=this.isTransformDirty=!1;const l=this.getLead(),u=!!this.resumingFrom||this!==l;let d=!0;if(i&&(d=!1),u&&c&&(d=!1),d)return;const{layout:f,layoutId:h}=this.options;if(this.isTreeAnimating=!!(!((a=this.parent)===null||a===void 0)&&a.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||h))return;Ct(this.layoutCorrected,this.layout.layoutBox),gE(this.layoutCorrected,this.treeScale,this.path,u);const{target:g}=l;if(!g)return;this.projectionDelta||(this.projectionDelta=So(),this.projectionDeltaWithTransform=So());const m=this.treeScale.x,b=this.treeScale.y,S=this.projectionTransform;vo(this.projectionDelta,this.layoutCorrected,g,this.latestValues),this.projectionTransform=bf(this.projectionDelta,this.treeScale),(this.projectionTransform!==S||this.treeScale.x!==m||this.treeScale.y!==b)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var i,c,l;(c=(i=this.options).scheduleRender)===null||c===void 0||c.call(i),a&&((l=this.getStack())===null||l===void 0||l.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,i=!1){var c,l;const u=this.snapshot,d=(u==null?void 0:u.latestValues)||{},f={...this.latestValues},h=So();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!i;const g=Le(),m=(u==null?void 0:u.source)!==((c=this.layout)===null||c===void 0?void 0:c.source),b=(((l=this.getStack())===null||l===void 0?void 0:l.members.length)||0)<=1,S=!!(m&&!b&&this.options.crossfade===!0&&!this.path.some(vR));this.animationProgress=0,this.mixTargetDelta=v=>{var x;const C=v/1e3;wf(h.x,a.x,C),wf(h.y,a.y,C),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(!((x=this.relativeParent)===null||x===void 0)&&x.layout)&&(xo(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),yR(this.relativeTarget,this.relativeTargetOrigin,g,C)),m&&(this.animationValues=f,QE(f,d,this.latestValues,C,S,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var i,c;this.notifyListeners("animationStart"),(i=this.currentAnimation)===null||i===void 0||i.stop(),this.resumingFrom&&((c=this.resumingFrom.currentAnimation)===null||c===void 0||c.stop()),this.pendingAnimation&&(dr.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ge.update(()=>{go.hasAnimatedSinceResize=!0,this.currentAnimation=ZE(0,vf,{...a,onUpdate:l=>{var u;this.mixTargetDelta(l),(u=a.onUpdate)===null||u===void 0||u.call(a,l)},onComplete:()=>{var l;(l=a.onComplete)===null||l===void 0||l.call(a),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var a;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(a=this.getStack())===null||a===void 0||a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var a;this.currentAnimation&&((a=this.mixTargetDelta)===null||a===void 0||a.call(this,vf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:i,target:c,layout:l,latestValues:u}=a;if(!(!i||!c||!l)){if(this!==a&&this.layout&&l&&qm(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||Le();const d=ut(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+d;const f=ut(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+f}Ct(i,c),cn(i,u),vo(this.projectionDeltaWithTransform,this.layoutCorrected,i,u)}}registerSharedNode(a,i){var c,l,u;this.sharedNodes.has(a)||this.sharedNodes.set(a,new sR),this.sharedNodes.get(a).add(i),i.promote({transition:(c=i.options.initialPromotionConfig)===null||c===void 0?void 0:c.transition,preserveFollowOpacity:(u=(l=i.options.initialPromotionConfig)===null||l===void 0?void 0:l.shouldPreserveFollowOpacity)===null||u===void 0?void 0:u.call(l,i)})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:i}=this.options;return i?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:i}=this.options;return i?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:i,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),i&&this.setOptions({transition:i})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let i=!1;const{latestValues:c}=a;if((c.rotate||c.rotateX||c.rotateY||c.rotateZ)&&(i=!0),!i)return;const l={};for(let u=0;u<yf.length;u++){const d="rotate"+yf[u];c[d]&&(l[d]=c[d],a.setStaticValue(d,0))}a==null||a.render();for(const u in l)a.setStaticValue(u,l[u]);a.scheduleRender()}getProjectionStyles(a={}){var i,c;const l={};if(!this.instance||this.isSVG)return l;if(this.isVisible)l.visibility="";else return{visibility:"hidden"};const u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=Bs(a.pointerEvents)||"",l.transform=u?u(this.latestValues,""):"none",l;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=Bs(a.pointerEvents)||""),this.hasProjected&&!wr(this.latestValues)&&(m.transform=u?u({},""):"none",this.hasProjected=!1),m}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),l.transform=bf(this.projectionDeltaWithTransform,this.treeScale,f),u&&(l.transform=u(f,l.transform));const{x:h,y:g}=this.projectionDelta;l.transformOrigin=`${h.origin*100}% ${g.origin*100}% 0`,d.animationValues?l.opacity=d===this?(c=(i=f.opacity)!==null&&i!==void 0?i:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:l.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const m in Zs){if(f[m]===void 0)continue;const{correct:b,applyTo:S}=Zs[m],v=l.transform==="none"?f[m]:b(f[m],d);if(S){const x=S.length;for(let C=0;C<x;C++)l[S[C]]=v}else l[m]=v}return this.options.layoutId&&(l.pointerEvents=d===this?Bs(a.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var i;return(i=a.currentAnimation)===null||i===void 0?void 0:i.stop()}),this.root.nodes.forEach(xf),this.root.sharedNodes.clear()}}}function lR(e){e.updateLayout()}function uR(e){var t,r,n;const o=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:a}=e.layout,{animationType:i}=e.options,c=o.source!==e.layout.source;i==="size"?$t(h=>{const g=c?o.measuredBox[h]:o.layoutBox[h],m=ut(g);g.min=s[h].min,g.max=g.min+m}):qm(i,o.layoutBox,s)&&$t(h=>{const g=c?o.measuredBox[h]:o.layoutBox[h],m=ut(s[h]);g.max=g.min+m});const l=So();vo(l,s,o.layoutBox);const u=So();c?vo(u,e.applyTransform(a,!0),o.measuredBox):vo(u,s,o.layoutBox);const d=!Hm(l);let f=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:g,layout:m}=h;if(g&&m){const b=Le();xo(b,o.layoutBox,g.layoutBox);const S=Le();xo(S,s,m.layoutBox),Um(b,S)||(f=!0),h.options.layoutRoot&&(e.relativeTarget=S,e.relativeTargetOrigin=b,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:u,layoutDelta:l,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else e.isLead()&&((n=(r=e.options).onExitComplete)===null||n===void 0||n.call(r));e.options.transition=void 0}function dR(e){e.isProjectionDirty||(e.isProjectionDirty=!!(e.parent&&e.parent.isProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=!!(e.parent&&e.parent.isTransformDirty))}function fR(e){e.clearSnapshot()}function xf(e){e.clearMeasurements()}function pR(e){const{visualElement:t}=e.options;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Sf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function hR(e){e.resolveTargetDelta()}function mR(e){e.calcProjection()}function gR(e){e.resetRotation()}function bR(e){e.removeLeadSnapshot()}function wf(e,t,r){e.translate=Oe(t.translate,0,r),e.scale=Oe(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function kf(e,t,r,n){e.min=Oe(t.min,r.min,n),e.max=Oe(t.max,r.max,n)}function yR(e,t,r,n){kf(e.x,t.x,r.x,n),kf(e.y,t.y,r.y,n)}function vR(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const xR={duration:.45,ease:[.4,0,.1,1]};function SR(e,t){let r=e.root;for(let s=e.path.length-1;s>=0;s--)if(e.path[s].instance){r=e.path[s];break}const o=(r&&r!==e.root?r.instance:document).querySelector(`[data-projection-id="${t}"]`);o&&e.mount(o,!0)}function Cf(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function wR(e){Cf(e.x),Cf(e.y)}function qm(e,t,r){return e==="position"||e==="preserve-aspect"&&!yc(gf(t),gf(r),.2)}const kR=Gm({attachResizeListener:(e,t)=>Ea(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ei={current:void 0},CR=Gm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ei.current){const e=new kR(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Ei.current=e}return Ei.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),_R={...nE,...xT,..._E,...YE},Tt=MP((e,t)=>iT(e,t,_R,UE,CR));function Km(){const e=p.useRef(!1);return Ys(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function PR(){const e=Km(),[t,r]=p.useState(0),n=p.useCallback(()=>{e.current&&r(t+1)},[t]);return[p.useCallback(()=>Ge.postRender(n),[n]),t]}class TR extends p.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function AR({children:e,isPresent:t}){const r=p.useId(),n=p.useRef(null),o=p.useRef({width:0,height:0,top:0,left:0});return p.useInsertionEffect(()=>{const{width:s,height:a,top:i,left:c}=o.current;if(t||!n.current||!s||!a)return;n.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
          [data-motion-pop-id="${r}"] {
            position: absolute !important;
            width: ${s}px !important;
            height: ${a}px !important;
            top: ${i}px !important;
            left: ${c}px !important;
          }
        `),()=>{document.head.removeChild(l)}},[t]),p.createElement(TR,{isPresent:t,childRef:n,sizeRef:o},p.cloneElement(e,{ref:n}))}const Ri=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:s,mode:a})=>{const i=Aa(ER),c=p.useId(),l=p.useMemo(()=>({id:c,initial:t,isPresent:r,custom:o,onExitComplete:u=>{i.set(u,!0);for(const d of i.values())if(!d)return;n&&n()},register:u=>(i.set(u,!1),()=>i.delete(u))}),s?void 0:[r]);return p.useMemo(()=>{i.forEach((u,d)=>i.set(d,!1))},[r]),p.useEffect(()=>{!r&&!i.size&&n&&n()},[r]),a==="popLayout"&&(e=p.createElement(AR,{isPresent:r},e)),p.createElement(Dn.Provider,{value:l},e)};function ER(){return new Map}const Jr=e=>e.key||"";function RR(e,t){e.forEach(r=>{const n=Jr(r);t.set(n,r)})}function $R(e){const t=[];return p.Children.forEach(e,r=>{p.isValidElement(r)&&t.push(r)}),t}const hr=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:o,presenceAffectsLayout:s=!0,mode:a="sync"})=>{o&&(a="wait");let[i]=PR();const c=p.useContext(hl).forceRender;c&&(i=c);const l=Km(),u=$R(e);let d=u;const f=new Set,h=p.useRef(d),g=p.useRef(new Map).current,m=p.useRef(!0);if(Ys(()=>{m.current=!1,RR(u,g),h.current=d}),Cl(()=>{m.current=!0,g.clear(),f.clear()}),m.current)return p.createElement(p.Fragment,null,d.map(x=>p.createElement(Ri,{key:Jr(x),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:s,mode:a},x)));d=[...d];const b=h.current.map(Jr),S=u.map(Jr),v=b.length;for(let x=0;x<v;x++){const C=b[x];S.indexOf(C)===-1&&f.add(C)}return a==="wait"&&f.size&&(d=[]),f.forEach(x=>{if(S.indexOf(x)!==-1)return;const C=g.get(x);if(!C)return;const k=b.indexOf(x),A=()=>{g.delete(x),f.delete(x);const T=h.current.findIndex($=>$.key===x);if(h.current.splice(T,1),!f.size){if(h.current=u,l.current===!1)return;i(),n&&n()}};d.splice(k,0,p.createElement(Ri,{key:Jr(C),isPresent:!1,onExitComplete:A,custom:t,presenceAffectsLayout:s,mode:a},C))}),d=d.map(x=>{const C=x.key;return f.has(C)?x:p.createElement(Ri,{key:Jr(x),isPresent:!0,presenceAffectsLayout:s,mode:a},x)}),p.createElement(p.Fragment,null,f.size?d:d.map(x=>p.cloneElement(x)))};var Ft=function(){return Ft=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Ft.apply(this,arguments)};function Xm(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function yj(e,t,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return new(r||(r=Promise))(function(s,a){function i(u){try{l(n.next(u))}catch(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?s(u.value):o(u.value).then(i,c)}l((n=n.apply(e,t||[])).next())})}function IR(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,s;n<o;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}const MR=(e,t)=>e.find(r=>r.id===t);function _f(e,t){const r=Ym(e,t),n=r?e[r].findIndex(o=>o.id===t):-1;return{position:r,index:n}}function Ym(e,t){for(const[r,n]of Object.entries(e))if(MR(n,t))return r}function OR(e){const t=e.includes("right"),r=e.includes("left");let n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function FR(e){const r=e==="top"||e==="bottom"?"0 auto":void 0,n=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,o=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,s=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",a=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:r,top:n,bottom:o,right:s,left:a}}var DR=/^((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)-.*))$/,jR=Vp(function(e){return DR.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),NR=jR,BR=function(t){return t!=="theme"},Pf=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?NR:BR},Tf=function(t,r,n){var o;if(r){var s=r.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(a){return t.__emotion_forwardProp(a)&&s(a)}:s}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},zR=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Zc(r,n,o),qp(function(){return Jc(r,n,o)}),null},LR=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,s,a;r!==void 0&&(s=r.label,a=r.target);var i=Tf(t,r,n),c=i||Pf(o),l=!c("as");return function(){var u=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&d.push("label:"+s+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var h=u.length,g=1;g<h;g++)d.push(u[g],f[g])}var m=ha(function(b,S,v){var x=l&&b.as||o,C="",k=[],A=b;if(b.theme==null){A={};for(var T in b)A[T]=b[T];A.theme=p.useContext(wn)}typeof b.className=="string"?C=Hp(S.registered,k,b.className):b.className!=null&&(C=b.className+" ");var $=pa(d.concat(k),S.registered,A);C+=S.key+"-"+$.name,a!==void 0&&(C+=" "+a);var M=l&&i===void 0?Pf(x):c,I={};for(var D in b)l&&D==="as"||M(D)&&(I[D]=b[D]);return I.className=C,v&&(I.ref=v),p.createElement(p.Fragment,null,p.createElement(zR,{cache:S,serialized:$,isStringTag:typeof x=="string"}),p.createElement(x,I))});return m.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=o,m.__emotion_styles=d,m.__emotion_forwardProp=i,Object.defineProperty(m,"toString",{value:function(){return"."+a}}),m.withComponent=function(b,S){var v=e(b,Mr({},r,S,{shouldForwardProp:Tf(m,S,!0)}));return v.apply(void 0,d)},m}},VR=["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"],_c=LR.bind(null);VR.forEach(function(e){_c[e]=_c(e)});const WR=new Set([...vx,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),HR=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function UR(e){return(HR.has(e)||!WR.has(e))&&e[0]!=="_"}const GR=u0(_c),qR=({baseStyle:e})=>t=>{const{theme:r,css:n,__css:o,sx:s,...a}=t,[i]=m0(a,Sx),c=He(e,t),l=Zv({},o,c,On(i),s),u=mh(l)(t.theme);return n?[u,n]:u};function $i(e,t){const{baseStyle:r,...n}=t??{};n.shouldForwardProp||(n.shouldForwardProp=UR);const o=qR({baseStyle:r}),s=GR(e,n)(o);return p.forwardRef(function(c,l){const{children:u,...d}=c,{colorMode:f,forced:h}=ka(),g=h?f:void 0;return p.createElement(s,{ref:l,"data-theme":g,...d},u)})}function KR(){const e=new Map;return new Proxy($i,{apply(t,r,n){return $i(...n)},get(t,r){return e.has(r)||e.set(r,$i(r)),e.get(r)}})}const R=KR(),XR={initial:e=>{const{position:t}=e,r=["top","bottom"].includes(t)?"y":"x";let n=["top-right","bottom-right"].includes(t)?1:-1;return t==="bottom"&&(n=1),{opacity:0,[r]:n*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},Zm=p.memo(e=>{const{id:t,message:r,onCloseComplete:n,onRequestRemove:o,requestClose:s=!1,position:a="bottom",duration:i=5e3,containerStyle:c,motionVariants:l=XR,toastSpacing:u="0.5rem"}=e,[d,f]=p.useState(i),h=ST();Or(()=>{h||n==null||n()},[h]),Or(()=>{f(i)},[i]);const g=()=>f(null),m=()=>f(i),b=()=>{h&&o()};p.useEffect(()=>{h&&s&&o()},[h,s,o]),B0(b,d);const S=p.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:u,...c}),[c,u]),v=p.useMemo(()=>OR(a),[a]);return y.jsx(Tt.div,{layout:!0,className:"chakra-toast",variants:l,initial:"initial",animate:"animate",exit:"exit",onHoverStart:g,onHoverEnd:m,custom:{position:a},style:v,children:y.jsx(R.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:S,children:He(r,{id:t,onClose:b})})})});Zm.displayName="ToastComponent";function O(e){return p.forwardRef(e)}var Ii,Af;function YR(){if(Af)return Ii;Af=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function o(s,a){if(s===a)return!0;if(s&&a&&typeof s=="object"&&typeof a=="object"){if(s.constructor!==a.constructor)return!1;var i,c,l;if(Array.isArray(s)){if(i=s.length,i!=a.length)return!1;for(c=i;c--!==0;)if(!o(s[c],a[c]))return!1;return!0}var u;if(t&&s instanceof Map&&a instanceof Map){if(s.size!==a.size)return!1;for(u=s.entries();!(c=u.next()).done;)if(!a.has(c.value[0]))return!1;for(u=s.entries();!(c=u.next()).done;)if(!o(c.value[1],a.get(c.value[0])))return!1;return!0}if(r&&s instanceof Set&&a instanceof Set){if(s.size!==a.size)return!1;for(u=s.entries();!(c=u.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(a)){if(i=s.length,i!=a.length)return!1;for(c=i;c--!==0;)if(s[c]!==a[c])return!1;return!0}if(s.constructor===RegExp)return s.source===a.source&&s.flags===a.flags;if(s.valueOf!==Object.prototype.valueOf&&typeof s.valueOf=="function"&&typeof a.valueOf=="function")return s.valueOf()===a.valueOf();if(s.toString!==Object.prototype.toString&&typeof s.toString=="function"&&typeof a.toString=="function")return s.toString()===a.toString();if(l=Object.keys(s),i=l.length,i!==Object.keys(a).length)return!1;for(c=i;c--!==0;)if(!Object.prototype.hasOwnProperty.call(a,l[c]))return!1;if(e&&s instanceof Element)return!1;for(c=i;c--!==0;)if(!((l[c]==="_owner"||l[c]==="__v"||l[c]==="__o")&&s.$$typeof)&&!o(s[l[c]],a[l[c]]))return!1;return!0}return s!==s&&a!==a}return Ii=function(a,i){try{return o(a,i)}catch(c){if((c.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw c}},Ii}var ZR=YR();const JR=qc(ZR);function rr(){const e=p.useContext(wn);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}function Jm(){const e=ka(),t=rr();return{...e,theme:t}}function QR(e,t,r){if(t==null)return t;const n=o=>{var s,a;return(a=(s=e.__breakpoints)==null?void 0:s.asArray)==null?void 0:a[o]};return n(t)??n(r)??r}function e$(e,t,r){if(t==null)return t;const n=o=>{var s,a;return(a=(s=e.__cssMap)==null?void 0:s[o])==null?void 0:a.value};return n(t)??n(r)??r}function t$(e,t,r){const n=rr();return Qm(e,t,r)(n)}function Qm(e,t,r){const n=Array.isArray(t)?t:[t],o=Array.isArray(r)?r:[r];return s=>{const a=o.filter(Boolean),i=n.map((c,l)=>{if(e==="breakpoints")return QR(s,c,a[l]??c);const u=`${e}.${c}`;return e$(s,u,a[l]??c)});return Array.isArray(t)?i:i[0]}}function eg(e,t={}){const{styleConfig:r,...n}=t,{theme:o,colorMode:s}=Jm(),a=e?eh(o,`components.${e}`):void 0,i=r||a,c=mt({theme:o,colorMode:s},(i==null?void 0:i.defaultProps)??{},On(Fn(n,["children"])),(u,d)=>u?void 0:d),l=p.useRef({});if(i){const d=Ix(i)(c);JR(l.current,d)||(l.current=d)}return l.current}function st(e,t={}){return eg(e,t)}function Fe(e,t={}){return eg(e,t)}const Ef={path:y.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[y.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),y.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),y.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},At=O((e,t)=>{const{as:r,viewBox:n,color:o="currentColor",focusable:s=!1,children:a,className:i,__css:c,...l}=e,u=j("chakra-icon",i),d=st("Icon",e),f={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...c,...d},h={ref:t,focusable:s,className:u,__css:f},g=n??Ef.viewBox;if(r&&typeof r!="string")return y.jsx(R.svg,{as:r,...h,...l});const m=a??Ef.path;return y.jsx(R.svg,{verticalAlign:"middle",viewBox:g,...h,...l,children:m})});At.displayName="Icon";function r$(e){return y.jsx(At,{viewBox:"0 0 24 24",...e,children:y.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function n$(e){return y.jsx(At,{viewBox:"0 0 24 24",...e,children:y.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function Rf(e){return y.jsx(At,{viewBox:"0 0 24 24",...e,children:y.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}const o$=Vt({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Vl=O((e,t)=>{const r=st("Spinner",e),{label:n="Loading...",thickness:o="2px",speed:s="0.45s",emptyColor:a="transparent",className:i,...c}=ce(e),l=j("chakra-spinner",i),u={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:a,borderLeftColor:a,animation:`${o$} ${s} linear infinite`,...r};return y.jsx(R.div,{ref:t,__css:u,className:l,...c,children:n&&y.jsx(R.span,{srOnly:!0,children:n})})});Vl.displayName="Spinner";const[s$,Wl]=ae({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[a$,Hl]=ae({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),tg={info:{icon:n$,colorScheme:"blue"},warning:{icon:Rf,colorScheme:"orange"},success:{icon:r$,colorScheme:"green"},error:{icon:Rf,colorScheme:"red"},loading:{icon:Vl,colorScheme:"blue"}};function i$(e){return tg[e].colorScheme}function c$(e){return tg[e].icon}const rg=O(function(t,r){const{status:n="info",addRole:o=!0,...s}=ce(t),a=t.colorScheme??i$(n),i=Fe("Alert",{...t,colorScheme:a}),c={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...i.container};return y.jsx(s$,{value:{status:n},children:y.jsx(a$,{value:i,children:y.jsx(R.div,{"data-status":n,role:o?"alert":void 0,ref:r,...s,className:j("chakra-alert",t.className),__css:c})})})});rg.displayName="Alert";function ng(e){const{status:t}=Wl(),r=c$(t),n=Hl(),o=t==="loading"?n.spinner:n.icon;return y.jsx(R.span,{display:"inherit","data-status":t,...e,className:j("chakra-alert__icon",e.className),__css:o,children:e.children||y.jsx(r,{h:"100%",w:"100%"})})}ng.displayName="AlertIcon";const og=O(function(t,r){const n=Hl(),{status:o}=Wl();return y.jsx(R.div,{ref:r,"data-status":o,...t,className:j("chakra-alert__title",t.className),__css:n.title})});og.displayName="AlertTitle";const sg=O(function(t,r){const{status:n}=Wl(),o=Hl(),s={display:"inline",...o.description};return y.jsx(R.div,{ref:r,"data-status":n,...t,className:j("chakra-alert__desc",t.className),__css:s})});sg.displayName="AlertDescription";function l$(e){return y.jsx(At,{focusable:"false","aria-hidden":!0,...e,children:y.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}const Ul=O(function(t,r){const n=st("CloseButton",t),{children:o,isDisabled:s,__css:a,...i}=ce(t),c={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return y.jsx(R.button,{type:"button","aria-label":"Close",ref:r,disabled:s,__css:{...c,...n,...a},...i,children:o||y.jsx(l$,{width:"1em",height:"1em"})})});Ul.displayName="CloseButton";const u$=e=>{const{status:t,variant:r="solid",id:n,title:o,isClosable:s,onClose:a,description:i,colorScheme:c,icon:l}=e,u=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return y.jsxs(rg,{addRole:!1,status:t,variant:r,id:u==null?void 0:u.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:c,children:[y.jsx(ng,{children:l}),y.jsxs(R.div,{flex:"1",maxWidth:"100%",children:[o&&y.jsx(og,{id:u==null?void 0:u.title,children:o}),i&&y.jsx(sg,{id:u==null?void 0:u.description,display:"block",children:i})]}),s&&y.jsx(Ul,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function ag(e={}){const{render:t,toastComponent:r=u$}=e;return o=>typeof t=="function"?t({...o,...e}):y.jsx(r,{...o,...e})}const d$={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},Dt=f$(d$);function f$(e){let t=e;const r=new Set,n=o=>{t=o(t),r.forEach(s=>s())};return{getState:()=>t,subscribe:o=>(r.add(o),()=>{n(()=>e),r.delete(o)}),removeToast:(o,s)=>{n(a=>({...a,[s]:a[s].filter(i=>i.id!=o)}))},notify:(o,s)=>{const a=p$(o,s),{position:i,id:c}=a;return n(l=>{const d=i.includes("top")?[a,...l[i]??[]]:[...l[i]??[],a];return{...l,[i]:d}}),c},update:(o,s)=>{o&&n(a=>{const i={...a},{position:c,index:l}=_f(i,o);return c&&l!==-1&&(i[c][l]={...i[c][l],...s,message:ag(s)}),i})},closeAll:({positions:o}={})=>{n(s=>(o??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((c,l)=>(c[l]=s[l].map(u=>({...u,requestClose:!0})),c),{...s}))},close:o=>{n(s=>{const a=Ym(s,o);return a?{...s,[a]:s[a].map(i=>i.id==o?{...i,requestClose:!0}:i)}:s})},isActive:o=>!!_f(Dt.getState(),o).position}}let $f=0;function p$(e,t={}){$f+=1;const r=t.id??$f,n=t.position??"bottom";return{id:r,message:e,position:n,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>Dt.removeToast(String(r),n),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}const[ig,h$]=ae({strict:!1,name:"PortalContext"}),Gl="chakra-portal",m$=".chakra-portal",g$=e=>y.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),b$=e=>{const{appendToParentPortal:t,children:r}=e,[n,o]=p.useState(null),s=p.useRef(null),[,a]=p.useState({});p.useEffect(()=>a({}),[]);const i=h$(),c=bP();Zt(()=>{if(!n)return;const u=n.ownerDocument,d=t?i??u.body:u.body;if(!d)return;s.current=u.createElement("div"),s.current.className=Gl,d.appendChild(s.current),a({});const f=s.current;return()=>{d.contains(f)&&d.removeChild(f)}},[n]);const l=c!=null&&c.zIndex?y.jsx(g$,{zIndex:c==null?void 0:c.zIndex,children:r}):r;return s.current?Fp.createPortal(y.jsx(ig,{value:s.current,children:l}),s.current):y.jsx("span",{ref:u=>{u&&o(u)}})},y$=e=>{const{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,s=o??(typeof window<"u"?document.body:void 0),a=p.useMemo(()=>{const c=o==null?void 0:o.ownerDocument.createElement("div");return c&&(c.className=Gl),c},[o]),[,i]=p.useState({});return Zt(()=>i({}),[]),Zt(()=>{if(!(!a||!s))return s.appendChild(a),()=>{s.removeChild(a)}},[a,s]),s&&a?Fp.createPortal(y.jsx(ig,{value:n?a:null,children:t}),a):null};function Nn(e){const t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?y.jsx(y$,{containerRef:r,...n}):y.jsx(b$,{...n})}Nn.className=Gl;Nn.selector=m$;Nn.displayName="Portal";const[v$,x$]=ae({name:"ToastOptionsContext",strict:!1}),cg=e=>{const t=p.useSyncExternalStore(Dt.subscribe,Dt.getState,Dt.getState),{motionVariants:r,component:n=Zm,portalProps:o,animatePresenceProps:s}=e,i=Object.keys(t).map(c=>{const l=t[c];return y.jsx("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${c}`,id:`chakra-toast-manager-${c}`,style:FR(c),children:y.jsx(hr,{...s,initial:!1,children:l.map(u=>y.jsx(n,{motionVariants:r,...u},u.id))})},c)});return y.jsx(Nn,{...o,children:i})},S$=e=>function({children:r,theme:n=e,toastOptions:o,...s}){return y.jsxs(vP,{theme:n,...s,children:[y.jsx(v$,{value:o==null?void 0:o.defaultOptions,children:r}),y.jsx(cg,{...o})]})},vj=S$(dl);function If(e){return e.sort((t,r)=>{const n=t.compareDocumentPosition(r);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}const w$=e=>typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function Mf(e,t,r){let n=e+1;return r&&n>=t&&(n=0),n}function Of(e,t,r){let n=e-1;return r&&n<0&&(n=t),n}const Mi=typeof window<"u"?p.useLayoutEffect:p.useEffect,Ff=e=>e;var k$=Object.defineProperty,C$=(e,t,r)=>t in e?k$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Me=(e,t,r)=>(C$(e,typeof t!="symbol"?t+"":t,r),r);class _${constructor(){Me(this,"descendants",new Map),Me(this,"register",t=>{if(t!=null)return w$(t)?this.registerNode(t):r=>{this.registerNode(r,t)}}),Me(this,"unregister",t=>{this.descendants.delete(t);const r=If(Array.from(this.descendants.keys()));this.assignIndex(r)}),Me(this,"destroy",()=>{this.descendants.clear()}),Me(this,"assignIndex",t=>{this.descendants.forEach(r=>{const n=t.indexOf(r.node);r.index=n,r.node.dataset.index=r.index.toString()})}),Me(this,"count",()=>this.descendants.size),Me(this,"enabledCount",()=>this.enabledValues().length),Me(this,"values",()=>Array.from(this.descendants.values()).sort((r,n)=>r.index-n.index)),Me(this,"enabledValues",()=>this.values().filter(t=>!t.disabled)),Me(this,"item",t=>{if(this.count()!==0)return this.values()[t]}),Me(this,"enabledItem",t=>{if(this.enabledCount()!==0)return this.enabledValues()[t]}),Me(this,"first",()=>this.item(0)),Me(this,"firstEnabled",()=>this.enabledItem(0)),Me(this,"last",()=>this.item(this.descendants.size-1)),Me(this,"lastEnabled",()=>{const t=this.enabledValues().length-1;return this.enabledItem(t)}),Me(this,"indexOf",t=>{var r;return t?((r=this.descendants.get(t))==null?void 0:r.index)??-1:-1}),Me(this,"enabledIndexOf",t=>t==null?-1:this.enabledValues().findIndex(r=>r.node.isSameNode(t))),Me(this,"next",(t,r=!0)=>{const n=Mf(t,this.count(),r);return this.item(n)}),Me(this,"nextEnabled",(t,r=!0)=>{const n=this.item(t);if(!n)return;const o=this.enabledIndexOf(n.node),s=Mf(o,this.enabledCount(),r);return this.enabledItem(s)}),Me(this,"prev",(t,r=!0)=>{const n=Of(t,this.count()-1,r);return this.item(n)}),Me(this,"prevEnabled",(t,r=!0)=>{const n=this.item(t);if(!n)return;const o=this.enabledIndexOf(n.node),s=Of(o,this.enabledCount()-1,r);return this.enabledItem(s)}),Me(this,"registerNode",(t,r)=>{if(!t||this.descendants.has(t))return;const n=Array.from(this.descendants.keys()).concat(t),o=If(n);r!=null&&r.disabled&&(r.disabled=!!r.disabled);const s={node:t,index:-1,...r};this.descendants.set(t,s),this.assignIndex(o)})}}function ql(){const[e,t]=ae({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});return[e,t,()=>{const o=p.useRef(new _$);return Mi(()=>()=>o.current.destroy()),o.current},o=>{const s=t(),[a,i]=p.useState(-1),c=p.useRef(null);Mi(()=>()=>{c.current&&s.unregister(c.current)},[]),Mi(()=>{if(!c.current)return;const u=Number(c.current.dataset.index);a!=u&&!Number.isNaN(u)&&i(u)});const l=Ff(o?s.register(o):s.register);return{descendants:s,index:a,enabledIndex:s.enabledIndexOf(c.current),register:Ie(l,c)}}]}const[P$,Ma]=ae({name:"AccordionStylesContext",hookName:"useAccordionStyles",providerName:"<Accordion />"}),[T$,Kl]=ae({name:"AccordionItemContext",hookName:"useAccordionItemContext",providerName:"<AccordionItem />"}),[A$,xj,E$,R$]=ql();function $$(e){const{onChange:t,defaultIndex:r,index:n,allowMultiple:o,allowToggle:s,...a}=e;O$(e),F$(e);const i=E$(),[c,l]=p.useState(-1);p.useEffect(()=>()=>{l(-1)},[]);const[u,d]=rl({value:n,defaultValue(){return o?r??[]:r??-1},onChange:t});return{index:u,setIndex:d,htmlProps:a,getAccordionItemProps:h=>{let g=!1;return h!==null&&(g=Array.isArray(u)?u.includes(h):u===h),{isOpen:g,onChange:b=>{if(h!==null)if(o&&Array.isArray(u)){const S=b?u.concat(h):u.filter(v=>v!==h);d(S)}else b?d(h):s&&d(-1)}}},focusedIndex:c,setFocusedIndex:l,descendants:i}}const[I$,Xl]=ae({name:"AccordionContext",hookName:"useAccordionContext",providerName:"Accordion"});function M$(e){const{isDisabled:t,isFocusable:r,id:n,...o}=e,{getAccordionItemProps:s,setFocusedIndex:a}=Xl(),i=p.useRef(null),c=p.useId(),l=n??c,u=`accordion-button-${l}`,d=`accordion-panel-${l}`;D$(e);const{register:f,index:h,descendants:g}=R$({disabled:t&&!r}),{isOpen:m,onChange:b}=s(h===-1?null:h);j$({isOpen:m,isDisabled:t});const S=()=>{b==null||b(!0)},v=()=>{b==null||b(!1)},x=p.useCallback(()=>{b==null||b(!m),a(h)},[h,a,m,b]),C=p.useCallback($=>{const I={ArrowDown:()=>{const D=g.nextEnabled(h);D==null||D.node.focus()},ArrowUp:()=>{const D=g.prevEnabled(h);D==null||D.node.focus()},Home:()=>{const D=g.firstEnabled();D==null||D.node.focus()},End:()=>{const D=g.lastEnabled();D==null||D.node.focus()}}[$.key];I&&($.preventDefault(),I($))},[g,h]),k=p.useCallback(()=>{a(h)},[a,h]),A=p.useCallback(function(M={},I=null){return{...M,type:"button",ref:Ie(f,i,I),id:u,disabled:!!t,"aria-expanded":!!m,"aria-controls":d,onClick:H(M.onClick,x),onFocus:H(M.onFocus,k),onKeyDown:H(M.onKeyDown,C)}},[u,t,m,x,k,C,d,f]),T=p.useCallback(function(M={},I=null){return{...M,ref:I,role:"region",id:d,"aria-labelledby":u,hidden:!m}},[u,m,d]);return{isOpen:m,isDisabled:t,isFocusable:r,onOpen:S,onClose:v,getButtonProps:A,getPanelProps:T,htmlProps:o}}function O$(e){const t=e.index||e.defaultIndex,r=t!=null&&!Array.isArray(t)&&e.allowMultiple;Lo({condition:!!r,message:`If 'allowMultiple' is passed, then 'index' or 'defaultIndex' must be an array. You passed: ${typeof t},`})}function F$(e){Lo({condition:!!(e.allowMultiple&&e.allowToggle),message:"If 'allowMultiple' is passed, 'allowToggle' will be ignored. Either remove 'allowToggle' or 'allowMultiple' depending on whether you want multiple accordions visible or not"})}function D$(e){Lo({condition:!!(e.isFocusable&&!e.isDisabled),message:`Using only 'isFocusable', this prop is reserved for situations where you pass 'isDisabled' but you still want the element to receive focus (A11y). Either remove it or pass 'isDisabled' as well.
    `})}function j$(e){Lo({condition:e.isOpen&&!!e.isDisabled,message:"Cannot open a disabled accordion item"})}const N$=O(function({children:t,reduceMotion:r,...n},o){const s=Fe("Accordion",n),a=ce(n),{htmlProps:i,descendants:c,...l}=$$(a),u=p.useMemo(()=>({...l,reduceMotion:!!r}),[l,r]);return y.jsx(A$,{value:c,children:y.jsx(I$,{value:u,children:y.jsx(P$,{value:s,children:y.jsx(R.div,{ref:o,...i,className:j("chakra-accordion",n.className),__css:s.root,children:t})})})})});N$.displayName="Accordion";const B$=O(function(t,r){const{getButtonProps:n}=Kl(),o=n(t,r),a={display:"flex",alignItems:"center",width:"100%",outline:0,...Ma().button};return y.jsx(R.button,{...o,className:j("chakra-accordion__button",t.className),__css:a})});B$.displayName="AccordionButton";function z$(e){const{isOpen:t,isDisabled:r}=Kl(),{reduceMotion:n}=Xl(),o=j("chakra-accordion__icon",e.className),s=Ma(),a={opacity:r?.4:1,transform:t?"rotate(-180deg)":void 0,transition:n?void 0:"transform 0.2s",transformOrigin:"center",...s.icon};return y.jsx(At,{viewBox:"0 0 24 24","aria-hidden":!0,className:o,__css:a,...e,children:y.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})})}z$.displayName="AccordionIcon";const L$=O(function(t,r){const{children:n,className:o}=t,{htmlProps:s,...a}=M$(t),i=Ma(),c={...i.container,overflowAnchor:"none"},l=p.useMemo(()=>a,[a]);return y.jsx(T$,{value:l,children:y.jsx(R.div,{ref:r,...s,className:j("chakra-accordion__item",o),__css:c,children:typeof n=="function"?n({isExpanded:!!a.isOpen,isDisabled:!!a.isDisabled}):n})})});L$.displayName="AccordionItem";const Pr={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},Yn={slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function Pc(e){switch((e==null?void 0:e.direction)??"right"){case"right":return Yn.slideRight;case"left":return Yn.slideLeft;case"bottom":return Yn.slideDown;case"top":return Yn.slideUp;default:return Yn.slideRight}}const Rr={enter:{duration:.2,ease:Pr.easeOut},exit:{duration:.1,ease:Pr.easeIn}},Pt={enter:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.enter}),exit:(e,t)=>({...e,delay:typeof t=="number"?t:t==null?void 0:t.exit})},V$=e=>e!=null&&parseInt(e.toString(),10)>0,Df={exit:{height:{duration:.2,ease:Pr.ease},opacity:{duration:.3,ease:Pr.ease}},enter:{height:{duration:.3,ease:Pr.ease},opacity:{duration:.4,ease:Pr.ease}}},W$={exit:({animateOpacity:e,startingHeight:t,transition:r,transitionEnd:n,delay:o})=>({...e&&{opacity:V$(t)?1:0},height:t,transitionEnd:n==null?void 0:n.exit,transition:(r==null?void 0:r.exit)??Pt.exit(Df.exit,o)}),enter:({animateOpacity:e,endingHeight:t,transition:r,transitionEnd:n,delay:o})=>({...e&&{opacity:1},height:t,transitionEnd:n==null?void 0:n.enter,transition:(r==null?void 0:r.enter)??Pt.enter(Df.enter,o)})},lg=p.forwardRef((e,t)=>{const{in:r,unmountOnExit:n,animateOpacity:o=!0,startingHeight:s=0,endingHeight:a="auto",style:i,className:c,transition:l,transitionEnd:u,animatePresenceProps:d,...f}=e,[h,g]=p.useState(!1);p.useEffect(()=>{const x=setTimeout(()=>{g(!0)});return()=>clearTimeout(x)},[]),Lo({condition:Number(s)>0&&!!n,message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});const m=parseFloat(s.toString())>0,b={startingHeight:s,endingHeight:a,animateOpacity:o,transition:h?l:{enter:{duration:0}},transitionEnd:{enter:u==null?void 0:u.enter,exit:n?u==null?void 0:u.exit:{...u==null?void 0:u.exit,display:m?"block":"none"}}},S=n?r:!0,v=r||n?"enter":"exit";return y.jsx(hr,{...d,initial:!1,custom:b,children:S&&y.jsx(Tt.div,{ref:t,...f,className:j("chakra-collapse",c),style:{overflow:"hidden",display:"block",...i},custom:b,variants:W$,initial:n?"exit":!1,animate:v,exit:"exit"})})});lg.displayName="Collapse";const H$=O(function(t,r){const{className:n,motionProps:o,...s}=t,{reduceMotion:a}=Xl(),{getPanelProps:i,isOpen:c}=Kl(),l=i(s,r),u=j("chakra-accordion__panel",n),d=Ma();a||delete l.hidden;const f=y.jsx(R.div,{...l,__css:d.panel,className:u});return a?f:y.jsx(lg,{in:c,...o,children:f})});H$.displayName="AccordionPanel";const[U$,G$]=ae({name:"AvatarStylesContext",hookName:"useAvatarStyles",providerName:"<Avatar/>"});function q$(e){const t=e.trim().split(" "),r=t[0]??"",n=t.length>1?t[t.length-1]:"";return r&&n?`${r.charAt(0)}${n.charAt(0)}`:r.charAt(0)}function ug(e){const{name:t,getInitials:r,...n}=e,o=G$();return y.jsx(R.div,{role:"img","aria-label":t,...n,__css:o.label,children:t?r==null?void 0:r(t):null})}ug.displayName="AvatarName";const dg=e=>y.jsxs(R.svg,{viewBox:"0 0 128 128",color:"#fff",width:"100%",height:"100%",className:"chakra-avatar__svg",...e,children:[y.jsx("path",{fill:"currentColor",d:"M103,102.1388 C93.094,111.92 79.3504,118 64.1638,118 C48.8056,118 34.9294,111.768 25,101.7892 L25,95.2 C25,86.8096 31.981,80 40.6,80 L87.4,80 C96.019,80 103,86.8096 103,95.2 L103,102.1388 Z"}),y.jsx("path",{fill:"currentColor",d:"M63.9961647,24 C51.2938136,24 41,34.2938136 41,46.9961647 C41,59.7061864 51.2938136,70 63.9961647,70 C76.6985159,70 87,59.7061864 87,46.9961647 C87,34.2938136 76.6985159,24 63.9961647,24"})]});function fg(e){const{loading:t,src:r,srcSet:n,onLoad:o,onError:s,crossOrigin:a,sizes:i,ignoreFallback:c}=e,[l,u]=p.useState("pending");p.useEffect(()=>{u(r?"loading":"pending")},[r]);const d=p.useRef(),f=p.useCallback(()=>{if(!r)return;h();const g=new Image;g.src=r,a&&(g.crossOrigin=a),n&&(g.srcset=n),i&&(g.sizes=i),t&&(g.loading=t),g.onload=m=>{h(),u("loaded"),o==null||o(m)},g.onerror=m=>{h(),u("failed"),s==null||s(m)},d.current=g},[r,a,n,i,o,s,t]),h=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)};return Zt(()=>{if(!c)return l==="loading"&&f(),()=>{h()}},[l,f,c]),c?"loaded":l}const K$=(e,t)=>e!=="loaded"&&t==="beforeLoadOrError"||e==="failed"&&t==="onError";function pg(e){const{src:t,srcSet:r,onError:n,onLoad:o,getInitials:s,name:a,borderRadius:i,loading:c,iconLabel:l,icon:u=y.jsx(dg,{}),ignoreFallback:d,referrerPolicy:f,crossOrigin:h}=e,m=fg({src:t,onError:n,crossOrigin:h,ignoreFallback:d})==="loaded";return!t||!m?a?y.jsx(ug,{className:"chakra-avatar__initials",getInitials:s,name:a}):p.cloneElement(u,{role:"img","aria-label":l}):y.jsx(R.img,{src:t,srcSet:r,alt:a??l,onLoad:o,referrerPolicy:f,crossOrigin:h??void 0,className:"chakra-avatar__img",loading:c,__css:{width:"100%",height:"100%",objectFit:"cover",borderRadius:i}})}pg.displayName="AvatarImage";const X$={display:"inline-flex",alignItems:"center",justifyContent:"center",textAlign:"center",textTransform:"uppercase",fontWeight:"medium",position:"relative",flexShrink:0},Y$=O((e,t)=>{const r=Fe("Avatar",e),[n,o]=p.useState(!1),{src:s,srcSet:a,name:i,showBorder:c,borderRadius:l="full",onError:u,onLoad:d,getInitials:f=q$,icon:h=y.jsx(dg,{}),iconLabel:g=" avatar",loading:m,children:b,borderColor:S,ignoreFallback:v,crossOrigin:x,referrerPolicy:C,...k}=ce(e),A={borderRadius:l,borderWidth:c?"2px":void 0,...X$,...r.container};return S&&(A.borderColor=S),y.jsx(R.span,{ref:t,...k,className:j("chakra-avatar",e.className),"data-loaded":V(n),__css:A,children:y.jsxs(U$,{value:r,children:[y.jsx(pg,{src:s,srcSet:a,loading:m,onLoad:H(d,()=>{o(!0)}),onError:u,getInitials:f,name:i,borderRadius:l,icon:h,iconLabel:g,ignoreFallback:v,crossOrigin:x,referrerPolicy:C}),b]})})});Y$.displayName="Avatar";const Z$=O(function(t,r){const n=st("Badge",t),{className:o,...s}=ce(t);return y.jsx(R.span,{ref:r,className:j("chakra-badge",t.className),...s,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})});Z$.displayName="Badge";const J$=R("div");J$.displayName="Box";const[Q$,Yl]=ae({name:"BreadcrumbStylesContext",errorMessage:`useBreadcrumbStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Breadcrumb />" `}),eI=O(function(t,r){const n=Fe("Breadcrumb",t),o=ce(t),{children:s,spacing:a="0.5rem",separator:i="/",className:c,listProps:l,...u}=o,d=Mn(s),f=d.length,h=d.map((m,b)=>p.cloneElement(m,{separator:i,spacing:a,isLastChild:f===b+1})),g=j("chakra-breadcrumb",c);return y.jsx(R.nav,{ref:r,"aria-label":"breadcrumb",className:g,__css:n.container,...u,children:y.jsx(Q$,{value:n,children:y.jsx(R.ol,{className:"chakra-breadcrumb__list",...l,__css:{display:"flex",alignItems:"center",...n.list},children:h})})})});eI.displayName="Breadcrumb";const hg=O(function(t,r){const{isCurrentPage:n,as:o,className:s,href:a,...i}=t,c=Yl(),l={ref:r,as:o,className:j("chakra-breadcrumb__link",s),...i};return n?y.jsx(R.span,{"aria-current":"page",__css:c.link,...l}):y.jsx(R.a,{__css:c.link,href:a,...l})});hg.displayName="BreadcrumbLink";const Tc=O(function(t,r){const{spacing:n,...o}=t,s=Yl(),a={mx:n,...s.separator};return y.jsx(R.span,{ref:r,role:"presentation",...o,__css:a})});Tc.displayName="BreadcrumbSeparator";const tI=O(function(t,r){const{isCurrentPage:n,separator:o,isLastChild:s,spacing:a,children:i,className:c,...l}=t,d=Mn(i).map(m=>m.type===hg?p.cloneElement(m,{isCurrentPage:n}):m.type===Tc?p.cloneElement(m,{spacing:a,children:m.props.children||o}):m),f=Yl(),h={display:"inline-flex",alignItems:"center",...f.item},g=j("chakra-breadcrumb__list-item",c);return y.jsxs(R.li,{ref:r,className:g,...l,__css:h,children:[d,!s&&y.jsx(Tc,{spacing:a,children:o})]})});tI.displayName="BreadcrumbItem";const[rI,nI]=ae({strict:!1,name:"ButtonGroupContext"});function ao(e){const{children:t,className:r,...n}=e,o=p.isValidElement(t)?p.cloneElement(t,{"aria-hidden":!0,focusable:!1}):t,s=j("chakra-button__icon",r);return y.jsx(R.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...n,className:s,children:o})}ao.displayName="ButtonIcon";function Ac(e){const{label:t,placement:r,spacing:n="0.5rem",children:o=y.jsx(Vl,{color:"currentColor",width:"1em",height:"1em"}),className:s,__css:a,...i}=e,c=j("chakra-button__spinner",s),l=r==="start"?"marginEnd":"marginStart",u=p.useMemo(()=>({display:"flex",alignItems:"center",position:t?"relative":"absolute",[l]:t?n:0,fontSize:"1em",lineHeight:"normal",...a}),[a,t,l,n]);return y.jsx(R.div,{className:c,...i,__css:u,children:o})}Ac.displayName="ButtonSpinner";function oI(e){const[t,r]=p.useState(!e);return{ref:p.useCallback(s=>{s&&r(s.tagName==="BUTTON")},[]),type:t?"button":void 0}}const mg=O((e,t)=>{const r=nI(),n=st("Button",{...r,...e}),{isDisabled:o=r==null?void 0:r.isDisabled,isLoading:s,isActive:a,children:i,leftIcon:c,rightIcon:l,loadingText:u,iconSpacing:d="0.5rem",type:f,spinner:h,spinnerPlacement:g="start",className:m,as:b,shouldWrapChildren:S,...v}=ce(e),x=p.useMemo(()=>{const T={...n==null?void 0:n._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...n,...!!r&&{_focus:T}}},[n,r]),{ref:C,type:k}=oI(b),A={rightIcon:l,leftIcon:c,iconSpacing:d,children:i,shouldWrapChildren:S};return y.jsxs(R.button,{disabled:o||s,ref:I0(t,C),as:b,type:f??k,"data-active":V(a),"data-loading":V(s),__css:x,className:j("chakra-button",m),...v,children:[s&&g==="start"&&y.jsx(Ac,{className:"chakra-button__spinner--start",label:u,placement:"start",spacing:d,children:h}),s?u||y.jsx(R.span,{opacity:0,children:y.jsx(jf,{...A})}):y.jsx(jf,{...A}),s&&g==="end"&&y.jsx(Ac,{className:"chakra-button__spinner--end",label:u,placement:"end",spacing:d,children:h})]})});mg.displayName="Button";function jf(e){const{leftIcon:t,rightIcon:r,children:n,iconSpacing:o,shouldWrapChildren:s}=e;return s?y.jsxs("span",{style:{display:"contents"},children:[t&&y.jsx(ao,{marginEnd:o,children:t}),n,r&&y.jsx(ao,{marginStart:o,children:r})]}):y.jsxs(y.Fragment,{children:[t&&y.jsx(ao,{marginEnd:o,children:t}),n,r&&y.jsx(ao,{marginStart:o,children:r})]})}const sI={horizontal:{"> *:first-of-type:not(:last-of-type)":{borderEndRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderStartRadius:0}},vertical:{"> *:first-of-type:not(:last-of-type)":{borderBottomRadius:0},"> *:not(:first-of-type):not(:last-of-type)":{borderRadius:0},"> *:not(:first-of-type):last-of-type":{borderTopRadius:0}}},aI={horizontal:e=>({"& > *:not(style) ~ *:not(style)":{marginStart:e}}),vertical:e=>({"& > *:not(style) ~ *:not(style)":{marginTop:e}})},iI=O(function(t,r){const{size:n,colorScheme:o,variant:s,className:a,spacing:i="0.5rem",isAttached:c,isDisabled:l,orientation:u="horizontal",...d}=t,f=j("chakra-button__group",a),h=p.useMemo(()=>({size:n,colorScheme:o,variant:s,isDisabled:l}),[n,o,s,l]);let g={display:"inline-flex",...c?sI[u]:aI[u](i)};const m=u==="vertical";return y.jsx(rI,{value:h,children:y.jsx(R.div,{ref:r,role:"group",__css:g,className:f,"data-attached":c?"":void 0,"data-orientation":u,flexDir:m?"column":void 0,...d})})});iI.displayName="ButtonGroup";const cI=O((e,t)=>{const{icon:r,children:n,isRound:o,"aria-label":s,...a}=e,i=r||n,c=p.isValidElement(i)?p.cloneElement(i,{"aria-hidden":!0,focusable:!1}):null;return y.jsx(mg,{px:"0",py:"0",borderRadius:o?"full":void 0,ref:t,"aria-label":s,...a,children:c})});cI.displayName="IconButton";const[lI,Zl]=Oh("Card"),Sj=O(function(t,r){const{className:n,children:o,direction:s="column",justify:a,align:i,...c}=ce(t),l=Fe("Card",t);return y.jsx(R.div,{ref:r,className:j("chakra-card",n),__css:{display:"flex",flexDirection:s,justifyContent:a,alignItems:i,position:"relative",minWidth:0,wordWrap:"break-word",...l.container},...c,children:y.jsx(lI,{value:l,children:o})})}),wj=O(function(t,r){const{className:n,...o}=t,s=Zl();return y.jsx(R.div,{ref:r,className:j("chakra-card__body",n),__css:s.body,...o})}),kj=O(function(t,r){const{className:n,justify:o,...s}=t,a=Zl();return y.jsx(R.div,{ref:r,className:j("chakra-card__footer",n),__css:{display:"flex",justifyContent:o,...a.footer},...s})}),Cj=O(function(t,r){const{className:n,...o}=t,s=Zl();return y.jsx(R.div,{ref:r,className:j("chakra-card__header",n),__css:s.header,...o})}),uI=R("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});uI.displayName="Center";const dI={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}};O(function(t,r){const{axis:n="both",...o}=t;return y.jsx(R.div,{ref:r,__css:dI[n],...o,position:"absolute"})});const[fI,pI]=ae({name:"CheckboxGroupContext",strict:!1});function hI(e){return y.jsx(R.svg,{width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16},...e,children:y.jsx("polyline",{points:"1.5 6 4.5 9 10.5 1"})})}function mI(e){return y.jsx(R.svg,{width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4},...e,children:y.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function gI(e){const{isIndeterminate:t,isChecked:r,...n}=e,o=t?mI:hI;return r||t?y.jsx(R.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:y.jsx(o,{...n})}):null}var bI=()=>typeof document<"u",Nf=!1,Go=null,Dr=!1,Ec=!1,Rc=new Set;function Jl(e,t){Rc.forEach(r=>r(e,t))}var yI=typeof window<"u"&&window.navigator!=null?/^Mac/.test(window.navigator.platform):!1;function vI(e){return!(e.metaKey||!yI&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Bf(e){Dr=!0,vI(e)&&(Go="keyboard",Jl("keyboard",e))}function Ur(e){if(Go="pointer",e.type==="mousedown"||e.type==="pointerdown"){Dr=!0;const t=e.composedPath?e.composedPath()[0]:e.target;let r=!1;try{r=t.matches(":focus-visible")}catch{}if(r)return;Jl("pointer",e)}}function xI(e){return e.mozInputSource===0&&e.isTrusted?!0:e.detail===0&&!e.pointerType}function SI(e){xI(e)&&(Dr=!0,Go="virtual")}function wI(e){e.target===window||e.target===document||e.target instanceof Element&&e.target.hasAttribute("tabindex")||(!Dr&&!Ec&&(Go="virtual",Jl("virtual",e)),Dr=!1,Ec=!1)}function kI(){Dr=!1,Ec=!0}function zf(){return Go!=="pointer"}function CI(){if(!bI()||Nf)return;const{focus:e}=HTMLElement.prototype;HTMLElement.prototype.focus=function(...r){Dr=!0,e.apply(this,r)},document.addEventListener("keydown",Bf,!0),document.addEventListener("keyup",Bf,!0),document.addEventListener("click",SI,!0),window.addEventListener("focus",wI,!0),window.addEventListener("blur",kI,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Ur,!0),document.addEventListener("pointermove",Ur,!0),document.addEventListener("pointerup",Ur,!0)):(document.addEventListener("mousedown",Ur,!0),document.addEventListener("mousemove",Ur,!0),document.addEventListener("mouseup",Ur,!0)),Nf=!0}function gg(e){CI(),e(zf());const t=()=>e(zf());return Rc.add(t),()=>{Rc.delete(t)}}const[_I,bg]=ae({name:"FormControlStylesContext",errorMessage:`useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormControl />" `}),[PI,zr]=ae({strict:!1,name:"FormControlContext"});function TI(e){const{id:t,isRequired:r,isInvalid:n,isDisabled:o,isReadOnly:s,...a}=e,i=p.useId(),c=t||`field-${i}`,l=`${c}-label`,u=`${c}-feedback`,d=`${c}-helptext`,[f,h]=p.useState(!1),[g,m]=p.useState(!1),[b,S]=p.useState(!1),v=p.useCallback((T={},$=null)=>({id:d,...T,ref:Ie($,M=>{M&&m(!0)})}),[d]),x=p.useCallback((T={},$=null)=>({...T,ref:$,"data-focus":V(b),"data-disabled":V(o),"data-invalid":V(n),"data-readonly":V(s),id:T.id!==void 0?T.id:l,htmlFor:T.htmlFor!==void 0?T.htmlFor:c}),[c,o,b,n,s,l]),C=p.useCallback((T={},$=null)=>({id:u,...T,ref:Ie($,M=>{M&&h(!0)}),"aria-live":"polite"}),[u]),k=p.useCallback((T={},$=null)=>({...T,...a,ref:$,role:"group","data-focus":V(b),"data-disabled":V(o),"data-invalid":V(n),"data-readonly":V(s)}),[a,o,b,n,s]),A=p.useCallback((T={},$=null)=>({...T,ref:$,role:"presentation","aria-hidden":!0,children:T.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!n,isReadOnly:!!s,isDisabled:!!o,isFocused:!!b,onFocus:()=>S(!0),onBlur:()=>S(!1),hasFeedbackText:f,setHasFeedbackText:h,hasHelpText:g,setHasHelpText:m,id:c,labelId:l,feedbackId:u,helpTextId:d,htmlProps:a,getHelpTextProps:v,getErrorMessageProps:C,getRootProps:k,getLabelProps:x,getRequiredIndicatorProps:A}}const AI=O(function(t,r){const n=Fe("Form",t),o=ce(t),{getRootProps:s,htmlProps:a,...i}=TI(o),c=j("chakra-form-control",t.className);return y.jsx(PI,{value:i,children:y.jsx(_I,{value:n,children:y.jsx(R.div,{...s({},r),className:c,__css:n.container})})})});AI.displayName="FormControl";const EI=O(function(t,r){const n=zr(),o=bg(),s=j("chakra-form__helper-text",t.className);return y.jsx(R.div,{...n==null?void 0:n.getHelpTextProps(t,r),__css:o.helperText,className:s})});EI.displayName="FormHelperText";function Ql(e){const{isDisabled:t,isInvalid:r,isReadOnly:n,isRequired:o,...s}=yg(e);return{...s,disabled:t,readOnly:n,required:o,"aria-invalid":un(r),"aria-required":un(o),"aria-readonly":un(n)}}function yg(e){const t=zr(),{id:r,disabled:n,readOnly:o,required:s,isRequired:a,isInvalid:i,isReadOnly:c,isDisabled:l,onFocus:u,onBlur:d,...f}=e,h=e["aria-describedby"]?[e["aria-describedby"]]:[];return t!=null&&t.hasFeedbackText&&(t!=null&&t.isInvalid)&&h.push(t.feedbackId),t!=null&&t.hasHelpText&&h.push(t.helpTextId),{...f,"aria-describedby":h.join(" ")||void 0,id:r??(t==null?void 0:t.id),isDisabled:n??l??(t==null?void 0:t.isDisabled),isReadOnly:o??c??(t==null?void 0:t.isReadOnly),isRequired:s??a??(t==null?void 0:t.isRequired),isInvalid:i??(t==null?void 0:t.isInvalid),onFocus:H(t==null?void 0:t.onFocus,u),onBlur:H(t==null?void 0:t.onBlur,d)}}const vg={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};function xg(e={}){const t=yg(e),{isDisabled:r,isReadOnly:n,isRequired:o,isInvalid:s,id:a,onBlur:i,onFocus:c,"aria-describedby":l}=t,{defaultChecked:u,isChecked:d,isFocusable:f,onChange:h,isIndeterminate:g,name:m,value:b,tabIndex:S=void 0,"aria-label":v,"aria-labelledby":x,"aria-invalid":C,...k}=e,A=Fn(k,["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),T=gt(h),$=gt(i),M=gt(c),[I,D]=p.useState(!1),[X,L]=p.useState(!1),[q,Z]=p.useState(!1),[U,F]=p.useState(!1);p.useEffect(()=>gg(D),[]);const ee=p.useRef(null),[te,le]=p.useState(!0),[ke,xe]=p.useState(!!u),N=d!==void 0,K=N?d:ke,ne=p.useCallback(Q=>{if(n||r){Q.preventDefault();return}N||xe(K?Q.currentTarget.checked:g?!0:Q.currentTarget.checked),T==null||T(Q)},[n,r,K,N,g,T]);Zt(()=>{ee.current&&(ee.current.indeterminate=!!g)},[g]),Or(()=>{r&&L(!1)},[r,L]),Zt(()=>{const Q=ee.current;if(!(Q!=null&&Q.form))return;const ve=()=>{xe(!!u)};return Q.form.addEventListener("reset",ve),()=>{var z;return(z=Q.form)==null?void 0:z.removeEventListener("reset",ve)}},[]);const oe=r&&!f,Ce=p.useCallback(Q=>{Q.key===" "&&F(!0)},[F]),_e=p.useCallback(Q=>{Q.key===" "&&F(!1)},[F]);Zt(()=>{if(!ee.current)return;ee.current.checked!==K&&xe(ee.current.checked)},[ee.current]);const qe=p.useCallback((Q={},ve=null)=>{const z=ue=>{X&&ue.preventDefault(),F(!0)};return{...Q,ref:ve,"data-active":V(U),"data-hover":V(q),"data-checked":V(K),"data-focus":V(X),"data-focus-visible":V(X&&I),"data-indeterminate":V(g),"data-disabled":V(r),"data-invalid":V(s),"data-readonly":V(n),"aria-hidden":!0,onMouseDown:H(Q.onMouseDown,z),onMouseUp:H(Q.onMouseUp,()=>F(!1)),onMouseEnter:H(Q.onMouseEnter,()=>Z(!0)),onMouseLeave:H(Q.onMouseLeave,()=>Z(!1))}},[U,K,r,X,I,q,g,s,n]),Je=p.useCallback((Q={},ve=null)=>({...Q,ref:ve,"data-active":V(U),"data-hover":V(q),"data-checked":V(K),"data-focus":V(X),"data-focus-visible":V(X&&I),"data-indeterminate":V(g),"data-disabled":V(r),"data-invalid":V(s),"data-readonly":V(n)}),[U,K,r,X,I,q,g,s,n]),J=p.useCallback((Q={},ve=null)=>({...A,...Q,ref:Ie(ve,z=>{z&&le(z.tagName==="LABEL")}),onClick:H(Q.onClick,()=>{var z;te||((z=ee.current)==null||z.click(),requestAnimationFrame(()=>{var ue;(ue=ee.current)==null||ue.focus({preventScroll:!0})}))}),"data-disabled":V(r),"data-checked":V(K),"data-invalid":V(s)}),[A,r,K,s,te]),re=p.useCallback((Q={},ve=null)=>({...Q,ref:Ie(ee,ve),type:"checkbox",name:m,value:b,id:a,tabIndex:S,onChange:H(Q.onChange,ne),onBlur:H(Q.onBlur,$,()=>L(!1)),onFocus:H(Q.onFocus,M,()=>L(!0)),onKeyDown:H(Q.onKeyDown,Ce),onKeyUp:H(Q.onKeyUp,_e),required:o,checked:K,disabled:oe,readOnly:n,"aria-label":v,"aria-labelledby":x,"aria-invalid":C?!!C:s,"aria-describedby":l,"aria-disabled":r,style:vg}),[m,b,a,ne,$,M,Ce,_e,o,K,oe,n,v,x,C,s,l,r,S]),$e=p.useCallback((Q={},ve=null)=>({...Q,ref:ve,onMouseDown:H(Q.onMouseDown,RI),"data-disabled":V(r),"data-checked":V(K),"data-invalid":V(s)}),[K,r,s]);return{state:{isInvalid:s,isFocused:X,isChecked:K,isActive:U,isHovered:q,isIndeterminate:g,isDisabled:r,isReadOnly:n,isRequired:o},getRootProps:J,getCheckboxProps:qe,getIndicatorProps:Je,getInputProps:re,getLabelProps:$e,htmlProps:A}}function RI(e){e.preventDefault(),e.stopPropagation()}function $I(e){const[t,r]=p.useState(e),[n,o]=p.useState(!1);return e!==t&&(o(!0),r(e)),n}const II={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},MI={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},OI=Vt({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),FI=Vt({from:{opacity:0},to:{opacity:1}}),DI=Vt({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),jI=O(function(t,r){const n=pI(),o={...n,...t},s=Fe("Checkbox",o),a=ce(t),{spacing:i="0.5rem",className:c,children:l,iconColor:u,iconSize:d,icon:f=y.jsx(gI,{}),isChecked:h,isDisabled:g=n==null?void 0:n.isDisabled,onChange:m,inputProps:b,...S}=a;let v=h;n!=null&&n.value&&a.value&&(v=n.value.includes(a.value));let x=m;n!=null&&n.onChange&&a.value&&(x=ga(n.onChange,m));const{state:C,getInputProps:k,getCheckboxProps:A,getLabelProps:T,getRootProps:$}=xg({...S,isDisabled:g,isChecked:v,onChange:x}),M=$I(C.isChecked),I=p.useMemo(()=>({animation:M?C.isIndeterminate?`${FI} 20ms linear, ${DI} 200ms linear`:`${OI} 200ms linear`:void 0,...s.icon,...On({fontSize:d,color:u})}),[u,d,M,C.isIndeterminate,s.icon]),D=p.cloneElement(f,{__css:I,isIndeterminate:C.isIndeterminate,isChecked:C.isChecked});return y.jsxs(R.label,{__css:{...MI,...s.container},className:j("chakra-checkbox",c),...$(),children:[y.jsx("input",{className:"chakra-checkbox__input",...k(b,r)}),y.jsx(R.span,{__css:{...II,...s.control},className:"chakra-checkbox__control",...A(),children:D}),l&&y.jsx(R.span,{className:"chakra-checkbox__label",...T(),__css:{marginStart:i,...s.label},children:l})]})});jI.displayName="Checkbox";function Lf(e){return e&&je(e)&&je(e.target)}function NI(e={}){const{defaultValue:t,value:r,onChange:n,isDisabled:o,isNative:s}=e,a=gt(n),[i,c]=rl({value:r,defaultValue:t||[],onChange:a}),l=p.useCallback(d=>{if(!i)return;const f=Lf(d)?d.target.checked:!i.includes(d),h=Lf(d)?d.target.value:d,g=f?[...i,h]:i.filter(m=>String(m)!==String(h));c(g)},[c,i]),u=p.useCallback((d={})=>({...d,[s?"checked":"isChecked"]:i.some(h=>String(d.value)===String(h)),onChange:l}),[l,s,i]);return{value:i,isDisabled:o,onChange:l,setValue:c,getCheckboxProps:u}}function BI(e){const{colorScheme:t,size:r,variant:n,children:o,isDisabled:s}=e,{value:a,onChange:i}=NI(e),c=p.useMemo(()=>({size:r,onChange:i,colorScheme:t,value:a,variant:n,isDisabled:s}),[r,i,t,a,n,s]);return y.jsx(fI,{value:c,children:o})}BI.displayName="CheckboxGroup";const zI=O(function(t,r){const{className:n,centerContent:o,...s}=ce(t),a=st("Container",t);return y.jsx(R.div,{ref:r,className:j("chakra-container",n),...s,__css:{...a,...o&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});zI.displayName="Container";const LI=O(function(t,r){const{borderLeftWidth:n,borderBottomWidth:o,borderTopWidth:s,borderRightWidth:a,borderWidth:i,borderStyle:c,borderColor:l,...u}=st("Divider",t),{className:d,orientation:f="horizontal",__css:h,...g}=ce(t),m={vertical:{borderLeftWidth:n||a||i||"1px",height:"100%"},horizontal:{borderBottomWidth:o||s||i||"1px",width:"100%"}};return y.jsx(R.hr,{ref:r,"aria-orientation":f,...g,__css:{...u,border:"0",borderColor:l,borderStyle:c,...m[f],...h},className:j("chakra-divider",d)})});LI.displayName="Divider";function io(e){return typeof e=="function"}function VI(...e){return t=>e.reduce((r,n)=>n(r),t)}const WI=e=>function(...r){let n=[...r],o=r[r.length-1];return nP(o)&&n.length>1?n=n.slice(0,n.length-1):o=e,VI(...n.map(s=>a=>io(s)?s(a):HI(a,s)))(o)},_j=WI(dl);function HI(...e){return mt({},...e,Sg)}function Sg(e,t,r,n){if((io(e)||io(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...o)=>{const s=io(e)?e(...o):e,a=io(t)?t(...o):t;return mt({},s,a,Sg)};if(je(e)&&Yi(t)||Yi(e)&&je(t))return t}const UI=O(function(t,r){const{direction:n,align:o,justify:s,wrap:a,basis:i,grow:c,shrink:l,...u}=t,d={display:"flex",flexDirection:n,alignItems:o,justifyContent:s,flexWrap:a,flexBasis:i,flexGrow:c,flexShrink:l};return y.jsx(R.div,{ref:r,__css:d,...u})});UI.displayName="Flex";function GI(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Oi={exports:{}},Fi,Vf;function qI(){if(Vf)return Fi;Vf=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Fi=e,Fi}var Di,Wf;function KI(){if(Wf)return Di;Wf=1;var e=qI();function t(){}function r(){}return r.resetWarningCache=t,Di=function(){function n(a,i,c,l,u,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}n.isRequired=n;function o(){return n}var s={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},Di}var Hf;function XI(){return Hf||(Hf=1,Oi.exports=KI()()),Oi.exports}var YI=XI();const Pj=qc(YI);var $c="data-focus-lock",wg="data-focus-lock-disabled",ZI="data-no-focus-lock",JI="data-autofocus-inside",QI="data-no-autofocus";function ji(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function eM(e,t){var r=p.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var tM=typeof window<"u"?p.useLayoutEffect:p.useEffect,Uf=new WeakMap;function kg(e,t){var r=eM(null,function(n){return e.forEach(function(o){return ji(o,n)})});return tM(function(){var n=Uf.get(r);if(n){var o=new Set(n),s=new Set(e),a=r.current;o.forEach(function(i){s.has(i)||ji(i,null)}),s.forEach(function(i){o.has(i)||ji(i,a)})}Uf.set(r,e)},[e]),r}var Ni={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function Cg(e){return e}function _g(e,t){t===void 0&&(t=Cg);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var a=t(s,n);return r.push(a),function(){r=r.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(n=!0;r.length;){var a=r;r=[],a.forEach(s)}r={push:function(i){return s(i)},filter:function(){return r}}},assignMedium:function(s){n=!0;var a=[];if(r.length){var i=r;r=[],i.forEach(s),a=r}var c=function(){var u=a;a=[],u.forEach(s)},l=function(){return Promise.resolve().then(c)};l(),r={push:function(u){a.push(u),l()},filter:function(u){return a=a.filter(u),r}}}};return o}function eu(e,t){return t===void 0&&(t=Cg),_g(e,t)}function Pg(e){e===void 0&&(e={});var t=_g(null);return t.options=Ft({async:!0,ssr:!1},e),t}var Tg=function(e){var t=e.sideCar,r=Xm(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return p.createElement(n,Ft({},r))};Tg.isSideCarExport=!0;function rM(e,t){return e.useMedium(t),Tg}var Ag=eu({},function(e){var t=e.target,r=e.currentTarget;return{target:t,currentTarget:r}}),Eg=eu(),nM=eu(),oM=Pg({async:!0,ssr:typeof document<"u"}),sM=p.createContext(void 0),aM=[],tu=p.forwardRef(function(t,r){var n,o=p.useState(),s=o[0],a=o[1],i=p.useRef(),c=p.useRef(!1),l=p.useRef(null),u=p.useState({}),d=u[1],f=t.children,h=t.disabled,g=h===void 0?!1:h,m=t.noFocusGuards,b=m===void 0?!1:m,S=t.persistentFocus,v=S===void 0?!1:S,x=t.crossFrame,C=x===void 0?!0:x,k=t.autoFocus,A=k===void 0?!0:k;t.allowTextSelection;var T=t.group,$=t.className,M=t.whiteList,I=t.hasPositiveIndices,D=t.shards,X=D===void 0?aM:D,L=t.as,q=L===void 0?"div":L,Z=t.lockProps,U=Z===void 0?{}:Z,F=t.sideCar,ee=t.returnFocus,te=ee===void 0?!1:ee,le=t.focusOptions,ke=t.onActivation,xe=t.onDeactivation,N=p.useState({}),K=N[0],ne=p.useCallback(function(ve){var z=ve.captureFocusRestore;if(!l.current){var ue,de=(ue=document)==null?void 0:ue.activeElement;l.current=de,de!==document.body&&(l.current=z(de))}i.current&&ke&&ke(i.current),c.current=!0,d()},[ke]),oe=p.useCallback(function(){c.current=!1,xe&&xe(i.current),d()},[xe]),Ce=p.useCallback(function(ve){var z=l.current;if(z){var ue=(typeof z=="function"?z():z)||document.body,de=typeof te=="function"?te(ue):te;if(de){var Se=typeof de=="object"?de:void 0;l.current=null,ve?Promise.resolve().then(function(){return ue.focus(Se)}):ue.focus(Se)}}},[te]),_e=p.useCallback(function(ve){c.current&&Ag.useMedium(ve)},[]),qe=Eg.useMedium,Je=p.useCallback(function(ve){i.current!==ve&&(i.current=ve,a(ve))},[]),J=Mr((n={},n[wg]=g&&"disabled",n[$c]=T,n),U),re=b!==!0,$e=re&&b!=="tail",xt=kg([r,Je]),Q=p.useMemo(function(){return{observed:i,shards:X,enabled:!g,active:c.current}},[g,c.current,X,s]);return ht.createElement(p.Fragment,null,re&&[ht.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:g?-1:0,style:Ni}),I?ht.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:g?-1:1,style:Ni}):null],!g&&ht.createElement(F,{id:K,sideCar:oM,observed:s,disabled:g,persistentFocus:v,crossFrame:C,autoFocus:A,whiteList:M,shards:X,onActivation:ne,onDeactivation:oe,returnFocus:Ce,focusOptions:le,noFocusGuards:b}),ht.createElement(q,Mr({ref:xt},J,{className:$,onBlur:qe,onFocus:_e}),ht.createElement(sM.Provider,{value:Q},f)),$e&&ht.createElement("div",{"data-focus-guard":!0,tabIndex:g?-1:0,style:Ni}))});tu.propTypes={};function Ic(e,t){return Ic=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ic(e,t)}function iM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ic(e,t)}function Oo(e){"@babel/helpers - typeof";return Oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oo(e)}function cM(e,t){if(Oo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Oo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lM(e){var t=cM(e,"string");return Oo(t)=="symbol"?t:t+""}function uM(e,t,r){return(t=lM(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dM(e,t){function r(n){return n.displayName||n.name||"Component"}return function(o){var s=[],a;function i(){a=e(s.map(function(l){return l.props})),t(a)}var c=function(l){iM(u,l);function u(){return l.apply(this,arguments)||this}u.peek=function(){return a};var d=u.prototype;return d.componentDidMount=function(){s.push(this),i()},d.componentDidUpdate=function(){i()},d.componentWillUnmount=function(){var h=s.indexOf(this);s.splice(h,1),i()},d.render=function(){return ht.createElement(o,this.props)},u}(p.PureComponent);return uM(c,"displayName","SideEffect("+r(o)+")"),c}}var Wt=function(e){for(var t=Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t},jr=function(e){return Array.isArray(e)?e:[e]},Rg=function(e){return Array.isArray(e)?e[0]:e},fM=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue("display")==="none"||t.getPropertyValue("visibility")==="hidden"},$g=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},Ig=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},pM=function(e){return e.hasAttribute("inert")},hM=function(e,t){return!e||Ig(e)||!fM(e)&&!pM(e)&&t($g(e))},Mg=function(e,t){var r=e.get(t);if(r!==void 0)return r;var n=hM(t,Mg.bind(void 0,e));return e.set(t,n),n},mM=function(e,t){return e&&!Ig(e)?yM(e)?t($g(e)):!1:!0},Og=function(e,t){var r=e.get(t);if(r!==void 0)return r;var n=mM(t,Og.bind(void 0,e));return e.set(t,n),n},Fg=function(e){return e.dataset},gM=function(e){return e.tagName==="BUTTON"},Dg=function(e){return e.tagName==="INPUT"},jg=function(e){return Dg(e)&&e.type==="radio"},bM=function(e){return!((Dg(e)||gM(e))&&(e.type==="hidden"||e.disabled))},yM=function(e){var t=e.getAttribute(QI);return![!0,"true",""].includes(t)},ru=function(e){var t;return!!(e&&(!((t=Fg(e))===null||t===void 0)&&t.focusGuard))},Mc=function(e){return!ru(e)},vM=function(e){return!!e},xM=function(e,t){var r=Math.max(0,e.tabIndex),n=Math.max(0,t.tabIndex),o=r-n,s=e.index-t.index;if(o){if(!r)return 1;if(!n)return-1}return o||s},SM=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex},nu=function(e,t,r){return Wt(e).map(function(n,o){var s=SM(n);return{node:n,index:o,tabIndex:r&&s===-1?(n.dataset||{}).focusGuard?0:-1:s}}).filter(function(n){return!t||n.tabIndex>=0}).sort(xM)},wM=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],ou=wM.join(","),kM="".concat(ou,", [data-focus-guard]"),Ng=function(e,t){return Wt((e.shadowRoot||e).children).reduce(function(r,n){return r.concat(n.matches(t?kM:ou)?[n]:[],Ng(n))},[])},CM=function(e,t){var r;return e instanceof HTMLIFrameElement&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?Tn([e.contentDocument.body],t):[e]},Tn=function(e,t){return e.reduce(function(r,n){var o,s=Ng(n,t),a=(o=[]).concat.apply(o,s.map(function(i){return CM(i,t)}));return r.concat(a,n.parentNode?Wt(n.parentNode.querySelectorAll(ou)).filter(function(i){return i===n}):[])},[])},_M=function(e){var t=e.querySelectorAll("[".concat(JI,"]"));return Wt(t).map(function(r){return Tn([r])}).reduce(function(r,n){return r.concat(n)},[])},su=function(e,t){return Wt(e).filter(function(r){return Mg(t,r)}).filter(function(r){return bM(r)})},Gf=function(e,t){return t===void 0&&(t=new Map),Wt(e).filter(function(r){return Og(t,r)})},au=function(e,t,r){return nu(su(Tn(e,r),t),!0,r)},Fo=function(e,t){return nu(su(Tn(e),t),!1)},PM=function(e,t){return su(_M(e),t)},$r=function(e,t){return e.shadowRoot?$r(e.shadowRoot,t):Object.getPrototypeOf(e).contains!==void 0&&Object.getPrototypeOf(e).contains.call(e,t)?!0:Wt(e.children).some(function(r){var n;if(r instanceof HTMLIFrameElement){var o=(n=r.contentDocument)===null||n===void 0?void 0:n.body;return o?$r(o,t):!1}return $r(r,t)})},TM=function(e){for(var t=new Set,r=e.length,n=0;n<r;n+=1)for(var o=n+1;o<r;o+=1){var s=e[n].compareDocumentPosition(e[o]);(s&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(s&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return e.filter(function(a,i){return!t.has(i)})},Bg=function(e){return e.parentNode?Bg(e.parentNode):e},iu=function(e){var t=jr(e);return t.filter(Boolean).reduce(function(r,n){var o=n.getAttribute($c);return r.push.apply(r,o?TM(Wt(Bg(n).querySelectorAll("[".concat($c,'="').concat(o,'"]:not([').concat(wg,'="disabled"])')))):[n]),r},[])},AM=function(e){try{return e()}catch{return}},Do=function(e){if(e===void 0&&(e=document),!(!e||!e.activeElement)){var t=e.activeElement;return t.shadowRoot?Do(t.shadowRoot):t instanceof HTMLIFrameElement&&AM(function(){return t.contentWindow.document})?Do(t.contentWindow.document):t}},EM=function(e,t){return e===t},RM=function(e,t){return!!Wt(e.querySelectorAll("iframe")).some(function(r){return EM(r,t)})},zg=function(e,t){return t===void 0&&(t=Do(Rg(e).ownerDocument)),!t||t.dataset&&t.dataset.focusGuard?!1:iu(e).some(function(r){return $r(r,t)||RM(r,t)})},$M=function(e){e===void 0&&(e=document);var t=Do(e);return t?Wt(e.querySelectorAll("[".concat(ZI,"]"))).some(function(r){return $r(r,t)}):!1},IM=function(e,t){return t.filter(jg).filter(function(r){return r.name===e.name}).filter(function(r){return r.checked})[0]||e},cu=function(e,t){return jg(e)&&e.name?IM(e,t):e},MM=function(e){var t=new Set;return e.forEach(function(r){return t.add(cu(r,e))}),e.filter(function(r){return t.has(r)})},qf=function(e){return e[0]&&e.length>1?cu(e[0],e):e[0]},Kf=function(e,t){return e.indexOf(cu(t,e))},Oc="NEW_FOCUS",OM=function(e,t,r,n,o){var s=e.length,a=e[0],i=e[s-1],c=ru(n);if(!(n&&e.indexOf(n)>=0)){var l=n!==void 0?r.indexOf(n):-1,u=o?r.indexOf(o):l,d=o?e.indexOf(o):-1;if(l===-1)return d!==-1?d:Oc;if(d===-1)return Oc;var f=l-u,h=r.indexOf(a),g=r.indexOf(i),m=MM(r),b=n!==void 0?m.indexOf(n):-1,S=o?m.indexOf(o):b,v=m.filter(function($){return $.tabIndex>=0}),x=n!==void 0?v.indexOf(n):-1,C=o?v.indexOf(o):x,k=x>=0&&C>=0?C-x:S-b;if(!f&&d>=0||t.length===0)return d;var A=Kf(e,t[0]),T=Kf(e,t[t.length-1]);if(l<=h&&c&&Math.abs(f)>1)return T;if(l>=g&&c&&Math.abs(f)>1)return A;if(f&&Math.abs(k)>1)return d;if(l<=h)return T;if(l>g)return A;if(f)return Math.abs(f)>1?d:(s+d+f)%s}},FM=function(e){return function(t){var r,n=(r=Fg(t))===null||r===void 0?void 0:r.autofocus;return t.autofocus||n!==void 0&&n!=="false"||e.indexOf(t)>=0}},Xf=function(e,t,r){var n=e.map(function(s){var a=s.node;return a}),o=Gf(n.filter(FM(r)));return o&&o.length?qf(o):qf(Gf(t))},Fc=function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&Fc(e.parentNode.host||e.parentNode,t),t},Bi=function(e,t){for(var r=Fc(e),n=Fc(t),o=0;o<r.length;o+=1){var s=r[o];if(n.indexOf(s)>=0)return s}return!1},Lg=function(e,t,r){var n=jr(e),o=jr(t),s=n[0],a=!1;return o.filter(Boolean).forEach(function(i){a=Bi(a||i,i)||a,r.filter(Boolean).forEach(function(c){var l=Bi(s,c);l&&(!a||$r(l,a)?a=l:a=Bi(l,a))})}),a},Yf=function(e,t){return e.reduce(function(r,n){return r.concat(PM(n,t))},[])},DM=function(e,t){var r=new Map;return t.forEach(function(n){return r.set(n.node,n)}),e.map(function(n){return r.get(n)}).filter(vM)},jM=function(e,t){var r=Do(jr(e).length>0?document:Rg(e).ownerDocument),n=iu(e).filter(Mc),o=Lg(r||e,e,n),s=new Map,a=Fo(n,s),i=a.filter(function(g){var m=g.node;return Mc(m)});if(i[0]){var c=Fo([o],s).map(function(g){var m=g.node;return m}),l=DM(c,i),u=l.map(function(g){var m=g.node;return m}),d=l.filter(function(g){var m=g.tabIndex;return m>=0}).map(function(g){var m=g.node;return m}),f=OM(u,d,c,r,t);if(f===Oc){var h=Xf(a,d,Yf(n,s))||Xf(a,u,Yf(n,s));if(h)return{node:h};console.warn("focus-lock: cannot find any node to move focus into");return}return f===void 0?f:l[f]}},NM=function(e){var t=iu(e).filter(Mc),r=Lg(e,e,t),n=nu(Tn([r],!0),!0,!0),o=Tn(t,!1);return n.map(function(s){var a=s.node,i=s.index;return{node:a,index:i,lockItem:o.indexOf(a)>=0,guard:ru(a)}})},lu=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},zi=0,Li=!1,Vg=function(e,t,r){r===void 0&&(r={});var n=jM(e,t);if(!Li&&n){if(zi>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Li=!0,setTimeout(function(){Li=!1},1);return}zi++,lu(n.node,r.focusOptions),zi--}};function Zn(e){if(!e)return null;if(typeof WeakRef>"u")return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(t==null?void 0:t.deref())||null}}var BM=function(e){if(!e)return null;for(var t=[],r=e;r&&r!==document.body;)t.push({current:Zn(r),parent:Zn(r.parentElement),left:Zn(r.previousElementSibling),right:Zn(r.nextElementSibling)}),r=r.parentElement;return{element:Zn(e),stack:t,ownerDocument:e.ownerDocument}},zM=function(e){var t,r,n,o,s;if(e)for(var a=e.stack,i=e.ownerDocument,c=new Map,l=0,u=a;l<u.length;l++){var d=u[l],f=(t=d.parent)===null||t===void 0?void 0:t.call(d);if(f&&i.contains(f)){for(var h=(r=d.left)===null||r===void 0?void 0:r.call(d),g=d.current(),m=f.contains(g)?g:void 0,b=(n=d.right)===null||n===void 0?void 0:n.call(d),S=au([f],c),v=(s=(o=m??(h==null?void 0:h.nextElementSibling))!==null&&o!==void 0?o:b)!==null&&s!==void 0?s:h;v;){for(var x=0,C=S;x<C.length;x++){var k=C[x];if(v!=null&&v.contains(k.node))return k.node}v=v.nextElementSibling}if(S.length)return S[0].node}}},Wg=function(e){var t=BM(e);return function(){return zM(t)}},LM=function(e,t,r){if(!e||!t)return console.error("no element or scope given"),{};var n=jr(t);if(n.every(function(a){return!$r(a,e)}))return console.error("Active element is not contained in the scope"),{};var o=r?au(n,new Map):Fo(n,new Map),s=o.findIndex(function(a){var i=a.node;return i===e});if(s!==-1)return{prev:o[s-1],next:o[s+1],first:o[0],last:o[o.length-1]}},VM=function(e,t){var r=t?au(jr(e),new Map):Fo(jr(e),new Map);return{first:r[0],last:r[r.length-1]}},WM=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)},Hg=function(e,t,r){t===void 0&&(t={});var n=WM(t),o=LM(e,n.scope,n.onlyTabbable);if(o){var s=r(o,n.cycle);s&&lu(s.node,n.focusOptions)}},HM=function(e,t){t===void 0&&(t={}),Hg(e,t,function(r,n){var o=r.next,s=r.first;return o||n&&s})},UM=function(e,t){t===void 0&&(t={}),Hg(e,t,function(r,n){var o=r.prev,s=r.last;return o||n&&s})},Ug=function(e,t,r){var n,o=VM(e,(n=t.onlyTabbable)!==null&&n!==void 0?n:!0),s=o[r];s&&lu(s.node,t.focusOptions)},GM=function(e,t){t===void 0&&(t={}),Ug(e,t,"first")},qM=function(e,t){t===void 0&&(t={}),Ug(e,t,"last")};function uu(e){setTimeout(e,1)}var KM=function(t){return t&&"current"in t?t.current:t},Gg=function(){return document&&document.activeElement===document.body},XM=function(){return Gg()||$M()},yn=null,Qe=null,Zf=function(){return null},vn=null,jo=!1,du=!1,YM=function(){return!0},ZM=function(t){return(yn.whiteList||YM)(t)},JM=function(t,r){vn={observerNode:t,portaledElement:r}},QM=function(t){return vn&&vn.portaledElement===t};function Jf(e,t,r,n){var o=null,s=e;do{var a=n[s];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else if(a.lockItem){if(s!==e)return;o=null}else break}while((s+=r)!==t);o&&(o.node.tabIndex=0)}var e2=function(t){return t?!!jo:jo==="meanwhile"},t2=function e(t,r,n){return r&&(r.host===t&&(!r.activeElement||n.contains(r.activeElement))||r.parentNode&&e(t,r.parentNode,n))},r2=function(t,r){return r.some(function(n){return t2(t,n,n)})},qg=function(t){return Fo(t,new Map)},n2=function(t){return!qg([t.parentNode]).some(function(r){return r.node===t})},ca=function(){var t=!1;if(yn){var r=yn,n=r.observed,o=r.persistentFocus,s=r.autoFocus,a=r.shards,i=r.crossFrame,c=r.focusOptions,l=r.noFocusGuards,u=n||vn&&vn.portaledElement;if(Gg()&&Qe&&Qe!==document.body&&(!document.body.contains(Qe)||n2(Qe))){var d=Zf();d&&d.focus()}var f=document&&document.activeElement;if(u){var h=[u].concat(a.map(KM).filter(Boolean)),g=function(){if(!e2(i)||!l||!Qe||du)return!1;var x=qg(h),C=x.findIndex(function(k){var A=k.node;return A===Qe});return C===0||C===x.length-1};if((!f||ZM(f))&&(o||g()||!XM()||!Qe&&s)&&(u&&!(zg(h)||f&&r2(f,h)||QM(f))&&(document&&!Qe&&f&&!s?(f.blur&&f.blur(),document.body.focus()):(t=Vg(h,Qe,{focusOptions:c}),vn={})),Qe=document&&document.activeElement,Qe!==document.body&&(Zf=Wg(Qe)),jo=!1),document&&f!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var m=document&&document.activeElement,b=NM(h),S=b.map(function(v){var x=v.node;return x}).indexOf(m);S>-1&&(b.filter(function(v){var x=v.guard,C=v.node;return x&&C.dataset.focusAutoGuard}).forEach(function(v){var x=v.node;return x.removeAttribute("tabIndex")}),Jf(S,b.length,1,b),Jf(S,-1,-1,b))}}}return t},Kg=function(t){ca()&&t&&(t.stopPropagation(),t.preventDefault())},fu=function(){return uu(ca)},o2=function(t){var r=t.target,n=t.currentTarget;n.contains(r)||JM(n,r)},s2=function(){return null},Xg=function(){du=!0},Yg=function(){du=!1,jo="just",uu(function(){jo="meanwhile"})},a2=function(){document.addEventListener("focusin",Kg),document.addEventListener("focusout",fu),window.addEventListener("focus",Xg),window.addEventListener("blur",Yg)},i2=function(){document.removeEventListener("focusin",Kg),document.removeEventListener("focusout",fu),window.removeEventListener("focus",Xg),window.removeEventListener("blur",Yg)};function c2(e){return e.filter(function(t){var r=t.disabled;return!r})}var Zg={moveFocusInside:Vg,focusInside:zg,focusNextElement:HM,focusPrevElement:UM,focusFirstElement:GM,focusLastElement:qM,captureFocusRestore:Wg};function l2(e){var t=e.slice(-1)[0];t&&!yn&&a2();var r=yn,n=r&&t&&t.id===r.id;yn=t,r&&!n&&(r.onDeactivation(),e.filter(function(o){var s=o.id;return s===r.id}).length||r.returnFocus(!t)),t?(Qe=null,(!n||r.observed!==t.observed)&&t.onActivation(Zg),ca(),uu(ca)):(i2(),Qe=null)}Ag.assignSyncMedium(o2);Eg.assignMedium(fu);nM.assignMedium(function(e){return e(Zg)});const u2=dM(c2,l2)(s2);var Dc=p.forwardRef(function(t,r){return ht.createElement(tu,Mr({sideCar:u2,ref:r},t))}),Jg=tu.propTypes||{};Jg.sideCar;GI(Jg,["sideCar"]);Dc.propTypes={};const d2=Dc.default??Dc,Qg=e=>{const{initialFocusRef:t,finalFocusRef:r,contentRef:n,restoreFocus:o,children:s,isDisabled:a,autoFocus:i,persistentFocus:c,lockFocusAcrossFrames:l}=e,u=p.useCallback(()=>{t!=null&&t.current?t.current.focus():n!=null&&n.current&&Qp(n.current).length===0&&requestAnimationFrame(()=>{var g;(g=n.current)==null||g.focus()})},[t,n]),d=p.useCallback(()=>{var h;(h=r==null?void 0:r.current)==null||h.focus()},[r]),f=o&&!r;return y.jsx(d2,{crossFrame:l,persistentFocus:c,autoFocus:i,disabled:a,onActivation:u,onDeactivation:d,returnFocus:f,children:s})};Qg.displayName="FocusLock";const[f2,p2]=ae({name:"FormErrorStylesContext",errorMessage:`useFormErrorStyles returned is 'undefined'. Seems you forgot to wrap the components in "<FormError />" `}),h2=O((e,t)=>{const r=Fe("FormError",e),n=ce(e),o=zr();return o!=null&&o.isInvalid?y.jsx(f2,{value:r,children:y.jsx(R.div,{...o==null?void 0:o.getErrorMessageProps(n,t),className:j("chakra-form__error-message",e.className),__css:{display:"flex",alignItems:"center",...r.text}})}):null});h2.displayName="FormErrorMessage";const m2=O((e,t)=>{const r=p2(),n=zr();if(!(n!=null&&n.isInvalid))return null;const o=j("chakra-form__error-icon",e.className);return y.jsx(At,{ref:t,"aria-hidden":!0,...e,__css:r.icon,className:o,children:y.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})});m2.displayName="FormErrorIcon";const g2=O(function(t,r){const n=st("FormLabel",t),o=ce(t),{className:s,children:a,requiredIndicator:i=y.jsx(eb,{}),optionalIndicator:c=null,...l}=o,u=zr(),d=(u==null?void 0:u.getLabelProps(l,r))??{ref:r,...l};return y.jsxs(R.label,{...d,className:j("chakra-form__label",o.className),__css:{display:"block",textAlign:"start",...n},children:[a,u!=null&&u.isRequired?i:c]})});g2.displayName="FormLabel";const eb=O(function(t,r){const n=zr(),o=bg();if(!(n!=null&&n.isRequired))return null;const s=j("chakra-form__required-indicator",t.className);return y.jsx(R.span,{...n==null?void 0:n.getRequiredIndicatorProps(t,r),__css:o.requiredIndicator,className:s})});eb.displayName="RequiredIndicator";const tb=O(function(t,r){const{templateAreas:n,gap:o,rowGap:s,columnGap:a,column:i,row:c,autoFlow:l,autoRows:u,templateRows:d,autoColumns:f,templateColumns:h,...g}=t,m={display:"grid",gridTemplateAreas:n,gridGap:o,gridRowGap:s,gridColumnGap:a,gridAutoColumns:f,gridColumn:i,gridRow:c,gridAutoFlow:l,gridAutoRows:u,gridTemplateRows:d,gridTemplateColumns:h};return y.jsx(R.div,{ref:r,__css:m,...g})});tb.displayName="Grid";function Qf(e){return ba(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}const b2=O(function(t,r){const{area:n,colSpan:o,colStart:s,colEnd:a,rowEnd:i,rowSpan:c,rowStart:l,...u}=t,d=On({gridArea:n,gridColumn:Qf(o),gridRow:Qf(c),gridColumnStart:s,gridColumnEnd:a,gridRowStart:l,gridRowEnd:i});return y.jsx(R.div,{ref:r,__css:d,...u})});b2.displayName="GridItem";const y2=O(function(t,r){const{columns:n,spacingX:o,spacingY:s,spacing:a,minChildWidth:i,...c}=t,l=rr(),u=i?x2(i,l):S2(n);return y.jsx(tb,{ref:r,gap:a,columnGap:o,rowGap:s,templateColumns:u,...c})});y2.displayName="SimpleGrid";function v2(e){return typeof e=="number"?`${e}px`:e}function x2(e,t){return ba(e,r=>{const n=Qm("sizes",r,v2(r))(t);return r===null?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}function S2(e){return ba(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}const jc=O(function(t,r){const{htmlWidth:n,htmlHeight:o,alt:s,...a}=t;return y.jsx("img",{width:n,height:o,ref:r,alt:s,...a})});jc.displayName="NativeImage";const w2=O(function(t,r){const{fallbackSrc:n,fallback:o,src:s,srcSet:a,align:i,fit:c,loading:l,ignoreFallback:u,crossOrigin:d,fallbackStrategy:f="beforeLoadOrError",referrerPolicy:h,...g}=t,m=n!==void 0||o!==void 0,b=l!=null||u||!m,S=fg({...t,crossOrigin:d,ignoreFallback:b}),v=K$(S,f),x={ref:r,objectFit:c,objectPosition:i,...b?g:Fn(g,["onError","onLoad"])};return v?o||y.jsx(R.img,{as:jc,className:"chakra-image__placeholder",src:n,...x}):y.jsx(R.img,{as:jc,src:s,srcSet:a,crossOrigin:d,loading:l,referrerPolicy:h,className:"chakra-image",...x})});w2.displayName="Image";const rb=O(function(t,r){const{htmlSize:n,...o}=t,s=Fe("Input",o),a=ce(o),i=Ql(a),c=j("chakra-input",t.className);return y.jsx(R.input,{size:n,...i,__css:s.field,ref:r,className:c})});rb.displayName="Input";rb.id="Input";const[k2,C2]=ae({name:"InputGroupStylesContext",errorMessage:`useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in "<InputGroup />" `}),_2=O(function(t,r){const n=Fe("Input",t),{children:o,className:s,...a}=ce(t),i=j("chakra-input__group",s),c={},l=Mn(o),u=n.field;l.forEach(f=>{n&&(u&&f.type.id==="InputLeftElement"&&(c.paddingStart=u.height??u.h),u&&f.type.id==="InputRightElement"&&(c.paddingEnd=u.height??u.h),f.type.id==="InputRightAddon"&&(c.borderEndRadius=0),f.type.id==="InputLeftAddon"&&(c.borderStartRadius=0))});const d=l.map(f=>{var g,m;const h=On({size:((g=f.props)==null?void 0:g.size)||t.size,variant:((m=f.props)==null?void 0:m.variant)||t.variant});return f.type.id!=="Input"?p.cloneElement(f,h):p.cloneElement(f,Object.assign(h,c,f.props))});return y.jsx(R.div,{className:i,ref:r,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...n.group},"data-group":!0,...a,children:y.jsx(k2,{value:n,children:d})})});_2.displayName="InputGroup";const P2=R("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),Oa=O(function(t,r){const{placement:n="left",...o}=t,s=C2(),a=s.field,c={[n==="left"?"insetStart":"insetEnd"]:"0",width:(a==null?void 0:a.height)??(a==null?void 0:a.h),height:(a==null?void 0:a.height)??(a==null?void 0:a.h),fontSize:a==null?void 0:a.fontSize,...s.element};return y.jsx(P2,{ref:r,__css:c,...o})});Oa.id="InputElement";Oa.displayName="InputElement";const nb=O(function(t,r){const{className:n,...o}=t,s=j("chakra-input__left-element",n);return y.jsx(Oa,{ref:r,placement:"left",className:s,...o})});nb.id="InputLeftElement";nb.displayName="InputLeftElement";const ob=O(function(t,r){const{className:n,...o}=t,s=j("chakra-input__right-element",n);return y.jsx(Oa,{ref:r,placement:"right",className:s,...o})});ob.id="InputRightElement";ob.displayName="InputRightElement";const T2=O(function(t,r){const n=st("Link",t),{className:o,isExternal:s,...a}=ce(t);return y.jsx(R.a,{target:s?"_blank":void 0,rel:s?"noopener":void 0,ref:r,className:j("chakra-link",o),...a,__css:n})});T2.displayName="Link";const[A2,sb]=ae({name:"ListStylesContext",errorMessage:`useListStyles returned is 'undefined'. Seems you forgot to wrap the components in "<List />" `}),pu=O(function(t,r){const n=Fe("List",t),{children:o,styleType:s="none",stylePosition:a,spacing:i,...c}=ce(t),l=Mn(o),d=i?{["& > *:not(style) ~ *:not(style)"]:{mt:i}}:{};return y.jsx(A2,{value:n,children:y.jsx(R.ul,{ref:r,listStyleType:s,listStylePosition:a,role:"list",__css:{...n.container,...d},...c,children:l})})});pu.displayName="List";const E2=O((e,t)=>{const{as:r,...n}=e;return y.jsx(pu,{ref:t,as:"ol",styleType:"decimal",marginStart:"1em",...n})});E2.displayName="OrderedList";const R2=O(function(t,r){const{as:n,...o}=t;return y.jsx(pu,{ref:r,as:"ul",styleType:"initial",marginStart:"1em",...o})});R2.displayName="UnorderedList";const $2=O(function(t,r){const n=sb();return y.jsx(R.li,{ref:r,...t,__css:n.item})});$2.displayName="ListItem";const I2=O(function(t,r){const n=sb();return y.jsx(At,{ref:r,role:"presentation",...t,__css:n.icon})});I2.displayName="ListIcon";function M2(e,t={}){const{ssr:r=!0,fallback:n}=t,{getWindow:o}=yP(),s=Array.isArray(e)?e:[e];let a=Array.isArray(n)?n:[n];a=a.filter(l=>l!=null);const[i,c]=p.useState(()=>s.map((l,u)=>({media:l,matches:r?!!a[u]:o().matchMedia(l).matches})));return p.useEffect(()=>{const l=o();c(s.map(f=>({media:f,matches:l.matchMedia(f).matches})));const u=s.map(f=>l.matchMedia(f)),d=f=>{c(h=>h.slice().map(g=>g.media===f.media?{...g,matches:f.matches}:g))};return u.forEach(f=>{typeof f.addListener=="function"?f.addListener(d):f.addEventListener("change",d)}),()=>{u.forEach(f=>{typeof f.removeListener=="function"?f.removeListener(d):f.removeEventListener("change",d)})}},[o]),i.map(l=>l.matches)}function O2(e){var i;const t=je(e)?e:{fallback:e??"base"},n=rr().__breakpoints.details.map(({minMaxQuery:c,breakpoint:l})=>({breakpoint:l,query:c.replace("@media screen and ","")})),o=n.map(c=>c.breakpoint===t.fallback),a=M2(n.map(c=>c.query),{fallback:o,ssr:t.ssr}).findIndex(c=>c==!0);return((i=n[a])==null?void 0:i.breakpoint)??t.fallback}function F2(e,t,r=rh){let n=Object.keys(e).indexOf(t);if(n!==-1)return e[t];let o=r.indexOf(t);for(;o>=0;){const s=r[o];if(e.hasOwnProperty(s)){n=o;break}o-=1}if(n!==-1){const s=r[n];return e[s]}}function Tj(e,t){var i;const r=je(t)?t:{fallback:t??"base"},n=O2(r),o=rr();if(!n)return;const s=Array.from(((i=o.__breakpoints)==null?void 0:i.keys)||[]),a=Array.isArray(e)?Object.fromEntries(Object.entries(d0(e,s)).map(([c,l])=>[c,l])):e;return F2(a,n,s)}function D2(e,t,r,n){if(t==null)return n;if(!n)return e.find(a=>r(a).toLowerCase().startsWith(t.toLowerCase()));const o=e.filter(s=>r(s).toLowerCase().startsWith(t.toLowerCase()));if(o.length>0){let s;return o.includes(n)?(s=o.indexOf(n)+1,s===o.length&&(s=0),o[s]):(s=e.indexOf(o[0]),e[s])}return n}function j2(e){const{key:t}=e;return t.length===1||t.length>1&&/[^a-zA-Z0-9]/.test(t)}function N2(e={}){const{timeout:t=300,preventDefault:r=()=>!0}=e,[n,o]=p.useState([]),s=p.useRef(),a=()=>{s.current&&(clearTimeout(s.current),s.current=null)},i=()=>{a(),s.current=setTimeout(()=>{o([]),s.current=null},t)};p.useEffect(()=>a,[]);function c(l){return u=>{if(u.key==="Backspace"){const d=[...n];d.pop(),o(d);return}if(j2(u)){const d=n.concat(u.key);r(u)&&(u.preventDefault(),u.stopPropagation()),o(d),l(d.join("")),i()}}}return c}var tt="top",yt="bottom",vt="right",rt="left",hu="auto",qo=[tt,yt,vt,rt],An="start",No="end",B2="clippingParents",ab="viewport",Jn="popper",z2="reference",ep=qo.reduce(function(e,t){return e.concat([t+"-"+An,t+"-"+No])},[]),ib=[].concat(qo,[hu]).reduce(function(e,t){return e.concat([t,t+"-"+An,t+"-"+No])},[]),L2="beforeRead",V2="read",W2="afterRead",H2="beforeMain",U2="main",G2="afterMain",q2="beforeWrite",K2="write",X2="afterWrite",Y2=[L2,V2,W2,H2,U2,G2,q2,K2,X2];function Lt(e){return e?(e.nodeName||"").toLowerCase():null}function dt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Nr(e){var t=dt(e).Element;return e instanceof t||e instanceof Element}function bt(e){var t=dt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function mu(e){if(typeof ShadowRoot>"u")return!1;var t=dt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Z2(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},s=t.elements[r];!bt(s)||!Lt(s)||(Object.assign(s.style,n),Object.keys(o).forEach(function(a){var i=o[a];i===!1?s.removeAttribute(a):s.setAttribute(a,i===!0?"":i)}))})}function J2(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],s=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),i=a.reduce(function(c,l){return c[l]="",c},{});!bt(o)||!Lt(o)||(Object.assign(o.style,i),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}const Q2={name:"applyStyles",enabled:!0,phase:"write",fn:Z2,effect:J2,requires:["computeStyles"]};function zt(e){return e.split("-")[0]}var Ir=Math.max,la=Math.min,En=Math.round;function Nc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function cb(){return!/^((?!chrome|android).)*safari/i.test(Nc())}function Rn(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,s=1;t&&bt(e)&&(o=e.offsetWidth>0&&En(n.width)/e.offsetWidth||1,s=e.offsetHeight>0&&En(n.height)/e.offsetHeight||1);var a=Nr(e)?dt(e):window,i=a.visualViewport,c=!cb()&&r,l=(n.left+(c&&i?i.offsetLeft:0))/o,u=(n.top+(c&&i?i.offsetTop:0))/s,d=n.width/o,f=n.height/s;return{width:d,height:f,top:u,right:l+d,bottom:u+f,left:l,x:l,y:u}}function gu(e){var t=Rn(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function lb(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&mu(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function tr(e){return dt(e).getComputedStyle(e)}function eO(e){return["table","td","th"].indexOf(Lt(e))>=0}function mr(e){return((Nr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fa(e){return Lt(e)==="html"?e:e.assignedSlot||e.parentNode||(mu(e)?e.host:null)||mr(e)}function tp(e){return!bt(e)||tr(e).position==="fixed"?null:e.offsetParent}function tO(e){var t=/firefox/i.test(Nc()),r=/Trident/i.test(Nc());if(r&&bt(e)){var n=tr(e);if(n.position==="fixed")return null}var o=Fa(e);for(mu(o)&&(o=o.host);bt(o)&&["html","body"].indexOf(Lt(o))<0;){var s=tr(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Ko(e){for(var t=dt(e),r=tp(e);r&&eO(r)&&tr(r).position==="static";)r=tp(r);return r&&(Lt(r)==="html"||Lt(r)==="body"&&tr(r).position==="static")?t:r||tO(e)||t}function bu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function wo(e,t,r){return Ir(e,la(t,r))}function rO(e,t,r){var n=wo(e,t,r);return n>r?r:n}function ub(){return{top:0,right:0,bottom:0,left:0}}function db(e){return Object.assign({},ub(),e)}function fb(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var nO=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,db(typeof t!="number"?t:fb(t,qo))};function oO(e){var t,r=e.state,n=e.name,o=e.options,s=r.elements.arrow,a=r.modifiersData.popperOffsets,i=zt(r.placement),c=bu(i),l=[rt,vt].indexOf(i)>=0,u=l?"height":"width";if(!(!s||!a)){var d=nO(o.padding,r),f=gu(s),h=c==="y"?tt:rt,g=c==="y"?yt:vt,m=r.rects.reference[u]+r.rects.reference[c]-a[c]-r.rects.popper[u],b=a[c]-r.rects.reference[c],S=Ko(s),v=S?c==="y"?S.clientHeight||0:S.clientWidth||0:0,x=m/2-b/2,C=d[h],k=v-f[u]-d[g],A=v/2-f[u]/2+x,T=wo(C,A,k),$=c;r.modifiersData[n]=(t={},t[$]=T,t.centerOffset=T-A,t)}}function sO(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||lb(t.elements.popper,o)&&(t.elements.arrow=o))}const aO={name:"arrow",enabled:!0,phase:"main",fn:oO,effect:sO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $n(e){return e.split("-")[1]}var iO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cO(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:En(r*o)/o||0,y:En(n*o)/o||0}}function rp(e){var t,r=e.popper,n=e.popperRect,o=e.placement,s=e.variation,a=e.offsets,i=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,h=f===void 0?0:f,g=a.y,m=g===void 0?0:g,b=typeof u=="function"?u({x:h,y:m}):{x:h,y:m};h=b.x,m=b.y;var S=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),x=rt,C=tt,k=window;if(l){var A=Ko(r),T="clientHeight",$="clientWidth";if(A===dt(r)&&(A=mr(r),tr(A).position!=="static"&&i==="absolute"&&(T="scrollHeight",$="scrollWidth")),A=A,o===tt||(o===rt||o===vt)&&s===No){C=yt;var M=d&&A===k&&k.visualViewport?k.visualViewport.height:A[T];m-=M-n.height,m*=c?1:-1}if(o===rt||(o===tt||o===yt)&&s===No){x=vt;var I=d&&A===k&&k.visualViewport?k.visualViewport.width:A[$];h-=I-n.width,h*=c?1:-1}}var D=Object.assign({position:i},l&&iO),X=u===!0?cO({x:h,y:m},dt(r)):{x:h,y:m};if(h=X.x,m=X.y,c){var L;return Object.assign({},D,(L={},L[C]=v?"0":"",L[x]=S?"0":"",L.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",L))}return Object.assign({},D,(t={},t[C]=v?m+"px":"",t[x]=S?h+"px":"",t.transform="",t))}function lO(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,s=r.adaptive,a=s===void 0?!0:s,i=r.roundOffsets,c=i===void 0?!0:i,l={placement:zt(t.placement),variation:$n(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,rp(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,rp(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const uO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:lO,data:{}};var Ss={passive:!0};function dO(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,s=o===void 0?!0:o,a=n.resize,i=a===void 0?!0:a,c=dt(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&l.forEach(function(u){u.addEventListener("scroll",r.update,Ss)}),i&&c.addEventListener("resize",r.update,Ss),function(){s&&l.forEach(function(u){u.removeEventListener("scroll",r.update,Ss)}),i&&c.removeEventListener("resize",r.update,Ss)}}const fO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:dO,data:{}};var pO={left:"right",right:"left",bottom:"top",top:"bottom"};function Ls(e){return e.replace(/left|right|bottom|top/g,function(t){return pO[t]})}var hO={start:"end",end:"start"};function np(e){return e.replace(/start|end/g,function(t){return hO[t]})}function yu(e){var t=dt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function vu(e){return Rn(mr(e)).left+yu(e).scrollLeft}function mO(e,t){var r=dt(e),n=mr(e),o=r.visualViewport,s=n.clientWidth,a=n.clientHeight,i=0,c=0;if(o){s=o.width,a=o.height;var l=cb();(l||!l&&t==="fixed")&&(i=o.offsetLeft,c=o.offsetTop)}return{width:s,height:a,x:i+vu(e),y:c}}function gO(e){var t,r=mr(e),n=yu(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=Ir(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Ir(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-n.scrollLeft+vu(e),c=-n.scrollTop;return tr(o||r).direction==="rtl"&&(i+=Ir(r.clientWidth,o?o.clientWidth:0)-s),{width:s,height:a,x:i,y:c}}function xu(e){var t=tr(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function pb(e){return["html","body","#document"].indexOf(Lt(e))>=0?e.ownerDocument.body:bt(e)&&xu(e)?e:pb(Fa(e))}function ko(e,t){var r;t===void 0&&(t=[]);var n=pb(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),s=dt(n),a=o?[s].concat(s.visualViewport||[],xu(n)?n:[]):n,i=t.concat(a);return o?i:i.concat(ko(Fa(a)))}function Bc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bO(e,t){var r=Rn(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function op(e,t,r){return t===ab?Bc(mO(e,r)):Nr(t)?bO(t,r):Bc(gO(mr(e)))}function yO(e){var t=ko(Fa(e)),r=["absolute","fixed"].indexOf(tr(e).position)>=0,n=r&&bt(e)?Ko(e):e;return Nr(n)?t.filter(function(o){return Nr(o)&&lb(o,n)&&Lt(o)!=="body"}):[]}function vO(e,t,r,n){var o=t==="clippingParents"?yO(e):[].concat(t),s=[].concat(o,[r]),a=s[0],i=s.reduce(function(c,l){var u=op(e,l,n);return c.top=Ir(u.top,c.top),c.right=la(u.right,c.right),c.bottom=la(u.bottom,c.bottom),c.left=Ir(u.left,c.left),c},op(e,a,n));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function hb(e){var t=e.reference,r=e.element,n=e.placement,o=n?zt(n):null,s=n?$n(n):null,a=t.x+t.width/2-r.width/2,i=t.y+t.height/2-r.height/2,c;switch(o){case tt:c={x:a,y:t.y-r.height};break;case yt:c={x:a,y:t.y+t.height};break;case vt:c={x:t.x+t.width,y:i};break;case rt:c={x:t.x-r.width,y:i};break;default:c={x:t.x,y:t.y}}var l=o?bu(o):null;if(l!=null){var u=l==="y"?"height":"width";switch(s){case An:c[l]=c[l]-(t[u]/2-r[u]/2);break;case No:c[l]=c[l]+(t[u]/2-r[u]/2);break}}return c}function Bo(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,s=r.strategy,a=s===void 0?e.strategy:s,i=r.boundary,c=i===void 0?B2:i,l=r.rootBoundary,u=l===void 0?ab:l,d=r.elementContext,f=d===void 0?Jn:d,h=r.altBoundary,g=h===void 0?!1:h,m=r.padding,b=m===void 0?0:m,S=db(typeof b!="number"?b:fb(b,qo)),v=f===Jn?z2:Jn,x=e.rects.popper,C=e.elements[g?v:f],k=vO(Nr(C)?C:C.contextElement||mr(e.elements.popper),c,u,a),A=Rn(e.elements.reference),T=hb({reference:A,element:x,placement:o}),$=Bc(Object.assign({},x,T)),M=f===Jn?$:A,I={top:k.top-M.top+S.top,bottom:M.bottom-k.bottom+S.bottom,left:k.left-M.left+S.left,right:M.right-k.right+S.right},D=e.modifiersData.offset;if(f===Jn&&D){var X=D[o];Object.keys(I).forEach(function(L){var q=[vt,yt].indexOf(L)>=0?1:-1,Z=[tt,yt].indexOf(L)>=0?"y":"x";I[L]+=X[Z]*q})}return I}function xO(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,s=r.rootBoundary,a=r.padding,i=r.flipVariations,c=r.allowedAutoPlacements,l=c===void 0?ib:c,u=$n(n),d=u?i?ep:ep.filter(function(g){return $n(g)===u}):qo,f=d.filter(function(g){return l.indexOf(g)>=0});f.length===0&&(f=d);var h=f.reduce(function(g,m){return g[m]=Bo(e,{placement:m,boundary:o,rootBoundary:s,padding:a})[zt(m)],g},{});return Object.keys(h).sort(function(g,m){return h[g]-h[m]})}function SO(e){if(zt(e)===hu)return[];var t=Ls(e);return[np(e),t,np(t)]}function wO(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,s=o===void 0?!0:o,a=r.altAxis,i=a===void 0?!0:a,c=r.fallbackPlacements,l=r.padding,u=r.boundary,d=r.rootBoundary,f=r.altBoundary,h=r.flipVariations,g=h===void 0?!0:h,m=r.allowedAutoPlacements,b=t.options.placement,S=zt(b),v=S===b,x=c||(v||!g?[Ls(b)]:SO(b)),C=[b].concat(x).reduce(function(K,ne){return K.concat(zt(ne)===hu?xO(t,{placement:ne,boundary:u,rootBoundary:d,padding:l,flipVariations:g,allowedAutoPlacements:m}):ne)},[]),k=t.rects.reference,A=t.rects.popper,T=new Map,$=!0,M=C[0],I=0;I<C.length;I++){var D=C[I],X=zt(D),L=$n(D)===An,q=[tt,yt].indexOf(X)>=0,Z=q?"width":"height",U=Bo(t,{placement:D,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),F=q?L?vt:rt:L?yt:tt;k[Z]>A[Z]&&(F=Ls(F));var ee=Ls(F),te=[];if(s&&te.push(U[X]<=0),i&&te.push(U[F]<=0,U[ee]<=0),te.every(function(K){return K})){M=D,$=!1;break}T.set(D,te)}if($)for(var le=g?3:1,ke=function(ne){var oe=C.find(function(Ce){var _e=T.get(Ce);if(_e)return _e.slice(0,ne).every(function(qe){return qe})});if(oe)return M=oe,"break"},xe=le;xe>0;xe--){var N=ke(xe);if(N==="break")break}t.placement!==M&&(t.modifiersData[n]._skip=!0,t.placement=M,t.reset=!0)}}const kO={name:"flip",enabled:!0,phase:"main",fn:wO,requiresIfExists:["offset"],data:{_skip:!1}};function sp(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ap(e){return[tt,vt,yt,rt].some(function(t){return e[t]>=0})}function CO(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,a=Bo(t,{elementContext:"reference"}),i=Bo(t,{altBoundary:!0}),c=sp(a,n),l=sp(i,o,s),u=ap(c),d=ap(l);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const _O={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:CO};function PO(e,t,r){var n=zt(e),o=[rt,tt].indexOf(n)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=s[0],i=s[1];return a=a||0,i=(i||0)*o,[rt,vt].indexOf(n)>=0?{x:i,y:a}:{x:a,y:i}}function TO(e){var t=e.state,r=e.options,n=e.name,o=r.offset,s=o===void 0?[0,0]:o,a=ib.reduce(function(u,d){return u[d]=PO(d,t.rects,s),u},{}),i=a[t.placement],c=i.x,l=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=a}const AO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:TO};function EO(e){var t=e.state,r=e.name;t.modifiersData[r]=hb({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const RO={name:"popperOffsets",enabled:!0,phase:"read",fn:EO,data:{}};function $O(e){return e==="x"?"y":"x"}function IO(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,s=o===void 0?!0:o,a=r.altAxis,i=a===void 0?!1:a,c=r.boundary,l=r.rootBoundary,u=r.altBoundary,d=r.padding,f=r.tether,h=f===void 0?!0:f,g=r.tetherOffset,m=g===void 0?0:g,b=Bo(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),S=zt(t.placement),v=$n(t.placement),x=!v,C=bu(S),k=$O(C),A=t.modifiersData.popperOffsets,T=t.rects.reference,$=t.rects.popper,M=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,I=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,X={x:0,y:0};if(A){if(s){var L,q=C==="y"?tt:rt,Z=C==="y"?yt:vt,U=C==="y"?"height":"width",F=A[C],ee=F+b[q],te=F-b[Z],le=h?-$[U]/2:0,ke=v===An?T[U]:$[U],xe=v===An?-$[U]:-T[U],N=t.elements.arrow,K=h&&N?gu(N):{width:0,height:0},ne=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ub(),oe=ne[q],Ce=ne[Z],_e=wo(0,T[U],K[U]),qe=x?T[U]/2-le-_e-oe-I.mainAxis:ke-_e-oe-I.mainAxis,Je=x?-T[U]/2+le+_e+Ce+I.mainAxis:xe+_e+Ce+I.mainAxis,J=t.elements.arrow&&Ko(t.elements.arrow),re=J?C==="y"?J.clientTop||0:J.clientLeft||0:0,$e=(L=D==null?void 0:D[C])!=null?L:0,xt=F+qe-$e-re,Q=F+Je-$e,ve=wo(h?la(ee,xt):ee,F,h?Ir(te,Q):te);A[C]=ve,X[C]=ve-F}if(i){var z,ue=C==="x"?tt:rt,de=C==="x"?yt:vt,Se=A[k],Ke=k==="y"?"height":"width",St=Se+b[ue],at=Se-b[de],nr=[tt,rt].indexOf(S)!==-1,Bn=(z=D==null?void 0:D[k])!=null?z:0,es=nr?St:Se-T[Ke]-$[Ke]-Bn+I.altAxis,ts=nr?Se+T[Ke]+$[Ke]-Bn-I.altAxis:at,gr=h&&nr?rO(es,Se,ts):wo(h?es:St,Se,h?ts:at);A[k]=gr,X[k]=gr-Se}t.modifiersData[n]=X}}const MO={name:"preventOverflow",enabled:!0,phase:"main",fn:IO,requiresIfExists:["offset"]};function OO(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function FO(e){return e===dt(e)||!bt(e)?yu(e):OO(e)}function DO(e){var t=e.getBoundingClientRect(),r=En(t.width)/e.offsetWidth||1,n=En(t.height)/e.offsetHeight||1;return r!==1||n!==1}function jO(e,t,r){r===void 0&&(r=!1);var n=bt(t),o=bt(t)&&DO(t),s=mr(t),a=Rn(e,o,r),i={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((Lt(t)!=="body"||xu(s))&&(i=FO(t)),bt(t)?(c=Rn(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=vu(s))),{x:a.left+i.scrollLeft-c.x,y:a.top+i.scrollTop-c.y,width:a.width,height:a.height}}function NO(e){var t=new Map,r=new Set,n=[];e.forEach(function(s){t.set(s.name,s)});function o(s){r.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(i){if(!r.has(i)){var c=t.get(i);c&&o(c)}}),n.push(s)}return e.forEach(function(s){r.has(s.name)||o(s)}),n}function BO(e){var t=NO(e);return Y2.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function zO(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function LO(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var ip={placement:"bottom",modifiers:[],strategy:"absolute"};function cp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function VO(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,s=o===void 0?ip:o;return function(i,c,l){l===void 0&&(l=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},ip,s),modifiersData:{},elements:{reference:i,popper:c},attributes:{},styles:{}},d=[],f=!1,h={state:u,setOptions:function(S){var v=typeof S=="function"?S(u.options):S;m(),u.options=Object.assign({},s,u.options,v),u.scrollParents={reference:Nr(i)?ko(i):i.contextElement?ko(i.contextElement):[],popper:ko(c)};var x=BO(LO([].concat(n,u.options.modifiers)));return u.orderedModifiers=x.filter(function(C){return C.enabled}),g(),h.update()},forceUpdate:function(){if(!f){var S=u.elements,v=S.reference,x=S.popper;if(cp(v,x)){u.rects={reference:jO(v,Ko(x),u.options.strategy==="fixed"),popper:gu(x)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(I){return u.modifiersData[I.name]=Object.assign({},I.data)});for(var C=0;C<u.orderedModifiers.length;C++){if(u.reset===!0){u.reset=!1,C=-1;continue}var k=u.orderedModifiers[C],A=k.fn,T=k.options,$=T===void 0?{}:T,M=k.name;typeof A=="function"&&(u=A({state:u,options:$,name:M,instance:h})||u)}}}},update:zO(function(){return new Promise(function(b){h.forceUpdate(),b(u)})}),destroy:function(){m(),f=!0}};if(!cp(i,c))return h;h.setOptions(l).then(function(b){!f&&l.onFirstUpdate&&l.onFirstUpdate(b)});function g(){u.orderedModifiers.forEach(function(b){var S=b.name,v=b.options,x=v===void 0?{}:v,C=b.effect;if(typeof C=="function"){var k=C({state:u,name:S,instance:h,options:x}),A=function(){};d.push(k||A)}})}function m(){d.forEach(function(b){return b()}),d=[]}return h}}var WO=[fO,RO,uO,Q2,AO,kO,MO,aO,_O],HO=VO({defaultModifiers:WO});const Gr=(e,t)=>({var:e,varRef:t?`var(${e}, ${t})`:`var(${e})`}),Be={arrowShadowColor:Gr("--popper-arrow-shadow-color"),arrowSize:Gr("--popper-arrow-size","8px"),arrowSizeHalf:Gr("--popper-arrow-size-half"),arrowBg:Gr("--popper-arrow-bg"),transformOrigin:Gr("--popper-transform-origin"),arrowOffset:Gr("--popper-arrow-offset")};function UO(e){if(e.includes("top"))return"1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("bottom"))return"-1px -1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("right"))return"-1px 1px 0px 0 var(--popper-arrow-shadow-color)";if(e.includes("left"))return"1px -1px 0px 0 var(--popper-arrow-shadow-color)"}const GO={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},qO=e=>GO[e],lp={scroll:!0,resize:!0};function KO(e){let t;return typeof e=="object"?t={enabled:!0,options:{...lp,...e}}:t={enabled:e,options:lp},t}const XO={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>()=>{const t=e.elements.reference;e.elements.popper.style.width=`${t.offsetWidth}px`}},YO={name:"transformOrigin",enabled:!0,phase:"write",fn:({state:e})=>{up(e)},effect:({state:e})=>()=>{up(e)}},up=e=>{e.elements.popper.style.setProperty(Be.transformOrigin.var,qO(e.placement))},ZO={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:({state:e})=>{JO(e)}},JO=e=>{var r;if(!e.placement)return;const t=QO(e.placement);if((r=e.elements)!=null&&r.arrow&&t){Object.assign(e.elements.arrow.style,{[t.property]:t.value,width:Be.arrowSize.varRef,height:Be.arrowSize.varRef,zIndex:-1});const n={[Be.arrowSizeHalf.var]:`calc(${Be.arrowSize.varRef} / 2 - 1px)`,[Be.arrowOffset.var]:`calc(${Be.arrowSizeHalf.varRef} * -1)`};for(const o in n)e.elements.arrow.style.setProperty(o,n[o])}},QO=e=>{if(e.startsWith("top"))return{property:"bottom",value:Be.arrowOffset.varRef};if(e.startsWith("bottom"))return{property:"top",value:Be.arrowOffset.varRef};if(e.startsWith("left"))return{property:"right",value:Be.arrowOffset.varRef};if(e.startsWith("right"))return{property:"left",value:Be.arrowOffset.varRef}},e5={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:({state:e})=>{dp(e)},effect:({state:e})=>()=>{dp(e)}},dp=e=>{if(!e.elements.arrow)return;const t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;const r=UO(e.placement);r&&t.style.setProperty("--popper-arrow-default-shadow",r),Object.assign(t.style,{transform:"rotate(45deg)",background:Be.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},t5={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},r5={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"};function n5(e,t="ltr"){var n;const r=((n=t5[e])==null?void 0:n[t])||e;return t==="ltr"?r:r5[e]??r}function Su(e={}){const{enabled:t=!0,modifiers:r,placement:n="bottom",strategy:o="absolute",arrowPadding:s=8,eventListeners:a=!0,offset:i,gutter:c=8,flip:l=!0,boundary:u="clippingParents",preventOverflow:d=!0,matchWidth:f,direction:h="ltr"}=e,g=p.useRef(null),m=p.useRef(null),b=p.useRef(null),S=n5(n,h),v=p.useRef(()=>{}),x=p.useCallback(()=>{var I;!t||!g.current||!m.current||((I=v.current)==null||I.call(v),b.current=HO(g.current,m.current,{placement:S,modifiers:[e5,ZO,YO,{...XO,enabled:!!f},{name:"eventListeners",...KO(a)},{name:"arrow",options:{padding:s}},{name:"offset",options:{offset:i??[0,c]}},{name:"flip",enabled:!!l,options:{padding:8}},{name:"preventOverflow",enabled:!!d,options:{boundary:u}},...r??[]],strategy:o}),b.current.forceUpdate(),v.current=b.current.destroy)},[S,t,r,f,a,s,i,c,l,d,u,o]);p.useEffect(()=>()=>{var I;!g.current&&!m.current&&((I=b.current)==null||I.destroy(),b.current=null)},[]);const C=p.useCallback(I=>{g.current=I,x()},[x]),k=p.useCallback((I={},D=null)=>({...I,ref:Ie(C,D)}),[C]),A=p.useCallback(I=>{m.current=I,x()},[x]),T=p.useCallback((I={},D=null)=>({...I,ref:Ie(A,D),style:{...I.style,position:o,minWidth:f?void 0:"max-content",inset:"0 auto auto 0"}}),[o,A,f]),$=p.useCallback((I={},D=null)=>{const{size:X,shadowColor:L,bg:q,style:Z,...U}=I;return{...U,ref:D,"data-popper-arrow":"",style:o5(I)}},[]),M=p.useCallback((I={},D=null)=>({...I,ref:D,"data-popper-arrow-inner":""}),[]);return{update(){var I;(I=b.current)==null||I.update()},forceUpdate(){var I;(I=b.current)==null||I.forceUpdate()},transformOrigin:Be.transformOrigin.varRef,referenceRef:C,popperRef:A,getPopperProps:T,getArrowProps:$,getArrowInnerProps:M,getReferenceProps:k}}function o5(e){const{size:t,shadowColor:r,bg:n,style:o}=e,s={...o,position:"absolute"};return t&&(s["--popper-arrow-size"]=t),r&&(s["--popper-arrow-shadow-color"]=r),n&&(s["--popper-arrow-bg"]=n),s}function s5(){const e=p.useRef(new Map),t=e.current,r=p.useCallback((o,s,a,i)=>{e.current.set(a,{type:s,el:o,options:i}),o.addEventListener(s,a,i)},[]),n=p.useCallback((o,s,a,i)=>{o.removeEventListener(s,a,i),e.current.delete(a)},[]);return p.useEffect(()=>()=>{t.forEach((o,s)=>{n(o.el,o.type,s,o.options)})},[n,t]),{add:r,remove:n}}function Vi(e){var o,s;const t=((s=(o=e.composedPath)==null?void 0:o.call(e))==null?void 0:s[0])??e.target,{tagName:r,isContentEditable:n}=t;return r!=="INPUT"&&r!=="TEXTAREA"&&n!==!0}function mb(e={}){const{ref:t,isDisabled:r,isFocusable:n,clickOnEnter:o=!0,clickOnSpace:s=!0,onMouseDown:a,onMouseUp:i,onClick:c,onKeyDown:l,onKeyUp:u,tabIndex:d,onMouseOver:f,onMouseLeave:h,...g}=e,[m,b]=p.useState(!0),[S,v]=p.useState(!1),x=s5(),C=F=>{F&&F.tagName!=="BUTTON"&&b(!1)},k=m?d:d||0,A=r&&!n,T=p.useCallback(F=>{if(r){F.stopPropagation(),F.preventDefault();return}F.currentTarget.focus(),c==null||c(F)},[r,c]),$=p.useCallback(F=>{S&&Vi(F)&&(F.preventDefault(),F.stopPropagation(),v(!1),x.remove(document,"keyup",$,!1))},[S,x]),M=p.useCallback(F=>{if(l==null||l(F),r||F.defaultPrevented||F.metaKey||!Vi(F.nativeEvent)||m)return;const ee=o&&F.key==="Enter";s&&F.key===" "&&(F.preventDefault(),v(!0)),ee&&(F.preventDefault(),F.currentTarget.click()),x.add(document,"keyup",$,!1)},[r,m,l,o,s,x,$]),I=p.useCallback(F=>{if(u==null||u(F),r||F.defaultPrevented||F.metaKey||!Vi(F.nativeEvent)||m)return;s&&F.key===" "&&(F.preventDefault(),v(!1),F.currentTarget.click())},[s,m,r,u]),D=p.useCallback(F=>{F.button===0&&(v(!1),x.remove(document,"mouseup",D,!1))},[x]),X=p.useCallback(F=>{if(F.button!==0)return;if(r){F.stopPropagation(),F.preventDefault();return}m||v(!0),F.currentTarget.focus({preventScroll:!0}),x.add(document,"mouseup",D,!1),a==null||a(F)},[r,m,a,x,D]),L=p.useCallback(F=>{F.button===0&&(m||v(!1),i==null||i(F))},[i,m]),q=p.useCallback(F=>{if(r){F.preventDefault();return}f==null||f(F)},[r,f]),Z=p.useCallback(F=>{S&&(F.preventDefault(),v(!1)),h==null||h(F)},[S,h]),U=Ie(t,C);return m?{...g,ref:U,type:"button","aria-disabled":A?void 0:r,disabled:A,onClick:T,onMouseDown:a,onMouseUp:i,onKeyUp:u,onKeyDown:l,onMouseOver:f,onMouseLeave:h}:{...g,ref:U,role:"button","data-active":V(S),"aria-disabled":r?"true":void 0,tabIndex:A?void 0:k,onClick:T,onMouseDown:X,onMouseUp:L,onKeyUp:I,onKeyDown:M,onMouseOver:q,onMouseLeave:Z}}const[a5,i5,c5,l5]=ql(),[u5,Xo]=ae({strict:!1,name:"MenuContext"});function gb(e){return(e==null?void 0:e.ownerDocument)??document}function d5(e){return gb(e).activeElement===e}function f5(e={}){const{id:t,closeOnSelect:r=!0,closeOnBlur:n=!0,initialFocusRef:o,autoSelect:s=!0,isLazy:a,isOpen:i,defaultIsOpen:c,onClose:l,onOpen:u,placement:d="bottom-start",lazyBehavior:f="unmount",direction:h,computePositionOnMount:g=!1,...m}=e,b=p.useRef(null),S=p.useRef(null),v=p.useRef(!0),x=c5(),C=p.useCallback(()=>{requestAnimationFrame(()=>{var N;(N=b.current)==null||N.focus({preventScroll:!1})})},[]),k=p.useCallback(()=>{const N=setTimeout(()=>{var K,ne;if(o)(K=o.current)==null||K.focus();else if(!x.count())(ne=b.current)==null||ne.focus({preventScroll:!1});else{const oe=x.firstEnabled();oe&&q(oe.index)}});te.current.add(N)},[x,o]),A=p.useCallback(()=>{const N=setTimeout(()=>{var K;if(!x.count())(K=b.current)==null||K.focus({preventScroll:!1});else{const ne=x.lastEnabled();ne&&q(ne.index)}});te.current.add(N)},[x]),T=p.useCallback(()=>{u==null||u(),s?k():C()},[s,k,C,u]),{isOpen:$,onOpen:M,onClose:I,onToggle:D}=nl({isOpen:i,defaultIsOpen:c,onClose:l,onOpen:T});ch({enabled:$&&n,ref:b,handler:N=>{var ne,oe,Ce;const K=((oe=(ne=N.composedPath)==null?void 0:ne.call(N))==null?void 0:oe[0])??N.target;(Ce=S.current)!=null&&Ce.contains(K)||I()}});const X=Su({...m,enabled:$||g,placement:d,direction:h}),[L,q]=p.useState(-1);ah(b,{focusRef:S,visible:$,shouldFocus:!0});const Z=sh({isOpen:$,ref:b}),[U,F]=R0(t,"menu-button","menu-list"),ee=p.useCallback(()=>{M(),C()},[M,C]),te=p.useRef(new Set([]));p.useEffect(()=>{const N=te.current;return()=>{N.forEach(K=>clearTimeout(K)),N.clear()}},[]),Or(()=>{var N;$||(q(-1),(N=b.current)==null||N.scrollTo(0,0))},[$]),Or(()=>{$&&L===-1&&C()},[L,$]),p.useEffect(()=>{var K;if(!$)return;const N=x.item(L);(K=N==null?void 0:N.node)==null||K.focus({preventScroll:!v.current})},[x,L,$]);const le=p.useCallback(()=>{M(),k()},[k,M]),ke=p.useCallback(()=>{v.current=!0,M(),A()},[M,A]),xe=p.useCallback(()=>{var Ce,_e;const N=gb(b.current),K=(Ce=b.current)==null?void 0:Ce.contains(N.activeElement);if(!($&&!K))return;const oe=(_e=x.item(L))==null?void 0:_e.node;oe==null||oe.focus({preventScroll:!v.current})},[$,L,x]);return{openAndFocusMenu:ee,openAndFocusFirstItem:le,openAndFocusLastItem:ke,onTransitionEnd:xe,unstable__animationState:Z,descendants:x,popper:X,buttonId:U,menuId:F,forceUpdate:X.forceUpdate,orientation:"vertical",isOpen:$,onToggle:D,onOpen:M,onClose:I,menuRef:b,buttonRef:S,focusedIndex:L,closeOnSelect:r,closeOnBlur:n,autoSelect:s,setFocusedIndex:q,isLazy:a,lazyBehavior:f,initialFocusRef:o,scrollIntoViewRef:v}}function p5(e={},t=null){const r=Xo(),{onToggle:n,popper:o,openAndFocusFirstItem:s,openAndFocusLastItem:a,scrollIntoViewRef:i}=r,c=p.useCallback(l=>{const u=l.key,f={Enter:s,ArrowDown:s,ArrowUp:a}[u];f&&(i.current=!0,l.preventDefault(),l.stopPropagation(),f(l))},[s,a,i]);return{...e,ref:Ie(r.buttonRef,t,o.referenceRef),id:r.buttonId,"data-active":V(r.isOpen),"aria-expanded":r.isOpen,"aria-haspopup":"menu","aria-controls":r.menuId,onClick:H(e.onClick,n),onKeyDown:H(e.onKeyDown,c)}}function zc(e){var t;return b5(e)&&!!((t=e==null?void 0:e.getAttribute("role"))!=null&&t.startsWith("menuitem"))}function h5(e={},t=null){const r=Xo();if(!r)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");const{focusedIndex:n,setFocusedIndex:o,menuRef:s,isOpen:a,onClose:i,menuId:c,isLazy:l,lazyBehavior:u,scrollIntoViewRef:d,unstable__animationState:f}=r,h=i5(),g=N2({preventDefault:v=>v.key!==" "&&zc(v.target)}),m=p.useCallback(v=>{if(!v.currentTarget.contains(v.target))return;const x=v.key,k={Tab:T=>T.preventDefault(),Escape:T=>{T.stopPropagation(),i()},ArrowDown:()=>{d.current=!0;const T=h.nextEnabled(n)??h.firstEnabled();T&&o(T.index)},ArrowUp:()=>{d.current=!0;const T=h.prevEnabled(n)??h.firstEnabled();T&&o(T.index)}}[x];if(k){v.preventDefault(),k(v);return}const A=g(T=>{const $=D2(h.values(),T,M=>{var I;return((I=M==null?void 0:M.node)==null?void 0:I.textContent)??""},h.item(n));if($){const M=h.indexOf($.node);o(M)}});zc(v.target)&&A(v)},[h,n,g,i,o,d]),b=p.useRef(!1);a&&(b.current=!0);const S=tl({wasSelected:b.current,enabled:l,mode:u,isSelected:f.present});return{...e,ref:Ie(s,t),children:S?e.children:null,tabIndex:-1,role:"menu",id:c,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:H(e.onKeyDown,m)}}function m5(e={}){const{popper:t,isOpen:r}=Xo();return t.getPopperProps({...e,style:{visibility:r?"visible":"hidden",...e.style}})}function g5(e={},t=null){const{onMouseEnter:r,onMouseMove:n,onMouseLeave:o,onClick:s,onFocus:a,isDisabled:i,isFocusable:c,closeOnSelect:l,type:u,...d}=e,f=Xo(),{setFocusedIndex:h,focusedIndex:g,closeOnSelect:m,onClose:b,menuId:S,scrollIntoViewRef:v}=f,x=p.useRef(null),C=`${S}-menuitem-${p.useId()}`,{index:k,register:A}=l5({disabled:i&&!c}),T=p.useCallback(q=>{r==null||r(q),!i&&(v.current=!1,h(k))},[h,k,i,r,v]),$=p.useCallback(q=>{n==null||n(q),x.current&&!d5(x.current)&&T(q)},[T,n]),M=p.useCallback(q=>{o==null||o(q),!i&&h(-1)},[h,i,o]),I=p.useCallback(q=>{s==null||s(q),zc(q.currentTarget)&&(l??m)&&b()},[b,s,m,l]),D=p.useCallback(q=>{a==null||a(q),h(k)},[h,a,k]),X=k===g,L=mb({onClick:I,onFocus:D,onMouseEnter:T,onMouseMove:$,onMouseLeave:M,ref:Ie(A,x,t),isDisabled:i,isFocusable:c});return{...d,...L,type:u??L.type,id:C,role:"menuitem",tabIndex:X?0:-1}}function b5(e){if(!y5(e))return!1;const t=e.ownerDocument.defaultView??window;return e instanceof t.HTMLElement}function y5(e){return e!=null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}const[v5,Yo]=ae({name:"MenuStylesContext",errorMessage:`useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Menu />" `}),x5=e=>{const{children:t}=e,r=Fe("Menu",e),n=ce(e),{direction:o}=rr(),{descendants:s,...a}=f5({...n,direction:o}),i=p.useMemo(()=>a,[a]),{isOpen:c,onClose:l,forceUpdate:u}=i;return y.jsx(a5,{value:s,children:y.jsx(u5,{value:i,children:y.jsx(v5,{value:r,children:He(t,{isOpen:c,onClose:l,forceUpdate:u})})})})};x5.displayName="Menu";const S5=O((e,t)=>{const r=Yo();return y.jsx(R.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...r.button}})}),w5=O((e,t)=>{const{children:r,as:n,...o}=e,s=p5(o,t),a=n||S5;return y.jsx(a,{...s,className:j("chakra-menu__menu-button",e.className),children:y.jsx(R.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});w5.displayName="MenuButton";const bb=O((e,t)=>{const r=Yo();return y.jsx(R.span,{ref:t,...e,__css:r.command,className:"chakra-menu__command"})});bb.displayName="MenuCommand";const yb=e=>{const{className:t,children:r,...n}=e,o=Yo(),s=p.Children.only(r),a=p.isValidElement(s)?p.cloneElement(s,{focusable:"false","aria-hidden":!0,className:j("chakra-menu__icon",s.props.className)}):null,i=j("chakra-menu__icon-wrapper",t);return y.jsx(R.span,{className:i,...n,__css:o.icon,children:a})};yb.displayName="MenuIcon";const k5=O((e,t)=>{const{type:r,...n}=e,o=Yo(),s=n.as||r?r??void 0:"button",a=p.useMemo(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...o.item}),[o.item]);return y.jsx(R.button,{ref:t,type:s,...n,__css:a})}),C5=O((e,t)=>{const{icon:r,iconSpacing:n="0.75rem",command:o,commandSpacing:s="0.75rem",children:a,...i}=e,c=g5(i,t),u=r||o?y.jsx("span",{style:{pointerEvents:"none",flex:1},children:a}):a;return y.jsxs(k5,{...c,className:j("chakra-menu__menuitem",c.className),children:[r&&y.jsx(yb,{fontSize:"0.8em",marginEnd:n,children:r}),u,o&&y.jsx(bb,{marginStart:s,children:o})]})});C5.displayName="MenuItem";const _5={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},P5=R(Tt.div),T5=O(function(t,r){var f;const{rootProps:n,motionProps:o,...s}=t,{isOpen:a,onTransitionEnd:i,unstable__animationState:c}=Xo(),l=h5(s,r),u=m5(n),d=Yo();return y.jsx(R.div,{...u,__css:{zIndex:t.zIndex??((f=d.list)==null?void 0:f.zIndex)},children:y.jsx(P5,{variants:_5,initial:!1,animate:a?"enter":"exit",__css:{outline:0,...d.list},...o,...l,className:j("chakra-menu__menu-list",l.className),onUpdate:i,onAnimationComplete:ga(c.onComplete,l.onAnimationComplete)})})});T5.displayName="MenuList";var A5=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},qr=new WeakMap,ws=new WeakMap,ks={},Wi=0,vb=function(e){return e&&(e.host||vb(e.parentNode))},E5=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=vb(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},R5=function(e,t,r,n){var o=E5(t,Array.isArray(e)?e:[e]);ks[r]||(ks[r]=new WeakMap);var s=ks[r],a=[],i=new Set,c=new Set(o),l=function(d){!d||i.has(d)||(i.add(d),l(d.parentNode))};o.forEach(l);var u=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(f){if(i.has(f))u(f);else try{var h=f.getAttribute(n),g=h!==null&&h!=="false",m=(qr.get(f)||0)+1,b=(s.get(f)||0)+1;qr.set(f,m),s.set(f,b),a.push(f),m===1&&g&&ws.set(f,!0),b===1&&f.setAttribute(r,"true"),g||f.setAttribute(n,"true")}catch(S){console.error("aria-hidden: cannot operate on ",f,S)}})};return u(t),i.clear(),Wi++,function(){a.forEach(function(d){var f=qr.get(d)-1,h=s.get(d)-1;qr.set(d,f),s.set(d,h),f||(ws.has(d)||d.removeAttribute(n),ws.delete(d)),h||d.removeAttribute(r)}),Wi--,Wi||(qr=new WeakMap,qr=new WeakMap,ws=new WeakMap,ks={})}},$5=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=A5(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),R5(n,o,r,"aria-hidden")):function(){return null}},I5=Object.defineProperty,M5=(e,t,r)=>t in e?I5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,O5=(e,t,r)=>(M5(e,t+"",r),r);class F5{constructor(){O5(this,"modals"),this.modals=new Set}add(t){return this.modals.add(t),this.modals.size}remove(t){this.modals.delete(t)}isTopModal(t){if(!t)return!1;const r=Array.from(this.modals)[this.modals.size-1];return t===r}}const Lc=new F5;function xb(e,t){const[r,n]=p.useState(0);return p.useEffect(()=>{const o=e.current;if(o){if(t){const s=Lc.add(o);n(s)}return()=>{Lc.remove(o),n(0)}}},[t,e]),r}function D5(e){const{isOpen:t,onClose:r,id:n,closeOnOverlayClick:o=!0,closeOnEsc:s=!0,useInert:a=!0,onOverlayClick:i,onEsc:c}=e,l=p.useRef(null),u=p.useRef(null),[d,f,h]=N5(n,"chakra-modal","chakra-modal--header","chakra-modal--body");j5(l,t&&a);const g=xb(l,t),m=p.useRef(null),b=p.useCallback(M=>{m.current=M.target},[]),S=p.useCallback(M=>{M.key==="Escape"&&(M.stopPropagation(),s&&(r==null||r()),c==null||c())},[s,r,c]),[v,x]=p.useState(!1),[C,k]=p.useState(!1),A=p.useCallback((M={},I=null)=>({role:"dialog",...M,ref:Ie(I,l),id:d,tabIndex:-1,"aria-modal":!0,"aria-labelledby":v?f:void 0,"aria-describedby":C?h:void 0,onClick:H(M.onClick,D=>D.stopPropagation())}),[h,C,d,f,v]),T=p.useCallback(M=>{M.stopPropagation(),m.current===M.target&&Lc.isTopModal(l.current)&&(o&&(r==null||r()),i==null||i())},[r,o,i]),$=p.useCallback((M={},I=null)=>({...M,ref:Ie(I,u),onClick:H(M.onClick,T),onKeyDown:H(M.onKeyDown,S),onMouseDown:H(M.onMouseDown,b)}),[S,b,T]);return{isOpen:t,onClose:r,headerId:f,bodyId:h,setBodyMounted:k,setHeaderMounted:x,dialogRef:l,overlayRef:u,getDialogProps:A,getDialogContainerProps:$,index:g}}function j5(e,t){const r=e.current;p.useEffect(()=>{if(!(!e.current||!t))return $5(e.current)},[t,e,r])}function N5(e,...t){const r=p.useId(),n=e||r;return p.useMemo(()=>t.map(o=>`${o}-${n}`),[n,t])}const[B5,Lr]=ae({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Modal />" `}),[z5,pr]=ae({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Sb=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,preserveScrollBarGap:!0,motionPreset:"scale",...e,lockFocusAcrossFrames:e.lockFocusAcrossFrames||!0},{portalProps:r,children:n,autoFocus:o,trapFocus:s,initialFocusRef:a,finalFocusRef:i,returnFocusOnClose:c,blockScrollOnMount:l,allowPinchZoom:u,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:h,animatePresenceProps:g,onCloseComplete:m}=t,b=Fe("Modal",t),v={...D5(t),autoFocus:o,trapFocus:s,initialFocusRef:a,finalFocusRef:i,returnFocusOnClose:c,blockScrollOnMount:l,allowPinchZoom:u,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:h};return y.jsx(z5,{value:v,children:y.jsx(B5,{value:b,children:y.jsx(hr,{...g,onExitComplete:m,children:v.isOpen&&y.jsx(Nn,{...r,children:n})})})})};Sb.displayName="Modal";var Vs="right-scroll-bar-position",Ws="width-before-scroll-bar",L5="with-scroll-bars-hidden",V5="--removed-body-scroll-bar-size",wb=Pg(),Hi=function(){},Da=p.forwardRef(function(e,t){var r=p.useRef(null),n=p.useState({onScrollCapture:Hi,onWheelCapture:Hi,onTouchMoveCapture:Hi}),o=n[0],s=n[1],a=e.forwardProps,i=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,h=e.noIsolation,g=e.inert,m=e.allowPinchZoom,b=e.as,S=b===void 0?"div":b,v=e.gapMode,x=Xm(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=f,k=kg([r,t]),A=Ft(Ft({},x),o);return p.createElement(p.Fragment,null,u&&p.createElement(C,{sideCar:wb,removeScrollBar:l,shards:d,noIsolation:h,inert:g,setCallbacks:s,allowPinchZoom:!!m,lockRef:r,gapMode:v}),a?p.cloneElement(p.Children.only(i),Ft(Ft({},A),{ref:k})):p.createElement(S,Ft({},A,{className:c,ref:k}),i))});Da.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Da.classNames={fullWidth:Ws,zeroRight:Vs};var W5=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function H5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=W5();return t&&e.setAttribute("nonce",t),e}function U5(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function G5(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var q5=function(){var e=0,t=null;return{add:function(r){e==0&&(t=H5())&&(U5(t,r),G5(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},K5=function(){var e=q5();return function(t,r){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},kb=function(){var e=K5(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},X5={left:0,top:0,right:0,gap:0},Ui=function(e){return parseInt(e||"",10)||0},Y5=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ui(r),Ui(n),Ui(o)]},Z5=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return X5;var t=Y5(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},J5=kb(),xn="data-scroll-locked",Q5=function(e,t,r,n){var o=e.left,s=e.top,a=e.right,i=e.gap;return r===void 0&&(r="margin"),`
  .`.concat(L5,` {
   overflow: hidden `).concat(n,`;
   padding-right: `).concat(i,"px ").concat(n,`;
  }
  body[`).concat(xn,`] {
    overflow: hidden `).concat(n,`;
    overscroll-behavior: contain;
    `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
    padding-left: `.concat(o,`px;
    padding-top: `).concat(s,`px;
    padding-right: `).concat(a,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(i,"px ").concat(n,`;
    `),r==="padding"&&"padding-right: ".concat(i,"px ").concat(n,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(Vs,` {
    right: `).concat(i,"px ").concat(n,`;
  }
  
  .`).concat(Ws,` {
    margin-right: `).concat(i,"px ").concat(n,`;
  }
  
  .`).concat(Vs," .").concat(Vs,` {
    right: 0 `).concat(n,`;
  }
  
  .`).concat(Ws," .").concat(Ws,` {
    margin-right: 0 `).concat(n,`;
  }
  
  body[`).concat(xn,`] {
    `).concat(V5,": ").concat(i,`px;
  }
`)},fp=function(){var e=parseInt(document.body.getAttribute(xn)||"0",10);return isFinite(e)?e:0},eF=function(){p.useEffect(function(){return document.body.setAttribute(xn,(fp()+1).toString()),function(){var e=fp()-1;e<=0?document.body.removeAttribute(xn):document.body.setAttribute(xn,e.toString())}},[])},tF=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;eF();var s=p.useMemo(function(){return Z5(o)},[o]);return p.createElement(J5,{styles:Q5(s,!t,o,r?"":"!important")})},Vc=!1;if(typeof window<"u")try{var Cs=Object.defineProperty({},"passive",{get:function(){return Vc=!0,!0}});window.addEventListener("test",Cs,Cs),window.removeEventListener("test",Cs,Cs)}catch{Vc=!1}var Kr=Vc?{passive:!1}:!1,rF=function(e){return e.tagName==="TEXTAREA"},Cb=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!rF(e)&&r[t]==="visible")},nF=function(e){return Cb(e,"overflowY")},oF=function(e){return Cb(e,"overflowX")},pp=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=_b(e,n);if(o){var s=Pb(e,n),a=s[1],i=s[2];if(a>i)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},sF=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},aF=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},_b=function(e,t){return e==="v"?nF(t):oF(t)},Pb=function(e,t){return e==="v"?sF(t):aF(t)},iF=function(e,t){return e==="h"&&t==="rtl"?-1:1},cF=function(e,t,r,n,o){var s=iF(e,window.getComputedStyle(t).direction),a=s*n,i=r.target,c=t.contains(i),l=!1,u=a>0,d=0,f=0;do{var h=Pb(e,i),g=h[0],m=h[1],b=h[2],S=m-b-s*g;(g||S)&&_b(e,i)&&(d+=S,f+=g),i instanceof ShadowRoot?i=i.host:i=i.parentNode}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(l=!0),l},_s=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},hp=function(e){return[e.deltaX,e.deltaY]},mp=function(e){return e&&"current"in e?e.current:e},lF=function(e,t){return e[0]===t[0]&&e[1]===t[1]},uF=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},dF=0,Xr=[];function fF(e){var t=p.useRef([]),r=p.useRef([0,0]),n=p.useRef(),o=p.useState(dF++)[0],s=p.useState(kb)[0],a=p.useRef(e);p.useEffect(function(){a.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=IR([e.lockRef.current],(e.shards||[]).map(mp),!0).filter(Boolean);return m.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var i=p.useCallback(function(m,b){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var S=_s(m),v=r.current,x="deltaX"in m?m.deltaX:v[0]-S[0],C="deltaY"in m?m.deltaY:v[1]-S[1],k,A=m.target,T=Math.abs(x)>Math.abs(C)?"h":"v";if("touches"in m&&T==="h"&&A.type==="range")return!1;var $=pp(T,A);if(!$)return!0;if($?k=T:(k=T==="v"?"h":"v",$=pp(T,A)),!$)return!1;if(!n.current&&"changedTouches"in m&&(x||C)&&(n.current=k),!k)return!0;var M=n.current||k;return cF(M,b,m,M==="h"?x:C)},[]),c=p.useCallback(function(m){var b=m;if(!(!Xr.length||Xr[Xr.length-1]!==s)){var S="deltaY"in b?hp(b):_s(b),v=t.current.filter(function(k){return k.name===b.type&&(k.target===b.target||b.target===k.shadowParent)&&lF(k.delta,S)})[0];if(v&&v.should){b.cancelable&&b.preventDefault();return}if(!v){var x=(a.current.shards||[]).map(mp).filter(Boolean).filter(function(k){return k.contains(b.target)}),C=x.length>0?i(b,x[0]):!a.current.noIsolation;C&&b.cancelable&&b.preventDefault()}}},[]),l=p.useCallback(function(m,b,S,v){var x={name:m,delta:b,target:S,should:v,shadowParent:pF(S)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(C){return C!==x})},1)},[]),u=p.useCallback(function(m){r.current=_s(m),n.current=void 0},[]),d=p.useCallback(function(m){l(m.type,hp(m),m.target,i(m,e.lockRef.current))},[]),f=p.useCallback(function(m){l(m.type,_s(m),m.target,i(m,e.lockRef.current))},[]);p.useEffect(function(){return Xr.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,Kr),document.addEventListener("touchmove",c,Kr),document.addEventListener("touchstart",u,Kr),function(){Xr=Xr.filter(function(m){return m!==s}),document.removeEventListener("wheel",c,Kr),document.removeEventListener("touchmove",c,Kr),document.removeEventListener("touchstart",u,Kr)}},[]);var h=e.removeScrollBar,g=e.inert;return p.createElement(p.Fragment,null,g?p.createElement(s,{styles:uF(o)}):null,h?p.createElement(tF,{gapMode:e.gapMode}):null)}function pF(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const hF=rM(wb,fF);var Tb=p.forwardRef(function(e,t){return p.createElement(Da,Ft({},e,{ref:t,sideCar:hF}))});Tb.classNames=Da.classNames;function Ab(e){const{autoFocus:t,trapFocus:r,dialogRef:n,initialFocusRef:o,blockScrollOnMount:s,allowPinchZoom:a,finalFocusRef:i,returnFocusOnClose:c,preserveScrollBarGap:l,lockFocusAcrossFrames:u,isOpen:d}=pr(),[f,h]=_l();p.useEffect(()=>{!f&&h&&setTimeout(h)},[f,h]);const g=xb(n,d);return y.jsx(Qg,{autoFocus:t,isDisabled:!r,initialFocusRef:o,finalFocusRef:i,restoreFocus:c,contentRef:n,lockFocusAcrossFrames:u,children:y.jsx(Tb,{removeScrollBar:!l,allowPinchZoom:a,enabled:g===1&&s,forwardProps:!0,children:e.children})})}const mF={initial:({offsetX:e,offsetY:t,transition:r,transitionEnd:n,delay:o})=>({opacity:0,x:e,y:t,transition:(r==null?void 0:r.exit)??Pt.exit(Rr.exit,o),transitionEnd:n==null?void 0:n.exit}),enter:({transition:e,transitionEnd:t,delay:r})=>({opacity:1,x:0,y:0,transition:(e==null?void 0:e.enter)??Pt.enter(Rr.enter,r),transitionEnd:t==null?void 0:t.enter}),exit:({offsetY:e,offsetX:t,transition:r,transitionEnd:n,reverse:o,delay:s})=>{const a={x:t,y:e};return{opacity:0,transition:(r==null?void 0:r.exit)??Pt.exit(Rr.exit,s),...o?{...a,transitionEnd:n==null?void 0:n.exit}:{transitionEnd:{...a,...n==null?void 0:n.exit}}}}},co={initial:"initial",animate:"enter",exit:"exit",variants:mF},gF=p.forwardRef(function(t,r){const{unmountOnExit:n,in:o,reverse:s=!0,className:a,offsetX:i=0,offsetY:c=8,transition:l,transitionEnd:u,delay:d,animatePresenceProps:f,...h}=t,g=n?o&&n:!0,m=o||n?"enter":"exit",b={offsetX:i,offsetY:c,reverse:s,transition:l,transitionEnd:u,delay:d};return y.jsx(hr,{...f,custom:b,children:g&&y.jsx(Tt.div,{ref:r,className:j("chakra-offset-slide",a),custom:b,...co,animate:m,...h})})});gF.displayName="SlideFade";const bF={exit:({reverse:e,initialScale:t,transition:r,transitionEnd:n,delay:o})=>({opacity:0,...e?{scale:t,transitionEnd:n==null?void 0:n.exit}:{transitionEnd:{scale:t,...n==null?void 0:n.exit}},transition:(r==null?void 0:r.exit)??Pt.exit(Rr.exit,o)}),enter:({transitionEnd:e,transition:t,delay:r})=>({opacity:1,scale:1,transition:(t==null?void 0:t.enter)??Pt.enter(Rr.enter,r),transitionEnd:e==null?void 0:e.enter})},Eb={initial:"exit",animate:"enter",exit:"exit",variants:bF},yF=p.forwardRef(function(t,r){const{unmountOnExit:n,in:o,reverse:s=!0,initialScale:a=.95,className:i,transition:c,transitionEnd:l,delay:u,animatePresenceProps:d,...f}=t,h=n?o&&n:!0,g=o||n?"enter":"exit",m={initialScale:a,reverse:s,transition:c,transitionEnd:l,delay:u};return y.jsx(hr,{...d,custom:m,children:h&&y.jsx(Tt.div,{ref:r,className:j("chakra-offset-slide",i),...Eb,animate:g,custom:m,...f})})});yF.displayName="ScaleFade";const vF={slideInBottom:{...co,custom:{offsetY:16,reverse:!0}},slideInRight:{...co,custom:{offsetX:16,reverse:!0}},slideInTop:{...co,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...co,custom:{offsetX:-16,reverse:!0}},scale:{...Eb,custom:{initialScale:.95,reverse:!0}},none:{}},xF=R(Tt.section),SF=e=>vF[e||"none"],Rb=p.forwardRef((e,t)=>{const{preset:r,motionProps:n=SF(r),...o}=e;return y.jsx(xF,{ref:t,...n,...o})});Rb.displayName="ModalTransition";const wF=O((e,t)=>{const{className:r,children:n,containerProps:o,motionProps:s,...a}=e,{getDialogProps:i,getDialogContainerProps:c}=pr(),l=i(a,t),u=c(o),d=j("chakra-modal__content",r),f=Lr(),h={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...f.dialog},g={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...f.dialogContainer},{motionPreset:m}=pr();return y.jsx(Ab,{children:y.jsx(R.div,{...u,className:"chakra-modal__content-container",tabIndex:-1,__css:g,children:y.jsx(Rb,{preset:m,motionProps:s,className:d,...l,__css:h,children:n})})})});wF.displayName="ModalContent";const kF=O((e,t)=>{const{className:r,...n}=e,{bodyId:o,setBodyMounted:s}=pr();p.useEffect(()=>(s(!0),()=>s(!1)),[s]);const a=j("chakra-modal__body",r),i=Lr();return y.jsx(R.div,{ref:t,className:a,id:o,...n,__css:i.body})});kF.displayName="ModalBody";const CF=O((e,t)=>{const{onClick:r,className:n,...o}=e,{onClose:s}=pr(),a=j("chakra-modal__close-btn",n),i=Lr();return y.jsx(Ul,{ref:t,__css:i.closeButton,className:a,onClick:H(r,c=>{c.stopPropagation(),s()}),...o})});CF.displayName="ModalCloseButton";const _F=O((e,t)=>{const{className:r,...n}=e,o=j("chakra-modal__footer",r),s=Lr(),a={display:"flex",alignItems:"center",justifyContent:"flex-end",...s.footer};return y.jsx(R.footer,{ref:t,...n,__css:a,className:o})});_F.displayName="ModalFooter";const PF=O((e,t)=>{const{className:r,...n}=e,{headerId:o,setHeaderMounted:s}=pr();p.useEffect(()=>(s(!0),()=>s(!1)),[s]);const a=j("chakra-modal__header",r),i=Lr(),c={flex:0,...i.header};return y.jsx(R.header,{ref:t,className:a,id:o,...n,__css:c})});PF.displayName="ModalHeader";const TF={enter:({transition:e,transitionEnd:t,delay:r}={})=>({opacity:1,transition:(e==null?void 0:e.enter)??Pt.enter(Rr.enter,r),transitionEnd:t==null?void 0:t.enter}),exit:({transition:e,transitionEnd:t,delay:r}={})=>({opacity:0,transition:(e==null?void 0:e.exit)??Pt.exit(Rr.exit,r),transitionEnd:t==null?void 0:t.exit})},$b={initial:"exit",animate:"enter",exit:"exit",variants:TF},AF=p.forwardRef(function(t,r){const{unmountOnExit:n,in:o,className:s,transition:a,transitionEnd:i,delay:c,animatePresenceProps:l,...u}=t,d=o||n?"enter":"exit",f=n?o&&n:!0,h={transition:a,transitionEnd:i,delay:c};return y.jsx(hr,{...l,custom:h,children:f&&y.jsx(Tt.div,{ref:r,className:j("chakra-fade",s),custom:h,...$b,animate:d,...u})})});AF.displayName="Fade";const EF=R(Tt.div),RF=O((e,t)=>{const{className:r,transition:n,motionProps:o,...s}=e,a=j("chakra-modal__overlay",r),c={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...Lr().overlay},{motionPreset:l}=pr(),d=o||(l==="none"?{}:$b);return y.jsx(EF,{...d,__css:c,ref:t,className:a,...s})});RF.displayName="ModalOverlay";const[$F,IF]=ae(),MF={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};function OF(e,t){var r;if(e)return((r=MF[e])==null?void 0:r[t])??e}function Aj(e){var l;const{isOpen:t,onClose:r,placement:n="right",children:o,...s}=e,a=rr(),i=(l=a.components)==null?void 0:l.Drawer,c=OF(n,a.direction);return y.jsx($F,{value:{placement:c},children:y.jsx(Sb,{isOpen:t,onClose:r,styleConfig:i,...s,children:o})})}const gp={exit:{duration:.15,ease:Pr.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},FF={exit:({direction:e,transition:t,transitionEnd:r,delay:n})=>{const{exit:o}=Pc({direction:e});return{...o,transition:(t==null?void 0:t.exit)??Pt.exit(gp.exit,n),transitionEnd:r==null?void 0:r.exit}},enter:({direction:e,transitionEnd:t,transition:r,delay:n})=>{const{enter:o}=Pc({direction:e});return{...o,transition:(r==null?void 0:r.enter)??Pt.enter(gp.enter,n),transitionEnd:t==null?void 0:t.enter}}},Ib=p.forwardRef(function(t,r){const{direction:n="right",style:o,unmountOnExit:s,in:a,className:i,transition:c,transitionEnd:l,delay:u,motionProps:d,animatePresenceProps:f,...h}=t,g=Pc({direction:n}),m=Object.assign({position:"fixed"},g.position,o),b=s?a&&s:!0,S=a||s?"enter":"exit",v={transitionEnd:l,transition:c,direction:n,delay:u};return y.jsx(hr,{...f,custom:v,children:b&&y.jsx(Tt.div,{...h,ref:r,initial:"exit",className:j("chakra-slide",i),animate:S,exit:"exit",custom:v,variants:FF,style:m,...d})})});Ib.displayName="Slide";const DF=R(Ib),jF=O((e,t)=>{const{className:r,children:n,motionProps:o,containerProps:s,...a}=e,{getDialogProps:i,getDialogContainerProps:c,isOpen:l}=pr(),u=i(a,t),d=c(s),f=j("chakra-modal__content",r),h=Lr(),g={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...h.dialog},m={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...h.dialogContainer},{placement:b}=IF();return y.jsx(Ab,{children:y.jsx(R.div,{...d,className:"chakra-modal__content-container",__css:m,children:y.jsx(DF,{motionProps:o,direction:b,in:l,className:f,...u,__css:g,children:n})})})});jF.displayName="DrawerContent";const[NF,Zo]=ae({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"}),[BF,ja]=ae({name:"PopoverStylesContext",errorMessage:`usePopoverStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Popover />" `}),Yr={click:"click",hover:"hover"};function zF(e={}){const{closeOnBlur:t=!0,closeOnEsc:r=!0,initialFocusRef:n,id:o,returnFocusOnClose:s=!0,autoFocus:a=!0,arrowSize:i,arrowShadowColor:c,trigger:l=Yr.click,openDelay:u=200,closeDelay:d=200,isLazy:f,lazyBehavior:h="unmount",computePositionOnMount:g,...m}=e,{isOpen:b,onClose:S,onOpen:v,onToggle:x}=nl(e),[C,k]=p.useState(s);p.useEffect(()=>k(s),[s]);const A=p.useRef(null),T=p.useRef(null),$=p.useRef(null),M=p.useRef(!1),I=p.useRef(!1);b&&(I.current=!0);const[D,X]=p.useState(!1),[L,q]=p.useState(!1),Z=p.useId(),U=o??Z,[F,ee,te,le]=["popover-trigger","popover-content","popover-header","popover-body"].map(z=>`${z}-${U}`),{referenceRef:ke,getArrowProps:xe,getPopperProps:N,getArrowInnerProps:K,forceUpdate:ne}=Su({...m,enabled:b||!!g}),oe=sh({isOpen:b,ref:$});A0({enabled:b,ref:T}),ah($,{focusRef:T,visible:b,shouldFocus:C&&l===Yr.click}),x0($,{focusRef:n,visible:b,shouldFocus:a&&l===Yr.click}),ch({enabled:b&&t,ref:$,handler(z){var de;const ue=((de=z.composedPath)==null?void 0:de.call(z)[0])??[z.target];Ps(T.current,ue)||(ue&&k(!Gs(ue)),S())}});const Ce=tl({wasSelected:I.current,enabled:f,mode:h,isSelected:oe.present}),_e=p.useCallback((z={},ue=null)=>{const de={...z,style:{...z.style,transformOrigin:Be.transformOrigin.varRef,[Be.arrowSize.var]:i?`${i}px`:void 0,[Be.arrowShadowColor.var]:c},ref:Ie($,ue),children:Ce?z.children:null,id:ee,tabIndex:-1,role:"dialog",onKeyDown:H(z.onKeyDown,Se=>{Se.nativeEvent.isComposing||r&&Se.key==="Escape"&&(Se.preventDefault(),Se.stopPropagation(),S())}),onBlur:H(z.onBlur,Se=>{const Ke=bp(Se),St=Ps($.current,Ke),at=Ps(T.current,Ke),nr=!St&&!at;Ke&&k(!Gs(Ke)),b&&t&&nr&&S()}),"aria-labelledby":D?te:void 0,"aria-describedby":L?le:void 0};return l===Yr.hover&&(de.role="tooltip",de.onMouseEnter=H(z.onMouseEnter,()=>{M.current=!0}),de.onMouseLeave=H(z.onMouseLeave,Se=>{Se.nativeEvent.relatedTarget!==null&&(M.current=!1,setTimeout(()=>S(),d))})),de},[Ce,ee,D,te,L,le,l,r,S,b,t,d,c,i]),qe=p.useCallback((z={},ue=null)=>N({...z,style:{visibility:b?"visible":"hidden",...z.style}},ue),[b,N]),Je=p.useCallback((z,ue=null)=>({...z,ref:Ie(ue,A,ke)}),[A,ke]),J=p.useRef(),re=p.useRef(),$e=p.useCallback(z=>{A.current==null&&ke(z)},[ke]),xt=p.useCallback((z={},ue=null)=>{const de={...z,ref:Ie(T,ue,$e),id:F,"aria-haspopup":"dialog","aria-expanded":b,"aria-controls":ee};return l===Yr.click&&(de.onClick=H(z.onClick,x)),l===Yr.hover&&(de.onFocus=H(z.onFocus,()=>{J.current===void 0&&v()}),de.onBlur=H(z.onBlur,Se=>{const Ke=bp(Se),St=!Ps($.current,Ke);b&&t&&St&&S()}),de.onKeyDown=H(z.onKeyDown,Se=>{Se.key==="Escape"&&S()}),de.onMouseEnter=H(z.onMouseEnter,()=>{M.current=!0,J.current=window.setTimeout(()=>v(),u)}),de.onMouseLeave=H(z.onMouseLeave,()=>{M.current=!1,J.current&&(clearTimeout(J.current),J.current=void 0),re.current=window.setTimeout(()=>{M.current===!1&&S()},d)})),de},[F,b,ee,l,$e,x,v,t,S,u,d]);p.useEffect(()=>()=>{J.current&&clearTimeout(J.current),re.current&&clearTimeout(re.current)},[]);const Q=p.useCallback((z={},ue=null)=>({...z,id:te,ref:Ie(ue,de=>{X(!!de)})}),[te]),ve=p.useCallback((z={},ue=null)=>({...z,id:le,ref:Ie(ue,de=>{q(!!de)})}),[le]);return{forceUpdate:ne,isOpen:b,onAnimationComplete:oe.onComplete,onClose:S,getAnchorProps:Je,getArrowProps:xe,getArrowInnerProps:K,getPopoverPositionerProps:qe,getPopoverProps:_e,getTriggerProps:xt,getHeaderProps:Q,getBodyProps:ve}}function Ps(e,t){return e===t||(e==null?void 0:e.contains(t))}function bp(e){const t=e.currentTarget.ownerDocument.activeElement;return e.relatedTarget??t}function LF(e){const t=Fe("Popover",e),{children:r,...n}=ce(e),o=rr(),s=zF({...n,direction:o.direction});return y.jsx(NF,{value:s,children:y.jsx(BF,{value:t,children:He(r,{isOpen:s.isOpen,onClose:s.onClose,forceUpdate:s.forceUpdate})})})}LF.displayName="Popover";function Mb(e){var r;const t=p.version;return typeof t!="string"||t.startsWith("18.")?e==null?void 0:e.ref:(r=e==null?void 0:e.props)==null?void 0:r.ref}const VF=O(function(t,r){const{getBodyProps:n}=Zo(),o=ja();return y.jsx(R.div,{...n(t,r),className:j("chakra-popover__body",t.className),__css:o.body})});VF.displayName="PopoverBody";function WF(e){if(e)return{enter:{...e.enter,visibility:"visible"},exit:{...e.exit,transitionEnd:{visibility:"hidden"}}}}const HF={exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}},UF=R(Tt.section),Ob=O(function(t,r){const{variants:n=HF,...o}=t,{isOpen:s}=Zo();return y.jsx(UF,{ref:r,variants:WF(n),initial:!1,animate:s?"enter":"exit",...o})});Ob.displayName="PopoverTransition";const GF=O(function(t,r){const{rootProps:n,motionProps:o,...s}=t,{getPopoverProps:a,getPopoverPositionerProps:i,onAnimationComplete:c}=Zo(),l=ja(),u={position:"relative",display:"flex",flexDirection:"column",...l.content};return y.jsx(R.div,{...i(n),__css:l.popper,className:"chakra-popover__popper",children:y.jsx(Ob,{...o,...a(s,r),onAnimationComplete:ga(c,s.onAnimationComplete),className:j("chakra-popover__content",t.className),__css:u})})});GF.displayName="PopoverContent";function qF(e){const t=ja();return y.jsx(R.footer,{...e,className:j("chakra-popover__footer",e.className),__css:t.footer})}qF.displayName="PopoverFooter";const KF=O(function(t,r){const{getHeaderProps:n}=Zo(),o=ja();return y.jsx(R.header,{...n(t,r),className:j("chakra-popover__header",t.className),__css:o.header})});KF.displayName="PopoverHeader";function XF(e){const t=p.Children.only(e.children),{getTriggerProps:r}=Zo();return y.jsx(y.Fragment,{children:p.cloneElement(t,r(t.props,Mb(t)))})}XF.displayName="PopoverTrigger";const Wc=e=>y.jsx(R.circle,{cx:50,cy:50,r:42,fill:"transparent",...e});Wc.displayName="Circle";function YF(e,t,r){return(e-t)*100/(r-t)}const ZF=Vt({"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260"}}),JF=Vt({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),QF=Vt({"0%":{left:"-40%"},"100%":{left:"100%"}}),eD=Vt({from:{backgroundPosition:"1rem 0"},to:{backgroundPosition:"0 0"}});function Fb(e){const{value:t=0,min:r,max:n,valueText:o,getValueText:s,isIndeterminate:a,role:i="progressbar"}=e,c=YF(t,r,n);return{bind:{"data-indeterminate":a?"":void 0,"aria-valuemax":n,"aria-valuemin":r,"aria-valuenow":a?void 0:t,"aria-valuetext":(()=>{if(t!=null)return typeof s=="function"?s(t,c):o})(),role:i},percent:c,value:t}}const Db=e=>{const{size:t,isIndeterminate:r,...n}=e;return y.jsx(R.svg,{viewBox:"0 0 100 100",__css:{width:t,height:t,animation:r?`${JF} 2s linear infinite`:void 0},...n})};Db.displayName="Shape";const tD=O((e,t)=>{const{size:r="48px",max:n=100,min:o=0,valueText:s,getValueText:a,value:i,capIsRound:c,children:l,thickness:u="10px",color:d="#0078d4",trackColor:f="#edebe9",isIndeterminate:h,...g}=e,m=Fb({min:o,max:n,value:i,valueText:s,getValueText:a,isIndeterminate:h}),b=h?void 0:(m.percent??0)*2.64,S=b==null?void 0:`${b} ${264-b}`,v=h?{css:{animation:`${ZF} 1.5s linear infinite`}}:{strokeDashoffset:66,strokeDasharray:S,transitionProperty:"stroke-dasharray, stroke",transitionDuration:"0.6s",transitionTimingFunction:"ease"},x={display:"inline-block",position:"relative",verticalAlign:"middle",fontSize:r};return y.jsxs(R.div,{ref:t,className:"chakra-progress",...m.bind,...g,__css:x,children:[y.jsxs(Db,{size:r,isIndeterminate:h,children:[y.jsx(Wc,{stroke:f,strokeWidth:u,className:"chakra-progress__track"}),y.jsx(Wc,{stroke:d,strokeWidth:u,className:"chakra-progress__indicator",strokeLinecap:c?"round":void 0,opacity:m.value===0&&!h?0:void 0,...v})]}),l]})});tD.displayName="CircularProgress";const[rD,nD]=ae({name:"ProgressStylesContext",errorMessage:`useProgressStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Progress />" `}),oD=O((e,t)=>{const{min:r,max:n,value:o,isIndeterminate:s,role:a,...i}=e,c=Fb({value:o,min:r,max:n,isIndeterminate:s,role:a}),u={height:"100%",...nD().filledTrack};return y.jsx(R.div,{ref:t,style:{width:`${c.percent}%`,...i.style},...c.bind,...i,__css:u})}),sD=O((e,t)=>{var T;const{value:r,min:n=0,max:o=100,hasStripe:s,isAnimated:a,children:i,borderRadius:c,isIndeterminate:l,"aria-label":u,"aria-labelledby":d,"aria-valuetext":f,title:h,role:g,...m}=ce(e),b=Fe("Progress",e),S=c??((T=b.track)==null?void 0:T.borderRadius),v={animation:`${eD} 1s linear infinite`},k={...!l&&s&&a&&v,...l&&{position:"absolute",willChange:"left",minWidth:"50%",animation:`${QF} 1s ease infinite normal none running`}},A={overflow:"hidden",position:"relative",...b.track};return y.jsx(R.div,{ref:t,borderRadius:S,__css:A,...m,children:y.jsxs(rD,{value:b,children:[y.jsx(oD,{"aria-label":u,"aria-labelledby":d,"aria-valuetext":f,min:n,max:o,value:r,isIndeterminate:l,css:k,borderRadius:S,title:h,role:g}),i]})})});sD.displayName="Progress";function aD(e){return e&&je(e)&&je(e.target)}function iD(e={}){const{onChange:t,value:r,defaultValue:n,name:o,isDisabled:s,isFocusable:a,isNative:i,...c}=e,[l,u]=p.useState(n||""),d=typeof r<"u",f=d?r:l,h=p.useRef(null),g=p.useCallback(()=>{const k=h.current;if(!k)return;let A="input:not(:disabled):checked";const T=k.querySelector(A);if(T){T.focus();return}A="input:not(:disabled)";const $=k.querySelector(A);$==null||$.focus()},[]),b=`radio-${p.useId()}`,S=o||b,v=p.useCallback(k=>{const A=aD(k)?k.target.value:k;d||u(A),t==null||t(String(A))},[t,d]),x=p.useCallback((k={},A=null)=>({...k,ref:Ie(A,h),role:"radiogroup"}),[]),C=p.useCallback((k={},A=null)=>({...k,ref:A,name:S,[i?"checked":"isChecked"]:f!=null?k.value===f:void 0,onChange($){v($)},"data-radiogroup":!0}),[i,S,v,f]);return{getRootProps:x,getRadioProps:C,name:S,ref:h,focus:g,setValue:u,value:f,onChange:v,isDisabled:s,isFocusable:a,htmlProps:c}}const[cD,jb]=ae({name:"RadioGroupContext",strict:!1}),lD=O((e,t)=>{const{colorScheme:r,size:n,variant:o,children:s,className:a,isDisabled:i,isFocusable:c,...l}=e,{value:u,onChange:d,getRootProps:f,name:h,htmlProps:g}=iD(l),m=p.useMemo(()=>({name:h,size:n,onChange:d,colorScheme:r,value:u,variant:o,isDisabled:i,isFocusable:c}),[h,n,d,r,u,o,i,c]);return y.jsx(cD,{value:m,children:y.jsx(R.div,{...f(g,t),className:j("chakra-radio-group",a),children:s})})});lD.displayName="RadioGroup";function uD(e={}){const{defaultChecked:t,isChecked:r,isFocusable:n,isDisabled:o,isReadOnly:s,isRequired:a,onChange:i,isInvalid:c,name:l,value:u,id:d,"data-radiogroup":f,"aria-describedby":h,...g}=e,m=`radio-${p.useId()}`,b=zr(),v=!!jb()||!!f;let C=!!b&&!v?b.id:m;C=d??C;const k=o??(b==null?void 0:b.isDisabled),A=s??(b==null?void 0:b.isReadOnly),T=a??(b==null?void 0:b.isRequired),$=c??(b==null?void 0:b.isInvalid),[M,I]=p.useState(!1),[D,X]=p.useState(!1),[L,q]=p.useState(!1),[Z,U]=p.useState(!1),[F,ee]=p.useState(!!t),te=typeof r<"u",le=te?r:F;p.useEffect(()=>gg(I),[]);const ke=p.useCallback(J=>{if(A||k){J.preventDefault();return}te||ee(J.currentTarget.checked),i==null||i(J)},[te,k,A,i]),xe=p.useCallback(J=>{J.key===" "&&U(!0)},[U]),N=p.useCallback(J=>{J.key===" "&&U(!1)},[U]),K=p.useCallback((J={},re=null)=>({...J,ref:re,"data-active":V(Z),"data-hover":V(L),"data-disabled":V(k),"data-invalid":V($),"data-checked":V(le),"data-focus":V(D),"data-focus-visible":V(D&&M),"data-readonly":V(A),"aria-hidden":!0,onMouseDown:H(J.onMouseDown,()=>U(!0)),onMouseUp:H(J.onMouseUp,()=>U(!1)),onMouseEnter:H(J.onMouseEnter,()=>q(!0)),onMouseLeave:H(J.onMouseLeave,()=>q(!1))}),[Z,L,k,$,le,D,A,M]),{onFocus:ne,onBlur:oe}=b??{},Ce=p.useCallback((J={},re=null)=>{const $e=k&&!n;return{...J,id:C,ref:re,type:"radio",name:l,value:u,onChange:H(J.onChange,ke),onBlur:H(oe,J.onBlur,()=>X(!1)),onFocus:H(ne,J.onFocus,()=>X(!0)),onKeyDown:H(J.onKeyDown,xe),onKeyUp:H(J.onKeyUp,N),checked:le,disabled:$e,readOnly:A,required:T,"aria-invalid":un($),"aria-disabled":un($e),"aria-required":un(T),"data-readonly":V(A),"aria-describedby":h,style:vg}},[k,n,C,l,u,ke,oe,ne,xe,N,le,A,T,$,h]);return{state:{isInvalid:$,isFocused:D,isChecked:le,isActive:Z,isHovered:L,isDisabled:k,isReadOnly:A,isRequired:T},getRadioProps:K,getInputProps:Ce,getLabelProps:(J={},re=null)=>({...J,ref:re,onMouseDown:H(J.onMouseDown,dD),"data-disabled":V(k),"data-checked":V(le),"data-invalid":V($)}),getRootProps:(J,re=null)=>({htmlFor:C,...J,ref:re,"data-disabled":V(k),"data-checked":V(le),"data-invalid":V($)}),htmlProps:g}}function dD(e){e.preventDefault(),e.stopPropagation()}const fD=O((e,t)=>{const r=jb(),{onChange:n,value:o}=e,s=Fe("Radio",{...r,...e}),a=ce(e),{spacing:i="0.5rem",children:c,isDisabled:l=r==null?void 0:r.isDisabled,isFocusable:u=r==null?void 0:r.isFocusable,inputProps:d,...f}=a;let h=e.isChecked;(r==null?void 0:r.value)!=null&&o!=null&&(h=r.value===o);let g=n;r!=null&&r.onChange&&o!=null&&(g=ga(r.onChange,n));const m=(e==null?void 0:e.name)??(r==null?void 0:r.name),{getInputProps:b,getRadioProps:S,getLabelProps:v,getRootProps:x,htmlProps:C}=uD({...f,isChecked:h,isFocusable:u,isDisabled:l,onChange:g,name:m}),[k,A]=oh(C,hh),T=S(A),$=b(d,t),M=v(),I=Object.assign({},k,x()),D={display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer",position:"relative",...s.container},X={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,...s.control},L={userSelect:"none",marginStart:i,...s.label};return y.jsxs(R.label,{className:"chakra-radio",...I,__css:D,children:[y.jsx("input",{className:"chakra-radio__input",...$}),y.jsx(R.span,{className:"chakra-radio__control",...T,__css:X}),c&&y.jsx(R.span,{className:"chakra-radio__label",...M,__css:L,children:c})]})});fD.displayName="Radio";const Nb=O(function(t,r){const{children:n,placeholder:o,className:s,...a}=t;return y.jsxs(R.select,{...a,ref:r,className:j("chakra-select",s),children:[o&&y.jsx("option",{value:"",children:o}),n]})});Nb.displayName="SelectField";const pD=O((e,t)=>{var x;const r=Fe("Select",e),{rootProps:n,placeholder:o,icon:s,color:a,height:i,h:c,minH:l,minHeight:u,iconColor:d,iconSize:f,...h}=ce(e),[g,m]=oh(h,hh),b=Ql(m),S={width:"100%",height:"fit-content",position:"relative",color:a},v={paddingEnd:"2rem",...r.field,_focus:{zIndex:"unset",...(x=r.field)==null?void 0:x._focus}};return y.jsxs(R.div,{className:"chakra-select__wrapper",__css:S,...g,...n,children:[y.jsx(Nb,{ref:t,height:c??i,minH:l??u,placeholder:o,...b,__css:v,children:e.children}),y.jsx(Bb,{"data-disabled":V(b.disabled),...(d||a)&&{color:d||a},__css:r.icon,...f&&{fontSize:f},children:s})]})});pD.displayName="Select";const hD=e=>y.jsx("svg",{viewBox:"0 0 24 24",...e,children:y.jsx("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"})}),mD=R("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),Bb=e=>{const{children:t=y.jsx(hD,{}),...r}=e,n=p.cloneElement(t,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return y.jsx(mD,{...r,className:"chakra-select__icon-wrapper",children:p.isValidElement(t)?n:null})};Bb.displayName="SelectIcon";function gD(){const e=p.useRef(!0);return p.useEffect(()=>{e.current=!1},[]),e.current}const bD=R("div",{baseStyle:{boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none","&::before, &::after, *":{visibility:"hidden"}}}),Hc=W("skeleton-start-color"),Uc=W("skeleton-end-color"),yD=Vt({from:{opacity:0},to:{opacity:1}}),vD=Vt({from:{borderColor:Hc.reference,background:Hc.reference},to:{borderColor:Uc.reference,background:Uc.reference}}),xD=O((e,t)=>{const r={...e,fadeDuration:typeof e.fadeDuration=="number"?e.fadeDuration:.4,speed:typeof e.speed=="number"?e.speed:.8},n=st("Skeleton",r),o=gD(),{startColor:s="",endColor:a="",isLoaded:i,fadeDuration:c,speed:l,className:u,fitContent:d,animation:f,...h}=ce(r),[g,m]=t$("colors",[s,a]),b=M0(i),S=j("chakra-skeleton",u),v={...g&&{[Hc.variable]:g},...m&&{[Uc.variable]:m}};if(i){const x=o||b?"none":`${yD} ${c}s`;return y.jsx(R.div,{ref:t,className:S,__css:{animation:x},...h})}return y.jsx(bD,{ref:t,className:S,...h,__css:{width:d?"fit-content":void 0,...n,...v,_dark:{...n._dark,...v},animation:f||`${l}s linear infinite alternate ${vD}`}})});xD.displayName="Skeleton";const zb=e=>y.jsx(R.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});zb.displayName="StackItem";function SD(e){const{spacing:t,direction:r}=e,n={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":ba(r,o=>n[o])}}const wu=O((e,t)=>{const{isInline:r,direction:n,align:o,justify:s,spacing:a="0.5rem",wrap:i,children:c,divider:l,className:u,shouldWrapChildren:d,...f}=e,h=r?"row":n??"column",g=p.useMemo(()=>SD({spacing:a,direction:h}),[a,h]),m=!!l,b=!d&&!m,S=p.useMemo(()=>{const x=Mn(c);return b?x:x.map((C,k)=>{const A=typeof C.key<"u"?C.key:k,T=k+1===x.length,M=d?y.jsx(zb,{children:C},A):C;if(!m)return M;const I=p.cloneElement(l,{__css:g}),D=T?null:I;return y.jsxs(p.Fragment,{children:[M,D]},A)})},[l,g,m,b,d,c]),v=j("chakra-stack",u);return y.jsx(R.div,{ref:t,display:"flex",alignItems:o,justifyContent:s,flexDirection:h,flexWrap:i,gap:m?void 0:a,className:v,...f,children:S})});wu.displayName="Stack";const wD=O((e,t)=>y.jsx(wu,{align:"center",...e,direction:"row",ref:t}));wD.displayName="HStack";const kD=O((e,t)=>y.jsx(wu,{align:"center",...e,direction:"column",ref:t}));kD.displayName="VStack";const[CD,Jo]=ae({name:"StepContext"}),[_D,Na]=Oh("Stepper"),Ej=O(function(t,r){const{orientation:n,status:o,showLastSeparator:s}=Jo(),a=Na();return y.jsx(R.div,{ref:r,"data-status":o,"data-orientation":n,"data-stretch":V(s),__css:a.step,...t,className:j("chakra-step",t.className)})});function Rj(e){const{complete:t,incomplete:r,active:n}=e,o=Jo();let s=null;switch(o.status){case"complete":s=He(t,o);break;case"incomplete":s=He(r,o);break;case"active":s=He(n,o);break}return s?y.jsx(y.Fragment,{children:s}):null}const $j=O(function(t,r){const{status:n}=Jo(),o=Na();return y.jsx(R.div,{ref:r,"data-status":n,...t,__css:o.indicator,className:j("chakra-step__indicator",t.className)})}),Ij=O(function(t,r){const{orientation:n,status:o,isLast:s,showLastSeparator:a}=Jo(),i=Na();return s&&!a?null:y.jsx(R.div,{ref:r,role:"separator","data-orientation":n,"data-status":o,__css:i.separator,...t,className:j("chakra-step__separator",t.className)})}),Mj=O(function(t,r){const{status:n}=Jo(),o=Na();return y.jsx(R.h3,{ref:r,"data-status":n,...t,__css:o.title,className:j("chakra-step__title",t.className)})}),Oj=O(function(t,r){const n=Fe("Stepper",t),{children:o,index:s,orientation:a="horizontal",showLastSeparator:i=!1,...c}=ce(t),l=p.Children.toArray(o),u=l.length;function d(f){return f<s?"complete":f>s?"incomplete":"active"}return y.jsx(R.div,{ref:r,"aria-label":"Progress","data-orientation":a,...c,__css:n.stepper,className:j("chakra-stepper",t.className),children:y.jsx(_D,{value:n,children:l.map((f,h)=>y.jsx(CD,{value:{index:h,status:d(h),orientation:a,showLastSeparator:i,count:u,isFirst:h===0,isLast:h===u-1},children:f},h))})})});function Fj(e={}){const{index:t=0,count:r}=e,[n,o]=p.useState(t),s=typeof r=="number"?r-1:0,a=n/s;return{activeStep:n,setActiveStep:o,activeStepPercent:Number.isNaN(a)?0:a,isActiveStep(i){return i===n},isCompleteStep(i){return i<n},isIncompleteStep(i){return i>n},getStatus(i){return i<n?"complete":i>n?"incomplete":"active"},goToNext(){o(i=>typeof r=="number"?Math.min(r,i+1):i+1)},goToPrevious(){o(i=>Math.max(0,i-1))}}}const PD=O(function(t,r){const n=Fe("Switch",t),{spacing:o="0.5rem",children:s,...a}=ce(t),{getIndicatorProps:i,getInputProps:c,getCheckboxProps:l,getRootProps:u,getLabelProps:d}=xg(a),f=p.useMemo(()=>({display:"inline-block",position:"relative",verticalAlign:"middle",lineHeight:0,...n.container}),[n.container]),h=p.useMemo(()=>({display:"inline-flex",flexShrink:0,justifyContent:"flex-start",boxSizing:"content-box",cursor:"pointer",...n.track}),[n.track]),g=p.useMemo(()=>({userSelect:"none",marginStart:o,...n.label}),[o,n.label]);return y.jsxs(R.label,{...u(),className:j("chakra-switch",t.className),__css:f,children:[y.jsx("input",{className:"chakra-switch__input",...c({},r)}),y.jsx(R.span,{...l(),className:"chakra-switch__track",__css:h,children:y.jsx(R.span,{__css:n.thumb,className:"chakra-switch__thumb",...i()})}),s&&y.jsx(R.span,{className:"chakra-switch__label",...d(),__css:g,children:s})]})});PD.displayName="Switch";const[TD,Qo]=ae({name:"TableStylesContext",errorMessage:`useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Table />" `}),AD=O((e,t)=>{const r=Fe("Table",e),{className:n,layout:o,...s}=ce(e);return y.jsx(TD,{value:r,children:y.jsx(R.table,{ref:t,__css:{tableLayout:o,...r.table},className:j("chakra-table",n),...s})})});AD.displayName="Table";const Dj=O((e,t)=>{const{overflow:r,overflowX:n,className:o,...s}=e;return y.jsx(R.div,{ref:t,className:j("chakra-table__container",o),...s,__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:r??n??"auto",overflowY:"hidden",maxWidth:"100%"}})}),jj=O((e,t)=>{const r=Qo();return y.jsx(R.tbody,{...e,ref:t,__css:r.tbody})}),Nj=O(({isNumeric:e,...t},r)=>{const n=Qo();return y.jsx(R.td,{...t,ref:r,__css:n.td,"data-is-numeric":e})}),Bj=O(({isNumeric:e,...t},r)=>{const n=Qo();return y.jsx(R.th,{...t,ref:r,__css:n.th,"data-is-numeric":e})}),zj=O((e,t)=>{const r=Qo();return y.jsx(R.thead,{...e,ref:t,__css:r.thead})}),Lj=O((e,t)=>{const r=Qo();return y.jsx(R.tr,{...e,ref:t,__css:r.tr})}),[ED,RD,$D,ID]=ql();function MD(e){const{defaultIndex:t,onChange:r,index:n,isManual:o,isLazy:s,lazyBehavior:a="unmount",orientation:i="horizontal",direction:c="ltr",...l}=e,[u,d]=p.useState(t??0),[f,h]=rl({defaultValue:t??0,value:n,onChange:r});p.useEffect(()=>{n!=null&&d(n)},[n]);const g=$D(),m=p.useId();return{id:`tabs-${e.id??m}`,selectedIndex:f,focusedIndex:u,setSelectedIndex:h,setFocusedIndex:d,isManual:o,isLazy:s,lazyBehavior:a,orientation:i,descendants:g,direction:c,htmlProps:l}}const[OD,Ba]=ae({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within <Tabs />"});function FD(e){const{focusedIndex:t,orientation:r,direction:n}=Ba(),o=RD(),s=p.useCallback(a=>{const i=()=>{var x;const v=o.nextEnabled(t);v&&((x=v.node)==null||x.focus())},c=()=>{var x;const v=o.prevEnabled(t);v&&((x=v.node)==null||x.focus())},l=()=>{var x;const v=o.firstEnabled();v&&((x=v.node)==null||x.focus())},u=()=>{var x;const v=o.lastEnabled();v&&((x=v.node)==null||x.focus())},d=r==="horizontal",f=r==="vertical",h=a.key,g=n==="ltr"?"ArrowLeft":"ArrowRight",m=n==="ltr"?"ArrowRight":"ArrowLeft",S={[g]:()=>d&&c(),[m]:()=>d&&i(),ArrowDown:()=>f&&i(),ArrowUp:()=>f&&c(),Home:l,End:u}[h];S&&(a.preventDefault(),S(a))},[o,t,r,n]);return{...e,role:"tablist","aria-orientation":r,onKeyDown:H(e.onKeyDown,s)}}function DD(e){const{isDisabled:t=!1,isFocusable:r=!1,...n}=e,{setSelectedIndex:o,isManual:s,id:a,setFocusedIndex:i,selectedIndex:c}=Ba(),{index:l,register:u}=ID({disabled:t&&!r}),d=l===c,f=()=>{o(l)},h=()=>{i(l),!s&&!(t&&r)&&o(l)};return{...mb({...n,ref:Ie(u,e.ref),isDisabled:t,isFocusable:r,onClick:H(e.onClick,f)}),id:Lb(a,l),role:"tab",tabIndex:d?0:-1,type:"button","aria-selected":d,"aria-controls":Vb(a,l),onFocus:t?void 0:H(e.onFocus,h)}}const[jD,ND]=ae({});function BD(e){const t=Ba(),{id:r,selectedIndex:n}=t,s=Mn(e.children).map((a,i)=>p.createElement(jD,{key:a.key??i,value:{isSelected:i===n,id:Vb(r,i),tabId:Lb(r,i),selectedIndex:n}},a));return{...e,children:s}}function zD(e){const{children:t,...r}=e,{isLazy:n,lazyBehavior:o}=Ba(),{isSelected:s,id:a,tabId:i}=ND(),c=p.useRef(!1);s&&(c.current=!0);const l=tl({wasSelected:c.current,isSelected:s,enabled:n,mode:o});return{tabIndex:0,...r,children:l?t:null,role:"tabpanel","aria-labelledby":i,hidden:!s,id:a}}function Lb(e,t){return`${e}--tab-${t}`}function Vb(e,t){return`${e}--tabpanel-${t}`}const[LD,za]=ae({name:"TabsStylesContext",errorMessage:`useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Tabs />" `}),VD=O(function(t,r){const n=Fe("Tabs",t),{children:o,className:s,...a}=ce(t),{htmlProps:i,descendants:c,...l}=MD(a),u=p.useMemo(()=>l,[l]),{isFitted:d,...f}=i,h={position:"relative",...n.root};return y.jsx(ED,{value:c,children:y.jsx(OD,{value:u,children:y.jsx(LD,{value:n,children:y.jsx(R.div,{className:j("chakra-tabs",s),ref:r,...f,__css:h,children:o})})})})});VD.displayName="Tabs";const WD=O(function(t,r){const n=za(),o=DD({...t,ref:r}),s={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...n.tab};return y.jsx(R.button,{...o,className:j("chakra-tabs__tab",t.className),__css:s})});WD.displayName="Tab";const HD=O(function(t,r){const n=FD({...t,ref:r}),o=za(),s={display:"flex",...o.tablist};return y.jsx(R.div,{...n,className:j("chakra-tabs__tablist",t.className),__css:s})});HD.displayName="TabList";const UD=O(function(t,r){const n=zD({...t,ref:r}),o=za();return y.jsx(R.div,{outline:"0",...n,className:j("chakra-tabs__tab-panel",t.className),__css:o.tabpanel})});UD.displayName="TabPanel";const GD=O(function(t,r){const n=BD(t),o=za();return y.jsx(R.div,{...n,width:"100%",ref:r,className:j("chakra-tabs__tab-panels",t.className),__css:o.tabpanels})});GD.displayName="TabPanels";const[qD,Wb]=ae({name:"TagStylesContext",errorMessage:`useTagStyles returned is 'undefined'. Seems you forgot to wrap the components in "<Tag />" `}),KD=O((e,t)=>{const r=Fe("Tag",e),n=ce(e),o={display:"inline-flex",verticalAlign:"top",alignItems:"center",maxWidth:"100%",...r.container};return y.jsx(qD,{value:r,children:y.jsx(R.span,{ref:t,...n,__css:o})})});KD.displayName="Tag";const XD=O((e,t)=>{const r=Wb();return y.jsx(R.span,{ref:t,noOfLines:1,...e,__css:r.label})});XD.displayName="TagLabel";const YD=O((e,t)=>y.jsx(At,{ref:t,verticalAlign:"top",marginEnd:"0.5rem",...e}));YD.displayName="TagLeftIcon";const ZD=O((e,t)=>y.jsx(At,{ref:t,verticalAlign:"top",marginStart:"0.5rem",...e}));ZD.displayName="TagRightIcon";const Hb=e=>y.jsx(At,{verticalAlign:"inherit",viewBox:"0 0 512 512",...e,children:y.jsx("path",{fill:"currentColor",d:"M289.94 256l95-95A24 24 0 00351 127l-95 95-95-95a24 24 0 00-34 34l95 95-95 95a24 24 0 1034 34l95-95 95 95a24 24 0 0034-34z"})});Hb.displayName="TagCloseIcon";const JD=O((e,t)=>{const{isDisabled:r,children:n,...o}=e,a={display:"flex",alignItems:"center",justifyContent:"center",outline:"0",...Wb().closeButton};return y.jsx(R.button,{ref:t,"aria-label":"close",...o,type:"button",disabled:r,__css:a,children:n||y.jsx(Hb,{})})});JD.displayName="TagCloseButton";const QD=["h","minH","height","minHeight"],ej=O((e,t)=>{const r=st("Textarea",e),{className:n,rows:o,...s}=ce(e),a=Ql(s),i=o?Fn(r,QD):r;return y.jsx(R.textarea,{ref:t,rows:o,...a,className:j("chakra-textarea",n),__css:i})});ej.displayName="Textarea";function tj(e,t){const r=e??"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return(o==null?void 0:o[t])??r}function Ub(e,t){const r=o=>({...t,...o,position:tj((o==null?void 0:o.position)??(t==null?void 0:t.position),e)}),n=o=>{const s=r(o),a=ag(s);return Dt.notify(a,s)};return n.update=(o,s)=>{Dt.update(o,r(s))},n.promise=(o,s)=>{const a=n({...s.loading,status:"loading",duration:null});o.then(i=>n.update(a,{status:"success",duration:5e3,...He(s.success,i)})).catch(i=>n.update(a,{status:"error",duration:5e3,...He(s.error,i)}))},n.closeAll=Dt.closeAll,n.close=Dt.close,n.isActive=Dt.isActive,n}const rj={duration:5e3,variant:"solid"},Zr={theme:dl,colorMode:"light",toggleColorMode:()=>{},setColorMode:()=>{},defaultOptions:rj,forced:!1};function Vj({theme:e=Zr.theme,colorMode:t=Zr.colorMode,toggleColorMode:r=Zr.toggleColorMode,setColorMode:n=Zr.setColorMode,defaultOptions:o=Zr.defaultOptions,motionVariants:s,toastSpacing:a,component:i,forced:c}=Zr){const l={colorMode:t,setColorMode:n,toggleColorMode:r,forced:c};return{ToastContainer:()=>y.jsx(Mh,{theme:e,children:y.jsx(wa.Provider,{value:l,children:y.jsx(cg,{defaultOptions:o,motionVariants:s,toastSpacing:a,component:i})})}),toast:Ub(e.direction,o)}}function Wj(e){const{theme:t}=Jm(),r=x$();return p.useMemo(()=>Ub(t.direction,{...r,...e}),[e,t.direction,r])}const nj={exit:{scale:.85,opacity:0,transition:{opacity:{duration:.15,easings:"easeInOut"},scale:{duration:.2,easings:"easeInOut"}}},enter:{scale:1,opacity:1,transition:{opacity:{easings:"easeOut",duration:.2},scale:{duration:.2,ease:[.175,.885,.4,1.1]}}}},Gc=e=>{var t;return((t=e.current)==null?void 0:t.ownerDocument)||document},Hs=e=>{var t,r;return((r=(t=e.current)==null?void 0:t.ownerDocument)==null?void 0:r.defaultView)||window};function oj(e={}){const{openDelay:t=0,closeDelay:r=0,closeOnClick:n=!0,closeOnMouseDown:o,closeOnScroll:s,closeOnPointerDown:a=o,closeOnEsc:i=!0,onOpen:c,onClose:l,placement:u,id:d,isOpen:f,defaultIsOpen:h,arrowSize:g=10,arrowShadowColor:m,arrowPadding:b,modifiers:S,isDisabled:v,gutter:x,offset:C,direction:k,...A}=e,{isOpen:T,onOpen:$,onClose:M}=nl({isOpen:f,defaultIsOpen:h,onOpen:c,onClose:l}),{referenceRef:I,getPopperProps:D,getArrowInnerProps:X,getArrowProps:L}=Su({enabled:T,placement:u,arrowPadding:b,modifiers:S,gutter:x,offset:C,direction:k}),q=p.useId(),U=`tooltip-${d??q}`,F=p.useRef(null),ee=p.useRef(),te=p.useCallback(()=>{ee.current&&(clearTimeout(ee.current),ee.current=void 0)},[]),le=p.useRef(),ke=p.useCallback(()=>{le.current&&(clearTimeout(le.current),le.current=void 0)},[]),xe=p.useCallback(()=>{ke(),M()},[M,ke]),N=sj(F,xe),K=p.useCallback(()=>{if(!v&&!ee.current){T&&N();const re=Hs(F);ee.current=re.setTimeout($,t)}},[N,v,T,$,t]),ne=p.useCallback(()=>{te();const re=Hs(F);le.current=re.setTimeout(xe,r)},[r,xe,te]),oe=p.useCallback(()=>{T&&n&&ne()},[n,ne,T]),Ce=p.useCallback(()=>{T&&a&&ne()},[a,ne,T]),_e=p.useCallback(re=>{T&&re.key==="Escape"&&ne()},[T,ne]);dn(()=>Gc(F),"keydown",i?_e:void 0),dn(()=>{if(!s)return null;const re=F.current;if(!re)return null;const $e=nh(re);return $e.localName==="body"?Hs(F):$e},"scroll",()=>{T&&s&&xe()},{passive:!0,capture:!0}),p.useEffect(()=>{v&&(te(),T&&M())},[v,T,M,te]),p.useEffect(()=>()=>{te(),ke()},[te,ke]),dn(()=>F.current,"pointerleave",ne);const qe=p.useCallback((re={},$e=null)=>({...re,ref:Ie(F,$e,I),onPointerEnter:H(re.onPointerEnter,Q=>{Q.pointerType!=="touch"&&K()}),onClick:H(re.onClick,oe),onPointerDown:H(re.onPointerDown,Ce),onFocus:H(re.onFocus,K),onBlur:H(re.onBlur,ne),"aria-describedby":T?U:void 0}),[K,ne,Ce,T,U,oe,I]),Je=p.useCallback((re={},$e=null)=>D({...re,style:{...re.style,[Be.arrowSize.var]:g?`${g}px`:void 0,[Be.arrowShadowColor.var]:m}},$e),[D,g,m]),J=p.useCallback((re={},$e=null)=>{const xt={...re.style,position:"relative",transformOrigin:Be.transformOrigin.varRef};return{ref:$e,...A,...re,id:U,role:"tooltip",style:xt}},[A,U]);return{isOpen:T,show:K,hide:ne,getTriggerProps:qe,getTooltipProps:J,getTooltipPositionerProps:Je,getArrowProps:L,getArrowInnerProps:X}}const Gi="chakra-ui:close-tooltip";function sj(e,t){return p.useEffect(()=>{const r=Gc(e);return r.addEventListener(Gi,t),()=>r.removeEventListener(Gi,t)},[t,e]),()=>{const r=Gc(e),n=Hs(e);r.dispatchEvent(new n.CustomEvent(Gi))}}const aj=R(Tt.div),ij=O((e,t)=>{const r=st("Tooltip",e),n=ce(e),o=rr(),{children:s,label:a,shouldWrapChildren:i,"aria-label":c,hasArrow:l,bg:u,portalProps:d,background:f,backgroundColor:h,bgColor:g,motionProps:m,animatePresenceProps:b,...S}=n,v=f??h??u??g;if(v){r.bg=v;const I=Ax(o,"colors",v);r[Be.arrowBg.var]=I}const x=oj({...S,direction:o.direction}),C=!p.isValidElement(s)||i;let k;if(C)k=y.jsx(R.span,{display:"inline-block",tabIndex:0,...x.getTriggerProps(),children:s});else{const I=p.Children.only(s);k=p.cloneElement(I,x.getTriggerProps(I.props,Mb(I)))}const A=!!c,T=x.getTooltipProps({},t),$=A?Fn(T,["role","id"]):T,M=th(T,["role","id"]);return a?y.jsxs(y.Fragment,{children:[k,y.jsx(hr,{...b,children:x.isOpen&&y.jsx(Nn,{...d,children:y.jsx(R.div,{...x.getTooltipPositionerProps(),__css:{zIndex:r.zIndex,pointerEvents:"none"},children:y.jsxs(aj,{variants:nj,initial:"exit",animate:"enter",exit:"exit",...m,...$,__css:r,children:[a,A&&y.jsx(R.span,{srOnly:!0,...M,children:c}),l&&y.jsx(R.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:y.jsx(R.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:r.bg}})})]})})})})]}):y.jsx(y.Fragment,{children:s})});ij.displayName="Tooltip";const cj=O(function(t,r){const n=st("Heading",t),{className:o,...s}=ce(t);return y.jsx(R.h2,{ref:r,className:j("chakra-heading",t.className),...s,__css:n})});cj.displayName="Heading";const lj=O(function(t,r){const n=st("Text",t),{className:o,align:s,decoration:a,casing:i,...c}=ce(t),l=On({textAlign:t.align,textDecoration:t.decoration,textTransform:t.casing});return y.jsx(R.p,{ref:r,className:j("chakra-text",t.className),...l,...c,__css:n})});lj.displayName="Text";const uj=O(function(t,r){const{spacing:n="0.5rem",spacingX:o,spacingY:s,children:a,justify:i,direction:c,align:l,className:u,shouldWrapChildren:d,...f}=t,h=p.useMemo(()=>d?p.Children.map(a,(g,m)=>y.jsx(Gb,{children:g},m)):a,[a,d]);return y.jsx(R.div,{ref:r,className:j("chakra-wrap",u),...f,children:y.jsx(R.ul,{className:"chakra-wrap__list",__css:{display:"flex",flexWrap:"wrap",justifyContent:i,alignItems:l,flexDirection:c,listStyleType:"none",gap:n,columnGap:o,rowGap:s,padding:"0"},children:h})})});uj.displayName="Wrap";const Gb=O(function(t,r){const{className:n,...o}=t;return y.jsx(R.li,{ref:r,__css:{display:"flex",alignItems:"flex-start"},className:j("chakra-wrap__listitem",n),...o})});Gb.displayName="WrapItem";export{dS as $,Y$ as A,J$ as B,wj as C,LI as D,Uv as E,UI as F,$2 as G,wD as H,w2 as I,cI as J,cj as K,T2 as L,C5 as M,Fj as N,Te as O,LF as P,hj as Q,nS as R,wu as S,lj as T,R2 as U,hS as V,mj as W,yS as X,Jx as Y,sS as Z,Mr as _,Vj as a,YD as a$,mS as a0,G as a1,gS as a2,bS as a3,uS as a4,cS as a5,aS as a6,_j as a7,vj as a8,jI as a9,M2 as aA,PD as aB,lD as aC,fD as aD,Pj as aE,tb as aF,XI as aG,rb as aH,ej as aI,hr as aJ,Tt as aK,uI as aL,zI as aM,N$ as aN,L$ as aO,B$ as aP,z$ as aQ,H$ as aR,BI as aS,Nj as aT,uj as aU,Gb as aV,vd as aW,_2 as aX,nb as aY,ob as aZ,XD as a_,ij as aa,Cj as ab,kj as ac,y2 as ad,RF as ae,wF as af,PF as ag,CF as ah,kF as ai,_F as aj,Sb as ak,nl as al,b2 as am,VD as an,HD as ao,WD as ap,GD as aq,UD as ar,iD as as,h2 as at,AI as au,uD as av,KD as aw,g2 as ax,kD as ay,pj as az,iM as b,Nn as b0,Oj as b1,Ej as b2,$j as b3,Rj as b4,Mj as b5,Ij as b6,eI as b7,tI as b8,hg as b9,E2 as bA,ZD as bB,rg as bC,fj as bD,Bj as ba,Lj as bb,zj as bc,jj as bd,Dj as be,AD as bf,pD as bg,JD as bh,LR as bi,uM as bj,GI as bk,lM as bl,Ic as bm,Oo as bn,aP as bo,Vt as bp,Fe as bq,Ql as br,Tj as bs,yb as bt,R as bu,st as bv,sD as bw,yj as bx,jF as by,Aj as bz,Vv as c,t$ as d,At as e,Z$ as f,XF as g,Qc as h,GF as i,y as j,mg as k,rr as l,xD as m,KF as n,VF as o,qF as p,gj as q,iI as r,Sj as s,x5 as t,Wj as u,w5 as v,T5 as w,Vl as x,ka as y,tD as z};
//# sourceMappingURL=ui-PwPGecCM.js.map

//# debugId=3da7cb3e-2199-5e91-9c43-51027468e585
