From ce02dac404268fb93fa33dc185dc38722d8edf11 Mon Sep 17 00:00:00 2001 From: Dheeraj Turaga Date: Mon, 8 Sep 2025 18:20:39 -0500 Subject: [PATCH 1/3] Add confirmation dialog for exit maintenance action in Edge Worker Page - Modified MaintenanceExitButton component to show confirmation dialog before exiting maintenance mode - Added Yes/No confirmation similar to enter maintenance flow - Prevents accidental exit from maintenance mode for edge workers - Dialog asks "Are you sure you want to exit maintenance mode for worker {workerName}? --- .../edge3/plugins/www/dist/main.umd.cjs | 51 ++++++++++++++++++ .../src/components/MaintenanceExitButton.tsx | 52 +++++++++++++++---- providers/edge3/www-hash.txt | 4 ++ 3 files changed, 97 insertions(+), 10 deletions(-) diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/dist/main.umd.cjs b/providers/edge3/src/airflow/providers/edge3/plugins/www/dist/main.umd.cjs index d7daed5bdb8a7..f899f9265b343 100644 --- a/providers/edge3/src/airflow/providers/edge3/plugins/www/dist/main.umd.cjs +++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/dist/main.umd.cjs @@ -1,4 +1,8 @@ +<<<<<<< HEAD (function(w,ne){typeof exports=="object"&&typeof module<"u"?module.exports=ne(require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react","react-dom"],ne):(w=typeof globalThis<"u"?globalThis:w||self,w.AirflowPlugin=ne(w.React,w.ReactDOM))})(this,function(w,ne){"use strict";var LN=Object.defineProperty;var K0=w=>{throw TypeError(w)};var FN=(w,ne,be)=>ne in w?LN(w,ne,{enumerable:!0,configurable:!0,writable:!0,value:be}):w[ne]=be;var Ze=(w,ne,be)=>FN(w,typeof ne!="symbol"?ne+"":ne,be),Sc=(w,ne,be)=>ne.has(w)||K0("Cannot "+be);var y=(w,ne,be)=>(Sc(w,ne,"read from private field"),be?be.call(w):ne.get(w)),W=(w,ne,be)=>ne.has(w)?K0("Cannot add the same private member more than once"):ne instanceof WeakSet?ne.add(w):ne.set(w,be),M=(w,ne,be,O)=>(Sc(w,ne,"write to private field"),O?O.call(w,be):ne.set(w,be),be),Z=(w,ne,be)=>(Sc(w,ne,"access private method"),be);var Ks=(w,ne,be,O)=>({set _(Zs){M(w,ne,Zs,be)},get _(){return y(w,ne,O)}});var wm,Em,Om,Im,Pm,Rm,Tm,Nm,_m,Am,Vm,Lm,Fm,Dm,zm,Mm,$m,jm,Bm,Wm,Hm,Um,Gm,qm,Km,Xm,Ym,Qm,Jm,Zm,e0,t0,n0,r0,o0,i0,s0,a0,l0,c0,u0,d0,h0,f0,g0,p0,m0,v0,b0,y0,x0,C0,k0,S0,w0,E0,O0,I0,P0,R0,T0,N0,_0,hn,xc,A0,Xn,fn,zr,V0,Mr,gn,$r,L0,Yn,F0,Qn,jr,ft,Jn,Ae,Bo,Zn,Ct,Xt,D0,Qe,te,Wo,Be,er,Br,Ht,pn,Ho,Wr,Hr,tr,nr,mn,Ur,se,qo,wc,Ec,Oc,Ic,Pc,Rc,Tc,Q0,z0,Lt,We,rr,Ft,Sn,M0,Ut,kt,Uo,$0,vn,bn,Je,Gt,qt,Js,Nc,j0,Dt,B0,ve,yn,xn,Gr,qr,Cn,Kr,Xr,W0;function be(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const O=be(w);function Zs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _c={exports:{}},Ko={};/** +======= +(function(E,te){typeof exports=="object"&&typeof module<"u"?module.exports=te(require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react","react-dom"],te):(E=typeof globalThis<"u"?globalThis:E||self,E.AirflowPlugin=te(E.React,E.ReactDOM))})(this,function(E,te){"use strict";var YA=Object.defineProperty;var kb=E=>{throw TypeError(E)};var QA=(E,te,ve)=>te in E?YA(E,te,{enumerable:!0,configurable:!0,writable:!0,value:ve}):E[te]=ve;var Je=(E,te,ve)=>QA(E,typeof te!="symbol"?te+"":te,ve),pc=(E,te,ve)=>te.has(E)||kb("Cannot "+ve);var y=(E,te,ve)=>(pc(E,te,"read from private field"),ve?ve.call(E):te.get(E)),W=(E,te,ve)=>te.has(E)?kb("Cannot add the same private member more than once"):te instanceof WeakSet?te.add(E):te.set(E,ve),M=(E,te,ve,O)=>(pc(E,te,"write to private field"),O?O.call(E,ve):te.set(E,ve),ve),J=(E,te,ve)=>(pc(E,te,"access private method"),ve);var js=(E,te,ve,O)=>({set _(qs){M(E,te,qs,ve)},get _(){return y(E,te,O)}});var km,Om,Im,Pm,Rm,Tm,Nm,Am,_m,Vm,Fm,Lm,Dm,zm,Mm,$m,Bm,jm,Wm,Hm,Um,Gm,qm,Km,Xm,Ym,Qm,Jm,Zm,ev,tv,nv,rv,iv,ov,sv,av,lv,cv,uv,dv,hv,fv,gv,pv,mv,vv,bv,yv,xv,Cv,Sv,wv,Ev,kv,Ov,Iv,Pv,Rv,Tv,Nv,Av,_v,fn,hc,Vv,Yn,gn,Dr,Fv,zr,pn,Mr,Lv,Qn,Dv,Jn,$r,ft,Zn,Ae,Mi,er,Ct,Xt,zv,Ye,ee,$i,Be,tr,Br,Ht,mn,Bi,jr,Wr,nr,rr,vn,Hr,oe,Hi,mc,vc,bc,yc,xc,Cc,Sc,Pb,Mv,Ft,je,ir,Lt,En,$v,Ut,St,ji,Bv,bn,yn,Qe,Gt,qt,Gs,wc,jv,Dt,Wv,me,xn,Cn,Ur,Gr,Sn,qr,Kr,Hv,Uv,Gv,qv,Kv,Xv,Yv,Qv,Jv,Zv,eb,tb,nb,rb,ib,ob,sb,ab,lb,cb,ub,db,hb,fb,gb,pb,mb,vb,bb,yb,xb;function ve(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const O=ve(E);function qs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ec={exports:{}},Ui={};/** +>>>>>>> 3f3a37a363 (Add confirmation dialog for exit maintenance action in Edge Worker Page) * @license React * react-jsx-runtime.production.min.js * @@ -6,19 +10,28 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. +<<<<<<< HEAD */var Z0=w,ev=Symbol.for("react.element"),tv=Symbol.for("react.fragment"),nv=Object.prototype.hasOwnProperty,rv=Z0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ov={key:!0,ref:!0,__self:!0,__source:!0};function Ac(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)nv.call(t,r)&&!ov.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:ev,type:e,key:i,ref:s,props:o,_owner:rv.current}}Ko.Fragment=tv,Ko.jsx=Ac,Ko.jsxs=Ac,_c.exports=Ko;var v=_c.exports;function Vc(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var iv=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,sv=Vc(function(e){return iv.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function av(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ve(ir,--He):0,or--,xe===10&&(or=1,Jo--),xe}function et(){return xe=He2||to(xe)>3?"":" "}function xv(e,t){for(;--t&&et()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return eo(e,ei()+(t<6&&wt()==32&&et()==32))}function oa(e){for(;et();)switch(xe){case e:return He;case 34:case 39:e!==34&&e!==39&&oa(xe);break;case 40:e===41&&oa(e);break;case 92:et();break}return He}function Cv(e,t){for(;et()&&e+xe!==57;)if(e+xe===84&&wt()===47)break;return"/*"+eo(t,He-1)+"*"+Yo(e===47?e:et())}function kv(e){for(;!to(wt());)et();return eo(e,He)}function Sv(e){return $c(ni("",null,null,null,[""],e=Mc(e),0,[0],e))}function ni(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,h=0,p=0,f=0,g=1,m=1,b=1,x=0,k="",C=o,S=i,I=r,_=k;m;)switch(f=x,x=et()){case 40:if(f!=108&&Ve(_,d-1)==58){na(_+=ie(ti(x),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:_+=ti(x);break;case 9:case 10:case 13:case 32:_+=yv(f);break;case 92:_+=xv(ei()-1,7);continue;case 47:switch(wt()){case 42:case 47:Qo(wv(Cv(et(),ei()),t,n),l);break;default:_+="/"}break;case 123*g:a[c++]=St(_)*b;case 125*g:case 59:case 0:switch(x){case 0:case 125:m=0;case 59+u:b==-1&&(_=ie(_,/\f/g,"")),p>0&&St(_)-d&&Qo(p>32?Bc(_+";",r,n,d-1):Bc(ie(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(Qo(I=jc(_,t,n,c,u,o,a,k,C=[],S=[],d),i),x===123)if(u===0)ni(_,t,I,I,C,i,d,a,S);else switch(h===99&&Ve(_,3)===110?100:h){case 100:case 108:case 109:case 115:ni(e,I,I,r&&Qo(jc(e,I,I,0,0,o,a,k,o,C=[],d),S),o,S,d,a,r?C:S);break;default:ni(_,I,I,I,[""],S,0,a,S)}}c=u=p=0,g=b=1,k=_="",d=s;break;case 58:d=1+St(_),p=f;default:if(g<1){if(x==123)--g;else if(x==125&&g++==0&&bv()==125)continue}switch(_+=Yo(x),x*g){case 38:b=u>0?1:(_+="\f",-1);break;case 44:a[c++]=(St(_)-1)*b,b=1;break;case 64:wt()===45&&(_+=ti(et())),h=wt(),u=d=St(k=_+=kv(ei())),x++;break;case 45:f===45&&St(_)==2&&(g=0)}}return i}function jc(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,h=o===0?i:[""],p=ra(h),f=0,g=0,m=0;f0?h[b]+" "+x:ie(x,/&\f/g,h[b])))&&(l[m++]=k);return Zo(e,t,n,o===0?ea:a,l,c,u)}function wv(e,t,n){return Zo(e,t,n,Lc,Yo(vv()),Jr(e,2,-2),0)}function Bc(e,t,n,r){return Zo(e,t,n,ta,Jr(e,0,r),Jr(e,r+1,-1),r)}function sr(e,t){for(var n="",r=ra(e),o=0;o6)switch(Ve(e,t+1)){case 109:if(Ve(e,t+4)!==45)break;case 102:return ie(e,/(.+:)(.+)-([^]+)/,"$1"+oe+"$2-$3$1"+Xo+(Ve(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~na(e,"stretch")?Hc(ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ve(e,t+1)!==115)break;case 6444:switch(Ve(e,St(e)-3-(~na(e,"!important")&&10))){case 107:return ie(e,":",":"+oe)+e;case 101:return ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+oe+(Ve(e,14)===45?"inline-":"")+"box$3$1"+oe+"$2$3$1"+ze+"$2box$3")+e}break;case 5936:switch(Ve(e,t+11)){case 114:return oe+e+ze+ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return oe+e+ze+ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return oe+e+ze+ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return oe+e+ze+e+e}return e}var Av=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case ta:t.return=Hc(t.value,t.length);break;case Fc:return sr([Zr(t,{value:ie(t.value,"@","@"+oe)})],o);case ea:if(t.length)return mv(t.props,function(i){switch(pv(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return sr([Zr(t,{props:[ie(i,/:(read-\w+)/,":"+Xo+"$1")]})],o);case"::placeholder":return sr([Zr(t,{props:[ie(i,/:(plac\w+)/,":"+oe+"input-$1")]}),Zr(t,{props:[ie(i,/:(plac\w+)/,":"+Xo+"$1")]}),Zr(t,{props:[ie(i,/:(plac\w+)/,ze+"input-$1")]})],o)}return""})}},Vv=[Av],Lv=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var m=g.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||Vv,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var m=g.getAttribute("data-emotion").split(" "),b=1;b0?_e(sr,--We):0,or--,ye===10&&(or=1,Xi--),ye}function Ze(){return ye=We2||ei(ye)>3?"":" "}function Qb(e,t){for(;--t&&Ze()&&!(ye<48||ye>102||ye>57&&ye<65||ye>70&&ye<97););return Zr(e,Qi()+(t<6&&Et()==32&&Ze()==32))}function Js(e){for(;Ze();)switch(ye){case e:return We;case 34:case 39:e!==34&&e!==39&&Js(ye);break;case 40:e===41&&Js(e);break;case 92:Ze();break}return We}function Jb(e,t){for(;Ze()&&e+ye!==57;)if(e+ye===84&&Et()===47)break;return"/*"+Zr(t,We-1)+"*"+qi(e===47?e:Ze())}function Zb(e){for(;!ei(Et());)Ze();return Zr(e,We)}function ey(e){return Ac(Zi("",null,null,null,[""],e=Nc(e),0,[0],e))}function Zi(e,t,n,r,i,o,s,a,l){for(var c=0,u=0,d=s,h=0,m=0,f=0,g=1,p=1,b=1,x=0,S="",C=i,w=o,P=r,_=S;p;)switch(f=x,x=Ze()){case 40:if(f!=108&&_e(_,d-1)==58){Ys(_+=ie(Ji(x),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:_+=Ji(x);break;case 9:case 10:case 13:case 32:_+=Yb(f);break;case 92:_+=Qb(Qi()-1,7);continue;case 47:switch(Et()){case 42:case 47:Ki(ty(Jb(Ze(),Qi()),t,n),l);break;default:_+="/"}break;case 123*g:a[c++]=wt(_)*b;case 125*g:case 59:case 0:switch(x){case 0:case 125:p=0;case 59+u:b==-1&&(_=ie(_,/\f/g,"")),m>0&&wt(_)-d&&Ki(m>32?Vc(_+";",r,n,d-1):Vc(ie(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(Ki(P=_c(_,t,n,c,u,i,a,S,C=[],w=[],d),o),x===123)if(u===0)Zi(_,t,P,P,C,o,d,a,w);else switch(h===99&&_e(_,3)===110?100:h){case 100:case 108:case 109:case 115:Zi(e,P,P,r&&Ki(_c(e,P,P,0,0,i,a,S,i,C=[],d),w),i,w,d,a,r?C:w);break;default:Zi(_,P,P,P,[""],w,0,a,w)}}c=u=m=0,g=b=1,S=_="",d=s;break;case 58:d=1+wt(_),m=f;default:if(g<1){if(x==123)--g;else if(x==125&&g++==0&&Xb()==125)continue}switch(_+=qi(x),x*g){case 38:b=u>0?1:(_+="\f",-1);break;case 44:a[c++]=(wt(_)-1)*b,b=1;break;case 64:Et()===45&&(_+=Ji(Ze())),h=Et(),u=d=wt(S=_+=Zb(Qi())),x++;break;case 45:f===45&&wt(_)==2&&(g=0)}}return o}function _c(e,t,n,r,i,o,s,a,l,c,u){for(var d=i-1,h=i===0?o:[""],m=Qs(h),f=0,g=0,p=0;f0?h[b]+" "+x:ie(x,/&\f/g,h[b])))&&(l[p++]=S);return Yi(e,t,n,i===0?Ks:a,l,c,u)}function ty(e,t,n){return Yi(e,t,n,Ic,qi(Kb()),Qr(e,2,-2),0)}function Vc(e,t,n,r){return Yi(e,t,n,Xs,Qr(e,0,r),Qr(e,r+1,-1),r)}function ar(e,t){for(var n="",r=Qs(e),i=0;i6)switch(_e(e,t+1)){case 109:if(_e(e,t+4)!==45)break;case 102:return ie(e,/(.+:)(.+)-([^]+)/,"$1"+re+"$2-$3$1"+Gi+(_e(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ys(e,"stretch")?Lc(ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(_e(e,t+1)!==115)break;case 6444:switch(_e(e,wt(e)-3-(~Ys(e,"!important")&&10))){case 107:return ie(e,":",":"+re)+e;case 101:return ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+re+(_e(e,14)===45?"inline-":"")+"box$3$1"+re+"$2$3$1"+De+"$2box$3")+e}break;case 5936:switch(_e(e,t+11)){case 114:return re+e+De+ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return re+e+De+ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return re+e+De+ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return re+e+De+e+e}return e}var uy=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Xs:t.return=Lc(t.value,t.length);break;case Pc:return ar([Jr(t,{value:ie(t.value,"@","@"+re)})],i);case Ks:if(t.length)return qb(t.props,function(o){switch(Gb(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ar([Jr(t,{props:[ie(o,/:(read-\w+)/,":"+Gi+"$1")]})],i);case"::placeholder":return ar([Jr(t,{props:[ie(o,/:(plac\w+)/,":"+re+"input-$1")]}),Jr(t,{props:[ie(o,/:(plac\w+)/,":"+Gi+"$1")]}),Jr(t,{props:[ie(o,/:(plac\w+)/,De+"input-$1")]})],i)}return""})}},dy=[uy],hy=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var p=g.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||dy,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var p=g.getAttribute("data-emotion").split(" "),b=1;b>>>>>> 3f3a37a363 (Add confirmation dialog for exit maintenance action in Edge Worker Page) * 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. +<<<<<<< HEAD */var Oe=typeof Symbol=="function"&&Symbol.for,ia=Oe?Symbol.for("react.element"):60103,sa=Oe?Symbol.for("react.portal"):60106,ri=Oe?Symbol.for("react.fragment"):60107,oi=Oe?Symbol.for("react.strict_mode"):60108,ii=Oe?Symbol.for("react.profiler"):60114,si=Oe?Symbol.for("react.provider"):60109,ai=Oe?Symbol.for("react.context"):60110,aa=Oe?Symbol.for("react.async_mode"):60111,li=Oe?Symbol.for("react.concurrent_mode"):60111,ci=Oe?Symbol.for("react.forward_ref"):60112,ui=Oe?Symbol.for("react.suspense"):60113,Fv=Oe?Symbol.for("react.suspense_list"):60120,di=Oe?Symbol.for("react.memo"):60115,hi=Oe?Symbol.for("react.lazy"):60116,Dv=Oe?Symbol.for("react.block"):60121,zv=Oe?Symbol.for("react.fundamental"):60117,Mv=Oe?Symbol.for("react.responder"):60118,$v=Oe?Symbol.for("react.scope"):60119;function tt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ia:switch(e=e.type,e){case aa:case li:case ri:case ii:case oi:case ui:return e;default:switch(e=e&&e.$$typeof,e){case ai:case ci:case hi:case di:case si:return e;default:return t}}case sa:return t}}}function Gc(e){return tt(e)===li}ae.AsyncMode=aa,ae.ConcurrentMode=li,ae.ContextConsumer=ai,ae.ContextProvider=si,ae.Element=ia,ae.ForwardRef=ci,ae.Fragment=ri,ae.Lazy=hi,ae.Memo=di,ae.Portal=sa,ae.Profiler=ii,ae.StrictMode=oi,ae.Suspense=ui,ae.isAsyncMode=function(e){return Gc(e)||tt(e)===aa},ae.isConcurrentMode=Gc,ae.isContextConsumer=function(e){return tt(e)===ai},ae.isContextProvider=function(e){return tt(e)===si},ae.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ia},ae.isForwardRef=function(e){return tt(e)===ci},ae.isFragment=function(e){return tt(e)===ri},ae.isLazy=function(e){return tt(e)===hi},ae.isMemo=function(e){return tt(e)===di},ae.isPortal=function(e){return tt(e)===sa},ae.isProfiler=function(e){return tt(e)===ii},ae.isStrictMode=function(e){return tt(e)===oi},ae.isSuspense=function(e){return tt(e)===ui},ae.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ri||e===li||e===ii||e===oi||e===ui||e===Fv||typeof e=="object"&&e!==null&&(e.$$typeof===hi||e.$$typeof===di||e.$$typeof===si||e.$$typeof===ai||e.$$typeof===ci||e.$$typeof===zv||e.$$typeof===Mv||e.$$typeof===$v||e.$$typeof===Dv)},ae.typeOf=tt,Uc.exports=ae;var jv=Uc.exports,qc=jv,Bv={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Wv={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Kc={};Kc[qc.ForwardRef]=Bv,Kc[qc.Memo]=Wv;var Hv=!0;function Xc(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var la=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Hv===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},ca=function(t,n,r){la(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function Uv(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Gv={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},qv=/[A-Z]|^ms/g,Kv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Yc=function(t){return t.charCodeAt(1)===45},Qc=function(t){return t!=null&&typeof t!="boolean"},ua=Vc(function(e){return Yc(e)?e:e.replace(qv,"-$&").toLowerCase()}),Jc=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Kv,function(r,o,i){return Et={name:o,styles:i,next:Et},o})}return Gv[t]!==1&&!Yc(t)&&typeof n=="number"&&n!==0?n+"px":n};function no(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Et={name:o.name,styles:o.styles,next:Et},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)Et={name:s.name,styles:s.styles,next:Et},s=s.next;var a=i.styles+";";return a}return Xv(e,t,n)}case"function":{if(e!==void 0){var l=Et,c=n(e);return Et=l,no(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function Xv(e,t,n){var r="";if(Array.isArray(n))for(var o=0;or==null?void 0:r(...n))}}const nb=(...e)=>e.map(t=>{var n;return(n=t==null?void 0:t.trim)==null?void 0:n.call(t)}).filter(Boolean).join(" "),rb=/^on[A-Z]/;function ro(...e){let t={};for(let n of e){for(let r in t){if(rb.test(r)&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=tb(t[r],n[r]);continue}if(r==="className"||r==="class"){t[r]=nb(t[r],n[r]);continue}if(r==="style"){t[r]=Object.assign({},t[r]??{},n[r]??{});continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}function ob(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 ib(...e){return t=>{e.forEach(n=>{ob(n,t)})}}function oo(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}const at=(...e)=>e.filter(Boolean).map(t=>t.trim()).join(" ");function sb(e){return e.default||e}const Ue=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),Ot=e=>typeof e=="string",ma=e=>typeof e=="function";function ab(e){var n;const t=O.version;return!Ot(t)||t.startsWith("18.")?e==null?void 0:e.ref:(n=e==null?void 0:e.props)==null?void 0:n.ref}const su=(...e)=>{const t=e.reduce((n,r)=>(r!=null&&r.forEach(o=>n.add(o)),n),new Set([]));return Array.from(t)};function lb(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function ar(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=w.createContext(s);a.displayName=t;function l(){var u;const c=w.useContext(a);if(!c&&n){const d=new Error(i??lb(r,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[a.Provider,l,a]}const[cb,fi]=ar({name:"ChakraContext",strict:!0,providerName:""});function ub(e){const{value:t,children:n}=e;return v.jsxs(cb,{value:t,children:[!t._config.disableLayers&&v.jsx(iu,{styles:t.layers.atRule}),v.jsx(iu,{styles:t._global}),n]})}const db=(e,t)=>{const n={},r={},o=Object.keys(e);for(const i of o)t(i)?r[i]=e[i]:n[i]=e[i];return[r,n]},lr=(e,t)=>{const n=ma(t)?t:r=>t.includes(r);return db(e,n)},hb=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function fb(e){return typeof e=="string"&&hb.has(e)}function gb(e,t,n){const{css:r,isValidProperty:o}=fi(),{children:i,...s}=e,a=w.useMemo(()=>{const[h,p]=lr(s,x=>n(x,t.variantKeys)),[f,g]=lr(p,t.variantKeys),[m,b]=lr(g,o);return{forwardedProps:h,variantProps:f,styleProps:m,elementProps:b}},[t.variantKeys,n,s,o]),{css:l,...c}=a.styleProps,u=w.useMemo(()=>{const h={...a.variantProps};return t.variantKeys.includes("colorPalette")||(h.colorPalette=s.colorPalette),t.variantKeys.includes("orientation")||(h.orientation=s.orientation),t(h)},[t,a.variantProps,s.colorPalette,s.orientation]);return{styles:w.useMemo(()=>r(u,...pb(l),c),[r,u,l,c]),props:{...a.forwardedProps,...a.elementProps,children:i}}}const pb=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),mb=sb(sv),vb=e=>e!=="theme",bb=(e,t,n)=>{let r;if(t){const o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?i=>e.__emotion_forwardProp(i)&&o(i):o}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r};let yb=typeof document<"u";const au=({cache:e,serialized:t,isStringTag:n})=>{la(e,t,n);const r=tu(()=>ca(e,t,n));if(!yb&&r!==void 0){let o=t.name,i=t.next;for(;i!==void 0;)o=at(o,i.name),i=i.next;return v.jsx("style",{"data-emotion":at(e.key,o),dangerouslySetInnerHTML:{__html:r},nonce:e.sheet.nonce})}return null},lu={path:["d"],text:["x","y"],circle:["cx","cy","r"],rect:["width","height","x","y","rx","ry"],ellipse:["cx","cy","rx","ry"],g:["transform"],stop:["offset","stopOpacity"]},xb=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),va=((e,t={},n={})=>{if(xb(lu,e)){n.forwardProps||(n.forwardProps=[]);const c=lu[e];n.forwardProps=su([...n.forwardProps,...c])}const r=e.__emotion_real===e,o=r&&e.__emotion_base||e;let i,s;n!==void 0&&(i=n.label,s=n.target);let a=[];const l=ha((c,u,d)=>{var z;const{cva:h,isValidProperty:p}=fi(),f=t.__cva__?t:h(t),g=Cb(e.__emotion_cva,f),m=V=>(B,K)=>V.includes(B)?!0:!(K!=null&&K.includes(B))&&!p(B);!n.shouldForwardProp&&n.forwardProps&&(n.shouldForwardProp=m(n.forwardProps));const b=(V,B)=>{const K=typeof e=="string"&&e.charCodeAt(0)>96?mb:vb,$=!(B!=null&&B.includes(V))&&!p(V);return K(V)&&$},x=bb(e,n,r)||b,k=O.useMemo(()=>Object.assign({},n.defaultProps,oo(c)),[c]),{props:C,styles:S}=gb(k,g,x);let I="",_=[S],P=C;if(C.theme==null){P={};for(let V in C)P[V]=C[V];P.theme=O.useContext(fa)}typeof C.className=="string"?I=Xc(u.registered,_,C.className):C.className!=null&&(I=at(I,C.className));const T=da(a.concat(_),u.registered,P);T.styles&&(I=at(I,`${u.key}-${T.name}`)),s!==void 0&&(I=at(I,s));const N=!x("as");let j=N&&C.as||o,R={};for(let V in C)if(!(N&&V==="as")){if(fb(V)){const B=V.replace("html","").toLowerCase();R[B]=C[V];continue}x(V)&&(R[V]=C[V])}let L=I.trim();L?R.className=L:Reflect.deleteProperty(R,"className"),R.ref=d;const Y=n.forwardAsChild||((z=n.forwardProps)==null?void 0:z.includes("asChild"));if(C.asChild&&!Y){const V=O.isValidElement(C.children)?O.Children.only(C.children):O.Children.toArray(C.children).find(O.isValidElement);if(!V)throw new Error("[chakra-ui > factory] No valid child found");j=V.type,R.children=null,Reflect.deleteProperty(R,"asChild"),R=ro(R,V.props),R.ref=ib(d,ab(V))}return R.as&&Y?(R.as=void 0,v.jsxs(O.Fragment,{children:[v.jsx(au,{cache:u,serialized:T,isStringTag:typeof j=="string"}),v.jsx(j,{asChild:!0,...R,children:v.jsx(C.as,{children:R.children})})]})):v.jsxs(O.Fragment,{children:[v.jsx(au,{cache:u,serialized:T,isStringTag:typeof j=="string"}),v.jsx(j,{...R})]})});return l.displayName=i!==void 0?i:`chakra(${typeof o=="string"?o:o.displayName||o.name||"Component"})`,l.__emotion_real=l,l.__emotion_base=o,l.__emotion_forwardProp=n.shouldForwardProp,l.__emotion_cva=t,Object.defineProperty(l,"toString",{value(){return`.${s}`}}),l}).bind(),ba=new Map,Ie=new Proxy(va,{apply(e,t,n){return va(...n)},get(e,t){return ba.has(t)||ba.set(t,va(t)),ba.get(t)}}),Cb=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),zt=Ie("div");zt.displayName="Box";const kb=Object.freeze({}),Sb=Object.freeze({});function wb(e){const{key:t,recipe:n}=e,r=fi();return w.useMemo(()=>{const o=n||(t!=null?r.getRecipe(t):{});return r.cva(structuredClone(o))},[t,n,r])}const Eb=e=>e.charAt(0).toUpperCase()+e.slice(1);function cr(e){const{key:t,recipe:n}=e,r=Eb(t||n.className||"Component"),[o,i]=ar({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`});function s(c){const{unstyled:u,...d}=c,h=wb({key:t,recipe:d.recipe||n}),[p,f]=w.useMemo(()=>h.splitVariantProps(d),[h,d]);return{styles:u?kb:h(p),className:h.className,props:f}}const a=(c,u)=>{const d=Ie(c,{},u),h=w.forwardRef((p,f)=>{const g=i(),m=w.useMemo(()=>ro(g,p),[p,g]),{styles:b,className:x,props:k}=s(m);return v.jsx(d,{...k,ref:f,css:[b,m.css],className:at(x,m.className)})});return h.displayName=c.displayName||c.name,h};function l(){return o}return{withContext:a,PropsProvider:o,withPropsProvider:l,usePropsContext:i,useRecipeResult:s}}function gi(e){return e==null?[]:Array.isArray(e)?e:[e]}var io=e=>e[0],ya=e=>e[e.length-1],Ob=(e,t)=>e.indexOf(t)!==-1,wn=(e,...t)=>e.concat(t),En=(e,...t)=>e.filter(n=>!t.includes(n)),ur=e=>Array.from(new Set(e)),xa=(e,t)=>{const n=new Set(t);return e.filter(r=>!n.has(r))},dr=(e,t)=>Ob(e,t)?En(e,t):wn(e,t);function cu(e,t,n={}){const{step:r=1,loop:o=!0}=n,i=t+r,s=e.length,a=s-1;return t===-1?r>0?0:a:i<0?o?a:0:i>=s?o?0:t>s?s:t:i}function Ib(e,t,n={}){return e[cu(e,t,n)]}function Pb(e,t,n={}){const{step:r=1,loop:o=!0}=n;return cu(e,t,{step:-r,loop:o})}function Rb(e,t,n={}){return e[Pb(e,t,n)]}function uu(e,t){return e.reduce(([n,r],o)=>(t(o)?n.push(o):r.push(o),[n,r]),[[],[]])}var du=e=>(e==null?void 0:e.constructor.name)==="Array",Tb=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof(e==null?void 0:e.isEqual)=="function"&&typeof(t==null?void 0:t.isEqual)=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(du(e)&&du(t))return Tb(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(t??Object.create(null)),r=n.length;for(let o=0;oArray.isArray(e),Nb=e=>e===!0||e===!1,hu=e=>e!=null&&typeof e=="object",On=e=>hu(e)&&!so(e),pi=e=>typeof e=="string",In=e=>typeof e=="function",_b=e=>e==null,Yt=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Ab=e=>Object.prototype.toString.call(e),fu=Function.prototype.toString,Vb=fu.call(Object),Lb=e=>{if(!hu(e)||Ab(e)!="[object Object]"||zb(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const n=Yt(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&fu.call(n)==Vb},Fb=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,Db=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,zb=e=>Fb(e)||Db(e),mi=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,Mb=e=>e(),$b=()=>{},vi=(...e)=>(...t)=>{e.forEach(function(n){n==null||n(...t)})},jb=(()=>{let e=0;return()=>(e++,e.toString(36))})();function Mt(e,t,...n){var o;if(e in t){const i=t[e];return In(i)?i(...n):i}const r=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw(o=Error.captureStackTrace)==null||o.call(Error,r,Mt),r}var gu=(e,t)=>{var n;try{return e()}catch(r){return r instanceof Error&&((n=Error.captureStackTrace)==null||n.call(Error,r,gu)),t==null?void 0:t()}},{floor:pu,abs:mu,round:bi,min:Bb,max:Wb,pow:Hb,sign:Ub}=Math,Ca=e=>Number.isNaN(e),Qt=e=>Ca(e)?0:e,vu=(e,t)=>(e%t+t)%t,Gb=(e,t)=>(e%t+t)%t,qb=(e,t)=>Qt(e)>=t,Kb=(e,t)=>Qt(e)<=t,Xb=(e,t,n)=>{const r=Qt(e),o=t==null||r>=t,i=n==null||r<=n;return o&&i},Yb=(e,t,n)=>bi((Qt(e)-t)/n)*n+t,Ge=(e,t,n)=>Bb(Wb(Qt(e),t),n),Qb=(e,t,n)=>(Qt(e)-t)/(n-t),Jb=(e,t,n,r)=>Ge(Yb(e*(n-t)+t,t,r),t,n),bu=(e,t)=>{let n=e,r=t.toString(),o=r.indexOf("."),i=o>=0?r.length-o:0;if(i>0){let s=Hb(10,i);n=bi(n*s)/s}return n},ka=(e,t)=>typeof t=="number"?pu(e*t+.5)/t:bi(e),yu=(e,t,n,r)=>{const o=t!=null?Number(t):0,i=Number(n),s=(e-o)%r;let a=mu(s)*2>=r?e+Ub(s)*(r-mu(s)):e-s;if(a=bu(a,r),!Ca(o)&&ai){const l=pu((i-o)/r),c=o+l*r;a=l<=0||c{const r=Math.pow(n,t);return bi(e*r)/r},xu=e=>{if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n},Cu=(e,t,n)=>{let r=t==="+"?e+n:e-n;if(e%1!==0||n%1!==0){const o=10**Math.max(xu(e),xu(n));e=Math.round(e*o),n=Math.round(n*o),r=t==="+"?e+n:e-n,r/=o}return r},Zb=(e,t)=>Cu(Qt(e),"+",t),ey=(e,t)=>Cu(Qt(e),"-",t);function yi(e){if(!Lb(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),n={};for(const r of t){const o=e[r];o!==void 0&&(n[r]=yi(o))}return n}function ty(e,t=Object.is){let n={...e};const r=new Set,o=u=>(r.add(u),()=>r.delete(u)),i=()=>{r.forEach(u=>u())};return{subscribe:o,get:u=>n[u],set:(u,d)=>{t(n[u],d)||(n[u]=d,i())},update:u=>{let d=!1;for(const h in u){const p=u[h];p!==void 0&&!t(n[h],p)&&(n[h]=p,d=!0)}d&&i()},snapshot:()=>({...n})}}function ao(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function ku(e,t){if(e==null)throw new Error(t())}function ny(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function hr(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=w.createContext(s);a.displayName=t;function l(){var u;const c=w.useContext(a);if(!c&&n){const d=new Error(i??ny(r,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[a.Provider,l,a]}const[$N,Su]=hr({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});function ry(e){if(!e)return;const t=e.selectionStart??0,n=e.selectionEnd??0;Math.abs(n-t)===0&&t===0&&e.setSelectionRange(e.value.length,e.value.length)}var wu=e=>Math.max(0,Math.min(1,e)),oy=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]),Eu=()=>{},xi=e=>typeof e=="object"&&e!==null,iy=2147483647,sy=1,ay=9,ly=11,$e=e=>xi(e)&&e.nodeType===sy&&typeof e.nodeName=="string",Sa=e=>xi(e)&&e.nodeType===ay,cy=e=>xi(e)&&e===e.window,Ou=e=>$e(e)?e.localName||"":"#document";function uy(e){return["html","body","#document"].includes(Ou(e))}var dy=e=>xi(e)&&e.nodeType!==void 0,fr=e=>dy(e)&&e.nodeType===ly&&"host"in e,hy=e=>$e(e)&&e.localName==="input",fy=e=>$e(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,gy=/(textarea|select)/;function Iu(e){if(e==null||!$e(e))return!1;try{return hy(e)&&e.selectionStart!=null||gy.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Pn(e,t){var r;if(!e||!t||!$e(e)||!$e(t))return!1;const n=(r=t.getRootNode)==null?void 0:r.call(t);if(e===t||e.contains(t))return!0;if(n&&fr(n)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function qe(e){return Sa(e)?e:cy(e)?e.document:(e==null?void 0:e.ownerDocument)??document}function py(e){return qe(e).documentElement}function Pe(e){var t;return fr(e)?Pe(e.host):Sa(e)?e.defaultView??window:$e(e)?((t=e.ownerDocument)==null?void 0:t.defaultView)??window:window}function Pu(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function my(e){if(Ou(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fr(e)&&e.host||py(e);return fr(t)?t.host:t}var wa=new WeakMap;function Ci(e){return wa.has(e)||wa.set(e,Pe(e).getComputedStyle(e)),wa.get(e)}var ki=()=>typeof document<"u";function vy(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}function by(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}var Ea=e=>ki()&&e.test(vy()),Ru=e=>ki()&&e.test(by()),yy=e=>ki()&&e.test(navigator.vendor),Tu=()=>ki()&&!!navigator.maxTouchPoints,xy=()=>Ea(/^iPhone/i),Cy=()=>Ea(/^iPad/i)||wi()&&navigator.maxTouchPoints>1,Si=()=>xy()||Cy(),ky=()=>wi()||Si(),wi=()=>Ea(/^Mac/i),Nu=()=>ky()&&yy(/apple/i),Sy=()=>Ru(/Firefox/i),wy=()=>Ru(/Android/i);function Ey(e){var t,n,r;return((t=e.composedPath)==null?void 0:t.call(e))??((r=(n=e.nativeEvent)==null?void 0:n.composedPath)==null?void 0:r.call(n))}function nt(e){const t=Ey(e);return(t==null?void 0:t[0])??e.target}function Oy(e){return Ty(e).isComposing||e.keyCode===229}function Iy(e){return e.pointerType===""&&e.isTrusted?!0:wy()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var Py=e=>e.button===2||wi()&&e.ctrlKey&&e.button===0,Ry=e=>"touches"in e&&e.touches.length>0;function Ty(e){return e.nativeEvent??e}function Ny(e,t="client"){const n=Ry(e)?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var fe=(e,t,n,r)=>{const o=typeof e=="function"?e():e;return o==null||o.addEventListener(t,n,r),()=>{o==null||o.removeEventListener(t,n,r)}};function _y(e,t){const{type:n="HTMLInputElement",property:r="value"}=t,o=Pe(e)[n].prototype;return Object.getOwnPropertyDescriptor(o,r)??{}}function Ay(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function Ei(e,t,n="value"){var o;if(!e)return;const r=Ay(e);r&&((o=_y(e,{type:r,property:n}).set)==null||o.call(e,t)),e.setAttribute(n,t)}function Vy(e,t){const{value:n,bubbles:r=!0}=t;if(!e)return;const o=Pe(e);e instanceof o.HTMLInputElement&&(Ei(e,`${n}`),e.dispatchEvent(new o.Event("input",{bubbles:r})))}function Ly(e){return Fy(e)?e.form:e.closest("form")}function Fy(e){return e.matches("textarea, input, select, button")}function Dy(e,t){if(!e)return;const n=Ly(e),r=o=>{o.defaultPrevented||t()};return n==null||n.addEventListener("reset",r,{passive:!0}),()=>n==null?void 0:n.removeEventListener("reset",r)}function zy(e,t){const n=e==null?void 0:e.closest("fieldset");if(!n)return;t(n.disabled);const r=Pe(n),o=new r.MutationObserver(()=>t(n.disabled));return o.observe(n,{attributes:!0,attributeFilter:["disabled"]}),()=>o.disconnect()}function Oa(e,t){if(!e)return;const{onFieldsetDisabledChange:n,onFormReset:r}=t,o=[Dy(e,r),zy(e,n)];return()=>o.forEach(i=>i==null?void 0:i())}var _u=e=>$e(e)&&e.tagName==="IFRAME",My=e=>!Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10)),$y=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,Ia="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",Au=(e,t=!1)=>{if(!e)return[];const n=Array.from(e.querySelectorAll(Ia));(t==!0||t=="if-empty"&&n.length===0)&&$e(e)&&Jt(e)&&n.unshift(e);const o=n.filter(Jt);return o.forEach((i,s)=>{if(_u(i)&&i.contentDocument){const a=i.contentDocument.body;o.splice(s,1,...Au(a))}}),o};function Jt(e){return!e||e.closest("[inert]")?!1:e.matches(Ia)&&fy(e)}function Pa(e,t){if(!e)return[];const r=Array.from(e.querySelectorAll(Ia)).filter(Rn);return r.forEach((o,i)=>{if(_u(o)&&o.contentDocument){const s=o.contentDocument.body,a=Pa(s);r.splice(i,1,...a)}}),r.length,r}function Rn(e){return e!=null&&e.tabIndex>0?!0:Jt(e)&&!$y(e)}function lo(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||Iu(e))&&!My(e)?0:e.tabIndex}function Ra(e){const{root:t,getInitialEl:n,filter:r,enabled:o=!0}=e;if(!o)return;let i=null;if(i||(i=typeof n=="function"?n():n),i||(i=t==null?void 0:t.querySelector("[data-autofocus],[autofocus]")),!i){const s=Pa(t);i=r?s.filter(r)[0]:s[0]}return i||t||void 0}function Ta(e){const t=new Set;function n(r){const o=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(o))}return n(()=>n(e)),function(){t.forEach(o=>o())}}function ee(e){let t;const n=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(n),t==null||t()}}function jy(e,t,n){const r=ee(()=>{e.removeEventListener(t,o,!0),n()}),o=()=>{r(),n()};return e.addEventListener(t,o,{once:!0,capture:!0}),r}function By(e,t){if(!e)return;const{attributes:n,callback:r}=t,o=e.ownerDocument.defaultView||window,i=new o.MutationObserver(s=>{for(const a of s)a.type==="attributes"&&a.attributeName&&n.includes(a.attributeName)&&r(a)});return i.observe(e,{attributes:!0,attributeFilter:n}),()=>i.disconnect()}function Oi(e,t){const{defer:n}=t,r=n?ee:i=>i(),o=[];return o.push(r(()=>{const i=typeof e=="function"?e():e;o.push(By(i,t))})),()=>{o.forEach(i=>i==null?void 0:i())}}function Vu(e){const t=()=>{const n=Pe(e);e.dispatchEvent(new n.MouseEvent("click"))};Sy()?jy(e,"keyup",t):queueMicrotask(t)}function Ii(e){const t=my(e);return uy(t)?qe(t).body:$e(t)&&Na(t)?t:Ii(t)}function Lu(e,t=[]){const n=Ii(e),r=n===e.ownerDocument.body,o=Pe(n);return r?t.concat(o,o.visualViewport||[],Na(n)?n:[]):t.concat(n,Lu(n,[]))}var Wy=/auto|scroll|overlay|hidden|clip/,Hy=new Set(["inline","contents"]);function Na(e){const t=Pe(e),{overflow:n,overflowX:r,overflowY:o,display:i}=t.getComputedStyle(e);return Wy.test(n+o+r)&&!Hy.has(i)}function Uy(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Pi(e,t){const{rootEl:n,...r}=t||{};!e||!n||!Na(n)||!Uy(n)||e.scrollIntoView(r)}function Fu(e,t){const{left:n,top:r,width:o,height:i}=t.getBoundingClientRect(),s={x:e.x-n,y:e.y-r},a={x:wu(s.x/o),y:wu(s.y/i)};function l(c={}){const{dir:u="ltr",orientation:d="horizontal",inverted:h}=c,p=typeof h=="object"?h.x:h,f=typeof h=="object"?h.y:h;return d==="horizontal"?u==="rtl"||p?1-a.x:a.x:f?1-a.y:a.y}return{offset:s,percent:a,getPercentValue:l}}function Gy(e,t){const n=e.body,r="pointerLockElement"in e||"mozPointerLockElement"in e,o=()=>!!e.pointerLockElement;function i(){}function s(l){o(),console.error("PointerLock error occurred:",l),e.exitPointerLock()}if(!r)return;try{n.requestPointerLock()}catch{}const a=[fe(e,"pointerlockchange",i,!1),fe(e,"pointerlockerror",s,!1)];return()=>{a.forEach(l=>l()),e.exitPointerLock()}}var gr="default",_a="",Ri=new WeakMap;function qy(e={}){const{target:t,doc:n}=e,r=n??document,o=r.documentElement;return Si()?(gr==="default"&&(_a=o.style.webkitUserSelect,o.style.webkitUserSelect="none"),gr="disabled"):t&&(Ri.set(t,t.style.userSelect),t.style.userSelect="none"),()=>Ky({target:t,doc:r})}function Ky(e={}){const{target:t,doc:n}=e,o=(n??document).documentElement;if(Si()){if(gr!=="disabled")return;gr="restoring",setTimeout(()=>{Ta(()=>{gr==="restoring"&&(o.style.webkitUserSelect==="none"&&(o.style.webkitUserSelect=_a||""),_a="",gr="default")})},300)}else if(t&&Ri.has(t)){const i=Ri.get(t);t.style.userSelect==="none"&&(t.style.userSelect=i??""),t.getAttribute("style")===""&&t.removeAttribute("style"),Ri.delete(t)}}function Du(e={}){const{defer:t,target:n,...r}=e,o=t?ee:s=>s(),i=[];return i.push(o(()=>{const s=typeof n=="function"?n():n;i.push(qy({...r,target:s}))})),()=>{i.forEach(s=>s==null?void 0:s())}}function Xy(e,t){const{onPointerMove:n,onPointerUp:r}=t,i=[fe(e,"pointermove",s=>{const a=Ny(s),l=Math.sqrt(a.x**2+a.y**2),c=s.pointerType==="touch"?10:5;if(!(l{i.forEach(s=>s())}}function Ti(e,t){return Array.from((e==null?void 0:e.querySelectorAll(t))??[])}function Yy(e,t){return(e==null?void 0:e.querySelector(t))??null}var Aa=e=>e.id;function Qy(e,t,n=Aa){return e.find(r=>n(r)===t)}function Va(e,t,n=Aa){const r=Qy(e,t,n);return r?e.indexOf(r):-1}function Jy(e,t,n=!0){let r=Va(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function Zy(e,t,n=!0){let r=Va(e,t);return r===-1?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}var ex=e=>e.split("").map(t=>{const n=t.charCodeAt(0);return n>0&&n<128?t:n>=128&&n<=255?`/x${n.toString(16)}`.replace("/","\\"):""}).join("").trim(),tx=e=>{var t;return ex(((t=e.dataset)==null?void 0:t.valuetext)??e.textContent??"")},nx=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function rx(e,t,n,r=Aa){const o=n?Va(e,n,r):-1;let i=n?oy(e,o):e;return t.length===1&&(i=i.filter(a=>r(a)!==n)),i.find(a=>nx(tx(a),t))}function Ni(e,t){if(!e)return Eu;const n=Object.keys(t).reduce((r,o)=>(r[o]=e.style.getPropertyValue(o),r),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute("style")}}function ox(e,t,n){if(!e)return Eu;const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute("style")}}function ix(e,t){const{state:n,activeId:r,key:o,timeout:i=350,itemToId:s}=t,a=n.keysSoFar+o,c=a.length>1&&Array.from(a).every(f=>f===a[0])?a[0]:a;let u=e.slice();const d=rx(u,c,r,s);function h(){clearTimeout(n.timer),n.timer=-1}function p(f){n.keysSoFar=f,h(),f!==""&&(n.timer=+setTimeout(()=>{p(""),h()},i))}return p(a),d}var co=Object.assign(ix,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:sx});function sx(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}function ax(e,t,n){const{signal:r}=t;return[new Promise((s,a)=>{const l=setTimeout(()=>{a(new Error(`Timeout of ${n}ms exceeded`))},n);r.addEventListener("abort",()=>{clearTimeout(l),a(new Error("Promise aborted"))}),e.then(c=>{r.aborted||(clearTimeout(l),s(c))}).catch(c=>{r.aborted||(clearTimeout(l),a(c))})}),()=>t.abort()]}function lx(e,t){const{timeout:n,rootNode:r}=t,o=Pe(r),i=qe(r),s=new o.AbortController;return ax(new Promise(a=>{const l=e();if(l){a(l);return}const c=new o.MutationObserver(()=>{const u=e();u&&u.isConnected&&(c.disconnect(),a(u))});c.observe(i.body,{childList:!0,subtree:!0})}),s,n)}var cx=(...e)=>e.map(t=>{var n;return(n=t==null?void 0:t.trim)==null?void 0:n.call(t)}).filter(Boolean).join(" "),ux=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,zu=e=>{const t={};let n;for(;n=ux.exec(e);)t[n[1]]=n[2];return t},dx=(e,t)=>{if(pi(e)){if(pi(t))return`${e};${t}`;e=zu(e)}else pi(t)&&(t=zu(t));return Object.assign({},e??{},t??{})};function pt(...e){let t={};for(let n of e){for(let r in t){if(r.startsWith("on")&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=vi(n[r],t[r]);continue}if(r==="className"||r==="class"){t[r]=cx(t[r],n[r]);continue}if(r==="style"){t[r]=dx(t[r],n[r]);continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}function Mu(e,t,n){let r=[],o;return i=>{const s=e(i);return(s.length!==r.length||s.some((l,c)=>!gt(r[c],l)))&&(r=s,o=t(...s)),o}}function Zt(){return{and:(...e)=>function(n){return e.every(r=>n.guard(r))},or:(...e)=>function(n){return e.some(r=>n.guard(r))},not:e=>function(n){return!n.guard(e)}}}function jN(e){return e}function $u(){return{guards:Zt(),createMachine:e=>e,choose:e=>function({choose:n}){var r;return(r=n(e))==null?void 0:r.actions}}}var pr=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(pr||{}),La="__init__";function hx(e){const t=()=>{var a;return((a=e.getRootNode)==null?void 0:a.call(e))??document},n=()=>qe(t()),r=()=>n().defaultView??window,o=()=>Pu(t());return{...e,getRootNode:t,getDoc:n,getWin:r,getActiveElement:o,isActiveElement:a=>a===o(),getById:a=>t().getElementById(a)}}function _i(...e){return t=>{const n=[];for(const r of e)if(typeof r=="function"){const o=r(t);typeof o=="function"&&n.push(o)}else r&&(r.current=t);if(n.length)return()=>{for(const r of n)r()}}}function fx(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Fa=e=>{const t=w.memo(w.forwardRef((n,r)=>{const{asChild:o,children:i,...s}=n;if(!o)return w.createElement(e,{...s,ref:r},i);if(!w.isValidElement(i))return null;const a=w.Children.only(i),l=fx(a);return w.cloneElement(a,{...pt(s,a.props),ref:r?_i(r,l):l})}));return t.displayName=e.displayName||e.name,t},en=(()=>{const e=new Map;return new Proxy(Fa,{apply(t,n,r){return Fa(r[0])},get(t,n){const r=n;return e.has(r)||e.set(r,Fa(r)),e.get(r)}})})(),[WN,gx]=hr({name:"LocaleContext",hookName:"useLocaleContext",providerName:"",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),ju=()=>(e,t)=>t.reduce((n,r)=>{const[o,i]=n,s=r;return i[s]!==void 0&&(o[s]=i[s]),delete i[s],[o,i]},[{},{...e}]),Bu=e=>ju()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function px(e){return new Proxy({},{get(t,n){return n==="style"?r=>e({style:r}).style:e}})}var U=()=>e=>Array.from(new Set(e));function mx(e,t){const{state:n,send:r,context:o}=e,i=n.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:i,setNode(s){s&&r({type:"NODE.SET",node:s})},unmount(){r({type:"UNMOUNT"})}}}var vx={props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["clearInitial","cleanupNode"],watch({track:e,prop:t,send:n}){e([()=>t("present")],()=>{n({type:"PRESENCE.CHANGED"})})},on:{"NODE.SET":{actions:["setupNode"]},"PRESENCE.CHANGED":{actions:["setInitial","syncPresence"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},invokeOnExitComplete:({prop:e})=>{var t;(t=e("onExitComplete"))==null||t()},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",Ci(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:n,prop:r})=>{const o=r("present");if(o)return n({type:"MOUNT",src:"presence.changed"});const i=t.get("node");if(!o&&(i==null?void 0:i.ownerDocument.visibilityState)==="hidden")return n({type:"UNMOUNT",src:"visibilitychange"});ee(()=>{var a,l;const s=Ai(t.get("styles"));e.set("unmountAnimationName",s),s==="none"||s===e.get("prevAnimationName")||((a=t.get("styles"))==null?void 0:a.display)==="none"||((l=t.get("styles"))==null?void 0:l.animationDuration)==="0s"?n({type:"UNMOUNT",src:"presence.changed"}):n({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{ee(()=>{e.set("prevAnimationName",Ai(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:n})=>{const r=t.get("node");if(!r)return;const o=a=>{var c,u;(((u=(c=a.composedPath)==null?void 0:c.call(a))==null?void 0:u[0])??a.target)===r&&e.set("prevAnimationName",Ai(t.get("styles")))},i=a=>{const l=Ai(t.get("styles"));nt(a)===r&&l===e.get("unmountAnimationName")&&n({type:"UNMOUNT",src:"animationend"})};r.addEventListener("animationstart",o),r.addEventListener("animationcancel",i),r.addEventListener("animationend",i);const s=Ni(r,{animationFillMode:"forwards"});return()=>{r.removeEventListener("animationstart",o),r.removeEventListener("animationcancel",i),r.removeEventListener("animationend",i),Ta(()=>s())}}}}};function Ai(e){return(e==null?void 0:e.animationName)||"none"}U()(["onExitComplete","present","immediate"]);var Wu=typeof globalThis.document<"u"?w.useLayoutEffect:w.useEffect;function Vi(e){const t=e().value??e().defaultValue,n=e().isEqual??Object.is,[r]=w.useState(t),[o,i]=w.useState(r),s=e().value!==void 0,a=w.useRef(o);a.current=s?e().value:o;const l=w.useRef(a.current);Wu(()=>{l.current=a.current},[o,e().value]);const c=d=>{var f,g;const h=l.current,p=In(d)?d(h):d;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:p,prev:h}),s||i(p),n(p,h)||(g=(f=e()).onChange)==null||g.call(f,p,h)};function u(){return s?e().value:o}return{initial:r,ref:a,get:u,set(d){(e().sync?ne.flushSync:Mb)(()=>c(d))},invoke(d,h){var p,f;(f=(p=e()).onChange)==null||f.call(p,d,h)},hash(d){var h,p;return((p=(h=e()).hash)==null?void 0:p.call(h,d))??String(d)}}}Vi.cleanup=e=>{w.useEffect(()=>e,[])},Vi.ref=e=>{const t=w.useRef(e);return{get:()=>t.current,set:n=>{t.current=n}}};function bx(e){const t=w.useRef(e);return{get(n){return t.current[n]},set(n,r){t.current[n]=r}}}var yx=(e,t)=>{const n=w.useRef(!1),r=w.useRef(!1);w.useEffect(()=>{if(n.current&&r.current)return t();r.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),w.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function Hu(e,t={}){var j,R,L,Y;const n=w.useMemo(()=>{const{id:z,ids:V,getRootNode:B}=t;return hx({id:z,ids:V,getRootNode:B})},[t]),r=(...z)=>{e.debug&&console.log(...z)},o=((j=e.props)==null?void 0:j.call(e,{props:yi(t),scope:n}))??t,i=xx(o),s=(R=e.context)==null?void 0:R.call(e,{prop:i,bindable:Vi,scope:n,flush:Gu,getContext(){return l},getComputed(){return S},getRefs(){return g},getEvent(){return p()}}),a=Uu(s),l={get(z){var V;return(V=a.current)==null?void 0:V[z].ref.current},set(z,V){var B;(B=a.current)==null||B[z].set(V)},initial(z){var V;return(V=a.current)==null?void 0:V[z].initial},hash(z){var B,K;const V=(B=a.current)==null?void 0:B[z].get();return(K=a.current)==null?void 0:K[z].hash(V)}},c=w.useRef(new Map),u=w.useRef(null),d=w.useRef(null),h=w.useRef({type:""}),p=()=>({...h.current,current(){return h.current},previous(){return d.current}}),f=()=>({...I,matches(...z){return z.includes(I.ref.current)},hasTag(z){var V,B;return!!((B=(V=e.states[I.ref.current])==null?void 0:V.tags)!=null&&B.includes(z))}}),g=bx(((L=e.refs)==null?void 0:L.call(e,{prop:i,context:l}))??{}),m=()=>({state:f(),context:l,event:p(),prop:i,send:N,action:b,guard:x,track:yx,refs:g,computed:S,flush:Gu,scope:n,choose:C}),b=z=>{const V=In(z)?z(m()):z;if(!V)return;const B=V.map(K=>{var H,X;const $=(X=(H=e.implementations)==null?void 0:H.actions)==null?void 0:X[K];return $||ao(`[zag-js] No implementation found for action "${JSON.stringify(K)}"`),$});for(const K of B)K==null||K(m())},x=z=>{var V,B;return In(z)?z(m()):(B=(V=e.implementations)==null?void 0:V.guards)==null?void 0:B[z](m())},k=z=>{const V=In(z)?z(m()):z;if(!V)return;const B=V.map($=>{var X,de;const H=(de=(X=e.implementations)==null?void 0:X.effects)==null?void 0:de[$];return H||ao(`[zag-js] No implementation found for effect "${JSON.stringify($)}"`),H}),K=[];for(const $ of B){const H=$==null?void 0:$(m());H&&K.push(H)}return()=>K.forEach($=>$==null?void 0:$())},C=z=>gi(z).find(V=>{let B=!V.guard;return pi(V.guard)?B=!!x(V.guard):In(V.guard)&&(B=V.guard(m())),B}),S=z=>{ku(e.computed,()=>"[zag-js] No computed object found on machine");const V=e.computed[z];return V({context:l,event:p(),prop:i,refs:g,scope:n,computed:S})},I=Vi(()=>({defaultValue:e.initialState({prop:i}),onChange(z,V){var K,$,H,X;if(V){const de=c.current.get(V);de==null||de(),c.current.delete(V)}V&&b((K=e.states[V])==null?void 0:K.exit),b(($=u.current)==null?void 0:$.actions);const B=k((H=e.states[z])==null?void 0:H.effects);if(B&&c.current.set(z,B),V===La){b(e.entry);const de=k(e.effects);de&&c.current.set(La,de)}b((X=e.states[z])==null?void 0:X.entry)}})),_=w.useRef(void 0),P=w.useRef(pr.NotStarted);Wu(()=>{queueMicrotask(()=>{const B=P.current===pr.Started;P.current=pr.Started,r(B?"rehydrating...":"initializing...");const K=_.current??I.initial;I.invoke(K,B?I.get():La)});const z=c.current,V=I.ref.current;return()=>{r("unmounting..."),_.current=V,P.current=pr.Stopped,z.forEach(B=>B==null?void 0:B()),c.current=new Map,u.current=null,queueMicrotask(()=>{b(e.exit)})}},[]);const T=()=>"ref"in I?I.ref.current:I.get(),N=z=>{queueMicrotask(()=>{var X,de;if(P.current!==pr.Started)return;d.current=h.current,h.current=z;let V=T();const B=((X=e.states[V].on)==null?void 0:X[z.type])??((de=e.on)==null?void 0:de[z.type]),K=C(B);if(!K)return;u.current=K;const $=K.target??V;r("transition",z.type,K.target||V,`(${K.actions})`);const H=$!==V;H?ne.flushSync(()=>I.set($)):K.reenter&&!H?I.invoke(V,V):b(K.actions??[])})};return(Y=e.watch)==null||Y.call(e,m()),{state:f(),send:N,context:l,prop:i,scope:n,refs:g,computed:S,event:p(),getStatus:()=>P.current}}function Uu(e){const t=w.useRef(e);return t.current=e,t}function xx(e){const t=Uu(e);return function(r){return t.current[r]}}function Gu(e){queueMicrotask(()=>{ne.flushSync(()=>e())})}var Cx=px(e=>e);function kx(e,t={}){const{sync:n=!1}=t,r=Sx(e);return w.useCallback((...o)=>{var i;return n?queueMicrotask(()=>{var s;return(s=r.current)==null?void 0:s.call(r,...o)}):(i=r.current)==null?void 0:i.call(r,...o)},[n,r])}function Sx(e){const t=w.useRef(e);return t.current=e,t}const Da=(e={})=>{const{lazyMount:t,unmountOnExit:n,present:r,skipAnimationOnMount:o=!1,...i}=e,s=w.useRef(!1),a={...i,present:r,onExitComplete:kx(e.onExitComplete)},l=Hu(vx,a),c=mx(l);c.present&&(s.current=!0);const u=!c.present&&!s.current&&t||n&&!c.present&&s.current,d=()=>({"data-state":c.skip&&o?void 0:r?"open":"closed",hidden:!c.present});return{ref:c.setNode,getPresenceProps:d,present:c.present,unmounted:u}},[qu,za]=hr({name:"PresenceContext",hookName:"usePresenceContext",providerName:""}),Li=Ie("span"),{withContext:wx}=cr({key:"text"}),Ex=wx("p");function Ku(e,t=[]){const n=w.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return w.useInsertionEffect(()=>{n.current=e}),w.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function Ox(e={}){const t=Ku(e.onOpen),n=Ku(e.onClose),[r,o]=w.useState(e.defaultOpen||!1),i=e.open!==void 0?e.open:r,s=e.open!==void 0,a=w.useCallback(()=>{s||o(!1),n==null||n()},[s,n]),l=w.useCallback(()=>{s||o(!0),t==null||t()},[s,t]),c=w.useCallback(()=>{i?a():l()},[i,l,a]);return{open:i,onOpen:l,onClose:a,onToggle:c,setOpen:o}}var G=(e,t=[])=>({parts:(...n)=>{if(Ix(t))return G(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>G(e,[...t,...n]),omit:(...n)=>G(e,t.filter(r=>!n.includes(r))),rename:n=>G(n,t),keys:()=>t,build:()=>[...new Set(t)].reduce((n,r)=>Object.assign(n,{[r]:{selector:[`&[data-scope="${mr(e)}"][data-part="${mr(r)}"]`,`& [data-scope="${mr(e)}"][data-part="${mr(r)}"]`].join(", "),attrs:{"data-scope":mr(e),"data-part":mr(r)}}}),{})}),mr=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Ix=e=>e.length===0,Xu=G("collapsible").parts("root","trigger","content","indicator");Xu.build(),U()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);var Px=Object.defineProperty,Rx=(e,t,n)=>t in e?Px(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ma=(e,t,n)=>Rx(e,t+"",n),Tx=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0},$a=class{toHexInt(){return this.toFormat("rgba").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}getChannelValuePercent(e,t){const n=t??this.getChannelValue(e),{minValue:r,maxValue:o}=this.getChannelRange(e);return Qb(n,r,o)}getChannelPercentValue(e,t){const{minValue:n,maxValue:r,step:o}=this.getChannelRange(e),i=Jb(t,n,r,o);return yu(i,n,r,o)}withChannelValue(e,t){const{minValue:n,maxValue:r}=this.getChannelRange(e);if(e in this){let o=this.clone();return o[e]=Ge(t,n,r),o}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:n}=e,r=t||this.getChannels().find(s=>s!==n),o=n||this.getChannels().find(s=>s!==r),i=this.getChannels().find(s=>s!==r&&s!==o);return{xChannel:r,yChannel:o,zChannel:i}}incrementChannel(e,t){const{minValue:n,maxValue:r,step:o}=this.getChannelRange(e),i=yu(Ge(this.getChannelValue(e)+t,n,r),n,r,o);return this.withChannelValue(e,i)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return Tx(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},Nx=/^#[\da-f]+$/i,_x=/^rgba?\((.*)\)$/,Ax=/[^#]/gi,Yu=class Xs extends $a{constructor(t,n,r,o){super(),this.red=t,this.green=n,this.blue=r,this.alpha=o}static parse(t){let n=[];if(Nx.test(t)&&[4,5,7,9].includes(t.length)){const o=(t.length<6?t.replace(Ax,"$&$&"):t).slice(1).split("");for(;o.length>0;)n.push(parseInt(o.splice(0,2).join(""),16));n[3]=n[3]!==void 0?n[3]/255:void 0}const r=t.match(_x);return r!=null&&r[1]&&(n=r[1].split(",").map(o=>Number(o.trim())).map((o,i)=>Ge(o,0,i<3?255:1))),n.length<3?void 0:new Xs(n[0],n[1],n[2],n[3]??1)}toString(t){switch(t){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(this.alpha*255).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"hsb":return this.toHSB().toString("hsb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+t)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const t=this.red/255,n=this.green/255,r=this.blue/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=i-o,a=i===0?0:s/i;let l=0;if(s!==0){switch(i){case t:l=(n-r)/s+(nNumber(a.trim().replace("%","")));return new Ys(vu(r,360),Ge(o,0,100),Ge(i,0,100),Ge(s??1,0,1))}}toString(t){switch(t){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${ue(this.saturation,2)}%, ${ue(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${ue(this.saturation,2)}%, ${ue(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+t)}}toHSB(){let t=this.saturation/100,n=this.lightness/100,r=n+t*Math.min(n,1-n);return t=r===0?0:2*(1-n/r),new Wa(ue(this.hue,2),ue(t*100,2),ue(r*100,2),ue(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.lightness/100,o=n*Math.min(r,1-r),i=(s,a=(s+t/30)%12)=>r-o*Math.max(Math.min(a-3,9-a,1),-1);return new ja(Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255),ue(this.alpha,2))}clone(){return new Ys(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(o/=100),new Intl.NumberFormat(n,r).format(o)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return Ys.colorChannels}};Ma(Qu,"colorChannels",["hue","saturation","lightness"]);var Ba=Qu,Lx=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,Ju=class Qs extends $a{constructor(t,n,r,o){super(),this.hue=t,this.saturation=n,this.brightness=r,this.alpha=o}static parse(t){let n;if(n=t.match(Lx)){const[r,o,i,s]=(n[1]??n[2]).split(",").map(a=>Number(a.trim().replace("%","")));return new Qs(vu(r,360),Ge(o,0,100),Ge(i,0,100),Ge(s??1,0,1))}}toString(t){switch(t){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${ue(this.saturation,2)}%, ${ue(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${ue(this.saturation,2)}%, ${ue(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+t)}}toHSL(){let t=this.saturation/100,n=this.brightness/100,r=n*(1-t/2);return t=r===0||r===1?0:(n-r)/Math.min(r,1-r),new Ba(ue(this.hue,2),ue(t*100,2),ue(r*100,2),ue(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.brightness/100,o=(i,s=(i+t/60)%6)=>r-n*r*Math.max(Math.min(s,4-s,1),0);return new ja(Math.round(o(5)*255),Math.round(o(3)*255),Math.round(o(1)*255),ue(this.alpha,2))}clone(){return new Qs(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(o/=100),new Intl.NumberFormat(n,r).format(o)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return Qs.colorChannels}};Ma(Ju,"colorChannels",["hue","saturation","brightness"]);var Wa=Ju,Fx="aliceblue:f0f8ff,antiquewhite:faebd7,aqua:00ffff,aquamarine:7fffd4,azure:f0ffff,beige:f5f5dc,bisque:ffe4c4,black:000000,blanchedalmond:ffebcd,blue:0000ff,blueviolet:8a2be2,brown:a52a2a,burlywood:deb887,cadetblue:5f9ea0,chartreuse:7fff00,chocolate:d2691e,coral:ff7f50,cornflowerblue:6495ed,cornsilk:fff8dc,crimson:dc143c,cyan:00ffff,darkblue:00008b,darkcyan:008b8b,darkgoldenrod:b8860b,darkgray:a9a9a9,darkgreen:006400,darkkhaki:bdb76b,darkmagenta:8b008b,darkolivegreen:556b2f,darkorange:ff8c00,darkorchid:9932cc,darkred:8b0000,darksalmon:e9967a,darkseagreen:8fbc8f,darkslateblue:483d8b,darkslategray:2f4f4f,darkturquoise:00ced1,darkviolet:9400d3,deeppink:ff1493,deepskyblue:00bfff,dimgray:696969,dodgerblue:1e90ff,firebrick:b22222,floralwhite:fffaf0,forestgreen:228b22,fuchsia:ff00ff,gainsboro:dcdcdc,ghostwhite:f8f8ff,gold:ffd700,goldenrod:daa520,gray:808080,green:008000,greenyellow:adff2f,honeydew:f0fff0,hotpink:ff69b4,indianred:cd5c5c,indigo:4b0082,ivory:fffff0,khaki:f0e68c,lavender:e6e6fa,lavenderblush:fff0f5,lawngreen:7cfc00,lemonchiffon:fffacd,lightblue:add8e6,lightcoral:f08080,lightcyan:e0ffff,lightgoldenrodyellow:fafad2,lightgrey:d3d3d3,lightgreen:90ee90,lightpink:ffb6c1,lightsalmon:ffa07a,lightseagreen:20b2aa,lightskyblue:87cefa,lightslategray:778899,lightsteelblue:b0c4de,lightyellow:ffffe0,lime:00ff00,limegreen:32cd32,linen:faf0e6,magenta:ff00ff,maroon:800000,mediumaquamarine:66cdaa,mediumblue:0000cd,mediumorchid:ba55d3,mediumpurple:9370d8,mediumseagreen:3cb371,mediumslateblue:7b68ee,mediumspringgreen:00fa9a,mediumturquoise:48d1cc,mediumvioletred:c71585,midnightblue:191970,mintcream:f5fffa,mistyrose:ffe4e1,moccasin:ffe4b5,navajowhite:ffdead,navy:000080,oldlace:fdf5e6,olive:808000,olivedrab:6b8e23,orange:ffa500,orangered:ff4500,orchid:da70d6,palegoldenrod:eee8aa,palegreen:98fb98,paleturquoise:afeeee,palevioletred:d87093,papayawhip:ffefd5,peachpuff:ffdab9,peru:cd853f,pink:ffc0cb,plum:dda0dd,powderblue:b0e0e6,purple:800080,rebeccapurple:663399,red:ff0000,rosybrown:bc8f8f,royalblue:4169e1,saddlebrown:8b4513,salmon:fa8072,sandybrown:f4a460,seagreen:2e8b57,seashell:fff5ee,sienna:a0522d,silver:c0c0c0,skyblue:87ceeb,slateblue:6a5acd,slategray:708090,snow:fffafa,springgreen:00ff7f,steelblue:4682b4,tan:d2b48c,teal:008080,thistle:d8bfd8,tomato:ff6347,turquoise:40e0d0,violet:ee82ee,wheat:f5deb3,white:ffffff,whitesmoke:f5f5f5,yellow:ffff00,yellowgreen:9acd32",Dx=e=>{const t=new Map,n=e.split(",");for(let r=0;r{var n;if(Zu.has(e))return Fi(Zu.get(e));const t=ja.parse(e)||Wa.parse(e)||Ba.parse(e);if(!t){const r=new Error("Invalid color value: "+e);throw(n=Error.captureStackTrace)==null||n.call(Error,r,Fi),r}return t};const zx=["top","right","bottom","left"],tn=Math.min,rt=Math.max,Di=Math.round,zi=Math.floor,It=e=>({x:e,y:e}),Mx={left:"right",right:"left",bottom:"top",top:"bottom"},$x={start:"end",end:"start"};function Ha(e,t,n){return rt(e,tn(t,n))}function $t(e,t){return typeof e=="function"?e(t):e}function jt(e){return e.split("-")[0]}function vr(e){return e.split("-")[1]}function Ua(e){return e==="x"?"y":"x"}function Ga(e){return e==="y"?"height":"width"}const jx=new Set(["top","bottom"]);function Pt(e){return jx.has(jt(e))?"y":"x"}function qa(e){return Ua(Pt(e))}function Bx(e,t,n){n===void 0&&(n=!1);const r=vr(e),o=qa(e),i=Ga(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Mi(s)),[s,Mi(s)]}function Wx(e){const t=Mi(e);return[Ka(e),t,Ka(t)]}function Ka(e){return e.replace(/start|end/g,t=>$x[t])}const ed=["left","right"],td=["right","left"],Hx=["top","bottom"],Ux=["bottom","top"];function Gx(e,t,n){switch(e){case"top":case"bottom":return n?t?td:ed:t?ed:td;case"left":case"right":return t?Hx:Ux;default:return[]}}function qx(e,t,n,r){const o=vr(e);let i=Gx(jt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Ka)))),i}function Mi(e){return e.replace(/left|right|bottom|top/g,t=>Mx[t])}function Kx(e){return{top:0,right:0,bottom:0,left:0,...e}}function nd(e){return typeof e!="number"?Kx(e):{top:e,right:e,bottom:e,left:e}}function $i(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function rd(e,t,n){let{reference:r,floating:o}=e;const i=Pt(t),s=qa(t),a=Ga(s),l=jt(t),c=i==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(vr(t)){case"start":p[s]-=h*(n&&c?-1:1);break;case"end":p[s]+=h*(n&&c?-1:1);break}return p}const Xx=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=rd(c,r,l),h=r,p={},f=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=$t(e,t)||{};if(c==null)return{};const d=nd(u),h={x:n,y:r},p=qa(o),f=Ga(p),g=await s.getDimensions(c),m=p==="y",b=m?"top":"left",x=m?"bottom":"right",k=m?"clientHeight":"clientWidth",C=i.reference[f]+i.reference[p]-h[p]-i.floating[f],S=h[p]-i.reference[p],I=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let _=I?I[k]:0;(!_||!await(s.isElement==null?void 0:s.isElement(I)))&&(_=a.floating[k]||i.floating[f]);const P=C/2-S/2,T=_/2-g[f]/2-1,N=tn(d[b],T),j=tn(d[x],T),R=N,L=_-g[f]-j,Y=_/2-g[f]/2+P,z=Ha(R,Y,L),V=!l.arrow&&vr(o)!=null&&Y!==z&&i.reference[f]/2-(YY<=0)){var j,R;const Y=(((j=i.flip)==null?void 0:j.index)||0)+1,z=_[Y];if(z&&(!(d==="alignment"?x!==Pt(z):!1)||N.every(K=>Pt(K.placement)===x?K.overflows[0]>0:!0)))return{data:{index:Y,overflows:N},reset:{placement:z}};let V=(R=N.filter(B=>B.overflows[0]<=0).sort((B,K)=>B.overflows[1]-K.overflows[1])[0])==null?void 0:R.placement;if(!V)switch(p){case"bestFit":{var L;const B=(L=N.filter(K=>{if(I){const $=Pt(K.placement);return $===x||$==="y"}return!0}).map(K=>[K.placement,K.overflows.filter($=>$>0).reduce(($,H)=>$+H,0)]).sort((K,$)=>K[1]-$[1])[0])==null?void 0:L[0];B&&(V=B);break}case"initialPlacement":V=a;break}if(o!==V)return{reset:{placement:V}}}return{}}}};function od(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function id(e){return zx.some(t=>e[t]>=0)}const Jx=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=$t(e,t);switch(r){case"referenceHidden":{const i=await uo(t,{...o,elementContext:"reference"}),s=od(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:id(s)}}}case"escaped":{const i=await uo(t,{...o,altBoundary:!0}),s=od(i,n.floating);return{data:{escapedOffsets:s,escaped:id(s)}}}default:return{}}}}},sd=new Set(["left","top"]);async function Zx(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=jt(n),a=vr(n),l=Pt(n)==="y",c=sd.has(s)?-1:1,u=i&&l?-1:1,d=$t(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof f=="number"&&(p=a==="end"?f*-1:f),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}const e1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await Zx(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},t1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:m=>{let{x:b,y:x}=m;return{x:b,y:x}}},...l}=$t(e,t),c={x:n,y:r},u=await uo(t,l),d=Pt(jt(o)),h=Ua(d);let p=c[h],f=c[d];if(i){const m=h==="y"?"top":"left",b=h==="y"?"bottom":"right",x=p+u[m],k=p-u[b];p=Ha(x,p,k)}if(s){const m=d==="y"?"top":"left",b=d==="y"?"bottom":"right",x=f+u[m],k=f-u[b];f=Ha(x,f,k)}const g=a.fn({...t,[h]:p,[d]:f});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:i,[d]:s}}}}}},n1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=$t(e,t),u={x:n,y:r},d=Pt(o),h=Ua(d);let p=u[h],f=u[d];const g=$t(a,t),m=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const k=h==="y"?"height":"width",C=i.reference[h]-i.floating[k]+m.mainAxis,S=i.reference[h]+i.reference[k]-m.mainAxis;pS&&(p=S)}if(c){var b,x;const k=h==="y"?"width":"height",C=sd.has(jt(o)),S=i.reference[d]-i.floating[k]+(C&&((b=s.offset)==null?void 0:b[d])||0)+(C?0:m.crossAxis),I=i.reference[d]+i.reference[k]+(C?0:((x=s.offset)==null?void 0:x[d])||0)-(C?m.crossAxis:0);fI&&(f=I)}return{[h]:p,[d]:f}}}},r1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=$t(e,t),u=await uo(t,c),d=jt(o),h=vr(o),p=Pt(o)==="y",{width:f,height:g}=i.floating;let m,b;d==="top"||d==="bottom"?(m=d,b=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(b=d,m=h==="end"?"top":"bottom");const x=g-u.top-u.bottom,k=f-u.left-u.right,C=tn(g-u[m],x),S=tn(f-u[b],k),I=!t.middlewareData.shift;let _=C,P=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=k),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=x),I&&!h){const N=rt(u.left,0),j=rt(u.right,0),R=rt(u.top,0),L=rt(u.bottom,0);p?P=f-2*(N!==0||j!==0?N+j:rt(u.left,u.right)):_=g-2*(R!==0||L!==0?R+L:rt(u.top,u.bottom))}await l({...t,availableWidth:P,availableHeight:_});const T=await s.getDimensions(a.floating);return f!==T.width||g!==T.height?{reset:{rects:!0}}:{}}}};function ji(){return typeof window<"u"}function br(e){return ad(e)?(e.nodeName||"").toLowerCase():"#document"}function ot(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Rt(e){var t;return(t=(ad(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ad(e){return ji()?e instanceof Node||e instanceof ot(e).Node:!1}function mt(e){return ji()?e instanceof Element||e instanceof ot(e).Element:!1}function Tt(e){return ji()?e instanceof HTMLElement||e instanceof ot(e).HTMLElement:!1}function ld(e){return!ji()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ot(e).ShadowRoot}const o1=new Set(["inline","contents"]);function ho(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=vt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!o1.has(o)}const i1=new Set(["table","td","th"]);function s1(e){return i1.has(br(e))}const a1=[":popover-open",":modal"];function Bi(e){return a1.some(t=>{try{return e.matches(t)}catch{return!1}})}const l1=["transform","translate","scale","rotate","perspective"],c1=["transform","translate","scale","rotate","perspective","filter"],u1=["paint","layout","strict","content"];function Xa(e){const t=Ya(),n=mt(e)?vt(e):e;return l1.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||c1.some(r=>(n.willChange||"").includes(r))||u1.some(r=>(n.contain||"").includes(r))}function d1(e){let t=nn(e);for(;Tt(t)&&!yr(t);){if(Xa(t))return t;if(Bi(t))return null;t=nn(t)}return null}function Ya(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const h1=new Set(["html","body","#document"]);function yr(e){return h1.has(br(e))}function vt(e){return ot(e).getComputedStyle(e)}function Wi(e){return mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nn(e){if(br(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ld(e)&&e.host||Rt(e);return ld(t)?t.host:t}function cd(e){const t=nn(e);return yr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Tt(t)&&ho(t)?t:cd(t)}function fo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=cd(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=ot(o);if(i){const a=Qa(s);return t.concat(s,s.visualViewport||[],ho(o)?o:[],a&&n?fo(a):[])}return t.concat(o,fo(o,[],n))}function Qa(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ud(e){const t=vt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Tt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Di(n)!==i||Di(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Ja(e){return mt(e)?e:e.contextElement}function xr(e){const t=Ja(e);if(!Tt(t))return It(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ud(t);let s=(i?Di(n.width):n.width)/r,a=(i?Di(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const f1=It(0);function dd(e){const t=ot(e);return!Ya()||!t.visualViewport?f1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function g1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ot(e)?!1:t}function Tn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Ja(e);let s=It(1);t&&(r?mt(r)&&(s=xr(r)):s=xr(e));const a=g1(i,n,r)?dd(i):It(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const h=ot(i),p=r&&mt(r)?ot(r):r;let f=h,g=Qa(f);for(;g&&r&&p!==f;){const m=xr(g),b=g.getBoundingClientRect(),x=vt(g),k=b.left+(g.clientLeft+parseFloat(x.paddingLeft))*m.x,C=b.top+(g.clientTop+parseFloat(x.paddingTop))*m.y;l*=m.x,c*=m.y,u*=m.x,d*=m.y,l+=k,c+=C,f=ot(g),g=Qa(f)}}return $i({width:u,height:d,x:l,y:c})}function Hi(e,t){const n=Wi(e).scrollLeft;return t?t.left+n:Tn(Rt(e)).left+n}function hd(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Hi(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function p1(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Rt(r),a=t?Bi(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=It(1);const u=It(0),d=Tt(r);if((d||!d&&!i)&&((br(r)!=="body"||ho(s))&&(l=Wi(r)),Tt(r))){const p=Tn(r);c=xr(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const h=s&&!d&&!i?hd(s,l):It(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function m1(e){return Array.from(e.getClientRects())}function v1(e){const t=Rt(e),n=Wi(e),r=e.ownerDocument.body,o=rt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=rt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Hi(e);const a=-n.scrollTop;return vt(r).direction==="rtl"&&(s+=rt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const fd=25;function b1(e,t){const n=ot(e),r=Rt(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=Ya();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=Hi(r);if(c<=0){const u=r.ownerDocument,d=u.body,h=getComputedStyle(d),p=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,f=Math.abs(r.clientWidth-d.clientWidth-p);f<=fd&&(i-=f)}else c<=fd&&(i+=c);return{width:i,height:s,x:a,y:l}}const y1=new Set(["absolute","fixed"]);function x1(e,t){const n=Tn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Tt(e)?xr(e):It(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function gd(e,t,n){let r;if(t==="viewport")r=b1(e,n);else if(t==="document")r=v1(Rt(e));else if(mt(t))r=x1(t,n);else{const o=dd(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return $i(r)}function pd(e,t){const n=nn(e);return n===t||!mt(n)||yr(n)?!1:vt(n).position==="fixed"||pd(n,t)}function C1(e,t){const n=t.get(e);if(n)return n;let r=fo(e,[],!1).filter(a=>mt(a)&&br(a)!=="body"),o=null;const i=vt(e).position==="fixed";let s=i?nn(e):e;for(;mt(s)&&!yr(s);){const a=vt(s),l=Xa(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&y1.has(o.position)||ho(s)&&!l&&pd(e,s))?r=r.filter(u=>u!==s):o=a,s=nn(s)}return t.set(e,r),r}function k1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Bi(t)?[]:C1(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,u)=>{const d=gd(t,u,o);return c.top=rt(d.top,c.top),c.right=tn(d.right,c.right),c.bottom=tn(d.bottom,c.bottom),c.left=rt(d.left,c.left),c},gd(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function S1(e){const{width:t,height:n}=ud(e);return{width:t,height:n}}function w1(e,t,n){const r=Tt(t),o=Rt(t),i=n==="fixed",s=Tn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=It(0);function c(){l.x=Hi(o)}if(r||!r&&!i)if((br(t)!=="body"||ho(o))&&(a=Wi(t)),r){const p=Tn(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=o&&!r&&!i?hd(o,a):It(0),d=s.left+a.scrollLeft-l.x-u.x,h=s.top+a.scrollTop-l.y-u.y;return{x:d,y:h,width:s.width,height:s.height}}function Za(e){return vt(e).position==="static"}function md(e,t){if(!Tt(e)||vt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Rt(e)===n&&(n=n.ownerDocument.body),n}function vd(e,t){const n=ot(e);if(Bi(e))return n;if(!Tt(e)){let o=nn(e);for(;o&&!yr(o);){if(mt(o)&&!Za(o))return o;o=nn(o)}return n}let r=md(e,t);for(;r&&s1(r)&&Za(r);)r=md(r,t);return r&&yr(r)&&Za(r)&&!Xa(r)?n:r||d1(e)||n}const E1=async function(e){const t=this.getOffsetParent||vd,n=this.getDimensions,r=await n(e.floating);return{reference:w1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function O1(e){return vt(e).direction==="rtl"}const I1={convertOffsetParentRelativeRectToViewportRelativeRect:p1,getDocumentElement:Rt,getClippingRect:k1,getOffsetParent:vd,getElementRects:E1,getClientRects:m1,getDimensions:S1,getScale:xr,isElement:mt,isRTL:O1};function bd(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function P1(e,t){let n=null,r;const o=Rt(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:p}=c;if(a||t(),!h||!p)return;const f=zi(d),g=zi(o.clientWidth-(u+h)),m=zi(o.clientHeight-(d+p)),b=zi(u),k={rootMargin:-f+"px "+-g+"px "+-m+"px "+-b+"px",threshold:rt(0,tn(1,l))||1};let C=!0;function S(I){const _=I[0].intersectionRatio;if(_!==l){if(!C)return s();_?s(!1,_):r=setTimeout(()=>{s(!1,1e-7)},1e3)}_===1&&!bd(c,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(S,{...k,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,k)}n.observe(e)}return s(!0),i}function R1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Ja(e),u=o||i?[...c?fo(c):[],...fo(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const d=c&&a?P1(c,n):null;let h=-1,p=null;s&&(p=new ResizeObserver(b=>{let[x]=b;x&&x.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var k;(k=p)==null||k.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let f,g=l?Tn(e):null;l&&m();function m(){const b=Tn(e);g&&!bd(g,b)&&n(),g=b,f=requestAnimationFrame(m)}return n(),()=>{var b;u.forEach(x=>{o&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),d==null||d(),(b=p)==null||b.disconnect(),p=null,l&&cancelAnimationFrame(f)}}const T1=e1,N1=t1,_1=Qx,A1=r1,V1=Jx,L1=Yx,F1=n1,D1=(e,t,n)=>{const r=new Map,o={platform:I1,...n},i={...o.platform,_c:r};return Xx(e,t,{...o,platform:i})};function yd(e=0,t=0,n=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,n,r);const o={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...o,toJSON:()=>o}}function z1(e){if(!e)return yd();const{x:t,y:n,width:r,height:o}=e;return yd(t,n,r,o)}function M1(e,t){return{contextElement:$e(e)?e:void 0,getBoundingClientRect:()=>{const n=e,r=t==null?void 0:t(n);return r||!n?z1(r):n.getBoundingClientRect()}}}var xd=e=>({variable:e,reference:`var(${e})`}),Cd={transformOrigin:xd("--transform-origin"),arrowOffset:xd("--arrow-offset")},$1=e=>e==="top"||e==="bottom"?"y":"x";function j1(e,t){return{name:"transformOrigin",fn(n){var T,N,j,R;const{elements:r,middlewareData:o,placement:i,rects:s,y:a}=n,l=i.split("-")[0],c=$1(l),u=((T=o.arrow)==null?void 0:T.x)||0,d=((N=o.arrow)==null?void 0:N.y)||0,h=(t==null?void 0:t.clientWidth)||0,p=(t==null?void 0:t.clientHeight)||0,f=u+h/2,g=d+p/2,m=Math.abs(((j=o.shift)==null?void 0:j.y)||0),b=s.reference.height/2,x=p/2,k=((R=e.offset)==null?void 0:R.mainAxis)??e.gutter,C=typeof k=="number"?k+x:k??x,S=m>C,I={top:`${f}px calc(100% + ${C}px)`,bottom:`${f}px ${-C}px`,left:`calc(100% + ${C}px) ${g}px`,right:`${-C}px ${g}px`}[l],_=`${f}px ${s.reference.y+b-a}px`,P=!!e.overlap&&c==="y"&&S;return r.floating.style.setProperty(Cd.transformOrigin.variable,P?_:I),{data:{transformOrigin:P?_:I}}}}}var B1={name:"rects",fn({rects:e}){return{data:e}}},W1=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};const{x:r,y:o}=n.arrow,i=t.split("-")[0];return Object.assign(e.style,{left:r!=null?`${r}px`:"",top:o!=null?`${o}px`:"",[i]:`calc(100% + ${Cd.arrowOffset.reference})`}),{}}}};function H1(e){const[t,n]=e.split("-");return{side:t,align:n,hasAlign:n!=null}}function U1(e){return e.split("-")[0]}var G1={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function kd(e,t){const n=e.devicePixelRatio||1;return Math.round(t*n)/n}function el(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function q1(e,t,n){const r=e||t.createElement("div");return L1({element:r,padding:n.arrowPadding})}function K1(e,t){if(!_b(t.offset??t.gutter))return T1(({placement:n})=>{var c,u;const r=((e==null?void 0:e.clientHeight)||0)/2,o=((c=t.offset)==null?void 0:c.mainAxis)??t.gutter,i=typeof o=="number"?o+r:o??r,{hasAlign:s}=H1(n),a=s?void 0:t.shift,l=((u=t.offset)==null?void 0:u.crossAxis)??a;return yi({crossAxis:l,mainAxis:i,alignmentAxis:t.shift})})}function X1(e){if(!e.flip)return;const t=el(e.boundary);return _1({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function Y1(e){if(!e.slide&&!e.overlap)return;const t=el(e.boundary);return N1({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:F1()})}function Q1(e){return A1({padding:e.overflowPadding,apply({elements:t,rects:n,availableHeight:r,availableWidth:o}){const i=t.floating,s=Math.round(n.reference.width),a=Math.round(n.reference.height);o=Math.floor(o),r=Math.floor(r),i.style.setProperty("--reference-width",`${s}px`),i.style.setProperty("--reference-height",`${a}px`),i.style.setProperty("--available-width",`${o}px`),i.style.setProperty("--available-height",`${r}px`)}})}function J1(e){if(e.hideWhenDetached)return V1({strategy:"referenceHidden",boundary:el(e.boundary)??"clippingAncestors"})}function Z1(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function eC(e,t,n={}){const r=M1(e,n.getAnchorRect);if(!t||!r)return;const o=Object.assign({},G1,n),i=t.querySelector("[data-part=arrow]"),s=[K1(i,o),X1(o),Y1(o),q1(i,t.ownerDocument,o),W1(i),j1({gutter:o.gutter,offset:o.offset,overlap:o.overlap},i),Q1(o),J1(o),B1],{placement:a,strategy:l,onComplete:c,onPositioned:u}=o,d=async()=>{var C;if(!r||!t)return;const g=await D1(r,t,{placement:a,middleware:s,strategy:l});c==null||c(g),u==null||u({placed:!0});const m=Pe(t),b=kd(m,g.x),x=kd(m,g.y);t.style.setProperty("--x",`${b}px`),t.style.setProperty("--y",`${x}px`),o.hideWhenDetached&&(((C=g.middlewareData.hide)==null?void 0:C.referenceHidden)?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const k=t.firstElementChild;if(k){const S=Ci(k);t.style.setProperty("--z-index",S.zIndex)}},h=async()=>{n.updatePosition?(await n.updatePosition({updatePosition:d,floatingElement:t}),u==null||u({placed:!0})):await d()},p=Z1(o.listeners),f=o.listeners?R1(r,t,h,p):$b;return h(),()=>{f==null||f(),u==null||u({placed:!1})}}function bt(e,t,n={}){const{defer:r,...o}=n,i=r?ee:a=>a(),s=[];return s.push(i(()=>{const a=typeof e=="function"?e():e,l=typeof t=="function"?t():t;s.push(eC(a,l,o))})),()=>{s.forEach(a=>a==null?void 0:a())}}function tC(e){const t={each(n){var r;for(let o=0;o<((r=e.frames)==null?void 0:r.length);o+=1){const i=e.frames[o];i&&n(i)}},addEventListener(n,r,o){return t.each(i=>{try{i.document.addEventListener(n,r,o)}catch{}}),()=>{try{t.removeEventListener(n,r,o)}catch{}}},removeEventListener(n,r,o){t.each(i=>{try{i.document.removeEventListener(n,r,o)}catch{}})}};return t}function nC(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(n,r,o)=>{try{t==null||t.addEventListener(n,r,o)}catch{}return()=>{try{t==null||t.removeEventListener(n,r,o)}catch{}}},removeEventListener:(n,r,o)=>{try{t==null||t.removeEventListener(n,r,o)}catch{}}}}var Sd="pointerdown.outside",wd="focus.outside";function rC(e){for(const t of e)if($e(t)&&Jt(t))return!0;return!1}var Ed=e=>"clientY"in e;function oC(e,t){if(!Ed(t)||!e)return!1;const n=e.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}function iC(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function Od(e,t){if(!t||!Ed(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,o=t.scrollWidth>t.clientWidth,i=o&&e.clientY>t.offsetTop+t.clientHeight,s={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(o?16:0)},a={x:e.clientX,y:e.clientY};return iC(s,a)?r||i:!1}function sC(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:o,onInteractOutside:i,defer:s}=t;if(!e)return;const a=qe(e),l=Pe(e),c=tC(l),u=nC(l);function d(x,k){if(!$e(k)||!k.isConnected||Pn(e,k)||oC(e,x))return!1;const C=a.querySelector(`[aria-controls="${e.id}"]`);if(C){const I=Ii(C);if(Od(x,I))return!1}const S=Ii(e);return Od(x,S)?!1:!(n!=null&&n(k))}const h=new Set,p=fr(e==null?void 0:e.getRootNode());function f(x){function k(C){var P;const S=s&&!Tu()?ee:T=>T(),I=C??x,_=((P=I==null?void 0:I.composedPath)==null?void 0:P.call(I))??[I==null?void 0:I.target];S(()=>{const T=p?_[0]:nt(x);if(!(!e||!d(x,T))){if(o||i){const N=vi(o,i);e.addEventListener(Sd,N,{once:!0})}Id(e,Sd,{bubbles:!1,cancelable:!0,detail:{originalEvent:I,contextmenu:Py(I),focusable:rC(_),target:T}})}})}x.pointerType==="touch"?(h.forEach(C=>C()),h.add(fe(a,"click",k,{once:!0})),h.add(u.addEventListener("click",k,{once:!0})),h.add(c.addEventListener("click",k,{once:!0}))):k()}const g=new Set,m=setTimeout(()=>{g.add(fe(a,"pointerdown",f,!0)),g.add(u.addEventListener("pointerdown",f,!0)),g.add(c.addEventListener("pointerdown",f,!0))},0);function b(x){(s?ee:C=>C())(()=>{const C=nt(x);if(!(!e||!d(x,C))){if(r||i){const S=vi(r,i);e.addEventListener(wd,S,{once:!0})}Id(e,wd,{bubbles:!1,cancelable:!0,detail:{originalEvent:x,contextmenu:!1,focusable:Jt(C),target:C}})}})}return Tu()||(g.add(fe(a,"focusin",b,!0)),g.add(u.addEventListener("focusin",b,!0)),g.add(c.addEventListener("focusin",b,!0))),()=>{clearTimeout(m),h.forEach(x=>x()),g.forEach(x=>x())}}function aC(e,t){const{defer:n}=t,r=n?ee:i=>i(),o=[];return o.push(r(()=>{const i=typeof e=="function"?e():e;o.push(sC(i,t))})),()=>{o.forEach(i=>i==null?void 0:i())}}function Id(e,t,n){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,n);return e.dispatchEvent(o)}function lC(e,t){const n=r=>{r.key==="Escape"&&(r.isComposing||t==null||t(r))};return fe(qe(e),"keydown",n,{capture:!0})}var Pd="layer:request-dismiss",lt={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){var r;const t=this.indexOf(e),n=this.topMostPointerBlockingLayer()?this.indexOf((r=this.topMostPointerBlockingLayer())==null?void 0:r.node):-1;return tPn(n.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Pn(t,e))},add(e){this.layers.push(e),this.syncLayerIndex()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(tlt.dismiss(r.node,e)),this.layers.splice(t,1),this.syncLayerIndex())},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayerIndex(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){const n=this.indexOf(e);if(n===-1)return;const r=this.layers[n];uC(e,Pd,o=>{var i;(i=r.requestDismiss)==null||i.call(r,o),o.defaultPrevented||r==null||r.dismiss()}),cC(e,Pd,{originalLayer:e,targetLayer:t,originalIndex:n,targetIndex:t?this.indexOf(t):-1}),this.syncLayerIndex()},clear(){this.remove(this.layers[0].node)}};function cC(e,t,n){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:n});return e.dispatchEvent(o)}function uC(e,t,n){e.addEventListener(t,n,{once:!0})}var Rd;function Td(){lt.layers.forEach(({node:e})=>{e.style.pointerEvents=lt.isBelowPointerBlockingLayer(e)?"none":"auto"})}function dC(e){e.style.pointerEvents=""}function hC(e,t){const n=qe(e),r=[];return lt.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(Rd=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t==null||t.forEach(o=>{const[i,s]=lx(()=>{const a=o();return $e(a)?a:null},{timeout:1e3});i.then(a=>r.push(Ni(a,{pointerEvents:"auto"}))),r.push(s)}),()=>{lt.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=Rd,n.body.removeAttribute("data-inert"),n.body.style.length===0&&n.body.removeAttribute("style")}),r.forEach(o=>o()))}}function fC(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e){ao("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,onRequestDismiss:o,pointerBlocking:i,exclude:s,debug:a}=t,l={dismiss:r,node:e,pointerBlocking:i,requestDismiss:o};lt.add(l),Td();function c(f){var m,b;const g=nt(f.detail.originalEvent);lt.isBelowPointerBlockingLayer(e)||lt.isInBranch(g)||((m=t.onPointerDownOutside)==null||m.call(t,f),(b=t.onInteractOutside)==null||b.call(t,f),!f.defaultPrevented&&(a&&console.log("onPointerDownOutside:",f.detail.originalEvent),r==null||r()))}function u(f){var m,b;const g=nt(f.detail.originalEvent);lt.isInBranch(g)||((m=t.onFocusOutside)==null||m.call(t,f),(b=t.onInteractOutside)==null||b.call(t,f),!f.defaultPrevented&&(a&&console.log("onFocusOutside:",f.detail.originalEvent),r==null||r()))}function d(f){var g;lt.isTopMost(e)&&((g=t.onEscapeKeyDown)==null||g.call(t,f),!f.defaultPrevented&&r&&(f.preventDefault(),r()))}function h(f){var x;if(!e)return!1;const g=typeof s=="function"?s():s,m=Array.isArray(g)?g:[g],b=(x=t.persistentElements)==null?void 0:x.map(k=>k()).filter($e);return b&&m.push(...b),m.some(k=>Pn(k,f))||lt.isInNestedLayer(e,f)}const p=[i?hC(e,t.persistentElements):void 0,lC(e,d),aC(e,{exclude:h,onFocusOutside:u,onPointerDownOutside:c,defer:t.defer})];return()=>{lt.remove(e),Td(),dC(e),p.forEach(f=>f==null?void 0:f())}}function Cr(e,t){const{defer:n}=t,r=n?ee:i=>i(),o=[];return o.push(r(()=>{const i=In(e)?e():e;o.push(fC(i,t))})),()=>{o.forEach(i=>i==null?void 0:i())}}var Nd=G("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]);Nd.build();var gC=e=>{var t;return((t=e.ids)==null?void 0:t.hiddenInput)??`color-picker:${e.id}:hidden-input`},pC=e=>{var t;return((t=e.ids)==null?void 0:t.control)??`color-picker:${e.id}:control`},mC=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`color-picker:${e.id}:trigger`},vC=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`color-picker:${e.id}:content`},bC=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`color-picker:${e.id}:positioner`},yC=e=>{var t;return((t=e.ids)==null?void 0:t.formatSelect)??`color-picker:${e.id}:format-select`},xC=e=>{var t;return((t=e.ids)==null?void 0:t.area)??`color-picker:${e.id}:area`},CC=e=>{var t;return((t=e.ids)==null?void 0:t.areaThumb)??`color-picker:${e.id}:area-thumb`},kC=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.channelSliderTrack)==null?void 0:r.call(n,t))??`color-picker:${e.id}:slider-track:${t}`},SC=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.channelSliderThumb)==null?void 0:r.call(n,t))??`color-picker:${e.id}:slider-thumb:${t}`},Ui=e=>e.getById(vC(e)),wC=e=>e.getById(CC(e)),EC=(e,t)=>e.getById(SC(e,t)),OC=e=>e.getById(yC(e)),_d=e=>e.getById(gC(e)),IC=e=>e.getById(xC(e)),PC=(e,t,n)=>{const r=IC(e);if(!r)return;const{getPercentValue:o}=Fu(t,r);return{x:o({dir:n,orientation:"horizontal"}),y:o({orientation:"vertical"})}},RC=e=>e.getById(pC(e)),tl=e=>e.getById(mC(e)),TC=e=>e.getById(bC(e)),NC=(e,t)=>e.getById(kC(e,t)),_C=(e,t,n,r)=>{const o=NC(e,n);if(!o)return;const{getPercentValue:i}=Fu(t,o);return{x:i({dir:r,orientation:"horizontal"}),y:i({orientation:"vertical"})}},AC=e=>[...Ti(Ui(e),"input[data-channel]"),...Ti(RC(e),"input[data-channel]")];function VC(e,t){if(t==null)return"";if(t==="hex")return e.toString("hex");if(t==="css")return e.toString("css");if(t in e)return e.getChannelValue(t).toString();const n=e.getFormat()==="hsla";switch(t){case"hue":return n?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return n?e.toFormat("hsla").getChannelValue("saturation").toString():e.toFormat("hsba").getChannelValue("saturation").toString();case"lightness":return e.toFormat("hsla").getChannelValue("lightness").toString();case"brightness":return e.toFormat("hsba").getChannelValue("brightness").toString();case"red":case"green":case"blue":return e.toFormat("rgba").getChannelValue(t).toString();default:return e.getChannelValue(t).toString()}}var Ad=e=>Fi(e),LC=/^[0-9a-fA-F]{3,8}$/;function FC(e){return LC.test(e)}function DC(e){return e.startsWith("#")?e:FC(e)?`#${e}`:e}var{and:zC}=Zt();zC("isOpenControlled","closeOnSelect");function Vd(e,t,n){const r=AC(e);ee(()=>{r.forEach(o=>{const i=o.dataset.channel;Ei(o,VC(n||t,i))})})}function MC(e,t){const n=OC(e);n&&ee(()=>Ei(n,t))}U()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","inline","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]),U()(["xChannel","yChannel"]),U()(["channel","orientation"]),U()(["value","disabled"]),U()(["value","respectAlpha"]),U()(["size"]);const[Ld,$C]=hr({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:""}),Fd=e=>ju()(e,["lazyMount","unmountOnExit"]);var Dd=G("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");Dd.build();var zd=e=>{var t;return((t=e.ids)==null?void 0:t.root)??`accordion:${e.id}`},Md=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.itemTrigger)==null?void 0:r.call(n,t))??`accordion:${e.id}:trigger:${t}`},jC=e=>e.getById(zd(e)),Gi=e=>{const n=`[aria-controls][data-ownedby='${CSS.escape(zd(e))}']:not([disabled])`;return Ti(jC(e),n)},BC=e=>io(Gi(e)),WC=e=>ya(Gi(e)),HC=(e,t)=>Jy(Gi(e),Md(e,t)),UC=(e,t)=>Zy(Gi(e),Md(e,t)),{and:GC,not:qC}=Zt();GC("isExpanded","canToggle"),qC("isExpanded"),U()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]),U()(["value","disabled"]);var go=(e,t)=>({x:e,y:t});function KC(e){const{x:t,y:n,width:r,height:o}=e,i=t+r/2,s=n+o/2;return{x:t,y:n,width:r,height:o,minX:t,minY:n,maxX:t+r,maxY:n+o,midX:i,midY:s,center:go(i,s)}}function XC(e){const t=go(e.minX,e.minY),n=go(e.maxX,e.minY),r=go(e.maxX,e.maxY),o=go(e.minX,e.maxY);return{top:t,right:n,bottom:r,left:o}}function YC(e,t){const n=KC(e),{top:r,right:o,left:i,bottom:s}=XC(n),[a]=t.split("-");return{top:[i,r,o,s],right:[r,o,s,i],bottom:[r,i,s,o],left:[o,r,i,s]}[a]}function QC(e,t){const{x:n,y:r}=t;let o=!1;for(let i=0,s=e.length-1;ir!=u>r&&n<(c-a)*(r-l)/(u-l)+a&&(o=!o)}return o}var $d=G("avatar").parts("root","image","fallback");$d.build(),U()(["dir","id","ids","onStatusChange","getRootNode"]);function JC(e){return!(e.metaKey||!wi()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var ZC=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ek(e,t,n){const r=n?nt(n):null,o=Pe(r);return e=e||r instanceof o.HTMLInputElement&&!ZC.has(r==null?void 0:r.type)||r instanceof o.HTMLTextAreaElement||r instanceof o.HTMLElement&&r.isContentEditable,!(e&&t==="keyboard"&&n instanceof o.KeyboardEvent&&!Reflect.has(tk,n.key))}var Nn=null,nl=new Set,po=new Map,_n=!1,rl=!1,tk={Tab:!0,Escape:!0};function qi(e,t){for(let n of nl)n(e,t)}function Ki(e){_n=!0,JC(e)&&(Nn="keyboard",qi("keyboard",e))}function ct(e){Nn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(_n=!0,qi("pointer",e))}function jd(e){Iy(e)&&(_n=!0,Nn="virtual")}function Bd(e){const t=nt(e);t===Pe(t)||t===qe(t)||(!_n&&!rl&&(Nn="virtual",qi("virtual",e)),_n=!1,rl=!1)}function Wd(){_n=!1,rl=!0}function nk(e){if(typeof window>"u"||po.get(Pe(e)))return;const t=Pe(e),n=qe(e);let r=t.HTMLElement.prototype.focus;function o(){Nn="virtual",qi("virtual",null),_n=!0,r.apply(this,arguments)}Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:o}),n.addEventListener("keydown",Ki,!0),n.addEventListener("keyup",Ki,!0),n.addEventListener("click",jd,!0),t.addEventListener("focus",Bd,!0),t.addEventListener("blur",Wd,!1),typeof t.PointerEvent<"u"?(n.addEventListener("pointerdown",ct,!0),n.addEventListener("pointermove",ct,!0),n.addEventListener("pointerup",ct,!0)):(n.addEventListener("mousedown",ct,!0),n.addEventListener("mousemove",ct,!0),n.addEventListener("mouseup",ct,!0)),t.addEventListener("beforeunload",()=>{rk(e)},{once:!0}),po.set(t,{focus:r})}var rk=(e,t)=>{const n=Pe(e),r=qe(e);po.has(n)&&(n.HTMLElement.prototype.focus=po.get(n).focus,r.removeEventListener("keydown",Ki,!0),r.removeEventListener("keyup",Ki,!0),r.removeEventListener("click",jd,!0),n.removeEventListener("focus",Bd,!0),n.removeEventListener("blur",Wd,!1),typeof n.PointerEvent<"u"?(r.removeEventListener("pointerdown",ct,!0),r.removeEventListener("pointermove",ct,!0),r.removeEventListener("pointerup",ct,!0)):(r.removeEventListener("mousedown",ct,!0),r.removeEventListener("mousemove",ct,!0),r.removeEventListener("mouseup",ct,!0)),po.delete(n))};function Hd(){return Nn==="keyboard"}function ok(e={}){const{isTextInput:t,autoFocus:n,onChange:r,root:o}=e;nk(o),r==null||r({isFocusVisible:n||Hd(),modality:Nn});const i=(s,a)=>{ek(!!t,s,a)&&(r==null||r({isFocusVisible:Hd(),modality:s}))};return nl.add(i),()=>{nl.delete(i)}}var Ud=G("checkbox").parts("root","label","control","indicator");Ud.build(),U()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const ik=Ud.extendWith("group"),[HN,sk]=hr({name:"FieldContext",hookName:"useFieldContext",providerName:"",strict:!1});var Gd=G("clipboard").parts("root","control","trigger","indicator","input","label");Gd.build(),U()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]),U()(["copied"]);const ak=Nd.extendWith("view");var lk=Object.defineProperty,ck=(e,t,n)=>t in e?lk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A=(e,t,n)=>ck(e,typeof t!="symbol"?t+"":t,n),Xi={itemToValue(e){return typeof e=="string"?e:On(e)&&Yt(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:On(e)&&Yt(e,"label")?e.label:Xi.itemToValue(e)},isItemDisabled(e){return On(e)&&Yt(e,"disabled")?!!e.disabled:!1}},Yi=class X0{constructor(t){this.options=t,A(this,"items"),A(this,"indexMap",null),A(this,"copy",n=>new X0({...this.options,items:n??[...this.items]})),A(this,"isEqual",n=>gt(this.items,n.items)),A(this,"setItems",n=>this.copy(n)),A(this,"getValues",(n=this.items)=>{const r=[];for(const o of n){const i=this.getItemValue(o);i!=null&&r.push(i)}return r}),A(this,"find",n=>{if(n==null)return null;const r=this.indexOf(n);return r!==-1?this.at(r):null}),A(this,"findMany",n=>{const r=[];for(const o of n){const i=this.find(o);i!=null&&r.push(i)}return r}),A(this,"at",n=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[n]??null;let r=0;const o=this.group();for(const[,i]of o)for(const s of i){if(r===n)return s;r++}return null}),A(this,"sortFn",(n,r)=>{const o=this.indexOf(n),i=this.indexOf(r);return(o??0)-(i??0)}),A(this,"sort",n=>[...n].sort(this.sortFn.bind(this))),A(this,"getItemValue",n=>{var r,o;return n==null?null:((o=(r=this.options).itemToValue)==null?void 0:o.call(r,n))??Xi.itemToValue(n)}),A(this,"getItemDisabled",n=>{var r,o;return n==null?!1:((o=(r=this.options).isItemDisabled)==null?void 0:o.call(r,n))??Xi.isItemDisabled(n)}),A(this,"stringifyItem",n=>{var r,o;return n==null?null:((o=(r=this.options).itemToString)==null?void 0:o.call(r,n))??Xi.itemToString(n)}),A(this,"stringify",n=>n==null?null:this.stringifyItem(this.find(n))),A(this,"stringifyItems",(n,r=", ")=>{const o=[];for(const i of n){const s=this.stringifyItem(i);s!=null&&o.push(s)}return o.join(r)}),A(this,"stringifyMany",(n,r)=>this.stringifyItems(this.findMany(n),r)),A(this,"has",n=>this.indexOf(n)!==-1),A(this,"hasItem",n=>n==null?!1:this.has(this.getItemValue(n))),A(this,"group",()=>{const{groupBy:n,groupSort:r}=this.options;if(!n)return[["",[...this.items]]];const o=new Map;this.items.forEach((s,a)=>{const l=n(s,a);o.has(l)||o.set(l,[]),o.get(l).push(s)});let i=Array.from(o.entries());return r&&i.sort(([s],[a])=>{if(typeof r=="function")return r(s,a);if(Array.isArray(r)){const l=r.indexOf(s),c=r.indexOf(a);return l===-1?1:c===-1?-1:l-c}return r==="asc"?s.localeCompare(a):r==="desc"?a.localeCompare(s):0}),i}),A(this,"getNextValue",(n,r=1,o=!1)=>{let i=this.indexOf(n);if(i===-1)return null;for(i=o?Math.min(i+r,this.size-1):i+r;i<=this.size&&this.getItemDisabled(this.at(i));)i++;return this.getItemValue(this.at(i))}),A(this,"getPreviousValue",(n,r=1,o=!1)=>{let i=this.indexOf(n);if(i===-1)return null;for(i=o?Math.max(i-r,0):i-r;i>=0&&this.getItemDisabled(this.at(i));)i--;return this.getItemValue(this.at(i))}),A(this,"indexOf",n=>{if(n==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(r=>this.getItemValue(r)===n);if(!this.indexMap){this.indexMap=new Map;let r=0;const o=this.group();for(const[,i]of o)for(const s of i){const a=this.getItemValue(s);a!=null&&this.indexMap.set(a,r),r++}}return this.indexMap.get(n)??-1}),A(this,"getByText",(n,r)=>{const o=r!=null?this.indexOf(r):-1,i=n.length===1;for(let s=0;s{const{state:o,currentValue:i,timeout:s=350}=r,a=o.keysSoFar+n,c=a.length>1&&Array.from(a).every(f=>f===a[0])?a[0]:a,u=this.getByText(c,i),d=this.getItemValue(u);function h(){clearTimeout(o.timer),o.timer=-1}function p(f){o.keysSoFar=f,h(),f!==""&&(o.timer=+setTimeout(()=>{p(""),h()},s))}return p(a),d}),A(this,"update",(n,r)=>{let o=this.indexOf(n);return o===-1?this:this.copy([...this.items.slice(0,o),r,...this.items.slice(o+1)])}),A(this,"upsert",(n,r,o="append")=>{let i=this.indexOf(n);return i===-1?(o==="append"?this.append:this.prepend)(r):this.copy([...this.items.slice(0,i),r,...this.items.slice(i+1)])}),A(this,"insert",(n,...r)=>this.copy(mo(this.items,n,...r))),A(this,"insertBefore",(n,...r)=>{let o=this.indexOf(n);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(mo(this.items,o,...r))}),A(this,"insertAfter",(n,...r)=>{let o=this.indexOf(n);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(mo(this.items,o+1,...r))}),A(this,"prepend",(...n)=>this.copy(mo(this.items,0,...n))),A(this,"append",(...n)=>this.copy(mo(this.items,this.items.length,...n))),A(this,"filter",n=>{const r=this.items.filter((o,i)=>n(this.stringifyItem(o),i,o));return this.copy(r)}),A(this,"remove",(...n)=>{const r=n.map(o=>typeof o=="string"?o:this.getItemValue(o));return this.copy(this.items.filter(o=>{const i=this.getItemValue(o);return i==null?!1:!r.includes(i)}))}),A(this,"move",(n,r)=>{const o=this.indexOf(n);return o===-1?this:this.copy(Qi(this.items,[o],r))}),A(this,"moveBefore",(n,...r)=>{let o=this.items.findIndex(s=>this.getItemValue(s)===n);if(o===-1)return this;let i=r.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(Qi(this.items,i,o))}),A(this,"moveAfter",(n,...r)=>{let o=this.items.findIndex(s=>this.getItemValue(s)===n);if(o===-1)return this;let i=r.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(Qi(this.items,i,o+1))}),A(this,"reorder",(n,r)=>this.copy(Qi(this.items,[n],r))),A(this,"compareValue",(n,r)=>{const o=this.indexOf(n),i=this.indexOf(r);return oi?1:0}),A(this,"range",(n,r)=>{let o=[],i=n;for(;i!=null;){if(this.find(i)&&o.push(i),i===r)return o;i=this.getNextValue(i)}return[]}),A(this,"getValueRange",(n,r)=>n&&r?this.compareValue(n,r)<=0?this.range(n,r):this.range(r,n):[]),A(this,"toString",()=>{let n="";for(const r of this.items){const o=this.getItemValue(r),i=this.stringifyItem(r),s=this.getItemDisabled(r),a=[o,i,s].filter(Boolean).join(":");n+=a+","}return n}),A(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let t=0;for(;this.getItemDisabled(this.at(t));)t++;return this.getItemValue(this.at(t))}get lastValue(){let t=this.size-1;for(;this.getItemDisabled(this.at(t));)t--;return this.getItemValue(this.at(t))}*[Symbol.iterator](){yield*this.items}},uk=(e,t)=>!!(e!=null&&e.toLowerCase().startsWith(t.toLowerCase()));function mo(e,t,...n){return[...e.slice(0,t),...n,...e.slice(t)]}function Qi(e,t,n){t=[...t].sort((o,i)=>o-i);const r=t.map(o=>e[o]);for(let o=t.length-1;o>=0;o--)e=[...e.slice(0,t[o]),...e.slice(t[o]+1)];return n=Math.max(0,n-t.filter(o=>ot[n])return 1}return e.length-t.length}function hk(e){return e.sort(Kd)}function fk(e,t){let n;return it(e,{...t,onEnter:(r,o)=>{if(t.predicate(r,o))return n=r,"stop"}}),n}function gk(e,t){const n=[];return it(e,{onEnter:(r,o)=>{t.predicate(r,o)&&n.push(r)},getChildren:t.getChildren}),n}function Xd(e,t){let n;return it(e,{onEnter:(r,o)=>{if(t.predicate(r,o))return n=[...o],"stop"},getChildren:t.getChildren}),n}function pk(e,t){let n=t.initialResult;return it(e,{...t,onEnter:(r,o)=>{n=t.nextResult(n,r,o)}}),n}function mk(e,t){return pk(e,{...t,initialResult:[],nextResult:(n,r,o)=>(n.push(...t.transform(r,o)),n)})}function vk(e,t){const{predicate:n,create:r,getChildren:o}=t,i=(s,a)=>{const l=o(s,a),c=[];l.forEach((p,f)=>{const g=[...a,f],m=i(p,g);m&&c.push(m)});const u=a.length===0,d=n(s,a),h=c.length>0;return u||d||h?r(s,c,a):null};return i(e,[])||r(e,[],[])}function bk(e,t){const n=[];let r=0;const o=new Map,i=new Map;return it(e,{getChildren:t.getChildren,onEnter:(s,a)=>{o.has(s)||o.set(s,r++);const l=t.getChildren(s,a);l.forEach(p=>{i.has(p)||i.set(p,s),o.has(p)||o.set(p,r++)});const c=l.length>0?l.map(p=>o.get(p)):void 0,u=i.get(s),d=u?o.get(u):void 0,h=o.get(s);n.push({...s,_children:c,_parent:d,_index:h})}}),n}function yk(e,t){return{type:"insert",index:e,nodes:t}}function xk(e){return{type:"remove",indexes:e}}function ol(){return{type:"replace"}}function Yd(e){return[e.slice(0,-1),e[e.length-1]]}function Qd(e,t,n=new Map){var s;const[r,o]=Yd(e);for(let a=r.length-1;a>=0;a--){const l=r.slice(0,a).join();switch((s=n.get(l))==null?void 0:s.type){case"remove":continue}n.set(l,ol())}const i=n.get(r.join());switch(i==null?void 0:i.type){case"remove":n.set(r.join(),{type:"removeThenInsert",removeIndexes:i.indexes,insertIndex:o,insertNodes:t});break;default:n.set(r.join(),yk(o,t))}return n}function Jd(e){const t=new Map,n=new Map;for(const r of e){const o=r.slice(0,-1).join(),i=n.get(o)??[];i.push(r[r.length-1]),n.set(o,i.sort((s,a)=>s-a))}for(const r of e)for(let o=r.length-2;o>=0;o--){const i=r.slice(0,o).join();t.has(i)||t.set(i,ol())}for(const[r,o]of n)t.set(r,xk(o));return t}function Ck(e,t){const n=new Map,[r,o]=Yd(e);for(let i=r.length-1;i>=0;i--){const s=r.slice(0,i).join();n.set(s,ol())}return n.set(r.join(),{type:"removeThenInsert",removeIndexes:[o],insertIndex:o,insertNodes:[t]}),n}function Ji(e,t,n){return kk(e,{...n,getChildren:(r,o)=>{const i=o.join(),s=t.get(i);switch(s==null?void 0:s.type){case"replace":case"remove":case"removeThenInsert":case"insert":return n.getChildren(r,o);default:return[]}},transform:(r,o,i)=>{const s=i.join(),a=t.get(s);switch(a==null?void 0:a.type){case"remove":return n.create(r,o.filter((u,d)=>!a.indexes.includes(d)),i);case"removeThenInsert":const l=o.filter((u,d)=>!a.removeIndexes.includes(d)),c=a.removeIndexes.reduce((u,d)=>d{const i=[0,...o],s=i.join(),a=t.transform(r,n[s]??[],o),l=i.slice(0,-1).join(),c=n[l]??[];c.push(a),n[l]=c}}),n[""][0]}function Sk(e,t){const{nodes:n,at:r}=t;if(r.length===0)throw new Error("Can't insert nodes at the root");const o=Qd(r,n);return Ji(e,o,t)}function wk(e,t){if(t.at.length===0)return t.node;const n=Ck(t.at,t.node);return Ji(e,n,t)}function Ek(e,t){if(t.indexPaths.length===0)return e;for(const r of t.indexPaths)if(r.length===0)throw new Error("Can't remove the root node");const n=Jd(t.indexPaths);return Ji(e,n,t)}function Ok(e,t){if(t.indexPaths.length===0)return e;for(const i of t.indexPaths)if(i.length===0)throw new Error("Can't move the root node");if(t.to.length===0)throw new Error("Can't move nodes to the root");const n=dk(t.indexPaths),r=n.map(i=>qd(e,i,t)),o=Qd(t.to,r,Jd(n));return Ji(e,o,t)}function it(e,t){const{onEnter:n,onLeave:r,getChildren:o}=t;let i=[],s=[{node:e}];const a=t.reuseIndexPath?()=>i:()=>i.slice();for(;s.length>0;){let l=s[s.length-1];if(l.state===void 0){const u=n==null?void 0:n(l.node,a());if(u==="stop")return;l.state=u==="skip"?-1:0}const c=l.children||o(l.node,a());if(l.children||(l.children=c),l.state!==-1){if(l.stategt(this.rootNode,n.rootNode)),A(this,"getNodeChildren",n=>{var r,o;return((o=(r=this.options).nodeToChildren)==null?void 0:o.call(r,n))??kr.nodeToChildren(n)??[]}),A(this,"resolveIndexPath",n=>typeof n=="string"?this.getIndexPath(n):n),A(this,"resolveNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(r):void 0}),A(this,"getNodeChildrenCount",n=>{var r,o;return((o=(r=this.options).nodeToChildrenCount)==null?void 0:o.call(r,n))??kr.nodeToChildrenCount(n)}),A(this,"getNodeValue",n=>{var r,o;return((o=(r=this.options).nodeToValue)==null?void 0:o.call(r,n))??kr.nodeToValue(n)}),A(this,"getNodeDisabled",n=>{var r,o;return((o=(r=this.options).isNodeDisabled)==null?void 0:o.call(r,n))??kr.isNodeDisabled(n)}),A(this,"stringify",n=>{const r=this.findNode(n);return r?this.stringifyNode(r):null}),A(this,"stringifyNode",n=>{var r,o;return((o=(r=this.options).nodeToString)==null?void 0:o.call(r,n))??kr.nodeToString(n)}),A(this,"getFirstNode",(n=this.rootNode)=>{let r;return it(n,{getChildren:this.getNodeChildren,onEnter:(o,i)=>{if(!r&&i.length>0&&!this.getNodeDisabled(o))return r=o,"stop"}}),r}),A(this,"getLastNode",(n=this.rootNode,r={})=>{let o;return it(n,{getChildren:this.getNodeChildren,onEnter:(i,s)=>{var a;if(!this.isSameNode(i,n)){if((a=r.skip)!=null&&a.call(r,{value:this.getNodeValue(i),node:i,indexPath:s}))return"skip";s.length>0&&!this.getNodeDisabled(i)&&(o=i)}}}),o}),A(this,"at",n=>qd(this.rootNode,n,{getChildren:this.getNodeChildren})),A(this,"findNode",(n,r=this.rootNode)=>fk(r,{getChildren:this.getNodeChildren,predicate:o=>this.getNodeValue(o)===n})),A(this,"findNodes",(n,r=this.rootNode)=>{const o=new Set(n.filter(i=>i!=null));return gk(r,{getChildren:this.getNodeChildren,predicate:i=>o.has(this.getNodeValue(i))})}),A(this,"sort",n=>n.reduce((r,o)=>{const i=this.getIndexPath(o);return i&&r.push({value:o,indexPath:i}),r},[]).sort((r,o)=>Kd(r.indexPath,o.indexPath)).map(({value:r})=>r)),A(this,"getIndexPath",n=>Xd(this.rootNode,{getChildren:this.getNodeChildren,predicate:r=>this.getNodeValue(r)===n})),A(this,"getValue",n=>{const r=this.at(n);return r?this.getNodeValue(r):void 0}),A(this,"getValuePath",n=>{if(!n)return[];const r=[];let o=[...n];for(;o.length>0;){const i=this.at(o);i&&r.unshift(this.getNodeValue(i)),o.pop()}return r}),A(this,"getDepth",n=>{const r=Xd(this.rootNode,{getChildren:this.getNodeChildren,predicate:o=>this.getNodeValue(o)===n});return(r==null?void 0:r.length)??0}),A(this,"isSameNode",(n,r)=>this.getNodeValue(n)===this.getNodeValue(r)),A(this,"isRootNode",n=>this.isSameNode(n,this.rootNode)),A(this,"contains",(n,r)=>!n||!r?!1:r.slice(0,n.length).every((o,i)=>n[i]===r[i])),A(this,"getNextNode",(n,r={})=>{let o=!1,i;return it(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{var c;if(this.isRootNode(s))return;const l=this.getNodeValue(s);if((c=r.skip)!=null&&c.call(r,{value:l,node:s,indexPath:a}))return l===n&&(o=!0),"skip";if(o&&!this.getNodeDisabled(s))return i=s,"stop";l===n&&(o=!0)}}),i}),A(this,"getPreviousNode",(n,r={})=>{let o,i=!1;return it(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{var c;if(this.isRootNode(s))return;const l=this.getNodeValue(s);if((c=r.skip)!=null&&c.call(r,{value:l,node:s,indexPath:a}))return"skip";if(l===n)return i=!0,"stop";this.getNodeDisabled(s)||(o=s)}}),i?o:void 0}),A(this,"getParentNodes",n=>{var i;const r=(i=this.resolveIndexPath(n))==null?void 0:i.slice();if(!r)return[];const o=[];for(;r.length>0;){r.pop();const s=this.at(r);s&&!this.isRootNode(s)&&o.unshift(s)}return o}),A(this,"getDescendantNodes",(n,r)=>{const o=this.resolveNode(n);if(!o)return[];const i=[];return it(o,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{a.length!==0&&(!(r!=null&&r.withBranch)&&this.isBranchNode(s)||i.push(s))}}),i}),A(this,"getDescendantValues",(n,r)=>this.getDescendantNodes(n,r).map(i=>this.getNodeValue(i))),A(this,"getParentIndexPath",n=>n.slice(0,-1)),A(this,"getParentNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(this.getParentIndexPath(r)):void 0}),A(this,"visit",n=>{const{skip:r,...o}=n;it(this.rootNode,{...o,getChildren:this.getNodeChildren,onEnter:(i,s)=>{var a;if(!this.isRootNode(i))return r!=null&&r({value:this.getNodeValue(i),node:i,indexPath:s})?"skip":(a=o.onEnter)==null?void 0:a.call(o,i,s)}})}),A(this,"getPreviousSibling",n=>{const r=this.getParentNode(n);if(!r)return;const o=this.getNodeChildren(r);let i=n[n.length-1];for(;--i>=0;){const s=o[i];if(!this.getNodeDisabled(s))return s}}),A(this,"getNextSibling",n=>{const r=this.getParentNode(n);if(!r)return;const o=this.getNodeChildren(r);let i=n[n.length-1];for(;++i{const r=this.getParentNode(n);return r?this.getNodeChildren(r):[]}),A(this,"getValues",(n=this.rootNode)=>mk(n,{getChildren:this.getNodeChildren,transform:o=>[this.getNodeValue(o)]}).slice(1)),A(this,"isValidDepth",(n,r)=>r==null?!0:typeof r=="function"?r(n.length):n.length===r),A(this,"isBranchNode",n=>this.getNodeChildren(n).length>0||this.getNodeChildrenCount(n)!=null),A(this,"getBranchValues",(n=this.rootNode,r={})=>{let o=[];return it(n,{getChildren:this.getNodeChildren,onEnter:(i,s)=>{var l;if(s.length===0)return;const a=this.getNodeValue(i);if((l=r.skip)!=null&&l.call(r,{value:a,node:i,indexPath:s}))return"skip";this.isBranchNode(i)&&this.isValidDepth(s,r.depth)&&o.push(this.getNodeValue(i))}}),o}),A(this,"flatten",(n=this.rootNode)=>bk(n,{getChildren:this.getNodeChildren})),A(this,"_create",(n,r)=>this.getNodeChildren(n).length>0||r.length>0?{...n,children:r}:{...n}),A(this,"_insert",(n,r,o)=>this.copy(Sk(n,{at:r,nodes:o,getChildren:this.getNodeChildren,create:this._create}))),A(this,"copy",n=>new Y0({...this.options,rootNode:n})),A(this,"_replace",(n,r,o)=>this.copy(wk(n,{at:r,node:o,getChildren:this.getNodeChildren,create:this._create}))),A(this,"_move",(n,r,o)=>this.copy(Ok(n,{indexPaths:r,to:o,getChildren:this.getNodeChildren,create:this._create}))),A(this,"_remove",(n,r)=>this.copy(Ek(n,{indexPaths:r,getChildren:this.getNodeChildren,create:this._create}))),A(this,"replace",(n,r)=>this._replace(this.rootNode,n,r)),A(this,"remove",n=>this._remove(this.rootNode,n)),A(this,"insertBefore",(n,r)=>this.getParentNode(n)?this._insert(this.rootNode,n,r):void 0),A(this,"insertAfter",(n,r)=>{if(!this.getParentNode(n))return;const i=[...n.slice(0,-1),n[n.length-1]+1];return this._insert(this.rootNode,i,r)}),A(this,"move",(n,r)=>this._move(this.rootNode,n,r)),A(this,"filter",n=>{const r=vk(this.rootNode,{predicate:n,getChildren:this.getNodeChildren,create:this._create});return this.copy(r)}),A(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},kr={nodeToValue(e){return typeof e=="string"?e:On(e)&&Yt(e,"value")?e.value:""},nodeToString(e){return typeof e=="string"?e:On(e)&&Yt(e,"label")?e.label:kr.nodeToValue(e)},isNodeDisabled(e){return On(e)&&Yt(e,"disabled")?!!e.disabled:!1},nodeToChildren(e){return e.children},nodeToChildrenCount(e){if(On(e)&&Yt(e,"childrenCount"))return e.childrenCount}},Sr=new WeakMap,Zi=new WeakMap,es={},il=0,th=e=>e&&(e.host||th(e.parentNode)),Ik=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=th(n);return r&&e.contains(r)?r:(console.error("[zag-js > ariaHidden] target",n,"in not contained inside",e,". Doing nothing"),null)}).filter(n=>!!n),Pk=new Set(["script","output","status","next-route-announcer"]),Rk=e=>Pk.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),Tk=(e,t)=>{const{parentNode:n,markerName:r,controlAttribute:o}=t,i=Ik(n,Array.isArray(e)?e:[e]);es[r]||(es[r]=new WeakMap);const s=es[r],a=[],l=new Set,c=new Set(i),u=h=>{!h||l.has(h)||(l.add(h),u(h.parentNode))};i.forEach(u);const d=h=>{!h||c.has(h)||Array.prototype.forEach.call(h.children,p=>{if(l.has(p))d(p);else try{if(Rk(p))return;const g=p.getAttribute(o)==="true",m=(Sr.get(p)||0)+1,b=(s.get(p)||0)+1;Sr.set(p,m),s.set(p,b),a.push(p),m===1&&g&&Zi.set(p,!0),b===1&&p.setAttribute(r,""),g||p.setAttribute(o,"true")}catch(f){console.error("[zag-js > ariaHidden] cannot operate on ",p,f)}})};return d(n),l.clear(),il++,()=>{a.forEach(h=>{const p=Sr.get(h)-1,f=s.get(h)-1;Sr.set(h,p),s.set(h,f),p||(Zi.has(h)||h.removeAttribute(o),Zi.delete(h)),f||h.removeAttribute(r)}),il--,il||(Sr=new WeakMap,Sr=new WeakMap,Zi=new WeakMap,es={})}},Nk=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,_k=(e,t=Nk(e),n="data-aria-hidden")=>{if(t)return Tk(e,{parentNode:t,markerName:n,controlAttribute:"aria-hidden"})},Ak=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function nh(e,t={}){const{defer:n=!0}=t,r=n?Ak:i=>i(),o=[];return o.push(r(()=>{const s=(typeof e=="function"?e():e).filter(Boolean);s.length!==0&&o.push(_k(s))})),()=>{o.forEach(i=>i==null?void 0:i())}}var rh=G("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");rh.build();var oh=e=>new Yi(e);oh.empty=()=>new Yi({items:[]});var Vk=e=>{var t;return((t=e.ids)==null?void 0:t.control)??`combobox:${e.id}:control`},Lk=e=>{var t;return((t=e.ids)==null?void 0:t.input)??`combobox:${e.id}:input`},Fk=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`combobox:${e.id}:content`},Dk=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`combobox:${e.id}:popper`},zk=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`combobox:${e.id}:toggle-btn`},Mk=e=>{var t;return((t=e.ids)==null?void 0:t.clearTrigger)??`combobox:${e.id}:clear-btn`},rn=e=>e.getById(Fk(e)),wr=e=>e.getById(Lk(e)),ih=e=>e.getById(Dk(e)),sh=e=>e.getById(Vk(e)),vo=e=>e.getById(zk(e)),ah=e=>e.getById(Mk(e)),bo=(e,t)=>{if(t==null)return null;const n=`[role=option][data-value="${CSS.escape(t)}"]`;return Yy(rn(e),n)},lh=e=>{const t=wr(e);e.isActiveElement(t)||t==null||t.focus({preventScroll:!0})},$k=e=>{const t=vo(e);e.isActiveElement(t)||t==null||t.focus({preventScroll:!0})},{guards:jk,createMachine:Bk,choose:Wk}=$u(),{and:Re,not:st}=jk;Bk({props({props:e}){return{loopFocus:!0,openOnClick:!1,defaultValue:[],closeOnSelect:!e.multiple,allowCustomValue:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:t}){Vu(t)},collection:oh.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"suggesting":"idle"},context({prop:e,bindable:t,getContext:n,getEvent:r}){return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:gt,hash(o){return o.join(",")},onChange(o){var c;const i=n(),s=i.get("selectedItems"),a=e("collection"),l=o.map(u=>s.find(h=>a.getItemValue(h)===u)||a.find(u));i.set("selectedItems",l),(c=e("onValueChange"))==null||c({value:o,items:l})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(o){var s;const i=e("collection").find(o);(s=e("onHighlightChange"))==null||s({highlightedValue:o,highlightedItem:i})}})),inputValue:t(()=>{let o=e("inputValue")||e("defaultInputValue")||"";const i=e("defaultValue")||e("value")||[];if(!o.trim()&&!e("multiple")){const s=e("collection").stringifyMany(i);o=Mt(e("selectionBehavior"),{preserve:o||s,replace:s,clear:""})}return{defaultValue:o,value:e("inputValue"),onChange(s){var c;const a=r(),l=(a.previousEvent||a).src;(c=e("onInputValueChange"))==null||c({inputValue:s,reason:l})}}}),highlightedItem:t(()=>{const o=e("highlightedValue");return{defaultValue:e("collection").find(o)}}),selectedItems:t(()=>{const o=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(o)}})}},computed:{isInputValueEmpty:({context:e})=>e.get("inputValue").length===0,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>e("inputBehavior")==="autocomplete",autoHighlight:({prop:e})=>e("inputBehavior")==="autohighlight",hasSelectedItems:({context:e})=>e.get("value").length>0,valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:n,action:r,send:o}){n([()=>e.hash("value")],()=>{r(["syncSelectedItems"])}),n([()=>e.get("inputValue")],()=>{r(["syncInputValue"])}),n([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem","autofillInputValue"])}),n([()=>t("open")],()=>{r(["toggleVisibility"])}),n([()=>t("collection").toString()],()=>{o({type:"CHILDREN_CHANGE"})})},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:Wk([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{idle:{tags:["idle","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"suggesting"},{target:"interacting"}],"INPUT.CHANGE":[{guard:Re("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:Re("isCustomValue",st("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:Re("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement","hideOtherElements"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:Re("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:Re("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:Re("isOpenControlled","isCustomValue",st("hasHighlightedItem"),st("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Re("isCustomValue",st("hasHighlightedItem"),st("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:Re("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"ITEM.CLICK":[{guard:Re("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:Re("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:Re("isOpenControlled","isCustomValue",st("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Re("isCustomValue",st("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement","hideOtherElements"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"autoHighlight",actions:["highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:Re("isOpenControlled","isCustomValue",st("hasHighlightedItem"),st("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Re("isCustomValue",st("hasHighlightedItem"),st("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:Re("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.INTERACT_OUTSIDE":[{guard:Re("isOpenControlled","isCustomValue",st("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Re("isCustomValue",st("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.CLICK":[{guard:Re("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>e("open")!=null,openOnChange:({prop:e,context:t})=>{const n=e("openOnChange");return Nb(n)?n:!!(n!=null&&n({inputValue:t.get("inputValue")}))},restoreFocus:({event:e})=>e.restoreFocus==null?!0:!!e.restoreFocus,isChangeEvent:({event:e})=>{var t;return((t=e.previousEvent)==null?void 0:t.type)==="INPUT.CHANGE"},autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue"))},effects:{trackDismissableLayer({send:e,prop:t,scope:n}){return t("disableLayer")?void 0:Cr(()=>rn(n),{defer:!0,exclude:()=>[wr(n),vo(n),ah(n)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(o){o.preventDefault(),o.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},hideOtherElements({scope:e}){return nh([wr(e),rn(e),vo(e),ah(e)])},trackPlacement({context:e,prop:t,scope:n}){const r=()=>sh(n)||vo(n),o=()=>ih(n);return e.set("currentPlacement",t("positioning").placement),bt(r,o,{...t("positioning"),defer:!0,onComplete(i){e.set("currentPlacement",i.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:n,event:r}){const o=wr(n);let i=[];const s=c=>{const u=r.current().type.includes("POINTER"),d=e.get("highlightedValue");if(u||!d)return;const h=rn(n),p=t("scrollToIndexFn");if(p){const m=t("collection").indexOf(d);p({index:m,immediate:c,getElement:()=>bo(n,d)});return}const f=bo(n,d),g=ee(()=>{Pi(f,{rootEl:h,block:"nearest"})});i.push(g)},a=ee(()=>s(!0));i.push(a);const l=Oi(o,{attributes:["aria-activedescendant"],callback:()=>s(!1)});return i.push(l),()=>{i.forEach(c=>c())}}},actions:{reposition({context:e,prop:t,scope:n,event:r}){bt(()=>sh(n),()=>ih(n),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(s){e.set("currentPlacement",s.placement)}})},setHighlightedValue({context:e,event:t}){t.value!=null&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){var a;const{context:t,prop:n}=e,r=n("collection"),o=t.get("highlightedValue");if(!o||!r.has(o))return;const i=n("multiple")?dr(t.get("value"),o):[o];(a=n("onSelect"))==null||a({value:i,itemValue:o}),t.set("value",i);const s=Mt(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(i),clear:""});t.set("inputValue",s)},scrollToHighlightedItem({context:e,prop:t,scope:n}){Ta(()=>{const r=e.get("highlightedValue");if(r==null)return;const o=bo(n,r),i=rn(n),s=t("scrollToIndexFn");if(s){const a=t("collection").indexOf(r);s({index:a,immediate:!0,getElement:()=>bo(n,r)});return}Pi(o,{rootEl:i,block:"nearest"})})},selectItem(e){const{context:t,event:n,flush:r,prop:o}=e;n.value!=null&&r(()=>{var a;const i=o("multiple")?dr(t.get("value"),n.value):[n.value];(a=o("onSelect"))==null||a({value:i,itemValue:n.value}),t.set("value",i);const s=Mt(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(i),clear:""});t.set("inputValue",s)})},clearItem(e){const{context:t,event:n,flush:r,prop:o}=e;n.value!=null&&r(()=>{const i=En(t.get("value"),n.value);t.set("value",i);const s=Mt(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(i),clear:""});t.set("inputValue",s)})},setInitialFocus({scope:e}){ee(()=>{lh(e)})},setFinalFocus({scope:e}){ee(()=>{const t=vo(e);(t==null?void 0:t.dataset.focusable)==null?lh(e):$k(e)})},syncInputValue({context:e,scope:t,event:n}){const r=wr(t);r&&(r.value=e.get("inputValue"),queueMicrotask(()=>{n.current().type!=="INPUT.CHANGE"&&ry(r)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:n}){const r=t("selectionBehavior"),o=Mt(r,{replace:n("hasSelectedItems")?n("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",o)},setValue(e){const{context:t,flush:n,event:r,prop:o}=e;n(()=>{t.set("value",r.value);const i=Mt(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(r.value),clear:""});t.set("inputValue",i)})},clearSelectedItems(e){const{context:t,flush:n,prop:r}=e;n(()=>{t.set("value",[]);const o=Mt(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",o)})},scrollContentToTop({prop:e,scope:t}){const n=e("scrollToIndexFn");if(n){const r=e("collection").firstValue;n({index:0,immediate:!0,getElement:()=>bo(t,r)})}else{const r=rn(t);if(!r)return;r.scrollTop=0}},invokeOnOpen({prop:e,event:t}){var r;const n=ch(t);(r=e("onOpenChange"))==null||r({open:!0,reason:n})},invokeOnClose({prop:e,event:t}){var r;const n=ch(t);(r=e("onOpenChange"))==null||r({open:!1,reason:n})},highlightFirstItem({context:e,prop:t,scope:n}){(rn(n)?queueMicrotask:ee)(()=>{const o=t("collection").firstValue;o&&e.set("highlightedValue",o)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:n}){(rn(n)?queueMicrotask:ee)(()=>{const o=t("collection").lastValue;o&&e.set("highlightedValue",o)})},highlightNextItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),o=t("collection");r?(n=o.getNextValue(r),!n&&t("loopFocus")&&(n=o.firstValue)):n=o.firstValue,n&&e.set("highlightedValue",n)},highlightPrevItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),o=t("collection");r?(n=o.getPreviousValue(r),!n&&t("loopFocus")&&(n=o.lastValue)):n=o.lastValue,n&&e.set("highlightedValue",n)},highlightFirstSelectedItem({context:e,prop:t}){ee(()=>{const[n]=t("collection").sort(e.get("value"));n&&e.set("highlightedValue",n)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:n}){ee(()=>{let r=null;n("hasSelectedItems")?r=t("collection").sort(e.get("value"))[0]:r=t("collection").firstValue,r&&e.set("highlightedValue",r)})},highlightLastOrSelectedItem({context:e,prop:t,computed:n}){ee(()=>{const r=t("collection");let o=null;n("hasSelectedItems")?o=r.sort(e.get("value"))[0]:o=r.lastValue,o&&e.set("highlightedValue",o)})},autofillInputValue({context:e,computed:t,prop:n,event:r,scope:o}){const i=wr(o),s=n("collection");if(!t("autoComplete")||!i||!r.keypress)return;const a=s.stringify(e.get("highlightedValue"));ee(()=>{i.value=a||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:n}=e,r=n("collection"),o=t.get("value"),i=o.map(a=>t.get("selectedItems").find(c=>r.getItemValue(c)===a)||r.find(a));t.set("selectedItems",i);const s=Mt(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(o),clear:""});t.set("inputValue",s)})},syncHighlightedItem({context:e,prop:t}){const n=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",n)},toggleVisibility({event:e,send:t,prop:n}){t({type:n("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function ch(e){return(e.previousEvent||e).src}U()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value"]),U()(["htmlFor"]),U()(["id"]),U()(["item","persistFocus"]);const Hk=rh.extendWith("empty"),[uh,on]=hr({name:"DialogContext",hookName:"useDialogContext",providerName:""}),dh=w.forwardRef((e,t)=>{const n=on(),r=$C(),o=Da({...r,present:n.open}),i=pt(n.getBackdropProps(),o.getPresenceProps(),e);return o.unmounted?null:v.jsx(en.div,{...i,ref:_i(o.ref,t)})});dh.displayName="DialogBackdrop";const hh=w.forwardRef((e,t)=>{const n=on(),r=pt(n.getCloseTriggerProps(),e);return v.jsx(en.button,{...r,ref:t})});hh.displayName="DialogCloseTrigger";const fh=w.forwardRef((e,t)=>{const n=on(),r=za(),o=pt(n.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:v.jsx(en.div,{...o,ref:_i(r.ref,t)})});fh.displayName="DialogContent";const gh=w.forwardRef((e,t)=>{const n=on(),r=pt(n.getDescriptionProps(),e);return v.jsx(en.div,{...r,ref:t})});gh.displayName="DialogDescription";const ph=w.forwardRef((e,t)=>{const n=on(),r=pt(n.getPositionerProps(),e);return za().unmounted?null:v.jsx(en.div,{...r,ref:t})});ph.displayName="DialogPositioner";var Uk=Object.defineProperty,Gk=(e,t,n)=>t in e?Uk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ge=(e,t,n)=>Gk(e,typeof t!="symbol"?t+"":t,n),mh={activateTrap(e,t){if(e.length>0){const r=e[e.length-1];r!==t&&r.pause()}const n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},qk=[],Kk=class{constructor(e,t){ge(this,"trapStack"),ge(this,"config"),ge(this,"doc"),ge(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),ge(this,"listenerCleanups",[]),ge(this,"handleFocus",r=>{const o=nt(r),i=this.findContainerIndex(o,r)>=0;if(i||Sa(o))i&&(this.state.mostRecentlyFocusedNode=o);else{r.stopImmediatePropagation();let s,a=!0;if(this.state.mostRecentlyFocusedNode)if(lo(this.state.mostRecentlyFocusedNode)>0){const l=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:c}=this.state.containerGroups[l];if(c.length>0){const u=c.findIndex(d=>d===this.state.mostRecentlyFocusedNode);u>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?u+1=0&&(s=c[u-1],a=!1))}}else this.state.containerGroups.some(l=>l.tabbableNodes.some(c=>lo(c)>0))||(a=!1);else a=!1;a&&(s=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),s?this.tryFocus(s):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),ge(this,"handlePointerDown",r=>{const o=nt(r);if(!(this.findContainerIndex(o,r)>=0)){if(xo(this.config.clickOutsideDeactivates,r)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}xo(this.config.allowOutsideClick,r)||r.preventDefault()}}),ge(this,"handleClick",r=>{const o=nt(r);this.findContainerIndex(o,r)>=0||xo(this.config.clickOutsideDeactivates,r)||xo(this.config.allowOutsideClick,r)||(r.preventDefault(),r.stopImmediatePropagation())}),ge(this,"handleTabKey",r=>{if(this.config.isKeyForward(r)||this.config.isKeyBackward(r)){this.state.recentNavEvent=r;const o=this.config.isKeyBackward(r),i=this.findNextNavNode({event:r,isBackward:o});if(!i)return;yo(r)&&r.preventDefault(),this.tryFocus(i)}}),ge(this,"handleEscapeKey",r=>{Xk(r)&&xo(this.config.escapeDeactivates,r)!==!1&&(r.preventDefault(),this.deactivate())}),ge(this,"_mutationObserver"),ge(this,"setupMutationObserver",()=>{const r=this.doc.defaultView||window;this._mutationObserver=new r.MutationObserver(o=>{o.some(s=>Array.from(s.removedNodes).some(l=>l===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode())})}),ge(this,"updateObservedNodes",()=>{var r;(r=this._mutationObserver)==null||r.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(o=>{var i;(i=this._mutationObserver)==null||i.observe(o,{subtree:!0,childList:!0})})}),ge(this,"getInitialFocusNode",()=>{let r=this.getNodeForOption("initialFocus",{hasFallback:!0});if(r===!1)return!1;if(r===void 0||r&&!Jt(r))if(this.findContainerIndex(this.doc.activeElement)>=0)r=this.doc.activeElement;else{const o=this.state.tabbableGroups[0];r=o&&o.firstTabbableNode||this.getNodeForOption("fallbackFocus")}else r===null&&(r=this.getNodeForOption("fallbackFocus"));if(!r)throw new Error("Your focus-trap needs to have at least one focusable element");return r.isConnected||(r=this.getNodeForOption("fallbackFocus")),r}),ge(this,"tryFocus",r=>{if(r!==!1&&r!==Pu(this.doc)){if(!r||!r.focus){this.tryFocus(this.getInitialFocusNode());return}r.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=r,Yk(r)&&r.select()}}),ge(this,"deactivate",r=>{if(!this.state.active)return this;const o={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...r};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),mh.deactivateTrap(this.trapStack,this);const i=this.getOption(o,"onDeactivate"),s=this.getOption(o,"onPostDeactivate"),a=this.getOption(o,"checkCanReturnFocus"),l=this.getOption(o,"returnFocus","returnFocusOnDeactivate");i==null||i();const c=()=>{vh(()=>{if(l){const u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(u)}s==null||s()})};if(l&&a){const u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return a(u).then(c,c),this}return c(),this}),ge(this,"pause",r=>{if(this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onPause"),i=this.getOption(r,"onPostPause");return this.state.paused=!0,o==null||o(),this.removeListeners(),this.updateObservedNodes(),i==null||i(),this}),ge(this,"unpause",r=>{if(!this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onUnpause"),i=this.getOption(r,"onPostUnpause");return this.state.paused=!1,o==null||o(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i==null||i(),this}),ge(this,"updateContainerElements",r=>(this.state.containers=Array.isArray(r)?r.filter(Boolean):[r].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),ge(this,"getReturnFocusNode",r=>{const o=this.getNodeForOption("setReturnFocus",{params:[r]});return o||(o===!1?!1:r)}),ge(this,"getOption",(r,o,i)=>r&&r[o]!==void 0?r[o]:this.config[i||o]),ge(this,"getNodeForOption",(r,{hasFallback:o=!1,params:i=[]}={})=>{let s=this.config[r];if(typeof s=="function"&&(s=s(...i)),s===!0&&(s=void 0),!s){if(s===void 0||s===!1)return s;throw new Error(`\`${r}\` was specified but was not a node, or did not return a node`)}let a=s;if(typeof s=="string"){try{a=this.doc.querySelector(s)}catch(l){throw new Error(`\`${r}\` appears to be an invalid selector; error="${l.message}"`)}if(!a&&!o)throw new Error(`\`${r}\` as selector refers to no known node`)}return a}),ge(this,"findNextNavNode",r=>{const{event:o,isBackward:i=!1}=r,s=r.target||nt(o);this.updateTabbableNodes();let a=null;if(this.state.tabbableGroups.length>0){const l=this.findContainerIndex(s,o),c=l>=0?this.state.containerGroups[l]:void 0;if(l<0)i?a=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:a=this.state.tabbableGroups[0].firstTabbableNode;else if(i){let u=this.state.tabbableGroups.findIndex(({firstTabbableNode:d})=>s===d);if(u<0&&((c==null?void 0:c.container)===s||Jt(s)&&!Rn(s)&&!(c!=null&&c.nextTabbableNode(s,!1)))&&(u=l),u>=0){const d=u===0?this.state.tabbableGroups.length-1:u-1,h=this.state.tabbableGroups[d];a=lo(s)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else yo(o)||(a=c==null?void 0:c.nextTabbableNode(s,!1))}else{let u=this.state.tabbableGroups.findIndex(({lastTabbableNode:d})=>s===d);if(u<0&&((c==null?void 0:c.container)===s||Jt(s)&&!Rn(s)&&!(c!=null&&c.nextTabbableNode(s)))&&(u=l),u>=0){const d=u===this.state.tabbableGroups.length-1?0:u+1,h=this.state.tabbableGroups[d];a=lo(s)>=0?h.firstTabbableNode:h.firstDomTabbableNode}else yo(o)||(a=c==null?void 0:c.nextTabbableNode(s))}}else a=this.getNodeForOption("fallbackFocus");return a}),this.trapStack=t.trapStack||qk;const n={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward(r){return yo(r)&&!r.shiftKey},isKeyBackward(r){return yo(r)&&r.shiftKey},...t};this.doc=n.document||qe(Array.isArray(e)?e[0]:e),this.config=n,this.updateContainerElements(e),this.setupMutationObserver()}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const n=typeof(t==null?void 0:t.composedPath)=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:r,tabbableNodes:o})=>r.contains(e)||(n==null?void 0:n.includes(r))||o.find(i=>i===e))}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=Pa(e),n=Au(e),r=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,i=n.find(c=>Rn(c)),s=n.slice().reverse().find(c=>Rn(c)),a=!!t.find(c=>lo(c)>0);function l(c,u=!0){const d=t.indexOf(c);return d<0?u?n.slice(n.indexOf(c)+1).find(h=>Rn(h)):n.slice(0,n.indexOf(c)).reverse().find(h=>Rn(h)):t[d+(u?1:-1)]}return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:a,firstTabbableNode:r,lastTabbableNode:o,firstDomTabbableNode:i,lastDomTabbableNode:s,nextTabbableNode:l}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return mh.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?vh(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(fe(this.doc,"focusin",this.handleFocus,!0),fe(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),fe(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),fe(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),fe(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),fe(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const t=this.getOption(e,"onActivate"),n=this.getOption(e,"onPostActivate"),r=this.getOption(e,"checkCanFocusTrap");r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=this.doc.activeElement||null,t==null||t();const o=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),n==null||n()};return r?(r(this.state.containers.concat()).then(o,o),this):(o(),this)}},yo=e=>e.key==="Tab",xo=(e,...t)=>typeof e=="function"?e(...t):e,Xk=e=>!e.isComposing&&e.key==="Escape",vh=e=>setTimeout(e,0),Yk=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function Qk(e,t={}){let n;const r=ee(()=>{const o=typeof e=="function"?e():e;if(o){n=new Kk(o,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:o,...t,document:qe(o)});try{n.activate()}catch{}}});return function(){n==null||n.deactivate(),r()}}var sl="data-scroll-lock";function Jk(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function Zk(e){const t=e??document,n=t.defaultView??window,{documentElement:r,body:o}=t;if(o.hasAttribute(sl))return;const s=n.innerWidth-r.clientWidth;o.setAttribute(sl,"");const a=()=>ox(r,"--scrollbar-width",`${s}px`),l=Jk(r),c=()=>Ni(o,{overflow:"hidden",[l]:`${s}px`}),u=()=>{const{scrollX:h,scrollY:p,visualViewport:f}=n,g=(f==null?void 0:f.offsetLeft)??0,m=(f==null?void 0:f.offsetTop)??0,b=Ni(o,{position:"fixed",overflow:"hidden",top:`${-(p-Math.floor(m))}px`,left:`${-(h-Math.floor(g))}px`,right:"0",[l]:`${s}px`});return()=>{b==null||b(),n.scrollTo({left:h,top:p,behavior:"instant"})}},d=[a(),Si()?u():c()];return()=>{d.forEach(h=>h==null?void 0:h()),o.removeAttribute(sl)}}var al=G("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),An=al.build(),bh=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`dialog:${e.id}:positioner`},yh=e=>{var t;return((t=e.ids)==null?void 0:t.backdrop)??`dialog:${e.id}:backdrop`},ll=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`dialog:${e.id}:content`},xh=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`dialog:${e.id}:trigger`},cl=e=>{var t;return((t=e.ids)==null?void 0:t.title)??`dialog:${e.id}:title`},ul=e=>{var t;return((t=e.ids)==null?void 0:t.description)??`dialog:${e.id}:description`},Ch=e=>{var t;return((t=e.ids)==null?void 0:t.closeTrigger)??`dialog:${e.id}:close`},ts=e=>e.getById(ll(e)),eS=e=>e.getById(bh(e)),tS=e=>e.getById(yh(e)),nS=e=>e.getById(xh(e)),rS=e=>e.getById(cl(e)),oS=e=>e.getById(ul(e)),iS=e=>e.getById(Ch(e));function sS(e,t){const{state:n,send:r,context:o,prop:i,scope:s}=e,a=i("aria-label"),l=n.matches("open");return{open:l,setOpen(c){n.matches("open")!==c&&r({type:c?"OPEN":"CLOSE"})},getTriggerProps(){return t.button({...An.trigger.attrs,dir:i("dir"),id:xh(s),"aria-haspopup":"dialog",type:"button","aria-expanded":l,"data-state":l?"open":"closed","aria-controls":ll(s),onClick(c){c.defaultPrevented||r({type:"TOGGLE"})}})},getBackdropProps(){return t.element({...An.backdrop.attrs,dir:i("dir"),hidden:!l,id:yh(s),"data-state":l?"open":"closed"})},getPositionerProps(){return t.element({...An.positioner.attrs,dir:i("dir"),id:bh(s),style:{pointerEvents:l?void 0:"none"}})},getContentProps(){const c=o.get("rendered");return t.element({...An.content.attrs,dir:i("dir"),role:i("role"),hidden:!l,id:ll(s),tabIndex:-1,"data-state":l?"open":"closed","aria-modal":!0,"aria-label":a||void 0,"aria-labelledby":a||!c.title?void 0:cl(s),"aria-describedby":c.description?ul(s):void 0})},getTitleProps(){return t.element({...An.title.attrs,dir:i("dir"),id:cl(s)})},getDescriptionProps(){return t.element({...An.description.attrs,dir:i("dir"),id:ul(s)})},getCloseTriggerProps(){return t.button({...An.closeTrigger.attrs,dir:i("dir"),id:Ch(s),type:"button",onClick(c){c.defaultPrevented||(c.stopPropagation(),r({type:"CLOSE"}))}})}}}var aS={props({props:e,scope:t}){const n=e.role==="alertdialog",r=n?()=>iS(t):void 0,o=typeof e.modal=="boolean"?e.modal:!0;return{role:"dialog",modal:o,trapFocus:o,preventScroll:o,closeOnInteractOutside:!n,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r,...e}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}},watch({track:e,action:t,prop:n}){e([()=>n("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:n}){return Cr(()=>ts(e),{defer:!0,pointerBlocking:n("modal"),exclude:[nS(e)],onInteractOutside(o){var i;(i=n("onInteractOutside"))==null||i(o),n("closeOnInteractOutside")||o.preventDefault()},persistentElements:n("persistentElements"),onFocusOutside:n("onFocusOutside"),onPointerDownOutside:n("onPointerDownOutside"),onRequestDismiss:n("onRequestDismiss"),onEscapeKeyDown(o){var i;(i=n("onEscapeKeyDown"))==null||i(o),n("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return Zk(e.getDoc())},trapFocus({scope:e,prop:t}){return t("trapFocus")?Qk(()=>ts(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:r=>{var o;return((o=t("finalFocusEl"))==null?void 0:o())??r}}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?nh(()=>[ts(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){ee(()=>{e.set("rendered",{title:!!rS(t),description:!!oS(t)})})},syncZIndex({scope:e}){ee(()=>{const t=ts(e);if(!t)return;const n=Ci(t);[eS(e),tS(e)].forEach(o=>{o==null||o.style.setProperty("--z-index",n.zIndex),o==null||o.style.setProperty("--layer-index",n.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!1})},invokeOnOpen({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!0})},toggleVisibility({prop:e,send:t,event:n}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})}}}};U()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);const lS=e=>{const t=w.useId(),{getRootNode:n}=Su(),{dir:r}=gx(),o={id:t,getRootNode:n,dir:r,...e},i=Hu(aS,o);return sS(i,Cx)},cS=e=>{const[t,{children:n,...r}]=Bu(e),[o]=Fd(t),i=lS(r),s=Da(pt({present:i.open},t));return v.jsx(uh,{value:i,children:v.jsx(Ld,{value:o,children:v.jsx(qu,{value:s,children:n})})})},uS=e=>{const[t,{value:n,children:r}]=Bu(e),[o]=Fd(t),i=Da(pt({present:n.open},t));return v.jsx(uh,{value:n,children:v.jsx(Ld,{value:o,children:v.jsx(qu,{value:i,children:r})})})},kh=w.forwardRef((e,t)=>{const n=on(),r=pt(n.getTitleProps(),e);return v.jsx(en.h2,{...r,ref:t})});kh.displayName="DialogTitle";const Sh=w.forwardRef((e,t)=>{const n=on(),r=za(),o=pt({...n.getTriggerProps(),"aria-controls":r.unmounted?void 0:n.getTriggerProps()["aria-controls"]},e);return v.jsx(en.button,{...o,ref:t})});Sh.displayName="DialogTrigger";var wh=G("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");wh.build(),U()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]);const Eh=G("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");Eh.build();var dS=e=>{var c,u;if(!e)return;const t=Ci(e),n=Pe(e),r=qe(e),o=()=>{requestAnimationFrame(()=>{e.style.height="auto";let d;t.boxSizing==="content-box"?d=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):d=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&d>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),d=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${d}px`})};e.addEventListener("input",o),(c=e.form)==null||c.addEventListener("reset",o);const i=Object.getPrototypeOf(e),s=Object.getOwnPropertyDescriptor(i,"value");Object.defineProperty(e,"value",{...s,set(){var d;(d=s==null?void 0:s.set)==null||d.apply(this,arguments),o()}});const a=new n.ResizeObserver(()=>{requestAnimationFrame(()=>o())});a.observe(e);const l=new n.MutationObserver(()=>o());return l.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),(u=r.fonts)==null||u.addEventListener("loadingdone",o),()=>{var d,h;e.removeEventListener("input",o),(d=e.form)==null||d.removeEventListener("reset",o),(h=r.fonts)==null||h.removeEventListener("loadingdone",o),a.disconnect(),l.disconnect()}};const Oh=w.forwardRef((e,t)=>{const{autoresize:n,...r}=e,o=w.useRef(null),i=sk(),s=pt(i==null?void 0:i.getTextareaProps(),{style:{resize:n?"none":void 0}},r);return w.useEffect(()=>{if(n)return dS(o.current)},[n]),v.jsx(en.textarea,{...s,ref:_i(t,o)})});Oh.displayName="FieldTextarea";const Ih=G("fieldset").parts("root","errorText","helperText","legend");Ih.build();var Ph=G("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");Ph.build(),U()(["accept","acceptedFiles","allowDrop","capture","defaultAcceptedFiles","dir","directory","disabled","getRootNode","id","ids","invalid","locale","maxFiles","maxFileSize","minFileSize","name","onFileAccept","onFileChange","onFileReject","preventDocumentDrop","required","transformFiles","translations","validate"]),U()(["file"]);var Rh=G("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");Rh.build();var hS=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`hover-card:${e.id}:trigger`},fS=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`hover-card:${e.id}:content`},gS=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`hover-card:${e.id}:popper`},dl=e=>e.getById(hS(e)),pS=e=>e.getById(fS(e)),Th=e=>e.getById(gS(e)),{not:ns,and:Nh}=Zt();Nh("isOpenControlled",ns("isPointer")),ns("isPointer"),Nh("isOpenControlled",ns("isPointer")),ns("isPointer"),U()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var _h=G("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","root","tree");_h.build();var Ah=e=>new eh(e);Ah.empty=()=>new eh({rootNode:{children:[]}});var mS=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.node)==null?void 0:r.call(n,t))??`tree:${e.id}:node:${t}`},Vn=(e,t)=>{var n;t!=null&&((n=e.getById(mS(e,t)))==null||n.focus())};function vS(e,t,n){const r=e.getDescendantValues(t),o=r.every(i=>n.includes(i));return ur(o?En(n,...r):wn(n,...r))}function rs(e,t){const{context:n,prop:r,refs:o}=e;if(!r("loadChildren")){n.set("expandedValue",g=>ur(wn(g,...t)));return}const i=n.get("loadingStatus"),[s,a]=uu(t,g=>i[g]==="loaded");if(s.length>0&&n.set("expandedValue",g=>ur(wn(g,...s))),a.length===0)return;const l=r("collection"),[c,u]=uu(a,g=>{const m=l.findNode(g);return l.getNodeChildren(m).length>0});if(c.length>0&&n.set("expandedValue",g=>ur(wn(g,...c))),u.length===0)return;n.set("loadingStatus",g=>({...g,...u.reduce((m,b)=>({...m,[b]:"loading"}),{})}));const d=u.map(g=>{const m=l.getIndexPath(g),b=l.getValuePath(m),x=l.findNode(g);return{id:g,indexPath:m,valuePath:b,node:x}}),h=o.get("pendingAborts"),p=r("loadChildren");ku(p,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion");const f=d.map(({id:g,indexPath:m,valuePath:b,node:x})=>{const k=h.get(g);k&&(k.abort(),h.delete(g));const C=new AbortController;return h.set(g,C),p({valuePath:b,indexPath:m,node:x,signal:C.signal})});Promise.allSettled(f).then(g=>{var C,S;const m=[],b=[],x=n.get("loadingStatus");let k=r("collection");g.forEach((I,_)=>{const{id:P,indexPath:T,node:N,valuePath:j}=d[_];I.status==="fulfilled"?(x[P]="loaded",m.push(P),k=k.replace(T,{...N,children:I.value})):(h.delete(P),Reflect.deleteProperty(x,P),b.push({node:N,error:I.reason,indexPath:T,valuePath:j}))}),n.set("loadingStatus",x),m.length&&(n.set("expandedValue",I=>ur(wn(I,...m))),(C=r("onLoadChildrenComplete"))==null||C({collection:k})),b.length&&((S=r("onLoadChildrenError"))==null||S({nodes:b}))})}function sn(e){const{prop:t,context:n}=e;return function({indexPath:o}){return t("collection").getValuePath(o).slice(0,-1).some(s=>!n.get("expandedValue").includes(s))}}var{and:Nt}=Zt();Nt("isMultipleSelection","moveFocus"),Nt("isShiftKey","isMultipleSelection"),Nt("isShiftKey","isMultipleSelection"),Nt("isBranchFocused","isBranchExpanded"),Nt("isShiftKey","isMultipleSelection"),Nt("isShiftKey","isMultipleSelection"),Nt("isCtrlKey","isMultipleSelection"),Nt("isShiftKey","isMultipleSelection"),Nt("isCtrlKey","isMultipleSelection"),Nt("isShiftKey","isMultipleSelection"),U()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren"]),U()(["node","indexPath"]);var Vh=G("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");Vh.build(),U()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"]),U()(["item","highlightOnHover"]),U()(["id"]),U()(["htmlFor"]);const bS=Vh.extendWith("empty");var Lh=G("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");Lh.build();var Fh=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`menu:${e.id}:trigger`},yS=e=>{var t;return((t=e.ids)==null?void 0:t.contextTrigger)??`menu:${e.id}:ctx-trigger`},Dh=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`menu:${e.id}:content`},xS=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`menu:${e.id}:popper`},hl=(e,t)=>`${e.id}/${t}`,Ln=e=>(e==null?void 0:e.dataset.value)??null,an=e=>e.getById(Dh(e)),zh=e=>e.getById(xS(e)),os=e=>e.getById(Fh(e)),CS=(e,t)=>t?e.getById(hl(e,t)):null,fl=e=>e.getById(yS(e)),Co=e=>{const n=`[role^="menuitem"][data-ownedby=${CSS.escape(Dh(e))}]:not([data-disabled])`;return Ti(an(e),n)},kS=e=>io(Co(e)),SS=e=>ya(Co(e)),gl=(e,t)=>t?e.id===t||e.dataset.value===t:!1,wS=(e,t)=>{const n=Co(e),r=n.findIndex(o=>gl(o,t.value));return Ib(n,r,{loop:t.loop??t.loopFocus})},ES=(e,t)=>{const n=Co(e),r=n.findIndex(o=>gl(o,t.value));return Rb(n,r,{loop:t.loop??t.loopFocus})},OS=(e,t)=>{const n=Co(e),r=n.find(o=>gl(o,t.value));return co(n,{state:t.typeaheadState,key:t.key,activeId:(r==null?void 0:r.id)??null})},IS=e=>{var t;return!!((t=e==null?void 0:e.getAttribute("role"))!=null&&t.startsWith("menuitem"))&&!!(e!=null&&e.hasAttribute("aria-controls"))},PS="menu:select";function RS(e,t){if(!e)return;const n=Pe(e),r=new n.CustomEvent(PS,{detail:{value:t}});e.dispatchEvent(r)}var{not:ut,and:Er,or:TS}=Zt();ut("isSubmenu"),TS("isOpenAutoFocusEvent","isArrowDownEvent"),Er(ut("isTriggerItem"),"isOpenControlled"),ut("isTriggerItem"),Er("isSubmenu","isOpenControlled"),ut("isPointerSuspended"),Er(ut("isPointerSuspended"),ut("isTriggerItem")),Er(ut("isTriggerItemHighlighted"),ut("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),Er(ut("isTriggerItemHighlighted"),ut("isHighlightedItemEditable"),"closeOnSelect"),Er(ut("isTriggerItemHighlighted"),ut("isHighlightedItemEditable"));function Mh(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t==null||t.send({type:"CLOSE"})}function NS(e,t){return e?QC(e,t):!1}function _S(e,t,n){const r=Object.keys(e).length>0;if(!t)return null;if(!r)return hl(n,t);for(const o in e){const i=e[o],s=Fh(i.scope);if(s===t)return s}return hl(n,t)}U()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","onSelect","open","positioning","typeahead"]),U()(["closeOnSelect","disabled","value","valueText"]),U()(["htmlFor"]),U()(["id"]),U()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);let pl=new Map,ml=!1;try{ml=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let is=!1;try{is=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const $h={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class AS{format(t){let n="";if(!ml&&this.options.signDisplay!=null?n=LS(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!is){var r;let{unit:o,unitDisplay:i="short",locale:s}=this.resolvedOptions();if(!o)return n;let a=(r=$h[o])===null||r===void 0?void 0:r[i];n+=a[s]||a.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!ml&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!is&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=VS(t,n),this.options=n}}function VS(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!is){var r;let{unit:s,unitDisplay:a="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=$h[s])===null||r===void 0)&&r[a]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((s,a)=>s[0]0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=e.format(-n),i=e.format(n),s=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(s,"+").replace("!!!",i)}else return e.format(n)}}const FS=new RegExp("^.*\\(.*\\).*$"),DS=["latn","arab","hanidec","deva","beng","fullwide"];class jh{parse(t){return vl(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return vl(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return vl(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const Bh=new Map;function vl(e,t,n){let r=Wh(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let o of DS)if(o!==r.options.numberingSystem){let i=Wh(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(n))return i}}return r}function Wh(e,t){let n=e+(t?Object.entries(t).sort((o,i)=>o[0]-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var o,i;let s={...this.options,style:"decimal",minimumFractionDigits:Math.min(((o=this.options.minimumFractionDigits)!==null&&o!==void 0?o:0)+2,20),maximumFractionDigits:Math.min(((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)+2,20)};return new jh(this.locale,s).parse(new AS(this.locale,s).format(r))}return this.options.currencySign==="accounting"&&FS.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=ko(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(t=ko(t," ",this.symbols.group),t=ko(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=ko(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=$S(t,this.formatter,this.options,n);var r,o;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const Hh=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),MS=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function $S(e,t,n,r){var o,i,s,a;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),c=l.formatToParts(-10000.111),u=l.formatToParts(10000.111),d=MS.map(N=>l.formatToParts(N));var h;let p=(h=(o=c.find(N=>N.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&h!==void 0?h:"-",f=(i=u.find(N=>N.type==="plusSign"))===null||i===void 0?void 0:i.value;!f&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(f="+");let m=(s=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(N=>N.type==="decimal"))===null||s===void 0?void 0:s.value,b=(a=c.find(N=>N.type==="group"))===null||a===void 0?void 0:a.value,x=c.filter(N=>!Hh.has(N.type)).map(N=>Uh(N.value)),k=d.flatMap(N=>N.filter(j=>!Hh.has(j.type)).map(j=>Uh(j.value))),C=[...new Set([...x,...k])].sort((N,j)=>j.length-N.length),S=C.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${C.join("|")}|[\\p{White_Space}]`,"gu"),I=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),_=new Map(I.map((N,j)=>[N,j])),P=new RegExp(`[${I.join("")}]`,"g");return{minusSign:p,plusSign:f,decimal:m,group:b,literals:S,numeral:P,index:N=>String(_.get(N))}}function ko(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Uh(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var Gh=G("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");Gh.build();var jS=e=>{var t;return((t=e.ids)==null?void 0:t.input)??`number-input:${e.id}:input`},BS=e=>{var t;return((t=e.ids)==null?void 0:t.incrementTrigger)??`number-input:${e.id}:inc`},WS=e=>{var t;return((t=e.ids)==null?void 0:t.decrementTrigger)??`number-input:${e.id}:dec`},qh=e=>`number-input:${e.id}:cursor`,ss=e=>e.getById(jS(e)),HS=e=>e.getById(BS(e)),US=e=>e.getById(WS(e)),Kh=e=>e.getDoc().getElementById(qh(e)),GS=(e,t)=>{let n=null;return t==="increment"&&(n=HS(e)),t==="decrement"&&(n=US(e)),n},qS=(e,t)=>{if(!Nu())return YS(e,t),()=>{var n;(n=Kh(e))==null||n.remove()}},KS=e=>{const t=e.getDoc(),n=t.documentElement,r=t.body;return r.style.pointerEvents="none",n.style.userSelect="none",n.style.cursor="ew-resize",()=>{r.style.pointerEvents="",n.style.userSelect="",n.style.cursor="",n.style.length||n.removeAttribute("style"),r.style.length||r.removeAttribute("style")}},XS=(e,t)=>{const{point:n,isRtl:r,event:o}=t,i=e.getWin(),s=ka(o.movementX,i.devicePixelRatio),a=ka(o.movementY,i.devicePixelRatio);let l=s>0?"increment":s<0?"decrement":null;r&&l==="increment"&&(l="decrement"),r&&l==="decrement"&&(l="increment");const c={x:n.x+s,y:n.y+a},u=i.innerWidth,d=ka(7.5,i.devicePixelRatio);return c.x=Gb(c.x+d,u)-d,{hint:l,point:c}},YS=(e,t)=>{const n=e.getDoc(),r=n.createElement("div");r.className="scrubber--cursor",r.id=qh(e),Object.assign(r.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:iy,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),r.innerHTML=` +======= + */var ke=typeof Symbol=="function"&&Symbol.for,Zs=ke?Symbol.for("react.element"):60103,ea=ke?Symbol.for("react.portal"):60106,eo=ke?Symbol.for("react.fragment"):60107,to=ke?Symbol.for("react.strict_mode"):60108,no=ke?Symbol.for("react.profiler"):60114,ro=ke?Symbol.for("react.provider"):60109,io=ke?Symbol.for("react.context"):60110,ta=ke?Symbol.for("react.async_mode"):60111,oo=ke?Symbol.for("react.concurrent_mode"):60111,so=ke?Symbol.for("react.forward_ref"):60112,ao=ke?Symbol.for("react.suspense"):60113,fy=ke?Symbol.for("react.suspense_list"):60120,lo=ke?Symbol.for("react.memo"):60115,co=ke?Symbol.for("react.lazy"):60116,gy=ke?Symbol.for("react.block"):60121,py=ke?Symbol.for("react.fundamental"):60117,my=ke?Symbol.for("react.responder"):60118,vy=ke?Symbol.for("react.scope"):60119;function et(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Zs:switch(e=e.type,e){case ta:case oo:case eo:case no:case to:case ao:return e;default:switch(e=e&&e.$$typeof,e){case io:case so:case co:case lo:case ro:return e;default:return t}}case ea:return t}}}function zc(e){return et(e)===oo}se.AsyncMode=ta,se.ConcurrentMode=oo,se.ContextConsumer=io,se.ContextProvider=ro,se.Element=Zs,se.ForwardRef=so,se.Fragment=eo,se.Lazy=co,se.Memo=lo,se.Portal=ea,se.Profiler=no,se.StrictMode=to,se.Suspense=ao,se.isAsyncMode=function(e){return zc(e)||et(e)===ta},se.isConcurrentMode=zc,se.isContextConsumer=function(e){return et(e)===io},se.isContextProvider=function(e){return et(e)===ro},se.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zs},se.isForwardRef=function(e){return et(e)===so},se.isFragment=function(e){return et(e)===eo},se.isLazy=function(e){return et(e)===co},se.isMemo=function(e){return et(e)===lo},se.isPortal=function(e){return et(e)===ea},se.isProfiler=function(e){return et(e)===no},se.isStrictMode=function(e){return et(e)===to},se.isSuspense=function(e){return et(e)===ao},se.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===eo||e===oo||e===no||e===to||e===ao||e===fy||typeof e=="object"&&e!==null&&(e.$$typeof===co||e.$$typeof===lo||e.$$typeof===ro||e.$$typeof===io||e.$$typeof===so||e.$$typeof===py||e.$$typeof===my||e.$$typeof===vy||e.$$typeof===gy)},se.typeOf=et,Dc.exports=se;var by=Dc.exports,Mc=by,yy={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},xy={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},$c={};$c[Mc.ForwardRef]=yy,$c[Mc.Memo]=xy;var Cy=!0;function Bc(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var na=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Cy===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},ra=function(t,n,r){na(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function Sy(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var wy={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},Ey=/[A-Z]|^ms/g,ky=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jc=function(t){return t.charCodeAt(1)===45},Wc=function(t){return t!=null&&typeof t!="boolean"},ia=Oc(function(e){return jc(e)?e:e.replace(Ey,"-$&").toLowerCase()}),Hc=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(ky,function(r,i,o){return kt={name:i,styles:o,next:kt},i})}return wy[t]!==1&&!jc(t)&&typeof n=="number"&&n!==0?n+"px":n};function ti(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return kt={name:i.name,styles:i.styles,next:kt},i.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)kt={name:s.name,styles:s.styles,next:kt},s=s.next;var a=o.styles+";";return a}return Oy(e,t,n)}case"function":{if(e!==void 0){var l=kt,c=n(e);return kt=l,ti(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function Oy(e,t,n){var r="";if(Array.isArray(n))for(var i=0;ir==null?void 0:r(...n))}}const _y=(...e)=>e.map(t=>{var n;return(n=t==null?void 0:t.trim)==null?void 0:n.call(t)}).filter(Boolean).join(" "),Vy=/^on[A-Z]/;function ni(...e){let t={};for(let n of e){for(let r in t){if(Vy.test(r)&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=Ay(t[r],n[r]);continue}if(r==="className"||r==="class"){t[r]=_y(t[r],n[r]);continue}if(r==="style"){t[r]=Object.assign({},t[r]??{},n[r]??{});continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}function Fy(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 Ly(...e){return t=>{e.forEach(n=>{Fy(n,t)})}}function ri(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}const st=(...e)=>e.filter(Boolean).map(t=>t.trim()).join(" ");function Dy(e){return e.default||e}const He=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),Ot=e=>typeof e=="string",ua=e=>typeof e=="function";function zy(e){var n;const t=O.version;return!Ot(t)||t.startsWith("18.")?e==null?void 0:e.ref:(n=e==null?void 0:e.props)==null?void 0:n.ref}const Jc=(...e)=>{const t=e.reduce((n,r)=>(r!=null&&r.forEach(i=>n.add(i)),n),new Set([]));return Array.from(t)};function My(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function lr(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:o,defaultValue:s}=e,a=E.createContext(s);a.displayName=t;function l(){var u;const c=E.useContext(a);if(!c&&n){const d=new Error(o??My(r,i));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[a.Provider,l,a]}const[$y,uo]=lr({name:"ChakraContext",strict:!0,providerName:""});function By(e){const{value:t,children:n}=e;return v.jsxs($y,{value:t,children:[!t._config.disableLayers&&v.jsx(Qc,{styles:t.layers.atRule}),v.jsx(Qc,{styles:t._global}),n]})}const jy=(e,t)=>{const n={},r={},i=Object.keys(e);for(const o of i)t(o)?r[o]=e[o]:n[o]=e[o];return[r,n]},cr=(e,t)=>{const n=ua(t)?t:r=>t.includes(r);return jy(e,n)},Wy=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function Hy(e){return typeof e=="string"&&Wy.has(e)}function Uy(e,t,n){const{css:r,isValidProperty:i}=uo(),{children:o,...s}=e,a=E.useMemo(()=>{const[h,m]=cr(s,x=>n(x,t.variantKeys)),[f,g]=cr(m,t.variantKeys),[p,b]=cr(g,i);return{forwardedProps:h,variantProps:f,styleProps:p,elementProps:b}},[t.variantKeys,n,s,i]),{css:l,...c}=a.styleProps,u=E.useMemo(()=>{const h={...a.variantProps};return t.variantKeys.includes("colorPalette")||(h.colorPalette=s.colorPalette),t.variantKeys.includes("orientation")||(h.orientation=s.orientation),t(h)},[t,a.variantProps,s.colorPalette,s.orientation]);return{styles:E.useMemo(()=>r(u,...Gy(l),c),[r,u,l,c]),props:{...a.forwardedProps,...a.elementProps,children:o}}}const Gy=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),qy=Dy(Db),Ky=e=>e!=="theme",Xy=(e,t,n)=>{let r;if(t){const i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?o=>e.__emotion_forwardProp(o)&&i(o):i}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r};let Yy=typeof document<"u";const Zc=({cache:e,serialized:t,isStringTag:n})=>{na(e,t,n);const r=qc(()=>ra(e,t,n));if(!Yy&&r!==void 0){let i=t.name,o=t.next;for(;o!==void 0;)i=st(i,o.name),o=o.next;return v.jsx("style",{"data-emotion":st(e.key,i),dangerouslySetInnerHTML:{__html:r},nonce:e.sheet.nonce})}return null},eu={path:["d"],text:["x","y"],circle:["cx","cy","r"],rect:["width","height","x","y","rx","ry"],ellipse:["cx","cy","rx","ry"],g:["transform"],stop:["offset","stopOpacity"]},Qy=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),da=((e,t={},n={})=>{if(Qy(eu,e)){n.forwardProps||(n.forwardProps=[]);const c=eu[e];n.forwardProps=Jc([...n.forwardProps,...c])}const r=e.__emotion_real===e,i=r&&e.__emotion_base||e;let o,s;n!==void 0&&(o=n.label,s=n.target);let a=[];const l=sa((c,u,d)=>{var z;const{cva:h,isValidProperty:m}=uo(),f=t.__cva__?t:h(t),g=Jy(e.__emotion_cva,f),p=V=>(B,K)=>V.includes(B)?!0:!(K!=null&&K.includes(B))&&!m(B);!n.shouldForwardProp&&n.forwardProps&&(n.shouldForwardProp=p(n.forwardProps));const b=(V,B)=>{const K=typeof e=="string"&&e.charCodeAt(0)>96?qy:Ky,$=!(B!=null&&B.includes(V))&&!m(V);return K(V)&&$},x=Xy(e,n,r)||b,S=O.useMemo(()=>Object.assign({},n.defaultProps,ri(c)),[c]),{props:C,styles:w}=Uy(S,g,x);let P="",_=[w],R=C;if(C.theme==null){R={};for(let V in C)R[V]=C[V];R.theme=O.useContext(aa)}typeof C.className=="string"?P=Bc(u.registered,_,C.className):C.className!=null&&(P=st(P,C.className));const N=oa(a.concat(_),u.registered,R);N.styles&&(P=st(P,`${u.key}-${N.name}`)),s!==void 0&&(P=st(P,s));const T=!x("as");let j=T&&C.as||i,I={};for(let V in C)if(!(T&&V==="as")){if(Hy(V)){const B=V.replace("html","").toLowerCase();I[B]=C[V];continue}x(V)&&(I[V]=C[V])}let F=P.trim();F?I.className=F:Reflect.deleteProperty(I,"className"),I.ref=d;const Y=n.forwardAsChild||((z=n.forwardProps)==null?void 0:z.includes("asChild"));if(C.asChild&&!Y){const V=O.isValidElement(C.children)?O.Children.only(C.children):O.Children.toArray(C.children).find(O.isValidElement);if(!V)throw new Error("[chakra-ui > factory] No valid child found");j=V.type,I.children=null,Reflect.deleteProperty(I,"asChild"),I=ni(I,V.props),I.ref=Ly(d,zy(V))}return I.as&&Y?(I.as=void 0,v.jsxs(O.Fragment,{children:[v.jsx(Zc,{cache:u,serialized:N,isStringTag:typeof j=="string"}),v.jsx(j,{asChild:!0,...I,children:v.jsx(C.as,{children:I.children})})]})):v.jsxs(O.Fragment,{children:[v.jsx(Zc,{cache:u,serialized:N,isStringTag:typeof j=="string"}),v.jsx(j,{...I})]})});return l.displayName=o!==void 0?o:`chakra(${typeof i=="string"?i:i.displayName||i.name||"Component"})`,l.__emotion_real=l,l.__emotion_base=i,l.__emotion_forwardProp=n.shouldForwardProp,l.__emotion_cva=t,Object.defineProperty(l,"toString",{value(){return`.${s}`}}),l}).bind(),ha=new Map,Oe=new Proxy(da,{apply(e,t,n){return da(...n)},get(e,t){return ha.has(t)||ha.set(t,da(t)),ha.get(t)}}),Jy=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),zt=Oe("div");zt.displayName="Box";const Zy=Object.freeze({}),e0=Object.freeze({});function t0(e){const{key:t,recipe:n}=e,r=uo();return E.useMemo(()=>{const i=n||(t!=null?r.getRecipe(t):{});return r.cva(structuredClone(i))},[t,n,r])}const n0=e=>e.charAt(0).toUpperCase()+e.slice(1);function ii(e){const{key:t,recipe:n}=e,r=n0(t||n.className||"Component"),[i,o]=lr({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`});function s(c){const{unstyled:u,...d}=c,h=t0({key:t,recipe:d.recipe||n}),[m,f]=E.useMemo(()=>h.splitVariantProps(d),[h,d]);return{styles:u?Zy:h(m),className:h.className,props:f}}const a=(c,u)=>{const d=Oe(c,{},u),h=E.forwardRef((m,f)=>{const g=o(),p=E.useMemo(()=>ni(g,m),[m,g]),{styles:b,className:x,props:S}=s(p);return v.jsx(d,{...S,ref:f,css:[b,p.css],className:st(x,p.className)})});return h.displayName=c.displayName||c.name,h};function l(){return i}return{withContext:a,PropsProvider:i,withPropsProvider:l,usePropsContext:o,useRecipeResult:s}}function ho(e){return e==null?[]:Array.isArray(e)?e:[e]}var oi=e=>e[0],fa=e=>e[e.length-1],r0=(e,t)=>e.indexOf(t)!==-1,kn=(e,...t)=>e.concat(t),On=(e,...t)=>e.filter(n=>!t.includes(n)),ur=e=>Array.from(new Set(e)),ga=(e,t)=>{const n=new Set(t);return e.filter(r=>!n.has(r))},dr=(e,t)=>r0(e,t)?On(e,t):kn(e,t);function tu(e,t,n={}){const{step:r=1,loop:i=!0}=n,o=t+r,s=e.length,a=s-1;return t===-1?r>0?0:a:o<0?i?a:0:o>=s?i?0:t>s?s:t:o}function i0(e,t,n={}){return e[tu(e,t,n)]}function o0(e,t,n={}){const{step:r=1,loop:i=!0}=n;return tu(e,t,{step:-r,loop:i})}function s0(e,t,n={}){return e[o0(e,t,n)]}function nu(e,t){return e.reduce(([n,r],i)=>(t(i)?n.push(i):r.push(i),[n,r]),[[],[]])}var ru=e=>(e==null?void 0:e.constructor.name)==="Array",a0=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof(e==null?void 0:e.isEqual)=="function"&&typeof(t==null?void 0:t.isEqual)=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(ru(e)&&ru(t))return a0(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(t??Object.create(null)),r=n.length;for(let i=0;iArray.isArray(e),l0=e=>e===!0||e===!1,iu=e=>e!=null&&typeof e=="object",In=e=>iu(e)&&!si(e),fo=e=>typeof e=="string",Pn=e=>typeof e=="function",c0=e=>e==null,Yt=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u0=e=>Object.prototype.toString.call(e),ou=Function.prototype.toString,d0=ou.call(Object),h0=e=>{if(!iu(e)||u0(e)!="[object Object]"||p0(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const n=Yt(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&ou.call(n)==d0},f0=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,g0=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,p0=e=>f0(e)||g0(e),go=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,m0=e=>e(),v0=()=>{},po=(...e)=>(...t)=>{e.forEach(function(n){n==null||n(...t)})},b0=(()=>{let e=0;return()=>(e++,e.toString(36))})();function Mt(e,t,...n){var i;if(e in t){const o=t[e];return Pn(o)?o(...n):o}const r=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw(i=Error.captureStackTrace)==null||i.call(Error,r,Mt),r}var su=(e,t)=>{var n;try{return e()}catch(r){return r instanceof Error&&((n=Error.captureStackTrace)==null||n.call(Error,r,su)),t==null?void 0:t()}},{floor:au,abs:lu,round:mo,min:y0,max:x0,pow:C0,sign:S0}=Math,pa=e=>Number.isNaN(e),Qt=e=>pa(e)?0:e,cu=(e,t)=>(e%t+t)%t,w0=(e,t)=>(e%t+t)%t,E0=(e,t)=>Qt(e)>=t,k0=(e,t)=>Qt(e)<=t,O0=(e,t,n)=>{const r=Qt(e),i=t==null||r>=t,o=n==null||r<=n;return i&&o},I0=(e,t,n)=>mo((Qt(e)-t)/n)*n+t,Ue=(e,t,n)=>y0(x0(Qt(e),t),n),P0=(e,t,n)=>(Qt(e)-t)/(n-t),R0=(e,t,n,r)=>Ue(I0(e*(n-t)+t,t,r),t,n),uu=(e,t)=>{let n=e,r=t.toString(),i=r.indexOf("."),o=i>=0?r.length-i:0;if(o>0){let s=C0(10,o);n=mo(n*s)/s}return n},ma=(e,t)=>typeof t=="number"?au(e*t+.5)/t:mo(e),du=(e,t,n,r)=>{const i=t!=null?Number(t):0,o=Number(n),s=(e-i)%r;let a=lu(s)*2>=r?e+S0(s)*(r-lu(s)):e-s;if(a=uu(a,r),!pa(i)&&ao){const l=au((o-i)/r),c=i+l*r;a=l<=0||c{const r=Math.pow(n,t);return mo(e*r)/r},hu=e=>{if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n},fu=(e,t,n)=>{let r=t==="+"?e+n:e-n;if(e%1!==0||n%1!==0){const i=10**Math.max(hu(e),hu(n));e=Math.round(e*i),n=Math.round(n*i),r=t==="+"?e+n:e-n,r/=i}return r},T0=(e,t)=>fu(Qt(e),"+",t),N0=(e,t)=>fu(Qt(e),"-",t);function vo(e){if(!h0(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),n={};for(const r of t){const i=e[r];i!==void 0&&(n[r]=vo(i))}return n}function A0(e,t=Object.is){let n={...e};const r=new Set,i=u=>(r.add(u),()=>r.delete(u)),o=()=>{r.forEach(u=>u())};return{subscribe:i,get:u=>n[u],set:(u,d)=>{t(n[u],d)||(n[u]=d,o())},update:u=>{let d=!1;for(const h in u){const m=u[h];m!==void 0&&!t(n[h],m)&&(n[h]=m,d=!0)}d&&o()},snapshot:()=>({...n})}}function ai(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function gu(e,t){if(e==null)throw new Error(t())}function _0(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function hr(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:o,defaultValue:s}=e,a=E.createContext(s);a.displayName=t;function l(){var u;const c=E.useContext(a);if(!c&&n){const d=new Error(o??_0(r,i));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[a.Provider,l,a]}const[t5,pu]=hr({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});function V0(e){if(!e)return;const t=e.selectionStart??0,n=e.selectionEnd??0;Math.abs(n-t)===0&&t===0&&e.setSelectionRange(e.value.length,e.value.length)}var mu=e=>Math.max(0,Math.min(1,e)),F0=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]),vu=()=>{},bo=e=>typeof e=="object"&&e!==null,L0=2147483647,D0=1,z0=9,M0=11,Me=e=>bo(e)&&e.nodeType===D0&&typeof e.nodeName=="string",va=e=>bo(e)&&e.nodeType===z0,$0=e=>bo(e)&&e===e.window,bu=e=>Me(e)?e.localName||"":"#document";function B0(e){return["html","body","#document"].includes(bu(e))}var j0=e=>bo(e)&&e.nodeType!==void 0,fr=e=>j0(e)&&e.nodeType===M0&&"host"in e,W0=e=>Me(e)&&e.localName==="input",H0=e=>Me(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,U0=/(textarea|select)/;function yu(e){if(e==null||!Me(e))return!1;try{return W0(e)&&e.selectionStart!=null||U0.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Rn(e,t){var r;if(!e||!t||!Me(e)||!Me(t))return!1;const n=(r=t.getRootNode)==null?void 0:r.call(t);if(e===t||e.contains(t))return!0;if(n&&fr(n)){let i=t;for(;i;){if(e===i)return!0;i=i.parentNode||i.host}}return!1}function Ge(e){return va(e)?e:$0(e)?e.document:(e==null?void 0:e.ownerDocument)??document}function G0(e){return Ge(e).documentElement}function Ie(e){var t;return fr(e)?Ie(e.host):va(e)?e.defaultView??window:Me(e)?((t=e.ownerDocument)==null?void 0:t.defaultView)??window:window}function xu(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function q0(e){if(bu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fr(e)&&e.host||G0(e);return fr(t)?t.host:t}var ba=new WeakMap;function yo(e){return ba.has(e)||ba.set(e,Ie(e).getComputedStyle(e)),ba.get(e)}var xo=()=>typeof document<"u";function K0(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}function X0(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}var ya=e=>xo()&&e.test(K0()),Cu=e=>xo()&&e.test(X0()),Y0=e=>xo()&&e.test(navigator.vendor),Su=()=>xo()&&!!navigator.maxTouchPoints,Q0=()=>ya(/^iPhone/i),J0=()=>ya(/^iPad/i)||So()&&navigator.maxTouchPoints>1,Co=()=>Q0()||J0(),Z0=()=>So()||Co(),So=()=>ya(/^Mac/i),wu=()=>Z0()&&Y0(/apple/i),ex=()=>Cu(/Firefox/i),tx=()=>Cu(/Android/i);function nx(e){var t,n,r;return((t=e.composedPath)==null?void 0:t.call(e))??((r=(n=e.nativeEvent)==null?void 0:n.composedPath)==null?void 0:r.call(n))}function tt(e){const t=nx(e);return(t==null?void 0:t[0])??e.target}function rx(e){return ax(e).isComposing||e.keyCode===229}function ix(e){return e.pointerType===""&&e.isTrusted?!0:tx()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var ox=e=>e.button===2||So()&&e.ctrlKey&&e.button===0,sx=e=>"touches"in e&&e.touches.length>0;function ax(e){return e.nativeEvent??e}function lx(e,t="client"){const n=sx(e)?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var he=(e,t,n,r)=>{const i=typeof e=="function"?e():e;return i==null||i.addEventListener(t,n,r),()=>{i==null||i.removeEventListener(t,n,r)}};function cx(e,t){const{type:n="HTMLInputElement",property:r="value"}=t,i=Ie(e)[n].prototype;return Object.getOwnPropertyDescriptor(i,r)??{}}function ux(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function wo(e,t,n="value"){var i;if(!e)return;const r=ux(e);r&&((i=cx(e,{type:r,property:n}).set)==null||i.call(e,t)),e.setAttribute(n,t)}function dx(e,t){const{value:n,bubbles:r=!0}=t;if(!e)return;const i=Ie(e);e instanceof i.HTMLInputElement&&(wo(e,`${n}`),e.dispatchEvent(new i.Event("input",{bubbles:r})))}function hx(e){return fx(e)?e.form:e.closest("form")}function fx(e){return e.matches("textarea, input, select, button")}function gx(e,t){if(!e)return;const n=hx(e),r=i=>{i.defaultPrevented||t()};return n==null||n.addEventListener("reset",r,{passive:!0}),()=>n==null?void 0:n.removeEventListener("reset",r)}function px(e,t){const n=e==null?void 0:e.closest("fieldset");if(!n)return;t(n.disabled);const r=Ie(n),i=new r.MutationObserver(()=>t(n.disabled));return i.observe(n,{attributes:!0,attributeFilter:["disabled"]}),()=>i.disconnect()}function xa(e,t){if(!e)return;const{onFieldsetDisabledChange:n,onFormReset:r}=t,i=[gx(e,r),px(e,n)];return()=>i.forEach(o=>o==null?void 0:o())}var Eu=e=>Me(e)&&e.tagName==="IFRAME",mx=e=>!Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10)),vx=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,Ca="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",ku=(e,t=!1)=>{if(!e)return[];const n=Array.from(e.querySelectorAll(Ca));(t==!0||t=="if-empty"&&n.length===0)&&Me(e)&&Jt(e)&&n.unshift(e);const i=n.filter(Jt);return i.forEach((o,s)=>{if(Eu(o)&&o.contentDocument){const a=o.contentDocument.body;i.splice(s,1,...ku(a))}}),i};function Jt(e){return!e||e.closest("[inert]")?!1:e.matches(Ca)&&H0(e)}function Sa(e,t){if(!e)return[];const r=Array.from(e.querySelectorAll(Ca)).filter(Tn);return r.forEach((i,o)=>{if(Eu(i)&&i.contentDocument){const s=i.contentDocument.body,a=Sa(s);r.splice(o,1,...a)}}),r.length,r}function Tn(e){return e!=null&&e.tabIndex>0?!0:Jt(e)&&!vx(e)}function li(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||yu(e))&&!mx(e)?0:e.tabIndex}function wa(e){const{root:t,getInitialEl:n,filter:r,enabled:i=!0}=e;if(!i)return;let o=null;if(o||(o=typeof n=="function"?n():n),o||(o=t==null?void 0:t.querySelector("[data-autofocus],[autofocus]")),!o){const s=Sa(t);o=r?s.filter(r)[0]:s[0]}return o||t||void 0}function Ea(e){const t=new Set;function n(r){const i=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(i))}return n(()=>n(e)),function(){t.forEach(i=>i())}}function Z(e){let t;const n=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(n),t==null||t()}}function bx(e,t,n){const r=Z(()=>{e.removeEventListener(t,i,!0),n()}),i=()=>{r(),n()};return e.addEventListener(t,i,{once:!0,capture:!0}),r}function yx(e,t){if(!e)return;const{attributes:n,callback:r}=t,i=e.ownerDocument.defaultView||window,o=new i.MutationObserver(s=>{for(const a of s)a.type==="attributes"&&a.attributeName&&n.includes(a.attributeName)&&r(a)});return o.observe(e,{attributes:!0,attributeFilter:n}),()=>o.disconnect()}function Eo(e,t){const{defer:n}=t,r=n?Z:o=>o(),i=[];return i.push(r(()=>{const o=typeof e=="function"?e():e;i.push(yx(o,t))})),()=>{i.forEach(o=>o==null?void 0:o())}}function Ou(e){const t=()=>{const n=Ie(e);e.dispatchEvent(new n.MouseEvent("click"))};ex()?bx(e,"keyup",t):queueMicrotask(t)}function ko(e){const t=q0(e);return B0(t)?Ge(t).body:Me(t)&&ka(t)?t:ko(t)}function Iu(e,t=[]){const n=ko(e),r=n===e.ownerDocument.body,i=Ie(n);return r?t.concat(i,i.visualViewport||[],ka(n)?n:[]):t.concat(n,Iu(n,[]))}var xx=/auto|scroll|overlay|hidden|clip/,Cx=new Set(["inline","contents"]);function ka(e){const t=Ie(e),{overflow:n,overflowX:r,overflowY:i,display:o}=t.getComputedStyle(e);return xx.test(n+i+r)&&!Cx.has(o)}function Sx(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Oo(e,t){const{rootEl:n,...r}=t||{};!e||!n||!ka(n)||!Sx(n)||e.scrollIntoView(r)}function Pu(e,t){const{left:n,top:r,width:i,height:o}=t.getBoundingClientRect(),s={x:e.x-n,y:e.y-r},a={x:mu(s.x/i),y:mu(s.y/o)};function l(c={}){const{dir:u="ltr",orientation:d="horizontal",inverted:h}=c,m=typeof h=="object"?h.x:h,f=typeof h=="object"?h.y:h;return d==="horizontal"?u==="rtl"||m?1-a.x:a.x:f?1-a.y:a.y}return{offset:s,percent:a,getPercentValue:l}}function wx(e,t){const n=e.body,r="pointerLockElement"in e||"mozPointerLockElement"in e,i=()=>!!e.pointerLockElement;function o(){}function s(l){i(),console.error("PointerLock error occurred:",l),e.exitPointerLock()}if(!r)return;try{n.requestPointerLock()}catch{}const a=[he(e,"pointerlockchange",o,!1),he(e,"pointerlockerror",s,!1)];return()=>{a.forEach(l=>l()),e.exitPointerLock()}}var gr="default",Oa="",Io=new WeakMap;function Ex(e={}){const{target:t,doc:n}=e,r=n??document,i=r.documentElement;return Co()?(gr==="default"&&(Oa=i.style.webkitUserSelect,i.style.webkitUserSelect="none"),gr="disabled"):t&&(Io.set(t,t.style.userSelect),t.style.userSelect="none"),()=>kx({target:t,doc:r})}function kx(e={}){const{target:t,doc:n}=e,i=(n??document).documentElement;if(Co()){if(gr!=="disabled")return;gr="restoring",setTimeout(()=>{Ea(()=>{gr==="restoring"&&(i.style.webkitUserSelect==="none"&&(i.style.webkitUserSelect=Oa||""),Oa="",gr="default")})},300)}else if(t&&Io.has(t)){const o=Io.get(t);t.style.userSelect==="none"&&(t.style.userSelect=o??""),t.getAttribute("style")===""&&t.removeAttribute("style"),Io.delete(t)}}function Ru(e={}){const{defer:t,target:n,...r}=e,i=t?Z:s=>s(),o=[];return o.push(i(()=>{const s=typeof n=="function"?n():n;o.push(Ex({...r,target:s}))})),()=>{o.forEach(s=>s==null?void 0:s())}}function Ox(e,t){const{onPointerMove:n,onPointerUp:r}=t,o=[he(e,"pointermove",s=>{const a=lx(s),l=Math.sqrt(a.x**2+a.y**2),c=s.pointerType==="touch"?10:5;if(!(l{o.forEach(s=>s())}}function Po(e,t){return Array.from((e==null?void 0:e.querySelectorAll(t))??[])}function Ix(e,t){return(e==null?void 0:e.querySelector(t))??null}var Ia=e=>e.id;function Px(e,t,n=Ia){return e.find(r=>n(r)===t)}function Pa(e,t,n=Ia){const r=Px(e,t,n);return r?e.indexOf(r):-1}function Rx(e,t,n=!0){let r=Pa(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function Tx(e,t,n=!0){let r=Pa(e,t);return r===-1?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}var Nx=e=>e.split("").map(t=>{const n=t.charCodeAt(0);return n>0&&n<128?t:n>=128&&n<=255?`/x${n.toString(16)}`.replace("/","\\"):""}).join("").trim(),Ax=e=>{var t;return Nx(((t=e.dataset)==null?void 0:t.valuetext)??e.textContent??"")},_x=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function Vx(e,t,n,r=Ia){const i=n?Pa(e,n,r):-1;let o=n?F0(e,i):e;return t.length===1&&(o=o.filter(a=>r(a)!==n)),o.find(a=>_x(Ax(a),t))}function Ro(e,t){if(!e)return vu;const n=Object.keys(t).reduce((r,i)=>(r[i]=e.style.getPropertyValue(i),r),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute("style")}}function Fx(e,t,n){if(!e)return vu;const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute("style")}}function Lx(e,t){const{state:n,activeId:r,key:i,timeout:o=350,itemToId:s}=t,a=n.keysSoFar+i,c=a.length>1&&Array.from(a).every(f=>f===a[0])?a[0]:a;let u=e.slice();const d=Vx(u,c,r,s);function h(){clearTimeout(n.timer),n.timer=-1}function m(f){n.keysSoFar=f,h(),f!==""&&(n.timer=+setTimeout(()=>{m(""),h()},o))}return m(a),d}var ci=Object.assign(Lx,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:Dx});function Dx(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}function zx(e,t,n){const{signal:r}=t;return[new Promise((s,a)=>{const l=setTimeout(()=>{a(new Error(`Timeout of ${n}ms exceeded`))},n);r.addEventListener("abort",()=>{clearTimeout(l),a(new Error("Promise aborted"))}),e.then(c=>{r.aborted||(clearTimeout(l),s(c))}).catch(c=>{r.aborted||(clearTimeout(l),a(c))})}),()=>t.abort()]}function Mx(e,t){const{timeout:n,rootNode:r}=t,i=Ie(r),o=Ge(r),s=new i.AbortController;return zx(new Promise(a=>{const l=e();if(l){a(l);return}const c=new i.MutationObserver(()=>{const u=e();u&&u.isConnected&&(c.disconnect(),a(u))});c.observe(o.body,{childList:!0,subtree:!0})}),s,n)}var $x=(...e)=>e.map(t=>{var n;return(n=t==null?void 0:t.trim)==null?void 0:n.call(t)}).filter(Boolean).join(" "),Bx=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,Tu=e=>{const t={};let n;for(;n=Bx.exec(e);)t[n[1]]=n[2];return t},jx=(e,t)=>{if(fo(e)){if(fo(t))return`${e};${t}`;e=Tu(e)}else fo(t)&&(t=Tu(t));return Object.assign({},e??{},t??{})};function pt(...e){let t={};for(let n of e){for(let r in t){if(r.startsWith("on")&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=po(n[r],t[r]);continue}if(r==="className"||r==="class"){t[r]=$x(t[r],n[r]);continue}if(r==="style"){t[r]=jx(t[r],n[r]);continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}function Nu(e,t,n){let r=[],i;return o=>{const s=e(o);return(s.length!==r.length||s.some((l,c)=>!gt(r[c],l)))&&(r=s,i=t(...s)),i}}function Zt(){return{and:(...e)=>function(n){return e.every(r=>n.guard(r))},or:(...e)=>function(n){return e.some(r=>n.guard(r))},not:e=>function(n){return!n.guard(e)}}}function n5(e){return e}function Au(){return{guards:Zt(),createMachine:e=>e,choose:e=>function({choose:n}){var r;return(r=n(e))==null?void 0:r.actions}}}var pr=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(pr||{}),Ra="__init__";function Wx(e){const t=()=>{var a;return((a=e.getRootNode)==null?void 0:a.call(e))??document},n=()=>Ge(t()),r=()=>n().defaultView??window,i=()=>xu(t());return{...e,getRootNode:t,getDoc:n,getWin:r,getActiveElement:i,isActiveElement:a=>a===i(),getById:a=>t().getElementById(a)}}function To(...e){return t=>{const n=[];for(const r of e)if(typeof r=="function"){const i=r(t);typeof i=="function"&&n.push(i)}else r&&(r.current=t);if(n.length)return()=>{for(const r of n)r()}}}function Hx(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Ta=e=>{const t=E.memo(E.forwardRef((n,r)=>{const{asChild:i,children:o,...s}=n;if(!i)return E.createElement(e,{...s,ref:r},o);if(!E.isValidElement(o))return null;const a=E.Children.only(o),l=Hx(a);return E.cloneElement(a,{...pt(s,a.props),ref:r?To(r,l):l})}));return t.displayName=e.displayName||e.name,t},en=(()=>{const e=new Map;return new Proxy(Ta,{apply(t,n,r){return Ta(r[0])},get(t,n){const r=n;return e.has(r)||e.set(r,Ta(r)),e.get(r)}})})(),[i5,Ux]=hr({name:"LocaleContext",hookName:"useLocaleContext",providerName:"",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),_u=()=>(e,t)=>t.reduce((n,r)=>{const[i,o]=n,s=r;return o[s]!==void 0&&(i[s]=o[s]),delete o[s],[i,o]},[{},{...e}]),Vu=e=>_u()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function Gx(e){return new Proxy({},{get(t,n){return n==="style"?r=>e({style:r}).style:e}})}var U=()=>e=>Array.from(new Set(e));function qx(e,t){const{state:n,send:r,context:i}=e,o=n.matches("mounted","unmountSuspended");return{skip:!i.get("initial"),present:o,setNode(s){s&&r({type:"NODE.SET",node:s})},unmount(){r({type:"UNMOUNT"})}}}var Kx={props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["clearInitial","cleanupNode"],watch({track:e,prop:t,send:n}){e([()=>t("present")],()=>{n({type:"PRESENCE.CHANGED"})})},on:{"NODE.SET":{actions:["setupNode"]},"PRESENCE.CHANGED":{actions:["setInitial","syncPresence"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},invokeOnExitComplete:({prop:e})=>{var t;(t=e("onExitComplete"))==null||t()},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",yo(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:n,prop:r})=>{const i=r("present");if(i)return n({type:"MOUNT",src:"presence.changed"});const o=t.get("node");if(!i&&(o==null?void 0:o.ownerDocument.visibilityState)==="hidden")return n({type:"UNMOUNT",src:"visibilitychange"});Z(()=>{var a,l;const s=No(t.get("styles"));e.set("unmountAnimationName",s),s==="none"||s===e.get("prevAnimationName")||((a=t.get("styles"))==null?void 0:a.display)==="none"||((l=t.get("styles"))==null?void 0:l.animationDuration)==="0s"?n({type:"UNMOUNT",src:"presence.changed"}):n({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{Z(()=>{e.set("prevAnimationName",No(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:n})=>{const r=t.get("node");if(!r)return;const i=a=>{var c,u;(((u=(c=a.composedPath)==null?void 0:c.call(a))==null?void 0:u[0])??a.target)===r&&e.set("prevAnimationName",No(t.get("styles")))},o=a=>{const l=No(t.get("styles"));tt(a)===r&&l===e.get("unmountAnimationName")&&n({type:"UNMOUNT",src:"animationend"})};r.addEventListener("animationstart",i),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o);const s=Ro(r,{animationFillMode:"forwards"});return()=>{r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o),Ea(()=>s())}}}}};function No(e){return(e==null?void 0:e.animationName)||"none"}U()(["onExitComplete","present","immediate"]);var Fu=typeof globalThis.document<"u"?E.useLayoutEffect:E.useEffect;function Ao(e){const t=e().value??e().defaultValue,n=e().isEqual??Object.is,[r]=E.useState(t),[i,o]=E.useState(r),s=e().value!==void 0,a=E.useRef(i);a.current=s?e().value:i;const l=E.useRef(a.current);Fu(()=>{l.current=a.current},[i,e().value]);const c=d=>{var f,g;const h=l.current,m=Pn(d)?d(h):d;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:m,prev:h}),s||o(m),n(m,h)||(g=(f=e()).onChange)==null||g.call(f,m,h)};function u(){return s?e().value:i}return{initial:r,ref:a,get:u,set(d){(e().sync?te.flushSync:m0)(()=>c(d))},invoke(d,h){var m,f;(f=(m=e()).onChange)==null||f.call(m,d,h)},hash(d){var h,m;return((m=(h=e()).hash)==null?void 0:m.call(h,d))??String(d)}}}Ao.cleanup=e=>{E.useEffect(()=>e,[])},Ao.ref=e=>{const t=E.useRef(e);return{get:()=>t.current,set:n=>{t.current=n}}};function Xx(e){const t=E.useRef(e);return{get(n){return t.current[n]},set(n,r){t.current[n]=r}}}var Yx=(e,t)=>{const n=E.useRef(!1),r=E.useRef(!1);E.useEffect(()=>{if(n.current&&r.current)return t();r.current=!0},[...(e??[]).map(i=>typeof i=="function"?i():i)]),E.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function Lu(e,t={}){var j,I,F,Y;const n=E.useMemo(()=>{const{id:z,ids:V,getRootNode:B}=t;return Wx({id:z,ids:V,getRootNode:B})},[t]),r=(...z)=>{e.debug&&console.log(...z)},i=((j=e.props)==null?void 0:j.call(e,{props:vo(t),scope:n}))??t,o=Qx(i),s=(I=e.context)==null?void 0:I.call(e,{prop:o,bindable:Ao,scope:n,flush:zu,getContext(){return l},getComputed(){return w},getRefs(){return g},getEvent(){return m()}}),a=Du(s),l={get(z){var V;return(V=a.current)==null?void 0:V[z].ref.current},set(z,V){var B;(B=a.current)==null||B[z].set(V)},initial(z){var V;return(V=a.current)==null?void 0:V[z].initial},hash(z){var B,K;const V=(B=a.current)==null?void 0:B[z].get();return(K=a.current)==null?void 0:K[z].hash(V)}},c=E.useRef(new Map),u=E.useRef(null),d=E.useRef(null),h=E.useRef({type:""}),m=()=>({...h.current,current(){return h.current},previous(){return d.current}}),f=()=>({...P,matches(...z){return z.includes(P.ref.current)},hasTag(z){var V,B;return!!((B=(V=e.states[P.ref.current])==null?void 0:V.tags)!=null&&B.includes(z))}}),g=Xx(((F=e.refs)==null?void 0:F.call(e,{prop:o,context:l}))??{}),p=()=>({state:f(),context:l,event:m(),prop:o,send:T,action:b,guard:x,track:Yx,refs:g,computed:w,flush:zu,scope:n,choose:C}),b=z=>{const V=Pn(z)?z(p()):z;if(!V)return;const B=V.map(K=>{var H,X;const $=(X=(H=e.implementations)==null?void 0:H.actions)==null?void 0:X[K];return $||ai(`[zag-js] No implementation found for action "${JSON.stringify(K)}"`),$});for(const K of B)K==null||K(p())},x=z=>{var V,B;return Pn(z)?z(p()):(B=(V=e.implementations)==null?void 0:V.guards)==null?void 0:B[z](p())},S=z=>{const V=Pn(z)?z(p()):z;if(!V)return;const B=V.map($=>{var X,ue;const H=(ue=(X=e.implementations)==null?void 0:X.effects)==null?void 0:ue[$];return H||ai(`[zag-js] No implementation found for effect "${JSON.stringify($)}"`),H}),K=[];for(const $ of B){const H=$==null?void 0:$(p());H&&K.push(H)}return()=>K.forEach($=>$==null?void 0:$())},C=z=>ho(z).find(V=>{let B=!V.guard;return fo(V.guard)?B=!!x(V.guard):Pn(V.guard)&&(B=V.guard(p())),B}),w=z=>{gu(e.computed,()=>"[zag-js] No computed object found on machine");const V=e.computed[z];return V({context:l,event:m(),prop:o,refs:g,scope:n,computed:w})},P=Ao(()=>({defaultValue:e.initialState({prop:o}),onChange(z,V){var K,$,H,X;if(V){const ue=c.current.get(V);ue==null||ue(),c.current.delete(V)}V&&b((K=e.states[V])==null?void 0:K.exit),b(($=u.current)==null?void 0:$.actions);const B=S((H=e.states[z])==null?void 0:H.effects);if(B&&c.current.set(z,B),V===Ra){b(e.entry);const ue=S(e.effects);ue&&c.current.set(Ra,ue)}b((X=e.states[z])==null?void 0:X.entry)}})),_=E.useRef(void 0),R=E.useRef(pr.NotStarted);Fu(()=>{queueMicrotask(()=>{const B=R.current===pr.Started;R.current=pr.Started,r(B?"rehydrating...":"initializing...");const K=_.current??P.initial;P.invoke(K,B?P.get():Ra)});const z=c.current,V=P.ref.current;return()=>{r("unmounting..."),_.current=V,R.current=pr.Stopped,z.forEach(B=>B==null?void 0:B()),c.current=new Map,u.current=null,queueMicrotask(()=>{b(e.exit)})}},[]);const N=()=>"ref"in P?P.ref.current:P.get(),T=z=>{queueMicrotask(()=>{var X,ue;if(R.current!==pr.Started)return;d.current=h.current,h.current=z;let V=N();const B=((X=e.states[V].on)==null?void 0:X[z.type])??((ue=e.on)==null?void 0:ue[z.type]),K=C(B);if(!K)return;u.current=K;const $=K.target??V;r("transition",z.type,K.target||V,`(${K.actions})`);const H=$!==V;H?te.flushSync(()=>P.set($)):K.reenter&&!H?P.invoke(V,V):b(K.actions??[])})};return(Y=e.watch)==null||Y.call(e,p()),{state:f(),send:T,context:l,prop:o,scope:n,refs:g,computed:w,event:m(),getStatus:()=>R.current}}function Du(e){const t=E.useRef(e);return t.current=e,t}function Qx(e){const t=Du(e);return function(r){return t.current[r]}}function zu(e){queueMicrotask(()=>{te.flushSync(()=>e())})}var Jx=Gx(e=>e);function Zx(e,t={}){const{sync:n=!1}=t,r=e1(e);return E.useCallback((...i)=>{var o;return n?queueMicrotask(()=>{var s;return(s=r.current)==null?void 0:s.call(r,...i)}):(o=r.current)==null?void 0:o.call(r,...i)},[n,r])}function e1(e){const t=E.useRef(e);return t.current=e,t}const Na=(e={})=>{const{lazyMount:t,unmountOnExit:n,present:r,skipAnimationOnMount:i=!1,...o}=e,s=E.useRef(!1),a={...o,present:r,onExitComplete:Zx(e.onExitComplete)},l=Lu(Kx,a),c=qx(l);c.present&&(s.current=!0);const u=!c.present&&!s.current&&t||n&&!c.present&&s.current,d=()=>({"data-state":c.skip&&i?void 0:r?"open":"closed",hidden:!c.present});return{ref:c.setNode,getPresenceProps:d,present:c.present,unmounted:u}},[Mu,Aa]=hr({name:"PresenceContext",hookName:"usePresenceContext",providerName:""}),_o=Oe("span"),{withContext:t1}=ii({key:"text"}),n1=t1("p");function $u(e,t=[]){const n=E.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return E.useInsertionEffect(()=>{n.current=e}),E.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function Bu(e={}){const t=$u(e.onOpen),n=$u(e.onClose),[r,i]=E.useState(e.defaultOpen||!1),o=e.open!==void 0?e.open:r,s=e.open!==void 0,a=E.useCallback(()=>{s||i(!1),n==null||n()},[s,n]),l=E.useCallback(()=>{s||i(!0),t==null||t()},[s,t]),c=E.useCallback(()=>{o?a():l()},[o,l,a]);return{open:o,onOpen:l,onClose:a,onToggle:c,setOpen:i}}var G=(e,t=[])=>({parts:(...n)=>{if(r1(t))return G(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>G(e,[...t,...n]),omit:(...n)=>G(e,t.filter(r=>!n.includes(r))),rename:n=>G(n,t),keys:()=>t,build:()=>[...new Set(t)].reduce((n,r)=>Object.assign(n,{[r]:{selector:[`&[data-scope="${mr(e)}"][data-part="${mr(r)}"]`,`& [data-scope="${mr(e)}"][data-part="${mr(r)}"]`].join(", "),attrs:{"data-scope":mr(e),"data-part":mr(r)}}}),{})}),mr=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),r1=e=>e.length===0,ju=G("collapsible").parts("root","trigger","content","indicator");ju.build(),U()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);var i1=Object.defineProperty,o1=(e,t,n)=>t in e?i1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_a=(e,t,n)=>o1(e,t+"",n),s1=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0},Va=class{toHexInt(){return this.toFormat("rgba").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}getChannelValuePercent(e,t){const n=t??this.getChannelValue(e),{minValue:r,maxValue:i}=this.getChannelRange(e);return P0(n,r,i)}getChannelPercentValue(e,t){const{minValue:n,maxValue:r,step:i}=this.getChannelRange(e),o=R0(t,n,r,i);return du(o,n,r,i)}withChannelValue(e,t){const{minValue:n,maxValue:r}=this.getChannelRange(e);if(e in this){let i=this.clone();return i[e]=Ue(t,n,r),i}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:n}=e,r=t||this.getChannels().find(s=>s!==n),i=n||this.getChannels().find(s=>s!==r),o=this.getChannels().find(s=>s!==r&&s!==i);return{xChannel:r,yChannel:i,zChannel:o}}incrementChannel(e,t){const{minValue:n,maxValue:r,step:i}=this.getChannelRange(e),o=du(Ue(this.getChannelValue(e)+t,n,r),n,r,i);return this.withChannelValue(e,o)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return s1(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},a1=/^#[\da-f]+$/i,l1=/^rgba?\((.*)\)$/,c1=/[^#]/gi,Wu=class Ws extends Va{constructor(t,n,r,i){super(),this.red=t,this.green=n,this.blue=r,this.alpha=i}static parse(t){let n=[];if(a1.test(t)&&[4,5,7,9].includes(t.length)){const i=(t.length<6?t.replace(c1,"$&$&"):t).slice(1).split("");for(;i.length>0;)n.push(parseInt(i.splice(0,2).join(""),16));n[3]=n[3]!==void 0?n[3]/255:void 0}const r=t.match(l1);return r!=null&&r[1]&&(n=r[1].split(",").map(i=>Number(i.trim())).map((i,o)=>Ue(i,0,o<3?255:1))),n.length<3?void 0:new Ws(n[0],n[1],n[2],n[3]??1)}toString(t){switch(t){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(this.alpha*255).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"hsb":return this.toHSB().toString("hsb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+t)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const t=this.red/255,n=this.green/255,r=this.blue/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=o-i,a=o===0?0:s/o;let l=0;if(s!==0){switch(o){case t:l=(n-r)/s+(nNumber(a.trim().replace("%","")));return new Hs(cu(r,360),Ue(i,0,100),Ue(o,0,100),Ue(s??1,0,1))}}toString(t){switch(t){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${ce(this.saturation,2)}%, ${ce(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${ce(this.saturation,2)}%, ${ce(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+t)}}toHSB(){let t=this.saturation/100,n=this.lightness/100,r=n+t*Math.min(n,1-n);return t=r===0?0:2*(1-n/r),new Da(ce(this.hue,2),ce(t*100,2),ce(r*100,2),ce(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.lightness/100,i=n*Math.min(r,1-r),o=(s,a=(s+t/30)%12)=>r-i*Math.max(Math.min(a-3,9-a,1),-1);return new Fa(Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255),ce(this.alpha,2))}clone(){return new Hs(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),i=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(i/=100),new Intl.NumberFormat(n,r).format(i)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return Hs.colorChannels}};_a(Hu,"colorChannels",["hue","saturation","lightness"]);var La=Hu,d1=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,Uu=class Us extends Va{constructor(t,n,r,i){super(),this.hue=t,this.saturation=n,this.brightness=r,this.alpha=i}static parse(t){let n;if(n=t.match(d1)){const[r,i,o,s]=(n[1]??n[2]).split(",").map(a=>Number(a.trim().replace("%","")));return new Us(cu(r,360),Ue(i,0,100),Ue(o,0,100),Ue(s??1,0,1))}}toString(t){switch(t){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${ce(this.saturation,2)}%, ${ce(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${ce(this.saturation,2)}%, ${ce(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+t)}}toHSL(){let t=this.saturation/100,n=this.brightness/100,r=n*(1-t/2);return t=r===0||r===1?0:(n-r)/Math.min(r,1-r),new La(ce(this.hue,2),ce(t*100,2),ce(r*100,2),ce(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.brightness/100,i=(o,s=(o+t/60)%6)=>r-n*r*Math.max(Math.min(s,4-s,1),0);return new Fa(Math.round(i(5)*255),Math.round(i(3)*255),Math.round(i(1)*255),ce(this.alpha,2))}clone(){return new Us(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),i=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(i/=100),new Intl.NumberFormat(n,r).format(i)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return Us.colorChannels}};_a(Uu,"colorChannels",["hue","saturation","brightness"]);var Da=Uu,h1="aliceblue:f0f8ff,antiquewhite:faebd7,aqua:00ffff,aquamarine:7fffd4,azure:f0ffff,beige:f5f5dc,bisque:ffe4c4,black:000000,blanchedalmond:ffebcd,blue:0000ff,blueviolet:8a2be2,brown:a52a2a,burlywood:deb887,cadetblue:5f9ea0,chartreuse:7fff00,chocolate:d2691e,coral:ff7f50,cornflowerblue:6495ed,cornsilk:fff8dc,crimson:dc143c,cyan:00ffff,darkblue:00008b,darkcyan:008b8b,darkgoldenrod:b8860b,darkgray:a9a9a9,darkgreen:006400,darkkhaki:bdb76b,darkmagenta:8b008b,darkolivegreen:556b2f,darkorange:ff8c00,darkorchid:9932cc,darkred:8b0000,darksalmon:e9967a,darkseagreen:8fbc8f,darkslateblue:483d8b,darkslategray:2f4f4f,darkturquoise:00ced1,darkviolet:9400d3,deeppink:ff1493,deepskyblue:00bfff,dimgray:696969,dodgerblue:1e90ff,firebrick:b22222,floralwhite:fffaf0,forestgreen:228b22,fuchsia:ff00ff,gainsboro:dcdcdc,ghostwhite:f8f8ff,gold:ffd700,goldenrod:daa520,gray:808080,green:008000,greenyellow:adff2f,honeydew:f0fff0,hotpink:ff69b4,indianred:cd5c5c,indigo:4b0082,ivory:fffff0,khaki:f0e68c,lavender:e6e6fa,lavenderblush:fff0f5,lawngreen:7cfc00,lemonchiffon:fffacd,lightblue:add8e6,lightcoral:f08080,lightcyan:e0ffff,lightgoldenrodyellow:fafad2,lightgrey:d3d3d3,lightgreen:90ee90,lightpink:ffb6c1,lightsalmon:ffa07a,lightseagreen:20b2aa,lightskyblue:87cefa,lightslategray:778899,lightsteelblue:b0c4de,lightyellow:ffffe0,lime:00ff00,limegreen:32cd32,linen:faf0e6,magenta:ff00ff,maroon:800000,mediumaquamarine:66cdaa,mediumblue:0000cd,mediumorchid:ba55d3,mediumpurple:9370d8,mediumseagreen:3cb371,mediumslateblue:7b68ee,mediumspringgreen:00fa9a,mediumturquoise:48d1cc,mediumvioletred:c71585,midnightblue:191970,mintcream:f5fffa,mistyrose:ffe4e1,moccasin:ffe4b5,navajowhite:ffdead,navy:000080,oldlace:fdf5e6,olive:808000,olivedrab:6b8e23,orange:ffa500,orangered:ff4500,orchid:da70d6,palegoldenrod:eee8aa,palegreen:98fb98,paleturquoise:afeeee,palevioletred:d87093,papayawhip:ffefd5,peachpuff:ffdab9,peru:cd853f,pink:ffc0cb,plum:dda0dd,powderblue:b0e0e6,purple:800080,rebeccapurple:663399,red:ff0000,rosybrown:bc8f8f,royalblue:4169e1,saddlebrown:8b4513,salmon:fa8072,sandybrown:f4a460,seagreen:2e8b57,seashell:fff5ee,sienna:a0522d,silver:c0c0c0,skyblue:87ceeb,slateblue:6a5acd,slategray:708090,snow:fffafa,springgreen:00ff7f,steelblue:4682b4,tan:d2b48c,teal:008080,thistle:d8bfd8,tomato:ff6347,turquoise:40e0d0,violet:ee82ee,wheat:f5deb3,white:ffffff,whitesmoke:f5f5f5,yellow:ffff00,yellowgreen:9acd32",f1=e=>{const t=new Map,n=e.split(",");for(let r=0;r{var n;if(Gu.has(e))return Vo(Gu.get(e));const t=Fa.parse(e)||Da.parse(e)||La.parse(e);if(!t){const r=new Error("Invalid color value: "+e);throw(n=Error.captureStackTrace)==null||n.call(Error,r,Vo),r}return t};const g1=["top","right","bottom","left"],tn=Math.min,nt=Math.max,Fo=Math.round,Lo=Math.floor,It=e=>({x:e,y:e}),p1={left:"right",right:"left",bottom:"top",top:"bottom"},m1={start:"end",end:"start"};function za(e,t,n){return nt(e,tn(t,n))}function $t(e,t){return typeof e=="function"?e(t):e}function Bt(e){return e.split("-")[0]}function vr(e){return e.split("-")[1]}function Ma(e){return e==="x"?"y":"x"}function $a(e){return e==="y"?"height":"width"}const v1=new Set(["top","bottom"]);function Pt(e){return v1.has(Bt(e))?"y":"x"}function Ba(e){return Ma(Pt(e))}function b1(e,t,n){n===void 0&&(n=!1);const r=vr(e),i=Ba(e),o=$a(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Do(s)),[s,Do(s)]}function y1(e){const t=Do(e);return[ja(e),t,ja(t)]}function ja(e){return e.replace(/start|end/g,t=>m1[t])}const qu=["left","right"],Ku=["right","left"],x1=["top","bottom"],C1=["bottom","top"];function S1(e,t,n){switch(e){case"top":case"bottom":return n?t?Ku:qu:t?qu:Ku;case"left":case"right":return t?x1:C1;default:return[]}}function w1(e,t,n,r){const i=vr(e);let o=S1(Bt(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(ja)))),o}function Do(e){return e.replace(/left|right|bottom|top/g,t=>p1[t])}function E1(e){return{top:0,right:0,bottom:0,left:0,...e}}function Xu(e){return typeof e!="number"?E1(e):{top:e,right:e,bottom:e,left:e}}function zo(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Yu(e,t,n){let{reference:r,floating:i}=e;const o=Pt(t),s=Ba(t),a=$a(s),l=Bt(t),c=o==="y",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,h=r[a]/2-i[a]/2;let m;switch(l){case"top":m={x:u,y:r.y-i.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-i.width,y:d};break;default:m={x:r.x,y:r.y}}switch(vr(t)){case"start":m[s]-=h*(n&&c?-1:1);break;case"end":m[s]+=h*(n&&c?-1:1);break}return m}const k1=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Yu(c,r,l),h=r,m={},f=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=$t(e,t)||{};if(c==null)return{};const d=Xu(u),h={x:n,y:r},m=Ba(i),f=$a(m),g=await s.getDimensions(c),p=m==="y",b=p?"top":"left",x=p?"bottom":"right",S=p?"clientHeight":"clientWidth",C=o.reference[f]+o.reference[m]-h[m]-o.floating[f],w=h[m]-o.reference[m],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let _=P?P[S]:0;(!_||!await(s.isElement==null?void 0:s.isElement(P)))&&(_=a.floating[S]||o.floating[f]);const R=C/2-w/2,N=_/2-g[f]/2-1,T=tn(d[b],N),j=tn(d[x],N),I=T,F=_-g[f]-j,Y=_/2-g[f]/2+R,z=za(I,Y,F),V=!l.arrow&&vr(i)!=null&&Y!==z&&o.reference[f]/2-(YY<=0)){var j,I;const Y=(((j=o.flip)==null?void 0:j.index)||0)+1,z=_[Y];if(z&&(!(d==="alignment"?x!==Pt(z):!1)||T.every(K=>Pt(K.placement)===x?K.overflows[0]>0:!0)))return{data:{index:Y,overflows:T},reset:{placement:z}};let V=(I=T.filter(B=>B.overflows[0]<=0).sort((B,K)=>B.overflows[1]-K.overflows[1])[0])==null?void 0:I.placement;if(!V)switch(m){case"bestFit":{var F;const B=(F=T.filter(K=>{if(P){const $=Pt(K.placement);return $===x||$==="y"}return!0}).map(K=>[K.placement,K.overflows.filter($=>$>0).reduce(($,H)=>$+H,0)]).sort((K,$)=>K[1]-$[1])[0])==null?void 0:F[0];B&&(V=B);break}case"initialPlacement":V=a;break}if(i!==V)return{reset:{placement:V}}}return{}}}};function Qu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ju(e){return g1.some(t=>e[t]>=0)}const P1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=$t(e,t);switch(r){case"referenceHidden":{const o=await ui(t,{...i,elementContext:"reference"}),s=Qu(o,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ju(s)}}}case"escaped":{const o=await ui(t,{...i,altBoundary:!0}),s=Qu(o,n.floating);return{data:{escapedOffsets:s,escaped:Ju(s)}}}default:return{}}}}},Zu=new Set(["left","top"]);async function R1(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Bt(n),a=vr(n),l=Pt(n)==="y",c=Zu.has(s)?-1:1,u=o&&l?-1:1,d=$t(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:f}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof f=="number"&&(m=a==="end"?f*-1:f),l?{x:m*u,y:h*c}:{x:h*c,y:m*u}}const T1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await R1(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},N1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:p=>{let{x:b,y:x}=p;return{x:b,y:x}}},...l}=$t(e,t),c={x:n,y:r},u=await ui(t,l),d=Pt(Bt(i)),h=Ma(d);let m=c[h],f=c[d];if(o){const p=h==="y"?"top":"left",b=h==="y"?"bottom":"right",x=m+u[p],S=m-u[b];m=za(x,m,S)}if(s){const p=d==="y"?"top":"left",b=d==="y"?"bottom":"right",x=f+u[p],S=f-u[b];f=za(x,f,S)}const g=a.fn({...t,[h]:m,[d]:f});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:o,[d]:s}}}}}},A1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=$t(e,t),u={x:n,y:r},d=Pt(i),h=Ma(d);let m=u[h],f=u[d];const g=$t(a,t),p=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const S=h==="y"?"height":"width",C=o.reference[h]-o.floating[S]+p.mainAxis,w=o.reference[h]+o.reference[S]-p.mainAxis;mw&&(m=w)}if(c){var b,x;const S=h==="y"?"width":"height",C=Zu.has(Bt(i)),w=o.reference[d]-o.floating[S]+(C&&((b=s.offset)==null?void 0:b[d])||0)+(C?0:p.crossAxis),P=o.reference[d]+o.reference[S]+(C?0:((x=s.offset)==null?void 0:x[d])||0)-(C?p.crossAxis:0);fP&&(f=P)}return{[h]:m,[d]:f}}}},_1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...c}=$t(e,t),u=await ui(t,c),d=Bt(i),h=vr(i),m=Pt(i)==="y",{width:f,height:g}=o.floating;let p,b;d==="top"||d==="bottom"?(p=d,b=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(b=d,p=h==="end"?"top":"bottom");const x=g-u.top-u.bottom,S=f-u.left-u.right,C=tn(g-u[p],x),w=tn(f-u[b],S),P=!t.middlewareData.shift;let _=C,R=w;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=x),P&&!h){const T=nt(u.left,0),j=nt(u.right,0),I=nt(u.top,0),F=nt(u.bottom,0);m?R=f-2*(T!==0||j!==0?T+j:nt(u.left,u.right)):_=g-2*(I!==0||F!==0?I+F:nt(u.top,u.bottom))}await l({...t,availableWidth:R,availableHeight:_});const N=await s.getDimensions(a.floating);return f!==N.width||g!==N.height?{reset:{rects:!0}}:{}}}};function Mo(){return typeof window<"u"}function br(e){return ed(e)?(e.nodeName||"").toLowerCase():"#document"}function rt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Rt(e){var t;return(t=(ed(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ed(e){return Mo()?e instanceof Node||e instanceof rt(e).Node:!1}function mt(e){return Mo()?e instanceof Element||e instanceof rt(e).Element:!1}function Tt(e){return Mo()?e instanceof HTMLElement||e instanceof rt(e).HTMLElement:!1}function td(e){return!Mo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof rt(e).ShadowRoot}const V1=new Set(["inline","contents"]);function di(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=vt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!V1.has(i)}const F1=new Set(["table","td","th"]);function L1(e){return F1.has(br(e))}const D1=[":popover-open",":modal"];function $o(e){return D1.some(t=>{try{return e.matches(t)}catch{return!1}})}const z1=["transform","translate","scale","rotate","perspective"],M1=["transform","translate","scale","rotate","perspective","filter"],$1=["paint","layout","strict","content"];function Wa(e){const t=Ha(),n=mt(e)?vt(e):e;return z1.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||M1.some(r=>(n.willChange||"").includes(r))||$1.some(r=>(n.contain||"").includes(r))}function B1(e){let t=nn(e);for(;Tt(t)&&!yr(t);){if(Wa(t))return t;if($o(t))return null;t=nn(t)}return null}function Ha(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const j1=new Set(["html","body","#document"]);function yr(e){return j1.has(br(e))}function vt(e){return rt(e).getComputedStyle(e)}function Bo(e){return mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nn(e){if(br(e)==="html")return e;const t=e.assignedSlot||e.parentNode||td(e)&&e.host||Rt(e);return td(t)?t.host:t}function nd(e){const t=nn(e);return yr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Tt(t)&&di(t)?t:nd(t)}function hi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=nd(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=rt(i);if(o){const a=Ua(s);return t.concat(s,s.visualViewport||[],di(i)?i:[],a&&n?hi(a):[])}return t.concat(i,hi(i,[],n))}function Ua(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rd(e){const t=vt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Tt(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=Fo(n)!==o||Fo(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function Ga(e){return mt(e)?e:e.contextElement}function xr(e){const t=Ga(e);if(!Tt(t))return It(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=rd(t);let s=(o?Fo(n.width):n.width)/r,a=(o?Fo(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const W1=It(0);function id(e){const t=rt(e);return!Ha()||!t.visualViewport?W1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function H1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==rt(e)?!1:t}function Nn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Ga(e);let s=It(1);t&&(r?mt(r)&&(s=xr(r)):s=xr(e));const a=H1(o,n,r)?id(o):It(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o){const h=rt(o),m=r&&mt(r)?rt(r):r;let f=h,g=Ua(f);for(;g&&r&&m!==f;){const p=xr(g),b=g.getBoundingClientRect(),x=vt(g),S=b.left+(g.clientLeft+parseFloat(x.paddingLeft))*p.x,C=b.top+(g.clientTop+parseFloat(x.paddingTop))*p.y;l*=p.x,c*=p.y,u*=p.x,d*=p.y,l+=S,c+=C,f=rt(g),g=Ua(f)}}return zo({width:u,height:d,x:l,y:c})}function jo(e,t){const n=Bo(e).scrollLeft;return t?t.left+n:Nn(Rt(e)).left+n}function od(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-jo(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function U1(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=Rt(r),a=t?$o(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=It(1);const u=It(0),d=Tt(r);if((d||!d&&!o)&&((br(r)!=="body"||di(s))&&(l=Bo(r)),Tt(r))){const m=Nn(r);c=xr(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const h=s&&!d&&!o?od(s,l):It(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function G1(e){return Array.from(e.getClientRects())}function q1(e){const t=Rt(e),n=Bo(e),r=e.ownerDocument.body,i=nt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=nt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+jo(e);const a=-n.scrollTop;return vt(r).direction==="rtl"&&(s+=nt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}const sd=25;function K1(e,t){const n=rt(e),r=Rt(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const u=Ha();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}const c=jo(r);if(c<=0){const u=r.ownerDocument,d=u.body,h=getComputedStyle(d),m=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,f=Math.abs(r.clientWidth-d.clientWidth-m);f<=sd&&(o-=f)}else c<=sd&&(o+=c);return{width:o,height:s,x:a,y:l}}const X1=new Set(["absolute","fixed"]);function Y1(e,t){const n=Nn(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Tt(e)?xr(e):It(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,c=r*o.y;return{width:s,height:a,x:l,y:c}}function ad(e,t,n){let r;if(t==="viewport")r=K1(e,n);else if(t==="document")r=q1(Rt(e));else if(mt(t))r=Y1(t,n);else{const i=id(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return zo(r)}function ld(e,t){const n=nn(e);return n===t||!mt(n)||yr(n)?!1:vt(n).position==="fixed"||ld(n,t)}function Q1(e,t){const n=t.get(e);if(n)return n;let r=hi(e,[],!1).filter(a=>mt(a)&&br(a)!=="body"),i=null;const o=vt(e).position==="fixed";let s=o?nn(e):e;for(;mt(s)&&!yr(s);){const a=vt(s),l=Wa(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&X1.has(i.position)||di(s)&&!l&&ld(e,s))?r=r.filter(u=>u!==s):i=a,s=nn(s)}return t.set(e,r),r}function J1(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?$o(t)?[]:Q1(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,u)=>{const d=ad(t,u,i);return c.top=nt(d.top,c.top),c.right=tn(d.right,c.right),c.bottom=tn(d.bottom,c.bottom),c.left=nt(d.left,c.left),c},ad(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Z1(e){const{width:t,height:n}=rd(e);return{width:t,height:n}}function eC(e,t,n){const r=Tt(t),i=Rt(t),o=n==="fixed",s=Nn(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=It(0);function c(){l.x=jo(i)}if(r||!r&&!o)if((br(t)!=="body"||di(i))&&(a=Bo(t)),r){const m=Nn(t,!0,o,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else i&&c();o&&!r&&i&&c();const u=i&&!r&&!o?od(i,a):It(0),d=s.left+a.scrollLeft-l.x-u.x,h=s.top+a.scrollTop-l.y-u.y;return{x:d,y:h,width:s.width,height:s.height}}function qa(e){return vt(e).position==="static"}function cd(e,t){if(!Tt(e)||vt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Rt(e)===n&&(n=n.ownerDocument.body),n}function ud(e,t){const n=rt(e);if($o(e))return n;if(!Tt(e)){let i=nn(e);for(;i&&!yr(i);){if(mt(i)&&!qa(i))return i;i=nn(i)}return n}let r=cd(e,t);for(;r&&L1(r)&&qa(r);)r=cd(r,t);return r&&yr(r)&&qa(r)&&!Wa(r)?n:r||B1(e)||n}const tC=async function(e){const t=this.getOffsetParent||ud,n=this.getDimensions,r=await n(e.floating);return{reference:eC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function nC(e){return vt(e).direction==="rtl"}const rC={convertOffsetParentRelativeRectToViewportRelativeRect:U1,getDocumentElement:Rt,getClippingRect:J1,getOffsetParent:ud,getElementRects:tC,getClientRects:G1,getDimensions:Z1,getScale:xr,isElement:mt,isRTL:nC};function dd(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function iC(e,t){let n=null,r;const i=Rt(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:m}=c;if(a||t(),!h||!m)return;const f=Lo(d),g=Lo(i.clientWidth-(u+h)),p=Lo(i.clientHeight-(d+m)),b=Lo(u),S={rootMargin:-f+"px "+-g+"px "+-p+"px "+-b+"px",threshold:nt(0,tn(1,l))||1};let C=!0;function w(P){const _=P[0].intersectionRatio;if(_!==l){if(!C)return s();_?s(!1,_):r=setTimeout(()=>{s(!1,1e-7)},1e3)}_===1&&!dd(c,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(w,{...S,root:i.ownerDocument})}catch{n=new IntersectionObserver(w,S)}n.observe(e)}return s(!0),o}function oC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Ga(e),u=i||o?[...c?hi(c):[],...hi(t)]:[];u.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),o&&b.addEventListener("resize",n)});const d=c&&a?iC(c,n):null;let h=-1,m=null;s&&(m=new ResizeObserver(b=>{let[x]=b;x&&x.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var S;(S=m)==null||S.observe(t)})),n()}),c&&!l&&m.observe(c),m.observe(t));let f,g=l?Nn(e):null;l&&p();function p(){const b=Nn(e);g&&!dd(g,b)&&n(),g=b,f=requestAnimationFrame(p)}return n(),()=>{var b;u.forEach(x=>{i&&x.removeEventListener("scroll",n),o&&x.removeEventListener("resize",n)}),d==null||d(),(b=m)==null||b.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const sC=T1,aC=N1,lC=I1,cC=_1,uC=P1,dC=O1,hC=A1,fC=(e,t,n)=>{const r=new Map,i={platform:rC,...n},o={...i.platform,_c:r};return k1(e,t,{...i,platform:o})};function hd(e=0,t=0,n=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,n,r);const i={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...i,toJSON:()=>i}}function gC(e){if(!e)return hd();const{x:t,y:n,width:r,height:i}=e;return hd(t,n,r,i)}function pC(e,t){return{contextElement:Me(e)?e:void 0,getBoundingClientRect:()=>{const n=e,r=t==null?void 0:t(n);return r||!n?gC(r):n.getBoundingClientRect()}}}var fd=e=>({variable:e,reference:`var(${e})`}),gd={transformOrigin:fd("--transform-origin"),arrowOffset:fd("--arrow-offset")},mC=e=>e==="top"||e==="bottom"?"y":"x";function vC(e,t){return{name:"transformOrigin",fn(n){var N,T,j,I;const{elements:r,middlewareData:i,placement:o,rects:s,y:a}=n,l=o.split("-")[0],c=mC(l),u=((N=i.arrow)==null?void 0:N.x)||0,d=((T=i.arrow)==null?void 0:T.y)||0,h=(t==null?void 0:t.clientWidth)||0,m=(t==null?void 0:t.clientHeight)||0,f=u+h/2,g=d+m/2,p=Math.abs(((j=i.shift)==null?void 0:j.y)||0),b=s.reference.height/2,x=m/2,S=((I=e.offset)==null?void 0:I.mainAxis)??e.gutter,C=typeof S=="number"?S+x:S??x,w=p>C,P={top:`${f}px calc(100% + ${C}px)`,bottom:`${f}px ${-C}px`,left:`calc(100% + ${C}px) ${g}px`,right:`${-C}px ${g}px`}[l],_=`${f}px ${s.reference.y+b-a}px`,R=!!e.overlap&&c==="y"&&w;return r.floating.style.setProperty(gd.transformOrigin.variable,R?_:P),{data:{transformOrigin:R?_:P}}}}}var bC={name:"rects",fn({rects:e}){return{data:e}}},yC=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};const{x:r,y:i}=n.arrow,o=t.split("-")[0];return Object.assign(e.style,{left:r!=null?`${r}px`:"",top:i!=null?`${i}px`:"",[o]:`calc(100% + ${gd.arrowOffset.reference})`}),{}}}};function xC(e){const[t,n]=e.split("-");return{side:t,align:n,hasAlign:n!=null}}function CC(e){return e.split("-")[0]}var SC={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function pd(e,t){const n=e.devicePixelRatio||1;return Math.round(t*n)/n}function Ka(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function wC(e,t,n){const r=e||t.createElement("div");return dC({element:r,padding:n.arrowPadding})}function EC(e,t){if(!c0(t.offset??t.gutter))return sC(({placement:n})=>{var c,u;const r=((e==null?void 0:e.clientHeight)||0)/2,i=((c=t.offset)==null?void 0:c.mainAxis)??t.gutter,o=typeof i=="number"?i+r:i??r,{hasAlign:s}=xC(n),a=s?void 0:t.shift,l=((u=t.offset)==null?void 0:u.crossAxis)??a;return vo({crossAxis:l,mainAxis:o,alignmentAxis:t.shift})})}function kC(e){if(!e.flip)return;const t=Ka(e.boundary);return lC({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function OC(e){if(!e.slide&&!e.overlap)return;const t=Ka(e.boundary);return aC({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:hC()})}function IC(e){return cC({padding:e.overflowPadding,apply({elements:t,rects:n,availableHeight:r,availableWidth:i}){const o=t.floating,s=Math.round(n.reference.width),a=Math.round(n.reference.height);i=Math.floor(i),r=Math.floor(r),o.style.setProperty("--reference-width",`${s}px`),o.style.setProperty("--reference-height",`${a}px`),o.style.setProperty("--available-width",`${i}px`),o.style.setProperty("--available-height",`${r}px`)}})}function PC(e){if(e.hideWhenDetached)return uC({strategy:"referenceHidden",boundary:Ka(e.boundary)??"clippingAncestors"})}function RC(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function TC(e,t,n={}){const r=pC(e,n.getAnchorRect);if(!t||!r)return;const i=Object.assign({},SC,n),o=t.querySelector("[data-part=arrow]"),s=[EC(o,i),kC(i),OC(i),wC(o,t.ownerDocument,i),yC(o),vC({gutter:i.gutter,offset:i.offset,overlap:i.overlap},o),IC(i),PC(i),bC],{placement:a,strategy:l,onComplete:c,onPositioned:u}=i,d=async()=>{var C;if(!r||!t)return;const g=await fC(r,t,{placement:a,middleware:s,strategy:l});c==null||c(g),u==null||u({placed:!0});const p=Ie(t),b=pd(p,g.x),x=pd(p,g.y);t.style.setProperty("--x",`${b}px`),t.style.setProperty("--y",`${x}px`),i.hideWhenDetached&&(((C=g.middlewareData.hide)==null?void 0:C.referenceHidden)?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const S=t.firstElementChild;if(S){const w=yo(S);t.style.setProperty("--z-index",w.zIndex)}},h=async()=>{n.updatePosition?(await n.updatePosition({updatePosition:d,floatingElement:t}),u==null||u({placed:!0})):await d()},m=RC(i.listeners),f=i.listeners?oC(r,t,h,m):v0;return h(),()=>{f==null||f(),u==null||u({placed:!1})}}function bt(e,t,n={}){const{defer:r,...i}=n,o=r?Z:a=>a(),s=[];return s.push(o(()=>{const a=typeof e=="function"?e():e,l=typeof t=="function"?t():t;s.push(TC(a,l,i))})),()=>{s.forEach(a=>a==null?void 0:a())}}function NC(e){const t={each(n){var r;for(let i=0;i<((r=e.frames)==null?void 0:r.length);i+=1){const o=e.frames[i];o&&n(o)}},addEventListener(n,r,i){return t.each(o=>{try{o.document.addEventListener(n,r,i)}catch{}}),()=>{try{t.removeEventListener(n,r,i)}catch{}}},removeEventListener(n,r,i){t.each(o=>{try{o.document.removeEventListener(n,r,i)}catch{}})}};return t}function AC(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(n,r,i)=>{try{t==null||t.addEventListener(n,r,i)}catch{}return()=>{try{t==null||t.removeEventListener(n,r,i)}catch{}}},removeEventListener:(n,r,i)=>{try{t==null||t.removeEventListener(n,r,i)}catch{}}}}var md="pointerdown.outside",vd="focus.outside";function _C(e){for(const t of e)if(Me(t)&&Jt(t))return!0;return!1}var bd=e=>"clientY"in e;function VC(e,t){if(!bd(t)||!e)return!1;const n=e.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}function FC(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function yd(e,t){if(!t||!bd(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,i=t.scrollWidth>t.clientWidth,o=i&&e.clientY>t.offsetTop+t.clientHeight,s={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(i?16:0)},a={x:e.clientX,y:e.clientY};return FC(s,a)?r||o:!1}function LC(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:i,onInteractOutside:o,defer:s}=t;if(!e)return;const a=Ge(e),l=Ie(e),c=NC(l),u=AC(l);function d(x,S){if(!Me(S)||!S.isConnected||Rn(e,S)||VC(e,x))return!1;const C=a.querySelector(`[aria-controls="${e.id}"]`);if(C){const P=ko(C);if(yd(x,P))return!1}const w=ko(e);return yd(x,w)?!1:!(n!=null&&n(S))}const h=new Set,m=fr(e==null?void 0:e.getRootNode());function f(x){function S(C){var R;const w=s&&!Su()?Z:N=>N(),P=C??x,_=((R=P==null?void 0:P.composedPath)==null?void 0:R.call(P))??[P==null?void 0:P.target];w(()=>{const N=m?_[0]:tt(x);if(!(!e||!d(x,N))){if(i||o){const T=po(i,o);e.addEventListener(md,T,{once:!0})}xd(e,md,{bubbles:!1,cancelable:!0,detail:{originalEvent:P,contextmenu:ox(P),focusable:_C(_),target:N}})}})}x.pointerType==="touch"?(h.forEach(C=>C()),h.add(he(a,"click",S,{once:!0})),h.add(u.addEventListener("click",S,{once:!0})),h.add(c.addEventListener("click",S,{once:!0}))):S()}const g=new Set,p=setTimeout(()=>{g.add(he(a,"pointerdown",f,!0)),g.add(u.addEventListener("pointerdown",f,!0)),g.add(c.addEventListener("pointerdown",f,!0))},0);function b(x){(s?Z:C=>C())(()=>{const C=tt(x);if(!(!e||!d(x,C))){if(r||o){const w=po(r,o);e.addEventListener(vd,w,{once:!0})}xd(e,vd,{bubbles:!1,cancelable:!0,detail:{originalEvent:x,contextmenu:!1,focusable:Jt(C),target:C}})}})}return Su()||(g.add(he(a,"focusin",b,!0)),g.add(u.addEventListener("focusin",b,!0)),g.add(c.addEventListener("focusin",b,!0))),()=>{clearTimeout(p),h.forEach(x=>x()),g.forEach(x=>x())}}function DC(e,t){const{defer:n}=t,r=n?Z:o=>o(),i=[];return i.push(r(()=>{const o=typeof e=="function"?e():e;i.push(LC(o,t))})),()=>{i.forEach(o=>o==null?void 0:o())}}function xd(e,t,n){const r=e.ownerDocument.defaultView||window,i=new r.CustomEvent(t,n);return e.dispatchEvent(i)}function zC(e,t){const n=r=>{r.key==="Escape"&&(r.isComposing||t==null||t(r))};return he(Ge(e),"keydown",n,{capture:!0})}var Cd="layer:request-dismiss",at={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){var r;const t=this.indexOf(e),n=this.topMostPointerBlockingLayer()?this.indexOf((r=this.topMostPointerBlockingLayer())==null?void 0:r.node):-1;return tRn(n.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Rn(t,e))},add(e){this.layers.push(e),this.syncLayerIndex()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(tat.dismiss(r.node,e)),this.layers.splice(t,1),this.syncLayerIndex())},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayerIndex(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){const n=this.indexOf(e);if(n===-1)return;const r=this.layers[n];$C(e,Cd,i=>{var o;(o=r.requestDismiss)==null||o.call(r,i),i.defaultPrevented||r==null||r.dismiss()}),MC(e,Cd,{originalLayer:e,targetLayer:t,originalIndex:n,targetIndex:t?this.indexOf(t):-1}),this.syncLayerIndex()},clear(){this.remove(this.layers[0].node)}};function MC(e,t,n){const r=e.ownerDocument.defaultView||window,i=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:n});return e.dispatchEvent(i)}function $C(e,t,n){e.addEventListener(t,n,{once:!0})}var Sd;function wd(){at.layers.forEach(({node:e})=>{e.style.pointerEvents=at.isBelowPointerBlockingLayer(e)?"none":"auto"})}function BC(e){e.style.pointerEvents=""}function jC(e,t){const n=Ge(e),r=[];return at.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(Sd=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t==null||t.forEach(i=>{const[o,s]=Mx(()=>{const a=i();return Me(a)?a:null},{timeout:1e3});o.then(a=>r.push(Ro(a,{pointerEvents:"auto"}))),r.push(s)}),()=>{at.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=Sd,n.body.removeAttribute("data-inert"),n.body.style.length===0&&n.body.removeAttribute("style")}),r.forEach(i=>i()))}}function WC(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e){ai("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,onRequestDismiss:i,pointerBlocking:o,exclude:s,debug:a}=t,l={dismiss:r,node:e,pointerBlocking:o,requestDismiss:i};at.add(l),wd();function c(f){var p,b;const g=tt(f.detail.originalEvent);at.isBelowPointerBlockingLayer(e)||at.isInBranch(g)||((p=t.onPointerDownOutside)==null||p.call(t,f),(b=t.onInteractOutside)==null||b.call(t,f),!f.defaultPrevented&&(a&&console.log("onPointerDownOutside:",f.detail.originalEvent),r==null||r()))}function u(f){var p,b;const g=tt(f.detail.originalEvent);at.isInBranch(g)||((p=t.onFocusOutside)==null||p.call(t,f),(b=t.onInteractOutside)==null||b.call(t,f),!f.defaultPrevented&&(a&&console.log("onFocusOutside:",f.detail.originalEvent),r==null||r()))}function d(f){var g;at.isTopMost(e)&&((g=t.onEscapeKeyDown)==null||g.call(t,f),!f.defaultPrevented&&r&&(f.preventDefault(),r()))}function h(f){var x;if(!e)return!1;const g=typeof s=="function"?s():s,p=Array.isArray(g)?g:[g],b=(x=t.persistentElements)==null?void 0:x.map(S=>S()).filter(Me);return b&&p.push(...b),p.some(S=>Rn(S,f))||at.isInNestedLayer(e,f)}const m=[o?jC(e,t.persistentElements):void 0,zC(e,d),DC(e,{exclude:h,onFocusOutside:u,onPointerDownOutside:c,defer:t.defer})];return()=>{at.remove(e),wd(),BC(e),m.forEach(f=>f==null?void 0:f())}}function Cr(e,t){const{defer:n}=t,r=n?Z:o=>o(),i=[];return i.push(r(()=>{const o=Pn(e)?e():e;i.push(WC(o,t))})),()=>{i.forEach(o=>o==null?void 0:o())}}var Ed=G("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]);Ed.build();var HC=e=>{var t;return((t=e.ids)==null?void 0:t.hiddenInput)??`color-picker:${e.id}:hidden-input`},UC=e=>{var t;return((t=e.ids)==null?void 0:t.control)??`color-picker:${e.id}:control`},GC=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`color-picker:${e.id}:trigger`},qC=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`color-picker:${e.id}:content`},KC=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`color-picker:${e.id}:positioner`},XC=e=>{var t;return((t=e.ids)==null?void 0:t.formatSelect)??`color-picker:${e.id}:format-select`},YC=e=>{var t;return((t=e.ids)==null?void 0:t.area)??`color-picker:${e.id}:area`},QC=e=>{var t;return((t=e.ids)==null?void 0:t.areaThumb)??`color-picker:${e.id}:area-thumb`},JC=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.channelSliderTrack)==null?void 0:r.call(n,t))??`color-picker:${e.id}:slider-track:${t}`},ZC=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.channelSliderThumb)==null?void 0:r.call(n,t))??`color-picker:${e.id}:slider-thumb:${t}`},Wo=e=>e.getById(qC(e)),eS=e=>e.getById(QC(e)),tS=(e,t)=>e.getById(ZC(e,t)),nS=e=>e.getById(XC(e)),kd=e=>e.getById(HC(e)),rS=e=>e.getById(YC(e)),iS=(e,t,n)=>{const r=rS(e);if(!r)return;const{getPercentValue:i}=Pu(t,r);return{x:i({dir:n,orientation:"horizontal"}),y:i({orientation:"vertical"})}},oS=e=>e.getById(UC(e)),Xa=e=>e.getById(GC(e)),sS=e=>e.getById(KC(e)),aS=(e,t)=>e.getById(JC(e,t)),lS=(e,t,n,r)=>{const i=aS(e,n);if(!i)return;const{getPercentValue:o}=Pu(t,i);return{x:o({dir:r,orientation:"horizontal"}),y:o({orientation:"vertical"})}},cS=e=>[...Po(Wo(e),"input[data-channel]"),...Po(oS(e),"input[data-channel]")];function uS(e,t){if(t==null)return"";if(t==="hex")return e.toString("hex");if(t==="css")return e.toString("css");if(t in e)return e.getChannelValue(t).toString();const n=e.getFormat()==="hsla";switch(t){case"hue":return n?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return n?e.toFormat("hsla").getChannelValue("saturation").toString():e.toFormat("hsba").getChannelValue("saturation").toString();case"lightness":return e.toFormat("hsla").getChannelValue("lightness").toString();case"brightness":return e.toFormat("hsba").getChannelValue("brightness").toString();case"red":case"green":case"blue":return e.toFormat("rgba").getChannelValue(t).toString();default:return e.getChannelValue(t).toString()}}var Od=e=>Vo(e),dS=/^[0-9a-fA-F]{3,8}$/;function hS(e){return dS.test(e)}function fS(e){return e.startsWith("#")?e:hS(e)?`#${e}`:e}var{and:gS}=Zt();gS("isOpenControlled","closeOnSelect");function Id(e,t,n){const r=cS(e);Z(()=>{r.forEach(i=>{const o=i.dataset.channel;wo(i,uS(n||t,o))})})}function pS(e,t){const n=nS(e);n&&Z(()=>wo(n,t))}U()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","inline","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]),U()(["xChannel","yChannel"]),U()(["channel","orientation"]),U()(["value","disabled"]),U()(["value","respectAlpha"]),U()(["size"]);const[Pd,mS]=hr({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:""}),Rd=e=>_u()(e,["lazyMount","unmountOnExit"]);var Td=G("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");Td.build();var Nd=e=>{var t;return((t=e.ids)==null?void 0:t.root)??`accordion:${e.id}`},Ad=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.itemTrigger)==null?void 0:r.call(n,t))??`accordion:${e.id}:trigger:${t}`},vS=e=>e.getById(Nd(e)),Ho=e=>{const n=`[aria-controls][data-ownedby='${CSS.escape(Nd(e))}']:not([disabled])`;return Po(vS(e),n)},bS=e=>oi(Ho(e)),yS=e=>fa(Ho(e)),xS=(e,t)=>Rx(Ho(e),Ad(e,t)),CS=(e,t)=>Tx(Ho(e),Ad(e,t)),{and:SS,not:wS}=Zt();SS("isExpanded","canToggle"),wS("isExpanded"),U()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]),U()(["value","disabled"]);var fi=(e,t)=>({x:e,y:t});function ES(e){const{x:t,y:n,width:r,height:i}=e,o=t+r/2,s=n+i/2;return{x:t,y:n,width:r,height:i,minX:t,minY:n,maxX:t+r,maxY:n+i,midX:o,midY:s,center:fi(o,s)}}function kS(e){const t=fi(e.minX,e.minY),n=fi(e.maxX,e.minY),r=fi(e.maxX,e.maxY),i=fi(e.minX,e.maxY);return{top:t,right:n,bottom:r,left:i}}function OS(e,t){const n=ES(e),{top:r,right:i,left:o,bottom:s}=kS(n),[a]=t.split("-");return{top:[o,r,i,s],right:[r,i,s,o],bottom:[r,o,s,i],left:[i,r,o,s]}[a]}function IS(e,t){const{x:n,y:r}=t;let i=!1;for(let o=0,s=e.length-1;or!=u>r&&n<(c-a)*(r-l)/(u-l)+a&&(i=!i)}return i}var _d=G("avatar").parts("root","image","fallback");_d.build(),U()(["dir","id","ids","onStatusChange","getRootNode"]);function PS(e){return!(e.metaKey||!So()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var RS=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function TS(e,t,n){const r=n?tt(n):null,i=Ie(r);return e=e||r instanceof i.HTMLInputElement&&!RS.has(r==null?void 0:r.type)||r instanceof i.HTMLTextAreaElement||r instanceof i.HTMLElement&&r.isContentEditable,!(e&&t==="keyboard"&&n instanceof i.KeyboardEvent&&!Reflect.has(NS,n.key))}var An=null,Ya=new Set,gi=new Map,_n=!1,Qa=!1,NS={Tab:!0,Escape:!0};function Uo(e,t){for(let n of Ya)n(e,t)}function Go(e){_n=!0,PS(e)&&(An="keyboard",Uo("keyboard",e))}function lt(e){An="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(_n=!0,Uo("pointer",e))}function Vd(e){ix(e)&&(_n=!0,An="virtual")}function Fd(e){const t=tt(e);t===Ie(t)||t===Ge(t)||(!_n&&!Qa&&(An="virtual",Uo("virtual",e)),_n=!1,Qa=!1)}function Ld(){_n=!1,Qa=!0}function AS(e){if(typeof window>"u"||gi.get(Ie(e)))return;const t=Ie(e),n=Ge(e);let r=t.HTMLElement.prototype.focus;function i(){An="virtual",Uo("virtual",null),_n=!0,r.apply(this,arguments)}Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:i}),n.addEventListener("keydown",Go,!0),n.addEventListener("keyup",Go,!0),n.addEventListener("click",Vd,!0),t.addEventListener("focus",Fd,!0),t.addEventListener("blur",Ld,!1),typeof t.PointerEvent<"u"?(n.addEventListener("pointerdown",lt,!0),n.addEventListener("pointermove",lt,!0),n.addEventListener("pointerup",lt,!0)):(n.addEventListener("mousedown",lt,!0),n.addEventListener("mousemove",lt,!0),n.addEventListener("mouseup",lt,!0)),t.addEventListener("beforeunload",()=>{_S(e)},{once:!0}),gi.set(t,{focus:r})}var _S=(e,t)=>{const n=Ie(e),r=Ge(e);gi.has(n)&&(n.HTMLElement.prototype.focus=gi.get(n).focus,r.removeEventListener("keydown",Go,!0),r.removeEventListener("keyup",Go,!0),r.removeEventListener("click",Vd,!0),n.removeEventListener("focus",Fd,!0),n.removeEventListener("blur",Ld,!1),typeof n.PointerEvent<"u"?(r.removeEventListener("pointerdown",lt,!0),r.removeEventListener("pointermove",lt,!0),r.removeEventListener("pointerup",lt,!0)):(r.removeEventListener("mousedown",lt,!0),r.removeEventListener("mousemove",lt,!0),r.removeEventListener("mouseup",lt,!0)),gi.delete(n))};function Dd(){return An==="keyboard"}function VS(e={}){const{isTextInput:t,autoFocus:n,onChange:r,root:i}=e;AS(i),r==null||r({isFocusVisible:n||Dd(),modality:An});const o=(s,a)=>{TS(!!t,s,a)&&(r==null||r({isFocusVisible:Dd(),modality:s}))};return Ya.add(o),()=>{Ya.delete(o)}}var zd=G("checkbox").parts("root","label","control","indicator");zd.build(),U()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const FS=zd.extendWith("group"),[o5,LS]=hr({name:"FieldContext",hookName:"useFieldContext",providerName:"",strict:!1});var Md=G("clipboard").parts("root","control","trigger","indicator","input","label");Md.build(),U()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]),U()(["copied"]);const DS=Ed.extendWith("view");var zS=Object.defineProperty,MS=(e,t,n)=>t in e?zS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A=(e,t,n)=>MS(e,typeof t!="symbol"?t+"":t,n),qo={itemToValue(e){return typeof e=="string"?e:In(e)&&Yt(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:In(e)&&Yt(e,"label")?e.label:qo.itemToValue(e)},isItemDisabled(e){return In(e)&&Yt(e,"disabled")?!!e.disabled:!1}},Ko=class Ob{constructor(t){this.options=t,A(this,"items"),A(this,"indexMap",null),A(this,"copy",n=>new Ob({...this.options,items:n??[...this.items]})),A(this,"isEqual",n=>gt(this.items,n.items)),A(this,"setItems",n=>this.copy(n)),A(this,"getValues",(n=this.items)=>{const r=[];for(const i of n){const o=this.getItemValue(i);o!=null&&r.push(o)}return r}),A(this,"find",n=>{if(n==null)return null;const r=this.indexOf(n);return r!==-1?this.at(r):null}),A(this,"findMany",n=>{const r=[];for(const i of n){const o=this.find(i);o!=null&&r.push(o)}return r}),A(this,"at",n=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[n]??null;let r=0;const i=this.group();for(const[,o]of i)for(const s of o){if(r===n)return s;r++}return null}),A(this,"sortFn",(n,r)=>{const i=this.indexOf(n),o=this.indexOf(r);return(i??0)-(o??0)}),A(this,"sort",n=>[...n].sort(this.sortFn.bind(this))),A(this,"getItemValue",n=>{var r,i;return n==null?null:((i=(r=this.options).itemToValue)==null?void 0:i.call(r,n))??qo.itemToValue(n)}),A(this,"getItemDisabled",n=>{var r,i;return n==null?!1:((i=(r=this.options).isItemDisabled)==null?void 0:i.call(r,n))??qo.isItemDisabled(n)}),A(this,"stringifyItem",n=>{var r,i;return n==null?null:((i=(r=this.options).itemToString)==null?void 0:i.call(r,n))??qo.itemToString(n)}),A(this,"stringify",n=>n==null?null:this.stringifyItem(this.find(n))),A(this,"stringifyItems",(n,r=", ")=>{const i=[];for(const o of n){const s=this.stringifyItem(o);s!=null&&i.push(s)}return i.join(r)}),A(this,"stringifyMany",(n,r)=>this.stringifyItems(this.findMany(n),r)),A(this,"has",n=>this.indexOf(n)!==-1),A(this,"hasItem",n=>n==null?!1:this.has(this.getItemValue(n))),A(this,"group",()=>{const{groupBy:n,groupSort:r}=this.options;if(!n)return[["",[...this.items]]];const i=new Map;this.items.forEach((s,a)=>{const l=n(s,a);i.has(l)||i.set(l,[]),i.get(l).push(s)});let o=Array.from(i.entries());return r&&o.sort(([s],[a])=>{if(typeof r=="function")return r(s,a);if(Array.isArray(r)){const l=r.indexOf(s),c=r.indexOf(a);return l===-1?1:c===-1?-1:l-c}return r==="asc"?s.localeCompare(a):r==="desc"?a.localeCompare(s):0}),o}),A(this,"getNextValue",(n,r=1,i=!1)=>{let o=this.indexOf(n);if(o===-1)return null;for(o=i?Math.min(o+r,this.size-1):o+r;o<=this.size&&this.getItemDisabled(this.at(o));)o++;return this.getItemValue(this.at(o))}),A(this,"getPreviousValue",(n,r=1,i=!1)=>{let o=this.indexOf(n);if(o===-1)return null;for(o=i?Math.max(o-r,0):o-r;o>=0&&this.getItemDisabled(this.at(o));)o--;return this.getItemValue(this.at(o))}),A(this,"indexOf",n=>{if(n==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(r=>this.getItemValue(r)===n);if(!this.indexMap){this.indexMap=new Map;let r=0;const i=this.group();for(const[,o]of i)for(const s of o){const a=this.getItemValue(s);a!=null&&this.indexMap.set(a,r),r++}}return this.indexMap.get(n)??-1}),A(this,"getByText",(n,r)=>{const i=r!=null?this.indexOf(r):-1,o=n.length===1;for(let s=0;s{const{state:i,currentValue:o,timeout:s=350}=r,a=i.keysSoFar+n,c=a.length>1&&Array.from(a).every(f=>f===a[0])?a[0]:a,u=this.getByText(c,o),d=this.getItemValue(u);function h(){clearTimeout(i.timer),i.timer=-1}function m(f){i.keysSoFar=f,h(),f!==""&&(i.timer=+setTimeout(()=>{m(""),h()},s))}return m(a),d}),A(this,"update",(n,r)=>{let i=this.indexOf(n);return i===-1?this:this.copy([...this.items.slice(0,i),r,...this.items.slice(i+1)])}),A(this,"upsert",(n,r,i="append")=>{let o=this.indexOf(n);return o===-1?(i==="append"?this.append:this.prepend)(r):this.copy([...this.items.slice(0,o),r,...this.items.slice(o+1)])}),A(this,"insert",(n,...r)=>this.copy(pi(this.items,n,...r))),A(this,"insertBefore",(n,...r)=>{let i=this.indexOf(n);if(i===-1)if(this.items.length===0)i=0;else return this;return this.copy(pi(this.items,i,...r))}),A(this,"insertAfter",(n,...r)=>{let i=this.indexOf(n);if(i===-1)if(this.items.length===0)i=0;else return this;return this.copy(pi(this.items,i+1,...r))}),A(this,"prepend",(...n)=>this.copy(pi(this.items,0,...n))),A(this,"append",(...n)=>this.copy(pi(this.items,this.items.length,...n))),A(this,"filter",n=>{const r=this.items.filter((i,o)=>n(this.stringifyItem(i),o,i));return this.copy(r)}),A(this,"remove",(...n)=>{const r=n.map(i=>typeof i=="string"?i:this.getItemValue(i));return this.copy(this.items.filter(i=>{const o=this.getItemValue(i);return o==null?!1:!r.includes(o)}))}),A(this,"move",(n,r)=>{const i=this.indexOf(n);return i===-1?this:this.copy(Xo(this.items,[i],r))}),A(this,"moveBefore",(n,...r)=>{let i=this.items.findIndex(s=>this.getItemValue(s)===n);if(i===-1)return this;let o=r.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(Xo(this.items,o,i))}),A(this,"moveAfter",(n,...r)=>{let i=this.items.findIndex(s=>this.getItemValue(s)===n);if(i===-1)return this;let o=r.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(Xo(this.items,o,i+1))}),A(this,"reorder",(n,r)=>this.copy(Xo(this.items,[n],r))),A(this,"compareValue",(n,r)=>{const i=this.indexOf(n),o=this.indexOf(r);return io?1:0}),A(this,"range",(n,r)=>{let i=[],o=n;for(;o!=null;){if(this.find(o)&&i.push(o),o===r)return i;o=this.getNextValue(o)}return[]}),A(this,"getValueRange",(n,r)=>n&&r?this.compareValue(n,r)<=0?this.range(n,r):this.range(r,n):[]),A(this,"toString",()=>{let n="";for(const r of this.items){const i=this.getItemValue(r),o=this.stringifyItem(r),s=this.getItemDisabled(r),a=[i,o,s].filter(Boolean).join(":");n+=a+","}return n}),A(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let t=0;for(;this.getItemDisabled(this.at(t));)t++;return this.getItemValue(this.at(t))}get lastValue(){let t=this.size-1;for(;this.getItemDisabled(this.at(t));)t--;return this.getItemValue(this.at(t))}*[Symbol.iterator](){yield*this.items}},$S=(e,t)=>!!(e!=null&&e.toLowerCase().startsWith(t.toLowerCase()));function pi(e,t,...n){return[...e.slice(0,t),...n,...e.slice(t)]}function Xo(e,t,n){t=[...t].sort((i,o)=>i-o);const r=t.map(i=>e[i]);for(let i=t.length-1;i>=0;i--)e=[...e.slice(0,t[i]),...e.slice(t[i]+1)];return n=Math.max(0,n-t.filter(i=>it[n])return 1}return e.length-t.length}function jS(e){return e.sort(Bd)}function WS(e,t){let n;return it(e,{...t,onEnter:(r,i)=>{if(t.predicate(r,i))return n=r,"stop"}}),n}function HS(e,t){const n=[];return it(e,{onEnter:(r,i)=>{t.predicate(r,i)&&n.push(r)},getChildren:t.getChildren}),n}function jd(e,t){let n;return it(e,{onEnter:(r,i)=>{if(t.predicate(r,i))return n=[...i],"stop"},getChildren:t.getChildren}),n}function US(e,t){let n=t.initialResult;return it(e,{...t,onEnter:(r,i)=>{n=t.nextResult(n,r,i)}}),n}function GS(e,t){return US(e,{...t,initialResult:[],nextResult:(n,r,i)=>(n.push(...t.transform(r,i)),n)})}function qS(e,t){const{predicate:n,create:r,getChildren:i}=t,o=(s,a)=>{const l=i(s,a),c=[];l.forEach((m,f)=>{const g=[...a,f],p=o(m,g);p&&c.push(p)});const u=a.length===0,d=n(s,a),h=c.length>0;return u||d||h?r(s,c,a):null};return o(e,[])||r(e,[],[])}function KS(e,t){const n=[];let r=0;const i=new Map,o=new Map;return it(e,{getChildren:t.getChildren,onEnter:(s,a)=>{i.has(s)||i.set(s,r++);const l=t.getChildren(s,a);l.forEach(m=>{o.has(m)||o.set(m,s),i.has(m)||i.set(m,r++)});const c=l.length>0?l.map(m=>i.get(m)):void 0,u=o.get(s),d=u?i.get(u):void 0,h=i.get(s);n.push({...s,_children:c,_parent:d,_index:h})}}),n}function XS(e,t){return{type:"insert",index:e,nodes:t}}function YS(e){return{type:"remove",indexes:e}}function Ja(){return{type:"replace"}}function Wd(e){return[e.slice(0,-1),e[e.length-1]]}function Hd(e,t,n=new Map){var s;const[r,i]=Wd(e);for(let a=r.length-1;a>=0;a--){const l=r.slice(0,a).join();switch((s=n.get(l))==null?void 0:s.type){case"remove":continue}n.set(l,Ja())}const o=n.get(r.join());switch(o==null?void 0:o.type){case"remove":n.set(r.join(),{type:"removeThenInsert",removeIndexes:o.indexes,insertIndex:i,insertNodes:t});break;default:n.set(r.join(),XS(i,t))}return n}function Ud(e){const t=new Map,n=new Map;for(const r of e){const i=r.slice(0,-1).join(),o=n.get(i)??[];o.push(r[r.length-1]),n.set(i,o.sort((s,a)=>s-a))}for(const r of e)for(let i=r.length-2;i>=0;i--){const o=r.slice(0,i).join();t.has(o)||t.set(o,Ja())}for(const[r,i]of n)t.set(r,YS(i));return t}function QS(e,t){const n=new Map,[r,i]=Wd(e);for(let o=r.length-1;o>=0;o--){const s=r.slice(0,o).join();n.set(s,Ja())}return n.set(r.join(),{type:"removeThenInsert",removeIndexes:[i],insertIndex:i,insertNodes:[t]}),n}function Yo(e,t,n){return JS(e,{...n,getChildren:(r,i)=>{const o=i.join(),s=t.get(o);switch(s==null?void 0:s.type){case"replace":case"remove":case"removeThenInsert":case"insert":return n.getChildren(r,i);default:return[]}},transform:(r,i,o)=>{const s=o.join(),a=t.get(s);switch(a==null?void 0:a.type){case"remove":return n.create(r,i.filter((u,d)=>!a.indexes.includes(d)),o);case"removeThenInsert":const l=i.filter((u,d)=>!a.removeIndexes.includes(d)),c=a.removeIndexes.reduce((u,d)=>d{const o=[0,...i],s=o.join(),a=t.transform(r,n[s]??[],i),l=o.slice(0,-1).join(),c=n[l]??[];c.push(a),n[l]=c}}),n[""][0]}function ZS(e,t){const{nodes:n,at:r}=t;if(r.length===0)throw new Error("Can't insert nodes at the root");const i=Hd(r,n);return Yo(e,i,t)}function ew(e,t){if(t.at.length===0)return t.node;const n=QS(t.at,t.node);return Yo(e,n,t)}function tw(e,t){if(t.indexPaths.length===0)return e;for(const r of t.indexPaths)if(r.length===0)throw new Error("Can't remove the root node");const n=Ud(t.indexPaths);return Yo(e,n,t)}function nw(e,t){if(t.indexPaths.length===0)return e;for(const o of t.indexPaths)if(o.length===0)throw new Error("Can't move the root node");if(t.to.length===0)throw new Error("Can't move nodes to the root");const n=BS(t.indexPaths),r=n.map(o=>$d(e,o,t)),i=Hd(t.to,r,Ud(n));return Yo(e,i,t)}function it(e,t){const{onEnter:n,onLeave:r,getChildren:i}=t;let o=[],s=[{node:e}];const a=t.reuseIndexPath?()=>o:()=>o.slice();for(;s.length>0;){let l=s[s.length-1];if(l.state===void 0){const u=n==null?void 0:n(l.node,a());if(u==="stop")return;l.state=u==="skip"?-1:0}const c=l.children||i(l.node,a());if(l.children||(l.children=c),l.state!==-1){if(l.stategt(this.rootNode,n.rootNode)),A(this,"getNodeChildren",n=>{var r,i;return((i=(r=this.options).nodeToChildren)==null?void 0:i.call(r,n))??Sr.nodeToChildren(n)??[]}),A(this,"resolveIndexPath",n=>typeof n=="string"?this.getIndexPath(n):n),A(this,"resolveNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(r):void 0}),A(this,"getNodeChildrenCount",n=>{var r,i;return((i=(r=this.options).nodeToChildrenCount)==null?void 0:i.call(r,n))??Sr.nodeToChildrenCount(n)}),A(this,"getNodeValue",n=>{var r,i;return((i=(r=this.options).nodeToValue)==null?void 0:i.call(r,n))??Sr.nodeToValue(n)}),A(this,"getNodeDisabled",n=>{var r,i;return((i=(r=this.options).isNodeDisabled)==null?void 0:i.call(r,n))??Sr.isNodeDisabled(n)}),A(this,"stringify",n=>{const r=this.findNode(n);return r?this.stringifyNode(r):null}),A(this,"stringifyNode",n=>{var r,i;return((i=(r=this.options).nodeToString)==null?void 0:i.call(r,n))??Sr.nodeToString(n)}),A(this,"getFirstNode",(n=this.rootNode)=>{let r;return it(n,{getChildren:this.getNodeChildren,onEnter:(i,o)=>{if(!r&&o.length>0&&!this.getNodeDisabled(i))return r=i,"stop"}}),r}),A(this,"getLastNode",(n=this.rootNode,r={})=>{let i;return it(n,{getChildren:this.getNodeChildren,onEnter:(o,s)=>{var a;if(!this.isSameNode(o,n)){if((a=r.skip)!=null&&a.call(r,{value:this.getNodeValue(o),node:o,indexPath:s}))return"skip";s.length>0&&!this.getNodeDisabled(o)&&(i=o)}}}),i}),A(this,"at",n=>$d(this.rootNode,n,{getChildren:this.getNodeChildren})),A(this,"findNode",(n,r=this.rootNode)=>WS(r,{getChildren:this.getNodeChildren,predicate:i=>this.getNodeValue(i)===n})),A(this,"findNodes",(n,r=this.rootNode)=>{const i=new Set(n.filter(o=>o!=null));return HS(r,{getChildren:this.getNodeChildren,predicate:o=>i.has(this.getNodeValue(o))})}),A(this,"sort",n=>n.reduce((r,i)=>{const o=this.getIndexPath(i);return o&&r.push({value:i,indexPath:o}),r},[]).sort((r,i)=>Bd(r.indexPath,i.indexPath)).map(({value:r})=>r)),A(this,"getIndexPath",n=>jd(this.rootNode,{getChildren:this.getNodeChildren,predicate:r=>this.getNodeValue(r)===n})),A(this,"getValue",n=>{const r=this.at(n);return r?this.getNodeValue(r):void 0}),A(this,"getValuePath",n=>{if(!n)return[];const r=[];let i=[...n];for(;i.length>0;){const o=this.at(i);o&&r.unshift(this.getNodeValue(o)),i.pop()}return r}),A(this,"getDepth",n=>{const r=jd(this.rootNode,{getChildren:this.getNodeChildren,predicate:i=>this.getNodeValue(i)===n});return(r==null?void 0:r.length)??0}),A(this,"isSameNode",(n,r)=>this.getNodeValue(n)===this.getNodeValue(r)),A(this,"isRootNode",n=>this.isSameNode(n,this.rootNode)),A(this,"contains",(n,r)=>!n||!r?!1:r.slice(0,n.length).every((i,o)=>n[o]===r[o])),A(this,"getNextNode",(n,r={})=>{let i=!1,o;return it(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{var c;if(this.isRootNode(s))return;const l=this.getNodeValue(s);if((c=r.skip)!=null&&c.call(r,{value:l,node:s,indexPath:a}))return l===n&&(i=!0),"skip";if(i&&!this.getNodeDisabled(s))return o=s,"stop";l===n&&(i=!0)}}),o}),A(this,"getPreviousNode",(n,r={})=>{let i,o=!1;return it(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{var c;if(this.isRootNode(s))return;const l=this.getNodeValue(s);if((c=r.skip)!=null&&c.call(r,{value:l,node:s,indexPath:a}))return"skip";if(l===n)return o=!0,"stop";this.getNodeDisabled(s)||(i=s)}}),o?i:void 0}),A(this,"getParentNodes",n=>{var o;const r=(o=this.resolveIndexPath(n))==null?void 0:o.slice();if(!r)return[];const i=[];for(;r.length>0;){r.pop();const s=this.at(r);s&&!this.isRootNode(s)&&i.unshift(s)}return i}),A(this,"getDescendantNodes",(n,r)=>{const i=this.resolveNode(n);if(!i)return[];const o=[];return it(i,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{a.length!==0&&(!(r!=null&&r.withBranch)&&this.isBranchNode(s)||o.push(s))}}),o}),A(this,"getDescendantValues",(n,r)=>this.getDescendantNodes(n,r).map(o=>this.getNodeValue(o))),A(this,"getParentIndexPath",n=>n.slice(0,-1)),A(this,"getParentNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(this.getParentIndexPath(r)):void 0}),A(this,"visit",n=>{const{skip:r,...i}=n;it(this.rootNode,{...i,getChildren:this.getNodeChildren,onEnter:(o,s)=>{var a;if(!this.isRootNode(o))return r!=null&&r({value:this.getNodeValue(o),node:o,indexPath:s})?"skip":(a=i.onEnter)==null?void 0:a.call(i,o,s)}})}),A(this,"getPreviousSibling",n=>{const r=this.getParentNode(n);if(!r)return;const i=this.getNodeChildren(r);let o=n[n.length-1];for(;--o>=0;){const s=i[o];if(!this.getNodeDisabled(s))return s}}),A(this,"getNextSibling",n=>{const r=this.getParentNode(n);if(!r)return;const i=this.getNodeChildren(r);let o=n[n.length-1];for(;++o{const r=this.getParentNode(n);return r?this.getNodeChildren(r):[]}),A(this,"getValues",(n=this.rootNode)=>GS(n,{getChildren:this.getNodeChildren,transform:i=>[this.getNodeValue(i)]}).slice(1)),A(this,"isValidDepth",(n,r)=>r==null?!0:typeof r=="function"?r(n.length):n.length===r),A(this,"isBranchNode",n=>this.getNodeChildren(n).length>0||this.getNodeChildrenCount(n)!=null),A(this,"getBranchValues",(n=this.rootNode,r={})=>{let i=[];return it(n,{getChildren:this.getNodeChildren,onEnter:(o,s)=>{var l;if(s.length===0)return;const a=this.getNodeValue(o);if((l=r.skip)!=null&&l.call(r,{value:a,node:o,indexPath:s}))return"skip";this.isBranchNode(o)&&this.isValidDepth(s,r.depth)&&i.push(this.getNodeValue(o))}}),i}),A(this,"flatten",(n=this.rootNode)=>KS(n,{getChildren:this.getNodeChildren})),A(this,"_create",(n,r)=>this.getNodeChildren(n).length>0||r.length>0?{...n,children:r}:{...n}),A(this,"_insert",(n,r,i)=>this.copy(ZS(n,{at:r,nodes:i,getChildren:this.getNodeChildren,create:this._create}))),A(this,"copy",n=>new Ib({...this.options,rootNode:n})),A(this,"_replace",(n,r,i)=>this.copy(ew(n,{at:r,node:i,getChildren:this.getNodeChildren,create:this._create}))),A(this,"_move",(n,r,i)=>this.copy(nw(n,{indexPaths:r,to:i,getChildren:this.getNodeChildren,create:this._create}))),A(this,"_remove",(n,r)=>this.copy(tw(n,{indexPaths:r,getChildren:this.getNodeChildren,create:this._create}))),A(this,"replace",(n,r)=>this._replace(this.rootNode,n,r)),A(this,"remove",n=>this._remove(this.rootNode,n)),A(this,"insertBefore",(n,r)=>this.getParentNode(n)?this._insert(this.rootNode,n,r):void 0),A(this,"insertAfter",(n,r)=>{if(!this.getParentNode(n))return;const o=[...n.slice(0,-1),n[n.length-1]+1];return this._insert(this.rootNode,o,r)}),A(this,"move",(n,r)=>this._move(this.rootNode,n,r)),A(this,"filter",n=>{const r=qS(this.rootNode,{predicate:n,getChildren:this.getNodeChildren,create:this._create});return this.copy(r)}),A(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},Sr={nodeToValue(e){return typeof e=="string"?e:In(e)&&Yt(e,"value")?e.value:""},nodeToString(e){return typeof e=="string"?e:In(e)&&Yt(e,"label")?e.label:Sr.nodeToValue(e)},isNodeDisabled(e){return In(e)&&Yt(e,"disabled")?!!e.disabled:!1},nodeToChildren(e){return e.children},nodeToChildrenCount(e){if(In(e)&&Yt(e,"childrenCount"))return e.childrenCount}},wr=new WeakMap,Qo=new WeakMap,Jo={},Za=0,Kd=e=>e&&(e.host||Kd(e.parentNode)),rw=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=Kd(n);return r&&e.contains(r)?r:(console.error("[zag-js > ariaHidden] target",n,"in not contained inside",e,". Doing nothing"),null)}).filter(n=>!!n),iw=new Set(["script","output","status","next-route-announcer"]),ow=e=>iw.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),sw=(e,t)=>{const{parentNode:n,markerName:r,controlAttribute:i}=t,o=rw(n,Array.isArray(e)?e:[e]);Jo[r]||(Jo[r]=new WeakMap);const s=Jo[r],a=[],l=new Set,c=new Set(o),u=h=>{!h||l.has(h)||(l.add(h),u(h.parentNode))};o.forEach(u);const d=h=>{!h||c.has(h)||Array.prototype.forEach.call(h.children,m=>{if(l.has(m))d(m);else try{if(ow(m))return;const g=m.getAttribute(i)==="true",p=(wr.get(m)||0)+1,b=(s.get(m)||0)+1;wr.set(m,p),s.set(m,b),a.push(m),p===1&&g&&Qo.set(m,!0),b===1&&m.setAttribute(r,""),g||m.setAttribute(i,"true")}catch(f){console.error("[zag-js > ariaHidden] cannot operate on ",m,f)}})};return d(n),l.clear(),Za++,()=>{a.forEach(h=>{const m=wr.get(h)-1,f=s.get(h)-1;wr.set(h,m),s.set(h,f),m||(Qo.has(h)||h.removeAttribute(i),Qo.delete(h)),f||h.removeAttribute(r)}),Za--,Za||(wr=new WeakMap,wr=new WeakMap,Qo=new WeakMap,Jo={})}},aw=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,lw=(e,t=aw(e),n="data-aria-hidden")=>{if(t)return sw(e,{parentNode:t,markerName:n,controlAttribute:"aria-hidden"})},cw=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function Xd(e,t={}){const{defer:n=!0}=t,r=n?cw:o=>o(),i=[];return i.push(r(()=>{const s=(typeof e=="function"?e():e).filter(Boolean);s.length!==0&&i.push(lw(s))})),()=>{i.forEach(o=>o==null?void 0:o())}}var Yd=G("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");Yd.build();var Qd=e=>new Ko(e);Qd.empty=()=>new Ko({items:[]});var uw=e=>{var t;return((t=e.ids)==null?void 0:t.control)??`combobox:${e.id}:control`},dw=e=>{var t;return((t=e.ids)==null?void 0:t.input)??`combobox:${e.id}:input`},hw=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`combobox:${e.id}:content`},fw=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`combobox:${e.id}:popper`},gw=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`combobox:${e.id}:toggle-btn`},pw=e=>{var t;return((t=e.ids)==null?void 0:t.clearTrigger)??`combobox:${e.id}:clear-btn`},rn=e=>e.getById(hw(e)),Er=e=>e.getById(dw(e)),Jd=e=>e.getById(fw(e)),Zd=e=>e.getById(uw(e)),mi=e=>e.getById(gw(e)),eh=e=>e.getById(pw(e)),vi=(e,t)=>{if(t==null)return null;const n=`[role=option][data-value="${CSS.escape(t)}"]`;return Ix(rn(e),n)},th=e=>{const t=Er(e);e.isActiveElement(t)||t==null||t.focus({preventScroll:!0})},mw=e=>{const t=mi(e);e.isActiveElement(t)||t==null||t.focus({preventScroll:!0})},{guards:vw,createMachine:bw,choose:yw}=Au(),{and:Pe,not:ot}=vw;bw({props({props:e}){return{loopFocus:!0,openOnClick:!1,defaultValue:[],closeOnSelect:!e.multiple,allowCustomValue:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:t}){Ou(t)},collection:Qd.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"suggesting":"idle"},context({prop:e,bindable:t,getContext:n,getEvent:r}){return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:gt,hash(i){return i.join(",")},onChange(i){var c;const o=n(),s=o.get("selectedItems"),a=e("collection"),l=i.map(u=>s.find(h=>a.getItemValue(h)===u)||a.find(u));o.set("selectedItems",l),(c=e("onValueChange"))==null||c({value:i,items:l})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(i){var s;const o=e("collection").find(i);(s=e("onHighlightChange"))==null||s({highlightedValue:i,highlightedItem:o})}})),inputValue:t(()=>{let i=e("inputValue")||e("defaultInputValue")||"";const o=e("defaultValue")||e("value")||[];if(!i.trim()&&!e("multiple")){const s=e("collection").stringifyMany(o);i=Mt(e("selectionBehavior"),{preserve:i||s,replace:s,clear:""})}return{defaultValue:i,value:e("inputValue"),onChange(s){var c;const a=r(),l=(a.previousEvent||a).src;(c=e("onInputValueChange"))==null||c({inputValue:s,reason:l})}}}),highlightedItem:t(()=>{const i=e("highlightedValue");return{defaultValue:e("collection").find(i)}}),selectedItems:t(()=>{const i=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(i)}})}},computed:{isInputValueEmpty:({context:e})=>e.get("inputValue").length===0,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>e("inputBehavior")==="autocomplete",autoHighlight:({prop:e})=>e("inputBehavior")==="autohighlight",hasSelectedItems:({context:e})=>e.get("value").length>0,valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:n,action:r,send:i}){n([()=>e.hash("value")],()=>{r(["syncSelectedItems"])}),n([()=>e.get("inputValue")],()=>{r(["syncInputValue"])}),n([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem","autofillInputValue"])}),n([()=>t("open")],()=>{r(["toggleVisibility"])}),n([()=>t("collection").toString()],()=>{i({type:"CHILDREN_CHANGE"})})},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:yw([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{idle:{tags:["idle","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"suggesting"},{target:"interacting"}],"INPUT.CHANGE":[{guard:Pe("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:Pe("isCustomValue",ot("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:Pe("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement","hideOtherElements"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:Pe("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:Pe("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:Pe("isOpenControlled","isCustomValue",ot("hasHighlightedItem"),ot("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Pe("isCustomValue",ot("hasHighlightedItem"),ot("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:Pe("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"ITEM.CLICK":[{guard:Pe("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:Pe("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:Pe("isOpenControlled","isCustomValue",ot("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Pe("isCustomValue",ot("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement","hideOtherElements"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"autoHighlight",actions:["highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:Pe("isOpenControlled","isCustomValue",ot("hasHighlightedItem"),ot("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Pe("isCustomValue",ot("hasHighlightedItem"),ot("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:Pe("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.INTERACT_OUTSIDE":[{guard:Pe("isOpenControlled","isCustomValue",ot("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Pe("isCustomValue",ot("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.CLICK":[{guard:Pe("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>e("open")!=null,openOnChange:({prop:e,context:t})=>{const n=e("openOnChange");return l0(n)?n:!!(n!=null&&n({inputValue:t.get("inputValue")}))},restoreFocus:({event:e})=>e.restoreFocus==null?!0:!!e.restoreFocus,isChangeEvent:({event:e})=>{var t;return((t=e.previousEvent)==null?void 0:t.type)==="INPUT.CHANGE"},autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue"))},effects:{trackDismissableLayer({send:e,prop:t,scope:n}){return t("disableLayer")?void 0:Cr(()=>rn(n),{defer:!0,exclude:()=>[Er(n),mi(n),eh(n)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(i){i.preventDefault(),i.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},hideOtherElements({scope:e}){return Xd([Er(e),rn(e),mi(e),eh(e)])},trackPlacement({context:e,prop:t,scope:n}){const r=()=>Zd(n)||mi(n),i=()=>Jd(n);return e.set("currentPlacement",t("positioning").placement),bt(r,i,{...t("positioning"),defer:!0,onComplete(o){e.set("currentPlacement",o.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:n,event:r}){const i=Er(n);let o=[];const s=c=>{const u=r.current().type.includes("POINTER"),d=e.get("highlightedValue");if(u||!d)return;const h=rn(n),m=t("scrollToIndexFn");if(m){const p=t("collection").indexOf(d);m({index:p,immediate:c,getElement:()=>vi(n,d)});return}const f=vi(n,d),g=Z(()=>{Oo(f,{rootEl:h,block:"nearest"})});o.push(g)},a=Z(()=>s(!0));o.push(a);const l=Eo(i,{attributes:["aria-activedescendant"],callback:()=>s(!1)});return o.push(l),()=>{o.forEach(c=>c())}}},actions:{reposition({context:e,prop:t,scope:n,event:r}){bt(()=>Zd(n),()=>Jd(n),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(s){e.set("currentPlacement",s.placement)}})},setHighlightedValue({context:e,event:t}){t.value!=null&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){var a;const{context:t,prop:n}=e,r=n("collection"),i=t.get("highlightedValue");if(!i||!r.has(i))return;const o=n("multiple")?dr(t.get("value"),i):[i];(a=n("onSelect"))==null||a({value:o,itemValue:i}),t.set("value",o);const s=Mt(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(o),clear:""});t.set("inputValue",s)},scrollToHighlightedItem({context:e,prop:t,scope:n}){Ea(()=>{const r=e.get("highlightedValue");if(r==null)return;const i=vi(n,r),o=rn(n),s=t("scrollToIndexFn");if(s){const a=t("collection").indexOf(r);s({index:a,immediate:!0,getElement:()=>vi(n,r)});return}Oo(i,{rootEl:o,block:"nearest"})})},selectItem(e){const{context:t,event:n,flush:r,prop:i}=e;n.value!=null&&r(()=>{var a;const o=i("multiple")?dr(t.get("value"),n.value):[n.value];(a=i("onSelect"))==null||a({value:o,itemValue:n.value}),t.set("value",o);const s=Mt(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany(o),clear:""});t.set("inputValue",s)})},clearItem(e){const{context:t,event:n,flush:r,prop:i}=e;n.value!=null&&r(()=>{const o=On(t.get("value"),n.value);t.set("value",o);const s=Mt(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany(o),clear:""});t.set("inputValue",s)})},setInitialFocus({scope:e}){Z(()=>{th(e)})},setFinalFocus({scope:e}){Z(()=>{const t=mi(e);(t==null?void 0:t.dataset.focusable)==null?th(e):mw(e)})},syncInputValue({context:e,scope:t,event:n}){const r=Er(t);r&&(r.value=e.get("inputValue"),queueMicrotask(()=>{n.current().type!=="INPUT.CHANGE"&&V0(r)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:n}){const r=t("selectionBehavior"),i=Mt(r,{replace:n("hasSelectedItems")?n("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",i)},setValue(e){const{context:t,flush:n,event:r,prop:i}=e;n(()=>{t.set("value",r.value);const o=Mt(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany(r.value),clear:""});t.set("inputValue",o)})},clearSelectedItems(e){const{context:t,flush:n,prop:r}=e;n(()=>{t.set("value",[]);const i=Mt(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",i)})},scrollContentToTop({prop:e,scope:t}){const n=e("scrollToIndexFn");if(n){const r=e("collection").firstValue;n({index:0,immediate:!0,getElement:()=>vi(t,r)})}else{const r=rn(t);if(!r)return;r.scrollTop=0}},invokeOnOpen({prop:e,event:t}){var r;const n=nh(t);(r=e("onOpenChange"))==null||r({open:!0,reason:n})},invokeOnClose({prop:e,event:t}){var r;const n=nh(t);(r=e("onOpenChange"))==null||r({open:!1,reason:n})},highlightFirstItem({context:e,prop:t,scope:n}){(rn(n)?queueMicrotask:Z)(()=>{const i=t("collection").firstValue;i&&e.set("highlightedValue",i)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:n}){(rn(n)?queueMicrotask:Z)(()=>{const i=t("collection").lastValue;i&&e.set("highlightedValue",i)})},highlightNextItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),i=t("collection");r?(n=i.getNextValue(r),!n&&t("loopFocus")&&(n=i.firstValue)):n=i.firstValue,n&&e.set("highlightedValue",n)},highlightPrevItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),i=t("collection");r?(n=i.getPreviousValue(r),!n&&t("loopFocus")&&(n=i.lastValue)):n=i.lastValue,n&&e.set("highlightedValue",n)},highlightFirstSelectedItem({context:e,prop:t}){Z(()=>{const[n]=t("collection").sort(e.get("value"));n&&e.set("highlightedValue",n)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:n}){Z(()=>{let r=null;n("hasSelectedItems")?r=t("collection").sort(e.get("value"))[0]:r=t("collection").firstValue,r&&e.set("highlightedValue",r)})},highlightLastOrSelectedItem({context:e,prop:t,computed:n}){Z(()=>{const r=t("collection");let i=null;n("hasSelectedItems")?i=r.sort(e.get("value"))[0]:i=r.lastValue,i&&e.set("highlightedValue",i)})},autofillInputValue({context:e,computed:t,prop:n,event:r,scope:i}){const o=Er(i),s=n("collection");if(!t("autoComplete")||!o||!r.keypress)return;const a=s.stringify(e.get("highlightedValue"));Z(()=>{o.value=a||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:n}=e,r=n("collection"),i=t.get("value"),o=i.map(a=>t.get("selectedItems").find(c=>r.getItemValue(c)===a)||r.find(a));t.set("selectedItems",o);const s=Mt(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(i),clear:""});t.set("inputValue",s)})},syncHighlightedItem({context:e,prop:t}){const n=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",n)},toggleVisibility({event:e,send:t,prop:n}){t({type:n("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function nh(e){return(e.previousEvent||e).src}U()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value"]),U()(["htmlFor"]),U()(["id"]),U()(["item","persistFocus"]);const xw=Yd.extendWith("empty"),[rh,on]=hr({name:"DialogContext",hookName:"useDialogContext",providerName:""}),ih=E.forwardRef((e,t)=>{const n=on(),r=mS(),i=Na({...r,present:n.open}),o=pt(n.getBackdropProps(),i.getPresenceProps(),e);return i.unmounted?null:v.jsx(en.div,{...o,ref:To(i.ref,t)})});ih.displayName="DialogBackdrop";const oh=E.forwardRef((e,t)=>{const n=on(),r=pt(n.getCloseTriggerProps(),e);return v.jsx(en.button,{...r,ref:t})});oh.displayName="DialogCloseTrigger";const sh=E.forwardRef((e,t)=>{const n=on(),r=Aa(),i=pt(n.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:v.jsx(en.div,{...i,ref:To(r.ref,t)})});sh.displayName="DialogContent";const ah=E.forwardRef((e,t)=>{const n=on(),r=pt(n.getDescriptionProps(),e);return v.jsx(en.div,{...r,ref:t})});ah.displayName="DialogDescription";const lh=E.forwardRef((e,t)=>{const n=on(),r=pt(n.getPositionerProps(),e);return Aa().unmounted?null:v.jsx(en.div,{...r,ref:t})});lh.displayName="DialogPositioner";var Cw=Object.defineProperty,Sw=(e,t,n)=>t in e?Cw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fe=(e,t,n)=>Sw(e,typeof t!="symbol"?t+"":t,n),ch={activateTrap(e,t){if(e.length>0){const r=e[e.length-1];r!==t&&r.pause()}const n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},ww=[],Ew=class{constructor(e,t){fe(this,"trapStack"),fe(this,"config"),fe(this,"doc"),fe(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),fe(this,"listenerCleanups",[]),fe(this,"handleFocus",r=>{const i=tt(r),o=this.findContainerIndex(i,r)>=0;if(o||va(i))o&&(this.state.mostRecentlyFocusedNode=i);else{r.stopImmediatePropagation();let s,a=!0;if(this.state.mostRecentlyFocusedNode)if(li(this.state.mostRecentlyFocusedNode)>0){const l=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:c}=this.state.containerGroups[l];if(c.length>0){const u=c.findIndex(d=>d===this.state.mostRecentlyFocusedNode);u>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?u+1=0&&(s=c[u-1],a=!1))}}else this.state.containerGroups.some(l=>l.tabbableNodes.some(c=>li(c)>0))||(a=!1);else a=!1;a&&(s=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),s?this.tryFocus(s):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),fe(this,"handlePointerDown",r=>{const i=tt(r);if(!(this.findContainerIndex(i,r)>=0)){if(yi(this.config.clickOutsideDeactivates,r)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}yi(this.config.allowOutsideClick,r)||r.preventDefault()}}),fe(this,"handleClick",r=>{const i=tt(r);this.findContainerIndex(i,r)>=0||yi(this.config.clickOutsideDeactivates,r)||yi(this.config.allowOutsideClick,r)||(r.preventDefault(),r.stopImmediatePropagation())}),fe(this,"handleTabKey",r=>{if(this.config.isKeyForward(r)||this.config.isKeyBackward(r)){this.state.recentNavEvent=r;const i=this.config.isKeyBackward(r),o=this.findNextNavNode({event:r,isBackward:i});if(!o)return;bi(r)&&r.preventDefault(),this.tryFocus(o)}}),fe(this,"handleEscapeKey",r=>{kw(r)&&yi(this.config.escapeDeactivates,r)!==!1&&(r.preventDefault(),this.deactivate())}),fe(this,"_mutationObserver"),fe(this,"setupMutationObserver",()=>{const r=this.doc.defaultView||window;this._mutationObserver=new r.MutationObserver(i=>{i.some(s=>Array.from(s.removedNodes).some(l=>l===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode())})}),fe(this,"updateObservedNodes",()=>{var r;(r=this._mutationObserver)==null||r.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(i=>{var o;(o=this._mutationObserver)==null||o.observe(i,{subtree:!0,childList:!0})})}),fe(this,"getInitialFocusNode",()=>{let r=this.getNodeForOption("initialFocus",{hasFallback:!0});if(r===!1)return!1;if(r===void 0||r&&!Jt(r))if(this.findContainerIndex(this.doc.activeElement)>=0)r=this.doc.activeElement;else{const i=this.state.tabbableGroups[0];r=i&&i.firstTabbableNode||this.getNodeForOption("fallbackFocus")}else r===null&&(r=this.getNodeForOption("fallbackFocus"));if(!r)throw new Error("Your focus-trap needs to have at least one focusable element");return r.isConnected||(r=this.getNodeForOption("fallbackFocus")),r}),fe(this,"tryFocus",r=>{if(r!==!1&&r!==xu(this.doc)){if(!r||!r.focus){this.tryFocus(this.getInitialFocusNode());return}r.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=r,Ow(r)&&r.select()}}),fe(this,"deactivate",r=>{if(!this.state.active)return this;const i={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...r};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),ch.deactivateTrap(this.trapStack,this);const o=this.getOption(i,"onDeactivate"),s=this.getOption(i,"onPostDeactivate"),a=this.getOption(i,"checkCanReturnFocus"),l=this.getOption(i,"returnFocus","returnFocusOnDeactivate");o==null||o();const c=()=>{uh(()=>{if(l){const u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(u)}s==null||s()})};if(l&&a){const u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return a(u).then(c,c),this}return c(),this}),fe(this,"pause",r=>{if(this.state.paused||!this.state.active)return this;const i=this.getOption(r,"onPause"),o=this.getOption(r,"onPostPause");return this.state.paused=!0,i==null||i(),this.removeListeners(),this.updateObservedNodes(),o==null||o(),this}),fe(this,"unpause",r=>{if(!this.state.paused||!this.state.active)return this;const i=this.getOption(r,"onUnpause"),o=this.getOption(r,"onPostUnpause");return this.state.paused=!1,i==null||i(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),o==null||o(),this}),fe(this,"updateContainerElements",r=>(this.state.containers=Array.isArray(r)?r.filter(Boolean):[r].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),fe(this,"getReturnFocusNode",r=>{const i=this.getNodeForOption("setReturnFocus",{params:[r]});return i||(i===!1?!1:r)}),fe(this,"getOption",(r,i,o)=>r&&r[i]!==void 0?r[i]:this.config[o||i]),fe(this,"getNodeForOption",(r,{hasFallback:i=!1,params:o=[]}={})=>{let s=this.config[r];if(typeof s=="function"&&(s=s(...o)),s===!0&&(s=void 0),!s){if(s===void 0||s===!1)return s;throw new Error(`\`${r}\` was specified but was not a node, or did not return a node`)}let a=s;if(typeof s=="string"){try{a=this.doc.querySelector(s)}catch(l){throw new Error(`\`${r}\` appears to be an invalid selector; error="${l.message}"`)}if(!a&&!i)throw new Error(`\`${r}\` as selector refers to no known node`)}return a}),fe(this,"findNextNavNode",r=>{const{event:i,isBackward:o=!1}=r,s=r.target||tt(i);this.updateTabbableNodes();let a=null;if(this.state.tabbableGroups.length>0){const l=this.findContainerIndex(s,i),c=l>=0?this.state.containerGroups[l]:void 0;if(l<0)o?a=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:a=this.state.tabbableGroups[0].firstTabbableNode;else if(o){let u=this.state.tabbableGroups.findIndex(({firstTabbableNode:d})=>s===d);if(u<0&&((c==null?void 0:c.container)===s||Jt(s)&&!Tn(s)&&!(c!=null&&c.nextTabbableNode(s,!1)))&&(u=l),u>=0){const d=u===0?this.state.tabbableGroups.length-1:u-1,h=this.state.tabbableGroups[d];a=li(s)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else bi(i)||(a=c==null?void 0:c.nextTabbableNode(s,!1))}else{let u=this.state.tabbableGroups.findIndex(({lastTabbableNode:d})=>s===d);if(u<0&&((c==null?void 0:c.container)===s||Jt(s)&&!Tn(s)&&!(c!=null&&c.nextTabbableNode(s)))&&(u=l),u>=0){const d=u===this.state.tabbableGroups.length-1?0:u+1,h=this.state.tabbableGroups[d];a=li(s)>=0?h.firstTabbableNode:h.firstDomTabbableNode}else bi(i)||(a=c==null?void 0:c.nextTabbableNode(s))}}else a=this.getNodeForOption("fallbackFocus");return a}),this.trapStack=t.trapStack||ww;const n={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward(r){return bi(r)&&!r.shiftKey},isKeyBackward(r){return bi(r)&&r.shiftKey},...t};this.doc=n.document||Ge(Array.isArray(e)?e[0]:e),this.config=n,this.updateContainerElements(e),this.setupMutationObserver()}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const n=typeof(t==null?void 0:t.composedPath)=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:r,tabbableNodes:i})=>r.contains(e)||(n==null?void 0:n.includes(r))||i.find(o=>o===e))}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=Sa(e),n=ku(e),r=t.length>0?t[0]:void 0,i=t.length>0?t[t.length-1]:void 0,o=n.find(c=>Tn(c)),s=n.slice().reverse().find(c=>Tn(c)),a=!!t.find(c=>li(c)>0);function l(c,u=!0){const d=t.indexOf(c);return d<0?u?n.slice(n.indexOf(c)+1).find(h=>Tn(h)):n.slice(0,n.indexOf(c)).reverse().find(h=>Tn(h)):t[d+(u?1:-1)]}return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:a,firstTabbableNode:r,lastTabbableNode:i,firstDomTabbableNode:o,lastDomTabbableNode:s,nextTabbableNode:l}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return ch.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?uh(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(he(this.doc,"focusin",this.handleFocus,!0),he(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),he(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),he(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),he(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),he(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const t=this.getOption(e,"onActivate"),n=this.getOption(e,"onPostActivate"),r=this.getOption(e,"checkCanFocusTrap");r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=this.doc.activeElement||null,t==null||t();const i=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),n==null||n()};return r?(r(this.state.containers.concat()).then(i,i),this):(i(),this)}},bi=e=>e.key==="Tab",yi=(e,...t)=>typeof e=="function"?e(...t):e,kw=e=>!e.isComposing&&e.key==="Escape",uh=e=>setTimeout(e,0),Ow=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function Iw(e,t={}){let n;const r=Z(()=>{const i=typeof e=="function"?e():e;if(i){n=new Ew(i,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:i,...t,document:Ge(i)});try{n.activate()}catch{}}});return function(){n==null||n.deactivate(),r()}}var el="data-scroll-lock";function Pw(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function Rw(e){const t=e??document,n=t.defaultView??window,{documentElement:r,body:i}=t;if(i.hasAttribute(el))return;const s=n.innerWidth-r.clientWidth;i.setAttribute(el,"");const a=()=>Fx(r,"--scrollbar-width",`${s}px`),l=Pw(r),c=()=>Ro(i,{overflow:"hidden",[l]:`${s}px`}),u=()=>{const{scrollX:h,scrollY:m,visualViewport:f}=n,g=(f==null?void 0:f.offsetLeft)??0,p=(f==null?void 0:f.offsetTop)??0,b=Ro(i,{position:"fixed",overflow:"hidden",top:`${-(m-Math.floor(p))}px`,left:`${-(h-Math.floor(g))}px`,right:"0",[l]:`${s}px`});return()=>{b==null||b(),n.scrollTo({left:h,top:m,behavior:"instant"})}},d=[a(),Co()?u():c()];return()=>{d.forEach(h=>h==null?void 0:h()),i.removeAttribute(el)}}var tl=G("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),Vn=tl.build(),dh=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`dialog:${e.id}:positioner`},hh=e=>{var t;return((t=e.ids)==null?void 0:t.backdrop)??`dialog:${e.id}:backdrop`},nl=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`dialog:${e.id}:content`},fh=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`dialog:${e.id}:trigger`},rl=e=>{var t;return((t=e.ids)==null?void 0:t.title)??`dialog:${e.id}:title`},il=e=>{var t;return((t=e.ids)==null?void 0:t.description)??`dialog:${e.id}:description`},gh=e=>{var t;return((t=e.ids)==null?void 0:t.closeTrigger)??`dialog:${e.id}:close`},Zo=e=>e.getById(nl(e)),Tw=e=>e.getById(dh(e)),Nw=e=>e.getById(hh(e)),Aw=e=>e.getById(fh(e)),_w=e=>e.getById(rl(e)),Vw=e=>e.getById(il(e)),Fw=e=>e.getById(gh(e));function Lw(e,t){const{state:n,send:r,context:i,prop:o,scope:s}=e,a=o("aria-label"),l=n.matches("open");return{open:l,setOpen(c){n.matches("open")!==c&&r({type:c?"OPEN":"CLOSE"})},getTriggerProps(){return t.button({...Vn.trigger.attrs,dir:o("dir"),id:fh(s),"aria-haspopup":"dialog",type:"button","aria-expanded":l,"data-state":l?"open":"closed","aria-controls":nl(s),onClick(c){c.defaultPrevented||r({type:"TOGGLE"})}})},getBackdropProps(){return t.element({...Vn.backdrop.attrs,dir:o("dir"),hidden:!l,id:hh(s),"data-state":l?"open":"closed"})},getPositionerProps(){return t.element({...Vn.positioner.attrs,dir:o("dir"),id:dh(s),style:{pointerEvents:l?void 0:"none"}})},getContentProps(){const c=i.get("rendered");return t.element({...Vn.content.attrs,dir:o("dir"),role:o("role"),hidden:!l,id:nl(s),tabIndex:-1,"data-state":l?"open":"closed","aria-modal":!0,"aria-label":a||void 0,"aria-labelledby":a||!c.title?void 0:rl(s),"aria-describedby":c.description?il(s):void 0})},getTitleProps(){return t.element({...Vn.title.attrs,dir:o("dir"),id:rl(s)})},getDescriptionProps(){return t.element({...Vn.description.attrs,dir:o("dir"),id:il(s)})},getCloseTriggerProps(){return t.button({...Vn.closeTrigger.attrs,dir:o("dir"),id:gh(s),type:"button",onClick(c){c.defaultPrevented||(c.stopPropagation(),r({type:"CLOSE"}))}})}}}var Dw={props({props:e,scope:t}){const n=e.role==="alertdialog",r=n?()=>Fw(t):void 0,i=typeof e.modal=="boolean"?e.modal:!0;return{role:"dialog",modal:i,trapFocus:i,preventScroll:i,closeOnInteractOutside:!n,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r,...e}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}},watch({track:e,action:t,prop:n}){e([()=>n("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:n}){return Cr(()=>Zo(e),{defer:!0,pointerBlocking:n("modal"),exclude:[Aw(e)],onInteractOutside(i){var o;(o=n("onInteractOutside"))==null||o(i),n("closeOnInteractOutside")||i.preventDefault()},persistentElements:n("persistentElements"),onFocusOutside:n("onFocusOutside"),onPointerDownOutside:n("onPointerDownOutside"),onRequestDismiss:n("onRequestDismiss"),onEscapeKeyDown(i){var o;(o=n("onEscapeKeyDown"))==null||o(i),n("closeOnEscape")||i.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return Rw(e.getDoc())},trapFocus({scope:e,prop:t}){return t("trapFocus")?Iw(()=>Zo(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:r=>{var i;return((i=t("finalFocusEl"))==null?void 0:i())??r}}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?Xd(()=>[Zo(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){Z(()=>{e.set("rendered",{title:!!_w(t),description:!!Vw(t)})})},syncZIndex({scope:e}){Z(()=>{const t=Zo(e);if(!t)return;const n=yo(t);[Tw(e),Nw(e)].forEach(i=>{i==null||i.style.setProperty("--z-index",n.zIndex),i==null||i.style.setProperty("--layer-index",n.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!1})},invokeOnOpen({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!0})},toggleVisibility({prop:e,send:t,event:n}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})}}}};U()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);const zw=e=>{const t=E.useId(),{getRootNode:n}=pu(),{dir:r}=Ux(),i={id:t,getRootNode:n,dir:r,...e},o=Lu(Dw,i);return Lw(o,Jx)},Mw=e=>{const[t,{children:n,...r}]=Vu(e),[i]=Rd(t),o=zw(r),s=Na(pt({present:o.open},t));return v.jsx(rh,{value:o,children:v.jsx(Pd,{value:i,children:v.jsx(Mu,{value:s,children:n})})})},$w=e=>{const[t,{value:n,children:r}]=Vu(e),[i]=Rd(t),o=Na(pt({present:n.open},t));return v.jsx(rh,{value:n,children:v.jsx(Pd,{value:i,children:v.jsx(Mu,{value:o,children:r})})})},ph=E.forwardRef((e,t)=>{const n=on(),r=pt(n.getTitleProps(),e);return v.jsx(en.h2,{...r,ref:t})});ph.displayName="DialogTitle";const mh=E.forwardRef((e,t)=>{const n=on(),r=Aa(),i=pt({...n.getTriggerProps(),"aria-controls":r.unmounted?void 0:n.getTriggerProps()["aria-controls"]},e);return v.jsx(en.button,{...i,ref:t})});mh.displayName="DialogTrigger";var vh=G("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");vh.build(),U()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]);const bh=G("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");bh.build();var Bw=e=>{var c,u;if(!e)return;const t=yo(e),n=Ie(e),r=Ge(e),i=()=>{requestAnimationFrame(()=>{e.style.height="auto";let d;t.boxSizing==="content-box"?d=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):d=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&d>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),d=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${d}px`})};e.addEventListener("input",i),(c=e.form)==null||c.addEventListener("reset",i);const o=Object.getPrototypeOf(e),s=Object.getOwnPropertyDescriptor(o,"value");Object.defineProperty(e,"value",{...s,set(){var d;(d=s==null?void 0:s.set)==null||d.apply(this,arguments),i()}});const a=new n.ResizeObserver(()=>{requestAnimationFrame(()=>i())});a.observe(e);const l=new n.MutationObserver(()=>i());return l.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),(u=r.fonts)==null||u.addEventListener("loadingdone",i),()=>{var d,h;e.removeEventListener("input",i),(d=e.form)==null||d.removeEventListener("reset",i),(h=r.fonts)==null||h.removeEventListener("loadingdone",i),a.disconnect(),l.disconnect()}};const yh=E.forwardRef((e,t)=>{const{autoresize:n,...r}=e,i=E.useRef(null),o=LS(),s=pt(o==null?void 0:o.getTextareaProps(),{style:{resize:n?"none":void 0}},r);return E.useEffect(()=>{if(n)return Bw(i.current)},[n]),v.jsx(en.textarea,{...s,ref:To(t,i)})});yh.displayName="FieldTextarea";const xh=G("fieldset").parts("root","errorText","helperText","legend");xh.build();var Ch=G("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");Ch.build(),U()(["accept","acceptedFiles","allowDrop","capture","defaultAcceptedFiles","dir","directory","disabled","getRootNode","id","ids","invalid","locale","maxFiles","maxFileSize","minFileSize","name","onFileAccept","onFileChange","onFileReject","preventDocumentDrop","required","transformFiles","translations","validate"]),U()(["file"]);var Sh=G("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");Sh.build();var jw=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`hover-card:${e.id}:trigger`},Ww=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`hover-card:${e.id}:content`},Hw=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`hover-card:${e.id}:popper`},ol=e=>e.getById(jw(e)),Uw=e=>e.getById(Ww(e)),wh=e=>e.getById(Hw(e)),{not:es,and:Eh}=Zt();Eh("isOpenControlled",es("isPointer")),es("isPointer"),Eh("isOpenControlled",es("isPointer")),es("isPointer"),U()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var kh=G("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","root","tree");kh.build();var Oh=e=>new qd(e);Oh.empty=()=>new qd({rootNode:{children:[]}});var Gw=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.node)==null?void 0:r.call(n,t))??`tree:${e.id}:node:${t}`},Fn=(e,t)=>{var n;t!=null&&((n=e.getById(Gw(e,t)))==null||n.focus())};function qw(e,t,n){const r=e.getDescendantValues(t),i=r.every(o=>n.includes(o));return ur(i?On(n,...r):kn(n,...r))}function ts(e,t){const{context:n,prop:r,refs:i}=e;if(!r("loadChildren")){n.set("expandedValue",g=>ur(kn(g,...t)));return}const o=n.get("loadingStatus"),[s,a]=nu(t,g=>o[g]==="loaded");if(s.length>0&&n.set("expandedValue",g=>ur(kn(g,...s))),a.length===0)return;const l=r("collection"),[c,u]=nu(a,g=>{const p=l.findNode(g);return l.getNodeChildren(p).length>0});if(c.length>0&&n.set("expandedValue",g=>ur(kn(g,...c))),u.length===0)return;n.set("loadingStatus",g=>({...g,...u.reduce((p,b)=>({...p,[b]:"loading"}),{})}));const d=u.map(g=>{const p=l.getIndexPath(g),b=l.getValuePath(p),x=l.findNode(g);return{id:g,indexPath:p,valuePath:b,node:x}}),h=i.get("pendingAborts"),m=r("loadChildren");gu(m,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion");const f=d.map(({id:g,indexPath:p,valuePath:b,node:x})=>{const S=h.get(g);S&&(S.abort(),h.delete(g));const C=new AbortController;return h.set(g,C),m({valuePath:b,indexPath:p,node:x,signal:C.signal})});Promise.allSettled(f).then(g=>{var C,w;const p=[],b=[],x=n.get("loadingStatus");let S=r("collection");g.forEach((P,_)=>{const{id:R,indexPath:N,node:T,valuePath:j}=d[_];P.status==="fulfilled"?(x[R]="loaded",p.push(R),S=S.replace(N,{...T,children:P.value})):(h.delete(R),Reflect.deleteProperty(x,R),b.push({node:T,error:P.reason,indexPath:N,valuePath:j}))}),n.set("loadingStatus",x),p.length&&(n.set("expandedValue",P=>ur(kn(P,...p))),(C=r("onLoadChildrenComplete"))==null||C({collection:S})),b.length&&((w=r("onLoadChildrenError"))==null||w({nodes:b}))})}function sn(e){const{prop:t,context:n}=e;return function({indexPath:i}){return t("collection").getValuePath(i).slice(0,-1).some(s=>!n.get("expandedValue").includes(s))}}var{and:Nt}=Zt();Nt("isMultipleSelection","moveFocus"),Nt("isShiftKey","isMultipleSelection"),Nt("isShiftKey","isMultipleSelection"),Nt("isBranchFocused","isBranchExpanded"),Nt("isShiftKey","isMultipleSelection"),Nt("isShiftKey","isMultipleSelection"),Nt("isCtrlKey","isMultipleSelection"),Nt("isShiftKey","isMultipleSelection"),Nt("isCtrlKey","isMultipleSelection"),Nt("isShiftKey","isMultipleSelection"),U()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren"]),U()(["node","indexPath"]);var Ih=G("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");Ih.build(),U()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"]),U()(["item","highlightOnHover"]),U()(["id"]),U()(["htmlFor"]);const Kw=Ih.extendWith("empty");var Ph=G("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");Ph.build();var Rh=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`menu:${e.id}:trigger`},Xw=e=>{var t;return((t=e.ids)==null?void 0:t.contextTrigger)??`menu:${e.id}:ctx-trigger`},Th=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`menu:${e.id}:content`},Yw=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`menu:${e.id}:popper`},sl=(e,t)=>`${e.id}/${t}`,Ln=e=>(e==null?void 0:e.dataset.value)??null,an=e=>e.getById(Th(e)),Nh=e=>e.getById(Yw(e)),ns=e=>e.getById(Rh(e)),Qw=(e,t)=>t?e.getById(sl(e,t)):null,al=e=>e.getById(Xw(e)),xi=e=>{const n=`[role^="menuitem"][data-ownedby=${CSS.escape(Th(e))}]:not([data-disabled])`;return Po(an(e),n)},Jw=e=>oi(xi(e)),Zw=e=>fa(xi(e)),ll=(e,t)=>t?e.id===t||e.dataset.value===t:!1,eE=(e,t)=>{const n=xi(e),r=n.findIndex(i=>ll(i,t.value));return i0(n,r,{loop:t.loop??t.loopFocus})},tE=(e,t)=>{const n=xi(e),r=n.findIndex(i=>ll(i,t.value));return s0(n,r,{loop:t.loop??t.loopFocus})},nE=(e,t)=>{const n=xi(e),r=n.find(i=>ll(i,t.value));return ci(n,{state:t.typeaheadState,key:t.key,activeId:(r==null?void 0:r.id)??null})},rE=e=>{var t;return!!((t=e==null?void 0:e.getAttribute("role"))!=null&&t.startsWith("menuitem"))&&!!(e!=null&&e.hasAttribute("aria-controls"))},iE="menu:select";function oE(e,t){if(!e)return;const n=Ie(e),r=new n.CustomEvent(iE,{detail:{value:t}});e.dispatchEvent(r)}var{not:ct,and:kr,or:sE}=Zt();ct("isSubmenu"),sE("isOpenAutoFocusEvent","isArrowDownEvent"),kr(ct("isTriggerItem"),"isOpenControlled"),ct("isTriggerItem"),kr("isSubmenu","isOpenControlled"),ct("isPointerSuspended"),kr(ct("isPointerSuspended"),ct("isTriggerItem")),kr(ct("isTriggerItemHighlighted"),ct("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),kr(ct("isTriggerItemHighlighted"),ct("isHighlightedItemEditable"),"closeOnSelect"),kr(ct("isTriggerItemHighlighted"),ct("isHighlightedItemEditable"));function Ah(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t==null||t.send({type:"CLOSE"})}function aE(e,t){return e?IS(e,t):!1}function lE(e,t,n){const r=Object.keys(e).length>0;if(!t)return null;if(!r)return sl(n,t);for(const i in e){const o=e[i],s=Rh(o.scope);if(s===t)return s}return sl(n,t)}U()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","onSelect","open","positioning","typeahead"]),U()(["closeOnSelect","disabled","value","valueText"]),U()(["htmlFor"]),U()(["id"]),U()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);let cl=new Map,ul=!1;try{ul=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let rs=!1;try{rs=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const _h={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class cE{format(t){let n="";if(!ul&&this.options.signDisplay!=null?n=dE(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!rs){var r;let{unit:i,unitDisplay:o="short",locale:s}=this.resolvedOptions();if(!i)return n;let a=(r=_h[i])===null||r===void 0?void 0:r[o];n+=a[s]||a.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!ul&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!rs&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=uE(t,n),this.options=n}}function uE(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!rs){var r;let{unit:s,unitDisplay:a="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=_h[s])===null||r===void 0)&&r[a]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((s,a)=>s[0]0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),o=e.format(n),s=i.replace(o,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(o,"!!!").replace(s,"+").replace("!!!",o)}else return e.format(n)}}const hE=new RegExp("^.*\\(.*\\).*$"),fE=["latn","arab","hanidec","deva","beng","fullwide"];class Vh{parse(t){return dl(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return dl(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return dl(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const Fh=new Map;function dl(e,t,n){let r=Lh(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of fE)if(i!==r.options.numberingSystem){let o=Lh(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(o.isValidPartialNumber(n))return o}}return r}function Lh(e,t){let n=e+(t?Object.entries(t).sort((i,o)=>i[0]-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,o;let s={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)+2,20)};return new Vh(this.locale,s).parse(new cE(this.locale,s).format(r))}return this.options.currencySign==="accounting"&&hE.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=Ci(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(t=Ci(t," ",this.symbols.group),t=Ci(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=Ci(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=mE(t,this.formatter,this.options,n);var r,i;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const Dh=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),pE=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function mE(e,t,n,r){var i,o,s,a;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),c=l.formatToParts(-10000.111),u=l.formatToParts(10000.111),d=pE.map(T=>l.formatToParts(T));var h;let m=(h=(i=c.find(T=>T.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&h!==void 0?h:"-",f=(o=u.find(T=>T.type==="plusSign"))===null||o===void 0?void 0:o.value;!f&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(f="+");let p=(s=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(T=>T.type==="decimal"))===null||s===void 0?void 0:s.value,b=(a=c.find(T=>T.type==="group"))===null||a===void 0?void 0:a.value,x=c.filter(T=>!Dh.has(T.type)).map(T=>zh(T.value)),S=d.flatMap(T=>T.filter(j=>!Dh.has(j.type)).map(j=>zh(j.value))),C=[...new Set([...x,...S])].sort((T,j)=>j.length-T.length),w=C.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${C.join("|")}|[\\p{White_Space}]`,"gu"),P=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),_=new Map(P.map((T,j)=>[T,j])),R=new RegExp(`[${P.join("")}]`,"g");return{minusSign:m,plusSign:f,decimal:p,group:b,literals:w,numeral:R,index:T=>String(_.get(T))}}function Ci(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function zh(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var Mh=G("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");Mh.build();var vE=e=>{var t;return((t=e.ids)==null?void 0:t.input)??`number-input:${e.id}:input`},bE=e=>{var t;return((t=e.ids)==null?void 0:t.incrementTrigger)??`number-input:${e.id}:inc`},yE=e=>{var t;return((t=e.ids)==null?void 0:t.decrementTrigger)??`number-input:${e.id}:dec`},$h=e=>`number-input:${e.id}:cursor`,is=e=>e.getById(vE(e)),xE=e=>e.getById(bE(e)),CE=e=>e.getById(yE(e)),Bh=e=>e.getDoc().getElementById($h(e)),SE=(e,t)=>{let n=null;return t==="increment"&&(n=xE(e)),t==="decrement"&&(n=CE(e)),n},wE=(e,t)=>{if(!wu())return OE(e,t),()=>{var n;(n=Bh(e))==null||n.remove()}},EE=e=>{const t=e.getDoc(),n=t.documentElement,r=t.body;return r.style.pointerEvents="none",n.style.userSelect="none",n.style.cursor="ew-resize",()=>{r.style.pointerEvents="",n.style.userSelect="",n.style.cursor="",n.style.length||n.removeAttribute("style"),r.style.length||r.removeAttribute("style")}},kE=(e,t)=>{const{point:n,isRtl:r,event:i}=t,o=e.getWin(),s=ma(i.movementX,o.devicePixelRatio),a=ma(i.movementY,o.devicePixelRatio);let l=s>0?"increment":s<0?"decrement":null;r&&l==="increment"&&(l="decrement"),r&&l==="decrement"&&(l="increment");const c={x:n.x+s,y:n.y+a},u=o.innerWidth,d=ma(7.5,o.devicePixelRatio);return c.x=w0(c.x+d,u)-d,{hint:l,point:c}},OE=(e,t)=>{const n=e.getDoc(),r=n.createElement("div");r.className="scrubber--cursor",r.id=$h(e),Object.assign(r.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:L0,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),r.innerHTML=` +>>>>>>> 3f3a37a363 (Add confirmation dialog for exit maintenance action in Edge Worker Page) +<<<<<<< HEAD `,n.body.appendChild(r)};function QS(e){if(!(!e||e.ownerDocument.activeElement!==e))try{const{selectionStart:t,selectionEnd:n,value:r}=e,o=r.substring(0,t),i=r.substring(n);return{start:t,end:n,value:r,beforeTxt:o,afterTxt:i}}catch{}}function JS(e,t){if(!(!e||e.ownerDocument.activeElement!==e)){if(!t){e.setSelectionRange(e.value.length,e.value.length);return}try{const{value:n}=e,{beforeTxt:r="",afterTxt:o="",start:i}=t;let s=n.length;if(n.endsWith(o))s=n.length-o.length;else if(n.startsWith(r))s=r.length;else if(i!=null){const a=r[i-1],l=n.indexOf(a,i-1);l!==-1&&(s=l+1)}e.setSelectionRange(s,s)}catch{}}}var ZS=(e,t={})=>new Intl.NumberFormat(e,t),ew=(e,t={})=>new jh(e,t),bl=(e,t)=>{const{prop:n,computed:r}=t;return n("formatOptions")?e===""?Number.NaN:r("parser").parse(e):parseFloat(e)},Fn=(e,t)=>{const{prop:n,computed:r}=t;return Number.isNaN(e)?"":n("formatOptions")?r("formatter").format(e):e.toString()},tw=(e,t)=>{let n=e!==void 0&&!Number.isNaN(e)?e:1;return(t==null?void 0:t.style)==="percent"&&(e===void 0||Number.isNaN(e))&&(n=.01),n},{choose:nw,guards:rw,createMachine:ow}=$u(),{not:Xh,and:Yh}=rw;ow({props({props:e}){const t=tw(e.step,e.formatOptions);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"-?[0-9]*(.[0-9]+)?",defaultValue:"",step:t,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:t,getComputed:n}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(r){var s;const o=n(),i=bl(r,{computed:o,prop:e});(s=e("onValueChange"))==null||s({value:r,valueAsNumber:i})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash(r){return r?`x:${r.x}, y:${r.y}`:""}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",valueAsNumber:({context:e,computed:t,prop:n})=>bl(e.get("value"),{computed:t,prop:n}),formattedValue:({computed:e,prop:t})=>Fn(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>Kb(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>qb(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!Xb(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>e.get("value")==="",isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>{var n,r;return(r=(n=e("translations")).valueText)==null?void 0:r.call(n,t.get("value"))},formatter:Mu(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>ZS(e,t)),parser:Mu(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>ew(e,t))},watch({track:e,action:t,context:n,computed:r,prop:o}){e([()=>n.get("value"),()=>o("locale")],()=>{t(["syncInputElement"])}),e([()=>r("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>n.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:Yh("clampValueOnBlur",Xh("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:Xh("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:nw([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:Yh("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isDecrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>e.pointerType==="touch"},effects:{waitForChangeDelay({send:e}){const t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){const t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl({context:e,scope:t}){const n=ss(t);return Oa(n,{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){const n=e.get("scrubberCursorPoint");return qS(t,n)},preventTextSelection({scope:e}){return KS(e)},trackButtonDisabled({context:e,scope:t,send:n}){const r=e.get("hint"),o=GS(t,r);return Oi(o,{attributes:["disabled"],callback(){n({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:n}){const r=ss(e);if(!r||!e.isActiveElement(r)||!n("allowMouseWheel"))return;function o(i){i.preventDefault();const s=Math.sign(i.deltaY)*-1;s===1?t({type:"VALUE.INCREMENT"}):s===-1&&t({type:"VALUE.DECREMENT"})}return fe(r,"wheel",o,{passive:!1})},activatePointerLock({scope:e}){if(!Nu())return Gy(e.getDoc())},trackMousemove({scope:e,send:t,context:n,computed:r}){const o=e.getDoc();function i(a){const l=n.get("scrubberCursorPoint"),c=r("isRtl"),u=XS(e,{point:l,isRtl:c,event:a});u.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:u.hint,point:u.point})}function s(){t({type:"SCRUBBER.POINTER_UP"})}return vi(fe(o,"mousemove",i,!1),fe(o,"mouseup",s,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const n=ss(e);e.isActiveElement(n)||ee(()=>n==null?void 0:n.focus({preventScroll:!0}))},increment({context:e,event:t,prop:n,computed:r}){let o=Zb(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(o=Ge(o,n("min"),n("max"))),e.set("value",Fn(o,{computed:r,prop:n}))},decrement({context:e,event:t,prop:n,computed:r}){let o=ey(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(o=Ge(o,n("min"),n("max"))),e.set("value",Fn(o,{computed:r,prop:n}))},setClampedValue({context:e,prop:t,computed:n}){const r=Ge(n("valueAsNumber"),t("min"),t("max"));e.set("value",Fn(r,{computed:n,prop:t}))},setRawValue({context:e,event:t,prop:n,computed:r}){let o=bl(t.value,{computed:r,prop:n});n("allowOverflow")||(o=Ge(o,n("min"),n("max"))),e.set("value",Fn(o,{computed:r,prop:n}))},setValue({context:e,event:t}){var r;const n=((r=t.target)==null?void 0:r.value)??t.value;e.set("value",n)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:n}){const r=Fn(t("max"),{computed:n,prop:t});e.set("value",r)},decrementToMin({context:e,prop:t,computed:n}){const r=Fn(t("min"),{computed:n,prop:t});e.set("value",r)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){var n;(n=t("onFocusChange"))==null||n({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){var n;(n=t("onFocusChange"))==null||n({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:n}){var o;if(n.type==="INPUT.CHANGE")return;const r=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";(o=t("onValueInvalid"))==null||o({reason:r,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:n,scope:r}){const o=t.type.endsWith("CHANGE")?e.get("value"):n("formattedValue"),i=ss(r),s=QS(i);ee(()=>{Ei(i,o),JS(i,s)})},setFormattedValue({context:e,computed:t}){e.set("value",t("formattedValue"))},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){const n=Kh(t),r=e.get("scrubberCursorPoint");!n||!r||(n.style.transform=`translate3d(${r.x}px, ${r.y}px, 0px)`)}}}}),U()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var Qh=G("pinInput").parts("root","label","input","control");Qh.build(),U()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);var Jh=G("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");Jh.build(),U()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);const iw=e=>{var l;const{children:t,disabled:n}=e,[r,o]=w.useState((l=e.container)==null?void 0:l.current),i=w.useSyncExternalStore(aw,()=>!1,()=>!0),{getRootNode:s}=Su();if(w.useEffect(()=>{o(()=>{var c;return(c=e.container)==null?void 0:c.current})},[e.container]),i||n)return v.jsx(v.Fragment,{children:t});const a=r??sw(s);return v.jsx(v.Fragment,{children:w.Children.map(t,c=>ne.createPortal(c,a))})},sw=e=>{const t=e==null?void 0:e(),n=t.getRootNode();return fr(n)?n:qe(t).body},aw=()=>()=>{};var yl=G("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");yl.build(),U()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var Zh=G("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");Zh.build(),U()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var xl=G("radio-group").parts("root","label","item","itemText","itemControl","indicator");xl.build(),U()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]),U()(["value","disabled","invalid"]);var ef=G("rating-group").parts("root","label","item","control");ef.build(),U()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]),U()(["index"]);var tf=G("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");tf.build(),U()(["dir","getRootNode","ids","id"]);const nf=xl.rename("segment-group");nf.build();var rf=G("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");rf.build();var of=e=>new Yi(e);of.empty=()=>new Yi({items:[]});var lw=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`select:${e.id}:content`},cw=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`select:${e.id}:trigger`},uw=e=>{var t;return((t=e.ids)==null?void 0:t.clearTrigger)??`select:${e.id}:clear-trigger`},dw=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.item)==null?void 0:r.call(n,t))??`select:${e.id}:option:${t}`},hw=e=>{var t;return((t=e.ids)==null?void 0:t.hiddenSelect)??`select:${e.id}:select`},fw=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`select:${e.id}:positioner`},Cl=e=>e.getById(hw(e)),So=e=>e.getById(lw(e)),as=e=>e.getById(cw(e)),gw=e=>e.getById(uw(e)),sf=e=>e.getById(fw(e)),kl=(e,t)=>t==null?null:e.getById(dw(e,t)),{and:wo,not:Dn,or:pw}=Zt();pw("isTriggerArrowDownEvent","isTriggerEnterEvent"),wo(Dn("multiple"),"hasSelectedItems"),Dn("multiple"),wo(Dn("multiple"),"hasSelectedItems"),Dn("multiple"),Dn("multiple"),Dn("multiple"),Dn("multiple"),wo("closeOnSelect","isOpenControlled"),wo("hasHighlightedItem","loop","isLastItemHighlighted"),wo("hasHighlightedItem","loop","isFirstItemHighlighted");function af(e){var n;const t=e.restoreFocus??((n=e.previousEvent)==null?void 0:n.restoreFocus);return t==null||!!t}U()(["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","dir","disabled","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]),U()(["item","persistFocus"]),U()(["id"]),U()(["htmlFor"]);var lf=G("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");lf.build(),U()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"]),U()(["index","name"]);var cf=G("switch").parts("root","label","control","thumb");cf.build(),U()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);var mw=G("toast").parts("group","root","title","description","actionTrigger","closeTrigger");mw.build();var vw=(e,t)=>({...t,...yi(e)});function bw(e){const t=vw(e,{placement:"bottom",overlap:!1,max:24,gap:16,offsets:"1rem",hotkey:["altKey","KeyT"],removeDelay:200,pauseOnPageIdle:!0});let n=[],r=[],o=new Set,i=[];const s=R=>(n.push(R),()=>{const L=n.indexOf(R);n.splice(L,1)}),a=R=>(n.forEach(L=>L(R)),R),l=R=>{if(r.length>=t.max){i.push(R);return}a(R),r.unshift(R)},c=()=>{for(;i.length>0&&r.length{const L=R.id??`toast:${jb()}`,Y=r.find(z=>z.id===L);return o.has(L)&&o.delete(L),Y?r=r.map(z=>z.id===L?a({...z,...R,id:L}):z):l({id:L,duration:t.duration,removeDelay:t.removeDelay,type:"info",...R,stacked:!t.overlap,gap:t.gap}),L},d=R=>(o.add(R),R?(n.forEach(L=>L({id:R,dismiss:!0})),r=r.filter(L=>L.id!==R),c()):(r.forEach(L=>{n.forEach(Y=>Y({id:L.id,dismiss:!0}))}),r=[],i=[]),R);return{attrs:t,subscribe:s,create:u,update:(R,L)=>u({id:R,...L}),remove:d,dismiss:R=>{R!=null?r=r.map(L=>L.id===R?a({...L,message:"DISMISS"}):L):r=r.map(L=>a({...L,message:"DISMISS"}))},error:R=>u({...R,type:"error"}),success:R=>u({...R,type:"success"}),info:R=>u({...R,type:"info"}),warning:R=>u({...R,type:"warning"}),loading:R=>u({...R,type:"loading"}),getVisibleToasts:()=>r.filter(R=>!o.has(R.id)),getCount:()=>r.length,promise:(R,L,Y={})=>{if(!L||!L.loading){ao("[zag-js > toast] toaster.promise() requires at least a 'loading' option to be specified");return}const z=u({...Y,...L.loading,promise:R,type:"loading"});let V=!0,B;const K=mi(R).then(async H=>{if(B=["resolve",H],yw(H)&&!H.ok){V=!1;const X=mi(L.error,`HTTP Error! status: ${H.status}`);u({...Y,...X,id:z,type:"error"})}else if(L.success!==void 0){V=!1;const X=mi(L.success,H);u({...Y,...X,id:z,type:"success"})}}).catch(async H=>{if(B=["reject",H],L.error!==void 0){V=!1;const X=mi(L.error,H);u({...Y,...X,id:z,type:"error"})}}).finally(()=>{var H;V&&d(z),(H=L.finally)==null||H.call(L)});return{id:z,unwrap:()=>new Promise((H,X)=>K.then(()=>B[0]==="reject"?X(B[1]):H(B[1])).catch(X))}},pause:R=>{R!=null?r=r.map(L=>L.id===R?a({...L,message:"PAUSE"}):L):r=r.map(L=>a({...L,message:"PAUSE"}))},resume:R=>{R!=null?r=r.map(L=>L.id===R?a({...L,message:"RESUME"}):L):r=r.map(L=>a({...L,message:"RESUME"}))},isVisible:R=>!o.has(R)&&!!r.find(L=>L.id===R),isDismissed:R=>o.has(R),expand:()=>{r=r.map(R=>a({...R,stacked:!0}))},collapse:()=>{r=r.map(R=>a({...R,stacked:!1}))}}}var yw=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number";const xw=e=>bw(e);var uf=G("tooltip").parts("trigger","arrow","arrowTip","positioner","content");uf.build();var Cw=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`tooltip:${e.id}:trigger`},kw=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`tooltip:${e.id}:popper`},Sl=e=>e.getById(Cw(e)),df=e=>e.getById(kw(e)),zn=ty({id:null}),{and:Sw,not:hf}=Zt();Sw("noVisibleTooltip",hf("hasPointerMoveOpened")),hf("hasPointerMoveOpened"),U()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);function ff(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}const ww=(e,t)=>{var l;if(!e||typeof e!="string")return{invalid:!0,value:e};const[n,r]=e.split("/");if(!n||!r||n==="currentBg")return{invalid:!0,value:n};const o=t(`colors.${n}`),i=(l=t.raw(`opacity.${r}`))==null?void 0:l.value;if(!i&&isNaN(Number(r)))return{invalid:!0,value:n};const s=i?Number(i)*100+"%":`${r}%`,a=o??n;return{invalid:!1,color:a,value:`color-mix(in srgb, ${a} ${s}, transparent)`}},le=e=>(t,n)=>{const r=n.utils.colorMix(t);if(r.invalid)return{[e]:t};const o="--mix-"+e;return{[o]:r.value,[e]:`var(${o}, ${r.color})`}};function wl(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>wl(n));const t=Object.create(Object.getPrototypeOf(e));for(const n of Object.keys(e))t[n]=wl(e[n]);return t}function El(e,t){if(t==null)return e;for(const n of Object.keys(t))if(!(t[n]===void 0||n==="__proto__"))if(!Ue(e[n])&&Ue(t[n]))Object.assign(e,{[n]:t[n]});else if(e[n]&&Ue(t[n]))El(e[n],t[n]);else if(Array.isArray(t[n])&&Array.isArray(e[n])){let r=0;for(;re!=null;function _t(e,t,n={}){const{stop:r,getKey:o}=n;function i(s,a=[]){if(Ue(s)||Array.isArray(s)){const l={};for(const[c,u]of Object.entries(s)){const d=(o==null?void 0:o(c,u))??c,h=[...a,d];if(r!=null&&r(s,h))return t(s,a);const p=i(u,h);Ol(p)&&(l[d]=p)}return l}return t(s,a)}return i(e)}function gf(e,t){return Array.isArray(e)?e.map(n=>Ol(n)?t(n):n):Ue(e)?_t(e,n=>t(n)):Ol(e)?t(e):e}const ls=["value","type","description"],Ew=e=>e&&typeof e=="object"&&!Array.isArray(e),pf=(...e)=>{var n;const t=Or({},...e.map(wl));return(n=t.theme)!=null&&n.tokens&&_t(t.theme.tokens,r=>{const s=Object.keys(r).filter(l=>!ls.includes(l)).length>0,a=ls.some(l=>r[l]!=null);return s&&a&&(r.DEFAULT||(r.DEFAULT={}),ls.forEach(l=>{var c;r[l]!=null&&((c=r.DEFAULT)[l]||(c[l]=r[l]),delete r[l])})),r},{stop(r){return Ew(r)&&Object.keys(r).some(o=>ls.includes(o)||o!==o.toLowerCase()&&o!==o.toUpperCase())}}),t},Ow=e=>e,Se=e=>e,q=e=>e,Iw=e=>e,Pw=e=>e,Ir=e=>e,Rw=e=>e,Tw=e=>e,Nw=e=>e;function mf(){const e=t=>t;return new Proxy(e,{get(){return e}})}const Ce=mf(),Il=mf(),Pl=e=>e,_w=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function Aw(e){return`${e}`.replace(_w,t=>`\\${t}`)}const Vw=/[A-Z]/g;function Lw(e){return e.replace(Vw,t=>`-${t.toLowerCase()}`)}function vf(e,t={}){const{fallback:n="",prefix:r=""}=t,o=Lw(["-",r,Aw(e)].filter(Boolean).join("-"));return{var:o,ref:`var(${o}${n?`, ${n}`:""})`}}const Fw=e=>/^var\(--.+\)$/.test(e),Te=(e,t)=>t!=null?`${e}(${t})`:t,Mn=e=>{if(Fw(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},bf=e=>({values:["outside","inside","mixed","none"],transform(t,{token:n}){const r=n("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":r,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":r,[e]:{outline:"none"}}}[t]??{}}}),Dw=le("borderColor"),Bt=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),zw=Ow({hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invalid:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&:is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"}),Pr=vf("bg-currentcolor"),yf=e=>e===Pr.ref||e==="currentBg",ce=e=>({...e("colors"),currentBg:Pr}),Mw=Pl({conditions:zw,utilities:{background:{values:ce,shorthand:["bg"],transform(e,t){if(yf(t.raw))return{background:Pr.ref};const n=le("background")(e,t);return{...n,[Pr.var]:n==null?void 0:n.background}}},backgroundColor:{values:ce,shorthand:["bgColor"],transform(e,t){if(yf(t.raw))return{backgroundColor:Pr.ref};const n=le("backgroundColor")(e,t);return{...n,[Pr.var]:n==null?void 0:n.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}}},backgroundGradient:{shorthand:["bgGradient"],values(e){return{...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}},transform(e){return{"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e}}},gradientFrom:{values:ce,transform:le("--gradient-from")},gradientTo:{values:ce,transform:le("--gradient-to")},gradientVia:{values:ce,transform(e,t){return{...le("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"}}},backgroundImage:{values(e){return{...e("gradients"),...e("assets")}},shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:ce,transform:le("borderColor")},borderTopColor:{values:ce,transform:le("borderTopColor")},borderBlockStartColor:{values:ce,transform:le("borderBlockStartColor")},borderBottomColor:{values:ce,transform:le("borderBottomColor")},borderBlockEndColor:{values:ce,transform:le("borderBlockEndColor")},borderLeftColor:{values:ce,transform:le("borderLeftColor")},borderInlineStartColor:{values:ce,shorthand:["borderStartColor"],transform:le("borderInlineStartColor")},borderRightColor:{values:ce,transform:le("borderRightColor")},borderInlineEndColor:{values:ce,shorthand:["borderEndColor"],transform:le("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:ce,transform:le("color")},fill:{values:ce,transform:le("fill")},stroke:{values:ce,transform:le("stroke")},accentColor:{values:ce,transform:le("accentColor")},divideX:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}}}},divideY:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}}}},divideColor:{values:ce,transform(e,t){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":Dw(e,t)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:ce,transform:le("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform(e){return e!=="auto"?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}}},blur:{values:"blurs",transform:e=>({"--blur":Te("blur",e)})},brightness:{transform:e=>({"--brightness":Te("brightness",e)})},contrast:{transform:e=>({"--contrast":Te("contrast",e)})},grayscale:{transform:e=>({"--grayscale":Te("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":Te("hue-rotate",Mn(e))})},invert:{transform:e=>({"--invert":Te("invert",e)})},saturate:{transform:e=>({"--saturate":Te("saturate",e)})},sepia:{transform:e=>({"--sepia":Te("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":Te("drop-shadow",e)})},backdropFilter:{transform(e){return e!=="auto"?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":Te("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":Te("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":Te("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":Te("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":Te("hue-rotate",Mn(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":Te("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":Te("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":Te("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":Te("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:ce,transform:le("outlineColor")},focusRing:bf("&:is(:focus, [data-focus])"),focusVisibleRing:bf("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:ce,transform:le("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:n})=>({[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:n}){return{[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`]:{display:"none"}}}},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:ce,transform:le("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform(e){return{"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"}}},ringColor:{values:ce,transform:le("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:ce,transform:le("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:ce,transform:le("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return e==="auto"&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),e==="auto-gpu"&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":Mn(e)})},skewY:{transform:e=>({"--skew-y":Mn(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform(e){return e!=="auto"?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}}},spaceXReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}}}},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}}}},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform(e){return e!=="auto"?{rotate:Mn(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":Mn(e)}}},rotateY:{transform(e){return{"--rotate-y":Mn(e)}}},translate:{transform(e){return e!=="auto"?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return Bt("all");case"position":return Bt("left, right, top, bottom, inset-inline, inset-block");case"colors":return Bt("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return Bt("opacity");case"shadow":return Bt("box-shadow");case"transform":return Bt("transform");case"size":return Bt("width, height");case"backgrounds":return Bt("background, background-color, background-image, background-position");case"common":return Bt("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform(e){return e===!0?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}}},lineClamp:{transform(e){return e==="none"?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}}},borderSpacing:{values:e=>({...e("spacing"),auto:"var(--border-spacing-x, 0) var(--border-spacing-y, 0)"})},borderSpacingX:{values:"spacing",transform(e){return{"--border-spacing-x":e}}},borderSpacingY:{values:"spacing",transform(e){return{"--border-spacing-y":e}}},srOnly:{values:{type:"boolean"},transform(e){return $w[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:ce,transform:le("caretColor")},cursor:{values:"cursor"}}}),$w={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var jw="",Bw=jw.split(","),Ww="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical",Hw=Ww.split(",").concat(Bw),Uw=new Map(Hw.map(e=>[e,!0]));function Gw(e){const t=Object.create(null);return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var qw=/&|@/,Kw=Gw(e=>Uw.has(e)||e.startsWith("--")||qw.test(e));function xf(e,t){const n={};return _t(e,(r,o)=>{r&&(n[o.join(".")]=r.value)},{stop:t}),n}var Xw=Eo;Eo.default=Eo,Eo.stable=Sf,Eo.stableStringify=Sf;var cs="[...]",Cf="[Circular]",$n=[],jn=[];function kf(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Eo(e,t,n,r){typeof r>"u"&&(r=kf()),Rl(e,"",0,[],void 0,0,r);var o;try{jn.length===0?o=JSON.stringify(e,t,n):o=JSON.stringify(e,wf(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;$n.length!==0;){var i=$n.pop();i.length===4?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return o}function Rr(e,t,n,r){var o=Object.getOwnPropertyDescriptor(r,n);o.get!==void 0?o.configurable?(Object.defineProperty(r,n,{value:e}),$n.push([r,n,t,o])):jn.push([t,n,e]):(r[n]=e,$n.push([r,n,t]))}function Rl(e,t,n,r,o,i,s){i+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;as.depthLimit){Rr(cs,e,t,o);return}if(typeof s.edgesLimit<"u"&&n+1>s.edgesLimit){Rr(cs,e,t,o);return}if(r.push(e),Array.isArray(e))for(a=0;at?1:0}function Sf(e,t,n,r){typeof r>"u"&&(r=kf());var o=Tl(e,"",0,[],void 0,0,r)||e,i;try{jn.length===0?i=JSON.stringify(o,t,n):i=JSON.stringify(o,wf(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;$n.length!==0;){var s=$n.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function Tl(e,t,n,r,o,i,s){i+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;as.depthLimit){Rr(cs,e,t,o);return}if(typeof s.edgesLimit<"u"&&n+1>s.edgesLimit){Rr(cs,e,t,o);return}if(r.push(e),Array.isArray(e))for(a=0;a0)for(var r=0;r{const t=Object.create(null);function n(...r){const o=r.map(i=>Qw(i)).join("|");return t[o]===void 0&&(t[o]=e(...r)),t[o]}return n},Ef=16,us="px",Nl="em",Oo="rem";function Of(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),n=new RegExp(`${us}|${Nl}|${Oo}`),r=e.match(new RegExp(`${t.source}(${n.source})`));return r==null?void 0:r[1]}function If(e=""){if(typeof e=="number")return`${e}px`;const t=Of(e);if(!t||t===us)return e;if(t===Nl||t===Oo)return`${parseFloat(e)*Ef}${us}`}function Pf(e=""){const t=Of(e);if(!t||t===Oo)return e;if(t===Nl)return`${parseFloat(e)}${Oo}`;if(t===us)return`${parseFloat(e)/Ef}${Oo}`}const Jw=e=>e.charAt(0).toUpperCase()+e.slice(1);function Zw(e){const t=eE(e),n=Object.fromEntries(t);function r(h){return n[h]}function o(h){return Tr(r(h))}function i(){const h=Object.keys(n),p=tE(h),f=h.flatMap(g=>{const m=r(g),b=[`${g}Down`,Tr({max:ds(m.min)})],x=[g,Tr({min:m.min})],k=[`${g}Only`,o(g)];return[x,k,b]}).filter(([,g])=>g!=="").concat(p.map(([g,m])=>{const b=r(g),x=r(m);return[`${g}To${Jw(m)}`,Tr({min:b.min,max:ds(x.min)})]}));return Object.fromEntries(f)}function s(){const h=i();return Object.fromEntries(Object.entries(h))}const a=s(),l=h=>a[h];function c(){return["base",...Object.keys(n)]}function u(h){return Tr({min:r(h).min})}function d(h){return Tr({max:ds(r(h).min)})}return{values:Object.values(n),only:o,keys:c,conditions:a,getCondition:l,up:u,down:d}}function ds(e){const t=parseFloat(If(e)??"")-.04;return Pf(`${t}px`)}function eE(e){return Object.entries(e).sort(([,n],[,r])=>parseInt(n,10){var a;let s=null;return o<=i.length-1&&(s=(a=i[o+1])==null?void 0:a[1]),s!=null&&(s=ds(s)),[n,{name:n,min:Pf(r),max:s}]})}function tE(e){const t=[];return e.forEach((n,r)=>{let o=r;o++;let i=e[o];for(;i;)t.push([n,i]),o++,i=e[o]}),t}function Tr({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const nE=(e,t)=>Object.fromEntries(Object.entries(e).map(([n,r])=>t(n,r))),rE=e=>{const{breakpoints:t,conditions:n={}}=e,r=nE(n,(u,d)=>[`_${u}`,d]),o=Object.assign({},r,t.conditions);function i(){return Object.keys(o)}function s(u){return i().includes(u)||/^@|&|&$/.test(u)||u.startsWith("_")}function a(u){return u.filter(d=>d!=="base").sort((d,h)=>{const p=s(d),f=s(h);return p&&!f?1:!p&&f?-1:0})}function l(u){return u.startsWith("@breakpoint")?t.getCondition(u.replace("@breakpoint ","")):u}function c(u){return Reflect.get(o,u)||u}return{keys:i,sort:a,has:s,resolve:c,breakpoints:t.keys(),expandAtRule:l}},Rf=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.| )+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.| )+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),oE=Rf("width"),iE=Rf("height"),Tf=e=>({isMin:Ff(e.minMax,e.maxMin,e.min),isMax:Ff(e.maxMin,e.minMax,e.max)}),{isMin:_l,isMax:Nf}=Tf(oE),{isMin:Al,isMax:_f}=Tf(iE),Af=/print/i,Vf=/^print$/i,sE=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,aE=/(\d)/,Io=Number.MAX_VALUE,lE={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function Lf(e){const t=sE.exec(e)||(_l(e)||Al(e)?aE.exec(e):null);if(!t)return Io;if(t[0]==="0")return 0;const n=parseFloat(t[1]),r=t[2];return n*(lE[r]||1)}function Ff(e,t,n){return r=>e.test(r)||!t.test(r)&&n.test(r)}function cE(e,t){const n=Af.test(e),r=Vf.test(e),o=Af.test(t),i=Vf.test(t);return n&&o?!r&&i?1:r&&!i?-1:e.localeCompare(t):n?1:o?-1:null}const uE=yt((e,t)=>{const n=cE(e,t);if(n!==null)return n;const r=_l(e)||Al(e),o=Nf(e)||_f(e),i=_l(t)||Al(t),s=Nf(t)||_f(t);if(r&&s)return-1;if(o&&i)return 1;const a=Lf(e),l=Lf(t);return a===Io&&l===Io?e.localeCompare(t):a===Io?1:l===Io?-1:a!==l?a>l?o?-1:1:o?1:-1:e.localeCompare(t)});function Df(e){return e.sort(([t],[n])=>uE(t,n))}function zf(e){const t=[],n=[],r={};for(const[s,a]of Object.entries(e))s.startsWith("@media")?t.push([s,a]):s.startsWith("@container")?n.push([s,a]):Ue(a)?r[s]=zf(a):r[s]=a;const o=Df(t),i=Df(n);return{...r,...Object.fromEntries(o),...Object.fromEntries(i)}}const Mf=/\s*!(important)?/i,dE=e=>Ot(e)?Mf.test(e):!1,hE=e=>Ot(e)?e.replace(Mf,"").trim():e;function $f(e){const{transform:t,conditions:n,normalize:r}=e,o=pE(e);return yt(function(...s){const a=o(...s),l=r(a),c=Object.create(null);return _t(l,(u,d)=>{const h=dE(u);if(u==null)return;const[p,...f]=n.sort(d).map(n.resolve);h&&(u=hE(u));let g=t(p,u)??Object.create(null);g=_t(g,m=>Ot(m)&&h?`${m} !important`:m,{getKey:m=>n.expandAtRule(m)}),fE(c,f.flat(),g)}),zf(c)})}function fE(e,t,n){let r=e;for(const o of t)o&&(r[o]||(r[o]=Object.create(null)),r=r[o]);Or(r,n)}function gE(...e){return e.filter(t=>Ue(t)&&Object.keys(oo(t)).length>0)}function pE(e){function t(n){const r=gE(...n);return r.length===1?r:r.map(o=>e.normalize(o))}return yt(function(...r){return Or({},...t(r))})}const jf=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function mE(e){const{css:t,conditions:n,normalize:r,layers:o}=e;function i(a={}){const{base:l,variants:c,defaultVariants:u,compoundVariants:d}=jf(a),h=$f({conditions:n,normalize:r,transform(x,k){var C;return(C=c[x])==null?void 0:C[k]}}),p=(x={})=>{const k=r({...u,...oo(x)});let C={...l};Or(C,h(k));const S=s(d,k);return o.wrap("recipes",t(C,S))},f=Object.keys(c),g=x=>{const k=ff(x,["recipe"]),[C,S]=lr(k,f);return f.includes("colorPalette")||(C.colorPalette=x.colorPalette||u.colorPalette),f.includes("orientation")&&(S.orientation=x.orientation),[C,S]},m=Object.fromEntries(Object.entries(c).map(([x,k])=>[x,Object.keys(k)]));return Object.assign(x=>t(p(x)),{className:a.className,__cva__:!0,variantMap:m,variantKeys:f,raw:p,config:a,splitVariantProps:g,merge(x){return i(vE(e)(this,x))}})}function s(a,l){let c={};return a.forEach(u=>{Object.entries(u).every(([h,p])=>h==="css"?!0:(Array.isArray(p)?p:[p]).some(g=>l[h]===g))&&(c=t(c,u.css))}),c}return i}function vE(e){const{css:t}=e;return function(r,o){const i=jf(o.config),s=su(r.variantKeys,Object.keys(o.variants)),a=t(r.base,i.base),l=Object.fromEntries(s.map(h=>[h,t(r.config.variants[h],i.variants[h])])),c=Or(r.config.defaultVariants,i.defaultVariants),u=[...r.compoundVariants,...i.compoundVariants];return{className:at(r.className,o.className),base:a,variants:l,defaultVariants:c,compoundVariants:u}}}const bE={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},Bf={reset:0,base:1,tokens:2,recipes:3};function yE(e){const t=e.layers??bE,r=Object.values(t).sort((o,i)=>Bf[o]-Bf[i]);return{names:r,atRule:`@layer ${r.join(", ")};`,wrap(o,i){return e.disableLayers?i:{[`@layer ${t[o]}`]:i}}}}function xE(e){const{utility:t,normalize:n}=e,{hasShorthand:r,resolveShorthand:o}=t;return function(i){return _t(i,n,{stop:s=>Array.isArray(s),getKey:r?o:void 0})}}function CE(e){const{preflight:t}=e;if(!t)return{};const{scope:n="",level:r="parent"}=Ue(t)?t:{};let o="";n&&r==="parent"?o=`${n} `:n&&r==="element"&&(o=`&${n}`);const i={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},s={[n||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if(r==="element"){const a=Object.entries(i).reduce((l,[c,u])=>(l[c]={[o]:u},l),{});Object.assign(s,a)}else o?s[o]=i:Object.assign(s,i);return s}function kE(e){const{conditions:t,isValidProperty:n}=e;return function(o){return _t(o,i=>i,{getKey:(i,s)=>Ue(s)&&!t.has(i)&&!n(i)?SE(i).map(a=>"&"+a).join(", "):i})}}function SE(e){const t=[];let n=0,r="",o=!1;for(let i=0;i{const t=o=>{var i;return{base:((i=e.base)==null?void 0:i[o])??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?EE(e.compoundVariants,o):[]}},r=(e.slots??[]).map(o=>[o,t(o)]);for(const[o,i]of Object.entries(e.variants??{}))for(const[s,a]of Object.entries(i))r.forEach(([l,c])=>{var u;(u=c.variants)[o]??(u[o]={}),c.variants[o][s]=a[l]??{}});return Object.fromEntries(r)},EE=(e,t)=>e.filter(n=>n.css[t]).map(n=>({...n,css:n.css[t]}));function OE(e){const{cva:t}=e;return function(r={}){const o=Object.entries(wE(r)).map(([d,h])=>[d,t(h)]);function i(d){const h=o.map(([p,f])=>[p,f(d)]);return Object.fromEntries(h)}const s=r.variants??{},a=Object.keys(s);function l(d){var g;const h=ff(d,["recipe"]),[p,f]=lr(h,a);return a.includes("colorPalette")||(p.colorPalette=d.colorPalette||((g=r.defaultVariants)==null?void 0:g.colorPalette)),a.includes("orientation")&&(f.orientation=d.orientation),[p,f]}const c=Object.fromEntries(Object.entries(s).map(([d,h])=>[d,Object.keys(h)]));let u={};return r.className&&(u=Object.fromEntries(r.slots.map(d=>[d,`${r.className}__${d}`]))),Object.assign(i,{variantMap:c,variantKeys:a,splitVariantProps:l,classNameMap:u})}}const IE=()=>e=>Array.from(new Set(e)),PE=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,RE=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},Wf=e=>(e+"").replace(PE,RE),Hf=(e,t)=>{let n="",r=0,o="char",i="",s="";const a=[];for(;r{let t=0;const n=["("];for(;t{n instanceof Map?t[r]=Object.fromEntries(n):t[r]=n}),t}const Gf=/({([^}]*)})/g,NE=/[{}]/g,_E=/\w+\.\w+/,qf=e=>{if(!Ot(e))return[];const t=e.match(Gf);return t?t.map(n=>n.replace(NE,"")).map(n=>n.trim()):[]},AE=e=>Gf.test(e);function Kf(e){var n,r,o;if(!((n=e.extensions)!=null&&n.references))return((o=(r=e.extensions)==null?void 0:r.cssVar)==null?void 0:o.ref)??e.value;const t=e.extensions.references??{};return e.value=Object.keys(t).reduce((i,s)=>{const a=t[s];if(a.extensions.conditions)return i;const l=Kf(a);return i.replace(`{${s}}`,l)},e.value),delete e.extensions.references,e.value}function Xf(e){return Ue(e)&&e.reference?e.reference:String(e)}const hs=(e,...t)=>t.map(Xf).join(` ${e} `).replace(/calc/g,""),Yf=(...e)=>`calc(${hs("+",...e)})`,Qf=(...e)=>`calc(${hs("-",...e)})`,Vl=(...e)=>`calc(${hs("*",...e)})`,Jf=(...e)=>`calc(${hs("/",...e)})`,Zf=e=>{const t=Xf(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Vl(t,-1)},Nr=Object.assign(e=>({add:(...t)=>Nr(Yf(e,...t)),subtract:(...t)=>Nr(Qf(e,...t)),multiply:(...t)=>Nr(Vl(e,...t)),divide:(...t)=>Nr(Jf(e,...t)),negate:()=>Nr(Zf(e)),toString:()=>e.toString()}),{add:Yf,subtract:Qf,multiply:Vl,divide:Jf,negate:Zf}),VE={enforce:"pre",transform(e){const{prefix:t,allTokens:n,formatCssVar:r,formatTokenName:o,registerToken:i}=e;n.filter(({extensions:a})=>a.category==="spacing").forEach(a=>{const l=a.path.slice(),c=r(l,t);if(Ot(a.value)&&a.value==="0rem")return;const u=structuredClone(a);Object.assign(u.extensions,{negative:!0,prop:`-${a.extensions.prop}`,originalPath:l}),u.value=Nr.negate(c.ref);const d=u.path[u.path.length-1];d!=null&&(u.path[u.path.length-1]=`-${d}`),u.path&&(u.name=o(u.path)),i(u)})}},LE=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),FE=[VE,{enforce:"post",transform(e){const{allTokens:t,registerToken:n,formatTokenName:r}=e,o=t.filter(({extensions:a})=>a.category==="colors"),i=new Map,s=new Map;o.forEach(a=>{const{colorPalette:l}=a.extensions;l&&(l.keys.forEach(c=>{i.set(r(c),c)}),l.roots.forEach(c=>{var h;const u=r(c),d=s.get(u)||[];if(d.push(a),s.set(u,d),a.extensions.default&&c.length===1){const p=(h=l.keys[0])==null?void 0:h.filter(Boolean);if(!p.length)return;const f=c.concat(p);i.set(r(f),[])}}))}),i.forEach(a=>{const l=["colors","colorPalette",...a].filter(Boolean),c=r(l),u=r(l.slice(1));n({name:c,value:c,originalValue:c,path:l,extensions:{condition:"base",originalPath:l,category:"colors",prop:u,virtual:!0}},"pre")})}},{enforce:"post",transform(e){e.allTokens.filter(n=>LE.has(n.extensions.category)&&!n.extensions.negative).forEach(n=>{Object.assign(n.extensions,{pixelValue:If(n.value)})})}},{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}}],DE=[{type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:n,formatCssVar:r}=t,{negative:o,originalPath:i}=e.extensions,s=o?i:e.path;return{cssVar:r(s.filter(Boolean),n)}}},{enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:n,formatCssVar:r}=t,o=qf(e.value);return o.length&&o.forEach(i=>{const s=r(i.split("."),n);e.value=e.value.replace(`{${s.ref}}`,s)}),e.value}},{type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match(e){return e.extensions.category==="colors"&&!e.extensions.virtual},transform(e,t){let n=e.path.slice();if(n.pop(),n.shift(),n.length===0){const a=[...e.path];a.shift(),n=a}if(n.length===0)return{};const r=n.reduce((a,l,c,u)=>{const d=u.slice(0,c+1);return a.push(d),a},[]),o=n[0],i=t.formatTokenName(n),s=e.path.slice(e.path.indexOf(o)+1).reduce((a,l,c,u)=>(a.push(u.slice(c)),a),[]);return s.length===0&&s.push([""]),{colorPalette:{value:i,roots:r,keys:s}}}}],eg=e=>Ue(e)&&Object.prototype.hasOwnProperty.call(e,"value");function zE(e){return e?{breakpoints:gf(e,t=>({value:t})),sizes:Object.fromEntries(Object.entries(e).map(([t,n])=>[`breakpoint-${t}`,{value:n}]))}:{breakpoints:{},sizes:{}}}function ME(e){const{prefix:t="",tokens:n={},semanticTokens:r={},breakpoints:o={}}=e,i=D=>D.join("."),s=(D,F)=>vf(D.join("-"),{prefix:F}),a=[],l=new Map,c=new Map,u=new Map,d=new Map,h=new Map,p=new Map,f=new Map,g=new Map,m=[];function b(D,F){a.push(D),l.set(D.name,D),F&&g.forEach(re=>{re.enforce===F&&H(re,D)})}const x=zE(o),k=oo({...n,breakpoints:x.breakpoints,sizes:{...n.sizes,...x.sizes}});function C(){_t(k,(D,F)=>{const re=F.includes("DEFAULT");F=tg(F);const he=F[0],Ee=i(F),De=Ot(D)?{value:D}:D,Kt={value:De.value,originalValue:De.value,name:Ee,path:F,extensions:{condition:"base",originalPath:F,category:he,prop:i(F.slice(1))}};re&&(Kt.extensions.default=!0),b(Kt)},{stop:eg}),_t(r,(D,F)=>{const re=F.includes("DEFAULT");F=ng(tg(F));const he=F[0],Ee=i(F),De=Ot(D.value)?{value:{base:D.value}}:D,Kt={value:De.value.base||"",originalValue:De.value.base||"",name:Ee,path:F,extensions:{originalPath:F,category:he,conditions:De.value,condition:"base",prop:i(F.slice(1))}};re&&(Kt.extensions.default=!0),b(Kt)},{stop:eg})}function S(D){return l.get(D)}function I(D){const{condition:F}=D.extensions;F&&(c.has(F)||c.set(F,new Set),c.get(F).add(D))}function _(D){const{category:F,prop:re}=D.extensions;F&&(f.has(F)||f.set(F,new Map),f.get(F).set(re,D))}function P(D){const{condition:F,negative:re,virtual:he,cssVar:Ee}=D.extensions;re||he||!F||!Ee||(u.has(F)||u.set(F,new Map),u.get(F).set(Ee.var,D.value))}function T(D){const{category:F,prop:re,cssVar:he,negative:Ee}=D.extensions;if(!F)return;p.has(F)||p.set(F,new Map);const De=Ee?D.extensions.conditions?D.originalValue:D.value:he.ref;p.get(F).set(re,De),h.set([F,re].join("."),De)}function N(D){const{colorPalette:F,virtual:re,default:he}=D.extensions;!F||re||F.roots.forEach(Ee=>{var H0;const De=i(Ee);d.has(De)||d.set(De,new Map);const Kt=jE([...D.path],[...Ee]),qs=i(Kt),Qr=S(qs);if(!Qr||!Qr.extensions.cssVar)return;const{var:_N}=Qr.extensions.cssVar;if(d.get(De).set(_N,D.extensions.cssVar.ref),he&&Ee.length===1){const AN=i(["colors","colorPalette"]),U0=S(AN);if(!U0)return;const VN=i(D.path),G0=S(VN);if(!G0)return;const q0=(H0=F.keys[0])==null?void 0:H0.filter(Boolean);if(!q0.length)return;const kc=i(Ee.concat(q0));d.has(kc)||d.set(kc,new Map),d.get(kc).set(U0.extensions.cssVar.var,G0.extensions.cssVar.ref)}})}let j={};function R(){a.forEach(D=>{I(D),_(D),P(D),T(D),N(D)}),j=Uf(p)}const L=(D,F)=>{var Qr;if(!D||typeof D!="string")return{invalid:!0,value:D};const[re,he]=D.split("/");if(!re||!he)return{invalid:!0,value:re};const Ee=F(re),De=(Qr=S(`opacity.${he}`))==null?void 0:Qr.value;if(!De&&isNaN(Number(he)))return{invalid:!0,value:re};const Kt=De?Number(De)*100+"%":`${he}%`,qs=Ee??re;return{invalid:!1,color:qs,value:`color-mix(in srgb, ${qs} ${Kt}, transparent)`}},Y=yt((D,F)=>h.get(D)??F),z=yt(D=>j[D]||null),V=yt(D=>Hf(D,F=>{if(!F)return;if(F.includes("/")){const he=L(F,Ee=>Y(Ee));if(he.invalid)throw new Error("Invalid color mix at "+F+": "+he.value);return he.value}const re=Y(F);return re||(_E.test(F)?Wf(F):F)})),B={prefix:t,allTokens:a,tokenMap:l,registerToken:b,getByName:S,formatTokenName:i,formatCssVar:s,flatMap:h,cssVarMap:u,categoryMap:f,colorPaletteMap:d,getVar:Y,getCategoryValues:z,expandReferenceInValue:V};function K(...D){D.forEach(F=>{g.set(F.name,F)})}function $(...D){m.push(...D)}function H(D,F){if(F.extensions.references||ma(D.match)&&!D.match(F))return;const he=(Ee=>D.transform(Ee,B))(F);switch(!0){case D.type==="extensions":Object.assign(F.extensions,he);break;case D.type==="value":F.value=he;break;default:F[D.type]=he;break}}function X(D){m.forEach(F=>{F.enforce===D&&F.transform(B)})}function de(D){g.forEach(F=>{F.enforce===D&&a.forEach(re=>{H(F,re)})})}function kn(){a.forEach(D=>{const F=$E(D);!F||F.length===0||F.forEach(re=>{b(re)})})}function Go(D){return qf(D).map(re=>S(re)).filter(Boolean)}function Yr(){a.forEach(D=>{if(!AE(D.value))return;const F=Go(D.value);D.extensions.references=F.reduce((re,he)=>(re[he.name]=he,re),{})})}function Cc(){a.forEach(D=>{Kf(D)})}function NN(){X("pre"),de("pre"),kn(),Yr(),Cc(),X("post"),de("post"),R()}return C(),K(...DE),$(...FE),NN(),B}function tg(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function ng(e){return e.filter(t=>t!=="base")}function $E(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,n=[];return _t(t,(r,o)=>{const i=ng(o);if(!i.length)return;const s=structuredClone(e);s.value=r,s.extensions.condition=i.join(":"),n.push(s)}),n}function jE(e,t){const n=e.findIndex((r,o)=>t.every((i,s)=>e[o+s]===i));return n===-1||(e.splice(n,t.length),e.splice(n,0,"colorPalette")),e}IE()(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]);function QN(e){return e}function BE(e){return Object.fromEntries(Object.entries(e).map(([t,n])=>[t,n]))}function WE(e){const t=BE(e.config),n=e.tokens,r=new Map,o=new Map;function i(P,T){t[P]=T,s(P,T)}const s=(P,T)=>{const N=g(T);N&&(o.set(P,N),d(P,T))},a=()=>{for(const[P,T]of Object.entries(t))T&&s(P,T)},l=()=>{for(const[P,T]of Object.entries(t)){const{shorthand:N}=T??{};if(!N)continue;(Array.isArray(N)?N:[N]).forEach(R=>r.set(R,P))}},c=()=>{const P=Uf(n.colorPaletteMap);i("colorPalette",{values:Object.keys(P),transform:yt(T=>P[T])})},u=new Map,d=(P,T)=>{if(!T)return;const N=g(T,R=>`type:Tokens["${R}"]`);if(typeof N=="object"&&N.type){u.set(P,new Set([`type:${N.type}`]));return}if(N){const R=new Set(Object.keys(N));u.set(P,R)}const j=u.get(P)??new Set;T.property&&u.set(P,j.add(`CssProperties["${T.property}"]`))},h=()=>{for(const[P,T]of Object.entries(t))T&&d(P,T)},p=(P,T)=>{const N=u.get(P)??new Set;u.set(P,new Set([...N,...T]))},f=()=>{const P=new Map;for(const[T,N]of u.entries()){if(N.size===0){P.set(T,["string"]);continue}const j=Array.from(N).map(R=>R.startsWith("CssProperties")?R:R.startsWith("type:")?R.replace("type:",""):JSON.stringify(R));P.set(T,j)}return P},g=(P,T)=>{const{values:N}=P,j=R=>{const L=T==null?void 0:T(R);return L?{[L]:L}:void 0};return Ot(N)?(j==null?void 0:j(N))??n.getCategoryValues(N)??{}:Array.isArray(N)?N.reduce((R,L)=>(R[L]=L,R),{}):ma(N)?N(T?j:n.getCategoryValues):N},m=yt((P,T)=>({[P]:P.startsWith("--")?n.getVar(T,T):T})),b=Object.assign(n.getVar,{raw:P=>n.getByName(P)}),x=yt((P,T)=>{var Y;const N=S(P);Ot(T)&&!T.includes("_EMO_")&&(T=n.expandReferenceInValue(T));const j=t[N];if(!j)return m(N,T);const R=(Y=o.get(N))==null?void 0:Y[T];if(!j.transform)return m(P,R??T);const L=z=>ww(z,b);return j.transform(R??T,{raw:T,token:b,utils:{colorMix:L}})});function k(){l(),c(),a(),h()}k();const C=r.size>0,S=yt(P=>r.get(P)??P);return{keys:()=>[...Array.from(r.keys()),...Object.keys(t)],hasShorthand:C,transform:x,shorthands:r,resolveShorthand:S,register:i,getTypes:f,addPropertyType:p}}const Ke={};function rg(...e){const t=pf(...e),{theme:n={},utilities:r={},globalCss:o={},cssVarsRoot:i=":where(:root, :host)",cssVarsPrefix:s="chakra",preflight:a}=t,l=yE(t),c=ME({breakpoints:n.breakpoints,tokens:n.tokens,semanticTokens:n.semanticTokens,prefix:s}),u=Zw(n.breakpoints??Ke),d=rE({conditions:t.conditions??Ke,breakpoints:u}),h=WE({config:r,tokens:c});function p(){const{textStyles:$,layerStyles:H,animationStyles:X}=n,de=oo({textStyle:$,layerStyle:H,animationStyle:X});for(const[kn,Go]of Object.entries(de)){const Yr=xf(Go??Ke,og);h.register(kn,{values:Object.keys(Yr),transform(Cc){return k(Yr[Cc])}})}}p(),h.addPropertyType("animationName",Object.keys(n.keyframes??Ke));const f=new Set(["css",...h.keys(),...d.keys()]),g=yt($=>f.has($)||Kw($)),m=$=>Array.isArray($)?$.reduce((H,X,de)=>{const kn=d.breakpoints[de];return X!=null&&(H[kn]=X),H},{}):$,b=xE({utility:h,normalize:m}),x=kE({conditions:d,isValidProperty:g}),k=$f({transform:h.transform,conditions:d,normalize:b}),C=mE({css:k,conditions:d,normalize:b,layers:l}),S=OE({cva:C});function I(){const $={};for(const[H,X]of c.cssVarMap.entries()){const de=Object.fromEntries(X);if(Object.keys(de).length===0)continue;const kn=H==="base"?i:d.resolve(H),Go=kn.startsWith("@"),Yr=k(x({[kn]:Go?{[i]:de}:de}));Or($,Yr)}return l.wrap("tokens",$)}function _(){const $=Object.fromEntries(Object.entries(n.keyframes??Ke).map(([X,de])=>[`@keyframes ${X}`,de])),H=Object.assign({},$,k(x(o)));return l.wrap("base",H)}function P($){return lr($,g)}function T(){const $=CE({preflight:a});return l.wrap("reset",$)}const N=HE(c),j=($,H)=>{var X;return((X=N.get($))==null?void 0:X.value)||H};j.var=($,H)=>{var X;return((X=N.get($))==null?void 0:X.variable)||H};function R($,H){var X;return((X=n.recipes)==null?void 0:X[$])??H}function L($,H){var X;return((X=n.slotRecipes)==null?void 0:X[$])??H}function Y($){return Object.hasOwnProperty.call(n.recipes??Ke,$)}function z($){return Object.hasOwnProperty.call(n.slotRecipes??Ke,$)}function V($){return Y($)||z($)}const B=[T(),_(),I()],K={layerStyles:Ll(n.layerStyles??Ke),textStyles:Ll(n.textStyles??Ke),animationStyles:Ll(n.animationStyles??Ke),tokens:ig(c,Object.keys(n.tokens??Ke),($,H)=>!$.extensions.conditions&&!H.includes("colorPalette")),semanticTokens:ig(c,Object.keys(n.semanticTokens??Ke),$=>!!$.extensions.conditions),keyframes:sg(n.keyframes??Ke),breakpoints:sg(n.breakpoints??Ke)};return{$$chakra:!0,_config:t,_global:B,breakpoints:u,tokens:c,conditions:d,utility:h,token:j,properties:f,layers:l,isValidProperty:g,splitCssProps:P,normalizeValue:m,getTokenCss:I,getGlobalCss:_,getPreflightCss:T,css:k,cva:C,sva:S,getRecipe:R,getSlotRecipe:L,hasRecipe:V,isRecipe:Y,isSlotRecipe:z,query:K}}function HE(e){const t=new Map;return e.allTokens.forEach(n=>{const{cssVar:r,virtual:o,conditions:i}=n.extensions,s=i||o?r.ref:n.value;t.set(n.name,{value:s,variable:r.ref})}),t}const og=e=>Ue(e)&&"value"in e,Ll=e=>({list(){return Object.keys(xf(e,og))},search(t){return this.list().filter(n=>n.includes(t))}}),ig=(e,t,n)=>({categoryKeys:t,list(r){var o;return Array.from(((o=e.categoryMap.get(r))==null?void 0:o.entries())??[]).reduce((i,[s,a])=>(n(a,s)&&i.push(s),i),[])},search(r,o){return this.list(r).filter(i=>i.includes(o))}}),sg=e=>({list(){return Object.keys(e)},search(t){return this.list().filter(n=>n.includes(t))}}),UE={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Fl="var(--chakra-empty,/*!*/ /*!*/)",GE=Pw({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":Fl,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,Fl])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,Fl])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.emphasized/80"}}),qE=Nw({"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}}),KE=Tw({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}),Dl=Se({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),XE=Se({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),Le=Se({className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border.emphasized","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),{variants:YE,defaultVariants:QE}=Dl,JE=Se({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:YE,defaultVariants:QE}),ag=Se({className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}}),ZE=Se({className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}}),eO=Se({className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),tO=Se({className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}}),ke=Se({className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}}),nO=Se({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:ke.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}}),rO=Se({className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}}),oO=Se({className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}}),iO=Se({className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}}),Fe=Se({className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border.emphasized",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),sO=Se({className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}}),aO=Se({className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}}),lO=Se({className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}}),cO=Se({className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}}),uO=Se({className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}}),dO={badge:Dl,button:XE,code:JE,container:ZE,heading:eO,input:ke,inputAddon:nO,kbd:rO,link:oO,mark:iO,separator:sO,skeleton:aO,skipNavLink:lO,spinner:cO,textarea:uO,icon:tO,checkmark:Le,radiomark:Fe,colorSwatch:ag},hO=Il.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.500}"}}}}),fO=Il.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),gO=Il.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}}),pO=Dd.extendWith("itemBody"),mO=G("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),vO=G("alert").parts("title","description","root","indicator","content"),bO=G("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),yO=G("blockquote").parts("root","icon","content","caption"),xO=G("card").parts("root","header","body","footer","title","description"),CO=G("checkbox-card",["root","control","label","description","addon","indicator","content"]),kO=G("data-list").parts("root","item","itemLabel","itemValue"),SO=al.extendWith("header","body","footer","backdrop"),wO=al.extendWith("header","body","footer","backdrop"),EO=wh.extendWith("textarea"),OO=G("empty-state",["root","content","indicator","title","description"]),IO=Eh.extendWith("requiredIndicator"),PO=Ih.extendWith("content"),RO=Ph.extendWith("itemContent","dropzoneContent","fileText"),TO=G("list").parts("root","item","indicator"),NO=Lh.extendWith("itemCommand"),_O=G("select").parts("root","field","indicator"),AO=Jh.extendWith("header","body","footer"),lg=xl.extendWith("itemAddon","itemIndicator"),VO=lg.extendWith("itemContent","itemDescription"),LO=ef.extendWith("itemIndicator"),FO=rf.extendWith("indicatorGroup"),DO=Hk.extendWith("indicatorGroup","empty"),zO=lf.extendWith("markerIndicator"),MO=G("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),$O=G("status").parts("root","indicator"),jO=G("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),BO=cf.extendWith("indicator"),WO=G("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),HO=G("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),UO=G("tabs").parts("root","trigger","list","content","contentGroup","indicator"),GO=G("tag").parts("root","label","closeTrigger","startElement","endElement"),qO=G("timeline").parts("root","item","content","separator","indicator","connector","title","description"),KO=ak.extendWith("channelText"),XO=G("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);Gd.extendWith("valueText");const YO=bS,QO=q({className:"chakra-accordion",slots:pO.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}}),JO=q({className:"chakra-action-bar",slots:mO.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}}),ZO=q({slots:vO.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}}),e2=q({slots:$d.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),t2=q({className:"chakra-blockquote",slots:yO.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}}),n2=q({className:"chakra-breadcrumb",slots:bO.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}}),r2=q({className:"chakra-card",slots:xO.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}}),o2=q({slots:ik.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:Le.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:(Em=(wm=Le.variants)==null?void 0:wm.size)==null?void 0:Em.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:(Im=(Om=Le.variants)==null?void 0:Om.size)==null?void 0:Im.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:(Rm=(Pm=Le.variants)==null?void 0:Pm.size)==null?void 0:Rm.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:(Nm=(Tm=Le.variants)==null?void 0:Tm.size)==null?void 0:Nm.lg}},variant:{outline:{control:(Am=(_m=Le.variants)==null?void 0:_m.variant)==null?void 0:Am.outline},solid:{control:(Lm=(Vm=Le.variants)==null?void 0:Vm.variant)==null?void 0:Lm.solid},subtle:{control:(Dm=(Fm=Le.variants)==null?void 0:Fm.variant)==null?void 0:Dm.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),i2=q({slots:CO.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:Le.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:(zm=Le.variants)==null?void 0:zm.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:(Mm=Le.variants)==null?void 0:Mm.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:($m=Le.variants)==null?void 0:$m.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:(jm=Le.variants)==null?void 0:jm.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:(Bm=Le.variants)==null?void 0:Bm.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:(Wm=Le.variants)==null?void 0:Wm.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:(Hm=Le.variants)==null?void 0:Hm.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),s2=q({slots:XO.keys(),className:"code-block",base:{root:{colorPalette:"gray",rounded:"var(--code-block-radius)",overflow:"hidden",bg:"bg",color:"fg",borderWidth:"1px","--code-block-max-height":"320px","--code-block-bg":"colors.bg","--code-block-fg":"colors.fg","--code-block-obscured-opacity":"0.5","--code-block-obscured-blur":"1px","--code-block-line-number-width":"sizes.3","--code-block-line-number-margin":"spacing.4","--code-block-highlight-bg":"{colors.teal.focusRing/20}","--code-block-highlight-border":"colors.teal.focusRing","--code-block-highlight-added-bg":"{colors.green.focusRing/20}","--code-block-highlight-added-border":"colors.green.focusRing","--code-block-highlight-removed-bg":"{colors.red.focusRing/20}","--code-block-highlight-removed-border":"colors.red.focusRing"},header:{display:"flex",alignItems:"center",gap:"2",position:"relative",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)",mb:"calc(var(--code-block-padding) / 2 * -1)"},title:{display:"inline-flex",alignItems:"center",gap:"1.5",flex:"1",color:"fg.muted"},control:{gap:"1.5",display:"inline-flex",alignItems:"center"},footer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)"},content:{position:"relative",colorScheme:"dark",overflow:"hidden",borderBottomRadius:"var(--code-block-radius)",maxHeight:"var(--code-block-max-height)","& ::selection":{bg:"blue.500/40"},_expanded:{maxHeight:"unset"}},overlay:{"--bg":"{colors.black/50}",display:"flex",alignItems:"flex-end",justifyContent:"center",padding:"4",bgImage:"linear-gradient(0deg,var(--bg) 25%,transparent 100%)",color:"white",minH:"5rem",pos:"absolute",bottom:"0",insetInline:"0",zIndex:"1",fontWeight:"medium",_expanded:{display:"none"}},code:{fontFamily:"mono",lineHeight:"tall",whiteSpace:"pre",counterReset:"line 0"},codeText:{px:"var(--code-block-padding)",py:"var(--code-block-padding)",position:"relative",display:"block",width:"100%","&[data-has-focused]":{"& [data-line]:not([data-focused])":{transitionProperty:"opacity, filter",transitionDuration:"moderate",transitionTimingFunction:"ease-in-out",opacity:"var(--code-block-obscured-opacity)",filter:"blur(var(--code-block-obscured-blur))"},"&:hover":{"--code-block-obscured-opacity":"1","--code-block-obscured-blur":"0px"}},"&[data-has-line-numbers][data-plaintext]":{paddingInlineStart:"calc(var(--code-block-line-number-width) + var(--code-block-line-number-margin) + var(--code-block-padding))"},"& [data-line]":{position:"relative","--highlight-bg":"var(--code-block-highlight-bg)","--highlight-border":"var(--code-block-highlight-border)","&[data-highlight], &[data-diff]":{display:"inline-block",width:"full","&:after":{content:"''",display:"block",position:"absolute",insetStart:"calc(var(--code-block-padding) * -1)",insetEnd:"0px",width:"calc(100% + var(--code-block-padding) * 2)",height:"100%",bg:"var(--highlight-bg)",borderStartWidth:"2px",borderStartColor:"var(--highlight-border)"}},"&[data-diff='added']":{"--highlight-bg":"var(--code-block-highlight-added-bg)","--highlight-border":"var(--code-block-highlight-added-border)"},"&[data-diff='removed']":{"--highlight-bg":"var(--code-block-highlight-removed-bg)","--highlight-border":"var(--code-block-highlight-removed-border)"}},"&[data-word-wrap]":{"&[data-plaintext], & [data-line]":{whiteSpace:"pre-wrap",wordBreak:"break-all"}},"&[data-has-line-numbers]":{"--content":"counter(line)","& [data-line]:before":{content:"var(--content)",counterIncrement:"line",width:"var(--code-block-line-number-width)",marginRight:"var(--code-block-line-number-margin)",display:"inline-block",textAlign:"end",userSelect:"none",opacity:.4},"& [data-diff='added']:before":{content:"'+'"},"& [data-diff='removed']:before":{content:"'-'"}}}},variants:{size:{sm:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.md","--code-block-header-height":"sizes.8"},title:{textStyle:"xs"},code:{fontSize:"xs"}},md:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.lg","--code-block-header-height":"sizes.10"},title:{textStyle:"xs"},code:{fontSize:"sm"}},lg:{root:{"--code-block-padding":"spacing.5","--code-block-radius":"radii.xl","--code-block-header-height":"sizes.12"},title:{textStyle:"sm"},code:{fontSize:"sm"}}}},defaultVariants:{size:"md"}}),a2=q({slots:Xu.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}),l2=q({className:"colorPicker",slots:KO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...ag.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...ke.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:(Gm=(Um=ke.variants)==null?void 0:Um.size)==null?void 0:Gm["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:(Km=(qm=ke.variants)==null?void 0:qm.size)==null?void 0:Km.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:(Ym=(Xm=ke.variants)==null?void 0:Xm.size)==null?void 0:Ym.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:(Jm=(Qm=ke.variants)==null?void 0:Qm.size)==null?void 0:Jm.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:(e0=(Zm=ke.variants)==null?void 0:Zm.size)==null?void 0:e0.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:(n0=(t0=ke.variants)==null?void 0:t0.size)==null?void 0:n0.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:(o0=(r0=ke.variants)==null?void 0:r0.size)==null?void 0:o0["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:(s0=(i0=ke.variants)==null?void 0:i0.variant)==null?void 0:s0.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:(l0=(a0=ke.variants)==null?void 0:a0.variant)==null?void 0:l0.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),c2=q({className:"chakra-combobox",slots:DO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",px:"var(--combobox-input-padding-x)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},control:{pos:"relative"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}}),u2=q({slots:kO.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}}),d2=q({slots:SO.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100dvw",h:"100dvh",zIndex:"var(--z-index)",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100dvw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100dvw",minH:"100dvh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),h2=q({slots:wO.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-left-full, fade-out"}}}},top:{positioner:{justifyContent:"stretch",alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{justifyContent:"stretch",alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}}),cg=Ir({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),f2=q({slots:EO.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...cg,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...cg,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}}),g2=q({slots:OO.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}}),p2=q({className:"chakra-field",slots:IO.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}}),m2=q({className:"fieldset",slots:PO.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),v2=q({className:"chakra-file-upload",slots:RO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}}),b2=q({className:"chakra-hover-card",slots:Rh.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),y2=q({className:"chakra-list",slots:TO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),x2=q({className:"chakra-listbox",slots:YO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},content:{display:"flex",maxH:"96",p:"1",gap:"1",textStyle:"sm",outline:"none",scrollPadding:"1",_horizontal:{flexDirection:"row",overflowX:"auto"},_vertical:{flexDirection:"column",overflowY:"auto"},"--listbox-item-padding-x":"spacing.2","--listbox-item-padding-y":"spacing.1.5"},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"pointer",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)",_highlighted:{outline:"2px solid",outlineColor:"border.emphasized"},_disabled:{pointerEvents:"none",opacity:"0.5"}},empty:{py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{mt:"1.5",_first:{mt:"0"}},itemGroupLabel:{py:"1.5",px:"2",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"4"}}},variants:{variant:{subtle:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_hover:{bg:"bg.emphasized/60"},_selected:{bg:"bg.muted"}}},solid:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_selected:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}},plain:{}}},defaultVariants:{variant:"subtle"}}),C2=q({className:"chakra-menu",slots:NO.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1",scrollPadding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5",scrollPadding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}}),fs=q({className:"chakra-select",slots:FO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}}),k2=q({className:"chakra-native-select",slots:_O.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error","--input-height":"var(--select-field-height)",height:"var(--select-field-height)",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:(c0=fs.variants)==null?void 0:c0.variant.outline.trigger},subtle:{field:(u0=fs.variants)==null?void 0:u0.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{root:{"--select-field-height":"sizes.8"},field:{textStyle:"xs",ps:"2",pe:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{root:{"--select-field-height":"sizes.9"},field:{textStyle:"sm",ps:"2.5",pe:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{root:{"--select-field-height":"sizes.10"},field:{textStyle:"sm",ps:"3",pe:"8"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{root:{"--select-field-height":"sizes.11"},field:{textStyle:"md",ps:"4",pe:"8"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{root:{"--select-field-height":"sizes.12"},field:{textStyle:"md",ps:"4.5",pe:"10"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:fs.defaultVariants});function zl(e,t){const n={};for(const r in e){const o=t(r,e[r]);n[o[0]]=o[1]}return n}const ug=Ir({display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}}),S2=q({className:"chakra-number-input",slots:Gh.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...ke.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...ug,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...ug,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:ke.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:ke.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:ke.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:ke.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:zl(ke.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:dg,defaultVariants:w2}=ke,E2=q({className:"chakra-pin-input",slots:Qh.keys(),base:{input:{...ke.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:zl(dg.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:zl(dg.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:w2}),O2=q({className:"chakra-popover",slots:AO.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}}),I2=q({slots:yl.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}}),P2=q({className:"chakra-progress-circle",slots:yl.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dashoffset, stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}}),R2=q({slots:Zh.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}}),T2=q({className:"chakra-radio-card",slots:VO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:Fe.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:(d0=Fe.variants)==null?void 0:d0.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:(h0=Fe.variants)==null?void 0:h0.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:(f0=Fe.variants)==null?void 0:f0.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:(g0=Fe.variants)==null?void 0:g0.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:(p0=Fe.variants)==null?void 0:p0.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:(m0=Fe.variants)==null?void 0:m0.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:(v0=Fe.variants)==null?void 0:v0.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),N2=q({className:"chakra-radio-group",slots:lg.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:Fe.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:(y0=(b0=Fe.variants)==null?void 0:b0.variant)==null?void 0:y0.outline},subtle:{itemControl:(C0=(x0=Fe.variants)==null?void 0:x0.variant)==null?void 0:C0.subtle},solid:{itemControl:(S0=(k0=Fe.variants)==null?void 0:k0.variant)==null?void 0:S0.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:(E0=(w0=Fe.variants)==null?void 0:w0.size)==null?void 0:E0.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:(I0=(O0=Fe.variants)==null?void 0:O0.size)==null?void 0:I0.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:(R0=(P0=Fe.variants)==null?void 0:P0.size)==null?void 0:R0.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:(N0=(T0=Fe.variants)==null?void 0:T0.size)==null?void 0:N0.lg}}},defaultVariants:{size:"md",variant:"solid"}}),_2=q({className:"chakra-rating-group",slots:LO.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}}),A2=q({className:"chakra-scroll-area",slots:tf.keys(),base:{root:{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative",overflow:"hidden","--scrollbar-margin":"2px","--scrollbar-click-area":"calc(var(--scrollbar-size) + calc(var(--scrollbar-margin) * 2))"},viewport:{display:"flex",flexDirection:"column",height:"100%",width:"100%",borderRadius:"inherit",WebkitOverflowScrolling:"touch",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},content:{minWidth:"100%"},scrollbar:{display:"flex",userSelect:"none",touchAction:"none",borderRadius:"full",colorPalette:"gray",transition:"opacity 150ms 300ms",position:"relative",margin:"var(--scrollbar-margin)","&:not([data-overflow-x], [data-overflow-y])":{display:"none"},bg:"{colors.colorPalette.solid/10}","--thumb-bg":"{colors.colorPalette.solid/25}","&:is(:hover, :active)":{"--thumb-bg":"{colors.colorPalette.solid/50}"},_before:{content:'""',position:"absolute"},_vertical:{width:"var(--scrollbar-size)",flexDirection:"column","&::before":{width:"var(--scrollbar-click-area)",height:"100%",insetInlineStart:"calc(var(--scrollbar-margin) * -1)"}},_horizontal:{height:"var(--scrollbar-size)",flexDirection:"row","&::before":{height:"var(--scrollbar-click-area)",width:"100%",top:"calc(var(--scrollbar-margin) * -1)"}}},thumb:{borderRadius:"inherit",bg:"var(--thumb-bg)",transition:"backgrounds",_vertical:{width:"full"},_horizontal:{height:"full"}},corner:{bg:"bg.muted",margin:"var(--scrollbar-margin)",opacity:0,transition:"opacity 150ms 300ms","&[data-hover]":{transitionDelay:"0ms",opacity:1}}},variants:{variant:{hover:{scrollbar:{opacity:"0","&[data-hover], &[data-scrolling]":{opacity:"1",transitionDuration:"faster",transitionDelay:"0ms"}}},always:{scrollbar:{opacity:"1"}}},size:{xs:{root:{"--scrollbar-size":"sizes.1"}},sm:{root:{"--scrollbar-size":"sizes.1.5"}},md:{root:{"--scrollbar-size":"sizes.2"}},lg:{root:{"--scrollbar-size":"sizes.3"}}}},defaultVariants:{size:"md",variant:"hover"}}),V2=q({className:"chakra-segment-group",slots:nf.keys(),base:{root:{"--segment-radius":"radii.l2",borderRadius:"l2",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"sm",pos:"absolute",bg:{_light:"bg",_dark:"bg.emphasized"},width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}}),L2=q({className:"chakra-slider",slots:zO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}}),F2=q({className:"chakra-stat",slots:MO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}}),D2=q({className:"chakra-status",slots:$O.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),z2=q({className:"chakra-steps",slots:jO.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}}),M2=q({slots:BO.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}}),$2=q({className:"chakra-table",slots:WO.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),j2=q({slots:UO.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-indicator-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-indicator-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}}),dt=(_0=Dl.variants)==null?void 0:_0.variant,B2=q({slots:GO.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:dt==null?void 0:dt.subtle},solid:{root:dt==null?void 0:dt.solid},outline:{root:dt==null?void 0:dt.outline},surface:{root:dt==null?void 0:dt.surface}}},defaultVariants:{size:"md",variant:"surface"}}),W2=q({slots:qO.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"& :where(.chakra-timeline__separator)":{display:"none"}}},separator:{position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"6",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid"}}),H2=q({slots:HO.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}}),U2=q({slots:uf.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),hg=Ir({display:"flex",alignItems:"center",gap:"var(--tree-item-gap)",rounded:"l2",userSelect:"none",position:"relative","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-icon-offset":"calc(var(--tree-icon-size) * var(--tree-depth) * 0.5)","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset) + var(--tree-icon-offset))",ps:"var(--tree-offset)",pe:"var(--tree-padding-inline)",py:"var(--tree-padding-block)",focusVisibleRing:"inside",focusRingColor:"border.emphasized",focusRingWidth:"2px","&:hover, &:focus-visible":{bg:"bg.muted"},_disabled:{layerStyle:"disabled"}}),fg=Ir({flex:"1"}),gg=Ir({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),pg=Ir({_selected:{layerStyle:"fill.solid"}}),G2=q({slots:_h.keys(),className:"chakra-tree-view",base:{root:{width:"full",display:"flex",flexDirection:"column",gap:"2"},tree:{display:"flex",flexDirection:"column","--tree-item-gap":"spacing.2",_icon:{boxSize:"var(--tree-icon-size)"}},label:{fontWeight:"medium",textStyle:"sm"},branch:{position:"relative"},branchContent:{position:"relative"},branchIndentGuide:{height:"100%",width:"1px",bg:"border",position:"absolute","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset))","--tree-icon-offset":"calc(var(--tree-icon-size) * 0.5 * var(--depth))",insetInlineStart:"calc(var(--tree-offset) + var(--tree-icon-offset))",zIndex:"1"},branchIndicator:{color:"fg.muted",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(90deg)"}},branchTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center"},branchControl:hg,item:hg,itemText:fg,branchText:fg,nodeCheckbox:{display:"inline-flex"}},variants:{size:{md:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1.5","--tree-icon-size":"spacing.4"}},sm:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}},xs:{tree:{textStyle:"xs","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.2","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}}},variant:{subtle:{branchControl:gg,item:gg},solid:{branchControl:pg,item:pg}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),q2={accordion:QO,actionBar:JO,alert:ZO,avatar:e2,blockquote:t2,breadcrumb:n2,card:r2,checkbox:o2,checkboxCard:i2,codeBlock:s2,collapsible:a2,dataList:u2,dialog:d2,drawer:h2,editable:f2,emptyState:g2,field:p2,fieldset:m2,fileUpload:v2,hoverCard:b2,list:y2,listbox:x2,menu:C2,nativeSelect:k2,numberInput:S2,pinInput:E2,popover:O2,progress:I2,progressCircle:P2,radioCard:T2,radioGroup:N2,ratingGroup:_2,scrollArea:A2,segmentGroup:V2,select:fs,combobox:c2,slider:L2,stat:F2,steps:z2,switch:M2,table:$2,tabs:j2,tag:B2,toast:H2,tooltip:U2,status:D2,timeline:W2,colorPicker:l2,qrCode:R2,treeView:G2},K2=Rw({"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}}),X2=Ce.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),Y2=Ce.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),Q2=Ce.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),J2=Ce.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),Z2=Ce.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),eI=Ce.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),tI=Ce.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),nI=Ce.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),rI=Ce.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),oI=Ce.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),mg='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',iI=Ce.fonts({heading:{value:`Inter, ${mg}`},body:{value:`Inter, ${mg}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),sI=Iw({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"0"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"0"}},"expand-width":{from:{width:"0"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"0"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}}),aI=Ce.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),lI=Ce.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),cI=Ce.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),vg=Ce.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),uI=Ce.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),dI=Ce.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),hI=Ce.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),fI=Ce.sizes({...uI,...vg,...hI,...dI}),gI=Ce.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:2147483647}}),pI=Pl({preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:GE,theme:{breakpoints:UE,keyframes:sI,tokens:{aspectRatios:Y2,animations:X2,blurs:Q2,borders:J2,colors:Z2,durations:tI,easings:nI,fonts:iI,fontSizes:rI,fontWeights:oI,letterSpacings:aI,lineHeights:lI,radii:cI,spacing:vg,sizes:fI,zIndex:gI,cursor:eI},semanticTokens:{colors:hO,shadows:gO,radii:fO},recipes:dO,slotRecipes:q2,textStyles:K2,layerStyles:qE,animationStyles:KE}}),bg=pf(Mw,pI);rg(bg);function mI(e){const{key:t,recipe:n}=e,r=fi();return w.useMemo(()=>{const o=n||(t!=null?r.getSlotRecipe(t):{});return r.sva(structuredClone(o))},[t,n,r])}const vI=e=>e.charAt(0).toUpperCase()+e.slice(1),Ml=e=>{const{key:t,recipe:n}=e,r=vI(t||n.className||"Component"),[o,i]=ar({name:`${r}StylesContext`,errorMessage:`use${r}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `}),[s,a]=ar({name:`${r}ClassNameContext`,errorMessage:`use${r}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `,strict:!1}),[l,c]=ar({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`,defaultValue:{}});function u(f){const{unstyled:g,...m}=f,b=mI({key:t,recipe:m.recipe||n}),[x,k]=w.useMemo(()=>b.splitVariantProps(m),[m,b]);return{styles:w.useMemo(()=>g?Sb:b(x),[g,x,b]),classNames:b.classNameMap,props:k}}function d(f,g={}){const{defaultProps:m}=g,b=x=>{const k=c(),C=w.useMemo(()=>ro(m,k,x),[k,x]),{styles:S,classNames:I,props:_}=u(C);return v.jsx(o,{value:S,children:v.jsx(s,{value:I,children:v.jsx(f,{..._})})})};return b.displayName=f.displayName||f.name,b}return{StylesProvider:o,ClassNamesProvider:s,PropsProvider:l,usePropsContext:c,useRecipeResult:u,withProvider:(f,g,m)=>{const{defaultProps:b,...x}=m??{},k=Ie(f,{},x),C=w.forwardRef((S,I)=>{var Y;const _=c(),P=w.useMemo(()=>ro(b??{},_,S),[_,S]),{styles:T,props:N,classNames:j}=u(P),R=j[g],L=v.jsx(o,{value:T,children:v.jsx(s,{value:j,children:v.jsx(k,{ref:I,...N,css:[T[g],P.css],className:at(P.className,R)})})});return((Y=m==null?void 0:m.wrapElement)==null?void 0:Y.call(m,L,P))??L});return C.displayName=f.displayName||f.name,C},withContext:(f,g,m)=>{const b=Ie(f,{},m),x=w.forwardRef((k,C)=>{const{unstyled:S,...I}=k,_=i(),P=a(),T=P==null?void 0:P[g];return v.jsx(b,{...I,css:[!S&&g?_[g]:void 0,k.css],ref:C,className:at(k.className,T)})});return x.displayName=f.displayName||f.name,x},withRootProvider:d,useStyles:i,useClassNames:a}},yg=Ie("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});yg.displayName="AbsoluteCenter";const bI=e=>v.jsx(Ie.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:v.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z"})}),xg=e=>v.jsx(Ie.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:v.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"})}),Cg=e=>v.jsx(Ie.svg,{viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",...e,children:v.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"})}),yI=e=>v.jsx(Ie.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"})}),[xI,CI]=ar({name:"AlertStatusContext",hookName:"useAlertStatusContext",providerName:""}),{withProvider:kI,withContext:$l,useStyles:SI}=Ml({key:"alert"}),wI=kI("div","root",{forwardAsChild:!0,wrapElement(e,t){return v.jsx(xI,{value:{status:t.status||"info"},children:e})}}),kg=$l("div","title"),EI=$l("div","description"),OI=$l("div","content"),II={info:Cg,warning:xg,success:bI,error:xg,neutral:Cg},PI=w.forwardRef(function(t,n){const r=CI(),o=SI(),i=typeof r.status=="string"?II[r.status]:w.Fragment,{children:s=v.jsx(i,{}),...a}=t;return v.jsx(Ie.span,{ref:n,...a,css:[o.indicator,t.css],children:s})}),RI=e=>e?"":void 0,{withContext:TI}=cr({key:"badge"}),Sg=TI("span"),{withContext:NI}=cr({key:"spinner"}),_I=NI("span"),AI=O.forwardRef(function(t,n){const{spinner:r=v.jsx(_I,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:o="start",children:i,text:s,visible:a=!0,...l}=t;return a?s?v.jsxs(Li,{ref:n,display:"contents",...l,children:[o==="start"&&r,s,o==="end"&&r]}):r?v.jsxs(Li,{ref:n,display:"contents",...l,children:[v.jsx(yg,{display:"inline-flex",children:r}),v.jsx(Li,{visibility:"hidden",display:"contents",children:i})]}):v.jsx(Li,{ref:n,display:"contents",...l,children:i}):i}),{useRecipeResult:VI,usePropsContext:LI}=cr({key:"button"}),jl=w.forwardRef(function(t,n){const r=LI(),o=w.useMemo(()=>ro(r,t),[r,t]),i=VI(o),{loading:s,loadingText:a,children:l,spinner:c,spinnerPlacement:u,...d}=i.props;return v.jsx(Ie.button,{type:"button",ref:n,...d,"data-loading":RI(s),disabled:s||d.disabled,className:at(i.className,o.className),css:[i.styles,o.css],children:!o.asChild&&s?v.jsx(AI,{spinner:c,text:a,spinnerPlacement:u,children:l}):l})}),gs=w.forwardRef(function(t,n){return v.jsx(jl,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:n,...t})}),FI=O.forwardRef(function(t,n){return v.jsx(gs,{variant:"ghost","aria-label":"Close",ref:n,...t,children:t.children??v.jsx(yI,{})})}),wg=Ie("div",{base:{display:"flex",alignItems:"center",justifyContent:"center"},variants:{inline:{true:{display:"inline-flex"}}}});wg.displayName="Center";function DI(e){const{gap:t,direction:n}=e,r={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":gf(n,o=>r[o])}}function zI(e){return w.Children.toArray(e).filter(t=>w.isValidElement(t))}const Eg=w.forwardRef(function(t,n){const{direction:r="column",align:o,justify:i,gap:s="0.5rem",wrap:a,children:l,separator:c,className:u,...d}=t,h=w.useMemo(()=>DI({gap:s,direction:r}),[s,r]),p=w.useMemo(()=>w.isValidElement(c)?zI(l).map((f,g,m)=>{const b=typeof f.key<"u"?f.key:g,x=c,k=w.cloneElement(x,{css:[h,x.props.css]});return v.jsxs(w.Fragment,{children:[f,g===m.length-1?null:k]},b)}):l,[l,c,h]);return v.jsx(Ie.div,{ref:n,display:"flex",alignItems:o,justifyContent:i,flexDirection:r,flexWrap:a,gap:c?void 0:s,className:at("chakra-stack",u),...d,children:p})}),{withRootProvider:Og,withContext:At}=Ml({key:"dialog"});Og(uS,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const MI=Og(cS,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});At(Sh,"trigger",{forwardAsChild:!0});const $I=At(ph,"positioner",{forwardAsChild:!0}),jI=At(fh,"content",{forwardAsChild:!0});At(gh,"description",{forwardAsChild:!0});const BI=At(kh,"title",{forwardAsChild:!0}),WI=At(hh,"closeTrigger",{forwardAsChild:!0}),HI=w.forwardRef(function(t,n){const r=on();return v.jsx(Ie.button,{...t,ref:n,onClick:()=>r.setOpen(!1)})}),UI=At(dh,"backdrop",{forwardAsChild:!0}),GI=At("div","body"),qI=At("div","footer"),KI=At("div","header"),Bl=w.forwardRef(function(t,n){const{direction:r,align:o,justify:i,wrap:s,basis:a,grow:l,shrink:c,inline:u,...d}=t;return v.jsx(Ie.div,{ref:n,...d,css:{display:u?"inline-flex":"flex",flexDirection:r,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:a,flexGrow:l,flexShrink:c,...t.css}})}),{withContext:XI}=cr({key:"link"}),ps=XI("a"),YI=w.forwardRef(function(t,n){return v.jsx(Eg,{align:"center",...t,direction:"row",ref:n})}),QI=w.forwardRef(function(t,n){return v.jsx(Eg,{align:"center",...t,direction:"column",ref:n})}),{StylesProvider:JI,ClassNamesProvider:ZI,useRecipeResult:eP,withContext:Wt}=Ml({key:"table"}),Ig=w.forwardRef(function({native:t,...n},r){const{styles:o,props:i,classNames:s}=eP(n),a=w.useMemo(()=>t?{...o.root,"& thead":o.header,"& tbody":o.body,"& tfoot":o.footer,"& thead th":o.columnHeader,"& tr":o.row,"& td":o.cell,"& caption":o.caption}:o.root,[o,t]);return v.jsx(ZI,{value:s,children:v.jsx(JI,{value:o,children:v.jsx(Ie.table,{ref:r,...i,css:[a,n.css],className:at(s==null?void 0:s.root,n.className)})})})}),ms=Wt("tr","row");Ie("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}});const Pg=Wt("thead","header");Wt("tfoot","footer");const Ne=Wt("th","columnHeader"),_e=Wt("td","cell");Wt("caption","caption",{defaultProps:{captionSide:"bottom"}});const Rg=Wt("tbody","body");Wt("colgroup"),Wt("col");const{withContext:tP}=cr({key:"textarea"}),nP=tP(Oh);var _r=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},rP={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},oP=(A0=class{constructor(){W(this,hn,rP);W(this,xc,!1)}setTimeoutProvider(e){M(this,hn,e)}setTimeout(e,t){return y(this,hn).setTimeout(e,t)}clearTimeout(e){y(this,hn).clearTimeout(e)}setInterval(e,t){return y(this,hn).setInterval(e,t)}clearInterval(e){y(this,hn).clearInterval(e)}},hn=new WeakMap,xc=new WeakMap,A0),Bn=new oP;function iP(e){setTimeout(e,0)}var Wn=typeof window>"u"||"Deno"in globalThis;function je(){}function sP(e,t){return typeof e=="function"?e(t):e}function Wl(e){return typeof e=="number"&&e>=0&&e!==1/0}function Tg(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ln(e,t){return typeof e=="function"?e(t):e}function ht(e,t){return typeof e=="function"?e(t):e}function Ng(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Hl(s,t.options))return!1}else if(!Po(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function _g(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Hn(t.options.mutationKey)!==Hn(i))return!1}else if(!Po(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Hl(e,t){return((t==null?void 0:t.queryKeyHashFn)||Hn)(e)}function Hn(e){return JSON.stringify(e,(t,n)=>Ul(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Po(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Po(e[n],t[n])):!1}var aP=Object.prototype.hasOwnProperty;function Ag(e,t){if(e===t)return e;const n=Vg(e)&&Vg(t);if(!n&&!(Ul(e)&&Ul(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),s=i.length,a=n?new Array(s):{};let l=0;for(let c=0;c{Bn.setTimeout(t,e)})}function Gl(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Ag(e,t):t}function cP(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function uP(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ql=Symbol();function Fg(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===ql?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Dg(e,t){return typeof e=="function"?e(...t):!!e}var dP=(V0=class extends _r{constructor(){super();W(this,Xn);W(this,fn);W(this,zr);M(this,zr,t=>{if(!Wn&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){y(this,fn)||this.setEventListener(y(this,zr))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,fn))==null||t.call(this),M(this,fn,void 0))}setEventListener(t){var n;M(this,zr,t),(n=y(this,fn))==null||n.call(this),M(this,fn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){y(this,Xn)!==t&&(M(this,Xn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof y(this,Xn)=="boolean"?y(this,Xn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Xn=new WeakMap,fn=new WeakMap,zr=new WeakMap,V0),Kl=new dP;function Xl(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var hP=iP;function fP(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=hP;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var we=fP(),gP=(L0=class extends _r{constructor(){super();W(this,Mr,!0);W(this,gn);W(this,$r);M(this,$r,t=>{if(!Wn&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){y(this,gn)||this.setEventListener(y(this,$r))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,gn))==null||t.call(this),M(this,gn,void 0))}setEventListener(t){var n;M(this,$r,t),(n=y(this,gn))==null||n.call(this),M(this,gn,t(this.setOnline.bind(this)))}setOnline(t){y(this,Mr)!==t&&(M(this,Mr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return y(this,Mr)}},Mr=new WeakMap,gn=new WeakMap,$r=new WeakMap,L0),bs=new gP;function pP(e){return Math.min(1e3*2**e,3e4)}function zg(e){return(e??"online")==="online"?bs.isOnline():!0}var Yl=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Mg(e){let t=!1,n=0,r;const o=Xl(),i=()=>o.status!=="pending",s=g=>{var m;if(!i()){const b=new Yl(g);h(b),(m=e.onCancel)==null||m.call(e,b)}},a=()=>{t=!0},l=()=>{t=!1},c=()=>Kl.isFocused()&&(e.networkMode==="always"||bs.isOnline())&&e.canRun(),u=()=>zg(e.networkMode)&&e.canRun(),d=g=>{i()||(r==null||r(),o.resolve(g))},h=g=>{i()||(r==null||r(),o.reject(g))},p=()=>new Promise(g=>{var m;r=b=>{(i()||c())&&g(b)},(m=e.onPause)==null||m.call(e)}).then(()=>{var g;r=void 0,i()||(g=e.onContinue)==null||g.call(e)}),f=()=>{if(i())return;let g;const m=n===0?e.initialPromise:void 0;try{g=m??e.fn()}catch(b){g=Promise.reject(b)}Promise.resolve(g).then(d).catch(b=>{var I;if(i())return;const x=e.retry??(Wn?0:3),k=e.retryDelay??pP,C=typeof k=="function"?k(n,b):k,S=x===!0||typeof x=="number"&&nc()?void 0:p()).then(()=>{t?h(b):f()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r==null||r(),o),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?f():p().then(f),o)}}var $g=(F0=class{constructor(){W(this,Yn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Wl(this.gcTime)&&M(this,Yn,Bn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Wn?1/0:5*60*1e3))}clearGcTimeout(){y(this,Yn)&&(Bn.clearTimeout(y(this,Yn)),M(this,Yn,void 0))}},Yn=new WeakMap,F0),mP=(D0=class extends $g{constructor(t){super();W(this,Ct);W(this,Qn);W(this,jr);W(this,ft);W(this,Jn);W(this,Ae);W(this,Bo);W(this,Zn);M(this,Zn,!1),M(this,Bo,t.defaultOptions),this.setOptions(t.options),this.observers=[],M(this,Jn,t.client),M(this,ft,y(this,Jn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,M(this,Qn,Bg(this.options)),this.state=t.state??y(this,Qn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=y(this,Ae))==null?void 0:t.promise}setOptions(t){if(this.options={...y(this,Bo),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Bg(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),M(this,Qn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&y(this,ft).remove(this)}setData(t,n){const r=Gl(this.state.data,t,this.options);return Z(this,Ct,Xt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Z(this,Ct,Xt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=y(this,Ae))==null?void 0:r.promise;return(o=y(this,Ae))==null||o.cancel(t),n?n.then(je).catch(je):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(y(this,Qn))}isActive(){return this.observers.some(t=>ht(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ql||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ln(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Tg(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,Ae))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,Ae))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),y(this,ft).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(y(this,Ae)&&(y(this,Zn)?y(this,Ae).cancel({revert:!0}):y(this,Ae).cancelRetry()),this.scheduleGc()),y(this,ft).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Z(this,Ct,Xt).call(this,{type:"invalidate"})}async fetch(t,n){var l,c,u,d,h,p,f,g,m,b,x,k;if(this.state.fetchStatus!=="idle"&&((l=y(this,Ae))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(y(this,Ae))return y(this,Ae).continueRetry(),y(this,Ae).promise}if(t&&this.setOptions(t),!this.options.queryFn){const C=this.observers.find(S=>S.options.queryFn);C&&this.setOptions(C.options)}const r=new AbortController,o=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(M(this,Zn,!0),r.signal)})},i=()=>{const C=Fg(this.options,n),I=(()=>{const _={client:y(this,Jn),queryKey:this.queryKey,meta:this.meta};return o(_),_})();return M(this,Zn,!1),this.options.persister?this.options.persister(C,I,this):C(I)},a=(()=>{const C={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:y(this,Jn),state:this.state,fetchFn:i};return o(C),C})();(c=this.options.behavior)==null||c.onFetch(a,this),M(this,jr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&Z(this,Ct,Xt).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta}),M(this,Ae,Mg({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:C=>{C instanceof Yl&&C.revert&&this.setState({...y(this,jr),fetchStatus:"idle"}),r.abort()},onFail:(C,S)=>{Z(this,Ct,Xt).call(this,{type:"failed",failureCount:C,error:S})},onPause:()=>{Z(this,Ct,Xt).call(this,{type:"pause"})},onContinue:()=>{Z(this,Ct,Xt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const C=await y(this,Ae).start();if(C===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(C),(p=(h=y(this,ft).config).onSuccess)==null||p.call(h,C,this),(g=(f=y(this,ft).config).onSettled)==null||g.call(f,C,this.state.error,this),C}catch(C){if(C instanceof Yl){if(C.silent)return y(this,Ae).promise;if(C.revert){if(this.state.data===void 0)throw C;return this.state.data}}throw Z(this,Ct,Xt).call(this,{type:"error",error:C}),(b=(m=y(this,ft).config).onError)==null||b.call(m,C,this),(k=(x=y(this,ft).config).onSettled)==null||k.call(x,this.state.data,C,this),C}finally{this.scheduleGc()}}},Qn=new WeakMap,jr=new WeakMap,ft=new WeakMap,Jn=new WeakMap,Ae=new WeakMap,Bo=new WeakMap,Zn=new WeakMap,Ct=new WeakSet,Xt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...jg(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return M(this,jr,t.manual?o:void 0),o;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),we.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),y(this,ft).notify({query:this,type:"updated",action:t})})},D0);function jg(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:zg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Bg(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var vP=(z0=class extends _r{constructor(t,n){super();W(this,se);W(this,Qe);W(this,te);W(this,Wo);W(this,Be);W(this,er);W(this,Br);W(this,Ht);W(this,pn);W(this,Ho);W(this,Wr);W(this,Hr);W(this,tr);W(this,nr);W(this,mn);W(this,Ur,new Set);this.options=n,M(this,Qe,t),M(this,pn,null),M(this,Ht,Xl()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(y(this,te).addObserver(this),Wg(y(this,te),this.options)?Z(this,se,qo).call(this):this.updateResult(),Z(this,se,Ic).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ql(y(this,te),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ql(y(this,te),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Z(this,se,Pc).call(this),Z(this,se,Rc).call(this),y(this,te).removeObserver(this)}setOptions(t){const n=this.options,r=y(this,te);if(this.options=y(this,Qe).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ht(this.options.enabled,y(this,te))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Z(this,se,Tc).call(this),y(this,te).setOptions(this.options),n._defaulted&&!vs(this.options,n)&&y(this,Qe).getQueryCache().notify({type:"observerOptionsUpdated",query:y(this,te),observer:this});const o=this.hasListeners();o&&Hg(y(this,te),r,this.options,n)&&Z(this,se,qo).call(this),this.updateResult(),o&&(y(this,te)!==r||ht(this.options.enabled,y(this,te))!==ht(n.enabled,y(this,te))||ln(this.options.staleTime,y(this,te))!==ln(n.staleTime,y(this,te)))&&Z(this,se,wc).call(this);const i=Z(this,se,Ec).call(this);o&&(y(this,te)!==r||ht(this.options.enabled,y(this,te))!==ht(n.enabled,y(this,te))||i!==y(this,mn))&&Z(this,se,Oc).call(this,i)}getOptimisticResult(t){const n=y(this,Qe).getQueryCache().build(y(this,Qe),t),r=this.createResult(n,t);return yP(this,r)&&(M(this,Be,r),M(this,Br,this.options),M(this,er,y(this,te).state)),r}getCurrentResult(){return y(this,Be)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&!this.options.experimental_prefetchInRender&&y(this,Ht).status==="pending"&&y(this,Ht).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,o))})}trackProp(t){y(this,Ur).add(t)}getCurrentQuery(){return y(this,te)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=y(this,Qe).defaultQueryOptions(t),r=y(this,Qe).getQueryCache().build(y(this,Qe),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Z(this,se,qo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),y(this,Be)))}createResult(t,n){var T;const r=y(this,te),o=this.options,i=y(this,Be),s=y(this,er),a=y(this,Br),c=t!==r?t.state:y(this,Wo),{state:u}=t;let d={...u},h=!1,p;if(n._optimisticResults){const N=this.hasListeners(),j=!N&&Wg(t,n),R=N&&Hg(t,r,n,o);(j||R)&&(d={...d,...jg(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:f,errorUpdatedAt:g,status:m}=d;p=d.data;let b=!1;if(n.placeholderData!==void 0&&p===void 0&&m==="pending"){let N;i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(N=i.data,b=!0):N=typeof n.placeholderData=="function"?n.placeholderData((T=y(this,Hr))==null?void 0:T.state.data,y(this,Hr)):n.placeholderData,N!==void 0&&(m="success",p=Gl(i==null?void 0:i.data,N,n),h=!0)}if(n.select&&p!==void 0&&!b)if(i&&p===(s==null?void 0:s.data)&&n.select===y(this,Ho))p=y(this,Wr);else try{M(this,Ho,n.select),p=n.select(p),p=Gl(i==null?void 0:i.data,p,n),M(this,Wr,p),M(this,pn,null)}catch(N){M(this,pn,N)}y(this,pn)&&(f=y(this,pn),p=y(this,Wr),g=Date.now(),m="error");const x=d.fetchStatus==="fetching",k=m==="pending",C=m==="error",S=k&&x,I=p!==void 0,P={status:m,fetchStatus:d.fetchStatus,isPending:k,isSuccess:m==="success",isError:C,isInitialLoading:S,isLoading:S,data:p,dataUpdatedAt:d.dataUpdatedAt,error:f,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:x,isRefetching:x&&!k,isLoadingError:C&&!I,isPaused:d.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:C&&I,isStale:Jl(t,n),refetch:this.refetch,promise:y(this,Ht),isEnabled:ht(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const N=L=>{P.status==="error"?L.reject(P.error):P.data!==void 0&&L.resolve(P.data)},j=()=>{const L=M(this,Ht,P.promise=Xl());N(L)},R=y(this,Ht);switch(R.status){case"pending":t.queryHash===r.queryHash&&N(R);break;case"fulfilled":(P.status==="error"||P.data!==R.value)&&j();break;case"rejected":(P.status!=="error"||P.error!==R.reason)&&j();break}}return P}updateResult(){const t=y(this,Be),n=this.createResult(y(this,te),this.options);if(M(this,er,y(this,te).state),M(this,Br,this.options),y(this,er).data!==void 0&&M(this,Hr,y(this,te)),vs(n,t))return;M(this,Be,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!y(this,Ur).size)return!0;const s=new Set(i??y(this,Ur));return this.options.throwOnError&&s.add("error"),Object.keys(y(this,Be)).some(a=>{const l=a;return y(this,Be)[l]!==t[l]&&s.has(l)})};Z(this,se,Q0).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Z(this,se,Ic).call(this)}},Qe=new WeakMap,te=new WeakMap,Wo=new WeakMap,Be=new WeakMap,er=new WeakMap,Br=new WeakMap,Ht=new WeakMap,pn=new WeakMap,Ho=new WeakMap,Wr=new WeakMap,Hr=new WeakMap,tr=new WeakMap,nr=new WeakMap,mn=new WeakMap,Ur=new WeakMap,se=new WeakSet,qo=function(t){Z(this,se,Tc).call(this);let n=y(this,te).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(je)),n},wc=function(){Z(this,se,Pc).call(this);const t=ln(this.options.staleTime,y(this,te));if(Wn||y(this,Be).isStale||!Wl(t))return;const r=Tg(y(this,Be).dataUpdatedAt,t)+1;M(this,tr,Bn.setTimeout(()=>{y(this,Be).isStale||this.updateResult()},r))},Ec=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(y(this,te)):this.options.refetchInterval)??!1},Oc=function(t){Z(this,se,Rc).call(this),M(this,mn,t),!(Wn||ht(this.options.enabled,y(this,te))===!1||!Wl(y(this,mn))||y(this,mn)===0)&&M(this,nr,Bn.setInterval(()=>{(this.options.refetchIntervalInBackground||Kl.isFocused())&&Z(this,se,qo).call(this)},y(this,mn)))},Ic=function(){Z(this,se,wc).call(this),Z(this,se,Oc).call(this,Z(this,se,Ec).call(this))},Pc=function(){y(this,tr)&&(Bn.clearTimeout(y(this,tr)),M(this,tr,void 0))},Rc=function(){y(this,nr)&&(Bn.clearInterval(y(this,nr)),M(this,nr,void 0))},Tc=function(){const t=y(this,Qe).getQueryCache().build(y(this,Qe),this.options);if(t===y(this,te))return;const n=y(this,te);M(this,te,t),M(this,Wo,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Q0=function(t){we.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(y(this,Be))}),y(this,Qe).getQueryCache().notify({query:y(this,te),type:"observerResultsUpdated"})})},z0);function bP(e,t){return ht(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Wg(e,t){return bP(e,t)||e.state.data!==void 0&&Ql(e,t,t.refetchOnMount)}function Ql(e,t,n){if(ht(t.enabled,e)!==!1&&ln(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Jl(e,t)}return!1}function Hg(e,t,n,r){return(e!==t||ht(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Jl(e,n)}function Jl(e,t){return ht(t.enabled,e)!==!1&&e.isStaleByTime(ln(t.staleTime,e))}function yP(e,t){return!vs(e.getCurrentResult(),t)}function Ug(e){return{onFetch:(t,n)=>{var u,d,h,p,f;const r=t.options,o=(h=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],s=((f=t.state.data)==null?void 0:f.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const m=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},b=Fg(t.options,t.fetchOptions),x=async(k,C,S)=>{if(g)return Promise.reject();if(C==null&&k.pages.length)return Promise.resolve(k);const _=(()=>{const j={client:t.client,queryKey:t.queryKey,pageParam:C,direction:S?"backward":"forward",meta:t.options.meta};return m(j),j})(),P=await b(_),{maxPages:T}=t.options,N=S?uP:cP;return{pages:N(k.pages,P,T),pageParams:N(k.pageParams,C,T)}};if(o&&i.length){const k=o==="backward",C=k?xP:Gg,S={pages:i,pageParams:s},I=C(r,S);a=await x(S,I,k)}else{const k=e??i.length;do{const C=l===0?s[0]??r.initialPageParam:Gg(r,a);if(l>0&&C==null)break;a=await x(a,C),l++}while(l{var g,m;return(m=(g=t.options).persister)==null?void 0:m.call(g,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function Gg(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function xP(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var CP=(M0=class extends $g{constructor(t){super();W(this,Ft);W(this,Lt);W(this,We);W(this,rr);this.mutationId=t.mutationId,M(this,We,t.mutationCache),M(this,Lt,[]),this.state=t.state||qg(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){y(this,Lt).includes(t)||(y(this,Lt).push(t),this.clearGcTimeout(),y(this,We).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){M(this,Lt,y(this,Lt).filter(n=>n!==t)),this.scheduleGc(),y(this,We).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){y(this,Lt).length||(this.state.status==="pending"?this.scheduleGc():y(this,We).remove(this))}continue(){var t;return((t=y(this,rr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,a,l,c,u,d,h,p,f,g,m,b,x,k,C,S,I,_,P;const n=()=>{Z(this,Ft,Sn).call(this,{type:"continue"})};M(this,rr,Mg({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(T,N)=>{Z(this,Ft,Sn).call(this,{type:"failed",failureCount:T,error:N})},onPause:()=>{Z(this,Ft,Sn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>y(this,We).canRun(this)}));const r=this.state.status==="pending",o=!y(this,rr).canStart();try{if(r)n();else{Z(this,Ft,Sn).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=y(this,We).config).onMutate)==null?void 0:s.call(i,t,this));const N=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));N!==this.state.context&&Z(this,Ft,Sn).call(this,{type:"pending",context:N,variables:t,isPaused:o})}const T=await y(this,rr).start();return await((u=(c=y(this,We).config).onSuccess)==null?void 0:u.call(c,T,t,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,T,t,this.state.context)),await((f=(p=y(this,We).config).onSettled)==null?void 0:f.call(p,T,null,this.state.variables,this.state.context,this)),await((m=(g=this.options).onSettled)==null?void 0:m.call(g,T,null,t,this.state.context)),Z(this,Ft,Sn).call(this,{type:"success",data:T}),T}catch(T){try{throw await((x=(b=y(this,We).config).onError)==null?void 0:x.call(b,T,t,this.state.context,this)),await((C=(k=this.options).onError)==null?void 0:C.call(k,T,t,this.state.context)),await((I=(S=y(this,We).config).onSettled)==null?void 0:I.call(S,void 0,T,this.state.variables,this.state.context,this)),await((P=(_=this.options).onSettled)==null?void 0:P.call(_,void 0,T,t,this.state.context)),T}finally{Z(this,Ft,Sn).call(this,{type:"error",error:T})}}finally{y(this,We).runNext(this)}}},Lt=new WeakMap,We=new WeakMap,rr=new WeakMap,Ft=new WeakSet,Sn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),we.batch(()=>{y(this,Lt).forEach(r=>{r.onMutationUpdate(t)}),y(this,We).notify({mutation:this,type:"updated",action:t})})},M0);function qg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var kP=($0=class extends _r{constructor(t={}){super();W(this,Ut);W(this,kt);W(this,Uo);this.config=t,M(this,Ut,new Set),M(this,kt,new Map),M(this,Uo,0)}build(t,n,r){const o=new CP({mutationCache:this,mutationId:++Ks(this,Uo)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){y(this,Ut).add(t);const n=ys(t);if(typeof n=="string"){const r=y(this,kt).get(n);r?r.push(t):y(this,kt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(y(this,Ut).delete(t)){const n=ys(t);if(typeof n=="string"){const r=y(this,kt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&y(this,kt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=ys(t);if(typeof n=="string"){const r=y(this,kt).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=ys(t);if(typeof n=="string"){const o=(r=y(this,kt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){we.batch(()=>{y(this,Ut).forEach(t=>{this.notify({type:"removed",mutation:t})}),y(this,Ut).clear(),y(this,kt).clear()})}getAll(){return Array.from(y(this,Ut))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>_g(n,r))}findAll(t={}){return this.getAll().filter(n=>_g(t,n))}notify(t){we.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return we.batch(()=>Promise.all(t.map(n=>n.continue().catch(je))))}},Ut=new WeakMap,kt=new WeakMap,Uo=new WeakMap,$0);function ys(e){var t;return(t=e.options.scope)==null?void 0:t.id}var SP=(j0=class extends _r{constructor(t,n){super();W(this,qt);W(this,vn);W(this,bn);W(this,Je);W(this,Gt);M(this,vn,t),this.setOptions(n),this.bindMethods(),Z(this,qt,Js).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var r;const n=this.options;this.options=y(this,vn).defaultMutationOptions(t),vs(this.options,n)||y(this,vn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:y(this,Je),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Hn(n.mutationKey)!==Hn(this.options.mutationKey)?this.reset():((r=y(this,Je))==null?void 0:r.state.status)==="pending"&&y(this,Je).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=y(this,Je))==null||t.removeObserver(this)}onMutationUpdate(t){Z(this,qt,Js).call(this),Z(this,qt,Nc).call(this,t)}getCurrentResult(){return y(this,bn)}reset(){var t;(t=y(this,Je))==null||t.removeObserver(this),M(this,Je,void 0),Z(this,qt,Js).call(this),Z(this,qt,Nc).call(this)}mutate(t,n){var r;return M(this,Gt,n),(r=y(this,Je))==null||r.removeObserver(this),M(this,Je,y(this,vn).getMutationCache().build(y(this,vn),this.options)),y(this,Je).addObserver(this),y(this,Je).execute(t)}},vn=new WeakMap,bn=new WeakMap,Je=new WeakMap,Gt=new WeakMap,qt=new WeakSet,Js=function(){var n;const t=((n=y(this,Je))==null?void 0:n.state)??qg();M(this,bn,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Nc=function(t){we.batch(()=>{var n,r,o,i,s,a,l,c;if(y(this,Gt)&&this.hasListeners()){const u=y(this,bn).variables,d=y(this,bn).context;(t==null?void 0:t.type)==="success"?((r=(n=y(this,Gt)).onSuccess)==null||r.call(n,t.data,u,d),(i=(o=y(this,Gt)).onSettled)==null||i.call(o,t.data,null,u,d)):(t==null?void 0:t.type)==="error"&&((a=(s=y(this,Gt)).onError)==null||a.call(s,t.error,u,d),(c=(l=y(this,Gt)).onSettled)==null||c.call(l,void 0,t.error,u,d))}this.listeners.forEach(u=>{u(y(this,bn))})})},j0),wP=(B0=class extends _r{constructor(t={}){super();W(this,Dt);this.config=t,M(this,Dt,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??Hl(o,n);let s=this.get(i);return s||(s=new mP({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){y(this,Dt).has(t.queryHash)||(y(this,Dt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=y(this,Dt).get(t.queryHash);n&&(t.destroy(),n===t&&y(this,Dt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){we.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return y(this,Dt).get(t)}getAll(){return[...y(this,Dt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ng(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ng(t,r)):n}notify(t){we.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){we.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){we.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Dt=new WeakMap,B0),EP=(W0=class{constructor(e={}){W(this,ve);W(this,yn);W(this,xn);W(this,Gr);W(this,qr);W(this,Cn);W(this,Kr);W(this,Xr);M(this,ve,e.queryCache||new wP),M(this,yn,e.mutationCache||new kP),M(this,xn,e.defaultOptions||{}),M(this,Gr,new Map),M(this,qr,new Map),M(this,Cn,0)}mount(){Ks(this,Cn)._++,y(this,Cn)===1&&(M(this,Kr,Kl.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ve).onFocus())})),M(this,Xr,bs.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ve).onOnline())})))}unmount(){var e,t;Ks(this,Cn)._--,y(this,Cn)===0&&((e=y(this,Kr))==null||e.call(this),M(this,Kr,void 0),(t=y(this,Xr))==null||t.call(this),M(this,Xr,void 0))}isFetching(e){return y(this,ve).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return y(this,yn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,ve).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=y(this,ve).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ln(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return y(this,ve).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=y(this,ve).get(r.queryHash),i=o==null?void 0:o.state.data,s=sP(t,i);if(s!==void 0)return y(this,ve).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return we.batch(()=>y(this,ve).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,ve).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=y(this,ve);we.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=y(this,ve);return we.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=we.batch(()=>y(this,ve).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(je).catch(je)}invalidateQueries(e,t={}){return we.batch(()=>(y(this,ve).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=we.batch(()=>y(this,ve).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(je)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(je)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=y(this,ve).build(this,t);return n.isStaleByTime(ln(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(je).catch(je)}fetchInfiniteQuery(e){return e.behavior=Ug(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(je).catch(je)}ensureInfiniteQueryData(e){return e.behavior=Ug(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return bs.isOnline()?y(this,yn).resumePausedMutations():Promise.resolve()}getQueryCache(){return y(this,ve)}getMutationCache(){return y(this,yn)}getDefaultOptions(){return y(this,xn)}setDefaultOptions(e){M(this,xn,e)}setQueryDefaults(e,t){y(this,Gr).set(Hn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...y(this,Gr).values()],n={};return t.forEach(r=>{Po(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){y(this,qr).set(Hn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...y(this,qr).values()],n={};return t.forEach(r=>{Po(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...y(this,xn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Hl(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===ql&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...y(this,xn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){y(this,ve).clear(),y(this,yn).clear()}},ve=new WeakMap,yn=new WeakMap,xn=new WeakMap,Gr=new WeakMap,qr=new WeakMap,Cn=new WeakMap,Kr=new WeakMap,Xr=new WeakMap,W0),Kg=O.createContext(void 0),Xg=e=>{const t=O.useContext(Kg);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},OP=({client:e,children:t})=>(O.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(Kg.Provider,{value:e,children:t})),Yg=O.createContext(!1),IP=()=>O.useContext(Yg);Yg.Provider;function PP(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var RP=O.createContext(PP()),TP=()=>O.useContext(RP),NP=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},_P=e=>{O.useEffect(()=>{e.clearReset()},[e])},AP=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Dg(n,[e.error,r])),VP=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},LP=(e,t)=>e.isLoading&&e.isFetching&&!t,FP=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Qg=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function DP(e,t,n){var d,h,p,f,g;const r=IP(),o=TP(),i=Xg(),s=i.defaultQueryOptions(e);(h=(d=i.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||h.call(d,s),s._optimisticResults=r?"isRestoring":"optimistic",VP(s),NP(s,o),_P(o);const a=!i.getQueryCache().get(s.queryHash),[l]=O.useState(()=>new t(i,s)),c=l.getOptimisticResult(s),u=!r&&e.subscribed!==!1;if(O.useSyncExternalStore(O.useCallback(m=>{const b=u?l.subscribe(we.batchCalls(m)):je;return l.updateResult(),b},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),O.useEffect(()=>{l.setOptions(s)},[s,l]),FP(s,c))throw Qg(s,l,o);if(AP({result:c,errorResetBoundary:o,throwOnError:s.throwOnError,query:i.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw c.error;if((f=(p=i.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||f.call(p,s,c),s.experimental_prefetchInRender&&!Wn&&LP(c,r)){const m=a?Qg(s,l,o):(g=i.getQueryCache().get(s.queryHash))==null?void 0:g.promise;m==null||m.catch(je).finally(()=>{l.updateResult()})}return s.notifyOnChangeProps?c:l.trackResult(c)}function Jg(e,t){return DP(e,vP)}function Zg(e,t){const n=Xg(),[r]=O.useState(()=>new SP(n,e));O.useEffect(()=>{r.setOptions(e)},[r,e]);const o=O.useSyncExternalStore(O.useCallback(s=>r.subscribe(we.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=O.useCallback((s,a)=>{r.mutate(s,a).catch(je)},[r]);if(o.error&&Dg(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}function ep(e,t){return function(){return e.apply(t,arguments)}}const{toString:zP}=Object.prototype,{getPrototypeOf:Zl}=Object,{iterator:xs,toStringTag:tp}=Symbol,Cs=(e=>t=>{const n=zP.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),xt=e=>(e=e.toLowerCase(),t=>Cs(t)===e),ks=e=>t=>typeof t===e,{isArray:Ar}=Array,Ro=ks("undefined");function To(e){return e!==null&&!Ro(e)&&e.constructor!==null&&!Ro(e.constructor)&&Xe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const np=xt("ArrayBuffer");function MP(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&np(e.buffer),t}const $P=ks("string"),Xe=ks("function"),rp=ks("number"),No=e=>e!==null&&typeof e=="object",jP=e=>e===!0||e===!1,Ss=e=>{if(Cs(e)!=="object")return!1;const t=Zl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(tp in e)&&!(xs in e)},BP=e=>{if(!No(e)||To(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},WP=xt("Date"),HP=xt("File"),UP=xt("Blob"),GP=xt("FileList"),qP=e=>No(e)&&Xe(e.pipe),KP=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xe(e.append)&&((t=Cs(e))==="formdata"||t==="object"&&Xe(e.toString)&&e.toString()==="[object FormData]"))},XP=xt("URLSearchParams"),[YP,QP,JP,ZP]=["ReadableStream","Request","Response","Headers"].map(xt),eR=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _o(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Ar(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Un=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:globalThis,ip=e=>!Ro(e)&&e!==Un;function ec(){const{caseless:e}=ip(this)&&this||{},t={},n=(r,o)=>{const i=e&&op(t,o)||o;Ss(t[i])&&Ss(r)?t[i]=ec(t[i],r):Ss(r)?t[i]=ec({},r):Ar(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(_o(t,(o,i)=>{n&&Xe(o)?e[i]=ep(o,n):e[i]=o},{allOwnKeys:r}),e),nR=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),rR=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},oR=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Zl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},iR=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},sR=e=>{if(!e)return null;if(Ar(e))return e;let t=e.length;if(!rp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},aR=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Zl(Uint8Array)),lR=(e,t)=>{const r=(e&&e[xs]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},cR=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},uR=xt("HTMLFormElement"),dR=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),sp=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),hR=xt("RegExp"),ap=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_o(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},fR=e=>{ap(e,(t,n)=>{if(Xe(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Xe(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},gR=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Ar(e)?r(e):r(String(e).split(t)),n},pR=()=>{},mR=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function vR(e){return!!(e&&Xe(e.append)&&e[tp]==="FormData"&&e[xs])}const bR=e=>{const t=new Array(10),n=(r,o)=>{if(No(r)){if(t.indexOf(r)>=0)return;if(To(r))return r;if(!("toJSON"in r)){t[o]=r;const i=Ar(r)?[]:{};return _o(r,(s,a)=>{const l=n(s,o+1);!Ro(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},yR=xt("AsyncFunction"),xR=e=>e&&(No(e)||Xe(e))&&Xe(e.then)&&Xe(e.catch),lp=((e,t)=>e?setImmediate:t?((n,r)=>(Un.addEventListener("message",({source:o,data:i})=>{o===Un&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Un.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Xe(Un.postMessage)),CR=typeof queueMicrotask<"u"?queueMicrotask.bind(Un):typeof process<"u"&&process.nextTick||lp,E={isArray:Ar,isArrayBuffer:np,isBuffer:To,isFormData:KP,isArrayBufferView:MP,isString:$P,isNumber:rp,isBoolean:jP,isObject:No,isPlainObject:Ss,isEmptyObject:BP,isReadableStream:YP,isRequest:QP,isResponse:JP,isHeaders:ZP,isUndefined:Ro,isDate:WP,isFile:HP,isBlob:UP,isRegExp:hR,isFunction:Xe,isStream:qP,isURLSearchParams:XP,isTypedArray:aR,isFileList:GP,forEach:_o,merge:ec,extend:tR,trim:eR,stripBOM:nR,inherits:rR,toFlatObject:oR,kindOf:Cs,kindOfTest:xt,endsWith:iR,toArray:sR,forEachEntry:lR,matchAll:cR,isHTMLForm:uR,hasOwnProperty:sp,hasOwnProp:sp,reduceDescriptors:ap,freezeMethods:fR,toObjectSet:gR,toCamelCase:dR,noop:pR,toFiniteNumber:mR,findKey:op,global:Un,isContextDefined:ip,isSpecCompliantForm:vR,toJSONObject:bR,isAsyncFn:yR,isThenable:xR,setImmediate:lp,asap:CR,isIterable:e=>e!=null&&Xe(e[xs])};function Q(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}E.inherits(Q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:E.toJSONObject(this.config),code:this.code,status:this.status}}});const cp=Q.prototype,up={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{up[e]={value:e}}),Object.defineProperties(Q,up),Object.defineProperty(cp,"isAxiosError",{value:!0}),Q.from=(e,t,n,r,o,i)=>{const s=Object.create(cp);return E.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Q.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const kR=null;function tc(e){return E.isPlainObject(e)||E.isArray(e)}function dp(e){return E.endsWith(e,"[]")?e.slice(0,-2):e}function hp(e,t,n){return e?e.concat(t).map(function(o,i){return o=dp(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function SR(e){return E.isArray(e)&&!e.some(tc)}const wR=E.toFlatObject(E,{},null,function(t){return/^is[A-Z]/.test(t)});function ws(e,t,n){if(!E.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=E.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,m){return!E.isUndefined(m[g])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&E.isSpecCompliantForm(t);if(!E.isFunction(o))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(E.isDate(f))return f.toISOString();if(E.isBoolean(f))return f.toString();if(!l&&E.isBlob(f))throw new Q("Blob is not supported. Use a Buffer instead.");return E.isArrayBuffer(f)||E.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,g,m){let b=f;if(f&&!m&&typeof f=="object"){if(E.endsWith(g,"{}"))g=r?g:g.slice(0,-2),f=JSON.stringify(f);else if(E.isArray(f)&&SR(f)||(E.isFileList(f)||E.endsWith(g,"[]"))&&(b=E.toArray(f)))return g=dp(g),b.forEach(function(k,C){!(E.isUndefined(k)||k===null)&&t.append(s===!0?hp([g],C,i):s===null?g:g+"[]",c(k))}),!1}return tc(f)?!0:(t.append(hp(m,g,i),c(f)),!1)}const d=[],h=Object.assign(wR,{defaultVisitor:u,convertValue:c,isVisitable:tc});function p(f,g){if(!E.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(f),E.forEach(f,function(b,x){(!(E.isUndefined(b)||b===null)&&o.call(t,b,E.isString(x)?x.trim():x,g,h))===!0&&p(b,g?g.concat(x):[x])}),d.pop()}}if(!E.isObject(e))throw new TypeError("data must be an object");return p(e),t}function fp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function nc(e,t){this._pairs=[],e&&ws(e,this,t)}const gp=nc.prototype;gp.append=function(t,n){this._pairs.push([t,n])},gp.toString=function(t){const n=t?function(r){return t.call(this,r,fp)}:fp;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function ER(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function pp(e,t,n){if(!t)return e;const r=n&&n.encode||ER;E.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=E.isURLSearchParams(t)?t.toString():new nc(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class mp{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){E.forEach(this.handlers,function(r){r!==null&&t(r)})}}const vp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},OR={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:nc,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},rc=typeof window<"u"&&typeof document<"u",oc=typeof navigator=="object"&&navigator||void 0,IR=rc&&(!oc||["ReactNative","NativeScript","NS"].indexOf(oc.product)<0),PR=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",RR=rc&&window.location.href||"http://localhost",Me={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:rc,hasStandardBrowserEnv:IR,hasStandardBrowserWebWorkerEnv:PR,navigator:oc,origin:RR},Symbol.toStringTag,{value:"Module"})),...OR};function TR(e,t){return ws(e,new Me.classes.URLSearchParams,{visitor:function(n,r,o,i){return Me.isNode&&E.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function NR(e){return E.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function _R(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&E.isArray(o)?o.length:s,l?(E.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!E.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&E.isArray(o[s])&&(o[s]=_R(o[s])),!a)}if(E.isFormData(e)&&E.isFunction(e.entries)){const n={};return E.forEachEntry(e,(r,o)=>{t(NR(r),o,n,0)}),n}return null}function AR(e,t,n){if(E.isString(e))try{return(t||JSON.parse)(e),E.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ao={transitional:vp,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=E.isObject(t);if(i&&E.isHTMLForm(t)&&(t=new FormData(t)),E.isFormData(t))return o?JSON.stringify(bp(t)):t;if(E.isArrayBuffer(t)||E.isBuffer(t)||E.isStream(t)||E.isFile(t)||E.isBlob(t)||E.isReadableStream(t))return t;if(E.isArrayBufferView(t))return t.buffer;if(E.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return TR(t,this.formSerializer).toString();if((a=E.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ws(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),AR(t)):t}],transformResponse:[function(t){const n=this.transitional||Ao.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(E.isResponse(t)||E.isReadableStream(t))return t;if(t&&E.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?Q.from(a,Q.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Me.classes.FormData,Blob:Me.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(["delete","get","head","post","put","patch"],e=>{Ao.headers[e]={}});const VR=E.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),LR=e=>{const t={};let n,r,o;return e&&e.split(` @@ -27,6 +40,16 @@ `+i.map(Np).join(` `):" "+Np(i[0]):"as no adapter specified";throw new Q("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:lc};function cc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Vr(null,e)}function Ap(e){return cc(e),e.headers=Ye.from(e.headers),e.data=sc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),_p.getAdapter(e.adapter||Ao.adapter)(e).then(function(r){return cc(e),r.data=sc.call(e,e.transformResponse,r),r.headers=Ye.from(r.headers),r},function(r){return xp(r)||(cc(e),r&&r.response&&(r.response.data=sc.call(e,e.transformResponse,r.response),r.response.headers=Ye.from(r.response.headers))),Promise.reject(r)})}const Vp="1.11.0",Rs={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Rs[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Lp={};Rs.transitional=function(t,n,r){function o(i,s){return"[Axios v"+Vp+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new Q(o(s," has been removed"+(n?" in "+n:"")),Q.ERR_DEPRECATED);return n&&!Lp[s]&&(Lp[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}},Rs.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function rT(e,t,n){if(typeof e!="object")throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new Q("option "+i+" must be "+l,Q.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Q("Unknown option "+i,Q.ERR_BAD_OPTION)}}const Ts={assertOptions:rT,validators:Rs},Vt=Ts.validators;let qn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new mp,response:new mp}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Gn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Ts.assertOptions(r,{silentJSONParsing:Vt.transitional(Vt.boolean),forcedJSONParsing:Vt.transitional(Vt.boolean),clarifyTimeoutError:Vt.transitional(Vt.boolean)},!1),o!=null&&(E.isFunction(o)?n.paramsSerializer={serialize:o}:Ts.assertOptions(o,{encode:Vt.function,serialize:Vt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ts.assertOptions(n,{baseUrl:Vt.spelling("baseURL"),withXsrfToken:Vt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&E.merge(i.common,i[n.method]);i&&E.forEach(["delete","get","head","post","put","patch","common"],f=>{delete i[f]}),n.headers=Ye.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,d=0,h;if(!l){const f=[Ap.bind(this),void 0];for(f.unshift(...a),f.push(...c),h=f.length,u=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new Vr(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new J0(function(o){t=o}),cancel:t}}};function iT(e){return function(n){return e.apply(null,n)}}function sT(e){return E.isObject(e)&&e.isAxiosError===!0}const uc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(uc).forEach(([e,t])=>{uc[t]=e});function Fp(e){const t=new qn(e),n=ep(qn.prototype.request,t);return E.extend(n,qn.prototype,t,{allOwnKeys:!0}),E.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Fp(Gn(e,o))},n}const pe=Fp(Ao);pe.Axios=qn,pe.CanceledError=Vr,pe.CancelToken=oT,pe.isCancel=xp,pe.VERSION=Vp,pe.toFormData=ws,pe.AxiosError=Q,pe.Cancel=pe.CanceledError,pe.all=function(t){return Promise.all(t)},pe.spread=iT,pe.isAxiosError=sT,pe.mergeConfig=Gn,pe.AxiosHeaders=Ye,pe.formToJSON=e=>bp(E.isHTMLForm(e)?new FormData(e):e),pe.getAdapter=_p.getAdapter,pe.HttpStatusCode=uc,pe.default=pe;const{Axios:c_,AxiosError:u_,CanceledError:d_,isCancel:h_,CancelToken:f_,VERSION:g_,all:p_,Cancel:m_,isAxiosError:v_,spread:b_,toFormData:y_,AxiosHeaders:x_,HttpStatusCode:C_,formToJSON:k_,getAdapter:S_,mergeConfig:w_}=pe;var Ns=["light","dark"],dc="(prefers-color-scheme: dark)",aT=typeof window>"u",Dp=O.createContext(void 0),lT=e=>O.useContext(Dp)?e.children:O.createElement(uT,{...e}),cT=["light","dark"],uT=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:o="theme",themes:i=cT,defaultTheme:s=n?"system":"light",attribute:a="data-theme",value:l,children:c,nonce:u})=>{let[d,h]=O.useState(()=>zp(o,s)),[p,f]=O.useState(()=>zp(o)),g=l?Object.values(l):i,m=O.useCallback(C=>{let S=C;if(!S)return;C==="system"&&n&&(S=Mp());let I=l?l[S]:S,_=t?hT():null,P=document.documentElement;if(a==="class"?(P.classList.remove(...g),I&&P.classList.add(I)):I?P.setAttribute(a,I):P.removeAttribute(a),r){let T=Ns.includes(s)?s:null,N=Ns.includes(S)?S:T;P.style.colorScheme=N}_==null||_()},[]),b=O.useCallback(C=>{let S=typeof C=="function"?C(C):C;h(S);try{localStorage.setItem(o,S)}catch{}},[e]),x=O.useCallback(C=>{let S=Mp(C);f(S),d==="system"&&n&&!e&&m("system")},[d,e]);O.useEffect(()=>{let C=window.matchMedia(dc);return C.addListener(x),x(C),()=>C.removeListener(x)},[x]),O.useEffect(()=>{let C=S=>{if(S.key!==o)return;let I=S.newValue||s;b(I)};return window.addEventListener("storage",C),()=>window.removeEventListener("storage",C)},[b]),O.useEffect(()=>{m(e??d)},[e,d]);let k=O.useMemo(()=>({theme:d,setTheme:b,forcedTheme:e,resolvedTheme:d==="system"?p:d,themes:n?[...i,"system"]:i,systemTheme:n?p:void 0}),[d,b,e,p,n,i]);return O.createElement(Dp.Provider,{value:k},O.createElement(dT,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:r,storageKey:o,themes:i,defaultTheme:s,attribute:a,value:l,children:c,attrs:g,nonce:u}),c)},dT=O.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,attrs:a,nonce:l})=>{let c=i==="system",u=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(f=>`'${f}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=o?Ns.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(f,g=!1,m=!0)=>{let b=s?s[f]:f,x=g?f+"|| ''":`'${b}'`,k="";return o&&m&&!g&&Ns.includes(f)&&(k+=`d.style.colorScheme = '${f}';`),n==="class"?g||b?k+=`c.add(${x})`:k+="null":b&&(k+=`d[s](n,${x})`),k},p=e?`!function(){${u}${h(e)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${dc}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}${c?"":"else{"+h(i,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}else{${h(i,!1,!1)};}${d}}catch(t){}}();`;return O.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:p}})}),zp=(e,t)=>{if(aT)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},hT=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},Mp=e=>(e||(e=window.matchMedia(dc)),e.matches?"dark":"light");const fT=e=>v.jsx(lT,{attribute:"class",disableTransitionOnChange:!0,...e});/** +======= + `,n.body.appendChild(r)};function IE(e){if(!(!e||e.ownerDocument.activeElement!==e))try{const{selectionStart:t,selectionEnd:n,value:r}=e,i=r.substring(0,t),o=r.substring(n);return{start:t,end:n,value:r,beforeTxt:i,afterTxt:o}}catch{}}function PE(e,t){if(!(!e||e.ownerDocument.activeElement!==e)){if(!t){e.setSelectionRange(e.value.length,e.value.length);return}try{const{value:n}=e,{beforeTxt:r="",afterTxt:i="",start:o}=t;let s=n.length;if(n.endsWith(i))s=n.length-i.length;else if(n.startsWith(r))s=r.length;else if(o!=null){const a=r[o-1],l=n.indexOf(a,o-1);l!==-1&&(s=l+1)}e.setSelectionRange(s,s)}catch{}}}var RE=(e,t={})=>new Intl.NumberFormat(e,t),TE=(e,t={})=>new Vh(e,t),hl=(e,t)=>{const{prop:n,computed:r}=t;return n("formatOptions")?e===""?Number.NaN:r("parser").parse(e):parseFloat(e)},Dn=(e,t)=>{const{prop:n,computed:r}=t;return Number.isNaN(e)?"":n("formatOptions")?r("formatter").format(e):e.toString()},NE=(e,t)=>{let n=e!==void 0&&!Number.isNaN(e)?e:1;return(t==null?void 0:t.style)==="percent"&&(e===void 0||Number.isNaN(e))&&(n=.01),n},{choose:AE,guards:_E,createMachine:VE}=Au(),{not:jh,and:Wh}=_E;VE({props({props:e}){const t=NE(e.step,e.formatOptions);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"-?[0-9]*(.[0-9]+)?",defaultValue:"",step:t,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:t,getComputed:n}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(r){var s;const i=n(),o=hl(r,{computed:i,prop:e});(s=e("onValueChange"))==null||s({value:r,valueAsNumber:o})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash(r){return r?`x:${r.x}, y:${r.y}`:""}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",valueAsNumber:({context:e,computed:t,prop:n})=>hl(e.get("value"),{computed:t,prop:n}),formattedValue:({computed:e,prop:t})=>Dn(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>k0(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>E0(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!O0(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>e.get("value")==="",isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>{var n,r;return(r=(n=e("translations")).valueText)==null?void 0:r.call(n,t.get("value"))},formatter:Nu(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>RE(e,t)),parser:Nu(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>TE(e,t))},watch({track:e,action:t,context:n,computed:r,prop:i}){e([()=>n.get("value"),()=>i("locale")],()=>{t(["syncInputElement"])}),e([()=>r("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>n.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:Wh("clampValueOnBlur",jh("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:jh("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:AE([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:Wh("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isDecrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>e.pointerType==="touch"},effects:{waitForChangeDelay({send:e}){const t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){const t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl({context:e,scope:t}){const n=is(t);return xa(n,{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){const n=e.get("scrubberCursorPoint");return wE(t,n)},preventTextSelection({scope:e}){return EE(e)},trackButtonDisabled({context:e,scope:t,send:n}){const r=e.get("hint"),i=SE(t,r);return Eo(i,{attributes:["disabled"],callback(){n({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:n}){const r=is(e);if(!r||!e.isActiveElement(r)||!n("allowMouseWheel"))return;function i(o){o.preventDefault();const s=Math.sign(o.deltaY)*-1;s===1?t({type:"VALUE.INCREMENT"}):s===-1&&t({type:"VALUE.DECREMENT"})}return he(r,"wheel",i,{passive:!1})},activatePointerLock({scope:e}){if(!wu())return wx(e.getDoc())},trackMousemove({scope:e,send:t,context:n,computed:r}){const i=e.getDoc();function o(a){const l=n.get("scrubberCursorPoint"),c=r("isRtl"),u=kE(e,{point:l,isRtl:c,event:a});u.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:u.hint,point:u.point})}function s(){t({type:"SCRUBBER.POINTER_UP"})}return po(he(i,"mousemove",o,!1),he(i,"mouseup",s,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const n=is(e);e.isActiveElement(n)||Z(()=>n==null?void 0:n.focus({preventScroll:!0}))},increment({context:e,event:t,prop:n,computed:r}){let i=T0(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(i=Ue(i,n("min"),n("max"))),e.set("value",Dn(i,{computed:r,prop:n}))},decrement({context:e,event:t,prop:n,computed:r}){let i=N0(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(i=Ue(i,n("min"),n("max"))),e.set("value",Dn(i,{computed:r,prop:n}))},setClampedValue({context:e,prop:t,computed:n}){const r=Ue(n("valueAsNumber"),t("min"),t("max"));e.set("value",Dn(r,{computed:n,prop:t}))},setRawValue({context:e,event:t,prop:n,computed:r}){let i=hl(t.value,{computed:r,prop:n});n("allowOverflow")||(i=Ue(i,n("min"),n("max"))),e.set("value",Dn(i,{computed:r,prop:n}))},setValue({context:e,event:t}){var r;const n=((r=t.target)==null?void 0:r.value)??t.value;e.set("value",n)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:n}){const r=Dn(t("max"),{computed:n,prop:t});e.set("value",r)},decrementToMin({context:e,prop:t,computed:n}){const r=Dn(t("min"),{computed:n,prop:t});e.set("value",r)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){var n;(n=t("onFocusChange"))==null||n({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){var n;(n=t("onFocusChange"))==null||n({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:n}){var i;if(n.type==="INPUT.CHANGE")return;const r=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";(i=t("onValueInvalid"))==null||i({reason:r,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:n,scope:r}){const i=t.type.endsWith("CHANGE")?e.get("value"):n("formattedValue"),o=is(r),s=IE(o);Z(()=>{wo(o,i),PE(o,s)})},setFormattedValue({context:e,computed:t}){e.set("value",t("formattedValue"))},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){const n=Bh(t),r=e.get("scrubberCursorPoint");!n||!r||(n.style.transform=`translate3d(${r.x}px, ${r.y}px, 0px)`)}}}}),U()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var Hh=G("pinInput").parts("root","label","input","control");Hh.build(),U()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);var Uh=G("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");Uh.build(),U()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);const Gh=e=>{var l;const{children:t,disabled:n}=e,[r,i]=E.useState((l=e.container)==null?void 0:l.current),o=E.useSyncExternalStore(LE,()=>!1,()=>!0),{getRootNode:s}=pu();if(E.useEffect(()=>{i(()=>{var c;return(c=e.container)==null?void 0:c.current})},[e.container]),o||n)return v.jsx(v.Fragment,{children:t});const a=r??FE(s);return v.jsx(v.Fragment,{children:E.Children.map(t,c=>te.createPortal(c,a))})},FE=e=>{const t=e==null?void 0:e(),n=t.getRootNode();return fr(n)?n:Ge(t).body},LE=()=>()=>{};var fl=G("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");fl.build(),U()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var qh=G("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");qh.build(),U()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var gl=G("radio-group").parts("root","label","item","itemText","itemControl","indicator");gl.build(),U()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]),U()(["value","disabled","invalid"]);var Kh=G("rating-group").parts("root","label","item","control");Kh.build(),U()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]),U()(["index"]);var Xh=G("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");Xh.build(),U()(["dir","getRootNode","ids","id"]);const Yh=gl.rename("segment-group");Yh.build();var Qh=G("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");Qh.build();var Jh=e=>new Ko(e);Jh.empty=()=>new Ko({items:[]});var DE=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`select:${e.id}:content`},zE=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`select:${e.id}:trigger`},ME=e=>{var t;return((t=e.ids)==null?void 0:t.clearTrigger)??`select:${e.id}:clear-trigger`},$E=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.item)==null?void 0:r.call(n,t))??`select:${e.id}:option:${t}`},BE=e=>{var t;return((t=e.ids)==null?void 0:t.hiddenSelect)??`select:${e.id}:select`},jE=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`select:${e.id}:positioner`},pl=e=>e.getById(BE(e)),Si=e=>e.getById(DE(e)),os=e=>e.getById(zE(e)),WE=e=>e.getById(ME(e)),Zh=e=>e.getById(jE(e)),ml=(e,t)=>t==null?null:e.getById($E(e,t)),{and:wi,not:zn,or:HE}=Zt();HE("isTriggerArrowDownEvent","isTriggerEnterEvent"),wi(zn("multiple"),"hasSelectedItems"),zn("multiple"),wi(zn("multiple"),"hasSelectedItems"),zn("multiple"),zn("multiple"),zn("multiple"),zn("multiple"),wi("closeOnSelect","isOpenControlled"),wi("hasHighlightedItem","loop","isLastItemHighlighted"),wi("hasHighlightedItem","loop","isFirstItemHighlighted");function ef(e){var n;const t=e.restoreFocus??((n=e.previousEvent)==null?void 0:n.restoreFocus);return t==null||!!t}U()(["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","dir","disabled","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]),U()(["item","persistFocus"]),U()(["id"]),U()(["htmlFor"]);var tf=G("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");tf.build(),U()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"]),U()(["index","name"]);var nf=G("switch").parts("root","label","control","thumb");nf.build(),U()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);var UE=G("toast").parts("group","root","title","description","actionTrigger","closeTrigger");UE.build();var GE=(e,t)=>({...t,...vo(e)});function qE(e){const t=GE(e,{placement:"bottom",overlap:!1,max:24,gap:16,offsets:"1rem",hotkey:["altKey","KeyT"],removeDelay:200,pauseOnPageIdle:!0});let n=[],r=[],i=new Set,o=[];const s=I=>(n.push(I),()=>{const F=n.indexOf(I);n.splice(F,1)}),a=I=>(n.forEach(F=>F(I)),I),l=I=>{if(r.length>=t.max){o.push(I);return}a(I),r.unshift(I)},c=()=>{for(;o.length>0&&r.length{const F=I.id??`toast:${b0()}`,Y=r.find(z=>z.id===F);return i.has(F)&&i.delete(F),Y?r=r.map(z=>z.id===F?a({...z,...I,id:F}):z):l({id:F,duration:t.duration,removeDelay:t.removeDelay,type:"info",...I,stacked:!t.overlap,gap:t.gap}),F},d=I=>(i.add(I),I?(n.forEach(F=>F({id:I,dismiss:!0})),r=r.filter(F=>F.id!==I),c()):(r.forEach(F=>{n.forEach(Y=>Y({id:F.id,dismiss:!0}))}),r=[],o=[]),I);return{attrs:t,subscribe:s,create:u,update:(I,F)=>u({id:I,...F}),remove:d,dismiss:I=>{I!=null?r=r.map(F=>F.id===I?a({...F,message:"DISMISS"}):F):r=r.map(F=>a({...F,message:"DISMISS"}))},error:I=>u({...I,type:"error"}),success:I=>u({...I,type:"success"}),info:I=>u({...I,type:"info"}),warning:I=>u({...I,type:"warning"}),loading:I=>u({...I,type:"loading"}),getVisibleToasts:()=>r.filter(I=>!i.has(I.id)),getCount:()=>r.length,promise:(I,F,Y={})=>{if(!F||!F.loading){ai("[zag-js > toast] toaster.promise() requires at least a 'loading' option to be specified");return}const z=u({...Y,...F.loading,promise:I,type:"loading"});let V=!0,B;const K=go(I).then(async H=>{if(B=["resolve",H],KE(H)&&!H.ok){V=!1;const X=go(F.error,`HTTP Error! status: ${H.status}`);u({...Y,...X,id:z,type:"error"})}else if(F.success!==void 0){V=!1;const X=go(F.success,H);u({...Y,...X,id:z,type:"success"})}}).catch(async H=>{if(B=["reject",H],F.error!==void 0){V=!1;const X=go(F.error,H);u({...Y,...X,id:z,type:"error"})}}).finally(()=>{var H;V&&d(z),(H=F.finally)==null||H.call(F)});return{id:z,unwrap:()=>new Promise((H,X)=>K.then(()=>B[0]==="reject"?X(B[1]):H(B[1])).catch(X))}},pause:I=>{I!=null?r=r.map(F=>F.id===I?a({...F,message:"PAUSE"}):F):r=r.map(F=>a({...F,message:"PAUSE"}))},resume:I=>{I!=null?r=r.map(F=>F.id===I?a({...F,message:"RESUME"}):F):r=r.map(F=>a({...F,message:"RESUME"}))},isVisible:I=>!i.has(I)&&!!r.find(F=>F.id===I),isDismissed:I=>i.has(I),expand:()=>{r=r.map(I=>a({...I,stacked:!0}))},collapse:()=>{r=r.map(I=>a({...I,stacked:!1}))}}}var KE=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number";const XE=e=>qE(e);var rf=G("tooltip").parts("trigger","arrow","arrowTip","positioner","content");rf.build();var YE=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`tooltip:${e.id}:trigger`},QE=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`tooltip:${e.id}:popper`},vl=e=>e.getById(YE(e)),of=e=>e.getById(QE(e)),Mn=A0({id:null}),{and:JE,not:sf}=Zt();JE("noVisibleTooltip",sf("hasPointerMoveOpened")),sf("hasPointerMoveOpened"),U()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);function af(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}const ZE=(e,t)=>{var l;if(!e||typeof e!="string")return{invalid:!0,value:e};const[n,r]=e.split("/");if(!n||!r||n==="currentBg")return{invalid:!0,value:n};const i=t(`colors.${n}`),o=(l=t.raw(`opacity.${r}`))==null?void 0:l.value;if(!o&&isNaN(Number(r)))return{invalid:!0,value:n};const s=o?Number(o)*100+"%":`${r}%`,a=i??n;return{invalid:!1,color:a,value:`color-mix(in srgb, ${a} ${s}, transparent)`}},ae=e=>(t,n)=>{const r=n.utils.colorMix(t);if(r.invalid)return{[e]:t};const i="--mix-"+e;return{[i]:r.value,[e]:`var(${i}, ${r.color})`}};function bl(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>bl(n));const t=Object.create(Object.getPrototypeOf(e));for(const n of Object.keys(e))t[n]=bl(e[n]);return t}function yl(e,t){if(t==null)return e;for(const n of Object.keys(t))if(!(t[n]===void 0||n==="__proto__"))if(!He(e[n])&&He(t[n]))Object.assign(e,{[n]:t[n]});else if(e[n]&&He(t[n]))yl(e[n],t[n]);else if(Array.isArray(t[n])&&Array.isArray(e[n])){let r=0;for(;re!=null;function At(e,t,n={}){const{stop:r,getKey:i}=n;function o(s,a=[]){if(He(s)||Array.isArray(s)){const l={};for(const[c,u]of Object.entries(s)){const d=(i==null?void 0:i(c,u))??c,h=[...a,d];if(r!=null&&r(s,h))return t(s,a);const m=o(u,h);xl(m)&&(l[d]=m)}return l}return t(s,a)}return o(e)}function lf(e,t){return Array.isArray(e)?e.map(n=>xl(n)?t(n):n):He(e)?At(e,n=>t(n)):xl(e)?t(e):e}const ss=["value","type","description"],ek=e=>e&&typeof e=="object"&&!Array.isArray(e),cf=(...e)=>{var n;const t=Or({},...e.map(bl));return(n=t.theme)!=null&&n.tokens&&At(t.theme.tokens,r=>{const s=Object.keys(r).filter(l=>!ss.includes(l)).length>0,a=ss.some(l=>r[l]!=null);return s&&a&&(r.DEFAULT||(r.DEFAULT={}),ss.forEach(l=>{var c;r[l]!=null&&((c=r.DEFAULT)[l]||(c[l]=r[l]),delete r[l])})),r},{stop(r){return ek(r)&&Object.keys(r).some(i=>ss.includes(i)||i!==i.toLowerCase()&&i!==i.toUpperCase())}}),t},tk=e=>e,Se=e=>e,q=e=>e,nk=e=>e,rk=e=>e,Ir=e=>e,ik=e=>e,ok=e=>e,sk=e=>e;function uf(){const e=t=>t;return new Proxy(e,{get(){return e}})}const xe=uf(),Cl=uf(),Sl=e=>e,ak=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function lk(e){return`${e}`.replace(ak,t=>`\\${t}`)}const ck=/[A-Z]/g;function uk(e){return e.replace(ck,t=>`-${t.toLowerCase()}`)}function df(e,t={}){const{fallback:n="",prefix:r=""}=t,i=uk(["-",r,lk(e)].filter(Boolean).join("-"));return{var:i,ref:`var(${i}${n?`, ${n}`:""})`}}const dk=e=>/^var\(--.+\)$/.test(e),Re=(e,t)=>t!=null?`${e}(${t})`:t,$n=e=>{if(dk(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},hf=e=>({values:["outside","inside","mixed","none"],transform(t,{token:n}){const r=n("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":r,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":r,[e]:{outline:"none"}}}[t]??{}}}),hk=ae("borderColor"),jt=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),fk=tk({hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invalid:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&:is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"}),Pr=df("bg-currentcolor"),ff=e=>e===Pr.ref||e==="currentBg",le=e=>({...e("colors"),currentBg:Pr}),gk=Sl({conditions:fk,utilities:{background:{values:le,shorthand:["bg"],transform(e,t){if(ff(t.raw))return{background:Pr.ref};const n=ae("background")(e,t);return{...n,[Pr.var]:n==null?void 0:n.background}}},backgroundColor:{values:le,shorthand:["bgColor"],transform(e,t){if(ff(t.raw))return{backgroundColor:Pr.ref};const n=ae("backgroundColor")(e,t);return{...n,[Pr.var]:n==null?void 0:n.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}}},backgroundGradient:{shorthand:["bgGradient"],values(e){return{...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}},transform(e){return{"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e}}},gradientFrom:{values:le,transform:ae("--gradient-from")},gradientTo:{values:le,transform:ae("--gradient-to")},gradientVia:{values:le,transform(e,t){return{...ae("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"}}},backgroundImage:{values(e){return{...e("gradients"),...e("assets")}},shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:le,transform:ae("borderColor")},borderTopColor:{values:le,transform:ae("borderTopColor")},borderBlockStartColor:{values:le,transform:ae("borderBlockStartColor")},borderBottomColor:{values:le,transform:ae("borderBottomColor")},borderBlockEndColor:{values:le,transform:ae("borderBlockEndColor")},borderLeftColor:{values:le,transform:ae("borderLeftColor")},borderInlineStartColor:{values:le,shorthand:["borderStartColor"],transform:ae("borderInlineStartColor")},borderRightColor:{values:le,transform:ae("borderRightColor")},borderInlineEndColor:{values:le,shorthand:["borderEndColor"],transform:ae("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:le,transform:ae("color")},fill:{values:le,transform:ae("fill")},stroke:{values:le,transform:ae("stroke")},accentColor:{values:le,transform:ae("accentColor")},divideX:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}}}},divideY:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}}}},divideColor:{values:le,transform(e,t){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":hk(e,t)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:le,transform:ae("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform(e){return e!=="auto"?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}}},blur:{values:"blurs",transform:e=>({"--blur":Re("blur",e)})},brightness:{transform:e=>({"--brightness":Re("brightness",e)})},contrast:{transform:e=>({"--contrast":Re("contrast",e)})},grayscale:{transform:e=>({"--grayscale":Re("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":Re("hue-rotate",$n(e))})},invert:{transform:e=>({"--invert":Re("invert",e)})},saturate:{transform:e=>({"--saturate":Re("saturate",e)})},sepia:{transform:e=>({"--sepia":Re("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":Re("drop-shadow",e)})},backdropFilter:{transform(e){return e!=="auto"?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":Re("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":Re("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":Re("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":Re("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":Re("hue-rotate",$n(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":Re("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":Re("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":Re("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":Re("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:le,transform:ae("outlineColor")},focusRing:hf("&:is(:focus, [data-focus])"),focusVisibleRing:hf("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:le,transform:ae("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:n})=>({[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:n}){return{[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`]:{display:"none"}}}},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:le,transform:ae("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform(e){return{"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"}}},ringColor:{values:le,transform:ae("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:le,transform:ae("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:le,transform:ae("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return e==="auto"&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),e==="auto-gpu"&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":$n(e)})},skewY:{transform:e=>({"--skew-y":$n(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform(e){return e!=="auto"?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}}},spaceXReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}}}},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}}}},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform(e){return e!=="auto"?{rotate:$n(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":$n(e)}}},rotateY:{transform(e){return{"--rotate-y":$n(e)}}},translate:{transform(e){return e!=="auto"?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return jt("all");case"position":return jt("left, right, top, bottom, inset-inline, inset-block");case"colors":return jt("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return jt("opacity");case"shadow":return jt("box-shadow");case"transform":return jt("transform");case"size":return jt("width, height");case"backgrounds":return jt("background, background-color, background-image, background-position");case"common":return jt("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform(e){return e===!0?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}}},lineClamp:{transform(e){return e==="none"?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}}},borderSpacing:{values:e=>({...e("spacing"),auto:"var(--border-spacing-x, 0) var(--border-spacing-y, 0)"})},borderSpacingX:{values:"spacing",transform(e){return{"--border-spacing-x":e}}},borderSpacingY:{values:"spacing",transform(e){return{"--border-spacing-y":e}}},srOnly:{values:{type:"boolean"},transform(e){return pk[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:le,transform:ae("caretColor")},cursor:{values:"cursor"}}}),pk={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var mk="",vk=mk.split(","),bk="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical",yk=bk.split(",").concat(vk),xk=new Map(yk.map(e=>[e,!0]));function Ck(e){const t=Object.create(null);return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var Sk=/&|@/,wk=Ck(e=>xk.has(e)||e.startsWith("--")||Sk.test(e));function gf(e,t){const n={};return At(e,(r,i)=>{r&&(n[i.join(".")]=r.value)},{stop:t}),n}var Ek=Ei;Ei.default=Ei,Ei.stable=vf,Ei.stableStringify=vf;var as="[...]",pf="[Circular]",Bn=[],jn=[];function mf(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Ei(e,t,n,r){typeof r>"u"&&(r=mf()),wl(e,"",0,[],void 0,0,r);var i;try{jn.length===0?i=JSON.stringify(e,t,n):i=JSON.stringify(e,bf(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Bn.length!==0;){var o=Bn.pop();o.length===4?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return i}function Rr(e,t,n,r){var i=Object.getOwnPropertyDescriptor(r,n);i.get!==void 0?i.configurable?(Object.defineProperty(r,n,{value:e}),Bn.push([r,n,t,i])):jn.push([t,n,e]):(r[n]=e,Bn.push([r,n,t]))}function wl(e,t,n,r,i,o,s){o+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;as.depthLimit){Rr(as,e,t,i);return}if(typeof s.edgesLimit<"u"&&n+1>s.edgesLimit){Rr(as,e,t,i);return}if(r.push(e),Array.isArray(e))for(a=0;at?1:0}function vf(e,t,n,r){typeof r>"u"&&(r=mf());var i=El(e,"",0,[],void 0,0,r)||e,o;try{jn.length===0?o=JSON.stringify(i,t,n):o=JSON.stringify(i,bf(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Bn.length!==0;){var s=Bn.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return o}function El(e,t,n,r,i,o,s){o+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;as.depthLimit){Rr(as,e,t,i);return}if(typeof s.edgesLimit<"u"&&n+1>s.edgesLimit){Rr(as,e,t,i);return}if(r.push(e),Array.isArray(e))for(a=0;a0)for(var r=0;r{const t=Object.create(null);function n(...r){const i=r.map(o=>Ok(o)).join("|");return t[i]===void 0&&(t[i]=e(...r)),t[i]}return n},yf=16,ls="px",kl="em",ki="rem";function xf(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),n=new RegExp(`${ls}|${kl}|${ki}`),r=e.match(new RegExp(`${t.source}(${n.source})`));return r==null?void 0:r[1]}function Cf(e=""){if(typeof e=="number")return`${e}px`;const t=xf(e);if(!t||t===ls)return e;if(t===kl||t===ki)return`${parseFloat(e)*yf}${ls}`}function Sf(e=""){const t=xf(e);if(!t||t===ki)return e;if(t===kl)return`${parseFloat(e)}${ki}`;if(t===ls)return`${parseFloat(e)/yf}${ki}`}const Ik=e=>e.charAt(0).toUpperCase()+e.slice(1);function Pk(e){const t=Rk(e),n=Object.fromEntries(t);function r(h){return n[h]}function i(h){return Tr(r(h))}function o(){const h=Object.keys(n),m=Tk(h),f=h.flatMap(g=>{const p=r(g),b=[`${g}Down`,Tr({max:cs(p.min)})],x=[g,Tr({min:p.min})],S=[`${g}Only`,i(g)];return[x,S,b]}).filter(([,g])=>g!=="").concat(m.map(([g,p])=>{const b=r(g),x=r(p);return[`${g}To${Ik(p)}`,Tr({min:b.min,max:cs(x.min)})]}));return Object.fromEntries(f)}function s(){const h=o();return Object.fromEntries(Object.entries(h))}const a=s(),l=h=>a[h];function c(){return["base",...Object.keys(n)]}function u(h){return Tr({min:r(h).min})}function d(h){return Tr({max:cs(r(h).min)})}return{values:Object.values(n),only:i,keys:c,conditions:a,getCondition:l,up:u,down:d}}function cs(e){const t=parseFloat(Cf(e)??"")-.04;return Sf(`${t}px`)}function Rk(e){return Object.entries(e).sort(([,n],[,r])=>parseInt(n,10){var a;let s=null;return i<=o.length-1&&(s=(a=o[i+1])==null?void 0:a[1]),s!=null&&(s=cs(s)),[n,{name:n,min:Sf(r),max:s}]})}function Tk(e){const t=[];return e.forEach((n,r)=>{let i=r;i++;let o=e[i];for(;o;)t.push([n,o]),i++,o=e[i]}),t}function Tr({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const Nk=(e,t)=>Object.fromEntries(Object.entries(e).map(([n,r])=>t(n,r))),Ak=e=>{const{breakpoints:t,conditions:n={}}=e,r=Nk(n,(u,d)=>[`_${u}`,d]),i=Object.assign({},r,t.conditions);function o(){return Object.keys(i)}function s(u){return o().includes(u)||/^@|&|&$/.test(u)||u.startsWith("_")}function a(u){return u.filter(d=>d!=="base").sort((d,h)=>{const m=s(d),f=s(h);return m&&!f?1:!m&&f?-1:0})}function l(u){return u.startsWith("@breakpoint")?t.getCondition(u.replace("@breakpoint ","")):u}function c(u){return Reflect.get(i,u)||u}return{keys:o,sort:a,has:s,resolve:c,breakpoints:t.keys(),expandAtRule:l}},wf=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.| +)+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.| +)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),_k=wf("width"),Vk=wf("height"),Ef=e=>({isMin:Tf(e.minMax,e.maxMin,e.min),isMax:Tf(e.maxMin,e.minMax,e.max)}),{isMin:Ol,isMax:kf}=Ef(_k),{isMin:Il,isMax:Of}=Ef(Vk),If=/print/i,Pf=/^print$/i,Fk=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,Lk=/(\d)/,Oi=Number.MAX_VALUE,Dk={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function Rf(e){const t=Fk.exec(e)||(Ol(e)||Il(e)?Lk.exec(e):null);if(!t)return Oi;if(t[0]==="0")return 0;const n=parseFloat(t[1]),r=t[2];return n*(Dk[r]||1)}function Tf(e,t,n){return r=>e.test(r)||!t.test(r)&&n.test(r)}function zk(e,t){const n=If.test(e),r=Pf.test(e),i=If.test(t),o=Pf.test(t);return n&&i?!r&&o?1:r&&!o?-1:e.localeCompare(t):n?1:i?-1:null}const Mk=yt((e,t)=>{const n=zk(e,t);if(n!==null)return n;const r=Ol(e)||Il(e),i=kf(e)||Of(e),o=Ol(t)||Il(t),s=kf(t)||Of(t);if(r&&s)return-1;if(i&&o)return 1;const a=Rf(e),l=Rf(t);return a===Oi&&l===Oi?e.localeCompare(t):a===Oi?1:l===Oi?-1:a!==l?a>l?i?-1:1:i?1:-1:e.localeCompare(t)});function Nf(e){return e.sort(([t],[n])=>Mk(t,n))}function Af(e){const t=[],n=[],r={};for(const[s,a]of Object.entries(e))s.startsWith("@media")?t.push([s,a]):s.startsWith("@container")?n.push([s,a]):He(a)?r[s]=Af(a):r[s]=a;const i=Nf(t),o=Nf(n);return{...r,...Object.fromEntries(i),...Object.fromEntries(o)}}const _f=/\s*!(important)?/i,$k=e=>Ot(e)?_f.test(e):!1,Bk=e=>Ot(e)?e.replace(_f,"").trim():e;function Vf(e){const{transform:t,conditions:n,normalize:r}=e,i=Hk(e);return yt(function(...s){const a=i(...s),l=r(a),c=Object.create(null);return At(l,(u,d)=>{const h=$k(u);if(u==null)return;const[m,...f]=n.sort(d).map(n.resolve);h&&(u=Bk(u));let g=t(m,u)??Object.create(null);g=At(g,p=>Ot(p)&&h?`${p} !important`:p,{getKey:p=>n.expandAtRule(p)}),jk(c,f.flat(),g)}),Af(c)})}function jk(e,t,n){let r=e;for(const i of t)i&&(r[i]||(r[i]=Object.create(null)),r=r[i]);Or(r,n)}function Wk(...e){return e.filter(t=>He(t)&&Object.keys(ri(t)).length>0)}function Hk(e){function t(n){const r=Wk(...n);return r.length===1?r:r.map(i=>e.normalize(i))}return yt(function(...r){return Or({},...t(r))})}const Ff=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function Uk(e){const{css:t,conditions:n,normalize:r,layers:i}=e;function o(a={}){const{base:l,variants:c,defaultVariants:u,compoundVariants:d}=Ff(a),h=Vf({conditions:n,normalize:r,transform(x,S){var C;return(C=c[x])==null?void 0:C[S]}}),m=(x={})=>{const S=r({...u,...ri(x)});let C={...l};Or(C,h(S));const w=s(d,S);return i.wrap("recipes",t(C,w))},f=Object.keys(c),g=x=>{const S=af(x,["recipe"]),[C,w]=cr(S,f);return f.includes("colorPalette")||(C.colorPalette=x.colorPalette||u.colorPalette),f.includes("orientation")&&(w.orientation=x.orientation),[C,w]},p=Object.fromEntries(Object.entries(c).map(([x,S])=>[x,Object.keys(S)]));return Object.assign(x=>t(m(x)),{className:a.className,__cva__:!0,variantMap:p,variantKeys:f,raw:m,config:a,splitVariantProps:g,merge(x){return o(Gk(e)(this,x))}})}function s(a,l){let c={};return a.forEach(u=>{Object.entries(u).every(([h,m])=>h==="css"?!0:(Array.isArray(m)?m:[m]).some(g=>l[h]===g))&&(c=t(c,u.css))}),c}return o}function Gk(e){const{css:t}=e;return function(r,i){const o=Ff(i.config),s=Jc(r.variantKeys,Object.keys(i.variants)),a=t(r.base,o.base),l=Object.fromEntries(s.map(h=>[h,t(r.config.variants[h],o.variants[h])])),c=Or(r.config.defaultVariants,o.defaultVariants),u=[...r.compoundVariants,...o.compoundVariants];return{className:st(r.className,i.className),base:a,variants:l,defaultVariants:c,compoundVariants:u}}}const qk={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},Lf={reset:0,base:1,tokens:2,recipes:3};function Kk(e){const t=e.layers??qk,r=Object.values(t).sort((i,o)=>Lf[i]-Lf[o]);return{names:r,atRule:`@layer ${r.join(", ")};`,wrap(i,o){return e.disableLayers?o:{[`@layer ${t[i]}`]:o}}}}function Xk(e){const{utility:t,normalize:n}=e,{hasShorthand:r,resolveShorthand:i}=t;return function(o){return At(o,n,{stop:s=>Array.isArray(s),getKey:r?i:void 0})}}function Yk(e){const{preflight:t}=e;if(!t)return{};const{scope:n="",level:r="parent"}=He(t)?t:{};let i="";n&&r==="parent"?i=`${n} `:n&&r==="element"&&(i=`&${n}`);const o={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},s={[n||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if(r==="element"){const a=Object.entries(o).reduce((l,[c,u])=>(l[c]={[i]:u},l),{});Object.assign(s,a)}else i?s[i]=o:Object.assign(s,o);return s}function Qk(e){const{conditions:t,isValidProperty:n}=e;return function(i){return At(i,o=>o,{getKey:(o,s)=>He(s)&&!t.has(o)&&!n(o)?Jk(o).map(a=>"&"+a).join(", "):o})}}function Jk(e){const t=[];let n=0,r="",i=!1;for(let o=0;o{const t=i=>{var o;return{base:((o=e.base)==null?void 0:o[i])??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?eO(e.compoundVariants,i):[]}},r=(e.slots??[]).map(i=>[i,t(i)]);for(const[i,o]of Object.entries(e.variants??{}))for(const[s,a]of Object.entries(o))r.forEach(([l,c])=>{var u;(u=c.variants)[i]??(u[i]={}),c.variants[i][s]=a[l]??{}});return Object.fromEntries(r)},eO=(e,t)=>e.filter(n=>n.css[t]).map(n=>({...n,css:n.css[t]}));function tO(e){const{cva:t}=e;return function(r={}){const i=Object.entries(Zk(r)).map(([d,h])=>[d,t(h)]);function o(d){const h=i.map(([m,f])=>[m,f(d)]);return Object.fromEntries(h)}const s=r.variants??{},a=Object.keys(s);function l(d){var g;const h=af(d,["recipe"]),[m,f]=cr(h,a);return a.includes("colorPalette")||(m.colorPalette=d.colorPalette||((g=r.defaultVariants)==null?void 0:g.colorPalette)),a.includes("orientation")&&(f.orientation=d.orientation),[m,f]}const c=Object.fromEntries(Object.entries(s).map(([d,h])=>[d,Object.keys(h)]));let u={};return r.className&&(u=Object.fromEntries(r.slots.map(d=>[d,`${r.className}__${d}`]))),Object.assign(o,{variantMap:c,variantKeys:a,splitVariantProps:l,classNameMap:u})}}const nO=()=>e=>Array.from(new Set(e)),rO=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,iO=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},Df=e=>(e+"").replace(rO,iO),zf=(e,t)=>{let n="",r=0,i="char",o="",s="";const a=[];for(;r{let t=0;const n=["("];for(;t{n instanceof Map?t[r]=Object.fromEntries(n):t[r]=n}),t}const $f=/({([^}]*)})/g,sO=/[{}]/g,aO=/\w+\.\w+/,Bf=e=>{if(!Ot(e))return[];const t=e.match($f);return t?t.map(n=>n.replace(sO,"")).map(n=>n.trim()):[]},lO=e=>$f.test(e);function jf(e){var n,r,i;if(!((n=e.extensions)!=null&&n.references))return((i=(r=e.extensions)==null?void 0:r.cssVar)==null?void 0:i.ref)??e.value;const t=e.extensions.references??{};return e.value=Object.keys(t).reduce((o,s)=>{const a=t[s];if(a.extensions.conditions)return o;const l=jf(a);return o.replace(`{${s}}`,l)},e.value),delete e.extensions.references,e.value}function Wf(e){return He(e)&&e.reference?e.reference:String(e)}const us=(e,...t)=>t.map(Wf).join(` ${e} `).replace(/calc/g,""),Hf=(...e)=>`calc(${us("+",...e)})`,Uf=(...e)=>`calc(${us("-",...e)})`,Pl=(...e)=>`calc(${us("*",...e)})`,Gf=(...e)=>`calc(${us("/",...e)})`,qf=e=>{const t=Wf(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Pl(t,-1)},Nr=Object.assign(e=>({add:(...t)=>Nr(Hf(e,...t)),subtract:(...t)=>Nr(Uf(e,...t)),multiply:(...t)=>Nr(Pl(e,...t)),divide:(...t)=>Nr(Gf(e,...t)),negate:()=>Nr(qf(e)),toString:()=>e.toString()}),{add:Hf,subtract:Uf,multiply:Pl,divide:Gf,negate:qf}),cO={enforce:"pre",transform(e){const{prefix:t,allTokens:n,formatCssVar:r,formatTokenName:i,registerToken:o}=e;n.filter(({extensions:a})=>a.category==="spacing").forEach(a=>{const l=a.path.slice(),c=r(l,t);if(Ot(a.value)&&a.value==="0rem")return;const u=structuredClone(a);Object.assign(u.extensions,{negative:!0,prop:`-${a.extensions.prop}`,originalPath:l}),u.value=Nr.negate(c.ref);const d=u.path[u.path.length-1];d!=null&&(u.path[u.path.length-1]=`-${d}`),u.path&&(u.name=i(u.path)),o(u)})}},uO=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),dO=[cO,{enforce:"post",transform(e){const{allTokens:t,registerToken:n,formatTokenName:r}=e,i=t.filter(({extensions:a})=>a.category==="colors"),o=new Map,s=new Map;i.forEach(a=>{const{colorPalette:l}=a.extensions;l&&(l.keys.forEach(c=>{o.set(r(c),c)}),l.roots.forEach(c=>{var h;const u=r(c),d=s.get(u)||[];if(d.push(a),s.set(u,d),a.extensions.default&&c.length===1){const m=(h=l.keys[0])==null?void 0:h.filter(Boolean);if(!m.length)return;const f=c.concat(m);o.set(r(f),[])}}))}),o.forEach(a=>{const l=["colors","colorPalette",...a].filter(Boolean),c=r(l),u=r(l.slice(1));n({name:c,value:c,originalValue:c,path:l,extensions:{condition:"base",originalPath:l,category:"colors",prop:u,virtual:!0}},"pre")})}},{enforce:"post",transform(e){e.allTokens.filter(n=>uO.has(n.extensions.category)&&!n.extensions.negative).forEach(n=>{Object.assign(n.extensions,{pixelValue:Cf(n.value)})})}},{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}}],hO=[{type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:n,formatCssVar:r}=t,{negative:i,originalPath:o}=e.extensions,s=i?o:e.path;return{cssVar:r(s.filter(Boolean),n)}}},{enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:n,formatCssVar:r}=t,i=Bf(e.value);return i.length&&i.forEach(o=>{const s=r(o.split("."),n);e.value=e.value.replace(`{${s.ref}}`,s)}),e.value}},{type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match(e){return e.extensions.category==="colors"&&!e.extensions.virtual},transform(e,t){let n=e.path.slice();if(n.pop(),n.shift(),n.length===0){const a=[...e.path];a.shift(),n=a}if(n.length===0)return{};const r=n.reduce((a,l,c,u)=>{const d=u.slice(0,c+1);return a.push(d),a},[]),i=n[0],o=t.formatTokenName(n),s=e.path.slice(e.path.indexOf(i)+1).reduce((a,l,c,u)=>(a.push(u.slice(c)),a),[]);return s.length===0&&s.push([""]),{colorPalette:{value:o,roots:r,keys:s}}}}],Kf=e=>He(e)&&Object.prototype.hasOwnProperty.call(e,"value");function fO(e){return e?{breakpoints:lf(e,t=>({value:t})),sizes:Object.fromEntries(Object.entries(e).map(([t,n])=>[`breakpoint-${t}`,{value:n}]))}:{breakpoints:{},sizes:{}}}function gO(e){const{prefix:t="",tokens:n={},semanticTokens:r={},breakpoints:i={}}=e,o=D=>D.join("."),s=(D,L)=>df(D.join("-"),{prefix:L}),a=[],l=new Map,c=new Map,u=new Map,d=new Map,h=new Map,m=new Map,f=new Map,g=new Map,p=[];function b(D,L){a.push(D),l.set(D.name,D),L&&g.forEach(ne=>{ne.enforce===L&&H(ne,D)})}const x=fO(i),S=ri({...n,breakpoints:x.breakpoints,sizes:{...n.sizes,...x.sizes}});function C(){At(S,(D,L)=>{const ne=L.includes("DEFAULT");L=Xf(L);const de=L[0],Ee=o(L),Le=Ot(D)?{value:D}:D,Kt={value:Le.value,originalValue:Le.value,name:Ee,path:L,extensions:{condition:"base",originalPath:L,category:de,prop:o(L.slice(1))}};ne&&(Kt.extensions.default=!0),b(Kt)},{stop:Kf}),At(r,(D,L)=>{const ne=L.includes("DEFAULT");L=Yf(Xf(L));const de=L[0],Ee=o(L),Le=Ot(D.value)?{value:{base:D.value}}:D,Kt={value:Le.value.base||"",originalValue:Le.value.base||"",name:Ee,path:L,extensions:{originalPath:L,category:de,conditions:Le.value,condition:"base",prop:o(L.slice(1))}};ne&&(Kt.extensions.default=!0),b(Kt)},{stop:Kf})}function w(D){return l.get(D)}function P(D){const{condition:L}=D.extensions;L&&(c.has(L)||c.set(L,new Set),c.get(L).add(D))}function _(D){const{category:L,prop:ne}=D.extensions;L&&(f.has(L)||f.set(L,new Map),f.get(L).set(ne,D))}function R(D){const{condition:L,negative:ne,virtual:de,cssVar:Ee}=D.extensions;ne||de||!L||!Ee||(u.has(L)||u.set(L,new Map),u.get(L).set(Ee.var,D.value))}function N(D){const{category:L,prop:ne,cssVar:de,negative:Ee}=D.extensions;if(!L)return;m.has(L)||m.set(L,new Map);const Le=Ee?D.extensions.conditions?D.originalValue:D.value:de.ref;m.get(L).set(ne,Le),h.set([L,ne].join("."),Le)}function T(D){const{colorPalette:L,virtual:ne,default:de}=D.extensions;!L||ne||L.roots.forEach(Ee=>{var Cb;const Le=o(Ee);d.has(Le)||d.set(Le,new Map);const Kt=mO([...D.path],[...Ee]),Bs=o(Kt),Yr=w(Bs);if(!Yr||!Yr.extensions.cssVar)return;const{var:qA}=Yr.extensions.cssVar;if(d.get(Le).set(qA,D.extensions.cssVar.ref),de&&Ee.length===1){const KA=o(["colors","colorPalette"]),Sb=w(KA);if(!Sb)return;const XA=o(D.path),wb=w(XA);if(!wb)return;const Eb=(Cb=L.keys[0])==null?void 0:Cb.filter(Boolean);if(!Eb.length)return;const gc=o(Ee.concat(Eb));d.has(gc)||d.set(gc,new Map),d.get(gc).set(Sb.extensions.cssVar.var,wb.extensions.cssVar.ref)}})}let j={};function I(){a.forEach(D=>{P(D),_(D),R(D),N(D),T(D)}),j=Mf(m)}const F=(D,L)=>{var Yr;if(!D||typeof D!="string")return{invalid:!0,value:D};const[ne,de]=D.split("/");if(!ne||!de)return{invalid:!0,value:ne};const Ee=L(ne),Le=(Yr=w(`opacity.${de}`))==null?void 0:Yr.value;if(!Le&&isNaN(Number(de)))return{invalid:!0,value:ne};const Kt=Le?Number(Le)*100+"%":`${de}%`,Bs=Ee??ne;return{invalid:!1,color:Bs,value:`color-mix(in srgb, ${Bs} ${Kt}, transparent)`}},Y=yt((D,L)=>h.get(D)??L),z=yt(D=>j[D]||null),V=yt(D=>zf(D,L=>{if(!L)return;if(L.includes("/")){const de=F(L,Ee=>Y(Ee));if(de.invalid)throw new Error("Invalid color mix at "+L+": "+de.value);return de.value}const ne=Y(L);return ne||(aO.test(L)?Df(L):L)})),B={prefix:t,allTokens:a,tokenMap:l,registerToken:b,getByName:w,formatTokenName:o,formatCssVar:s,flatMap:h,cssVarMap:u,categoryMap:f,colorPaletteMap:d,getVar:Y,getCategoryValues:z,expandReferenceInValue:V};function K(...D){D.forEach(L=>{g.set(L.name,L)})}function $(...D){p.push(...D)}function H(D,L){if(L.extensions.references||ua(D.match)&&!D.match(L))return;const de=(Ee=>D.transform(Ee,B))(L);switch(!0){case D.type==="extensions":Object.assign(L.extensions,de);break;case D.type==="value":L.value=de;break;default:L[D.type]=de;break}}function X(D){p.forEach(L=>{L.enforce===D&&L.transform(B)})}function ue(D){g.forEach(L=>{L.enforce===D&&a.forEach(ne=>{H(L,ne)})})}function wn(){a.forEach(D=>{const L=pO(D);!L||L.length===0||L.forEach(ne=>{b(ne)})})}function Wi(D){return Bf(D).map(ne=>w(ne)).filter(Boolean)}function Xr(){a.forEach(D=>{if(!lO(D.value))return;const L=Wi(D.value);D.extensions.references=L.reduce((ne,de)=>(ne[de.name]=de,ne),{})})}function fc(){a.forEach(D=>{jf(D)})}function GA(){X("pre"),ue("pre"),wn(),Xr(),fc(),X("post"),ue("post"),I()}return C(),K(...hO),$(...dO),GA(),B}function Xf(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function Yf(e){return e.filter(t=>t!=="base")}function pO(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,n=[];return At(t,(r,i)=>{const o=Yf(i);if(!o.length)return;const s=structuredClone(e);s.value=r,s.extensions.condition=o.join(":"),n.push(s)}),n}function mO(e,t){const n=e.findIndex((r,i)=>t.every((o,s)=>e[i+s]===o));return n===-1||(e.splice(n,t.length),e.splice(n,0,"colorPalette")),e}nO()(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]);function h5(e){return e}function vO(e){return Object.fromEntries(Object.entries(e).map(([t,n])=>[t,n]))}function bO(e){const t=vO(e.config),n=e.tokens,r=new Map,i=new Map;function o(R,N){t[R]=N,s(R,N)}const s=(R,N)=>{const T=g(N);T&&(i.set(R,T),d(R,N))},a=()=>{for(const[R,N]of Object.entries(t))N&&s(R,N)},l=()=>{for(const[R,N]of Object.entries(t)){const{shorthand:T}=N??{};if(!T)continue;(Array.isArray(T)?T:[T]).forEach(I=>r.set(I,R))}},c=()=>{const R=Mf(n.colorPaletteMap);o("colorPalette",{values:Object.keys(R),transform:yt(N=>R[N])})},u=new Map,d=(R,N)=>{if(!N)return;const T=g(N,I=>`type:Tokens["${I}"]`);if(typeof T=="object"&&T.type){u.set(R,new Set([`type:${T.type}`]));return}if(T){const I=new Set(Object.keys(T));u.set(R,I)}const j=u.get(R)??new Set;N.property&&u.set(R,j.add(`CssProperties["${N.property}"]`))},h=()=>{for(const[R,N]of Object.entries(t))N&&d(R,N)},m=(R,N)=>{const T=u.get(R)??new Set;u.set(R,new Set([...T,...N]))},f=()=>{const R=new Map;for(const[N,T]of u.entries()){if(T.size===0){R.set(N,["string"]);continue}const j=Array.from(T).map(I=>I.startsWith("CssProperties")?I:I.startsWith("type:")?I.replace("type:",""):JSON.stringify(I));R.set(N,j)}return R},g=(R,N)=>{const{values:T}=R,j=I=>{const F=N==null?void 0:N(I);return F?{[F]:F}:void 0};return Ot(T)?(j==null?void 0:j(T))??n.getCategoryValues(T)??{}:Array.isArray(T)?T.reduce((I,F)=>(I[F]=F,I),{}):ua(T)?T(N?j:n.getCategoryValues):T},p=yt((R,N)=>({[R]:R.startsWith("--")?n.getVar(N,N):N})),b=Object.assign(n.getVar,{raw:R=>n.getByName(R)}),x=yt((R,N)=>{var Y;const T=w(R);Ot(N)&&!N.includes("_EMO_")&&(N=n.expandReferenceInValue(N));const j=t[T];if(!j)return p(T,N);const I=(Y=i.get(T))==null?void 0:Y[N];if(!j.transform)return p(R,I??N);const F=z=>ZE(z,b);return j.transform(I??N,{raw:N,token:b,utils:{colorMix:F}})});function S(){l(),c(),a(),h()}S();const C=r.size>0,w=yt(R=>r.get(R)??R);return{keys:()=>[...Array.from(r.keys()),...Object.keys(t)],hasShorthand:C,transform:x,shorthands:r,resolveShorthand:w,register:o,getTypes:f,addPropertyType:m}}const qe={};function Qf(...e){const t=cf(...e),{theme:n={},utilities:r={},globalCss:i={},cssVarsRoot:o=":where(:root, :host)",cssVarsPrefix:s="chakra",preflight:a}=t,l=Kk(t),c=gO({breakpoints:n.breakpoints,tokens:n.tokens,semanticTokens:n.semanticTokens,prefix:s}),u=Pk(n.breakpoints??qe),d=Ak({conditions:t.conditions??qe,breakpoints:u}),h=bO({config:r,tokens:c});function m(){const{textStyles:$,layerStyles:H,animationStyles:X}=n,ue=ri({textStyle:$,layerStyle:H,animationStyle:X});for(const[wn,Wi]of Object.entries(ue)){const Xr=gf(Wi??qe,Jf);h.register(wn,{values:Object.keys(Xr),transform(fc){return S(Xr[fc])}})}}m(),h.addPropertyType("animationName",Object.keys(n.keyframes??qe));const f=new Set(["css",...h.keys(),...d.keys()]),g=yt($=>f.has($)||wk($)),p=$=>Array.isArray($)?$.reduce((H,X,ue)=>{const wn=d.breakpoints[ue];return X!=null&&(H[wn]=X),H},{}):$,b=Xk({utility:h,normalize:p}),x=Qk({conditions:d,isValidProperty:g}),S=Vf({transform:h.transform,conditions:d,normalize:b}),C=Uk({css:S,conditions:d,normalize:b,layers:l}),w=tO({cva:C});function P(){const $={};for(const[H,X]of c.cssVarMap.entries()){const ue=Object.fromEntries(X);if(Object.keys(ue).length===0)continue;const wn=H==="base"?o:d.resolve(H),Wi=wn.startsWith("@"),Xr=S(x({[wn]:Wi?{[o]:ue}:ue}));Or($,Xr)}return l.wrap("tokens",$)}function _(){const $=Object.fromEntries(Object.entries(n.keyframes??qe).map(([X,ue])=>[`@keyframes ${X}`,ue])),H=Object.assign({},$,S(x(i)));return l.wrap("base",H)}function R($){return cr($,g)}function N(){const $=Yk({preflight:a});return l.wrap("reset",$)}const T=yO(c),j=($,H)=>{var X;return((X=T.get($))==null?void 0:X.value)||H};j.var=($,H)=>{var X;return((X=T.get($))==null?void 0:X.variable)||H};function I($,H){var X;return((X=n.recipes)==null?void 0:X[$])??H}function F($,H){var X;return((X=n.slotRecipes)==null?void 0:X[$])??H}function Y($){return Object.hasOwnProperty.call(n.recipes??qe,$)}function z($){return Object.hasOwnProperty.call(n.slotRecipes??qe,$)}function V($){return Y($)||z($)}const B=[N(),_(),P()],K={layerStyles:Rl(n.layerStyles??qe),textStyles:Rl(n.textStyles??qe),animationStyles:Rl(n.animationStyles??qe),tokens:Zf(c,Object.keys(n.tokens??qe),($,H)=>!$.extensions.conditions&&!H.includes("colorPalette")),semanticTokens:Zf(c,Object.keys(n.semanticTokens??qe),$=>!!$.extensions.conditions),keyframes:eg(n.keyframes??qe),breakpoints:eg(n.breakpoints??qe)};return{$$chakra:!0,_config:t,_global:B,breakpoints:u,tokens:c,conditions:d,utility:h,token:j,properties:f,layers:l,isValidProperty:g,splitCssProps:R,normalizeValue:p,getTokenCss:P,getGlobalCss:_,getPreflightCss:N,css:S,cva:C,sva:w,getRecipe:I,getSlotRecipe:F,hasRecipe:V,isRecipe:Y,isSlotRecipe:z,query:K}}function yO(e){const t=new Map;return e.allTokens.forEach(n=>{const{cssVar:r,virtual:i,conditions:o}=n.extensions,s=o||i?r.ref:n.value;t.set(n.name,{value:s,variable:r.ref})}),t}const Jf=e=>He(e)&&"value"in e,Rl=e=>({list(){return Object.keys(gf(e,Jf))},search(t){return this.list().filter(n=>n.includes(t))}}),Zf=(e,t,n)=>({categoryKeys:t,list(r){var i;return Array.from(((i=e.categoryMap.get(r))==null?void 0:i.entries())??[]).reduce((o,[s,a])=>(n(a,s)&&o.push(s),o),[])},search(r,i){return this.list(r).filter(o=>o.includes(i))}}),eg=e=>({list(){return Object.keys(e)},search(t){return this.list().filter(n=>n.includes(t))}}),xO={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Tl="var(--chakra-empty,/*!*/ /*!*/)",CO=rk({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":Tl,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,Tl])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,Tl])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.emphasized/80"}}),SO=sk({"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}}),wO=ok({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}),Nl=Se({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),EO=Se({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),Ve=Se({className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border.emphasized","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),{variants:kO,defaultVariants:OO}=Nl,IO=Se({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:kO,defaultVariants:OO}),tg=Se({className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}}),PO=Se({className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}}),RO=Se({className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),TO=Se({className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}}),Ce=Se({className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}}),NO=Se({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:Ce.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}}),AO=Se({className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}}),_O=Se({className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}}),VO=Se({className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}}),Fe=Se({className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border.emphasized",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),FO=Se({className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}}),LO=Se({className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}}),DO=Se({className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}}),zO=Se({className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}}),MO=Se({className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}}),$O={badge:Nl,button:EO,code:IO,container:PO,heading:RO,input:Ce,inputAddon:NO,kbd:AO,link:_O,mark:VO,separator:FO,skeleton:LO,skipNavLink:DO,spinner:zO,textarea:MO,icon:TO,checkmark:Ve,radiomark:Fe,colorSwatch:tg},BO=Cl.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.500}"}}}}),jO=Cl.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),WO=Cl.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}}),HO=Td.extendWith("itemBody"),UO=G("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),GO=G("alert").parts("title","description","root","indicator","content"),qO=G("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),KO=G("blockquote").parts("root","icon","content","caption"),XO=G("card").parts("root","header","body","footer","title","description"),YO=G("checkbox-card",["root","control","label","description","addon","indicator","content"]),QO=G("data-list").parts("root","item","itemLabel","itemValue"),JO=tl.extendWith("header","body","footer","backdrop"),ZO=tl.extendWith("header","body","footer","backdrop"),eI=vh.extendWith("textarea"),tI=G("empty-state",["root","content","indicator","title","description"]),nI=bh.extendWith("requiredIndicator"),rI=xh.extendWith("content"),iI=Ch.extendWith("itemContent","dropzoneContent","fileText"),oI=G("list").parts("root","item","indicator"),sI=Ph.extendWith("itemCommand"),aI=G("select").parts("root","field","indicator"),lI=Uh.extendWith("header","body","footer"),ng=gl.extendWith("itemAddon","itemIndicator"),cI=ng.extendWith("itemContent","itemDescription"),uI=Kh.extendWith("itemIndicator"),dI=Qh.extendWith("indicatorGroup"),hI=xw.extendWith("indicatorGroup","empty"),fI=tf.extendWith("markerIndicator"),gI=G("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),pI=G("status").parts("root","indicator"),mI=G("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),vI=nf.extendWith("indicator"),bI=G("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),yI=G("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),xI=G("tabs").parts("root","trigger","list","content","contentGroup","indicator"),CI=G("tag").parts("root","label","closeTrigger","startElement","endElement"),SI=G("timeline").parts("root","item","content","separator","indicator","connector","title","description"),wI=DS.extendWith("channelText"),EI=G("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);Md.extendWith("valueText");const kI=Kw,OI=q({className:"chakra-accordion",slots:HO.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}}),II=q({className:"chakra-action-bar",slots:UO.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}}),PI=q({slots:GO.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}}),RI=q({slots:_d.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),TI=q({className:"chakra-blockquote",slots:KO.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}}),NI=q({className:"chakra-breadcrumb",slots:qO.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}}),AI=q({className:"chakra-card",slots:XO.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}}),_I=q({slots:FS.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:Ve.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:(Om=(km=Ve.variants)==null?void 0:km.size)==null?void 0:Om.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:(Pm=(Im=Ve.variants)==null?void 0:Im.size)==null?void 0:Pm.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:(Tm=(Rm=Ve.variants)==null?void 0:Rm.size)==null?void 0:Tm.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:(Am=(Nm=Ve.variants)==null?void 0:Nm.size)==null?void 0:Am.lg}},variant:{outline:{control:(Vm=(_m=Ve.variants)==null?void 0:_m.variant)==null?void 0:Vm.outline},solid:{control:(Lm=(Fm=Ve.variants)==null?void 0:Fm.variant)==null?void 0:Lm.solid},subtle:{control:(zm=(Dm=Ve.variants)==null?void 0:Dm.variant)==null?void 0:zm.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),VI=q({slots:YO.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:Ve.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:(Mm=Ve.variants)==null?void 0:Mm.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:($m=Ve.variants)==null?void 0:$m.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:(Bm=Ve.variants)==null?void 0:Bm.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:(jm=Ve.variants)==null?void 0:jm.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:(Wm=Ve.variants)==null?void 0:Wm.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:(Hm=Ve.variants)==null?void 0:Hm.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:(Um=Ve.variants)==null?void 0:Um.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),FI=q({slots:EI.keys(),className:"code-block",base:{root:{colorPalette:"gray",rounded:"var(--code-block-radius)",overflow:"hidden",bg:"bg",color:"fg",borderWidth:"1px","--code-block-max-height":"320px","--code-block-bg":"colors.bg","--code-block-fg":"colors.fg","--code-block-obscured-opacity":"0.5","--code-block-obscured-blur":"1px","--code-block-line-number-width":"sizes.3","--code-block-line-number-margin":"spacing.4","--code-block-highlight-bg":"{colors.teal.focusRing/20}","--code-block-highlight-border":"colors.teal.focusRing","--code-block-highlight-added-bg":"{colors.green.focusRing/20}","--code-block-highlight-added-border":"colors.green.focusRing","--code-block-highlight-removed-bg":"{colors.red.focusRing/20}","--code-block-highlight-removed-border":"colors.red.focusRing"},header:{display:"flex",alignItems:"center",gap:"2",position:"relative",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)",mb:"calc(var(--code-block-padding) / 2 * -1)"},title:{display:"inline-flex",alignItems:"center",gap:"1.5",flex:"1",color:"fg.muted"},control:{gap:"1.5",display:"inline-flex",alignItems:"center"},footer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)"},content:{position:"relative",colorScheme:"dark",overflow:"hidden",borderBottomRadius:"var(--code-block-radius)",maxHeight:"var(--code-block-max-height)","& ::selection":{bg:"blue.500/40"},_expanded:{maxHeight:"unset"}},overlay:{"--bg":"{colors.black/50}",display:"flex",alignItems:"flex-end",justifyContent:"center",padding:"4",bgImage:"linear-gradient(0deg,var(--bg) 25%,transparent 100%)",color:"white",minH:"5rem",pos:"absolute",bottom:"0",insetInline:"0",zIndex:"1",fontWeight:"medium",_expanded:{display:"none"}},code:{fontFamily:"mono",lineHeight:"tall",whiteSpace:"pre",counterReset:"line 0"},codeText:{px:"var(--code-block-padding)",py:"var(--code-block-padding)",position:"relative",display:"block",width:"100%","&[data-has-focused]":{"& [data-line]:not([data-focused])":{transitionProperty:"opacity, filter",transitionDuration:"moderate",transitionTimingFunction:"ease-in-out",opacity:"var(--code-block-obscured-opacity)",filter:"blur(var(--code-block-obscured-blur))"},"&:hover":{"--code-block-obscured-opacity":"1","--code-block-obscured-blur":"0px"}},"&[data-has-line-numbers][data-plaintext]":{paddingInlineStart:"calc(var(--code-block-line-number-width) + var(--code-block-line-number-margin) + var(--code-block-padding))"},"& [data-line]":{position:"relative","--highlight-bg":"var(--code-block-highlight-bg)","--highlight-border":"var(--code-block-highlight-border)","&[data-highlight], &[data-diff]":{display:"inline-block",width:"full","&:after":{content:"''",display:"block",position:"absolute",insetStart:"calc(var(--code-block-padding) * -1)",insetEnd:"0px",width:"calc(100% + var(--code-block-padding) * 2)",height:"100%",bg:"var(--highlight-bg)",borderStartWidth:"2px",borderStartColor:"var(--highlight-border)"}},"&[data-diff='added']":{"--highlight-bg":"var(--code-block-highlight-added-bg)","--highlight-border":"var(--code-block-highlight-added-border)"},"&[data-diff='removed']":{"--highlight-bg":"var(--code-block-highlight-removed-bg)","--highlight-border":"var(--code-block-highlight-removed-border)"}},"&[data-word-wrap]":{"&[data-plaintext], & [data-line]":{whiteSpace:"pre-wrap",wordBreak:"break-all"}},"&[data-has-line-numbers]":{"--content":"counter(line)","& [data-line]:before":{content:"var(--content)",counterIncrement:"line",width:"var(--code-block-line-number-width)",marginRight:"var(--code-block-line-number-margin)",display:"inline-block",textAlign:"end",userSelect:"none",opacity:.4},"& [data-diff='added']:before":{content:"'+'"},"& [data-diff='removed']:before":{content:"'-'"}}}},variants:{size:{sm:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.md","--code-block-header-height":"sizes.8"},title:{textStyle:"xs"},code:{fontSize:"xs"}},md:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.lg","--code-block-header-height":"sizes.10"},title:{textStyle:"xs"},code:{fontSize:"sm"}},lg:{root:{"--code-block-padding":"spacing.5","--code-block-radius":"radii.xl","--code-block-header-height":"sizes.12"},title:{textStyle:"sm"},code:{fontSize:"sm"}}}},defaultVariants:{size:"md"}}),LI=q({slots:ju.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}),DI=q({className:"colorPicker",slots:wI.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...tg.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...Ce.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:(qm=(Gm=Ce.variants)==null?void 0:Gm.size)==null?void 0:qm["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:(Xm=(Km=Ce.variants)==null?void 0:Km.size)==null?void 0:Xm.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:(Qm=(Ym=Ce.variants)==null?void 0:Ym.size)==null?void 0:Qm.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:(Zm=(Jm=Ce.variants)==null?void 0:Jm.size)==null?void 0:Zm.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:(tv=(ev=Ce.variants)==null?void 0:ev.size)==null?void 0:tv.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:(rv=(nv=Ce.variants)==null?void 0:nv.size)==null?void 0:rv.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:(ov=(iv=Ce.variants)==null?void 0:iv.size)==null?void 0:ov["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:(av=(sv=Ce.variants)==null?void 0:sv.variant)==null?void 0:av.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:(cv=(lv=Ce.variants)==null?void 0:lv.variant)==null?void 0:cv.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),zI=q({className:"chakra-combobox",slots:hI.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",px:"var(--combobox-input-padding-x)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},control:{pos:"relative"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}}),MI=q({slots:QO.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}}),$I=q({slots:JO.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100dvw",h:"100dvh",zIndex:"var(--z-index)",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100dvw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100dvw",minH:"100dvh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),BI=q({slots:ZO.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-left-full, fade-out"}}}},top:{positioner:{justifyContent:"stretch",alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{justifyContent:"stretch",alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}}),rg=Ir({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),jI=q({slots:eI.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...rg,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...rg,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}}),WI=q({slots:tI.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}}),HI=q({className:"chakra-field",slots:nI.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}}),UI=q({className:"fieldset",slots:rI.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),GI=q({className:"chakra-file-upload",slots:iI.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}}),qI=q({className:"chakra-hover-card",slots:Sh.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),KI=q({className:"chakra-list",slots:oI.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),XI=q({className:"chakra-listbox",slots:kI.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},content:{display:"flex",maxH:"96",p:"1",gap:"1",textStyle:"sm",outline:"none",scrollPadding:"1",_horizontal:{flexDirection:"row",overflowX:"auto"},_vertical:{flexDirection:"column",overflowY:"auto"},"--listbox-item-padding-x":"spacing.2","--listbox-item-padding-y":"spacing.1.5"},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"pointer",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)",_highlighted:{outline:"2px solid",outlineColor:"border.emphasized"},_disabled:{pointerEvents:"none",opacity:"0.5"}},empty:{py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{mt:"1.5",_first:{mt:"0"}},itemGroupLabel:{py:"1.5",px:"2",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"4"}}},variants:{variant:{subtle:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_hover:{bg:"bg.emphasized/60"},_selected:{bg:"bg.muted"}}},solid:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_selected:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}},plain:{}}},defaultVariants:{variant:"subtle"}}),YI=q({className:"chakra-menu",slots:sI.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1",scrollPadding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5",scrollPadding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}}),ds=q({className:"chakra-select",slots:dI.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}}),QI=q({className:"chakra-native-select",slots:aI.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error","--input-height":"var(--select-field-height)",height:"var(--select-field-height)",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:(uv=ds.variants)==null?void 0:uv.variant.outline.trigger},subtle:{field:(dv=ds.variants)==null?void 0:dv.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{root:{"--select-field-height":"sizes.8"},field:{textStyle:"xs",ps:"2",pe:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{root:{"--select-field-height":"sizes.9"},field:{textStyle:"sm",ps:"2.5",pe:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{root:{"--select-field-height":"sizes.10"},field:{textStyle:"sm",ps:"3",pe:"8"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{root:{"--select-field-height":"sizes.11"},field:{textStyle:"md",ps:"4",pe:"8"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{root:{"--select-field-height":"sizes.12"},field:{textStyle:"md",ps:"4.5",pe:"10"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:ds.defaultVariants});function Al(e,t){const n={};for(const r in e){const i=t(r,e[r]);n[i[0]]=i[1]}return n}const ig=Ir({display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}}),JI=q({className:"chakra-number-input",slots:Mh.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...Ce.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...ig,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...ig,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:Ce.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:Ce.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:Ce.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:Ce.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:Al(Ce.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:og,defaultVariants:ZI}=Ce,eP=q({className:"chakra-pin-input",slots:Hh.keys(),base:{input:{...Ce.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:Al(og.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:Al(og.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:ZI}),tP=q({className:"chakra-popover",slots:lI.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}}),nP=q({slots:fl.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}}),rP=q({className:"chakra-progress-circle",slots:fl.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dashoffset, stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}}),iP=q({slots:qh.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}}),oP=q({className:"chakra-radio-card",slots:cI.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:Fe.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:(hv=Fe.variants)==null?void 0:hv.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:(fv=Fe.variants)==null?void 0:fv.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:(gv=Fe.variants)==null?void 0:gv.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:(pv=Fe.variants)==null?void 0:pv.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:(mv=Fe.variants)==null?void 0:mv.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:(vv=Fe.variants)==null?void 0:vv.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:(bv=Fe.variants)==null?void 0:bv.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),sP=q({className:"chakra-radio-group",slots:ng.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:Fe.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:(xv=(yv=Fe.variants)==null?void 0:yv.variant)==null?void 0:xv.outline},subtle:{itemControl:(Sv=(Cv=Fe.variants)==null?void 0:Cv.variant)==null?void 0:Sv.subtle},solid:{itemControl:(Ev=(wv=Fe.variants)==null?void 0:wv.variant)==null?void 0:Ev.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:(Ov=(kv=Fe.variants)==null?void 0:kv.size)==null?void 0:Ov.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:(Pv=(Iv=Fe.variants)==null?void 0:Iv.size)==null?void 0:Pv.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:(Tv=(Rv=Fe.variants)==null?void 0:Rv.size)==null?void 0:Tv.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:(Av=(Nv=Fe.variants)==null?void 0:Nv.size)==null?void 0:Av.lg}}},defaultVariants:{size:"md",variant:"solid"}}),aP=q({className:"chakra-rating-group",slots:uI.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}}),lP=q({className:"chakra-scroll-area",slots:Xh.keys(),base:{root:{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative",overflow:"hidden","--scrollbar-margin":"2px","--scrollbar-click-area":"calc(var(--scrollbar-size) + calc(var(--scrollbar-margin) * 2))"},viewport:{display:"flex",flexDirection:"column",height:"100%",width:"100%",borderRadius:"inherit",WebkitOverflowScrolling:"touch",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},content:{minWidth:"100%"},scrollbar:{display:"flex",userSelect:"none",touchAction:"none",borderRadius:"full",colorPalette:"gray",transition:"opacity 150ms 300ms",position:"relative",margin:"var(--scrollbar-margin)","&:not([data-overflow-x], [data-overflow-y])":{display:"none"},bg:"{colors.colorPalette.solid/10}","--thumb-bg":"{colors.colorPalette.solid/25}","&:is(:hover, :active)":{"--thumb-bg":"{colors.colorPalette.solid/50}"},_before:{content:'""',position:"absolute"},_vertical:{width:"var(--scrollbar-size)",flexDirection:"column","&::before":{width:"var(--scrollbar-click-area)",height:"100%",insetInlineStart:"calc(var(--scrollbar-margin) * -1)"}},_horizontal:{height:"var(--scrollbar-size)",flexDirection:"row","&::before":{height:"var(--scrollbar-click-area)",width:"100%",top:"calc(var(--scrollbar-margin) * -1)"}}},thumb:{borderRadius:"inherit",bg:"var(--thumb-bg)",transition:"backgrounds",_vertical:{width:"full"},_horizontal:{height:"full"}},corner:{bg:"bg.muted",margin:"var(--scrollbar-margin)",opacity:0,transition:"opacity 150ms 300ms","&[data-hover]":{transitionDelay:"0ms",opacity:1}}},variants:{variant:{hover:{scrollbar:{opacity:"0","&[data-hover], &[data-scrolling]":{opacity:"1",transitionDuration:"faster",transitionDelay:"0ms"}}},always:{scrollbar:{opacity:"1"}}},size:{xs:{root:{"--scrollbar-size":"sizes.1"}},sm:{root:{"--scrollbar-size":"sizes.1.5"}},md:{root:{"--scrollbar-size":"sizes.2"}},lg:{root:{"--scrollbar-size":"sizes.3"}}}},defaultVariants:{size:"md",variant:"hover"}}),cP=q({className:"chakra-segment-group",slots:Yh.keys(),base:{root:{"--segment-radius":"radii.l2",borderRadius:"l2",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"sm",pos:"absolute",bg:{_light:"bg",_dark:"bg.emphasized"},width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}}),uP=q({className:"chakra-slider",slots:fI.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}}),dP=q({className:"chakra-stat",slots:gI.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}}),hP=q({className:"chakra-status",slots:pI.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),fP=q({className:"chakra-steps",slots:mI.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}}),gP=q({slots:vI.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}}),pP=q({className:"chakra-table",slots:bI.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),mP=q({slots:xI.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-indicator-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-indicator-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}}),ut=(_v=Nl.variants)==null?void 0:_v.variant,vP=q({slots:CI.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:ut==null?void 0:ut.subtle},solid:{root:ut==null?void 0:ut.solid},outline:{root:ut==null?void 0:ut.outline},surface:{root:ut==null?void 0:ut.surface}}},defaultVariants:{size:"md",variant:"surface"}}),bP=q({slots:SI.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"& :where(.chakra-timeline__separator)":{display:"none"}}},separator:{position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"6",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid"}}),yP=q({slots:yI.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}}),xP=q({slots:rf.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),sg=Ir({display:"flex",alignItems:"center",gap:"var(--tree-item-gap)",rounded:"l2",userSelect:"none",position:"relative","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-icon-offset":"calc(var(--tree-icon-size) * var(--tree-depth) * 0.5)","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset) + var(--tree-icon-offset))",ps:"var(--tree-offset)",pe:"var(--tree-padding-inline)",py:"var(--tree-padding-block)",focusVisibleRing:"inside",focusRingColor:"border.emphasized",focusRingWidth:"2px","&:hover, &:focus-visible":{bg:"bg.muted"},_disabled:{layerStyle:"disabled"}}),ag=Ir({flex:"1"}),lg=Ir({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),cg=Ir({_selected:{layerStyle:"fill.solid"}}),CP=q({slots:kh.keys(),className:"chakra-tree-view",base:{root:{width:"full",display:"flex",flexDirection:"column",gap:"2"},tree:{display:"flex",flexDirection:"column","--tree-item-gap":"spacing.2",_icon:{boxSize:"var(--tree-icon-size)"}},label:{fontWeight:"medium",textStyle:"sm"},branch:{position:"relative"},branchContent:{position:"relative"},branchIndentGuide:{height:"100%",width:"1px",bg:"border",position:"absolute","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset))","--tree-icon-offset":"calc(var(--tree-icon-size) * 0.5 * var(--depth))",insetInlineStart:"calc(var(--tree-offset) + var(--tree-icon-offset))",zIndex:"1"},branchIndicator:{color:"fg.muted",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(90deg)"}},branchTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center"},branchControl:sg,item:sg,itemText:ag,branchText:ag,nodeCheckbox:{display:"inline-flex"}},variants:{size:{md:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1.5","--tree-icon-size":"spacing.4"}},sm:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}},xs:{tree:{textStyle:"xs","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.2","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}}},variant:{subtle:{branchControl:lg,item:lg},solid:{branchControl:cg,item:cg}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),SP={accordion:OI,actionBar:II,alert:PI,avatar:RI,blockquote:TI,breadcrumb:NI,card:AI,checkbox:_I,checkboxCard:VI,codeBlock:FI,collapsible:LI,dataList:MI,dialog:$I,drawer:BI,editable:jI,emptyState:WI,field:HI,fieldset:UI,fileUpload:GI,hoverCard:qI,list:KI,listbox:XI,menu:YI,nativeSelect:QI,numberInput:JI,pinInput:eP,popover:tP,progress:nP,progressCircle:rP,radioCard:oP,radioGroup:sP,ratingGroup:aP,scrollArea:lP,segmentGroup:cP,select:ds,combobox:zI,slider:uP,stat:dP,steps:fP,switch:gP,table:pP,tabs:mP,tag:vP,toast:yP,tooltip:xP,status:hP,timeline:bP,colorPicker:DI,qrCode:iP,treeView:CP},wP=ik({"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}}),EP=xe.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),kP=xe.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),OP=xe.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),IP=xe.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),PP=xe.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),RP=xe.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),TP=xe.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),NP=xe.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),AP=xe.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),_P=xe.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),ug='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',VP=xe.fonts({heading:{value:`Inter, ${ug}`},body:{value:`Inter, ${ug}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),FP=nk({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"0"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"0"}},"expand-width":{from:{width:"0"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"0"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}}),LP=xe.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),DP=xe.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),zP=xe.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),dg=xe.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),MP=xe.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),$P=xe.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),BP=xe.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),jP=xe.sizes({...MP,...dg,...BP,...$P}),WP=xe.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:2147483647}}),HP=Sl({preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:CO,theme:{breakpoints:xO,keyframes:FP,tokens:{aspectRatios:kP,animations:EP,blurs:OP,borders:IP,colors:PP,durations:TP,easings:NP,fonts:VP,fontSizes:AP,fontWeights:_P,letterSpacings:LP,lineHeights:DP,radii:zP,spacing:dg,sizes:jP,zIndex:WP,cursor:RP},semanticTokens:{colors:BO,shadows:WO,radii:jO},recipes:$O,slotRecipes:SP,textStyles:wP,layerStyles:SO,animationStyles:wO}}),dt=cf(gk,HP);Qf(dt);function UP(e){const{key:t,recipe:n}=e,r=uo();return E.useMemo(()=>{const i=n||(t!=null?r.getSlotRecipe(t):{});return r.sva(structuredClone(i))},[t,n,r])}const GP=e=>e.charAt(0).toUpperCase()+e.slice(1),_l=e=>{const{key:t,recipe:n}=e,r=GP(t||n.className||"Component"),[i,o]=lr({name:`${r}StylesContext`,errorMessage:`use${r}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `}),[s,a]=lr({name:`${r}ClassNameContext`,errorMessage:`use${r}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `,strict:!1}),[l,c]=lr({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`,defaultValue:{}});function u(f){const{unstyled:g,...p}=f,b=UP({key:t,recipe:p.recipe||n}),[x,S]=E.useMemo(()=>b.splitVariantProps(p),[p,b]);return{styles:E.useMemo(()=>g?e0:b(x),[g,x,b]),classNames:b.classNameMap,props:S}}function d(f,g={}){const{defaultProps:p}=g,b=x=>{const S=c(),C=E.useMemo(()=>ni(p,S,x),[S,x]),{styles:w,classNames:P,props:_}=u(C);return v.jsx(i,{value:w,children:v.jsx(s,{value:P,children:v.jsx(f,{..._})})})};return b.displayName=f.displayName||f.name,b}return{StylesProvider:i,ClassNamesProvider:s,PropsProvider:l,usePropsContext:c,useRecipeResult:u,withProvider:(f,g,p)=>{const{defaultProps:b,...x}=p??{},S=Oe(f,{},x),C=E.forwardRef((w,P)=>{var Y;const _=c(),R=E.useMemo(()=>ni(b??{},_,w),[_,w]),{styles:N,props:T,classNames:j}=u(R),I=j[g],F=v.jsx(i,{value:N,children:v.jsx(s,{value:j,children:v.jsx(S,{ref:P,...T,css:[N[g],R.css],className:st(R.className,I)})})});return((Y=p==null?void 0:p.wrapElement)==null?void 0:Y.call(p,F,R))??F});return C.displayName=f.displayName||f.name,C},withContext:(f,g,p)=>{const b=Oe(f,{},p),x=E.forwardRef((S,C)=>{const{unstyled:w,...P}=S,_=o(),R=a(),N=R==null?void 0:R[g];return v.jsx(b,{...P,css:[!w&&g?_[g]:void 0,S.css],ref:C,className:st(S.className,N)})});return x.displayName=f.displayName||f.name,x},withRootProvider:d,useStyles:o,useClassNames:a}},hg=Oe("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});hg.displayName="AbsoluteCenter";const qP=e=>v.jsx(Oe.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:v.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z"})}),fg=e=>v.jsx(Oe.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:v.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"})}),gg=e=>v.jsx(Oe.svg,{viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",...e,children:v.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"})}),KP=e=>v.jsx(Oe.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"})}),[XP,YP]=lr({name:"AlertStatusContext",hookName:"useAlertStatusContext",providerName:""}),{withProvider:QP,withContext:Vl,useStyles:JP}=_l({key:"alert"}),ZP=QP("div","root",{forwardAsChild:!0,wrapElement(e,t){return v.jsx(XP,{value:{status:t.status||"info"},children:e})}}),pg=Vl("div","title"),eR=Vl("div","description"),tR=Vl("div","content"),nR={info:gg,warning:fg,success:qP,error:fg,neutral:gg},rR=E.forwardRef(function(t,n){const r=YP(),i=JP(),o=typeof r.status=="string"?nR[r.status]:E.Fragment,{children:s=v.jsx(o,{}),...a}=t;return v.jsx(Oe.span,{ref:n,...a,css:[i.indicator,t.css],children:s})}),iR=e=>e?"":void 0,{withContext:oR}=ii({key:"badge"}),mg=oR("span"),{withContext:sR}=ii({key:"spinner"}),aR=sR("span"),lR=O.forwardRef(function(t,n){const{spinner:r=v.jsx(aR,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:i="start",children:o,text:s,visible:a=!0,...l}=t;return a?s?v.jsxs(_o,{ref:n,display:"contents",...l,children:[i==="start"&&r,s,i==="end"&&r]}):r?v.jsxs(_o,{ref:n,display:"contents",...l,children:[v.jsx(hg,{display:"inline-flex",children:r}),v.jsx(_o,{visibility:"hidden",display:"contents",children:o})]}):v.jsx(_o,{ref:n,display:"contents",...l,children:o}):o}),{useRecipeResult:cR,usePropsContext:uR}=ii({key:"button"}),Ii=E.forwardRef(function(t,n){const r=uR(),i=E.useMemo(()=>ni(r,t),[r,t]),o=cR(i),{loading:s,loadingText:a,children:l,spinner:c,spinnerPlacement:u,...d}=o.props;return v.jsx(Oe.button,{type:"button",ref:n,...d,"data-loading":iR(s),disabled:s||d.disabled,className:st(o.className,i.className),css:[o.styles,i.css],children:!i.asChild&&s?v.jsx(lR,{spinner:c,text:a,spinnerPlacement:u,children:l}):l})}),hs=E.forwardRef(function(t,n){return v.jsx(Ii,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:n,...t})}),vg=O.forwardRef(function(t,n){return v.jsx(hs,{variant:"ghost","aria-label":"Close",ref:n,...t,children:t.children??v.jsx(KP,{})})}),bg=Oe("div",{base:{display:"flex",alignItems:"center",justifyContent:"center"},variants:{inline:{true:{display:"inline-flex"}}}});bg.displayName="Center";function dR(e){const{gap:t,direction:n}=e,r={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":lf(n,i=>r[i])}}function hR(e){return E.Children.toArray(e).filter(t=>E.isValidElement(t))}const yg=E.forwardRef(function(t,n){const{direction:r="column",align:i,justify:o,gap:s="0.5rem",wrap:a,children:l,separator:c,className:u,...d}=t,h=E.useMemo(()=>dR({gap:s,direction:r}),[s,r]),m=E.useMemo(()=>E.isValidElement(c)?hR(l).map((f,g,p)=>{const b=typeof f.key<"u"?f.key:g,x=c,S=E.cloneElement(x,{css:[h,x.props.css]});return v.jsxs(E.Fragment,{children:[f,g===p.length-1?null:S]},b)}):l,[l,c,h]);return v.jsx(Oe.div,{ref:n,display:"flex",alignItems:i,justifyContent:o,flexDirection:r,flexWrap:a,gap:c?void 0:s,className:st("chakra-stack",u),...d,children:m})}),{withRootProvider:xg,withContext:_t}=_l({key:"dialog"});xg($w,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const Cg=xg(Mw,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});_t(mh,"trigger",{forwardAsChild:!0});const Sg=_t(lh,"positioner",{forwardAsChild:!0}),wg=_t(sh,"content",{forwardAsChild:!0});_t(ah,"description",{forwardAsChild:!0});const Eg=_t(ph,"title",{forwardAsChild:!0}),kg=_t(oh,"closeTrigger",{forwardAsChild:!0}),Og=E.forwardRef(function(t,n){const r=on();return v.jsx(Oe.button,{...t,ref:n,onClick:()=>r.setOpen(!1)})}),Ig=_t(ih,"backdrop",{forwardAsChild:!0}),Pg=_t("div","body"),Rg=_t("div","footer"),Tg=_t("div","header"),Fl=E.forwardRef(function(t,n){const{direction:r,align:i,justify:o,wrap:s,basis:a,grow:l,shrink:c,inline:u,...d}=t;return v.jsx(Oe.div,{ref:n,...d,css:{display:u?"inline-flex":"flex",flexDirection:r,alignItems:i,justifyContent:o,flexWrap:s,flexBasis:a,flexGrow:l,flexShrink:c,...t.css}})}),fR=E.forwardRef(function(t,n){return v.jsx(yg,{align:"center",...t,direction:"row",ref:n})}),gR=E.forwardRef(function(t,n){return v.jsx(yg,{align:"center",...t,direction:"column",ref:n})}),{StylesProvider:pR,ClassNamesProvider:mR,useRecipeResult:vR,withContext:Wt}=_l({key:"table"}),Ng=E.forwardRef(function({native:t,...n},r){const{styles:i,props:o,classNames:s}=vR(n),a=E.useMemo(()=>t?{...i.root,"& thead":i.header,"& tbody":i.body,"& tfoot":i.footer,"& thead th":i.columnHeader,"& tr":i.row,"& td":i.cell,"& caption":i.caption}:i.root,[i,t]);return v.jsx(mR,{value:s,children:v.jsx(pR,{value:i,children:v.jsx(Oe.table,{ref:r,...o,css:[a,n.css],className:st(s==null?void 0:s.root,n.className)})})})}),fs=Wt("tr","row");Oe("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}});const Ag=Wt("thead","header");Wt("tfoot","footer");const Te=Wt("th","columnHeader"),Ne=Wt("td","cell");Wt("caption","caption",{defaultProps:{captionSide:"bottom"}});const _g=Wt("tbody","body");Wt("colgroup"),Wt("col");const{withContext:bR}=ii({key:"textarea"}),yR=bR(yh);var Ar=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},xR={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},CR=(Vv=class{constructor(){W(this,fn,xR);W(this,hc,!1)}setTimeoutProvider(e){M(this,fn,e)}setTimeout(e,t){return y(this,fn).setTimeout(e,t)}clearTimeout(e){y(this,fn).clearTimeout(e)}setInterval(e,t){return y(this,fn).setInterval(e,t)}clearInterval(e){y(this,fn).clearInterval(e)}},fn=new WeakMap,hc=new WeakMap,Vv),Wn=new CR;function SR(e){setTimeout(e,0)}var Hn=typeof window>"u"||"Deno"in globalThis;function $e(){}function wR(e,t){return typeof e=="function"?e(t):e}function Ll(e){return typeof e=="number"&&e>=0&&e!==1/0}function Vg(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ln(e,t){return typeof e=="function"?e(t):e}function ht(e,t){return typeof e=="function"?e(t):e}function Fg(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Dl(s,t.options))return!1}else if(!Pi(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||o&&!o(t))}function Lg(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Un(t.options.mutationKey)!==Un(o))return!1}else if(!Pi(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Dl(e,t){return((t==null?void 0:t.queryKeyHashFn)||Un)(e)}function Un(e){return JSON.stringify(e,(t,n)=>zl(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Pi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Pi(e[n],t[n])):!1}var ER=Object.prototype.hasOwnProperty;function Dg(e,t){if(e===t)return e;const n=zg(e)&&zg(t);if(!n&&!(zl(e)&&zl(t)))return t;const i=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),s=o.length,a=n?new Array(s):{};let l=0;for(let c=0;c{Wn.setTimeout(t,e)})}function Ml(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Dg(e,t):t}function OR(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function IR(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var $l=Symbol();function $g(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===$l?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Bg(e,t){return typeof e=="function"?e(...t):!!e}var PR=(Fv=class extends Ar{constructor(){super();W(this,Yn);W(this,gn);W(this,Dr);M(this,Dr,t=>{if(!Hn&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){y(this,gn)||this.setEventListener(y(this,Dr))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,gn))==null||t.call(this),M(this,gn,void 0))}setEventListener(t){var n;M(this,Dr,t),(n=y(this,gn))==null||n.call(this),M(this,gn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){y(this,Yn)!==t&&(M(this,Yn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof y(this,Yn)=="boolean"?y(this,Yn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Yn=new WeakMap,gn=new WeakMap,Dr=new WeakMap,Fv),Bl=new PR;function jl(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var RR=SR;function TR(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=RR;const o=a=>{t?e.push(a):i(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var we=TR(),NR=(Lv=class extends Ar{constructor(){super();W(this,zr,!0);W(this,pn);W(this,Mr);M(this,Mr,t=>{if(!Hn&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){y(this,pn)||this.setEventListener(y(this,Mr))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,pn))==null||t.call(this),M(this,pn,void 0))}setEventListener(t){var n;M(this,Mr,t),(n=y(this,pn))==null||n.call(this),M(this,pn,t(this.setOnline.bind(this)))}setOnline(t){y(this,zr)!==t&&(M(this,zr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return y(this,zr)}},zr=new WeakMap,pn=new WeakMap,Mr=new WeakMap,Lv),ps=new NR;function AR(e){return Math.min(1e3*2**e,3e4)}function jg(e){return(e??"online")==="online"?ps.isOnline():!0}var Wl=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Wg(e){let t=!1,n=0,r;const i=jl(),o=()=>i.status!=="pending",s=g=>{var p;if(!o()){const b=new Wl(g);h(b),(p=e.onCancel)==null||p.call(e,b)}},a=()=>{t=!0},l=()=>{t=!1},c=()=>Bl.isFocused()&&(e.networkMode==="always"||ps.isOnline())&&e.canRun(),u=()=>jg(e.networkMode)&&e.canRun(),d=g=>{o()||(r==null||r(),i.resolve(g))},h=g=>{o()||(r==null||r(),i.reject(g))},m=()=>new Promise(g=>{var p;r=b=>{(o()||c())&&g(b)},(p=e.onPause)==null||p.call(e)}).then(()=>{var g;r=void 0,o()||(g=e.onContinue)==null||g.call(e)}),f=()=>{if(o())return;let g;const p=n===0?e.initialPromise:void 0;try{g=p??e.fn()}catch(b){g=Promise.reject(b)}Promise.resolve(g).then(d).catch(b=>{var P;if(o())return;const x=e.retry??(Hn?0:3),S=e.retryDelay??AR,C=typeof S=="function"?S(n,b):S,w=x===!0||typeof x=="number"&&nc()?void 0:m()).then(()=>{t?h(b):f()})})};return{promise:i,status:()=>i.status,cancel:s,continue:()=>(r==null||r(),i),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?f():m().then(f),i)}}var Hg=(Dv=class{constructor(){W(this,Qn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ll(this.gcTime)&&M(this,Qn,Wn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Hn?1/0:5*60*1e3))}clearGcTimeout(){y(this,Qn)&&(Wn.clearTimeout(y(this,Qn)),M(this,Qn,void 0))}},Qn=new WeakMap,Dv),_R=(zv=class extends Hg{constructor(t){super();W(this,Ct);W(this,Jn);W(this,$r);W(this,ft);W(this,Zn);W(this,Ae);W(this,Mi);W(this,er);M(this,er,!1),M(this,Mi,t.defaultOptions),this.setOptions(t.options),this.observers=[],M(this,Zn,t.client),M(this,ft,y(this,Zn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,M(this,Jn,Gg(this.options)),this.state=t.state??y(this,Jn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=y(this,Ae))==null?void 0:t.promise}setOptions(t){if(this.options={...y(this,Mi),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Gg(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),M(this,Jn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&y(this,ft).remove(this)}setData(t,n){const r=Ml(this.state.data,t,this.options);return J(this,Ct,Xt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){J(this,Ct,Xt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=y(this,Ae))==null?void 0:r.promise;return(i=y(this,Ae))==null||i.cancel(t),n?n.then($e).catch($e):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(y(this,Jn))}isActive(){return this.observers.some(t=>ht(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===$l||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ln(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Vg(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,Ae))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,Ae))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),y(this,ft).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(y(this,Ae)&&(y(this,er)?y(this,Ae).cancel({revert:!0}):y(this,Ae).cancelRetry()),this.scheduleGc()),y(this,ft).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||J(this,Ct,Xt).call(this,{type:"invalidate"})}async fetch(t,n){var l,c,u,d,h,m,f,g,p,b,x,S;if(this.state.fetchStatus!=="idle"&&((l=y(this,Ae))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(y(this,Ae))return y(this,Ae).continueRetry(),y(this,Ae).promise}if(t&&this.setOptions(t),!this.options.queryFn){const C=this.observers.find(w=>w.options.queryFn);C&&this.setOptions(C.options)}const r=new AbortController,i=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(M(this,er,!0),r.signal)})},o=()=>{const C=$g(this.options,n),P=(()=>{const _={client:y(this,Zn),queryKey:this.queryKey,meta:this.meta};return i(_),_})();return M(this,er,!1),this.options.persister?this.options.persister(C,P,this):C(P)},a=(()=>{const C={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:y(this,Zn),state:this.state,fetchFn:o};return i(C),C})();(c=this.options.behavior)==null||c.onFetch(a,this),M(this,$r,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&J(this,Ct,Xt).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta}),M(this,Ae,Wg({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:C=>{C instanceof Wl&&C.revert&&this.setState({...y(this,$r),fetchStatus:"idle"}),r.abort()},onFail:(C,w)=>{J(this,Ct,Xt).call(this,{type:"failed",failureCount:C,error:w})},onPause:()=>{J(this,Ct,Xt).call(this,{type:"pause"})},onContinue:()=>{J(this,Ct,Xt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const C=await y(this,Ae).start();if(C===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(C),(m=(h=y(this,ft).config).onSuccess)==null||m.call(h,C,this),(g=(f=y(this,ft).config).onSettled)==null||g.call(f,C,this.state.error,this),C}catch(C){if(C instanceof Wl){if(C.silent)return y(this,Ae).promise;if(C.revert){if(this.state.data===void 0)throw C;return this.state.data}}throw J(this,Ct,Xt).call(this,{type:"error",error:C}),(b=(p=y(this,ft).config).onError)==null||b.call(p,C,this),(S=(x=y(this,ft).config).onSettled)==null||S.call(x,this.state.data,C,this),C}finally{this.scheduleGc()}}},Jn=new WeakMap,$r=new WeakMap,ft=new WeakMap,Zn=new WeakMap,Ae=new WeakMap,Mi=new WeakMap,er=new WeakMap,Ct=new WeakSet,Xt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Ug(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return M(this,$r,t.manual?i:void 0),i;case"error":const o=t.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),we.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),y(this,ft).notify({query:this,type:"updated",action:t})})},zv);function Ug(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:jg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Gg(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var VR=(Mv=class extends Ar{constructor(t,n){super();W(this,oe);W(this,Ye);W(this,ee);W(this,$i);W(this,Be);W(this,tr);W(this,Br);W(this,Ht);W(this,mn);W(this,Bi);W(this,jr);W(this,Wr);W(this,nr);W(this,rr);W(this,vn);W(this,Hr,new Set);this.options=n,M(this,Ye,t),M(this,mn,null),M(this,Ht,jl()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(y(this,ee).addObserver(this),qg(y(this,ee),this.options)?J(this,oe,Hi).call(this):this.updateResult(),J(this,oe,yc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Hl(y(this,ee),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Hl(y(this,ee),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,J(this,oe,xc).call(this),J(this,oe,Cc).call(this),y(this,ee).removeObserver(this)}setOptions(t){const n=this.options,r=y(this,ee);if(this.options=y(this,Ye).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ht(this.options.enabled,y(this,ee))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");J(this,oe,Sc).call(this),y(this,ee).setOptions(this.options),n._defaulted&&!gs(this.options,n)&&y(this,Ye).getQueryCache().notify({type:"observerOptionsUpdated",query:y(this,ee),observer:this});const i=this.hasListeners();i&&Kg(y(this,ee),r,this.options,n)&&J(this,oe,Hi).call(this),this.updateResult(),i&&(y(this,ee)!==r||ht(this.options.enabled,y(this,ee))!==ht(n.enabled,y(this,ee))||ln(this.options.staleTime,y(this,ee))!==ln(n.staleTime,y(this,ee)))&&J(this,oe,mc).call(this);const o=J(this,oe,vc).call(this);i&&(y(this,ee)!==r||ht(this.options.enabled,y(this,ee))!==ht(n.enabled,y(this,ee))||o!==y(this,vn))&&J(this,oe,bc).call(this,o)}getOptimisticResult(t){const n=y(this,Ye).getQueryCache().build(y(this,Ye),t),r=this.createResult(n,t);return LR(this,r)&&(M(this,Be,r),M(this,Br,this.options),M(this,tr,y(this,ee).state)),r}getCurrentResult(){return y(this,Be)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&!this.options.experimental_prefetchInRender&&y(this,Ht).status==="pending"&&y(this,Ht).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,i))})}trackProp(t){y(this,Hr).add(t)}getCurrentQuery(){return y(this,ee)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=y(this,Ye).defaultQueryOptions(t),r=y(this,Ye).getQueryCache().build(y(this,Ye),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return J(this,oe,Hi).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),y(this,Be)))}createResult(t,n){var N;const r=y(this,ee),i=this.options,o=y(this,Be),s=y(this,tr),a=y(this,Br),c=t!==r?t.state:y(this,$i),{state:u}=t;let d={...u},h=!1,m;if(n._optimisticResults){const T=this.hasListeners(),j=!T&&qg(t,n),I=T&&Kg(t,r,n,i);(j||I)&&(d={...d,...Ug(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:f,errorUpdatedAt:g,status:p}=d;m=d.data;let b=!1;if(n.placeholderData!==void 0&&m===void 0&&p==="pending"){let T;o!=null&&o.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(T=o.data,b=!0):T=typeof n.placeholderData=="function"?n.placeholderData((N=y(this,Wr))==null?void 0:N.state.data,y(this,Wr)):n.placeholderData,T!==void 0&&(p="success",m=Ml(o==null?void 0:o.data,T,n),h=!0)}if(n.select&&m!==void 0&&!b)if(o&&m===(s==null?void 0:s.data)&&n.select===y(this,Bi))m=y(this,jr);else try{M(this,Bi,n.select),m=n.select(m),m=Ml(o==null?void 0:o.data,m,n),M(this,jr,m),M(this,mn,null)}catch(T){M(this,mn,T)}y(this,mn)&&(f=y(this,mn),m=y(this,jr),g=Date.now(),p="error");const x=d.fetchStatus==="fetching",S=p==="pending",C=p==="error",w=S&&x,P=m!==void 0,R={status:p,fetchStatus:d.fetchStatus,isPending:S,isSuccess:p==="success",isError:C,isInitialLoading:w,isLoading:w,data:m,dataUpdatedAt:d.dataUpdatedAt,error:f,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:x,isRefetching:x&&!S,isLoadingError:C&&!P,isPaused:d.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:C&&P,isStale:Ul(t,n),refetch:this.refetch,promise:y(this,Ht),isEnabled:ht(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const T=F=>{R.status==="error"?F.reject(R.error):R.data!==void 0&&F.resolve(R.data)},j=()=>{const F=M(this,Ht,R.promise=jl());T(F)},I=y(this,Ht);switch(I.status){case"pending":t.queryHash===r.queryHash&&T(I);break;case"fulfilled":(R.status==="error"||R.data!==I.value)&&j();break;case"rejected":(R.status!=="error"||R.error!==I.reason)&&j();break}}return R}updateResult(){const t=y(this,Be),n=this.createResult(y(this,ee),this.options);if(M(this,tr,y(this,ee).state),M(this,Br,this.options),y(this,tr).data!==void 0&&M(this,Wr,y(this,ee)),gs(n,t))return;M(this,Be,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,o=typeof i=="function"?i():i;if(o==="all"||!o&&!y(this,Hr).size)return!0;const s=new Set(o??y(this,Hr));return this.options.throwOnError&&s.add("error"),Object.keys(y(this,Be)).some(a=>{const l=a;return y(this,Be)[l]!==t[l]&&s.has(l)})};J(this,oe,Pb).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&J(this,oe,yc).call(this)}},Ye=new WeakMap,ee=new WeakMap,$i=new WeakMap,Be=new WeakMap,tr=new WeakMap,Br=new WeakMap,Ht=new WeakMap,mn=new WeakMap,Bi=new WeakMap,jr=new WeakMap,Wr=new WeakMap,nr=new WeakMap,rr=new WeakMap,vn=new WeakMap,Hr=new WeakMap,oe=new WeakSet,Hi=function(t){J(this,oe,Sc).call(this);let n=y(this,ee).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch($e)),n},mc=function(){J(this,oe,xc).call(this);const t=ln(this.options.staleTime,y(this,ee));if(Hn||y(this,Be).isStale||!Ll(t))return;const r=Vg(y(this,Be).dataUpdatedAt,t)+1;M(this,nr,Wn.setTimeout(()=>{y(this,Be).isStale||this.updateResult()},r))},vc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(y(this,ee)):this.options.refetchInterval)??!1},bc=function(t){J(this,oe,Cc).call(this),M(this,vn,t),!(Hn||ht(this.options.enabled,y(this,ee))===!1||!Ll(y(this,vn))||y(this,vn)===0)&&M(this,rr,Wn.setInterval(()=>{(this.options.refetchIntervalInBackground||Bl.isFocused())&&J(this,oe,Hi).call(this)},y(this,vn)))},yc=function(){J(this,oe,mc).call(this),J(this,oe,bc).call(this,J(this,oe,vc).call(this))},xc=function(){y(this,nr)&&(Wn.clearTimeout(y(this,nr)),M(this,nr,void 0))},Cc=function(){y(this,rr)&&(Wn.clearInterval(y(this,rr)),M(this,rr,void 0))},Sc=function(){const t=y(this,Ye).getQueryCache().build(y(this,Ye),this.options);if(t===y(this,ee))return;const n=y(this,ee);M(this,ee,t),M(this,$i,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Pb=function(t){we.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(y(this,Be))}),y(this,Ye).getQueryCache().notify({query:y(this,ee),type:"observerResultsUpdated"})})},Mv);function FR(e,t){return ht(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function qg(e,t){return FR(e,t)||e.state.data!==void 0&&Hl(e,t,t.refetchOnMount)}function Hl(e,t,n){if(ht(t.enabled,e)!==!1&&ln(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Ul(e,t)}return!1}function Kg(e,t,n,r){return(e!==t||ht(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Ul(e,n)}function Ul(e,t){return ht(t.enabled,e)!==!1&&e.isStaleByTime(ln(t.staleTime,e))}function LR(e,t){return!gs(e.getCurrentResult(),t)}function Xg(e){return{onFetch:(t,n)=>{var u,d,h,m,f;const r=t.options,i=(h=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,o=((m=t.state.data)==null?void 0:m.pages)||[],s=((f=t.state.data)==null?void 0:f.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const p=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},b=$g(t.options,t.fetchOptions),x=async(S,C,w)=>{if(g)return Promise.reject();if(C==null&&S.pages.length)return Promise.resolve(S);const _=(()=>{const j={client:t.client,queryKey:t.queryKey,pageParam:C,direction:w?"backward":"forward",meta:t.options.meta};return p(j),j})(),R=await b(_),{maxPages:N}=t.options,T=w?IR:OR;return{pages:T(S.pages,R,N),pageParams:T(S.pageParams,C,N)}};if(i&&o.length){const S=i==="backward",C=S?DR:Yg,w={pages:o,pageParams:s},P=C(r,w);a=await x(w,P,S)}else{const S=e??o.length;do{const C=l===0?s[0]??r.initialPageParam:Yg(r,a);if(l>0&&C==null)break;a=await x(a,C),l++}while(l{var g,p;return(p=(g=t.options).persister)==null?void 0:p.call(g,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function Yg(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function DR(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var zR=($v=class extends Hg{constructor(t){super();W(this,Lt);W(this,Ft);W(this,je);W(this,ir);this.mutationId=t.mutationId,M(this,je,t.mutationCache),M(this,Ft,[]),this.state=t.state||Qg(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){y(this,Ft).includes(t)||(y(this,Ft).push(t),this.clearGcTimeout(),y(this,je).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){M(this,Ft,y(this,Ft).filter(n=>n!==t)),this.scheduleGc(),y(this,je).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){y(this,Ft).length||(this.state.status==="pending"?this.scheduleGc():y(this,je).remove(this))}continue(){var t;return((t=y(this,ir))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,a,l,c,u,d,h,m,f,g,p,b,x,S,C,w,P,_,R;const n=()=>{J(this,Lt,En).call(this,{type:"continue"})};M(this,ir,Wg({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(N,T)=>{J(this,Lt,En).call(this,{type:"failed",failureCount:N,error:T})},onPause:()=>{J(this,Lt,En).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>y(this,je).canRun(this)}));const r=this.state.status==="pending",i=!y(this,ir).canStart();try{if(r)n();else{J(this,Lt,En).call(this,{type:"pending",variables:t,isPaused:i}),await((s=(o=y(this,je).config).onMutate)==null?void 0:s.call(o,t,this));const T=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));T!==this.state.context&&J(this,Lt,En).call(this,{type:"pending",context:T,variables:t,isPaused:i})}const N=await y(this,ir).start();return await((u=(c=y(this,je).config).onSuccess)==null?void 0:u.call(c,N,t,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,N,t,this.state.context)),await((f=(m=y(this,je).config).onSettled)==null?void 0:f.call(m,N,null,this.state.variables,this.state.context,this)),await((p=(g=this.options).onSettled)==null?void 0:p.call(g,N,null,t,this.state.context)),J(this,Lt,En).call(this,{type:"success",data:N}),N}catch(N){try{throw await((x=(b=y(this,je).config).onError)==null?void 0:x.call(b,N,t,this.state.context,this)),await((C=(S=this.options).onError)==null?void 0:C.call(S,N,t,this.state.context)),await((P=(w=y(this,je).config).onSettled)==null?void 0:P.call(w,void 0,N,this.state.variables,this.state.context,this)),await((R=(_=this.options).onSettled)==null?void 0:R.call(_,void 0,N,t,this.state.context)),N}finally{J(this,Lt,En).call(this,{type:"error",error:N})}}finally{y(this,je).runNext(this)}}},Ft=new WeakMap,je=new WeakMap,ir=new WeakMap,Lt=new WeakSet,En=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),we.batch(()=>{y(this,Ft).forEach(r=>{r.onMutationUpdate(t)}),y(this,je).notify({mutation:this,type:"updated",action:t})})},$v);function Qg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var MR=(Bv=class extends Ar{constructor(t={}){super();W(this,Ut);W(this,St);W(this,ji);this.config=t,M(this,Ut,new Set),M(this,St,new Map),M(this,ji,0)}build(t,n,r){const i=new zR({mutationCache:this,mutationId:++js(this,ji)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){y(this,Ut).add(t);const n=ms(t);if(typeof n=="string"){const r=y(this,St).get(n);r?r.push(t):y(this,St).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(y(this,Ut).delete(t)){const n=ms(t);if(typeof n=="string"){const r=y(this,St).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&y(this,St).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=ms(t);if(typeof n=="string"){const r=y(this,St).get(n),i=r==null?void 0:r.find(o=>o.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=ms(t);if(typeof n=="string"){const i=(r=y(this,St).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){we.batch(()=>{y(this,Ut).forEach(t=>{this.notify({type:"removed",mutation:t})}),y(this,Ut).clear(),y(this,St).clear()})}getAll(){return Array.from(y(this,Ut))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Lg(n,r))}findAll(t={}){return this.getAll().filter(n=>Lg(t,n))}notify(t){we.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return we.batch(()=>Promise.all(t.map(n=>n.continue().catch($e))))}},Ut=new WeakMap,St=new WeakMap,ji=new WeakMap,Bv);function ms(e){var t;return(t=e.options.scope)==null?void 0:t.id}var $R=(jv=class extends Ar{constructor(t,n){super();W(this,qt);W(this,bn);W(this,yn);W(this,Qe);W(this,Gt);M(this,bn,t),this.setOptions(n),this.bindMethods(),J(this,qt,Gs).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var r;const n=this.options;this.options=y(this,bn).defaultMutationOptions(t),gs(this.options,n)||y(this,bn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:y(this,Qe),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Un(n.mutationKey)!==Un(this.options.mutationKey)?this.reset():((r=y(this,Qe))==null?void 0:r.state.status)==="pending"&&y(this,Qe).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=y(this,Qe))==null||t.removeObserver(this)}onMutationUpdate(t){J(this,qt,Gs).call(this),J(this,qt,wc).call(this,t)}getCurrentResult(){return y(this,yn)}reset(){var t;(t=y(this,Qe))==null||t.removeObserver(this),M(this,Qe,void 0),J(this,qt,Gs).call(this),J(this,qt,wc).call(this)}mutate(t,n){var r;return M(this,Gt,n),(r=y(this,Qe))==null||r.removeObserver(this),M(this,Qe,y(this,bn).getMutationCache().build(y(this,bn),this.options)),y(this,Qe).addObserver(this),y(this,Qe).execute(t)}},bn=new WeakMap,yn=new WeakMap,Qe=new WeakMap,Gt=new WeakMap,qt=new WeakSet,Gs=function(){var n;const t=((n=y(this,Qe))==null?void 0:n.state)??Qg();M(this,yn,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},wc=function(t){we.batch(()=>{var n,r,i,o,s,a,l,c;if(y(this,Gt)&&this.hasListeners()){const u=y(this,yn).variables,d=y(this,yn).context;(t==null?void 0:t.type)==="success"?((r=(n=y(this,Gt)).onSuccess)==null||r.call(n,t.data,u,d),(o=(i=y(this,Gt)).onSettled)==null||o.call(i,t.data,null,u,d)):(t==null?void 0:t.type)==="error"&&((a=(s=y(this,Gt)).onError)==null||a.call(s,t.error,u,d),(c=(l=y(this,Gt)).onSettled)==null||c.call(l,void 0,t.error,u,d))}this.listeners.forEach(u=>{u(y(this,yn))})})},jv),BR=(Wv=class extends Ar{constructor(t={}){super();W(this,Dt);this.config=t,M(this,Dt,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??Dl(i,n);let s=this.get(o);return s||(s=new _R({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){y(this,Dt).has(t.queryHash)||(y(this,Dt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=y(this,Dt).get(t.queryHash);n&&(t.destroy(),n===t&&y(this,Dt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){we.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return y(this,Dt).get(t)}getAll(){return[...y(this,Dt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Fg(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Fg(t,r)):n}notify(t){we.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){we.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){we.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Dt=new WeakMap,Wv),jR=(Hv=class{constructor(e={}){W(this,me);W(this,xn);W(this,Cn);W(this,Ur);W(this,Gr);W(this,Sn);W(this,qr);W(this,Kr);M(this,me,e.queryCache||new BR),M(this,xn,e.mutationCache||new MR),M(this,Cn,e.defaultOptions||{}),M(this,Ur,new Map),M(this,Gr,new Map),M(this,Sn,0)}mount(){js(this,Sn)._++,y(this,Sn)===1&&(M(this,qr,Bl.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,me).onFocus())})),M(this,Kr,ps.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,me).onOnline())})))}unmount(){var e,t;js(this,Sn)._--,y(this,Sn)===0&&((e=y(this,qr))==null||e.call(this),M(this,qr,void 0),(t=y(this,Kr))==null||t.call(this),M(this,Kr,void 0))}isFetching(e){return y(this,me).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return y(this,xn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,me).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=y(this,me).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ln(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return y(this,me).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=y(this,me).get(r.queryHash),o=i==null?void 0:i.state.data,s=wR(t,o);if(s!==void 0)return y(this,me).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return we.batch(()=>y(this,me).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,me).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=y(this,me);we.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=y(this,me);return we.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=we.batch(()=>y(this,me).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then($e).catch($e)}invalidateQueries(e,t={}){return we.batch(()=>(y(this,me).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=we.batch(()=>y(this,me).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch($e)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then($e)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=y(this,me).build(this,t);return n.isStaleByTime(ln(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then($e).catch($e)}fetchInfiniteQuery(e){return e.behavior=Xg(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then($e).catch($e)}ensureInfiniteQueryData(e){return e.behavior=Xg(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ps.isOnline()?y(this,xn).resumePausedMutations():Promise.resolve()}getQueryCache(){return y(this,me)}getMutationCache(){return y(this,xn)}getDefaultOptions(){return y(this,Cn)}setDefaultOptions(e){M(this,Cn,e)}setQueryDefaults(e,t){y(this,Ur).set(Un(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...y(this,Ur).values()],n={};return t.forEach(r=>{Pi(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){y(this,Gr).set(Un(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...y(this,Gr).values()],n={};return t.forEach(r=>{Pi(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...y(this,Cn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Dl(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===$l&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...y(this,Cn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){y(this,me).clear(),y(this,xn).clear()}},me=new WeakMap,xn=new WeakMap,Cn=new WeakMap,Ur=new WeakMap,Gr=new WeakMap,Sn=new WeakMap,qr=new WeakMap,Kr=new WeakMap,Hv),Jg=O.createContext(void 0),Zg=e=>{const t=O.useContext(Jg);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},WR=({client:e,children:t})=>(O.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(Jg.Provider,{value:e,children:t})),ep=O.createContext(!1),HR=()=>O.useContext(ep);ep.Provider;function UR(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var GR=O.createContext(UR()),qR=()=>O.useContext(GR),KR=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},XR=e=>{O.useEffect(()=>{e.clearReset()},[e])},YR=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||Bg(n,[e.error,r])),QR=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},JR=(e,t)=>e.isLoading&&e.isFetching&&!t,ZR=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,tp=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function eT(e,t,n){var d,h,m,f,g;const r=HR(),i=qR(),o=Zg(),s=o.defaultQueryOptions(e);(h=(d=o.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||h.call(d,s),s._optimisticResults=r?"isRestoring":"optimistic",QR(s),KR(s,i),XR(i);const a=!o.getQueryCache().get(s.queryHash),[l]=O.useState(()=>new t(o,s)),c=l.getOptimisticResult(s),u=!r&&e.subscribed!==!1;if(O.useSyncExternalStore(O.useCallback(p=>{const b=u?l.subscribe(we.batchCalls(p)):$e;return l.updateResult(),b},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),O.useEffect(()=>{l.setOptions(s)},[s,l]),ZR(s,c))throw tp(s,l,i);if(YR({result:c,errorResetBoundary:i,throwOnError:s.throwOnError,query:o.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw c.error;if((f=(m=o.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||f.call(m,s,c),s.experimental_prefetchInRender&&!Hn&&JR(c,r)){const p=a?tp(s,l,i):(g=o.getQueryCache().get(s.queryHash))==null?void 0:g.promise;p==null||p.catch($e).finally(()=>{l.updateResult()})}return s.notifyOnChangeProps?c:l.trackResult(c)}function np(e,t){return eT(e,VR)}function rp(e,t){const n=Zg(),[r]=O.useState(()=>new $R(n,e));O.useEffect(()=>{r.setOptions(e)},[r,e]);const i=O.useSyncExternalStore(O.useCallback(s=>r.subscribe(we.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=O.useCallback((s,a)=>{r.mutate(s,a).catch($e)},[r]);if(i.error&&Bg(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}function ip(e,t){return function(){return e.apply(t,arguments)}}const{toString:tT}=Object.prototype,{getPrototypeOf:Gl}=Object,{iterator:vs,toStringTag:op}=Symbol,bs=(e=>t=>{const n=tT.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),xt=e=>(e=e.toLowerCase(),t=>bs(t)===e),ys=e=>t=>typeof t===e,{isArray:_r}=Array,Ri=ys("undefined");function Ti(e){return e!==null&&!Ri(e)&&e.constructor!==null&&!Ri(e.constructor)&&Ke(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sp=xt("ArrayBuffer");function nT(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&sp(e.buffer),t}const rT=ys("string"),Ke=ys("function"),ap=ys("number"),Ni=e=>e!==null&&typeof e=="object",iT=e=>e===!0||e===!1,xs=e=>{if(bs(e)!=="object")return!1;const t=Gl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(op in e)&&!(vs in e)},oT=e=>{if(!Ni(e)||Ti(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},sT=xt("Date"),aT=xt("File"),lT=xt("Blob"),cT=xt("FileList"),uT=e=>Ni(e)&&Ke(e.pipe),dT=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ke(e.append)&&((t=bs(e))==="formdata"||t==="object"&&Ke(e.toString)&&e.toString()==="[object FormData]"))},hT=xt("URLSearchParams"),[fT,gT,pT,mT]=["ReadableStream","Request","Response","Headers"].map(xt),vT=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ai(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),_r(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Gn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:globalThis,cp=e=>!Ri(e)&&e!==Gn;function ql(){const{caseless:e}=cp(this)&&this||{},t={},n=(r,i)=>{const o=e&&lp(t,i)||i;xs(t[o])&&xs(r)?t[o]=ql(t[o],r):xs(r)?t[o]=ql({},r):_r(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(Ai(t,(i,o)=>{n&&Ke(i)?e[o]=ip(i,n):e[o]=i},{allOwnKeys:r}),e),yT=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xT=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},CT=(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Gl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ST=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},wT=e=>{if(!e)return null;if(_r(e))return e;let t=e.length;if(!ap(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ET=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Gl(Uint8Array)),kT=(e,t)=>{const r=(e&&e[vs]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},OT=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},IT=xt("HTMLFormElement"),PT=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),up=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),RT=xt("RegExp"),dp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ai(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},TT=e=>{dp(e,(t,n)=>{if(Ke(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ke(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},NT=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return _r(e)?r(e):r(String(e).split(t)),n},AT=()=>{},_T=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function VT(e){return!!(e&&Ke(e.append)&&e[op]==="FormData"&&e[vs])}const FT=e=>{const t=new Array(10),n=(r,i)=>{if(Ni(r)){if(t.indexOf(r)>=0)return;if(Ti(r))return r;if(!("toJSON"in r)){t[i]=r;const o=_r(r)?[]:{};return Ai(r,(s,a)=>{const l=n(s,i+1);!Ri(l)&&(o[a]=l)}),t[i]=void 0,o}}return r};return n(e,0)},LT=xt("AsyncFunction"),DT=e=>e&&(Ni(e)||Ke(e))&&Ke(e.then)&&Ke(e.catch),hp=((e,t)=>e?setImmediate:t?((n,r)=>(Gn.addEventListener("message",({source:i,data:o})=>{i===Gn&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Gn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ke(Gn.postMessage)),zT=typeof queueMicrotask<"u"?queueMicrotask.bind(Gn):typeof process<"u"&&process.nextTick||hp,k={isArray:_r,isArrayBuffer:sp,isBuffer:Ti,isFormData:dT,isArrayBufferView:nT,isString:rT,isNumber:ap,isBoolean:iT,isObject:Ni,isPlainObject:xs,isEmptyObject:oT,isReadableStream:fT,isRequest:gT,isResponse:pT,isHeaders:mT,isUndefined:Ri,isDate:sT,isFile:aT,isBlob:lT,isRegExp:RT,isFunction:Ke,isStream:uT,isURLSearchParams:hT,isTypedArray:ET,isFileList:cT,forEach:Ai,merge:ql,extend:bT,trim:vT,stripBOM:yT,inherits:xT,toFlatObject:CT,kindOf:bs,kindOfTest:xt,endsWith:ST,toArray:wT,forEachEntry:kT,matchAll:OT,isHTMLForm:IT,hasOwnProperty:up,hasOwnProp:up,reduceDescriptors:dp,freezeMethods:TT,toObjectSet:NT,toCamelCase:PT,noop:AT,toFiniteNumber:_T,findKey:lp,global:Gn,isContextDefined:cp,isSpecCompliantForm:VT,toJSONObject:FT,isAsyncFn:LT,isThenable:DT,setImmediate:hp,asap:zT,isIterable:e=>e!=null&&Ke(e[vs])};function Q(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}k.inherits(Q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:k.toJSONObject(this.config),code:this.code,status:this.status}}});const fp=Q.prototype,gp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{gp[e]={value:e}}),Object.defineProperties(Q,gp),Object.defineProperty(fp,"isAxiosError",{value:!0}),Q.from=(e,t,n,r,i,o)=>{const s=Object.create(fp);return k.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Q.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const MT=null;function Kl(e){return k.isPlainObject(e)||k.isArray(e)}function pp(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function mp(e,t,n){return e?e.concat(t).map(function(i,o){return i=pp(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function $T(e){return k.isArray(e)&&!e.some(Kl)}const BT=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});function Cs(e,t,n){if(!k.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,p){return!k.isUndefined(p[g])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(t);if(!k.isFunction(i))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(k.isDate(f))return f.toISOString();if(k.isBoolean(f))return f.toString();if(!l&&k.isBlob(f))throw new Q("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(f)||k.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,g,p){let b=f;if(f&&!p&&typeof f=="object"){if(k.endsWith(g,"{}"))g=r?g:g.slice(0,-2),f=JSON.stringify(f);else if(k.isArray(f)&&$T(f)||(k.isFileList(f)||k.endsWith(g,"[]"))&&(b=k.toArray(f)))return g=pp(g),b.forEach(function(S,C){!(k.isUndefined(S)||S===null)&&t.append(s===!0?mp([g],C,o):s===null?g:g+"[]",c(S))}),!1}return Kl(f)?!0:(t.append(mp(p,g,o),c(f)),!1)}const d=[],h=Object.assign(BT,{defaultVisitor:u,convertValue:c,isVisitable:Kl});function m(f,g){if(!k.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(f),k.forEach(f,function(b,x){(!(k.isUndefined(b)||b===null)&&i.call(t,b,k.isString(x)?x.trim():x,g,h))===!0&&m(b,g?g.concat(x):[x])}),d.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return m(e),t}function vp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Xl(e,t){this._pairs=[],e&&Cs(e,this,t)}const bp=Xl.prototype;bp.append=function(t,n){this._pairs.push([t,n])},bp.toString=function(t){const n=t?function(r){return t.call(this,r,vp)}:vp;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function jT(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function yp(e,t,n){if(!t)return e;const r=n&&n.encode||jT;k.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=k.isURLSearchParams(t)?t.toString():new Xl(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class xp{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){k.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Cp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},WT={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Xl,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Yl=typeof window<"u"&&typeof document<"u",Ql=typeof navigator=="object"&&navigator||void 0,HT=Yl&&(!Ql||["ReactNative","NativeScript","NS"].indexOf(Ql.product)<0),UT=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",GT=Yl&&window.location.href||"http://localhost",ze={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Yl,hasStandardBrowserEnv:HT,hasStandardBrowserWebWorkerEnv:UT,navigator:Ql,origin:GT},Symbol.toStringTag,{value:"Module"})),...WT};function qT(e,t){return Cs(e,new ze.classes.URLSearchParams,{visitor:function(n,r,i,o){return ze.isNode&&k.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function KT(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function XT(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return s=!s&&k.isArray(i)?i.length:s,l?(k.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!k.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&k.isArray(i[s])&&(i[s]=XT(i[s])),!a)}if(k.isFormData(e)&&k.isFunction(e.entries)){const n={};return k.forEachEntry(e,(r,i)=>{t(KT(r),i,n,0)}),n}return null}function YT(e,t,n){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const _i={transitional:Cp,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=k.isObject(t);if(o&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return i?JSON.stringify(Sp(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t)||k.isReadableStream(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return qT(t,this.formSerializer).toString();if((a=k.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Cs(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),YT(t)):t}],transformResponse:[function(t){const n=this.transitional||_i.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(k.isResponse(t)||k.isReadableStream(t))return t;if(t&&k.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?Q.from(a,Q.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ze.classes.FormData,Blob:ze.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{_i.headers[e]={}});const QT=k.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),JT=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&QT[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},wp=Symbol("internals");function Vi(e){return e&&String(e).trim().toLowerCase()}function Ss(e){return e===!1||e==null?e:k.isArray(e)?e.map(Ss):String(e)}function ZT(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const e2=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Jl(e,t,n,r,i){if(k.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!k.isString(t)){if(k.isString(r))return t.indexOf(r)!==-1;if(k.isRegExp(r))return r.test(t)}}function t2(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function n2(e,t){const n=k.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}let Xe=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(a,l,c){const u=Vi(l);if(!u)throw new Error("header name must be a non-empty string");const d=k.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=Ss(a))}const s=(a,l)=>k.forEach(a,(c,u)=>o(c,u,l));if(k.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(k.isString(t)&&(t=t.trim())&&!e2(t))s(JT(t),n);else if(k.isObject(t)&&k.isIterable(t)){let a={},l,c;for(const u of t){if(!k.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[c=u[0]]=(l=a[c])?k.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}s(a,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=Vi(t),t){const r=k.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return ZT(i);if(k.isFunction(n))return n.call(this,i,r);if(k.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Vi(t),t){const r=k.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Jl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=Vi(s),s){const a=k.findKey(r,s);a&&(!n||Jl(r,r[a],a,n))&&(delete r[a],i=!0)}}return k.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||Jl(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return k.forEach(this,(i,o)=>{const s=k.findKey(r,o);if(s){n[s]=Ss(i),delete n[o];return}const a=t?t2(o):String(o).trim();a!==o&&delete n[o],n[a]=Ss(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return k.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&k.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[wp]=this[wp]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=Vi(s);r[a]||(n2(i,s),r[a]=!0)}return k.isArray(t)?t.forEach(o):o(t),this}};Xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),k.reduceDescriptors(Xe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),k.freezeMethods(Xe);function Zl(e,t){const n=this||_i,r=t||n,i=Xe.from(r.headers);let o=r.data;return k.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Ep(e){return!!(e&&e.__CANCEL__)}function Vr(e,t,n){Q.call(this,e??"canceled",Q.ERR_CANCELED,t,n),this.name="CanceledError"}k.inherits(Vr,Q,{__CANCEL__:!0});function kp(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Q("Request failed with status code "+n.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function r2(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function i2(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[o];s||(s=c),n[i]=l,r[i]=c;let d=o,h=0;for(;d!==i;)h+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-s{n=u,i=null,o&&(clearTimeout(o),o=null),e(...c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?s(c,u):(i=c,o||(o=setTimeout(()=>{o=null,s(i)},r-d)))},()=>i&&s(i)]}const ws=(e,t,n=3)=>{let r=0;const i=i2(50,250);return o2(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,l=s-r,c=i(l),u=s<=a;r=s;const d={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-s)/c:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},Op=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ip=e=>(...t)=>k.asap(()=>e(...t)),s2=ze.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ze.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ze.origin),ze.navigator&&/(msie|trident)/i.test(ze.navigator.userAgent)):()=>!0,a2=ze.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const s=[e+"="+encodeURIComponent(t)];k.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),k.isString(r)&&s.push("path="+r),k.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function l2(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function c2(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Pp(e,t,n){let r=!l2(t);return e&&(r||n==!1)?c2(e,t):t}const Rp=e=>e instanceof Xe?{...e}:e;function qn(e,t){t=t||{};const n={};function r(c,u,d,h){return k.isPlainObject(c)&&k.isPlainObject(u)?k.merge.call({caseless:h},c,u):k.isPlainObject(u)?k.merge({},u):k.isArray(u)?u.slice():u}function i(c,u,d,h){if(k.isUndefined(u)){if(!k.isUndefined(c))return r(void 0,c,d,h)}else return r(c,u,d,h)}function o(c,u){if(!k.isUndefined(u))return r(void 0,u)}function s(c,u){if(k.isUndefined(u)){if(!k.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u,d)=>i(Rp(c),Rp(u),d,!0)};return k.forEach(Object.keys({...e,...t}),function(u){const d=l[u]||i,h=d(e[u],t[u],u);k.isUndefined(h)&&d!==a||(n[u]=h)}),n}const Tp=e=>{const t=qn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=t;t.headers=s=Xe.from(s),t.url=yp(Pp(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(k.isFormData(n)){if(ze.hasStandardBrowserEnv||ze.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...u].join("; "))}}if(ze.hasStandardBrowserEnv&&(r&&k.isFunction(r)&&(r=r(t)),r||r!==!1&&s2(t.url))){const c=i&&o&&a2.read(o);c&&s.set(i,c)}return t},u2=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const i=Tp(e);let o=i.data;const s=Xe.from(i.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=i,u,d,h,m,f;function g(){m&&m(),f&&f(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let p=new XMLHttpRequest;p.open(i.method.toUpperCase(),i.url,!0),p.timeout=i.timeout;function b(){if(!p)return;const S=Xe.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),w={data:!a||a==="text"||a==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:S,config:e,request:p};kp(function(_){n(_),g()},function(_){r(_),g()},w),p=null}"onloadend"in p?p.onloadend=b:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(b)},p.onabort=function(){p&&(r(new Q("Request aborted",Q.ECONNABORTED,e,p)),p=null)},p.onerror=function(){r(new Q("Network Error",Q.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||Cp;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new Q(C,w.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,e,p)),p=null},o===void 0&&s.setContentType(null),"setRequestHeader"in p&&k.forEach(s.toJSON(),function(C,w){p.setRequestHeader(w,C)}),k.isUndefined(i.withCredentials)||(p.withCredentials=!!i.withCredentials),a&&a!=="json"&&(p.responseType=i.responseType),c&&([h,f]=ws(c,!0),p.addEventListener("progress",h)),l&&p.upload&&([d,m]=ws(l),p.upload.addEventListener("progress",d),p.upload.addEventListener("loadend",m)),(i.cancelToken||i.signal)&&(u=S=>{p&&(r(!S||S.type?new Vr(null,e,p):S),p.abort(),p=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const x=r2(i.url);if(x&&ze.protocols.indexOf(x)===-1){r(new Q("Unsupported protocol "+x+":",Q.ERR_BAD_REQUEST,e));return}p.send(o||null)})},d2=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(c){if(!i){i=!0,a();const u=c instanceof Error?c:this.reason;r.abort(u instanceof Q?u:new Vr(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,o(new Q(`timeout ${t} of ms exceeded`,Q.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>k.asap(a),l}},h2=function*(e,t){let n=e.byteLength;if(n{const i=f2(e,t);let o=0,s,a=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await i.next();if(c){a(),l.close();return}let d=u.byteLength;if(n){let h=o+=d;n(h)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),i.return()}},{highWaterMark:2})},Es=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ap=Es&&typeof ReadableStream=="function",p2=Es&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),_p=(e,...t)=>{try{return!!e(...t)}catch{return!1}},m2=Ap&&_p(()=>{let e=!1;const t=new Request(ze.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Vp=64*1024,ec=Ap&&_p(()=>k.isReadableStream(new Response("").body)),ks={stream:ec&&(e=>e.body)};Es&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ks[t]&&(ks[t]=k.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Q(`Response type '${t}' is not supported`,Q.ERR_NOT_SUPPORT,r)})})})(new Response);const v2=async e=>{if(e==null)return 0;if(k.isBlob(e))return e.size;if(k.isSpecCompliantForm(e))return(await new Request(ze.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(k.isArrayBufferView(e)||k.isArrayBuffer(e))return e.byteLength;if(k.isURLSearchParams(e)&&(e=e+""),k.isString(e))return(await p2(e)).byteLength},b2=async(e,t)=>{const n=k.toFiniteNumber(e.getContentLength());return n??v2(t)},tc={http:MT,xhr:u2,fetch:Es&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:h}=Tp(e);c=c?(c+"").toLowerCase():"text";let m=d2([i,o&&o.toAbortSignal()],s),f;const g=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let p;try{if(l&&m2&&n!=="get"&&n!=="head"&&(p=await b2(u,r))!==0){let w=new Request(t,{method:"POST",body:r,duplex:"half"}),P;if(k.isFormData(r)&&(P=w.headers.get("content-type"))&&u.setContentType(P),w.body){const[_,R]=Op(p,ws(Ip(l)));r=Np(w.body,Vp,_,R)}}k.isString(d)||(d=d?"include":"omit");const b="credentials"in Request.prototype;f=new Request(t,{...h,signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:b?d:void 0});let x=await fetch(f,h);const S=ec&&(c==="stream"||c==="response");if(ec&&(a||S&&g)){const w={};["status","statusText","headers"].forEach(N=>{w[N]=x[N]});const P=k.toFiniteNumber(x.headers.get("content-length")),[_,R]=a&&Op(P,ws(Ip(a),!0))||[];x=new Response(Np(x.body,Vp,_,()=>{R&&R(),g&&g()}),w)}c=c||"text";let C=await ks[k.findKey(ks,c)||"text"](x,e);return!S&&g&&g(),await new Promise((w,P)=>{kp(w,P,{data:C,headers:Xe.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:f})})}catch(b){throw g&&g(),b&&b.name==="TypeError"&&/Load failed|fetch/i.test(b.message)?Object.assign(new Q("Network Error",Q.ERR_NETWORK,e,f),{cause:b.cause||b}):Q.from(b,b&&b.code,e,f)}})};k.forEach(tc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Fp=e=>`- ${e}`,y2=e=>k.isFunction(e)||e===null||e===!1,Lp={getAdapter:e=>{e=k.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since : +`+o.map(Fp).join(` +`):" "+Fp(o[0]):"as no adapter specified";throw new Q("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:tc};function nc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Vr(null,e)}function Dp(e){return nc(e),e.headers=Xe.from(e.headers),e.data=Zl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Lp.getAdapter(e.adapter||_i.adapter)(e).then(function(r){return nc(e),r.data=Zl.call(e,e.transformResponse,r),r.headers=Xe.from(r.headers),r},function(r){return Ep(r)||(nc(e),r&&r.response&&(r.response.data=Zl.call(e,e.transformResponse,r.response),r.response.headers=Xe.from(r.response.headers))),Promise.reject(r)})}const zp="1.11.0",Os={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Os[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Mp={};Os.transitional=function(t,n,r){function i(o,s){return"[Axios v"+zp+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(t===!1)throw new Q(i(s," has been removed"+(n?" in "+n:"")),Q.ERR_DEPRECATED);return n&&!Mp[s]&&(Mp[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}},Os.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function x2(e,t,n){if(typeof e!="object")throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new Q("option "+o+" must be "+l,Q.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Q("Unknown option "+o,Q.ERR_BAD_OPTION)}}const Is={assertOptions:x2,validators:Os},Vt=Is.validators;let Kn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new xp,response:new xp}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=qn(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Is.assertOptions(r,{silentJSONParsing:Vt.transitional(Vt.boolean),forcedJSONParsing:Vt.transitional(Vt.boolean),clarifyTimeoutError:Vt.transitional(Vt.boolean)},!1),i!=null&&(k.isFunction(i)?n.paramsSerializer={serialize:i}:Is.assertOptions(i,{encode:Vt.function,serialize:Vt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Is.assertOptions(n,{baseUrl:Vt.spelling("baseURL"),withXsrfToken:Vt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&k.merge(o.common,o[n.method]);o&&k.forEach(["delete","get","head","post","put","patch","common"],f=>{delete o[f]}),n.headers=Xe.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,d=0,h;if(!l){const f=[Dp.bind(this),void 0];for(f.unshift(...a),f.push(...c),h=f.length,u=Promise.resolve(n);d{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,a){r.reason||(r.reason=new Vr(o,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Rb(function(i){t=i}),cancel:t}}};function S2(e){return function(n){return e.apply(null,n)}}function w2(e){return k.isObject(e)&&e.isAxiosError===!0}const rc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(rc).forEach(([e,t])=>{rc[t]=e});function $p(e){const t=new Kn(e),n=ip(Kn.prototype.request,t);return k.extend(n,Kn.prototype,t,{allOwnKeys:!0}),k.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return $p(qn(e,i))},n}const ge=$p(_i);ge.Axios=Kn,ge.CanceledError=Vr,ge.CancelToken=C2,ge.isCancel=Ep,ge.VERSION=zp,ge.toFormData=Cs,ge.AxiosError=Q,ge.Cancel=ge.CanceledError,ge.all=function(t){return Promise.all(t)},ge.spread=S2,ge.isAxiosError=w2,ge.mergeConfig=qn,ge.AxiosHeaders=Xe,ge.formToJSON=e=>Sp(k.isHTMLForm(e)?new FormData(e):e),ge.getAdapter=Lp.getAdapter,ge.HttpStatusCode=rc,ge.default=ge;const{Axios:E5,AxiosError:k5,CanceledError:O5,isCancel:I5,CancelToken:P5,VERSION:R5,all:T5,Cancel:N5,isAxiosError:A5,spread:_5,toFormData:V5,AxiosHeaders:F5,HttpStatusCode:L5,formToJSON:D5,getAdapter:z5,mergeConfig:M5}=ge;var Ps=["light","dark"],ic="(prefers-color-scheme: dark)",E2=typeof window>"u",Bp=O.createContext(void 0),k2=e=>O.useContext(Bp)?e.children:O.createElement(I2,{...e}),O2=["light","dark"],I2=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:i="theme",themes:o=O2,defaultTheme:s=n?"system":"light",attribute:a="data-theme",value:l,children:c,nonce:u})=>{let[d,h]=O.useState(()=>jp(i,s)),[m,f]=O.useState(()=>jp(i)),g=l?Object.values(l):o,p=O.useCallback(C=>{let w=C;if(!w)return;C==="system"&&n&&(w=Wp());let P=l?l[w]:w,_=t?R2():null,R=document.documentElement;if(a==="class"?(R.classList.remove(...g),P&&R.classList.add(P)):P?R.setAttribute(a,P):R.removeAttribute(a),r){let N=Ps.includes(s)?s:null,T=Ps.includes(w)?w:N;R.style.colorScheme=T}_==null||_()},[]),b=O.useCallback(C=>{let w=typeof C=="function"?C(C):C;h(w);try{localStorage.setItem(i,w)}catch{}},[e]),x=O.useCallback(C=>{let w=Wp(C);f(w),d==="system"&&n&&!e&&p("system")},[d,e]);O.useEffect(()=>{let C=window.matchMedia(ic);return C.addListener(x),x(C),()=>C.removeListener(x)},[x]),O.useEffect(()=>{let C=w=>{if(w.key!==i)return;let P=w.newValue||s;b(P)};return window.addEventListener("storage",C),()=>window.removeEventListener("storage",C)},[b]),O.useEffect(()=>{p(e??d)},[e,d]);let S=O.useMemo(()=>({theme:d,setTheme:b,forcedTheme:e,resolvedTheme:d==="system"?m:d,themes:n?[...o,"system"]:o,systemTheme:n?m:void 0}),[d,b,e,m,n,o]);return O.createElement(Bp.Provider,{value:S},O.createElement(P2,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:r,storageKey:i,themes:o,defaultTheme:s,attribute:a,value:l,children:c,attrs:g,nonce:u}),c)},P2=O.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:o,value:s,attrs:a,nonce:l})=>{let c=o==="system",u=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(f=>`'${f}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=i?Ps.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(f,g=!1,p=!0)=>{let b=s?s[f]:f,x=g?f+"|| ''":`'${b}'`,S="";return i&&p&&!g&&Ps.includes(f)&&(S+=`d.style.colorScheme = '${f}';`),n==="class"?g||b?S+=`c.add(${x})`:S+="null":b&&(S+=`d[s](n,${x})`),S},m=e?`!function(){${u}${h(e)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${ic}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}${c?"":"else{"+h(o,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}else{${h(o,!1,!1)};}${d}}catch(t){}}();`;return O.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:m}})}),jp=(e,t)=>{if(E2)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},R2=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},Wp=e=>(e||(e=window.matchMedia(ic)),e.matches?"dark":"light");const T2=e=>v.jsx(k2,{attribute:"class",disableTransitionOnChange:!0,...e});/** +>>>>>>> 3f3a37a363 (Add confirmation dialog for exit maintenance action in Edge Worker Page) * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. @@ -35,7 +58,11 @@ * LICENSE.md file in the root directory of this source tree. * * @license MIT +<<<<<<< HEAD */function Lo(){return Lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function jp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function pT(){return Math.random().toString(36).substr(2,8)}function Bp(e,t){return{usr:e.state,key:e.key,idx:t}}function hc(e,t,n,r){return n===void 0&&(n=null),Lo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Lr(t):t,{state:n,key:t&&t.key||r||pT()})}function _s(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Lr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function mT(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=cn.Pop,l=null,c=u();c==null&&(c=0,s.replaceState(Lo({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function d(){a=cn.Pop;let m=u(),b=m==null?null:m-c;c=m,l&&l({action:a,location:g.location,delta:b})}function h(m,b){a=cn.Push;let x=hc(g.location,m,b);c=u()+1;let k=Bp(x,c),C=g.createHref(x);try{s.pushState(k,"",C)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(C)}i&&l&&l({action:a,location:g.location,delta:1})}function p(m,b){a=cn.Replace;let x=hc(g.location,m,b);c=u();let k=Bp(x,c),C=g.createHref(x);s.replaceState(k,"",C),i&&l&&l({action:a,location:g.location,delta:0})}function f(m){let b=o.location.origin!=="null"?o.location.origin:o.location.href,x=typeof m=="string"?m:_s(m);return x=x.replace(/ $/,"%20"),me(b,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,b)}let g={get action(){return a},get location(){return e(o,s)},listen(m){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener($p,d),l=m,()=>{o.removeEventListener($p,d),l=null}},createHref(m){return t(o,m)},createURL:f,encodeLocation(m){let b=f(m);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:h,replace:p,go(m){return s.go(m)}};return g}var Wp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Wp||(Wp={}));function vT(e,t,n){return n===void 0&&(n="/"),bT(e,t,n)}function bT(e,t,n,r){let o=typeof t=="string"?Lr(t):t,i=Fr(o.pathname||"/",n);if(i==null)return null;let s=Hp(e);yT(s);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(me(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=un([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(me(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Hp(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:OT(c,i.index),routesMeta:u})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of Up(i.path))o(i,s,l)}),t}function Up(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=Up(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function yT(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:IT(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const xT=/^:[\w-]+$/,CT=3,kT=2,ST=1,wT=10,ET=-2,Gp=e=>e==="*";function OT(e,t){let n=e.split("/"),r=n.length;return n.some(Gp)&&(r+=ET),t&&(r+=kT),n.filter(o=>!Gp(o)).reduce((o,i)=>o+(xT.test(i)?CT:i===""?ST:wT),r)}function IT(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function PT(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a{let{paramName:h,isOptional:p}=u;if(h==="*"){let g=a[d]||"";s=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const f=a[d];return p&&!f?c[h]=void 0:c[h]=(f||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:s,pattern:e}}function RT(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),jp(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function TT(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return jp(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Fr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function NT(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Lr(e):e;return{pathname:n?n.startsWith("/")?n:_T(n,t):t,search:LT(r),hash:FT(o)}}function _T(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function gc(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function AT(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function qp(e,t){let n=AT(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Kp(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Lr(e):(o=Lo({},e),me(!o.pathname||!o.pathname.includes("?"),gc("?","pathname","search",o)),me(!o.pathname||!o.pathname.includes("#"),gc("#","pathname","hash",o)),me(!o.search||!o.search.includes("#"),gc("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),d-=1;o.pathname=h.join("/")}a=d>=0?t[d]:"/"}let l=NT(o,a),c=s&&s!=="/"&&s.endsWith("/"),u=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const un=e=>e.join("/").replace(/\/\/+/g,"/"),VT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),LT=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,FT=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function DT(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Xp=["post","put","patch","delete"];new Set(Xp);const zT=["get",...Xp];new Set(zT);/** +======= + */function Fi(){return Fi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Up(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function A2(){return Math.random().toString(36).substr(2,8)}function Gp(e,t){return{usr:e.state,key:e.key,idx:t}}function oc(e,t,n,r){return n===void 0&&(n=null),Fi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Fr(t):t,{state:n,key:t&&t.key||r||A2()})}function Rs(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Fr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function _2(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=cn.Pop,l=null,c=u();c==null&&(c=0,s.replaceState(Fi({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function d(){a=cn.Pop;let p=u(),b=p==null?null:p-c;c=p,l&&l({action:a,location:g.location,delta:b})}function h(p,b){a=cn.Push;let x=oc(g.location,p,b);c=u()+1;let S=Gp(x,c),C=g.createHref(x);try{s.pushState(S,"",C)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(C)}o&&l&&l({action:a,location:g.location,delta:1})}function m(p,b){a=cn.Replace;let x=oc(g.location,p,b);c=u();let S=Gp(x,c),C=g.createHref(x);s.replaceState(S,"",C),o&&l&&l({action:a,location:g.location,delta:0})}function f(p){let b=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof p=="string"?p:Rs(p);return x=x.replace(/ $/,"%20"),pe(b,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,b)}let g={get action(){return a},get location(){return e(i,s)},listen(p){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Hp,d),l=p,()=>{i.removeEventListener(Hp,d),l=null}},createHref(p){return t(i,p)},createURL:f,encodeLocation(p){let b=f(p);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:h,replace:m,go(p){return s.go(p)}};return g}var qp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(qp||(qp={}));function V2(e,t,n){return n===void 0&&(n="/"),F2(e,t,n)}function F2(e,t,n,r){let i=typeof t=="string"?Fr(t):t,o=Lr(i.pathname||"/",n);if(o==null)return null;let s=Kp(e);L2(s);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(pe(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=un([r,l.relativePath]),u=n.concat(l);o.children&&o.children.length>0&&(pe(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Kp(o.children,t,u,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:W2(c,o.index),routesMeta:u})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of Xp(o.path))i(o,s,l)}),t}function Xp(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=Xp(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function L2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:H2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const D2=/^:[\w-]+$/,z2=3,M2=2,$2=1,B2=10,j2=-2,Yp=e=>e==="*";function W2(e,t){let n=e.split("/"),r=n.length;return n.some(Yp)&&(r+=j2),t&&(r+=M2),n.filter(i=>!Yp(i)).reduce((i,o)=>i+(D2.test(o)?z2:o===""?$2:B2),r)}function H2(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function U2(e,t,n){let{routesMeta:r}=e,i={},o="/",s=[];for(let a=0;a{let{paramName:h,isOptional:m}=u;if(h==="*"){let g=a[d]||"";s=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const f=a[d];return m&&!f?c[h]=void 0:c[h]=(f||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:s,pattern:e}}function G2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Up(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function q2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Up(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Lr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function K2(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Fr(e):e;return{pathname:n?n.startsWith("/")?n:X2(n,t):t,search:J2(r),hash:Z2(i)}}function X2(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function ac(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Y2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Qp(e,t){let n=Y2(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Jp(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Fr(e):(i=Fi({},e),pe(!i.pathname||!i.pathname.includes("?"),ac("?","pathname","search",i)),pe(!i.pathname||!i.pathname.includes("#"),ac("#","pathname","hash",i)),pe(!i.search||!i.search.includes("#"),ac("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),d-=1;i.pathname=h.join("/")}a=d>=0?t[d]:"/"}let l=K2(i,a),c=s&&s!=="/"&&s.endsWith("/"),u=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const un=e=>e.join("/").replace(/\/\/+/g,"/"),Q2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),J2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Z2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function eN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Zp=["post","put","patch","delete"];new Set(Zp);const tN=["get",...Zp];new Set(tN);/** +>>>>>>> 3f3a37a363 (Add confirmation dialog for exit maintenance action in Edge Worker Page) * React Router v6.30.1 * * Copyright (c) Remix Software Inc. @@ -44,7 +71,11 @@ * LICENSE.md file in the root directory of this source tree. * * @license MIT +<<<<<<< HEAD */function Fo(){return Fo=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),O.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=Kp(c,JSON.parse(s),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:un([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,s,i,e])}function Ls(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=O.useContext(dn),{matches:o}=O.useContext(Kn),{pathname:i}=zo(),s=JSON.stringify(qp(o,r.v7_relativeSplatPath));return O.useMemo(()=>Kp(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function BT(e,t){return WT(e,t)}function WT(e,t,n,r){Do()||me(!1);let{navigator:o}=O.useContext(dn),{matches:i}=O.useContext(Kn),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=zo(),u;if(t){var d;let m=typeof t=="string"?Lr(t):t;l==="/"||(d=m.pathname)!=null&&d.startsWith(l)||me(!1),u=m}else u=c;let h=u.pathname||"/",p=h;if(l!=="/"){let m=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(m.length).join("/")}let f=vT(e,{pathname:p}),g=KT(f&&f.map(m=>Object.assign({},m,{params:Object.assign({},a,m.params),pathname:un([l,o.encodeLocation?o.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?l:un([l,o.encodeLocation?o.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),i,n,r);return t&&g?O.createElement(Vs.Provider,{value:{location:Fo({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:cn.Pop}},g):g}function HT(){let e=JT(),t=DT(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),n?O.createElement("pre",{style:o},n):null,null)}const UT=O.createElement(HT,null);class GT extends O.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?O.createElement(Kn.Provider,{value:this.props.routeContext},O.createElement(Qp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qT(e){let{routeContext:t,match:n,children:r}=e,o=O.useContext(As);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),O.createElement(Kn.Provider,{value:t},r)}function KT(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let u=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||me(!1),s=s.slice(0,Math.min(s.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((u,d,h)=>{let p,f=!1,g=null,m=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,g=d.route.errorElement||UT,l&&(c<0&&h===0?(e5("route-fallback"),f=!0,m=null):c===h&&(f=!0,m=d.route.hydrateFallbackElement||null)));let b=t.concat(s.slice(0,h+1)),x=()=>{let k;return p?k=g:f?k=m:d.route.Component?k=O.createElement(d.route.Component,null):d.route.element?k=d.route.element:k=u,O.createElement(qT,{match:d,routeContext:{outlet:u,matches:b,isDataRoute:n!=null},children:k})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?O.createElement(GT,{location:n.location,revalidation:n.revalidation,component:g,error:p,children:x(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):x()},null)}var Zp=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Zp||{}),em=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(em||{});function XT(e){let t=O.useContext(As);return t||me(!1),t}function YT(e){let t=O.useContext(Yp);return t||me(!1),t}function QT(e){let t=O.useContext(Kn);return t||me(!1),t}function tm(e){let t=QT(),n=t.matches[t.matches.length-1];return n.route.id||me(!1),n.route.id}function JT(){var e;let t=O.useContext(Qp),n=YT(),r=tm();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function ZT(){let{router:e}=XT(Zp.UseNavigateStable),t=tm(em.UseNavigateStable),n=O.useRef(!1);return Jp(()=>{n.current=!0}),O.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Fo({fromRouteId:t},i)))},[e,t])}const nm={};function e5(e,t,n){nm[e]||(nm[e]=!0)}function t5(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function pc(e){me(!1)}function n5(e){let{basename:t="/",children:n=null,location:r,navigationType:o=cn.Pop,navigator:i,static:s=!1,future:a}=e;Do()&&me(!1);let l=t.replace(/^\/*/,"/"),c=O.useMemo(()=>({basename:l,navigator:i,static:s,future:Fo({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=Lr(r));let{pathname:u="/",search:d="",hash:h="",state:p=null,key:f="default"}=r,g=O.useMemo(()=>{let m=Fr(u,l);return m==null?null:{location:{pathname:m,search:d,hash:h,state:p,key:f},navigationType:o}},[l,u,d,h,p,f,o]);return g==null?null:O.createElement(dn.Provider,{value:c},O.createElement(Vs.Provider,{children:n,value:g}))}function r5(e){let{children:t,location:n}=e;return BT(mc(t),n)}new Promise(()=>{});function mc(e,t){t===void 0&&(t=[]);let n=[];return O.Children.forEach(e,(r,o)=>{if(!O.isValidElement(r))return;let i=[...t,o];if(r.type===O.Fragment){n.push.apply(n,mc(r.props.children,i));return}r.type!==pc&&me(!1),!r.props.index||!r.props.children||me(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=mc(r.props.children,i)),n.push(s)}),n}/** +======= + */function Li(){return Li=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),O.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=Jp(c,JSON.parse(s),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:un([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,s,o,e])}function As(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=O.useContext(dn),{matches:i}=O.useContext(Xn),{pathname:o}=zi(),s=JSON.stringify(Qp(i,r.v7_relativeSplatPath));return O.useMemo(()=>Jp(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function oN(e,t){return sN(e,t)}function sN(e,t,n,r){Di()||pe(!1);let{navigator:i}=O.useContext(dn),{matches:o}=O.useContext(Xn),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=zi(),u;if(t){var d;let p=typeof t=="string"?Fr(t):t;l==="/"||(d=p.pathname)!=null&&d.startsWith(l)||pe(!1),u=p}else u=c;let h=u.pathname||"/",m=h;if(l!=="/"){let p=l.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(p.length).join("/")}let f=V2(e,{pathname:m}),g=dN(f&&f.map(p=>Object.assign({},p,{params:Object.assign({},a,p.params),pathname:un([l,i.encodeLocation?i.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?l:un([l,i.encodeLocation?i.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),o,n,r);return t&&g?O.createElement(Ns.Provider,{value:{location:Li({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:cn.Pop}},g):g}function aN(){let e=pN(),t=eN(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),n?O.createElement("pre",{style:i},n):null,null)}const lN=O.createElement(aN,null);class cN extends O.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?O.createElement(Xn.Provider,{value:this.props.routeContext},O.createElement(tm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function uN(e){let{routeContext:t,match:n,children:r}=e,i=O.useContext(Ts);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),O.createElement(Xn.Provider,{value:t},r)}function dN(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let u=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||pe(!1),s=s.slice(0,Math.min(s.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((u,d,h)=>{let m,f=!1,g=null,p=null;n&&(m=a&&d.route.id?a[d.route.id]:void 0,g=d.route.errorElement||lN,l&&(c<0&&h===0?(vN("route-fallback"),f=!0,p=null):c===h&&(f=!0,p=d.route.hydrateFallbackElement||null)));let b=t.concat(s.slice(0,h+1)),x=()=>{let S;return m?S=g:f?S=p:d.route.Component?S=O.createElement(d.route.Component,null):d.route.element?S=d.route.element:S=u,O.createElement(uN,{match:d,routeContext:{outlet:u,matches:b,isDataRoute:n!=null},children:S})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?O.createElement(cN,{location:n.location,revalidation:n.revalidation,component:g,error:m,children:x(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):x()},null)}var rm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(rm||{}),im=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(im||{});function hN(e){let t=O.useContext(Ts);return t||pe(!1),t}function fN(e){let t=O.useContext(em);return t||pe(!1),t}function gN(e){let t=O.useContext(Xn);return t||pe(!1),t}function om(e){let t=gN(),n=t.matches[t.matches.length-1];return n.route.id||pe(!1),n.route.id}function pN(){var e;let t=O.useContext(tm),n=fN(),r=om();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function mN(){let{router:e}=hN(rm.UseNavigateStable),t=om(im.UseNavigateStable),n=O.useRef(!1);return nm(()=>{n.current=!0}),O.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Li({fromRouteId:t},o)))},[e,t])}const sm={};function vN(e,t,n){sm[e]||(sm[e]=!0)}function bN(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function lc(e){pe(!1)}function yN(e){let{basename:t="/",children:n=null,location:r,navigationType:i=cn.Pop,navigator:o,static:s=!1,future:a}=e;Di()&&pe(!1);let l=t.replace(/^\/*/,"/"),c=O.useMemo(()=>({basename:l,navigator:o,static:s,future:Li({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=Fr(r));let{pathname:u="/",search:d="",hash:h="",state:m=null,key:f="default"}=r,g=O.useMemo(()=>{let p=Lr(u,l);return p==null?null:{location:{pathname:p,search:d,hash:h,state:m,key:f},navigationType:i}},[l,u,d,h,m,f,i]);return g==null?null:O.createElement(dn.Provider,{value:c},O.createElement(Ns.Provider,{children:n,value:g}))}function xN(e){let{children:t,location:n}=e;return oN(cc(t),n)}new Promise(()=>{});function cc(e,t){t===void 0&&(t=[]);let n=[];return O.Children.forEach(e,(r,i)=>{if(!O.isValidElement(r))return;let o=[...t,i];if(r.type===O.Fragment){n.push.apply(n,cc(r.props.children,o));return}r.type!==lc&&pe(!1),!r.props.index||!r.props.children||pe(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=cc(r.props.children,o)),n.push(s)}),n}/** +>>>>>>> 3f3a37a363 (Add confirmation dialog for exit maintenance action in Edge Worker Page) * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. @@ -53,7 +84,11 @@ * LICENSE.md file in the root directory of this source tree. * * @license MIT +<<<<<<< HEAD */function Fs(){return Fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function o5(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function i5(e,t){return e.button===0&&(!t||t==="_self")&&!o5(e)}const s5=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],a5=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],l5="6";try{window.__reactRouterVersion=l5}catch{}const c5=O.createContext({isTransitioning:!1}),om=O["startTransition"];function u5(e){let{basename:t,children:n,future:r,window:o}=e,i=O.useRef();i.current==null&&(i.current=gT({window:o,v5Compat:!0}));let s=i.current,[a,l]=O.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},u=O.useCallback(d=>{c&&om?om(()=>l(d)):l(d)},[l,c]);return O.useLayoutEffect(()=>s.listen(u),[s,u]),O.useEffect(()=>t5(r),[r]),O.createElement(n5,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const d5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",h5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,im=O.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,h=rm(t,s5),{basename:p}=O.useContext(dn),f,g=!1;if(typeof c=="string"&&h5.test(c)&&(f=c,d5))try{let k=new URL(window.location.href),C=c.startsWith("//")?new URL(k.protocol+c):new URL(c),S=Fr(C.pathname,p);C.origin===k.origin&&S!=null?c=S+C.search+C.hash:g=!0}catch{}let m=MT(c,{relative:o}),b=p5(c,{replace:s,state:a,target:l,preventScrollReset:u,relative:o,viewTransition:d});function x(k){r&&r(k),k.defaultPrevented||b(k)}return O.createElement("a",Fs({},h,{href:f||m,onClick:g||i?r:x,ref:n,target:l}))}),f5=O.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:s=!1,style:a,to:l,viewTransition:c,children:u}=t,d=rm(t,a5),h=Ls(l,{relative:d.relative}),p=zo(),f=O.useContext(Yp),{navigator:g,basename:m}=O.useContext(dn),b=f!=null&&m5(h)&&c===!0,x=g.encodeLocation?g.encodeLocation(h).pathname:h.pathname,k=p.pathname,C=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;o||(k=k.toLowerCase(),C=C?C.toLowerCase():null,x=x.toLowerCase()),C&&m&&(C=Fr(C,m)||C);const S=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let I=k===x||!s&&k.startsWith(x)&&k.charAt(S)==="/",_=C!=null&&(C===x||!s&&C.startsWith(x)&&C.charAt(x.length)==="/"),P={isActive:I,isPending:_,isTransitioning:b},T=I?r:void 0,N;typeof i=="function"?N=i(P):N=[i,I?"active":null,_?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let j=typeof a=="function"?a(P):a;return O.createElement(im,Fs({},d,{"aria-current":T,className:N,ref:n,style:j,to:l,viewTransition:c}),typeof u=="function"?u(P):u)});var vc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(vc||(vc={}));var sm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(sm||(sm={}));function g5(e){let t=O.useContext(As);return t||me(!1),t}function p5(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:a}=t===void 0?{}:t,l=$T(),c=zo(),u=Ls(e,{relative:s});return O.useCallback(d=>{if(i5(d,n)){d.preventDefault();let h=r!==void 0?r:_s(c)===_s(u);l(e,{replace:h,state:o,preventScrollReset:i,relative:s,viewTransition:a})}},[c,l,u,r,o,n,e,i,s,a])}function m5(e,t){t===void 0&&(t={});let n=O.useContext(c5);n==null&&me(!1);let{basename:r}=g5(vc.useViewTransitionState),o=Ls(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=Fr(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Fr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return fc(o.pathname,s)!=null||fc(o.pathname,i)!=null}const v5="UiServiceWorker",b5=e=>[v5],y5="UiServiceJobs",x5=e=>[y5];class am{constructor(){Ze(this,"_fns");this._fns=[]}eject(t){const n=this._fns.indexOf(t);n!==-1&&(this._fns=[...this._fns.slice(0,n),...this._fns.slice(n+1)])}use(t){this._fns=[...this._fns,t]}}const Ds={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"0.1.0",WITH_CREDENTIALS:!1,interceptors:{request:new am,response:new am}};class lm extends Error{constructor(n,r,o){super(o);Ze(this,"url");Ze(this,"status");Ze(this,"statusText");Ze(this,"body");Ze(this,"request");this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=n}}class C5 extends Error{constructor(t){super(t),this.name="CancelError"}get isCancelled(){return!0}}class k5{constructor(t){Ze(this,"_isResolved");Ze(this,"_isRejected");Ze(this,"_isCancelled");Ze(this,"cancelHandlers");Ze(this,"promise");Ze(this,"_resolve");Ze(this,"_reject");this._isResolved=!1,this._isRejected=!1,this._isCancelled=!1,this.cancelHandlers=[],this.promise=new Promise((n,r)=>{this._resolve=n,this._reject=r;const o=a=>{this._isResolved||this._isRejected||this._isCancelled||(this._isResolved=!0,this._resolve&&this._resolve(a))},i=a=>{this._isResolved||this._isRejected||this._isCancelled||(this._isRejected=!0,this._reject&&this._reject(a))},s=a=>{this._isResolved||this._isRejected||this._isCancelled||this.cancelHandlers.push(a)};return Object.defineProperty(s,"isResolved",{get:()=>this._isResolved}),Object.defineProperty(s,"isRejected",{get:()=>this._isRejected}),Object.defineProperty(s,"isCancelled",{get:()=>this._isCancelled}),t(o,i,s)})}get[Symbol.toStringTag](){return"Cancellable Promise"}then(t,n){return this.promise.then(t,n)}catch(t){return this.promise.catch(t)}finally(t){return this.promise.finally(t)}cancel(){if(!(this._isResolved||this._isRejected||this._isCancelled)){if(this._isCancelled=!0,this.cancelHandlers.length)try{for(const t of this.cancelHandlers)t()}catch(t){console.warn("Cancellation threw an error",t);return}this.cancelHandlers.length=0,this._reject&&this._reject(new C5("Request aborted"))}}get isCancelled(){return this._isCancelled}}const zs=e=>typeof e=="string",bc=e=>zs(e)&&e!=="",cm=e=>e instanceof Blob,S5=e=>e instanceof FormData,um=e=>e>=200&&e<300,w5=e=>{try{return btoa(e)}catch{return Buffer.from(e).toString("base64")}},E5=e=>{const t=[],n=(o,i)=>{t.push(`${encodeURIComponent(o)}=${encodeURIComponent(String(i))}`)},r=(o,i)=>{i!=null&&(i instanceof Date?n(o,i.toISOString()):Array.isArray(i)?i.forEach(s=>r(o,s)):typeof i=="object"?Object.entries(i).forEach(([s,a])=>r(`${o}[${s}]`,a)):n(o,i))};return Object.entries(e).forEach(([o,i])=>r(o,i)),t.length?`?${t.join("&")}`:""},O5=(e,t)=>{const n=encodeURI,r=t.url.replace("{api-version}",e.VERSION).replace(/{(.*?)}/g,(i,s)=>{var a;return(a=t.path)!=null&&a.hasOwnProperty(s)?n(String(t.path[s])):i}),o=e.BASE+r;return t.query?o+E5(t.query):o},I5=e=>{if(e.formData){const t=new FormData,n=(r,o)=>{zs(o)||cm(o)?t.append(r,o):t.append(r,JSON.stringify(o))};return Object.entries(e.formData).filter(([,r])=>r!=null).forEach(([r,o])=>{Array.isArray(o)?o.forEach(i=>n(r,i)):n(r,o)}),t}},Ms=async(e,t)=>t,P5=async(e,t)=>{const[n,r,o,i]=await Promise.all([Ms(t,e.TOKEN),Ms(t,e.USERNAME),Ms(t,e.PASSWORD),Ms(t,e.HEADERS)]),s=Object.entries({Accept:"application/json",...i,...t.headers}).filter(([,a])=>a!=null).reduce((a,[l,c])=>({...a,[l]:String(c)}),{});if(bc(n)&&(s.Authorization=`Bearer ${n}`),bc(r)&&bc(o)){const a=w5(`${r}:${o}`);s.Authorization=`Basic ${a}`}return t.body!==void 0?t.mediaType?s["Content-Type"]=t.mediaType:cm(t.body)?s["Content-Type"]=t.body.type||"application/octet-stream":zs(t.body)?s["Content-Type"]="text/plain":S5(t.body)||(s["Content-Type"]="application/json"):t.formData!==void 0&&t.mediaType&&(s["Content-Type"]=t.mediaType),s},R5=e=>{if(e.body)return e.body},T5=async(e,t,n,r,o,i,s,a)=>{const l=new AbortController;let c={data:r??o,headers:i,method:t.method,signal:l.signal,url:n,withCredentials:e.WITH_CREDENTIALS};s(()=>l.abort());for(const u of e.interceptors.request._fns)c=await u(c);try{return await a.request(c)}catch(u){const d=u;if(d.response)return d.response;throw u}},N5=(e,t)=>{if(t){const n=e.headers[t];if(zs(n))return n}},_5=e=>{if(e.status!==204)return e.data},A5=(e,t)=>{const r={400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required",...e.errors}[t.status];if(r)throw new lm(e,t,r);if(!t.ok){const o=t.status??"unknown",i=t.statusText??"unknown",s=(()=>{try{return JSON.stringify(t.body,null,2)}catch{return}})();throw new lm(e,t,`Generic Error: status: ${o}; status text: ${i}; body: ${s}`)}},$s=(e,t,n=pe)=>new k5(async(r,o,i)=>{try{const s=O5(e,t),a=I5(t),l=R5(t),c=await P5(e,t);if(!i.isCancelled){let u=await T5(e,t,s,l,a,c,i,n);for(const g of e.interceptors.response._fns)u=await g(u);const d=_5(u),h=N5(u,t.responseHeader);let p=d;t.responseTransformer&&um(u.status)&&(p=await t.responseTransformer(d));const f={url:s,ok:um(u.status),status:u.status,statusText:u.statusText,body:h??p};A5(t,f),r(f.body)}}catch(s){o(s)}});class js{static worker(){return $s(Ds,{method:"GET",url:"/edge_worker/ui/worker"})}static jobs(){return $s(Ds,{method:"GET",url:"/edge_worker/ui/jobs"})}static requestWorkerMaintenance(t){return $s(Ds,{method:"POST",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},body:t.requestBody,mediaType:"application/json",errors:{422:"Validation Error"}})}static exitWorkerMaintenance(t){return $s(Ds,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}}const V5=(e,t)=>Jg({queryKey:b5(),queryFn:()=>js.worker(),...t}),L5=(e,t)=>Jg({queryKey:x5(),queryFn:()=>js.jobs(),...t}),F5=e=>Zg({mutationFn:({requestBody:t,workerName:n})=>js.requestWorkerMaintenance({requestBody:t,workerName:n}),...e}),D5=e=>Zg({mutationFn:({workerName:t})=>js.exitWorkerMaintenance({workerName:t}),...e});function Bs(e){const t=new Date(e);if(!Number.isNaN(t.valueOf()))return t;const n=String(e).match(/\d+/g);if(n==null||n.length<=2)return t;{const[r,o,...i]=n.map(l=>parseInt(l)),s=[r,o-1,...i];return new Date(Date.UTC(...s))}}const Mo=(e,t,n)=>{const r=e!==1?t+"s":t;return e+" "+r+" "+n};function yc(){return yc=Object.assign?Object.assign.bind():function(e){for(var t=1;tDate.now();function Hs({date:e,formatter:t,component:n="time",live:r=!0,minPeriod:o=0,maxPeriod:i=Ws,title:s,now:a=z5,...l}){const[c,u]=w.useState(a());w.useEffect(()=>{if(!r)return;const _=(()=>{const P=Bs(e).valueOf();if(!P)return console.warn("[react-timeago] Invalid Date provided"),0;const T=Math.round(Math.abs(c-P)/1e3),N=T<$o?1e3:T{u(a())},j):0})();return()=>{_&&clearTimeout(_)}},[e,r,i,o,a,c]),w.useEffect(()=>{u(a())},[e]);const d=n,h=Bs(e).valueOf();if(!h)return null;const p=Math.round(Math.abs(c-h)/1e3),f=h"u"?typeof e=="string"?e:Bs(e).toISOString().substring(0,16).replace("T"," "):s,x=d==="time"?{...l,dateTime:Bs(e).toISOString()}:l,k=(I=I,_=_,P=P,T=h,N=Mo,j=j)=>Mo(I,_,P),C=t||Mo;let S;try{S=C(g,m,f,h,k,a),S||(S=Mo(g,m,f,h,k,a))}catch(I){console.error("[react-timeago] Formatter threw an error:",I),S=Mo(g,m,f)}return O.createElement(d,yc({},x,{title:b}),S)}var fm={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},gm=w.createContext&&w.createContext(fm),M5=["attr","size","title"];function $5(e,t){if(e==null)return{};var n=j5(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function j5(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Us(){return Us=Object.assign?Object.assign.bind():function(e){for(var t=1;tw.createElement(t.tag,Gs({key:n},t.attr),mm(t.child)))}function ye(e){return t=>w.createElement(U5,Us({attr:Gs({},e.attr)},t),mm(e.child))}function U5(e){var t=n=>{var{attr:r,size:o,title:i}=e,s=$5(e,M5),a=o||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),w.createElement("svg",Us({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:l,style:Gs(Gs({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&w.createElement("title",null,i),e.children)};return gm!==void 0?w.createElement(gm.Consumer,null,n=>t(n)):t(fm)}function G5(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 10v4h4"},child:[]},{tag:"path",attr:{d:"m11 14 1.535-1.605a5 5 0 0 1 8 1.5"},child:[]},{tag:"path",attr:{d:"M16 2v4"},child:[]},{tag:"path",attr:{d:"m21 18-1.535 1.605a5 5 0 0 1-8-1.5"},child:[]},{tag:"path",attr:{d:"M21 22v-4h-4"},child:[]},{tag:"path",attr:{d:"M21 8.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4.3"},child:[]},{tag:"path",attr:{d:"M3 10h4"},child:[]},{tag:"path",attr:{d:"M8 2v4"},child:[]}]})(e)}function q5(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 6 9 17l-5-5"},child:[]}]})(e)}function vm(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.1 2.182a10 10 0 0 1 3.8 0"},child:[]},{tag:"path",attr:{d:"M13.9 21.818a10 10 0 0 1-3.8 0"},child:[]},{tag:"path",attr:{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7"},child:[]},{tag:"path",attr:{d:"M2.182 13.9a10 10 0 0 1 0-3.8"},child:[]},{tag:"path",attr:{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69"},child:[]},{tag:"path",attr:{d:"M21.818 10.1a10 10 0 0 1 0 3.8"},child:[]},{tag:"path",attr:{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69"},child:[]},{tag:"path",attr:{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7"},child:[]}]})(e)}function K5(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 2a10 10 0 0 1 7.38 16.75"},child:[]},{tag:"path",attr:{d:"m16 12-4-4-4 4"},child:[]},{tag:"path",attr:{d:"M12 16V8"},child:[]},{tag:"path",attr:{d:"M2.5 8.875a10 10 0 0 0-.5 3"},child:[]},{tag:"path",attr:{d:"M2.83 16a10 10 0 0 0 2.43 3.4"},child:[]},{tag:"path",attr:{d:"M4.636 5.235a10 10 0 0 1 .891-.857"},child:[]},{tag:"path",attr:{d:"M8.644 21.42a10 10 0 0 0 7.631-.38"},child:[]}]})(e)}function X5(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m15 14 5-5-5-5"},child:[]},{tag:"path",attr:{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13"},child:[]}]})(e)}function Y5(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 6 6 18"},child:[]},{tag:"path",attr:{d:"m6 6 12 12"},child:[]}]})(e)}const Q5=w.forwardRef((e,t)=>v.jsx(gs,{"aria-label":"Close",ref:t,variant:"ghost",...e,children:e.children??v.jsx(Y5,{})})),J5=w.forwardRef((e,t)=>{const{children:n,closable:r,endElement:o,icon:i,onClose:s,startElement:a,title:l,...c}=e;return v.jsxs(wI,{ref:t,...c,alignItems:"center",children:[a??v.jsx(PI,{children:i}),n?v.jsxs(OI,{children:[v.jsx(kg,{children:l}),v.jsx(EI,{children:n})]}):v.jsx(kg,{flex:"1",children:l}),o,r?v.jsx(Q5,{alignSelf:"flex-start",insetEnd:"-2",onClick:s,pos:"relative",size:"sm",top:"-2"}):void 0]})});/*! +======= + */function _s(){return _s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function CN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function SN(e,t){return e.button===0&&(!t||t==="_self")&&!CN(e)}const wN=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],EN=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],kN="6";try{window.__reactRouterVersion=kN}catch{}const ON=O.createContext({isTransitioning:!1}),lm=O["startTransition"];function IN(e){let{basename:t,children:n,future:r,window:i}=e,o=O.useRef();o.current==null&&(o.current=N2({window:i,v5Compat:!0}));let s=o.current,[a,l]=O.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},u=O.useCallback(d=>{c&&lm?lm(()=>l(d)):l(d)},[l,c]);return O.useLayoutEffect(()=>s.listen(u),[s,u]),O.useEffect(()=>bN(r),[r]),O.createElement(yN,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const PN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",RN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,TN=O.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,h=am(t,wN),{basename:m}=O.useContext(dn),f,g=!1;if(typeof c=="string"&&RN.test(c)&&(f=c,PN))try{let S=new URL(window.location.href),C=c.startsWith("//")?new URL(S.protocol+c):new URL(c),w=Lr(C.pathname,m);C.origin===S.origin&&w!=null?c=w+C.search+C.hash:g=!0}catch{}let p=nN(c,{relative:i}),b=_N(c,{replace:s,state:a,target:l,preventScrollReset:u,relative:i,viewTransition:d});function x(S){r&&r(S),S.defaultPrevented||b(S)}return O.createElement("a",_s({},h,{href:f||p,onClick:g||o?r:x,ref:n,target:l}))}),NN=O.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:s=!1,style:a,to:l,viewTransition:c,children:u}=t,d=am(t,EN),h=As(l,{relative:d.relative}),m=zi(),f=O.useContext(em),{navigator:g,basename:p}=O.useContext(dn),b=f!=null&&VN(h)&&c===!0,x=g.encodeLocation?g.encodeLocation(h).pathname:h.pathname,S=m.pathname,C=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;i||(S=S.toLowerCase(),C=C?C.toLowerCase():null,x=x.toLowerCase()),C&&p&&(C=Lr(C,p)||C);const w=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let P=S===x||!s&&S.startsWith(x)&&S.charAt(w)==="/",_=C!=null&&(C===x||!s&&C.startsWith(x)&&C.charAt(x.length)==="/"),R={isActive:P,isPending:_,isTransitioning:b},N=P?r:void 0,T;typeof o=="function"?T=o(R):T=[o,P?"active":null,_?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let j=typeof a=="function"?a(R):a;return O.createElement(TN,_s({},d,{"aria-current":N,className:T,ref:n,style:j,to:l,viewTransition:c}),typeof u=="function"?u(R):u)});var uc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(uc||(uc={}));var cm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(cm||(cm={}));function AN(e){let t=O.useContext(Ts);return t||pe(!1),t}function _N(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:a}=t===void 0?{}:t,l=rN(),c=zi(),u=As(e,{relative:s});return O.useCallback(d=>{if(SN(d,n)){d.preventDefault();let h=r!==void 0?r:Rs(c)===Rs(u);l(e,{replace:h,state:i,preventScrollReset:o,relative:s,viewTransition:a})}},[c,l,u,r,i,n,e,o,s,a])}function VN(e,t){t===void 0&&(t={});let n=O.useContext(ON);n==null&&pe(!1);let{basename:r}=AN(uc.useViewTransitionState),i=As(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=Lr(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Lr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return sc(i.pathname,s)!=null||sc(i.pathname,o)!=null}const FN="UiServiceWorker",LN=e=>[FN],DN="UiServiceJobs",zN=e=>[DN];class um{constructor(){Je(this,"_fns");this._fns=[]}eject(t){const n=this._fns.indexOf(t);n!==-1&&(this._fns=[...this._fns.slice(0,n),...this._fns.slice(n+1)])}use(t){this._fns=[...this._fns,t]}}const Vs={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"0.1.0",WITH_CREDENTIALS:!1,interceptors:{request:new um,response:new um}};class dm extends Error{constructor(n,r,i){super(i);Je(this,"url");Je(this,"status");Je(this,"statusText");Je(this,"body");Je(this,"request");this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=n}}class MN extends Error{constructor(t){super(t),this.name="CancelError"}get isCancelled(){return!0}}class $N{constructor(t){Je(this,"_isResolved");Je(this,"_isRejected");Je(this,"_isCancelled");Je(this,"cancelHandlers");Je(this,"promise");Je(this,"_resolve");Je(this,"_reject");this._isResolved=!1,this._isRejected=!1,this._isCancelled=!1,this.cancelHandlers=[],this.promise=new Promise((n,r)=>{this._resolve=n,this._reject=r;const i=a=>{this._isResolved||this._isRejected||this._isCancelled||(this._isResolved=!0,this._resolve&&this._resolve(a))},o=a=>{this._isResolved||this._isRejected||this._isCancelled||(this._isRejected=!0,this._reject&&this._reject(a))},s=a=>{this._isResolved||this._isRejected||this._isCancelled||this.cancelHandlers.push(a)};return Object.defineProperty(s,"isResolved",{get:()=>this._isResolved}),Object.defineProperty(s,"isRejected",{get:()=>this._isRejected}),Object.defineProperty(s,"isCancelled",{get:()=>this._isCancelled}),t(i,o,s)})}get[Symbol.toStringTag](){return"Cancellable Promise"}then(t,n){return this.promise.then(t,n)}catch(t){return this.promise.catch(t)}finally(t){return this.promise.finally(t)}cancel(){if(!(this._isResolved||this._isRejected||this._isCancelled)){if(this._isCancelled=!0,this.cancelHandlers.length)try{for(const t of this.cancelHandlers)t()}catch(t){console.warn("Cancellation threw an error",t);return}this.cancelHandlers.length=0,this._reject&&this._reject(new MN("Request aborted"))}}get isCancelled(){return this._isCancelled}}const Fs=e=>typeof e=="string",dc=e=>Fs(e)&&e!=="",hm=e=>e instanceof Blob,BN=e=>e instanceof FormData,fm=e=>e>=200&&e<300,jN=e=>{try{return btoa(e)}catch{return Buffer.from(e).toString("base64")}},WN=e=>{const t=[],n=(i,o)=>{t.push(`${encodeURIComponent(i)}=${encodeURIComponent(String(o))}`)},r=(i,o)=>{o!=null&&(o instanceof Date?n(i,o.toISOString()):Array.isArray(o)?o.forEach(s=>r(i,s)):typeof o=="object"?Object.entries(o).forEach(([s,a])=>r(`${i}[${s}]`,a)):n(i,o))};return Object.entries(e).forEach(([i,o])=>r(i,o)),t.length?`?${t.join("&")}`:""},HN=(e,t)=>{const n=encodeURI,r=t.url.replace("{api-version}",e.VERSION).replace(/{(.*?)}/g,(o,s)=>{var a;return(a=t.path)!=null&&a.hasOwnProperty(s)?n(String(t.path[s])):o}),i=e.BASE+r;return t.query?i+WN(t.query):i},UN=e=>{if(e.formData){const t=new FormData,n=(r,i)=>{Fs(i)||hm(i)?t.append(r,i):t.append(r,JSON.stringify(i))};return Object.entries(e.formData).filter(([,r])=>r!=null).forEach(([r,i])=>{Array.isArray(i)?i.forEach(o=>n(r,o)):n(r,i)}),t}},Ls=async(e,t)=>t,GN=async(e,t)=>{const[n,r,i,o]=await Promise.all([Ls(t,e.TOKEN),Ls(t,e.USERNAME),Ls(t,e.PASSWORD),Ls(t,e.HEADERS)]),s=Object.entries({Accept:"application/json",...o,...t.headers}).filter(([,a])=>a!=null).reduce((a,[l,c])=>({...a,[l]:String(c)}),{});if(dc(n)&&(s.Authorization=`Bearer ${n}`),dc(r)&&dc(i)){const a=jN(`${r}:${i}`);s.Authorization=`Basic ${a}`}return t.body!==void 0?t.mediaType?s["Content-Type"]=t.mediaType:hm(t.body)?s["Content-Type"]=t.body.type||"application/octet-stream":Fs(t.body)?s["Content-Type"]="text/plain":BN(t.body)||(s["Content-Type"]="application/json"):t.formData!==void 0&&t.mediaType&&(s["Content-Type"]=t.mediaType),s},qN=e=>{if(e.body)return e.body},KN=async(e,t,n,r,i,o,s,a)=>{const l=new AbortController;let c={data:r??i,headers:o,method:t.method,signal:l.signal,url:n,withCredentials:e.WITH_CREDENTIALS};s(()=>l.abort());for(const u of e.interceptors.request._fns)c=await u(c);try{return await a.request(c)}catch(u){const d=u;if(d.response)return d.response;throw u}},XN=(e,t)=>{if(t){const n=e.headers[t];if(Fs(n))return n}},YN=e=>{if(e.status!==204)return e.data},QN=(e,t)=>{const r={400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required",...e.errors}[t.status];if(r)throw new dm(e,t,r);if(!t.ok){const i=t.status??"unknown",o=t.statusText??"unknown",s=(()=>{try{return JSON.stringify(t.body,null,2)}catch{return}})();throw new dm(e,t,`Generic Error: status: ${i}; status text: ${o}; body: ${s}`)}},Ds=(e,t,n=ge)=>new $N(async(r,i,o)=>{try{const s=HN(e,t),a=UN(t),l=qN(t),c=await GN(e,t);if(!o.isCancelled){let u=await KN(e,t,s,l,a,c,o,n);for(const g of e.interceptors.response._fns)u=await g(u);const d=YN(u),h=XN(u,t.responseHeader);let m=d;t.responseTransformer&&fm(u.status)&&(m=await t.responseTransformer(d));const f={url:s,ok:fm(u.status),status:u.status,statusText:u.statusText,body:h??m};QN(t,f),r(f.body)}}catch(s){i(s)}});class zs{static worker(){return Ds(Vs,{method:"GET",url:"/edge_worker/ui/worker"})}static jobs(){return Ds(Vs,{method:"GET",url:"/edge_worker/ui/jobs"})}static requestWorkerMaintenance(t){return Ds(Vs,{method:"POST",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},body:t.requestBody,mediaType:"application/json",errors:{422:"Validation Error"}})}static exitWorkerMaintenance(t){return Ds(Vs,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}}const JN=(e,t)=>np({queryKey:LN(),queryFn:()=>zs.worker(),...t}),ZN=(e,t)=>np({queryKey:zN(),queryFn:()=>zs.jobs(),...t}),eA=e=>rp({mutationFn:({requestBody:t,workerName:n})=>zs.requestWorkerMaintenance({requestBody:t,workerName:n}),...e}),tA=e=>rp({mutationFn:({workerName:t})=>zs.exitWorkerMaintenance({workerName:t}),...e});var gm={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},pm=E.createContext&&E.createContext(gm),nA=["attr","size","title"];function rA(e,t){if(e==null)return{};var n=iA(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iA(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ms(){return Ms=Object.assign?Object.assign.bind():function(e){for(var t=1;tE.createElement(t.tag,$s({key:n},t.attr),vm(t.child)))}function be(e){return t=>E.createElement(lA,Ms({attr:$s({},e.attr)},t),vm(e.child))}function lA(e){var t=n=>{var{attr:r,size:i,title:o}=e,s=rA(e,nA),a=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),E.createElement("svg",Ms({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:l,style:$s($s({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&E.createElement("title",null,o),e.children)};return pm!==void 0?E.createElement(pm.Consumer,null,n=>t(n)):t(gm)}function cA(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 10v4h4"},child:[]},{tag:"path",attr:{d:"m11 14 1.535-1.605a5 5 0 0 1 8 1.5"},child:[]},{tag:"path",attr:{d:"M16 2v4"},child:[]},{tag:"path",attr:{d:"m21 18-1.535 1.605a5 5 0 0 1-8-1.5"},child:[]},{tag:"path",attr:{d:"M21 22v-4h-4"},child:[]},{tag:"path",attr:{d:"M21 8.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4.3"},child:[]},{tag:"path",attr:{d:"M3 10h4"},child:[]},{tag:"path",attr:{d:"M8 2v4"},child:[]}]})(e)}function uA(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 6 9 17l-5-5"},child:[]}]})(e)}function bm(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.1 2.182a10 10 0 0 1 3.8 0"},child:[]},{tag:"path",attr:{d:"M13.9 21.818a10 10 0 0 1-3.8 0"},child:[]},{tag:"path",attr:{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7"},child:[]},{tag:"path",attr:{d:"M2.182 13.9a10 10 0 0 1 0-3.8"},child:[]},{tag:"path",attr:{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69"},child:[]},{tag:"path",attr:{d:"M21.818 10.1a10 10 0 0 1 0 3.8"},child:[]},{tag:"path",attr:{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69"},child:[]},{tag:"path",attr:{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7"},child:[]}]})(e)}function dA(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 2a10 10 0 0 1 7.38 16.75"},child:[]},{tag:"path",attr:{d:"m16 12-4-4-4 4"},child:[]},{tag:"path",attr:{d:"M12 16V8"},child:[]},{tag:"path",attr:{d:"M2.5 8.875a10 10 0 0 0-.5 3"},child:[]},{tag:"path",attr:{d:"M2.83 16a10 10 0 0 0 2.43 3.4"},child:[]},{tag:"path",attr:{d:"M4.636 5.235a10 10 0 0 1 .891-.857"},child:[]},{tag:"path",attr:{d:"M8.644 21.42a10 10 0 0 0 7.631-.38"},child:[]}]})(e)}function hA(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m15 14 5-5-5-5"},child:[]},{tag:"path",attr:{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13"},child:[]}]})(e)}function fA(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 6 6 18"},child:[]},{tag:"path",attr:{d:"m6 6 12 12"},child:[]}]})(e)}const gA=E.forwardRef((e,t)=>v.jsx(hs,{"aria-label":"Close",ref:t,variant:"ghost",...e,children:e.children??v.jsx(fA,{})})),pA=E.forwardRef((e,t)=>{const{children:n,closable:r,endElement:i,icon:o,onClose:s,startElement:a,title:l,...c}=e;return v.jsxs(ZP,{ref:t,...c,alignItems:"center",children:[a??v.jsx(rR,{children:o}),n?v.jsxs(tR,{children:[v.jsx(pg,{children:l}),v.jsx(eR,{children:n})]}):v.jsx(pg,{flex:"1",children:l}),i,r?v.jsx(gA,{alignSelf:"flex-start",insetEnd:"-2",onClick:s,pos:"relative",size:"sm",top:"-2"}):void 0]})});/*! +>>>>>>> 3f3a37a363 (Add confirmation dialog for exit maintenance action in Edge Worker Page) * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -70,7 +105,11 @@ * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. +<<<<<<< HEAD */const Z5=xw({pauseOnPageIdle:!0,placement:"bottom-end"});/*! +======= + */const mA=XE({pauseOnPageIdle:!0,placement:"bottom-end"}),ym=({error:e})=>{var i;const t=e;if(!t)return;const n=(i=t.body)==null?void 0:i.detail;let r;return n!==void 0&&(typeof n=="string"?r=n:Array.isArray(n)?r=n.map(o=>`${o.loc.join(".")} ${o.msg}`):r=Object.keys(n).map(o=>`${o}: ${n[o]}`)),v.jsx(pA,{status:"error",children:v.jsxs(fR,{align:"start",flexDirection:"column",gap:2,mt:-1,children:[t.status," ",t.message,r===t.message?void 0:v.jsx(n1,{whiteSpace:"preserve",wordBreak:"break-all",children:r})]})})};function xm(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"22 12 18 12 15 21 9 3 6 12 2 12"},child:[]}]})(e)}function vA(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"7",y1:"7",x2:"17",y2:"17"},child:[]},{tag:"polyline",attr:{points:"17 7 17 17 7 17"},child:[]}]})(e)}function bA(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"16",y1:"2",x2:"16",y2:"6"},child:[]},{tag:"line",attr:{x1:"8",y1:"2",x2:"8",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"10",x2:"21",y2:"10"},child:[]}]})(e)}function yA(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"17 1 21 5 17 9"},child:[]},{tag:"path",attr:{d:"M3 11V9a4 4 0 0 1 4-4h14"},child:[]},{tag:"polyline",attr:{points:"7 23 3 19 7 15"},child:[]},{tag:"path",attr:{d:"M21 13v2a4 4 0 0 1-4 4H3"},child:[]}]})(e)}function xA(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"5 4 15 12 5 20 5 4"},child:[]},{tag:"line",attr:{x1:"19",y1:"5",x2:"19",y2:"19"},child:[]}]})(e)}function CA(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"4.93",y1:"4.93",x2:"19.07",y2:"19.07"},child:[]}]})(e)}function Cm(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"7"},child:[]},{tag:"polyline",attr:{points:"12 9 12 12 13.5 13.5"},child:[]},{tag:"path",attr:{d:"M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"},child:[]}]})(e)}function SA(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(e)}function wA(e){return be({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm104,56H40a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Zm0,64H40a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Zm112-24a8,8,0,0,1-3.76,6.78l-64,40A8,8,0,0,1,168,200V120a8,8,0,0,1,12.24-6.78l64,40A8,8,0,0,1,248,160Zm-23.09,0L184,134.43v51.14Z"},child:[]}]})(e)}const EA=({state:e,...t})=>{switch(e){case"deferred":return v.jsx(Cm,{...t});case"failed":return v.jsx(SA,{...t});case"queued":return v.jsx(wA,{...t});case"removed":return v.jsx(CA,{...t});case"restarting":return v.jsx(yA,{...t});case"running":return v.jsx(xm,{...t});case"scheduled":return v.jsx(bA,{...t});case"skipped":return v.jsx(xA,{...t});case"success":return v.jsx(uA,{...t});case"up_for_reschedule":return v.jsx(cA,{...t});case"up_for_retry":return v.jsx(hA,{...t});case"upstream_failed":return v.jsx(dA,{...t});default:return v.jsx(bm,{...t})}},kA=O.forwardRef(({children:e,state:t,...n},r)=>v.jsxs(mg,{borderRadius:"full",colorPalette:t===null?"none":t,fontSize:"sm",px:e===void 0?1:2,py:1,ref:r,variant:"solid",...n,children:[t===void 0?void 0:v.jsx(EA,{state:t}),e]}));/*! +>>>>>>> 3f3a37a363 (Add confirmation dialog for exit maintenance action in Edge Worker Page) * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -87,7 +126,11 @@ * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. +<<<<<<< HEAD */const eN=({block:e="start",inline:t="nearest"})=>{const[n,r]=w.useState(()=>window.location.hash);return w.useEffect(()=>{const o=()=>r(window.location.hash);return window.addEventListener("hashchange",o),()=>window.removeEventListener("hashchange",o)},[]),w.useEffect(()=>{if(n){const o=document.getElementById(n.slice(1));o&&o.scrollIntoView({behavior:"auto",block:e,inline:t})}},[n,e,t]),null},bm=({error:e})=>{var o;const t=e;if(!t)return;const n=(o=t.body)==null?void 0:o.detail;let r;return n!==void 0&&(typeof n=="string"?r=n:Array.isArray(n)?r=n.map(i=>`${i.loc.join(".")} ${i.msg}`):r=Object.keys(n).map(i=>`${i}: ${n[i]}`)),v.jsx(J5,{status:"error",children:v.jsxs(YI,{align:"start",flexDirection:"column",gap:2,mt:-1,children:[t.status," ",t.message,r===t.message?void 0:v.jsx(Ex,{whiteSpace:"preserve",wordBreak:"break-all",children:r})]})})};function ym(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"22 12 18 12 15 21 9 3 6 12 2 12"},child:[]}]})(e)}function tN(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"7",y1:"7",x2:"17",y2:"17"},child:[]},{tag:"polyline",attr:{points:"17 7 17 17 7 17"},child:[]}]})(e)}function nN(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"16",y1:"2",x2:"16",y2:"6"},child:[]},{tag:"line",attr:{x1:"8",y1:"2",x2:"8",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"10",x2:"21",y2:"10"},child:[]}]})(e)}function rN(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"17 1 21 5 17 9"},child:[]},{tag:"path",attr:{d:"M3 11V9a4 4 0 0 1 4-4h14"},child:[]},{tag:"polyline",attr:{points:"7 23 3 19 7 15"},child:[]},{tag:"path",attr:{d:"M21 13v2a4 4 0 0 1-4 4H3"},child:[]}]})(e)}function oN(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"5 4 15 12 5 20 5 4"},child:[]},{tag:"line",attr:{x1:"19",y1:"5",x2:"19",y2:"19"},child:[]}]})(e)}function iN(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"4.93",y1:"4.93",x2:"19.07",y2:"19.07"},child:[]}]})(e)}function xm(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"7"},child:[]},{tag:"polyline",attr:{points:"12 9 12 12 13.5 13.5"},child:[]},{tag:"path",attr:{d:"M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"},child:[]}]})(e)}function sN(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(e)}function aN(e){return ye({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm104,56H40a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Zm0,64H40a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Zm112-24a8,8,0,0,1-3.76,6.78l-64,40A8,8,0,0,1,168,200V120a8,8,0,0,1,12.24-6.78l64,40A8,8,0,0,1,248,160Zm-23.09,0L184,134.43v51.14Z"},child:[]}]})(e)}const lN=({state:e,...t})=>{switch(e){case"deferred":return v.jsx(xm,{...t});case"failed":return v.jsx(sN,{...t});case"queued":return v.jsx(aN,{...t});case"removed":return v.jsx(iN,{...t});case"restarting":return v.jsx(rN,{...t});case"running":return v.jsx(ym,{...t});case"scheduled":return v.jsx(nN,{...t});case"skipped":return v.jsx(oN,{...t});case"success":return v.jsx(q5,{...t});case"up_for_reschedule":return v.jsx(G5,{...t});case"up_for_retry":return v.jsx(X5,{...t});case"upstream_failed":return v.jsx(K5,{...t});default:return v.jsx(vm,{...t})}},cN=O.forwardRef(({children:e,state:t,...n},r)=>v.jsxs(Sg,{borderRadius:"full",colorPalette:t===null?"none":t,fontSize:"sm",px:e===void 0?1:2,py:1,ref:r,variant:"solid",...n,children:[t===void 0?void 0:v.jsx(lN,{state:t}),e]}));/*! +======= + */const Sm=5e3;/*! +>>>>>>> 3f3a37a363 (Add confirmation dialog for exit maintenance action in Edge Worker Page) * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -121,7 +164,11 @@ * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. +<<<<<<< HEAD */const uN=e=>{const[t,n]=w.useState(0);return w.useEffect(()=>{if(!e.current)return;const r=new ResizeObserver(o=>{for(const i of o)n(i.contentRect.width)});return r.observe(e.current),()=>{r.disconnect()}},[e]),t};/*! +======= + */const wm="token",IA=()=>{const e=document.cookie.split(";");for(const t of e){const[n,r]=t.split("=");if((n==null?void 0:n.trim())==="_token"&&r!==void 0)return localStorage.setItem(wm,r),document.cookie="_token=; expires=Sat, 01 Jan 2000 00:00:00 UTC; path=/;",r}},PA=e=>{const t=localStorage.getItem(wm)??IA();return t!==void 0&&(e.headers.Authorization=`Bearer ${t}`),e},RA=()=>{const{data:e,error:t}=ZN(void 0,{enabled:!0,refetchInterval:Sm});return e?v.jsx(zt,{p:2,children:v.jsxs(Ng,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[v.jsx(Ag,{children:v.jsxs(fs,{children:[v.jsx(Te,{children:"Dag ID"}),v.jsx(Te,{children:"Run ID"}),v.jsx(Te,{children:"Task ID"}),v.jsx(Te,{children:"Map Index"}),v.jsx(Te,{children:"Try Number"}),v.jsx(Te,{children:"State"}),v.jsx(Te,{children:"Queue"}),v.jsx(Te,{children:"Queued DTTM"}),v.jsx(Te,{children:"Edge Worker"}),v.jsx(Te,{children:"Last Update"})]})}),v.jsx(_g,{children:e.jobs.map(n=>v.jsxs(fs,{children:[v.jsx(Ne,{children:n.dag_id}),v.jsx(Ne,{children:n.run_id}),v.jsx(Ne,{children:n.task_id}),v.jsx(Ne,{children:n.map_index}),v.jsx(Ne,{children:n.try_number}),v.jsx(Ne,{children:v.jsx(kA,{state:n.state,children:n.state})}),v.jsx(Ne,{children:n.queue}),v.jsx(Ne,{children:n.queued_dttm}),v.jsx(Ne,{children:n.edge_worker}),v.jsx(Ne,{children:n.last_update})]},`${n.dag_id}.${n.run_id}.${n.task_id}.${n.map_index}.${n.try_number}`))})]})}):t?v.jsxs(zt,{p:2,children:[v.jsx("p",{children:"Unable to load data:"}),v.jsx(ym,{error:t})]}):v.jsx(zt,{p:2,children:"Loading..."})};function Em(e){return be({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}function TA(e){return be({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75a4.5 4.5 0 0 1-4.884 4.484c-1.076-.091-2.264.071-2.95.904l-7.152 8.684a2.548 2.548 0 1 1-3.586-3.586l8.684-7.152c.833-.686.995-1.874.904-2.95a4.5 4.5 0 0 1 6.336-4.486l-3.276 3.276a3.004 3.004 0 0 0 2.25 2.25l3.276-3.276c.256.565.398 1.192.398 1.852Z"},child:[]},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}const NA=({onEnterMaintenance:e,workerName:t})=>{const{onClose:n,onOpen:r,open:i}=Bu(),[o,s]=E.useState(""),a=eA({onError:c=>{e({description:`Unable to set worker ${t} to maintenance mode: ${c}`,title:"Setting Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to be in maintenance mode.`,title:"Maintenance Mode activated",type:"success"})}}),l=()=>{a.mutate({requestBody:{maintenance_comment:o},workerName:t})};return v.jsxs(v.Fragment,{children:[v.jsx(hs,{size:"sm",variant:"ghost","aria-label":"Enter Maintenance",title:"Enter Maintenance",onClick:r,children:v.jsx(Em,{})}),v.jsx(Cg,{onOpenChange:n,open:i,size:"md",children:v.jsxs(Gh,{children:[v.jsx(Ig,{}),v.jsx(Sg,{children:v.jsxs(wg,{children:[v.jsx(Tg,{children:v.jsxs(Eg,{children:["Set maintenance for worker ",t]})}),v.jsx(Pg,{children:v.jsx(yR,{placeholder:"Enter maintenance comment (required)",value:o,onChange:c=>s(c.target.value),required:!0,maxLength:1024,size:"sm"})}),v.jsxs(Rg,{children:[v.jsx(Og,{asChild:!0,children:v.jsx(Ii,{variant:"outline",children:"Cancel"})}),v.jsx(Ii,{onClick:l,disabled:!o.trim(),children:"Confirm Maintenance"})]}),v.jsx(kg,{asChild:!0,children:v.jsx(vg,{size:"sm"})})]})})]})})]})};function AA(e){return be({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M215.469 332.802l29.863 29.864L352 256 245.332 149.333l-29.863 29.865 55.469 55.469H64v42.666h205.864l-54.395 55.469zM405.334 64H106.666C83.198 64 64 83.198 64 106.666V192h42.666v-85.333h298.668v298.668H106.666V320H64v85.334C64 428.802 83.198 448 106.666 448h298.668C428.802 448 448 428.802 448 405.334V106.666C448 83.198 428.802 64 405.334 64z"},child:[]}]})(e)}const _A=({onExitMaintenance:e,workerName:t})=>{const{onClose:n,onOpen:r,open:i}=Bu(),o=tA({onError:a=>{e({description:`Unable to exit ${t} from maintenance mode: ${a}`,title:"Exit Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to exit maintenance mode.`,title:"Maintenance Mode deactivated",type:"success"}),n()}}),s=()=>{o.mutate({workerName:t})};return v.jsxs(v.Fragment,{children:[v.jsx(hs,{size:"sm",variant:"ghost",onClick:r,"aria-label":"Exit Maintenance",title:"Exit Maintenance",children:v.jsx(AA,{})}),v.jsx(Cg,{onOpenChange:n,open:i,size:"md",children:v.jsxs(Gh,{children:[v.jsx(Ig,{}),v.jsx(Sg,{children:v.jsxs(wg,{children:[v.jsx(Tg,{children:v.jsxs(Eg,{children:["Exit maintenance for worker ",t]})}),v.jsx(Pg,{children:v.jsxs("p",{children:["Are you sure you want to exit maintenance mode for worker ",t,"?"]})}),v.jsxs(Rg,{children:[v.jsx(Og,{asChild:!0,children:v.jsx(Ii,{variant:"outline",children:"No"})}),v.jsx(Ii,{onClick:s,colorScheme:"red",children:"Yes"})]}),v.jsx(kg,{asChild:!0,children:v.jsx(vg,{size:"sm"})})]})})]})})]})},VA=({onOperations:e,worker:t})=>{const n=t.worker_name,r=t.state,i=o=>{mA.create(o),e()};return r==="idle"||r==="running"?v.jsx(Fl,{justifyContent:"end",children:v.jsx(NA,{onEnterMaintenance:i,workerName:n})}):r==="maintenance pending"||r==="maintenance mode"||r==="maintenance request"||r==="offline maintenance"?v.jsxs(gR,{gap:2,align:"stretch",children:[v.jsx(zt,{fontSize:"sm",whiteSpace:"pre-wrap",children:t.maintenance_comments||"No comment"}),v.jsx(Fl,{justifyContent:"end",children:v.jsx(_A,{onExitMaintenance:i,workerName:n})})]}):null};function FA(e){return be({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m22 3.41-.12-1.26-1.2.4a13.84 13.84 0 0 1-6.41.64 11.87 11.87 0 0 0-6.68.9A7.23 7.23 0 0 0 3.3 9.5a9 9 0 0 0 .39 4.58 16.6 16.6 0 0 1 1.18-2.2 9.85 9.85 0 0 1 4.07-3.43 11.16 11.16 0 0 1 5.06-1A12.08 12.08 0 0 0 9.34 9.2a9.48 9.48 0 0 0-1.86 1.53 11.38 11.38 0 0 0-1.39 1.91 16.39 16.39 0 0 0-1.57 4.54A26.42 26.42 0 0 0 4 22h2a30.69 30.69 0 0 1 .59-4.32 9.25 9.25 0 0 0 4.52 1.11 11 11 0 0 0 4.28-.87C23 14.67 22 3.86 22 3.41z"},child:[]}]})(e)}function LA(e){return be({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M93.72 183.25C49.49 198.05 16 233.1 16 288c0 66 54 112 120 112h184.37m147.45-22.26C485.24 363.3 496 341.61 496 312c0-59.82-53-85.76-96-88-8.89-89.54-71-144-144-144-26.16 0-48.79 6.93-67.6 18.14"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M448 448 64 64"},child:[]}]})(e)}function DA(e){return be({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12.0001 18C12.7144 18 13.3704 18.2497 13.8856 18.6665L12.0001 21L10.1145 18.6665C10.6297 18.2497 11.2857 18 12.0001 18ZM2.80766 1.39343L20.4853 19.0711L19.0711 20.4853L13.8913 15.3042C13.2967 15.1069 12.6609 15 12.0001 15C10.5719 15 9.26024 15.499 8.22998 16.3322L6.97363 14.7759C8.24961 13.7442 9.84925 13.0969 11.5964 13.01L9.00025 10.414C7.55273 10.8234 6.22651 11.5217 5.0878 12.4426L3.83099 10.8868C4.89946 10.0226 6.10763 9.32438 7.41633 8.83118L5.13168 6.5451C3.98878 7.08913 2.92058 7.76472 1.94666 8.55228L0.689453 6.99674C1.60358 6.25747 2.59156 5.60589 3.64058 5.05479L1.39345 2.80765L2.80766 1.39343ZM14.5004 10.2854L12.2165 8.00243L12 8C15.0947 8 17.9369 9.08141 20.1693 10.8869L18.9123 12.4426C17.6438 11.4167 16.1427 10.6672 14.5004 10.2854ZM12.0001 3.00003C16.2849 3.00003 20.22 4.49719 23.3109 6.99691L22.0534 8.55228C19.3061 6.33062 15.8085 5.00003 12.0001 5.00003C11.122 5.00003 10.2604 5.07077 9.42075 5.20685L7.72455 3.51088C9.09498 3.17702 10.5268 3.00003 12.0001 3.00003Z"},child:[]}]})(e)}const zA=({state:e,...t})=>{switch(e){case"starting":return v.jsx(Cm,{...t});case"running":return v.jsx(xm,{...t});case"idle":return v.jsx(FA,{...t});case"shutdown request":case"terminating":return v.jsx(vA,{...t});case"offline":return v.jsx(LA,{...t});case"unknown":return v.jsx(DA,{...t});case"maintenance request":case"maintenance pending":case"maintenance exit":return v.jsx(TA,{...t});case"maintenance mode":case"offline maintenance":return v.jsx(Em,{...t});default:return v.jsx(bm,{...t})}},MA=e=>{switch(e){case"starting":case"maintenance request":case"maintenance exit":return"yellow";case"running":return"green";case"idle":return"teal";case"shutdown request":case"terminating":return"purple";case"offline":case"offline maintenance":return"black";case"unknown":return"red";case"maintenance mode":case"maintenance pending":return"orange";default:return"gray"}},$A=O.forwardRef(({children:e,state:t,...n},r)=>v.jsxs(mg,{borderRadius:"full",colorPalette:MA(t),fontSize:"sm",px:e===void 0?1:2,py:1,ref:r,variant:"solid",...n,children:[t===void 0?void 0:v.jsx(zA,{state:t}),e]})),BA=()=>{const{data:e,error:t,refetch:n}=JN(void 0,{enabled:!0,refetchInterval:Sm});return e?v.jsx(zt,{p:2,children:v.jsxs(Ng,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[v.jsx(Ag,{children:v.jsxs(fs,{children:[v.jsx(Te,{children:"Worker Name"}),v.jsx(Te,{children:"State"}),v.jsx(Te,{children:"Queues"}),v.jsx(Te,{children:"First Online"}),v.jsx(Te,{children:"Last Heartbeat"}),v.jsx(Te,{children:"Active Jobs"}),v.jsx(Te,{children:"System Information"}),v.jsx(Te,{children:"Operations"})]})}),v.jsx(_g,{children:e.workers.map(r=>v.jsxs(fs,{children:[v.jsx(Ne,{children:r.worker_name}),v.jsx(Ne,{children:v.jsx($A,{state:r.state,children:r.state})}),v.jsx(Ne,{children:r.queues?v.jsx("ul",{children:r.queues.map(i=>v.jsx("li",{children:i},i))}):"(default)"}),v.jsx(Ne,{children:r.first_online}),v.jsx(Ne,{children:r.last_heartbeat}),v.jsx(Ne,{children:r.jobs_active}),v.jsx(Ne,{children:r.sysinfo?v.jsx("ul",{children:Object.entries(r.sysinfo).map(([i,o])=>v.jsxs("li",{children:[i,": ",o]},i))}):"N/A"}),v.jsx(Ne,{children:v.jsx(VA,{worker:r,onOperations:n})})]},r.worker_name))})]})}):t?v.jsxs(zt,{p:2,children:[v.jsx("p",{children:"Unable to load data:"}),v.jsx(ym,{error:t})]}):v.jsx(zt,{p:2,children:"Loading..."})},jA=({tabs:e})=>{const t=E.useRef(null),n=OA(t);return v.jsx(Fl,{alignItems:"center",borderBottomWidth:1,mb:2,ref:t,children:e.map(({icon:r,label:i,value:o})=>v.jsx(NN,{end:!0,title:i,to:{pathname:o},children:({isActive:s})=>v.jsx(bg,{borderBottomColor:"border.info",borderBottomWidth:s?3:0,color:s?"fg":"fg.muted",fontWeight:"bold",height:"40px",mb:"-2px",pb:s?0:"3px",px:4,transition:"all 0.2s ease",children:n>600||!r?i:r})},o))})},WA=()=>{const e=[{label:"Edge Worker",value:"plugin/edge_worker"},{label:"Edge Jobs",value:"plugin/edge_jobs"}];return v.jsx(zt,{p:2,children:v.jsxs(IN,{children:[v.jsx(jA,{tabs:e}),v.jsxs(xN,{children:[v.jsx(lc,{path:"plugin/edge_worker",element:v.jsx(BA,{})}),v.jsx(lc,{path:"plugin/edge_jobs",element:v.jsx(RA,{})})]})]})})};/*! +>>>>>>> 3f3a37a363 (Add confirmation dialog for exit maintenance action in Edge Worker Page) * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -138,6 +185,7 @@ * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. +<<<<<<< HEAD */const km="token",dN=()=>{const e=document.cookie.split(";");for(const t of e){const[n,r]=t.split("=");if((n==null?void 0:n.trim())==="_token"&&r!==void 0)return localStorage.setItem(km,r),document.cookie="_token=; expires=Sat, 01 Jan 2000 00:00:00 UTC; path=/;",r}},hN=e=>{const t=localStorage.getItem(km)??dN();return t!==void 0&&(e.headers.Authorization=`Bearer ${t}`),e},fN=()=>{const{data:e,error:t}=L5(void 0,{enabled:!0,refetchInterval:Cm});return e?v.jsx(zt,{p:2,children:v.jsxs(Ig,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[v.jsx(Pg,{children:v.jsxs(ms,{children:[v.jsx(Ne,{children:"Dag ID"}),v.jsx(Ne,{children:"Run ID"}),v.jsx(Ne,{children:"Task ID"}),v.jsx(Ne,{children:"Map Index"}),v.jsx(Ne,{children:"Try Number"}),v.jsx(Ne,{children:"State"}),v.jsx(Ne,{children:"Queue"}),v.jsx(Ne,{children:"Queued DTTM"}),v.jsx(Ne,{children:"Edge Worker"}),v.jsx(Ne,{children:"Last Update"})]})}),v.jsx(Rg,{children:e.jobs.map(n=>v.jsxs(ms,{children:[v.jsx(_e,{children:v.jsx(ps,{href:`../dags/${n.dag_id}`,children:n.dag_id})}),v.jsx(_e,{children:v.jsx(ps,{href:`../dags/${n.dag_id}/runs/${n.run_id}`,children:n.run_id})}),v.jsx(_e,{children:n.map_index>=0?v.jsx(ps,{href:`../dags/${n.dag_id}/runs/${n.run_id}/tasks/${n.task_id}/mapped/${n.map_index}?try_number=${n.try_number}`,children:n.task_id}):v.jsx(ps,{href:`../dags/${n.dag_id}/runs/${n.run_id}/tasks/${n.task_id}?try_number=${n.try_number}`,children:n.task_id})}),v.jsx(_e,{children:n.map_index>=0?n.map_index:"-"}),v.jsx(_e,{children:n.try_number}),v.jsx(_e,{children:v.jsx(cN,{state:n.state,children:n.state})}),v.jsx(_e,{children:n.queue}),v.jsx(_e,{children:n.queued_dttm?v.jsx(Hs,{date:n.queued_dttm,live:!1}):void 0}),v.jsx(_e,{children:v.jsx(im,{to:`/plugin/edge_worker#${n.edge_worker}`,children:n.edge_worker})}),v.jsx(_e,{children:n.last_update?v.jsx(Hs,{date:n.last_update,live:!1}):void 0})]},`${n.dag_id}.${n.run_id}.${n.task_id}.${n.map_index}.${n.try_number}`))})]})}):t?v.jsxs(zt,{p:2,children:[v.jsx("p",{children:"Unable to load data:"}),v.jsx(bm,{error:t})]}):v.jsx(zt,{p:2,children:"Loading..."})};function Sm(e){return ye({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}function gN(e){return ye({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75a4.5 4.5 0 0 1-4.884 4.484c-1.076-.091-2.264.071-2.95.904l-7.152 8.684a2.548 2.548 0 1 1-3.586-3.586l8.684-7.152c.833-.686.995-1.874.904-2.95a4.5 4.5 0 0 1 6.336-4.486l-3.276 3.276a3.004 3.004 0 0 0 2.25 2.25l3.276-3.276c.256.565.398 1.192.398 1.852Z"},child:[]},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}const pN=({onEnterMaintenance:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=Ox(),[i,s]=w.useState(""),a=F5({onError:c=>{e({description:`Unable to set worker ${t} to maintenance mode: ${c}`,title:"Setting Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to be in maintenance mode.`,title:"Maintenance Mode activated",type:"success"})}}),l=()=>{a.mutate({requestBody:{maintenance_comment:i},workerName:t})};return v.jsxs(v.Fragment,{children:[v.jsx(gs,{size:"sm",variant:"ghost","aria-label":"Enter Maintenance",title:"Enter Maintenance",onClick:r,children:v.jsx(Sm,{})}),v.jsx(MI,{onOpenChange:n,open:o,size:"md",children:v.jsxs(iw,{children:[v.jsx(UI,{}),v.jsx($I,{children:v.jsxs(jI,{children:[v.jsx(KI,{children:v.jsxs(BI,{children:["Set maintenance for worker ",t]})}),v.jsx(GI,{children:v.jsx(nP,{placeholder:"Enter maintenance comment (required)",value:i,onChange:c=>s(c.target.value),required:!0,maxLength:1024,size:"sm"})}),v.jsxs(qI,{children:[v.jsx(HI,{asChild:!0,children:v.jsx(jl,{variant:"outline",children:"Cancel"})}),v.jsx(jl,{onClick:l,disabled:!i.trim(),children:"Confirm Maintenance"})]}),v.jsx(WI,{asChild:!0,children:v.jsx(FI,{size:"sm"})})]})})]})})]})};function mN(e){return ye({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M215.469 332.802l29.863 29.864L352 256 245.332 149.333l-29.863 29.865 55.469 55.469H64v42.666h205.864l-54.395 55.469zM405.334 64H106.666C83.198 64 64 83.198 64 106.666V192h42.666v-85.333h298.668v298.668H106.666V320H64v85.334C64 428.802 83.198 448 106.666 448h298.668C428.802 448 448 428.802 448 405.334V106.666C448 83.198 428.802 64 405.334 64z"},child:[]}]})(e)}const vN=({onExitMaintenance:e,workerName:t})=>{const n=D5({onError:o=>{e({description:`Unable to exit ${t} from maintenance mode: ${o}`,title:"Exit Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to exit maintenance mode.`,title:"Maintenance Mode deactivated",type:"success"})}}),r=()=>{n.mutate({workerName:t})};return v.jsx(gs,{size:"sm",variant:"ghost",onClick:()=>r(),"aria-label":"Exit Maintenance",title:"Exit Maintenance",children:v.jsx(mN,{})})},bN=({onOperations:e,worker:t})=>{const n=t.worker_name,r=t.state,o=i=>{Z5.create(i),e()};return r==="idle"||r==="running"?v.jsx(Bl,{justifyContent:"end",children:v.jsx(pN,{onEnterMaintenance:o,workerName:n})}):r==="maintenance pending"||r==="maintenance mode"||r==="maintenance request"||r==="offline maintenance"?v.jsxs(QI,{gap:2,align:"stretch",children:[v.jsx(zt,{fontSize:"sm",whiteSpace:"pre-wrap",children:t.maintenance_comments||"No comment"}),v.jsx(Bl,{justifyContent:"end",children:v.jsx(vN,{onExitMaintenance:o,workerName:n})})]}):null};function yN(e){return ye({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m22 3.41-.12-1.26-1.2.4a13.84 13.84 0 0 1-6.41.64 11.87 11.87 0 0 0-6.68.9A7.23 7.23 0 0 0 3.3 9.5a9 9 0 0 0 .39 4.58 16.6 16.6 0 0 1 1.18-2.2 9.85 9.85 0 0 1 4.07-3.43 11.16 11.16 0 0 1 5.06-1A12.08 12.08 0 0 0 9.34 9.2a9.48 9.48 0 0 0-1.86 1.53 11.38 11.38 0 0 0-1.39 1.91 16.39 16.39 0 0 0-1.57 4.54A26.42 26.42 0 0 0 4 22h2a30.69 30.69 0 0 1 .59-4.32 9.25 9.25 0 0 0 4.52 1.11 11 11 0 0 0 4.28-.87C23 14.67 22 3.86 22 3.41z"},child:[]}]})(e)}function xN(e){return ye({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M93.72 183.25C49.49 198.05 16 233.1 16 288c0 66 54 112 120 112h184.37m147.45-22.26C485.24 363.3 496 341.61 496 312c0-59.82-53-85.76-96-88-8.89-89.54-71-144-144-144-26.16 0-48.79 6.93-67.6 18.14"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M448 448 64 64"},child:[]}]})(e)}function CN(e){return ye({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12.0001 18C12.7144 18 13.3704 18.2497 13.8856 18.6665L12.0001 21L10.1145 18.6665C10.6297 18.2497 11.2857 18 12.0001 18ZM2.80766 1.39343L20.4853 19.0711L19.0711 20.4853L13.8913 15.3042C13.2967 15.1069 12.6609 15 12.0001 15C10.5719 15 9.26024 15.499 8.22998 16.3322L6.97363 14.7759C8.24961 13.7442 9.84925 13.0969 11.5964 13.01L9.00025 10.414C7.55273 10.8234 6.22651 11.5217 5.0878 12.4426L3.83099 10.8868C4.89946 10.0226 6.10763 9.32438 7.41633 8.83118L5.13168 6.5451C3.98878 7.08913 2.92058 7.76472 1.94666 8.55228L0.689453 6.99674C1.60358 6.25747 2.59156 5.60589 3.64058 5.05479L1.39345 2.80765L2.80766 1.39343ZM14.5004 10.2854L12.2165 8.00243L12 8C15.0947 8 17.9369 9.08141 20.1693 10.8869L18.9123 12.4426C17.6438 11.4167 16.1427 10.6672 14.5004 10.2854ZM12.0001 3.00003C16.2849 3.00003 20.22 4.49719 23.3109 6.99691L22.0534 8.55228C19.3061 6.33062 15.8085 5.00003 12.0001 5.00003C11.122 5.00003 10.2604 5.07077 9.42075 5.20685L7.72455 3.51088C9.09498 3.17702 10.5268 3.00003 12.0001 3.00003Z"},child:[]}]})(e)}const kN=({state:e,...t})=>{switch(e){case"starting":return v.jsx(xm,{...t});case"running":return v.jsx(ym,{...t});case"idle":return v.jsx(yN,{...t});case"shutdown request":case"terminating":return v.jsx(tN,{...t});case"offline":return v.jsx(xN,{...t});case"unknown":return v.jsx(CN,{...t});case"maintenance request":case"maintenance pending":case"maintenance exit":return v.jsx(gN,{...t});case"maintenance mode":case"offline maintenance":return v.jsx(Sm,{...t});default:return v.jsx(vm,{...t})}},SN=e=>{switch(e){case"starting":case"maintenance request":case"maintenance exit":return"yellow";case"running":return"green";case"idle":return"teal";case"shutdown request":case"terminating":return"purple";case"offline":case"offline maintenance":return"black";case"unknown":return"red";case"maintenance mode":case"maintenance pending":return"orange";default:return"gray"}},wN=e=>{switch(e){case"starting":return"Edge Worker is in initialization.";case"running":return"Edge Worker is actively running a task.";case"idle":return"Edge Worker is active and waiting for a task.";case"shutdown request":return"Request to shutdown Edge Worker.";case"terminating":return"Edge Worker is completing work and stopping.";case"offline":return"Edge Worker was shut down.";case"unknown":return"No heartbeat signal from worker for some time, Edge Worker probably down.";case"maintenance request":return"Worker was requested to enter maintenance mode. Once worker receives this it will pause fetching jobs.";case"maintenance pending":return"Edge worker received the request for maintenance, waiting for jobs to finish. Once jobs are finished will move to 'maintenance mode'.";case"maintenance mode":return"Edge worker is in maintenance mode. It is online but pauses fetching jobs.";case"maintenance exit":return"Request worker to exit maintenance mode. Once the worker receives this state it will un-pause and fetch new jobs.";case"offline maintenance":return"Worker was shut down in maintenance mode. It will be in maintenance mode when restarted.";default:return}},EN=O.forwardRef(({children:e,state:t,...n},r)=>v.jsxs(Sg,{borderRadius:"full",colorPalette:SN(t),fontSize:"sm",px:e===void 0?1:2,py:1,ref:r,title:wN(t),variant:"solid",...n,children:[t===void 0?void 0:v.jsx(kN,{state:t}),e]})),ON=()=>{const{data:e,error:t,refetch:n}=V5(void 0,{enabled:!0,refetchInterval:Cm});return e?v.jsxs(zt,{p:2,children:[v.jsxs(Ig,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[v.jsx(Pg,{children:v.jsxs(ms,{children:[v.jsx(Ne,{children:"Worker Name"}),v.jsx(Ne,{children:"State"}),v.jsx(Ne,{children:"Queues"}),v.jsx(Ne,{children:"First Online"}),v.jsx(Ne,{children:"Last Heartbeat"}),v.jsx(Ne,{children:"Active Jobs"}),v.jsx(Ne,{children:"System Information"}),v.jsx(Ne,{children:"Operations"})]})}),v.jsx(Rg,{children:e.workers.map(r=>v.jsxs(ms,{id:r.worker_name,children:[v.jsx(_e,{children:r.worker_name}),v.jsx(_e,{children:v.jsx(EN,{state:r.state,children:r.state})}),v.jsx(_e,{children:r.queues?v.jsx("ul",{children:r.queues.map(o=>v.jsx("li",{children:o},o))}):"(default)"}),v.jsx(_e,{children:r.first_online?v.jsx(Hs,{date:r.first_online,live:!1}):void 0}),v.jsx(_e,{children:r.last_heartbeat?v.jsx(Hs,{date:r.last_heartbeat,live:!1}):void 0}),v.jsx(_e,{children:r.jobs_active}),v.jsx(_e,{children:r.sysinfo?v.jsx("ul",{children:Object.entries(r.sysinfo).map(([o,i])=>v.jsxs("li",{children:[o,": ",i]},o))}):"N/A"}),v.jsx(_e,{children:v.jsx(bN,{worker:r,onOperations:n})})]},r.worker_name))})]}),v.jsx(eN,{})]}):t?v.jsxs(zt,{p:2,children:[v.jsx("p",{children:"Unable to load data:"}),v.jsx(bm,{error:t})]}):v.jsx(zt,{p:2,children:"Loading..."})},IN=({tabs:e})=>{const t=w.useRef(null),n=uN(t);return v.jsx(Bl,{alignItems:"center",borderBottomWidth:1,mb:2,ref:t,children:e.map(({icon:r,label:o,value:i})=>v.jsx(f5,{end:!0,title:o,to:{pathname:i},children:({isActive:s})=>v.jsx(wg,{borderBottomColor:"border.info",borderBottomWidth:s?3:0,color:s?"fg":"fg.muted",fontWeight:"bold",height:"40px",mb:"-2px",pb:s?0:"3px",px:4,transition:"all 0.2s ease",children:n>600||!r?o:r})},i))})},PN=()=>{const e=[{label:"Edge Worker",value:"plugin/edge_worker"},{label:"Edge Jobs",value:"plugin/edge_jobs"}];return v.jsx(zt,{p:2,children:v.jsxs(u5,{children:[v.jsx(IN,{tabs:e}),v.jsxs(r5,{children:[v.jsx(pc,{path:"plugin/edge_worker",element:v.jsx(ON,{})}),v.jsx(pc,{path:"plugin/edge_jobs",element:v.jsx(fN,{})})]})]})})};/*! * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file @@ -156,3 +204,6 @@ * specific language governing permissions and limitations * under the License. */const J=(e,t="white")=>({solid:{value:`{colors.${e}.600}`},contrast:{value:{_light:"white",_dark:t}},fg:{value:{_light:`{colors.${e}.800}`,_dark:`{colors.${e}.200}`}},muted:{value:{_light:`{colors.${e}.200}`,_dark:`{colors.${e}.800}`}},subtle:{value:{_light:`{colors.${e}.100}`,_dark:`{colors.${e}.900}`}},emphasized:{value:{_light:`{colors.${e}.300}`,_dark:`{colors.${e}.700}`}},focusRing:{value:{_light:`{colors.${e}.800}`,_dark:`{colors.${e}.200}`}}}),RN=Pl({theme:{tokens:{colors:{black:{value:"oklch(0.23185 0.0323 266.44)"},brand:{50:{value:"oklch(0.98 0.006 248.717)"},100:{value:"oklch(0.962 0.012 249.460)"},200:{value:"oklch(0.923 0.023 255.082)"},300:{value:"oklch(0.865 0.039 252.420)"},400:{value:"oklch(0.705 0.066 256.378)"},500:{value:"oklch(0.575 0.08 257.759)"},600:{value:"oklch(0.469 0.084 257.657)"},700:{value:"oklch(0.399 0.084 257.850)"},800:{value:"oklch(0.324 0.072 260.329)"},900:{value:"oklch(0.259 0.062 265.566)"},950:{value:"oklch(0.179 0.05 265.487)"}},gray:{50:{value:"oklch(0.985 0.004 253)"},100:{value:"oklch(0.955 0.006 253)"},200:{value:"oklch(0.915 0.01 253)"},300:{value:"oklch(0.85 0.016 253)"},400:{value:"oklch(0.75 0.025 252)"},500:{value:"oklch(0.63, 0.04, 252)"},600:{value:"oklch(0.45 0.055 251)"},700:{value:"oklch(0.35 0.045 251)"},800:{value:"oklch(0.28 0.035 251)"},900:{value:"oklch(0.18 0.03 251)"},950:{value:"oklch(0.11 0.025 251)"}},red:{50:{value:"oklch(0.971 0.013 17.38)"},100:{value:"oklch(0.936 0.032 17.717)"},200:{value:"oklch(0.885 0.062 18.334)"},300:{value:"oklch(0.808 0.114 19.571)"},400:{value:"oklch(0.704 0.191 22.216)"},500:{value:"oklch(0.637 0.237 25.331)"},600:{value:"oklch(0.577 0.245 27.325)"},700:{value:"oklch(0.505 0.213 27.518)"},800:{value:"oklch(0.444 0.177 26.899)"},900:{value:"oklch(0.396 0.141 25.723)"},950:{value:"oklch(0.258 0.092 26.042)"}},orange:{50:{value:"oklch(0.982 0.013 83.915)"},100:{value:"oklch(0.961 0.033 82.320)"},200:{value:"oklch(0.918 0.065 79.975)"},300:{value:"oklch(0.857 0.118 76.815)"},400:{value:"oklch(0.7492 0.1439 62.081)"},500:{value:"oklch(0.6462 0.1979 43.792)"},600:{value:"oklch(0.5902 0.198 35.93)"},700:{value:"oklch(0.553 0.184 41.777)"},800:{value:"oklch(0.469 0.144 45.164)"},900:{value:"oklch(0.414 0.110 48.717)"},950:{value:"oklch(0.271 0.069 52.345)"}},amber:{50:{value:"oklch(0.987 0.022 95.277)"},100:{value:"oklch(0.962 0.059 95.617)"},200:{value:"oklch(0.924 0.12 95.746)"},300:{value:"oklch(0.879 0.169 91.605)"},400:{value:"oklch(0.828 0.189 84.429)"},500:{value:"oklch(0.769 0.188 70.08)"},600:{value:"oklch(0.666 0.179 58.318)"},700:{value:"oklch(0.555 0.163 48.998)"},800:{value:"oklch(0.473 0.137 46.201)"},900:{value:"oklch(0.414 0.112 45.904)"},950:{value:"oklch(0.279 0.077 45.635)"}},yellow:{50:{value:"oklch(0.987 0.026 102.212)"},100:{value:"oklch(0.973 0.071 103.193)"},200:{value:"oklch(0.945 0.129 101.54)"},300:{value:"oklch(0.905 0.182 98.111)"},400:{value:"oklch(0.852 0.199 91.936)"},500:{value:"oklch(0.795 0.184 86.047)"},600:{value:"oklch(0.681 0.162 75.834)"},700:{value:"oklch(0.554 0.135 66.442)"},800:{value:"oklch(0.476 0.114 61.907)"},900:{value:"oklch(0.421 0.095 57.708)"},950:{value:"oklch(0.286 0.066 53.813)"}},lime:{50:{value:"oklch(0.986 0.031 120.757)"},100:{value:"oklch(0.967 0.067 122.328)"},200:{value:"oklch(0.938 0.127 124.321)"},300:{value:"oklch(0.897 0.196 126.665)"},400:{value:"oklch(0.841 0.238 128.85)"},500:{value:"oklch(0.768 0.233 130.85)"},600:{value:"oklch(0.648 0.2 131.684)"},700:{value:"oklch(0.532 0.157 131.589)"},800:{value:"oklch(0.453 0.124 130.933)"},900:{value:"oklch(0.405 0.101 131.063)"},950:{value:"oklch(0.274 0.072 132.109)"}},green:{50:{value:"oklch(0.982 0.018 155.826)"},100:{value:"oklch(0.962 0.044 156.743)"},200:{value:"oklch(0.925 0.084 155.995)"},300:{value:"oklch(0.75 0.18 153.0)"},400:{value:"oklch(0.625 0.209 150.0)"},500:{value:"oklch(0.528 0.219 149.579)"},600:{value:"oklch(0.47 0.20 149.0)"},700:{value:"oklch(0.40 0.16 149.5)"},800:{value:"oklch(0.448 0.119 151.328)"},900:{value:"oklch(0.393 0.095 152.535)"},950:{value:"oklch(0.266 0.065 152.934)"}},emerald:{50:{value:"oklch(0.979 0.021 166.113)"},100:{value:"oklch(0.95 0.052 163.051)"},200:{value:"oklch(0.905 0.093 164.15)"},300:{value:"oklch(0.845 0.143 164.978)"},400:{value:"oklch(0.765 0.177 163.223)"},500:{value:"oklch(0.696 0.17 162.48)"},600:{value:"oklch(0.596 0.145 163.225)"},700:{value:"oklch(0.508 0.118 165.612)"},800:{value:"oklch(0.432 0.095 166.913)"},900:{value:"oklch(0.378 0.077 168.94)"},950:{value:"oklch(0.262 0.051 172.552)"}},teal:{50:{value:"oklch(0.984 0.014 180.72)"},100:{value:"oklch(0.953 0.051 180.801)"},200:{value:"oklch(0.91 0.096 180.426)"},300:{value:"oklch(0.855 0.138 181.071)"},400:{value:"oklch(0.777 0.152 181.912)"},500:{value:"oklch(0.704 0.14 182.503)"},600:{value:"oklch(0.6 0.118 184.704)"},700:{value:"oklch(0.511 0.096 186.391)"},800:{value:"oklch(0.437 0.078 188.216)"},900:{value:"oklch(0.386 0.063 188.416)"},950:{value:"oklch(0.277 0.046 192.524)"}},cyan:{50:{value:"oklch(0.984 0.019 200.873)"},100:{value:"oklch(0.956 0.045 203.388)"},200:{value:"oklch(0.917 0.08 205.041)"},300:{value:"oklch(0.865 0.127 207.078)"},400:{value:"oklch(0.789 0.154 211.53)"},500:{value:"oklch(0.715 0.143 215.221)"},600:{value:"oklch(0.609 0.126 221.723)"},700:{value:"oklch(0.52 0.105 223.128)"},800:{value:"oklch(0.45 0.085 224.283)"},900:{value:"oklch(0.398 0.07 227.392)"},950:{value:"oklch(0.302 0.056 229.695)"}},sky:{50:{value:"oklch(0.977 0.013 236.62)"},100:{value:"oklch(0.951 0.026 236.824)"},200:{value:"oklch(0.901 0.058 230.902)"},300:{value:"oklch(0.828 0.111 230.318)"},400:{value:"oklch(0.746 0.16 232.661)"},500:{value:"oklch(0.685 0.169 237.323)"},600:{value:"oklch(0.588 0.158 241.966)"},700:{value:"oklch(0.5 0.134 242.749)"},800:{value:"oklch(0.443 0.11 240.79)"},900:{value:"oklch(0.391 0.09 240.876)"},950:{value:"oklch(0.293 0.066 243.157)"}},blue:{50:{value:"oklch(0.97 0.014 254.604)"},100:{value:"oklch(0.932 0.032 255.585)"},200:{value:"oklch(0.882 0.059 254.128)"},300:{value:"oklch(0.809 0.105 251.813)"},400:{value:"oklch(0.707 0.165 254.624)"},500:{value:"oklch(0.623 0.214 259.815)"},600:{value:"oklch(0.546 0.245 262.881)"},700:{value:"oklch(0.488 0.243 264.376)"},800:{value:"oklch(0.424 0.199 265.638)"},900:{value:"oklch(0.379 0.146 265.522)"},950:{value:"oklch(0.282 0.091 267.935)"}},indigo:{50:{value:"oklch(0.962 0.018 272.314)"},100:{value:"oklch(0.93 0.034 272.788)"},200:{value:"oklch(0.87 0.065 274.039)"},300:{value:"oklch(0.785 0.115 274.713)"},400:{value:"oklch(0.673 0.182 276.935)"},500:{value:"oklch(0.585 0.233 277.117)"},600:{value:"oklch(0.511 0.262 276.966)"},700:{value:"oklch(0.457 0.24 277.023)"},800:{value:"oklch(0.398 0.195 277.366)"},900:{value:"oklch(0.359 0.144 278.697)"},950:{value:"oklch(0.257 0.09 281.288)"}},violet:{50:{value:"oklch(0.969 0.016 293.756)"},100:{value:"oklch(0.943 0.029 294.588)"},200:{value:"oklch(0.894 0.057 293.283)"},300:{value:"oklch(0.811 0.111 293.571)"},400:{value:"oklch(0.702 0.183 293.541)"},500:{value:"oklch(0.606 0.25 292.717)"},600:{value:"oklch(0.541 0.281 293.009)"},700:{value:"oklch(0.491 0.27 292.581)"},800:{value:"oklch(0.432 0.232 292.759)"},900:{value:"oklch(0.38 0.189 293.745)"},950:{value:"oklch(0.283 0.141 291.089)"}},purple:{50:{value:"oklch(0.977 0.014 308.299)"},100:{value:"oklch(0.946 0.033 307.174)"},200:{value:"oklch(0.902 0.063 306.703)"},300:{value:"oklch(0.827 0.119 306.383)"},400:{value:"oklch(0.714 0.203 305.504)"},500:{value:"oklch(0.627 0.265 303.9)"},600:{value:"oklch(0.558 0.288 302.321)"},700:{value:"oklch(0.496 0.265 301.924)"},800:{value:"oklch(0.438 0.218 303.724)"},900:{value:"oklch(0.381 0.176 304.987)"},950:{value:"oklch(0.291 0.149 302.717)"}},fuchsia:{50:{value:"oklch(0.977 0.017 320.058)"},100:{value:"oklch(0.952 0.037 318.852)"},200:{value:"oklch(0.903 0.076 319.62)"},300:{value:"oklch(0.833 0.145 321.434)"},400:{value:"oklch(0.74 0.238 322.16)"},500:{value:"oklch(0.667 0.295 322.15)"},600:{value:"oklch(0.591 0.293 322.896)"},700:{value:"oklch(0.518 0.253 323.949)"},800:{value:"oklch(0.452 0.211 324.591)"},900:{value:"oklch(0.401 0.17 325.612)"},950:{value:"oklch(0.293 0.136 325.661)"}},pink:{50:{value:"oklch(0.971 0.014 343.198)"},100:{value:"oklch(0.948 0.028 342.258)"},200:{value:"oklch(0.899 0.061 343.231)"},300:{value:"oklch(0.823 0.12 346.018)"},400:{value:"oklch(0.718 0.202 349.761)"},500:{value:"oklch(0.656 0.241 354.308)"},600:{value:"oklch(0.592 0.249 0.584)"},700:{value:"oklch(0.525 0.223 3.958)"},800:{value:"oklch(0.459 0.187 3.815)"},900:{value:"oklch(0.408 0.153 2.432)"},950:{value:"oklch(0.284 0.109 3.907)"}},rose:{50:{value:"oklch(0.969 0.015 12.422)"},100:{value:"oklch(0.941 0.03 12.58)"},200:{value:"oklch(0.892 0.058 10.001)"},300:{value:"oklch(0.81 0.117 11.638)"},400:{value:"oklch(0.712 0.194 13.428)"},500:{value:"oklch(0.645 0.246 16.439)"},600:{value:"oklch(0.586 0.253 17.585)"},700:{value:"oklch(0.514 0.222 16.935)"},800:{value:"oklch(0.455 0.188 13.697)"},900:{value:"oklch(0.41 0.159 10.272)"},950:{value:"oklch(0.271 0.105 12.094)"}},slate:{50:{value:"oklch(0.984 0.003 247.858)"},100:{value:"oklch(0.968 0.007 247.896)"},200:{value:"oklch(0.929 0.013 255.508)"},300:{value:"oklch(0.869 0.022 252.894)"},400:{value:"oklch(0.704 0.04 256.788)"},500:{value:"oklch(0.554 0.046 257.417)"},600:{value:"oklch(0.446 0.043 257.281)"},700:{value:"oklch(0.372 0.044 257.287)"},800:{value:"oklch(0.279 0.041 260.031)"},900:{value:"oklch(0.208 0.042 265.755)"},950:{value:"oklch(0.129 0.042 264.695)"}},zinc:{50:{value:"oklch(0.985 0 0)"},100:{value:"oklch(0.967 0.001 286.375)"},200:{value:"oklch(0.92 0.004 286.32)"},300:{value:"oklch(0.871 0.006 286.286)"},400:{value:"oklch(0.705 0.015 286.067)"},500:{value:"oklch(0.552 0.016 285.938)"},600:{value:"oklch(0.442 0.017 285.786)"},700:{value:"oklch(0.37 0.013 285.805)"},800:{value:"oklch(0.274 0.006 286.033)"},900:{value:"oklch(0.21 0.006 285.885)"},950:{value:"oklch(0.141 0.005 285.823)"}},neutral:{50:{value:"oklch(0.985 0 0)"},100:{value:"oklch(0.97 0 0)"},200:{value:"oklch(0.922 0 0)"},300:{value:"oklch(0.87 0 0)"},400:{value:"oklch(0.708 0 0)"},500:{value:"oklch(0.556 0 0)"},600:{value:"oklch(0.439 0 0)"},700:{value:"oklch(0.371 0 0)"},800:{value:"oklch(0.269 0 0)"},900:{value:"oklch(0.205 0 0)"},950:{value:"oklch(0.145 0 0)"}},stone:{50:{value:"oklch(0.985 0.001 106.423)"},100:{value:"oklch(0.97 0.001 106.424)"},200:{value:"oklch(0.923 0.003 48.717)"},300:{value:"oklch(0.869 0.005 56.366)"},400:{value:"oklch(0.709 0.01 56.259)"},500:{value:"oklch(0.553 0.013 58.071)"},600:{value:"oklch(0.444 0.011 73.639)"},700:{value:"oklch(0.374 0.01 67.558)"},800:{value:"oklch(0.268 0.007 34.298)"},900:{value:"oklch(0.216 0.006 56.043)"},950:{value:"oklch(0.147 0.004 49.25)"}}}},semanticTokens:{colors:{brand:J("brand"),danger:J("red"),info:J("blue"),warning:J("amber"),error:J("red"),active:J("blue"),success:J("green"),failed:J("red"),queued:J("stone"),skipped:J("pink"),up_for_reschedule:J("sky"),up_for_retry:J("yellow"),upstream_failed:J("orange"),running:J("cyan"),restarting:J("violet"),deferred:J("purple"),scheduled:J("zinc"),none:J("gray"),removed:J("slate"),red:J("red"),orange:J("orange"),amber:J("amber"),yellow:J("yellow"),lime:J("lime"),green:J("green"),emerald:J("emerald"),teal:J("teal"),cyan:J("cyan"),sky:J("sky"),blue:J("blue"),indigo:J("indigo"),violet:J("violet"),purple:J("purple"),fuchsia:J("fuchsia"),pink:J("pink"),rose:J("rose"),slate:J("slate"),gray:J("gray"),zinc:J("zinc"),neutral:J("neutral"),stone:J("stone")}}}}),TN=rg(bg,RN);return()=>{pe.interceptors.request.use(hN);const e=new EP({defaultOptions:{queries:{staleTime:1/0}}});return v.jsx(ub,{value:TN,children:v.jsx(OP,{client:e,children:v.jsx(fT,{children:v.jsx(PN,{})})})})}}); +======= + */const hn=(e,t="white")=>({solid:{value:`{colors.${e}.600}`},contrast:{value:{_light:"white",_dark:t}},fg:{value:{_light:`{colors.${e}.800}`,_dark:`{colors.${e}.200}`}},muted:{value:{_light:`{colors.${e}.200}`,_dark:`{colors.${e}.800}`}},subtle:{value:{_light:`{colors.${e}.100}`,_dark:`{colors.${e}.900}`}},emphasized:{value:{_light:`{colors.${e}.300}`,_dark:`{colors.${e}.700}`}},focusRing:{value:{_light:`{colors.${e}.800}`,_dark:`{colors.${e}.200}`}}}),HA=Sl({theme:{tokens:{colors:{success:{50:{value:"#E0FFE0"},100:{value:"#C2FFC2"},200:{value:"#80FF80"},300:{value:"#42FF42"},400:{value:"#00FF00"},500:{value:"#00C200"},600:{value:"#008000"},700:{value:"#006100"},800:{value:"#004200"},900:{value:"#001F00"},950:{value:"#000F00"}},failed:((qv=(Gv=(Uv=dt.theme)==null?void 0:Uv.tokens)==null?void 0:Gv.colors)==null?void 0:qv.red)??{},queued:{50:{value:"#F5F5F5"},100:{value:"#EBEBEB"},200:{value:"#D4D4D4"},300:{value:"#BFBFBF"},400:{value:"#ABABAB"},500:{value:"#969696"},600:{value:"#808080"},700:{value:"#616161"},800:{value:"#404040"},900:{value:"#212121"},950:{value:"#0F0F0F"}},skipped:((Yv=(Xv=(Kv=dt.theme)==null?void 0:Kv.tokens)==null?void 0:Xv.colors)==null?void 0:Yv.pink)??{},up_for_reschedule:((Zv=(Jv=(Qv=dt.theme)==null?void 0:Qv.tokens)==null?void 0:Jv.colors)==null?void 0:Zv.cyan)??{},up_for_retry:((nb=(tb=(eb=dt.theme)==null?void 0:eb.tokens)==null?void 0:tb.colors)==null?void 0:nb.yellow)??{},upstream_failed:((ob=(ib=(rb=dt.theme)==null?void 0:rb.tokens)==null?void 0:ib.colors)==null?void 0:ob.orange)??{},running:{50:{value:"#EFFBEF"},100:{value:"#DEF7DE"},200:{value:"#B9EEB9"},300:{value:"#98E698"},400:{value:"#78DE78"},500:{value:"#53D553"},600:{value:"#32CD32"},700:{value:"#269C26"},800:{value:"#196719"},900:{value:"#0D350D"},950:{value:"#061906"}},restarting:{50:{value:"#F6EBFF"},100:{value:"#EDD6FF"},200:{value:"#D9A8FF"},300:{value:"#C880FF"},400:{value:"#B657FF"},500:{value:"#A229FF"},600:{value:"#8F00FF"},700:{value:"#6E00C2"},800:{value:"#480080"},900:{value:"#260042"},950:{value:"#11001F"}},deferred:{50:{value:"#F6F3FC"},100:{value:"#EDE7F9"},200:{value:"#DACEF3"},300:{value:"#C8B6ED"},400:{value:"#B9A1E7"},500:{value:"#A689E1"},600:{value:"#9370DB"},700:{value:"#6432C8"},800:{value:"#412182"},900:{value:"#211041"},950:{value:"#100821"}},scheduled:{50:{value:"#FBF8F4"},100:{value:"#F8F3ED"},200:{value:"#F1E7DA"},300:{value:"#E8D9C4"},400:{value:"#E1CDB2"},500:{value:"#DAC1A0"},600:{value:"#D2B48C"},700:{value:"#B9894B"},800:{value:"#7D5C31"},900:{value:"#3E2E18"},950:{value:"#21180D"}},none:{50:{value:"#F7FBFD"},100:{value:"#F3F9FB"},200:{value:"#E4F2F7"},300:{value:"#D8ECF3"},400:{value:"#C8E5EE"},500:{value:"#BDDFEB"},600:{value:"#ADD8E6"},700:{value:"#5FB2CE"},800:{value:"#30819C"},900:{value:"#18414E"},950:{value:"#0C2027"}},removed:{50:{value:"#FCFCFC"},100:{value:"#F7F7F7"},200:{value:"#F0F0F0"},300:{value:"#E8E8E8"},400:{value:"#E0E0E0"},500:{value:"#DBDBDB"},600:{value:"#D3D3D3"},700:{value:"#9E9E9E"},800:{value:"#696969"},900:{value:"#363636"},950:{value:"#1A1A1A"}}}},semanticTokens:{colors:{success:hn("success"),failed:((lb=(ab=(sb=dt.theme)==null?void 0:sb.semanticTokens)==null?void 0:ab.colors)==null?void 0:lb.red)??{},queued:hn("queued"),skipped:((db=(ub=(cb=dt.theme)==null?void 0:cb.semanticTokens)==null?void 0:ub.colors)==null?void 0:db.pink)??{},up_for_reschedule:((gb=(fb=(hb=dt.theme)==null?void 0:hb.semanticTokens)==null?void 0:fb.colors)==null?void 0:gb.cyan)??{},up_for_retry:((vb=(mb=(pb=dt.theme)==null?void 0:pb.semanticTokens)==null?void 0:mb.colors)==null?void 0:vb.yellow)??{},upstream_failed:((xb=(yb=(bb=dt.theme)==null?void 0:bb.semanticTokens)==null?void 0:yb.colors)==null?void 0:xb.orange)??{},running:hn("running"),restarting:hn("restarting"),deferred:hn("deferred"),scheduled:hn("scheduled"),none:hn("none","black"),removed:hn("removed","black")}}}}),UA=Qf(dt,HA);return()=>{ge.interceptors.request.use(PA);const e=new jR({defaultOptions:{queries:{staleTime:1/0}}});return v.jsx(By,{value:UA,children:v.jsx(WR,{client:e,children:v.jsx(T2,{children:v.jsx(WA,{})})})})}}); +>>>>>>> 3f3a37a363 (Add confirmation dialog for exit maintenance action in Edge Worker Page) diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/MaintenanceExitButton.tsx b/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/MaintenanceExitButton.tsx index 7ebb04c157268..519ef800c54c7 100644 --- a/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/MaintenanceExitButton.tsx +++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/MaintenanceExitButton.tsx @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -import { IconButton } from "@chakra-ui/react"; +import { Button, CloseButton, Dialog, IconButton, Portal, useDisclosure } from "@chakra-ui/react"; import { useUiServiceExitWorkerMaintenance } from "openapi/queries"; import { IoMdExit } from "react-icons/io"; @@ -26,6 +26,8 @@ interface MaintenanceExitButtonProps { } export const MaintenanceExitButton = ({ onExitMaintenance, workerName }: MaintenanceExitButtonProps) => { + const { onClose, onOpen, open } = useDisclosure(); + const exitMaintenanceMutation = useUiServiceExitWorkerMaintenance({ onError: (error) => { onExitMaintenance({ @@ -40,6 +42,7 @@ export const MaintenanceExitButton = ({ onExitMaintenance, workerName }: Mainten title: "Maintenance Mode deactivated", type: "success", }); + onClose(); }, }); @@ -48,14 +51,43 @@ export const MaintenanceExitButton = ({ onExitMaintenance, workerName }: Mainten }; return ( - exitMaintenance()} - aria-label="Exit Maintenance" - title="Exit Maintenance" - > - - + <> + + + + + + + + + + + Exit maintenance for worker {workerName} + + +

Are you sure you want to exit maintenance mode for worker {workerName}?

+
+ + + + + + + + + +
+
+
+
+ ); }; diff --git a/providers/edge3/www-hash.txt b/providers/edge3/www-hash.txt index 97509042c8b80..84d18e1ea59fa 100644 --- a/providers/edge3/www-hash.txt +++ b/providers/edge3/www-hash.txt @@ -1 +1,5 @@ +<<<<<<< HEAD 7848355a285c3ea912de8b31190f8ca486e86a6d5bd12e4c62c74b6a99dd429e +======= +a7d535a79478b3994f3bb22b8b76c4d686457097c5084fbe6d1fcde28f4618e2 +>>>>>>> 3f3a37a363 (Add confirmation dialog for exit maintenance action in Edge Worker Page) From b83897009bc8f379efde3a21743755fe370ada43 Mon Sep 17 00:00:00 2001 From: Dheeraj Turaga Date: Wed, 10 Sep 2025 21:51:06 -0500 Subject: [PATCH 2/3] Jens suggestions --- .../edge3/plugins/www/dist/main.umd.cjs | 87 ++++--------------- .../src/components/MaintenanceExitButton.tsx | 4 +- providers/edge3/www-hash.txt | 6 +- 3 files changed, 21 insertions(+), 76 deletions(-) diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/dist/main.umd.cjs b/providers/edge3/src/airflow/providers/edge3/plugins/www/dist/main.umd.cjs index f899f9265b343..a4e40b9d0a1e2 100644 --- a/providers/edge3/src/airflow/providers/edge3/plugins/www/dist/main.umd.cjs +++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/dist/main.umd.cjs @@ -1,8 +1,4 @@ -<<<<<<< HEAD -(function(w,ne){typeof exports=="object"&&typeof module<"u"?module.exports=ne(require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react","react-dom"],ne):(w=typeof globalThis<"u"?globalThis:w||self,w.AirflowPlugin=ne(w.React,w.ReactDOM))})(this,function(w,ne){"use strict";var LN=Object.defineProperty;var K0=w=>{throw TypeError(w)};var FN=(w,ne,be)=>ne in w?LN(w,ne,{enumerable:!0,configurable:!0,writable:!0,value:be}):w[ne]=be;var Ze=(w,ne,be)=>FN(w,typeof ne!="symbol"?ne+"":ne,be),Sc=(w,ne,be)=>ne.has(w)||K0("Cannot "+be);var y=(w,ne,be)=>(Sc(w,ne,"read from private field"),be?be.call(w):ne.get(w)),W=(w,ne,be)=>ne.has(w)?K0("Cannot add the same private member more than once"):ne instanceof WeakSet?ne.add(w):ne.set(w,be),M=(w,ne,be,O)=>(Sc(w,ne,"write to private field"),O?O.call(w,be):ne.set(w,be),be),Z=(w,ne,be)=>(Sc(w,ne,"access private method"),be);var Ks=(w,ne,be,O)=>({set _(Zs){M(w,ne,Zs,be)},get _(){return y(w,ne,O)}});var wm,Em,Om,Im,Pm,Rm,Tm,Nm,_m,Am,Vm,Lm,Fm,Dm,zm,Mm,$m,jm,Bm,Wm,Hm,Um,Gm,qm,Km,Xm,Ym,Qm,Jm,Zm,e0,t0,n0,r0,o0,i0,s0,a0,l0,c0,u0,d0,h0,f0,g0,p0,m0,v0,b0,y0,x0,C0,k0,S0,w0,E0,O0,I0,P0,R0,T0,N0,_0,hn,xc,A0,Xn,fn,zr,V0,Mr,gn,$r,L0,Yn,F0,Qn,jr,ft,Jn,Ae,Bo,Zn,Ct,Xt,D0,Qe,te,Wo,Be,er,Br,Ht,pn,Ho,Wr,Hr,tr,nr,mn,Ur,se,qo,wc,Ec,Oc,Ic,Pc,Rc,Tc,Q0,z0,Lt,We,rr,Ft,Sn,M0,Ut,kt,Uo,$0,vn,bn,Je,Gt,qt,Js,Nc,j0,Dt,B0,ve,yn,xn,Gr,qr,Cn,Kr,Xr,W0;function be(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const O=be(w);function Zs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _c={exports:{}},Ko={};/** -======= -(function(E,te){typeof exports=="object"&&typeof module<"u"?module.exports=te(require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react","react-dom"],te):(E=typeof globalThis<"u"?globalThis:E||self,E.AirflowPlugin=te(E.React,E.ReactDOM))})(this,function(E,te){"use strict";var YA=Object.defineProperty;var kb=E=>{throw TypeError(E)};var QA=(E,te,ve)=>te in E?YA(E,te,{enumerable:!0,configurable:!0,writable:!0,value:ve}):E[te]=ve;var Je=(E,te,ve)=>QA(E,typeof te!="symbol"?te+"":te,ve),pc=(E,te,ve)=>te.has(E)||kb("Cannot "+ve);var y=(E,te,ve)=>(pc(E,te,"read from private field"),ve?ve.call(E):te.get(E)),W=(E,te,ve)=>te.has(E)?kb("Cannot add the same private member more than once"):te instanceof WeakSet?te.add(E):te.set(E,ve),M=(E,te,ve,O)=>(pc(E,te,"write to private field"),O?O.call(E,ve):te.set(E,ve),ve),J=(E,te,ve)=>(pc(E,te,"access private method"),ve);var js=(E,te,ve,O)=>({set _(qs){M(E,te,qs,ve)},get _(){return y(E,te,O)}});var km,Om,Im,Pm,Rm,Tm,Nm,Am,_m,Vm,Fm,Lm,Dm,zm,Mm,$m,Bm,jm,Wm,Hm,Um,Gm,qm,Km,Xm,Ym,Qm,Jm,Zm,ev,tv,nv,rv,iv,ov,sv,av,lv,cv,uv,dv,hv,fv,gv,pv,mv,vv,bv,yv,xv,Cv,Sv,wv,Ev,kv,Ov,Iv,Pv,Rv,Tv,Nv,Av,_v,fn,hc,Vv,Yn,gn,Dr,Fv,zr,pn,Mr,Lv,Qn,Dv,Jn,$r,ft,Zn,Ae,Mi,er,Ct,Xt,zv,Ye,ee,$i,Be,tr,Br,Ht,mn,Bi,jr,Wr,nr,rr,vn,Hr,oe,Hi,mc,vc,bc,yc,xc,Cc,Sc,Pb,Mv,Ft,je,ir,Lt,En,$v,Ut,St,ji,Bv,bn,yn,Qe,Gt,qt,Gs,wc,jv,Dt,Wv,me,xn,Cn,Ur,Gr,Sn,qr,Kr,Hv,Uv,Gv,qv,Kv,Xv,Yv,Qv,Jv,Zv,eb,tb,nb,rb,ib,ob,sb,ab,lb,cb,ub,db,hb,fb,gb,pb,mb,vb,bb,yb,xb;function ve(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const O=ve(E);function qs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ec={exports:{}},Ui={};/** ->>>>>>> 3f3a37a363 (Add confirmation dialog for exit maintenance action in Edge Worker Page) +(function(w,ne){typeof exports=="object"&&typeof module<"u"?module.exports=ne(require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react","react-dom"],ne):(w=typeof globalThis<"u"?globalThis:w||self,w.AirflowPlugin=ne(w.React,w.ReactDOM))})(this,function(w,ne){"use strict";var LN=Object.defineProperty;var lv=w=>{throw TypeError(w)};var FN=(w,ne,be)=>ne in w?LN(w,ne,{enumerable:!0,configurable:!0,writable:!0,value:be}):w[ne]=be;var Ze=(w,ne,be)=>FN(w,typeof ne!="symbol"?ne+"":ne,be),Sc=(w,ne,be)=>ne.has(w)||lv("Cannot "+be);var y=(w,ne,be)=>(Sc(w,ne,"read from private field"),be?be.call(w):ne.get(w)),W=(w,ne,be)=>ne.has(w)?lv("Cannot add the same private member more than once"):ne instanceof WeakSet?ne.add(w):ne.set(w,be),M=(w,ne,be,O)=>(Sc(w,ne,"write to private field"),O?O.call(w,be):ne.set(w,be),be),Z=(w,ne,be)=>(Sc(w,ne,"access private method"),be);var Xs=(w,ne,be,O)=>({set _(ea){M(w,ne,ea,be)},get _(){return y(w,ne,O)}});var zm,Mm,$m,jm,Bm,Wm,Hm,Um,Gm,qm,Km,Xm,Ym,Qm,Jm,Zm,e0,t0,n0,r0,o0,i0,s0,a0,l0,c0,u0,d0,h0,f0,g0,p0,m0,v0,b0,y0,x0,C0,k0,S0,w0,E0,O0,I0,P0,R0,T0,N0,_0,A0,V0,L0,F0,D0,z0,M0,$0,j0,B0,W0,H0,U0,G0,hn,xc,q0,Xn,fn,zr,K0,Mr,gn,$r,X0,Yn,Y0,Qn,jr,ft,Jn,Ae,Wo,Zn,Ct,Xt,Q0,Qe,te,Ho,Be,er,Br,Ht,pn,Uo,Wr,Hr,tr,nr,mn,Ur,se,Ko,wc,Ec,Oc,Ic,Pc,Rc,Tc,dv,J0,Lt,We,rr,Ft,Sn,Z0,Ut,kt,Go,ev,vn,bn,Je,Gt,qt,Zs,Nc,tv,Dt,nv,ve,yn,xn,Gr,qr,Cn,Kr,Xr,rv;function be(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const O=be(w);function ea(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _c={exports:{}},Xo={};/** * @license React * react-jsx-runtime.production.min.js * @@ -10,46 +6,27 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. -<<<<<<< HEAD - */var Z0=w,ev=Symbol.for("react.element"),tv=Symbol.for("react.fragment"),nv=Object.prototype.hasOwnProperty,rv=Z0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ov={key:!0,ref:!0,__self:!0,__source:!0};function Ac(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)nv.call(t,r)&&!ov.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:ev,type:e,key:i,ref:s,props:o,_owner:rv.current}}Ko.Fragment=tv,Ko.jsx=Ac,Ko.jsxs=Ac,_c.exports=Ko;var v=_c.exports;function Vc(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var iv=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,sv=Vc(function(e){return iv.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function av(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ve(ir,--He):0,or--,xe===10&&(or=1,Jo--),xe}function et(){return xe=He2||to(xe)>3?"":" "}function xv(e,t){for(;--t&&et()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return eo(e,ei()+(t<6&&wt()==32&&et()==32))}function oa(e){for(;et();)switch(xe){case e:return He;case 34:case 39:e!==34&&e!==39&&oa(xe);break;case 40:e===41&&oa(e);break;case 92:et();break}return He}function Cv(e,t){for(;et()&&e+xe!==57;)if(e+xe===84&&wt()===47)break;return"/*"+eo(t,He-1)+"*"+Yo(e===47?e:et())}function kv(e){for(;!to(wt());)et();return eo(e,He)}function Sv(e){return $c(ni("",null,null,null,[""],e=Mc(e),0,[0],e))}function ni(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,h=0,p=0,f=0,g=1,m=1,b=1,x=0,k="",C=o,S=i,I=r,_=k;m;)switch(f=x,x=et()){case 40:if(f!=108&&Ve(_,d-1)==58){na(_+=ie(ti(x),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:_+=ti(x);break;case 9:case 10:case 13:case 32:_+=yv(f);break;case 92:_+=xv(ei()-1,7);continue;case 47:switch(wt()){case 42:case 47:Qo(wv(Cv(et(),ei()),t,n),l);break;default:_+="/"}break;case 123*g:a[c++]=St(_)*b;case 125*g:case 59:case 0:switch(x){case 0:case 125:m=0;case 59+u:b==-1&&(_=ie(_,/\f/g,"")),p>0&&St(_)-d&&Qo(p>32?Bc(_+";",r,n,d-1):Bc(ie(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(Qo(I=jc(_,t,n,c,u,o,a,k,C=[],S=[],d),i),x===123)if(u===0)ni(_,t,I,I,C,i,d,a,S);else switch(h===99&&Ve(_,3)===110?100:h){case 100:case 108:case 109:case 115:ni(e,I,I,r&&Qo(jc(e,I,I,0,0,o,a,k,o,C=[],d),S),o,S,d,a,r?C:S);break;default:ni(_,I,I,I,[""],S,0,a,S)}}c=u=p=0,g=b=1,k=_="",d=s;break;case 58:d=1+St(_),p=f;default:if(g<1){if(x==123)--g;else if(x==125&&g++==0&&bv()==125)continue}switch(_+=Yo(x),x*g){case 38:b=u>0?1:(_+="\f",-1);break;case 44:a[c++]=(St(_)-1)*b,b=1;break;case 64:wt()===45&&(_+=ti(et())),h=wt(),u=d=St(k=_+=kv(ei())),x++;break;case 45:f===45&&St(_)==2&&(g=0)}}return i}function jc(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,h=o===0?i:[""],p=ra(h),f=0,g=0,m=0;f0?h[b]+" "+x:ie(x,/&\f/g,h[b])))&&(l[m++]=k);return Zo(e,t,n,o===0?ea:a,l,c,u)}function wv(e,t,n){return Zo(e,t,n,Lc,Yo(vv()),Jr(e,2,-2),0)}function Bc(e,t,n,r){return Zo(e,t,n,ta,Jr(e,0,r),Jr(e,r+1,-1),r)}function sr(e,t){for(var n="",r=ra(e),o=0;o6)switch(Ve(e,t+1)){case 109:if(Ve(e,t+4)!==45)break;case 102:return ie(e,/(.+:)(.+)-([^]+)/,"$1"+oe+"$2-$3$1"+Xo+(Ve(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~na(e,"stretch")?Hc(ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ve(e,t+1)!==115)break;case 6444:switch(Ve(e,St(e)-3-(~na(e,"!important")&&10))){case 107:return ie(e,":",":"+oe)+e;case 101:return ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+oe+(Ve(e,14)===45?"inline-":"")+"box$3$1"+oe+"$2$3$1"+ze+"$2box$3")+e}break;case 5936:switch(Ve(e,t+11)){case 114:return oe+e+ze+ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return oe+e+ze+ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return oe+e+ze+ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return oe+e+ze+e+e}return e}var Av=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case ta:t.return=Hc(t.value,t.length);break;case Fc:return sr([Zr(t,{value:ie(t.value,"@","@"+oe)})],o);case ea:if(t.length)return mv(t.props,function(i){switch(pv(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return sr([Zr(t,{props:[ie(i,/:(read-\w+)/,":"+Xo+"$1")]})],o);case"::placeholder":return sr([Zr(t,{props:[ie(i,/:(plac\w+)/,":"+oe+"input-$1")]}),Zr(t,{props:[ie(i,/:(plac\w+)/,":"+Xo+"$1")]}),Zr(t,{props:[ie(i,/:(plac\w+)/,ze+"input-$1")]})],o)}return""})}},Vv=[Av],Lv=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var m=g.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||Vv,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var m=g.getAttribute("data-emotion").split(" "),b=1;b0?_e(sr,--We):0,or--,ye===10&&(or=1,Xi--),ye}function Ze(){return ye=We2||ei(ye)>3?"":" "}function Qb(e,t){for(;--t&&Ze()&&!(ye<48||ye>102||ye>57&&ye<65||ye>70&&ye<97););return Zr(e,Qi()+(t<6&&Et()==32&&Ze()==32))}function Js(e){for(;Ze();)switch(ye){case e:return We;case 34:case 39:e!==34&&e!==39&&Js(ye);break;case 40:e===41&&Js(e);break;case 92:Ze();break}return We}function Jb(e,t){for(;Ze()&&e+ye!==57;)if(e+ye===84&&Et()===47)break;return"/*"+Zr(t,We-1)+"*"+qi(e===47?e:Ze())}function Zb(e){for(;!ei(Et());)Ze();return Zr(e,We)}function ey(e){return Ac(Zi("",null,null,null,[""],e=Nc(e),0,[0],e))}function Zi(e,t,n,r,i,o,s,a,l){for(var c=0,u=0,d=s,h=0,m=0,f=0,g=1,p=1,b=1,x=0,S="",C=i,w=o,P=r,_=S;p;)switch(f=x,x=Ze()){case 40:if(f!=108&&_e(_,d-1)==58){Ys(_+=ie(Ji(x),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:_+=Ji(x);break;case 9:case 10:case 13:case 32:_+=Yb(f);break;case 92:_+=Qb(Qi()-1,7);continue;case 47:switch(Et()){case 42:case 47:Ki(ty(Jb(Ze(),Qi()),t,n),l);break;default:_+="/"}break;case 123*g:a[c++]=wt(_)*b;case 125*g:case 59:case 0:switch(x){case 0:case 125:p=0;case 59+u:b==-1&&(_=ie(_,/\f/g,"")),m>0&&wt(_)-d&&Ki(m>32?Vc(_+";",r,n,d-1):Vc(ie(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(Ki(P=_c(_,t,n,c,u,i,a,S,C=[],w=[],d),o),x===123)if(u===0)Zi(_,t,P,P,C,o,d,a,w);else switch(h===99&&_e(_,3)===110?100:h){case 100:case 108:case 109:case 115:Zi(e,P,P,r&&Ki(_c(e,P,P,0,0,i,a,S,i,C=[],d),w),i,w,d,a,r?C:w);break;default:Zi(_,P,P,P,[""],w,0,a,w)}}c=u=m=0,g=b=1,S=_="",d=s;break;case 58:d=1+wt(_),m=f;default:if(g<1){if(x==123)--g;else if(x==125&&g++==0&&Xb()==125)continue}switch(_+=qi(x),x*g){case 38:b=u>0?1:(_+="\f",-1);break;case 44:a[c++]=(wt(_)-1)*b,b=1;break;case 64:Et()===45&&(_+=Ji(Ze())),h=Et(),u=d=wt(S=_+=Zb(Qi())),x++;break;case 45:f===45&&wt(_)==2&&(g=0)}}return o}function _c(e,t,n,r,i,o,s,a,l,c,u){for(var d=i-1,h=i===0?o:[""],m=Qs(h),f=0,g=0,p=0;f0?h[b]+" "+x:ie(x,/&\f/g,h[b])))&&(l[p++]=S);return Yi(e,t,n,i===0?Ks:a,l,c,u)}function ty(e,t,n){return Yi(e,t,n,Ic,qi(Kb()),Qr(e,2,-2),0)}function Vc(e,t,n,r){return Yi(e,t,n,Xs,Qr(e,0,r),Qr(e,r+1,-1),r)}function ar(e,t){for(var n="",r=Qs(e),i=0;i6)switch(_e(e,t+1)){case 109:if(_e(e,t+4)!==45)break;case 102:return ie(e,/(.+:)(.+)-([^]+)/,"$1"+re+"$2-$3$1"+Gi+(_e(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ys(e,"stretch")?Lc(ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(_e(e,t+1)!==115)break;case 6444:switch(_e(e,wt(e)-3-(~Ys(e,"!important")&&10))){case 107:return ie(e,":",":"+re)+e;case 101:return ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+re+(_e(e,14)===45?"inline-":"")+"box$3$1"+re+"$2$3$1"+De+"$2box$3")+e}break;case 5936:switch(_e(e,t+11)){case 114:return re+e+De+ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return re+e+De+ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return re+e+De+ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return re+e+De+e+e}return e}var uy=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Xs:t.return=Lc(t.value,t.length);break;case Pc:return ar([Jr(t,{value:ie(t.value,"@","@"+re)})],i);case Ks:if(t.length)return qb(t.props,function(o){switch(Gb(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ar([Jr(t,{props:[ie(o,/:(read-\w+)/,":"+Gi+"$1")]})],i);case"::placeholder":return ar([Jr(t,{props:[ie(o,/:(plac\w+)/,":"+re+"input-$1")]}),Jr(t,{props:[ie(o,/:(plac\w+)/,":"+Gi+"$1")]}),Jr(t,{props:[ie(o,/:(plac\w+)/,De+"input-$1")]})],i)}return""})}},dy=[uy],hy=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var p=g.getAttribute("data-emotion");p.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||dy,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var p=g.getAttribute("data-emotion").split(" "),b=1;b>>>>>> 3f3a37a363 (Add confirmation dialog for exit maintenance action in Edge Worker Page) + */var fv=w,gv=Symbol.for("react.element"),pv=Symbol.for("react.fragment"),mv=Object.prototype.hasOwnProperty,vv=fv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,bv={key:!0,ref:!0,__self:!0,__source:!0};function Ac(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)mv.call(t,r)&&!bv.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:gv,type:e,key:i,ref:s,props:o,_owner:vv.current}}Xo.Fragment=pv,Xo.jsx=Ac,Xo.jsxs=Ac,_c.exports=Xo;var v=_c.exports;function Vc(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var yv=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,xv=Vc(function(e){return yv.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Cv(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ve(ir,--He):0,or--,xe===10&&(or=1,Zo--),xe}function et(){return xe=He2||to(xe)>3?"":" "}function Vv(e,t){for(;--t&&et()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return eo(e,ti()+(t<6&&wt()==32&&et()==32))}function ia(e){for(;et();)switch(xe){case e:return He;case 34:case 39:e!==34&&e!==39&&ia(xe);break;case 40:e===41&&ia(e);break;case 92:et();break}return He}function Lv(e,t){for(;et()&&e+xe!==57;)if(e+xe===84&&wt()===47)break;return"/*"+eo(t,He-1)+"*"+Qo(e===47?e:et())}function Fv(e){for(;!to(wt());)et();return eo(e,He)}function Dv(e){return $c(ri("",null,null,null,[""],e=Mc(e),0,[0],e))}function ri(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,d=s,h=0,p=0,f=0,g=1,m=1,b=1,x=0,k="",C=o,S=i,I=r,_=k;m;)switch(f=x,x=et()){case 40:if(f!=108&&Ve(_,d-1)==58){ra(_+=ie(ni(x),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:_+=ni(x);break;case 9:case 10:case 13:case 32:_+=Av(f);break;case 92:_+=Vv(ti()-1,7);continue;case 47:switch(wt()){case 42:case 47:Jo(zv(Lv(et(),ti()),t,n),l);break;default:_+="/"}break;case 123*g:a[c++]=St(_)*b;case 125*g:case 59:case 0:switch(x){case 0:case 125:m=0;case 59+u:b==-1&&(_=ie(_,/\f/g,"")),p>0&&St(_)-d&&Jo(p>32?Bc(_+";",r,n,d-1):Bc(ie(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(Jo(I=jc(_,t,n,c,u,o,a,k,C=[],S=[],d),i),x===123)if(u===0)ri(_,t,I,I,C,i,d,a,S);else switch(h===99&&Ve(_,3)===110?100:h){case 100:case 108:case 109:case 115:ri(e,I,I,r&&Jo(jc(e,I,I,0,0,o,a,k,o,C=[],d),S),o,S,d,a,r?C:S);break;default:ri(_,I,I,I,[""],S,0,a,S)}}c=u=p=0,g=b=1,k=_="",d=s;break;case 58:d=1+St(_),p=f;default:if(g<1){if(x==123)--g;else if(x==125&&g++==0&&_v()==125)continue}switch(_+=Qo(x),x*g){case 38:b=u>0?1:(_+="\f",-1);break;case 44:a[c++]=(St(_)-1)*b,b=1;break;case 64:wt()===45&&(_+=ni(et())),h=wt(),u=d=St(k=_+=Fv(ti())),x++;break;case 45:f===45&&St(_)==2&&(g=0)}}return i}function jc(e,t,n,r,o,i,s,a,l,c,u){for(var d=o-1,h=o===0?i:[""],p=oa(h),f=0,g=0,m=0;f0?h[b]+" "+x:ie(x,/&\f/g,h[b])))&&(l[m++]=k);return ei(e,t,n,o===0?ta:a,l,c,u)}function zv(e,t,n){return ei(e,t,n,Lc,Qo(Nv()),Jr(e,2,-2),0)}function Bc(e,t,n,r){return ei(e,t,n,na,Jr(e,0,r),Jr(e,r+1,-1),r)}function sr(e,t){for(var n="",r=oa(e),o=0;o6)switch(Ve(e,t+1)){case 109:if(Ve(e,t+4)!==45)break;case 102:return ie(e,/(.+:)(.+)-([^]+)/,"$1"+oe+"$2-$3$1"+Yo+(Ve(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ra(e,"stretch")?Hc(ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ve(e,t+1)!==115)break;case 6444:switch(Ve(e,St(e)-3-(~ra(e,"!important")&&10))){case 107:return ie(e,":",":"+oe)+e;case 101:return ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+oe+(Ve(e,14)===45?"inline-":"")+"box$3$1"+oe+"$2$3$1"+ze+"$2box$3")+e}break;case 5936:switch(Ve(e,t+11)){case 114:return oe+e+ze+ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return oe+e+ze+ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return oe+e+ze+ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return oe+e+ze+e+e}return e}var qv=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case na:t.return=Hc(t.value,t.length);break;case Fc:return sr([Zr(t,{value:ie(t.value,"@","@"+oe)})],o);case ta:if(t.length)return Tv(t.props,function(i){switch(Rv(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return sr([Zr(t,{props:[ie(i,/:(read-\w+)/,":"+Yo+"$1")]})],o);case"::placeholder":return sr([Zr(t,{props:[ie(i,/:(plac\w+)/,":"+oe+"input-$1")]}),Zr(t,{props:[ie(i,/:(plac\w+)/,":"+Yo+"$1")]}),Zr(t,{props:[ie(i,/:(plac\w+)/,ze+"input-$1")]})],o)}return""})}},Kv=[qv],Xv=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var m=g.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||Kv,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var m=g.getAttribute("data-emotion").split(" "),b=1;b=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Gv={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},qv=/[A-Z]|^ms/g,Kv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Yc=function(t){return t.charCodeAt(1)===45},Qc=function(t){return t!=null&&typeof t!="boolean"},ua=Vc(function(e){return Yc(e)?e:e.replace(qv,"-$&").toLowerCase()}),Jc=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Kv,function(r,o,i){return Et={name:o,styles:i,next:Et},o})}return Gv[t]!==1&&!Yc(t)&&typeof n=="number"&&n!==0?n+"px":n};function no(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Et={name:o.name,styles:o.styles,next:Et},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)Et={name:s.name,styles:s.styles,next:Et},s=s.next;var a=i.styles+";";return a}return Xv(e,t,n)}case"function":{if(e!==void 0){var l=Et,c=n(e);return Et=l,no(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function Xv(e,t,n){var r="";if(Array.isArray(n))for(var o=0;or==null?void 0:r(...n))}}const nb=(...e)=>e.map(t=>{var n;return(n=t==null?void 0:t.trim)==null?void 0:n.call(t)}).filter(Boolean).join(" "),rb=/^on[A-Z]/;function ro(...e){let t={};for(let n of e){for(let r in t){if(rb.test(r)&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=tb(t[r],n[r]);continue}if(r==="className"||r==="class"){t[r]=nb(t[r],n[r]);continue}if(r==="style"){t[r]=Object.assign({},t[r]??{},n[r]??{});continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}function ob(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 ib(...e){return t=>{e.forEach(n=>{ob(n,t)})}}function oo(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}const at=(...e)=>e.filter(Boolean).map(t=>t.trim()).join(" ");function sb(e){return e.default||e}const Ue=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),Ot=e=>typeof e=="string",ma=e=>typeof e=="function";function ab(e){var n;const t=O.version;return!Ot(t)||t.startsWith("18.")?e==null?void 0:e.ref:(n=e==null?void 0:e.props)==null?void 0:n.ref}const su=(...e)=>{const t=e.reduce((n,r)=>(r!=null&&r.forEach(o=>n.add(o)),n),new Set([]));return Array.from(t)};function lb(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function ar(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=w.createContext(s);a.displayName=t;function l(){var u;const c=w.useContext(a);if(!c&&n){const d=new Error(i??lb(r,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[a.Provider,l,a]}const[cb,fi]=ar({name:"ChakraContext",strict:!0,providerName:""});function ub(e){const{value:t,children:n}=e;return v.jsxs(cb,{value:t,children:[!t._config.disableLayers&&v.jsx(iu,{styles:t.layers.atRule}),v.jsx(iu,{styles:t._global}),n]})}const db=(e,t)=>{const n={},r={},o=Object.keys(e);for(const i of o)t(i)?r[i]=e[i]:n[i]=e[i];return[r,n]},lr=(e,t)=>{const n=ma(t)?t:r=>t.includes(r);return db(e,n)},hb=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function fb(e){return typeof e=="string"&&hb.has(e)}function gb(e,t,n){const{css:r,isValidProperty:o}=fi(),{children:i,...s}=e,a=w.useMemo(()=>{const[h,p]=lr(s,x=>n(x,t.variantKeys)),[f,g]=lr(p,t.variantKeys),[m,b]=lr(g,o);return{forwardedProps:h,variantProps:f,styleProps:m,elementProps:b}},[t.variantKeys,n,s,o]),{css:l,...c}=a.styleProps,u=w.useMemo(()=>{const h={...a.variantProps};return t.variantKeys.includes("colorPalette")||(h.colorPalette=s.colorPalette),t.variantKeys.includes("orientation")||(h.orientation=s.orientation),t(h)},[t,a.variantProps,s.colorPalette,s.orientation]);return{styles:w.useMemo(()=>r(u,...pb(l),c),[r,u,l,c]),props:{...a.forwardedProps,...a.elementProps,children:i}}}const pb=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),mb=sb(sv),vb=e=>e!=="theme",bb=(e,t,n)=>{let r;if(t){const o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?i=>e.__emotion_forwardProp(i)&&o(i):o}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r};let yb=typeof document<"u";const au=({cache:e,serialized:t,isStringTag:n})=>{la(e,t,n);const r=tu(()=>ca(e,t,n));if(!yb&&r!==void 0){let o=t.name,i=t.next;for(;i!==void 0;)o=at(o,i.name),i=i.next;return v.jsx("style",{"data-emotion":at(e.key,o),dangerouslySetInnerHTML:{__html:r},nonce:e.sheet.nonce})}return null},lu={path:["d"],text:["x","y"],circle:["cx","cy","r"],rect:["width","height","x","y","rx","ry"],ellipse:["cx","cy","rx","ry"],g:["transform"],stop:["offset","stopOpacity"]},xb=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),va=((e,t={},n={})=>{if(xb(lu,e)){n.forwardProps||(n.forwardProps=[]);const c=lu[e];n.forwardProps=su([...n.forwardProps,...c])}const r=e.__emotion_real===e,o=r&&e.__emotion_base||e;let i,s;n!==void 0&&(i=n.label,s=n.target);let a=[];const l=ha((c,u,d)=>{var z;const{cva:h,isValidProperty:p}=fi(),f=t.__cva__?t:h(t),g=Cb(e.__emotion_cva,f),m=V=>(B,K)=>V.includes(B)?!0:!(K!=null&&K.includes(B))&&!p(B);!n.shouldForwardProp&&n.forwardProps&&(n.shouldForwardProp=m(n.forwardProps));const b=(V,B)=>{const K=typeof e=="string"&&e.charCodeAt(0)>96?mb:vb,$=!(B!=null&&B.includes(V))&&!p(V);return K(V)&&$},x=bb(e,n,r)||b,k=O.useMemo(()=>Object.assign({},n.defaultProps,oo(c)),[c]),{props:C,styles:S}=gb(k,g,x);let I="",_=[S],P=C;if(C.theme==null){P={};for(let V in C)P[V]=C[V];P.theme=O.useContext(fa)}typeof C.className=="string"?I=Xc(u.registered,_,C.className):C.className!=null&&(I=at(I,C.className));const T=da(a.concat(_),u.registered,P);T.styles&&(I=at(I,`${u.key}-${T.name}`)),s!==void 0&&(I=at(I,s));const N=!x("as");let j=N&&C.as||o,R={};for(let V in C)if(!(N&&V==="as")){if(fb(V)){const B=V.replace("html","").toLowerCase();R[B]=C[V];continue}x(V)&&(R[V]=C[V])}let L=I.trim();L?R.className=L:Reflect.deleteProperty(R,"className"),R.ref=d;const Y=n.forwardAsChild||((z=n.forwardProps)==null?void 0:z.includes("asChild"));if(C.asChild&&!Y){const V=O.isValidElement(C.children)?O.Children.only(C.children):O.Children.toArray(C.children).find(O.isValidElement);if(!V)throw new Error("[chakra-ui > factory] No valid child found");j=V.type,R.children=null,Reflect.deleteProperty(R,"asChild"),R=ro(R,V.props),R.ref=ib(d,ab(V))}return R.as&&Y?(R.as=void 0,v.jsxs(O.Fragment,{children:[v.jsx(au,{cache:u,serialized:T,isStringTag:typeof j=="string"}),v.jsx(j,{asChild:!0,...R,children:v.jsx(C.as,{children:R.children})})]})):v.jsxs(O.Fragment,{children:[v.jsx(au,{cache:u,serialized:T,isStringTag:typeof j=="string"}),v.jsx(j,{...R})]})});return l.displayName=i!==void 0?i:`chakra(${typeof o=="string"?o:o.displayName||o.name||"Component"})`,l.__emotion_real=l,l.__emotion_base=o,l.__emotion_forwardProp=n.shouldForwardProp,l.__emotion_cva=t,Object.defineProperty(l,"toString",{value(){return`.${s}`}}),l}).bind(),ba=new Map,Ie=new Proxy(va,{apply(e,t,n){return va(...n)},get(e,t){return ba.has(t)||ba.set(t,va(t)),ba.get(t)}}),Cb=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),zt=Ie("div");zt.displayName="Box";const kb=Object.freeze({}),Sb=Object.freeze({});function wb(e){const{key:t,recipe:n}=e,r=fi();return w.useMemo(()=>{const o=n||(t!=null?r.getRecipe(t):{});return r.cva(structuredClone(o))},[t,n,r])}const Eb=e=>e.charAt(0).toUpperCase()+e.slice(1);function cr(e){const{key:t,recipe:n}=e,r=Eb(t||n.className||"Component"),[o,i]=ar({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`});function s(c){const{unstyled:u,...d}=c,h=wb({key:t,recipe:d.recipe||n}),[p,f]=w.useMemo(()=>h.splitVariantProps(d),[h,d]);return{styles:u?kb:h(p),className:h.className,props:f}}const a=(c,u)=>{const d=Ie(c,{},u),h=w.forwardRef((p,f)=>{const g=i(),m=w.useMemo(()=>ro(g,p),[p,g]),{styles:b,className:x,props:k}=s(m);return v.jsx(d,{...k,ref:f,css:[b,m.css],className:at(x,m.className)})});return h.displayName=c.displayName||c.name,h};function l(){return o}return{withContext:a,PropsProvider:o,withPropsProvider:l,usePropsContext:i,useRecipeResult:s}}function gi(e){return e==null?[]:Array.isArray(e)?e:[e]}var io=e=>e[0],ya=e=>e[e.length-1],Ob=(e,t)=>e.indexOf(t)!==-1,wn=(e,...t)=>e.concat(t),En=(e,...t)=>e.filter(n=>!t.includes(n)),ur=e=>Array.from(new Set(e)),xa=(e,t)=>{const n=new Set(t);return e.filter(r=>!n.has(r))},dr=(e,t)=>Ob(e,t)?En(e,t):wn(e,t);function cu(e,t,n={}){const{step:r=1,loop:o=!0}=n,i=t+r,s=e.length,a=s-1;return t===-1?r>0?0:a:i<0?o?a:0:i>=s?o?0:t>s?s:t:i}function Ib(e,t,n={}){return e[cu(e,t,n)]}function Pb(e,t,n={}){const{step:r=1,loop:o=!0}=n;return cu(e,t,{step:-r,loop:o})}function Rb(e,t,n={}){return e[Pb(e,t,n)]}function uu(e,t){return e.reduce(([n,r],o)=>(t(o)?n.push(o):r.push(o),[n,r]),[[],[]])}var du=e=>(e==null?void 0:e.constructor.name)==="Array",Tb=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof(e==null?void 0:e.isEqual)=="function"&&typeof(t==null?void 0:t.isEqual)=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(du(e)&&du(t))return Tb(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(t??Object.create(null)),r=n.length;for(let o=0;oArray.isArray(e),Nb=e=>e===!0||e===!1,hu=e=>e!=null&&typeof e=="object",On=e=>hu(e)&&!so(e),pi=e=>typeof e=="string",In=e=>typeof e=="function",_b=e=>e==null,Yt=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Ab=e=>Object.prototype.toString.call(e),fu=Function.prototype.toString,Vb=fu.call(Object),Lb=e=>{if(!hu(e)||Ab(e)!="[object Object]"||zb(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const n=Yt(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&fu.call(n)==Vb},Fb=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,Db=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,zb=e=>Fb(e)||Db(e),mi=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,Mb=e=>e(),$b=()=>{},vi=(...e)=>(...t)=>{e.forEach(function(n){n==null||n(...t)})},jb=(()=>{let e=0;return()=>(e++,e.toString(36))})();function Mt(e,t,...n){var o;if(e in t){const i=t[e];return In(i)?i(...n):i}const r=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw(o=Error.captureStackTrace)==null||o.call(Error,r,Mt),r}var gu=(e,t)=>{var n;try{return e()}catch(r){return r instanceof Error&&((n=Error.captureStackTrace)==null||n.call(Error,r,gu)),t==null?void 0:t()}},{floor:pu,abs:mu,round:bi,min:Bb,max:Wb,pow:Hb,sign:Ub}=Math,Ca=e=>Number.isNaN(e),Qt=e=>Ca(e)?0:e,vu=(e,t)=>(e%t+t)%t,Gb=(e,t)=>(e%t+t)%t,qb=(e,t)=>Qt(e)>=t,Kb=(e,t)=>Qt(e)<=t,Xb=(e,t,n)=>{const r=Qt(e),o=t==null||r>=t,i=n==null||r<=n;return o&&i},Yb=(e,t,n)=>bi((Qt(e)-t)/n)*n+t,Ge=(e,t,n)=>Bb(Wb(Qt(e),t),n),Qb=(e,t,n)=>(Qt(e)-t)/(n-t),Jb=(e,t,n,r)=>Ge(Yb(e*(n-t)+t,t,r),t,n),bu=(e,t)=>{let n=e,r=t.toString(),o=r.indexOf("."),i=o>=0?r.length-o:0;if(i>0){let s=Hb(10,i);n=bi(n*s)/s}return n},ka=(e,t)=>typeof t=="number"?pu(e*t+.5)/t:bi(e),yu=(e,t,n,r)=>{const o=t!=null?Number(t):0,i=Number(n),s=(e-o)%r;let a=mu(s)*2>=r?e+Ub(s)*(r-mu(s)):e-s;if(a=bu(a,r),!Ca(o)&&ai){const l=pu((i-o)/r),c=o+l*r;a=l<=0||c{const r=Math.pow(n,t);return bi(e*r)/r},xu=e=>{if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n},Cu=(e,t,n)=>{let r=t==="+"?e+n:e-n;if(e%1!==0||n%1!==0){const o=10**Math.max(xu(e),xu(n));e=Math.round(e*o),n=Math.round(n*o),r=t==="+"?e+n:e-n,r/=o}return r},Zb=(e,t)=>Cu(Qt(e),"+",t),ey=(e,t)=>Cu(Qt(e),"-",t);function yi(e){if(!Lb(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),n={};for(const r of t){const o=e[r];o!==void 0&&(n[r]=yi(o))}return n}function ty(e,t=Object.is){let n={...e};const r=new Set,o=u=>(r.add(u),()=>r.delete(u)),i=()=>{r.forEach(u=>u())};return{subscribe:o,get:u=>n[u],set:(u,d)=>{t(n[u],d)||(n[u]=d,i())},update:u=>{let d=!1;for(const h in u){const p=u[h];p!==void 0&&!t(n[h],p)&&(n[h]=p,d=!0)}d&&i()},snapshot:()=>({...n})}}function ao(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function ku(e,t){if(e==null)throw new Error(t())}function ny(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function hr(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=w.createContext(s);a.displayName=t;function l(){var u;const c=w.useContext(a);if(!c&&n){const d=new Error(i??ny(r,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[a.Provider,l,a]}const[$N,Su]=hr({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});function ry(e){if(!e)return;const t=e.selectionStart??0,n=e.selectionEnd??0;Math.abs(n-t)===0&&t===0&&e.setSelectionRange(e.value.length,e.value.length)}var wu=e=>Math.max(0,Math.min(1,e)),oy=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]),Eu=()=>{},xi=e=>typeof e=="object"&&e!==null,iy=2147483647,sy=1,ay=9,ly=11,$e=e=>xi(e)&&e.nodeType===sy&&typeof e.nodeName=="string",Sa=e=>xi(e)&&e.nodeType===ay,cy=e=>xi(e)&&e===e.window,Ou=e=>$e(e)?e.localName||"":"#document";function uy(e){return["html","body","#document"].includes(Ou(e))}var dy=e=>xi(e)&&e.nodeType!==void 0,fr=e=>dy(e)&&e.nodeType===ly&&"host"in e,hy=e=>$e(e)&&e.localName==="input",fy=e=>$e(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,gy=/(textarea|select)/;function Iu(e){if(e==null||!$e(e))return!1;try{return hy(e)&&e.selectionStart!=null||gy.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Pn(e,t){var r;if(!e||!t||!$e(e)||!$e(t))return!1;const n=(r=t.getRootNode)==null?void 0:r.call(t);if(e===t||e.contains(t))return!0;if(n&&fr(n)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function qe(e){return Sa(e)?e:cy(e)?e.document:(e==null?void 0:e.ownerDocument)??document}function py(e){return qe(e).documentElement}function Pe(e){var t;return fr(e)?Pe(e.host):Sa(e)?e.defaultView??window:$e(e)?((t=e.ownerDocument)==null?void 0:t.defaultView)??window:window}function Pu(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function my(e){if(Ou(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fr(e)&&e.host||py(e);return fr(t)?t.host:t}var wa=new WeakMap;function Ci(e){return wa.has(e)||wa.set(e,Pe(e).getComputedStyle(e)),wa.get(e)}var ki=()=>typeof document<"u";function vy(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}function by(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}var Ea=e=>ki()&&e.test(vy()),Ru=e=>ki()&&e.test(by()),yy=e=>ki()&&e.test(navigator.vendor),Tu=()=>ki()&&!!navigator.maxTouchPoints,xy=()=>Ea(/^iPhone/i),Cy=()=>Ea(/^iPad/i)||wi()&&navigator.maxTouchPoints>1,Si=()=>xy()||Cy(),ky=()=>wi()||Si(),wi=()=>Ea(/^Mac/i),Nu=()=>ky()&&yy(/apple/i),Sy=()=>Ru(/Firefox/i),wy=()=>Ru(/Android/i);function Ey(e){var t,n,r;return((t=e.composedPath)==null?void 0:t.call(e))??((r=(n=e.nativeEvent)==null?void 0:n.composedPath)==null?void 0:r.call(n))}function nt(e){const t=Ey(e);return(t==null?void 0:t[0])??e.target}function Oy(e){return Ty(e).isComposing||e.keyCode===229}function Iy(e){return e.pointerType===""&&e.isTrusted?!0:wy()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var Py=e=>e.button===2||wi()&&e.ctrlKey&&e.button===0,Ry=e=>"touches"in e&&e.touches.length>0;function Ty(e){return e.nativeEvent??e}function Ny(e,t="client"){const n=Ry(e)?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var fe=(e,t,n,r)=>{const o=typeof e=="function"?e():e;return o==null||o.addEventListener(t,n,r),()=>{o==null||o.removeEventListener(t,n,r)}};function _y(e,t){const{type:n="HTMLInputElement",property:r="value"}=t,o=Pe(e)[n].prototype;return Object.getOwnPropertyDescriptor(o,r)??{}}function Ay(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function Ei(e,t,n="value"){var o;if(!e)return;const r=Ay(e);r&&((o=_y(e,{type:r,property:n}).set)==null||o.call(e,t)),e.setAttribute(n,t)}function Vy(e,t){const{value:n,bubbles:r=!0}=t;if(!e)return;const o=Pe(e);e instanceof o.HTMLInputElement&&(Ei(e,`${n}`),e.dispatchEvent(new o.Event("input",{bubbles:r})))}function Ly(e){return Fy(e)?e.form:e.closest("form")}function Fy(e){return e.matches("textarea, input, select, button")}function Dy(e,t){if(!e)return;const n=Ly(e),r=o=>{o.defaultPrevented||t()};return n==null||n.addEventListener("reset",r,{passive:!0}),()=>n==null?void 0:n.removeEventListener("reset",r)}function zy(e,t){const n=e==null?void 0:e.closest("fieldset");if(!n)return;t(n.disabled);const r=Pe(n),o=new r.MutationObserver(()=>t(n.disabled));return o.observe(n,{attributes:!0,attributeFilter:["disabled"]}),()=>o.disconnect()}function Oa(e,t){if(!e)return;const{onFieldsetDisabledChange:n,onFormReset:r}=t,o=[Dy(e,r),zy(e,n)];return()=>o.forEach(i=>i==null?void 0:i())}var _u=e=>$e(e)&&e.tagName==="IFRAME",My=e=>!Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10)),$y=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,Ia="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",Au=(e,t=!1)=>{if(!e)return[];const n=Array.from(e.querySelectorAll(Ia));(t==!0||t=="if-empty"&&n.length===0)&&$e(e)&&Jt(e)&&n.unshift(e);const o=n.filter(Jt);return o.forEach((i,s)=>{if(_u(i)&&i.contentDocument){const a=i.contentDocument.body;o.splice(s,1,...Au(a))}}),o};function Jt(e){return!e||e.closest("[inert]")?!1:e.matches(Ia)&&fy(e)}function Pa(e,t){if(!e)return[];const r=Array.from(e.querySelectorAll(Ia)).filter(Rn);return r.forEach((o,i)=>{if(_u(o)&&o.contentDocument){const s=o.contentDocument.body,a=Pa(s);r.splice(i,1,...a)}}),r.length,r}function Rn(e){return e!=null&&e.tabIndex>0?!0:Jt(e)&&!$y(e)}function lo(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||Iu(e))&&!My(e)?0:e.tabIndex}function Ra(e){const{root:t,getInitialEl:n,filter:r,enabled:o=!0}=e;if(!o)return;let i=null;if(i||(i=typeof n=="function"?n():n),i||(i=t==null?void 0:t.querySelector("[data-autofocus],[autofocus]")),!i){const s=Pa(t);i=r?s.filter(r)[0]:s[0]}return i||t||void 0}function Ta(e){const t=new Set;function n(r){const o=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(o))}return n(()=>n(e)),function(){t.forEach(o=>o())}}function ee(e){let t;const n=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(n),t==null||t()}}function jy(e,t,n){const r=ee(()=>{e.removeEventListener(t,o,!0),n()}),o=()=>{r(),n()};return e.addEventListener(t,o,{once:!0,capture:!0}),r}function By(e,t){if(!e)return;const{attributes:n,callback:r}=t,o=e.ownerDocument.defaultView||window,i=new o.MutationObserver(s=>{for(const a of s)a.type==="attributes"&&a.attributeName&&n.includes(a.attributeName)&&r(a)});return i.observe(e,{attributes:!0,attributeFilter:n}),()=>i.disconnect()}function Oi(e,t){const{defer:n}=t,r=n?ee:i=>i(),o=[];return o.push(r(()=>{const i=typeof e=="function"?e():e;o.push(By(i,t))})),()=>{o.forEach(i=>i==null?void 0:i())}}function Vu(e){const t=()=>{const n=Pe(e);e.dispatchEvent(new n.MouseEvent("click"))};Sy()?jy(e,"keyup",t):queueMicrotask(t)}function Ii(e){const t=my(e);return uy(t)?qe(t).body:$e(t)&&Na(t)?t:Ii(t)}function Lu(e,t=[]){const n=Ii(e),r=n===e.ownerDocument.body,o=Pe(n);return r?t.concat(o,o.visualViewport||[],Na(n)?n:[]):t.concat(n,Lu(n,[]))}var Wy=/auto|scroll|overlay|hidden|clip/,Hy=new Set(["inline","contents"]);function Na(e){const t=Pe(e),{overflow:n,overflowX:r,overflowY:o,display:i}=t.getComputedStyle(e);return Wy.test(n+o+r)&&!Hy.has(i)}function Uy(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Pi(e,t){const{rootEl:n,...r}=t||{};!e||!n||!Na(n)||!Uy(n)||e.scrollIntoView(r)}function Fu(e,t){const{left:n,top:r,width:o,height:i}=t.getBoundingClientRect(),s={x:e.x-n,y:e.y-r},a={x:wu(s.x/o),y:wu(s.y/i)};function l(c={}){const{dir:u="ltr",orientation:d="horizontal",inverted:h}=c,p=typeof h=="object"?h.x:h,f=typeof h=="object"?h.y:h;return d==="horizontal"?u==="rtl"||p?1-a.x:a.x:f?1-a.y:a.y}return{offset:s,percent:a,getPercentValue:l}}function Gy(e,t){const n=e.body,r="pointerLockElement"in e||"mozPointerLockElement"in e,o=()=>!!e.pointerLockElement;function i(){}function s(l){o(),console.error("PointerLock error occurred:",l),e.exitPointerLock()}if(!r)return;try{n.requestPointerLock()}catch{}const a=[fe(e,"pointerlockchange",i,!1),fe(e,"pointerlockerror",s,!1)];return()=>{a.forEach(l=>l()),e.exitPointerLock()}}var gr="default",_a="",Ri=new WeakMap;function qy(e={}){const{target:t,doc:n}=e,r=n??document,o=r.documentElement;return Si()?(gr==="default"&&(_a=o.style.webkitUserSelect,o.style.webkitUserSelect="none"),gr="disabled"):t&&(Ri.set(t,t.style.userSelect),t.style.userSelect="none"),()=>Ky({target:t,doc:r})}function Ky(e={}){const{target:t,doc:n}=e,o=(n??document).documentElement;if(Si()){if(gr!=="disabled")return;gr="restoring",setTimeout(()=>{Ta(()=>{gr==="restoring"&&(o.style.webkitUserSelect==="none"&&(o.style.webkitUserSelect=_a||""),_a="",gr="default")})},300)}else if(t&&Ri.has(t)){const i=Ri.get(t);t.style.userSelect==="none"&&(t.style.userSelect=i??""),t.getAttribute("style")===""&&t.removeAttribute("style"),Ri.delete(t)}}function Du(e={}){const{defer:t,target:n,...r}=e,o=t?ee:s=>s(),i=[];return i.push(o(()=>{const s=typeof n=="function"?n():n;i.push(qy({...r,target:s}))})),()=>{i.forEach(s=>s==null?void 0:s())}}function Xy(e,t){const{onPointerMove:n,onPointerUp:r}=t,i=[fe(e,"pointermove",s=>{const a=Ny(s),l=Math.sqrt(a.x**2+a.y**2),c=s.pointerType==="touch"?10:5;if(!(l{i.forEach(s=>s())}}function Ti(e,t){return Array.from((e==null?void 0:e.querySelectorAll(t))??[])}function Yy(e,t){return(e==null?void 0:e.querySelector(t))??null}var Aa=e=>e.id;function Qy(e,t,n=Aa){return e.find(r=>n(r)===t)}function Va(e,t,n=Aa){const r=Qy(e,t,n);return r?e.indexOf(r):-1}function Jy(e,t,n=!0){let r=Va(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function Zy(e,t,n=!0){let r=Va(e,t);return r===-1?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}var ex=e=>e.split("").map(t=>{const n=t.charCodeAt(0);return n>0&&n<128?t:n>=128&&n<=255?`/x${n.toString(16)}`.replace("/","\\"):""}).join("").trim(),tx=e=>{var t;return ex(((t=e.dataset)==null?void 0:t.valuetext)??e.textContent??"")},nx=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function rx(e,t,n,r=Aa){const o=n?Va(e,n,r):-1;let i=n?oy(e,o):e;return t.length===1&&(i=i.filter(a=>r(a)!==n)),i.find(a=>nx(tx(a),t))}function Ni(e,t){if(!e)return Eu;const n=Object.keys(t).reduce((r,o)=>(r[o]=e.style.getPropertyValue(o),r),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute("style")}}function ox(e,t,n){if(!e)return Eu;const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute("style")}}function ix(e,t){const{state:n,activeId:r,key:o,timeout:i=350,itemToId:s}=t,a=n.keysSoFar+o,c=a.length>1&&Array.from(a).every(f=>f===a[0])?a[0]:a;let u=e.slice();const d=rx(u,c,r,s);function h(){clearTimeout(n.timer),n.timer=-1}function p(f){n.keysSoFar=f,h(),f!==""&&(n.timer=+setTimeout(()=>{p(""),h()},i))}return p(a),d}var co=Object.assign(ix,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:sx});function sx(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}function ax(e,t,n){const{signal:r}=t;return[new Promise((s,a)=>{const l=setTimeout(()=>{a(new Error(`Timeout of ${n}ms exceeded`))},n);r.addEventListener("abort",()=>{clearTimeout(l),a(new Error("Promise aborted"))}),e.then(c=>{r.aborted||(clearTimeout(l),s(c))}).catch(c=>{r.aborted||(clearTimeout(l),a(c))})}),()=>t.abort()]}function lx(e,t){const{timeout:n,rootNode:r}=t,o=Pe(r),i=qe(r),s=new o.AbortController;return ax(new Promise(a=>{const l=e();if(l){a(l);return}const c=new o.MutationObserver(()=>{const u=e();u&&u.isConnected&&(c.disconnect(),a(u))});c.observe(i.body,{childList:!0,subtree:!0})}),s,n)}var cx=(...e)=>e.map(t=>{var n;return(n=t==null?void 0:t.trim)==null?void 0:n.call(t)}).filter(Boolean).join(" "),ux=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,zu=e=>{const t={};let n;for(;n=ux.exec(e);)t[n[1]]=n[2];return t},dx=(e,t)=>{if(pi(e)){if(pi(t))return`${e};${t}`;e=zu(e)}else pi(t)&&(t=zu(t));return Object.assign({},e??{},t??{})};function pt(...e){let t={};for(let n of e){for(let r in t){if(r.startsWith("on")&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=vi(n[r],t[r]);continue}if(r==="className"||r==="class"){t[r]=cx(t[r],n[r]);continue}if(r==="style"){t[r]=dx(t[r],n[r]);continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}function Mu(e,t,n){let r=[],o;return i=>{const s=e(i);return(s.length!==r.length||s.some((l,c)=>!gt(r[c],l)))&&(r=s,o=t(...s)),o}}function Zt(){return{and:(...e)=>function(n){return e.every(r=>n.guard(r))},or:(...e)=>function(n){return e.some(r=>n.guard(r))},not:e=>function(n){return!n.guard(e)}}}function jN(e){return e}function $u(){return{guards:Zt(),createMachine:e=>e,choose:e=>function({choose:n}){var r;return(r=n(e))==null?void 0:r.actions}}}var pr=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(pr||{}),La="__init__";function hx(e){const t=()=>{var a;return((a=e.getRootNode)==null?void 0:a.call(e))??document},n=()=>qe(t()),r=()=>n().defaultView??window,o=()=>Pu(t());return{...e,getRootNode:t,getDoc:n,getWin:r,getActiveElement:o,isActiveElement:a=>a===o(),getById:a=>t().getElementById(a)}}function _i(...e){return t=>{const n=[];for(const r of e)if(typeof r=="function"){const o=r(t);typeof o=="function"&&n.push(o)}else r&&(r.current=t);if(n.length)return()=>{for(const r of n)r()}}}function fx(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Fa=e=>{const t=w.memo(w.forwardRef((n,r)=>{const{asChild:o,children:i,...s}=n;if(!o)return w.createElement(e,{...s,ref:r},i);if(!w.isValidElement(i))return null;const a=w.Children.only(i),l=fx(a);return w.cloneElement(a,{...pt(s,a.props),ref:r?_i(r,l):l})}));return t.displayName=e.displayName||e.name,t},en=(()=>{const e=new Map;return new Proxy(Fa,{apply(t,n,r){return Fa(r[0])},get(t,n){const r=n;return e.has(r)||e.set(r,Fa(r)),e.get(r)}})})(),[WN,gx]=hr({name:"LocaleContext",hookName:"useLocaleContext",providerName:"",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),ju=()=>(e,t)=>t.reduce((n,r)=>{const[o,i]=n,s=r;return i[s]!==void 0&&(o[s]=i[s]),delete i[s],[o,i]},[{},{...e}]),Bu=e=>ju()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function px(e){return new Proxy({},{get(t,n){return n==="style"?r=>e({style:r}).style:e}})}var U=()=>e=>Array.from(new Set(e));function mx(e,t){const{state:n,send:r,context:o}=e,i=n.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:i,setNode(s){s&&r({type:"NODE.SET",node:s})},unmount(){r({type:"UNMOUNT"})}}}var vx={props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["clearInitial","cleanupNode"],watch({track:e,prop:t,send:n}){e([()=>t("present")],()=>{n({type:"PRESENCE.CHANGED"})})},on:{"NODE.SET":{actions:["setupNode"]},"PRESENCE.CHANGED":{actions:["setInitial","syncPresence"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},invokeOnExitComplete:({prop:e})=>{var t;(t=e("onExitComplete"))==null||t()},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",Ci(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:n,prop:r})=>{const o=r("present");if(o)return n({type:"MOUNT",src:"presence.changed"});const i=t.get("node");if(!o&&(i==null?void 0:i.ownerDocument.visibilityState)==="hidden")return n({type:"UNMOUNT",src:"visibilitychange"});ee(()=>{var a,l;const s=Ai(t.get("styles"));e.set("unmountAnimationName",s),s==="none"||s===e.get("prevAnimationName")||((a=t.get("styles"))==null?void 0:a.display)==="none"||((l=t.get("styles"))==null?void 0:l.animationDuration)==="0s"?n({type:"UNMOUNT",src:"presence.changed"}):n({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{ee(()=>{e.set("prevAnimationName",Ai(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:n})=>{const r=t.get("node");if(!r)return;const o=a=>{var c,u;(((u=(c=a.composedPath)==null?void 0:c.call(a))==null?void 0:u[0])??a.target)===r&&e.set("prevAnimationName",Ai(t.get("styles")))},i=a=>{const l=Ai(t.get("styles"));nt(a)===r&&l===e.get("unmountAnimationName")&&n({type:"UNMOUNT",src:"animationend"})};r.addEventListener("animationstart",o),r.addEventListener("animationcancel",i),r.addEventListener("animationend",i);const s=Ni(r,{animationFillMode:"forwards"});return()=>{r.removeEventListener("animationstart",o),r.removeEventListener("animationcancel",i),r.removeEventListener("animationend",i),Ta(()=>s())}}}}};function Ai(e){return(e==null?void 0:e.animationName)||"none"}U()(["onExitComplete","present","immediate"]);var Wu=typeof globalThis.document<"u"?w.useLayoutEffect:w.useEffect;function Vi(e){const t=e().value??e().defaultValue,n=e().isEqual??Object.is,[r]=w.useState(t),[o,i]=w.useState(r),s=e().value!==void 0,a=w.useRef(o);a.current=s?e().value:o;const l=w.useRef(a.current);Wu(()=>{l.current=a.current},[o,e().value]);const c=d=>{var f,g;const h=l.current,p=In(d)?d(h):d;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:p,prev:h}),s||i(p),n(p,h)||(g=(f=e()).onChange)==null||g.call(f,p,h)};function u(){return s?e().value:o}return{initial:r,ref:a,get:u,set(d){(e().sync?ne.flushSync:Mb)(()=>c(d))},invoke(d,h){var p,f;(f=(p=e()).onChange)==null||f.call(p,d,h)},hash(d){var h,p;return((p=(h=e()).hash)==null?void 0:p.call(h,d))??String(d)}}}Vi.cleanup=e=>{w.useEffect(()=>e,[])},Vi.ref=e=>{const t=w.useRef(e);return{get:()=>t.current,set:n=>{t.current=n}}};function bx(e){const t=w.useRef(e);return{get(n){return t.current[n]},set(n,r){t.current[n]=r}}}var yx=(e,t)=>{const n=w.useRef(!1),r=w.useRef(!1);w.useEffect(()=>{if(n.current&&r.current)return t();r.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),w.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function Hu(e,t={}){var j,R,L,Y;const n=w.useMemo(()=>{const{id:z,ids:V,getRootNode:B}=t;return hx({id:z,ids:V,getRootNode:B})},[t]),r=(...z)=>{e.debug&&console.log(...z)},o=((j=e.props)==null?void 0:j.call(e,{props:yi(t),scope:n}))??t,i=xx(o),s=(R=e.context)==null?void 0:R.call(e,{prop:i,bindable:Vi,scope:n,flush:Gu,getContext(){return l},getComputed(){return S},getRefs(){return g},getEvent(){return p()}}),a=Uu(s),l={get(z){var V;return(V=a.current)==null?void 0:V[z].ref.current},set(z,V){var B;(B=a.current)==null||B[z].set(V)},initial(z){var V;return(V=a.current)==null?void 0:V[z].initial},hash(z){var B,K;const V=(B=a.current)==null?void 0:B[z].get();return(K=a.current)==null?void 0:K[z].hash(V)}},c=w.useRef(new Map),u=w.useRef(null),d=w.useRef(null),h=w.useRef({type:""}),p=()=>({...h.current,current(){return h.current},previous(){return d.current}}),f=()=>({...I,matches(...z){return z.includes(I.ref.current)},hasTag(z){var V,B;return!!((B=(V=e.states[I.ref.current])==null?void 0:V.tags)!=null&&B.includes(z))}}),g=bx(((L=e.refs)==null?void 0:L.call(e,{prop:i,context:l}))??{}),m=()=>({state:f(),context:l,event:p(),prop:i,send:N,action:b,guard:x,track:yx,refs:g,computed:S,flush:Gu,scope:n,choose:C}),b=z=>{const V=In(z)?z(m()):z;if(!V)return;const B=V.map(K=>{var H,X;const $=(X=(H=e.implementations)==null?void 0:H.actions)==null?void 0:X[K];return $||ao(`[zag-js] No implementation found for action "${JSON.stringify(K)}"`),$});for(const K of B)K==null||K(m())},x=z=>{var V,B;return In(z)?z(m()):(B=(V=e.implementations)==null?void 0:V.guards)==null?void 0:B[z](m())},k=z=>{const V=In(z)?z(m()):z;if(!V)return;const B=V.map($=>{var X,de;const H=(de=(X=e.implementations)==null?void 0:X.effects)==null?void 0:de[$];return H||ao(`[zag-js] No implementation found for effect "${JSON.stringify($)}"`),H}),K=[];for(const $ of B){const H=$==null?void 0:$(m());H&&K.push(H)}return()=>K.forEach($=>$==null?void 0:$())},C=z=>gi(z).find(V=>{let B=!V.guard;return pi(V.guard)?B=!!x(V.guard):In(V.guard)&&(B=V.guard(m())),B}),S=z=>{ku(e.computed,()=>"[zag-js] No computed object found on machine");const V=e.computed[z];return V({context:l,event:p(),prop:i,refs:g,scope:n,computed:S})},I=Vi(()=>({defaultValue:e.initialState({prop:i}),onChange(z,V){var K,$,H,X;if(V){const de=c.current.get(V);de==null||de(),c.current.delete(V)}V&&b((K=e.states[V])==null?void 0:K.exit),b(($=u.current)==null?void 0:$.actions);const B=k((H=e.states[z])==null?void 0:H.effects);if(B&&c.current.set(z,B),V===La){b(e.entry);const de=k(e.effects);de&&c.current.set(La,de)}b((X=e.states[z])==null?void 0:X.entry)}})),_=w.useRef(void 0),P=w.useRef(pr.NotStarted);Wu(()=>{queueMicrotask(()=>{const B=P.current===pr.Started;P.current=pr.Started,r(B?"rehydrating...":"initializing...");const K=_.current??I.initial;I.invoke(K,B?I.get():La)});const z=c.current,V=I.ref.current;return()=>{r("unmounting..."),_.current=V,P.current=pr.Stopped,z.forEach(B=>B==null?void 0:B()),c.current=new Map,u.current=null,queueMicrotask(()=>{b(e.exit)})}},[]);const T=()=>"ref"in I?I.ref.current:I.get(),N=z=>{queueMicrotask(()=>{var X,de;if(P.current!==pr.Started)return;d.current=h.current,h.current=z;let V=T();const B=((X=e.states[V].on)==null?void 0:X[z.type])??((de=e.on)==null?void 0:de[z.type]),K=C(B);if(!K)return;u.current=K;const $=K.target??V;r("transition",z.type,K.target||V,`(${K.actions})`);const H=$!==V;H?ne.flushSync(()=>I.set($)):K.reenter&&!H?I.invoke(V,V):b(K.actions??[])})};return(Y=e.watch)==null||Y.call(e,m()),{state:f(),send:N,context:l,prop:i,scope:n,refs:g,computed:S,event:p(),getStatus:()=>P.current}}function Uu(e){const t=w.useRef(e);return t.current=e,t}function xx(e){const t=Uu(e);return function(r){return t.current[r]}}function Gu(e){queueMicrotask(()=>{ne.flushSync(()=>e())})}var Cx=px(e=>e);function kx(e,t={}){const{sync:n=!1}=t,r=Sx(e);return w.useCallback((...o)=>{var i;return n?queueMicrotask(()=>{var s;return(s=r.current)==null?void 0:s.call(r,...o)}):(i=r.current)==null?void 0:i.call(r,...o)},[n,r])}function Sx(e){const t=w.useRef(e);return t.current=e,t}const Da=(e={})=>{const{lazyMount:t,unmountOnExit:n,present:r,skipAnimationOnMount:o=!1,...i}=e,s=w.useRef(!1),a={...i,present:r,onExitComplete:kx(e.onExitComplete)},l=Hu(vx,a),c=mx(l);c.present&&(s.current=!0);const u=!c.present&&!s.current&&t||n&&!c.present&&s.current,d=()=>({"data-state":c.skip&&o?void 0:r?"open":"closed",hidden:!c.present});return{ref:c.setNode,getPresenceProps:d,present:c.present,unmounted:u}},[qu,za]=hr({name:"PresenceContext",hookName:"usePresenceContext",providerName:""}),Li=Ie("span"),{withContext:wx}=cr({key:"text"}),Ex=wx("p");function Ku(e,t=[]){const n=w.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return w.useInsertionEffect(()=>{n.current=e}),w.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function Ox(e={}){const t=Ku(e.onOpen),n=Ku(e.onClose),[r,o]=w.useState(e.defaultOpen||!1),i=e.open!==void 0?e.open:r,s=e.open!==void 0,a=w.useCallback(()=>{s||o(!1),n==null||n()},[s,n]),l=w.useCallback(()=>{s||o(!0),t==null||t()},[s,t]),c=w.useCallback(()=>{i?a():l()},[i,l,a]);return{open:i,onOpen:l,onClose:a,onToggle:c,setOpen:o}}var G=(e,t=[])=>({parts:(...n)=>{if(Ix(t))return G(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>G(e,[...t,...n]),omit:(...n)=>G(e,t.filter(r=>!n.includes(r))),rename:n=>G(n,t),keys:()=>t,build:()=>[...new Set(t)].reduce((n,r)=>Object.assign(n,{[r]:{selector:[`&[data-scope="${mr(e)}"][data-part="${mr(r)}"]`,`& [data-scope="${mr(e)}"][data-part="${mr(r)}"]`].join(", "),attrs:{"data-scope":mr(e),"data-part":mr(r)}}}),{})}),mr=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Ix=e=>e.length===0,Xu=G("collapsible").parts("root","trigger","content","indicator");Xu.build(),U()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);var Px=Object.defineProperty,Rx=(e,t,n)=>t in e?Px(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ma=(e,t,n)=>Rx(e,t+"",n),Tx=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0},$a=class{toHexInt(){return this.toFormat("rgba").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}getChannelValuePercent(e,t){const n=t??this.getChannelValue(e),{minValue:r,maxValue:o}=this.getChannelRange(e);return Qb(n,r,o)}getChannelPercentValue(e,t){const{minValue:n,maxValue:r,step:o}=this.getChannelRange(e),i=Jb(t,n,r,o);return yu(i,n,r,o)}withChannelValue(e,t){const{minValue:n,maxValue:r}=this.getChannelRange(e);if(e in this){let o=this.clone();return o[e]=Ge(t,n,r),o}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:n}=e,r=t||this.getChannels().find(s=>s!==n),o=n||this.getChannels().find(s=>s!==r),i=this.getChannels().find(s=>s!==r&&s!==o);return{xChannel:r,yChannel:o,zChannel:i}}incrementChannel(e,t){const{minValue:n,maxValue:r,step:o}=this.getChannelRange(e),i=yu(Ge(this.getChannelValue(e)+t,n,r),n,r,o);return this.withChannelValue(e,i)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return Tx(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},Nx=/^#[\da-f]+$/i,_x=/^rgba?\((.*)\)$/,Ax=/[^#]/gi,Yu=class Xs extends $a{constructor(t,n,r,o){super(),this.red=t,this.green=n,this.blue=r,this.alpha=o}static parse(t){let n=[];if(Nx.test(t)&&[4,5,7,9].includes(t.length)){const o=(t.length<6?t.replace(Ax,"$&$&"):t).slice(1).split("");for(;o.length>0;)n.push(parseInt(o.splice(0,2).join(""),16));n[3]=n[3]!==void 0?n[3]/255:void 0}const r=t.match(_x);return r!=null&&r[1]&&(n=r[1].split(",").map(o=>Number(o.trim())).map((o,i)=>Ge(o,0,i<3?255:1))),n.length<3?void 0:new Xs(n[0],n[1],n[2],n[3]??1)}toString(t){switch(t){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(this.alpha*255).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"hsb":return this.toHSB().toString("hsb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+t)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const t=this.red/255,n=this.green/255,r=this.blue/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=i-o,a=i===0?0:s/i;let l=0;if(s!==0){switch(i){case t:l=(n-r)/s+(nNumber(a.trim().replace("%","")));return new Ys(vu(r,360),Ge(o,0,100),Ge(i,0,100),Ge(s??1,0,1))}}toString(t){switch(t){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${ue(this.saturation,2)}%, ${ue(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${ue(this.saturation,2)}%, ${ue(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+t)}}toHSB(){let t=this.saturation/100,n=this.lightness/100,r=n+t*Math.min(n,1-n);return t=r===0?0:2*(1-n/r),new Wa(ue(this.hue,2),ue(t*100,2),ue(r*100,2),ue(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.lightness/100,o=n*Math.min(r,1-r),i=(s,a=(s+t/30)%12)=>r-o*Math.max(Math.min(a-3,9-a,1),-1);return new ja(Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255),ue(this.alpha,2))}clone(){return new Ys(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(o/=100),new Intl.NumberFormat(n,r).format(o)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return Ys.colorChannels}};Ma(Qu,"colorChannels",["hue","saturation","lightness"]);var Ba=Qu,Lx=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,Ju=class Qs extends $a{constructor(t,n,r,o){super(),this.hue=t,this.saturation=n,this.brightness=r,this.alpha=o}static parse(t){let n;if(n=t.match(Lx)){const[r,o,i,s]=(n[1]??n[2]).split(",").map(a=>Number(a.trim().replace("%","")));return new Qs(vu(r,360),Ge(o,0,100),Ge(i,0,100),Ge(s??1,0,1))}}toString(t){switch(t){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${ue(this.saturation,2)}%, ${ue(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${ue(this.saturation,2)}%, ${ue(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+t)}}toHSL(){let t=this.saturation/100,n=this.brightness/100,r=n*(1-t/2);return t=r===0||r===1?0:(n-r)/Math.min(r,1-r),new Ba(ue(this.hue,2),ue(t*100,2),ue(r*100,2),ue(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.brightness/100,o=(i,s=(i+t/60)%6)=>r-n*r*Math.max(Math.min(s,4-s,1),0);return new ja(Math.round(o(5)*255),Math.round(o(3)*255),Math.round(o(1)*255),ue(this.alpha,2))}clone(){return new Qs(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(o/=100),new Intl.NumberFormat(n,r).format(o)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return Qs.colorChannels}};Ma(Ju,"colorChannels",["hue","saturation","brightness"]);var Wa=Ju,Fx="aliceblue:f0f8ff,antiquewhite:faebd7,aqua:00ffff,aquamarine:7fffd4,azure:f0ffff,beige:f5f5dc,bisque:ffe4c4,black:000000,blanchedalmond:ffebcd,blue:0000ff,blueviolet:8a2be2,brown:a52a2a,burlywood:deb887,cadetblue:5f9ea0,chartreuse:7fff00,chocolate:d2691e,coral:ff7f50,cornflowerblue:6495ed,cornsilk:fff8dc,crimson:dc143c,cyan:00ffff,darkblue:00008b,darkcyan:008b8b,darkgoldenrod:b8860b,darkgray:a9a9a9,darkgreen:006400,darkkhaki:bdb76b,darkmagenta:8b008b,darkolivegreen:556b2f,darkorange:ff8c00,darkorchid:9932cc,darkred:8b0000,darksalmon:e9967a,darkseagreen:8fbc8f,darkslateblue:483d8b,darkslategray:2f4f4f,darkturquoise:00ced1,darkviolet:9400d3,deeppink:ff1493,deepskyblue:00bfff,dimgray:696969,dodgerblue:1e90ff,firebrick:b22222,floralwhite:fffaf0,forestgreen:228b22,fuchsia:ff00ff,gainsboro:dcdcdc,ghostwhite:f8f8ff,gold:ffd700,goldenrod:daa520,gray:808080,green:008000,greenyellow:adff2f,honeydew:f0fff0,hotpink:ff69b4,indianred:cd5c5c,indigo:4b0082,ivory:fffff0,khaki:f0e68c,lavender:e6e6fa,lavenderblush:fff0f5,lawngreen:7cfc00,lemonchiffon:fffacd,lightblue:add8e6,lightcoral:f08080,lightcyan:e0ffff,lightgoldenrodyellow:fafad2,lightgrey:d3d3d3,lightgreen:90ee90,lightpink:ffb6c1,lightsalmon:ffa07a,lightseagreen:20b2aa,lightskyblue:87cefa,lightslategray:778899,lightsteelblue:b0c4de,lightyellow:ffffe0,lime:00ff00,limegreen:32cd32,linen:faf0e6,magenta:ff00ff,maroon:800000,mediumaquamarine:66cdaa,mediumblue:0000cd,mediumorchid:ba55d3,mediumpurple:9370d8,mediumseagreen:3cb371,mediumslateblue:7b68ee,mediumspringgreen:00fa9a,mediumturquoise:48d1cc,mediumvioletred:c71585,midnightblue:191970,mintcream:f5fffa,mistyrose:ffe4e1,moccasin:ffe4b5,navajowhite:ffdead,navy:000080,oldlace:fdf5e6,olive:808000,olivedrab:6b8e23,orange:ffa500,orangered:ff4500,orchid:da70d6,palegoldenrod:eee8aa,palegreen:98fb98,paleturquoise:afeeee,palevioletred:d87093,papayawhip:ffefd5,peachpuff:ffdab9,peru:cd853f,pink:ffc0cb,plum:dda0dd,powderblue:b0e0e6,purple:800080,rebeccapurple:663399,red:ff0000,rosybrown:bc8f8f,royalblue:4169e1,saddlebrown:8b4513,salmon:fa8072,sandybrown:f4a460,seagreen:2e8b57,seashell:fff5ee,sienna:a0522d,silver:c0c0c0,skyblue:87ceeb,slateblue:6a5acd,slategray:708090,snow:fffafa,springgreen:00ff7f,steelblue:4682b4,tan:d2b48c,teal:008080,thistle:d8bfd8,tomato:ff6347,turquoise:40e0d0,violet:ee82ee,wheat:f5deb3,white:ffffff,whitesmoke:f5f5f5,yellow:ffff00,yellowgreen:9acd32",Dx=e=>{const t=new Map,n=e.split(",");for(let r=0;r{var n;if(Zu.has(e))return Fi(Zu.get(e));const t=ja.parse(e)||Wa.parse(e)||Ba.parse(e);if(!t){const r=new Error("Invalid color value: "+e);throw(n=Error.captureStackTrace)==null||n.call(Error,r,Fi),r}return t};const zx=["top","right","bottom","left"],tn=Math.min,rt=Math.max,Di=Math.round,zi=Math.floor,It=e=>({x:e,y:e}),Mx={left:"right",right:"left",bottom:"top",top:"bottom"},$x={start:"end",end:"start"};function Ha(e,t,n){return rt(e,tn(t,n))}function $t(e,t){return typeof e=="function"?e(t):e}function jt(e){return e.split("-")[0]}function vr(e){return e.split("-")[1]}function Ua(e){return e==="x"?"y":"x"}function Ga(e){return e==="y"?"height":"width"}const jx=new Set(["top","bottom"]);function Pt(e){return jx.has(jt(e))?"y":"x"}function qa(e){return Ua(Pt(e))}function Bx(e,t,n){n===void 0&&(n=!1);const r=vr(e),o=qa(e),i=Ga(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Mi(s)),[s,Mi(s)]}function Wx(e){const t=Mi(e);return[Ka(e),t,Ka(t)]}function Ka(e){return e.replace(/start|end/g,t=>$x[t])}const ed=["left","right"],td=["right","left"],Hx=["top","bottom"],Ux=["bottom","top"];function Gx(e,t,n){switch(e){case"top":case"bottom":return n?t?td:ed:t?ed:td;case"left":case"right":return t?Hx:Ux;default:return[]}}function qx(e,t,n,r){const o=vr(e);let i=Gx(jt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Ka)))),i}function Mi(e){return e.replace(/left|right|bottom|top/g,t=>Mx[t])}function Kx(e){return{top:0,right:0,bottom:0,left:0,...e}}function nd(e){return typeof e!="number"?Kx(e):{top:e,right:e,bottom:e,left:e}}function $i(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function rd(e,t,n){let{reference:r,floating:o}=e;const i=Pt(t),s=qa(t),a=Ga(s),l=jt(t),c=i==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(vr(t)){case"start":p[s]-=h*(n&&c?-1:1);break;case"end":p[s]+=h*(n&&c?-1:1);break}return p}const Xx=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=rd(c,r,l),h=r,p={},f=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=$t(e,t)||{};if(c==null)return{};const d=nd(u),h={x:n,y:r},p=qa(o),f=Ga(p),g=await s.getDimensions(c),m=p==="y",b=m?"top":"left",x=m?"bottom":"right",k=m?"clientHeight":"clientWidth",C=i.reference[f]+i.reference[p]-h[p]-i.floating[f],S=h[p]-i.reference[p],I=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let _=I?I[k]:0;(!_||!await(s.isElement==null?void 0:s.isElement(I)))&&(_=a.floating[k]||i.floating[f]);const P=C/2-S/2,T=_/2-g[f]/2-1,N=tn(d[b],T),j=tn(d[x],T),R=N,L=_-g[f]-j,Y=_/2-g[f]/2+P,z=Ha(R,Y,L),V=!l.arrow&&vr(o)!=null&&Y!==z&&i.reference[f]/2-(YY<=0)){var j,R;const Y=(((j=i.flip)==null?void 0:j.index)||0)+1,z=_[Y];if(z&&(!(d==="alignment"?x!==Pt(z):!1)||N.every(K=>Pt(K.placement)===x?K.overflows[0]>0:!0)))return{data:{index:Y,overflows:N},reset:{placement:z}};let V=(R=N.filter(B=>B.overflows[0]<=0).sort((B,K)=>B.overflows[1]-K.overflows[1])[0])==null?void 0:R.placement;if(!V)switch(p){case"bestFit":{var L;const B=(L=N.filter(K=>{if(I){const $=Pt(K.placement);return $===x||$==="y"}return!0}).map(K=>[K.placement,K.overflows.filter($=>$>0).reduce(($,H)=>$+H,0)]).sort((K,$)=>K[1]-$[1])[0])==null?void 0:L[0];B&&(V=B);break}case"initialPlacement":V=a;break}if(o!==V)return{reset:{placement:V}}}return{}}}};function od(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function id(e){return zx.some(t=>e[t]>=0)}const Jx=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=$t(e,t);switch(r){case"referenceHidden":{const i=await uo(t,{...o,elementContext:"reference"}),s=od(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:id(s)}}}case"escaped":{const i=await uo(t,{...o,altBoundary:!0}),s=od(i,n.floating);return{data:{escapedOffsets:s,escaped:id(s)}}}default:return{}}}}},sd=new Set(["left","top"]);async function Zx(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=jt(n),a=vr(n),l=Pt(n)==="y",c=sd.has(s)?-1:1,u=i&&l?-1:1,d=$t(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof f=="number"&&(p=a==="end"?f*-1:f),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}const e1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await Zx(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},t1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:m=>{let{x:b,y:x}=m;return{x:b,y:x}}},...l}=$t(e,t),c={x:n,y:r},u=await uo(t,l),d=Pt(jt(o)),h=Ua(d);let p=c[h],f=c[d];if(i){const m=h==="y"?"top":"left",b=h==="y"?"bottom":"right",x=p+u[m],k=p-u[b];p=Ha(x,p,k)}if(s){const m=d==="y"?"top":"left",b=d==="y"?"bottom":"right",x=f+u[m],k=f-u[b];f=Ha(x,f,k)}const g=a.fn({...t,[h]:p,[d]:f});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:i,[d]:s}}}}}},n1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=$t(e,t),u={x:n,y:r},d=Pt(o),h=Ua(d);let p=u[h],f=u[d];const g=$t(a,t),m=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const k=h==="y"?"height":"width",C=i.reference[h]-i.floating[k]+m.mainAxis,S=i.reference[h]+i.reference[k]-m.mainAxis;pS&&(p=S)}if(c){var b,x;const k=h==="y"?"width":"height",C=sd.has(jt(o)),S=i.reference[d]-i.floating[k]+(C&&((b=s.offset)==null?void 0:b[d])||0)+(C?0:m.crossAxis),I=i.reference[d]+i.reference[k]+(C?0:((x=s.offset)==null?void 0:x[d])||0)-(C?m.crossAxis:0);fI&&(f=I)}return{[h]:p,[d]:f}}}},r1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=$t(e,t),u=await uo(t,c),d=jt(o),h=vr(o),p=Pt(o)==="y",{width:f,height:g}=i.floating;let m,b;d==="top"||d==="bottom"?(m=d,b=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(b=d,m=h==="end"?"top":"bottom");const x=g-u.top-u.bottom,k=f-u.left-u.right,C=tn(g-u[m],x),S=tn(f-u[b],k),I=!t.middlewareData.shift;let _=C,P=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=k),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=x),I&&!h){const N=rt(u.left,0),j=rt(u.right,0),R=rt(u.top,0),L=rt(u.bottom,0);p?P=f-2*(N!==0||j!==0?N+j:rt(u.left,u.right)):_=g-2*(R!==0||L!==0?R+L:rt(u.top,u.bottom))}await l({...t,availableWidth:P,availableHeight:_});const T=await s.getDimensions(a.floating);return f!==T.width||g!==T.height?{reset:{rects:!0}}:{}}}};function ji(){return typeof window<"u"}function br(e){return ad(e)?(e.nodeName||"").toLowerCase():"#document"}function ot(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Rt(e){var t;return(t=(ad(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ad(e){return ji()?e instanceof Node||e instanceof ot(e).Node:!1}function mt(e){return ji()?e instanceof Element||e instanceof ot(e).Element:!1}function Tt(e){return ji()?e instanceof HTMLElement||e instanceof ot(e).HTMLElement:!1}function ld(e){return!ji()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ot(e).ShadowRoot}const o1=new Set(["inline","contents"]);function ho(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=vt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!o1.has(o)}const i1=new Set(["table","td","th"]);function s1(e){return i1.has(br(e))}const a1=[":popover-open",":modal"];function Bi(e){return a1.some(t=>{try{return e.matches(t)}catch{return!1}})}const l1=["transform","translate","scale","rotate","perspective"],c1=["transform","translate","scale","rotate","perspective","filter"],u1=["paint","layout","strict","content"];function Xa(e){const t=Ya(),n=mt(e)?vt(e):e;return l1.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||c1.some(r=>(n.willChange||"").includes(r))||u1.some(r=>(n.contain||"").includes(r))}function d1(e){let t=nn(e);for(;Tt(t)&&!yr(t);){if(Xa(t))return t;if(Bi(t))return null;t=nn(t)}return null}function Ya(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const h1=new Set(["html","body","#document"]);function yr(e){return h1.has(br(e))}function vt(e){return ot(e).getComputedStyle(e)}function Wi(e){return mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nn(e){if(br(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ld(e)&&e.host||Rt(e);return ld(t)?t.host:t}function cd(e){const t=nn(e);return yr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Tt(t)&&ho(t)?t:cd(t)}function fo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=cd(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=ot(o);if(i){const a=Qa(s);return t.concat(s,s.visualViewport||[],ho(o)?o:[],a&&n?fo(a):[])}return t.concat(o,fo(o,[],n))}function Qa(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ud(e){const t=vt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Tt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Di(n)!==i||Di(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Ja(e){return mt(e)?e:e.contextElement}function xr(e){const t=Ja(e);if(!Tt(t))return It(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ud(t);let s=(i?Di(n.width):n.width)/r,a=(i?Di(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const f1=It(0);function dd(e){const t=ot(e);return!Ya()||!t.visualViewport?f1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function g1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ot(e)?!1:t}function Tn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Ja(e);let s=It(1);t&&(r?mt(r)&&(s=xr(r)):s=xr(e));const a=g1(i,n,r)?dd(i):It(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const h=ot(i),p=r&&mt(r)?ot(r):r;let f=h,g=Qa(f);for(;g&&r&&p!==f;){const m=xr(g),b=g.getBoundingClientRect(),x=vt(g),k=b.left+(g.clientLeft+parseFloat(x.paddingLeft))*m.x,C=b.top+(g.clientTop+parseFloat(x.paddingTop))*m.y;l*=m.x,c*=m.y,u*=m.x,d*=m.y,l+=k,c+=C,f=ot(g),g=Qa(f)}}return $i({width:u,height:d,x:l,y:c})}function Hi(e,t){const n=Wi(e).scrollLeft;return t?t.left+n:Tn(Rt(e)).left+n}function hd(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Hi(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function p1(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Rt(r),a=t?Bi(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=It(1);const u=It(0),d=Tt(r);if((d||!d&&!i)&&((br(r)!=="body"||ho(s))&&(l=Wi(r)),Tt(r))){const p=Tn(r);c=xr(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const h=s&&!d&&!i?hd(s,l):It(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function m1(e){return Array.from(e.getClientRects())}function v1(e){const t=Rt(e),n=Wi(e),r=e.ownerDocument.body,o=rt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=rt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Hi(e);const a=-n.scrollTop;return vt(r).direction==="rtl"&&(s+=rt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const fd=25;function b1(e,t){const n=ot(e),r=Rt(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=Ya();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=Hi(r);if(c<=0){const u=r.ownerDocument,d=u.body,h=getComputedStyle(d),p=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,f=Math.abs(r.clientWidth-d.clientWidth-p);f<=fd&&(i-=f)}else c<=fd&&(i+=c);return{width:i,height:s,x:a,y:l}}const y1=new Set(["absolute","fixed"]);function x1(e,t){const n=Tn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Tt(e)?xr(e):It(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function gd(e,t,n){let r;if(t==="viewport")r=b1(e,n);else if(t==="document")r=v1(Rt(e));else if(mt(t))r=x1(t,n);else{const o=dd(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return $i(r)}function pd(e,t){const n=nn(e);return n===t||!mt(n)||yr(n)?!1:vt(n).position==="fixed"||pd(n,t)}function C1(e,t){const n=t.get(e);if(n)return n;let r=fo(e,[],!1).filter(a=>mt(a)&&br(a)!=="body"),o=null;const i=vt(e).position==="fixed";let s=i?nn(e):e;for(;mt(s)&&!yr(s);){const a=vt(s),l=Xa(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&y1.has(o.position)||ho(s)&&!l&&pd(e,s))?r=r.filter(u=>u!==s):o=a,s=nn(s)}return t.set(e,r),r}function k1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Bi(t)?[]:C1(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,u)=>{const d=gd(t,u,o);return c.top=rt(d.top,c.top),c.right=tn(d.right,c.right),c.bottom=tn(d.bottom,c.bottom),c.left=rt(d.left,c.left),c},gd(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function S1(e){const{width:t,height:n}=ud(e);return{width:t,height:n}}function w1(e,t,n){const r=Tt(t),o=Rt(t),i=n==="fixed",s=Tn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=It(0);function c(){l.x=Hi(o)}if(r||!r&&!i)if((br(t)!=="body"||ho(o))&&(a=Wi(t)),r){const p=Tn(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=o&&!r&&!i?hd(o,a):It(0),d=s.left+a.scrollLeft-l.x-u.x,h=s.top+a.scrollTop-l.y-u.y;return{x:d,y:h,width:s.width,height:s.height}}function Za(e){return vt(e).position==="static"}function md(e,t){if(!Tt(e)||vt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Rt(e)===n&&(n=n.ownerDocument.body),n}function vd(e,t){const n=ot(e);if(Bi(e))return n;if(!Tt(e)){let o=nn(e);for(;o&&!yr(o);){if(mt(o)&&!Za(o))return o;o=nn(o)}return n}let r=md(e,t);for(;r&&s1(r)&&Za(r);)r=md(r,t);return r&&yr(r)&&Za(r)&&!Xa(r)?n:r||d1(e)||n}const E1=async function(e){const t=this.getOffsetParent||vd,n=this.getDimensions,r=await n(e.floating);return{reference:w1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function O1(e){return vt(e).direction==="rtl"}const I1={convertOffsetParentRelativeRectToViewportRelativeRect:p1,getDocumentElement:Rt,getClippingRect:k1,getOffsetParent:vd,getElementRects:E1,getClientRects:m1,getDimensions:S1,getScale:xr,isElement:mt,isRTL:O1};function bd(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function P1(e,t){let n=null,r;const o=Rt(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:p}=c;if(a||t(),!h||!p)return;const f=zi(d),g=zi(o.clientWidth-(u+h)),m=zi(o.clientHeight-(d+p)),b=zi(u),k={rootMargin:-f+"px "+-g+"px "+-m+"px "+-b+"px",threshold:rt(0,tn(1,l))||1};let C=!0;function S(I){const _=I[0].intersectionRatio;if(_!==l){if(!C)return s();_?s(!1,_):r=setTimeout(()=>{s(!1,1e-7)},1e3)}_===1&&!bd(c,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(S,{...k,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,k)}n.observe(e)}return s(!0),i}function R1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Ja(e),u=o||i?[...c?fo(c):[],...fo(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const d=c&&a?P1(c,n):null;let h=-1,p=null;s&&(p=new ResizeObserver(b=>{let[x]=b;x&&x.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var k;(k=p)==null||k.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let f,g=l?Tn(e):null;l&&m();function m(){const b=Tn(e);g&&!bd(g,b)&&n(),g=b,f=requestAnimationFrame(m)}return n(),()=>{var b;u.forEach(x=>{o&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),d==null||d(),(b=p)==null||b.disconnect(),p=null,l&&cancelAnimationFrame(f)}}const T1=e1,N1=t1,_1=Qx,A1=r1,V1=Jx,L1=Yx,F1=n1,D1=(e,t,n)=>{const r=new Map,o={platform:I1,...n},i={...o.platform,_c:r};return Xx(e,t,{...o,platform:i})};function yd(e=0,t=0,n=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,n,r);const o={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...o,toJSON:()=>o}}function z1(e){if(!e)return yd();const{x:t,y:n,width:r,height:o}=e;return yd(t,n,r,o)}function M1(e,t){return{contextElement:$e(e)?e:void 0,getBoundingClientRect:()=>{const n=e,r=t==null?void 0:t(n);return r||!n?z1(r):n.getBoundingClientRect()}}}var xd=e=>({variable:e,reference:`var(${e})`}),Cd={transformOrigin:xd("--transform-origin"),arrowOffset:xd("--arrow-offset")},$1=e=>e==="top"||e==="bottom"?"y":"x";function j1(e,t){return{name:"transformOrigin",fn(n){var T,N,j,R;const{elements:r,middlewareData:o,placement:i,rects:s,y:a}=n,l=i.split("-")[0],c=$1(l),u=((T=o.arrow)==null?void 0:T.x)||0,d=((N=o.arrow)==null?void 0:N.y)||0,h=(t==null?void 0:t.clientWidth)||0,p=(t==null?void 0:t.clientHeight)||0,f=u+h/2,g=d+p/2,m=Math.abs(((j=o.shift)==null?void 0:j.y)||0),b=s.reference.height/2,x=p/2,k=((R=e.offset)==null?void 0:R.mainAxis)??e.gutter,C=typeof k=="number"?k+x:k??x,S=m>C,I={top:`${f}px calc(100% + ${C}px)`,bottom:`${f}px ${-C}px`,left:`calc(100% + ${C}px) ${g}px`,right:`${-C}px ${g}px`}[l],_=`${f}px ${s.reference.y+b-a}px`,P=!!e.overlap&&c==="y"&&S;return r.floating.style.setProperty(Cd.transformOrigin.variable,P?_:I),{data:{transformOrigin:P?_:I}}}}}var B1={name:"rects",fn({rects:e}){return{data:e}}},W1=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};const{x:r,y:o}=n.arrow,i=t.split("-")[0];return Object.assign(e.style,{left:r!=null?`${r}px`:"",top:o!=null?`${o}px`:"",[i]:`calc(100% + ${Cd.arrowOffset.reference})`}),{}}}};function H1(e){const[t,n]=e.split("-");return{side:t,align:n,hasAlign:n!=null}}function U1(e){return e.split("-")[0]}var G1={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function kd(e,t){const n=e.devicePixelRatio||1;return Math.round(t*n)/n}function el(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function q1(e,t,n){const r=e||t.createElement("div");return L1({element:r,padding:n.arrowPadding})}function K1(e,t){if(!_b(t.offset??t.gutter))return T1(({placement:n})=>{var c,u;const r=((e==null?void 0:e.clientHeight)||0)/2,o=((c=t.offset)==null?void 0:c.mainAxis)??t.gutter,i=typeof o=="number"?o+r:o??r,{hasAlign:s}=H1(n),a=s?void 0:t.shift,l=((u=t.offset)==null?void 0:u.crossAxis)??a;return yi({crossAxis:l,mainAxis:i,alignmentAxis:t.shift})})}function X1(e){if(!e.flip)return;const t=el(e.boundary);return _1({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function Y1(e){if(!e.slide&&!e.overlap)return;const t=el(e.boundary);return N1({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:F1()})}function Q1(e){return A1({padding:e.overflowPadding,apply({elements:t,rects:n,availableHeight:r,availableWidth:o}){const i=t.floating,s=Math.round(n.reference.width),a=Math.round(n.reference.height);o=Math.floor(o),r=Math.floor(r),i.style.setProperty("--reference-width",`${s}px`),i.style.setProperty("--reference-height",`${a}px`),i.style.setProperty("--available-width",`${o}px`),i.style.setProperty("--available-height",`${r}px`)}})}function J1(e){if(e.hideWhenDetached)return V1({strategy:"referenceHidden",boundary:el(e.boundary)??"clippingAncestors"})}function Z1(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function eC(e,t,n={}){const r=M1(e,n.getAnchorRect);if(!t||!r)return;const o=Object.assign({},G1,n),i=t.querySelector("[data-part=arrow]"),s=[K1(i,o),X1(o),Y1(o),q1(i,t.ownerDocument,o),W1(i),j1({gutter:o.gutter,offset:o.offset,overlap:o.overlap},i),Q1(o),J1(o),B1],{placement:a,strategy:l,onComplete:c,onPositioned:u}=o,d=async()=>{var C;if(!r||!t)return;const g=await D1(r,t,{placement:a,middleware:s,strategy:l});c==null||c(g),u==null||u({placed:!0});const m=Pe(t),b=kd(m,g.x),x=kd(m,g.y);t.style.setProperty("--x",`${b}px`),t.style.setProperty("--y",`${x}px`),o.hideWhenDetached&&(((C=g.middlewareData.hide)==null?void 0:C.referenceHidden)?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const k=t.firstElementChild;if(k){const S=Ci(k);t.style.setProperty("--z-index",S.zIndex)}},h=async()=>{n.updatePosition?(await n.updatePosition({updatePosition:d,floatingElement:t}),u==null||u({placed:!0})):await d()},p=Z1(o.listeners),f=o.listeners?R1(r,t,h,p):$b;return h(),()=>{f==null||f(),u==null||u({placed:!1})}}function bt(e,t,n={}){const{defer:r,...o}=n,i=r?ee:a=>a(),s=[];return s.push(i(()=>{const a=typeof e=="function"?e():e,l=typeof t=="function"?t():t;s.push(eC(a,l,o))})),()=>{s.forEach(a=>a==null?void 0:a())}}function tC(e){const t={each(n){var r;for(let o=0;o<((r=e.frames)==null?void 0:r.length);o+=1){const i=e.frames[o];i&&n(i)}},addEventListener(n,r,o){return t.each(i=>{try{i.document.addEventListener(n,r,o)}catch{}}),()=>{try{t.removeEventListener(n,r,o)}catch{}}},removeEventListener(n,r,o){t.each(i=>{try{i.document.removeEventListener(n,r,o)}catch{}})}};return t}function nC(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(n,r,o)=>{try{t==null||t.addEventListener(n,r,o)}catch{}return()=>{try{t==null||t.removeEventListener(n,r,o)}catch{}}},removeEventListener:(n,r,o)=>{try{t==null||t.removeEventListener(n,r,o)}catch{}}}}var Sd="pointerdown.outside",wd="focus.outside";function rC(e){for(const t of e)if($e(t)&&Jt(t))return!0;return!1}var Ed=e=>"clientY"in e;function oC(e,t){if(!Ed(t)||!e)return!1;const n=e.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}function iC(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function Od(e,t){if(!t||!Ed(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,o=t.scrollWidth>t.clientWidth,i=o&&e.clientY>t.offsetTop+t.clientHeight,s={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(o?16:0)},a={x:e.clientX,y:e.clientY};return iC(s,a)?r||i:!1}function sC(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:o,onInteractOutside:i,defer:s}=t;if(!e)return;const a=qe(e),l=Pe(e),c=tC(l),u=nC(l);function d(x,k){if(!$e(k)||!k.isConnected||Pn(e,k)||oC(e,x))return!1;const C=a.querySelector(`[aria-controls="${e.id}"]`);if(C){const I=Ii(C);if(Od(x,I))return!1}const S=Ii(e);return Od(x,S)?!1:!(n!=null&&n(k))}const h=new Set,p=fr(e==null?void 0:e.getRootNode());function f(x){function k(C){var P;const S=s&&!Tu()?ee:T=>T(),I=C??x,_=((P=I==null?void 0:I.composedPath)==null?void 0:P.call(I))??[I==null?void 0:I.target];S(()=>{const T=p?_[0]:nt(x);if(!(!e||!d(x,T))){if(o||i){const N=vi(o,i);e.addEventListener(Sd,N,{once:!0})}Id(e,Sd,{bubbles:!1,cancelable:!0,detail:{originalEvent:I,contextmenu:Py(I),focusable:rC(_),target:T}})}})}x.pointerType==="touch"?(h.forEach(C=>C()),h.add(fe(a,"click",k,{once:!0})),h.add(u.addEventListener("click",k,{once:!0})),h.add(c.addEventListener("click",k,{once:!0}))):k()}const g=new Set,m=setTimeout(()=>{g.add(fe(a,"pointerdown",f,!0)),g.add(u.addEventListener("pointerdown",f,!0)),g.add(c.addEventListener("pointerdown",f,!0))},0);function b(x){(s?ee:C=>C())(()=>{const C=nt(x);if(!(!e||!d(x,C))){if(r||i){const S=vi(r,i);e.addEventListener(wd,S,{once:!0})}Id(e,wd,{bubbles:!1,cancelable:!0,detail:{originalEvent:x,contextmenu:!1,focusable:Jt(C),target:C}})}})}return Tu()||(g.add(fe(a,"focusin",b,!0)),g.add(u.addEventListener("focusin",b,!0)),g.add(c.addEventListener("focusin",b,!0))),()=>{clearTimeout(m),h.forEach(x=>x()),g.forEach(x=>x())}}function aC(e,t){const{defer:n}=t,r=n?ee:i=>i(),o=[];return o.push(r(()=>{const i=typeof e=="function"?e():e;o.push(sC(i,t))})),()=>{o.forEach(i=>i==null?void 0:i())}}function Id(e,t,n){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,n);return e.dispatchEvent(o)}function lC(e,t){const n=r=>{r.key==="Escape"&&(r.isComposing||t==null||t(r))};return fe(qe(e),"keydown",n,{capture:!0})}var Pd="layer:request-dismiss",lt={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){var r;const t=this.indexOf(e),n=this.topMostPointerBlockingLayer()?this.indexOf((r=this.topMostPointerBlockingLayer())==null?void 0:r.node):-1;return tPn(n.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Pn(t,e))},add(e){this.layers.push(e),this.syncLayerIndex()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(tlt.dismiss(r.node,e)),this.layers.splice(t,1),this.syncLayerIndex())},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayerIndex(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){const n=this.indexOf(e);if(n===-1)return;const r=this.layers[n];uC(e,Pd,o=>{var i;(i=r.requestDismiss)==null||i.call(r,o),o.defaultPrevented||r==null||r.dismiss()}),cC(e,Pd,{originalLayer:e,targetLayer:t,originalIndex:n,targetIndex:t?this.indexOf(t):-1}),this.syncLayerIndex()},clear(){this.remove(this.layers[0].node)}};function cC(e,t,n){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:n});return e.dispatchEvent(o)}function uC(e,t,n){e.addEventListener(t,n,{once:!0})}var Rd;function Td(){lt.layers.forEach(({node:e})=>{e.style.pointerEvents=lt.isBelowPointerBlockingLayer(e)?"none":"auto"})}function dC(e){e.style.pointerEvents=""}function hC(e,t){const n=qe(e),r=[];return lt.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(Rd=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t==null||t.forEach(o=>{const[i,s]=lx(()=>{const a=o();return $e(a)?a:null},{timeout:1e3});i.then(a=>r.push(Ni(a,{pointerEvents:"auto"}))),r.push(s)}),()=>{lt.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=Rd,n.body.removeAttribute("data-inert"),n.body.style.length===0&&n.body.removeAttribute("style")}),r.forEach(o=>o()))}}function fC(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e){ao("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,onRequestDismiss:o,pointerBlocking:i,exclude:s,debug:a}=t,l={dismiss:r,node:e,pointerBlocking:i,requestDismiss:o};lt.add(l),Td();function c(f){var m,b;const g=nt(f.detail.originalEvent);lt.isBelowPointerBlockingLayer(e)||lt.isInBranch(g)||((m=t.onPointerDownOutside)==null||m.call(t,f),(b=t.onInteractOutside)==null||b.call(t,f),!f.defaultPrevented&&(a&&console.log("onPointerDownOutside:",f.detail.originalEvent),r==null||r()))}function u(f){var m,b;const g=nt(f.detail.originalEvent);lt.isInBranch(g)||((m=t.onFocusOutside)==null||m.call(t,f),(b=t.onInteractOutside)==null||b.call(t,f),!f.defaultPrevented&&(a&&console.log("onFocusOutside:",f.detail.originalEvent),r==null||r()))}function d(f){var g;lt.isTopMost(e)&&((g=t.onEscapeKeyDown)==null||g.call(t,f),!f.defaultPrevented&&r&&(f.preventDefault(),r()))}function h(f){var x;if(!e)return!1;const g=typeof s=="function"?s():s,m=Array.isArray(g)?g:[g],b=(x=t.persistentElements)==null?void 0:x.map(k=>k()).filter($e);return b&&m.push(...b),m.some(k=>Pn(k,f))||lt.isInNestedLayer(e,f)}const p=[i?hC(e,t.persistentElements):void 0,lC(e,d),aC(e,{exclude:h,onFocusOutside:u,onPointerDownOutside:c,defer:t.defer})];return()=>{lt.remove(e),Td(),dC(e),p.forEach(f=>f==null?void 0:f())}}function Cr(e,t){const{defer:n}=t,r=n?ee:i=>i(),o=[];return o.push(r(()=>{const i=In(e)?e():e;o.push(fC(i,t))})),()=>{o.forEach(i=>i==null?void 0:i())}}var Nd=G("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]);Nd.build();var gC=e=>{var t;return((t=e.ids)==null?void 0:t.hiddenInput)??`color-picker:${e.id}:hidden-input`},pC=e=>{var t;return((t=e.ids)==null?void 0:t.control)??`color-picker:${e.id}:control`},mC=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`color-picker:${e.id}:trigger`},vC=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`color-picker:${e.id}:content`},bC=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`color-picker:${e.id}:positioner`},yC=e=>{var t;return((t=e.ids)==null?void 0:t.formatSelect)??`color-picker:${e.id}:format-select`},xC=e=>{var t;return((t=e.ids)==null?void 0:t.area)??`color-picker:${e.id}:area`},CC=e=>{var t;return((t=e.ids)==null?void 0:t.areaThumb)??`color-picker:${e.id}:area-thumb`},kC=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.channelSliderTrack)==null?void 0:r.call(n,t))??`color-picker:${e.id}:slider-track:${t}`},SC=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.channelSliderThumb)==null?void 0:r.call(n,t))??`color-picker:${e.id}:slider-thumb:${t}`},Ui=e=>e.getById(vC(e)),wC=e=>e.getById(CC(e)),EC=(e,t)=>e.getById(SC(e,t)),OC=e=>e.getById(yC(e)),_d=e=>e.getById(gC(e)),IC=e=>e.getById(xC(e)),PC=(e,t,n)=>{const r=IC(e);if(!r)return;const{getPercentValue:o}=Fu(t,r);return{x:o({dir:n,orientation:"horizontal"}),y:o({orientation:"vertical"})}},RC=e=>e.getById(pC(e)),tl=e=>e.getById(mC(e)),TC=e=>e.getById(bC(e)),NC=(e,t)=>e.getById(kC(e,t)),_C=(e,t,n,r)=>{const o=NC(e,n);if(!o)return;const{getPercentValue:i}=Fu(t,o);return{x:i({dir:r,orientation:"horizontal"}),y:i({orientation:"vertical"})}},AC=e=>[...Ti(Ui(e),"input[data-channel]"),...Ti(RC(e),"input[data-channel]")];function VC(e,t){if(t==null)return"";if(t==="hex")return e.toString("hex");if(t==="css")return e.toString("css");if(t in e)return e.getChannelValue(t).toString();const n=e.getFormat()==="hsla";switch(t){case"hue":return n?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return n?e.toFormat("hsla").getChannelValue("saturation").toString():e.toFormat("hsba").getChannelValue("saturation").toString();case"lightness":return e.toFormat("hsla").getChannelValue("lightness").toString();case"brightness":return e.toFormat("hsba").getChannelValue("brightness").toString();case"red":case"green":case"blue":return e.toFormat("rgba").getChannelValue(t).toString();default:return e.getChannelValue(t).toString()}}var Ad=e=>Fi(e),LC=/^[0-9a-fA-F]{3,8}$/;function FC(e){return LC.test(e)}function DC(e){return e.startsWith("#")?e:FC(e)?`#${e}`:e}var{and:zC}=Zt();zC("isOpenControlled","closeOnSelect");function Vd(e,t,n){const r=AC(e);ee(()=>{r.forEach(o=>{const i=o.dataset.channel;Ei(o,VC(n||t,i))})})}function MC(e,t){const n=OC(e);n&&ee(()=>Ei(n,t))}U()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","inline","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]),U()(["xChannel","yChannel"]),U()(["channel","orientation"]),U()(["value","disabled"]),U()(["value","respectAlpha"]),U()(["size"]);const[Ld,$C]=hr({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:""}),Fd=e=>ju()(e,["lazyMount","unmountOnExit"]);var Dd=G("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");Dd.build();var zd=e=>{var t;return((t=e.ids)==null?void 0:t.root)??`accordion:${e.id}`},Md=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.itemTrigger)==null?void 0:r.call(n,t))??`accordion:${e.id}:trigger:${t}`},jC=e=>e.getById(zd(e)),Gi=e=>{const n=`[aria-controls][data-ownedby='${CSS.escape(zd(e))}']:not([disabled])`;return Ti(jC(e),n)},BC=e=>io(Gi(e)),WC=e=>ya(Gi(e)),HC=(e,t)=>Jy(Gi(e),Md(e,t)),UC=(e,t)=>Zy(Gi(e),Md(e,t)),{and:GC,not:qC}=Zt();GC("isExpanded","canToggle"),qC("isExpanded"),U()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]),U()(["value","disabled"]);var go=(e,t)=>({x:e,y:t});function KC(e){const{x:t,y:n,width:r,height:o}=e,i=t+r/2,s=n+o/2;return{x:t,y:n,width:r,height:o,minX:t,minY:n,maxX:t+r,maxY:n+o,midX:i,midY:s,center:go(i,s)}}function XC(e){const t=go(e.minX,e.minY),n=go(e.maxX,e.minY),r=go(e.maxX,e.maxY),o=go(e.minX,e.maxY);return{top:t,right:n,bottom:r,left:o}}function YC(e,t){const n=KC(e),{top:r,right:o,left:i,bottom:s}=XC(n),[a]=t.split("-");return{top:[i,r,o,s],right:[r,o,s,i],bottom:[r,i,s,o],left:[o,r,i,s]}[a]}function QC(e,t){const{x:n,y:r}=t;let o=!1;for(let i=0,s=e.length-1;ir!=u>r&&n<(c-a)*(r-l)/(u-l)+a&&(o=!o)}return o}var $d=G("avatar").parts("root","image","fallback");$d.build(),U()(["dir","id","ids","onStatusChange","getRootNode"]);function JC(e){return!(e.metaKey||!wi()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var ZC=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ek(e,t,n){const r=n?nt(n):null,o=Pe(r);return e=e||r instanceof o.HTMLInputElement&&!ZC.has(r==null?void 0:r.type)||r instanceof o.HTMLTextAreaElement||r instanceof o.HTMLElement&&r.isContentEditable,!(e&&t==="keyboard"&&n instanceof o.KeyboardEvent&&!Reflect.has(tk,n.key))}var Nn=null,nl=new Set,po=new Map,_n=!1,rl=!1,tk={Tab:!0,Escape:!0};function qi(e,t){for(let n of nl)n(e,t)}function Ki(e){_n=!0,JC(e)&&(Nn="keyboard",qi("keyboard",e))}function ct(e){Nn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(_n=!0,qi("pointer",e))}function jd(e){Iy(e)&&(_n=!0,Nn="virtual")}function Bd(e){const t=nt(e);t===Pe(t)||t===qe(t)||(!_n&&!rl&&(Nn="virtual",qi("virtual",e)),_n=!1,rl=!1)}function Wd(){_n=!1,rl=!0}function nk(e){if(typeof window>"u"||po.get(Pe(e)))return;const t=Pe(e),n=qe(e);let r=t.HTMLElement.prototype.focus;function o(){Nn="virtual",qi("virtual",null),_n=!0,r.apply(this,arguments)}Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:o}),n.addEventListener("keydown",Ki,!0),n.addEventListener("keyup",Ki,!0),n.addEventListener("click",jd,!0),t.addEventListener("focus",Bd,!0),t.addEventListener("blur",Wd,!1),typeof t.PointerEvent<"u"?(n.addEventListener("pointerdown",ct,!0),n.addEventListener("pointermove",ct,!0),n.addEventListener("pointerup",ct,!0)):(n.addEventListener("mousedown",ct,!0),n.addEventListener("mousemove",ct,!0),n.addEventListener("mouseup",ct,!0)),t.addEventListener("beforeunload",()=>{rk(e)},{once:!0}),po.set(t,{focus:r})}var rk=(e,t)=>{const n=Pe(e),r=qe(e);po.has(n)&&(n.HTMLElement.prototype.focus=po.get(n).focus,r.removeEventListener("keydown",Ki,!0),r.removeEventListener("keyup",Ki,!0),r.removeEventListener("click",jd,!0),n.removeEventListener("focus",Bd,!0),n.removeEventListener("blur",Wd,!1),typeof n.PointerEvent<"u"?(r.removeEventListener("pointerdown",ct,!0),r.removeEventListener("pointermove",ct,!0),r.removeEventListener("pointerup",ct,!0)):(r.removeEventListener("mousedown",ct,!0),r.removeEventListener("mousemove",ct,!0),r.removeEventListener("mouseup",ct,!0)),po.delete(n))};function Hd(){return Nn==="keyboard"}function ok(e={}){const{isTextInput:t,autoFocus:n,onChange:r,root:o}=e;nk(o),r==null||r({isFocusVisible:n||Hd(),modality:Nn});const i=(s,a)=>{ek(!!t,s,a)&&(r==null||r({isFocusVisible:Hd(),modality:s}))};return nl.add(i),()=>{nl.delete(i)}}var Ud=G("checkbox").parts("root","label","control","indicator");Ud.build(),U()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const ik=Ud.extendWith("group"),[HN,sk]=hr({name:"FieldContext",hookName:"useFieldContext",providerName:"",strict:!1});var Gd=G("clipboard").parts("root","control","trigger","indicator","input","label");Gd.build(),U()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]),U()(["copied"]);const ak=Nd.extendWith("view");var lk=Object.defineProperty,ck=(e,t,n)=>t in e?lk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A=(e,t,n)=>ck(e,typeof t!="symbol"?t+"":t,n),Xi={itemToValue(e){return typeof e=="string"?e:On(e)&&Yt(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:On(e)&&Yt(e,"label")?e.label:Xi.itemToValue(e)},isItemDisabled(e){return On(e)&&Yt(e,"disabled")?!!e.disabled:!1}},Yi=class X0{constructor(t){this.options=t,A(this,"items"),A(this,"indexMap",null),A(this,"copy",n=>new X0({...this.options,items:n??[...this.items]})),A(this,"isEqual",n=>gt(this.items,n.items)),A(this,"setItems",n=>this.copy(n)),A(this,"getValues",(n=this.items)=>{const r=[];for(const o of n){const i=this.getItemValue(o);i!=null&&r.push(i)}return r}),A(this,"find",n=>{if(n==null)return null;const r=this.indexOf(n);return r!==-1?this.at(r):null}),A(this,"findMany",n=>{const r=[];for(const o of n){const i=this.find(o);i!=null&&r.push(i)}return r}),A(this,"at",n=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[n]??null;let r=0;const o=this.group();for(const[,i]of o)for(const s of i){if(r===n)return s;r++}return null}),A(this,"sortFn",(n,r)=>{const o=this.indexOf(n),i=this.indexOf(r);return(o??0)-(i??0)}),A(this,"sort",n=>[...n].sort(this.sortFn.bind(this))),A(this,"getItemValue",n=>{var r,o;return n==null?null:((o=(r=this.options).itemToValue)==null?void 0:o.call(r,n))??Xi.itemToValue(n)}),A(this,"getItemDisabled",n=>{var r,o;return n==null?!1:((o=(r=this.options).isItemDisabled)==null?void 0:o.call(r,n))??Xi.isItemDisabled(n)}),A(this,"stringifyItem",n=>{var r,o;return n==null?null:((o=(r=this.options).itemToString)==null?void 0:o.call(r,n))??Xi.itemToString(n)}),A(this,"stringify",n=>n==null?null:this.stringifyItem(this.find(n))),A(this,"stringifyItems",(n,r=", ")=>{const o=[];for(const i of n){const s=this.stringifyItem(i);s!=null&&o.push(s)}return o.join(r)}),A(this,"stringifyMany",(n,r)=>this.stringifyItems(this.findMany(n),r)),A(this,"has",n=>this.indexOf(n)!==-1),A(this,"hasItem",n=>n==null?!1:this.has(this.getItemValue(n))),A(this,"group",()=>{const{groupBy:n,groupSort:r}=this.options;if(!n)return[["",[...this.items]]];const o=new Map;this.items.forEach((s,a)=>{const l=n(s,a);o.has(l)||o.set(l,[]),o.get(l).push(s)});let i=Array.from(o.entries());return r&&i.sort(([s],[a])=>{if(typeof r=="function")return r(s,a);if(Array.isArray(r)){const l=r.indexOf(s),c=r.indexOf(a);return l===-1?1:c===-1?-1:l-c}return r==="asc"?s.localeCompare(a):r==="desc"?a.localeCompare(s):0}),i}),A(this,"getNextValue",(n,r=1,o=!1)=>{let i=this.indexOf(n);if(i===-1)return null;for(i=o?Math.min(i+r,this.size-1):i+r;i<=this.size&&this.getItemDisabled(this.at(i));)i++;return this.getItemValue(this.at(i))}),A(this,"getPreviousValue",(n,r=1,o=!1)=>{let i=this.indexOf(n);if(i===-1)return null;for(i=o?Math.max(i-r,0):i-r;i>=0&&this.getItemDisabled(this.at(i));)i--;return this.getItemValue(this.at(i))}),A(this,"indexOf",n=>{if(n==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(r=>this.getItemValue(r)===n);if(!this.indexMap){this.indexMap=new Map;let r=0;const o=this.group();for(const[,i]of o)for(const s of i){const a=this.getItemValue(s);a!=null&&this.indexMap.set(a,r),r++}}return this.indexMap.get(n)??-1}),A(this,"getByText",(n,r)=>{const o=r!=null?this.indexOf(r):-1,i=n.length===1;for(let s=0;s{const{state:o,currentValue:i,timeout:s=350}=r,a=o.keysSoFar+n,c=a.length>1&&Array.from(a).every(f=>f===a[0])?a[0]:a,u=this.getByText(c,i),d=this.getItemValue(u);function h(){clearTimeout(o.timer),o.timer=-1}function p(f){o.keysSoFar=f,h(),f!==""&&(o.timer=+setTimeout(()=>{p(""),h()},s))}return p(a),d}),A(this,"update",(n,r)=>{let o=this.indexOf(n);return o===-1?this:this.copy([...this.items.slice(0,o),r,...this.items.slice(o+1)])}),A(this,"upsert",(n,r,o="append")=>{let i=this.indexOf(n);return i===-1?(o==="append"?this.append:this.prepend)(r):this.copy([...this.items.slice(0,i),r,...this.items.slice(i+1)])}),A(this,"insert",(n,...r)=>this.copy(mo(this.items,n,...r))),A(this,"insertBefore",(n,...r)=>{let o=this.indexOf(n);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(mo(this.items,o,...r))}),A(this,"insertAfter",(n,...r)=>{let o=this.indexOf(n);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(mo(this.items,o+1,...r))}),A(this,"prepend",(...n)=>this.copy(mo(this.items,0,...n))),A(this,"append",(...n)=>this.copy(mo(this.items,this.items.length,...n))),A(this,"filter",n=>{const r=this.items.filter((o,i)=>n(this.stringifyItem(o),i,o));return this.copy(r)}),A(this,"remove",(...n)=>{const r=n.map(o=>typeof o=="string"?o:this.getItemValue(o));return this.copy(this.items.filter(o=>{const i=this.getItemValue(o);return i==null?!1:!r.includes(i)}))}),A(this,"move",(n,r)=>{const o=this.indexOf(n);return o===-1?this:this.copy(Qi(this.items,[o],r))}),A(this,"moveBefore",(n,...r)=>{let o=this.items.findIndex(s=>this.getItemValue(s)===n);if(o===-1)return this;let i=r.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(Qi(this.items,i,o))}),A(this,"moveAfter",(n,...r)=>{let o=this.items.findIndex(s=>this.getItemValue(s)===n);if(o===-1)return this;let i=r.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(Qi(this.items,i,o+1))}),A(this,"reorder",(n,r)=>this.copy(Qi(this.items,[n],r))),A(this,"compareValue",(n,r)=>{const o=this.indexOf(n),i=this.indexOf(r);return oi?1:0}),A(this,"range",(n,r)=>{let o=[],i=n;for(;i!=null;){if(this.find(i)&&o.push(i),i===r)return o;i=this.getNextValue(i)}return[]}),A(this,"getValueRange",(n,r)=>n&&r?this.compareValue(n,r)<=0?this.range(n,r):this.range(r,n):[]),A(this,"toString",()=>{let n="";for(const r of this.items){const o=this.getItemValue(r),i=this.stringifyItem(r),s=this.getItemDisabled(r),a=[o,i,s].filter(Boolean).join(":");n+=a+","}return n}),A(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let t=0;for(;this.getItemDisabled(this.at(t));)t++;return this.getItemValue(this.at(t))}get lastValue(){let t=this.size-1;for(;this.getItemDisabled(this.at(t));)t--;return this.getItemValue(this.at(t))}*[Symbol.iterator](){yield*this.items}},uk=(e,t)=>!!(e!=null&&e.toLowerCase().startsWith(t.toLowerCase()));function mo(e,t,...n){return[...e.slice(0,t),...n,...e.slice(t)]}function Qi(e,t,n){t=[...t].sort((o,i)=>o-i);const r=t.map(o=>e[o]);for(let o=t.length-1;o>=0;o--)e=[...e.slice(0,t[o]),...e.slice(t[o]+1)];return n=Math.max(0,n-t.filter(o=>ot[n])return 1}return e.length-t.length}function hk(e){return e.sort(Kd)}function fk(e,t){let n;return it(e,{...t,onEnter:(r,o)=>{if(t.predicate(r,o))return n=r,"stop"}}),n}function gk(e,t){const n=[];return it(e,{onEnter:(r,o)=>{t.predicate(r,o)&&n.push(r)},getChildren:t.getChildren}),n}function Xd(e,t){let n;return it(e,{onEnter:(r,o)=>{if(t.predicate(r,o))return n=[...o],"stop"},getChildren:t.getChildren}),n}function pk(e,t){let n=t.initialResult;return it(e,{...t,onEnter:(r,o)=>{n=t.nextResult(n,r,o)}}),n}function mk(e,t){return pk(e,{...t,initialResult:[],nextResult:(n,r,o)=>(n.push(...t.transform(r,o)),n)})}function vk(e,t){const{predicate:n,create:r,getChildren:o}=t,i=(s,a)=>{const l=o(s,a),c=[];l.forEach((p,f)=>{const g=[...a,f],m=i(p,g);m&&c.push(m)});const u=a.length===0,d=n(s,a),h=c.length>0;return u||d||h?r(s,c,a):null};return i(e,[])||r(e,[],[])}function bk(e,t){const n=[];let r=0;const o=new Map,i=new Map;return it(e,{getChildren:t.getChildren,onEnter:(s,a)=>{o.has(s)||o.set(s,r++);const l=t.getChildren(s,a);l.forEach(p=>{i.has(p)||i.set(p,s),o.has(p)||o.set(p,r++)});const c=l.length>0?l.map(p=>o.get(p)):void 0,u=i.get(s),d=u?o.get(u):void 0,h=o.get(s);n.push({...s,_children:c,_parent:d,_index:h})}}),n}function yk(e,t){return{type:"insert",index:e,nodes:t}}function xk(e){return{type:"remove",indexes:e}}function ol(){return{type:"replace"}}function Yd(e){return[e.slice(0,-1),e[e.length-1]]}function Qd(e,t,n=new Map){var s;const[r,o]=Yd(e);for(let a=r.length-1;a>=0;a--){const l=r.slice(0,a).join();switch((s=n.get(l))==null?void 0:s.type){case"remove":continue}n.set(l,ol())}const i=n.get(r.join());switch(i==null?void 0:i.type){case"remove":n.set(r.join(),{type:"removeThenInsert",removeIndexes:i.indexes,insertIndex:o,insertNodes:t});break;default:n.set(r.join(),yk(o,t))}return n}function Jd(e){const t=new Map,n=new Map;for(const r of e){const o=r.slice(0,-1).join(),i=n.get(o)??[];i.push(r[r.length-1]),n.set(o,i.sort((s,a)=>s-a))}for(const r of e)for(let o=r.length-2;o>=0;o--){const i=r.slice(0,o).join();t.has(i)||t.set(i,ol())}for(const[r,o]of n)t.set(r,xk(o));return t}function Ck(e,t){const n=new Map,[r,o]=Yd(e);for(let i=r.length-1;i>=0;i--){const s=r.slice(0,i).join();n.set(s,ol())}return n.set(r.join(),{type:"removeThenInsert",removeIndexes:[o],insertIndex:o,insertNodes:[t]}),n}function Ji(e,t,n){return kk(e,{...n,getChildren:(r,o)=>{const i=o.join(),s=t.get(i);switch(s==null?void 0:s.type){case"replace":case"remove":case"removeThenInsert":case"insert":return n.getChildren(r,o);default:return[]}},transform:(r,o,i)=>{const s=i.join(),a=t.get(s);switch(a==null?void 0:a.type){case"remove":return n.create(r,o.filter((u,d)=>!a.indexes.includes(d)),i);case"removeThenInsert":const l=o.filter((u,d)=>!a.removeIndexes.includes(d)),c=a.removeIndexes.reduce((u,d)=>d{const i=[0,...o],s=i.join(),a=t.transform(r,n[s]??[],o),l=i.slice(0,-1).join(),c=n[l]??[];c.push(a),n[l]=c}}),n[""][0]}function Sk(e,t){const{nodes:n,at:r}=t;if(r.length===0)throw new Error("Can't insert nodes at the root");const o=Qd(r,n);return Ji(e,o,t)}function wk(e,t){if(t.at.length===0)return t.node;const n=Ck(t.at,t.node);return Ji(e,n,t)}function Ek(e,t){if(t.indexPaths.length===0)return e;for(const r of t.indexPaths)if(r.length===0)throw new Error("Can't remove the root node");const n=Jd(t.indexPaths);return Ji(e,n,t)}function Ok(e,t){if(t.indexPaths.length===0)return e;for(const i of t.indexPaths)if(i.length===0)throw new Error("Can't move the root node");if(t.to.length===0)throw new Error("Can't move nodes to the root");const n=dk(t.indexPaths),r=n.map(i=>qd(e,i,t)),o=Qd(t.to,r,Jd(n));return Ji(e,o,t)}function it(e,t){const{onEnter:n,onLeave:r,getChildren:o}=t;let i=[],s=[{node:e}];const a=t.reuseIndexPath?()=>i:()=>i.slice();for(;s.length>0;){let l=s[s.length-1];if(l.state===void 0){const u=n==null?void 0:n(l.node,a());if(u==="stop")return;l.state=u==="skip"?-1:0}const c=l.children||o(l.node,a());if(l.children||(l.children=c),l.state!==-1){if(l.stategt(this.rootNode,n.rootNode)),A(this,"getNodeChildren",n=>{var r,o;return((o=(r=this.options).nodeToChildren)==null?void 0:o.call(r,n))??kr.nodeToChildren(n)??[]}),A(this,"resolveIndexPath",n=>typeof n=="string"?this.getIndexPath(n):n),A(this,"resolveNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(r):void 0}),A(this,"getNodeChildrenCount",n=>{var r,o;return((o=(r=this.options).nodeToChildrenCount)==null?void 0:o.call(r,n))??kr.nodeToChildrenCount(n)}),A(this,"getNodeValue",n=>{var r,o;return((o=(r=this.options).nodeToValue)==null?void 0:o.call(r,n))??kr.nodeToValue(n)}),A(this,"getNodeDisabled",n=>{var r,o;return((o=(r=this.options).isNodeDisabled)==null?void 0:o.call(r,n))??kr.isNodeDisabled(n)}),A(this,"stringify",n=>{const r=this.findNode(n);return r?this.stringifyNode(r):null}),A(this,"stringifyNode",n=>{var r,o;return((o=(r=this.options).nodeToString)==null?void 0:o.call(r,n))??kr.nodeToString(n)}),A(this,"getFirstNode",(n=this.rootNode)=>{let r;return it(n,{getChildren:this.getNodeChildren,onEnter:(o,i)=>{if(!r&&i.length>0&&!this.getNodeDisabled(o))return r=o,"stop"}}),r}),A(this,"getLastNode",(n=this.rootNode,r={})=>{let o;return it(n,{getChildren:this.getNodeChildren,onEnter:(i,s)=>{var a;if(!this.isSameNode(i,n)){if((a=r.skip)!=null&&a.call(r,{value:this.getNodeValue(i),node:i,indexPath:s}))return"skip";s.length>0&&!this.getNodeDisabled(i)&&(o=i)}}}),o}),A(this,"at",n=>qd(this.rootNode,n,{getChildren:this.getNodeChildren})),A(this,"findNode",(n,r=this.rootNode)=>fk(r,{getChildren:this.getNodeChildren,predicate:o=>this.getNodeValue(o)===n})),A(this,"findNodes",(n,r=this.rootNode)=>{const o=new Set(n.filter(i=>i!=null));return gk(r,{getChildren:this.getNodeChildren,predicate:i=>o.has(this.getNodeValue(i))})}),A(this,"sort",n=>n.reduce((r,o)=>{const i=this.getIndexPath(o);return i&&r.push({value:o,indexPath:i}),r},[]).sort((r,o)=>Kd(r.indexPath,o.indexPath)).map(({value:r})=>r)),A(this,"getIndexPath",n=>Xd(this.rootNode,{getChildren:this.getNodeChildren,predicate:r=>this.getNodeValue(r)===n})),A(this,"getValue",n=>{const r=this.at(n);return r?this.getNodeValue(r):void 0}),A(this,"getValuePath",n=>{if(!n)return[];const r=[];let o=[...n];for(;o.length>0;){const i=this.at(o);i&&r.unshift(this.getNodeValue(i)),o.pop()}return r}),A(this,"getDepth",n=>{const r=Xd(this.rootNode,{getChildren:this.getNodeChildren,predicate:o=>this.getNodeValue(o)===n});return(r==null?void 0:r.length)??0}),A(this,"isSameNode",(n,r)=>this.getNodeValue(n)===this.getNodeValue(r)),A(this,"isRootNode",n=>this.isSameNode(n,this.rootNode)),A(this,"contains",(n,r)=>!n||!r?!1:r.slice(0,n.length).every((o,i)=>n[i]===r[i])),A(this,"getNextNode",(n,r={})=>{let o=!1,i;return it(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{var c;if(this.isRootNode(s))return;const l=this.getNodeValue(s);if((c=r.skip)!=null&&c.call(r,{value:l,node:s,indexPath:a}))return l===n&&(o=!0),"skip";if(o&&!this.getNodeDisabled(s))return i=s,"stop";l===n&&(o=!0)}}),i}),A(this,"getPreviousNode",(n,r={})=>{let o,i=!1;return it(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{var c;if(this.isRootNode(s))return;const l=this.getNodeValue(s);if((c=r.skip)!=null&&c.call(r,{value:l,node:s,indexPath:a}))return"skip";if(l===n)return i=!0,"stop";this.getNodeDisabled(s)||(o=s)}}),i?o:void 0}),A(this,"getParentNodes",n=>{var i;const r=(i=this.resolveIndexPath(n))==null?void 0:i.slice();if(!r)return[];const o=[];for(;r.length>0;){r.pop();const s=this.at(r);s&&!this.isRootNode(s)&&o.unshift(s)}return o}),A(this,"getDescendantNodes",(n,r)=>{const o=this.resolveNode(n);if(!o)return[];const i=[];return it(o,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{a.length!==0&&(!(r!=null&&r.withBranch)&&this.isBranchNode(s)||i.push(s))}}),i}),A(this,"getDescendantValues",(n,r)=>this.getDescendantNodes(n,r).map(i=>this.getNodeValue(i))),A(this,"getParentIndexPath",n=>n.slice(0,-1)),A(this,"getParentNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(this.getParentIndexPath(r)):void 0}),A(this,"visit",n=>{const{skip:r,...o}=n;it(this.rootNode,{...o,getChildren:this.getNodeChildren,onEnter:(i,s)=>{var a;if(!this.isRootNode(i))return r!=null&&r({value:this.getNodeValue(i),node:i,indexPath:s})?"skip":(a=o.onEnter)==null?void 0:a.call(o,i,s)}})}),A(this,"getPreviousSibling",n=>{const r=this.getParentNode(n);if(!r)return;const o=this.getNodeChildren(r);let i=n[n.length-1];for(;--i>=0;){const s=o[i];if(!this.getNodeDisabled(s))return s}}),A(this,"getNextSibling",n=>{const r=this.getParentNode(n);if(!r)return;const o=this.getNodeChildren(r);let i=n[n.length-1];for(;++i{const r=this.getParentNode(n);return r?this.getNodeChildren(r):[]}),A(this,"getValues",(n=this.rootNode)=>mk(n,{getChildren:this.getNodeChildren,transform:o=>[this.getNodeValue(o)]}).slice(1)),A(this,"isValidDepth",(n,r)=>r==null?!0:typeof r=="function"?r(n.length):n.length===r),A(this,"isBranchNode",n=>this.getNodeChildren(n).length>0||this.getNodeChildrenCount(n)!=null),A(this,"getBranchValues",(n=this.rootNode,r={})=>{let o=[];return it(n,{getChildren:this.getNodeChildren,onEnter:(i,s)=>{var l;if(s.length===0)return;const a=this.getNodeValue(i);if((l=r.skip)!=null&&l.call(r,{value:a,node:i,indexPath:s}))return"skip";this.isBranchNode(i)&&this.isValidDepth(s,r.depth)&&o.push(this.getNodeValue(i))}}),o}),A(this,"flatten",(n=this.rootNode)=>bk(n,{getChildren:this.getNodeChildren})),A(this,"_create",(n,r)=>this.getNodeChildren(n).length>0||r.length>0?{...n,children:r}:{...n}),A(this,"_insert",(n,r,o)=>this.copy(Sk(n,{at:r,nodes:o,getChildren:this.getNodeChildren,create:this._create}))),A(this,"copy",n=>new Y0({...this.options,rootNode:n})),A(this,"_replace",(n,r,o)=>this.copy(wk(n,{at:r,node:o,getChildren:this.getNodeChildren,create:this._create}))),A(this,"_move",(n,r,o)=>this.copy(Ok(n,{indexPaths:r,to:o,getChildren:this.getNodeChildren,create:this._create}))),A(this,"_remove",(n,r)=>this.copy(Ek(n,{indexPaths:r,getChildren:this.getNodeChildren,create:this._create}))),A(this,"replace",(n,r)=>this._replace(this.rootNode,n,r)),A(this,"remove",n=>this._remove(this.rootNode,n)),A(this,"insertBefore",(n,r)=>this.getParentNode(n)?this._insert(this.rootNode,n,r):void 0),A(this,"insertAfter",(n,r)=>{if(!this.getParentNode(n))return;const i=[...n.slice(0,-1),n[n.length-1]+1];return this._insert(this.rootNode,i,r)}),A(this,"move",(n,r)=>this._move(this.rootNode,n,r)),A(this,"filter",n=>{const r=vk(this.rootNode,{predicate:n,getChildren:this.getNodeChildren,create:this._create});return this.copy(r)}),A(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},kr={nodeToValue(e){return typeof e=="string"?e:On(e)&&Yt(e,"value")?e.value:""},nodeToString(e){return typeof e=="string"?e:On(e)&&Yt(e,"label")?e.label:kr.nodeToValue(e)},isNodeDisabled(e){return On(e)&&Yt(e,"disabled")?!!e.disabled:!1},nodeToChildren(e){return e.children},nodeToChildrenCount(e){if(On(e)&&Yt(e,"childrenCount"))return e.childrenCount}},Sr=new WeakMap,Zi=new WeakMap,es={},il=0,th=e=>e&&(e.host||th(e.parentNode)),Ik=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=th(n);return r&&e.contains(r)?r:(console.error("[zag-js > ariaHidden] target",n,"in not contained inside",e,". Doing nothing"),null)}).filter(n=>!!n),Pk=new Set(["script","output","status","next-route-announcer"]),Rk=e=>Pk.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),Tk=(e,t)=>{const{parentNode:n,markerName:r,controlAttribute:o}=t,i=Ik(n,Array.isArray(e)?e:[e]);es[r]||(es[r]=new WeakMap);const s=es[r],a=[],l=new Set,c=new Set(i),u=h=>{!h||l.has(h)||(l.add(h),u(h.parentNode))};i.forEach(u);const d=h=>{!h||c.has(h)||Array.prototype.forEach.call(h.children,p=>{if(l.has(p))d(p);else try{if(Rk(p))return;const g=p.getAttribute(o)==="true",m=(Sr.get(p)||0)+1,b=(s.get(p)||0)+1;Sr.set(p,m),s.set(p,b),a.push(p),m===1&&g&&Zi.set(p,!0),b===1&&p.setAttribute(r,""),g||p.setAttribute(o,"true")}catch(f){console.error("[zag-js > ariaHidden] cannot operate on ",p,f)}})};return d(n),l.clear(),il++,()=>{a.forEach(h=>{const p=Sr.get(h)-1,f=s.get(h)-1;Sr.set(h,p),s.set(h,f),p||(Zi.has(h)||h.removeAttribute(o),Zi.delete(h)),f||h.removeAttribute(r)}),il--,il||(Sr=new WeakMap,Sr=new WeakMap,Zi=new WeakMap,es={})}},Nk=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,_k=(e,t=Nk(e),n="data-aria-hidden")=>{if(t)return Tk(e,{parentNode:t,markerName:n,controlAttribute:"aria-hidden"})},Ak=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function nh(e,t={}){const{defer:n=!0}=t,r=n?Ak:i=>i(),o=[];return o.push(r(()=>{const s=(typeof e=="function"?e():e).filter(Boolean);s.length!==0&&o.push(_k(s))})),()=>{o.forEach(i=>i==null?void 0:i())}}var rh=G("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");rh.build();var oh=e=>new Yi(e);oh.empty=()=>new Yi({items:[]});var Vk=e=>{var t;return((t=e.ids)==null?void 0:t.control)??`combobox:${e.id}:control`},Lk=e=>{var t;return((t=e.ids)==null?void 0:t.input)??`combobox:${e.id}:input`},Fk=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`combobox:${e.id}:content`},Dk=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`combobox:${e.id}:popper`},zk=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`combobox:${e.id}:toggle-btn`},Mk=e=>{var t;return((t=e.ids)==null?void 0:t.clearTrigger)??`combobox:${e.id}:clear-btn`},rn=e=>e.getById(Fk(e)),wr=e=>e.getById(Lk(e)),ih=e=>e.getById(Dk(e)),sh=e=>e.getById(Vk(e)),vo=e=>e.getById(zk(e)),ah=e=>e.getById(Mk(e)),bo=(e,t)=>{if(t==null)return null;const n=`[role=option][data-value="${CSS.escape(t)}"]`;return Yy(rn(e),n)},lh=e=>{const t=wr(e);e.isActiveElement(t)||t==null||t.focus({preventScroll:!0})},$k=e=>{const t=vo(e);e.isActiveElement(t)||t==null||t.focus({preventScroll:!0})},{guards:jk,createMachine:Bk,choose:Wk}=$u(),{and:Re,not:st}=jk;Bk({props({props:e}){return{loopFocus:!0,openOnClick:!1,defaultValue:[],closeOnSelect:!e.multiple,allowCustomValue:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:t}){Vu(t)},collection:oh.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"suggesting":"idle"},context({prop:e,bindable:t,getContext:n,getEvent:r}){return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:gt,hash(o){return o.join(",")},onChange(o){var c;const i=n(),s=i.get("selectedItems"),a=e("collection"),l=o.map(u=>s.find(h=>a.getItemValue(h)===u)||a.find(u));i.set("selectedItems",l),(c=e("onValueChange"))==null||c({value:o,items:l})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(o){var s;const i=e("collection").find(o);(s=e("onHighlightChange"))==null||s({highlightedValue:o,highlightedItem:i})}})),inputValue:t(()=>{let o=e("inputValue")||e("defaultInputValue")||"";const i=e("defaultValue")||e("value")||[];if(!o.trim()&&!e("multiple")){const s=e("collection").stringifyMany(i);o=Mt(e("selectionBehavior"),{preserve:o||s,replace:s,clear:""})}return{defaultValue:o,value:e("inputValue"),onChange(s){var c;const a=r(),l=(a.previousEvent||a).src;(c=e("onInputValueChange"))==null||c({inputValue:s,reason:l})}}}),highlightedItem:t(()=>{const o=e("highlightedValue");return{defaultValue:e("collection").find(o)}}),selectedItems:t(()=>{const o=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(o)}})}},computed:{isInputValueEmpty:({context:e})=>e.get("inputValue").length===0,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>e("inputBehavior")==="autocomplete",autoHighlight:({prop:e})=>e("inputBehavior")==="autohighlight",hasSelectedItems:({context:e})=>e.get("value").length>0,valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:n,action:r,send:o}){n([()=>e.hash("value")],()=>{r(["syncSelectedItems"])}),n([()=>e.get("inputValue")],()=>{r(["syncInputValue"])}),n([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem","autofillInputValue"])}),n([()=>t("open")],()=>{r(["toggleVisibility"])}),n([()=>t("collection").toString()],()=>{o({type:"CHILDREN_CHANGE"})})},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:Wk([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{idle:{tags:["idle","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"suggesting"},{target:"interacting"}],"INPUT.CHANGE":[{guard:Re("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:Re("isCustomValue",st("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:Re("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement","hideOtherElements"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:Re("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:Re("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:Re("isOpenControlled","isCustomValue",st("hasHighlightedItem"),st("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Re("isCustomValue",st("hasHighlightedItem"),st("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:Re("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"ITEM.CLICK":[{guard:Re("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:Re("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:Re("isOpenControlled","isCustomValue",st("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Re("isCustomValue",st("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement","hideOtherElements"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"autoHighlight",actions:["highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:Re("isOpenControlled","isCustomValue",st("hasHighlightedItem"),st("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Re("isCustomValue",st("hasHighlightedItem"),st("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:Re("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.INTERACT_OUTSIDE":[{guard:Re("isOpenControlled","isCustomValue",st("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Re("isCustomValue",st("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.CLICK":[{guard:Re("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>e("open")!=null,openOnChange:({prop:e,context:t})=>{const n=e("openOnChange");return Nb(n)?n:!!(n!=null&&n({inputValue:t.get("inputValue")}))},restoreFocus:({event:e})=>e.restoreFocus==null?!0:!!e.restoreFocus,isChangeEvent:({event:e})=>{var t;return((t=e.previousEvent)==null?void 0:t.type)==="INPUT.CHANGE"},autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue"))},effects:{trackDismissableLayer({send:e,prop:t,scope:n}){return t("disableLayer")?void 0:Cr(()=>rn(n),{defer:!0,exclude:()=>[wr(n),vo(n),ah(n)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(o){o.preventDefault(),o.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},hideOtherElements({scope:e}){return nh([wr(e),rn(e),vo(e),ah(e)])},trackPlacement({context:e,prop:t,scope:n}){const r=()=>sh(n)||vo(n),o=()=>ih(n);return e.set("currentPlacement",t("positioning").placement),bt(r,o,{...t("positioning"),defer:!0,onComplete(i){e.set("currentPlacement",i.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:n,event:r}){const o=wr(n);let i=[];const s=c=>{const u=r.current().type.includes("POINTER"),d=e.get("highlightedValue");if(u||!d)return;const h=rn(n),p=t("scrollToIndexFn");if(p){const m=t("collection").indexOf(d);p({index:m,immediate:c,getElement:()=>bo(n,d)});return}const f=bo(n,d),g=ee(()=>{Pi(f,{rootEl:h,block:"nearest"})});i.push(g)},a=ee(()=>s(!0));i.push(a);const l=Oi(o,{attributes:["aria-activedescendant"],callback:()=>s(!1)});return i.push(l),()=>{i.forEach(c=>c())}}},actions:{reposition({context:e,prop:t,scope:n,event:r}){bt(()=>sh(n),()=>ih(n),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(s){e.set("currentPlacement",s.placement)}})},setHighlightedValue({context:e,event:t}){t.value!=null&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){var a;const{context:t,prop:n}=e,r=n("collection"),o=t.get("highlightedValue");if(!o||!r.has(o))return;const i=n("multiple")?dr(t.get("value"),o):[o];(a=n("onSelect"))==null||a({value:i,itemValue:o}),t.set("value",i);const s=Mt(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(i),clear:""});t.set("inputValue",s)},scrollToHighlightedItem({context:e,prop:t,scope:n}){Ta(()=>{const r=e.get("highlightedValue");if(r==null)return;const o=bo(n,r),i=rn(n),s=t("scrollToIndexFn");if(s){const a=t("collection").indexOf(r);s({index:a,immediate:!0,getElement:()=>bo(n,r)});return}Pi(o,{rootEl:i,block:"nearest"})})},selectItem(e){const{context:t,event:n,flush:r,prop:o}=e;n.value!=null&&r(()=>{var a;const i=o("multiple")?dr(t.get("value"),n.value):[n.value];(a=o("onSelect"))==null||a({value:i,itemValue:n.value}),t.set("value",i);const s=Mt(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(i),clear:""});t.set("inputValue",s)})},clearItem(e){const{context:t,event:n,flush:r,prop:o}=e;n.value!=null&&r(()=>{const i=En(t.get("value"),n.value);t.set("value",i);const s=Mt(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(i),clear:""});t.set("inputValue",s)})},setInitialFocus({scope:e}){ee(()=>{lh(e)})},setFinalFocus({scope:e}){ee(()=>{const t=vo(e);(t==null?void 0:t.dataset.focusable)==null?lh(e):$k(e)})},syncInputValue({context:e,scope:t,event:n}){const r=wr(t);r&&(r.value=e.get("inputValue"),queueMicrotask(()=>{n.current().type!=="INPUT.CHANGE"&&ry(r)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:n}){const r=t("selectionBehavior"),o=Mt(r,{replace:n("hasSelectedItems")?n("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",o)},setValue(e){const{context:t,flush:n,event:r,prop:o}=e;n(()=>{t.set("value",r.value);const i=Mt(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(r.value),clear:""});t.set("inputValue",i)})},clearSelectedItems(e){const{context:t,flush:n,prop:r}=e;n(()=>{t.set("value",[]);const o=Mt(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",o)})},scrollContentToTop({prop:e,scope:t}){const n=e("scrollToIndexFn");if(n){const r=e("collection").firstValue;n({index:0,immediate:!0,getElement:()=>bo(t,r)})}else{const r=rn(t);if(!r)return;r.scrollTop=0}},invokeOnOpen({prop:e,event:t}){var r;const n=ch(t);(r=e("onOpenChange"))==null||r({open:!0,reason:n})},invokeOnClose({prop:e,event:t}){var r;const n=ch(t);(r=e("onOpenChange"))==null||r({open:!1,reason:n})},highlightFirstItem({context:e,prop:t,scope:n}){(rn(n)?queueMicrotask:ee)(()=>{const o=t("collection").firstValue;o&&e.set("highlightedValue",o)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:n}){(rn(n)?queueMicrotask:ee)(()=>{const o=t("collection").lastValue;o&&e.set("highlightedValue",o)})},highlightNextItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),o=t("collection");r?(n=o.getNextValue(r),!n&&t("loopFocus")&&(n=o.firstValue)):n=o.firstValue,n&&e.set("highlightedValue",n)},highlightPrevItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),o=t("collection");r?(n=o.getPreviousValue(r),!n&&t("loopFocus")&&(n=o.lastValue)):n=o.lastValue,n&&e.set("highlightedValue",n)},highlightFirstSelectedItem({context:e,prop:t}){ee(()=>{const[n]=t("collection").sort(e.get("value"));n&&e.set("highlightedValue",n)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:n}){ee(()=>{let r=null;n("hasSelectedItems")?r=t("collection").sort(e.get("value"))[0]:r=t("collection").firstValue,r&&e.set("highlightedValue",r)})},highlightLastOrSelectedItem({context:e,prop:t,computed:n}){ee(()=>{const r=t("collection");let o=null;n("hasSelectedItems")?o=r.sort(e.get("value"))[0]:o=r.lastValue,o&&e.set("highlightedValue",o)})},autofillInputValue({context:e,computed:t,prop:n,event:r,scope:o}){const i=wr(o),s=n("collection");if(!t("autoComplete")||!i||!r.keypress)return;const a=s.stringify(e.get("highlightedValue"));ee(()=>{i.value=a||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:n}=e,r=n("collection"),o=t.get("value"),i=o.map(a=>t.get("selectedItems").find(c=>r.getItemValue(c)===a)||r.find(a));t.set("selectedItems",i);const s=Mt(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(o),clear:""});t.set("inputValue",s)})},syncHighlightedItem({context:e,prop:t}){const n=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",n)},toggleVisibility({event:e,send:t,prop:n}){t({type:n("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function ch(e){return(e.previousEvent||e).src}U()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value"]),U()(["htmlFor"]),U()(["id"]),U()(["item","persistFocus"]);const Hk=rh.extendWith("empty"),[uh,on]=hr({name:"DialogContext",hookName:"useDialogContext",providerName:""}),dh=w.forwardRef((e,t)=>{const n=on(),r=$C(),o=Da({...r,present:n.open}),i=pt(n.getBackdropProps(),o.getPresenceProps(),e);return o.unmounted?null:v.jsx(en.div,{...i,ref:_i(o.ref,t)})});dh.displayName="DialogBackdrop";const hh=w.forwardRef((e,t)=>{const n=on(),r=pt(n.getCloseTriggerProps(),e);return v.jsx(en.button,{...r,ref:t})});hh.displayName="DialogCloseTrigger";const fh=w.forwardRef((e,t)=>{const n=on(),r=za(),o=pt(n.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:v.jsx(en.div,{...o,ref:_i(r.ref,t)})});fh.displayName="DialogContent";const gh=w.forwardRef((e,t)=>{const n=on(),r=pt(n.getDescriptionProps(),e);return v.jsx(en.div,{...r,ref:t})});gh.displayName="DialogDescription";const ph=w.forwardRef((e,t)=>{const n=on(),r=pt(n.getPositionerProps(),e);return za().unmounted?null:v.jsx(en.div,{...r,ref:t})});ph.displayName="DialogPositioner";var Uk=Object.defineProperty,Gk=(e,t,n)=>t in e?Uk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ge=(e,t,n)=>Gk(e,typeof t!="symbol"?t+"":t,n),mh={activateTrap(e,t){if(e.length>0){const r=e[e.length-1];r!==t&&r.pause()}const n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},qk=[],Kk=class{constructor(e,t){ge(this,"trapStack"),ge(this,"config"),ge(this,"doc"),ge(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),ge(this,"listenerCleanups",[]),ge(this,"handleFocus",r=>{const o=nt(r),i=this.findContainerIndex(o,r)>=0;if(i||Sa(o))i&&(this.state.mostRecentlyFocusedNode=o);else{r.stopImmediatePropagation();let s,a=!0;if(this.state.mostRecentlyFocusedNode)if(lo(this.state.mostRecentlyFocusedNode)>0){const l=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:c}=this.state.containerGroups[l];if(c.length>0){const u=c.findIndex(d=>d===this.state.mostRecentlyFocusedNode);u>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?u+1=0&&(s=c[u-1],a=!1))}}else this.state.containerGroups.some(l=>l.tabbableNodes.some(c=>lo(c)>0))||(a=!1);else a=!1;a&&(s=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),s?this.tryFocus(s):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),ge(this,"handlePointerDown",r=>{const o=nt(r);if(!(this.findContainerIndex(o,r)>=0)){if(xo(this.config.clickOutsideDeactivates,r)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}xo(this.config.allowOutsideClick,r)||r.preventDefault()}}),ge(this,"handleClick",r=>{const o=nt(r);this.findContainerIndex(o,r)>=0||xo(this.config.clickOutsideDeactivates,r)||xo(this.config.allowOutsideClick,r)||(r.preventDefault(),r.stopImmediatePropagation())}),ge(this,"handleTabKey",r=>{if(this.config.isKeyForward(r)||this.config.isKeyBackward(r)){this.state.recentNavEvent=r;const o=this.config.isKeyBackward(r),i=this.findNextNavNode({event:r,isBackward:o});if(!i)return;yo(r)&&r.preventDefault(),this.tryFocus(i)}}),ge(this,"handleEscapeKey",r=>{Xk(r)&&xo(this.config.escapeDeactivates,r)!==!1&&(r.preventDefault(),this.deactivate())}),ge(this,"_mutationObserver"),ge(this,"setupMutationObserver",()=>{const r=this.doc.defaultView||window;this._mutationObserver=new r.MutationObserver(o=>{o.some(s=>Array.from(s.removedNodes).some(l=>l===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode())})}),ge(this,"updateObservedNodes",()=>{var r;(r=this._mutationObserver)==null||r.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(o=>{var i;(i=this._mutationObserver)==null||i.observe(o,{subtree:!0,childList:!0})})}),ge(this,"getInitialFocusNode",()=>{let r=this.getNodeForOption("initialFocus",{hasFallback:!0});if(r===!1)return!1;if(r===void 0||r&&!Jt(r))if(this.findContainerIndex(this.doc.activeElement)>=0)r=this.doc.activeElement;else{const o=this.state.tabbableGroups[0];r=o&&o.firstTabbableNode||this.getNodeForOption("fallbackFocus")}else r===null&&(r=this.getNodeForOption("fallbackFocus"));if(!r)throw new Error("Your focus-trap needs to have at least one focusable element");return r.isConnected||(r=this.getNodeForOption("fallbackFocus")),r}),ge(this,"tryFocus",r=>{if(r!==!1&&r!==Pu(this.doc)){if(!r||!r.focus){this.tryFocus(this.getInitialFocusNode());return}r.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=r,Yk(r)&&r.select()}}),ge(this,"deactivate",r=>{if(!this.state.active)return this;const o={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...r};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),mh.deactivateTrap(this.trapStack,this);const i=this.getOption(o,"onDeactivate"),s=this.getOption(o,"onPostDeactivate"),a=this.getOption(o,"checkCanReturnFocus"),l=this.getOption(o,"returnFocus","returnFocusOnDeactivate");i==null||i();const c=()=>{vh(()=>{if(l){const u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(u)}s==null||s()})};if(l&&a){const u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return a(u).then(c,c),this}return c(),this}),ge(this,"pause",r=>{if(this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onPause"),i=this.getOption(r,"onPostPause");return this.state.paused=!0,o==null||o(),this.removeListeners(),this.updateObservedNodes(),i==null||i(),this}),ge(this,"unpause",r=>{if(!this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onUnpause"),i=this.getOption(r,"onPostUnpause");return this.state.paused=!1,o==null||o(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i==null||i(),this}),ge(this,"updateContainerElements",r=>(this.state.containers=Array.isArray(r)?r.filter(Boolean):[r].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),ge(this,"getReturnFocusNode",r=>{const o=this.getNodeForOption("setReturnFocus",{params:[r]});return o||(o===!1?!1:r)}),ge(this,"getOption",(r,o,i)=>r&&r[o]!==void 0?r[o]:this.config[i||o]),ge(this,"getNodeForOption",(r,{hasFallback:o=!1,params:i=[]}={})=>{let s=this.config[r];if(typeof s=="function"&&(s=s(...i)),s===!0&&(s=void 0),!s){if(s===void 0||s===!1)return s;throw new Error(`\`${r}\` was specified but was not a node, or did not return a node`)}let a=s;if(typeof s=="string"){try{a=this.doc.querySelector(s)}catch(l){throw new Error(`\`${r}\` appears to be an invalid selector; error="${l.message}"`)}if(!a&&!o)throw new Error(`\`${r}\` as selector refers to no known node`)}return a}),ge(this,"findNextNavNode",r=>{const{event:o,isBackward:i=!1}=r,s=r.target||nt(o);this.updateTabbableNodes();let a=null;if(this.state.tabbableGroups.length>0){const l=this.findContainerIndex(s,o),c=l>=0?this.state.containerGroups[l]:void 0;if(l<0)i?a=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:a=this.state.tabbableGroups[0].firstTabbableNode;else if(i){let u=this.state.tabbableGroups.findIndex(({firstTabbableNode:d})=>s===d);if(u<0&&((c==null?void 0:c.container)===s||Jt(s)&&!Rn(s)&&!(c!=null&&c.nextTabbableNode(s,!1)))&&(u=l),u>=0){const d=u===0?this.state.tabbableGroups.length-1:u-1,h=this.state.tabbableGroups[d];a=lo(s)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else yo(o)||(a=c==null?void 0:c.nextTabbableNode(s,!1))}else{let u=this.state.tabbableGroups.findIndex(({lastTabbableNode:d})=>s===d);if(u<0&&((c==null?void 0:c.container)===s||Jt(s)&&!Rn(s)&&!(c!=null&&c.nextTabbableNode(s)))&&(u=l),u>=0){const d=u===this.state.tabbableGroups.length-1?0:u+1,h=this.state.tabbableGroups[d];a=lo(s)>=0?h.firstTabbableNode:h.firstDomTabbableNode}else yo(o)||(a=c==null?void 0:c.nextTabbableNode(s))}}else a=this.getNodeForOption("fallbackFocus");return a}),this.trapStack=t.trapStack||qk;const n={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward(r){return yo(r)&&!r.shiftKey},isKeyBackward(r){return yo(r)&&r.shiftKey},...t};this.doc=n.document||qe(Array.isArray(e)?e[0]:e),this.config=n,this.updateContainerElements(e),this.setupMutationObserver()}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const n=typeof(t==null?void 0:t.composedPath)=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:r,tabbableNodes:o})=>r.contains(e)||(n==null?void 0:n.includes(r))||o.find(i=>i===e))}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=Pa(e),n=Au(e),r=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,i=n.find(c=>Rn(c)),s=n.slice().reverse().find(c=>Rn(c)),a=!!t.find(c=>lo(c)>0);function l(c,u=!0){const d=t.indexOf(c);return d<0?u?n.slice(n.indexOf(c)+1).find(h=>Rn(h)):n.slice(0,n.indexOf(c)).reverse().find(h=>Rn(h)):t[d+(u?1:-1)]}return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:a,firstTabbableNode:r,lastTabbableNode:o,firstDomTabbableNode:i,lastDomTabbableNode:s,nextTabbableNode:l}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return mh.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?vh(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(fe(this.doc,"focusin",this.handleFocus,!0),fe(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),fe(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),fe(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),fe(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),fe(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const t=this.getOption(e,"onActivate"),n=this.getOption(e,"onPostActivate"),r=this.getOption(e,"checkCanFocusTrap");r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=this.doc.activeElement||null,t==null||t();const o=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),n==null||n()};return r?(r(this.state.containers.concat()).then(o,o),this):(o(),this)}},yo=e=>e.key==="Tab",xo=(e,...t)=>typeof e=="function"?e(...t):e,Xk=e=>!e.isComposing&&e.key==="Escape",vh=e=>setTimeout(e,0),Yk=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function Qk(e,t={}){let n;const r=ee(()=>{const o=typeof e=="function"?e():e;if(o){n=new Kk(o,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:o,...t,document:qe(o)});try{n.activate()}catch{}}});return function(){n==null||n.deactivate(),r()}}var sl="data-scroll-lock";function Jk(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function Zk(e){const t=e??document,n=t.defaultView??window,{documentElement:r,body:o}=t;if(o.hasAttribute(sl))return;const s=n.innerWidth-r.clientWidth;o.setAttribute(sl,"");const a=()=>ox(r,"--scrollbar-width",`${s}px`),l=Jk(r),c=()=>Ni(o,{overflow:"hidden",[l]:`${s}px`}),u=()=>{const{scrollX:h,scrollY:p,visualViewport:f}=n,g=(f==null?void 0:f.offsetLeft)??0,m=(f==null?void 0:f.offsetTop)??0,b=Ni(o,{position:"fixed",overflow:"hidden",top:`${-(p-Math.floor(m))}px`,left:`${-(h-Math.floor(g))}px`,right:"0",[l]:`${s}px`});return()=>{b==null||b(),n.scrollTo({left:h,top:p,behavior:"instant"})}},d=[a(),Si()?u():c()];return()=>{d.forEach(h=>h==null?void 0:h()),o.removeAttribute(sl)}}var al=G("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),An=al.build(),bh=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`dialog:${e.id}:positioner`},yh=e=>{var t;return((t=e.ids)==null?void 0:t.backdrop)??`dialog:${e.id}:backdrop`},ll=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`dialog:${e.id}:content`},xh=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`dialog:${e.id}:trigger`},cl=e=>{var t;return((t=e.ids)==null?void 0:t.title)??`dialog:${e.id}:title`},ul=e=>{var t;return((t=e.ids)==null?void 0:t.description)??`dialog:${e.id}:description`},Ch=e=>{var t;return((t=e.ids)==null?void 0:t.closeTrigger)??`dialog:${e.id}:close`},ts=e=>e.getById(ll(e)),eS=e=>e.getById(bh(e)),tS=e=>e.getById(yh(e)),nS=e=>e.getById(xh(e)),rS=e=>e.getById(cl(e)),oS=e=>e.getById(ul(e)),iS=e=>e.getById(Ch(e));function sS(e,t){const{state:n,send:r,context:o,prop:i,scope:s}=e,a=i("aria-label"),l=n.matches("open");return{open:l,setOpen(c){n.matches("open")!==c&&r({type:c?"OPEN":"CLOSE"})},getTriggerProps(){return t.button({...An.trigger.attrs,dir:i("dir"),id:xh(s),"aria-haspopup":"dialog",type:"button","aria-expanded":l,"data-state":l?"open":"closed","aria-controls":ll(s),onClick(c){c.defaultPrevented||r({type:"TOGGLE"})}})},getBackdropProps(){return t.element({...An.backdrop.attrs,dir:i("dir"),hidden:!l,id:yh(s),"data-state":l?"open":"closed"})},getPositionerProps(){return t.element({...An.positioner.attrs,dir:i("dir"),id:bh(s),style:{pointerEvents:l?void 0:"none"}})},getContentProps(){const c=o.get("rendered");return t.element({...An.content.attrs,dir:i("dir"),role:i("role"),hidden:!l,id:ll(s),tabIndex:-1,"data-state":l?"open":"closed","aria-modal":!0,"aria-label":a||void 0,"aria-labelledby":a||!c.title?void 0:cl(s),"aria-describedby":c.description?ul(s):void 0})},getTitleProps(){return t.element({...An.title.attrs,dir:i("dir"),id:cl(s)})},getDescriptionProps(){return t.element({...An.description.attrs,dir:i("dir"),id:ul(s)})},getCloseTriggerProps(){return t.button({...An.closeTrigger.attrs,dir:i("dir"),id:Ch(s),type:"button",onClick(c){c.defaultPrevented||(c.stopPropagation(),r({type:"CLOSE"}))}})}}}var aS={props({props:e,scope:t}){const n=e.role==="alertdialog",r=n?()=>iS(t):void 0,o=typeof e.modal=="boolean"?e.modal:!0;return{role:"dialog",modal:o,trapFocus:o,preventScroll:o,closeOnInteractOutside:!n,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r,...e}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}},watch({track:e,action:t,prop:n}){e([()=>n("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:n}){return Cr(()=>ts(e),{defer:!0,pointerBlocking:n("modal"),exclude:[nS(e)],onInteractOutside(o){var i;(i=n("onInteractOutside"))==null||i(o),n("closeOnInteractOutside")||o.preventDefault()},persistentElements:n("persistentElements"),onFocusOutside:n("onFocusOutside"),onPointerDownOutside:n("onPointerDownOutside"),onRequestDismiss:n("onRequestDismiss"),onEscapeKeyDown(o){var i;(i=n("onEscapeKeyDown"))==null||i(o),n("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return Zk(e.getDoc())},trapFocus({scope:e,prop:t}){return t("trapFocus")?Qk(()=>ts(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:r=>{var o;return((o=t("finalFocusEl"))==null?void 0:o())??r}}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?nh(()=>[ts(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){ee(()=>{e.set("rendered",{title:!!rS(t),description:!!oS(t)})})},syncZIndex({scope:e}){ee(()=>{const t=ts(e);if(!t)return;const n=Ci(t);[eS(e),tS(e)].forEach(o=>{o==null||o.style.setProperty("--z-index",n.zIndex),o==null||o.style.setProperty("--layer-index",n.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!1})},invokeOnOpen({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!0})},toggleVisibility({prop:e,send:t,event:n}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})}}}};U()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);const lS=e=>{const t=w.useId(),{getRootNode:n}=Su(),{dir:r}=gx(),o={id:t,getRootNode:n,dir:r,...e},i=Hu(aS,o);return sS(i,Cx)},cS=e=>{const[t,{children:n,...r}]=Bu(e),[o]=Fd(t),i=lS(r),s=Da(pt({present:i.open},t));return v.jsx(uh,{value:i,children:v.jsx(Ld,{value:o,children:v.jsx(qu,{value:s,children:n})})})},uS=e=>{const[t,{value:n,children:r}]=Bu(e),[o]=Fd(t),i=Da(pt({present:n.open},t));return v.jsx(uh,{value:n,children:v.jsx(Ld,{value:o,children:v.jsx(qu,{value:i,children:r})})})},kh=w.forwardRef((e,t)=>{const n=on(),r=pt(n.getTitleProps(),e);return v.jsx(en.h2,{...r,ref:t})});kh.displayName="DialogTitle";const Sh=w.forwardRef((e,t)=>{const n=on(),r=za(),o=pt({...n.getTriggerProps(),"aria-controls":r.unmounted?void 0:n.getTriggerProps()["aria-controls"]},e);return v.jsx(en.button,{...o,ref:t})});Sh.displayName="DialogTrigger";var wh=G("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");wh.build(),U()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]);const Eh=G("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");Eh.build();var dS=e=>{var c,u;if(!e)return;const t=Ci(e),n=Pe(e),r=qe(e),o=()=>{requestAnimationFrame(()=>{e.style.height="auto";let d;t.boxSizing==="content-box"?d=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):d=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&d>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),d=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${d}px`})};e.addEventListener("input",o),(c=e.form)==null||c.addEventListener("reset",o);const i=Object.getPrototypeOf(e),s=Object.getOwnPropertyDescriptor(i,"value");Object.defineProperty(e,"value",{...s,set(){var d;(d=s==null?void 0:s.set)==null||d.apply(this,arguments),o()}});const a=new n.ResizeObserver(()=>{requestAnimationFrame(()=>o())});a.observe(e);const l=new n.MutationObserver(()=>o());return l.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),(u=r.fonts)==null||u.addEventListener("loadingdone",o),()=>{var d,h;e.removeEventListener("input",o),(d=e.form)==null||d.removeEventListener("reset",o),(h=r.fonts)==null||h.removeEventListener("loadingdone",o),a.disconnect(),l.disconnect()}};const Oh=w.forwardRef((e,t)=>{const{autoresize:n,...r}=e,o=w.useRef(null),i=sk(),s=pt(i==null?void 0:i.getTextareaProps(),{style:{resize:n?"none":void 0}},r);return w.useEffect(()=>{if(n)return dS(o.current)},[n]),v.jsx(en.textarea,{...s,ref:_i(t,o)})});Oh.displayName="FieldTextarea";const Ih=G("fieldset").parts("root","errorText","helperText","legend");Ih.build();var Ph=G("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");Ph.build(),U()(["accept","acceptedFiles","allowDrop","capture","defaultAcceptedFiles","dir","directory","disabled","getRootNode","id","ids","invalid","locale","maxFiles","maxFileSize","minFileSize","name","onFileAccept","onFileChange","onFileReject","preventDocumentDrop","required","transformFiles","translations","validate"]),U()(["file"]);var Rh=G("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");Rh.build();var hS=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`hover-card:${e.id}:trigger`},fS=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`hover-card:${e.id}:content`},gS=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`hover-card:${e.id}:popper`},dl=e=>e.getById(hS(e)),pS=e=>e.getById(fS(e)),Th=e=>e.getById(gS(e)),{not:ns,and:Nh}=Zt();Nh("isOpenControlled",ns("isPointer")),ns("isPointer"),Nh("isOpenControlled",ns("isPointer")),ns("isPointer"),U()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var _h=G("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","root","tree");_h.build();var Ah=e=>new eh(e);Ah.empty=()=>new eh({rootNode:{children:[]}});var mS=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.node)==null?void 0:r.call(n,t))??`tree:${e.id}:node:${t}`},Vn=(e,t)=>{var n;t!=null&&((n=e.getById(mS(e,t)))==null||n.focus())};function vS(e,t,n){const r=e.getDescendantValues(t),o=r.every(i=>n.includes(i));return ur(o?En(n,...r):wn(n,...r))}function rs(e,t){const{context:n,prop:r,refs:o}=e;if(!r("loadChildren")){n.set("expandedValue",g=>ur(wn(g,...t)));return}const i=n.get("loadingStatus"),[s,a]=uu(t,g=>i[g]==="loaded");if(s.length>0&&n.set("expandedValue",g=>ur(wn(g,...s))),a.length===0)return;const l=r("collection"),[c,u]=uu(a,g=>{const m=l.findNode(g);return l.getNodeChildren(m).length>0});if(c.length>0&&n.set("expandedValue",g=>ur(wn(g,...c))),u.length===0)return;n.set("loadingStatus",g=>({...g,...u.reduce((m,b)=>({...m,[b]:"loading"}),{})}));const d=u.map(g=>{const m=l.getIndexPath(g),b=l.getValuePath(m),x=l.findNode(g);return{id:g,indexPath:m,valuePath:b,node:x}}),h=o.get("pendingAborts"),p=r("loadChildren");ku(p,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion");const f=d.map(({id:g,indexPath:m,valuePath:b,node:x})=>{const k=h.get(g);k&&(k.abort(),h.delete(g));const C=new AbortController;return h.set(g,C),p({valuePath:b,indexPath:m,node:x,signal:C.signal})});Promise.allSettled(f).then(g=>{var C,S;const m=[],b=[],x=n.get("loadingStatus");let k=r("collection");g.forEach((I,_)=>{const{id:P,indexPath:T,node:N,valuePath:j}=d[_];I.status==="fulfilled"?(x[P]="loaded",m.push(P),k=k.replace(T,{...N,children:I.value})):(h.delete(P),Reflect.deleteProperty(x,P),b.push({node:N,error:I.reason,indexPath:T,valuePath:j}))}),n.set("loadingStatus",x),m.length&&(n.set("expandedValue",I=>ur(wn(I,...m))),(C=r("onLoadChildrenComplete"))==null||C({collection:k})),b.length&&((S=r("onLoadChildrenError"))==null||S({nodes:b}))})}function sn(e){const{prop:t,context:n}=e;return function({indexPath:o}){return t("collection").getValuePath(o).slice(0,-1).some(s=>!n.get("expandedValue").includes(s))}}var{and:Nt}=Zt();Nt("isMultipleSelection","moveFocus"),Nt("isShiftKey","isMultipleSelection"),Nt("isShiftKey","isMultipleSelection"),Nt("isBranchFocused","isBranchExpanded"),Nt("isShiftKey","isMultipleSelection"),Nt("isShiftKey","isMultipleSelection"),Nt("isCtrlKey","isMultipleSelection"),Nt("isShiftKey","isMultipleSelection"),Nt("isCtrlKey","isMultipleSelection"),Nt("isShiftKey","isMultipleSelection"),U()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren"]),U()(["node","indexPath"]);var Vh=G("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");Vh.build(),U()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"]),U()(["item","highlightOnHover"]),U()(["id"]),U()(["htmlFor"]);const bS=Vh.extendWith("empty");var Lh=G("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");Lh.build();var Fh=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`menu:${e.id}:trigger`},yS=e=>{var t;return((t=e.ids)==null?void 0:t.contextTrigger)??`menu:${e.id}:ctx-trigger`},Dh=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`menu:${e.id}:content`},xS=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`menu:${e.id}:popper`},hl=(e,t)=>`${e.id}/${t}`,Ln=e=>(e==null?void 0:e.dataset.value)??null,an=e=>e.getById(Dh(e)),zh=e=>e.getById(xS(e)),os=e=>e.getById(Fh(e)),CS=(e,t)=>t?e.getById(hl(e,t)):null,fl=e=>e.getById(yS(e)),Co=e=>{const n=`[role^="menuitem"][data-ownedby=${CSS.escape(Dh(e))}]:not([data-disabled])`;return Ti(an(e),n)},kS=e=>io(Co(e)),SS=e=>ya(Co(e)),gl=(e,t)=>t?e.id===t||e.dataset.value===t:!1,wS=(e,t)=>{const n=Co(e),r=n.findIndex(o=>gl(o,t.value));return Ib(n,r,{loop:t.loop??t.loopFocus})},ES=(e,t)=>{const n=Co(e),r=n.findIndex(o=>gl(o,t.value));return Rb(n,r,{loop:t.loop??t.loopFocus})},OS=(e,t)=>{const n=Co(e),r=n.find(o=>gl(o,t.value));return co(n,{state:t.typeaheadState,key:t.key,activeId:(r==null?void 0:r.id)??null})},IS=e=>{var t;return!!((t=e==null?void 0:e.getAttribute("role"))!=null&&t.startsWith("menuitem"))&&!!(e!=null&&e.hasAttribute("aria-controls"))},PS="menu:select";function RS(e,t){if(!e)return;const n=Pe(e),r=new n.CustomEvent(PS,{detail:{value:t}});e.dispatchEvent(r)}var{not:ut,and:Er,or:TS}=Zt();ut("isSubmenu"),TS("isOpenAutoFocusEvent","isArrowDownEvent"),Er(ut("isTriggerItem"),"isOpenControlled"),ut("isTriggerItem"),Er("isSubmenu","isOpenControlled"),ut("isPointerSuspended"),Er(ut("isPointerSuspended"),ut("isTriggerItem")),Er(ut("isTriggerItemHighlighted"),ut("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),Er(ut("isTriggerItemHighlighted"),ut("isHighlightedItemEditable"),"closeOnSelect"),Er(ut("isTriggerItemHighlighted"),ut("isHighlightedItemEditable"));function Mh(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t==null||t.send({type:"CLOSE"})}function NS(e,t){return e?QC(e,t):!1}function _S(e,t,n){const r=Object.keys(e).length>0;if(!t)return null;if(!r)return hl(n,t);for(const o in e){const i=e[o],s=Fh(i.scope);if(s===t)return s}return hl(n,t)}U()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","onSelect","open","positioning","typeahead"]),U()(["closeOnSelect","disabled","value","valueText"]),U()(["htmlFor"]),U()(["id"]),U()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);let pl=new Map,ml=!1;try{ml=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let is=!1;try{is=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const $h={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class AS{format(t){let n="";if(!ml&&this.options.signDisplay!=null?n=LS(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!is){var r;let{unit:o,unitDisplay:i="short",locale:s}=this.resolvedOptions();if(!o)return n;let a=(r=$h[o])===null||r===void 0?void 0:r[i];n+=a[s]||a.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!ml&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!is&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=VS(t,n),this.options=n}}function VS(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!is){var r;let{unit:s,unitDisplay:a="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=$h[s])===null||r===void 0)&&r[a]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((s,a)=>s[0]0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=e.format(-n),i=e.format(n),s=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(s,"+").replace("!!!",i)}else return e.format(n)}}const FS=new RegExp("^.*\\(.*\\).*$"),DS=["latn","arab","hanidec","deva","beng","fullwide"];class jh{parse(t){return vl(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return vl(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return vl(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const Bh=new Map;function vl(e,t,n){let r=Wh(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let o of DS)if(o!==r.options.numberingSystem){let i=Wh(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(n))return i}}return r}function Wh(e,t){let n=e+(t?Object.entries(t).sort((o,i)=>o[0]-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var o,i;let s={...this.options,style:"decimal",minimumFractionDigits:Math.min(((o=this.options.minimumFractionDigits)!==null&&o!==void 0?o:0)+2,20),maximumFractionDigits:Math.min(((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)+2,20)};return new jh(this.locale,s).parse(new AS(this.locale,s).format(r))}return this.options.currencySign==="accounting"&&FS.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=ko(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(t=ko(t," ",this.symbols.group),t=ko(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=ko(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=$S(t,this.formatter,this.options,n);var r,o;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const Hh=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),MS=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function $S(e,t,n,r){var o,i,s,a;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),c=l.formatToParts(-10000.111),u=l.formatToParts(10000.111),d=MS.map(N=>l.formatToParts(N));var h;let p=(h=(o=c.find(N=>N.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&h!==void 0?h:"-",f=(i=u.find(N=>N.type==="plusSign"))===null||i===void 0?void 0:i.value;!f&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(f="+");let m=(s=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(N=>N.type==="decimal"))===null||s===void 0?void 0:s.value,b=(a=c.find(N=>N.type==="group"))===null||a===void 0?void 0:a.value,x=c.filter(N=>!Hh.has(N.type)).map(N=>Uh(N.value)),k=d.flatMap(N=>N.filter(j=>!Hh.has(j.type)).map(j=>Uh(j.value))),C=[...new Set([...x,...k])].sort((N,j)=>j.length-N.length),S=C.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${C.join("|")}|[\\p{White_Space}]`,"gu"),I=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),_=new Map(I.map((N,j)=>[N,j])),P=new RegExp(`[${I.join("")}]`,"g");return{minusSign:p,plusSign:f,decimal:m,group:b,literals:S,numeral:P,index:N=>String(_.get(N))}}function ko(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function Uh(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var Gh=G("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");Gh.build();var jS=e=>{var t;return((t=e.ids)==null?void 0:t.input)??`number-input:${e.id}:input`},BS=e=>{var t;return((t=e.ids)==null?void 0:t.incrementTrigger)??`number-input:${e.id}:inc`},WS=e=>{var t;return((t=e.ids)==null?void 0:t.decrementTrigger)??`number-input:${e.id}:dec`},qh=e=>`number-input:${e.id}:cursor`,ss=e=>e.getById(jS(e)),HS=e=>e.getById(BS(e)),US=e=>e.getById(WS(e)),Kh=e=>e.getDoc().getElementById(qh(e)),GS=(e,t)=>{let n=null;return t==="increment"&&(n=HS(e)),t==="decrement"&&(n=US(e)),n},qS=(e,t)=>{if(!Nu())return YS(e,t),()=>{var n;(n=Kh(e))==null||n.remove()}},KS=e=>{const t=e.getDoc(),n=t.documentElement,r=t.body;return r.style.pointerEvents="none",n.style.userSelect="none",n.style.cursor="ew-resize",()=>{r.style.pointerEvents="",n.style.userSelect="",n.style.cursor="",n.style.length||n.removeAttribute("style"),r.style.length||r.removeAttribute("style")}},XS=(e,t)=>{const{point:n,isRtl:r,event:o}=t,i=e.getWin(),s=ka(o.movementX,i.devicePixelRatio),a=ka(o.movementY,i.devicePixelRatio);let l=s>0?"increment":s<0?"decrement":null;r&&l==="increment"&&(l="decrement"),r&&l==="decrement"&&(l="increment");const c={x:n.x+s,y:n.y+a},u=i.innerWidth,d=ka(7.5,i.devicePixelRatio);return c.x=Gb(c.x+d,u)-d,{hint:l,point:c}},YS=(e,t)=>{const n=e.getDoc(),r=n.createElement("div");r.className="scrubber--cursor",r.id=qh(e),Object.assign(r.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:iy,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),r.innerHTML=` -======= - */var ke=typeof Symbol=="function"&&Symbol.for,Zs=ke?Symbol.for("react.element"):60103,ea=ke?Symbol.for("react.portal"):60106,eo=ke?Symbol.for("react.fragment"):60107,to=ke?Symbol.for("react.strict_mode"):60108,no=ke?Symbol.for("react.profiler"):60114,ro=ke?Symbol.for("react.provider"):60109,io=ke?Symbol.for("react.context"):60110,ta=ke?Symbol.for("react.async_mode"):60111,oo=ke?Symbol.for("react.concurrent_mode"):60111,so=ke?Symbol.for("react.forward_ref"):60112,ao=ke?Symbol.for("react.suspense"):60113,fy=ke?Symbol.for("react.suspense_list"):60120,lo=ke?Symbol.for("react.memo"):60115,co=ke?Symbol.for("react.lazy"):60116,gy=ke?Symbol.for("react.block"):60121,py=ke?Symbol.for("react.fundamental"):60117,my=ke?Symbol.for("react.responder"):60118,vy=ke?Symbol.for("react.scope"):60119;function et(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Zs:switch(e=e.type,e){case ta:case oo:case eo:case no:case to:case ao:return e;default:switch(e=e&&e.$$typeof,e){case io:case so:case co:case lo:case ro:return e;default:return t}}case ea:return t}}}function zc(e){return et(e)===oo}se.AsyncMode=ta,se.ConcurrentMode=oo,se.ContextConsumer=io,se.ContextProvider=ro,se.Element=Zs,se.ForwardRef=so,se.Fragment=eo,se.Lazy=co,se.Memo=lo,se.Portal=ea,se.Profiler=no,se.StrictMode=to,se.Suspense=ao,se.isAsyncMode=function(e){return zc(e)||et(e)===ta},se.isConcurrentMode=zc,se.isContextConsumer=function(e){return et(e)===io},se.isContextProvider=function(e){return et(e)===ro},se.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zs},se.isForwardRef=function(e){return et(e)===so},se.isFragment=function(e){return et(e)===eo},se.isLazy=function(e){return et(e)===co},se.isMemo=function(e){return et(e)===lo},se.isPortal=function(e){return et(e)===ea},se.isProfiler=function(e){return et(e)===no},se.isStrictMode=function(e){return et(e)===to},se.isSuspense=function(e){return et(e)===ao},se.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===eo||e===oo||e===no||e===to||e===ao||e===fy||typeof e=="object"&&e!==null&&(e.$$typeof===co||e.$$typeof===lo||e.$$typeof===ro||e.$$typeof===io||e.$$typeof===so||e.$$typeof===py||e.$$typeof===my||e.$$typeof===vy||e.$$typeof===gy)},se.typeOf=et,Dc.exports=se;var by=Dc.exports,Mc=by,yy={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},xy={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},$c={};$c[Mc.ForwardRef]=yy,$c[Mc.Memo]=xy;var Cy=!0;function Bc(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var na=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Cy===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},ra=function(t,n,r){na(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function Sy(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var wy={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},Ey=/[A-Z]|^ms/g,ky=/_EMO_([^_]+?)_([^]*?)_EMO_/g,jc=function(t){return t.charCodeAt(1)===45},Wc=function(t){return t!=null&&typeof t!="boolean"},ia=Oc(function(e){return jc(e)?e:e.replace(Ey,"-$&").toLowerCase()}),Hc=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(ky,function(r,i,o){return kt={name:i,styles:o,next:kt},i})}return wy[t]!==1&&!jc(t)&&typeof n=="number"&&n!==0?n+"px":n};function ti(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return kt={name:i.name,styles:i.styles,next:kt},i.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)kt={name:s.name,styles:s.styles,next:kt},s=s.next;var a=o.styles+";";return a}return Oy(e,t,n)}case"function":{if(e!==void 0){var l=kt,c=n(e);return kt=l,ti(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function Oy(e,t,n){var r="";if(Array.isArray(n))for(var i=0;ir==null?void 0:r(...n))}}const _y=(...e)=>e.map(t=>{var n;return(n=t==null?void 0:t.trim)==null?void 0:n.call(t)}).filter(Boolean).join(" "),Vy=/^on[A-Z]/;function ni(...e){let t={};for(let n of e){for(let r in t){if(Vy.test(r)&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=Ay(t[r],n[r]);continue}if(r==="className"||r==="class"){t[r]=_y(t[r],n[r]);continue}if(r==="style"){t[r]=Object.assign({},t[r]??{},n[r]??{});continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}function Fy(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 Ly(...e){return t=>{e.forEach(n=>{Fy(n,t)})}}function ri(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}const st=(...e)=>e.filter(Boolean).map(t=>t.trim()).join(" ");function Dy(e){return e.default||e}const He=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),Ot=e=>typeof e=="string",ua=e=>typeof e=="function";function zy(e){var n;const t=O.version;return!Ot(t)||t.startsWith("18.")?e==null?void 0:e.ref:(n=e==null?void 0:e.props)==null?void 0:n.ref}const Jc=(...e)=>{const t=e.reduce((n,r)=>(r!=null&&r.forEach(i=>n.add(i)),n),new Set([]));return Array.from(t)};function My(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function lr(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:o,defaultValue:s}=e,a=E.createContext(s);a.displayName=t;function l(){var u;const c=E.useContext(a);if(!c&&n){const d=new Error(o??My(r,i));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[a.Provider,l,a]}const[$y,uo]=lr({name:"ChakraContext",strict:!0,providerName:""});function By(e){const{value:t,children:n}=e;return v.jsxs($y,{value:t,children:[!t._config.disableLayers&&v.jsx(Qc,{styles:t.layers.atRule}),v.jsx(Qc,{styles:t._global}),n]})}const jy=(e,t)=>{const n={},r={},i=Object.keys(e);for(const o of i)t(o)?r[o]=e[o]:n[o]=e[o];return[r,n]},cr=(e,t)=>{const n=ua(t)?t:r=>t.includes(r);return jy(e,n)},Wy=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function Hy(e){return typeof e=="string"&&Wy.has(e)}function Uy(e,t,n){const{css:r,isValidProperty:i}=uo(),{children:o,...s}=e,a=E.useMemo(()=>{const[h,m]=cr(s,x=>n(x,t.variantKeys)),[f,g]=cr(m,t.variantKeys),[p,b]=cr(g,i);return{forwardedProps:h,variantProps:f,styleProps:p,elementProps:b}},[t.variantKeys,n,s,i]),{css:l,...c}=a.styleProps,u=E.useMemo(()=>{const h={...a.variantProps};return t.variantKeys.includes("colorPalette")||(h.colorPalette=s.colorPalette),t.variantKeys.includes("orientation")||(h.orientation=s.orientation),t(h)},[t,a.variantProps,s.colorPalette,s.orientation]);return{styles:E.useMemo(()=>r(u,...Gy(l),c),[r,u,l,c]),props:{...a.forwardedProps,...a.elementProps,children:o}}}const Gy=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),qy=Dy(Db),Ky=e=>e!=="theme",Xy=(e,t,n)=>{let r;if(t){const i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?o=>e.__emotion_forwardProp(o)&&i(o):i}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r};let Yy=typeof document<"u";const Zc=({cache:e,serialized:t,isStringTag:n})=>{na(e,t,n);const r=qc(()=>ra(e,t,n));if(!Yy&&r!==void 0){let i=t.name,o=t.next;for(;o!==void 0;)i=st(i,o.name),o=o.next;return v.jsx("style",{"data-emotion":st(e.key,i),dangerouslySetInnerHTML:{__html:r},nonce:e.sheet.nonce})}return null},eu={path:["d"],text:["x","y"],circle:["cx","cy","r"],rect:["width","height","x","y","rx","ry"],ellipse:["cx","cy","rx","ry"],g:["transform"],stop:["offset","stopOpacity"]},Qy=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),da=((e,t={},n={})=>{if(Qy(eu,e)){n.forwardProps||(n.forwardProps=[]);const c=eu[e];n.forwardProps=Jc([...n.forwardProps,...c])}const r=e.__emotion_real===e,i=r&&e.__emotion_base||e;let o,s;n!==void 0&&(o=n.label,s=n.target);let a=[];const l=sa((c,u,d)=>{var z;const{cva:h,isValidProperty:m}=uo(),f=t.__cva__?t:h(t),g=Jy(e.__emotion_cva,f),p=V=>(B,K)=>V.includes(B)?!0:!(K!=null&&K.includes(B))&&!m(B);!n.shouldForwardProp&&n.forwardProps&&(n.shouldForwardProp=p(n.forwardProps));const b=(V,B)=>{const K=typeof e=="string"&&e.charCodeAt(0)>96?qy:Ky,$=!(B!=null&&B.includes(V))&&!m(V);return K(V)&&$},x=Xy(e,n,r)||b,S=O.useMemo(()=>Object.assign({},n.defaultProps,ri(c)),[c]),{props:C,styles:w}=Uy(S,g,x);let P="",_=[w],R=C;if(C.theme==null){R={};for(let V in C)R[V]=C[V];R.theme=O.useContext(aa)}typeof C.className=="string"?P=Bc(u.registered,_,C.className):C.className!=null&&(P=st(P,C.className));const N=oa(a.concat(_),u.registered,R);N.styles&&(P=st(P,`${u.key}-${N.name}`)),s!==void 0&&(P=st(P,s));const T=!x("as");let j=T&&C.as||i,I={};for(let V in C)if(!(T&&V==="as")){if(Hy(V)){const B=V.replace("html","").toLowerCase();I[B]=C[V];continue}x(V)&&(I[V]=C[V])}let F=P.trim();F?I.className=F:Reflect.deleteProperty(I,"className"),I.ref=d;const Y=n.forwardAsChild||((z=n.forwardProps)==null?void 0:z.includes("asChild"));if(C.asChild&&!Y){const V=O.isValidElement(C.children)?O.Children.only(C.children):O.Children.toArray(C.children).find(O.isValidElement);if(!V)throw new Error("[chakra-ui > factory] No valid child found");j=V.type,I.children=null,Reflect.deleteProperty(I,"asChild"),I=ni(I,V.props),I.ref=Ly(d,zy(V))}return I.as&&Y?(I.as=void 0,v.jsxs(O.Fragment,{children:[v.jsx(Zc,{cache:u,serialized:N,isStringTag:typeof j=="string"}),v.jsx(j,{asChild:!0,...I,children:v.jsx(C.as,{children:I.children})})]})):v.jsxs(O.Fragment,{children:[v.jsx(Zc,{cache:u,serialized:N,isStringTag:typeof j=="string"}),v.jsx(j,{...I})]})});return l.displayName=o!==void 0?o:`chakra(${typeof i=="string"?i:i.displayName||i.name||"Component"})`,l.__emotion_real=l,l.__emotion_base=i,l.__emotion_forwardProp=n.shouldForwardProp,l.__emotion_cva=t,Object.defineProperty(l,"toString",{value(){return`.${s}`}}),l}).bind(),ha=new Map,Oe=new Proxy(da,{apply(e,t,n){return da(...n)},get(e,t){return ha.has(t)||ha.set(t,da(t)),ha.get(t)}}),Jy=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),zt=Oe("div");zt.displayName="Box";const Zy=Object.freeze({}),e0=Object.freeze({});function t0(e){const{key:t,recipe:n}=e,r=uo();return E.useMemo(()=>{const i=n||(t!=null?r.getRecipe(t):{});return r.cva(structuredClone(i))},[t,n,r])}const n0=e=>e.charAt(0).toUpperCase()+e.slice(1);function ii(e){const{key:t,recipe:n}=e,r=n0(t||n.className||"Component"),[i,o]=lr({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`});function s(c){const{unstyled:u,...d}=c,h=t0({key:t,recipe:d.recipe||n}),[m,f]=E.useMemo(()=>h.splitVariantProps(d),[h,d]);return{styles:u?Zy:h(m),className:h.className,props:f}}const a=(c,u)=>{const d=Oe(c,{},u),h=E.forwardRef((m,f)=>{const g=o(),p=E.useMemo(()=>ni(g,m),[m,g]),{styles:b,className:x,props:S}=s(p);return v.jsx(d,{...S,ref:f,css:[b,p.css],className:st(x,p.className)})});return h.displayName=c.displayName||c.name,h};function l(){return i}return{withContext:a,PropsProvider:i,withPropsProvider:l,usePropsContext:o,useRecipeResult:s}}function ho(e){return e==null?[]:Array.isArray(e)?e:[e]}var oi=e=>e[0],fa=e=>e[e.length-1],r0=(e,t)=>e.indexOf(t)!==-1,kn=(e,...t)=>e.concat(t),On=(e,...t)=>e.filter(n=>!t.includes(n)),ur=e=>Array.from(new Set(e)),ga=(e,t)=>{const n=new Set(t);return e.filter(r=>!n.has(r))},dr=(e,t)=>r0(e,t)?On(e,t):kn(e,t);function tu(e,t,n={}){const{step:r=1,loop:i=!0}=n,o=t+r,s=e.length,a=s-1;return t===-1?r>0?0:a:o<0?i?a:0:o>=s?i?0:t>s?s:t:o}function i0(e,t,n={}){return e[tu(e,t,n)]}function o0(e,t,n={}){const{step:r=1,loop:i=!0}=n;return tu(e,t,{step:-r,loop:i})}function s0(e,t,n={}){return e[o0(e,t,n)]}function nu(e,t){return e.reduce(([n,r],i)=>(t(i)?n.push(i):r.push(i),[n,r]),[[],[]])}var ru=e=>(e==null?void 0:e.constructor.name)==="Array",a0=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof(e==null?void 0:e.isEqual)=="function"&&typeof(t==null?void 0:t.isEqual)=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(ru(e)&&ru(t))return a0(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(t??Object.create(null)),r=n.length;for(let i=0;iArray.isArray(e),l0=e=>e===!0||e===!1,iu=e=>e!=null&&typeof e=="object",In=e=>iu(e)&&!si(e),fo=e=>typeof e=="string",Pn=e=>typeof e=="function",c0=e=>e==null,Yt=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u0=e=>Object.prototype.toString.call(e),ou=Function.prototype.toString,d0=ou.call(Object),h0=e=>{if(!iu(e)||u0(e)!="[object Object]"||p0(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const n=Yt(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&ou.call(n)==d0},f0=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,g0=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,p0=e=>f0(e)||g0(e),go=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,m0=e=>e(),v0=()=>{},po=(...e)=>(...t)=>{e.forEach(function(n){n==null||n(...t)})},b0=(()=>{let e=0;return()=>(e++,e.toString(36))})();function Mt(e,t,...n){var i;if(e in t){const o=t[e];return Pn(o)?o(...n):o}const r=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw(i=Error.captureStackTrace)==null||i.call(Error,r,Mt),r}var su=(e,t)=>{var n;try{return e()}catch(r){return r instanceof Error&&((n=Error.captureStackTrace)==null||n.call(Error,r,su)),t==null?void 0:t()}},{floor:au,abs:lu,round:mo,min:y0,max:x0,pow:C0,sign:S0}=Math,pa=e=>Number.isNaN(e),Qt=e=>pa(e)?0:e,cu=(e,t)=>(e%t+t)%t,w0=(e,t)=>(e%t+t)%t,E0=(e,t)=>Qt(e)>=t,k0=(e,t)=>Qt(e)<=t,O0=(e,t,n)=>{const r=Qt(e),i=t==null||r>=t,o=n==null||r<=n;return i&&o},I0=(e,t,n)=>mo((Qt(e)-t)/n)*n+t,Ue=(e,t,n)=>y0(x0(Qt(e),t),n),P0=(e,t,n)=>(Qt(e)-t)/(n-t),R0=(e,t,n,r)=>Ue(I0(e*(n-t)+t,t,r),t,n),uu=(e,t)=>{let n=e,r=t.toString(),i=r.indexOf("."),o=i>=0?r.length-i:0;if(o>0){let s=C0(10,o);n=mo(n*s)/s}return n},ma=(e,t)=>typeof t=="number"?au(e*t+.5)/t:mo(e),du=(e,t,n,r)=>{const i=t!=null?Number(t):0,o=Number(n),s=(e-i)%r;let a=lu(s)*2>=r?e+S0(s)*(r-lu(s)):e-s;if(a=uu(a,r),!pa(i)&&ao){const l=au((o-i)/r),c=i+l*r;a=l<=0||c{const r=Math.pow(n,t);return mo(e*r)/r},hu=e=>{if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n},fu=(e,t,n)=>{let r=t==="+"?e+n:e-n;if(e%1!==0||n%1!==0){const i=10**Math.max(hu(e),hu(n));e=Math.round(e*i),n=Math.round(n*i),r=t==="+"?e+n:e-n,r/=i}return r},T0=(e,t)=>fu(Qt(e),"+",t),N0=(e,t)=>fu(Qt(e),"-",t);function vo(e){if(!h0(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),n={};for(const r of t){const i=e[r];i!==void 0&&(n[r]=vo(i))}return n}function A0(e,t=Object.is){let n={...e};const r=new Set,i=u=>(r.add(u),()=>r.delete(u)),o=()=>{r.forEach(u=>u())};return{subscribe:i,get:u=>n[u],set:(u,d)=>{t(n[u],d)||(n[u]=d,o())},update:u=>{let d=!1;for(const h in u){const m=u[h];m!==void 0&&!t(n[h],m)&&(n[h]=m,d=!0)}d&&o()},snapshot:()=>({...n})}}function ai(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function gu(e,t){if(e==null)throw new Error(t())}function _0(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function hr(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:i="Provider",errorMessage:o,defaultValue:s}=e,a=E.createContext(s);a.displayName=t;function l(){var u;const c=E.useContext(a);if(!c&&n){const d=new Error(o??_0(r,i));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[a.Provider,l,a]}const[t5,pu]=hr({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});function V0(e){if(!e)return;const t=e.selectionStart??0,n=e.selectionEnd??0;Math.abs(n-t)===0&&t===0&&e.setSelectionRange(e.value.length,e.value.length)}var mu=e=>Math.max(0,Math.min(1,e)),F0=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]),vu=()=>{},bo=e=>typeof e=="object"&&e!==null,L0=2147483647,D0=1,z0=9,M0=11,Me=e=>bo(e)&&e.nodeType===D0&&typeof e.nodeName=="string",va=e=>bo(e)&&e.nodeType===z0,$0=e=>bo(e)&&e===e.window,bu=e=>Me(e)?e.localName||"":"#document";function B0(e){return["html","body","#document"].includes(bu(e))}var j0=e=>bo(e)&&e.nodeType!==void 0,fr=e=>j0(e)&&e.nodeType===M0&&"host"in e,W0=e=>Me(e)&&e.localName==="input",H0=e=>Me(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,U0=/(textarea|select)/;function yu(e){if(e==null||!Me(e))return!1;try{return W0(e)&&e.selectionStart!=null||U0.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Rn(e,t){var r;if(!e||!t||!Me(e)||!Me(t))return!1;const n=(r=t.getRootNode)==null?void 0:r.call(t);if(e===t||e.contains(t))return!0;if(n&&fr(n)){let i=t;for(;i;){if(e===i)return!0;i=i.parentNode||i.host}}return!1}function Ge(e){return va(e)?e:$0(e)?e.document:(e==null?void 0:e.ownerDocument)??document}function G0(e){return Ge(e).documentElement}function Ie(e){var t;return fr(e)?Ie(e.host):va(e)?e.defaultView??window:Me(e)?((t=e.ownerDocument)==null?void 0:t.defaultView)??window:window}function xu(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function q0(e){if(bu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fr(e)&&e.host||G0(e);return fr(t)?t.host:t}var ba=new WeakMap;function yo(e){return ba.has(e)||ba.set(e,Ie(e).getComputedStyle(e)),ba.get(e)}var xo=()=>typeof document<"u";function K0(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}function X0(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}var ya=e=>xo()&&e.test(K0()),Cu=e=>xo()&&e.test(X0()),Y0=e=>xo()&&e.test(navigator.vendor),Su=()=>xo()&&!!navigator.maxTouchPoints,Q0=()=>ya(/^iPhone/i),J0=()=>ya(/^iPad/i)||So()&&navigator.maxTouchPoints>1,Co=()=>Q0()||J0(),Z0=()=>So()||Co(),So=()=>ya(/^Mac/i),wu=()=>Z0()&&Y0(/apple/i),ex=()=>Cu(/Firefox/i),tx=()=>Cu(/Android/i);function nx(e){var t,n,r;return((t=e.composedPath)==null?void 0:t.call(e))??((r=(n=e.nativeEvent)==null?void 0:n.composedPath)==null?void 0:r.call(n))}function tt(e){const t=nx(e);return(t==null?void 0:t[0])??e.target}function rx(e){return ax(e).isComposing||e.keyCode===229}function ix(e){return e.pointerType===""&&e.isTrusted?!0:tx()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var ox=e=>e.button===2||So()&&e.ctrlKey&&e.button===0,sx=e=>"touches"in e&&e.touches.length>0;function ax(e){return e.nativeEvent??e}function lx(e,t="client"){const n=sx(e)?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var he=(e,t,n,r)=>{const i=typeof e=="function"?e():e;return i==null||i.addEventListener(t,n,r),()=>{i==null||i.removeEventListener(t,n,r)}};function cx(e,t){const{type:n="HTMLInputElement",property:r="value"}=t,i=Ie(e)[n].prototype;return Object.getOwnPropertyDescriptor(i,r)??{}}function ux(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function wo(e,t,n="value"){var i;if(!e)return;const r=ux(e);r&&((i=cx(e,{type:r,property:n}).set)==null||i.call(e,t)),e.setAttribute(n,t)}function dx(e,t){const{value:n,bubbles:r=!0}=t;if(!e)return;const i=Ie(e);e instanceof i.HTMLInputElement&&(wo(e,`${n}`),e.dispatchEvent(new i.Event("input",{bubbles:r})))}function hx(e){return fx(e)?e.form:e.closest("form")}function fx(e){return e.matches("textarea, input, select, button")}function gx(e,t){if(!e)return;const n=hx(e),r=i=>{i.defaultPrevented||t()};return n==null||n.addEventListener("reset",r,{passive:!0}),()=>n==null?void 0:n.removeEventListener("reset",r)}function px(e,t){const n=e==null?void 0:e.closest("fieldset");if(!n)return;t(n.disabled);const r=Ie(n),i=new r.MutationObserver(()=>t(n.disabled));return i.observe(n,{attributes:!0,attributeFilter:["disabled"]}),()=>i.disconnect()}function xa(e,t){if(!e)return;const{onFieldsetDisabledChange:n,onFormReset:r}=t,i=[gx(e,r),px(e,n)];return()=>i.forEach(o=>o==null?void 0:o())}var Eu=e=>Me(e)&&e.tagName==="IFRAME",mx=e=>!Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10)),vx=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,Ca="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",ku=(e,t=!1)=>{if(!e)return[];const n=Array.from(e.querySelectorAll(Ca));(t==!0||t=="if-empty"&&n.length===0)&&Me(e)&&Jt(e)&&n.unshift(e);const i=n.filter(Jt);return i.forEach((o,s)=>{if(Eu(o)&&o.contentDocument){const a=o.contentDocument.body;i.splice(s,1,...ku(a))}}),i};function Jt(e){return!e||e.closest("[inert]")?!1:e.matches(Ca)&&H0(e)}function Sa(e,t){if(!e)return[];const r=Array.from(e.querySelectorAll(Ca)).filter(Tn);return r.forEach((i,o)=>{if(Eu(i)&&i.contentDocument){const s=i.contentDocument.body,a=Sa(s);r.splice(o,1,...a)}}),r.length,r}function Tn(e){return e!=null&&e.tabIndex>0?!0:Jt(e)&&!vx(e)}function li(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||yu(e))&&!mx(e)?0:e.tabIndex}function wa(e){const{root:t,getInitialEl:n,filter:r,enabled:i=!0}=e;if(!i)return;let o=null;if(o||(o=typeof n=="function"?n():n),o||(o=t==null?void 0:t.querySelector("[data-autofocus],[autofocus]")),!o){const s=Sa(t);o=r?s.filter(r)[0]:s[0]}return o||t||void 0}function Ea(e){const t=new Set;function n(r){const i=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(i))}return n(()=>n(e)),function(){t.forEach(i=>i())}}function Z(e){let t;const n=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(n),t==null||t()}}function bx(e,t,n){const r=Z(()=>{e.removeEventListener(t,i,!0),n()}),i=()=>{r(),n()};return e.addEventListener(t,i,{once:!0,capture:!0}),r}function yx(e,t){if(!e)return;const{attributes:n,callback:r}=t,i=e.ownerDocument.defaultView||window,o=new i.MutationObserver(s=>{for(const a of s)a.type==="attributes"&&a.attributeName&&n.includes(a.attributeName)&&r(a)});return o.observe(e,{attributes:!0,attributeFilter:n}),()=>o.disconnect()}function Eo(e,t){const{defer:n}=t,r=n?Z:o=>o(),i=[];return i.push(r(()=>{const o=typeof e=="function"?e():e;i.push(yx(o,t))})),()=>{i.forEach(o=>o==null?void 0:o())}}function Ou(e){const t=()=>{const n=Ie(e);e.dispatchEvent(new n.MouseEvent("click"))};ex()?bx(e,"keyup",t):queueMicrotask(t)}function ko(e){const t=q0(e);return B0(t)?Ge(t).body:Me(t)&&ka(t)?t:ko(t)}function Iu(e,t=[]){const n=ko(e),r=n===e.ownerDocument.body,i=Ie(n);return r?t.concat(i,i.visualViewport||[],ka(n)?n:[]):t.concat(n,Iu(n,[]))}var xx=/auto|scroll|overlay|hidden|clip/,Cx=new Set(["inline","contents"]);function ka(e){const t=Ie(e),{overflow:n,overflowX:r,overflowY:i,display:o}=t.getComputedStyle(e);return xx.test(n+i+r)&&!Cx.has(o)}function Sx(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Oo(e,t){const{rootEl:n,...r}=t||{};!e||!n||!ka(n)||!Sx(n)||e.scrollIntoView(r)}function Pu(e,t){const{left:n,top:r,width:i,height:o}=t.getBoundingClientRect(),s={x:e.x-n,y:e.y-r},a={x:mu(s.x/i),y:mu(s.y/o)};function l(c={}){const{dir:u="ltr",orientation:d="horizontal",inverted:h}=c,m=typeof h=="object"?h.x:h,f=typeof h=="object"?h.y:h;return d==="horizontal"?u==="rtl"||m?1-a.x:a.x:f?1-a.y:a.y}return{offset:s,percent:a,getPercentValue:l}}function wx(e,t){const n=e.body,r="pointerLockElement"in e||"mozPointerLockElement"in e,i=()=>!!e.pointerLockElement;function o(){}function s(l){i(),console.error("PointerLock error occurred:",l),e.exitPointerLock()}if(!r)return;try{n.requestPointerLock()}catch{}const a=[he(e,"pointerlockchange",o,!1),he(e,"pointerlockerror",s,!1)];return()=>{a.forEach(l=>l()),e.exitPointerLock()}}var gr="default",Oa="",Io=new WeakMap;function Ex(e={}){const{target:t,doc:n}=e,r=n??document,i=r.documentElement;return Co()?(gr==="default"&&(Oa=i.style.webkitUserSelect,i.style.webkitUserSelect="none"),gr="disabled"):t&&(Io.set(t,t.style.userSelect),t.style.userSelect="none"),()=>kx({target:t,doc:r})}function kx(e={}){const{target:t,doc:n}=e,i=(n??document).documentElement;if(Co()){if(gr!=="disabled")return;gr="restoring",setTimeout(()=>{Ea(()=>{gr==="restoring"&&(i.style.webkitUserSelect==="none"&&(i.style.webkitUserSelect=Oa||""),Oa="",gr="default")})},300)}else if(t&&Io.has(t)){const o=Io.get(t);t.style.userSelect==="none"&&(t.style.userSelect=o??""),t.getAttribute("style")===""&&t.removeAttribute("style"),Io.delete(t)}}function Ru(e={}){const{defer:t,target:n,...r}=e,i=t?Z:s=>s(),o=[];return o.push(i(()=>{const s=typeof n=="function"?n():n;o.push(Ex({...r,target:s}))})),()=>{o.forEach(s=>s==null?void 0:s())}}function Ox(e,t){const{onPointerMove:n,onPointerUp:r}=t,o=[he(e,"pointermove",s=>{const a=lx(s),l=Math.sqrt(a.x**2+a.y**2),c=s.pointerType==="touch"?10:5;if(!(l{o.forEach(s=>s())}}function Po(e,t){return Array.from((e==null?void 0:e.querySelectorAll(t))??[])}function Ix(e,t){return(e==null?void 0:e.querySelector(t))??null}var Ia=e=>e.id;function Px(e,t,n=Ia){return e.find(r=>n(r)===t)}function Pa(e,t,n=Ia){const r=Px(e,t,n);return r?e.indexOf(r):-1}function Rx(e,t,n=!0){let r=Pa(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function Tx(e,t,n=!0){let r=Pa(e,t);return r===-1?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}var Nx=e=>e.split("").map(t=>{const n=t.charCodeAt(0);return n>0&&n<128?t:n>=128&&n<=255?`/x${n.toString(16)}`.replace("/","\\"):""}).join("").trim(),Ax=e=>{var t;return Nx(((t=e.dataset)==null?void 0:t.valuetext)??e.textContent??"")},_x=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function Vx(e,t,n,r=Ia){const i=n?Pa(e,n,r):-1;let o=n?F0(e,i):e;return t.length===1&&(o=o.filter(a=>r(a)!==n)),o.find(a=>_x(Ax(a),t))}function Ro(e,t){if(!e)return vu;const n=Object.keys(t).reduce((r,i)=>(r[i]=e.style.getPropertyValue(i),r),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute("style")}}function Fx(e,t,n){if(!e)return vu;const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute("style")}}function Lx(e,t){const{state:n,activeId:r,key:i,timeout:o=350,itemToId:s}=t,a=n.keysSoFar+i,c=a.length>1&&Array.from(a).every(f=>f===a[0])?a[0]:a;let u=e.slice();const d=Vx(u,c,r,s);function h(){clearTimeout(n.timer),n.timer=-1}function m(f){n.keysSoFar=f,h(),f!==""&&(n.timer=+setTimeout(()=>{m(""),h()},o))}return m(a),d}var ci=Object.assign(Lx,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:Dx});function Dx(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}function zx(e,t,n){const{signal:r}=t;return[new Promise((s,a)=>{const l=setTimeout(()=>{a(new Error(`Timeout of ${n}ms exceeded`))},n);r.addEventListener("abort",()=>{clearTimeout(l),a(new Error("Promise aborted"))}),e.then(c=>{r.aborted||(clearTimeout(l),s(c))}).catch(c=>{r.aborted||(clearTimeout(l),a(c))})}),()=>t.abort()]}function Mx(e,t){const{timeout:n,rootNode:r}=t,i=Ie(r),o=Ge(r),s=new i.AbortController;return zx(new Promise(a=>{const l=e();if(l){a(l);return}const c=new i.MutationObserver(()=>{const u=e();u&&u.isConnected&&(c.disconnect(),a(u))});c.observe(o.body,{childList:!0,subtree:!0})}),s,n)}var $x=(...e)=>e.map(t=>{var n;return(n=t==null?void 0:t.trim)==null?void 0:n.call(t)}).filter(Boolean).join(" "),Bx=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,Tu=e=>{const t={};let n;for(;n=Bx.exec(e);)t[n[1]]=n[2];return t},jx=(e,t)=>{if(fo(e)){if(fo(t))return`${e};${t}`;e=Tu(e)}else fo(t)&&(t=Tu(t));return Object.assign({},e??{},t??{})};function pt(...e){let t={};for(let n of e){for(let r in t){if(r.startsWith("on")&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=po(n[r],t[r]);continue}if(r==="className"||r==="class"){t[r]=$x(t[r],n[r]);continue}if(r==="style"){t[r]=jx(t[r],n[r]);continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}function Nu(e,t,n){let r=[],i;return o=>{const s=e(o);return(s.length!==r.length||s.some((l,c)=>!gt(r[c],l)))&&(r=s,i=t(...s)),i}}function Zt(){return{and:(...e)=>function(n){return e.every(r=>n.guard(r))},or:(...e)=>function(n){return e.some(r=>n.guard(r))},not:e=>function(n){return!n.guard(e)}}}function n5(e){return e}function Au(){return{guards:Zt(),createMachine:e=>e,choose:e=>function({choose:n}){var r;return(r=n(e))==null?void 0:r.actions}}}var pr=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(pr||{}),Ra="__init__";function Wx(e){const t=()=>{var a;return((a=e.getRootNode)==null?void 0:a.call(e))??document},n=()=>Ge(t()),r=()=>n().defaultView??window,i=()=>xu(t());return{...e,getRootNode:t,getDoc:n,getWin:r,getActiveElement:i,isActiveElement:a=>a===i(),getById:a=>t().getElementById(a)}}function To(...e){return t=>{const n=[];for(const r of e)if(typeof r=="function"){const i=r(t);typeof i=="function"&&n.push(i)}else r&&(r.current=t);if(n.length)return()=>{for(const r of n)r()}}}function Hx(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Ta=e=>{const t=E.memo(E.forwardRef((n,r)=>{const{asChild:i,children:o,...s}=n;if(!i)return E.createElement(e,{...s,ref:r},o);if(!E.isValidElement(o))return null;const a=E.Children.only(o),l=Hx(a);return E.cloneElement(a,{...pt(s,a.props),ref:r?To(r,l):l})}));return t.displayName=e.displayName||e.name,t},en=(()=>{const e=new Map;return new Proxy(Ta,{apply(t,n,r){return Ta(r[0])},get(t,n){const r=n;return e.has(r)||e.set(r,Ta(r)),e.get(r)}})})(),[i5,Ux]=hr({name:"LocaleContext",hookName:"useLocaleContext",providerName:"",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),_u=()=>(e,t)=>t.reduce((n,r)=>{const[i,o]=n,s=r;return o[s]!==void 0&&(i[s]=o[s]),delete o[s],[i,o]},[{},{...e}]),Vu=e=>_u()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function Gx(e){return new Proxy({},{get(t,n){return n==="style"?r=>e({style:r}).style:e}})}var U=()=>e=>Array.from(new Set(e));function qx(e,t){const{state:n,send:r,context:i}=e,o=n.matches("mounted","unmountSuspended");return{skip:!i.get("initial"),present:o,setNode(s){s&&r({type:"NODE.SET",node:s})},unmount(){r({type:"UNMOUNT"})}}}var Kx={props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["clearInitial","cleanupNode"],watch({track:e,prop:t,send:n}){e([()=>t("present")],()=>{n({type:"PRESENCE.CHANGED"})})},on:{"NODE.SET":{actions:["setupNode"]},"PRESENCE.CHANGED":{actions:["setInitial","syncPresence"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},invokeOnExitComplete:({prop:e})=>{var t;(t=e("onExitComplete"))==null||t()},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",yo(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:n,prop:r})=>{const i=r("present");if(i)return n({type:"MOUNT",src:"presence.changed"});const o=t.get("node");if(!i&&(o==null?void 0:o.ownerDocument.visibilityState)==="hidden")return n({type:"UNMOUNT",src:"visibilitychange"});Z(()=>{var a,l;const s=No(t.get("styles"));e.set("unmountAnimationName",s),s==="none"||s===e.get("prevAnimationName")||((a=t.get("styles"))==null?void 0:a.display)==="none"||((l=t.get("styles"))==null?void 0:l.animationDuration)==="0s"?n({type:"UNMOUNT",src:"presence.changed"}):n({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{Z(()=>{e.set("prevAnimationName",No(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:n})=>{const r=t.get("node");if(!r)return;const i=a=>{var c,u;(((u=(c=a.composedPath)==null?void 0:c.call(a))==null?void 0:u[0])??a.target)===r&&e.set("prevAnimationName",No(t.get("styles")))},o=a=>{const l=No(t.get("styles"));tt(a)===r&&l===e.get("unmountAnimationName")&&n({type:"UNMOUNT",src:"animationend"})};r.addEventListener("animationstart",i),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o);const s=Ro(r,{animationFillMode:"forwards"});return()=>{r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o),Ea(()=>s())}}}}};function No(e){return(e==null?void 0:e.animationName)||"none"}U()(["onExitComplete","present","immediate"]);var Fu=typeof globalThis.document<"u"?E.useLayoutEffect:E.useEffect;function Ao(e){const t=e().value??e().defaultValue,n=e().isEqual??Object.is,[r]=E.useState(t),[i,o]=E.useState(r),s=e().value!==void 0,a=E.useRef(i);a.current=s?e().value:i;const l=E.useRef(a.current);Fu(()=>{l.current=a.current},[i,e().value]);const c=d=>{var f,g;const h=l.current,m=Pn(d)?d(h):d;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:m,prev:h}),s||o(m),n(m,h)||(g=(f=e()).onChange)==null||g.call(f,m,h)};function u(){return s?e().value:i}return{initial:r,ref:a,get:u,set(d){(e().sync?te.flushSync:m0)(()=>c(d))},invoke(d,h){var m,f;(f=(m=e()).onChange)==null||f.call(m,d,h)},hash(d){var h,m;return((m=(h=e()).hash)==null?void 0:m.call(h,d))??String(d)}}}Ao.cleanup=e=>{E.useEffect(()=>e,[])},Ao.ref=e=>{const t=E.useRef(e);return{get:()=>t.current,set:n=>{t.current=n}}};function Xx(e){const t=E.useRef(e);return{get(n){return t.current[n]},set(n,r){t.current[n]=r}}}var Yx=(e,t)=>{const n=E.useRef(!1),r=E.useRef(!1);E.useEffect(()=>{if(n.current&&r.current)return t();r.current=!0},[...(e??[]).map(i=>typeof i=="function"?i():i)]),E.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function Lu(e,t={}){var j,I,F,Y;const n=E.useMemo(()=>{const{id:z,ids:V,getRootNode:B}=t;return Wx({id:z,ids:V,getRootNode:B})},[t]),r=(...z)=>{e.debug&&console.log(...z)},i=((j=e.props)==null?void 0:j.call(e,{props:vo(t),scope:n}))??t,o=Qx(i),s=(I=e.context)==null?void 0:I.call(e,{prop:o,bindable:Ao,scope:n,flush:zu,getContext(){return l},getComputed(){return w},getRefs(){return g},getEvent(){return m()}}),a=Du(s),l={get(z){var V;return(V=a.current)==null?void 0:V[z].ref.current},set(z,V){var B;(B=a.current)==null||B[z].set(V)},initial(z){var V;return(V=a.current)==null?void 0:V[z].initial},hash(z){var B,K;const V=(B=a.current)==null?void 0:B[z].get();return(K=a.current)==null?void 0:K[z].hash(V)}},c=E.useRef(new Map),u=E.useRef(null),d=E.useRef(null),h=E.useRef({type:""}),m=()=>({...h.current,current(){return h.current},previous(){return d.current}}),f=()=>({...P,matches(...z){return z.includes(P.ref.current)},hasTag(z){var V,B;return!!((B=(V=e.states[P.ref.current])==null?void 0:V.tags)!=null&&B.includes(z))}}),g=Xx(((F=e.refs)==null?void 0:F.call(e,{prop:o,context:l}))??{}),p=()=>({state:f(),context:l,event:m(),prop:o,send:T,action:b,guard:x,track:Yx,refs:g,computed:w,flush:zu,scope:n,choose:C}),b=z=>{const V=Pn(z)?z(p()):z;if(!V)return;const B=V.map(K=>{var H,X;const $=(X=(H=e.implementations)==null?void 0:H.actions)==null?void 0:X[K];return $||ai(`[zag-js] No implementation found for action "${JSON.stringify(K)}"`),$});for(const K of B)K==null||K(p())},x=z=>{var V,B;return Pn(z)?z(p()):(B=(V=e.implementations)==null?void 0:V.guards)==null?void 0:B[z](p())},S=z=>{const V=Pn(z)?z(p()):z;if(!V)return;const B=V.map($=>{var X,ue;const H=(ue=(X=e.implementations)==null?void 0:X.effects)==null?void 0:ue[$];return H||ai(`[zag-js] No implementation found for effect "${JSON.stringify($)}"`),H}),K=[];for(const $ of B){const H=$==null?void 0:$(p());H&&K.push(H)}return()=>K.forEach($=>$==null?void 0:$())},C=z=>ho(z).find(V=>{let B=!V.guard;return fo(V.guard)?B=!!x(V.guard):Pn(V.guard)&&(B=V.guard(p())),B}),w=z=>{gu(e.computed,()=>"[zag-js] No computed object found on machine");const V=e.computed[z];return V({context:l,event:m(),prop:o,refs:g,scope:n,computed:w})},P=Ao(()=>({defaultValue:e.initialState({prop:o}),onChange(z,V){var K,$,H,X;if(V){const ue=c.current.get(V);ue==null||ue(),c.current.delete(V)}V&&b((K=e.states[V])==null?void 0:K.exit),b(($=u.current)==null?void 0:$.actions);const B=S((H=e.states[z])==null?void 0:H.effects);if(B&&c.current.set(z,B),V===Ra){b(e.entry);const ue=S(e.effects);ue&&c.current.set(Ra,ue)}b((X=e.states[z])==null?void 0:X.entry)}})),_=E.useRef(void 0),R=E.useRef(pr.NotStarted);Fu(()=>{queueMicrotask(()=>{const B=R.current===pr.Started;R.current=pr.Started,r(B?"rehydrating...":"initializing...");const K=_.current??P.initial;P.invoke(K,B?P.get():Ra)});const z=c.current,V=P.ref.current;return()=>{r("unmounting..."),_.current=V,R.current=pr.Stopped,z.forEach(B=>B==null?void 0:B()),c.current=new Map,u.current=null,queueMicrotask(()=>{b(e.exit)})}},[]);const N=()=>"ref"in P?P.ref.current:P.get(),T=z=>{queueMicrotask(()=>{var X,ue;if(R.current!==pr.Started)return;d.current=h.current,h.current=z;let V=N();const B=((X=e.states[V].on)==null?void 0:X[z.type])??((ue=e.on)==null?void 0:ue[z.type]),K=C(B);if(!K)return;u.current=K;const $=K.target??V;r("transition",z.type,K.target||V,`(${K.actions})`);const H=$!==V;H?te.flushSync(()=>P.set($)):K.reenter&&!H?P.invoke(V,V):b(K.actions??[])})};return(Y=e.watch)==null||Y.call(e,p()),{state:f(),send:T,context:l,prop:o,scope:n,refs:g,computed:w,event:m(),getStatus:()=>R.current}}function Du(e){const t=E.useRef(e);return t.current=e,t}function Qx(e){const t=Du(e);return function(r){return t.current[r]}}function zu(e){queueMicrotask(()=>{te.flushSync(()=>e())})}var Jx=Gx(e=>e);function Zx(e,t={}){const{sync:n=!1}=t,r=e1(e);return E.useCallback((...i)=>{var o;return n?queueMicrotask(()=>{var s;return(s=r.current)==null?void 0:s.call(r,...i)}):(o=r.current)==null?void 0:o.call(r,...i)},[n,r])}function e1(e){const t=E.useRef(e);return t.current=e,t}const Na=(e={})=>{const{lazyMount:t,unmountOnExit:n,present:r,skipAnimationOnMount:i=!1,...o}=e,s=E.useRef(!1),a={...o,present:r,onExitComplete:Zx(e.onExitComplete)},l=Lu(Kx,a),c=qx(l);c.present&&(s.current=!0);const u=!c.present&&!s.current&&t||n&&!c.present&&s.current,d=()=>({"data-state":c.skip&&i?void 0:r?"open":"closed",hidden:!c.present});return{ref:c.setNode,getPresenceProps:d,present:c.present,unmounted:u}},[Mu,Aa]=hr({name:"PresenceContext",hookName:"usePresenceContext",providerName:""}),_o=Oe("span"),{withContext:t1}=ii({key:"text"}),n1=t1("p");function $u(e,t=[]){const n=E.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return E.useInsertionEffect(()=>{n.current=e}),E.useCallback((...r)=>{var i;return(i=n.current)==null?void 0:i.call(n,...r)},t)}function Bu(e={}){const t=$u(e.onOpen),n=$u(e.onClose),[r,i]=E.useState(e.defaultOpen||!1),o=e.open!==void 0?e.open:r,s=e.open!==void 0,a=E.useCallback(()=>{s||i(!1),n==null||n()},[s,n]),l=E.useCallback(()=>{s||i(!0),t==null||t()},[s,t]),c=E.useCallback(()=>{o?a():l()},[o,l,a]);return{open:o,onOpen:l,onClose:a,onToggle:c,setOpen:i}}var G=(e,t=[])=>({parts:(...n)=>{if(r1(t))return G(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>G(e,[...t,...n]),omit:(...n)=>G(e,t.filter(r=>!n.includes(r))),rename:n=>G(n,t),keys:()=>t,build:()=>[...new Set(t)].reduce((n,r)=>Object.assign(n,{[r]:{selector:[`&[data-scope="${mr(e)}"][data-part="${mr(r)}"]`,`& [data-scope="${mr(e)}"][data-part="${mr(r)}"]`].join(", "),attrs:{"data-scope":mr(e),"data-part":mr(r)}}}),{})}),mr=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),r1=e=>e.length===0,ju=G("collapsible").parts("root","trigger","content","indicator");ju.build(),U()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);var i1=Object.defineProperty,o1=(e,t,n)=>t in e?i1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_a=(e,t,n)=>o1(e,t+"",n),s1=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0},Va=class{toHexInt(){return this.toFormat("rgba").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}getChannelValuePercent(e,t){const n=t??this.getChannelValue(e),{minValue:r,maxValue:i}=this.getChannelRange(e);return P0(n,r,i)}getChannelPercentValue(e,t){const{minValue:n,maxValue:r,step:i}=this.getChannelRange(e),o=R0(t,n,r,i);return du(o,n,r,i)}withChannelValue(e,t){const{minValue:n,maxValue:r}=this.getChannelRange(e);if(e in this){let i=this.clone();return i[e]=Ue(t,n,r),i}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:n}=e,r=t||this.getChannels().find(s=>s!==n),i=n||this.getChannels().find(s=>s!==r),o=this.getChannels().find(s=>s!==r&&s!==i);return{xChannel:r,yChannel:i,zChannel:o}}incrementChannel(e,t){const{minValue:n,maxValue:r,step:i}=this.getChannelRange(e),o=du(Ue(this.getChannelValue(e)+t,n,r),n,r,i);return this.withChannelValue(e,o)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return s1(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},a1=/^#[\da-f]+$/i,l1=/^rgba?\((.*)\)$/,c1=/[^#]/gi,Wu=class Ws extends Va{constructor(t,n,r,i){super(),this.red=t,this.green=n,this.blue=r,this.alpha=i}static parse(t){let n=[];if(a1.test(t)&&[4,5,7,9].includes(t.length)){const i=(t.length<6?t.replace(c1,"$&$&"):t).slice(1).split("");for(;i.length>0;)n.push(parseInt(i.splice(0,2).join(""),16));n[3]=n[3]!==void 0?n[3]/255:void 0}const r=t.match(l1);return r!=null&&r[1]&&(n=r[1].split(",").map(i=>Number(i.trim())).map((i,o)=>Ue(i,0,o<3?255:1))),n.length<3?void 0:new Ws(n[0],n[1],n[2],n[3]??1)}toString(t){switch(t){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(this.alpha*255).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"hsb":return this.toHSB().toString("hsb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+t)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const t=this.red/255,n=this.green/255,r=this.blue/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=o-i,a=o===0?0:s/o;let l=0;if(s!==0){switch(o){case t:l=(n-r)/s+(nNumber(a.trim().replace("%","")));return new Hs(cu(r,360),Ue(i,0,100),Ue(o,0,100),Ue(s??1,0,1))}}toString(t){switch(t){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${ce(this.saturation,2)}%, ${ce(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${ce(this.saturation,2)}%, ${ce(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+t)}}toHSB(){let t=this.saturation/100,n=this.lightness/100,r=n+t*Math.min(n,1-n);return t=r===0?0:2*(1-n/r),new Da(ce(this.hue,2),ce(t*100,2),ce(r*100,2),ce(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.lightness/100,i=n*Math.min(r,1-r),o=(s,a=(s+t/30)%12)=>r-i*Math.max(Math.min(a-3,9-a,1),-1);return new Fa(Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255),ce(this.alpha,2))}clone(){return new Hs(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),i=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(i/=100),new Intl.NumberFormat(n,r).format(i)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return Hs.colorChannels}};_a(Hu,"colorChannels",["hue","saturation","lightness"]);var La=Hu,d1=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,Uu=class Us extends Va{constructor(t,n,r,i){super(),this.hue=t,this.saturation=n,this.brightness=r,this.alpha=i}static parse(t){let n;if(n=t.match(d1)){const[r,i,o,s]=(n[1]??n[2]).split(",").map(a=>Number(a.trim().replace("%","")));return new Us(cu(r,360),Ue(i,0,100),Ue(o,0,100),Ue(s??1,0,1))}}toString(t){switch(t){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${ce(this.saturation,2)}%, ${ce(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${ce(this.saturation,2)}%, ${ce(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+t)}}toHSL(){let t=this.saturation/100,n=this.brightness/100,r=n*(1-t/2);return t=r===0||r===1?0:(n-r)/Math.min(r,1-r),new La(ce(this.hue,2),ce(t*100,2),ce(r*100,2),ce(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.brightness/100,i=(o,s=(o+t/60)%6)=>r-n*r*Math.max(Math.min(s,4-s,1),0);return new Fa(Math.round(i(5)*255),Math.round(i(3)*255),Math.round(i(1)*255),ce(this.alpha,2))}clone(){return new Us(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),i=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(i/=100),new Intl.NumberFormat(n,r).format(i)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return Us.colorChannels}};_a(Uu,"colorChannels",["hue","saturation","brightness"]);var Da=Uu,h1="aliceblue:f0f8ff,antiquewhite:faebd7,aqua:00ffff,aquamarine:7fffd4,azure:f0ffff,beige:f5f5dc,bisque:ffe4c4,black:000000,blanchedalmond:ffebcd,blue:0000ff,blueviolet:8a2be2,brown:a52a2a,burlywood:deb887,cadetblue:5f9ea0,chartreuse:7fff00,chocolate:d2691e,coral:ff7f50,cornflowerblue:6495ed,cornsilk:fff8dc,crimson:dc143c,cyan:00ffff,darkblue:00008b,darkcyan:008b8b,darkgoldenrod:b8860b,darkgray:a9a9a9,darkgreen:006400,darkkhaki:bdb76b,darkmagenta:8b008b,darkolivegreen:556b2f,darkorange:ff8c00,darkorchid:9932cc,darkred:8b0000,darksalmon:e9967a,darkseagreen:8fbc8f,darkslateblue:483d8b,darkslategray:2f4f4f,darkturquoise:00ced1,darkviolet:9400d3,deeppink:ff1493,deepskyblue:00bfff,dimgray:696969,dodgerblue:1e90ff,firebrick:b22222,floralwhite:fffaf0,forestgreen:228b22,fuchsia:ff00ff,gainsboro:dcdcdc,ghostwhite:f8f8ff,gold:ffd700,goldenrod:daa520,gray:808080,green:008000,greenyellow:adff2f,honeydew:f0fff0,hotpink:ff69b4,indianred:cd5c5c,indigo:4b0082,ivory:fffff0,khaki:f0e68c,lavender:e6e6fa,lavenderblush:fff0f5,lawngreen:7cfc00,lemonchiffon:fffacd,lightblue:add8e6,lightcoral:f08080,lightcyan:e0ffff,lightgoldenrodyellow:fafad2,lightgrey:d3d3d3,lightgreen:90ee90,lightpink:ffb6c1,lightsalmon:ffa07a,lightseagreen:20b2aa,lightskyblue:87cefa,lightslategray:778899,lightsteelblue:b0c4de,lightyellow:ffffe0,lime:00ff00,limegreen:32cd32,linen:faf0e6,magenta:ff00ff,maroon:800000,mediumaquamarine:66cdaa,mediumblue:0000cd,mediumorchid:ba55d3,mediumpurple:9370d8,mediumseagreen:3cb371,mediumslateblue:7b68ee,mediumspringgreen:00fa9a,mediumturquoise:48d1cc,mediumvioletred:c71585,midnightblue:191970,mintcream:f5fffa,mistyrose:ffe4e1,moccasin:ffe4b5,navajowhite:ffdead,navy:000080,oldlace:fdf5e6,olive:808000,olivedrab:6b8e23,orange:ffa500,orangered:ff4500,orchid:da70d6,palegoldenrod:eee8aa,palegreen:98fb98,paleturquoise:afeeee,palevioletred:d87093,papayawhip:ffefd5,peachpuff:ffdab9,peru:cd853f,pink:ffc0cb,plum:dda0dd,powderblue:b0e0e6,purple:800080,rebeccapurple:663399,red:ff0000,rosybrown:bc8f8f,royalblue:4169e1,saddlebrown:8b4513,salmon:fa8072,sandybrown:f4a460,seagreen:2e8b57,seashell:fff5ee,sienna:a0522d,silver:c0c0c0,skyblue:87ceeb,slateblue:6a5acd,slategray:708090,snow:fffafa,springgreen:00ff7f,steelblue:4682b4,tan:d2b48c,teal:008080,thistle:d8bfd8,tomato:ff6347,turquoise:40e0d0,violet:ee82ee,wheat:f5deb3,white:ffffff,whitesmoke:f5f5f5,yellow:ffff00,yellowgreen:9acd32",f1=e=>{const t=new Map,n=e.split(",");for(let r=0;r{var n;if(Gu.has(e))return Vo(Gu.get(e));const t=Fa.parse(e)||Da.parse(e)||La.parse(e);if(!t){const r=new Error("Invalid color value: "+e);throw(n=Error.captureStackTrace)==null||n.call(Error,r,Vo),r}return t};const g1=["top","right","bottom","left"],tn=Math.min,nt=Math.max,Fo=Math.round,Lo=Math.floor,It=e=>({x:e,y:e}),p1={left:"right",right:"left",bottom:"top",top:"bottom"},m1={start:"end",end:"start"};function za(e,t,n){return nt(e,tn(t,n))}function $t(e,t){return typeof e=="function"?e(t):e}function Bt(e){return e.split("-")[0]}function vr(e){return e.split("-")[1]}function Ma(e){return e==="x"?"y":"x"}function $a(e){return e==="y"?"height":"width"}const v1=new Set(["top","bottom"]);function Pt(e){return v1.has(Bt(e))?"y":"x"}function Ba(e){return Ma(Pt(e))}function b1(e,t,n){n===void 0&&(n=!1);const r=vr(e),i=Ba(e),o=$a(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Do(s)),[s,Do(s)]}function y1(e){const t=Do(e);return[ja(e),t,ja(t)]}function ja(e){return e.replace(/start|end/g,t=>m1[t])}const qu=["left","right"],Ku=["right","left"],x1=["top","bottom"],C1=["bottom","top"];function S1(e,t,n){switch(e){case"top":case"bottom":return n?t?Ku:qu:t?qu:Ku;case"left":case"right":return t?x1:C1;default:return[]}}function w1(e,t,n,r){const i=vr(e);let o=S1(Bt(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(ja)))),o}function Do(e){return e.replace(/left|right|bottom|top/g,t=>p1[t])}function E1(e){return{top:0,right:0,bottom:0,left:0,...e}}function Xu(e){return typeof e!="number"?E1(e):{top:e,right:e,bottom:e,left:e}}function zo(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Yu(e,t,n){let{reference:r,floating:i}=e;const o=Pt(t),s=Ba(t),a=$a(s),l=Bt(t),c=o==="y",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,h=r[a]/2-i[a]/2;let m;switch(l){case"top":m={x:u,y:r.y-i.height};break;case"bottom":m={x:u,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:d};break;case"left":m={x:r.x-i.width,y:d};break;default:m={x:r.x,y:r.y}}switch(vr(t)){case"start":m[s]-=h*(n&&c?-1:1);break;case"end":m[s]+=h*(n&&c?-1:1);break}return m}const k1=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Yu(c,r,l),h=r,m={},f=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=$t(e,t)||{};if(c==null)return{};const d=Xu(u),h={x:n,y:r},m=Ba(i),f=$a(m),g=await s.getDimensions(c),p=m==="y",b=p?"top":"left",x=p?"bottom":"right",S=p?"clientHeight":"clientWidth",C=o.reference[f]+o.reference[m]-h[m]-o.floating[f],w=h[m]-o.reference[m],P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let _=P?P[S]:0;(!_||!await(s.isElement==null?void 0:s.isElement(P)))&&(_=a.floating[S]||o.floating[f]);const R=C/2-w/2,N=_/2-g[f]/2-1,T=tn(d[b],N),j=tn(d[x],N),I=T,F=_-g[f]-j,Y=_/2-g[f]/2+R,z=za(I,Y,F),V=!l.arrow&&vr(i)!=null&&Y!==z&&o.reference[f]/2-(YY<=0)){var j,I;const Y=(((j=o.flip)==null?void 0:j.index)||0)+1,z=_[Y];if(z&&(!(d==="alignment"?x!==Pt(z):!1)||T.every(K=>Pt(K.placement)===x?K.overflows[0]>0:!0)))return{data:{index:Y,overflows:T},reset:{placement:z}};let V=(I=T.filter(B=>B.overflows[0]<=0).sort((B,K)=>B.overflows[1]-K.overflows[1])[0])==null?void 0:I.placement;if(!V)switch(m){case"bestFit":{var F;const B=(F=T.filter(K=>{if(P){const $=Pt(K.placement);return $===x||$==="y"}return!0}).map(K=>[K.placement,K.overflows.filter($=>$>0).reduce(($,H)=>$+H,0)]).sort((K,$)=>K[1]-$[1])[0])==null?void 0:F[0];B&&(V=B);break}case"initialPlacement":V=a;break}if(i!==V)return{reset:{placement:V}}}return{}}}};function Qu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ju(e){return g1.some(t=>e[t]>=0)}const P1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=$t(e,t);switch(r){case"referenceHidden":{const o=await ui(t,{...i,elementContext:"reference"}),s=Qu(o,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ju(s)}}}case"escaped":{const o=await ui(t,{...i,altBoundary:!0}),s=Qu(o,n.floating);return{data:{escapedOffsets:s,escaped:Ju(s)}}}default:return{}}}}},Zu=new Set(["left","top"]);async function R1(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Bt(n),a=vr(n),l=Pt(n)==="y",c=Zu.has(s)?-1:1,u=o&&l?-1:1,d=$t(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:f}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof f=="number"&&(m=a==="end"?f*-1:f),l?{x:m*u,y:h*c}:{x:h*c,y:m*u}}const T1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await R1(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},N1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:p=>{let{x:b,y:x}=p;return{x:b,y:x}}},...l}=$t(e,t),c={x:n,y:r},u=await ui(t,l),d=Pt(Bt(i)),h=Ma(d);let m=c[h],f=c[d];if(o){const p=h==="y"?"top":"left",b=h==="y"?"bottom":"right",x=m+u[p],S=m-u[b];m=za(x,m,S)}if(s){const p=d==="y"?"top":"left",b=d==="y"?"bottom":"right",x=f+u[p],S=f-u[b];f=za(x,f,S)}const g=a.fn({...t,[h]:m,[d]:f});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:o,[d]:s}}}}}},A1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=$t(e,t),u={x:n,y:r},d=Pt(i),h=Ma(d);let m=u[h],f=u[d];const g=$t(a,t),p=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const S=h==="y"?"height":"width",C=o.reference[h]-o.floating[S]+p.mainAxis,w=o.reference[h]+o.reference[S]-p.mainAxis;mw&&(m=w)}if(c){var b,x;const S=h==="y"?"width":"height",C=Zu.has(Bt(i)),w=o.reference[d]-o.floating[S]+(C&&((b=s.offset)==null?void 0:b[d])||0)+(C?0:p.crossAxis),P=o.reference[d]+o.reference[S]+(C?0:((x=s.offset)==null?void 0:x[d])||0)-(C?p.crossAxis:0);fP&&(f=P)}return{[h]:m,[d]:f}}}},_1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...c}=$t(e,t),u=await ui(t,c),d=Bt(i),h=vr(i),m=Pt(i)==="y",{width:f,height:g}=o.floating;let p,b;d==="top"||d==="bottom"?(p=d,b=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(b=d,p=h==="end"?"top":"bottom");const x=g-u.top-u.bottom,S=f-u.left-u.right,C=tn(g-u[p],x),w=tn(f-u[b],S),P=!t.middlewareData.shift;let _=C,R=w;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(R=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=x),P&&!h){const T=nt(u.left,0),j=nt(u.right,0),I=nt(u.top,0),F=nt(u.bottom,0);m?R=f-2*(T!==0||j!==0?T+j:nt(u.left,u.right)):_=g-2*(I!==0||F!==0?I+F:nt(u.top,u.bottom))}await l({...t,availableWidth:R,availableHeight:_});const N=await s.getDimensions(a.floating);return f!==N.width||g!==N.height?{reset:{rects:!0}}:{}}}};function Mo(){return typeof window<"u"}function br(e){return ed(e)?(e.nodeName||"").toLowerCase():"#document"}function rt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Rt(e){var t;return(t=(ed(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ed(e){return Mo()?e instanceof Node||e instanceof rt(e).Node:!1}function mt(e){return Mo()?e instanceof Element||e instanceof rt(e).Element:!1}function Tt(e){return Mo()?e instanceof HTMLElement||e instanceof rt(e).HTMLElement:!1}function td(e){return!Mo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof rt(e).ShadowRoot}const V1=new Set(["inline","contents"]);function di(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=vt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!V1.has(i)}const F1=new Set(["table","td","th"]);function L1(e){return F1.has(br(e))}const D1=[":popover-open",":modal"];function $o(e){return D1.some(t=>{try{return e.matches(t)}catch{return!1}})}const z1=["transform","translate","scale","rotate","perspective"],M1=["transform","translate","scale","rotate","perspective","filter"],$1=["paint","layout","strict","content"];function Wa(e){const t=Ha(),n=mt(e)?vt(e):e;return z1.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||M1.some(r=>(n.willChange||"").includes(r))||$1.some(r=>(n.contain||"").includes(r))}function B1(e){let t=nn(e);for(;Tt(t)&&!yr(t);){if(Wa(t))return t;if($o(t))return null;t=nn(t)}return null}function Ha(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const j1=new Set(["html","body","#document"]);function yr(e){return j1.has(br(e))}function vt(e){return rt(e).getComputedStyle(e)}function Bo(e){return mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nn(e){if(br(e)==="html")return e;const t=e.assignedSlot||e.parentNode||td(e)&&e.host||Rt(e);return td(t)?t.host:t}function nd(e){const t=nn(e);return yr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Tt(t)&&di(t)?t:nd(t)}function hi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=nd(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=rt(i);if(o){const a=Ua(s);return t.concat(s,s.visualViewport||[],di(i)?i:[],a&&n?hi(a):[])}return t.concat(i,hi(i,[],n))}function Ua(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rd(e){const t=vt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Tt(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=Fo(n)!==o||Fo(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function Ga(e){return mt(e)?e:e.contextElement}function xr(e){const t=Ga(e);if(!Tt(t))return It(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=rd(t);let s=(o?Fo(n.width):n.width)/r,a=(o?Fo(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const W1=It(0);function id(e){const t=rt(e);return!Ha()||!t.visualViewport?W1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function H1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==rt(e)?!1:t}function Nn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Ga(e);let s=It(1);t&&(r?mt(r)&&(s=xr(r)):s=xr(e));const a=H1(o,n,r)?id(o):It(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o){const h=rt(o),m=r&&mt(r)?rt(r):r;let f=h,g=Ua(f);for(;g&&r&&m!==f;){const p=xr(g),b=g.getBoundingClientRect(),x=vt(g),S=b.left+(g.clientLeft+parseFloat(x.paddingLeft))*p.x,C=b.top+(g.clientTop+parseFloat(x.paddingTop))*p.y;l*=p.x,c*=p.y,u*=p.x,d*=p.y,l+=S,c+=C,f=rt(g),g=Ua(f)}}return zo({width:u,height:d,x:l,y:c})}function jo(e,t){const n=Bo(e).scrollLeft;return t?t.left+n:Nn(Rt(e)).left+n}function od(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-jo(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function U1(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=Rt(r),a=t?$o(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=It(1);const u=It(0),d=Tt(r);if((d||!d&&!o)&&((br(r)!=="body"||di(s))&&(l=Bo(r)),Tt(r))){const m=Nn(r);c=xr(r),u.x=m.x+r.clientLeft,u.y=m.y+r.clientTop}const h=s&&!d&&!o?od(s,l):It(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function G1(e){return Array.from(e.getClientRects())}function q1(e){const t=Rt(e),n=Bo(e),r=e.ownerDocument.body,i=nt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=nt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+jo(e);const a=-n.scrollTop;return vt(r).direction==="rtl"&&(s+=nt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}const sd=25;function K1(e,t){const n=rt(e),r=Rt(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const u=Ha();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}const c=jo(r);if(c<=0){const u=r.ownerDocument,d=u.body,h=getComputedStyle(d),m=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,f=Math.abs(r.clientWidth-d.clientWidth-m);f<=sd&&(o-=f)}else c<=sd&&(o+=c);return{width:o,height:s,x:a,y:l}}const X1=new Set(["absolute","fixed"]);function Y1(e,t){const n=Nn(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Tt(e)?xr(e):It(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,c=r*o.y;return{width:s,height:a,x:l,y:c}}function ad(e,t,n){let r;if(t==="viewport")r=K1(e,n);else if(t==="document")r=q1(Rt(e));else if(mt(t))r=Y1(t,n);else{const i=id(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return zo(r)}function ld(e,t){const n=nn(e);return n===t||!mt(n)||yr(n)?!1:vt(n).position==="fixed"||ld(n,t)}function Q1(e,t){const n=t.get(e);if(n)return n;let r=hi(e,[],!1).filter(a=>mt(a)&&br(a)!=="body"),i=null;const o=vt(e).position==="fixed";let s=o?nn(e):e;for(;mt(s)&&!yr(s);){const a=vt(s),l=Wa(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&X1.has(i.position)||di(s)&&!l&&ld(e,s))?r=r.filter(u=>u!==s):i=a,s=nn(s)}return t.set(e,r),r}function J1(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?$o(t)?[]:Q1(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,u)=>{const d=ad(t,u,i);return c.top=nt(d.top,c.top),c.right=tn(d.right,c.right),c.bottom=tn(d.bottom,c.bottom),c.left=nt(d.left,c.left),c},ad(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Z1(e){const{width:t,height:n}=rd(e);return{width:t,height:n}}function eC(e,t,n){const r=Tt(t),i=Rt(t),o=n==="fixed",s=Nn(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=It(0);function c(){l.x=jo(i)}if(r||!r&&!o)if((br(t)!=="body"||di(i))&&(a=Bo(t)),r){const m=Nn(t,!0,o,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else i&&c();o&&!r&&i&&c();const u=i&&!r&&!o?od(i,a):It(0),d=s.left+a.scrollLeft-l.x-u.x,h=s.top+a.scrollTop-l.y-u.y;return{x:d,y:h,width:s.width,height:s.height}}function qa(e){return vt(e).position==="static"}function cd(e,t){if(!Tt(e)||vt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Rt(e)===n&&(n=n.ownerDocument.body),n}function ud(e,t){const n=rt(e);if($o(e))return n;if(!Tt(e)){let i=nn(e);for(;i&&!yr(i);){if(mt(i)&&!qa(i))return i;i=nn(i)}return n}let r=cd(e,t);for(;r&&L1(r)&&qa(r);)r=cd(r,t);return r&&yr(r)&&qa(r)&&!Wa(r)?n:r||B1(e)||n}const tC=async function(e){const t=this.getOffsetParent||ud,n=this.getDimensions,r=await n(e.floating);return{reference:eC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function nC(e){return vt(e).direction==="rtl"}const rC={convertOffsetParentRelativeRectToViewportRelativeRect:U1,getDocumentElement:Rt,getClippingRect:J1,getOffsetParent:ud,getElementRects:tC,getClientRects:G1,getDimensions:Z1,getScale:xr,isElement:mt,isRTL:nC};function dd(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function iC(e,t){let n=null,r;const i=Rt(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:m}=c;if(a||t(),!h||!m)return;const f=Lo(d),g=Lo(i.clientWidth-(u+h)),p=Lo(i.clientHeight-(d+m)),b=Lo(u),S={rootMargin:-f+"px "+-g+"px "+-p+"px "+-b+"px",threshold:nt(0,tn(1,l))||1};let C=!0;function w(P){const _=P[0].intersectionRatio;if(_!==l){if(!C)return s();_?s(!1,_):r=setTimeout(()=>{s(!1,1e-7)},1e3)}_===1&&!dd(c,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(w,{...S,root:i.ownerDocument})}catch{n=new IntersectionObserver(w,S)}n.observe(e)}return s(!0),o}function oC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Ga(e),u=i||o?[...c?hi(c):[],...hi(t)]:[];u.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),o&&b.addEventListener("resize",n)});const d=c&&a?iC(c,n):null;let h=-1,m=null;s&&(m=new ResizeObserver(b=>{let[x]=b;x&&x.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var S;(S=m)==null||S.observe(t)})),n()}),c&&!l&&m.observe(c),m.observe(t));let f,g=l?Nn(e):null;l&&p();function p(){const b=Nn(e);g&&!dd(g,b)&&n(),g=b,f=requestAnimationFrame(p)}return n(),()=>{var b;u.forEach(x=>{i&&x.removeEventListener("scroll",n),o&&x.removeEventListener("resize",n)}),d==null||d(),(b=m)==null||b.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const sC=T1,aC=N1,lC=I1,cC=_1,uC=P1,dC=O1,hC=A1,fC=(e,t,n)=>{const r=new Map,i={platform:rC,...n},o={...i.platform,_c:r};return k1(e,t,{...i,platform:o})};function hd(e=0,t=0,n=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,n,r);const i={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...i,toJSON:()=>i}}function gC(e){if(!e)return hd();const{x:t,y:n,width:r,height:i}=e;return hd(t,n,r,i)}function pC(e,t){return{contextElement:Me(e)?e:void 0,getBoundingClientRect:()=>{const n=e,r=t==null?void 0:t(n);return r||!n?gC(r):n.getBoundingClientRect()}}}var fd=e=>({variable:e,reference:`var(${e})`}),gd={transformOrigin:fd("--transform-origin"),arrowOffset:fd("--arrow-offset")},mC=e=>e==="top"||e==="bottom"?"y":"x";function vC(e,t){return{name:"transformOrigin",fn(n){var N,T,j,I;const{elements:r,middlewareData:i,placement:o,rects:s,y:a}=n,l=o.split("-")[0],c=mC(l),u=((N=i.arrow)==null?void 0:N.x)||0,d=((T=i.arrow)==null?void 0:T.y)||0,h=(t==null?void 0:t.clientWidth)||0,m=(t==null?void 0:t.clientHeight)||0,f=u+h/2,g=d+m/2,p=Math.abs(((j=i.shift)==null?void 0:j.y)||0),b=s.reference.height/2,x=m/2,S=((I=e.offset)==null?void 0:I.mainAxis)??e.gutter,C=typeof S=="number"?S+x:S??x,w=p>C,P={top:`${f}px calc(100% + ${C}px)`,bottom:`${f}px ${-C}px`,left:`calc(100% + ${C}px) ${g}px`,right:`${-C}px ${g}px`}[l],_=`${f}px ${s.reference.y+b-a}px`,R=!!e.overlap&&c==="y"&&w;return r.floating.style.setProperty(gd.transformOrigin.variable,R?_:P),{data:{transformOrigin:R?_:P}}}}}var bC={name:"rects",fn({rects:e}){return{data:e}}},yC=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};const{x:r,y:i}=n.arrow,o=t.split("-")[0];return Object.assign(e.style,{left:r!=null?`${r}px`:"",top:i!=null?`${i}px`:"",[o]:`calc(100% + ${gd.arrowOffset.reference})`}),{}}}};function xC(e){const[t,n]=e.split("-");return{side:t,align:n,hasAlign:n!=null}}function CC(e){return e.split("-")[0]}var SC={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function pd(e,t){const n=e.devicePixelRatio||1;return Math.round(t*n)/n}function Ka(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function wC(e,t,n){const r=e||t.createElement("div");return dC({element:r,padding:n.arrowPadding})}function EC(e,t){if(!c0(t.offset??t.gutter))return sC(({placement:n})=>{var c,u;const r=((e==null?void 0:e.clientHeight)||0)/2,i=((c=t.offset)==null?void 0:c.mainAxis)??t.gutter,o=typeof i=="number"?i+r:i??r,{hasAlign:s}=xC(n),a=s?void 0:t.shift,l=((u=t.offset)==null?void 0:u.crossAxis)??a;return vo({crossAxis:l,mainAxis:o,alignmentAxis:t.shift})})}function kC(e){if(!e.flip)return;const t=Ka(e.boundary);return lC({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function OC(e){if(!e.slide&&!e.overlap)return;const t=Ka(e.boundary);return aC({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:hC()})}function IC(e){return cC({padding:e.overflowPadding,apply({elements:t,rects:n,availableHeight:r,availableWidth:i}){const o=t.floating,s=Math.round(n.reference.width),a=Math.round(n.reference.height);i=Math.floor(i),r=Math.floor(r),o.style.setProperty("--reference-width",`${s}px`),o.style.setProperty("--reference-height",`${a}px`),o.style.setProperty("--available-width",`${i}px`),o.style.setProperty("--available-height",`${r}px`)}})}function PC(e){if(e.hideWhenDetached)return uC({strategy:"referenceHidden",boundary:Ka(e.boundary)??"clippingAncestors"})}function RC(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function TC(e,t,n={}){const r=pC(e,n.getAnchorRect);if(!t||!r)return;const i=Object.assign({},SC,n),o=t.querySelector("[data-part=arrow]"),s=[EC(o,i),kC(i),OC(i),wC(o,t.ownerDocument,i),yC(o),vC({gutter:i.gutter,offset:i.offset,overlap:i.overlap},o),IC(i),PC(i),bC],{placement:a,strategy:l,onComplete:c,onPositioned:u}=i,d=async()=>{var C;if(!r||!t)return;const g=await fC(r,t,{placement:a,middleware:s,strategy:l});c==null||c(g),u==null||u({placed:!0});const p=Ie(t),b=pd(p,g.x),x=pd(p,g.y);t.style.setProperty("--x",`${b}px`),t.style.setProperty("--y",`${x}px`),i.hideWhenDetached&&(((C=g.middlewareData.hide)==null?void 0:C.referenceHidden)?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const S=t.firstElementChild;if(S){const w=yo(S);t.style.setProperty("--z-index",w.zIndex)}},h=async()=>{n.updatePosition?(await n.updatePosition({updatePosition:d,floatingElement:t}),u==null||u({placed:!0})):await d()},m=RC(i.listeners),f=i.listeners?oC(r,t,h,m):v0;return h(),()=>{f==null||f(),u==null||u({placed:!1})}}function bt(e,t,n={}){const{defer:r,...i}=n,o=r?Z:a=>a(),s=[];return s.push(o(()=>{const a=typeof e=="function"?e():e,l=typeof t=="function"?t():t;s.push(TC(a,l,i))})),()=>{s.forEach(a=>a==null?void 0:a())}}function NC(e){const t={each(n){var r;for(let i=0;i<((r=e.frames)==null?void 0:r.length);i+=1){const o=e.frames[i];o&&n(o)}},addEventListener(n,r,i){return t.each(o=>{try{o.document.addEventListener(n,r,i)}catch{}}),()=>{try{t.removeEventListener(n,r,i)}catch{}}},removeEventListener(n,r,i){t.each(o=>{try{o.document.removeEventListener(n,r,i)}catch{}})}};return t}function AC(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(n,r,i)=>{try{t==null||t.addEventListener(n,r,i)}catch{}return()=>{try{t==null||t.removeEventListener(n,r,i)}catch{}}},removeEventListener:(n,r,i)=>{try{t==null||t.removeEventListener(n,r,i)}catch{}}}}var md="pointerdown.outside",vd="focus.outside";function _C(e){for(const t of e)if(Me(t)&&Jt(t))return!0;return!1}var bd=e=>"clientY"in e;function VC(e,t){if(!bd(t)||!e)return!1;const n=e.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}function FC(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function yd(e,t){if(!t||!bd(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,i=t.scrollWidth>t.clientWidth,o=i&&e.clientY>t.offsetTop+t.clientHeight,s={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(i?16:0)},a={x:e.clientX,y:e.clientY};return FC(s,a)?r||o:!1}function LC(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:i,onInteractOutside:o,defer:s}=t;if(!e)return;const a=Ge(e),l=Ie(e),c=NC(l),u=AC(l);function d(x,S){if(!Me(S)||!S.isConnected||Rn(e,S)||VC(e,x))return!1;const C=a.querySelector(`[aria-controls="${e.id}"]`);if(C){const P=ko(C);if(yd(x,P))return!1}const w=ko(e);return yd(x,w)?!1:!(n!=null&&n(S))}const h=new Set,m=fr(e==null?void 0:e.getRootNode());function f(x){function S(C){var R;const w=s&&!Su()?Z:N=>N(),P=C??x,_=((R=P==null?void 0:P.composedPath)==null?void 0:R.call(P))??[P==null?void 0:P.target];w(()=>{const N=m?_[0]:tt(x);if(!(!e||!d(x,N))){if(i||o){const T=po(i,o);e.addEventListener(md,T,{once:!0})}xd(e,md,{bubbles:!1,cancelable:!0,detail:{originalEvent:P,contextmenu:ox(P),focusable:_C(_),target:N}})}})}x.pointerType==="touch"?(h.forEach(C=>C()),h.add(he(a,"click",S,{once:!0})),h.add(u.addEventListener("click",S,{once:!0})),h.add(c.addEventListener("click",S,{once:!0}))):S()}const g=new Set,p=setTimeout(()=>{g.add(he(a,"pointerdown",f,!0)),g.add(u.addEventListener("pointerdown",f,!0)),g.add(c.addEventListener("pointerdown",f,!0))},0);function b(x){(s?Z:C=>C())(()=>{const C=tt(x);if(!(!e||!d(x,C))){if(r||o){const w=po(r,o);e.addEventListener(vd,w,{once:!0})}xd(e,vd,{bubbles:!1,cancelable:!0,detail:{originalEvent:x,contextmenu:!1,focusable:Jt(C),target:C}})}})}return Su()||(g.add(he(a,"focusin",b,!0)),g.add(u.addEventListener("focusin",b,!0)),g.add(c.addEventListener("focusin",b,!0))),()=>{clearTimeout(p),h.forEach(x=>x()),g.forEach(x=>x())}}function DC(e,t){const{defer:n}=t,r=n?Z:o=>o(),i=[];return i.push(r(()=>{const o=typeof e=="function"?e():e;i.push(LC(o,t))})),()=>{i.forEach(o=>o==null?void 0:o())}}function xd(e,t,n){const r=e.ownerDocument.defaultView||window,i=new r.CustomEvent(t,n);return e.dispatchEvent(i)}function zC(e,t){const n=r=>{r.key==="Escape"&&(r.isComposing||t==null||t(r))};return he(Ge(e),"keydown",n,{capture:!0})}var Cd="layer:request-dismiss",at={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){var r;const t=this.indexOf(e),n=this.topMostPointerBlockingLayer()?this.indexOf((r=this.topMostPointerBlockingLayer())==null?void 0:r.node):-1;return tRn(n.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Rn(t,e))},add(e){this.layers.push(e),this.syncLayerIndex()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(tat.dismiss(r.node,e)),this.layers.splice(t,1),this.syncLayerIndex())},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayerIndex(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){const n=this.indexOf(e);if(n===-1)return;const r=this.layers[n];$C(e,Cd,i=>{var o;(o=r.requestDismiss)==null||o.call(r,i),i.defaultPrevented||r==null||r.dismiss()}),MC(e,Cd,{originalLayer:e,targetLayer:t,originalIndex:n,targetIndex:t?this.indexOf(t):-1}),this.syncLayerIndex()},clear(){this.remove(this.layers[0].node)}};function MC(e,t,n){const r=e.ownerDocument.defaultView||window,i=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:n});return e.dispatchEvent(i)}function $C(e,t,n){e.addEventListener(t,n,{once:!0})}var Sd;function wd(){at.layers.forEach(({node:e})=>{e.style.pointerEvents=at.isBelowPointerBlockingLayer(e)?"none":"auto"})}function BC(e){e.style.pointerEvents=""}function jC(e,t){const n=Ge(e),r=[];return at.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(Sd=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t==null||t.forEach(i=>{const[o,s]=Mx(()=>{const a=i();return Me(a)?a:null},{timeout:1e3});o.then(a=>r.push(Ro(a,{pointerEvents:"auto"}))),r.push(s)}),()=>{at.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=Sd,n.body.removeAttribute("data-inert"),n.body.style.length===0&&n.body.removeAttribute("style")}),r.forEach(i=>i()))}}function WC(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e){ai("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,onRequestDismiss:i,pointerBlocking:o,exclude:s,debug:a}=t,l={dismiss:r,node:e,pointerBlocking:o,requestDismiss:i};at.add(l),wd();function c(f){var p,b;const g=tt(f.detail.originalEvent);at.isBelowPointerBlockingLayer(e)||at.isInBranch(g)||((p=t.onPointerDownOutside)==null||p.call(t,f),(b=t.onInteractOutside)==null||b.call(t,f),!f.defaultPrevented&&(a&&console.log("onPointerDownOutside:",f.detail.originalEvent),r==null||r()))}function u(f){var p,b;const g=tt(f.detail.originalEvent);at.isInBranch(g)||((p=t.onFocusOutside)==null||p.call(t,f),(b=t.onInteractOutside)==null||b.call(t,f),!f.defaultPrevented&&(a&&console.log("onFocusOutside:",f.detail.originalEvent),r==null||r()))}function d(f){var g;at.isTopMost(e)&&((g=t.onEscapeKeyDown)==null||g.call(t,f),!f.defaultPrevented&&r&&(f.preventDefault(),r()))}function h(f){var x;if(!e)return!1;const g=typeof s=="function"?s():s,p=Array.isArray(g)?g:[g],b=(x=t.persistentElements)==null?void 0:x.map(S=>S()).filter(Me);return b&&p.push(...b),p.some(S=>Rn(S,f))||at.isInNestedLayer(e,f)}const m=[o?jC(e,t.persistentElements):void 0,zC(e,d),DC(e,{exclude:h,onFocusOutside:u,onPointerDownOutside:c,defer:t.defer})];return()=>{at.remove(e),wd(),BC(e),m.forEach(f=>f==null?void 0:f())}}function Cr(e,t){const{defer:n}=t,r=n?Z:o=>o(),i=[];return i.push(r(()=>{const o=Pn(e)?e():e;i.push(WC(o,t))})),()=>{i.forEach(o=>o==null?void 0:o())}}var Ed=G("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]);Ed.build();var HC=e=>{var t;return((t=e.ids)==null?void 0:t.hiddenInput)??`color-picker:${e.id}:hidden-input`},UC=e=>{var t;return((t=e.ids)==null?void 0:t.control)??`color-picker:${e.id}:control`},GC=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`color-picker:${e.id}:trigger`},qC=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`color-picker:${e.id}:content`},KC=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`color-picker:${e.id}:positioner`},XC=e=>{var t;return((t=e.ids)==null?void 0:t.formatSelect)??`color-picker:${e.id}:format-select`},YC=e=>{var t;return((t=e.ids)==null?void 0:t.area)??`color-picker:${e.id}:area`},QC=e=>{var t;return((t=e.ids)==null?void 0:t.areaThumb)??`color-picker:${e.id}:area-thumb`},JC=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.channelSliderTrack)==null?void 0:r.call(n,t))??`color-picker:${e.id}:slider-track:${t}`},ZC=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.channelSliderThumb)==null?void 0:r.call(n,t))??`color-picker:${e.id}:slider-thumb:${t}`},Wo=e=>e.getById(qC(e)),eS=e=>e.getById(QC(e)),tS=(e,t)=>e.getById(ZC(e,t)),nS=e=>e.getById(XC(e)),kd=e=>e.getById(HC(e)),rS=e=>e.getById(YC(e)),iS=(e,t,n)=>{const r=rS(e);if(!r)return;const{getPercentValue:i}=Pu(t,r);return{x:i({dir:n,orientation:"horizontal"}),y:i({orientation:"vertical"})}},oS=e=>e.getById(UC(e)),Xa=e=>e.getById(GC(e)),sS=e=>e.getById(KC(e)),aS=(e,t)=>e.getById(JC(e,t)),lS=(e,t,n,r)=>{const i=aS(e,n);if(!i)return;const{getPercentValue:o}=Pu(t,i);return{x:o({dir:r,orientation:"horizontal"}),y:o({orientation:"vertical"})}},cS=e=>[...Po(Wo(e),"input[data-channel]"),...Po(oS(e),"input[data-channel]")];function uS(e,t){if(t==null)return"";if(t==="hex")return e.toString("hex");if(t==="css")return e.toString("css");if(t in e)return e.getChannelValue(t).toString();const n=e.getFormat()==="hsla";switch(t){case"hue":return n?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return n?e.toFormat("hsla").getChannelValue("saturation").toString():e.toFormat("hsba").getChannelValue("saturation").toString();case"lightness":return e.toFormat("hsla").getChannelValue("lightness").toString();case"brightness":return e.toFormat("hsba").getChannelValue("brightness").toString();case"red":case"green":case"blue":return e.toFormat("rgba").getChannelValue(t).toString();default:return e.getChannelValue(t).toString()}}var Od=e=>Vo(e),dS=/^[0-9a-fA-F]{3,8}$/;function hS(e){return dS.test(e)}function fS(e){return e.startsWith("#")?e:hS(e)?`#${e}`:e}var{and:gS}=Zt();gS("isOpenControlled","closeOnSelect");function Id(e,t,n){const r=cS(e);Z(()=>{r.forEach(i=>{const o=i.dataset.channel;wo(i,uS(n||t,o))})})}function pS(e,t){const n=nS(e);n&&Z(()=>wo(n,t))}U()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","inline","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]),U()(["xChannel","yChannel"]),U()(["channel","orientation"]),U()(["value","disabled"]),U()(["value","respectAlpha"]),U()(["size"]);const[Pd,mS]=hr({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:""}),Rd=e=>_u()(e,["lazyMount","unmountOnExit"]);var Td=G("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");Td.build();var Nd=e=>{var t;return((t=e.ids)==null?void 0:t.root)??`accordion:${e.id}`},Ad=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.itemTrigger)==null?void 0:r.call(n,t))??`accordion:${e.id}:trigger:${t}`},vS=e=>e.getById(Nd(e)),Ho=e=>{const n=`[aria-controls][data-ownedby='${CSS.escape(Nd(e))}']:not([disabled])`;return Po(vS(e),n)},bS=e=>oi(Ho(e)),yS=e=>fa(Ho(e)),xS=(e,t)=>Rx(Ho(e),Ad(e,t)),CS=(e,t)=>Tx(Ho(e),Ad(e,t)),{and:SS,not:wS}=Zt();SS("isExpanded","canToggle"),wS("isExpanded"),U()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]),U()(["value","disabled"]);var fi=(e,t)=>({x:e,y:t});function ES(e){const{x:t,y:n,width:r,height:i}=e,o=t+r/2,s=n+i/2;return{x:t,y:n,width:r,height:i,minX:t,minY:n,maxX:t+r,maxY:n+i,midX:o,midY:s,center:fi(o,s)}}function kS(e){const t=fi(e.minX,e.minY),n=fi(e.maxX,e.minY),r=fi(e.maxX,e.maxY),i=fi(e.minX,e.maxY);return{top:t,right:n,bottom:r,left:i}}function OS(e,t){const n=ES(e),{top:r,right:i,left:o,bottom:s}=kS(n),[a]=t.split("-");return{top:[o,r,i,s],right:[r,i,s,o],bottom:[r,o,s,i],left:[i,r,o,s]}[a]}function IS(e,t){const{x:n,y:r}=t;let i=!1;for(let o=0,s=e.length-1;or!=u>r&&n<(c-a)*(r-l)/(u-l)+a&&(i=!i)}return i}var _d=G("avatar").parts("root","image","fallback");_d.build(),U()(["dir","id","ids","onStatusChange","getRootNode"]);function PS(e){return!(e.metaKey||!So()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var RS=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function TS(e,t,n){const r=n?tt(n):null,i=Ie(r);return e=e||r instanceof i.HTMLInputElement&&!RS.has(r==null?void 0:r.type)||r instanceof i.HTMLTextAreaElement||r instanceof i.HTMLElement&&r.isContentEditable,!(e&&t==="keyboard"&&n instanceof i.KeyboardEvent&&!Reflect.has(NS,n.key))}var An=null,Ya=new Set,gi=new Map,_n=!1,Qa=!1,NS={Tab:!0,Escape:!0};function Uo(e,t){for(let n of Ya)n(e,t)}function Go(e){_n=!0,PS(e)&&(An="keyboard",Uo("keyboard",e))}function lt(e){An="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(_n=!0,Uo("pointer",e))}function Vd(e){ix(e)&&(_n=!0,An="virtual")}function Fd(e){const t=tt(e);t===Ie(t)||t===Ge(t)||(!_n&&!Qa&&(An="virtual",Uo("virtual",e)),_n=!1,Qa=!1)}function Ld(){_n=!1,Qa=!0}function AS(e){if(typeof window>"u"||gi.get(Ie(e)))return;const t=Ie(e),n=Ge(e);let r=t.HTMLElement.prototype.focus;function i(){An="virtual",Uo("virtual",null),_n=!0,r.apply(this,arguments)}Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:i}),n.addEventListener("keydown",Go,!0),n.addEventListener("keyup",Go,!0),n.addEventListener("click",Vd,!0),t.addEventListener("focus",Fd,!0),t.addEventListener("blur",Ld,!1),typeof t.PointerEvent<"u"?(n.addEventListener("pointerdown",lt,!0),n.addEventListener("pointermove",lt,!0),n.addEventListener("pointerup",lt,!0)):(n.addEventListener("mousedown",lt,!0),n.addEventListener("mousemove",lt,!0),n.addEventListener("mouseup",lt,!0)),t.addEventListener("beforeunload",()=>{_S(e)},{once:!0}),gi.set(t,{focus:r})}var _S=(e,t)=>{const n=Ie(e),r=Ge(e);gi.has(n)&&(n.HTMLElement.prototype.focus=gi.get(n).focus,r.removeEventListener("keydown",Go,!0),r.removeEventListener("keyup",Go,!0),r.removeEventListener("click",Vd,!0),n.removeEventListener("focus",Fd,!0),n.removeEventListener("blur",Ld,!1),typeof n.PointerEvent<"u"?(r.removeEventListener("pointerdown",lt,!0),r.removeEventListener("pointermove",lt,!0),r.removeEventListener("pointerup",lt,!0)):(r.removeEventListener("mousedown",lt,!0),r.removeEventListener("mousemove",lt,!0),r.removeEventListener("mouseup",lt,!0)),gi.delete(n))};function Dd(){return An==="keyboard"}function VS(e={}){const{isTextInput:t,autoFocus:n,onChange:r,root:i}=e;AS(i),r==null||r({isFocusVisible:n||Dd(),modality:An});const o=(s,a)=>{TS(!!t,s,a)&&(r==null||r({isFocusVisible:Dd(),modality:s}))};return Ya.add(o),()=>{Ya.delete(o)}}var zd=G("checkbox").parts("root","label","control","indicator");zd.build(),U()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const FS=zd.extendWith("group"),[o5,LS]=hr({name:"FieldContext",hookName:"useFieldContext",providerName:"",strict:!1});var Md=G("clipboard").parts("root","control","trigger","indicator","input","label");Md.build(),U()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]),U()(["copied"]);const DS=Ed.extendWith("view");var zS=Object.defineProperty,MS=(e,t,n)=>t in e?zS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A=(e,t,n)=>MS(e,typeof t!="symbol"?t+"":t,n),qo={itemToValue(e){return typeof e=="string"?e:In(e)&&Yt(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:In(e)&&Yt(e,"label")?e.label:qo.itemToValue(e)},isItemDisabled(e){return In(e)&&Yt(e,"disabled")?!!e.disabled:!1}},Ko=class Ob{constructor(t){this.options=t,A(this,"items"),A(this,"indexMap",null),A(this,"copy",n=>new Ob({...this.options,items:n??[...this.items]})),A(this,"isEqual",n=>gt(this.items,n.items)),A(this,"setItems",n=>this.copy(n)),A(this,"getValues",(n=this.items)=>{const r=[];for(const i of n){const o=this.getItemValue(i);o!=null&&r.push(o)}return r}),A(this,"find",n=>{if(n==null)return null;const r=this.indexOf(n);return r!==-1?this.at(r):null}),A(this,"findMany",n=>{const r=[];for(const i of n){const o=this.find(i);o!=null&&r.push(o)}return r}),A(this,"at",n=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[n]??null;let r=0;const i=this.group();for(const[,o]of i)for(const s of o){if(r===n)return s;r++}return null}),A(this,"sortFn",(n,r)=>{const i=this.indexOf(n),o=this.indexOf(r);return(i??0)-(o??0)}),A(this,"sort",n=>[...n].sort(this.sortFn.bind(this))),A(this,"getItemValue",n=>{var r,i;return n==null?null:((i=(r=this.options).itemToValue)==null?void 0:i.call(r,n))??qo.itemToValue(n)}),A(this,"getItemDisabled",n=>{var r,i;return n==null?!1:((i=(r=this.options).isItemDisabled)==null?void 0:i.call(r,n))??qo.isItemDisabled(n)}),A(this,"stringifyItem",n=>{var r,i;return n==null?null:((i=(r=this.options).itemToString)==null?void 0:i.call(r,n))??qo.itemToString(n)}),A(this,"stringify",n=>n==null?null:this.stringifyItem(this.find(n))),A(this,"stringifyItems",(n,r=", ")=>{const i=[];for(const o of n){const s=this.stringifyItem(o);s!=null&&i.push(s)}return i.join(r)}),A(this,"stringifyMany",(n,r)=>this.stringifyItems(this.findMany(n),r)),A(this,"has",n=>this.indexOf(n)!==-1),A(this,"hasItem",n=>n==null?!1:this.has(this.getItemValue(n))),A(this,"group",()=>{const{groupBy:n,groupSort:r}=this.options;if(!n)return[["",[...this.items]]];const i=new Map;this.items.forEach((s,a)=>{const l=n(s,a);i.has(l)||i.set(l,[]),i.get(l).push(s)});let o=Array.from(i.entries());return r&&o.sort(([s],[a])=>{if(typeof r=="function")return r(s,a);if(Array.isArray(r)){const l=r.indexOf(s),c=r.indexOf(a);return l===-1?1:c===-1?-1:l-c}return r==="asc"?s.localeCompare(a):r==="desc"?a.localeCompare(s):0}),o}),A(this,"getNextValue",(n,r=1,i=!1)=>{let o=this.indexOf(n);if(o===-1)return null;for(o=i?Math.min(o+r,this.size-1):o+r;o<=this.size&&this.getItemDisabled(this.at(o));)o++;return this.getItemValue(this.at(o))}),A(this,"getPreviousValue",(n,r=1,i=!1)=>{let o=this.indexOf(n);if(o===-1)return null;for(o=i?Math.max(o-r,0):o-r;o>=0&&this.getItemDisabled(this.at(o));)o--;return this.getItemValue(this.at(o))}),A(this,"indexOf",n=>{if(n==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(r=>this.getItemValue(r)===n);if(!this.indexMap){this.indexMap=new Map;let r=0;const i=this.group();for(const[,o]of i)for(const s of o){const a=this.getItemValue(s);a!=null&&this.indexMap.set(a,r),r++}}return this.indexMap.get(n)??-1}),A(this,"getByText",(n,r)=>{const i=r!=null?this.indexOf(r):-1,o=n.length===1;for(let s=0;s{const{state:i,currentValue:o,timeout:s=350}=r,a=i.keysSoFar+n,c=a.length>1&&Array.from(a).every(f=>f===a[0])?a[0]:a,u=this.getByText(c,o),d=this.getItemValue(u);function h(){clearTimeout(i.timer),i.timer=-1}function m(f){i.keysSoFar=f,h(),f!==""&&(i.timer=+setTimeout(()=>{m(""),h()},s))}return m(a),d}),A(this,"update",(n,r)=>{let i=this.indexOf(n);return i===-1?this:this.copy([...this.items.slice(0,i),r,...this.items.slice(i+1)])}),A(this,"upsert",(n,r,i="append")=>{let o=this.indexOf(n);return o===-1?(i==="append"?this.append:this.prepend)(r):this.copy([...this.items.slice(0,o),r,...this.items.slice(o+1)])}),A(this,"insert",(n,...r)=>this.copy(pi(this.items,n,...r))),A(this,"insertBefore",(n,...r)=>{let i=this.indexOf(n);if(i===-1)if(this.items.length===0)i=0;else return this;return this.copy(pi(this.items,i,...r))}),A(this,"insertAfter",(n,...r)=>{let i=this.indexOf(n);if(i===-1)if(this.items.length===0)i=0;else return this;return this.copy(pi(this.items,i+1,...r))}),A(this,"prepend",(...n)=>this.copy(pi(this.items,0,...n))),A(this,"append",(...n)=>this.copy(pi(this.items,this.items.length,...n))),A(this,"filter",n=>{const r=this.items.filter((i,o)=>n(this.stringifyItem(i),o,i));return this.copy(r)}),A(this,"remove",(...n)=>{const r=n.map(i=>typeof i=="string"?i:this.getItemValue(i));return this.copy(this.items.filter(i=>{const o=this.getItemValue(i);return o==null?!1:!r.includes(o)}))}),A(this,"move",(n,r)=>{const i=this.indexOf(n);return i===-1?this:this.copy(Xo(this.items,[i],r))}),A(this,"moveBefore",(n,...r)=>{let i=this.items.findIndex(s=>this.getItemValue(s)===n);if(i===-1)return this;let o=r.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(Xo(this.items,o,i))}),A(this,"moveAfter",(n,...r)=>{let i=this.items.findIndex(s=>this.getItemValue(s)===n);if(i===-1)return this;let o=r.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(Xo(this.items,o,i+1))}),A(this,"reorder",(n,r)=>this.copy(Xo(this.items,[n],r))),A(this,"compareValue",(n,r)=>{const i=this.indexOf(n),o=this.indexOf(r);return io?1:0}),A(this,"range",(n,r)=>{let i=[],o=n;for(;o!=null;){if(this.find(o)&&i.push(o),o===r)return i;o=this.getNextValue(o)}return[]}),A(this,"getValueRange",(n,r)=>n&&r?this.compareValue(n,r)<=0?this.range(n,r):this.range(r,n):[]),A(this,"toString",()=>{let n="";for(const r of this.items){const i=this.getItemValue(r),o=this.stringifyItem(r),s=this.getItemDisabled(r),a=[i,o,s].filter(Boolean).join(":");n+=a+","}return n}),A(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let t=0;for(;this.getItemDisabled(this.at(t));)t++;return this.getItemValue(this.at(t))}get lastValue(){let t=this.size-1;for(;this.getItemDisabled(this.at(t));)t--;return this.getItemValue(this.at(t))}*[Symbol.iterator](){yield*this.items}},$S=(e,t)=>!!(e!=null&&e.toLowerCase().startsWith(t.toLowerCase()));function pi(e,t,...n){return[...e.slice(0,t),...n,...e.slice(t)]}function Xo(e,t,n){t=[...t].sort((i,o)=>i-o);const r=t.map(i=>e[i]);for(let i=t.length-1;i>=0;i--)e=[...e.slice(0,t[i]),...e.slice(t[i]+1)];return n=Math.max(0,n-t.filter(i=>it[n])return 1}return e.length-t.length}function jS(e){return e.sort(Bd)}function WS(e,t){let n;return it(e,{...t,onEnter:(r,i)=>{if(t.predicate(r,i))return n=r,"stop"}}),n}function HS(e,t){const n=[];return it(e,{onEnter:(r,i)=>{t.predicate(r,i)&&n.push(r)},getChildren:t.getChildren}),n}function jd(e,t){let n;return it(e,{onEnter:(r,i)=>{if(t.predicate(r,i))return n=[...i],"stop"},getChildren:t.getChildren}),n}function US(e,t){let n=t.initialResult;return it(e,{...t,onEnter:(r,i)=>{n=t.nextResult(n,r,i)}}),n}function GS(e,t){return US(e,{...t,initialResult:[],nextResult:(n,r,i)=>(n.push(...t.transform(r,i)),n)})}function qS(e,t){const{predicate:n,create:r,getChildren:i}=t,o=(s,a)=>{const l=i(s,a),c=[];l.forEach((m,f)=>{const g=[...a,f],p=o(m,g);p&&c.push(p)});const u=a.length===0,d=n(s,a),h=c.length>0;return u||d||h?r(s,c,a):null};return o(e,[])||r(e,[],[])}function KS(e,t){const n=[];let r=0;const i=new Map,o=new Map;return it(e,{getChildren:t.getChildren,onEnter:(s,a)=>{i.has(s)||i.set(s,r++);const l=t.getChildren(s,a);l.forEach(m=>{o.has(m)||o.set(m,s),i.has(m)||i.set(m,r++)});const c=l.length>0?l.map(m=>i.get(m)):void 0,u=o.get(s),d=u?i.get(u):void 0,h=i.get(s);n.push({...s,_children:c,_parent:d,_index:h})}}),n}function XS(e,t){return{type:"insert",index:e,nodes:t}}function YS(e){return{type:"remove",indexes:e}}function Ja(){return{type:"replace"}}function Wd(e){return[e.slice(0,-1),e[e.length-1]]}function Hd(e,t,n=new Map){var s;const[r,i]=Wd(e);for(let a=r.length-1;a>=0;a--){const l=r.slice(0,a).join();switch((s=n.get(l))==null?void 0:s.type){case"remove":continue}n.set(l,Ja())}const o=n.get(r.join());switch(o==null?void 0:o.type){case"remove":n.set(r.join(),{type:"removeThenInsert",removeIndexes:o.indexes,insertIndex:i,insertNodes:t});break;default:n.set(r.join(),XS(i,t))}return n}function Ud(e){const t=new Map,n=new Map;for(const r of e){const i=r.slice(0,-1).join(),o=n.get(i)??[];o.push(r[r.length-1]),n.set(i,o.sort((s,a)=>s-a))}for(const r of e)for(let i=r.length-2;i>=0;i--){const o=r.slice(0,i).join();t.has(o)||t.set(o,Ja())}for(const[r,i]of n)t.set(r,YS(i));return t}function QS(e,t){const n=new Map,[r,i]=Wd(e);for(let o=r.length-1;o>=0;o--){const s=r.slice(0,o).join();n.set(s,Ja())}return n.set(r.join(),{type:"removeThenInsert",removeIndexes:[i],insertIndex:i,insertNodes:[t]}),n}function Yo(e,t,n){return JS(e,{...n,getChildren:(r,i)=>{const o=i.join(),s=t.get(o);switch(s==null?void 0:s.type){case"replace":case"remove":case"removeThenInsert":case"insert":return n.getChildren(r,i);default:return[]}},transform:(r,i,o)=>{const s=o.join(),a=t.get(s);switch(a==null?void 0:a.type){case"remove":return n.create(r,i.filter((u,d)=>!a.indexes.includes(d)),o);case"removeThenInsert":const l=i.filter((u,d)=>!a.removeIndexes.includes(d)),c=a.removeIndexes.reduce((u,d)=>d{const o=[0,...i],s=o.join(),a=t.transform(r,n[s]??[],i),l=o.slice(0,-1).join(),c=n[l]??[];c.push(a),n[l]=c}}),n[""][0]}function ZS(e,t){const{nodes:n,at:r}=t;if(r.length===0)throw new Error("Can't insert nodes at the root");const i=Hd(r,n);return Yo(e,i,t)}function ew(e,t){if(t.at.length===0)return t.node;const n=QS(t.at,t.node);return Yo(e,n,t)}function tw(e,t){if(t.indexPaths.length===0)return e;for(const r of t.indexPaths)if(r.length===0)throw new Error("Can't remove the root node");const n=Ud(t.indexPaths);return Yo(e,n,t)}function nw(e,t){if(t.indexPaths.length===0)return e;for(const o of t.indexPaths)if(o.length===0)throw new Error("Can't move the root node");if(t.to.length===0)throw new Error("Can't move nodes to the root");const n=BS(t.indexPaths),r=n.map(o=>$d(e,o,t)),i=Hd(t.to,r,Ud(n));return Yo(e,i,t)}function it(e,t){const{onEnter:n,onLeave:r,getChildren:i}=t;let o=[],s=[{node:e}];const a=t.reuseIndexPath?()=>o:()=>o.slice();for(;s.length>0;){let l=s[s.length-1];if(l.state===void 0){const u=n==null?void 0:n(l.node,a());if(u==="stop")return;l.state=u==="skip"?-1:0}const c=l.children||i(l.node,a());if(l.children||(l.children=c),l.state!==-1){if(l.stategt(this.rootNode,n.rootNode)),A(this,"getNodeChildren",n=>{var r,i;return((i=(r=this.options).nodeToChildren)==null?void 0:i.call(r,n))??Sr.nodeToChildren(n)??[]}),A(this,"resolveIndexPath",n=>typeof n=="string"?this.getIndexPath(n):n),A(this,"resolveNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(r):void 0}),A(this,"getNodeChildrenCount",n=>{var r,i;return((i=(r=this.options).nodeToChildrenCount)==null?void 0:i.call(r,n))??Sr.nodeToChildrenCount(n)}),A(this,"getNodeValue",n=>{var r,i;return((i=(r=this.options).nodeToValue)==null?void 0:i.call(r,n))??Sr.nodeToValue(n)}),A(this,"getNodeDisabled",n=>{var r,i;return((i=(r=this.options).isNodeDisabled)==null?void 0:i.call(r,n))??Sr.isNodeDisabled(n)}),A(this,"stringify",n=>{const r=this.findNode(n);return r?this.stringifyNode(r):null}),A(this,"stringifyNode",n=>{var r,i;return((i=(r=this.options).nodeToString)==null?void 0:i.call(r,n))??Sr.nodeToString(n)}),A(this,"getFirstNode",(n=this.rootNode)=>{let r;return it(n,{getChildren:this.getNodeChildren,onEnter:(i,o)=>{if(!r&&o.length>0&&!this.getNodeDisabled(i))return r=i,"stop"}}),r}),A(this,"getLastNode",(n=this.rootNode,r={})=>{let i;return it(n,{getChildren:this.getNodeChildren,onEnter:(o,s)=>{var a;if(!this.isSameNode(o,n)){if((a=r.skip)!=null&&a.call(r,{value:this.getNodeValue(o),node:o,indexPath:s}))return"skip";s.length>0&&!this.getNodeDisabled(o)&&(i=o)}}}),i}),A(this,"at",n=>$d(this.rootNode,n,{getChildren:this.getNodeChildren})),A(this,"findNode",(n,r=this.rootNode)=>WS(r,{getChildren:this.getNodeChildren,predicate:i=>this.getNodeValue(i)===n})),A(this,"findNodes",(n,r=this.rootNode)=>{const i=new Set(n.filter(o=>o!=null));return HS(r,{getChildren:this.getNodeChildren,predicate:o=>i.has(this.getNodeValue(o))})}),A(this,"sort",n=>n.reduce((r,i)=>{const o=this.getIndexPath(i);return o&&r.push({value:i,indexPath:o}),r},[]).sort((r,i)=>Bd(r.indexPath,i.indexPath)).map(({value:r})=>r)),A(this,"getIndexPath",n=>jd(this.rootNode,{getChildren:this.getNodeChildren,predicate:r=>this.getNodeValue(r)===n})),A(this,"getValue",n=>{const r=this.at(n);return r?this.getNodeValue(r):void 0}),A(this,"getValuePath",n=>{if(!n)return[];const r=[];let i=[...n];for(;i.length>0;){const o=this.at(i);o&&r.unshift(this.getNodeValue(o)),i.pop()}return r}),A(this,"getDepth",n=>{const r=jd(this.rootNode,{getChildren:this.getNodeChildren,predicate:i=>this.getNodeValue(i)===n});return(r==null?void 0:r.length)??0}),A(this,"isSameNode",(n,r)=>this.getNodeValue(n)===this.getNodeValue(r)),A(this,"isRootNode",n=>this.isSameNode(n,this.rootNode)),A(this,"contains",(n,r)=>!n||!r?!1:r.slice(0,n.length).every((i,o)=>n[o]===r[o])),A(this,"getNextNode",(n,r={})=>{let i=!1,o;return it(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{var c;if(this.isRootNode(s))return;const l=this.getNodeValue(s);if((c=r.skip)!=null&&c.call(r,{value:l,node:s,indexPath:a}))return l===n&&(i=!0),"skip";if(i&&!this.getNodeDisabled(s))return o=s,"stop";l===n&&(i=!0)}}),o}),A(this,"getPreviousNode",(n,r={})=>{let i,o=!1;return it(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{var c;if(this.isRootNode(s))return;const l=this.getNodeValue(s);if((c=r.skip)!=null&&c.call(r,{value:l,node:s,indexPath:a}))return"skip";if(l===n)return o=!0,"stop";this.getNodeDisabled(s)||(i=s)}}),o?i:void 0}),A(this,"getParentNodes",n=>{var o;const r=(o=this.resolveIndexPath(n))==null?void 0:o.slice();if(!r)return[];const i=[];for(;r.length>0;){r.pop();const s=this.at(r);s&&!this.isRootNode(s)&&i.unshift(s)}return i}),A(this,"getDescendantNodes",(n,r)=>{const i=this.resolveNode(n);if(!i)return[];const o=[];return it(i,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{a.length!==0&&(!(r!=null&&r.withBranch)&&this.isBranchNode(s)||o.push(s))}}),o}),A(this,"getDescendantValues",(n,r)=>this.getDescendantNodes(n,r).map(o=>this.getNodeValue(o))),A(this,"getParentIndexPath",n=>n.slice(0,-1)),A(this,"getParentNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(this.getParentIndexPath(r)):void 0}),A(this,"visit",n=>{const{skip:r,...i}=n;it(this.rootNode,{...i,getChildren:this.getNodeChildren,onEnter:(o,s)=>{var a;if(!this.isRootNode(o))return r!=null&&r({value:this.getNodeValue(o),node:o,indexPath:s})?"skip":(a=i.onEnter)==null?void 0:a.call(i,o,s)}})}),A(this,"getPreviousSibling",n=>{const r=this.getParentNode(n);if(!r)return;const i=this.getNodeChildren(r);let o=n[n.length-1];for(;--o>=0;){const s=i[o];if(!this.getNodeDisabled(s))return s}}),A(this,"getNextSibling",n=>{const r=this.getParentNode(n);if(!r)return;const i=this.getNodeChildren(r);let o=n[n.length-1];for(;++o{const r=this.getParentNode(n);return r?this.getNodeChildren(r):[]}),A(this,"getValues",(n=this.rootNode)=>GS(n,{getChildren:this.getNodeChildren,transform:i=>[this.getNodeValue(i)]}).slice(1)),A(this,"isValidDepth",(n,r)=>r==null?!0:typeof r=="function"?r(n.length):n.length===r),A(this,"isBranchNode",n=>this.getNodeChildren(n).length>0||this.getNodeChildrenCount(n)!=null),A(this,"getBranchValues",(n=this.rootNode,r={})=>{let i=[];return it(n,{getChildren:this.getNodeChildren,onEnter:(o,s)=>{var l;if(s.length===0)return;const a=this.getNodeValue(o);if((l=r.skip)!=null&&l.call(r,{value:a,node:o,indexPath:s}))return"skip";this.isBranchNode(o)&&this.isValidDepth(s,r.depth)&&i.push(this.getNodeValue(o))}}),i}),A(this,"flatten",(n=this.rootNode)=>KS(n,{getChildren:this.getNodeChildren})),A(this,"_create",(n,r)=>this.getNodeChildren(n).length>0||r.length>0?{...n,children:r}:{...n}),A(this,"_insert",(n,r,i)=>this.copy(ZS(n,{at:r,nodes:i,getChildren:this.getNodeChildren,create:this._create}))),A(this,"copy",n=>new Ib({...this.options,rootNode:n})),A(this,"_replace",(n,r,i)=>this.copy(ew(n,{at:r,node:i,getChildren:this.getNodeChildren,create:this._create}))),A(this,"_move",(n,r,i)=>this.copy(nw(n,{indexPaths:r,to:i,getChildren:this.getNodeChildren,create:this._create}))),A(this,"_remove",(n,r)=>this.copy(tw(n,{indexPaths:r,getChildren:this.getNodeChildren,create:this._create}))),A(this,"replace",(n,r)=>this._replace(this.rootNode,n,r)),A(this,"remove",n=>this._remove(this.rootNode,n)),A(this,"insertBefore",(n,r)=>this.getParentNode(n)?this._insert(this.rootNode,n,r):void 0),A(this,"insertAfter",(n,r)=>{if(!this.getParentNode(n))return;const o=[...n.slice(0,-1),n[n.length-1]+1];return this._insert(this.rootNode,o,r)}),A(this,"move",(n,r)=>this._move(this.rootNode,n,r)),A(this,"filter",n=>{const r=qS(this.rootNode,{predicate:n,getChildren:this.getNodeChildren,create:this._create});return this.copy(r)}),A(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},Sr={nodeToValue(e){return typeof e=="string"?e:In(e)&&Yt(e,"value")?e.value:""},nodeToString(e){return typeof e=="string"?e:In(e)&&Yt(e,"label")?e.label:Sr.nodeToValue(e)},isNodeDisabled(e){return In(e)&&Yt(e,"disabled")?!!e.disabled:!1},nodeToChildren(e){return e.children},nodeToChildrenCount(e){if(In(e)&&Yt(e,"childrenCount"))return e.childrenCount}},wr=new WeakMap,Qo=new WeakMap,Jo={},Za=0,Kd=e=>e&&(e.host||Kd(e.parentNode)),rw=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=Kd(n);return r&&e.contains(r)?r:(console.error("[zag-js > ariaHidden] target",n,"in not contained inside",e,". Doing nothing"),null)}).filter(n=>!!n),iw=new Set(["script","output","status","next-route-announcer"]),ow=e=>iw.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),sw=(e,t)=>{const{parentNode:n,markerName:r,controlAttribute:i}=t,o=rw(n,Array.isArray(e)?e:[e]);Jo[r]||(Jo[r]=new WeakMap);const s=Jo[r],a=[],l=new Set,c=new Set(o),u=h=>{!h||l.has(h)||(l.add(h),u(h.parentNode))};o.forEach(u);const d=h=>{!h||c.has(h)||Array.prototype.forEach.call(h.children,m=>{if(l.has(m))d(m);else try{if(ow(m))return;const g=m.getAttribute(i)==="true",p=(wr.get(m)||0)+1,b=(s.get(m)||0)+1;wr.set(m,p),s.set(m,b),a.push(m),p===1&&g&&Qo.set(m,!0),b===1&&m.setAttribute(r,""),g||m.setAttribute(i,"true")}catch(f){console.error("[zag-js > ariaHidden] cannot operate on ",m,f)}})};return d(n),l.clear(),Za++,()=>{a.forEach(h=>{const m=wr.get(h)-1,f=s.get(h)-1;wr.set(h,m),s.set(h,f),m||(Qo.has(h)||h.removeAttribute(i),Qo.delete(h)),f||h.removeAttribute(r)}),Za--,Za||(wr=new WeakMap,wr=new WeakMap,Qo=new WeakMap,Jo={})}},aw=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,lw=(e,t=aw(e),n="data-aria-hidden")=>{if(t)return sw(e,{parentNode:t,markerName:n,controlAttribute:"aria-hidden"})},cw=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function Xd(e,t={}){const{defer:n=!0}=t,r=n?cw:o=>o(),i=[];return i.push(r(()=>{const s=(typeof e=="function"?e():e).filter(Boolean);s.length!==0&&i.push(lw(s))})),()=>{i.forEach(o=>o==null?void 0:o())}}var Yd=G("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");Yd.build();var Qd=e=>new Ko(e);Qd.empty=()=>new Ko({items:[]});var uw=e=>{var t;return((t=e.ids)==null?void 0:t.control)??`combobox:${e.id}:control`},dw=e=>{var t;return((t=e.ids)==null?void 0:t.input)??`combobox:${e.id}:input`},hw=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`combobox:${e.id}:content`},fw=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`combobox:${e.id}:popper`},gw=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`combobox:${e.id}:toggle-btn`},pw=e=>{var t;return((t=e.ids)==null?void 0:t.clearTrigger)??`combobox:${e.id}:clear-btn`},rn=e=>e.getById(hw(e)),Er=e=>e.getById(dw(e)),Jd=e=>e.getById(fw(e)),Zd=e=>e.getById(uw(e)),mi=e=>e.getById(gw(e)),eh=e=>e.getById(pw(e)),vi=(e,t)=>{if(t==null)return null;const n=`[role=option][data-value="${CSS.escape(t)}"]`;return Ix(rn(e),n)},th=e=>{const t=Er(e);e.isActiveElement(t)||t==null||t.focus({preventScroll:!0})},mw=e=>{const t=mi(e);e.isActiveElement(t)||t==null||t.focus({preventScroll:!0})},{guards:vw,createMachine:bw,choose:yw}=Au(),{and:Pe,not:ot}=vw;bw({props({props:e}){return{loopFocus:!0,openOnClick:!1,defaultValue:[],closeOnSelect:!e.multiple,allowCustomValue:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:t}){Ou(t)},collection:Qd.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"suggesting":"idle"},context({prop:e,bindable:t,getContext:n,getEvent:r}){return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:gt,hash(i){return i.join(",")},onChange(i){var c;const o=n(),s=o.get("selectedItems"),a=e("collection"),l=i.map(u=>s.find(h=>a.getItemValue(h)===u)||a.find(u));o.set("selectedItems",l),(c=e("onValueChange"))==null||c({value:i,items:l})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(i){var s;const o=e("collection").find(i);(s=e("onHighlightChange"))==null||s({highlightedValue:i,highlightedItem:o})}})),inputValue:t(()=>{let i=e("inputValue")||e("defaultInputValue")||"";const o=e("defaultValue")||e("value")||[];if(!i.trim()&&!e("multiple")){const s=e("collection").stringifyMany(o);i=Mt(e("selectionBehavior"),{preserve:i||s,replace:s,clear:""})}return{defaultValue:i,value:e("inputValue"),onChange(s){var c;const a=r(),l=(a.previousEvent||a).src;(c=e("onInputValueChange"))==null||c({inputValue:s,reason:l})}}}),highlightedItem:t(()=>{const i=e("highlightedValue");return{defaultValue:e("collection").find(i)}}),selectedItems:t(()=>{const i=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(i)}})}},computed:{isInputValueEmpty:({context:e})=>e.get("inputValue").length===0,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>e("inputBehavior")==="autocomplete",autoHighlight:({prop:e})=>e("inputBehavior")==="autohighlight",hasSelectedItems:({context:e})=>e.get("value").length>0,valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:n,action:r,send:i}){n([()=>e.hash("value")],()=>{r(["syncSelectedItems"])}),n([()=>e.get("inputValue")],()=>{r(["syncInputValue"])}),n([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem","autofillInputValue"])}),n([()=>t("open")],()=>{r(["toggleVisibility"])}),n([()=>t("collection").toString()],()=>{i({type:"CHILDREN_CHANGE"})})},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:yw([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{idle:{tags:["idle","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"suggesting"},{target:"interacting"}],"INPUT.CHANGE":[{guard:Pe("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:Pe("isCustomValue",ot("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:Pe("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement","hideOtherElements"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:Pe("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:Pe("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:Pe("isOpenControlled","isCustomValue",ot("hasHighlightedItem"),ot("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Pe("isCustomValue",ot("hasHighlightedItem"),ot("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:Pe("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"ITEM.CLICK":[{guard:Pe("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:Pe("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:Pe("isOpenControlled","isCustomValue",ot("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Pe("isCustomValue",ot("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement","hideOtherElements"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"autoHighlight",actions:["highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:Pe("isOpenControlled","isCustomValue",ot("hasHighlightedItem"),ot("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Pe("isCustomValue",ot("hasHighlightedItem"),ot("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:Pe("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.INTERACT_OUTSIDE":[{guard:Pe("isOpenControlled","isCustomValue",ot("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Pe("isCustomValue",ot("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.CLICK":[{guard:Pe("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>e("open")!=null,openOnChange:({prop:e,context:t})=>{const n=e("openOnChange");return l0(n)?n:!!(n!=null&&n({inputValue:t.get("inputValue")}))},restoreFocus:({event:e})=>e.restoreFocus==null?!0:!!e.restoreFocus,isChangeEvent:({event:e})=>{var t;return((t=e.previousEvent)==null?void 0:t.type)==="INPUT.CHANGE"},autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue"))},effects:{trackDismissableLayer({send:e,prop:t,scope:n}){return t("disableLayer")?void 0:Cr(()=>rn(n),{defer:!0,exclude:()=>[Er(n),mi(n),eh(n)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(i){i.preventDefault(),i.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},hideOtherElements({scope:e}){return Xd([Er(e),rn(e),mi(e),eh(e)])},trackPlacement({context:e,prop:t,scope:n}){const r=()=>Zd(n)||mi(n),i=()=>Jd(n);return e.set("currentPlacement",t("positioning").placement),bt(r,i,{...t("positioning"),defer:!0,onComplete(o){e.set("currentPlacement",o.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:n,event:r}){const i=Er(n);let o=[];const s=c=>{const u=r.current().type.includes("POINTER"),d=e.get("highlightedValue");if(u||!d)return;const h=rn(n),m=t("scrollToIndexFn");if(m){const p=t("collection").indexOf(d);m({index:p,immediate:c,getElement:()=>vi(n,d)});return}const f=vi(n,d),g=Z(()=>{Oo(f,{rootEl:h,block:"nearest"})});o.push(g)},a=Z(()=>s(!0));o.push(a);const l=Eo(i,{attributes:["aria-activedescendant"],callback:()=>s(!1)});return o.push(l),()=>{o.forEach(c=>c())}}},actions:{reposition({context:e,prop:t,scope:n,event:r}){bt(()=>Zd(n),()=>Jd(n),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(s){e.set("currentPlacement",s.placement)}})},setHighlightedValue({context:e,event:t}){t.value!=null&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){var a;const{context:t,prop:n}=e,r=n("collection"),i=t.get("highlightedValue");if(!i||!r.has(i))return;const o=n("multiple")?dr(t.get("value"),i):[i];(a=n("onSelect"))==null||a({value:o,itemValue:i}),t.set("value",o);const s=Mt(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(o),clear:""});t.set("inputValue",s)},scrollToHighlightedItem({context:e,prop:t,scope:n}){Ea(()=>{const r=e.get("highlightedValue");if(r==null)return;const i=vi(n,r),o=rn(n),s=t("scrollToIndexFn");if(s){const a=t("collection").indexOf(r);s({index:a,immediate:!0,getElement:()=>vi(n,r)});return}Oo(i,{rootEl:o,block:"nearest"})})},selectItem(e){const{context:t,event:n,flush:r,prop:i}=e;n.value!=null&&r(()=>{var a;const o=i("multiple")?dr(t.get("value"),n.value):[n.value];(a=i("onSelect"))==null||a({value:o,itemValue:n.value}),t.set("value",o);const s=Mt(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany(o),clear:""});t.set("inputValue",s)})},clearItem(e){const{context:t,event:n,flush:r,prop:i}=e;n.value!=null&&r(()=>{const o=On(t.get("value"),n.value);t.set("value",o);const s=Mt(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany(o),clear:""});t.set("inputValue",s)})},setInitialFocus({scope:e}){Z(()=>{th(e)})},setFinalFocus({scope:e}){Z(()=>{const t=mi(e);(t==null?void 0:t.dataset.focusable)==null?th(e):mw(e)})},syncInputValue({context:e,scope:t,event:n}){const r=Er(t);r&&(r.value=e.get("inputValue"),queueMicrotask(()=>{n.current().type!=="INPUT.CHANGE"&&V0(r)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:n}){const r=t("selectionBehavior"),i=Mt(r,{replace:n("hasSelectedItems")?n("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",i)},setValue(e){const{context:t,flush:n,event:r,prop:i}=e;n(()=>{t.set("value",r.value);const o=Mt(i("selectionBehavior"),{preserve:t.get("inputValue"),replace:i("collection").stringifyMany(r.value),clear:""});t.set("inputValue",o)})},clearSelectedItems(e){const{context:t,flush:n,prop:r}=e;n(()=>{t.set("value",[]);const i=Mt(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",i)})},scrollContentToTop({prop:e,scope:t}){const n=e("scrollToIndexFn");if(n){const r=e("collection").firstValue;n({index:0,immediate:!0,getElement:()=>vi(t,r)})}else{const r=rn(t);if(!r)return;r.scrollTop=0}},invokeOnOpen({prop:e,event:t}){var r;const n=nh(t);(r=e("onOpenChange"))==null||r({open:!0,reason:n})},invokeOnClose({prop:e,event:t}){var r;const n=nh(t);(r=e("onOpenChange"))==null||r({open:!1,reason:n})},highlightFirstItem({context:e,prop:t,scope:n}){(rn(n)?queueMicrotask:Z)(()=>{const i=t("collection").firstValue;i&&e.set("highlightedValue",i)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:n}){(rn(n)?queueMicrotask:Z)(()=>{const i=t("collection").lastValue;i&&e.set("highlightedValue",i)})},highlightNextItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),i=t("collection");r?(n=i.getNextValue(r),!n&&t("loopFocus")&&(n=i.firstValue)):n=i.firstValue,n&&e.set("highlightedValue",n)},highlightPrevItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),i=t("collection");r?(n=i.getPreviousValue(r),!n&&t("loopFocus")&&(n=i.lastValue)):n=i.lastValue,n&&e.set("highlightedValue",n)},highlightFirstSelectedItem({context:e,prop:t}){Z(()=>{const[n]=t("collection").sort(e.get("value"));n&&e.set("highlightedValue",n)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:n}){Z(()=>{let r=null;n("hasSelectedItems")?r=t("collection").sort(e.get("value"))[0]:r=t("collection").firstValue,r&&e.set("highlightedValue",r)})},highlightLastOrSelectedItem({context:e,prop:t,computed:n}){Z(()=>{const r=t("collection");let i=null;n("hasSelectedItems")?i=r.sort(e.get("value"))[0]:i=r.lastValue,i&&e.set("highlightedValue",i)})},autofillInputValue({context:e,computed:t,prop:n,event:r,scope:i}){const o=Er(i),s=n("collection");if(!t("autoComplete")||!o||!r.keypress)return;const a=s.stringify(e.get("highlightedValue"));Z(()=>{o.value=a||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:n}=e,r=n("collection"),i=t.get("value"),o=i.map(a=>t.get("selectedItems").find(c=>r.getItemValue(c)===a)||r.find(a));t.set("selectedItems",o);const s=Mt(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(i),clear:""});t.set("inputValue",s)})},syncHighlightedItem({context:e,prop:t}){const n=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",n)},toggleVisibility({event:e,send:t,prop:n}){t({type:n("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function nh(e){return(e.previousEvent||e).src}U()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value"]),U()(["htmlFor"]),U()(["id"]),U()(["item","persistFocus"]);const xw=Yd.extendWith("empty"),[rh,on]=hr({name:"DialogContext",hookName:"useDialogContext",providerName:""}),ih=E.forwardRef((e,t)=>{const n=on(),r=mS(),i=Na({...r,present:n.open}),o=pt(n.getBackdropProps(),i.getPresenceProps(),e);return i.unmounted?null:v.jsx(en.div,{...o,ref:To(i.ref,t)})});ih.displayName="DialogBackdrop";const oh=E.forwardRef((e,t)=>{const n=on(),r=pt(n.getCloseTriggerProps(),e);return v.jsx(en.button,{...r,ref:t})});oh.displayName="DialogCloseTrigger";const sh=E.forwardRef((e,t)=>{const n=on(),r=Aa(),i=pt(n.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:v.jsx(en.div,{...i,ref:To(r.ref,t)})});sh.displayName="DialogContent";const ah=E.forwardRef((e,t)=>{const n=on(),r=pt(n.getDescriptionProps(),e);return v.jsx(en.div,{...r,ref:t})});ah.displayName="DialogDescription";const lh=E.forwardRef((e,t)=>{const n=on(),r=pt(n.getPositionerProps(),e);return Aa().unmounted?null:v.jsx(en.div,{...r,ref:t})});lh.displayName="DialogPositioner";var Cw=Object.defineProperty,Sw=(e,t,n)=>t in e?Cw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fe=(e,t,n)=>Sw(e,typeof t!="symbol"?t+"":t,n),ch={activateTrap(e,t){if(e.length>0){const r=e[e.length-1];r!==t&&r.pause()}const n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},ww=[],Ew=class{constructor(e,t){fe(this,"trapStack"),fe(this,"config"),fe(this,"doc"),fe(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),fe(this,"listenerCleanups",[]),fe(this,"handleFocus",r=>{const i=tt(r),o=this.findContainerIndex(i,r)>=0;if(o||va(i))o&&(this.state.mostRecentlyFocusedNode=i);else{r.stopImmediatePropagation();let s,a=!0;if(this.state.mostRecentlyFocusedNode)if(li(this.state.mostRecentlyFocusedNode)>0){const l=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:c}=this.state.containerGroups[l];if(c.length>0){const u=c.findIndex(d=>d===this.state.mostRecentlyFocusedNode);u>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?u+1=0&&(s=c[u-1],a=!1))}}else this.state.containerGroups.some(l=>l.tabbableNodes.some(c=>li(c)>0))||(a=!1);else a=!1;a&&(s=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),s?this.tryFocus(s):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),fe(this,"handlePointerDown",r=>{const i=tt(r);if(!(this.findContainerIndex(i,r)>=0)){if(yi(this.config.clickOutsideDeactivates,r)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}yi(this.config.allowOutsideClick,r)||r.preventDefault()}}),fe(this,"handleClick",r=>{const i=tt(r);this.findContainerIndex(i,r)>=0||yi(this.config.clickOutsideDeactivates,r)||yi(this.config.allowOutsideClick,r)||(r.preventDefault(),r.stopImmediatePropagation())}),fe(this,"handleTabKey",r=>{if(this.config.isKeyForward(r)||this.config.isKeyBackward(r)){this.state.recentNavEvent=r;const i=this.config.isKeyBackward(r),o=this.findNextNavNode({event:r,isBackward:i});if(!o)return;bi(r)&&r.preventDefault(),this.tryFocus(o)}}),fe(this,"handleEscapeKey",r=>{kw(r)&&yi(this.config.escapeDeactivates,r)!==!1&&(r.preventDefault(),this.deactivate())}),fe(this,"_mutationObserver"),fe(this,"setupMutationObserver",()=>{const r=this.doc.defaultView||window;this._mutationObserver=new r.MutationObserver(i=>{i.some(s=>Array.from(s.removedNodes).some(l=>l===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode())})}),fe(this,"updateObservedNodes",()=>{var r;(r=this._mutationObserver)==null||r.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(i=>{var o;(o=this._mutationObserver)==null||o.observe(i,{subtree:!0,childList:!0})})}),fe(this,"getInitialFocusNode",()=>{let r=this.getNodeForOption("initialFocus",{hasFallback:!0});if(r===!1)return!1;if(r===void 0||r&&!Jt(r))if(this.findContainerIndex(this.doc.activeElement)>=0)r=this.doc.activeElement;else{const i=this.state.tabbableGroups[0];r=i&&i.firstTabbableNode||this.getNodeForOption("fallbackFocus")}else r===null&&(r=this.getNodeForOption("fallbackFocus"));if(!r)throw new Error("Your focus-trap needs to have at least one focusable element");return r.isConnected||(r=this.getNodeForOption("fallbackFocus")),r}),fe(this,"tryFocus",r=>{if(r!==!1&&r!==xu(this.doc)){if(!r||!r.focus){this.tryFocus(this.getInitialFocusNode());return}r.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=r,Ow(r)&&r.select()}}),fe(this,"deactivate",r=>{if(!this.state.active)return this;const i={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...r};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),ch.deactivateTrap(this.trapStack,this);const o=this.getOption(i,"onDeactivate"),s=this.getOption(i,"onPostDeactivate"),a=this.getOption(i,"checkCanReturnFocus"),l=this.getOption(i,"returnFocus","returnFocusOnDeactivate");o==null||o();const c=()=>{uh(()=>{if(l){const u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(u)}s==null||s()})};if(l&&a){const u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return a(u).then(c,c),this}return c(),this}),fe(this,"pause",r=>{if(this.state.paused||!this.state.active)return this;const i=this.getOption(r,"onPause"),o=this.getOption(r,"onPostPause");return this.state.paused=!0,i==null||i(),this.removeListeners(),this.updateObservedNodes(),o==null||o(),this}),fe(this,"unpause",r=>{if(!this.state.paused||!this.state.active)return this;const i=this.getOption(r,"onUnpause"),o=this.getOption(r,"onPostUnpause");return this.state.paused=!1,i==null||i(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),o==null||o(),this}),fe(this,"updateContainerElements",r=>(this.state.containers=Array.isArray(r)?r.filter(Boolean):[r].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),fe(this,"getReturnFocusNode",r=>{const i=this.getNodeForOption("setReturnFocus",{params:[r]});return i||(i===!1?!1:r)}),fe(this,"getOption",(r,i,o)=>r&&r[i]!==void 0?r[i]:this.config[o||i]),fe(this,"getNodeForOption",(r,{hasFallback:i=!1,params:o=[]}={})=>{let s=this.config[r];if(typeof s=="function"&&(s=s(...o)),s===!0&&(s=void 0),!s){if(s===void 0||s===!1)return s;throw new Error(`\`${r}\` was specified but was not a node, or did not return a node`)}let a=s;if(typeof s=="string"){try{a=this.doc.querySelector(s)}catch(l){throw new Error(`\`${r}\` appears to be an invalid selector; error="${l.message}"`)}if(!a&&!i)throw new Error(`\`${r}\` as selector refers to no known node`)}return a}),fe(this,"findNextNavNode",r=>{const{event:i,isBackward:o=!1}=r,s=r.target||tt(i);this.updateTabbableNodes();let a=null;if(this.state.tabbableGroups.length>0){const l=this.findContainerIndex(s,i),c=l>=0?this.state.containerGroups[l]:void 0;if(l<0)o?a=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:a=this.state.tabbableGroups[0].firstTabbableNode;else if(o){let u=this.state.tabbableGroups.findIndex(({firstTabbableNode:d})=>s===d);if(u<0&&((c==null?void 0:c.container)===s||Jt(s)&&!Tn(s)&&!(c!=null&&c.nextTabbableNode(s,!1)))&&(u=l),u>=0){const d=u===0?this.state.tabbableGroups.length-1:u-1,h=this.state.tabbableGroups[d];a=li(s)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else bi(i)||(a=c==null?void 0:c.nextTabbableNode(s,!1))}else{let u=this.state.tabbableGroups.findIndex(({lastTabbableNode:d})=>s===d);if(u<0&&((c==null?void 0:c.container)===s||Jt(s)&&!Tn(s)&&!(c!=null&&c.nextTabbableNode(s)))&&(u=l),u>=0){const d=u===this.state.tabbableGroups.length-1?0:u+1,h=this.state.tabbableGroups[d];a=li(s)>=0?h.firstTabbableNode:h.firstDomTabbableNode}else bi(i)||(a=c==null?void 0:c.nextTabbableNode(s))}}else a=this.getNodeForOption("fallbackFocus");return a}),this.trapStack=t.trapStack||ww;const n={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward(r){return bi(r)&&!r.shiftKey},isKeyBackward(r){return bi(r)&&r.shiftKey},...t};this.doc=n.document||Ge(Array.isArray(e)?e[0]:e),this.config=n,this.updateContainerElements(e),this.setupMutationObserver()}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const n=typeof(t==null?void 0:t.composedPath)=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:r,tabbableNodes:i})=>r.contains(e)||(n==null?void 0:n.includes(r))||i.find(o=>o===e))}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=Sa(e),n=ku(e),r=t.length>0?t[0]:void 0,i=t.length>0?t[t.length-1]:void 0,o=n.find(c=>Tn(c)),s=n.slice().reverse().find(c=>Tn(c)),a=!!t.find(c=>li(c)>0);function l(c,u=!0){const d=t.indexOf(c);return d<0?u?n.slice(n.indexOf(c)+1).find(h=>Tn(h)):n.slice(0,n.indexOf(c)).reverse().find(h=>Tn(h)):t[d+(u?1:-1)]}return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:a,firstTabbableNode:r,lastTabbableNode:i,firstDomTabbableNode:o,lastDomTabbableNode:s,nextTabbableNode:l}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return ch.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?uh(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(he(this.doc,"focusin",this.handleFocus,!0),he(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),he(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),he(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),he(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),he(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const t=this.getOption(e,"onActivate"),n=this.getOption(e,"onPostActivate"),r=this.getOption(e,"checkCanFocusTrap");r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=this.doc.activeElement||null,t==null||t();const i=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),n==null||n()};return r?(r(this.state.containers.concat()).then(i,i),this):(i(),this)}},bi=e=>e.key==="Tab",yi=(e,...t)=>typeof e=="function"?e(...t):e,kw=e=>!e.isComposing&&e.key==="Escape",uh=e=>setTimeout(e,0),Ow=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function Iw(e,t={}){let n;const r=Z(()=>{const i=typeof e=="function"?e():e;if(i){n=new Ew(i,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:i,...t,document:Ge(i)});try{n.activate()}catch{}}});return function(){n==null||n.deactivate(),r()}}var el="data-scroll-lock";function Pw(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function Rw(e){const t=e??document,n=t.defaultView??window,{documentElement:r,body:i}=t;if(i.hasAttribute(el))return;const s=n.innerWidth-r.clientWidth;i.setAttribute(el,"");const a=()=>Fx(r,"--scrollbar-width",`${s}px`),l=Pw(r),c=()=>Ro(i,{overflow:"hidden",[l]:`${s}px`}),u=()=>{const{scrollX:h,scrollY:m,visualViewport:f}=n,g=(f==null?void 0:f.offsetLeft)??0,p=(f==null?void 0:f.offsetTop)??0,b=Ro(i,{position:"fixed",overflow:"hidden",top:`${-(m-Math.floor(p))}px`,left:`${-(h-Math.floor(g))}px`,right:"0",[l]:`${s}px`});return()=>{b==null||b(),n.scrollTo({left:h,top:m,behavior:"instant"})}},d=[a(),Co()?u():c()];return()=>{d.forEach(h=>h==null?void 0:h()),i.removeAttribute(el)}}var tl=G("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),Vn=tl.build(),dh=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`dialog:${e.id}:positioner`},hh=e=>{var t;return((t=e.ids)==null?void 0:t.backdrop)??`dialog:${e.id}:backdrop`},nl=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`dialog:${e.id}:content`},fh=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`dialog:${e.id}:trigger`},rl=e=>{var t;return((t=e.ids)==null?void 0:t.title)??`dialog:${e.id}:title`},il=e=>{var t;return((t=e.ids)==null?void 0:t.description)??`dialog:${e.id}:description`},gh=e=>{var t;return((t=e.ids)==null?void 0:t.closeTrigger)??`dialog:${e.id}:close`},Zo=e=>e.getById(nl(e)),Tw=e=>e.getById(dh(e)),Nw=e=>e.getById(hh(e)),Aw=e=>e.getById(fh(e)),_w=e=>e.getById(rl(e)),Vw=e=>e.getById(il(e)),Fw=e=>e.getById(gh(e));function Lw(e,t){const{state:n,send:r,context:i,prop:o,scope:s}=e,a=o("aria-label"),l=n.matches("open");return{open:l,setOpen(c){n.matches("open")!==c&&r({type:c?"OPEN":"CLOSE"})},getTriggerProps(){return t.button({...Vn.trigger.attrs,dir:o("dir"),id:fh(s),"aria-haspopup":"dialog",type:"button","aria-expanded":l,"data-state":l?"open":"closed","aria-controls":nl(s),onClick(c){c.defaultPrevented||r({type:"TOGGLE"})}})},getBackdropProps(){return t.element({...Vn.backdrop.attrs,dir:o("dir"),hidden:!l,id:hh(s),"data-state":l?"open":"closed"})},getPositionerProps(){return t.element({...Vn.positioner.attrs,dir:o("dir"),id:dh(s),style:{pointerEvents:l?void 0:"none"}})},getContentProps(){const c=i.get("rendered");return t.element({...Vn.content.attrs,dir:o("dir"),role:o("role"),hidden:!l,id:nl(s),tabIndex:-1,"data-state":l?"open":"closed","aria-modal":!0,"aria-label":a||void 0,"aria-labelledby":a||!c.title?void 0:rl(s),"aria-describedby":c.description?il(s):void 0})},getTitleProps(){return t.element({...Vn.title.attrs,dir:o("dir"),id:rl(s)})},getDescriptionProps(){return t.element({...Vn.description.attrs,dir:o("dir"),id:il(s)})},getCloseTriggerProps(){return t.button({...Vn.closeTrigger.attrs,dir:o("dir"),id:gh(s),type:"button",onClick(c){c.defaultPrevented||(c.stopPropagation(),r({type:"CLOSE"}))}})}}}var Dw={props({props:e,scope:t}){const n=e.role==="alertdialog",r=n?()=>Fw(t):void 0,i=typeof e.modal=="boolean"?e.modal:!0;return{role:"dialog",modal:i,trapFocus:i,preventScroll:i,closeOnInteractOutside:!n,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r,...e}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}},watch({track:e,action:t,prop:n}){e([()=>n("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:n}){return Cr(()=>Zo(e),{defer:!0,pointerBlocking:n("modal"),exclude:[Aw(e)],onInteractOutside(i){var o;(o=n("onInteractOutside"))==null||o(i),n("closeOnInteractOutside")||i.preventDefault()},persistentElements:n("persistentElements"),onFocusOutside:n("onFocusOutside"),onPointerDownOutside:n("onPointerDownOutside"),onRequestDismiss:n("onRequestDismiss"),onEscapeKeyDown(i){var o;(o=n("onEscapeKeyDown"))==null||o(i),n("closeOnEscape")||i.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return Rw(e.getDoc())},trapFocus({scope:e,prop:t}){return t("trapFocus")?Iw(()=>Zo(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:r=>{var i;return((i=t("finalFocusEl"))==null?void 0:i())??r}}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?Xd(()=>[Zo(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){Z(()=>{e.set("rendered",{title:!!_w(t),description:!!Vw(t)})})},syncZIndex({scope:e}){Z(()=>{const t=Zo(e);if(!t)return;const n=yo(t);[Tw(e),Nw(e)].forEach(i=>{i==null||i.style.setProperty("--z-index",n.zIndex),i==null||i.style.setProperty("--layer-index",n.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!1})},invokeOnOpen({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!0})},toggleVisibility({prop:e,send:t,event:n}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})}}}};U()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);const zw=e=>{const t=E.useId(),{getRootNode:n}=pu(),{dir:r}=Ux(),i={id:t,getRootNode:n,dir:r,...e},o=Lu(Dw,i);return Lw(o,Jx)},Mw=e=>{const[t,{children:n,...r}]=Vu(e),[i]=Rd(t),o=zw(r),s=Na(pt({present:o.open},t));return v.jsx(rh,{value:o,children:v.jsx(Pd,{value:i,children:v.jsx(Mu,{value:s,children:n})})})},$w=e=>{const[t,{value:n,children:r}]=Vu(e),[i]=Rd(t),o=Na(pt({present:n.open},t));return v.jsx(rh,{value:n,children:v.jsx(Pd,{value:i,children:v.jsx(Mu,{value:o,children:r})})})},ph=E.forwardRef((e,t)=>{const n=on(),r=pt(n.getTitleProps(),e);return v.jsx(en.h2,{...r,ref:t})});ph.displayName="DialogTitle";const mh=E.forwardRef((e,t)=>{const n=on(),r=Aa(),i=pt({...n.getTriggerProps(),"aria-controls":r.unmounted?void 0:n.getTriggerProps()["aria-controls"]},e);return v.jsx(en.button,{...i,ref:t})});mh.displayName="DialogTrigger";var vh=G("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");vh.build(),U()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]);const bh=G("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");bh.build();var Bw=e=>{var c,u;if(!e)return;const t=yo(e),n=Ie(e),r=Ge(e),i=()=>{requestAnimationFrame(()=>{e.style.height="auto";let d;t.boxSizing==="content-box"?d=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):d=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&d>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),d=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${d}px`})};e.addEventListener("input",i),(c=e.form)==null||c.addEventListener("reset",i);const o=Object.getPrototypeOf(e),s=Object.getOwnPropertyDescriptor(o,"value");Object.defineProperty(e,"value",{...s,set(){var d;(d=s==null?void 0:s.set)==null||d.apply(this,arguments),i()}});const a=new n.ResizeObserver(()=>{requestAnimationFrame(()=>i())});a.observe(e);const l=new n.MutationObserver(()=>i());return l.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),(u=r.fonts)==null||u.addEventListener("loadingdone",i),()=>{var d,h;e.removeEventListener("input",i),(d=e.form)==null||d.removeEventListener("reset",i),(h=r.fonts)==null||h.removeEventListener("loadingdone",i),a.disconnect(),l.disconnect()}};const yh=E.forwardRef((e,t)=>{const{autoresize:n,...r}=e,i=E.useRef(null),o=LS(),s=pt(o==null?void 0:o.getTextareaProps(),{style:{resize:n?"none":void 0}},r);return E.useEffect(()=>{if(n)return Bw(i.current)},[n]),v.jsx(en.textarea,{...s,ref:To(t,i)})});yh.displayName="FieldTextarea";const xh=G("fieldset").parts("root","errorText","helperText","legend");xh.build();var Ch=G("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");Ch.build(),U()(["accept","acceptedFiles","allowDrop","capture","defaultAcceptedFiles","dir","directory","disabled","getRootNode","id","ids","invalid","locale","maxFiles","maxFileSize","minFileSize","name","onFileAccept","onFileChange","onFileReject","preventDocumentDrop","required","transformFiles","translations","validate"]),U()(["file"]);var Sh=G("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");Sh.build();var jw=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`hover-card:${e.id}:trigger`},Ww=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`hover-card:${e.id}:content`},Hw=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`hover-card:${e.id}:popper`},ol=e=>e.getById(jw(e)),Uw=e=>e.getById(Ww(e)),wh=e=>e.getById(Hw(e)),{not:es,and:Eh}=Zt();Eh("isOpenControlled",es("isPointer")),es("isPointer"),Eh("isOpenControlled",es("isPointer")),es("isPointer"),U()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var kh=G("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","root","tree");kh.build();var Oh=e=>new qd(e);Oh.empty=()=>new qd({rootNode:{children:[]}});var Gw=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.node)==null?void 0:r.call(n,t))??`tree:${e.id}:node:${t}`},Fn=(e,t)=>{var n;t!=null&&((n=e.getById(Gw(e,t)))==null||n.focus())};function qw(e,t,n){const r=e.getDescendantValues(t),i=r.every(o=>n.includes(o));return ur(i?On(n,...r):kn(n,...r))}function ts(e,t){const{context:n,prop:r,refs:i}=e;if(!r("loadChildren")){n.set("expandedValue",g=>ur(kn(g,...t)));return}const o=n.get("loadingStatus"),[s,a]=nu(t,g=>o[g]==="loaded");if(s.length>0&&n.set("expandedValue",g=>ur(kn(g,...s))),a.length===0)return;const l=r("collection"),[c,u]=nu(a,g=>{const p=l.findNode(g);return l.getNodeChildren(p).length>0});if(c.length>0&&n.set("expandedValue",g=>ur(kn(g,...c))),u.length===0)return;n.set("loadingStatus",g=>({...g,...u.reduce((p,b)=>({...p,[b]:"loading"}),{})}));const d=u.map(g=>{const p=l.getIndexPath(g),b=l.getValuePath(p),x=l.findNode(g);return{id:g,indexPath:p,valuePath:b,node:x}}),h=i.get("pendingAborts"),m=r("loadChildren");gu(m,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion");const f=d.map(({id:g,indexPath:p,valuePath:b,node:x})=>{const S=h.get(g);S&&(S.abort(),h.delete(g));const C=new AbortController;return h.set(g,C),m({valuePath:b,indexPath:p,node:x,signal:C.signal})});Promise.allSettled(f).then(g=>{var C,w;const p=[],b=[],x=n.get("loadingStatus");let S=r("collection");g.forEach((P,_)=>{const{id:R,indexPath:N,node:T,valuePath:j}=d[_];P.status==="fulfilled"?(x[R]="loaded",p.push(R),S=S.replace(N,{...T,children:P.value})):(h.delete(R),Reflect.deleteProperty(x,R),b.push({node:T,error:P.reason,indexPath:N,valuePath:j}))}),n.set("loadingStatus",x),p.length&&(n.set("expandedValue",P=>ur(kn(P,...p))),(C=r("onLoadChildrenComplete"))==null||C({collection:S})),b.length&&((w=r("onLoadChildrenError"))==null||w({nodes:b}))})}function sn(e){const{prop:t,context:n}=e;return function({indexPath:i}){return t("collection").getValuePath(i).slice(0,-1).some(s=>!n.get("expandedValue").includes(s))}}var{and:Nt}=Zt();Nt("isMultipleSelection","moveFocus"),Nt("isShiftKey","isMultipleSelection"),Nt("isShiftKey","isMultipleSelection"),Nt("isBranchFocused","isBranchExpanded"),Nt("isShiftKey","isMultipleSelection"),Nt("isShiftKey","isMultipleSelection"),Nt("isCtrlKey","isMultipleSelection"),Nt("isShiftKey","isMultipleSelection"),Nt("isCtrlKey","isMultipleSelection"),Nt("isShiftKey","isMultipleSelection"),U()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren"]),U()(["node","indexPath"]);var Ih=G("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");Ih.build(),U()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"]),U()(["item","highlightOnHover"]),U()(["id"]),U()(["htmlFor"]);const Kw=Ih.extendWith("empty");var Ph=G("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");Ph.build();var Rh=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`menu:${e.id}:trigger`},Xw=e=>{var t;return((t=e.ids)==null?void 0:t.contextTrigger)??`menu:${e.id}:ctx-trigger`},Th=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`menu:${e.id}:content`},Yw=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`menu:${e.id}:popper`},sl=(e,t)=>`${e.id}/${t}`,Ln=e=>(e==null?void 0:e.dataset.value)??null,an=e=>e.getById(Th(e)),Nh=e=>e.getById(Yw(e)),ns=e=>e.getById(Rh(e)),Qw=(e,t)=>t?e.getById(sl(e,t)):null,al=e=>e.getById(Xw(e)),xi=e=>{const n=`[role^="menuitem"][data-ownedby=${CSS.escape(Th(e))}]:not([data-disabled])`;return Po(an(e),n)},Jw=e=>oi(xi(e)),Zw=e=>fa(xi(e)),ll=(e,t)=>t?e.id===t||e.dataset.value===t:!1,eE=(e,t)=>{const n=xi(e),r=n.findIndex(i=>ll(i,t.value));return i0(n,r,{loop:t.loop??t.loopFocus})},tE=(e,t)=>{const n=xi(e),r=n.findIndex(i=>ll(i,t.value));return s0(n,r,{loop:t.loop??t.loopFocus})},nE=(e,t)=>{const n=xi(e),r=n.find(i=>ll(i,t.value));return ci(n,{state:t.typeaheadState,key:t.key,activeId:(r==null?void 0:r.id)??null})},rE=e=>{var t;return!!((t=e==null?void 0:e.getAttribute("role"))!=null&&t.startsWith("menuitem"))&&!!(e!=null&&e.hasAttribute("aria-controls"))},iE="menu:select";function oE(e,t){if(!e)return;const n=Ie(e),r=new n.CustomEvent(iE,{detail:{value:t}});e.dispatchEvent(r)}var{not:ct,and:kr,or:sE}=Zt();ct("isSubmenu"),sE("isOpenAutoFocusEvent","isArrowDownEvent"),kr(ct("isTriggerItem"),"isOpenControlled"),ct("isTriggerItem"),kr("isSubmenu","isOpenControlled"),ct("isPointerSuspended"),kr(ct("isPointerSuspended"),ct("isTriggerItem")),kr(ct("isTriggerItemHighlighted"),ct("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),kr(ct("isTriggerItemHighlighted"),ct("isHighlightedItemEditable"),"closeOnSelect"),kr(ct("isTriggerItemHighlighted"),ct("isHighlightedItemEditable"));function Ah(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t==null||t.send({type:"CLOSE"})}function aE(e,t){return e?IS(e,t):!1}function lE(e,t,n){const r=Object.keys(e).length>0;if(!t)return null;if(!r)return sl(n,t);for(const i in e){const o=e[i],s=Rh(o.scope);if(s===t)return s}return sl(n,t)}U()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","onSelect","open","positioning","typeahead"]),U()(["closeOnSelect","disabled","value","valueText"]),U()(["htmlFor"]),U()(["id"]),U()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);let cl=new Map,ul=!1;try{ul=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let rs=!1;try{rs=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const _h={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class cE{format(t){let n="";if(!ul&&this.options.signDisplay!=null?n=dE(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!rs){var r;let{unit:i,unitDisplay:o="short",locale:s}=this.resolvedOptions();if(!i)return n;let a=(r=_h[i])===null||r===void 0?void 0:r[o];n+=a[s]||a.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(o=>({...o,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(o=>({...o,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!ul&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!rs&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=uE(t,n),this.options=n}}function uE(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!rs){var r;let{unit:s,unitDisplay:a="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=_h[s])===null||r===void 0)&&r[a]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((s,a)=>s[0]0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),o=e.format(n),s=i.replace(o,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(o,"!!!").replace(s,"+").replace("!!!",o)}else return e.format(n)}}const hE=new RegExp("^.*\\(.*\\).*$"),fE=["latn","arab","hanidec","deva","beng","fullwide"];class Vh{parse(t){return dl(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return dl(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return dl(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const Fh=new Map;function dl(e,t,n){let r=Lh(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let i of fE)if(i!==r.options.numberingSystem){let o=Lh(e+(e.includes("-u-")?"-nu-":"-u-nu-")+i,t);if(o.isValidPartialNumber(n))return o}}return r}function Lh(e,t){let n=e+(t?Object.entries(t).sort((i,o)=>i[0]-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var i,o;let s={...this.options,style:"decimal",minimumFractionDigits:Math.min(((i=this.options.minimumFractionDigits)!==null&&i!==void 0?i:0)+2,20),maximumFractionDigits:Math.min(((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)+2,20)};return new Vh(this.locale,s).parse(new cE(this.locale,s).format(r))}return this.options.currencySign==="accounting"&&hE.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=Ci(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(t=Ci(t," ",this.symbols.group),t=Ci(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=Ci(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=mE(t,this.formatter,this.options,n);var r,i;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const Dh=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),pE=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function mE(e,t,n,r){var i,o,s,a;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),c=l.formatToParts(-10000.111),u=l.formatToParts(10000.111),d=pE.map(T=>l.formatToParts(T));var h;let m=(h=(i=c.find(T=>T.type==="minusSign"))===null||i===void 0?void 0:i.value)!==null&&h!==void 0?h:"-",f=(o=u.find(T=>T.type==="plusSign"))===null||o===void 0?void 0:o.value;!f&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(f="+");let p=(s=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(T=>T.type==="decimal"))===null||s===void 0?void 0:s.value,b=(a=c.find(T=>T.type==="group"))===null||a===void 0?void 0:a.value,x=c.filter(T=>!Dh.has(T.type)).map(T=>zh(T.value)),S=d.flatMap(T=>T.filter(j=>!Dh.has(j.type)).map(j=>zh(j.value))),C=[...new Set([...x,...S])].sort((T,j)=>j.length-T.length),w=C.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${C.join("|")}|[\\p{White_Space}]`,"gu"),P=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),_=new Map(P.map((T,j)=>[T,j])),R=new RegExp(`[${P.join("")}]`,"g");return{minusSign:m,plusSign:f,decimal:p,group:b,literals:w,numeral:R,index:T=>String(_.get(T))}}function Ci(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function zh(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var Mh=G("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");Mh.build();var vE=e=>{var t;return((t=e.ids)==null?void 0:t.input)??`number-input:${e.id}:input`},bE=e=>{var t;return((t=e.ids)==null?void 0:t.incrementTrigger)??`number-input:${e.id}:inc`},yE=e=>{var t;return((t=e.ids)==null?void 0:t.decrementTrigger)??`number-input:${e.id}:dec`},$h=e=>`number-input:${e.id}:cursor`,is=e=>e.getById(vE(e)),xE=e=>e.getById(bE(e)),CE=e=>e.getById(yE(e)),Bh=e=>e.getDoc().getElementById($h(e)),SE=(e,t)=>{let n=null;return t==="increment"&&(n=xE(e)),t==="decrement"&&(n=CE(e)),n},wE=(e,t)=>{if(!wu())return OE(e,t),()=>{var n;(n=Bh(e))==null||n.remove()}},EE=e=>{const t=e.getDoc(),n=t.documentElement,r=t.body;return r.style.pointerEvents="none",n.style.userSelect="none",n.style.cursor="ew-resize",()=>{r.style.pointerEvents="",n.style.userSelect="",n.style.cursor="",n.style.length||n.removeAttribute("style"),r.style.length||r.removeAttribute("style")}},kE=(e,t)=>{const{point:n,isRtl:r,event:i}=t,o=e.getWin(),s=ma(i.movementX,o.devicePixelRatio),a=ma(i.movementY,o.devicePixelRatio);let l=s>0?"increment":s<0?"decrement":null;r&&l==="increment"&&(l="decrement"),r&&l==="decrement"&&(l="increment");const c={x:n.x+s,y:n.y+a},u=o.innerWidth,d=ma(7.5,o.devicePixelRatio);return c.x=w0(c.x+d,u)-d,{hint:l,point:c}},OE=(e,t)=>{const n=e.getDoc(),r=n.createElement("div");r.className="scrubber--cursor",r.id=$h(e),Object.assign(r.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:L0,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),r.innerHTML=` ->>>>>>> 3f3a37a363 (Add confirmation dialog for exit maintenance action in Edge Worker Page) + */var Oe=typeof Symbol=="function"&&Symbol.for,sa=Oe?Symbol.for("react.element"):60103,aa=Oe?Symbol.for("react.portal"):60106,oi=Oe?Symbol.for("react.fragment"):60107,ii=Oe?Symbol.for("react.strict_mode"):60108,si=Oe?Symbol.for("react.profiler"):60114,ai=Oe?Symbol.for("react.provider"):60109,li=Oe?Symbol.for("react.context"):60110,la=Oe?Symbol.for("react.async_mode"):60111,ci=Oe?Symbol.for("react.concurrent_mode"):60111,ui=Oe?Symbol.for("react.forward_ref"):60112,di=Oe?Symbol.for("react.suspense"):60113,Yv=Oe?Symbol.for("react.suspense_list"):60120,hi=Oe?Symbol.for("react.memo"):60115,fi=Oe?Symbol.for("react.lazy"):60116,Qv=Oe?Symbol.for("react.block"):60121,Jv=Oe?Symbol.for("react.fundamental"):60117,Zv=Oe?Symbol.for("react.responder"):60118,eb=Oe?Symbol.for("react.scope"):60119;function tt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case sa:switch(e=e.type,e){case la:case ci:case oi:case si:case ii:case di:return e;default:switch(e=e&&e.$$typeof,e){case li:case ui:case fi:case hi:case ai:return e;default:return t}}case aa:return t}}}function Gc(e){return tt(e)===ci}ae.AsyncMode=la,ae.ConcurrentMode=ci,ae.ContextConsumer=li,ae.ContextProvider=ai,ae.Element=sa,ae.ForwardRef=ui,ae.Fragment=oi,ae.Lazy=fi,ae.Memo=hi,ae.Portal=aa,ae.Profiler=si,ae.StrictMode=ii,ae.Suspense=di,ae.isAsyncMode=function(e){return Gc(e)||tt(e)===la},ae.isConcurrentMode=Gc,ae.isContextConsumer=function(e){return tt(e)===li},ae.isContextProvider=function(e){return tt(e)===ai},ae.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===sa},ae.isForwardRef=function(e){return tt(e)===ui},ae.isFragment=function(e){return tt(e)===oi},ae.isLazy=function(e){return tt(e)===fi},ae.isMemo=function(e){return tt(e)===hi},ae.isPortal=function(e){return tt(e)===aa},ae.isProfiler=function(e){return tt(e)===si},ae.isStrictMode=function(e){return tt(e)===ii},ae.isSuspense=function(e){return tt(e)===di},ae.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===oi||e===ci||e===si||e===ii||e===di||e===Yv||typeof e=="object"&&e!==null&&(e.$$typeof===fi||e.$$typeof===hi||e.$$typeof===ai||e.$$typeof===li||e.$$typeof===ui||e.$$typeof===Jv||e.$$typeof===Zv||e.$$typeof===eb||e.$$typeof===Qv)},ae.typeOf=tt,Uc.exports=ae;var tb=Uc.exports,qc=tb,nb={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},rb={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Kc={};Kc[qc.ForwardRef]=nb,Kc[qc.Memo]=rb;var ob=!0;function Xc(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var ca=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||ob===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},ua=function(t,n,r){ca(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function ib(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var sb={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},ab=/[A-Z]|^ms/g,lb=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Yc=function(t){return t.charCodeAt(1)===45},Qc=function(t){return t!=null&&typeof t!="boolean"},da=Vc(function(e){return Yc(e)?e:e.replace(ab,"-$&").toLowerCase()}),Jc=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(lb,function(r,o,i){return Et={name:o,styles:i,next:Et},o})}return sb[t]!==1&&!Yc(t)&&typeof n=="number"&&n!==0?n+"px":n};function no(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Et={name:o.name,styles:o.styles,next:Et},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)Et={name:s.name,styles:s.styles,next:Et},s=s.next;var a=i.styles+";";return a}return cb(e,t,n)}case"function":{if(e!==void 0){var l=Et,c=n(e);return Et=l,no(e,t,c)}break}}var u=n;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function cb(e,t,n){var r="";if(Array.isArray(n))for(var o=0;or==null?void 0:r(...n))}}const mb=(...e)=>e.map(t=>{var n;return(n=t==null?void 0:t.trim)==null?void 0:n.call(t)}).filter(Boolean).join(" "),vb=/^on[A-Z]/;function ro(...e){let t={};for(let n of e){for(let r in t){if(vb.test(r)&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=pb(t[r],n[r]);continue}if(r==="className"||r==="class"){t[r]=mb(t[r],n[r]);continue}if(r==="style"){t[r]=Object.assign({},t[r]??{},n[r]??{});continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}function bb(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 yb(...e){return t=>{e.forEach(n=>{bb(n,t)})}}function oo(e){const t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}const at=(...e)=>e.filter(Boolean).map(t=>t.trim()).join(" ");function xb(e){return e.default||e}const Ue=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),Ot=e=>typeof e=="string",va=e=>typeof e=="function";function Cb(e){var n;const t=O.version;return!Ot(t)||t.startsWith("18.")?e==null?void 0:e.ref:(n=e==null?void 0:e.props)==null?void 0:n.ref}const su=(...e)=>{const t=e.reduce((n,r)=>(r!=null&&r.forEach(o=>n.add(o)),n),new Set([]));return Array.from(t)};function kb(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function ar(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=w.createContext(s);a.displayName=t;function l(){var u;const c=w.useContext(a);if(!c&&n){const d=new Error(i??kb(r,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[a.Provider,l,a]}const[Sb,gi]=ar({name:"ChakraContext",strict:!0,providerName:""});function wb(e){const{value:t,children:n}=e;return v.jsxs(Sb,{value:t,children:[!t._config.disableLayers&&v.jsx(iu,{styles:t.layers.atRule}),v.jsx(iu,{styles:t._global}),n]})}const Eb=(e,t)=>{const n={},r={},o=Object.keys(e);for(const i of o)t(i)?r[i]=e[i]:n[i]=e[i];return[r,n]},lr=(e,t)=>{const n=va(t)?t:r=>t.includes(r);return Eb(e,n)},Ob=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function Ib(e){return typeof e=="string"&&Ob.has(e)}function Pb(e,t,n){const{css:r,isValidProperty:o}=gi(),{children:i,...s}=e,a=w.useMemo(()=>{const[h,p]=lr(s,x=>n(x,t.variantKeys)),[f,g]=lr(p,t.variantKeys),[m,b]=lr(g,o);return{forwardedProps:h,variantProps:f,styleProps:m,elementProps:b}},[t.variantKeys,n,s,o]),{css:l,...c}=a.styleProps,u=w.useMemo(()=>{const h={...a.variantProps};return t.variantKeys.includes("colorPalette")||(h.colorPalette=s.colorPalette),t.variantKeys.includes("orientation")||(h.orientation=s.orientation),t(h)},[t,a.variantProps,s.colorPalette,s.orientation]);return{styles:w.useMemo(()=>r(u,...Rb(l),c),[r,u,l,c]),props:{...a.forwardedProps,...a.elementProps,children:i}}}const Rb=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),Tb=xb(xv),Nb=e=>e!=="theme",_b=(e,t,n)=>{let r;if(t){const o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?i=>e.__emotion_forwardProp(i)&&o(i):o}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r};let Ab=typeof document<"u";const au=({cache:e,serialized:t,isStringTag:n})=>{ca(e,t,n);const r=tu(()=>ua(e,t,n));if(!Ab&&r!==void 0){let o=t.name,i=t.next;for(;i!==void 0;)o=at(o,i.name),i=i.next;return v.jsx("style",{"data-emotion":at(e.key,o),dangerouslySetInnerHTML:{__html:r},nonce:e.sheet.nonce})}return null},lu={path:["d"],text:["x","y"],circle:["cx","cy","r"],rect:["width","height","x","y","rx","ry"],ellipse:["cx","cy","rx","ry"],g:["transform"],stop:["offset","stopOpacity"]},Vb=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ba=((e,t={},n={})=>{if(Vb(lu,e)){n.forwardProps||(n.forwardProps=[]);const c=lu[e];n.forwardProps=su([...n.forwardProps,...c])}const r=e.__emotion_real===e,o=r&&e.__emotion_base||e;let i,s;n!==void 0&&(i=n.label,s=n.target);let a=[];const l=fa((c,u,d)=>{var z;const{cva:h,isValidProperty:p}=gi(),f=t.__cva__?t:h(t),g=Lb(e.__emotion_cva,f),m=V=>(B,K)=>V.includes(B)?!0:!(K!=null&&K.includes(B))&&!p(B);!n.shouldForwardProp&&n.forwardProps&&(n.shouldForwardProp=m(n.forwardProps));const b=(V,B)=>{const K=typeof e=="string"&&e.charCodeAt(0)>96?Tb:Nb,$=!(B!=null&&B.includes(V))&&!p(V);return K(V)&&$},x=_b(e,n,r)||b,k=O.useMemo(()=>Object.assign({},n.defaultProps,oo(c)),[c]),{props:C,styles:S}=Pb(k,g,x);let I="",_=[S],P=C;if(C.theme==null){P={};for(let V in C)P[V]=C[V];P.theme=O.useContext(ga)}typeof C.className=="string"?I=Xc(u.registered,_,C.className):C.className!=null&&(I=at(I,C.className));const T=ha(a.concat(_),u.registered,P);T.styles&&(I=at(I,`${u.key}-${T.name}`)),s!==void 0&&(I=at(I,s));const N=!x("as");let j=N&&C.as||o,R={};for(let V in C)if(!(N&&V==="as")){if(Ib(V)){const B=V.replace("html","").toLowerCase();R[B]=C[V];continue}x(V)&&(R[V]=C[V])}let L=I.trim();L?R.className=L:Reflect.deleteProperty(R,"className"),R.ref=d;const Y=n.forwardAsChild||((z=n.forwardProps)==null?void 0:z.includes("asChild"));if(C.asChild&&!Y){const V=O.isValidElement(C.children)?O.Children.only(C.children):O.Children.toArray(C.children).find(O.isValidElement);if(!V)throw new Error("[chakra-ui > factory] No valid child found");j=V.type,R.children=null,Reflect.deleteProperty(R,"asChild"),R=ro(R,V.props),R.ref=yb(d,Cb(V))}return R.as&&Y?(R.as=void 0,v.jsxs(O.Fragment,{children:[v.jsx(au,{cache:u,serialized:T,isStringTag:typeof j=="string"}),v.jsx(j,{asChild:!0,...R,children:v.jsx(C.as,{children:R.children})})]})):v.jsxs(O.Fragment,{children:[v.jsx(au,{cache:u,serialized:T,isStringTag:typeof j=="string"}),v.jsx(j,{...R})]})});return l.displayName=i!==void 0?i:`chakra(${typeof o=="string"?o:o.displayName||o.name||"Component"})`,l.__emotion_real=l,l.__emotion_base=o,l.__emotion_forwardProp=n.shouldForwardProp,l.__emotion_cva=t,Object.defineProperty(l,"toString",{value(){return`.${s}`}}),l}).bind(),ya=new Map,Ie=new Proxy(ba,{apply(e,t,n){return ba(...n)},get(e,t){return ya.has(t)||ya.set(t,ba(t)),ya.get(t)}}),Lb=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),zt=Ie("div");zt.displayName="Box";const Fb=Object.freeze({}),Db=Object.freeze({});function zb(e){const{key:t,recipe:n}=e,r=gi();return w.useMemo(()=>{const o=n||(t!=null?r.getRecipe(t):{});return r.cva(structuredClone(o))},[t,n,r])}const Mb=e=>e.charAt(0).toUpperCase()+e.slice(1);function cr(e){const{key:t,recipe:n}=e,r=Mb(t||n.className||"Component"),[o,i]=ar({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`});function s(c){const{unstyled:u,...d}=c,h=zb({key:t,recipe:d.recipe||n}),[p,f]=w.useMemo(()=>h.splitVariantProps(d),[h,d]);return{styles:u?Fb:h(p),className:h.className,props:f}}const a=(c,u)=>{const d=Ie(c,{},u),h=w.forwardRef((p,f)=>{const g=i(),m=w.useMemo(()=>ro(g,p),[p,g]),{styles:b,className:x,props:k}=s(m);return v.jsx(d,{...k,ref:f,css:[b,m.css],className:at(x,m.className)})});return h.displayName=c.displayName||c.name,h};function l(){return o}return{withContext:a,PropsProvider:o,withPropsProvider:l,usePropsContext:i,useRecipeResult:s}}function pi(e){return e==null?[]:Array.isArray(e)?e:[e]}var io=e=>e[0],xa=e=>e[e.length-1],$b=(e,t)=>e.indexOf(t)!==-1,wn=(e,...t)=>e.concat(t),En=(e,...t)=>e.filter(n=>!t.includes(n)),ur=e=>Array.from(new Set(e)),Ca=(e,t)=>{const n=new Set(t);return e.filter(r=>!n.has(r))},dr=(e,t)=>$b(e,t)?En(e,t):wn(e,t);function cu(e,t,n={}){const{step:r=1,loop:o=!0}=n,i=t+r,s=e.length,a=s-1;return t===-1?r>0?0:a:i<0?o?a:0:i>=s?o?0:t>s?s:t:i}function jb(e,t,n={}){return e[cu(e,t,n)]}function Bb(e,t,n={}){const{step:r=1,loop:o=!0}=n;return cu(e,t,{step:-r,loop:o})}function Wb(e,t,n={}){return e[Bb(e,t,n)]}function uu(e,t){return e.reduce(([n,r],o)=>(t(o)?n.push(o):r.push(o),[n,r]),[[],[]])}var du=e=>(e==null?void 0:e.constructor.name)==="Array",Hb=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof(e==null?void 0:e.isEqual)=="function"&&typeof(t==null?void 0:t.isEqual)=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(du(e)&&du(t))return Hb(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(t??Object.create(null)),r=n.length;for(let o=0;oArray.isArray(e),Ub=e=>e===!0||e===!1,hu=e=>e!=null&&typeof e=="object",On=e=>hu(e)&&!so(e),mi=e=>typeof e=="string",In=e=>typeof e=="function",Gb=e=>e==null,Yt=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),qb=e=>Object.prototype.toString.call(e),fu=Function.prototype.toString,Kb=fu.call(Object),Xb=e=>{if(!hu(e)||qb(e)!="[object Object]"||Jb(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const n=Yt(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&fu.call(n)==Kb},Yb=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,Qb=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,Jb=e=>Yb(e)||Qb(e),vi=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,Zb=e=>e(),ey=()=>{},bi=(...e)=>(...t)=>{e.forEach(function(n){n==null||n(...t)})},ty=(()=>{let e=0;return()=>(e++,e.toString(36))})();function Mt(e,t,...n){var o;if(e in t){const i=t[e];return In(i)?i(...n):i}const r=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw(o=Error.captureStackTrace)==null||o.call(Error,r,Mt),r}var gu=(e,t)=>{var n;try{return e()}catch(r){return r instanceof Error&&((n=Error.captureStackTrace)==null||n.call(Error,r,gu)),t==null?void 0:t()}},{floor:pu,abs:mu,round:yi,min:ny,max:ry,pow:oy,sign:iy}=Math,ka=e=>Number.isNaN(e),Qt=e=>ka(e)?0:e,vu=(e,t)=>(e%t+t)%t,sy=(e,t)=>(e%t+t)%t,ay=(e,t)=>Qt(e)>=t,ly=(e,t)=>Qt(e)<=t,cy=(e,t,n)=>{const r=Qt(e),o=t==null||r>=t,i=n==null||r<=n;return o&&i},uy=(e,t,n)=>yi((Qt(e)-t)/n)*n+t,Ge=(e,t,n)=>ny(ry(Qt(e),t),n),dy=(e,t,n)=>(Qt(e)-t)/(n-t),hy=(e,t,n,r)=>Ge(uy(e*(n-t)+t,t,r),t,n),bu=(e,t)=>{let n=e,r=t.toString(),o=r.indexOf("."),i=o>=0?r.length-o:0;if(i>0){let s=oy(10,i);n=yi(n*s)/s}return n},Sa=(e,t)=>typeof t=="number"?pu(e*t+.5)/t:yi(e),yu=(e,t,n,r)=>{const o=t!=null?Number(t):0,i=Number(n),s=(e-o)%r;let a=mu(s)*2>=r?e+iy(s)*(r-mu(s)):e-s;if(a=bu(a,r),!ka(o)&&ai){const l=pu((i-o)/r),c=o+l*r;a=l<=0||c{const r=Math.pow(n,t);return yi(e*r)/r},xu=e=>{if(!Number.isFinite(e))return 0;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n+=1;return n},Cu=(e,t,n)=>{let r=t==="+"?e+n:e-n;if(e%1!==0||n%1!==0){const o=10**Math.max(xu(e),xu(n));e=Math.round(e*o),n=Math.round(n*o),r=t==="+"?e+n:e-n,r/=o}return r},fy=(e,t)=>Cu(Qt(e),"+",t),gy=(e,t)=>Cu(Qt(e),"-",t);function xi(e){if(!Xb(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(r=>typeof r=="string"),n={};for(const r of t){const o=e[r];o!==void 0&&(n[r]=xi(o))}return n}function py(e,t=Object.is){let n={...e};const r=new Set,o=u=>(r.add(u),()=>r.delete(u)),i=()=>{r.forEach(u=>u())};return{subscribe:o,get:u=>n[u],set:(u,d)=>{t(n[u],d)||(n[u]=d,i())},update:u=>{let d=!1;for(const h in u){const p=u[h];p!==void 0&&!t(n[h],p)&&(n[h]=p,d=!0)}d&&i()},snapshot:()=>({...n})}}function ao(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function ku(e,t){if(e==null)throw new Error(t())}function my(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function hr(e={}){const{name:t,strict:n=!0,hookName:r="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=w.createContext(s);a.displayName=t;function l(){var u;const c=w.useContext(a);if(!c&&n){const d=new Error(i??my(r,o));throw d.name="ContextError",(u=Error.captureStackTrace)==null||u.call(Error,d,l),d}return c}return[a.Provider,l,a]}const[$N,Su]=hr({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});function vy(e){if(!e)return;const t=e.selectionStart??0,n=e.selectionEnd??0;Math.abs(n-t)===0&&t===0&&e.setSelectionRange(e.value.length,e.value.length)}var wu=e=>Math.max(0,Math.min(1,e)),by=(e,t)=>e.map((n,r)=>e[(Math.max(t,0)+r)%e.length]),Eu=()=>{},Ci=e=>typeof e=="object"&&e!==null,yy=2147483647,xy=1,Cy=9,ky=11,$e=e=>Ci(e)&&e.nodeType===xy&&typeof e.nodeName=="string",wa=e=>Ci(e)&&e.nodeType===Cy,Sy=e=>Ci(e)&&e===e.window,Ou=e=>$e(e)?e.localName||"":"#document";function wy(e){return["html","body","#document"].includes(Ou(e))}var Ey=e=>Ci(e)&&e.nodeType!==void 0,fr=e=>Ey(e)&&e.nodeType===ky&&"host"in e,Oy=e=>$e(e)&&e.localName==="input",Iy=e=>$e(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,Py=/(textarea|select)/;function Iu(e){if(e==null||!$e(e))return!1;try{return Oy(e)&&e.selectionStart!=null||Py.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Pn(e,t){var r;if(!e||!t||!$e(e)||!$e(t))return!1;const n=(r=t.getRootNode)==null?void 0:r.call(t);if(e===t||e.contains(t))return!0;if(n&&fr(n)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function qe(e){return wa(e)?e:Sy(e)?e.document:(e==null?void 0:e.ownerDocument)??document}function Ry(e){return qe(e).documentElement}function Pe(e){var t;return fr(e)?Pe(e.host):wa(e)?e.defaultView??window:$e(e)?((t=e.ownerDocument)==null?void 0:t.defaultView)??window:window}function Pu(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function Ty(e){if(Ou(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fr(e)&&e.host||Ry(e);return fr(t)?t.host:t}var Ea=new WeakMap;function ki(e){return Ea.has(e)||Ea.set(e,Pe(e).getComputedStyle(e)),Ea.get(e)}var Si=()=>typeof document<"u";function Ny(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}function _y(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}var Oa=e=>Si()&&e.test(Ny()),Ru=e=>Si()&&e.test(_y()),Ay=e=>Si()&&e.test(navigator.vendor),Tu=()=>Si()&&!!navigator.maxTouchPoints,Vy=()=>Oa(/^iPhone/i),Ly=()=>Oa(/^iPad/i)||Ei()&&navigator.maxTouchPoints>1,wi=()=>Vy()||Ly(),Fy=()=>Ei()||wi(),Ei=()=>Oa(/^Mac/i),Nu=()=>Fy()&&Ay(/apple/i),Dy=()=>Ru(/Firefox/i),zy=()=>Ru(/Android/i);function My(e){var t,n,r;return((t=e.composedPath)==null?void 0:t.call(e))??((r=(n=e.nativeEvent)==null?void 0:n.composedPath)==null?void 0:r.call(n))}function nt(e){const t=My(e);return(t==null?void 0:t[0])??e.target}function $y(e){return Hy(e).isComposing||e.keyCode===229}function jy(e){return e.pointerType===""&&e.isTrusted?!0:zy()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var By=e=>e.button===2||Ei()&&e.ctrlKey&&e.button===0,Wy=e=>"touches"in e&&e.touches.length>0;function Hy(e){return e.nativeEvent??e}function Uy(e,t="client"){const n=Wy(e)?e.touches[0]||e.changedTouches[0]:e;return{x:n[`${t}X`],y:n[`${t}Y`]}}var fe=(e,t,n,r)=>{const o=typeof e=="function"?e():e;return o==null||o.addEventListener(t,n,r),()=>{o==null||o.removeEventListener(t,n,r)}};function Gy(e,t){const{type:n="HTMLInputElement",property:r="value"}=t,o=Pe(e)[n].prototype;return Object.getOwnPropertyDescriptor(o,r)??{}}function qy(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function Oi(e,t,n="value"){var o;if(!e)return;const r=qy(e);r&&((o=Gy(e,{type:r,property:n}).set)==null||o.call(e,t)),e.setAttribute(n,t)}function Ky(e,t){const{value:n,bubbles:r=!0}=t;if(!e)return;const o=Pe(e);e instanceof o.HTMLInputElement&&(Oi(e,`${n}`),e.dispatchEvent(new o.Event("input",{bubbles:r})))}function Xy(e){return Yy(e)?e.form:e.closest("form")}function Yy(e){return e.matches("textarea, input, select, button")}function Qy(e,t){if(!e)return;const n=Xy(e),r=o=>{o.defaultPrevented||t()};return n==null||n.addEventListener("reset",r,{passive:!0}),()=>n==null?void 0:n.removeEventListener("reset",r)}function Jy(e,t){const n=e==null?void 0:e.closest("fieldset");if(!n)return;t(n.disabled);const r=Pe(n),o=new r.MutationObserver(()=>t(n.disabled));return o.observe(n,{attributes:!0,attributeFilter:["disabled"]}),()=>o.disconnect()}function Ia(e,t){if(!e)return;const{onFieldsetDisabledChange:n,onFormReset:r}=t,o=[Qy(e,r),Jy(e,n)];return()=>o.forEach(i=>i==null?void 0:i())}var _u=e=>$e(e)&&e.tagName==="IFRAME",Zy=e=>!Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10)),ex=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,Pa="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type",Au=(e,t=!1)=>{if(!e)return[];const n=Array.from(e.querySelectorAll(Pa));(t==!0||t=="if-empty"&&n.length===0)&&$e(e)&&Jt(e)&&n.unshift(e);const o=n.filter(Jt);return o.forEach((i,s)=>{if(_u(i)&&i.contentDocument){const a=i.contentDocument.body;o.splice(s,1,...Au(a))}}),o};function Jt(e){return!e||e.closest("[inert]")?!1:e.matches(Pa)&&Iy(e)}function Ra(e,t){if(!e)return[];const r=Array.from(e.querySelectorAll(Pa)).filter(Rn);return r.forEach((o,i)=>{if(_u(o)&&o.contentDocument){const s=o.contentDocument.body,a=Ra(s);r.splice(i,1,...a)}}),r.length,r}function Rn(e){return e!=null&&e.tabIndex>0?!0:Jt(e)&&!ex(e)}function lo(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||Iu(e))&&!Zy(e)?0:e.tabIndex}function Ta(e){const{root:t,getInitialEl:n,filter:r,enabled:o=!0}=e;if(!o)return;let i=null;if(i||(i=typeof n=="function"?n():n),i||(i=t==null?void 0:t.querySelector("[data-autofocus],[autofocus]")),!i){const s=Ra(t);i=r?s.filter(r)[0]:s[0]}return i||t||void 0}function Na(e){const t=new Set;function n(r){const o=globalThis.requestAnimationFrame(r);t.add(()=>globalThis.cancelAnimationFrame(o))}return n(()=>n(e)),function(){t.forEach(o=>o())}}function ee(e){let t;const n=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(n),t==null||t()}}function tx(e,t,n){const r=ee(()=>{e.removeEventListener(t,o,!0),n()}),o=()=>{r(),n()};return e.addEventListener(t,o,{once:!0,capture:!0}),r}function nx(e,t){if(!e)return;const{attributes:n,callback:r}=t,o=e.ownerDocument.defaultView||window,i=new o.MutationObserver(s=>{for(const a of s)a.type==="attributes"&&a.attributeName&&n.includes(a.attributeName)&&r(a)});return i.observe(e,{attributes:!0,attributeFilter:n}),()=>i.disconnect()}function Ii(e,t){const{defer:n}=t,r=n?ee:i=>i(),o=[];return o.push(r(()=>{const i=typeof e=="function"?e():e;o.push(nx(i,t))})),()=>{o.forEach(i=>i==null?void 0:i())}}function Vu(e){const t=()=>{const n=Pe(e);e.dispatchEvent(new n.MouseEvent("click"))};Dy()?tx(e,"keyup",t):queueMicrotask(t)}function Pi(e){const t=Ty(e);return wy(t)?qe(t).body:$e(t)&&_a(t)?t:Pi(t)}function Lu(e,t=[]){const n=Pi(e),r=n===e.ownerDocument.body,o=Pe(n);return r?t.concat(o,o.visualViewport||[],_a(n)?n:[]):t.concat(n,Lu(n,[]))}var rx=/auto|scroll|overlay|hidden|clip/,ox=new Set(["inline","contents"]);function _a(e){const t=Pe(e),{overflow:n,overflowX:r,overflowY:o,display:i}=t.getComputedStyle(e);return rx.test(n+o+r)&&!ox.has(i)}function ix(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Ri(e,t){const{rootEl:n,...r}=t||{};!e||!n||!_a(n)||!ix(n)||e.scrollIntoView(r)}function Fu(e,t){const{left:n,top:r,width:o,height:i}=t.getBoundingClientRect(),s={x:e.x-n,y:e.y-r},a={x:wu(s.x/o),y:wu(s.y/i)};function l(c={}){const{dir:u="ltr",orientation:d="horizontal",inverted:h}=c,p=typeof h=="object"?h.x:h,f=typeof h=="object"?h.y:h;return d==="horizontal"?u==="rtl"||p?1-a.x:a.x:f?1-a.y:a.y}return{offset:s,percent:a,getPercentValue:l}}function sx(e,t){const n=e.body,r="pointerLockElement"in e||"mozPointerLockElement"in e,o=()=>!!e.pointerLockElement;function i(){}function s(l){o(),console.error("PointerLock error occurred:",l),e.exitPointerLock()}if(!r)return;try{n.requestPointerLock()}catch{}const a=[fe(e,"pointerlockchange",i,!1),fe(e,"pointerlockerror",s,!1)];return()=>{a.forEach(l=>l()),e.exitPointerLock()}}var gr="default",Aa="",Ti=new WeakMap;function ax(e={}){const{target:t,doc:n}=e,r=n??document,o=r.documentElement;return wi()?(gr==="default"&&(Aa=o.style.webkitUserSelect,o.style.webkitUserSelect="none"),gr="disabled"):t&&(Ti.set(t,t.style.userSelect),t.style.userSelect="none"),()=>lx({target:t,doc:r})}function lx(e={}){const{target:t,doc:n}=e,o=(n??document).documentElement;if(wi()){if(gr!=="disabled")return;gr="restoring",setTimeout(()=>{Na(()=>{gr==="restoring"&&(o.style.webkitUserSelect==="none"&&(o.style.webkitUserSelect=Aa||""),Aa="",gr="default")})},300)}else if(t&&Ti.has(t)){const i=Ti.get(t);t.style.userSelect==="none"&&(t.style.userSelect=i??""),t.getAttribute("style")===""&&t.removeAttribute("style"),Ti.delete(t)}}function Du(e={}){const{defer:t,target:n,...r}=e,o=t?ee:s=>s(),i=[];return i.push(o(()=>{const s=typeof n=="function"?n():n;i.push(ax({...r,target:s}))})),()=>{i.forEach(s=>s==null?void 0:s())}}function cx(e,t){const{onPointerMove:n,onPointerUp:r}=t,i=[fe(e,"pointermove",s=>{const a=Uy(s),l=Math.sqrt(a.x**2+a.y**2),c=s.pointerType==="touch"?10:5;if(!(l{i.forEach(s=>s())}}function Ni(e,t){return Array.from((e==null?void 0:e.querySelectorAll(t))??[])}function ux(e,t){return(e==null?void 0:e.querySelector(t))??null}var Va=e=>e.id;function dx(e,t,n=Va){return e.find(r=>n(r)===t)}function La(e,t,n=Va){const r=dx(e,t,n);return r?e.indexOf(r):-1}function hx(e,t,n=!0){let r=La(e,t);return r=n?(r+1)%e.length:Math.min(r+1,e.length-1),e[r]}function fx(e,t,n=!0){let r=La(e,t);return r===-1?n?e[e.length-1]:null:(r=n?(r-1+e.length)%e.length:Math.max(0,r-1),e[r])}var gx=e=>e.split("").map(t=>{const n=t.charCodeAt(0);return n>0&&n<128?t:n>=128&&n<=255?`/x${n.toString(16)}`.replace("/","\\"):""}).join("").trim(),px=e=>{var t;return gx(((t=e.dataset)==null?void 0:t.valuetext)??e.textContent??"")},mx=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function vx(e,t,n,r=Va){const o=n?La(e,n,r):-1;let i=n?by(e,o):e;return t.length===1&&(i=i.filter(a=>r(a)!==n)),i.find(a=>mx(px(a),t))}function _i(e,t){if(!e)return Eu;const n=Object.keys(t).reduce((r,o)=>(r[o]=e.style.getPropertyValue(o),r),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,n),e.style.length===0&&e.removeAttribute("style")}}function bx(e,t,n){if(!e)return Eu;const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r),e.style.length===0&&e.removeAttribute("style")}}function yx(e,t){const{state:n,activeId:r,key:o,timeout:i=350,itemToId:s}=t,a=n.keysSoFar+o,c=a.length>1&&Array.from(a).every(f=>f===a[0])?a[0]:a;let u=e.slice();const d=vx(u,c,r,s);function h(){clearTimeout(n.timer),n.timer=-1}function p(f){n.keysSoFar=f,h(),f!==""&&(n.timer=+setTimeout(()=>{p(""),h()},i))}return p(a),d}var co=Object.assign(yx,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:xx});function xx(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}function Cx(e,t,n){const{signal:r}=t;return[new Promise((s,a)=>{const l=setTimeout(()=>{a(new Error(`Timeout of ${n}ms exceeded`))},n);r.addEventListener("abort",()=>{clearTimeout(l),a(new Error("Promise aborted"))}),e.then(c=>{r.aborted||(clearTimeout(l),s(c))}).catch(c=>{r.aborted||(clearTimeout(l),a(c))})}),()=>t.abort()]}function kx(e,t){const{timeout:n,rootNode:r}=t,o=Pe(r),i=qe(r),s=new o.AbortController;return Cx(new Promise(a=>{const l=e();if(l){a(l);return}const c=new o.MutationObserver(()=>{const u=e();u&&u.isConnected&&(c.disconnect(),a(u))});c.observe(i.body,{childList:!0,subtree:!0})}),s,n)}var Sx=(...e)=>e.map(t=>{var n;return(n=t==null?void 0:t.trim)==null?void 0:n.call(t)}).filter(Boolean).join(" "),wx=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,zu=e=>{const t={};let n;for(;n=wx.exec(e);)t[n[1]]=n[2];return t},Ex=(e,t)=>{if(mi(e)){if(mi(t))return`${e};${t}`;e=zu(e)}else mi(t)&&(t=zu(t));return Object.assign({},e??{},t??{})};function pt(...e){let t={};for(let n of e){for(let r in t){if(r.startsWith("on")&&typeof t[r]=="function"&&typeof n[r]=="function"){t[r]=bi(n[r],t[r]);continue}if(r==="className"||r==="class"){t[r]=Sx(t[r],n[r]);continue}if(r==="style"){t[r]=Ex(t[r],n[r]);continue}t[r]=n[r]!==void 0?n[r]:t[r]}for(let r in n)t[r]===void 0&&(t[r]=n[r])}return t}function Mu(e,t,n){let r=[],o;return i=>{const s=e(i);return(s.length!==r.length||s.some((l,c)=>!gt(r[c],l)))&&(r=s,o=t(...s)),o}}function Zt(){return{and:(...e)=>function(n){return e.every(r=>n.guard(r))},or:(...e)=>function(n){return e.some(r=>n.guard(r))},not:e=>function(n){return!n.guard(e)}}}function jN(e){return e}function $u(){return{guards:Zt(),createMachine:e=>e,choose:e=>function({choose:n}){var r;return(r=n(e))==null?void 0:r.actions}}}var pr=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(pr||{}),Fa="__init__";function Ox(e){const t=()=>{var a;return((a=e.getRootNode)==null?void 0:a.call(e))??document},n=()=>qe(t()),r=()=>n().defaultView??window,o=()=>Pu(t());return{...e,getRootNode:t,getDoc:n,getWin:r,getActiveElement:o,isActiveElement:a=>a===o(),getById:a=>t().getElementById(a)}}function Ai(...e){return t=>{const n=[];for(const r of e)if(typeof r=="function"){const o=r(t);typeof o=="function"&&n.push(o)}else r&&(r.current=t);if(n.length)return()=>{for(const r of n)r()}}}function Ix(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Da=e=>{const t=w.memo(w.forwardRef((n,r)=>{const{asChild:o,children:i,...s}=n;if(!o)return w.createElement(e,{...s,ref:r},i);if(!w.isValidElement(i))return null;const a=w.Children.only(i),l=Ix(a);return w.cloneElement(a,{...pt(s,a.props),ref:r?Ai(r,l):l})}));return t.displayName=e.displayName||e.name,t},en=(()=>{const e=new Map;return new Proxy(Da,{apply(t,n,r){return Da(r[0])},get(t,n){const r=n;return e.has(r)||e.set(r,Da(r)),e.get(r)}})})(),[WN,Px]=hr({name:"LocaleContext",hookName:"useLocaleContext",providerName:"",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),ju=()=>(e,t)=>t.reduce((n,r)=>{const[o,i]=n,s=r;return i[s]!==void 0&&(o[s]=i[s]),delete i[s],[o,i]},[{},{...e}]),Bu=e=>ju()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function Rx(e){return new Proxy({},{get(t,n){return n==="style"?r=>e({style:r}).style:e}})}var U=()=>e=>Array.from(new Set(e));function Tx(e,t){const{state:n,send:r,context:o}=e,i=n.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:i,setNode(s){s&&r({type:"NODE.SET",node:s})},unmount(){r({type:"UNMOUNT"})}}}var Nx={props({props:e}){return{...e,present:!!e.present}},initialState({prop:e}){return e("present")?"mounted":"unmounted"},refs(){return{node:null,styles:null}},context({bindable:e}){return{unmountAnimationName:e(()=>({defaultValue:null})),prevAnimationName:e(()=>({defaultValue:null})),present:e(()=>({defaultValue:!1})),initial:e(()=>({sync:!0,defaultValue:!1}))}},exit:["clearInitial","cleanupNode"],watch({track:e,prop:t,send:n}){e([()=>t("present")],()=>{n({type:"PRESENCE.CHANGED"})})},on:{"NODE.SET":{actions:["setupNode"]},"PRESENCE.CHANGED":{actions:["setInitial","syncPresence"]}},states:{mounted:{on:{UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]},"UNMOUNT.SUSPEND":{target:"unmountSuspended"}}},unmountSuspended:{effects:["trackAnimationEvents"],on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]},UNMOUNT:{target:"unmounted",actions:["clearPrevAnimationName","invokeOnExitComplete"]}}},unmounted:{on:{MOUNT:{target:"mounted",actions:["setPrevAnimationName"]}}}},implementations:{actions:{setInitial:({context:e})=>{e.get("initial")||queueMicrotask(()=>{e.set("initial",!0)})},clearInitial:({context:e})=>{e.set("initial",!1)},invokeOnExitComplete:({prop:e})=>{var t;(t=e("onExitComplete"))==null||t()},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",ki(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:n,prop:r})=>{const o=r("present");if(o)return n({type:"MOUNT",src:"presence.changed"});const i=t.get("node");if(!o&&(i==null?void 0:i.ownerDocument.visibilityState)==="hidden")return n({type:"UNMOUNT",src:"visibilitychange"});ee(()=>{var a,l;const s=Vi(t.get("styles"));e.set("unmountAnimationName",s),s==="none"||s===e.get("prevAnimationName")||((a=t.get("styles"))==null?void 0:a.display)==="none"||((l=t.get("styles"))==null?void 0:l.animationDuration)==="0s"?n({type:"UNMOUNT",src:"presence.changed"}):n({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{ee(()=>{e.set("prevAnimationName",Vi(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:n})=>{const r=t.get("node");if(!r)return;const o=a=>{var c,u;(((u=(c=a.composedPath)==null?void 0:c.call(a))==null?void 0:u[0])??a.target)===r&&e.set("prevAnimationName",Vi(t.get("styles")))},i=a=>{const l=Vi(t.get("styles"));nt(a)===r&&l===e.get("unmountAnimationName")&&n({type:"UNMOUNT",src:"animationend"})};r.addEventListener("animationstart",o),r.addEventListener("animationcancel",i),r.addEventListener("animationend",i);const s=_i(r,{animationFillMode:"forwards"});return()=>{r.removeEventListener("animationstart",o),r.removeEventListener("animationcancel",i),r.removeEventListener("animationend",i),Na(()=>s())}}}}};function Vi(e){return(e==null?void 0:e.animationName)||"none"}U()(["onExitComplete","present","immediate"]);var Wu=typeof globalThis.document<"u"?w.useLayoutEffect:w.useEffect;function Li(e){const t=e().value??e().defaultValue,n=e().isEqual??Object.is,[r]=w.useState(t),[o,i]=w.useState(r),s=e().value!==void 0,a=w.useRef(o);a.current=s?e().value:o;const l=w.useRef(a.current);Wu(()=>{l.current=a.current},[o,e().value]);const c=d=>{var f,g;const h=l.current,p=In(d)?d(h):d;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:p,prev:h}),s||i(p),n(p,h)||(g=(f=e()).onChange)==null||g.call(f,p,h)};function u(){return s?e().value:o}return{initial:r,ref:a,get:u,set(d){(e().sync?ne.flushSync:Zb)(()=>c(d))},invoke(d,h){var p,f;(f=(p=e()).onChange)==null||f.call(p,d,h)},hash(d){var h,p;return((p=(h=e()).hash)==null?void 0:p.call(h,d))??String(d)}}}Li.cleanup=e=>{w.useEffect(()=>e,[])},Li.ref=e=>{const t=w.useRef(e);return{get:()=>t.current,set:n=>{t.current=n}}};function _x(e){const t=w.useRef(e);return{get(n){return t.current[n]},set(n,r){t.current[n]=r}}}var Ax=(e,t)=>{const n=w.useRef(!1),r=w.useRef(!1);w.useEffect(()=>{if(n.current&&r.current)return t();r.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),w.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[])};function Hu(e,t={}){var j,R,L,Y;const n=w.useMemo(()=>{const{id:z,ids:V,getRootNode:B}=t;return Ox({id:z,ids:V,getRootNode:B})},[t]),r=(...z)=>{e.debug&&console.log(...z)},o=((j=e.props)==null?void 0:j.call(e,{props:xi(t),scope:n}))??t,i=Vx(o),s=(R=e.context)==null?void 0:R.call(e,{prop:i,bindable:Li,scope:n,flush:Gu,getContext(){return l},getComputed(){return S},getRefs(){return g},getEvent(){return p()}}),a=Uu(s),l={get(z){var V;return(V=a.current)==null?void 0:V[z].ref.current},set(z,V){var B;(B=a.current)==null||B[z].set(V)},initial(z){var V;return(V=a.current)==null?void 0:V[z].initial},hash(z){var B,K;const V=(B=a.current)==null?void 0:B[z].get();return(K=a.current)==null?void 0:K[z].hash(V)}},c=w.useRef(new Map),u=w.useRef(null),d=w.useRef(null),h=w.useRef({type:""}),p=()=>({...h.current,current(){return h.current},previous(){return d.current}}),f=()=>({...I,matches(...z){return z.includes(I.ref.current)},hasTag(z){var V,B;return!!((B=(V=e.states[I.ref.current])==null?void 0:V.tags)!=null&&B.includes(z))}}),g=_x(((L=e.refs)==null?void 0:L.call(e,{prop:i,context:l}))??{}),m=()=>({state:f(),context:l,event:p(),prop:i,send:N,action:b,guard:x,track:Ax,refs:g,computed:S,flush:Gu,scope:n,choose:C}),b=z=>{const V=In(z)?z(m()):z;if(!V)return;const B=V.map(K=>{var H,X;const $=(X=(H=e.implementations)==null?void 0:H.actions)==null?void 0:X[K];return $||ao(`[zag-js] No implementation found for action "${JSON.stringify(K)}"`),$});for(const K of B)K==null||K(m())},x=z=>{var V,B;return In(z)?z(m()):(B=(V=e.implementations)==null?void 0:V.guards)==null?void 0:B[z](m())},k=z=>{const V=In(z)?z(m()):z;if(!V)return;const B=V.map($=>{var X,de;const H=(de=(X=e.implementations)==null?void 0:X.effects)==null?void 0:de[$];return H||ao(`[zag-js] No implementation found for effect "${JSON.stringify($)}"`),H}),K=[];for(const $ of B){const H=$==null?void 0:$(m());H&&K.push(H)}return()=>K.forEach($=>$==null?void 0:$())},C=z=>pi(z).find(V=>{let B=!V.guard;return mi(V.guard)?B=!!x(V.guard):In(V.guard)&&(B=V.guard(m())),B}),S=z=>{ku(e.computed,()=>"[zag-js] No computed object found on machine");const V=e.computed[z];return V({context:l,event:p(),prop:i,refs:g,scope:n,computed:S})},I=Li(()=>({defaultValue:e.initialState({prop:i}),onChange(z,V){var K,$,H,X;if(V){const de=c.current.get(V);de==null||de(),c.current.delete(V)}V&&b((K=e.states[V])==null?void 0:K.exit),b(($=u.current)==null?void 0:$.actions);const B=k((H=e.states[z])==null?void 0:H.effects);if(B&&c.current.set(z,B),V===Fa){b(e.entry);const de=k(e.effects);de&&c.current.set(Fa,de)}b((X=e.states[z])==null?void 0:X.entry)}})),_=w.useRef(void 0),P=w.useRef(pr.NotStarted);Wu(()=>{queueMicrotask(()=>{const B=P.current===pr.Started;P.current=pr.Started,r(B?"rehydrating...":"initializing...");const K=_.current??I.initial;I.invoke(K,B?I.get():Fa)});const z=c.current,V=I.ref.current;return()=>{r("unmounting..."),_.current=V,P.current=pr.Stopped,z.forEach(B=>B==null?void 0:B()),c.current=new Map,u.current=null,queueMicrotask(()=>{b(e.exit)})}},[]);const T=()=>"ref"in I?I.ref.current:I.get(),N=z=>{queueMicrotask(()=>{var X,de;if(P.current!==pr.Started)return;d.current=h.current,h.current=z;let V=T();const B=((X=e.states[V].on)==null?void 0:X[z.type])??((de=e.on)==null?void 0:de[z.type]),K=C(B);if(!K)return;u.current=K;const $=K.target??V;r("transition",z.type,K.target||V,`(${K.actions})`);const H=$!==V;H?ne.flushSync(()=>I.set($)):K.reenter&&!H?I.invoke(V,V):b(K.actions??[])})};return(Y=e.watch)==null||Y.call(e,m()),{state:f(),send:N,context:l,prop:i,scope:n,refs:g,computed:S,event:p(),getStatus:()=>P.current}}function Uu(e){const t=w.useRef(e);return t.current=e,t}function Vx(e){const t=Uu(e);return function(r){return t.current[r]}}function Gu(e){queueMicrotask(()=>{ne.flushSync(()=>e())})}var Lx=Rx(e=>e);function Fx(e,t={}){const{sync:n=!1}=t,r=Dx(e);return w.useCallback((...o)=>{var i;return n?queueMicrotask(()=>{var s;return(s=r.current)==null?void 0:s.call(r,...o)}):(i=r.current)==null?void 0:i.call(r,...o)},[n,r])}function Dx(e){const t=w.useRef(e);return t.current=e,t}const za=(e={})=>{const{lazyMount:t,unmountOnExit:n,present:r,skipAnimationOnMount:o=!1,...i}=e,s=w.useRef(!1),a={...i,present:r,onExitComplete:Fx(e.onExitComplete)},l=Hu(Nx,a),c=Tx(l);c.present&&(s.current=!0);const u=!c.present&&!s.current&&t||n&&!c.present&&s.current,d=()=>({"data-state":c.skip&&o?void 0:r?"open":"closed",hidden:!c.present});return{ref:c.setNode,getPresenceProps:d,present:c.present,unmounted:u}},[qu,Ma]=hr({name:"PresenceContext",hookName:"usePresenceContext",providerName:""}),Fi=Ie("span"),{withContext:zx}=cr({key:"text"}),Ku=zx("p");function Xu(e,t=[]){const n=w.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return w.useInsertionEffect(()=>{n.current=e}),w.useCallback((...r)=>{var o;return(o=n.current)==null?void 0:o.call(n,...r)},t)}function Yu(e={}){const t=Xu(e.onOpen),n=Xu(e.onClose),[r,o]=w.useState(e.defaultOpen||!1),i=e.open!==void 0?e.open:r,s=e.open!==void 0,a=w.useCallback(()=>{s||o(!1),n==null||n()},[s,n]),l=w.useCallback(()=>{s||o(!0),t==null||t()},[s,t]),c=w.useCallback(()=>{i?a():l()},[i,l,a]);return{open:i,onOpen:l,onClose:a,onToggle:c,setOpen:o}}var G=(e,t=[])=>({parts:(...n)=>{if(Mx(t))return G(e,n);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...n)=>G(e,[...t,...n]),omit:(...n)=>G(e,t.filter(r=>!n.includes(r))),rename:n=>G(n,t),keys:()=>t,build:()=>[...new Set(t)].reduce((n,r)=>Object.assign(n,{[r]:{selector:[`&[data-scope="${mr(e)}"][data-part="${mr(r)}"]`,`& [data-scope="${mr(e)}"][data-part="${mr(r)}"]`].join(", "),attrs:{"data-scope":mr(e),"data-part":mr(r)}}}),{})}),mr=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Mx=e=>e.length===0,Qu=G("collapsible").parts("root","trigger","content","indicator");Qu.build(),U()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);var $x=Object.defineProperty,jx=(e,t,n)=>t in e?$x(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$a=(e,t,n)=>jx(e,t+"",n),Bx=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0},ja=class{toHexInt(){return this.toFormat("rgba").toHexInt()}getChannelValue(e){if(e in this)return this[e];throw new Error("Unsupported color channel: "+e)}getChannelValuePercent(e,t){const n=t??this.getChannelValue(e),{minValue:r,maxValue:o}=this.getChannelRange(e);return dy(n,r,o)}getChannelPercentValue(e,t){const{minValue:n,maxValue:r,step:o}=this.getChannelRange(e),i=hy(t,n,r,o);return yu(i,n,r,o)}withChannelValue(e,t){const{minValue:n,maxValue:r}=this.getChannelRange(e);if(e in this){let o=this.clone();return o[e]=Ge(t,n,r),o}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:n}=e,r=t||this.getChannels().find(s=>s!==n),o=n||this.getChannels().find(s=>s!==r),i=this.getChannels().find(s=>s!==r&&s!==o);return{xChannel:r,yChannel:o,zChannel:i}}incrementChannel(e,t){const{minValue:n,maxValue:r,step:o}=this.getChannelRange(e),i=yu(Ge(this.getChannelValue(e)+t,n,r),n,r,o);return this.withChannelValue(e,i)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return Bx(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},Wx=/^#[\da-f]+$/i,Hx=/^rgba?\((.*)\)$/,Ux=/[^#]/gi,Ju=class Ys extends ja{constructor(t,n,r,o){super(),this.red=t,this.green=n,this.blue=r,this.alpha=o}static parse(t){let n=[];if(Wx.test(t)&&[4,5,7,9].includes(t.length)){const o=(t.length<6?t.replace(Ux,"$&$&"):t).slice(1).split("");for(;o.length>0;)n.push(parseInt(o.splice(0,2).join(""),16));n[3]=n[3]!==void 0?n[3]/255:void 0}const r=t.match(Hx);return r!=null&&r[1]&&(n=r[1].split(",").map(o=>Number(o.trim())).map((o,i)=>Ge(o,0,i<3?255:1))),n.length<3?void 0:new Ys(n[0],n[1],n[2],n[3]??1)}toString(t){switch(t){case"hex":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")).toUpperCase();case"hexa":return"#"+(this.red.toString(16).padStart(2,"0")+this.green.toString(16).padStart(2,"0")+this.blue.toString(16).padStart(2,"0")+Math.round(this.alpha*255).toString(16).padStart(2,"0")).toUpperCase();case"rgb":return`rgb(${this.red}, ${this.green}, ${this.blue})`;case"css":case"rgba":return`rgba(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"hsb":return this.toHSB().toString("hsb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"rgba":return this;case"hsba":return this.toHSB();case"hsla":return this.toHSL();default:throw new Error("Unsupported color conversion: rgb -> "+t)}}toHexInt(){return this.red<<16|this.green<<8|this.blue}toHSB(){const t=this.red/255,n=this.green/255,r=this.blue/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=i-o,a=i===0?0:s/i;let l=0;if(s!==0){switch(i){case t:l=(n-r)/s+(nNumber(a.trim().replace("%","")));return new Qs(vu(r,360),Ge(o,0,100),Ge(i,0,100),Ge(s??1,0,1))}}toString(t){switch(t){case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsl":return`hsl(${this.hue}, ${ue(this.saturation,2)}%, ${ue(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${ue(this.saturation,2)}%, ${ue(this.lightness,2)}%, ${this.alpha})`;case"hsb":return this.toHSB().toString("hsb");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsla":return this;case"hsba":return this.toHSB();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsl -> "+t)}}toHSB(){let t=this.saturation/100,n=this.lightness/100,r=n+t*Math.min(n,1-n);return t=r===0?0:2*(1-n/r),new Ha(ue(this.hue,2),ue(t*100,2),ue(r*100,2),ue(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.lightness/100,o=n*Math.min(r,1-r),i=(s,a=(s+t/30)%12)=>r-o*Math.max(Math.min(a-3,9-a,1),-1);return new Ba(Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255),ue(this.alpha,2))}clone(){return new Qs(this.hue,this.saturation,this.lightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"lightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(o/=100),new Intl.NumberFormat(n,r).format(o)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"lightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,l:this.lightness,a:this.alpha}}getFormat(){return"hsla"}getChannels(){return Qs.colorChannels}};$a(Zu,"colorChannels",["hue","saturation","lightness"]);var Wa=Zu,qx=/hsb\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsba\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,ed=class Js extends ja{constructor(t,n,r,o){super(),this.hue=t,this.saturation=n,this.brightness=r,this.alpha=o}static parse(t){let n;if(n=t.match(qx)){const[r,o,i,s]=(n[1]??n[2]).split(",").map(a=>Number(a.trim().replace("%","")));return new Js(vu(r,360),Ge(o,0,100),Ge(i,0,100),Ge(s??1,0,1))}}toString(t){switch(t){case"css":return this.toHSL().toString("css");case"hex":return this.toRGB().toString("hex");case"hexa":return this.toRGB().toString("hexa");case"hsb":return`hsb(${this.hue}, ${ue(this.saturation,2)}%, ${ue(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${ue(this.saturation,2)}%, ${ue(this.brightness,2)}%, ${this.alpha})`;case"hsl":return this.toHSL().toString("hsl");case"rgb":return this.toRGB().toString("rgb");default:return this.toFormat(t).toString(t)}}toFormat(t){switch(t){case"hsba":return this;case"hsla":return this.toHSL();case"rgba":return this.toRGB();default:throw new Error("Unsupported color conversion: hsb -> "+t)}}toHSL(){let t=this.saturation/100,n=this.brightness/100,r=n*(1-t/2);return t=r===0||r===1?0:(n-r)/Math.min(r,1-r),new Wa(ue(this.hue,2),ue(t*100,2),ue(r*100,2),ue(this.alpha,2))}toRGB(){let t=this.hue,n=this.saturation/100,r=this.brightness/100,o=(i,s=(i+t/60)%6)=>r-n*r*Math.max(Math.min(s,4-s,1),0);return new Ba(Math.round(o(5)*255),Math.round(o(3)*255),Math.round(o(1)*255),ue(this.alpha,2))}clone(){return new Js(this.hue,this.saturation,this.brightness,this.alpha)}getChannelFormatOptions(t){switch(t){case"hue":return{style:"unit",unit:"degree",unitDisplay:"narrow"};case"saturation":case"brightness":case"alpha":return{style:"percent"};default:throw new Error("Unknown color channel: "+t)}}formatChannelValue(t,n){let r=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(o/=100),new Intl.NumberFormat(n,r).format(o)}getChannelRange(t){switch(t){case"hue":return{minValue:0,maxValue:360,step:1,pageSize:15};case"saturation":case"brightness":return{minValue:0,maxValue:100,step:1,pageSize:10};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{h:this.hue,s:this.saturation,b:this.brightness,a:this.alpha}}getFormat(){return"hsba"}getChannels(){return Js.colorChannels}};$a(ed,"colorChannels",["hue","saturation","brightness"]);var Ha=ed,Kx="aliceblue:f0f8ff,antiquewhite:faebd7,aqua:00ffff,aquamarine:7fffd4,azure:f0ffff,beige:f5f5dc,bisque:ffe4c4,black:000000,blanchedalmond:ffebcd,blue:0000ff,blueviolet:8a2be2,brown:a52a2a,burlywood:deb887,cadetblue:5f9ea0,chartreuse:7fff00,chocolate:d2691e,coral:ff7f50,cornflowerblue:6495ed,cornsilk:fff8dc,crimson:dc143c,cyan:00ffff,darkblue:00008b,darkcyan:008b8b,darkgoldenrod:b8860b,darkgray:a9a9a9,darkgreen:006400,darkkhaki:bdb76b,darkmagenta:8b008b,darkolivegreen:556b2f,darkorange:ff8c00,darkorchid:9932cc,darkred:8b0000,darksalmon:e9967a,darkseagreen:8fbc8f,darkslateblue:483d8b,darkslategray:2f4f4f,darkturquoise:00ced1,darkviolet:9400d3,deeppink:ff1493,deepskyblue:00bfff,dimgray:696969,dodgerblue:1e90ff,firebrick:b22222,floralwhite:fffaf0,forestgreen:228b22,fuchsia:ff00ff,gainsboro:dcdcdc,ghostwhite:f8f8ff,gold:ffd700,goldenrod:daa520,gray:808080,green:008000,greenyellow:adff2f,honeydew:f0fff0,hotpink:ff69b4,indianred:cd5c5c,indigo:4b0082,ivory:fffff0,khaki:f0e68c,lavender:e6e6fa,lavenderblush:fff0f5,lawngreen:7cfc00,lemonchiffon:fffacd,lightblue:add8e6,lightcoral:f08080,lightcyan:e0ffff,lightgoldenrodyellow:fafad2,lightgrey:d3d3d3,lightgreen:90ee90,lightpink:ffb6c1,lightsalmon:ffa07a,lightseagreen:20b2aa,lightskyblue:87cefa,lightslategray:778899,lightsteelblue:b0c4de,lightyellow:ffffe0,lime:00ff00,limegreen:32cd32,linen:faf0e6,magenta:ff00ff,maroon:800000,mediumaquamarine:66cdaa,mediumblue:0000cd,mediumorchid:ba55d3,mediumpurple:9370d8,mediumseagreen:3cb371,mediumslateblue:7b68ee,mediumspringgreen:00fa9a,mediumturquoise:48d1cc,mediumvioletred:c71585,midnightblue:191970,mintcream:f5fffa,mistyrose:ffe4e1,moccasin:ffe4b5,navajowhite:ffdead,navy:000080,oldlace:fdf5e6,olive:808000,olivedrab:6b8e23,orange:ffa500,orangered:ff4500,orchid:da70d6,palegoldenrod:eee8aa,palegreen:98fb98,paleturquoise:afeeee,palevioletred:d87093,papayawhip:ffefd5,peachpuff:ffdab9,peru:cd853f,pink:ffc0cb,plum:dda0dd,powderblue:b0e0e6,purple:800080,rebeccapurple:663399,red:ff0000,rosybrown:bc8f8f,royalblue:4169e1,saddlebrown:8b4513,salmon:fa8072,sandybrown:f4a460,seagreen:2e8b57,seashell:fff5ee,sienna:a0522d,silver:c0c0c0,skyblue:87ceeb,slateblue:6a5acd,slategray:708090,snow:fffafa,springgreen:00ff7f,steelblue:4682b4,tan:d2b48c,teal:008080,thistle:d8bfd8,tomato:ff6347,turquoise:40e0d0,violet:ee82ee,wheat:f5deb3,white:ffffff,whitesmoke:f5f5f5,yellow:ffff00,yellowgreen:9acd32",Xx=e=>{const t=new Map,n=e.split(",");for(let r=0;r{var n;if(td.has(e))return Di(td.get(e));const t=Ba.parse(e)||Ha.parse(e)||Wa.parse(e);if(!t){const r=new Error("Invalid color value: "+e);throw(n=Error.captureStackTrace)==null||n.call(Error,r,Di),r}return t};const Yx=["top","right","bottom","left"],tn=Math.min,rt=Math.max,zi=Math.round,Mi=Math.floor,It=e=>({x:e,y:e}),Qx={left:"right",right:"left",bottom:"top",top:"bottom"},Jx={start:"end",end:"start"};function Ua(e,t,n){return rt(e,tn(t,n))}function $t(e,t){return typeof e=="function"?e(t):e}function jt(e){return e.split("-")[0]}function vr(e){return e.split("-")[1]}function Ga(e){return e==="x"?"y":"x"}function qa(e){return e==="y"?"height":"width"}const Zx=new Set(["top","bottom"]);function Pt(e){return Zx.has(jt(e))?"y":"x"}function Ka(e){return Ga(Pt(e))}function e1(e,t,n){n===void 0&&(n=!1);const r=vr(e),o=Ka(e),i=qa(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=$i(s)),[s,$i(s)]}function t1(e){const t=$i(e);return[Xa(e),t,Xa(t)]}function Xa(e){return e.replace(/start|end/g,t=>Jx[t])}const nd=["left","right"],rd=["right","left"],n1=["top","bottom"],r1=["bottom","top"];function o1(e,t,n){switch(e){case"top":case"bottom":return n?t?rd:nd:t?nd:rd;case"left":case"right":return t?n1:r1;default:return[]}}function i1(e,t,n,r){const o=vr(e);let i=o1(jt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Xa)))),i}function $i(e){return e.replace(/left|right|bottom|top/g,t=>Qx[t])}function s1(e){return{top:0,right:0,bottom:0,left:0,...e}}function od(e){return typeof e!="number"?s1(e):{top:e,right:e,bottom:e,left:e}}function ji(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function id(e,t,n){let{reference:r,floating:o}=e;const i=Pt(t),s=Ka(t),a=qa(s),l=jt(t),c=i==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(vr(t)){case"start":p[s]-=h*(n&&c?-1:1);break;case"end":p[s]+=h*(n&&c?-1:1);break}return p}const a1=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=id(c,r,l),h=r,p={},f=0;for(let g=0;g({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=$t(e,t)||{};if(c==null)return{};const d=od(u),h={x:n,y:r},p=Ka(o),f=qa(p),g=await s.getDimensions(c),m=p==="y",b=m?"top":"left",x=m?"bottom":"right",k=m?"clientHeight":"clientWidth",C=i.reference[f]+i.reference[p]-h[p]-i.floating[f],S=h[p]-i.reference[p],I=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let _=I?I[k]:0;(!_||!await(s.isElement==null?void 0:s.isElement(I)))&&(_=a.floating[k]||i.floating[f]);const P=C/2-S/2,T=_/2-g[f]/2-1,N=tn(d[b],T),j=tn(d[x],T),R=N,L=_-g[f]-j,Y=_/2-g[f]/2+P,z=Ua(R,Y,L),V=!l.arrow&&vr(o)!=null&&Y!==z&&i.reference[f]/2-(YY<=0)){var j,R;const Y=(((j=i.flip)==null?void 0:j.index)||0)+1,z=_[Y];if(z&&(!(d==="alignment"?x!==Pt(z):!1)||N.every(K=>Pt(K.placement)===x?K.overflows[0]>0:!0)))return{data:{index:Y,overflows:N},reset:{placement:z}};let V=(R=N.filter(B=>B.overflows[0]<=0).sort((B,K)=>B.overflows[1]-K.overflows[1])[0])==null?void 0:R.placement;if(!V)switch(p){case"bestFit":{var L;const B=(L=N.filter(K=>{if(I){const $=Pt(K.placement);return $===x||$==="y"}return!0}).map(K=>[K.placement,K.overflows.filter($=>$>0).reduce(($,H)=>$+H,0)]).sort((K,$)=>K[1]-$[1])[0])==null?void 0:L[0];B&&(V=B);break}case"initialPlacement":V=a;break}if(o!==V)return{reset:{placement:V}}}return{}}}};function sd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ad(e){return Yx.some(t=>e[t]>=0)}const u1=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=$t(e,t);switch(r){case"referenceHidden":{const i=await uo(t,{...o,elementContext:"reference"}),s=sd(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ad(s)}}}case"escaped":{const i=await uo(t,{...o,altBoundary:!0}),s=sd(i,n.floating);return{data:{escapedOffsets:s,escaped:ad(s)}}}default:return{}}}}},ld=new Set(["left","top"]);async function d1(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=jt(n),a=vr(n),l=Pt(n)==="y",c=ld.has(s)?-1:1,u=i&&l?-1:1,d=$t(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:f}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof f=="number"&&(p=a==="end"?f*-1:f),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}const h1=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await d1(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},f1=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:m=>{let{x:b,y:x}=m;return{x:b,y:x}}},...l}=$t(e,t),c={x:n,y:r},u=await uo(t,l),d=Pt(jt(o)),h=Ga(d);let p=c[h],f=c[d];if(i){const m=h==="y"?"top":"left",b=h==="y"?"bottom":"right",x=p+u[m],k=p-u[b];p=Ua(x,p,k)}if(s){const m=d==="y"?"top":"left",b=d==="y"?"bottom":"right",x=f+u[m],k=f-u[b];f=Ua(x,f,k)}const g=a.fn({...t,[h]:p,[d]:f});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:i,[d]:s}}}}}},g1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=$t(e,t),u={x:n,y:r},d=Pt(o),h=Ga(d);let p=u[h],f=u[d];const g=$t(a,t),m=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const k=h==="y"?"height":"width",C=i.reference[h]-i.floating[k]+m.mainAxis,S=i.reference[h]+i.reference[k]-m.mainAxis;pS&&(p=S)}if(c){var b,x;const k=h==="y"?"width":"height",C=ld.has(jt(o)),S=i.reference[d]-i.floating[k]+(C&&((b=s.offset)==null?void 0:b[d])||0)+(C?0:m.crossAxis),I=i.reference[d]+i.reference[k]+(C?0:((x=s.offset)==null?void 0:x[d])||0)-(C?m.crossAxis:0);fI&&(f=I)}return{[h]:p,[d]:f}}}},p1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=$t(e,t),u=await uo(t,c),d=jt(o),h=vr(o),p=Pt(o)==="y",{width:f,height:g}=i.floating;let m,b;d==="top"||d==="bottom"?(m=d,b=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(b=d,m=h==="end"?"top":"bottom");const x=g-u.top-u.bottom,k=f-u.left-u.right,C=tn(g-u[m],x),S=tn(f-u[b],k),I=!t.middlewareData.shift;let _=C,P=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=k),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(_=x),I&&!h){const N=rt(u.left,0),j=rt(u.right,0),R=rt(u.top,0),L=rt(u.bottom,0);p?P=f-2*(N!==0||j!==0?N+j:rt(u.left,u.right)):_=g-2*(R!==0||L!==0?R+L:rt(u.top,u.bottom))}await l({...t,availableWidth:P,availableHeight:_});const T=await s.getDimensions(a.floating);return f!==T.width||g!==T.height?{reset:{rects:!0}}:{}}}};function Bi(){return typeof window<"u"}function br(e){return cd(e)?(e.nodeName||"").toLowerCase():"#document"}function ot(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Rt(e){var t;return(t=(cd(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function cd(e){return Bi()?e instanceof Node||e instanceof ot(e).Node:!1}function mt(e){return Bi()?e instanceof Element||e instanceof ot(e).Element:!1}function Tt(e){return Bi()?e instanceof HTMLElement||e instanceof ot(e).HTMLElement:!1}function ud(e){return!Bi()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ot(e).ShadowRoot}const m1=new Set(["inline","contents"]);function ho(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=vt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!m1.has(o)}const v1=new Set(["table","td","th"]);function b1(e){return v1.has(br(e))}const y1=[":popover-open",":modal"];function Wi(e){return y1.some(t=>{try{return e.matches(t)}catch{return!1}})}const x1=["transform","translate","scale","rotate","perspective"],C1=["transform","translate","scale","rotate","perspective","filter"],k1=["paint","layout","strict","content"];function Ya(e){const t=Qa(),n=mt(e)?vt(e):e;return x1.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||C1.some(r=>(n.willChange||"").includes(r))||k1.some(r=>(n.contain||"").includes(r))}function S1(e){let t=nn(e);for(;Tt(t)&&!yr(t);){if(Ya(t))return t;if(Wi(t))return null;t=nn(t)}return null}function Qa(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const w1=new Set(["html","body","#document"]);function yr(e){return w1.has(br(e))}function vt(e){return ot(e).getComputedStyle(e)}function Hi(e){return mt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function nn(e){if(br(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ud(e)&&e.host||Rt(e);return ud(t)?t.host:t}function dd(e){const t=nn(e);return yr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Tt(t)&&ho(t)?t:dd(t)}function fo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=dd(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=ot(o);if(i){const a=Ja(s);return t.concat(s,s.visualViewport||[],ho(o)?o:[],a&&n?fo(a):[])}return t.concat(o,fo(o,[],n))}function Ja(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function hd(e){const t=vt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Tt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=zi(n)!==i||zi(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Za(e){return mt(e)?e:e.contextElement}function xr(e){const t=Za(e);if(!Tt(t))return It(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=hd(t);let s=(i?zi(n.width):n.width)/r,a=(i?zi(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const E1=It(0);function fd(e){const t=ot(e);return!Qa()||!t.visualViewport?E1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function O1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ot(e)?!1:t}function Tn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Za(e);let s=It(1);t&&(r?mt(r)&&(s=xr(r)):s=xr(e));const a=O1(i,n,r)?fd(i):It(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i){const h=ot(i),p=r&&mt(r)?ot(r):r;let f=h,g=Ja(f);for(;g&&r&&p!==f;){const m=xr(g),b=g.getBoundingClientRect(),x=vt(g),k=b.left+(g.clientLeft+parseFloat(x.paddingLeft))*m.x,C=b.top+(g.clientTop+parseFloat(x.paddingTop))*m.y;l*=m.x,c*=m.y,u*=m.x,d*=m.y,l+=k,c+=C,f=ot(g),g=Ja(f)}}return ji({width:u,height:d,x:l,y:c})}function Ui(e,t){const n=Hi(e).scrollLeft;return t?t.left+n:Tn(Rt(e)).left+n}function gd(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ui(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function I1(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Rt(r),a=t?Wi(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=It(1);const u=It(0),d=Tt(r);if((d||!d&&!i)&&((br(r)!=="body"||ho(s))&&(l=Hi(r)),Tt(r))){const p=Tn(r);c=xr(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const h=s&&!d&&!i?gd(s,l):It(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function P1(e){return Array.from(e.getClientRects())}function R1(e){const t=Rt(e),n=Hi(e),r=e.ownerDocument.body,o=rt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=rt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Ui(e);const a=-n.scrollTop;return vt(r).direction==="rtl"&&(s+=rt(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const pd=25;function T1(e,t){const n=ot(e),r=Rt(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=Qa();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=Ui(r);if(c<=0){const u=r.ownerDocument,d=u.body,h=getComputedStyle(d),p=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,f=Math.abs(r.clientWidth-d.clientWidth-p);f<=pd&&(i-=f)}else c<=pd&&(i+=c);return{width:i,height:s,x:a,y:l}}const N1=new Set(["absolute","fixed"]);function _1(e,t){const n=Tn(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Tt(e)?xr(e):It(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function md(e,t,n){let r;if(t==="viewport")r=T1(e,n);else if(t==="document")r=R1(Rt(e));else if(mt(t))r=_1(t,n);else{const o=fd(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ji(r)}function vd(e,t){const n=nn(e);return n===t||!mt(n)||yr(n)?!1:vt(n).position==="fixed"||vd(n,t)}function A1(e,t){const n=t.get(e);if(n)return n;let r=fo(e,[],!1).filter(a=>mt(a)&&br(a)!=="body"),o=null;const i=vt(e).position==="fixed";let s=i?nn(e):e;for(;mt(s)&&!yr(s);){const a=vt(s),l=Ya(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&N1.has(o.position)||ho(s)&&!l&&vd(e,s))?r=r.filter(u=>u!==s):o=a,s=nn(s)}return t.set(e,r),r}function V1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Wi(t)?[]:A1(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,u)=>{const d=md(t,u,o);return c.top=rt(d.top,c.top),c.right=tn(d.right,c.right),c.bottom=tn(d.bottom,c.bottom),c.left=rt(d.left,c.left),c},md(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function L1(e){const{width:t,height:n}=hd(e);return{width:t,height:n}}function F1(e,t,n){const r=Tt(t),o=Rt(t),i=n==="fixed",s=Tn(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=It(0);function c(){l.x=Ui(o)}if(r||!r&&!i)if((br(t)!=="body"||ho(o))&&(a=Hi(t)),r){const p=Tn(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else o&&c();i&&!r&&o&&c();const u=o&&!r&&!i?gd(o,a):It(0),d=s.left+a.scrollLeft-l.x-u.x,h=s.top+a.scrollTop-l.y-u.y;return{x:d,y:h,width:s.width,height:s.height}}function el(e){return vt(e).position==="static"}function bd(e,t){if(!Tt(e)||vt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Rt(e)===n&&(n=n.ownerDocument.body),n}function yd(e,t){const n=ot(e);if(Wi(e))return n;if(!Tt(e)){let o=nn(e);for(;o&&!yr(o);){if(mt(o)&&!el(o))return o;o=nn(o)}return n}let r=bd(e,t);for(;r&&b1(r)&&el(r);)r=bd(r,t);return r&&yr(r)&&el(r)&&!Ya(r)?n:r||S1(e)||n}const D1=async function(e){const t=this.getOffsetParent||yd,n=this.getDimensions,r=await n(e.floating);return{reference:F1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function z1(e){return vt(e).direction==="rtl"}const M1={convertOffsetParentRelativeRectToViewportRelativeRect:I1,getDocumentElement:Rt,getClippingRect:V1,getOffsetParent:yd,getElementRects:D1,getClientRects:P1,getDimensions:L1,getScale:xr,isElement:mt,isRTL:z1};function xd(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $1(e,t){let n=null,r;const o=Rt(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:p}=c;if(a||t(),!h||!p)return;const f=Mi(d),g=Mi(o.clientWidth-(u+h)),m=Mi(o.clientHeight-(d+p)),b=Mi(u),k={rootMargin:-f+"px "+-g+"px "+-m+"px "+-b+"px",threshold:rt(0,tn(1,l))||1};let C=!0;function S(I){const _=I[0].intersectionRatio;if(_!==l){if(!C)return s();_?s(!1,_):r=setTimeout(()=>{s(!1,1e-7)},1e3)}_===1&&!xd(c,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(S,{...k,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,k)}n.observe(e)}return s(!0),i}function j1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Za(e),u=o||i?[...c?fo(c):[],...fo(t)]:[];u.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const d=c&&a?$1(c,n):null;let h=-1,p=null;s&&(p=new ResizeObserver(b=>{let[x]=b;x&&x.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var k;(k=p)==null||k.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let f,g=l?Tn(e):null;l&&m();function m(){const b=Tn(e);g&&!xd(g,b)&&n(),g=b,f=requestAnimationFrame(m)}return n(),()=>{var b;u.forEach(x=>{o&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),d==null||d(),(b=p)==null||b.disconnect(),p=null,l&&cancelAnimationFrame(f)}}const B1=h1,W1=f1,H1=c1,U1=p1,G1=u1,q1=l1,K1=g1,X1=(e,t,n)=>{const r=new Map,o={platform:M1,...n},i={...o.platform,_c:r};return a1(e,t,{...o,platform:i})};function Cd(e=0,t=0,n=0,r=0){if(typeof DOMRect=="function")return new DOMRect(e,t,n,r);const o={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...o,toJSON:()=>o}}function Y1(e){if(!e)return Cd();const{x:t,y:n,width:r,height:o}=e;return Cd(t,n,r,o)}function Q1(e,t){return{contextElement:$e(e)?e:void 0,getBoundingClientRect:()=>{const n=e,r=t==null?void 0:t(n);return r||!n?Y1(r):n.getBoundingClientRect()}}}var kd=e=>({variable:e,reference:`var(${e})`}),Sd={transformOrigin:kd("--transform-origin"),arrowOffset:kd("--arrow-offset")},J1=e=>e==="top"||e==="bottom"?"y":"x";function Z1(e,t){return{name:"transformOrigin",fn(n){var T,N,j,R;const{elements:r,middlewareData:o,placement:i,rects:s,y:a}=n,l=i.split("-")[0],c=J1(l),u=((T=o.arrow)==null?void 0:T.x)||0,d=((N=o.arrow)==null?void 0:N.y)||0,h=(t==null?void 0:t.clientWidth)||0,p=(t==null?void 0:t.clientHeight)||0,f=u+h/2,g=d+p/2,m=Math.abs(((j=o.shift)==null?void 0:j.y)||0),b=s.reference.height/2,x=p/2,k=((R=e.offset)==null?void 0:R.mainAxis)??e.gutter,C=typeof k=="number"?k+x:k??x,S=m>C,I={top:`${f}px calc(100% + ${C}px)`,bottom:`${f}px ${-C}px`,left:`calc(100% + ${C}px) ${g}px`,right:`${-C}px ${g}px`}[l],_=`${f}px ${s.reference.y+b-a}px`,P=!!e.overlap&&c==="y"&&S;return r.floating.style.setProperty(Sd.transformOrigin.variable,P?_:I),{data:{transformOrigin:P?_:I}}}}}var eC={name:"rects",fn({rects:e}){return{data:e}}},tC=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:n}){if(!n.arrow)return{};const{x:r,y:o}=n.arrow,i=t.split("-")[0];return Object.assign(e.style,{left:r!=null?`${r}px`:"",top:o!=null?`${o}px`:"",[i]:`calc(100% + ${Sd.arrowOffset.reference})`}),{}}}};function nC(e){const[t,n]=e.split("-");return{side:t,align:n,hasAlign:n!=null}}function rC(e){return e.split("-")[0]}var oC={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function wd(e,t){const n=e.devicePixelRatio||1;return Math.round(t*n)/n}function tl(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function iC(e,t,n){const r=e||t.createElement("div");return q1({element:r,padding:n.arrowPadding})}function sC(e,t){if(!Gb(t.offset??t.gutter))return B1(({placement:n})=>{var c,u;const r=((e==null?void 0:e.clientHeight)||0)/2,o=((c=t.offset)==null?void 0:c.mainAxis)??t.gutter,i=typeof o=="number"?o+r:o??r,{hasAlign:s}=nC(n),a=s?void 0:t.shift,l=((u=t.offset)==null?void 0:u.crossAxis)??a;return xi({crossAxis:l,mainAxis:i,alignmentAxis:t.shift})})}function aC(e){if(!e.flip)return;const t=tl(e.boundary);return H1({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function lC(e){if(!e.slide&&!e.overlap)return;const t=tl(e.boundary);return W1({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:K1()})}function cC(e){return U1({padding:e.overflowPadding,apply({elements:t,rects:n,availableHeight:r,availableWidth:o}){const i=t.floating,s=Math.round(n.reference.width),a=Math.round(n.reference.height);o=Math.floor(o),r=Math.floor(r),i.style.setProperty("--reference-width",`${s}px`),i.style.setProperty("--reference-height",`${a}px`),i.style.setProperty("--available-width",`${o}px`),i.style.setProperty("--available-height",`${r}px`)}})}function uC(e){if(e.hideWhenDetached)return G1({strategy:"referenceHidden",boundary:tl(e.boundary)??"clippingAncestors"})}function dC(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function hC(e,t,n={}){const r=Q1(e,n.getAnchorRect);if(!t||!r)return;const o=Object.assign({},oC,n),i=t.querySelector("[data-part=arrow]"),s=[sC(i,o),aC(o),lC(o),iC(i,t.ownerDocument,o),tC(i),Z1({gutter:o.gutter,offset:o.offset,overlap:o.overlap},i),cC(o),uC(o),eC],{placement:a,strategy:l,onComplete:c,onPositioned:u}=o,d=async()=>{var C;if(!r||!t)return;const g=await X1(r,t,{placement:a,middleware:s,strategy:l});c==null||c(g),u==null||u({placed:!0});const m=Pe(t),b=wd(m,g.x),x=wd(m,g.y);t.style.setProperty("--x",`${b}px`),t.style.setProperty("--y",`${x}px`),o.hideWhenDetached&&(((C=g.middlewareData.hide)==null?void 0:C.referenceHidden)?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const k=t.firstElementChild;if(k){const S=ki(k);t.style.setProperty("--z-index",S.zIndex)}},h=async()=>{n.updatePosition?(await n.updatePosition({updatePosition:d,floatingElement:t}),u==null||u({placed:!0})):await d()},p=dC(o.listeners),f=o.listeners?j1(r,t,h,p):ey;return h(),()=>{f==null||f(),u==null||u({placed:!1})}}function bt(e,t,n={}){const{defer:r,...o}=n,i=r?ee:a=>a(),s=[];return s.push(i(()=>{const a=typeof e=="function"?e():e,l=typeof t=="function"?t():t;s.push(hC(a,l,o))})),()=>{s.forEach(a=>a==null?void 0:a())}}function fC(e){const t={each(n){var r;for(let o=0;o<((r=e.frames)==null?void 0:r.length);o+=1){const i=e.frames[o];i&&n(i)}},addEventListener(n,r,o){return t.each(i=>{try{i.document.addEventListener(n,r,o)}catch{}}),()=>{try{t.removeEventListener(n,r,o)}catch{}}},removeEventListener(n,r,o){t.each(i=>{try{i.document.removeEventListener(n,r,o)}catch{}})}};return t}function gC(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(n,r,o)=>{try{t==null||t.addEventListener(n,r,o)}catch{}return()=>{try{t==null||t.removeEventListener(n,r,o)}catch{}}},removeEventListener:(n,r,o)=>{try{t==null||t.removeEventListener(n,r,o)}catch{}}}}var Ed="pointerdown.outside",Od="focus.outside";function pC(e){for(const t of e)if($e(t)&&Jt(t))return!0;return!1}var Id=e=>"clientY"in e;function mC(e,t){if(!Id(t)||!e)return!1;const n=e.getBoundingClientRect();return n.width===0||n.height===0?!1:n.top<=t.clientY&&t.clientY<=n.top+n.height&&n.left<=t.clientX&&t.clientX<=n.left+n.width}function vC(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function Pd(e,t){if(!t||!Id(e))return!1;const n=t.scrollHeight>t.clientHeight,r=n&&e.clientX>t.offsetLeft+t.clientWidth,o=t.scrollWidth>t.clientWidth,i=o&&e.clientY>t.offsetTop+t.clientHeight,s={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(n?16:0),height:t.clientHeight+(o?16:0)},a={x:e.clientX,y:e.clientY};return vC(s,a)?r||i:!1}function bC(e,t){const{exclude:n,onFocusOutside:r,onPointerDownOutside:o,onInteractOutside:i,defer:s}=t;if(!e)return;const a=qe(e),l=Pe(e),c=fC(l),u=gC(l);function d(x,k){if(!$e(k)||!k.isConnected||Pn(e,k)||mC(e,x))return!1;const C=a.querySelector(`[aria-controls="${e.id}"]`);if(C){const I=Pi(C);if(Pd(x,I))return!1}const S=Pi(e);return Pd(x,S)?!1:!(n!=null&&n(k))}const h=new Set,p=fr(e==null?void 0:e.getRootNode());function f(x){function k(C){var P;const S=s&&!Tu()?ee:T=>T(),I=C??x,_=((P=I==null?void 0:I.composedPath)==null?void 0:P.call(I))??[I==null?void 0:I.target];S(()=>{const T=p?_[0]:nt(x);if(!(!e||!d(x,T))){if(o||i){const N=bi(o,i);e.addEventListener(Ed,N,{once:!0})}Rd(e,Ed,{bubbles:!1,cancelable:!0,detail:{originalEvent:I,contextmenu:By(I),focusable:pC(_),target:T}})}})}x.pointerType==="touch"?(h.forEach(C=>C()),h.add(fe(a,"click",k,{once:!0})),h.add(u.addEventListener("click",k,{once:!0})),h.add(c.addEventListener("click",k,{once:!0}))):k()}const g=new Set,m=setTimeout(()=>{g.add(fe(a,"pointerdown",f,!0)),g.add(u.addEventListener("pointerdown",f,!0)),g.add(c.addEventListener("pointerdown",f,!0))},0);function b(x){(s?ee:C=>C())(()=>{const C=nt(x);if(!(!e||!d(x,C))){if(r||i){const S=bi(r,i);e.addEventListener(Od,S,{once:!0})}Rd(e,Od,{bubbles:!1,cancelable:!0,detail:{originalEvent:x,contextmenu:!1,focusable:Jt(C),target:C}})}})}return Tu()||(g.add(fe(a,"focusin",b,!0)),g.add(u.addEventListener("focusin",b,!0)),g.add(c.addEventListener("focusin",b,!0))),()=>{clearTimeout(m),h.forEach(x=>x()),g.forEach(x=>x())}}function yC(e,t){const{defer:n}=t,r=n?ee:i=>i(),o=[];return o.push(r(()=>{const i=typeof e=="function"?e():e;o.push(bC(i,t))})),()=>{o.forEach(i=>i==null?void 0:i())}}function Rd(e,t,n){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,n);return e.dispatchEvent(o)}function xC(e,t){const n=r=>{r.key==="Escape"&&(r.isComposing||t==null||t(r))};return fe(qe(e),"keydown",n,{capture:!0})}var Td="layer:request-dismiss",lt={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){var r;const t=this.indexOf(e),n=this.topMostPointerBlockingLayer()?this.indexOf((r=this.topMostPointerBlockingLayer())==null?void 0:r.node):-1;return tPn(n.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Pn(t,e))},add(e){this.layers.push(e),this.syncLayerIndex()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(tlt.dismiss(r.node,e)),this.layers.splice(t,1),this.syncLayerIndex())},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayerIndex(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){const n=this.indexOf(e);if(n===-1)return;const r=this.layers[n];kC(e,Td,o=>{var i;(i=r.requestDismiss)==null||i.call(r,o),o.defaultPrevented||r==null||r.dismiss()}),CC(e,Td,{originalLayer:e,targetLayer:t,originalIndex:n,targetIndex:t?this.indexOf(t):-1}),this.syncLayerIndex()},clear(){this.remove(this.layers[0].node)}};function CC(e,t,n){const r=e.ownerDocument.defaultView||window,o=new r.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:n});return e.dispatchEvent(o)}function kC(e,t,n){e.addEventListener(t,n,{once:!0})}var Nd;function _d(){lt.layers.forEach(({node:e})=>{e.style.pointerEvents=lt.isBelowPointerBlockingLayer(e)?"none":"auto"})}function SC(e){e.style.pointerEvents=""}function wC(e,t){const n=qe(e),r=[];return lt.hasPointerBlockingLayer()&&!n.body.hasAttribute("data-inert")&&(Nd=document.body.style.pointerEvents,queueMicrotask(()=>{n.body.style.pointerEvents="none",n.body.setAttribute("data-inert","")})),t==null||t.forEach(o=>{const[i,s]=kx(()=>{const a=o();return $e(a)?a:null},{timeout:1e3});i.then(a=>r.push(_i(a,{pointerEvents:"auto"}))),r.push(s)}),()=>{lt.hasPointerBlockingLayer()||(queueMicrotask(()=>{n.body.style.pointerEvents=Nd,n.body.removeAttribute("data-inert"),n.body.style.length===0&&n.body.removeAttribute("style")}),r.forEach(o=>o()))}}function EC(e,t){const{warnOnMissingNode:n=!0}=t;if(n&&!e){ao("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:r,onRequestDismiss:o,pointerBlocking:i,exclude:s,debug:a}=t,l={dismiss:r,node:e,pointerBlocking:i,requestDismiss:o};lt.add(l),_d();function c(f){var m,b;const g=nt(f.detail.originalEvent);lt.isBelowPointerBlockingLayer(e)||lt.isInBranch(g)||((m=t.onPointerDownOutside)==null||m.call(t,f),(b=t.onInteractOutside)==null||b.call(t,f),!f.defaultPrevented&&(a&&console.log("onPointerDownOutside:",f.detail.originalEvent),r==null||r()))}function u(f){var m,b;const g=nt(f.detail.originalEvent);lt.isInBranch(g)||((m=t.onFocusOutside)==null||m.call(t,f),(b=t.onInteractOutside)==null||b.call(t,f),!f.defaultPrevented&&(a&&console.log("onFocusOutside:",f.detail.originalEvent),r==null||r()))}function d(f){var g;lt.isTopMost(e)&&((g=t.onEscapeKeyDown)==null||g.call(t,f),!f.defaultPrevented&&r&&(f.preventDefault(),r()))}function h(f){var x;if(!e)return!1;const g=typeof s=="function"?s():s,m=Array.isArray(g)?g:[g],b=(x=t.persistentElements)==null?void 0:x.map(k=>k()).filter($e);return b&&m.push(...b),m.some(k=>Pn(k,f))||lt.isInNestedLayer(e,f)}const p=[i?wC(e,t.persistentElements):void 0,xC(e,d),yC(e,{exclude:h,onFocusOutside:u,onPointerDownOutside:c,defer:t.defer})];return()=>{lt.remove(e),_d(),SC(e),p.forEach(f=>f==null?void 0:f())}}function Cr(e,t){const{defer:n}=t,r=n?ee:i=>i(),o=[];return o.push(r(()=>{const i=In(e)?e():e;o.push(EC(i,t))})),()=>{o.forEach(i=>i==null?void 0:i())}}var Ad=G("color-picker",["root","label","control","trigger","positioner","content","area","areaThumb","valueText","areaBackground","channelSlider","channelSliderLabel","channelSliderTrack","channelSliderThumb","channelSliderValueText","channelInput","transparencyGrid","swatchGroup","swatchTrigger","swatchIndicator","swatch","eyeDropperTrigger","formatTrigger","formatSelect"]);Ad.build();var OC=e=>{var t;return((t=e.ids)==null?void 0:t.hiddenInput)??`color-picker:${e.id}:hidden-input`},IC=e=>{var t;return((t=e.ids)==null?void 0:t.control)??`color-picker:${e.id}:control`},PC=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`color-picker:${e.id}:trigger`},RC=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`color-picker:${e.id}:content`},TC=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`color-picker:${e.id}:positioner`},NC=e=>{var t;return((t=e.ids)==null?void 0:t.formatSelect)??`color-picker:${e.id}:format-select`},_C=e=>{var t;return((t=e.ids)==null?void 0:t.area)??`color-picker:${e.id}:area`},AC=e=>{var t;return((t=e.ids)==null?void 0:t.areaThumb)??`color-picker:${e.id}:area-thumb`},VC=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.channelSliderTrack)==null?void 0:r.call(n,t))??`color-picker:${e.id}:slider-track:${t}`},LC=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.channelSliderThumb)==null?void 0:r.call(n,t))??`color-picker:${e.id}:slider-thumb:${t}`},Gi=e=>e.getById(RC(e)),FC=e=>e.getById(AC(e)),DC=(e,t)=>e.getById(LC(e,t)),zC=e=>e.getById(NC(e)),Vd=e=>e.getById(OC(e)),MC=e=>e.getById(_C(e)),$C=(e,t,n)=>{const r=MC(e);if(!r)return;const{getPercentValue:o}=Fu(t,r);return{x:o({dir:n,orientation:"horizontal"}),y:o({orientation:"vertical"})}},jC=e=>e.getById(IC(e)),nl=e=>e.getById(PC(e)),BC=e=>e.getById(TC(e)),WC=(e,t)=>e.getById(VC(e,t)),HC=(e,t,n,r)=>{const o=WC(e,n);if(!o)return;const{getPercentValue:i}=Fu(t,o);return{x:i({dir:r,orientation:"horizontal"}),y:i({orientation:"vertical"})}},UC=e=>[...Ni(Gi(e),"input[data-channel]"),...Ni(jC(e),"input[data-channel]")];function GC(e,t){if(t==null)return"";if(t==="hex")return e.toString("hex");if(t==="css")return e.toString("css");if(t in e)return e.getChannelValue(t).toString();const n=e.getFormat()==="hsla";switch(t){case"hue":return n?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return n?e.toFormat("hsla").getChannelValue("saturation").toString():e.toFormat("hsba").getChannelValue("saturation").toString();case"lightness":return e.toFormat("hsla").getChannelValue("lightness").toString();case"brightness":return e.toFormat("hsba").getChannelValue("brightness").toString();case"red":case"green":case"blue":return e.toFormat("rgba").getChannelValue(t).toString();default:return e.getChannelValue(t).toString()}}var Ld=e=>Di(e),qC=/^[0-9a-fA-F]{3,8}$/;function KC(e){return qC.test(e)}function XC(e){return e.startsWith("#")?e:KC(e)?`#${e}`:e}var{and:YC}=Zt();YC("isOpenControlled","closeOnSelect");function Fd(e,t,n){const r=UC(e);ee(()=>{r.forEach(o=>{const i=o.dataset.channel;Oi(o,GC(n||t,i))})})}function QC(e,t){const n=zC(e);n&&ee(()=>Oi(n,t))}U()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","inline","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]),U()(["xChannel","yChannel"]),U()(["channel","orientation"]),U()(["value","disabled"]),U()(["value","respectAlpha"]),U()(["size"]);const[Dd,JC]=hr({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:""}),zd=e=>ju()(e,["lazyMount","unmountOnExit"]);var Md=G("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");Md.build();var $d=e=>{var t;return((t=e.ids)==null?void 0:t.root)??`accordion:${e.id}`},jd=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.itemTrigger)==null?void 0:r.call(n,t))??`accordion:${e.id}:trigger:${t}`},ZC=e=>e.getById($d(e)),qi=e=>{const n=`[aria-controls][data-ownedby='${CSS.escape($d(e))}']:not([disabled])`;return Ni(ZC(e),n)},ek=e=>io(qi(e)),tk=e=>xa(qi(e)),nk=(e,t)=>hx(qi(e),jd(e,t)),rk=(e,t)=>fx(qi(e),jd(e,t)),{and:ok,not:ik}=Zt();ok("isExpanded","canToggle"),ik("isExpanded"),U()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]),U()(["value","disabled"]);var go=(e,t)=>({x:e,y:t});function sk(e){const{x:t,y:n,width:r,height:o}=e,i=t+r/2,s=n+o/2;return{x:t,y:n,width:r,height:o,minX:t,minY:n,maxX:t+r,maxY:n+o,midX:i,midY:s,center:go(i,s)}}function ak(e){const t=go(e.minX,e.minY),n=go(e.maxX,e.minY),r=go(e.maxX,e.maxY),o=go(e.minX,e.maxY);return{top:t,right:n,bottom:r,left:o}}function lk(e,t){const n=sk(e),{top:r,right:o,left:i,bottom:s}=ak(n),[a]=t.split("-");return{top:[i,r,o,s],right:[r,o,s,i],bottom:[r,i,s,o],left:[o,r,i,s]}[a]}function ck(e,t){const{x:n,y:r}=t;let o=!1;for(let i=0,s=e.length-1;ir!=u>r&&n<(c-a)*(r-l)/(u-l)+a&&(o=!o)}return o}var Bd=G("avatar").parts("root","image","fallback");Bd.build(),U()(["dir","id","ids","onStatusChange","getRootNode"]);function uk(e){return!(e.metaKey||!Ei()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var dk=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function hk(e,t,n){const r=n?nt(n):null,o=Pe(r);return e=e||r instanceof o.HTMLInputElement&&!dk.has(r==null?void 0:r.type)||r instanceof o.HTMLTextAreaElement||r instanceof o.HTMLElement&&r.isContentEditable,!(e&&t==="keyboard"&&n instanceof o.KeyboardEvent&&!Reflect.has(fk,n.key))}var Nn=null,rl=new Set,po=new Map,_n=!1,ol=!1,fk={Tab:!0,Escape:!0};function Ki(e,t){for(let n of rl)n(e,t)}function Xi(e){_n=!0,uk(e)&&(Nn="keyboard",Ki("keyboard",e))}function ct(e){Nn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(_n=!0,Ki("pointer",e))}function Wd(e){jy(e)&&(_n=!0,Nn="virtual")}function Hd(e){const t=nt(e);t===Pe(t)||t===qe(t)||(!_n&&!ol&&(Nn="virtual",Ki("virtual",e)),_n=!1,ol=!1)}function Ud(){_n=!1,ol=!0}function gk(e){if(typeof window>"u"||po.get(Pe(e)))return;const t=Pe(e),n=qe(e);let r=t.HTMLElement.prototype.focus;function o(){Nn="virtual",Ki("virtual",null),_n=!0,r.apply(this,arguments)}Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:o}),n.addEventListener("keydown",Xi,!0),n.addEventListener("keyup",Xi,!0),n.addEventListener("click",Wd,!0),t.addEventListener("focus",Hd,!0),t.addEventListener("blur",Ud,!1),typeof t.PointerEvent<"u"?(n.addEventListener("pointerdown",ct,!0),n.addEventListener("pointermove",ct,!0),n.addEventListener("pointerup",ct,!0)):(n.addEventListener("mousedown",ct,!0),n.addEventListener("mousemove",ct,!0),n.addEventListener("mouseup",ct,!0)),t.addEventListener("beforeunload",()=>{pk(e)},{once:!0}),po.set(t,{focus:r})}var pk=(e,t)=>{const n=Pe(e),r=qe(e);po.has(n)&&(n.HTMLElement.prototype.focus=po.get(n).focus,r.removeEventListener("keydown",Xi,!0),r.removeEventListener("keyup",Xi,!0),r.removeEventListener("click",Wd,!0),n.removeEventListener("focus",Hd,!0),n.removeEventListener("blur",Ud,!1),typeof n.PointerEvent<"u"?(r.removeEventListener("pointerdown",ct,!0),r.removeEventListener("pointermove",ct,!0),r.removeEventListener("pointerup",ct,!0)):(r.removeEventListener("mousedown",ct,!0),r.removeEventListener("mousemove",ct,!0),r.removeEventListener("mouseup",ct,!0)),po.delete(n))};function Gd(){return Nn==="keyboard"}function mk(e={}){const{isTextInput:t,autoFocus:n,onChange:r,root:o}=e;gk(o),r==null||r({isFocusVisible:n||Gd(),modality:Nn});const i=(s,a)=>{hk(!!t,s,a)&&(r==null||r({isFocusVisible:Gd(),modality:s}))};return rl.add(i),()=>{rl.delete(i)}}var qd=G("checkbox").parts("root","label","control","indicator");qd.build(),U()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const vk=qd.extendWith("group"),[HN,bk]=hr({name:"FieldContext",hookName:"useFieldContext",providerName:"",strict:!1});var Kd=G("clipboard").parts("root","control","trigger","indicator","input","label");Kd.build(),U()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]),U()(["copied"]);const yk=Ad.extendWith("view");var xk=Object.defineProperty,Ck=(e,t,n)=>t in e?xk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A=(e,t,n)=>Ck(e,typeof t!="symbol"?t+"":t,n),Yi={itemToValue(e){return typeof e=="string"?e:On(e)&&Yt(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:On(e)&&Yt(e,"label")?e.label:Yi.itemToValue(e)},isItemDisabled(e){return On(e)&&Yt(e,"disabled")?!!e.disabled:!1}},Qi=class cv{constructor(t){this.options=t,A(this,"items"),A(this,"indexMap",null),A(this,"copy",n=>new cv({...this.options,items:n??[...this.items]})),A(this,"isEqual",n=>gt(this.items,n.items)),A(this,"setItems",n=>this.copy(n)),A(this,"getValues",(n=this.items)=>{const r=[];for(const o of n){const i=this.getItemValue(o);i!=null&&r.push(i)}return r}),A(this,"find",n=>{if(n==null)return null;const r=this.indexOf(n);return r!==-1?this.at(r):null}),A(this,"findMany",n=>{const r=[];for(const o of n){const i=this.find(o);i!=null&&r.push(i)}return r}),A(this,"at",n=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[n]??null;let r=0;const o=this.group();for(const[,i]of o)for(const s of i){if(r===n)return s;r++}return null}),A(this,"sortFn",(n,r)=>{const o=this.indexOf(n),i=this.indexOf(r);return(o??0)-(i??0)}),A(this,"sort",n=>[...n].sort(this.sortFn.bind(this))),A(this,"getItemValue",n=>{var r,o;return n==null?null:((o=(r=this.options).itemToValue)==null?void 0:o.call(r,n))??Yi.itemToValue(n)}),A(this,"getItemDisabled",n=>{var r,o;return n==null?!1:((o=(r=this.options).isItemDisabled)==null?void 0:o.call(r,n))??Yi.isItemDisabled(n)}),A(this,"stringifyItem",n=>{var r,o;return n==null?null:((o=(r=this.options).itemToString)==null?void 0:o.call(r,n))??Yi.itemToString(n)}),A(this,"stringify",n=>n==null?null:this.stringifyItem(this.find(n))),A(this,"stringifyItems",(n,r=", ")=>{const o=[];for(const i of n){const s=this.stringifyItem(i);s!=null&&o.push(s)}return o.join(r)}),A(this,"stringifyMany",(n,r)=>this.stringifyItems(this.findMany(n),r)),A(this,"has",n=>this.indexOf(n)!==-1),A(this,"hasItem",n=>n==null?!1:this.has(this.getItemValue(n))),A(this,"group",()=>{const{groupBy:n,groupSort:r}=this.options;if(!n)return[["",[...this.items]]];const o=new Map;this.items.forEach((s,a)=>{const l=n(s,a);o.has(l)||o.set(l,[]),o.get(l).push(s)});let i=Array.from(o.entries());return r&&i.sort(([s],[a])=>{if(typeof r=="function")return r(s,a);if(Array.isArray(r)){const l=r.indexOf(s),c=r.indexOf(a);return l===-1?1:c===-1?-1:l-c}return r==="asc"?s.localeCompare(a):r==="desc"?a.localeCompare(s):0}),i}),A(this,"getNextValue",(n,r=1,o=!1)=>{let i=this.indexOf(n);if(i===-1)return null;for(i=o?Math.min(i+r,this.size-1):i+r;i<=this.size&&this.getItemDisabled(this.at(i));)i++;return this.getItemValue(this.at(i))}),A(this,"getPreviousValue",(n,r=1,o=!1)=>{let i=this.indexOf(n);if(i===-1)return null;for(i=o?Math.max(i-r,0):i-r;i>=0&&this.getItemDisabled(this.at(i));)i--;return this.getItemValue(this.at(i))}),A(this,"indexOf",n=>{if(n==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(r=>this.getItemValue(r)===n);if(!this.indexMap){this.indexMap=new Map;let r=0;const o=this.group();for(const[,i]of o)for(const s of i){const a=this.getItemValue(s);a!=null&&this.indexMap.set(a,r),r++}}return this.indexMap.get(n)??-1}),A(this,"getByText",(n,r)=>{const o=r!=null?this.indexOf(r):-1,i=n.length===1;for(let s=0;s{const{state:o,currentValue:i,timeout:s=350}=r,a=o.keysSoFar+n,c=a.length>1&&Array.from(a).every(f=>f===a[0])?a[0]:a,u=this.getByText(c,i),d=this.getItemValue(u);function h(){clearTimeout(o.timer),o.timer=-1}function p(f){o.keysSoFar=f,h(),f!==""&&(o.timer=+setTimeout(()=>{p(""),h()},s))}return p(a),d}),A(this,"update",(n,r)=>{let o=this.indexOf(n);return o===-1?this:this.copy([...this.items.slice(0,o),r,...this.items.slice(o+1)])}),A(this,"upsert",(n,r,o="append")=>{let i=this.indexOf(n);return i===-1?(o==="append"?this.append:this.prepend)(r):this.copy([...this.items.slice(0,i),r,...this.items.slice(i+1)])}),A(this,"insert",(n,...r)=>this.copy(mo(this.items,n,...r))),A(this,"insertBefore",(n,...r)=>{let o=this.indexOf(n);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(mo(this.items,o,...r))}),A(this,"insertAfter",(n,...r)=>{let o=this.indexOf(n);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(mo(this.items,o+1,...r))}),A(this,"prepend",(...n)=>this.copy(mo(this.items,0,...n))),A(this,"append",(...n)=>this.copy(mo(this.items,this.items.length,...n))),A(this,"filter",n=>{const r=this.items.filter((o,i)=>n(this.stringifyItem(o),i,o));return this.copy(r)}),A(this,"remove",(...n)=>{const r=n.map(o=>typeof o=="string"?o:this.getItemValue(o));return this.copy(this.items.filter(o=>{const i=this.getItemValue(o);return i==null?!1:!r.includes(i)}))}),A(this,"move",(n,r)=>{const o=this.indexOf(n);return o===-1?this:this.copy(Ji(this.items,[o],r))}),A(this,"moveBefore",(n,...r)=>{let o=this.items.findIndex(s=>this.getItemValue(s)===n);if(o===-1)return this;let i=r.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(Ji(this.items,i,o))}),A(this,"moveAfter",(n,...r)=>{let o=this.items.findIndex(s=>this.getItemValue(s)===n);if(o===-1)return this;let i=r.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(Ji(this.items,i,o+1))}),A(this,"reorder",(n,r)=>this.copy(Ji(this.items,[n],r))),A(this,"compareValue",(n,r)=>{const o=this.indexOf(n),i=this.indexOf(r);return oi?1:0}),A(this,"range",(n,r)=>{let o=[],i=n;for(;i!=null;){if(this.find(i)&&o.push(i),i===r)return o;i=this.getNextValue(i)}return[]}),A(this,"getValueRange",(n,r)=>n&&r?this.compareValue(n,r)<=0?this.range(n,r):this.range(r,n):[]),A(this,"toString",()=>{let n="";for(const r of this.items){const o=this.getItemValue(r),i=this.stringifyItem(r),s=this.getItemDisabled(r),a=[o,i,s].filter(Boolean).join(":");n+=a+","}return n}),A(this,"toJSON",()=>({size:this.size,first:this.firstValue,last:this.lastValue})),this.items=[...t.items]}get size(){return this.items.length}get firstValue(){let t=0;for(;this.getItemDisabled(this.at(t));)t++;return this.getItemValue(this.at(t))}get lastValue(){let t=this.size-1;for(;this.getItemDisabled(this.at(t));)t--;return this.getItemValue(this.at(t))}*[Symbol.iterator](){yield*this.items}},kk=(e,t)=>!!(e!=null&&e.toLowerCase().startsWith(t.toLowerCase()));function mo(e,t,...n){return[...e.slice(0,t),...n,...e.slice(t)]}function Ji(e,t,n){t=[...t].sort((o,i)=>o-i);const r=t.map(o=>e[o]);for(let o=t.length-1;o>=0;o--)e=[...e.slice(0,t[o]),...e.slice(t[o]+1)];return n=Math.max(0,n-t.filter(o=>ot[n])return 1}return e.length-t.length}function wk(e){return e.sort(Yd)}function Ek(e,t){let n;return it(e,{...t,onEnter:(r,o)=>{if(t.predicate(r,o))return n=r,"stop"}}),n}function Ok(e,t){const n=[];return it(e,{onEnter:(r,o)=>{t.predicate(r,o)&&n.push(r)},getChildren:t.getChildren}),n}function Qd(e,t){let n;return it(e,{onEnter:(r,o)=>{if(t.predicate(r,o))return n=[...o],"stop"},getChildren:t.getChildren}),n}function Ik(e,t){let n=t.initialResult;return it(e,{...t,onEnter:(r,o)=>{n=t.nextResult(n,r,o)}}),n}function Pk(e,t){return Ik(e,{...t,initialResult:[],nextResult:(n,r,o)=>(n.push(...t.transform(r,o)),n)})}function Rk(e,t){const{predicate:n,create:r,getChildren:o}=t,i=(s,a)=>{const l=o(s,a),c=[];l.forEach((p,f)=>{const g=[...a,f],m=i(p,g);m&&c.push(m)});const u=a.length===0,d=n(s,a),h=c.length>0;return u||d||h?r(s,c,a):null};return i(e,[])||r(e,[],[])}function Tk(e,t){const n=[];let r=0;const o=new Map,i=new Map;return it(e,{getChildren:t.getChildren,onEnter:(s,a)=>{o.has(s)||o.set(s,r++);const l=t.getChildren(s,a);l.forEach(p=>{i.has(p)||i.set(p,s),o.has(p)||o.set(p,r++)});const c=l.length>0?l.map(p=>o.get(p)):void 0,u=i.get(s),d=u?o.get(u):void 0,h=o.get(s);n.push({...s,_children:c,_parent:d,_index:h})}}),n}function Nk(e,t){return{type:"insert",index:e,nodes:t}}function _k(e){return{type:"remove",indexes:e}}function il(){return{type:"replace"}}function Jd(e){return[e.slice(0,-1),e[e.length-1]]}function Zd(e,t,n=new Map){var s;const[r,o]=Jd(e);for(let a=r.length-1;a>=0;a--){const l=r.slice(0,a).join();switch((s=n.get(l))==null?void 0:s.type){case"remove":continue}n.set(l,il())}const i=n.get(r.join());switch(i==null?void 0:i.type){case"remove":n.set(r.join(),{type:"removeThenInsert",removeIndexes:i.indexes,insertIndex:o,insertNodes:t});break;default:n.set(r.join(),Nk(o,t))}return n}function eh(e){const t=new Map,n=new Map;for(const r of e){const o=r.slice(0,-1).join(),i=n.get(o)??[];i.push(r[r.length-1]),n.set(o,i.sort((s,a)=>s-a))}for(const r of e)for(let o=r.length-2;o>=0;o--){const i=r.slice(0,o).join();t.has(i)||t.set(i,il())}for(const[r,o]of n)t.set(r,_k(o));return t}function Ak(e,t){const n=new Map,[r,o]=Jd(e);for(let i=r.length-1;i>=0;i--){const s=r.slice(0,i).join();n.set(s,il())}return n.set(r.join(),{type:"removeThenInsert",removeIndexes:[o],insertIndex:o,insertNodes:[t]}),n}function Zi(e,t,n){return Vk(e,{...n,getChildren:(r,o)=>{const i=o.join(),s=t.get(i);switch(s==null?void 0:s.type){case"replace":case"remove":case"removeThenInsert":case"insert":return n.getChildren(r,o);default:return[]}},transform:(r,o,i)=>{const s=i.join(),a=t.get(s);switch(a==null?void 0:a.type){case"remove":return n.create(r,o.filter((u,d)=>!a.indexes.includes(d)),i);case"removeThenInsert":const l=o.filter((u,d)=>!a.removeIndexes.includes(d)),c=a.removeIndexes.reduce((u,d)=>d{const i=[0,...o],s=i.join(),a=t.transform(r,n[s]??[],o),l=i.slice(0,-1).join(),c=n[l]??[];c.push(a),n[l]=c}}),n[""][0]}function Lk(e,t){const{nodes:n,at:r}=t;if(r.length===0)throw new Error("Can't insert nodes at the root");const o=Zd(r,n);return Zi(e,o,t)}function Fk(e,t){if(t.at.length===0)return t.node;const n=Ak(t.at,t.node);return Zi(e,n,t)}function Dk(e,t){if(t.indexPaths.length===0)return e;for(const r of t.indexPaths)if(r.length===0)throw new Error("Can't remove the root node");const n=eh(t.indexPaths);return Zi(e,n,t)}function zk(e,t){if(t.indexPaths.length===0)return e;for(const i of t.indexPaths)if(i.length===0)throw new Error("Can't move the root node");if(t.to.length===0)throw new Error("Can't move nodes to the root");const n=Sk(t.indexPaths),r=n.map(i=>Xd(e,i,t)),o=Zd(t.to,r,eh(n));return Zi(e,o,t)}function it(e,t){const{onEnter:n,onLeave:r,getChildren:o}=t;let i=[],s=[{node:e}];const a=t.reuseIndexPath?()=>i:()=>i.slice();for(;s.length>0;){let l=s[s.length-1];if(l.state===void 0){const u=n==null?void 0:n(l.node,a());if(u==="stop")return;l.state=u==="skip"?-1:0}const c=l.children||o(l.node,a());if(l.children||(l.children=c),l.state!==-1){if(l.stategt(this.rootNode,n.rootNode)),A(this,"getNodeChildren",n=>{var r,o;return((o=(r=this.options).nodeToChildren)==null?void 0:o.call(r,n))??kr.nodeToChildren(n)??[]}),A(this,"resolveIndexPath",n=>typeof n=="string"?this.getIndexPath(n):n),A(this,"resolveNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(r):void 0}),A(this,"getNodeChildrenCount",n=>{var r,o;return((o=(r=this.options).nodeToChildrenCount)==null?void 0:o.call(r,n))??kr.nodeToChildrenCount(n)}),A(this,"getNodeValue",n=>{var r,o;return((o=(r=this.options).nodeToValue)==null?void 0:o.call(r,n))??kr.nodeToValue(n)}),A(this,"getNodeDisabled",n=>{var r,o;return((o=(r=this.options).isNodeDisabled)==null?void 0:o.call(r,n))??kr.isNodeDisabled(n)}),A(this,"stringify",n=>{const r=this.findNode(n);return r?this.stringifyNode(r):null}),A(this,"stringifyNode",n=>{var r,o;return((o=(r=this.options).nodeToString)==null?void 0:o.call(r,n))??kr.nodeToString(n)}),A(this,"getFirstNode",(n=this.rootNode)=>{let r;return it(n,{getChildren:this.getNodeChildren,onEnter:(o,i)=>{if(!r&&i.length>0&&!this.getNodeDisabled(o))return r=o,"stop"}}),r}),A(this,"getLastNode",(n=this.rootNode,r={})=>{let o;return it(n,{getChildren:this.getNodeChildren,onEnter:(i,s)=>{var a;if(!this.isSameNode(i,n)){if((a=r.skip)!=null&&a.call(r,{value:this.getNodeValue(i),node:i,indexPath:s}))return"skip";s.length>0&&!this.getNodeDisabled(i)&&(o=i)}}}),o}),A(this,"at",n=>Xd(this.rootNode,n,{getChildren:this.getNodeChildren})),A(this,"findNode",(n,r=this.rootNode)=>Ek(r,{getChildren:this.getNodeChildren,predicate:o=>this.getNodeValue(o)===n})),A(this,"findNodes",(n,r=this.rootNode)=>{const o=new Set(n.filter(i=>i!=null));return Ok(r,{getChildren:this.getNodeChildren,predicate:i=>o.has(this.getNodeValue(i))})}),A(this,"sort",n=>n.reduce((r,o)=>{const i=this.getIndexPath(o);return i&&r.push({value:o,indexPath:i}),r},[]).sort((r,o)=>Yd(r.indexPath,o.indexPath)).map(({value:r})=>r)),A(this,"getIndexPath",n=>Qd(this.rootNode,{getChildren:this.getNodeChildren,predicate:r=>this.getNodeValue(r)===n})),A(this,"getValue",n=>{const r=this.at(n);return r?this.getNodeValue(r):void 0}),A(this,"getValuePath",n=>{if(!n)return[];const r=[];let o=[...n];for(;o.length>0;){const i=this.at(o);i&&r.unshift(this.getNodeValue(i)),o.pop()}return r}),A(this,"getDepth",n=>{const r=Qd(this.rootNode,{getChildren:this.getNodeChildren,predicate:o=>this.getNodeValue(o)===n});return(r==null?void 0:r.length)??0}),A(this,"isSameNode",(n,r)=>this.getNodeValue(n)===this.getNodeValue(r)),A(this,"isRootNode",n=>this.isSameNode(n,this.rootNode)),A(this,"contains",(n,r)=>!n||!r?!1:r.slice(0,n.length).every((o,i)=>n[i]===r[i])),A(this,"getNextNode",(n,r={})=>{let o=!1,i;return it(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{var c;if(this.isRootNode(s))return;const l=this.getNodeValue(s);if((c=r.skip)!=null&&c.call(r,{value:l,node:s,indexPath:a}))return l===n&&(o=!0),"skip";if(o&&!this.getNodeDisabled(s))return i=s,"stop";l===n&&(o=!0)}}),i}),A(this,"getPreviousNode",(n,r={})=>{let o,i=!1;return it(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{var c;if(this.isRootNode(s))return;const l=this.getNodeValue(s);if((c=r.skip)!=null&&c.call(r,{value:l,node:s,indexPath:a}))return"skip";if(l===n)return i=!0,"stop";this.getNodeDisabled(s)||(o=s)}}),i?o:void 0}),A(this,"getParentNodes",n=>{var i;const r=(i=this.resolveIndexPath(n))==null?void 0:i.slice();if(!r)return[];const o=[];for(;r.length>0;){r.pop();const s=this.at(r);s&&!this.isRootNode(s)&&o.unshift(s)}return o}),A(this,"getDescendantNodes",(n,r)=>{const o=this.resolveNode(n);if(!o)return[];const i=[];return it(o,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{a.length!==0&&(!(r!=null&&r.withBranch)&&this.isBranchNode(s)||i.push(s))}}),i}),A(this,"getDescendantValues",(n,r)=>this.getDescendantNodes(n,r).map(i=>this.getNodeValue(i))),A(this,"getParentIndexPath",n=>n.slice(0,-1)),A(this,"getParentNode",n=>{const r=this.resolveIndexPath(n);return r?this.at(this.getParentIndexPath(r)):void 0}),A(this,"visit",n=>{const{skip:r,...o}=n;it(this.rootNode,{...o,getChildren:this.getNodeChildren,onEnter:(i,s)=>{var a;if(!this.isRootNode(i))return r!=null&&r({value:this.getNodeValue(i),node:i,indexPath:s})?"skip":(a=o.onEnter)==null?void 0:a.call(o,i,s)}})}),A(this,"getPreviousSibling",n=>{const r=this.getParentNode(n);if(!r)return;const o=this.getNodeChildren(r);let i=n[n.length-1];for(;--i>=0;){const s=o[i];if(!this.getNodeDisabled(s))return s}}),A(this,"getNextSibling",n=>{const r=this.getParentNode(n);if(!r)return;const o=this.getNodeChildren(r);let i=n[n.length-1];for(;++i{const r=this.getParentNode(n);return r?this.getNodeChildren(r):[]}),A(this,"getValues",(n=this.rootNode)=>Pk(n,{getChildren:this.getNodeChildren,transform:o=>[this.getNodeValue(o)]}).slice(1)),A(this,"isValidDepth",(n,r)=>r==null?!0:typeof r=="function"?r(n.length):n.length===r),A(this,"isBranchNode",n=>this.getNodeChildren(n).length>0||this.getNodeChildrenCount(n)!=null),A(this,"getBranchValues",(n=this.rootNode,r={})=>{let o=[];return it(n,{getChildren:this.getNodeChildren,onEnter:(i,s)=>{var l;if(s.length===0)return;const a=this.getNodeValue(i);if((l=r.skip)!=null&&l.call(r,{value:a,node:i,indexPath:s}))return"skip";this.isBranchNode(i)&&this.isValidDepth(s,r.depth)&&o.push(this.getNodeValue(i))}}),o}),A(this,"flatten",(n=this.rootNode)=>Tk(n,{getChildren:this.getNodeChildren})),A(this,"_create",(n,r)=>this.getNodeChildren(n).length>0||r.length>0?{...n,children:r}:{...n}),A(this,"_insert",(n,r,o)=>this.copy(Lk(n,{at:r,nodes:o,getChildren:this.getNodeChildren,create:this._create}))),A(this,"copy",n=>new uv({...this.options,rootNode:n})),A(this,"_replace",(n,r,o)=>this.copy(Fk(n,{at:r,node:o,getChildren:this.getNodeChildren,create:this._create}))),A(this,"_move",(n,r,o)=>this.copy(zk(n,{indexPaths:r,to:o,getChildren:this.getNodeChildren,create:this._create}))),A(this,"_remove",(n,r)=>this.copy(Dk(n,{indexPaths:r,getChildren:this.getNodeChildren,create:this._create}))),A(this,"replace",(n,r)=>this._replace(this.rootNode,n,r)),A(this,"remove",n=>this._remove(this.rootNode,n)),A(this,"insertBefore",(n,r)=>this.getParentNode(n)?this._insert(this.rootNode,n,r):void 0),A(this,"insertAfter",(n,r)=>{if(!this.getParentNode(n))return;const i=[...n.slice(0,-1),n[n.length-1]+1];return this._insert(this.rootNode,i,r)}),A(this,"move",(n,r)=>this._move(this.rootNode,n,r)),A(this,"filter",n=>{const r=Rk(this.rootNode,{predicate:n,getChildren:this.getNodeChildren,create:this._create});return this.copy(r)}),A(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},kr={nodeToValue(e){return typeof e=="string"?e:On(e)&&Yt(e,"value")?e.value:""},nodeToString(e){return typeof e=="string"?e:On(e)&&Yt(e,"label")?e.label:kr.nodeToValue(e)},isNodeDisabled(e){return On(e)&&Yt(e,"disabled")?!!e.disabled:!1},nodeToChildren(e){return e.children},nodeToChildrenCount(e){if(On(e)&&Yt(e,"childrenCount"))return e.childrenCount}},Sr=new WeakMap,es=new WeakMap,ts={},sl=0,rh=e=>e&&(e.host||rh(e.parentNode)),Mk=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=rh(n);return r&&e.contains(r)?r:(console.error("[zag-js > ariaHidden] target",n,"in not contained inside",e,". Doing nothing"),null)}).filter(n=>!!n),$k=new Set(["script","output","status","next-route-announcer"]),jk=e=>$k.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),Bk=(e,t)=>{const{parentNode:n,markerName:r,controlAttribute:o}=t,i=Mk(n,Array.isArray(e)?e:[e]);ts[r]||(ts[r]=new WeakMap);const s=ts[r],a=[],l=new Set,c=new Set(i),u=h=>{!h||l.has(h)||(l.add(h),u(h.parentNode))};i.forEach(u);const d=h=>{!h||c.has(h)||Array.prototype.forEach.call(h.children,p=>{if(l.has(p))d(p);else try{if(jk(p))return;const g=p.getAttribute(o)==="true",m=(Sr.get(p)||0)+1,b=(s.get(p)||0)+1;Sr.set(p,m),s.set(p,b),a.push(p),m===1&&g&&es.set(p,!0),b===1&&p.setAttribute(r,""),g||p.setAttribute(o,"true")}catch(f){console.error("[zag-js > ariaHidden] cannot operate on ",p,f)}})};return d(n),l.clear(),sl++,()=>{a.forEach(h=>{const p=Sr.get(h)-1,f=s.get(h)-1;Sr.set(h,p),s.set(h,f),p||(es.has(h)||h.removeAttribute(o),es.delete(h)),f||h.removeAttribute(r)}),sl--,sl||(Sr=new WeakMap,Sr=new WeakMap,es=new WeakMap,ts={})}},Wk=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,Hk=(e,t=Wk(e),n="data-aria-hidden")=>{if(t)return Bk(e,{parentNode:t,markerName:n,controlAttribute:"aria-hidden"})},Uk=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function oh(e,t={}){const{defer:n=!0}=t,r=n?Uk:i=>i(),o=[];return o.push(r(()=>{const s=(typeof e=="function"?e():e).filter(Boolean);s.length!==0&&o.push(Hk(s))})),()=>{o.forEach(i=>i==null?void 0:i())}}var ih=G("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");ih.build();var sh=e=>new Qi(e);sh.empty=()=>new Qi({items:[]});var Gk=e=>{var t;return((t=e.ids)==null?void 0:t.control)??`combobox:${e.id}:control`},qk=e=>{var t;return((t=e.ids)==null?void 0:t.input)??`combobox:${e.id}:input`},Kk=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`combobox:${e.id}:content`},Xk=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`combobox:${e.id}:popper`},Yk=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`combobox:${e.id}:toggle-btn`},Qk=e=>{var t;return((t=e.ids)==null?void 0:t.clearTrigger)??`combobox:${e.id}:clear-btn`},rn=e=>e.getById(Kk(e)),wr=e=>e.getById(qk(e)),ah=e=>e.getById(Xk(e)),lh=e=>e.getById(Gk(e)),vo=e=>e.getById(Yk(e)),ch=e=>e.getById(Qk(e)),bo=(e,t)=>{if(t==null)return null;const n=`[role=option][data-value="${CSS.escape(t)}"]`;return ux(rn(e),n)},uh=e=>{const t=wr(e);e.isActiveElement(t)||t==null||t.focus({preventScroll:!0})},Jk=e=>{const t=vo(e);e.isActiveElement(t)||t==null||t.focus({preventScroll:!0})},{guards:Zk,createMachine:eS,choose:tS}=$u(),{and:Re,not:st}=Zk;eS({props({props:e}){return{loopFocus:!0,openOnClick:!1,defaultValue:[],closeOnSelect:!e.multiple,allowCustomValue:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:t}){Vu(t)},collection:sh.empty(),...e,positioning:{placement:"bottom",sameWidth:!0,...e.positioning},translations:{triggerLabel:"Toggle suggestions",clearTriggerLabel:"Clear value",...e.translations}}},initialState({prop:e}){return e("open")||e("defaultOpen")?"suggesting":"idle"},context({prop:e,bindable:t,getContext:n,getEvent:r}){return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:gt,hash(o){return o.join(",")},onChange(o){var c;const i=n(),s=i.get("selectedItems"),a=e("collection"),l=o.map(u=>s.find(h=>a.getItemValue(h)===u)||a.find(u));i.set("selectedItems",l),(c=e("onValueChange"))==null||c({value:o,items:l})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(o){var s;const i=e("collection").find(o);(s=e("onHighlightChange"))==null||s({highlightedValue:o,highlightedItem:i})}})),inputValue:t(()=>{let o=e("inputValue")||e("defaultInputValue")||"";const i=e("defaultValue")||e("value")||[];if(!o.trim()&&!e("multiple")){const s=e("collection").stringifyMany(i);o=Mt(e("selectionBehavior"),{preserve:o||s,replace:s,clear:""})}return{defaultValue:o,value:e("inputValue"),onChange(s){var c;const a=r(),l=(a.previousEvent||a).src;(c=e("onInputValueChange"))==null||c({inputValue:s,reason:l})}}}),highlightedItem:t(()=>{const o=e("highlightedValue");return{defaultValue:e("collection").find(o)}}),selectedItems:t(()=>{const o=e("value")||e("defaultValue")||[];return{defaultValue:e("collection").findMany(o)}})}},computed:{isInputValueEmpty:({context:e})=>e.get("inputValue").length===0,isInteractive:({prop:e})=>!(e("readOnly")||e("disabled")),autoComplete:({prop:e})=>e("inputBehavior")==="autocomplete",autoHighlight:({prop:e})=>e("inputBehavior")==="autohighlight",hasSelectedItems:({context:e})=>e.get("value").length>0,valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems")),isCustomValue:({context:e,computed:t})=>e.get("inputValue")!==t("valueAsString")},watch({context:e,prop:t,track:n,action:r,send:o}){n([()=>e.hash("value")],()=>{r(["syncSelectedItems"])}),n([()=>e.get("inputValue")],()=>{r(["syncInputValue"])}),n([()=>e.get("highlightedValue")],()=>{r(["syncHighlightedItem","autofillInputValue"])}),n([()=>t("open")],()=>{r(["toggleVisibility"])}),n([()=>t("collection").toString()],()=>{o({type:"CHILDREN_CHANGE"})})},on:{"SELECTED_ITEMS.SYNC":{actions:["syncSelectedItems"]},"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedValue"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedValue"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setValue"]},"INPUT_VALUE.SET":{actions:["setInputValue"]},"POSITIONING.SET":{actions:["reposition"]}},entry:tS([{guard:"autoFocus",actions:["setInitialFocus"]}]),states:{idle:{tags:["idle","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":{target:"interacting"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{target:"focused",actions:["clearInputValue","clearSelectedItems","setInitialFocus"]}}},focused:{tags:["focused","closed"],entry:["scrollContentToTop","clearHighlightedValue"],on:{"CONTROLLED.OPEN":[{guard:"isChangeEvent",target:"suggesting"},{target:"interacting"}],"INPUT.CHANGE":[{guard:Re("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:Re("isCustomValue",st("allowCustomValue")),actions:["revertInputValue"]},"INPUT.BLUR":{target:"idle"},"INPUT.CLICK":[{guard:"isOpenControlled",actions:["highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstSelectedItem","invokeOnOpen"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["setInitialFocus","highlightFirstSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_DOWN":[{guard:Re("isOpenControlled","autoComplete"),actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"isOpenControlled",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightFirstOrSelectedItem","invokeOnOpen"]}],"INPUT.ARROW_UP":[{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{guard:"autoComplete",target:"interacting",actions:["invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]},{target:"interacting",actions:["highlightLastOrSelectedItem","invokeOnOpen"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"interacting",actions:["invokeOnOpen"]}],"VALUE.CLEAR":{actions:["clearInputValue","clearSelectedItems"]}}},interacting:{tags:["open","focused"],entry:["setInitialFocus"],effects:["scrollToHighlightedItem","trackDismissableLayer","trackPlacement","hideOtherElements"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{actions:["scrollToHighlightedItem"]}],"INPUT.HOME":{actions:["highlightFirstItem"]},"INPUT.END":{actions:["highlightLastItem"]},"INPUT.ARROW_DOWN":[{guard:Re("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:Re("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:Re("isOpenControlled","isCustomValue",st("hasHighlightedItem"),st("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Re("isCustomValue",st("hasHighlightedItem"),st("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:Re("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":[{guard:"autoComplete",target:"suggesting",actions:["setInputValue"]},{target:"suggesting",actions:["clearHighlightedValue","setInputValue"]}],"ITEM.POINTER_MOVE":{actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"ITEM.CLICK":[{guard:Re("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:Re("isOpenControlled","autoComplete"),actions:["syncInputValue","invokeOnClose"]},{guard:"autoComplete",target:"focused",actions:["syncInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"LAYER.INTERACT_OUTSIDE":[{guard:Re("isOpenControlled","isCustomValue",st("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Re("isCustomValue",st("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}},suggesting:{tags:["open","focused"],effects:["trackDismissableLayer","scrollToHighlightedItem","trackPlacement","hideOtherElements"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:"autoHighlight",actions:["highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]}],"INPUT.ARROW_DOWN":{target:"interacting",actions:["highlightNextItem"]},"INPUT.ARROW_UP":{target:"interacting",actions:["highlightPrevItem"]},"INPUT.HOME":{target:"interacting",actions:["highlightFirstItem"]},"INPUT.END":{target:"interacting",actions:["highlightLastItem"]},"INPUT.ENTER":[{guard:Re("isOpenControlled","isCustomValue",st("hasHighlightedItem"),st("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Re("isCustomValue",st("hasHighlightedItem"),st("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:Re("isOpenControlled","closeOnSelect"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","setFinalFocus"]},{actions:["selectHighlightedItem"]}],"INPUT.CHANGE":{actions:["setInputValue"]},"LAYER.ESCAPE":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.POINTER_MOVE":{target:"interacting",actions:["setHighlightedValue"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedValue"]},"LAYER.INTERACT_OUTSIDE":[{guard:Re("isOpenControlled","isCustomValue",st("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:Re("isCustomValue",st("allowCustomValue")),target:"idle",actions:["revertInputValue","invokeOnClose"]},{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"idle",actions:["invokeOnClose"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose"]}],"ITEM.CLICK":[{guard:Re("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","setFinalFocus"]}],"VALUE.CLEAR":[{guard:"isOpenControlled",actions:["clearInputValue","clearSelectedItems","invokeOnClose"]},{target:"focused",actions:["clearInputValue","clearSelectedItems","invokeOnClose","setFinalFocus"]}]}}},implementations:{guards:{isInputValueEmpty:({computed:e})=>e("isInputValueEmpty"),autoComplete:({computed:e,prop:t})=>e("autoComplete")&&!t("multiple"),autoHighlight:({computed:e})=>e("autoHighlight"),isFirstItemHighlighted:({prop:e,context:t})=>e("collection").firstValue===t.get("highlightedValue"),isLastItemHighlighted:({prop:e,context:t})=>e("collection").lastValue===t.get("highlightedValue"),isCustomValue:({computed:e})=>e("isCustomValue"),allowCustomValue:({prop:e})=>!!e("allowCustomValue"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,closeOnSelect:({prop:e})=>!!e("closeOnSelect"),isOpenControlled:({prop:e})=>e("open")!=null,openOnChange:({prop:e,context:t})=>{const n=e("openOnChange");return Ub(n)?n:!!(n!=null&&n({inputValue:t.get("inputValue")}))},restoreFocus:({event:e})=>e.restoreFocus==null?!0:!!e.restoreFocus,isChangeEvent:({event:e})=>{var t;return((t=e.previousEvent)==null?void 0:t.type)==="INPUT.CHANGE"},autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue"))},effects:{trackDismissableLayer({send:e,prop:t,scope:n}){return t("disableLayer")?void 0:Cr(()=>rn(n),{defer:!0,exclude:()=>[wr(n),vo(n),ch(n)],onFocusOutside:t("onFocusOutside"),onPointerDownOutside:t("onPointerDownOutside"),onInteractOutside:t("onInteractOutside"),onEscapeKeyDown(o){o.preventDefault(),o.stopPropagation(),e({type:"LAYER.ESCAPE",src:"escape-key"})},onDismiss(){e({type:"LAYER.INTERACT_OUTSIDE",src:"interact-outside",restoreFocus:!1})}})},hideOtherElements({scope:e}){return oh([wr(e),rn(e),vo(e),ch(e)])},trackPlacement({context:e,prop:t,scope:n}){const r=()=>lh(n)||vo(n),o=()=>ah(n);return e.set("currentPlacement",t("positioning").placement),bt(r,o,{...t("positioning"),defer:!0,onComplete(i){e.set("currentPlacement",i.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:n,event:r}){const o=wr(n);let i=[];const s=c=>{const u=r.current().type.includes("POINTER"),d=e.get("highlightedValue");if(u||!d)return;const h=rn(n),p=t("scrollToIndexFn");if(p){const m=t("collection").indexOf(d);p({index:m,immediate:c,getElement:()=>bo(n,d)});return}const f=bo(n,d),g=ee(()=>{Ri(f,{rootEl:h,block:"nearest"})});i.push(g)},a=ee(()=>s(!0));i.push(a);const l=Ii(o,{attributes:["aria-activedescendant"],callback:()=>s(!1)});return i.push(l),()=>{i.forEach(c=>c())}}},actions:{reposition({context:e,prop:t,scope:n,event:r}){bt(()=>lh(n),()=>ah(n),{...t("positioning"),...r.options,defer:!0,listeners:!1,onComplete(s){e.set("currentPlacement",s.placement)}})},setHighlightedValue({context:e,event:t}){t.value!=null&&e.set("highlightedValue",t.value)},clearHighlightedValue({context:e}){e.set("highlightedValue",null)},selectHighlightedItem(e){var a;const{context:t,prop:n}=e,r=n("collection"),o=t.get("highlightedValue");if(!o||!r.has(o))return;const i=n("multiple")?dr(t.get("value"),o):[o];(a=n("onSelect"))==null||a({value:i,itemValue:o}),t.set("value",i);const s=Mt(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(i),clear:""});t.set("inputValue",s)},scrollToHighlightedItem({context:e,prop:t,scope:n}){Na(()=>{const r=e.get("highlightedValue");if(r==null)return;const o=bo(n,r),i=rn(n),s=t("scrollToIndexFn");if(s){const a=t("collection").indexOf(r);s({index:a,immediate:!0,getElement:()=>bo(n,r)});return}Ri(o,{rootEl:i,block:"nearest"})})},selectItem(e){const{context:t,event:n,flush:r,prop:o}=e;n.value!=null&&r(()=>{var a;const i=o("multiple")?dr(t.get("value"),n.value):[n.value];(a=o("onSelect"))==null||a({value:i,itemValue:n.value}),t.set("value",i);const s=Mt(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(i),clear:""});t.set("inputValue",s)})},clearItem(e){const{context:t,event:n,flush:r,prop:o}=e;n.value!=null&&r(()=>{const i=En(t.get("value"),n.value);t.set("value",i);const s=Mt(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(i),clear:""});t.set("inputValue",s)})},setInitialFocus({scope:e}){ee(()=>{uh(e)})},setFinalFocus({scope:e}){ee(()=>{const t=vo(e);(t==null?void 0:t.dataset.focusable)==null?uh(e):Jk(e)})},syncInputValue({context:e,scope:t,event:n}){const r=wr(t);r&&(r.value=e.get("inputValue"),queueMicrotask(()=>{n.current().type!=="INPUT.CHANGE"&&vy(r)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:n}){const r=t("selectionBehavior"),o=Mt(r,{replace:n("hasSelectedItems")?n("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",o)},setValue(e){const{context:t,flush:n,event:r,prop:o}=e;n(()=>{t.set("value",r.value);const i=Mt(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(r.value),clear:""});t.set("inputValue",i)})},clearSelectedItems(e){const{context:t,flush:n,prop:r}=e;n(()=>{t.set("value",[]);const o=Mt(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:r("collection").stringifyMany([]),clear:""});t.set("inputValue",o)})},scrollContentToTop({prop:e,scope:t}){const n=e("scrollToIndexFn");if(n){const r=e("collection").firstValue;n({index:0,immediate:!0,getElement:()=>bo(t,r)})}else{const r=rn(t);if(!r)return;r.scrollTop=0}},invokeOnOpen({prop:e,event:t}){var r;const n=dh(t);(r=e("onOpenChange"))==null||r({open:!0,reason:n})},invokeOnClose({prop:e,event:t}){var r;const n=dh(t);(r=e("onOpenChange"))==null||r({open:!1,reason:n})},highlightFirstItem({context:e,prop:t,scope:n}){(rn(n)?queueMicrotask:ee)(()=>{const o=t("collection").firstValue;o&&e.set("highlightedValue",o)})},highlightFirstItemIfNeeded({computed:e,action:t}){e("autoHighlight")&&t(["highlightFirstItem"])},highlightLastItem({context:e,prop:t,scope:n}){(rn(n)?queueMicrotask:ee)(()=>{const o=t("collection").lastValue;o&&e.set("highlightedValue",o)})},highlightNextItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),o=t("collection");r?(n=o.getNextValue(r),!n&&t("loopFocus")&&(n=o.firstValue)):n=o.firstValue,n&&e.set("highlightedValue",n)},highlightPrevItem({context:e,prop:t}){let n=null;const r=e.get("highlightedValue"),o=t("collection");r?(n=o.getPreviousValue(r),!n&&t("loopFocus")&&(n=o.lastValue)):n=o.lastValue,n&&e.set("highlightedValue",n)},highlightFirstSelectedItem({context:e,prop:t}){ee(()=>{const[n]=t("collection").sort(e.get("value"));n&&e.set("highlightedValue",n)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:n}){ee(()=>{let r=null;n("hasSelectedItems")?r=t("collection").sort(e.get("value"))[0]:r=t("collection").firstValue,r&&e.set("highlightedValue",r)})},highlightLastOrSelectedItem({context:e,prop:t,computed:n}){ee(()=>{const r=t("collection");let o=null;n("hasSelectedItems")?o=r.sort(e.get("value"))[0]:o=r.lastValue,o&&e.set("highlightedValue",o)})},autofillInputValue({context:e,computed:t,prop:n,event:r,scope:o}){const i=wr(o),s=n("collection");if(!t("autoComplete")||!i||!r.keypress)return;const a=s.stringify(e.get("highlightedValue"));ee(()=>{i.value=a||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:n}=e,r=n("collection"),o=t.get("value"),i=o.map(a=>t.get("selectedItems").find(c=>r.getItemValue(c)===a)||r.find(a));t.set("selectedItems",i);const s=Mt(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:r.stringifyMany(o),clear:""});t.set("inputValue",s)})},syncHighlightedItem({context:e,prop:t}){const n=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",n)},toggleVisibility({event:e,send:t,prop:n}){t({type:n("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function dh(e){return(e.previousEvent||e).src}U()(["allowCustomValue","autoFocus","closeOnSelect","collection","composite","defaultHighlightedValue","defaultInputValue","defaultOpen","defaultValue","dir","disabled","disableLayer","form","getRootNode","highlightedValue","id","ids","inputBehavior","inputValue","invalid","loopFocus","multiple","name","navigate","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onOpenChange","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","openOnChange","openOnClick","openOnKeyPress","placeholder","positioning","readOnly","required","scrollToIndexFn","selectionBehavior","translations","value"]),U()(["htmlFor"]),U()(["id"]),U()(["item","persistFocus"]);const nS=ih.extendWith("empty"),[hh,on]=hr({name:"DialogContext",hookName:"useDialogContext",providerName:""}),fh=w.forwardRef((e,t)=>{const n=on(),r=JC(),o=za({...r,present:n.open}),i=pt(n.getBackdropProps(),o.getPresenceProps(),e);return o.unmounted?null:v.jsx(en.div,{...i,ref:Ai(o.ref,t)})});fh.displayName="DialogBackdrop";const gh=w.forwardRef((e,t)=>{const n=on(),r=pt(n.getCloseTriggerProps(),e);return v.jsx(en.button,{...r,ref:t})});gh.displayName="DialogCloseTrigger";const ph=w.forwardRef((e,t)=>{const n=on(),r=Ma(),o=pt(n.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:v.jsx(en.div,{...o,ref:Ai(r.ref,t)})});ph.displayName="DialogContent";const mh=w.forwardRef((e,t)=>{const n=on(),r=pt(n.getDescriptionProps(),e);return v.jsx(en.div,{...r,ref:t})});mh.displayName="DialogDescription";const vh=w.forwardRef((e,t)=>{const n=on(),r=pt(n.getPositionerProps(),e);return Ma().unmounted?null:v.jsx(en.div,{...r,ref:t})});vh.displayName="DialogPositioner";var rS=Object.defineProperty,oS=(e,t,n)=>t in e?rS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ge=(e,t,n)=>oS(e,typeof t!="symbol"?t+"":t,n),bh={activateTrap(e,t){if(e.length>0){const r=e[e.length-1];r!==t&&r.pause()}const n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}},iS=[],sS=class{constructor(e,t){ge(this,"trapStack"),ge(this,"config"),ge(this,"doc"),ge(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),ge(this,"listenerCleanups",[]),ge(this,"handleFocus",r=>{const o=nt(r),i=this.findContainerIndex(o,r)>=0;if(i||wa(o))i&&(this.state.mostRecentlyFocusedNode=o);else{r.stopImmediatePropagation();let s,a=!0;if(this.state.mostRecentlyFocusedNode)if(lo(this.state.mostRecentlyFocusedNode)>0){const l=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:c}=this.state.containerGroups[l];if(c.length>0){const u=c.findIndex(d=>d===this.state.mostRecentlyFocusedNode);u>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?u+1=0&&(s=c[u-1],a=!1))}}else this.state.containerGroups.some(l=>l.tabbableNodes.some(c=>lo(c)>0))||(a=!1);else a=!1;a&&(s=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),s?this.tryFocus(s):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),ge(this,"handlePointerDown",r=>{const o=nt(r);if(!(this.findContainerIndex(o,r)>=0)){if(xo(this.config.clickOutsideDeactivates,r)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}xo(this.config.allowOutsideClick,r)||r.preventDefault()}}),ge(this,"handleClick",r=>{const o=nt(r);this.findContainerIndex(o,r)>=0||xo(this.config.clickOutsideDeactivates,r)||xo(this.config.allowOutsideClick,r)||(r.preventDefault(),r.stopImmediatePropagation())}),ge(this,"handleTabKey",r=>{if(this.config.isKeyForward(r)||this.config.isKeyBackward(r)){this.state.recentNavEvent=r;const o=this.config.isKeyBackward(r),i=this.findNextNavNode({event:r,isBackward:o});if(!i)return;yo(r)&&r.preventDefault(),this.tryFocus(i)}}),ge(this,"handleEscapeKey",r=>{aS(r)&&xo(this.config.escapeDeactivates,r)!==!1&&(r.preventDefault(),this.deactivate())}),ge(this,"_mutationObserver"),ge(this,"setupMutationObserver",()=>{const r=this.doc.defaultView||window;this._mutationObserver=new r.MutationObserver(o=>{o.some(s=>Array.from(s.removedNodes).some(l=>l===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode())})}),ge(this,"updateObservedNodes",()=>{var r;(r=this._mutationObserver)==null||r.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(o=>{var i;(i=this._mutationObserver)==null||i.observe(o,{subtree:!0,childList:!0})})}),ge(this,"getInitialFocusNode",()=>{let r=this.getNodeForOption("initialFocus",{hasFallback:!0});if(r===!1)return!1;if(r===void 0||r&&!Jt(r))if(this.findContainerIndex(this.doc.activeElement)>=0)r=this.doc.activeElement;else{const o=this.state.tabbableGroups[0];r=o&&o.firstTabbableNode||this.getNodeForOption("fallbackFocus")}else r===null&&(r=this.getNodeForOption("fallbackFocus"));if(!r)throw new Error("Your focus-trap needs to have at least one focusable element");return r.isConnected||(r=this.getNodeForOption("fallbackFocus")),r}),ge(this,"tryFocus",r=>{if(r!==!1&&r!==Pu(this.doc)){if(!r||!r.focus){this.tryFocus(this.getInitialFocusNode());return}r.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=r,lS(r)&&r.select()}}),ge(this,"deactivate",r=>{if(!this.state.active)return this;const o={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...r};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),bh.deactivateTrap(this.trapStack,this);const i=this.getOption(o,"onDeactivate"),s=this.getOption(o,"onPostDeactivate"),a=this.getOption(o,"checkCanReturnFocus"),l=this.getOption(o,"returnFocus","returnFocusOnDeactivate");i==null||i();const c=()=>{yh(()=>{if(l){const u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(u)}s==null||s()})};if(l&&a){const u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return a(u).then(c,c),this}return c(),this}),ge(this,"pause",r=>{if(this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onPause"),i=this.getOption(r,"onPostPause");return this.state.paused=!0,o==null||o(),this.removeListeners(),this.updateObservedNodes(),i==null||i(),this}),ge(this,"unpause",r=>{if(!this.state.paused||!this.state.active)return this;const o=this.getOption(r,"onUnpause"),i=this.getOption(r,"onPostUnpause");return this.state.paused=!1,o==null||o(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i==null||i(),this}),ge(this,"updateContainerElements",r=>(this.state.containers=Array.isArray(r)?r.filter(Boolean):[r].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),ge(this,"getReturnFocusNode",r=>{const o=this.getNodeForOption("setReturnFocus",{params:[r]});return o||(o===!1?!1:r)}),ge(this,"getOption",(r,o,i)=>r&&r[o]!==void 0?r[o]:this.config[i||o]),ge(this,"getNodeForOption",(r,{hasFallback:o=!1,params:i=[]}={})=>{let s=this.config[r];if(typeof s=="function"&&(s=s(...i)),s===!0&&(s=void 0),!s){if(s===void 0||s===!1)return s;throw new Error(`\`${r}\` was specified but was not a node, or did not return a node`)}let a=s;if(typeof s=="string"){try{a=this.doc.querySelector(s)}catch(l){throw new Error(`\`${r}\` appears to be an invalid selector; error="${l.message}"`)}if(!a&&!o)throw new Error(`\`${r}\` as selector refers to no known node`)}return a}),ge(this,"findNextNavNode",r=>{const{event:o,isBackward:i=!1}=r,s=r.target||nt(o);this.updateTabbableNodes();let a=null;if(this.state.tabbableGroups.length>0){const l=this.findContainerIndex(s,o),c=l>=0?this.state.containerGroups[l]:void 0;if(l<0)i?a=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:a=this.state.tabbableGroups[0].firstTabbableNode;else if(i){let u=this.state.tabbableGroups.findIndex(({firstTabbableNode:d})=>s===d);if(u<0&&((c==null?void 0:c.container)===s||Jt(s)&&!Rn(s)&&!(c!=null&&c.nextTabbableNode(s,!1)))&&(u=l),u>=0){const d=u===0?this.state.tabbableGroups.length-1:u-1,h=this.state.tabbableGroups[d];a=lo(s)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else yo(o)||(a=c==null?void 0:c.nextTabbableNode(s,!1))}else{let u=this.state.tabbableGroups.findIndex(({lastTabbableNode:d})=>s===d);if(u<0&&((c==null?void 0:c.container)===s||Jt(s)&&!Rn(s)&&!(c!=null&&c.nextTabbableNode(s)))&&(u=l),u>=0){const d=u===this.state.tabbableGroups.length-1?0:u+1,h=this.state.tabbableGroups[d];a=lo(s)>=0?h.firstTabbableNode:h.firstDomTabbableNode}else yo(o)||(a=c==null?void 0:c.nextTabbableNode(s))}}else a=this.getNodeForOption("fallbackFocus");return a}),this.trapStack=t.trapStack||iS;const n={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward(r){return yo(r)&&!r.shiftKey},isKeyBackward(r){return yo(r)&&r.shiftKey},...t};this.doc=n.document||qe(Array.isArray(e)?e[0]:e),this.config=n,this.updateContainerElements(e),this.setupMutationObserver()}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const n=typeof(t==null?void 0:t.composedPath)=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:r,tabbableNodes:o})=>r.contains(e)||(n==null?void 0:n.includes(r))||o.find(i=>i===e))}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=Ra(e),n=Au(e),r=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,i=n.find(c=>Rn(c)),s=n.slice().reverse().find(c=>Rn(c)),a=!!t.find(c=>lo(c)>0);function l(c,u=!0){const d=t.indexOf(c);return d<0?u?n.slice(n.indexOf(c)+1).find(h=>Rn(h)):n.slice(0,n.indexOf(c)).reverse().find(h=>Rn(h)):t[d+(u?1:-1)]}return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:a,firstTabbableNode:r,lastTabbableNode:o,firstDomTabbableNode:i,lastDomTabbableNode:s,nextTabbableNode:l}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return bh.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?yh(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(fe(this.doc,"focusin",this.handleFocus,!0),fe(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),fe(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),fe(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),fe(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),fe(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;const t=this.getOption(e,"onActivate"),n=this.getOption(e,"onPostActivate"),r=this.getOption(e,"checkCanFocusTrap");r||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=this.doc.activeElement||null,t==null||t();const o=()=>{r&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),n==null||n()};return r?(r(this.state.containers.concat()).then(o,o),this):(o(),this)}},yo=e=>e.key==="Tab",xo=(e,...t)=>typeof e=="function"?e(...t):e,aS=e=>!e.isComposing&&e.key==="Escape",yh=e=>setTimeout(e,0),lS=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function cS(e,t={}){let n;const r=ee(()=>{const o=typeof e=="function"?e():e;if(o){n=new sS(o,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:o,...t,document:qe(o)});try{n.activate()}catch{}}});return function(){n==null||n.deactivate(),r()}}var al="data-scroll-lock";function uS(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function dS(e){const t=e??document,n=t.defaultView??window,{documentElement:r,body:o}=t;if(o.hasAttribute(al))return;const s=n.innerWidth-r.clientWidth;o.setAttribute(al,"");const a=()=>bx(r,"--scrollbar-width",`${s}px`),l=uS(r),c=()=>_i(o,{overflow:"hidden",[l]:`${s}px`}),u=()=>{const{scrollX:h,scrollY:p,visualViewport:f}=n,g=(f==null?void 0:f.offsetLeft)??0,m=(f==null?void 0:f.offsetTop)??0,b=_i(o,{position:"fixed",overflow:"hidden",top:`${-(p-Math.floor(m))}px`,left:`${-(h-Math.floor(g))}px`,right:"0",[l]:`${s}px`});return()=>{b==null||b(),n.scrollTo({left:h,top:p,behavior:"instant"})}},d=[a(),wi()?u():c()];return()=>{d.forEach(h=>h==null?void 0:h()),o.removeAttribute(al)}}var ll=G("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),An=ll.build(),xh=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`dialog:${e.id}:positioner`},Ch=e=>{var t;return((t=e.ids)==null?void 0:t.backdrop)??`dialog:${e.id}:backdrop`},cl=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`dialog:${e.id}:content`},kh=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`dialog:${e.id}:trigger`},ul=e=>{var t;return((t=e.ids)==null?void 0:t.title)??`dialog:${e.id}:title`},dl=e=>{var t;return((t=e.ids)==null?void 0:t.description)??`dialog:${e.id}:description`},Sh=e=>{var t;return((t=e.ids)==null?void 0:t.closeTrigger)??`dialog:${e.id}:close`},ns=e=>e.getById(cl(e)),hS=e=>e.getById(xh(e)),fS=e=>e.getById(Ch(e)),gS=e=>e.getById(kh(e)),pS=e=>e.getById(ul(e)),mS=e=>e.getById(dl(e)),vS=e=>e.getById(Sh(e));function bS(e,t){const{state:n,send:r,context:o,prop:i,scope:s}=e,a=i("aria-label"),l=n.matches("open");return{open:l,setOpen(c){n.matches("open")!==c&&r({type:c?"OPEN":"CLOSE"})},getTriggerProps(){return t.button({...An.trigger.attrs,dir:i("dir"),id:kh(s),"aria-haspopup":"dialog",type:"button","aria-expanded":l,"data-state":l?"open":"closed","aria-controls":cl(s),onClick(c){c.defaultPrevented||r({type:"TOGGLE"})}})},getBackdropProps(){return t.element({...An.backdrop.attrs,dir:i("dir"),hidden:!l,id:Ch(s),"data-state":l?"open":"closed"})},getPositionerProps(){return t.element({...An.positioner.attrs,dir:i("dir"),id:xh(s),style:{pointerEvents:l?void 0:"none"}})},getContentProps(){const c=o.get("rendered");return t.element({...An.content.attrs,dir:i("dir"),role:i("role"),hidden:!l,id:cl(s),tabIndex:-1,"data-state":l?"open":"closed","aria-modal":!0,"aria-label":a||void 0,"aria-labelledby":a||!c.title?void 0:ul(s),"aria-describedby":c.description?dl(s):void 0})},getTitleProps(){return t.element({...An.title.attrs,dir:i("dir"),id:ul(s)})},getDescriptionProps(){return t.element({...An.description.attrs,dir:i("dir"),id:dl(s)})},getCloseTriggerProps(){return t.button({...An.closeTrigger.attrs,dir:i("dir"),id:Sh(s),type:"button",onClick(c){c.defaultPrevented||(c.stopPropagation(),r({type:"CLOSE"}))}})}}}var yS={props({props:e,scope:t}){const n=e.role==="alertdialog",r=n?()=>vS(t):void 0,o=typeof e.modal=="boolean"?e.modal:!0;return{role:"dialog",modal:o,trapFocus:o,preventScroll:o,closeOnInteractOutside:!n,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r,...e}},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"closed"},context({bindable:e}){return{rendered:e(()=>({defaultValue:{title:!0,description:!0}}))}},watch({track:e,action:t,prop:n}){e([()=>n("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}]}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen"]}]}}},implementations:{guards:{isOpenControlled:({prop:e})=>e("open")!=null},effects:{trackDismissableElement({scope:e,send:t,prop:n}){return Cr(()=>ns(e),{defer:!0,pointerBlocking:n("modal"),exclude:[gS(e)],onInteractOutside(o){var i;(i=n("onInteractOutside"))==null||i(o),n("closeOnInteractOutside")||o.preventDefault()},persistentElements:n("persistentElements"),onFocusOutside:n("onFocusOutside"),onPointerDownOutside:n("onPointerDownOutside"),onRequestDismiss:n("onRequestDismiss"),onEscapeKeyDown(o){var i;(i=n("onEscapeKeyDown"))==null||i(o),n("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return dS(e.getDoc())},trapFocus({scope:e,prop:t}){return t("trapFocus")?cS(()=>ns(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:r=>{var o;return((o=t("finalFocusEl"))==null?void 0:o())??r}}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?oh(()=>[ns(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){ee(()=>{e.set("rendered",{title:!!pS(t),description:!!mS(t)})})},syncZIndex({scope:e}){ee(()=>{const t=ns(e);if(!t)return;const n=ki(t);[hS(e),fS(e)].forEach(o=>{o==null||o.style.setProperty("--z-index",n.zIndex),o==null||o.style.setProperty("--layer-index",n.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!1})},invokeOnOpen({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!0})},toggleVisibility({prop:e,send:t,event:n}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:n})}}}};U()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);const xS=e=>{const t=w.useId(),{getRootNode:n}=Su(),{dir:r}=Px(),o={id:t,getRootNode:n,dir:r,...e},i=Hu(yS,o);return bS(i,Lx)},CS=e=>{const[t,{children:n,...r}]=Bu(e),[o]=zd(t),i=xS(r),s=za(pt({present:i.open},t));return v.jsx(hh,{value:i,children:v.jsx(Dd,{value:o,children:v.jsx(qu,{value:s,children:n})})})},kS=e=>{const[t,{value:n,children:r}]=Bu(e),[o]=zd(t),i=za(pt({present:n.open},t));return v.jsx(hh,{value:n,children:v.jsx(Dd,{value:o,children:v.jsx(qu,{value:i,children:r})})})},wh=w.forwardRef((e,t)=>{const n=on(),r=pt(n.getTitleProps(),e);return v.jsx(en.h2,{...r,ref:t})});wh.displayName="DialogTitle";const Eh=w.forwardRef((e,t)=>{const n=on(),r=Ma(),o=pt({...n.getTriggerProps(),"aria-controls":r.unmounted?void 0:n.getTriggerProps()["aria-controls"]},e);return v.jsx(en.button,{...o,ref:t})});Eh.displayName="DialogTrigger";var Oh=G("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");Oh.build(),U()(["activationMode","autoResize","dir","disabled","finalFocusEl","form","getRootNode","id","ids","invalid","maxLength","name","onEditChange","onFocusOutside","onInteractOutside","onPointerDownOutside","onValueChange","onValueCommit","onValueRevert","placeholder","readOnly","required","selectOnFocus","edit","defaultEdit","submitMode","translations","defaultValue","value"]);const Ih=G("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");Ih.build();var SS=e=>{var c,u;if(!e)return;const t=ki(e),n=Pe(e),r=qe(e),o=()=>{requestAnimationFrame(()=>{e.style.height="auto";let d;t.boxSizing==="content-box"?d=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):d=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&d>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),d=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${d}px`})};e.addEventListener("input",o),(c=e.form)==null||c.addEventListener("reset",o);const i=Object.getPrototypeOf(e),s=Object.getOwnPropertyDescriptor(i,"value");Object.defineProperty(e,"value",{...s,set(){var d;(d=s==null?void 0:s.set)==null||d.apply(this,arguments),o()}});const a=new n.ResizeObserver(()=>{requestAnimationFrame(()=>o())});a.observe(e);const l=new n.MutationObserver(()=>o());return l.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),(u=r.fonts)==null||u.addEventListener("loadingdone",o),()=>{var d,h;e.removeEventListener("input",o),(d=e.form)==null||d.removeEventListener("reset",o),(h=r.fonts)==null||h.removeEventListener("loadingdone",o),a.disconnect(),l.disconnect()}};const Ph=w.forwardRef((e,t)=>{const{autoresize:n,...r}=e,o=w.useRef(null),i=bk(),s=pt(i==null?void 0:i.getTextareaProps(),{style:{resize:n?"none":void 0}},r);return w.useEffect(()=>{if(n)return SS(o.current)},[n]),v.jsx(en.textarea,{...s,ref:Ai(t,o)})});Ph.displayName="FieldTextarea";const Rh=G("fieldset").parts("root","errorText","helperText","legend");Rh.build();var Th=G("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");Th.build(),U()(["accept","acceptedFiles","allowDrop","capture","defaultAcceptedFiles","dir","directory","disabled","getRootNode","id","ids","invalid","locale","maxFiles","maxFileSize","minFileSize","name","onFileAccept","onFileChange","onFileReject","preventDocumentDrop","required","transformFiles","translations","validate"]),U()(["file"]);var Nh=G("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");Nh.build();var wS=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`hover-card:${e.id}:trigger`},ES=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`hover-card:${e.id}:content`},OS=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`hover-card:${e.id}:popper`},hl=e=>e.getById(wS(e)),IS=e=>e.getById(ES(e)),_h=e=>e.getById(OS(e)),{not:rs,and:Ah}=Zt();Ah("isOpenControlled",rs("isPointer")),rs("isPointer"),Ah("isOpenControlled",rs("isPointer")),rs("isPointer"),U()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var Vh=G("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","root","tree");Vh.build();var Lh=e=>new nh(e);Lh.empty=()=>new nh({rootNode:{children:[]}});var PS=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.node)==null?void 0:r.call(n,t))??`tree:${e.id}:node:${t}`},Vn=(e,t)=>{var n;t!=null&&((n=e.getById(PS(e,t)))==null||n.focus())};function RS(e,t,n){const r=e.getDescendantValues(t),o=r.every(i=>n.includes(i));return ur(o?En(n,...r):wn(n,...r))}function os(e,t){const{context:n,prop:r,refs:o}=e;if(!r("loadChildren")){n.set("expandedValue",g=>ur(wn(g,...t)));return}const i=n.get("loadingStatus"),[s,a]=uu(t,g=>i[g]==="loaded");if(s.length>0&&n.set("expandedValue",g=>ur(wn(g,...s))),a.length===0)return;const l=r("collection"),[c,u]=uu(a,g=>{const m=l.findNode(g);return l.getNodeChildren(m).length>0});if(c.length>0&&n.set("expandedValue",g=>ur(wn(g,...c))),u.length===0)return;n.set("loadingStatus",g=>({...g,...u.reduce((m,b)=>({...m,[b]:"loading"}),{})}));const d=u.map(g=>{const m=l.getIndexPath(g),b=l.getValuePath(m),x=l.findNode(g);return{id:g,indexPath:m,valuePath:b,node:x}}),h=o.get("pendingAborts"),p=r("loadChildren");ku(p,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion");const f=d.map(({id:g,indexPath:m,valuePath:b,node:x})=>{const k=h.get(g);k&&(k.abort(),h.delete(g));const C=new AbortController;return h.set(g,C),p({valuePath:b,indexPath:m,node:x,signal:C.signal})});Promise.allSettled(f).then(g=>{var C,S;const m=[],b=[],x=n.get("loadingStatus");let k=r("collection");g.forEach((I,_)=>{const{id:P,indexPath:T,node:N,valuePath:j}=d[_];I.status==="fulfilled"?(x[P]="loaded",m.push(P),k=k.replace(T,{...N,children:I.value})):(h.delete(P),Reflect.deleteProperty(x,P),b.push({node:N,error:I.reason,indexPath:T,valuePath:j}))}),n.set("loadingStatus",x),m.length&&(n.set("expandedValue",I=>ur(wn(I,...m))),(C=r("onLoadChildrenComplete"))==null||C({collection:k})),b.length&&((S=r("onLoadChildrenError"))==null||S({nodes:b}))})}function sn(e){const{prop:t,context:n}=e;return function({indexPath:o}){return t("collection").getValuePath(o).slice(0,-1).some(s=>!n.get("expandedValue").includes(s))}}var{and:Nt}=Zt();Nt("isMultipleSelection","moveFocus"),Nt("isShiftKey","isMultipleSelection"),Nt("isShiftKey","isMultipleSelection"),Nt("isBranchFocused","isBranchExpanded"),Nt("isShiftKey","isMultipleSelection"),Nt("isShiftKey","isMultipleSelection"),Nt("isCtrlKey","isMultipleSelection"),Nt("isShiftKey","isMultipleSelection"),Nt("isCtrlKey","isMultipleSelection"),Nt("isShiftKey","isMultipleSelection"),U()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren"]),U()(["node","indexPath"]);var Fh=G("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");Fh.build(),U()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"]),U()(["item","highlightOnHover"]),U()(["id"]),U()(["htmlFor"]);const TS=Fh.extendWith("empty");var Dh=G("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");Dh.build();var zh=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`menu:${e.id}:trigger`},NS=e=>{var t;return((t=e.ids)==null?void 0:t.contextTrigger)??`menu:${e.id}:ctx-trigger`},Mh=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`menu:${e.id}:content`},_S=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`menu:${e.id}:popper`},fl=(e,t)=>`${e.id}/${t}`,Ln=e=>(e==null?void 0:e.dataset.value)??null,an=e=>e.getById(Mh(e)),$h=e=>e.getById(_S(e)),is=e=>e.getById(zh(e)),AS=(e,t)=>t?e.getById(fl(e,t)):null,gl=e=>e.getById(NS(e)),Co=e=>{const n=`[role^="menuitem"][data-ownedby=${CSS.escape(Mh(e))}]:not([data-disabled])`;return Ni(an(e),n)},VS=e=>io(Co(e)),LS=e=>xa(Co(e)),pl=(e,t)=>t?e.id===t||e.dataset.value===t:!1,FS=(e,t)=>{const n=Co(e),r=n.findIndex(o=>pl(o,t.value));return jb(n,r,{loop:t.loop??t.loopFocus})},DS=(e,t)=>{const n=Co(e),r=n.findIndex(o=>pl(o,t.value));return Wb(n,r,{loop:t.loop??t.loopFocus})},zS=(e,t)=>{const n=Co(e),r=n.find(o=>pl(o,t.value));return co(n,{state:t.typeaheadState,key:t.key,activeId:(r==null?void 0:r.id)??null})},MS=e=>{var t;return!!((t=e==null?void 0:e.getAttribute("role"))!=null&&t.startsWith("menuitem"))&&!!(e!=null&&e.hasAttribute("aria-controls"))},$S="menu:select";function jS(e,t){if(!e)return;const n=Pe(e),r=new n.CustomEvent($S,{detail:{value:t}});e.dispatchEvent(r)}var{not:ut,and:Er,or:BS}=Zt();ut("isSubmenu"),BS("isOpenAutoFocusEvent","isArrowDownEvent"),Er(ut("isTriggerItem"),"isOpenControlled"),ut("isTriggerItem"),Er("isSubmenu","isOpenControlled"),ut("isPointerSuspended"),Er(ut("isPointerSuspended"),ut("isTriggerItem")),Er(ut("isTriggerItemHighlighted"),ut("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),Er(ut("isTriggerItemHighlighted"),ut("isHighlightedItemEditable"),"closeOnSelect"),Er(ut("isTriggerItemHighlighted"),ut("isHighlightedItemEditable"));function jh(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t==null||t.send({type:"CLOSE"})}function WS(e,t){return e?ck(e,t):!1}function HS(e,t,n){const r=Object.keys(e).length>0;if(!t)return null;if(!r)return fl(n,t);for(const o in e){const i=e[o],s=zh(i.scope);if(s===t)return s}return fl(n,t)}U()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","onSelect","open","positioning","typeahead"]),U()(["closeOnSelect","disabled","value","valueText"]),U()(["htmlFor"]),U()(["id"]),U()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);let ml=new Map,vl=!1;try{vl=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let ss=!1;try{ss=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Bh={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class US{format(t){let n="";if(!vl&&this.options.signDisplay!=null?n=qS(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!ss){var r;let{unit:o,unitDisplay:i="short",locale:s}=this.resolvedOptions();if(!o)return n;let a=(r=Bh[o])===null||r===void 0?void 0:r[i];n+=a[s]||a.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n= start date");let r=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(n);return[...r.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!vl&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!ss&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=GS(t,n),this.options=n}}function GS(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!ss){var r;let{unit:s,unitDisplay:a="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=Bh[s])===null||r===void 0)&&r[a]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((s,a)=>s[0]0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let o=e.format(-n),i=e.format(n),s=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(s,"+").replace("!!!",i)}else return e.format(n)}}const KS=new RegExp("^.*\\(.*\\).*$"),XS=["latn","arab","hanidec","deva","beng","fullwide"];class Wh{parse(t){return bl(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,n,r){return bl(this.locale,this.options,t).isValidPartialNumber(t,n,r)}getNumberingSystem(t){return bl(this.locale,this.options,t).options.numberingSystem}constructor(t,n={}){this.locale=t,this.options=n}}const Hh=new Map;function bl(e,t,n){let r=Uh(e,t);if(!e.includes("-nu-")&&!r.isValidPartialNumber(n)){for(let o of XS)if(o!==r.options.numberingSystem){let i=Uh(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(n))return i}}return r}function Uh(e,t){let n=e+(t?Object.entries(t).sort((o,i)=>o[0]-1&&(n=`-${n}`)}let r=n?+n:NaN;if(isNaN(r))return NaN;if(this.options.style==="percent"){var o,i;let s={...this.options,style:"decimal",minimumFractionDigits:Math.min(((o=this.options.minimumFractionDigits)!==null&&o!==void 0?o:0)+2,20),maximumFractionDigits:Math.min(((i=this.options.maximumFractionDigits)!==null&&i!==void 0?i:0)+2,20)};return new Wh(this.locale,s).parse(new US(this.locale,s).format(r))}return this.options.currencySign==="accounting"&&KS.test(t)&&(r=-1*r),r}sanitize(t){return t=t.replace(this.symbols.literals,""),this.symbols.minusSign&&(t=t.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(t=t.replace(",",this.symbols.decimal),t=t.replace("،",this.symbols.decimal)),this.symbols.group&&(t=ko(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(t=ko(t," ",this.symbols.group),t=ko(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,n=-1/0,r=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&n<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&r>0&&(t=t.slice(this.symbols.plusSign.length)),this.symbols.group&&t.startsWith(this.symbols.group)||this.symbols.decimal&&t.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(t=ko(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,n={}){this.locale=t,n.roundingIncrement!==1&&n.roundingIncrement!=null&&(n.maximumFractionDigits==null&&n.minimumFractionDigits==null?(n.maximumFractionDigits=0,n.minimumFractionDigits=0):n.maximumFractionDigits==null?n.maximumFractionDigits=n.minimumFractionDigits:n.minimumFractionDigits==null&&(n.minimumFractionDigits=n.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,n),this.options=this.formatter.resolvedOptions(),this.symbols=JS(t,this.formatter,this.options,n);var r,o;this.options.style==="percent"&&(((r=this.options.minimumFractionDigits)!==null&&r!==void 0?r:0)>18||((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const Gh=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),QS=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function JS(e,t,n,r){var o,i,s,a;let l=new Intl.NumberFormat(e,{...n,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),c=l.formatToParts(-10000.111),u=l.formatToParts(10000.111),d=QS.map(N=>l.formatToParts(N));var h;let p=(h=(o=c.find(N=>N.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&h!==void 0?h:"-",f=(i=u.find(N=>N.type==="plusSign"))===null||i===void 0?void 0:i.value;!f&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(f="+");let m=(s=new Intl.NumberFormat(e,{...n,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(N=>N.type==="decimal"))===null||s===void 0?void 0:s.value,b=(a=c.find(N=>N.type==="group"))===null||a===void 0?void 0:a.value,x=c.filter(N=>!Gh.has(N.type)).map(N=>qh(N.value)),k=d.flatMap(N=>N.filter(j=>!Gh.has(j.type)).map(j=>qh(j.value))),C=[...new Set([...x,...k])].sort((N,j)=>j.length-N.length),S=C.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${C.join("|")}|[\\p{White_Space}]`,"gu"),I=[...new Intl.NumberFormat(n.locale,{useGrouping:!1}).format(9876543210)].reverse(),_=new Map(I.map((N,j)=>[N,j])),P=new RegExp(`[${I.join("")}]`,"g");return{minusSign:p,plusSign:f,decimal:m,group:b,literals:S,numeral:P,index:N=>String(_.get(N))}}function ko(e,t,n){return e.replaceAll?e.replaceAll(t,n):e.split(t).join(n)}function qh(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var Kh=G("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");Kh.build();var ZS=e=>{var t;return((t=e.ids)==null?void 0:t.input)??`number-input:${e.id}:input`},ew=e=>{var t;return((t=e.ids)==null?void 0:t.incrementTrigger)??`number-input:${e.id}:inc`},tw=e=>{var t;return((t=e.ids)==null?void 0:t.decrementTrigger)??`number-input:${e.id}:dec`},Xh=e=>`number-input:${e.id}:cursor`,as=e=>e.getById(ZS(e)),nw=e=>e.getById(ew(e)),rw=e=>e.getById(tw(e)),Yh=e=>e.getDoc().getElementById(Xh(e)),ow=(e,t)=>{let n=null;return t==="increment"&&(n=nw(e)),t==="decrement"&&(n=rw(e)),n},iw=(e,t)=>{if(!Nu())return lw(e,t),()=>{var n;(n=Yh(e))==null||n.remove()}},sw=e=>{const t=e.getDoc(),n=t.documentElement,r=t.body;return r.style.pointerEvents="none",n.style.userSelect="none",n.style.cursor="ew-resize",()=>{r.style.pointerEvents="",n.style.userSelect="",n.style.cursor="",n.style.length||n.removeAttribute("style"),r.style.length||r.removeAttribute("style")}},aw=(e,t)=>{const{point:n,isRtl:r,event:o}=t,i=e.getWin(),s=Sa(o.movementX,i.devicePixelRatio),a=Sa(o.movementY,i.devicePixelRatio);let l=s>0?"increment":s<0?"decrement":null;r&&l==="increment"&&(l="decrement"),r&&l==="decrement"&&(l="increment");const c={x:n.x+s,y:n.y+a},u=i.innerWidth,d=Sa(7.5,i.devicePixelRatio);return c.x=sy(c.x+d,u)-d,{hint:l,point:c}},lw=(e,t)=>{const n=e.getDoc(),r=n.createElement("div");r.className="scrubber--cursor",r.id=Xh(e),Object.assign(r.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:yy,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),r.innerHTML=` -<<<<<<< HEAD - `,n.body.appendChild(r)};function QS(e){if(!(!e||e.ownerDocument.activeElement!==e))try{const{selectionStart:t,selectionEnd:n,value:r}=e,o=r.substring(0,t),i=r.substring(n);return{start:t,end:n,value:r,beforeTxt:o,afterTxt:i}}catch{}}function JS(e,t){if(!(!e||e.ownerDocument.activeElement!==e)){if(!t){e.setSelectionRange(e.value.length,e.value.length);return}try{const{value:n}=e,{beforeTxt:r="",afterTxt:o="",start:i}=t;let s=n.length;if(n.endsWith(o))s=n.length-o.length;else if(n.startsWith(r))s=r.length;else if(i!=null){const a=r[i-1],l=n.indexOf(a,i-1);l!==-1&&(s=l+1)}e.setSelectionRange(s,s)}catch{}}}var ZS=(e,t={})=>new Intl.NumberFormat(e,t),ew=(e,t={})=>new jh(e,t),bl=(e,t)=>{const{prop:n,computed:r}=t;return n("formatOptions")?e===""?Number.NaN:r("parser").parse(e):parseFloat(e)},Fn=(e,t)=>{const{prop:n,computed:r}=t;return Number.isNaN(e)?"":n("formatOptions")?r("formatter").format(e):e.toString()},tw=(e,t)=>{let n=e!==void 0&&!Number.isNaN(e)?e:1;return(t==null?void 0:t.style)==="percent"&&(e===void 0||Number.isNaN(e))&&(n=.01),n},{choose:nw,guards:rw,createMachine:ow}=$u(),{not:Xh,and:Yh}=rw;ow({props({props:e}){const t=tw(e.step,e.formatOptions);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"-?[0-9]*(.[0-9]+)?",defaultValue:"",step:t,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:t,getComputed:n}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(r){var s;const o=n(),i=bl(r,{computed:o,prop:e});(s=e("onValueChange"))==null||s({value:r,valueAsNumber:i})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash(r){return r?`x:${r.x}, y:${r.y}`:""}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",valueAsNumber:({context:e,computed:t,prop:n})=>bl(e.get("value"),{computed:t,prop:n}),formattedValue:({computed:e,prop:t})=>Fn(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>Kb(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>qb(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!Xb(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>e.get("value")==="",isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>{var n,r;return(r=(n=e("translations")).valueText)==null?void 0:r.call(n,t.get("value"))},formatter:Mu(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>ZS(e,t)),parser:Mu(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>ew(e,t))},watch({track:e,action:t,context:n,computed:r,prop:o}){e([()=>n.get("value"),()=>o("locale")],()=>{t(["syncInputElement"])}),e([()=>r("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>n.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:Yh("clampValueOnBlur",Xh("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:Xh("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:nw([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:Yh("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isDecrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>e.pointerType==="touch"},effects:{waitForChangeDelay({send:e}){const t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){const t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl({context:e,scope:t}){const n=ss(t);return Oa(n,{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){const n=e.get("scrubberCursorPoint");return qS(t,n)},preventTextSelection({scope:e}){return KS(e)},trackButtonDisabled({context:e,scope:t,send:n}){const r=e.get("hint"),o=GS(t,r);return Oi(o,{attributes:["disabled"],callback(){n({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:n}){const r=ss(e);if(!r||!e.isActiveElement(r)||!n("allowMouseWheel"))return;function o(i){i.preventDefault();const s=Math.sign(i.deltaY)*-1;s===1?t({type:"VALUE.INCREMENT"}):s===-1&&t({type:"VALUE.DECREMENT"})}return fe(r,"wheel",o,{passive:!1})},activatePointerLock({scope:e}){if(!Nu())return Gy(e.getDoc())},trackMousemove({scope:e,send:t,context:n,computed:r}){const o=e.getDoc();function i(a){const l=n.get("scrubberCursorPoint"),c=r("isRtl"),u=XS(e,{point:l,isRtl:c,event:a});u.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:u.hint,point:u.point})}function s(){t({type:"SCRUBBER.POINTER_UP"})}return vi(fe(o,"mousemove",i,!1),fe(o,"mouseup",s,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const n=ss(e);e.isActiveElement(n)||ee(()=>n==null?void 0:n.focus({preventScroll:!0}))},increment({context:e,event:t,prop:n,computed:r}){let o=Zb(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(o=Ge(o,n("min"),n("max"))),e.set("value",Fn(o,{computed:r,prop:n}))},decrement({context:e,event:t,prop:n,computed:r}){let o=ey(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(o=Ge(o,n("min"),n("max"))),e.set("value",Fn(o,{computed:r,prop:n}))},setClampedValue({context:e,prop:t,computed:n}){const r=Ge(n("valueAsNumber"),t("min"),t("max"));e.set("value",Fn(r,{computed:n,prop:t}))},setRawValue({context:e,event:t,prop:n,computed:r}){let o=bl(t.value,{computed:r,prop:n});n("allowOverflow")||(o=Ge(o,n("min"),n("max"))),e.set("value",Fn(o,{computed:r,prop:n}))},setValue({context:e,event:t}){var r;const n=((r=t.target)==null?void 0:r.value)??t.value;e.set("value",n)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:n}){const r=Fn(t("max"),{computed:n,prop:t});e.set("value",r)},decrementToMin({context:e,prop:t,computed:n}){const r=Fn(t("min"),{computed:n,prop:t});e.set("value",r)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){var n;(n=t("onFocusChange"))==null||n({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){var n;(n=t("onFocusChange"))==null||n({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:n}){var o;if(n.type==="INPUT.CHANGE")return;const r=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";(o=t("onValueInvalid"))==null||o({reason:r,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:n,scope:r}){const o=t.type.endsWith("CHANGE")?e.get("value"):n("formattedValue"),i=ss(r),s=QS(i);ee(()=>{Ei(i,o),JS(i,s)})},setFormattedValue({context:e,computed:t}){e.set("value",t("formattedValue"))},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){const n=Kh(t),r=e.get("scrubberCursorPoint");!n||!r||(n.style.transform=`translate3d(${r.x}px, ${r.y}px, 0px)`)}}}}),U()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var Qh=G("pinInput").parts("root","label","input","control");Qh.build(),U()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);var Jh=G("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");Jh.build(),U()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);const iw=e=>{var l;const{children:t,disabled:n}=e,[r,o]=w.useState((l=e.container)==null?void 0:l.current),i=w.useSyncExternalStore(aw,()=>!1,()=>!0),{getRootNode:s}=Su();if(w.useEffect(()=>{o(()=>{var c;return(c=e.container)==null?void 0:c.current})},[e.container]),i||n)return v.jsx(v.Fragment,{children:t});const a=r??sw(s);return v.jsx(v.Fragment,{children:w.Children.map(t,c=>ne.createPortal(c,a))})},sw=e=>{const t=e==null?void 0:e(),n=t.getRootNode();return fr(n)?n:qe(t).body},aw=()=>()=>{};var yl=G("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");yl.build(),U()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var Zh=G("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");Zh.build(),U()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var xl=G("radio-group").parts("root","label","item","itemText","itemControl","indicator");xl.build(),U()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]),U()(["value","disabled","invalid"]);var ef=G("rating-group").parts("root","label","item","control");ef.build(),U()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]),U()(["index"]);var tf=G("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");tf.build(),U()(["dir","getRootNode","ids","id"]);const nf=xl.rename("segment-group");nf.build();var rf=G("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");rf.build();var of=e=>new Yi(e);of.empty=()=>new Yi({items:[]});var lw=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`select:${e.id}:content`},cw=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`select:${e.id}:trigger`},uw=e=>{var t;return((t=e.ids)==null?void 0:t.clearTrigger)??`select:${e.id}:clear-trigger`},dw=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.item)==null?void 0:r.call(n,t))??`select:${e.id}:option:${t}`},hw=e=>{var t;return((t=e.ids)==null?void 0:t.hiddenSelect)??`select:${e.id}:select`},fw=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`select:${e.id}:positioner`},Cl=e=>e.getById(hw(e)),So=e=>e.getById(lw(e)),as=e=>e.getById(cw(e)),gw=e=>e.getById(uw(e)),sf=e=>e.getById(fw(e)),kl=(e,t)=>t==null?null:e.getById(dw(e,t)),{and:wo,not:Dn,or:pw}=Zt();pw("isTriggerArrowDownEvent","isTriggerEnterEvent"),wo(Dn("multiple"),"hasSelectedItems"),Dn("multiple"),wo(Dn("multiple"),"hasSelectedItems"),Dn("multiple"),Dn("multiple"),Dn("multiple"),Dn("multiple"),wo("closeOnSelect","isOpenControlled"),wo("hasHighlightedItem","loop","isLastItemHighlighted"),wo("hasHighlightedItem","loop","isFirstItemHighlighted");function af(e){var n;const t=e.restoreFocus??((n=e.previousEvent)==null?void 0:n.restoreFocus);return t==null||!!t}U()(["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","dir","disabled","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]),U()(["item","persistFocus"]),U()(["id"]),U()(["htmlFor"]);var lf=G("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");lf.build(),U()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"]),U()(["index","name"]);var cf=G("switch").parts("root","label","control","thumb");cf.build(),U()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);var mw=G("toast").parts("group","root","title","description","actionTrigger","closeTrigger");mw.build();var vw=(e,t)=>({...t,...yi(e)});function bw(e){const t=vw(e,{placement:"bottom",overlap:!1,max:24,gap:16,offsets:"1rem",hotkey:["altKey","KeyT"],removeDelay:200,pauseOnPageIdle:!0});let n=[],r=[],o=new Set,i=[];const s=R=>(n.push(R),()=>{const L=n.indexOf(R);n.splice(L,1)}),a=R=>(n.forEach(L=>L(R)),R),l=R=>{if(r.length>=t.max){i.push(R);return}a(R),r.unshift(R)},c=()=>{for(;i.length>0&&r.length{const L=R.id??`toast:${jb()}`,Y=r.find(z=>z.id===L);return o.has(L)&&o.delete(L),Y?r=r.map(z=>z.id===L?a({...z,...R,id:L}):z):l({id:L,duration:t.duration,removeDelay:t.removeDelay,type:"info",...R,stacked:!t.overlap,gap:t.gap}),L},d=R=>(o.add(R),R?(n.forEach(L=>L({id:R,dismiss:!0})),r=r.filter(L=>L.id!==R),c()):(r.forEach(L=>{n.forEach(Y=>Y({id:L.id,dismiss:!0}))}),r=[],i=[]),R);return{attrs:t,subscribe:s,create:u,update:(R,L)=>u({id:R,...L}),remove:d,dismiss:R=>{R!=null?r=r.map(L=>L.id===R?a({...L,message:"DISMISS"}):L):r=r.map(L=>a({...L,message:"DISMISS"}))},error:R=>u({...R,type:"error"}),success:R=>u({...R,type:"success"}),info:R=>u({...R,type:"info"}),warning:R=>u({...R,type:"warning"}),loading:R=>u({...R,type:"loading"}),getVisibleToasts:()=>r.filter(R=>!o.has(R.id)),getCount:()=>r.length,promise:(R,L,Y={})=>{if(!L||!L.loading){ao("[zag-js > toast] toaster.promise() requires at least a 'loading' option to be specified");return}const z=u({...Y,...L.loading,promise:R,type:"loading"});let V=!0,B;const K=mi(R).then(async H=>{if(B=["resolve",H],yw(H)&&!H.ok){V=!1;const X=mi(L.error,`HTTP Error! status: ${H.status}`);u({...Y,...X,id:z,type:"error"})}else if(L.success!==void 0){V=!1;const X=mi(L.success,H);u({...Y,...X,id:z,type:"success"})}}).catch(async H=>{if(B=["reject",H],L.error!==void 0){V=!1;const X=mi(L.error,H);u({...Y,...X,id:z,type:"error"})}}).finally(()=>{var H;V&&d(z),(H=L.finally)==null||H.call(L)});return{id:z,unwrap:()=>new Promise((H,X)=>K.then(()=>B[0]==="reject"?X(B[1]):H(B[1])).catch(X))}},pause:R=>{R!=null?r=r.map(L=>L.id===R?a({...L,message:"PAUSE"}):L):r=r.map(L=>a({...L,message:"PAUSE"}))},resume:R=>{R!=null?r=r.map(L=>L.id===R?a({...L,message:"RESUME"}):L):r=r.map(L=>a({...L,message:"RESUME"}))},isVisible:R=>!o.has(R)&&!!r.find(L=>L.id===R),isDismissed:R=>o.has(R),expand:()=>{r=r.map(R=>a({...R,stacked:!0}))},collapse:()=>{r=r.map(R=>a({...R,stacked:!1}))}}}var yw=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number";const xw=e=>bw(e);var uf=G("tooltip").parts("trigger","arrow","arrowTip","positioner","content");uf.build();var Cw=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`tooltip:${e.id}:trigger`},kw=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`tooltip:${e.id}:popper`},Sl=e=>e.getById(Cw(e)),df=e=>e.getById(kw(e)),zn=ty({id:null}),{and:Sw,not:hf}=Zt();Sw("noVisibleTooltip",hf("hasPointerMoveOpened")),hf("hasPointerMoveOpened"),U()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);function ff(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}const ww=(e,t)=>{var l;if(!e||typeof e!="string")return{invalid:!0,value:e};const[n,r]=e.split("/");if(!n||!r||n==="currentBg")return{invalid:!0,value:n};const o=t(`colors.${n}`),i=(l=t.raw(`opacity.${r}`))==null?void 0:l.value;if(!i&&isNaN(Number(r)))return{invalid:!0,value:n};const s=i?Number(i)*100+"%":`${r}%`,a=o??n;return{invalid:!1,color:a,value:`color-mix(in srgb, ${a} ${s}, transparent)`}},le=e=>(t,n)=>{const r=n.utils.colorMix(t);if(r.invalid)return{[e]:t};const o="--mix-"+e;return{[o]:r.value,[e]:`var(${o}, ${r.color})`}};function wl(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>wl(n));const t=Object.create(Object.getPrototypeOf(e));for(const n of Object.keys(e))t[n]=wl(e[n]);return t}function El(e,t){if(t==null)return e;for(const n of Object.keys(t))if(!(t[n]===void 0||n==="__proto__"))if(!Ue(e[n])&&Ue(t[n]))Object.assign(e,{[n]:t[n]});else if(e[n]&&Ue(t[n]))El(e[n],t[n]);else if(Array.isArray(t[n])&&Array.isArray(e[n])){let r=0;for(;re!=null;function _t(e,t,n={}){const{stop:r,getKey:o}=n;function i(s,a=[]){if(Ue(s)||Array.isArray(s)){const l={};for(const[c,u]of Object.entries(s)){const d=(o==null?void 0:o(c,u))??c,h=[...a,d];if(r!=null&&r(s,h))return t(s,a);const p=i(u,h);Ol(p)&&(l[d]=p)}return l}return t(s,a)}return i(e)}function gf(e,t){return Array.isArray(e)?e.map(n=>Ol(n)?t(n):n):Ue(e)?_t(e,n=>t(n)):Ol(e)?t(e):e}const ls=["value","type","description"],Ew=e=>e&&typeof e=="object"&&!Array.isArray(e),pf=(...e)=>{var n;const t=Or({},...e.map(wl));return(n=t.theme)!=null&&n.tokens&&_t(t.theme.tokens,r=>{const s=Object.keys(r).filter(l=>!ls.includes(l)).length>0,a=ls.some(l=>r[l]!=null);return s&&a&&(r.DEFAULT||(r.DEFAULT={}),ls.forEach(l=>{var c;r[l]!=null&&((c=r.DEFAULT)[l]||(c[l]=r[l]),delete r[l])})),r},{stop(r){return Ew(r)&&Object.keys(r).some(o=>ls.includes(o)||o!==o.toLowerCase()&&o!==o.toUpperCase())}}),t},Ow=e=>e,Se=e=>e,q=e=>e,Iw=e=>e,Pw=e=>e,Ir=e=>e,Rw=e=>e,Tw=e=>e,Nw=e=>e;function mf(){const e=t=>t;return new Proxy(e,{get(){return e}})}const Ce=mf(),Il=mf(),Pl=e=>e,_w=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function Aw(e){return`${e}`.replace(_w,t=>`\\${t}`)}const Vw=/[A-Z]/g;function Lw(e){return e.replace(Vw,t=>`-${t.toLowerCase()}`)}function vf(e,t={}){const{fallback:n="",prefix:r=""}=t,o=Lw(["-",r,Aw(e)].filter(Boolean).join("-"));return{var:o,ref:`var(${o}${n?`, ${n}`:""})`}}const Fw=e=>/^var\(--.+\)$/.test(e),Te=(e,t)=>t!=null?`${e}(${t})`:t,Mn=e=>{if(Fw(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},bf=e=>({values:["outside","inside","mixed","none"],transform(t,{token:n}){const r=n("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":r,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":r,[e]:{outline:"none"}}}[t]??{}}}),Dw=le("borderColor"),Bt=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),zw=Ow({hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invalid:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&:is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"}),Pr=vf("bg-currentcolor"),yf=e=>e===Pr.ref||e==="currentBg",ce=e=>({...e("colors"),currentBg:Pr}),Mw=Pl({conditions:zw,utilities:{background:{values:ce,shorthand:["bg"],transform(e,t){if(yf(t.raw))return{background:Pr.ref};const n=le("background")(e,t);return{...n,[Pr.var]:n==null?void 0:n.background}}},backgroundColor:{values:ce,shorthand:["bgColor"],transform(e,t){if(yf(t.raw))return{backgroundColor:Pr.ref};const n=le("backgroundColor")(e,t);return{...n,[Pr.var]:n==null?void 0:n.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}}},backgroundGradient:{shorthand:["bgGradient"],values(e){return{...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}},transform(e){return{"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e}}},gradientFrom:{values:ce,transform:le("--gradient-from")},gradientTo:{values:ce,transform:le("--gradient-to")},gradientVia:{values:ce,transform(e,t){return{...le("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"}}},backgroundImage:{values(e){return{...e("gradients"),...e("assets")}},shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:ce,transform:le("borderColor")},borderTopColor:{values:ce,transform:le("borderTopColor")},borderBlockStartColor:{values:ce,transform:le("borderBlockStartColor")},borderBottomColor:{values:ce,transform:le("borderBottomColor")},borderBlockEndColor:{values:ce,transform:le("borderBlockEndColor")},borderLeftColor:{values:ce,transform:le("borderLeftColor")},borderInlineStartColor:{values:ce,shorthand:["borderStartColor"],transform:le("borderInlineStartColor")},borderRightColor:{values:ce,transform:le("borderRightColor")},borderInlineEndColor:{values:ce,shorthand:["borderEndColor"],transform:le("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:ce,transform:le("color")},fill:{values:ce,transform:le("fill")},stroke:{values:ce,transform:le("stroke")},accentColor:{values:ce,transform:le("accentColor")},divideX:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}}}},divideY:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}}}},divideColor:{values:ce,transform(e,t){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":Dw(e,t)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:ce,transform:le("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform(e){return e!=="auto"?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}}},blur:{values:"blurs",transform:e=>({"--blur":Te("blur",e)})},brightness:{transform:e=>({"--brightness":Te("brightness",e)})},contrast:{transform:e=>({"--contrast":Te("contrast",e)})},grayscale:{transform:e=>({"--grayscale":Te("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":Te("hue-rotate",Mn(e))})},invert:{transform:e=>({"--invert":Te("invert",e)})},saturate:{transform:e=>({"--saturate":Te("saturate",e)})},sepia:{transform:e=>({"--sepia":Te("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":Te("drop-shadow",e)})},backdropFilter:{transform(e){return e!=="auto"?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":Te("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":Te("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":Te("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":Te("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":Te("hue-rotate",Mn(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":Te("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":Te("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":Te("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":Te("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:ce,transform:le("outlineColor")},focusRing:bf("&:is(:focus, [data-focus])"),focusVisibleRing:bf("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:ce,transform:le("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:n})=>({[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:n}){return{[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`]:{display:"none"}}}},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:ce,transform:le("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform(e){return{"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"}}},ringColor:{values:ce,transform:le("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:ce,transform:le("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:ce,transform:le("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return e==="auto"&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),e==="auto-gpu"&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":Mn(e)})},skewY:{transform:e=>({"--skew-y":Mn(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform(e){return e!=="auto"?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}}},spaceXReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}}}},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}}}},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform(e){return e!=="auto"?{rotate:Mn(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":Mn(e)}}},rotateY:{transform(e){return{"--rotate-y":Mn(e)}}},translate:{transform(e){return e!=="auto"?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return Bt("all");case"position":return Bt("left, right, top, bottom, inset-inline, inset-block");case"colors":return Bt("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return Bt("opacity");case"shadow":return Bt("box-shadow");case"transform":return Bt("transform");case"size":return Bt("width, height");case"backgrounds":return Bt("background, background-color, background-image, background-position");case"common":return Bt("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform(e){return e===!0?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}}},lineClamp:{transform(e){return e==="none"?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}}},borderSpacing:{values:e=>({...e("spacing"),auto:"var(--border-spacing-x, 0) var(--border-spacing-y, 0)"})},borderSpacingX:{values:"spacing",transform(e){return{"--border-spacing-x":e}}},borderSpacingY:{values:"spacing",transform(e){return{"--border-spacing-y":e}}},srOnly:{values:{type:"boolean"},transform(e){return $w[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:ce,transform:le("caretColor")},cursor:{values:"cursor"}}}),$w={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var jw="",Bw=jw.split(","),Ww="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical",Hw=Ww.split(",").concat(Bw),Uw=new Map(Hw.map(e=>[e,!0]));function Gw(e){const t=Object.create(null);return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var qw=/&|@/,Kw=Gw(e=>Uw.has(e)||e.startsWith("--")||qw.test(e));function xf(e,t){const n={};return _t(e,(r,o)=>{r&&(n[o.join(".")]=r.value)},{stop:t}),n}var Xw=Eo;Eo.default=Eo,Eo.stable=Sf,Eo.stableStringify=Sf;var cs="[...]",Cf="[Circular]",$n=[],jn=[];function kf(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Eo(e,t,n,r){typeof r>"u"&&(r=kf()),Rl(e,"",0,[],void 0,0,r);var o;try{jn.length===0?o=JSON.stringify(e,t,n):o=JSON.stringify(e,wf(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;$n.length!==0;){var i=$n.pop();i.length===4?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return o}function Rr(e,t,n,r){var o=Object.getOwnPropertyDescriptor(r,n);o.get!==void 0?o.configurable?(Object.defineProperty(r,n,{value:e}),$n.push([r,n,t,o])):jn.push([t,n,e]):(r[n]=e,$n.push([r,n,t]))}function Rl(e,t,n,r,o,i,s){i+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;as.depthLimit){Rr(cs,e,t,o);return}if(typeof s.edgesLimit<"u"&&n+1>s.edgesLimit){Rr(cs,e,t,o);return}if(r.push(e),Array.isArray(e))for(a=0;at?1:0}function Sf(e,t,n,r){typeof r>"u"&&(r=kf());var o=Tl(e,"",0,[],void 0,0,r)||e,i;try{jn.length===0?i=JSON.stringify(o,t,n):i=JSON.stringify(o,wf(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;$n.length!==0;){var s=$n.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function Tl(e,t,n,r,o,i,s){i+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;as.depthLimit){Rr(cs,e,t,o);return}if(typeof s.edgesLimit<"u"&&n+1>s.edgesLimit){Rr(cs,e,t,o);return}if(r.push(e),Array.isArray(e))for(a=0;a0)for(var r=0;r{const t=Object.create(null);function n(...r){const o=r.map(i=>Qw(i)).join("|");return t[o]===void 0&&(t[o]=e(...r)),t[o]}return n},Ef=16,us="px",Nl="em",Oo="rem";function Of(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),n=new RegExp(`${us}|${Nl}|${Oo}`),r=e.match(new RegExp(`${t.source}(${n.source})`));return r==null?void 0:r[1]}function If(e=""){if(typeof e=="number")return`${e}px`;const t=Of(e);if(!t||t===us)return e;if(t===Nl||t===Oo)return`${parseFloat(e)*Ef}${us}`}function Pf(e=""){const t=Of(e);if(!t||t===Oo)return e;if(t===Nl)return`${parseFloat(e)}${Oo}`;if(t===us)return`${parseFloat(e)/Ef}${Oo}`}const Jw=e=>e.charAt(0).toUpperCase()+e.slice(1);function Zw(e){const t=eE(e),n=Object.fromEntries(t);function r(h){return n[h]}function o(h){return Tr(r(h))}function i(){const h=Object.keys(n),p=tE(h),f=h.flatMap(g=>{const m=r(g),b=[`${g}Down`,Tr({max:ds(m.min)})],x=[g,Tr({min:m.min})],k=[`${g}Only`,o(g)];return[x,k,b]}).filter(([,g])=>g!=="").concat(p.map(([g,m])=>{const b=r(g),x=r(m);return[`${g}To${Jw(m)}`,Tr({min:b.min,max:ds(x.min)})]}));return Object.fromEntries(f)}function s(){const h=i();return Object.fromEntries(Object.entries(h))}const a=s(),l=h=>a[h];function c(){return["base",...Object.keys(n)]}function u(h){return Tr({min:r(h).min})}function d(h){return Tr({max:ds(r(h).min)})}return{values:Object.values(n),only:o,keys:c,conditions:a,getCondition:l,up:u,down:d}}function ds(e){const t=parseFloat(If(e)??"")-.04;return Pf(`${t}px`)}function eE(e){return Object.entries(e).sort(([,n],[,r])=>parseInt(n,10){var a;let s=null;return o<=i.length-1&&(s=(a=i[o+1])==null?void 0:a[1]),s!=null&&(s=ds(s)),[n,{name:n,min:Pf(r),max:s}]})}function tE(e){const t=[];return e.forEach((n,r)=>{let o=r;o++;let i=e[o];for(;i;)t.push([n,i]),o++,i=e[o]}),t}function Tr({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const nE=(e,t)=>Object.fromEntries(Object.entries(e).map(([n,r])=>t(n,r))),rE=e=>{const{breakpoints:t,conditions:n={}}=e,r=nE(n,(u,d)=>[`_${u}`,d]),o=Object.assign({},r,t.conditions);function i(){return Object.keys(o)}function s(u){return i().includes(u)||/^@|&|&$/.test(u)||u.startsWith("_")}function a(u){return u.filter(d=>d!=="base").sort((d,h)=>{const p=s(d),f=s(h);return p&&!f?1:!p&&f?-1:0})}function l(u){return u.startsWith("@breakpoint")?t.getCondition(u.replace("@breakpoint ","")):u}function c(u){return Reflect.get(o,u)||u}return{keys:i,sort:a,has:s,resolve:c,breakpoints:t.keys(),expandAtRule:l}},Rf=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.| + `,n.body.appendChild(r)};function cw(e){if(!(!e||e.ownerDocument.activeElement!==e))try{const{selectionStart:t,selectionEnd:n,value:r}=e,o=r.substring(0,t),i=r.substring(n);return{start:t,end:n,value:r,beforeTxt:o,afterTxt:i}}catch{}}function uw(e,t){if(!(!e||e.ownerDocument.activeElement!==e)){if(!t){e.setSelectionRange(e.value.length,e.value.length);return}try{const{value:n}=e,{beforeTxt:r="",afterTxt:o="",start:i}=t;let s=n.length;if(n.endsWith(o))s=n.length-o.length;else if(n.startsWith(r))s=r.length;else if(i!=null){const a=r[i-1],l=n.indexOf(a,i-1);l!==-1&&(s=l+1)}e.setSelectionRange(s,s)}catch{}}}var dw=(e,t={})=>new Intl.NumberFormat(e,t),hw=(e,t={})=>new Wh(e,t),yl=(e,t)=>{const{prop:n,computed:r}=t;return n("formatOptions")?e===""?Number.NaN:r("parser").parse(e):parseFloat(e)},Fn=(e,t)=>{const{prop:n,computed:r}=t;return Number.isNaN(e)?"":n("formatOptions")?r("formatter").format(e):e.toString()},fw=(e,t)=>{let n=e!==void 0&&!Number.isNaN(e)?e:1;return(t==null?void 0:t.style)==="percent"&&(e===void 0||Number.isNaN(e))&&(n=.01),n},{choose:gw,guards:pw,createMachine:mw}=$u(),{not:Qh,and:Jh}=pw;mw({props({props:e}){const t=fw(e.step,e.formatOptions);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"-?[0-9]*(.[0-9]+)?",defaultValue:"",step:t,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:t,getComputed:n}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(r){var s;const o=n(),i=yl(r,{computed:o,prop:e});(s=e("onValueChange"))==null||s({value:r,valueAsNumber:i})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash(r){return r?`x:${r.x}, y:${r.y}`:""}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",valueAsNumber:({context:e,computed:t,prop:n})=>yl(e.get("value"),{computed:t,prop:n}),formattedValue:({computed:e,prop:t})=>Fn(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>ly(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>ay(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!cy(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>e.get("value")==="",isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>{var n,r;return(r=(n=e("translations")).valueText)==null?void 0:r.call(n,t.get("value"))},formatter:Mu(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>dw(e,t)),parser:Mu(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>hw(e,t))},watch({track:e,action:t,context:n,computed:r,prop:o}){e([()=>n.get("value"),()=>o("locale")],()=>{t(["syncInputElement"])}),e([()=>r("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>n.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:Jh("clampValueOnBlur",Qh("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:Qh("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:gw([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:Jh("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isDecrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>e.pointerType==="touch"},effects:{waitForChangeDelay({send:e}){const t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){const t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl({context:e,scope:t}){const n=as(t);return Ia(n,{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){const n=e.get("scrubberCursorPoint");return iw(t,n)},preventTextSelection({scope:e}){return sw(e)},trackButtonDisabled({context:e,scope:t,send:n}){const r=e.get("hint"),o=ow(t,r);return Ii(o,{attributes:["disabled"],callback(){n({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:n}){const r=as(e);if(!r||!e.isActiveElement(r)||!n("allowMouseWheel"))return;function o(i){i.preventDefault();const s=Math.sign(i.deltaY)*-1;s===1?t({type:"VALUE.INCREMENT"}):s===-1&&t({type:"VALUE.DECREMENT"})}return fe(r,"wheel",o,{passive:!1})},activatePointerLock({scope:e}){if(!Nu())return sx(e.getDoc())},trackMousemove({scope:e,send:t,context:n,computed:r}){const o=e.getDoc();function i(a){const l=n.get("scrubberCursorPoint"),c=r("isRtl"),u=aw(e,{point:l,isRtl:c,event:a});u.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:u.hint,point:u.point})}function s(){t({type:"SCRUBBER.POINTER_UP"})}return bi(fe(o,"mousemove",i,!1),fe(o,"mouseup",s,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const n=as(e);e.isActiveElement(n)||ee(()=>n==null?void 0:n.focus({preventScroll:!0}))},increment({context:e,event:t,prop:n,computed:r}){let o=fy(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(o=Ge(o,n("min"),n("max"))),e.set("value",Fn(o,{computed:r,prop:n}))},decrement({context:e,event:t,prop:n,computed:r}){let o=gy(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(o=Ge(o,n("min"),n("max"))),e.set("value",Fn(o,{computed:r,prop:n}))},setClampedValue({context:e,prop:t,computed:n}){const r=Ge(n("valueAsNumber"),t("min"),t("max"));e.set("value",Fn(r,{computed:n,prop:t}))},setRawValue({context:e,event:t,prop:n,computed:r}){let o=yl(t.value,{computed:r,prop:n});n("allowOverflow")||(o=Ge(o,n("min"),n("max"))),e.set("value",Fn(o,{computed:r,prop:n}))},setValue({context:e,event:t}){var r;const n=((r=t.target)==null?void 0:r.value)??t.value;e.set("value",n)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:n}){const r=Fn(t("max"),{computed:n,prop:t});e.set("value",r)},decrementToMin({context:e,prop:t,computed:n}){const r=Fn(t("min"),{computed:n,prop:t});e.set("value",r)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){var n;(n=t("onFocusChange"))==null||n({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){var n;(n=t("onFocusChange"))==null||n({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:n}){var o;if(n.type==="INPUT.CHANGE")return;const r=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";(o=t("onValueInvalid"))==null||o({reason:r,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:n,scope:r}){const o=t.type.endsWith("CHANGE")?e.get("value"):n("formattedValue"),i=as(r),s=cw(i);ee(()=>{Oi(i,o),uw(i,s)})},setFormattedValue({context:e,computed:t}){e.set("value",t("formattedValue"))},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){const n=Yh(t),r=e.get("scrubberCursorPoint");!n||!r||(n.style.transform=`translate3d(${r.x}px, ${r.y}px, 0px)`)}}}}),U()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var Zh=G("pinInput").parts("root","label","input","control");Zh.build(),U()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);var ef=G("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");ef.build(),U()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);const tf=e=>{var l;const{children:t,disabled:n}=e,[r,o]=w.useState((l=e.container)==null?void 0:l.current),i=w.useSyncExternalStore(bw,()=>!1,()=>!0),{getRootNode:s}=Su();if(w.useEffect(()=>{o(()=>{var c;return(c=e.container)==null?void 0:c.current})},[e.container]),i||n)return v.jsx(v.Fragment,{children:t});const a=r??vw(s);return v.jsx(v.Fragment,{children:w.Children.map(t,c=>ne.createPortal(c,a))})},vw=e=>{const t=e==null?void 0:e(),n=t.getRootNode();return fr(n)?n:qe(t).body},bw=()=>()=>{};var xl=G("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");xl.build(),U()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var nf=G("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");nf.build(),U()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var Cl=G("radio-group").parts("root","label","item","itemText","itemControl","indicator");Cl.build(),U()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]),U()(["value","disabled","invalid"]);var rf=G("rating-group").parts("root","label","item","control");rf.build(),U()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]),U()(["index"]);var of=G("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");of.build(),U()(["dir","getRootNode","ids","id"]);const sf=Cl.rename("segment-group");sf.build();var af=G("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");af.build();var lf=e=>new Qi(e);lf.empty=()=>new Qi({items:[]});var yw=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`select:${e.id}:content`},xw=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`select:${e.id}:trigger`},Cw=e=>{var t;return((t=e.ids)==null?void 0:t.clearTrigger)??`select:${e.id}:clear-trigger`},kw=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.item)==null?void 0:r.call(n,t))??`select:${e.id}:option:${t}`},Sw=e=>{var t;return((t=e.ids)==null?void 0:t.hiddenSelect)??`select:${e.id}:select`},ww=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`select:${e.id}:positioner`},kl=e=>e.getById(Sw(e)),So=e=>e.getById(yw(e)),ls=e=>e.getById(xw(e)),Ew=e=>e.getById(Cw(e)),cf=e=>e.getById(ww(e)),Sl=(e,t)=>t==null?null:e.getById(kw(e,t)),{and:wo,not:Dn,or:Ow}=Zt();Ow("isTriggerArrowDownEvent","isTriggerEnterEvent"),wo(Dn("multiple"),"hasSelectedItems"),Dn("multiple"),wo(Dn("multiple"),"hasSelectedItems"),Dn("multiple"),Dn("multiple"),Dn("multiple"),Dn("multiple"),wo("closeOnSelect","isOpenControlled"),wo("hasHighlightedItem","loop","isLastItemHighlighted"),wo("hasHighlightedItem","loop","isFirstItemHighlighted");function uf(e){var n;const t=e.restoreFocus??((n=e.previousEvent)==null?void 0:n.restoreFocus);return t==null||!!t}U()(["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","dir","disabled","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]),U()(["item","persistFocus"]),U()(["id"]),U()(["htmlFor"]);var df=G("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");df.build(),U()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"]),U()(["index","name"]);var hf=G("switch").parts("root","label","control","thumb");hf.build(),U()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);var Iw=G("toast").parts("group","root","title","description","actionTrigger","closeTrigger");Iw.build();var Pw=(e,t)=>({...t,...xi(e)});function Rw(e){const t=Pw(e,{placement:"bottom",overlap:!1,max:24,gap:16,offsets:"1rem",hotkey:["altKey","KeyT"],removeDelay:200,pauseOnPageIdle:!0});let n=[],r=[],o=new Set,i=[];const s=R=>(n.push(R),()=>{const L=n.indexOf(R);n.splice(L,1)}),a=R=>(n.forEach(L=>L(R)),R),l=R=>{if(r.length>=t.max){i.push(R);return}a(R),r.unshift(R)},c=()=>{for(;i.length>0&&r.length{const L=R.id??`toast:${ty()}`,Y=r.find(z=>z.id===L);return o.has(L)&&o.delete(L),Y?r=r.map(z=>z.id===L?a({...z,...R,id:L}):z):l({id:L,duration:t.duration,removeDelay:t.removeDelay,type:"info",...R,stacked:!t.overlap,gap:t.gap}),L},d=R=>(o.add(R),R?(n.forEach(L=>L({id:R,dismiss:!0})),r=r.filter(L=>L.id!==R),c()):(r.forEach(L=>{n.forEach(Y=>Y({id:L.id,dismiss:!0}))}),r=[],i=[]),R);return{attrs:t,subscribe:s,create:u,update:(R,L)=>u({id:R,...L}),remove:d,dismiss:R=>{R!=null?r=r.map(L=>L.id===R?a({...L,message:"DISMISS"}):L):r=r.map(L=>a({...L,message:"DISMISS"}))},error:R=>u({...R,type:"error"}),success:R=>u({...R,type:"success"}),info:R=>u({...R,type:"info"}),warning:R=>u({...R,type:"warning"}),loading:R=>u({...R,type:"loading"}),getVisibleToasts:()=>r.filter(R=>!o.has(R.id)),getCount:()=>r.length,promise:(R,L,Y={})=>{if(!L||!L.loading){ao("[zag-js > toast] toaster.promise() requires at least a 'loading' option to be specified");return}const z=u({...Y,...L.loading,promise:R,type:"loading"});let V=!0,B;const K=vi(R).then(async H=>{if(B=["resolve",H],Tw(H)&&!H.ok){V=!1;const X=vi(L.error,`HTTP Error! status: ${H.status}`);u({...Y,...X,id:z,type:"error"})}else if(L.success!==void 0){V=!1;const X=vi(L.success,H);u({...Y,...X,id:z,type:"success"})}}).catch(async H=>{if(B=["reject",H],L.error!==void 0){V=!1;const X=vi(L.error,H);u({...Y,...X,id:z,type:"error"})}}).finally(()=>{var H;V&&d(z),(H=L.finally)==null||H.call(L)});return{id:z,unwrap:()=>new Promise((H,X)=>K.then(()=>B[0]==="reject"?X(B[1]):H(B[1])).catch(X))}},pause:R=>{R!=null?r=r.map(L=>L.id===R?a({...L,message:"PAUSE"}):L):r=r.map(L=>a({...L,message:"PAUSE"}))},resume:R=>{R!=null?r=r.map(L=>L.id===R?a({...L,message:"RESUME"}):L):r=r.map(L=>a({...L,message:"RESUME"}))},isVisible:R=>!o.has(R)&&!!r.find(L=>L.id===R),isDismissed:R=>o.has(R),expand:()=>{r=r.map(R=>a({...R,stacked:!0}))},collapse:()=>{r=r.map(R=>a({...R,stacked:!1}))}}}var Tw=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number";const Nw=e=>Rw(e);var ff=G("tooltip").parts("trigger","arrow","arrowTip","positioner","content");ff.build();var _w=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`tooltip:${e.id}:trigger`},Aw=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`tooltip:${e.id}:popper`},wl=e=>e.getById(_w(e)),gf=e=>e.getById(Aw(e)),zn=py({id:null}),{and:Vw,not:pf}=Zt();Vw("noVisibleTooltip",pf("hasPointerMoveOpened")),pf("hasPointerMoveOpened"),U()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);function mf(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}const Lw=(e,t)=>{var l;if(!e||typeof e!="string")return{invalid:!0,value:e};const[n,r]=e.split("/");if(!n||!r||n==="currentBg")return{invalid:!0,value:n};const o=t(`colors.${n}`),i=(l=t.raw(`opacity.${r}`))==null?void 0:l.value;if(!i&&isNaN(Number(r)))return{invalid:!0,value:n};const s=i?Number(i)*100+"%":`${r}%`,a=o??n;return{invalid:!1,color:a,value:`color-mix(in srgb, ${a} ${s}, transparent)`}},le=e=>(t,n)=>{const r=n.utils.colorMix(t);if(r.invalid)return{[e]:t};const o="--mix-"+e;return{[o]:r.value,[e]:`var(${o}, ${r.color})`}};function El(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>El(n));const t=Object.create(Object.getPrototypeOf(e));for(const n of Object.keys(e))t[n]=El(e[n]);return t}function Ol(e,t){if(t==null)return e;for(const n of Object.keys(t))if(!(t[n]===void 0||n==="__proto__"))if(!Ue(e[n])&&Ue(t[n]))Object.assign(e,{[n]:t[n]});else if(e[n]&&Ue(t[n]))Ol(e[n],t[n]);else if(Array.isArray(t[n])&&Array.isArray(e[n])){let r=0;for(;re!=null;function _t(e,t,n={}){const{stop:r,getKey:o}=n;function i(s,a=[]){if(Ue(s)||Array.isArray(s)){const l={};for(const[c,u]of Object.entries(s)){const d=(o==null?void 0:o(c,u))??c,h=[...a,d];if(r!=null&&r(s,h))return t(s,a);const p=i(u,h);Il(p)&&(l[d]=p)}return l}return t(s,a)}return i(e)}function vf(e,t){return Array.isArray(e)?e.map(n=>Il(n)?t(n):n):Ue(e)?_t(e,n=>t(n)):Il(e)?t(e):e}const cs=["value","type","description"],Fw=e=>e&&typeof e=="object"&&!Array.isArray(e),bf=(...e)=>{var n;const t=Or({},...e.map(El));return(n=t.theme)!=null&&n.tokens&&_t(t.theme.tokens,r=>{const s=Object.keys(r).filter(l=>!cs.includes(l)).length>0,a=cs.some(l=>r[l]!=null);return s&&a&&(r.DEFAULT||(r.DEFAULT={}),cs.forEach(l=>{var c;r[l]!=null&&((c=r.DEFAULT)[l]||(c[l]=r[l]),delete r[l])})),r},{stop(r){return Fw(r)&&Object.keys(r).some(o=>cs.includes(o)||o!==o.toLowerCase()&&o!==o.toUpperCase())}}),t},Dw=e=>e,Se=e=>e,q=e=>e,zw=e=>e,Mw=e=>e,Ir=e=>e,$w=e=>e,jw=e=>e,Bw=e=>e;function yf(){const e=t=>t;return new Proxy(e,{get(){return e}})}const Ce=yf(),Pl=yf(),Rl=e=>e,Ww=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function Hw(e){return`${e}`.replace(Ww,t=>`\\${t}`)}const Uw=/[A-Z]/g;function Gw(e){return e.replace(Uw,t=>`-${t.toLowerCase()}`)}function xf(e,t={}){const{fallback:n="",prefix:r=""}=t,o=Gw(["-",r,Hw(e)].filter(Boolean).join("-"));return{var:o,ref:`var(${o}${n?`, ${n}`:""})`}}const qw=e=>/^var\(--.+\)$/.test(e),Te=(e,t)=>t!=null?`${e}(${t})`:t,Mn=e=>{if(qw(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},Cf=e=>({values:["outside","inside","mixed","none"],transform(t,{token:n}){const r=n("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":r,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":r,[e]:{outline:"none"}}}[t]??{}}}),Kw=le("borderColor"),Bt=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),Xw=Dw({hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invalid:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&:is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"}),Pr=xf("bg-currentcolor"),kf=e=>e===Pr.ref||e==="currentBg",ce=e=>({...e("colors"),currentBg:Pr}),Yw=Rl({conditions:Xw,utilities:{background:{values:ce,shorthand:["bg"],transform(e,t){if(kf(t.raw))return{background:Pr.ref};const n=le("background")(e,t);return{...n,[Pr.var]:n==null?void 0:n.background}}},backgroundColor:{values:ce,shorthand:["bgColor"],transform(e,t){if(kf(t.raw))return{backgroundColor:Pr.ref};const n=le("backgroundColor")(e,t);return{...n,[Pr.var]:n==null?void 0:n.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}}},backgroundGradient:{shorthand:["bgGradient"],values(e){return{...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}},transform(e){return{"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e}}},gradientFrom:{values:ce,transform:le("--gradient-from")},gradientTo:{values:ce,transform:le("--gradient-to")},gradientVia:{values:ce,transform(e,t){return{...le("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"}}},backgroundImage:{values(e){return{...e("gradients"),...e("assets")}},shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:ce,transform:le("borderColor")},borderTopColor:{values:ce,transform:le("borderTopColor")},borderBlockStartColor:{values:ce,transform:le("borderBlockStartColor")},borderBottomColor:{values:ce,transform:le("borderBottomColor")},borderBlockEndColor:{values:ce,transform:le("borderBlockEndColor")},borderLeftColor:{values:ce,transform:le("borderLeftColor")},borderInlineStartColor:{values:ce,shorthand:["borderStartColor"],transform:le("borderInlineStartColor")},borderRightColor:{values:ce,transform:le("borderRightColor")},borderInlineEndColor:{values:ce,shorthand:["borderEndColor"],transform:le("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:ce,transform:le("color")},fill:{values:ce,transform:le("fill")},stroke:{values:ce,transform:le("stroke")},accentColor:{values:ce,transform:le("accentColor")},divideX:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}}}},divideY:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}}}},divideColor:{values:ce,transform(e,t){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":Kw(e,t)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:ce,transform:le("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform(e){return e!=="auto"?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}}},blur:{values:"blurs",transform:e=>({"--blur":Te("blur",e)})},brightness:{transform:e=>({"--brightness":Te("brightness",e)})},contrast:{transform:e=>({"--contrast":Te("contrast",e)})},grayscale:{transform:e=>({"--grayscale":Te("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":Te("hue-rotate",Mn(e))})},invert:{transform:e=>({"--invert":Te("invert",e)})},saturate:{transform:e=>({"--saturate":Te("saturate",e)})},sepia:{transform:e=>({"--sepia":Te("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":Te("drop-shadow",e)})},backdropFilter:{transform(e){return e!=="auto"?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":Te("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":Te("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":Te("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":Te("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":Te("hue-rotate",Mn(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":Te("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":Te("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":Te("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":Te("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:ce,transform:le("outlineColor")},focusRing:Cf("&:is(:focus, [data-focus])"),focusVisibleRing:Cf("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:ce,transform:le("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:n})=>({[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:n}){return{[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`]:{display:"none"}}}},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:ce,transform:le("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform(e){return{"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"}}},ringColor:{values:ce,transform:le("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:ce,transform:le("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:ce,transform:le("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return e==="auto"&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),e==="auto-gpu"&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":Mn(e)})},skewY:{transform:e=>({"--skew-y":Mn(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform(e){return e!=="auto"?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}}},spaceXReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}}}},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}}}},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform(e){return e!=="auto"?{rotate:Mn(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":Mn(e)}}},rotateY:{transform(e){return{"--rotate-y":Mn(e)}}},translate:{transform(e){return e!=="auto"?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return Bt("all");case"position":return Bt("left, right, top, bottom, inset-inline, inset-block");case"colors":return Bt("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return Bt("opacity");case"shadow":return Bt("box-shadow");case"transform":return Bt("transform");case"size":return Bt("width, height");case"backgrounds":return Bt("background, background-color, background-image, background-position");case"common":return Bt("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform(e){return e===!0?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}}},lineClamp:{transform(e){return e==="none"?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}}},borderSpacing:{values:e=>({...e("spacing"),auto:"var(--border-spacing-x, 0) var(--border-spacing-y, 0)"})},borderSpacingX:{values:"spacing",transform(e){return{"--border-spacing-x":e}}},borderSpacingY:{values:"spacing",transform(e){return{"--border-spacing-y":e}}},srOnly:{values:{type:"boolean"},transform(e){return Qw[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:ce,transform:le("caretColor")},cursor:{values:"cursor"}}}),Qw={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var Jw="",Zw=Jw.split(","),eE="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical",tE=eE.split(",").concat(Zw),nE=new Map(tE.map(e=>[e,!0]));function rE(e){const t=Object.create(null);return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var oE=/&|@/,iE=rE(e=>nE.has(e)||e.startsWith("--")||oE.test(e));function Sf(e,t){const n={};return _t(e,(r,o)=>{r&&(n[o.join(".")]=r.value)},{stop:t}),n}var sE=Eo;Eo.default=Eo,Eo.stable=Of,Eo.stableStringify=Of;var us="[...]",wf="[Circular]",$n=[],jn=[];function Ef(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Eo(e,t,n,r){typeof r>"u"&&(r=Ef()),Tl(e,"",0,[],void 0,0,r);var o;try{jn.length===0?o=JSON.stringify(e,t,n):o=JSON.stringify(e,If(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;$n.length!==0;){var i=$n.pop();i.length===4?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return o}function Rr(e,t,n,r){var o=Object.getOwnPropertyDescriptor(r,n);o.get!==void 0?o.configurable?(Object.defineProperty(r,n,{value:e}),$n.push([r,n,t,o])):jn.push([t,n,e]):(r[n]=e,$n.push([r,n,t]))}function Tl(e,t,n,r,o,i,s){i+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;as.depthLimit){Rr(us,e,t,o);return}if(typeof s.edgesLimit<"u"&&n+1>s.edgesLimit){Rr(us,e,t,o);return}if(r.push(e),Array.isArray(e))for(a=0;at?1:0}function Of(e,t,n,r){typeof r>"u"&&(r=Ef());var o=Nl(e,"",0,[],void 0,0,r)||e,i;try{jn.length===0?i=JSON.stringify(o,t,n):i=JSON.stringify(o,If(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;$n.length!==0;){var s=$n.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function Nl(e,t,n,r,o,i,s){i+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;as.depthLimit){Rr(us,e,t,o);return}if(typeof s.edgesLimit<"u"&&n+1>s.edgesLimit){Rr(us,e,t,o);return}if(r.push(e),Array.isArray(e))for(a=0;a0)for(var r=0;r{const t=Object.create(null);function n(...r){const o=r.map(i=>lE(i)).join("|");return t[o]===void 0&&(t[o]=e(...r)),t[o]}return n},Pf=16,ds="px",_l="em",Oo="rem";function Rf(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),n=new RegExp(`${ds}|${_l}|${Oo}`),r=e.match(new RegExp(`${t.source}(${n.source})`));return r==null?void 0:r[1]}function Tf(e=""){if(typeof e=="number")return`${e}px`;const t=Rf(e);if(!t||t===ds)return e;if(t===_l||t===Oo)return`${parseFloat(e)*Pf}${ds}`}function Nf(e=""){const t=Rf(e);if(!t||t===Oo)return e;if(t===_l)return`${parseFloat(e)}${Oo}`;if(t===ds)return`${parseFloat(e)/Pf}${Oo}`}const cE=e=>e.charAt(0).toUpperCase()+e.slice(1);function uE(e){const t=dE(e),n=Object.fromEntries(t);function r(h){return n[h]}function o(h){return Tr(r(h))}function i(){const h=Object.keys(n),p=hE(h),f=h.flatMap(g=>{const m=r(g),b=[`${g}Down`,Tr({max:hs(m.min)})],x=[g,Tr({min:m.min})],k=[`${g}Only`,o(g)];return[x,k,b]}).filter(([,g])=>g!=="").concat(p.map(([g,m])=>{const b=r(g),x=r(m);return[`${g}To${cE(m)}`,Tr({min:b.min,max:hs(x.min)})]}));return Object.fromEntries(f)}function s(){const h=i();return Object.fromEntries(Object.entries(h))}const a=s(),l=h=>a[h];function c(){return["base",...Object.keys(n)]}function u(h){return Tr({min:r(h).min})}function d(h){return Tr({max:hs(r(h).min)})}return{values:Object.values(n),only:o,keys:c,conditions:a,getCondition:l,up:u,down:d}}function hs(e){const t=parseFloat(Tf(e)??"")-.04;return Nf(`${t}px`)}function dE(e){return Object.entries(e).sort(([,n],[,r])=>parseInt(n,10){var a;let s=null;return o<=i.length-1&&(s=(a=i[o+1])==null?void 0:a[1]),s!=null&&(s=hs(s)),[n,{name:n,min:Nf(r),max:s}]})}function hE(e){const t=[];return e.forEach((n,r)=>{let o=r;o++;let i=e[o];for(;i;)t.push([n,i]),o++,i=e[o]}),t}function Tr({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const fE=(e,t)=>Object.fromEntries(Object.entries(e).map(([n,r])=>t(n,r))),gE=e=>{const{breakpoints:t,conditions:n={}}=e,r=fE(n,(u,d)=>[`_${u}`,d]),o=Object.assign({},r,t.conditions);function i(){return Object.keys(o)}function s(u){return i().includes(u)||/^@|&|&$/.test(u)||u.startsWith("_")}function a(u){return u.filter(d=>d!=="base").sort((d,h)=>{const p=s(d),f=s(h);return p&&!f?1:!p&&f?-1:0})}function l(u){return u.startsWith("@breakpoint")?t.getCondition(u.replace("@breakpoint ","")):u}function c(u){return Reflect.get(o,u)||u}return{keys:i,sort:a,has:s,resolve:c,breakpoints:t.keys(),expandAtRule:l}},_f=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.| )+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.| -)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),oE=Rf("width"),iE=Rf("height"),Tf=e=>({isMin:Ff(e.minMax,e.maxMin,e.min),isMax:Ff(e.maxMin,e.minMax,e.max)}),{isMin:_l,isMax:Nf}=Tf(oE),{isMin:Al,isMax:_f}=Tf(iE),Af=/print/i,Vf=/^print$/i,sE=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,aE=/(\d)/,Io=Number.MAX_VALUE,lE={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function Lf(e){const t=sE.exec(e)||(_l(e)||Al(e)?aE.exec(e):null);if(!t)return Io;if(t[0]==="0")return 0;const n=parseFloat(t[1]),r=t[2];return n*(lE[r]||1)}function Ff(e,t,n){return r=>e.test(r)||!t.test(r)&&n.test(r)}function cE(e,t){const n=Af.test(e),r=Vf.test(e),o=Af.test(t),i=Vf.test(t);return n&&o?!r&&i?1:r&&!i?-1:e.localeCompare(t):n?1:o?-1:null}const uE=yt((e,t)=>{const n=cE(e,t);if(n!==null)return n;const r=_l(e)||Al(e),o=Nf(e)||_f(e),i=_l(t)||Al(t),s=Nf(t)||_f(t);if(r&&s)return-1;if(o&&i)return 1;const a=Lf(e),l=Lf(t);return a===Io&&l===Io?e.localeCompare(t):a===Io?1:l===Io?-1:a!==l?a>l?o?-1:1:o?1:-1:e.localeCompare(t)});function Df(e){return e.sort(([t],[n])=>uE(t,n))}function zf(e){const t=[],n=[],r={};for(const[s,a]of Object.entries(e))s.startsWith("@media")?t.push([s,a]):s.startsWith("@container")?n.push([s,a]):Ue(a)?r[s]=zf(a):r[s]=a;const o=Df(t),i=Df(n);return{...r,...Object.fromEntries(o),...Object.fromEntries(i)}}const Mf=/\s*!(important)?/i,dE=e=>Ot(e)?Mf.test(e):!1,hE=e=>Ot(e)?e.replace(Mf,"").trim():e;function $f(e){const{transform:t,conditions:n,normalize:r}=e,o=pE(e);return yt(function(...s){const a=o(...s),l=r(a),c=Object.create(null);return _t(l,(u,d)=>{const h=dE(u);if(u==null)return;const[p,...f]=n.sort(d).map(n.resolve);h&&(u=hE(u));let g=t(p,u)??Object.create(null);g=_t(g,m=>Ot(m)&&h?`${m} !important`:m,{getKey:m=>n.expandAtRule(m)}),fE(c,f.flat(),g)}),zf(c)})}function fE(e,t,n){let r=e;for(const o of t)o&&(r[o]||(r[o]=Object.create(null)),r=r[o]);Or(r,n)}function gE(...e){return e.filter(t=>Ue(t)&&Object.keys(oo(t)).length>0)}function pE(e){function t(n){const r=gE(...n);return r.length===1?r:r.map(o=>e.normalize(o))}return yt(function(...r){return Or({},...t(r))})}const jf=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function mE(e){const{css:t,conditions:n,normalize:r,layers:o}=e;function i(a={}){const{base:l,variants:c,defaultVariants:u,compoundVariants:d}=jf(a),h=$f({conditions:n,normalize:r,transform(x,k){var C;return(C=c[x])==null?void 0:C[k]}}),p=(x={})=>{const k=r({...u,...oo(x)});let C={...l};Or(C,h(k));const S=s(d,k);return o.wrap("recipes",t(C,S))},f=Object.keys(c),g=x=>{const k=ff(x,["recipe"]),[C,S]=lr(k,f);return f.includes("colorPalette")||(C.colorPalette=x.colorPalette||u.colorPalette),f.includes("orientation")&&(S.orientation=x.orientation),[C,S]},m=Object.fromEntries(Object.entries(c).map(([x,k])=>[x,Object.keys(k)]));return Object.assign(x=>t(p(x)),{className:a.className,__cva__:!0,variantMap:m,variantKeys:f,raw:p,config:a,splitVariantProps:g,merge(x){return i(vE(e)(this,x))}})}function s(a,l){let c={};return a.forEach(u=>{Object.entries(u).every(([h,p])=>h==="css"?!0:(Array.isArray(p)?p:[p]).some(g=>l[h]===g))&&(c=t(c,u.css))}),c}return i}function vE(e){const{css:t}=e;return function(r,o){const i=jf(o.config),s=su(r.variantKeys,Object.keys(o.variants)),a=t(r.base,i.base),l=Object.fromEntries(s.map(h=>[h,t(r.config.variants[h],i.variants[h])])),c=Or(r.config.defaultVariants,i.defaultVariants),u=[...r.compoundVariants,...i.compoundVariants];return{className:at(r.className,o.className),base:a,variants:l,defaultVariants:c,compoundVariants:u}}}const bE={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},Bf={reset:0,base:1,tokens:2,recipes:3};function yE(e){const t=e.layers??bE,r=Object.values(t).sort((o,i)=>Bf[o]-Bf[i]);return{names:r,atRule:`@layer ${r.join(", ")};`,wrap(o,i){return e.disableLayers?i:{[`@layer ${t[o]}`]:i}}}}function xE(e){const{utility:t,normalize:n}=e,{hasShorthand:r,resolveShorthand:o}=t;return function(i){return _t(i,n,{stop:s=>Array.isArray(s),getKey:r?o:void 0})}}function CE(e){const{preflight:t}=e;if(!t)return{};const{scope:n="",level:r="parent"}=Ue(t)?t:{};let o="";n&&r==="parent"?o=`${n} `:n&&r==="element"&&(o=`&${n}`);const i={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},s={[n||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if(r==="element"){const a=Object.entries(i).reduce((l,[c,u])=>(l[c]={[o]:u},l),{});Object.assign(s,a)}else o?s[o]=i:Object.assign(s,i);return s}function kE(e){const{conditions:t,isValidProperty:n}=e;return function(o){return _t(o,i=>i,{getKey:(i,s)=>Ue(s)&&!t.has(i)&&!n(i)?SE(i).map(a=>"&"+a).join(", "):i})}}function SE(e){const t=[];let n=0,r="",o=!1;for(let i=0;i{const t=o=>{var i;return{base:((i=e.base)==null?void 0:i[o])??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?EE(e.compoundVariants,o):[]}},r=(e.slots??[]).map(o=>[o,t(o)]);for(const[o,i]of Object.entries(e.variants??{}))for(const[s,a]of Object.entries(i))r.forEach(([l,c])=>{var u;(u=c.variants)[o]??(u[o]={}),c.variants[o][s]=a[l]??{}});return Object.fromEntries(r)},EE=(e,t)=>e.filter(n=>n.css[t]).map(n=>({...n,css:n.css[t]}));function OE(e){const{cva:t}=e;return function(r={}){const o=Object.entries(wE(r)).map(([d,h])=>[d,t(h)]);function i(d){const h=o.map(([p,f])=>[p,f(d)]);return Object.fromEntries(h)}const s=r.variants??{},a=Object.keys(s);function l(d){var g;const h=ff(d,["recipe"]),[p,f]=lr(h,a);return a.includes("colorPalette")||(p.colorPalette=d.colorPalette||((g=r.defaultVariants)==null?void 0:g.colorPalette)),a.includes("orientation")&&(f.orientation=d.orientation),[p,f]}const c=Object.fromEntries(Object.entries(s).map(([d,h])=>[d,Object.keys(h)]));let u={};return r.className&&(u=Object.fromEntries(r.slots.map(d=>[d,`${r.className}__${d}`]))),Object.assign(i,{variantMap:c,variantKeys:a,splitVariantProps:l,classNameMap:u})}}const IE=()=>e=>Array.from(new Set(e)),PE=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,RE=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},Wf=e=>(e+"").replace(PE,RE),Hf=(e,t)=>{let n="",r=0,o="char",i="",s="";const a=[];for(;r{let t=0;const n=["("];for(;t{n instanceof Map?t[r]=Object.fromEntries(n):t[r]=n}),t}const Gf=/({([^}]*)})/g,NE=/[{}]/g,_E=/\w+\.\w+/,qf=e=>{if(!Ot(e))return[];const t=e.match(Gf);return t?t.map(n=>n.replace(NE,"")).map(n=>n.trim()):[]},AE=e=>Gf.test(e);function Kf(e){var n,r,o;if(!((n=e.extensions)!=null&&n.references))return((o=(r=e.extensions)==null?void 0:r.cssVar)==null?void 0:o.ref)??e.value;const t=e.extensions.references??{};return e.value=Object.keys(t).reduce((i,s)=>{const a=t[s];if(a.extensions.conditions)return i;const l=Kf(a);return i.replace(`{${s}}`,l)},e.value),delete e.extensions.references,e.value}function Xf(e){return Ue(e)&&e.reference?e.reference:String(e)}const hs=(e,...t)=>t.map(Xf).join(` ${e} `).replace(/calc/g,""),Yf=(...e)=>`calc(${hs("+",...e)})`,Qf=(...e)=>`calc(${hs("-",...e)})`,Vl=(...e)=>`calc(${hs("*",...e)})`,Jf=(...e)=>`calc(${hs("/",...e)})`,Zf=e=>{const t=Xf(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Vl(t,-1)},Nr=Object.assign(e=>({add:(...t)=>Nr(Yf(e,...t)),subtract:(...t)=>Nr(Qf(e,...t)),multiply:(...t)=>Nr(Vl(e,...t)),divide:(...t)=>Nr(Jf(e,...t)),negate:()=>Nr(Zf(e)),toString:()=>e.toString()}),{add:Yf,subtract:Qf,multiply:Vl,divide:Jf,negate:Zf}),VE={enforce:"pre",transform(e){const{prefix:t,allTokens:n,formatCssVar:r,formatTokenName:o,registerToken:i}=e;n.filter(({extensions:a})=>a.category==="spacing").forEach(a=>{const l=a.path.slice(),c=r(l,t);if(Ot(a.value)&&a.value==="0rem")return;const u=structuredClone(a);Object.assign(u.extensions,{negative:!0,prop:`-${a.extensions.prop}`,originalPath:l}),u.value=Nr.negate(c.ref);const d=u.path[u.path.length-1];d!=null&&(u.path[u.path.length-1]=`-${d}`),u.path&&(u.name=o(u.path)),i(u)})}},LE=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),FE=[VE,{enforce:"post",transform(e){const{allTokens:t,registerToken:n,formatTokenName:r}=e,o=t.filter(({extensions:a})=>a.category==="colors"),i=new Map,s=new Map;o.forEach(a=>{const{colorPalette:l}=a.extensions;l&&(l.keys.forEach(c=>{i.set(r(c),c)}),l.roots.forEach(c=>{var h;const u=r(c),d=s.get(u)||[];if(d.push(a),s.set(u,d),a.extensions.default&&c.length===1){const p=(h=l.keys[0])==null?void 0:h.filter(Boolean);if(!p.length)return;const f=c.concat(p);i.set(r(f),[])}}))}),i.forEach(a=>{const l=["colors","colorPalette",...a].filter(Boolean),c=r(l),u=r(l.slice(1));n({name:c,value:c,originalValue:c,path:l,extensions:{condition:"base",originalPath:l,category:"colors",prop:u,virtual:!0}},"pre")})}},{enforce:"post",transform(e){e.allTokens.filter(n=>LE.has(n.extensions.category)&&!n.extensions.negative).forEach(n=>{Object.assign(n.extensions,{pixelValue:If(n.value)})})}},{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}}],DE=[{type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:n,formatCssVar:r}=t,{negative:o,originalPath:i}=e.extensions,s=o?i:e.path;return{cssVar:r(s.filter(Boolean),n)}}},{enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:n,formatCssVar:r}=t,o=qf(e.value);return o.length&&o.forEach(i=>{const s=r(i.split("."),n);e.value=e.value.replace(`{${s.ref}}`,s)}),e.value}},{type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match(e){return e.extensions.category==="colors"&&!e.extensions.virtual},transform(e,t){let n=e.path.slice();if(n.pop(),n.shift(),n.length===0){const a=[...e.path];a.shift(),n=a}if(n.length===0)return{};const r=n.reduce((a,l,c,u)=>{const d=u.slice(0,c+1);return a.push(d),a},[]),o=n[0],i=t.formatTokenName(n),s=e.path.slice(e.path.indexOf(o)+1).reduce((a,l,c,u)=>(a.push(u.slice(c)),a),[]);return s.length===0&&s.push([""]),{colorPalette:{value:i,roots:r,keys:s}}}}],eg=e=>Ue(e)&&Object.prototype.hasOwnProperty.call(e,"value");function zE(e){return e?{breakpoints:gf(e,t=>({value:t})),sizes:Object.fromEntries(Object.entries(e).map(([t,n])=>[`breakpoint-${t}`,{value:n}]))}:{breakpoints:{},sizes:{}}}function ME(e){const{prefix:t="",tokens:n={},semanticTokens:r={},breakpoints:o={}}=e,i=D=>D.join("."),s=(D,F)=>vf(D.join("-"),{prefix:F}),a=[],l=new Map,c=new Map,u=new Map,d=new Map,h=new Map,p=new Map,f=new Map,g=new Map,m=[];function b(D,F){a.push(D),l.set(D.name,D),F&&g.forEach(re=>{re.enforce===F&&H(re,D)})}const x=zE(o),k=oo({...n,breakpoints:x.breakpoints,sizes:{...n.sizes,...x.sizes}});function C(){_t(k,(D,F)=>{const re=F.includes("DEFAULT");F=tg(F);const he=F[0],Ee=i(F),De=Ot(D)?{value:D}:D,Kt={value:De.value,originalValue:De.value,name:Ee,path:F,extensions:{condition:"base",originalPath:F,category:he,prop:i(F.slice(1))}};re&&(Kt.extensions.default=!0),b(Kt)},{stop:eg}),_t(r,(D,F)=>{const re=F.includes("DEFAULT");F=ng(tg(F));const he=F[0],Ee=i(F),De=Ot(D.value)?{value:{base:D.value}}:D,Kt={value:De.value.base||"",originalValue:De.value.base||"",name:Ee,path:F,extensions:{originalPath:F,category:he,conditions:De.value,condition:"base",prop:i(F.slice(1))}};re&&(Kt.extensions.default=!0),b(Kt)},{stop:eg})}function S(D){return l.get(D)}function I(D){const{condition:F}=D.extensions;F&&(c.has(F)||c.set(F,new Set),c.get(F).add(D))}function _(D){const{category:F,prop:re}=D.extensions;F&&(f.has(F)||f.set(F,new Map),f.get(F).set(re,D))}function P(D){const{condition:F,negative:re,virtual:he,cssVar:Ee}=D.extensions;re||he||!F||!Ee||(u.has(F)||u.set(F,new Map),u.get(F).set(Ee.var,D.value))}function T(D){const{category:F,prop:re,cssVar:he,negative:Ee}=D.extensions;if(!F)return;p.has(F)||p.set(F,new Map);const De=Ee?D.extensions.conditions?D.originalValue:D.value:he.ref;p.get(F).set(re,De),h.set([F,re].join("."),De)}function N(D){const{colorPalette:F,virtual:re,default:he}=D.extensions;!F||re||F.roots.forEach(Ee=>{var H0;const De=i(Ee);d.has(De)||d.set(De,new Map);const Kt=jE([...D.path],[...Ee]),qs=i(Kt),Qr=S(qs);if(!Qr||!Qr.extensions.cssVar)return;const{var:_N}=Qr.extensions.cssVar;if(d.get(De).set(_N,D.extensions.cssVar.ref),he&&Ee.length===1){const AN=i(["colors","colorPalette"]),U0=S(AN);if(!U0)return;const VN=i(D.path),G0=S(VN);if(!G0)return;const q0=(H0=F.keys[0])==null?void 0:H0.filter(Boolean);if(!q0.length)return;const kc=i(Ee.concat(q0));d.has(kc)||d.set(kc,new Map),d.get(kc).set(U0.extensions.cssVar.var,G0.extensions.cssVar.ref)}})}let j={};function R(){a.forEach(D=>{I(D),_(D),P(D),T(D),N(D)}),j=Uf(p)}const L=(D,F)=>{var Qr;if(!D||typeof D!="string")return{invalid:!0,value:D};const[re,he]=D.split("/");if(!re||!he)return{invalid:!0,value:re};const Ee=F(re),De=(Qr=S(`opacity.${he}`))==null?void 0:Qr.value;if(!De&&isNaN(Number(he)))return{invalid:!0,value:re};const Kt=De?Number(De)*100+"%":`${he}%`,qs=Ee??re;return{invalid:!1,color:qs,value:`color-mix(in srgb, ${qs} ${Kt}, transparent)`}},Y=yt((D,F)=>h.get(D)??F),z=yt(D=>j[D]||null),V=yt(D=>Hf(D,F=>{if(!F)return;if(F.includes("/")){const he=L(F,Ee=>Y(Ee));if(he.invalid)throw new Error("Invalid color mix at "+F+": "+he.value);return he.value}const re=Y(F);return re||(_E.test(F)?Wf(F):F)})),B={prefix:t,allTokens:a,tokenMap:l,registerToken:b,getByName:S,formatTokenName:i,formatCssVar:s,flatMap:h,cssVarMap:u,categoryMap:f,colorPaletteMap:d,getVar:Y,getCategoryValues:z,expandReferenceInValue:V};function K(...D){D.forEach(F=>{g.set(F.name,F)})}function $(...D){m.push(...D)}function H(D,F){if(F.extensions.references||ma(D.match)&&!D.match(F))return;const he=(Ee=>D.transform(Ee,B))(F);switch(!0){case D.type==="extensions":Object.assign(F.extensions,he);break;case D.type==="value":F.value=he;break;default:F[D.type]=he;break}}function X(D){m.forEach(F=>{F.enforce===D&&F.transform(B)})}function de(D){g.forEach(F=>{F.enforce===D&&a.forEach(re=>{H(F,re)})})}function kn(){a.forEach(D=>{const F=$E(D);!F||F.length===0||F.forEach(re=>{b(re)})})}function Go(D){return qf(D).map(re=>S(re)).filter(Boolean)}function Yr(){a.forEach(D=>{if(!AE(D.value))return;const F=Go(D.value);D.extensions.references=F.reduce((re,he)=>(re[he.name]=he,re),{})})}function Cc(){a.forEach(D=>{Kf(D)})}function NN(){X("pre"),de("pre"),kn(),Yr(),Cc(),X("post"),de("post"),R()}return C(),K(...DE),$(...FE),NN(),B}function tg(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function ng(e){return e.filter(t=>t!=="base")}function $E(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,n=[];return _t(t,(r,o)=>{const i=ng(o);if(!i.length)return;const s=structuredClone(e);s.value=r,s.extensions.condition=i.join(":"),n.push(s)}),n}function jE(e,t){const n=e.findIndex((r,o)=>t.every((i,s)=>e[o+s]===i));return n===-1||(e.splice(n,t.length),e.splice(n,0,"colorPalette")),e}IE()(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]);function QN(e){return e}function BE(e){return Object.fromEntries(Object.entries(e).map(([t,n])=>[t,n]))}function WE(e){const t=BE(e.config),n=e.tokens,r=new Map,o=new Map;function i(P,T){t[P]=T,s(P,T)}const s=(P,T)=>{const N=g(T);N&&(o.set(P,N),d(P,T))},a=()=>{for(const[P,T]of Object.entries(t))T&&s(P,T)},l=()=>{for(const[P,T]of Object.entries(t)){const{shorthand:N}=T??{};if(!N)continue;(Array.isArray(N)?N:[N]).forEach(R=>r.set(R,P))}},c=()=>{const P=Uf(n.colorPaletteMap);i("colorPalette",{values:Object.keys(P),transform:yt(T=>P[T])})},u=new Map,d=(P,T)=>{if(!T)return;const N=g(T,R=>`type:Tokens["${R}"]`);if(typeof N=="object"&&N.type){u.set(P,new Set([`type:${N.type}`]));return}if(N){const R=new Set(Object.keys(N));u.set(P,R)}const j=u.get(P)??new Set;T.property&&u.set(P,j.add(`CssProperties["${T.property}"]`))},h=()=>{for(const[P,T]of Object.entries(t))T&&d(P,T)},p=(P,T)=>{const N=u.get(P)??new Set;u.set(P,new Set([...N,...T]))},f=()=>{const P=new Map;for(const[T,N]of u.entries()){if(N.size===0){P.set(T,["string"]);continue}const j=Array.from(N).map(R=>R.startsWith("CssProperties")?R:R.startsWith("type:")?R.replace("type:",""):JSON.stringify(R));P.set(T,j)}return P},g=(P,T)=>{const{values:N}=P,j=R=>{const L=T==null?void 0:T(R);return L?{[L]:L}:void 0};return Ot(N)?(j==null?void 0:j(N))??n.getCategoryValues(N)??{}:Array.isArray(N)?N.reduce((R,L)=>(R[L]=L,R),{}):ma(N)?N(T?j:n.getCategoryValues):N},m=yt((P,T)=>({[P]:P.startsWith("--")?n.getVar(T,T):T})),b=Object.assign(n.getVar,{raw:P=>n.getByName(P)}),x=yt((P,T)=>{var Y;const N=S(P);Ot(T)&&!T.includes("_EMO_")&&(T=n.expandReferenceInValue(T));const j=t[N];if(!j)return m(N,T);const R=(Y=o.get(N))==null?void 0:Y[T];if(!j.transform)return m(P,R??T);const L=z=>ww(z,b);return j.transform(R??T,{raw:T,token:b,utils:{colorMix:L}})});function k(){l(),c(),a(),h()}k();const C=r.size>0,S=yt(P=>r.get(P)??P);return{keys:()=>[...Array.from(r.keys()),...Object.keys(t)],hasShorthand:C,transform:x,shorthands:r,resolveShorthand:S,register:i,getTypes:f,addPropertyType:p}}const Ke={};function rg(...e){const t=pf(...e),{theme:n={},utilities:r={},globalCss:o={},cssVarsRoot:i=":where(:root, :host)",cssVarsPrefix:s="chakra",preflight:a}=t,l=yE(t),c=ME({breakpoints:n.breakpoints,tokens:n.tokens,semanticTokens:n.semanticTokens,prefix:s}),u=Zw(n.breakpoints??Ke),d=rE({conditions:t.conditions??Ke,breakpoints:u}),h=WE({config:r,tokens:c});function p(){const{textStyles:$,layerStyles:H,animationStyles:X}=n,de=oo({textStyle:$,layerStyle:H,animationStyle:X});for(const[kn,Go]of Object.entries(de)){const Yr=xf(Go??Ke,og);h.register(kn,{values:Object.keys(Yr),transform(Cc){return k(Yr[Cc])}})}}p(),h.addPropertyType("animationName",Object.keys(n.keyframes??Ke));const f=new Set(["css",...h.keys(),...d.keys()]),g=yt($=>f.has($)||Kw($)),m=$=>Array.isArray($)?$.reduce((H,X,de)=>{const kn=d.breakpoints[de];return X!=null&&(H[kn]=X),H},{}):$,b=xE({utility:h,normalize:m}),x=kE({conditions:d,isValidProperty:g}),k=$f({transform:h.transform,conditions:d,normalize:b}),C=mE({css:k,conditions:d,normalize:b,layers:l}),S=OE({cva:C});function I(){const $={};for(const[H,X]of c.cssVarMap.entries()){const de=Object.fromEntries(X);if(Object.keys(de).length===0)continue;const kn=H==="base"?i:d.resolve(H),Go=kn.startsWith("@"),Yr=k(x({[kn]:Go?{[i]:de}:de}));Or($,Yr)}return l.wrap("tokens",$)}function _(){const $=Object.fromEntries(Object.entries(n.keyframes??Ke).map(([X,de])=>[`@keyframes ${X}`,de])),H=Object.assign({},$,k(x(o)));return l.wrap("base",H)}function P($){return lr($,g)}function T(){const $=CE({preflight:a});return l.wrap("reset",$)}const N=HE(c),j=($,H)=>{var X;return((X=N.get($))==null?void 0:X.value)||H};j.var=($,H)=>{var X;return((X=N.get($))==null?void 0:X.variable)||H};function R($,H){var X;return((X=n.recipes)==null?void 0:X[$])??H}function L($,H){var X;return((X=n.slotRecipes)==null?void 0:X[$])??H}function Y($){return Object.hasOwnProperty.call(n.recipes??Ke,$)}function z($){return Object.hasOwnProperty.call(n.slotRecipes??Ke,$)}function V($){return Y($)||z($)}const B=[T(),_(),I()],K={layerStyles:Ll(n.layerStyles??Ke),textStyles:Ll(n.textStyles??Ke),animationStyles:Ll(n.animationStyles??Ke),tokens:ig(c,Object.keys(n.tokens??Ke),($,H)=>!$.extensions.conditions&&!H.includes("colorPalette")),semanticTokens:ig(c,Object.keys(n.semanticTokens??Ke),$=>!!$.extensions.conditions),keyframes:sg(n.keyframes??Ke),breakpoints:sg(n.breakpoints??Ke)};return{$$chakra:!0,_config:t,_global:B,breakpoints:u,tokens:c,conditions:d,utility:h,token:j,properties:f,layers:l,isValidProperty:g,splitCssProps:P,normalizeValue:m,getTokenCss:I,getGlobalCss:_,getPreflightCss:T,css:k,cva:C,sva:S,getRecipe:R,getSlotRecipe:L,hasRecipe:V,isRecipe:Y,isSlotRecipe:z,query:K}}function HE(e){const t=new Map;return e.allTokens.forEach(n=>{const{cssVar:r,virtual:o,conditions:i}=n.extensions,s=i||o?r.ref:n.value;t.set(n.name,{value:s,variable:r.ref})}),t}const og=e=>Ue(e)&&"value"in e,Ll=e=>({list(){return Object.keys(xf(e,og))},search(t){return this.list().filter(n=>n.includes(t))}}),ig=(e,t,n)=>({categoryKeys:t,list(r){var o;return Array.from(((o=e.categoryMap.get(r))==null?void 0:o.entries())??[]).reduce((i,[s,a])=>(n(a,s)&&i.push(s),i),[])},search(r,o){return this.list(r).filter(i=>i.includes(o))}}),sg=e=>({list(){return Object.keys(e)},search(t){return this.list().filter(n=>n.includes(t))}}),UE={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Fl="var(--chakra-empty,/*!*/ /*!*/)",GE=Pw({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":Fl,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,Fl])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,Fl])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.emphasized/80"}}),qE=Nw({"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}}),KE=Tw({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}),Dl=Se({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),XE=Se({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),Le=Se({className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border.emphasized","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),{variants:YE,defaultVariants:QE}=Dl,JE=Se({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:YE,defaultVariants:QE}),ag=Se({className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}}),ZE=Se({className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}}),eO=Se({className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),tO=Se({className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}}),ke=Se({className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}}),nO=Se({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:ke.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}}),rO=Se({className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}}),oO=Se({className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}}),iO=Se({className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}}),Fe=Se({className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border.emphasized",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),sO=Se({className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}}),aO=Se({className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}}),lO=Se({className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}}),cO=Se({className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}}),uO=Se({className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}}),dO={badge:Dl,button:XE,code:JE,container:ZE,heading:eO,input:ke,inputAddon:nO,kbd:rO,link:oO,mark:iO,separator:sO,skeleton:aO,skipNavLink:lO,spinner:cO,textarea:uO,icon:tO,checkmark:Le,radiomark:Fe,colorSwatch:ag},hO=Il.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.500}"}}}}),fO=Il.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),gO=Il.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}}),pO=Dd.extendWith("itemBody"),mO=G("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),vO=G("alert").parts("title","description","root","indicator","content"),bO=G("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),yO=G("blockquote").parts("root","icon","content","caption"),xO=G("card").parts("root","header","body","footer","title","description"),CO=G("checkbox-card",["root","control","label","description","addon","indicator","content"]),kO=G("data-list").parts("root","item","itemLabel","itemValue"),SO=al.extendWith("header","body","footer","backdrop"),wO=al.extendWith("header","body","footer","backdrop"),EO=wh.extendWith("textarea"),OO=G("empty-state",["root","content","indicator","title","description"]),IO=Eh.extendWith("requiredIndicator"),PO=Ih.extendWith("content"),RO=Ph.extendWith("itemContent","dropzoneContent","fileText"),TO=G("list").parts("root","item","indicator"),NO=Lh.extendWith("itemCommand"),_O=G("select").parts("root","field","indicator"),AO=Jh.extendWith("header","body","footer"),lg=xl.extendWith("itemAddon","itemIndicator"),VO=lg.extendWith("itemContent","itemDescription"),LO=ef.extendWith("itemIndicator"),FO=rf.extendWith("indicatorGroup"),DO=Hk.extendWith("indicatorGroup","empty"),zO=lf.extendWith("markerIndicator"),MO=G("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),$O=G("status").parts("root","indicator"),jO=G("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),BO=cf.extendWith("indicator"),WO=G("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),HO=G("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),UO=G("tabs").parts("root","trigger","list","content","contentGroup","indicator"),GO=G("tag").parts("root","label","closeTrigger","startElement","endElement"),qO=G("timeline").parts("root","item","content","separator","indicator","connector","title","description"),KO=ak.extendWith("channelText"),XO=G("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);Gd.extendWith("valueText");const YO=bS,QO=q({className:"chakra-accordion",slots:pO.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}}),JO=q({className:"chakra-action-bar",slots:mO.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}}),ZO=q({slots:vO.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}}),e2=q({slots:$d.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),t2=q({className:"chakra-blockquote",slots:yO.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}}),n2=q({className:"chakra-breadcrumb",slots:bO.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}}),r2=q({className:"chakra-card",slots:xO.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}}),o2=q({slots:ik.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:Le.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:(Em=(wm=Le.variants)==null?void 0:wm.size)==null?void 0:Em.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:(Im=(Om=Le.variants)==null?void 0:Om.size)==null?void 0:Im.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:(Rm=(Pm=Le.variants)==null?void 0:Pm.size)==null?void 0:Rm.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:(Nm=(Tm=Le.variants)==null?void 0:Tm.size)==null?void 0:Nm.lg}},variant:{outline:{control:(Am=(_m=Le.variants)==null?void 0:_m.variant)==null?void 0:Am.outline},solid:{control:(Lm=(Vm=Le.variants)==null?void 0:Vm.variant)==null?void 0:Lm.solid},subtle:{control:(Dm=(Fm=Le.variants)==null?void 0:Fm.variant)==null?void 0:Dm.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),i2=q({slots:CO.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:Le.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:(zm=Le.variants)==null?void 0:zm.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:(Mm=Le.variants)==null?void 0:Mm.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:($m=Le.variants)==null?void 0:$m.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:(jm=Le.variants)==null?void 0:jm.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:(Bm=Le.variants)==null?void 0:Bm.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:(Wm=Le.variants)==null?void 0:Wm.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:(Hm=Le.variants)==null?void 0:Hm.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),s2=q({slots:XO.keys(),className:"code-block",base:{root:{colorPalette:"gray",rounded:"var(--code-block-radius)",overflow:"hidden",bg:"bg",color:"fg",borderWidth:"1px","--code-block-max-height":"320px","--code-block-bg":"colors.bg","--code-block-fg":"colors.fg","--code-block-obscured-opacity":"0.5","--code-block-obscured-blur":"1px","--code-block-line-number-width":"sizes.3","--code-block-line-number-margin":"spacing.4","--code-block-highlight-bg":"{colors.teal.focusRing/20}","--code-block-highlight-border":"colors.teal.focusRing","--code-block-highlight-added-bg":"{colors.green.focusRing/20}","--code-block-highlight-added-border":"colors.green.focusRing","--code-block-highlight-removed-bg":"{colors.red.focusRing/20}","--code-block-highlight-removed-border":"colors.red.focusRing"},header:{display:"flex",alignItems:"center",gap:"2",position:"relative",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)",mb:"calc(var(--code-block-padding) / 2 * -1)"},title:{display:"inline-flex",alignItems:"center",gap:"1.5",flex:"1",color:"fg.muted"},control:{gap:"1.5",display:"inline-flex",alignItems:"center"},footer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)"},content:{position:"relative",colorScheme:"dark",overflow:"hidden",borderBottomRadius:"var(--code-block-radius)",maxHeight:"var(--code-block-max-height)","& ::selection":{bg:"blue.500/40"},_expanded:{maxHeight:"unset"}},overlay:{"--bg":"{colors.black/50}",display:"flex",alignItems:"flex-end",justifyContent:"center",padding:"4",bgImage:"linear-gradient(0deg,var(--bg) 25%,transparent 100%)",color:"white",minH:"5rem",pos:"absolute",bottom:"0",insetInline:"0",zIndex:"1",fontWeight:"medium",_expanded:{display:"none"}},code:{fontFamily:"mono",lineHeight:"tall",whiteSpace:"pre",counterReset:"line 0"},codeText:{px:"var(--code-block-padding)",py:"var(--code-block-padding)",position:"relative",display:"block",width:"100%","&[data-has-focused]":{"& [data-line]:not([data-focused])":{transitionProperty:"opacity, filter",transitionDuration:"moderate",transitionTimingFunction:"ease-in-out",opacity:"var(--code-block-obscured-opacity)",filter:"blur(var(--code-block-obscured-blur))"},"&:hover":{"--code-block-obscured-opacity":"1","--code-block-obscured-blur":"0px"}},"&[data-has-line-numbers][data-plaintext]":{paddingInlineStart:"calc(var(--code-block-line-number-width) + var(--code-block-line-number-margin) + var(--code-block-padding))"},"& [data-line]":{position:"relative","--highlight-bg":"var(--code-block-highlight-bg)","--highlight-border":"var(--code-block-highlight-border)","&[data-highlight], &[data-diff]":{display:"inline-block",width:"full","&:after":{content:"''",display:"block",position:"absolute",insetStart:"calc(var(--code-block-padding) * -1)",insetEnd:"0px",width:"calc(100% + var(--code-block-padding) * 2)",height:"100%",bg:"var(--highlight-bg)",borderStartWidth:"2px",borderStartColor:"var(--highlight-border)"}},"&[data-diff='added']":{"--highlight-bg":"var(--code-block-highlight-added-bg)","--highlight-border":"var(--code-block-highlight-added-border)"},"&[data-diff='removed']":{"--highlight-bg":"var(--code-block-highlight-removed-bg)","--highlight-border":"var(--code-block-highlight-removed-border)"}},"&[data-word-wrap]":{"&[data-plaintext], & [data-line]":{whiteSpace:"pre-wrap",wordBreak:"break-all"}},"&[data-has-line-numbers]":{"--content":"counter(line)","& [data-line]:before":{content:"var(--content)",counterIncrement:"line",width:"var(--code-block-line-number-width)",marginRight:"var(--code-block-line-number-margin)",display:"inline-block",textAlign:"end",userSelect:"none",opacity:.4},"& [data-diff='added']:before":{content:"'+'"},"& [data-diff='removed']:before":{content:"'-'"}}}},variants:{size:{sm:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.md","--code-block-header-height":"sizes.8"},title:{textStyle:"xs"},code:{fontSize:"xs"}},md:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.lg","--code-block-header-height":"sizes.10"},title:{textStyle:"xs"},code:{fontSize:"sm"}},lg:{root:{"--code-block-padding":"spacing.5","--code-block-radius":"radii.xl","--code-block-header-height":"sizes.12"},title:{textStyle:"sm"},code:{fontSize:"sm"}}}},defaultVariants:{size:"md"}}),a2=q({slots:Xu.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}),l2=q({className:"colorPicker",slots:KO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...ag.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...ke.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:(Gm=(Um=ke.variants)==null?void 0:Um.size)==null?void 0:Gm["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:(Km=(qm=ke.variants)==null?void 0:qm.size)==null?void 0:Km.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:(Ym=(Xm=ke.variants)==null?void 0:Xm.size)==null?void 0:Ym.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:(Jm=(Qm=ke.variants)==null?void 0:Qm.size)==null?void 0:Jm.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:(e0=(Zm=ke.variants)==null?void 0:Zm.size)==null?void 0:e0.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:(n0=(t0=ke.variants)==null?void 0:t0.size)==null?void 0:n0.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:(o0=(r0=ke.variants)==null?void 0:r0.size)==null?void 0:o0["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:(s0=(i0=ke.variants)==null?void 0:i0.variant)==null?void 0:s0.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:(l0=(a0=ke.variants)==null?void 0:a0.variant)==null?void 0:l0.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),c2=q({className:"chakra-combobox",slots:DO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",px:"var(--combobox-input-padding-x)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},control:{pos:"relative"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}}),u2=q({slots:kO.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}}),d2=q({slots:SO.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100dvw",h:"100dvh",zIndex:"var(--z-index)",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100dvw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100dvw",minH:"100dvh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),h2=q({slots:wO.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-left-full, fade-out"}}}},top:{positioner:{justifyContent:"stretch",alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{justifyContent:"stretch",alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}}),cg=Ir({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),f2=q({slots:EO.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...cg,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...cg,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}}),g2=q({slots:OO.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}}),p2=q({className:"chakra-field",slots:IO.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}}),m2=q({className:"fieldset",slots:PO.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),v2=q({className:"chakra-file-upload",slots:RO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}}),b2=q({className:"chakra-hover-card",slots:Rh.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),y2=q({className:"chakra-list",slots:TO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),x2=q({className:"chakra-listbox",slots:YO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},content:{display:"flex",maxH:"96",p:"1",gap:"1",textStyle:"sm",outline:"none",scrollPadding:"1",_horizontal:{flexDirection:"row",overflowX:"auto"},_vertical:{flexDirection:"column",overflowY:"auto"},"--listbox-item-padding-x":"spacing.2","--listbox-item-padding-y":"spacing.1.5"},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"pointer",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)",_highlighted:{outline:"2px solid",outlineColor:"border.emphasized"},_disabled:{pointerEvents:"none",opacity:"0.5"}},empty:{py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{mt:"1.5",_first:{mt:"0"}},itemGroupLabel:{py:"1.5",px:"2",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"4"}}},variants:{variant:{subtle:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_hover:{bg:"bg.emphasized/60"},_selected:{bg:"bg.muted"}}},solid:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_selected:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}},plain:{}}},defaultVariants:{variant:"subtle"}}),C2=q({className:"chakra-menu",slots:NO.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1",scrollPadding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5",scrollPadding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}}),fs=q({className:"chakra-select",slots:FO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}}),k2=q({className:"chakra-native-select",slots:_O.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error","--input-height":"var(--select-field-height)",height:"var(--select-field-height)",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:(c0=fs.variants)==null?void 0:c0.variant.outline.trigger},subtle:{field:(u0=fs.variants)==null?void 0:u0.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{root:{"--select-field-height":"sizes.8"},field:{textStyle:"xs",ps:"2",pe:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{root:{"--select-field-height":"sizes.9"},field:{textStyle:"sm",ps:"2.5",pe:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{root:{"--select-field-height":"sizes.10"},field:{textStyle:"sm",ps:"3",pe:"8"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{root:{"--select-field-height":"sizes.11"},field:{textStyle:"md",ps:"4",pe:"8"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{root:{"--select-field-height":"sizes.12"},field:{textStyle:"md",ps:"4.5",pe:"10"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:fs.defaultVariants});function zl(e,t){const n={};for(const r in e){const o=t(r,e[r]);n[o[0]]=o[1]}return n}const ug=Ir({display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}}),S2=q({className:"chakra-number-input",slots:Gh.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...ke.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...ug,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...ug,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:ke.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:ke.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:ke.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:ke.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:zl(ke.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:dg,defaultVariants:w2}=ke,E2=q({className:"chakra-pin-input",slots:Qh.keys(),base:{input:{...ke.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:zl(dg.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:zl(dg.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:w2}),O2=q({className:"chakra-popover",slots:AO.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}}),I2=q({slots:yl.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}}),P2=q({className:"chakra-progress-circle",slots:yl.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dashoffset, stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}}),R2=q({slots:Zh.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}}),T2=q({className:"chakra-radio-card",slots:VO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:Fe.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:(d0=Fe.variants)==null?void 0:d0.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:(h0=Fe.variants)==null?void 0:h0.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:(f0=Fe.variants)==null?void 0:f0.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:(g0=Fe.variants)==null?void 0:g0.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:(p0=Fe.variants)==null?void 0:p0.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:(m0=Fe.variants)==null?void 0:m0.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:(v0=Fe.variants)==null?void 0:v0.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),N2=q({className:"chakra-radio-group",slots:lg.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:Fe.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:(y0=(b0=Fe.variants)==null?void 0:b0.variant)==null?void 0:y0.outline},subtle:{itemControl:(C0=(x0=Fe.variants)==null?void 0:x0.variant)==null?void 0:C0.subtle},solid:{itemControl:(S0=(k0=Fe.variants)==null?void 0:k0.variant)==null?void 0:S0.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:(E0=(w0=Fe.variants)==null?void 0:w0.size)==null?void 0:E0.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:(I0=(O0=Fe.variants)==null?void 0:O0.size)==null?void 0:I0.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:(R0=(P0=Fe.variants)==null?void 0:P0.size)==null?void 0:R0.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:(N0=(T0=Fe.variants)==null?void 0:T0.size)==null?void 0:N0.lg}}},defaultVariants:{size:"md",variant:"solid"}}),_2=q({className:"chakra-rating-group",slots:LO.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}}),A2=q({className:"chakra-scroll-area",slots:tf.keys(),base:{root:{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative",overflow:"hidden","--scrollbar-margin":"2px","--scrollbar-click-area":"calc(var(--scrollbar-size) + calc(var(--scrollbar-margin) * 2))"},viewport:{display:"flex",flexDirection:"column",height:"100%",width:"100%",borderRadius:"inherit",WebkitOverflowScrolling:"touch",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},content:{minWidth:"100%"},scrollbar:{display:"flex",userSelect:"none",touchAction:"none",borderRadius:"full",colorPalette:"gray",transition:"opacity 150ms 300ms",position:"relative",margin:"var(--scrollbar-margin)","&:not([data-overflow-x], [data-overflow-y])":{display:"none"},bg:"{colors.colorPalette.solid/10}","--thumb-bg":"{colors.colorPalette.solid/25}","&:is(:hover, :active)":{"--thumb-bg":"{colors.colorPalette.solid/50}"},_before:{content:'""',position:"absolute"},_vertical:{width:"var(--scrollbar-size)",flexDirection:"column","&::before":{width:"var(--scrollbar-click-area)",height:"100%",insetInlineStart:"calc(var(--scrollbar-margin) * -1)"}},_horizontal:{height:"var(--scrollbar-size)",flexDirection:"row","&::before":{height:"var(--scrollbar-click-area)",width:"100%",top:"calc(var(--scrollbar-margin) * -1)"}}},thumb:{borderRadius:"inherit",bg:"var(--thumb-bg)",transition:"backgrounds",_vertical:{width:"full"},_horizontal:{height:"full"}},corner:{bg:"bg.muted",margin:"var(--scrollbar-margin)",opacity:0,transition:"opacity 150ms 300ms","&[data-hover]":{transitionDelay:"0ms",opacity:1}}},variants:{variant:{hover:{scrollbar:{opacity:"0","&[data-hover], &[data-scrolling]":{opacity:"1",transitionDuration:"faster",transitionDelay:"0ms"}}},always:{scrollbar:{opacity:"1"}}},size:{xs:{root:{"--scrollbar-size":"sizes.1"}},sm:{root:{"--scrollbar-size":"sizes.1.5"}},md:{root:{"--scrollbar-size":"sizes.2"}},lg:{root:{"--scrollbar-size":"sizes.3"}}}},defaultVariants:{size:"md",variant:"hover"}}),V2=q({className:"chakra-segment-group",slots:nf.keys(),base:{root:{"--segment-radius":"radii.l2",borderRadius:"l2",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"sm",pos:"absolute",bg:{_light:"bg",_dark:"bg.emphasized"},width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}}),L2=q({className:"chakra-slider",slots:zO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}}),F2=q({className:"chakra-stat",slots:MO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}}),D2=q({className:"chakra-status",slots:$O.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),z2=q({className:"chakra-steps",slots:jO.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}}),M2=q({slots:BO.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}}),$2=q({className:"chakra-table",slots:WO.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),j2=q({slots:UO.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-indicator-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-indicator-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}}),dt=(_0=Dl.variants)==null?void 0:_0.variant,B2=q({slots:GO.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:dt==null?void 0:dt.subtle},solid:{root:dt==null?void 0:dt.solid},outline:{root:dt==null?void 0:dt.outline},surface:{root:dt==null?void 0:dt.surface}}},defaultVariants:{size:"md",variant:"surface"}}),W2=q({slots:qO.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"& :where(.chakra-timeline__separator)":{display:"none"}}},separator:{position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"6",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid"}}),H2=q({slots:HO.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}}),U2=q({slots:uf.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),hg=Ir({display:"flex",alignItems:"center",gap:"var(--tree-item-gap)",rounded:"l2",userSelect:"none",position:"relative","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-icon-offset":"calc(var(--tree-icon-size) * var(--tree-depth) * 0.5)","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset) + var(--tree-icon-offset))",ps:"var(--tree-offset)",pe:"var(--tree-padding-inline)",py:"var(--tree-padding-block)",focusVisibleRing:"inside",focusRingColor:"border.emphasized",focusRingWidth:"2px","&:hover, &:focus-visible":{bg:"bg.muted"},_disabled:{layerStyle:"disabled"}}),fg=Ir({flex:"1"}),gg=Ir({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),pg=Ir({_selected:{layerStyle:"fill.solid"}}),G2=q({slots:_h.keys(),className:"chakra-tree-view",base:{root:{width:"full",display:"flex",flexDirection:"column",gap:"2"},tree:{display:"flex",flexDirection:"column","--tree-item-gap":"spacing.2",_icon:{boxSize:"var(--tree-icon-size)"}},label:{fontWeight:"medium",textStyle:"sm"},branch:{position:"relative"},branchContent:{position:"relative"},branchIndentGuide:{height:"100%",width:"1px",bg:"border",position:"absolute","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset))","--tree-icon-offset":"calc(var(--tree-icon-size) * 0.5 * var(--depth))",insetInlineStart:"calc(var(--tree-offset) + var(--tree-icon-offset))",zIndex:"1"},branchIndicator:{color:"fg.muted",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(90deg)"}},branchTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center"},branchControl:hg,item:hg,itemText:fg,branchText:fg,nodeCheckbox:{display:"inline-flex"}},variants:{size:{md:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1.5","--tree-icon-size":"spacing.4"}},sm:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}},xs:{tree:{textStyle:"xs","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.2","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}}},variant:{subtle:{branchControl:gg,item:gg},solid:{branchControl:pg,item:pg}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),q2={accordion:QO,actionBar:JO,alert:ZO,avatar:e2,blockquote:t2,breadcrumb:n2,card:r2,checkbox:o2,checkboxCard:i2,codeBlock:s2,collapsible:a2,dataList:u2,dialog:d2,drawer:h2,editable:f2,emptyState:g2,field:p2,fieldset:m2,fileUpload:v2,hoverCard:b2,list:y2,listbox:x2,menu:C2,nativeSelect:k2,numberInput:S2,pinInput:E2,popover:O2,progress:I2,progressCircle:P2,radioCard:T2,radioGroup:N2,ratingGroup:_2,scrollArea:A2,segmentGroup:V2,select:fs,combobox:c2,slider:L2,stat:F2,steps:z2,switch:M2,table:$2,tabs:j2,tag:B2,toast:H2,tooltip:U2,status:D2,timeline:W2,colorPicker:l2,qrCode:R2,treeView:G2},K2=Rw({"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}}),X2=Ce.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),Y2=Ce.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),Q2=Ce.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),J2=Ce.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),Z2=Ce.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),eI=Ce.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),tI=Ce.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),nI=Ce.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),rI=Ce.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),oI=Ce.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),mg='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',iI=Ce.fonts({heading:{value:`Inter, ${mg}`},body:{value:`Inter, ${mg}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),sI=Iw({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"0"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"0"}},"expand-width":{from:{width:"0"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"0"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}}),aI=Ce.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),lI=Ce.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),cI=Ce.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),vg=Ce.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),uI=Ce.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),dI=Ce.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),hI=Ce.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),fI=Ce.sizes({...uI,...vg,...hI,...dI}),gI=Ce.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:2147483647}}),pI=Pl({preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:GE,theme:{breakpoints:UE,keyframes:sI,tokens:{aspectRatios:Y2,animations:X2,blurs:Q2,borders:J2,colors:Z2,durations:tI,easings:nI,fonts:iI,fontSizes:rI,fontWeights:oI,letterSpacings:aI,lineHeights:lI,radii:cI,spacing:vg,sizes:fI,zIndex:gI,cursor:eI},semanticTokens:{colors:hO,shadows:gO,radii:fO},recipes:dO,slotRecipes:q2,textStyles:K2,layerStyles:qE,animationStyles:KE}}),bg=pf(Mw,pI);rg(bg);function mI(e){const{key:t,recipe:n}=e,r=fi();return w.useMemo(()=>{const o=n||(t!=null?r.getSlotRecipe(t):{});return r.sva(structuredClone(o))},[t,n,r])}const vI=e=>e.charAt(0).toUpperCase()+e.slice(1),Ml=e=>{const{key:t,recipe:n}=e,r=vI(t||n.className||"Component"),[o,i]=ar({name:`${r}StylesContext`,errorMessage:`use${r}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `}),[s,a]=ar({name:`${r}ClassNameContext`,errorMessage:`use${r}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `,strict:!1}),[l,c]=ar({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`,defaultValue:{}});function u(f){const{unstyled:g,...m}=f,b=mI({key:t,recipe:m.recipe||n}),[x,k]=w.useMemo(()=>b.splitVariantProps(m),[m,b]);return{styles:w.useMemo(()=>g?Sb:b(x),[g,x,b]),classNames:b.classNameMap,props:k}}function d(f,g={}){const{defaultProps:m}=g,b=x=>{const k=c(),C=w.useMemo(()=>ro(m,k,x),[k,x]),{styles:S,classNames:I,props:_}=u(C);return v.jsx(o,{value:S,children:v.jsx(s,{value:I,children:v.jsx(f,{..._})})})};return b.displayName=f.displayName||f.name,b}return{StylesProvider:o,ClassNamesProvider:s,PropsProvider:l,usePropsContext:c,useRecipeResult:u,withProvider:(f,g,m)=>{const{defaultProps:b,...x}=m??{},k=Ie(f,{},x),C=w.forwardRef((S,I)=>{var Y;const _=c(),P=w.useMemo(()=>ro(b??{},_,S),[_,S]),{styles:T,props:N,classNames:j}=u(P),R=j[g],L=v.jsx(o,{value:T,children:v.jsx(s,{value:j,children:v.jsx(k,{ref:I,...N,css:[T[g],P.css],className:at(P.className,R)})})});return((Y=m==null?void 0:m.wrapElement)==null?void 0:Y.call(m,L,P))??L});return C.displayName=f.displayName||f.name,C},withContext:(f,g,m)=>{const b=Ie(f,{},m),x=w.forwardRef((k,C)=>{const{unstyled:S,...I}=k,_=i(),P=a(),T=P==null?void 0:P[g];return v.jsx(b,{...I,css:[!S&&g?_[g]:void 0,k.css],ref:C,className:at(k.className,T)})});return x.displayName=f.displayName||f.name,x},withRootProvider:d,useStyles:i,useClassNames:a}},yg=Ie("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});yg.displayName="AbsoluteCenter";const bI=e=>v.jsx(Ie.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:v.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z"})}),xg=e=>v.jsx(Ie.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:v.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"})}),Cg=e=>v.jsx(Ie.svg,{viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",...e,children:v.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"})}),yI=e=>v.jsx(Ie.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"})}),[xI,CI]=ar({name:"AlertStatusContext",hookName:"useAlertStatusContext",providerName:""}),{withProvider:kI,withContext:$l,useStyles:SI}=Ml({key:"alert"}),wI=kI("div","root",{forwardAsChild:!0,wrapElement(e,t){return v.jsx(xI,{value:{status:t.status||"info"},children:e})}}),kg=$l("div","title"),EI=$l("div","description"),OI=$l("div","content"),II={info:Cg,warning:xg,success:bI,error:xg,neutral:Cg},PI=w.forwardRef(function(t,n){const r=CI(),o=SI(),i=typeof r.status=="string"?II[r.status]:w.Fragment,{children:s=v.jsx(i,{}),...a}=t;return v.jsx(Ie.span,{ref:n,...a,css:[o.indicator,t.css],children:s})}),RI=e=>e?"":void 0,{withContext:TI}=cr({key:"badge"}),Sg=TI("span"),{withContext:NI}=cr({key:"spinner"}),_I=NI("span"),AI=O.forwardRef(function(t,n){const{spinner:r=v.jsx(_I,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:o="start",children:i,text:s,visible:a=!0,...l}=t;return a?s?v.jsxs(Li,{ref:n,display:"contents",...l,children:[o==="start"&&r,s,o==="end"&&r]}):r?v.jsxs(Li,{ref:n,display:"contents",...l,children:[v.jsx(yg,{display:"inline-flex",children:r}),v.jsx(Li,{visibility:"hidden",display:"contents",children:i})]}):v.jsx(Li,{ref:n,display:"contents",...l,children:i}):i}),{useRecipeResult:VI,usePropsContext:LI}=cr({key:"button"}),jl=w.forwardRef(function(t,n){const r=LI(),o=w.useMemo(()=>ro(r,t),[r,t]),i=VI(o),{loading:s,loadingText:a,children:l,spinner:c,spinnerPlacement:u,...d}=i.props;return v.jsx(Ie.button,{type:"button",ref:n,...d,"data-loading":RI(s),disabled:s||d.disabled,className:at(i.className,o.className),css:[i.styles,o.css],children:!o.asChild&&s?v.jsx(AI,{spinner:c,text:a,spinnerPlacement:u,children:l}):l})}),gs=w.forwardRef(function(t,n){return v.jsx(jl,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:n,...t})}),FI=O.forwardRef(function(t,n){return v.jsx(gs,{variant:"ghost","aria-label":"Close",ref:n,...t,children:t.children??v.jsx(yI,{})})}),wg=Ie("div",{base:{display:"flex",alignItems:"center",justifyContent:"center"},variants:{inline:{true:{display:"inline-flex"}}}});wg.displayName="Center";function DI(e){const{gap:t,direction:n}=e,r={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":gf(n,o=>r[o])}}function zI(e){return w.Children.toArray(e).filter(t=>w.isValidElement(t))}const Eg=w.forwardRef(function(t,n){const{direction:r="column",align:o,justify:i,gap:s="0.5rem",wrap:a,children:l,separator:c,className:u,...d}=t,h=w.useMemo(()=>DI({gap:s,direction:r}),[s,r]),p=w.useMemo(()=>w.isValidElement(c)?zI(l).map((f,g,m)=>{const b=typeof f.key<"u"?f.key:g,x=c,k=w.cloneElement(x,{css:[h,x.props.css]});return v.jsxs(w.Fragment,{children:[f,g===m.length-1?null:k]},b)}):l,[l,c,h]);return v.jsx(Ie.div,{ref:n,display:"flex",alignItems:o,justifyContent:i,flexDirection:r,flexWrap:a,gap:c?void 0:s,className:at("chakra-stack",u),...d,children:p})}),{withRootProvider:Og,withContext:At}=Ml({key:"dialog"});Og(uS,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const MI=Og(cS,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});At(Sh,"trigger",{forwardAsChild:!0});const $I=At(ph,"positioner",{forwardAsChild:!0}),jI=At(fh,"content",{forwardAsChild:!0});At(gh,"description",{forwardAsChild:!0});const BI=At(kh,"title",{forwardAsChild:!0}),WI=At(hh,"closeTrigger",{forwardAsChild:!0}),HI=w.forwardRef(function(t,n){const r=on();return v.jsx(Ie.button,{...t,ref:n,onClick:()=>r.setOpen(!1)})}),UI=At(dh,"backdrop",{forwardAsChild:!0}),GI=At("div","body"),qI=At("div","footer"),KI=At("div","header"),Bl=w.forwardRef(function(t,n){const{direction:r,align:o,justify:i,wrap:s,basis:a,grow:l,shrink:c,inline:u,...d}=t;return v.jsx(Ie.div,{ref:n,...d,css:{display:u?"inline-flex":"flex",flexDirection:r,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:a,flexGrow:l,flexShrink:c,...t.css}})}),{withContext:XI}=cr({key:"link"}),ps=XI("a"),YI=w.forwardRef(function(t,n){return v.jsx(Eg,{align:"center",...t,direction:"row",ref:n})}),QI=w.forwardRef(function(t,n){return v.jsx(Eg,{align:"center",...t,direction:"column",ref:n})}),{StylesProvider:JI,ClassNamesProvider:ZI,useRecipeResult:eP,withContext:Wt}=Ml({key:"table"}),Ig=w.forwardRef(function({native:t,...n},r){const{styles:o,props:i,classNames:s}=eP(n),a=w.useMemo(()=>t?{...o.root,"& thead":o.header,"& tbody":o.body,"& tfoot":o.footer,"& thead th":o.columnHeader,"& tr":o.row,"& td":o.cell,"& caption":o.caption}:o.root,[o,t]);return v.jsx(ZI,{value:s,children:v.jsx(JI,{value:o,children:v.jsx(Ie.table,{ref:r,...i,css:[a,n.css],className:at(s==null?void 0:s.root,n.className)})})})}),ms=Wt("tr","row");Ie("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}});const Pg=Wt("thead","header");Wt("tfoot","footer");const Ne=Wt("th","columnHeader"),_e=Wt("td","cell");Wt("caption","caption",{defaultProps:{captionSide:"bottom"}});const Rg=Wt("tbody","body");Wt("colgroup"),Wt("col");const{withContext:tP}=cr({key:"textarea"}),nP=tP(Oh);var _r=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},rP={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},oP=(A0=class{constructor(){W(this,hn,rP);W(this,xc,!1)}setTimeoutProvider(e){M(this,hn,e)}setTimeout(e,t){return y(this,hn).setTimeout(e,t)}clearTimeout(e){y(this,hn).clearTimeout(e)}setInterval(e,t){return y(this,hn).setInterval(e,t)}clearInterval(e){y(this,hn).clearInterval(e)}},hn=new WeakMap,xc=new WeakMap,A0),Bn=new oP;function iP(e){setTimeout(e,0)}var Wn=typeof window>"u"||"Deno"in globalThis;function je(){}function sP(e,t){return typeof e=="function"?e(t):e}function Wl(e){return typeof e=="number"&&e>=0&&e!==1/0}function Tg(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ln(e,t){return typeof e=="function"?e(t):e}function ht(e,t){return typeof e=="function"?e(t):e}function Ng(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Hl(s,t.options))return!1}else if(!Po(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function _g(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Hn(t.options.mutationKey)!==Hn(i))return!1}else if(!Po(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Hl(e,t){return((t==null?void 0:t.queryKeyHashFn)||Hn)(e)}function Hn(e){return JSON.stringify(e,(t,n)=>Ul(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Po(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Po(e[n],t[n])):!1}var aP=Object.prototype.hasOwnProperty;function Ag(e,t){if(e===t)return e;const n=Vg(e)&&Vg(t);if(!n&&!(Ul(e)&&Ul(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),s=i.length,a=n?new Array(s):{};let l=0;for(let c=0;c{Bn.setTimeout(t,e)})}function Gl(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Ag(e,t):t}function cP(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function uP(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ql=Symbol();function Fg(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===ql?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Dg(e,t){return typeof e=="function"?e(...t):!!e}var dP=(V0=class extends _r{constructor(){super();W(this,Xn);W(this,fn);W(this,zr);M(this,zr,t=>{if(!Wn&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){y(this,fn)||this.setEventListener(y(this,zr))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,fn))==null||t.call(this),M(this,fn,void 0))}setEventListener(t){var n;M(this,zr,t),(n=y(this,fn))==null||n.call(this),M(this,fn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){y(this,Xn)!==t&&(M(this,Xn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof y(this,Xn)=="boolean"?y(this,Xn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Xn=new WeakMap,fn=new WeakMap,zr=new WeakMap,V0),Kl=new dP;function Xl(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var hP=iP;function fP(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=hP;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var we=fP(),gP=(L0=class extends _r{constructor(){super();W(this,Mr,!0);W(this,gn);W(this,$r);M(this,$r,t=>{if(!Wn&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){y(this,gn)||this.setEventListener(y(this,$r))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,gn))==null||t.call(this),M(this,gn,void 0))}setEventListener(t){var n;M(this,$r,t),(n=y(this,gn))==null||n.call(this),M(this,gn,t(this.setOnline.bind(this)))}setOnline(t){y(this,Mr)!==t&&(M(this,Mr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return y(this,Mr)}},Mr=new WeakMap,gn=new WeakMap,$r=new WeakMap,L0),bs=new gP;function pP(e){return Math.min(1e3*2**e,3e4)}function zg(e){return(e??"online")==="online"?bs.isOnline():!0}var Yl=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Mg(e){let t=!1,n=0,r;const o=Xl(),i=()=>o.status!=="pending",s=g=>{var m;if(!i()){const b=new Yl(g);h(b),(m=e.onCancel)==null||m.call(e,b)}},a=()=>{t=!0},l=()=>{t=!1},c=()=>Kl.isFocused()&&(e.networkMode==="always"||bs.isOnline())&&e.canRun(),u=()=>zg(e.networkMode)&&e.canRun(),d=g=>{i()||(r==null||r(),o.resolve(g))},h=g=>{i()||(r==null||r(),o.reject(g))},p=()=>new Promise(g=>{var m;r=b=>{(i()||c())&&g(b)},(m=e.onPause)==null||m.call(e)}).then(()=>{var g;r=void 0,i()||(g=e.onContinue)==null||g.call(e)}),f=()=>{if(i())return;let g;const m=n===0?e.initialPromise:void 0;try{g=m??e.fn()}catch(b){g=Promise.reject(b)}Promise.resolve(g).then(d).catch(b=>{var I;if(i())return;const x=e.retry??(Wn?0:3),k=e.retryDelay??pP,C=typeof k=="function"?k(n,b):k,S=x===!0||typeof x=="number"&&nc()?void 0:p()).then(()=>{t?h(b):f()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r==null||r(),o),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?f():p().then(f),o)}}var $g=(F0=class{constructor(){W(this,Yn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Wl(this.gcTime)&&M(this,Yn,Bn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Wn?1/0:5*60*1e3))}clearGcTimeout(){y(this,Yn)&&(Bn.clearTimeout(y(this,Yn)),M(this,Yn,void 0))}},Yn=new WeakMap,F0),mP=(D0=class extends $g{constructor(t){super();W(this,Ct);W(this,Qn);W(this,jr);W(this,ft);W(this,Jn);W(this,Ae);W(this,Bo);W(this,Zn);M(this,Zn,!1),M(this,Bo,t.defaultOptions),this.setOptions(t.options),this.observers=[],M(this,Jn,t.client),M(this,ft,y(this,Jn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,M(this,Qn,Bg(this.options)),this.state=t.state??y(this,Qn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=y(this,Ae))==null?void 0:t.promise}setOptions(t){if(this.options={...y(this,Bo),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Bg(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),M(this,Qn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&y(this,ft).remove(this)}setData(t,n){const r=Gl(this.state.data,t,this.options);return Z(this,Ct,Xt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Z(this,Ct,Xt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=y(this,Ae))==null?void 0:r.promise;return(o=y(this,Ae))==null||o.cancel(t),n?n.then(je).catch(je):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(y(this,Qn))}isActive(){return this.observers.some(t=>ht(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ql||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ln(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Tg(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,Ae))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,Ae))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),y(this,ft).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(y(this,Ae)&&(y(this,Zn)?y(this,Ae).cancel({revert:!0}):y(this,Ae).cancelRetry()),this.scheduleGc()),y(this,ft).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Z(this,Ct,Xt).call(this,{type:"invalidate"})}async fetch(t,n){var l,c,u,d,h,p,f,g,m,b,x,k;if(this.state.fetchStatus!=="idle"&&((l=y(this,Ae))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(y(this,Ae))return y(this,Ae).continueRetry(),y(this,Ae).promise}if(t&&this.setOptions(t),!this.options.queryFn){const C=this.observers.find(S=>S.options.queryFn);C&&this.setOptions(C.options)}const r=new AbortController,o=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(M(this,Zn,!0),r.signal)})},i=()=>{const C=Fg(this.options,n),I=(()=>{const _={client:y(this,Jn),queryKey:this.queryKey,meta:this.meta};return o(_),_})();return M(this,Zn,!1),this.options.persister?this.options.persister(C,I,this):C(I)},a=(()=>{const C={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:y(this,Jn),state:this.state,fetchFn:i};return o(C),C})();(c=this.options.behavior)==null||c.onFetch(a,this),M(this,jr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&Z(this,Ct,Xt).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta}),M(this,Ae,Mg({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:C=>{C instanceof Yl&&C.revert&&this.setState({...y(this,jr),fetchStatus:"idle"}),r.abort()},onFail:(C,S)=>{Z(this,Ct,Xt).call(this,{type:"failed",failureCount:C,error:S})},onPause:()=>{Z(this,Ct,Xt).call(this,{type:"pause"})},onContinue:()=>{Z(this,Ct,Xt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const C=await y(this,Ae).start();if(C===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(C),(p=(h=y(this,ft).config).onSuccess)==null||p.call(h,C,this),(g=(f=y(this,ft).config).onSettled)==null||g.call(f,C,this.state.error,this),C}catch(C){if(C instanceof Yl){if(C.silent)return y(this,Ae).promise;if(C.revert){if(this.state.data===void 0)throw C;return this.state.data}}throw Z(this,Ct,Xt).call(this,{type:"error",error:C}),(b=(m=y(this,ft).config).onError)==null||b.call(m,C,this),(k=(x=y(this,ft).config).onSettled)==null||k.call(x,this.state.data,C,this),C}finally{this.scheduleGc()}}},Qn=new WeakMap,jr=new WeakMap,ft=new WeakMap,Jn=new WeakMap,Ae=new WeakMap,Bo=new WeakMap,Zn=new WeakMap,Ct=new WeakSet,Xt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...jg(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return M(this,jr,t.manual?o:void 0),o;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),we.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),y(this,ft).notify({query:this,type:"updated",action:t})})},D0);function jg(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:zg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Bg(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var vP=(z0=class extends _r{constructor(t,n){super();W(this,se);W(this,Qe);W(this,te);W(this,Wo);W(this,Be);W(this,er);W(this,Br);W(this,Ht);W(this,pn);W(this,Ho);W(this,Wr);W(this,Hr);W(this,tr);W(this,nr);W(this,mn);W(this,Ur,new Set);this.options=n,M(this,Qe,t),M(this,pn,null),M(this,Ht,Xl()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(y(this,te).addObserver(this),Wg(y(this,te),this.options)?Z(this,se,qo).call(this):this.updateResult(),Z(this,se,Ic).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ql(y(this,te),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ql(y(this,te),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Z(this,se,Pc).call(this),Z(this,se,Rc).call(this),y(this,te).removeObserver(this)}setOptions(t){const n=this.options,r=y(this,te);if(this.options=y(this,Qe).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ht(this.options.enabled,y(this,te))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Z(this,se,Tc).call(this),y(this,te).setOptions(this.options),n._defaulted&&!vs(this.options,n)&&y(this,Qe).getQueryCache().notify({type:"observerOptionsUpdated",query:y(this,te),observer:this});const o=this.hasListeners();o&&Hg(y(this,te),r,this.options,n)&&Z(this,se,qo).call(this),this.updateResult(),o&&(y(this,te)!==r||ht(this.options.enabled,y(this,te))!==ht(n.enabled,y(this,te))||ln(this.options.staleTime,y(this,te))!==ln(n.staleTime,y(this,te)))&&Z(this,se,wc).call(this);const i=Z(this,se,Ec).call(this);o&&(y(this,te)!==r||ht(this.options.enabled,y(this,te))!==ht(n.enabled,y(this,te))||i!==y(this,mn))&&Z(this,se,Oc).call(this,i)}getOptimisticResult(t){const n=y(this,Qe).getQueryCache().build(y(this,Qe),t),r=this.createResult(n,t);return yP(this,r)&&(M(this,Be,r),M(this,Br,this.options),M(this,er,y(this,te).state)),r}getCurrentResult(){return y(this,Be)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&!this.options.experimental_prefetchInRender&&y(this,Ht).status==="pending"&&y(this,Ht).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,o))})}trackProp(t){y(this,Ur).add(t)}getCurrentQuery(){return y(this,te)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=y(this,Qe).defaultQueryOptions(t),r=y(this,Qe).getQueryCache().build(y(this,Qe),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Z(this,se,qo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),y(this,Be)))}createResult(t,n){var T;const r=y(this,te),o=this.options,i=y(this,Be),s=y(this,er),a=y(this,Br),c=t!==r?t.state:y(this,Wo),{state:u}=t;let d={...u},h=!1,p;if(n._optimisticResults){const N=this.hasListeners(),j=!N&&Wg(t,n),R=N&&Hg(t,r,n,o);(j||R)&&(d={...d,...jg(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:f,errorUpdatedAt:g,status:m}=d;p=d.data;let b=!1;if(n.placeholderData!==void 0&&p===void 0&&m==="pending"){let N;i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(N=i.data,b=!0):N=typeof n.placeholderData=="function"?n.placeholderData((T=y(this,Hr))==null?void 0:T.state.data,y(this,Hr)):n.placeholderData,N!==void 0&&(m="success",p=Gl(i==null?void 0:i.data,N,n),h=!0)}if(n.select&&p!==void 0&&!b)if(i&&p===(s==null?void 0:s.data)&&n.select===y(this,Ho))p=y(this,Wr);else try{M(this,Ho,n.select),p=n.select(p),p=Gl(i==null?void 0:i.data,p,n),M(this,Wr,p),M(this,pn,null)}catch(N){M(this,pn,N)}y(this,pn)&&(f=y(this,pn),p=y(this,Wr),g=Date.now(),m="error");const x=d.fetchStatus==="fetching",k=m==="pending",C=m==="error",S=k&&x,I=p!==void 0,P={status:m,fetchStatus:d.fetchStatus,isPending:k,isSuccess:m==="success",isError:C,isInitialLoading:S,isLoading:S,data:p,dataUpdatedAt:d.dataUpdatedAt,error:f,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:x,isRefetching:x&&!k,isLoadingError:C&&!I,isPaused:d.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:C&&I,isStale:Jl(t,n),refetch:this.refetch,promise:y(this,Ht),isEnabled:ht(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const N=L=>{P.status==="error"?L.reject(P.error):P.data!==void 0&&L.resolve(P.data)},j=()=>{const L=M(this,Ht,P.promise=Xl());N(L)},R=y(this,Ht);switch(R.status){case"pending":t.queryHash===r.queryHash&&N(R);break;case"fulfilled":(P.status==="error"||P.data!==R.value)&&j();break;case"rejected":(P.status!=="error"||P.error!==R.reason)&&j();break}}return P}updateResult(){const t=y(this,Be),n=this.createResult(y(this,te),this.options);if(M(this,er,y(this,te).state),M(this,Br,this.options),y(this,er).data!==void 0&&M(this,Hr,y(this,te)),vs(n,t))return;M(this,Be,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!y(this,Ur).size)return!0;const s=new Set(i??y(this,Ur));return this.options.throwOnError&&s.add("error"),Object.keys(y(this,Be)).some(a=>{const l=a;return y(this,Be)[l]!==t[l]&&s.has(l)})};Z(this,se,Q0).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Z(this,se,Ic).call(this)}},Qe=new WeakMap,te=new WeakMap,Wo=new WeakMap,Be=new WeakMap,er=new WeakMap,Br=new WeakMap,Ht=new WeakMap,pn=new WeakMap,Ho=new WeakMap,Wr=new WeakMap,Hr=new WeakMap,tr=new WeakMap,nr=new WeakMap,mn=new WeakMap,Ur=new WeakMap,se=new WeakSet,qo=function(t){Z(this,se,Tc).call(this);let n=y(this,te).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(je)),n},wc=function(){Z(this,se,Pc).call(this);const t=ln(this.options.staleTime,y(this,te));if(Wn||y(this,Be).isStale||!Wl(t))return;const r=Tg(y(this,Be).dataUpdatedAt,t)+1;M(this,tr,Bn.setTimeout(()=>{y(this,Be).isStale||this.updateResult()},r))},Ec=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(y(this,te)):this.options.refetchInterval)??!1},Oc=function(t){Z(this,se,Rc).call(this),M(this,mn,t),!(Wn||ht(this.options.enabled,y(this,te))===!1||!Wl(y(this,mn))||y(this,mn)===0)&&M(this,nr,Bn.setInterval(()=>{(this.options.refetchIntervalInBackground||Kl.isFocused())&&Z(this,se,qo).call(this)},y(this,mn)))},Ic=function(){Z(this,se,wc).call(this),Z(this,se,Oc).call(this,Z(this,se,Ec).call(this))},Pc=function(){y(this,tr)&&(Bn.clearTimeout(y(this,tr)),M(this,tr,void 0))},Rc=function(){y(this,nr)&&(Bn.clearInterval(y(this,nr)),M(this,nr,void 0))},Tc=function(){const t=y(this,Qe).getQueryCache().build(y(this,Qe),this.options);if(t===y(this,te))return;const n=y(this,te);M(this,te,t),M(this,Wo,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Q0=function(t){we.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(y(this,Be))}),y(this,Qe).getQueryCache().notify({query:y(this,te),type:"observerResultsUpdated"})})},z0);function bP(e,t){return ht(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Wg(e,t){return bP(e,t)||e.state.data!==void 0&&Ql(e,t,t.refetchOnMount)}function Ql(e,t,n){if(ht(t.enabled,e)!==!1&&ln(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Jl(e,t)}return!1}function Hg(e,t,n,r){return(e!==t||ht(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Jl(e,n)}function Jl(e,t){return ht(t.enabled,e)!==!1&&e.isStaleByTime(ln(t.staleTime,e))}function yP(e,t){return!vs(e.getCurrentResult(),t)}function Ug(e){return{onFetch:(t,n)=>{var u,d,h,p,f;const r=t.options,o=(h=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],s=((f=t.state.data)==null?void 0:f.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const m=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},b=Fg(t.options,t.fetchOptions),x=async(k,C,S)=>{if(g)return Promise.reject();if(C==null&&k.pages.length)return Promise.resolve(k);const _=(()=>{const j={client:t.client,queryKey:t.queryKey,pageParam:C,direction:S?"backward":"forward",meta:t.options.meta};return m(j),j})(),P=await b(_),{maxPages:T}=t.options,N=S?uP:cP;return{pages:N(k.pages,P,T),pageParams:N(k.pageParams,C,T)}};if(o&&i.length){const k=o==="backward",C=k?xP:Gg,S={pages:i,pageParams:s},I=C(r,S);a=await x(S,I,k)}else{const k=e??i.length;do{const C=l===0?s[0]??r.initialPageParam:Gg(r,a);if(l>0&&C==null)break;a=await x(a,C),l++}while(l{var g,m;return(m=(g=t.options).persister)==null?void 0:m.call(g,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function Gg(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function xP(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var CP=(M0=class extends $g{constructor(t){super();W(this,Ft);W(this,Lt);W(this,We);W(this,rr);this.mutationId=t.mutationId,M(this,We,t.mutationCache),M(this,Lt,[]),this.state=t.state||qg(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){y(this,Lt).includes(t)||(y(this,Lt).push(t),this.clearGcTimeout(),y(this,We).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){M(this,Lt,y(this,Lt).filter(n=>n!==t)),this.scheduleGc(),y(this,We).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){y(this,Lt).length||(this.state.status==="pending"?this.scheduleGc():y(this,We).remove(this))}continue(){var t;return((t=y(this,rr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,a,l,c,u,d,h,p,f,g,m,b,x,k,C,S,I,_,P;const n=()=>{Z(this,Ft,Sn).call(this,{type:"continue"})};M(this,rr,Mg({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(T,N)=>{Z(this,Ft,Sn).call(this,{type:"failed",failureCount:T,error:N})},onPause:()=>{Z(this,Ft,Sn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>y(this,We).canRun(this)}));const r=this.state.status==="pending",o=!y(this,rr).canStart();try{if(r)n();else{Z(this,Ft,Sn).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=y(this,We).config).onMutate)==null?void 0:s.call(i,t,this));const N=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));N!==this.state.context&&Z(this,Ft,Sn).call(this,{type:"pending",context:N,variables:t,isPaused:o})}const T=await y(this,rr).start();return await((u=(c=y(this,We).config).onSuccess)==null?void 0:u.call(c,T,t,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,T,t,this.state.context)),await((f=(p=y(this,We).config).onSettled)==null?void 0:f.call(p,T,null,this.state.variables,this.state.context,this)),await((m=(g=this.options).onSettled)==null?void 0:m.call(g,T,null,t,this.state.context)),Z(this,Ft,Sn).call(this,{type:"success",data:T}),T}catch(T){try{throw await((x=(b=y(this,We).config).onError)==null?void 0:x.call(b,T,t,this.state.context,this)),await((C=(k=this.options).onError)==null?void 0:C.call(k,T,t,this.state.context)),await((I=(S=y(this,We).config).onSettled)==null?void 0:I.call(S,void 0,T,this.state.variables,this.state.context,this)),await((P=(_=this.options).onSettled)==null?void 0:P.call(_,void 0,T,t,this.state.context)),T}finally{Z(this,Ft,Sn).call(this,{type:"error",error:T})}}finally{y(this,We).runNext(this)}}},Lt=new WeakMap,We=new WeakMap,rr=new WeakMap,Ft=new WeakSet,Sn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),we.batch(()=>{y(this,Lt).forEach(r=>{r.onMutationUpdate(t)}),y(this,We).notify({mutation:this,type:"updated",action:t})})},M0);function qg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var kP=($0=class extends _r{constructor(t={}){super();W(this,Ut);W(this,kt);W(this,Uo);this.config=t,M(this,Ut,new Set),M(this,kt,new Map),M(this,Uo,0)}build(t,n,r){const o=new CP({mutationCache:this,mutationId:++Ks(this,Uo)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){y(this,Ut).add(t);const n=ys(t);if(typeof n=="string"){const r=y(this,kt).get(n);r?r.push(t):y(this,kt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(y(this,Ut).delete(t)){const n=ys(t);if(typeof n=="string"){const r=y(this,kt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&y(this,kt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=ys(t);if(typeof n=="string"){const r=y(this,kt).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=ys(t);if(typeof n=="string"){const o=(r=y(this,kt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){we.batch(()=>{y(this,Ut).forEach(t=>{this.notify({type:"removed",mutation:t})}),y(this,Ut).clear(),y(this,kt).clear()})}getAll(){return Array.from(y(this,Ut))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>_g(n,r))}findAll(t={}){return this.getAll().filter(n=>_g(t,n))}notify(t){we.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return we.batch(()=>Promise.all(t.map(n=>n.continue().catch(je))))}},Ut=new WeakMap,kt=new WeakMap,Uo=new WeakMap,$0);function ys(e){var t;return(t=e.options.scope)==null?void 0:t.id}var SP=(j0=class extends _r{constructor(t,n){super();W(this,qt);W(this,vn);W(this,bn);W(this,Je);W(this,Gt);M(this,vn,t),this.setOptions(n),this.bindMethods(),Z(this,qt,Js).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var r;const n=this.options;this.options=y(this,vn).defaultMutationOptions(t),vs(this.options,n)||y(this,vn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:y(this,Je),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Hn(n.mutationKey)!==Hn(this.options.mutationKey)?this.reset():((r=y(this,Je))==null?void 0:r.state.status)==="pending"&&y(this,Je).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=y(this,Je))==null||t.removeObserver(this)}onMutationUpdate(t){Z(this,qt,Js).call(this),Z(this,qt,Nc).call(this,t)}getCurrentResult(){return y(this,bn)}reset(){var t;(t=y(this,Je))==null||t.removeObserver(this),M(this,Je,void 0),Z(this,qt,Js).call(this),Z(this,qt,Nc).call(this)}mutate(t,n){var r;return M(this,Gt,n),(r=y(this,Je))==null||r.removeObserver(this),M(this,Je,y(this,vn).getMutationCache().build(y(this,vn),this.options)),y(this,Je).addObserver(this),y(this,Je).execute(t)}},vn=new WeakMap,bn=new WeakMap,Je=new WeakMap,Gt=new WeakMap,qt=new WeakSet,Js=function(){var n;const t=((n=y(this,Je))==null?void 0:n.state)??qg();M(this,bn,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Nc=function(t){we.batch(()=>{var n,r,o,i,s,a,l,c;if(y(this,Gt)&&this.hasListeners()){const u=y(this,bn).variables,d=y(this,bn).context;(t==null?void 0:t.type)==="success"?((r=(n=y(this,Gt)).onSuccess)==null||r.call(n,t.data,u,d),(i=(o=y(this,Gt)).onSettled)==null||i.call(o,t.data,null,u,d)):(t==null?void 0:t.type)==="error"&&((a=(s=y(this,Gt)).onError)==null||a.call(s,t.error,u,d),(c=(l=y(this,Gt)).onSettled)==null||c.call(l,void 0,t.error,u,d))}this.listeners.forEach(u=>{u(y(this,bn))})})},j0),wP=(B0=class extends _r{constructor(t={}){super();W(this,Dt);this.config=t,M(this,Dt,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??Hl(o,n);let s=this.get(i);return s||(s=new mP({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){y(this,Dt).has(t.queryHash)||(y(this,Dt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=y(this,Dt).get(t.queryHash);n&&(t.destroy(),n===t&&y(this,Dt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){we.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return y(this,Dt).get(t)}getAll(){return[...y(this,Dt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ng(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ng(t,r)):n}notify(t){we.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){we.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){we.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Dt=new WeakMap,B0),EP=(W0=class{constructor(e={}){W(this,ve);W(this,yn);W(this,xn);W(this,Gr);W(this,qr);W(this,Cn);W(this,Kr);W(this,Xr);M(this,ve,e.queryCache||new wP),M(this,yn,e.mutationCache||new kP),M(this,xn,e.defaultOptions||{}),M(this,Gr,new Map),M(this,qr,new Map),M(this,Cn,0)}mount(){Ks(this,Cn)._++,y(this,Cn)===1&&(M(this,Kr,Kl.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ve).onFocus())})),M(this,Xr,bs.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ve).onOnline())})))}unmount(){var e,t;Ks(this,Cn)._--,y(this,Cn)===0&&((e=y(this,Kr))==null||e.call(this),M(this,Kr,void 0),(t=y(this,Xr))==null||t.call(this),M(this,Xr,void 0))}isFetching(e){return y(this,ve).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return y(this,yn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,ve).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=y(this,ve).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ln(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return y(this,ve).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=y(this,ve).get(r.queryHash),i=o==null?void 0:o.state.data,s=sP(t,i);if(s!==void 0)return y(this,ve).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return we.batch(()=>y(this,ve).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,ve).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=y(this,ve);we.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=y(this,ve);return we.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=we.batch(()=>y(this,ve).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(je).catch(je)}invalidateQueries(e,t={}){return we.batch(()=>(y(this,ve).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=we.batch(()=>y(this,ve).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(je)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(je)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=y(this,ve).build(this,t);return n.isStaleByTime(ln(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(je).catch(je)}fetchInfiniteQuery(e){return e.behavior=Ug(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(je).catch(je)}ensureInfiniteQueryData(e){return e.behavior=Ug(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return bs.isOnline()?y(this,yn).resumePausedMutations():Promise.resolve()}getQueryCache(){return y(this,ve)}getMutationCache(){return y(this,yn)}getDefaultOptions(){return y(this,xn)}setDefaultOptions(e){M(this,xn,e)}setQueryDefaults(e,t){y(this,Gr).set(Hn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...y(this,Gr).values()],n={};return t.forEach(r=>{Po(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){y(this,qr).set(Hn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...y(this,qr).values()],n={};return t.forEach(r=>{Po(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...y(this,xn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Hl(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===ql&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...y(this,xn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){y(this,ve).clear(),y(this,yn).clear()}},ve=new WeakMap,yn=new WeakMap,xn=new WeakMap,Gr=new WeakMap,qr=new WeakMap,Cn=new WeakMap,Kr=new WeakMap,Xr=new WeakMap,W0),Kg=O.createContext(void 0),Xg=e=>{const t=O.useContext(Kg);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},OP=({client:e,children:t})=>(O.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(Kg.Provider,{value:e,children:t})),Yg=O.createContext(!1),IP=()=>O.useContext(Yg);Yg.Provider;function PP(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var RP=O.createContext(PP()),TP=()=>O.useContext(RP),NP=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},_P=e=>{O.useEffect(()=>{e.clearReset()},[e])},AP=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Dg(n,[e.error,r])),VP=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},LP=(e,t)=>e.isLoading&&e.isFetching&&!t,FP=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Qg=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function DP(e,t,n){var d,h,p,f,g;const r=IP(),o=TP(),i=Xg(),s=i.defaultQueryOptions(e);(h=(d=i.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||h.call(d,s),s._optimisticResults=r?"isRestoring":"optimistic",VP(s),NP(s,o),_P(o);const a=!i.getQueryCache().get(s.queryHash),[l]=O.useState(()=>new t(i,s)),c=l.getOptimisticResult(s),u=!r&&e.subscribed!==!1;if(O.useSyncExternalStore(O.useCallback(m=>{const b=u?l.subscribe(we.batchCalls(m)):je;return l.updateResult(),b},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),O.useEffect(()=>{l.setOptions(s)},[s,l]),FP(s,c))throw Qg(s,l,o);if(AP({result:c,errorResetBoundary:o,throwOnError:s.throwOnError,query:i.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw c.error;if((f=(p=i.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||f.call(p,s,c),s.experimental_prefetchInRender&&!Wn&&LP(c,r)){const m=a?Qg(s,l,o):(g=i.getQueryCache().get(s.queryHash))==null?void 0:g.promise;m==null||m.catch(je).finally(()=>{l.updateResult()})}return s.notifyOnChangeProps?c:l.trackResult(c)}function Jg(e,t){return DP(e,vP)}function Zg(e,t){const n=Xg(),[r]=O.useState(()=>new SP(n,e));O.useEffect(()=>{r.setOptions(e)},[r,e]);const o=O.useSyncExternalStore(O.useCallback(s=>r.subscribe(we.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=O.useCallback((s,a)=>{r.mutate(s,a).catch(je)},[r]);if(o.error&&Dg(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}function ep(e,t){return function(){return e.apply(t,arguments)}}const{toString:zP}=Object.prototype,{getPrototypeOf:Zl}=Object,{iterator:xs,toStringTag:tp}=Symbol,Cs=(e=>t=>{const n=zP.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),xt=e=>(e=e.toLowerCase(),t=>Cs(t)===e),ks=e=>t=>typeof t===e,{isArray:Ar}=Array,Ro=ks("undefined");function To(e){return e!==null&&!Ro(e)&&e.constructor!==null&&!Ro(e.constructor)&&Xe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const np=xt("ArrayBuffer");function MP(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&np(e.buffer),t}const $P=ks("string"),Xe=ks("function"),rp=ks("number"),No=e=>e!==null&&typeof e=="object",jP=e=>e===!0||e===!1,Ss=e=>{if(Cs(e)!=="object")return!1;const t=Zl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(tp in e)&&!(xs in e)},BP=e=>{if(!No(e)||To(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},WP=xt("Date"),HP=xt("File"),UP=xt("Blob"),GP=xt("FileList"),qP=e=>No(e)&&Xe(e.pipe),KP=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xe(e.append)&&((t=Cs(e))==="formdata"||t==="object"&&Xe(e.toString)&&e.toString()==="[object FormData]"))},XP=xt("URLSearchParams"),[YP,QP,JP,ZP]=["ReadableStream","Request","Response","Headers"].map(xt),eR=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _o(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Ar(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Un=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:globalThis,ip=e=>!Ro(e)&&e!==Un;function ec(){const{caseless:e}=ip(this)&&this||{},t={},n=(r,o)=>{const i=e&&op(t,o)||o;Ss(t[i])&&Ss(r)?t[i]=ec(t[i],r):Ss(r)?t[i]=ec({},r):Ar(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(_o(t,(o,i)=>{n&&Xe(o)?e[i]=ep(o,n):e[i]=o},{allOwnKeys:r}),e),nR=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),rR=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},oR=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Zl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},iR=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},sR=e=>{if(!e)return null;if(Ar(e))return e;let t=e.length;if(!rp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},aR=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Zl(Uint8Array)),lR=(e,t)=>{const r=(e&&e[xs]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},cR=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},uR=xt("HTMLFormElement"),dR=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),sp=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),hR=xt("RegExp"),ap=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_o(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},fR=e=>{ap(e,(t,n)=>{if(Xe(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Xe(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},gR=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Ar(e)?r(e):r(String(e).split(t)),n},pR=()=>{},mR=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function vR(e){return!!(e&&Xe(e.append)&&e[tp]==="FormData"&&e[xs])}const bR=e=>{const t=new Array(10),n=(r,o)=>{if(No(r)){if(t.indexOf(r)>=0)return;if(To(r))return r;if(!("toJSON"in r)){t[o]=r;const i=Ar(r)?[]:{};return _o(r,(s,a)=>{const l=n(s,o+1);!Ro(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},yR=xt("AsyncFunction"),xR=e=>e&&(No(e)||Xe(e))&&Xe(e.then)&&Xe(e.catch),lp=((e,t)=>e?setImmediate:t?((n,r)=>(Un.addEventListener("message",({source:o,data:i})=>{o===Un&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Un.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Xe(Un.postMessage)),CR=typeof queueMicrotask<"u"?queueMicrotask.bind(Un):typeof process<"u"&&process.nextTick||lp,E={isArray:Ar,isArrayBuffer:np,isBuffer:To,isFormData:KP,isArrayBufferView:MP,isString:$P,isNumber:rp,isBoolean:jP,isObject:No,isPlainObject:Ss,isEmptyObject:BP,isReadableStream:YP,isRequest:QP,isResponse:JP,isHeaders:ZP,isUndefined:Ro,isDate:WP,isFile:HP,isBlob:UP,isRegExp:hR,isFunction:Xe,isStream:qP,isURLSearchParams:XP,isTypedArray:aR,isFileList:GP,forEach:_o,merge:ec,extend:tR,trim:eR,stripBOM:nR,inherits:rR,toFlatObject:oR,kindOf:Cs,kindOfTest:xt,endsWith:iR,toArray:sR,forEachEntry:lR,matchAll:cR,isHTMLForm:uR,hasOwnProperty:sp,hasOwnProp:sp,reduceDescriptors:ap,freezeMethods:fR,toObjectSet:gR,toCamelCase:dR,noop:pR,toFiniteNumber:mR,findKey:op,global:Un,isContextDefined:ip,isSpecCompliantForm:vR,toJSONObject:bR,isAsyncFn:yR,isThenable:xR,setImmediate:lp,asap:CR,isIterable:e=>e!=null&&Xe(e[xs])};function Q(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}E.inherits(Q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:E.toJSONObject(this.config),code:this.code,status:this.status}}});const cp=Q.prototype,up={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{up[e]={value:e}}),Object.defineProperties(Q,up),Object.defineProperty(cp,"isAxiosError",{value:!0}),Q.from=(e,t,n,r,o,i)=>{const s=Object.create(cp);return E.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Q.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const kR=null;function tc(e){return E.isPlainObject(e)||E.isArray(e)}function dp(e){return E.endsWith(e,"[]")?e.slice(0,-2):e}function hp(e,t,n){return e?e.concat(t).map(function(o,i){return o=dp(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function SR(e){return E.isArray(e)&&!e.some(tc)}const wR=E.toFlatObject(E,{},null,function(t){return/^is[A-Z]/.test(t)});function ws(e,t,n){if(!E.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=E.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,m){return!E.isUndefined(m[g])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&E.isSpecCompliantForm(t);if(!E.isFunction(o))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(E.isDate(f))return f.toISOString();if(E.isBoolean(f))return f.toString();if(!l&&E.isBlob(f))throw new Q("Blob is not supported. Use a Buffer instead.");return E.isArrayBuffer(f)||E.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,g,m){let b=f;if(f&&!m&&typeof f=="object"){if(E.endsWith(g,"{}"))g=r?g:g.slice(0,-2),f=JSON.stringify(f);else if(E.isArray(f)&&SR(f)||(E.isFileList(f)||E.endsWith(g,"[]"))&&(b=E.toArray(f)))return g=dp(g),b.forEach(function(k,C){!(E.isUndefined(k)||k===null)&&t.append(s===!0?hp([g],C,i):s===null?g:g+"[]",c(k))}),!1}return tc(f)?!0:(t.append(hp(m,g,i),c(f)),!1)}const d=[],h=Object.assign(wR,{defaultVisitor:u,convertValue:c,isVisitable:tc});function p(f,g){if(!E.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(f),E.forEach(f,function(b,x){(!(E.isUndefined(b)||b===null)&&o.call(t,b,E.isString(x)?x.trim():x,g,h))===!0&&p(b,g?g.concat(x):[x])}),d.pop()}}if(!E.isObject(e))throw new TypeError("data must be an object");return p(e),t}function fp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function nc(e,t){this._pairs=[],e&&ws(e,this,t)}const gp=nc.prototype;gp.append=function(t,n){this._pairs.push([t,n])},gp.toString=function(t){const n=t?function(r){return t.call(this,r,fp)}:fp;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function ER(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function pp(e,t,n){if(!t)return e;const r=n&&n.encode||ER;E.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=E.isURLSearchParams(t)?t.toString():new nc(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class mp{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){E.forEach(this.handlers,function(r){r!==null&&t(r)})}}const vp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},OR={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:nc,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},rc=typeof window<"u"&&typeof document<"u",oc=typeof navigator=="object"&&navigator||void 0,IR=rc&&(!oc||["ReactNative","NativeScript","NS"].indexOf(oc.product)<0),PR=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",RR=rc&&window.location.href||"http://localhost",Me={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:rc,hasStandardBrowserEnv:IR,hasStandardBrowserWebWorkerEnv:PR,navigator:oc,origin:RR},Symbol.toStringTag,{value:"Module"})),...OR};function TR(e,t){return ws(e,new Me.classes.URLSearchParams,{visitor:function(n,r,o,i){return Me.isNode&&E.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function NR(e){return E.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function _R(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&E.isArray(o)?o.length:s,l?(E.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!E.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&E.isArray(o[s])&&(o[s]=_R(o[s])),!a)}if(E.isFormData(e)&&E.isFunction(e.entries)){const n={};return E.forEachEntry(e,(r,o)=>{t(NR(r),o,n,0)}),n}return null}function AR(e,t,n){if(E.isString(e))try{return(t||JSON.parse)(e),E.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ao={transitional:vp,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=E.isObject(t);if(i&&E.isHTMLForm(t)&&(t=new FormData(t)),E.isFormData(t))return o?JSON.stringify(bp(t)):t;if(E.isArrayBuffer(t)||E.isBuffer(t)||E.isStream(t)||E.isFile(t)||E.isBlob(t)||E.isReadableStream(t))return t;if(E.isArrayBufferView(t))return t.buffer;if(E.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return TR(t,this.formSerializer).toString();if((a=E.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ws(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),AR(t)):t}],transformResponse:[function(t){const n=this.transitional||Ao.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(E.isResponse(t)||E.isReadableStream(t))return t;if(t&&E.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?Q.from(a,Q.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Me.classes.FormData,Blob:Me.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(["delete","get","head","post","put","patch"],e=>{Ao.headers[e]={}});const VR=E.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),LR=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&VR[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},yp=Symbol("internals");function Vo(e){return e&&String(e).trim().toLowerCase()}function Es(e){return e===!1||e==null?e:E.isArray(e)?e.map(Es):String(e)}function FR(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const DR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ic(e,t,n,r,o){if(E.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!E.isString(t)){if(E.isString(r))return t.indexOf(r)!==-1;if(E.isRegExp(r))return r.test(t)}}function zR(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function MR(e,t){const n=E.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}let Ye=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,c){const u=Vo(l);if(!u)throw new Error("header name must be a non-empty string");const d=E.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=Es(a))}const s=(a,l)=>E.forEach(a,(c,u)=>i(c,u,l));if(E.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(E.isString(t)&&(t=t.trim())&&!DR(t))s(LR(t),n);else if(E.isObject(t)&&E.isIterable(t)){let a={},l,c;for(const u of t){if(!E.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[c=u[0]]=(l=a[c])?E.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}s(a,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Vo(t),t){const r=E.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return FR(o);if(E.isFunction(n))return n.call(this,o,r);if(E.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Vo(t),t){const r=E.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ic(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=Vo(s),s){const a=E.findKey(r,s);a&&(!n||ic(r,r[a],a,n))&&(delete r[a],o=!0)}}return E.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||ic(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return E.forEach(this,(o,i)=>{const s=E.findKey(r,i);if(s){n[s]=Es(o),delete n[i];return}const a=t?zR(i):String(i).trim();a!==i&&delete n[i],n[a]=Es(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return E.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&E.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[yp]=this[yp]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Vo(s);r[a]||(MR(o,s),r[a]=!0)}return E.isArray(t)?t.forEach(i):i(t),this}};Ye.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),E.reduceDescriptors(Ye.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),E.freezeMethods(Ye);function sc(e,t){const n=this||Ao,r=t||n,o=Ye.from(r.headers);let i=r.data;return E.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function xp(e){return!!(e&&e.__CANCEL__)}function Vr(e,t,n){Q.call(this,e??"canceled",Q.ERR_CANCELED,t,n),this.name="CanceledError"}E.inherits(Vr,Q,{__CANCEL__:!0});function Cp(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Q("Request failed with status code "+n.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function $R(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function jR(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];s||(s=c),n[o]=l,r[o]=c;let d=i,h=0;for(;d!==o;)h+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s{n=u,o=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?s(c,u):(o=c,i||(i=setTimeout(()=>{i=null,s(o)},r-d)))},()=>o&&s(o)]}const Os=(e,t,n=3)=>{let r=0;const o=jR(50,250);return BR(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-r,c=o(l),u=s<=a;r=s;const d={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-s)/c:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},kp=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Sp=e=>(...t)=>E.asap(()=>e(...t)),WR=Me.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Me.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Me.origin),Me.navigator&&/(msie|trident)/i.test(Me.navigator.userAgent)):()=>!0,HR=Me.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];E.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),E.isString(r)&&s.push("path="+r),E.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function UR(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function GR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function wp(e,t,n){let r=!UR(t);return e&&(r||n==!1)?GR(e,t):t}const Ep=e=>e instanceof Ye?{...e}:e;function Gn(e,t){t=t||{};const n={};function r(c,u,d,h){return E.isPlainObject(c)&&E.isPlainObject(u)?E.merge.call({caseless:h},c,u):E.isPlainObject(u)?E.merge({},u):E.isArray(u)?u.slice():u}function o(c,u,d,h){if(E.isUndefined(u)){if(!E.isUndefined(c))return r(void 0,c,d,h)}else return r(c,u,d,h)}function i(c,u){if(!E.isUndefined(u))return r(void 0,u)}function s(c,u){if(E.isUndefined(u)){if(!E.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u,d)=>o(Ep(c),Ep(u),d,!0)};return E.forEach(Object.keys({...e,...t}),function(u){const d=l[u]||o,h=d(e[u],t[u],u);E.isUndefined(h)&&d!==a||(n[u]=h)}),n}const Op=e=>{const t=Gn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;t.headers=s=Ye.from(s),t.url=pp(wp(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(E.isFormData(n)){if(Me.hasStandardBrowserEnv||Me.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Me.hasStandardBrowserEnv&&(r&&E.isFunction(r)&&(r=r(t)),r||r!==!1&&WR(t.url))){const c=o&&i&&HR.read(i);c&&s.set(o,c)}return t},qR=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=Op(e);let i=o.data;const s=Ye.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,u,d,h,p,f;function g(){p&&p(),f&&f(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function b(){if(!m)return;const k=Ye.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),S={data:!a||a==="text"||a==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:k,config:e,request:m};Cp(function(_){n(_),g()},function(_){r(_),g()},S),m=null}"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(b)},m.onabort=function(){m&&(r(new Q("Request aborted",Q.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new Q("Network Error",Q.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let C=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const S=o.transitional||vp;o.timeoutErrorMessage&&(C=o.timeoutErrorMessage),r(new Q(C,S.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,e,m)),m=null},i===void 0&&s.setContentType(null),"setRequestHeader"in m&&E.forEach(s.toJSON(),function(C,S){m.setRequestHeader(S,C)}),E.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),a&&a!=="json"&&(m.responseType=o.responseType),c&&([h,f]=Os(c,!0),m.addEventListener("progress",h)),l&&m.upload&&([d,p]=Os(l),m.upload.addEventListener("progress",d),m.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(u=k=>{m&&(r(!k||k.type?new Vr(null,e,m):k),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const x=$R(o.url);if(x&&Me.protocols.indexOf(x)===-1){r(new Q("Unsupported protocol "+x+":",Q.ERR_BAD_REQUEST,e));return}m.send(i||null)})},KR=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(c){if(!o){o=!0,a();const u=c instanceof Error?c:this.reason;r.abort(u instanceof Q?u:new Vr(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,i(new Q(`timeout ${t} of ms exceeded`,Q.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>E.asap(a),l}},XR=function*(e,t){let n=e.byteLength;if(n{const o=YR(e,t);let i=0,s,a=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){a(),l.close();return}let d=u.byteLength;if(n){let h=i+=d;n(h)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},Is=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Pp=Is&&typeof ReadableStream=="function",JR=Is&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Rp=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ZR=Pp&&Rp(()=>{let e=!1;const t=new Request(Me.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Tp=64*1024,ac=Pp&&Rp(()=>E.isReadableStream(new Response("").body)),Ps={stream:ac&&(e=>e.body)};Is&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ps[t]&&(Ps[t]=E.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Q(`Response type '${t}' is not supported`,Q.ERR_NOT_SUPPORT,r)})})})(new Response);const eT=async e=>{if(e==null)return 0;if(E.isBlob(e))return e.size;if(E.isSpecCompliantForm(e))return(await new Request(Me.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(E.isArrayBufferView(e)||E.isArrayBuffer(e))return e.byteLength;if(E.isURLSearchParams(e)&&(e=e+""),E.isString(e))return(await JR(e)).byteLength},tT=async(e,t)=>{const n=E.toFiniteNumber(e.getContentLength());return n??eT(t)},lc={http:kR,xhr:qR,fetch:Is&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:h}=Op(e);c=c?(c+"").toLowerCase():"text";let p=KR([o,i&&i.toAbortSignal()],s),f;const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let m;try{if(l&&ZR&&n!=="get"&&n!=="head"&&(m=await tT(u,r))!==0){let S=new Request(t,{method:"POST",body:r,duplex:"half"}),I;if(E.isFormData(r)&&(I=S.headers.get("content-type"))&&u.setContentType(I),S.body){const[_,P]=kp(m,Os(Sp(l)));r=Ip(S.body,Tp,_,P)}}E.isString(d)||(d=d?"include":"omit");const b="credentials"in Request.prototype;f=new Request(t,{...h,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:b?d:void 0});let x=await fetch(f,h);const k=ac&&(c==="stream"||c==="response");if(ac&&(a||k&&g)){const S={};["status","statusText","headers"].forEach(T=>{S[T]=x[T]});const I=E.toFiniteNumber(x.headers.get("content-length")),[_,P]=a&&kp(I,Os(Sp(a),!0))||[];x=new Response(Ip(x.body,Tp,_,()=>{P&&P(),g&&g()}),S)}c=c||"text";let C=await Ps[E.findKey(Ps,c)||"text"](x,e);return!k&&g&&g(),await new Promise((S,I)=>{Cp(S,I,{data:C,headers:Ye.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:f})})}catch(b){throw g&&g(),b&&b.name==="TypeError"&&/Load failed|fetch/i.test(b.message)?Object.assign(new Q("Network Error",Q.ERR_NETWORK,e,f),{cause:b.cause||b}):Q.from(b,b&&b.code,e,f)}})};E.forEach(lc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Np=e=>`- ${e}`,nT=e=>E.isFunction(e)||e===null||e===!1,_p={getAdapter:e=>{e=E.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since : -`+i.map(Np).join(` -`):" "+Np(i[0]):"as no adapter specified";throw new Q("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:lc};function cc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Vr(null,e)}function Ap(e){return cc(e),e.headers=Ye.from(e.headers),e.data=sc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),_p.getAdapter(e.adapter||Ao.adapter)(e).then(function(r){return cc(e),r.data=sc.call(e,e.transformResponse,r),r.headers=Ye.from(r.headers),r},function(r){return xp(r)||(cc(e),r&&r.response&&(r.response.data=sc.call(e,e.transformResponse,r.response),r.response.headers=Ye.from(r.response.headers))),Promise.reject(r)})}const Vp="1.11.0",Rs={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Rs[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Lp={};Rs.transitional=function(t,n,r){function o(i,s){return"[Axios v"+Vp+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new Q(o(s," has been removed"+(n?" in "+n:"")),Q.ERR_DEPRECATED);return n&&!Lp[s]&&(Lp[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}},Rs.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function rT(e,t,n){if(typeof e!="object")throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new Q("option "+i+" must be "+l,Q.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Q("Unknown option "+i,Q.ERR_BAD_OPTION)}}const Ts={assertOptions:rT,validators:Rs},Vt=Ts.validators;let qn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new mp,response:new mp}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Gn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Ts.assertOptions(r,{silentJSONParsing:Vt.transitional(Vt.boolean),forcedJSONParsing:Vt.transitional(Vt.boolean),clarifyTimeoutError:Vt.transitional(Vt.boolean)},!1),o!=null&&(E.isFunction(o)?n.paramsSerializer={serialize:o}:Ts.assertOptions(o,{encode:Vt.function,serialize:Vt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ts.assertOptions(n,{baseUrl:Vt.spelling("baseURL"),withXsrfToken:Vt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&E.merge(i.common,i[n.method]);i&&E.forEach(["delete","get","head","post","put","patch","common"],f=>{delete i[f]}),n.headers=Ye.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,d=0,h;if(!l){const f=[Ap.bind(this),void 0];for(f.unshift(...a),f.push(...c),h=f.length,u=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new Vr(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new J0(function(o){t=o}),cancel:t}}};function iT(e){return function(n){return e.apply(null,n)}}function sT(e){return E.isObject(e)&&e.isAxiosError===!0}const uc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(uc).forEach(([e,t])=>{uc[t]=e});function Fp(e){const t=new qn(e),n=ep(qn.prototype.request,t);return E.extend(n,qn.prototype,t,{allOwnKeys:!0}),E.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Fp(Gn(e,o))},n}const pe=Fp(Ao);pe.Axios=qn,pe.CanceledError=Vr,pe.CancelToken=oT,pe.isCancel=xp,pe.VERSION=Vp,pe.toFormData=ws,pe.AxiosError=Q,pe.Cancel=pe.CanceledError,pe.all=function(t){return Promise.all(t)},pe.spread=iT,pe.isAxiosError=sT,pe.mergeConfig=Gn,pe.AxiosHeaders=Ye,pe.formToJSON=e=>bp(E.isHTMLForm(e)?new FormData(e):e),pe.getAdapter=_p.getAdapter,pe.HttpStatusCode=uc,pe.default=pe;const{Axios:c_,AxiosError:u_,CanceledError:d_,isCancel:h_,CancelToken:f_,VERSION:g_,all:p_,Cancel:m_,isAxiosError:v_,spread:b_,toFormData:y_,AxiosHeaders:x_,HttpStatusCode:C_,formToJSON:k_,getAdapter:S_,mergeConfig:w_}=pe;var Ns=["light","dark"],dc="(prefers-color-scheme: dark)",aT=typeof window>"u",Dp=O.createContext(void 0),lT=e=>O.useContext(Dp)?e.children:O.createElement(uT,{...e}),cT=["light","dark"],uT=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:o="theme",themes:i=cT,defaultTheme:s=n?"system":"light",attribute:a="data-theme",value:l,children:c,nonce:u})=>{let[d,h]=O.useState(()=>zp(o,s)),[p,f]=O.useState(()=>zp(o)),g=l?Object.values(l):i,m=O.useCallback(C=>{let S=C;if(!S)return;C==="system"&&n&&(S=Mp());let I=l?l[S]:S,_=t?hT():null,P=document.documentElement;if(a==="class"?(P.classList.remove(...g),I&&P.classList.add(I)):I?P.setAttribute(a,I):P.removeAttribute(a),r){let T=Ns.includes(s)?s:null,N=Ns.includes(S)?S:T;P.style.colorScheme=N}_==null||_()},[]),b=O.useCallback(C=>{let S=typeof C=="function"?C(C):C;h(S);try{localStorage.setItem(o,S)}catch{}},[e]),x=O.useCallback(C=>{let S=Mp(C);f(S),d==="system"&&n&&!e&&m("system")},[d,e]);O.useEffect(()=>{let C=window.matchMedia(dc);return C.addListener(x),x(C),()=>C.removeListener(x)},[x]),O.useEffect(()=>{let C=S=>{if(S.key!==o)return;let I=S.newValue||s;b(I)};return window.addEventListener("storage",C),()=>window.removeEventListener("storage",C)},[b]),O.useEffect(()=>{m(e??d)},[e,d]);let k=O.useMemo(()=>({theme:d,setTheme:b,forcedTheme:e,resolvedTheme:d==="system"?p:d,themes:n?[...i,"system"]:i,systemTheme:n?p:void 0}),[d,b,e,p,n,i]);return O.createElement(Dp.Provider,{value:k},O.createElement(dT,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:r,storageKey:o,themes:i,defaultTheme:s,attribute:a,value:l,children:c,attrs:g,nonce:u}),c)},dT=O.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,attrs:a,nonce:l})=>{let c=i==="system",u=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(f=>`'${f}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=o?Ns.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(f,g=!1,m=!0)=>{let b=s?s[f]:f,x=g?f+"|| ''":`'${b}'`,k="";return o&&m&&!g&&Ns.includes(f)&&(k+=`d.style.colorScheme = '${f}';`),n==="class"?g||b?k+=`c.add(${x})`:k+="null":b&&(k+=`d[s](n,${x})`),k},p=e?`!function(){${u}${h(e)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${dc}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}${c?"":"else{"+h(i,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}else{${h(i,!1,!1)};}${d}}catch(t){}}();`;return O.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:p}})}),zp=(e,t)=>{if(aT)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},hT=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},Mp=e=>(e||(e=window.matchMedia(dc)),e.matches?"dark":"light");const fT=e=>v.jsx(lT,{attribute:"class",disableTransitionOnChange:!0,...e});/** -======= - `,n.body.appendChild(r)};function IE(e){if(!(!e||e.ownerDocument.activeElement!==e))try{const{selectionStart:t,selectionEnd:n,value:r}=e,i=r.substring(0,t),o=r.substring(n);return{start:t,end:n,value:r,beforeTxt:i,afterTxt:o}}catch{}}function PE(e,t){if(!(!e||e.ownerDocument.activeElement!==e)){if(!t){e.setSelectionRange(e.value.length,e.value.length);return}try{const{value:n}=e,{beforeTxt:r="",afterTxt:i="",start:o}=t;let s=n.length;if(n.endsWith(i))s=n.length-i.length;else if(n.startsWith(r))s=r.length;else if(o!=null){const a=r[o-1],l=n.indexOf(a,o-1);l!==-1&&(s=l+1)}e.setSelectionRange(s,s)}catch{}}}var RE=(e,t={})=>new Intl.NumberFormat(e,t),TE=(e,t={})=>new Vh(e,t),hl=(e,t)=>{const{prop:n,computed:r}=t;return n("formatOptions")?e===""?Number.NaN:r("parser").parse(e):parseFloat(e)},Dn=(e,t)=>{const{prop:n,computed:r}=t;return Number.isNaN(e)?"":n("formatOptions")?r("formatter").format(e):e.toString()},NE=(e,t)=>{let n=e!==void 0&&!Number.isNaN(e)?e:1;return(t==null?void 0:t.style)==="percent"&&(e===void 0||Number.isNaN(e))&&(n=.01),n},{choose:AE,guards:_E,createMachine:VE}=Au(),{not:jh,and:Wh}=_E;VE({props({props:e}){const t=NE(e.step,e.formatOptions);return{dir:"ltr",locale:"en-US",focusInputOnChange:!0,clampValueOnBlur:!e.allowOverflow,allowOverflow:!1,inputMode:"decimal",pattern:"-?[0-9]*(.[0-9]+)?",defaultValue:"",step:t,min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,spinOnPress:!0,...e,translations:{incrementLabel:"increment value",decrementLabel:"decrease value",...e.translations}}},initialState(){return"idle"},context({prop:e,bindable:t,getComputed:n}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(r){var s;const i=n(),o=hl(r,{computed:i,prop:e});(s=e("onValueChange"))==null||s({value:r,valueAsNumber:o})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash(r){return r?`x:${r.x}, y:${r.y}`:""}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",valueAsNumber:({context:e,computed:t,prop:n})=>hl(e.get("value"),{computed:t,prop:n}),formattedValue:({computed:e,prop:t})=>Dn(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>k0(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>E0(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!O0(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>e.get("value")==="",isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>{var n,r;return(r=(n=e("translations")).valueText)==null?void 0:r.call(n,t.get("value"))},formatter:Nu(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>RE(e,t)),parser:Nu(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>TE(e,t))},watch({track:e,action:t,context:n,computed:r,prop:i}){e([()=>n.get("value"),()=>i("locale")],()=>{t(["syncInputElement"])}),e([()=>r("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>n.hash("scrubberCursorPoint")],()=>{t(["setVirtualCursorPosition"])})},effects:["trackFormControl"],on:{"VALUE.SET":{actions:["setRawValue"]},"VALUE.CLEAR":{actions:["clearValue"]},"VALUE.INCREMENT":{actions:["increment"]},"VALUE.DECREMENT":{actions:["decrement"]}},states:{idle:{on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","invokeOnFocus","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","invokeOnFocus","setHint","setCursorPoint"]},"INPUT.FOCUS":{target:"focused",actions:["focusInput","invokeOnFocus"]}}},focused:{tags:["focus"],effects:["attachWheelListener"],on:{"TRIGGER.PRESS_DOWN":[{guard:"isTouchPointer",target:"before:spin",actions:["setHint"]},{target:"before:spin",actions:["focusInput","setHint"]}],"SCRUBBER.PRESS_DOWN":{target:"scrubbing",actions:["focusInput","setHint","setCursorPoint"]},"INPUT.ARROW_UP":{actions:["increment"]},"INPUT.ARROW_DOWN":{actions:["decrement"]},"INPUT.HOME":{actions:["decrementToMin"]},"INPUT.END":{actions:["incrementToMax"]},"INPUT.CHANGE":{actions:["setValue","setHint"]},"INPUT.BLUR":[{guard:Wh("clampValueOnBlur",jh("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:jh("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:AE([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:Wh("isInRange","spinOnPress")},"TRIGGER.PRESS_UP":[{guard:"isTouchPointer",target:"focused",actions:["clearHint"]},{target:"focused",actions:["focusInput","clearHint"]}]}},spinning:{tags:["focus"],effects:["trackButtonDisabled","spinValue"],on:{SPIN:[{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}],"TRIGGER.PRESS_UP":{target:"focused",actions:["focusInput","clearHint"]}}},scrubbing:{tags:["focus"],effects:["activatePointerLock","trackMousemove","setupVirtualCursor","preventTextSelection"],on:{"SCRUBBER.POINTER_UP":{target:"focused",actions:["focusInput","clearCursorPoint"]},"SCRUBBER.POINTER_MOVE":[{guard:"isIncrementHint",actions:["increment","setCursorPoint"]},{guard:"isDecrementHint",actions:["decrement","setCursorPoint"]}]}}},implementations:{guards:{clampValueOnBlur:({prop:e})=>e("clampValueOnBlur"),spinOnPress:({prop:e})=>!!e("spinOnPress"),isInRange:({computed:e})=>!e("isOutOfRange"),isDecrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="decrement",isIncrementHint:({context:e,event:t})=>(t.hint??e.get("hint"))==="increment",isTouchPointer:({event:e})=>e.pointerType==="touch"},effects:{waitForChangeDelay({send:e}){const t=setTimeout(()=>{e({type:"CHANGE_DELAY"})},300);return()=>clearTimeout(t)},spinValue({send:e}){const t=setInterval(()=>{e({type:"SPIN"})},50);return()=>clearInterval(t)},trackFormControl({context:e,scope:t}){const n=is(t);return xa(n,{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){const n=e.get("scrubberCursorPoint");return wE(t,n)},preventTextSelection({scope:e}){return EE(e)},trackButtonDisabled({context:e,scope:t,send:n}){const r=e.get("hint"),i=SE(t,r);return Eo(i,{attributes:["disabled"],callback(){n({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:n}){const r=is(e);if(!r||!e.isActiveElement(r)||!n("allowMouseWheel"))return;function i(o){o.preventDefault();const s=Math.sign(o.deltaY)*-1;s===1?t({type:"VALUE.INCREMENT"}):s===-1&&t({type:"VALUE.DECREMENT"})}return he(r,"wheel",i,{passive:!1})},activatePointerLock({scope:e}){if(!wu())return wx(e.getDoc())},trackMousemove({scope:e,send:t,context:n,computed:r}){const i=e.getDoc();function o(a){const l=n.get("scrubberCursorPoint"),c=r("isRtl"),u=kE(e,{point:l,isRtl:c,event:a});u.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:u.hint,point:u.point})}function s(){t({type:"SCRUBBER.POINTER_UP"})}return po(he(i,"mousemove",o,!1),he(i,"mouseup",s,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const n=is(e);e.isActiveElement(n)||Z(()=>n==null?void 0:n.focus({preventScroll:!0}))},increment({context:e,event:t,prop:n,computed:r}){let i=T0(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(i=Ue(i,n("min"),n("max"))),e.set("value",Dn(i,{computed:r,prop:n}))},decrement({context:e,event:t,prop:n,computed:r}){let i=N0(r("valueAsNumber"),t.step??n("step"));n("allowOverflow")||(i=Ue(i,n("min"),n("max"))),e.set("value",Dn(i,{computed:r,prop:n}))},setClampedValue({context:e,prop:t,computed:n}){const r=Ue(n("valueAsNumber"),t("min"),t("max"));e.set("value",Dn(r,{computed:n,prop:t}))},setRawValue({context:e,event:t,prop:n,computed:r}){let i=hl(t.value,{computed:r,prop:n});n("allowOverflow")||(i=Ue(i,n("min"),n("max"))),e.set("value",Dn(i,{computed:r,prop:n}))},setValue({context:e,event:t}){var r;const n=((r=t.target)==null?void 0:r.value)??t.value;e.set("value",n)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:n}){const r=Dn(t("max"),{computed:n,prop:t});e.set("value",r)},decrementToMin({context:e,prop:t,computed:n}){const r=Dn(t("min"),{computed:n,prop:t});e.set("value",r)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){var n;(n=t("onFocusChange"))==null||n({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){var n;(n=t("onFocusChange"))==null||n({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:n}){var i;if(n.type==="INPUT.CHANGE")return;const r=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";(i=t("onValueInvalid"))==null||i({reason:r,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:n,scope:r}){const i=t.type.endsWith("CHANGE")?e.get("value"):n("formattedValue"),o=is(r),s=IE(o);Z(()=>{wo(o,i),PE(o,s)})},setFormattedValue({context:e,computed:t}){e.set("value",t("formattedValue"))},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){const n=Bh(t),r=e.get("scrubberCursorPoint");!n||!r||(n.style.transform=`translate3d(${r.x}px, ${r.y}px, 0px)`)}}}}),U()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var Hh=G("pinInput").parts("root","label","input","control");Hh.build(),U()(["autoFocus","blurOnComplete","count","defaultValue","dir","disabled","form","getRootNode","id","ids","invalid","mask","name","onValueChange","onValueComplete","onValueInvalid","otp","pattern","placeholder","readOnly","required","selectOnFocus","translations","type","value"]);var Uh=G("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");Uh.build(),U()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);const Gh=e=>{var l;const{children:t,disabled:n}=e,[r,i]=E.useState((l=e.container)==null?void 0:l.current),o=E.useSyncExternalStore(LE,()=>!1,()=>!0),{getRootNode:s}=pu();if(E.useEffect(()=>{i(()=>{var c;return(c=e.container)==null?void 0:c.current})},[e.container]),o||n)return v.jsx(v.Fragment,{children:t});const a=r??FE(s);return v.jsx(v.Fragment,{children:E.Children.map(t,c=>te.createPortal(c,a))})},FE=e=>{const t=e==null?void 0:e(),n=t.getRootNode();return fr(n)?n:Ge(t).body},LE=()=>()=>{};var fl=G("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");fl.build(),U()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var qh=G("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");qh.build(),U()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var gl=G("radio-group").parts("root","label","item","itemText","itemControl","indicator");gl.build(),U()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]),U()(["value","disabled","invalid"]);var Kh=G("rating-group").parts("root","label","item","control");Kh.build(),U()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]),U()(["index"]);var Xh=G("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");Xh.build(),U()(["dir","getRootNode","ids","id"]);const Yh=gl.rename("segment-group");Yh.build();var Qh=G("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");Qh.build();var Jh=e=>new Ko(e);Jh.empty=()=>new Ko({items:[]});var DE=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`select:${e.id}:content`},zE=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`select:${e.id}:trigger`},ME=e=>{var t;return((t=e.ids)==null?void 0:t.clearTrigger)??`select:${e.id}:clear-trigger`},$E=(e,t)=>{var n,r;return((r=(n=e.ids)==null?void 0:n.item)==null?void 0:r.call(n,t))??`select:${e.id}:option:${t}`},BE=e=>{var t;return((t=e.ids)==null?void 0:t.hiddenSelect)??`select:${e.id}:select`},jE=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`select:${e.id}:positioner`},pl=e=>e.getById(BE(e)),Si=e=>e.getById(DE(e)),os=e=>e.getById(zE(e)),WE=e=>e.getById(ME(e)),Zh=e=>e.getById(jE(e)),ml=(e,t)=>t==null?null:e.getById($E(e,t)),{and:wi,not:zn,or:HE}=Zt();HE("isTriggerArrowDownEvent","isTriggerEnterEvent"),wi(zn("multiple"),"hasSelectedItems"),zn("multiple"),wi(zn("multiple"),"hasSelectedItems"),zn("multiple"),zn("multiple"),zn("multiple"),zn("multiple"),wi("closeOnSelect","isOpenControlled"),wi("hasHighlightedItem","loop","isLastItemHighlighted"),wi("hasHighlightedItem","loop","isFirstItemHighlighted");function ef(e){var n;const t=e.restoreFocus??((n=e.previousEvent)==null?void 0:n.restoreFocus);return t==null||!!t}U()(["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","dir","disabled","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]),U()(["item","persistFocus"]),U()(["id"]),U()(["htmlFor"]);var tf=G("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");tf.build(),U()(["aria-label","aria-labelledby","dir","disabled","form","getAriaValueText","getRootNode","id","ids","invalid","max","min","minStepsBetweenThumbs","name","onFocusChange","onValueChange","onValueChangeEnd","orientation","origin","readOnly","step","thumbAlignment","thumbAlignment","thumbSize","value","defaultValue"]),U()(["index","name"]);var nf=G("switch").parts("root","label","control","thumb");nf.build(),U()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);var UE=G("toast").parts("group","root","title","description","actionTrigger","closeTrigger");UE.build();var GE=(e,t)=>({...t,...vo(e)});function qE(e){const t=GE(e,{placement:"bottom",overlap:!1,max:24,gap:16,offsets:"1rem",hotkey:["altKey","KeyT"],removeDelay:200,pauseOnPageIdle:!0});let n=[],r=[],i=new Set,o=[];const s=I=>(n.push(I),()=>{const F=n.indexOf(I);n.splice(F,1)}),a=I=>(n.forEach(F=>F(I)),I),l=I=>{if(r.length>=t.max){o.push(I);return}a(I),r.unshift(I)},c=()=>{for(;o.length>0&&r.length{const F=I.id??`toast:${b0()}`,Y=r.find(z=>z.id===F);return i.has(F)&&i.delete(F),Y?r=r.map(z=>z.id===F?a({...z,...I,id:F}):z):l({id:F,duration:t.duration,removeDelay:t.removeDelay,type:"info",...I,stacked:!t.overlap,gap:t.gap}),F},d=I=>(i.add(I),I?(n.forEach(F=>F({id:I,dismiss:!0})),r=r.filter(F=>F.id!==I),c()):(r.forEach(F=>{n.forEach(Y=>Y({id:F.id,dismiss:!0}))}),r=[],o=[]),I);return{attrs:t,subscribe:s,create:u,update:(I,F)=>u({id:I,...F}),remove:d,dismiss:I=>{I!=null?r=r.map(F=>F.id===I?a({...F,message:"DISMISS"}):F):r=r.map(F=>a({...F,message:"DISMISS"}))},error:I=>u({...I,type:"error"}),success:I=>u({...I,type:"success"}),info:I=>u({...I,type:"info"}),warning:I=>u({...I,type:"warning"}),loading:I=>u({...I,type:"loading"}),getVisibleToasts:()=>r.filter(I=>!i.has(I.id)),getCount:()=>r.length,promise:(I,F,Y={})=>{if(!F||!F.loading){ai("[zag-js > toast] toaster.promise() requires at least a 'loading' option to be specified");return}const z=u({...Y,...F.loading,promise:I,type:"loading"});let V=!0,B;const K=go(I).then(async H=>{if(B=["resolve",H],KE(H)&&!H.ok){V=!1;const X=go(F.error,`HTTP Error! status: ${H.status}`);u({...Y,...X,id:z,type:"error"})}else if(F.success!==void 0){V=!1;const X=go(F.success,H);u({...Y,...X,id:z,type:"success"})}}).catch(async H=>{if(B=["reject",H],F.error!==void 0){V=!1;const X=go(F.error,H);u({...Y,...X,id:z,type:"error"})}}).finally(()=>{var H;V&&d(z),(H=F.finally)==null||H.call(F)});return{id:z,unwrap:()=>new Promise((H,X)=>K.then(()=>B[0]==="reject"?X(B[1]):H(B[1])).catch(X))}},pause:I=>{I!=null?r=r.map(F=>F.id===I?a({...F,message:"PAUSE"}):F):r=r.map(F=>a({...F,message:"PAUSE"}))},resume:I=>{I!=null?r=r.map(F=>F.id===I?a({...F,message:"RESUME"}):F):r=r.map(F=>a({...F,message:"RESUME"}))},isVisible:I=>!i.has(I)&&!!r.find(F=>F.id===I),isDismissed:I=>i.has(I),expand:()=>{r=r.map(I=>a({...I,stacked:!0}))},collapse:()=>{r=r.map(I=>a({...I,stacked:!1}))}}}var KE=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number";const XE=e=>qE(e);var rf=G("tooltip").parts("trigger","arrow","arrowTip","positioner","content");rf.build();var YE=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`tooltip:${e.id}:trigger`},QE=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`tooltip:${e.id}:popper`},vl=e=>e.getById(YE(e)),of=e=>e.getById(QE(e)),Mn=A0({id:null}),{and:JE,not:sf}=Zt();JE("noVisibleTooltip",sf("hasPointerMoveOpened")),sf("hasPointerMoveOpened"),U()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);function af(e,t=[]){const n=Object.assign({},e);for(const r of t)r in n&&delete n[r];return n}const ZE=(e,t)=>{var l;if(!e||typeof e!="string")return{invalid:!0,value:e};const[n,r]=e.split("/");if(!n||!r||n==="currentBg")return{invalid:!0,value:n};const i=t(`colors.${n}`),o=(l=t.raw(`opacity.${r}`))==null?void 0:l.value;if(!o&&isNaN(Number(r)))return{invalid:!0,value:n};const s=o?Number(o)*100+"%":`${r}%`,a=i??n;return{invalid:!1,color:a,value:`color-mix(in srgb, ${a} ${s}, transparent)`}},ae=e=>(t,n)=>{const r=n.utils.colorMix(t);if(r.invalid)return{[e]:t};const i="--mix-"+e;return{[i]:r.value,[e]:`var(${i}, ${r.color})`}};function bl(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(n=>bl(n));const t=Object.create(Object.getPrototypeOf(e));for(const n of Object.keys(e))t[n]=bl(e[n]);return t}function yl(e,t){if(t==null)return e;for(const n of Object.keys(t))if(!(t[n]===void 0||n==="__proto__"))if(!He(e[n])&&He(t[n]))Object.assign(e,{[n]:t[n]});else if(e[n]&&He(t[n]))yl(e[n],t[n]);else if(Array.isArray(t[n])&&Array.isArray(e[n])){let r=0;for(;re!=null;function At(e,t,n={}){const{stop:r,getKey:i}=n;function o(s,a=[]){if(He(s)||Array.isArray(s)){const l={};for(const[c,u]of Object.entries(s)){const d=(i==null?void 0:i(c,u))??c,h=[...a,d];if(r!=null&&r(s,h))return t(s,a);const m=o(u,h);xl(m)&&(l[d]=m)}return l}return t(s,a)}return o(e)}function lf(e,t){return Array.isArray(e)?e.map(n=>xl(n)?t(n):n):He(e)?At(e,n=>t(n)):xl(e)?t(e):e}const ss=["value","type","description"],ek=e=>e&&typeof e=="object"&&!Array.isArray(e),cf=(...e)=>{var n;const t=Or({},...e.map(bl));return(n=t.theme)!=null&&n.tokens&&At(t.theme.tokens,r=>{const s=Object.keys(r).filter(l=>!ss.includes(l)).length>0,a=ss.some(l=>r[l]!=null);return s&&a&&(r.DEFAULT||(r.DEFAULT={}),ss.forEach(l=>{var c;r[l]!=null&&((c=r.DEFAULT)[l]||(c[l]=r[l]),delete r[l])})),r},{stop(r){return ek(r)&&Object.keys(r).some(i=>ss.includes(i)||i!==i.toLowerCase()&&i!==i.toUpperCase())}}),t},tk=e=>e,Se=e=>e,q=e=>e,nk=e=>e,rk=e=>e,Ir=e=>e,ik=e=>e,ok=e=>e,sk=e=>e;function uf(){const e=t=>t;return new Proxy(e,{get(){return e}})}const xe=uf(),Cl=uf(),Sl=e=>e,ak=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function lk(e){return`${e}`.replace(ak,t=>`\\${t}`)}const ck=/[A-Z]/g;function uk(e){return e.replace(ck,t=>`-${t.toLowerCase()}`)}function df(e,t={}){const{fallback:n="",prefix:r=""}=t,i=uk(["-",r,lk(e)].filter(Boolean).join("-"));return{var:i,ref:`var(${i}${n?`, ${n}`:""})`}}const dk=e=>/^var\(--.+\)$/.test(e),Re=(e,t)=>t!=null?`${e}(${t})`:t,$n=e=>{if(dk(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},hf=e=>({values:["outside","inside","mixed","none"],transform(t,{token:n}){const r=n("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":r,[e]:{outlineOffset:"0px",outlineWidth:"var(--focus-ring-width, 1px)",outlineColor:"var(--focus-ring-color)",outlineStyle:"var(--focus-ring-style, solid)",borderColor:"var(--focus-ring-color)"}},outside:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 2px)",outlineOffset:"var(--focus-ring-offset, 2px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"var(--focus-ring-color)"}},mixed:{"--focus-ring-color":r,[e]:{outlineWidth:"var(--focus-ring-width, 3px)",outlineStyle:"var(--focus-ring-style, solid)",outlineColor:"color-mix(in srgb, var(--focus-ring-color), transparent 60%)",borderColor:"var(--focus-ring-color)"}},none:{"--focus-ring-color":r,[e]:{outline:"none"}}}[t]??{}}}),hk=ae("borderColor"),jt=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),fk=tk({hover:["@media (hover: hover)","&:is(:hover, [data-hover]):not(:disabled, [data-disabled])"],active:"&:is(:active, [data-active]):not(:disabled, [data-disabled], [data-state=open])",focus:"&:is(:focus, [data-focus])",focusWithin:"&:is(:focus-within, [data-focus-within])",focusVisible:"&:is(:focus-visible, [data-focus-visible])",disabled:"&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",visited:"&:visited",target:"&:target",readOnly:"&:is([data-readonly], [aria-readonly=true], [readonly])",readWrite:"&:read-write",empty:"&:is(:empty, [data-empty])",checked:"&:is(:checked, [data-checked], [aria-checked=true], [data-state=checked])",enabled:"&:enabled",expanded:"&:is([aria-expanded=true], [data-expanded], [data-state=expanded])",highlighted:"&[data-highlighted]",complete:"&[data-complete]",incomplete:"&[data-incomplete]",dragging:"&[data-dragging]",before:"&::before",after:"&::after",firstLetter:"&::first-letter",firstLine:"&::first-line",marker:"&::marker",selection:"&::selection",file:"&::file-selector-button",backdrop:"&::backdrop",first:"&:first-of-type",last:"&:last-of-type",notFirst:"&:not(:first-of-type)",notLast:"&:not(:last-of-type)",only:"&:only-child",even:"&:nth-of-type(even)",odd:"&:nth-of-type(odd)",peerFocus:".peer:is(:focus, [data-focus]) ~ &",peerHover:".peer:is(:hover, [data-hover]):not(:disabled, [data-disabled]) ~ &",peerActive:".peer:is(:active, [data-active]):not(:disabled, [data-disabled]) ~ &",peerFocusWithin:".peer:focus-within ~ &",peerFocusVisible:".peer:is(:focus-visible, [data-focus-visible]) ~ &",peerDisabled:".peer:is(:disabled, [disabled], [data-disabled]) ~ &",peerChecked:".peer:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) ~ &",peerInvalid:".peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &",peerExpanded:".peer:is([aria-expanded=true], [data-expanded], [data-state=expanded]) ~ &",peerPlaceholderShown:".peer:placeholder-shown ~ &",groupFocus:".group:is(:focus, [data-focus]) &",groupHover:".group:is(:hover, [data-hover]):not(:disabled, [data-disabled]) &",groupActive:".group:is(:active, [data-active]):not(:disabled, [data-disabled]) &",groupFocusWithin:".group:focus-within &",groupFocusVisible:".group:is(:focus-visible, [data-focus-visible]) &",groupDisabled:".group:is(:disabled, [disabled], [data-disabled]) &",groupChecked:".group:is(:checked, [data-checked], [aria-checked=true], [data-state=checked]) &",groupExpanded:".group:is([aria-expanded=true], [data-expanded], [data-state=expanded]) &",groupInvalid:".group:invalid &",indeterminate:"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state=indeterminate])",required:"&:is([data-required], [aria-required=true])",valid:"&:is([data-valid], [data-state=valid])",invalid:"&:is([data-invalid], [aria-invalid=true], [data-state=invalid])",autofill:"&:autofill",inRange:"&:is(:in-range, [data-in-range])",outOfRange:"&:is(:out-of-range, [data-outside-range])",placeholder:"&::placeholder, &[data-placeholder]",placeholderShown:"&:is(:placeholder-shown, [data-placeholder-shown])",pressed:"&:is([aria-pressed=true], [data-pressed])",selected:"&:is([aria-selected=true], [data-selected])",grabbed:"&:is([aria-grabbed=true], [data-grabbed])",underValue:"&[data-state=under-value]",overValue:"&[data-state=over-value]",atValue:"&[data-state=at-value]",default:"&:default",optional:"&:optional",open:"&:is([open], [data-open], [data-state=open])",closed:"&:is([closed], [data-closed], [data-state=closed])",fullscreen:"&:is(:fullscreen, [data-fullscreen])",loading:"&:is([data-loading], [aria-busy=true])",hidden:"&:is([hidden], [data-hidden])",current:"&[data-current]",currentPage:"&[aria-current=page]",currentStep:"&[aria-current=step]",today:"&[data-today]",unavailable:"&[data-unavailable]",rangeStart:"&[data-range-start]",rangeEnd:"&[data-range-end]",now:"&[data-now]",topmost:"&[data-topmost]",motionReduce:"@media (prefers-reduced-motion: reduce)",motionSafe:"@media (prefers-reduced-motion: no-preference)",print:"@media print",landscape:"@media (orientation: landscape)",portrait:"@media (orientation: portrait)",dark:".dark &, .dark .chakra-theme:not(.light) &",light:":root &, .light &",osDark:"@media (prefers-color-scheme: dark)",osLight:"@media (prefers-color-scheme: light)",highContrast:"@media (forced-colors: active)",lessContrast:"@media (prefers-contrast: less)",moreContrast:"@media (prefers-contrast: more)",ltr:"[dir=ltr] &",rtl:"[dir=rtl] &",scrollbar:"&::-webkit-scrollbar",scrollbarThumb:"&::-webkit-scrollbar-thumb",scrollbarTrack:"&::-webkit-scrollbar-track",horizontal:"&[data-orientation=horizontal]",vertical:"&[data-orientation=vertical]",icon:"& :where(svg)",starting:"@starting-style"}),Pr=df("bg-currentcolor"),ff=e=>e===Pr.ref||e==="currentBg",le=e=>({...e("colors"),currentBg:Pr}),gk=Sl({conditions:fk,utilities:{background:{values:le,shorthand:["bg"],transform(e,t){if(ff(t.raw))return{background:Pr.ref};const n=ae("background")(e,t);return{...n,[Pr.var]:n==null?void 0:n.background}}},backgroundColor:{values:le,shorthand:["bgColor"],transform(e,t){if(ff(t.raw))return{backgroundColor:Pr.ref};const n=ae("backgroundColor")(e,t);return{...n,[Pr.var]:n==null?void 0:n.backgroundColor}}},backgroundSize:{shorthand:["bgSize"]},backgroundPosition:{shorthand:["bgPos"]},backgroundRepeat:{shorthand:["bgRepeat"]},backgroundAttachment:{shorthand:["bgAttachment"]},backgroundClip:{shorthand:["bgClip"],values:["text"],transform(e){return e==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e}}},backgroundGradient:{shorthand:["bgGradient"],values(e){return{...e("gradients"),"to-t":"linear-gradient(to top, var(--gradient))","to-tr":"linear-gradient(to top right, var(--gradient))","to-r":"linear-gradient(to right, var(--gradient))","to-br":"linear-gradient(to bottom right, var(--gradient))","to-b":"linear-gradient(to bottom, var(--gradient))","to-bl":"linear-gradient(to bottom left, var(--gradient))","to-l":"linear-gradient(to left, var(--gradient))","to-tl":"linear-gradient(to top left, var(--gradient))"}},transform(e){return{"--gradient-stops":"var(--gradient-from), var(--gradient-to)","--gradient":"var(--gradient-via-stops, var(--gradient-stops))",backgroundImage:e}}},gradientFrom:{values:le,transform:ae("--gradient-from")},gradientTo:{values:le,transform:ae("--gradient-to")},gradientVia:{values:le,transform(e,t){return{...ae("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"}}},backgroundImage:{values(e){return{...e("gradients"),...e("assets")}},shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:le,transform:ae("borderColor")},borderTopColor:{values:le,transform:ae("borderTopColor")},borderBlockStartColor:{values:le,transform:ae("borderBlockStartColor")},borderBottomColor:{values:le,transform:ae("borderBottomColor")},borderBlockEndColor:{values:le,transform:ae("borderBlockEndColor")},borderLeftColor:{values:le,transform:ae("borderLeftColor")},borderInlineStartColor:{values:le,shorthand:["borderStartColor"],transform:ae("borderInlineStartColor")},borderRightColor:{values:le,transform:ae("borderRightColor")},borderInlineEndColor:{values:le,shorthand:["borderEndColor"],transform:ae("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:le,transform:ae("color")},fill:{values:le,transform:ae("fill")},stroke:{values:le,transform:ae("stroke")},accentColor:{values:le,transform:ae("accentColor")},divideX:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}}}},divideY:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}}}},divideColor:{values:le,transform(e,t){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":hk(e,t)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:le,transform:ae("--shadow-color"),shorthand:["shadowColor"]},mixBlendMode:{shorthand:["blendMode"]},backgroundBlendMode:{shorthand:["bgBlendMode"]},opacity:{values:"opacity"},filter:{transform(e){return e!=="auto"?{filter:e}:{filter:"var(--blur) var(--brightness) var(--contrast) var(--grayscale) var(--hue-rotate) var(--invert) var(--saturate) var(--sepia) var(--drop-shadow)"}}},blur:{values:"blurs",transform:e=>({"--blur":Re("blur",e)})},brightness:{transform:e=>({"--brightness":Re("brightness",e)})},contrast:{transform:e=>({"--contrast":Re("contrast",e)})},grayscale:{transform:e=>({"--grayscale":Re("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":Re("hue-rotate",$n(e))})},invert:{transform:e=>({"--invert":Re("invert",e)})},saturate:{transform:e=>({"--saturate":Re("saturate",e)})},sepia:{transform:e=>({"--sepia":Re("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":Re("drop-shadow",e)})},backdropFilter:{transform(e){return e!=="auto"?{backdropFilter:e}:{backdropFilter:"var(--backdrop-blur) var(--backdrop-brightness) var(--backdrop-contrast) var(--backdrop-grayscale) var(--backdrop-hue-rotate) var(--backdrop-invert) var(--backdrop-opacity) var(--backdrop-saturate) var(--backdrop-sepia)"}}},backdropBlur:{values:"blurs",transform:e=>({"--backdrop-blur":Re("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":Re("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":Re("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":Re("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":Re("hue-rotate",$n(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":Re("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":Re("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":Re("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":Re("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:le,transform:ae("outlineColor")},focusRing:hf("&:is(:focus, [data-focus])"),focusVisibleRing:hf("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:le,transform:ae("--focus-ring-color")},focusRingOffset:{values:"spacing",transform:e=>({"--focus-ring-offset":e})},focusRingWidth:{values:"borderWidths",property:"outlineWidth",transform:e=>({"--focus-ring-width":e})},focusRingStyle:{values:"borderStyles",property:"outlineStyle",transform:e=>({"--focus-ring-style":e})},aspectRatio:{values:"aspectRatios"},width:{values:"sizes",shorthand:["w"]},inlineSize:{values:"sizes"},height:{values:"sizes",shorthand:["h"]},blockSize:{values:"sizes"},boxSize:{values:"sizes",property:"width",transform:e=>({width:e,height:e})},minWidth:{values:"sizes",shorthand:["minW"]},minInlineSize:{values:"sizes"},minHeight:{values:"sizes",shorthand:["minH"]},minBlockSize:{values:"sizes"},maxWidth:{values:"sizes",shorthand:["maxW"]},maxInlineSize:{values:"sizes"},maxHeight:{values:"sizes",shorthand:["maxH"]},maxBlockSize:{values:"sizes"},hideFrom:{values:"breakpoints",transform:(e,{raw:t,token:n})=>({[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:n}){return{[n.raw(`breakpoints.${t}`)?`@breakpoint ${t}Down`:`@media screen and (max-width: ${e})`]:{display:"none"}}}},overscrollBehavior:{shorthand:["overscroll"]},overscrollBehaviorX:{shorthand:["overscrollX"]},overscrollBehaviorY:{shorthand:["overscrollY"]},scrollbar:{values:["visible","hidden"],transform(e){switch(e){case"visible":return{msOverflowStyle:"auto",scrollbarWidth:"auto","&::-webkit-scrollbar":{display:"block"}};case"hidden":return{msOverflowStyle:"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}};default:return{}}}},scrollbarColor:{values:le,transform:ae("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform(e){return{"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"}}},ringColor:{values:le,transform:ae("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:le,transform:ae("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:le,transform:ae("textDecorationColor")},textShadow:{values:"shadows"},transform:{transform:e=>{let t=e;return e==="auto"&&(t="translateX(var(--translate-x, 0)) translateY(var(--translate-y, 0)) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),e==="auto-gpu"&&(t="translate3d(var(--translate-x, 0), var(--translate-y, 0), 0) rotate(var(--rotate, 0)) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1)) skewX(var(--skew-x, 0)) skewY(var(--skew-y, 0))"),{transform:t}}},skewX:{transform:e=>({"--skew-x":$n(e)})},skewY:{transform:e=>({"--skew-y":$n(e)})},scaleX:{transform:e=>({"--scale-x":e})},scaleY:{transform:e=>({"--scale-y":e})},scale:{transform(e){return e!=="auto"?{scale:e}:{scale:"var(--scale-x, 1) var(--scale-y, 1)"}}},spaceXReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":e?"1":void 0}}}},spaceX:{property:"marginInlineStart",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-x-reverse":"0",marginInlineStart:`calc(${e} * calc(1 - var(--space-x-reverse)))`,marginInlineEnd:`calc(${e} * var(--space-x-reverse))`}})},spaceYReverse:{values:{type:"boolean"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":e?"1":void 0}}}},spaceY:{property:"marginTop",values:"spacing",transform:e=>({"& > :not(style, [hidden]) ~ :not(style, [hidden])":{"--space-y-reverse":"0",marginTop:`calc(${e} * calc(1 - var(--space-y-reverse)))`,marginBottom:`calc(${e} * var(--space-y-reverse))`}})},rotate:{transform(e){return e!=="auto"?{rotate:$n(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":$n(e)}}},rotateY:{transform(e){return{"--rotate-y":$n(e)}}},translate:{transform(e){return e!=="auto"?{translate:e}:{translate:"var(--translate-x) var(--translate-y)"}}},translateX:{values:"spacing",transform:e=>({"--translate-x":e})},translateY:{values:"spacing",transform:e=>({"--translate-y":e})},transition:{values:["all","common","colors","opacity","position","backgrounds","size","shadow","transform"],transform(e){switch(e){case"all":return jt("all");case"position":return jt("left, right, top, bottom, inset-inline, inset-block");case"colors":return jt("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return jt("opacity");case"shadow":return jt("box-shadow");case"transform":return jt("transform");case"size":return jt("width, height");case"backgrounds":return jt("background, background-color, background-image, background-position");case"common":return jt("color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter");default:return{transition:e}}}},transitionDuration:{values:"durations"},transitionProperty:{values:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, translate, transform",colors:"background-color, border-color, color, fill, stroke",size:"width, height",position:"left, right, top, bottom, inset-inline, inset-block",background:"background, background-color, background-image, background-position"}},transitionTimingFunction:{values:"easings"},animation:{values:"animations"},animationDuration:{values:"durations"},animationDelay:{values:"durations"},animationTimingFunction:{values:"easings"},fontFamily:{values:"fonts"},fontSize:{values:"fontSizes"},fontWeight:{values:"fontWeights"},lineHeight:{values:"lineHeights"},letterSpacing:{values:"letterSpacings"},textIndent:{values:"spacing"},truncate:{values:{type:"boolean"},transform(e){return e===!0?{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}:{}}},lineClamp:{transform(e){return e==="none"?{WebkitLineClamp:"unset"}:{overflow:"hidden",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",textWrap:"wrap"}}},borderSpacing:{values:e=>({...e("spacing"),auto:"var(--border-spacing-x, 0) var(--border-spacing-y, 0)"})},borderSpacingX:{values:"spacing",transform(e){return{"--border-spacing-x":e}}},borderSpacingY:{values:"spacing",transform(e){return{"--border-spacing-y":e}}},srOnly:{values:{type:"boolean"},transform(e){return pk[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:le,transform:ae("caretColor")},cursor:{values:"cursor"}}}),pk={true:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},false:{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",clip:"auto",whiteSpace:"normal"}};var mk="",vk=mk.split(","),bk="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical",yk=bk.split(",").concat(vk),xk=new Map(yk.map(e=>[e,!0]));function Ck(e){const t=Object.create(null);return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var Sk=/&|@/,wk=Ck(e=>xk.has(e)||e.startsWith("--")||Sk.test(e));function gf(e,t){const n={};return At(e,(r,i)=>{r&&(n[i.join(".")]=r.value)},{stop:t}),n}var Ek=Ei;Ei.default=Ei,Ei.stable=vf,Ei.stableStringify=vf;var as="[...]",pf="[Circular]",Bn=[],jn=[];function mf(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Ei(e,t,n,r){typeof r>"u"&&(r=mf()),wl(e,"",0,[],void 0,0,r);var i;try{jn.length===0?i=JSON.stringify(e,t,n):i=JSON.stringify(e,bf(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Bn.length!==0;){var o=Bn.pop();o.length===4?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return i}function Rr(e,t,n,r){var i=Object.getOwnPropertyDescriptor(r,n);i.get!==void 0?i.configurable?(Object.defineProperty(r,n,{value:e}),Bn.push([r,n,t,i])):jn.push([t,n,e]):(r[n]=e,Bn.push([r,n,t]))}function wl(e,t,n,r,i,o,s){o+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;as.depthLimit){Rr(as,e,t,i);return}if(typeof s.edgesLimit<"u"&&n+1>s.edgesLimit){Rr(as,e,t,i);return}if(r.push(e),Array.isArray(e))for(a=0;at?1:0}function vf(e,t,n,r){typeof r>"u"&&(r=mf());var i=El(e,"",0,[],void 0,0,r)||e,o;try{jn.length===0?o=JSON.stringify(i,t,n):o=JSON.stringify(i,bf(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Bn.length!==0;){var s=Bn.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return o}function El(e,t,n,r,i,o,s){o+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;as.depthLimit){Rr(as,e,t,i);return}if(typeof s.edgesLimit<"u"&&n+1>s.edgesLimit){Rr(as,e,t,i);return}if(r.push(e),Array.isArray(e))for(a=0;a0)for(var r=0;r{const t=Object.create(null);function n(...r){const i=r.map(o=>Ok(o)).join("|");return t[i]===void 0&&(t[i]=e(...r)),t[i]}return n},yf=16,ls="px",kl="em",ki="rem";function xf(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),n=new RegExp(`${ls}|${kl}|${ki}`),r=e.match(new RegExp(`${t.source}(${n.source})`));return r==null?void 0:r[1]}function Cf(e=""){if(typeof e=="number")return`${e}px`;const t=xf(e);if(!t||t===ls)return e;if(t===kl||t===ki)return`${parseFloat(e)*yf}${ls}`}function Sf(e=""){const t=xf(e);if(!t||t===ki)return e;if(t===kl)return`${parseFloat(e)}${ki}`;if(t===ls)return`${parseFloat(e)/yf}${ki}`}const Ik=e=>e.charAt(0).toUpperCase()+e.slice(1);function Pk(e){const t=Rk(e),n=Object.fromEntries(t);function r(h){return n[h]}function i(h){return Tr(r(h))}function o(){const h=Object.keys(n),m=Tk(h),f=h.flatMap(g=>{const p=r(g),b=[`${g}Down`,Tr({max:cs(p.min)})],x=[g,Tr({min:p.min})],S=[`${g}Only`,i(g)];return[x,S,b]}).filter(([,g])=>g!=="").concat(m.map(([g,p])=>{const b=r(g),x=r(p);return[`${g}To${Ik(p)}`,Tr({min:b.min,max:cs(x.min)})]}));return Object.fromEntries(f)}function s(){const h=o();return Object.fromEntries(Object.entries(h))}const a=s(),l=h=>a[h];function c(){return["base",...Object.keys(n)]}function u(h){return Tr({min:r(h).min})}function d(h){return Tr({max:cs(r(h).min)})}return{values:Object.values(n),only:i,keys:c,conditions:a,getCondition:l,up:u,down:d}}function cs(e){const t=parseFloat(Cf(e)??"")-.04;return Sf(`${t}px`)}function Rk(e){return Object.entries(e).sort(([,n],[,r])=>parseInt(n,10){var a;let s=null;return i<=o.length-1&&(s=(a=o[i+1])==null?void 0:a[1]),s!=null&&(s=cs(s)),[n,{name:n,min:Sf(r),max:s}]})}function Tk(e){const t=[];return e.forEach((n,r)=>{let i=r;i++;let o=e[i];for(;o;)t.push([n,o]),i++,o=e[i]}),t}function Tr({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const Nk=(e,t)=>Object.fromEntries(Object.entries(e).map(([n,r])=>t(n,r))),Ak=e=>{const{breakpoints:t,conditions:n={}}=e,r=Nk(n,(u,d)=>[`_${u}`,d]),i=Object.assign({},r,t.conditions);function o(){return Object.keys(i)}function s(u){return o().includes(u)||/^@|&|&$/.test(u)||u.startsWith("_")}function a(u){return u.filter(d=>d!=="base").sort((d,h)=>{const m=s(d),f=s(h);return m&&!f?1:!m&&f?-1:0})}function l(u){return u.startsWith("@breakpoint")?t.getCondition(u.replace("@breakpoint ","")):u}function c(u){return Reflect.get(i,u)||u}return{keys:o,sort:a,has:s,resolve:c,breakpoints:t.keys(),expandAtRule:l}},wf=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.| -)+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.| -)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),_k=wf("width"),Vk=wf("height"),Ef=e=>({isMin:Tf(e.minMax,e.maxMin,e.min),isMax:Tf(e.maxMin,e.minMax,e.max)}),{isMin:Ol,isMax:kf}=Ef(_k),{isMin:Il,isMax:Of}=Ef(Vk),If=/print/i,Pf=/^print$/i,Fk=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,Lk=/(\d)/,Oi=Number.MAX_VALUE,Dk={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function Rf(e){const t=Fk.exec(e)||(Ol(e)||Il(e)?Lk.exec(e):null);if(!t)return Oi;if(t[0]==="0")return 0;const n=parseFloat(t[1]),r=t[2];return n*(Dk[r]||1)}function Tf(e,t,n){return r=>e.test(r)||!t.test(r)&&n.test(r)}function zk(e,t){const n=If.test(e),r=Pf.test(e),i=If.test(t),o=Pf.test(t);return n&&i?!r&&o?1:r&&!o?-1:e.localeCompare(t):n?1:i?-1:null}const Mk=yt((e,t)=>{const n=zk(e,t);if(n!==null)return n;const r=Ol(e)||Il(e),i=kf(e)||Of(e),o=Ol(t)||Il(t),s=kf(t)||Of(t);if(r&&s)return-1;if(i&&o)return 1;const a=Rf(e),l=Rf(t);return a===Oi&&l===Oi?e.localeCompare(t):a===Oi?1:l===Oi?-1:a!==l?a>l?i?-1:1:i?1:-1:e.localeCompare(t)});function Nf(e){return e.sort(([t],[n])=>Mk(t,n))}function Af(e){const t=[],n=[],r={};for(const[s,a]of Object.entries(e))s.startsWith("@media")?t.push([s,a]):s.startsWith("@container")?n.push([s,a]):He(a)?r[s]=Af(a):r[s]=a;const i=Nf(t),o=Nf(n);return{...r,...Object.fromEntries(i),...Object.fromEntries(o)}}const _f=/\s*!(important)?/i,$k=e=>Ot(e)?_f.test(e):!1,Bk=e=>Ot(e)?e.replace(_f,"").trim():e;function Vf(e){const{transform:t,conditions:n,normalize:r}=e,i=Hk(e);return yt(function(...s){const a=i(...s),l=r(a),c=Object.create(null);return At(l,(u,d)=>{const h=$k(u);if(u==null)return;const[m,...f]=n.sort(d).map(n.resolve);h&&(u=Bk(u));let g=t(m,u)??Object.create(null);g=At(g,p=>Ot(p)&&h?`${p} !important`:p,{getKey:p=>n.expandAtRule(p)}),jk(c,f.flat(),g)}),Af(c)})}function jk(e,t,n){let r=e;for(const i of t)i&&(r[i]||(r[i]=Object.create(null)),r=r[i]);Or(r,n)}function Wk(...e){return e.filter(t=>He(t)&&Object.keys(ri(t)).length>0)}function Hk(e){function t(n){const r=Wk(...n);return r.length===1?r:r.map(i=>e.normalize(i))}return yt(function(...r){return Or({},...t(r))})}const Ff=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function Uk(e){const{css:t,conditions:n,normalize:r,layers:i}=e;function o(a={}){const{base:l,variants:c,defaultVariants:u,compoundVariants:d}=Ff(a),h=Vf({conditions:n,normalize:r,transform(x,S){var C;return(C=c[x])==null?void 0:C[S]}}),m=(x={})=>{const S=r({...u,...ri(x)});let C={...l};Or(C,h(S));const w=s(d,S);return i.wrap("recipes",t(C,w))},f=Object.keys(c),g=x=>{const S=af(x,["recipe"]),[C,w]=cr(S,f);return f.includes("colorPalette")||(C.colorPalette=x.colorPalette||u.colorPalette),f.includes("orientation")&&(w.orientation=x.orientation),[C,w]},p=Object.fromEntries(Object.entries(c).map(([x,S])=>[x,Object.keys(S)]));return Object.assign(x=>t(m(x)),{className:a.className,__cva__:!0,variantMap:p,variantKeys:f,raw:m,config:a,splitVariantProps:g,merge(x){return o(Gk(e)(this,x))}})}function s(a,l){let c={};return a.forEach(u=>{Object.entries(u).every(([h,m])=>h==="css"?!0:(Array.isArray(m)?m:[m]).some(g=>l[h]===g))&&(c=t(c,u.css))}),c}return o}function Gk(e){const{css:t}=e;return function(r,i){const o=Ff(i.config),s=Jc(r.variantKeys,Object.keys(i.variants)),a=t(r.base,o.base),l=Object.fromEntries(s.map(h=>[h,t(r.config.variants[h],o.variants[h])])),c=Or(r.config.defaultVariants,o.defaultVariants),u=[...r.compoundVariants,...o.compoundVariants];return{className:st(r.className,i.className),base:a,variants:l,defaultVariants:c,compoundVariants:u}}}const qk={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},Lf={reset:0,base:1,tokens:2,recipes:3};function Kk(e){const t=e.layers??qk,r=Object.values(t).sort((i,o)=>Lf[i]-Lf[o]);return{names:r,atRule:`@layer ${r.join(", ")};`,wrap(i,o){return e.disableLayers?o:{[`@layer ${t[i]}`]:o}}}}function Xk(e){const{utility:t,normalize:n}=e,{hasShorthand:r,resolveShorthand:i}=t;return function(o){return At(o,n,{stop:s=>Array.isArray(s),getKey:r?i:void 0})}}function Yk(e){const{preflight:t}=e;if(!t)return{};const{scope:n="",level:r="parent"}=He(t)?t:{};let i="";n&&r==="parent"?i=`${n} `:n&&r==="element"&&(i=`&${n}`);const o={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},s={[n||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if(r==="element"){const a=Object.entries(o).reduce((l,[c,u])=>(l[c]={[i]:u},l),{});Object.assign(s,a)}else i?s[i]=o:Object.assign(s,o);return s}function Qk(e){const{conditions:t,isValidProperty:n}=e;return function(i){return At(i,o=>o,{getKey:(o,s)=>He(s)&&!t.has(o)&&!n(o)?Jk(o).map(a=>"&"+a).join(", "):o})}}function Jk(e){const t=[];let n=0,r="",i=!1;for(let o=0;o{const t=i=>{var o;return{base:((o=e.base)==null?void 0:o[i])??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?eO(e.compoundVariants,i):[]}},r=(e.slots??[]).map(i=>[i,t(i)]);for(const[i,o]of Object.entries(e.variants??{}))for(const[s,a]of Object.entries(o))r.forEach(([l,c])=>{var u;(u=c.variants)[i]??(u[i]={}),c.variants[i][s]=a[l]??{}});return Object.fromEntries(r)},eO=(e,t)=>e.filter(n=>n.css[t]).map(n=>({...n,css:n.css[t]}));function tO(e){const{cva:t}=e;return function(r={}){const i=Object.entries(Zk(r)).map(([d,h])=>[d,t(h)]);function o(d){const h=i.map(([m,f])=>[m,f(d)]);return Object.fromEntries(h)}const s=r.variants??{},a=Object.keys(s);function l(d){var g;const h=af(d,["recipe"]),[m,f]=cr(h,a);return a.includes("colorPalette")||(m.colorPalette=d.colorPalette||((g=r.defaultVariants)==null?void 0:g.colorPalette)),a.includes("orientation")&&(f.orientation=d.orientation),[m,f]}const c=Object.fromEntries(Object.entries(s).map(([d,h])=>[d,Object.keys(h)]));let u={};return r.className&&(u=Object.fromEntries(r.slots.map(d=>[d,`${r.className}__${d}`]))),Object.assign(o,{variantMap:c,variantKeys:a,splitVariantProps:l,classNameMap:u})}}const nO=()=>e=>Array.from(new Set(e)),rO=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,iO=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},Df=e=>(e+"").replace(rO,iO),zf=(e,t)=>{let n="",r=0,i="char",o="",s="";const a=[];for(;r{let t=0;const n=["("];for(;t{n instanceof Map?t[r]=Object.fromEntries(n):t[r]=n}),t}const $f=/({([^}]*)})/g,sO=/[{}]/g,aO=/\w+\.\w+/,Bf=e=>{if(!Ot(e))return[];const t=e.match($f);return t?t.map(n=>n.replace(sO,"")).map(n=>n.trim()):[]},lO=e=>$f.test(e);function jf(e){var n,r,i;if(!((n=e.extensions)!=null&&n.references))return((i=(r=e.extensions)==null?void 0:r.cssVar)==null?void 0:i.ref)??e.value;const t=e.extensions.references??{};return e.value=Object.keys(t).reduce((o,s)=>{const a=t[s];if(a.extensions.conditions)return o;const l=jf(a);return o.replace(`{${s}}`,l)},e.value),delete e.extensions.references,e.value}function Wf(e){return He(e)&&e.reference?e.reference:String(e)}const us=(e,...t)=>t.map(Wf).join(` ${e} `).replace(/calc/g,""),Hf=(...e)=>`calc(${us("+",...e)})`,Uf=(...e)=>`calc(${us("-",...e)})`,Pl=(...e)=>`calc(${us("*",...e)})`,Gf=(...e)=>`calc(${us("/",...e)})`,qf=e=>{const t=Wf(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Pl(t,-1)},Nr=Object.assign(e=>({add:(...t)=>Nr(Hf(e,...t)),subtract:(...t)=>Nr(Uf(e,...t)),multiply:(...t)=>Nr(Pl(e,...t)),divide:(...t)=>Nr(Gf(e,...t)),negate:()=>Nr(qf(e)),toString:()=>e.toString()}),{add:Hf,subtract:Uf,multiply:Pl,divide:Gf,negate:qf}),cO={enforce:"pre",transform(e){const{prefix:t,allTokens:n,formatCssVar:r,formatTokenName:i,registerToken:o}=e;n.filter(({extensions:a})=>a.category==="spacing").forEach(a=>{const l=a.path.slice(),c=r(l,t);if(Ot(a.value)&&a.value==="0rem")return;const u=structuredClone(a);Object.assign(u.extensions,{negative:!0,prop:`-${a.extensions.prop}`,originalPath:l}),u.value=Nr.negate(c.ref);const d=u.path[u.path.length-1];d!=null&&(u.path[u.path.length-1]=`-${d}`),u.path&&(u.name=i(u.path)),o(u)})}},uO=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),dO=[cO,{enforce:"post",transform(e){const{allTokens:t,registerToken:n,formatTokenName:r}=e,i=t.filter(({extensions:a})=>a.category==="colors"),o=new Map,s=new Map;i.forEach(a=>{const{colorPalette:l}=a.extensions;l&&(l.keys.forEach(c=>{o.set(r(c),c)}),l.roots.forEach(c=>{var h;const u=r(c),d=s.get(u)||[];if(d.push(a),s.set(u,d),a.extensions.default&&c.length===1){const m=(h=l.keys[0])==null?void 0:h.filter(Boolean);if(!m.length)return;const f=c.concat(m);o.set(r(f),[])}}))}),o.forEach(a=>{const l=["colors","colorPalette",...a].filter(Boolean),c=r(l),u=r(l.slice(1));n({name:c,value:c,originalValue:c,path:l,extensions:{condition:"base",originalPath:l,category:"colors",prop:u,virtual:!0}},"pre")})}},{enforce:"post",transform(e){e.allTokens.filter(n=>uO.has(n.extensions.category)&&!n.extensions.negative).forEach(n=>{Object.assign(n.extensions,{pixelValue:Cf(n.value)})})}},{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}}],hO=[{type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:n,formatCssVar:r}=t,{negative:i,originalPath:o}=e.extensions,s=i?o:e.path;return{cssVar:r(s.filter(Boolean),n)}}},{enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:n,formatCssVar:r}=t,i=Bf(e.value);return i.length&&i.forEach(o=>{const s=r(o.split("."),n);e.value=e.value.replace(`{${s.ref}}`,s)}),e.value}},{type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match(e){return e.extensions.category==="colors"&&!e.extensions.virtual},transform(e,t){let n=e.path.slice();if(n.pop(),n.shift(),n.length===0){const a=[...e.path];a.shift(),n=a}if(n.length===0)return{};const r=n.reduce((a,l,c,u)=>{const d=u.slice(0,c+1);return a.push(d),a},[]),i=n[0],o=t.formatTokenName(n),s=e.path.slice(e.path.indexOf(i)+1).reduce((a,l,c,u)=>(a.push(u.slice(c)),a),[]);return s.length===0&&s.push([""]),{colorPalette:{value:o,roots:r,keys:s}}}}],Kf=e=>He(e)&&Object.prototype.hasOwnProperty.call(e,"value");function fO(e){return e?{breakpoints:lf(e,t=>({value:t})),sizes:Object.fromEntries(Object.entries(e).map(([t,n])=>[`breakpoint-${t}`,{value:n}]))}:{breakpoints:{},sizes:{}}}function gO(e){const{prefix:t="",tokens:n={},semanticTokens:r={},breakpoints:i={}}=e,o=D=>D.join("."),s=(D,L)=>df(D.join("-"),{prefix:L}),a=[],l=new Map,c=new Map,u=new Map,d=new Map,h=new Map,m=new Map,f=new Map,g=new Map,p=[];function b(D,L){a.push(D),l.set(D.name,D),L&&g.forEach(ne=>{ne.enforce===L&&H(ne,D)})}const x=fO(i),S=ri({...n,breakpoints:x.breakpoints,sizes:{...n.sizes,...x.sizes}});function C(){At(S,(D,L)=>{const ne=L.includes("DEFAULT");L=Xf(L);const de=L[0],Ee=o(L),Le=Ot(D)?{value:D}:D,Kt={value:Le.value,originalValue:Le.value,name:Ee,path:L,extensions:{condition:"base",originalPath:L,category:de,prop:o(L.slice(1))}};ne&&(Kt.extensions.default=!0),b(Kt)},{stop:Kf}),At(r,(D,L)=>{const ne=L.includes("DEFAULT");L=Yf(Xf(L));const de=L[0],Ee=o(L),Le=Ot(D.value)?{value:{base:D.value}}:D,Kt={value:Le.value.base||"",originalValue:Le.value.base||"",name:Ee,path:L,extensions:{originalPath:L,category:de,conditions:Le.value,condition:"base",prop:o(L.slice(1))}};ne&&(Kt.extensions.default=!0),b(Kt)},{stop:Kf})}function w(D){return l.get(D)}function P(D){const{condition:L}=D.extensions;L&&(c.has(L)||c.set(L,new Set),c.get(L).add(D))}function _(D){const{category:L,prop:ne}=D.extensions;L&&(f.has(L)||f.set(L,new Map),f.get(L).set(ne,D))}function R(D){const{condition:L,negative:ne,virtual:de,cssVar:Ee}=D.extensions;ne||de||!L||!Ee||(u.has(L)||u.set(L,new Map),u.get(L).set(Ee.var,D.value))}function N(D){const{category:L,prop:ne,cssVar:de,negative:Ee}=D.extensions;if(!L)return;m.has(L)||m.set(L,new Map);const Le=Ee?D.extensions.conditions?D.originalValue:D.value:de.ref;m.get(L).set(ne,Le),h.set([L,ne].join("."),Le)}function T(D){const{colorPalette:L,virtual:ne,default:de}=D.extensions;!L||ne||L.roots.forEach(Ee=>{var Cb;const Le=o(Ee);d.has(Le)||d.set(Le,new Map);const Kt=mO([...D.path],[...Ee]),Bs=o(Kt),Yr=w(Bs);if(!Yr||!Yr.extensions.cssVar)return;const{var:qA}=Yr.extensions.cssVar;if(d.get(Le).set(qA,D.extensions.cssVar.ref),de&&Ee.length===1){const KA=o(["colors","colorPalette"]),Sb=w(KA);if(!Sb)return;const XA=o(D.path),wb=w(XA);if(!wb)return;const Eb=(Cb=L.keys[0])==null?void 0:Cb.filter(Boolean);if(!Eb.length)return;const gc=o(Ee.concat(Eb));d.has(gc)||d.set(gc,new Map),d.get(gc).set(Sb.extensions.cssVar.var,wb.extensions.cssVar.ref)}})}let j={};function I(){a.forEach(D=>{P(D),_(D),R(D),N(D),T(D)}),j=Mf(m)}const F=(D,L)=>{var Yr;if(!D||typeof D!="string")return{invalid:!0,value:D};const[ne,de]=D.split("/");if(!ne||!de)return{invalid:!0,value:ne};const Ee=L(ne),Le=(Yr=w(`opacity.${de}`))==null?void 0:Yr.value;if(!Le&&isNaN(Number(de)))return{invalid:!0,value:ne};const Kt=Le?Number(Le)*100+"%":`${de}%`,Bs=Ee??ne;return{invalid:!1,color:Bs,value:`color-mix(in srgb, ${Bs} ${Kt}, transparent)`}},Y=yt((D,L)=>h.get(D)??L),z=yt(D=>j[D]||null),V=yt(D=>zf(D,L=>{if(!L)return;if(L.includes("/")){const de=F(L,Ee=>Y(Ee));if(de.invalid)throw new Error("Invalid color mix at "+L+": "+de.value);return de.value}const ne=Y(L);return ne||(aO.test(L)?Df(L):L)})),B={prefix:t,allTokens:a,tokenMap:l,registerToken:b,getByName:w,formatTokenName:o,formatCssVar:s,flatMap:h,cssVarMap:u,categoryMap:f,colorPaletteMap:d,getVar:Y,getCategoryValues:z,expandReferenceInValue:V};function K(...D){D.forEach(L=>{g.set(L.name,L)})}function $(...D){p.push(...D)}function H(D,L){if(L.extensions.references||ua(D.match)&&!D.match(L))return;const de=(Ee=>D.transform(Ee,B))(L);switch(!0){case D.type==="extensions":Object.assign(L.extensions,de);break;case D.type==="value":L.value=de;break;default:L[D.type]=de;break}}function X(D){p.forEach(L=>{L.enforce===D&&L.transform(B)})}function ue(D){g.forEach(L=>{L.enforce===D&&a.forEach(ne=>{H(L,ne)})})}function wn(){a.forEach(D=>{const L=pO(D);!L||L.length===0||L.forEach(ne=>{b(ne)})})}function Wi(D){return Bf(D).map(ne=>w(ne)).filter(Boolean)}function Xr(){a.forEach(D=>{if(!lO(D.value))return;const L=Wi(D.value);D.extensions.references=L.reduce((ne,de)=>(ne[de.name]=de,ne),{})})}function fc(){a.forEach(D=>{jf(D)})}function GA(){X("pre"),ue("pre"),wn(),Xr(),fc(),X("post"),ue("post"),I()}return C(),K(...hO),$(...dO),GA(),B}function Xf(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function Yf(e){return e.filter(t=>t!=="base")}function pO(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,n=[];return At(t,(r,i)=>{const o=Yf(i);if(!o.length)return;const s=structuredClone(e);s.value=r,s.extensions.condition=o.join(":"),n.push(s)}),n}function mO(e,t){const n=e.findIndex((r,i)=>t.every((o,s)=>e[i+s]===o));return n===-1||(e.splice(n,t.length),e.splice(n,0,"colorPalette")),e}nO()(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]);function h5(e){return e}function vO(e){return Object.fromEntries(Object.entries(e).map(([t,n])=>[t,n]))}function bO(e){const t=vO(e.config),n=e.tokens,r=new Map,i=new Map;function o(R,N){t[R]=N,s(R,N)}const s=(R,N)=>{const T=g(N);T&&(i.set(R,T),d(R,N))},a=()=>{for(const[R,N]of Object.entries(t))N&&s(R,N)},l=()=>{for(const[R,N]of Object.entries(t)){const{shorthand:T}=N??{};if(!T)continue;(Array.isArray(T)?T:[T]).forEach(I=>r.set(I,R))}},c=()=>{const R=Mf(n.colorPaletteMap);o("colorPalette",{values:Object.keys(R),transform:yt(N=>R[N])})},u=new Map,d=(R,N)=>{if(!N)return;const T=g(N,I=>`type:Tokens["${I}"]`);if(typeof T=="object"&&T.type){u.set(R,new Set([`type:${T.type}`]));return}if(T){const I=new Set(Object.keys(T));u.set(R,I)}const j=u.get(R)??new Set;N.property&&u.set(R,j.add(`CssProperties["${N.property}"]`))},h=()=>{for(const[R,N]of Object.entries(t))N&&d(R,N)},m=(R,N)=>{const T=u.get(R)??new Set;u.set(R,new Set([...T,...N]))},f=()=>{const R=new Map;for(const[N,T]of u.entries()){if(T.size===0){R.set(N,["string"]);continue}const j=Array.from(T).map(I=>I.startsWith("CssProperties")?I:I.startsWith("type:")?I.replace("type:",""):JSON.stringify(I));R.set(N,j)}return R},g=(R,N)=>{const{values:T}=R,j=I=>{const F=N==null?void 0:N(I);return F?{[F]:F}:void 0};return Ot(T)?(j==null?void 0:j(T))??n.getCategoryValues(T)??{}:Array.isArray(T)?T.reduce((I,F)=>(I[F]=F,I),{}):ua(T)?T(N?j:n.getCategoryValues):T},p=yt((R,N)=>({[R]:R.startsWith("--")?n.getVar(N,N):N})),b=Object.assign(n.getVar,{raw:R=>n.getByName(R)}),x=yt((R,N)=>{var Y;const T=w(R);Ot(N)&&!N.includes("_EMO_")&&(N=n.expandReferenceInValue(N));const j=t[T];if(!j)return p(T,N);const I=(Y=i.get(T))==null?void 0:Y[N];if(!j.transform)return p(R,I??N);const F=z=>ZE(z,b);return j.transform(I??N,{raw:N,token:b,utils:{colorMix:F}})});function S(){l(),c(),a(),h()}S();const C=r.size>0,w=yt(R=>r.get(R)??R);return{keys:()=>[...Array.from(r.keys()),...Object.keys(t)],hasShorthand:C,transform:x,shorthands:r,resolveShorthand:w,register:o,getTypes:f,addPropertyType:m}}const qe={};function Qf(...e){const t=cf(...e),{theme:n={},utilities:r={},globalCss:i={},cssVarsRoot:o=":where(:root, :host)",cssVarsPrefix:s="chakra",preflight:a}=t,l=Kk(t),c=gO({breakpoints:n.breakpoints,tokens:n.tokens,semanticTokens:n.semanticTokens,prefix:s}),u=Pk(n.breakpoints??qe),d=Ak({conditions:t.conditions??qe,breakpoints:u}),h=bO({config:r,tokens:c});function m(){const{textStyles:$,layerStyles:H,animationStyles:X}=n,ue=ri({textStyle:$,layerStyle:H,animationStyle:X});for(const[wn,Wi]of Object.entries(ue)){const Xr=gf(Wi??qe,Jf);h.register(wn,{values:Object.keys(Xr),transform(fc){return S(Xr[fc])}})}}m(),h.addPropertyType("animationName",Object.keys(n.keyframes??qe));const f=new Set(["css",...h.keys(),...d.keys()]),g=yt($=>f.has($)||wk($)),p=$=>Array.isArray($)?$.reduce((H,X,ue)=>{const wn=d.breakpoints[ue];return X!=null&&(H[wn]=X),H},{}):$,b=Xk({utility:h,normalize:p}),x=Qk({conditions:d,isValidProperty:g}),S=Vf({transform:h.transform,conditions:d,normalize:b}),C=Uk({css:S,conditions:d,normalize:b,layers:l}),w=tO({cva:C});function P(){const $={};for(const[H,X]of c.cssVarMap.entries()){const ue=Object.fromEntries(X);if(Object.keys(ue).length===0)continue;const wn=H==="base"?o:d.resolve(H),Wi=wn.startsWith("@"),Xr=S(x({[wn]:Wi?{[o]:ue}:ue}));Or($,Xr)}return l.wrap("tokens",$)}function _(){const $=Object.fromEntries(Object.entries(n.keyframes??qe).map(([X,ue])=>[`@keyframes ${X}`,ue])),H=Object.assign({},$,S(x(i)));return l.wrap("base",H)}function R($){return cr($,g)}function N(){const $=Yk({preflight:a});return l.wrap("reset",$)}const T=yO(c),j=($,H)=>{var X;return((X=T.get($))==null?void 0:X.value)||H};j.var=($,H)=>{var X;return((X=T.get($))==null?void 0:X.variable)||H};function I($,H){var X;return((X=n.recipes)==null?void 0:X[$])??H}function F($,H){var X;return((X=n.slotRecipes)==null?void 0:X[$])??H}function Y($){return Object.hasOwnProperty.call(n.recipes??qe,$)}function z($){return Object.hasOwnProperty.call(n.slotRecipes??qe,$)}function V($){return Y($)||z($)}const B=[N(),_(),P()],K={layerStyles:Rl(n.layerStyles??qe),textStyles:Rl(n.textStyles??qe),animationStyles:Rl(n.animationStyles??qe),tokens:Zf(c,Object.keys(n.tokens??qe),($,H)=>!$.extensions.conditions&&!H.includes("colorPalette")),semanticTokens:Zf(c,Object.keys(n.semanticTokens??qe),$=>!!$.extensions.conditions),keyframes:eg(n.keyframes??qe),breakpoints:eg(n.breakpoints??qe)};return{$$chakra:!0,_config:t,_global:B,breakpoints:u,tokens:c,conditions:d,utility:h,token:j,properties:f,layers:l,isValidProperty:g,splitCssProps:R,normalizeValue:p,getTokenCss:P,getGlobalCss:_,getPreflightCss:N,css:S,cva:C,sva:w,getRecipe:I,getSlotRecipe:F,hasRecipe:V,isRecipe:Y,isSlotRecipe:z,query:K}}function yO(e){const t=new Map;return e.allTokens.forEach(n=>{const{cssVar:r,virtual:i,conditions:o}=n.extensions,s=o||i?r.ref:n.value;t.set(n.name,{value:s,variable:r.ref})}),t}const Jf=e=>He(e)&&"value"in e,Rl=e=>({list(){return Object.keys(gf(e,Jf))},search(t){return this.list().filter(n=>n.includes(t))}}),Zf=(e,t,n)=>({categoryKeys:t,list(r){var i;return Array.from(((i=e.categoryMap.get(r))==null?void 0:i.entries())??[]).reduce((o,[s,a])=>(n(a,s)&&o.push(s),o),[])},search(r,i){return this.list(r).filter(o=>o.includes(i))}}),eg=e=>({list(){return Object.keys(e)},search(t){return this.list().filter(n=>n.includes(t))}}),xO={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Tl="var(--chakra-empty,/*!*/ /*!*/)",CO=rk({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":Tl,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,Tl])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,Tl])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.emphasized/80"}}),SO=sk({"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}}),wO=ok({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}),Nl=Se({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),EO=Se({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),Ve=Se({className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border.emphasized","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),{variants:kO,defaultVariants:OO}=Nl,IO=Se({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:kO,defaultVariants:OO}),tg=Se({className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}}),PO=Se({className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}}),RO=Se({className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),TO=Se({className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}}),Ce=Se({className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}}),NO=Se({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:Ce.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}}),AO=Se({className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}}),_O=Se({className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}}),VO=Se({className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}}),Fe=Se({className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border.emphasized",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),FO=Se({className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}}),LO=Se({className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}}),DO=Se({className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}}),zO=Se({className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}}),MO=Se({className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}}),$O={badge:Nl,button:EO,code:IO,container:PO,heading:RO,input:Ce,inputAddon:NO,kbd:AO,link:_O,mark:VO,separator:FO,skeleton:LO,skipNavLink:DO,spinner:zO,textarea:MO,icon:TO,checkmark:Ve,radiomark:Fe,colorSwatch:tg},BO=Cl.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.500}"}}}}),jO=Cl.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),WO=Cl.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}}),HO=Td.extendWith("itemBody"),UO=G("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),GO=G("alert").parts("title","description","root","indicator","content"),qO=G("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),KO=G("blockquote").parts("root","icon","content","caption"),XO=G("card").parts("root","header","body","footer","title","description"),YO=G("checkbox-card",["root","control","label","description","addon","indicator","content"]),QO=G("data-list").parts("root","item","itemLabel","itemValue"),JO=tl.extendWith("header","body","footer","backdrop"),ZO=tl.extendWith("header","body","footer","backdrop"),eI=vh.extendWith("textarea"),tI=G("empty-state",["root","content","indicator","title","description"]),nI=bh.extendWith("requiredIndicator"),rI=xh.extendWith("content"),iI=Ch.extendWith("itemContent","dropzoneContent","fileText"),oI=G("list").parts("root","item","indicator"),sI=Ph.extendWith("itemCommand"),aI=G("select").parts("root","field","indicator"),lI=Uh.extendWith("header","body","footer"),ng=gl.extendWith("itemAddon","itemIndicator"),cI=ng.extendWith("itemContent","itemDescription"),uI=Kh.extendWith("itemIndicator"),dI=Qh.extendWith("indicatorGroup"),hI=xw.extendWith("indicatorGroup","empty"),fI=tf.extendWith("markerIndicator"),gI=G("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),pI=G("status").parts("root","indicator"),mI=G("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),vI=nf.extendWith("indicator"),bI=G("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),yI=G("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),xI=G("tabs").parts("root","trigger","list","content","contentGroup","indicator"),CI=G("tag").parts("root","label","closeTrigger","startElement","endElement"),SI=G("timeline").parts("root","item","content","separator","indicator","connector","title","description"),wI=DS.extendWith("channelText"),EI=G("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);Md.extendWith("valueText");const kI=Kw,OI=q({className:"chakra-accordion",slots:HO.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}}),II=q({className:"chakra-action-bar",slots:UO.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}}),PI=q({slots:GO.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}}),RI=q({slots:_d.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),TI=q({className:"chakra-blockquote",slots:KO.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}}),NI=q({className:"chakra-breadcrumb",slots:qO.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}}),AI=q({className:"chakra-card",slots:XO.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}}),_I=q({slots:FS.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:Ve.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:(Om=(km=Ve.variants)==null?void 0:km.size)==null?void 0:Om.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:(Pm=(Im=Ve.variants)==null?void 0:Im.size)==null?void 0:Pm.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:(Tm=(Rm=Ve.variants)==null?void 0:Rm.size)==null?void 0:Tm.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:(Am=(Nm=Ve.variants)==null?void 0:Nm.size)==null?void 0:Am.lg}},variant:{outline:{control:(Vm=(_m=Ve.variants)==null?void 0:_m.variant)==null?void 0:Vm.outline},solid:{control:(Lm=(Fm=Ve.variants)==null?void 0:Fm.variant)==null?void 0:Lm.solid},subtle:{control:(zm=(Dm=Ve.variants)==null?void 0:Dm.variant)==null?void 0:zm.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),VI=q({slots:YO.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:Ve.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:(Mm=Ve.variants)==null?void 0:Mm.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:($m=Ve.variants)==null?void 0:$m.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:(Bm=Ve.variants)==null?void 0:Bm.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:(jm=Ve.variants)==null?void 0:jm.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:(Wm=Ve.variants)==null?void 0:Wm.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:(Hm=Ve.variants)==null?void 0:Hm.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:(Um=Ve.variants)==null?void 0:Um.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),FI=q({slots:EI.keys(),className:"code-block",base:{root:{colorPalette:"gray",rounded:"var(--code-block-radius)",overflow:"hidden",bg:"bg",color:"fg",borderWidth:"1px","--code-block-max-height":"320px","--code-block-bg":"colors.bg","--code-block-fg":"colors.fg","--code-block-obscured-opacity":"0.5","--code-block-obscured-blur":"1px","--code-block-line-number-width":"sizes.3","--code-block-line-number-margin":"spacing.4","--code-block-highlight-bg":"{colors.teal.focusRing/20}","--code-block-highlight-border":"colors.teal.focusRing","--code-block-highlight-added-bg":"{colors.green.focusRing/20}","--code-block-highlight-added-border":"colors.green.focusRing","--code-block-highlight-removed-bg":"{colors.red.focusRing/20}","--code-block-highlight-removed-border":"colors.red.focusRing"},header:{display:"flex",alignItems:"center",gap:"2",position:"relative",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)",mb:"calc(var(--code-block-padding) / 2 * -1)"},title:{display:"inline-flex",alignItems:"center",gap:"1.5",flex:"1",color:"fg.muted"},control:{gap:"1.5",display:"inline-flex",alignItems:"center"},footer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)"},content:{position:"relative",colorScheme:"dark",overflow:"hidden",borderBottomRadius:"var(--code-block-radius)",maxHeight:"var(--code-block-max-height)","& ::selection":{bg:"blue.500/40"},_expanded:{maxHeight:"unset"}},overlay:{"--bg":"{colors.black/50}",display:"flex",alignItems:"flex-end",justifyContent:"center",padding:"4",bgImage:"linear-gradient(0deg,var(--bg) 25%,transparent 100%)",color:"white",minH:"5rem",pos:"absolute",bottom:"0",insetInline:"0",zIndex:"1",fontWeight:"medium",_expanded:{display:"none"}},code:{fontFamily:"mono",lineHeight:"tall",whiteSpace:"pre",counterReset:"line 0"},codeText:{px:"var(--code-block-padding)",py:"var(--code-block-padding)",position:"relative",display:"block",width:"100%","&[data-has-focused]":{"& [data-line]:not([data-focused])":{transitionProperty:"opacity, filter",transitionDuration:"moderate",transitionTimingFunction:"ease-in-out",opacity:"var(--code-block-obscured-opacity)",filter:"blur(var(--code-block-obscured-blur))"},"&:hover":{"--code-block-obscured-opacity":"1","--code-block-obscured-blur":"0px"}},"&[data-has-line-numbers][data-plaintext]":{paddingInlineStart:"calc(var(--code-block-line-number-width) + var(--code-block-line-number-margin) + var(--code-block-padding))"},"& [data-line]":{position:"relative","--highlight-bg":"var(--code-block-highlight-bg)","--highlight-border":"var(--code-block-highlight-border)","&[data-highlight], &[data-diff]":{display:"inline-block",width:"full","&:after":{content:"''",display:"block",position:"absolute",insetStart:"calc(var(--code-block-padding) * -1)",insetEnd:"0px",width:"calc(100% + var(--code-block-padding) * 2)",height:"100%",bg:"var(--highlight-bg)",borderStartWidth:"2px",borderStartColor:"var(--highlight-border)"}},"&[data-diff='added']":{"--highlight-bg":"var(--code-block-highlight-added-bg)","--highlight-border":"var(--code-block-highlight-added-border)"},"&[data-diff='removed']":{"--highlight-bg":"var(--code-block-highlight-removed-bg)","--highlight-border":"var(--code-block-highlight-removed-border)"}},"&[data-word-wrap]":{"&[data-plaintext], & [data-line]":{whiteSpace:"pre-wrap",wordBreak:"break-all"}},"&[data-has-line-numbers]":{"--content":"counter(line)","& [data-line]:before":{content:"var(--content)",counterIncrement:"line",width:"var(--code-block-line-number-width)",marginRight:"var(--code-block-line-number-margin)",display:"inline-block",textAlign:"end",userSelect:"none",opacity:.4},"& [data-diff='added']:before":{content:"'+'"},"& [data-diff='removed']:before":{content:"'-'"}}}},variants:{size:{sm:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.md","--code-block-header-height":"sizes.8"},title:{textStyle:"xs"},code:{fontSize:"xs"}},md:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.lg","--code-block-header-height":"sizes.10"},title:{textStyle:"xs"},code:{fontSize:"sm"}},lg:{root:{"--code-block-padding":"spacing.5","--code-block-radius":"radii.xl","--code-block-header-height":"sizes.12"},title:{textStyle:"sm"},code:{fontSize:"sm"}}}},defaultVariants:{size:"md"}}),LI=q({slots:ju.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}),DI=q({className:"colorPicker",slots:wI.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...tg.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...Ce.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:(qm=(Gm=Ce.variants)==null?void 0:Gm.size)==null?void 0:qm["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:(Xm=(Km=Ce.variants)==null?void 0:Km.size)==null?void 0:Xm.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:(Qm=(Ym=Ce.variants)==null?void 0:Ym.size)==null?void 0:Qm.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:(Zm=(Jm=Ce.variants)==null?void 0:Jm.size)==null?void 0:Zm.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:(tv=(ev=Ce.variants)==null?void 0:ev.size)==null?void 0:tv.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:(rv=(nv=Ce.variants)==null?void 0:nv.size)==null?void 0:rv.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:(ov=(iv=Ce.variants)==null?void 0:iv.size)==null?void 0:ov["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:(av=(sv=Ce.variants)==null?void 0:sv.variant)==null?void 0:av.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:(cv=(lv=Ce.variants)==null?void 0:lv.variant)==null?void 0:cv.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),zI=q({className:"chakra-combobox",slots:hI.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",px:"var(--combobox-input-padding-x)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},control:{pos:"relative"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}}),MI=q({slots:QO.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}}),$I=q({slots:JO.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100dvw",h:"100dvh",zIndex:"var(--z-index)",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100dvw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100dvw",minH:"100dvh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),BI=q({slots:ZO.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-left-full, fade-out"}}}},top:{positioner:{justifyContent:"stretch",alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{justifyContent:"stretch",alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}}),rg=Ir({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),jI=q({slots:eI.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...rg,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...rg,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}}),WI=q({slots:tI.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}}),HI=q({className:"chakra-field",slots:nI.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}}),UI=q({className:"fieldset",slots:rI.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),GI=q({className:"chakra-file-upload",slots:iI.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}}),qI=q({className:"chakra-hover-card",slots:Sh.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),KI=q({className:"chakra-list",slots:oI.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),XI=q({className:"chakra-listbox",slots:kI.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},content:{display:"flex",maxH:"96",p:"1",gap:"1",textStyle:"sm",outline:"none",scrollPadding:"1",_horizontal:{flexDirection:"row",overflowX:"auto"},_vertical:{flexDirection:"column",overflowY:"auto"},"--listbox-item-padding-x":"spacing.2","--listbox-item-padding-y":"spacing.1.5"},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"pointer",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)",_highlighted:{outline:"2px solid",outlineColor:"border.emphasized"},_disabled:{pointerEvents:"none",opacity:"0.5"}},empty:{py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{mt:"1.5",_first:{mt:"0"}},itemGroupLabel:{py:"1.5",px:"2",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"4"}}},variants:{variant:{subtle:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_hover:{bg:"bg.emphasized/60"},_selected:{bg:"bg.muted"}}},solid:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_selected:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}},plain:{}}},defaultVariants:{variant:"subtle"}}),YI=q({className:"chakra-menu",slots:sI.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1",scrollPadding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5",scrollPadding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}}),ds=q({className:"chakra-select",slots:dI.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}}),QI=q({className:"chakra-native-select",slots:aI.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error","--input-height":"var(--select-field-height)",height:"var(--select-field-height)",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:(uv=ds.variants)==null?void 0:uv.variant.outline.trigger},subtle:{field:(dv=ds.variants)==null?void 0:dv.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{root:{"--select-field-height":"sizes.8"},field:{textStyle:"xs",ps:"2",pe:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{root:{"--select-field-height":"sizes.9"},field:{textStyle:"sm",ps:"2.5",pe:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{root:{"--select-field-height":"sizes.10"},field:{textStyle:"sm",ps:"3",pe:"8"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{root:{"--select-field-height":"sizes.11"},field:{textStyle:"md",ps:"4",pe:"8"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{root:{"--select-field-height":"sizes.12"},field:{textStyle:"md",ps:"4.5",pe:"10"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:ds.defaultVariants});function Al(e,t){const n={};for(const r in e){const i=t(r,e[r]);n[i[0]]=i[1]}return n}const ig=Ir({display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}}),JI=q({className:"chakra-number-input",slots:Mh.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...Ce.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...ig,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...ig,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:Ce.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:Ce.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:Ce.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:Ce.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:Al(Ce.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:og,defaultVariants:ZI}=Ce,eP=q({className:"chakra-pin-input",slots:Hh.keys(),base:{input:{...Ce.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:Al(og.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:Al(og.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:ZI}),tP=q({className:"chakra-popover",slots:lI.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}}),nP=q({slots:fl.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}}),rP=q({className:"chakra-progress-circle",slots:fl.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dashoffset, stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}}),iP=q({slots:qh.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}}),oP=q({className:"chakra-radio-card",slots:cI.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:Fe.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:(hv=Fe.variants)==null?void 0:hv.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:(fv=Fe.variants)==null?void 0:fv.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:(gv=Fe.variants)==null?void 0:gv.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:(pv=Fe.variants)==null?void 0:pv.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:(mv=Fe.variants)==null?void 0:mv.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:(vv=Fe.variants)==null?void 0:vv.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:(bv=Fe.variants)==null?void 0:bv.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),sP=q({className:"chakra-radio-group",slots:ng.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:Fe.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:(xv=(yv=Fe.variants)==null?void 0:yv.variant)==null?void 0:xv.outline},subtle:{itemControl:(Sv=(Cv=Fe.variants)==null?void 0:Cv.variant)==null?void 0:Sv.subtle},solid:{itemControl:(Ev=(wv=Fe.variants)==null?void 0:wv.variant)==null?void 0:Ev.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:(Ov=(kv=Fe.variants)==null?void 0:kv.size)==null?void 0:Ov.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:(Pv=(Iv=Fe.variants)==null?void 0:Iv.size)==null?void 0:Pv.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:(Tv=(Rv=Fe.variants)==null?void 0:Rv.size)==null?void 0:Tv.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:(Av=(Nv=Fe.variants)==null?void 0:Nv.size)==null?void 0:Av.lg}}},defaultVariants:{size:"md",variant:"solid"}}),aP=q({className:"chakra-rating-group",slots:uI.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}}),lP=q({className:"chakra-scroll-area",slots:Xh.keys(),base:{root:{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative",overflow:"hidden","--scrollbar-margin":"2px","--scrollbar-click-area":"calc(var(--scrollbar-size) + calc(var(--scrollbar-margin) * 2))"},viewport:{display:"flex",flexDirection:"column",height:"100%",width:"100%",borderRadius:"inherit",WebkitOverflowScrolling:"touch",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},content:{minWidth:"100%"},scrollbar:{display:"flex",userSelect:"none",touchAction:"none",borderRadius:"full",colorPalette:"gray",transition:"opacity 150ms 300ms",position:"relative",margin:"var(--scrollbar-margin)","&:not([data-overflow-x], [data-overflow-y])":{display:"none"},bg:"{colors.colorPalette.solid/10}","--thumb-bg":"{colors.colorPalette.solid/25}","&:is(:hover, :active)":{"--thumb-bg":"{colors.colorPalette.solid/50}"},_before:{content:'""',position:"absolute"},_vertical:{width:"var(--scrollbar-size)",flexDirection:"column","&::before":{width:"var(--scrollbar-click-area)",height:"100%",insetInlineStart:"calc(var(--scrollbar-margin) * -1)"}},_horizontal:{height:"var(--scrollbar-size)",flexDirection:"row","&::before":{height:"var(--scrollbar-click-area)",width:"100%",top:"calc(var(--scrollbar-margin) * -1)"}}},thumb:{borderRadius:"inherit",bg:"var(--thumb-bg)",transition:"backgrounds",_vertical:{width:"full"},_horizontal:{height:"full"}},corner:{bg:"bg.muted",margin:"var(--scrollbar-margin)",opacity:0,transition:"opacity 150ms 300ms","&[data-hover]":{transitionDelay:"0ms",opacity:1}}},variants:{variant:{hover:{scrollbar:{opacity:"0","&[data-hover], &[data-scrolling]":{opacity:"1",transitionDuration:"faster",transitionDelay:"0ms"}}},always:{scrollbar:{opacity:"1"}}},size:{xs:{root:{"--scrollbar-size":"sizes.1"}},sm:{root:{"--scrollbar-size":"sizes.1.5"}},md:{root:{"--scrollbar-size":"sizes.2"}},lg:{root:{"--scrollbar-size":"sizes.3"}}}},defaultVariants:{size:"md",variant:"hover"}}),cP=q({className:"chakra-segment-group",slots:Yh.keys(),base:{root:{"--segment-radius":"radii.l2",borderRadius:"l2",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"sm",pos:"absolute",bg:{_light:"bg",_dark:"bg.emphasized"},width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}}),uP=q({className:"chakra-slider",slots:fI.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}}),dP=q({className:"chakra-stat",slots:gI.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}}),hP=q({className:"chakra-status",slots:pI.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),fP=q({className:"chakra-steps",slots:mI.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}}),gP=q({slots:vI.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}}),pP=q({className:"chakra-table",slots:bI.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),mP=q({slots:xI.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-indicator-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-indicator-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}}),ut=(_v=Nl.variants)==null?void 0:_v.variant,vP=q({slots:CI.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:ut==null?void 0:ut.subtle},solid:{root:ut==null?void 0:ut.solid},outline:{root:ut==null?void 0:ut.outline},surface:{root:ut==null?void 0:ut.surface}}},defaultVariants:{size:"md",variant:"surface"}}),bP=q({slots:SI.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"& :where(.chakra-timeline__separator)":{display:"none"}}},separator:{position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"6",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid"}}),yP=q({slots:yI.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}}),xP=q({slots:rf.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),sg=Ir({display:"flex",alignItems:"center",gap:"var(--tree-item-gap)",rounded:"l2",userSelect:"none",position:"relative","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-icon-offset":"calc(var(--tree-icon-size) * var(--tree-depth) * 0.5)","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset) + var(--tree-icon-offset))",ps:"var(--tree-offset)",pe:"var(--tree-padding-inline)",py:"var(--tree-padding-block)",focusVisibleRing:"inside",focusRingColor:"border.emphasized",focusRingWidth:"2px","&:hover, &:focus-visible":{bg:"bg.muted"},_disabled:{layerStyle:"disabled"}}),ag=Ir({flex:"1"}),lg=Ir({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),cg=Ir({_selected:{layerStyle:"fill.solid"}}),CP=q({slots:kh.keys(),className:"chakra-tree-view",base:{root:{width:"full",display:"flex",flexDirection:"column",gap:"2"},tree:{display:"flex",flexDirection:"column","--tree-item-gap":"spacing.2",_icon:{boxSize:"var(--tree-icon-size)"}},label:{fontWeight:"medium",textStyle:"sm"},branch:{position:"relative"},branchContent:{position:"relative"},branchIndentGuide:{height:"100%",width:"1px",bg:"border",position:"absolute","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset))","--tree-icon-offset":"calc(var(--tree-icon-size) * 0.5 * var(--depth))",insetInlineStart:"calc(var(--tree-offset) + var(--tree-icon-offset))",zIndex:"1"},branchIndicator:{color:"fg.muted",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(90deg)"}},branchTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center"},branchControl:sg,item:sg,itemText:ag,branchText:ag,nodeCheckbox:{display:"inline-flex"}},variants:{size:{md:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1.5","--tree-icon-size":"spacing.4"}},sm:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}},xs:{tree:{textStyle:"xs","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.2","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}}},variant:{subtle:{branchControl:lg,item:lg},solid:{branchControl:cg,item:cg}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),SP={accordion:OI,actionBar:II,alert:PI,avatar:RI,blockquote:TI,breadcrumb:NI,card:AI,checkbox:_I,checkboxCard:VI,codeBlock:FI,collapsible:LI,dataList:MI,dialog:$I,drawer:BI,editable:jI,emptyState:WI,field:HI,fieldset:UI,fileUpload:GI,hoverCard:qI,list:KI,listbox:XI,menu:YI,nativeSelect:QI,numberInput:JI,pinInput:eP,popover:tP,progress:nP,progressCircle:rP,radioCard:oP,radioGroup:sP,ratingGroup:aP,scrollArea:lP,segmentGroup:cP,select:ds,combobox:zI,slider:uP,stat:dP,steps:fP,switch:gP,table:pP,tabs:mP,tag:vP,toast:yP,tooltip:xP,status:hP,timeline:bP,colorPicker:DI,qrCode:iP,treeView:CP},wP=ik({"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}}),EP=xe.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),kP=xe.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),OP=xe.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),IP=xe.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),PP=xe.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),RP=xe.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),TP=xe.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),NP=xe.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),AP=xe.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),_P=xe.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),ug='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',VP=xe.fonts({heading:{value:`Inter, ${ug}`},body:{value:`Inter, ${ug}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),FP=nk({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"0"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"0"}},"expand-width":{from:{width:"0"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"0"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}}),LP=xe.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),DP=xe.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),zP=xe.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),dg=xe.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),MP=xe.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),$P=xe.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),BP=xe.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),jP=xe.sizes({...MP,...dg,...BP,...$P}),WP=xe.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:2147483647}}),HP=Sl({preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:CO,theme:{breakpoints:xO,keyframes:FP,tokens:{aspectRatios:kP,animations:EP,blurs:OP,borders:IP,colors:PP,durations:TP,easings:NP,fonts:VP,fontSizes:AP,fontWeights:_P,letterSpacings:LP,lineHeights:DP,radii:zP,spacing:dg,sizes:jP,zIndex:WP,cursor:RP},semanticTokens:{colors:BO,shadows:WO,radii:jO},recipes:$O,slotRecipes:SP,textStyles:wP,layerStyles:SO,animationStyles:wO}}),dt=cf(gk,HP);Qf(dt);function UP(e){const{key:t,recipe:n}=e,r=uo();return E.useMemo(()=>{const i=n||(t!=null?r.getSlotRecipe(t):{});return r.sva(structuredClone(i))},[t,n,r])}const GP=e=>e.charAt(0).toUpperCase()+e.slice(1),_l=e=>{const{key:t,recipe:n}=e,r=GP(t||n.className||"Component"),[i,o]=lr({name:`${r}StylesContext`,errorMessage:`use${r}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `}),[s,a]=lr({name:`${r}ClassNameContext`,errorMessage:`use${r}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `,strict:!1}),[l,c]=lr({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`,defaultValue:{}});function u(f){const{unstyled:g,...p}=f,b=UP({key:t,recipe:p.recipe||n}),[x,S]=E.useMemo(()=>b.splitVariantProps(p),[p,b]);return{styles:E.useMemo(()=>g?e0:b(x),[g,x,b]),classNames:b.classNameMap,props:S}}function d(f,g={}){const{defaultProps:p}=g,b=x=>{const S=c(),C=E.useMemo(()=>ni(p,S,x),[S,x]),{styles:w,classNames:P,props:_}=u(C);return v.jsx(i,{value:w,children:v.jsx(s,{value:P,children:v.jsx(f,{..._})})})};return b.displayName=f.displayName||f.name,b}return{StylesProvider:i,ClassNamesProvider:s,PropsProvider:l,usePropsContext:c,useRecipeResult:u,withProvider:(f,g,p)=>{const{defaultProps:b,...x}=p??{},S=Oe(f,{},x),C=E.forwardRef((w,P)=>{var Y;const _=c(),R=E.useMemo(()=>ni(b??{},_,w),[_,w]),{styles:N,props:T,classNames:j}=u(R),I=j[g],F=v.jsx(i,{value:N,children:v.jsx(s,{value:j,children:v.jsx(S,{ref:P,...T,css:[N[g],R.css],className:st(R.className,I)})})});return((Y=p==null?void 0:p.wrapElement)==null?void 0:Y.call(p,F,R))??F});return C.displayName=f.displayName||f.name,C},withContext:(f,g,p)=>{const b=Oe(f,{},p),x=E.forwardRef((S,C)=>{const{unstyled:w,...P}=S,_=o(),R=a(),N=R==null?void 0:R[g];return v.jsx(b,{...P,css:[!w&&g?_[g]:void 0,S.css],ref:C,className:st(S.className,N)})});return x.displayName=f.displayName||f.name,x},withRootProvider:d,useStyles:o,useClassNames:a}},hg=Oe("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});hg.displayName="AbsoluteCenter";const qP=e=>v.jsx(Oe.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:v.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z"})}),fg=e=>v.jsx(Oe.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:v.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"})}),gg=e=>v.jsx(Oe.svg,{viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",...e,children:v.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"})}),KP=e=>v.jsx(Oe.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"})}),[XP,YP]=lr({name:"AlertStatusContext",hookName:"useAlertStatusContext",providerName:""}),{withProvider:QP,withContext:Vl,useStyles:JP}=_l({key:"alert"}),ZP=QP("div","root",{forwardAsChild:!0,wrapElement(e,t){return v.jsx(XP,{value:{status:t.status||"info"},children:e})}}),pg=Vl("div","title"),eR=Vl("div","description"),tR=Vl("div","content"),nR={info:gg,warning:fg,success:qP,error:fg,neutral:gg},rR=E.forwardRef(function(t,n){const r=YP(),i=JP(),o=typeof r.status=="string"?nR[r.status]:E.Fragment,{children:s=v.jsx(o,{}),...a}=t;return v.jsx(Oe.span,{ref:n,...a,css:[i.indicator,t.css],children:s})}),iR=e=>e?"":void 0,{withContext:oR}=ii({key:"badge"}),mg=oR("span"),{withContext:sR}=ii({key:"spinner"}),aR=sR("span"),lR=O.forwardRef(function(t,n){const{spinner:r=v.jsx(aR,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:i="start",children:o,text:s,visible:a=!0,...l}=t;return a?s?v.jsxs(_o,{ref:n,display:"contents",...l,children:[i==="start"&&r,s,i==="end"&&r]}):r?v.jsxs(_o,{ref:n,display:"contents",...l,children:[v.jsx(hg,{display:"inline-flex",children:r}),v.jsx(_o,{visibility:"hidden",display:"contents",children:o})]}):v.jsx(_o,{ref:n,display:"contents",...l,children:o}):o}),{useRecipeResult:cR,usePropsContext:uR}=ii({key:"button"}),Ii=E.forwardRef(function(t,n){const r=uR(),i=E.useMemo(()=>ni(r,t),[r,t]),o=cR(i),{loading:s,loadingText:a,children:l,spinner:c,spinnerPlacement:u,...d}=o.props;return v.jsx(Oe.button,{type:"button",ref:n,...d,"data-loading":iR(s),disabled:s||d.disabled,className:st(o.className,i.className),css:[o.styles,i.css],children:!i.asChild&&s?v.jsx(lR,{spinner:c,text:a,spinnerPlacement:u,children:l}):l})}),hs=E.forwardRef(function(t,n){return v.jsx(Ii,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:n,...t})}),vg=O.forwardRef(function(t,n){return v.jsx(hs,{variant:"ghost","aria-label":"Close",ref:n,...t,children:t.children??v.jsx(KP,{})})}),bg=Oe("div",{base:{display:"flex",alignItems:"center",justifyContent:"center"},variants:{inline:{true:{display:"inline-flex"}}}});bg.displayName="Center";function dR(e){const{gap:t,direction:n}=e,r={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":lf(n,i=>r[i])}}function hR(e){return E.Children.toArray(e).filter(t=>E.isValidElement(t))}const yg=E.forwardRef(function(t,n){const{direction:r="column",align:i,justify:o,gap:s="0.5rem",wrap:a,children:l,separator:c,className:u,...d}=t,h=E.useMemo(()=>dR({gap:s,direction:r}),[s,r]),m=E.useMemo(()=>E.isValidElement(c)?hR(l).map((f,g,p)=>{const b=typeof f.key<"u"?f.key:g,x=c,S=E.cloneElement(x,{css:[h,x.props.css]});return v.jsxs(E.Fragment,{children:[f,g===p.length-1?null:S]},b)}):l,[l,c,h]);return v.jsx(Oe.div,{ref:n,display:"flex",alignItems:i,justifyContent:o,flexDirection:r,flexWrap:a,gap:c?void 0:s,className:st("chakra-stack",u),...d,children:m})}),{withRootProvider:xg,withContext:_t}=_l({key:"dialog"});xg($w,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const Cg=xg(Mw,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});_t(mh,"trigger",{forwardAsChild:!0});const Sg=_t(lh,"positioner",{forwardAsChild:!0}),wg=_t(sh,"content",{forwardAsChild:!0});_t(ah,"description",{forwardAsChild:!0});const Eg=_t(ph,"title",{forwardAsChild:!0}),kg=_t(oh,"closeTrigger",{forwardAsChild:!0}),Og=E.forwardRef(function(t,n){const r=on();return v.jsx(Oe.button,{...t,ref:n,onClick:()=>r.setOpen(!1)})}),Ig=_t(ih,"backdrop",{forwardAsChild:!0}),Pg=_t("div","body"),Rg=_t("div","footer"),Tg=_t("div","header"),Fl=E.forwardRef(function(t,n){const{direction:r,align:i,justify:o,wrap:s,basis:a,grow:l,shrink:c,inline:u,...d}=t;return v.jsx(Oe.div,{ref:n,...d,css:{display:u?"inline-flex":"flex",flexDirection:r,alignItems:i,justifyContent:o,flexWrap:s,flexBasis:a,flexGrow:l,flexShrink:c,...t.css}})}),fR=E.forwardRef(function(t,n){return v.jsx(yg,{align:"center",...t,direction:"row",ref:n})}),gR=E.forwardRef(function(t,n){return v.jsx(yg,{align:"center",...t,direction:"column",ref:n})}),{StylesProvider:pR,ClassNamesProvider:mR,useRecipeResult:vR,withContext:Wt}=_l({key:"table"}),Ng=E.forwardRef(function({native:t,...n},r){const{styles:i,props:o,classNames:s}=vR(n),a=E.useMemo(()=>t?{...i.root,"& thead":i.header,"& tbody":i.body,"& tfoot":i.footer,"& thead th":i.columnHeader,"& tr":i.row,"& td":i.cell,"& caption":i.caption}:i.root,[i,t]);return v.jsx(mR,{value:s,children:v.jsx(pR,{value:i,children:v.jsx(Oe.table,{ref:r,...o,css:[a,n.css],className:st(s==null?void 0:s.root,n.className)})})})}),fs=Wt("tr","row");Oe("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}});const Ag=Wt("thead","header");Wt("tfoot","footer");const Te=Wt("th","columnHeader"),Ne=Wt("td","cell");Wt("caption","caption",{defaultProps:{captionSide:"bottom"}});const _g=Wt("tbody","body");Wt("colgroup"),Wt("col");const{withContext:bR}=ii({key:"textarea"}),yR=bR(yh);var Ar=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},xR={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},CR=(Vv=class{constructor(){W(this,fn,xR);W(this,hc,!1)}setTimeoutProvider(e){M(this,fn,e)}setTimeout(e,t){return y(this,fn).setTimeout(e,t)}clearTimeout(e){y(this,fn).clearTimeout(e)}setInterval(e,t){return y(this,fn).setInterval(e,t)}clearInterval(e){y(this,fn).clearInterval(e)}},fn=new WeakMap,hc=new WeakMap,Vv),Wn=new CR;function SR(e){setTimeout(e,0)}var Hn=typeof window>"u"||"Deno"in globalThis;function $e(){}function wR(e,t){return typeof e=="function"?e(t):e}function Ll(e){return typeof e=="number"&&e>=0&&e!==1/0}function Vg(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ln(e,t){return typeof e=="function"?e(t):e}function ht(e,t){return typeof e=="function"?e(t):e}function Fg(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Dl(s,t.options))return!1}else if(!Pi(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||o&&!o(t))}function Lg(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Un(t.options.mutationKey)!==Un(o))return!1}else if(!Pi(t.options.mutationKey,o))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Dl(e,t){return((t==null?void 0:t.queryKeyHashFn)||Un)(e)}function Un(e){return JSON.stringify(e,(t,n)=>zl(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Pi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Pi(e[n],t[n])):!1}var ER=Object.prototype.hasOwnProperty;function Dg(e,t){if(e===t)return e;const n=zg(e)&&zg(t);if(!n&&!(zl(e)&&zl(t)))return t;const i=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),s=o.length,a=n?new Array(s):{};let l=0;for(let c=0;c{Wn.setTimeout(t,e)})}function Ml(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Dg(e,t):t}function OR(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function IR(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var $l=Symbol();function $g(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===$l?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Bg(e,t){return typeof e=="function"?e(...t):!!e}var PR=(Fv=class extends Ar{constructor(){super();W(this,Yn);W(this,gn);W(this,Dr);M(this,Dr,t=>{if(!Hn&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){y(this,gn)||this.setEventListener(y(this,Dr))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,gn))==null||t.call(this),M(this,gn,void 0))}setEventListener(t){var n;M(this,Dr,t),(n=y(this,gn))==null||n.call(this),M(this,gn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){y(this,Yn)!==t&&(M(this,Yn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof y(this,Yn)=="boolean"?y(this,Yn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Yn=new WeakMap,gn=new WeakMap,Dr=new WeakMap,Fv),Bl=new PR;function jl(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var RR=SR;function TR(){let e=[],t=0,n=a=>{a()},r=a=>{a()},i=RR;const o=a=>{t?e.push(a):i(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&i(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{o(()=>{a(...l)})},schedule:o,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{i=a}}}var we=TR(),NR=(Lv=class extends Ar{constructor(){super();W(this,zr,!0);W(this,pn);W(this,Mr);M(this,Mr,t=>{if(!Hn&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){y(this,pn)||this.setEventListener(y(this,Mr))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,pn))==null||t.call(this),M(this,pn,void 0))}setEventListener(t){var n;M(this,Mr,t),(n=y(this,pn))==null||n.call(this),M(this,pn,t(this.setOnline.bind(this)))}setOnline(t){y(this,zr)!==t&&(M(this,zr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return y(this,zr)}},zr=new WeakMap,pn=new WeakMap,Mr=new WeakMap,Lv),ps=new NR;function AR(e){return Math.min(1e3*2**e,3e4)}function jg(e){return(e??"online")==="online"?ps.isOnline():!0}var Wl=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Wg(e){let t=!1,n=0,r;const i=jl(),o=()=>i.status!=="pending",s=g=>{var p;if(!o()){const b=new Wl(g);h(b),(p=e.onCancel)==null||p.call(e,b)}},a=()=>{t=!0},l=()=>{t=!1},c=()=>Bl.isFocused()&&(e.networkMode==="always"||ps.isOnline())&&e.canRun(),u=()=>jg(e.networkMode)&&e.canRun(),d=g=>{o()||(r==null||r(),i.resolve(g))},h=g=>{o()||(r==null||r(),i.reject(g))},m=()=>new Promise(g=>{var p;r=b=>{(o()||c())&&g(b)},(p=e.onPause)==null||p.call(e)}).then(()=>{var g;r=void 0,o()||(g=e.onContinue)==null||g.call(e)}),f=()=>{if(o())return;let g;const p=n===0?e.initialPromise:void 0;try{g=p??e.fn()}catch(b){g=Promise.reject(b)}Promise.resolve(g).then(d).catch(b=>{var P;if(o())return;const x=e.retry??(Hn?0:3),S=e.retryDelay??AR,C=typeof S=="function"?S(n,b):S,w=x===!0||typeof x=="number"&&nc()?void 0:m()).then(()=>{t?h(b):f()})})};return{promise:i,status:()=>i.status,cancel:s,continue:()=>(r==null||r(),i),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?f():m().then(f),i)}}var Hg=(Dv=class{constructor(){W(this,Qn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ll(this.gcTime)&&M(this,Qn,Wn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Hn?1/0:5*60*1e3))}clearGcTimeout(){y(this,Qn)&&(Wn.clearTimeout(y(this,Qn)),M(this,Qn,void 0))}},Qn=new WeakMap,Dv),_R=(zv=class extends Hg{constructor(t){super();W(this,Ct);W(this,Jn);W(this,$r);W(this,ft);W(this,Zn);W(this,Ae);W(this,Mi);W(this,er);M(this,er,!1),M(this,Mi,t.defaultOptions),this.setOptions(t.options),this.observers=[],M(this,Zn,t.client),M(this,ft,y(this,Zn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,M(this,Jn,Gg(this.options)),this.state=t.state??y(this,Jn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=y(this,Ae))==null?void 0:t.promise}setOptions(t){if(this.options={...y(this,Mi),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=Gg(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),M(this,Jn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&y(this,ft).remove(this)}setData(t,n){const r=Ml(this.state.data,t,this.options);return J(this,Ct,Xt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){J(this,Ct,Xt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=y(this,Ae))==null?void 0:r.promise;return(i=y(this,Ae))==null||i.cancel(t),n?n.then($e).catch($e):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(y(this,Jn))}isActive(){return this.observers.some(t=>ht(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===$l||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ln(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Vg(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,Ae))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,Ae))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),y(this,ft).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(y(this,Ae)&&(y(this,er)?y(this,Ae).cancel({revert:!0}):y(this,Ae).cancelRetry()),this.scheduleGc()),y(this,ft).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||J(this,Ct,Xt).call(this,{type:"invalidate"})}async fetch(t,n){var l,c,u,d,h,m,f,g,p,b,x,S;if(this.state.fetchStatus!=="idle"&&((l=y(this,Ae))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(y(this,Ae))return y(this,Ae).continueRetry(),y(this,Ae).promise}if(t&&this.setOptions(t),!this.options.queryFn){const C=this.observers.find(w=>w.options.queryFn);C&&this.setOptions(C.options)}const r=new AbortController,i=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(M(this,er,!0),r.signal)})},o=()=>{const C=$g(this.options,n),P=(()=>{const _={client:y(this,Zn),queryKey:this.queryKey,meta:this.meta};return i(_),_})();return M(this,er,!1),this.options.persister?this.options.persister(C,P,this):C(P)},a=(()=>{const C={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:y(this,Zn),state:this.state,fetchFn:o};return i(C),C})();(c=this.options.behavior)==null||c.onFetch(a,this),M(this,$r,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&J(this,Ct,Xt).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta}),M(this,Ae,Wg({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:C=>{C instanceof Wl&&C.revert&&this.setState({...y(this,$r),fetchStatus:"idle"}),r.abort()},onFail:(C,w)=>{J(this,Ct,Xt).call(this,{type:"failed",failureCount:C,error:w})},onPause:()=>{J(this,Ct,Xt).call(this,{type:"pause"})},onContinue:()=>{J(this,Ct,Xt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const C=await y(this,Ae).start();if(C===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(C),(m=(h=y(this,ft).config).onSuccess)==null||m.call(h,C,this),(g=(f=y(this,ft).config).onSettled)==null||g.call(f,C,this.state.error,this),C}catch(C){if(C instanceof Wl){if(C.silent)return y(this,Ae).promise;if(C.revert){if(this.state.data===void 0)throw C;return this.state.data}}throw J(this,Ct,Xt).call(this,{type:"error",error:C}),(b=(p=y(this,ft).config).onError)==null||b.call(p,C,this),(S=(x=y(this,ft).config).onSettled)==null||S.call(x,this.state.data,C,this),C}finally{this.scheduleGc()}}},Jn=new WeakMap,$r=new WeakMap,ft=new WeakMap,Zn=new WeakMap,Ae=new WeakMap,Mi=new WeakMap,er=new WeakMap,Ct=new WeakSet,Xt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Ug(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return M(this,$r,t.manual?i:void 0),i;case"error":const o=t.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),we.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),y(this,ft).notify({query:this,type:"updated",action:t})})},zv);function Ug(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:jg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Gg(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var VR=(Mv=class extends Ar{constructor(t,n){super();W(this,oe);W(this,Ye);W(this,ee);W(this,$i);W(this,Be);W(this,tr);W(this,Br);W(this,Ht);W(this,mn);W(this,Bi);W(this,jr);W(this,Wr);W(this,nr);W(this,rr);W(this,vn);W(this,Hr,new Set);this.options=n,M(this,Ye,t),M(this,mn,null),M(this,Ht,jl()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(y(this,ee).addObserver(this),qg(y(this,ee),this.options)?J(this,oe,Hi).call(this):this.updateResult(),J(this,oe,yc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Hl(y(this,ee),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Hl(y(this,ee),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,J(this,oe,xc).call(this),J(this,oe,Cc).call(this),y(this,ee).removeObserver(this)}setOptions(t){const n=this.options,r=y(this,ee);if(this.options=y(this,Ye).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ht(this.options.enabled,y(this,ee))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");J(this,oe,Sc).call(this),y(this,ee).setOptions(this.options),n._defaulted&&!gs(this.options,n)&&y(this,Ye).getQueryCache().notify({type:"observerOptionsUpdated",query:y(this,ee),observer:this});const i=this.hasListeners();i&&Kg(y(this,ee),r,this.options,n)&&J(this,oe,Hi).call(this),this.updateResult(),i&&(y(this,ee)!==r||ht(this.options.enabled,y(this,ee))!==ht(n.enabled,y(this,ee))||ln(this.options.staleTime,y(this,ee))!==ln(n.staleTime,y(this,ee)))&&J(this,oe,mc).call(this);const o=J(this,oe,vc).call(this);i&&(y(this,ee)!==r||ht(this.options.enabled,y(this,ee))!==ht(n.enabled,y(this,ee))||o!==y(this,vn))&&J(this,oe,bc).call(this,o)}getOptimisticResult(t){const n=y(this,Ye).getQueryCache().build(y(this,Ye),t),r=this.createResult(n,t);return LR(this,r)&&(M(this,Be,r),M(this,Br,this.options),M(this,tr,y(this,ee).state)),r}getCurrentResult(){return y(this,Be)}trackResult(t,n){return new Proxy(t,{get:(r,i)=>(this.trackProp(i),n==null||n(i),i==="promise"&&!this.options.experimental_prefetchInRender&&y(this,Ht).status==="pending"&&y(this,Ht).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,i))})}trackProp(t){y(this,Hr).add(t)}getCurrentQuery(){return y(this,ee)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=y(this,Ye).defaultQueryOptions(t),r=y(this,Ye).getQueryCache().build(y(this,Ye),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return J(this,oe,Hi).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),y(this,Be)))}createResult(t,n){var N;const r=y(this,ee),i=this.options,o=y(this,Be),s=y(this,tr),a=y(this,Br),c=t!==r?t.state:y(this,$i),{state:u}=t;let d={...u},h=!1,m;if(n._optimisticResults){const T=this.hasListeners(),j=!T&&qg(t,n),I=T&&Kg(t,r,n,i);(j||I)&&(d={...d,...Ug(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:f,errorUpdatedAt:g,status:p}=d;m=d.data;let b=!1;if(n.placeholderData!==void 0&&m===void 0&&p==="pending"){let T;o!=null&&o.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(T=o.data,b=!0):T=typeof n.placeholderData=="function"?n.placeholderData((N=y(this,Wr))==null?void 0:N.state.data,y(this,Wr)):n.placeholderData,T!==void 0&&(p="success",m=Ml(o==null?void 0:o.data,T,n),h=!0)}if(n.select&&m!==void 0&&!b)if(o&&m===(s==null?void 0:s.data)&&n.select===y(this,Bi))m=y(this,jr);else try{M(this,Bi,n.select),m=n.select(m),m=Ml(o==null?void 0:o.data,m,n),M(this,jr,m),M(this,mn,null)}catch(T){M(this,mn,T)}y(this,mn)&&(f=y(this,mn),m=y(this,jr),g=Date.now(),p="error");const x=d.fetchStatus==="fetching",S=p==="pending",C=p==="error",w=S&&x,P=m!==void 0,R={status:p,fetchStatus:d.fetchStatus,isPending:S,isSuccess:p==="success",isError:C,isInitialLoading:w,isLoading:w,data:m,dataUpdatedAt:d.dataUpdatedAt,error:f,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:x,isRefetching:x&&!S,isLoadingError:C&&!P,isPaused:d.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:C&&P,isStale:Ul(t,n),refetch:this.refetch,promise:y(this,Ht),isEnabled:ht(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const T=F=>{R.status==="error"?F.reject(R.error):R.data!==void 0&&F.resolve(R.data)},j=()=>{const F=M(this,Ht,R.promise=jl());T(F)},I=y(this,Ht);switch(I.status){case"pending":t.queryHash===r.queryHash&&T(I);break;case"fulfilled":(R.status==="error"||R.data!==I.value)&&j();break;case"rejected":(R.status!=="error"||R.error!==I.reason)&&j();break}}return R}updateResult(){const t=y(this,Be),n=this.createResult(y(this,ee),this.options);if(M(this,tr,y(this,ee).state),M(this,Br,this.options),y(this,tr).data!==void 0&&M(this,Wr,y(this,ee)),gs(n,t))return;M(this,Be,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,o=typeof i=="function"?i():i;if(o==="all"||!o&&!y(this,Hr).size)return!0;const s=new Set(o??y(this,Hr));return this.options.throwOnError&&s.add("error"),Object.keys(y(this,Be)).some(a=>{const l=a;return y(this,Be)[l]!==t[l]&&s.has(l)})};J(this,oe,Pb).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&J(this,oe,yc).call(this)}},Ye=new WeakMap,ee=new WeakMap,$i=new WeakMap,Be=new WeakMap,tr=new WeakMap,Br=new WeakMap,Ht=new WeakMap,mn=new WeakMap,Bi=new WeakMap,jr=new WeakMap,Wr=new WeakMap,nr=new WeakMap,rr=new WeakMap,vn=new WeakMap,Hr=new WeakMap,oe=new WeakSet,Hi=function(t){J(this,oe,Sc).call(this);let n=y(this,ee).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch($e)),n},mc=function(){J(this,oe,xc).call(this);const t=ln(this.options.staleTime,y(this,ee));if(Hn||y(this,Be).isStale||!Ll(t))return;const r=Vg(y(this,Be).dataUpdatedAt,t)+1;M(this,nr,Wn.setTimeout(()=>{y(this,Be).isStale||this.updateResult()},r))},vc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(y(this,ee)):this.options.refetchInterval)??!1},bc=function(t){J(this,oe,Cc).call(this),M(this,vn,t),!(Hn||ht(this.options.enabled,y(this,ee))===!1||!Ll(y(this,vn))||y(this,vn)===0)&&M(this,rr,Wn.setInterval(()=>{(this.options.refetchIntervalInBackground||Bl.isFocused())&&J(this,oe,Hi).call(this)},y(this,vn)))},yc=function(){J(this,oe,mc).call(this),J(this,oe,bc).call(this,J(this,oe,vc).call(this))},xc=function(){y(this,nr)&&(Wn.clearTimeout(y(this,nr)),M(this,nr,void 0))},Cc=function(){y(this,rr)&&(Wn.clearInterval(y(this,rr)),M(this,rr,void 0))},Sc=function(){const t=y(this,Ye).getQueryCache().build(y(this,Ye),this.options);if(t===y(this,ee))return;const n=y(this,ee);M(this,ee,t),M(this,$i,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Pb=function(t){we.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(y(this,Be))}),y(this,Ye).getQueryCache().notify({query:y(this,ee),type:"observerResultsUpdated"})})},Mv);function FR(e,t){return ht(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function qg(e,t){return FR(e,t)||e.state.data!==void 0&&Hl(e,t,t.refetchOnMount)}function Hl(e,t,n){if(ht(t.enabled,e)!==!1&&ln(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Ul(e,t)}return!1}function Kg(e,t,n,r){return(e!==t||ht(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Ul(e,n)}function Ul(e,t){return ht(t.enabled,e)!==!1&&e.isStaleByTime(ln(t.staleTime,e))}function LR(e,t){return!gs(e.getCurrentResult(),t)}function Xg(e){return{onFetch:(t,n)=>{var u,d,h,m,f;const r=t.options,i=(h=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,o=((m=t.state.data)==null?void 0:m.pages)||[],s=((f=t.state.data)==null?void 0:f.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const p=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},b=$g(t.options,t.fetchOptions),x=async(S,C,w)=>{if(g)return Promise.reject();if(C==null&&S.pages.length)return Promise.resolve(S);const _=(()=>{const j={client:t.client,queryKey:t.queryKey,pageParam:C,direction:w?"backward":"forward",meta:t.options.meta};return p(j),j})(),R=await b(_),{maxPages:N}=t.options,T=w?IR:OR;return{pages:T(S.pages,R,N),pageParams:T(S.pageParams,C,N)}};if(i&&o.length){const S=i==="backward",C=S?DR:Yg,w={pages:o,pageParams:s},P=C(r,w);a=await x(w,P,S)}else{const S=e??o.length;do{const C=l===0?s[0]??r.initialPageParam:Yg(r,a);if(l>0&&C==null)break;a=await x(a,C),l++}while(l{var g,p;return(p=(g=t.options).persister)==null?void 0:p.call(g,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function Yg(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function DR(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var zR=($v=class extends Hg{constructor(t){super();W(this,Lt);W(this,Ft);W(this,je);W(this,ir);this.mutationId=t.mutationId,M(this,je,t.mutationCache),M(this,Ft,[]),this.state=t.state||Qg(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){y(this,Ft).includes(t)||(y(this,Ft).push(t),this.clearGcTimeout(),y(this,je).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){M(this,Ft,y(this,Ft).filter(n=>n!==t)),this.scheduleGc(),y(this,je).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){y(this,Ft).length||(this.state.status==="pending"?this.scheduleGc():y(this,je).remove(this))}continue(){var t;return((t=y(this,ir))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,a,l,c,u,d,h,m,f,g,p,b,x,S,C,w,P,_,R;const n=()=>{J(this,Lt,En).call(this,{type:"continue"})};M(this,ir,Wg({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(N,T)=>{J(this,Lt,En).call(this,{type:"failed",failureCount:N,error:T})},onPause:()=>{J(this,Lt,En).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>y(this,je).canRun(this)}));const r=this.state.status==="pending",i=!y(this,ir).canStart();try{if(r)n();else{J(this,Lt,En).call(this,{type:"pending",variables:t,isPaused:i}),await((s=(o=y(this,je).config).onMutate)==null?void 0:s.call(o,t,this));const T=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));T!==this.state.context&&J(this,Lt,En).call(this,{type:"pending",context:T,variables:t,isPaused:i})}const N=await y(this,ir).start();return await((u=(c=y(this,je).config).onSuccess)==null?void 0:u.call(c,N,t,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,N,t,this.state.context)),await((f=(m=y(this,je).config).onSettled)==null?void 0:f.call(m,N,null,this.state.variables,this.state.context,this)),await((p=(g=this.options).onSettled)==null?void 0:p.call(g,N,null,t,this.state.context)),J(this,Lt,En).call(this,{type:"success",data:N}),N}catch(N){try{throw await((x=(b=y(this,je).config).onError)==null?void 0:x.call(b,N,t,this.state.context,this)),await((C=(S=this.options).onError)==null?void 0:C.call(S,N,t,this.state.context)),await((P=(w=y(this,je).config).onSettled)==null?void 0:P.call(w,void 0,N,this.state.variables,this.state.context,this)),await((R=(_=this.options).onSettled)==null?void 0:R.call(_,void 0,N,t,this.state.context)),N}finally{J(this,Lt,En).call(this,{type:"error",error:N})}}finally{y(this,je).runNext(this)}}},Ft=new WeakMap,je=new WeakMap,ir=new WeakMap,Lt=new WeakSet,En=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),we.batch(()=>{y(this,Ft).forEach(r=>{r.onMutationUpdate(t)}),y(this,je).notify({mutation:this,type:"updated",action:t})})},$v);function Qg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var MR=(Bv=class extends Ar{constructor(t={}){super();W(this,Ut);W(this,St);W(this,ji);this.config=t,M(this,Ut,new Set),M(this,St,new Map),M(this,ji,0)}build(t,n,r){const i=new zR({mutationCache:this,mutationId:++js(this,ji)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){y(this,Ut).add(t);const n=ms(t);if(typeof n=="string"){const r=y(this,St).get(n);r?r.push(t):y(this,St).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(y(this,Ut).delete(t)){const n=ms(t);if(typeof n=="string"){const r=y(this,St).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&y(this,St).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=ms(t);if(typeof n=="string"){const r=y(this,St).get(n),i=r==null?void 0:r.find(o=>o.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=ms(t);if(typeof n=="string"){const i=(r=y(this,St).get(n))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){we.batch(()=>{y(this,Ut).forEach(t=>{this.notify({type:"removed",mutation:t})}),y(this,Ut).clear(),y(this,St).clear()})}getAll(){return Array.from(y(this,Ut))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Lg(n,r))}findAll(t={}){return this.getAll().filter(n=>Lg(t,n))}notify(t){we.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return we.batch(()=>Promise.all(t.map(n=>n.continue().catch($e))))}},Ut=new WeakMap,St=new WeakMap,ji=new WeakMap,Bv);function ms(e){var t;return(t=e.options.scope)==null?void 0:t.id}var $R=(jv=class extends Ar{constructor(t,n){super();W(this,qt);W(this,bn);W(this,yn);W(this,Qe);W(this,Gt);M(this,bn,t),this.setOptions(n),this.bindMethods(),J(this,qt,Gs).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var r;const n=this.options;this.options=y(this,bn).defaultMutationOptions(t),gs(this.options,n)||y(this,bn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:y(this,Qe),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Un(n.mutationKey)!==Un(this.options.mutationKey)?this.reset():((r=y(this,Qe))==null?void 0:r.state.status)==="pending"&&y(this,Qe).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=y(this,Qe))==null||t.removeObserver(this)}onMutationUpdate(t){J(this,qt,Gs).call(this),J(this,qt,wc).call(this,t)}getCurrentResult(){return y(this,yn)}reset(){var t;(t=y(this,Qe))==null||t.removeObserver(this),M(this,Qe,void 0),J(this,qt,Gs).call(this),J(this,qt,wc).call(this)}mutate(t,n){var r;return M(this,Gt,n),(r=y(this,Qe))==null||r.removeObserver(this),M(this,Qe,y(this,bn).getMutationCache().build(y(this,bn),this.options)),y(this,Qe).addObserver(this),y(this,Qe).execute(t)}},bn=new WeakMap,yn=new WeakMap,Qe=new WeakMap,Gt=new WeakMap,qt=new WeakSet,Gs=function(){var n;const t=((n=y(this,Qe))==null?void 0:n.state)??Qg();M(this,yn,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},wc=function(t){we.batch(()=>{var n,r,i,o,s,a,l,c;if(y(this,Gt)&&this.hasListeners()){const u=y(this,yn).variables,d=y(this,yn).context;(t==null?void 0:t.type)==="success"?((r=(n=y(this,Gt)).onSuccess)==null||r.call(n,t.data,u,d),(o=(i=y(this,Gt)).onSettled)==null||o.call(i,t.data,null,u,d)):(t==null?void 0:t.type)==="error"&&((a=(s=y(this,Gt)).onError)==null||a.call(s,t.error,u,d),(c=(l=y(this,Gt)).onSettled)==null||c.call(l,void 0,t.error,u,d))}this.listeners.forEach(u=>{u(y(this,yn))})})},jv),BR=(Wv=class extends Ar{constructor(t={}){super();W(this,Dt);this.config=t,M(this,Dt,new Map)}build(t,n,r){const i=n.queryKey,o=n.queryHash??Dl(i,n);let s=this.get(o);return s||(s=new _R({client:t,queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){y(this,Dt).has(t.queryHash)||(y(this,Dt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=y(this,Dt).get(t.queryHash);n&&(t.destroy(),n===t&&y(this,Dt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){we.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return y(this,Dt).get(t)}getAll(){return[...y(this,Dt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Fg(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Fg(t,r)):n}notify(t){we.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){we.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){we.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Dt=new WeakMap,Wv),jR=(Hv=class{constructor(e={}){W(this,me);W(this,xn);W(this,Cn);W(this,Ur);W(this,Gr);W(this,Sn);W(this,qr);W(this,Kr);M(this,me,e.queryCache||new BR),M(this,xn,e.mutationCache||new MR),M(this,Cn,e.defaultOptions||{}),M(this,Ur,new Map),M(this,Gr,new Map),M(this,Sn,0)}mount(){js(this,Sn)._++,y(this,Sn)===1&&(M(this,qr,Bl.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,me).onFocus())})),M(this,Kr,ps.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,me).onOnline())})))}unmount(){var e,t;js(this,Sn)._--,y(this,Sn)===0&&((e=y(this,qr))==null||e.call(this),M(this,qr,void 0),(t=y(this,Kr))==null||t.call(this),M(this,Kr,void 0))}isFetching(e){return y(this,me).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return y(this,xn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,me).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=y(this,me).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ln(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return y(this,me).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=y(this,me).get(r.queryHash),o=i==null?void 0:i.state.data,s=wR(t,o);if(s!==void 0)return y(this,me).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return we.batch(()=>y(this,me).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,me).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=y(this,me);we.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=y(this,me);return we.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=we.batch(()=>y(this,me).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then($e).catch($e)}invalidateQueries(e,t={}){return we.batch(()=>(y(this,me).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=we.batch(()=>y(this,me).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let o=i.fetch(void 0,n);return n.throwOnError||(o=o.catch($e)),i.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(r).then($e)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=y(this,me).build(this,t);return n.isStaleByTime(ln(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then($e).catch($e)}fetchInfiniteQuery(e){return e.behavior=Xg(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then($e).catch($e)}ensureInfiniteQueryData(e){return e.behavior=Xg(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ps.isOnline()?y(this,xn).resumePausedMutations():Promise.resolve()}getQueryCache(){return y(this,me)}getMutationCache(){return y(this,xn)}getDefaultOptions(){return y(this,Cn)}setDefaultOptions(e){M(this,Cn,e)}setQueryDefaults(e,t){y(this,Ur).set(Un(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...y(this,Ur).values()],n={};return t.forEach(r=>{Pi(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){y(this,Gr).set(Un(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...y(this,Gr).values()],n={};return t.forEach(r=>{Pi(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...y(this,Cn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Dl(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===$l&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...y(this,Cn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){y(this,me).clear(),y(this,xn).clear()}},me=new WeakMap,xn=new WeakMap,Cn=new WeakMap,Ur=new WeakMap,Gr=new WeakMap,Sn=new WeakMap,qr=new WeakMap,Kr=new WeakMap,Hv),Jg=O.createContext(void 0),Zg=e=>{const t=O.useContext(Jg);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},WR=({client:e,children:t})=>(O.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(Jg.Provider,{value:e,children:t})),ep=O.createContext(!1),HR=()=>O.useContext(ep);ep.Provider;function UR(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var GR=O.createContext(UR()),qR=()=>O.useContext(GR),KR=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},XR=e=>{O.useEffect(()=>{e.clearReset()},[e])},YR=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||Bg(n,[e.error,r])),QR=e=>{if(e.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...i)=>n(r(...i)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},JR=(e,t)=>e.isLoading&&e.isFetching&&!t,ZR=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,tp=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function eT(e,t,n){var d,h,m,f,g;const r=HR(),i=qR(),o=Zg(),s=o.defaultQueryOptions(e);(h=(d=o.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||h.call(d,s),s._optimisticResults=r?"isRestoring":"optimistic",QR(s),KR(s,i),XR(i);const a=!o.getQueryCache().get(s.queryHash),[l]=O.useState(()=>new t(o,s)),c=l.getOptimisticResult(s),u=!r&&e.subscribed!==!1;if(O.useSyncExternalStore(O.useCallback(p=>{const b=u?l.subscribe(we.batchCalls(p)):$e;return l.updateResult(),b},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),O.useEffect(()=>{l.setOptions(s)},[s,l]),ZR(s,c))throw tp(s,l,i);if(YR({result:c,errorResetBoundary:i,throwOnError:s.throwOnError,query:o.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw c.error;if((f=(m=o.getDefaultOptions().queries)==null?void 0:m._experimental_afterQuery)==null||f.call(m,s,c),s.experimental_prefetchInRender&&!Hn&&JR(c,r)){const p=a?tp(s,l,i):(g=o.getQueryCache().get(s.queryHash))==null?void 0:g.promise;p==null||p.catch($e).finally(()=>{l.updateResult()})}return s.notifyOnChangeProps?c:l.trackResult(c)}function np(e,t){return eT(e,VR)}function rp(e,t){const n=Zg(),[r]=O.useState(()=>new $R(n,e));O.useEffect(()=>{r.setOptions(e)},[r,e]);const i=O.useSyncExternalStore(O.useCallback(s=>r.subscribe(we.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),o=O.useCallback((s,a)=>{r.mutate(s,a).catch($e)},[r]);if(i.error&&Bg(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}function ip(e,t){return function(){return e.apply(t,arguments)}}const{toString:tT}=Object.prototype,{getPrototypeOf:Gl}=Object,{iterator:vs,toStringTag:op}=Symbol,bs=(e=>t=>{const n=tT.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),xt=e=>(e=e.toLowerCase(),t=>bs(t)===e),ys=e=>t=>typeof t===e,{isArray:_r}=Array,Ri=ys("undefined");function Ti(e){return e!==null&&!Ri(e)&&e.constructor!==null&&!Ri(e.constructor)&&Ke(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sp=xt("ArrayBuffer");function nT(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&sp(e.buffer),t}const rT=ys("string"),Ke=ys("function"),ap=ys("number"),Ni=e=>e!==null&&typeof e=="object",iT=e=>e===!0||e===!1,xs=e=>{if(bs(e)!=="object")return!1;const t=Gl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(op in e)&&!(vs in e)},oT=e=>{if(!Ni(e)||Ti(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},sT=xt("Date"),aT=xt("File"),lT=xt("Blob"),cT=xt("FileList"),uT=e=>Ni(e)&&Ke(e.pipe),dT=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ke(e.append)&&((t=bs(e))==="formdata"||t==="object"&&Ke(e.toString)&&e.toString()==="[object FormData]"))},hT=xt("URLSearchParams"),[fT,gT,pT,mT]=["ReadableStream","Request","Response","Headers"].map(xt),vT=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ai(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),_r(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Gn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:globalThis,cp=e=>!Ri(e)&&e!==Gn;function ql(){const{caseless:e}=cp(this)&&this||{},t={},n=(r,i)=>{const o=e&&lp(t,i)||i;xs(t[o])&&xs(r)?t[o]=ql(t[o],r):xs(r)?t[o]=ql({},r):_r(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(Ai(t,(i,o)=>{n&&Ke(i)?e[o]=ip(i,n):e[o]=i},{allOwnKeys:r}),e),yT=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xT=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},CT=(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Gl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ST=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},wT=e=>{if(!e)return null;if(_r(e))return e;let t=e.length;if(!ap(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ET=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Gl(Uint8Array)),kT=(e,t)=>{const r=(e&&e[vs]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},OT=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},IT=xt("HTMLFormElement"),PT=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),up=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),RT=xt("RegExp"),dp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ai(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},TT=e=>{dp(e,(t,n)=>{if(Ke(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ke(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},NT=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return _r(e)?r(e):r(String(e).split(t)),n},AT=()=>{},_T=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function VT(e){return!!(e&&Ke(e.append)&&e[op]==="FormData"&&e[vs])}const FT=e=>{const t=new Array(10),n=(r,i)=>{if(Ni(r)){if(t.indexOf(r)>=0)return;if(Ti(r))return r;if(!("toJSON"in r)){t[i]=r;const o=_r(r)?[]:{};return Ai(r,(s,a)=>{const l=n(s,i+1);!Ri(l)&&(o[a]=l)}),t[i]=void 0,o}}return r};return n(e,0)},LT=xt("AsyncFunction"),DT=e=>e&&(Ni(e)||Ke(e))&&Ke(e.then)&&Ke(e.catch),hp=((e,t)=>e?setImmediate:t?((n,r)=>(Gn.addEventListener("message",({source:i,data:o})=>{i===Gn&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Gn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ke(Gn.postMessage)),zT=typeof queueMicrotask<"u"?queueMicrotask.bind(Gn):typeof process<"u"&&process.nextTick||hp,k={isArray:_r,isArrayBuffer:sp,isBuffer:Ti,isFormData:dT,isArrayBufferView:nT,isString:rT,isNumber:ap,isBoolean:iT,isObject:Ni,isPlainObject:xs,isEmptyObject:oT,isReadableStream:fT,isRequest:gT,isResponse:pT,isHeaders:mT,isUndefined:Ri,isDate:sT,isFile:aT,isBlob:lT,isRegExp:RT,isFunction:Ke,isStream:uT,isURLSearchParams:hT,isTypedArray:ET,isFileList:cT,forEach:Ai,merge:ql,extend:bT,trim:vT,stripBOM:yT,inherits:xT,toFlatObject:CT,kindOf:bs,kindOfTest:xt,endsWith:ST,toArray:wT,forEachEntry:kT,matchAll:OT,isHTMLForm:IT,hasOwnProperty:up,hasOwnProp:up,reduceDescriptors:dp,freezeMethods:TT,toObjectSet:NT,toCamelCase:PT,noop:AT,toFiniteNumber:_T,findKey:lp,global:Gn,isContextDefined:cp,isSpecCompliantForm:VT,toJSONObject:FT,isAsyncFn:LT,isThenable:DT,setImmediate:hp,asap:zT,isIterable:e=>e!=null&&Ke(e[vs])};function Q(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}k.inherits(Q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:k.toJSONObject(this.config),code:this.code,status:this.status}}});const fp=Q.prototype,gp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{gp[e]={value:e}}),Object.defineProperties(Q,gp),Object.defineProperty(fp,"isAxiosError",{value:!0}),Q.from=(e,t,n,r,i,o)=>{const s=Object.create(fp);return k.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Q.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const MT=null;function Kl(e){return k.isPlainObject(e)||k.isArray(e)}function pp(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function mp(e,t,n){return e?e.concat(t).map(function(i,o){return i=pp(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function $T(e){return k.isArray(e)&&!e.some(Kl)}const BT=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});function Cs(e,t,n){if(!k.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,p){return!k.isUndefined(p[g])});const r=n.metaTokens,i=n.visitor||u,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(t);if(!k.isFunction(i))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(k.isDate(f))return f.toISOString();if(k.isBoolean(f))return f.toString();if(!l&&k.isBlob(f))throw new Q("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(f)||k.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,g,p){let b=f;if(f&&!p&&typeof f=="object"){if(k.endsWith(g,"{}"))g=r?g:g.slice(0,-2),f=JSON.stringify(f);else if(k.isArray(f)&&$T(f)||(k.isFileList(f)||k.endsWith(g,"[]"))&&(b=k.toArray(f)))return g=pp(g),b.forEach(function(S,C){!(k.isUndefined(S)||S===null)&&t.append(s===!0?mp([g],C,o):s===null?g:g+"[]",c(S))}),!1}return Kl(f)?!0:(t.append(mp(p,g,o),c(f)),!1)}const d=[],h=Object.assign(BT,{defaultVisitor:u,convertValue:c,isVisitable:Kl});function m(f,g){if(!k.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(f),k.forEach(f,function(b,x){(!(k.isUndefined(b)||b===null)&&i.call(t,b,k.isString(x)?x.trim():x,g,h))===!0&&m(b,g?g.concat(x):[x])}),d.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return m(e),t}function vp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Xl(e,t){this._pairs=[],e&&Cs(e,this,t)}const bp=Xl.prototype;bp.append=function(t,n){this._pairs.push([t,n])},bp.toString=function(t){const n=t?function(r){return t.call(this,r,vp)}:vp;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function jT(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function yp(e,t,n){if(!t)return e;const r=n&&n.encode||jT;k.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(i?o=i(t,n):o=k.isURLSearchParams(t)?t.toString():new Xl(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class xp{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){k.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Cp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},WT={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Xl,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Yl=typeof window<"u"&&typeof document<"u",Ql=typeof navigator=="object"&&navigator||void 0,HT=Yl&&(!Ql||["ReactNative","NativeScript","NS"].indexOf(Ql.product)<0),UT=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",GT=Yl&&window.location.href||"http://localhost",ze={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Yl,hasStandardBrowserEnv:HT,hasStandardBrowserWebWorkerEnv:UT,navigator:Ql,origin:GT},Symbol.toStringTag,{value:"Module"})),...WT};function qT(e,t){return Cs(e,new ze.classes.URLSearchParams,{visitor:function(n,r,i,o){return ze.isNode&&k.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function KT(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function XT(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return s=!s&&k.isArray(i)?i.length:s,l?(k.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!k.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&k.isArray(i[s])&&(i[s]=XT(i[s])),!a)}if(k.isFormData(e)&&k.isFunction(e.entries)){const n={};return k.forEachEntry(e,(r,i)=>{t(KT(r),i,n,0)}),n}return null}function YT(e,t,n){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const _i={transitional:Cp,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=k.isObject(t);if(o&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return i?JSON.stringify(Sp(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t)||k.isReadableStream(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return qT(t,this.formSerializer).toString();if((a=k.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Cs(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),YT(t)):t}],transformResponse:[function(t){const n=this.transitional||_i.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(k.isResponse(t)||k.isReadableStream(t))return t;if(t&&k.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?Q.from(a,Q.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ze.classes.FormData,Blob:ze.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{_i.headers[e]={}});const QT=k.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),JT=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&QT[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},wp=Symbol("internals");function Vi(e){return e&&String(e).trim().toLowerCase()}function Ss(e){return e===!1||e==null?e:k.isArray(e)?e.map(Ss):String(e)}function ZT(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const e2=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Jl(e,t,n,r,i){if(k.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!k.isString(t)){if(k.isString(r))return t.indexOf(r)!==-1;if(k.isRegExp(r))return r.test(t)}}function t2(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function n2(e,t){const n=k.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}let Xe=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(a,l,c){const u=Vi(l);if(!u)throw new Error("header name must be a non-empty string");const d=k.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=Ss(a))}const s=(a,l)=>k.forEach(a,(c,u)=>o(c,u,l));if(k.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(k.isString(t)&&(t=t.trim())&&!e2(t))s(JT(t),n);else if(k.isObject(t)&&k.isIterable(t)){let a={},l,c;for(const u of t){if(!k.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[c=u[0]]=(l=a[c])?k.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}s(a,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=Vi(t),t){const r=k.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return ZT(i);if(k.isFunction(n))return n.call(this,i,r);if(k.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Vi(t),t){const r=k.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Jl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=Vi(s),s){const a=k.findKey(r,s);a&&(!n||Jl(r,r[a],a,n))&&(delete r[a],i=!0)}}return k.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||Jl(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return k.forEach(this,(i,o)=>{const s=k.findKey(r,o);if(s){n[s]=Ss(i),delete n[o];return}const a=t?t2(o):String(o).trim();a!==o&&delete n[o],n[a]=Ss(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return k.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&k.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[wp]=this[wp]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=Vi(s);r[a]||(n2(i,s),r[a]=!0)}return k.isArray(t)?t.forEach(o):o(t),this}};Xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),k.reduceDescriptors(Xe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),k.freezeMethods(Xe);function Zl(e,t){const n=this||_i,r=t||n,i=Xe.from(r.headers);let o=r.data;return k.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Ep(e){return!!(e&&e.__CANCEL__)}function Vr(e,t,n){Q.call(this,e??"canceled",Q.ERR_CANCELED,t,n),this.name="CanceledError"}k.inherits(Vr,Q,{__CANCEL__:!0});function kp(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Q("Request failed with status code "+n.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function r2(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function i2(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[o];s||(s=c),n[i]=l,r[i]=c;let d=o,h=0;for(;d!==i;)h+=n[d++],d=d%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-s{n=u,i=null,o&&(clearTimeout(o),o=null),e(...c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?s(c,u):(i=c,o||(o=setTimeout(()=>{o=null,s(i)},r-d)))},()=>i&&s(i)]}const ws=(e,t,n=3)=>{let r=0;const i=i2(50,250);return o2(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,l=s-r,c=i(l),u=s<=a;r=s;const d={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-s)/c:void 0,event:o,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},Op=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ip=e=>(...t)=>k.asap(()=>e(...t)),s2=ze.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ze.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ze.origin),ze.navigator&&/(msie|trident)/i.test(ze.navigator.userAgent)):()=>!0,a2=ze.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const s=[e+"="+encodeURIComponent(t)];k.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),k.isString(r)&&s.push("path="+r),k.isString(i)&&s.push("domain="+i),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function l2(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function c2(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Pp(e,t,n){let r=!l2(t);return e&&(r||n==!1)?c2(e,t):t}const Rp=e=>e instanceof Xe?{...e}:e;function qn(e,t){t=t||{};const n={};function r(c,u,d,h){return k.isPlainObject(c)&&k.isPlainObject(u)?k.merge.call({caseless:h},c,u):k.isPlainObject(u)?k.merge({},u):k.isArray(u)?u.slice():u}function i(c,u,d,h){if(k.isUndefined(u)){if(!k.isUndefined(c))return r(void 0,c,d,h)}else return r(c,u,d,h)}function o(c,u){if(!k.isUndefined(u))return r(void 0,u)}function s(c,u){if(k.isUndefined(u)){if(!k.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u,d)=>i(Rp(c),Rp(u),d,!0)};return k.forEach(Object.keys({...e,...t}),function(u){const d=l[u]||i,h=d(e[u],t[u],u);k.isUndefined(h)&&d!==a||(n[u]=h)}),n}const Tp=e=>{const t=qn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=t;t.headers=s=Xe.from(s),t.url=yp(Pp(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(k.isFormData(n)){if(ze.hasStandardBrowserEnv||ze.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...u].join("; "))}}if(ze.hasStandardBrowserEnv&&(r&&k.isFunction(r)&&(r=r(t)),r||r!==!1&&s2(t.url))){const c=i&&o&&a2.read(o);c&&s.set(i,c)}return t},u2=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const i=Tp(e);let o=i.data;const s=Xe.from(i.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=i,u,d,h,m,f;function g(){m&&m(),f&&f(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let p=new XMLHttpRequest;p.open(i.method.toUpperCase(),i.url,!0),p.timeout=i.timeout;function b(){if(!p)return;const S=Xe.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),w={data:!a||a==="text"||a==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:S,config:e,request:p};kp(function(_){n(_),g()},function(_){r(_),g()},w),p=null}"onloadend"in p?p.onloadend=b:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(b)},p.onabort=function(){p&&(r(new Q("Request aborted",Q.ECONNABORTED,e,p)),p=null)},p.onerror=function(){r(new Q("Network Error",Q.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||Cp;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),r(new Q(C,w.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,e,p)),p=null},o===void 0&&s.setContentType(null),"setRequestHeader"in p&&k.forEach(s.toJSON(),function(C,w){p.setRequestHeader(w,C)}),k.isUndefined(i.withCredentials)||(p.withCredentials=!!i.withCredentials),a&&a!=="json"&&(p.responseType=i.responseType),c&&([h,f]=ws(c,!0),p.addEventListener("progress",h)),l&&p.upload&&([d,m]=ws(l),p.upload.addEventListener("progress",d),p.upload.addEventListener("loadend",m)),(i.cancelToken||i.signal)&&(u=S=>{p&&(r(!S||S.type?new Vr(null,e,p):S),p.abort(),p=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const x=r2(i.url);if(x&&ze.protocols.indexOf(x)===-1){r(new Q("Unsupported protocol "+x+":",Q.ERR_BAD_REQUEST,e));return}p.send(o||null)})},d2=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const o=function(c){if(!i){i=!0,a();const u=c instanceof Error?c:this.reason;r.abort(u instanceof Q?u:new Vr(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,o(new Q(`timeout ${t} of ms exceeded`,Q.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=r;return l.unsubscribe=()=>k.asap(a),l}},h2=function*(e,t){let n=e.byteLength;if(n{const i=f2(e,t);let o=0,s,a=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await i.next();if(c){a(),l.close();return}let d=u.byteLength;if(n){let h=o+=d;n(h)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),i.return()}},{highWaterMark:2})},Es=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ap=Es&&typeof ReadableStream=="function",p2=Es&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),_p=(e,...t)=>{try{return!!e(...t)}catch{return!1}},m2=Ap&&_p(()=>{let e=!1;const t=new Request(ze.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Vp=64*1024,ec=Ap&&_p(()=>k.isReadableStream(new Response("").body)),ks={stream:ec&&(e=>e.body)};Es&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ks[t]&&(ks[t]=k.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Q(`Response type '${t}' is not supported`,Q.ERR_NOT_SUPPORT,r)})})})(new Response);const v2=async e=>{if(e==null)return 0;if(k.isBlob(e))return e.size;if(k.isSpecCompliantForm(e))return(await new Request(ze.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(k.isArrayBufferView(e)||k.isArrayBuffer(e))return e.byteLength;if(k.isURLSearchParams(e)&&(e=e+""),k.isString(e))return(await p2(e)).byteLength},b2=async(e,t)=>{const n=k.toFiniteNumber(e.getContentLength());return n??v2(t)},tc={http:MT,xhr:u2,fetch:Es&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:h}=Tp(e);c=c?(c+"").toLowerCase():"text";let m=d2([i,o&&o.toAbortSignal()],s),f;const g=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let p;try{if(l&&m2&&n!=="get"&&n!=="head"&&(p=await b2(u,r))!==0){let w=new Request(t,{method:"POST",body:r,duplex:"half"}),P;if(k.isFormData(r)&&(P=w.headers.get("content-type"))&&u.setContentType(P),w.body){const[_,R]=Op(p,ws(Ip(l)));r=Np(w.body,Vp,_,R)}}k.isString(d)||(d=d?"include":"omit");const b="credentials"in Request.prototype;f=new Request(t,{...h,signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:b?d:void 0});let x=await fetch(f,h);const S=ec&&(c==="stream"||c==="response");if(ec&&(a||S&&g)){const w={};["status","statusText","headers"].forEach(N=>{w[N]=x[N]});const P=k.toFiniteNumber(x.headers.get("content-length")),[_,R]=a&&Op(P,ws(Ip(a),!0))||[];x=new Response(Np(x.body,Vp,_,()=>{R&&R(),g&&g()}),w)}c=c||"text";let C=await ks[k.findKey(ks,c)||"text"](x,e);return!S&&g&&g(),await new Promise((w,P)=>{kp(w,P,{data:C,headers:Xe.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:f})})}catch(b){throw g&&g(),b&&b.name==="TypeError"&&/Load failed|fetch/i.test(b.message)?Object.assign(new Q("Network Error",Q.ERR_NETWORK,e,f),{cause:b.cause||b}):Q.from(b,b&&b.code,e,f)}})};k.forEach(tc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Fp=e=>`- ${e}`,y2=e=>k.isFunction(e)||e===null||e===!1,Lp={getAdapter:e=>{e=k.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?o.length>1?`since : -`+o.map(Fp).join(` -`):" "+Fp(o[0]):"as no adapter specified";throw new Q("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:tc};function nc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Vr(null,e)}function Dp(e){return nc(e),e.headers=Xe.from(e.headers),e.data=Zl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Lp.getAdapter(e.adapter||_i.adapter)(e).then(function(r){return nc(e),r.data=Zl.call(e,e.transformResponse,r),r.headers=Xe.from(r.headers),r},function(r){return Ep(r)||(nc(e),r&&r.response&&(r.response.data=Zl.call(e,e.transformResponse,r.response),r.response.headers=Xe.from(r.response.headers))),Promise.reject(r)})}const zp="1.11.0",Os={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Os[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Mp={};Os.transitional=function(t,n,r){function i(o,s){return"[Axios v"+zp+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(t===!1)throw new Q(i(s," has been removed"+(n?" in "+n:"")),Q.ERR_DEPRECATED);return n&&!Mp[s]&&(Mp[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}},Os.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function x2(e,t,n){if(typeof e!="object")throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new Q("option "+o+" must be "+l,Q.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Q("Unknown option "+o,Q.ERR_BAD_OPTION)}}const Is={assertOptions:x2,validators:Os},Vt=Is.validators;let Kn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new xp,response:new xp}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=qn(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Is.assertOptions(r,{silentJSONParsing:Vt.transitional(Vt.boolean),forcedJSONParsing:Vt.transitional(Vt.boolean),clarifyTimeoutError:Vt.transitional(Vt.boolean)},!1),i!=null&&(k.isFunction(i)?n.paramsSerializer={serialize:i}:Is.assertOptions(i,{encode:Vt.function,serialize:Vt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Is.assertOptions(n,{baseUrl:Vt.spelling("baseURL"),withXsrfToken:Vt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&k.merge(o.common,o[n.method]);o&&k.forEach(["delete","get","head","post","put","patch","common"],f=>{delete o[f]}),n.headers=Xe.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,d=0,h;if(!l){const f=[Dp.bind(this),void 0];for(f.unshift(...a),f.push(...c),h=f.length,u=Promise.resolve(n);d{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,a){r.reason||(r.reason=new Vr(o,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Rb(function(i){t=i}),cancel:t}}};function S2(e){return function(n){return e.apply(null,n)}}function w2(e){return k.isObject(e)&&e.isAxiosError===!0}const rc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(rc).forEach(([e,t])=>{rc[t]=e});function $p(e){const t=new Kn(e),n=ip(Kn.prototype.request,t);return k.extend(n,Kn.prototype,t,{allOwnKeys:!0}),k.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return $p(qn(e,i))},n}const ge=$p(_i);ge.Axios=Kn,ge.CanceledError=Vr,ge.CancelToken=C2,ge.isCancel=Ep,ge.VERSION=zp,ge.toFormData=Cs,ge.AxiosError=Q,ge.Cancel=ge.CanceledError,ge.all=function(t){return Promise.all(t)},ge.spread=S2,ge.isAxiosError=w2,ge.mergeConfig=qn,ge.AxiosHeaders=Xe,ge.formToJSON=e=>Sp(k.isHTMLForm(e)?new FormData(e):e),ge.getAdapter=Lp.getAdapter,ge.HttpStatusCode=rc,ge.default=ge;const{Axios:E5,AxiosError:k5,CanceledError:O5,isCancel:I5,CancelToken:P5,VERSION:R5,all:T5,Cancel:N5,isAxiosError:A5,spread:_5,toFormData:V5,AxiosHeaders:F5,HttpStatusCode:L5,formToJSON:D5,getAdapter:z5,mergeConfig:M5}=ge;var Ps=["light","dark"],ic="(prefers-color-scheme: dark)",E2=typeof window>"u",Bp=O.createContext(void 0),k2=e=>O.useContext(Bp)?e.children:O.createElement(I2,{...e}),O2=["light","dark"],I2=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:i="theme",themes:o=O2,defaultTheme:s=n?"system":"light",attribute:a="data-theme",value:l,children:c,nonce:u})=>{let[d,h]=O.useState(()=>jp(i,s)),[m,f]=O.useState(()=>jp(i)),g=l?Object.values(l):o,p=O.useCallback(C=>{let w=C;if(!w)return;C==="system"&&n&&(w=Wp());let P=l?l[w]:w,_=t?R2():null,R=document.documentElement;if(a==="class"?(R.classList.remove(...g),P&&R.classList.add(P)):P?R.setAttribute(a,P):R.removeAttribute(a),r){let N=Ps.includes(s)?s:null,T=Ps.includes(w)?w:N;R.style.colorScheme=T}_==null||_()},[]),b=O.useCallback(C=>{let w=typeof C=="function"?C(C):C;h(w);try{localStorage.setItem(i,w)}catch{}},[e]),x=O.useCallback(C=>{let w=Wp(C);f(w),d==="system"&&n&&!e&&p("system")},[d,e]);O.useEffect(()=>{let C=window.matchMedia(ic);return C.addListener(x),x(C),()=>C.removeListener(x)},[x]),O.useEffect(()=>{let C=w=>{if(w.key!==i)return;let P=w.newValue||s;b(P)};return window.addEventListener("storage",C),()=>window.removeEventListener("storage",C)},[b]),O.useEffect(()=>{p(e??d)},[e,d]);let S=O.useMemo(()=>({theme:d,setTheme:b,forcedTheme:e,resolvedTheme:d==="system"?m:d,themes:n?[...o,"system"]:o,systemTheme:n?m:void 0}),[d,b,e,m,n,o]);return O.createElement(Bp.Provider,{value:S},O.createElement(P2,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:r,storageKey:i,themes:o,defaultTheme:s,attribute:a,value:l,children:c,attrs:g,nonce:u}),c)},P2=O.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:o,value:s,attrs:a,nonce:l})=>{let c=o==="system",u=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(f=>`'${f}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=i?Ps.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(f,g=!1,p=!0)=>{let b=s?s[f]:f,x=g?f+"|| ''":`'${b}'`,S="";return i&&p&&!g&&Ps.includes(f)&&(S+=`d.style.colorScheme = '${f}';`),n==="class"?g||b?S+=`c.add(${x})`:S+="null":b&&(S+=`d[s](n,${x})`),S},m=e?`!function(){${u}${h(e)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${ic}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}${c?"":"else{"+h(o,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}else{${h(o,!1,!1)};}${d}}catch(t){}}();`;return O.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:m}})}),jp=(e,t)=>{if(E2)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},R2=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},Wp=e=>(e||(e=window.matchMedia(ic)),e.matches?"dark":"light");const T2=e=>v.jsx(k2,{attribute:"class",disableTransitionOnChange:!0,...e});/** ->>>>>>> 3f3a37a363 (Add confirmation dialog for exit maintenance action in Edge Worker Page) +)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),pE=_f("width"),mE=_f("height"),Af=e=>({isMin:Mf(e.minMax,e.maxMin,e.min),isMax:Mf(e.maxMin,e.minMax,e.max)}),{isMin:Al,isMax:Vf}=Af(pE),{isMin:Vl,isMax:Lf}=Af(mE),Ff=/print/i,Df=/^print$/i,vE=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,bE=/(\d)/,Io=Number.MAX_VALUE,yE={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function zf(e){const t=vE.exec(e)||(Al(e)||Vl(e)?bE.exec(e):null);if(!t)return Io;if(t[0]==="0")return 0;const n=parseFloat(t[1]),r=t[2];return n*(yE[r]||1)}function Mf(e,t,n){return r=>e.test(r)||!t.test(r)&&n.test(r)}function xE(e,t){const n=Ff.test(e),r=Df.test(e),o=Ff.test(t),i=Df.test(t);return n&&o?!r&&i?1:r&&!i?-1:e.localeCompare(t):n?1:o?-1:null}const CE=yt((e,t)=>{const n=xE(e,t);if(n!==null)return n;const r=Al(e)||Vl(e),o=Vf(e)||Lf(e),i=Al(t)||Vl(t),s=Vf(t)||Lf(t);if(r&&s)return-1;if(o&&i)return 1;const a=zf(e),l=zf(t);return a===Io&&l===Io?e.localeCompare(t):a===Io?1:l===Io?-1:a!==l?a>l?o?-1:1:o?1:-1:e.localeCompare(t)});function $f(e){return e.sort(([t],[n])=>CE(t,n))}function jf(e){const t=[],n=[],r={};for(const[s,a]of Object.entries(e))s.startsWith("@media")?t.push([s,a]):s.startsWith("@container")?n.push([s,a]):Ue(a)?r[s]=jf(a):r[s]=a;const o=$f(t),i=$f(n);return{...r,...Object.fromEntries(o),...Object.fromEntries(i)}}const Bf=/\s*!(important)?/i,kE=e=>Ot(e)?Bf.test(e):!1,SE=e=>Ot(e)?e.replace(Bf,"").trim():e;function Wf(e){const{transform:t,conditions:n,normalize:r}=e,o=OE(e);return yt(function(...s){const a=o(...s),l=r(a),c=Object.create(null);return _t(l,(u,d)=>{const h=kE(u);if(u==null)return;const[p,...f]=n.sort(d).map(n.resolve);h&&(u=SE(u));let g=t(p,u)??Object.create(null);g=_t(g,m=>Ot(m)&&h?`${m} !important`:m,{getKey:m=>n.expandAtRule(m)}),wE(c,f.flat(),g)}),jf(c)})}function wE(e,t,n){let r=e;for(const o of t)o&&(r[o]||(r[o]=Object.create(null)),r=r[o]);Or(r,n)}function EE(...e){return e.filter(t=>Ue(t)&&Object.keys(oo(t)).length>0)}function OE(e){function t(n){const r=EE(...n);return r.length===1?r:r.map(o=>e.normalize(o))}return yt(function(...r){return Or({},...t(r))})}const Hf=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function IE(e){const{css:t,conditions:n,normalize:r,layers:o}=e;function i(a={}){const{base:l,variants:c,defaultVariants:u,compoundVariants:d}=Hf(a),h=Wf({conditions:n,normalize:r,transform(x,k){var C;return(C=c[x])==null?void 0:C[k]}}),p=(x={})=>{const k=r({...u,...oo(x)});let C={...l};Or(C,h(k));const S=s(d,k);return o.wrap("recipes",t(C,S))},f=Object.keys(c),g=x=>{const k=mf(x,["recipe"]),[C,S]=lr(k,f);return f.includes("colorPalette")||(C.colorPalette=x.colorPalette||u.colorPalette),f.includes("orientation")&&(S.orientation=x.orientation),[C,S]},m=Object.fromEntries(Object.entries(c).map(([x,k])=>[x,Object.keys(k)]));return Object.assign(x=>t(p(x)),{className:a.className,__cva__:!0,variantMap:m,variantKeys:f,raw:p,config:a,splitVariantProps:g,merge(x){return i(PE(e)(this,x))}})}function s(a,l){let c={};return a.forEach(u=>{Object.entries(u).every(([h,p])=>h==="css"?!0:(Array.isArray(p)?p:[p]).some(g=>l[h]===g))&&(c=t(c,u.css))}),c}return i}function PE(e){const{css:t}=e;return function(r,o){const i=Hf(o.config),s=su(r.variantKeys,Object.keys(o.variants)),a=t(r.base,i.base),l=Object.fromEntries(s.map(h=>[h,t(r.config.variants[h],i.variants[h])])),c=Or(r.config.defaultVariants,i.defaultVariants),u=[...r.compoundVariants,...i.compoundVariants];return{className:at(r.className,o.className),base:a,variants:l,defaultVariants:c,compoundVariants:u}}}const RE={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},Uf={reset:0,base:1,tokens:2,recipes:3};function TE(e){const t=e.layers??RE,r=Object.values(t).sort((o,i)=>Uf[o]-Uf[i]);return{names:r,atRule:`@layer ${r.join(", ")};`,wrap(o,i){return e.disableLayers?i:{[`@layer ${t[o]}`]:i}}}}function NE(e){const{utility:t,normalize:n}=e,{hasShorthand:r,resolveShorthand:o}=t;return function(i){return _t(i,n,{stop:s=>Array.isArray(s),getKey:r?o:void 0})}}function _E(e){const{preflight:t}=e;if(!t)return{};const{scope:n="",level:r="parent"}=Ue(t)?t:{};let o="";n&&r==="parent"?o=`${n} `:n&&r==="element"&&(o=`&${n}`);const i={"*":{margin:"0px",padding:"0px",font:"inherit",wordWrap:"break-word",WebkitTapHighlightColor:"transparent"},"*, *::before, *::after, *::backdrop":{boxSizing:"border-box",borderWidth:"0px",borderStyle:"solid",borderColor:"var(--global-color-border, currentColor)"},hr:{height:"0px",color:"inherit",borderTopWidth:"1px"},body:{minHeight:"100dvh",position:"relative"},img:{borderStyle:"none"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},iframe:{border:"none"},"img, video":{maxWidth:"100%",height:"auto"},"p, h1, h2, h3, h4, h5, h6":{overflowWrap:"break-word"},"ol, ul":{listStyle:"none"},"code, kbd, pre, samp":{fontSize:"1em"},"button, [type='button'], [type='reset'], [type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},"button, input, optgroup, select, textarea":{color:"inherit"},"button, select":{textTransform:"none"},table:{textIndent:"0px",borderColor:"inherit",borderCollapse:"collapse"},"*::placeholder":{opacity:"unset",color:"#9ca3af",userSelect:"none"},textarea:{resize:"vertical"},summary:{display:"list-item"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},dialog:{padding:"0px"},a:{color:"inherit",textDecoration:"inherit"},"abbr:where([title])":{textDecoration:"underline dotted"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontSize:"1em","--font-mono-fallback":"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New'",fontFamily:"var(--global-font-mono, var(--font-mono-fallback))"},'input[type="text"], input[type="email"], input[type="search"], input[type="password"]':{WebkitAppearance:"none",MozAppearance:"none"},"input[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration, ::-webkit-search-cancel-button":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},'input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button':{height:"auto"},"input[type='number']":{MozAppearance:"textfield"},":-moz-ui-invalid":{boxShadow:"none"},":-moz-focusring":{outline:"auto"},"[hidden]:where(:not([hidden='until-found']))":{display:"none !important"}},s={[n||"html"]:{lineHeight:1.5,"--font-fallback":"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'",WebkitTextSizeAdjust:"100%",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",touchAction:"manipulation",MozTabSize:"4",tabSize:"4",fontFamily:"var(--global-font-body, var(--font-fallback))"}};if(r==="element"){const a=Object.entries(i).reduce((l,[c,u])=>(l[c]={[o]:u},l),{});Object.assign(s,a)}else o?s[o]=i:Object.assign(s,i);return s}function AE(e){const{conditions:t,isValidProperty:n}=e;return function(o){return _t(o,i=>i,{getKey:(i,s)=>Ue(s)&&!t.has(i)&&!n(i)?VE(i).map(a=>"&"+a).join(", "):i})}}function VE(e){const t=[];let n=0,r="",o=!1;for(let i=0;i{const t=o=>{var i;return{base:((i=e.base)==null?void 0:i[o])??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?FE(e.compoundVariants,o):[]}},r=(e.slots??[]).map(o=>[o,t(o)]);for(const[o,i]of Object.entries(e.variants??{}))for(const[s,a]of Object.entries(i))r.forEach(([l,c])=>{var u;(u=c.variants)[o]??(u[o]={}),c.variants[o][s]=a[l]??{}});return Object.fromEntries(r)},FE=(e,t)=>e.filter(n=>n.css[t]).map(n=>({...n,css:n.css[t]}));function DE(e){const{cva:t}=e;return function(r={}){const o=Object.entries(LE(r)).map(([d,h])=>[d,t(h)]);function i(d){const h=o.map(([p,f])=>[p,f(d)]);return Object.fromEntries(h)}const s=r.variants??{},a=Object.keys(s);function l(d){var g;const h=mf(d,["recipe"]),[p,f]=lr(h,a);return a.includes("colorPalette")||(p.colorPalette=d.colorPalette||((g=r.defaultVariants)==null?void 0:g.colorPalette)),a.includes("orientation")&&(f.orientation=d.orientation),[p,f]}const c=Object.fromEntries(Object.entries(s).map(([d,h])=>[d,Object.keys(h)]));let u={};return r.className&&(u=Object.fromEntries(r.slots.map(d=>[d,`${r.className}__${d}`]))),Object.assign(i,{variantMap:c,variantKeys:a,splitVariantProps:l,classNameMap:u})}}const zE=()=>e=>Array.from(new Set(e)),ME=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,$E=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},Gf=e=>(e+"").replace(ME,$E),qf=(e,t)=>{let n="",r=0,o="char",i="",s="";const a=[];for(;r{let t=0;const n=["("];for(;t{n instanceof Map?t[r]=Object.fromEntries(n):t[r]=n}),t}const Xf=/({([^}]*)})/g,BE=/[{}]/g,WE=/\w+\.\w+/,Yf=e=>{if(!Ot(e))return[];const t=e.match(Xf);return t?t.map(n=>n.replace(BE,"")).map(n=>n.trim()):[]},HE=e=>Xf.test(e);function Qf(e){var n,r,o;if(!((n=e.extensions)!=null&&n.references))return((o=(r=e.extensions)==null?void 0:r.cssVar)==null?void 0:o.ref)??e.value;const t=e.extensions.references??{};return e.value=Object.keys(t).reduce((i,s)=>{const a=t[s];if(a.extensions.conditions)return i;const l=Qf(a);return i.replace(`{${s}}`,l)},e.value),delete e.extensions.references,e.value}function Jf(e){return Ue(e)&&e.reference?e.reference:String(e)}const fs=(e,...t)=>t.map(Jf).join(` ${e} `).replace(/calc/g,""),Zf=(...e)=>`calc(${fs("+",...e)})`,eg=(...e)=>`calc(${fs("-",...e)})`,Ll=(...e)=>`calc(${fs("*",...e)})`,tg=(...e)=>`calc(${fs("/",...e)})`,ng=e=>{const t=Jf(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Ll(t,-1)},Nr=Object.assign(e=>({add:(...t)=>Nr(Zf(e,...t)),subtract:(...t)=>Nr(eg(e,...t)),multiply:(...t)=>Nr(Ll(e,...t)),divide:(...t)=>Nr(tg(e,...t)),negate:()=>Nr(ng(e)),toString:()=>e.toString()}),{add:Zf,subtract:eg,multiply:Ll,divide:tg,negate:ng}),UE={enforce:"pre",transform(e){const{prefix:t,allTokens:n,formatCssVar:r,formatTokenName:o,registerToken:i}=e;n.filter(({extensions:a})=>a.category==="spacing").forEach(a=>{const l=a.path.slice(),c=r(l,t);if(Ot(a.value)&&a.value==="0rem")return;const u=structuredClone(a);Object.assign(u.extensions,{negative:!0,prop:`-${a.extensions.prop}`,originalPath:l}),u.value=Nr.negate(c.ref);const d=u.path[u.path.length-1];d!=null&&(u.path[u.path.length-1]=`-${d}`),u.path&&(u.name=o(u.path)),i(u)})}},GE=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),qE=[UE,{enforce:"post",transform(e){const{allTokens:t,registerToken:n,formatTokenName:r}=e,o=t.filter(({extensions:a})=>a.category==="colors"),i=new Map,s=new Map;o.forEach(a=>{const{colorPalette:l}=a.extensions;l&&(l.keys.forEach(c=>{i.set(r(c),c)}),l.roots.forEach(c=>{var h;const u=r(c),d=s.get(u)||[];if(d.push(a),s.set(u,d),a.extensions.default&&c.length===1){const p=(h=l.keys[0])==null?void 0:h.filter(Boolean);if(!p.length)return;const f=c.concat(p);i.set(r(f),[])}}))}),i.forEach(a=>{const l=["colors","colorPalette",...a].filter(Boolean),c=r(l),u=r(l.slice(1));n({name:c,value:c,originalValue:c,path:l,extensions:{condition:"base",originalPath:l,category:"colors",prop:u,virtual:!0}},"pre")})}},{enforce:"post",transform(e){e.allTokens.filter(n=>GE.has(n.extensions.category)&&!n.extensions.negative).forEach(n=>{Object.assign(n.extensions,{pixelValue:Tf(n.value)})})}},{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}}],KE=[{type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:n,formatCssVar:r}=t,{negative:o,originalPath:i}=e.extensions,s=o?i:e.path;return{cssVar:r(s.filter(Boolean),n)}}},{enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:n,formatCssVar:r}=t,o=Yf(e.value);return o.length&&o.forEach(i=>{const s=r(i.split("."),n);e.value=e.value.replace(`{${s.ref}}`,s)}),e.value}},{type:"extensions",enforce:"pre",name:"tokens/colors/colorPalette",match(e){return e.extensions.category==="colors"&&!e.extensions.virtual},transform(e,t){let n=e.path.slice();if(n.pop(),n.shift(),n.length===0){const a=[...e.path];a.shift(),n=a}if(n.length===0)return{};const r=n.reduce((a,l,c,u)=>{const d=u.slice(0,c+1);return a.push(d),a},[]),o=n[0],i=t.formatTokenName(n),s=e.path.slice(e.path.indexOf(o)+1).reduce((a,l,c,u)=>(a.push(u.slice(c)),a),[]);return s.length===0&&s.push([""]),{colorPalette:{value:i,roots:r,keys:s}}}}],rg=e=>Ue(e)&&Object.prototype.hasOwnProperty.call(e,"value");function XE(e){return e?{breakpoints:vf(e,t=>({value:t})),sizes:Object.fromEntries(Object.entries(e).map(([t,n])=>[`breakpoint-${t}`,{value:n}]))}:{breakpoints:{},sizes:{}}}function YE(e){const{prefix:t="",tokens:n={},semanticTokens:r={},breakpoints:o={}}=e,i=D=>D.join("."),s=(D,F)=>xf(D.join("-"),{prefix:F}),a=[],l=new Map,c=new Map,u=new Map,d=new Map,h=new Map,p=new Map,f=new Map,g=new Map,m=[];function b(D,F){a.push(D),l.set(D.name,D),F&&g.forEach(re=>{re.enforce===F&&H(re,D)})}const x=XE(o),k=oo({...n,breakpoints:x.breakpoints,sizes:{...n.sizes,...x.sizes}});function C(){_t(k,(D,F)=>{const re=F.includes("DEFAULT");F=og(F);const he=F[0],Ee=i(F),De=Ot(D)?{value:D}:D,Kt={value:De.value,originalValue:De.value,name:Ee,path:F,extensions:{condition:"base",originalPath:F,category:he,prop:i(F.slice(1))}};re&&(Kt.extensions.default=!0),b(Kt)},{stop:rg}),_t(r,(D,F)=>{const re=F.includes("DEFAULT");F=ig(og(F));const he=F[0],Ee=i(F),De=Ot(D.value)?{value:{base:D.value}}:D,Kt={value:De.value.base||"",originalValue:De.value.base||"",name:Ee,path:F,extensions:{originalPath:F,category:he,conditions:De.value,condition:"base",prop:i(F.slice(1))}};re&&(Kt.extensions.default=!0),b(Kt)},{stop:rg})}function S(D){return l.get(D)}function I(D){const{condition:F}=D.extensions;F&&(c.has(F)||c.set(F,new Set),c.get(F).add(D))}function _(D){const{category:F,prop:re}=D.extensions;F&&(f.has(F)||f.set(F,new Map),f.get(F).set(re,D))}function P(D){const{condition:F,negative:re,virtual:he,cssVar:Ee}=D.extensions;re||he||!F||!Ee||(u.has(F)||u.set(F,new Map),u.get(F).set(Ee.var,D.value))}function T(D){const{category:F,prop:re,cssVar:he,negative:Ee}=D.extensions;if(!F)return;p.has(F)||p.set(F,new Map);const De=Ee?D.extensions.conditions?D.originalValue:D.value:he.ref;p.get(F).set(re,De),h.set([F,re].join("."),De)}function N(D){const{colorPalette:F,virtual:re,default:he}=D.extensions;!F||re||F.roots.forEach(Ee=>{var ov;const De=i(Ee);d.has(De)||d.set(De,new Map);const Kt=JE([...D.path],[...Ee]),Ks=i(Kt),Qr=S(Ks);if(!Qr||!Qr.extensions.cssVar)return;const{var:_N}=Qr.extensions.cssVar;if(d.get(De).set(_N,D.extensions.cssVar.ref),he&&Ee.length===1){const AN=i(["colors","colorPalette"]),iv=S(AN);if(!iv)return;const VN=i(D.path),sv=S(VN);if(!sv)return;const av=(ov=F.keys[0])==null?void 0:ov.filter(Boolean);if(!av.length)return;const kc=i(Ee.concat(av));d.has(kc)||d.set(kc,new Map),d.get(kc).set(iv.extensions.cssVar.var,sv.extensions.cssVar.ref)}})}let j={};function R(){a.forEach(D=>{I(D),_(D),P(D),T(D),N(D)}),j=Kf(p)}const L=(D,F)=>{var Qr;if(!D||typeof D!="string")return{invalid:!0,value:D};const[re,he]=D.split("/");if(!re||!he)return{invalid:!0,value:re};const Ee=F(re),De=(Qr=S(`opacity.${he}`))==null?void 0:Qr.value;if(!De&&isNaN(Number(he)))return{invalid:!0,value:re};const Kt=De?Number(De)*100+"%":`${he}%`,Ks=Ee??re;return{invalid:!1,color:Ks,value:`color-mix(in srgb, ${Ks} ${Kt}, transparent)`}},Y=yt((D,F)=>h.get(D)??F),z=yt(D=>j[D]||null),V=yt(D=>qf(D,F=>{if(!F)return;if(F.includes("/")){const he=L(F,Ee=>Y(Ee));if(he.invalid)throw new Error("Invalid color mix at "+F+": "+he.value);return he.value}const re=Y(F);return re||(WE.test(F)?Gf(F):F)})),B={prefix:t,allTokens:a,tokenMap:l,registerToken:b,getByName:S,formatTokenName:i,formatCssVar:s,flatMap:h,cssVarMap:u,categoryMap:f,colorPaletteMap:d,getVar:Y,getCategoryValues:z,expandReferenceInValue:V};function K(...D){D.forEach(F=>{g.set(F.name,F)})}function $(...D){m.push(...D)}function H(D,F){if(F.extensions.references||va(D.match)&&!D.match(F))return;const he=(Ee=>D.transform(Ee,B))(F);switch(!0){case D.type==="extensions":Object.assign(F.extensions,he);break;case D.type==="value":F.value=he;break;default:F[D.type]=he;break}}function X(D){m.forEach(F=>{F.enforce===D&&F.transform(B)})}function de(D){g.forEach(F=>{F.enforce===D&&a.forEach(re=>{H(F,re)})})}function kn(){a.forEach(D=>{const F=QE(D);!F||F.length===0||F.forEach(re=>{b(re)})})}function qo(D){return Yf(D).map(re=>S(re)).filter(Boolean)}function Yr(){a.forEach(D=>{if(!HE(D.value))return;const F=qo(D.value);D.extensions.references=F.reduce((re,he)=>(re[he.name]=he,re),{})})}function Cc(){a.forEach(D=>{Qf(D)})}function NN(){X("pre"),de("pre"),kn(),Yr(),Cc(),X("post"),de("post"),R()}return C(),K(...KE),$(...qE),NN(),B}function og(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function ig(e){return e.filter(t=>t!=="base")}function QE(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,n=[];return _t(t,(r,o)=>{const i=ig(o);if(!i.length)return;const s=structuredClone(e);s.value=r,s.extensions.condition=i.join(":"),n.push(s)}),n}function JE(e,t){const n=e.findIndex((r,o)=>t.every((i,s)=>e[o+s]===i));return n===-1||(e.splice(n,t.length),e.splice(n,0,"colorPalette")),e}zE()(["aspectRatios","zIndex","opacity","colors","fonts","fontSizes","fontWeights","lineHeights","letterSpacings","sizes","shadows","spacing","radii","cursor","borders","borderWidths","borderStyles","durations","easings","animations","blurs","gradients","breakpoints","assets"]);function QN(e){return e}function ZE(e){return Object.fromEntries(Object.entries(e).map(([t,n])=>[t,n]))}function eO(e){const t=ZE(e.config),n=e.tokens,r=new Map,o=new Map;function i(P,T){t[P]=T,s(P,T)}const s=(P,T)=>{const N=g(T);N&&(o.set(P,N),d(P,T))},a=()=>{for(const[P,T]of Object.entries(t))T&&s(P,T)},l=()=>{for(const[P,T]of Object.entries(t)){const{shorthand:N}=T??{};if(!N)continue;(Array.isArray(N)?N:[N]).forEach(R=>r.set(R,P))}},c=()=>{const P=Kf(n.colorPaletteMap);i("colorPalette",{values:Object.keys(P),transform:yt(T=>P[T])})},u=new Map,d=(P,T)=>{if(!T)return;const N=g(T,R=>`type:Tokens["${R}"]`);if(typeof N=="object"&&N.type){u.set(P,new Set([`type:${N.type}`]));return}if(N){const R=new Set(Object.keys(N));u.set(P,R)}const j=u.get(P)??new Set;T.property&&u.set(P,j.add(`CssProperties["${T.property}"]`))},h=()=>{for(const[P,T]of Object.entries(t))T&&d(P,T)},p=(P,T)=>{const N=u.get(P)??new Set;u.set(P,new Set([...N,...T]))},f=()=>{const P=new Map;for(const[T,N]of u.entries()){if(N.size===0){P.set(T,["string"]);continue}const j=Array.from(N).map(R=>R.startsWith("CssProperties")?R:R.startsWith("type:")?R.replace("type:",""):JSON.stringify(R));P.set(T,j)}return P},g=(P,T)=>{const{values:N}=P,j=R=>{const L=T==null?void 0:T(R);return L?{[L]:L}:void 0};return Ot(N)?(j==null?void 0:j(N))??n.getCategoryValues(N)??{}:Array.isArray(N)?N.reduce((R,L)=>(R[L]=L,R),{}):va(N)?N(T?j:n.getCategoryValues):N},m=yt((P,T)=>({[P]:P.startsWith("--")?n.getVar(T,T):T})),b=Object.assign(n.getVar,{raw:P=>n.getByName(P)}),x=yt((P,T)=>{var Y;const N=S(P);Ot(T)&&!T.includes("_EMO_")&&(T=n.expandReferenceInValue(T));const j=t[N];if(!j)return m(N,T);const R=(Y=o.get(N))==null?void 0:Y[T];if(!j.transform)return m(P,R??T);const L=z=>Lw(z,b);return j.transform(R??T,{raw:T,token:b,utils:{colorMix:L}})});function k(){l(),c(),a(),h()}k();const C=r.size>0,S=yt(P=>r.get(P)??P);return{keys:()=>[...Array.from(r.keys()),...Object.keys(t)],hasShorthand:C,transform:x,shorthands:r,resolveShorthand:S,register:i,getTypes:f,addPropertyType:p}}const Ke={};function sg(...e){const t=bf(...e),{theme:n={},utilities:r={},globalCss:o={},cssVarsRoot:i=":where(:root, :host)",cssVarsPrefix:s="chakra",preflight:a}=t,l=TE(t),c=YE({breakpoints:n.breakpoints,tokens:n.tokens,semanticTokens:n.semanticTokens,prefix:s}),u=uE(n.breakpoints??Ke),d=gE({conditions:t.conditions??Ke,breakpoints:u}),h=eO({config:r,tokens:c});function p(){const{textStyles:$,layerStyles:H,animationStyles:X}=n,de=oo({textStyle:$,layerStyle:H,animationStyle:X});for(const[kn,qo]of Object.entries(de)){const Yr=Sf(qo??Ke,ag);h.register(kn,{values:Object.keys(Yr),transform(Cc){return k(Yr[Cc])}})}}p(),h.addPropertyType("animationName",Object.keys(n.keyframes??Ke));const f=new Set(["css",...h.keys(),...d.keys()]),g=yt($=>f.has($)||iE($)),m=$=>Array.isArray($)?$.reduce((H,X,de)=>{const kn=d.breakpoints[de];return X!=null&&(H[kn]=X),H},{}):$,b=NE({utility:h,normalize:m}),x=AE({conditions:d,isValidProperty:g}),k=Wf({transform:h.transform,conditions:d,normalize:b}),C=IE({css:k,conditions:d,normalize:b,layers:l}),S=DE({cva:C});function I(){const $={};for(const[H,X]of c.cssVarMap.entries()){const de=Object.fromEntries(X);if(Object.keys(de).length===0)continue;const kn=H==="base"?i:d.resolve(H),qo=kn.startsWith("@"),Yr=k(x({[kn]:qo?{[i]:de}:de}));Or($,Yr)}return l.wrap("tokens",$)}function _(){const $=Object.fromEntries(Object.entries(n.keyframes??Ke).map(([X,de])=>[`@keyframes ${X}`,de])),H=Object.assign({},$,k(x(o)));return l.wrap("base",H)}function P($){return lr($,g)}function T(){const $=_E({preflight:a});return l.wrap("reset",$)}const N=tO(c),j=($,H)=>{var X;return((X=N.get($))==null?void 0:X.value)||H};j.var=($,H)=>{var X;return((X=N.get($))==null?void 0:X.variable)||H};function R($,H){var X;return((X=n.recipes)==null?void 0:X[$])??H}function L($,H){var X;return((X=n.slotRecipes)==null?void 0:X[$])??H}function Y($){return Object.hasOwnProperty.call(n.recipes??Ke,$)}function z($){return Object.hasOwnProperty.call(n.slotRecipes??Ke,$)}function V($){return Y($)||z($)}const B=[T(),_(),I()],K={layerStyles:Fl(n.layerStyles??Ke),textStyles:Fl(n.textStyles??Ke),animationStyles:Fl(n.animationStyles??Ke),tokens:lg(c,Object.keys(n.tokens??Ke),($,H)=>!$.extensions.conditions&&!H.includes("colorPalette")),semanticTokens:lg(c,Object.keys(n.semanticTokens??Ke),$=>!!$.extensions.conditions),keyframes:cg(n.keyframes??Ke),breakpoints:cg(n.breakpoints??Ke)};return{$$chakra:!0,_config:t,_global:B,breakpoints:u,tokens:c,conditions:d,utility:h,token:j,properties:f,layers:l,isValidProperty:g,splitCssProps:P,normalizeValue:m,getTokenCss:I,getGlobalCss:_,getPreflightCss:T,css:k,cva:C,sva:S,getRecipe:R,getSlotRecipe:L,hasRecipe:V,isRecipe:Y,isSlotRecipe:z,query:K}}function tO(e){const t=new Map;return e.allTokens.forEach(n=>{const{cssVar:r,virtual:o,conditions:i}=n.extensions,s=i||o?r.ref:n.value;t.set(n.name,{value:s,variable:r.ref})}),t}const ag=e=>Ue(e)&&"value"in e,Fl=e=>({list(){return Object.keys(Sf(e,ag))},search(t){return this.list().filter(n=>n.includes(t))}}),lg=(e,t,n)=>({categoryKeys:t,list(r){var o;return Array.from(((o=e.categoryMap.get(r))==null?void 0:o.entries())??[]).reduce((i,[s,a])=>(n(a,s)&&i.push(s),i),[])},search(r,o){return this.list(r).filter(i=>i.includes(o))}}),cg=e=>({list(){return Object.keys(e)},search(t){return this.list().filter(n=>n.includes(t))}}),nO={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Dl="var(--chakra-empty,/*!*/ /*!*/)",rO=Mw({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":Dl,"--ring-offset-width":"0px","--ring-offset-color":"#fff","--ring-color":"rgba(66, 153, 225, 0.6)","--ring-offset-shadow":"0 0 #0000","--ring-shadow":"0 0 #0000",...Object.fromEntries(["brightness","contrast","grayscale","hue-rotate","invert","saturate","sepia","drop-shadow"].map(e=>[`--${e}`,Dl])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,Dl])),"--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"gray"},"*::placeholder, *[data-placeholder]":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.emphasized/80"}}),oO=Bw({"fill.muted":{value:{background:"colorPalette.muted",color:"colorPalette.fg"}},"fill.subtle":{value:{background:"colorPalette.subtle",color:"colorPalette.fg"}},"fill.surface":{value:{background:"colorPalette.subtle",color:"colorPalette.fg",boxShadow:"0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.muted"}},"fill.solid":{value:{background:"colorPalette.solid",color:"colorPalette.contrast"}},"outline.subtle":{value:{color:"colorPalette.fg",boxShadow:"inset 0 0 0px 1px var(--shadow-color)",boxShadowColor:"colorPalette.subtle"}},"outline.solid":{value:{borderWidth:"1px",borderColor:"colorPalette.solid",color:"colorPalette.fg"}},"indicator.bottom":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",bottom:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.top":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",top:"var(--indicator-offset-y, 0)",insetInline:"var(--indicator-offset-x, 0)",height:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.start":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineStart:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},"indicator.end":{value:{position:"relative","--indicator-color-fallback":"colors.colorPalette.solid",_before:{content:'""',position:"absolute",insetInlineEnd:"var(--indicator-offset-x, 0)",insetBlock:"var(--indicator-offset-y, 0)",width:"var(--indicator-thickness, 2px)",background:"var(--indicator-color, var(--indicator-color-fallback))"}}},disabled:{value:{opacity:"0.5",cursor:"not-allowed"}},none:{value:{}}}),iO=jw({"slide-fade-in":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-from-bottom, fade-in"},"&[data-placement^=bottom]":{animationName:"slide-from-top, fade-in"},"&[data-placement^=left]":{animationName:"slide-from-right, fade-in"},"&[data-placement^=right]":{animationName:"slide-from-left, fade-in"}}},"slide-fade-out":{value:{transformOrigin:"var(--transform-origin)","&[data-placement^=top]":{animationName:"slide-to-bottom, fade-out"},"&[data-placement^=bottom]":{animationName:"slide-to-top, fade-out"},"&[data-placement^=left]":{animationName:"slide-to-right, fade-out"},"&[data-placement^=right]":{animationName:"slide-to-left, fade-out"}}},"scale-fade-in":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-in, fade-in"}},"scale-fade-out":{value:{transformOrigin:"var(--transform-origin)",animationName:"scale-out, fade-out"}}}),zl=Se({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),sO=Se({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),Le=Se({className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",cursor:"checkbox",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5",cursor:"disabled"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border.emphasized","&:is([data-state=checked], [data-state=indeterminate])":{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},outline:{borderColor:"border","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg",borderColor:"colorPalette.solid"}},subtle:{bg:"colorPalette.muted",borderColor:"colorPalette.muted","&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},plain:{"&:is([data-state=checked], [data-state=indeterminate])":{color:"colorPalette.fg"}},inverted:{borderColor:"border",color:"colorPalette.fg","&:is([data-state=checked], [data-state=indeterminate])":{borderColor:"colorPalette.solid"}}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),{variants:aO,defaultVariants:lO}=zl,cO=Se({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:aO,defaultVariants:lO}),ug=Se({className:"color-swatch",base:{boxSize:"var(--swatch-size)",shadow:"inset 0 0 0 1px rgba(0, 0, 0, 0.1)","--checker-size":"8px","--checker-bg":"colors.bg","--checker-fg":"colors.bg.emphasized",background:"linear-gradient(var(--color), var(--color)), repeating-conic-gradient(var(--checker-fg) 0%, var(--checker-fg) 25%, var(--checker-bg) 0%, var(--checker-bg) 50%) 0% 50% / var(--checker-size) var(--checker-size) !important",display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},variants:{size:{"2xs":{"--swatch-size":"sizes.3.5"},xs:{"--swatch-size":"sizes.4"},sm:{"--swatch-size":"sizes.4.5"},md:{"--swatch-size":"sizes.5"},lg:{"--swatch-size":"sizes.6"},xl:{"--swatch-size":"sizes.7"},"2xl":{"--swatch-size":"sizes.8"},inherit:{"--swatch-size":"inherit"},full:{"--swatch-size":"100%"}},shape:{square:{borderRadius:"none"},circle:{borderRadius:"full"},rounded:{borderRadius:"l1"}}},defaultVariants:{size:"md",shape:"rounded"}}),uO=Se({className:"chakra-container",base:{position:"relative",maxWidth:"8xl",w:"100%",mx:"auto",px:{base:"4",md:"6",lg:"8"}},variants:{centerContent:{true:{display:"flex",flexDirection:"column",alignItems:"center"}},fluid:{true:{maxWidth:"full"}}}}),dO=Se({className:"chakra-heading",base:{fontFamily:"heading",fontWeight:"semibold"},variants:{size:{xs:{textStyle:"xs"},sm:{textStyle:"sm"},md:{textStyle:"md"},lg:{textStyle:"lg"},xl:{textStyle:"xl"},"2xl":{textStyle:"2xl"},"3xl":{textStyle:"3xl"},"4xl":{textStyle:"4xl"},"5xl":{textStyle:"5xl"},"6xl":{textStyle:"6xl"},"7xl":{textStyle:"7xl"}}},defaultVariants:{size:"xl"}}),hO=Se({className:"chakra-icon",base:{display:"inline-block",lineHeight:"1em",flexShrink:"0",color:"currentcolor",verticalAlign:"middle"},variants:{size:{inherit:{},xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"},xl:{boxSize:"7"},"2xl":{boxSize:"8"}}},defaultVariants:{size:"inherit"}}),ke=Se({className:"chakra-input",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},height:"var(--input-height)",minW:"var(--input-height)","--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{"2xs":{textStyle:"xs",px:"2","--input-height":"sizes.7"},xs:{textStyle:"xs",px:"2","--input-height":"sizes.8"},sm:{textStyle:"sm",px:"2.5","--input-height":"sizes.9"},md:{textStyle:"sm",px:"3","--input-height":"sizes.10"},lg:{textStyle:"md",px:"4","--input-height":"sizes.11"},xl:{textStyle:"md",px:"4.5","--input-height":"sizes.12"},"2xl":{textStyle:"lg",px:"5","--input-height":"sizes.16"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside",focusRingColor:"var(--focus-color)"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)",_invalid:{borderColor:"var(--error-color)",boxShadow:"0px 1px 0px 0px var(--error-color)"}}}}},defaultVariants:{size:"md",variant:"outline"}}),fO=Se({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:ke.variants.size,variant:{outline:{borderWidth:"1px",borderColor:"border",bg:"bg.muted"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.emphasized"},flushed:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}},defaultVariants:{size:"md",variant:"outline"}}),gO=Se({className:"chakra-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"1",borderRadius:"l2"},variants:{variant:{raised:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderWidth:"1px",borderBottomWidth:"2px",borderColor:"colorPalette.muted"},outline:{borderWidth:"1px",color:"colorPalette.fg"},subtle:{bg:"colorPalette.muted",color:"colorPalette.fg"},plain:{color:"colorPalette.fg"}},size:{sm:{textStyle:"xs",height:"4.5"},md:{textStyle:"sm",height:"5"},lg:{textStyle:"md",height:"6"}}},defaultVariants:{size:"md",variant:"raised"}}),pO=Se({className:"chakra-link",base:{display:"inline-flex",alignItems:"center",outline:"none",gap:"1.5",cursor:"pointer",borderRadius:"l1",focusRing:"outside"},variants:{variant:{underline:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"},plain:{color:"colorPalette.fg",_hover:{textDecoration:"underline",textUnderlineOffset:"3px",textDecorationColor:"currentColor/20"}}}},defaultVariants:{variant:"plain"}}),mO=Se({className:"chakra-mark",base:{bg:"transparent",color:"inherit",whiteSpace:"nowrap"},variants:{variant:{subtle:{bg:"colorPalette.subtle",color:"inherit"},solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},text:{fontWeight:"medium"},plain:{}}}}),Fe=Se({className:"chakra-radiomark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,verticalAlign:"top",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"full",cursor:"radio",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing",outlineOffset:"2px"},_invalid:{colorPalette:"red",borderColor:"red.500"},_disabled:{opacity:"0.5",cursor:"disabled"},"& .dot":{height:"100%",width:"100%",borderRadius:"full",bg:"currentColor",scale:"0.4"}},variants:{variant:{solid:{borderWidth:"1px",borderColor:"border.emphasized",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},subtle:{borderWidth:"1px",bg:"colorPalette.muted",borderColor:"colorPalette.muted",color:"transparent",_checked:{color:"colorPalette.fg"}},outline:{borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.fg",borderColor:"colorPalette.solid"},"& .dot":{scale:"0.6"}},inverted:{bg:"bg",borderWidth:"1px",borderColor:"inherit",_checked:{color:"colorPalette.solid",borderColor:"currentcolor"}}},size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5"},lg:{boxSize:"6"}},filled:{true:{bg:"bg"}}},defaultVariants:{variant:"solid",size:"md"}}),vO=Se({className:"chakra-separator",base:{display:"block",borderColor:"border"},variants:{variant:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"},dotted:{borderStyle:"dotted"}},orientation:{vertical:{borderInlineStartWidth:"var(--separator-thickness)"},horizontal:{borderTopWidth:"var(--separator-thickness)"}},size:{xs:{"--separator-thickness":"0.5px"},sm:{"--separator-thickness":"1px"},md:{"--separator-thickness":"2px"},lg:{"--separator-thickness":"3px"}}},defaultVariants:{size:"sm",variant:"solid",orientation:"horizontal"}}),bO=Se({className:"chakra-skeleton",base:{},variants:{loading:{true:{borderRadius:"l2",boxShadow:"none",backgroundClip:"padding-box",cursor:"default",color:"transparent",pointerEvents:"none",userSelect:"none",flexShrink:"0","&::before, &::after, *":{visibility:"hidden"}},false:{background:"unset",animation:"fade-in var(--fade-duration, 0.1s) ease-out !important"}},variant:{pulse:{background:"bg.emphasized",animation:"pulse",animationDuration:"var(--duration, 1.2s)"},shine:{"--animate-from":"200%","--animate-to":"-200%","--start-color":"colors.bg.muted","--end-color":"colors.bg.emphasized",backgroundImage:"linear-gradient(270deg,var(--start-color),var(--end-color),var(--end-color),var(--start-color))",backgroundSize:"400% 100%",animation:"bg-position var(--duration, 5s) ease-in-out infinite"},none:{animation:"none"}}},defaultVariants:{variant:"pulse",loading:!0}}),yO=Se({className:"chakra-skip-nav",base:{display:"inline-flex",bg:"bg.panel",padding:"2.5",borderRadius:"l2",fontWeight:"semibold",focusVisibleRing:"outside",textStyle:"sm",userSelect:"none",border:"0",height:"1px",width:"1px",margin:"-1px",outline:"0",overflow:"hidden",position:"absolute",clip:"rect(0 0 0 0)",_focusVisible:{clip:"auto",width:"auto",height:"auto",position:"fixed",top:"6",insetStart:"6"}}}),xO=Se({className:"chakra-spinner",base:{display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderWidth:"2px",borderRadius:"full",width:"var(--spinner-size)",height:"var(--spinner-size)",animation:"spin",animationDuration:"slowest","--spinner-track-color":"transparent",borderBottomColor:"var(--spinner-track-color)",borderInlineStartColor:"var(--spinner-track-color)"},variants:{size:{inherit:{"--spinner-size":"1em"},xs:{"--spinner-size":"sizes.3"},sm:{"--spinner-size":"sizes.4"},md:{"--spinner-size":"sizes.5"},lg:{"--spinner-size":"sizes.8"},xl:{"--spinner-size":"sizes.10"}}},defaultVariants:{size:"md"}}),CO=Se({className:"chakra-textarea",base:{width:"100%",minWidth:"0",outline:"0",position:"relative",appearance:"none",textAlign:"start",borderRadius:"l2",_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},variants:{size:{xs:{textStyle:"xs",px:"2",py:"1.5",scrollPaddingBottom:"1.5"},sm:{textStyle:"sm",px:"2.5",py:"2",scrollPaddingBottom:"2"},md:{textStyle:"sm",px:"3",py:"2",scrollPaddingBottom:"2"},lg:{textStyle:"md",px:"4",py:"3",scrollPaddingBottom:"3"},xl:{textStyle:"md",px:"4.5",py:"3.5",scrollPaddingBottom:"3.5"}},variant:{outline:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"},subtle:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"},flushed:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}}}},defaultVariants:{size:"md",variant:"outline"}}),kO={badge:zl,button:sO,code:cO,container:uO,heading:dO,input:ke,inputAddon:fO,kbd:gO,link:pO,mark:mO,separator:vO,skeleton:bO,skipNavLink:yO,spinner:xO,textarea:CO,icon:hO,checkmark:Le,radiomark:Fe,colorSwatch:ug},SO=Pl.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.500}",_dark:"{colors.red.500}"}}},orange:{contrast:{value:{_light:"white",_dark:"black"}},fg:{value:{_light:"{colors.orange.700}",_dark:"{colors.orange.300}"}},subtle:{value:{_light:"{colors.orange.100}",_dark:"{colors.orange.900}"}},muted:{value:{_light:"{colors.orange.200}",_dark:"{colors.orange.800}"}},emphasized:{value:{_light:"{colors.orange.300}",_dark:"{colors.orange.700}"}},solid:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.500}"}},focusRing:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.500}"}}},green:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.green.700}",_dark:"{colors.green.300}"}},subtle:{value:{_light:"{colors.green.100}",_dark:"{colors.green.900}"}},muted:{value:{_light:"{colors.green.200}",_dark:"{colors.green.800}"}},emphasized:{value:{_light:"{colors.green.300}",_dark:"{colors.green.700}"}},solid:{value:{_light:"{colors.green.600}",_dark:"{colors.green.600}"}},focusRing:{value:{_light:"{colors.green.500}",_dark:"{colors.green.500}"}}},blue:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.blue.700}",_dark:"{colors.blue.300}"}},subtle:{value:{_light:"{colors.blue.100}",_dark:"{colors.blue.900}"}},muted:{value:{_light:"{colors.blue.200}",_dark:"{colors.blue.800}"}},emphasized:{value:{_light:"{colors.blue.300}",_dark:"{colors.blue.700}"}},solid:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.600}"}},focusRing:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.500}"}}},yellow:{contrast:{value:{_light:"black",_dark:"black"}},fg:{value:{_light:"{colors.yellow.800}",_dark:"{colors.yellow.300}"}},subtle:{value:{_light:"{colors.yellow.100}",_dark:"{colors.yellow.900}"}},muted:{value:{_light:"{colors.yellow.200}",_dark:"{colors.yellow.800}"}},emphasized:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.700}"}},solid:{value:{_light:"{colors.yellow.300}",_dark:"{colors.yellow.300}"}},focusRing:{value:{_light:"{colors.yellow.500}",_dark:"{colors.yellow.500}"}}},teal:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.teal.700}",_dark:"{colors.teal.300}"}},subtle:{value:{_light:"{colors.teal.100}",_dark:"{colors.teal.900}"}},muted:{value:{_light:"{colors.teal.200}",_dark:"{colors.teal.800}"}},emphasized:{value:{_light:"{colors.teal.300}",_dark:"{colors.teal.700}"}},solid:{value:{_light:"{colors.teal.600}",_dark:"{colors.teal.600}"}},focusRing:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.500}"}}},purple:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.purple.700}",_dark:"{colors.purple.300}"}},subtle:{value:{_light:"{colors.purple.100}",_dark:"{colors.purple.900}"}},muted:{value:{_light:"{colors.purple.200}",_dark:"{colors.purple.800}"}},emphasized:{value:{_light:"{colors.purple.300}",_dark:"{colors.purple.700}"}},solid:{value:{_light:"{colors.purple.600}",_dark:"{colors.purple.600}"}},focusRing:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.500}"}}},pink:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.pink.700}",_dark:"{colors.pink.300}"}},subtle:{value:{_light:"{colors.pink.100}",_dark:"{colors.pink.900}"}},muted:{value:{_light:"{colors.pink.200}",_dark:"{colors.pink.800}"}},emphasized:{value:{_light:"{colors.pink.300}",_dark:"{colors.pink.700}"}},solid:{value:{_light:"{colors.pink.600}",_dark:"{colors.pink.600}"}},focusRing:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.500}"}}},cyan:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.cyan.700}",_dark:"{colors.cyan.300}"}},subtle:{value:{_light:"{colors.cyan.100}",_dark:"{colors.cyan.900}"}},muted:{value:{_light:"{colors.cyan.200}",_dark:"{colors.cyan.800}"}},emphasized:{value:{_light:"{colors.cyan.300}",_dark:"{colors.cyan.700}"}},solid:{value:{_light:"{colors.cyan.600}",_dark:"{colors.cyan.600}"}},focusRing:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.500}"}}}}),wO=Pl.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),EO=Pl.shadows({xs:{value:{_light:"0px 1px 2px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/20}",_dark:"0px 1px 1px {black/64}, 0px 0px 1px inset {colors.gray.300/20}"}},sm:{value:{_light:"0px 2px 4px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 2px 4px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},md:{value:{_light:"0px 4px 8px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 4px 8px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},lg:{value:{_light:"0px 8px 16px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 8px 16px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},xl:{value:{_light:"0px 16px 24px {colors.gray.900/10}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 16px 24px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},"2xl":{value:{_light:"0px 24px 40px {colors.gray.900/16}, 0px 0px 1px {colors.gray.900/30}",_dark:"0px 24px 40px {black/64}, 0px 0px 1px inset {colors.gray.300/30}"}},inner:{value:{_light:"inset 0 2px 4px 0 {black/5}",_dark:"inset 0 2px 4px 0 black"}},inset:{value:{_light:"inset 0 0 0 1px {black/5}",_dark:"inset 0 0 0 1px {colors.gray.300/5}"}}}),OO=Md.extendWith("itemBody"),IO=G("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),PO=G("alert").parts("title","description","root","indicator","content"),RO=G("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),TO=G("blockquote").parts("root","icon","content","caption"),NO=G("card").parts("root","header","body","footer","title","description"),_O=G("checkbox-card",["root","control","label","description","addon","indicator","content"]),AO=G("data-list").parts("root","item","itemLabel","itemValue"),VO=ll.extendWith("header","body","footer","backdrop"),LO=ll.extendWith("header","body","footer","backdrop"),FO=Oh.extendWith("textarea"),DO=G("empty-state",["root","content","indicator","title","description"]),zO=Ih.extendWith("requiredIndicator"),MO=Rh.extendWith("content"),$O=Th.extendWith("itemContent","dropzoneContent","fileText"),jO=G("list").parts("root","item","indicator"),BO=Dh.extendWith("itemCommand"),WO=G("select").parts("root","field","indicator"),HO=ef.extendWith("header","body","footer"),dg=Cl.extendWith("itemAddon","itemIndicator"),UO=dg.extendWith("itemContent","itemDescription"),GO=rf.extendWith("itemIndicator"),qO=af.extendWith("indicatorGroup"),KO=nS.extendWith("indicatorGroup","empty"),XO=df.extendWith("markerIndicator"),YO=G("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),QO=G("status").parts("root","indicator"),JO=G("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),ZO=hf.extendWith("indicator"),e2=G("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),t2=G("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),n2=G("tabs").parts("root","trigger","list","content","contentGroup","indicator"),r2=G("tag").parts("root","label","closeTrigger","startElement","endElement"),o2=G("timeline").parts("root","item","content","separator","indicator","connector","title","description"),i2=yk.extendWith("channelText"),s2=G("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]);Kd.extendWith("valueText");const a2=TS,l2=q({className:"chakra-accordion",slots:OO.keys(),base:{root:{width:"full","--accordion-radius":"radii.l2"},item:{overflowAnchor:"none"},itemTrigger:{display:"flex",alignItems:"center",textAlign:"start",width:"full",outline:"0",gap:"3",fontWeight:"medium",borderRadius:"var(--accordion-radius)",_focusVisible:{outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{layerStyle:"disabled"}},itemBody:{pt:"var(--accordion-padding-y)",pb:"calc(var(--accordion-padding-y) * 2)"},itemContent:{overflow:"hidden",borderRadius:"var(--accordion-radius)",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}},itemIndicator:{transition:"rotate 0.2s",transformOrigin:"center",color:"fg.subtle",_open:{rotate:"180deg"},_icon:{width:"1.2em",height:"1.2em"}}},variants:{variant:{outline:{item:{borderBottomWidth:"1px"}},subtle:{itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{borderRadius:"var(--accordion-radius)",_open:{bg:"colorPalette.subtle"}}},enclosed:{root:{borderWidth:"1px",borderRadius:"var(--accordion-radius)",divideY:"1px",overflow:"hidden"},itemTrigger:{px:"var(--accordion-padding-x)"},itemContent:{px:"var(--accordion-padding-x)"},item:{_open:{bg:"bg.subtle"}}},plain:{}},size:{sm:{root:{"--accordion-padding-x":"spacing.3","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"sm",py:"var(--accordion-padding-y)"}},md:{root:{"--accordion-padding-x":"spacing.4","--accordion-padding-y":"spacing.2"},itemTrigger:{textStyle:"md",py:"var(--accordion-padding-y)"}},lg:{root:{"--accordion-padding-x":"spacing.4.5","--accordion-padding-y":"spacing.2.5"},itemTrigger:{textStyle:"lg",py:"var(--accordion-padding-y)"}}}},defaultVariants:{size:"md",variant:"outline"}}),c2=q({className:"chakra-action-bar",slots:IO.keys(),base:{positioner:{position:"fixed",display:"flex",justifyContent:"center",pointerEvents:"none",insetInline:"0",top:"unset",bottom:"calc(env(safe-area-inset-bottom) + 20px)"},content:{bg:"bg.panel",shadow:"md",display:"flex",alignItems:"center",gap:"3",borderRadius:"l3",py:"2.5",px:"3",pointerEvents:"auto",translate:"calc(-1 * var(--scrollbar-width) / 2) 0px",_open:{animationName:"slide-from-bottom, fade-in",animationDuration:"moderate"},_closed:{animationName:"slide-to-bottom, fade-out",animationDuration:"faster"}},separator:{width:"1px",height:"5",bg:"border"},selectionTrigger:{display:"inline-flex",alignItems:"center",gap:"2",alignSelf:"stretch",textStyle:"sm",px:"4",py:"1",borderRadius:"l2",borderWidth:"1px",borderStyle:"dashed"}}}),u2=q({slots:PO.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}}),d2=q({slots:Bd.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),h2=q({className:"chakra-blockquote",slots:TO.keys(),base:{root:{position:"relative",display:"flex",flexDirection:"column",gap:"2"},caption:{textStyle:"sm",color:"fg.muted"},icon:{boxSize:"5"}},variants:{justify:{start:{root:{alignItems:"flex-start",textAlign:"start"}},center:{root:{alignItems:"center",textAlign:"center"}},end:{root:{alignItems:"flex-end",textAlign:"end"}}},variant:{subtle:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.muted"},icon:{color:"colorPalette.fg"}},solid:{root:{paddingX:"5",borderStartWidth:"4px",borderStartColor:"colorPalette.solid"},icon:{color:"colorPalette.solid"}},plain:{root:{paddingX:"5"},icon:{color:"colorPalette.solid"}}}},defaultVariants:{variant:"subtle",justify:"start"}}),f2=q({className:"chakra-breadcrumb",slots:RO.keys(),base:{list:{display:"flex",alignItems:"center",wordBreak:"break-word",color:"fg.muted",listStyle:"none"},link:{outline:"0",textDecoration:"none",borderRadius:"l1",focusRing:"outside",display:"inline-flex",alignItems:"center",gap:"2"},item:{display:"inline-flex",alignItems:"center"},separator:{color:"fg.muted",opacity:"0.8",_icon:{boxSize:"1em"},_rtl:{rotate:"180deg"}},ellipsis:{display:"inline-flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"1em"}}},variants:{variant:{underline:{link:{color:"colorPalette.fg",textDecoration:"underline",textUnderlineOffset:"0.2em",textDecorationColor:"colorPalette.muted"},currentLink:{color:"colorPalette.fg"}},plain:{link:{color:"fg.muted",_hover:{color:"fg"}},currentLink:{color:"fg"}}},size:{sm:{list:{gap:"1",textStyle:"xs"}},md:{list:{gap:"1.5",textStyle:"sm"}},lg:{list:{gap:"2",textStyle:"md"}}}},defaultVariants:{variant:"plain",size:"md"}}),g2=q({className:"chakra-card",slots:NO.keys(),base:{root:{display:"flex",flexDirection:"column",position:"relative",minWidth:"0",wordWrap:"break-word",borderRadius:"l3",color:"fg",textAlign:"start"},title:{fontWeight:"semibold"},description:{color:"fg.muted",fontSize:"sm"},header:{paddingInline:"var(--card-padding)",paddingTop:"var(--card-padding)",display:"flex",flexDirection:"column",gap:"1.5"},body:{padding:"var(--card-padding)",flex:"1",display:"flex",flexDirection:"column"},footer:{display:"flex",alignItems:"center",gap:"2",paddingInline:"var(--card-padding)",paddingBottom:"var(--card-padding)"}},variants:{size:{sm:{root:{"--card-padding":"spacing.4"},title:{textStyle:"md"}},md:{root:{"--card-padding":"spacing.6"},title:{textStyle:"lg"}},lg:{root:{"--card-padding":"spacing.7"},title:{textStyle:"xl"}}},variant:{elevated:{root:{bg:"bg.panel",boxShadow:"md"}},outline:{root:{bg:"bg.panel",borderWidth:"1px",borderColor:"border"}},subtle:{root:{bg:"bg.muted"}}}},defaultVariants:{variant:"outline",size:"md"}}),p2=q({slots:vk.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:Le.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:(Mm=(zm=Le.variants)==null?void 0:zm.size)==null?void 0:Mm.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:(jm=($m=Le.variants)==null?void 0:$m.size)==null?void 0:jm.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:(Wm=(Bm=Le.variants)==null?void 0:Bm.size)==null?void 0:Wm.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:(Um=(Hm=Le.variants)==null?void 0:Hm.size)==null?void 0:Um.lg}},variant:{outline:{control:(qm=(Gm=Le.variants)==null?void 0:Gm.variant)==null?void 0:qm.outline},solid:{control:(Xm=(Km=Le.variants)==null?void 0:Km.variant)==null?void 0:Xm.solid},subtle:{control:(Qm=(Ym=Le.variants)==null?void 0:Ym.variant)==null?void 0:Qm.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),m2=q({slots:_O.keys(),className:"chakra-checkbox-card",base:{root:{display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",flex:"1",focusVisibleRing:"outside",_disabled:{opacity:"0.8"},_invalid:{outline:"2px solid",outlineColor:"border.error"}},control:{display:"inline-flex",flex:"1",position:"relative",borderRadius:"inherit",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"},label:{fontWeight:"medium",display:"flex",alignItems:"center",gap:"2",flex:"1",_disabled:{opacity:"0.5"}},description:{opacity:"0.64",textStyle:"sm",_disabled:{opacity:"0.5"}},addon:{_disabled:{opacity:"0.5"}},indicator:Le.base,content:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--checkbox-card-justify)",alignItems:"var(--checkbox-card-align)"}},variants:{size:{sm:{root:{textStyle:"sm"},control:{padding:"3",gap:"1.5"},addon:{px:"3",py:"1.5",borderTopWidth:"1px"},indicator:(Jm=Le.variants)==null?void 0:Jm.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:(Zm=Le.variants)==null?void 0:Zm.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:(e0=Le.variants)==null?void 0:e0.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:(t0=Le.variants)==null?void 0:t0.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:(n0=Le.variants)==null?void 0:n0.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:(r0=Le.variants)==null?void 0:r0.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:(o0=Le.variants)==null?void 0:o0.variant.inverted}},justify:{start:{root:{"--checkbox-card-justify":"flex-start"}},end:{root:{"--checkbox-card-justify":"flex-end"}},center:{root:{"--checkbox-card-justify":"center"}}},align:{start:{root:{"--checkbox-card-align":"flex-start"},content:{textAlign:"start"}},end:{root:{"--checkbox-card-align":"flex-end"},content:{textAlign:"end"}},center:{root:{"--checkbox-card-align":"center"},content:{textAlign:"center"}}},orientation:{vertical:{control:{flexDirection:"column"}},horizontal:{control:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),v2=q({slots:s2.keys(),className:"code-block",base:{root:{colorPalette:"gray",rounded:"var(--code-block-radius)",overflow:"hidden",bg:"bg",color:"fg",borderWidth:"1px","--code-block-max-height":"320px","--code-block-bg":"colors.bg","--code-block-fg":"colors.fg","--code-block-obscured-opacity":"0.5","--code-block-obscured-blur":"1px","--code-block-line-number-width":"sizes.3","--code-block-line-number-margin":"spacing.4","--code-block-highlight-bg":"{colors.teal.focusRing/20}","--code-block-highlight-border":"colors.teal.focusRing","--code-block-highlight-added-bg":"{colors.green.focusRing/20}","--code-block-highlight-added-border":"colors.green.focusRing","--code-block-highlight-removed-bg":"{colors.red.focusRing/20}","--code-block-highlight-removed-border":"colors.red.focusRing"},header:{display:"flex",alignItems:"center",gap:"2",position:"relative",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)",mb:"calc(var(--code-block-padding) / 2 * -1)"},title:{display:"inline-flex",alignItems:"center",gap:"1.5",flex:"1",color:"fg.muted"},control:{gap:"1.5",display:"inline-flex",alignItems:"center"},footer:{display:"flex",alignItems:"center",justifyContent:"center",gap:"2",px:"var(--code-block-padding)",minH:"var(--code-block-header-height)"},content:{position:"relative",colorScheme:"dark",overflow:"hidden",borderBottomRadius:"var(--code-block-radius)",maxHeight:"var(--code-block-max-height)","& ::selection":{bg:"blue.500/40"},_expanded:{maxHeight:"unset"}},overlay:{"--bg":"{colors.black/50}",display:"flex",alignItems:"flex-end",justifyContent:"center",padding:"4",bgImage:"linear-gradient(0deg,var(--bg) 25%,transparent 100%)",color:"white",minH:"5rem",pos:"absolute",bottom:"0",insetInline:"0",zIndex:"1",fontWeight:"medium",_expanded:{display:"none"}},code:{fontFamily:"mono",lineHeight:"tall",whiteSpace:"pre",counterReset:"line 0"},codeText:{px:"var(--code-block-padding)",py:"var(--code-block-padding)",position:"relative",display:"block",width:"100%","&[data-has-focused]":{"& [data-line]:not([data-focused])":{transitionProperty:"opacity, filter",transitionDuration:"moderate",transitionTimingFunction:"ease-in-out",opacity:"var(--code-block-obscured-opacity)",filter:"blur(var(--code-block-obscured-blur))"},"&:hover":{"--code-block-obscured-opacity":"1","--code-block-obscured-blur":"0px"}},"&[data-has-line-numbers][data-plaintext]":{paddingInlineStart:"calc(var(--code-block-line-number-width) + var(--code-block-line-number-margin) + var(--code-block-padding))"},"& [data-line]":{position:"relative","--highlight-bg":"var(--code-block-highlight-bg)","--highlight-border":"var(--code-block-highlight-border)","&[data-highlight], &[data-diff]":{display:"inline-block",width:"full","&:after":{content:"''",display:"block",position:"absolute",insetStart:"calc(var(--code-block-padding) * -1)",insetEnd:"0px",width:"calc(100% + var(--code-block-padding) * 2)",height:"100%",bg:"var(--highlight-bg)",borderStartWidth:"2px",borderStartColor:"var(--highlight-border)"}},"&[data-diff='added']":{"--highlight-bg":"var(--code-block-highlight-added-bg)","--highlight-border":"var(--code-block-highlight-added-border)"},"&[data-diff='removed']":{"--highlight-bg":"var(--code-block-highlight-removed-bg)","--highlight-border":"var(--code-block-highlight-removed-border)"}},"&[data-word-wrap]":{"&[data-plaintext], & [data-line]":{whiteSpace:"pre-wrap",wordBreak:"break-all"}},"&[data-has-line-numbers]":{"--content":"counter(line)","& [data-line]:before":{content:"var(--content)",counterIncrement:"line",width:"var(--code-block-line-number-width)",marginRight:"var(--code-block-line-number-margin)",display:"inline-block",textAlign:"end",userSelect:"none",opacity:.4},"& [data-diff='added']:before":{content:"'+'"},"& [data-diff='removed']:before":{content:"'-'"}}}},variants:{size:{sm:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.md","--code-block-header-height":"sizes.8"},title:{textStyle:"xs"},code:{fontSize:"xs"}},md:{root:{"--code-block-padding":"spacing.4","--code-block-radius":"radii.lg","--code-block-header-height":"sizes.10"},title:{textStyle:"xs"},code:{fontSize:"sm"}},lg:{root:{"--code-block-padding":"spacing.5","--code-block-radius":"radii.xl","--code-block-header-height":"sizes.12"},title:{textStyle:"sm"},code:{fontSize:"sm"}}}},defaultVariants:{size:"md"}}),b2=q({slots:Qu.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}),y2=q({className:"colorPicker",slots:i2.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5"},label:{color:"fg",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},valueText:{textAlign:"start"},control:{display:"flex",alignItems:"center",flexDirection:"row",gap:"2",position:"relative"},swatchTrigger:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"row",flexShrink:"0",gap:"2",textStyle:"sm",minH:"var(--input-height)",minW:"var(--input-height)",px:"1",rounded:"l2",_disabled:{opacity:"0.5"},"--focus-color":"colors.colorPalette.focusRing","&:focus-visible":{borderColor:"var(--focus-color)",outline:"1px solid var(--focus-color)"},"&[data-fit-content]":{"--input-height":"unset",px:"0",border:"0"}},content:{display:"flex",flexDirection:"column",bg:"bg.panel",borderRadius:"l3",boxShadow:"lg",width:"64",p:"4",gap:"3",zIndex:"dropdown",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},area:{height:"180px",borderRadius:"l2",overflow:"hidden"},areaThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",focusVisibleRing:"mixed",focusRingColor:"white"},areaBackground:{height:"full"},channelSlider:{borderRadius:"l2",flex:"1"},channelSliderTrack:{height:"var(--slider-height)",borderRadius:"inherit",boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"},channelText:{textStyle:"xs",color:"fg.muted",fontWeight:"medium",textTransform:"capitalize"},swatchGroup:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"2"},swatch:{...ug.base,borderRadius:"l1"},swatchIndicator:{color:"white",rounded:"full"},channelSliderThumb:{borderRadius:"full",height:"var(--thumb-size)",width:"var(--thumb-size)",borderWidth:"2px",borderColor:"white",shadow:"sm",transform:"translate(-50%, -50%)",focusVisibleRing:"outside",focusRingOffset:"1px"},channelInput:{...ke.base,"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:0}},formatSelect:{textStyle:"xs",textTransform:"uppercase",borderWidth:"1px",minH:"6",focusRing:"inside",rounded:"l2"},transparencyGrid:{borderRadius:"l2"},view:{display:"flex",flexDirection:"column",gap:"2"}},variants:{size:{"2xs":{channelInput:(s0=(i0=ke.variants)==null?void 0:i0.size)==null?void 0:s0["2xs"],swatch:{"--swatch-size":"sizes.4.5"},trigger:{"--input-height":"sizes.7"},area:{"--thumb-size":"sizes.3"},channelSlider:{"--slider-height":"sizes.3","--thumb-size":"sizes.3"}},xs:{channelInput:(l0=(a0=ke.variants)==null?void 0:a0.size)==null?void 0:l0.xs,swatch:{"--swatch-size":"sizes.5"},trigger:{"--input-height":"sizes.8"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},sm:{channelInput:(u0=(c0=ke.variants)==null?void 0:c0.size)==null?void 0:u0.sm,swatch:{"--swatch-size":"sizes.6"},trigger:{"--input-height":"sizes.9"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},md:{channelInput:(h0=(d0=ke.variants)==null?void 0:d0.size)==null?void 0:h0.md,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.10"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},lg:{channelInput:(g0=(f0=ke.variants)==null?void 0:f0.size)==null?void 0:g0.lg,swatch:{"--swatch-size":"sizes.7"},trigger:{"--input-height":"sizes.11"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},xl:{channelInput:(m0=(p0=ke.variants)==null?void 0:p0.size)==null?void 0:m0.xl,swatch:{"--swatch-size":"sizes.8"},trigger:{"--input-height":"sizes.12"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}},"2xl":{channelInput:(b0=(v0=ke.variants)==null?void 0:v0.size)==null?void 0:b0["2xl"],swatch:{"--swatch-size":"sizes.10"},trigger:{"--input-height":"sizes.16"},area:{"--thumb-size":"sizes.3.5"},channelSlider:{"--slider-height":"sizes.3.5","--thumb-size":"sizes.3.5"}}},variant:{outline:{channelInput:(x0=(y0=ke.variants)==null?void 0:y0.variant)==null?void 0:x0.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:(k0=(C0=ke.variants)==null?void 0:C0.variant)==null?void 0:k0.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),x2=q({className:"chakra-combobox",slots:KO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",px:"var(--combobox-input-padding-x)","--input-height":"var(--combobox-input-height)",borderRadius:"l2",outline:0,userSelect:"none",textAlign:"start",_placeholderShown:{color:"fg.muted"},_disabled:{layerStyle:"disabled"},"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"}},trigger:{display:"inline-flex",alignItems:"center",justifyContent:"center","--input-height":"var(--combobox-input-height)"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"},control:{pos:"relative"},indicatorGroup:{display:"flex",alignItems:"center",justifyContent:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--combobox-input-padding-x)",_icon:{boxSize:"var(--combobox-indicator-size)"},"[data-disabled] &":{opacity:.5}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"0s"},"&[data-empty]:not(:has([data-scope=combobox][data-part=empty]))":{opacity:0}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{boxSize:"var(--combobox-indicator-size)"}},empty:{py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{pb:"var(--combobox-item-padding-y)",_last:{pb:"0"}},itemGroupLabel:{fontWeight:"medium",py:"var(--combobox-item-padding-y)",px:"var(--combobox-item-padding-x)"}},variants:{variant:{outline:{input:{bg:"transparent",borderWidth:"1px",borderColor:"border",focusVisibleRing:"inside"}},subtle:{input:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted",focusVisibleRing:"inside"}},flushed:{input:{bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",borderRadius:"0",px:"0",_focusVisible:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},indicatorGroup:{px:"0"}}},size:{xs:{root:{"--combobox-input-height":"sizes.8","--combobox-input-padding-x":"spacing.2","--combobox-indicator-size":"sizes.3.5"},input:{textStyle:"xs"},content:{"--combobox-item-padding-x":"spacing.1.5","--combobox-item-padding-y":"spacing.1","--combobox-indicator-size":"sizes.3.5",p:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"}},sm:{root:{"--combobox-input-height":"sizes.9","--combobox-input-padding-x":"spacing.2.5","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"}},md:{root:{"--combobox-input-height":"sizes.10","--combobox-input-padding-x":"spacing.3","--combobox-indicator-size":"sizes.4"},input:{textStyle:"sm"},content:{"--combobox-item-padding-x":"spacing.2","--combobox-item-padding-y":"spacing.1.5","--combobox-indicator-size":"sizes.4",p:"1",textStyle:"sm"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},trigger:{textStyle:"sm",gap:"2"}},lg:{root:{"--combobox-input-height":"sizes.12","--combobox-input-padding-x":"spacing.4","--combobox-indicator-size":"sizes.5"},input:{textStyle:"md"},content:{"--combobox-item-padding-y":"spacing.2","--combobox-item-padding-x":"spacing.3","--combobox-indicator-size":"sizes.5",p:"1.5",textStyle:"md"},trigger:{textStyle:"md",py:"3",gap:"2"}}}},defaultVariants:{size:"md",variant:"outline"}}),C2=q({slots:AO.keys(),className:"chakra-data-list",base:{itemLabel:{display:"flex",alignItems:"center",gap:"1"},itemValue:{display:"flex",minWidth:"0",flex:"1"}},variants:{orientation:{horizontal:{root:{display:"flex",flexDirection:"column"},item:{display:"inline-flex",alignItems:"center",gap:"4"},itemLabel:{minWidth:"120px"}},vertical:{root:{display:"flex",flexDirection:"column"},item:{display:"flex",flexDirection:"column",gap:"1"}}},size:{sm:{root:{gap:"3"},item:{textStyle:"xs"}},md:{root:{gap:"4"},item:{textStyle:"sm"}},lg:{root:{gap:"5"},item:{textStyle:"md"}}},variant:{subtle:{itemLabel:{color:"fg.muted"}},bold:{itemLabel:{fontWeight:"medium"},itemValue:{color:"fg.muted"}}}},defaultVariants:{size:"md",orientation:"vertical",variant:"subtle"}}),k2=q({slots:VO.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left:0,top:0,w:"100dvw",h:"100dvh",zIndex:"var(--z-index)",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100dvw",height:"100dvh",position:"fixed",left:0,top:0,"--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",justifyContent:"center",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,borderRadius:"l3",textStyle:"sm",my:"var(--dialog-margin, var(--dialog-base-margin))","--dialog-z-index":"zIndex.modal",zIndex:"calc(var(--dialog-z-index) + var(--layer-index, 0))",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{display:"flex",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{flex:"1",px:"6",pt:"2",pb:"6"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"2",insetEnd:"2"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.16",mx:"auto"}}},scrollBehavior:{inside:{positioner:{overflow:"hidden"},content:{maxH:"calc(100% - 7.5rem)"},body:{overflow:"auto"}},outside:{positioner:{overflow:"auto",pointerEvents:"auto"}}},size:{xs:{content:{maxW:"sm"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},cover:{positioner:{padding:"10"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100dvw",minH:"100dvh","--dialog-margin":"0",borderRadius:"0"}}},motionPreset:{scale:{content:{_open:{animationName:"scale-in, fade-in"},_closed:{animationName:"scale-out, fade-out"}}},"slide-in-bottom":{content:{_open:{animationName:"slide-from-bottom, fade-in"},_closed:{animationName:"slide-to-bottom, fade-out"}}},"slide-in-top":{content:{_open:{animationName:"slide-from-top, fade-in"},_closed:{animationName:"slide-to-top, fade-out"}}},"slide-in-left":{content:{_open:{animationName:"slide-from-left, fade-in"},_closed:{animationName:"slide-to-left, fade-out"}}},"slide-in-right":{content:{_open:{animationName:"slide-from-right, fade-in"},_closed:{animationName:"slide-to-right, fade-out"}}},none:{}}},defaultVariants:{size:"md",scrollBehavior:"outside",placement:"top",motionPreset:"scale"}}),S2=q({slots:LO.keys(),className:"chakra-drawer",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",insetInlineStart:0,top:0,w:"100vw",h:"100dvh",zIndex:"overlay",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",height:"100dvh",position:"fixed",insetInlineStart:0,top:0,zIndex:"modal",overscrollBehaviorY:"none"},content:{display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,zIndex:"modal",textStyle:"sm",maxH:"100dvh",color:"inherit",bg:"bg.panel",boxShadow:"lg",_open:{animationDuration:"slowest",animationTimingFunction:"ease-in-smooth"},_closed:{animationDuration:"slower",animationTimingFunction:"ease-in-smooth"}},header:{display:"flex",alignItems:"center",gap:"2",flex:0,px:"6",pt:"6",pb:"4"},body:{px:"6",py:"2",flex:"1",overflow:"auto"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"3",px:"6",pt:"2",pb:"4"},title:{flex:"1",textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"},closeTrigger:{pos:"absolute",top:"3",insetEnd:"2"}},variants:{size:{xs:{content:{maxW:"xs"}},sm:{content:{maxW:"md"}},md:{content:{maxW:"lg"}},lg:{content:{maxW:"2xl"}},xl:{content:{maxW:"4xl"}},full:{content:{maxW:"100vw",h:"100dvh"}}},placement:{start:{positioner:{justifyContent:"flex-start",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-left-full, fade-in",_rtl:"slide-from-right-full, fade-in"}},_closed:{animationName:{base:"slide-to-left-full, fade-out",_rtl:"slide-to-right-full, fade-out"}}}},end:{positioner:{justifyContent:"flex-end",alignItems:"stretch"},content:{_open:{animationName:{base:"slide-from-right-full, fade-in",_rtl:"slide-from-left-full, fade-in"}},_closed:{animationName:{base:"slide-to-right-full, fade-out",_rtl:"slide-to-left-full, fade-out"}}}},top:{positioner:{justifyContent:"stretch",alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{justifyContent:"stretch",alignItems:"flex-end"},content:{maxW:"100%",_open:{animationName:"slide-from-bottom-full, fade-in"},_closed:{animationName:"slide-to-bottom-full, fade-out"}}}},contained:{true:{positioner:{padding:"4"},content:{borderRadius:"l3"}}}},defaultVariants:{size:"xs",placement:"end"}}),hg=Ir({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),w2=q({slots:FO.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...hg,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...hg,outline:"0",py:"1",px:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",focusVisibleRing:"inside",focusRingWidth:"2px",_placeholder:{opacity:.6}},control:{display:"inline-flex",alignItems:"center",gap:"1.5"}},variants:{size:{sm:{root:{textStyle:"sm"},preview:{minH:"8"},input:{minH:"8"}},md:{root:{textStyle:"sm"},preview:{minH:"9"},input:{minH:"9"}},lg:{root:{textStyle:"md"},preview:{minH:"10"},input:{minH:"10"}}}},defaultVariants:{size:"md"}}),E2=q({slots:DO.keys(),className:"chakra-empty-state",base:{root:{width:"full"},content:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:"fg.subtle",_icon:{boxSize:"1em"}},title:{fontWeight:"semibold"},description:{textStyle:"sm",color:"fg.muted"}},variants:{size:{sm:{root:{px:"4",py:"6"},title:{textStyle:"md"},content:{gap:"4"},indicator:{textStyle:"2xl"}},md:{root:{px:"8",py:"12"},title:{textStyle:"lg"},content:{gap:"6"},indicator:{textStyle:"4xl"}},lg:{root:{px:"12",py:"16"},title:{textStyle:"xl"},content:{gap:"8"},indicator:{textStyle:"6xl"}}}},defaultVariants:{size:"md"}}),O2=q({className:"chakra-field",slots:zO.keys(),base:{requiredIndicator:{color:"fg.error",lineHeight:"1"},root:{display:"flex",width:"100%",position:"relative",gap:"1.5"},label:{display:"flex",alignItems:"center",textAlign:"start",textStyle:"sm",fontWeight:"medium",gap:"1",userSelect:"none",_disabled:{opacity:"0.5"}},errorText:{display:"inline-flex",alignItems:"center",fontWeight:"medium",gap:"1",color:"fg.error",textStyle:"xs"},helperText:{color:"fg.muted",textStyle:"xs"}},variants:{orientation:{vertical:{root:{flexDirection:"column",alignItems:"flex-start"}},horizontal:{root:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},label:{flex:"0 0 var(--field-label-width, 80px)"}}}},defaultVariants:{orientation:"vertical"}}),I2=q({className:"fieldset",slots:MO.keys(),base:{root:{display:"flex",flexDirection:"column",width:"full"},content:{display:"flex",flexDirection:"column",width:"full"},legend:{color:"fg",fontWeight:"medium",_disabled:{opacity:"0.5"}},helperText:{color:"fg.muted",textStyle:"sm"},errorText:{display:"inline-flex",alignItems:"center",color:"fg.error",gap:"2",fontWeight:"medium",textStyle:"sm"}},variants:{size:{sm:{root:{spaceY:"2"},content:{gap:"1.5"},legend:{textStyle:"sm"}},md:{root:{spaceY:"4"},content:{gap:"4"},legend:{textStyle:"sm"}},lg:{root:{spaceY:"6"},content:{gap:"4"},legend:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),P2=q({className:"chakra-file-upload",slots:$O.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"4",width:"100%",alignItems:"flex-start"},label:{fontWeight:"medium",textStyle:"sm"},dropzone:{background:"bg",borderRadius:"l3",borderWidth:"2px",borderStyle:"dashed",display:"flex",alignItems:"center",flexDirection:"column",gap:"4",justifyContent:"center",minHeight:"2xs",px:"3",py:"2",transition:"backgrounds",focusVisibleRing:"outside",_hover:{bg:"bg.subtle"},_dragging:{bg:"colorPalette.subtle",borderStyle:"solid",borderColor:"colorPalette.solid"}},dropzoneContent:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:"1",textStyle:"sm"},item:{pos:"relative",textStyle:"sm",animationName:"fade-in",animationDuration:"moderate",background:"bg",borderRadius:"l2",borderWidth:"1px",width:"100%",display:"flex",alignItems:"center",gap:"3",p:"4"},itemGroup:{width:"100%",display:"flex",flexDirection:"column",gap:"3",_empty:{display:"none"}},itemName:{color:"fg",fontWeight:"medium",lineClamp:"1"},itemContent:{display:"flex",flexDirection:"column",gap:"0.5",flex:"1"},itemSizeText:{color:"fg.muted",textStyle:"xs"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",boxSize:"5",p:"2px",color:"fg.muted",cursor:"button"},itemPreview:{color:"fg.muted",_icon:{boxSize:"4.5"}}},defaultVariants:{}}),R2=q({className:"chakra-hover-card",slots:Nh.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),T2=q({className:"chakra-list",slots:jO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"var(--list-gap)","& :where(ul, ol)":{marginTop:"var(--list-gap)"}},item:{whiteSpace:"normal",display:"list-item"},indicator:{marginEnd:"2",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert"},item:{_marker:{color:"fg.subtle"}}},plain:{item:{alignItems:"flex-start",display:"inline-flex"}}},align:{center:{item:{alignItems:"center"}},start:{item:{alignItems:"flex-start"}},end:{item:{alignItems:"flex-end"}}}},defaultVariants:{variant:"marker"}}),N2=q({className:"chakra-listbox",slots:a2.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},content:{display:"flex",maxH:"96",p:"1",gap:"1",textStyle:"sm",outline:"none",scrollPadding:"1",_horizontal:{flexDirection:"row",overflowX:"auto"},_vertical:{flexDirection:"column",overflowY:"auto"},"--listbox-item-padding-x":"spacing.2","--listbox-item-padding-y":"spacing.1.5"},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"pointer",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)",_highlighted:{outline:"2px solid",outlineColor:"border.emphasized"},_disabled:{pointerEvents:"none",opacity:"0.5"}},empty:{py:"var(--listbox-item-padding-y)",px:"var(--listbox-item-padding-x)"},itemText:{flex:"1"},itemGroup:{mt:"1.5",_first:{mt:"0"}},itemGroupLabel:{py:"1.5",px:"2",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center",_icon:{boxSize:"4"}}},variants:{variant:{subtle:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_hover:{bg:"bg.emphasized/60"},_selected:{bg:"bg.muted"}}},solid:{content:{bg:"bg.panel",borderWidth:"1px",borderRadius:"l2"},item:{_selected:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}},plain:{}}},defaultVariants:{variant:"subtle"}}),_2=q({className:"chakra-menu",slots:BO.keys(),base:{content:{outline:0,bg:"bg.panel",boxShadow:"lg",color:"fg",maxHeight:"var(--available-height)","--menu-z-index":"zIndex.dropdown",zIndex:"calc(var(--menu-z-index) + var(--layer-index, 0))",borderRadius:"l2",overflow:"hidden",overflowY:"auto",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},item:{textDecoration:"none",color:"fg",userSelect:"none",borderRadius:"l1",width:"100%",display:"flex",cursor:"menuitem",alignItems:"center",textAlign:"start",position:"relative",flex:"0 0 auto",outline:0,_disabled:{layerStyle:"disabled"},"&[data-type]":{ps:"8"}},itemText:{flex:"1"},itemIndicator:{position:"absolute",insetStart:"2",transform:"translateY(-50%)",top:"50%"},itemGroupLabel:{px:"2",py:"1.5",fontWeight:"semibold",textStyle:"sm"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0"},itemCommand:{opacity:"0.6",textStyle:"xs",ms:"auto",ps:"4",letterSpacing:"widest",fontFamily:"inherit"},separator:{height:"1px",bg:"bg.muted",my:"1",mx:"-1"}},variants:{variant:{subtle:{item:{_highlighted:{bg:"bg.emphasized/60"}}},solid:{item:{_highlighted:{bg:"colorPalette.solid",color:"colorPalette.contrast"}}}},size:{sm:{content:{minW:"8rem",padding:"1",scrollPadding:"1"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5",scrollPadding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}}),gs=q({className:"chakra-select",slots:qO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},trigger:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"full",minH:"var(--select-trigger-height)","--input-height":"var(--select-trigger-height)",px:"var(--select-trigger-padding-x)",borderRadius:"l2",userSelect:"none",textAlign:"start",focusVisibleRing:"inside",_placeholderShown:{color:"fg.muted/80"},_disabled:{layerStyle:"disabled"},_invalid:{borderColor:"border.error"}},indicatorGroup:{display:"flex",alignItems:"center",gap:"1",pos:"absolute",insetEnd:"0",top:"0",bottom:"0",px:"var(--select-trigger-padding-x)",pointerEvents:"none"},indicator:{display:"flex",alignItems:"center",justifyContent:"center",color:{base:"fg.muted",_disabled:"fg.subtle",_invalid:"fg.error"}},content:{background:"bg.panel",display:"flex",flexDirection:"column",zIndex:"dropdown",borderRadius:"l2",outline:0,maxH:"96",overflowY:"auto",boxShadow:"md",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"fastest"}},item:{position:"relative",userSelect:"none",display:"flex",alignItems:"center",gap:"2",cursor:"option",justifyContent:"space-between",flex:"1",textAlign:"start",borderRadius:"l1",_highlighted:{bg:"bg.emphasized/60"},_disabled:{pointerEvents:"none",opacity:"0.5"},_icon:{width:"4",height:"4"}},control:{pos:"relative"},itemText:{flex:"1"},itemGroup:{_first:{mt:"0"}},itemGroupLabel:{py:"1",fontWeight:"medium"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},valueText:{lineClamp:"1",maxW:"80%"},clearTrigger:{color:"fg.muted",pointerEvents:"auto",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1"}},variants:{variant:{outline:{trigger:{bg:"transparent",borderWidth:"1px",borderColor:"border",_expanded:{borderColor:"border.emphasized"}}},subtle:{trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}},size:{xs:{root:{"--select-trigger-height":"sizes.8","--select-trigger-padding-x":"spacing.2"},content:{p:"1",gap:"1",textStyle:"xs"},trigger:{textStyle:"xs",gap:"1"},item:{py:"1",px:"2"},itemGroupLabel:{py:"1",px:"2"},indicator:{_icon:{width:"3.5",height:"3.5"}}},sm:{root:{"--select-trigger-height":"sizes.9","--select-trigger-padding-x":"spacing.2.5"},content:{p:"1",textStyle:"sm"},trigger:{textStyle:"sm",gap:"1"},indicator:{_icon:{width:"4",height:"4"}},item:{py:"1",px:"1.5"},itemGroup:{mt:"1"},itemGroupLabel:{py:"1",px:"1.5"}},md:{root:{"--select-trigger-height":"sizes.10","--select-trigger-padding-x":"spacing.3"},content:{p:"1",textStyle:"sm"},itemGroup:{mt:"1.5"},item:{py:"1.5",px:"2"},itemIndicator:{display:"flex",alignItems:"center",justifyContent:"center"},itemGroupLabel:{py:"1.5",px:"2"},trigger:{textStyle:"sm",gap:"2"},indicator:{_icon:{width:"4",height:"4"}}},lg:{root:{"--select-trigger-height":"sizes.12","--select-trigger-padding-x":"spacing.4"},content:{p:"1.5",textStyle:"md"},itemGroup:{mt:"2"},item:{py:"2",px:"3"},itemGroupLabel:{py:"2",px:"3"},trigger:{textStyle:"md",py:"3",gap:"2"},indicator:{_icon:{width:"5",height:"5"}}}}},defaultVariants:{size:"md",variant:"outline"}}),A2=q({className:"chakra-native-select",slots:WO.keys(),base:{root:{height:"fit-content",display:"flex",width:"100%",position:"relative"},field:{width:"100%",minWidth:"0",outline:"0",appearance:"none",borderRadius:"l2","--error-color":"colors.border.error","--input-height":"var(--select-field-height)",height:"var(--select-field-height)",_disabled:{layerStyle:"disabled"},_invalid:{focusRingColor:"var(--error-color)",borderColor:"var(--error-color)"},focusVisibleRing:"inside",lineHeight:"normal","& > option, & > optgroup":{bg:"bg"}},indicator:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)",height:"100%",color:"fg.muted",_disabled:{opacity:"0.5"},_invalid:{color:"fg.error"},_icon:{width:"1em",height:"1em"}}},variants:{variant:{outline:{field:(S0=gs.variants)==null?void 0:S0.variant.outline.trigger},subtle:{field:(w0=gs.variants)==null?void 0:w0.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{root:{"--select-field-height":"sizes.8"},field:{textStyle:"xs",ps:"2",pe:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{root:{"--select-field-height":"sizes.9"},field:{textStyle:"sm",ps:"2.5",pe:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{root:{"--select-field-height":"sizes.10"},field:{textStyle:"sm",ps:"3",pe:"8"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{root:{"--select-field-height":"sizes.11"},field:{textStyle:"md",ps:"4",pe:"8"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{root:{"--select-field-height":"sizes.12"},field:{textStyle:"md",ps:"4.5",pe:"10"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:gs.defaultVariants});function Ml(e,t){const n={};for(const r in e){const o=t(r,e[r]);n[o[0]]=o[1]}return n}const fg=Ir({display:"flex",justifyContent:"center",alignItems:"center",flex:"1",userSelect:"none",cursor:"button",lineHeight:"1",color:"fg.muted","--stepper-base-radius":"radii.l1","--stepper-radius":"calc(var(--stepper-base-radius) + 1px)",_icon:{boxSize:"1em"},_disabled:{opacity:"0.5"},_hover:{bg:"bg.muted"},_active:{bg:"bg.emphasized"}}),V2=q({className:"chakra-number-input",slots:Kh.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...ke.base,verticalAlign:"top",pe:"calc(var(--stepper-width) + 0.5rem)"},control:{display:"flex",flexDirection:"column",position:"absolute",top:"0",insetEnd:"0px",margin:"1px",width:"var(--stepper-width)",height:"calc(100% - 2px)",zIndex:"1",borderStartWidth:"1px",divideY:"1px"},incrementTrigger:{...fg,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...fg,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:ke.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:ke.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:ke.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:ke.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:Ml(ke.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:gg,defaultVariants:L2}=ke,F2=q({className:"chakra-pin-input",slots:Zh.keys(),base:{input:{...ke.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:Ml(gg.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:Ml(gg.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:L2}),D2=q({className:"chakra-popover",slots:HO.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}}),z2=q({slots:xl.keys(),className:"chakra-progress",base:{root:{textStyle:"sm",position:"relative"},track:{overflow:"hidden",position:"relative"},range:{display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"width, height",transitionDuration:"slow",height:"100%",bgColor:"var(--track-color)",_indeterminate:{"--animate-from-x":"-40%","--animate-to-x":"100%",position:"absolute",willChange:"left",minWidth:"50%",animation:"position 1s ease infinite normal none running",backgroundImage:"linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)"}},label:{display:"inline-flex",fontWeight:"medium",alignItems:"center",gap:"1"},valueText:{textStyle:"xs",lineHeight:"1",fontWeight:"medium"}},variants:{variant:{outline:{track:{shadow:"inset",bgColor:"bg.muted"},range:{bgColor:"colorPalette.solid"}},subtle:{track:{bgColor:"colorPalette.muted"},range:{bgColor:"colorPalette.solid/72"}}},shape:{square:{},rounded:{track:{borderRadius:"l1"}},full:{track:{borderRadius:"full"}}},striped:{true:{range:{backgroundImage:"linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)",backgroundSize:"var(--stripe-size) var(--stripe-size)","--stripe-size":"1rem","--stripe-color":{_light:"rgba(255, 255, 255, 0.3)",_dark:"rgba(0, 0, 0, 0.3)"}}}},animated:{true:{range:{"--animate-from":"var(--stripe-size)",animation:"bg-position 1s linear infinite"}}},size:{xs:{track:{h:"1.5"}},sm:{track:{h:"2"}},md:{track:{h:"2.5"}},lg:{track:{h:"3"}},xl:{track:{h:"4"}}}},defaultVariants:{variant:"outline",size:"md",shape:"rounded"}}),M2=q({className:"chakra-progress-circle",slots:xl.keys(),base:{root:{display:"inline-flex",textStyle:"sm",position:"relative"},circle:{_indeterminate:{animation:"spin 2s linear infinite"}},circleTrack:{"--track-color":"colors.colorPalette.muted",stroke:"var(--track-color)"},circleRange:{stroke:"colorPalette.solid",transitionProperty:"stroke-dashoffset, stroke-dasharray",transitionDuration:"0.6s",_indeterminate:{animation:"circular-progress 1.5s linear infinite"}},label:{display:"inline-flex"},valueText:{lineHeight:"1",fontWeight:"medium",letterSpacing:"tight",fontVariantNumeric:"tabular-nums"}},variants:{size:{xs:{circle:{"--size":"24px","--thickness":"4px"},valueText:{textStyle:"2xs"}},sm:{circle:{"--size":"32px","--thickness":"5px"},valueText:{textStyle:"2xs"}},md:{circle:{"--size":"40px","--thickness":"6px"},valueText:{textStyle:"xs"}},lg:{circle:{"--size":"48px","--thickness":"7px"},valueText:{textStyle:"sm"}},xl:{circle:{"--size":"64px","--thickness":"8px"},valueText:{textStyle:"sm"}}}},defaultVariants:{size:"md"}}),$2=q({slots:nf.keys(),className:"chakra-qr-code",base:{root:{position:"relative",width:"fit-content","--qr-code-overlay-size":"calc(var(--qr-code-size) / 3)"},frame:{width:"var(--qr-code-size)",height:"var(--qr-code-size)",fill:"currentColor"},overlay:{display:"flex",alignItems:"center",justifyContent:"center",width:"var(--qr-code-overlay-size)",height:"var(--qr-code-overlay-size)",padding:"1",bg:"bg",rounded:"l1"}},variants:{size:{"2xs":{root:{"--qr-code-size":"40px"}},xs:{root:{"--qr-code-size":"64px"}},sm:{root:{"--qr-code-size":"80px"}},md:{root:{"--qr-code-size":"120px"}},lg:{root:{"--qr-code-size":"160px"}},xl:{root:{"--qr-code-size":"200px"}},"2xl":{root:{"--qr-code-size":"240px"}},full:{root:{"--qr-code-size":"100%"}}}},defaultVariants:{size:"md"}}),j2=q({className:"chakra-radio-card",slots:UO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",isolation:"isolate"},item:{flex:"1",display:"flex",flexDirection:"column",userSelect:"none",position:"relative",borderRadius:"l2",_focus:{bg:"colorPalette.muted/20"},_disabled:{opacity:"0.8",borderColor:"border.disabled"},_checked:{zIndex:"1"}},label:{display:"inline-flex",fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},itemText:{fontWeight:"medium",flex:"1"},itemDescription:{opacity:"0.64",textStyle:"sm"},itemControl:{display:"inline-flex",flex:"1",pos:"relative",rounded:"inherit",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)",_disabled:{bg:"bg.muted"}},itemIndicator:Fe.base,itemAddon:{roundedBottom:"inherit",_disabled:{color:"fg.muted"}},itemContent:{display:"flex",flexDirection:"column",flex:"1",gap:"1",justifyContent:"var(--radio-card-justify)",alignItems:"var(--radio-card-align)"}},variants:{size:{sm:{item:{textStyle:"sm"},itemControl:{padding:"3",gap:"1.5"},itemAddon:{px:"3",py:"1.5",borderTopWidth:"1px"},itemIndicator:(E0=Fe.variants)==null?void 0:E0.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:(O0=Fe.variants)==null?void 0:O0.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:(I0=Fe.variants)==null?void 0:I0.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:(P0=Fe.variants)==null?void 0:P0.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:(R0=Fe.variants)==null?void 0:R0.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:(T0=Fe.variants)==null?void 0:T0.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:(N0=Fe.variants)==null?void 0:N0.variant.inverted}},justify:{start:{item:{"--radio-card-justify":"flex-start"}},end:{item:{"--radio-card-justify":"flex-end"}},center:{item:{"--radio-card-justify":"center"}}},align:{start:{item:{"--radio-card-align":"flex-start"},itemControl:{textAlign:"start"}},end:{item:{"--radio-card-align":"flex-end"},itemControl:{textAlign:"end"}},center:{item:{"--radio-card-align":"center"},itemControl:{textAlign:"center"}}},orientation:{vertical:{itemControl:{flexDirection:"column"}},horizontal:{itemControl:{flexDirection:"row"}}}},defaultVariants:{size:"md",variant:"outline",align:"start",orientation:"horizontal"}}),B2=q({className:"chakra-radio-group",slots:dg.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:Fe.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:(A0=(_0=Fe.variants)==null?void 0:_0.variant)==null?void 0:A0.outline},subtle:{itemControl:(L0=(V0=Fe.variants)==null?void 0:V0.variant)==null?void 0:L0.subtle},solid:{itemControl:(D0=(F0=Fe.variants)==null?void 0:F0.variant)==null?void 0:D0.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:(M0=(z0=Fe.variants)==null?void 0:z0.size)==null?void 0:M0.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:(j0=($0=Fe.variants)==null?void 0:$0.size)==null?void 0:j0.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:(W0=(B0=Fe.variants)==null?void 0:B0.size)==null?void 0:W0.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:(U0=(H0=Fe.variants)==null?void 0:H0.size)==null?void 0:U0.lg}}},defaultVariants:{size:"md",variant:"solid"}}),W2=q({className:"chakra-rating-group",slots:GO.keys(),base:{root:{display:"inline-flex"},control:{display:"inline-flex",alignItems:"center"},item:{display:"inline-flex",alignItems:"center",justifyContent:"center",userSelect:"none"},itemIndicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"1em",height:"1em",position:"relative","--clip-path":{base:"inset(0 50% 0 0)",_rtl:"inset(0 0 0 50%)"},_icon:{stroke:"currentColor",width:"100%",height:"100%",display:"inline-block",flexShrink:0,position:"absolute",left:0,top:0},"& [data-bg]":{color:"bg.emphasized"},"& [data-fg]":{color:"transparent"},"&[data-highlighted]:not([data-half])":{"& [data-fg]":{color:"colorPalette.solid"}},"&[data-half]":{"& [data-fg]":{color:"colorPalette.solid",clipPath:"var(--clip-path)"}}}},variants:{size:{xs:{item:{textStyle:"sm"}},sm:{item:{textStyle:"md"}},md:{item:{textStyle:"xl"}},lg:{item:{textStyle:"2xl"}}}},defaultVariants:{size:"md"}}),H2=q({className:"chakra-scroll-area",slots:of.keys(),base:{root:{display:"flex",flexDirection:"column",width:"100%",height:"100%",position:"relative",overflow:"hidden","--scrollbar-margin":"2px","--scrollbar-click-area":"calc(var(--scrollbar-size) + calc(var(--scrollbar-margin) * 2))"},viewport:{display:"flex",flexDirection:"column",height:"100%",width:"100%",borderRadius:"inherit",WebkitOverflowScrolling:"touch",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},content:{minWidth:"100%"},scrollbar:{display:"flex",userSelect:"none",touchAction:"none",borderRadius:"full",colorPalette:"gray",transition:"opacity 150ms 300ms",position:"relative",margin:"var(--scrollbar-margin)","&:not([data-overflow-x], [data-overflow-y])":{display:"none"},bg:"{colors.colorPalette.solid/10}","--thumb-bg":"{colors.colorPalette.solid/25}","&:is(:hover, :active)":{"--thumb-bg":"{colors.colorPalette.solid/50}"},_before:{content:'""',position:"absolute"},_vertical:{width:"var(--scrollbar-size)",flexDirection:"column","&::before":{width:"var(--scrollbar-click-area)",height:"100%",insetInlineStart:"calc(var(--scrollbar-margin) * -1)"}},_horizontal:{height:"var(--scrollbar-size)",flexDirection:"row","&::before":{height:"var(--scrollbar-click-area)",width:"100%",top:"calc(var(--scrollbar-margin) * -1)"}}},thumb:{borderRadius:"inherit",bg:"var(--thumb-bg)",transition:"backgrounds",_vertical:{width:"full"},_horizontal:{height:"full"}},corner:{bg:"bg.muted",margin:"var(--scrollbar-margin)",opacity:0,transition:"opacity 150ms 300ms","&[data-hover]":{transitionDelay:"0ms",opacity:1}}},variants:{variant:{hover:{scrollbar:{opacity:"0","&[data-hover], &[data-scrolling]":{opacity:"1",transitionDuration:"faster",transitionDelay:"0ms"}}},always:{scrollbar:{opacity:"1"}}},size:{xs:{root:{"--scrollbar-size":"sizes.1"}},sm:{root:{"--scrollbar-size":"sizes.1.5"}},md:{root:{"--scrollbar-size":"sizes.2"}},lg:{root:{"--scrollbar-size":"sizes.3"}}}},defaultVariants:{size:"md",variant:"hover"}}),U2=q({className:"chakra-segment-group",slots:sf.keys(),base:{root:{"--segment-radius":"radii.l2",borderRadius:"l2",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"sm",pos:"absolute",bg:{_light:"bg",_dark:"bg.emphasized"},width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}}),G2=q({className:"chakra-slider",slots:XO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",textStyle:"sm",position:"relative",isolation:"isolate",touchAction:"none"},label:{fontWeight:"medium",textStyle:"sm"},control:{display:"inline-flex",alignItems:"center",position:"relative"},track:{overflow:"hidden",borderRadius:"full",flex:"1"},range:{width:"inherit",height:"inherit",_disabled:{bg:"border.emphasized!"}},markerGroup:{position:"absolute!",zIndex:"1"},marker:{"--marker-bg":{base:"white",_underValue:"colors.bg"},display:"flex",alignItems:"center",gap:"calc(var(--slider-thumb-size) / 2)",color:"fg.muted",textStyle:"xs"},markerIndicator:{width:"var(--slider-marker-size)",height:"var(--slider-marker-size)",borderRadius:"full",bg:"var(--marker-bg)"},thumb:{width:"var(--slider-thumb-size)",height:"var(--slider-thumb-size)",display:"flex",alignItems:"center",justifyContent:"center",outline:0,zIndex:"2",borderRadius:"full",_focusVisible:{ring:"2px",ringColor:"colorPalette.focusRing",ringOffset:"2px",ringOffsetColor:"bg"}}},variants:{size:{sm:{root:{"--slider-thumb-size":"sizes.4","--slider-track-size":"sizes.1.5","--slider-marker-center":"6px","--slider-marker-size":"sizes.1","--slider-marker-inset":"3px"}},md:{root:{"--slider-thumb-size":"sizes.5","--slider-track-size":"sizes.2","--slider-marker-center":"8px","--slider-marker-size":"sizes.1","--slider-marker-inset":"4px"}},lg:{root:{"--slider-thumb-size":"sizes.6","--slider-track-size":"sizes.2.5","--slider-marker-center":"9px","--slider-marker-size":"sizes.1.5","--slider-marker-inset":"5px"}}},variant:{outline:{track:{shadow:"inset",bg:"bg.emphasized/72"},range:{bg:"colorPalette.solid"},thumb:{borderWidth:"2px",borderColor:"colorPalette.solid",bg:"bg",_disabled:{bg:"border.emphasized",borderColor:"border.emphasized"}}},solid:{track:{bg:"colorPalette.subtle",_disabled:{bg:"bg.muted"}},range:{bg:"colorPalette.solid"},thumb:{bg:"colorPalette.solid",_disabled:{bg:"border.emphasized"}}}},orientation:{vertical:{root:{display:"inline-flex"},control:{flexDirection:"column",height:"100%",minWidth:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginEnd:"4"}},track:{width:"var(--slider-track-size)"},thumb:{left:"50%",translate:"-50% 0"},markerGroup:{insetStart:"var(--slider-marker-center)",insetBlock:"var(--slider-marker-inset)"},marker:{flexDirection:"row"}},horizontal:{control:{flexDirection:"row",width:"100%",minHeight:"var(--slider-thumb-size)","&[data-has-mark-label], &:has(.chakra-slider__marker-label)":{marginBottom:"4"}},track:{height:"var(--slider-track-size)"},thumb:{top:"50%",translate:"0 -50%"},markerGroup:{top:"var(--slider-marker-center)",insetInline:"var(--slider-marker-inset)"},marker:{flexDirection:"column"}}}},defaultVariants:{size:"md",variant:"outline",orientation:"horizontal"}}),q2=q({className:"chakra-stat",slots:YO.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1",position:"relative",flex:"1"},label:{display:"inline-flex",gap:"1.5",alignItems:"center",color:"fg.muted",textStyle:"sm"},helpText:{color:"fg.muted",textStyle:"xs"},valueUnit:{color:"fg.muted",textStyle:"xs",fontWeight:"initial",letterSpacing:"initial"},valueText:{verticalAlign:"baseline",fontWeight:"semibold",letterSpacing:"tight",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums",display:"inline-flex",gap:"1"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",marginEnd:1,"& :where(svg)":{w:"1em",h:"1em"},"&[data-type=up]":{color:"fg.success"},"&[data-type=down]":{color:"fg.error"}}},variants:{size:{sm:{valueText:{textStyle:"xl"}},md:{valueText:{textStyle:"2xl"}},lg:{valueText:{textStyle:"3xl"}}}},defaultVariants:{size:"md"}}),K2=q({className:"chakra-status",slots:QO.keys(),base:{root:{display:"inline-flex",alignItems:"center",gap:"2"},indicator:{width:"0.64em",height:"0.64em",flexShrink:0,borderRadius:"full",forcedColorAdjust:"none",bg:"colorPalette.solid"}},variants:{size:{sm:{root:{textStyle:"xs"}},md:{root:{textStyle:"sm"}},lg:{root:{textStyle:"md"}}}},defaultVariants:{size:"md"}}),X2=q({className:"chakra-steps",slots:JO.keys(),base:{root:{display:"flex",width:"full"},list:{display:"flex",justifyContent:"space-between","--steps-gutter":"spacing.3","--steps-thickness":"2px"},title:{fontWeight:"medium",color:"fg"},description:{color:"fg.muted"},separator:{bg:"border",flex:"1"},indicator:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0",borderRadius:"full",fontWeight:"medium",width:"var(--steps-size)",height:"var(--steps-size)",_icon:{flexShrink:"0",width:"var(--steps-icon-size)",height:"var(--steps-icon-size)"}},item:{position:"relative",display:"flex",gap:"3",flex:"1 0 0","&:last-of-type":{flex:"initial","& [data-part=separator]":{display:"none"}}},trigger:{display:"flex",alignItems:"center",gap:"3",textAlign:"start",focusVisibleRing:"outside",borderRadius:"l2"},content:{focusVisibleRing:"outside"}},variants:{orientation:{vertical:{root:{flexDirection:"row",height:"100%"},list:{flexDirection:"column",alignItems:"flex-start"},separator:{position:"absolute",width:"var(--steps-thickness)",height:"100%",maxHeight:"calc(100% - var(--steps-size) - var(--steps-gutter) * 2)",top:"calc(var(--steps-size) + var(--steps-gutter))",insetStart:"calc(var(--steps-size) / 2 - 1px)"},item:{alignItems:"flex-start"}},horizontal:{root:{flexDirection:"column",width:"100%"},list:{flexDirection:"row",alignItems:"center"},separator:{width:"100%",height:"var(--steps-thickness)",marginX:"var(--steps-gutter)"},item:{alignItems:"center"}}},variant:{solid:{indicator:{_incomplete:{borderWidth:"var(--steps-thickness)"},_current:{bg:"colorPalette.muted",borderWidth:"var(--steps-thickness)",borderColor:"colorPalette.solid",color:"colorPalette.fg"},_complete:{bg:"colorPalette.solid",borderColor:"colorPalette.solid",color:"colorPalette.contrast"}},separator:{_complete:{bg:"colorPalette.solid"}}},subtle:{indicator:{_incomplete:{bg:"bg.muted"},_current:{bg:"colorPalette.muted",color:"colorPalette.fg"},_complete:{bg:"colorPalette.emphasized",color:"colorPalette.fg"}},separator:{_complete:{bg:"colorPalette.emphasized"}}}},size:{xs:{root:{gap:"2.5"},list:{"--steps-size":"sizes.6","--steps-icon-size":"sizes.3.5",textStyle:"xs"},title:{textStyle:"sm"}},sm:{root:{gap:"3"},list:{"--steps-size":"sizes.8","--steps-icon-size":"sizes.4",textStyle:"xs"},title:{textStyle:"sm"}},md:{root:{gap:"4"},list:{"--steps-size":"sizes.10","--steps-icon-size":"sizes.4",textStyle:"sm"},title:{textStyle:"sm"}},lg:{root:{gap:"6"},list:{"--steps-size":"sizes.11","--steps-icon-size":"sizes.5",textStyle:"md"},title:{textStyle:"md"}}}},defaultVariants:{size:"md",variant:"solid",orientation:"horizontal"}}),Y2=q({slots:ZO.keys(),className:"chakra-switch",base:{root:{display:"inline-flex",gap:"2.5",alignItems:"center",position:"relative",verticalAlign:"middle","--switch-diff":"calc(var(--switch-width) - var(--switch-height))","--switch-x":{base:"var(--switch-diff)",_rtl:"calc(var(--switch-diff) * -1)"}},label:{lineHeight:"1",userSelect:"none",fontSize:"sm",fontWeight:"medium",_disabled:{opacity:"0.5"}},indicator:{position:"absolute",height:"var(--switch-height)",width:"var(--switch-height)",fontSize:"var(--switch-indicator-font-size)",fontWeight:"medium",flexShrink:0,userSelect:"none",display:"grid",placeContent:"center",transition:"inset-inline-start 0.12s ease",insetInlineStart:"calc(var(--switch-x) - 2px)",_checked:{insetInlineStart:"2px"}},control:{display:"inline-flex",gap:"0.5rem",flexShrink:0,justifyContent:"flex-start",cursor:"switch",borderRadius:"full",position:"relative",width:"var(--switch-width)",height:"var(--switch-height)",transition:"backgrounds",_disabled:{opacity:"0.5",cursor:"not-allowed"},_invalid:{outline:"2px solid",outlineColor:"border.error",outlineOffset:"2px"}},thumb:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,transitionProperty:"translate",transitionDuration:"fast",borderRadius:"inherit",_checked:{translate:"var(--switch-x) 0"}}},variants:{variant:{solid:{control:{borderRadius:"full",bg:"bg.emphasized",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}},thumb:{bg:"white",width:"var(--switch-height)",height:"var(--switch-height)",scale:"0.8",boxShadow:"sm",_checked:{bg:"colorPalette.contrast"}}},raised:{control:{borderRadius:"full",height:"calc(var(--switch-height) / 2)",bg:"bg.muted",boxShadow:"inset",_checked:{bg:"colorPalette.solid/60"}},thumb:{width:"var(--switch-height)",height:"var(--switch-height)",position:"relative",top:"calc(var(--switch-height) * -0.25)",bg:"white",boxShadow:"xs",focusVisibleRing:"outside",_checked:{bg:"colorPalette.solid"}}}},size:{xs:{root:{"--switch-width":"sizes.6","--switch-height":"sizes.3","--switch-indicator-font-size":"fontSizes.xs"}},sm:{root:{"--switch-width":"sizes.8","--switch-height":"sizes.4","--switch-indicator-font-size":"fontSizes.xs"}},md:{root:{"--switch-width":"sizes.10","--switch-height":"sizes.5","--switch-indicator-font-size":"fontSizes.sm"}},lg:{root:{"--switch-width":"sizes.12","--switch-height":"sizes.6","--switch-indicator-font-size":"fontSizes.md"}}}},defaultVariants:{variant:"solid",size:"md"}}),Q2=q({className:"chakra-table",slots:e2.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),J2=q({slots:n2.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-indicator-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-indicator-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}}),dt=(G0=zl.variants)==null?void 0:G0.variant,Z2=q({slots:r2.keys(),className:"chakra-tag",base:{root:{display:"inline-flex",alignItems:"center",verticalAlign:"top",maxWidth:"100%",userSelect:"none",borderRadius:"l2",focusVisibleRing:"outside"},label:{lineClamp:"1"},closeTrigger:{display:"flex",alignItems:"center",justifyContent:"center",outline:"0",borderRadius:"l1",color:"currentColor",focusVisibleRing:"inside",focusRingWidth:"2px"},startElement:{flexShrink:0,boxSize:"var(--tag-element-size)",ms:"var(--tag-element-offset)","&:has([data-scope=avatar])":{boxSize:"var(--tag-avatar-size)",ms:"calc(var(--tag-element-offset) * 1.5)"},_icon:{boxSize:"100%"}},endElement:{flexShrink:0,boxSize:"var(--tag-element-size)",me:"var(--tag-element-offset)",_icon:{boxSize:"100%"},"&:has(button)":{ms:"calc(var(--tag-element-offset) * -1)"}}},variants:{size:{sm:{root:{px:"1.5",minH:"4.5",gap:"1","--tag-avatar-size":"spacing.3","--tag-element-size":"spacing.3","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},md:{root:{px:"1.5",minH:"5",gap:"1","--tag-avatar-size":"spacing.3.5","--tag-element-size":"spacing.3.5","--tag-element-offset":"-2px"},label:{textStyle:"xs"}},lg:{root:{px:"2",minH:"6",gap:"1.5","--tag-avatar-size":"spacing.4.5","--tag-element-size":"spacing.4","--tag-element-offset":"-3px"},label:{textStyle:"sm"}},xl:{root:{px:"2.5",minH:"8",gap:"1.5","--tag-avatar-size":"spacing.6","--tag-element-size":"spacing.4.5","--tag-element-offset":"-4px"},label:{textStyle:"sm"}}},variant:{subtle:{root:dt==null?void 0:dt.subtle},solid:{root:dt==null?void 0:dt.solid},outline:{root:dt==null?void 0:dt.outline},surface:{root:dt==null?void 0:dt.surface}}},defaultVariants:{size:"md",variant:"surface"}}),eI=q({slots:o2.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"& :where(.chakra-timeline__separator)":{display:"none"}}},separator:{position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"6",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid"}}),tI=q({slots:t2.keys(),className:"chakra-toast",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",gap:"3",py:"4",ps:"4",pe:"6",borderRadius:"l2",translate:"var(--x) var(--y)",scale:"var(--scale)",zIndex:"var(--z-index)",height:"var(--height)",opacity:"var(--opacity)",willChange:"translate, opacity, scale",transition:"translate 400ms, scale 400ms, opacity 400ms, height 400ms, box-shadow 200ms",transitionTimingFunction:"cubic-bezier(0.21, 1.02, 0.73, 1)",_closed:{transition:"translate 400ms, scale 400ms, opacity 200ms",transitionTimingFunction:"cubic-bezier(0.06, 0.71, 0.55, 1)"},bg:"bg.panel",color:"fg",boxShadow:"xl","--toast-trigger-bg":"colors.bg.muted","&[data-type=warning]":{bg:"orange.solid",color:"orange.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=success]":{bg:"green.solid",color:"green.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"},"&[data-type=error]":{bg:"red.solid",color:"red.contrast","--toast-trigger-bg":"{white/10}","--toast-border-color":"{white/40}"}},title:{fontWeight:"medium",textStyle:"sm",marginEnd:"2"},description:{display:"inline",textStyle:"sm",opacity:"0.8"},indicator:{flexShrink:"0",boxSize:"5"},actionTrigger:{textStyle:"sm",fontWeight:"medium",height:"8",px:"3",borderRadius:"l2",alignSelf:"center",borderWidth:"1px",borderColor:"var(--toast-border-color, inherit)",transition:"background 200ms",_hover:{bg:"var(--toast-trigger-bg)"}},closeTrigger:{position:"absolute",top:"1",insetEnd:"1",padding:"1",display:"inline-flex",alignItems:"center",justifyContent:"center",color:"{currentColor/60}",borderRadius:"l2",textStyle:"md",transition:"background 200ms",_icon:{boxSize:"1em"}}}}),nI=q({slots:ff.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),pg=Ir({display:"flex",alignItems:"center",gap:"var(--tree-item-gap)",rounded:"l2",userSelect:"none",position:"relative","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-icon-offset":"calc(var(--tree-icon-size) * var(--tree-depth) * 0.5)","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset) + var(--tree-icon-offset))",ps:"var(--tree-offset)",pe:"var(--tree-padding-inline)",py:"var(--tree-padding-block)",focusVisibleRing:"inside",focusRingColor:"border.emphasized",focusRingWidth:"2px","&:hover, &:focus-visible":{bg:"bg.muted"},_disabled:{layerStyle:"disabled"}}),mg=Ir({flex:"1"}),vg=Ir({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),bg=Ir({_selected:{layerStyle:"fill.solid"}}),rI=q({slots:Vh.keys(),className:"chakra-tree-view",base:{root:{width:"full",display:"flex",flexDirection:"column",gap:"2"},tree:{display:"flex",flexDirection:"column","--tree-item-gap":"spacing.2",_icon:{boxSize:"var(--tree-icon-size)"}},label:{fontWeight:"medium",textStyle:"sm"},branch:{position:"relative"},branchContent:{position:"relative"},branchIndentGuide:{height:"100%",width:"1px",bg:"border",position:"absolute","--tree-depth":"calc(var(--depth) - 1)","--tree-indentation-offset":"calc(var(--tree-indentation) * var(--tree-depth))","--tree-offset":"calc(var(--tree-padding-inline) + var(--tree-indentation-offset))","--tree-icon-offset":"calc(var(--tree-icon-size) * 0.5 * var(--depth))",insetInlineStart:"calc(var(--tree-offset) + var(--tree-icon-offset))",zIndex:"1"},branchIndicator:{color:"fg.muted",transformOrigin:"center",transitionDuration:"normal",transitionProperty:"transform",transitionTimingFunction:"default",_open:{transform:"rotate(90deg)"}},branchTrigger:{display:"inline-flex",alignItems:"center",justifyContent:"center"},branchControl:pg,item:pg,itemText:mg,branchText:mg,nodeCheckbox:{display:"inline-flex"}},variants:{size:{md:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1.5","--tree-icon-size":"spacing.4"}},sm:{tree:{textStyle:"sm","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.3","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}},xs:{tree:{textStyle:"xs","--tree-indentation":"spacing.4","--tree-padding-inline":"spacing.2","--tree-padding-block":"spacing.1","--tree-icon-size":"spacing.3"}}},variant:{subtle:{branchControl:vg,item:vg},solid:{branchControl:bg,item:bg}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),oI={accordion:l2,actionBar:c2,alert:u2,avatar:d2,blockquote:h2,breadcrumb:f2,card:g2,checkbox:p2,checkboxCard:m2,codeBlock:v2,collapsible:b2,dataList:C2,dialog:k2,drawer:S2,editable:w2,emptyState:E2,field:O2,fieldset:I2,fileUpload:P2,hoverCard:R2,list:T2,listbox:N2,menu:_2,nativeSelect:A2,numberInput:V2,pinInput:F2,popover:D2,progress:z2,progressCircle:M2,radioCard:j2,radioGroup:B2,ratingGroup:W2,scrollArea:H2,segmentGroup:U2,select:gs,combobox:x2,slider:G2,stat:q2,steps:X2,switch:Y2,table:Q2,tabs:J2,tag:Z2,toast:tI,tooltip:nI,status:K2,timeline:eI,colorPicker:y2,qrCode:$2,treeView:rI},iI=$w({"2xs":{value:{fontSize:"2xs",lineHeight:"0.75rem"}},xs:{value:{fontSize:"xs",lineHeight:"1rem"}},sm:{value:{fontSize:"sm",lineHeight:"1.25rem"}},md:{value:{fontSize:"md",lineHeight:"1.5rem"}},lg:{value:{fontSize:"lg",lineHeight:"1.75rem"}},xl:{value:{fontSize:"xl",lineHeight:"1.875rem"}},"2xl":{value:{fontSize:"2xl",lineHeight:"2rem"}},"3xl":{value:{fontSize:"3xl",lineHeight:"2.375rem"}},"4xl":{value:{fontSize:"4xl",lineHeight:"2.75rem",letterSpacing:"-0.025em"}},"5xl":{value:{fontSize:"5xl",lineHeight:"3.75rem",letterSpacing:"-0.025em"}},"6xl":{value:{fontSize:"6xl",lineHeight:"4.5rem",letterSpacing:"-0.025em"}},"7xl":{value:{fontSize:"7xl",lineHeight:"5.75rem",letterSpacing:"-0.025em"}},none:{value:{}},label:{value:{fontSize:"sm",lineHeight:"1.25rem",fontWeight:"medium"}}}),sI=Ce.animations({spin:{value:"spin 1s linear infinite"},ping:{value:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite"},pulse:{value:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"},bounce:{value:"bounce 1s infinite"}}),aI=Ce.aspectRatios({square:{value:"1 / 1"},landscape:{value:"4 / 3"},portrait:{value:"3 / 4"},wide:{value:"16 / 9"},ultrawide:{value:"18 / 5"},golden:{value:"1.618 / 1"}}),lI=Ce.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),cI=Ce.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),uI=Ce.colors({transparent:{value:"transparent"},current:{value:"currentColor"},black:{value:"#09090B"},white:{value:"#FFFFFF"},whiteAlpha:{50:{value:"rgba(255, 255, 255, 0.04)"},100:{value:"rgba(255, 255, 255, 0.06)"},200:{value:"rgba(255, 255, 255, 0.08)"},300:{value:"rgba(255, 255, 255, 0.16)"},400:{value:"rgba(255, 255, 255, 0.24)"},500:{value:"rgba(255, 255, 255, 0.36)"},600:{value:"rgba(255, 255, 255, 0.48)"},700:{value:"rgba(255, 255, 255, 0.64)"},800:{value:"rgba(255, 255, 255, 0.80)"},900:{value:"rgba(255, 255, 255, 0.92)"},950:{value:"rgba(255, 255, 255, 0.95)"}},blackAlpha:{50:{value:"rgba(0, 0, 0, 0.04)"},100:{value:"rgba(0, 0, 0, 0.06)"},200:{value:"rgba(0, 0, 0, 0.08)"},300:{value:"rgba(0, 0, 0, 0.16)"},400:{value:"rgba(0, 0, 0, 0.24)"},500:{value:"rgba(0, 0, 0, 0.36)"},600:{value:"rgba(0, 0, 0, 0.48)"},700:{value:"rgba(0, 0, 0, 0.64)"},800:{value:"rgba(0, 0, 0, 0.80)"},900:{value:"rgba(0, 0, 0, 0.92)"},950:{value:"rgba(0, 0, 0, 0.95)"}},gray:{50:{value:"#fafafa"},100:{value:"#f4f4f5"},200:{value:"#e4e4e7"},300:{value:"#d4d4d8"},400:{value:"#a1a1aa"},500:{value:"#71717a"},600:{value:"#52525b"},700:{value:"#3f3f46"},800:{value:"#27272a"},900:{value:"#18181b"},950:{value:"#111111"}},red:{50:{value:"#fef2f2"},100:{value:"#fee2e2"},200:{value:"#fecaca"},300:{value:"#fca5a5"},400:{value:"#f87171"},500:{value:"#ef4444"},600:{value:"#dc2626"},700:{value:"#991919"},800:{value:"#511111"},900:{value:"#300c0c"},950:{value:"#1f0808"}},orange:{50:{value:"#fff7ed"},100:{value:"#ffedd5"},200:{value:"#fed7aa"},300:{value:"#fdba74"},400:{value:"#fb923c"},500:{value:"#f97316"},600:{value:"#ea580c"},700:{value:"#92310a"},800:{value:"#6c2710"},900:{value:"#3b1106"},950:{value:"#220a04"}},yellow:{50:{value:"#fefce8"},100:{value:"#fef9c3"},200:{value:"#fef08a"},300:{value:"#fde047"},400:{value:"#facc15"},500:{value:"#eab308"},600:{value:"#ca8a04"},700:{value:"#845209"},800:{value:"#713f12"},900:{value:"#422006"},950:{value:"#281304"}},green:{50:{value:"#f0fdf4"},100:{value:"#dcfce7"},200:{value:"#bbf7d0"},300:{value:"#86efac"},400:{value:"#4ade80"},500:{value:"#22c55e"},600:{value:"#16a34a"},700:{value:"#116932"},800:{value:"#124a28"},900:{value:"#042713"},950:{value:"#03190c"}},teal:{50:{value:"#f0fdfa"},100:{value:"#ccfbf1"},200:{value:"#99f6e4"},300:{value:"#5eead4"},400:{value:"#2dd4bf"},500:{value:"#14b8a6"},600:{value:"#0d9488"},700:{value:"#0c5d56"},800:{value:"#114240"},900:{value:"#032726"},950:{value:"#021716"}},blue:{50:{value:"#eff6ff"},100:{value:"#dbeafe"},200:{value:"#bfdbfe"},300:{value:"#a3cfff"},400:{value:"#60a5fa"},500:{value:"#3b82f6"},600:{value:"#2563eb"},700:{value:"#173da6"},800:{value:"#1a3478"},900:{value:"#14204a"},950:{value:"#0c142e"}},cyan:{50:{value:"#ecfeff"},100:{value:"#cffafe"},200:{value:"#a5f3fc"},300:{value:"#67e8f9"},400:{value:"#22d3ee"},500:{value:"#06b6d4"},600:{value:"#0891b2"},700:{value:"#0c5c72"},800:{value:"#134152"},900:{value:"#072a38"},950:{value:"#051b24"}},purple:{50:{value:"#faf5ff"},100:{value:"#f3e8ff"},200:{value:"#e9d5ff"},300:{value:"#d8b4fe"},400:{value:"#c084fc"},500:{value:"#a855f7"},600:{value:"#9333ea"},700:{value:"#641ba3"},800:{value:"#4a1772"},900:{value:"#2f0553"},950:{value:"#1a032e"}},pink:{50:{value:"#fdf2f8"},100:{value:"#fce7f3"},200:{value:"#fbcfe8"},300:{value:"#f9a8d4"},400:{value:"#f472b6"},500:{value:"#ec4899"},600:{value:"#db2777"},700:{value:"#a41752"},800:{value:"#6d0e34"},900:{value:"#45061f"},950:{value:"#2c0514"}}}),dI=Ce.cursor({button:{value:"pointer"},checkbox:{value:"default"},disabled:{value:"not-allowed"},menuitem:{value:"default"},option:{value:"default"},radio:{value:"default"},slider:{value:"default"},switch:{value:"pointer"}}),hI=Ce.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),fI=Ce.easings({"ease-in":{value:"cubic-bezier(0.42, 0, 1, 1)"},"ease-out":{value:"cubic-bezier(0, 0, 0.58, 1)"},"ease-in-out":{value:"cubic-bezier(0.42, 0, 0.58, 1)"},"ease-in-smooth":{value:"cubic-bezier(0.32, 0.72, 0, 1)"}}),gI=Ce.fontSizes({"2xs":{value:"0.625rem"},xs:{value:"0.75rem"},sm:{value:"0.875rem"},md:{value:"1rem"},lg:{value:"1.125rem"},xl:{value:"1.25rem"},"2xl":{value:"1.5rem"},"3xl":{value:"1.875rem"},"4xl":{value:"2.25rem"},"5xl":{value:"3rem"},"6xl":{value:"3.75rem"},"7xl":{value:"4.5rem"},"8xl":{value:"6rem"},"9xl":{value:"8rem"}}),pI=Ce.fontWeights({thin:{value:"100"},extralight:{value:"200"},light:{value:"300"},normal:{value:"400"},medium:{value:"500"},semibold:{value:"600"},bold:{value:"700"},extrabold:{value:"800"},black:{value:"900"}}),yg='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mI=Ce.fonts({heading:{value:`Inter, ${yg}`},body:{value:`Inter, ${yg}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),vI=zw({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"0"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"0"}},"expand-width":{from:{width:"0"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"0"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}}),bI=Ce.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),yI=Ce.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),xI=Ce.radii({none:{value:"0"},"2xs":{value:"0.0625rem"},xs:{value:"0.125rem"},sm:{value:"0.25rem"},md:{value:"0.375rem"},lg:{value:"0.5rem"},xl:{value:"0.75rem"},"2xl":{value:"1rem"},"3xl":{value:"1.5rem"},"4xl":{value:"2rem"},full:{value:"9999px"}}),xg=Ce.spacing({.5:{value:"0.125rem"},1:{value:"0.25rem"},1.5:{value:"0.375rem"},2:{value:"0.5rem"},2.5:{value:"0.625rem"},3:{value:"0.75rem"},3.5:{value:"0.875rem"},4:{value:"1rem"},4.5:{value:"1.125rem"},5:{value:"1.25rem"},6:{value:"1.5rem"},7:{value:"1.75rem"},8:{value:"2rem"},9:{value:"2.25rem"},10:{value:"2.5rem"},11:{value:"2.75rem"},12:{value:"3rem"},14:{value:"3.5rem"},16:{value:"4rem"},20:{value:"5rem"},24:{value:"6rem"},28:{value:"7rem"},32:{value:"8rem"},36:{value:"9rem"},40:{value:"10rem"},44:{value:"11rem"},48:{value:"12rem"},52:{value:"13rem"},56:{value:"14rem"},60:{value:"15rem"},64:{value:"16rem"},72:{value:"18rem"},80:{value:"20rem"},96:{value:"24rem"}}),CI=Ce.sizes({"3xs":{value:"14rem"},"2xs":{value:"16rem"},xs:{value:"20rem"},sm:{value:"24rem"},md:{value:"28rem"},lg:{value:"32rem"},xl:{value:"36rem"},"2xl":{value:"42rem"},"3xl":{value:"48rem"},"4xl":{value:"56rem"},"5xl":{value:"64rem"},"6xl":{value:"72rem"},"7xl":{value:"80rem"},"8xl":{value:"90rem"}}),kI=Ce.sizes({max:{value:"max-content"},min:{value:"min-content"},fit:{value:"fit-content"},prose:{value:"60ch"},full:{value:"100%"},dvh:{value:"100dvh"},svh:{value:"100svh"},lvh:{value:"100lvh"},dvw:{value:"100dvw"},svw:{value:"100svw"},lvw:{value:"100lvw"},vw:{value:"100vw"},vh:{value:"100vh"}}),SI=Ce.sizes({"1/2":{value:"50%"},"1/3":{value:"33.333333%"},"2/3":{value:"66.666667%"},"1/4":{value:"25%"},"3/4":{value:"75%"},"1/5":{value:"20%"},"2/5":{value:"40%"},"3/5":{value:"60%"},"4/5":{value:"80%"},"1/6":{value:"16.666667%"},"2/6":{value:"33.333333%"},"3/6":{value:"50%"},"4/6":{value:"66.666667%"},"5/6":{value:"83.333333%"},"1/12":{value:"8.333333%"},"2/12":{value:"16.666667%"},"3/12":{value:"25%"},"4/12":{value:"33.333333%"},"5/12":{value:"41.666667%"},"6/12":{value:"50%"},"7/12":{value:"58.333333%"},"8/12":{value:"66.666667%"},"9/12":{value:"75%"},"10/12":{value:"83.333333%"},"11/12":{value:"91.666667%"}}),wI=Ce.sizes({...CI,...xg,...SI,...kI}),EI=Ce.zIndex({hide:{value:-1},base:{value:0},docked:{value:10},dropdown:{value:1e3},sticky:{value:1100},banner:{value:1200},overlay:{value:1300},modal:{value:1400},popover:{value:1500},skipNav:{value:1600},toast:{value:1700},tooltip:{value:1800},max:{value:2147483647}}),OI=Rl({preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:rO,theme:{breakpoints:nO,keyframes:vI,tokens:{aspectRatios:aI,animations:sI,blurs:lI,borders:cI,colors:uI,durations:hI,easings:fI,fonts:mI,fontSizes:gI,fontWeights:pI,letterSpacings:bI,lineHeights:yI,radii:xI,spacing:xg,sizes:wI,zIndex:EI,cursor:dI},semanticTokens:{colors:SO,shadows:EO,radii:wO},recipes:kO,slotRecipes:oI,textStyles:iI,layerStyles:oO,animationStyles:iO}}),Cg=bf(Yw,OI);sg(Cg);function II(e){const{key:t,recipe:n}=e,r=gi();return w.useMemo(()=>{const o=n||(t!=null?r.getSlotRecipe(t):{});return r.sva(structuredClone(o))},[t,n,r])}const PI=e=>e.charAt(0).toUpperCase()+e.slice(1),$l=e=>{const{key:t,recipe:n}=e,r=PI(t||n.className||"Component"),[o,i]=ar({name:`${r}StylesContext`,errorMessage:`use${r}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `}),[s,a]=ar({name:`${r}ClassNameContext`,errorMessage:`use${r}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${r}.Root />" `,strict:!1}),[l,c]=ar({strict:!1,name:`${r}PropsContext`,providerName:`${r}PropsContext`,defaultValue:{}});function u(f){const{unstyled:g,...m}=f,b=II({key:t,recipe:m.recipe||n}),[x,k]=w.useMemo(()=>b.splitVariantProps(m),[m,b]);return{styles:w.useMemo(()=>g?Db:b(x),[g,x,b]),classNames:b.classNameMap,props:k}}function d(f,g={}){const{defaultProps:m}=g,b=x=>{const k=c(),C=w.useMemo(()=>ro(m,k,x),[k,x]),{styles:S,classNames:I,props:_}=u(C);return v.jsx(o,{value:S,children:v.jsx(s,{value:I,children:v.jsx(f,{..._})})})};return b.displayName=f.displayName||f.name,b}return{StylesProvider:o,ClassNamesProvider:s,PropsProvider:l,usePropsContext:c,useRecipeResult:u,withProvider:(f,g,m)=>{const{defaultProps:b,...x}=m??{},k=Ie(f,{},x),C=w.forwardRef((S,I)=>{var Y;const _=c(),P=w.useMemo(()=>ro(b??{},_,S),[_,S]),{styles:T,props:N,classNames:j}=u(P),R=j[g],L=v.jsx(o,{value:T,children:v.jsx(s,{value:j,children:v.jsx(k,{ref:I,...N,css:[T[g],P.css],className:at(P.className,R)})})});return((Y=m==null?void 0:m.wrapElement)==null?void 0:Y.call(m,L,P))??L});return C.displayName=f.displayName||f.name,C},withContext:(f,g,m)=>{const b=Ie(f,{},m),x=w.forwardRef((k,C)=>{const{unstyled:S,...I}=k,_=i(),P=a(),T=P==null?void 0:P[g];return v.jsx(b,{...I,css:[!S&&g?_[g]:void 0,k.css],ref:C,className:at(k.className,T)})});return x.displayName=f.displayName||f.name,x},withRootProvider:d,useStyles:i,useClassNames:a}},kg=Ie("div",{base:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},variants:{axis:{horizontal:{insetStart:"50%",translate:"-50%",_rtl:{translate:"50%"}},vertical:{top:"50%",translate:"0 -50%"},both:{insetStart:"50%",top:"50%",translate:"-50% -50%",_rtl:{translate:"50% -50%"}}}},defaultVariants:{axis:"both"}});kg.displayName="AbsoluteCenter";const RI=e=>v.jsx(Ie.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:v.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z"})}),Sg=e=>v.jsx(Ie.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:v.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"})}),wg=e=>v.jsx(Ie.svg,{viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",...e,children:v.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"})}),TI=e=>v.jsx(Ie.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:v.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z"})}),[NI,_I]=ar({name:"AlertStatusContext",hookName:"useAlertStatusContext",providerName:""}),{withProvider:AI,withContext:jl,useStyles:VI}=$l({key:"alert"}),LI=AI("div","root",{forwardAsChild:!0,wrapElement(e,t){return v.jsx(NI,{value:{status:t.status||"info"},children:e})}}),Eg=jl("div","title"),FI=jl("div","description"),DI=jl("div","content"),zI={info:wg,warning:Sg,success:RI,error:Sg,neutral:wg},MI=w.forwardRef(function(t,n){const r=_I(),o=VI(),i=typeof r.status=="string"?zI[r.status]:w.Fragment,{children:s=v.jsx(i,{}),...a}=t;return v.jsx(Ie.span,{ref:n,...a,css:[o.indicator,t.css],children:s})}),$I=e=>e?"":void 0,{withContext:jI}=cr({key:"badge"}),Og=jI("span"),{withContext:BI}=cr({key:"spinner"}),WI=BI("span"),HI=O.forwardRef(function(t,n){const{spinner:r=v.jsx(WI,{size:"inherit",borderWidth:"0.125em",color:"inherit"}),spinnerPlacement:o="start",children:i,text:s,visible:a=!0,...l}=t;return a?s?v.jsxs(Fi,{ref:n,display:"contents",...l,children:[o==="start"&&r,s,o==="end"&&r]}):r?v.jsxs(Fi,{ref:n,display:"contents",...l,children:[v.jsx(kg,{display:"inline-flex",children:r}),v.jsx(Fi,{visibility:"hidden",display:"contents",children:i})]}):v.jsx(Fi,{ref:n,display:"contents",...l,children:i}):i}),{useRecipeResult:UI,usePropsContext:GI}=cr({key:"button"}),Po=w.forwardRef(function(t,n){const r=GI(),o=w.useMemo(()=>ro(r,t),[r,t]),i=UI(o),{loading:s,loadingText:a,children:l,spinner:c,spinnerPlacement:u,...d}=i.props;return v.jsx(Ie.button,{type:"button",ref:n,...d,"data-loading":$I(s),disabled:s||d.disabled,className:at(i.className,o.className),css:[i.styles,o.css],children:!o.asChild&&s?v.jsx(HI,{spinner:c,text:a,spinnerPlacement:u,children:l}):l})}),ps=w.forwardRef(function(t,n){return v.jsx(Po,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:n,...t})}),Ig=O.forwardRef(function(t,n){return v.jsx(ps,{variant:"ghost","aria-label":"Close",ref:n,...t,children:t.children??v.jsx(TI,{})})}),Pg=Ie("div",{base:{display:"flex",alignItems:"center",justifyContent:"center"},variants:{inline:{true:{display:"inline-flex"}}}});Pg.displayName="Center";function qI(e){const{gap:t,direction:n}=e,r={column:{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},"column-reverse":{marginY:t,marginX:0,borderInlineStartWidth:0,borderTopWidth:"1px"},row:{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0},"row-reverse":{marginX:t,marginY:0,borderInlineStartWidth:"1px",borderTopWidth:0}};return{"&":vf(n,o=>r[o])}}function KI(e){return w.Children.toArray(e).filter(t=>w.isValidElement(t))}const Rg=w.forwardRef(function(t,n){const{direction:r="column",align:o,justify:i,gap:s="0.5rem",wrap:a,children:l,separator:c,className:u,...d}=t,h=w.useMemo(()=>qI({gap:s,direction:r}),[s,r]),p=w.useMemo(()=>w.isValidElement(c)?KI(l).map((f,g,m)=>{const b=typeof f.key<"u"?f.key:g,x=c,k=w.cloneElement(x,{css:[h,x.props.css]});return v.jsxs(w.Fragment,{children:[f,g===m.length-1?null:k]},b)}):l,[l,c,h]);return v.jsx(Ie.div,{ref:n,display:"flex",alignItems:o,justifyContent:i,flexDirection:r,flexWrap:a,gap:c?void 0:s,className:at("chakra-stack",u),...d,children:p})}),{withRootProvider:Tg,withContext:At}=$l({key:"dialog"});Tg(kS,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const Ng=Tg(CS,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});At(Eh,"trigger",{forwardAsChild:!0});const _g=At(vh,"positioner",{forwardAsChild:!0}),Ag=At(ph,"content",{forwardAsChild:!0});At(mh,"description",{forwardAsChild:!0});const Vg=At(wh,"title",{forwardAsChild:!0}),Lg=At(gh,"closeTrigger",{forwardAsChild:!0}),Fg=w.forwardRef(function(t,n){const r=on();return v.jsx(Ie.button,{...t,ref:n,onClick:()=>r.setOpen(!1)})}),Dg=At(fh,"backdrop",{forwardAsChild:!0}),zg=At("div","body"),Mg=At("div","footer"),$g=At("div","header"),Bl=w.forwardRef(function(t,n){const{direction:r,align:o,justify:i,wrap:s,basis:a,grow:l,shrink:c,inline:u,...d}=t;return v.jsx(Ie.div,{ref:n,...d,css:{display:u?"inline-flex":"flex",flexDirection:r,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:a,flexGrow:l,flexShrink:c,...t.css}})}),{withContext:XI}=cr({key:"link"}),ms=XI("a"),YI=w.forwardRef(function(t,n){return v.jsx(Rg,{align:"center",...t,direction:"row",ref:n})}),QI=w.forwardRef(function(t,n){return v.jsx(Rg,{align:"center",...t,direction:"column",ref:n})}),{StylesProvider:JI,ClassNamesProvider:ZI,useRecipeResult:eP,withContext:Wt}=$l({key:"table"}),jg=w.forwardRef(function({native:t,...n},r){const{styles:o,props:i,classNames:s}=eP(n),a=w.useMemo(()=>t?{...o.root,"& thead":o.header,"& tbody":o.body,"& tfoot":o.footer,"& thead th":o.columnHeader,"& tr":o.row,"& td":o.cell,"& caption":o.caption}:o.root,[o,t]);return v.jsx(ZI,{value:s,children:v.jsx(JI,{value:o,children:v.jsx(Ie.table,{ref:r,...i,css:[a,n.css],className:at(s==null?void 0:s.root,n.className)})})})}),vs=Wt("tr","row");Ie("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}});const Bg=Wt("thead","header");Wt("tfoot","footer");const Ne=Wt("th","columnHeader"),_e=Wt("td","cell");Wt("caption","caption",{defaultProps:{captionSide:"bottom"}});const Wg=Wt("tbody","body");Wt("colgroup"),Wt("col");const{withContext:tP}=cr({key:"textarea"}),nP=tP(Ph);var _r=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},rP={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},oP=(q0=class{constructor(){W(this,hn,rP);W(this,xc,!1)}setTimeoutProvider(e){M(this,hn,e)}setTimeout(e,t){return y(this,hn).setTimeout(e,t)}clearTimeout(e){y(this,hn).clearTimeout(e)}setInterval(e,t){return y(this,hn).setInterval(e,t)}clearInterval(e){y(this,hn).clearInterval(e)}},hn=new WeakMap,xc=new WeakMap,q0),Bn=new oP;function iP(e){setTimeout(e,0)}var Wn=typeof window>"u"||"Deno"in globalThis;function je(){}function sP(e,t){return typeof e=="function"?e(t):e}function Wl(e){return typeof e=="number"&&e>=0&&e!==1/0}function Hg(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ln(e,t){return typeof e=="function"?e(t):e}function ht(e,t){return typeof e=="function"?e(t):e}function Ug(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(r){if(t.queryHash!==Hl(s,t.options))return!1}else if(!Ro(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function Gg(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Hn(t.options.mutationKey)!==Hn(i))return!1}else if(!Ro(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Hl(e,t){return((t==null?void 0:t.queryKeyHashFn)||Hn)(e)}function Hn(e){return JSON.stringify(e,(t,n)=>Ul(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Ro(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ro(e[n],t[n])):!1}var aP=Object.prototype.hasOwnProperty;function qg(e,t){if(e===t)return e;const n=Kg(e)&&Kg(t);if(!n&&!(Ul(e)&&Ul(t)))return t;const o=(n?e:Object.keys(e)).length,i=n?t:Object.keys(t),s=i.length,a=n?new Array(s):{};let l=0;for(let c=0;c{Bn.setTimeout(t,e)})}function Gl(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?qg(e,t):t}function cP(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function uP(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ql=Symbol();function Yg(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===ql?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Qg(e,t){return typeof e=="function"?e(...t):!!e}var dP=(K0=class extends _r{constructor(){super();W(this,Xn);W(this,fn);W(this,zr);M(this,zr,t=>{if(!Wn&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){y(this,fn)||this.setEventListener(y(this,zr))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,fn))==null||t.call(this),M(this,fn,void 0))}setEventListener(t){var n;M(this,zr,t),(n=y(this,fn))==null||n.call(this),M(this,fn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){y(this,Xn)!==t&&(M(this,Xn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof y(this,Xn)=="boolean"?y(this,Xn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Xn=new WeakMap,fn=new WeakMap,zr=new WeakMap,K0),Kl=new dP;function Xl(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var hP=iP;function fP(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=hP;const i=a=>{t?e.push(a):o(()=>{n(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||s()}return l},batchCalls:a=>(...l)=>{i(()=>{a(...l)})},schedule:i,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var we=fP(),gP=(X0=class extends _r{constructor(){super();W(this,Mr,!0);W(this,gn);W(this,$r);M(this,$r,t=>{if(!Wn&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){y(this,gn)||this.setEventListener(y(this,$r))}onUnsubscribe(){var t;this.hasListeners()||((t=y(this,gn))==null||t.call(this),M(this,gn,void 0))}setEventListener(t){var n;M(this,$r,t),(n=y(this,gn))==null||n.call(this),M(this,gn,t(this.setOnline.bind(this)))}setOnline(t){y(this,Mr)!==t&&(M(this,Mr,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return y(this,Mr)}},Mr=new WeakMap,gn=new WeakMap,$r=new WeakMap,X0),ys=new gP;function pP(e){return Math.min(1e3*2**e,3e4)}function Jg(e){return(e??"online")==="online"?ys.isOnline():!0}var Yl=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Zg(e){let t=!1,n=0,r;const o=Xl(),i=()=>o.status!=="pending",s=g=>{var m;if(!i()){const b=new Yl(g);h(b),(m=e.onCancel)==null||m.call(e,b)}},a=()=>{t=!0},l=()=>{t=!1},c=()=>Kl.isFocused()&&(e.networkMode==="always"||ys.isOnline())&&e.canRun(),u=()=>Jg(e.networkMode)&&e.canRun(),d=g=>{i()||(r==null||r(),o.resolve(g))},h=g=>{i()||(r==null||r(),o.reject(g))},p=()=>new Promise(g=>{var m;r=b=>{(i()||c())&&g(b)},(m=e.onPause)==null||m.call(e)}).then(()=>{var g;r=void 0,i()||(g=e.onContinue)==null||g.call(e)}),f=()=>{if(i())return;let g;const m=n===0?e.initialPromise:void 0;try{g=m??e.fn()}catch(b){g=Promise.reject(b)}Promise.resolve(g).then(d).catch(b=>{var I;if(i())return;const x=e.retry??(Wn?0:3),k=e.retryDelay??pP,C=typeof k=="function"?k(n,b):k,S=x===!0||typeof x=="number"&&nc()?void 0:p()).then(()=>{t?h(b):f()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r==null||r(),o),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?f():p().then(f),o)}}var ep=(Y0=class{constructor(){W(this,Yn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Wl(this.gcTime)&&M(this,Yn,Bn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Wn?1/0:5*60*1e3))}clearGcTimeout(){y(this,Yn)&&(Bn.clearTimeout(y(this,Yn)),M(this,Yn,void 0))}},Yn=new WeakMap,Y0),mP=(Q0=class extends ep{constructor(t){super();W(this,Ct);W(this,Qn);W(this,jr);W(this,ft);W(this,Jn);W(this,Ae);W(this,Wo);W(this,Zn);M(this,Zn,!1),M(this,Wo,t.defaultOptions),this.setOptions(t.options),this.observers=[],M(this,Jn,t.client),M(this,ft,y(this,Jn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,M(this,Qn,np(this.options)),this.state=t.state??y(this,Qn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=y(this,Ae))==null?void 0:t.promise}setOptions(t){if(this.options={...y(this,Wo),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=np(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),M(this,Qn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&y(this,ft).remove(this)}setData(t,n){const r=Gl(this.state.data,t,this.options);return Z(this,Ct,Xt).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Z(this,Ct,Xt).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=y(this,Ae))==null?void 0:r.promise;return(o=y(this,Ae))==null||o.cancel(t),n?n.then(je).catch(je):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(y(this,Qn))}isActive(){return this.observers.some(t=>ht(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ql||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ln(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Hg(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,Ae))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=y(this,Ae))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),y(this,ft).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(y(this,Ae)&&(y(this,Zn)?y(this,Ae).cancel({revert:!0}):y(this,Ae).cancelRetry()),this.scheduleGc()),y(this,ft).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Z(this,Ct,Xt).call(this,{type:"invalidate"})}async fetch(t,n){var l,c,u,d,h,p,f,g,m,b,x,k;if(this.state.fetchStatus!=="idle"&&((l=y(this,Ae))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(y(this,Ae))return y(this,Ae).continueRetry(),y(this,Ae).promise}if(t&&this.setOptions(t),!this.options.queryFn){const C=this.observers.find(S=>S.options.queryFn);C&&this.setOptions(C.options)}const r=new AbortController,o=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(M(this,Zn,!0),r.signal)})},i=()=>{const C=Yg(this.options,n),I=(()=>{const _={client:y(this,Jn),queryKey:this.queryKey,meta:this.meta};return o(_),_})();return M(this,Zn,!1),this.options.persister?this.options.persister(C,I,this):C(I)},a=(()=>{const C={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:y(this,Jn),state:this.state,fetchFn:i};return o(C),C})();(c=this.options.behavior)==null||c.onFetch(a,this),M(this,jr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=a.fetchOptions)==null?void 0:u.meta))&&Z(this,Ct,Xt).call(this,{type:"fetch",meta:(d=a.fetchOptions)==null?void 0:d.meta}),M(this,Ae,Zg({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,onCancel:C=>{C instanceof Yl&&C.revert&&this.setState({...y(this,jr),fetchStatus:"idle"}),r.abort()},onFail:(C,S)=>{Z(this,Ct,Xt).call(this,{type:"failed",failureCount:C,error:S})},onPause:()=>{Z(this,Ct,Xt).call(this,{type:"pause"})},onContinue:()=>{Z(this,Ct,Xt).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}));try{const C=await y(this,Ae).start();if(C===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(C),(p=(h=y(this,ft).config).onSuccess)==null||p.call(h,C,this),(g=(f=y(this,ft).config).onSettled)==null||g.call(f,C,this.state.error,this),C}catch(C){if(C instanceof Yl){if(C.silent)return y(this,Ae).promise;if(C.revert){if(this.state.data===void 0)throw C;return this.state.data}}throw Z(this,Ct,Xt).call(this,{type:"error",error:C}),(b=(m=y(this,ft).config).onError)==null||b.call(m,C,this),(k=(x=y(this,ft).config).onSettled)==null||k.call(x,this.state.data,C,this),C}finally{this.scheduleGc()}}},Qn=new WeakMap,jr=new WeakMap,ft=new WeakMap,Jn=new WeakMap,Ae=new WeakMap,Wo=new WeakMap,Zn=new WeakMap,Ct=new WeakSet,Xt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...tp(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return M(this,jr,t.manual?o:void 0),o;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),we.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),y(this,ft).notify({query:this,type:"updated",action:t})})},Q0);function tp(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Jg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function np(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var vP=(J0=class extends _r{constructor(t,n){super();W(this,se);W(this,Qe);W(this,te);W(this,Ho);W(this,Be);W(this,er);W(this,Br);W(this,Ht);W(this,pn);W(this,Uo);W(this,Wr);W(this,Hr);W(this,tr);W(this,nr);W(this,mn);W(this,Ur,new Set);this.options=n,M(this,Qe,t),M(this,pn,null),M(this,Ht,Xl()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(y(this,te).addObserver(this),rp(y(this,te),this.options)?Z(this,se,Ko).call(this):this.updateResult(),Z(this,se,Ic).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ql(y(this,te),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ql(y(this,te),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Z(this,se,Pc).call(this),Z(this,se,Rc).call(this),y(this,te).removeObserver(this)}setOptions(t){const n=this.options,r=y(this,te);if(this.options=y(this,Qe).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ht(this.options.enabled,y(this,te))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Z(this,se,Tc).call(this),y(this,te).setOptions(this.options),n._defaulted&&!bs(this.options,n)&&y(this,Qe).getQueryCache().notify({type:"observerOptionsUpdated",query:y(this,te),observer:this});const o=this.hasListeners();o&&op(y(this,te),r,this.options,n)&&Z(this,se,Ko).call(this),this.updateResult(),o&&(y(this,te)!==r||ht(this.options.enabled,y(this,te))!==ht(n.enabled,y(this,te))||ln(this.options.staleTime,y(this,te))!==ln(n.staleTime,y(this,te)))&&Z(this,se,wc).call(this);const i=Z(this,se,Ec).call(this);o&&(y(this,te)!==r||ht(this.options.enabled,y(this,te))!==ht(n.enabled,y(this,te))||i!==y(this,mn))&&Z(this,se,Oc).call(this,i)}getOptimisticResult(t){const n=y(this,Qe).getQueryCache().build(y(this,Qe),t),r=this.createResult(n,t);return yP(this,r)&&(M(this,Be,r),M(this,Br,this.options),M(this,er,y(this,te).state)),r}getCurrentResult(){return y(this,Be)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),o==="promise"&&!this.options.experimental_prefetchInRender&&y(this,Ht).status==="pending"&&y(this,Ht).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,o))})}trackProp(t){y(this,Ur).add(t)}getCurrentQuery(){return y(this,te)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=y(this,Qe).defaultQueryOptions(t),r=y(this,Qe).getQueryCache().build(y(this,Qe),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Z(this,se,Ko).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),y(this,Be)))}createResult(t,n){var T;const r=y(this,te),o=this.options,i=y(this,Be),s=y(this,er),a=y(this,Br),c=t!==r?t.state:y(this,Ho),{state:u}=t;let d={...u},h=!1,p;if(n._optimisticResults){const N=this.hasListeners(),j=!N&&rp(t,n),R=N&&op(t,r,n,o);(j||R)&&(d={...d,...tp(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:f,errorUpdatedAt:g,status:m}=d;p=d.data;let b=!1;if(n.placeholderData!==void 0&&p===void 0&&m==="pending"){let N;i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(N=i.data,b=!0):N=typeof n.placeholderData=="function"?n.placeholderData((T=y(this,Hr))==null?void 0:T.state.data,y(this,Hr)):n.placeholderData,N!==void 0&&(m="success",p=Gl(i==null?void 0:i.data,N,n),h=!0)}if(n.select&&p!==void 0&&!b)if(i&&p===(s==null?void 0:s.data)&&n.select===y(this,Uo))p=y(this,Wr);else try{M(this,Uo,n.select),p=n.select(p),p=Gl(i==null?void 0:i.data,p,n),M(this,Wr,p),M(this,pn,null)}catch(N){M(this,pn,N)}y(this,pn)&&(f=y(this,pn),p=y(this,Wr),g=Date.now(),m="error");const x=d.fetchStatus==="fetching",k=m==="pending",C=m==="error",S=k&&x,I=p!==void 0,P={status:m,fetchStatus:d.fetchStatus,isPending:k,isSuccess:m==="success",isError:C,isInitialLoading:S,isLoading:S,data:p,dataUpdatedAt:d.dataUpdatedAt,error:f,errorUpdatedAt:g,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:x,isRefetching:x&&!k,isLoadingError:C&&!I,isPaused:d.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:C&&I,isStale:Jl(t,n),refetch:this.refetch,promise:y(this,Ht),isEnabled:ht(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const N=L=>{P.status==="error"?L.reject(P.error):P.data!==void 0&&L.resolve(P.data)},j=()=>{const L=M(this,Ht,P.promise=Xl());N(L)},R=y(this,Ht);switch(R.status){case"pending":t.queryHash===r.queryHash&&N(R);break;case"fulfilled":(P.status==="error"||P.data!==R.value)&&j();break;case"rejected":(P.status!=="error"||P.error!==R.reason)&&j();break}}return P}updateResult(){const t=y(this,Be),n=this.createResult(y(this,te),this.options);if(M(this,er,y(this,te).state),M(this,Br,this.options),y(this,er).data!==void 0&&M(this,Hr,y(this,te)),bs(n,t))return;M(this,Be,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!y(this,Ur).size)return!0;const s=new Set(i??y(this,Ur));return this.options.throwOnError&&s.add("error"),Object.keys(y(this,Be)).some(a=>{const l=a;return y(this,Be)[l]!==t[l]&&s.has(l)})};Z(this,se,dv).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Z(this,se,Ic).call(this)}},Qe=new WeakMap,te=new WeakMap,Ho=new WeakMap,Be=new WeakMap,er=new WeakMap,Br=new WeakMap,Ht=new WeakMap,pn=new WeakMap,Uo=new WeakMap,Wr=new WeakMap,Hr=new WeakMap,tr=new WeakMap,nr=new WeakMap,mn=new WeakMap,Ur=new WeakMap,se=new WeakSet,Ko=function(t){Z(this,se,Tc).call(this);let n=y(this,te).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(je)),n},wc=function(){Z(this,se,Pc).call(this);const t=ln(this.options.staleTime,y(this,te));if(Wn||y(this,Be).isStale||!Wl(t))return;const r=Hg(y(this,Be).dataUpdatedAt,t)+1;M(this,tr,Bn.setTimeout(()=>{y(this,Be).isStale||this.updateResult()},r))},Ec=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(y(this,te)):this.options.refetchInterval)??!1},Oc=function(t){Z(this,se,Rc).call(this),M(this,mn,t),!(Wn||ht(this.options.enabled,y(this,te))===!1||!Wl(y(this,mn))||y(this,mn)===0)&&M(this,nr,Bn.setInterval(()=>{(this.options.refetchIntervalInBackground||Kl.isFocused())&&Z(this,se,Ko).call(this)},y(this,mn)))},Ic=function(){Z(this,se,wc).call(this),Z(this,se,Oc).call(this,Z(this,se,Ec).call(this))},Pc=function(){y(this,tr)&&(Bn.clearTimeout(y(this,tr)),M(this,tr,void 0))},Rc=function(){y(this,nr)&&(Bn.clearInterval(y(this,nr)),M(this,nr,void 0))},Tc=function(){const t=y(this,Qe).getQueryCache().build(y(this,Qe),this.options);if(t===y(this,te))return;const n=y(this,te);M(this,te,t),M(this,Ho,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},dv=function(t){we.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(y(this,Be))}),y(this,Qe).getQueryCache().notify({query:y(this,te),type:"observerResultsUpdated"})})},J0);function bP(e,t){return ht(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function rp(e,t){return bP(e,t)||e.state.data!==void 0&&Ql(e,t,t.refetchOnMount)}function Ql(e,t,n){if(ht(t.enabled,e)!==!1&&ln(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Jl(e,t)}return!1}function op(e,t,n,r){return(e!==t||ht(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Jl(e,n)}function Jl(e,t){return ht(t.enabled,e)!==!1&&e.isStaleByTime(ln(t.staleTime,e))}function yP(e,t){return!bs(e.getCurrentResult(),t)}function ip(e){return{onFetch:(t,n)=>{var u,d,h,p,f;const r=t.options,o=(h=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],s=((f=t.state.data)==null?void 0:f.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const m=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},b=Yg(t.options,t.fetchOptions),x=async(k,C,S)=>{if(g)return Promise.reject();if(C==null&&k.pages.length)return Promise.resolve(k);const _=(()=>{const j={client:t.client,queryKey:t.queryKey,pageParam:C,direction:S?"backward":"forward",meta:t.options.meta};return m(j),j})(),P=await b(_),{maxPages:T}=t.options,N=S?uP:cP;return{pages:N(k.pages,P,T),pageParams:N(k.pageParams,C,T)}};if(o&&i.length){const k=o==="backward",C=k?xP:sp,S={pages:i,pageParams:s},I=C(r,S);a=await x(S,I,k)}else{const k=e??i.length;do{const C=l===0?s[0]??r.initialPageParam:sp(r,a);if(l>0&&C==null)break;a=await x(a,C),l++}while(l{var g,m;return(m=(g=t.options).persister)==null?void 0:m.call(g,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function sp(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function xP(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var CP=(Z0=class extends ep{constructor(t){super();W(this,Ft);W(this,Lt);W(this,We);W(this,rr);this.mutationId=t.mutationId,M(this,We,t.mutationCache),M(this,Lt,[]),this.state=t.state||ap(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){y(this,Lt).includes(t)||(y(this,Lt).push(t),this.clearGcTimeout(),y(this,We).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){M(this,Lt,y(this,Lt).filter(n=>n!==t)),this.scheduleGc(),y(this,We).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){y(this,Lt).length||(this.state.status==="pending"?this.scheduleGc():y(this,We).remove(this))}continue(){var t;return((t=y(this,rr))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,s,a,l,c,u,d,h,p,f,g,m,b,x,k,C,S,I,_,P;const n=()=>{Z(this,Ft,Sn).call(this,{type:"continue"})};M(this,rr,Zg({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(T,N)=>{Z(this,Ft,Sn).call(this,{type:"failed",failureCount:T,error:N})},onPause:()=>{Z(this,Ft,Sn).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>y(this,We).canRun(this)}));const r=this.state.status==="pending",o=!y(this,rr).canStart();try{if(r)n();else{Z(this,Ft,Sn).call(this,{type:"pending",variables:t,isPaused:o}),await((s=(i=y(this,We).config).onMutate)==null?void 0:s.call(i,t,this));const N=await((l=(a=this.options).onMutate)==null?void 0:l.call(a,t));N!==this.state.context&&Z(this,Ft,Sn).call(this,{type:"pending",context:N,variables:t,isPaused:o})}const T=await y(this,rr).start();return await((u=(c=y(this,We).config).onSuccess)==null?void 0:u.call(c,T,t,this.state.context,this)),await((h=(d=this.options).onSuccess)==null?void 0:h.call(d,T,t,this.state.context)),await((f=(p=y(this,We).config).onSettled)==null?void 0:f.call(p,T,null,this.state.variables,this.state.context,this)),await((m=(g=this.options).onSettled)==null?void 0:m.call(g,T,null,t,this.state.context)),Z(this,Ft,Sn).call(this,{type:"success",data:T}),T}catch(T){try{throw await((x=(b=y(this,We).config).onError)==null?void 0:x.call(b,T,t,this.state.context,this)),await((C=(k=this.options).onError)==null?void 0:C.call(k,T,t,this.state.context)),await((I=(S=y(this,We).config).onSettled)==null?void 0:I.call(S,void 0,T,this.state.variables,this.state.context,this)),await((P=(_=this.options).onSettled)==null?void 0:P.call(_,void 0,T,t,this.state.context)),T}finally{Z(this,Ft,Sn).call(this,{type:"error",error:T})}}finally{y(this,We).runNext(this)}}},Lt=new WeakMap,We=new WeakMap,rr=new WeakMap,Ft=new WeakSet,Sn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),we.batch(()=>{y(this,Lt).forEach(r=>{r.onMutationUpdate(t)}),y(this,We).notify({mutation:this,type:"updated",action:t})})},Z0);function ap(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var kP=(ev=class extends _r{constructor(t={}){super();W(this,Ut);W(this,kt);W(this,Go);this.config=t,M(this,Ut,new Set),M(this,kt,new Map),M(this,Go,0)}build(t,n,r){const o=new CP({mutationCache:this,mutationId:++Xs(this,Go)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){y(this,Ut).add(t);const n=xs(t);if(typeof n=="string"){const r=y(this,kt).get(n);r?r.push(t):y(this,kt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(y(this,Ut).delete(t)){const n=xs(t);if(typeof n=="string"){const r=y(this,kt).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&y(this,kt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=xs(t);if(typeof n=="string"){const r=y(this,kt).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=xs(t);if(typeof n=="string"){const o=(r=y(this,kt).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){we.batch(()=>{y(this,Ut).forEach(t=>{this.notify({type:"removed",mutation:t})}),y(this,Ut).clear(),y(this,kt).clear()})}getAll(){return Array.from(y(this,Ut))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Gg(n,r))}findAll(t={}){return this.getAll().filter(n=>Gg(t,n))}notify(t){we.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return we.batch(()=>Promise.all(t.map(n=>n.continue().catch(je))))}},Ut=new WeakMap,kt=new WeakMap,Go=new WeakMap,ev);function xs(e){var t;return(t=e.options.scope)==null?void 0:t.id}var SP=(tv=class extends _r{constructor(t,n){super();W(this,qt);W(this,vn);W(this,bn);W(this,Je);W(this,Gt);M(this,vn,t),this.setOptions(n),this.bindMethods(),Z(this,qt,Zs).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var r;const n=this.options;this.options=y(this,vn).defaultMutationOptions(t),bs(this.options,n)||y(this,vn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:y(this,Je),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&Hn(n.mutationKey)!==Hn(this.options.mutationKey)?this.reset():((r=y(this,Je))==null?void 0:r.state.status)==="pending"&&y(this,Je).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=y(this,Je))==null||t.removeObserver(this)}onMutationUpdate(t){Z(this,qt,Zs).call(this),Z(this,qt,Nc).call(this,t)}getCurrentResult(){return y(this,bn)}reset(){var t;(t=y(this,Je))==null||t.removeObserver(this),M(this,Je,void 0),Z(this,qt,Zs).call(this),Z(this,qt,Nc).call(this)}mutate(t,n){var r;return M(this,Gt,n),(r=y(this,Je))==null||r.removeObserver(this),M(this,Je,y(this,vn).getMutationCache().build(y(this,vn),this.options)),y(this,Je).addObserver(this),y(this,Je).execute(t)}},vn=new WeakMap,bn=new WeakMap,Je=new WeakMap,Gt=new WeakMap,qt=new WeakSet,Zs=function(){var n;const t=((n=y(this,Je))==null?void 0:n.state)??ap();M(this,bn,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Nc=function(t){we.batch(()=>{var n,r,o,i,s,a,l,c;if(y(this,Gt)&&this.hasListeners()){const u=y(this,bn).variables,d=y(this,bn).context;(t==null?void 0:t.type)==="success"?((r=(n=y(this,Gt)).onSuccess)==null||r.call(n,t.data,u,d),(i=(o=y(this,Gt)).onSettled)==null||i.call(o,t.data,null,u,d)):(t==null?void 0:t.type)==="error"&&((a=(s=y(this,Gt)).onError)==null||a.call(s,t.error,u,d),(c=(l=y(this,Gt)).onSettled)==null||c.call(l,void 0,t.error,u,d))}this.listeners.forEach(u=>{u(y(this,bn))})})},tv),wP=(nv=class extends _r{constructor(t={}){super();W(this,Dt);this.config=t,M(this,Dt,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??Hl(o,n);let s=this.get(i);return s||(s=new mP({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){y(this,Dt).has(t.queryHash)||(y(this,Dt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=y(this,Dt).get(t.queryHash);n&&(t.destroy(),n===t&&y(this,Dt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){we.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return y(this,Dt).get(t)}getAll(){return[...y(this,Dt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Ug(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Ug(t,r)):n}notify(t){we.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){we.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){we.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Dt=new WeakMap,nv),EP=(rv=class{constructor(e={}){W(this,ve);W(this,yn);W(this,xn);W(this,Gr);W(this,qr);W(this,Cn);W(this,Kr);W(this,Xr);M(this,ve,e.queryCache||new wP),M(this,yn,e.mutationCache||new kP),M(this,xn,e.defaultOptions||{}),M(this,Gr,new Map),M(this,qr,new Map),M(this,Cn,0)}mount(){Xs(this,Cn)._++,y(this,Cn)===1&&(M(this,Kr,Kl.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ve).onFocus())})),M(this,Xr,ys.subscribe(async e=>{e&&(await this.resumePausedMutations(),y(this,ve).onOnline())})))}unmount(){var e,t;Xs(this,Cn)._--,y(this,Cn)===0&&((e=y(this,Kr))==null||e.call(this),M(this,Kr,void 0),(t=y(this,Xr))==null||t.call(this),M(this,Xr,void 0))}isFetching(e){return y(this,ve).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return y(this,yn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,ve).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=y(this,ve).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ln(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return y(this,ve).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=y(this,ve).get(r.queryHash),i=o==null?void 0:o.state.data,s=sP(t,i);if(s!==void 0)return y(this,ve).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return we.batch(()=>y(this,ve).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=y(this,ve).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=y(this,ve);we.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=y(this,ve);return we.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=we.batch(()=>y(this,ve).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(je).catch(je)}invalidateQueries(e,t={}){return we.batch(()=>(y(this,ve).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=we.batch(()=>y(this,ve).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(je)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(je)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=y(this,ve).build(this,t);return n.isStaleByTime(ln(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(je).catch(je)}fetchInfiniteQuery(e){return e.behavior=ip(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(je).catch(je)}ensureInfiniteQueryData(e){return e.behavior=ip(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ys.isOnline()?y(this,yn).resumePausedMutations():Promise.resolve()}getQueryCache(){return y(this,ve)}getMutationCache(){return y(this,yn)}getDefaultOptions(){return y(this,xn)}setDefaultOptions(e){M(this,xn,e)}setQueryDefaults(e,t){y(this,Gr).set(Hn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...y(this,Gr).values()],n={};return t.forEach(r=>{Ro(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){y(this,qr).set(Hn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...y(this,qr).values()],n={};return t.forEach(r=>{Ro(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...y(this,xn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Hl(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===ql&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...y(this,xn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){y(this,ve).clear(),y(this,yn).clear()}},ve=new WeakMap,yn=new WeakMap,xn=new WeakMap,Gr=new WeakMap,qr=new WeakMap,Cn=new WeakMap,Kr=new WeakMap,Xr=new WeakMap,rv),lp=O.createContext(void 0),cp=e=>{const t=O.useContext(lp);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},OP=({client:e,children:t})=>(O.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),v.jsx(lp.Provider,{value:e,children:t})),up=O.createContext(!1),IP=()=>O.useContext(up);up.Provider;function PP(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var RP=O.createContext(PP()),TP=()=>O.useContext(RP),NP=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},_P=e=>{O.useEffect(()=>{e.clearReset()},[e])},AP=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Qg(n,[e.error,r])),VP=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>n(r(...o)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},LP=(e,t)=>e.isLoading&&e.isFetching&&!t,FP=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,dp=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function DP(e,t,n){var d,h,p,f,g;const r=IP(),o=TP(),i=cp(),s=i.defaultQueryOptions(e);(h=(d=i.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||h.call(d,s),s._optimisticResults=r?"isRestoring":"optimistic",VP(s),NP(s,o),_P(o);const a=!i.getQueryCache().get(s.queryHash),[l]=O.useState(()=>new t(i,s)),c=l.getOptimisticResult(s),u=!r&&e.subscribed!==!1;if(O.useSyncExternalStore(O.useCallback(m=>{const b=u?l.subscribe(we.batchCalls(m)):je;return l.updateResult(),b},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),O.useEffect(()=>{l.setOptions(s)},[s,l]),FP(s,c))throw dp(s,l,o);if(AP({result:c,errorResetBoundary:o,throwOnError:s.throwOnError,query:i.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw c.error;if((f=(p=i.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||f.call(p,s,c),s.experimental_prefetchInRender&&!Wn&&LP(c,r)){const m=a?dp(s,l,o):(g=i.getQueryCache().get(s.queryHash))==null?void 0:g.promise;m==null||m.catch(je).finally(()=>{l.updateResult()})}return s.notifyOnChangeProps?c:l.trackResult(c)}function hp(e,t){return DP(e,vP)}function fp(e,t){const n=cp(),[r]=O.useState(()=>new SP(n,e));O.useEffect(()=>{r.setOptions(e)},[r,e]);const o=O.useSyncExternalStore(O.useCallback(s=>r.subscribe(we.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=O.useCallback((s,a)=>{r.mutate(s,a).catch(je)},[r]);if(o.error&&Qg(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}function gp(e,t){return function(){return e.apply(t,arguments)}}const{toString:zP}=Object.prototype,{getPrototypeOf:Zl}=Object,{iterator:Cs,toStringTag:pp}=Symbol,ks=(e=>t=>{const n=zP.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),xt=e=>(e=e.toLowerCase(),t=>ks(t)===e),Ss=e=>t=>typeof t===e,{isArray:Ar}=Array,To=Ss("undefined");function No(e){return e!==null&&!To(e)&&e.constructor!==null&&!To(e.constructor)&&Xe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const mp=xt("ArrayBuffer");function MP(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&mp(e.buffer),t}const $P=Ss("string"),Xe=Ss("function"),vp=Ss("number"),_o=e=>e!==null&&typeof e=="object",jP=e=>e===!0||e===!1,ws=e=>{if(ks(e)!=="object")return!1;const t=Zl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(pp in e)&&!(Cs in e)},BP=e=>{if(!_o(e)||No(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},WP=xt("Date"),HP=xt("File"),UP=xt("Blob"),GP=xt("FileList"),qP=e=>_o(e)&&Xe(e.pipe),KP=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xe(e.append)&&((t=ks(e))==="formdata"||t==="object"&&Xe(e.toString)&&e.toString()==="[object FormData]"))},XP=xt("URLSearchParams"),[YP,QP,JP,ZP]=["ReadableStream","Request","Response","Headers"].map(xt),eR=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ao(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Ar(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Un=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:globalThis,yp=e=>!To(e)&&e!==Un;function ec(){const{caseless:e}=yp(this)&&this||{},t={},n=(r,o)=>{const i=e&&bp(t,o)||o;ws(t[i])&&ws(r)?t[i]=ec(t[i],r):ws(r)?t[i]=ec({},r):Ar(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Ao(t,(o,i)=>{n&&Xe(o)?e[i]=gp(o,n):e[i]=o},{allOwnKeys:r}),e),nR=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),rR=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},oR=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Zl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},iR=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},sR=e=>{if(!e)return null;if(Ar(e))return e;let t=e.length;if(!vp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},aR=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Zl(Uint8Array)),lR=(e,t)=>{const r=(e&&e[Cs]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},cR=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},uR=xt("HTMLFormElement"),dR=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),xp=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),hR=xt("RegExp"),Cp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ao(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},fR=e=>{Cp(e,(t,n)=>{if(Xe(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Xe(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},gR=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Ar(e)?r(e):r(String(e).split(t)),n},pR=()=>{},mR=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function vR(e){return!!(e&&Xe(e.append)&&e[pp]==="FormData"&&e[Cs])}const bR=e=>{const t=new Array(10),n=(r,o)=>{if(_o(r)){if(t.indexOf(r)>=0)return;if(No(r))return r;if(!("toJSON"in r)){t[o]=r;const i=Ar(r)?[]:{};return Ao(r,(s,a)=>{const l=n(s,o+1);!To(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},yR=xt("AsyncFunction"),xR=e=>e&&(_o(e)||Xe(e))&&Xe(e.then)&&Xe(e.catch),kp=((e,t)=>e?setImmediate:t?((n,r)=>(Un.addEventListener("message",({source:o,data:i})=>{o===Un&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Un.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Xe(Un.postMessage)),CR=typeof queueMicrotask<"u"?queueMicrotask.bind(Un):typeof process<"u"&&process.nextTick||kp,E={isArray:Ar,isArrayBuffer:mp,isBuffer:No,isFormData:KP,isArrayBufferView:MP,isString:$P,isNumber:vp,isBoolean:jP,isObject:_o,isPlainObject:ws,isEmptyObject:BP,isReadableStream:YP,isRequest:QP,isResponse:JP,isHeaders:ZP,isUndefined:To,isDate:WP,isFile:HP,isBlob:UP,isRegExp:hR,isFunction:Xe,isStream:qP,isURLSearchParams:XP,isTypedArray:aR,isFileList:GP,forEach:Ao,merge:ec,extend:tR,trim:eR,stripBOM:nR,inherits:rR,toFlatObject:oR,kindOf:ks,kindOfTest:xt,endsWith:iR,toArray:sR,forEachEntry:lR,matchAll:cR,isHTMLForm:uR,hasOwnProperty:xp,hasOwnProp:xp,reduceDescriptors:Cp,freezeMethods:fR,toObjectSet:gR,toCamelCase:dR,noop:pR,toFiniteNumber:mR,findKey:bp,global:Un,isContextDefined:yp,isSpecCompliantForm:vR,toJSONObject:bR,isAsyncFn:yR,isThenable:xR,setImmediate:kp,asap:CR,isIterable:e=>e!=null&&Xe(e[Cs])};function Q(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}E.inherits(Q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:E.toJSONObject(this.config),code:this.code,status:this.status}}});const Sp=Q.prototype,wp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{wp[e]={value:e}}),Object.defineProperties(Q,wp),Object.defineProperty(Sp,"isAxiosError",{value:!0}),Q.from=(e,t,n,r,o,i)=>{const s=Object.create(Sp);return E.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Q.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const kR=null;function tc(e){return E.isPlainObject(e)||E.isArray(e)}function Ep(e){return E.endsWith(e,"[]")?e.slice(0,-2):e}function Op(e,t,n){return e?e.concat(t).map(function(o,i){return o=Ep(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function SR(e){return E.isArray(e)&&!e.some(tc)}const wR=E.toFlatObject(E,{},null,function(t){return/^is[A-Z]/.test(t)});function Es(e,t,n){if(!E.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=E.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,m){return!E.isUndefined(m[g])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&E.isSpecCompliantForm(t);if(!E.isFunction(o))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(E.isDate(f))return f.toISOString();if(E.isBoolean(f))return f.toString();if(!l&&E.isBlob(f))throw new Q("Blob is not supported. Use a Buffer instead.");return E.isArrayBuffer(f)||E.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,g,m){let b=f;if(f&&!m&&typeof f=="object"){if(E.endsWith(g,"{}"))g=r?g:g.slice(0,-2),f=JSON.stringify(f);else if(E.isArray(f)&&SR(f)||(E.isFileList(f)||E.endsWith(g,"[]"))&&(b=E.toArray(f)))return g=Ep(g),b.forEach(function(k,C){!(E.isUndefined(k)||k===null)&&t.append(s===!0?Op([g],C,i):s===null?g:g+"[]",c(k))}),!1}return tc(f)?!0:(t.append(Op(m,g,i),c(f)),!1)}const d=[],h=Object.assign(wR,{defaultVisitor:u,convertValue:c,isVisitable:tc});function p(f,g){if(!E.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(f),E.forEach(f,function(b,x){(!(E.isUndefined(b)||b===null)&&o.call(t,b,E.isString(x)?x.trim():x,g,h))===!0&&p(b,g?g.concat(x):[x])}),d.pop()}}if(!E.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Ip(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function nc(e,t){this._pairs=[],e&&Es(e,this,t)}const Pp=nc.prototype;Pp.append=function(t,n){this._pairs.push([t,n])},Pp.toString=function(t){const n=t?function(r){return t.call(this,r,Ip)}:Ip;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function ER(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Rp(e,t,n){if(!t)return e;const r=n&&n.encode||ER;E.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=E.isURLSearchParams(t)?t.toString():new nc(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Tp{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){E.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Np={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},OR={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:nc,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},rc=typeof window<"u"&&typeof document<"u",oc=typeof navigator=="object"&&navigator||void 0,IR=rc&&(!oc||["ReactNative","NativeScript","NS"].indexOf(oc.product)<0),PR=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",RR=rc&&window.location.href||"http://localhost",Me={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:rc,hasStandardBrowserEnv:IR,hasStandardBrowserWebWorkerEnv:PR,navigator:oc,origin:RR},Symbol.toStringTag,{value:"Module"})),...OR};function TR(e,t){return Es(e,new Me.classes.URLSearchParams,{visitor:function(n,r,o,i){return Me.isNode&&E.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function NR(e){return E.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function _R(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return s=!s&&E.isArray(o)?o.length:s,l?(E.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!E.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&E.isArray(o[s])&&(o[s]=_R(o[s])),!a)}if(E.isFormData(e)&&E.isFunction(e.entries)){const n={};return E.forEachEntry(e,(r,o)=>{t(NR(r),o,n,0)}),n}return null}function AR(e,t,n){if(E.isString(e))try{return(t||JSON.parse)(e),E.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Vo={transitional:Np,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=E.isObject(t);if(i&&E.isHTMLForm(t)&&(t=new FormData(t)),E.isFormData(t))return o?JSON.stringify(_p(t)):t;if(E.isArrayBuffer(t)||E.isBuffer(t)||E.isStream(t)||E.isFile(t)||E.isBlob(t)||E.isReadableStream(t))return t;if(E.isArrayBufferView(t))return t.buffer;if(E.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return TR(t,this.formSerializer).toString();if((a=E.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Es(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),AR(t)):t}],transformResponse:[function(t){const n=this.transitional||Vo.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(E.isResponse(t)||E.isReadableStream(t))return t;if(t&&E.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?Q.from(a,Q.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Me.classes.FormData,Blob:Me.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(["delete","get","head","post","put","patch"],e=>{Vo.headers[e]={}});const VR=E.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),LR=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&VR[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ap=Symbol("internals");function Lo(e){return e&&String(e).trim().toLowerCase()}function Os(e){return e===!1||e==null?e:E.isArray(e)?e.map(Os):String(e)}function FR(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const DR=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ic(e,t,n,r,o){if(E.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!E.isString(t)){if(E.isString(r))return t.indexOf(r)!==-1;if(E.isRegExp(r))return r.test(t)}}function zR(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function MR(e,t){const n=E.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}let Ye=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,c){const u=Lo(l);if(!u)throw new Error("header name must be a non-empty string");const d=E.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=Os(a))}const s=(a,l)=>E.forEach(a,(c,u)=>i(c,u,l));if(E.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(E.isString(t)&&(t=t.trim())&&!DR(t))s(LR(t),n);else if(E.isObject(t)&&E.isIterable(t)){let a={},l,c;for(const u of t){if(!E.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[c=u[0]]=(l=a[c])?E.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}s(a,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Lo(t),t){const r=E.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return FR(o);if(E.isFunction(n))return n.call(this,o,r);if(E.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Lo(t),t){const r=E.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ic(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=Lo(s),s){const a=E.findKey(r,s);a&&(!n||ic(r,r[a],a,n))&&(delete r[a],o=!0)}}return E.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||ic(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return E.forEach(this,(o,i)=>{const s=E.findKey(r,i);if(s){n[s]=Os(o),delete n[i];return}const a=t?zR(i):String(i).trim();a!==i&&delete n[i],n[a]=Os(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return E.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&E.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Ap]=this[Ap]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Lo(s);r[a]||(MR(o,s),r[a]=!0)}return E.isArray(t)?t.forEach(i):i(t),this}};Ye.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),E.reduceDescriptors(Ye.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),E.freezeMethods(Ye);function sc(e,t){const n=this||Vo,r=t||n,o=Ye.from(r.headers);let i=r.data;return E.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Vp(e){return!!(e&&e.__CANCEL__)}function Vr(e,t,n){Q.call(this,e??"canceled",Q.ERR_CANCELED,t,n),this.name="CanceledError"}E.inherits(Vr,Q,{__CANCEL__:!0});function Lp(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Q("Request failed with status code "+n.status,[Q.ERR_BAD_REQUEST,Q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function $R(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function jR(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];s||(s=c),n[o]=l,r[o]=c;let d=i,h=0;for(;d!==o;)h+=n[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s{n=u,o=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const u=Date.now(),d=u-n;d>=r?s(c,u):(o=c,i||(i=setTimeout(()=>{i=null,s(o)},r-d)))},()=>o&&s(o)]}const Is=(e,t,n=3)=>{let r=0;const o=jR(50,250);return BR(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-r,c=o(l),u=s<=a;r=s;const d={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-s)/c:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(d)},n)},Fp=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Dp=e=>(...t)=>E.asap(()=>e(...t)),WR=Me.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Me.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Me.origin),Me.navigator&&/(msie|trident)/i.test(Me.navigator.userAgent)):()=>!0,HR=Me.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];E.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),E.isString(r)&&s.push("path="+r),E.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function UR(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function GR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function zp(e,t,n){let r=!UR(t);return e&&(r||n==!1)?GR(e,t):t}const Mp=e=>e instanceof Ye?{...e}:e;function Gn(e,t){t=t||{};const n={};function r(c,u,d,h){return E.isPlainObject(c)&&E.isPlainObject(u)?E.merge.call({caseless:h},c,u):E.isPlainObject(u)?E.merge({},u):E.isArray(u)?u.slice():u}function o(c,u,d,h){if(E.isUndefined(u)){if(!E.isUndefined(c))return r(void 0,c,d,h)}else return r(c,u,d,h)}function i(c,u){if(!E.isUndefined(u))return r(void 0,u)}function s(c,u){if(E.isUndefined(u)){if(!E.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u,d)=>o(Mp(c),Mp(u),d,!0)};return E.forEach(Object.keys({...e,...t}),function(u){const d=l[u]||o,h=d(e[u],t[u],u);E.isUndefined(h)&&d!==a||(n[u]=h)}),n}const $p=e=>{const t=Gn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;t.headers=s=Ye.from(s),t.url=Rp(zp(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(E.isFormData(n)){if(Me.hasStandardBrowserEnv||Me.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Me.hasStandardBrowserEnv&&(r&&E.isFunction(r)&&(r=r(t)),r||r!==!1&&WR(t.url))){const c=o&&i&&HR.read(i);c&&s.set(o,c)}return t},qR=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=$p(e);let i=o.data;const s=Ye.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,u,d,h,p,f;function g(){p&&p(),f&&f(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function b(){if(!m)return;const k=Ye.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),S={data:!a||a==="text"||a==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:k,config:e,request:m};Lp(function(_){n(_),g()},function(_){r(_),g()},S),m=null}"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(b)},m.onabort=function(){m&&(r(new Q("Request aborted",Q.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new Q("Network Error",Q.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let C=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const S=o.transitional||Np;o.timeoutErrorMessage&&(C=o.timeoutErrorMessage),r(new Q(C,S.clarifyTimeoutError?Q.ETIMEDOUT:Q.ECONNABORTED,e,m)),m=null},i===void 0&&s.setContentType(null),"setRequestHeader"in m&&E.forEach(s.toJSON(),function(C,S){m.setRequestHeader(S,C)}),E.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),a&&a!=="json"&&(m.responseType=o.responseType),c&&([h,f]=Is(c,!0),m.addEventListener("progress",h)),l&&m.upload&&([d,p]=Is(l),m.upload.addEventListener("progress",d),m.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(u=k=>{m&&(r(!k||k.type?new Vr(null,e,m):k),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const x=$R(o.url);if(x&&Me.protocols.indexOf(x)===-1){r(new Q("Unsupported protocol "+x+":",Q.ERR_BAD_REQUEST,e));return}m.send(i||null)})},KR=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(c){if(!o){o=!0,a();const u=c instanceof Error?c:this.reason;r.abort(u instanceof Q?u:new Vr(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,i(new Q(`timeout ${t} of ms exceeded`,Q.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>E.asap(a),l}},XR=function*(e,t){let n=e.byteLength;if(n{const o=YR(e,t);let i=0,s,a=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){a(),l.close();return}let d=u.byteLength;if(n){let h=i+=d;n(h)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},Ps=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Bp=Ps&&typeof ReadableStream=="function",JR=Ps&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Wp=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ZR=Bp&&Wp(()=>{let e=!1;const t=new Request(Me.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Hp=64*1024,ac=Bp&&Wp(()=>E.isReadableStream(new Response("").body)),Rs={stream:ac&&(e=>e.body)};Ps&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Rs[t]&&(Rs[t]=E.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Q(`Response type '${t}' is not supported`,Q.ERR_NOT_SUPPORT,r)})})})(new Response);const eT=async e=>{if(e==null)return 0;if(E.isBlob(e))return e.size;if(E.isSpecCompliantForm(e))return(await new Request(Me.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(E.isArrayBufferView(e)||E.isArrayBuffer(e))return e.byteLength;if(E.isURLSearchParams(e)&&(e=e+""),E.isString(e))return(await JR(e)).byteLength},tT=async(e,t)=>{const n=E.toFiniteNumber(e.getContentLength());return n??eT(t)},lc={http:kR,xhr:qR,fetch:Ps&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:h}=$p(e);c=c?(c+"").toLowerCase():"text";let p=KR([o,i&&i.toAbortSignal()],s),f;const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let m;try{if(l&&ZR&&n!=="get"&&n!=="head"&&(m=await tT(u,r))!==0){let S=new Request(t,{method:"POST",body:r,duplex:"half"}),I;if(E.isFormData(r)&&(I=S.headers.get("content-type"))&&u.setContentType(I),S.body){const[_,P]=Fp(m,Is(Dp(l)));r=jp(S.body,Hp,_,P)}}E.isString(d)||(d=d?"include":"omit");const b="credentials"in Request.prototype;f=new Request(t,{...h,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:b?d:void 0});let x=await fetch(f,h);const k=ac&&(c==="stream"||c==="response");if(ac&&(a||k&&g)){const S={};["status","statusText","headers"].forEach(T=>{S[T]=x[T]});const I=E.toFiniteNumber(x.headers.get("content-length")),[_,P]=a&&Fp(I,Is(Dp(a),!0))||[];x=new Response(jp(x.body,Hp,_,()=>{P&&P(),g&&g()}),S)}c=c||"text";let C=await Rs[E.findKey(Rs,c)||"text"](x,e);return!k&&g&&g(),await new Promise((S,I)=>{Lp(S,I,{data:C,headers:Ye.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:f})})}catch(b){throw g&&g(),b&&b.name==="TypeError"&&/Load failed|fetch/i.test(b.message)?Object.assign(new Q("Network Error",Q.ERR_NETWORK,e,f),{cause:b.cause||b}):Q.from(b,b&&b.code,e,f)}})};E.forEach(lc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Up=e=>`- ${e}`,nT=e=>E.isFunction(e)||e===null||e===!1,Gp={getAdapter:e=>{e=E.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since : +`+i.map(Up).join(` +`):" "+Up(i[0]):"as no adapter specified";throw new Q("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:lc};function cc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Vr(null,e)}function qp(e){return cc(e),e.headers=Ye.from(e.headers),e.data=sc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Gp.getAdapter(e.adapter||Vo.adapter)(e).then(function(r){return cc(e),r.data=sc.call(e,e.transformResponse,r),r.headers=Ye.from(r.headers),r},function(r){return Vp(r)||(cc(e),r&&r.response&&(r.response.data=sc.call(e,e.transformResponse,r.response),r.response.headers=Ye.from(r.response.headers))),Promise.reject(r)})}const Kp="1.11.0",Ts={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ts[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Xp={};Ts.transitional=function(t,n,r){function o(i,s){return"[Axios v"+Kp+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new Q(o(s," has been removed"+(n?" in "+n:"")),Q.ERR_DEPRECATED);return n&&!Xp[s]&&(Xp[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}},Ts.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function rT(e,t,n){if(typeof e!="object")throw new Q("options must be an object",Q.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new Q("option "+i+" must be "+l,Q.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Q("Unknown option "+i,Q.ERR_BAD_OPTION)}}const Ns={assertOptions:rT,validators:Ts},Vt=Ns.validators;let qn=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Tp,response:new Tp}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Gn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Ns.assertOptions(r,{silentJSONParsing:Vt.transitional(Vt.boolean),forcedJSONParsing:Vt.transitional(Vt.boolean),clarifyTimeoutError:Vt.transitional(Vt.boolean)},!1),o!=null&&(E.isFunction(o)?n.paramsSerializer={serialize:o}:Ns.assertOptions(o,{encode:Vt.function,serialize:Vt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ns.assertOptions(n,{baseUrl:Vt.spelling("baseURL"),withXsrfToken:Vt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&E.merge(i.common,i[n.method]);i&&E.forEach(["delete","get","head","post","put","patch","common"],f=>{delete i[f]}),n.headers=Ye.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,d=0,h;if(!l){const f=[qp.bind(this),void 0];for(f.unshift(...a),f.push(...c),h=f.length,u=Promise.resolve(n);d{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new Vr(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new hv(function(o){t=o}),cancel:t}}};function iT(e){return function(n){return e.apply(null,n)}}function sT(e){return E.isObject(e)&&e.isAxiosError===!0}const uc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(uc).forEach(([e,t])=>{uc[t]=e});function Yp(e){const t=new qn(e),n=gp(qn.prototype.request,t);return E.extend(n,qn.prototype,t,{allOwnKeys:!0}),E.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Yp(Gn(e,o))},n}const pe=Yp(Vo);pe.Axios=qn,pe.CanceledError=Vr,pe.CancelToken=oT,pe.isCancel=Vp,pe.VERSION=Kp,pe.toFormData=Es,pe.AxiosError=Q,pe.Cancel=pe.CanceledError,pe.all=function(t){return Promise.all(t)},pe.spread=iT,pe.isAxiosError=sT,pe.mergeConfig=Gn,pe.AxiosHeaders=Ye,pe.formToJSON=e=>_p(E.isHTMLForm(e)?new FormData(e):e),pe.getAdapter=Gp.getAdapter,pe.HttpStatusCode=uc,pe.default=pe;const{Axios:c_,AxiosError:u_,CanceledError:d_,isCancel:h_,CancelToken:f_,VERSION:g_,all:p_,Cancel:m_,isAxiosError:v_,spread:b_,toFormData:y_,AxiosHeaders:x_,HttpStatusCode:C_,formToJSON:k_,getAdapter:S_,mergeConfig:w_}=pe;var _s=["light","dark"],dc="(prefers-color-scheme: dark)",aT=typeof window>"u",Qp=O.createContext(void 0),lT=e=>O.useContext(Qp)?e.children:O.createElement(uT,{...e}),cT=["light","dark"],uT=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:o="theme",themes:i=cT,defaultTheme:s=n?"system":"light",attribute:a="data-theme",value:l,children:c,nonce:u})=>{let[d,h]=O.useState(()=>Jp(o,s)),[p,f]=O.useState(()=>Jp(o)),g=l?Object.values(l):i,m=O.useCallback(C=>{let S=C;if(!S)return;C==="system"&&n&&(S=Zp());let I=l?l[S]:S,_=t?hT():null,P=document.documentElement;if(a==="class"?(P.classList.remove(...g),I&&P.classList.add(I)):I?P.setAttribute(a,I):P.removeAttribute(a),r){let T=_s.includes(s)?s:null,N=_s.includes(S)?S:T;P.style.colorScheme=N}_==null||_()},[]),b=O.useCallback(C=>{let S=typeof C=="function"?C(C):C;h(S);try{localStorage.setItem(o,S)}catch{}},[e]),x=O.useCallback(C=>{let S=Zp(C);f(S),d==="system"&&n&&!e&&m("system")},[d,e]);O.useEffect(()=>{let C=window.matchMedia(dc);return C.addListener(x),x(C),()=>C.removeListener(x)},[x]),O.useEffect(()=>{let C=S=>{if(S.key!==o)return;let I=S.newValue||s;b(I)};return window.addEventListener("storage",C),()=>window.removeEventListener("storage",C)},[b]),O.useEffect(()=>{m(e??d)},[e,d]);let k=O.useMemo(()=>({theme:d,setTheme:b,forcedTheme:e,resolvedTheme:d==="system"?p:d,themes:n?[...i,"system"]:i,systemTheme:n?p:void 0}),[d,b,e,p,n,i]);return O.createElement(Qp.Provider,{value:k},O.createElement(dT,{forcedTheme:e,disableTransitionOnChange:t,enableSystem:n,enableColorScheme:r,storageKey:o,themes:i,defaultTheme:s,attribute:a,value:l,children:c,attrs:g,nonce:u}),c)},dT=O.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,attrs:a,nonce:l})=>{let c=i==="system",u=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(f=>`'${f}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=o?_s.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(f,g=!1,m=!0)=>{let b=s?s[f]:f,x=g?f+"|| ''":`'${b}'`,k="";return o&&m&&!g&&_s.includes(f)&&(k+=`d.style.colorScheme = '${f}';`),n==="class"?g||b?k+=`c.add(${x})`:k+="null":b&&(k+=`d[s](n,${x})`),k},p=e?`!function(){${u}${h(e)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${dc}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}${c?"":"else{"+h(i,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${h(s?"x[e]":"e",!0)}}else{${h(i,!1,!1)};}${d}}catch(t){}}();`;return O.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:p}})}),Jp=(e,t)=>{if(aT)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},hT=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},Zp=e=>(e||(e=window.matchMedia(dc)),e.matches?"dark":"light");const fT=e=>v.jsx(lT,{attribute:"class",disableTransitionOnChange:!0,...e});/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. @@ -58,11 +35,7 @@ * LICENSE.md file in the root directory of this source tree. * * @license MIT -<<<<<<< HEAD - */function Lo(){return Lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function jp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function pT(){return Math.random().toString(36).substr(2,8)}function Bp(e,t){return{usr:e.state,key:e.key,idx:t}}function hc(e,t,n,r){return n===void 0&&(n=null),Lo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Lr(t):t,{state:n,key:t&&t.key||r||pT()})}function _s(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Lr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function mT(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=cn.Pop,l=null,c=u();c==null&&(c=0,s.replaceState(Lo({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function d(){a=cn.Pop;let m=u(),b=m==null?null:m-c;c=m,l&&l({action:a,location:g.location,delta:b})}function h(m,b){a=cn.Push;let x=hc(g.location,m,b);c=u()+1;let k=Bp(x,c),C=g.createHref(x);try{s.pushState(k,"",C)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(C)}i&&l&&l({action:a,location:g.location,delta:1})}function p(m,b){a=cn.Replace;let x=hc(g.location,m,b);c=u();let k=Bp(x,c),C=g.createHref(x);s.replaceState(k,"",C),i&&l&&l({action:a,location:g.location,delta:0})}function f(m){let b=o.location.origin!=="null"?o.location.origin:o.location.href,x=typeof m=="string"?m:_s(m);return x=x.replace(/ $/,"%20"),me(b,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,b)}let g={get action(){return a},get location(){return e(o,s)},listen(m){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener($p,d),l=m,()=>{o.removeEventListener($p,d),l=null}},createHref(m){return t(o,m)},createURL:f,encodeLocation(m){let b=f(m);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:h,replace:p,go(m){return s.go(m)}};return g}var Wp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Wp||(Wp={}));function vT(e,t,n){return n===void 0&&(n="/"),bT(e,t,n)}function bT(e,t,n,r){let o=typeof t=="string"?Lr(t):t,i=Fr(o.pathname||"/",n);if(i==null)return null;let s=Hp(e);yT(s);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(me(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=un([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(me(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Hp(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:OT(c,i.index),routesMeta:u})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of Up(i.path))o(i,s,l)}),t}function Up(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=Up(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function yT(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:IT(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const xT=/^:[\w-]+$/,CT=3,kT=2,ST=1,wT=10,ET=-2,Gp=e=>e==="*";function OT(e,t){let n=e.split("/"),r=n.length;return n.some(Gp)&&(r+=ET),t&&(r+=kT),n.filter(o=>!Gp(o)).reduce((o,i)=>o+(xT.test(i)?CT:i===""?ST:wT),r)}function IT(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function PT(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a{let{paramName:h,isOptional:p}=u;if(h==="*"){let g=a[d]||"";s=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const f=a[d];return p&&!f?c[h]=void 0:c[h]=(f||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:s,pattern:e}}function RT(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),jp(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function TT(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return jp(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Fr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function NT(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Lr(e):e;return{pathname:n?n.startsWith("/")?n:_T(n,t):t,search:LT(r),hash:FT(o)}}function _T(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function gc(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function AT(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function qp(e,t){let n=AT(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Kp(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Lr(e):(o=Lo({},e),me(!o.pathname||!o.pathname.includes("?"),gc("?","pathname","search",o)),me(!o.pathname||!o.pathname.includes("#"),gc("#","pathname","hash",o)),me(!o.search||!o.search.includes("#"),gc("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),d-=1;o.pathname=h.join("/")}a=d>=0?t[d]:"/"}let l=NT(o,a),c=s&&s!=="/"&&s.endsWith("/"),u=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const un=e=>e.join("/").replace(/\/\/+/g,"/"),VT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),LT=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,FT=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function DT(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Xp=["post","put","patch","delete"];new Set(Xp);const zT=["get",...Xp];new Set(zT);/** -======= - */function Fi(){return Fi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Up(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function A2(){return Math.random().toString(36).substr(2,8)}function Gp(e,t){return{usr:e.state,key:e.key,idx:t}}function oc(e,t,n,r){return n===void 0&&(n=null),Fi({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Fr(t):t,{state:n,key:t&&t.key||r||A2()})}function Rs(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Fr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function _2(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=cn.Pop,l=null,c=u();c==null&&(c=0,s.replaceState(Fi({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function d(){a=cn.Pop;let p=u(),b=p==null?null:p-c;c=p,l&&l({action:a,location:g.location,delta:b})}function h(p,b){a=cn.Push;let x=oc(g.location,p,b);c=u()+1;let S=Gp(x,c),C=g.createHref(x);try{s.pushState(S,"",C)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(C)}o&&l&&l({action:a,location:g.location,delta:1})}function m(p,b){a=cn.Replace;let x=oc(g.location,p,b);c=u();let S=Gp(x,c),C=g.createHref(x);s.replaceState(S,"",C),o&&l&&l({action:a,location:g.location,delta:0})}function f(p){let b=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof p=="string"?p:Rs(p);return x=x.replace(/ $/,"%20"),pe(b,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,b)}let g={get action(){return a},get location(){return e(i,s)},listen(p){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Hp,d),l=p,()=>{i.removeEventListener(Hp,d),l=null}},createHref(p){return t(i,p)},createURL:f,encodeLocation(p){let b=f(p);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:h,replace:m,go(p){return s.go(p)}};return g}var qp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(qp||(qp={}));function V2(e,t,n){return n===void 0&&(n="/"),F2(e,t,n)}function F2(e,t,n,r){let i=typeof t=="string"?Fr(t):t,o=Lr(i.pathname||"/",n);if(o==null)return null;let s=Kp(e);L2(s);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(pe(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=un([r,l.relativePath]),u=n.concat(l);o.children&&o.children.length>0&&(pe(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Kp(o.children,t,u,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:W2(c,o.index),routesMeta:u})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of Xp(o.path))i(o,s,l)}),t}function Xp(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=Xp(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function L2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:H2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const D2=/^:[\w-]+$/,z2=3,M2=2,$2=1,B2=10,j2=-2,Yp=e=>e==="*";function W2(e,t){let n=e.split("/"),r=n.length;return n.some(Yp)&&(r+=j2),t&&(r+=M2),n.filter(i=>!Yp(i)).reduce((i,o)=>i+(D2.test(o)?z2:o===""?$2:B2),r)}function H2(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function U2(e,t,n){let{routesMeta:r}=e,i={},o="/",s=[];for(let a=0;a{let{paramName:h,isOptional:m}=u;if(h==="*"){let g=a[d]||"";s=o.slice(0,o.length-g.length).replace(/(.)\/+$/,"$1")}const f=a[d];return m&&!f?c[h]=void 0:c[h]=(f||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:s,pattern:e}}function G2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Up(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function q2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Up(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Lr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function K2(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Fr(e):e;return{pathname:n?n.startsWith("/")?n:X2(n,t):t,search:J2(r),hash:Z2(i)}}function X2(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function ac(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Y2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Qp(e,t){let n=Y2(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Jp(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Fr(e):(i=Fi({},e),pe(!i.pathname||!i.pathname.includes("?"),ac("?","pathname","search",i)),pe(!i.pathname||!i.pathname.includes("#"),ac("#","pathname","hash",i)),pe(!i.search||!i.search.includes("#"),ac("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),d-=1;i.pathname=h.join("/")}a=d>=0?t[d]:"/"}let l=K2(i,a),c=s&&s!=="/"&&s.endsWith("/"),u=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const un=e=>e.join("/").replace(/\/\/+/g,"/"),Q2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),J2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Z2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function eN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Zp=["post","put","patch","delete"];new Set(Zp);const tN=["get",...Zp];new Set(tN);/** ->>>>>>> 3f3a37a363 (Add confirmation dialog for exit maintenance action in Edge Worker Page) + */function Fo(){return Fo=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function tm(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function pT(){return Math.random().toString(36).substr(2,8)}function nm(e,t){return{usr:e.state,key:e.key,idx:t}}function hc(e,t,n,r){return n===void 0&&(n=null),Fo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Lr(t):t,{state:n,key:t&&t.key||r||pT()})}function As(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Lr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function mT(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,a=cn.Pop,l=null,c=u();c==null&&(c=0,s.replaceState(Fo({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function d(){a=cn.Pop;let m=u(),b=m==null?null:m-c;c=m,l&&l({action:a,location:g.location,delta:b})}function h(m,b){a=cn.Push;let x=hc(g.location,m,b);c=u()+1;let k=nm(x,c),C=g.createHref(x);try{s.pushState(k,"",C)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(C)}i&&l&&l({action:a,location:g.location,delta:1})}function p(m,b){a=cn.Replace;let x=hc(g.location,m,b);c=u();let k=nm(x,c),C=g.createHref(x);s.replaceState(k,"",C),i&&l&&l({action:a,location:g.location,delta:0})}function f(m){let b=o.location.origin!=="null"?o.location.origin:o.location.href,x=typeof m=="string"?m:As(m);return x=x.replace(/ $/,"%20"),me(b,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,b)}let g={get action(){return a},get location(){return e(o,s)},listen(m){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(em,d),l=m,()=>{o.removeEventListener(em,d),l=null}},createHref(m){return t(o,m)},createURL:f,encodeLocation(m){let b=f(m);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:h,replace:p,go(m){return s.go(m)}};return g}var rm;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(rm||(rm={}));function vT(e,t,n){return n===void 0&&(n="/"),bT(e,t,n)}function bT(e,t,n,r){let o=typeof t=="string"?Lr(t):t,i=Fr(o.pathname||"/",n);if(i==null)return null;let s=om(e);yT(s);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(me(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=un([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(me(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),om(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:OT(c,i.index),routesMeta:u})};return e.forEach((i,s)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,s);else for(let l of im(i.path))o(i,s,l)}),t}function im(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=im(r.join("/")),a=[];return a.push(...s.map(l=>l===""?i:[i,l].join("/"))),o&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function yT(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:IT(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const xT=/^:[\w-]+$/,CT=3,kT=2,ST=1,wT=10,ET=-2,sm=e=>e==="*";function OT(e,t){let n=e.split("/"),r=n.length;return n.some(sm)&&(r+=ET),t&&(r+=kT),n.filter(o=>!sm(o)).reduce((o,i)=>o+(xT.test(i)?CT:i===""?ST:wT),r)}function IT(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function PT(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let a=0;a{let{paramName:h,isOptional:p}=u;if(h==="*"){let g=a[d]||"";s=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const f=a[d];return p&&!f?c[h]=void 0:c[h]=(f||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:s,pattern:e}}function RT(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),tm(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function TT(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return tm(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Fr(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function NT(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Lr(e):e;return{pathname:n?n.startsWith("/")?n:_T(n,t):t,search:LT(r),hash:FT(o)}}function _T(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function gc(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function AT(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function am(e,t){let n=AT(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function lm(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Lr(e):(o=Fo({},e),me(!o.pathname||!o.pathname.includes("?"),gc("?","pathname","search",o)),me(!o.pathname||!o.pathname.includes("#"),gc("#","pathname","hash",o)),me(!o.search||!o.search.includes("#"),gc("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,a;if(s==null)a=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),d-=1;o.pathname=h.join("/")}a=d>=0?t[d]:"/"}let l=NT(o,a),c=s&&s!=="/"&&s.endsWith("/"),u=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const un=e=>e.join("/").replace(/\/\/+/g,"/"),VT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),LT=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,FT=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function DT(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const cm=["post","put","patch","delete"];new Set(cm);const zT=["get",...cm];new Set(zT);/** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. @@ -71,11 +44,7 @@ * LICENSE.md file in the root directory of this source tree. * * @license MIT -<<<<<<< HEAD - */function Fo(){return Fo=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),O.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=Kp(c,JSON.parse(s),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:un([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,s,i,e])}function Ls(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=O.useContext(dn),{matches:o}=O.useContext(Kn),{pathname:i}=zo(),s=JSON.stringify(qp(o,r.v7_relativeSplatPath));return O.useMemo(()=>Kp(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function BT(e,t){return WT(e,t)}function WT(e,t,n,r){Do()||me(!1);let{navigator:o}=O.useContext(dn),{matches:i}=O.useContext(Kn),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=zo(),u;if(t){var d;let m=typeof t=="string"?Lr(t):t;l==="/"||(d=m.pathname)!=null&&d.startsWith(l)||me(!1),u=m}else u=c;let h=u.pathname||"/",p=h;if(l!=="/"){let m=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(m.length).join("/")}let f=vT(e,{pathname:p}),g=KT(f&&f.map(m=>Object.assign({},m,{params:Object.assign({},a,m.params),pathname:un([l,o.encodeLocation?o.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?l:un([l,o.encodeLocation?o.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),i,n,r);return t&&g?O.createElement(Vs.Provider,{value:{location:Fo({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:cn.Pop}},g):g}function HT(){let e=JT(),t=DT(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),n?O.createElement("pre",{style:o},n):null,null)}const UT=O.createElement(HT,null);class GT extends O.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?O.createElement(Kn.Provider,{value:this.props.routeContext},O.createElement(Qp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qT(e){let{routeContext:t,match:n,children:r}=e,o=O.useContext(As);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),O.createElement(Kn.Provider,{value:t},r)}function KT(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let u=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||me(!1),s=s.slice(0,Math.min(s.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((u,d,h)=>{let p,f=!1,g=null,m=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,g=d.route.errorElement||UT,l&&(c<0&&h===0?(e5("route-fallback"),f=!0,m=null):c===h&&(f=!0,m=d.route.hydrateFallbackElement||null)));let b=t.concat(s.slice(0,h+1)),x=()=>{let k;return p?k=g:f?k=m:d.route.Component?k=O.createElement(d.route.Component,null):d.route.element?k=d.route.element:k=u,O.createElement(qT,{match:d,routeContext:{outlet:u,matches:b,isDataRoute:n!=null},children:k})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?O.createElement(GT,{location:n.location,revalidation:n.revalidation,component:g,error:p,children:x(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):x()},null)}var Zp=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Zp||{}),em=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(em||{});function XT(e){let t=O.useContext(As);return t||me(!1),t}function YT(e){let t=O.useContext(Yp);return t||me(!1),t}function QT(e){let t=O.useContext(Kn);return t||me(!1),t}function tm(e){let t=QT(),n=t.matches[t.matches.length-1];return n.route.id||me(!1),n.route.id}function JT(){var e;let t=O.useContext(Qp),n=YT(),r=tm();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function ZT(){let{router:e}=XT(Zp.UseNavigateStable),t=tm(em.UseNavigateStable),n=O.useRef(!1);return Jp(()=>{n.current=!0}),O.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Fo({fromRouteId:t},i)))},[e,t])}const nm={};function e5(e,t,n){nm[e]||(nm[e]=!0)}function t5(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function pc(e){me(!1)}function n5(e){let{basename:t="/",children:n=null,location:r,navigationType:o=cn.Pop,navigator:i,static:s=!1,future:a}=e;Do()&&me(!1);let l=t.replace(/^\/*/,"/"),c=O.useMemo(()=>({basename:l,navigator:i,static:s,future:Fo({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=Lr(r));let{pathname:u="/",search:d="",hash:h="",state:p=null,key:f="default"}=r,g=O.useMemo(()=>{let m=Fr(u,l);return m==null?null:{location:{pathname:m,search:d,hash:h,state:p,key:f},navigationType:o}},[l,u,d,h,p,f,o]);return g==null?null:O.createElement(dn.Provider,{value:c},O.createElement(Vs.Provider,{children:n,value:g}))}function r5(e){let{children:t,location:n}=e;return BT(mc(t),n)}new Promise(()=>{});function mc(e,t){t===void 0&&(t=[]);let n=[];return O.Children.forEach(e,(r,o)=>{if(!O.isValidElement(r))return;let i=[...t,o];if(r.type===O.Fragment){n.push.apply(n,mc(r.props.children,i));return}r.type!==pc&&me(!1),!r.props.index||!r.props.children||me(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=mc(r.props.children,i)),n.push(s)}),n}/** -======= - */function Li(){return Li=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),O.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=Jp(c,JSON.parse(s),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:un([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,s,o,e])}function As(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=O.useContext(dn),{matches:i}=O.useContext(Xn),{pathname:o}=zi(),s=JSON.stringify(Qp(i,r.v7_relativeSplatPath));return O.useMemo(()=>Jp(e,JSON.parse(s),o,n==="path"),[e,s,o,n])}function oN(e,t){return sN(e,t)}function sN(e,t,n,r){Di()||pe(!1);let{navigator:i}=O.useContext(dn),{matches:o}=O.useContext(Xn),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=zi(),u;if(t){var d;let p=typeof t=="string"?Fr(t):t;l==="/"||(d=p.pathname)!=null&&d.startsWith(l)||pe(!1),u=p}else u=c;let h=u.pathname||"/",m=h;if(l!=="/"){let p=l.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(p.length).join("/")}let f=V2(e,{pathname:m}),g=dN(f&&f.map(p=>Object.assign({},p,{params:Object.assign({},a,p.params),pathname:un([l,i.encodeLocation?i.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?l:un([l,i.encodeLocation?i.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),o,n,r);return t&&g?O.createElement(Ns.Provider,{value:{location:Li({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:cn.Pop}},g):g}function aN(){let e=pN(),t=eN(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),n?O.createElement("pre",{style:i},n):null,null)}const lN=O.createElement(aN,null);class cN extends O.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?O.createElement(Xn.Provider,{value:this.props.routeContext},O.createElement(tm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function uN(e){let{routeContext:t,match:n,children:r}=e,i=O.useContext(Ts);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),O.createElement(Xn.Provider,{value:t},r)}function dN(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let u=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||pe(!1),s=s.slice(0,Math.min(s.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((u,d,h)=>{let m,f=!1,g=null,p=null;n&&(m=a&&d.route.id?a[d.route.id]:void 0,g=d.route.errorElement||lN,l&&(c<0&&h===0?(vN("route-fallback"),f=!0,p=null):c===h&&(f=!0,p=d.route.hydrateFallbackElement||null)));let b=t.concat(s.slice(0,h+1)),x=()=>{let S;return m?S=g:f?S=p:d.route.Component?S=O.createElement(d.route.Component,null):d.route.element?S=d.route.element:S=u,O.createElement(uN,{match:d,routeContext:{outlet:u,matches:b,isDataRoute:n!=null},children:S})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?O.createElement(cN,{location:n.location,revalidation:n.revalidation,component:g,error:m,children:x(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):x()},null)}var rm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(rm||{}),im=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(im||{});function hN(e){let t=O.useContext(Ts);return t||pe(!1),t}function fN(e){let t=O.useContext(em);return t||pe(!1),t}function gN(e){let t=O.useContext(Xn);return t||pe(!1),t}function om(e){let t=gN(),n=t.matches[t.matches.length-1];return n.route.id||pe(!1),n.route.id}function pN(){var e;let t=O.useContext(tm),n=fN(),r=om();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function mN(){let{router:e}=hN(rm.UseNavigateStable),t=om(im.UseNavigateStable),n=O.useRef(!1);return nm(()=>{n.current=!0}),O.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Li({fromRouteId:t},o)))},[e,t])}const sm={};function vN(e,t,n){sm[e]||(sm[e]=!0)}function bN(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function lc(e){pe(!1)}function yN(e){let{basename:t="/",children:n=null,location:r,navigationType:i=cn.Pop,navigator:o,static:s=!1,future:a}=e;Di()&&pe(!1);let l=t.replace(/^\/*/,"/"),c=O.useMemo(()=>({basename:l,navigator:o,static:s,future:Li({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=Fr(r));let{pathname:u="/",search:d="",hash:h="",state:m=null,key:f="default"}=r,g=O.useMemo(()=>{let p=Lr(u,l);return p==null?null:{location:{pathname:p,search:d,hash:h,state:m,key:f},navigationType:i}},[l,u,d,h,m,f,i]);return g==null?null:O.createElement(dn.Provider,{value:c},O.createElement(Ns.Provider,{children:n,value:g}))}function xN(e){let{children:t,location:n}=e;return oN(cc(t),n)}new Promise(()=>{});function cc(e,t){t===void 0&&(t=[]);let n=[];return O.Children.forEach(e,(r,i)=>{if(!O.isValidElement(r))return;let o=[...t,i];if(r.type===O.Fragment){n.push.apply(n,cc(r.props.children,o));return}r.type!==lc&&pe(!1),!r.props.index||!r.props.children||pe(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=cc(r.props.children,o)),n.push(s)}),n}/** ->>>>>>> 3f3a37a363 (Add confirmation dialog for exit maintenance action in Edge Worker Page) + */function Do(){return Do=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),O.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=lm(c,JSON.parse(s),i,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:un([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,s,i,e])}function Fs(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=O.useContext(dn),{matches:o}=O.useContext(Kn),{pathname:i}=Mo(),s=JSON.stringify(am(o,r.v7_relativeSplatPath));return O.useMemo(()=>lm(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function BT(e,t){return WT(e,t)}function WT(e,t,n,r){zo()||me(!1);let{navigator:o}=O.useContext(dn),{matches:i}=O.useContext(Kn),s=i[i.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=Mo(),u;if(t){var d;let m=typeof t=="string"?Lr(t):t;l==="/"||(d=m.pathname)!=null&&d.startsWith(l)||me(!1),u=m}else u=c;let h=u.pathname||"/",p=h;if(l!=="/"){let m=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(m.length).join("/")}let f=vT(e,{pathname:p}),g=KT(f&&f.map(m=>Object.assign({},m,{params:Object.assign({},a,m.params),pathname:un([l,o.encodeLocation?o.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?l:un([l,o.encodeLocation?o.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),i,n,r);return t&&g?O.createElement(Ls.Provider,{value:{location:Do({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:cn.Pop}},g):g}function HT(){let e=JT(),t=DT(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),n?O.createElement("pre",{style:o},n):null,null)}const UT=O.createElement(HT,null);class GT extends O.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?O.createElement(Kn.Provider,{value:this.props.routeContext},O.createElement(dm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qT(e){let{routeContext:t,match:n,children:r}=e,o=O.useContext(Vs);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),O.createElement(Kn.Provider,{value:t},r)}function KT(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let u=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||me(!1),s=s.slice(0,Math.min(s.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((u,d,h)=>{let p,f=!1,g=null,m=null;n&&(p=a&&d.route.id?a[d.route.id]:void 0,g=d.route.errorElement||UT,l&&(c<0&&h===0?(e5("route-fallback"),f=!0,m=null):c===h&&(f=!0,m=d.route.hydrateFallbackElement||null)));let b=t.concat(s.slice(0,h+1)),x=()=>{let k;return p?k=g:f?k=m:d.route.Component?k=O.createElement(d.route.Component,null):d.route.element?k=d.route.element:k=u,O.createElement(qT,{match:d,routeContext:{outlet:u,matches:b,isDataRoute:n!=null},children:k})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?O.createElement(GT,{location:n.location,revalidation:n.revalidation,component:g,error:p,children:x(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):x()},null)}var fm=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(fm||{}),gm=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(gm||{});function XT(e){let t=O.useContext(Vs);return t||me(!1),t}function YT(e){let t=O.useContext(um);return t||me(!1),t}function QT(e){let t=O.useContext(Kn);return t||me(!1),t}function pm(e){let t=QT(),n=t.matches[t.matches.length-1];return n.route.id||me(!1),n.route.id}function JT(){var e;let t=O.useContext(dm),n=YT(),r=pm();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function ZT(){let{router:e}=XT(fm.UseNavigateStable),t=pm(gm.UseNavigateStable),n=O.useRef(!1);return hm(()=>{n.current=!0}),O.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Do({fromRouteId:t},i)))},[e,t])}const mm={};function e5(e,t,n){mm[e]||(mm[e]=!0)}function t5(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function pc(e){me(!1)}function n5(e){let{basename:t="/",children:n=null,location:r,navigationType:o=cn.Pop,navigator:i,static:s=!1,future:a}=e;zo()&&me(!1);let l=t.replace(/^\/*/,"/"),c=O.useMemo(()=>({basename:l,navigator:i,static:s,future:Do({v7_relativeSplatPath:!1},a)}),[l,a,i,s]);typeof r=="string"&&(r=Lr(r));let{pathname:u="/",search:d="",hash:h="",state:p=null,key:f="default"}=r,g=O.useMemo(()=>{let m=Fr(u,l);return m==null?null:{location:{pathname:m,search:d,hash:h,state:p,key:f},navigationType:o}},[l,u,d,h,p,f,o]);return g==null?null:O.createElement(dn.Provider,{value:c},O.createElement(Ls.Provider,{children:n,value:g}))}function r5(e){let{children:t,location:n}=e;return BT(mc(t),n)}new Promise(()=>{});function mc(e,t){t===void 0&&(t=[]);let n=[];return O.Children.forEach(e,(r,o)=>{if(!O.isValidElement(r))return;let i=[...t,o];if(r.type===O.Fragment){n.push.apply(n,mc(r.props.children,i));return}r.type!==pc&&me(!1),!r.props.index||!r.props.children||me(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=mc(r.props.children,i)),n.push(s)}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. @@ -84,11 +53,7 @@ * LICENSE.md file in the root directory of this source tree. * * @license MIT -<<<<<<< HEAD - */function Fs(){return Fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function o5(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function i5(e,t){return e.button===0&&(!t||t==="_self")&&!o5(e)}const s5=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],a5=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],l5="6";try{window.__reactRouterVersion=l5}catch{}const c5=O.createContext({isTransitioning:!1}),om=O["startTransition"];function u5(e){let{basename:t,children:n,future:r,window:o}=e,i=O.useRef();i.current==null&&(i.current=gT({window:o,v5Compat:!0}));let s=i.current,[a,l]=O.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},u=O.useCallback(d=>{c&&om?om(()=>l(d)):l(d)},[l,c]);return O.useLayoutEffect(()=>s.listen(u),[s,u]),O.useEffect(()=>t5(r),[r]),O.createElement(n5,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const d5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",h5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,im=O.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,h=rm(t,s5),{basename:p}=O.useContext(dn),f,g=!1;if(typeof c=="string"&&h5.test(c)&&(f=c,d5))try{let k=new URL(window.location.href),C=c.startsWith("//")?new URL(k.protocol+c):new URL(c),S=Fr(C.pathname,p);C.origin===k.origin&&S!=null?c=S+C.search+C.hash:g=!0}catch{}let m=MT(c,{relative:o}),b=p5(c,{replace:s,state:a,target:l,preventScrollReset:u,relative:o,viewTransition:d});function x(k){r&&r(k),k.defaultPrevented||b(k)}return O.createElement("a",Fs({},h,{href:f||m,onClick:g||i?r:x,ref:n,target:l}))}),f5=O.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:s=!1,style:a,to:l,viewTransition:c,children:u}=t,d=rm(t,a5),h=Ls(l,{relative:d.relative}),p=zo(),f=O.useContext(Yp),{navigator:g,basename:m}=O.useContext(dn),b=f!=null&&m5(h)&&c===!0,x=g.encodeLocation?g.encodeLocation(h).pathname:h.pathname,k=p.pathname,C=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;o||(k=k.toLowerCase(),C=C?C.toLowerCase():null,x=x.toLowerCase()),C&&m&&(C=Fr(C,m)||C);const S=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let I=k===x||!s&&k.startsWith(x)&&k.charAt(S)==="/",_=C!=null&&(C===x||!s&&C.startsWith(x)&&C.charAt(x.length)==="/"),P={isActive:I,isPending:_,isTransitioning:b},T=I?r:void 0,N;typeof i=="function"?N=i(P):N=[i,I?"active":null,_?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let j=typeof a=="function"?a(P):a;return O.createElement(im,Fs({},d,{"aria-current":T,className:N,ref:n,style:j,to:l,viewTransition:c}),typeof u=="function"?u(P):u)});var vc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(vc||(vc={}));var sm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(sm||(sm={}));function g5(e){let t=O.useContext(As);return t||me(!1),t}function p5(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:a}=t===void 0?{}:t,l=$T(),c=zo(),u=Ls(e,{relative:s});return O.useCallback(d=>{if(i5(d,n)){d.preventDefault();let h=r!==void 0?r:_s(c)===_s(u);l(e,{replace:h,state:o,preventScrollReset:i,relative:s,viewTransition:a})}},[c,l,u,r,o,n,e,i,s,a])}function m5(e,t){t===void 0&&(t={});let n=O.useContext(c5);n==null&&me(!1);let{basename:r}=g5(vc.useViewTransitionState),o=Ls(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=Fr(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Fr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return fc(o.pathname,s)!=null||fc(o.pathname,i)!=null}const v5="UiServiceWorker",b5=e=>[v5],y5="UiServiceJobs",x5=e=>[y5];class am{constructor(){Ze(this,"_fns");this._fns=[]}eject(t){const n=this._fns.indexOf(t);n!==-1&&(this._fns=[...this._fns.slice(0,n),...this._fns.slice(n+1)])}use(t){this._fns=[...this._fns,t]}}const Ds={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"0.1.0",WITH_CREDENTIALS:!1,interceptors:{request:new am,response:new am}};class lm extends Error{constructor(n,r,o){super(o);Ze(this,"url");Ze(this,"status");Ze(this,"statusText");Ze(this,"body");Ze(this,"request");this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=n}}class C5 extends Error{constructor(t){super(t),this.name="CancelError"}get isCancelled(){return!0}}class k5{constructor(t){Ze(this,"_isResolved");Ze(this,"_isRejected");Ze(this,"_isCancelled");Ze(this,"cancelHandlers");Ze(this,"promise");Ze(this,"_resolve");Ze(this,"_reject");this._isResolved=!1,this._isRejected=!1,this._isCancelled=!1,this.cancelHandlers=[],this.promise=new Promise((n,r)=>{this._resolve=n,this._reject=r;const o=a=>{this._isResolved||this._isRejected||this._isCancelled||(this._isResolved=!0,this._resolve&&this._resolve(a))},i=a=>{this._isResolved||this._isRejected||this._isCancelled||(this._isRejected=!0,this._reject&&this._reject(a))},s=a=>{this._isResolved||this._isRejected||this._isCancelled||this.cancelHandlers.push(a)};return Object.defineProperty(s,"isResolved",{get:()=>this._isResolved}),Object.defineProperty(s,"isRejected",{get:()=>this._isRejected}),Object.defineProperty(s,"isCancelled",{get:()=>this._isCancelled}),t(o,i,s)})}get[Symbol.toStringTag](){return"Cancellable Promise"}then(t,n){return this.promise.then(t,n)}catch(t){return this.promise.catch(t)}finally(t){return this.promise.finally(t)}cancel(){if(!(this._isResolved||this._isRejected||this._isCancelled)){if(this._isCancelled=!0,this.cancelHandlers.length)try{for(const t of this.cancelHandlers)t()}catch(t){console.warn("Cancellation threw an error",t);return}this.cancelHandlers.length=0,this._reject&&this._reject(new C5("Request aborted"))}}get isCancelled(){return this._isCancelled}}const zs=e=>typeof e=="string",bc=e=>zs(e)&&e!=="",cm=e=>e instanceof Blob,S5=e=>e instanceof FormData,um=e=>e>=200&&e<300,w5=e=>{try{return btoa(e)}catch{return Buffer.from(e).toString("base64")}},E5=e=>{const t=[],n=(o,i)=>{t.push(`${encodeURIComponent(o)}=${encodeURIComponent(String(i))}`)},r=(o,i)=>{i!=null&&(i instanceof Date?n(o,i.toISOString()):Array.isArray(i)?i.forEach(s=>r(o,s)):typeof i=="object"?Object.entries(i).forEach(([s,a])=>r(`${o}[${s}]`,a)):n(o,i))};return Object.entries(e).forEach(([o,i])=>r(o,i)),t.length?`?${t.join("&")}`:""},O5=(e,t)=>{const n=encodeURI,r=t.url.replace("{api-version}",e.VERSION).replace(/{(.*?)}/g,(i,s)=>{var a;return(a=t.path)!=null&&a.hasOwnProperty(s)?n(String(t.path[s])):i}),o=e.BASE+r;return t.query?o+E5(t.query):o},I5=e=>{if(e.formData){const t=new FormData,n=(r,o)=>{zs(o)||cm(o)?t.append(r,o):t.append(r,JSON.stringify(o))};return Object.entries(e.formData).filter(([,r])=>r!=null).forEach(([r,o])=>{Array.isArray(o)?o.forEach(i=>n(r,i)):n(r,o)}),t}},Ms=async(e,t)=>t,P5=async(e,t)=>{const[n,r,o,i]=await Promise.all([Ms(t,e.TOKEN),Ms(t,e.USERNAME),Ms(t,e.PASSWORD),Ms(t,e.HEADERS)]),s=Object.entries({Accept:"application/json",...i,...t.headers}).filter(([,a])=>a!=null).reduce((a,[l,c])=>({...a,[l]:String(c)}),{});if(bc(n)&&(s.Authorization=`Bearer ${n}`),bc(r)&&bc(o)){const a=w5(`${r}:${o}`);s.Authorization=`Basic ${a}`}return t.body!==void 0?t.mediaType?s["Content-Type"]=t.mediaType:cm(t.body)?s["Content-Type"]=t.body.type||"application/octet-stream":zs(t.body)?s["Content-Type"]="text/plain":S5(t.body)||(s["Content-Type"]="application/json"):t.formData!==void 0&&t.mediaType&&(s["Content-Type"]=t.mediaType),s},R5=e=>{if(e.body)return e.body},T5=async(e,t,n,r,o,i,s,a)=>{const l=new AbortController;let c={data:r??o,headers:i,method:t.method,signal:l.signal,url:n,withCredentials:e.WITH_CREDENTIALS};s(()=>l.abort());for(const u of e.interceptors.request._fns)c=await u(c);try{return await a.request(c)}catch(u){const d=u;if(d.response)return d.response;throw u}},N5=(e,t)=>{if(t){const n=e.headers[t];if(zs(n))return n}},_5=e=>{if(e.status!==204)return e.data},A5=(e,t)=>{const r={400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required",...e.errors}[t.status];if(r)throw new lm(e,t,r);if(!t.ok){const o=t.status??"unknown",i=t.statusText??"unknown",s=(()=>{try{return JSON.stringify(t.body,null,2)}catch{return}})();throw new lm(e,t,`Generic Error: status: ${o}; status text: ${i}; body: ${s}`)}},$s=(e,t,n=pe)=>new k5(async(r,o,i)=>{try{const s=O5(e,t),a=I5(t),l=R5(t),c=await P5(e,t);if(!i.isCancelled){let u=await T5(e,t,s,l,a,c,i,n);for(const g of e.interceptors.response._fns)u=await g(u);const d=_5(u),h=N5(u,t.responseHeader);let p=d;t.responseTransformer&&um(u.status)&&(p=await t.responseTransformer(d));const f={url:s,ok:um(u.status),status:u.status,statusText:u.statusText,body:h??p};A5(t,f),r(f.body)}}catch(s){o(s)}});class js{static worker(){return $s(Ds,{method:"GET",url:"/edge_worker/ui/worker"})}static jobs(){return $s(Ds,{method:"GET",url:"/edge_worker/ui/jobs"})}static requestWorkerMaintenance(t){return $s(Ds,{method:"POST",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},body:t.requestBody,mediaType:"application/json",errors:{422:"Validation Error"}})}static exitWorkerMaintenance(t){return $s(Ds,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}}const V5=(e,t)=>Jg({queryKey:b5(),queryFn:()=>js.worker(),...t}),L5=(e,t)=>Jg({queryKey:x5(),queryFn:()=>js.jobs(),...t}),F5=e=>Zg({mutationFn:({requestBody:t,workerName:n})=>js.requestWorkerMaintenance({requestBody:t,workerName:n}),...e}),D5=e=>Zg({mutationFn:({workerName:t})=>js.exitWorkerMaintenance({workerName:t}),...e});function Bs(e){const t=new Date(e);if(!Number.isNaN(t.valueOf()))return t;const n=String(e).match(/\d+/g);if(n==null||n.length<=2)return t;{const[r,o,...i]=n.map(l=>parseInt(l)),s=[r,o-1,...i];return new Date(Date.UTC(...s))}}const Mo=(e,t,n)=>{const r=e!==1?t+"s":t;return e+" "+r+" "+n};function yc(){return yc=Object.assign?Object.assign.bind():function(e){for(var t=1;tDate.now();function Hs({date:e,formatter:t,component:n="time",live:r=!0,minPeriod:o=0,maxPeriod:i=Ws,title:s,now:a=z5,...l}){const[c,u]=w.useState(a());w.useEffect(()=>{if(!r)return;const _=(()=>{const P=Bs(e).valueOf();if(!P)return console.warn("[react-timeago] Invalid Date provided"),0;const T=Math.round(Math.abs(c-P)/1e3),N=T<$o?1e3:T{u(a())},j):0})();return()=>{_&&clearTimeout(_)}},[e,r,i,o,a,c]),w.useEffect(()=>{u(a())},[e]);const d=n,h=Bs(e).valueOf();if(!h)return null;const p=Math.round(Math.abs(c-h)/1e3),f=h"u"?typeof e=="string"?e:Bs(e).toISOString().substring(0,16).replace("T"," "):s,x=d==="time"?{...l,dateTime:Bs(e).toISOString()}:l,k=(I=I,_=_,P=P,T=h,N=Mo,j=j)=>Mo(I,_,P),C=t||Mo;let S;try{S=C(g,m,f,h,k,a),S||(S=Mo(g,m,f,h,k,a))}catch(I){console.error("[react-timeago] Formatter threw an error:",I),S=Mo(g,m,f)}return O.createElement(d,yc({},x,{title:b}),S)}var fm={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},gm=w.createContext&&w.createContext(fm),M5=["attr","size","title"];function $5(e,t){if(e==null)return{};var n=j5(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function j5(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Us(){return Us=Object.assign?Object.assign.bind():function(e){for(var t=1;tw.createElement(t.tag,Gs({key:n},t.attr),mm(t.child)))}function ye(e){return t=>w.createElement(U5,Us({attr:Gs({},e.attr)},t),mm(e.child))}function U5(e){var t=n=>{var{attr:r,size:o,title:i}=e,s=$5(e,M5),a=o||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),w.createElement("svg",Us({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:l,style:Gs(Gs({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&w.createElement("title",null,i),e.children)};return gm!==void 0?w.createElement(gm.Consumer,null,n=>t(n)):t(fm)}function G5(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 10v4h4"},child:[]},{tag:"path",attr:{d:"m11 14 1.535-1.605a5 5 0 0 1 8 1.5"},child:[]},{tag:"path",attr:{d:"M16 2v4"},child:[]},{tag:"path",attr:{d:"m21 18-1.535 1.605a5 5 0 0 1-8-1.5"},child:[]},{tag:"path",attr:{d:"M21 22v-4h-4"},child:[]},{tag:"path",attr:{d:"M21 8.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4.3"},child:[]},{tag:"path",attr:{d:"M3 10h4"},child:[]},{tag:"path",attr:{d:"M8 2v4"},child:[]}]})(e)}function q5(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 6 9 17l-5-5"},child:[]}]})(e)}function vm(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.1 2.182a10 10 0 0 1 3.8 0"},child:[]},{tag:"path",attr:{d:"M13.9 21.818a10 10 0 0 1-3.8 0"},child:[]},{tag:"path",attr:{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7"},child:[]},{tag:"path",attr:{d:"M2.182 13.9a10 10 0 0 1 0-3.8"},child:[]},{tag:"path",attr:{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69"},child:[]},{tag:"path",attr:{d:"M21.818 10.1a10 10 0 0 1 0 3.8"},child:[]},{tag:"path",attr:{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69"},child:[]},{tag:"path",attr:{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7"},child:[]}]})(e)}function K5(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 2a10 10 0 0 1 7.38 16.75"},child:[]},{tag:"path",attr:{d:"m16 12-4-4-4 4"},child:[]},{tag:"path",attr:{d:"M12 16V8"},child:[]},{tag:"path",attr:{d:"M2.5 8.875a10 10 0 0 0-.5 3"},child:[]},{tag:"path",attr:{d:"M2.83 16a10 10 0 0 0 2.43 3.4"},child:[]},{tag:"path",attr:{d:"M4.636 5.235a10 10 0 0 1 .891-.857"},child:[]},{tag:"path",attr:{d:"M8.644 21.42a10 10 0 0 0 7.631-.38"},child:[]}]})(e)}function X5(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m15 14 5-5-5-5"},child:[]},{tag:"path",attr:{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13"},child:[]}]})(e)}function Y5(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 6 6 18"},child:[]},{tag:"path",attr:{d:"m6 6 12 12"},child:[]}]})(e)}const Q5=w.forwardRef((e,t)=>v.jsx(gs,{"aria-label":"Close",ref:t,variant:"ghost",...e,children:e.children??v.jsx(Y5,{})})),J5=w.forwardRef((e,t)=>{const{children:n,closable:r,endElement:o,icon:i,onClose:s,startElement:a,title:l,...c}=e;return v.jsxs(wI,{ref:t,...c,alignItems:"center",children:[a??v.jsx(PI,{children:i}),n?v.jsxs(OI,{children:[v.jsx(kg,{children:l}),v.jsx(EI,{children:n})]}):v.jsx(kg,{flex:"1",children:l}),o,r?v.jsx(Q5,{alignSelf:"flex-start",insetEnd:"-2",onClick:s,pos:"relative",size:"sm",top:"-2"}):void 0]})});/*! -======= - */function _s(){return _s=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function CN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function SN(e,t){return e.button===0&&(!t||t==="_self")&&!CN(e)}const wN=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],EN=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],kN="6";try{window.__reactRouterVersion=kN}catch{}const ON=O.createContext({isTransitioning:!1}),lm=O["startTransition"];function IN(e){let{basename:t,children:n,future:r,window:i}=e,o=O.useRef();o.current==null&&(o.current=N2({window:i,v5Compat:!0}));let s=o.current,[a,l]=O.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},u=O.useCallback(d=>{c&&lm?lm(()=>l(d)):l(d)},[l,c]);return O.useLayoutEffect(()=>s.listen(u),[s,u]),O.useEffect(()=>bN(r),[r]),O.createElement(yN,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const PN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",RN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,TN=O.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,h=am(t,wN),{basename:m}=O.useContext(dn),f,g=!1;if(typeof c=="string"&&RN.test(c)&&(f=c,PN))try{let S=new URL(window.location.href),C=c.startsWith("//")?new URL(S.protocol+c):new URL(c),w=Lr(C.pathname,m);C.origin===S.origin&&w!=null?c=w+C.search+C.hash:g=!0}catch{}let p=nN(c,{relative:i}),b=_N(c,{replace:s,state:a,target:l,preventScrollReset:u,relative:i,viewTransition:d});function x(S){r&&r(S),S.defaultPrevented||b(S)}return O.createElement("a",_s({},h,{href:f||p,onClick:g||o?r:x,ref:n,target:l}))}),NN=O.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:s=!1,style:a,to:l,viewTransition:c,children:u}=t,d=am(t,EN),h=As(l,{relative:d.relative}),m=zi(),f=O.useContext(em),{navigator:g,basename:p}=O.useContext(dn),b=f!=null&&VN(h)&&c===!0,x=g.encodeLocation?g.encodeLocation(h).pathname:h.pathname,S=m.pathname,C=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;i||(S=S.toLowerCase(),C=C?C.toLowerCase():null,x=x.toLowerCase()),C&&p&&(C=Lr(C,p)||C);const w=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let P=S===x||!s&&S.startsWith(x)&&S.charAt(w)==="/",_=C!=null&&(C===x||!s&&C.startsWith(x)&&C.charAt(x.length)==="/"),R={isActive:P,isPending:_,isTransitioning:b},N=P?r:void 0,T;typeof o=="function"?T=o(R):T=[o,P?"active":null,_?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let j=typeof a=="function"?a(R):a;return O.createElement(TN,_s({},d,{"aria-current":N,className:T,ref:n,style:j,to:l,viewTransition:c}),typeof u=="function"?u(R):u)});var uc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(uc||(uc={}));var cm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(cm||(cm={}));function AN(e){let t=O.useContext(Ts);return t||pe(!1),t}function _N(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:a}=t===void 0?{}:t,l=rN(),c=zi(),u=As(e,{relative:s});return O.useCallback(d=>{if(SN(d,n)){d.preventDefault();let h=r!==void 0?r:Rs(c)===Rs(u);l(e,{replace:h,state:i,preventScrollReset:o,relative:s,viewTransition:a})}},[c,l,u,r,i,n,e,o,s,a])}function VN(e,t){t===void 0&&(t={});let n=O.useContext(ON);n==null&&pe(!1);let{basename:r}=AN(uc.useViewTransitionState),i=As(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=Lr(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Lr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return sc(i.pathname,s)!=null||sc(i.pathname,o)!=null}const FN="UiServiceWorker",LN=e=>[FN],DN="UiServiceJobs",zN=e=>[DN];class um{constructor(){Je(this,"_fns");this._fns=[]}eject(t){const n=this._fns.indexOf(t);n!==-1&&(this._fns=[...this._fns.slice(0,n),...this._fns.slice(n+1)])}use(t){this._fns=[...this._fns,t]}}const Vs={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"0.1.0",WITH_CREDENTIALS:!1,interceptors:{request:new um,response:new um}};class dm extends Error{constructor(n,r,i){super(i);Je(this,"url");Je(this,"status");Je(this,"statusText");Je(this,"body");Je(this,"request");this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=n}}class MN extends Error{constructor(t){super(t),this.name="CancelError"}get isCancelled(){return!0}}class $N{constructor(t){Je(this,"_isResolved");Je(this,"_isRejected");Je(this,"_isCancelled");Je(this,"cancelHandlers");Je(this,"promise");Je(this,"_resolve");Je(this,"_reject");this._isResolved=!1,this._isRejected=!1,this._isCancelled=!1,this.cancelHandlers=[],this.promise=new Promise((n,r)=>{this._resolve=n,this._reject=r;const i=a=>{this._isResolved||this._isRejected||this._isCancelled||(this._isResolved=!0,this._resolve&&this._resolve(a))},o=a=>{this._isResolved||this._isRejected||this._isCancelled||(this._isRejected=!0,this._reject&&this._reject(a))},s=a=>{this._isResolved||this._isRejected||this._isCancelled||this.cancelHandlers.push(a)};return Object.defineProperty(s,"isResolved",{get:()=>this._isResolved}),Object.defineProperty(s,"isRejected",{get:()=>this._isRejected}),Object.defineProperty(s,"isCancelled",{get:()=>this._isCancelled}),t(i,o,s)})}get[Symbol.toStringTag](){return"Cancellable Promise"}then(t,n){return this.promise.then(t,n)}catch(t){return this.promise.catch(t)}finally(t){return this.promise.finally(t)}cancel(){if(!(this._isResolved||this._isRejected||this._isCancelled)){if(this._isCancelled=!0,this.cancelHandlers.length)try{for(const t of this.cancelHandlers)t()}catch(t){console.warn("Cancellation threw an error",t);return}this.cancelHandlers.length=0,this._reject&&this._reject(new MN("Request aborted"))}}get isCancelled(){return this._isCancelled}}const Fs=e=>typeof e=="string",dc=e=>Fs(e)&&e!=="",hm=e=>e instanceof Blob,BN=e=>e instanceof FormData,fm=e=>e>=200&&e<300,jN=e=>{try{return btoa(e)}catch{return Buffer.from(e).toString("base64")}},WN=e=>{const t=[],n=(i,o)=>{t.push(`${encodeURIComponent(i)}=${encodeURIComponent(String(o))}`)},r=(i,o)=>{o!=null&&(o instanceof Date?n(i,o.toISOString()):Array.isArray(o)?o.forEach(s=>r(i,s)):typeof o=="object"?Object.entries(o).forEach(([s,a])=>r(`${i}[${s}]`,a)):n(i,o))};return Object.entries(e).forEach(([i,o])=>r(i,o)),t.length?`?${t.join("&")}`:""},HN=(e,t)=>{const n=encodeURI,r=t.url.replace("{api-version}",e.VERSION).replace(/{(.*?)}/g,(o,s)=>{var a;return(a=t.path)!=null&&a.hasOwnProperty(s)?n(String(t.path[s])):o}),i=e.BASE+r;return t.query?i+WN(t.query):i},UN=e=>{if(e.formData){const t=new FormData,n=(r,i)=>{Fs(i)||hm(i)?t.append(r,i):t.append(r,JSON.stringify(i))};return Object.entries(e.formData).filter(([,r])=>r!=null).forEach(([r,i])=>{Array.isArray(i)?i.forEach(o=>n(r,o)):n(r,i)}),t}},Ls=async(e,t)=>t,GN=async(e,t)=>{const[n,r,i,o]=await Promise.all([Ls(t,e.TOKEN),Ls(t,e.USERNAME),Ls(t,e.PASSWORD),Ls(t,e.HEADERS)]),s=Object.entries({Accept:"application/json",...o,...t.headers}).filter(([,a])=>a!=null).reduce((a,[l,c])=>({...a,[l]:String(c)}),{});if(dc(n)&&(s.Authorization=`Bearer ${n}`),dc(r)&&dc(i)){const a=jN(`${r}:${i}`);s.Authorization=`Basic ${a}`}return t.body!==void 0?t.mediaType?s["Content-Type"]=t.mediaType:hm(t.body)?s["Content-Type"]=t.body.type||"application/octet-stream":Fs(t.body)?s["Content-Type"]="text/plain":BN(t.body)||(s["Content-Type"]="application/json"):t.formData!==void 0&&t.mediaType&&(s["Content-Type"]=t.mediaType),s},qN=e=>{if(e.body)return e.body},KN=async(e,t,n,r,i,o,s,a)=>{const l=new AbortController;let c={data:r??i,headers:o,method:t.method,signal:l.signal,url:n,withCredentials:e.WITH_CREDENTIALS};s(()=>l.abort());for(const u of e.interceptors.request._fns)c=await u(c);try{return await a.request(c)}catch(u){const d=u;if(d.response)return d.response;throw u}},XN=(e,t)=>{if(t){const n=e.headers[t];if(Fs(n))return n}},YN=e=>{if(e.status!==204)return e.data},QN=(e,t)=>{const r={400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required",...e.errors}[t.status];if(r)throw new dm(e,t,r);if(!t.ok){const i=t.status??"unknown",o=t.statusText??"unknown",s=(()=>{try{return JSON.stringify(t.body,null,2)}catch{return}})();throw new dm(e,t,`Generic Error: status: ${i}; status text: ${o}; body: ${s}`)}},Ds=(e,t,n=ge)=>new $N(async(r,i,o)=>{try{const s=HN(e,t),a=UN(t),l=qN(t),c=await GN(e,t);if(!o.isCancelled){let u=await KN(e,t,s,l,a,c,o,n);for(const g of e.interceptors.response._fns)u=await g(u);const d=YN(u),h=XN(u,t.responseHeader);let m=d;t.responseTransformer&&fm(u.status)&&(m=await t.responseTransformer(d));const f={url:s,ok:fm(u.status),status:u.status,statusText:u.statusText,body:h??m};QN(t,f),r(f.body)}}catch(s){i(s)}});class zs{static worker(){return Ds(Vs,{method:"GET",url:"/edge_worker/ui/worker"})}static jobs(){return Ds(Vs,{method:"GET",url:"/edge_worker/ui/jobs"})}static requestWorkerMaintenance(t){return Ds(Vs,{method:"POST",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},body:t.requestBody,mediaType:"application/json",errors:{422:"Validation Error"}})}static exitWorkerMaintenance(t){return Ds(Vs,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}}const JN=(e,t)=>np({queryKey:LN(),queryFn:()=>zs.worker(),...t}),ZN=(e,t)=>np({queryKey:zN(),queryFn:()=>zs.jobs(),...t}),eA=e=>rp({mutationFn:({requestBody:t,workerName:n})=>zs.requestWorkerMaintenance({requestBody:t,workerName:n}),...e}),tA=e=>rp({mutationFn:({workerName:t})=>zs.exitWorkerMaintenance({workerName:t}),...e});var gm={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},pm=E.createContext&&E.createContext(gm),nA=["attr","size","title"];function rA(e,t){if(e==null)return{};var n=iA(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iA(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ms(){return Ms=Object.assign?Object.assign.bind():function(e){for(var t=1;tE.createElement(t.tag,$s({key:n},t.attr),vm(t.child)))}function be(e){return t=>E.createElement(lA,Ms({attr:$s({},e.attr)},t),vm(e.child))}function lA(e){var t=n=>{var{attr:r,size:i,title:o}=e,s=rA(e,nA),a=i||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),E.createElement("svg",Ms({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:l,style:$s($s({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&E.createElement("title",null,o),e.children)};return pm!==void 0?E.createElement(pm.Consumer,null,n=>t(n)):t(gm)}function cA(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 10v4h4"},child:[]},{tag:"path",attr:{d:"m11 14 1.535-1.605a5 5 0 0 1 8 1.5"},child:[]},{tag:"path",attr:{d:"M16 2v4"},child:[]},{tag:"path",attr:{d:"m21 18-1.535 1.605a5 5 0 0 1-8-1.5"},child:[]},{tag:"path",attr:{d:"M21 22v-4h-4"},child:[]},{tag:"path",attr:{d:"M21 8.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4.3"},child:[]},{tag:"path",attr:{d:"M3 10h4"},child:[]},{tag:"path",attr:{d:"M8 2v4"},child:[]}]})(e)}function uA(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 6 9 17l-5-5"},child:[]}]})(e)}function bm(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.1 2.182a10 10 0 0 1 3.8 0"},child:[]},{tag:"path",attr:{d:"M13.9 21.818a10 10 0 0 1-3.8 0"},child:[]},{tag:"path",attr:{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7"},child:[]},{tag:"path",attr:{d:"M2.182 13.9a10 10 0 0 1 0-3.8"},child:[]},{tag:"path",attr:{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69"},child:[]},{tag:"path",attr:{d:"M21.818 10.1a10 10 0 0 1 0 3.8"},child:[]},{tag:"path",attr:{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69"},child:[]},{tag:"path",attr:{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7"},child:[]}]})(e)}function dA(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 2a10 10 0 0 1 7.38 16.75"},child:[]},{tag:"path",attr:{d:"m16 12-4-4-4 4"},child:[]},{tag:"path",attr:{d:"M12 16V8"},child:[]},{tag:"path",attr:{d:"M2.5 8.875a10 10 0 0 0-.5 3"},child:[]},{tag:"path",attr:{d:"M2.83 16a10 10 0 0 0 2.43 3.4"},child:[]},{tag:"path",attr:{d:"M4.636 5.235a10 10 0 0 1 .891-.857"},child:[]},{tag:"path",attr:{d:"M8.644 21.42a10 10 0 0 0 7.631-.38"},child:[]}]})(e)}function hA(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m15 14 5-5-5-5"},child:[]},{tag:"path",attr:{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13"},child:[]}]})(e)}function fA(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 6 6 18"},child:[]},{tag:"path",attr:{d:"m6 6 12 12"},child:[]}]})(e)}const gA=E.forwardRef((e,t)=>v.jsx(hs,{"aria-label":"Close",ref:t,variant:"ghost",...e,children:e.children??v.jsx(fA,{})})),pA=E.forwardRef((e,t)=>{const{children:n,closable:r,endElement:i,icon:o,onClose:s,startElement:a,title:l,...c}=e;return v.jsxs(ZP,{ref:t,...c,alignItems:"center",children:[a??v.jsx(rR,{children:o}),n?v.jsxs(tR,{children:[v.jsx(pg,{children:l}),v.jsx(eR,{children:n})]}):v.jsx(pg,{flex:"1",children:l}),i,r?v.jsx(gA,{alignSelf:"flex-start",insetEnd:"-2",onClick:s,pos:"relative",size:"sm",top:"-2"}):void 0]})});/*! ->>>>>>> 3f3a37a363 (Add confirmation dialog for exit maintenance action in Edge Worker Page) + */function Ds(){return Ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function o5(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function i5(e,t){return e.button===0&&(!t||t==="_self")&&!o5(e)}const s5=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],a5=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],l5="6";try{window.__reactRouterVersion=l5}catch{}const c5=O.createContext({isTransitioning:!1}),bm=O["startTransition"];function u5(e){let{basename:t,children:n,future:r,window:o}=e,i=O.useRef();i.current==null&&(i.current=gT({window:o,v5Compat:!0}));let s=i.current,[a,l]=O.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},u=O.useCallback(d=>{c&&bm?bm(()=>l(d)):l(d)},[l,c]);return O.useLayoutEffect(()=>s.listen(u),[s,u]),O.useEffect(()=>t5(r),[r]),O.createElement(n5,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const d5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",h5=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ym=O.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d}=t,h=vm(t,s5),{basename:p}=O.useContext(dn),f,g=!1;if(typeof c=="string"&&h5.test(c)&&(f=c,d5))try{let k=new URL(window.location.href),C=c.startsWith("//")?new URL(k.protocol+c):new URL(c),S=Fr(C.pathname,p);C.origin===k.origin&&S!=null?c=S+C.search+C.hash:g=!0}catch{}let m=MT(c,{relative:o}),b=p5(c,{replace:s,state:a,target:l,preventScrollReset:u,relative:o,viewTransition:d});function x(k){r&&r(k),k.defaultPrevented||b(k)}return O.createElement("a",Ds({},h,{href:f||m,onClick:g||i?r:x,ref:n,target:l}))}),f5=O.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:s=!1,style:a,to:l,viewTransition:c,children:u}=t,d=vm(t,a5),h=Fs(l,{relative:d.relative}),p=Mo(),f=O.useContext(um),{navigator:g,basename:m}=O.useContext(dn),b=f!=null&&m5(h)&&c===!0,x=g.encodeLocation?g.encodeLocation(h).pathname:h.pathname,k=p.pathname,C=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;o||(k=k.toLowerCase(),C=C?C.toLowerCase():null,x=x.toLowerCase()),C&&m&&(C=Fr(C,m)||C);const S=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let I=k===x||!s&&k.startsWith(x)&&k.charAt(S)==="/",_=C!=null&&(C===x||!s&&C.startsWith(x)&&C.charAt(x.length)==="/"),P={isActive:I,isPending:_,isTransitioning:b},T=I?r:void 0,N;typeof i=="function"?N=i(P):N=[i,I?"active":null,_?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let j=typeof a=="function"?a(P):a;return O.createElement(ym,Ds({},d,{"aria-current":T,className:N,ref:n,style:j,to:l,viewTransition:c}),typeof u=="function"?u(P):u)});var vc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(vc||(vc={}));var xm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(xm||(xm={}));function g5(e){let t=O.useContext(Vs);return t||me(!1),t}function p5(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:a}=t===void 0?{}:t,l=$T(),c=Mo(),u=Fs(e,{relative:s});return O.useCallback(d=>{if(i5(d,n)){d.preventDefault();let h=r!==void 0?r:As(c)===As(u);l(e,{replace:h,state:o,preventScrollReset:i,relative:s,viewTransition:a})}},[c,l,u,r,o,n,e,i,s,a])}function m5(e,t){t===void 0&&(t={});let n=O.useContext(c5);n==null&&me(!1);let{basename:r}=g5(vc.useViewTransitionState),o=Fs(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=Fr(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Fr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return fc(o.pathname,s)!=null||fc(o.pathname,i)!=null}const v5="UiServiceWorker",b5=e=>[v5],y5="UiServiceJobs",x5=e=>[y5];class Cm{constructor(){Ze(this,"_fns");this._fns=[]}eject(t){const n=this._fns.indexOf(t);n!==-1&&(this._fns=[...this._fns.slice(0,n),...this._fns.slice(n+1)])}use(t){this._fns=[...this._fns,t]}}const zs={BASE:"",CREDENTIALS:"include",ENCODE_PATH:void 0,HEADERS:void 0,PASSWORD:void 0,TOKEN:void 0,USERNAME:void 0,VERSION:"0.1.0",WITH_CREDENTIALS:!1,interceptors:{request:new Cm,response:new Cm}};class km extends Error{constructor(n,r,o){super(o);Ze(this,"url");Ze(this,"status");Ze(this,"statusText");Ze(this,"body");Ze(this,"request");this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=n}}class C5 extends Error{constructor(t){super(t),this.name="CancelError"}get isCancelled(){return!0}}class k5{constructor(t){Ze(this,"_isResolved");Ze(this,"_isRejected");Ze(this,"_isCancelled");Ze(this,"cancelHandlers");Ze(this,"promise");Ze(this,"_resolve");Ze(this,"_reject");this._isResolved=!1,this._isRejected=!1,this._isCancelled=!1,this.cancelHandlers=[],this.promise=new Promise((n,r)=>{this._resolve=n,this._reject=r;const o=a=>{this._isResolved||this._isRejected||this._isCancelled||(this._isResolved=!0,this._resolve&&this._resolve(a))},i=a=>{this._isResolved||this._isRejected||this._isCancelled||(this._isRejected=!0,this._reject&&this._reject(a))},s=a=>{this._isResolved||this._isRejected||this._isCancelled||this.cancelHandlers.push(a)};return Object.defineProperty(s,"isResolved",{get:()=>this._isResolved}),Object.defineProperty(s,"isRejected",{get:()=>this._isRejected}),Object.defineProperty(s,"isCancelled",{get:()=>this._isCancelled}),t(o,i,s)})}get[Symbol.toStringTag](){return"Cancellable Promise"}then(t,n){return this.promise.then(t,n)}catch(t){return this.promise.catch(t)}finally(t){return this.promise.finally(t)}cancel(){if(!(this._isResolved||this._isRejected||this._isCancelled)){if(this._isCancelled=!0,this.cancelHandlers.length)try{for(const t of this.cancelHandlers)t()}catch(t){console.warn("Cancellation threw an error",t);return}this.cancelHandlers.length=0,this._reject&&this._reject(new C5("Request aborted"))}}get isCancelled(){return this._isCancelled}}const Ms=e=>typeof e=="string",bc=e=>Ms(e)&&e!=="",Sm=e=>e instanceof Blob,S5=e=>e instanceof FormData,wm=e=>e>=200&&e<300,w5=e=>{try{return btoa(e)}catch{return Buffer.from(e).toString("base64")}},E5=e=>{const t=[],n=(o,i)=>{t.push(`${encodeURIComponent(o)}=${encodeURIComponent(String(i))}`)},r=(o,i)=>{i!=null&&(i instanceof Date?n(o,i.toISOString()):Array.isArray(i)?i.forEach(s=>r(o,s)):typeof i=="object"?Object.entries(i).forEach(([s,a])=>r(`${o}[${s}]`,a)):n(o,i))};return Object.entries(e).forEach(([o,i])=>r(o,i)),t.length?`?${t.join("&")}`:""},O5=(e,t)=>{const n=encodeURI,r=t.url.replace("{api-version}",e.VERSION).replace(/{(.*?)}/g,(i,s)=>{var a;return(a=t.path)!=null&&a.hasOwnProperty(s)?n(String(t.path[s])):i}),o=e.BASE+r;return t.query?o+E5(t.query):o},I5=e=>{if(e.formData){const t=new FormData,n=(r,o)=>{Ms(o)||Sm(o)?t.append(r,o):t.append(r,JSON.stringify(o))};return Object.entries(e.formData).filter(([,r])=>r!=null).forEach(([r,o])=>{Array.isArray(o)?o.forEach(i=>n(r,i)):n(r,o)}),t}},$s=async(e,t)=>t,P5=async(e,t)=>{const[n,r,o,i]=await Promise.all([$s(t,e.TOKEN),$s(t,e.USERNAME),$s(t,e.PASSWORD),$s(t,e.HEADERS)]),s=Object.entries({Accept:"application/json",...i,...t.headers}).filter(([,a])=>a!=null).reduce((a,[l,c])=>({...a,[l]:String(c)}),{});if(bc(n)&&(s.Authorization=`Bearer ${n}`),bc(r)&&bc(o)){const a=w5(`${r}:${o}`);s.Authorization=`Basic ${a}`}return t.body!==void 0?t.mediaType?s["Content-Type"]=t.mediaType:Sm(t.body)?s["Content-Type"]=t.body.type||"application/octet-stream":Ms(t.body)?s["Content-Type"]="text/plain":S5(t.body)||(s["Content-Type"]="application/json"):t.formData!==void 0&&t.mediaType&&(s["Content-Type"]=t.mediaType),s},R5=e=>{if(e.body)return e.body},T5=async(e,t,n,r,o,i,s,a)=>{const l=new AbortController;let c={data:r??o,headers:i,method:t.method,signal:l.signal,url:n,withCredentials:e.WITH_CREDENTIALS};s(()=>l.abort());for(const u of e.interceptors.request._fns)c=await u(c);try{return await a.request(c)}catch(u){const d=u;if(d.response)return d.response;throw u}},N5=(e,t)=>{if(t){const n=e.headers[t];if(Ms(n))return n}},_5=e=>{if(e.status!==204)return e.data},A5=(e,t)=>{const r={400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"Im a teapot",421:"Misdirected Request",422:"Unprocessable Content",423:"Locked",424:"Failed Dependency",425:"Too Early",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",510:"Not Extended",511:"Network Authentication Required",...e.errors}[t.status];if(r)throw new km(e,t,r);if(!t.ok){const o=t.status??"unknown",i=t.statusText??"unknown",s=(()=>{try{return JSON.stringify(t.body,null,2)}catch{return}})();throw new km(e,t,`Generic Error: status: ${o}; status text: ${i}; body: ${s}`)}},js=(e,t,n=pe)=>new k5(async(r,o,i)=>{try{const s=O5(e,t),a=I5(t),l=R5(t),c=await P5(e,t);if(!i.isCancelled){let u=await T5(e,t,s,l,a,c,i,n);for(const g of e.interceptors.response._fns)u=await g(u);const d=_5(u),h=N5(u,t.responseHeader);let p=d;t.responseTransformer&&wm(u.status)&&(p=await t.responseTransformer(d));const f={url:s,ok:wm(u.status),status:u.status,statusText:u.statusText,body:h??p};A5(t,f),r(f.body)}}catch(s){o(s)}});class Bs{static worker(){return js(zs,{method:"GET",url:"/edge_worker/ui/worker"})}static jobs(){return js(zs,{method:"GET",url:"/edge_worker/ui/jobs"})}static requestWorkerMaintenance(t){return js(zs,{method:"POST",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},body:t.requestBody,mediaType:"application/json",errors:{422:"Validation Error"}})}static exitWorkerMaintenance(t){return js(zs,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}}const V5=(e,t)=>hp({queryKey:b5(),queryFn:()=>Bs.worker(),...t}),L5=(e,t)=>hp({queryKey:x5(),queryFn:()=>Bs.jobs(),...t}),F5=e=>fp({mutationFn:({requestBody:t,workerName:n})=>Bs.requestWorkerMaintenance({requestBody:t,workerName:n}),...e}),D5=e=>fp({mutationFn:({workerName:t})=>Bs.exitWorkerMaintenance({workerName:t}),...e});function Ws(e){const t=new Date(e);if(!Number.isNaN(t.valueOf()))return t;const n=String(e).match(/\d+/g);if(n==null||n.length<=2)return t;{const[r,o,...i]=n.map(l=>parseInt(l)),s=[r,o-1,...i];return new Date(Date.UTC(...s))}}const $o=(e,t,n)=>{const r=e!==1?t+"s":t;return e+" "+r+" "+n};function yc(){return yc=Object.assign?Object.assign.bind():function(e){for(var t=1;tDate.now();function Us({date:e,formatter:t,component:n="time",live:r=!0,minPeriod:o=0,maxPeriod:i=Hs,title:s,now:a=z5,...l}){const[c,u]=w.useState(a());w.useEffect(()=>{if(!r)return;const _=(()=>{const P=Ws(e).valueOf();if(!P)return console.warn("[react-timeago] Invalid Date provided"),0;const T=Math.round(Math.abs(c-P)/1e3),N=T{u(a())},j):0})();return()=>{_&&clearTimeout(_)}},[e,r,i,o,a,c]),w.useEffect(()=>{u(a())},[e]);const d=n,h=Ws(e).valueOf();if(!h)return null;const p=Math.round(Math.abs(c-h)/1e3),f=h"u"?typeof e=="string"?e:Ws(e).toISOString().substring(0,16).replace("T"," "):s,x=d==="time"?{...l,dateTime:Ws(e).toISOString()}:l,k=(I=I,_=_,P=P,T=h,N=$o,j=j)=>$o(I,_,P),C=t||$o;let S;try{S=C(g,m,f,h,k,a),S||(S=$o(g,m,f,h,k,a))}catch(I){console.error("[react-timeago] Formatter threw an error:",I),S=$o(g,m,f)}return O.createElement(d,yc({},x,{title:b}),S)}var Im={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Pm=w.createContext&&w.createContext(Im),M5=["attr","size","title"];function $5(e,t){if(e==null)return{};var n=j5(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function j5(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Gs(){return Gs=Object.assign?Object.assign.bind():function(e){for(var t=1;tw.createElement(t.tag,qs({key:n},t.attr),Tm(t.child)))}function ye(e){return t=>w.createElement(U5,Gs({attr:qs({},e.attr)},t),Tm(e.child))}function U5(e){var t=n=>{var{attr:r,size:o,title:i}=e,s=$5(e,M5),a=o||n.size||"1em",l;return n.className&&(l=n.className),e.className&&(l=(l?l+" ":"")+e.className),w.createElement("svg",Gs({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,s,{className:l,style:qs(qs({color:e.color||n.color},n.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&w.createElement("title",null,i),e.children)};return Pm!==void 0?w.createElement(Pm.Consumer,null,n=>t(n)):t(Im)}function G5(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 10v4h4"},child:[]},{tag:"path",attr:{d:"m11 14 1.535-1.605a5 5 0 0 1 8 1.5"},child:[]},{tag:"path",attr:{d:"M16 2v4"},child:[]},{tag:"path",attr:{d:"m21 18-1.535 1.605a5 5 0 0 1-8-1.5"},child:[]},{tag:"path",attr:{d:"M21 22v-4h-4"},child:[]},{tag:"path",attr:{d:"M21 8.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h4.3"},child:[]},{tag:"path",attr:{d:"M3 10h4"},child:[]},{tag:"path",attr:{d:"M8 2v4"},child:[]}]})(e)}function q5(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M20 6 9 17l-5-5"},child:[]}]})(e)}function Nm(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10.1 2.182a10 10 0 0 1 3.8 0"},child:[]},{tag:"path",attr:{d:"M13.9 21.818a10 10 0 0 1-3.8 0"},child:[]},{tag:"path",attr:{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7"},child:[]},{tag:"path",attr:{d:"M2.182 13.9a10 10 0 0 1 0-3.8"},child:[]},{tag:"path",attr:{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69"},child:[]},{tag:"path",attr:{d:"M21.818 10.1a10 10 0 0 1 0 3.8"},child:[]},{tag:"path",attr:{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69"},child:[]},{tag:"path",attr:{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7"},child:[]}]})(e)}function K5(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 2a10 10 0 0 1 7.38 16.75"},child:[]},{tag:"path",attr:{d:"m16 12-4-4-4 4"},child:[]},{tag:"path",attr:{d:"M12 16V8"},child:[]},{tag:"path",attr:{d:"M2.5 8.875a10 10 0 0 0-.5 3"},child:[]},{tag:"path",attr:{d:"M2.83 16a10 10 0 0 0 2.43 3.4"},child:[]},{tag:"path",attr:{d:"M4.636 5.235a10 10 0 0 1 .891-.857"},child:[]},{tag:"path",attr:{d:"M8.644 21.42a10 10 0 0 0 7.631-.38"},child:[]}]})(e)}function X5(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m15 14 5-5-5-5"},child:[]},{tag:"path",attr:{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13"},child:[]}]})(e)}function Y5(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 6 6 18"},child:[]},{tag:"path",attr:{d:"m6 6 12 12"},child:[]}]})(e)}const Q5=w.forwardRef((e,t)=>v.jsx(ps,{"aria-label":"Close",ref:t,variant:"ghost",...e,children:e.children??v.jsx(Y5,{})})),J5=w.forwardRef((e,t)=>{const{children:n,closable:r,endElement:o,icon:i,onClose:s,startElement:a,title:l,...c}=e;return v.jsxs(LI,{ref:t,...c,alignItems:"center",children:[a??v.jsx(MI,{children:i}),n?v.jsxs(DI,{children:[v.jsx(Eg,{children:l}),v.jsx(FI,{children:n})]}):v.jsx(Eg,{flex:"1",children:l}),o,r?v.jsx(Q5,{alignSelf:"flex-start",insetEnd:"-2",onClick:s,pos:"relative",size:"sm",top:"-2"}):void 0]})});/*! * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -105,11 +70,7 @@ * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. -<<<<<<< HEAD - */const Z5=xw({pauseOnPageIdle:!0,placement:"bottom-end"});/*! -======= - */const mA=XE({pauseOnPageIdle:!0,placement:"bottom-end"}),ym=({error:e})=>{var i;const t=e;if(!t)return;const n=(i=t.body)==null?void 0:i.detail;let r;return n!==void 0&&(typeof n=="string"?r=n:Array.isArray(n)?r=n.map(o=>`${o.loc.join(".")} ${o.msg}`):r=Object.keys(n).map(o=>`${o}: ${n[o]}`)),v.jsx(pA,{status:"error",children:v.jsxs(fR,{align:"start",flexDirection:"column",gap:2,mt:-1,children:[t.status," ",t.message,r===t.message?void 0:v.jsx(n1,{whiteSpace:"preserve",wordBreak:"break-all",children:r})]})})};function xm(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"22 12 18 12 15 21 9 3 6 12 2 12"},child:[]}]})(e)}function vA(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"7",y1:"7",x2:"17",y2:"17"},child:[]},{tag:"polyline",attr:{points:"17 7 17 17 7 17"},child:[]}]})(e)}function bA(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"16",y1:"2",x2:"16",y2:"6"},child:[]},{tag:"line",attr:{x1:"8",y1:"2",x2:"8",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"10",x2:"21",y2:"10"},child:[]}]})(e)}function yA(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"17 1 21 5 17 9"},child:[]},{tag:"path",attr:{d:"M3 11V9a4 4 0 0 1 4-4h14"},child:[]},{tag:"polyline",attr:{points:"7 23 3 19 7 15"},child:[]},{tag:"path",attr:{d:"M21 13v2a4 4 0 0 1-4 4H3"},child:[]}]})(e)}function xA(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"5 4 15 12 5 20 5 4"},child:[]},{tag:"line",attr:{x1:"19",y1:"5",x2:"19",y2:"19"},child:[]}]})(e)}function CA(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"4.93",y1:"4.93",x2:"19.07",y2:"19.07"},child:[]}]})(e)}function Cm(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"7"},child:[]},{tag:"polyline",attr:{points:"12 9 12 12 13.5 13.5"},child:[]},{tag:"path",attr:{d:"M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"},child:[]}]})(e)}function SA(e){return be({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(e)}function wA(e){return be({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm104,56H40a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Zm0,64H40a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Zm112-24a8,8,0,0,1-3.76,6.78l-64,40A8,8,0,0,1,168,200V120a8,8,0,0,1,12.24-6.78l64,40A8,8,0,0,1,248,160Zm-23.09,0L184,134.43v51.14Z"},child:[]}]})(e)}const EA=({state:e,...t})=>{switch(e){case"deferred":return v.jsx(Cm,{...t});case"failed":return v.jsx(SA,{...t});case"queued":return v.jsx(wA,{...t});case"removed":return v.jsx(CA,{...t});case"restarting":return v.jsx(yA,{...t});case"running":return v.jsx(xm,{...t});case"scheduled":return v.jsx(bA,{...t});case"skipped":return v.jsx(xA,{...t});case"success":return v.jsx(uA,{...t});case"up_for_reschedule":return v.jsx(cA,{...t});case"up_for_retry":return v.jsx(hA,{...t});case"upstream_failed":return v.jsx(dA,{...t});default:return v.jsx(bm,{...t})}},kA=O.forwardRef(({children:e,state:t,...n},r)=>v.jsxs(mg,{borderRadius:"full",colorPalette:t===null?"none":t,fontSize:"sm",px:e===void 0?1:2,py:1,ref:r,variant:"solid",...n,children:[t===void 0?void 0:v.jsx(EA,{state:t}),e]}));/*! ->>>>>>> 3f3a37a363 (Add confirmation dialog for exit maintenance action in Edge Worker Page) + */const Z5=Nw({pauseOnPageIdle:!0,placement:"bottom-end"});/*! * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -126,11 +87,7 @@ * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. -<<<<<<< HEAD - */const eN=({block:e="start",inline:t="nearest"})=>{const[n,r]=w.useState(()=>window.location.hash);return w.useEffect(()=>{const o=()=>r(window.location.hash);return window.addEventListener("hashchange",o),()=>window.removeEventListener("hashchange",o)},[]),w.useEffect(()=>{if(n){const o=document.getElementById(n.slice(1));o&&o.scrollIntoView({behavior:"auto",block:e,inline:t})}},[n,e,t]),null},bm=({error:e})=>{var o;const t=e;if(!t)return;const n=(o=t.body)==null?void 0:o.detail;let r;return n!==void 0&&(typeof n=="string"?r=n:Array.isArray(n)?r=n.map(i=>`${i.loc.join(".")} ${i.msg}`):r=Object.keys(n).map(i=>`${i}: ${n[i]}`)),v.jsx(J5,{status:"error",children:v.jsxs(YI,{align:"start",flexDirection:"column",gap:2,mt:-1,children:[t.status," ",t.message,r===t.message?void 0:v.jsx(Ex,{whiteSpace:"preserve",wordBreak:"break-all",children:r})]})})};function ym(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"22 12 18 12 15 21 9 3 6 12 2 12"},child:[]}]})(e)}function tN(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"7",y1:"7",x2:"17",y2:"17"},child:[]},{tag:"polyline",attr:{points:"17 7 17 17 7 17"},child:[]}]})(e)}function nN(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"16",y1:"2",x2:"16",y2:"6"},child:[]},{tag:"line",attr:{x1:"8",y1:"2",x2:"8",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"10",x2:"21",y2:"10"},child:[]}]})(e)}function rN(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"17 1 21 5 17 9"},child:[]},{tag:"path",attr:{d:"M3 11V9a4 4 0 0 1 4-4h14"},child:[]},{tag:"polyline",attr:{points:"7 23 3 19 7 15"},child:[]},{tag:"path",attr:{d:"M21 13v2a4 4 0 0 1-4 4H3"},child:[]}]})(e)}function oN(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"5 4 15 12 5 20 5 4"},child:[]},{tag:"line",attr:{x1:"19",y1:"5",x2:"19",y2:"19"},child:[]}]})(e)}function iN(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"4.93",y1:"4.93",x2:"19.07",y2:"19.07"},child:[]}]})(e)}function xm(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"7"},child:[]},{tag:"polyline",attr:{points:"12 9 12 12 13.5 13.5"},child:[]},{tag:"path",attr:{d:"M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"},child:[]}]})(e)}function sN(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(e)}function aN(e){return ye({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm104,56H40a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Zm0,64H40a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Zm112-24a8,8,0,0,1-3.76,6.78l-64,40A8,8,0,0,1,168,200V120a8,8,0,0,1,12.24-6.78l64,40A8,8,0,0,1,248,160Zm-23.09,0L184,134.43v51.14Z"},child:[]}]})(e)}const lN=({state:e,...t})=>{switch(e){case"deferred":return v.jsx(xm,{...t});case"failed":return v.jsx(sN,{...t});case"queued":return v.jsx(aN,{...t});case"removed":return v.jsx(iN,{...t});case"restarting":return v.jsx(rN,{...t});case"running":return v.jsx(ym,{...t});case"scheduled":return v.jsx(nN,{...t});case"skipped":return v.jsx(oN,{...t});case"success":return v.jsx(q5,{...t});case"up_for_reschedule":return v.jsx(G5,{...t});case"up_for_retry":return v.jsx(X5,{...t});case"upstream_failed":return v.jsx(K5,{...t});default:return v.jsx(vm,{...t})}},cN=O.forwardRef(({children:e,state:t,...n},r)=>v.jsxs(Sg,{borderRadius:"full",colorPalette:t===null?"none":t,fontSize:"sm",px:e===void 0?1:2,py:1,ref:r,variant:"solid",...n,children:[t===void 0?void 0:v.jsx(lN,{state:t}),e]}));/*! -======= - */const Sm=5e3;/*! ->>>>>>> 3f3a37a363 (Add confirmation dialog for exit maintenance action in Edge Worker Page) + */const eN=({block:e="start",inline:t="nearest"})=>{const[n,r]=w.useState(()=>window.location.hash);return w.useEffect(()=>{const o=()=>r(window.location.hash);return window.addEventListener("hashchange",o),()=>window.removeEventListener("hashchange",o)},[]),w.useEffect(()=>{if(n){const o=document.getElementById(n.slice(1));o&&o.scrollIntoView({behavior:"auto",block:e,inline:t})}},[n,e,t]),null},_m=({error:e})=>{var o;const t=e;if(!t)return;const n=(o=t.body)==null?void 0:o.detail;let r;return n!==void 0&&(typeof n=="string"?r=n:Array.isArray(n)?r=n.map(i=>`${i.loc.join(".")} ${i.msg}`):r=Object.keys(n).map(i=>`${i}: ${n[i]}`)),v.jsx(J5,{status:"error",children:v.jsxs(YI,{align:"start",flexDirection:"column",gap:2,mt:-1,children:[t.status," ",t.message,r===t.message?void 0:v.jsx(Ku,{whiteSpace:"preserve",wordBreak:"break-all",children:r})]})})};function Am(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"22 12 18 12 15 21 9 3 6 12 2 12"},child:[]}]})(e)}function tN(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"7",y1:"7",x2:"17",y2:"17"},child:[]},{tag:"polyline",attr:{points:"17 7 17 17 7 17"},child:[]}]})(e)}function nN(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"rect",attr:{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"},child:[]},{tag:"line",attr:{x1:"16",y1:"2",x2:"16",y2:"6"},child:[]},{tag:"line",attr:{x1:"8",y1:"2",x2:"8",y2:"6"},child:[]},{tag:"line",attr:{x1:"3",y1:"10",x2:"21",y2:"10"},child:[]}]})(e)}function rN(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"17 1 21 5 17 9"},child:[]},{tag:"path",attr:{d:"M3 11V9a4 4 0 0 1 4-4h14"},child:[]},{tag:"polyline",attr:{points:"7 23 3 19 7 15"},child:[]},{tag:"path",attr:{d:"M21 13v2a4 4 0 0 1-4 4H3"},child:[]}]})(e)}function oN(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"5 4 15 12 5 20 5 4"},child:[]},{tag:"line",attr:{x1:"19",y1:"5",x2:"19",y2:"19"},child:[]}]})(e)}function iN(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"10"},child:[]},{tag:"line",attr:{x1:"4.93",y1:"4.93",x2:"19.07",y2:"19.07"},child:[]}]})(e)}function Vm(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"12",cy:"12",r:"7"},child:[]},{tag:"polyline",attr:{points:"12 9 12 12 13.5 13.5"},child:[]},{tag:"path",attr:{d:"M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"},child:[]}]})(e)}function sN(e){return ye({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"18",y1:"6",x2:"6",y2:"18"},child:[]},{tag:"line",attr:{x1:"6",y1:"6",x2:"18",y2:"18"},child:[]}]})(e)}function aN(e){return ye({attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm104,56H40a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Zm0,64H40a8,8,0,0,0,0,16h96a8,8,0,0,0,0-16Zm112-24a8,8,0,0,1-3.76,6.78l-64,40A8,8,0,0,1,168,200V120a8,8,0,0,1,12.24-6.78l64,40A8,8,0,0,1,248,160Zm-23.09,0L184,134.43v51.14Z"},child:[]}]})(e)}const lN=({state:e,...t})=>{switch(e){case"deferred":return v.jsx(Vm,{...t});case"failed":return v.jsx(sN,{...t});case"queued":return v.jsx(aN,{...t});case"removed":return v.jsx(iN,{...t});case"restarting":return v.jsx(rN,{...t});case"running":return v.jsx(Am,{...t});case"scheduled":return v.jsx(nN,{...t});case"skipped":return v.jsx(oN,{...t});case"success":return v.jsx(q5,{...t});case"up_for_reschedule":return v.jsx(G5,{...t});case"up_for_retry":return v.jsx(X5,{...t});case"upstream_failed":return v.jsx(K5,{...t});default:return v.jsx(Nm,{...t})}},cN=O.forwardRef(({children:e,state:t,...n},r)=>v.jsxs(Og,{borderRadius:"full",colorPalette:t===null?"none":t,fontSize:"sm",px:e===void 0?1:2,py:1,ref:r,variant:"solid",...n,children:[t===void 0?void 0:v.jsx(lN,{state:t}),e]}));/*! * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -147,7 +104,7 @@ * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - */const Cm=5e3;/*! + */const Lm=5e3;/*! * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -164,11 +121,7 @@ * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. -<<<<<<< HEAD */const uN=e=>{const[t,n]=w.useState(0);return w.useEffect(()=>{if(!e.current)return;const r=new ResizeObserver(o=>{for(const i of o)n(i.contentRect.width)});return r.observe(e.current),()=>{r.disconnect()}},[e]),t};/*! -======= - */const wm="token",IA=()=>{const e=document.cookie.split(";");for(const t of e){const[n,r]=t.split("=");if((n==null?void 0:n.trim())==="_token"&&r!==void 0)return localStorage.setItem(wm,r),document.cookie="_token=; expires=Sat, 01 Jan 2000 00:00:00 UTC; path=/;",r}},PA=e=>{const t=localStorage.getItem(wm)??IA();return t!==void 0&&(e.headers.Authorization=`Bearer ${t}`),e},RA=()=>{const{data:e,error:t}=ZN(void 0,{enabled:!0,refetchInterval:Sm});return e?v.jsx(zt,{p:2,children:v.jsxs(Ng,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[v.jsx(Ag,{children:v.jsxs(fs,{children:[v.jsx(Te,{children:"Dag ID"}),v.jsx(Te,{children:"Run ID"}),v.jsx(Te,{children:"Task ID"}),v.jsx(Te,{children:"Map Index"}),v.jsx(Te,{children:"Try Number"}),v.jsx(Te,{children:"State"}),v.jsx(Te,{children:"Queue"}),v.jsx(Te,{children:"Queued DTTM"}),v.jsx(Te,{children:"Edge Worker"}),v.jsx(Te,{children:"Last Update"})]})}),v.jsx(_g,{children:e.jobs.map(n=>v.jsxs(fs,{children:[v.jsx(Ne,{children:n.dag_id}),v.jsx(Ne,{children:n.run_id}),v.jsx(Ne,{children:n.task_id}),v.jsx(Ne,{children:n.map_index}),v.jsx(Ne,{children:n.try_number}),v.jsx(Ne,{children:v.jsx(kA,{state:n.state,children:n.state})}),v.jsx(Ne,{children:n.queue}),v.jsx(Ne,{children:n.queued_dttm}),v.jsx(Ne,{children:n.edge_worker}),v.jsx(Ne,{children:n.last_update})]},`${n.dag_id}.${n.run_id}.${n.task_id}.${n.map_index}.${n.try_number}`))})]})}):t?v.jsxs(zt,{p:2,children:[v.jsx("p",{children:"Unable to load data:"}),v.jsx(ym,{error:t})]}):v.jsx(zt,{p:2,children:"Loading..."})};function Em(e){return be({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}function TA(e){return be({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75a4.5 4.5 0 0 1-4.884 4.484c-1.076-.091-2.264.071-2.95.904l-7.152 8.684a2.548 2.548 0 1 1-3.586-3.586l8.684-7.152c.833-.686.995-1.874.904-2.95a4.5 4.5 0 0 1 6.336-4.486l-3.276 3.276a3.004 3.004 0 0 0 2.25 2.25l3.276-3.276c.256.565.398 1.192.398 1.852Z"},child:[]},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}const NA=({onEnterMaintenance:e,workerName:t})=>{const{onClose:n,onOpen:r,open:i}=Bu(),[o,s]=E.useState(""),a=eA({onError:c=>{e({description:`Unable to set worker ${t} to maintenance mode: ${c}`,title:"Setting Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to be in maintenance mode.`,title:"Maintenance Mode activated",type:"success"})}}),l=()=>{a.mutate({requestBody:{maintenance_comment:o},workerName:t})};return v.jsxs(v.Fragment,{children:[v.jsx(hs,{size:"sm",variant:"ghost","aria-label":"Enter Maintenance",title:"Enter Maintenance",onClick:r,children:v.jsx(Em,{})}),v.jsx(Cg,{onOpenChange:n,open:i,size:"md",children:v.jsxs(Gh,{children:[v.jsx(Ig,{}),v.jsx(Sg,{children:v.jsxs(wg,{children:[v.jsx(Tg,{children:v.jsxs(Eg,{children:["Set maintenance for worker ",t]})}),v.jsx(Pg,{children:v.jsx(yR,{placeholder:"Enter maintenance comment (required)",value:o,onChange:c=>s(c.target.value),required:!0,maxLength:1024,size:"sm"})}),v.jsxs(Rg,{children:[v.jsx(Og,{asChild:!0,children:v.jsx(Ii,{variant:"outline",children:"Cancel"})}),v.jsx(Ii,{onClick:l,disabled:!o.trim(),children:"Confirm Maintenance"})]}),v.jsx(kg,{asChild:!0,children:v.jsx(vg,{size:"sm"})})]})})]})})]})};function AA(e){return be({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M215.469 332.802l29.863 29.864L352 256 245.332 149.333l-29.863 29.865 55.469 55.469H64v42.666h205.864l-54.395 55.469zM405.334 64H106.666C83.198 64 64 83.198 64 106.666V192h42.666v-85.333h298.668v298.668H106.666V320H64v85.334C64 428.802 83.198 448 106.666 448h298.668C428.802 448 448 428.802 448 405.334V106.666C448 83.198 428.802 64 405.334 64z"},child:[]}]})(e)}const _A=({onExitMaintenance:e,workerName:t})=>{const{onClose:n,onOpen:r,open:i}=Bu(),o=tA({onError:a=>{e({description:`Unable to exit ${t} from maintenance mode: ${a}`,title:"Exit Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to exit maintenance mode.`,title:"Maintenance Mode deactivated",type:"success"}),n()}}),s=()=>{o.mutate({workerName:t})};return v.jsxs(v.Fragment,{children:[v.jsx(hs,{size:"sm",variant:"ghost",onClick:r,"aria-label":"Exit Maintenance",title:"Exit Maintenance",children:v.jsx(AA,{})}),v.jsx(Cg,{onOpenChange:n,open:i,size:"md",children:v.jsxs(Gh,{children:[v.jsx(Ig,{}),v.jsx(Sg,{children:v.jsxs(wg,{children:[v.jsx(Tg,{children:v.jsxs(Eg,{children:["Exit maintenance for worker ",t]})}),v.jsx(Pg,{children:v.jsxs("p",{children:["Are you sure you want to exit maintenance mode for worker ",t,"?"]})}),v.jsxs(Rg,{children:[v.jsx(Og,{asChild:!0,children:v.jsx(Ii,{variant:"outline",children:"No"})}),v.jsx(Ii,{onClick:s,colorScheme:"red",children:"Yes"})]}),v.jsx(kg,{asChild:!0,children:v.jsx(vg,{size:"sm"})})]})})]})})]})},VA=({onOperations:e,worker:t})=>{const n=t.worker_name,r=t.state,i=o=>{mA.create(o),e()};return r==="idle"||r==="running"?v.jsx(Fl,{justifyContent:"end",children:v.jsx(NA,{onEnterMaintenance:i,workerName:n})}):r==="maintenance pending"||r==="maintenance mode"||r==="maintenance request"||r==="offline maintenance"?v.jsxs(gR,{gap:2,align:"stretch",children:[v.jsx(zt,{fontSize:"sm",whiteSpace:"pre-wrap",children:t.maintenance_comments||"No comment"}),v.jsx(Fl,{justifyContent:"end",children:v.jsx(_A,{onExitMaintenance:i,workerName:n})})]}):null};function FA(e){return be({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m22 3.41-.12-1.26-1.2.4a13.84 13.84 0 0 1-6.41.64 11.87 11.87 0 0 0-6.68.9A7.23 7.23 0 0 0 3.3 9.5a9 9 0 0 0 .39 4.58 16.6 16.6 0 0 1 1.18-2.2 9.85 9.85 0 0 1 4.07-3.43 11.16 11.16 0 0 1 5.06-1A12.08 12.08 0 0 0 9.34 9.2a9.48 9.48 0 0 0-1.86 1.53 11.38 11.38 0 0 0-1.39 1.91 16.39 16.39 0 0 0-1.57 4.54A26.42 26.42 0 0 0 4 22h2a30.69 30.69 0 0 1 .59-4.32 9.25 9.25 0 0 0 4.52 1.11 11 11 0 0 0 4.28-.87C23 14.67 22 3.86 22 3.41z"},child:[]}]})(e)}function LA(e){return be({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M93.72 183.25C49.49 198.05 16 233.1 16 288c0 66 54 112 120 112h184.37m147.45-22.26C485.24 363.3 496 341.61 496 312c0-59.82-53-85.76-96-88-8.89-89.54-71-144-144-144-26.16 0-48.79 6.93-67.6 18.14"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M448 448 64 64"},child:[]}]})(e)}function DA(e){return be({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12.0001 18C12.7144 18 13.3704 18.2497 13.8856 18.6665L12.0001 21L10.1145 18.6665C10.6297 18.2497 11.2857 18 12.0001 18ZM2.80766 1.39343L20.4853 19.0711L19.0711 20.4853L13.8913 15.3042C13.2967 15.1069 12.6609 15 12.0001 15C10.5719 15 9.26024 15.499 8.22998 16.3322L6.97363 14.7759C8.24961 13.7442 9.84925 13.0969 11.5964 13.01L9.00025 10.414C7.55273 10.8234 6.22651 11.5217 5.0878 12.4426L3.83099 10.8868C4.89946 10.0226 6.10763 9.32438 7.41633 8.83118L5.13168 6.5451C3.98878 7.08913 2.92058 7.76472 1.94666 8.55228L0.689453 6.99674C1.60358 6.25747 2.59156 5.60589 3.64058 5.05479L1.39345 2.80765L2.80766 1.39343ZM14.5004 10.2854L12.2165 8.00243L12 8C15.0947 8 17.9369 9.08141 20.1693 10.8869L18.9123 12.4426C17.6438 11.4167 16.1427 10.6672 14.5004 10.2854ZM12.0001 3.00003C16.2849 3.00003 20.22 4.49719 23.3109 6.99691L22.0534 8.55228C19.3061 6.33062 15.8085 5.00003 12.0001 5.00003C11.122 5.00003 10.2604 5.07077 9.42075 5.20685L7.72455 3.51088C9.09498 3.17702 10.5268 3.00003 12.0001 3.00003Z"},child:[]}]})(e)}const zA=({state:e,...t})=>{switch(e){case"starting":return v.jsx(Cm,{...t});case"running":return v.jsx(xm,{...t});case"idle":return v.jsx(FA,{...t});case"shutdown request":case"terminating":return v.jsx(vA,{...t});case"offline":return v.jsx(LA,{...t});case"unknown":return v.jsx(DA,{...t});case"maintenance request":case"maintenance pending":case"maintenance exit":return v.jsx(TA,{...t});case"maintenance mode":case"offline maintenance":return v.jsx(Em,{...t});default:return v.jsx(bm,{...t})}},MA=e=>{switch(e){case"starting":case"maintenance request":case"maintenance exit":return"yellow";case"running":return"green";case"idle":return"teal";case"shutdown request":case"terminating":return"purple";case"offline":case"offline maintenance":return"black";case"unknown":return"red";case"maintenance mode":case"maintenance pending":return"orange";default:return"gray"}},$A=O.forwardRef(({children:e,state:t,...n},r)=>v.jsxs(mg,{borderRadius:"full",colorPalette:MA(t),fontSize:"sm",px:e===void 0?1:2,py:1,ref:r,variant:"solid",...n,children:[t===void 0?void 0:v.jsx(zA,{state:t}),e]})),BA=()=>{const{data:e,error:t,refetch:n}=JN(void 0,{enabled:!0,refetchInterval:Sm});return e?v.jsx(zt,{p:2,children:v.jsxs(Ng,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[v.jsx(Ag,{children:v.jsxs(fs,{children:[v.jsx(Te,{children:"Worker Name"}),v.jsx(Te,{children:"State"}),v.jsx(Te,{children:"Queues"}),v.jsx(Te,{children:"First Online"}),v.jsx(Te,{children:"Last Heartbeat"}),v.jsx(Te,{children:"Active Jobs"}),v.jsx(Te,{children:"System Information"}),v.jsx(Te,{children:"Operations"})]})}),v.jsx(_g,{children:e.workers.map(r=>v.jsxs(fs,{children:[v.jsx(Ne,{children:r.worker_name}),v.jsx(Ne,{children:v.jsx($A,{state:r.state,children:r.state})}),v.jsx(Ne,{children:r.queues?v.jsx("ul",{children:r.queues.map(i=>v.jsx("li",{children:i},i))}):"(default)"}),v.jsx(Ne,{children:r.first_online}),v.jsx(Ne,{children:r.last_heartbeat}),v.jsx(Ne,{children:r.jobs_active}),v.jsx(Ne,{children:r.sysinfo?v.jsx("ul",{children:Object.entries(r.sysinfo).map(([i,o])=>v.jsxs("li",{children:[i,": ",o]},i))}):"N/A"}),v.jsx(Ne,{children:v.jsx(VA,{worker:r,onOperations:n})})]},r.worker_name))})]})}):t?v.jsxs(zt,{p:2,children:[v.jsx("p",{children:"Unable to load data:"}),v.jsx(ym,{error:t})]}):v.jsx(zt,{p:2,children:"Loading..."})},jA=({tabs:e})=>{const t=E.useRef(null),n=OA(t);return v.jsx(Fl,{alignItems:"center",borderBottomWidth:1,mb:2,ref:t,children:e.map(({icon:r,label:i,value:o})=>v.jsx(NN,{end:!0,title:i,to:{pathname:o},children:({isActive:s})=>v.jsx(bg,{borderBottomColor:"border.info",borderBottomWidth:s?3:0,color:s?"fg":"fg.muted",fontWeight:"bold",height:"40px",mb:"-2px",pb:s?0:"3px",px:4,transition:"all 0.2s ease",children:n>600||!r?i:r})},o))})},WA=()=>{const e=[{label:"Edge Worker",value:"plugin/edge_worker"},{label:"Edge Jobs",value:"plugin/edge_jobs"}];return v.jsx(zt,{p:2,children:v.jsxs(IN,{children:[v.jsx(jA,{tabs:e}),v.jsxs(xN,{children:[v.jsx(lc,{path:"plugin/edge_worker",element:v.jsx(BA,{})}),v.jsx(lc,{path:"plugin/edge_jobs",element:v.jsx(RA,{})})]})]})})};/*! ->>>>>>> 3f3a37a363 (Add confirmation dialog for exit maintenance action in Edge Worker Page) * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -185,8 +138,7 @@ * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. -<<<<<<< HEAD - */const km="token",dN=()=>{const e=document.cookie.split(";");for(const t of e){const[n,r]=t.split("=");if((n==null?void 0:n.trim())==="_token"&&r!==void 0)return localStorage.setItem(km,r),document.cookie="_token=; expires=Sat, 01 Jan 2000 00:00:00 UTC; path=/;",r}},hN=e=>{const t=localStorage.getItem(km)??dN();return t!==void 0&&(e.headers.Authorization=`Bearer ${t}`),e},fN=()=>{const{data:e,error:t}=L5(void 0,{enabled:!0,refetchInterval:Cm});return e?v.jsx(zt,{p:2,children:v.jsxs(Ig,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[v.jsx(Pg,{children:v.jsxs(ms,{children:[v.jsx(Ne,{children:"Dag ID"}),v.jsx(Ne,{children:"Run ID"}),v.jsx(Ne,{children:"Task ID"}),v.jsx(Ne,{children:"Map Index"}),v.jsx(Ne,{children:"Try Number"}),v.jsx(Ne,{children:"State"}),v.jsx(Ne,{children:"Queue"}),v.jsx(Ne,{children:"Queued DTTM"}),v.jsx(Ne,{children:"Edge Worker"}),v.jsx(Ne,{children:"Last Update"})]})}),v.jsx(Rg,{children:e.jobs.map(n=>v.jsxs(ms,{children:[v.jsx(_e,{children:v.jsx(ps,{href:`../dags/${n.dag_id}`,children:n.dag_id})}),v.jsx(_e,{children:v.jsx(ps,{href:`../dags/${n.dag_id}/runs/${n.run_id}`,children:n.run_id})}),v.jsx(_e,{children:n.map_index>=0?v.jsx(ps,{href:`../dags/${n.dag_id}/runs/${n.run_id}/tasks/${n.task_id}/mapped/${n.map_index}?try_number=${n.try_number}`,children:n.task_id}):v.jsx(ps,{href:`../dags/${n.dag_id}/runs/${n.run_id}/tasks/${n.task_id}?try_number=${n.try_number}`,children:n.task_id})}),v.jsx(_e,{children:n.map_index>=0?n.map_index:"-"}),v.jsx(_e,{children:n.try_number}),v.jsx(_e,{children:v.jsx(cN,{state:n.state,children:n.state})}),v.jsx(_e,{children:n.queue}),v.jsx(_e,{children:n.queued_dttm?v.jsx(Hs,{date:n.queued_dttm,live:!1}):void 0}),v.jsx(_e,{children:v.jsx(im,{to:`/plugin/edge_worker#${n.edge_worker}`,children:n.edge_worker})}),v.jsx(_e,{children:n.last_update?v.jsx(Hs,{date:n.last_update,live:!1}):void 0})]},`${n.dag_id}.${n.run_id}.${n.task_id}.${n.map_index}.${n.try_number}`))})]})}):t?v.jsxs(zt,{p:2,children:[v.jsx("p",{children:"Unable to load data:"}),v.jsx(bm,{error:t})]}):v.jsx(zt,{p:2,children:"Loading..."})};function Sm(e){return ye({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}function gN(e){return ye({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75a4.5 4.5 0 0 1-4.884 4.484c-1.076-.091-2.264.071-2.95.904l-7.152 8.684a2.548 2.548 0 1 1-3.586-3.586l8.684-7.152c.833-.686.995-1.874.904-2.95a4.5 4.5 0 0 1 6.336-4.486l-3.276 3.276a3.004 3.004 0 0 0 2.25 2.25l3.276-3.276c.256.565.398 1.192.398 1.852Z"},child:[]},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}const pN=({onEnterMaintenance:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=Ox(),[i,s]=w.useState(""),a=F5({onError:c=>{e({description:`Unable to set worker ${t} to maintenance mode: ${c}`,title:"Setting Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to be in maintenance mode.`,title:"Maintenance Mode activated",type:"success"})}}),l=()=>{a.mutate({requestBody:{maintenance_comment:i},workerName:t})};return v.jsxs(v.Fragment,{children:[v.jsx(gs,{size:"sm",variant:"ghost","aria-label":"Enter Maintenance",title:"Enter Maintenance",onClick:r,children:v.jsx(Sm,{})}),v.jsx(MI,{onOpenChange:n,open:o,size:"md",children:v.jsxs(iw,{children:[v.jsx(UI,{}),v.jsx($I,{children:v.jsxs(jI,{children:[v.jsx(KI,{children:v.jsxs(BI,{children:["Set maintenance for worker ",t]})}),v.jsx(GI,{children:v.jsx(nP,{placeholder:"Enter maintenance comment (required)",value:i,onChange:c=>s(c.target.value),required:!0,maxLength:1024,size:"sm"})}),v.jsxs(qI,{children:[v.jsx(HI,{asChild:!0,children:v.jsx(jl,{variant:"outline",children:"Cancel"})}),v.jsx(jl,{onClick:l,disabled:!i.trim(),children:"Confirm Maintenance"})]}),v.jsx(WI,{asChild:!0,children:v.jsx(FI,{size:"sm"})})]})})]})})]})};function mN(e){return ye({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M215.469 332.802l29.863 29.864L352 256 245.332 149.333l-29.863 29.865 55.469 55.469H64v42.666h205.864l-54.395 55.469zM405.334 64H106.666C83.198 64 64 83.198 64 106.666V192h42.666v-85.333h298.668v298.668H106.666V320H64v85.334C64 428.802 83.198 448 106.666 448h298.668C428.802 448 448 428.802 448 405.334V106.666C448 83.198 428.802 64 405.334 64z"},child:[]}]})(e)}const vN=({onExitMaintenance:e,workerName:t})=>{const n=D5({onError:o=>{e({description:`Unable to exit ${t} from maintenance mode: ${o}`,title:"Exit Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to exit maintenance mode.`,title:"Maintenance Mode deactivated",type:"success"})}}),r=()=>{n.mutate({workerName:t})};return v.jsx(gs,{size:"sm",variant:"ghost",onClick:()=>r(),"aria-label":"Exit Maintenance",title:"Exit Maintenance",children:v.jsx(mN,{})})},bN=({onOperations:e,worker:t})=>{const n=t.worker_name,r=t.state,o=i=>{Z5.create(i),e()};return r==="idle"||r==="running"?v.jsx(Bl,{justifyContent:"end",children:v.jsx(pN,{onEnterMaintenance:o,workerName:n})}):r==="maintenance pending"||r==="maintenance mode"||r==="maintenance request"||r==="offline maintenance"?v.jsxs(QI,{gap:2,align:"stretch",children:[v.jsx(zt,{fontSize:"sm",whiteSpace:"pre-wrap",children:t.maintenance_comments||"No comment"}),v.jsx(Bl,{justifyContent:"end",children:v.jsx(vN,{onExitMaintenance:o,workerName:n})})]}):null};function yN(e){return ye({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m22 3.41-.12-1.26-1.2.4a13.84 13.84 0 0 1-6.41.64 11.87 11.87 0 0 0-6.68.9A7.23 7.23 0 0 0 3.3 9.5a9 9 0 0 0 .39 4.58 16.6 16.6 0 0 1 1.18-2.2 9.85 9.85 0 0 1 4.07-3.43 11.16 11.16 0 0 1 5.06-1A12.08 12.08 0 0 0 9.34 9.2a9.48 9.48 0 0 0-1.86 1.53 11.38 11.38 0 0 0-1.39 1.91 16.39 16.39 0 0 0-1.57 4.54A26.42 26.42 0 0 0 4 22h2a30.69 30.69 0 0 1 .59-4.32 9.25 9.25 0 0 0 4.52 1.11 11 11 0 0 0 4.28-.87C23 14.67 22 3.86 22 3.41z"},child:[]}]})(e)}function xN(e){return ye({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M93.72 183.25C49.49 198.05 16 233.1 16 288c0 66 54 112 120 112h184.37m147.45-22.26C485.24 363.3 496 341.61 496 312c0-59.82-53-85.76-96-88-8.89-89.54-71-144-144-144-26.16 0-48.79 6.93-67.6 18.14"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M448 448 64 64"},child:[]}]})(e)}function CN(e){return ye({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12.0001 18C12.7144 18 13.3704 18.2497 13.8856 18.6665L12.0001 21L10.1145 18.6665C10.6297 18.2497 11.2857 18 12.0001 18ZM2.80766 1.39343L20.4853 19.0711L19.0711 20.4853L13.8913 15.3042C13.2967 15.1069 12.6609 15 12.0001 15C10.5719 15 9.26024 15.499 8.22998 16.3322L6.97363 14.7759C8.24961 13.7442 9.84925 13.0969 11.5964 13.01L9.00025 10.414C7.55273 10.8234 6.22651 11.5217 5.0878 12.4426L3.83099 10.8868C4.89946 10.0226 6.10763 9.32438 7.41633 8.83118L5.13168 6.5451C3.98878 7.08913 2.92058 7.76472 1.94666 8.55228L0.689453 6.99674C1.60358 6.25747 2.59156 5.60589 3.64058 5.05479L1.39345 2.80765L2.80766 1.39343ZM14.5004 10.2854L12.2165 8.00243L12 8C15.0947 8 17.9369 9.08141 20.1693 10.8869L18.9123 12.4426C17.6438 11.4167 16.1427 10.6672 14.5004 10.2854ZM12.0001 3.00003C16.2849 3.00003 20.22 4.49719 23.3109 6.99691L22.0534 8.55228C19.3061 6.33062 15.8085 5.00003 12.0001 5.00003C11.122 5.00003 10.2604 5.07077 9.42075 5.20685L7.72455 3.51088C9.09498 3.17702 10.5268 3.00003 12.0001 3.00003Z"},child:[]}]})(e)}const kN=({state:e,...t})=>{switch(e){case"starting":return v.jsx(xm,{...t});case"running":return v.jsx(ym,{...t});case"idle":return v.jsx(yN,{...t});case"shutdown request":case"terminating":return v.jsx(tN,{...t});case"offline":return v.jsx(xN,{...t});case"unknown":return v.jsx(CN,{...t});case"maintenance request":case"maintenance pending":case"maintenance exit":return v.jsx(gN,{...t});case"maintenance mode":case"offline maintenance":return v.jsx(Sm,{...t});default:return v.jsx(vm,{...t})}},SN=e=>{switch(e){case"starting":case"maintenance request":case"maintenance exit":return"yellow";case"running":return"green";case"idle":return"teal";case"shutdown request":case"terminating":return"purple";case"offline":case"offline maintenance":return"black";case"unknown":return"red";case"maintenance mode":case"maintenance pending":return"orange";default:return"gray"}},wN=e=>{switch(e){case"starting":return"Edge Worker is in initialization.";case"running":return"Edge Worker is actively running a task.";case"idle":return"Edge Worker is active and waiting for a task.";case"shutdown request":return"Request to shutdown Edge Worker.";case"terminating":return"Edge Worker is completing work and stopping.";case"offline":return"Edge Worker was shut down.";case"unknown":return"No heartbeat signal from worker for some time, Edge Worker probably down.";case"maintenance request":return"Worker was requested to enter maintenance mode. Once worker receives this it will pause fetching jobs.";case"maintenance pending":return"Edge worker received the request for maintenance, waiting for jobs to finish. Once jobs are finished will move to 'maintenance mode'.";case"maintenance mode":return"Edge worker is in maintenance mode. It is online but pauses fetching jobs.";case"maintenance exit":return"Request worker to exit maintenance mode. Once the worker receives this state it will un-pause and fetch new jobs.";case"offline maintenance":return"Worker was shut down in maintenance mode. It will be in maintenance mode when restarted.";default:return}},EN=O.forwardRef(({children:e,state:t,...n},r)=>v.jsxs(Sg,{borderRadius:"full",colorPalette:SN(t),fontSize:"sm",px:e===void 0?1:2,py:1,ref:r,title:wN(t),variant:"solid",...n,children:[t===void 0?void 0:v.jsx(kN,{state:t}),e]})),ON=()=>{const{data:e,error:t,refetch:n}=V5(void 0,{enabled:!0,refetchInterval:Cm});return e?v.jsxs(zt,{p:2,children:[v.jsxs(Ig,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[v.jsx(Pg,{children:v.jsxs(ms,{children:[v.jsx(Ne,{children:"Worker Name"}),v.jsx(Ne,{children:"State"}),v.jsx(Ne,{children:"Queues"}),v.jsx(Ne,{children:"First Online"}),v.jsx(Ne,{children:"Last Heartbeat"}),v.jsx(Ne,{children:"Active Jobs"}),v.jsx(Ne,{children:"System Information"}),v.jsx(Ne,{children:"Operations"})]})}),v.jsx(Rg,{children:e.workers.map(r=>v.jsxs(ms,{id:r.worker_name,children:[v.jsx(_e,{children:r.worker_name}),v.jsx(_e,{children:v.jsx(EN,{state:r.state,children:r.state})}),v.jsx(_e,{children:r.queues?v.jsx("ul",{children:r.queues.map(o=>v.jsx("li",{children:o},o))}):"(default)"}),v.jsx(_e,{children:r.first_online?v.jsx(Hs,{date:r.first_online,live:!1}):void 0}),v.jsx(_e,{children:r.last_heartbeat?v.jsx(Hs,{date:r.last_heartbeat,live:!1}):void 0}),v.jsx(_e,{children:r.jobs_active}),v.jsx(_e,{children:r.sysinfo?v.jsx("ul",{children:Object.entries(r.sysinfo).map(([o,i])=>v.jsxs("li",{children:[o,": ",i]},o))}):"N/A"}),v.jsx(_e,{children:v.jsx(bN,{worker:r,onOperations:n})})]},r.worker_name))})]}),v.jsx(eN,{})]}):t?v.jsxs(zt,{p:2,children:[v.jsx("p",{children:"Unable to load data:"}),v.jsx(bm,{error:t})]}):v.jsx(zt,{p:2,children:"Loading..."})},IN=({tabs:e})=>{const t=w.useRef(null),n=uN(t);return v.jsx(Bl,{alignItems:"center",borderBottomWidth:1,mb:2,ref:t,children:e.map(({icon:r,label:o,value:i})=>v.jsx(f5,{end:!0,title:o,to:{pathname:i},children:({isActive:s})=>v.jsx(wg,{borderBottomColor:"border.info",borderBottomWidth:s?3:0,color:s?"fg":"fg.muted",fontWeight:"bold",height:"40px",mb:"-2px",pb:s?0:"3px",px:4,transition:"all 0.2s ease",children:n>600||!r?o:r})},i))})},PN=()=>{const e=[{label:"Edge Worker",value:"plugin/edge_worker"},{label:"Edge Jobs",value:"plugin/edge_jobs"}];return v.jsx(zt,{p:2,children:v.jsxs(u5,{children:[v.jsx(IN,{tabs:e}),v.jsxs(r5,{children:[v.jsx(pc,{path:"plugin/edge_worker",element:v.jsx(ON,{})}),v.jsx(pc,{path:"plugin/edge_jobs",element:v.jsx(fN,{})})]})]})})};/*! + */const Fm="token",dN=()=>{const e=document.cookie.split(";");for(const t of e){const[n,r]=t.split("=");if((n==null?void 0:n.trim())==="_token"&&r!==void 0)return localStorage.setItem(Fm,r),document.cookie="_token=; expires=Sat, 01 Jan 2000 00:00:00 UTC; path=/;",r}},hN=e=>{const t=localStorage.getItem(Fm)??dN();return t!==void 0&&(e.headers.Authorization=`Bearer ${t}`),e},fN=()=>{const{data:e,error:t}=L5(void 0,{enabled:!0,refetchInterval:Lm});return e?v.jsx(zt,{p:2,children:v.jsxs(jg,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[v.jsx(Bg,{children:v.jsxs(vs,{children:[v.jsx(Ne,{children:"Dag ID"}),v.jsx(Ne,{children:"Run ID"}),v.jsx(Ne,{children:"Task ID"}),v.jsx(Ne,{children:"Map Index"}),v.jsx(Ne,{children:"Try Number"}),v.jsx(Ne,{children:"State"}),v.jsx(Ne,{children:"Queue"}),v.jsx(Ne,{children:"Queued DTTM"}),v.jsx(Ne,{children:"Edge Worker"}),v.jsx(Ne,{children:"Last Update"})]})}),v.jsx(Wg,{children:e.jobs.map(n=>v.jsxs(vs,{children:[v.jsx(_e,{children:v.jsx(ms,{href:`../dags/${n.dag_id}`,children:n.dag_id})}),v.jsx(_e,{children:v.jsx(ms,{href:`../dags/${n.dag_id}/runs/${n.run_id}`,children:n.run_id})}),v.jsx(_e,{children:n.map_index>=0?v.jsx(ms,{href:`../dags/${n.dag_id}/runs/${n.run_id}/tasks/${n.task_id}/mapped/${n.map_index}?try_number=${n.try_number}`,children:n.task_id}):v.jsx(ms,{href:`../dags/${n.dag_id}/runs/${n.run_id}/tasks/${n.task_id}?try_number=${n.try_number}`,children:n.task_id})}),v.jsx(_e,{children:n.map_index>=0?n.map_index:"-"}),v.jsx(_e,{children:n.try_number}),v.jsx(_e,{children:v.jsx(cN,{state:n.state,children:n.state})}),v.jsx(_e,{children:n.queue}),v.jsx(_e,{children:n.queued_dttm?v.jsx(Us,{date:n.queued_dttm,live:!1}):void 0}),v.jsx(_e,{children:v.jsx(ym,{to:`/plugin/edge_worker#${n.edge_worker}`,children:n.edge_worker})}),v.jsx(_e,{children:n.last_update?v.jsx(Us,{date:n.last_update,live:!1}):void 0})]},`${n.dag_id}.${n.run_id}.${n.task_id}.${n.map_index}.${n.try_number}`))})]})}):t?v.jsxs(zt,{p:2,children:[v.jsx("p",{children:"Unable to load data:"}),v.jsx(_m,{error:t})]}):v.jsx(zt,{p:2,children:"Loading..."})};function Dm(e){return ye({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}function gN(e){return ye({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75a4.5 4.5 0 0 1-4.884 4.484c-1.076-.091-2.264.071-2.95.904l-7.152 8.684a2.548 2.548 0 1 1-3.586-3.586l8.684-7.152c.833-.686.995-1.874.904-2.95a4.5 4.5 0 0 1 6.336-4.486l-3.276 3.276a3.004 3.004 0 0 0 2.25 2.25l3.276-3.276c.256.565.398 1.192.398 1.852Z"},child:[]},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}const pN=({onEnterMaintenance:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=Yu(),[i,s]=w.useState(""),a=F5({onError:c=>{e({description:`Unable to set worker ${t} to maintenance mode: ${c}`,title:"Setting Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to be in maintenance mode.`,title:"Maintenance Mode activated",type:"success"})}}),l=()=>{a.mutate({requestBody:{maintenance_comment:i},workerName:t})};return v.jsxs(v.Fragment,{children:[v.jsx(ps,{size:"sm",variant:"ghost","aria-label":"Enter Maintenance",title:"Enter Maintenance",onClick:r,children:v.jsx(Dm,{})}),v.jsx(Ng,{onOpenChange:n,open:o,size:"md",children:v.jsxs(tf,{children:[v.jsx(Dg,{}),v.jsx(_g,{children:v.jsxs(Ag,{children:[v.jsx($g,{children:v.jsxs(Vg,{children:["Set maintenance for worker ",t]})}),v.jsx(zg,{children:v.jsx(nP,{placeholder:"Enter maintenance comment (required)",value:i,onChange:c=>s(c.target.value),required:!0,maxLength:1024,size:"sm"})}),v.jsxs(Mg,{children:[v.jsx(Fg,{asChild:!0,children:v.jsx(Po,{variant:"outline",children:"Cancel"})}),v.jsx(Po,{onClick:l,disabled:!i.trim(),children:"Confirm Maintenance"})]}),v.jsx(Lg,{asChild:!0,children:v.jsx(Ig,{size:"sm"})})]})})]})})]})};function mN(e){return ye({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M215.469 332.802l29.863 29.864L352 256 245.332 149.333l-29.863 29.865 55.469 55.469H64v42.666h205.864l-54.395 55.469zM405.334 64H106.666C83.198 64 64 83.198 64 106.666V192h42.666v-85.333h298.668v298.668H106.666V320H64v85.334C64 428.802 83.198 448 106.666 448h298.668C428.802 448 448 428.802 448 405.334V106.666C448 83.198 428.802 64 405.334 64z"},child:[]}]})(e)}const vN=({onExitMaintenance:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=Yu(),i=D5({onError:a=>{e({description:`Unable to exit ${t} from maintenance mode: ${a}`,title:"Exit Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to exit maintenance mode.`,title:"Maintenance Mode deactivated",type:"success"}),n()}}),s=()=>{i.mutate({workerName:t})};return v.jsxs(v.Fragment,{children:[v.jsx(ps,{size:"sm",variant:"ghost",onClick:r,"aria-label":"Exit Maintenance",title:"Exit Maintenance",children:v.jsx(mN,{})}),v.jsx(Ng,{onOpenChange:n,open:o,size:"md",children:v.jsxs(tf,{children:[v.jsx(Dg,{}),v.jsx(_g,{children:v.jsxs(Ag,{children:[v.jsx($g,{children:v.jsxs(Vg,{children:["Exit maintenance for worker ",t]})}),v.jsx(zg,{children:v.jsxs(Ku,{children:["Are you sure you want to exit maintenance mode for worker ",t,"?"]})}),v.jsxs(Mg,{children:[v.jsx(Fg,{asChild:!0,children:v.jsx(Po,{variant:"outline",children:"No"})}),v.jsx(Po,{onClick:s,colorScheme:"red",children:"Yes"})]}),v.jsx(Lg,{asChild:!0,children:v.jsx(Ig,{size:"sm"})})]})})]})})]})},bN=({onOperations:e,worker:t})=>{const n=t.worker_name,r=t.state,o=i=>{Z5.create(i),e()};return r==="idle"||r==="running"?v.jsx(Bl,{justifyContent:"end",children:v.jsx(pN,{onEnterMaintenance:o,workerName:n})}):r==="maintenance pending"||r==="maintenance mode"||r==="maintenance request"||r==="offline maintenance"?v.jsxs(QI,{gap:2,align:"stretch",children:[v.jsx(zt,{fontSize:"sm",whiteSpace:"pre-wrap",children:t.maintenance_comments||"No comment"}),v.jsx(Bl,{justifyContent:"end",children:v.jsx(vN,{onExitMaintenance:o,workerName:n})})]}):null};function yN(e){return ye({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m22 3.41-.12-1.26-1.2.4a13.84 13.84 0 0 1-6.41.64 11.87 11.87 0 0 0-6.68.9A7.23 7.23 0 0 0 3.3 9.5a9 9 0 0 0 .39 4.58 16.6 16.6 0 0 1 1.18-2.2 9.85 9.85 0 0 1 4.07-3.43 11.16 11.16 0 0 1 5.06-1A12.08 12.08 0 0 0 9.34 9.2a9.48 9.48 0 0 0-1.86 1.53 11.38 11.38 0 0 0-1.39 1.91 16.39 16.39 0 0 0-1.57 4.54A26.42 26.42 0 0 0 4 22h2a30.69 30.69 0 0 1 .59-4.32 9.25 9.25 0 0 0 4.52 1.11 11 11 0 0 0 4.28-.87C23 14.67 22 3.86 22 3.41z"},child:[]}]})(e)}function xN(e){return ye({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M93.72 183.25C49.49 198.05 16 233.1 16 288c0 66 54 112 120 112h184.37m147.45-22.26C485.24 363.3 496 341.61 496 312c0-59.82-53-85.76-96-88-8.89-89.54-71-144-144-144-26.16 0-48.79 6.93-67.6 18.14"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M448 448 64 64"},child:[]}]})(e)}function CN(e){return ye({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12.0001 18C12.7144 18 13.3704 18.2497 13.8856 18.6665L12.0001 21L10.1145 18.6665C10.6297 18.2497 11.2857 18 12.0001 18ZM2.80766 1.39343L20.4853 19.0711L19.0711 20.4853L13.8913 15.3042C13.2967 15.1069 12.6609 15 12.0001 15C10.5719 15 9.26024 15.499 8.22998 16.3322L6.97363 14.7759C8.24961 13.7442 9.84925 13.0969 11.5964 13.01L9.00025 10.414C7.55273 10.8234 6.22651 11.5217 5.0878 12.4426L3.83099 10.8868C4.89946 10.0226 6.10763 9.32438 7.41633 8.83118L5.13168 6.5451C3.98878 7.08913 2.92058 7.76472 1.94666 8.55228L0.689453 6.99674C1.60358 6.25747 2.59156 5.60589 3.64058 5.05479L1.39345 2.80765L2.80766 1.39343ZM14.5004 10.2854L12.2165 8.00243L12 8C15.0947 8 17.9369 9.08141 20.1693 10.8869L18.9123 12.4426C17.6438 11.4167 16.1427 10.6672 14.5004 10.2854ZM12.0001 3.00003C16.2849 3.00003 20.22 4.49719 23.3109 6.99691L22.0534 8.55228C19.3061 6.33062 15.8085 5.00003 12.0001 5.00003C11.122 5.00003 10.2604 5.07077 9.42075 5.20685L7.72455 3.51088C9.09498 3.17702 10.5268 3.00003 12.0001 3.00003Z"},child:[]}]})(e)}const kN=({state:e,...t})=>{switch(e){case"starting":return v.jsx(Vm,{...t});case"running":return v.jsx(Am,{...t});case"idle":return v.jsx(yN,{...t});case"shutdown request":case"terminating":return v.jsx(tN,{...t});case"offline":return v.jsx(xN,{...t});case"unknown":return v.jsx(CN,{...t});case"maintenance request":case"maintenance pending":case"maintenance exit":return v.jsx(gN,{...t});case"maintenance mode":case"offline maintenance":return v.jsx(Dm,{...t});default:return v.jsx(Nm,{...t})}},SN=e=>{switch(e){case"starting":case"maintenance request":case"maintenance exit":return"yellow";case"running":return"green";case"idle":return"teal";case"shutdown request":case"terminating":return"purple";case"offline":case"offline maintenance":return"black";case"unknown":return"red";case"maintenance mode":case"maintenance pending":return"orange";default:return"gray"}},wN=e=>{switch(e){case"starting":return"Edge Worker is in initialization.";case"running":return"Edge Worker is actively running a task.";case"idle":return"Edge Worker is active and waiting for a task.";case"shutdown request":return"Request to shutdown Edge Worker.";case"terminating":return"Edge Worker is completing work and stopping.";case"offline":return"Edge Worker was shut down.";case"unknown":return"No heartbeat signal from worker for some time, Edge Worker probably down.";case"maintenance request":return"Worker was requested to enter maintenance mode. Once worker receives this it will pause fetching jobs.";case"maintenance pending":return"Edge worker received the request for maintenance, waiting for jobs to finish. Once jobs are finished will move to 'maintenance mode'.";case"maintenance mode":return"Edge worker is in maintenance mode. It is online but pauses fetching jobs.";case"maintenance exit":return"Request worker to exit maintenance mode. Once the worker receives this state it will un-pause and fetch new jobs.";case"offline maintenance":return"Worker was shut down in maintenance mode. It will be in maintenance mode when restarted.";default:return}},EN=O.forwardRef(({children:e,state:t,...n},r)=>v.jsxs(Og,{borderRadius:"full",colorPalette:SN(t),fontSize:"sm",px:e===void 0?1:2,py:1,ref:r,title:wN(t),variant:"solid",...n,children:[t===void 0?void 0:v.jsx(kN,{state:t}),e]})),ON=()=>{const{data:e,error:t,refetch:n}=V5(void 0,{enabled:!0,refetchInterval:Lm});return e?v.jsxs(zt,{p:2,children:[v.jsxs(jg,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[v.jsx(Bg,{children:v.jsxs(vs,{children:[v.jsx(Ne,{children:"Worker Name"}),v.jsx(Ne,{children:"State"}),v.jsx(Ne,{children:"Queues"}),v.jsx(Ne,{children:"First Online"}),v.jsx(Ne,{children:"Last Heartbeat"}),v.jsx(Ne,{children:"Active Jobs"}),v.jsx(Ne,{children:"System Information"}),v.jsx(Ne,{children:"Operations"})]})}),v.jsx(Wg,{children:e.workers.map(r=>v.jsxs(vs,{id:r.worker_name,children:[v.jsx(_e,{children:r.worker_name}),v.jsx(_e,{children:v.jsx(EN,{state:r.state,children:r.state})}),v.jsx(_e,{children:r.queues?v.jsx("ul",{children:r.queues.map(o=>v.jsx("li",{children:o},o))}):"(default)"}),v.jsx(_e,{children:r.first_online?v.jsx(Us,{date:r.first_online,live:!1}):void 0}),v.jsx(_e,{children:r.last_heartbeat?v.jsx(Us,{date:r.last_heartbeat,live:!1}):void 0}),v.jsx(_e,{children:r.jobs_active}),v.jsx(_e,{children:r.sysinfo?v.jsx("ul",{children:Object.entries(r.sysinfo).map(([o,i])=>v.jsxs("li",{children:[o,": ",i]},o))}):"N/A"}),v.jsx(_e,{children:v.jsx(bN,{worker:r,onOperations:n})})]},r.worker_name))})]}),v.jsx(eN,{})]}):t?v.jsxs(zt,{p:2,children:[v.jsx("p",{children:"Unable to load data:"}),v.jsx(_m,{error:t})]}):v.jsx(zt,{p:2,children:"Loading..."})},IN=({tabs:e})=>{const t=w.useRef(null),n=uN(t);return v.jsx(Bl,{alignItems:"center",borderBottomWidth:1,mb:2,ref:t,children:e.map(({icon:r,label:o,value:i})=>v.jsx(f5,{end:!0,title:o,to:{pathname:i},children:({isActive:s})=>v.jsx(Pg,{borderBottomColor:"border.info",borderBottomWidth:s?3:0,color:s?"fg":"fg.muted",fontWeight:"bold",height:"40px",mb:"-2px",pb:s?0:"3px",px:4,transition:"all 0.2s ease",children:n>600||!r?o:r})},i))})},PN=()=>{const e=[{label:"Edge Worker",value:"plugin/edge_worker"},{label:"Edge Jobs",value:"plugin/edge_jobs"}];return v.jsx(zt,{p:2,children:v.jsxs(u5,{children:[v.jsx(IN,{tabs:e}),v.jsxs(r5,{children:[v.jsx(pc,{path:"plugin/edge_worker",element:v.jsx(ON,{})}),v.jsx(pc,{path:"plugin/edge_jobs",element:v.jsx(fN,{})})]})]})})};/*! * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information @@ -203,7 +155,4 @@ * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - */const J=(e,t="white")=>({solid:{value:`{colors.${e}.600}`},contrast:{value:{_light:"white",_dark:t}},fg:{value:{_light:`{colors.${e}.800}`,_dark:`{colors.${e}.200}`}},muted:{value:{_light:`{colors.${e}.200}`,_dark:`{colors.${e}.800}`}},subtle:{value:{_light:`{colors.${e}.100}`,_dark:`{colors.${e}.900}`}},emphasized:{value:{_light:`{colors.${e}.300}`,_dark:`{colors.${e}.700}`}},focusRing:{value:{_light:`{colors.${e}.800}`,_dark:`{colors.${e}.200}`}}}),RN=Pl({theme:{tokens:{colors:{black:{value:"oklch(0.23185 0.0323 266.44)"},brand:{50:{value:"oklch(0.98 0.006 248.717)"},100:{value:"oklch(0.962 0.012 249.460)"},200:{value:"oklch(0.923 0.023 255.082)"},300:{value:"oklch(0.865 0.039 252.420)"},400:{value:"oklch(0.705 0.066 256.378)"},500:{value:"oklch(0.575 0.08 257.759)"},600:{value:"oklch(0.469 0.084 257.657)"},700:{value:"oklch(0.399 0.084 257.850)"},800:{value:"oklch(0.324 0.072 260.329)"},900:{value:"oklch(0.259 0.062 265.566)"},950:{value:"oklch(0.179 0.05 265.487)"}},gray:{50:{value:"oklch(0.985 0.004 253)"},100:{value:"oklch(0.955 0.006 253)"},200:{value:"oklch(0.915 0.01 253)"},300:{value:"oklch(0.85 0.016 253)"},400:{value:"oklch(0.75 0.025 252)"},500:{value:"oklch(0.63, 0.04, 252)"},600:{value:"oklch(0.45 0.055 251)"},700:{value:"oklch(0.35 0.045 251)"},800:{value:"oklch(0.28 0.035 251)"},900:{value:"oklch(0.18 0.03 251)"},950:{value:"oklch(0.11 0.025 251)"}},red:{50:{value:"oklch(0.971 0.013 17.38)"},100:{value:"oklch(0.936 0.032 17.717)"},200:{value:"oklch(0.885 0.062 18.334)"},300:{value:"oklch(0.808 0.114 19.571)"},400:{value:"oklch(0.704 0.191 22.216)"},500:{value:"oklch(0.637 0.237 25.331)"},600:{value:"oklch(0.577 0.245 27.325)"},700:{value:"oklch(0.505 0.213 27.518)"},800:{value:"oklch(0.444 0.177 26.899)"},900:{value:"oklch(0.396 0.141 25.723)"},950:{value:"oklch(0.258 0.092 26.042)"}},orange:{50:{value:"oklch(0.982 0.013 83.915)"},100:{value:"oklch(0.961 0.033 82.320)"},200:{value:"oklch(0.918 0.065 79.975)"},300:{value:"oklch(0.857 0.118 76.815)"},400:{value:"oklch(0.7492 0.1439 62.081)"},500:{value:"oklch(0.6462 0.1979 43.792)"},600:{value:"oklch(0.5902 0.198 35.93)"},700:{value:"oklch(0.553 0.184 41.777)"},800:{value:"oklch(0.469 0.144 45.164)"},900:{value:"oklch(0.414 0.110 48.717)"},950:{value:"oklch(0.271 0.069 52.345)"}},amber:{50:{value:"oklch(0.987 0.022 95.277)"},100:{value:"oklch(0.962 0.059 95.617)"},200:{value:"oklch(0.924 0.12 95.746)"},300:{value:"oklch(0.879 0.169 91.605)"},400:{value:"oklch(0.828 0.189 84.429)"},500:{value:"oklch(0.769 0.188 70.08)"},600:{value:"oklch(0.666 0.179 58.318)"},700:{value:"oklch(0.555 0.163 48.998)"},800:{value:"oklch(0.473 0.137 46.201)"},900:{value:"oklch(0.414 0.112 45.904)"},950:{value:"oklch(0.279 0.077 45.635)"}},yellow:{50:{value:"oklch(0.987 0.026 102.212)"},100:{value:"oklch(0.973 0.071 103.193)"},200:{value:"oklch(0.945 0.129 101.54)"},300:{value:"oklch(0.905 0.182 98.111)"},400:{value:"oklch(0.852 0.199 91.936)"},500:{value:"oklch(0.795 0.184 86.047)"},600:{value:"oklch(0.681 0.162 75.834)"},700:{value:"oklch(0.554 0.135 66.442)"},800:{value:"oklch(0.476 0.114 61.907)"},900:{value:"oklch(0.421 0.095 57.708)"},950:{value:"oklch(0.286 0.066 53.813)"}},lime:{50:{value:"oklch(0.986 0.031 120.757)"},100:{value:"oklch(0.967 0.067 122.328)"},200:{value:"oklch(0.938 0.127 124.321)"},300:{value:"oklch(0.897 0.196 126.665)"},400:{value:"oklch(0.841 0.238 128.85)"},500:{value:"oklch(0.768 0.233 130.85)"},600:{value:"oklch(0.648 0.2 131.684)"},700:{value:"oklch(0.532 0.157 131.589)"},800:{value:"oklch(0.453 0.124 130.933)"},900:{value:"oklch(0.405 0.101 131.063)"},950:{value:"oklch(0.274 0.072 132.109)"}},green:{50:{value:"oklch(0.982 0.018 155.826)"},100:{value:"oklch(0.962 0.044 156.743)"},200:{value:"oklch(0.925 0.084 155.995)"},300:{value:"oklch(0.75 0.18 153.0)"},400:{value:"oklch(0.625 0.209 150.0)"},500:{value:"oklch(0.528 0.219 149.579)"},600:{value:"oklch(0.47 0.20 149.0)"},700:{value:"oklch(0.40 0.16 149.5)"},800:{value:"oklch(0.448 0.119 151.328)"},900:{value:"oklch(0.393 0.095 152.535)"},950:{value:"oklch(0.266 0.065 152.934)"}},emerald:{50:{value:"oklch(0.979 0.021 166.113)"},100:{value:"oklch(0.95 0.052 163.051)"},200:{value:"oklch(0.905 0.093 164.15)"},300:{value:"oklch(0.845 0.143 164.978)"},400:{value:"oklch(0.765 0.177 163.223)"},500:{value:"oklch(0.696 0.17 162.48)"},600:{value:"oklch(0.596 0.145 163.225)"},700:{value:"oklch(0.508 0.118 165.612)"},800:{value:"oklch(0.432 0.095 166.913)"},900:{value:"oklch(0.378 0.077 168.94)"},950:{value:"oklch(0.262 0.051 172.552)"}},teal:{50:{value:"oklch(0.984 0.014 180.72)"},100:{value:"oklch(0.953 0.051 180.801)"},200:{value:"oklch(0.91 0.096 180.426)"},300:{value:"oklch(0.855 0.138 181.071)"},400:{value:"oklch(0.777 0.152 181.912)"},500:{value:"oklch(0.704 0.14 182.503)"},600:{value:"oklch(0.6 0.118 184.704)"},700:{value:"oklch(0.511 0.096 186.391)"},800:{value:"oklch(0.437 0.078 188.216)"},900:{value:"oklch(0.386 0.063 188.416)"},950:{value:"oklch(0.277 0.046 192.524)"}},cyan:{50:{value:"oklch(0.984 0.019 200.873)"},100:{value:"oklch(0.956 0.045 203.388)"},200:{value:"oklch(0.917 0.08 205.041)"},300:{value:"oklch(0.865 0.127 207.078)"},400:{value:"oklch(0.789 0.154 211.53)"},500:{value:"oklch(0.715 0.143 215.221)"},600:{value:"oklch(0.609 0.126 221.723)"},700:{value:"oklch(0.52 0.105 223.128)"},800:{value:"oklch(0.45 0.085 224.283)"},900:{value:"oklch(0.398 0.07 227.392)"},950:{value:"oklch(0.302 0.056 229.695)"}},sky:{50:{value:"oklch(0.977 0.013 236.62)"},100:{value:"oklch(0.951 0.026 236.824)"},200:{value:"oklch(0.901 0.058 230.902)"},300:{value:"oklch(0.828 0.111 230.318)"},400:{value:"oklch(0.746 0.16 232.661)"},500:{value:"oklch(0.685 0.169 237.323)"},600:{value:"oklch(0.588 0.158 241.966)"},700:{value:"oklch(0.5 0.134 242.749)"},800:{value:"oklch(0.443 0.11 240.79)"},900:{value:"oklch(0.391 0.09 240.876)"},950:{value:"oklch(0.293 0.066 243.157)"}},blue:{50:{value:"oklch(0.97 0.014 254.604)"},100:{value:"oklch(0.932 0.032 255.585)"},200:{value:"oklch(0.882 0.059 254.128)"},300:{value:"oklch(0.809 0.105 251.813)"},400:{value:"oklch(0.707 0.165 254.624)"},500:{value:"oklch(0.623 0.214 259.815)"},600:{value:"oklch(0.546 0.245 262.881)"},700:{value:"oklch(0.488 0.243 264.376)"},800:{value:"oklch(0.424 0.199 265.638)"},900:{value:"oklch(0.379 0.146 265.522)"},950:{value:"oklch(0.282 0.091 267.935)"}},indigo:{50:{value:"oklch(0.962 0.018 272.314)"},100:{value:"oklch(0.93 0.034 272.788)"},200:{value:"oklch(0.87 0.065 274.039)"},300:{value:"oklch(0.785 0.115 274.713)"},400:{value:"oklch(0.673 0.182 276.935)"},500:{value:"oklch(0.585 0.233 277.117)"},600:{value:"oklch(0.511 0.262 276.966)"},700:{value:"oklch(0.457 0.24 277.023)"},800:{value:"oklch(0.398 0.195 277.366)"},900:{value:"oklch(0.359 0.144 278.697)"},950:{value:"oklch(0.257 0.09 281.288)"}},violet:{50:{value:"oklch(0.969 0.016 293.756)"},100:{value:"oklch(0.943 0.029 294.588)"},200:{value:"oklch(0.894 0.057 293.283)"},300:{value:"oklch(0.811 0.111 293.571)"},400:{value:"oklch(0.702 0.183 293.541)"},500:{value:"oklch(0.606 0.25 292.717)"},600:{value:"oklch(0.541 0.281 293.009)"},700:{value:"oklch(0.491 0.27 292.581)"},800:{value:"oklch(0.432 0.232 292.759)"},900:{value:"oklch(0.38 0.189 293.745)"},950:{value:"oklch(0.283 0.141 291.089)"}},purple:{50:{value:"oklch(0.977 0.014 308.299)"},100:{value:"oklch(0.946 0.033 307.174)"},200:{value:"oklch(0.902 0.063 306.703)"},300:{value:"oklch(0.827 0.119 306.383)"},400:{value:"oklch(0.714 0.203 305.504)"},500:{value:"oklch(0.627 0.265 303.9)"},600:{value:"oklch(0.558 0.288 302.321)"},700:{value:"oklch(0.496 0.265 301.924)"},800:{value:"oklch(0.438 0.218 303.724)"},900:{value:"oklch(0.381 0.176 304.987)"},950:{value:"oklch(0.291 0.149 302.717)"}},fuchsia:{50:{value:"oklch(0.977 0.017 320.058)"},100:{value:"oklch(0.952 0.037 318.852)"},200:{value:"oklch(0.903 0.076 319.62)"},300:{value:"oklch(0.833 0.145 321.434)"},400:{value:"oklch(0.74 0.238 322.16)"},500:{value:"oklch(0.667 0.295 322.15)"},600:{value:"oklch(0.591 0.293 322.896)"},700:{value:"oklch(0.518 0.253 323.949)"},800:{value:"oklch(0.452 0.211 324.591)"},900:{value:"oklch(0.401 0.17 325.612)"},950:{value:"oklch(0.293 0.136 325.661)"}},pink:{50:{value:"oklch(0.971 0.014 343.198)"},100:{value:"oklch(0.948 0.028 342.258)"},200:{value:"oklch(0.899 0.061 343.231)"},300:{value:"oklch(0.823 0.12 346.018)"},400:{value:"oklch(0.718 0.202 349.761)"},500:{value:"oklch(0.656 0.241 354.308)"},600:{value:"oklch(0.592 0.249 0.584)"},700:{value:"oklch(0.525 0.223 3.958)"},800:{value:"oklch(0.459 0.187 3.815)"},900:{value:"oklch(0.408 0.153 2.432)"},950:{value:"oklch(0.284 0.109 3.907)"}},rose:{50:{value:"oklch(0.969 0.015 12.422)"},100:{value:"oklch(0.941 0.03 12.58)"},200:{value:"oklch(0.892 0.058 10.001)"},300:{value:"oklch(0.81 0.117 11.638)"},400:{value:"oklch(0.712 0.194 13.428)"},500:{value:"oklch(0.645 0.246 16.439)"},600:{value:"oklch(0.586 0.253 17.585)"},700:{value:"oklch(0.514 0.222 16.935)"},800:{value:"oklch(0.455 0.188 13.697)"},900:{value:"oklch(0.41 0.159 10.272)"},950:{value:"oklch(0.271 0.105 12.094)"}},slate:{50:{value:"oklch(0.984 0.003 247.858)"},100:{value:"oklch(0.968 0.007 247.896)"},200:{value:"oklch(0.929 0.013 255.508)"},300:{value:"oklch(0.869 0.022 252.894)"},400:{value:"oklch(0.704 0.04 256.788)"},500:{value:"oklch(0.554 0.046 257.417)"},600:{value:"oklch(0.446 0.043 257.281)"},700:{value:"oklch(0.372 0.044 257.287)"},800:{value:"oklch(0.279 0.041 260.031)"},900:{value:"oklch(0.208 0.042 265.755)"},950:{value:"oklch(0.129 0.042 264.695)"}},zinc:{50:{value:"oklch(0.985 0 0)"},100:{value:"oklch(0.967 0.001 286.375)"},200:{value:"oklch(0.92 0.004 286.32)"},300:{value:"oklch(0.871 0.006 286.286)"},400:{value:"oklch(0.705 0.015 286.067)"},500:{value:"oklch(0.552 0.016 285.938)"},600:{value:"oklch(0.442 0.017 285.786)"},700:{value:"oklch(0.37 0.013 285.805)"},800:{value:"oklch(0.274 0.006 286.033)"},900:{value:"oklch(0.21 0.006 285.885)"},950:{value:"oklch(0.141 0.005 285.823)"}},neutral:{50:{value:"oklch(0.985 0 0)"},100:{value:"oklch(0.97 0 0)"},200:{value:"oklch(0.922 0 0)"},300:{value:"oklch(0.87 0 0)"},400:{value:"oklch(0.708 0 0)"},500:{value:"oklch(0.556 0 0)"},600:{value:"oklch(0.439 0 0)"},700:{value:"oklch(0.371 0 0)"},800:{value:"oklch(0.269 0 0)"},900:{value:"oklch(0.205 0 0)"},950:{value:"oklch(0.145 0 0)"}},stone:{50:{value:"oklch(0.985 0.001 106.423)"},100:{value:"oklch(0.97 0.001 106.424)"},200:{value:"oklch(0.923 0.003 48.717)"},300:{value:"oklch(0.869 0.005 56.366)"},400:{value:"oklch(0.709 0.01 56.259)"},500:{value:"oklch(0.553 0.013 58.071)"},600:{value:"oklch(0.444 0.011 73.639)"},700:{value:"oklch(0.374 0.01 67.558)"},800:{value:"oklch(0.268 0.007 34.298)"},900:{value:"oklch(0.216 0.006 56.043)"},950:{value:"oklch(0.147 0.004 49.25)"}}}},semanticTokens:{colors:{brand:J("brand"),danger:J("red"),info:J("blue"),warning:J("amber"),error:J("red"),active:J("blue"),success:J("green"),failed:J("red"),queued:J("stone"),skipped:J("pink"),up_for_reschedule:J("sky"),up_for_retry:J("yellow"),upstream_failed:J("orange"),running:J("cyan"),restarting:J("violet"),deferred:J("purple"),scheduled:J("zinc"),none:J("gray"),removed:J("slate"),red:J("red"),orange:J("orange"),amber:J("amber"),yellow:J("yellow"),lime:J("lime"),green:J("green"),emerald:J("emerald"),teal:J("teal"),cyan:J("cyan"),sky:J("sky"),blue:J("blue"),indigo:J("indigo"),violet:J("violet"),purple:J("purple"),fuchsia:J("fuchsia"),pink:J("pink"),rose:J("rose"),slate:J("slate"),gray:J("gray"),zinc:J("zinc"),neutral:J("neutral"),stone:J("stone")}}}}),TN=rg(bg,RN);return()=>{pe.interceptors.request.use(hN);const e=new EP({defaultOptions:{queries:{staleTime:1/0}}});return v.jsx(ub,{value:TN,children:v.jsx(OP,{client:e,children:v.jsx(fT,{children:v.jsx(PN,{})})})})}}); -======= - */const hn=(e,t="white")=>({solid:{value:`{colors.${e}.600}`},contrast:{value:{_light:"white",_dark:t}},fg:{value:{_light:`{colors.${e}.800}`,_dark:`{colors.${e}.200}`}},muted:{value:{_light:`{colors.${e}.200}`,_dark:`{colors.${e}.800}`}},subtle:{value:{_light:`{colors.${e}.100}`,_dark:`{colors.${e}.900}`}},emphasized:{value:{_light:`{colors.${e}.300}`,_dark:`{colors.${e}.700}`}},focusRing:{value:{_light:`{colors.${e}.800}`,_dark:`{colors.${e}.200}`}}}),HA=Sl({theme:{tokens:{colors:{success:{50:{value:"#E0FFE0"},100:{value:"#C2FFC2"},200:{value:"#80FF80"},300:{value:"#42FF42"},400:{value:"#00FF00"},500:{value:"#00C200"},600:{value:"#008000"},700:{value:"#006100"},800:{value:"#004200"},900:{value:"#001F00"},950:{value:"#000F00"}},failed:((qv=(Gv=(Uv=dt.theme)==null?void 0:Uv.tokens)==null?void 0:Gv.colors)==null?void 0:qv.red)??{},queued:{50:{value:"#F5F5F5"},100:{value:"#EBEBEB"},200:{value:"#D4D4D4"},300:{value:"#BFBFBF"},400:{value:"#ABABAB"},500:{value:"#969696"},600:{value:"#808080"},700:{value:"#616161"},800:{value:"#404040"},900:{value:"#212121"},950:{value:"#0F0F0F"}},skipped:((Yv=(Xv=(Kv=dt.theme)==null?void 0:Kv.tokens)==null?void 0:Xv.colors)==null?void 0:Yv.pink)??{},up_for_reschedule:((Zv=(Jv=(Qv=dt.theme)==null?void 0:Qv.tokens)==null?void 0:Jv.colors)==null?void 0:Zv.cyan)??{},up_for_retry:((nb=(tb=(eb=dt.theme)==null?void 0:eb.tokens)==null?void 0:tb.colors)==null?void 0:nb.yellow)??{},upstream_failed:((ob=(ib=(rb=dt.theme)==null?void 0:rb.tokens)==null?void 0:ib.colors)==null?void 0:ob.orange)??{},running:{50:{value:"#EFFBEF"},100:{value:"#DEF7DE"},200:{value:"#B9EEB9"},300:{value:"#98E698"},400:{value:"#78DE78"},500:{value:"#53D553"},600:{value:"#32CD32"},700:{value:"#269C26"},800:{value:"#196719"},900:{value:"#0D350D"},950:{value:"#061906"}},restarting:{50:{value:"#F6EBFF"},100:{value:"#EDD6FF"},200:{value:"#D9A8FF"},300:{value:"#C880FF"},400:{value:"#B657FF"},500:{value:"#A229FF"},600:{value:"#8F00FF"},700:{value:"#6E00C2"},800:{value:"#480080"},900:{value:"#260042"},950:{value:"#11001F"}},deferred:{50:{value:"#F6F3FC"},100:{value:"#EDE7F9"},200:{value:"#DACEF3"},300:{value:"#C8B6ED"},400:{value:"#B9A1E7"},500:{value:"#A689E1"},600:{value:"#9370DB"},700:{value:"#6432C8"},800:{value:"#412182"},900:{value:"#211041"},950:{value:"#100821"}},scheduled:{50:{value:"#FBF8F4"},100:{value:"#F8F3ED"},200:{value:"#F1E7DA"},300:{value:"#E8D9C4"},400:{value:"#E1CDB2"},500:{value:"#DAC1A0"},600:{value:"#D2B48C"},700:{value:"#B9894B"},800:{value:"#7D5C31"},900:{value:"#3E2E18"},950:{value:"#21180D"}},none:{50:{value:"#F7FBFD"},100:{value:"#F3F9FB"},200:{value:"#E4F2F7"},300:{value:"#D8ECF3"},400:{value:"#C8E5EE"},500:{value:"#BDDFEB"},600:{value:"#ADD8E6"},700:{value:"#5FB2CE"},800:{value:"#30819C"},900:{value:"#18414E"},950:{value:"#0C2027"}},removed:{50:{value:"#FCFCFC"},100:{value:"#F7F7F7"},200:{value:"#F0F0F0"},300:{value:"#E8E8E8"},400:{value:"#E0E0E0"},500:{value:"#DBDBDB"},600:{value:"#D3D3D3"},700:{value:"#9E9E9E"},800:{value:"#696969"},900:{value:"#363636"},950:{value:"#1A1A1A"}}}},semanticTokens:{colors:{success:hn("success"),failed:((lb=(ab=(sb=dt.theme)==null?void 0:sb.semanticTokens)==null?void 0:ab.colors)==null?void 0:lb.red)??{},queued:hn("queued"),skipped:((db=(ub=(cb=dt.theme)==null?void 0:cb.semanticTokens)==null?void 0:ub.colors)==null?void 0:db.pink)??{},up_for_reschedule:((gb=(fb=(hb=dt.theme)==null?void 0:hb.semanticTokens)==null?void 0:fb.colors)==null?void 0:gb.cyan)??{},up_for_retry:((vb=(mb=(pb=dt.theme)==null?void 0:pb.semanticTokens)==null?void 0:mb.colors)==null?void 0:vb.yellow)??{},upstream_failed:((xb=(yb=(bb=dt.theme)==null?void 0:bb.semanticTokens)==null?void 0:yb.colors)==null?void 0:xb.orange)??{},running:hn("running"),restarting:hn("restarting"),deferred:hn("deferred"),scheduled:hn("scheduled"),none:hn("none","black"),removed:hn("removed","black")}}}}),UA=Qf(dt,HA);return()=>{ge.interceptors.request.use(PA);const e=new jR({defaultOptions:{queries:{staleTime:1/0}}});return v.jsx(By,{value:UA,children:v.jsx(WR,{client:e,children:v.jsx(T2,{children:v.jsx(WA,{})})})})}}); ->>>>>>> 3f3a37a363 (Add confirmation dialog for exit maintenance action in Edge Worker Page) + */const J=(e,t="white")=>({solid:{value:`{colors.${e}.600}`},contrast:{value:{_light:"white",_dark:t}},fg:{value:{_light:`{colors.${e}.800}`,_dark:`{colors.${e}.200}`}},muted:{value:{_light:`{colors.${e}.200}`,_dark:`{colors.${e}.800}`}},subtle:{value:{_light:`{colors.${e}.100}`,_dark:`{colors.${e}.900}`}},emphasized:{value:{_light:`{colors.${e}.300}`,_dark:`{colors.${e}.700}`}},focusRing:{value:{_light:`{colors.${e}.800}`,_dark:`{colors.${e}.200}`}}}),RN=Rl({theme:{tokens:{colors:{black:{value:"oklch(0.23185 0.0323 266.44)"},brand:{50:{value:"oklch(0.98 0.006 248.717)"},100:{value:"oklch(0.962 0.012 249.460)"},200:{value:"oklch(0.923 0.023 255.082)"},300:{value:"oklch(0.865 0.039 252.420)"},400:{value:"oklch(0.705 0.066 256.378)"},500:{value:"oklch(0.575 0.08 257.759)"},600:{value:"oklch(0.469 0.084 257.657)"},700:{value:"oklch(0.399 0.084 257.850)"},800:{value:"oklch(0.324 0.072 260.329)"},900:{value:"oklch(0.259 0.062 265.566)"},950:{value:"oklch(0.179 0.05 265.487)"}},gray:{50:{value:"oklch(0.985 0.004 253)"},100:{value:"oklch(0.955 0.006 253)"},200:{value:"oklch(0.915 0.01 253)"},300:{value:"oklch(0.85 0.016 253)"},400:{value:"oklch(0.75 0.025 252)"},500:{value:"oklch(0.63, 0.04, 252)"},600:{value:"oklch(0.45 0.055 251)"},700:{value:"oklch(0.35 0.045 251)"},800:{value:"oklch(0.28 0.035 251)"},900:{value:"oklch(0.18 0.03 251)"},950:{value:"oklch(0.11 0.025 251)"}},red:{50:{value:"oklch(0.971 0.013 17.38)"},100:{value:"oklch(0.936 0.032 17.717)"},200:{value:"oklch(0.885 0.062 18.334)"},300:{value:"oklch(0.808 0.114 19.571)"},400:{value:"oklch(0.704 0.191 22.216)"},500:{value:"oklch(0.637 0.237 25.331)"},600:{value:"oklch(0.577 0.245 27.325)"},700:{value:"oklch(0.505 0.213 27.518)"},800:{value:"oklch(0.444 0.177 26.899)"},900:{value:"oklch(0.396 0.141 25.723)"},950:{value:"oklch(0.258 0.092 26.042)"}},orange:{50:{value:"oklch(0.982 0.013 83.915)"},100:{value:"oklch(0.961 0.033 82.320)"},200:{value:"oklch(0.918 0.065 79.975)"},300:{value:"oklch(0.857 0.118 76.815)"},400:{value:"oklch(0.7492 0.1439 62.081)"},500:{value:"oklch(0.6462 0.1979 43.792)"},600:{value:"oklch(0.5902 0.198 35.93)"},700:{value:"oklch(0.553 0.184 41.777)"},800:{value:"oklch(0.469 0.144 45.164)"},900:{value:"oklch(0.414 0.110 48.717)"},950:{value:"oklch(0.271 0.069 52.345)"}},amber:{50:{value:"oklch(0.987 0.022 95.277)"},100:{value:"oklch(0.962 0.059 95.617)"},200:{value:"oklch(0.924 0.12 95.746)"},300:{value:"oklch(0.879 0.169 91.605)"},400:{value:"oklch(0.828 0.189 84.429)"},500:{value:"oklch(0.769 0.188 70.08)"},600:{value:"oklch(0.666 0.179 58.318)"},700:{value:"oklch(0.555 0.163 48.998)"},800:{value:"oklch(0.473 0.137 46.201)"},900:{value:"oklch(0.414 0.112 45.904)"},950:{value:"oklch(0.279 0.077 45.635)"}},yellow:{50:{value:"oklch(0.987 0.026 102.212)"},100:{value:"oklch(0.973 0.071 103.193)"},200:{value:"oklch(0.945 0.129 101.54)"},300:{value:"oklch(0.905 0.182 98.111)"},400:{value:"oklch(0.852 0.199 91.936)"},500:{value:"oklch(0.795 0.184 86.047)"},600:{value:"oklch(0.681 0.162 75.834)"},700:{value:"oklch(0.554 0.135 66.442)"},800:{value:"oklch(0.476 0.114 61.907)"},900:{value:"oklch(0.421 0.095 57.708)"},950:{value:"oklch(0.286 0.066 53.813)"}},lime:{50:{value:"oklch(0.986 0.031 120.757)"},100:{value:"oklch(0.967 0.067 122.328)"},200:{value:"oklch(0.938 0.127 124.321)"},300:{value:"oklch(0.897 0.196 126.665)"},400:{value:"oklch(0.841 0.238 128.85)"},500:{value:"oklch(0.768 0.233 130.85)"},600:{value:"oklch(0.648 0.2 131.684)"},700:{value:"oklch(0.532 0.157 131.589)"},800:{value:"oklch(0.453 0.124 130.933)"},900:{value:"oklch(0.405 0.101 131.063)"},950:{value:"oklch(0.274 0.072 132.109)"}},green:{50:{value:"oklch(0.982 0.018 155.826)"},100:{value:"oklch(0.962 0.044 156.743)"},200:{value:"oklch(0.925 0.084 155.995)"},300:{value:"oklch(0.75 0.18 153.0)"},400:{value:"oklch(0.625 0.209 150.0)"},500:{value:"oklch(0.528 0.219 149.579)"},600:{value:"oklch(0.47 0.20 149.0)"},700:{value:"oklch(0.40 0.16 149.5)"},800:{value:"oklch(0.448 0.119 151.328)"},900:{value:"oklch(0.393 0.095 152.535)"},950:{value:"oklch(0.266 0.065 152.934)"}},emerald:{50:{value:"oklch(0.979 0.021 166.113)"},100:{value:"oklch(0.95 0.052 163.051)"},200:{value:"oklch(0.905 0.093 164.15)"},300:{value:"oklch(0.845 0.143 164.978)"},400:{value:"oklch(0.765 0.177 163.223)"},500:{value:"oklch(0.696 0.17 162.48)"},600:{value:"oklch(0.596 0.145 163.225)"},700:{value:"oklch(0.508 0.118 165.612)"},800:{value:"oklch(0.432 0.095 166.913)"},900:{value:"oklch(0.378 0.077 168.94)"},950:{value:"oklch(0.262 0.051 172.552)"}},teal:{50:{value:"oklch(0.984 0.014 180.72)"},100:{value:"oklch(0.953 0.051 180.801)"},200:{value:"oklch(0.91 0.096 180.426)"},300:{value:"oklch(0.855 0.138 181.071)"},400:{value:"oklch(0.777 0.152 181.912)"},500:{value:"oklch(0.704 0.14 182.503)"},600:{value:"oklch(0.6 0.118 184.704)"},700:{value:"oklch(0.511 0.096 186.391)"},800:{value:"oklch(0.437 0.078 188.216)"},900:{value:"oklch(0.386 0.063 188.416)"},950:{value:"oklch(0.277 0.046 192.524)"}},cyan:{50:{value:"oklch(0.984 0.019 200.873)"},100:{value:"oklch(0.956 0.045 203.388)"},200:{value:"oklch(0.917 0.08 205.041)"},300:{value:"oklch(0.865 0.127 207.078)"},400:{value:"oklch(0.789 0.154 211.53)"},500:{value:"oklch(0.715 0.143 215.221)"},600:{value:"oklch(0.609 0.126 221.723)"},700:{value:"oklch(0.52 0.105 223.128)"},800:{value:"oklch(0.45 0.085 224.283)"},900:{value:"oklch(0.398 0.07 227.392)"},950:{value:"oklch(0.302 0.056 229.695)"}},sky:{50:{value:"oklch(0.977 0.013 236.62)"},100:{value:"oklch(0.951 0.026 236.824)"},200:{value:"oklch(0.901 0.058 230.902)"},300:{value:"oklch(0.828 0.111 230.318)"},400:{value:"oklch(0.746 0.16 232.661)"},500:{value:"oklch(0.685 0.169 237.323)"},600:{value:"oklch(0.588 0.158 241.966)"},700:{value:"oklch(0.5 0.134 242.749)"},800:{value:"oklch(0.443 0.11 240.79)"},900:{value:"oklch(0.391 0.09 240.876)"},950:{value:"oklch(0.293 0.066 243.157)"}},blue:{50:{value:"oklch(0.97 0.014 254.604)"},100:{value:"oklch(0.932 0.032 255.585)"},200:{value:"oklch(0.882 0.059 254.128)"},300:{value:"oklch(0.809 0.105 251.813)"},400:{value:"oklch(0.707 0.165 254.624)"},500:{value:"oklch(0.623 0.214 259.815)"},600:{value:"oklch(0.546 0.245 262.881)"},700:{value:"oklch(0.488 0.243 264.376)"},800:{value:"oklch(0.424 0.199 265.638)"},900:{value:"oklch(0.379 0.146 265.522)"},950:{value:"oklch(0.282 0.091 267.935)"}},indigo:{50:{value:"oklch(0.962 0.018 272.314)"},100:{value:"oklch(0.93 0.034 272.788)"},200:{value:"oklch(0.87 0.065 274.039)"},300:{value:"oklch(0.785 0.115 274.713)"},400:{value:"oklch(0.673 0.182 276.935)"},500:{value:"oklch(0.585 0.233 277.117)"},600:{value:"oklch(0.511 0.262 276.966)"},700:{value:"oklch(0.457 0.24 277.023)"},800:{value:"oklch(0.398 0.195 277.366)"},900:{value:"oklch(0.359 0.144 278.697)"},950:{value:"oklch(0.257 0.09 281.288)"}},violet:{50:{value:"oklch(0.969 0.016 293.756)"},100:{value:"oklch(0.943 0.029 294.588)"},200:{value:"oklch(0.894 0.057 293.283)"},300:{value:"oklch(0.811 0.111 293.571)"},400:{value:"oklch(0.702 0.183 293.541)"},500:{value:"oklch(0.606 0.25 292.717)"},600:{value:"oklch(0.541 0.281 293.009)"},700:{value:"oklch(0.491 0.27 292.581)"},800:{value:"oklch(0.432 0.232 292.759)"},900:{value:"oklch(0.38 0.189 293.745)"},950:{value:"oklch(0.283 0.141 291.089)"}},purple:{50:{value:"oklch(0.977 0.014 308.299)"},100:{value:"oklch(0.946 0.033 307.174)"},200:{value:"oklch(0.902 0.063 306.703)"},300:{value:"oklch(0.827 0.119 306.383)"},400:{value:"oklch(0.714 0.203 305.504)"},500:{value:"oklch(0.627 0.265 303.9)"},600:{value:"oklch(0.558 0.288 302.321)"},700:{value:"oklch(0.496 0.265 301.924)"},800:{value:"oklch(0.438 0.218 303.724)"},900:{value:"oklch(0.381 0.176 304.987)"},950:{value:"oklch(0.291 0.149 302.717)"}},fuchsia:{50:{value:"oklch(0.977 0.017 320.058)"},100:{value:"oklch(0.952 0.037 318.852)"},200:{value:"oklch(0.903 0.076 319.62)"},300:{value:"oklch(0.833 0.145 321.434)"},400:{value:"oklch(0.74 0.238 322.16)"},500:{value:"oklch(0.667 0.295 322.15)"},600:{value:"oklch(0.591 0.293 322.896)"},700:{value:"oklch(0.518 0.253 323.949)"},800:{value:"oklch(0.452 0.211 324.591)"},900:{value:"oklch(0.401 0.17 325.612)"},950:{value:"oklch(0.293 0.136 325.661)"}},pink:{50:{value:"oklch(0.971 0.014 343.198)"},100:{value:"oklch(0.948 0.028 342.258)"},200:{value:"oklch(0.899 0.061 343.231)"},300:{value:"oklch(0.823 0.12 346.018)"},400:{value:"oklch(0.718 0.202 349.761)"},500:{value:"oklch(0.656 0.241 354.308)"},600:{value:"oklch(0.592 0.249 0.584)"},700:{value:"oklch(0.525 0.223 3.958)"},800:{value:"oklch(0.459 0.187 3.815)"},900:{value:"oklch(0.408 0.153 2.432)"},950:{value:"oklch(0.284 0.109 3.907)"}},rose:{50:{value:"oklch(0.969 0.015 12.422)"},100:{value:"oklch(0.941 0.03 12.58)"},200:{value:"oklch(0.892 0.058 10.001)"},300:{value:"oklch(0.81 0.117 11.638)"},400:{value:"oklch(0.712 0.194 13.428)"},500:{value:"oklch(0.645 0.246 16.439)"},600:{value:"oklch(0.586 0.253 17.585)"},700:{value:"oklch(0.514 0.222 16.935)"},800:{value:"oklch(0.455 0.188 13.697)"},900:{value:"oklch(0.41 0.159 10.272)"},950:{value:"oklch(0.271 0.105 12.094)"}},slate:{50:{value:"oklch(0.984 0.003 247.858)"},100:{value:"oklch(0.968 0.007 247.896)"},200:{value:"oklch(0.929 0.013 255.508)"},300:{value:"oklch(0.869 0.022 252.894)"},400:{value:"oklch(0.704 0.04 256.788)"},500:{value:"oklch(0.554 0.046 257.417)"},600:{value:"oklch(0.446 0.043 257.281)"},700:{value:"oklch(0.372 0.044 257.287)"},800:{value:"oklch(0.279 0.041 260.031)"},900:{value:"oklch(0.208 0.042 265.755)"},950:{value:"oklch(0.129 0.042 264.695)"}},zinc:{50:{value:"oklch(0.985 0 0)"},100:{value:"oklch(0.967 0.001 286.375)"},200:{value:"oklch(0.92 0.004 286.32)"},300:{value:"oklch(0.871 0.006 286.286)"},400:{value:"oklch(0.705 0.015 286.067)"},500:{value:"oklch(0.552 0.016 285.938)"},600:{value:"oklch(0.442 0.017 285.786)"},700:{value:"oklch(0.37 0.013 285.805)"},800:{value:"oklch(0.274 0.006 286.033)"},900:{value:"oklch(0.21 0.006 285.885)"},950:{value:"oklch(0.141 0.005 285.823)"}},neutral:{50:{value:"oklch(0.985 0 0)"},100:{value:"oklch(0.97 0 0)"},200:{value:"oklch(0.922 0 0)"},300:{value:"oklch(0.87 0 0)"},400:{value:"oklch(0.708 0 0)"},500:{value:"oklch(0.556 0 0)"},600:{value:"oklch(0.439 0 0)"},700:{value:"oklch(0.371 0 0)"},800:{value:"oklch(0.269 0 0)"},900:{value:"oklch(0.205 0 0)"},950:{value:"oklch(0.145 0 0)"}},stone:{50:{value:"oklch(0.985 0.001 106.423)"},100:{value:"oklch(0.97 0.001 106.424)"},200:{value:"oklch(0.923 0.003 48.717)"},300:{value:"oklch(0.869 0.005 56.366)"},400:{value:"oklch(0.709 0.01 56.259)"},500:{value:"oklch(0.553 0.013 58.071)"},600:{value:"oklch(0.444 0.011 73.639)"},700:{value:"oklch(0.374 0.01 67.558)"},800:{value:"oklch(0.268 0.007 34.298)"},900:{value:"oklch(0.216 0.006 56.043)"},950:{value:"oklch(0.147 0.004 49.25)"}}}},semanticTokens:{colors:{brand:J("brand"),danger:J("red"),info:J("blue"),warning:J("amber"),error:J("red"),active:J("blue"),success:J("green"),failed:J("red"),queued:J("stone"),skipped:J("pink"),up_for_reschedule:J("sky"),up_for_retry:J("yellow"),upstream_failed:J("orange"),running:J("cyan"),restarting:J("violet"),deferred:J("purple"),scheduled:J("zinc"),none:J("gray"),removed:J("slate"),red:J("red"),orange:J("orange"),amber:J("amber"),yellow:J("yellow"),lime:J("lime"),green:J("green"),emerald:J("emerald"),teal:J("teal"),cyan:J("cyan"),sky:J("sky"),blue:J("blue"),indigo:J("indigo"),violet:J("violet"),purple:J("purple"),fuchsia:J("fuchsia"),pink:J("pink"),rose:J("rose"),slate:J("slate"),gray:J("gray"),zinc:J("zinc"),neutral:J("neutral"),stone:J("stone")}}}}),TN=sg(Cg,RN);return()=>{pe.interceptors.request.use(hN);const e=new EP({defaultOptions:{queries:{staleTime:1/0}}});return v.jsx(wb,{value:TN,children:v.jsx(OP,{client:e,children:v.jsx(fT,{children:v.jsx(PN,{})})})})}}); diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/MaintenanceExitButton.tsx b/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/MaintenanceExitButton.tsx index 519ef800c54c7..1ba0fed919286 100644 --- a/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/MaintenanceExitButton.tsx +++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/MaintenanceExitButton.tsx @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -import { Button, CloseButton, Dialog, IconButton, Portal, useDisclosure } from "@chakra-ui/react"; +import { Button, CloseButton, Dialog, IconButton, Portal, Text, useDisclosure } from "@chakra-ui/react"; import { useUiServiceExitWorkerMaintenance } from "openapi/queries"; import { IoMdExit } from "react-icons/io"; @@ -71,7 +71,7 @@ export const MaintenanceExitButton = ({ onExitMaintenance, workerName }: Mainten Exit maintenance for worker {workerName} -

Are you sure you want to exit maintenance mode for worker {workerName}?

+ Are you sure you want to exit maintenance mode for worker {workerName}?
diff --git a/providers/edge3/www-hash.txt b/providers/edge3/www-hash.txt index 84d18e1ea59fa..b95ace43cfa74 100644 --- a/providers/edge3/www-hash.txt +++ b/providers/edge3/www-hash.txt @@ -1,5 +1 @@ -<<<<<<< HEAD -7848355a285c3ea912de8b31190f8ca486e86a6d5bd12e4c62c74b6a99dd429e -======= -a7d535a79478b3994f3bb22b8b76c4d686457097c5084fbe6d1fcde28f4618e2 ->>>>>>> 3f3a37a363 (Add confirmation dialog for exit maintenance action in Edge Worker Page) +9505bf1a81b02fc7d04a12ca61c236f451e4fc3d6b046989284adfd95889d7a6 From a4797c8375076936fe24ec7daf35a591735c9fd9 Mon Sep 17 00:00:00 2001 From: Dheeraj Turaga Date: Wed, 10 Sep 2025 21:58:52 -0500 Subject: [PATCH 3/3] Remove exit maintenance color scheme --- .../src/airflow/providers/edge3/plugins/www/dist/main.umd.cjs | 2 +- .../plugins/www/src/components/MaintenanceExitButton.tsx | 4 +--- providers/edge3/www-hash.txt | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/dist/main.umd.cjs b/providers/edge3/src/airflow/providers/edge3/plugins/www/dist/main.umd.cjs index a4e40b9d0a1e2..302b9e9cf6a2f 100644 --- a/providers/edge3/src/airflow/providers/edge3/plugins/www/dist/main.umd.cjs +++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/dist/main.umd.cjs @@ -138,7 +138,7 @@ * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. - */const Fm="token",dN=()=>{const e=document.cookie.split(";");for(const t of e){const[n,r]=t.split("=");if((n==null?void 0:n.trim())==="_token"&&r!==void 0)return localStorage.setItem(Fm,r),document.cookie="_token=; expires=Sat, 01 Jan 2000 00:00:00 UTC; path=/;",r}},hN=e=>{const t=localStorage.getItem(Fm)??dN();return t!==void 0&&(e.headers.Authorization=`Bearer ${t}`),e},fN=()=>{const{data:e,error:t}=L5(void 0,{enabled:!0,refetchInterval:Lm});return e?v.jsx(zt,{p:2,children:v.jsxs(jg,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[v.jsx(Bg,{children:v.jsxs(vs,{children:[v.jsx(Ne,{children:"Dag ID"}),v.jsx(Ne,{children:"Run ID"}),v.jsx(Ne,{children:"Task ID"}),v.jsx(Ne,{children:"Map Index"}),v.jsx(Ne,{children:"Try Number"}),v.jsx(Ne,{children:"State"}),v.jsx(Ne,{children:"Queue"}),v.jsx(Ne,{children:"Queued DTTM"}),v.jsx(Ne,{children:"Edge Worker"}),v.jsx(Ne,{children:"Last Update"})]})}),v.jsx(Wg,{children:e.jobs.map(n=>v.jsxs(vs,{children:[v.jsx(_e,{children:v.jsx(ms,{href:`../dags/${n.dag_id}`,children:n.dag_id})}),v.jsx(_e,{children:v.jsx(ms,{href:`../dags/${n.dag_id}/runs/${n.run_id}`,children:n.run_id})}),v.jsx(_e,{children:n.map_index>=0?v.jsx(ms,{href:`../dags/${n.dag_id}/runs/${n.run_id}/tasks/${n.task_id}/mapped/${n.map_index}?try_number=${n.try_number}`,children:n.task_id}):v.jsx(ms,{href:`../dags/${n.dag_id}/runs/${n.run_id}/tasks/${n.task_id}?try_number=${n.try_number}`,children:n.task_id})}),v.jsx(_e,{children:n.map_index>=0?n.map_index:"-"}),v.jsx(_e,{children:n.try_number}),v.jsx(_e,{children:v.jsx(cN,{state:n.state,children:n.state})}),v.jsx(_e,{children:n.queue}),v.jsx(_e,{children:n.queued_dttm?v.jsx(Us,{date:n.queued_dttm,live:!1}):void 0}),v.jsx(_e,{children:v.jsx(ym,{to:`/plugin/edge_worker#${n.edge_worker}`,children:n.edge_worker})}),v.jsx(_e,{children:n.last_update?v.jsx(Us,{date:n.last_update,live:!1}):void 0})]},`${n.dag_id}.${n.run_id}.${n.task_id}.${n.map_index}.${n.try_number}`))})]})}):t?v.jsxs(zt,{p:2,children:[v.jsx("p",{children:"Unable to load data:"}),v.jsx(_m,{error:t})]}):v.jsx(zt,{p:2,children:"Loading..."})};function Dm(e){return ye({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}function gN(e){return ye({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75a4.5 4.5 0 0 1-4.884 4.484c-1.076-.091-2.264.071-2.95.904l-7.152 8.684a2.548 2.548 0 1 1-3.586-3.586l8.684-7.152c.833-.686.995-1.874.904-2.95a4.5 4.5 0 0 1 6.336-4.486l-3.276 3.276a3.004 3.004 0 0 0 2.25 2.25l3.276-3.276c.256.565.398 1.192.398 1.852Z"},child:[]},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}const pN=({onEnterMaintenance:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=Yu(),[i,s]=w.useState(""),a=F5({onError:c=>{e({description:`Unable to set worker ${t} to maintenance mode: ${c}`,title:"Setting Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to be in maintenance mode.`,title:"Maintenance Mode activated",type:"success"})}}),l=()=>{a.mutate({requestBody:{maintenance_comment:i},workerName:t})};return v.jsxs(v.Fragment,{children:[v.jsx(ps,{size:"sm",variant:"ghost","aria-label":"Enter Maintenance",title:"Enter Maintenance",onClick:r,children:v.jsx(Dm,{})}),v.jsx(Ng,{onOpenChange:n,open:o,size:"md",children:v.jsxs(tf,{children:[v.jsx(Dg,{}),v.jsx(_g,{children:v.jsxs(Ag,{children:[v.jsx($g,{children:v.jsxs(Vg,{children:["Set maintenance for worker ",t]})}),v.jsx(zg,{children:v.jsx(nP,{placeholder:"Enter maintenance comment (required)",value:i,onChange:c=>s(c.target.value),required:!0,maxLength:1024,size:"sm"})}),v.jsxs(Mg,{children:[v.jsx(Fg,{asChild:!0,children:v.jsx(Po,{variant:"outline",children:"Cancel"})}),v.jsx(Po,{onClick:l,disabled:!i.trim(),children:"Confirm Maintenance"})]}),v.jsx(Lg,{asChild:!0,children:v.jsx(Ig,{size:"sm"})})]})})]})})]})};function mN(e){return ye({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M215.469 332.802l29.863 29.864L352 256 245.332 149.333l-29.863 29.865 55.469 55.469H64v42.666h205.864l-54.395 55.469zM405.334 64H106.666C83.198 64 64 83.198 64 106.666V192h42.666v-85.333h298.668v298.668H106.666V320H64v85.334C64 428.802 83.198 448 106.666 448h298.668C428.802 448 448 428.802 448 405.334V106.666C448 83.198 428.802 64 405.334 64z"},child:[]}]})(e)}const vN=({onExitMaintenance:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=Yu(),i=D5({onError:a=>{e({description:`Unable to exit ${t} from maintenance mode: ${a}`,title:"Exit Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to exit maintenance mode.`,title:"Maintenance Mode deactivated",type:"success"}),n()}}),s=()=>{i.mutate({workerName:t})};return v.jsxs(v.Fragment,{children:[v.jsx(ps,{size:"sm",variant:"ghost",onClick:r,"aria-label":"Exit Maintenance",title:"Exit Maintenance",children:v.jsx(mN,{})}),v.jsx(Ng,{onOpenChange:n,open:o,size:"md",children:v.jsxs(tf,{children:[v.jsx(Dg,{}),v.jsx(_g,{children:v.jsxs(Ag,{children:[v.jsx($g,{children:v.jsxs(Vg,{children:["Exit maintenance for worker ",t]})}),v.jsx(zg,{children:v.jsxs(Ku,{children:["Are you sure you want to exit maintenance mode for worker ",t,"?"]})}),v.jsxs(Mg,{children:[v.jsx(Fg,{asChild:!0,children:v.jsx(Po,{variant:"outline",children:"No"})}),v.jsx(Po,{onClick:s,colorScheme:"red",children:"Yes"})]}),v.jsx(Lg,{asChild:!0,children:v.jsx(Ig,{size:"sm"})})]})})]})})]})},bN=({onOperations:e,worker:t})=>{const n=t.worker_name,r=t.state,o=i=>{Z5.create(i),e()};return r==="idle"||r==="running"?v.jsx(Bl,{justifyContent:"end",children:v.jsx(pN,{onEnterMaintenance:o,workerName:n})}):r==="maintenance pending"||r==="maintenance mode"||r==="maintenance request"||r==="offline maintenance"?v.jsxs(QI,{gap:2,align:"stretch",children:[v.jsx(zt,{fontSize:"sm",whiteSpace:"pre-wrap",children:t.maintenance_comments||"No comment"}),v.jsx(Bl,{justifyContent:"end",children:v.jsx(vN,{onExitMaintenance:o,workerName:n})})]}):null};function yN(e){return ye({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m22 3.41-.12-1.26-1.2.4a13.84 13.84 0 0 1-6.41.64 11.87 11.87 0 0 0-6.68.9A7.23 7.23 0 0 0 3.3 9.5a9 9 0 0 0 .39 4.58 16.6 16.6 0 0 1 1.18-2.2 9.85 9.85 0 0 1 4.07-3.43 11.16 11.16 0 0 1 5.06-1A12.08 12.08 0 0 0 9.34 9.2a9.48 9.48 0 0 0-1.86 1.53 11.38 11.38 0 0 0-1.39 1.91 16.39 16.39 0 0 0-1.57 4.54A26.42 26.42 0 0 0 4 22h2a30.69 30.69 0 0 1 .59-4.32 9.25 9.25 0 0 0 4.52 1.11 11 11 0 0 0 4.28-.87C23 14.67 22 3.86 22 3.41z"},child:[]}]})(e)}function xN(e){return ye({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M93.72 183.25C49.49 198.05 16 233.1 16 288c0 66 54 112 120 112h184.37m147.45-22.26C485.24 363.3 496 341.61 496 312c0-59.82-53-85.76-96-88-8.89-89.54-71-144-144-144-26.16 0-48.79 6.93-67.6 18.14"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M448 448 64 64"},child:[]}]})(e)}function CN(e){return ye({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12.0001 18C12.7144 18 13.3704 18.2497 13.8856 18.6665L12.0001 21L10.1145 18.6665C10.6297 18.2497 11.2857 18 12.0001 18ZM2.80766 1.39343L20.4853 19.0711L19.0711 20.4853L13.8913 15.3042C13.2967 15.1069 12.6609 15 12.0001 15C10.5719 15 9.26024 15.499 8.22998 16.3322L6.97363 14.7759C8.24961 13.7442 9.84925 13.0969 11.5964 13.01L9.00025 10.414C7.55273 10.8234 6.22651 11.5217 5.0878 12.4426L3.83099 10.8868C4.89946 10.0226 6.10763 9.32438 7.41633 8.83118L5.13168 6.5451C3.98878 7.08913 2.92058 7.76472 1.94666 8.55228L0.689453 6.99674C1.60358 6.25747 2.59156 5.60589 3.64058 5.05479L1.39345 2.80765L2.80766 1.39343ZM14.5004 10.2854L12.2165 8.00243L12 8C15.0947 8 17.9369 9.08141 20.1693 10.8869L18.9123 12.4426C17.6438 11.4167 16.1427 10.6672 14.5004 10.2854ZM12.0001 3.00003C16.2849 3.00003 20.22 4.49719 23.3109 6.99691L22.0534 8.55228C19.3061 6.33062 15.8085 5.00003 12.0001 5.00003C11.122 5.00003 10.2604 5.07077 9.42075 5.20685L7.72455 3.51088C9.09498 3.17702 10.5268 3.00003 12.0001 3.00003Z"},child:[]}]})(e)}const kN=({state:e,...t})=>{switch(e){case"starting":return v.jsx(Vm,{...t});case"running":return v.jsx(Am,{...t});case"idle":return v.jsx(yN,{...t});case"shutdown request":case"terminating":return v.jsx(tN,{...t});case"offline":return v.jsx(xN,{...t});case"unknown":return v.jsx(CN,{...t});case"maintenance request":case"maintenance pending":case"maintenance exit":return v.jsx(gN,{...t});case"maintenance mode":case"offline maintenance":return v.jsx(Dm,{...t});default:return v.jsx(Nm,{...t})}},SN=e=>{switch(e){case"starting":case"maintenance request":case"maintenance exit":return"yellow";case"running":return"green";case"idle":return"teal";case"shutdown request":case"terminating":return"purple";case"offline":case"offline maintenance":return"black";case"unknown":return"red";case"maintenance mode":case"maintenance pending":return"orange";default:return"gray"}},wN=e=>{switch(e){case"starting":return"Edge Worker is in initialization.";case"running":return"Edge Worker is actively running a task.";case"idle":return"Edge Worker is active and waiting for a task.";case"shutdown request":return"Request to shutdown Edge Worker.";case"terminating":return"Edge Worker is completing work and stopping.";case"offline":return"Edge Worker was shut down.";case"unknown":return"No heartbeat signal from worker for some time, Edge Worker probably down.";case"maintenance request":return"Worker was requested to enter maintenance mode. Once worker receives this it will pause fetching jobs.";case"maintenance pending":return"Edge worker received the request for maintenance, waiting for jobs to finish. Once jobs are finished will move to 'maintenance mode'.";case"maintenance mode":return"Edge worker is in maintenance mode. It is online but pauses fetching jobs.";case"maintenance exit":return"Request worker to exit maintenance mode. Once the worker receives this state it will un-pause and fetch new jobs.";case"offline maintenance":return"Worker was shut down in maintenance mode. It will be in maintenance mode when restarted.";default:return}},EN=O.forwardRef(({children:e,state:t,...n},r)=>v.jsxs(Og,{borderRadius:"full",colorPalette:SN(t),fontSize:"sm",px:e===void 0?1:2,py:1,ref:r,title:wN(t),variant:"solid",...n,children:[t===void 0?void 0:v.jsx(kN,{state:t}),e]})),ON=()=>{const{data:e,error:t,refetch:n}=V5(void 0,{enabled:!0,refetchInterval:Lm});return e?v.jsxs(zt,{p:2,children:[v.jsxs(jg,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[v.jsx(Bg,{children:v.jsxs(vs,{children:[v.jsx(Ne,{children:"Worker Name"}),v.jsx(Ne,{children:"State"}),v.jsx(Ne,{children:"Queues"}),v.jsx(Ne,{children:"First Online"}),v.jsx(Ne,{children:"Last Heartbeat"}),v.jsx(Ne,{children:"Active Jobs"}),v.jsx(Ne,{children:"System Information"}),v.jsx(Ne,{children:"Operations"})]})}),v.jsx(Wg,{children:e.workers.map(r=>v.jsxs(vs,{id:r.worker_name,children:[v.jsx(_e,{children:r.worker_name}),v.jsx(_e,{children:v.jsx(EN,{state:r.state,children:r.state})}),v.jsx(_e,{children:r.queues?v.jsx("ul",{children:r.queues.map(o=>v.jsx("li",{children:o},o))}):"(default)"}),v.jsx(_e,{children:r.first_online?v.jsx(Us,{date:r.first_online,live:!1}):void 0}),v.jsx(_e,{children:r.last_heartbeat?v.jsx(Us,{date:r.last_heartbeat,live:!1}):void 0}),v.jsx(_e,{children:r.jobs_active}),v.jsx(_e,{children:r.sysinfo?v.jsx("ul",{children:Object.entries(r.sysinfo).map(([o,i])=>v.jsxs("li",{children:[o,": ",i]},o))}):"N/A"}),v.jsx(_e,{children:v.jsx(bN,{worker:r,onOperations:n})})]},r.worker_name))})]}),v.jsx(eN,{})]}):t?v.jsxs(zt,{p:2,children:[v.jsx("p",{children:"Unable to load data:"}),v.jsx(_m,{error:t})]}):v.jsx(zt,{p:2,children:"Loading..."})},IN=({tabs:e})=>{const t=w.useRef(null),n=uN(t);return v.jsx(Bl,{alignItems:"center",borderBottomWidth:1,mb:2,ref:t,children:e.map(({icon:r,label:o,value:i})=>v.jsx(f5,{end:!0,title:o,to:{pathname:i},children:({isActive:s})=>v.jsx(Pg,{borderBottomColor:"border.info",borderBottomWidth:s?3:0,color:s?"fg":"fg.muted",fontWeight:"bold",height:"40px",mb:"-2px",pb:s?0:"3px",px:4,transition:"all 0.2s ease",children:n>600||!r?o:r})},i))})},PN=()=>{const e=[{label:"Edge Worker",value:"plugin/edge_worker"},{label:"Edge Jobs",value:"plugin/edge_jobs"}];return v.jsx(zt,{p:2,children:v.jsxs(u5,{children:[v.jsx(IN,{tabs:e}),v.jsxs(r5,{children:[v.jsx(pc,{path:"plugin/edge_worker",element:v.jsx(ON,{})}),v.jsx(pc,{path:"plugin/edge_jobs",element:v.jsx(fN,{})})]})]})})};/*! + */const Fm="token",dN=()=>{const e=document.cookie.split(";");for(const t of e){const[n,r]=t.split("=");if((n==null?void 0:n.trim())==="_token"&&r!==void 0)return localStorage.setItem(Fm,r),document.cookie="_token=; expires=Sat, 01 Jan 2000 00:00:00 UTC; path=/;",r}},hN=e=>{const t=localStorage.getItem(Fm)??dN();return t!==void 0&&(e.headers.Authorization=`Bearer ${t}`),e},fN=()=>{const{data:e,error:t}=L5(void 0,{enabled:!0,refetchInterval:Lm});return e?v.jsx(zt,{p:2,children:v.jsxs(jg,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[v.jsx(Bg,{children:v.jsxs(vs,{children:[v.jsx(Ne,{children:"Dag ID"}),v.jsx(Ne,{children:"Run ID"}),v.jsx(Ne,{children:"Task ID"}),v.jsx(Ne,{children:"Map Index"}),v.jsx(Ne,{children:"Try Number"}),v.jsx(Ne,{children:"State"}),v.jsx(Ne,{children:"Queue"}),v.jsx(Ne,{children:"Queued DTTM"}),v.jsx(Ne,{children:"Edge Worker"}),v.jsx(Ne,{children:"Last Update"})]})}),v.jsx(Wg,{children:e.jobs.map(n=>v.jsxs(vs,{children:[v.jsx(_e,{children:v.jsx(ms,{href:`../dags/${n.dag_id}`,children:n.dag_id})}),v.jsx(_e,{children:v.jsx(ms,{href:`../dags/${n.dag_id}/runs/${n.run_id}`,children:n.run_id})}),v.jsx(_e,{children:n.map_index>=0?v.jsx(ms,{href:`../dags/${n.dag_id}/runs/${n.run_id}/tasks/${n.task_id}/mapped/${n.map_index}?try_number=${n.try_number}`,children:n.task_id}):v.jsx(ms,{href:`../dags/${n.dag_id}/runs/${n.run_id}/tasks/${n.task_id}?try_number=${n.try_number}`,children:n.task_id})}),v.jsx(_e,{children:n.map_index>=0?n.map_index:"-"}),v.jsx(_e,{children:n.try_number}),v.jsx(_e,{children:v.jsx(cN,{state:n.state,children:n.state})}),v.jsx(_e,{children:n.queue}),v.jsx(_e,{children:n.queued_dttm?v.jsx(Us,{date:n.queued_dttm,live:!1}):void 0}),v.jsx(_e,{children:v.jsx(ym,{to:`/plugin/edge_worker#${n.edge_worker}`,children:n.edge_worker})}),v.jsx(_e,{children:n.last_update?v.jsx(Us,{date:n.last_update,live:!1}):void 0})]},`${n.dag_id}.${n.run_id}.${n.task_id}.${n.map_index}.${n.try_number}`))})]})}):t?v.jsxs(zt,{p:2,children:[v.jsx("p",{children:"Unable to load data:"}),v.jsx(_m,{error:t})]}):v.jsx(zt,{p:2,children:"Loading..."})};function Dm(e){return ye({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}function gN(e){return ye({attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75a4.5 4.5 0 0 1-4.884 4.484c-1.076-.091-2.264.071-2.95.904l-7.152 8.684a2.548 2.548 0 1 1-3.586-3.586l8.684-7.152c.833-.686.995-1.874.904-2.95a4.5 4.5 0 0 1 6.336-4.486l-3.276 3.276a3.004 3.004 0 0 0 2.25 2.25l3.276-3.276c.256.565.398 1.192.398 1.852Z"},child:[]},{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.867 19.125h.008v.008h-.008v-.008Z"},child:[]}]})(e)}const pN=({onEnterMaintenance:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=Yu(),[i,s]=w.useState(""),a=F5({onError:c=>{e({description:`Unable to set worker ${t} to maintenance mode: ${c}`,title:"Setting Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to be in maintenance mode.`,title:"Maintenance Mode activated",type:"success"})}}),l=()=>{a.mutate({requestBody:{maintenance_comment:i},workerName:t})};return v.jsxs(v.Fragment,{children:[v.jsx(ps,{size:"sm",variant:"ghost","aria-label":"Enter Maintenance",title:"Enter Maintenance",onClick:r,children:v.jsx(Dm,{})}),v.jsx(Ng,{onOpenChange:n,open:o,size:"md",children:v.jsxs(tf,{children:[v.jsx(Dg,{}),v.jsx(_g,{children:v.jsxs(Ag,{children:[v.jsx($g,{children:v.jsxs(Vg,{children:["Set maintenance for worker ",t]})}),v.jsx(zg,{children:v.jsx(nP,{placeholder:"Enter maintenance comment (required)",value:i,onChange:c=>s(c.target.value),required:!0,maxLength:1024,size:"sm"})}),v.jsxs(Mg,{children:[v.jsx(Fg,{asChild:!0,children:v.jsx(Po,{variant:"outline",children:"Cancel"})}),v.jsx(Po,{onClick:l,disabled:!i.trim(),children:"Confirm Maintenance"})]}),v.jsx(Lg,{asChild:!0,children:v.jsx(Ig,{size:"sm"})})]})})]})})]})};function mN(e){return ye({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M215.469 332.802l29.863 29.864L352 256 245.332 149.333l-29.863 29.865 55.469 55.469H64v42.666h205.864l-54.395 55.469zM405.334 64H106.666C83.198 64 64 83.198 64 106.666V192h42.666v-85.333h298.668v298.668H106.666V320H64v85.334C64 428.802 83.198 448 106.666 448h298.668C428.802 448 448 428.802 448 405.334V106.666C448 83.198 428.802 64 405.334 64z"},child:[]}]})(e)}const vN=({onExitMaintenance:e,workerName:t})=>{const{onClose:n,onOpen:r,open:o}=Yu(),i=D5({onError:a=>{e({description:`Unable to exit ${t} from maintenance mode: ${a}`,title:"Exit Maintenance Mode failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to exit maintenance mode.`,title:"Maintenance Mode deactivated",type:"success"}),n()}}),s=()=>{i.mutate({workerName:t})};return v.jsxs(v.Fragment,{children:[v.jsx(ps,{size:"sm",variant:"ghost",onClick:r,"aria-label":"Exit Maintenance",title:"Exit Maintenance",children:v.jsx(mN,{})}),v.jsx(Ng,{onOpenChange:n,open:o,size:"md",children:v.jsxs(tf,{children:[v.jsx(Dg,{}),v.jsx(_g,{children:v.jsxs(Ag,{children:[v.jsx($g,{children:v.jsxs(Vg,{children:["Exit maintenance for worker ",t]})}),v.jsx(zg,{children:v.jsxs(Ku,{children:["Are you sure you want to exit maintenance mode for worker ",t,"?"]})}),v.jsxs(Mg,{children:[v.jsx(Fg,{asChild:!0,children:v.jsx(Po,{variant:"outline",children:"No"})}),v.jsx(Po,{onClick:s,children:"Yes"})]}),v.jsx(Lg,{asChild:!0,children:v.jsx(Ig,{size:"sm"})})]})})]})})]})},bN=({onOperations:e,worker:t})=>{const n=t.worker_name,r=t.state,o=i=>{Z5.create(i),e()};return r==="idle"||r==="running"?v.jsx(Bl,{justifyContent:"end",children:v.jsx(pN,{onEnterMaintenance:o,workerName:n})}):r==="maintenance pending"||r==="maintenance mode"||r==="maintenance request"||r==="offline maintenance"?v.jsxs(QI,{gap:2,align:"stretch",children:[v.jsx(zt,{fontSize:"sm",whiteSpace:"pre-wrap",children:t.maintenance_comments||"No comment"}),v.jsx(Bl,{justifyContent:"end",children:v.jsx(vN,{onExitMaintenance:o,workerName:n})})]}):null};function yN(e){return ye({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m22 3.41-.12-1.26-1.2.4a13.84 13.84 0 0 1-6.41.64 11.87 11.87 0 0 0-6.68.9A7.23 7.23 0 0 0 3.3 9.5a9 9 0 0 0 .39 4.58 16.6 16.6 0 0 1 1.18-2.2 9.85 9.85 0 0 1 4.07-3.43 11.16 11.16 0 0 1 5.06-1A12.08 12.08 0 0 0 9.34 9.2a9.48 9.48 0 0 0-1.86 1.53 11.38 11.38 0 0 0-1.39 1.91 16.39 16.39 0 0 0-1.57 4.54A26.42 26.42 0 0 0 4 22h2a30.69 30.69 0 0 1 .59-4.32 9.25 9.25 0 0 0 4.52 1.11 11 11 0 0 0 4.28-.87C23 14.67 22 3.86 22 3.41z"},child:[]}]})(e)}function xN(e){return ye({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M93.72 183.25C49.49 198.05 16 233.1 16 288c0 66 54 112 120 112h184.37m147.45-22.26C485.24 363.3 496 341.61 496 312c0-59.82-53-85.76-96-88-8.89-89.54-71-144-144-144-26.16 0-48.79 6.93-67.6 18.14"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M448 448 64 64"},child:[]}]})(e)}function CN(e){return ye({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12.0001 18C12.7144 18 13.3704 18.2497 13.8856 18.6665L12.0001 21L10.1145 18.6665C10.6297 18.2497 11.2857 18 12.0001 18ZM2.80766 1.39343L20.4853 19.0711L19.0711 20.4853L13.8913 15.3042C13.2967 15.1069 12.6609 15 12.0001 15C10.5719 15 9.26024 15.499 8.22998 16.3322L6.97363 14.7759C8.24961 13.7442 9.84925 13.0969 11.5964 13.01L9.00025 10.414C7.55273 10.8234 6.22651 11.5217 5.0878 12.4426L3.83099 10.8868C4.89946 10.0226 6.10763 9.32438 7.41633 8.83118L5.13168 6.5451C3.98878 7.08913 2.92058 7.76472 1.94666 8.55228L0.689453 6.99674C1.60358 6.25747 2.59156 5.60589 3.64058 5.05479L1.39345 2.80765L2.80766 1.39343ZM14.5004 10.2854L12.2165 8.00243L12 8C15.0947 8 17.9369 9.08141 20.1693 10.8869L18.9123 12.4426C17.6438 11.4167 16.1427 10.6672 14.5004 10.2854ZM12.0001 3.00003C16.2849 3.00003 20.22 4.49719 23.3109 6.99691L22.0534 8.55228C19.3061 6.33062 15.8085 5.00003 12.0001 5.00003C11.122 5.00003 10.2604 5.07077 9.42075 5.20685L7.72455 3.51088C9.09498 3.17702 10.5268 3.00003 12.0001 3.00003Z"},child:[]}]})(e)}const kN=({state:e,...t})=>{switch(e){case"starting":return v.jsx(Vm,{...t});case"running":return v.jsx(Am,{...t});case"idle":return v.jsx(yN,{...t});case"shutdown request":case"terminating":return v.jsx(tN,{...t});case"offline":return v.jsx(xN,{...t});case"unknown":return v.jsx(CN,{...t});case"maintenance request":case"maintenance pending":case"maintenance exit":return v.jsx(gN,{...t});case"maintenance mode":case"offline maintenance":return v.jsx(Dm,{...t});default:return v.jsx(Nm,{...t})}},SN=e=>{switch(e){case"starting":case"maintenance request":case"maintenance exit":return"yellow";case"running":return"green";case"idle":return"teal";case"shutdown request":case"terminating":return"purple";case"offline":case"offline maintenance":return"black";case"unknown":return"red";case"maintenance mode":case"maintenance pending":return"orange";default:return"gray"}},wN=e=>{switch(e){case"starting":return"Edge Worker is in initialization.";case"running":return"Edge Worker is actively running a task.";case"idle":return"Edge Worker is active and waiting for a task.";case"shutdown request":return"Request to shutdown Edge Worker.";case"terminating":return"Edge Worker is completing work and stopping.";case"offline":return"Edge Worker was shut down.";case"unknown":return"No heartbeat signal from worker for some time, Edge Worker probably down.";case"maintenance request":return"Worker was requested to enter maintenance mode. Once worker receives this it will pause fetching jobs.";case"maintenance pending":return"Edge worker received the request for maintenance, waiting for jobs to finish. Once jobs are finished will move to 'maintenance mode'.";case"maintenance mode":return"Edge worker is in maintenance mode. It is online but pauses fetching jobs.";case"maintenance exit":return"Request worker to exit maintenance mode. Once the worker receives this state it will un-pause and fetch new jobs.";case"offline maintenance":return"Worker was shut down in maintenance mode. It will be in maintenance mode when restarted.";default:return}},EN=O.forwardRef(({children:e,state:t,...n},r)=>v.jsxs(Og,{borderRadius:"full",colorPalette:SN(t),fontSize:"sm",px:e===void 0?1:2,py:1,ref:r,title:wN(t),variant:"solid",...n,children:[t===void 0?void 0:v.jsx(kN,{state:t}),e]})),ON=()=>{const{data:e,error:t,refetch:n}=V5(void 0,{enabled:!0,refetchInterval:Lm});return e?v.jsxs(zt,{p:2,children:[v.jsxs(jg,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[v.jsx(Bg,{children:v.jsxs(vs,{children:[v.jsx(Ne,{children:"Worker Name"}),v.jsx(Ne,{children:"State"}),v.jsx(Ne,{children:"Queues"}),v.jsx(Ne,{children:"First Online"}),v.jsx(Ne,{children:"Last Heartbeat"}),v.jsx(Ne,{children:"Active Jobs"}),v.jsx(Ne,{children:"System Information"}),v.jsx(Ne,{children:"Operations"})]})}),v.jsx(Wg,{children:e.workers.map(r=>v.jsxs(vs,{id:r.worker_name,children:[v.jsx(_e,{children:r.worker_name}),v.jsx(_e,{children:v.jsx(EN,{state:r.state,children:r.state})}),v.jsx(_e,{children:r.queues?v.jsx("ul",{children:r.queues.map(o=>v.jsx("li",{children:o},o))}):"(default)"}),v.jsx(_e,{children:r.first_online?v.jsx(Us,{date:r.first_online,live:!1}):void 0}),v.jsx(_e,{children:r.last_heartbeat?v.jsx(Us,{date:r.last_heartbeat,live:!1}):void 0}),v.jsx(_e,{children:r.jobs_active}),v.jsx(_e,{children:r.sysinfo?v.jsx("ul",{children:Object.entries(r.sysinfo).map(([o,i])=>v.jsxs("li",{children:[o,": ",i]},o))}):"N/A"}),v.jsx(_e,{children:v.jsx(bN,{worker:r,onOperations:n})})]},r.worker_name))})]}),v.jsx(eN,{})]}):t?v.jsxs(zt,{p:2,children:[v.jsx("p",{children:"Unable to load data:"}),v.jsx(_m,{error:t})]}):v.jsx(zt,{p:2,children:"Loading..."})},IN=({tabs:e})=>{const t=w.useRef(null),n=uN(t);return v.jsx(Bl,{alignItems:"center",borderBottomWidth:1,mb:2,ref:t,children:e.map(({icon:r,label:o,value:i})=>v.jsx(f5,{end:!0,title:o,to:{pathname:i},children:({isActive:s})=>v.jsx(Pg,{borderBottomColor:"border.info",borderBottomWidth:s?3:0,color:s?"fg":"fg.muted",fontWeight:"bold",height:"40px",mb:"-2px",pb:s?0:"3px",px:4,transition:"all 0.2s ease",children:n>600||!r?o:r})},i))})},PN=()=>{const e=[{label:"Edge Worker",value:"plugin/edge_worker"},{label:"Edge Jobs",value:"plugin/edge_jobs"}];return v.jsx(zt,{p:2,children:v.jsxs(u5,{children:[v.jsx(IN,{tabs:e}),v.jsxs(r5,{children:[v.jsx(pc,{path:"plugin/edge_worker",element:v.jsx(ON,{})}),v.jsx(pc,{path:"plugin/edge_jobs",element:v.jsx(fN,{})})]})]})})};/*! * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/MaintenanceExitButton.tsx b/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/MaintenanceExitButton.tsx index 1ba0fed919286..d1b34ca4cc5b0 100644 --- a/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/MaintenanceExitButton.tsx +++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/MaintenanceExitButton.tsx @@ -77,9 +77,7 @@ export const MaintenanceExitButton = ({ onExitMaintenance, workerName }: Mainten - + diff --git a/providers/edge3/www-hash.txt b/providers/edge3/www-hash.txt index b95ace43cfa74..bf1b12c54fb6f 100644 --- a/providers/edge3/www-hash.txt +++ b/providers/edge3/www-hash.txt @@ -1 +1 @@ -9505bf1a81b02fc7d04a12ca61c236f451e4fc3d6b046989284adfd95889d7a6 +5ac4d4783165960a231642baa97f22ddbb39ae0473188ffe6bfe09f1d3699e0f