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 652dcd4537780..54d091b813c3a 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,14 +1,14 @@ -(function(u,C){typeof exports=="object"&&typeof module<"u"?module.exports=C(require("react/jsx-runtime"),require("react"),require("react-router-dom"),require("react-dom")):typeof define=="function"&&define.amd?define(["react/jsx-runtime","react","react-router-dom","react-dom"],C):(u=typeof globalThis<"u"?globalThis:u||self,u.AirflowPlugin=C(u.ReactJSXRuntime,u.React,u.ReactRouterDOM,u.ReactDOM))})(this,(function(u,C,it,vo){"use strict";function fm(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const D=fm(C);function Rl(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var gm=/^((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)-.*))$/,pm=Rl(function(e){return gm.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function mm(e){if(e.sheet)return e.sheet;for(var t=0;t0?Te(Hr,--De):0,Br--,pe===10&&(Br=1,So--),pe}function Ye(){return pe=De2||kn(pe)>3?"":" "}function Pm(e,t){for(;--t&&Ye()&&!(pe<48||pe>102||pe>57&&pe<65||pe>70&&pe<97););return Cn(e,ko()+(t<6&&ft()==32&&Ye()==32))}function ds(e){for(;Ye();)switch(pe){case e:return De;case 34:case 39:e!==34&&e!==39&&ds(pe);break;case 40:e===41&&ds(e);break;case 92:Ye();break}return De}function Nm(e,t){for(;Ye()&&e+pe!==57;)if(e+pe===84&&ft()===47)break;return"/*"+Cn(t,De-1)+"*"+yo(e===47?e:Ye())}function Am(e){for(;!kn(ft());)Ye();return Cn(e,De)}function Rm(e){return Dl(Eo("",null,null,null,[""],e=zl(e),0,[0],e))}function Eo(e,t,r,n,o,i,s,a,l){for(var c=0,d=0,h=s,g=0,f=0,p=0,m=1,v=1,x=1,k=0,y="",S=o,b=i,O=n,T=y;v;)switch(p=k,k=Ye()){case 40:if(p!=108&&Te(T,h-1)==58){ls(T+=X(wo(k),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:T+=wo(k);break;case 9:case 10:case 13:case 32:T+=Tm(p);break;case 92:T+=Pm(ko()-1,7);continue;case 47:switch(ft()){case 42:case 47:xo(Vm(Nm(Ye(),ko()),t,r),l);break;default:T+="/"}break;case 123*m:a[c++]=ht(T)*x;case 125*m:case 59:case 0:switch(k){case 0:case 125:v=0;case 59+d:x==-1&&(T=X(T,/\f/g,"")),f>0&&ht(T)-h&&xo(f>32?$l(T+";",n,r,h-1):$l(X(T," ","")+";",n,r,h-2),l);break;case 59:T+=";";default:if(xo(O=Ml(T,t,r,c,d,o,a,y,S=[],b=[],h),i),k===123)if(d===0)Eo(T,t,O,O,S,i,h,a,b);else switch(g===99&&Te(T,3)===110?100:g){case 100:case 108:case 109:case 115:Eo(e,O,O,n&&xo(Ml(e,O,O,0,0,o,a,y,o,S=[],h),b),o,b,h,a,n?S:b);break;default:Eo(T,O,O,O,[""],b,0,a,b)}}c=d=f=0,m=x=1,y=T="",h=s;break;case 58:h=1+ht(T),f=p;default:if(m<1){if(k==123)--m;else if(k==125&&m++==0&&Im()==125)continue}switch(T+=yo(k),k*m){case 38:x=d>0?1:(T+="\f",-1);break;case 44:a[c++]=(ht(T)-1)*x,x=1;break;case 64:ft()===45&&(T+=wo(Ye())),g=ft(),d=h=ht(y=T+=Am(ko())),k++;break;case 45:p===45&&ht(T)==2&&(m=0)}}return i}function Ml(e,t,r,n,o,i,s,a,l,c,d){for(var h=o-1,g=o===0?i:[""],f=cs(g),p=0,m=0,v=0;p0?g[x]+" "+k:X(k,/&\f/g,g[x])))&&(l[v++]=y);return Co(e,t,r,o===0?ss:a,l,c,d)}function Vm(e,t,r){return Co(e,t,r,Vl,yo(Om()),xn(e,2,-2),0)}function $l(e,t,r,n){return Co(e,t,r,as,xn(e,0,n),xn(e,n+1,-1),n)}function Ur(e,t){for(var r="",n=cs(e),o=0;o6)switch(Te(e,t+1)){case 109:if(Te(e,t+4)!==45)break;case 102:return X(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+bo+(Te(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ls(e,"stretch")?Bl(X(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Te(e,t+1)!==115)break;case 6444:switch(Te(e,ht(e)-3-(~ls(e,"!important")&&10))){case 107:return X(e,":",":"+Y)+e;case 101:return X(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Y+(Te(e,14)===45?"inline-":"")+"box$3$1"+Y+"$2$3$1"+Re+"$2box$3")+e}break;case 5936:switch(Te(e,t+11)){case 114:return Y+e+Re+X(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+Re+X(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+Re+X(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Y+e+Re+e+e}return e}var Bm=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case as:t.return=Bl(t.value,t.length);break;case _l:return Ur([Sn(t,{value:X(t.value,"@","@"+Y)})],o);case ss:if(t.length)return Em(t.props,function(i){switch(wm(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ur([Sn(t,{props:[X(i,/:(read-\w+)/,":"+bo+"$1")]})],o);case"::placeholder":return Ur([Sn(t,{props:[X(i,/:(plac\w+)/,":"+Y+"input-$1")]}),Sn(t,{props:[X(i,/:(plac\w+)/,":"+bo+"$1")]}),Sn(t,{props:[X(i,/:(plac\w+)/,Re+"input-$1")]})],o)}return""})}},Hm=[Bm],Um=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var v=m.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||Hm,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),x=1;x=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Xm={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},Qm=/[A-Z]|^ms/g,Jm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ql=function(t){return t.charCodeAt(1)===45},Kl=function(t){return t!=null&&typeof t!="boolean"},ps=Rl(function(e){return ql(e)?e:e.replace(Qm,"-$&").toLowerCase()}),Yl=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Jm,function(n,o,i){return gt={name:o,styles:i,next:gt},o})}return Xm[t]!==1&&!ql(t)&&typeof r=="number"&&r!==0?r+"px":r};function wn(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return gt={name:o.name,styles:o.styles,next:gt},o.name;var i=r;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)gt={name:s.name,styles:s.styles,next:gt},s=s.next;var a=i.styles+";";return a}return Zm(e,t,r)}case"function":{if(e!==void 0){var l=gt,c=r(e);return gt=l,wn(e,t,c)}break}}var d=r;if(t==null)return d;var h=t[d];return h!==void 0?h:d}function Zm(e,t,r){var n="";if(Array.isArray(r))for(var o=0;on?.(...r))}}const sv=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),av=/^on[A-Z]/;function En(...e){let t={};for(let r of e){for(let n in t){if(av.test(n)&&typeof t[n]=="function"&&typeof r[n]=="function"){t[n]=iv(t[n],r[n]);continue}if(n==="className"||n==="class"){t[n]=sv(t[n],r[n]);continue}if(n==="style"){t[n]=Object.assign({},t[n]??{},r[n]??{});continue}t[n]=r[n]!==void 0?r[n]:t[n]}for(let n in r)t[n]===void 0&&(t[n]=r[n])}return t}const lv=parseInt(D.version.split(".")[0],10)>=19;function Ss(e,t){if(e!=null){if(typeof e=="function")return e(t);try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function cv(...e){const t=e.filter(r=>r!=null);if(lv){const r=new Map;return n=>(t.forEach(o=>{const i=Ss(o,n);i&&r.set(o,i)}),()=>{t.forEach(o=>{const i=r.get(o);i&&typeof i=="function"?i():Ss(o,null)}),r.clear()})}else return r=>{t.forEach(n=>{Ss(n,r)})}}function On(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}const Me=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),st=e=>typeof e=="string",Cs=e=>typeof e=="function",Xe=(...e)=>{const t=[];for(let r=0;r{const t=e.reduce((r,n)=>(n?.forEach(o=>r.add(o)),r),new Set([]));return Array.from(t)};function hv(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function jr(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=C.createContext(s);a.displayName=t;function l(){const c=C.useContext(a);if(!c&&r){const d=new Error(i??hv(n,o));throw d.name="ContextError",Error.captureStackTrace?.(d,l),d}return c}return[a.Provider,l,a]}const[fv,Oo]=jr({name:"ChakraContext",strict:!0,providerName:""});function gv(e){const{value:t,children:r}=e;return u.jsxs(fv,{value:t,children:[!t._config.disableLayers&&u.jsx(rc,{styles:t.layers.atRule}),u.jsx(rc,{styles:t._global}),r]})}const pv=(e,t)=>{const r={},n={},o=Object.keys(e);for(const i of o)t(i)?n[i]=e[i]:r[i]=e[i];return[n,r]},Gr=(e,t)=>{const r=Cs(t)?t:n=>t.includes(n);return pv(e,r)},mv=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function vv(e){return typeof e=="string"&&mv.has(e)}function bv(e,t,r){const{css:n,isValidProperty:o}=Oo(),{children:i,...s}=e,a=C.useMemo(()=>{const[g,f]=Gr(s,k=>r(k,t.variantKeys)),[p,m]=Gr(f,t.variantKeys),[v,x]=Gr(m,o);return{forwardedProps:g,variantProps:p,styleProps:v,elementProps:x}},[t.variantKeys,r,s,o]),{css:l,...c}=a.styleProps,d=C.useMemo(()=>{const g={...a.variantProps},f=t.variantKeys.includes("colorPalette"),p=t.variantKeys.includes("orientation");return f||(g.colorPalette=s.colorPalette),p||(g.orientation=s.orientation),t(g)},[t,a.variantProps,s.colorPalette,s.orientation]);return{styles:C.useMemo(()=>n(d,...yv(l),c),[n,d,l,c]),props:{...a.forwardedProps,...a.elementProps,children:i}}}const yv=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),xv=dv(pm),Sv=e=>e!=="theme",Cv=(e,t,r)=>{let n;if(t){const o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?i=>e.__emotion_forwardProp(i)&&o(i):o}return typeof n!="function"&&r&&(n=e.__emotion_forwardProp),n};let kv=typeof document<"u";const nc=({cache:e,serialized:t,isStringTag:r})=>{fs(e,t,r);const n=Jl(()=>gs(e,t,r));if(!kv&&n!==void 0){let o=t.name,i=t.next;for(;i!==void 0;)o=Xe(o,i.name),i=i.next;return u.jsx("style",{"data-emotion":Xe(e.key,o),dangerouslySetInnerHTML:{__html:n},nonce:e.sheet.nonce})}return null},oc={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"]},wv=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ws=((e,t={},r={})=>{if(wv(oc,e)){r.forwardProps||(r.forwardProps=[]);const c=oc[e];r.forwardProps=ks([...r.forwardProps,...c])}const n=e.__emotion_real===e,o=n&&e.__emotion_base||e;let i,s;r!==void 0&&(i=r.label,s=r.target);let a=[];const l=vs((c,d,h)=>{const{cva:g,isValidProperty:f}=Oo(),p=t.__cva__?t:g(t),m=Ev(e.__emotion_cva,p),v=z=>(H,Z)=>z.includes(H)?!0:!Z?.includes(H)&&!f(H);!r.shouldForwardProp&&r.forwardProps&&(r.shouldForwardProp=v(r.forwardProps));const x=(z,H)=>{const Z=typeof e=="string"&&e.charCodeAt(0)>96?xv:Sv,ne=!H?.includes(z)&&!f(z);return Z(z)&&ne},k=Cv(e,r,n)||x,y=D.useMemo(()=>Object.assign({},r.defaultProps,On(c)),[c]),{props:S,styles:b}=bv(y,m,k);let O="",T=[b],R=S;if(S.theme==null){R={};for(let z in S)R[z]=S[z];R.theme=D.useContext(bs)}typeof S.className=="string"?O=Gl(d.registered,T,S.className):S.className!=null&&(O=Xe(O,S.className));const E=ms(a.concat(T),d.registered,R);E.styles&&(O=Xe(O,`${d.key}-${E.name}`)),s!==void 0&&(O=Xe(O,s));const P=!k("as");let N=P&&S.as||o,w={};for(let z in S)if(!(P&&z==="as")){if(vv(z)){const H=z.replace("html","").toLowerCase();w[H]=S[z];continue}k(z)&&(w[z]=S[z])}let A=O.trim();A?w.className=A:Reflect.deleteProperty(w,"className"),w.ref=h;const L=r.forwardAsChild||r.forwardProps?.includes("asChild");if(S.asChild&&!L){const z=D.isValidElement(S.children)?D.Children.only(S.children):D.Children.toArray(S.children).find(D.isValidElement);if(!z)throw new Error("[chakra-ui > factory] No valid child found");N=z.type,w.children=null,Reflect.deleteProperty(w,"asChild"),w=En(w,z.props),w.ref=cv(h,uv(z))}return w.as&&L?(w.as=void 0,u.jsxs(D.Fragment,{children:[u.jsx(nc,{cache:d,serialized:E,isStringTag:typeof N=="string"}),u.jsx(N,{asChild:!0,...w,children:u.jsx(S.as,{children:w.children})})]})):u.jsxs(D.Fragment,{children:[u.jsx(nc,{cache:d,serialized:E,isStringTag:typeof N=="string"}),u.jsx(N,{...w})]})});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=r.shouldForwardProp,l.__emotion_cva=t,Object.defineProperty(l,"toString",{value(){return`.${s}`}}),l}).bind(),Es=new Map,he=new Proxy(ws,{apply(e,t,r){return ws(...r)},get(e,t){return Es.has(t)||Es.set(t,ws(t)),Es.get(t)}}),Ev=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),In=he("div");In.displayName="Box";const Ov=Object.freeze({}),Iv=Object.freeze({});function Tv(e){const{key:t,recipe:r}=e,n=Oo();return C.useMemo(()=>{const o=r||(t!=null?n.getRecipe(t):{});return n.cva(structuredClone(o))},[t,r,n])}const Pv=e=>e.charAt(0).toUpperCase()+e.slice(1);function Tt(e){const{key:t,recipe:r}=e,n=Pv(t||r.className||"Component"),[o,i]=jr({strict:!1,name:`${n}PropsContext`,providerName:`${n}PropsContext`});function s(c){const{unstyled:d,...h}=c,g=Tv({key:t,recipe:h.recipe||r}),[f,p]=C.useMemo(()=>g.splitVariantProps(h),[g,h]);return{styles:d?Ov:g(f),className:g.className,props:p}}const a=(c,d)=>{const h=he(c,{},d),g=C.forwardRef((f,p)=>{const m=i(),v=C.useMemo(()=>En(m,f),[f,m]),{styles:x,className:k,props:y}=s(v);return u.jsx(h,{...y,ref:p,css:[x,v.css],className:Xe(k,v.className)})});return g.displayName=c.displayName||c.name,g};function l(){return o}return{withContext:a,PropsProvider:o,withPropsProvider:l,usePropsContext:i,useRecipeResult:s}}function Io(e){return e==null?[]:Array.isArray(e)?e:[e]}var Tn=e=>e[0],Os=e=>e[e.length-1],Nv=(e,t)=>e.indexOf(t)!==-1,or=(e,...t)=>e.concat(t),ir=(e,...t)=>e.filter(r=>!t.includes(r)),ic=(e,t)=>e.filter((r,n)=>n!==t),jt=e=>Array.from(new Set(e)),Is=(e,t)=>{const r=new Set(t);return e.filter(n=>!r.has(n))},qr=(e,t)=>Nv(e,t)?ir(e,t):or(e,t);function sc(e,t,r={}){const{step:n=1,loop:o=!0}=r,i=t+n,s=e.length,a=s-1;return t===-1?n>0?0:a:i<0?o?a:0:i>=s?o?0:t>s?s:t:i}function Av(e,t,r={}){return e[sc(e,t,r)]}function Rv(e,t,r={}){const{step:n=1,loop:o=!0}=r;return sc(e,t,{step:-n,loop:o})}function Vv(e,t,r={}){return e[Rv(e,t,r)]}function ac(e,t){return e.reduce(([r,n],o)=>(t(o)?r.push(o):n.push(o),[r,n]),[[],[]])}var lc=e=>e?.constructor.name==="Array",_v=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof e?.isEqual=="function"&&typeof t?.isEqual=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(lc(e)&&lc(t))return _v(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const r=Object.keys(t??Object.create(null)),n=r.length;for(let o=0;oArray.isArray(e),Lv=e=>e===!0||e===!1,cc=e=>e!=null&&typeof e=="object",sr=e=>cc(e)&&!Pn(e),To=e=>typeof e=="string",Pt=e=>typeof e=="function",Fv=e=>e==null,Nt=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),zv=e=>Object.prototype.toString.call(e),dc=Function.prototype.toString,Dv=dc.call(Object),Mv=e=>{if(!cc(e)||zv(e)!="[object Object]"||Bv(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const r=Nt(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&dc.call(r)==Dv},$v=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,Wv=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,Bv=e=>$v(e)||Wv(e),Po=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,Hv=e=>e(),Uv=()=>{},No=(...e)=>(...t)=>{e.forEach(function(r){r?.(...t)})},uc=(()=>{let e=0;return()=>(e++,e.toString(36))})();function At(e,t,...r){if(e in t){const o=t[e];return Pt(o)?o(...r):o}const n=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(n,At),n}var hc=(e,t)=>{try{return e()}catch(r){return r instanceof Error&&Error.captureStackTrace?.(r,hc),t?.()}},{floor:fc,abs:gc,round:Ao,min:jv,max:Gv,pow:qv,sign:Kv}=Math,Ts=e=>Number.isNaN(e),Gt=e=>Ts(e)?0:e,pc=(e,t)=>(e%t+t)%t,Yv=(e,t)=>(e%t+t)%t,Xv=(e,t)=>Gt(e)>=t,Qv=(e,t)=>Gt(e)<=t,Jv=(e,t,r)=>{const n=Gt(e),o=t==null||n>=t,i=r==null||n<=r;return o&&i},Zv=(e,t,r)=>Ao((Gt(e)-t)/r)*r+t,We=(e,t,r)=>jv(Gv(Gt(e),t),r),e0=(e,t,r)=>(Gt(e)-t)/(r-t),t0=(e,t,r,n)=>We(Zv(e*(r-t)+t,t,n),t,r),mc=(e,t)=>{let r=e,n=t.toString(),o=n.indexOf("."),i=o>=0?n.length-o:0;if(i>0){let s=qv(10,i);r=Ao(r*s)/s}return r},Ps=(e,t)=>typeof t=="number"?fc(e*t+.5)/t:Ao(e),vc=(e,t,r,n)=>{const o=t!=null?Number(t):0,i=Number(r),s=(e-o)%n;let a=gc(s)*2>=n?e+Kv(s)*(n-gc(s)):e-s;if(a=mc(a,n),!Ts(o)&&ai){const l=fc((i-o)/n),c=o+l*n;a=l<=0||c{const n=Math.pow(r,t);return Ao(e*n)/n},bc=e=>{if(!Number.isFinite(e))return 0;let t=1,r=0;for(;Math.round(e*t)/t!==e;)t*=10,r+=1;return r},yc=(e,t,r)=>{let n=t==="+"?e+r:e-r;if(e%1!==0||r%1!==0){const o=10**Math.max(bc(e),bc(r));e=Math.round(e*o),r=Math.round(r*o),n=t==="+"?e+r:e-r,n/=o}return n},r0=(e,t)=>yc(Gt(e),"+",t),n0=(e,t)=>yc(Gt(e),"-",t);function Ro(e){if(!Mv(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(n=>typeof n=="string"),r={};for(const n of t){const o=e[n];o!==void 0&&(r[n]=Ro(o))}return r}function o0(e,t=Object.is){let r={...e};const n=new Set,o=d=>(n.add(d),()=>n.delete(d)),i=()=>{n.forEach(d=>d())};return{subscribe:o,get:d=>r[d],set:(d,h)=>{t(r[d],h)||(r[d]=h,i())},update:d=>{let h=!1;for(const g in d){const f=d[g];f!==void 0&&!t(r[g],f)&&(r[g]=f,h=!0)}h&&i()},snapshot:()=>({...r})}}function ar(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function Ns(e,t){if(e==null)throw new Error(t())}function i0(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function pt(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=C.createContext(s);a.displayName=t;function l(){const c=C.useContext(a);if(!c&&r){const d=new Error(i??i0(n,o));throw d.name="ContextError",Nt(Error,"captureStackTrace")&&Pt(Error.captureStackTrace)&&Error.captureStackTrace(d,l),d}return c}return[a.Provider,l,a]}const[I5,As]=pt({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});var s0=Object.defineProperty,a0=(e,t,r)=>t in e?s0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rs=(e,t,r)=>a0(e,typeof t!="symbol"?t+"":t,r);function l0(e){if(!e)return!1;try{return e.selectionStart===0&&e.selectionEnd===0}catch{return e.value===""}}function c0(e){if(!e)return;const t=e.selectionStart??0,r=e.selectionEnd??0;Math.abs(r-t)===0&&t===0&&e.setSelectionRange(e.value.length,e.value.length)}var xc=e=>Math.max(0,Math.min(1,e)),d0=(e,t)=>e.map((r,n)=>e[(Math.max(t,0)+n)%e.length]),Sc=()=>{},Vo=e=>typeof e=="object"&&e!==null,u0=2147483647,le=e=>e?"":void 0,h0=e=>e?"true":void 0,f0=1,g0=9,p0=11,ke=e=>Vo(e)&&e.nodeType===f0&&typeof e.nodeName=="string",_o=e=>Vo(e)&&e.nodeType===g0,m0=e=>Vo(e)&&e===e.window,Cc=e=>ke(e)?e.localName||"":"#document";function v0(e){return["html","body","#document"].includes(Cc(e))}var b0=e=>Vo(e)&&e.nodeType!==void 0,lr=e=>b0(e)&&e.nodeType===p0&&"host"in e,y0=e=>ke(e)&&e.localName==="input",x0=e=>!!e?.matches("a[href]"),S0=e=>ke(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1;function Vs(e){if(!e)return!1;const t=e.getRootNode();return Nn(t)===e}var C0=/(textarea|select)/;function _s(e){if(e==null||!ke(e))return!1;try{return y0(e)&&e.selectionStart!=null||C0.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Rt(e,t){if(!e||!t||!ke(e)||!ke(t))return!1;const r=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(r&&lr(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Le(e){return _o(e)?e:m0(e)?e.document:e?.ownerDocument??document}function k0(e){return Le(e).documentElement}function me(e){return lr(e)?me(e.host):_o(e)?e.defaultView??window:ke(e)?e.ownerDocument?.defaultView??window:window}function Nn(e){let t=e.activeElement;for(;t?.shadowRoot;){const r=t.shadowRoot.activeElement;if(!r||r===t)break;t=r}return t}function w0(e){if(Cc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||lr(e)&&e.host||k0(e);return lr(t)?t.host:t}function Ls(e){let t;try{if(t=e.getRootNode({composed:!0}),_o(t)||lr(t))return t}catch{}return e.ownerDocument??document}var Fs=new WeakMap;function Kr(e){return Fs.has(e)||Fs.set(e,me(e).getComputedStyle(e)),Fs.get(e)}var zs=new Set(["menu","listbox","dialog","grid","tree","region"]),E0=e=>zs.has(e),kc=e=>e.getAttribute("aria-controls")?.split(" ")||[];function wc(e,t){const r=new Set,n=Ls(e),o=i=>{const s=i.querySelectorAll("[aria-controls]");for(const a of s){if(a.getAttribute("aria-expanded")!=="true")continue;const l=kc(a);for(const c of l){if(!c||r.has(c))continue;r.add(c);const d=n.getElementById(c);if(d){const h=d.getAttribute("role"),g=d.getAttribute("aria-modal")==="true";if(h&&E0(h)&&!g&&(d===t||d.contains(t)||o(d)))return!0}}}return!1};return o(e)}function Ec(e,t){const r=Ls(e),n=new Set,o=i=>{const s=i.querySelectorAll("[aria-controls]");for(const a of s){if(a.getAttribute("aria-expanded")!=="true")continue;const l=kc(a);for(const c of l){if(!c||n.has(c))continue;n.add(c);const d=r.getElementById(c);if(d){const h=d.getAttribute("role"),g=d.getAttribute("aria-modal")==="true";h&&zs.has(h)&&!g&&(t(d),o(d))}}}};o(e)}function O0(e){const t=new Set;return Ec(e,r=>{e.contains(r)||t.add(r)}),Array.from(t)}function I0(e){const t=e.getAttribute("role");return!!(t&&zs.has(t))}function T0(e){return e.hasAttribute("aria-controls")&&e.getAttribute("aria-expanded")==="true"}function P0(e){return T0(e)?!0:!!e.querySelector?.('[aria-controls][aria-expanded="true"]')}function N0(e){if(!e.id)return!1;const t=Ls(e),r=CSS.escape(e.id),n=`[aria-controls~="${r}"][aria-expanded="true"], [aria-controls="${r}"][aria-expanded="true"]`;return!!(t.querySelector(n)&&I0(e))}var Lo=()=>typeof document<"u";function A0(){return navigator.userAgentData?.platform??navigator.platform}function R0(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:r})=>`${t}/${r}`).join(" "):navigator.userAgent}var Ds=e=>Lo()&&e.test(A0()),Oc=e=>Lo()&&e.test(R0()),V0=e=>Lo()&&e.test(navigator.vendor),Ic=()=>Lo()&&!!navigator.maxTouchPoints,_0=()=>Ds(/^iPhone/i),L0=()=>Ds(/^iPad/i)||zo()&&navigator.maxTouchPoints>1,Fo=()=>_0()||L0(),F0=()=>zo()||Fo(),zo=()=>Ds(/^Mac/i),Tc=()=>F0()&&V0(/apple/i),z0=()=>Oc(/Firefox/i),D0=()=>Oc(/Android/i);function M0(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function Ve(e){return M0(e)?.[0]??e.target}function $0(e){return j0(e).isComposing||e.keyCode===229}function W0(e){return e.pointerType===""&&e.isTrusted?!0:D0()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var B0=e=>e.button===2||zo()&&e.ctrlKey&&e.button===0,H0=e=>"touches"in e&&e.touches.length>0,U0={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},Pc={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function Nc(e,t={}){const{dir:r="ltr",orientation:n="horizontal"}=t;let o=e.key;return o=U0[o]??o,r==="rtl"&&n==="horizontal"&&o in Pc&&(o=Pc[o]),o}function j0(e){return e.nativeEvent??e}function Ac(e,t="client"){const r=H0(e)?e.touches[0]||e.changedTouches[0]:e;return{x:r[`${t}X`],y:r[`${t}Y`]}}var ce=(e,t,r,n)=>{const o=typeof e=="function"?e():e;return o?.addEventListener(t,r,n),()=>{o?.removeEventListener(t,r,n)}};function G0(e,t){const{type:r="HTMLInputElement",property:n="value"}=t,o=me(e)[r].prototype;return Object.getOwnPropertyDescriptor(o,n)??{}}function q0(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function cr(e,t,r="value"){if(!e)return;const n=q0(e);n&&G0(e,{type:n,property:r}).set?.call(e,t),e.setAttribute(r,t)}function Rc(e,t){const{value:r,bubbles:n=!0}=t;if(!e)return;const o=me(e);e instanceof o.HTMLInputElement&&(cr(e,`${r}`),e.dispatchEvent(new o.Event("input",{bubbles:n})))}function K0(e){return Y0(e)?e.form:e.closest("form")}function Y0(e){return e.matches("textarea, input, select, button")}function X0(e,t){if(!e)return;const r=K0(e),n=o=>{o.defaultPrevented||t()};return r?.addEventListener("reset",n,{passive:!0}),()=>r?.removeEventListener("reset",n)}function Q0(e,t){const r=e?.closest("fieldset");if(!r)return;t(r.disabled);const n=me(r),o=new n.MutationObserver(()=>t(r.disabled));return o.observe(r,{attributes:!0,attributeFilter:["disabled"]}),()=>o.disconnect()}function Do(e,t){if(!e)return;const{onFieldsetDisabledChange:r,onFormReset:n}=t,o=[X0(e,n),Q0(e,r)];return()=>o.forEach(i=>i?.())}var Vc=e=>ke(e)&&e.tagName==="IFRAME",J0=/^(audio|video|details)$/;function _c(e){const t=e.getAttribute("tabindex");return t?parseInt(t,10):NaN}var Z0=e=>!Number.isNaN(_c(e)),eb=e=>_c(e)<0;function tb(e,t){if(!t)return null;if(t===!0)return e.shadowRoot||null;const r=t(e);return(r===!0?e.shadowRoot:r)||null}function Lc(e,t,r){const n=[...e],o=[...e],i=new Set,s=new Map;e.forEach((l,c)=>s.set(l,c));let a=0;for(;a{s.set(f,g+p)});for(let f=g+d.length;f{s.set(f,g+p)})}o.push(...d)}}return n}var Mo="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",Fc=(e,t={})=>{if(!e)return[];const{includeContainer:r=!1,getShadowRoot:n}=t,o=Array.from(e.querySelectorAll(Mo));(r==!0||r=="if-empty"&&o.length===0)&&ke(e)&&Vt(e)&&o.unshift(e);const s=[];for(const a of o)if(Vt(a)){if(Vc(a)&&a.contentDocument){const l=a.contentDocument.body;s.push(...Fc(l,{getShadowRoot:n}));continue}s.push(a)}return n?Lc(s,n,Vt):s};function Vt(e){return!ke(e)||e.closest("[inert]")?!1:e.matches(Mo)&&S0(e)}function $o(e,t={}){if(!e)return[];const{includeContainer:r,getShadowRoot:n}=t,o=Array.from(e.querySelectorAll(Mo));r&&dr(e)&&o.unshift(e);const i=[];for(const s of o)if(dr(s)){if(Vc(s)&&s.contentDocument){const a=s.contentDocument.body;i.push(...$o(a,{getShadowRoot:n}));continue}i.push(s)}if(n){const s=Lc(i,n,dr);return!s.length&&r?o:s}return!i.length&&r?o:i}function dr(e){return ke(e)&&e.tabIndex>0?!0:Vt(e)&&!eb(e)}function rb(e,t={}){const r=$o(e,t),n=r[0]||null,o=r[r.length-1]||null;return[n,o]}function An(e){return e.tabIndex<0&&(J0.test(e.localName)||_s(e))&&!Z0(e)?0:e.tabIndex}function Ms(e){const{root:t,getInitialEl:r,filter:n,enabled:o=!0}=e;if(!o)return;let i=null;if(i||(i=typeof r=="function"?r():r),i||(i=t?.querySelector("[data-autofocus],[autofocus]")),!i){const s=$o(t);i=n?s.filter(n)[0]:s[0]}return i||t||void 0}function nb(e){const t=e.currentTarget;if(!t)return!1;const[r,n]=rb(t);return!(Vs(r)&&e.shiftKey||Vs(n)&&!e.shiftKey||!r&&!n)}var zc=class cm{constructor(){Rs(this,"id",null),Rs(this,"fn_cleanup"),Rs(this,"cleanup",()=>{this.cancel()})}static create(){return new cm}request(t){this.cancel(),this.id=globalThis.requestAnimationFrame(()=>{this.id=null,this.fn_cleanup=t?.()})}cancel(){this.id!==null&&(globalThis.cancelAnimationFrame(this.id),this.id=null),this.fn_cleanup?.(),this.fn_cleanup=void 0}isActive(){return this.id!==null}};function U(e){const t=zc.create();return t.request(e),t.cleanup}function $s(e){const t=new Set;function r(n){const o=globalThis.requestAnimationFrame(n);t.add(()=>globalThis.cancelAnimationFrame(o))}return r(()=>r(e)),function(){t.forEach(o=>o())}}function ob(e,t,r){const n=U(()=>{e.removeEventListener(t,o,!0),r()}),o=()=>{n(),r()};return e.addEventListener(t,o,{once:!0,capture:!0}),n}function ib(e,t){if(!e)return;const{attributes:r,callback:n}=t,o=e.ownerDocument.defaultView||window,i=new o.MutationObserver(s=>{for(const a of s)a.type==="attributes"&&a.attributeName&&r.includes(a.attributeName)&&n(a)});return i.observe(e,{attributes:!0,attributeFilter:r}),()=>i.disconnect()}function Rn(e,t){const{defer:r}=t,n=r?U:i=>i(),o=[];return o.push(n(()=>{const i=typeof e=="function"?e():e;o.push(ib(i,t))})),()=>{o.forEach(i=>i?.())}}function Dc(e){const t=()=>{const r=me(e);e.dispatchEvent(new r.MouseEvent("click"))};z0()?ob(e,"keyup",t):queueMicrotask(t)}function Wo(e){const t=w0(e);return v0(t)?Le(t).body:ke(t)&&Ws(t)?t:Wo(t)}function Mc(e,t=[]){const r=Wo(e),n=r===e.ownerDocument.body,o=me(r);return n?t.concat(o,o.visualViewport||[],Ws(r)?r:[]):t.concat(r,Mc(r,[]))}var sb=/auto|scroll|overlay|hidden|clip/,ab=new Set(["inline","contents"]);function Ws(e){const t=me(e),{overflow:r,overflowX:n,overflowY:o,display:i}=t.getComputedStyle(e);return sb.test(r+o+n)&&!ab.has(i)}function lb(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function Vn(e,t){const{rootEl:r,...n}=t||{};!e||!r||!Ws(r)||!lb(r)||e.scrollIntoView(n)}function $c(e,t){const{left:r,top:n,width:o,height:i}=t.getBoundingClientRect(),s={x:e.x-r,y:e.y-n},a={x:xc(s.x/o),y:xc(s.y/i)};function l(c={}){const{dir:d="ltr",orientation:h="horizontal",inverted:g}=c,f=typeof g=="object"?g.x:g,p=typeof g=="object"?g.y:g;return h==="horizontal"?d==="rtl"||f?1-a.x:a.x:p?1-a.y:a.y}return{offset:s,percent:a,getPercentValue:l}}function cb(e,t){const r=e.body,n="pointerLockElement"in e||"mozPointerLockElement"in e,o=()=>!!e.pointerLockElement;function i(){}function s(l){o(),console.error("PointerLock error occurred:",l),e.exitPointerLock()}if(!n)return;try{r.requestPointerLock()}catch{}const a=[ce(e,"pointerlockchange",i,!1),ce(e,"pointerlockerror",s,!1)];return()=>{a.forEach(l=>l()),e.exitPointerLock()}}var Yr="default",Bs="",Bo=new WeakMap;function db(e={}){const{target:t,doc:r}=e,n=r??document,o=n.documentElement;return Fo()?(Yr==="default"&&(Bs=o.style.webkitUserSelect,o.style.webkitUserSelect="none"),Yr="disabled"):t&&(Bo.set(t,t.style.userSelect),t.style.userSelect="none"),()=>ub({target:t,doc:n})}function ub(e={}){const{target:t,doc:r}=e,o=(r??document).documentElement;if(Fo()){if(Yr!=="disabled")return;Yr="restoring",setTimeout(()=>{$s(()=>{Yr==="restoring"&&(o.style.webkitUserSelect==="none"&&(o.style.webkitUserSelect=Bs||""),Bs="",Yr="default")})},300)}else if(t&&Bo.has(t)){const i=Bo.get(t);t.style.userSelect==="none"&&(t.style.userSelect=i??""),t.getAttribute("style")===""&&t.removeAttribute("style"),Bo.delete(t)}}function Wc(e={}){const{defer:t,target:r,...n}=e,o=t?U:s=>s(),i=[];return i.push(o(()=>{const s=typeof r=="function"?r():r;i.push(db({...n,target:s}))})),()=>{i.forEach(s=>s?.())}}function hb(e,t){const{onPointerMove:r,onPointerUp:n}=t,o=a=>{const l=Ac(a),c=Math.sqrt(l.x**2+l.y**2),d=a.pointerType==="touch"?10:5;if(!(c{const l=Ac(a);n({point:l,event:a})},s=[ce(e,"pointermove",o,!1),ce(e,"pointerup",i,!1),ce(e,"pointercancel",i,!1),ce(e,"contextmenu",i,!1),Wc({doc:e})];return()=>{s.forEach(a=>a())}}function Xr(e,t){return Array.from(e?.querySelectorAll(t)??[])}function fb(e,t){return e?.querySelector(t)??null}var Hs=e=>e.id;function gb(e,t,r=Hs){return e.find(n=>r(n)===t)}function Ho(e,t,r=Hs){const n=gb(e,t,r);return n?e.indexOf(n):-1}function Bc(e,t,r=!0){let n=Ho(e,t);return n=r?(n+1)%e.length:Math.min(n+1,e.length-1),e[n]}function Hc(e,t,r=!0){let n=Ho(e,t);return n===-1?r?e[e.length-1]:null:(n=r?(n-1+e.length)%e.length:Math.max(0,n-1),e[n])}var pb=e=>e.split("").map(t=>{const r=t.charCodeAt(0);return r>0&&r<128?t:r>=128&&r<=255?`/x${r.toString(16)}`.replace("/","\\"):""}).join("").trim(),mb=e=>pb(e.dataset?.valuetext??e.textContent??""),vb=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function bb(e,t,r,n=Hs){const o=r?Ho(e,r,n):-1;let i=r?d0(e,o):e;return t.length===1&&(i=i.filter(a=>n(a)!==r)),i.find(a=>vb(mb(a),t))}function Uo(e,t){if(!e)return Sc;const r=Object.keys(t).reduce((n,o)=>(n[o]=e.style.getPropertyValue(o),n),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,r),e.style.length===0&&e.removeAttribute("style")}}function yb(e,t,r){if(!e)return Sc;const n=e.style.getPropertyValue(t);return e.style.setProperty(t,r),()=>{e.style.setProperty(t,n),e.style.length===0&&e.removeAttribute("style")}}function xb(e,t){const{state:r,activeId:n,key:o,timeout:i=350,itemToId:s}=t,a=r.keysSoFar+o,c=a.length>1&&Array.from(a).every(p=>p===a[0])?a[0]:a;let d=e.slice();const h=bb(d,c,n,s);function g(){clearTimeout(r.timer),r.timer=-1}function f(p){r.keysSoFar=p,g(),p!==""&&(r.timer=+setTimeout(()=>{f(""),g()},i))}return f(a),h}var qt=Object.assign(xb,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:Sb});function Sb(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}var Cb={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"};function kb(e,t,r){const{signal:n}=t;return[new Promise((s,a)=>{const l=setTimeout(()=>{a(new Error(`Timeout of ${r}ms exceeded`))},r);n.addEventListener("abort",()=>{clearTimeout(l),a(new Error("Promise aborted"))}),e.then(c=>{n.aborted||(clearTimeout(l),s(c))}).catch(c=>{n.aborted||(clearTimeout(l),a(c))})}),()=>t.abort()]}function wb(e,t){const{timeout:r,rootNode:n}=t,o=me(n),i=Le(n),s=new o.AbortController;return kb(new Promise(a=>{const l=e();if(l){a(l);return}const c=new o.MutationObserver(()=>{const d=e();d&&d.isConnected&&(c.disconnect(),a(d))});c.observe(i.body,{childList:!0,subtree:!0})}),s,r)}var Eb=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),Ob=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,Uc=e=>{const t={};let r;for(;r=Ob.exec(e);)t[r[1]]=r[2];return t},Ib=(e,t)=>{if(To(e)){if(To(t))return`${e};${t}`;e=Uc(e)}else To(t)&&(t=Uc(t));return Object.assign({},e??{},t??{})};function ee(...e){let t={};for(let r of e){if(!r)continue;for(let o in t){if(o.startsWith("on")&&typeof t[o]=="function"&&typeof r[o]=="function"){t[o]=No(r[o],t[o]);continue}if(o==="className"||o==="class"){t[o]=Eb(t[o],r[o]);continue}if(o==="style"){t[o]=Ib(t[o],r[o]);continue}t[o]=r[o]!==void 0?r[o]:t[o]}for(let o in r)t[o]===void 0&&(t[o]=r[o]);const n=Object.getOwnPropertySymbols(r);for(let o of n)t[o]=r[o]}return t}function jc(e,t,r){let n=[],o;return i=>{const s=e(i);return(s.length!==n.length||s.some((l,c)=>!$e(n[c],l)))&&(n=s,o=t(s,i)),o}}function _t(){return{and:(...e)=>function(r){return e.every(n=>r.guard(n))},or:(...e)=>function(r){return e.some(n=>r.guard(n))},not:e=>function(r){return!r.guard(e)}}}function T5(e){return e}function jo(){return{guards:_t(),createMachine:e=>e,choose:e=>function({choose:r}){return r(e)?.actions}}}var Qr=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Qr||{}),Us="__init__";function Tb(e){const t=()=>e.getRootNode?.()??document,r=()=>Le(t());return{...e,getRootNode:t,getDoc:r,getWin:()=>r().defaultView??window,getActiveElement:()=>Nn(t()),isActiveElement:Vs,getById:s=>t().getElementById(s)}}function _n(...e){return t=>{const r=[];for(const n of e)if(typeof n=="function"){const o=n(t);typeof o=="function"&&r.push(o)}else n&&(n.current=t);if(r.length)return()=>{for(const n of r)n()}}}function Pb(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const js=e=>{const t=C.memo(C.forwardRef((r,n)=>{const{asChild:o,children:i,...s}=r;if(!o)return C.createElement(e,{...s,ref:n},i);if(!C.isValidElement(i))return null;const a=C.Children.only(i),l=Pb(a);return C.cloneElement(a,{...ee(s,a.props),ref:n?_n(n,l):l})}));return t.displayName=e.displayName||e.name,t},de=(()=>{const e=new Map;return new Proxy(js,{apply(t,r,n){return js(n[0])},get(t,r){const n=r;return e.has(n)||e.set(n,js(n)),e.get(n)}})})(),[N5,Gc]=pt({name:"LocaleContext",hookName:"useLocaleContext",providerName:"",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),Jr=()=>(e,t)=>t.reduce((r,n)=>{const[o,i]=r,s=n;return i[s]!==void 0&&(o[s]=i[s]),delete i[s],[o,i]},[{},{...e}]),Go=e=>Jr()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function Nb(e){return new Proxy({},{get(t,r){return r==="style"?n=>e({style:n}).style:e}})}var M=()=>e=>Array.from(new Set(e));function Ab(e,t){const{state:r,send:n,context:o}=e,i=r.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:i,setNode(s){s&&n({type:"NODE.SET",node:s})},unmount(){n({type:"UNMOUNT"})}}}var Rb={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:r}){e([()=>t("present")],()=>{r({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,refs:t})=>{e("onExitComplete")?.();const r=t.get("node");if(!r)return;const n=me(r),o=new n.CustomEvent("exitcomplete",{bubbles:!1});r.dispatchEvent(o)},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",Kr(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:r,prop:n})=>{const o=n("present");if(o)return r({type:"MOUNT",src:"presence.changed"});const i=t.get("node");if(!o&&i?.ownerDocument.visibilityState==="hidden")return r({type:"UNMOUNT",src:"visibilitychange"});U(()=>{const s=qo(t.get("styles"));e.set("unmountAnimationName",s),s==="none"||s===e.get("prevAnimationName")||t.get("styles")?.display==="none"||t.get("styles")?.animationDuration==="0s"?r({type:"UNMOUNT",src:"presence.changed"}):r({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{U(()=>{e.set("prevAnimationName",qo(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:r,prop:n})=>{const o=t.get("node");if(!o)return;const i=c=>{(c.composedPath?.()?.[0]??c.target)===o&&e.set("prevAnimationName",qo(t.get("styles")))},s=c=>{const d=qo(t.get("styles"));Ve(c)===o&&d===e.get("unmountAnimationName")&&!n("present")&&r({type:"UNMOUNT",src:"animationend"})},a=c=>{Ve(c)===o&&!n("present")&&r({type:"UNMOUNT",src:"animationcancel"})};o.addEventListener("animationstart",i),o.addEventListener("animationcancel",a),o.addEventListener("animationend",s);const l=Uo(o,{animationFillMode:"forwards"});return()=>{o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",a),o.removeEventListener("animationend",s),$s(()=>l())}}}}};function qo(e){return e?.animationName||"none"}M()(["onExitComplete","present","immediate"]);var qc=typeof globalThis.document<"u"?C.useLayoutEffect:C.useEffect;function Ko(e){const t=e().value??e().defaultValue,r=e().isEqual??Object.is,[n]=C.useState(t),[o,i]=C.useState(n),s=e().value!==void 0,a=C.useRef(o);a.current=s?e().value:o;const l=C.useRef(a.current);qc(()=>{l.current=a.current},[o,e().value]);const c=h=>{const g=l.current,f=Pt(h)?h(g):h;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:f,prev:g}),s||i(f),r(f,g)||e().onChange?.(f,g)};function d(){return s?e().value:o}return{initial:n,ref:a,get:d,set(h){(e().sync?vo.flushSync:Hv)(()=>c(h))},invoke(h,g){e().onChange?.(h,g)},hash(h){return e().hash?.(h)??String(h)}}}Ko.cleanup=e=>{C.useEffect(()=>e,[])},Ko.ref=e=>{const t=C.useRef(e);return{get:()=>t.current,set:r=>{t.current=r}}};function Vb(e){const t=C.useRef(e);return{get(r){return t.current[r]},set(r,n){t.current[r]=n}}}var _b=(e,t)=>{const r=C.useRef(!1),n=C.useRef(!1);C.useEffect(()=>{if(r.current&&n.current)return t();n.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),C.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function Gs(e,t={}){const r=C.useMemo(()=>{const{id:N,ids:w,getRootNode:A}=t;return Tb({id:N,ids:w,getRootNode:A})},[t]),n=(...N)=>{e.debug&&console.log(...N)},o=e.props?.({props:Ro(t),scope:r})??t,i=Lb(o),s=e.context?.({prop:i,bindable:Ko,scope:r,flush:Yc,getContext(){return l},getComputed(){return b},getRefs(){return m},getEvent(){return f()}}),a=Kc(s),l={get(N){return a.current?.[N].ref.current},set(N,w){a.current?.[N].set(w)},initial(N){return a.current?.[N].initial},hash(N){const w=a.current?.[N].get();return a.current?.[N].hash(w)}},c=C.useRef(new Map),d=C.useRef(null),h=C.useRef(null),g=C.useRef({type:""}),f=()=>({...g.current,current(){return g.current},previous(){return h.current}}),p=()=>({...O,matches(...N){return N.includes(O.ref.current)},hasTag(N){return!!e.states[O.ref.current]?.tags?.includes(N)}}),m=Vb(e.refs?.({prop:i,context:l})??{}),v=()=>({state:p(),context:l,event:f(),prop:i,send:P,action:x,guard:k,track:_b,refs:m,computed:b,flush:Yc,scope:r,choose:S}),x=N=>{const w=Pt(N)?N(v()):N;if(!w)return;const A=w.map(L=>{const z=e.implementations?.actions?.[L];return z||ar(`[zag-js] No implementation found for action "${JSON.stringify(L)}"`),z});for(const L of A)L?.(v())},k=N=>Pt(N)?N(v()):e.implementations?.guards?.[N](v()),y=N=>{const w=Pt(N)?N(v()):N;if(!w)return;const A=w.map(z=>{const H=e.implementations?.effects?.[z];return H||ar(`[zag-js] No implementation found for effect "${JSON.stringify(z)}"`),H}),L=[];for(const z of A){const H=z?.(v());H&&L.push(H)}return()=>L.forEach(z=>z?.())},S=N=>Io(N).find(w=>{let A=!w.guard;return To(w.guard)?A=!!k(w.guard):Pt(w.guard)&&(A=w.guard(v())),A}),b=N=>{Ns(e.computed,()=>"[zag-js] No computed object found on machine");const w=e.computed[N];return w({context:l,event:f(),prop:i,refs:m,scope:r,computed:b})},O=Ko(()=>({defaultValue:e.initialState({prop:i}),onChange(N,w){w&&(c.current.get(w)?.(),c.current.delete(w)),w&&x(e.states[w]?.exit),x(d.current?.actions);const A=y(e.states[N]?.effects);if(A&&c.current.set(N,A),w===Us){x(e.entry);const L=y(e.effects);L&&c.current.set(Us,L)}x(e.states[N]?.entry)}})),T=C.useRef(void 0),R=C.useRef(Qr.NotStarted);qc(()=>{queueMicrotask(()=>{const A=R.current===Qr.Started;R.current=Qr.Started,n(A?"rehydrating...":"initializing...");const L=T.current??O.initial;O.invoke(L,A?O.get():Us)});const N=c.current,w=O.ref.current;return()=>{n("unmounting..."),T.current=w,R.current=Qr.Stopped,N.forEach(A=>A?.()),c.current=new Map,d.current=null,queueMicrotask(()=>{x(e.exit)})}},[]);const E=()=>"ref"in O?O.ref.current:O.get(),P=N=>{queueMicrotask(()=>{if(R.current!==Qr.Started)return;h.current=g.current,g.current=N;let w=E();const A=e.states[w].on?.[N.type]??e.on?.[N.type],L=S(A);if(!L)return;d.current=L;const z=L.target??w;n("transition",N.type,L.target||w,`(${L.actions})`);const H=z!==w;H?vo.flushSync(()=>O.set(z)):L.reenter&&!H?O.invoke(w,w):x(L.actions??[])})};return e.watch?.(v()),{state:p(),send:P,context:l,prop:i,scope:r,refs:m,computed:b,event:f(),getStatus:()=>R.current}}function Kc(e){const t=C.useRef(e);return t.current=e,t}function Lb(e){const t=Kc(e);return function(n){return t.current[n]}}function Yc(e){queueMicrotask(()=>{vo.flushSync(()=>e())})}var Xc=Nb(e=>e);function Fb(e,t={}){const{sync:r=!1}=t,n=zb(e);return C.useCallback((...o)=>r?queueMicrotask(()=>n.current?.(...o)):n.current?.(...o),[r,n])}function zb(e){const t=C.useRef(e);return t.current=e,t}const Ln=(e={})=>{const{lazyMount:t,unmountOnExit:r,present:n,skipAnimationOnMount:o=!1,...i}=e,s=C.useRef(!1),a={...i,present:n,onExitComplete:Fb(e.onExitComplete)},l=Gs(Rb,a),c=Ab(l);c.present&&(s.current=!0);const d=!c.present&&!s.current&&t||r&&!c.present&&s.current,h=()=>({"data-state":c.skip&&o?void 0:n?"open":"closed",hidden:!c.present});return{ref:c.setNode,getPresenceProps:h,present:c.present,unmounted:d}},[Yo,Fn]=pt({name:"PresenceContext",hookName:"usePresenceContext",providerName:""}),zn=he("span");zn.displayName="Span";const{withContext:Db}=Tt({key:"text"}),Be=Db("p");Be.displayName="Text";function Qc(e,t=[]){const r=C.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return C.useInsertionEffect(()=>{r.current=e}),C.useCallback((...n)=>r.current?.(...n),t)}function ur(e={}){const t=Qc(e.onOpen),r=Qc(e.onClose),[n,o]=C.useState(e.defaultOpen||!1),i=e.open!==void 0?e.open:n,s=e.open!==void 0,a=C.useCallback(()=>{s||o(!1),r?.()},[s,r]),l=C.useCallback(()=>{s||o(!0),t?.()},[s,t]),c=C.useCallback(()=>{i?a():l()},[i,l,a]);return{open:i,onOpen:l,onClose:a,onToggle:c,setOpen:o}}var $=(e,t=[])=>({parts:(...r)=>{if(Mb(t))return $(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>$(e,[...t,...r]),omit:(...r)=>$(e,t.filter(n=>!r.includes(n))),rename:r=>$(r,t),keys:()=>t,build:()=>[...new Set(t)].reduce((r,n)=>Object.assign(r,{[n]:{selector:[`&[data-scope="${Zr(e)}"][data-part="${Zr(n)}"]`,`& [data-scope="${Zr(e)}"][data-part="${Zr(n)}"]`].join(", "),attrs:{"data-scope":Zr(e),"data-part":Zr(n)}}}),{})}),Zr=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Mb=e=>e.length===0,Jc=$("collapsible").parts("root","trigger","content","indicator");Jc.build(),M()(["dir","disabled","getRootNode","id","ids","collapsedHeight","collapsedWidth","onExitComplete","onOpenChange","defaultOpen","open"]);var $b=Object.defineProperty,Wb=(e,t,r)=>t in e?$b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qs=(e,t,r)=>Wb(e,t+"",r),Bb=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0},Ks=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 r=t??this.getChannelValue(e),{minValue:n,maxValue:o}=this.getChannelRange(e);return e0(r,n,o)}getChannelPercentValue(e,t){const{minValue:r,maxValue:n,step:o}=this.getChannelRange(e),i=t0(t,r,n,o);return vc(i,r,n,o)}withChannelValue(e,t){const{minValue:r,maxValue:n}=this.getChannelRange(e);if(e in this){let o=this.clone();return o[e]=We(t,r,n),o}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:r}=e,n=t||this.getChannels().find(s=>s!==r),o=r||this.getChannels().find(s=>s!==n),i=this.getChannels().find(s=>s!==n&&s!==o);return{xChannel:n,yChannel:o,zChannel:i}}incrementChannel(e,t){const{minValue:r,maxValue:n,step:o}=this.getChannelRange(e),i=vc(We(this.getChannelValue(e)+t,r,n),r,n,o);return this.withChannelValue(e,i)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return Bb(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},Hb=/^#[\da-f]+$/i,Ub=/^rgba?\((.*)\)$/,jb=/[^#]/gi,Zc=class rs extends Ks{constructor(t,r,n,o){super(),this.red=t,this.green=r,this.blue=n,this.alpha=o}static parse(t){let r=[];if(Hb.test(t)&&[4,5,7,9].includes(t.length)){const o=(t.length<6?t.replace(jb,"$&$&"):t).slice(1).split("");for(;o.length>0;)r.push(parseInt(o.splice(0,2).join(""),16));r[3]=r[3]!==void 0?r[3]/255:void 0}const n=t.match(Ub);return n?.[1]&&(r=n[1].split(",").map(o=>Number(o.trim())).map((o,i)=>We(o,0,i<3?255:1))),r.length<3?void 0:new rs(r[0],r[1],r[2],r[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,r=this.green/255,n=this.blue/255,o=Math.min(t,r,n),i=Math.max(t,r,n),s=i-o,a=i===0?0:s/i;let l=0;if(s!==0){switch(i){case t:l=(r-n)/s+(rNumber(a.trim().replace("%","")));return new ns(pc(n,360),We(o,0,100),We(i,0,100),We(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}, ${se(this.saturation,2)}%, ${se(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${se(this.saturation,2)}%, ${se(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,r=this.lightness/100,n=r+t*Math.min(r,1-r);return t=n===0?0:2*(1-r/n),new Qs(se(this.hue,2),se(t*100,2),se(n*100,2),se(this.alpha,2))}toRGB(){let t=this.hue,r=this.saturation/100,n=this.lightness/100,o=r*Math.min(n,1-n),i=(s,a=(s+t/30)%12)=>n-o*Math.max(Math.min(a-3,9-a,1),-1);return new Ys(Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255),se(this.alpha,2))}clone(){return new ns(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,r){let n=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(o/=100),new Intl.NumberFormat(r,n).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 ns.colorChannels}};qs(ed,"colorChannels",["hue","saturation","lightness"]);var Xs=ed,qb=/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+)?)\)/,td=class os extends Ks{constructor(t,r,n,o){super(),this.hue=t,this.saturation=r,this.brightness=n,this.alpha=o}static parse(t){let r;if(r=t.match(qb)){const[n,o,i,s]=(r[1]??r[2]).split(",").map(a=>Number(a.trim().replace("%","")));return new os(pc(n,360),We(o,0,100),We(i,0,100),We(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}, ${se(this.saturation,2)}%, ${se(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${se(this.saturation,2)}%, ${se(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,r=this.brightness/100,n=r*(1-t/2);return t=n===0||n===1?0:(r-n)/Math.min(n,1-n),new Xs(se(this.hue,2),se(t*100,2),se(n*100,2),se(this.alpha,2))}toRGB(){let t=this.hue,r=this.saturation/100,n=this.brightness/100,o=(i,s=(i+t/60)%6)=>n-r*n*Math.max(Math.min(s,4-s,1),0);return new Ys(Math.round(o(5)*255),Math.round(o(3)*255),Math.round(o(1)*255),se(this.alpha,2))}clone(){return new os(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,r){let n=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(o/=100),new Intl.NumberFormat(r,n).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 os.colorChannels}};qs(td,"colorChannels",["hue","saturation","brightness"]);var Qs=td,Kb="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",Yb=e=>{const t=new Map,r=e.split(",");for(let n=0;n{if(rd.has(e))return Xo(rd.get(e));const t=Ys.parse(e)||Qs.parse(e)||Xs.parse(e);if(!t){const r=new Error("Invalid color value: "+e);throw Error.captureStackTrace?.(r,Xo),r}return t};const Xb=["top","right","bottom","left"],Kt=Math.min,Qe=Math.max,Qo=Math.round,Jo=Math.floor,mt=e=>({x:e,y:e}),Qb={left:"right",right:"left",bottom:"top",top:"bottom"},Jb={start:"end",end:"start"};function Js(e,t,r){return Qe(e,Kt(t,r))}function Lt(e,t){return typeof e=="function"?e(t):e}function Ft(e){return e.split("-")[0]}function en(e){return e.split("-")[1]}function Zs(e){return e==="x"?"y":"x"}function ea(e){return e==="y"?"height":"width"}const Zb=new Set(["top","bottom"]);function vt(e){return Zb.has(Ft(e))?"y":"x"}function ta(e){return Zs(vt(e))}function ey(e,t,r){r===void 0&&(r=!1);const n=en(e),o=ta(e),i=ea(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Zo(s)),[s,Zo(s)]}function ty(e){const t=Zo(e);return[ra(e),t,ra(t)]}function ra(e){return e.replace(/start|end/g,t=>Jb[t])}const nd=["left","right"],od=["right","left"],ry=["top","bottom"],ny=["bottom","top"];function oy(e,t,r){switch(e){case"top":case"bottom":return r?t?od:nd:t?nd:od;case"left":case"right":return t?ry:ny;default:return[]}}function iy(e,t,r,n){const o=en(e);let i=oy(Ft(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(ra)))),i}function Zo(e){return e.replace(/left|right|bottom|top/g,t=>Qb[t])}function sy(e){return{top:0,right:0,bottom:0,left:0,...e}}function id(e){return typeof e!="number"?sy(e):{top:e,right:e,bottom:e,left:e}}function ei(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function sd(e,t,r){let{reference:n,floating:o}=e;const i=vt(t),s=ta(t),a=ea(s),l=Ft(t),c=i==="y",d=n.x+n.width/2-o.width/2,h=n.y+n.height/2-o.height/2,g=n[a]/2-o[a]/2;let f;switch(l){case"top":f={x:d,y:n.y-o.height};break;case"bottom":f={x:d,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:h};break;case"left":f={x:n.x-o.width,y:h};break;default:f={x:n.x,y:n.y}}switch(en(t)){case"start":f[s]-=g*(r&&c?-1:1);break;case"end":f[s]+=g*(r&&c?-1:1);break}return f}const ay=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,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:d,y:h}=sd(c,n,l),g=n,f={},p=0;for(let m=0;m({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:d=0}=Lt(e,t)||{};if(c==null)return{};const h=id(d),g={x:r,y:n},f=ta(o),p=ea(f),m=await s.getDimensions(c),v=f==="y",x=v?"top":"left",k=v?"bottom":"right",y=v?"clientHeight":"clientWidth",S=i.reference[p]+i.reference[f]-g[f]-i.floating[p],b=g[f]-i.reference[f],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let T=O?O[y]:0;(!T||!await(s.isElement==null?void 0:s.isElement(O)))&&(T=a.floating[y]||i.floating[p]);const R=S/2-b/2,E=T/2-m[p]/2-1,P=Kt(h[x],E),N=Kt(h[k],E),w=P,A=T-m[p]-N,L=T/2-m[p]/2+R,z=Js(w,L,A),H=!l.arrow&&en(o)!=null&&L!==z&&i.reference[p]/2-(LL<=0)){var N,w;const L=(((N=i.flip)==null?void 0:N.index)||0)+1,z=T[L];if(z&&(!(h==="alignment"?k!==vt(z):!1)||P.every(ne=>vt(ne.placement)===k?ne.overflows[0]>0:!0)))return{data:{index:L,overflows:P},reset:{placement:z}};let H=(w=P.filter(Z=>Z.overflows[0]<=0).sort((Z,ne)=>Z.overflows[1]-ne.overflows[1])[0])==null?void 0:w.placement;if(!H)switch(f){case"bestFit":{var A;const Z=(A=P.filter(ne=>{if(O){const B=vt(ne.placement);return B===k||B==="y"}return!0}).map(ne=>[ne.placement,ne.overflows.filter(B=>B>0).reduce((B,q)=>B+q,0)]).sort((ne,B)=>ne[1]-B[1])[0])==null?void 0:A[0];Z&&(H=Z);break}case"initialPlacement":H=a;break}if(o!==H)return{reset:{placement:H}}}return{}}}};function ad(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ld(e){return Xb.some(t=>e[t]>=0)}const dy=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Lt(e,t);switch(n){case"referenceHidden":{const i=await Dn(t,{...o,elementContext:"reference"}),s=ad(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ld(s)}}}case"escaped":{const i=await Dn(t,{...o,altBoundary:!0}),s=ad(i,r.floating);return{data:{escapedOffsets:s,escaped:ld(s)}}}default:return{}}}}},cd=new Set(["left","top"]);async function uy(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Ft(r),a=en(r),l=vt(r)==="y",c=cd.has(s)?-1:1,d=i&&l?-1:1,h=Lt(t,e);let{mainAxis:g,crossAxis:f,alignmentAxis:p}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof p=="number"&&(f=a==="end"?p*-1:p),l?{x:f*d,y:g*c}:{x:g*c,y:f*d}}const hy=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await uy(t,e);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},fy=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x,y:k}=v;return{x,y:k}}},...l}=Lt(e,t),c={x:r,y:n},d=await Dn(t,l),h=vt(Ft(o)),g=Zs(h);let f=c[g],p=c[h];if(i){const v=g==="y"?"top":"left",x=g==="y"?"bottom":"right",k=f+d[v],y=f-d[x];f=Js(k,f,y)}if(s){const v=h==="y"?"top":"left",x=h==="y"?"bottom":"right",k=p+d[v],y=p-d[x];p=Js(k,p,y)}const m=a.fn({...t,[g]:f,[h]:p});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[g]:i,[h]:s}}}}}},gy=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Lt(e,t),d={x:r,y:n},h=vt(o),g=Zs(h);let f=d[g],p=d[h];const m=Lt(a,t),v=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const y=g==="y"?"height":"width",S=i.reference[g]-i.floating[y]+v.mainAxis,b=i.reference[g]+i.reference[y]-v.mainAxis;fb&&(f=b)}if(c){var x,k;const y=g==="y"?"width":"height",S=cd.has(Ft(o)),b=i.reference[h]-i.floating[y]+(S&&((x=s.offset)==null?void 0:x[h])||0)+(S?0:v.crossAxis),O=i.reference[h]+i.reference[y]+(S?0:((k=s.offset)==null?void 0:k[h])||0)-(S?v.crossAxis:0);pO&&(p=O)}return{[g]:f,[h]:p}}}},py=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=Lt(e,t),d=await Dn(t,c),h=Ft(o),g=en(o),f=vt(o)==="y",{width:p,height:m}=i.floating;let v,x;h==="top"||h==="bottom"?(v=h,x=g===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(x=h,v=g==="end"?"top":"bottom");const k=m-d.top-d.bottom,y=p-d.left-d.right,S=Kt(m-d[v],k),b=Kt(p-d[x],y),O=!t.middlewareData.shift;let T=S,R=b;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(R=y),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(T=k),O&&!g){const P=Qe(d.left,0),N=Qe(d.right,0),w=Qe(d.top,0),A=Qe(d.bottom,0);f?R=p-2*(P!==0||N!==0?P+N:Qe(d.left,d.right)):T=m-2*(w!==0||A!==0?w+A:Qe(d.top,d.bottom))}await l({...t,availableWidth:R,availableHeight:T});const E=await s.getDimensions(a.floating);return p!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}};function ti(){return typeof window<"u"}function tn(e){return dd(e)?(e.nodeName||"").toLowerCase():"#document"}function Je(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function bt(e){var t;return(t=(dd(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function dd(e){return ti()?e instanceof Node||e instanceof Je(e).Node:!1}function at(e){return ti()?e instanceof Element||e instanceof Je(e).Element:!1}function yt(e){return ti()?e instanceof HTMLElement||e instanceof Je(e).HTMLElement:!1}function ud(e){return!ti()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Je(e).ShadowRoot}const my=new Set(["inline","contents"]);function Mn(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=lt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!my.has(o)}const vy=new Set(["table","td","th"]);function by(e){return vy.has(tn(e))}const yy=[":popover-open",":modal"];function ri(e){return yy.some(t=>{try{return e.matches(t)}catch{return!1}})}const xy=["transform","translate","scale","rotate","perspective"],Sy=["transform","translate","scale","rotate","perspective","filter"],Cy=["paint","layout","strict","content"];function na(e){const t=oa(),r=at(e)?lt(e):e;return xy.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Sy.some(n=>(r.willChange||"").includes(n))||Cy.some(n=>(r.contain||"").includes(n))}function ky(e){let t=Yt(e);for(;yt(t)&&!rn(t);){if(na(t))return t;if(ri(t))return null;t=Yt(t)}return null}function oa(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const wy=new Set(["html","body","#document"]);function rn(e){return wy.has(tn(e))}function lt(e){return Je(e).getComputedStyle(e)}function ni(e){return at(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Yt(e){if(tn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ud(e)&&e.host||bt(e);return ud(t)?t.host:t}function hd(e){const t=Yt(e);return rn(t)?e.ownerDocument?e.ownerDocument.body:e.body:yt(t)&&Mn(t)?t:hd(t)}function $n(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=hd(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=Je(o);if(i){const a=ia(s);return t.concat(s,s.visualViewport||[],Mn(o)?o:[],a&&r?$n(a):[])}return t.concat(o,$n(o,[],r))}function ia(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function fd(e){const t=lt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=yt(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=Qo(r)!==i||Qo(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function sa(e){return at(e)?e:e.contextElement}function nn(e){const t=sa(e);if(!yt(t))return mt(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=fd(t);let s=(i?Qo(r.width):r.width)/n,a=(i?Qo(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Ey=mt(0);function gd(e){const t=Je(e);return!oa()||!t.visualViewport?Ey:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Oy(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Je(e)?!1:t}function hr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=sa(e);let s=mt(1);t&&(n?at(n)&&(s=nn(n)):s=nn(e));const a=Oy(i,r,n)?gd(i):mt(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,h=o.height/s.y;if(i){const g=Je(i),f=n&&at(n)?Je(n):n;let p=g,m=ia(p);for(;m&&n&&f!==p;){const v=nn(m),x=m.getBoundingClientRect(),k=lt(m),y=x.left+(m.clientLeft+parseFloat(k.paddingLeft))*v.x,S=x.top+(m.clientTop+parseFloat(k.paddingTop))*v.y;l*=v.x,c*=v.y,d*=v.x,h*=v.y,l+=y,c+=S,p=Je(m),m=ia(p)}}return ei({width:d,height:h,x:l,y:c})}function oi(e,t){const r=ni(e).scrollLeft;return t?t.left+r:hr(bt(e)).left+r}function pd(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-oi(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function Iy(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",s=bt(n),a=t?ri(t.floating):!1;if(n===s||a&&i)return r;let l={scrollLeft:0,scrollTop:0},c=mt(1);const d=mt(0),h=yt(n);if((h||!h&&!i)&&((tn(n)!=="body"||Mn(s))&&(l=ni(n)),yt(n))){const f=hr(n);c=nn(n),d.x=f.x+n.clientLeft,d.y=f.y+n.clientTop}const g=s&&!h&&!i?pd(s,l):mt(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+g.x,y:r.y*c.y-l.scrollTop*c.y+d.y+g.y}}function Ty(e){return Array.from(e.getClientRects())}function Py(e){const t=bt(e),r=ni(e),n=e.ownerDocument.body,o=Qe(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Qe(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+oi(e);const a=-r.scrollTop;return lt(n).direction==="rtl"&&(s+=Qe(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}const md=25;function Ny(e,t){const r=Je(e),n=bt(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const d=oa();(!d||d&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=oi(n);if(c<=0){const d=n.ownerDocument,h=d.body,g=getComputedStyle(h),f=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,p=Math.abs(n.clientWidth-h.clientWidth-f);p<=md&&(i-=p)}else c<=md&&(i+=c);return{width:i,height:s,x:a,y:l}}const Ay=new Set(["absolute","fixed"]);function Ry(e,t){const r=hr(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=yt(e)?nn(e):mt(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=n*i.y;return{width:s,height:a,x:l,y:c}}function vd(e,t,r){let n;if(t==="viewport")n=Ny(e,r);else if(t==="document")n=Py(bt(e));else if(at(t))n=Ry(t,r);else{const o=gd(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ei(n)}function bd(e,t){const r=Yt(e);return r===t||!at(r)||rn(r)?!1:lt(r).position==="fixed"||bd(r,t)}function Vy(e,t){const r=t.get(e);if(r)return r;let n=$n(e,[],!1).filter(a=>at(a)&&tn(a)!=="body"),o=null;const i=lt(e).position==="fixed";let s=i?Yt(e):e;for(;at(s)&&!rn(s);){const a=lt(s),l=na(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&Ay.has(o.position)||Mn(s)&&!l&&bd(e,s))?n=n.filter(d=>d!==s):o=a,s=Yt(s)}return t.set(e,n),n}function _y(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?ri(t)?[]:Vy(t,this._c):[].concat(r),n],a=s[0],l=s.reduce((c,d)=>{const h=vd(t,d,o);return c.top=Qe(h.top,c.top),c.right=Kt(h.right,c.right),c.bottom=Kt(h.bottom,c.bottom),c.left=Qe(h.left,c.left),c},vd(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Ly(e){const{width:t,height:r}=fd(e);return{width:t,height:r}}function Fy(e,t,r){const n=yt(t),o=bt(t),i=r==="fixed",s=hr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=mt(0);function c(){l.x=oi(o)}if(n||!n&&!i)if((tn(t)!=="body"||Mn(o))&&(a=ni(t)),n){const f=hr(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else o&&c();i&&!n&&o&&c();const d=o&&!n&&!i?pd(o,a):mt(0),h=s.left+a.scrollLeft-l.x-d.x,g=s.top+a.scrollTop-l.y-d.y;return{x:h,y:g,width:s.width,height:s.height}}function aa(e){return lt(e).position==="static"}function yd(e,t){if(!yt(e)||lt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return bt(e)===r&&(r=r.ownerDocument.body),r}function xd(e,t){const r=Je(e);if(ri(e))return r;if(!yt(e)){let o=Yt(e);for(;o&&!rn(o);){if(at(o)&&!aa(o))return o;o=Yt(o)}return r}let n=yd(e,t);for(;n&&by(n)&&aa(n);)n=yd(n,t);return n&&rn(n)&&aa(n)&&!na(n)?r:n||ky(e)||r}const zy=async function(e){const t=this.getOffsetParent||xd,r=this.getDimensions,n=await r(e.floating);return{reference:Fy(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Dy(e){return lt(e).direction==="rtl"}const My={convertOffsetParentRelativeRectToViewportRelativeRect:Iy,getDocumentElement:bt,getClippingRect:_y,getOffsetParent:xd,getElementRects:zy,getClientRects:Ty,getDimensions:Ly,getScale:nn,isElement:at,isRTL:Dy};function Sd(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $y(e,t){let r=null,n;const o=bt(e);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:d,top:h,width:g,height:f}=c;if(a||t(),!g||!f)return;const p=Jo(h),m=Jo(o.clientWidth-(d+g)),v=Jo(o.clientHeight-(h+f)),x=Jo(d),y={rootMargin:-p+"px "+-m+"px "+-v+"px "+-x+"px",threshold:Qe(0,Kt(1,l))||1};let S=!0;function b(O){const T=O[0].intersectionRatio;if(T!==l){if(!S)return s();T?s(!1,T):n=setTimeout(()=>{s(!1,1e-7)},1e3)}T===1&&!Sd(c,e.getBoundingClientRect())&&s(),S=!1}try{r=new IntersectionObserver(b,{...y,root:o.ownerDocument})}catch{r=new IntersectionObserver(b,y)}r.observe(e)}return s(!0),i}function Wy(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=sa(e),d=o||i?[...c?$n(c):[],...$n(t)]:[];d.forEach(x=>{o&&x.addEventListener("scroll",r,{passive:!0}),i&&x.addEventListener("resize",r)});const h=c&&a?$y(c,r):null;let g=-1,f=null;s&&(f=new ResizeObserver(x=>{let[k]=x;k&&k.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var y;(y=f)==null||y.observe(t)})),r()}),c&&!l&&f.observe(c),f.observe(t));let p,m=l?hr(e):null;l&&v();function v(){const x=hr(e);m&&!Sd(m,x)&&r(),m=x,p=requestAnimationFrame(v)}return r(),()=>{var x;d.forEach(k=>{o&&k.removeEventListener("scroll",r),i&&k.removeEventListener("resize",r)}),h?.(),(x=f)==null||x.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const By=hy,Hy=fy,Uy=cy,jy=py,Gy=dy,qy=ly,Ky=gy,Yy=(e,t,r)=>{const n=new Map,o={platform:My,...r},i={...o.platform,_c:n};return ay(e,t,{...o,platform:i})};function Cd(e=0,t=0,r=0,n=0){if(typeof DOMRect=="function")return new DOMRect(e,t,r,n);const o={x:e,y:t,width:r,height:n,top:t,right:e+r,bottom:t+n,left:e};return{...o,toJSON:()=>o}}function Xy(e){if(!e)return Cd();const{x:t,y:r,width:n,height:o}=e;return Cd(t,r,n,o)}function Qy(e,t){return{contextElement:ke(e)?e:void 0,getBoundingClientRect:()=>{const r=e,n=t?.(r);return n||!r?Xy(n):r.getBoundingClientRect()}}}var Wn=e=>({variable:e,reference:`var(${e})`}),zt={arrowSize:Wn("--arrow-size"),arrowSizeHalf:Wn("--arrow-size-half"),arrowBg:Wn("--arrow-background"),transformOrigin:Wn("--transform-origin"),arrowOffset:Wn("--arrow-offset")},Jy=e=>e==="top"||e==="bottom"?"y":"x";function Zy(e,t){return{name:"transformOrigin",fn(r){const{elements:n,middlewareData:o,placement:i,rects:s,y:a}=r,l=i.split("-")[0],c=Jy(l),d=o.arrow?.x||0,h=o.arrow?.y||0,g=t?.clientWidth||0,f=t?.clientHeight||0,p=d+g/2,m=h+f/2,v=Math.abs(o.shift?.y||0),x=s.reference.height/2,k=f/2,y=e.offset?.mainAxis??e.gutter,S=typeof y=="number"?y+k:y??k,b=v>S,O={top:`${p}px calc(100% + ${S}px)`,bottom:`${p}px ${-S}px`,left:`calc(100% + ${S}px) ${m}px`,right:`${-S}px ${m}px`}[l],T=`${p}px ${s.reference.y+x-a}px`,R=!!e.overlap&&c==="y"&&b;return n.floating.style.setProperty(zt.transformOrigin.variable,R?T:O),{data:{transformOrigin:R?T:O}}}}}var ex={name:"rects",fn({rects:e}){return{data:e}}},tx=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:r}){if(!r.arrow)return{};const{x:n,y:o}=r.arrow,i=t.split("-")[0];return Object.assign(e.style,{left:n!=null?`${n}px`:"",top:o!=null?`${o}px`:"",[i]:`calc(100% + ${zt.arrowOffset.reference})`}),{}}}};function rx(e){const[t,r]=e.split("-");return{side:t,align:r,hasAlign:r!=null}}function nx(e){return e.split("-")[0]}var ox={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 r=e.devicePixelRatio||1;return Math.round(t*r)/r}function la(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function ix(e,t,r){const n=e||t.createElement("div");return qy({element:n,padding:r.arrowPadding})}function sx(e,t){if(!Fv(t.offset??t.gutter))return By(({placement:r})=>{const n=(e?.clientHeight||0)/2,o=t.offset?.mainAxis??t.gutter,i=typeof o=="number"?o+n:o??n,{hasAlign:s}=rx(r),a=s?void 0:t.shift,l=t.offset?.crossAxis??a;return Ro({crossAxis:l,mainAxis:i,alignmentAxis:t.shift})})}function ax(e){if(!e.flip)return;const t=la(e.boundary);return Uy({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function lx(e){if(!e.slide&&!e.overlap)return;const t=la(e.boundary);return Hy({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:Ky()})}function cx(e){return jy({padding:e.overflowPadding,apply({elements:t,rects:r,availableHeight:n,availableWidth:o}){const i=t.floating,s=Math.round(r.reference.width),a=Math.round(r.reference.height);o=Math.floor(o),n=Math.floor(n),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",`${n}px`)}})}function dx(e){if(e.hideWhenDetached)return Gy({strategy:"referenceHidden",boundary:la(e.boundary)??"clippingAncestors"})}function ux(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function hx(e,t,r={}){const n=Qy(e,r.getAnchorRect);if(!t||!n)return;const o=Object.assign({},ox,r),i=t.querySelector("[data-part=arrow]"),s=[sx(i,o),ax(o),lx(o),ix(i,t.ownerDocument,o),tx(i),Zy({gutter:o.gutter,offset:o.offset,overlap:o.overlap},i),cx(o),dx(o),ex],{placement:a,strategy:l,onComplete:c,onPositioned:d}=o,h=async()=>{if(!n||!t)return;const m=await Yy(n,t,{placement:a,middleware:s,strategy:l});c?.(m),d?.({placed:!0});const v=me(t),x=kd(v,m.x),k=kd(v,m.y);t.style.setProperty("--x",`${x}px`),t.style.setProperty("--y",`${k}px`),o.hideWhenDetached&&(m.middlewareData.hide?.referenceHidden?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const y=t.firstElementChild;if(y){const S=Kr(y);t.style.setProperty("--z-index",S.zIndex)}},g=async()=>{r.updatePosition?(await r.updatePosition({updatePosition:h,floatingElement:t}),d?.({placed:!0})):await h()},f=ux(o.listeners),p=o.listeners?Wy(n,t,g,f):Uv;return g(),()=>{p?.(),d?.({placed:!1})}}function ct(e,t,r={}){const{defer:n,...o}=r,i=n?U:a=>a(),s=[];return s.push(i(()=>{const a=typeof e=="function"?e():e,l=typeof t=="function"?t():t;s.push(hx(a,l,o))})),()=>{s.forEach(a=>a?.())}}var fx={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function gx(e={}){const{placement:t,sameWidth:r,fitViewport:n,strategy:o="absolute"}=e;return{arrow:{position:"absolute",width:zt.arrowSize.reference,height:zt.arrowSize.reference,[zt.arrowSizeHalf.variable]:`calc(${zt.arrowSize.reference} / 2)`,[zt.arrowOffset.variable]:`calc(${zt.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?fx[t.split("-")[0]]:void 0,background:zt.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:o,isolation:"isolate",minWidth:r?void 0:"max-content",width:r?"var(--reference-width)":void 0,maxWidth:n?"var(--available-width)":void 0,maxHeight:n?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}function px(e){const t={each(r){for(let n=0;n{try{i.document.addEventListener(r,n,o)}catch{}}),()=>{try{t.removeEventListener(r,n,o)}catch{}}},removeEventListener(r,n,o){t.each(i=>{try{i.document.removeEventListener(r,n,o)}catch{}})}};return t}function mx(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(r,n,o)=>{try{t?.addEventListener(r,n,o)}catch{}return()=>{try{t?.removeEventListener(r,n,o)}catch{}}},removeEventListener:(r,n,o)=>{try{t?.removeEventListener(r,n,o)}catch{}}}}var wd="pointerdown.outside",Ed="focus.outside";function vx(e){for(const t of e)if(ke(t)&&Vt(t))return!0;return!1}var Od=e=>"clientY"in e;function bx(e,t){if(!Od(t)||!e)return!1;const r=e.getBoundingClientRect();return r.width===0||r.height===0?!1:r.top<=t.clientY&&t.clientY<=r.top+r.height&&r.left<=t.clientX&&t.clientX<=r.left+r.width}function yx(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function Id(e,t){if(!t||!Od(e))return!1;const r=t.scrollHeight>t.clientHeight,n=r&&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+(r?16:0),height:t.clientHeight+(o?16:0)},a={x:e.clientX,y:e.clientY};return yx(s,a)?n||i:!1}function xx(e,t){const{exclude:r,onFocusOutside:n,onPointerDownOutside:o,onInteractOutside:i,defer:s,followControlledElements:a=!0}=t;if(!e)return;const l=Le(e),c=me(e),d=px(c),h=mx(c);function g(y,S){if(!ke(S)||!S.isConnected||Rt(e,S)||bx(e,y)||a&&wc(e,S))return!1;const b=l.querySelector(`[aria-controls="${e.id}"]`);if(b){const T=Wo(b);if(Id(y,T))return!1}const O=Wo(e);return Id(y,O)?!1:!r?.(S)}const f=new Set,p=lr(e?.getRootNode());function m(y){function S(b){const O=s&&!Ic()?U:E=>E(),T=b??y,R=T?.composedPath?.()??[T?.target];O(()=>{const E=p?R[0]:Ve(y);if(!(!e||!g(y,E))){if(o||i){const P=No(o,i);e.addEventListener(wd,P,{once:!0})}Pd(e,wd,{bubbles:!1,cancelable:!0,detail:{originalEvent:T,contextmenu:B0(T),focusable:vx(R),target:E}})}})}y.pointerType==="touch"?(f.forEach(b=>b()),f.add(ce(l,"click",S,{once:!0})),f.add(h.addEventListener("click",S,{once:!0})),f.add(d.addEventListener("click",S,{once:!0}))):S()}const v=new Set,x=setTimeout(()=>{v.add(ce(l,"pointerdown",m,!0)),v.add(h.addEventListener("pointerdown",m,!0)),v.add(d.addEventListener("pointerdown",m,!0))},0);function k(y){(s?U:b=>b())(()=>{const b=y?.composedPath?.()??[y?.target],O=p?b[0]:Ve(y);if(!(!e||!g(y,O))){if(n||i){const T=No(n,i);e.addEventListener(Ed,T,{once:!0})}Pd(e,Ed,{bubbles:!1,cancelable:!0,detail:{originalEvent:y,contextmenu:!1,focusable:Vt(O),target:O}})}})}return Ic()||(v.add(ce(l,"focusin",k,!0)),v.add(h.addEventListener("focusin",k,!0)),v.add(d.addEventListener("focusin",k,!0))),()=>{clearTimeout(x),f.forEach(y=>y()),v.forEach(y=>y())}}function Td(e,t){const{defer:r}=t,n=r?U:i=>i(),o=[];return o.push(n(()=>{const i=typeof e=="function"?e():e;o.push(xx(i,t))})),()=>{o.forEach(i=>i?.())}}function Pd(e,t,r){const n=e.ownerDocument.defaultView||window,o=new n.CustomEvent(t,r);return e.dispatchEvent(o)}function Sx(e,t){const r=n=>{n.key==="Escape"&&(n.isComposing||t?.(n))};return ce(Le(e),"keydown",r,{capture:!0})}var Nd="layer:request-dismiss",He={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){const t=this.indexOf(e),r=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return tt.type===e)},getNestedLayersByType(e,t){const r=this.indexOf(e);return r===-1?[]:this.layers.slice(r+1).filter(n=>n.type===t)},getParentLayerOfType(e,t){const r=this.indexOf(e);if(!(r<=0))return this.layers.slice(0,r).reverse().find(n=>n.type===t)},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return this.getNestedLayers(e).some(r=>Rt(r.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Rt(t,e))},add(e){this.layers.push(e),this.syncLayers()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(tHe.dismiss(n.node,e)),this.layers.splice(t,1),this.syncLayers())},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayers(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`),e.node.removeAttribute("data-nested"),e.node.removeAttribute("data-has-nested"),this.getParentLayerOfType(e.node,e.type)&&e.node.setAttribute("data-nested",e.type);const n=this.countNestedLayersOfType(e.node,e.type);n>0&&e.node.setAttribute("data-has-nested",e.type),e.node.style.setProperty("--nested-layer-count",`${n}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){const r=this.indexOf(e);if(r===-1)return;const n=this.layers[r];kx(e,Nd,o=>{n.requestDismiss?.(o),o.defaultPrevented||n?.dismiss()}),Cx(e,Nd,{originalLayer:e,targetLayer:t,originalIndex:r,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function Cx(e,t,r){const n=e.ownerDocument.defaultView||window,o=new n.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:r});return e.dispatchEvent(o)}function kx(e,t,r){e.addEventListener(t,r,{once:!0})}var Ad;function Rd(){He.layers.forEach(({node:e})=>{e.style.pointerEvents=He.isBelowPointerBlockingLayer(e)?"none":"auto"})}function wx(e){e.style.pointerEvents=""}function Ex(e,t){const r=Le(e),n=[];return He.hasPointerBlockingLayer()&&!r.body.hasAttribute("data-inert")&&(Ad=document.body.style.pointerEvents,queueMicrotask(()=>{r.body.style.pointerEvents="none",r.body.setAttribute("data-inert","")})),t?.forEach(o=>{const[i,s]=wb(()=>{const a=o();return ke(a)?a:null},{timeout:1e3});i.then(a=>n.push(Uo(a,{pointerEvents:"auto"}))),n.push(s)}),()=>{He.hasPointerBlockingLayer()||(queueMicrotask(()=>{r.body.style.pointerEvents=Ad,r.body.removeAttribute("data-inert"),r.body.style.length===0&&r.body.removeAttribute("style")}),n.forEach(o=>o()))}}function Ox(e,t){const{warnOnMissingNode:r=!0}=t;if(r&&!e){ar("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:n,onRequestDismiss:o,pointerBlocking:i,exclude:s,debug:a,type:l="dialog"}=t,c={dismiss:n,node:e,type:l,pointerBlocking:i,requestDismiss:o};He.add(c),Rd();function d(m){const v=Ve(m.detail.originalEvent);He.isBelowPointerBlockingLayer(e)||He.isInBranch(v)||(t.onPointerDownOutside?.(m),t.onInteractOutside?.(m),!m.defaultPrevented&&(a&&console.log("onPointerDownOutside:",m.detail.originalEvent),n?.()))}function h(m){const v=Ve(m.detail.originalEvent);He.isInBranch(v)||(t.onFocusOutside?.(m),t.onInteractOutside?.(m),!m.defaultPrevented&&(a&&console.log("onFocusOutside:",m.detail.originalEvent),n?.()))}function g(m){He.isTopMost(e)&&(t.onEscapeKeyDown?.(m),!m.defaultPrevented&&n&&(m.preventDefault(),n()))}function f(m){if(!e)return!1;const v=typeof s=="function"?s():s,x=Array.isArray(v)?v:[v],k=t.persistentElements?.map(y=>y()).filter(ke);return k&&x.push(...k),x.some(y=>Rt(y,m))||He.isInNestedLayer(e,m)}const p=[i?Ex(e,t.persistentElements):void 0,Sx(e,g),Td(e,{exclude:f,onFocusOutside:h,onPointerDownOutside:d,defer:t.defer})];return()=>{He.remove(e),Rd(),wx(e),p.forEach(m=>m?.())}}function on(e,t){const{defer:r}=t,n=r?U:i=>i(),o=[];return o.push(n(()=>{const i=Pt(e)?e():e;o.push(Ox(i,t))})),()=>{o.forEach(i=>i?.())}}function Ix(e,t={}){const{defer:r}=t,n=r?U:i=>i(),o=[];return o.push(n(()=>{const i=Pt(e)?e():e;if(!i){ar("[@zag-js/dismissable] branch node is `null` or `undefined`");return}He.addBranch(i),o.push(()=>{He.removeBranch(i)})})),()=>{o.forEach(i=>i?.())}}var Vd=$("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"]);Vd.build();var Tx=e=>e.ids?.hiddenInput??`color-picker:${e.id}:hidden-input`,Px=e=>e.ids?.control??`color-picker:${e.id}:control`,Nx=e=>e.ids?.trigger??`color-picker:${e.id}:trigger`,Ax=e=>e.ids?.content??`color-picker:${e.id}:content`,Rx=e=>e.ids?.positioner??`color-picker:${e.id}:positioner`,Vx=e=>e.ids?.formatSelect??`color-picker:${e.id}:format-select`,_x=e=>e.ids?.area??`color-picker:${e.id}:area`,Lx=e=>e.ids?.areaThumb??`color-picker:${e.id}:area-thumb`,Fx=(e,t)=>e.ids?.channelSliderTrack?.(t)??`color-picker:${e.id}:slider-track:${t}`,zx=(e,t)=>e.ids?.channelSliderThumb?.(t)??`color-picker:${e.id}:slider-thumb:${t}`,ii=e=>e.getById(Ax(e)),Dx=e=>e.getById(Lx(e)),Mx=(e,t)=>e.getById(zx(e,t)),$x=e=>e.getById(Vx(e)),_d=e=>e.getById(Tx(e)),Wx=e=>e.getById(_x(e)),Bx=(e,t,r)=>{const n=Wx(e);if(!n)return;const{getPercentValue:o}=$c(t,n);return{x:o({dir:r,orientation:"horizontal"}),y:o({orientation:"vertical"})}},Hx=e=>e.getById(Px(e)),ca=e=>e.getById(Nx(e)),Ux=e=>e.getById(Rx(e)),jx=(e,t)=>e.getById(Fx(e,t)),Gx=(e,t,r,n)=>{const o=jx(e,r);if(!o)return;const{getPercentValue:i}=$c(t,o);return{x:i({dir:n,orientation:"horizontal"}),y:i({orientation:"vertical"})}},qx=e=>[...Xr(ii(e),"input[data-channel]"),...Xr(Hx(e),"input[data-channel]")];function Kx(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 r=e.getFormat()==="hsla";switch(t){case"hue":return r?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return r?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=>Xo(e),Yx=/^[0-9a-fA-F]{3,8}$/;function Xx(e){return Yx.test(e)}function Qx(e){return e.startsWith("#")?e:Xx(e)?`#${e}`:e}var{and:Jx}=_t();Jx("isOpenControlled","closeOnSelect");function Fd(e,t,r){const n=qx(e);U(()=>{n.forEach(o=>{const i=o.dataset.channel;cr(o,Kx(r||t,i))})})}function Zx(e,t){const r=$x(e);r&&U(()=>cr(r,t))}M()(["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"]),M()(["xChannel","yChannel"]),M()(["channel","orientation"]),M()(["value","disabled"]),M()(["value","respectAlpha"]),M()(["size"]);var si="__live-region__";function e1(e={}){const{level:t="polite",document:r=document,root:n,delay:o=0}=e,i=r.defaultView??window,s=n??r.body;function a(c,d){r.getElementById(si)?.remove(),d=d??o;const g=r.createElement("span");g.id=si,g.dataset.liveAnnouncer="true";const f=t!=="assertive"?"status":"alert";g.setAttribute("aria-live",t),g.setAttribute("role",f),Object.assign(g.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}),s.appendChild(g),i.setTimeout(()=>{g.textContent=c},d)}function l(){r.getElementById(si)?.remove()}return{announce:a,destroy:l,toJSON(){return si}}}var zd=$("splitter").parts("root","panel","resizeTrigger","resizeTriggerIndicator");zd.build(),M()(["dir","getRootNode","id","ids","onResize","onResizeStart","onResizeEnd","onCollapse","onExpand","orientation","size","defaultSize","panels","keyboardResizeBy","nonce"]),M()(["id"]),M()(["disabled","id"]);const[Dd,t1]=pt({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:""}),Md=e=>Jr()(e,["lazyMount","unmountOnExit"]);var $d=$("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");$d.build();var Wd=e=>e.ids?.root??`accordion:${e.id}`,Bd=(e,t)=>e.ids?.itemTrigger?.(t)??`accordion:${e.id}:trigger:${t}`,r1=e=>e.getById(Wd(e)),ai=e=>{const r=`[aria-controls][data-ownedby='${CSS.escape(Wd(e))}']:not([disabled])`;return Xr(r1(e),r)},n1=e=>Tn(ai(e)),o1=e=>Os(ai(e)),i1=(e,t)=>Bc(ai(e),Bd(e,t)),s1=(e,t)=>Hc(ai(e),Bd(e,t)),{and:a1,not:l1}=_t();a1("isExpanded","canToggle"),l1("isExpanded"),M()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]),M()(["value","disabled"]);var Bn=(e,t)=>({x:e,y:t});function c1(e){const{x:t,y:r,width:n,height:o}=e,i=t+n/2,s=r+o/2;return{x:t,y:r,width:n,height:o,minX:t,minY:r,maxX:t+n,maxY:r+o,midX:i,midY:s,center:Bn(i,s)}}function d1(e){const t=Bn(e.minX,e.minY),r=Bn(e.maxX,e.minY),n=Bn(e.maxX,e.maxY),o=Bn(e.minX,e.maxY);return{top:t,right:r,bottom:n,left:o}}function u1(e,t){const r=c1(e),{top:n,right:o,left:i,bottom:s}=d1(r),[a]=t.split("-");return{top:[i,n,o,s],right:[n,o,s,i],bottom:[n,i,s,o],left:[o,n,i,s]}[a]}function h1(e,t){const{x:r,y:n}=t;let o=!1;for(let i=0,s=e.length-1;in!=d>n&&r<(c-a)*(n-l)/(d-l)+a&&(o=!o)}return o}var Hd=$("avatar").parts("root","image","fallback");Hd.build(),M()(["dir","id","ids","onStatusChange","getRootNode"]);var sn=new WeakMap,li=new WeakMap,ci={},da=0,Ud=e=>e&&(e.host||Ud(e.parentNode)),f1=(e,t)=>t.map(r=>{if(e.contains(r))return r;const n=Ud(r);return n&&e.contains(n)?n:(console.error("[zag-js > ariaHidden] target",r,"in not contained inside",e,". Doing nothing"),null)}).filter(r=>!!r),g1=new Set(["script","output","status","next-route-announcer"]),p1=e=>g1.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),m1=(e,t)=>{const{parentNode:r,markerName:n,controlAttribute:o,followControlledElements:i=!0}=t,s=f1(r,Array.isArray(e)?e:[e]);ci[n]||(ci[n]=new WeakMap);const a=ci[n],l=[],c=new Set,d=new Set(s),h=f=>{!f||c.has(f)||(c.add(f),h(f.parentNode))};s.forEach(f=>{h(f),i&&ke(f)&&Ec(f,p=>{h(p)})});const g=f=>{!f||d.has(f)||Array.prototype.forEach.call(f.children,p=>{if(c.has(p))g(p);else try{if(p1(p))return;const v=p.getAttribute(o)==="true",x=(sn.get(p)||0)+1,k=(a.get(p)||0)+1;sn.set(p,x),a.set(p,k),l.push(p),x===1&&v&&li.set(p,!0),k===1&&p.setAttribute(n,""),v||p.setAttribute(o,"true")}catch(m){console.error("[zag-js > ariaHidden] cannot operate on ",p,m)}})};return g(r),c.clear(),da++,()=>{l.forEach(f=>{const p=sn.get(f)-1,m=a.get(f)-1;sn.set(f,p),a.set(f,m),p||(li.has(f)||f.removeAttribute(o),li.delete(f)),m||f.removeAttribute(n)}),da--,da||(sn=new WeakMap,sn=new WeakMap,li=new WeakMap,ci={})}},v1=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,b1=(e,t=v1(e),r="data-aria-hidden",n=!0)=>{if(t)return m1(e,{parentNode:t,markerName:r,controlAttribute:"aria-hidden",followControlledElements:n})},y1=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function x1(e,t={}){const{defer:r=!0}=t,n=r?y1:i=>i(),o=[];return o.push(n(()=>{const s=(typeof e=="function"?e():e).filter(Boolean);s.length!==0&&o.push(b1(s))})),()=>{o.forEach(i=>i?.())}}var S1=Object.defineProperty,C1=(e,t,r)=>t in e?S1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ue=(e,t,r)=>C1(e,typeof t!="symbol"?t+"":t,r),jd={activateTrap(e,t){if(e.length>0){const n=e[e.length-1];n!==t&&n.pause()}const r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}},k1=[],w1=class{constructor(e,t){ue(this,"trapStack"),ue(this,"config"),ue(this,"doc"),ue(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),ue(this,"portalContainers",new Set),ue(this,"listenerCleanups",[]),ue(this,"handleFocus",n=>{const o=Ve(n),i=this.findContainerIndex(o,n)>=0;if(i||_o(o))i&&(this.state.mostRecentlyFocusedNode=o);else{n.stopImmediatePropagation();let s,a=!0;if(this.state.mostRecentlyFocusedNode)if(An(this.state.mostRecentlyFocusedNode)>0){const l=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:c}=this.state.containerGroups[l];if(c.length>0){const d=c.findIndex(h=>h===this.state.mostRecentlyFocusedNode);d>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?d+1=0&&(s=c[d-1],a=!1))}}else this.state.containerGroups.some(l=>l.tabbableNodes.some(c=>An(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}),ue(this,"handlePointerDown",n=>{const o=Ve(n);if(!(this.findContainerIndex(o,n)>=0)){if(Un(this.config.clickOutsideDeactivates,n)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}Un(this.config.allowOutsideClick,n)||n.preventDefault()}}),ue(this,"handleClick",n=>{const o=Ve(n);this.findContainerIndex(o,n)>=0||Un(this.config.clickOutsideDeactivates,n)||Un(this.config.allowOutsideClick,n)||(n.preventDefault(),n.stopImmediatePropagation())}),ue(this,"handleTabKey",n=>{if(this.config.isKeyForward(n)||this.config.isKeyBackward(n)){this.state.recentNavEvent=n;const o=this.config.isKeyBackward(n),i=this.findNextNavNode({event:n,isBackward:o});if(!i)return;Hn(n)&&n.preventDefault(),this.tryFocus(i)}}),ue(this,"handleEscapeKey",n=>{E1(n)&&Un(this.config.escapeDeactivates,n)!==!1&&(n.preventDefault(),this.deactivate())}),ue(this,"_mutationObserver"),ue(this,"setupMutationObserver",()=>{const n=this.doc.defaultView||window;this._mutationObserver=new n.MutationObserver(o=>{o.some(a=>Array.from(a.removedNodes).some(c=>c===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode()),o.some(a=>a.type==="attributes"&&(a.attributeName==="aria-controls"||a.attributeName==="aria-expanded")?!0:a.type==="childList"&&a.addedNodes.length>0?Array.from(a.addedNodes).some(l=>{if(l.nodeType!==Node.ELEMENT_NODE)return!1;const c=l;return P0(c)?!0:c.id&&!this.state.containers.some(d=>d.contains(c))?N0(c):!1}):!1)&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())})}),ue(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&(this.state.containers.map(n=>{this._mutationObserver?.observe(n,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}),this.portalContainers.forEach(n=>{this.observePortalContainer(n)}))}),ue(this,"getInitialFocusNode",()=>{let n=this.getNodeForOption("initialFocus",{hasFallback:!0});if(n===!1)return!1;if(n===void 0||n&&!Vt(n)){const o=Nn(this.doc);if(o&&this.findContainerIndex(o)>=0)n=o;else{const i=this.state.tabbableGroups[0];n=i&&i.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else n===null&&(n=this.getNodeForOption("fallbackFocus"));if(!n)throw new Error("Your focus-trap needs to have at least one focusable element");return n.isConnected||(n=this.getNodeForOption("fallbackFocus")),n}),ue(this,"tryFocus",n=>{if(n!==!1&&n!==Nn(this.doc)){if(!n||!n.focus){this.tryFocus(this.getInitialFocusNode());return}n.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=n,O1(n)&&n.select()}}),ue(this,"deactivate",n=>{if(!this.state.active)return this;const o={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...n};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),jd.deactivateTrap(this.trapStack,this),this.portalContainers.clear();const i=this.getOption(o,"onDeactivate"),s=this.getOption(o,"onPostDeactivate"),a=this.getOption(o,"checkCanReturnFocus"),l=this.getOption(o,"returnFocus","returnFocusOnDeactivate");i?.();const c=()=>{Gd(()=>{if(l){const d=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(d)}s?.()})};if(l&&a){const d=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return a(d).then(c,c),this}return c(),this}),ue(this,"pause",n=>{if(this.state.paused||!this.state.active)return this;const o=this.getOption(n,"onPause"),i=this.getOption(n,"onPostPause");return this.state.paused=!0,o?.(),this.removeListeners(),this.updateObservedNodes(),i?.(),this}),ue(this,"unpause",n=>{if(!this.state.paused||!this.state.active)return this;const o=this.getOption(n,"onUnpause"),i=this.getOption(n,"onPostUnpause");return this.state.paused=!1,o?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i?.(),this}),ue(this,"updateContainerElements",n=>(this.state.containers=Array.isArray(n)?n.filter(Boolean):[n].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),ue(this,"getReturnFocusNode",n=>{const o=this.getNodeForOption("setReturnFocus",{params:[n]});return o||(o===!1?!1:n)}),ue(this,"getOption",(n,o,i)=>n&&n[o]!==void 0?n[o]:this.config[i||o]),ue(this,"getNodeForOption",(n,{hasFallback:o=!1,params:i=[]}={})=>{let s=this.config[n];if(typeof s=="function"&&(s=s(...i)),s===!0&&(s=void 0),!s){if(s===void 0||s===!1)return s;throw new Error(`\`${n}\` 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(`\`${n}\` appears to be an invalid selector; error="${l.message}"`)}if(!a&&!o)throw new Error(`\`${n}\` as selector refers to no known node`)}return a}),ue(this,"findNextNavNode",n=>{const{event:o,isBackward:i=!1}=n,s=n.target||Ve(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 d=this.state.tabbableGroups.findIndex(({firstTabbableNode:h})=>s===h);if(d<0&&(c?.container===s||Vt(s)&&!dr(s)&&!c?.nextTabbableNode(s,!1))&&(d=l),d>=0){const h=d===0?this.state.tabbableGroups.length-1:d-1,g=this.state.tabbableGroups[h];a=An(s)>=0?g.lastTabbableNode:g.lastDomTabbableNode}else Hn(o)||(a=c?.nextTabbableNode(s,!1))}else{let d=this.state.tabbableGroups.findIndex(({lastTabbableNode:h})=>s===h);if(d<0&&(c?.container===s||Vt(s)&&!dr(s)&&!c?.nextTabbableNode(s))&&(d=l),d>=0){const h=d===this.state.tabbableGroups.length-1?0:d+1,g=this.state.tabbableGroups[h];a=An(s)>=0?g.firstTabbableNode:g.firstDomTabbableNode}else Hn(o)||(a=c?.nextTabbableNode(s))}}else a=this.getNodeForOption("fallbackFocus");return a}),this.trapStack=t.trapStack||k1;const r={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward(n){return Hn(n)&&!n.shiftKey},isKeyBackward(n){return Hn(n)&&n.shiftKey},...t};this.doc=r.document||Le(Array.isArray(e)?e[0]:e),this.config=r,this.updateContainerElements(e),this.setupMutationObserver()}addPortalContainer(e){const t=e.parentElement;t&&!this.portalContainers.has(t)&&(this.portalContainers.add(t),this.state.active&&!this.state.paused&&this.observePortalContainer(t))}observePortalContainer(e){this._mutationObserver?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}updatePortalContainers(){this.config.followControlledElements&&this.state.containers.forEach(e=>{O0(e).forEach(r=>{this.addPortalContainer(r)})})}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const r=typeof t?.composedPath=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:n,tabbableNodes:o})=>n.contains(e)||r?.includes(n)||o.find(i=>i===e)||this.isControlledElement(n,e))}isControlledElement(e,t){return this.config.followControlledElements?wc(e,t):!1}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=$o(e,{getShadowRoot:this.config.getShadowRoot}),r=Fc(e,{getShadowRoot:this.config.getShadowRoot}),n=t[0],o=t[t.length-1],i=n,s=o;let a=!1;for(let c=0;c0){a=!0;break}function l(c,d=!0){const h=t.indexOf(c);if(h>=0)return t[h+(d?1:-1)];const g=r.indexOf(c);if(!(g<0)){if(d){for(let f=g+1;f=0;f--)if(dr(r[f]))return r[f]}}return{container:e,tabbableNodes:t,focusableNodes:r,posTabIndexesFound:a,firstTabbableNode:n,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 jd.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?Gd(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(ce(this.doc,"focusin",this.handleFocus,!0),ce(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),ce(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),ce(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),ce(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),ce(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"),r=this.getOption(e,"onPostActivate"),n=this.getOption(e,"checkCanFocusTrap");n||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=Nn(this.doc),t?.();const o=()=>{n&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),r?.()};return n?(n(this.state.containers.concat()).then(o,o),this):(o(),this)}},Hn=e=>e.key==="Tab",Un=(e,...t)=>typeof e=="function"?e(...t):e,E1=e=>!e.isComposing&&e.key==="Escape",Gd=e=>setTimeout(e,0),O1=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function I1(e,t={}){let r;const n=U(()=>{const o=typeof e=="function"?e():e;if(o){r=new w1(o,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:o,...t,document:Le(o)});try{r.activate()}catch{}}});return function(){r?.deactivate(),n()}}var ua="data-scroll-lock";function T1(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function qd(e){const r=Kr(e)?.scrollbarGutter;return r==="stable"||r?.startsWith("stable ")===!0}function P1(e){const t=e??document,r=t.defaultView??window,{documentElement:n,body:o}=t;if(o.hasAttribute(ua))return;const s=qd(n)||qd(o),a=r.innerWidth-n.clientWidth;o.setAttribute(ua,"");const l=()=>yb(n,"--scrollbar-width",`${a}px`),c=T1(n),d=()=>{const f={overflow:"hidden"};return!s&&a>0&&(f[c]=`${a}px`),Uo(o,f)},h=()=>{const{scrollX:f,scrollY:p,visualViewport:m}=r,v=m?.offsetLeft??0,x=m?.offsetTop??0,k={position:"fixed",overflow:"hidden",top:`${-(p-Math.floor(x))}px`,left:`${-(f-Math.floor(v))}px`,right:"0"};!s&&a>0&&(k[c]=`${a}px`);const y=Uo(o,k);return()=>{y?.(),r.scrollTo({left:f,top:p,behavior:"instant"})}},g=[l(),Fo()?h():d()];return()=>{g.forEach(f=>f?.()),o.removeAttribute(ua)}}var Kd=$("carousel").parts("root","itemGroup","item","control","nextTrigger","prevTrigger","indicatorGroup","indicator","autoplayTrigger","progressText");Kd.build(),M()(["dir","getRootNode","id","ids","loop","page","defaultPage","onPageChange","orientation","slideCount","slidesPerPage","slidesPerMove","spacing","padding","autoplay","allowMouseDrag","inViewThreshold","translations","snapType","autoSize","onDragStatusChange","onAutoplayStatusChange"]),M()(["index","readOnly"]),M()(["index","snapAlign"]);const N1=Kd.extendWith("progressText","autoplayIndicator");function A1(e){return!(e.metaKey||!zo()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var R1=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function V1(e,t,r){const n=r?Ve(r):null,o=me(n);return e=e||n instanceof o.HTMLInputElement&&!R1.has(n?.type)||n instanceof o.HTMLTextAreaElement||n instanceof o.HTMLElement&&n.isContentEditable,!(e&&t==="keyboard"&&r instanceof o.KeyboardEvent&&!Reflect.has(_1,r.key))}var Xt=null,ha=new Set,di=new Map,fr=!1,fa=!1,_1={Tab:!0,Escape:!0};function ui(e,t){for(let r of ha)r(e,t)}function hi(e){fr=!0,A1(e)&&(Xt="keyboard",ui("keyboard",e))}function tt(e){Xt="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(fr=!0,ui("pointer",e))}function Yd(e){W0(e)&&(fr=!0,Xt="virtual")}function Xd(e){const t=Ve(e);t===me(t)||t===Le(t)||(!fr&&!fa&&(Xt="virtual",ui("virtual",e)),fr=!1,fa=!1)}function Qd(){fr=!1,fa=!0}function L1(e){if(typeof window>"u"||di.get(me(e)))return;const t=me(e),r=Le(e);let n=t.HTMLElement.prototype.focus;function o(){Xt="virtual",ui("virtual",null),fr=!0,n.apply(this,arguments)}try{Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:o})}catch{}r.addEventListener("keydown",hi,!0),r.addEventListener("keyup",hi,!0),r.addEventListener("click",Yd,!0),t.addEventListener("focus",Xd,!0),t.addEventListener("blur",Qd,!1),typeof t.PointerEvent<"u"?(r.addEventListener("pointerdown",tt,!0),r.addEventListener("pointermove",tt,!0),r.addEventListener("pointerup",tt,!0)):(r.addEventListener("mousedown",tt,!0),r.addEventListener("mousemove",tt,!0),r.addEventListener("mouseup",tt,!0)),t.addEventListener("beforeunload",()=>{F1(e)},{once:!0}),di.set(t,{focus:n})}var F1=(e,t)=>{const r=me(e),n=Le(e),o=di.get(r);if(o){try{Object.defineProperty(r.HTMLElement.prototype,"focus",{configurable:!0,value:o.focus})}catch{}n.removeEventListener("keydown",hi,!0),n.removeEventListener("keyup",hi,!0),n.removeEventListener("click",Yd,!0),r.removeEventListener("focus",Xd,!0),r.removeEventListener("blur",Qd,!1),typeof r.PointerEvent<"u"?(n.removeEventListener("pointerdown",tt,!0),n.removeEventListener("pointermove",tt,!0),n.removeEventListener("pointerup",tt,!0)):(n.removeEventListener("mousedown",tt,!0),n.removeEventListener("mousemove",tt,!0),n.removeEventListener("mouseup",tt,!0)),di.delete(r)}};function z1(){return Xt}function Jd(){return Xt==="keyboard"}function Zd(e={}){const{isTextInput:t,autoFocus:r,onChange:n,root:o}=e;L1(o),n?.({isFocusVisible:r||Jd(),modality:Xt});const i=(s,a)=>{V1(!!t,s,a)&&n?.({isFocusVisible:Jd(),modality:s})};return ha.add(i),()=>{ha.delete(i)}}var eu=$("checkbox").parts("root","label","control","indicator");eu.build(),M()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const D1=eu.extendWith("group"),[A5,ga]=pt({name:"FieldContext",hookName:"useFieldContext",providerName:"",strict:!1});var tu=$("clipboard").parts("root","control","trigger","indicator","input","label");tu.build(),M()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]),M()(["copied"]);const M1=Vd.extendWith("view");var $1=Object.defineProperty,W1=(e,t,r)=>t in e?$1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,V=(e,t,r)=>W1(e,typeof t!="symbol"?t+"":t,r),fi={itemToValue(e){return typeof e=="string"?e:sr(e)&&Nt(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:sr(e)&&Nt(e,"label")?e.label:fi.itemToValue(e)},isItemDisabled(e){return sr(e)&&Nt(e,"disabled")?!!e.disabled:!1}},gr=class dm{constructor(t){this.options=t,V(this,"items"),V(this,"indexMap",null),V(this,"copy",r=>new dm({...this.options,items:r??[...this.items]})),V(this,"isEqual",r=>$e(this.items,r.items)),V(this,"setItems",r=>this.copy(r)),V(this,"getValues",(r=this.items)=>{const n=[];for(const o of r){const i=this.getItemValue(o);i!=null&&n.push(i)}return n}),V(this,"find",r=>{if(r==null)return null;const n=this.indexOf(r);return n!==-1?this.at(n):null}),V(this,"findMany",r=>{const n=[];for(const o of r){const i=this.find(o);i!=null&&n.push(i)}return n}),V(this,"at",r=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[r]??null;let n=0;const o=this.group();for(const[,i]of o)for(const s of i){if(n===r)return s;n++}return null}),V(this,"sortFn",(r,n)=>{const o=this.indexOf(r),i=this.indexOf(n);return(o??0)-(i??0)}),V(this,"sort",r=>[...r].sort(this.sortFn.bind(this))),V(this,"getItemValue",r=>r==null?null:this.options.itemToValue?.(r)??fi.itemToValue(r)),V(this,"getItemDisabled",r=>r==null?!1:this.options.isItemDisabled?.(r)??fi.isItemDisabled(r)),V(this,"stringifyItem",r=>r==null?null:this.options.itemToString?.(r)??fi.itemToString(r)),V(this,"stringify",r=>r==null?null:this.stringifyItem(this.find(r))),V(this,"stringifyItems",(r,n=", ")=>{const o=[];for(const i of r){const s=this.stringifyItem(i);s!=null&&o.push(s)}return o.join(n)}),V(this,"stringifyMany",(r,n)=>this.stringifyItems(this.findMany(r),n)),V(this,"has",r=>this.indexOf(r)!==-1),V(this,"hasItem",r=>r==null?!1:this.has(this.getItemValue(r))),V(this,"group",()=>{const{groupBy:r,groupSort:n}=this.options;if(!r)return[["",[...this.items]]];const o=new Map;this.items.forEach((s,a)=>{const l=r(s,a);o.has(l)||o.set(l,[]),o.get(l).push(s)});let i=Array.from(o.entries());return n&&i.sort(([s],[a])=>{if(typeof n=="function")return n(s,a);if(Array.isArray(n)){const l=n.indexOf(s),c=n.indexOf(a);return l===-1?1:c===-1?-1:l-c}return n==="asc"?s.localeCompare(a):n==="desc"?a.localeCompare(s):0}),i}),V(this,"getNextValue",(r,n=1,o=!1)=>{let i=this.indexOf(r);if(i===-1)return null;for(i=o?Math.min(i+n,this.size-1):i+n;i<=this.size&&this.getItemDisabled(this.at(i));)i++;return this.getItemValue(this.at(i))}),V(this,"getPreviousValue",(r,n=1,o=!1)=>{let i=this.indexOf(r);if(i===-1)return null;for(i=o?Math.max(i-n,0):i-n;i>=0&&this.getItemDisabled(this.at(i));)i--;return this.getItemValue(this.at(i))}),V(this,"indexOf",r=>{if(r==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(n=>this.getItemValue(n)===r);if(!this.indexMap){this.indexMap=new Map;let n=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,n),n++}}return this.indexMap.get(r)??-1}),V(this,"getByText",(r,n)=>{const o=n!=null?this.indexOf(n):-1,i=r.length===1;for(let s=0;s{const{state:o,currentValue:i,timeout:s=350}=n,a=o.keysSoFar+r,c=a.length>1&&Array.from(a).every(p=>p===a[0])?a[0]:a,d=this.getByText(c,i),h=this.getItemValue(d);function g(){clearTimeout(o.timer),o.timer=-1}function f(p){o.keysSoFar=p,g(),p!==""&&(o.timer=+setTimeout(()=>{f(""),g()},s))}return f(a),h}),V(this,"update",(r,n)=>{let o=this.indexOf(r);return o===-1?this:this.copy([...this.items.slice(0,o),n,...this.items.slice(o+1)])}),V(this,"upsert",(r,n,o="append")=>{let i=this.indexOf(r);return i===-1?(o==="append"?this.append:this.prepend)(n):this.copy([...this.items.slice(0,i),n,...this.items.slice(i+1)])}),V(this,"insert",(r,...n)=>this.copy(jn(this.items,r,...n))),V(this,"insertBefore",(r,...n)=>{let o=this.indexOf(r);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(jn(this.items,o,...n))}),V(this,"insertAfter",(r,...n)=>{let o=this.indexOf(r);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(jn(this.items,o+1,...n))}),V(this,"prepend",(...r)=>this.copy(jn(this.items,0,...r))),V(this,"append",(...r)=>this.copy(jn(this.items,this.items.length,...r))),V(this,"filter",r=>{const n=this.items.filter((o,i)=>r(this.stringifyItem(o),i,o));return this.copy(n)}),V(this,"remove",(...r)=>{const n=r.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:!n.includes(i)}))}),V(this,"move",(r,n)=>{const o=this.indexOf(r);return o===-1?this:this.copy(gi(this.items,[o],n))}),V(this,"moveBefore",(r,...n)=>{let o=this.items.findIndex(s=>this.getItemValue(s)===r);if(o===-1)return this;let i=n.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(gi(this.items,i,o))}),V(this,"moveAfter",(r,...n)=>{let o=this.items.findIndex(s=>this.getItemValue(s)===r);if(o===-1)return this;let i=n.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(gi(this.items,i,o+1))}),V(this,"reorder",(r,n)=>this.copy(gi(this.items,[r],n))),V(this,"compareValue",(r,n)=>{const o=this.indexOf(r),i=this.indexOf(n);return oi?1:0}),V(this,"range",(r,n)=>{let o=[],i=r;for(;i!=null;){if(this.find(i)&&o.push(i),i===n)return o;i=this.getNextValue(i)}return[]}),V(this,"getValueRange",(r,n)=>r&&n?this.compareValue(r,n)<=0?this.range(r,n):this.range(n,r):[]),V(this,"toString",()=>{let r="";for(const n of this.items){const o=this.getItemValue(n),i=this.stringifyItem(n),s=this.getItemDisabled(n),a=[o,i,s].filter(Boolean).join(":");r+=a+","}return r}),V(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}},B1=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function jn(e,t,...r){return[...e.slice(0,t),...r,...e.slice(t)]}function gi(e,t,r){t=[...t].sort((o,i)=>o-i);const n=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 r=Math.max(0,r-t.filter(o=>o{const r=new is([...this]);return this.sync(r)}),V(this,"sync",r=>(r.selectionMode=this.selectionMode,r.deselectable=this.deselectable,r)),V(this,"isEmpty",()=>this.size===0),V(this,"isSelected",r=>this.selectionMode==="none"||r==null?!1:this.has(r)),V(this,"canSelect",(r,n)=>this.selectionMode!=="none"||!r.getItemDisabled(r.find(n))),V(this,"firstSelectedValue",r=>{let n=null;for(let o of this)(!n||r.compareValue(o,n)<0)&&(n=o);return n}),V(this,"lastSelectedValue",r=>{let n=null;for(let o of this)(!n||r.compareValue(o,n)>0)&&(n=o);return n}),V(this,"extendSelection",(r,n,o)=>{if(this.selectionMode==="none")return this;if(this.selectionMode==="single")return this.replaceSelection(r,o);const i=this.copy(),s=Array.from(this).pop();for(let a of r.getValueRange(n,s??o))i.delete(a);for(let a of r.getValueRange(o,n))this.canSelect(r,a)&&i.add(a);return i}),V(this,"toggleSelection",(r,n)=>{if(this.selectionMode==="none")return this;if(this.selectionMode==="single"&&!this.isSelected(n))return this.replaceSelection(r,n);const o=this.copy();return o.has(n)?o.delete(n):o.canSelect(r,n)&&o.add(n),o}),V(this,"replaceSelection",(r,n)=>{if(this.selectionMode==="none")return this;if(n==null)return this;if(!this.canSelect(r,n))return this;const o=new is([n]);return this.sync(o)}),V(this,"setSelection",r=>{if(this.selectionMode==="none")return this;let n=new is;for(let o of r)if(o!=null&&(n.add(o),this.selectionMode==="single"))break;return this.sync(n)}),V(this,"clearSelection",()=>{const r=this.copy();return r.deselectable&&r.size>0&&r.clear(),r}),V(this,"select",(r,n,o)=>this.selectionMode==="none"?this:this.selectionMode==="single"?this.isSelected(n)&&this.deselectable?this.toggleSelection(r,n):this.replaceSelection(r,n):this.selectionMode==="multiple"||o?this.toggleSelection(r,n):this.replaceSelection(r,n)),V(this,"deselect",r=>{const n=this.copy();return n.delete(r),n}),V(this,"isEqual",r=>$e(Array.from(this),Array.from(r)))}};function ru(e,t,r){for(let n=0;nt[r])return 1}return e.length-t.length}function j1(e){return e.sort(nu)}function G1(e,t){let r;return Ze(e,{...t,onEnter:(n,o)=>{if(t.predicate(n,o))return r=n,"stop"}}),r}function q1(e,t){const r=[];return Ze(e,{onEnter:(n,o)=>{t.predicate(n,o)&&r.push(n)},getChildren:t.getChildren}),r}function ou(e,t){let r;return Ze(e,{onEnter:(n,o)=>{if(t.predicate(n,o))return r=[...o],"stop"},getChildren:t.getChildren}),r}function K1(e,t){let r=t.initialResult;return Ze(e,{...t,onEnter:(n,o)=>{r=t.nextResult(r,n,o)}}),r}function Y1(e,t){return K1(e,{...t,initialResult:[],nextResult:(r,n,o)=>(r.push(...t.transform(n,o)),r)})}function X1(e,t){const{predicate:r,create:n,getChildren:o}=t,i=(s,a)=>{const l=o(s,a),c=[];l.forEach((f,p)=>{const m=[...a,p],v=i(f,m);v&&c.push(v)});const d=a.length===0,h=r(s,a),g=c.length>0;return d||h||g?n(s,c,a):null};return i(e,[])||n(e,[],[])}function Q1(e,t){const r=[];let n=0;const o=new Map,i=new Map;return Ze(e,{getChildren:t.getChildren,onEnter:(s,a)=>{o.has(s)||o.set(s,n++);const l=t.getChildren(s,a);l.forEach(f=>{i.has(f)||i.set(f,s),o.has(f)||o.set(f,n++)});const c=l.length>0?l.map(f=>o.get(f)):void 0,d=i.get(s),h=d?o.get(d):void 0,g=o.get(s);r.push({...s,_children:c,_parent:h,_index:g})}}),r}function J1(e,t){return{type:"insert",index:e,nodes:t}}function Z1(e){return{type:"remove",indexes:e}}function pa(){return{type:"replace"}}function iu(e){return[e.slice(0,-1),e[e.length-1]]}function su(e,t,r=new Map){const[n,o]=iu(e);for(let s=n.length-1;s>=0;s--){const a=n.slice(0,s).join();switch(r.get(a)?.type){case"remove":continue}r.set(a,pa())}const i=r.get(n.join());switch(i?.type){case"remove":r.set(n.join(),{type:"removeThenInsert",removeIndexes:i.indexes,insertIndex:o,insertNodes:t});break;default:r.set(n.join(),J1(o,t))}return r}function au(e){const t=new Map,r=new Map;for(const n of e){const o=n.slice(0,-1).join(),i=r.get(o)??[];i.push(n[n.length-1]),r.set(o,i.sort((s,a)=>s-a))}for(const n of e)for(let o=n.length-2;o>=0;o--){const i=n.slice(0,o).join();t.has(i)||t.set(i,pa())}for(const[n,o]of r)t.set(n,Z1(o));return t}function eS(e,t){const r=new Map,[n,o]=iu(e);for(let i=n.length-1;i>=0;i--){const s=n.slice(0,i).join();r.set(s,pa())}return r.set(n.join(),{type:"removeThenInsert",removeIndexes:[o],insertIndex:o,insertNodes:[t]}),r}function pi(e,t,r){return tS(e,{...r,getChildren:(n,o)=>{const i=o.join();switch(t.get(i)?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return r.getChildren(n,o);default:return[]}},transform:(n,o,i)=>{const s=i.join(),a=t.get(s);switch(a?.type){case"remove":return r.create(n,o.filter((d,h)=>!a.indexes.includes(h)),i);case"removeThenInsert":const l=o.filter((d,h)=>!a.removeIndexes.includes(h)),c=a.removeIndexes.reduce((d,h)=>h{const i=[0,...o],s=i.join(),a=t.transform(n,r[s]??[],o),l=i.slice(0,-1).join(),c=r[l]??[];c.push(a),r[l]=c}}),r[""][0]}function rS(e,t){const{nodes:r,at:n}=t;if(n.length===0)throw new Error("Can't insert nodes at the root");const o=su(n,r);return pi(e,o,t)}function nS(e,t){if(t.at.length===0)return t.node;const r=eS(t.at,t.node);return pi(e,r,t)}function oS(e,t){if(t.indexPaths.length===0)return e;for(const n of t.indexPaths)if(n.length===0)throw new Error("Can't remove the root node");const r=au(t.indexPaths);return pi(e,r,t)}function iS(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 r=U1(t.indexPaths),n=r.map(i=>ru(e,i,t)),o=su(t.to,n,au(r));return pi(e,o,t)}function Ze(e,t){const{onEnter:r,onLeave:n,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 d=r?.(l.node,a());if(d==="stop")return;l.state=d==="skip"?-1:0}const c=l.children||o(l.node,a());if(l.children||(l.children=c),l.state!==-1){if(l.state$e(this.rootNode,r.rootNode)),V(this,"getNodeChildren",r=>this.options.nodeToChildren?.(r)??an.nodeToChildren(r)??[]),V(this,"resolveIndexPath",r=>typeof r=="string"?this.getIndexPath(r):r),V(this,"resolveNode",r=>{const n=this.resolveIndexPath(r);return n?this.at(n):void 0}),V(this,"getNodeChildrenCount",r=>this.options.nodeToChildrenCount?.(r)??an.nodeToChildrenCount(r)),V(this,"getNodeValue",r=>this.options.nodeToValue?.(r)??an.nodeToValue(r)),V(this,"getNodeDisabled",r=>this.options.isNodeDisabled?.(r)??an.isNodeDisabled(r)),V(this,"stringify",r=>{const n=this.findNode(r);return n?this.stringifyNode(n):null}),V(this,"stringifyNode",r=>this.options.nodeToString?.(r)??an.nodeToString(r)),V(this,"getFirstNode",(r=this.rootNode)=>{let n;return Ze(r,{getChildren:this.getNodeChildren,onEnter:(o,i)=>{if(!n&&i.length>0&&!this.getNodeDisabled(o))return n=o,"stop"}}),n}),V(this,"getLastNode",(r=this.rootNode,n={})=>{let o;return Ze(r,{getChildren:this.getNodeChildren,onEnter:(i,s)=>{if(!this.isSameNode(i,r)){if(n.skip?.({value:this.getNodeValue(i),node:i,indexPath:s}))return"skip";s.length>0&&!this.getNodeDisabled(i)&&(o=i)}}}),o}),V(this,"at",r=>ru(this.rootNode,r,{getChildren:this.getNodeChildren})),V(this,"findNode",(r,n=this.rootNode)=>G1(n,{getChildren:this.getNodeChildren,predicate:o=>this.getNodeValue(o)===r})),V(this,"findNodes",(r,n=this.rootNode)=>{const o=new Set(r.filter(i=>i!=null));return q1(n,{getChildren:this.getNodeChildren,predicate:i=>o.has(this.getNodeValue(i))})}),V(this,"sort",r=>r.reduce((n,o)=>{const i=this.getIndexPath(o);return i&&n.push({value:o,indexPath:i}),n},[]).sort((n,o)=>nu(n.indexPath,o.indexPath)).map(({value:n})=>n)),V(this,"getIndexPath",r=>ou(this.rootNode,{getChildren:this.getNodeChildren,predicate:n=>this.getNodeValue(n)===r})),V(this,"getValue",r=>{const n=this.at(r);return n?this.getNodeValue(n):void 0}),V(this,"getValuePath",r=>{if(!r)return[];const n=[];let o=[...r];for(;o.length>0;){const i=this.at(o);i&&n.unshift(this.getNodeValue(i)),o.pop()}return n}),V(this,"getDepth",r=>ou(this.rootNode,{getChildren:this.getNodeChildren,predicate:o=>this.getNodeValue(o)===r})?.length??0),V(this,"isSameNode",(r,n)=>this.getNodeValue(r)===this.getNodeValue(n)),V(this,"isRootNode",r=>this.isSameNode(r,this.rootNode)),V(this,"contains",(r,n)=>!r||!n?!1:n.slice(0,r.length).every((o,i)=>r[i]===n[i])),V(this,"getNextNode",(r,n={})=>{let o=!1,i;return Ze(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{if(this.isRootNode(s))return;const l=this.getNodeValue(s);if(n.skip?.({value:l,node:s,indexPath:a}))return l===r&&(o=!0),"skip";if(o&&!this.getNodeDisabled(s))return i=s,"stop";l===r&&(o=!0)}}),i}),V(this,"getPreviousNode",(r,n={})=>{let o,i=!1;return Ze(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{if(this.isRootNode(s))return;const l=this.getNodeValue(s);if(n.skip?.({value:l,node:s,indexPath:a}))return"skip";if(l===r)return i=!0,"stop";this.getNodeDisabled(s)||(o=s)}}),i?o:void 0}),V(this,"getParentNodes",r=>{const n=this.resolveIndexPath(r)?.slice();if(!n)return[];const o=[];for(;n.length>0;){n.pop();const i=this.at(n);i&&!this.isRootNode(i)&&o.unshift(i)}return o}),V(this,"getDescendantNodes",(r,n)=>{const o=this.resolveNode(r);if(!o)return[];const i=[];return Ze(o,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{a.length!==0&&(!n?.withBranch&&this.isBranchNode(s)||i.push(s))}}),i}),V(this,"getDescendantValues",(r,n)=>this.getDescendantNodes(r,n).map(i=>this.getNodeValue(i))),V(this,"getParentIndexPath",r=>r.slice(0,-1)),V(this,"getParentNode",r=>{const n=this.resolveIndexPath(r);return n?this.at(this.getParentIndexPath(n)):void 0}),V(this,"visit",r=>{const{skip:n,...o}=r;Ze(this.rootNode,{...o,getChildren:this.getNodeChildren,onEnter:(i,s)=>{if(!this.isRootNode(i))return n?.({value:this.getNodeValue(i),node:i,indexPath:s})?"skip":o.onEnter?.(i,s)}})}),V(this,"getPreviousSibling",r=>{const n=this.getParentNode(r);if(!n)return;const o=this.getNodeChildren(n);let i=r[r.length-1];for(;--i>=0;){const s=o[i];if(!this.getNodeDisabled(s))return s}}),V(this,"getNextSibling",r=>{const n=this.getParentNode(r);if(!n)return;const o=this.getNodeChildren(n);let i=r[r.length-1];for(;++i{const n=this.getParentNode(r);return n?this.getNodeChildren(n):[]}),V(this,"getValues",(r=this.rootNode)=>Y1(r,{getChildren:this.getNodeChildren,transform:o=>[this.getNodeValue(o)]}).slice(1)),V(this,"isValidDepth",(r,n)=>n==null?!0:typeof n=="function"?n(r.length):r.length===n),V(this,"isBranchNode",r=>this.getNodeChildren(r).length>0||this.getNodeChildrenCount(r)!=null),V(this,"getBranchValues",(r=this.rootNode,n={})=>{let o=[];return Ze(r,{getChildren:this.getNodeChildren,onEnter:(i,s)=>{if(s.length===0)return;const a=this.getNodeValue(i);if(n.skip?.({value:a,node:i,indexPath:s}))return"skip";this.isBranchNode(i)&&this.isValidDepth(s,n.depth)&&o.push(this.getNodeValue(i))}}),o}),V(this,"flatten",(r=this.rootNode)=>Q1(r,{getChildren:this.getNodeChildren})),V(this,"_create",(r,n)=>this.getNodeChildren(r).length>0||n.length>0?{...r,children:n}:{...r}),V(this,"_insert",(r,n,o)=>this.copy(rS(r,{at:n,nodes:o,getChildren:this.getNodeChildren,create:this._create}))),V(this,"copy",r=>new um({...this.options,rootNode:r})),V(this,"_replace",(r,n,o)=>this.copy(nS(r,{at:n,node:o,getChildren:this.getNodeChildren,create:this._create}))),V(this,"_move",(r,n,o)=>this.copy(iS(r,{indexPaths:n,to:o,getChildren:this.getNodeChildren,create:this._create}))),V(this,"_remove",(r,n)=>this.copy(oS(r,{indexPaths:n,getChildren:this.getNodeChildren,create:this._create}))),V(this,"replace",(r,n)=>this._replace(this.rootNode,r,n)),V(this,"remove",r=>this._remove(this.rootNode,r)),V(this,"insertBefore",(r,n)=>this.getParentNode(r)?this._insert(this.rootNode,r,n):void 0),V(this,"insertAfter",(r,n)=>{if(!this.getParentNode(r))return;const i=[...r.slice(0,-1),r[r.length-1]+1];return this._insert(this.rootNode,i,n)}),V(this,"move",(r,n)=>this._move(this.rootNode,r,n)),V(this,"filter",r=>{const n=X1(this.rootNode,{predicate:r,getChildren:this.getNodeChildren,create:this._create});return this.copy(n)}),V(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},an={nodeToValue(e){return typeof e=="string"?e:sr(e)&&Nt(e,"value")?e.value:""},nodeToString(e){return typeof e=="string"?e:sr(e)&&Nt(e,"label")?e.label:an.nodeToValue(e)},isNodeDisabled(e){return sr(e)&&Nt(e,"disabled")?!!e.disabled:!1},nodeToChildren(e){return e.children},nodeToChildrenCount(e){if(sr(e)&&Nt(e,"childrenCount"))return e.childrenCount}};const sS=e=>new gr(e);var du=$("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");du.build();var uu=e=>new gr(e);uu.empty=()=>new gr({items:[]});var aS=e=>e.ids?.control??`combobox:${e.id}:control`,lS=e=>e.ids?.input??`combobox:${e.id}:input`,cS=e=>e.ids?.content??`combobox:${e.id}:content`,dS=e=>e.ids?.positioner??`combobox:${e.id}:popper`,uS=e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`,hS=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,pr=e=>e.getById(cS(e)),Gn=e=>e.getById(lS(e)),hu=e=>e.getById(dS(e)),fu=e=>e.getById(aS(e)),mi=e=>e.getById(uS(e)),fS=e=>e.getById(hS(e)),qn=(e,t)=>{if(t==null)return null;const r=`[role=option][data-value="${CSS.escape(t)}"]`;return fb(pr(e),r)},gu=e=>{const t=Gn(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},gS=e=>{const t=mi(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},{guards:pS,createMachine:mS,choose:vS}=jo(),{and:xe,not:et}=pS;mS({props({props:e}){return{loopFocus:!0,openOnClick:!1,defaultValue:[],defaultInputValue:"",closeOnSelect:!e.multiple,allowCustomValue:!1,alwaysSubmitOnEnter:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:t}){Dc(t)},collection:uu.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:r,getEvent:n}){return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:$e,hash(o){return o.join(",")},onChange(o){const i=r(),s=i.get("selectedItems"),a=e("collection"),l=o.map(c=>s.find(h=>a.getItemValue(h)===c)||a.find(c));i.set("selectedItems",l),e("onValueChange")?.({value:o,items:l})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(o){const i=e("collection").find(o);e("onHighlightChange")?.({highlightedValue:o,highlightedItem:i})}})),inputValue:t(()=>{let o=e("inputValue")||e("defaultInputValue");const i=e("value")||e("defaultValue");if(!o.trim()&&!e("multiple")){const s=e("collection").stringifyMany(i);o=At(e("selectionBehavior"),{preserve:o||s,replace:s,clear:""})}return{defaultValue:o,value:e("inputValue"),onChange(s){const a=n(),l=(a.previousEvent||a).src;e("onInputValueChange")?.({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:r,action:n,send:o}){r([()=>e.hash("value")],()=>{n(["syncSelectedItems"])}),r([()=>e.get("inputValue")],()=>{n(["syncInputValue"])}),r([()=>e.get("highlightedValue")],()=>{n(["syncHighlightedItem","autofillInputValue"])}),r([()=>t("open")],()=>{n(["toggleVisibility"])}),r([()=>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:vS([{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:xe("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:xe("isCustomValue",et("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:xe("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"],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:xe("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:xe("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:xe("isOpenControlled","isCustomValue",et("hasHighlightedItem"),et("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:xe("isCustomValue",et("hasHighlightedItem"),et("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:xe("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:xe("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:xe("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:xe("isOpenControlled","isCustomValue",et("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:xe("isCustomValue",et("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"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:xe("isHighlightedItemRemoved","hasCollectionItems","autoHighlight"),actions:["clearHighlightedValue","highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{guard:"autoHighlight",actions:["highlightFirstItem"]}],"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:xe("isOpenControlled","isCustomValue",et("hasHighlightedItem"),et("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:xe("isCustomValue",et("hasHighlightedItem"),et("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:xe("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:xe("isOpenControlled","isCustomValue",et("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:xe("isCustomValue",et("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:xe("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 r=e("openOnChange");return Lv(r)?r:!!r?.({inputValue:t.get("inputValue")})},restoreFocus:({event:e})=>{const t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null?!0:!!t},isChangeEvent:({event:e})=>e.previousEvent?.type==="INPUT.CHANGE",autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue")),hasCollectionItems:({prop:e})=>e("collection").size>0},effects:{trackDismissableLayer({send:e,prop:t,scope:r}){return t("disableLayer")?void 0:on(()=>pr(r),{type:"listbox",defer:!0,exclude:()=>[Gn(r),mi(r),fS(r)],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})}})},trackPlacement({context:e,prop:t,scope:r}){const n=()=>fu(r)||mi(r),o=()=>hu(r);return e.set("currentPlacement",t("positioning").placement),ct(n,o,{...t("positioning"),defer:!0,onComplete(i){e.set("currentPlacement",i.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:r,event:n}){const o=Gn(r);let i=[];const s=c=>{const d=n.current().type.includes("POINTER"),h=e.get("highlightedValue");if(d||!h)return;const g=pr(r),f=t("scrollToIndexFn");if(f){const v=t("collection").indexOf(h);f({index:v,immediate:c,getElement:()=>qn(r,h)});return}const p=qn(r,h),m=U(()=>{Vn(p,{rootEl:g,block:"nearest"})});i.push(m)},a=U(()=>s(!0));i.push(a);const l=Rn(o,{attributes:["aria-activedescendant"],callback:()=>s(!1)});return i.push(l),()=>{i.forEach(c=>c())}}},actions:{reposition({context:e,prop:t,scope:r,event:n}){ct(()=>fu(r),()=>hu(r),{...t("positioning"),...n.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){const{context:t,prop:r}=e,n=r("collection"),o=t.get("highlightedValue");if(!o||!n.has(o))return;const i=r("multiple")?qr(t.get("value"),o):[o];r("onSelect")?.({value:i,itemValue:o}),t.set("value",i);const s=At(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:n.stringifyMany(i),clear:""});t.set("inputValue",s)},scrollToHighlightedItem({context:e,prop:t,scope:r}){$s(()=>{const n=e.get("highlightedValue");if(n==null)return;const o=qn(r,n),i=pr(r),s=t("scrollToIndexFn");if(s){const a=t("collection").indexOf(n);s({index:a,immediate:!0,getElement:()=>qn(r,n)});return}Vn(o,{rootEl:i,block:"nearest"})})},selectItem(e){const{context:t,event:r,flush:n,prop:o}=e;r.value!=null&&n(()=>{const i=o("multiple")?qr(t.get("value"),r.value):[r.value];o("onSelect")?.({value:i,itemValue:r.value}),t.set("value",i);const s=At(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(i),clear:""});t.set("inputValue",s)})},clearItem(e){const{context:t,event:r,flush:n,prop:o}=e;r.value!=null&&n(()=>{const i=ir(t.get("value"),r.value);t.set("value",i);const s=At(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(i),clear:""});t.set("inputValue",s)})},setInitialFocus({scope:e}){U(()=>{gu(e)})},setFinalFocus({scope:e}){U(()=>{mi(e)?.dataset.focusable==null?gu(e):gS(e)})},syncInputValue({context:e,scope:t,event:r}){const n=Gn(t);n&&(n.value=e.get("inputValue"),queueMicrotask(()=>{r.current().type!=="INPUT.CHANGE"&&c0(n)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:r}){const n=t("selectionBehavior"),o=At(n,{replace:r("hasSelectedItems")?r("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",o)},setValue(e){const{context:t,flush:r,event:n,prop:o}=e;r(()=>{t.set("value",n.value);const i=At(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(n.value),clear:""});t.set("inputValue",i)})},clearSelectedItems(e){const{context:t,flush:r,prop:n}=e;r(()=>{t.set("value",[]);const o=At(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:n("collection").stringifyMany([]),clear:""});t.set("inputValue",o)})},scrollContentToTop({prop:e,scope:t}){const r=e("scrollToIndexFn");if(r){const n=e("collection").firstValue;r({index:0,immediate:!0,getElement:()=>qn(t,n)})}else{const n=pr(t);if(!n)return;n.scrollTop=0}},invokeOnOpen({prop:e,event:t,context:r}){const n=pu(t);e("onOpenChange")?.({open:!0,reason:n,value:r.get("value")})},invokeOnClose({prop:e,event:t,context:r}){const n=pu(t);e("onOpenChange")?.({open:!1,reason:n,value:r.get("value")})},highlightFirstItem({context:e,prop:t,scope:r}){(pr(r)?queueMicrotask:U)(()=>{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:r}){(pr(r)?queueMicrotask:U)(()=>{const o=t("collection").lastValue;o&&e.set("highlightedValue",o)})},highlightNextItem({context:e,prop:t}){let r=null;const n=e.get("highlightedValue"),o=t("collection");n?(r=o.getNextValue(n),!r&&t("loopFocus")&&(r=o.firstValue)):r=o.firstValue,r&&e.set("highlightedValue",r)},highlightPrevItem({context:e,prop:t}){let r=null;const n=e.get("highlightedValue"),o=t("collection");n?(r=o.getPreviousValue(n),!r&&t("loopFocus")&&(r=o.lastValue)):r=o.lastValue,r&&e.set("highlightedValue",r)},highlightFirstSelectedItem({context:e,prop:t}){U(()=>{const[r]=t("collection").sort(e.get("value"));r&&e.set("highlightedValue",r)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:r}){U(()=>{let n=null;r("hasSelectedItems")?n=t("collection").sort(e.get("value"))[0]:n=t("collection").firstValue,n&&e.set("highlightedValue",n)})},highlightLastOrSelectedItem({context:e,prop:t,computed:r}){U(()=>{const n=t("collection");let o=null;r("hasSelectedItems")?o=n.sort(e.get("value"))[0]:o=n.lastValue,o&&e.set("highlightedValue",o)})},autofillInputValue({context:e,computed:t,prop:r,event:n,scope:o}){const i=Gn(o),s=r("collection");if(!t("autoComplete")||!i||!n.keypress)return;const a=s.stringify(e.get("highlightedValue"));U(()=>{i.value=a||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:r}=e,n=r("collection"),o=t.get("value"),i=o.map(a=>t.get("selectedItems").find(c=>n.getItemValue(c)===a)||n.find(a));t.set("selectedItems",i);const s=At(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:n.stringifyMany(o),clear:""});t.set("inputValue",s)})},syncHighlightedItem({context:e,prop:t}){const r=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",r)},toggleVisibility({event:e,send:t,prop:r}){t({type:r("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function pu(e){return(e.previousEvent||e).src}M()(["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","alwaysSubmitOnEnter"]),M()(["htmlFor"]),M()(["id"]),M()(["item","persistFocus"]);const bS=du.extendWith("empty"),[mu,Qt]=pt({name:"DialogContext",hookName:"useDialogContext",providerName:""}),vu=C.forwardRef((e,t)=>{const r=Qt(),n=t1(),o=Ln({...n,present:r.open}),i=ee(r.getBackdropProps(),o.getPresenceProps(),e);return o.unmounted?null:u.jsx(de.div,{...i,ref:_n(o.ref,t)})});vu.displayName="DialogBackdrop";const bu=C.forwardRef((e,t)=>{const r=Qt(),n=ee(r.getCloseTriggerProps(),e);return u.jsx(de.button,{...n,ref:t})});bu.displayName="DialogCloseTrigger";const yu=C.forwardRef((e,t)=>{const r=Qt(),n=Fn(),o=ee(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:u.jsx(de.div,{...o,ref:_n(n.ref,t)})});yu.displayName="DialogContent";const xu=C.forwardRef((e,t)=>{const r=Qt(),n=ee(r.getDescriptionProps(),e);return u.jsx(de.div,{...n,ref:t})});xu.displayName="DialogDescription";const Su=C.forwardRef((e,t)=>{const r=Qt(),n=ee(r.getPositionerProps(),e);return Fn().unmounted?null:u.jsx(de.div,{...n,ref:t})});Su.displayName="DialogPositioner";var ma=$("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),mr=ma.build(),Cu=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,ku=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,va=e=>e.ids?.content??`dialog:${e.id}:content`,wu=e=>e.ids?.trigger??`dialog:${e.id}:trigger`,ba=e=>e.ids?.title??`dialog:${e.id}:title`,ya=e=>e.ids?.description??`dialog:${e.id}:description`,Eu=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,vi=e=>e.getById(va(e)),yS=e=>e.getById(Cu(e)),xS=e=>e.getById(ku(e)),SS=e=>e.getById(wu(e)),CS=e=>e.getById(ba(e)),kS=e=>e.getById(ya(e)),wS=e=>e.getById(Eu(e));function ES(e,t){const{state:r,send:n,context:o,prop:i,scope:s}=e,a=i("aria-label"),l=r.matches("open");return{open:l,setOpen(c){r.matches("open")!==c&&n({type:c?"OPEN":"CLOSE"})},getTriggerProps(){return t.button({...mr.trigger.attrs,dir:i("dir"),id:wu(s),"aria-haspopup":"dialog",type:"button","aria-expanded":l,"data-state":l?"open":"closed","aria-controls":va(s),onClick(c){c.defaultPrevented||n({type:"TOGGLE"})}})},getBackdropProps(){return t.element({...mr.backdrop.attrs,dir:i("dir"),hidden:!l,id:ku(s),"data-state":l?"open":"closed"})},getPositionerProps(){return t.element({...mr.positioner.attrs,dir:i("dir"),id:Cu(s),style:{pointerEvents:l?void 0:"none"}})},getContentProps(){const c=o.get("rendered");return t.element({...mr.content.attrs,dir:i("dir"),role:i("role"),hidden:!l,id:va(s),tabIndex:-1,"data-state":l?"open":"closed","aria-modal":!0,"aria-label":a||void 0,"aria-labelledby":a||!c.title?void 0:ba(s),"aria-describedby":c.description?ya(s):void 0})},getTitleProps(){return t.element({...mr.title.attrs,dir:i("dir"),id:ba(s)})},getDescriptionProps(){return t.element({...mr.description.attrs,dir:i("dir"),id:ya(s)})},getCloseTriggerProps(){return t.button({...mr.closeTrigger.attrs,dir:i("dir"),id:Eu(s),type:"button",onClick(c){c.defaultPrevented||(c.stopPropagation(),n({type:"CLOSE"}))}})}}}var OS={props({props:e,scope:t}){const r=e.role==="alertdialog",n=r?()=>wS(t):void 0,o=typeof e.modal=="boolean"?e.modal:!0;return{role:"dialog",modal:o,trapFocus:o,preventScroll:o,closeOnInteractOutside:!r,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:n,...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:r}){e([()=>r("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:r}){return on(()=>vi(e),{type:"dialog",defer:!0,pointerBlocking:r("modal"),exclude:[SS(e)],onInteractOutside(o){r("onInteractOutside")?.(o),r("closeOnInteractOutside")||o.preventDefault()},persistentElements:r("persistentElements"),onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onRequestDismiss:r("onRequestDismiss"),onEscapeKeyDown(o){r("onEscapeKeyDown")?.(o),r("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return P1(e.getDoc())},trapFocus({scope:e,prop:t}){return t("trapFocus")?I1(()=>vi(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:n=>t("finalFocusEl")?.()??n,getShadowRoot:!0}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?x1(()=>[vi(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){U(()=>{e.set("rendered",{title:!!CS(t),description:!!kS(t)})})},syncZIndex({scope:e}){U(()=>{const t=vi(e);if(!t)return;const r=Kr(t);[yS(e),xS(e)].forEach(o=>{o?.style.setProperty("--z-index",r.zIndex),o?.style.setProperty("--layer-index",r.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},toggleVisibility({prop:e,send:t,event:r}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:r})}}}};M()(["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 IS=e=>{const t=C.useId(),{getRootNode:r}=As(),{dir:n}=Gc(),o={id:t,getRootNode:r,dir:n,...e},i=Gs(OS,o);return ES(i,Xc)},TS=e=>{const[t,{children:r,...n}]=Go(e),[o]=Md(t),i=IS(n),s=Ln(ee({present:i.open},t));return u.jsx(mu,{value:i,children:u.jsx(Dd,{value:o,children:u.jsx(Yo,{value:s,children:r})})})},PS=e=>{const[t,{value:r,children:n}]=Go(e),[o]=Md(t),i=Ln(ee({present:r.open},t));return u.jsx(mu,{value:r,children:u.jsx(Dd,{value:o,children:u.jsx(Yo,{value:i,children:n})})})},Ou=C.forwardRef((e,t)=>{const r=Qt(),n=ee(r.getTitleProps(),e);return u.jsx(de.h2,{...n,ref:t})});Ou.displayName="DialogTitle";const Iu=C.forwardRef((e,t)=>{const r=Qt(),n=Fn(),o=ee({...r.getTriggerProps(),"aria-controls":n.unmounted?void 0:r.getTriggerProps()["aria-controls"]},e);return u.jsx(de.button,{...o,ref:t})});Iu.displayName="DialogTrigger";var Tu=$("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");Tu.build(),M()(["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 Pu=C.forwardRef((e,t)=>{const r=ga(),n=ee(r?.getInputProps(),e);return u.jsx(de.input,{...n,ref:t})});Pu.displayName="FieldInput";const Nu=$("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");Nu.build();function NS(e){if(!e)return;const t=Kr(e);return"box-sizing:"+t.boxSizing+";border-left:"+t.borderLeftWidth+" solid red;border-right:"+t.borderRightWidth+" solid red;font-family:"+t.fontFamily+";font-feature-settings:"+t.fontFeatureSettings+";font-kerning:"+t.fontKerning+";font-size:"+t.fontSize+";font-stretch:"+t.fontStretch+";font-style:"+t.fontStyle+";font-variant:"+t.fontVariant+";font-variant-caps:"+t.fontVariantCaps+";font-variant-ligatures:"+t.fontVariantLigatures+";font-variant-numeric:"+t.fontVariantNumeric+";font-weight:"+t.fontWeight+";letter-spacing:"+t.letterSpacing+";margin-left:"+t.marginLeft+";margin-right:"+t.marginRight+";padding-left:"+t.paddingLeft+";padding-right:"+t.paddingRight+";text-indent:"+t.textIndent+";text-transform:"+t.textTransform}function AS(e){var t=e.createElement("div");return t.id="ghost",t.style.cssText="display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;",e.body.appendChild(t),t}function RS(e){if(!e)return;const t=Le(e),r=me(e),n=AS(t),o=NS(e);o&&(n.style.cssText+=o);function i(){r.requestAnimationFrame(()=>{n.innerHTML=e.value;const s=r.getComputedStyle(n);e?.style.setProperty("width",s.width)})}return i(),e?.addEventListener("input",i),e?.addEventListener("change",i),()=>{t.body.removeChild(n),e?.removeEventListener("input",i),e?.removeEventListener("change",i)}}var VS=e=>{if(!e)return;const t=Kr(e),r=me(e),n=Le(e),o=()=>{requestAnimationFrame(()=>{e.style.height="auto";let c;t.boxSizing==="content-box"?c=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):c=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&c>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),c=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${c}px`})};e.addEventListener("input",o),e.form?.addEventListener("reset",o);const i=Object.getPrototypeOf(e),s=Object.getOwnPropertyDescriptor(i,"value");Object.defineProperty(e,"value",{...s,set(){s?.set?.apply(this,arguments),o()}});const a=new r.ResizeObserver(()=>{requestAnimationFrame(()=>o())});a.observe(e);const l=new r.MutationObserver(()=>o());return l.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),n.fonts?.addEventListener("loadingdone",o),()=>{e.removeEventListener("input",o),e.form?.removeEventListener("reset",o),n.fonts?.removeEventListener("loadingdone",o),a.disconnect(),l.disconnect()}};const Au=C.forwardRef((e,t)=>{const{autoresize:r,...n}=e,o=C.useRef(null),i=ga(),s=ee(i?.getTextareaProps(),{style:{resize:r?"none":void 0}},n);return C.useEffect(()=>{if(r)return VS(o.current)},[r]),u.jsx(de.textarea,{...s,ref:_n(t,o)})});Au.displayName="FieldTextarea";const Ru=$("fieldset").parts("root","errorText","helperText","legend");Ru.build();var Vu=$("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");Vu.build(),M()(["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"]),M()(["file","type"]);var _u=$("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");_u.build();var _S=e=>e.ids?.trigger??`hover-card:${e.id}:trigger`,LS=e=>e.ids?.content??`hover-card:${e.id}:content`,FS=e=>e.ids?.positioner??`hover-card:${e.id}:popper`,xa=e=>e.getById(_S(e)),zS=e=>e.getById(LS(e)),Lu=e=>e.getById(FS(e)),{not:bi,and:Fu}=_t();Fu("isOpenControlled",bi("isPointer")),bi("isPointer"),Fu("isOpenControlled",bi("isPointer")),bi("isPointer"),M()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var zu=$("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","nodeRenameInput","root","tree");zu.build();var Du=e=>new cu(e);Du.empty=()=>new cu({rootNode:{children:[]}});var DS=(e,t)=>e.ids?.node?.(t)??`tree:${e.id}:node:${t}`,xt=(e,t)=>{t!=null&&e.getById(DS(e,t))?.focus()},MS=(e,t)=>`tree:${e.id}:rename-input:${t}`,Mu=(e,t)=>e.getById(MS(e,t));function $S(e,t,r){const n=e.getDescendantValues(t),o=n.every(i=>r.includes(i));return jt(o?ir(r,...n):or(r,...n))}function yi(e,t){const{context:r,prop:n,refs:o}=e;if(!n("loadChildren")){r.set("expandedValue",m=>jt(or(m,...t)));return}const i=r.get("loadingStatus"),[s,a]=ac(t,m=>i[m]==="loaded");if(s.length>0&&r.set("expandedValue",m=>jt(or(m,...s))),a.length===0)return;const l=n("collection"),[c,d]=ac(a,m=>{const v=l.findNode(m);return l.getNodeChildren(v).length>0});if(c.length>0&&r.set("expandedValue",m=>jt(or(m,...c))),d.length===0)return;r.set("loadingStatus",m=>({...m,...d.reduce((v,x)=>({...v,[x]:"loading"}),{})}));const h=d.map(m=>{const v=l.getIndexPath(m),x=l.getValuePath(v),k=l.findNode(m);return{id:m,indexPath:v,valuePath:x,node:k}}),g=o.get("pendingAborts"),f=n("loadChildren");Ns(f,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion");const p=h.map(({id:m,indexPath:v,valuePath:x,node:k})=>{const y=g.get(m);y&&(y.abort(),g.delete(m));const S=new AbortController;return g.set(m,S),f({valuePath:x,indexPath:v,node:k,signal:S.signal})});Promise.allSettled(p).then(m=>{const v=[],x=[],k=r.get("loadingStatus");let y=n("collection");m.forEach((S,b)=>{const{id:O,indexPath:T,node:R,valuePath:E}=h[b];S.status==="fulfilled"?(k[O]="loaded",v.push(O),y=y.replace(T,{...R,children:S.value})):(g.delete(O),Reflect.deleteProperty(k,O),x.push({node:R,error:S.reason,indexPath:T,valuePath:E}))}),r.set("loadingStatus",k),v.length&&(r.set("expandedValue",S=>jt(or(S,...v))),n("onLoadChildrenComplete")?.({collection:y})),x.length&&n("onLoadChildrenError")?.({nodes:x})})}function Jt(e){const{prop:t,context:r}=e;return function({indexPath:o}){return t("collection").getValuePath(o).slice(0,-1).some(s=>!r.get("expandedValue").includes(s))}}var{and:St}=_t();St("isMultipleSelection","moveFocus"),St("isShiftKey","isMultipleSelection"),St("isShiftKey","isMultipleSelection"),St("isBranchFocused","isBranchExpanded"),St("isShiftKey","isMultipleSelection"),St("isShiftKey","isMultipleSelection"),St("isCtrlKey","isMultipleSelection"),St("isShiftKey","isMultipleSelection"),St("isCtrlKey","isMultipleSelection"),St("isShiftKey","isMultipleSelection"),M()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren","canRename","onRenameStart","onBeforeRename","onRenameComplete"]),M()(["node","indexPath"]);var $u=$("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");$u.build();var Wu=e=>new gr(e);Wu.empty=()=>new gr({items:[]});var WS=e=>e.ids?.content??`select:${e.id}:content`,BS=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,Bu=e=>e.getById(WS(e)),Hu=(e,t)=>e.getById(BS(e,t)),{guards:HS,createMachine:US}=jo(),{or:jS}=HS;US({props({props:e}){return{loopFocus:!1,composite:!0,defaultValue:[],multiple:!1,typeahead:!0,collection:Wu.empty(),orientation:"vertical",selectionMode:"single",...e}},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:$e,onChange(r){const n=e("collection").findMany(r);return e("onValueChange")?.({value:r,items:n})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),sync:!0,onChange(r){e("onHighlightChange")?.({highlightedValue:r,highlightedItem:e("collection").find(r),highlightedIndex:e("collection").indexOf(r)})}})),highlightedItem:t(()=>({defaultValue:null})),selectedItems:t(()=>{const r=e("value")??e("defaultValue")??[];return{defaultValue:e("collection").findMany(r)}}),focused:t(()=>({sync:!0,defaultValue:!1}))}},refs(){return{typeahead:{...qt.defaultOptions},focusVisible:!1}},computed:{hasSelectedItems:({context:e})=>e.get("value").length>0,isTypingAhead:({refs:e})=>e.get("typeahead").keysSoFar!=="",isInteractive:({prop:e})=>!e("disabled"),selection:({context:e,prop:t})=>{const r=new H1(e.get("value"));return r.selectionMode=t("selectionMode"),r.deselectable=!!t("deselectable"),r},multiple:({prop:e})=>e("selectionMode")==="multiple"||e("selectionMode")==="extended",valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems"))},initialState(){return"idle"},watch({context:e,prop:t,track:r,action:n}){r([()=>e.get("value").toString()],()=>{n(["syncSelectedItems"])}),r([()=>e.get("highlightedValue")],()=>{n(["syncHighlightedItem"])}),r([()=>t("collection").toString()],()=>{n(["syncHighlightedValue"])})},effects:["trackFocusVisible"],on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]}},states:{idle:{effects:["scrollToHighlightedItem"],on:{"INPUT.FOCUS":{actions:["setFocused"]},"CONTENT.FOCUS":[{guard:jS("hasSelectedValue","hasHighlightedValue"),actions:["setFocused"]},{actions:["setFocused","setDefaultHighlightedValue"]}],"CONTENT.BLUR":{actions:["clearFocused"]},"ITEM.CLICK":{actions:["setHighlightedItem","selectHighlightedItem"]},"CONTENT.TYPEAHEAD":{actions:["setFocused","highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},NAVIGATE:{actions:["setFocused","setHighlightedItem","selectWithKeyboard"]}}}},implementations:{guards:{hasSelectedValue:({context:e})=>e.get("value").length>0,hasHighlightedValue:({context:e})=>e.get("highlightedValue")!=null},effects:{trackFocusVisible:({scope:e,refs:t})=>Zd({root:e.getRootNode?.(),onChange(r){t.set("focusVisible",r.isFocusVisible)}}),scrollToHighlightedItem({context:e,prop:t,scope:r}){const n=i=>{const s=e.get("highlightedValue");if(s==null||z1()!=="keyboard")return;const l=Bu(r),c=t("scrollToIndexFn");if(c){const h=t("collection").indexOf(s);c?.({index:h,immediate:i,getElement(){return Hu(r,s)}});return}const d=Hu(r,s);Vn(d,{rootEl:l,block:"nearest"})};return U(()=>n(!0)),Rn(()=>Bu(r),{defer:!0,attributes:["data-activedescendant"],callback(){n(!1)}})}},actions:{selectHighlightedItem({context:e,prop:t,event:r,computed:n}){const o=r.value??e.get("highlightedValue"),i=t("collection");if(o==null||!i.has(o))return;const s=n("selection");if(r.shiftKey&&n("multiple")&&r.anchorValue){const a=s.extendSelection(i,r.anchorValue,o);Kn(s,a,t("onSelect")),e.set("value",Array.from(a))}else{const a=s.select(i,o,r.metaKey);Kn(s,a,t("onSelect")),e.set("value",Array.from(a))}},selectWithKeyboard({context:e,prop:t,event:r,computed:n}){const o=n("selection"),i=t("collection");if(r.shiftKey&&n("multiple")&&r.anchorValue){const s=o.extendSelection(i,r.anchorValue,r.value);Kn(o,s,t("onSelect")),e.set("value",Array.from(s));return}if(t("selectOnHighlight")){const s=o.replaceSelection(i,r.value);Kn(o,s,t("onSelect")),e.set("value",Array.from(s))}},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:r,refs:n}){const o=t("collection").search(r.key,{state:n.get("typeahead"),currentValue:e.get("highlightedValue")});o!=null&&e.set("highlightedValue",o)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:r,computed:n}){const o=t("collection"),i=n("selection"),s=i.select(o,r.value);Kn(i,s,t("onSelect")),e.set("value",Array.from(s))},clearItem({context:e,event:t,computed:r}){const o=r("selection").deselect(t.value);e.set("value",Array.from(o))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},syncSelectedItems({context:e,prop:t}){const r=t("collection"),n=e.get("selectedItems"),i=e.get("value").map(s=>n.find(l=>r.getItemValue(l)===s)||r.find(s));e.set("selectedItems",i)},syncHighlightedItem({context:e,prop:t}){const r=t("collection"),n=e.get("highlightedValue"),o=n?r.find(n):null;e.set("highlightedItem",o)},syncHighlightedValue({context:e,prop:t}){const r=t("collection"),n=e.get("highlightedValue");n!=null&&!r.has(n)&&e.set("highlightedValue",null)},setFocused({context:e}){e.set("focused",!0)},setDefaultHighlightedValue({context:e,prop:t}){const n=t("collection").firstValue;n!=null&&e.set("highlightedValue",n)},clearFocused({context:e}){e.set("focused",!1)}}}});var GS=(e,t)=>{const r=new Set(e);for(const n of t)r.delete(n);return r};function Kn(e,t,r){const n=GS(t,e);for(const o of n)r?.({value:o})}M()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"]),M()(["item","highlightOnHover"]),M()(["id"]),M()(["htmlFor"]);const qS=$u.extendWith("empty");var Uu=$("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");Uu.build();var ju=e=>e.ids?.trigger??`menu:${e.id}:trigger`,KS=e=>e.ids?.contextTrigger??`menu:${e.id}:ctx-trigger`,Gu=e=>e.ids?.content??`menu:${e.id}:content`,YS=e=>e.ids?.positioner??`menu:${e.id}:popper`,Sa=(e,t)=>`${e.id}/${t}`,vr=e=>e?.dataset.value??null,Zt=e=>e.getById(Gu(e)),qu=e=>e.getById(YS(e)),xi=e=>e.getById(ju(e)),XS=(e,t)=>t?e.getById(Sa(e,t)):null,Ca=e=>e.getById(KS(e)),Yn=e=>{const r=`[role^="menuitem"][data-ownedby=${CSS.escape(Gu(e))}]:not([data-disabled])`;return Xr(Zt(e),r)},QS=e=>Tn(Yn(e)),JS=e=>Os(Yn(e)),ka=(e,t)=>t?e.id===t||e.dataset.value===t:!1,ZS=(e,t)=>{const r=Yn(e),n=r.findIndex(o=>ka(o,t.value));return Av(r,n,{loop:t.loop??t.loopFocus})},eC=(e,t)=>{const r=Yn(e),n=r.findIndex(o=>ka(o,t.value));return Vv(r,n,{loop:t.loop??t.loopFocus})},tC=(e,t)=>{const r=Yn(e),n=r.find(o=>ka(o,t.value));return qt(r,{state:t.typeaheadState,key:t.key,activeId:n?.id??null})},rC=e=>!!e?.getAttribute("role")?.startsWith("menuitem")&&!!e?.hasAttribute("aria-controls"),nC="menu:select";function oC(e,t){if(!e)return;const r=me(e),n=new r.CustomEvent(nC,{detail:{value:t}});e.dispatchEvent(n)}var{not:rt,and:ln,or:iC}=_t();rt("isSubmenu"),iC("isOpenAutoFocusEvent","isArrowDownEvent"),ln(rt("isTriggerItem"),"isOpenControlled"),rt("isTriggerItem"),ln("isSubmenu","isOpenControlled"),rt("isPointerSuspended"),ln(rt("isPointerSuspended"),rt("isTriggerItem")),ln(rt("isTriggerItemHighlighted"),rt("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),ln(rt("isTriggerItemHighlighted"),rt("isHighlightedItemEditable"),"closeOnSelect"),ln(rt("isTriggerItemHighlighted"),rt("isHighlightedItemEditable"));function Ku(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t?.send({type:"CLOSE"})}function sC(e,t){return e?h1(e,t):!1}function aC(e,t,r){const n=Object.keys(e).length>0;if(!t)return null;if(!n)return Sa(r,t);for(const o in e){const i=e[o],s=ju(i.scope);if(s===t)return s}return Sa(r,t)}M()(["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"]),M()(["closeOnSelect","disabled","value","valueText"]),M()(["htmlFor"]),M()(["id"]),M()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);let wa=new Map,Ea=!1;try{Ea=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Si=!1;try{Si=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Yu={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class lC{format(t){let r="";if(!Ea&&this.options.signDisplay!=null?r=dC(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!Si){var n;let{unit:o,unitDisplay:i="short",locale:s}=this.resolvedOptions();if(!o)return r;let a=(n=Yu[o])===null||n===void 0?void 0:n[i];r+=a[s]||a.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r= start date");let n=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(r);return[...n.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Ea&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Si&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,r={}){this.numberFormatter=cC(t,r),this.options=r}}function cC(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!Si){var n;let{unit:s,unitDisplay:a="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=Yu[s])===null||n===void 0)&&n[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(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),i=e.format(r),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(r)}}const uC=new RegExp("^.*\\(.*\\).*$"),hC=["latn","arab","hanidec","deva","beng","fullwide"];class Xu{parse(t){return Oa(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,r,n){return Oa(this.locale,this.options,t).isValidPartialNumber(t,r,n)}getNumberingSystem(t){return Oa(this.locale,this.options,t).options.numberingSystem}constructor(t,r={}){this.locale=t,this.options=r}}const Qu=new Map;function Oa(e,t,r){let n=Ju(e,t);if(!e.includes("-nu-")&&!n.isValidPartialNumber(r)){for(let o of hC)if(o!==n.options.numberingSystem){let i=Ju(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(r))return i}}return n}function Ju(e,t){let r=e+(t?Object.entries(t).sort((o,i)=>o[0]-1&&(r=`-${r}`)}let n=r?+r:NaN;if(isNaN(n))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 Xu(this.locale,s).parse(new lC(this.locale,s).format(n))}return this.options.currencySign==="accounting"&&uC.test(t)&&(n=-1*n),n}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=cn(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&(t=cn(t,"'",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&(t=cn(t," ",this.symbols.group),t=cn(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,r=-1/0,n=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&r<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&n>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=cn(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,r={}){this.locale=t,r.roundingIncrement!==1&&r.roundingIncrement!=null&&(r.maximumFractionDigits==null&&r.minimumFractionDigits==null?(r.maximumFractionDigits=0,r.minimumFractionDigits=0):r.maximumFractionDigits==null?r.maximumFractionDigits=r.minimumFractionDigits:r.minimumFractionDigits==null&&(r.minimumFractionDigits=r.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,r),this.options=this.formatter.resolvedOptions(),this.symbols=pC(t,this.formatter,this.options,r);var n,o;this.options.style==="percent"&&(((n=this.options.minimumFractionDigits)!==null&&n!==void 0?n: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 Zu=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),gC=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function pC(e,t,r,n){var o,i,s,a;let l=new Intl.NumberFormat(e,{...r,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),c=l.formatToParts(-10000.111),d=l.formatToParts(10000.111),h=gC.map(P=>l.formatToParts(P));var g;let f=(g=(o=c.find(P=>P.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&g!==void 0?g:"-",p=(i=d.find(P=>P.type==="plusSign"))===null||i===void 0?void 0:i.value;!p&&(n?.signDisplay==="exceptZero"||n?.signDisplay==="always")&&(p="+");let v=(s=new Intl.NumberFormat(e,{...r,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(P=>P.type==="decimal"))===null||s===void 0?void 0:s.value,x=(a=c.find(P=>P.type==="group"))===null||a===void 0?void 0:a.value,k=c.filter(P=>!Zu.has(P.type)).map(P=>eh(P.value)),y=h.flatMap(P=>P.filter(N=>!Zu.has(N.type)).map(N=>eh(N.value))),S=[...new Set([...k,...y])].sort((P,N)=>N.length-P.length),b=S.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${S.join("|")}|[\\p{White_Space}]`,"gu"),O=[...new Intl.NumberFormat(r.locale,{useGrouping:!1}).format(9876543210)].reverse(),T=new Map(O.map((P,N)=>[P,N])),R=new RegExp(`[${O.join("")}]`,"g");return{minusSign:f,plusSign:p,decimal:v,group:x,literals:b,numeral:R,index:P=>String(T.get(P))}}function cn(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function eh(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var th=$("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");th.build();var mC=e=>e.ids?.input??`number-input:${e.id}:input`,vC=e=>e.ids?.incrementTrigger??`number-input:${e.id}:inc`,bC=e=>e.ids?.decrementTrigger??`number-input:${e.id}:dec`,rh=e=>`number-input:${e.id}:cursor`,Ci=e=>e.getById(mC(e)),yC=e=>e.getById(vC(e)),xC=e=>e.getById(bC(e)),nh=e=>e.getDoc().getElementById(rh(e)),SC=(e,t)=>{let r=null;return t==="increment"&&(r=yC(e)),t==="decrement"&&(r=xC(e)),r},CC=(e,t)=>{if(!Tc())return EC(e,t),()=>{nh(e)?.remove()}},kC=e=>{const t=e.getDoc(),r=t.documentElement,n=t.body;return n.style.pointerEvents="none",r.style.userSelect="none",r.style.cursor="ew-resize",()=>{n.style.pointerEvents="",r.style.userSelect="",r.style.cursor="",r.style.length||r.removeAttribute("style"),n.style.length||n.removeAttribute("style")}},wC=(e,t)=>{const{point:r,isRtl:n,event:o}=t,i=e.getWin(),s=Ps(o.movementX,i.devicePixelRatio),a=Ps(o.movementY,i.devicePixelRatio);let l=s>0?"increment":s<0?"decrement":null;n&&l==="increment"&&(l="decrement"),n&&l==="decrement"&&(l="increment");const c={x:r.x+s,y:r.y+a},d=i.innerWidth,h=Ps(7.5,i.devicePixelRatio);return c.x=Yv(c.x+h,d)-h,{hint:l,point:c}},EC=(e,t)=>{const r=e.getDoc(),n=r.createElement("div");n.className="scrubber--cursor",n.id=rh(e),Object.assign(n.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:u0,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),n.innerHTML=` +(function(h,C){typeof exports=="object"&&typeof module<"u"?module.exports=C(require("react/jsx-runtime"),require("react"),require("react-router-dom"),require("react-dom")):typeof define=="function"&&define.amd?define(["react/jsx-runtime","react","react-router-dom","react-dom"],C):(h=typeof globalThis<"u"?globalThis:h||self,h.AirflowPlugin=C(h.ReactJSXRuntime,h.React,h.ReactRouterDOM,h.ReactDOM))})(this,(function(h,C,st,bo){"use strict";function pm(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const D=pm(C);function Rl(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var mm=/^((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)-.*))$/,vm=Rl(function(e){return mm.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function bm(e){if(e.sheet)return e.sheet;for(var t=0;t0?Te(Ur,--Me):0,Hr--,pe===10&&(Hr=1,Co--),pe}function Xe(){return pe=Me2||wn(pe)>3?"":" "}function Am(e,t){for(;--t&&Xe()&&!(pe<48||pe>102||pe>57&&pe<65||pe>70&&pe<97););return kn(e,wo()+(t<6&>()==32&&Xe()==32))}function ds(e){for(;Xe();)switch(pe){case e:return Me;case 34:case 39:e!==34&&e!==39&&ds(pe);break;case 40:e===41&&ds(e);break;case 92:Xe();break}return Me}function Vm(e,t){for(;Xe()&&e+pe!==57;)if(e+pe===84&>()===47)break;return"/*"+kn(t,Me-1)+"*"+xo(e===47?e:Xe())}function Rm(e){for(;!wn(gt());)Xe();return kn(e,Me)}function _m(e){return Ml(Oo("",null,null,null,[""],e=Dl(e),0,[0],e))}function Oo(e,t,r,n,o,i,s,a,l){for(var c=0,u=0,d=s,g=0,f=0,p=0,m=1,v=1,x=1,k=0,y="",S=o,b=i,O=n,T=y;v;)switch(p=k,k=Xe()){case 40:if(p!=108&&Te(T,d-1)==58){cs(T+=X(Eo(k),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:T+=Eo(k);break;case 9:case 10:case 13:case 32:T+=Nm(p);break;case 92:T+=Am(wo()-1,7);continue;case 47:switch(gt()){case 42:case 47:So(Lm(Vm(Xe(),wo()),t,r),l);break;default:T+="/"}break;case 123*m:a[c++]=ft(T)*x;case 125*m:case 59:case 0:switch(k){case 0:case 125:v=0;case 59+u:x==-1&&(T=X(T,/\f/g,"")),f>0&&ft(T)-d&&So(f>32?Wl(T+";",n,r,d-1):Wl(X(T," ","")+";",n,r,d-2),l);break;case 59:T+=";";default:if(So(O=$l(T,t,r,c,u,o,a,y,S=[],b=[],d),i),k===123)if(u===0)Oo(T,t,O,O,S,i,d,a,b);else switch(g===99&&Te(T,3)===110?100:g){case 100:case 108:case 109:case 115:Oo(e,O,O,n&&So($l(e,O,O,0,0,o,a,y,o,S=[],d),b),o,b,d,a,n?S:b);break;default:Oo(T,O,O,O,[""],b,0,a,b)}}c=u=f=0,m=x=1,y=T="",d=s;break;case 58:d=1+ft(T),f=p;default:if(m<1){if(k==123)--m;else if(k==125&&m++==0&&Pm()==125)continue}switch(T+=xo(k),k*m){case 38:x=u>0?1:(T+="\f",-1);break;case 44:a[c++]=(ft(T)-1)*x,x=1;break;case 64:gt()===45&&(T+=Eo(Xe())),g=gt(),u=d=ft(y=T+=Rm(wo())),k++;break;case 45:p===45&&ft(T)==2&&(m=0)}}return i}function $l(e,t,r,n,o,i,s,a,l,c,u){for(var d=o-1,g=o===0?i:[""],f=us(g),p=0,m=0,v=0;p0?g[x]+" "+k:X(k,/&\f/g,g[x])))&&(l[v++]=y);return ko(e,t,r,o===0?as:a,l,c,u)}function Lm(e,t,r){return ko(e,t,r,_l,xo(Tm()),Sn(e,2,-2),0)}function Wl(e,t,r,n){return ko(e,t,r,ls,Sn(e,0,n),Sn(e,n+1,-1),n)}function jr(e,t){for(var r="",n=us(e),o=0;o6)switch(Te(e,t+1)){case 109:if(Te(e,t+4)!==45)break;case 102:return X(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+yo+(Te(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cs(e,"stretch")?Hl(X(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Te(e,t+1)!==115)break;case 6444:switch(Te(e,ft(e)-3-(~cs(e,"!important")&&10))){case 107:return X(e,":",":"+Y)+e;case 101:return X(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Y+(Te(e,14)===45?"inline-":"")+"box$3$1"+Y+"$2$3$1"+Re+"$2box$3")+e}break;case 5936:switch(Te(e,t+11)){case 114:return Y+e+Re+X(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+Re+X(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+Re+X(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Y+e+Re+e+e}return e}var Um=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case ls:t.return=Hl(t.value,t.length);break;case Ll:return jr([Cn(t,{value:X(t.value,"@","@"+Y)})],o);case as:if(t.length)return Im(t.props,function(i){switch(Om(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return jr([Cn(t,{props:[X(i,/:(read-\w+)/,":"+yo+"$1")]})],o);case"::placeholder":return jr([Cn(t,{props:[X(i,/:(plac\w+)/,":"+Y+"input-$1")]}),Cn(t,{props:[X(i,/:(plac\w+)/,":"+yo+"$1")]}),Cn(t,{props:[X(i,/:(plac\w+)/,Re+"input-$1")]})],o)}return""})}},jm=[Um],Gm=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var v=m.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var o=t.stylisPlugins||jm,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),x=1;x=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Jm={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},Zm=/[A-Z]|^ms/g,ev=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Kl=function(t){return t.charCodeAt(1)===45},Yl=function(t){return t!=null&&typeof t!="boolean"},ms=Rl(function(e){return Kl(e)?e:e.replace(Zm,"-$&").toLowerCase()}),Xl=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(ev,function(n,o,i){return pt={name:o,styles:i,next:pt},o})}return Jm[t]!==1&&!Kl(t)&&typeof r=="number"&&r!==0?r+"px":r};function En(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return pt={name:o.name,styles:o.styles,next:pt},o.name;var i=r;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)pt={name:s.name,styles:s.styles,next:pt},s=s.next;var a=i.styles+";";return a}return tv(e,t,r)}case"function":{if(e!==void 0){var l=pt,c=r(e);return pt=l,En(e,t,c)}break}}var u=r;if(t==null)return u;var d=t[u];return d!==void 0?d:u}function tv(e,t,r){var n="";if(Array.isArray(r))for(var o=0;on?.(...r))}}const lv=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),cv=/^on[A-Z]/;function On(...e){let t={};for(let r of e){for(let n in t){if(cv.test(n)&&typeof t[n]=="function"&&typeof r[n]=="function"){t[n]=av(t[n],r[n]);continue}if(n==="className"||n==="class"){t[n]=lv(t[n],r[n]);continue}if(n==="style"){t[n]=Object.assign({},t[n]??{},r[n]??{});continue}t[n]=r[n]!==void 0?r[n]:t[n]}for(let n in r)t[n]===void 0&&(t[n]=r[n])}return t}const uv=parseInt(D.version.split(".")[0],10)>=19;function Cs(e,t){if(e!=null){if(typeof e=="function")return e(t);try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function dv(...e){const t=e.filter(r=>r!=null);if(uv){const r=new Map;return n=>(t.forEach(o=>{const i=Cs(o,n);i&&r.set(o,i)}),()=>{t.forEach(o=>{const i=r.get(o);i&&typeof i=="function"?i():Cs(o,null)}),r.clear()})}else return r=>{t.forEach(n=>{Cs(n,r)})}}function In(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}const $e=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),at=e=>typeof e=="string",ks=e=>typeof e=="function",Qe=(...e)=>{const t=[];for(let r=0;r{const t=e.reduce((r,n)=>(n?.forEach(o=>r.add(o)),r),new Set([]));return Array.from(t)};function gv(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Gr(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=C.createContext(s);a.displayName=t;function l(){const c=C.useContext(a);if(!c&&r){const u=new Error(i??gv(n,o));throw u.name="ContextError",Error.captureStackTrace?.(u,l),u}return c}return[a.Provider,l,a]}const[pv,Io]=Gr({name:"ChakraContext",strict:!0,providerName:""});function mv(e){const{value:t,children:r}=e;return h.jsxs(pv,{value:t,children:[!t._config.disableLayers&&h.jsx(nc,{styles:t.layers.atRule}),h.jsx(nc,{styles:t._global}),r]})}const vv=(e,t)=>{const r={},n={},o=Object.keys(e);for(const i of o)t(i)?n[i]=e[i]:r[i]=e[i];return[n,r]},qr=(e,t)=>{const r=ks(t)?t:n=>t.includes(n);return vv(e,r)},bv=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function yv(e){return typeof e=="string"&&bv.has(e)}function xv(e,t,r){const{css:n,isValidProperty:o}=Io(),{children:i,...s}=e,a=C.useMemo(()=>{const[g,f]=qr(s,k=>r(k,t.variantKeys)),[p,m]=qr(f,t.variantKeys),[v,x]=qr(m,o);return{forwardedProps:g,variantProps:p,styleProps:v,elementProps:x}},[t.variantKeys,r,s,o]),{css:l,...c}=a.styleProps,u=C.useMemo(()=>{const g={...a.variantProps},f=t.variantKeys.includes("colorPalette"),p=t.variantKeys.includes("orientation");return f||(g.colorPalette=s.colorPalette),p||(g.orientation=s.orientation),t(g)},[t,a.variantProps,s.colorPalette,s.orientation]);return{styles:C.useMemo(()=>n(u,...Sv(l),c),[n,u,l,c]),props:{...a.forwardedProps,...a.elementProps,children:i}}}const Sv=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),Cv=hv(vm),kv=e=>e!=="theme",wv=(e,t,r)=>{let n;if(t){const o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?i=>e.__emotion_forwardProp(i)&&o(i):o}return typeof n!="function"&&r&&(n=e.__emotion_forwardProp),n};let Ev=typeof document<"u";const oc=({cache:e,serialized:t,isStringTag:r})=>{gs(e,t,r);const n=Zl(()=>ps(e,t,r));if(!Ev&&n!==void 0){let o=t.name,i=t.next;for(;i!==void 0;)o=Qe(o,i.name),i=i.next;return h.jsx("style",{"data-emotion":Qe(e.key,o),dangerouslySetInnerHTML:{__html:n},nonce:e.sheet.nonce})}return null},ic={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"]},Ov=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Es=((e,t={},r={})=>{if(Ov(ic,e)){r.forwardProps||(r.forwardProps=[]);const c=ic[e];r.forwardProps=ws([...r.forwardProps,...c])}const n=e.__emotion_real===e,o=n&&e.__emotion_base||e;let i,s;r!==void 0&&(i=r.label,s=r.target);let a=[];const l=bs((c,u,d)=>{const{cva:g,isValidProperty:f}=Io(),p=t.__cva__?t:g(t),m=Iv(e.__emotion_cva,p),v=z=>(U,Z)=>z.includes(U)?!0:!Z?.includes(U)&&!f(U);!r.shouldForwardProp&&r.forwardProps&&(r.shouldForwardProp=v(r.forwardProps));const x=(z,U)=>{const Z=typeof e=="string"&&e.charCodeAt(0)>96?Cv:kv,ne=!U?.includes(z)&&!f(z);return Z(z)&&ne},k=wv(e,r,n)||x,y=D.useMemo(()=>Object.assign({},r.defaultProps,In(c)),[c]),{props:S,styles:b}=xv(y,m,k);let O="",T=[b],V=S;if(S.theme==null){V={};for(let z in S)V[z]=S[z];V.theme=D.useContext(ys)}typeof S.className=="string"?O=ql(u.registered,T,S.className):S.className!=null&&(O=Qe(O,S.className));const E=vs(a.concat(T),u.registered,V);E.styles&&(O=Qe(O,`${u.key}-${E.name}`)),s!==void 0&&(O=Qe(O,s));const P=!k("as");let N=P&&S.as||o,w={};for(let z in S)if(!(P&&z==="as")){if(yv(z)){const U=z.replace("html","").toLowerCase();w[U]=S[z];continue}k(z)&&(w[z]=S[z])}let A=O.trim();A?w.className=A:Reflect.deleteProperty(w,"className"),w.ref=d;const L=r.forwardAsChild||r.forwardProps?.includes("asChild");if(S.asChild&&!L){const z=D.isValidElement(S.children)?D.Children.only(S.children):D.Children.toArray(S.children).find(D.isValidElement);if(!z)throw new Error("[chakra-ui > factory] No valid child found");N=z.type,w.children=null,Reflect.deleteProperty(w,"asChild"),w=On(w,z.props),w.ref=dv(d,fv(z))}return w.as&&L?(w.as=void 0,h.jsxs(D.Fragment,{children:[h.jsx(oc,{cache:u,serialized:E,isStringTag:typeof N=="string"}),h.jsx(N,{asChild:!0,...w,children:h.jsx(S.as,{children:w.children})})]})):h.jsxs(D.Fragment,{children:[h.jsx(oc,{cache:u,serialized:E,isStringTag:typeof N=="string"}),h.jsx(N,{...w})]})});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=r.shouldForwardProp,l.__emotion_cva=t,Object.defineProperty(l,"toString",{value(){return`.${s}`}}),l}).bind(),Os=new Map,he=new Proxy(Es,{apply(e,t,r){return Es(...r)},get(e,t){return Os.has(t)||Os.set(t,Es(t)),Os.get(t)}}),Iv=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t),Tn=he("div");Tn.displayName="Box";const Tv=Object.freeze({}),Pv=Object.freeze({});function Nv(e){const{key:t,recipe:r}=e,n=Io();return C.useMemo(()=>{const o=r||(t!=null?n.getRecipe(t):{});return n.cva(structuredClone(o))},[t,r,n])}const Av=e=>e.charAt(0).toUpperCase()+e.slice(1);function Tt(e){const{key:t,recipe:r}=e,n=Av(t||r.className||"Component"),[o,i]=Gr({strict:!1,name:`${n}PropsContext`,providerName:`${n}PropsContext`});function s(c){const{unstyled:u,...d}=c,g=Nv({key:t,recipe:d.recipe||r}),[f,p]=C.useMemo(()=>g.splitVariantProps(d),[g,d]);return{styles:u?Tv:g(f),className:g.className,props:p}}const a=(c,u)=>{const d=he(c,{},u),g=C.forwardRef((f,p)=>{const m=i(),v=C.useMemo(()=>On(m,f),[f,m]),{styles:x,className:k,props:y}=s(v);return h.jsx(d,{...y,ref:p,css:[x,v.css],className:Qe(k,v.className)})});return g.displayName=c.displayName||c.name,g};function l(){return o}return{withContext:a,PropsProvider:o,withPropsProvider:l,usePropsContext:i,useRecipeResult:s}}function To(e){return e==null?[]:Array.isArray(e)?e:[e]}var Pn=e=>e[0],Is=e=>e[e.length-1],Vv=(e,t)=>e.indexOf(t)!==-1,or=(e,...t)=>e.concat(t),ir=(e,...t)=>e.filter(r=>!t.includes(r)),sc=(e,t)=>e.filter((r,n)=>n!==t),jt=e=>Array.from(new Set(e)),Ts=(e,t)=>{const r=new Set(t);return e.filter(n=>!r.has(n))},Kr=(e,t)=>Vv(e,t)?ir(e,t):or(e,t);function ac(e,t,r={}){const{step:n=1,loop:o=!0}=r,i=t+n,s=e.length,a=s-1;return t===-1?n>0?0:a:i<0?o?a:0:i>=s?o?0:t>s?s:t:i}function Rv(e,t,r={}){return e[ac(e,t,r)]}function _v(e,t,r={}){const{step:n=1,loop:o=!0}=r;return ac(e,t,{step:-n,loop:o})}function Lv(e,t,r={}){return e[_v(e,t,r)]}function lc(e,t){return e.reduce(([r,n],o)=>(t(o)?r.push(o):n.push(o),[r,n]),[[],[]])}var cc=e=>e?.constructor.name==="Array",Fv=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof e?.isEqual=="function"&&typeof t?.isEqual=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(cc(e)&&cc(t))return Fv(Array.from(e),Array.from(t));if(typeof e!="object"||typeof t!="object")return!1;const r=Object.keys(t??Object.create(null)),n=r.length;for(let o=0;oArray.isArray(e),zv=e=>e===!0||e===!1,uc=e=>e!=null&&typeof e=="object",sr=e=>uc(e)&&!Nn(e),Po=e=>typeof e=="string",Pt=e=>typeof e=="function",Dv=e=>e==null,Nt=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Mv=e=>Object.prototype.toString.call(e),dc=Function.prototype.toString,$v=dc.call(Object),Wv=e=>{if(!uc(e)||Mv(e)!="[object Object]"||Uv(e))return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;const r=Nt(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&dc.call(r)==$v},Bv=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,Hv=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,Uv=e=>Bv(e)||Hv(e),No=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,jv=e=>e(),Gv=()=>{},Ao=(...e)=>(...t)=>{e.forEach(function(r){r?.(...t)})},hc=(()=>{let e=0;return()=>(e++,e.toString(36))})();function At(e,t,...r){if(e in t){const o=t[e];return Pt(o)?o(...r):o}const n=new Error(`No matching key: ${JSON.stringify(e)} in ${JSON.stringify(Object.keys(t))}`);throw Error.captureStackTrace?.(n,At),n}var fc=(e,t)=>{try{return e()}catch(r){return r instanceof Error&&Error.captureStackTrace?.(r,fc),t?.()}},{floor:gc,abs:pc,round:Vo,min:qv,max:Kv,pow:Yv,sign:Xv}=Math,Ps=e=>Number.isNaN(e),Gt=e=>Ps(e)?0:e,mc=(e,t)=>(e%t+t)%t,Qv=(e,t)=>(e%t+t)%t,Jv=(e,t)=>Gt(e)>=t,Zv=(e,t)=>Gt(e)<=t,e0=(e,t,r)=>{const n=Gt(e),o=t==null||n>=t,i=r==null||n<=r;return o&&i},t0=(e,t,r)=>Vo((Gt(e)-t)/r)*r+t,Be=(e,t,r)=>qv(Kv(Gt(e),t),r),r0=(e,t,r)=>(Gt(e)-t)/(r-t),n0=(e,t,r,n)=>Be(t0(e*(r-t)+t,t,n),t,r),vc=(e,t)=>{let r=e,n=t.toString(),o=n.indexOf("."),i=o>=0?n.length-o:0;if(i>0){let s=Yv(10,i);r=Vo(r*s)/s}return r},Ns=(e,t)=>typeof t=="number"?gc(e*t+.5)/t:Vo(e),bc=(e,t,r,n)=>{const o=t!=null?Number(t):0,i=Number(r),s=(e-o)%n;let a=pc(s)*2>=n?e+Xv(s)*(n-pc(s)):e-s;if(a=vc(a,n),!Ps(o)&&ai){const l=gc((i-o)/n),c=o+l*n;a=l<=0||c{const n=Math.pow(r,t);return Vo(e*n)/n},yc=e=>{if(!Number.isFinite(e))return 0;let t=1,r=0;for(;Math.round(e*t)/t!==e;)t*=10,r+=1;return r},xc=(e,t,r)=>{let n=t==="+"?e+r:e-r;if(e%1!==0||r%1!==0){const o=10**Math.max(yc(e),yc(r));e=Math.round(e*o),r=Math.round(r*o),n=t==="+"?e+r:e-r,n/=o}return n},o0=(e,t)=>xc(Gt(e),"+",t),i0=(e,t)=>xc(Gt(e),"-",t);function Ro(e){if(!Wv(e)||e===void 0)return e;const t=Reflect.ownKeys(e).filter(n=>typeof n=="string"),r={};for(const n of t){const o=e[n];o!==void 0&&(r[n]=Ro(o))}return r}function s0(e,t=Object.is){let r={...e};const n=new Set,o=u=>(n.add(u),()=>n.delete(u)),i=()=>{n.forEach(u=>u())};return{subscribe:o,get:u=>r[u],set:(u,d)=>{t(r[u],d)||(r[u]=d,i())},update:u=>{let d=!1;for(const g in u){const f=u[g];f!==void 0&&!t(r[g],f)&&(r[g]=f,d=!0)}d&&i()},snapshot:()=>({...r})}}function ar(...e){e.length===1?e[0]:e[1],e.length===2&&e[0]}function As(e,t){if(e==null)throw new Error(t())}function a0(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function mt(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:s}=e,a=C.createContext(s);a.displayName=t;function l(){const c=C.useContext(a);if(!c&&r){const u=new Error(i??a0(n,o));throw u.name="ContextError",Nt(Error,"captureStackTrace")&&Pt(Error.captureStackTrace)&&Error.captureStackTrace(u,l),u}return c}return[a.Provider,l,a]}const[P5,Vs]=mt({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});var l0=Object.defineProperty,c0=(e,t,r)=>t in e?l0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rs=(e,t,r)=>c0(e,typeof t!="symbol"?t+"":t,r);function u0(e){if(!e)return!1;try{return e.selectionStart===0&&e.selectionEnd===0}catch{return e.value===""}}function d0(e){if(!e)return;const t=e.selectionStart??0,r=e.selectionEnd??0;Math.abs(r-t)===0&&t===0&&e.setSelectionRange(e.value.length,e.value.length)}var Sc=e=>Math.max(0,Math.min(1,e)),h0=(e,t)=>e.map((r,n)=>e[(Math.max(t,0)+n)%e.length]),Cc=()=>{},_o=e=>typeof e=="object"&&e!==null,f0=2147483647,le=e=>e?"":void 0,g0=e=>e?"true":void 0,p0=1,m0=9,v0=11,ke=e=>_o(e)&&e.nodeType===p0&&typeof e.nodeName=="string",Lo=e=>_o(e)&&e.nodeType===m0,b0=e=>_o(e)&&e===e.window,kc=e=>ke(e)?e.localName||"":"#document";function y0(e){return["html","body","#document"].includes(kc(e))}var x0=e=>_o(e)&&e.nodeType!==void 0,lr=e=>x0(e)&&e.nodeType===v0&&"host"in e,S0=e=>ke(e)&&e.localName==="input",C0=e=>!!e?.matches("a[href]"),k0=e=>ke(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1;function _s(e){if(!e)return!1;const t=e.getRootNode();return An(t)===e}var w0=/(textarea|select)/;function Ls(e){if(e==null||!ke(e))return!1;try{return S0(e)&&e.selectionStart!=null||w0.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function Vt(e,t){if(!e||!t||!ke(e)||!ke(t))return!1;const r=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(r&&lr(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Fe(e){return Lo(e)?e:b0(e)?e.document:e?.ownerDocument??document}function E0(e){return Fe(e).documentElement}function me(e){return lr(e)?me(e.host):Lo(e)?e.defaultView??window:ke(e)?e.ownerDocument?.defaultView??window:window}function An(e){let t=e.activeElement;for(;t?.shadowRoot;){const r=t.shadowRoot.activeElement;if(!r||r===t)break;t=r}return t}function O0(e){if(kc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||lr(e)&&e.host||E0(e);return lr(t)?t.host:t}function Fs(e){let t;try{if(t=e.getRootNode({composed:!0}),Lo(t)||lr(t))return t}catch{}return e.ownerDocument??document}var zs=new WeakMap;function Yr(e){return zs.has(e)||zs.set(e,me(e).getComputedStyle(e)),zs.get(e)}var Ds=new Set(["menu","listbox","dialog","grid","tree","region"]),I0=e=>Ds.has(e),wc=e=>e.getAttribute("aria-controls")?.split(" ")||[];function Ec(e,t){const r=new Set,n=Fs(e),o=i=>{const s=i.querySelectorAll("[aria-controls]");for(const a of s){if(a.getAttribute("aria-expanded")!=="true")continue;const l=wc(a);for(const c of l){if(!c||r.has(c))continue;r.add(c);const u=n.getElementById(c);if(u){const d=u.getAttribute("role"),g=u.getAttribute("aria-modal")==="true";if(d&&I0(d)&&!g&&(u===t||u.contains(t)||o(u)))return!0}}}return!1};return o(e)}function Oc(e,t){const r=Fs(e),n=new Set,o=i=>{const s=i.querySelectorAll("[aria-controls]");for(const a of s){if(a.getAttribute("aria-expanded")!=="true")continue;const l=wc(a);for(const c of l){if(!c||n.has(c))continue;n.add(c);const u=r.getElementById(c);if(u){const d=u.getAttribute("role"),g=u.getAttribute("aria-modal")==="true";d&&Ds.has(d)&&!g&&(t(u),o(u))}}}};o(e)}function T0(e){const t=new Set;return Oc(e,r=>{e.contains(r)||t.add(r)}),Array.from(t)}function P0(e){const t=e.getAttribute("role");return!!(t&&Ds.has(t))}function N0(e){return e.hasAttribute("aria-controls")&&e.getAttribute("aria-expanded")==="true"}function A0(e){return N0(e)?!0:!!e.querySelector?.('[aria-controls][aria-expanded="true"]')}function V0(e){if(!e.id)return!1;const t=Fs(e),r=CSS.escape(e.id),n=`[aria-controls~="${r}"][aria-expanded="true"], [aria-controls="${r}"][aria-expanded="true"]`;return!!(t.querySelector(n)&&P0(e))}var Fo=()=>typeof document<"u";function R0(){return navigator.userAgentData?.platform??navigator.platform}function _0(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:r})=>`${t}/${r}`).join(" "):navigator.userAgent}var Ms=e=>Fo()&&e.test(R0()),Ic=e=>Fo()&&e.test(_0()),L0=e=>Fo()&&e.test(navigator.vendor),Tc=()=>Fo()&&!!navigator.maxTouchPoints,F0=()=>Ms(/^iPhone/i),z0=()=>Ms(/^iPad/i)||Do()&&navigator.maxTouchPoints>1,zo=()=>F0()||z0(),D0=()=>Do()||zo(),Do=()=>Ms(/^Mac/i),Pc=()=>D0()&&L0(/apple/i),M0=()=>Ic(/Firefox/i),$0=()=>Ic(/Android/i);function W0(e){return e.composedPath?.()??e.nativeEvent?.composedPath?.()}function _e(e){return W0(e)?.[0]??e.target}function B0(e){return q0(e).isComposing||e.keyCode===229}function H0(e){return e.pointerType===""&&e.isTrusted?!0:$0()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var U0=e=>e.button===2||Do()&&e.ctrlKey&&e.button===0,j0=e=>"touches"in e&&e.touches.length>0,G0={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},Nc={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function Ac(e,t={}){const{dir:r="ltr",orientation:n="horizontal"}=t;let o=e.key;return o=G0[o]??o,r==="rtl"&&n==="horizontal"&&o in Nc&&(o=Nc[o]),o}function q0(e){return e.nativeEvent??e}function Vc(e,t="client"){const r=j0(e)?e.touches[0]||e.changedTouches[0]:e;return{x:r[`${t}X`],y:r[`${t}Y`]}}var ce=(e,t,r,n)=>{const o=typeof e=="function"?e():e;return o?.addEventListener(t,r,n),()=>{o?.removeEventListener(t,r,n)}};function K0(e,t){const{type:r="HTMLInputElement",property:n="value"}=t,o=me(e)[r].prototype;return Object.getOwnPropertyDescriptor(o,n)??{}}function Y0(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function cr(e,t,r="value"){if(!e)return;const n=Y0(e);n&&K0(e,{type:n,property:r}).set?.call(e,t),e.setAttribute(r,t)}function Rc(e,t){const{value:r,bubbles:n=!0}=t;if(!e)return;const o=me(e);e instanceof o.HTMLInputElement&&(cr(e,`${r}`),e.dispatchEvent(new o.Event("input",{bubbles:n})))}function X0(e){return Q0(e)?e.form:e.closest("form")}function Q0(e){return e.matches("textarea, input, select, button")}function J0(e,t){if(!e)return;const r=X0(e),n=o=>{o.defaultPrevented||t()};return r?.addEventListener("reset",n,{passive:!0}),()=>r?.removeEventListener("reset",n)}function Z0(e,t){const r=e?.closest("fieldset");if(!r)return;t(r.disabled);const n=me(r),o=new n.MutationObserver(()=>t(r.disabled));return o.observe(r,{attributes:!0,attributeFilter:["disabled"]}),()=>o.disconnect()}function Mo(e,t){if(!e)return;const{onFieldsetDisabledChange:r,onFormReset:n}=t,o=[J0(e,n),Z0(e,r)];return()=>o.forEach(i=>i?.())}var _c=e=>ke(e)&&e.tagName==="IFRAME",eb=/^(audio|video|details)$/;function Lc(e){const t=e.getAttribute("tabindex");return t?parseInt(t,10):NaN}var tb=e=>!Number.isNaN(Lc(e)),rb=e=>Lc(e)<0;function nb(e,t){if(!t)return null;if(t===!0)return e.shadowRoot||null;const r=t(e);return(r===!0?e.shadowRoot:r)||null}function Fc(e,t,r){const n=[...e],o=[...e],i=new Set,s=new Map;e.forEach((l,c)=>s.set(l,c));let a=0;for(;a{s.set(f,g+p)});for(let f=g+u.length;f{s.set(f,g+p)})}o.push(...u)}}return n}var $o="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",zc=(e,t={})=>{if(!e)return[];const{includeContainer:r=!1,getShadowRoot:n}=t,o=Array.from(e.querySelectorAll($o));(r==!0||r=="if-empty"&&o.length===0)&&ke(e)&&Rt(e)&&o.unshift(e);const s=[];for(const a of o)if(Rt(a)){if(_c(a)&&a.contentDocument){const l=a.contentDocument.body;s.push(...zc(l,{getShadowRoot:n}));continue}s.push(a)}return n?Fc(s,n,Rt):s};function Rt(e){return!ke(e)||e.closest("[inert]")?!1:e.matches($o)&&k0(e)}function Wo(e,t={}){if(!e)return[];const{includeContainer:r,getShadowRoot:n}=t,o=Array.from(e.querySelectorAll($o));r&&ur(e)&&o.unshift(e);const i=[];for(const s of o)if(ur(s)){if(_c(s)&&s.contentDocument){const a=s.contentDocument.body;i.push(...Wo(a,{getShadowRoot:n}));continue}i.push(s)}if(n){const s=Fc(i,n,ur);return!s.length&&r?o:s}return!i.length&&r?o:i}function ur(e){return ke(e)&&e.tabIndex>0?!0:Rt(e)&&!rb(e)}function ob(e,t={}){const r=Wo(e,t),n=r[0]||null,o=r[r.length-1]||null;return[n,o]}function Vn(e){return e.tabIndex<0&&(eb.test(e.localName)||Ls(e))&&!tb(e)?0:e.tabIndex}function $s(e){const{root:t,getInitialEl:r,filter:n,enabled:o=!0}=e;if(!o)return;let i=null;if(i||(i=typeof r=="function"?r():r),i||(i=t?.querySelector("[data-autofocus],[autofocus]")),!i){const s=Wo(t);i=n?s.filter(n)[0]:s[0]}return i||t||void 0}function ib(e){const t=e.currentTarget;if(!t)return!1;const[r,n]=ob(t);return!(_s(r)&&e.shiftKey||_s(n)&&!e.shiftKey||!r&&!n)}var Dc=class dm{constructor(){Rs(this,"id",null),Rs(this,"fn_cleanup"),Rs(this,"cleanup",()=>{this.cancel()})}static create(){return new dm}request(t){this.cancel(),this.id=globalThis.requestAnimationFrame(()=>{this.id=null,this.fn_cleanup=t?.()})}cancel(){this.id!==null&&(globalThis.cancelAnimationFrame(this.id),this.id=null),this.fn_cleanup?.(),this.fn_cleanup=void 0}isActive(){return this.id!==null}};function W(e){const t=Dc.create();return t.request(e),t.cleanup}function Ws(e){const t=new Set;function r(n){const o=globalThis.requestAnimationFrame(n);t.add(()=>globalThis.cancelAnimationFrame(o))}return r(()=>r(e)),function(){t.forEach(o=>o())}}function sb(e,t,r){const n=W(()=>{e.removeEventListener(t,o,!0),r()}),o=()=>{n(),r()};return e.addEventListener(t,o,{once:!0,capture:!0}),n}function ab(e,t){if(!e)return;const{attributes:r,callback:n}=t,o=e.ownerDocument.defaultView||window,i=new o.MutationObserver(s=>{for(const a of s)a.type==="attributes"&&a.attributeName&&r.includes(a.attributeName)&&n(a)});return i.observe(e,{attributes:!0,attributeFilter:r}),()=>i.disconnect()}function Rn(e,t){const{defer:r}=t,n=r?W:i=>i(),o=[];return o.push(n(()=>{const i=typeof e=="function"?e():e;o.push(ab(i,t))})),()=>{o.forEach(i=>i?.())}}function Mc(e){const t=()=>{const r=me(e);e.dispatchEvent(new r.MouseEvent("click"))};M0()?sb(e,"keyup",t):queueMicrotask(t)}function Bo(e){const t=O0(e);return y0(t)?Fe(t).body:ke(t)&&Bs(t)?t:Bo(t)}function $c(e,t=[]){const r=Bo(e),n=r===e.ownerDocument.body,o=me(r);return n?t.concat(o,o.visualViewport||[],Bs(r)?r:[]):t.concat(r,$c(r,[]))}var lb=/auto|scroll|overlay|hidden|clip/,cb=new Set(["inline","contents"]);function Bs(e){const t=me(e),{overflow:r,overflowX:n,overflowY:o,display:i}=t.getComputedStyle(e);return lb.test(r+o+n)&&!cb.has(i)}function ub(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function _n(e,t){const{rootEl:r,...n}=t||{};!e||!r||!Bs(r)||!ub(r)||e.scrollIntoView(n)}function Wc(e,t){const{left:r,top:n,width:o,height:i}=t.getBoundingClientRect(),s={x:e.x-r,y:e.y-n},a={x:Sc(s.x/o),y:Sc(s.y/i)};function l(c={}){const{dir:u="ltr",orientation:d="horizontal",inverted:g}=c,f=typeof g=="object"?g.x:g,p=typeof g=="object"?g.y:g;return d==="horizontal"?u==="rtl"||f?1-a.x:a.x:p?1-a.y:a.y}return{offset:s,percent:a,getPercentValue:l}}function db(e,t){const r=e.body,n="pointerLockElement"in e||"mozPointerLockElement"in e,o=()=>!!e.pointerLockElement;function i(){}function s(l){o(),console.error("PointerLock error occurred:",l),e.exitPointerLock()}if(!n)return;try{r.requestPointerLock()}catch{}const a=[ce(e,"pointerlockchange",i,!1),ce(e,"pointerlockerror",s,!1)];return()=>{a.forEach(l=>l()),e.exitPointerLock()}}var Xr="default",Hs="",Ho=new WeakMap;function hb(e={}){const{target:t,doc:r}=e,n=r??document,o=n.documentElement;return zo()?(Xr==="default"&&(Hs=o.style.webkitUserSelect,o.style.webkitUserSelect="none"),Xr="disabled"):t&&(Ho.set(t,t.style.userSelect),t.style.userSelect="none"),()=>fb({target:t,doc:n})}function fb(e={}){const{target:t,doc:r}=e,o=(r??document).documentElement;if(zo()){if(Xr!=="disabled")return;Xr="restoring",setTimeout(()=>{Ws(()=>{Xr==="restoring"&&(o.style.webkitUserSelect==="none"&&(o.style.webkitUserSelect=Hs||""),Hs="",Xr="default")})},300)}else if(t&&Ho.has(t)){const i=Ho.get(t);t.style.userSelect==="none"&&(t.style.userSelect=i??""),t.getAttribute("style")===""&&t.removeAttribute("style"),Ho.delete(t)}}function Bc(e={}){const{defer:t,target:r,...n}=e,o=t?W:s=>s(),i=[];return i.push(o(()=>{const s=typeof r=="function"?r():r;i.push(hb({...n,target:s}))})),()=>{i.forEach(s=>s?.())}}function gb(e,t){const{onPointerMove:r,onPointerUp:n}=t,o=a=>{const l=Vc(a),c=Math.sqrt(l.x**2+l.y**2),u=a.pointerType==="touch"?10:5;if(!(c{const l=Vc(a);n({point:l,event:a})},s=[ce(e,"pointermove",o,!1),ce(e,"pointerup",i,!1),ce(e,"pointercancel",i,!1),ce(e,"contextmenu",i,!1),Bc({doc:e})];return()=>{s.forEach(a=>a())}}function Qr(e,t){return Array.from(e?.querySelectorAll(t)??[])}function pb(e,t){return e?.querySelector(t)??null}var Us=e=>e.id;function mb(e,t,r=Us){return e.find(n=>r(n)===t)}function Uo(e,t,r=Us){const n=mb(e,t,r);return n?e.indexOf(n):-1}function Hc(e,t,r=!0){let n=Uo(e,t);return n=r?(n+1)%e.length:Math.min(n+1,e.length-1),e[n]}function Uc(e,t,r=!0){let n=Uo(e,t);return n===-1?r?e[e.length-1]:null:(n=r?(n-1+e.length)%e.length:Math.max(0,n-1),e[n])}var vb=e=>e.split("").map(t=>{const r=t.charCodeAt(0);return r>0&&r<128?t:r>=128&&r<=255?`/x${r.toString(16)}`.replace("/","\\"):""}).join("").trim(),bb=e=>vb(e.dataset?.valuetext??e.textContent??""),yb=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function xb(e,t,r,n=Us){const o=r?Uo(e,r,n):-1;let i=r?h0(e,o):e;return t.length===1&&(i=i.filter(a=>n(a)!==r)),i.find(a=>yb(bb(a),t))}function jo(e,t){if(!e)return Cc;const r=Object.keys(t).reduce((n,o)=>(n[o]=e.style.getPropertyValue(o),n),{});return Object.assign(e.style,t),()=>{Object.assign(e.style,r),e.style.length===0&&e.removeAttribute("style")}}function Sb(e,t,r){if(!e)return Cc;const n=e.style.getPropertyValue(t);return e.style.setProperty(t,r),()=>{e.style.setProperty(t,n),e.style.length===0&&e.removeAttribute("style")}}function Cb(e,t){const{state:r,activeId:n,key:o,timeout:i=350,itemToId:s}=t,a=r.keysSoFar+o,c=a.length>1&&Array.from(a).every(p=>p===a[0])?a[0]:a;let u=e.slice();const d=xb(u,c,n,s);function g(){clearTimeout(r.timer),r.timer=-1}function f(p){r.keysSoFar=p,g(),p!==""&&(r.timer=+setTimeout(()=>{f(""),g()},i))}return f(a),d}var qt=Object.assign(Cb,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:kb});function kb(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}var wb={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"};function Eb(e,t,r){const{signal:n}=t;return[new Promise((s,a)=>{const l=setTimeout(()=>{a(new Error(`Timeout of ${r}ms exceeded`))},r);n.addEventListener("abort",()=>{clearTimeout(l),a(new Error("Promise aborted"))}),e.then(c=>{n.aborted||(clearTimeout(l),s(c))}).catch(c=>{n.aborted||(clearTimeout(l),a(c))})}),()=>t.abort()]}function Ob(e,t){const{timeout:r,rootNode:n}=t,o=me(n),i=Fe(n),s=new o.AbortController;return Eb(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,r)}var Ib=(...e)=>e.map(t=>t?.trim?.()).filter(Boolean).join(" "),Tb=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,jc=e=>{const t={};let r;for(;r=Tb.exec(e);)t[r[1]]=r[2];return t},Pb=(e,t)=>{if(Po(e)){if(Po(t))return`${e};${t}`;e=jc(e)}else Po(t)&&(t=jc(t));return Object.assign({},e??{},t??{})};function ee(...e){let t={};for(let r of e){if(!r)continue;for(let o in t){if(o.startsWith("on")&&typeof t[o]=="function"&&typeof r[o]=="function"){t[o]=Ao(r[o],t[o]);continue}if(o==="className"||o==="class"){t[o]=Ib(t[o],r[o]);continue}if(o==="style"){t[o]=Pb(t[o],r[o]);continue}t[o]=r[o]!==void 0?r[o]:t[o]}for(let o in r)t[o]===void 0&&(t[o]=r[o]);const n=Object.getOwnPropertySymbols(r);for(let o of n)t[o]=r[o]}return t}function Gc(e,t,r){let n=[],o;return i=>{const s=e(i);return(s.length!==n.length||s.some((l,c)=>!We(n[c],l)))&&(n=s,o=t(s,i)),o}}function _t(){return{and:(...e)=>function(r){return e.every(n=>r.guard(n))},or:(...e)=>function(r){return e.some(n=>r.guard(n))},not:e=>function(r){return!r.guard(e)}}}function N5(e){return e}function Go(){return{guards:_t(),createMachine:e=>e,choose:e=>function({choose:r}){return r(e)?.actions}}}var Jr=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(Jr||{}),js="__init__";function Nb(e){const t=()=>e.getRootNode?.()??document,r=()=>Fe(t());return{...e,getRootNode:t,getDoc:r,getWin:()=>r().defaultView??window,getActiveElement:()=>An(t()),isActiveElement:_s,getById:s=>t().getElementById(s)}}function Ln(...e){return t=>{const r=[];for(const n of e)if(typeof n=="function"){const o=n(t);typeof o=="function"&&r.push(o)}else n&&(n.current=t);if(r.length)return()=>{for(const n of r)n()}}}function Ab(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const Gs=e=>{const t=C.memo(C.forwardRef((r,n)=>{const{asChild:o,children:i,...s}=r;if(!o)return C.createElement(e,{...s,ref:n},i);if(!C.isValidElement(i))return null;const a=C.Children.only(i),l=Ab(a);return C.cloneElement(a,{...ee(s,a.props),ref:n?Ln(n,l):l})}));return t.displayName=e.displayName||e.name,t},ue=(()=>{const e=new Map;return new Proxy(Gs,{apply(t,r,n){return Gs(n[0])},get(t,r){const n=r;return e.has(n)||e.set(n,Gs(n)),e.get(n)}})})(),[V5,qc]=mt({name:"LocaleContext",hookName:"useLocaleContext",providerName:"",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}}),Zr=()=>(e,t)=>t.reduce((r,n)=>{const[o,i]=r,s=n;return i[s]!==void 0&&(o[s]=i[s]),delete i[s],[o,i]},[{},{...e}]),qo=e=>Zr()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function Vb(e){return new Proxy({},{get(t,r){return r==="style"?n=>e({style:n}).style:e}})}var M=()=>e=>Array.from(new Set(e));function Rb(e,t){const{state:r,send:n,context:o}=e,i=r.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:i,setNode(s){s&&n({type:"NODE.SET",node:s})},unmount(){n({type:"UNMOUNT"})}}}var _b={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:["cleanupNode"],watch({track:e,prop:t,send:r}){e([()=>t("present")],()=>{r({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)})},invokeOnExitComplete:({prop:e,refs:t})=>{e("onExitComplete")?.();const r=t.get("node");if(!r)return;const n=me(r),o=new n.CustomEvent("exitcomplete",{bubbles:!1});r.dispatchEvent(o)},setupNode:({refs:e,event:t})=>{e.get("node")!==t.node&&(e.set("node",t.node),e.set("styles",Yr(t.node)))},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},syncPresence:({context:e,refs:t,send:r,prop:n})=>{const o=n("present");if(o)return r({type:"MOUNT",src:"presence.changed"});const i=t.get("node");if(!o&&i?.ownerDocument.visibilityState==="hidden")return r({type:"UNMOUNT",src:"visibilitychange"});W(()=>{const s=Ko(t.get("styles"));e.set("unmountAnimationName",s),s==="none"||s===e.get("prevAnimationName")||t.get("styles")?.display==="none"||t.get("styles")?.animationDuration==="0s"?r({type:"UNMOUNT",src:"presence.changed"}):r({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{W(()=>{e.set("prevAnimationName",Ko(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:r,prop:n})=>{const o=t.get("node");if(!o)return;const i=c=>{(c.composedPath?.()?.[0]??c.target)===o&&e.set("prevAnimationName",Ko(t.get("styles")))},s=c=>{const u=Ko(t.get("styles"));_e(c)===o&&u===e.get("unmountAnimationName")&&!n("present")&&r({type:"UNMOUNT",src:"animationend"})},a=c=>{_e(c)===o&&!n("present")&&r({type:"UNMOUNT",src:"animationcancel"})};o.addEventListener("animationstart",i),o.addEventListener("animationcancel",a),o.addEventListener("animationend",s);const l=jo(o,{animationFillMode:"forwards"});return()=>{o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",a),o.removeEventListener("animationend",s),Ws(()=>l())}}}}};function Ko(e){return e?.animationName||"none"}M()(["onExitComplete","present","immediate"]);var Kc=typeof globalThis.document<"u"?C.useLayoutEffect:C.useEffect;function Yo(e){const t=e().value??e().defaultValue,r=e().isEqual??Object.is,[n]=C.useState(t),[o,i]=C.useState(n),s=e().value!==void 0,a=C.useRef(o);a.current=s?e().value:o;const l=C.useRef(a.current);Kc(()=>{l.current=a.current},[o,e().value]);const c=d=>{const g=l.current,f=Pt(d)?d(g):d;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:f,prev:g}),s||i(f),r(f,g)||e().onChange?.(f,g)};function u(){return s?e().value:o}return{initial:n,ref:a,get:u,set(d){(e().sync?bo.flushSync:jv)(()=>c(d))},invoke(d,g){e().onChange?.(d,g)},hash(d){return e().hash?.(d)??String(d)}}}Yo.cleanup=e=>{C.useEffect(()=>e,[])},Yo.ref=e=>{const t=C.useRef(e);return{get:()=>t.current,set:r=>{t.current=r}}};function Lb(e){const t=C.useRef(e);return{get(r){return t.current[r]},set(r,n){t.current[r]=n}}}var Fb=(e,t)=>{const r=C.useRef(!1),n=C.useRef(!1);C.useEffect(()=>{if(r.current&&n.current)return t();n.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),C.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function qs(e,t={}){const r=C.useMemo(()=>{const{id:N,ids:w,getRootNode:A}=t;return Nb({id:N,ids:w,getRootNode:A})},[t]),n=(...N)=>{e.debug&&console.log(...N)},o=e.props?.({props:Ro(t),scope:r})??t,i=zb(o),s=e.context?.({prop:i,bindable:Yo,scope:r,flush:Xc,getContext(){return l},getComputed(){return b},getRefs(){return m},getEvent(){return f()}}),a=Yc(s),l={get(N){return a.current?.[N].ref.current},set(N,w){a.current?.[N].set(w)},initial(N){return a.current?.[N].initial},hash(N){const w=a.current?.[N].get();return a.current?.[N].hash(w)}},c=C.useRef(new Map),u=C.useRef(null),d=C.useRef(null),g=C.useRef({type:""}),f=()=>({...g.current,current(){return g.current},previous(){return d.current}}),p=()=>({...O,matches(...N){return N.includes(O.ref.current)},hasTag(N){return!!e.states[O.ref.current]?.tags?.includes(N)}}),m=Lb(e.refs?.({prop:i,context:l})??{}),v=()=>({state:p(),context:l,event:f(),prop:i,send:P,action:x,guard:k,track:Fb,refs:m,computed:b,flush:Xc,scope:r,choose:S}),x=N=>{const w=Pt(N)?N(v()):N;if(!w)return;const A=w.map(L=>{const z=e.implementations?.actions?.[L];return z||ar(`[zag-js] No implementation found for action "${JSON.stringify(L)}"`),z});for(const L of A)L?.(v())},k=N=>Pt(N)?N(v()):e.implementations?.guards?.[N](v()),y=N=>{const w=Pt(N)?N(v()):N;if(!w)return;const A=w.map(z=>{const U=e.implementations?.effects?.[z];return U||ar(`[zag-js] No implementation found for effect "${JSON.stringify(z)}"`),U}),L=[];for(const z of A){const U=z?.(v());U&&L.push(U)}return()=>L.forEach(z=>z?.())},S=N=>To(N).find(w=>{let A=!w.guard;return Po(w.guard)?A=!!k(w.guard):Pt(w.guard)&&(A=w.guard(v())),A}),b=N=>{As(e.computed,()=>"[zag-js] No computed object found on machine");const w=e.computed[N];return w({context:l,event:f(),prop:i,refs:m,scope:r,computed:b})},O=Yo(()=>({defaultValue:e.initialState({prop:i}),onChange(N,w){w&&(c.current.get(w)?.(),c.current.delete(w)),w&&x(e.states[w]?.exit),x(u.current?.actions);const A=y(e.states[N]?.effects);if(A&&c.current.set(N,A),w===js){x(e.entry);const L=y(e.effects);L&&c.current.set(js,L)}x(e.states[N]?.entry)}})),T=C.useRef(void 0),V=C.useRef(Jr.NotStarted);Kc(()=>{queueMicrotask(()=>{const A=V.current===Jr.Started;V.current=Jr.Started,n(A?"rehydrating...":"initializing...");const L=T.current??O.initial;O.invoke(L,A?O.get():js)});const N=c.current,w=O.ref.current;return()=>{n("unmounting..."),T.current=w,V.current=Jr.Stopped,N.forEach(A=>A?.()),c.current=new Map,u.current=null,queueMicrotask(()=>{x(e.exit)})}},[]);const E=()=>"ref"in O?O.ref.current:O.get(),P=N=>{queueMicrotask(()=>{if(V.current!==Jr.Started)return;d.current=g.current,g.current=N;let w=E();const A=e.states[w].on?.[N.type]??e.on?.[N.type],L=S(A);if(!L)return;u.current=L;const z=L.target??w;n("transition",N.type,L.target||w,`(${L.actions})`);const U=z!==w;U?bo.flushSync(()=>O.set(z)):L.reenter&&!U?O.invoke(w,w):x(L.actions??[])})};return e.watch?.(v()),{state:p(),send:P,context:l,prop:i,scope:r,refs:m,computed:b,event:f(),getStatus:()=>V.current}}function Yc(e){const t=C.useRef(e);return t.current=e,t}function zb(e){const t=Yc(e);return function(n){return t.current[n]}}function Xc(e){queueMicrotask(()=>{bo.flushSync(()=>e())})}var Qc=Vb(e=>e);function Db(e,t={}){const{sync:r=!1}=t,n=Mb(e);return C.useCallback((...o)=>r?queueMicrotask(()=>n.current?.(...o)):n.current?.(...o),[r,n])}function Mb(e){const t=C.useRef(e);return t.current=e,t}const Fn=(e={})=>{const{lazyMount:t,unmountOnExit:r,present:n,skipAnimationOnMount:o=!1,...i}=e,s=C.useRef(!1),a={...i,present:n,onExitComplete:Db(e.onExitComplete)},l=qs(_b,a),c=Rb(l);c.present&&(s.current=!0);const u=!c.present&&!s.current&&t||r&&!c.present&&s.current,d=()=>({"data-state":c.skip&&o?void 0:n?"open":"closed",hidden:!c.present});return{ref:c.setNode,getPresenceProps:d,present:c.present,unmounted:u}},[Xo,zn]=mt({name:"PresenceContext",hookName:"usePresenceContext",providerName:""}),Dn=he("span");Dn.displayName="Span";const{withContext:$b}=Tt({key:"text"}),He=$b("p");He.displayName="Text";function Jc(e,t=[]){const r=C.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return C.useInsertionEffect(()=>{r.current=e}),C.useCallback((...n)=>r.current?.(...n),t)}function dr(e={}){const t=Jc(e.onOpen),r=Jc(e.onClose),[n,o]=C.useState(e.defaultOpen||!1),i=e.open!==void 0?e.open:n,s=e.open!==void 0,a=C.useCallback(()=>{s||o(!1),r?.()},[s,r]),l=C.useCallback(()=>{s||o(!0),t?.()},[s,t]),c=C.useCallback(()=>{i?a():l()},[i,l,a]);return{open:i,onOpen:l,onClose:a,onToggle:c,setOpen:o}}var $=(e,t=[])=>({parts:(...r)=>{if(Wb(t))return $(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>$(e,[...t,...r]),omit:(...r)=>$(e,t.filter(n=>!r.includes(n))),rename:r=>$(r,t),keys:()=>t,build:()=>[...new Set(t)].reduce((r,n)=>Object.assign(r,{[n]:{selector:[`&[data-scope="${en(e)}"][data-part="${en(n)}"]`,`& [data-scope="${en(e)}"][data-part="${en(n)}"]`].join(", "),attrs:{"data-scope":en(e),"data-part":en(n)}}}),{})}),en=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Wb=e=>e.length===0,Zc=$("collapsible").parts("root","trigger","content","indicator");Zc.build(),M()(["dir","disabled","getRootNode","id","ids","collapsedHeight","collapsedWidth","onExitComplete","onOpenChange","defaultOpen","open"]);var Bb=Object.defineProperty,Hb=(e,t,r)=>t in e?Bb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ks=(e,t,r)=>Hb(e,t+"",r),Ub=(e,t)=>{if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0},Ys=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 r=t??this.getChannelValue(e),{minValue:n,maxValue:o}=this.getChannelRange(e);return r0(r,n,o)}getChannelPercentValue(e,t){const{minValue:r,maxValue:n,step:o}=this.getChannelRange(e),i=n0(t,r,n,o);return bc(i,r,n,o)}withChannelValue(e,t){const{minValue:r,maxValue:n}=this.getChannelRange(e);if(e in this){let o=this.clone();return o[e]=Be(t,r,n),o}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:r}=e,n=t||this.getChannels().find(s=>s!==r),o=r||this.getChannels().find(s=>s!==n),i=this.getChannels().find(s=>s!==n&&s!==o);return{xChannel:n,yChannel:o,zChannel:i}}incrementChannel(e,t){const{minValue:r,maxValue:n,step:o}=this.getChannelRange(e),i=bc(Be(this.getChannelValue(e)+t,r,n),r,n,o);return this.withChannelValue(e,i)}decrementChannel(e,t){return this.incrementChannel(e,-t)}isEqual(e){return Ub(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},jb=/^#[\da-f]+$/i,Gb=/^rgba?\((.*)\)$/,qb=/[^#]/gi,eu=class ns extends Ys{constructor(t,r,n,o){super(),this.red=t,this.green=r,this.blue=n,this.alpha=o}static parse(t){let r=[];if(jb.test(t)&&[4,5,7,9].includes(t.length)){const o=(t.length<6?t.replace(qb,"$&$&"):t).slice(1).split("");for(;o.length>0;)r.push(parseInt(o.splice(0,2).join(""),16));r[3]=r[3]!==void 0?r[3]/255:void 0}const n=t.match(Gb);return n?.[1]&&(r=n[1].split(",").map(o=>Number(o.trim())).map((o,i)=>Be(o,0,i<3?255:1))),r.length<3?void 0:new ns(r[0],r[1],r[2],r[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,r=this.green/255,n=this.blue/255,o=Math.min(t,r,n),i=Math.max(t,r,n),s=i-o,a=i===0?0:s/i;let l=0;if(s!==0){switch(i){case t:l=(r-n)/s+(rNumber(a.trim().replace("%","")));return new os(mc(n,360),Be(o,0,100),Be(i,0,100),Be(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}, ${se(this.saturation,2)}%, ${se(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${se(this.saturation,2)}%, ${se(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,r=this.lightness/100,n=r+t*Math.min(r,1-r);return t=n===0?0:2*(1-r/n),new Js(se(this.hue,2),se(t*100,2),se(n*100,2),se(this.alpha,2))}toRGB(){let t=this.hue,r=this.saturation/100,n=this.lightness/100,o=r*Math.min(n,1-n),i=(s,a=(s+t/30)%12)=>n-o*Math.max(Math.min(a-3,9-a,1),-1);return new Xs(Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255),se(this.alpha,2))}clone(){return new os(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,r){let n=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="lightness")&&(o/=100),new Intl.NumberFormat(r,n).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 os.colorChannels}};Ks(tu,"colorChannels",["hue","saturation","lightness"]);var Qs=tu,Yb=/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+)?)\)/,ru=class is extends Ys{constructor(t,r,n,o){super(),this.hue=t,this.saturation=r,this.brightness=n,this.alpha=o}static parse(t){let r;if(r=t.match(Yb)){const[n,o,i,s]=(r[1]??r[2]).split(",").map(a=>Number(a.trim().replace("%","")));return new is(mc(n,360),Be(o,0,100),Be(i,0,100),Be(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}, ${se(this.saturation,2)}%, ${se(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${se(this.saturation,2)}%, ${se(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,r=this.brightness/100,n=r*(1-t/2);return t=n===0||n===1?0:(r-n)/Math.min(n,1-n),new Qs(se(this.hue,2),se(t*100,2),se(n*100,2),se(this.alpha,2))}toRGB(){let t=this.hue,r=this.saturation/100,n=this.brightness/100,o=(i,s=(i+t/60)%6)=>n-r*n*Math.max(Math.min(s,4-s,1),0);return new Xs(Math.round(o(5)*255),Math.round(o(3)*255),Math.round(o(1)*255),se(this.alpha,2))}clone(){return new is(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,r){let n=this.getChannelFormatOptions(t),o=this.getChannelValue(t);return(t==="saturation"||t==="brightness")&&(o/=100),new Intl.NumberFormat(r,n).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 is.colorChannels}};Ks(ru,"colorChannels",["hue","saturation","brightness"]);var Js=ru,Xb="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",Qb=e=>{const t=new Map,r=e.split(",");for(let n=0;n{if(nu.has(e))return Qo(nu.get(e));const t=Xs.parse(e)||Js.parse(e)||Qs.parse(e);if(!t){const r=new Error("Invalid color value: "+e);throw Error.captureStackTrace?.(r,Qo),r}return t};const Jb=["top","right","bottom","left"],Kt=Math.min,Je=Math.max,Jo=Math.round,Zo=Math.floor,vt=e=>({x:e,y:e}),Zb={left:"right",right:"left",bottom:"top",top:"bottom"},ey={start:"end",end:"start"};function Zs(e,t,r){return Je(e,Kt(t,r))}function Lt(e,t){return typeof e=="function"?e(t):e}function Ft(e){return e.split("-")[0]}function tn(e){return e.split("-")[1]}function ea(e){return e==="x"?"y":"x"}function ta(e){return e==="y"?"height":"width"}const ty=new Set(["top","bottom"]);function bt(e){return ty.has(Ft(e))?"y":"x"}function ra(e){return ea(bt(e))}function ry(e,t,r){r===void 0&&(r=!1);const n=tn(e),o=ra(e),i=ta(o);let s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ei(s)),[s,ei(s)]}function ny(e){const t=ei(e);return[na(e),t,na(t)]}function na(e){return e.replace(/start|end/g,t=>ey[t])}const ou=["left","right"],iu=["right","left"],oy=["top","bottom"],iy=["bottom","top"];function sy(e,t,r){switch(e){case"top":case"bottom":return r?t?iu:ou:t?ou:iu;case"left":case"right":return t?oy:iy;default:return[]}}function ay(e,t,r,n){const o=tn(e);let i=sy(Ft(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(na)))),i}function ei(e){return e.replace(/left|right|bottom|top/g,t=>Zb[t])}function ly(e){return{top:0,right:0,bottom:0,left:0,...e}}function su(e){return typeof e!="number"?ly(e):{top:e,right:e,bottom:e,left:e}}function ti(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function au(e,t,r){let{reference:n,floating:o}=e;const i=bt(t),s=ra(t),a=ta(s),l=Ft(t),c=i==="y",u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,g=n[a]/2-o[a]/2;let f;switch(l){case"top":f={x:u,y:n.y-o.height};break;case"bottom":f={x:u,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:d};break;case"left":f={x:n.x-o.width,y:d};break;default:f={x:n.x,y:n.y}}switch(tn(t)){case"start":f[s]-=g*(r&&c?-1:1);break;case"end":f[s]+=g*(r&&c?-1:1);break}return f}const cy=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,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}=au(c,n,l),g=n,f={},p=0;for(let m=0;m({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Lt(e,t)||{};if(c==null)return{};const d=su(u),g={x:r,y:n},f=ra(o),p=ta(f),m=await s.getDimensions(c),v=f==="y",x=v?"top":"left",k=v?"bottom":"right",y=v?"clientHeight":"clientWidth",S=i.reference[p]+i.reference[f]-g[f]-i.floating[p],b=g[f]-i.reference[f],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let T=O?O[y]:0;(!T||!await(s.isElement==null?void 0:s.isElement(O)))&&(T=a.floating[y]||i.floating[p]);const V=S/2-b/2,E=T/2-m[p]/2-1,P=Kt(d[x],E),N=Kt(d[k],E),w=P,A=T-m[p]-N,L=T/2-m[p]/2+V,z=Zs(w,L,A),U=!l.arrow&&tn(o)!=null&&L!==z&&i.reference[p]/2-(LL<=0)){var N,w;const L=(((N=i.flip)==null?void 0:N.index)||0)+1,z=T[L];if(z&&(!(d==="alignment"?k!==bt(z):!1)||P.every(ne=>bt(ne.placement)===k?ne.overflows[0]>0:!0)))return{data:{index:L,overflows:P},reset:{placement:z}};let U=(w=P.filter(Z=>Z.overflows[0]<=0).sort((Z,ne)=>Z.overflows[1]-ne.overflows[1])[0])==null?void 0:w.placement;if(!U)switch(f){case"bestFit":{var A;const Z=(A=P.filter(ne=>{if(O){const H=bt(ne.placement);return H===k||H==="y"}return!0}).map(ne=>[ne.placement,ne.overflows.filter(H=>H>0).reduce((H,q)=>H+q,0)]).sort((ne,H)=>ne[1]-H[1])[0])==null?void 0:A[0];Z&&(U=Z);break}case"initialPlacement":U=a;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function lu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function cu(e){return Jb.some(t=>e[t]>=0)}const hy=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Lt(e,t);switch(n){case"referenceHidden":{const i=await Mn(t,{...o,elementContext:"reference"}),s=lu(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:cu(s)}}}case"escaped":{const i=await Mn(t,{...o,altBoundary:!0}),s=lu(i,r.floating);return{data:{escapedOffsets:s,escaped:cu(s)}}}default:return{}}}}},uu=new Set(["left","top"]);async function fy(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=Ft(r),a=tn(r),l=bt(r)==="y",c=uu.has(s)?-1:1,u=i&&l?-1:1,d=Lt(t,e);let{mainAxis:g,crossAxis:f,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof p=="number"&&(f=a==="end"?p*-1:p),l?{x:f*u,y:g*c}:{x:g*c,y:f*u}}const gy=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await fy(t,e);return s===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},py=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x,y:k}=v;return{x,y:k}}},...l}=Lt(e,t),c={x:r,y:n},u=await Mn(t,l),d=bt(Ft(o)),g=ea(d);let f=c[g],p=c[d];if(i){const v=g==="y"?"top":"left",x=g==="y"?"bottom":"right",k=f+u[v],y=f-u[x];f=Zs(k,f,y)}if(s){const v=d==="y"?"top":"left",x=d==="y"?"bottom":"right",k=p+u[v],y=p-u[x];p=Zs(k,p,y)}const m=a.fn({...t,[g]:f,[d]:p});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[g]:i,[d]:s}}}}}},my=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Lt(e,t),u={x:r,y:n},d=bt(o),g=ea(d);let f=u[g],p=u[d];const m=Lt(a,t),v=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const y=g==="y"?"height":"width",S=i.reference[g]-i.floating[y]+v.mainAxis,b=i.reference[g]+i.reference[y]-v.mainAxis;fb&&(f=b)}if(c){var x,k;const y=g==="y"?"width":"height",S=uu.has(Ft(o)),b=i.reference[d]-i.floating[y]+(S&&((x=s.offset)==null?void 0:x[d])||0)+(S?0:v.crossAxis),O=i.reference[d]+i.reference[y]+(S?0:((k=s.offset)==null?void 0:k[d])||0)-(S?v.crossAxis:0);pO&&(p=O)}return{[g]:f,[d]:p}}}},vy=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=Lt(e,t),u=await Mn(t,c),d=Ft(o),g=tn(o),f=bt(o)==="y",{width:p,height:m}=i.floating;let v,x;d==="top"||d==="bottom"?(v=d,x=g===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(x=d,v=g==="end"?"top":"bottom");const k=m-u.top-u.bottom,y=p-u.left-u.right,S=Kt(m-u[v],k),b=Kt(p-u[x],y),O=!t.middlewareData.shift;let T=S,V=b;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(V=y),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(T=k),O&&!g){const P=Je(u.left,0),N=Je(u.right,0),w=Je(u.top,0),A=Je(u.bottom,0);f?V=p-2*(P!==0||N!==0?P+N:Je(u.left,u.right)):T=m-2*(w!==0||A!==0?w+A:Je(u.top,u.bottom))}await l({...t,availableWidth:V,availableHeight:T});const E=await s.getDimensions(a.floating);return p!==E.width||m!==E.height?{reset:{rects:!0}}:{}}}};function ri(){return typeof window<"u"}function rn(e){return du(e)?(e.nodeName||"").toLowerCase():"#document"}function Ze(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function yt(e){var t;return(t=(du(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function du(e){return ri()?e instanceof Node||e instanceof Ze(e).Node:!1}function lt(e){return ri()?e instanceof Element||e instanceof Ze(e).Element:!1}function xt(e){return ri()?e instanceof HTMLElement||e instanceof Ze(e).HTMLElement:!1}function hu(e){return!ri()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ze(e).ShadowRoot}const by=new Set(["inline","contents"]);function $n(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ct(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!by.has(o)}const yy=new Set(["table","td","th"]);function xy(e){return yy.has(rn(e))}const Sy=[":popover-open",":modal"];function ni(e){return Sy.some(t=>{try{return e.matches(t)}catch{return!1}})}const Cy=["transform","translate","scale","rotate","perspective"],ky=["transform","translate","scale","rotate","perspective","filter"],wy=["paint","layout","strict","content"];function oa(e){const t=ia(),r=lt(e)?ct(e):e;return Cy.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||ky.some(n=>(r.willChange||"").includes(n))||wy.some(n=>(r.contain||"").includes(n))}function Ey(e){let t=Yt(e);for(;xt(t)&&!nn(t);){if(oa(t))return t;if(ni(t))return null;t=Yt(t)}return null}function ia(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Oy=new Set(["html","body","#document"]);function nn(e){return Oy.has(rn(e))}function ct(e){return Ze(e).getComputedStyle(e)}function oi(e){return lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Yt(e){if(rn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||hu(e)&&e.host||yt(e);return hu(t)?t.host:t}function fu(e){const t=Yt(e);return nn(t)?e.ownerDocument?e.ownerDocument.body:e.body:xt(t)&&$n(t)?t:fu(t)}function Wn(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=fu(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=Ze(o);if(i){const a=sa(s);return t.concat(s,s.visualViewport||[],$n(o)?o:[],a&&r?Wn(a):[])}return t.concat(o,Wn(o,[],r))}function sa(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function gu(e){const t=ct(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=xt(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,a=Jo(r)!==i||Jo(n)!==s;return a&&(r=i,n=s),{width:r,height:n,$:a}}function aa(e){return lt(e)?e:e.contextElement}function on(e){const t=aa(e);if(!xt(t))return vt(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=gu(t);let s=(i?Jo(r.width):r.width)/n,a=(i?Jo(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Iy=vt(0);function pu(e){const t=Ze(e);return!ia()||!t.visualViewport?Iy:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ty(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ze(e)?!1:t}function hr(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=aa(e);let s=vt(1);t&&(n?lt(n)&&(s=on(n)):s=on(e));const a=Ty(i,r,n)?pu(i):vt(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 g=Ze(i),f=n&<(n)?Ze(n):n;let p=g,m=sa(p);for(;m&&n&&f!==p;){const v=on(m),x=m.getBoundingClientRect(),k=ct(m),y=x.left+(m.clientLeft+parseFloat(k.paddingLeft))*v.x,S=x.top+(m.clientTop+parseFloat(k.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=y,c+=S,p=Ze(m),m=sa(p)}}return ti({width:u,height:d,x:l,y:c})}function ii(e,t){const r=oi(e).scrollLeft;return t?t.left+r:hr(yt(e)).left+r}function mu(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-ii(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function Py(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",s=yt(n),a=t?ni(t.floating):!1;if(n===s||a&&i)return r;let l={scrollLeft:0,scrollTop:0},c=vt(1);const u=vt(0),d=xt(n);if((d||!d&&!i)&&((rn(n)!=="body"||$n(s))&&(l=oi(n)),xt(n))){const f=hr(n);c=on(n),u.x=f.x+n.clientLeft,u.y=f.y+n.clientTop}const g=s&&!d&&!i?mu(s,l):vt(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+g.x,y:r.y*c.y-l.scrollTop*c.y+u.y+g.y}}function Ny(e){return Array.from(e.getClientRects())}function Ay(e){const t=yt(e),r=oi(e),n=e.ownerDocument.body,o=Je(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Je(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let s=-r.scrollLeft+ii(e);const a=-r.scrollTop;return ct(n).direction==="rtl"&&(s+=Je(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:a}}const vu=25;function Vy(e,t){const r=Ze(e),n=yt(e),o=r.visualViewport;let i=n.clientWidth,s=n.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=ia();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}const c=ii(n);if(c<=0){const u=n.ownerDocument,d=u.body,g=getComputedStyle(d),f=u.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,p=Math.abs(n.clientWidth-d.clientWidth-f);p<=vu&&(i-=p)}else c<=vu&&(i+=c);return{width:i,height:s,x:a,y:l}}const Ry=new Set(["absolute","fixed"]);function _y(e,t){const r=hr(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=xt(e)?on(e):vt(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=n*i.y;return{width:s,height:a,x:l,y:c}}function bu(e,t,r){let n;if(t==="viewport")n=Vy(e,r);else if(t==="document")n=Ay(yt(e));else if(lt(t))n=_y(t,r);else{const o=pu(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ti(n)}function yu(e,t){const r=Yt(e);return r===t||!lt(r)||nn(r)?!1:ct(r).position==="fixed"||yu(r,t)}function Ly(e,t){const r=t.get(e);if(r)return r;let n=Wn(e,[],!1).filter(a=>lt(a)&&rn(a)!=="body"),o=null;const i=ct(e).position==="fixed";let s=i?Yt(e):e;for(;lt(s)&&!nn(s);){const a=ct(s),l=oa(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&Ry.has(o.position)||$n(s)&&!l&&yu(e,s))?n=n.filter(u=>u!==s):o=a,s=Yt(s)}return t.set(e,n),n}function Fy(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const s=[...r==="clippingAncestors"?ni(t)?[]:Ly(t,this._c):[].concat(r),n],a=s[0],l=s.reduce((c,u)=>{const d=bu(t,u,o);return c.top=Je(d.top,c.top),c.right=Kt(d.right,c.right),c.bottom=Kt(d.bottom,c.bottom),c.left=Je(d.left,c.left),c},bu(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function zy(e){const{width:t,height:r}=gu(e);return{width:t,height:r}}function Dy(e,t,r){const n=xt(t),o=yt(t),i=r==="fixed",s=hr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=vt(0);function c(){l.x=ii(o)}if(n||!n&&!i)if((rn(t)!=="body"||$n(o))&&(a=oi(t)),n){const f=hr(t,!0,i,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else o&&c();i&&!n&&o&&c();const u=o&&!n&&!i?mu(o,a):vt(0),d=s.left+a.scrollLeft-l.x-u.x,g=s.top+a.scrollTop-l.y-u.y;return{x:d,y:g,width:s.width,height:s.height}}function la(e){return ct(e).position==="static"}function xu(e,t){if(!xt(e)||ct(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return yt(e)===r&&(r=r.ownerDocument.body),r}function Su(e,t){const r=Ze(e);if(ni(e))return r;if(!xt(e)){let o=Yt(e);for(;o&&!nn(o);){if(lt(o)&&!la(o))return o;o=Yt(o)}return r}let n=xu(e,t);for(;n&&xy(n)&&la(n);)n=xu(n,t);return n&&nn(n)&&la(n)&&!oa(n)?r:n||Ey(e)||r}const My=async function(e){const t=this.getOffsetParent||Su,r=this.getDimensions,n=await r(e.floating);return{reference:Dy(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function $y(e){return ct(e).direction==="rtl"}const Wy={convertOffsetParentRelativeRectToViewportRelativeRect:Py,getDocumentElement:yt,getClippingRect:Fy,getOffsetParent:Su,getElementRects:My,getClientRects:Ny,getDimensions:zy,getScale:on,isElement:lt,isRTL:$y};function Cu(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function By(e,t){let r=null,n;const o=yt(e);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=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:g,height:f}=c;if(a||t(),!g||!f)return;const p=Zo(d),m=Zo(o.clientWidth-(u+g)),v=Zo(o.clientHeight-(d+f)),x=Zo(u),y={rootMargin:-p+"px "+-m+"px "+-v+"px "+-x+"px",threshold:Je(0,Kt(1,l))||1};let S=!0;function b(O){const T=O[0].intersectionRatio;if(T!==l){if(!S)return s();T?s(!1,T):n=setTimeout(()=>{s(!1,1e-7)},1e3)}T===1&&!Cu(c,e.getBoundingClientRect())&&s(),S=!1}try{r=new IntersectionObserver(b,{...y,root:o.ownerDocument})}catch{r=new IntersectionObserver(b,y)}r.observe(e)}return s(!0),i}function Hy(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=aa(e),u=o||i?[...c?Wn(c):[],...Wn(t)]:[];u.forEach(x=>{o&&x.addEventListener("scroll",r,{passive:!0}),i&&x.addEventListener("resize",r)});const d=c&&a?By(c,r):null;let g=-1,f=null;s&&(f=new ResizeObserver(x=>{let[k]=x;k&&k.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var y;(y=f)==null||y.observe(t)})),r()}),c&&!l&&f.observe(c),f.observe(t));let p,m=l?hr(e):null;l&&v();function v(){const x=hr(e);m&&!Cu(m,x)&&r(),m=x,p=requestAnimationFrame(v)}return r(),()=>{var x;u.forEach(k=>{o&&k.removeEventListener("scroll",r),i&&k.removeEventListener("resize",r)}),d?.(),(x=f)==null||x.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const Uy=gy,jy=py,Gy=dy,qy=vy,Ky=hy,Yy=uy,Xy=my,Qy=(e,t,r)=>{const n=new Map,o={platform:Wy,...r},i={...o.platform,_c:n};return cy(e,t,{...o,platform:i})};function ku(e=0,t=0,r=0,n=0){if(typeof DOMRect=="function")return new DOMRect(e,t,r,n);const o={x:e,y:t,width:r,height:n,top:t,right:e+r,bottom:t+n,left:e};return{...o,toJSON:()=>o}}function Jy(e){if(!e)return ku();const{x:t,y:r,width:n,height:o}=e;return ku(t,r,n,o)}function Zy(e,t){return{contextElement:ke(e)?e:e?.contextElement,getBoundingClientRect:()=>{const r=e,n=t?.(r);return n||!r?Jy(n):r.getBoundingClientRect()}}}var Bn=e=>({variable:e,reference:`var(${e})`}),zt={arrowSize:Bn("--arrow-size"),arrowSizeHalf:Bn("--arrow-size-half"),arrowBg:Bn("--arrow-background"),transformOrigin:Bn("--transform-origin"),arrowOffset:Bn("--arrow-offset")},ex=e=>e==="top"||e==="bottom"?"y":"x";function tx(e,t){return{name:"transformOrigin",fn(r){const{elements:n,middlewareData:o,placement:i,rects:s,y:a}=r,l=i.split("-")[0],c=ex(l),u=o.arrow?.x||0,d=o.arrow?.y||0,g=t?.clientWidth||0,f=t?.clientHeight||0,p=u+g/2,m=d+f/2,v=Math.abs(o.shift?.y||0),x=s.reference.height/2,k=f/2,y=e.offset?.mainAxis??e.gutter,S=typeof y=="number"?y+k:y??k,b=v>S,O={top:`${p}px calc(100% + ${S}px)`,bottom:`${p}px ${-S}px`,left:`calc(100% + ${S}px) ${m}px`,right:`${-S}px ${m}px`}[l],T=`${p}px ${s.reference.y+x-a}px`,V=!!e.overlap&&c==="y"&&b;return n.floating.style.setProperty(zt.transformOrigin.variable,V?T:O),{data:{transformOrigin:V?T:O}}}}}var rx={name:"rects",fn({rects:e}){return{data:e}}},nx=e=>{if(e)return{name:"shiftArrow",fn({placement:t,middlewareData:r}){if(!r.arrow)return{};const{x:n,y:o}=r.arrow,i=t.split("-")[0];return Object.assign(e.style,{left:n!=null?`${n}px`:"",top:o!=null?`${o}px`:"",[i]:`calc(100% + ${zt.arrowOffset.reference})`}),{}}}};function ox(e){const[t,r]=e.split("-");return{side:t,align:r,hasAlign:r!=null}}function ix(e){return e.split("-")[0]}var sx={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function wu(e,t){const r=e.devicePixelRatio||1;return Math.round(t*r)/r}function ca(e){return typeof e=="function"?e():e==="clipping-ancestors"?"clippingAncestors":e}function ax(e,t,r){const n=e||t.createElement("div");return Yy({element:n,padding:r.arrowPadding})}function lx(e,t){if(!Dv(t.offset??t.gutter))return Uy(({placement:r})=>{const n=(e?.clientHeight||0)/2,o=t.offset?.mainAxis??t.gutter,i=typeof o=="number"?o+n:o??n,{hasAlign:s}=ox(r),a=s?void 0:t.shift,l=t.offset?.crossAxis??a;return Ro({crossAxis:l,mainAxis:i,alignmentAxis:t.shift})})}function cx(e){if(!e.flip)return;const t=ca(e.boundary);return Gy({...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function ux(e){if(!e.slide&&!e.overlap)return;const t=ca(e.boundary);return jy({...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:Xy()})}function dx(e){return qy({padding:e.overflowPadding,apply({elements:t,rects:r,availableHeight:n,availableWidth:o}){const i=t.floating,s=Math.round(r.reference.width),a=Math.round(r.reference.height);o=Math.floor(o),n=Math.floor(n),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",`${n}px`)}})}function hx(e){if(e.hideWhenDetached)return Ky({strategy:"referenceHidden",boundary:ca(e.boundary)??"clippingAncestors"})}function fx(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function gx(e,t,r={}){const n=r.getAnchorElement?.()??e,o=Zy(n,r.getAnchorRect);if(!t||!o)return;const i=Object.assign({},sx,r),s=t.querySelector("[data-part=arrow]"),a=[lx(s,i),cx(i),ux(i),ax(s,t.ownerDocument,i),nx(s),tx({gutter:i.gutter,offset:i.offset,overlap:i.overlap},s),dx(i),hx(i),rx],{placement:l,strategy:c,onComplete:u,onPositioned:d}=i,g=async()=>{if(!o||!t)return;const v=await Qy(o,t,{placement:l,middleware:a,strategy:c});u?.(v),d?.({placed:!0});const x=me(t),k=wu(x,v.x),y=wu(x,v.y);t.style.setProperty("--x",`${k}px`),t.style.setProperty("--y",`${y}px`),i.hideWhenDetached&&(v.middlewareData.hide?.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 b=Yr(S);t.style.setProperty("--z-index",b.zIndex)}},f=async()=>{r.updatePosition?(await r.updatePosition({updatePosition:g,floatingElement:t}),d?.({placed:!0})):await g()},p=fx(i.listeners),m=i.listeners?Hy(o,t,f,p):Gv;return f(),()=>{m?.(),d?.({placed:!1})}}function ut(e,t,r={}){const{defer:n,...o}=r,i=n?W:a=>a(),s=[];return s.push(i(()=>{const a=typeof e=="function"?e():e,l=typeof t=="function"?t():t;s.push(gx(a,l,o))})),()=>{s.forEach(a=>a?.())}}var px={bottom:"rotate(45deg)",left:"rotate(135deg)",top:"rotate(225deg)",right:"rotate(315deg)"};function mx(e={}){const{placement:t,sameWidth:r,fitViewport:n,strategy:o="absolute"}=e;return{arrow:{position:"absolute",width:zt.arrowSize.reference,height:zt.arrowSize.reference,[zt.arrowSizeHalf.variable]:`calc(${zt.arrowSize.reference} / 2)`,[zt.arrowOffset.variable]:`calc(${zt.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?px[t.split("-")[0]]:void 0,background:zt.arrowBg.reference,top:"0",left:"0",width:"100%",height:"100%",position:"absolute",zIndex:"inherit"},floating:{position:o,isolation:"isolate",minWidth:r?void 0:"max-content",width:r?"var(--reference-width)":void 0,maxWidth:n?"var(--available-width)":void 0,maxHeight:n?"var(--available-height)":void 0,pointerEvents:t?void 0:"none",top:"0px",left:"0px",transform:t?"translate3d(var(--x), var(--y), 0)":"translate3d(0, -100vh, 0)",zIndex:"var(--z-index)"}}}function vx(e){const t={each(r){for(let n=0;n{try{i.document.addEventListener(r,n,o)}catch{}}),()=>{try{t.removeEventListener(r,n,o)}catch{}}},removeEventListener(r,n,o){t.each(i=>{try{i.document.removeEventListener(r,n,o)}catch{}})}};return t}function bx(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(r,n,o)=>{try{t?.addEventListener(r,n,o)}catch{}return()=>{try{t?.removeEventListener(r,n,o)}catch{}}},removeEventListener:(r,n,o)=>{try{t?.removeEventListener(r,n,o)}catch{}}}}var Eu="pointerdown.outside",Ou="focus.outside";function yx(e){for(const t of e)if(ke(t)&&Rt(t))return!0;return!1}var Iu=e=>"clientY"in e;function xx(e,t){if(!Iu(t)||!e)return!1;const r=e.getBoundingClientRect();return r.width===0||r.height===0?!1:r.top<=t.clientY&&t.clientY<=r.top+r.height&&r.left<=t.clientX&&t.clientX<=r.left+r.width}function Sx(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function Tu(e,t){if(!t||!Iu(e))return!1;const r=t.scrollHeight>t.clientHeight,n=r&&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+(r?16:0),height:t.clientHeight+(o?16:0)},a={x:e.clientX,y:e.clientY};return Sx(s,a)?n||i:!1}function Cx(e,t){const{exclude:r,onFocusOutside:n,onPointerDownOutside:o,onInteractOutside:i,defer:s,followControlledElements:a=!0}=t;if(!e)return;const l=Fe(e),c=me(e),u=vx(c),d=bx(c);function g(y,S){if(!ke(S)||!S.isConnected||Vt(e,S)||xx(e,y)||a&&Ec(e,S))return!1;const b=l.querySelector(`[aria-controls="${e.id}"]`);if(b){const T=Bo(b);if(Tu(y,T))return!1}const O=Bo(e);return Tu(y,O)?!1:!r?.(S)}const f=new Set,p=lr(e?.getRootNode());function m(y){function S(b){const O=s&&!Tc()?W:E=>E(),T=b??y,V=T?.composedPath?.()??[T?.target];O(()=>{const E=p?V[0]:_e(y);if(!(!e||!g(y,E))){if(o||i){const P=Ao(o,i);e.addEventListener(Eu,P,{once:!0})}Nu(e,Eu,{bubbles:!1,cancelable:!0,detail:{originalEvent:T,contextmenu:U0(T),focusable:yx(V),target:E}})}})}y.pointerType==="touch"?(f.forEach(b=>b()),f.add(ce(l,"click",S,{once:!0})),f.add(d.addEventListener("click",S,{once:!0})),f.add(u.addEventListener("click",S,{once:!0}))):S()}const v=new Set,x=setTimeout(()=>{v.add(ce(l,"pointerdown",m,!0)),v.add(d.addEventListener("pointerdown",m,!0)),v.add(u.addEventListener("pointerdown",m,!0))},0);function k(y){(s?W:b=>b())(()=>{const b=y?.composedPath?.()??[y?.target],O=p?b[0]:_e(y);if(!(!e||!g(y,O))){if(n||i){const T=Ao(n,i);e.addEventListener(Ou,T,{once:!0})}Nu(e,Ou,{bubbles:!1,cancelable:!0,detail:{originalEvent:y,contextmenu:!1,focusable:Rt(O),target:O}})}})}return Tc()||(v.add(ce(l,"focusin",k,!0)),v.add(d.addEventListener("focusin",k,!0)),v.add(u.addEventListener("focusin",k,!0))),()=>{clearTimeout(x),f.forEach(y=>y()),v.forEach(y=>y())}}function Pu(e,t){const{defer:r}=t,n=r?W:i=>i(),o=[];return o.push(n(()=>{const i=typeof e=="function"?e():e;o.push(Cx(i,t))})),()=>{o.forEach(i=>i?.())}}function Nu(e,t,r){const n=e.ownerDocument.defaultView||window,o=new n.CustomEvent(t,r);return e.dispatchEvent(o)}function kx(e,t){const r=n=>{n.key==="Escape"&&(n.isComposing||t?.(n))};return ce(Fe(e),"keydown",r,{capture:!0})}var Au="layer:request-dismiss",Ue={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){const t=this.indexOf(e),r=this.topMostPointerBlockingLayer()?this.indexOf(this.topMostPointerBlockingLayer()?.node):-1;return tt.type===e)},getNestedLayersByType(e,t){const r=this.indexOf(e);return r===-1?[]:this.layers.slice(r+1).filter(n=>n.type===t)},getParentLayerOfType(e,t){const r=this.indexOf(e);if(!(r<=0))return this.layers.slice(0,r).reverse().find(n=>n.type===t)},countNestedLayersOfType(e,t){return this.getNestedLayersByType(e,t).length},isInNestedLayer(e,t){return this.getNestedLayers(e).some(r=>Vt(r.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>Vt(t,e))},add(e){this.layers.push(e),this.syncLayers()},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(tUe.dismiss(n.node,e)),this.layers.splice(t,1),this.syncLayers())},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},syncLayers(){this.layers.forEach((e,t)=>{e.node.style.setProperty("--layer-index",`${t}`),e.node.removeAttribute("data-nested"),e.node.removeAttribute("data-has-nested"),this.getParentLayerOfType(e.node,e.type)&&e.node.setAttribute("data-nested",e.type);const n=this.countNestedLayersOfType(e.node,e.type);n>0&&e.node.setAttribute("data-has-nested",e.type),e.node.style.setProperty("--nested-layer-count",`${n}`)})},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e,t){const r=this.indexOf(e);if(r===-1)return;const n=this.layers[r];Ex(e,Au,o=>{n.requestDismiss?.(o),o.defaultPrevented||n?.dismiss()}),wx(e,Au,{originalLayer:e,targetLayer:t,originalIndex:r,targetIndex:t?this.indexOf(t):-1}),this.syncLayers()},clear(){this.remove(this.layers[0].node)}};function wx(e,t,r){const n=e.ownerDocument.defaultView||window,o=new n.CustomEvent(t,{cancelable:!0,bubbles:!0,detail:r});return e.dispatchEvent(o)}function Ex(e,t,r){e.addEventListener(t,r,{once:!0})}var Vu;function Ru(){Ue.layers.forEach(({node:e})=>{e.style.pointerEvents=Ue.isBelowPointerBlockingLayer(e)?"none":"auto"})}function Ox(e){e.style.pointerEvents=""}function Ix(e,t){const r=Fe(e),n=[];return Ue.hasPointerBlockingLayer()&&!r.body.hasAttribute("data-inert")&&(Vu=document.body.style.pointerEvents,queueMicrotask(()=>{r.body.style.pointerEvents="none",r.body.setAttribute("data-inert","")})),t?.forEach(o=>{const[i,s]=Ob(()=>{const a=o();return ke(a)?a:null},{timeout:1e3});i.then(a=>n.push(jo(a,{pointerEvents:"auto"}))),n.push(s)}),()=>{Ue.hasPointerBlockingLayer()||(queueMicrotask(()=>{r.body.style.pointerEvents=Vu,r.body.removeAttribute("data-inert"),r.body.style.length===0&&r.body.removeAttribute("style")}),n.forEach(o=>o()))}}function Tx(e,t){const{warnOnMissingNode:r=!0}=t;if(r&&!e){ar("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:n,onRequestDismiss:o,pointerBlocking:i,exclude:s,debug:a,type:l="dialog"}=t,c={dismiss:n,node:e,type:l,pointerBlocking:i,requestDismiss:o};Ue.add(c),Ru();function u(m){const v=_e(m.detail.originalEvent);Ue.isBelowPointerBlockingLayer(e)||Ue.isInBranch(v)||(t.onPointerDownOutside?.(m),t.onInteractOutside?.(m),!m.defaultPrevented&&(a&&console.log("onPointerDownOutside:",m.detail.originalEvent),n?.()))}function d(m){const v=_e(m.detail.originalEvent);Ue.isInBranch(v)||(t.onFocusOutside?.(m),t.onInteractOutside?.(m),!m.defaultPrevented&&(a&&console.log("onFocusOutside:",m.detail.originalEvent),n?.()))}function g(m){Ue.isTopMost(e)&&(t.onEscapeKeyDown?.(m),!m.defaultPrevented&&n&&(m.preventDefault(),n()))}function f(m){if(!e)return!1;const v=typeof s=="function"?s():s,x=Array.isArray(v)?v:[v],k=t.persistentElements?.map(y=>y()).filter(ke);return k&&x.push(...k),x.some(y=>Vt(y,m))||Ue.isInNestedLayer(e,m)}const p=[i?Ix(e,t.persistentElements):void 0,kx(e,g),Pu(e,{exclude:f,onFocusOutside:d,onPointerDownOutside:u,defer:t.defer})];return()=>{Ue.remove(e),Ru(),Ox(e),p.forEach(m=>m?.())}}function sn(e,t){const{defer:r}=t,n=r?W:i=>i(),o=[];return o.push(n(()=>{const i=Pt(e)?e():e;o.push(Tx(i,t))})),()=>{o.forEach(i=>i?.())}}function Px(e,t={}){const{defer:r}=t,n=r?W:i=>i(),o=[];return o.push(n(()=>{const i=Pt(e)?e():e;if(!i){ar("[@zag-js/dismissable] branch node is `null` or `undefined`");return}Ue.addBranch(i),o.push(()=>{Ue.removeBranch(i)})})),()=>{o.forEach(i=>i?.())}}var _u=$("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"]);_u.build();var Nx=e=>e.ids?.hiddenInput??`color-picker:${e.id}:hidden-input`,Ax=e=>e.ids?.control??`color-picker:${e.id}:control`,Vx=e=>e.ids?.trigger??`color-picker:${e.id}:trigger`,Rx=e=>e.ids?.content??`color-picker:${e.id}:content`,_x=e=>e.ids?.positioner??`color-picker:${e.id}:positioner`,Lx=e=>e.ids?.formatSelect??`color-picker:${e.id}:format-select`,Fx=e=>e.ids?.area??`color-picker:${e.id}:area`,zx=e=>e.ids?.areaThumb??`color-picker:${e.id}:area-thumb`,Dx=(e,t)=>e.ids?.channelSliderTrack?.(t)??`color-picker:${e.id}:slider-track:${t}`,Mx=(e,t)=>e.ids?.channelSliderThumb?.(t)??`color-picker:${e.id}:slider-thumb:${t}`,si=e=>e.getById(Rx(e)),$x=e=>e.getById(zx(e)),Wx=(e,t)=>e.getById(Mx(e,t)),Bx=e=>e.getById(Lx(e)),Lu=e=>e.getById(Nx(e)),Hx=e=>e.getById(Fx(e)),Ux=(e,t,r)=>{const n=Hx(e);if(!n)return;const{getPercentValue:o}=Wc(t,n);return{x:o({dir:r,orientation:"horizontal"}),y:o({orientation:"vertical"})}},jx=e=>e.getById(Ax(e)),ua=e=>e.getById(Vx(e)),Gx=e=>e.getById(_x(e)),qx=(e,t)=>e.getById(Dx(e,t)),Kx=(e,t,r,n)=>{const o=qx(e,r);if(!o)return;const{getPercentValue:i}=Wc(t,o);return{x:i({dir:n,orientation:"horizontal"}),y:i({orientation:"vertical"})}},Yx=e=>[...Qr(si(e),"input[data-channel]"),...Qr(jx(e),"input[data-channel]")];function Xx(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 r=e.getFormat()==="hsla";switch(t){case"hue":return r?e.toFormat("hsla").getChannelValue("hue").toString():e.toFormat("hsba").getChannelValue("hue").toString();case"saturation":return r?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 Fu=e=>Qo(e),Qx=/^[0-9a-fA-F]{3,8}$/;function Jx(e){return Qx.test(e)}function Zx(e){return e.startsWith("#")?e:Jx(e)?`#${e}`:e}var{and:e1}=_t();e1("isOpenControlled","closeOnSelect");function zu(e,t,r){const n=Yx(e);W(()=>{n.forEach(o=>{const i=o.dataset.channel;cr(o,Xx(r||t,i))})})}function t1(e,t){const r=Bx(e);r&&W(()=>cr(r,t))}M()(["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"]),M()(["xChannel","yChannel"]),M()(["channel","orientation"]),M()(["value","disabled"]),M()(["value","respectAlpha"]),M()(["size"]);var ai="__live-region__";function r1(e={}){const{level:t="polite",document:r=document,root:n,delay:o=0}=e,i=r.defaultView??window,s=n??r.body;function a(c,u){r.getElementById(ai)?.remove(),u=u??o;const g=r.createElement("span");g.id=ai,g.dataset.liveAnnouncer="true";const f=t!=="assertive"?"status":"alert";g.setAttribute("aria-live",t),g.setAttribute("role",f),Object.assign(g.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}),s.appendChild(g),i.setTimeout(()=>{g.textContent=c},u)}function l(){r.getElementById(ai)?.remove()}return{announce:a,destroy:l,toJSON(){return ai}}}var Du=$("splitter").parts("root","panel","resizeTrigger","resizeTriggerIndicator");Du.build(),M()(["dir","getRootNode","id","ids","onResize","onResizeStart","onResizeEnd","onCollapse","onExpand","orientation","size","defaultSize","panels","keyboardResizeBy","nonce"]),M()(["id"]),M()(["disabled","id"]);const[Mu,n1]=mt({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:""}),$u=e=>Zr()(e,["lazyMount","unmountOnExit"]);var Wu=$("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");Wu.build();var Bu=e=>e.ids?.root??`accordion:${e.id}`,Hu=(e,t)=>e.ids?.itemTrigger?.(t)??`accordion:${e.id}:trigger:${t}`,o1=e=>e.getById(Bu(e)),li=e=>{const r=`[data-controls][data-ownedby='${CSS.escape(Bu(e))}']:not([disabled])`;return Qr(o1(e),r)},i1=e=>Pn(li(e)),s1=e=>Is(li(e)),a1=(e,t)=>Hc(li(e),Hu(e,t)),l1=(e,t)=>Uc(li(e),Hu(e,t)),{and:c1,not:u1}=_t();c1("isExpanded","canToggle"),u1("isExpanded"),M()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]),M()(["value","disabled"]);var Hn=(e,t)=>({x:e,y:t});function d1(e){const{x:t,y:r,width:n,height:o}=e,i=t+n/2,s=r+o/2;return{x:t,y:r,width:n,height:o,minX:t,minY:r,maxX:t+n,maxY:r+o,midX:i,midY:s,center:Hn(i,s)}}function h1(e){const t=Hn(e.minX,e.minY),r=Hn(e.maxX,e.minY),n=Hn(e.maxX,e.maxY),o=Hn(e.minX,e.maxY);return{top:t,right:r,bottom:n,left:o}}function f1(e,t){const r=d1(e),{top:n,right:o,left:i,bottom:s}=h1(r),[a]=t.split("-");return{top:[i,n,o,s],right:[n,o,s,i],bottom:[n,i,s,o],left:[o,n,i,s]}[a]}function g1(e,t){const{x:r,y:n}=t;let o=!1;for(let i=0,s=e.length-1;in!=u>n&&r<(c-a)*(n-l)/(u-l)+a&&(o=!o)}return o}var Uu=$("avatar").parts("root","image","fallback");Uu.build(),M()(["dir","id","ids","onStatusChange","getRootNode"]);var an=new WeakMap,ci=new WeakMap,ui={},da=0,ju=e=>e&&(e.host||ju(e.parentNode)),p1=(e,t)=>t.map(r=>{if(e.contains(r))return r;const n=ju(r);return n&&e.contains(n)?n:(console.error("[zag-js > ariaHidden] target",r,"in not contained inside",e,". Doing nothing"),null)}).filter(r=>!!r),m1=new Set(["script","output","status","next-route-announcer"]),v1=e=>m1.has(e.localName)||e.role==="status"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),b1=(e,t)=>{const{parentNode:r,markerName:n,controlAttribute:o,followControlledElements:i=!0}=t,s=p1(r,Array.isArray(e)?e:[e]);ui[n]||(ui[n]=new WeakMap);const a=ui[n],l=[],c=new Set,u=new Set(s),d=f=>{!f||c.has(f)||(c.add(f),d(f.parentNode))};s.forEach(f=>{d(f),i&&ke(f)&&Oc(f,p=>{d(p)})});const g=f=>{!f||u.has(f)||Array.prototype.forEach.call(f.children,p=>{if(c.has(p))g(p);else try{if(v1(p))return;const v=p.getAttribute(o)==="true",x=(an.get(p)||0)+1,k=(a.get(p)||0)+1;an.set(p,x),a.set(p,k),l.push(p),x===1&&v&&ci.set(p,!0),k===1&&p.setAttribute(n,""),v||p.setAttribute(o,"true")}catch(m){console.error("[zag-js > ariaHidden] cannot operate on ",p,m)}})};return g(r),c.clear(),da++,()=>{l.forEach(f=>{const p=an.get(f)-1,m=a.get(f)-1;an.set(f,p),a.set(f,m),p||(ci.has(f)||f.removeAttribute(o),ci.delete(f)),m||f.removeAttribute(n)}),da--,da||(an=new WeakMap,an=new WeakMap,ci=new WeakMap,ui={})}},y1=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,x1=(e,t=y1(e),r="data-aria-hidden",n=!0)=>{if(t)return b1(e,{parentNode:t,markerName:r,controlAttribute:"aria-hidden",followControlledElements:n})},S1=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function C1(e,t={}){const{defer:r=!0}=t,n=r?S1:i=>i(),o=[];return o.push(n(()=>{const s=(typeof e=="function"?e():e).filter(Boolean);s.length!==0&&o.push(x1(s))})),()=>{o.forEach(i=>i?.())}}var k1=Object.defineProperty,w1=(e,t,r)=>t in e?k1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,de=(e,t,r)=>w1(e,typeof t!="symbol"?t+"":t,r),Gu={activateTrap(e,t){if(e.length>0){const n=e[e.length-1];n!==t&&n.pause()}const r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}},E1=[],O1=class{constructor(e,t){de(this,"trapStack"),de(this,"config"),de(this,"doc"),de(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),de(this,"portalContainers",new Set),de(this,"listenerCleanups",[]),de(this,"handleFocus",n=>{const o=_e(n),i=this.findContainerIndex(o,n)>=0;if(i||Lo(o))i&&(this.state.mostRecentlyFocusedNode=o);else{n.stopImmediatePropagation();let s,a=!0;if(this.state.mostRecentlyFocusedNode)if(Vn(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=>Vn(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}),de(this,"handlePointerDown",n=>{const o=_e(n);if(!(this.findContainerIndex(o,n)>=0)){if(jn(this.config.clickOutsideDeactivates,n)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}jn(this.config.allowOutsideClick,n)||n.preventDefault()}}),de(this,"handleClick",n=>{const o=_e(n);this.findContainerIndex(o,n)>=0||jn(this.config.clickOutsideDeactivates,n)||jn(this.config.allowOutsideClick,n)||(n.preventDefault(),n.stopImmediatePropagation())}),de(this,"handleTabKey",n=>{if(this.config.isKeyForward(n)||this.config.isKeyBackward(n)){this.state.recentNavEvent=n;const o=this.config.isKeyBackward(n),i=this.findNextNavNode({event:n,isBackward:o});if(!i)return;Un(n)&&n.preventDefault(),this.tryFocus(i)}}),de(this,"handleEscapeKey",n=>{I1(n)&&jn(this.config.escapeDeactivates,n)!==!1&&(n.preventDefault(),this.deactivate())}),de(this,"_mutationObserver"),de(this,"setupMutationObserver",()=>{const n=this.doc.defaultView||window;this._mutationObserver=new n.MutationObserver(o=>{o.some(a=>Array.from(a.removedNodes).some(c=>c===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode()),o.some(a=>a.type==="attributes"&&(a.attributeName==="aria-controls"||a.attributeName==="aria-expanded")?!0:a.type==="childList"&&a.addedNodes.length>0?Array.from(a.addedNodes).some(l=>{if(l.nodeType!==Node.ELEMENT_NODE)return!1;const c=l;return A0(c)?!0:c.id&&!this.state.containers.some(u=>u.contains(c))?V0(c):!1}):!1)&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())})}),de(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&(this.state.containers.map(n=>{this._mutationObserver?.observe(n,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}),this.portalContainers.forEach(n=>{this.observePortalContainer(n)}))}),de(this,"getInitialFocusNode",()=>{let n=this.getNodeForOption("initialFocus",{hasFallback:!0});if(n===!1)return!1;if(n===void 0||n&&!Rt(n)){const o=An(this.doc);if(o&&this.findContainerIndex(o)>=0)n=o;else{const i=this.state.tabbableGroups[0];n=i&&i.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else n===null&&(n=this.getNodeForOption("fallbackFocus"));if(!n)throw new Error("Your focus-trap needs to have at least one focusable element");return n.isConnected||(n=this.getNodeForOption("fallbackFocus")),n}),de(this,"tryFocus",n=>{if(n!==!1&&n!==An(this.doc)){if(!n||!n.focus){this.tryFocus(this.getInitialFocusNode());return}n.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=n,T1(n)&&n.select()}}),de(this,"deactivate",n=>{if(!this.state.active)return this;const o={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...n};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),Gu.deactivateTrap(this.trapStack,this),this.portalContainers.clear();const i=this.getOption(o,"onDeactivate"),s=this.getOption(o,"onPostDeactivate"),a=this.getOption(o,"checkCanReturnFocus"),l=this.getOption(o,"returnFocus","returnFocusOnDeactivate");i?.();const c=()=>{qu(()=>{if(l){const u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(u)}s?.()})};if(l&&a){const u=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return a(u).then(c,c),this}return c(),this}),de(this,"pause",n=>{if(this.state.paused||!this.state.active)return this;const o=this.getOption(n,"onPause"),i=this.getOption(n,"onPostPause");return this.state.paused=!0,o?.(),this.removeListeners(),this.updateObservedNodes(),i?.(),this}),de(this,"unpause",n=>{if(!this.state.paused||!this.state.active)return this;const o=this.getOption(n,"onUnpause"),i=this.getOption(n,"onPostUnpause");return this.state.paused=!1,o?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i?.(),this}),de(this,"updateContainerElements",n=>(this.state.containers=Array.isArray(n)?n.filter(Boolean):[n].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),de(this,"getReturnFocusNode",n=>{const o=this.getNodeForOption("setReturnFocus",{params:[n]});return o||(o===!1?!1:n)}),de(this,"getOption",(n,o,i)=>n&&n[o]!==void 0?n[o]:this.config[i||o]),de(this,"getNodeForOption",(n,{hasFallback:o=!1,params:i=[]}={})=>{let s=this.config[n];if(typeof s=="function"&&(s=s(...i)),s===!0&&(s=void 0),!s){if(s===void 0||s===!1)return s;throw new Error(`\`${n}\` 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(`\`${n}\` appears to be an invalid selector; error="${l.message}"`)}if(!a&&!o)throw new Error(`\`${n}\` as selector refers to no known node`)}return a}),de(this,"findNextNavNode",n=>{const{event:o,isBackward:i=!1}=n,s=n.target||_e(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?.container===s||Rt(s)&&!ur(s)&&!c?.nextTabbableNode(s,!1))&&(u=l),u>=0){const d=u===0?this.state.tabbableGroups.length-1:u-1,g=this.state.tabbableGroups[d];a=Vn(s)>=0?g.lastTabbableNode:g.lastDomTabbableNode}else Un(o)||(a=c?.nextTabbableNode(s,!1))}else{let u=this.state.tabbableGroups.findIndex(({lastTabbableNode:d})=>s===d);if(u<0&&(c?.container===s||Rt(s)&&!ur(s)&&!c?.nextTabbableNode(s))&&(u=l),u>=0){const d=u===this.state.tabbableGroups.length-1?0:u+1,g=this.state.tabbableGroups[d];a=Vn(s)>=0?g.firstTabbableNode:g.firstDomTabbableNode}else Un(o)||(a=c?.nextTabbableNode(s))}}else a=this.getNodeForOption("fallbackFocus");return a}),this.trapStack=t.trapStack||E1;const r={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward(n){return Un(n)&&!n.shiftKey},isKeyBackward(n){return Un(n)&&n.shiftKey},...t};this.doc=r.document||Fe(Array.isArray(e)?e[0]:e),this.config=r,this.updateContainerElements(e),this.setupMutationObserver()}addPortalContainer(e){const t=e.parentElement;t&&!this.portalContainers.has(t)&&(this.portalContainers.add(t),this.state.active&&!this.state.paused&&this.observePortalContainer(t))}observePortalContainer(e){this._mutationObserver?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}updatePortalContainers(){this.config.followControlledElements&&this.state.containers.forEach(e=>{T0(e).forEach(r=>{this.addPortalContainer(r)})})}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const r=typeof t?.composedPath=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:n,tabbableNodes:o})=>n.contains(e)||r?.includes(n)||o.find(i=>i===e)||this.isControlledElement(n,e))}isControlledElement(e,t){return this.config.followControlledElements?Ec(e,t):!1}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=Wo(e,{getShadowRoot:this.config.getShadowRoot}),r=zc(e,{getShadowRoot:this.config.getShadowRoot}),n=t[0],o=t[t.length-1],i=n,s=o;let a=!1;for(let c=0;c0){a=!0;break}function l(c,u=!0){const d=t.indexOf(c);if(d>=0)return t[d+(u?1:-1)];const g=r.indexOf(c);if(!(g<0)){if(u){for(let f=g+1;f=0;f--)if(ur(r[f]))return r[f]}}return{container:e,tabbableNodes:t,focusableNodes:r,posTabIndexesFound:a,firstTabbableNode:n,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 Gu.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?qu(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(ce(this.doc,"focusin",this.handleFocus,!0),ce(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),ce(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),ce(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),ce(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),ce(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"),r=this.getOption(e,"onPostActivate"),n=this.getOption(e,"checkCanFocusTrap");n||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=An(this.doc),t?.();const o=()=>{n&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),r?.()};return n?(n(this.state.containers.concat()).then(o,o),this):(o(),this)}},Un=e=>e.key==="Tab",jn=(e,...t)=>typeof e=="function"?e(...t):e,I1=e=>!e.isComposing&&e.key==="Escape",qu=e=>setTimeout(e,0),T1=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function P1(e,t={}){let r;const n=W(()=>{const o=typeof e=="function"?e():e;if(o){r=new O1(o,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:o,...t,document:Fe(o)});try{r.activate()}catch{}}});return function(){r?.deactivate(),n()}}var ha="data-scroll-lock";function N1(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function Ku(e){const r=Yr(e)?.scrollbarGutter;return r==="stable"||r?.startsWith("stable ")===!0}function A1(e){const t=e??document,r=t.defaultView??window,{documentElement:n,body:o}=t;if(o.hasAttribute(ha))return;const s=Ku(n)||Ku(o),a=r.innerWidth-n.clientWidth;o.setAttribute(ha,"");const l=()=>Sb(n,"--scrollbar-width",`${a}px`),c=N1(n),u=()=>{const f={overflow:"hidden"};return!s&&a>0&&(f[c]=`${a}px`),jo(o,f)},d=()=>{const{scrollX:f,scrollY:p,visualViewport:m}=r,v=m?.offsetLeft??0,x=m?.offsetTop??0,k={position:"fixed",overflow:"hidden",top:`${-(p-Math.floor(x))}px`,left:`${-(f-Math.floor(v))}px`,right:"0"};!s&&a>0&&(k[c]=`${a}px`);const y=jo(o,k);return()=>{y?.(),r.scrollTo({left:f,top:p,behavior:"instant"})}},g=[l(),zo()?d():u()];return()=>{g.forEach(f=>f?.()),o.removeAttribute(ha)}}var Yu=$("carousel").parts("root","itemGroup","item","control","nextTrigger","prevTrigger","indicatorGroup","indicator","autoplayTrigger","progressText");Yu.build(),M()(["dir","getRootNode","id","ids","loop","page","defaultPage","onPageChange","orientation","slideCount","slidesPerPage","slidesPerMove","spacing","padding","autoplay","allowMouseDrag","inViewThreshold","translations","snapType","autoSize","onDragStatusChange","onAutoplayStatusChange"]),M()(["index","readOnly"]),M()(["index","snapAlign"]);const V1=Yu.extendWith("progressText","autoplayIndicator");function R1(e){return!(e.metaKey||!Do()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var _1=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function L1(e,t,r){const n=r?_e(r):null,o=me(n);return e=e||n instanceof o.HTMLInputElement&&!_1.has(n?.type)||n instanceof o.HTMLTextAreaElement||n instanceof o.HTMLElement&&n.isContentEditable,!(e&&t==="keyboard"&&r instanceof o.KeyboardEvent&&!Reflect.has(F1,r.key))}var Xt=null,fa=new Set,di=new Map,fr=!1,ga=!1,F1={Tab:!0,Escape:!0};function hi(e,t){for(let r of fa)r(e,t)}function fi(e){fr=!0,R1(e)&&(Xt="keyboard",hi("keyboard",e))}function rt(e){Xt="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(fr=!0,hi("pointer",e))}function Xu(e){H0(e)&&(fr=!0,Xt="virtual")}function Qu(e){const t=_e(e);t===me(t)||t===Fe(t)||(!fr&&!ga&&(Xt="virtual",hi("virtual",e)),fr=!1,ga=!1)}function Ju(){fr=!1,ga=!0}function z1(e){if(typeof window>"u"||di.get(me(e)))return;const t=me(e),r=Fe(e);let n=t.HTMLElement.prototype.focus;function o(){Xt="virtual",hi("virtual",null),fr=!0,n.apply(this,arguments)}try{Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:o})}catch{}r.addEventListener("keydown",fi,!0),r.addEventListener("keyup",fi,!0),r.addEventListener("click",Xu,!0),t.addEventListener("focus",Qu,!0),t.addEventListener("blur",Ju,!1),typeof t.PointerEvent<"u"?(r.addEventListener("pointerdown",rt,!0),r.addEventListener("pointermove",rt,!0),r.addEventListener("pointerup",rt,!0)):(r.addEventListener("mousedown",rt,!0),r.addEventListener("mousemove",rt,!0),r.addEventListener("mouseup",rt,!0)),t.addEventListener("beforeunload",()=>{D1(e)},{once:!0}),di.set(t,{focus:n})}var D1=(e,t)=>{const r=me(e),n=Fe(e),o=di.get(r);if(o){try{Object.defineProperty(r.HTMLElement.prototype,"focus",{configurable:!0,value:o.focus})}catch{}n.removeEventListener("keydown",fi,!0),n.removeEventListener("keyup",fi,!0),n.removeEventListener("click",Xu,!0),r.removeEventListener("focus",Qu,!0),r.removeEventListener("blur",Ju,!1),typeof r.PointerEvent<"u"?(n.removeEventListener("pointerdown",rt,!0),n.removeEventListener("pointermove",rt,!0),n.removeEventListener("pointerup",rt,!0)):(n.removeEventListener("mousedown",rt,!0),n.removeEventListener("mousemove",rt,!0),n.removeEventListener("mouseup",rt,!0)),di.delete(r)}};function M1(){return Xt}function Zu(){return Xt==="keyboard"}function ed(e={}){const{isTextInput:t,autoFocus:r,onChange:n,root:o}=e;z1(o),n?.({isFocusVisible:r||Zu(),modality:Xt});const i=(s,a)=>{L1(!!t,s,a)&&n?.({isFocusVisible:Zu(),modality:s})};return fa.add(i),()=>{fa.delete(i)}}var td=$("checkbox").parts("root","label","control","indicator");td.build(),M()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const $1=td.extendWith("group"),[R5,pa]=mt({name:"FieldContext",hookName:"useFieldContext",providerName:"",strict:!1});var rd=$("clipboard").parts("root","control","trigger","indicator","input","label");rd.build(),M()(["getRootNode","id","ids","value","defaultValue","timeout","onStatusChange","onValueChange"]),M()(["copied"]);const W1=_u.extendWith("view");var B1=Object.defineProperty,H1=(e,t,r)=>t in e?B1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t,r)=>H1(e,typeof t!="symbol"?t+"":t,r),gi={itemToValue(e){return typeof e=="string"?e:sr(e)&&Nt(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:sr(e)&&Nt(e,"label")?e.label:gi.itemToValue(e)},isItemDisabled(e){return sr(e)&&Nt(e,"disabled")?!!e.disabled:!1}},gr=class hm{constructor(t){this.options=t,R(this,"items"),R(this,"indexMap",null),R(this,"copy",r=>new hm({...this.options,items:r??[...this.items]})),R(this,"isEqual",r=>We(this.items,r.items)),R(this,"setItems",r=>this.copy(r)),R(this,"getValues",(r=this.items)=>{const n=[];for(const o of r){const i=this.getItemValue(o);i!=null&&n.push(i)}return n}),R(this,"find",r=>{if(r==null)return null;const n=this.indexOf(r);return n!==-1?this.at(n):null}),R(this,"findMany",r=>{const n=[];for(const o of r){const i=this.find(o);i!=null&&n.push(i)}return n}),R(this,"at",r=>{if(!this.options.groupBy&&!this.options.groupSort)return this.items[r]??null;let n=0;const o=this.group();for(const[,i]of o)for(const s of i){if(n===r)return s;n++}return null}),R(this,"sortFn",(r,n)=>{const o=this.indexOf(r),i=this.indexOf(n);return(o??0)-(i??0)}),R(this,"sort",r=>[...r].sort(this.sortFn.bind(this))),R(this,"getItemValue",r=>r==null?null:this.options.itemToValue?.(r)??gi.itemToValue(r)),R(this,"getItemDisabled",r=>r==null?!1:this.options.isItemDisabled?.(r)??gi.isItemDisabled(r)),R(this,"stringifyItem",r=>r==null?null:this.options.itemToString?.(r)??gi.itemToString(r)),R(this,"stringify",r=>r==null?null:this.stringifyItem(this.find(r))),R(this,"stringifyItems",(r,n=", ")=>{const o=[];for(const i of r){const s=this.stringifyItem(i);s!=null&&o.push(s)}return o.join(n)}),R(this,"stringifyMany",(r,n)=>this.stringifyItems(this.findMany(r),n)),R(this,"has",r=>this.indexOf(r)!==-1),R(this,"hasItem",r=>r==null?!1:this.has(this.getItemValue(r))),R(this,"group",()=>{const{groupBy:r,groupSort:n}=this.options;if(!r)return[["",[...this.items]]];const o=new Map;this.items.forEach((s,a)=>{const l=r(s,a);o.has(l)||o.set(l,[]),o.get(l).push(s)});let i=Array.from(o.entries());return n&&i.sort(([s],[a])=>{if(typeof n=="function")return n(s,a);if(Array.isArray(n)){const l=n.indexOf(s),c=n.indexOf(a);return l===-1?1:c===-1?-1:l-c}return n==="asc"?s.localeCompare(a):n==="desc"?a.localeCompare(s):0}),i}),R(this,"getNextValue",(r,n=1,o=!1)=>{let i=this.indexOf(r);if(i===-1)return null;for(i=o?Math.min(i+n,this.size-1):i+n;i<=this.size&&this.getItemDisabled(this.at(i));)i++;return this.getItemValue(this.at(i))}),R(this,"getPreviousValue",(r,n=1,o=!1)=>{let i=this.indexOf(r);if(i===-1)return null;for(i=o?Math.max(i-n,0):i-n;i>=0&&this.getItemDisabled(this.at(i));)i--;return this.getItemValue(this.at(i))}),R(this,"indexOf",r=>{if(r==null)return-1;if(!this.options.groupBy&&!this.options.groupSort)return this.items.findIndex(n=>this.getItemValue(n)===r);if(!this.indexMap){this.indexMap=new Map;let n=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,n),n++}}return this.indexMap.get(r)??-1}),R(this,"getByText",(r,n)=>{const o=n!=null?this.indexOf(n):-1,i=r.length===1;for(let s=0;s{const{state:o,currentValue:i,timeout:s=350}=n,a=o.keysSoFar+r,c=a.length>1&&Array.from(a).every(p=>p===a[0])?a[0]:a,u=this.getByText(c,i),d=this.getItemValue(u);function g(){clearTimeout(o.timer),o.timer=-1}function f(p){o.keysSoFar=p,g(),p!==""&&(o.timer=+setTimeout(()=>{f(""),g()},s))}return f(a),d}),R(this,"update",(r,n)=>{let o=this.indexOf(r);return o===-1?this:this.copy([...this.items.slice(0,o),n,...this.items.slice(o+1)])}),R(this,"upsert",(r,n,o="append")=>{let i=this.indexOf(r);return i===-1?(o==="append"?this.append:this.prepend)(n):this.copy([...this.items.slice(0,i),n,...this.items.slice(i+1)])}),R(this,"insert",(r,...n)=>this.copy(Gn(this.items,r,...n))),R(this,"insertBefore",(r,...n)=>{let o=this.indexOf(r);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(Gn(this.items,o,...n))}),R(this,"insertAfter",(r,...n)=>{let o=this.indexOf(r);if(o===-1)if(this.items.length===0)o=0;else return this;return this.copy(Gn(this.items,o+1,...n))}),R(this,"prepend",(...r)=>this.copy(Gn(this.items,0,...r))),R(this,"append",(...r)=>this.copy(Gn(this.items,this.items.length,...r))),R(this,"filter",r=>{const n=this.items.filter((o,i)=>r(this.stringifyItem(o),i,o));return this.copy(n)}),R(this,"remove",(...r)=>{const n=r.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:!n.includes(i)}))}),R(this,"move",(r,n)=>{const o=this.indexOf(r);return o===-1?this:this.copy(pi(this.items,[o],n))}),R(this,"moveBefore",(r,...n)=>{let o=this.items.findIndex(s=>this.getItemValue(s)===r);if(o===-1)return this;let i=n.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(pi(this.items,i,o))}),R(this,"moveAfter",(r,...n)=>{let o=this.items.findIndex(s=>this.getItemValue(s)===r);if(o===-1)return this;let i=n.map(s=>this.items.findIndex(a=>this.getItemValue(a)===s)).sort((s,a)=>s-a);return this.copy(pi(this.items,i,o+1))}),R(this,"reorder",(r,n)=>this.copy(pi(this.items,[r],n))),R(this,"compareValue",(r,n)=>{const o=this.indexOf(r),i=this.indexOf(n);return oi?1:0}),R(this,"range",(r,n)=>{let o=[],i=r;for(;i!=null;){if(this.find(i)&&o.push(i),i===n)return o;i=this.getNextValue(i)}return[]}),R(this,"getValueRange",(r,n)=>r&&n?this.compareValue(r,n)<=0?this.range(r,n):this.range(n,r):[]),R(this,"toString",()=>{let r="";for(const n of this.items){const o=this.getItemValue(n),i=this.stringifyItem(n),s=this.getItemDisabled(n),a=[o,i,s].filter(Boolean).join(":");r+=a+","}return r}),R(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}},U1=(e,t)=>!!e?.toLowerCase().startsWith(t.toLowerCase());function Gn(e,t,...r){return[...e.slice(0,t),...r,...e.slice(t)]}function pi(e,t,r){t=[...t].sort((o,i)=>o-i);const n=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 r=Math.max(0,r-t.filter(o=>o{const r=new ss([...this]);return this.sync(r)}),R(this,"sync",r=>(r.selectionMode=this.selectionMode,r.deselectable=this.deselectable,r)),R(this,"isEmpty",()=>this.size===0),R(this,"isSelected",r=>this.selectionMode==="none"||r==null?!1:this.has(r)),R(this,"canSelect",(r,n)=>this.selectionMode!=="none"||!r.getItemDisabled(r.find(n))),R(this,"firstSelectedValue",r=>{let n=null;for(let o of this)(!n||r.compareValue(o,n)<0)&&(n=o);return n}),R(this,"lastSelectedValue",r=>{let n=null;for(let o of this)(!n||r.compareValue(o,n)>0)&&(n=o);return n}),R(this,"extendSelection",(r,n,o)=>{if(this.selectionMode==="none")return this;if(this.selectionMode==="single")return this.replaceSelection(r,o);const i=this.copy(),s=Array.from(this).pop();for(let a of r.getValueRange(n,s??o))i.delete(a);for(let a of r.getValueRange(o,n))this.canSelect(r,a)&&i.add(a);return i}),R(this,"toggleSelection",(r,n)=>{if(this.selectionMode==="none")return this;if(this.selectionMode==="single"&&!this.isSelected(n))return this.replaceSelection(r,n);const o=this.copy();return o.has(n)?o.delete(n):o.canSelect(r,n)&&o.add(n),o}),R(this,"replaceSelection",(r,n)=>{if(this.selectionMode==="none")return this;if(n==null)return this;if(!this.canSelect(r,n))return this;const o=new ss([n]);return this.sync(o)}),R(this,"setSelection",r=>{if(this.selectionMode==="none")return this;let n=new ss;for(let o of r)if(o!=null&&(n.add(o),this.selectionMode==="single"))break;return this.sync(n)}),R(this,"clearSelection",()=>{const r=this.copy();return r.deselectable&&r.size>0&&r.clear(),r}),R(this,"select",(r,n,o)=>this.selectionMode==="none"?this:this.selectionMode==="single"?this.isSelected(n)&&this.deselectable?this.toggleSelection(r,n):this.replaceSelection(r,n):this.selectionMode==="multiple"||o?this.toggleSelection(r,n):this.replaceSelection(r,n)),R(this,"deselect",r=>{const n=this.copy();return n.delete(r),n}),R(this,"isEqual",r=>We(Array.from(this),Array.from(r)))}};function nd(e,t,r){for(let n=0;nt[r])return 1}return e.length-t.length}function q1(e){return e.sort(od)}function K1(e,t){let r;return et(e,{...t,onEnter:(n,o)=>{if(t.predicate(n,o))return r=n,"stop"}}),r}function Y1(e,t){const r=[];return et(e,{onEnter:(n,o)=>{t.predicate(n,o)&&r.push(n)},getChildren:t.getChildren}),r}function id(e,t){let r;return et(e,{onEnter:(n,o)=>{if(t.predicate(n,o))return r=[...o],"stop"},getChildren:t.getChildren}),r}function X1(e,t){let r=t.initialResult;return et(e,{...t,onEnter:(n,o)=>{r=t.nextResult(r,n,o)}}),r}function Q1(e,t){return X1(e,{...t,initialResult:[],nextResult:(r,n,o)=>(r.push(...t.transform(n,o)),r)})}function J1(e,t){const{predicate:r,create:n,getChildren:o}=t,i=(s,a)=>{const l=o(s,a),c=[];l.forEach((f,p)=>{const m=[...a,p],v=i(f,m);v&&c.push(v)});const u=a.length===0,d=r(s,a),g=c.length>0;return u||d||g?n(s,c,a):null};return i(e,[])||n(e,[],[])}function Z1(e,t){const r=[];let n=0;const o=new Map,i=new Map;return et(e,{getChildren:t.getChildren,onEnter:(s,a)=>{o.has(s)||o.set(s,n++);const l=t.getChildren(s,a);l.forEach(f=>{i.has(f)||i.set(f,s),o.has(f)||o.set(f,n++)});const c=l.length>0?l.map(f=>o.get(f)):void 0,u=i.get(s),d=u?o.get(u):void 0,g=o.get(s);r.push({...s,_children:c,_parent:d,_index:g})}}),r}function eS(e,t){return{type:"insert",index:e,nodes:t}}function tS(e){return{type:"remove",indexes:e}}function ma(){return{type:"replace"}}function sd(e){return[e.slice(0,-1),e[e.length-1]]}function ad(e,t,r=new Map){const[n,o]=sd(e);for(let s=n.length-1;s>=0;s--){const a=n.slice(0,s).join();r.get(a)?.type!=="remove"&&r.set(a,ma())}const i=r.get(n.join());return i?.type==="remove"?r.set(n.join(),{type:"removeThenInsert",removeIndexes:i.indexes,insertIndex:o,insertNodes:t}):r.set(n.join(),eS(o,t)),r}function ld(e){const t=new Map,r=new Map;for(const n of e){const o=n.slice(0,-1).join(),i=r.get(o)??[];i.push(n[n.length-1]),r.set(o,i.sort((s,a)=>s-a))}for(const n of e)for(let o=n.length-2;o>=0;o--){const i=n.slice(0,o).join();t.has(i)||t.set(i,ma())}for(const[n,o]of r)t.set(n,tS(o));return t}function rS(e,t){const r=new Map,[n,o]=sd(e);for(let i=n.length-1;i>=0;i--){const s=n.slice(0,i).join();r.set(s,ma())}return r.set(n.join(),{type:"removeThenInsert",removeIndexes:[o],insertIndex:o,insertNodes:[t]}),r}function mi(e,t,r){return nS(e,{...r,getChildren:(n,o)=>{const i=o.join();switch(t.get(i)?.type){case"replace":case"remove":case"removeThenInsert":case"insert":return r.getChildren(n,o);default:return[]}},transform:(n,o,i)=>{const s=i.join(),a=t.get(s);switch(a?.type){case"remove":return r.create(n,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(n,r[s]??[],o),l=i.slice(0,-1).join(),c=r[l]??[];c.push(a),r[l]=c}}),r[""][0]}function oS(e,t){const{nodes:r,at:n}=t;if(n.length===0)throw new Error("Can't insert nodes at the root");const o=ad(n,r);return mi(e,o,t)}function iS(e,t){if(t.at.length===0)return t.node;const r=rS(t.at,t.node);return mi(e,r,t)}function sS(e,t){if(t.indexPaths.length===0)return e;for(const n of t.indexPaths)if(n.length===0)throw new Error("Can't remove the root node");const r=ld(t.indexPaths);return mi(e,r,t)}function aS(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 r=G1(t.indexPaths),n=r.map(i=>nd(e,i,t)),o=ad(t.to,n,ld(r));return mi(e,o,t)}function et(e,t){const{onEnter:r,onLeave:n,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=r?.(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.stateWe(this.rootNode,r.rootNode)),R(this,"getNodeChildren",r=>this.options.nodeToChildren?.(r)??ln.nodeToChildren(r)??[]),R(this,"resolveIndexPath",r=>typeof r=="string"?this.getIndexPath(r):r),R(this,"resolveNode",r=>{const n=this.resolveIndexPath(r);return n?this.at(n):void 0}),R(this,"getNodeChildrenCount",r=>this.options.nodeToChildrenCount?.(r)??ln.nodeToChildrenCount(r)),R(this,"getNodeValue",r=>this.options.nodeToValue?.(r)??ln.nodeToValue(r)),R(this,"getNodeDisabled",r=>this.options.isNodeDisabled?.(r)??ln.isNodeDisabled(r)),R(this,"stringify",r=>{const n=this.findNode(r);return n?this.stringifyNode(n):null}),R(this,"stringifyNode",r=>this.options.nodeToString?.(r)??ln.nodeToString(r)),R(this,"getFirstNode",(r=this.rootNode)=>{let n;return et(r,{getChildren:this.getNodeChildren,onEnter:(o,i)=>{if(!n&&i.length>0&&!this.getNodeDisabled(o))return n=o,"stop"}}),n}),R(this,"getLastNode",(r=this.rootNode,n={})=>{let o;return et(r,{getChildren:this.getNodeChildren,onEnter:(i,s)=>{if(!this.isSameNode(i,r)){if(n.skip?.({value:this.getNodeValue(i),node:i,indexPath:s}))return"skip";s.length>0&&!this.getNodeDisabled(i)&&(o=i)}}}),o}),R(this,"at",r=>nd(this.rootNode,r,{getChildren:this.getNodeChildren})),R(this,"findNode",(r,n=this.rootNode)=>K1(n,{getChildren:this.getNodeChildren,predicate:o=>this.getNodeValue(o)===r})),R(this,"findNodes",(r,n=this.rootNode)=>{const o=new Set(r.filter(i=>i!=null));return Y1(n,{getChildren:this.getNodeChildren,predicate:i=>o.has(this.getNodeValue(i))})}),R(this,"sort",r=>r.reduce((n,o)=>{const i=this.getIndexPath(o);return i&&n.push({value:o,indexPath:i}),n},[]).sort((n,o)=>od(n.indexPath,o.indexPath)).map(({value:n})=>n)),R(this,"getIndexPath",r=>id(this.rootNode,{getChildren:this.getNodeChildren,predicate:n=>this.getNodeValue(n)===r})),R(this,"getValue",r=>{const n=this.at(r);return n?this.getNodeValue(n):void 0}),R(this,"getValuePath",r=>{if(!r)return[];const n=[];let o=[...r];for(;o.length>0;){const i=this.at(o);i&&n.unshift(this.getNodeValue(i)),o.pop()}return n}),R(this,"getDepth",r=>id(this.rootNode,{getChildren:this.getNodeChildren,predicate:o=>this.getNodeValue(o)===r})?.length??0),R(this,"isSameNode",(r,n)=>this.getNodeValue(r)===this.getNodeValue(n)),R(this,"isRootNode",r=>this.isSameNode(r,this.rootNode)),R(this,"contains",(r,n)=>!r||!n?!1:n.slice(0,r.length).every((o,i)=>r[i]===n[i])),R(this,"getNextNode",(r,n={})=>{let o=!1,i;return et(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{if(this.isRootNode(s))return;const l=this.getNodeValue(s);if(n.skip?.({value:l,node:s,indexPath:a}))return l===r&&(o=!0),"skip";if(o&&!this.getNodeDisabled(s))return i=s,"stop";l===r&&(o=!0)}}),i}),R(this,"getPreviousNode",(r,n={})=>{let o,i=!1;return et(this.rootNode,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{if(this.isRootNode(s))return;const l=this.getNodeValue(s);if(n.skip?.({value:l,node:s,indexPath:a}))return"skip";if(l===r)return i=!0,"stop";this.getNodeDisabled(s)||(o=s)}}),i?o:void 0}),R(this,"getParentNodes",r=>{const n=this.resolveIndexPath(r)?.slice();if(!n)return[];const o=[];for(;n.length>0;){n.pop();const i=this.at(n);i&&!this.isRootNode(i)&&o.unshift(i)}return o}),R(this,"getDescendantNodes",(r,n)=>{const o=this.resolveNode(r);if(!o)return[];const i=[];return et(o,{getChildren:this.getNodeChildren,onEnter:(s,a)=>{a.length!==0&&(!n?.withBranch&&this.isBranchNode(s)||i.push(s))}}),i}),R(this,"getDescendantValues",(r,n)=>this.getDescendantNodes(r,n).map(i=>this.getNodeValue(i))),R(this,"getParentIndexPath",r=>r.slice(0,-1)),R(this,"getParentNode",r=>{const n=this.resolveIndexPath(r);return n?this.at(this.getParentIndexPath(n)):void 0}),R(this,"visit",r=>{const{skip:n,...o}=r;et(this.rootNode,{...o,getChildren:this.getNodeChildren,onEnter:(i,s)=>{if(!this.isRootNode(i))return n?.({value:this.getNodeValue(i),node:i,indexPath:s})?"skip":o.onEnter?.(i,s)}})}),R(this,"getPreviousSibling",r=>{const n=this.getParentNode(r);if(!n)return;const o=this.getNodeChildren(n);let i=r[r.length-1];for(;--i>=0;){const s=o[i];if(!this.getNodeDisabled(s))return s}}),R(this,"getNextSibling",r=>{const n=this.getParentNode(r);if(!n)return;const o=this.getNodeChildren(n);let i=r[r.length-1];for(;++i{const n=this.getParentNode(r);return n?this.getNodeChildren(n):[]}),R(this,"getValues",(r=this.rootNode)=>Q1(r,{getChildren:this.getNodeChildren,transform:o=>[this.getNodeValue(o)]}).slice(1)),R(this,"isValidDepth",(r,n)=>n==null?!0:typeof n=="function"?n(r.length):r.length===n),R(this,"isBranchNode",r=>this.getNodeChildren(r).length>0||this.getNodeChildrenCount(r)!=null),R(this,"getBranchValues",(r=this.rootNode,n={})=>{let o=[];return et(r,{getChildren:this.getNodeChildren,onEnter:(i,s)=>{if(s.length===0)return;const a=this.getNodeValue(i);if(n.skip?.({value:a,node:i,indexPath:s}))return"skip";this.isBranchNode(i)&&this.isValidDepth(s,n.depth)&&o.push(this.getNodeValue(i))}}),o}),R(this,"flatten",(r=this.rootNode)=>Z1(r,{getChildren:this.getNodeChildren})),R(this,"_create",(r,n)=>this.getNodeChildren(r).length>0||n.length>0?{...r,children:n}:{...r}),R(this,"_insert",(r,n,o)=>this.copy(oS(r,{at:n,nodes:o,getChildren:this.getNodeChildren,create:this._create}))),R(this,"copy",r=>new fm({...this.options,rootNode:r})),R(this,"_replace",(r,n,o)=>this.copy(iS(r,{at:n,node:o,getChildren:this.getNodeChildren,create:this._create}))),R(this,"_move",(r,n,o)=>this.copy(aS(r,{indexPaths:n,to:o,getChildren:this.getNodeChildren,create:this._create}))),R(this,"_remove",(r,n)=>this.copy(sS(r,{indexPaths:n,getChildren:this.getNodeChildren,create:this._create}))),R(this,"replace",(r,n)=>this._replace(this.rootNode,r,n)),R(this,"remove",r=>this._remove(this.rootNode,r)),R(this,"insertBefore",(r,n)=>this.getParentNode(r)?this._insert(this.rootNode,r,n):void 0),R(this,"insertAfter",(r,n)=>{if(!this.getParentNode(r))return;const i=[...r.slice(0,-1),r[r.length-1]+1];return this._insert(this.rootNode,i,n)}),R(this,"move",(r,n)=>this._move(this.rootNode,r,n)),R(this,"filter",r=>{const n=J1(this.rootNode,{predicate:r,getChildren:this.getNodeChildren,create:this._create});return this.copy(n)}),R(this,"toJSON",()=>this.getValues(this.rootNode)),this.rootNode=t.rootNode}},ln={nodeToValue(e){return typeof e=="string"?e:sr(e)&&Nt(e,"value")?e.value:""},nodeToString(e){return typeof e=="string"?e:sr(e)&&Nt(e,"label")?e.label:ln.nodeToValue(e)},isNodeDisabled(e){return sr(e)&&Nt(e,"disabled")?!!e.disabled:!1},nodeToChildren(e){return e.children},nodeToChildrenCount(e){if(sr(e)&&Nt(e,"childrenCount"))return e.childrenCount}};const lS=e=>new gr(e);var dd=$("combobox").parts("root","clearTrigger","content","control","input","item","itemGroup","itemGroupLabel","itemIndicator","itemText","label","list","positioner","trigger");dd.build();var hd=e=>new gr(e);hd.empty=()=>new gr({items:[]});var cS=e=>e.ids?.control??`combobox:${e.id}:control`,uS=e=>e.ids?.input??`combobox:${e.id}:input`,dS=e=>e.ids?.content??`combobox:${e.id}:content`,hS=e=>e.ids?.positioner??`combobox:${e.id}:popper`,fS=e=>e.ids?.trigger??`combobox:${e.id}:toggle-btn`,gS=e=>e.ids?.clearTrigger??`combobox:${e.id}:clear-btn`,pr=e=>e.getById(dS(e)),qn=e=>e.getById(uS(e)),fd=e=>e.getById(hS(e)),gd=e=>e.getById(cS(e)),vi=e=>e.getById(fS(e)),pS=e=>e.getById(gS(e)),Kn=(e,t)=>{if(t==null)return null;const r=`[role=option][data-value="${CSS.escape(t)}"]`;return pb(pr(e),r)},pd=e=>{const t=qn(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},mS=e=>{const t=vi(e);e.isActiveElement(t)||t?.focus({preventScroll:!0})},{guards:vS,createMachine:bS,choose:yS}=Go(),{and:xe,not:tt}=vS;bS({props({props:e}){return{loopFocus:!0,openOnClick:!1,defaultValue:[],defaultInputValue:"",closeOnSelect:!e.multiple,allowCustomValue:!1,alwaysSubmitOnEnter:!1,inputBehavior:"none",selectionBehavior:e.multiple?"clear":"replace",openOnKeyPress:!0,openOnChange:!0,composite:!0,navigate({node:t}){Mc(t)},collection:hd.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:r,getEvent:n}){return{currentPlacement:t(()=>({defaultValue:void 0})),value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:We,hash(o){return o.join(",")},onChange(o){const i=r(),s=i.get("selectedItems"),a=e("collection"),l=o.map(c=>s.find(d=>a.getItemValue(d)===c)||a.find(c));i.set("selectedItems",l),e("onValueChange")?.({value:o,items:l})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(o){const i=e("collection").find(o);e("onHighlightChange")?.({highlightedValue:o,highlightedItem:i})}})),inputValue:t(()=>{let o=e("inputValue")||e("defaultInputValue");const i=e("value")||e("defaultValue");if(!o.trim()&&!e("multiple")){const s=e("collection").stringifyMany(i);o=At(e("selectionBehavior"),{preserve:o||s,replace:s,clear:""})}return{defaultValue:o,value:e("inputValue"),onChange(s){const a=n(),l=(a.previousEvent||a).src;e("onInputValueChange")?.({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:r,action:n,send:o}){r([()=>e.hash("value")],()=>{n(["syncSelectedItems"])}),r([()=>e.get("inputValue")],()=>{n(["syncInputValue"])}),r([()=>e.get("highlightedValue")],()=>{n(["syncHighlightedItem","autofillInputValue"])}),r([()=>t("open")],()=>{n(["toggleVisibility"])}),r([()=>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:yS([{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:xe("isOpenControlled","openOnChange"),actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{guard:"openOnChange",target:"suggesting",actions:["setInputValue","invokeOnOpen","highlightFirstItemIfNeeded"]},{actions:["setInputValue"]}],"LAYER.INTERACT_OUTSIDE":{target:"idle"},"INPUT.ESCAPE":{guard:xe("isCustomValue",tt("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:xe("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"],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:xe("autoComplete","isLastItemHighlighted"),actions:["clearHighlightedValue","scrollContentToTop"]},{actions:["highlightNextItem"]}],"INPUT.ARROW_UP":[{guard:xe("autoComplete","isFirstItemHighlighted"),actions:["clearHighlightedValue"]},{actions:["highlightPrevItem"]}],"INPUT.ENTER":[{guard:xe("isOpenControlled","isCustomValue",tt("hasHighlightedItem"),tt("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:xe("isCustomValue",tt("hasHighlightedItem"),tt("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:xe("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:xe("isOpenControlled","closeOnSelect"),actions:["selectItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectItem","invokeOnClose","setFinalFocus"]},{actions:["selectItem"]}],"LAYER.ESCAPE":[{guard:xe("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:xe("isOpenControlled","isCustomValue",tt("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:xe("isCustomValue",tt("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"],entry:["setInitialFocus"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["setFinalFocus"]},{target:"idle"}],CHILDREN_CHANGE:[{guard:xe("isHighlightedItemRemoved","hasCollectionItems","autoHighlight"),actions:["clearHighlightedValue","highlightFirstItem"]},{guard:"isHighlightedItemRemoved",actions:["clearHighlightedValue"]},{guard:"autoHighlight",actions:["highlightFirstItem"]}],"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:xe("isOpenControlled","isCustomValue",tt("hasHighlightedItem"),tt("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:xe("isCustomValue",tt("hasHighlightedItem"),tt("allowCustomValue")),target:"focused",actions:["revertInputValue","invokeOnClose"]},{guard:xe("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:xe("isOpenControlled","isCustomValue",tt("allowCustomValue")),actions:["revertInputValue","invokeOnClose"]},{guard:xe("isCustomValue",tt("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:xe("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 r=e("openOnChange");return zv(r)?r:!!r?.({inputValue:t.get("inputValue")})},restoreFocus:({event:e})=>{const t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null?!0:!!t},isChangeEvent:({event:e})=>e.previousEvent?.type==="INPUT.CHANGE",autoFocus:({prop:e})=>!!e("autoFocus"),isHighlightedItemRemoved:({prop:e,context:t})=>!e("collection").has(t.get("highlightedValue")),hasCollectionItems:({prop:e})=>e("collection").size>0},effects:{trackDismissableLayer({send:e,prop:t,scope:r}){return t("disableLayer")?void 0:sn(()=>pr(r),{type:"listbox",defer:!0,exclude:()=>[qn(r),vi(r),pS(r)],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})}})},trackPlacement({context:e,prop:t,scope:r}){const n=()=>gd(r)||vi(r),o=()=>fd(r);return e.set("currentPlacement",t("positioning").placement),ut(n,o,{...t("positioning"),defer:!0,onComplete(i){e.set("currentPlacement",i.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:r,event:n}){const o=qn(r);let i=[];const s=c=>{const u=n.current().type.includes("POINTER"),d=e.get("highlightedValue");if(u||!d)return;const g=pr(r),f=t("scrollToIndexFn");if(f){const v=t("collection").indexOf(d);f({index:v,immediate:c,getElement:()=>Kn(r,d)});return}const p=Kn(r,d),m=W(()=>{_n(p,{rootEl:g,block:"nearest"})});i.push(m)},a=W(()=>s(!0));i.push(a);const l=Rn(o,{attributes:["aria-activedescendant"],callback:()=>s(!1)});return i.push(l),()=>{i.forEach(c=>c())}}},actions:{reposition({context:e,prop:t,scope:r,event:n}){ut(()=>gd(r),()=>fd(r),{...t("positioning"),...n.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){const{context:t,prop:r}=e,n=r("collection"),o=t.get("highlightedValue");if(!o||!n.has(o))return;const i=r("multiple")?Kr(t.get("value"),o):[o];r("onSelect")?.({value:i,itemValue:o}),t.set("value",i);const s=At(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:n.stringifyMany(i),clear:""});t.set("inputValue",s)},scrollToHighlightedItem({context:e,prop:t,scope:r}){Ws(()=>{const n=e.get("highlightedValue");if(n==null)return;const o=Kn(r,n),i=pr(r),s=t("scrollToIndexFn");if(s){const a=t("collection").indexOf(n);s({index:a,immediate:!0,getElement:()=>Kn(r,n)});return}_n(o,{rootEl:i,block:"nearest"})})},selectItem(e){const{context:t,event:r,flush:n,prop:o}=e;r.value!=null&&n(()=>{const i=o("multiple")?Kr(t.get("value"),r.value):[r.value];o("onSelect")?.({value:i,itemValue:r.value}),t.set("value",i);const s=At(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(i),clear:""});t.set("inputValue",s)})},clearItem(e){const{context:t,event:r,flush:n,prop:o}=e;r.value!=null&&n(()=>{const i=ir(t.get("value"),r.value);t.set("value",i);const s=At(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(i),clear:""});t.set("inputValue",s)})},setInitialFocus({scope:e}){W(()=>{pd(e)})},setFinalFocus({scope:e}){W(()=>{vi(e)?.dataset.focusable==null?pd(e):mS(e)})},syncInputValue({context:e,scope:t,event:r}){const n=qn(t);n&&(n.value=e.get("inputValue"),queueMicrotask(()=>{r.current().type!=="INPUT.CHANGE"&&d0(n)}))},setInputValue({context:e,event:t}){e.set("inputValue",t.value)},clearInputValue({context:e}){e.set("inputValue","")},revertInputValue({context:e,prop:t,computed:r}){const n=t("selectionBehavior"),o=At(n,{replace:r("hasSelectedItems")?r("valueAsString"):"",preserve:e.get("inputValue"),clear:""});e.set("inputValue",o)},setValue(e){const{context:t,flush:r,event:n,prop:o}=e;r(()=>{t.set("value",n.value);const i=At(o("selectionBehavior"),{preserve:t.get("inputValue"),replace:o("collection").stringifyMany(n.value),clear:""});t.set("inputValue",i)})},clearSelectedItems(e){const{context:t,flush:r,prop:n}=e;r(()=>{t.set("value",[]);const o=At(n("selectionBehavior"),{preserve:t.get("inputValue"),replace:n("collection").stringifyMany([]),clear:""});t.set("inputValue",o)})},scrollContentToTop({prop:e,scope:t}){const r=e("scrollToIndexFn");if(r){const n=e("collection").firstValue;r({index:0,immediate:!0,getElement:()=>Kn(t,n)})}else{const n=pr(t);if(!n)return;n.scrollTop=0}},invokeOnOpen({prop:e,event:t,context:r}){const n=md(t);e("onOpenChange")?.({open:!0,reason:n,value:r.get("value")})},invokeOnClose({prop:e,event:t,context:r}){const n=md(t);e("onOpenChange")?.({open:!1,reason:n,value:r.get("value")})},highlightFirstItem({context:e,prop:t,scope:r}){(pr(r)?queueMicrotask:W)(()=>{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:r}){(pr(r)?queueMicrotask:W)(()=>{const o=t("collection").lastValue;o&&e.set("highlightedValue",o)})},highlightNextItem({context:e,prop:t}){let r=null;const n=e.get("highlightedValue"),o=t("collection");n?(r=o.getNextValue(n),!r&&t("loopFocus")&&(r=o.firstValue)):r=o.firstValue,r&&e.set("highlightedValue",r)},highlightPrevItem({context:e,prop:t}){let r=null;const n=e.get("highlightedValue"),o=t("collection");n?(r=o.getPreviousValue(n),!r&&t("loopFocus")&&(r=o.lastValue)):r=o.lastValue,r&&e.set("highlightedValue",r)},highlightFirstSelectedItem({context:e,prop:t}){W(()=>{const[r]=t("collection").sort(e.get("value"));r&&e.set("highlightedValue",r)})},highlightFirstOrSelectedItem({context:e,prop:t,computed:r}){W(()=>{let n=null;r("hasSelectedItems")?n=t("collection").sort(e.get("value"))[0]:n=t("collection").firstValue,n&&e.set("highlightedValue",n)})},highlightLastOrSelectedItem({context:e,prop:t,computed:r}){W(()=>{const n=t("collection");let o=null;r("hasSelectedItems")?o=n.sort(e.get("value"))[0]:o=n.lastValue,o&&e.set("highlightedValue",o)})},autofillInputValue({context:e,computed:t,prop:r,event:n,scope:o}){const i=qn(o),s=r("collection");if(!t("autoComplete")||!i||!n.keypress)return;const a=s.stringify(e.get("highlightedValue"));W(()=>{i.value=a||e.get("inputValue")})},syncSelectedItems(e){queueMicrotask(()=>{const{context:t,prop:r}=e,n=r("collection"),o=t.get("value"),i=o.map(a=>t.get("selectedItems").find(c=>n.getItemValue(c)===a)||n.find(a));t.set("selectedItems",i);const s=At(r("selectionBehavior"),{preserve:t.get("inputValue"),replace:n.stringifyMany(o),clear:""});t.set("inputValue",s)})},syncHighlightedItem({context:e,prop:t}){const r=t("collection").find(e.get("highlightedValue"));e.set("highlightedItem",r)},toggleVisibility({event:e,send:t,prop:r}){t({type:r("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:e})}}}});function md(e){return(e.previousEvent||e).src}M()(["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","alwaysSubmitOnEnter"]),M()(["htmlFor"]),M()(["id"]),M()(["item","persistFocus"]);const xS=dd.extendWith("empty"),[vd,Qt]=mt({name:"DialogContext",hookName:"useDialogContext",providerName:""}),bd=C.forwardRef((e,t)=>{const r=Qt(),n=n1(),o=Fn({...n,present:r.open}),i=ee(r.getBackdropProps(),o.getPresenceProps(),e);return o.unmounted?null:h.jsx(ue.div,{...i,ref:Ln(o.ref,t)})});bd.displayName="DialogBackdrop";const yd=C.forwardRef((e,t)=>{const r=Qt(),n=ee(r.getCloseTriggerProps(),e);return h.jsx(ue.button,{...n,ref:t})});yd.displayName="DialogCloseTrigger";const xd=C.forwardRef((e,t)=>{const r=Qt(),n=zn(),o=ee(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:h.jsx(ue.div,{...o,ref:Ln(n.ref,t)})});xd.displayName="DialogContent";const Sd=C.forwardRef((e,t)=>{const r=Qt(),n=ee(r.getDescriptionProps(),e);return h.jsx(ue.div,{...n,ref:t})});Sd.displayName="DialogDescription";const Cd=C.forwardRef((e,t)=>{const r=Qt(),n=ee(r.getPositionerProps(),e);return zn().unmounted?null:h.jsx(ue.div,{...n,ref:t})});Cd.displayName="DialogPositioner";var va=$("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),mr=va.build(),kd=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,wd=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,ba=e=>e.ids?.content??`dialog:${e.id}:content`,Ed=e=>e.ids?.trigger??`dialog:${e.id}:trigger`,ya=e=>e.ids?.title??`dialog:${e.id}:title`,xa=e=>e.ids?.description??`dialog:${e.id}:description`,Od=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,bi=e=>e.getById(ba(e)),SS=e=>e.getById(kd(e)),CS=e=>e.getById(wd(e)),kS=e=>e.getById(Ed(e)),wS=e=>e.getById(ya(e)),ES=e=>e.getById(xa(e)),OS=e=>e.getById(Od(e));function IS(e,t){const{state:r,send:n,context:o,prop:i,scope:s}=e,a=i("aria-label"),l=r.matches("open");return{open:l,setOpen(c){r.matches("open")!==c&&n({type:c?"OPEN":"CLOSE"})},getTriggerProps(){return t.button({...mr.trigger.attrs,dir:i("dir"),id:Ed(s),"aria-haspopup":"dialog",type:"button","aria-expanded":l,"data-state":l?"open":"closed","aria-controls":ba(s),onClick(c){c.defaultPrevented||n({type:"TOGGLE"})}})},getBackdropProps(){return t.element({...mr.backdrop.attrs,dir:i("dir"),hidden:!l,id:wd(s),"data-state":l?"open":"closed"})},getPositionerProps(){return t.element({...mr.positioner.attrs,dir:i("dir"),id:kd(s),style:{pointerEvents:l?void 0:"none"}})},getContentProps(){const c=o.get("rendered");return t.element({...mr.content.attrs,dir:i("dir"),role:i("role"),hidden:!l,id:ba(s),tabIndex:-1,"data-state":l?"open":"closed","aria-modal":!0,"aria-label":a||void 0,"aria-labelledby":a||!c.title?void 0:ya(s),"aria-describedby":c.description?xa(s):void 0})},getTitleProps(){return t.element({...mr.title.attrs,dir:i("dir"),id:ya(s)})},getDescriptionProps(){return t.element({...mr.description.attrs,dir:i("dir"),id:xa(s)})},getCloseTriggerProps(){return t.button({...mr.closeTrigger.attrs,dir:i("dir"),id:Od(s),type:"button",onClick(c){c.defaultPrevented||(c.stopPropagation(),n({type:"CLOSE"}))}})}}}var TS={props({props:e,scope:t}){const r=e.role==="alertdialog",n=r?()=>OS(t):void 0,o=typeof e.modal=="boolean"?e.modal:!0;return{role:"dialog",modal:o,trapFocus:o,preventScroll:o,closeOnInteractOutside:!r,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:n,...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:r}){e([()=>r("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:r}){return sn(()=>bi(e),{type:"dialog",defer:!0,pointerBlocking:r("modal"),exclude:[kS(e)],onInteractOutside(o){r("onInteractOutside")?.(o),r("closeOnInteractOutside")||o.preventDefault()},persistentElements:r("persistentElements"),onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onRequestDismiss:r("onRequestDismiss"),onEscapeKeyDown(o){r("onEscapeKeyDown")?.(o),r("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return A1(e.getDoc())},trapFocus({scope:e,prop:t}){return t("trapFocus")?P1(()=>bi(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:n=>t("finalFocusEl")?.()??n,getShadowRoot:!0}):void 0},hideContentBelow({scope:e,prop:t}){return t("modal")?C1(()=>[bi(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){W(()=>{e.set("rendered",{title:!!wS(t),description:!!ES(t)})})},syncZIndex({scope:e}){W(()=>{const t=bi(e);if(!t)return;const r=Yr(t);[SS(e),CS(e)].forEach(o=>{o?.style.setProperty("--z-index",r.zIndex),o?.style.setProperty("--layer-index",r.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},toggleVisibility({prop:e,send:t,event:r}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:r})}}}};M()(["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 PS=e=>{const t=C.useId(),{getRootNode:r}=Vs(),{dir:n}=qc(),o={id:t,getRootNode:r,dir:n,...e},i=qs(TS,o);return IS(i,Qc)},NS=e=>{const[t,{children:r,...n}]=qo(e),[o]=$u(t),i=PS(n),s=Fn(ee({present:i.open},t));return h.jsx(vd,{value:i,children:h.jsx(Mu,{value:o,children:h.jsx(Xo,{value:s,children:r})})})},AS=e=>{const[t,{value:r,children:n}]=qo(e),[o]=$u(t),i=Fn(ee({present:r.open},t));return h.jsx(vd,{value:r,children:h.jsx(Mu,{value:o,children:h.jsx(Xo,{value:i,children:n})})})},Id=C.forwardRef((e,t)=>{const r=Qt(),n=ee(r.getTitleProps(),e);return h.jsx(ue.h2,{...n,ref:t})});Id.displayName="DialogTitle";const Td=C.forwardRef((e,t)=>{const r=Qt(),n=zn(),o=ee({...r.getTriggerProps(),"aria-controls":n.unmounted?void 0:r.getTriggerProps()["aria-controls"]},e);return h.jsx(ue.button,{...o,ref:t})});Td.displayName="DialogTrigger";var Pd=$("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");Pd.build(),M()(["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 Nd=C.forwardRef((e,t)=>{const r=pa(),n=ee(r?.getInputProps(),e);return h.jsx(ue.input,{...n,ref:t})});Nd.displayName="FieldInput";const Ad=$("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");Ad.build();function VS(e){if(!e)return;const t=Yr(e);return"box-sizing:"+t.boxSizing+";border-left:"+t.borderLeftWidth+" solid red;border-right:"+t.borderRightWidth+" solid red;font-family:"+t.fontFamily+";font-feature-settings:"+t.fontFeatureSettings+";font-kerning:"+t.fontKerning+";font-size:"+t.fontSize+";font-stretch:"+t.fontStretch+";font-style:"+t.fontStyle+";font-variant:"+t.fontVariant+";font-variant-caps:"+t.fontVariantCaps+";font-variant-ligatures:"+t.fontVariantLigatures+";font-variant-numeric:"+t.fontVariantNumeric+";font-weight:"+t.fontWeight+";letter-spacing:"+t.letterSpacing+";margin-left:"+t.marginLeft+";margin-right:"+t.marginRight+";padding-left:"+t.paddingLeft+";padding-right:"+t.paddingRight+";text-indent:"+t.textIndent+";text-transform:"+t.textTransform}function RS(e){var t=e.createElement("div");return t.id="ghost",t.style.cssText="display:inline-block;height:0;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:nowrap;",e.body.appendChild(t),t}function _S(e){if(!e)return;const t=Fe(e),r=me(e),n=RS(t),o=VS(e);o&&(n.style.cssText+=o);function i(){r.requestAnimationFrame(()=>{n.innerHTML=e.value;const s=r.getComputedStyle(n);e?.style.setProperty("width",s.width)})}return i(),e?.addEventListener("input",i),e?.addEventListener("change",i),()=>{t.body.removeChild(n),e?.removeEventListener("input",i),e?.removeEventListener("change",i)}}var LS=e=>{if(!e)return;const t=Yr(e),r=me(e),n=Fe(e),o=()=>{requestAnimationFrame(()=>{e.style.height="auto";let c;t.boxSizing==="content-box"?c=e.scrollHeight-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):c=e.scrollHeight+parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),t.maxHeight!=="none"&&c>parseFloat(t.maxHeight)?(t.overflowY==="hidden"&&(e.style.overflowY="scroll"),c=parseFloat(t.maxHeight)):t.overflowY!=="hidden"&&(e.style.overflowY="hidden"),e.style.height=`${c}px`})};e.addEventListener("input",o),e.form?.addEventListener("reset",o);const i=Object.getPrototypeOf(e),s=Object.getOwnPropertyDescriptor(i,"value");Object.defineProperty(e,"value",{...s,set(){s?.set?.apply(this,arguments),o()}});const a=new r.ResizeObserver(()=>{requestAnimationFrame(()=>o())});a.observe(e);const l=new r.MutationObserver(()=>o());return l.observe(e,{attributes:!0,attributeFilter:["rows","placeholder"]}),n.fonts?.addEventListener("loadingdone",o),()=>{e.removeEventListener("input",o),e.form?.removeEventListener("reset",o),n.fonts?.removeEventListener("loadingdone",o),a.disconnect(),l.disconnect()}};const Vd=C.forwardRef((e,t)=>{const{autoresize:r,...n}=e,o=C.useRef(null),i=pa(),s=ee(i?.getTextareaProps(),{style:{resize:r?"none":void 0}},n);return C.useEffect(()=>{if(r)return LS(o.current)},[r]),h.jsx(ue.textarea,{...s,ref:Ln(t,o)})});Vd.displayName="FieldTextarea";const Rd=$("fieldset").parts("root","errorText","helperText","legend");Rd.build();var _d=$("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");_d.build(),M()(["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"]),M()(["file","type"]);var Ld=$("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");Ld.build();var FS=e=>e.ids?.trigger??`hover-card:${e.id}:trigger`,zS=e=>e.ids?.content??`hover-card:${e.id}:content`,DS=e=>e.ids?.positioner??`hover-card:${e.id}:popper`,Sa=e=>e.getById(FS(e)),MS=e=>e.getById(zS(e)),Fd=e=>e.getById(DS(e)),{not:yi,and:zd}=_t();zd("isOpenControlled",yi("isPointer")),yi("isPointer"),zd("isOpenControlled",yi("isPointer")),yi("isPointer"),M()(["closeDelay","dir","getRootNode","id","ids","disabled","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var Dd=$("tree-view").parts("branch","branchContent","branchControl","branchIndentGuide","branchIndicator","branchText","branchTrigger","item","itemIndicator","itemText","label","nodeCheckbox","nodeRenameInput","root","tree");Dd.build();var Md=e=>new ud(e);Md.empty=()=>new ud({rootNode:{children:[]}});var $d=(e,t)=>e.ids?.node?.(t)??`tree:${e.id}:node:${t}`,Pe=(e,t)=>{t!=null&&e.getById($d(e,t))?.focus()},$S=(e,t)=>`tree:${e.id}:rename-input:${t}`,Wd=(e,t)=>e.getById($S(e,t));function WS(e,t,r){const n=e.getDescendantValues(t),o=n.every(i=>r.includes(i));return jt(o?ir(r,...n):or(r,...n))}function xi(e,t){const{context:r,prop:n,refs:o}=e;if(!n("loadChildren")){r.set("expandedValue",m=>jt(or(m,...t)));return}const i=r.get("loadingStatus"),[s,a]=lc(t,m=>i[m]==="loaded");if(s.length>0&&r.set("expandedValue",m=>jt(or(m,...s))),a.length===0)return;const l=n("collection"),[c,u]=lc(a,m=>{const v=l.findNode(m);return l.getNodeChildren(v).length>0});if(c.length>0&&r.set("expandedValue",m=>jt(or(m,...c))),u.length===0)return;r.set("loadingStatus",m=>({...m,...u.reduce((v,x)=>({...v,[x]:"loading"}),{})}));const d=u.map(m=>{const v=l.getIndexPath(m),x=l.getValuePath(v),k=l.findNode(m);return{id:m,indexPath:v,valuePath:x,node:k}}),g=o.get("pendingAborts"),f=n("loadChildren");As(f,()=>"[zag-js/tree-view] `loadChildren` is required for async expansion");const p=d.map(({id:m,indexPath:v,valuePath:x,node:k})=>{const y=g.get(m);y&&(y.abort(),g.delete(m));const S=new AbortController;return g.set(m,S),f({valuePath:x,indexPath:v,node:k,signal:S.signal})});Promise.allSettled(p).then(m=>{const v=[],x=[],k=r.get("loadingStatus");let y=n("collection");m.forEach((S,b)=>{const{id:O,indexPath:T,node:V,valuePath:E}=d[b];S.status==="fulfilled"?(k[O]="loaded",v.push(O),y=y.replace(T,{...V,children:S.value})):(g.delete(O),Reflect.deleteProperty(k,O),x.push({node:V,error:S.reason,indexPath:T,valuePath:E}))}),r.set("loadingStatus",k),v.length&&(r.set("expandedValue",S=>jt(or(S,...v))),n("onLoadChildrenComplete")?.({collection:y})),x.length&&n("onLoadChildrenError")?.({nodes:x})})}function Jt(e){const{prop:t,context:r}=e;return function({indexPath:o}){return t("collection").getValuePath(o).slice(0,-1).some(s=>!r.get("expandedValue").includes(s))}}var{and:St}=_t();St("isMultipleSelection","moveFocus"),St("isShiftKey","isMultipleSelection"),St("isShiftKey","isMultipleSelection"),St("isBranchFocused","isBranchExpanded"),St("isShiftKey","isMultipleSelection"),St("isShiftKey","isMultipleSelection"),St("isCtrlKey","isMultipleSelection"),St("isShiftKey","isMultipleSelection"),St("isCtrlKey","isMultipleSelection"),St("isShiftKey","isMultipleSelection");function vr(e,t){const{prop:r,scope:n,computed:o}=e,i=r("scrollToIndexFn");if(!i)return!1;const s=r("collection"),a=o("visibleNodes");for(let l=0;ln.getById($d(n,t))}),!0}return!1}M()(["ids","collection","dir","expandedValue","expandOnClick","defaultFocusedValue","focusedValue","getRootNode","id","onExpandedChange","onFocusChange","onSelectionChange","checkedValue","selectedValue","selectionMode","typeahead","defaultExpandedValue","defaultSelectedValue","defaultCheckedValue","onCheckedChange","onLoadChildrenComplete","onLoadChildrenError","loadChildren","canRename","onRenameStart","onBeforeRename","onRenameComplete","scrollToIndexFn"]),M()(["node","indexPath"]);var Bd=$("listbox").parts("label","input","item","itemText","itemIndicator","itemGroup","itemGroupLabel","content","root","valueText");Bd.build();var Hd=e=>new gr(e);Hd.empty=()=>new gr({items:[]});var BS=e=>e.ids?.content??`select:${e.id}:content`,HS=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,Ud=e=>e.getById(BS(e)),jd=(e,t)=>e.getById(HS(e,t)),{guards:US,createMachine:jS}=Go(),{or:GS}=US;jS({props({props:e}){return{loopFocus:!1,composite:!0,defaultValue:[],multiple:!1,typeahead:!0,collection:Hd.empty(),orientation:"vertical",selectionMode:"single",...e}},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:We,onChange(r){const n=e("collection").findMany(r);return e("onValueChange")?.({value:r,items:n})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),sync:!0,onChange(r){e("onHighlightChange")?.({highlightedValue:r,highlightedItem:e("collection").find(r),highlightedIndex:e("collection").indexOf(r)})}})),highlightedItem:t(()=>({defaultValue:null})),selectedItems:t(()=>{const r=e("value")??e("defaultValue")??[];return{defaultValue:e("collection").findMany(r)}}),focused:t(()=>({sync:!0,defaultValue:!1}))}},refs(){return{typeahead:{...qt.defaultOptions},focusVisible:!1,inputState:{autoHighlight:!1,focused:!1}}},computed:{hasSelectedItems:({context:e})=>e.get("value").length>0,isTypingAhead:({refs:e})=>e.get("typeahead").keysSoFar!=="",isInteractive:({prop:e})=>!e("disabled"),selection:({context:e,prop:t})=>{const r=new j1(e.get("value"));return r.selectionMode=t("selectionMode"),r.deselectable=!!t("deselectable"),r},multiple:({prop:e})=>e("selectionMode")==="multiple"||e("selectionMode")==="extended",valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems"))},initialState(){return"idle"},watch({context:e,prop:t,track:r,action:n}){r([()=>e.get("value").toString()],()=>{n(["syncSelectedItems"])}),r([()=>e.get("highlightedValue")],()=>{n(["syncHighlightedItem"])}),r([()=>t("collection").toString()],()=>{n(["syncHighlightedValue"])})},effects:["trackFocusVisible"],on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]}},states:{idle:{effects:["scrollToHighlightedItem"],on:{"INPUT.FOCUS":{actions:["setFocused","setInputState"]},"CONTENT.FOCUS":[{guard:GS("hasSelectedValue","hasHighlightedValue"),actions:["setFocused"]},{actions:["setFocused","setDefaultHighlightedValue"]}],"CONTENT.BLUR":{actions:["clearFocused","clearInputState"]},"ITEM.CLICK":{actions:["setHighlightedItem","selectHighlightedItem"]},"CONTENT.TYPEAHEAD":{actions:["setFocused","highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},NAVIGATE:{actions:["setFocused","setHighlightedItem","selectWithKeyboard"]}}}},implementations:{guards:{hasSelectedValue:({context:e})=>e.get("value").length>0,hasHighlightedValue:({context:e})=>e.get("highlightedValue")!=null},effects:{trackFocusVisible:({scope:e,refs:t})=>ed({root:e.getRootNode?.(),onChange(r){t.set("focusVisible",r.isFocusVisible)}}),scrollToHighlightedItem({context:e,prop:t,scope:r}){const n=i=>{const s=e.get("highlightedValue");if(s==null||M1()!=="keyboard")return;const l=Ud(r),c=t("scrollToIndexFn");if(c){const d=t("collection").indexOf(s);c?.({index:d,immediate:i,getElement(){return jd(r,s)}});return}const u=jd(r,s);_n(u,{rootEl:l,block:"nearest"})};return W(()=>n(!0)),Rn(()=>Ud(r),{defer:!0,attributes:["data-activedescendant"],callback(){n(!1)}})}},actions:{selectHighlightedItem({context:e,prop:t,event:r,computed:n}){const o=r.value??e.get("highlightedValue"),i=t("collection");if(o==null||!i.has(o))return;const s=n("selection");if(r.shiftKey&&n("multiple")&&r.anchorValue){const a=s.extendSelection(i,r.anchorValue,o);Yn(s,a,t("onSelect")),e.set("value",Array.from(a))}else{const a=s.select(i,o,r.metaKey);Yn(s,a,t("onSelect")),e.set("value",Array.from(a))}},selectWithKeyboard({context:e,prop:t,event:r,computed:n}){const o=n("selection"),i=t("collection");if(r.shiftKey&&n("multiple")&&r.anchorValue){const s=o.extendSelection(i,r.anchorValue,r.value);Yn(o,s,t("onSelect")),e.set("value",Array.from(s));return}if(t("selectOnHighlight")){const s=o.replaceSelection(i,r.value);Yn(o,s,t("onSelect")),e.set("value",Array.from(s))}},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:r,refs:n}){const o=t("collection").search(r.key,{state:n.get("typeahead"),currentValue:e.get("highlightedValue")});o!=null&&e.set("highlightedValue",o)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:r,computed:n}){const o=t("collection"),i=n("selection"),s=i.select(o,r.value);Yn(i,s,t("onSelect")),e.set("value",Array.from(s))},clearItem({context:e,event:t,computed:r}){const o=r("selection").deselect(t.value);e.set("value",Array.from(o))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},syncSelectedItems({context:e,prop:t}){const r=t("collection"),n=e.get("selectedItems"),i=e.get("value").map(s=>n.find(l=>r.getItemValue(l)===s)||r.find(s));e.set("selectedItems",i)},syncHighlightedItem({context:e,prop:t}){const r=t("collection"),n=e.get("highlightedValue"),o=n?r.find(n):null;e.set("highlightedItem",o)},syncHighlightedValue({context:e,prop:t,refs:r}){const n=t("collection"),o=e.get("highlightedValue"),{autoHighlight:i}=r.get("inputState");if(i){queueMicrotask(()=>{e.set("highlightedValue",t("collection").firstValue??null)});return}o!=null&&!n.has(o)&&queueMicrotask(()=>{e.set("highlightedValue",null)})},setFocused({context:e}){e.set("focused",!0)},setDefaultHighlightedValue({context:e,prop:t}){const n=t("collection").firstValue;n!=null&&e.set("highlightedValue",n)},clearFocused({context:e}){e.set("focused",!1)},setInputState({refs:e,event:t}){e.set("inputState",{autoHighlight:!!t.autoHighlight,focused:!0})},clearInputState({refs:e}){e.set("inputState",{autoHighlight:!1,focused:!1})}}}});var qS=(e,t)=>{const r=new Set(e);for(const n of t)r.delete(n);return r};function Yn(e,t,r){const n=qS(t,e);for(const o of n)r?.({value:o})}M()(["collection","defaultHighlightedValue","defaultValue","dir","disabled","deselectable","disallowSelectAll","getRootNode","highlightedValue","id","ids","loopFocus","onHighlightChange","onSelect","onValueChange","orientation","scrollToIndexFn","selectionMode","selectOnHighlight","typeahead","value"]),M()(["item","highlightOnHover"]),M()(["id"]),M()(["htmlFor"]);const KS=Bd.extendWith("empty");var Gd=$("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");Gd.build();var qd=e=>e.ids?.trigger??`menu:${e.id}:trigger`,YS=e=>e.ids?.contextTrigger??`menu:${e.id}:ctx-trigger`,Kd=e=>e.ids?.content??`menu:${e.id}:content`,XS=e=>e.ids?.positioner??`menu:${e.id}:popper`,Ca=(e,t)=>`${e.id}/${t}`,br=e=>e?.dataset.value??null,Zt=e=>e.getById(Kd(e)),Yd=e=>e.getById(XS(e)),Si=e=>e.getById(qd(e)),QS=(e,t)=>t?e.getById(Ca(e,t)):null,ka=e=>e.getById(YS(e)),Xn=e=>{const r=`[role^="menuitem"][data-ownedby=${CSS.escape(Kd(e))}]:not([data-disabled])`;return Qr(Zt(e),r)},JS=e=>Pn(Xn(e)),ZS=e=>Is(Xn(e)),wa=(e,t)=>t?e.id===t||e.dataset.value===t:!1,eC=(e,t)=>{const r=Xn(e),n=r.findIndex(o=>wa(o,t.value));return Rv(r,n,{loop:t.loop??t.loopFocus})},tC=(e,t)=>{const r=Xn(e),n=r.findIndex(o=>wa(o,t.value));return Lv(r,n,{loop:t.loop??t.loopFocus})},rC=(e,t)=>{const r=Xn(e),n=r.find(o=>wa(o,t.value));return qt(r,{state:t.typeaheadState,key:t.key,activeId:n?.id??null})},nC=e=>!!e?.getAttribute("role")?.startsWith("menuitem")&&!!e?.hasAttribute("data-controls"),oC="menu:select";function iC(e,t){if(!e)return;const r=me(e),n=new r.CustomEvent(oC,{detail:{value:t}});e.dispatchEvent(n)}var{not:nt,and:cn,or:sC}=_t();nt("isSubmenu"),sC("isOpenAutoFocusEvent","isArrowDownEvent"),cn(nt("isTriggerItem"),"isOpenControlled"),nt("isTriggerItem"),cn("isSubmenu","isOpenControlled"),nt("isPointerSuspended"),cn(nt("isPointerSuspended"),nt("isTriggerItem")),cn(nt("isTriggerItemHighlighted"),nt("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),cn(nt("isTriggerItemHighlighted"),nt("isHighlightedItemEditable"),"closeOnSelect"),cn(nt("isTriggerItemHighlighted"),nt("isHighlightedItemEditable"));function Xd(e){let t=e.parent;for(;t&&t.context.get("isSubmenu");)t=t.refs.get("parent");t?.send({type:"CLOSE"})}function aC(e,t){return e?g1(e,t):!1}function lC(e,t,r){const n=Object.keys(e).length>0;if(!t)return null;if(!n)return Ca(r,t);for(const o in e){const i=e[o],s=qd(i.scope);if(s===t)return s}return Ca(r,t)}M()(["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"]),M()(["closeOnSelect","disabled","value","valueText"]),M()(["htmlFor"]),M()(["id"]),M()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);const er=e=>{const{children:t,disabled:r}=e,[n,o]=C.useState(e.container?.current),i=C.useSyncExternalStore(uC,()=>!1,()=>!0),{getRootNode:s}=Vs();if(C.useEffect(()=>{o(()=>e.container?.current)},[e.container]),i||r)return h.jsx(h.Fragment,{children:t});const a=n??cC(s);return h.jsx(h.Fragment,{children:C.Children.map(t,l=>bo.createPortal(l,a))})},cC=e=>{const t=e?.(),r=t.getRootNode();return lr(r)?r:Fe(t).body},uC=()=>()=>{};let Ea=new Map,Oa=!1;try{Oa=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Ci=!1;try{Ci=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Qd={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class dC{format(t){let r="";if(!Oa&&this.options.signDisplay!=null?r=fC(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!Ci){var n;let{unit:o,unitDisplay:i="short",locale:s}=this.resolvedOptions();if(!o)return r;let a=(n=Qd[o])===null||n===void 0?void 0:n[i];r+=a[s]||a.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r= start date");let n=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(r);return[...n.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!Oa&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Ci&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,r={}){this.numberFormatter=hC(t,r),this.options=r}}function hC(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!Ci){var n;let{unit:s,unitDisplay:a="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=Qd[s])===null||n===void 0)&&n[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(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),i=e.format(r),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(r)}}const gC=new RegExp("^.*\\(.*\\).*$"),pC=["latn","arab","hanidec","deva","beng","fullwide"];class Jd{parse(t){return Ia(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,r,n){return Ia(this.locale,this.options,t).isValidPartialNumber(t,r,n)}getNumberingSystem(t){return Ia(this.locale,this.options,t).options.numberingSystem}constructor(t,r={}){this.locale=t,this.options=r}}const Zd=new Map;function Ia(e,t,r){let n=eh(e,t);if(!e.includes("-nu-")&&!n.isValidPartialNumber(r)){for(let o of pC)if(o!==n.options.numberingSystem){let i=eh(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(r))return i}}return n}function eh(e,t){let r=e+(t?Object.entries(t).sort((o,i)=>o[0]-1&&(r=`-${r}`)}let n=r?+r:NaN;if(isNaN(n))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 Jd(this.locale,s).parse(new dC(this.locale,s).format(n))}return this.options.currencySign==="accounting"&&gC.test(t)&&(n=-1*n),n}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=un(t,".",this.symbols.group))),this.symbols.group==="’"&&t.includes("'")&&(t=un(t,"'",this.symbols.group)),this.options.locale==="fr-FR"&&this.symbols.group&&(t=un(t," ",this.symbols.group),t=un(t,/\u00A0/g,this.symbols.group)),t}isValidPartialNumber(t,r=-1/0,n=1/0){return t=this.sanitize(t),this.symbols.minusSign&&t.startsWith(this.symbols.minusSign)&&r<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&n>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=un(t,this.symbols.group,"")),t=t.replace(this.symbols.numeral,""),this.symbols.decimal&&(t=t.replace(this.symbols.decimal,"")),t.length===0)}constructor(t,r={}){this.locale=t,r.roundingIncrement!==1&&r.roundingIncrement!=null&&(r.maximumFractionDigits==null&&r.minimumFractionDigits==null?(r.maximumFractionDigits=0,r.minimumFractionDigits=0):r.maximumFractionDigits==null?r.maximumFractionDigits=r.minimumFractionDigits:r.minimumFractionDigits==null&&(r.minimumFractionDigits=r.maximumFractionDigits)),this.formatter=new Intl.NumberFormat(t,r),this.options=this.formatter.resolvedOptions(),this.symbols=bC(t,this.formatter,this.options,r);var n,o;this.options.style==="percent"&&(((n=this.options.minimumFractionDigits)!==null&&n!==void 0?n: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 th=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),vC=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function bC(e,t,r,n){var o,i,s,a;let l=new Intl.NumberFormat(e,{...r,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),c=l.formatToParts(-10000.111),u=l.formatToParts(10000.111),d=vC.map(P=>l.formatToParts(P));var g;let f=(g=(o=c.find(P=>P.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&g!==void 0?g:"-",p=(i=u.find(P=>P.type==="plusSign"))===null||i===void 0?void 0:i.value;!p&&(n?.signDisplay==="exceptZero"||n?.signDisplay==="always")&&(p="+");let v=(s=new Intl.NumberFormat(e,{...r,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(P=>P.type==="decimal"))===null||s===void 0?void 0:s.value,x=(a=c.find(P=>P.type==="group"))===null||a===void 0?void 0:a.value,k=c.filter(P=>!th.has(P.type)).map(P=>rh(P.value)),y=d.flatMap(P=>P.filter(N=>!th.has(N.type)).map(N=>rh(N.value))),S=[...new Set([...k,...y])].sort((P,N)=>N.length-P.length),b=S.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${S.join("|")}|[\\p{White_Space}]`,"gu"),O=[...new Intl.NumberFormat(r.locale,{useGrouping:!1}).format(9876543210)].reverse(),T=new Map(O.map((P,N)=>[P,N])),V=new RegExp(`[${O.join("")}]`,"g");return{minusSign:f,plusSign:p,decimal:v,group:x,literals:b,numeral:V,index:P=>String(T.get(P))}}function un(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function rh(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var nh=$("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");nh.build();var yC=e=>e.ids?.input??`number-input:${e.id}:input`,xC=e=>e.ids?.incrementTrigger??`number-input:${e.id}:inc`,SC=e=>e.ids?.decrementTrigger??`number-input:${e.id}:dec`,oh=e=>`number-input:${e.id}:cursor`,ki=e=>e.getById(yC(e)),CC=e=>e.getById(xC(e)),kC=e=>e.getById(SC(e)),ih=e=>e.getDoc().getElementById(oh(e)),wC=(e,t)=>{let r=null;return t==="increment"&&(r=CC(e)),t==="decrement"&&(r=kC(e)),r},EC=(e,t)=>{if(!Pc())return TC(e,t),()=>{ih(e)?.remove()}},OC=e=>{const t=e.getDoc(),r=t.documentElement,n=t.body;return n.style.pointerEvents="none",r.style.userSelect="none",r.style.cursor="ew-resize",()=>{n.style.pointerEvents="",r.style.userSelect="",r.style.cursor="",r.style.length||r.removeAttribute("style"),n.style.length||n.removeAttribute("style")}},IC=(e,t)=>{const{point:r,isRtl:n,event:o}=t,i=e.getWin(),s=Ns(o.movementX,i.devicePixelRatio),a=Ns(o.movementY,i.devicePixelRatio);let l=s>0?"increment":s<0?"decrement":null;n&&l==="increment"&&(l="decrement"),n&&l==="decrement"&&(l="increment");const c={x:r.x+s,y:r.y+a},u=i.innerWidth,d=Ns(7.5,i.devicePixelRatio);return c.x=Qv(c.x+d,u)-d,{hint:l,point:c}},TC=(e,t)=>{const r=e.getDoc(),n=r.createElement("div");n.className="scrubber--cursor",n.id=oh(e),Object.assign(n.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:f0,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),n.innerHTML=` - `,r.body.appendChild(n)};function OC(e,t,r){if(!(!e||!r.isActiveElement(e))){if(!t){const n=e.value.length;e.setSelectionRange(n,n);return}try{const n=e.value,{start:o,end:i,value:s}=t;if(n===s){e.setSelectionRange(o,i);return}const a=oh(s,n,o),l=o===i?a:oh(s,n,i),c=Math.max(0,Math.min(a,n.length)),d=Math.max(c,Math.min(l,n.length));e.setSelectionRange(c,d)}catch{const n=e.value.length;e.setSelectionRange(n,n)}}}function oh(e,t,r){const n=e.slice(0,r),o=e.slice(r);let i=0;const s=Math.min(n.length,t.length);for(let c=0;c=n.length)return i;if(a>=o.length)return t.length-a;if(i>0)return i;if(a>0)return t.length-a;if(e.length>0){const c=r/e.length;return Math.round(c*t.length)}return t.length}var IC=(e,t={})=>new Intl.NumberFormat(e,t),TC=(e,t={})=>new Xu(e,t),Ia=(e,t)=>{const{prop:r,computed:n}=t;return r("formatOptions")?e===""?Number.NaN:n("parser").parse(e):parseFloat(e)},br=(e,t)=>{const{prop:r,computed:n}=t;return Number.isNaN(e)?"":r("formatOptions")?n("formatter").format(e):e.toString()},PC=(e,t)=>{let r=e!==void 0&&!Number.isNaN(e)?e:1;return t?.style==="percent"&&(e===void 0||Number.isNaN(e))&&(r=.01),r},{choose:NC,guards:AC,createMachine:RC}=jo(),{not:ih,and:sh}=AC;RC({props({props:e}){const t=PC(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:r}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(n){const o=r(),i=Ia(n,{computed:o,prop:e});e("onValueChange")?.({value:n,valueAsNumber:i})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash(n){return n?`x:${n.x}, y:${n.y}`:""}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",valueAsNumber:({context:e,computed:t,prop:r})=>Ia(e.get("value"),{computed:t,prop:r}),formattedValue:({computed:e,prop:t})=>br(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>Qv(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>Xv(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!Jv(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})=>e("translations").valueText?.(t.get("value")),formatter:jc(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>IC(e,t)),parser:jc(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>TC(e,t))},watch({track:e,action:t,context:r,computed:n,prop:o}){e([()=>r.get("value"),()=>o("locale")],()=>{t(["syncInputElement"])}),e([()=>n("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>r.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:sh("clampValueOnBlur",ih("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:ih("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:NC([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:sh("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 r=Ci(t);return Do(r,{onFieldsetDisabledChange(n){e.set("fieldsetDisabled",n)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){const r=e.get("scrubberCursorPoint");return CC(t,r)},preventTextSelection({scope:e}){return kC(e)},trackButtonDisabled({context:e,scope:t,send:r}){const n=e.get("hint"),o=SC(t,n);return Rn(o,{attributes:["disabled"],callback(){r({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:r}){const n=Ci(e);if(!n||!e.isActiveElement(n)||!r("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 ce(n,"wheel",o,{passive:!1})},activatePointerLock({scope:e}){if(!Tc())return cb(e.getDoc())},trackMousemove({scope:e,send:t,context:r,computed:n}){const o=e.getDoc();function i(a){const l=r.get("scrubberCursorPoint"),c=n("isRtl"),d=wC(e,{point:l,isRtl:c,event:a});d.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:d.hint,point:d.point})}function s(){t({type:"SCRUBBER.POINTER_UP"})}return No(ce(o,"mousemove",i,!1),ce(o,"mouseup",s,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const r=Ci(e);e.isActiveElement(r)||U(()=>r?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:r,computed:n}){let o=r0(n("valueAsNumber"),t.step??r("step"));r("allowOverflow")||(o=We(o,r("min"),r("max"))),e.set("value",br(o,{computed:n,prop:r}))},decrement({context:e,event:t,prop:r,computed:n}){let o=n0(n("valueAsNumber"),t.step??r("step"));r("allowOverflow")||(o=We(o,r("min"),r("max"))),e.set("value",br(o,{computed:n,prop:r}))},setClampedValue({context:e,prop:t,computed:r}){const n=We(r("valueAsNumber"),t("min"),t("max"));e.set("value",br(n,{computed:r,prop:t}))},setRawValue({context:e,event:t,prop:r,computed:n}){let o=Ia(t.value,{computed:n,prop:r});r("allowOverflow")||(o=We(o,r("min"),r("max"))),e.set("value",br(o,{computed:n,prop:r}))},setValue({context:e,event:t}){const r=t.target?.value??t.value;e.set("value",r)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:r}){const n=br(t("max"),{computed:r,prop:t});e.set("value",n)},decrementToMin({context:e,prop:t,computed:r}){const n=br(t("min"),{computed:r,prop:t});e.set("value",n)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){t("onFocusChange")?.({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){t("onFocusChange")?.({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:r}){if(r.type==="INPUT.CHANGE")return;const n=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:n,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:r,scope:n}){const o=t.type.endsWith("CHANGE")?e.get("value"):r("formattedValue"),i=Ci(n),s=t.selection;U(()=>{cr(i,o),OC(i,s,n)})},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 r=nh(t),n=e.get("scrubberCursorPoint");!r||!n||(r.style.transform=`translate3d(${n.x}px, ${n.y}px, 0px)`)}}}}),M()(["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 ah=$("pinInput").parts("root","label","input","control");ah.build(),M()(["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 lh=$("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");lh.build(),M()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);const er=e=>{const{children:t,disabled:r}=e,[n,o]=C.useState(e.container?.current),i=C.useSyncExternalStore(_C,()=>!1,()=>!0),{getRootNode:s}=As();if(C.useEffect(()=>{o(()=>e.container?.current)},[e.container]),i||r)return u.jsx(u.Fragment,{children:t});const a=n??VC(s);return u.jsx(u.Fragment,{children:C.Children.map(t,l=>vo.createPortal(l,a))})},VC=e=>{const t=e?.(),r=t.getRootNode();return lr(r)?r:Le(t).body},_C=()=>()=>{};var Ta=$("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");Ta.build(),M()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var ch=$("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");ch.build(),M()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var Pa=$("radio-group").parts("root","label","item","itemText","itemControl","indicator");Pa.build(),M()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]),M()(["value","disabled","invalid"]);var dh=$("rating-group").parts("root","label","item","control");dh.build(),M()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]),M()(["index"]);var uh=$("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");uh.build(),M()(["dir","getRootNode","ids","id"]);const hh=Pa.rename("segment-group");hh.build();const[fh,Ue]=pt({name:"SelectContext",hookName:"useSelectContext",providerName:""}),gh=C.forwardRef((e,t)=>{const r=Ue(),n=ee(r.getClearTriggerProps(),e);return u.jsx(de.button,{...n,ref:t})});gh.displayName="SelectClearTrigger";const ph=C.forwardRef((e,t)=>{const r=Ue(),n=Fn(),o=ee(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:u.jsx(de.div,{...o,ref:_n(n.ref,t)})});ph.displayName="SelectContent";const LC=e=>e.children(Ue()),mh=C.forwardRef((e,t)=>{const r=Ue(),n=ee(r.getControlProps(),e);return u.jsx(de.div,{...n,ref:t})});mh.displayName="SelectControl";const vh=C.forwardRef((e,t)=>{const r=Ue(),n=ee(r.getIndicatorProps(),e);return u.jsx(de.div,{...n,ref:t})});vh.displayName="SelectIndicator";const[FC]=pt({name:"SelectItemContext",hookName:"useSelectItemContext",providerName:""}),[zC,bh]=pt({name:"SelectItemPropsContext",hookName:"useSelectItemPropsContext",providerName:""}),DC=Jr(),yh=C.forwardRef((e,t)=>{const[r,n]=DC(e,["item","persistFocus"]),o=Ue(),i=ee(o.getItemProps(r),n),s=o.getItemState(r);return u.jsx(zC,{value:r,children:u.jsx(FC,{value:s,children:u.jsx(de.div,{...i,ref:t})})})});yh.displayName="SelectItem";const[MC,$C]=pt({name:"SelectItemGroupPropsContext",hookName:"useSelectItemGroupPropsContext",providerName:""}),WC=Jr(),xh=C.forwardRef((e,t)=>{const r=C.useId(),[n,o]=WC(e,["id"]),i={id:r,...n},s=Ue(),a=ee(s.getItemGroupProps(i),o);return u.jsx(MC,{value:i,children:u.jsx(de.div,{...a,ref:t})})});xh.displayName="SelectItemGroup";const Sh=C.forwardRef((e,t)=>{const r=Ue(),n=$C(),o=ee(r.getItemGroupLabelProps({htmlFor:n.id}),e);return u.jsx(de.div,{...o,ref:t})});Sh.displayName="SelectItemGroupLabel";const Ch=C.forwardRef((e,t)=>{const r=Ue(),n=bh(),o=ee(r.getItemIndicatorProps(n),e);return u.jsx(de.div,{...o,ref:t})});Ch.displayName="SelectItemIndicator";const kh=C.forwardRef((e,t)=>{const r=Ue(),n=bh(),o=ee(r.getItemTextProps(n),e);return u.jsx(de.span,{...o,ref:t})});kh.displayName="SelectItemText";const wh=C.forwardRef((e,t)=>{const r=Ue(),n=ee(r.getLabelProps(),e);return u.jsx(de.label,{...n,ref:t})});wh.displayName="SelectLabel";const Eh=C.forwardRef((e,t)=>{const r=Ue(),n=ee(r.getPositionerProps(),e);return Fn().unmounted?null:u.jsx(de.div,{...n,ref:t})});Eh.displayName="SelectPositioner";var Oh=$("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText"),Fe=Oh.build(),Ih=e=>new gr(e);Ih.empty=()=>new gr({items:[]});var BC=e=>e.ids?.root??`select:${e.id}`,Na=e=>e.ids?.content??`select:${e.id}:content`,Aa=e=>e.ids?.trigger??`select:${e.id}:trigger`,Th=e=>e.ids?.clearTrigger??`select:${e.id}:clear-trigger`,ki=e=>e.ids?.label??`select:${e.id}:label`,HC=e=>e.ids?.control??`select:${e.id}:control`,Ra=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,Va=e=>e.ids?.hiddenSelect??`select:${e.id}:select`,Ph=e=>e.ids?.positioner??`select:${e.id}:positioner`,UC=(e,t)=>e.ids?.itemGroup?.(t)??`select:${e.id}:optgroup:${t}`,Nh=(e,t)=>e.ids?.itemGroupLabel?.(t)??`select:${e.id}:optgroup-label:${t}`,_a=e=>e.getById(Va(e)),Xn=e=>e.getById(Na(e)),yr=e=>e.getById(Aa(e)),jC=e=>e.getById(Th(e)),Ah=e=>e.getById(Ph(e)),La=(e,t)=>t==null?null:e.getById(Ra(e,t));function GC(e,t){const{context:r,prop:n,scope:o,state:i,computed:s,send:a}=e,l=n("disabled")||r.get("fieldsetDisabled"),c=!!n("invalid"),d=!!n("required"),h=!!n("readOnly"),g=n("composite"),f=n("collection"),p=i.hasTag("open"),m=i.matches("focused"),v=r.get("highlightedValue"),x=r.get("highlightedItem"),k=r.get("selectedItems"),y=r.get("currentPlacement"),S=s("isTypingAhead"),b=s("isInteractive"),O=v?Ra(o,v):void 0;function T(E){const P=f.getItemDisabled(E.item),N=f.getItemValue(E.item);return Ns(N,()=>`[zag-js] No value found for item ${JSON.stringify(E.item)}`),{value:N,disabled:!!(l||P),highlighted:v===N,selected:r.get("value").includes(N)}}const R=gx({...n("positioning"),placement:y});return{open:p,focused:m,empty:r.get("value").length===0,highlightedItem:x,highlightedValue:v,selectedItems:k,hasSelectedItems:s("hasSelectedItems"),value:r.get("value"),valueAsString:s("valueAsString"),collection:f,multiple:!!n("multiple"),disabled:!!l,reposition(E={}){a({type:"POSITIONING.SET",options:E})},focus(){yr(o)?.focus({preventScroll:!0})},setOpen(E){i.hasTag("open")!==E&&a({type:E?"OPEN":"CLOSE"})},selectValue(E){a({type:"ITEM.SELECT",value:E})},setValue(E){a({type:"VALUE.SET",value:E})},selectAll(){a({type:"VALUE.SET",value:f.getValues()})},setHighlightValue(E){a({type:"HIGHLIGHTED_VALUE.SET",value:E})},clearHighlightValue(){a({type:"HIGHLIGHTED_VALUE.CLEAR"})},clearValue(E){a(E?{type:"ITEM.CLEAR",value:E}:{type:"VALUE.CLEAR"})},getItemState:T,getRootProps(){return t.element({...Fe.root.attrs,dir:n("dir"),id:BC(o),"data-invalid":le(c),"data-readonly":le(h)})},getLabelProps(){return t.label({dir:n("dir"),id:ki(o),...Fe.label.attrs,"data-disabled":le(l),"data-invalid":le(c),"data-readonly":le(h),"data-required":le(d),htmlFor:Va(o),onClick(E){E.defaultPrevented||l||yr(o)?.focus({preventScroll:!0})}})},getControlProps(){return t.element({...Fe.control.attrs,dir:n("dir"),id:HC(o),"data-state":p?"open":"closed","data-focus":le(m),"data-disabled":le(l),"data-invalid":le(c)})},getValueTextProps(){return t.element({...Fe.valueText.attrs,dir:n("dir"),"data-disabled":le(l),"data-invalid":le(c),"data-focus":le(m)})},getTriggerProps(){return t.button({id:Aa(o),disabled:l,dir:n("dir"),type:"button",role:"combobox","aria-controls":Na(o),"aria-expanded":p,"aria-haspopup":"listbox","data-state":p?"open":"closed","aria-invalid":c,"aria-required":d,"aria-labelledby":ki(o),...Fe.trigger.attrs,"data-disabled":le(l),"data-invalid":le(c),"data-readonly":le(h),"data-placement":y,"data-placeholder-shown":le(!s("hasSelectedItems")),onClick(E){b&&(E.defaultPrevented||a({type:"TRIGGER.CLICK"}))},onFocus(){a({type:"TRIGGER.FOCUS"})},onBlur(){a({type:"TRIGGER.BLUR"})},onKeyDown(E){if(E.defaultPrevented||!b)return;const N={ArrowUp(){a({type:"TRIGGER.ARROW_UP"})},ArrowDown(w){a({type:w.altKey?"OPEN":"TRIGGER.ARROW_DOWN"})},ArrowLeft(){a({type:"TRIGGER.ARROW_LEFT"})},ArrowRight(){a({type:"TRIGGER.ARROW_RIGHT"})},Home(){a({type:"TRIGGER.HOME"})},End(){a({type:"TRIGGER.END"})},Enter(){a({type:"TRIGGER.ENTER"})},Space(w){a(S?{type:"TRIGGER.TYPEAHEAD",key:w.key}:{type:"TRIGGER.ENTER"})}}[Nc(E,{dir:n("dir"),orientation:"vertical"})];if(N){N(E),E.preventDefault();return}qt.isValidEvent(E)&&(a({type:"TRIGGER.TYPEAHEAD",key:E.key}),E.preventDefault())}})},getIndicatorProps(){return t.element({...Fe.indicator.attrs,dir:n("dir"),"aria-hidden":!0,"data-state":p?"open":"closed","data-disabled":le(l),"data-invalid":le(c),"data-readonly":le(h)})},getItemProps(E){const P=T(E);return t.element({id:Ra(o,P.value),role:"option",...Fe.item.attrs,dir:n("dir"),"data-value":P.value,"aria-selected":P.selected,"data-state":P.selected?"checked":"unchecked","data-highlighted":le(P.highlighted),"data-disabled":le(P.disabled),"aria-disabled":h0(P.disabled),onPointerMove(N){P.disabled||N.pointerType!=="mouse"||P.value!==v&&a({type:"ITEM.POINTER_MOVE",value:P.value})},onClick(N){N.defaultPrevented||P.disabled||a({type:"ITEM.CLICK",src:"pointerup",value:P.value})},onPointerLeave(N){P.disabled||E.persistFocus||N.pointerType!=="mouse"||!e.event.previous()?.type.includes("POINTER")||a({type:"ITEM.POINTER_LEAVE"})}})},getItemTextProps(E){const P=T(E);return t.element({...Fe.itemText.attrs,"data-state":P.selected?"checked":"unchecked","data-disabled":le(P.disabled),"data-highlighted":le(P.highlighted)})},getItemIndicatorProps(E){const P=T(E);return t.element({"aria-hidden":!0,...Fe.itemIndicator.attrs,"data-state":P.selected?"checked":"unchecked",hidden:!P.selected})},getItemGroupLabelProps(E){const{htmlFor:P}=E;return t.element({...Fe.itemGroupLabel.attrs,id:Nh(o,P),dir:n("dir"),role:"presentation"})},getItemGroupProps(E){const{id:P}=E;return t.element({...Fe.itemGroup.attrs,"data-disabled":le(l),id:UC(o,P),"aria-labelledby":Nh(o,P),role:"group",dir:n("dir")})},getClearTriggerProps(){return t.button({...Fe.clearTrigger.attrs,id:Th(o),type:"button","aria-label":"Clear value","data-invalid":le(c),disabled:l,hidden:!s("hasSelectedItems"),dir:n("dir"),onClick(E){E.defaultPrevented||a({type:"CLEAR.CLICK"})}})},getHiddenSelectProps(){const E=r.get("value"),P=n("multiple")?E:E?.[0];return t.select({name:n("name"),form:n("form"),disabled:l,multiple:n("multiple"),required:n("required"),"aria-hidden":!0,id:Va(o),defaultValue:P,style:Cb,tabIndex:-1,onFocus(){yr(o)?.focus({preventScroll:!0})},"aria-labelledby":ki(o)})},getPositionerProps(){return t.element({...Fe.positioner.attrs,dir:n("dir"),id:Ph(o),style:R.floating})},getContentProps(){return t.element({hidden:!p,dir:n("dir"),id:Na(o),role:g?"listbox":"dialog",...Fe.content.attrs,"data-state":p?"open":"closed","data-placement":y,"data-activedescendant":O,"aria-activedescendant":g?O:void 0,"aria-multiselectable":n("multiple")&&g?!0:void 0,"aria-labelledby":ki(o),tabIndex:0,onKeyDown(E){if(!b||!Rt(E.currentTarget,Ve(E)))return;if(E.key==="Tab"&&!nb(E)){E.preventDefault();return}const P={ArrowUp(){a({type:"CONTENT.ARROW_UP"})},ArrowDown(){a({type:"CONTENT.ARROW_DOWN"})},Home(){a({type:"CONTENT.HOME"})},End(){a({type:"CONTENT.END"})},Enter(){a({type:"ITEM.CLICK",src:"keydown.enter"})},Space(A){S?a({type:"CONTENT.TYPEAHEAD",key:A.key}):P.Enter?.(A)}},N=P[Nc(E)];if(N){N(E),E.preventDefault();return}const w=Ve(E);_s(w)||qt.isValidEvent(E)&&(a({type:"CONTENT.TYPEAHEAD",key:E.key}),E.preventDefault())}})},getListProps(){return t.element({...Fe.list.attrs,tabIndex:0,role:g?void 0:"listbox","aria-labelledby":Aa(o),"aria-activedescendant":g?void 0:O,"aria-multiselectable":!g&&n("multiple")?!0:void 0})}}}var{and:Qn,not:xr,or:qC}=_t(),KC={props({props:e}){return{loopFocus:!1,closeOnSelect:!e.multiple,composite:!0,defaultValue:[],...e,collection:e.collection??Ih.empty(),positioning:{placement:"bottom-start",gutter:8,...e.positioning}}},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:$e,onChange(r){const n=e("collection").findMany(r);return e("onValueChange")?.({value:r,items:n})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(r){e("onHighlightChange")?.({highlightedValue:r,highlightedItem:e("collection").find(r),highlightedIndex:e("collection").indexOf(r)})}})),currentPlacement:t(()=>({defaultValue:void 0})),fieldsetDisabled:t(()=>({defaultValue:!1})),highlightedItem:t(()=>({defaultValue:null})),selectedItems:t(()=>{const r=e("value")??e("defaultValue")??[];return{defaultValue:e("collection").findMany(r)}})}},refs(){return{typeahead:{...qt.defaultOptions}}},computed:{hasSelectedItems:({context:e})=>e.get("value").length>0,isTypingAhead:({refs:e})=>e.get("typeahead").keysSoFar!=="",isDisabled:({prop:e,context:t})=>!!e("disabled")||!!t.get("fieldsetDisabled"),isInteractive:({prop:e})=>!(e("disabled")||e("readOnly")),valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems"))},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"idle"},entry:["syncSelectElement"],watch({context:e,prop:t,track:r,action:n}){r([()=>e.get("value").toString()],()=>{n(["syncSelectedItems","syncSelectElement","dispatchChangeEvent"])}),r([()=>t("open")],()=>{n(["toggleVisibility"])}),r([()=>e.get("highlightedValue")],()=>{n(["syncHighlightedItem"])}),r([()=>t("collection").toString()],()=>{n(["syncCollection"])})},on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]},"CLEAR.CLICK":{actions:["clearSelectedItems","focusTriggerEl"]}},effects:["trackFormControlState"],states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{target:"open",actions:["setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus","highlightFirstSelectedItem"]}],"TRIGGER.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}]}},focused:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{guard:"isTriggerArrowUpEvent",target:"open",actions:["setInitialFocus","highlightComputedLastItem"]},{guard:qC("isTriggerArrowDownEvent","isTriggerEnterEvent"),target:"open",actions:["setInitialFocus","highlightComputedFirstItem"]},{target:"open",actions:["setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}],"TRIGGER.BLUR":{target:"idle"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightFirstSelectedItem"]}],"TRIGGER.ENTER":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_UP":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedLastItem"]}],"TRIGGER.ARROW_DOWN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_LEFT":[{guard:Qn(xr("multiple"),"hasSelectedItems"),actions:["selectPreviousItem"]},{guard:xr("multiple"),actions:["selectLastItem"]}],"TRIGGER.ARROW_RIGHT":[{guard:Qn(xr("multiple"),"hasSelectedItems"),actions:["selectNextItem"]},{guard:xr("multiple"),actions:["selectFirstItem"]}],"TRIGGER.HOME":{guard:xr("multiple"),actions:["selectFirstItem"]},"TRIGGER.END":{guard:xr("multiple"),actions:["selectLastItem"]},"TRIGGER.TYPEAHEAD":{guard:xr("multiple"),actions:["selectMatchingItem"]}}},open:{tags:["open"],exit:["scrollContentToTop"],effects:["trackDismissableElement","computePlacement","scrollToHighlightedItem"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["clearHighlightedItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"restoreFocus",target:"focused",actions:["invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["invokeOnClose","clearHighlightedItem"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","clearHighlightedItem"]}],"ITEM.CLICK":[{guard:Qn("closeOnSelect","isOpenControlled"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{actions:["selectHighlightedItem"]}],"CONTENT.HOME":{actions:["highlightFirstItem"]},"CONTENT.END":{actions:["highlightLastItem"]},"CONTENT.ARROW_DOWN":[{guard:Qn("hasHighlightedItem","loop","isLastItemHighlighted"),actions:["highlightFirstItem"]},{guard:"hasHighlightedItem",actions:["highlightNextItem"]},{actions:["highlightFirstItem"]}],"CONTENT.ARROW_UP":[{guard:Qn("hasHighlightedItem","loop","isFirstItemHighlighted"),actions:["highlightLastItem"]},{guard:"hasHighlightedItem",actions:["highlightPreviousItem"]},{actions:["highlightLastItem"]}],"CONTENT.TYPEAHEAD":{actions:["highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{loop:({prop:e})=>!!e("loopFocus"),multiple:({prop:e})=>!!e("multiple"),hasSelectedItems:({computed:e})=>!!e("hasSelectedItems"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,isFirstItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").firstValue,isLastItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").lastValue,closeOnSelect:({prop:e,event:t})=>!!(t.closeOnSelect??e("closeOnSelect")),restoreFocus:({event:e})=>Rh(e),isOpenControlled:({prop:e})=>e("open")!==void 0,isTriggerClickEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.CLICK",isTriggerEnterEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ENTER",isTriggerArrowUpEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_UP",isTriggerArrowDownEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_DOWN"},effects:{trackFormControlState({context:e,scope:t}){return Do(_a(t),{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){const r=e.initial("value");e.set("value",r)}})},trackDismissableElement({scope:e,send:t,prop:r}){const n=()=>Xn(e);let o=!0;return on(n,{type:"listbox",defer:!0,exclude:[yr(e),jC(e)],onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onInteractOutside(i){r("onInteractOutside")?.(i),o=!(i.detail.focusable||i.detail.contextmenu)},onDismiss(){t({type:"CLOSE",src:"interact-outside",restoreFocus:o})}})},computePlacement({context:e,prop:t,scope:r}){const n=t("positioning");return e.set("currentPlacement",n.placement),ct(()=>yr(r),()=>Ah(r),{defer:!0,...n,onComplete(s){e.set("currentPlacement",s.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:r,event:n}){const o=s=>{const a=e.get("highlightedValue");if(a==null||n.current().type.includes("POINTER"))return;const l=Xn(r),c=t("scrollToIndexFn");if(c){const h=t("collection").indexOf(a);c?.({index:h,immediate:s,getElement:()=>La(r,a)});return}const d=La(r,a);Vn(d,{rootEl:l,block:"nearest"})};return U(()=>o(!0)),Rn(()=>Xn(r),{defer:!0,attributes:["data-activedescendant"],callback(){o(!1)}})}},actions:{reposition({context:e,prop:t,scope:r,event:n}){const o=()=>Ah(r);ct(yr(r),o,{...t("positioning"),...n.options,defer:!0,listeners:!1,onComplete(i){e.set("currentPlacement",i.placement)}})},toggleVisibility({send:e,prop:t,event:r}){e({type:t("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:r})},highlightPreviousItem({context:e,prop:t}){const r=e.get("highlightedValue");if(r==null)return;const n=t("collection").getPreviousValue(r,1,t("loopFocus"));n!=null&&e.set("highlightedValue",n)},highlightNextItem({context:e,prop:t}){const r=e.get("highlightedValue");if(r==null)return;const n=t("collection").getNextValue(r,1,t("loopFocus"));n!=null&&e.set("highlightedValue",n)},highlightFirstItem({context:e,prop:t}){const r=t("collection").firstValue;e.set("highlightedValue",r)},highlightLastItem({context:e,prop:t}){const r=t("collection").lastValue;e.set("highlightedValue",r)},setInitialFocus({scope:e}){U(()=>{Ms({root:Xn(e)})?.focus({preventScroll:!0})})},focusTriggerEl({event:e,scope:t}){Rh(e)&&U(()=>{yr(t)?.focus({preventScroll:!0})})},selectHighlightedItem({context:e,prop:t,event:r}){let n=r.value??e.get("highlightedValue");if(n==null||!t("collection").has(n))return;t("onSelect")?.({value:n}),n=t("deselectable")&&!t("multiple")&&e.get("value").includes(n)?null:n,e.set("value",i=>n==null?[]:t("multiple")?qr(i,n):[n])},highlightComputedFirstItem({context:e,prop:t,computed:r}){const n=t("collection"),o=r("hasSelectedItems")?n.sort(e.get("value"))[0]:n.firstValue;e.set("highlightedValue",o)},highlightComputedLastItem({context:e,prop:t,computed:r}){const n=t("collection"),o=r("hasSelectedItems")?n.sort(e.get("value"))[0]:n.lastValue;e.set("highlightedValue",o)},highlightFirstSelectedItem({context:e,prop:t,computed:r}){if(!r("hasSelectedItems"))return;const n=t("collection").sort(e.get("value"))[0];e.set("highlightedValue",n)},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:r,refs:n}){const o=t("collection").search(r.key,{state:n.get("typeahead"),currentValue:e.get("highlightedValue")});o!=null&&e.set("highlightedValue",o)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:r}){t("onSelect")?.({value:r.value});const o=t("deselectable")&&!t("multiple")&&e.get("value").includes(r.value)?null:r.value;e.set("value",i=>o==null?[]:t("multiple")?qr(i,o):[o])},clearItem({context:e,event:t}){e.set("value",r=>r.filter(n=>n!==t.value))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},selectPreviousItem({context:e,prop:t}){const[r]=e.get("value"),n=t("collection").getPreviousValue(r);n&&e.set("value",[n])},selectNextItem({context:e,prop:t}){const[r]=e.get("value"),n=t("collection").getNextValue(r);n&&e.set("value",[n])},selectFirstItem({context:e,prop:t}){const r=t("collection").firstValue;r&&e.set("value",[r])},selectLastItem({context:e,prop:t}){const r=t("collection").lastValue;r&&e.set("value",[r])},selectMatchingItem({context:e,prop:t,event:r,refs:n}){const o=t("collection").search(r.key,{state:n.get("typeahead"),currentValue:e.get("value")[0]});o!=null&&e.set("value",[o])},scrollContentToTop({prop:e,scope:t}){if(e("scrollToIndexFn")){const r=e("collection").firstValue;e("scrollToIndexFn")?.({index:0,immediate:!0,getElement:()=>La(t,r)})}else Xn(t)?.scrollTo(0,0)},invokeOnOpen({prop:e,context:t}){e("onOpenChange")?.({open:!0,value:t.get("value")})},invokeOnClose({prop:e,context:t}){e("onOpenChange")?.({open:!1,value:t.get("value")})},syncSelectElement({context:e,prop:t,scope:r}){const n=_a(r);if(n){if(e.get("value").length===0&&!t("multiple")){n.selectedIndex=-1;return}for(const o of n.options)o.selected=e.get("value").includes(o.value)}},syncCollection({context:e,prop:t}){const r=t("collection"),n=r.find(e.get("highlightedValue"));n&&e.set("highlightedItem",n);const o=r.findMany(e.get("value"));e.set("selectedItems",o)},syncSelectedItems({context:e,prop:t}){const r=t("collection"),n=e.get("selectedItems"),i=e.get("value").map(s=>n.find(l=>r.getItemValue(l)===s)||r.find(s));e.set("selectedItems",i)},syncHighlightedItem({context:e,prop:t}){const r=t("collection"),n=e.get("highlightedValue"),o=n?r.find(n):null;e.set("highlightedItem",o)},dispatchChangeEvent({scope:e}){queueMicrotask(()=>{const t=_a(e);if(!t)return;const r=e.getWin(),n=new r.Event("change",{bubbles:!0,composed:!0});t.dispatchEvent(n)})}}}};function Rh(e){const t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null||!!t}M()(["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"]),M()(["item","persistFocus"]),M()(["id"]),M()(["htmlFor"]);const YC=e=>{const t=C.useId(),{dir:r}=Gc(),{getRootNode:n}=As(),o=ga(),i={id:t,ids:{label:o?.ids.label,hiddenSelect:o?.ids.control},disabled:o?.disabled,readOnly:o?.readOnly,invalid:o?.invalid,required:o?.required,dir:r,getRootNode:n,...e},s=Gs(KC,i);return GC(s,Xc)},XC=(e,t)=>{const[r,n]=Go(e),[o,i]=Jr()(n,["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","disabled","form","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]),s=YC(o),a=Ln(ee({present:s.open},r)),l=ee(s.getRootProps(),i);return u.jsx(fh,{value:s,children:u.jsx(Yo,{value:a,children:u.jsx(de.div,{...l,ref:t})})})},QC=C.forwardRef(XC),JC=(e,t)=>{const[r,n]=Go(e),[{value:o},i]=Jr()(n,["value"]),s=Ln(ee({present:o.open},r)),a=ee(o.getRootProps(),i);return u.jsx(fh,{value:o,children:u.jsx(Yo,{value:s,children:u.jsx(de.div,{...a,ref:t})})})},ZC=C.forwardRef(JC),Vh=C.forwardRef((e,t)=>{const r=Ue(),n=ee(r.getTriggerProps(),e);return u.jsx(de.button,{...n,ref:t})});Vh.displayName="SelectTrigger";const _h=C.forwardRef((e,t)=>{const{children:r,placeholder:n,...o}=e,i=Ue(),s=ee(i.getValueTextProps(),o);return u.jsx(de.span,{...s,ref:t,children:r||i.valueAsString||n})});_h.displayName="SelectValueText";var Lh=$("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");Lh.build(),M()(["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"]),M()(["index","name"]),M()(["value"]);var Fh=$("switch").parts("root","label","control","thumb");Fh.build(),M()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);var zh=$("tagsInput").parts("root","label","control","input","clearTrigger","item","itemPreview","itemInput","itemText","itemDeleteTrigger");zh.build();var ek=e=>e.ids?.root??`tags-input:${e.id}`,tk=e=>e.ids?.input??`tags-input:${e.id}:input`,rk=e=>e.ids?.hiddenInput??`tags-input:${e.id}:hidden-input`,Fa=(e,t)=>e.ids?.item?.(t)??`tags-input:${e.id}:tag:${t.value}:${t.index}`,nk=(e,t)=>e.ids?.itemInput?.(t)??`${Fa(e,t)}:input`,ok=e=>`${e}:input`,Dh=(e,t)=>e.getById(ok(t)),ik=e=>Xr(Mh(e),"[data-part=item]"),sk=(e,t)=>e.getById(nk(e,t)),Mh=e=>e.getById(ek(e)),Jn=e=>e.getById(tk(e)),$h=e=>e.getById(rk(e)),Sr=e=>Xr(Mh(e),"[data-part=item-preview]:not([data-disabled])"),ak=e=>Sr(e)[0],lk=e=>Sr(e)[Sr(e).length-1],ck=(e,t)=>Hc(Sr(e),t,!1),dk=(e,t)=>Bc(Sr(e),t,!1),uk=(e,t)=>Sr(e)[t],Zn=(e,t)=>Ho(Sr(e),t),hk=(e,t)=>{const r=$h(e);r&&Rc(r,{value:t})},{and:eo,not:Cr,or:fk}=_t();eo(fk(Cr("isAtMax"),"allowOverflow"),Cr("isInputValueEmpty")),Cr("hasHighlightedTag"),eo("hasTags","isCaretAtStart"),eo("hasTags","isCaretAtStart"),eo("hasTags","isCaretAtStart",Cr("isLastTagHighlighted")),Cr("isCaretAtStart"),eo("isTagEditable","hasHighlightedTag"),Cr("isCaretAtStart"),Cr("isCaretAtStart"),M()(["addOnPaste","allowOverflow","autoFocus","blurBehavior","delimiter","dir","disabled","editable","form","getRootNode","id","ids","inputValue","invalid","max","maxLength","name","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onPointerDownOutside","onValueChange","onValueInvalid","required","readOnly","translations","validate","value","defaultValue","defaultInputValue"]),M()(["index","disabled","value"]);var gk=$("toast").parts("group","root","title","description","actionTrigger","closeTrigger");gk.build();var Wh=(e,t)=>e.getById(`toast-group:${t}`),{guards:pk,createMachine:mk}=jo(),{and:vk}=pk;mk({props({props:e}){return{dir:"ltr",id:uc(),...e,store:e.store}},initialState({prop:e}){return e("store").attrs.overlap?"overlap":"stack"},refs(){return{lastFocusedEl:null,isFocusWithin:!1,isPointerWithin:!1,ignoreMouseTimer:zc.create(),dismissableCleanup:void 0}},context({bindable:e}){return{toasts:e(()=>({defaultValue:[],sync:!0,hash:t=>t.map(r=>r.id).join(",")})),heights:e(()=>({defaultValue:[],sync:!0}))}},computed:{count:({context:e})=>e.get("toasts").length,overlap:({prop:e})=>e("store").attrs.overlap,placement:({prop:e})=>e("store").attrs.placement},effects:["subscribeToStore","trackDocumentVisibility","trackHotKeyPress"],watch({track:e,context:t,action:r}){e([()=>t.hash("toasts")],()=>{queueMicrotask(()=>{r(["collapsedIfEmpty","setDismissableBranch"])})})},exit:["clearDismissableBranch","clearLastFocusedEl","clearMouseEventTimer"],on:{"DOC.HOTKEY":{actions:["focusRegionEl"]},"REGION.BLUR":[{guard:vk("isOverlapping","isPointerOut"),target:"overlap",actions:["collapseToasts","resumeToasts","restoreFocusIfPointerOut"]},{guard:"isPointerOut",target:"stack",actions:["resumeToasts","restoreFocusIfPointerOut"]},{actions:["clearFocusWithin"]}],"TOAST.REMOVE":{actions:["removeToast","removeHeight","ignoreMouseEventsTemporarily"]},"TOAST.PAUSE":{actions:["pauseToasts"]}},states:{stack:{on:{"REGION.POINTER_LEAVE":[{guard:"isOverlapping",target:"overlap",actions:["clearPointerWithin","resumeToasts","collapseToasts"]},{actions:["clearPointerWithin","resumeToasts"]}],"REGION.OVERLAP":{target:"overlap",actions:["collapseToasts"]},"REGION.FOCUS":{actions:["setLastFocusedEl","pauseToasts"]},"REGION.POINTER_ENTER":{actions:["setPointerWithin","pauseToasts"]}}},overlap:{on:{"REGION.STACK":{target:"stack",actions:["expandToasts"]},"REGION.POINTER_ENTER":{target:"stack",actions:["setPointerWithin","pauseToasts","expandToasts"]},"REGION.FOCUS":{target:"stack",actions:["setLastFocusedEl","pauseToasts","expandToasts"]}}}},implementations:{guards:{isOverlapping:({computed:e})=>e("overlap"),isPointerOut:({refs:e})=>!e.get("isPointerWithin")},effects:{subscribeToStore({context:e,prop:t}){return t("store").subscribe(r=>{if(r.dismiss){e.set("toasts",n=>n.filter(o=>o.id!==r.id));return}e.set("toasts",n=>{const o=n.findIndex(i=>i.id===r.id);return o!==-1?[...n.slice(0,o),{...n[o],...r},...n.slice(o+1)]:[r,...n]})})},trackHotKeyPress({prop:e,send:t}){return ce(document,"keydown",n=>{const{hotkey:o}=e("store").attrs;o.every(s=>n[s]||n.code===s)&&t({type:"DOC.HOTKEY"})},{capture:!0})},trackDocumentVisibility({prop:e,send:t,scope:r}){const{pauseOnPageIdle:n}=e("store").attrs;if(!n)return;const o=r.getDoc();return ce(o,"visibilitychange",()=>{const i=o.visibilityState==="hidden";t({type:i?"PAUSE_ALL":"RESUME_ALL"})})}},actions:{setDismissableBranch({refs:e,context:t,computed:r,scope:n}){const o=t.get("toasts"),i=r("placement"),s=o.length>0;if(!s){e.get("dismissableCleanup")?.();return}if(s&&e.get("dismissableCleanup"))return;const l=Ix(()=>Wh(n,i),{defer:!0});e.set("dismissableCleanup",l)},clearDismissableBranch({refs:e}){e.get("dismissableCleanup")?.()},focusRegionEl({scope:e,computed:t}){queueMicrotask(()=>{Wh(e,t("placement"))?.focus()})},pauseToasts({prop:e}){e("store").pause()},resumeToasts({prop:e}){e("store").resume()},expandToasts({prop:e}){e("store").expand()},collapseToasts({prop:e}){e("store").collapse()},removeToast({prop:e,event:t}){e("store").remove(t.id)},removeHeight({event:e,context:t}){e?.id!=null&&queueMicrotask(()=>{t.set("heights",r=>r.filter(n=>n.id!==e.id))})},collapsedIfEmpty({send:e,computed:t}){!t("overlap")||t("count")>1||e({type:"REGION.OVERLAP"})},setLastFocusedEl({refs:e,event:t}){e.get("isFocusWithin")||!t.target||(e.set("isFocusWithin",!0),e.set("lastFocusedEl",t.target))},restoreFocusIfPointerOut({refs:e}){!e.get("lastFocusedEl")||e.get("isPointerWithin")||(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))},setPointerWithin({refs:e}){e.set("isPointerWithin",!0)},clearPointerWithin({refs:e}){e.set("isPointerWithin",!1),e.get("lastFocusedEl")&&!e.get("isFocusWithin")&&(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null))},clearFocusWithin({refs:e}){e.set("isFocusWithin",!1)},clearLastFocusedEl({refs:e}){e.get("lastFocusedEl")&&(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))},ignoreMouseEventsTemporarily({refs:e}){e.get("ignoreMouseTimer").request()},clearMouseEventTimer({refs:e}){e.get("ignoreMouseTimer").cancel()}}}});var bk=(e,t)=>({...t,...Ro(e)});function yk(e={}){const t=bk(e,{placement:"bottom",overlap:!1,max:24,gap:16,offsets:"1rem",hotkey:["altKey","KeyT"],removeDelay:200,pauseOnPageIdle:!0});let r=[],n=[],o=new Set,i=[];const s=w=>(r.push(w),()=>{const A=r.indexOf(w);r.splice(A,1)}),a=w=>(r.forEach(A=>A(w)),w),l=w=>{if(n.length>=t.max){i.push(w);return}a(w),n.unshift(w)},c=()=>{for(;i.length>0&&n.length{const A=w.id??`toast:${uc()}`,L=n.find(z=>z.id===A);return o.has(A)&&o.delete(A),L?n=n.map(z=>z.id===A?a({...z,...w,id:A}):z):l({id:A,duration:t.duration,removeDelay:t.removeDelay,type:"info",...w,stacked:!t.overlap,gap:t.gap}),A},h=w=>(o.add(w),w?(r.forEach(A=>A({id:w,dismiss:!0})),n=n.filter(A=>A.id!==w),c()):(n.forEach(A=>{r.forEach(L=>L({id:A.id,dismiss:!0}))}),n=[],i=[]),w);return{attrs:t,subscribe:s,create:d,update:(w,A)=>d({id:w,...A}),remove:h,dismiss:w=>{w!=null?n=n.map(A=>A.id===w?a({...A,message:"DISMISS"}):A):n=n.map(A=>a({...A,message:"DISMISS"}))},error:w=>d({...w,type:"error"}),success:w=>d({...w,type:"success"}),info:w=>d({...w,type:"info"}),warning:w=>d({...w,type:"warning"}),loading:w=>d({...w,type:"loading"}),getVisibleToasts:()=>n.filter(w=>!o.has(w.id)),getCount:()=>n.length,promise:(w,A,L={})=>{if(!A||!A.loading){ar("[zag-js > toast] toaster.promise() requires at least a 'loading' option to be specified");return}const z=d({...L,...A.loading,promise:w,type:"loading"});let H=!0,Z;const ne=Po(w).then(async q=>{if(Z=["resolve",q],xk(q)&&!q.ok){H=!1;const Q=Po(A.error,`HTTP Error! status: ${q.status}`);d({...L,...Q,id:z,type:"error"})}else if(A.success!==void 0){H=!1;const Q=Po(A.success,q);d({...L,...Q,id:z,type:"success"})}}).catch(async q=>{if(Z=["reject",q],A.error!==void 0){H=!1;const Q=Po(A.error,q);d({...L,...Q,id:z,type:"error"})}}).finally(()=>{H&&h(z),A.finally?.()});return{id:z,unwrap:()=>new Promise((q,Q)=>ne.then(()=>Z[0]==="reject"?Q(Z[1]):q(Z[1])).catch(Q))}},pause:w=>{w!=null?n=n.map(A=>A.id===w?a({...A,message:"PAUSE"}):A):n=n.map(A=>a({...A,message:"PAUSE"}))},resume:w=>{w!=null?n=n.map(A=>A.id===w?a({...A,message:"RESUME"}):A):n=n.map(A=>a({...A,message:"RESUME"}))},isVisible:w=>!o.has(w)&&!!n.find(A=>A.id===w),isDismissed:w=>o.has(w),expand:()=>{n=n.map(w=>a({...w,stacked:!0}))},collapse:()=>{n=n.map(w=>a({...w,stacked:!1}))}}}var xk=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number";const Sk=e=>yk(e);var Bh=$("tooltip").parts("trigger","arrow","arrowTip","positioner","content");Bh.build();var Ck=e=>e.ids?.trigger??`tooltip:${e.id}:trigger`,kk=e=>e.ids?.positioner??`tooltip:${e.id}:popper`,za=e=>e.getById(Ck(e)),Hh=e=>e.getById(kk(e)),kr=o0({id:null}),{and:wk,not:Uh}=_t();wk("noVisibleTooltip",Uh("hasPointerMoveOpened")),Uh("hasPointerMoveOpened"),M()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);function jh(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}const Ek=(e,t)=>{if(!e||typeof e!="string")return{invalid:!0,value:e};const[r,n]=e.split("/");if(!r||!n||r==="currentBg")return{invalid:!0,value:r};const o=t(`colors.${r}`),i=t.raw(`opacity.${n}`)?.value;if(!i&&isNaN(Number(n)))return{invalid:!0,value:r};const s=i?Number(i)*100+"%":`${n}%`,a=o??r;return{invalid:!1,color:a,value:`color-mix(in srgb, ${a} ${s}, transparent)`}},oe=e=>(t,r)=>{const n=r.utils.colorMix(t);if(n.invalid)return{[e]:t};const o="--mix-"+e;return{[o]:n.value,[e]:`var(${o}, ${n.color})`}};function Da(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(r=>Da(r));const t=Object.create(Object.getPrototypeOf(e));for(const r of Object.keys(e))t[r]=Da(e[r]);return t}function Ma(e,t){if(t==null)return e;for(const r of Object.keys(t))if(!(t[r]===void 0||r==="__proto__"))if(!Me(e[r])&&Me(t[r]))Object.assign(e,{[r]:t[r]});else if(e[r]&&Me(t[r]))Ma(e[r],t[r]);else if(Array.isArray(t[r])&&Array.isArray(e[r])){let n=0;for(;ne!=null;function Ct(e,t,r={}){const{stop:n,getKey:o}=r;function i(s,a=[]){if(Me(s)||Array.isArray(s)){const l={};for(const[c,d]of Object.entries(s)){const h=o?.(c,d)??c,g=[...a,h];if(n?.(s,g))return t(s,a);const f=i(d,g);$a(f)&&(l[h]=f)}return l}return t(s,a)}return i(e)}function Gh(e,t){return Array.isArray(e)?e.map(r=>$a(r)?t(r):r):Me(e)?Ct(e,r=>t(r)):$a(e)?t(e):e}const wi=["value","type","description"],Ok=e=>e&&typeof e=="object"&&!Array.isArray(e),qh=(...e)=>{const t=dn({},...e.map(Da));return t.theme?.tokens&&Ct(t.theme.tokens,r=>{const i=Object.keys(r).filter(a=>!wi.includes(a)).length>0,s=wi.some(a=>r[a]!=null);return i&&s&&(r.DEFAULT||(r.DEFAULT={}),wi.forEach(a=>{var l;r[a]!=null&&((l=r.DEFAULT)[a]||(l[a]=r[a]),delete r[a])})),r},{stop(r){return Ok(r)&&Object.keys(r).some(n=>wi.includes(n)||n!==n.toLowerCase()&&n!==n.toUpperCase())}}),t},Ik=e=>e,Se=e=>e,W=e=>e,Tk=e=>e,Pk=e=>e,un=e=>e,Nk=e=>e,Ak=e=>e,Rk=e=>e;function Kh(){const e=t=>t;return new Proxy(e,{get(){return e}})}const ve=Kh(),Wa=Kh(),Ba=e=>e,Vk=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function _k(e){return`${e}`.replace(Vk,t=>`\\${t}`)}const Lk=/[A-Z]/g;function Fk(e){return e.replace(Lk,t=>`-${t.toLowerCase()}`)}function Yh(e,t={}){const{fallback:r="",prefix:n=""}=t,o=Fk(["-",n,_k(e)].filter(Boolean).join("-"));return{var:o,ref:`var(${o}${r?`, ${r}`:""})`}}const zk=e=>/^var\(--.+\)$/.test(e),we=(e,t)=>t!=null?`${e}(${t})`:t,wr=e=>{if(zk(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},Xh=e=>({values:["outside","inside","mixed","none"],transform(t,{token:r}){const n=r("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":n,[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":n,[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":n,[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":n,[e]:{outline:"none"}}}[t]??{}}}),Dk=oe("borderColor"),Dt=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),Mk=Ik({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"}),hn=Yh("bg-currentcolor"),Qh=e=>e===hn.ref||e==="currentBg",ie=e=>({...e("colors"),currentBg:hn}),$k=Ba({conditions:Mk,utilities:{background:{values:ie,shorthand:["bg"],transform(e,t){if(Qh(t.raw))return{background:hn.ref};const r=oe("background")(e,t);return{...r,[hn.var]:r?.background}}},backgroundColor:{values:ie,shorthand:["bgColor"],transform(e,t){if(Qh(t.raw))return{backgroundColor:hn.ref};const r=oe("backgroundColor")(e,t);return{...r,[hn.var]:r?.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:ie,transform:oe("--gradient-from")},gradientTo:{values:ie,transform:oe("--gradient-to")},gradientVia:{values:ie,transform(e,t){return{...oe("--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:ie,transform:oe("borderColor")},borderTopColor:{values:ie,transform:oe("borderTopColor")},borderBlockStartColor:{values:ie,transform:oe("borderBlockStartColor")},borderBottomColor:{values:ie,transform:oe("borderBottomColor")},borderBlockEndColor:{values:ie,transform:oe("borderBlockEndColor")},borderLeftColor:{values:ie,transform:oe("borderLeftColor")},borderInlineStartColor:{values:ie,shorthand:["borderStartColor"],transform:oe("borderInlineStartColor")},borderRightColor:{values:ie,transform:oe("borderRightColor")},borderInlineEndColor:{values:ie,shorthand:["borderEndColor"],transform:oe("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:ie,transform:oe("color")},fill:{values:ie,transform:oe("fill")},stroke:{values:ie,transform:oe("stroke")},accentColor:{values:ie,transform:oe("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:ie,transform(e,t){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":Dk(e,t)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:ie,transform:oe("--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":we("blur",e)})},brightness:{transform:e=>({"--brightness":we("brightness",e)})},contrast:{transform:e=>({"--contrast":we("contrast",e)})},grayscale:{transform:e=>({"--grayscale":we("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":we("hue-rotate",wr(e))})},invert:{transform:e=>({"--invert":we("invert",e)})},saturate:{transform:e=>({"--saturate":we("saturate",e)})},sepia:{transform:e=>({"--sepia":we("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":we("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":we("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":we("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":we("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":we("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":we("hue-rotate",wr(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":we("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":we("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":we("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":we("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:ie,transform:oe("outlineColor")},focusRing:Xh("&:is(:focus, [data-focus])"),focusVisibleRing:Xh("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:ie,transform:oe("--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:r})=>({[r.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:r}){return{[r.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:ie,transform:oe("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:ie,transform:oe("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:ie,transform:oe("--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:ie,transform:oe("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":wr(e)})},skewY:{transform:e=>({"--skew-y":wr(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:wr(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":wr(e)}}},rotateY:{transform(e){return{"--rotate-y":wr(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 Dt("all");case"position":return Dt("left, right, top, bottom, inset-inline, inset-block");case"colors":return Dt("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return Dt("opacity");case"shadow":return Dt("box-shadow");case"transform":return Dt("transform");case"size":return Dt("width, height");case"backgrounds":return Dt("background, background-color, background-image, background-position");case"common":return Dt("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 Wk[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:ie,transform:oe("caretColor")},cursor:{values:"cursor"}}}),Wk={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 Bk="",Hk=Bk.split(","),Uk="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",jk=Uk.split(",").concat(Hk),Gk=new Map(jk.map(e=>[e,!0]));function qk(e){const t=Object.create(null);return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}var Kk=/&|@/,Yk=qk(e=>Gk.has(e)||e.startsWith("--")||Kk.test(e));function dt(e,t){const r={};for(const n in e){const o=t(n,e[n]);r[o[0]]=o[1]}return r}function Jh(e,t){const r={};return Ct(e,(n,o)=>{n&&(r[o.join(".")]=n.value)},{stop:t}),r}var Xk=Object.defineProperty,Qk=(e,t,r)=>t in e?Xk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Zh=(e,t,r)=>Qk(e,typeof t!="symbol"?t+"":t,r);function Ei(e){if(e===null)return"null";if(e===void 0)return"undefined";const t=typeof e;return t==="string"?`s:${e}`:t==="number"?`n:${e}`:t==="boolean"?`b:${e}`:t==="function"?`f:${e.name||"anonymous"}`:Array.isArray(e)?`a:[${e.map(Ei).join(",")}]`:t==="object"?`o:{${Object.keys(e).sort().map(n=>`${n}:${Ei(e[n])}`).join(",")}}`:String(e)}class Jk{constructor(t=500){Zh(this,"cache",new Map),Zh(this,"maxSize"),this.maxSize=t}get(t){const r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){const n=this.cache.keys().next().value;n!==void 0&&this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}}const je=e=>{const t=new Jk;function r(...n){const o=n.length===1?Ei(n[0]):n.map(Ei).join("|");let i=t.get(o);return i===void 0&&(i=e.apply(this,n),t.set(o,i)),i}return r},ef=16,Oi="px",Ha="em",to="rem";function tf(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),r=new RegExp(`${Oi}|${Ha}|${to}`);return e.match(new RegExp(`${t.source}(${r.source})`))?.[1]}function rf(e=""){if(typeof e=="number")return`${e}px`;const t=tf(e);if(!t||t===Oi)return e;if(t===Ha||t===to)return`${parseFloat(e)*ef}${Oi}`}function nf(e=""){const t=tf(e);if(!t||t===to)return e;if(t===Ha)return`${parseFloat(e)}${to}`;if(t===Oi)return`${parseFloat(e)/ef}${to}`}const Zk=e=>e.charAt(0).toUpperCase()+e.slice(1);function ew(e){const t=tw(e),r=Object.fromEntries(t);function n(g){return r[g]}function o(g){return fn(n(g))}function i(){const g=Object.keys(r),f=rw(g),p=g.flatMap(m=>{const v=n(m),x=[`${m}Down`,fn({max:Ii(v.min)})],k=[m,fn({min:v.min})],y=[`${m}Only`,o(m)];return[k,y,x]}).filter(([,m])=>m!=="").concat(f.map(([m,v])=>{const x=n(m),k=n(v);return[`${m}To${Zk(v)}`,fn({min:x.min,max:Ii(k.min)})]}));return Object.fromEntries(p)}function s(){const g=i();return Object.fromEntries(Object.entries(g))}const a=s(),l=g=>a[g];function c(){return ks(["base",...Object.keys(r)])}function d(g){return fn({min:n(g).min})}function h(g){return fn({max:Ii(n(g).min)})}return{values:Object.values(r),only:o,keys:c,conditions:a,getCondition:l,up:d,down:h}}function Ii(e){const t=parseFloat(rf(e)??"")-.04;return nf(`${t}px`)}function tw(e){return Object.entries(e).sort(([,r],[,n])=>parseInt(r,10){let s=null;return o<=i.length-1&&(s=i[o+1]?.[1]),s!=null&&(s=Ii(s)),[r,{name:r,min:nf(n),max:s}]})}function rw(e){const t=[];return e.forEach((r,n)=>{let o=n;o++;let i=e[o];for(;i;)t.push([r,i]),o++,i=e[o]}),t}function fn({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const nw=/^@|&|&$/,ow=e=>{const{breakpoints:t,conditions:r={}}=e,n=dt(r,(d,h)=>[`_${d}`,h]),o=Object.assign({},n,t.conditions);function i(){return Object.keys(o)}function s(d){return i().includes(d)||nw.test(d)||d.startsWith("_")}const a=je(d=>d.filter(h=>h!=="base").sort((h,g)=>{const f=s(h),p=s(g);return f&&!p?1:!f&&p?-1:0}));function l(d){return d.startsWith("@breakpoint")?t.getCondition(d.replace("@breakpoint ","")):d}function c(d){return Reflect.get(o,d)||d}return{keys:i,sort:a,has:s,resolve:c,breakpoints:t.keys(),expandAtRule:l}},ae=Object.freeze(Object.create(null)),iw=Object.freeze([]);function Ti(){return Object.create(null)}const of=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.| + `,r.body.appendChild(n)};function PC(e,t){if(!(!e||!t.isActiveElement(e)))try{const{selectionStart:r,selectionEnd:n,value:o}=e;return r==null||n==null?void 0:{start:r,end:n,value:o}}catch{return}}function NC(e,t,r){if(!(!e||!r.isActiveElement(e))){if(!t){const n=e.value.length;e.setSelectionRange(n,n);return}try{const n=e.value,{start:o,end:i,value:s}=t;if(n===s){e.setSelectionRange(o,i);return}const a=sh(s,n,o),l=o===i?a:sh(s,n,i),c=Math.max(0,Math.min(a,n.length)),u=Math.max(c,Math.min(l,n.length));e.setSelectionRange(c,u)}catch{const n=e.value.length;e.setSelectionRange(n,n)}}}function sh(e,t,r){const n=e.slice(0,r),o=e.slice(r);let i=0;const s=Math.min(n.length,t.length);for(let c=0;c=n.length)return i;if(a>=o.length)return t.length-a;if(i>0)return i;if(a>0)return t.length-a;if(e.length>0){const c=r/e.length;return Math.round(c*t.length)}return t.length}var AC=(e,t={})=>new Intl.NumberFormat(e,t),VC=(e,t={})=>new Jd(e,t),Ta=(e,t)=>{const{prop:r,computed:n}=t;return r("formatOptions")?e===""?Number.NaN:n("parser").parse(e):parseFloat(e)},yr=(e,t)=>{const{prop:r,computed:n}=t;return Number.isNaN(e)?"":r("formatOptions")?n("formatter").format(e):e.toString()},RC=(e,t)=>{let r=e!==void 0&&!Number.isNaN(e)?e:1;return t?.style==="percent"&&(e===void 0||Number.isNaN(e))&&(r=.01),r},{choose:_C,guards:LC,createMachine:FC}=Go(),{not:ah,and:lh}=LC;FC({props({props:e}){const t=RC(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:r}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),onChange(n){const o=r(),i=Ta(n,{computed:o,prop:e});e("onValueChange")?.({value:n,valueAsNumber:i})}})),hint:t(()=>({defaultValue:null})),scrubberCursorPoint:t(()=>({defaultValue:null,hash(n){return n?`x:${n.x}, y:${n.y}`:""}})),fieldsetDisabled:t(()=>({defaultValue:!1}))}},computed:{isRtl:({prop:e})=>e("dir")==="rtl",valueAsNumber:({context:e,computed:t,prop:r})=>Ta(e.get("value"),{computed:t,prop:r}),formattedValue:({computed:e,prop:t})=>yr(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>Zv(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>Jv(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!e0(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})=>e("translations").valueText?.(t.get("value")),formatter:Gc(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>AC(e,t)),parser:Gc(({prop:e})=>[e("locale"),e("formatOptions")],([e,t])=>VC(e,t))},watch({track:e,action:t,context:r,computed:n,prop:o}){e([()=>r.get("value"),()=>o("locale"),()=>JSON.stringify(o("formatOptions"))],()=>{t(["syncInputElement"])}),e([()=>n("isOutOfRange")],()=>{t(["invokeOnInvalid"])}),e([()=>r.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:lh("clampValueOnBlur",ah("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]},{guard:ah("isInRange"),target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnInvalid","invokeOnValueCommit"]},{target:"idle",actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]}],"INPUT.ENTER":{actions:["setFormattedValue","clearHint","invokeOnBlur","invokeOnValueCommit"]}}},"before:spin":{tags:["focus"],effects:["trackButtonDisabled","waitForChangeDelay"],entry:_C([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:lh("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 r=ki(t);return Mo(r,{onFieldsetDisabledChange(n){e.set("fieldsetDisabled",n)},onFormReset(){e.set("value",e.initial("value"))}})},setupVirtualCursor({context:e,scope:t}){const r=e.get("scrubberCursorPoint");return EC(t,r)},preventTextSelection({scope:e}){return OC(e)},trackButtonDisabled({context:e,scope:t,send:r}){const n=e.get("hint"),o=wC(t,n);return Rn(o,{attributes:["disabled"],callback(){r({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:r}){const n=ki(e);if(!n||!e.isActiveElement(n)||!r("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 ce(n,"wheel",o,{passive:!1})},activatePointerLock({scope:e}){if(!Pc())return db(e.getDoc())},trackMousemove({scope:e,send:t,context:r,computed:n}){const o=e.getDoc();function i(a){const l=r.get("scrubberCursorPoint"),c=n("isRtl"),u=IC(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 Ao(ce(o,"mousemove",i,!1),ce(o,"mouseup",s,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const r=ki(e);e.isActiveElement(r)||W(()=>r?.focus({preventScroll:!0}))},increment({context:e,event:t,prop:r,computed:n}){let o=o0(n("valueAsNumber"),t.step??r("step"));r("allowOverflow")||(o=Be(o,r("min"),r("max"))),e.set("value",yr(o,{computed:n,prop:r}))},decrement({context:e,event:t,prop:r,computed:n}){let o=i0(n("valueAsNumber"),t.step??r("step"));r("allowOverflow")||(o=Be(o,r("min"),r("max"))),e.set("value",yr(o,{computed:n,prop:r}))},setClampedValue({context:e,prop:t,computed:r}){const n=Be(r("valueAsNumber"),t("min"),t("max"));e.set("value",yr(n,{computed:r,prop:t}))},setRawValue({context:e,event:t,prop:r,computed:n}){let o=Ta(t.value,{computed:n,prop:r});r("allowOverflow")||(o=Be(o,r("min"),r("max"))),e.set("value",yr(o,{computed:n,prop:r}))},setValue({context:e,event:t}){const r=t.target?.value??t.value;e.set("value",r)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:r}){const n=yr(t("max"),{computed:r,prop:t});e.set("value",n)},decrementToMin({context:e,prop:t,computed:r}){const n=yr(t("min"),{computed:r,prop:t});e.set("value",n)},setHint({context:e,event:t}){e.set("hint",t.hint)},clearHint({context:e}){e.set("hint",null)},invokeOnFocus({computed:e,prop:t}){t("onFocusChange")?.({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){t("onFocusChange")?.({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:r}){if(r.type==="INPUT.CHANGE")return;const n=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";t("onValueInvalid")?.({reason:n,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnValueCommit({computed:e,prop:t}){t("onValueCommit")?.({value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},syncInputElement({context:e,event:t,computed:r,scope:n}){const o=t.type.endsWith("CHANGE")?e.get("value"):r("formattedValue"),i=ki(n),s=t.selection??PC(i,n);W(()=>{cr(i,o),NC(i,s,n)})},setFormattedValue({context:e,computed:t,action:r}){e.set("value",t("formattedValue")),r(["syncInputElement"])},setCursorPoint({context:e,event:t}){e.set("scrubberCursorPoint",t.point)},clearCursorPoint({context:e}){e.set("scrubberCursorPoint",null)},setVirtualCursorPosition({context:e,scope:t}){const r=ih(t),n=e.get("scrubberCursorPoint");!r||!n||(r.style.transform=`translate3d(${n.x}px, ${n.y}px, 0px)`)}}}}),M()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueCommit","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var ch=$("pinInput").parts("root","label","input","control");ch.build(),M()(["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=$("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");uh.build(),M()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","onRequestDismiss","defaultOpen","open","persistentElements","portalled","positioning"]);var Pa=$("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");Pa.build(),M()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var dh=$("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");dh.build(),M()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var Na=$("radio-group").parts("root","label","item","itemText","itemControl","indicator");Na.build(),M()(["dir","disabled","form","getRootNode","id","ids","invalid","name","onValueChange","orientation","readOnly","required","value","defaultValue"]),M()(["value","disabled","invalid"]);var hh=$("rating-group").parts("root","label","item","control");hh.build(),M()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]),M()(["index"]);var fh=$("scroll-area").parts("root","viewport","content","scrollbar","thumb","corner");fh.build(),M()(["dir","getRootNode","ids","id"]);const gh=Na.rename("segment-group");gh.build();const[ph,je]=mt({name:"SelectContext",hookName:"useSelectContext",providerName:""}),mh=C.forwardRef((e,t)=>{const r=je(),n=ee(r.getClearTriggerProps(),e);return h.jsx(ue.button,{...n,ref:t})});mh.displayName="SelectClearTrigger";const vh=C.forwardRef((e,t)=>{const r=je(),n=zn(),o=ee(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:h.jsx(ue.div,{...o,ref:Ln(n.ref,t)})});vh.displayName="SelectContent";const zC=e=>e.children(je()),bh=C.forwardRef((e,t)=>{const r=je(),n=ee(r.getControlProps(),e);return h.jsx(ue.div,{...n,ref:t})});bh.displayName="SelectControl";const yh=C.forwardRef((e,t)=>{const r=je(),n=ee(r.getIndicatorProps(),e);return h.jsx(ue.div,{...n,ref:t})});yh.displayName="SelectIndicator";const[DC]=mt({name:"SelectItemContext",hookName:"useSelectItemContext",providerName:""}),[MC,xh]=mt({name:"SelectItemPropsContext",hookName:"useSelectItemPropsContext",providerName:""}),$C=Zr(),Sh=C.forwardRef((e,t)=>{const[r,n]=$C(e,["item","persistFocus"]),o=je(),i=ee(o.getItemProps(r),n),s=o.getItemState(r);return h.jsx(MC,{value:r,children:h.jsx(DC,{value:s,children:h.jsx(ue.div,{...i,ref:t})})})});Sh.displayName="SelectItem";const[WC,BC]=mt({name:"SelectItemGroupPropsContext",hookName:"useSelectItemGroupPropsContext",providerName:""}),HC=Zr(),Ch=C.forwardRef((e,t)=>{const r=C.useId(),[n,o]=HC(e,["id"]),i={id:r,...n},s=je(),a=ee(s.getItemGroupProps(i),o);return h.jsx(WC,{value:i,children:h.jsx(ue.div,{...a,ref:t})})});Ch.displayName="SelectItemGroup";const kh=C.forwardRef((e,t)=>{const r=je(),n=BC(),o=ee(r.getItemGroupLabelProps({htmlFor:n.id}),e);return h.jsx(ue.div,{...o,ref:t})});kh.displayName="SelectItemGroupLabel";const wh=C.forwardRef((e,t)=>{const r=je(),n=xh(),o=ee(r.getItemIndicatorProps(n),e);return h.jsx(ue.div,{...o,ref:t})});wh.displayName="SelectItemIndicator";const Eh=C.forwardRef((e,t)=>{const r=je(),n=xh(),o=ee(r.getItemTextProps(n),e);return h.jsx(ue.span,{...o,ref:t})});Eh.displayName="SelectItemText";const Oh=C.forwardRef((e,t)=>{const r=je(),n=ee(r.getLabelProps(),e);return h.jsx(ue.label,{...n,ref:t})});Oh.displayName="SelectLabel";const Ih=C.forwardRef((e,t)=>{const r=je(),n=ee(r.getPositionerProps(),e);return zn().unmounted?null:h.jsx(ue.div,{...n,ref:t})});Ih.displayName="SelectPositioner";var Th=$("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText"),ze=Th.build(),Ph=e=>new gr(e);Ph.empty=()=>new gr({items:[]});var UC=e=>e.ids?.root??`select:${e.id}`,Aa=e=>e.ids?.content??`select:${e.id}:content`,Va=e=>e.ids?.trigger??`select:${e.id}:trigger`,Nh=e=>e.ids?.clearTrigger??`select:${e.id}:clear-trigger`,wi=e=>e.ids?.label??`select:${e.id}:label`,jC=e=>e.ids?.control??`select:${e.id}:control`,Ra=(e,t)=>e.ids?.item?.(t)??`select:${e.id}:option:${t}`,_a=e=>e.ids?.hiddenSelect??`select:${e.id}:select`,Ah=e=>e.ids?.positioner??`select:${e.id}:positioner`,GC=(e,t)=>e.ids?.itemGroup?.(t)??`select:${e.id}:optgroup:${t}`,Vh=(e,t)=>e.ids?.itemGroupLabel?.(t)??`select:${e.id}:optgroup-label:${t}`,La=e=>e.getById(_a(e)),Qn=e=>e.getById(Aa(e)),xr=e=>e.getById(Va(e)),qC=e=>e.getById(Nh(e)),Rh=e=>e.getById(Ah(e)),Fa=(e,t)=>t==null?null:e.getById(Ra(e,t));function KC(e,t){const{context:r,prop:n,scope:o,state:i,computed:s,send:a}=e,l=n("disabled")||r.get("fieldsetDisabled"),c=!!n("invalid"),u=!!n("required"),d=!!n("readOnly"),g=n("composite"),f=n("collection"),p=i.hasTag("open"),m=i.matches("focused"),v=r.get("highlightedValue"),x=r.get("highlightedItem"),k=r.get("selectedItems"),y=r.get("currentPlacement"),S=s("isTypingAhead"),b=s("isInteractive"),O=v?Ra(o,v):void 0;function T(E){const P=f.getItemDisabled(E.item),N=f.getItemValue(E.item);return As(N,()=>`[zag-js] No value found for item ${JSON.stringify(E.item)}`),{value:N,disabled:!!(l||P),highlighted:v===N,selected:r.get("value").includes(N)}}const V=mx({...n("positioning"),placement:y});return{open:p,focused:m,empty:r.get("value").length===0,highlightedItem:x,highlightedValue:v,selectedItems:k,hasSelectedItems:s("hasSelectedItems"),value:r.get("value"),valueAsString:s("valueAsString"),collection:f,multiple:!!n("multiple"),disabled:!!l,reposition(E={}){a({type:"POSITIONING.SET",options:E})},focus(){xr(o)?.focus({preventScroll:!0})},setOpen(E){i.hasTag("open")!==E&&a({type:E?"OPEN":"CLOSE"})},selectValue(E){a({type:"ITEM.SELECT",value:E})},setValue(E){a({type:"VALUE.SET",value:E})},selectAll(){a({type:"VALUE.SET",value:f.getValues()})},setHighlightValue(E){a({type:"HIGHLIGHTED_VALUE.SET",value:E})},clearHighlightValue(){a({type:"HIGHLIGHTED_VALUE.CLEAR"})},clearValue(E){a(E?{type:"ITEM.CLEAR",value:E}:{type:"VALUE.CLEAR"})},getItemState:T,getRootProps(){return t.element({...ze.root.attrs,dir:n("dir"),id:UC(o),"data-invalid":le(c),"data-readonly":le(d)})},getLabelProps(){return t.label({dir:n("dir"),id:wi(o),...ze.label.attrs,"data-disabled":le(l),"data-invalid":le(c),"data-readonly":le(d),"data-required":le(u),htmlFor:_a(o),onClick(E){E.defaultPrevented||l||xr(o)?.focus({preventScroll:!0})}})},getControlProps(){return t.element({...ze.control.attrs,dir:n("dir"),id:jC(o),"data-state":p?"open":"closed","data-focus":le(m),"data-disabled":le(l),"data-invalid":le(c)})},getValueTextProps(){return t.element({...ze.valueText.attrs,dir:n("dir"),"data-disabled":le(l),"data-invalid":le(c),"data-focus":le(m)})},getTriggerProps(){return t.button({id:Va(o),disabled:l,dir:n("dir"),type:"button",role:"combobox","aria-controls":Aa(o),"aria-expanded":p,"aria-haspopup":"listbox","data-state":p?"open":"closed","aria-invalid":c,"aria-required":u,"aria-labelledby":wi(o),...ze.trigger.attrs,"data-disabled":le(l),"data-invalid":le(c),"data-readonly":le(d),"data-placement":y,"data-placeholder-shown":le(!s("hasSelectedItems")),onClick(E){b&&(E.defaultPrevented||a({type:"TRIGGER.CLICK"}))},onFocus(){a({type:"TRIGGER.FOCUS"})},onBlur(){a({type:"TRIGGER.BLUR"})},onKeyDown(E){if(E.defaultPrevented||!b)return;const N={ArrowUp(){a({type:"TRIGGER.ARROW_UP"})},ArrowDown(w){a({type:w.altKey?"OPEN":"TRIGGER.ARROW_DOWN"})},ArrowLeft(){a({type:"TRIGGER.ARROW_LEFT"})},ArrowRight(){a({type:"TRIGGER.ARROW_RIGHT"})},Home(){a({type:"TRIGGER.HOME"})},End(){a({type:"TRIGGER.END"})},Enter(){a({type:"TRIGGER.ENTER"})},Space(w){a(S?{type:"TRIGGER.TYPEAHEAD",key:w.key}:{type:"TRIGGER.ENTER"})}}[Ac(E,{dir:n("dir"),orientation:"vertical"})];if(N){N(E),E.preventDefault();return}qt.isValidEvent(E)&&(a({type:"TRIGGER.TYPEAHEAD",key:E.key}),E.preventDefault())}})},getIndicatorProps(){return t.element({...ze.indicator.attrs,dir:n("dir"),"aria-hidden":!0,"data-state":p?"open":"closed","data-disabled":le(l),"data-invalid":le(c),"data-readonly":le(d)})},getItemProps(E){const P=T(E);return t.element({id:Ra(o,P.value),role:"option",...ze.item.attrs,dir:n("dir"),"data-value":P.value,"aria-selected":P.selected,"data-state":P.selected?"checked":"unchecked","data-highlighted":le(P.highlighted),"data-disabled":le(P.disabled),"aria-disabled":g0(P.disabled),onPointerMove(N){P.disabled||N.pointerType!=="mouse"||P.value!==v&&a({type:"ITEM.POINTER_MOVE",value:P.value})},onClick(N){N.defaultPrevented||P.disabled||a({type:"ITEM.CLICK",src:"pointerup",value:P.value})},onPointerLeave(N){P.disabled||E.persistFocus||N.pointerType!=="mouse"||!e.event.previous()?.type.includes("POINTER")||a({type:"ITEM.POINTER_LEAVE"})}})},getItemTextProps(E){const P=T(E);return t.element({...ze.itemText.attrs,"data-state":P.selected?"checked":"unchecked","data-disabled":le(P.disabled),"data-highlighted":le(P.highlighted)})},getItemIndicatorProps(E){const P=T(E);return t.element({"aria-hidden":!0,...ze.itemIndicator.attrs,"data-state":P.selected?"checked":"unchecked",hidden:!P.selected})},getItemGroupLabelProps(E){const{htmlFor:P}=E;return t.element({...ze.itemGroupLabel.attrs,id:Vh(o,P),dir:n("dir"),role:"presentation"})},getItemGroupProps(E){const{id:P}=E;return t.element({...ze.itemGroup.attrs,"data-disabled":le(l),id:GC(o,P),"aria-labelledby":Vh(o,P),role:"group",dir:n("dir")})},getClearTriggerProps(){return t.button({...ze.clearTrigger.attrs,id:Nh(o),type:"button","aria-label":"Clear value","data-invalid":le(c),disabled:l,hidden:!s("hasSelectedItems"),dir:n("dir"),onClick(E){E.defaultPrevented||a({type:"CLEAR.CLICK"})}})},getHiddenSelectProps(){const E=r.get("value"),P=n("multiple")?E:E?.[0];return t.select({name:n("name"),form:n("form"),disabled:l,multiple:n("multiple"),required:n("required"),"aria-hidden":!0,id:_a(o),defaultValue:P,style:wb,tabIndex:-1,onFocus(){xr(o)?.focus({preventScroll:!0})},"aria-labelledby":wi(o)})},getPositionerProps(){return t.element({...ze.positioner.attrs,dir:n("dir"),id:Ah(o),style:V.floating})},getContentProps(){return t.element({hidden:!p,dir:n("dir"),id:Aa(o),role:g?"listbox":"dialog",...ze.content.attrs,"data-state":p?"open":"closed","data-placement":y,"data-activedescendant":O,"aria-activedescendant":g?O:void 0,"aria-multiselectable":n("multiple")&&g?!0:void 0,"aria-labelledby":wi(o),tabIndex:0,onKeyDown(E){if(!b||!Vt(E.currentTarget,_e(E)))return;if(E.key==="Tab"&&!ib(E)){E.preventDefault();return}const P={ArrowUp(){a({type:"CONTENT.ARROW_UP"})},ArrowDown(){a({type:"CONTENT.ARROW_DOWN"})},Home(){a({type:"CONTENT.HOME"})},End(){a({type:"CONTENT.END"})},Enter(){a({type:"ITEM.CLICK",src:"keydown.enter"})},Space(A){S?a({type:"CONTENT.TYPEAHEAD",key:A.key}):P.Enter?.(A)}},N=P[Ac(E)];if(N){N(E),E.preventDefault();return}const w=_e(E);Ls(w)||qt.isValidEvent(E)&&(a({type:"CONTENT.TYPEAHEAD",key:E.key}),E.preventDefault())}})},getListProps(){return t.element({...ze.list.attrs,tabIndex:0,role:g?void 0:"listbox","aria-labelledby":Va(o),"aria-activedescendant":g?void 0:O,"aria-multiselectable":!g&&n("multiple")?!0:void 0})}}}var{and:Jn,not:Sr,or:YC}=_t(),XC={props({props:e}){return{loopFocus:!1,closeOnSelect:!e.multiple,composite:!0,defaultValue:[],...e,collection:e.collection??Ph.empty(),positioning:{placement:"bottom-start",gutter:8,...e.positioning}}},context({prop:e,bindable:t}){return{value:t(()=>({defaultValue:e("defaultValue"),value:e("value"),isEqual:We,onChange(r){const n=e("collection").findMany(r);return e("onValueChange")?.({value:r,items:n})}})),highlightedValue:t(()=>({defaultValue:e("defaultHighlightedValue")||null,value:e("highlightedValue"),onChange(r){e("onHighlightChange")?.({highlightedValue:r,highlightedItem:e("collection").find(r),highlightedIndex:e("collection").indexOf(r)})}})),currentPlacement:t(()=>({defaultValue:void 0})),fieldsetDisabled:t(()=>({defaultValue:!1})),highlightedItem:t(()=>({defaultValue:null})),selectedItems:t(()=>{const r=e("value")??e("defaultValue")??[];return{defaultValue:e("collection").findMany(r)}})}},refs(){return{typeahead:{...qt.defaultOptions}}},computed:{hasSelectedItems:({context:e})=>e.get("value").length>0,isTypingAhead:({refs:e})=>e.get("typeahead").keysSoFar!=="",isDisabled:({prop:e,context:t})=>!!e("disabled")||!!t.get("fieldsetDisabled"),isInteractive:({prop:e})=>!(e("disabled")||e("readOnly")),valueAsString:({context:e,prop:t})=>t("collection").stringifyItems(e.get("selectedItems"))},initialState({prop:e}){return e("open")||e("defaultOpen")?"open":"idle"},entry:["syncSelectElement"],watch({context:e,prop:t,track:r,action:n}){r([()=>e.get("value").toString()],()=>{n(["syncSelectedItems","syncSelectElement","dispatchChangeEvent"])}),r([()=>t("open")],()=>{n(["toggleVisibility"])}),r([()=>e.get("highlightedValue")],()=>{n(["syncHighlightedItem"])}),r([()=>t("collection").toString()],()=>{n(["syncCollection"])})},on:{"HIGHLIGHTED_VALUE.SET":{actions:["setHighlightedItem"]},"HIGHLIGHTED_VALUE.CLEAR":{actions:["clearHighlightedItem"]},"ITEM.SELECT":{actions:["selectItem"]},"ITEM.CLEAR":{actions:["clearItem"]},"VALUE.SET":{actions:["setSelectedItems"]},"VALUE.CLEAR":{actions:["clearSelectedItems"]},"CLEAR.CLICK":{actions:["clearSelectedItems","focusTriggerEl"]}},effects:["trackFormControlState"],states:{idle:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{target:"open",actions:["setInitialFocus"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["invokeOnOpen","setInitialFocus","highlightFirstSelectedItem"]}],"TRIGGER.FOCUS":{target:"focused"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}]}},focused:{tags:["closed"],on:{"CONTROLLED.OPEN":[{guard:"isTriggerClickEvent",target:"open",actions:["setInitialFocus","highlightFirstSelectedItem"]},{guard:"isTriggerArrowUpEvent",target:"open",actions:["setInitialFocus","highlightComputedLastItem"]},{guard:YC("isTriggerArrowDownEvent","isTriggerEnterEvent"),target:"open",actions:["setInitialFocus","highlightComputedFirstItem"]},{target:"open",actions:["setInitialFocus"]}],OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen"]}],"TRIGGER.BLUR":{target:"idle"},"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightFirstSelectedItem"]}],"TRIGGER.ENTER":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_UP":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedLastItem"]}],"TRIGGER.ARROW_DOWN":[{guard:"isOpenControlled",actions:["invokeOnOpen"]},{target:"open",actions:["setInitialFocus","invokeOnOpen","highlightComputedFirstItem"]}],"TRIGGER.ARROW_LEFT":[{guard:Jn(Sr("multiple"),"hasSelectedItems"),actions:["selectPreviousItem"]},{guard:Sr("multiple"),actions:["selectLastItem"]}],"TRIGGER.ARROW_RIGHT":[{guard:Jn(Sr("multiple"),"hasSelectedItems"),actions:["selectNextItem"]},{guard:Sr("multiple"),actions:["selectFirstItem"]}],"TRIGGER.HOME":{guard:Sr("multiple"),actions:["selectFirstItem"]},"TRIGGER.END":{guard:Sr("multiple"),actions:["selectLastItem"]},"TRIGGER.TYPEAHEAD":{guard:Sr("multiple"),actions:["selectMatchingItem"]}}},open:{tags:["open"],exit:["scrollContentToTop"],effects:["trackDismissableElement","computePlacement","scrollToHighlightedItem"],on:{"CONTROLLED.CLOSE":[{guard:"restoreFocus",target:"focused",actions:["focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["clearHighlightedItem"]}],CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{guard:"restoreFocus",target:"focused",actions:["invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{target:"idle",actions:["invokeOnClose","clearHighlightedItem"]}],"TRIGGER.CLICK":[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"focused",actions:["invokeOnClose","clearHighlightedItem"]}],"ITEM.CLICK":[{guard:Jn("closeOnSelect","isOpenControlled"),actions:["selectHighlightedItem","invokeOnClose"]},{guard:"closeOnSelect",target:"focused",actions:["selectHighlightedItem","invokeOnClose","focusTriggerEl","clearHighlightedItem"]},{actions:["selectHighlightedItem"]}],"CONTENT.HOME":{actions:["highlightFirstItem"]},"CONTENT.END":{actions:["highlightLastItem"]},"CONTENT.ARROW_DOWN":[{guard:Jn("hasHighlightedItem","loop","isLastItemHighlighted"),actions:["highlightFirstItem"]},{guard:"hasHighlightedItem",actions:["highlightNextItem"]},{actions:["highlightFirstItem"]}],"CONTENT.ARROW_UP":[{guard:Jn("hasHighlightedItem","loop","isFirstItemHighlighted"),actions:["highlightLastItem"]},{guard:"hasHighlightedItem",actions:["highlightPreviousItem"]},{actions:["highlightLastItem"]}],"CONTENT.TYPEAHEAD":{actions:["highlightMatchingItem"]},"ITEM.POINTER_MOVE":{actions:["highlightItem"]},"ITEM.POINTER_LEAVE":{actions:["clearHighlightedItem"]},"POSITIONING.SET":{actions:["reposition"]}}}},implementations:{guards:{loop:({prop:e})=>!!e("loopFocus"),multiple:({prop:e})=>!!e("multiple"),hasSelectedItems:({computed:e})=>!!e("hasSelectedItems"),hasHighlightedItem:({context:e})=>e.get("highlightedValue")!=null,isFirstItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").firstValue,isLastItemHighlighted:({context:e,prop:t})=>e.get("highlightedValue")===t("collection").lastValue,closeOnSelect:({prop:e,event:t})=>!!(t.closeOnSelect??e("closeOnSelect")),restoreFocus:({event:e})=>_h(e),isOpenControlled:({prop:e})=>e("open")!==void 0,isTriggerClickEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.CLICK",isTriggerEnterEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ENTER",isTriggerArrowUpEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_UP",isTriggerArrowDownEvent:({event:e})=>e.previousEvent?.type==="TRIGGER.ARROW_DOWN"},effects:{trackFormControlState({context:e,scope:t}){return Mo(La(t),{onFieldsetDisabledChange(r){e.set("fieldsetDisabled",r)},onFormReset(){const r=e.initial("value");e.set("value",r)}})},trackDismissableElement({scope:e,send:t,prop:r}){const n=()=>Qn(e);let o=!0;return sn(n,{type:"listbox",defer:!0,exclude:[xr(e),qC(e)],onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onInteractOutside(i){r("onInteractOutside")?.(i),o=!(i.detail.focusable||i.detail.contextmenu)},onDismiss(){t({type:"CLOSE",src:"interact-outside",restoreFocus:o})}})},computePlacement({context:e,prop:t,scope:r}){const n=t("positioning");return e.set("currentPlacement",n.placement),ut(()=>xr(r),()=>Rh(r),{defer:!0,...n,onComplete(s){e.set("currentPlacement",s.placement)}})},scrollToHighlightedItem({context:e,prop:t,scope:r,event:n}){const o=s=>{const a=e.get("highlightedValue");if(a==null||n.current().type.includes("POINTER"))return;const l=Qn(r),c=t("scrollToIndexFn");if(c){const d=t("collection").indexOf(a);c?.({index:d,immediate:s,getElement:()=>Fa(r,a)});return}const u=Fa(r,a);_n(u,{rootEl:l,block:"nearest"})};return W(()=>o(!0)),Rn(()=>Qn(r),{defer:!0,attributes:["data-activedescendant"],callback(){o(!1)}})}},actions:{reposition({context:e,prop:t,scope:r,event:n}){const o=()=>Rh(r);ut(xr(r),o,{...t("positioning"),...n.options,defer:!0,listeners:!1,onComplete(i){e.set("currentPlacement",i.placement)}})},toggleVisibility({send:e,prop:t,event:r}){e({type:t("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:r})},highlightPreviousItem({context:e,prop:t}){const r=e.get("highlightedValue");if(r==null)return;const n=t("collection").getPreviousValue(r,1,t("loopFocus"));n!=null&&e.set("highlightedValue",n)},highlightNextItem({context:e,prop:t}){const r=e.get("highlightedValue");if(r==null)return;const n=t("collection").getNextValue(r,1,t("loopFocus"));n!=null&&e.set("highlightedValue",n)},highlightFirstItem({context:e,prop:t}){const r=t("collection").firstValue;e.set("highlightedValue",r)},highlightLastItem({context:e,prop:t}){const r=t("collection").lastValue;e.set("highlightedValue",r)},setInitialFocus({scope:e}){W(()=>{$s({root:Qn(e)})?.focus({preventScroll:!0})})},focusTriggerEl({event:e,scope:t}){_h(e)&&W(()=>{xr(t)?.focus({preventScroll:!0})})},selectHighlightedItem({context:e,prop:t,event:r}){let n=r.value??e.get("highlightedValue");if(n==null||!t("collection").has(n))return;t("onSelect")?.({value:n}),n=t("deselectable")&&!t("multiple")&&e.get("value").includes(n)?null:n,e.set("value",i=>n==null?[]:t("multiple")?Kr(i,n):[n])},highlightComputedFirstItem({context:e,prop:t,computed:r}){const n=t("collection"),o=r("hasSelectedItems")?n.sort(e.get("value"))[0]:n.firstValue;e.set("highlightedValue",o)},highlightComputedLastItem({context:e,prop:t,computed:r}){const n=t("collection"),o=r("hasSelectedItems")?n.sort(e.get("value"))[0]:n.lastValue;e.set("highlightedValue",o)},highlightFirstSelectedItem({context:e,prop:t,computed:r}){if(!r("hasSelectedItems"))return;const n=t("collection").sort(e.get("value"))[0];e.set("highlightedValue",n)},highlightItem({context:e,event:t}){e.set("highlightedValue",t.value)},highlightMatchingItem({context:e,prop:t,event:r,refs:n}){const o=t("collection").search(r.key,{state:n.get("typeahead"),currentValue:e.get("highlightedValue")});o!=null&&e.set("highlightedValue",o)},setHighlightedItem({context:e,event:t}){e.set("highlightedValue",t.value)},clearHighlightedItem({context:e}){e.set("highlightedValue",null)},selectItem({context:e,prop:t,event:r}){t("onSelect")?.({value:r.value});const o=t("deselectable")&&!t("multiple")&&e.get("value").includes(r.value)?null:r.value;e.set("value",i=>o==null?[]:t("multiple")?Kr(i,o):[o])},clearItem({context:e,event:t}){e.set("value",r=>r.filter(n=>n!==t.value))},setSelectedItems({context:e,event:t}){e.set("value",t.value)},clearSelectedItems({context:e}){e.set("value",[])},selectPreviousItem({context:e,prop:t}){const[r]=e.get("value"),n=t("collection").getPreviousValue(r);n&&e.set("value",[n])},selectNextItem({context:e,prop:t}){const[r]=e.get("value"),n=t("collection").getNextValue(r);n&&e.set("value",[n])},selectFirstItem({context:e,prop:t}){const r=t("collection").firstValue;r&&e.set("value",[r])},selectLastItem({context:e,prop:t}){const r=t("collection").lastValue;r&&e.set("value",[r])},selectMatchingItem({context:e,prop:t,event:r,refs:n}){const o=t("collection").search(r.key,{state:n.get("typeahead"),currentValue:e.get("value")[0]});o!=null&&e.set("value",[o])},scrollContentToTop({prop:e,scope:t}){if(e("scrollToIndexFn")){const r=e("collection").firstValue;e("scrollToIndexFn")?.({index:0,immediate:!0,getElement:()=>Fa(t,r)})}else Qn(t)?.scrollTo(0,0)},invokeOnOpen({prop:e,context:t}){e("onOpenChange")?.({open:!0,value:t.get("value")})},invokeOnClose({prop:e,context:t}){e("onOpenChange")?.({open:!1,value:t.get("value")})},syncSelectElement({context:e,prop:t,scope:r}){const n=La(r);if(n){if(e.get("value").length===0&&!t("multiple")){n.selectedIndex=-1;return}for(const o of n.options)o.selected=e.get("value").includes(o.value)}},syncCollection({context:e,prop:t}){const r=t("collection"),n=r.find(e.get("highlightedValue"));n&&e.set("highlightedItem",n);const o=r.findMany(e.get("value"));e.set("selectedItems",o)},syncSelectedItems({context:e,prop:t}){const r=t("collection"),n=e.get("selectedItems"),i=e.get("value").map(s=>n.find(l=>r.getItemValue(l)===s)||r.find(s));e.set("selectedItems",i)},syncHighlightedItem({context:e,prop:t}){const r=t("collection"),n=e.get("highlightedValue"),o=n?r.find(n):null;e.set("highlightedItem",o)},dispatchChangeEvent({scope:e}){queueMicrotask(()=>{const t=La(e);if(!t)return;const r=e.getWin(),n=new r.Event("change",{bubbles:!0,composed:!0});t.dispatchEvent(n)})}}}};function _h(e){const t=e.restoreFocus??e.previousEvent?.restoreFocus;return t==null||!!t}M()(["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"]),M()(["item","persistFocus"]),M()(["id"]),M()(["htmlFor"]);const QC=e=>{const t=C.useId(),{dir:r}=qc(),{getRootNode:n}=Vs(),o=pa(),i={id:t,ids:{label:o?.ids.label,hiddenSelect:o?.ids.control},disabled:o?.disabled,readOnly:o?.readOnly,invalid:o?.invalid,required:o?.required,dir:r,getRootNode:n,...e},s=qs(XC,i);return KC(s,Qc)},JC=(e,t)=>{const[r,n]=qo(e),[o,i]=Zr()(n,["closeOnSelect","collection","composite","defaultHighlightedValue","defaultOpen","defaultValue","deselectable","disabled","form","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","onValueChange","open","positioning","readOnly","required","scrollToIndexFn","value"]),s=QC(o),a=Fn(ee({present:s.open},r)),l=ee(s.getRootProps(),i);return h.jsx(ph,{value:s,children:h.jsx(Xo,{value:a,children:h.jsx(ue.div,{...l,ref:t})})})},ZC=C.forwardRef(JC),ek=(e,t)=>{const[r,n]=qo(e),[{value:o},i]=Zr()(n,["value"]),s=Fn(ee({present:o.open},r)),a=ee(o.getRootProps(),i);return h.jsx(ph,{value:o,children:h.jsx(Xo,{value:s,children:h.jsx(ue.div,{...a,ref:t})})})},tk=C.forwardRef(ek),Lh=C.forwardRef((e,t)=>{const r=je(),n=ee(r.getTriggerProps(),e);return h.jsx(ue.button,{...n,ref:t})});Lh.displayName="SelectTrigger";const Fh=C.forwardRef((e,t)=>{const{children:r,placeholder:n,...o}=e,i=je(),s=ee(i.getValueTextProps(),o);return h.jsx(ue.span,{...s,ref:t,children:r||i.valueAsString||n})});Fh.displayName="SelectValueText";var zh=$("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");zh.build(),M()(["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"]),M()(["index","name"]),M()(["value"]);var Dh=$("switch").parts("root","label","control","thumb");Dh.build(),M()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);var Mh=$("tagsInput").parts("root","label","control","input","clearTrigger","item","itemPreview","itemInput","itemText","itemDeleteTrigger");Mh.build();var rk=e=>e.ids?.root??`tags-input:${e.id}`,nk=e=>e.ids?.input??`tags-input:${e.id}:input`,ok=e=>e.ids?.hiddenInput??`tags-input:${e.id}:hidden-input`,za=(e,t)=>e.ids?.item?.(t)??`tags-input:${e.id}:tag:${t.value}:${t.index}`,ik=(e,t)=>e.ids?.itemInput?.(t)??`${za(e,t)}:input`,sk=e=>`${e}:input`,$h=(e,t)=>e.getById(sk(t)),ak=e=>Qr(Wh(e),"[data-part=item]"),lk=(e,t)=>e.getById(ik(e,t)),Wh=e=>e.getById(rk(e)),Zn=e=>e.getById(nk(e)),Bh=e=>e.getById(ok(e)),Cr=e=>Qr(Wh(e),"[data-part=item-preview]:not([data-disabled])"),ck=e=>Cr(e)[0],uk=e=>Cr(e)[Cr(e).length-1],dk=(e,t)=>Uc(Cr(e),t,!1),hk=(e,t)=>Hc(Cr(e),t,!1),fk=(e,t)=>Cr(e)[t],eo=(e,t)=>Uo(Cr(e),t),gk=(e,t)=>{const r=Bh(e);r&&Rc(r,{value:t})},{and:to,not:kr,or:pk}=_t();to(pk(kr("isAtMax"),"allowOverflow"),kr("isInputValueEmpty")),kr("hasHighlightedTag"),to("hasTags","isCaretAtStart"),to("hasTags","isCaretAtStart"),to("hasTags","isCaretAtStart",kr("isLastTagHighlighted")),kr("isCaretAtStart"),to("isTagEditable","hasHighlightedTag"),kr("isCaretAtStart"),kr("isCaretAtStart"),M()(["addOnPaste","allowOverflow","autoFocus","blurBehavior","delimiter","dir","disabled","editable","form","getRootNode","id","ids","inputValue","invalid","max","maxLength","name","onFocusOutside","onHighlightChange","onInputValueChange","onInteractOutside","onPointerDownOutside","onValueChange","onValueInvalid","required","readOnly","translations","validate","value","defaultValue","defaultInputValue"]),M()(["index","disabled","value"]);var mk=$("toast").parts("group","root","title","description","actionTrigger","closeTrigger");mk.build();var Hh=(e,t)=>e.getById(`toast-group:${t}`),{guards:vk,createMachine:bk}=Go(),{and:yk}=vk;bk({props({props:e}){return{dir:"ltr",id:hc(),...e,store:e.store}},initialState({prop:e}){return e("store").attrs.overlap?"overlap":"stack"},refs(){return{lastFocusedEl:null,isFocusWithin:!1,isPointerWithin:!1,ignoreMouseTimer:Dc.create(),dismissableCleanup:void 0}},context({bindable:e}){return{toasts:e(()=>({defaultValue:[],sync:!0,hash:t=>t.map(r=>r.id).join(",")})),heights:e(()=>({defaultValue:[],sync:!0}))}},computed:{count:({context:e})=>e.get("toasts").length,overlap:({prop:e})=>e("store").attrs.overlap,placement:({prop:e})=>e("store").attrs.placement},effects:["subscribeToStore","trackDocumentVisibility","trackHotKeyPress"],watch({track:e,context:t,action:r}){e([()=>t.hash("toasts")],()=>{queueMicrotask(()=>{r(["collapsedIfEmpty","setDismissableBranch"])})})},exit:["clearDismissableBranch","clearLastFocusedEl","clearMouseEventTimer"],on:{"DOC.HOTKEY":{actions:["focusRegionEl"]},"REGION.BLUR":[{guard:yk("isOverlapping","isPointerOut"),target:"overlap",actions:["collapseToasts","resumeToasts","restoreFocusIfPointerOut"]},{guard:"isPointerOut",target:"stack",actions:["resumeToasts","restoreFocusIfPointerOut"]},{actions:["clearFocusWithin"]}],"TOAST.REMOVE":{actions:["removeToast","removeHeight","ignoreMouseEventsTemporarily"]},"TOAST.PAUSE":{actions:["pauseToasts"]}},states:{stack:{on:{"REGION.POINTER_LEAVE":[{guard:"isOverlapping",target:"overlap",actions:["clearPointerWithin","resumeToasts","collapseToasts"]},{actions:["clearPointerWithin","resumeToasts"]}],"REGION.OVERLAP":{target:"overlap",actions:["collapseToasts"]},"REGION.FOCUS":{actions:["setLastFocusedEl","pauseToasts"]},"REGION.POINTER_ENTER":{actions:["setPointerWithin","pauseToasts"]}}},overlap:{on:{"REGION.STACK":{target:"stack",actions:["expandToasts"]},"REGION.POINTER_ENTER":{target:"stack",actions:["setPointerWithin","pauseToasts","expandToasts"]},"REGION.FOCUS":{target:"stack",actions:["setLastFocusedEl","pauseToasts","expandToasts"]}}}},implementations:{guards:{isOverlapping:({computed:e})=>e("overlap"),isPointerOut:({refs:e})=>!e.get("isPointerWithin")},effects:{subscribeToStore({context:e,prop:t}){return t("store").subscribe(r=>{if(r.dismiss){e.set("toasts",n=>n.filter(o=>o.id!==r.id));return}e.set("toasts",n=>{const o=n.findIndex(i=>i.id===r.id);return o!==-1?[...n.slice(0,o),{...n[o],...r},...n.slice(o+1)]:[r,...n]})})},trackHotKeyPress({prop:e,send:t}){return ce(document,"keydown",n=>{const{hotkey:o}=e("store").attrs;o.every(s=>n[s]||n.code===s)&&t({type:"DOC.HOTKEY"})},{capture:!0})},trackDocumentVisibility({prop:e,send:t,scope:r}){const{pauseOnPageIdle:n}=e("store").attrs;if(!n)return;const o=r.getDoc();return ce(o,"visibilitychange",()=>{const i=o.visibilityState==="hidden";t({type:i?"PAUSE_ALL":"RESUME_ALL"})})}},actions:{setDismissableBranch({refs:e,context:t,computed:r,scope:n}){const o=t.get("toasts"),i=r("placement"),s=o.length>0;if(!s){e.get("dismissableCleanup")?.();return}if(s&&e.get("dismissableCleanup"))return;const l=Px(()=>Hh(n,i),{defer:!0});e.set("dismissableCleanup",l)},clearDismissableBranch({refs:e}){e.get("dismissableCleanup")?.()},focusRegionEl({scope:e,computed:t}){queueMicrotask(()=>{Hh(e,t("placement"))?.focus()})},pauseToasts({prop:e}){e("store").pause()},resumeToasts({prop:e}){e("store").resume()},expandToasts({prop:e}){e("store").expand()},collapseToasts({prop:e}){e("store").collapse()},removeToast({prop:e,event:t}){e("store").remove(t.id)},removeHeight({event:e,context:t}){e?.id!=null&&queueMicrotask(()=>{t.set("heights",r=>r.filter(n=>n.id!==e.id))})},collapsedIfEmpty({send:e,computed:t}){!t("overlap")||t("count")>1||e({type:"REGION.OVERLAP"})},setLastFocusedEl({refs:e,event:t}){e.get("isFocusWithin")||!t.target||(e.set("isFocusWithin",!0),e.set("lastFocusedEl",t.target))},restoreFocusIfPointerOut({refs:e}){!e.get("lastFocusedEl")||e.get("isPointerWithin")||(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))},setPointerWithin({refs:e}){e.set("isPointerWithin",!0)},clearPointerWithin({refs:e}){e.set("isPointerWithin",!1),e.get("lastFocusedEl")&&!e.get("isFocusWithin")&&(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null))},clearFocusWithin({refs:e}){e.set("isFocusWithin",!1)},clearLastFocusedEl({refs:e}){e.get("lastFocusedEl")&&(e.get("lastFocusedEl")?.focus({preventScroll:!0}),e.set("lastFocusedEl",null),e.set("isFocusWithin",!1))},ignoreMouseEventsTemporarily({refs:e}){e.get("ignoreMouseTimer").request()},clearMouseEventTimer({refs:e}){e.get("ignoreMouseTimer").cancel()}}}});var xk=(e,t)=>({...t,...Ro(e)});function Sk(e={}){const t=xk(e,{placement:"bottom",overlap:!1,max:24,gap:16,offsets:"1rem",hotkey:["altKey","KeyT"],removeDelay:200,pauseOnPageIdle:!0});let r=[],n=[],o=new Set,i=[];const s=w=>(r.push(w),()=>{const A=r.indexOf(w);r.splice(A,1)}),a=w=>(r.forEach(A=>A(w)),w),l=w=>{if(n.length>=t.max){i.push(w);return}a(w),n.unshift(w)},c=()=>{for(;i.length>0&&n.length{const A=w.id??`toast:${hc()}`,L=n.find(z=>z.id===A);return o.has(A)&&o.delete(A),L?n=n.map(z=>z.id===A?a({...z,...w,id:A}):z):l({id:A,duration:t.duration,removeDelay:t.removeDelay,type:"info",...w,stacked:!t.overlap,gap:t.gap}),A},d=w=>(o.add(w),w?(r.forEach(A=>A({id:w,dismiss:!0})),n=n.filter(A=>A.id!==w),c()):(n.forEach(A=>{r.forEach(L=>L({id:A.id,dismiss:!0}))}),n=[],i=[]),w);return{attrs:t,subscribe:s,create:u,update:(w,A)=>u({id:w,...A}),remove:d,dismiss:w=>{w!=null?n=n.map(A=>A.id===w?a({...A,message:"DISMISS"}):A):n=n.map(A=>a({...A,message:"DISMISS"}))},error:w=>u({...w,type:"error"}),success:w=>u({...w,type:"success"}),info:w=>u({...w,type:"info"}),warning:w=>u({...w,type:"warning"}),loading:w=>u({...w,type:"loading"}),getVisibleToasts:()=>n.filter(w=>!o.has(w.id)),getCount:()=>n.length,promise:(w,A,L={})=>{if(!A||!A.loading){ar("[zag-js > toast] toaster.promise() requires at least a 'loading' option to be specified");return}const z=u({...L,...A.loading,promise:w,type:"loading"});let U=!0,Z;const ne=No(w).then(async q=>{if(Z=["resolve",q],Ck(q)&&!q.ok){U=!1;const Q=No(A.error,`HTTP Error! status: ${q.status}`);u({...L,...Q,id:z,type:"error"})}else if(A.success!==void 0){U=!1;const Q=No(A.success,q);u({...L,...Q,id:z,type:"success"})}}).catch(async q=>{if(Z=["reject",q],A.error!==void 0){U=!1;const Q=No(A.error,q);u({...L,...Q,id:z,type:"error"})}}).finally(()=>{U&&d(z),A.finally?.()});return{id:z,unwrap:()=>new Promise((q,Q)=>ne.then(()=>Z[0]==="reject"?Q(Z[1]):q(Z[1])).catch(Q))}},pause:w=>{w!=null?n=n.map(A=>A.id===w?a({...A,message:"PAUSE"}):A):n=n.map(A=>a({...A,message:"PAUSE"}))},resume:w=>{w!=null?n=n.map(A=>A.id===w?a({...A,message:"RESUME"}):A):n=n.map(A=>a({...A,message:"RESUME"}))},isVisible:w=>!o.has(w)&&!!n.find(A=>A.id===w),isDismissed:w=>o.has(w),expand:()=>{n=n.map(w=>a({...w,stacked:!0}))},collapse:()=>{n=n.map(w=>a({...w,stacked:!1}))}}}var Ck=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number";const kk=e=>Sk(e);var Uh=$("tooltip").parts("trigger","arrow","arrowTip","positioner","content");Uh.build();var wk=e=>e.ids?.trigger??`tooltip:${e.id}:trigger`,Ek=e=>e.ids?.positioner??`tooltip:${e.id}:popper`,Da=e=>e.getById(wk(e)),jh=e=>e.getById(Ek(e)),wr=s0({id:null}),{and:Ok,not:Gh}=_t();Ok("noVisibleTooltip",Gh("hasPointerMoveOpened")),Gh("hasPointerMoveOpened"),M()(["aria-label","closeDelay","closeOnEscape","closeOnPointerDown","closeOnScroll","closeOnClick","dir","disabled","getRootNode","id","ids","interactive","onOpenChange","defaultOpen","open","openDelay","positioning"]);function qh(e,t=[]){const r=Object.assign({},e);for(const n of t)n in r&&delete r[n];return r}const Ik=(e,t)=>{if(!e||typeof e!="string")return{invalid:!0,value:e};const[r,n]=e.split("/");if(!r||!n||r==="currentBg")return{invalid:!0,value:r};const o=t(`colors.${r}`),i=t.raw(`opacity.${n}`)?.value;if(!i&&isNaN(Number(n)))return{invalid:!0,value:r};const s=i?Number(i)*100+"%":`${n}%`,a=o??r;return{invalid:!1,color:a,value:`color-mix(in srgb, ${a} ${s}, transparent)`}},oe=e=>(t,r)=>{const n=r.utils.colorMix(t);if(n.invalid)return{[e]:t};const o="--mix-"+e;return{[o]:n.value,[e]:`var(${o}, ${n.color})`}};function Ma(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(r=>Ma(r));const t=Object.create(Object.getPrototypeOf(e));for(const r of Object.keys(e))t[r]=Ma(e[r]);return t}function $a(e,t){if(t==null)return e;for(const r of Object.keys(t))if(!(t[r]===void 0||r==="__proto__"))if(!$e(e[r])&&$e(t[r]))Object.assign(e,{[r]:t[r]});else if(e[r]&&$e(t[r]))$a(e[r],t[r]);else if(Array.isArray(t[r])&&Array.isArray(e[r])){let n=0;for(;ne!=null;function Ct(e,t,r={}){const{stop:n,getKey:o}=r;function i(s,a=[]){if($e(s)||Array.isArray(s)){const l={};for(const[c,u]of Object.entries(s)){const d=o?.(c,u)??c,g=[...a,d];if(n?.(s,g))return t(s,a);const f=i(u,g);Wa(f)&&(l[d]=f)}return l}return t(s,a)}return i(e)}function Kh(e,t){return Array.isArray(e)?e.map(r=>Wa(r)?t(r):r):$e(e)?Ct(e,r=>t(r)):Wa(e)?t(e):e}const Ei=["value","type","description"],Tk=e=>e&&typeof e=="object"&&!Array.isArray(e),Yh=(...e)=>{const t=dn({},...e.map(Ma));return t.theme?.tokens&&Ct(t.theme.tokens,r=>{const i=Object.keys(r).filter(a=>!Ei.includes(a)).length>0,s=Ei.some(a=>r[a]!=null);return i&&s&&(r.DEFAULT||(r.DEFAULT={}),Ei.forEach(a=>{var l;r[a]!=null&&((l=r.DEFAULT)[a]||(l[a]=r[a]),delete r[a])})),r},{stop(r){return Tk(r)&&Object.keys(r).some(n=>Ei.includes(n)||n!==n.toLowerCase()&&n!==n.toUpperCase())}}),t},Pk=e=>e,Se=e=>e,B=e=>e,Nk=e=>e,Ak=e=>e,hn=e=>e,Vk=e=>e,Rk=e=>e,_k=e=>e;function Xh(){const e=t=>t;return new Proxy(e,{get(){return e}})}const ve=Xh(),Ba=Xh(),Ha=e=>e,Lk=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function Fk(e){return`${e}`.replace(Lk,t=>`\\${t}`)}const zk=/[A-Z]/g;function Dk(e){return e.replace(zk,t=>`-${t.toLowerCase()}`)}function Qh(e,t={}){const{fallback:r="",prefix:n=""}=t,o=Dk(["-",n,Fk(e)].filter(Boolean).join("-"));return{var:o,ref:`var(${o}${r?`, ${r}`:""})`}}const Mk=e=>/^var\(--.+\)$/.test(e),we=(e,t)=>t!=null?`${e}(${t})`:t,Er=e=>{if(Mk(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},Jh=e=>({values:["outside","inside","mixed","none"],transform(t,{token:r}){const n=r("colors.colorPalette.focusRing");return{inside:{"--focus-ring-color":n,[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":n,[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":n,[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":n,[e]:{outline:"none"}}}[t]??{}}}),$k=oe("borderColor"),Dt=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),Wk=Pk({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"}),fn=Qh("bg-currentcolor"),Zh=e=>e===fn.ref||e==="currentBg",ie=e=>({...e("colors"),currentBg:fn}),Bk=Ha({conditions:Wk,utilities:{background:{values:ie,shorthand:["bg"],transform(e,t){if(Zh(t.raw))return{background:fn.ref};const r=oe("background")(e,t);return{...r,[fn.var]:r?.background}}},backgroundColor:{values:ie,shorthand:["bgColor"],transform(e,t){if(Zh(t.raw))return{backgroundColor:fn.ref};const r=oe("backgroundColor")(e,t);return{...r,[fn.var]:r?.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:ie,transform:oe("--gradient-from")},gradientTo:{values:ie,transform:oe("--gradient-to")},gradientVia:{values:ie,transform(e,t){return{...oe("--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:ie,transform:oe("borderColor")},borderTopColor:{values:ie,transform:oe("borderTopColor")},borderBlockStartColor:{values:ie,transform:oe("borderBlockStartColor")},borderBottomColor:{values:ie,transform:oe("borderBottomColor")},borderBlockEndColor:{values:ie,transform:oe("borderBlockEndColor")},borderLeftColor:{values:ie,transform:oe("borderLeftColor")},borderInlineStartColor:{values:ie,shorthand:["borderStartColor"],transform:oe("borderInlineStartColor")},borderRightColor:{values:ie,transform:oe("borderRightColor")},borderInlineEndColor:{values:ie,shorthand:["borderEndColor"],transform:oe("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:ie,transform:oe("color")},fill:{values:ie,transform:oe("fill")},stroke:{values:ie,transform:oe("stroke")},accentColor:{values:ie,transform:oe("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:ie,transform(e,t){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":$k(e,t)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:ie,transform:oe("--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":we("blur",e)})},brightness:{transform:e=>({"--brightness":we("brightness",e)})},contrast:{transform:e=>({"--contrast":we("contrast",e)})},grayscale:{transform:e=>({"--grayscale":we("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":we("hue-rotate",Er(e))})},invert:{transform:e=>({"--invert":we("invert",e)})},saturate:{transform:e=>({"--saturate":we("saturate",e)})},sepia:{transform:e=>({"--sepia":we("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":we("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":we("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":we("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":we("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":we("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":we("hue-rotate",Er(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":we("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":we("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":we("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":we("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:ie,transform:oe("outlineColor")},focusRing:Jh("&:is(:focus, [data-focus])"),focusVisibleRing:Jh("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:ie,transform:oe("--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:r})=>({[r.raw(`breakpoints.${t}`)?`@breakpoint ${t}`:`@media screen and (min-width: ${e})`]:{display:"none"}})},hideBelow:{values:"breakpoints",transform(e,{raw:t,token:r}){return{[r.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:ie,transform:oe("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:ie,transform:oe("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:ie,transform:oe("--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:ie,transform:oe("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":Er(e)})},skewY:{transform:e=>({"--skew-y":Er(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:Er(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":Er(e)}}},rotateY:{transform(e){return{"--rotate-y":Er(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 Dt("all");case"position":return Dt("left, right, top, bottom, inset-inline, inset-block");case"colors":return Dt("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return Dt("opacity");case"shadow":return Dt("box-shadow");case"transform":return Dt("transform");case"size":return Dt("width, height");case"backgrounds":return Dt("background, background-color, background-image, background-position");case"common":return Dt("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 Hk[e]||{}}},debug:{values:{type:"boolean"},transform(e){return e?{outline:"1px solid blue !important","& > *":{outline:"1px solid red !important"}}:{}}},caretColor:{values:ie,transform:oe("caretColor")},cursor:{values:"cursor"}}}),Hk={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 Uk="",jk=Uk.split(","),Gk="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",qk=Gk.split(",").concat(jk),Kk=new Map(qk.map(e=>[e,!0]));function Yk(e){const t=Object.create(null);return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}var Xk=/&|@/,Qk=Yk(e=>Kk.has(e)||e.startsWith("--")||Xk.test(e));function dt(e,t){const r={};for(const n in e){const o=t(n,e[n]);r[o[0]]=o[1]}return r}function ef(e,t){const r={};return Ct(e,(n,o)=>{n&&(r[o.join(".")]=n.value)},{stop:t}),r}var Jk=Object.defineProperty,Zk=(e,t,r)=>t in e?Jk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tf=(e,t,r)=>Zk(e,typeof t!="symbol"?t+"":t,r);function Oi(e){if(e===null)return"null";if(e===void 0)return"undefined";const t=typeof e;return t==="string"?`s:${e}`:t==="number"?`n:${e}`:t==="boolean"?`b:${e}`:t==="function"?`f:${e.name||"anonymous"}`:Array.isArray(e)?`a:[${e.map(Oi).join(",")}]`:t==="object"?`o:{${Object.keys(e).sort().map(n=>`${n}:${Oi(e[n])}`).join(",")}}`:String(e)}class ew{constructor(t=500){tf(this,"cache",new Map),tf(this,"maxSize"),this.maxSize=t}get(t){const r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){const n=this.cache.keys().next().value;n!==void 0&&this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}}const Ge=e=>{const t=new ew;function r(...n){const o=n.length===1?Oi(n[0]):n.map(Oi).join("|");let i=t.get(o);return i===void 0&&(i=e.apply(this,n),t.set(o,i)),i}return r},rf=16,Ii="px",Ua="em",ro="rem";function nf(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),r=new RegExp(`${Ii}|${Ua}|${ro}`);return e.match(new RegExp(`${t.source}(${r.source})`))?.[1]}function of(e=""){if(typeof e=="number")return`${e}px`;const t=nf(e);if(!t||t===Ii)return e;if(t===Ua||t===ro)return`${parseFloat(e)*rf}${Ii}`}function sf(e=""){const t=nf(e);if(!t||t===ro)return e;if(t===Ua)return`${parseFloat(e)}${ro}`;if(t===Ii)return`${parseFloat(e)/rf}${ro}`}const tw=e=>e.charAt(0).toUpperCase()+e.slice(1);function rw(e){const t=nw(e),r=Object.fromEntries(t);function n(g){return r[g]}function o(g){return gn(n(g))}function i(){const g=Object.keys(r),f=ow(g),p=g.flatMap(m=>{const v=n(m),x=[`${m}Down`,gn({max:Ti(v.min)})],k=[m,gn({min:v.min})],y=[`${m}Only`,o(m)];return[k,y,x]}).filter(([,m])=>m!=="").concat(f.map(([m,v])=>{const x=n(m),k=n(v);return[`${m}To${tw(v)}`,gn({min:x.min,max:Ti(k.min)})]}));return Object.fromEntries(p)}function s(){const g=i();return Object.fromEntries(Object.entries(g))}const a=s(),l=g=>a[g];function c(){return ws(["base",...Object.keys(r)])}function u(g){return gn({min:n(g).min})}function d(g){return gn({max:Ti(n(g).min)})}return{values:Object.values(r),only:o,keys:c,conditions:a,getCondition:l,up:u,down:d}}function Ti(e){const t=parseFloat(of(e)??"")-.04;return sf(`${t}px`)}function nw(e){return Object.entries(e).sort(([,r],[,n])=>parseInt(r,10){let s=null;return o<=i.length-1&&(s=i[o+1]?.[1]),s!=null&&(s=Ti(s)),[r,{name:r,min:sf(n),max:s}]})}function ow(e){const t=[];return e.forEach((r,n)=>{let o=n;o++;let i=e[o];for(;i;)t.push([r,i]),o++,i=e[o]}),t}function gn({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const iw=/^@|&|&$/,sw=e=>{const{breakpoints:t,conditions:r={}}=e,n=dt(r,(u,d)=>[`_${u}`,d]),o=Object.assign({},n,t.conditions);function i(){return Object.keys(o)}function s(u){return i().includes(u)||iw.test(u)||u.startsWith("_")}const a=Ge(u=>u.filter(d=>d!=="base").sort((d,g)=>{const f=s(d),p=s(g);return f&&!p?1:!f&&p?-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}},ae=Object.freeze(Object.create(null)),aw=Object.freeze([]);function Pi(){return Object.create(null)}const af=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")}),sw=of("width"),aw=of("height"),sf=e=>({isMin:hf(e.minMax,e.maxMin,e.min),isMax:hf(e.maxMin,e.minMax,e.max)}),{isMin:Ua,isMax:af}=sf(sw),{isMin:ja,isMax:lf}=sf(aw),cf=/print/i,df=/^print$/i,lw=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,cw=/(\d)/,ro=Number.MAX_VALUE,dw={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function uf(e){const t=lw.exec(e)||(Ua(e)||ja(e)?cw.exec(e):null);if(!t)return ro;if(t[0]==="0")return 0;const r=parseFloat(t[1]),n=t[2];return r*(dw[n]||1)}function hf(e,t,r){return n=>e.test(n)||!t.test(n)&&r.test(n)}function uw(e,t){const r=cf.test(e),n=df.test(e),o=cf.test(t),i=df.test(t);return r&&o?!n&&i?1:n&&!i?-1:e.localeCompare(t):r?1:o?-1:null}const hw=je((e,t)=>{const r=uw(e,t);if(r!==null)return r;const n=Ua(e)||ja(e),o=af(e)||lf(e),i=Ua(t)||ja(t),s=af(t)||lf(t);if(n&&s)return-1;if(o&&i)return 1;const a=uf(e),l=uf(t);return a===ro&&l===ro?e.localeCompare(t):a===ro?1:l===ro?-1:a!==l?a>l?o?-1:1:o?1:-1:e.localeCompare(t)});function ff(e){return e.sort(([t],[r])=>hw(t,r))}function gf(e){const t=[],r=[],n={};for(const[s,a]of Object.entries(e))s.startsWith("@media")?t.push([s,a]):s.startsWith("@container")?r.push([s,a]):Me(a)?n[s]=gf(a):n[s]=a;const o=ff(t),i=ff(r);return{...n,...Object.fromEntries(o),...Object.fromEntries(i)}}const pf=/\s*!(important)?/i,fw=je(e=>st(e)?pf.test(e):!1),gw=je(e=>st(e)?e.replace(pf,"").trim():e);function mf(e){const{transform:t,conditions:r,normalize:n}=e,o=vw(e);return je(function(...s){const a=o(...s),l=n(a),c=Ti();return Ct(l,(d,h)=>{const g=fw(d);if(d==null)return;const[f,...p]=r.sort(h).map(r.resolve);g&&(d=gw(d));let m=t(f,d)??ae;m=Ct(m,v=>st(v)&&g?`${v} !important`:v,{getKey:v=>r.expandAtRule(v)}),pw(c,p.flat(),m)}),gf(c)})}function pw(e,t,r){let n=e;for(const o of t)o&&(n[o]||(n[o]=Ti()),n=n[o]);dn(n,r)}function mw(...e){return e.filter(t=>{if(!Me(t))return!1;const r=On(t);return Object.keys(r).length>0})}function vw(e){function t(r){const n=mw(...r);return n.length===1?n:n.map(o=>e.normalize(o))}return je(function(...n){return dn({},...t(n))})}const vf=e=>({base:ae,variants:ae,defaultVariants:ae,compoundVariants:[],...e});function bw(e){const{css:t,conditions:r,normalize:n,layers:o}=e;function i(a={}){const l=vf(a),{base:c,defaultVariants:d,compoundVariants:h}=l,g=dt(l.variants,(y,S)=>[y,dt(S,(b,O)=>[b,n(O)])]),f=mf({conditions:r,normalize:n,transform(y,S){return g[y]?.[S]}}),p=(y={})=>{const S=n({...d,...On(y)});let b={...c};dn(b,f(S));const O=s(h,S);return o.wrap("recipes",t(b,O))},m=Object.keys(g),v=y=>{const S=jh(y,["recipe"]),[b,O]=Gr(S,m),T=m.includes("colorPalette"),R=m.includes("orientation");return T||(b.colorPalette=y.colorPalette||d.colorPalette),R&&(O.orientation=y.orientation),[b,O]},x=dt(g,(y,S)=>[y,Object.keys(S)]);return Object.assign(y=>t(p(y)),{className:a.className,__cva__:!0,variantMap:x,variantKeys:m,raw:p,config:a,splitVariantProps:v,merge(y){return i(yw(e)(this,y))}})}function s(a,l){let c=ae;return a.forEach(d=>{Object.entries(d).every(([g,f])=>g==="css"?!0:(Array.isArray(f)?f:[f]).some(m=>l[g]===m))&&(c=t(c,d.css))}),c}return i}function yw(e){const{css:t}=e;return function(n,o){const i=vf(o.config),s=ks(n.variantKeys,Object.keys(o.variants)),a=t(n.base,i.base),l=Object.fromEntries(s.map(g=>[g,t(n.config.variants[g],i.variants[g])])),c=dn(n.config.defaultVariants,i.defaultVariants),d=[...n.compoundVariants,...i.compoundVariants];return{className:Xe(n.className,o.className),base:a,variants:l,defaultVariants:c,compoundVariants:d}}}const xw={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},bf={reset:0,base:1,tokens:2,recipes:3};function Sw(e){const t=e.layers??xw,n=Object.values(t).sort((o,i)=>bf[o]-bf[i]);return{names:n,atRule:`@layer ${n.join(", ")};`,wrap(o,i){return e.disableLayers?i:{[`@layer ${t[o]}`]:i}}}}function Cw(e){const{utility:t,normalize:r}=e,{hasShorthand:n,resolveShorthand:o}=t;return function(i){return Ct(i,r,{stop:s=>Array.isArray(s),getKey:n?o:void 0})}}function kw(e){const{preflight:t}=e;if(!t)return{};const{scope:r="",level:n="parent"}=Me(t)?t:{};let o="";r&&n==="parent"?o=`${r} `:r&&n==="element"&&(o=`&${r}`);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={[r||"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(n==="element"){const a=Object.entries(i).reduce((l,[c,d])=>(l[c]={[o]:d},l),{});Object.assign(s,a)}else o?s[o]=i:Object.assign(s,i);return s}function ww(e){const{conditions:t,isValidProperty:r}=e;return function(o){return Ct(o,i=>i,{getKey:(i,s)=>Me(s)&&!t.has(i)&&!r(i)?Ow(i).map(a=>{const l=a.startsWith("&")?a.slice(1):a;return Ew(l)?`${l} &`:`&${l}`}).join(", "):i})}}function Ew(e){const t=e.toLowerCase();return t.startsWith(":host-context")||t.startsWith(":host")||t.startsWith("::slotted")}function Ow(e){const t=[];let r=0,n="",o=!1;for(let i=0;i{const t=o=>({base:e.base?.[o]??ae,variants:Ti(),defaultVariants:e.defaultVariants??ae,compoundVariants:e.compoundVariants?Tw(e.compoundVariants,o):iw}),n=(e.slots??[]).map(o=>[o,t(o)]);for(const[o,i]of Object.entries(e.variants??{}))for(const[s,a]of Object.entries(i))n.forEach(([l,c])=>{var d;(d=c.variants)[o]??(d[o]={}),c.variants[o][s]=a[l]??ae});return Object.fromEntries(n)},Tw=(e,t)=>e.filter(r=>r.css[t]).map(r=>({...r,css:r.css[t]}));function Pw(e){const{cva:t}=e;return function(n=ae){const o=Object.entries(Iw(n)).map(([h,g])=>[h,t(g)]);function i(h){const g=o.map(([f,p])=>[f,p(h)]);return Object.fromEntries(g)}const s=n.variants??ae,a=Object.keys(s);function l(h){const g=jh(h,["recipe"]),[f,p]=Gr(g,a),m=a.includes("colorPalette"),v=a.includes("orientation");return m||(f.colorPalette=h.colorPalette||n.defaultVariants?.colorPalette),v&&(p.orientation=h.orientation),[f,p]}const c=dt(s,(h,g)=>[h,Object.keys(g)]);let d={};return n.className&&(d=Object.fromEntries(n.slots.map(h=>[h,`${n.className}__${h}`]))),Object.assign(i,{variantMap:c,variantKeys:a,splitVariantProps:l,classNameMap:d})}}const Nw=()=>e=>Array.from(new Set(e)),Aw=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,Rw=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},yf=e=>(e+"").replace(Aw,Rw),xf=(e,t)=>{let r="",n=0,o="char",i="",s="";const a=[];for(;n{let t=0;const r=["("];for(;t{r instanceof Map?t[n]=Object.fromEntries(r):t[n]=r}),t}const Cf=/({([^}]*)})/g,_w=/[{}]/g,Lw=/\w+\.\w+/,kf=e=>{if(!st(e))return[];const t=e.match(Cf);return t?t.map(r=>r.replace(_w,"").trim()):[]},Fw=e=>Cf.test(e);function wf(e){if(!e.extensions?.references)return e.extensions?.cssVar?.ref??e.value;const t=e.extensions.references??{};let r=e.value;const n=Object.keys(t);for(let o=0;ot.map(Ef).join(` ${e} `).replace(zw,""),Of=(...e)=>`calc(${Pi("+",...e)})`,If=(...e)=>`calc(${Pi("-",...e)})`,Ga=(...e)=>`calc(${Pi("*",...e)})`,Tf=(...e)=>`calc(${Pi("/",...e)})`,Pf=e=>{const t=Ef(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:Ga(t,-1)},gn=Object.assign(e=>({add:(...t)=>gn(Of(e,...t)),subtract:(...t)=>gn(If(e,...t)),multiply:(...t)=>gn(Ga(e,...t)),divide:(...t)=>gn(Tf(e,...t)),negate:()=>gn(Pf(e)),toString:()=>e.toString()}),{add:Of,subtract:If,multiply:Ga,divide:Tf,negate:Pf}),Dw={enforce:"pre",transform(e){const{prefix:t,allTokens:r,formatCssVar:n,formatTokenName:o,registerToken:i}=e;r.filter(({extensions:a})=>a.category==="spacing").forEach(a=>{const l=a.path.slice(),c=n(l,t);if(st(a.value)&&a.value==="0rem")return;const d=[...a.path],h=d[d.length-1];h!=null&&(d[d.length-1]=`-${h}`);const g={...a,value:gn.negate(c.ref),name:o(d),path:d,extensions:{...a.extensions,negative:!0,prop:`-${a.extensions.prop}`,originalPath:l}};i(g)})}},Mw=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),$w=[Dw,{enforce:"post",transform(e){const{allTokens:t,registerToken:r,formatTokenName:n}=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(n(c),c)}),l.roots.forEach(c=>{const d=n(c),h=s.get(d)||[];if(h.push(a),s.set(d,h),a.extensions.default&&c.length===1){const g=l.keys[0]?.filter(Boolean);if(!g.length)return;const f=c.concat(g);i.set(n(f),[])}}))}),i.forEach(a=>{const l=["colors","colorPalette",...a].filter(Boolean),c=n(l),d=n(l.slice(1));r({name:c,value:c,originalValue:c,path:l,extensions:{condition:"base",originalPath:l,category:"colors",prop:d,virtual:!0}},"pre")})}},{enforce:"post",transform(e){e.allTokens.filter(r=>Mw.has(r.extensions.category)&&!r.extensions.negative).forEach(r=>{Object.assign(r.extensions,{pixelValue:rf(r.value)})})}},{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}}],Ww=[{type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:r,formatCssVar:n}=t,{negative:o,originalPath:i}=e.extensions,s=o?i:e.path;return{cssVar:n(s.filter(Boolean),r)}}},{enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:r,formatCssVar:n}=t,o=kf(e.value);return o.length&&o.forEach(i=>{const s=n(i.split("."),r);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 r=e.path.slice();if(r.pop(),r.shift(),r.length===0){const a=[...e.path];a.shift(),r=a}if(r.length===0)return{};const n=r.reduce((a,l,c,d)=>{const h=d.slice(0,c+1);return a.push(h),a},[]),o=r[0],i=t.formatTokenName(r),s=e.path.slice(e.path.indexOf(o)+1).reduce((a,l,c,d)=>(a.push(d.slice(c)),a),[]);return s.length===0&&s.push([""]),{colorPalette:{value:i,roots:n,keys:s}}}}],Nf=e=>Me(e)&&Object.prototype.hasOwnProperty.call(e,"value");function Bw(e){return e?{breakpoints:Gh(e,t=>({value:t})),sizes:dt(e,(t,r)=>[`breakpoint-${t}`,{value:r}])}:{breakpoints:{},sizes:{}}}function Hw(e){const{prefix:t="",tokens:r={},semanticTokens:n={},breakpoints:o={}}=e,i=F=>F.join("."),s=(F,_)=>Yh(F.join("-"),{prefix:_}),a=[],l=new Map,c=new Map,d=new Map,h=new Map,g=new Map,f=new Map,p=new Map,m=new Map,v=[];function x(F,_){a.push(F),l.set(F.name,F),_&&m.forEach(K=>{K.enforce===_&&q(K,F)})}const k=Bw(o),y=On({...r,breakpoints:k.breakpoints,sizes:{...r.sizes,...k.sizes}});function S(){Ct(y,(F,_)=>{const K=_.includes("DEFAULT");_=Af(_);const te=_[0],fe=i(_),Ae=st(F)?{value:F}:F,Ut={value:Ae.value,originalValue:Ae.value,name:fe,path:_,extensions:{condition:"base",originalPath:_,category:te,prop:i(_.slice(1))}};K&&(Ut.extensions.default=!0),x(Ut)},{stop:Nf}),Ct(n,(F,_)=>{const K=_.includes("DEFAULT");_=Rf(Af(_));const te=_[0],fe=i(_),Ae=st(F.value)?{value:{base:F.value}}:F,Ut={value:Ae.value.base||"",originalValue:Ae.value.base||"",name:fe,path:_,extensions:{originalPath:_,category:te,conditions:Ae.value,condition:"base",prop:i(_.slice(1))}};K&&(Ut.extensions.default=!0),x(Ut)},{stop:Nf})}function b(F){return l.get(F)}function O(F){const{condition:_}=F.extensions;_&&(c.has(_)||c.set(_,new Set),c.get(_).add(F))}function T(F){const{category:_,prop:K}=F.extensions;_&&(p.has(_)||p.set(_,new Map),p.get(_).set(K,F))}function R(F){const{condition:_,negative:K,virtual:te,cssVar:fe}=F.extensions;K||te||!_||!fe||(d.has(_)||d.set(_,new Map),d.get(_).set(fe.var,F.value))}function E(F){const{category:_,prop:K,cssVar:te,negative:fe}=F.extensions;if(!_)return;f.has(_)||f.set(_,new Map);const Ae=fe?F.extensions.conditions?F.originalValue:F.value:te.ref;f.get(_).set(K,Ae),g.set([_,K].join("."),Ae)}function P(F){const{colorPalette:_,virtual:K,default:te}=F.extensions;!_||K||_.roots.forEach(fe=>{const Ae=i(fe);h.has(Ae)||h.set(Ae,new Map);const Ut=jw([...F.path],[...fe]),ts=i(Ut),Nl=b(ts);if(!Nl||!Nl.extensions.cssVar)return;const{var:x5}=Nl.extensions.cssVar;if(h.get(Ae).set(x5,F.extensions.cssVar.ref),te&&fe.length===1){const S5=i(["colors","colorPalette"]),sm=b(S5);if(!sm)return;const C5=i(F.path),am=b(C5);if(!am)return;const lm=_.keys[0]?.filter(Boolean);if(!lm.length)return;const Al=i(fe.concat(lm));h.has(Al)||h.set(Al,new Map),h.get(Al).set(sm.extensions.cssVar.var,am.extensions.cssVar.ref)}})}let N={};function w(){a.forEach(F=>{O(F),T(F),R(F),E(F),P(F)}),N=Sf(f)}const A=(F,_)=>{if(!F||typeof F!="string")return{invalid:!0,value:F};const[K,te]=F.split("/");if(!K||!te)return{invalid:!0,value:K};const fe=_(K),Ae=b(`opacity.${te}`)?.value;if(!Ae&&isNaN(Number(te)))return{invalid:!0,value:K};const Ut=Ae?Number(Ae)*100+"%":`${te}%`,ts=fe??K;return{invalid:!1,color:ts,value:`color-mix(in srgb, ${ts} ${Ut}, transparent)`}},L=je((F,_)=>g.get(F)??_),z=je(F=>N[F]||null),H=je(F=>xf(F,_=>{if(!_)return;if(_.includes("/")){const te=A(_,fe=>L(fe));if(te.invalid)throw new Error("Invalid color mix at "+_+": "+te.value);return te.value}const K=L(_);return K||(Lw.test(_)?yf(_):_)})),Z={prefix:t,allTokens:a,tokenMap:l,registerToken:x,getByName:b,formatTokenName:i,formatCssVar:s,flatMap:g,cssVarMap:d,categoryMap:p,colorPaletteMap:h,getVar:L,getCategoryValues:z,expandReferenceInValue:H};function ne(...F){F.forEach(_=>{m.set(_.name,_)})}function B(...F){v.push(...F)}function q(F,_){if(_.extensions.references||Cs(F.match)&&!F.match(_))return;const te=(fe=>F.transform(fe,Z))(_);switch(!0){case F.type==="extensions":Object.assign(_.extensions,te);break;case F.type==="value":_.value=te;break;default:_[F.type]=te;break}}function Q(F){v.forEach(_=>{_.enforce===F&&_.transform(Z)})}function ye(F){m.forEach(_=>{_.enforce===F&&a.forEach(K=>{q(_,K)})})}function ot(){a.forEach(F=>{const _=Uw(F);!_||_.length===0||_.forEach(K=>{x(K)})})}function It(F){const _=kf(F),K=[];for(let te=0;te<_.length;te++){const fe=b(_[te]);fe&&K.push(fe)}return K}function Ht(){a.forEach(F=>{if(!Fw(F.value))return;const _=It(F.value);F.extensions.references=_.reduce((K,te)=>(K[te.name]=te,K),{})})}function Pl(){a.forEach(F=>{wf(F)})}function y5(){Q("pre"),ye("pre"),ot(),Ht(),Pl(),Q("post"),ye("post"),w()}return S(),ne(...Ww),B(...$w),y5(),Z}function Af(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function Rf(e){return e.filter(t=>t!=="base")}function Uw(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,r=[];return Ct(t,(n,o)=>{const i=Rf(o);if(!i.length)return;const s={...e,value:n,extensions:{...e.extensions,condition:i.join(":")}};r.push(s)}),r}function jw(e,t){const r=e.findIndex((n,o)=>t.every((i,s)=>e[o+s]===i));return r===-1||(e.splice(r,t.length),e.splice(r,0,"colorPalette")),e}Nw()(["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 D5(e){return e}function Gw(e){return dt(e,(t,r)=>[t,r])}function qw(e){const t=Gw(e.config),r=e.tokens,n=new Map,o=new Map;function i(R,E){t[R]=E,s(R,E)}const s=(R,E)=>{const P=m(E);P&&(o.set(R,P),h(R,E))},a=()=>{for(const[R,E]of Object.entries(t))E&&s(R,E)},l=()=>{for(const[R,E]of Object.entries(t)){const{shorthand:P}=E??{};if(!P)continue;(Array.isArray(P)?P:[P]).forEach(w=>n.set(w,R))}},c=()=>{const R=Sf(r.colorPaletteMap);i("colorPalette",{values:Object.keys(R),transform:je(E=>R[E])})},d=new Map,h=(R,E)=>{if(!E)return;const P=m(E,w=>`type:Tokens["${w}"]`);if(typeof P=="object"&&P.type){d.set(R,new Set([`type:${P.type}`]));return}if(P){const w=new Set(Object.keys(P));d.set(R,w)}const N=d.get(R)??new Set;E.property&&d.set(R,N.add(`CssProperties["${E.property}"]`))},g=()=>{for(const[R,E]of Object.entries(t))E&&h(R,E)},f=(R,E)=>{const P=d.get(R)??new Set;d.set(R,new Set([...P,...E]))},p=()=>{const R=new Map;for(const[E,P]of d.entries()){if(P.size===0){R.set(E,["string"]);continue}const N=Array.from(P).map(w=>w.startsWith("CssProperties")?w:w.startsWith("type:")?w.replace("type:",""):JSON.stringify(w));R.set(E,N)}return R},m=(R,E)=>{const{values:P}=R,N=w=>{const A=E?.(w);return A?{[A]:A}:void 0};if(st(P))return N?.(P)??r.getCategoryValues(P)??ae;if(Array.isArray(P)){const w={};for(let A=0;A({[R]:R.startsWith("--")?r.getVar(E,E):E})),x=Object.assign(r.getVar,{raw:R=>r.getByName(R)}),k=je((R,E)=>{const P=b(R);st(E)&&!E.includes("_EMO_")&&(E=r.expandReferenceInValue(E));const N=t[P];if(!N)return v(P,E);const w=o.get(P)?.[E];if(!N.transform)return v(R,w??E);const A=L=>Ek(L,x);return N.transform(w??E,{raw:E,token:x,utils:{colorMix:A}})});function y(){l(),c(),a(),g()}y();const S=n.size>0,b=je(R=>n.get(R)??R);return{keys:()=>[...Array.from(n.keys()),...Object.keys(t)],hasShorthand:S,transform:k,shorthands:n,resolveShorthand:b,register:i,getTypes:p,addPropertyType:f}}function Vf(...e){const t=qh(...e),{theme:r={},utilities:n={},globalCss:o={},cssVarsRoot:i=":where(:root, :host)",cssVarsPrefix:s="chakra",preflight:a}=t,l=Sw(t),c=Hw({breakpoints:r.breakpoints,tokens:r.tokens,semanticTokens:r.semanticTokens,prefix:s}),d=ew(r.breakpoints??ae),h=ow({conditions:t.conditions??ae,breakpoints:d}),g=qw({config:n,tokens:c});function f(){const{textStyles:B,layerStyles:q,animationStyles:Q}=r,ye=On({textStyle:B,layerStyle:q,animationStyle:Q});for(const[ot,It]of Object.entries(ye)){const Ht=Jh(It??ae,_f);g.register(ot,{values:Object.keys(Ht),transform(Pl){return y(Ht[Pl])}})}}f(),g.addPropertyType("animationName",Object.keys(r.keyframes??ae));const p=new Set(["css",...g.keys(),...h.keys()]),m=je(B=>p.has(B)||Yk(B)),v=B=>{if(Array.isArray(B)){const q=Ti();for(let Q=0;Q[`@keyframes ${Q}`,ye]),q=Object.assign({},B,y(k(o)));return l.wrap("base",q)}function R(B){return Gr(B,m)}function E(){const B=kw({preflight:a});return l.wrap("reset",B)}const P=Kw(c),N=(B,q)=>P.get(B)?.value||q;N.var=(B,q)=>P.get(B)?.variable||q;function w(B,q){return r.recipes?.[B]??q}function A(B,q){return r.slotRecipes?.[B]??q}function L(B){return Object.hasOwnProperty.call(r.recipes??ae,B)}function z(B){return Object.hasOwnProperty.call(r.slotRecipes??ae,B)}function H(B){return L(B)||z(B)}const Z=[E(),T(),O()],ne={layerStyles:qa(r.layerStyles??ae),textStyles:qa(r.textStyles??ae),animationStyles:qa(r.animationStyles??ae),tokens:Lf(c,Object.keys(r.tokens??ae),(B,q)=>!B.extensions.conditions&&!q.includes("colorPalette")),semanticTokens:Lf(c,Object.keys(r.semanticTokens??ae),B=>!!B.extensions.conditions),keyframes:Ff(r.keyframes??ae),breakpoints:Ff(r.breakpoints??ae)};return{$$chakra:!0,_config:t,_global:Z,breakpoints:d,tokens:c,conditions:h,utility:g,token:N,properties:p,layers:l,isValidProperty:m,splitCssProps:R,normalizeValue:v,getTokenCss:O,getGlobalCss:T,getPreflightCss:E,css:y,cva:S,sva:b,getRecipe:w,getSlotRecipe:A,hasRecipe:H,isRecipe:L,isSlotRecipe:z,query:ne}}function Kw(e){const t=new Map;return e.allTokens.forEach(r=>{const{cssVar:n,virtual:o,conditions:i}=r.extensions,s=i||o?n.ref:r.value;t.set(r.name,{value:s,variable:n.ref})}),t}const _f=e=>Me(e)&&"value"in e,qa=e=>({list(){return Object.keys(Jh(e,_f))},search(t){return this.list().filter(r=>r.includes(t))}}),Lf=(e,t,r)=>({categoryKeys:t,list(n){const o=e.categoryMap.get(n),i=o?[...o.entries()]:[],s=[];for(let a=0;ai.includes(o))}}),Ff=e=>({list(){return Object.keys(e)},search(t){return this.list().filter(r=>r.includes(t))}}),Yw={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Ka="var(--chakra-empty,/*!*/ /*!*/)",Xw=Pk({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":Ka,"--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}`,Ka])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,Ka])),"--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"}}),Qw=Rk({"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:{}}}),Jw=Ak({"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"}}}),Ya=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","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"var(--outline-shadow, var(--outline-shadow-legacy))"},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"}}),Zw=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","--outline-color-legacy":"colors.colorPalette.muted","--outline-color":"colors.colorPalette.border",borderColor:"var(--outline-color, var(--outline-color-legacy))",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"}}),Pe=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:eE,defaultVariants:tE}=Ya,rE=Se({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:eE,defaultVariants:tE}),zf=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"}}),nE=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"}}}}),oE=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"}}),iE=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"}}),be=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"}}),sE=Se({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:be.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"}}),aE=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"}}),lE=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"}}),cE=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:{}}}}),Ne=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"}}),dE=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"}}),uE=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}}),hE=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"}}}),fE=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"}}),gE=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"}}),pE={badge:Ya,button:Zw,code:rE,container:nE,heading:oE,input:be,inputAddon:sE,kbd:aE,link:lE,mark:cE,separator:dE,skeleton:uE,skipNavLink:hE,spinner:fE,textarea:gE,icon:iE,checkmark:Pe,radiomark:Ne,colorSwatch:zf},mE=Wa.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}"}},border:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}}},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}"}},border:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}}},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}"}},border:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}}},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}"}},border:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}}},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}"}},border:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},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}"}},border:{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}"}},border:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.400}"}}},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}"}},border:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.400}"}}},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}"}},border:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.400}"}}},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}"}},border:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.400}"}}}}),vE=Wa.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),bE=Wa.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}"}}}),yE=$d.extendWith("itemBody"),xE=$("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),SE=$("alert").parts("title","description","root","indicator","content"),CE=$("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),kE=$("blockquote").parts("root","icon","content","caption"),wE=$("card").parts("root","header","body","footer","title","description"),EE=$("checkbox-card",["root","control","label","description","addon","indicator","content"]),OE=$("data-list").parts("root","item","itemLabel","itemValue"),IE=ma.extendWith("header","body","footer","backdrop"),TE=ma.extendWith("header","body","footer","backdrop"),PE=Tu.extendWith("textarea"),NE=$("empty-state",["root","content","indicator","title","description"]),AE=Nu.extendWith("requiredIndicator"),RE=Ru.extendWith("content"),VE=Vu.extendWith("itemContent","dropzoneContent","fileText"),_E=$("list").parts("root","item","indicator"),LE=Uu.extendWith("itemCommand"),FE=$("select").parts("root","field","indicator"),zE=lh.extendWith("header","body","footer"),Df=Pa.extendWith("itemAddon","itemIndicator"),DE=Df.extendWith("itemContent","itemDescription"),ME=dh.extendWith("itemIndicator"),$E=Oh.extendWith("indicatorGroup"),WE=bS.extendWith("indicatorGroup","empty"),BE=Lh.extendWith("markerIndicator"),HE=$("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),UE=$("status").parts("root","indicator"),jE=$("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),GE=Fh.extendWith("indicator"),qE=$("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),KE=$("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),YE=$("tabs").parts("root","trigger","list","content","contentGroup","indicator"),XE=$("tag").parts("root","label","closeTrigger","startElement","endElement"),QE=$("timeline").parts("root","item","content","separator","indicator","connector","title","description"),JE=M1.extendWith("channelText"),ZE=$("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]),eO=zd.extendWith("resizeTriggerSeparator","resizeTriggerIndicator");tu.extendWith("valueText");const tO=qS,rO=W({className:"chakra-accordion",slots:yE.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"}}),nO=W({className:"chakra-action-bar",slots:xE.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"}}}),oO=W({slots:SE.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)","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",shadowColor:"var(--outline-shadow, var(--outline-shadow-legacy))"},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}}),iO=W({slots:Hd.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","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",borderColor:"var(--outline-shadow, var(--outline-shadow-legacy))"}}},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"}}),sO=W({className:"chakra-blockquote",slots:kE.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"}}),aO=W({className:"chakra-breadcrumb",slots:CE.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"}}),lO=W({className:"chakra-card",slots:wE.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"}}),cO=W({className:"carousel",slots:N1.keys(),base:{root:{position:"relative",display:"flex",gap:"2",_horizontal:{flexDirection:"column"},_vertical:{flexDirection:"row"}},item:{_horizontal:{width:"100%"},_vertical:{height:"100%"}},control:{display:"flex",alignItems:"center",_horizontal:{flexDirection:"row",width:"100%"},_vertical:{flexDirection:"column",height:"100%"}},indicatorGroup:{display:"flex",justifyContent:"center",gap:"3",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},indicator:{width:"2.5",height:"2.5",borderRadius:"full",bg:"colorPalette.subtle",cursor:"button",_current:{bg:"colorPalette.solid"}}},defaultVariants:{}}),dO=W({slots:D1.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:Pe.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:Pe.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:Pe.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:Pe.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:Pe.variants?.size?.lg}},variant:{outline:{control:Pe.variants?.variant?.outline},solid:{control:Pe.variants?.variant?.solid},subtle:{control:Pe.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),uO=W({slots:EE.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:Pe.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:Pe.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Pe.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Pe.variants?.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:Pe.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:Pe.variants?.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:Pe.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:Pe.variants?.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"}}),hO=W({slots:ZE.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",overflowX:"auto",overflowY:"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",paddingInlineEnd:"var(--code-block-padding)","--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",top:"0",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",whiteSpace:"nowrap",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"}}),fO=W({slots:Jc.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate","&[data-has-collapsed-size]":{animationName:"expand-height"}},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate","&[data-has-collapsed-size]":{animationName:"collapse-height"}}}}}),gO=W({className:"colorPicker",slots:JE.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:{...zf.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:{...be.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:be.variants?.size?.["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:be.variants?.size?.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:be.variants?.size?.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:be.variants?.size?.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:be.variants?.size?.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:be.variants?.size?.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:be.variants?.size?.["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:be.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:be.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),pO=W({className:"chakra-combobox",slots:WE.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},control:{pos:"relative","--padding-factor":"1","--combobox-input-padding-end":"var(--combobox-input-padding-x)","&:has([data-part=trigger]), &:has([data-part=clear-trigger])":{"--combobox-input-padding-end":"calc(var(--combobox-input-height) * var(--padding-factor))"},"&:has([data-part=trigger]):has([data-part=clear-trigger]:not([hidden]))":{"--padding-factor":"1.5"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",ps:"var(--combobox-input-padding-x)",pe:"var(--combobox-input-padding-end)","--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"},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"}}),mO=W({slots:OE.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"}}),vO=W({slots:IE.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"}}),bO=W({slots:TE.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"}}),Mf=un({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),yO=W({slots:PE.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...Mf,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...Mf,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"}}),xO=W({slots:NE.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"}}),SO=W({className:"chakra-field",slots:AE.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"}}),CO=W({className:"fieldset",slots:RE.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"}}),kO=W({className:"chakra-file-upload",slots:VE.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:{}}),wO=W({className:"chakra-hover-card",slots:_u.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",borderLeftWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),EO=W({className:"chakra-list",slots:_E.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"}}),OO=W({className:"chakra-listbox",slots:tO.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"}}),IO=W({className:"chakra-menu",slots:LE.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"}}),Ni=W({className:"chakra-select",slots:$E.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"}}),TO=W({className:"chakra-native-select",slots:FE.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:Ni.variants?.variant.outline.trigger},subtle:{field:Ni.variants?.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:Ni.defaultVariants}),$f=un({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"}}),PO=W({className:"chakra-number-input",slots:th.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...be.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:{...$f,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...$f,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:be.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:be.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:be.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:be.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:dt(be.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:Wf,defaultVariants:NO}=be,AO=W({className:"chakra-pin-input",slots:ah.keys(),base:{input:{...be.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:dt(Wf.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:dt(Wf.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:NO}),RO=W({className:"chakra-popover",slots:zE.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",borderLeftWidth:"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"}}),VO=W({slots:Ta.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"}}),_O=W({className:"chakra-progress-circle",slots:Ta.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"}}),LO=W({slots:ch.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"}}),FO=W({className:"chakra-radio-card",slots:DE.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:Ne.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:Ne.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:Ne.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:Ne.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:Ne.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:Ne.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:Ne.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:Ne.variants?.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"}}),zO=W({className:"chakra-radio-group",slots:Df.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:Ne.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:Ne.variants?.variant?.outline},subtle:{itemControl:Ne.variants?.variant?.subtle},solid:{itemControl:Ne.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:Ne.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:Ne.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:Ne.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:Ne.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}}),DO=W({className:"chakra-rating-group",slots:ME.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"}}),MO=W({className:"chakra-scroll-area",slots:uh.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"}}),$O=W({className:"chakra-segment-group",slots:hh.keys(),base:{root:{"--segment-radius":"radii.l2","--segment-indicator-bg":{_light:"colors.bg",_dark:"colors.bg.emphasized"},"--segment-indicator-shadow":"shadows.sm",borderRadius:"var(--segment-radius)",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:"var(--segment-indicator-shadow)",pos:"absolute",bg:"var(--segment-indicator-bg)",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"}}),WO=W({className:"chakra-slider",slots:BE.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"}}),BO=W({slots:eO.keys(),className:"splitter",base:{resizeTrigger:{"--splitter-border-color":"colors.border","--splitter-thumb-color":"colors.bg","--splitter-thumb-size":"sizes.2","--splitter-thumb-inset":"calc(var(--splitter-thumb-size) * -0.5)","--splitter-border-size":"1px","--splitter-handle-size":"sizes.6",outline:"0",display:"grid",placeItems:"center",position:"relative",_focus:{"--splitter-border-color":"colors.border.emphasized","--splitter-thumb-color":"colors.colorPalette.subtle"},_dragging:{"--splitter-thumb-color":"colors.colorPalette.focusRing"},_horizontal:{minWidth:"var(--splitter-thumb-size)",marginInline:"var(--splitter-thumb-inset)"},_vertical:{minHeight:"var(--splitter-thumb-size)",marginBlock:"var(--splitter-thumb-inset)"}},resizeTriggerSeparator:{position:"absolute",bg:"var(--splitter-border-color)","[data-part='resize-trigger'][data-orientation=horizontal] &":{insetInlineEnd:"calc(var(--splitter-thumb-size) * 0.5)",insetBlock:"0",insetInlineStart:"auto",w:"var(--splitter-border-size)"},"[data-part='resize-trigger'][data-orientation=vertical] &":{insetBlockEnd:"calc(var(--splitter-thumb-size) * 0.5)",insetInline:"0",insetBlockStart:"auto",h:"var(--splitter-border-size)"}},resizeTriggerIndicator:{position:"relative",rounded:"full",bg:"var(--splitter-thumb-color)",shadow:"xs",borderWidth:"1px",zIndex:"1","[data-part='resize-trigger'][data-orientation=horizontal] &":{w:"full",h:"var(--splitter-handle-size)"},"[data-part='resize-trigger'][data-orientation=vertical] &":{w:"var(--splitter-handle-size)",h:"full"},"[data-part='resize-trigger'][data-focus]:focus-visible &":{outlineWidth:"2px",outlineColor:"colorPalette.focusRing",outlineStyle:"solid"},"[data-part='resize-trigger'][data-disabled] &":{visibility:"hidden"}}}}),HO=W({className:"chakra-stat",slots:HE.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"}}),UO=W({className:"chakra-status",slots:UE.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"}}),jO=W({className:"chakra-steps",slots:jE.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"}}),GO=W({slots:GE.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"}}),qO=W({className:"chakra-table",slots:qE.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}"},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"}}),KO=W({slots:YE.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate",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-trigger-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-trigger-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}}),Ai=Ya.variants?.variant,YO=W({slots:XE.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:Ai?.subtle},solid:{root:Ai?.solid},outline:{root:Ai?.outline},surface:{root:Ai?.surface}}},defaultVariants:{size:"md",variant:"surface"}}),XO=W({slots:zh.keys(),className:"tags-input",base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},control:{"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",minH:"var(--tags-input-height)","--input-height":"var(--tags-input-height)",px:"var(--tags-input-px)",py:"var(--tags-input-py)",gap:"var(--tags-input-gap)",display:"flex",flexWrap:"wrap",alignItems:"center",borderRadius:"l2",pos:"relative",transitionProperty:"border-color, box-shadow",transitionDuration:"normal",_disabled:{opacity:"0.5"},_invalid:{borderColor:"var(--error-color)"}},input:{flex:"1",minWidth:"20",outline:"none",bg:"transparent",color:"fg",px:"calc(var(--tags-input-item-px) / 1.25)",height:"var(--tags-input-item-height)",_readOnly:{display:"none"}},item:{maxWidth:"100%",minWidth:"0"},itemText:{lineClamp:"1",minWidth:"0"},itemInput:{outline:"none",bg:"transparent",minWidth:"2ch",color:"inherit",px:"var(--tags-input-item-px)",height:"var(--tags-input-item-height)"},itemPreview:{height:"var(--tags-input-item-height)",userSelect:"none",display:"inline-flex",alignItems:"center",gap:"1",rounded:"l1",px:"var(--tags-input-item-px)",maxWidth:"100%"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:"0",boxSize:"calc(var(--tags-input-item-height) / 1.5)",cursor:{base:"button",_disabled:"initial"},me:"-1",opacity:"0.4",_hover:{opacity:"1"},"[data-highlighted] &":{opacity:"1"},_icon:{boxSize:"80%"}},clearTrigger:{display:"flex",alignItems:"center",justifyContent:"center",boxSize:"calc(var(--tags-input-item-height) / 1.5)",cursor:{base:"button",_disabled:"initial"},color:"fg.muted",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1",_icon:{boxSize:"5"}}},variants:{size:{xs:{root:{"--tags-input-height":"sizes.8","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.6","--tags-input-item-px":"spacing.2",textStyle:"xs"}},sm:{root:{"--tags-input-height":"sizes.9","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.6","--tags-input-item-px":"spacing.2",textStyle:"sm"}},md:{root:{"--tags-input-height":"sizes.10","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.7","--tags-input-item-px":"spacing.2",textStyle:"sm"}},lg:{root:{"--tags-input-height":"sizes.11","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.8","--tags-input-item-px":"spacing.2",textStyle:"md"}}},variant:{outline:{control:{borderWidth:"1px",bg:"bg",_focus:{outlineWidth:"1px",outlineStyle:"solid",outlineColor:"var(--focus-color)",borderColor:"var(--focus-color)",_invalid:{outlineColor:"var(--error-color)",borderColor:"var(--error-color)"}}},itemPreview:{bg:"colorPalette.subtle",_highlighted:{bg:"colorPalette.muted"}}},subtle:{control:{bg:"bg.muted",borderWidth:"1px",borderColor:"transparent",_focus:{outlineWidth:"1px",outlineStyle:"solid",outlineColor:"var(--focus-color)",borderColor:"var(--focus-color)",_invalid:{outlineColor:"var(--error-color)",borderColor:"var(--error-color)"}}},itemPreview:{bg:"bg",borderWidth:"1px",_highlighted:{bg:"colorPalette.subtle",borderColor:"colorPalette.emphasized"}}},flushed:{control:{borderRadius:"0",px:"0",bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",_focus:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},itemPreview:{bg:"colorPalette.subtle",_highlighted:{bg:"colorPalette.muted"}}}}},defaultVariants:{size:"md",variant:"outline"}}),QO=W({slots:QE.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{"--timeline-content-gap":"spacing.6",display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"--timeline-content-gap":"0"}},separator:{display:"var(--timeline-separator-display)",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:"var(--timeline-content-gap)",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:{}},showLastSeparator:{true:{item:{_last:{"--timeline-separator-display":"initial"}}},false:{item:{_last:{"--timeline-separator-display":"none"}}}},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",showLastSeparator:!1}}),JO=W({slots:KE.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"}}}}),ZO=W({slots:Bh.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",borderLeftWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),Bf=un({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"}}),Hf=un({flex:"1"}),Uf=un({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),jf=un({_selected:{layerStyle:"fill.solid"}}),e2=W({slots:zu.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:Bf,item:Bf,itemText:Hf,branchText:Hf,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:Uf,item:Uf},solid:{branchControl:jf,item:jf}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),t2={accordion:rO,actionBar:nO,alert:oO,avatar:iO,blockquote:sO,breadcrumb:aO,card:lO,carousel:cO,checkbox:dO,checkboxCard:uO,codeBlock:hO,collapsible:fO,dataList:mO,dialog:vO,drawer:bO,editable:yO,emptyState:xO,field:SO,fieldset:CO,fileUpload:kO,hoverCard:wO,list:EO,listbox:OO,menu:IO,nativeSelect:TO,numberInput:PO,pinInput:AO,popover:RO,progress:VO,progressCircle:_O,radioCard:FO,radioGroup:zO,ratingGroup:DO,scrollArea:MO,segmentGroup:$O,select:Ni,combobox:pO,slider:WO,splitter:BO,stat:HO,steps:jO,switch:GO,table:qO,tabs:KO,tag:YO,tagsInput:XO,toast:JO,tooltip:ZO,status:UO,timeline:QO,colorPicker:gO,qrCode:LO,treeView:e2},r2=Nk({"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"}}}),n2=ve.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"}}),o2=ve.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"}}),i2=ve.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),s2=ve.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),a2=ve.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"}}}),l2=ve.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"}}),c2=ve.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),d2=ve.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)"}}),u2=ve.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"}}),h2=ve.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"}}),Gf='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',f2=ve.fonts({heading:{value:`Inter, ${Gf}`},body:{value:`Inter, ${Gf}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),g2=Tk({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:"var(--collapsed-height, 0)"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"var(--collapsed-height, 0)"}},"expand-width":{from:{width:"var(--collapsed-width, 0)"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"var(--collapsed-width, 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"}}}),p2=ve.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),m2=ve.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),v2=ve.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"}}),qf=ve.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"}}),b2=ve.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"}}),y2=ve.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"}}),x2=ve.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%"}}),S2=ve.sizes({...b2,...qf,...x2,...y2}),C2=ve.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}}),k2=Ba({preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:Xw,theme:{breakpoints:Yw,keyframes:g2,tokens:{aspectRatios:o2,animations:n2,blurs:i2,borders:s2,colors:a2,durations:c2,easings:d2,fonts:f2,fontSizes:u2,fontWeights:h2,letterSpacings:p2,lineHeights:m2,radii:v2,spacing:qf,sizes:S2,zIndex:C2,cursor:l2},semanticTokens:{colors:mE,shadows:bE,radii:vE},recipes:pE,slotRecipes:t2,textStyles:r2,layerStyles:Qw,animationStyles:Jw}}),Kf=qh($k,k2);Vf(Kf);function w2(e){const{key:t,recipe:r}=e,n=Oo();return C.useMemo(()=>{const o=r||(t!=null?n.getSlotRecipe(t):{});return n.sva(structuredClone(o))},[t,r,n])}const E2=e=>e.charAt(0).toUpperCase()+e.slice(1),no=e=>{const{key:t,recipe:r}=e,n=E2(t||r.className||"Component"),[o,i]=jr({name:`${n}StylesContext`,errorMessage:`use${n}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${n}.Root />" `}),[s,a]=jr({name:`${n}ClassNameContext`,errorMessage:`use${n}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${n}.Root />" `,strict:!1}),[l,c]=jr({strict:!1,name:`${n}PropsContext`,providerName:`${n}PropsContext`,defaultValue:{}});function d(p){const{unstyled:m,...v}=p,x=w2({key:t,recipe:v.recipe||r}),[k,y]=C.useMemo(()=>x.splitVariantProps(v),[v,x]);return{styles:C.useMemo(()=>m?Iv:x(k),[m,k,x]),classNames:x.classNameMap,props:y}}function h(p,m={}){const{defaultProps:v}=m,x=k=>{const y=c(),S=C.useMemo(()=>En(v,y,k),[y,k]),{styles:b,classNames:O,props:T}=d(S);return u.jsx(o,{value:b,children:u.jsx(s,{value:O,children:u.jsx(p,{...T})})})};return x.displayName=p.displayName||p.name,x}return{StylesProvider:o,ClassNamesProvider:s,PropsProvider:l,usePropsContext:c,useRecipeResult:d,withProvider:(p,m,v)=>{const{defaultProps:x,...k}=v??{},y=he(p,{},k),S=C.forwardRef((b,O)=>{const T=c(),R=C.useMemo(()=>En(x??{},T,b),[T,b]),{styles:E,props:P,classNames:N}=d(R),w=N[m],A=u.jsx(o,{value:E,children:u.jsx(s,{value:N,children:u.jsx(y,{ref:O,...P,css:[E[m],R.css],className:Xe(R.className,w)})})});return v?.wrapElement?.(A,R)??A});return S.displayName=p.displayName||p.name,S},withContext:(p,m,v)=>{const x=he(p,{},v),k=C.forwardRef((y,S)=>{const{unstyled:b,...O}=y,T=i(),E=a()?.[m];return u.jsx(x,{...O,css:[!b&&m?T[m]:void 0,y.css],ref:S,className:Xe(y.className,E)})});return k.displayName=p.displayName||p.name,k},withRootProvider:h,useStyles:i,useClassNames:a}},Yf=he("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"}});Yf.displayName="AbsoluteCenter";const O2=e=>u.jsx(he.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:u.jsx("path",{d:"M20 6 9 17l-5-5"})}),I2=e=>u.jsx(he.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:u.jsx("path",{d:"m6 9 6 6 6-6"})}),T2=e=>u.jsx(he.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:u.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"})}),Xf=e=>u.jsx(he.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:u.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"})}),Qf=e=>u.jsx(he.svg,{viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",...e,children:u.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"})}),Jf=e=>u.jsx(he.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:u.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"})}),[P2,N2]=jr({name:"AlertStatusContext",hookName:"useAlertStatusContext",providerName:""}),{withProvider:A2,withContext:Xa,useStyles:R2}=no({key:"alert"}),V2=A2("div","root",{forwardAsChild:!0,wrapElement(e,t){return u.jsx(P2,{value:{status:t.status||"info"},children:e})}}),Zf=Xa("div","title"),_2=Xa("div","description"),L2=Xa("div","content"),F2={info:Qf,warning:Xf,success:T2,error:Xf,neutral:Qf},z2=C.forwardRef(function(t,r){const n=N2(),o=R2(),i=typeof n.status=="string"?F2[n.status]:C.Fragment,{children:s=u.jsx(i,{}),...a}=t;return u.jsx(he.span,{ref:r,...a,css:[o.indicator,t.css],children:s})}),Ri=e=>e?"":void 0,D2=he("div",{base:{display:"inline-flex",gap:"var(--group-gap, 0.5rem)",isolation:"isolate",position:"relative","& [data-group-item]":{_focusVisible:{zIndex:1}}},variants:{orientation:{horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},attached:{true:{gap:"0!"}},grow:{true:{display:"flex","& > *":{flex:1}}},stacking:{"first-on-top":{"& > [data-group-item]":{zIndex:"calc(var(--group-count) - var(--group-index))"}},"last-on-top":{"& > [data-group-item]":{zIndex:"var(--group-index)"}}}},compoundVariants:[{orientation:"horizontal",attached:!0,css:{"& > *[data-first]":{borderEndRadius:"0!",marginEnd:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginEnd:"-1px"},"& > *[data-last]":{borderStartRadius:"0!"}}},{orientation:"vertical",attached:!0,css:{"& > *[data-first]":{borderBottomRadius:"0!",marginBottom:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginBottom:"-1px"},"& > *[data-last]":{borderTopRadius:"0!"}}}],defaultVariants:{orientation:"horizontal"}}),eg=C.memo(C.forwardRef(function(t,r){const{align:n="center",justify:o="flex-start",children:i,wrap:s,skip:a,...l}=t,c=C.useMemo(()=>{let d=C.Children.toArray(i).filter(C.isValidElement);if(d.length===1)return d;const h=d.filter(f=>!a?.(f)),g=h.length;return h.length===1?d:d.map(f=>{const p=f.props;if(a?.(f))return f;const m=h.indexOf(f);return C.cloneElement(f,{...p,"data-group-item":"","data-first":Ri(m===0),"data-last":Ri(m===g-1),"data-between":Ri(m>0&&mEn(n,t),[n,t]),i=W2(o),{loading:s,loadingText:a,children:l,spinner:c,spinnerPlacement:d,...h}=i.props;return u.jsx(he.button,{type:"button",ref:r,...h,"data-loading":Ri(s),disabled:s||h.disabled,className:Xe(i.className,o.className),css:[i.styles,o.css],children:!o.asChild&&s?u.jsx(rg,{spinner:c,text:a,spinnerPlacement:d,children:l}):l})});Ee.displayName="Button";const kt=C.forwardRef(function(t,r){return u.jsx(Ee,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:r,...t})});kt.displayName="IconButton";const tr=D.forwardRef(function(t,r){return u.jsx(kt,{variant:"ghost","aria-label":"Close",ref:r,...t,children:t.children??u.jsx(Jf,{})})});tr.displayName="CloseButton";const ng=he("div",{base:{display:"flex",alignItems:"center",justifyContent:"center"},variants:{inline:{true:{display:"inline-flex"}}}});ng.displayName="Center";const{withContext:H2}=Tt({key:"code"}),og=H2("code");og.displayName="Code";function U2(e){const{gap:t,direction:r}=e,n={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{"&":Gh(r,o=>n[o])}}function j2(e){return C.Children.toArray(e).filter(t=>C.isValidElement(t))}const Ja=C.forwardRef(function(t,r){const{direction:n="column",align:o,justify:i,gap:s="0.5rem",wrap:a,children:l,separator:c,className:d,...h}=t,g=C.useMemo(()=>U2({gap:s,direction:n}),[s,n]),f=C.useMemo(()=>C.isValidElement(c)?j2(l).map((p,m,v)=>{const x=typeof p.key<"u"?p.key:m,k=c,y=C.cloneElement(k,{css:[g,k.props.css]});return u.jsxs(C.Fragment,{children:[p,m===v.length-1?null:y]},x)}):l,[l,c,g]);return u.jsx(he.div,{ref:r,display:"flex",alignItems:o,justifyContent:i,flexDirection:n,flexWrap:a,gap:c?void 0:s,className:Xe("chakra-stack",d),...h,children:f})});Ja.displayName="Stack";const{withRootProvider:ig,withContext:wt}=no({key:"dialog"});ig(PS,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const Er=ig(TS,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});wt(Iu,"trigger",{forwardAsChild:!0});const Or=wt(Su,"positioner",{forwardAsChild:!0}),Ir=wt(yu,"content",{forwardAsChild:!0});wt(xu,"description",{forwardAsChild:!0});const Tr=wt(Ou,"title",{forwardAsChild:!0}),Pr=wt(bu,"closeTrigger",{forwardAsChild:!0}),Nr=C.forwardRef(function(t,r){const n=Qt();return u.jsx(he.button,{...t,ref:r,onClick:()=>n.setOpen(!1)})}),Ar=wt(vu,"backdrop",{forwardAsChild:!0}),Rr=wt("div","body"),Vr=wt("div","footer"),_r=wt("div","header");function G2(e){const{each:t,fallback:r,children:n}=e;return t?.length===0?r||null:t?.map(n)}const oo=C.forwardRef(function(t,r){const{direction:n,align:o,justify:i,wrap:s,basis:a,grow:l,shrink:c,inline:d,...h}=t;return u.jsx(he.div,{ref:r,...h,css:{display:d?"inline-flex":"flex",flexDirection:n,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:a,flexGrow:l,flexShrink:c,...t.css}})});oo.displayName="Flex";const{withContext:q2}=Tt({key:"input"}),sg=q2(Pu),ag=he("div",{base:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",zIndex:2,color:"fg.muted",height:"full",fontSize:"sm",px:"3"},variants:{placement:{start:{insetInlineStart:"0"},end:{insetInlineEnd:"0"}}}}),{withContext:K2}=Tt({key:"kbd"}),lg=K2("kbd");lg.displayName="Kbd";const{withContext:Y2}=Tt({key:"link"}),cg=Y2("a");cg.displayName="Link";const{withProvider:X2,withContext:dg}=no({key:"list"}),ug=X2("ul","root",{defaultProps:{role:"list"}}),hg=dg("li","item");dg("span","indicator");const{withProvider:fg,withContext:Ge}=no({key:"select"});fg(ZC,"root",{forwardAsChild:!0});const Q2=fg(QC,"root",{forwardAsChild:!0,defaultProps:{positioning:{sameWidth:!0}}}),J2=Ge(Vh,"trigger",{forwardAsChild:!0}),Z2=Ge(Eh,"positioner",{forwardAsChild:!0}),eI=Ge(ph,"content",{forwardAsChild:!0}),tI=Ge(_h,"valueText",{forwardAsChild:!0}),rI=Ge(gh,"clearTrigger",{forwardAsChild:!0,defaultProps:{children:u.jsx(Jf,{boxSize:"1em"})}});Ge(xh,"itemGroup",{forwardAsChild:!0}),Ge(Sh,"itemGroupLabel",{forwardAsChild:!0});const nI=Ge(yh,"item",{forwardAsChild:!0});Ge(kh,"itemText",{forwardAsChild:!0});const oI=Ge(Ch,"itemIndicator",{forwardAsChild:!0,defaultProps:{children:u.jsx(O2,{})}}),iI=Ge("div","indicatorGroup"),sI=Ge(vh,"indicator",{forwardAsChild:!0,defaultProps:{children:u.jsx(I2,{})}}),aI=Ge(mh,"control",{forwardAsChild:!0});Ge(wh,"label",{forwardAsChild:!0});const lI=LC,Vi=C.forwardRef(function(t,r){return u.jsx(Ja,{align:"center",...t,direction:"row",ref:r})});Vi.displayName="HStack";const io=C.forwardRef(function(t,r){return u.jsx(Ja,{align:"center",...t,direction:"column",ref:r})});io.displayName="VStack";const{StylesProvider:cI,ClassNamesProvider:dI,useRecipeResult:uI,withContext:Mt}=no({key:"table"}),gg=C.forwardRef(function({native:t,...r},n){const{styles:o,props:i,classNames:s}=uI(r),a=C.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 u.jsx(dI,{value:s,children:u.jsx(cI,{value:o,children:u.jsx(he.table,{ref:n,...i,css:[a,r.css],className:Xe(s?.root,r.className)})})})}),_i=Mt("tr","row");he("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}});const pg=Mt("thead","header");Mt("tfoot","footer");const Oe=Mt("th","columnHeader"),Ie=Mt("td","cell");Mt("caption","caption",{defaultProps:{captionSide:"bottom"}});const mg=Mt("tbody","body");Mt("colgroup"),Mt("col");const{withContext:hI}=Tt({key:"textarea"}),Za=hI(Au);Za.displayName="Textarea";var pn=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(){}},fI={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},gI=class{#e=fI;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Lr=new gI;function pI(e){setTimeout(e,0)}var Fr=typeof window>"u"||"Deno"in globalThis;function ze(){}function mI(e,t){return typeof e=="function"?e(t):e}function el(e){return typeof e=="number"&&e>=0&&e!==1/0}function vg(e,t){return Math.max(e+(t||0)-Date.now(),0)}function rr(e,t){return typeof e=="function"?e(t):e}function nt(e,t){return typeof e=="function"?e(t):e}function bg(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(n){if(t.queryHash!==tl(s,t.options))return!1}else if(!so(t.queryKey,s))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function yg(e,t){const{exact:r,status:n,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(zr(t.options.mutationKey)!==zr(i))return!1}else if(!so(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function tl(e,t){return(t?.queryKeyHashFn||zr)(e)}function zr(e){return JSON.stringify(e,(t,r)=>rl(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function so(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>so(e[r],t[r])):!1}var vI=Object.prototype.hasOwnProperty;function xg(e,t){if(e===t)return e;const r=Sg(e)&&Sg(t);if(!r&&!(rl(e)&&rl(t)))return t;const o=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),s=i.length,a=r?new Array(s):{};let l=0;for(let c=0;c{Lr.setTimeout(t,e)})}function nl(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?xg(e,t):t}function yI(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function xI(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var ol=Symbol();function kg(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ol?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function wg(e,t){return typeof e=="function"?e(...t):!!e}var SI=class extends pn{#e;#t;#r;constructor(){super(),this.#r=e=>{if(!Fr&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},il=new SI;function sl(){let e,t;const r=new Promise((o,i)=>{e=o,t=i});r.status="pending",r.catch(()=>{});function n(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{n({status:"fulfilled",value:o}),e(o)},r.reject=o=>{n({status:"rejected",reason:o}),t(o)},r}var CI=pI;function kI(){let e=[],t=0,r=a=>{a()},n=a=>{a()},o=CI;const i=a=>{t?e.push(a):o(()=>{r(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{n(()=>{a.forEach(l=>{r(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=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{o=a}}}var Ce=kI(),wI=class extends pn{#e=!0;#t;#r;constructor(){super(),this.#r=e=>{if(!Fr&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#e}},Fi=new wI;function EI(e){return Math.min(1e3*2**e,3e4)}function Eg(e){return(e??"online")==="online"?Fi.isOnline():!0}var al=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Og(e){let t=!1,r=0,n;const o=sl(),i=()=>o.status!=="pending",s=m=>{if(!i()){const v=new al(m);g(v),e.onCancel?.(v)}},a=()=>{t=!0},l=()=>{t=!1},c=()=>il.isFocused()&&(e.networkMode==="always"||Fi.isOnline())&&e.canRun(),d=()=>Eg(e.networkMode)&&e.canRun(),h=m=>{i()||(n?.(),o.resolve(m))},g=m=>{i()||(n?.(),o.reject(m))},f=()=>new Promise(m=>{n=v=>{(i()||c())&&m(v)},e.onPause?.()}).then(()=>{n=void 0,i()||e.onContinue?.()}),p=()=>{if(i())return;let m;const v=r===0?e.initialPromise:void 0;try{m=v??e.fn()}catch(x){m=Promise.reject(x)}Promise.resolve(m).then(h).catch(x=>{if(i())return;const k=e.retry??(Fr?0:3),y=e.retryDelay??EI,S=typeof y=="function"?y(r,x):y,b=k===!0||typeof k=="number"&&rc()?void 0:f()).then(()=>{t?g(x):p()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(n?.(),o),cancelRetry:a,continueRetry:l,canStart:d,start:()=>(d()?p():f().then(p),o)}}var Ig=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),el(this.gcTime)&&(this.#e=Lr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Fr?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Lr.clearTimeout(this.#e),this.#e=void 0)}},OI=class extends Ig{#e;#t;#r;#o;#n;#s;#a;constructor(e){super(),this.#a=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.client,this.#r=this.#o.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Ng(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Ng(this.options);t.data!==void 0&&(this.setState(Pg(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const r=nl(this.state.data,e,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#n?.promise;return this.#n?.cancel(e),t?t.then(ze).catch(ze):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>nt(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ol||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>rr(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!vg(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#n&&(this.#a?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#n?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(e&&this.setOptions(e),!this.options.queryFn){const a=this.observers.find(l=>l.options.queryFn);a&&this.setOptions(a.options)}const r=new AbortController,n=a=>{Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(this.#a=!0,r.signal)})},o=()=>{const a=kg(this.options,t),c=(()=>{const d={client:this.#o,queryKey:this.queryKey,meta:this.meta};return n(d),d})();return this.#a=!1,this.options.persister?this.options.persister(a,c,this):a(c)},s=(()=>{const a={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:o};return n(a),a})();this.options.behavior?.onFetch(s,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#i({type:"fetch",meta:s.fetchOptions?.meta}),this.#n=Og({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:a=>{a instanceof al&&a.revert&&this.setState({...this.#t,fetchStatus:"idle"}),r.abort()},onFail:(a,l)=>{this.#i({type:"failed",failureCount:a,error:l})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const a=await this.#n.start();if(a===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(a),this.#r.config.onSuccess?.(a,this),this.#r.config.onSettled?.(a,this.state.error,this),a}catch(a){if(a instanceof al){if(a.silent)return this.#n.promise;if(a.revert){if(this.state.data===void 0)throw a;return this.state.data}}throw this.#i({type:"error",error:a}),this.#r.config.onError?.(a,this),this.#r.config.onSettled?.(this.state.data,a,this),a}finally{this.scheduleGc()}}#i(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Tg(r.data,this.options),fetchMeta:e.meta??null};case"success":const n={...r,...Pg(e.data,e.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case"error":const o=e.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,...e.state}}};this.state=t(this.state),Ce.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function Tg(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Eg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Pg(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Ng(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var II=class extends pn{constructor(e,t){super(),this.options=t,this.#e=e,this.#i=null,this.#a=sl(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#r=void 0;#o=void 0;#n;#s;#a;#i;#p;#h;#f;#c;#d;#l;#g=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Ag(this.#t,this.options)?this.#u():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ll(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ll(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof nt(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#C(),this.#t.setOptions(this.options),t._defaulted&&!Li(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const n=this.hasListeners();n&&Rg(this.#t,r,this.options,t)&&this.#u(),this.updateResult(),n&&(this.#t!==r||nt(this.options.enabled,this.#t)!==nt(t.enabled,this.#t)||rr(this.options.staleTime,this.#t)!==rr(t.staleTime,this.#t))&&this.#m();const o=this.#v();n&&(this.#t!==r||nt(this.options.enabled,this.#t)!==nt(t.enabled,this.#t)||o!==this.#l)&&this.#b(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(t,e);return PI(this,r)&&(this.#o=r,this.#s=this.options,this.#n=this.#t.state),r}getCurrentResult(){return this.#o}trackResult(e,t){return new Proxy(e,{get:(r,n)=>(this.trackProp(n),t?.(n),n==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,n))})}trackProp(e){this.#g.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#u({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#u(e){this.#C();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(ze)),t}#m(){this.#x();const e=rr(this.options.staleTime,this.#t);if(Fr||this.#o.isStale||!el(e))return;const r=vg(this.#o.dataUpdatedAt,e)+1;this.#c=Lr.setTimeout(()=>{this.#o.isStale||this.updateResult()},r)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(e){this.#S(),this.#l=e,!(Fr||nt(this.options.enabled,this.#t)===!1||!el(this.#l)||this.#l===0)&&(this.#d=Lr.setInterval(()=>{(this.options.refetchIntervalInBackground||il.isFocused())&&this.#u()},this.#l))}#y(){this.#m(),this.#b(this.#v())}#x(){this.#c&&(Lr.clearTimeout(this.#c),this.#c=void 0)}#S(){this.#d&&(Lr.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){const r=this.#t,n=this.options,o=this.#o,i=this.#n,s=this.#s,l=e!==r?e.state:this.#r,{state:c}=e;let d={...c},h=!1,g;if(t._optimisticResults){const R=this.hasListeners(),E=!R&&Ag(e,t),P=R&&Rg(e,r,t,n);(E||P)&&(d={...d,...Tg(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:f,errorUpdatedAt:p,status:m}=d;g=d.data;let v=!1;if(t.placeholderData!==void 0&&g===void 0&&m==="pending"){let R;o?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(R=o.data,v=!0):R=typeof t.placeholderData=="function"?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,R!==void 0&&(m="success",g=nl(o?.data,R,t),h=!0)}if(t.select&&g!==void 0&&!v)if(o&&g===i?.data&&t.select===this.#p)g=this.#h;else try{this.#p=t.select,g=t.select(g),g=nl(o?.data,g,t),this.#h=g,this.#i=null}catch(R){this.#i=R}this.#i&&(f=this.#i,g=this.#h,p=Date.now(),m="error");const x=d.fetchStatus==="fetching",k=m==="pending",y=m==="error",S=k&&x,b=g!==void 0,T={status:m,fetchStatus:d.fetchStatus,isPending:k,isSuccess:m==="success",isError:y,isInitialLoading:S,isLoading:S,data:g,dataUpdatedAt:d.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!k,isLoadingError:y&&!b,isPaused:d.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:y&&b,isStale:cl(e,t),refetch:this.refetch,promise:this.#a,isEnabled:nt(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const R=N=>{T.status==="error"?N.reject(T.error):T.data!==void 0&&N.resolve(T.data)},E=()=>{const N=this.#a=T.promise=sl();R(N)},P=this.#a;switch(P.status){case"pending":e.queryHash===r.queryHash&&R(P);break;case"fulfilled":(T.status==="error"||T.data!==P.value)&&E();break;case"rejected":(T.status!=="error"||T.error!==P.reason)&&E();break}}return T}updateResult(){const e=this.#o,t=this.createResult(this.#t,this.options);if(this.#n=this.#t.state,this.#s=this.options,this.#n.data!==void 0&&(this.#f=this.#t),Li(t,e))return;this.#o=t;const r=()=>{if(!e)return!0;const{notifyOnChangeProps:n}=this.options,o=typeof n=="function"?n():n;if(o==="all"||!o&&!this.#g.size)return!0;const i=new Set(o??this.#g);return this.options.throwOnError&&i.add("error"),Object.keys(this.#o).some(s=>{const a=s;return this.#o[a]!==e[a]&&i.has(a)})};this.#k({listeners:r()})}#C(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#r=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#k(e){Ce.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#o)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function TI(e,t){return nt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ag(e,t){return TI(e,t)||e.state.data!==void 0&&ll(e,t,t.refetchOnMount)}function ll(e,t,r){if(nt(t.enabled,e)!==!1&&rr(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&cl(e,t)}return!1}function Rg(e,t,r,n){return(e!==t||nt(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&cl(e,r)}function cl(e,t){return nt(t.enabled,e)!==!1&&e.isStaleByTime(rr(t.staleTime,e))}function PI(e,t){return!Li(e.getCurrentResult(),t)}function Vg(e){return{onFetch:(t,r)=>{const n=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let d=!1;const h=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(t.signal.aborted?d=!0:t.signal.addEventListener("abort",()=>{d=!0}),t.signal)})},g=kg(t.options,t.fetchOptions),f=async(p,m,v)=>{if(d)return Promise.reject();if(m==null&&p.pages.length)return Promise.resolve(p);const k=(()=>{const O={client:t.client,queryKey:t.queryKey,pageParam:m,direction:v?"backward":"forward",meta:t.options.meta};return h(O),O})(),y=await g(k),{maxPages:S}=t.options,b=v?xI:yI;return{pages:b(p.pages,y,S),pageParams:b(p.pageParams,m,S)}};if(o&&i.length){const p=o==="backward",m=p?NI:_g,v={pages:i,pageParams:s},x=m(n,v);a=await f(v,x,p)}else{const p=e??i.length;do{const m=l===0?s[0]??n.initialPageParam:_g(n,a);if(l>0&&m==null)break;a=await f(a,m),l++}while(lt.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function _g(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function NI(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var AI=class extends Ig{#e;#t;#r;#o;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#r=e.mutationCache,this.#t=[],this.state=e.state||Lg(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#r.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#n({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=Og({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(i,s)=>{this.#n({type:"failed",failureCount:i,error:s})},onPause:()=>{this.#n({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)});const n=this.state.status==="pending",o=!this.#o.canStart();try{if(n)t();else{this.#n({type:"pending",variables:e,isPaused:o}),await this.#r.config.onMutate?.(e,this,r);const s=await this.options.onMutate?.(e,r);s!==this.state.context&&this.#n({type:"pending",context:s,variables:e,isPaused:o})}const i=await this.#o.start();return await this.#r.config.onSuccess?.(i,e,this.state.context,this,r),await this.options.onSuccess?.(i,e,this.state.context,r),await this.#r.config.onSettled?.(i,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(i,null,e,this.state.context,r),this.#n({type:"success",data:i}),i}catch(i){try{throw await this.#r.config.onError?.(i,e,this.state.context,this,r),await this.options.onError?.(i,e,this.state.context,r),await this.#r.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(void 0,i,e,this.state.context,r),i}finally{this.#n({type:"error",error:i})}}finally{this.#r.runNext(this)}}#n(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Ce.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(e)}),this.#r.notify({mutation:this,type:"updated",action:e})})}};function Lg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var RI=class extends pn{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#r=0}#e;#t;#r;build(e,t,r){const n=new AI({client:e,mutationCache:this,mutationId:++this.#r,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#e.add(e);const t=zi(e);if(typeof t=="string"){const r=this.#t.get(t);r?r.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=zi(e);if(typeof t=="string"){const r=this.#t.get(t);if(r)if(r.length>1){const n=r.indexOf(e);n!==-1&&r.splice(n,1)}else r[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=zi(e);if(typeof t=="string"){const n=this.#t.get(t)?.find(o=>o.state.status==="pending");return!n||n===e}else return!0}runNext(e){const t=zi(e);return typeof t=="string"?this.#t.get(t)?.find(n=>n!==e&&n.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ce.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(r=>yg(t,r))}findAll(e={}){return this.getAll().filter(t=>yg(e,t))}notify(e){Ce.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Ce.batch(()=>Promise.all(e.map(t=>t.continue().catch(ze))))}};function zi(e){return e.options.scope?.id}var VI=class extends pn{#e;#t=void 0;#r;#o;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#e.defaultMutationOptions(e),Li(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),t?.mutationKey&&this.options.mutationKey&&zr(t.mutationKey)!==zr(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(e){this.#n(),this.#s(e)}getCurrentResult(){return this.#t}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#n(),this.#s()}mutate(e,t){return this.#o=t,this.#r?.removeObserver(this),this.#r=this.#e.getMutationCache().build(this.#e,this.options),this.#r.addObserver(this),this.#r.execute(e)}#n(){const e=this.#r?.state??Lg();this.#t={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#s(e){Ce.batch(()=>{if(this.#o&&this.hasListeners()){const t=this.#t.variables,r=this.#t.context,n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};e?.type==="success"?(this.#o.onSuccess?.(e.data,t,r,n),this.#o.onSettled?.(e.data,null,t,r,n)):e?.type==="error"&&(this.#o.onError?.(e.error,t,r,n),this.#o.onSettled?.(void 0,e.error,t,r,n))}this.listeners.forEach(t=>{t(this.#t)})})}},_I=class extends pn{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,r){const n=t.queryKey,o=t.queryHash??tl(n,t);let i=this.get(o);return i||(i=new OI({client:e,queryKey:n,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(i)),i}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Ce.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>bg(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>bg(e,r)):t}notify(e){Ce.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Ce.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ce.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},LI=class{#e;#t;#r;#o;#n;#s;#a;#i;constructor(e={}){this.#e=e.queryCache||new _I,this.#t=e.mutationCache||new RI,this.#r=e.defaultOptions||{},this.#o=new Map,this.#n=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#a=il.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Fi.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#a?.(),this.#a=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#e.build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(rr(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(n.queryHash)?.state.data,s=mI(t,i);if(s!==void 0)return this.#e.build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return Ce.batch(()=>this.#e.findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Ce.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#e;return Ce.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Ce.batch(()=>this.#e.findAll(e).map(o=>o.cancel(r)));return Promise.all(n).then(ze).catch(ze)}invalidateQueries(e,t={}){return Ce.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=Ce.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,r);return r.throwOnError||(i=i.catch(ze)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(ze)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#e.build(this,t);return r.isStaleByTime(rr(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ze).catch(ze)}fetchInfiniteQuery(e){return e.behavior=Vg(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ze).catch(ze)}ensureInfiniteQueryData(e){return e.behavior=Vg(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Fi.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#r}setDefaultOptions(e){this.#r=e}setQueryDefaults(e,t){this.#o.set(zr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#o.values()],r={};return t.forEach(n=>{so(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){this.#n.set(zr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#n.values()],r={};return t.forEach(n=>{so(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#r.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=tl(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===ol&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#r.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Fg=D.createContext(void 0),zg=e=>{const t=D.useContext(Fg);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},FI=({client:e,children:t})=>(D.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(Fg.Provider,{value:e,children:t})),Dg=D.createContext(!1),zI=()=>D.useContext(Dg);Dg.Provider;function DI(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var MI=D.createContext(DI()),$I=()=>D.useContext(MI),WI=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},BI=e=>{D.useEffect(()=>{e.clearReset()},[e])},HI=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&e.data===void 0||wg(r,[e.error,n])),UI=e=>{if(e.suspense){const r=o=>o==="static"?o:Math.max(o??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...o)=>r(n(...o)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},jI=(e,t)=>e.isLoading&&e.isFetching&&!t,GI=(e,t)=>e?.suspense&&t.isPending,Mg=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function qI(e,t,r){const n=zI(),o=$I(),i=zg(),s=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=n?"isRestoring":"optimistic",UI(s),WI(s,o),BI(o);const a=!i.getQueryCache().get(s.queryHash),[l]=D.useState(()=>new t(i,s)),c=l.getOptimisticResult(s),d=!n&&e.subscribed!==!1;if(D.useSyncExternalStore(D.useCallback(h=>{const g=d?l.subscribe(Ce.batchCalls(h)):ze;return l.updateResult(),g},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),D.useEffect(()=>{l.setOptions(s)},[s,l]),GI(s,c))throw Mg(s,l,o);if(HI({result:c,errorResetBoundary:o,throwOnError:s.throwOnError,query:i.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw c.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(s,c),s.experimental_prefetchInRender&&!Fr&&jI(c,n)&&(a?Mg(s,l,o):i.getQueryCache().get(s.queryHash)?.promise)?.catch(ze).finally(()=>{l.updateResult()}),s.notifyOnChangeProps?c:l.trackResult(c)}function $g(e,t){return qI(e,II)}function Dr(e,t){const r=zg(),[n]=D.useState(()=>new VI(r,e));D.useEffect(()=>{n.setOptions(e)},[n,e]);const o=D.useSyncExternalStore(D.useCallback(s=>n.subscribe(Ce.batchCalls(s)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=D.useCallback((s,a)=>{n.mutate(s,a).catch(ze)},[n]);if(o.error&&wg(n.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}class Wg{_fns;constructor(){this._fns=[]}eject(t){const r=this._fns.indexOf(t);r!==-1&&(this._fns=[...this._fns.slice(0,r),...this._fns.slice(r+1)])}use(t){this._fns=[...this._fns,t]}}const Et={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 Wg,response:new Wg}};var KI=(e,t,r,n,o,i,s,a)=>{let l=document.documentElement,c=["light","dark"];function d(f){(Array.isArray(e)?e:[e]).forEach(p=>{let m=p==="class",v=m&&i?o.map(x=>i[x]||x):o;m?(l.classList.remove(...v),l.classList.add(i&&i[f]?i[f]:f)):l.setAttribute(p,f)}),h(f)}function h(f){a&&c.includes(f)&&(l.style.colorScheme=f)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)d(n);else try{let f=localStorage.getItem(t)||r,p=s&&f==="system"?g():f;d(p)}catch{}},Bg=["light","dark"],Hg="(prefers-color-scheme: dark)",YI=typeof window>"u",Ug=D.createContext(void 0),XI=e=>D.useContext(Ug)?D.createElement(D.Fragment,null,e.children):D.createElement(JI,{...e}),QI=["light","dark"],JI=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:n=!0,storageKey:o="theme",themes:i=QI,defaultTheme:s=r?"system":"light",attribute:a="data-theme",value:l,children:c,nonce:d,scriptProps:h})=>{let[g,f]=D.useState(()=>eT(o,s)),[p,m]=D.useState(()=>g==="system"?dl():g),v=l?Object.values(l):i,x=D.useCallback(b=>{let O=b;if(!O)return;b==="system"&&r&&(O=dl());let T=l?l[O]:O,R=t?tT(d):null,E=document.documentElement,P=N=>{N==="class"?(E.classList.remove(...v),T&&E.classList.add(T)):N.startsWith("data-")&&(T?E.setAttribute(N,T):E.removeAttribute(N))};if(Array.isArray(a)?a.forEach(P):P(a),n){let N=Bg.includes(s)?s:null,w=Bg.includes(O)?O:N;E.style.colorScheme=w}R?.()},[d]),k=D.useCallback(b=>{let O=typeof b=="function"?b(g):b;f(O);try{localStorage.setItem(o,O)}catch{}},[g]),y=D.useCallback(b=>{let O=dl(b);m(O),g==="system"&&r&&!e&&x("system")},[g,e]);D.useEffect(()=>{let b=window.matchMedia(Hg);return b.addListener(y),y(b),()=>b.removeListener(y)},[y]),D.useEffect(()=>{let b=O=>{O.key===o&&(O.newValue?f(O.newValue):k(s))};return window.addEventListener("storage",b),()=>window.removeEventListener("storage",b)},[k]),D.useEffect(()=>{x(e??g)},[e,g]);let S=D.useMemo(()=>({theme:g,setTheme:k,forcedTheme:e,resolvedTheme:g==="system"?p:g,themes:r?[...i,"system"]:i,systemTheme:r?p:void 0}),[g,k,e,p,r,i]);return D.createElement(Ug.Provider,{value:S},D.createElement(ZI,{forcedTheme:e,storageKey:o,attribute:a,enableSystem:r,enableColorScheme:n,defaultTheme:s,value:l,themes:i,nonce:d,scriptProps:h}),c)},ZI=D.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:i,value:s,themes:a,nonce:l,scriptProps:c})=>{let d=JSON.stringify([r,t,i,e,a,s,n,o]).slice(1,-1);return D.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${KI.toString()})(${d})`}})}),eT=(e,t)=>{if(YI)return;let r;try{r=localStorage.getItem(e)||void 0}catch{}return r||t},tT=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},dl=e=>(e||(e=window.matchMedia(Hg)),e.matches?"dark":"light");const rT=e=>u.jsx(XI,{attribute:"class",disableTransitionOnChange:!0,...e}),nT="UiServiceWorker",oT=({queueNamePattern:e,state:t,workerNamePattern:r}={},n)=>[nT,{queueNamePattern:e,state:t,workerNamePattern:r}],iT="UiServiceJobs",sT=e=>[iT];function jg(e,t){return function(){return e.apply(t,arguments)}}const{toString:aT}=Object.prototype,{getPrototypeOf:ul}=Object,{iterator:Di,toStringTag:Gg}=Symbol,Mi=(e=>t=>{const r=aT.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ut=e=>(e=e.toLowerCase(),t=>Mi(t)===e),$i=e=>t=>typeof t===e,{isArray:mn}=Array,vn=$i("undefined");function ao(e){return e!==null&&!vn(e)&&e.constructor!==null&&!vn(e.constructor)&&qe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const qg=ut("ArrayBuffer");function lT(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&qg(e.buffer),t}const cT=$i("string"),qe=$i("function"),Kg=$i("number"),lo=e=>e!==null&&typeof e=="object",dT=e=>e===!0||e===!1,Wi=e=>{if(Mi(e)!=="object")return!1;const t=ul(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Gg in e)&&!(Di in e)},uT=e=>{if(!lo(e)||ao(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},hT=ut("Date"),fT=ut("File"),gT=ut("Blob"),pT=ut("FileList"),mT=e=>lo(e)&&qe(e.pipe),vT=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||qe(e.append)&&((t=Mi(e))==="formdata"||t==="object"&&qe(e.toString)&&e.toString()==="[object FormData]"))},bT=ut("URLSearchParams"),[yT,xT,ST,CT]=["ReadableStream","Request","Response","Headers"].map(ut),kT=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function co(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),mn(e))for(n=0,o=e.length;n0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Mr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:globalThis,Xg=e=>!vn(e)&&e!==Mr;function hl(){const{caseless:e,skipUndefined:t}=Xg(this)&&this||{},r={},n=(o,i)=>{const s=e&&Yg(r,i)||i;Wi(r[s])&&Wi(o)?r[s]=hl(r[s],o):Wi(o)?r[s]=hl({},o):mn(o)?r[s]=o.slice():(!t||!vn(o))&&(r[s]=o)};for(let o=0,i=arguments.length;o(co(t,(o,i)=>{r&&qe(o)?e[i]=jg(o,r):e[i]=o},{allOwnKeys:n}),e),ET=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),OT=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},IT=(e,t,r,n)=>{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],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&ul(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},TT=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},PT=e=>{if(!e)return null;if(mn(e))return e;let t=e.length;if(!Kg(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},NT=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ul(Uint8Array)),AT=(e,t)=>{const n=(e&&e[Di]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},RT=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},VT=ut("HTMLFormElement"),_T=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Qg=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),LT=ut("RegExp"),Jg=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};co(r,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(n[i]=s||o)}),Object.defineProperties(e,n)},FT=e=>{Jg(e,(t,r)=>{if(qe(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(qe(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},zT=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return mn(e)?n(e):n(String(e).split(t)),r},DT=()=>{},MT=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function $T(e){return!!(e&&qe(e.append)&&e[Gg]==="FormData"&&e[Di])}const WT=e=>{const t=new Array(10),r=(n,o)=>{if(lo(n)){if(t.indexOf(n)>=0)return;if(ao(n))return n;if(!("toJSON"in n)){t[o]=n;const i=mn(n)?[]:{};return co(n,(s,a)=>{const l=r(s,o+1);!vn(l)&&(i[a]=l)}),t[o]=void 0,i}}return n};return r(e,0)},BT=ut("AsyncFunction"),HT=e=>e&&(lo(e)||qe(e))&&qe(e.then)&&qe(e.catch),Zg=((e,t)=>e?setImmediate:t?((r,n)=>(Mr.addEventListener("message",({source:o,data:i})=>{o===Mr&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Mr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",qe(Mr.postMessage)),UT=typeof queueMicrotask<"u"?queueMicrotask.bind(Mr):typeof process<"u"&&process.nextTick||Zg,I={isArray:mn,isArrayBuffer:qg,isBuffer:ao,isFormData:vT,isArrayBufferView:lT,isString:cT,isNumber:Kg,isBoolean:dT,isObject:lo,isPlainObject:Wi,isEmptyObject:uT,isReadableStream:yT,isRequest:xT,isResponse:ST,isHeaders:CT,isUndefined:vn,isDate:hT,isFile:fT,isBlob:gT,isRegExp:LT,isFunction:qe,isStream:mT,isURLSearchParams:bT,isTypedArray:NT,isFileList:pT,forEach:co,merge:hl,extend:wT,trim:kT,stripBOM:ET,inherits:OT,toFlatObject:IT,kindOf:Mi,kindOfTest:ut,endsWith:TT,toArray:PT,forEachEntry:AT,matchAll:RT,isHTMLForm:VT,hasOwnProperty:Qg,hasOwnProp:Qg,reduceDescriptors:Jg,freezeMethods:FT,toObjectSet:zT,toCamelCase:_T,noop:DT,toFiniteNumber:MT,findKey:Yg,global:Mr,isContextDefined:Xg,isSpecCompliantForm:$T,toJSONObject:WT,isAsyncFn:BT,isThenable:HT,setImmediate:Zg,asap:UT,isIterable:e=>e!=null&&qe(e[Di])};function j(e,t,r,n,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),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}I.inherits(j,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:I.toJSONObject(this.config),code:this.code,status:this.status}}});const ep=j.prototype,tp={};["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=>{tp[e]={value:e}}),Object.defineProperties(j,tp),Object.defineProperty(ep,"isAxiosError",{value:!0}),j.from=(e,t,r,n,o,i)=>{const s=Object.create(ep);I.toFlatObject(e,s,function(d){return d!==Error.prototype},c=>c!=="isAxiosError");const a=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return j.call(s,a,l,r,n,o),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",i&&Object.assign(s,i),s};const jT=null;function fl(e){return I.isPlainObject(e)||I.isArray(e)}function rp(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function np(e,t,r){return e?e.concat(t).map(function(o,i){return o=rp(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function GT(e){return I.isArray(e)&&!e.some(fl)}const qT=I.toFlatObject(I,{},null,function(t){return/^is[A-Z]/.test(t)});function Bi(e,t,r){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=I.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,v){return!I.isUndefined(v[m])});const n=r.metaTokens,o=r.visitor||d,i=r.dots,s=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(t);if(!I.isFunction(o))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(I.isDate(p))return p.toISOString();if(I.isBoolean(p))return p.toString();if(!l&&I.isBlob(p))throw new j("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(p)||I.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,m,v){let x=p;if(p&&!v&&typeof p=="object"){if(I.endsWith(m,"{}"))m=n?m:m.slice(0,-2),p=JSON.stringify(p);else if(I.isArray(p)&>(p)||(I.isFileList(p)||I.endsWith(m,"[]"))&&(x=I.toArray(p)))return m=rp(m),x.forEach(function(y,S){!(I.isUndefined(y)||y===null)&&t.append(s===!0?np([m],S,i):s===null?m:m+"[]",c(y))}),!1}return fl(p)?!0:(t.append(np(v,m,i),c(p)),!1)}const h=[],g=Object.assign(qT,{defaultVisitor:d,convertValue:c,isVisitable:fl});function f(p,m){if(!I.isUndefined(p)){if(h.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));h.push(p),I.forEach(p,function(x,k){(!(I.isUndefined(x)||x===null)&&o.call(t,x,I.isString(k)?k.trim():k,m,g))===!0&&f(x,m?m.concat(k):[k])}),h.pop()}}if(!I.isObject(e))throw new TypeError("data must be an object");return f(e),t}function op(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function gl(e,t){this._pairs=[],e&&Bi(e,this,t)}const ip=gl.prototype;ip.append=function(t,r){this._pairs.push([t,r])},ip.toString=function(t){const r=t?function(n){return t.call(this,n,op)}:op;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function KT(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function sp(e,t,r){if(!t)return e;const n=r&&r.encode||KT;I.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=I.isURLSearchParams(t)?t.toString():new gl(t,r).toString(n),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class ap{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){I.forEach(this.handlers,function(n){n!==null&&t(n)})}}const lp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},YT={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:gl,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},pl=typeof window<"u"&&typeof document<"u",ml=typeof navigator=="object"&&navigator||void 0,XT=pl&&(!ml||["ReactNative","NativeScript","NS"].indexOf(ml.product)<0),QT=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",JT=pl&&window.location.href||"http://localhost",_e={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:pl,hasStandardBrowserEnv:XT,hasStandardBrowserWebWorkerEnv:QT,navigator:ml,origin:JT},Symbol.toStringTag,{value:"Module"})),...YT};function ZT(e,t){return Bi(e,new _e.classes.URLSearchParams,{visitor:function(r,n,o,i){return _e.isNode&&I.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function eP(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function tP(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n=r.length;return s=!s&&I.isArray(o)?o.length:s,l?(I.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!I.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],i)&&I.isArray(o[s])&&(o[s]=tP(o[s])),!a)}if(I.isFormData(e)&&I.isFunction(e.entries)){const r={};return I.forEachEntry(e,(n,o)=>{t(eP(n),o,r,0)}),r}return null}function rP(e,t,r){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const uo={transitional:lp,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=I.isObject(t);if(i&&I.isHTMLForm(t)&&(t=new FormData(t)),I.isFormData(t))return o?JSON.stringify(cp(t)):t;if(I.isArrayBuffer(t)||I.isBuffer(t)||I.isStream(t)||I.isFile(t)||I.isBlob(t)||I.isReadableStream(t))return t;if(I.isArrayBufferView(t))return t.buffer;if(I.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return ZT(t,this.formSerializer).toString();if((a=I.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Bi(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),rP(t)):t}],transformResponse:[function(t){const r=this.transitional||uo.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(I.isResponse(t)||I.isReadableStream(t))return t;if(t&&I.isString(t)&&(n&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(a){if(s)throw a.name==="SyntaxError"?j.from(a,j.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:_e.classes.FormData,Blob:_e.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],e=>{uo.headers[e]={}});const nP=I.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"]),oP=e=>{const t={};let r,n,o;return e&&e.split(` -`).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||t[r]&&nP[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},dp=Symbol("internals");function ho(e){return e&&String(e).trim().toLowerCase()}function Hi(e){return e===!1||e==null?e:I.isArray(e)?e.map(Hi):String(e)}function iP(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const sP=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function vl(e,t,r,n,o){if(I.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!I.isString(t)){if(I.isString(n))return t.indexOf(n)!==-1;if(I.isRegExp(n))return n.test(t)}}function aP(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function lP(e,t){const r=I.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,s){return this[n].call(this,t,o,i,s)},configurable:!0})})}let Ke=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(a,l,c){const d=ho(l);if(!d)throw new Error("header name must be a non-empty string");const h=I.findKey(o,d);(!h||o[h]===void 0||c===!0||c===void 0&&o[h]!==!1)&&(o[h||l]=Hi(a))}const s=(a,l)=>I.forEach(a,(c,d)=>i(c,d,l));if(I.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(I.isString(t)&&(t=t.trim())&&!sP(t))s(oP(t),r);else if(I.isObject(t)&&I.isIterable(t)){let a={},l,c;for(const d of t){if(!I.isArray(d))throw TypeError("Object iterator must return a key-value pair");a[c=d[0]]=(l=a[c])?I.isArray(l)?[...l,d[1]]:[l,d[1]]:d[1]}s(a,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=ho(t),t){const n=I.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return iP(o);if(I.isFunction(r))return r.call(this,o,n);if(I.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=ho(t),t){const n=I.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||vl(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(s){if(s=ho(s),s){const a=I.findKey(n,s);a&&(!r||vl(n,n[a],a,r))&&(delete n[a],o=!0)}}return I.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||vl(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return I.forEach(this,(o,i)=>{const s=I.findKey(n,i);if(s){r[s]=Hi(o),delete r[i];return}const a=t?aP(i):String(i).trim();a!==i&&delete r[i],r[a]=Hi(o),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return I.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&I.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).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,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[dp]=this[dp]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=ho(s);n[a]||(lP(o,s),n[a]=!0)}return I.isArray(t)?t.forEach(i):i(t),this}};Ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),I.reduceDescriptors(Ke.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),I.freezeMethods(Ke);function bl(e,t){const r=this||uo,n=t||r,o=Ke.from(n.headers);let i=n.data;return I.forEach(e,function(a){i=a.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function up(e){return!!(e&&e.__CANCEL__)}function bn(e,t,r){j.call(this,e??"canceled",j.ERR_CANCELED,t,r),this.name="CanceledError"}I.inherits(bn,j,{__CANCEL__:!0});function hp(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new j("Request failed with status code "+r.status,[j.ERR_BAD_REQUEST,j.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function cP(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function dP(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=n[i];s||(s=c),r[o]=l,n[o]=c;let h=i,g=0;for(;h!==o;)g+=r[h++],h=h%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s{r=d,o=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const d=Date.now(),h=d-r;h>=n?s(c,d):(o=c,i||(i=setTimeout(()=>{i=null,s(o)},n-h)))},()=>o&&s(o)]}const Ui=(e,t,r=3)=>{let n=0;const o=dP(50,250);return uP(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-n,c=o(l),d=s<=a;n=s;const h={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&d?(a-s)/c:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(h)},r)},fp=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},gp=e=>(...t)=>I.asap(()=>e(...t)),hP=_e.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,_e.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(_e.origin),_e.navigator&&/(msie|trident)/i.test(_e.navigator.userAgent)):()=>!0,fP=_e.hasStandardBrowserEnv?{write(e,t,r,n,o,i,s){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];I.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),I.isString(n)&&a.push(`path=${n}`),I.isString(o)&&a.push(`domain=${o}`),i===!0&&a.push("secure"),I.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function gP(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function pP(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function pp(e,t,r){let n=!gP(t);return e&&(n||r==!1)?pP(e,t):t}const mp=e=>e instanceof Ke?{...e}:e;function $r(e,t){t=t||{};const r={};function n(c,d,h,g){return I.isPlainObject(c)&&I.isPlainObject(d)?I.merge.call({caseless:g},c,d):I.isPlainObject(d)?I.merge({},d):I.isArray(d)?d.slice():d}function o(c,d,h,g){if(I.isUndefined(d)){if(!I.isUndefined(c))return n(void 0,c,h,g)}else return n(c,d,h,g)}function i(c,d){if(!I.isUndefined(d))return n(void 0,d)}function s(c,d){if(I.isUndefined(d)){if(!I.isUndefined(c))return n(void 0,c)}else return n(void 0,d)}function a(c,d,h){if(h in t)return n(c,d);if(h in e)return n(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,d,h)=>o(mp(c),mp(d),h,!0)};return I.forEach(Object.keys({...e,...t}),function(d){const h=l[d]||o,g=h(e[d],t[d],d);I.isUndefined(g)&&h!==a||(r[d]=g)}),r}const vp=e=>{const t=$r({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;if(t.headers=s=Ke.from(s),t.url=sp(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)):""))),I.isFormData(r)){if(_e.hasStandardBrowserEnv||_e.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(I.isFunction(r.getHeaders)){const l=r.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([d,h])=>{c.includes(d.toLowerCase())&&s.set(d,h)})}}if(_e.hasStandardBrowserEnv&&(n&&I.isFunction(n)&&(n=n(t)),n||n!==!1&&hP(t.url))){const l=o&&i&&fP.read(i);l&&s.set(o,l)}return t},mP=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=vp(e);let i=o.data;const s=Ke.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,d,h,g,f,p;function m(){f&&f(),p&&p(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function x(){if(!v)return;const y=Ke.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:y,config:e,request:v};hp(function(T){r(T),m()},function(T){n(T),m()},b),v=null}"onloadend"in v?v.onloadend=x:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(x)},v.onabort=function(){v&&(n(new j("Request aborted",j.ECONNABORTED,e,v)),v=null)},v.onerror=function(S){const b=S&&S.message?S.message:"Network Error",O=new j(b,j.ERR_NETWORK,e,v);O.event=S||null,n(O),v=null},v.ontimeout=function(){let S=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const b=o.transitional||lp;o.timeoutErrorMessage&&(S=o.timeoutErrorMessage),n(new j(S,b.clarifyTimeoutError?j.ETIMEDOUT:j.ECONNABORTED,e,v)),v=null},i===void 0&&s.setContentType(null),"setRequestHeader"in v&&I.forEach(s.toJSON(),function(S,b){v.setRequestHeader(b,S)}),I.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),a&&a!=="json"&&(v.responseType=o.responseType),c&&([g,p]=Ui(c,!0),v.addEventListener("progress",g)),l&&v.upload&&([h,f]=Ui(l),v.upload.addEventListener("progress",h),v.upload.addEventListener("loadend",f)),(o.cancelToken||o.signal)&&(d=y=>{v&&(n(!y||y.type?new bn(null,e,v):y),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const k=cP(o.url);if(k&&_e.protocols.indexOf(k)===-1){n(new j("Unsupported protocol "+k+":",j.ERR_BAD_REQUEST,e));return}v.send(i||null)})},vP=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(c){if(!o){o=!0,a();const d=c instanceof Error?c:this.reason;n.abort(d instanceof j?d:new bn(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,i(new j(`timeout ${t} of ms exceeded`,j.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}=n;return l.unsubscribe=()=>I.asap(a),l}},bP=function*(e,t){let r=e.byteLength;if(r{const o=yP(e,t);let i=0,s,a=l=>{s||(s=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:d}=await o.next();if(c){a(),l.close();return}let h=d.byteLength;if(r){let g=i+=h;r(g)}l.enqueue(new Uint8Array(d))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},yp=64*1024,{isFunction:ji}=I,SP=(({Request:e,Response:t})=>({Request:e,Response:t}))(I.global),{ReadableStream:xp,TextEncoder:Sp}=I.global,Cp=(e,...t)=>{try{return!!e(...t)}catch{return!1}},CP=e=>{e=I.merge.call({skipUndefined:!0},SP,e);const{fetch:t,Request:r,Response:n}=e,o=t?ji(t):typeof fetch=="function",i=ji(r),s=ji(n);if(!o)return!1;const a=o&&ji(xp),l=o&&(typeof Sp=="function"?(p=>m=>p.encode(m))(new Sp):async p=>new Uint8Array(await new r(p).arrayBuffer())),c=i&&a&&Cp(()=>{let p=!1;const m=new r(_e.origin,{body:new xp,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!m}),d=s&&a&&Cp(()=>I.isReadableStream(new n("").body)),h={stream:d&&(p=>p.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!h[p]&&(h[p]=(m,v)=>{let x=m&&m[p];if(x)return x.call(m);throw new j(`Response type '${p}' is not supported`,j.ERR_NOT_SUPPORT,v)})});const g=async p=>{if(p==null)return 0;if(I.isBlob(p))return p.size;if(I.isSpecCompliantForm(p))return(await new r(_e.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(I.isArrayBufferView(p)||I.isArrayBuffer(p))return p.byteLength;if(I.isURLSearchParams(p)&&(p=p+""),I.isString(p))return(await l(p)).byteLength},f=async(p,m)=>{const v=I.toFiniteNumber(p.getContentLength());return v??g(m)};return async p=>{let{url:m,method:v,data:x,signal:k,cancelToken:y,timeout:S,onDownloadProgress:b,onUploadProgress:O,responseType:T,headers:R,withCredentials:E="same-origin",fetchOptions:P}=vp(p),N=t||fetch;T=T?(T+"").toLowerCase():"text";let w=vP([k,y&&y.toAbortSignal()],S),A=null;const L=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let z;try{if(O&&c&&v!=="get"&&v!=="head"&&(z=await f(R,x))!==0){let Q=new r(m,{method:"POST",body:x,duplex:"half"}),ye;if(I.isFormData(x)&&(ye=Q.headers.get("content-type"))&&R.setContentType(ye),Q.body){const[ot,It]=fp(z,Ui(gp(O)));x=bp(Q.body,yp,ot,It)}}I.isString(E)||(E=E?"include":"omit");const H=i&&"credentials"in r.prototype,Z={...P,signal:w,method:v.toUpperCase(),headers:R.normalize().toJSON(),body:x,duplex:"half",credentials:H?E:void 0};A=i&&new r(m,Z);let ne=await(i?N(A,P):N(m,Z));const B=d&&(T==="stream"||T==="response");if(d&&(b||B&&L)){const Q={};["status","statusText","headers"].forEach(Ht=>{Q[Ht]=ne[Ht]});const ye=I.toFiniteNumber(ne.headers.get("content-length")),[ot,It]=b&&fp(ye,Ui(gp(b),!0))||[];ne=new n(bp(ne.body,yp,ot,()=>{It&&It(),L&&L()}),Q)}T=T||"text";let q=await h[I.findKey(h,T)||"text"](ne,p);return!B&&L&&L(),await new Promise((Q,ye)=>{hp(Q,ye,{data:q,headers:Ke.from(ne.headers),status:ne.status,statusText:ne.statusText,config:p,request:A})})}catch(H){throw L&&L(),H&&H.name==="TypeError"&&/Load failed|fetch/i.test(H.message)?Object.assign(new j("Network Error",j.ERR_NETWORK,p,A),{cause:H.cause||H}):j.from(H,H&&H.code,p,A)}}},kP=new Map,kp=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let s=i.length,a=s,l,c,d=kP;for(;a--;)l=i[a],c=d.get(l),c===void 0&&d.set(l,c=a?new Map:CP(t)),d=c;return c};kp();const yl={http:jT,xhr:mP,fetch:{get:kp}};I.forEach(yl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const wp=e=>`- ${e}`,wP=e=>I.isFunction(e)||e===null||e===!1;function EP(e,t){e=I.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let s=0;s`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=r?s.length>1?`since : -`+s.map(wp).join(` -`):" "+wp(s[0]):"as no adapter specified";throw new j("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o}const Ep={getAdapter:EP,adapters:yl};function xl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new bn(null,e)}function Op(e){return xl(e),e.headers=Ke.from(e.headers),e.data=bl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ep.getAdapter(e.adapter||uo.adapter,e)(e).then(function(n){return xl(e),n.data=bl.call(e,e.transformResponse,n),n.headers=Ke.from(n.headers),n},function(n){return up(n)||(xl(e),n&&n.response&&(n.response.data=bl.call(e,e.transformResponse,n.response),n.response.headers=Ke.from(n.response.headers))),Promise.reject(n)})}const Ip="1.13.2",Gi={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Gi[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Tp={};Gi.transitional=function(t,r,n){function o(i,s){return"[Axios v"+Ip+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,a)=>{if(t===!1)throw new j(o(s," has been removed"+(r?" in "+r:"")),j.ERR_DEPRECATED);return r&&!Tp[s]&&(Tp[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,s,a):!0}},Gi.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function OP(e,t,r){if(typeof e!="object")throw new j("options must be an object",j.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new j("option "+i+" must be "+l,j.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new j("Unknown option "+i,j.ERR_BAD_OPTION)}}const qi={assertOptions:OP,validators:Gi},Ot=qi.validators;let Wr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new ap,response:new ap}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=` -`+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=$r(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&qi.assertOptions(n,{silentJSONParsing:Ot.transitional(Ot.boolean),forcedJSONParsing:Ot.transitional(Ot.boolean),clarifyTimeoutError:Ot.transitional(Ot.boolean)},!1),o!=null&&(I.isFunction(o)?r.paramsSerializer={serialize:o}:qi.assertOptions(o,{encode:Ot.function,serialize:Ot.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),qi.assertOptions(r,{baseUrl:Ot.spelling("baseURL"),withXsrfToken:Ot.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&I.merge(i.common,i[r.method]);i&&I.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),r.headers=Ke.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let d,h=0,g;if(!l){const p=[Op.bind(this),void 0];for(p.unshift(...a),p.push(...c),g=p.length,d=Promise.resolve(r);h{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i,s,a){n.reason||(n.reason=new bn(i,s,a),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new hm(function(o){t=o}),cancel:t}}};function TP(e){return function(r){return e.apply(null,r)}}function PP(e){return I.isObject(e)&&e.isAxiosError===!0}const Sl={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Sl).forEach(([e,t])=>{Sl[t]=e});function Pp(e){const t=new Wr(e),r=jg(Wr.prototype.request,t);return I.extend(r,Wr.prototype,t,{allOwnKeys:!0}),I.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Pp($r(e,o))},r}const ge=Pp(uo);ge.Axios=Wr,ge.CanceledError=bn,ge.CancelToken=IP,ge.isCancel=up,ge.VERSION=Ip,ge.toFormData=Bi,ge.AxiosError=j,ge.Cancel=ge.CanceledError,ge.all=function(t){return Promise.all(t)},ge.spread=TP,ge.isAxiosError=PP,ge.mergeConfig=$r,ge.AxiosHeaders=Ke,ge.formToJSON=e=>cp(I.isHTMLForm(e)?new FormData(e):e),ge.getAdapter=Ep.getAdapter,ge.HttpStatusCode=Sl,ge.default=ge;const{Axios:Y5,AxiosError:X5,CanceledError:Q5,isCancel:J5,CancelToken:Z5,VERSION:eA,all:tA,Cancel:rA,isAxiosError:nA,spread:oA,toFormData:iA,AxiosHeaders:sA,HttpStatusCode:aA,formToJSON:lA,getAdapter:cA,mergeConfig:dA}=ge;class Np extends Error{url;status;statusText;body;request;constructor(t,r,n){super(n),this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=t}}class NP extends Error{constructor(t){super(t),this.name="CancelError"}get isCancelled(){return!0}}class AP{_isResolved;_isRejected;_isCancelled;cancelHandlers;promise;_resolve;_reject;constructor(t){this._isResolved=!1,this._isRejected=!1,this._isCancelled=!1,this.cancelHandlers=[],this.promise=new Promise((r,n)=>{this._resolve=r,this._reject=n;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,r){return this.promise.then(t,r)}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 NP("Request aborted"))}}get isCancelled(){return this._isCancelled}}const Ki=e=>typeof e=="string",Cl=e=>Ki(e)&&e!=="",Ap=e=>e instanceof Blob,RP=e=>e instanceof FormData,Rp=e=>e>=200&&e<300,VP=e=>{try{return btoa(e)}catch{return Buffer.from(e).toString("base64")}},_P=e=>{const t=[],r=(o,i)=>{t.push(`${encodeURIComponent(o)}=${encodeURIComponent(String(i))}`)},n=(o,i)=>{i!=null&&(i instanceof Date?r(o,i.toISOString()):Array.isArray(i)?i.forEach(s=>n(o,s)):typeof i=="object"?Object.entries(i).forEach(([s,a])=>n(`${o}[${s}]`,a)):r(o,i))};return Object.entries(e).forEach(([o,i])=>n(o,i)),t.length?`?${t.join("&")}`:""},LP=(e,t)=>{const r=encodeURI,n=t.url.replace("{api-version}",e.VERSION).replace(/{(.*?)}/g,(i,s)=>t.path?.hasOwnProperty(s)?r(String(t.path[s])):i),o=e.BASE+n;return t.query?o+_P(t.query):o},FP=e=>{if(e.formData){const t=new FormData,r=(n,o)=>{Ki(o)||Ap(o)?t.append(n,o):t.append(n,JSON.stringify(o))};return Object.entries(e.formData).filter(([,n])=>n!=null).forEach(([n,o])=>{Array.isArray(o)?o.forEach(i=>r(n,i)):r(n,o)}),t}},Yi=async(e,t)=>t,zP=async(e,t)=>{const[r,n,o,i]=await Promise.all([Yi(t,e.TOKEN),Yi(t,e.USERNAME),Yi(t,e.PASSWORD),Yi(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(Cl(r)&&(s.Authorization=`Bearer ${r}`),Cl(n)&&Cl(o)){const a=VP(`${n}:${o}`);s.Authorization=`Basic ${a}`}return t.body!==void 0?t.mediaType?s["Content-Type"]=t.mediaType:Ap(t.body)?s["Content-Type"]=t.body.type||"application/octet-stream":Ki(t.body)?s["Content-Type"]="text/plain":RP(t.body)||(s["Content-Type"]="application/json"):t.formData!==void 0&&t.mediaType&&(s["Content-Type"]=t.mediaType),s},DP=e=>{if(e.body)return e.body},MP=async(e,t,r,n,o,i,s,a)=>{const l=new AbortController;let c={data:n??o,headers:i,method:t.method,signal:l.signal,url:r,withCredentials:e.WITH_CREDENTIALS};s(()=>l.abort());for(const d of e.interceptors.request._fns)c=await d(c);try{return await a.request(c)}catch(d){const h=d;if(h.response)return h.response;throw d}},$P=(e,t)=>{if(t){const r=e.headers[t];if(Ki(r))return r}},WP=e=>{if(e.status!==204)return e.data},BP=(e,t)=>{const n={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(n)throw new Np(e,t,n);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 Np(e,t,`Generic Error: status: ${o}; status text: ${i}; body: ${s}`)}},$t=(e,t,r=ge)=>new AP(async(n,o,i)=>{try{const s=LP(e,t),a=FP(t),l=DP(t),c=await zP(e,t);if(!i.isCancelled){let d=await MP(e,t,s,l,a,c,i,r);for(const m of e.interceptors.response._fns)d=await m(d);const h=WP(d),g=$P(d,t.responseHeader);let f=h;t.responseTransformer&&Rp(d.status)&&(f=await t.responseTransformer(h));const p={url:s,ok:Rp(d.status),status:d.status,statusText:d.statusText,body:g??f};BP(t,p),n(p.body)}}catch(s){o(s)}});class Wt{static worker(t={}){return $t(Et,{method:"GET",url:"/edge_worker/ui/worker",query:{worker_name_pattern:t.workerNamePattern,queue_name_pattern:t.queueNamePattern,state:t.state},errors:{422:"Validation Error"}})}static jobs(){return $t(Et,{method:"GET",url:"/edge_worker/ui/jobs"})}static requestWorkerMaintenance(t){return $t(Et,{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 updateWorkerMaintenance(t){return $t(Et,{method:"PATCH",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 $t(Et,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}static requestWorkerShutdown(t){return $t(Et,{method:"POST",url:"/edge_worker/ui/worker/{worker_name}/shutdown",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}static deleteWorker(t){return $t(Et,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}static addWorkerQueue(t){return $t(Et,{method:"PUT",url:"/edge_worker/ui/worker/{worker_name}/queues/{queue_name}",path:{worker_name:t.workerName,queue_name:t.queueName},errors:{422:"Validation Error"}})}static removeWorkerQueue(t){return $t(Et,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}/queues/{queue_name}",path:{worker_name:t.workerName,queue_name:t.queueName},errors:{422:"Validation Error"}})}}const HP=({queueNamePattern:e,state:t,workerNamePattern:r}={},n,o)=>$g({queryKey:oT({queueNamePattern:e,state:t,workerNamePattern:r}),queryFn:()=>Wt.worker({queueNamePattern:e,state:t,workerNamePattern:r}),...o}),UP=(e,t)=>$g({queryKey:sT(),queryFn:()=>Wt.jobs(),...t}),jP=e=>Dr({mutationFn:({requestBody:t,workerName:r})=>Wt.requestWorkerMaintenance({requestBody:t,workerName:r}),...e}),GP=e=>Dr({mutationFn:({workerName:t})=>Wt.requestWorkerShutdown({workerName:t}),...e}),qP=e=>Dr({mutationFn:({queueName:t,workerName:r})=>Wt.addWorkerQueue({queueName:t,workerName:r}),...e}),KP=e=>Dr({mutationFn:({requestBody:t,workerName:r})=>Wt.updateWorkerMaintenance({requestBody:t,workerName:r}),...e}),YP=e=>Dr({mutationFn:({workerName:t})=>Wt.exitWorkerMaintenance({workerName:t}),...e}),XP=e=>Dr({mutationFn:({workerName:t})=>Wt.deleteWorker({workerName:t}),...e}),QP=e=>Dr({mutationFn:({queueName:t,workerName:r})=>Wt.removeWorkerQueue({queueName:t,workerName:r}),...e});function Xi(e){const t=new Date(e);if(!Number.isNaN(t.valueOf()))return t;const r=String(e).match(/\d+/g);if(r==null||r.length<=2)return t;{const[n,o,...i]=r.map(l=>parseInt(l)),s=[n,o-1,...i];return new Date(Date.UTC(...s))}}const fo=(e,t,r)=>{const n=e!==1?t+"s":t;return e+" "+n+" "+r};function kl(){return kl=Object.assign?Object.assign.bind():function(e){for(var t=1;tDate.now();function Ji({date:e,formatter:t,component:r="time",live:n=!0,minPeriod:o=0,maxPeriod:i=Qi,title:s,now:a=JP,...l}){const[c,d]=C.useState(a());C.useEffect(()=>{if(!n)return;const T=(()=>{const R=Xi(e).valueOf();if(!R)return console.warn("[react-timeago] Invalid Date provided"),0;const E=Math.round(Math.abs(c-R)/1e3),P=E{d(a())},N):0})();return()=>{T&&clearTimeout(T)}},[e,n,i,o,a,c]),C.useEffect(()=>{d(a())},[e]);const h=r,g=Xi(e).valueOf();if(!g)return null;const f=Math.round(Math.abs(c-g)/1e3),p=g"u"?typeof e=="string"?e:Xi(e).toISOString().substring(0,16).replace("T"," "):s,k=h==="time"?{...l,dateTime:Xi(e).toISOString()}:l,y=(O=O,T=T,R=R,E=g,P=fo,N=N)=>fo(O,T,R),S=t||fo;let b;try{b=S(m,v,p,g,y,a),b||(b=fo(m,v,p,g,y,a))}catch(O){console.error("[react-timeago] Formatter threw an error:",O),b=fo(m,v,p)}return D.createElement(h,kl({},k,{title:x}),b)}var Lp={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Fp=C.createContext&&C.createContext(Lp),ZP=["attr","size","title"];function eN(e,t){if(e==null)return{};var r=tN(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tN(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Zi(){return Zi=Object.assign?Object.assign.bind():function(e){for(var t=1;tC.createElement(t.tag,es({key:r},t.attr),Dp(t.child)))}function re(e){return t=>C.createElement(iN,Zi({attr:es({},e.attr)},t),Dp(e.child))}function iN(e){var t=r=>{var{attr:n,size:o,title:i}=e,s=eN(e,ZP),a=o||r.size||"1em",l;return r.className&&(l=r.className),e.className&&(l=(l?l+" ":"")+e.className),C.createElement("svg",Zi({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:l,style:es(es({color:e.color||r.color},r.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&C.createElement("title",null,i),e.children)};return Fp!==void 0?C.createElement(Fp.Consumer,null,r=>t(r)):t(Lp)}function sN(e){return re({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 aN(e){return re({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 Mp(e){return re({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 lN(e){return re({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 cN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 3h6v6"},child:[]},{tag:"path",attr:{d:"M10 14 21 3"},child:[]},{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},child:[]}]})(e)}function $p(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 12H3"},child:[]},{tag:"path",attr:{d:"M16 6H3"},child:[]},{tag:"path",attr:{d:"M16 18H3"},child:[]},{tag:"path",attr:{d:"M21 12h-6"},child:[]}]})(e)}function Wp(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 12H3"},child:[]},{tag:"path",attr:{d:"M16 6H3"},child:[]},{tag:"path",attr:{d:"M16 18H3"},child:[]},{tag:"path",attr:{d:"M18 9v6"},child:[]},{tag:"path",attr:{d:"M21 12h-6"},child:[]}]})(e)}function dN(e){return re({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 uN(e){return re({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 wl=C.forwardRef((e,t)=>u.jsx(kt,{"aria-label":"Close",ref:t,variant:"ghost",...e,children:e.children??u.jsx(uN,{})})),hN=C.forwardRef((e,t)=>{const{children:r,closable:n,endElement:o,icon:i,onClose:s,startElement:a,title:l,...c}=e;return u.jsxs(V2,{ref:t,...c,alignItems:"center",children:[a??u.jsx(z2,{children:i}),r?u.jsxs(L2,{children:[u.jsx(Zf,{children:l}),u.jsx(_2,{children:r})]}):u.jsx(Zf,{flex:"1",children:l}),o,n?u.jsx(wl,{alignSelf:"flex-start",insetEnd:"-2",onClick:s,pos:"relative",size:"sm",top:"-2"}):void 0]})}),fN=Sk({pauseOnPageIdle:!0,placement:"bottom-end"}),gN=C.forwardRef((e,t)=>{const{children:r,endElement:n,endElementProps:o,startElement:i,startElementProps:s,...a}=e;return u.jsxs(eg,{ref:t,...a,children:[i?u.jsx(ag,{pointerEvents:"none",...s,children:i}):void 0,C.cloneElement(r,{...i&&{ps:"calc(var(--input-height) - 6px)"},...n&&{pe:"calc(var(--input-height) - 6px)"},...r.props}),n?u.jsx(ag,{placement:"end",...o,children:n}):void 0]})}),pN=({block:e="start",inline:t="nearest"})=>{const[r,n]=C.useState(()=>window.location.hash);return C.useEffect(()=>{const o=()=>n(window.location.hash);return window.addEventListener("hashchange",o),()=>window.removeEventListener("hashchange",o)},[]),C.useEffect(()=>{if(r){const o=document.getElementById(r.slice(1));o&&o.scrollIntoView({behavior:"auto",block:e,inline:t})}},[r,e,t]),null},mN=C.forwardRef((e,t)=>{const{portalled:r=!0,portalRef:n,...o}=e;return u.jsx(er,{container:n,disabled:!r,children:u.jsx(Z2,{children:u.jsx(eI,{...o,ref:t})})})}),vN=C.forwardRef((e,t)=>{const{children:r,item:n,...o}=e;return u.jsxs(nI,{item:n,...o,ref:t,children:[r,u.jsx(oI,{})]},n.value)}),bN=C.forwardRef((e,t)=>u.jsx(Q2,{...e,positioning:{sameWidth:!0,...e.positioning},ref:t})),yN=C.forwardRef((e,t)=>{const{children:r,clearable:n,isActive:o,triggerProps:i,...s}=e;return u.jsxs(aI,{...s,children:[u.jsx(J2,{ref:t,...i,children:r}),u.jsxs(iI,{_rtl:{bottom:0,left:0,right:"auto",top:0},children:[n?u.jsx(rI,{asChild:!0,children:u.jsx(wl,{focusRingWidth:"2px",focusVisibleRing:"inside",pointerEvents:"auto",size:"xs",variant:"plain"})}):void 0,u.jsx(sI,{})]})]})}),xN=C.forwardRef((e,t)=>{const{children:r,...n}=e;return u.jsx(tI,{...n,ref:t,children:u.jsx(lI,{children:o=>{const i=o.selectedItems;return i.length===0?e.placeholder:r?r(i):i.length===1?o.collection.stringifyItem(i[0]):`${i.length} selected`}})})}),mo={Content:mN,Item:vN,Root:bN,Trigger:yN,ValueText:xN},Bp=({error:e})=>{const t=e;if(!t)return;const r=t.body?.detail;let n;return r!==void 0&&(typeof r=="string"?n=r:Array.isArray(r)?n=r.map(o=>`${o.loc.join(".")} ${o.msg}`):n=Object.keys(r).map(o=>`${o}: ${r[o]}`)),u.jsx(hN,{status:"error",children:u.jsxs(Vi,{align:"start",flexDirection:"column",gap:2,mt:-1,children:[t.status," ",t.message,n===t.message?void 0:u.jsx(Be,{whiteSpace:"preserve",wordBreak:"break-all",children:n})]})})};function Hp(e){return re({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 SN(e){return re({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 CN(e){return re({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 kN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"},child:[]},{tag:"path",attr:{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"},child:[]}]})(e)}function wN(e){return re({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 EN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"11",cy:"11",r:"8"},child:[]},{tag:"line",attr:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"},child:[]}]})(e)}function ON(e){return re({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 re({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 Up(e){return re({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 TN(e){return re({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 PN(e){return re({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 NN=({state:e,...t})=>{switch(e){case"deferred":return u.jsx(Up,{...t});case"failed":return u.jsx(TN,{...t});case"queued":return u.jsx(PN,{...t});case"removed":return u.jsx(IN,{...t});case"restarting":return u.jsx(wN,{...t});case"running":return u.jsx(Hp,{...t});case"scheduled":return u.jsx(CN,{...t});case"skipped":return u.jsx(ON,{...t});case"success":return u.jsx(aN,{...t});case"up_for_reschedule":return u.jsx(sN,{...t});case"up_for_retry":return u.jsx(dN,{...t});case"upstream_failed":return u.jsx(lN,{...t});default:return u.jsx(Mp,{...t})}},AN=D.forwardRef(({children:e,state:t,...r},n)=>u.jsxs(Qa,{borderRadius:"full",colorPalette:t===null?"none":t,fontSize:"sm",px:e===void 0?1:2,py:1,ref:n,variant:"solid",...r,children:[t===void 0?void 0:u.jsx(NN,{state:t}),e]})),jp=5e3,RN=e=>{const[t,r]=C.useState(0);return C.useEffect(()=>{if(!e.current)return;const n=new ResizeObserver(o=>{for(const i of o)r(i.contentRect.width)});return n.observe(e.current),()=>{n.disconnect()}},[e]),t},VN=()=>{const{data:e,error:t}=UP(void 0,{enabled:!0,refetchInterval:jp});return e?.jobs&&e.jobs.length>0?u.jsx(In,{p:2,children:u.jsxs(gg,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[u.jsx(pg,{children:u.jsxs(_i,{children:[u.jsx(Oe,{children:"Dag ID"}),u.jsx(Oe,{children:"Run ID"}),u.jsx(Oe,{children:"Task ID"}),u.jsx(Oe,{children:"Map Index"}),u.jsx(Oe,{children:"Try Number"}),u.jsx(Oe,{children:"State"}),u.jsx(Oe,{children:"Queue"}),u.jsx(Oe,{children:"Queued DTTM"}),u.jsx(Oe,{children:"Edge Worker"}),u.jsx(Oe,{children:"Last Update"})]})}),u.jsx(mg,{children:e.jobs.map(r=>u.jsxs(_i,{children:[u.jsx(Ie,{children:u.jsx(it.Link,{to:`/dags/${r.dag_id}`,children:r.dag_id})}),u.jsx(Ie,{children:u.jsx(it.Link,{to:`/dags/${r.dag_id}/runs/${r.run_id}`,children:r.run_id})}),u.jsx(Ie,{children:r.map_index>=0?u.jsx(it.Link,{to:`/dags/${r.dag_id}/runs/${r.run_id}/tasks/${r.task_id}/mapped/${r.map_index}?try_number=${r.try_number}`,children:r.task_id}):u.jsx(it.Link,{to:`/dags/${r.dag_id}/runs/${r.run_id}/tasks/${r.task_id}?try_number=${r.try_number}`,children:r.task_id})}),u.jsx(Ie,{children:r.map_index>=0?r.map_index:"-"}),u.jsx(Ie,{children:r.try_number}),u.jsx(Ie,{children:u.jsx(AN,{state:r.state,children:r.state})}),u.jsx(Ie,{children:r.queue}),u.jsx(Ie,{children:r.queued_dttm?u.jsx(Ji,{date:r.queued_dttm,live:!1}):void 0}),u.jsx(Ie,{children:u.jsx(it.Link,{to:`../worker#${r.edge_worker}`,children:r.edge_worker})}),u.jsx(Ie,{children:r.last_update?u.jsx(Ji,{date:r.last_update,live:!1}):void 0})]},`${r.dag_id}.${r.run_id}.${r.task_id}.${r.map_index}.${r.try_number}`))})]})}):e?u.jsx(Be,{as:"div",pl:4,pt:1,children:"Currently no jobs running. Start a Dag and then all active jobs should show up here. Note that after some (configurable) time, jobs are purged from the list."}):t?u.jsx(Be,{as:"div",pl:4,pt:1,children:u.jsx(Bp,{error:t})}):u.jsx(Be,{as:"div",pl:4,pt:1,children:"Loading..."})},Gp=["shift","alt","meta","mod","ctrl","control"],_N={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function nr(e){return(_N[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function qp(e){return Gp.includes(e)}function El(e,t=","){return e.toLowerCase().split(t)}function Ol(e,t="+",r=">",n=!1,o){let i=[],s=!1;e=e.trim(),e.includes(r)?(s=!0,i=e.toLocaleLowerCase().split(r).map(c=>nr(c))):i=e.toLocaleLowerCase().split(t).map(c=>nr(c));const a={alt:i.includes("alt"),ctrl:i.includes("ctrl")||i.includes("control"),shift:i.includes("shift"),meta:i.includes("meta"),mod:i.includes("mod"),useKey:n},l=i.filter(c=>!Gp.includes(c));return{...a,keys:l,description:o,isSequence:s,hotkey:e}}typeof document<"u"&&(document.addEventListener("keydown",e=>{e.code!==void 0&&Kp([nr(e.code)])}),document.addEventListener("keyup",e=>{e.code!==void 0&&Yp([nr(e.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{Bt.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{Bt.clear()},0)}));const Bt=new Set;function Il(e){return Array.isArray(e)}function LN(e,t=","){return(Il(e)?e:e.split(t)).every(r=>Bt.has(r.trim().toLowerCase()))}function Kp(e){const t=Array.isArray(e)?e:[e];Bt.has("meta")&&Bt.forEach(r=>!qp(r)&&Bt.delete(r.toLowerCase())),t.forEach(r=>Bt.add(r.toLowerCase()))}function Yp(e){const t=Array.isArray(e)?e:[e];e==="meta"?Bt.clear():t.forEach(r=>Bt.delete(r.toLowerCase()))}function FN(e,t,r){(typeof r=="function"&&r(e,t)||r===!0)&&e.preventDefault()}function zN(e,t,r){return typeof r=="function"?r(e,t):r===!0||r===void 0}const DN=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"];function MN(e){return Xp(e,DN)}function Xp(e,t=!1){const{target:r,composed:n}=e;let o,i;return $N(r)&&n?(o=e.composedPath()[0]&&e.composedPath()[0].tagName,i=e.composedPath()[0]&&e.composedPath()[0].role):(o=r&&r.tagName,i=r&&r.role),Il(t)?!!(o&&t&&t.some(s=>s.toLowerCase()===o.toLowerCase()||s===i)):!!(o&&t&&t)}function $N(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function WN(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a '),!0):t?e.some(r=>t.includes(r))||e.includes("*"):!0}const BN=(e,t,r=!1)=>{const{alt:n,meta:o,mod:i,shift:s,ctrl:a,keys:l,useKey:c}=t,{code:d,key:h,ctrlKey:g,metaKey:f,shiftKey:p,altKey:m}=e,v=nr(d);if(c&&l?.length===1&&l.includes(h))return!0;if(!l?.includes(v)&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(v))return!1;if(!r){if(n!==m&&v!=="alt"||s!==p&&v!=="shift")return!1;if(i){if(!f&&!g)return!1}else if(o!==f&&v!=="meta"&&v!=="os"||a!==g&&v!=="ctrl"&&v!=="control")return!1}return l&&l.length===1&&l.includes(v)?!0:l?LN(l):!l},HN=C.createContext(void 0),UN=()=>C.useContext(HN);function Qp(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce((r,n)=>r&&Qp(e[n],t[n]),!0):e===t}const jN=C.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),GN=()=>C.useContext(jN);function qN(e){const t=C.useRef(void 0);return Qp(t.current,e)||(t.current=e),t.current}const Jp=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},KN=typeof window<"u"?C.useLayoutEffect:C.useEffect;function YN(e,t,r,n){const o=C.useRef(null),i=C.useRef(!1),s=Array.isArray(r)?Array.isArray(n)?void 0:n:r,a=Il(e)?e.join(s?.delimiter):e,l=Array.isArray(r)?r:Array.isArray(n)?n:void 0,c=C.useCallback(t,l??[]),d=C.useRef(c);l?d.current=c:d.current=t;const h=qN(s),{activeScopes:g}=GN(),f=UN();return KN(()=>{if(h?.enabled===!1||!WN(g,h?.scopes))return;let p=[],m;const v=(S,b=!1)=>{if(!(MN(S)&&!Xp(S,h?.enableOnFormTags))){if(o.current!==null){const O=o.current.getRootNode();if((O instanceof Document||O instanceof ShadowRoot)&&O.activeElement!==o.current&&!o.current.contains(O.activeElement)){Jp(S);return}}S.target?.isContentEditable&&!h?.enableOnContentEditable||El(a,h?.delimiter).forEach(O=>{if(O.includes(h?.splitKey??"+")&&O.includes(h?.sequenceSplitKey??">")){console.warn(`Hotkey ${O} contains both ${h?.splitKey??"+"} and ${h?.sequenceSplitKey??">"} which is not supported.`);return}const T=Ol(O,h?.splitKey,h?.sequenceSplitKey,h?.useKey,h?.description);if(T.isSequence){m=setTimeout(()=>{p=[]},h?.sequenceTimeoutMs??1e3);const R=T.useKey?S.key:nr(S.code);if(qp(R.toLowerCase()))return;p.push(R);const E=T.keys?.[p.length-1];if(R!==E){p=[],m&&clearTimeout(m);return}p.length===T.keys?.length&&(d.current(S,T),m&&clearTimeout(m),p=[])}else if(BN(S,T,h?.ignoreModifiers)||T.keys?.includes("*")){if(h?.ignoreEventWhen?.(S)||b&&i.current)return;if(FN(S,T,h?.preventDefault),!zN(S,T,h?.enabled)){Jp(S);return}d.current(S,T),b||(i.current=!0)}})}},x=S=>{S.code!==void 0&&(Kp(nr(S.code)),(h?.keydown===void 0&&h?.keyup!==!0||h?.keydown)&&v(S))},k=S=>{S.code!==void 0&&(Yp(nr(S.code)),i.current=!1,h?.keyup&&v(S,!0))},y=o.current||s?.document||document;return y.addEventListener("keyup",k,s?.eventListenerOptions),y.addEventListener("keydown",x,s?.eventListenerOptions),f&&El(a,h?.delimiter).forEach(S=>f.addHotkey(Ol(S,h?.splitKey,h?.sequenceSplitKey,h?.useKey,h?.description))),()=>{y.removeEventListener("keyup",k,s?.eventListenerOptions),y.removeEventListener("keydown",x,s?.eventListenerOptions),f&&El(a,h?.delimiter).forEach(S=>f.removeHotkey(Ol(S,h?.splitKey,h?.sequenceSplitKey,h?.useKey,h?.description))),p=[],m&&clearTimeout(m)}},[a,h,g]),o}function XN(e,t,r,n){var o=this,i=C.useRef(null),s=C.useRef(0),a=C.useRef(0),l=C.useRef(null),c=C.useRef([]),d=C.useRef(),h=C.useRef(),g=C.useRef(e),f=C.useRef(!0);g.current=e;var p=typeof window<"u",m=!t&&t!==0&&p;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var v=!!(r=r||{}).leading,x=!("trailing"in r)||!!r.trailing,k="maxWait"in r,y="debounceOnServer"in r&&!!r.debounceOnServer,S=k?Math.max(+r.maxWait||0,t):null;C.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var b=C.useMemo(function(){var O=function(A){var L=c.current,z=d.current;return c.current=d.current=null,s.current=A,a.current=a.current||A,h.current=g.current.apply(z,L)},T=function(A,L){m&&cancelAnimationFrame(l.current),l.current=m?requestAnimationFrame(A):setTimeout(A,L)},R=function(A){if(!f.current)return!1;var L=A-i.current;return!i.current||L>=t||L<0||k&&A-s.current>=S},E=function(A){return l.current=null,x&&c.current?O(A):(c.current=d.current=null,h.current)},P=function A(){var L=Date.now();if(v&&a.current===s.current&&N(),R(L))return E(L);if(f.current){var z=t-(L-i.current),H=k?Math.min(z,S-(L-s.current)):z;T(A,H)}},N=function(){},w=function(){if(p||y){var A=Date.now(),L=R(A);if(c.current=[].slice.call(arguments),d.current=o,i.current=A,L){if(!l.current&&f.current)return s.current=i.current,T(P,t),v?O(i.current):h.current;if(k)return T(P,t),O(i.current)}return l.current||T(P,t),h.current}};return w.cancel=function(){var A=l.current;A&&(m?cancelAnimationFrame(l.current):clearTimeout(l.current)),s.current=0,c.current=i.current=d.current=l.current=null},w.isPending=function(){return!!l.current},w.flush=function(){return l.current?E(Date.now()):h.current},w},[v,k,t,S,x,m,p,y,n]);return b}const QN=200,Zp=({buttonProps:e,defaultValue:t,groupProps:r,hideAdvanced:n=!1,hotkeyDisabled:o=!1,onChange:i,placeHolder:s})=>{const a=XN(g=>i(g),QN),l=C.useRef(null),[c,d]=C.useState(t),h=g=>{d(g.target.value),a(g.target.value)};return YN("mod+k",()=>{l.current?.focus()},{enabled:!o,preventDefault:!0}),u.jsx(gN,{...r,colorPalette:"brand",endElement:u.jsxs(u.Fragment,{children:[c?u.jsx(wl,{"aria-label":"Clear search",colorPalette:"brand","data-testid":"clear-search",onClick:()=>{d(""),i("")},size:"xs"}):void 0,n?void 0:u.jsx(Ee,{fontWeight:"normal",height:28,variant:"ghost",...e,children:"Advanced"}),!o&&u.jsx(lg,{size:"sm",children:"⌘K"})]}),startElement:u.jsx(EN,{}),children:u.jsx(sg,{"data-testid":"search-workers",onChange:h,placeholder:s,pr:150,ref:l,value:c})})},JN=({onQueueUpdate:e,workerName:t})=>{const{onClose:r,onOpen:n,open:o}=ur(),[i,s]=C.useState(""),a=qP({onError:c=>{e({description:`Unable to add queue to worker ${t}: ${c}`,title:"Add Queue Failed",type:"error"})},onSuccess:()=>{e({description:`Queue "${i}" was added to worker ${t}.`,title:"Queue Added",type:"success"}),r(),s("")}}),l=()=>{if(!i.trim()){e({description:"Please enter a queue name.",title:"Invalid Input",type:"error"});return}a.mutate({queueName:i.trim(),workerName:t})};return u.jsxs(u.Fragment,{children:[u.jsx(kt,{size:"sm",variant:"ghost",onClick:n,"aria-label":"Add Queue",title:"Add Queue",colorPalette:"success",children:u.jsx(Wp,{})}),u.jsx(Er,{onOpenChange:r,open:o,size:"md",children:u.jsxs(er,{children:[u.jsx(Ar,{}),u.jsx(Or,{children:u.jsxs(Ir,{children:[u.jsx(_r,{children:u.jsxs(Tr,{children:["Add Queue to ",t]})}),u.jsx(Rr,{children:u.jsxs(io,{gap:4,align:"stretch",children:[u.jsx(Be,{children:"Enter the name of the queue to add to this worker:"}),u.jsx(sg,{placeholder:"Queue name",value:i,onChange:c=>s(c.target.value),onKeyDown:c=>{c.key==="Enter"&&l()}})]})}),u.jsxs(Vr,{children:[u.jsx(Nr,{asChild:!0,children:u.jsx(Ee,{variant:"outline",children:"Cancel"})}),u.jsxs(Ee,{onClick:l,colorPalette:"success",loading:a.isPending,loadingText:"Adding queue...",disabled:!i.trim(),children:[u.jsx(Wp,{}),"Add Queue"]})]}),u.jsx(Pr,{asChild:!0,children:u.jsx(tr,{size:"sm"})})]})})]})})]})},ZN=({onEditComment:e,workerName:t})=>{const{onClose:r,onOpen:n,open:o}=ur(),[i,s]=C.useState(""),a=KP({onError:c=>{e({description:`Unable to update comments for worker ${t}: ${c}`,title:"Updating Comments failed",type:"error"})},onSuccess:()=>{e({description:`Worker maintenance comments for ${t} were updated.`,title:"Maintenance Comments updated",type:"success"}),r()}}),l=()=>{a.mutate({requestBody:{maintenance_comment:i},workerName:t})};return u.jsxs(u.Fragment,{children:[u.jsx(kt,{size:"sm",variant:"ghost","aria-label":"Edit Comments",title:"Edit Comments",onClick:n,colorPalette:"warning",children:u.jsx(kN,{})}),u.jsx(Er,{onOpenChange:r,open:o,size:"md",children:u.jsxs(er,{children:[u.jsx(Ar,{}),u.jsx(Or,{children:u.jsxs(Ir,{children:[u.jsx(_r,{children:u.jsxs(Tr,{children:["Edit maintenance comments for worker ",t]})}),u.jsx(Rr,{children:u.jsx(Za,{placeholder:"Change maintenance comment (required)",value:i,onChange:c=>s(c.target.value),required:!0,maxLength:1024,size:"sm"})}),u.jsxs(Vr,{children:[u.jsx(Nr,{asChild:!0,children:u.jsx(Ee,{variant:"outline",children:"Cancel"})}),u.jsx(Ee,{onClick:l,disabled:!i.trim(),children:"Update Comments"})]}),u.jsx(Pr,{asChild:!0,children:u.jsx(tr,{size:"sm"})})]})})]})})]})};function em(e){return re({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 e5(e){return re({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 t5=({onEnterMaintenance:e,workerName:t})=>{const{onClose:r,onOpen:n,open:o}=ur(),[i,s]=C.useState(""),a=jP({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 u.jsxs(u.Fragment,{children:[u.jsx(kt,{size:"sm",variant:"ghost","aria-label":"Enter Maintenance",title:"Enter Maintenance",onClick:n,colorPalette:"warning",children:u.jsx(em,{})}),u.jsx(Er,{onOpenChange:r,open:o,size:"md",children:u.jsxs(er,{children:[u.jsx(Ar,{}),u.jsx(Or,{children:u.jsxs(Ir,{children:[u.jsx(_r,{children:u.jsxs(Tr,{children:["Set maintenance for worker ",t]})}),u.jsx(Rr,{children:u.jsx(Za,{placeholder:"Enter maintenance comment (required)",value:i,onChange:c=>s(c.target.value),required:!0,maxLength:1024,size:"sm"})}),u.jsxs(Vr,{children:[u.jsx(Nr,{asChild:!0,children:u.jsx(Ee,{variant:"outline",children:"Cancel"})}),u.jsx(Ee,{onClick:l,disabled:!i.trim(),children:"Confirm Maintenance"})]}),u.jsx(Pr,{asChild:!0,children:u.jsx(tr,{size:"sm"})})]})})]})})]})};function r5(e){return re({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 n5=({onExitMaintenance:e,workerName:t})=>{const{onClose:r,onOpen:n,open:o}=ur(),i=YP({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"}),r()}}),s=()=>{i.mutate({workerName:t})};return u.jsxs(u.Fragment,{children:[u.jsx(kt,{size:"sm",variant:"ghost",onClick:n,"aria-label":"Exit Maintenance",title:"Exit Maintenance",colorPalette:"warning",children:u.jsx(r5,{})}),u.jsx(Er,{onOpenChange:r,open:o,size:"md",children:u.jsxs(er,{children:[u.jsx(Ar,{}),u.jsx(Or,{children:u.jsxs(Ir,{children:[u.jsx(_r,{children:u.jsxs(Tr,{children:["Exit maintenance for worker ",t]})}),u.jsx(Rr,{children:u.jsxs(Be,{children:["Are you sure you want to exit maintenance mode for worker ",t,"?"]})}),u.jsxs(Vr,{children:[u.jsx(Nr,{asChild:!0,children:u.jsx(Ee,{variant:"outline",children:"No"})}),u.jsx(Ee,{onClick:s,children:"Yes"})]}),u.jsx(Pr,{asChild:!0,children:u.jsx(tr,{size:"sm"})})]})})]})})]})},o5=({onQueueUpdate:e,worker:t})=>{const{onClose:r,onOpen:n,open:o}=ur(),[i,s]=C.useState(""),a=QP({onError:d=>{e({description:`Unable to remove queue from worker ${t.worker_name}: ${d}`,title:"Remove Queue Failed",type:"error"})},onSuccess:()=>{e({description:`Queue "${i}" was removed from worker ${t.worker_name}.`,title:"Queue Removed",type:"success"}),r(),s("")}}),l=()=>{if(!i){e({description:"Please select a queue to remove.",title:"Invalid Selection",type:"error"});return}a.mutate({queueName:i,workerName:t.worker_name})},c=t.queues||[];return c.length===0?null:u.jsxs(u.Fragment,{children:[u.jsx(kt,{size:"sm",variant:"ghost",onClick:n,"aria-label":"Remove Queue",title:"Remove Queue",colorPalette:"danger",children:u.jsx($p,{})}),u.jsx(Er,{onOpenChange:r,open:o,size:"md",children:u.jsxs(er,{children:[u.jsx(Ar,{}),u.jsx(Or,{children:u.jsxs(Ir,{children:[u.jsx(_r,{children:u.jsxs(Tr,{children:["Remove Queue from ",t.worker_name]})}),u.jsx(Rr,{children:u.jsxs(io,{gap:4,align:"stretch",children:[u.jsx(Be,{children:"Select a queue to remove from this worker:"}),u.jsx(io,{gap:2,align:"stretch",children:u.jsx(G2,{each:c,children:d=>u.jsx(Ee,{variant:i===d?"solid":"outline",colorPalette:i===d?"blue":"gray",onClick:()=>s(d),justifyContent:"flex-start",children:d},d)})})]})}),u.jsxs(Vr,{children:[u.jsx(Nr,{asChild:!0,children:u.jsx(Ee,{variant:"outline",children:"Cancel"})}),u.jsxs(Ee,{onClick:l,colorPalette:"danger",loading:a.isPending,loadingText:"Removing queue...",disabled:!i,children:[u.jsx($p,{}),"Remove Queue"]})]}),u.jsx(Pr,{asChild:!0,children:u.jsx(tr,{size:"sm"})})]})})]})})]})};function tm(e){return re({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M170.5 51.6L151.5 80l145 0-19-28.4c-1.5-2.2-4-3.6-6.7-3.6l-93.7 0c-2.7 0-5.2 1.3-6.7 3.6zm147-26.6L354.2 80 368 80l48 0 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-8 0 0 304c0 44.2-35.8 80-80 80l-224 0c-44.2 0-80-35.8-80-80l0-304-8 0c-13.3 0-24-10.7-24-24S10.7 80 24 80l8 0 48 0 13.8 0 36.7-55.1C140.9 9.4 158.4 0 177.1 0l93.7 0c18.7 0 36.2 9.4 46.6 24.9zM80 128l0 304c0 17.7 14.3 32 32 32l224 0c17.7 0 32-14.3 32-32l0-304L80 128zm80 64l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16z"},child:[]}]})(e)}const rm=({onDelete:e,workerName:t})=>{const{onClose:r,onOpen:n,open:o}=ur(),i=XP({onError:a=>{e({description:`Unable to delete worker ${t}: ${a}`,title:"Delete Worker Failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} has been deleted from the system.`,title:"Worker Deleted",type:"success"}),r()}}),s=()=>{i.mutate({workerName:t})};return u.jsxs(u.Fragment,{children:[u.jsx(kt,{size:"sm",variant:"ghost",onClick:n,"aria-label":"Delete Worker",title:"Delete Worker",colorPalette:"danger",children:u.jsx(tm,{})}),u.jsx(Er,{onOpenChange:r,open:o,size:"md",children:u.jsxs(er,{children:[u.jsx(Ar,{}),u.jsx(Or,{children:u.jsxs(Ir,{children:[u.jsx(_r,{children:u.jsxs(Tr,{children:["Delete worker ",t]})}),u.jsxs(Rr,{children:[u.jsxs(Be,{children:["Are you sure you want to delete worker ",t,"?"]}),u.jsx(Be,{fontSize:"sm",color:"red.500",mt:2,children:"This will permanently remove the worker record from the system. This action cannot be undone."})]}),u.jsxs(Vr,{children:[u.jsx(Nr,{asChild:!0,children:u.jsx(Ee,{variant:"outline",children:"Cancel"})}),u.jsxs(Ee,{onClick:s,colorPalette:"danger",loading:i.isPending,loadingText:"Deleting...",children:[u.jsx(tm,{style:{marginRight:"8px"}}),"Delete Worker"]})]}),u.jsx(Pr,{asChild:!0,children:u.jsx(tr,{size:"sm"})})]})})]})})]})};function nm(e){return re({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z"},child:[]}]})(e)}const om=({onShutdown:e,workerName:t})=>{const{onClose:r,onOpen:n,open:o}=ur(),i=GP({onError:a=>{e({description:`Unable to request shutdown for worker ${t}: ${a}`,title:"Shutdown Request Failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to shutdown.`,title:"Shutdown Request Sent",type:"success"}),r()}}),s=()=>{i.mutate({workerName:t})};return u.jsxs(u.Fragment,{children:[u.jsx(kt,{size:"sm",variant:"ghost",onClick:n,"aria-label":"Shutdown Worker",title:"Shutdown Worker",colorPalette:"danger",children:u.jsx(nm,{})}),u.jsx(Er,{onOpenChange:r,open:o,size:"md",children:u.jsxs(er,{children:[u.jsx(Ar,{}),u.jsx(Or,{children:u.jsxs(Ir,{children:[u.jsx(_r,{children:u.jsxs(Tr,{children:["Shutdown worker ",t]})}),u.jsxs(Rr,{children:[u.jsxs(Be,{children:["Are you sure you want to request shutdown for worker ",t,"?"]}),u.jsx(Be,{fontSize:"sm",color:"red.500",mt:2,children:"This stops the worker on the remote edge. You can't restart it from the UI — you need to start it remotely instead."})]}),u.jsxs(Vr,{children:[u.jsx(Nr,{asChild:!0,children:u.jsx(Ee,{variant:"outline",children:"Cancel"})}),u.jsxs(Ee,{onClick:s,colorPalette:"danger",loading:i.isPending,loadingText:"Shutting down...",children:[u.jsx(nm,{style:{marginRight:"8px"}}),"Shutdown Worker"]})]}),u.jsx(Pr,{asChild:!0,children:u.jsx(tr,{size:"sm"})})]})})]})})]})},i5=({onOperations:e,worker:t})=>{const r=t.worker_name,n=t.state,o=i=>{fN.create(i),e()};return n==="idle"||n==="running"?u.jsxs(oo,{justifyContent:"end",gap:2,children:[u.jsx(JN,{onQueueUpdate:o,workerName:r}),u.jsx(o5,{onQueueUpdate:o,worker:t}),u.jsx(t5,{onEnterMaintenance:o,workerName:r}),u.jsx(om,{onShutdown:o,workerName:r})]}):n==="maintenance pending"||n==="maintenance mode"||n==="maintenance request"||n==="offline maintenance"?u.jsxs(io,{gap:2,align:"stretch",children:[u.jsx(In,{fontSize:"sm",whiteSpace:"pre-wrap",children:t.maintenance_comments||"No comment"}),u.jsxs(oo,{justifyContent:"end",gap:2,children:[u.jsx(ZN,{onEditComment:o,workerName:r}),u.jsx(n5,{onExitMaintenance:o,workerName:r}),n==="offline maintenance"?u.jsx(rm,{onDelete:o,workerName:r}):u.jsx(om,{onShutdown:o,workerName:r})]})]}):n==="offline"||n==="unknown"?u.jsx(oo,{justifyContent:"end",children:u.jsx(rm,{onDelete:o,workerName:r})}):null};function s5(e){return re({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 a5(e){return re({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 l5(e){return re({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 c5=({state:e,...t})=>{switch(e){case"starting":return u.jsx(Up,{...t});case"running":return u.jsx(Hp,{...t});case"idle":return u.jsx(s5,{...t});case"shutdown request":case"terminating":return u.jsx(SN,{...t});case"offline":return u.jsx(a5,{...t});case"unknown":return u.jsx(l5,{...t});case"maintenance request":case"maintenance pending":case"maintenance exit":return u.jsx(e5,{...t});case"maintenance mode":case"offline maintenance":return u.jsx(em,{...t});default:return u.jsx(Mp,{...t})}},d5=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"}},u5=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 is issued. It will be picked-up on the next heartbeat, tasks will drain and then worker will terminate.";case"terminating":return"Edge Worker is completing work (draining running tasks) 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 or got disconnected.";case"maintenance request":return"Worker was requested to enter maintenance mode. Once worker receives this message it will pause fetching tasks and drain tasks.";case"maintenance pending":return"Edge Worker received the request for maintenance, waiting for tasks to finish. Once tasks are finished will move to 'maintenance mode'.";case"maintenance mode":return"Edge Worker is in maintenance mode. It is online but pauses fetching tasks.";case"maintenance exit":return"Request Worker is requested to exit maintenance mode. Once the worker receives this state it will un-pause and fetch new tasks.";case"offline maintenance":return"Worker was shut down in maintenance mode. It will be in maintenance mode when restarted.";default:return}},Tl=D.forwardRef(({children:e,state:t,...r},n)=>u.jsxs(Qa,{borderRadius:"full",colorPalette:d5(t),fontSize:"sm",px:e===void 0?1:2,py:1,ref:n,title:u5(t),variant:"solid",...r,children:[t===void 0?void 0:u.jsx(c5,{state:t}),e]})),h5={enum:["starting","running","idle","shutdown request","terminating","offline","unknown","maintenance request","maintenance pending","maintenance mode","maintenance exit","offline maintenance"]},f5=e=>e.split(/[\s_]+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" "),im=sS({items:[{label:"All States",value:"all"},...h5.enum.map(e=>({label:f5(e),value:e}))]}),g5=()=>{const[e,t]=C.useState(""),[r,n]=C.useState(""),[o,i]=C.useState([]),s=o.length>0,{data:a,error:l,refetch:c}=HP({queueNamePattern:r||void 0,state:s?o:void 0,workerNamePattern:e||void 0},void 0,{enabled:!0,refetchInterval:jp}),d=f=>{t(f)},h=f=>{n(f)},g=C.useCallback(({value:f})=>{const[p,...m]=f;(p===void 0||p==="all")&&m.length===0?i([]):i(f.filter(v=>v!=="all"))},[]);return u.jsxs(In,{p:2,children:[u.jsxs(Vi,{gap:4,mb:4,children:[u.jsx(Zp,{buttonProps:{disabled:!0},defaultValue:e,hideAdvanced:!0,hotkeyDisabled:!0,onChange:d,placeHolder:"Search workers"}),u.jsx(Zp,{buttonProps:{disabled:!0},defaultValue:r,hideAdvanced:!0,hotkeyDisabled:!0,onChange:h,placeHolder:"Search queues"}),u.jsxs(mo.Root,{collection:im,maxW:"450px",multiple:!0,onValueChange:g,value:s?o:["all"],children:[u.jsx(mo.Trigger,{...s?{clearable:!0}:{},colorPalette:"brand",isActive:!!o,children:u.jsx(mo.ValueText,{children:()=>s?u.jsx(Vi,{flexWrap:"wrap",fontSize:"sm",gap:"4px",paddingY:"8px",children:o.map(f=>u.jsx(Tl,{state:f,children:f},f))}):"All States"})}),u.jsx(mo.Content,{children:im.items.map(f=>u.jsx(mo.Item,{item:f,children:f.value==="all"?f.label:u.jsx(Tl,{state:f.value,children:f.label})},f.label))})]})]}),l?u.jsx(Bp,{error:l}):a?a.workers&&a.workers.length>0?u.jsxs(u.Fragment,{children:[u.jsxs(gg,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[u.jsx(pg,{children:u.jsxs(_i,{children:[u.jsx(Oe,{children:"Worker Name"}),u.jsx(Oe,{children:"State"}),u.jsx(Oe,{children:"Queues"}),u.jsx(Oe,{children:"First Online"}),u.jsx(Oe,{children:"Last Heartbeat"}),u.jsx(Oe,{children:"Active Jobs"}),u.jsx(Oe,{children:"System Information"}),u.jsx(Oe,{children:"Operations"})]})}),u.jsx(mg,{children:a.workers.map(f=>u.jsxs(_i,{id:f.worker_name,children:[u.jsx(Ie,{children:f.worker_name}),u.jsx(Ie,{children:u.jsx(Tl,{state:f.state,children:f.state})}),u.jsx(Ie,{children:f.queues?u.jsx(ug,{children:f.queues.map(p=>u.jsx(hg,{children:p},p))}):"(all queues)"}),u.jsx(Ie,{children:f.first_online?u.jsx(Ji,{date:f.first_online,live:!1}):void 0}),u.jsx(Ie,{children:f.last_heartbeat?u.jsx(Ji,{date:f.last_heartbeat,live:!1}):void 0}),u.jsx(Ie,{children:f.jobs_active}),u.jsx(Ie,{children:f.sysinfo?u.jsx(ug,{children:Object.entries(f.sysinfo).map(([p,m])=>u.jsxs(hg,{children:[p,": ",m]},p))}):"N/A"}),u.jsx(Ie,{children:u.jsx(i5,{worker:f,onOperations:c})})]},f.worker_name))})]}),u.jsx(pN,{})]}):u.jsxs(Be,{as:"div",pl:2,pt:1,children:["No known workers. Start one via ",u.jsx(og,{children:"airflow edge worker [...]"}),". See"," ",u.jsxs(cg,{target:"_blank",variant:"underline",color:"fg.info",href:"https://airflow.apache.org/docs/apache-airflow-providers-edge3/stable/deployment.html",children:["Edge Worker Deployment docs ",u.jsx(cN,{})]})," ","how to deploy a new worker."]}):u.jsx(Be,{as:"div",pl:2,pt:1,children:"Loading..."})]})},p5=({tabs:e})=>{const t=C.useRef(null),r=RN(t);return u.jsx(oo,{alignItems:"center",borderBottomWidth:1,mb:2,ref:t,children:e.map(({icon:n,label:o,value:i})=>u.jsx(it.NavLink,{end:!0,title:o,to:i,children:({isActive:s})=>u.jsx(ng,{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:r>600||!n?o:n})},i))})},m5=()=>{const e=[{label:"Edge Worker",value:"worker"},{label:"Edge Jobs",value:"jobs"}];return u.jsxs(In,{p:2,children:[u.jsx(p5,{tabs:e}),u.jsxs(it.Routes,{children:[u.jsx(it.Route,{index:!0,element:u.jsx(it.Navigate,{to:"worker",replace:!0})}),u.jsx(it.Route,{path:"worker",element:u.jsx(g5,{})}),u.jsx(it.Route,{path:"jobs",element:u.jsx(VN,{})})]})]})},G=(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}`}}}),v5=Ba({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:G("brand"),danger:G("red"),info:G("blue"),warning:G("amber"),error:G("red"),active:G("blue"),success:G("green"),failed:G("red"),queued:G("stone"),skipped:G("pink"),up_for_reschedule:G("sky"),up_for_retry:G("yellow"),upstream_failed:G("orange"),running:G("cyan"),restarting:G("violet"),deferred:G("purple"),scheduled:G("zinc"),none:G("gray"),removed:G("slate"),red:G("red"),orange:G("orange"),amber:G("amber"),yellow:G("yellow"),lime:G("lime"),green:G("green"),emerald:G("emerald"),teal:G("teal"),cyan:G("cyan"),sky:G("sky"),blue:G("blue"),indigo:G("indigo"),violet:G("violet"),purple:G("purple"),fuchsia:G("fuchsia"),pink:G("pink"),rose:G("rose"),slate:G("slate"),gray:G("gray"),zinc:G("zinc"),neutral:G("neutral"),stone:G("stone")}}}}),b5=Vf(Kf,v5);return()=>{const e=document.querySelector("head > base")?.getAttribute("href")??"",t=new URL(e,globalThis.location.origin);Et.BASE=t.pathname.replace(/\/$/,"");const r=new LI({defaultOptions:{queries:{staleTime:1/0}}});return u.jsx(gv,{value:b5,children:u.jsx(FI,{client:r,children:u.jsx(rT,{children:u.jsx(m5,{})})})})}})); +)+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),lw=af("width"),cw=af("height"),lf=e=>({isMin:gf(e.minMax,e.maxMin,e.min),isMax:gf(e.maxMin,e.minMax,e.max)}),{isMin:ja,isMax:cf}=lf(lw),{isMin:Ga,isMax:uf}=lf(cw),df=/print/i,hf=/^print$/i,uw=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,dw=/(\d)/,no=Number.MAX_VALUE,hw={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function ff(e){const t=uw.exec(e)||(ja(e)||Ga(e)?dw.exec(e):null);if(!t)return no;if(t[0]==="0")return 0;const r=parseFloat(t[1]),n=t[2];return r*(hw[n]||1)}function gf(e,t,r){return n=>e.test(n)||!t.test(n)&&r.test(n)}function fw(e,t){const r=df.test(e),n=hf.test(e),o=df.test(t),i=hf.test(t);return r&&o?!n&&i?1:n&&!i?-1:e.localeCompare(t):r?1:o?-1:null}const gw=Ge((e,t)=>{const r=fw(e,t);if(r!==null)return r;const n=ja(e)||Ga(e),o=cf(e)||uf(e),i=ja(t)||Ga(t),s=cf(t)||uf(t);if(n&&s)return-1;if(o&&i)return 1;const a=ff(e),l=ff(t);return a===no&&l===no?e.localeCompare(t):a===no?1:l===no?-1:a!==l?a>l?o?-1:1:o?1:-1:e.localeCompare(t)});function pf(e){return e.sort(([t],[r])=>gw(t,r))}function mf(e){const t=[],r=[],n={};for(const[s,a]of Object.entries(e))s.startsWith("@media")?t.push([s,a]):s.startsWith("@container")?r.push([s,a]):$e(a)?n[s]=mf(a):n[s]=a;const o=pf(t),i=pf(r);return{...n,...Object.fromEntries(o),...Object.fromEntries(i)}}const vf=/\s*!(important)?/i,pw=Ge(e=>at(e)?vf.test(e):!1),mw=Ge(e=>at(e)?e.replace(vf,"").trim():e);function bf(e){const{transform:t,conditions:r,normalize:n}=e,o=yw(e);return Ge(function(...s){const a=o(...s),l=n(a),c=Pi();return Ct(l,(u,d)=>{const g=pw(u);if(u==null)return;const[f,...p]=r.sort(d).map(r.resolve);g&&(u=mw(u));let m=t(f,u)??ae;m=Ct(m,v=>at(v)&&g?`${v} !important`:v,{getKey:v=>r.expandAtRule(v)}),vw(c,p.flat(),m)}),mf(c)})}function vw(e,t,r){let n=e;for(const o of t)o&&(n[o]||(n[o]=Pi()),n=n[o]);dn(n,r)}function bw(...e){return e.filter(t=>{if(!$e(t))return!1;const r=In(t);return Object.keys(r).length>0})}function yw(e){function t(r){const n=bw(...r);return n.length===1?n:n.map(o=>e.normalize(o))}return Ge(function(...n){return dn({},...t(n))})}const yf=e=>({base:ae,variants:ae,defaultVariants:ae,compoundVariants:[],...e});function xw(e){const{css:t,conditions:r,normalize:n,layers:o}=e;function i(a={}){const l=yf(a),{base:c,defaultVariants:u,compoundVariants:d}=l,g=dt(l.variants,(y,S)=>[y,dt(S,(b,O)=>[b,n(O)])]),f=bf({conditions:r,normalize:n,transform(y,S){return g[y]?.[S]}}),p=(y={})=>{const S=n({...u,...In(y)});let b={...c};dn(b,f(S));const O=s(d,S);return o.wrap("recipes",t(b,O))},m=Object.keys(g),v=y=>{const S=qh(y,["recipe"]),[b,O]=qr(S,m),T=m.includes("colorPalette"),V=m.includes("orientation");return T||(b.colorPalette=y.colorPalette||u.colorPalette),V&&(O.orientation=y.orientation),[b,O]},x=dt(g,(y,S)=>[y,Object.keys(S)]);return Object.assign(y=>t(p(y)),{className:a.className,__cva__:!0,variantMap:x,variantKeys:m,raw:p,config:a,splitVariantProps:v,merge(y){return i(Sw(e)(this,y))}})}function s(a,l){let c=ae;return a.forEach(u=>{Object.entries(u).every(([g,f])=>g==="css"?!0:(Array.isArray(f)?f:[f]).some(m=>l[g]===m))&&(c=t(c,u.css))}),c}return i}function Sw(e){const{css:t}=e;return function(n,o){const i=yf(o.config),s=ws(n.variantKeys,Object.keys(o.variants)),a=t(n.base,i.base),l=Object.fromEntries(s.map(g=>[g,t(n.config.variants[g],i.variants[g])])),c=dn(n.config.defaultVariants,i.defaultVariants),u=[...n.compoundVariants,...i.compoundVariants];return{className:Qe(n.className,o.className),base:a,variants:l,defaultVariants:c,compoundVariants:u}}}const Cw={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},xf={reset:0,base:1,tokens:2,recipes:3};function kw(e){const t=e.layers??Cw,n=Object.values(t).sort((o,i)=>xf[o]-xf[i]);return{names:n,atRule:`@layer ${n.join(", ")};`,wrap(o,i){return e.disableLayers?i:{[`@layer ${t[o]}`]:i}}}}function ww(e){const{utility:t,normalize:r}=e,{hasShorthand:n,resolveShorthand:o}=t;return function(i){return Ct(i,r,{stop:s=>Array.isArray(s),getKey:n?o:void 0})}}function Ew(e){const{preflight:t}=e;if(!t)return{};const{scope:r="",level:n="parent"}=$e(t)?t:{};let o="";r&&n==="parent"?o=`${r} `:r&&n==="element"&&(o=`&${r}`);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={[r||"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(n==="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 Ow(e){const{conditions:t,isValidProperty:r}=e;return function(o){return Ct(o,i=>i,{getKey:(i,s)=>$e(s)&&!t.has(i)&&!r(i)?Tw(i).map(a=>{const l=a.startsWith("&")?a.slice(1):a;return Iw(l)?`${l} &`:`&${l}`}).join(", "):i})}}function Iw(e){const t=e.toLowerCase();return t.startsWith(":host-context")||t.startsWith(":host")||t.startsWith("::slotted")}function Tw(e){const t=[];let r=0,n="",o=!1;for(let i=0;i{const t=o=>({base:e.base?.[o]??ae,variants:Pi(),defaultVariants:e.defaultVariants??ae,compoundVariants:e.compoundVariants?Nw(e.compoundVariants,o):aw}),n=(e.slots??[]).map(o=>[o,t(o)]);for(const[o,i]of Object.entries(e.variants??{}))for(const[s,a]of Object.entries(i))n.forEach(([l,c])=>{var u;(u=c.variants)[o]??(u[o]={}),c.variants[o][s]=a[l]??ae});return Object.fromEntries(n)},Nw=(e,t)=>e.filter(r=>r.css[t]).map(r=>({...r,css:r.css[t]}));function Aw(e){const{cva:t}=e;return function(n=ae){const o=Object.entries(Pw(n)).map(([d,g])=>[d,t(g)]);function i(d){const g=o.map(([f,p])=>[f,p(d)]);return Object.fromEntries(g)}const s=n.variants??ae,a=Object.keys(s);function l(d){const g=qh(d,["recipe"]),[f,p]=qr(g,a),m=a.includes("colorPalette"),v=a.includes("orientation");return m||(f.colorPalette=d.colorPalette||n.defaultVariants?.colorPalette),v&&(p.orientation=d.orientation),[f,p]}const c=dt(s,(d,g)=>[d,Object.keys(g)]);let u={};return n.className&&(u=Object.fromEntries(n.slots.map(d=>[d,`${n.className}__${d}`]))),Object.assign(i,{variantMap:c,variantKeys:a,splitVariantProps:l,classNameMap:u})}}const Vw=()=>e=>Array.from(new Set(e)),Rw=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,_w=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},Sf=e=>(e+"").replace(Rw,_w),Cf=(e,t)=>{let r="",n=0,o="char",i="",s="";const a=[];for(;n{let t=0;const r=["("];for(;t{r instanceof Map?t[n]=Object.fromEntries(r):t[n]=r}),t}const wf=/({([^}]*)})/g,Fw=/[{}]/g,zw=/\w+\.\w+/,Ef=e=>{if(!at(e))return[];const t=e.match(wf);return t?t.map(r=>r.replace(Fw,"").trim()):[]},Dw=e=>wf.test(e);function Of(e){if(!e.extensions?.references)return e.extensions?.cssVar?.ref??e.value;const t=e.extensions.references??{};let r=e.value;const n=Object.keys(t);for(let o=0;ot.map(If).join(` ${e} `).replace(Mw,""),Tf=(...e)=>`calc(${Ni("+",...e)})`,Pf=(...e)=>`calc(${Ni("-",...e)})`,qa=(...e)=>`calc(${Ni("*",...e)})`,Nf=(...e)=>`calc(${Ni("/",...e)})`,Af=e=>{const t=If(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:qa(t,-1)},pn=Object.assign(e=>({add:(...t)=>pn(Tf(e,...t)),subtract:(...t)=>pn(Pf(e,...t)),multiply:(...t)=>pn(qa(e,...t)),divide:(...t)=>pn(Nf(e,...t)),negate:()=>pn(Af(e)),toString:()=>e.toString()}),{add:Tf,subtract:Pf,multiply:qa,divide:Nf,negate:Af}),$w={enforce:"pre",transform(e){const{prefix:t,allTokens:r,formatCssVar:n,formatTokenName:o,registerToken:i}=e;r.filter(({extensions:a})=>a.category==="spacing").forEach(a=>{const l=a.path.slice(),c=n(l,t);if(at(a.value)&&a.value==="0rem")return;const u=[...a.path],d=u[u.length-1];d!=null&&(u[u.length-1]=`-${d}`);const g={...a,value:pn.negate(c.ref),name:o(u),path:u,extensions:{...a.extensions,negative:!0,prop:`-${a.extensions.prop}`,originalPath:l}};i(g)})}},Ww=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),Bw=[$w,{enforce:"post",transform(e){const{allTokens:t,registerToken:r,formatTokenName:n}=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(n(c),c)}),l.roots.forEach(c=>{const u=n(c),d=s.get(u)||[];if(d.push(a),s.set(u,d),a.extensions.default&&c.length===1){const g=l.keys[0]?.filter(Boolean);if(!g.length)return;const f=c.concat(g);i.set(n(f),[])}}))}),i.forEach(a=>{const l=["colors","colorPalette",...a].filter(Boolean),c=n(l),u=n(l.slice(1));r({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(r=>Ww.has(r.extensions.category)&&!r.extensions.negative).forEach(r=>{Object.assign(r.extensions,{pixelValue:of(r.value)})})}},{enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}}],Hw=[{type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:r,formatCssVar:n}=t,{negative:o,originalPath:i}=e.extensions,s=o?i:e.path;return{cssVar:n(s.filter(Boolean),r)}}},{enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:r,formatCssVar:n}=t,o=Ef(e.value);return o.length&&o.forEach(i=>{const s=n(i.split("."),r);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 r=e.path.slice();if(r.pop(),r.shift(),r.length===0){const a=[...e.path];a.shift(),r=a}if(r.length===0)return{};const n=r.reduce((a,l,c,u)=>{const d=u.slice(0,c+1);return a.push(d),a},[]),o=r[0],i=t.formatTokenName(r),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:n,keys:s}}}}],Vf=e=>$e(e)&&Object.prototype.hasOwnProperty.call(e,"value");function Uw(e){return e?{breakpoints:Kh(e,t=>({value:t})),sizes:dt(e,(t,r)=>[`breakpoint-${t}`,{value:r}])}:{breakpoints:{},sizes:{}}}function jw(e){const{prefix:t="",tokens:r={},semanticTokens:n={},breakpoints:o={}}=e,i=F=>F.join("."),s=(F,_)=>Qh(F.join("-"),{prefix:_}),a=[],l=new Map,c=new Map,u=new Map,d=new Map,g=new Map,f=new Map,p=new Map,m=new Map,v=[];function x(F,_){a.push(F),l.set(F.name,F),_&&m.forEach(K=>{K.enforce===_&&q(K,F)})}const k=Uw(o),y=In({...r,breakpoints:k.breakpoints,sizes:{...r.sizes,...k.sizes}});function S(){Ct(y,(F,_)=>{const K=_.includes("DEFAULT");_=Rf(_);const te=_[0],fe=i(_),Ve=at(F)?{value:F}:F,Ut={value:Ve.value,originalValue:Ve.value,name:fe,path:_,extensions:{condition:"base",originalPath:_,category:te,prop:i(_.slice(1))}};K&&(Ut.extensions.default=!0),x(Ut)},{stop:Vf}),Ct(n,(F,_)=>{const K=_.includes("DEFAULT");_=_f(Rf(_));const te=_[0],fe=i(_),Ve=at(F.value)?{value:{base:F.value}}:F,Ut={value:Ve.value.base||"",originalValue:Ve.value.base||"",name:fe,path:_,extensions:{originalPath:_,category:te,conditions:Ve.value,condition:"base",prop:i(_.slice(1))}};K&&(Ut.extensions.default=!0),x(Ut)},{stop:Vf})}function b(F){return l.get(F)}function O(F){const{condition:_}=F.extensions;_&&(c.has(_)||c.set(_,new Set),c.get(_).add(F))}function T(F){const{category:_,prop:K}=F.extensions;_&&(p.has(_)||p.set(_,new Map),p.get(_).set(K,F))}function V(F){const{condition:_,negative:K,virtual:te,cssVar:fe}=F.extensions;K||te||!_||!fe||(u.has(_)||u.set(_,new Map),u.get(_).set(fe.var,F.value))}function E(F){const{category:_,prop:K,cssVar:te,negative:fe}=F.extensions;if(!_)return;f.has(_)||f.set(_,new Map);const Ve=fe?F.extensions.conditions?F.originalValue:F.value:te.ref;f.get(_).set(K,Ve),g.set([_,K].join("."),Ve)}function P(F){const{colorPalette:_,virtual:K,default:te}=F.extensions;!_||K||_.roots.forEach(fe=>{const Ve=i(fe);d.has(Ve)||d.set(Ve,new Map);const Ut=qw([...F.path],[...fe]),rs=i(Ut),Al=b(rs);if(!Al||!Al.extensions.cssVar)return;const{var:C5}=Al.extensions.cssVar;if(d.get(Ve).set(C5,F.extensions.cssVar.ref),te&&fe.length===1){const k5=i(["colors","colorPalette"]),lm=b(k5);if(!lm)return;const w5=i(F.path),cm=b(w5);if(!cm)return;const um=_.keys[0]?.filter(Boolean);if(!um.length)return;const Vl=i(fe.concat(um));d.has(Vl)||d.set(Vl,new Map),d.get(Vl).set(lm.extensions.cssVar.var,cm.extensions.cssVar.ref)}})}let N={};function w(){a.forEach(F=>{O(F),T(F),V(F),E(F),P(F)}),N=kf(f)}const A=(F,_)=>{if(!F||typeof F!="string")return{invalid:!0,value:F};const[K,te]=F.split("/");if(!K||!te)return{invalid:!0,value:K};const fe=_(K),Ve=b(`opacity.${te}`)?.value;if(!Ve&&isNaN(Number(te)))return{invalid:!0,value:K};const Ut=Ve?Number(Ve)*100+"%":`${te}%`,rs=fe??K;return{invalid:!1,color:rs,value:`color-mix(in srgb, ${rs} ${Ut}, transparent)`}},L=Ge((F,_)=>g.get(F)??_),z=Ge(F=>N[F]||null),U=Ge(F=>Cf(F,_=>{if(!_)return;if(_.includes("/")){const te=A(_,fe=>L(fe));if(te.invalid)throw new Error("Invalid color mix at "+_+": "+te.value);return te.value}const K=L(_);return K||(zw.test(_)?Sf(_):_)})),Z={prefix:t,allTokens:a,tokenMap:l,registerToken:x,getByName:b,formatTokenName:i,formatCssVar:s,flatMap:g,cssVarMap:u,categoryMap:p,colorPaletteMap:d,getVar:L,getCategoryValues:z,expandReferenceInValue:U};function ne(...F){F.forEach(_=>{m.set(_.name,_)})}function H(...F){v.push(...F)}function q(F,_){if(_.extensions.references||ks(F.match)&&!F.match(_))return;const te=(fe=>F.transform(fe,Z))(_);switch(!0){case F.type==="extensions":Object.assign(_.extensions,te);break;case F.type==="value":_.value=te;break;default:_[F.type]=te;break}}function Q(F){v.forEach(_=>{_.enforce===F&&_.transform(Z)})}function ye(F){m.forEach(_=>{_.enforce===F&&a.forEach(K=>{q(_,K)})})}function it(){a.forEach(F=>{const _=Gw(F);!_||_.length===0||_.forEach(K=>{x(K)})})}function It(F){const _=Ef(F),K=[];for(let te=0;te<_.length;te++){const fe=b(_[te]);fe&&K.push(fe)}return K}function Ht(){a.forEach(F=>{if(!Dw(F.value))return;const _=It(F.value);F.extensions.references=_.reduce((K,te)=>(K[te.name]=te,K),{})})}function Nl(){a.forEach(F=>{Of(F)})}function S5(){Q("pre"),ye("pre"),it(),Ht(),Nl(),Q("post"),ye("post"),w()}return S(),ne(...Hw),H(...Bw),S5(),Z}function Rf(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function _f(e){return e.filter(t=>t!=="base")}function Gw(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,r=[];return Ct(t,(n,o)=>{const i=_f(o);if(!i.length)return;const s={...e,value:n,extensions:{...e.extensions,condition:i.join(":")}};r.push(s)}),r}function qw(e,t){const r=e.findIndex((n,o)=>t.every((i,s)=>e[o+s]===i));return r===-1||(e.splice(r,t.length),e.splice(r,0,"colorPalette")),e}Vw()(["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 $5(e){return e}function Kw(e){return dt(e,(t,r)=>[t,r])}function Yw(e){const t=Kw(e.config),r=e.tokens,n=new Map,o=new Map;function i(V,E){t[V]=E,s(V,E)}const s=(V,E)=>{const P=m(E);P&&(o.set(V,P),d(V,E))},a=()=>{for(const[V,E]of Object.entries(t))E&&s(V,E)},l=()=>{for(const[V,E]of Object.entries(t)){const{shorthand:P}=E??{};if(!P)continue;(Array.isArray(P)?P:[P]).forEach(w=>n.set(w,V))}},c=()=>{const V=kf(r.colorPaletteMap);i("colorPalette",{values:Object.keys(V),transform:Ge(E=>V[E])})},u=new Map,d=(V,E)=>{if(!E)return;const P=m(E,w=>`type:Tokens["${w}"]`);if(typeof P=="object"&&P.type){u.set(V,new Set([`type:${P.type}`]));return}if(P){const w=new Set(Object.keys(P));u.set(V,w)}const N=u.get(V)??new Set;E.property&&u.set(V,N.add(`CssProperties["${E.property}"]`))},g=()=>{for(const[V,E]of Object.entries(t))E&&d(V,E)},f=(V,E)=>{const P=u.get(V)??new Set;u.set(V,new Set([...P,...E]))},p=()=>{const V=new Map;for(const[E,P]of u.entries()){if(P.size===0){V.set(E,["string"]);continue}const N=Array.from(P).map(w=>w.startsWith("CssProperties")?w:w.startsWith("type:")?w.replace("type:",""):JSON.stringify(w));V.set(E,N)}return V},m=(V,E)=>{const{values:P}=V,N=w=>{const A=E?.(w);return A?{[A]:A}:void 0};if(at(P))return N?.(P)??r.getCategoryValues(P)??ae;if(Array.isArray(P)){const w={};for(let A=0;A({[V]:V.startsWith("--")?r.getVar(E,E):E})),x=Object.assign(r.getVar,{raw:V=>r.getByName(V)}),k=Ge((V,E)=>{const P=b(V);at(E)&&!E.includes("_EMO_")&&(E=r.expandReferenceInValue(E));const N=t[P];if(!N)return v(P,E);const w=o.get(P)?.[E];if(!N.transform)return v(V,w??E);const A=L=>Ik(L,x);return N.transform(w??E,{raw:E,token:x,utils:{colorMix:A}})});function y(){l(),c(),a(),g()}y();const S=n.size>0,b=Ge(V=>n.get(V)??V);return{keys:()=>[...Array.from(n.keys()),...Object.keys(t)],hasShorthand:S,transform:k,shorthands:n,resolveShorthand:b,register:i,getTypes:p,addPropertyType:f}}function Lf(...e){const t=Yh(...e),{theme:r={},utilities:n={},globalCss:o={},cssVarsRoot:i=":where(:root, :host)",cssVarsPrefix:s="chakra",preflight:a}=t,l=kw(t),c=jw({breakpoints:r.breakpoints,tokens:r.tokens,semanticTokens:r.semanticTokens,prefix:s}),u=rw(r.breakpoints??ae),d=sw({conditions:t.conditions??ae,breakpoints:u}),g=Yw({config:n,tokens:c});function f(){const{textStyles:H,layerStyles:q,animationStyles:Q}=r,ye=In({textStyle:H,layerStyle:q,animationStyle:Q});for(const[it,It]of Object.entries(ye)){const Ht=ef(It??ae,Ff);g.register(it,{values:Object.keys(Ht),transform(Nl){return y(Ht[Nl])}})}}f(),g.addPropertyType("animationName",Object.keys(r.keyframes??ae));const p=new Set(["css",...g.keys(),...d.keys()]),m=Ge(H=>p.has(H)||Qk(H)),v=H=>{if(Array.isArray(H)){const q=Pi();for(let Q=0;Q[`@keyframes ${Q}`,ye]),q=Object.assign({},H,y(k(o)));return l.wrap("base",q)}function V(H){return qr(H,m)}function E(){const H=Ew({preflight:a});return l.wrap("reset",H)}const P=Xw(c),N=(H,q)=>P.get(H)?.value||q;N.var=(H,q)=>P.get(H)?.variable||q;function w(H,q){return r.recipes?.[H]??q}function A(H,q){return r.slotRecipes?.[H]??q}function L(H){return Object.hasOwnProperty.call(r.recipes??ae,H)}function z(H){return Object.hasOwnProperty.call(r.slotRecipes??ae,H)}function U(H){return L(H)||z(H)}const Z=[E(),T(),O()],ne={layerStyles:Ka(r.layerStyles??ae),textStyles:Ka(r.textStyles??ae),animationStyles:Ka(r.animationStyles??ae),tokens:zf(c,Object.keys(r.tokens??ae),(H,q)=>!H.extensions.conditions&&!q.includes("colorPalette")),semanticTokens:zf(c,Object.keys(r.semanticTokens??ae),H=>!!H.extensions.conditions),keyframes:Df(r.keyframes??ae),breakpoints:Df(r.breakpoints??ae)};return{$$chakra:!0,_config:t,_global:Z,breakpoints:u,tokens:c,conditions:d,utility:g,token:N,properties:p,layers:l,isValidProperty:m,splitCssProps:V,normalizeValue:v,getTokenCss:O,getGlobalCss:T,getPreflightCss:E,css:y,cva:S,sva:b,getRecipe:w,getSlotRecipe:A,hasRecipe:U,isRecipe:L,isSlotRecipe:z,query:ne}}function Xw(e){const t=new Map;return e.allTokens.forEach(r=>{const{cssVar:n,virtual:o,conditions:i}=r.extensions,s=i||o?n.ref:r.value;t.set(r.name,{value:s,variable:n.ref})}),t}const Ff=e=>$e(e)&&"value"in e,Ka=e=>({list(){return Object.keys(ef(e,Ff))},search(t){return this.list().filter(r=>r.includes(t))}}),zf=(e,t,r)=>({categoryKeys:t,list(n){const o=e.categoryMap.get(n),i=o?[...o.entries()]:[],s=[];for(let a=0;ai.includes(o))}}),Df=e=>({list(){return Object.keys(e)},search(t){return this.list().filter(r=>r.includes(t))}}),Qw={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Ya="var(--chakra-empty,/*!*/ /*!*/)",Jw=Ak({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":Ya,"--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}`,Ya])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,Ya])),"--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"}}),Zw=_k({"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:{}}}),eE=Rk({"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"}}}),Xa=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","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"var(--outline-shadow, var(--outline-shadow-legacy))"},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"}}),tE=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","--outline-color-legacy":"colors.colorPalette.muted","--outline-color":"colors.colorPalette.border",borderColor:"var(--outline-color, var(--outline-color-legacy))",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"}}),Ne=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:rE,defaultVariants:nE}=Xa,oE=Se({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:rE,defaultVariants:nE}),Mf=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"}}),iE=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"}}}}),sE=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"}}),aE=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"}}),be=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"}}),lE=Se({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:be.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"}}),cE=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"}}),uE=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"}}),dE=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:{}}}}),Ae=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"}}),hE=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"}}),fE=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}}),gE=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"}}}),pE=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"}}),mE=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"}}),vE={badge:Xa,button:tE,code:oE,container:iE,heading:sE,input:be,inputAddon:lE,kbd:cE,link:uE,mark:dE,separator:hE,skeleton:fE,skipNavLink:gE,spinner:pE,textarea:mE,icon:aE,checkmark:Ne,radiomark:Ae,colorSwatch:Mf},bE=Ba.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}"}},border:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}}},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}"}},border:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}}},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}"}},border:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}}},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}"}},border:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}}},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}"}},border:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},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}"}},border:{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}"}},border:{value:{_light:"{colors.teal.500}",_dark:"{colors.teal.400}"}}},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}"}},border:{value:{_light:"{colors.purple.500}",_dark:"{colors.purple.400}"}}},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}"}},border:{value:{_light:"{colors.pink.500}",_dark:"{colors.pink.400}"}}},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}"}},border:{value:{_light:"{colors.cyan.500}",_dark:"{colors.cyan.400}"}}}}),yE=Ba.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),xE=Ba.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}"}}}),SE=Wu.extendWith("itemBody"),CE=$("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),kE=$("alert").parts("title","description","root","indicator","content"),wE=$("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),EE=$("blockquote").parts("root","icon","content","caption"),OE=$("card").parts("root","header","body","footer","title","description"),IE=$("checkbox-card",["root","control","label","description","addon","indicator","content"]),TE=$("data-list").parts("root","item","itemLabel","itemValue"),PE=va.extendWith("header","body","footer","backdrop"),NE=va.extendWith("header","body","footer","backdrop"),AE=Pd.extendWith("textarea"),VE=$("empty-state",["root","content","indicator","title","description"]),RE=Ad.extendWith("requiredIndicator"),_E=Rd.extendWith("content"),LE=_d.extendWith("itemContent","dropzoneContent","fileText"),FE=$("list").parts("root","item","indicator"),zE=Gd.extendWith("itemCommand"),DE=$("select").parts("root","field","indicator"),ME=uh.extendWith("header","body","footer"),$f=Na.extendWith("itemAddon","itemIndicator"),$E=$f.extendWith("itemContent","itemDescription"),WE=hh.extendWith("itemIndicator"),BE=Th.extendWith("indicatorGroup"),HE=xS.extendWith("indicatorGroup","empty"),UE=zh.extendWith("markerIndicator"),jE=$("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),GE=$("status").parts("root","indicator"),qE=$("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),KE=Dh.extendWith("indicator"),YE=$("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),XE=$("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),QE=$("tabs").parts("root","trigger","list","content","contentGroup","indicator"),JE=$("tag").parts("root","label","closeTrigger","startElement","endElement"),ZE=$("timeline").parts("root","item","content","separator","indicator","connector","title","description"),eO=W1.extendWith("channelText"),tO=$("code-block",["root","content","title","header","footer","control","overlay","code","codeText","copyTrigger","copyIndicator","collapseTrigger","collapseIndicator","collapseText"]),rO=Du.extendWith("resizeTriggerSeparator","resizeTriggerIndicator");rd.extendWith("valueText");const nO=KS,oO=B({className:"chakra-accordion",slots:SE.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"}}),iO=B({className:"chakra-action-bar",slots:CE.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"}}}),sO=B({slots:kE.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)","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",shadowColor:"var(--outline-shadow, var(--outline-shadow-legacy))"},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}}),aO=B({slots:Uu.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","--outline-shadow-legacy":"colors.colorPalette.muted","--outline-shadow":"colors.colorPalette.border",borderColor:"var(--outline-shadow, var(--outline-shadow-legacy))"}}},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"}}),lO=B({className:"chakra-blockquote",slots:EE.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"}}),cO=B({className:"chakra-breadcrumb",slots:wE.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"}}),uO=B({className:"chakra-card",slots:OE.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"}}),dO=B({className:"carousel",slots:V1.keys(),base:{root:{position:"relative",display:"flex",gap:"2",_horizontal:{flexDirection:"column"},_vertical:{flexDirection:"row"}},item:{_horizontal:{width:"100%"},_vertical:{height:"100%"}},control:{display:"flex",alignItems:"center",_horizontal:{flexDirection:"row",width:"100%"},_vertical:{flexDirection:"column",height:"100%"}},indicatorGroup:{display:"flex",justifyContent:"center",gap:"3",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},indicator:{width:"2.5",height:"2.5",borderRadius:"full",bg:"colorPalette.subtle",cursor:"button",_current:{bg:"colorPalette.solid"}}},defaultVariants:{}}),hO=B({slots:$1.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:Ne.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:Ne.variants?.size?.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:Ne.variants?.size?.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:Ne.variants?.size?.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:Ne.variants?.size?.lg}},variant:{outline:{control:Ne.variants?.variant?.outline},solid:{control:Ne.variants?.variant?.solid},subtle:{control:Ne.variants?.variant?.subtle}}},defaultVariants:{variant:"solid",size:"md"}}),fO=B({slots:IE.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:Ne.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:Ne.variants?.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Ne.variants?.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:Ne.variants?.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:Ne.variants?.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:Ne.variants?.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:Ne.variants?.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:Ne.variants?.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"}}),gO=B({slots:tO.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",overflowX:"auto",overflowY:"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",paddingInlineEnd:"var(--code-block-padding)","--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",top:"0",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",whiteSpace:"nowrap",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"}}),pO=B({slots:Zc.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate","&[data-has-collapsed-size]":{animationName:"expand-height"}},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate","&[data-has-collapsed-size]":{animationName:"collapse-height"}}}}}),mO=B({className:"colorPicker",slots:eO.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:{...Mf.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:{...be.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:be.variants?.size?.["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:be.variants?.size?.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:be.variants?.size?.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:be.variants?.size?.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:be.variants?.size?.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:be.variants?.size?.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:be.variants?.size?.["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:be.variants?.variant?.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:be.variants?.variant?.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),vO=B({className:"chakra-combobox",slots:HE.keys(),base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",userSelect:"none",textStyle:"sm",_disabled:{layerStyle:"disabled"}},control:{pos:"relative","--padding-factor":"1","--combobox-input-padding-end":"var(--combobox-input-padding-x)","&:has([data-part=trigger]), &:has([data-part=clear-trigger])":{"--combobox-input-padding-end":"calc(var(--combobox-input-height) * var(--padding-factor))"},"&:has([data-part=trigger]):has([data-part=clear-trigger]:not([hidden]))":{"--padding-factor":"1.5"}},input:{display:"flex",alignItems:"center",justifyContent:"space-between",background:"bg.panel",width:"full",minH:"var(--combobox-input-height)",ps:"var(--combobox-input-padding-x)",pe:"var(--combobox-input-padding-end)","--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"},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"}}),bO=B({slots:TE.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"}}),yO=B({slots:PE.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"}}),xO=B({slots:NE.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"}}),Wf=hn({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),SO=B({slots:AE.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...Wf,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"moderate",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...Wf,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"}}),CO=B({slots:VE.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"}}),kO=B({className:"chakra-field",slots:RE.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"}}),wO=B({className:"fieldset",slots:_E.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"}}),EO=B({className:"chakra-file-upload",slots:LE.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:{}}),OO=B({className:"chakra-hover-card",slots:Ld.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",borderLeftWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),IO=B({className:"chakra-list",slots:FE.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"}}),TO=B({className:"chakra-listbox",slots:nO.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"}}),PO=B({className:"chakra-menu",slots:zE.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"}}),Ai=B({className:"chakra-select",slots:BE.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"}}),NO=B({className:"chakra-native-select",slots:DE.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:Ai.variants?.variant.outline.trigger},subtle:{field:Ai.variants?.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:Ai.defaultVariants}),Bf=hn({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"}}),AO=B({className:"chakra-number-input",slots:nh.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...be.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:{...Bf,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...Bf,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:be.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:be.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:be.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:be.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:dt(be.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:Hf,defaultVariants:VO}=be,RO=B({className:"chakra-pin-input",slots:ch.keys(),base:{input:{...be.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:dt(Hf.size,(e,t)=>[e,{input:{...t,px:"1"}}]),variant:dt(Hf.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:VO}),_O=B({className:"chakra-popover",slots:ME.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",borderLeftWidth:"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"}}),LO=B({slots:Pa.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"}}),FO=B({className:"chakra-progress-circle",slots:Pa.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"}}),zO=B({slots:dh.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"}}),DO=B({className:"chakra-radio-card",slots:$E.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:Ae.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:Ae.variants?.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:Ae.variants?.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:Ae.variants?.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:Ae.variants?.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:Ae.variants?.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:Ae.variants?.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:Ae.variants?.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"}}),MO=B({className:"chakra-radio-group",slots:$f.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:Ae.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:Ae.variants?.variant?.outline},subtle:{itemControl:Ae.variants?.variant?.subtle},solid:{itemControl:Ae.variants?.variant?.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:Ae.variants?.size?.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:Ae.variants?.size?.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:Ae.variants?.size?.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:Ae.variants?.size?.lg}}},defaultVariants:{size:"md",variant:"solid"}}),$O=B({className:"chakra-rating-group",slots:WE.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"}}),WO=B({className:"chakra-scroll-area",slots:fh.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"}}),BO=B({className:"chakra-segment-group",slots:gh.keys(),base:{root:{"--segment-radius":"radii.l2","--segment-indicator-bg":{_light:"colors.bg",_dark:"colors.bg.emphasized"},"--segment-indicator-shadow":"shadows.sm",borderRadius:"var(--segment-radius)",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:"var(--segment-indicator-shadow)",pos:"absolute",bg:"var(--segment-indicator-bg)",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"}}),HO=B({className:"chakra-slider",slots:UE.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"}}),UO=B({slots:rO.keys(),className:"splitter",base:{resizeTrigger:{"--splitter-border-color":"colors.border","--splitter-thumb-color":"colors.bg","--splitter-thumb-size":"sizes.2","--splitter-thumb-inset":"calc(var(--splitter-thumb-size) * -0.5)","--splitter-border-size":"1px","--splitter-handle-size":"sizes.6",outline:"0",display:"grid",placeItems:"center",position:"relative",_focus:{"--splitter-border-color":"colors.border.emphasized","--splitter-thumb-color":"colors.colorPalette.subtle"},_dragging:{"--splitter-thumb-color":"colors.colorPalette.focusRing"},_horizontal:{minWidth:"var(--splitter-thumb-size)",marginInline:"var(--splitter-thumb-inset)"},_vertical:{minHeight:"var(--splitter-thumb-size)",marginBlock:"var(--splitter-thumb-inset)"}},resizeTriggerSeparator:{position:"absolute",bg:"var(--splitter-border-color)","[data-part='resize-trigger'][data-orientation=horizontal] &":{insetInlineEnd:"calc(var(--splitter-thumb-size) * 0.5)",insetBlock:"0",insetInlineStart:"auto",w:"var(--splitter-border-size)"},"[data-part='resize-trigger'][data-orientation=vertical] &":{insetBlockEnd:"calc(var(--splitter-thumb-size) * 0.5)",insetInline:"0",insetBlockStart:"auto",h:"var(--splitter-border-size)"}},resizeTriggerIndicator:{position:"relative",rounded:"full",bg:"var(--splitter-thumb-color)",shadow:"xs",borderWidth:"1px",zIndex:"1","[data-part='resize-trigger'][data-orientation=horizontal] &":{w:"full",h:"var(--splitter-handle-size)"},"[data-part='resize-trigger'][data-orientation=vertical] &":{w:"var(--splitter-handle-size)",h:"full"},"[data-part='resize-trigger'][data-focus]:focus-visible &":{outlineWidth:"2px",outlineColor:"colorPalette.focusRing",outlineStyle:"solid"},"[data-part='resize-trigger'][data-disabled] &":{visibility:"hidden"}}}}),jO=B({className:"chakra-stat",slots:jE.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"}}),GO=B({className:"chakra-status",slots:GE.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"}}),qO=B({className:"chakra-steps",slots:qE.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"}}),KO=B({slots:KE.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"}}),YO=B({className:"chakra-table",slots:YE.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}"},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"}}),XO=B({slots:QE.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate",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-trigger-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-trigger-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}}),Vi=Xa.variants?.variant,QO=B({slots:JE.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:Vi?.subtle},solid:{root:Vi?.solid},outline:{root:Vi?.outline},surface:{root:Vi?.surface}}},defaultVariants:{size:"md",variant:"surface"}}),JO=B({slots:Mh.keys(),className:"tags-input",base:{root:{display:"flex",flexDirection:"column",gap:"1.5",width:"full"},label:{fontWeight:"medium",textStyle:"sm",_disabled:{opacity:"0.5"}},control:{"--focus-color":"colors.colorPalette.focusRing","--error-color":"colors.border.error",minH:"var(--tags-input-height)","--input-height":"var(--tags-input-height)",px:"var(--tags-input-px)",py:"var(--tags-input-py)",gap:"var(--tags-input-gap)",display:"flex",flexWrap:"wrap",alignItems:"center",borderRadius:"l2",pos:"relative",transitionProperty:"border-color, box-shadow",transitionDuration:"normal",_disabled:{opacity:"0.5"},_invalid:{borderColor:"var(--error-color)"}},input:{flex:"1",minWidth:"20",outline:"none",bg:"transparent",color:"fg",px:"calc(var(--tags-input-item-px) / 1.25)",height:"var(--tags-input-item-height)",_readOnly:{display:"none"}},item:{maxWidth:"100%",minWidth:"0"},itemText:{lineClamp:"1",minWidth:"0"},itemInput:{outline:"none",bg:"transparent",minWidth:"2ch",color:"inherit",px:"var(--tags-input-item-px)",height:"var(--tags-input-item-height)"},itemPreview:{height:"var(--tags-input-item-height)",userSelect:"none",display:"inline-flex",alignItems:"center",gap:"1",rounded:"l1",px:"var(--tags-input-item-px)",maxWidth:"100%"},itemDeleteTrigger:{display:"flex",alignItems:"center",justifyContent:"center",flexShrink:"0",boxSize:"calc(var(--tags-input-item-height) / 1.5)",cursor:{base:"button",_disabled:"initial"},me:"-1",opacity:"0.4",_hover:{opacity:"1"},"[data-highlighted] &":{opacity:"1"},_icon:{boxSize:"80%"}},clearTrigger:{display:"flex",alignItems:"center",justifyContent:"center",boxSize:"calc(var(--tags-input-item-height) / 1.5)",cursor:{base:"button",_disabled:"initial"},color:"fg.muted",focusVisibleRing:"inside",focusRingWidth:"2px",rounded:"l1",_icon:{boxSize:"5"}}},variants:{size:{xs:{root:{"--tags-input-height":"sizes.8","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.6","--tags-input-item-px":"spacing.2",textStyle:"xs"}},sm:{root:{"--tags-input-height":"sizes.9","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.6","--tags-input-item-px":"spacing.2",textStyle:"sm"}},md:{root:{"--tags-input-height":"sizes.10","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.7","--tags-input-item-px":"spacing.2",textStyle:"sm"}},lg:{root:{"--tags-input-height":"sizes.11","--tags-input-px":"spacing.1.5","--tags-input-py":"spacing.1","--tags-input-gap":"spacing.1","--tags-input-item-height":"sizes.8","--tags-input-item-px":"spacing.2",textStyle:"md"}}},variant:{outline:{control:{borderWidth:"1px",bg:"bg",_focus:{outlineWidth:"1px",outlineStyle:"solid",outlineColor:"var(--focus-color)",borderColor:"var(--focus-color)",_invalid:{outlineColor:"var(--error-color)",borderColor:"var(--error-color)"}}},itemPreview:{bg:"colorPalette.subtle",_highlighted:{bg:"colorPalette.muted"}}},subtle:{control:{bg:"bg.muted",borderWidth:"1px",borderColor:"transparent",_focus:{outlineWidth:"1px",outlineStyle:"solid",outlineColor:"var(--focus-color)",borderColor:"var(--focus-color)",_invalid:{outlineColor:"var(--error-color)",borderColor:"var(--error-color)"}}},itemPreview:{bg:"bg",borderWidth:"1px",_highlighted:{bg:"colorPalette.subtle",borderColor:"colorPalette.emphasized"}}},flushed:{control:{borderRadius:"0",px:"0",bg:"transparent",borderBottomWidth:"1px",borderBottomColor:"border",_focus:{borderColor:"var(--focus-color)",boxShadow:"0px 1px 0px 0px var(--focus-color)"}},itemPreview:{bg:"colorPalette.subtle",_highlighted:{bg:"colorPalette.muted"}}}}},defaultVariants:{size:"md",variant:"outline"}}),ZO=B({slots:ZE.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{"--timeline-content-gap":"spacing.6",display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"--timeline-content-gap":"0"}},separator:{display:"var(--timeline-separator-display)",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:"var(--timeline-content-gap)",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:{}},showLastSeparator:{true:{item:{_last:{"--timeline-separator-display":"initial"}}},false:{item:{_last:{"--timeline-separator-display":"none"}}}},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",showLastSeparator:!1}}),e2=B({slots:XE.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"}}}}),t2=B({slots:Uh.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",borderLeftWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),Uf=hn({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"}}),jf=hn({flex:"1"}),Gf=hn({_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}),qf=hn({_selected:{layerStyle:"fill.solid"}}),r2=B({slots:Dd.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:Uf,item:Uf,itemText:jf,branchText:jf,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:Gf,item:Gf},solid:{branchControl:qf,item:qf}},animateContent:{true:{branchContent:{_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}}},defaultVariants:{size:"md",variant:"subtle"}}),n2={accordion:oO,actionBar:iO,alert:sO,avatar:aO,blockquote:lO,breadcrumb:cO,card:uO,carousel:dO,checkbox:hO,checkboxCard:fO,codeBlock:gO,collapsible:pO,dataList:bO,dialog:yO,drawer:xO,editable:SO,emptyState:CO,field:kO,fieldset:wO,fileUpload:EO,hoverCard:OO,list:IO,listbox:TO,menu:PO,nativeSelect:NO,numberInput:AO,pinInput:RO,popover:_O,progress:LO,progressCircle:FO,radioCard:DO,radioGroup:MO,ratingGroup:$O,scrollArea:WO,segmentGroup:BO,select:Ai,combobox:vO,slider:HO,splitter:UO,stat:jO,steps:qO,switch:KO,table:YO,tabs:XO,tag:QO,tagsInput:JO,toast:e2,tooltip:t2,status:GO,timeline:ZO,colorPicker:mO,qrCode:zO,treeView:r2},o2=Vk({"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"}}}),i2=ve.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"}}),s2=ve.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"}}),a2=ve.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),l2=ve.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),c2=ve.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"}}}),u2=ve.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"}}),d2=ve.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),h2=ve.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)"}}),f2=ve.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"}}),g2=ve.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"}}),Kf='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',p2=ve.fonts({heading:{value:`Inter, ${Kf}`},body:{value:`Inter, ${Kf}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),m2=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:"var(--collapsed-height, 0)"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"var(--collapsed-height, 0)"}},"expand-width":{from:{width:"var(--collapsed-width, 0)"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"var(--collapsed-width, 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"}}}),v2=ve.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),b2=ve.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),y2=ve.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"}}),Yf=ve.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"}}),x2=ve.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"}}),S2=ve.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"}}),C2=ve.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%"}}),k2=ve.sizes({...x2,...Yf,...C2,...S2}),w2=ve.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}}),E2=Ha({preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:Jw,theme:{breakpoints:Qw,keyframes:m2,tokens:{aspectRatios:s2,animations:i2,blurs:a2,borders:l2,colors:c2,durations:d2,easings:h2,fonts:p2,fontSizes:f2,fontWeights:g2,letterSpacings:v2,lineHeights:b2,radii:y2,spacing:Yf,sizes:k2,zIndex:w2,cursor:u2},semanticTokens:{colors:bE,shadows:xE,radii:yE},recipes:vE,slotRecipes:n2,textStyles:o2,layerStyles:Zw,animationStyles:eE}}),Xf=Yh(Bk,E2);Lf(Xf);function O2(e){const{key:t,recipe:r}=e,n=Io();return C.useMemo(()=>{const o=r||(t!=null?n.getSlotRecipe(t):{});return n.sva(structuredClone(o))},[t,r,n])}const I2=e=>e.charAt(0).toUpperCase()+e.slice(1),oo=e=>{const{key:t,recipe:r}=e,n=I2(t||r.className||"Component"),[o,i]=Gr({name:`${n}StylesContext`,errorMessage:`use${n}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${n}.Root />" `}),[s,a]=Gr({name:`${n}ClassNameContext`,errorMessage:`use${n}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${n}.Root />" `,strict:!1}),[l,c]=Gr({strict:!1,name:`${n}PropsContext`,providerName:`${n}PropsContext`,defaultValue:{}});function u(p){const{unstyled:m,...v}=p,x=O2({key:t,recipe:v.recipe||r}),[k,y]=C.useMemo(()=>x.splitVariantProps(v),[v,x]);return{styles:C.useMemo(()=>m?Pv:x(k),[m,k,x]),classNames:x.classNameMap,props:y}}function d(p,m={}){const{defaultProps:v}=m,x=k=>{const y=c(),S=C.useMemo(()=>On(v,y,k),[y,k]),{styles:b,classNames:O,props:T}=u(S);return h.jsx(o,{value:b,children:h.jsx(s,{value:O,children:h.jsx(p,{...T})})})};return x.displayName=p.displayName||p.name,x}return{StylesProvider:o,ClassNamesProvider:s,PropsProvider:l,usePropsContext:c,useRecipeResult:u,withProvider:(p,m,v)=>{const{defaultProps:x,...k}=v??{},y=he(p,{},k),S=C.forwardRef((b,O)=>{const T=c(),V=C.useMemo(()=>On(x??{},T,b),[T,b]),{styles:E,props:P,classNames:N}=u(V),w=N[m],A=h.jsx(o,{value:E,children:h.jsx(s,{value:N,children:h.jsx(y,{ref:O,...P,css:[E[m],V.css],className:Qe(V.className,w)})})});return v?.wrapElement?.(A,V)??A});return S.displayName=p.displayName||p.name,S},withContext:(p,m,v)=>{const x=he(p,{},v),k=C.forwardRef((y,S)=>{const{unstyled:b,...O}=y,T=i(),E=a()?.[m];return h.jsx(x,{...O,css:[!b&&m?T[m]:void 0,y.css],ref:S,className:Qe(y.className,E)})});return k.displayName=p.displayName||p.name,k},withRootProvider:d,useStyles:i,useClassNames:a}},Qf=he("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"}});Qf.displayName="AbsoluteCenter";const T2=e=>h.jsx(he.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:h.jsx("path",{d:"M20 6 9 17l-5-5"})}),P2=e=>h.jsx(he.svg,{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...e,children:h.jsx("path",{d:"m6 9 6 6 6-6"})}),N2=e=>h.jsx(he.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:h.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"})}),Jf=e=>h.jsx(he.svg,{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",...e,children:h.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"})}),Zf=e=>h.jsx(he.svg,{viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",...e,children:h.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"})}),eg=e=>h.jsx(he.svg,{viewBox:"0 0 24 24",fill:"currentColor",...e,children:h.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"})}),[A2,V2]=Gr({name:"AlertStatusContext",hookName:"useAlertStatusContext",providerName:""}),{withProvider:R2,withContext:Qa,useStyles:_2}=oo({key:"alert"}),L2=R2("div","root",{forwardAsChild:!0,wrapElement(e,t){return h.jsx(A2,{value:{status:t.status||"info"},children:e})}}),tg=Qa("div","title"),F2=Qa("div","description"),z2=Qa("div","content"),D2={info:Zf,warning:Jf,success:N2,error:Jf,neutral:Zf},M2=C.forwardRef(function(t,r){const n=V2(),o=_2(),i=typeof n.status=="string"?D2[n.status]:C.Fragment,{children:s=h.jsx(i,{}),...a}=t;return h.jsx(he.span,{ref:r,...a,css:[o.indicator,t.css],children:s})}),Ri=e=>e?"":void 0,$2=he("div",{base:{display:"inline-flex",gap:"var(--group-gap, 0.5rem)",isolation:"isolate",position:"relative","& [data-group-item]":{_focusVisible:{zIndex:1}}},variants:{orientation:{horizontal:{flexDirection:"row"},vertical:{flexDirection:"column"}},attached:{true:{gap:"0!"}},grow:{true:{display:"flex","& > *":{flex:1}}},stacking:{"first-on-top":{"& > [data-group-item]":{zIndex:"calc(var(--group-count) - var(--group-index))"}},"last-on-top":{"& > [data-group-item]":{zIndex:"var(--group-index)"}}}},compoundVariants:[{orientation:"horizontal",attached:!0,css:{"& > *[data-first]":{borderEndRadius:"0!",marginEnd:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginEnd:"-1px"},"& > *[data-last]":{borderStartRadius:"0!"}}},{orientation:"vertical",attached:!0,css:{"& > *[data-first]":{borderBottomRadius:"0!",marginBottom:"-1px"},"& > *[data-between]":{borderRadius:"0!",marginBottom:"-1px"},"& > *[data-last]":{borderTopRadius:"0!"}}}],defaultVariants:{orientation:"horizontal"}}),rg=C.memo(C.forwardRef(function(t,r){const{align:n="center",justify:o="flex-start",children:i,wrap:s,skip:a,...l}=t,c=C.useMemo(()=>{let u=C.Children.toArray(i).filter(C.isValidElement);if(u.length===1)return u;const d=u.filter(f=>!a?.(f)),g=d.length;return d.length===1?u:u.map(f=>{const p=f.props;if(a?.(f))return f;const m=d.indexOf(f);return C.cloneElement(f,{...p,"data-group-item":"","data-first":Ri(m===0),"data-last":Ri(m===g-1),"data-between":Ri(m>0&&mOn(n,t),[n,t]),i=H2(o),{loading:s,loadingText:a,children:l,spinner:c,spinnerPlacement:u,...d}=i.props;return h.jsx(he.button,{type:"button",ref:r,...d,"data-loading":Ri(s),disabled:s||d.disabled,className:Qe(i.className,o.className),css:[i.styles,o.css],children:!o.asChild&&s?h.jsx(og,{spinner:c,text:a,spinnerPlacement:u,children:l}):l})});Ee.displayName="Button";const kt=C.forwardRef(function(t,r){return h.jsx(Ee,{px:"0",py:"0",_icon:{fontSize:"1.2em"},ref:r,...t})});kt.displayName="IconButton";const tr=D.forwardRef(function(t,r){return h.jsx(kt,{variant:"ghost","aria-label":"Close",ref:r,...t,children:t.children??h.jsx(eg,{})})});tr.displayName="CloseButton";const ig=he("div",{base:{display:"flex",alignItems:"center",justifyContent:"center"},variants:{inline:{true:{display:"inline-flex"}}}});ig.displayName="Center";const{withContext:j2}=Tt({key:"code"}),sg=j2("code");sg.displayName="Code";function G2(e){const{gap:t,direction:r}=e,n={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{"&":Kh(r,o=>n[o])}}function q2(e){return C.Children.toArray(e).filter(t=>C.isValidElement(t))}const Za=C.forwardRef(function(t,r){const{direction:n="column",align:o,justify:i,gap:s="0.5rem",wrap:a,children:l,separator:c,className:u,...d}=t,g=C.useMemo(()=>G2({gap:s,direction:n}),[s,n]),f=C.useMemo(()=>C.isValidElement(c)?q2(l).map((p,m,v)=>{const x=typeof p.key<"u"?p.key:m,k=c,y=C.cloneElement(k,{css:[g,k.props.css]});return h.jsxs(C.Fragment,{children:[p,m===v.length-1?null:y]},x)}):l,[l,c,g]);return h.jsx(he.div,{ref:r,display:"flex",alignItems:o,justifyContent:i,flexDirection:n,flexWrap:a,gap:c?void 0:s,className:Qe("chakra-stack",u),...d,children:f})});Za.displayName="Stack";const{withRootProvider:ag,withContext:wt}=oo({key:"dialog"});ag(AS,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const Or=ag(NS,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});wt(Td,"trigger",{forwardAsChild:!0});const Ir=wt(Cd,"positioner",{forwardAsChild:!0}),Tr=wt(xd,"content",{forwardAsChild:!0});wt(Sd,"description",{forwardAsChild:!0});const Pr=wt(Id,"title",{forwardAsChild:!0}),Nr=wt(yd,"closeTrigger",{forwardAsChild:!0}),Ar=C.forwardRef(function(t,r){const n=Qt();return h.jsx(he.button,{...t,ref:r,onClick:()=>n.setOpen(!1)})}),Vr=wt(bd,"backdrop",{forwardAsChild:!0}),Rr=wt("div","body"),_r=wt("div","footer"),Lr=wt("div","header");function K2(e){const{each:t,fallback:r,children:n}=e;return t?.length===0?r||null:t?.map(n)}const io=C.forwardRef(function(t,r){const{direction:n,align:o,justify:i,wrap:s,basis:a,grow:l,shrink:c,inline:u,...d}=t;return h.jsx(he.div,{ref:r,...d,css:{display:u?"inline-flex":"flex",flexDirection:n,alignItems:o,justifyContent:i,flexWrap:s,flexBasis:a,flexGrow:l,flexShrink:c,...t.css}})});io.displayName="Flex";const{withContext:Y2}=Tt({key:"input"}),lg=Y2(Nd),cg=he("div",{base:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",zIndex:2,color:"fg.muted",height:"full",fontSize:"sm",px:"3"},variants:{placement:{start:{insetInlineStart:"0"},end:{insetInlineEnd:"0"}}}}),{withContext:X2}=Tt({key:"kbd"}),ug=X2("kbd");ug.displayName="Kbd";const{withContext:Q2}=Tt({key:"link"}),dg=Q2("a");dg.displayName="Link";const{withProvider:J2,withContext:hg}=oo({key:"list"}),fg=J2("ul","root",{defaultProps:{role:"list"}}),gg=hg("li","item");hg("span","indicator");const{withProvider:pg,withContext:qe}=oo({key:"select"});pg(tk,"root",{forwardAsChild:!0});const Z2=pg(ZC,"root",{forwardAsChild:!0,defaultProps:{positioning:{sameWidth:!0}}}),eI=qe(Lh,"trigger",{forwardAsChild:!0}),tI=qe(Ih,"positioner",{forwardAsChild:!0}),rI=qe(vh,"content",{forwardAsChild:!0}),nI=qe(Fh,"valueText",{forwardAsChild:!0}),oI=qe(mh,"clearTrigger",{forwardAsChild:!0,defaultProps:{children:h.jsx(eg,{boxSize:"1em"})}});qe(Ch,"itemGroup",{forwardAsChild:!0}),qe(kh,"itemGroupLabel",{forwardAsChild:!0});const iI=qe(Sh,"item",{forwardAsChild:!0});qe(Eh,"itemText",{forwardAsChild:!0});const sI=qe(wh,"itemIndicator",{forwardAsChild:!0,defaultProps:{children:h.jsx(T2,{})}}),aI=qe("div","indicatorGroup"),lI=qe(yh,"indicator",{forwardAsChild:!0,defaultProps:{children:h.jsx(P2,{})}}),cI=qe(bh,"control",{forwardAsChild:!0});qe(Oh,"label",{forwardAsChild:!0});const uI=zC,_i=C.forwardRef(function(t,r){return h.jsx(Za,{align:"center",...t,direction:"row",ref:r})});_i.displayName="HStack";const so=C.forwardRef(function(t,r){return h.jsx(Za,{align:"center",...t,direction:"column",ref:r})});so.displayName="VStack";const{StylesProvider:dI,ClassNamesProvider:hI,useRecipeResult:fI,withContext:Mt}=oo({key:"table"}),mg=C.forwardRef(function({native:t,...r},n){const{styles:o,props:i,classNames:s}=fI(r),a=C.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 h.jsx(hI,{value:s,children:h.jsx(dI,{value:o,children:h.jsx(he.table,{ref:n,...i,css:[a,r.css],className:Qe(s?.root,r.className)})})})}),Li=Mt("tr","row");he("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}});const vg=Mt("thead","header");Mt("tfoot","footer");const Oe=Mt("th","columnHeader"),Ie=Mt("td","cell");Mt("caption","caption",{defaultProps:{captionSide:"bottom"}});const bg=Mt("tbody","body");Mt("colgroup"),Mt("col");const{withContext:gI}=Tt({key:"textarea"}),el=gI(Vd);el.displayName="Textarea";var mn=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(){}},pI={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},mI=class{#e=pI;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Fr=new mI;function vI(e){setTimeout(e,0)}var zr=typeof window>"u"||"Deno"in globalThis;function De(){}function bI(e,t){return typeof e=="function"?e(t):e}function tl(e){return typeof e=="number"&&e>=0&&e!==1/0}function yg(e,t){return Math.max(e+(t||0)-Date.now(),0)}function rr(e,t){return typeof e=="function"?e(t):e}function ot(e,t){return typeof e=="function"?e(t):e}function xg(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:i,queryKey:s,stale:a}=e;if(s){if(n){if(t.queryHash!==rl(s,t.options))return!1}else if(!ao(t.queryKey,s))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||i&&!i(t))}function Sg(e,t){const{exact:r,status:n,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(r){if(Dr(t.options.mutationKey)!==Dr(i))return!1}else if(!ao(t.options.mutationKey,i))return!1}return!(n&&t.state.status!==n||o&&!o(t))}function rl(e,t){return(t?.queryKeyHashFn||Dr)(e)}function Dr(e){return JSON.stringify(e,(t,r)=>nl(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function ao(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>ao(e[r],t[r])):!1}var yI=Object.prototype.hasOwnProperty;function Cg(e,t){if(e===t)return e;const r=kg(e)&&kg(t);if(!r&&!(nl(e)&&nl(t)))return t;const o=(r?e:Object.keys(e)).length,i=r?t:Object.keys(t),s=i.length,a=r?new Array(s):{};let l=0;for(let c=0;c{Fr.setTimeout(t,e)})}function ol(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?Cg(e,t):t}function SI(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function CI(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var il=Symbol();function Eg(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===il?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Og(e,t){return typeof e=="function"?e(...t):!!e}var kI=class extends mn{#e;#t;#r;constructor(){super(),this.#r=e=>{if(!zr&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},sl=new kI;function al(){let e,t;const r=new Promise((o,i)=>{e=o,t=i});r.status="pending",r.catch(()=>{});function n(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{n({status:"fulfilled",value:o}),e(o)},r.reject=o=>{n({status:"rejected",reason:o}),t(o)},r}var wI=vI;function EI(){let e=[],t=0,r=a=>{a()},n=a=>{a()},o=wI;const i=a=>{t?e.push(a):o(()=>{r(a)})},s=()=>{const a=e;e=[],a.length&&o(()=>{n(()=>{a.forEach(l=>{r(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=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{o=a}}}var Ce=EI(),OI=class extends mn{#e=!0;#t;#r;constructor(){super(),this.#r=e=>{if(!zr&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#e}},zi=new OI;function II(e){return Math.min(1e3*2**e,3e4)}function Ig(e){return(e??"online")==="online"?zi.isOnline():!0}var ll=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Tg(e){let t=!1,r=0,n;const o=al(),i=()=>o.status!=="pending",s=m=>{if(!i()){const v=new ll(m);g(v),e.onCancel?.(v)}},a=()=>{t=!0},l=()=>{t=!1},c=()=>sl.isFocused()&&(e.networkMode==="always"||zi.isOnline())&&e.canRun(),u=()=>Ig(e.networkMode)&&e.canRun(),d=m=>{i()||(n?.(),o.resolve(m))},g=m=>{i()||(n?.(),o.reject(m))},f=()=>new Promise(m=>{n=v=>{(i()||c())&&m(v)},e.onPause?.()}).then(()=>{n=void 0,i()||e.onContinue?.()}),p=()=>{if(i())return;let m;const v=r===0?e.initialPromise:void 0;try{m=v??e.fn()}catch(x){m=Promise.reject(x)}Promise.resolve(m).then(d).catch(x=>{if(i())return;const k=e.retry??(zr?0:3),y=e.retryDelay??II,S=typeof y=="function"?y(r,x):y,b=k===!0||typeof k=="number"&&rc()?void 0:f()).then(()=>{t?g(x):p()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(n?.(),o),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?p():f().then(p),o)}}var Pg=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),tl(this.gcTime)&&(this.#e=Fr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(zr?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Fr.clearTimeout(this.#e),this.#e=void 0)}},TI=class extends Pg{#e;#t;#r;#o;#n;#s;#a;constructor(e){super(),this.#a=!1,this.#s=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#o=e.client,this.#r=this.#o.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Vg(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(e){if(this.options={...this.#s,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Vg(this.options);t.data!==void 0&&(this.setState(Ag(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const r=ol(this.state.data,e,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#n?.promise;return this.#n?.cancel(e),t?t.then(De).catch(De):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>ot(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===il||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>rr(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!yg(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#n&&(this.#a?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#n?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(e&&this.setOptions(e),!this.options.queryFn){const a=this.observers.find(l=>l.options.queryFn);a&&this.setOptions(a.options)}const r=new AbortController,n=a=>{Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(this.#a=!0,r.signal)})},o=()=>{const a=Eg(this.options,t),c=(()=>{const u={client:this.#o,queryKey:this.queryKey,meta:this.meta};return n(u),u})();return this.#a=!1,this.options.persister?this.options.persister(a,c,this):a(c)},s=(()=>{const a={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#o,state:this.state,fetchFn:o};return n(a),a})();this.options.behavior?.onFetch(s,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==s.fetchOptions?.meta)&&this.#i({type:"fetch",meta:s.fetchOptions?.meta}),this.#n=Tg({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:a=>{a instanceof ll&&a.revert&&this.setState({...this.#t,fetchStatus:"idle"}),r.abort()},onFail:(a,l)=>{this.#i({type:"failed",failureCount:a,error:l})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const a=await this.#n.start();if(a===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(a),this.#r.config.onSuccess?.(a,this),this.#r.config.onSettled?.(a,this.state.error,this),a}catch(a){if(a instanceof ll){if(a.silent)return this.#n.promise;if(a.revert){if(this.state.data===void 0)throw a;return this.state.data}}throw this.#i({type:"error",error:a}),this.#r.config.onError?.(a,this),this.#r.config.onSettled?.(this.state.data,a,this),a}finally{this.scheduleGc()}}#i(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Ng(r.data,this.options),fetchMeta:e.meta??null};case"success":const n={...r,...Ag(e.data,e.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case"error":const o=e.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,...e.state}}};this.state=t(this.state),Ce.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function Ng(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ig(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Ag(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Vg(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var PI=class extends mn{constructor(e,t){super(),this.options=t,this.#e=e,this.#i=null,this.#a=al(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#r=void 0;#o=void 0;#n;#s;#a;#i;#p;#h;#f;#c;#u;#l;#g=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Rg(this.#t,this.options)?this.#d():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return cl(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return cl(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,r=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ot(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#C(),this.#t.setOptions(this.options),t._defaulted&&!Fi(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const n=this.hasListeners();n&&_g(this.#t,r,this.options,t)&&this.#d(),this.updateResult(),n&&(this.#t!==r||ot(this.options.enabled,this.#t)!==ot(t.enabled,this.#t)||rr(this.options.staleTime,this.#t)!==rr(t.staleTime,this.#t))&&this.#m();const o=this.#v();n&&(this.#t!==r||ot(this.options.enabled,this.#t)!==ot(t.enabled,this.#t)||o!==this.#l)&&this.#b(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(t,e);return AI(this,r)&&(this.#o=r,this.#s=this.options,this.#n=this.#t.state),r}getCurrentResult(){return this.#o}trackResult(e,t){return new Proxy(e,{get:(r,n)=>(this.trackProp(n),t?.(n),n==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,n))})}trackProp(e){this.#g.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#d(e){this.#C();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(De)),t}#m(){this.#x();const e=rr(this.options.staleTime,this.#t);if(zr||this.#o.isStale||!tl(e))return;const r=yg(this.#o.dataUpdatedAt,e)+1;this.#c=Fr.setTimeout(()=>{this.#o.isStale||this.updateResult()},r)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#b(e){this.#S(),this.#l=e,!(zr||ot(this.options.enabled,this.#t)===!1||!tl(this.#l)||this.#l===0)&&(this.#u=Fr.setInterval(()=>{(this.options.refetchIntervalInBackground||sl.isFocused())&&this.#d()},this.#l))}#y(){this.#m(),this.#b(this.#v())}#x(){this.#c&&(Fr.clearTimeout(this.#c),this.#c=void 0)}#S(){this.#u&&(Fr.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const r=this.#t,n=this.options,o=this.#o,i=this.#n,s=this.#s,l=e!==r?e.state:this.#r,{state:c}=e;let u={...c},d=!1,g;if(t._optimisticResults){const V=this.hasListeners(),E=!V&&Rg(e,t),P=V&&_g(e,r,t,n);(E||P)&&(u={...u,...Ng(c.data,e.options)}),t._optimisticResults==="isRestoring"&&(u.fetchStatus="idle")}let{error:f,errorUpdatedAt:p,status:m}=u;g=u.data;let v=!1;if(t.placeholderData!==void 0&&g===void 0&&m==="pending"){let V;o?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(V=o.data,v=!0):V=typeof t.placeholderData=="function"?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,V!==void 0&&(m="success",g=ol(o?.data,V,t),d=!0)}if(t.select&&g!==void 0&&!v)if(o&&g===i?.data&&t.select===this.#p)g=this.#h;else try{this.#p=t.select,g=t.select(g),g=ol(o?.data,g,t),this.#h=g,this.#i=null}catch(V){this.#i=V}this.#i&&(f=this.#i,g=this.#h,p=Date.now(),m="error");const x=u.fetchStatus==="fetching",k=m==="pending",y=m==="error",S=k&&x,b=g!==void 0,T={status:m,fetchStatus:u.fetchStatus,isPending:k,isSuccess:m==="success",isError:y,isInitialLoading:S,isLoading:S,data:g,dataUpdatedAt:u.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>l.dataUpdateCount||u.errorUpdateCount>l.errorUpdateCount,isFetching:x,isRefetching:x&&!k,isLoadingError:y&&!b,isPaused:u.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:y&&b,isStale:ul(e,t),refetch:this.refetch,promise:this.#a,isEnabled:ot(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const V=N=>{T.status==="error"?N.reject(T.error):T.data!==void 0&&N.resolve(T.data)},E=()=>{const N=this.#a=T.promise=al();V(N)},P=this.#a;switch(P.status){case"pending":e.queryHash===r.queryHash&&V(P);break;case"fulfilled":(T.status==="error"||T.data!==P.value)&&E();break;case"rejected":(T.status!=="error"||T.error!==P.reason)&&E();break}}return T}updateResult(){const e=this.#o,t=this.createResult(this.#t,this.options);if(this.#n=this.#t.state,this.#s=this.options,this.#n.data!==void 0&&(this.#f=this.#t),Fi(t,e))return;this.#o=t;const r=()=>{if(!e)return!0;const{notifyOnChangeProps:n}=this.options,o=typeof n=="function"?n():n;if(o==="all"||!o&&!this.#g.size)return!0;const i=new Set(o??this.#g);return this.options.throwOnError&&i.add("error"),Object.keys(this.#o).some(s=>{const a=s;return this.#o[a]!==e[a]&&i.has(a)})};this.#k({listeners:r()})}#C(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#r=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#k(e){Ce.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#o)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function NI(e,t){return ot(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Rg(e,t){return NI(e,t)||e.state.data!==void 0&&cl(e,t,t.refetchOnMount)}function cl(e,t,r){if(ot(t.enabled,e)!==!1&&rr(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&ul(e,t)}return!1}function _g(e,t,r,n){return(e!==t||ot(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&ul(e,r)}function ul(e,t){return ot(t.enabled,e)!==!1&&e.isStaleByTime(rr(t.staleTime,e))}function AI(e,t){return!Fi(e.getCurrentResult(),t)}function Lg(e){return{onFetch:(t,r)=>{const n=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],s=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let u=!1;const d=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},g=Eg(t.options,t.fetchOptions),f=async(p,m,v)=>{if(u)return Promise.reject();if(m==null&&p.pages.length)return Promise.resolve(p);const k=(()=>{const O={client:t.client,queryKey:t.queryKey,pageParam:m,direction:v?"backward":"forward",meta:t.options.meta};return d(O),O})(),y=await g(k),{maxPages:S}=t.options,b=v?CI:SI;return{pages:b(p.pages,y,S),pageParams:b(p.pageParams,m,S)}};if(o&&i.length){const p=o==="backward",m=p?VI:Fg,v={pages:i,pageParams:s},x=m(n,v);a=await f(v,x,p)}else{const p=e??i.length;do{const m=l===0?s[0]??n.initialPageParam:Fg(n,a);if(l>0&&m==null)break;a=await f(a,m),l++}while(lt.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function Fg(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function VI(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var RI=class extends Pg{#e;#t;#r;#o;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#r=e.mutationCache,this.#t=[],this.state=e.state||zg(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#r.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#n({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=Tg({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(i,s)=>{this.#n({type:"failed",failureCount:i,error:s})},onPause:()=>{this.#n({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)});const n=this.state.status==="pending",o=!this.#o.canStart();try{if(n)t();else{this.#n({type:"pending",variables:e,isPaused:o}),await this.#r.config.onMutate?.(e,this,r);const s=await this.options.onMutate?.(e,r);s!==this.state.context&&this.#n({type:"pending",context:s,variables:e,isPaused:o})}const i=await this.#o.start();return await this.#r.config.onSuccess?.(i,e,this.state.context,this,r),await this.options.onSuccess?.(i,e,this.state.context,r),await this.#r.config.onSettled?.(i,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(i,null,e,this.state.context,r),this.#n({type:"success",data:i}),i}catch(i){try{throw await this.#r.config.onError?.(i,e,this.state.context,this,r),await this.options.onError?.(i,e,this.state.context,r),await this.#r.config.onSettled?.(void 0,i,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(void 0,i,e,this.state.context,r),i}finally{this.#n({type:"error",error:i})}}finally{this.#r.runNext(this)}}#n(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Ce.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(e)}),this.#r.notify({mutation:this,type:"updated",action:e})})}};function zg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _I=class extends mn{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#r=0}#e;#t;#r;build(e,t,r){const n=new RI({client:e,mutationCache:this,mutationId:++this.#r,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#e.add(e);const t=Di(e);if(typeof t=="string"){const r=this.#t.get(t);r?r.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Di(e);if(typeof t=="string"){const r=this.#t.get(t);if(r)if(r.length>1){const n=r.indexOf(e);n!==-1&&r.splice(n,1)}else r[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Di(e);if(typeof t=="string"){const n=this.#t.get(t)?.find(o=>o.state.status==="pending");return!n||n===e}else return!0}runNext(e){const t=Di(e);return typeof t=="string"?this.#t.get(t)?.find(n=>n!==e&&n.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ce.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(r=>Sg(t,r))}findAll(e={}){return this.getAll().filter(t=>Sg(e,t))}notify(e){Ce.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Ce.batch(()=>Promise.all(e.map(t=>t.continue().catch(De))))}};function Di(e){return e.options.scope?.id}var LI=class extends mn{#e;#t=void 0;#r;#o;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#e.defaultMutationOptions(e),Fi(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),t?.mutationKey&&this.options.mutationKey&&Dr(t.mutationKey)!==Dr(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(e){this.#n(),this.#s(e)}getCurrentResult(){return this.#t}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#n(),this.#s()}mutate(e,t){return this.#o=t,this.#r?.removeObserver(this),this.#r=this.#e.getMutationCache().build(this.#e,this.options),this.#r.addObserver(this),this.#r.execute(e)}#n(){const e=this.#r?.state??zg();this.#t={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#s(e){Ce.batch(()=>{if(this.#o&&this.hasListeners()){const t=this.#t.variables,r=this.#t.context,n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};e?.type==="success"?(this.#o.onSuccess?.(e.data,t,r,n),this.#o.onSettled?.(e.data,null,t,r,n)):e?.type==="error"&&(this.#o.onError?.(e.error,t,r,n),this.#o.onSettled?.(void 0,e.error,t,r,n))}this.listeners.forEach(t=>{t(this.#t)})})}},FI=class extends mn{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,r){const n=t.queryKey,o=t.queryHash??rl(n,t);let i=this.get(o);return i||(i=new TI({client:e,queryKey:n,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(i)),i}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Ce.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>xg(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>xg(e,r)):t}notify(e){Ce.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Ce.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Ce.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},zI=class{#e;#t;#r;#o;#n;#s;#a;#i;constructor(e={}){this.#e=e.queryCache||new FI,this.#t=e.mutationCache||new _I,this.#r=e.defaultOptions||{},this.#o=new Map,this.#n=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#a=sl.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=zi.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#a?.(),this.#a=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#e.build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(rr(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(n.queryHash)?.state.data,s=bI(t,i);if(s!==void 0)return this.#e.build(this,n).setData(s,{...r,manual:!0})}setQueriesData(e,t,r){return Ce.batch(()=>this.#e.findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Ce.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#e;return Ce.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=Ce.batch(()=>this.#e.findAll(e).map(o=>o.cancel(r)));return Promise.all(n).then(De).catch(De)}invalidateQueries(e,t={}){return Ce.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=Ce.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,r);return r.throwOnError||(i=i.catch(De)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(n).then(De)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#e.build(this,t);return r.isStaleByTime(rr(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(De).catch(De)}fetchInfiniteQuery(e){return e.behavior=Lg(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(De).catch(De)}ensureInfiniteQueryData(e){return e.behavior=Lg(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return zi.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#r}setDefaultOptions(e){this.#r=e}setQueryDefaults(e,t){this.#o.set(Dr(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#o.values()],r={};return t.forEach(n=>{ao(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){this.#n.set(Dr(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#n.values()],r={};return t.forEach(n=>{ao(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#r.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=rl(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===il&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#r.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Dg=D.createContext(void 0),Mg=e=>{const t=D.useContext(Dg);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},DI=({client:e,children:t})=>(D.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),h.jsx(Dg.Provider,{value:e,children:t})),$g=D.createContext(!1),MI=()=>D.useContext($g);$g.Provider;function $I(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var WI=D.createContext($I()),BI=()=>D.useContext(WI),HI=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},UI=e=>{D.useEffect(()=>{e.clearReset()},[e])},jI=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(o&&e.data===void 0||Og(r,[e.error,n])),GI=e=>{if(e.suspense){const r=o=>o==="static"?o:Math.max(o??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...o)=>r(n(...o)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},qI=(e,t)=>e.isLoading&&e.isFetching&&!t,KI=(e,t)=>e?.suspense&&t.isPending,Wg=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function YI(e,t,r){const n=MI(),o=BI(),i=Mg(),s=i.defaultQueryOptions(e);i.getDefaultOptions().queries?._experimental_beforeQuery?.(s),s._optimisticResults=n?"isRestoring":"optimistic",GI(s),HI(s,o),UI(o);const a=!i.getQueryCache().get(s.queryHash),[l]=D.useState(()=>new t(i,s)),c=l.getOptimisticResult(s),u=!n&&e.subscribed!==!1;if(D.useSyncExternalStore(D.useCallback(d=>{const g=u?l.subscribe(Ce.batchCalls(d)):De;return l.updateResult(),g},[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),D.useEffect(()=>{l.setOptions(s)},[s,l]),KI(s,c))throw Wg(s,l,o);if(jI({result:c,errorResetBoundary:o,throwOnError:s.throwOnError,query:i.getQueryCache().get(s.queryHash),suspense:s.suspense}))throw c.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(s,c),s.experimental_prefetchInRender&&!zr&&qI(c,n)&&(a?Wg(s,l,o):i.getQueryCache().get(s.queryHash)?.promise)?.catch(De).finally(()=>{l.updateResult()}),s.notifyOnChangeProps?c:l.trackResult(c)}function Bg(e,t){return YI(e,PI)}function Mr(e,t){const r=Mg(),[n]=D.useState(()=>new LI(r,e));D.useEffect(()=>{n.setOptions(e)},[n,e]);const o=D.useSyncExternalStore(D.useCallback(s=>n.subscribe(Ce.batchCalls(s)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),i=D.useCallback((s,a)=>{n.mutate(s,a).catch(De)},[n]);if(o.error&&Og(n.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}class Hg{_fns;constructor(){this._fns=[]}eject(t){const r=this._fns.indexOf(t);r!==-1&&(this._fns=[...this._fns.slice(0,r),...this._fns.slice(r+1)])}use(t){this._fns=[...this._fns,t]}}const Et={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 Hg,response:new Hg}};var XI=(e,t,r,n,o,i,s,a)=>{let l=document.documentElement,c=["light","dark"];function u(f){(Array.isArray(e)?e:[e]).forEach(p=>{let m=p==="class",v=m&&i?o.map(x=>i[x]||x):o;m?(l.classList.remove(...v),l.classList.add(i&&i[f]?i[f]:f)):l.setAttribute(p,f)}),d(f)}function d(f){a&&c.includes(f)&&(l.style.colorScheme=f)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)u(n);else try{let f=localStorage.getItem(t)||r,p=s&&f==="system"?g():f;u(p)}catch{}},Ug=["light","dark"],jg="(prefers-color-scheme: dark)",QI=typeof window>"u",Gg=D.createContext(void 0),JI=e=>D.useContext(Gg)?D.createElement(D.Fragment,null,e.children):D.createElement(eT,{...e}),ZI=["light","dark"],eT=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:n=!0,storageKey:o="theme",themes:i=ZI,defaultTheme:s=r?"system":"light",attribute:a="data-theme",value:l,children:c,nonce:u,scriptProps:d})=>{let[g,f]=D.useState(()=>rT(o,s)),[p,m]=D.useState(()=>g==="system"?dl():g),v=l?Object.values(l):i,x=D.useCallback(b=>{let O=b;if(!O)return;b==="system"&&r&&(O=dl());let T=l?l[O]:O,V=t?nT(u):null,E=document.documentElement,P=N=>{N==="class"?(E.classList.remove(...v),T&&E.classList.add(T)):N.startsWith("data-")&&(T?E.setAttribute(N,T):E.removeAttribute(N))};if(Array.isArray(a)?a.forEach(P):P(a),n){let N=Ug.includes(s)?s:null,w=Ug.includes(O)?O:N;E.style.colorScheme=w}V?.()},[u]),k=D.useCallback(b=>{let O=typeof b=="function"?b(g):b;f(O);try{localStorage.setItem(o,O)}catch{}},[g]),y=D.useCallback(b=>{let O=dl(b);m(O),g==="system"&&r&&!e&&x("system")},[g,e]);D.useEffect(()=>{let b=window.matchMedia(jg);return b.addListener(y),y(b),()=>b.removeListener(y)},[y]),D.useEffect(()=>{let b=O=>{O.key===o&&(O.newValue?f(O.newValue):k(s))};return window.addEventListener("storage",b),()=>window.removeEventListener("storage",b)},[k]),D.useEffect(()=>{x(e??g)},[e,g]);let S=D.useMemo(()=>({theme:g,setTheme:k,forcedTheme:e,resolvedTheme:g==="system"?p:g,themes:r?[...i,"system"]:i,systemTheme:r?p:void 0}),[g,k,e,p,r,i]);return D.createElement(Gg.Provider,{value:S},D.createElement(tT,{forcedTheme:e,storageKey:o,attribute:a,enableSystem:r,enableColorScheme:n,defaultTheme:s,value:l,themes:i,nonce:u,scriptProps:d}),c)},tT=D.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:i,value:s,themes:a,nonce:l,scriptProps:c})=>{let u=JSON.stringify([r,t,i,e,a,s,n,o]).slice(1,-1);return D.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${XI.toString()})(${u})`}})}),rT=(e,t)=>{if(QI)return;let r;try{r=localStorage.getItem(e)||void 0}catch{}return r||t},nT=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},dl=e=>(e||(e=window.matchMedia(jg)),e.matches?"dark":"light");const oT=e=>h.jsx(JI,{attribute:"class",disableTransitionOnChange:!0,...e}),iT="UiServiceWorker",sT=({queueNamePattern:e,state:t,workerNamePattern:r}={},n)=>[iT,{queueNamePattern:e,state:t,workerNamePattern:r}],aT="UiServiceJobs",lT=e=>[aT];function qg(e,t){return function(){return e.apply(t,arguments)}}const{toString:cT}=Object.prototype,{getPrototypeOf:hl}=Object,{iterator:Mi,toStringTag:Kg}=Symbol,$i=(e=>t=>{const r=cT.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ht=e=>(e=e.toLowerCase(),t=>$i(t)===e),Wi=e=>t=>typeof t===e,{isArray:vn}=Array,bn=Wi("undefined");function lo(e){return e!==null&&!bn(e)&&e.constructor!==null&&!bn(e.constructor)&&Ke(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Yg=ht("ArrayBuffer");function uT(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Yg(e.buffer),t}const dT=Wi("string"),Ke=Wi("function"),Xg=Wi("number"),co=e=>e!==null&&typeof e=="object",hT=e=>e===!0||e===!1,Bi=e=>{if($i(e)!=="object")return!1;const t=hl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Kg in e)&&!(Mi in e)},fT=e=>{if(!co(e)||lo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},gT=ht("Date"),pT=ht("File"),mT=ht("Blob"),vT=ht("FileList"),bT=e=>co(e)&&Ke(e.pipe),yT=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ke(e.append)&&((t=$i(e))==="formdata"||t==="object"&&Ke(e.toString)&&e.toString()==="[object FormData]"))},xT=ht("URLSearchParams"),[ST,CT,kT,wT]=["ReadableStream","Request","Response","Headers"].map(ht),ET=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function uo(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),vn(e))for(n=0,o=e.length;n0;)if(o=r[n],t===o.toLowerCase())return o;return null}const $r=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:globalThis,Jg=e=>!bn(e)&&e!==$r;function fl(){const{caseless:e,skipUndefined:t}=Jg(this)&&this||{},r={},n=(o,i)=>{const s=e&&Qg(r,i)||i;Bi(r[s])&&Bi(o)?r[s]=fl(r[s],o):Bi(o)?r[s]=fl({},o):vn(o)?r[s]=o.slice():(!t||!bn(o))&&(r[s]=o)};for(let o=0,i=arguments.length;o(uo(t,(o,i)=>{r&&Ke(o)?e[i]=qg(o,r):e[i]=o},{allOwnKeys:n}),e),IT=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),TT=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},PT=(e,t,r,n)=>{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],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&hl(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},NT=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},AT=e=>{if(!e)return null;if(vn(e))return e;let t=e.length;if(!Xg(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},VT=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&hl(Uint8Array)),RT=(e,t)=>{const n=(e&&e[Mi]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},_T=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},LT=ht("HTMLFormElement"),FT=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Zg=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),zT=ht("RegExp"),ep=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};uo(r,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(n[i]=s||o)}),Object.defineProperties(e,n)},DT=e=>{ep(e,(t,r)=>{if(Ke(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Ke(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},MT=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return vn(e)?n(e):n(String(e).split(t)),r},$T=()=>{},WT=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function BT(e){return!!(e&&Ke(e.append)&&e[Kg]==="FormData"&&e[Mi])}const HT=e=>{const t=new Array(10),r=(n,o)=>{if(co(n)){if(t.indexOf(n)>=0)return;if(lo(n))return n;if(!("toJSON"in n)){t[o]=n;const i=vn(n)?[]:{};return uo(n,(s,a)=>{const l=r(s,o+1);!bn(l)&&(i[a]=l)}),t[o]=void 0,i}}return n};return r(e,0)},UT=ht("AsyncFunction"),jT=e=>e&&(co(e)||Ke(e))&&Ke(e.then)&&Ke(e.catch),tp=((e,t)=>e?setImmediate:t?((r,n)=>($r.addEventListener("message",({source:o,data:i})=>{o===$r&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),$r.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ke($r.postMessage)),GT=typeof queueMicrotask<"u"?queueMicrotask.bind($r):typeof process<"u"&&process.nextTick||tp,I={isArray:vn,isArrayBuffer:Yg,isBuffer:lo,isFormData:yT,isArrayBufferView:uT,isString:dT,isNumber:Xg,isBoolean:hT,isObject:co,isPlainObject:Bi,isEmptyObject:fT,isReadableStream:ST,isRequest:CT,isResponse:kT,isHeaders:wT,isUndefined:bn,isDate:gT,isFile:pT,isBlob:mT,isRegExp:zT,isFunction:Ke,isStream:bT,isURLSearchParams:xT,isTypedArray:VT,isFileList:vT,forEach:uo,merge:fl,extend:OT,trim:ET,stripBOM:IT,inherits:TT,toFlatObject:PT,kindOf:$i,kindOfTest:ht,endsWith:NT,toArray:AT,forEachEntry:RT,matchAll:_T,isHTMLForm:LT,hasOwnProperty:Zg,hasOwnProp:Zg,reduceDescriptors:ep,freezeMethods:DT,toObjectSet:MT,toCamelCase:FT,noop:$T,toFiniteNumber:WT,findKey:Qg,global:$r,isContextDefined:Jg,isSpecCompliantForm:BT,toJSONObject:HT,isAsyncFn:UT,isThenable:jT,setImmediate:tp,asap:GT,isIterable:e=>e!=null&&Ke(e[Mi])};function j(e,t,r,n,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),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}I.inherits(j,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:I.toJSONObject(this.config),code:this.code,status:this.status}}});const rp=j.prototype,np={};["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=>{np[e]={value:e}}),Object.defineProperties(j,np),Object.defineProperty(rp,"isAxiosError",{value:!0}),j.from=(e,t,r,n,o,i)=>{const s=Object.create(rp);I.toFlatObject(e,s,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");const a=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return j.call(s,a,l,r,n,o),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",i&&Object.assign(s,i),s};const qT=null;function gl(e){return I.isPlainObject(e)||I.isArray(e)}function op(e){return I.endsWith(e,"[]")?e.slice(0,-2):e}function ip(e,t,r){return e?e.concat(t).map(function(o,i){return o=op(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function KT(e){return I.isArray(e)&&!e.some(gl)}const YT=I.toFlatObject(I,{},null,function(t){return/^is[A-Z]/.test(t)});function Hi(e,t,r){if(!I.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=I.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,v){return!I.isUndefined(v[m])});const n=r.metaTokens,o=r.visitor||u,i=r.dots,s=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(t);if(!I.isFunction(o))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(I.isDate(p))return p.toISOString();if(I.isBoolean(p))return p.toString();if(!l&&I.isBlob(p))throw new j("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(p)||I.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,m,v){let x=p;if(p&&!v&&typeof p=="object"){if(I.endsWith(m,"{}"))m=n?m:m.slice(0,-2),p=JSON.stringify(p);else if(I.isArray(p)&&KT(p)||(I.isFileList(p)||I.endsWith(m,"[]"))&&(x=I.toArray(p)))return m=op(m),x.forEach(function(y,S){!(I.isUndefined(y)||y===null)&&t.append(s===!0?ip([m],S,i):s===null?m:m+"[]",c(y))}),!1}return gl(p)?!0:(t.append(ip(v,m,i),c(p)),!1)}const d=[],g=Object.assign(YT,{defaultVisitor:u,convertValue:c,isVisitable:gl});function f(p,m){if(!I.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(p),I.forEach(p,function(x,k){(!(I.isUndefined(x)||x===null)&&o.call(t,x,I.isString(k)?k.trim():k,m,g))===!0&&f(x,m?m.concat(k):[k])}),d.pop()}}if(!I.isObject(e))throw new TypeError("data must be an object");return f(e),t}function sp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function pl(e,t){this._pairs=[],e&&Hi(e,this,t)}const ap=pl.prototype;ap.append=function(t,r){this._pairs.push([t,r])},ap.toString=function(t){const r=t?function(n){return t.call(this,n,sp)}:sp;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function XT(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function lp(e,t,r){if(!t)return e;const n=r&&r.encode||XT;I.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=I.isURLSearchParams(t)?t.toString():new pl(t,r).toString(n),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class cp{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){I.forEach(this.handlers,function(n){n!==null&&t(n)})}}const up={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},QT={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:pl,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ml=typeof window<"u"&&typeof document<"u",vl=typeof navigator=="object"&&navigator||void 0,JT=ml&&(!vl||["ReactNative","NativeScript","NS"].indexOf(vl.product)<0),ZT=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",eP=ml&&window.location.href||"http://localhost",Le={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ml,hasStandardBrowserEnv:JT,hasStandardBrowserWebWorkerEnv:ZT,navigator:vl,origin:eP},Symbol.toStringTag,{value:"Module"})),...QT};function tP(e,t){return Hi(e,new Le.classes.URLSearchParams,{visitor:function(r,n,o,i){return Le.isNode&&I.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function rP(e){return I.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function nP(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n=r.length;return s=!s&&I.isArray(o)?o.length:s,l?(I.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!I.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],i)&&I.isArray(o[s])&&(o[s]=nP(o[s])),!a)}if(I.isFormData(e)&&I.isFunction(e.entries)){const r={};return I.forEachEntry(e,(n,o)=>{t(rP(n),o,r,0)}),r}return null}function oP(e,t,r){if(I.isString(e))try{return(t||JSON.parse)(e),I.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const ho={transitional:up,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=I.isObject(t);if(i&&I.isHTMLForm(t)&&(t=new FormData(t)),I.isFormData(t))return o?JSON.stringify(dp(t)):t;if(I.isArrayBuffer(t)||I.isBuffer(t)||I.isStream(t)||I.isFile(t)||I.isBlob(t)||I.isReadableStream(t))return t;if(I.isArrayBufferView(t))return t.buffer;if(I.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return tP(t,this.formSerializer).toString();if((a=I.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Hi(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),oP(t)):t}],transformResponse:[function(t){const r=this.transitional||ho.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(I.isResponse(t)||I.isReadableStream(t))return t;if(t&&I.isString(t)&&(n&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(a){if(s)throw a.name==="SyntaxError"?j.from(a,j.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:Le.classes.FormData,Blob:Le.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};I.forEach(["delete","get","head","post","put","patch"],e=>{ho.headers[e]={}});const iP=I.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"]),sP=e=>{const t={};let r,n,o;return e&&e.split(` +`).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||t[r]&&iP[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},hp=Symbol("internals");function fo(e){return e&&String(e).trim().toLowerCase()}function Ui(e){return e===!1||e==null?e:I.isArray(e)?e.map(Ui):String(e)}function aP(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const lP=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function bl(e,t,r,n,o){if(I.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!I.isString(t)){if(I.isString(n))return t.indexOf(n)!==-1;if(I.isRegExp(n))return n.test(t)}}function cP(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function uP(e,t){const r=I.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,s){return this[n].call(this,t,o,i,s)},configurable:!0})})}let Ye=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(a,l,c){const u=fo(l);if(!u)throw new Error("header name must be a non-empty string");const d=I.findKey(o,u);(!d||o[d]===void 0||c===!0||c===void 0&&o[d]!==!1)&&(o[d||l]=Ui(a))}const s=(a,l)=>I.forEach(a,(c,u)=>i(c,u,l));if(I.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(I.isString(t)&&(t=t.trim())&&!lP(t))s(sP(t),r);else if(I.isObject(t)&&I.isIterable(t)){let a={},l,c;for(const u of t){if(!I.isArray(u))throw TypeError("Object iterator must return a key-value pair");a[c=u[0]]=(l=a[c])?I.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}s(a,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=fo(t),t){const n=I.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return aP(o);if(I.isFunction(r))return r.call(this,o,n);if(I.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=fo(t),t){const n=I.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||bl(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(s){if(s=fo(s),s){const a=I.findKey(n,s);a&&(!r||bl(n,n[a],a,r))&&(delete n[a],o=!0)}}return I.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||bl(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return I.forEach(this,(o,i)=>{const s=I.findKey(n,i);if(s){r[s]=Ui(o),delete r[i];return}const a=t?cP(i):String(i).trim();a!==i&&delete r[i],r[a]=Ui(o),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return I.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&I.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).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,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[hp]=this[hp]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=fo(s);n[a]||(uP(o,s),n[a]=!0)}return I.isArray(t)?t.forEach(i):i(t),this}};Ye.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),I.reduceDescriptors(Ye.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),I.freezeMethods(Ye);function yl(e,t){const r=this||ho,n=t||r,o=Ye.from(n.headers);let i=n.data;return I.forEach(e,function(a){i=a.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function fp(e){return!!(e&&e.__CANCEL__)}function yn(e,t,r){j.call(this,e??"canceled",j.ERR_CANCELED,t,r),this.name="CanceledError"}I.inherits(yn,j,{__CANCEL__:!0});function gp(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new j("Request failed with status code "+r.status,[j.ERR_BAD_REQUEST,j.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function dP(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function hP(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=n[i];s||(s=c),r[o]=l,n[o]=c;let d=i,g=0;for(;d!==o;)g+=r[d++],d=d%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s{r=u,o=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const u=Date.now(),d=u-r;d>=n?s(c,u):(o=c,i||(i=setTimeout(()=>{i=null,s(o)},n-d)))},()=>o&&s(o)]}const ji=(e,t,r=3)=>{let n=0;const o=hP(50,250);return fP(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-n,c=o(l),u=s<=a;n=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)},r)},pp=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},mp=e=>(...t)=>I.asap(()=>e(...t)),gP=Le.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Le.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Le.origin),Le.navigator&&/(msie|trident)/i.test(Le.navigator.userAgent)):()=>!0,pP=Le.hasStandardBrowserEnv?{write(e,t,r,n,o,i,s){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];I.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),I.isString(n)&&a.push(`path=${n}`),I.isString(o)&&a.push(`domain=${o}`),i===!0&&a.push("secure"),I.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function mP(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function vP(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function vp(e,t,r){let n=!mP(t);return e&&(n||r==!1)?vP(e,t):t}const bp=e=>e instanceof Ye?{...e}:e;function Wr(e,t){t=t||{};const r={};function n(c,u,d,g){return I.isPlainObject(c)&&I.isPlainObject(u)?I.merge.call({caseless:g},c,u):I.isPlainObject(u)?I.merge({},u):I.isArray(u)?u.slice():u}function o(c,u,d,g){if(I.isUndefined(u)){if(!I.isUndefined(c))return n(void 0,c,d,g)}else return n(c,u,d,g)}function i(c,u){if(!I.isUndefined(u))return n(void 0,u)}function s(c,u){if(I.isUndefined(u)){if(!I.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function a(c,u,d){if(d in t)return n(c,u);if(d in e)return n(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(bp(c),bp(u),d,!0)};return I.forEach(Object.keys({...e,...t}),function(u){const d=l[u]||o,g=d(e[u],t[u],u);I.isUndefined(g)&&d!==a||(r[u]=g)}),r}const yp=e=>{const t=Wr({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;if(t.headers=s=Ye.from(s),t.url=lp(vp(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),I.isFormData(r)){if(Le.hasStandardBrowserEnv||Le.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(I.isFunction(r.getHeaders)){const l=r.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,d])=>{c.includes(u.toLowerCase())&&s.set(u,d)})}}if(Le.hasStandardBrowserEnv&&(n&&I.isFunction(n)&&(n=n(t)),n||n!==!1&&gP(t.url))){const l=o&&i&&pP.read(i);l&&s.set(o,l)}return t},bP=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=yp(e);let i=o.data;const s=Ye.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,u,d,g,f,p;function m(){f&&f(),p&&p(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function x(){if(!v)return;const y=Ye.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:y,config:e,request:v};gp(function(T){r(T),m()},function(T){n(T),m()},b),v=null}"onloadend"in v?v.onloadend=x:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(x)},v.onabort=function(){v&&(n(new j("Request aborted",j.ECONNABORTED,e,v)),v=null)},v.onerror=function(S){const b=S&&S.message?S.message:"Network Error",O=new j(b,j.ERR_NETWORK,e,v);O.event=S||null,n(O),v=null},v.ontimeout=function(){let S=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const b=o.transitional||up;o.timeoutErrorMessage&&(S=o.timeoutErrorMessage),n(new j(S,b.clarifyTimeoutError?j.ETIMEDOUT:j.ECONNABORTED,e,v)),v=null},i===void 0&&s.setContentType(null),"setRequestHeader"in v&&I.forEach(s.toJSON(),function(S,b){v.setRequestHeader(b,S)}),I.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),a&&a!=="json"&&(v.responseType=o.responseType),c&&([g,p]=ji(c,!0),v.addEventListener("progress",g)),l&&v.upload&&([d,f]=ji(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",f)),(o.cancelToken||o.signal)&&(u=y=>{v&&(n(!y||y.type?new yn(null,e,v):y),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const k=dP(o.url);if(k&&Le.protocols.indexOf(k)===-1){n(new j("Unsupported protocol "+k+":",j.ERR_BAD_REQUEST,e));return}v.send(i||null)})},yP=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(c){if(!o){o=!0,a();const u=c instanceof Error?c:this.reason;n.abort(u instanceof j?u:new yn(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,i(new j(`timeout ${t} of ms exceeded`,j.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}=n;return l.unsubscribe=()=>I.asap(a),l}},xP=function*(e,t){let r=e.byteLength;if(r{const o=SP(e,t);let i=0,s,a=l=>{s||(s=!0,n&&n(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(r){let g=i+=d;r(g)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},Sp=64*1024,{isFunction:Gi}=I,kP=(({Request:e,Response:t})=>({Request:e,Response:t}))(I.global),{ReadableStream:Cp,TextEncoder:kp}=I.global,wp=(e,...t)=>{try{return!!e(...t)}catch{return!1}},wP=e=>{e=I.merge.call({skipUndefined:!0},kP,e);const{fetch:t,Request:r,Response:n}=e,o=t?Gi(t):typeof fetch=="function",i=Gi(r),s=Gi(n);if(!o)return!1;const a=o&&Gi(Cp),l=o&&(typeof kp=="function"?(p=>m=>p.encode(m))(new kp):async p=>new Uint8Array(await new r(p).arrayBuffer())),c=i&&a&&wp(()=>{let p=!1;const m=new r(Le.origin,{body:new Cp,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!m}),u=s&&a&&wp(()=>I.isReadableStream(new n("").body)),d={stream:u&&(p=>p.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!d[p]&&(d[p]=(m,v)=>{let x=m&&m[p];if(x)return x.call(m);throw new j(`Response type '${p}' is not supported`,j.ERR_NOT_SUPPORT,v)})});const g=async p=>{if(p==null)return 0;if(I.isBlob(p))return p.size;if(I.isSpecCompliantForm(p))return(await new r(Le.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(I.isArrayBufferView(p)||I.isArrayBuffer(p))return p.byteLength;if(I.isURLSearchParams(p)&&(p=p+""),I.isString(p))return(await l(p)).byteLength},f=async(p,m)=>{const v=I.toFiniteNumber(p.getContentLength());return v??g(m)};return async p=>{let{url:m,method:v,data:x,signal:k,cancelToken:y,timeout:S,onDownloadProgress:b,onUploadProgress:O,responseType:T,headers:V,withCredentials:E="same-origin",fetchOptions:P}=yp(p),N=t||fetch;T=T?(T+"").toLowerCase():"text";let w=yP([k,y&&y.toAbortSignal()],S),A=null;const L=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let z;try{if(O&&c&&v!=="get"&&v!=="head"&&(z=await f(V,x))!==0){let Q=new r(m,{method:"POST",body:x,duplex:"half"}),ye;if(I.isFormData(x)&&(ye=Q.headers.get("content-type"))&&V.setContentType(ye),Q.body){const[it,It]=pp(z,ji(mp(O)));x=xp(Q.body,Sp,it,It)}}I.isString(E)||(E=E?"include":"omit");const U=i&&"credentials"in r.prototype,Z={...P,signal:w,method:v.toUpperCase(),headers:V.normalize().toJSON(),body:x,duplex:"half",credentials:U?E:void 0};A=i&&new r(m,Z);let ne=await(i?N(A,P):N(m,Z));const H=u&&(T==="stream"||T==="response");if(u&&(b||H&&L)){const Q={};["status","statusText","headers"].forEach(Ht=>{Q[Ht]=ne[Ht]});const ye=I.toFiniteNumber(ne.headers.get("content-length")),[it,It]=b&&pp(ye,ji(mp(b),!0))||[];ne=new n(xp(ne.body,Sp,it,()=>{It&&It(),L&&L()}),Q)}T=T||"text";let q=await d[I.findKey(d,T)||"text"](ne,p);return!H&&L&&L(),await new Promise((Q,ye)=>{gp(Q,ye,{data:q,headers:Ye.from(ne.headers),status:ne.status,statusText:ne.statusText,config:p,request:A})})}catch(U){throw L&&L(),U&&U.name==="TypeError"&&/Load failed|fetch/i.test(U.message)?Object.assign(new j("Network Error",j.ERR_NETWORK,p,A),{cause:U.cause||U}):j.from(U,U&&U.code,p,A)}}},EP=new Map,Ep=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let s=i.length,a=s,l,c,u=EP;for(;a--;)l=i[a],c=u.get(l),c===void 0&&u.set(l,c=a?new Map:wP(t)),u=c;return c};Ep();const xl={http:qT,xhr:bP,fetch:{get:Ep}};I.forEach(xl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Op=e=>`- ${e}`,OP=e=>I.isFunction(e)||e===null||e===!1;function IP(e,t){e=I.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let s=0;s`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=r?s.length>1?`since : +`+s.map(Op).join(` +`):" "+Op(s[0]):"as no adapter specified";throw new j("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return o}const Ip={getAdapter:IP,adapters:xl};function Sl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new yn(null,e)}function Tp(e){return Sl(e),e.headers=Ye.from(e.headers),e.data=yl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ip.getAdapter(e.adapter||ho.adapter,e)(e).then(function(n){return Sl(e),n.data=yl.call(e,e.transformResponse,n),n.headers=Ye.from(n.headers),n},function(n){return fp(n)||(Sl(e),n&&n.response&&(n.response.data=yl.call(e,e.transformResponse,n.response),n.response.headers=Ye.from(n.response.headers))),Promise.reject(n)})}const Pp="1.13.2",qi={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{qi[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Np={};qi.transitional=function(t,r,n){function o(i,s){return"[Axios v"+Pp+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,a)=>{if(t===!1)throw new j(o(s," has been removed"+(r?" in "+r:"")),j.ERR_DEPRECATED);return r&&!Np[s]&&(Np[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,s,a):!0}},qi.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function TP(e,t,r){if(typeof e!="object")throw new j("options must be an object",j.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new j("option "+i+" must be "+l,j.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new j("Unknown option "+i,j.ERR_BAD_OPTION)}}const Ki={assertOptions:TP,validators:qi},Ot=Ki.validators;let Br=class{constructor(t){this.defaults=t||{},this.interceptors={request:new cp,response:new cp}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=` +`+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Wr(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Ki.assertOptions(n,{silentJSONParsing:Ot.transitional(Ot.boolean),forcedJSONParsing:Ot.transitional(Ot.boolean),clarifyTimeoutError:Ot.transitional(Ot.boolean)},!1),o!=null&&(I.isFunction(o)?r.paramsSerializer={serialize:o}:Ki.assertOptions(o,{encode:Ot.function,serialize:Ot.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Ki.assertOptions(r,{baseUrl:Ot.spelling("baseURL"),withXsrfToken:Ot.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&I.merge(i.common,i[r.method]);i&&I.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),r.headers=Ye.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(l=l&&m.synchronous,a.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,g;if(!l){const p=[Tp.bind(this),void 0];for(p.unshift(...a),p.push(...c),g=p.length,u=Promise.resolve(r);d{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i,s,a){n.reason||(n.reason=new yn(i,s,a),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new gm(function(o){t=o}),cancel:t}}};function NP(e){return function(r){return e.apply(null,r)}}function AP(e){return I.isObject(e)&&e.isAxiosError===!0}const Cl={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Cl).forEach(([e,t])=>{Cl[t]=e});function Ap(e){const t=new Br(e),r=qg(Br.prototype.request,t);return I.extend(r,Br.prototype,t,{allOwnKeys:!0}),I.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Ap(Wr(e,o))},r}const ge=Ap(ho);ge.Axios=Br,ge.CanceledError=yn,ge.CancelToken=PP,ge.isCancel=fp,ge.VERSION=Pp,ge.toFormData=Hi,ge.AxiosError=j,ge.Cancel=ge.CanceledError,ge.all=function(t){return Promise.all(t)},ge.spread=NP,ge.isAxiosError=AP,ge.mergeConfig=Wr,ge.AxiosHeaders=Ye,ge.formToJSON=e=>dp(I.isHTMLForm(e)?new FormData(e):e),ge.getAdapter=Ip.getAdapter,ge.HttpStatusCode=Cl,ge.default=ge;const{Axios:Q5,AxiosError:J5,CanceledError:Z5,isCancel:eA,CancelToken:tA,VERSION:rA,all:nA,Cancel:oA,isAxiosError:iA,spread:sA,toFormData:aA,AxiosHeaders:lA,HttpStatusCode:cA,formToJSON:uA,getAdapter:dA,mergeConfig:hA}=ge;class Vp extends Error{url;status;statusText;body;request;constructor(t,r,n){super(n),this.name="ApiError",this.url=r.url,this.status=r.status,this.statusText=r.statusText,this.body=r.body,this.request=t}}class VP extends Error{constructor(t){super(t),this.name="CancelError"}get isCancelled(){return!0}}class RP{_isResolved;_isRejected;_isCancelled;cancelHandlers;promise;_resolve;_reject;constructor(t){this._isResolved=!1,this._isRejected=!1,this._isCancelled=!1,this.cancelHandlers=[],this.promise=new Promise((r,n)=>{this._resolve=r,this._reject=n;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,r){return this.promise.then(t,r)}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 VP("Request aborted"))}}get isCancelled(){return this._isCancelled}}const Yi=e=>typeof e=="string",kl=e=>Yi(e)&&e!=="",Rp=e=>e instanceof Blob,_P=e=>e instanceof FormData,_p=e=>e>=200&&e<300,LP=e=>{try{return btoa(e)}catch{return Buffer.from(e).toString("base64")}},FP=e=>{const t=[],r=(o,i)=>{t.push(`${encodeURIComponent(o)}=${encodeURIComponent(String(i))}`)},n=(o,i)=>{i!=null&&(i instanceof Date?r(o,i.toISOString()):Array.isArray(i)?i.forEach(s=>n(o,s)):typeof i=="object"?Object.entries(i).forEach(([s,a])=>n(`${o}[${s}]`,a)):r(o,i))};return Object.entries(e).forEach(([o,i])=>n(o,i)),t.length?`?${t.join("&")}`:""},zP=(e,t)=>{const r=encodeURI,n=t.url.replace("{api-version}",e.VERSION).replace(/{(.*?)}/g,(i,s)=>t.path?.hasOwnProperty(s)?r(String(t.path[s])):i),o=e.BASE+n;return t.query?o+FP(t.query):o},DP=e=>{if(e.formData){const t=new FormData,r=(n,o)=>{Yi(o)||Rp(o)?t.append(n,o):t.append(n,JSON.stringify(o))};return Object.entries(e.formData).filter(([,n])=>n!=null).forEach(([n,o])=>{Array.isArray(o)?o.forEach(i=>r(n,i)):r(n,o)}),t}},Xi=async(e,t)=>t,MP=async(e,t)=>{const[r,n,o,i]=await Promise.all([Xi(t,e.TOKEN),Xi(t,e.USERNAME),Xi(t,e.PASSWORD),Xi(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(kl(r)&&(s.Authorization=`Bearer ${r}`),kl(n)&&kl(o)){const a=LP(`${n}:${o}`);s.Authorization=`Basic ${a}`}return t.body!==void 0?t.mediaType?s["Content-Type"]=t.mediaType:Rp(t.body)?s["Content-Type"]=t.body.type||"application/octet-stream":Yi(t.body)?s["Content-Type"]="text/plain":_P(t.body)||(s["Content-Type"]="application/json"):t.formData!==void 0&&t.mediaType&&(s["Content-Type"]=t.mediaType),s},$P=e=>{if(e.body)return e.body},WP=async(e,t,r,n,o,i,s,a)=>{const l=new AbortController;let c={data:n??o,headers:i,method:t.method,signal:l.signal,url:r,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}},BP=(e,t)=>{if(t){const r=e.headers[t];if(Yi(r))return r}},HP=e=>{if(e.status!==204)return e.data},UP=(e,t)=>{const n={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(n)throw new Vp(e,t,n);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 Vp(e,t,`Generic Error: status: ${o}; status text: ${i}; body: ${s}`)}},$t=(e,t,r=ge)=>new RP(async(n,o,i)=>{try{const s=zP(e,t),a=DP(t),l=$P(t),c=await MP(e,t);if(!i.isCancelled){let u=await WP(e,t,s,l,a,c,i,r);for(const m of e.interceptors.response._fns)u=await m(u);const d=HP(u),g=BP(u,t.responseHeader);let f=d;t.responseTransformer&&_p(u.status)&&(f=await t.responseTransformer(d));const p={url:s,ok:_p(u.status),status:u.status,statusText:u.statusText,body:g??f};UP(t,p),n(p.body)}}catch(s){o(s)}});class Wt{static worker(t={}){return $t(Et,{method:"GET",url:"/edge_worker/ui/worker",query:{worker_name_pattern:t.workerNamePattern,queue_name_pattern:t.queueNamePattern,state:t.state},errors:{422:"Validation Error"}})}static jobs(){return $t(Et,{method:"GET",url:"/edge_worker/ui/jobs"})}static requestWorkerMaintenance(t){return $t(Et,{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 updateWorkerMaintenance(t){return $t(Et,{method:"PATCH",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 $t(Et,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}/maintenance",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}static requestWorkerShutdown(t){return $t(Et,{method:"POST",url:"/edge_worker/ui/worker/{worker_name}/shutdown",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}static deleteWorker(t){return $t(Et,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}",path:{worker_name:t.workerName},errors:{422:"Validation Error"}})}static addWorkerQueue(t){return $t(Et,{method:"PUT",url:"/edge_worker/ui/worker/{worker_name}/queues/{queue_name}",path:{worker_name:t.workerName,queue_name:t.queueName},errors:{422:"Validation Error"}})}static removeWorkerQueue(t){return $t(Et,{method:"DELETE",url:"/edge_worker/ui/worker/{worker_name}/queues/{queue_name}",path:{worker_name:t.workerName,queue_name:t.queueName},errors:{422:"Validation Error"}})}}const jP=({queueNamePattern:e,state:t,workerNamePattern:r}={},n,o)=>Bg({queryKey:sT({queueNamePattern:e,state:t,workerNamePattern:r}),queryFn:()=>Wt.worker({queueNamePattern:e,state:t,workerNamePattern:r}),...o}),GP=(e,t)=>Bg({queryKey:lT(),queryFn:()=>Wt.jobs(),...t}),qP=e=>Mr({mutationFn:({requestBody:t,workerName:r})=>Wt.requestWorkerMaintenance({requestBody:t,workerName:r}),...e}),KP=e=>Mr({mutationFn:({workerName:t})=>Wt.requestWorkerShutdown({workerName:t}),...e}),YP=e=>Mr({mutationFn:({queueName:t,workerName:r})=>Wt.addWorkerQueue({queueName:t,workerName:r}),...e}),XP=e=>Mr({mutationFn:({requestBody:t,workerName:r})=>Wt.updateWorkerMaintenance({requestBody:t,workerName:r}),...e}),QP=e=>Mr({mutationFn:({workerName:t})=>Wt.exitWorkerMaintenance({workerName:t}),...e}),JP=e=>Mr({mutationFn:({workerName:t})=>Wt.deleteWorker({workerName:t}),...e}),ZP=e=>Mr({mutationFn:({queueName:t,workerName:r})=>Wt.removeWorkerQueue({queueName:t,workerName:r}),...e});function Qi(e){const t=new Date(e);if(!Number.isNaN(t.valueOf()))return t;const r=String(e).match(/\d+/g);if(r==null||r.length<=2)return t;{const[n,o,...i]=r.map(l=>parseInt(l)),s=[n,o-1,...i];return new Date(Date.UTC(...s))}}const go=(e,t,r)=>{const n=e!==1?t+"s":t;return e+" "+n+" "+r};function wl(){return wl=Object.assign?Object.assign.bind():function(e){for(var t=1;tDate.now();function Zi({date:e,formatter:t,component:r="time",live:n=!0,minPeriod:o=0,maxPeriod:i=Ji,title:s,now:a=eN,...l}){const[c,u]=C.useState(a());C.useEffect(()=>{if(!n)return;const T=(()=>{const V=Qi(e).valueOf();if(!V)return console.warn("[react-timeago] Invalid Date provided"),0;const E=Math.round(Math.abs(c-V)/1e3),P=E{u(a())},N):0})();return()=>{T&&clearTimeout(T)}},[e,n,i,o,a,c]),C.useEffect(()=>{u(a())},[e]);const d=r,g=Qi(e).valueOf();if(!g)return null;const f=Math.round(Math.abs(c-g)/1e3),p=g"u"?typeof e=="string"?e:Qi(e).toISOString().substring(0,16).replace("T"," "):s,k=d==="time"?{...l,dateTime:Qi(e).toISOString()}:l,y=(O=O,T=T,V=V,E=g,P=go,N=N)=>go(O,T,V),S=t||go;let b;try{b=S(m,v,p,g,y,a),b||(b=go(m,v,p,g,y,a))}catch(O){console.error("[react-timeago] Formatter threw an error:",O),b=go(m,v,p)}return D.createElement(d,wl({},k,{title:x}),b)}var zp={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Dp=C.createContext&&C.createContext(zp),tN=["attr","size","title"];function rN(e,t){if(e==null)return{};var r=nN(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function nN(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function es(){return es=Object.assign?Object.assign.bind():function(e){for(var t=1;tC.createElement(t.tag,ts({key:r},t.attr),$p(t.child)))}function re(e){return t=>C.createElement(aN,es({attr:ts({},e.attr)},t),$p(e.child))}function aN(e){var t=r=>{var{attr:n,size:o,title:i}=e,s=rN(e,tN),a=o||r.size||"1em",l;return r.className&&(l=r.className),e.className&&(l=(l?l+" ":"")+e.className),C.createElement("svg",es({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,s,{className:l,style:ts(ts({color:e.color||r.color},r.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&C.createElement("title",null,i),e.children)};return Dp!==void 0?C.createElement(Dp.Consumer,null,r=>t(r)):t(zp)}function lN(e){return re({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 cN(e){return re({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 Wp(e){return re({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 uN(e){return re({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 dN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 3h6v6"},child:[]},{tag:"path",attr:{d:"M10 14 21 3"},child:[]},{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},child:[]}]})(e)}function Bp(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 12H3"},child:[]},{tag:"path",attr:{d:"M16 6H3"},child:[]},{tag:"path",attr:{d:"M16 18H3"},child:[]},{tag:"path",attr:{d:"M21 12h-6"},child:[]}]})(e)}function Hp(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 12H3"},child:[]},{tag:"path",attr:{d:"M16 6H3"},child:[]},{tag:"path",attr:{d:"M16 18H3"},child:[]},{tag:"path",attr:{d:"M18 9v6"},child:[]},{tag:"path",attr:{d:"M21 12h-6"},child:[]}]})(e)}function hN(e){return re({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 fN(e){return re({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 El=C.forwardRef((e,t)=>h.jsx(kt,{"aria-label":"Close",ref:t,variant:"ghost",...e,children:e.children??h.jsx(fN,{})})),gN=C.forwardRef((e,t)=>{const{children:r,closable:n,endElement:o,icon:i,onClose:s,startElement:a,title:l,...c}=e;return h.jsxs(L2,{ref:t,...c,alignItems:"center",children:[a??h.jsx(M2,{children:i}),r?h.jsxs(z2,{children:[h.jsx(tg,{children:l}),h.jsx(F2,{children:r})]}):h.jsx(tg,{flex:"1",children:l}),o,n?h.jsx(El,{alignSelf:"flex-start",insetEnd:"-2",onClick:s,pos:"relative",size:"sm",top:"-2"}):void 0]})}),pN=kk({pauseOnPageIdle:!0,placement:"bottom-end"}),mN=C.forwardRef((e,t)=>{const{children:r,endElement:n,endElementProps:o,startElement:i,startElementProps:s,...a}=e;return h.jsxs(rg,{ref:t,...a,children:[i?h.jsx(cg,{pointerEvents:"none",...s,children:i}):void 0,C.cloneElement(r,{...i&&{ps:"calc(var(--input-height) - 6px)"},...n&&{pe:"calc(var(--input-height) - 6px)"},...r.props}),n?h.jsx(cg,{placement:"end",...o,children:n}):void 0]})}),vN=({block:e="start",inline:t="nearest"})=>{const[r,n]=C.useState(()=>window.location.hash);return C.useEffect(()=>{const o=()=>n(window.location.hash);return window.addEventListener("hashchange",o),()=>window.removeEventListener("hashchange",o)},[]),C.useEffect(()=>{if(r){const o=document.getElementById(r.slice(1));o&&o.scrollIntoView({behavior:"auto",block:e,inline:t})}},[r,e,t]),null},bN=C.forwardRef((e,t)=>{const{portalled:r=!0,portalRef:n,...o}=e;return h.jsx(er,{container:n,disabled:!r,children:h.jsx(tI,{children:h.jsx(rI,{...o,ref:t})})})}),yN=C.forwardRef((e,t)=>{const{children:r,item:n,...o}=e;return h.jsxs(iI,{item:n,...o,ref:t,children:[r,h.jsx(sI,{})]},n.value)}),xN=C.forwardRef((e,t)=>h.jsx(Z2,{...e,positioning:{sameWidth:!0,...e.positioning},ref:t})),SN=C.forwardRef((e,t)=>{const{children:r,clearable:n,isActive:o,triggerProps:i,...s}=e;return h.jsxs(cI,{...s,children:[h.jsx(eI,{ref:t,...i,children:r}),h.jsxs(aI,{_rtl:{bottom:0,left:0,right:"auto",top:0},children:[n?h.jsx(oI,{asChild:!0,children:h.jsx(El,{focusRingWidth:"2px",focusVisibleRing:"inside",pointerEvents:"auto",size:"xs",variant:"plain"})}):void 0,h.jsx(lI,{})]})]})}),CN=C.forwardRef((e,t)=>{const{children:r,...n}=e;return h.jsx(nI,{...n,ref:t,children:h.jsx(uI,{children:o=>{const i=o.selectedItems;return i.length===0?e.placeholder:r?r(i):i.length===1?o.collection.stringifyItem(i[0]):`${i.length} selected`}})})}),vo={Content:bN,Item:yN,Root:xN,Trigger:SN,ValueText:CN},Up=({error:e})=>{const t=e;if(!t)return;const r=t.body?.detail;let n;return r!==void 0&&(typeof r=="string"?n=r:Array.isArray(r)?n=r.map(o=>`${o.loc.join(".")} ${o.msg}`):n=Object.keys(r).map(o=>`${o}: ${r[o]}`)),h.jsx(gN,{status:"error",children:h.jsxs(_i,{align:"start",flexDirection:"column",gap:2,mt:-1,children:[t.status," ",t.message,n===t.message?void 0:h.jsx(He,{whiteSpace:"preserve",wordBreak:"break-all",children:n})]})})};function jp(e){return re({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 kN(e){return re({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 wN(e){return re({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 EN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"},child:[]},{tag:"path",attr:{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"},child:[]}]})(e)}function ON(e){return re({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 IN(e){return re({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"11",cy:"11",r:"8"},child:[]},{tag:"line",attr:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"},child:[]}]})(e)}function TN(e){return re({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 PN(e){return re({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 Gp(e){return re({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 NN(e){return re({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 re({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 VN=({state:e,...t})=>{switch(e){case"deferred":return h.jsx(Gp,{...t});case"failed":return h.jsx(NN,{...t});case"queued":return h.jsx(AN,{...t});case"removed":return h.jsx(PN,{...t});case"restarting":return h.jsx(ON,{...t});case"running":return h.jsx(jp,{...t});case"scheduled":return h.jsx(wN,{...t});case"skipped":return h.jsx(TN,{...t});case"success":return h.jsx(cN,{...t});case"up_for_reschedule":return h.jsx(lN,{...t});case"up_for_retry":return h.jsx(hN,{...t});case"upstream_failed":return h.jsx(uN,{...t});default:return h.jsx(Wp,{...t})}},RN=D.forwardRef(({children:e,state:t,...r},n)=>h.jsxs(Ja,{borderRadius:"full",colorPalette:t===null?"none":t,fontSize:"sm",px:e===void 0?1:2,py:1,ref:n,variant:"solid",...r,children:[t===void 0?void 0:h.jsx(VN,{state:t}),e]})),qp=5e3,_N=e=>{const[t,r]=C.useState(0);return C.useEffect(()=>{if(!e.current)return;const n=new ResizeObserver(o=>{for(const i of o)r(i.contentRect.width)});return n.observe(e.current),()=>{n.disconnect()}},[e]),t},LN=()=>{const{data:e,error:t}=GP(void 0,{enabled:!0,refetchInterval:qp});return e?.jobs&&e.jobs.length>0?h.jsx(Tn,{p:2,children:h.jsxs(mg,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[h.jsx(vg,{children:h.jsxs(Li,{children:[h.jsx(Oe,{children:"Dag ID"}),h.jsx(Oe,{children:"Run ID"}),h.jsx(Oe,{children:"Task ID"}),h.jsx(Oe,{children:"Map Index"}),h.jsx(Oe,{children:"Try Number"}),h.jsx(Oe,{children:"State"}),h.jsx(Oe,{children:"Queue"}),h.jsx(Oe,{children:"Queued DTTM"}),h.jsx(Oe,{children:"Edge Worker"}),h.jsx(Oe,{children:"Last Update"})]})}),h.jsx(bg,{children:e.jobs.map(r=>h.jsxs(Li,{children:[h.jsx(Ie,{children:h.jsx(st.Link,{to:`/dags/${r.dag_id}`,children:r.dag_id})}),h.jsx(Ie,{children:h.jsx(st.Link,{to:`/dags/${r.dag_id}/runs/${r.run_id}`,children:r.run_id})}),h.jsx(Ie,{children:r.map_index>=0?h.jsx(st.Link,{to:`/dags/${r.dag_id}/runs/${r.run_id}/tasks/${r.task_id}/mapped/${r.map_index}?try_number=${r.try_number}`,children:r.task_id}):h.jsx(st.Link,{to:`/dags/${r.dag_id}/runs/${r.run_id}/tasks/${r.task_id}?try_number=${r.try_number}`,children:r.task_id})}),h.jsx(Ie,{children:r.map_index>=0?r.map_index:"-"}),h.jsx(Ie,{children:r.try_number}),h.jsx(Ie,{children:h.jsx(RN,{state:r.state,children:r.state})}),h.jsx(Ie,{children:r.queue}),h.jsx(Ie,{children:r.queued_dttm?h.jsx(Zi,{date:r.queued_dttm,live:!1}):void 0}),h.jsx(Ie,{children:h.jsx(st.Link,{to:`../worker#${r.edge_worker}`,children:r.edge_worker})}),h.jsx(Ie,{children:r.last_update?h.jsx(Zi,{date:r.last_update,live:!1}):void 0})]},`${r.dag_id}.${r.run_id}.${r.task_id}.${r.map_index}.${r.try_number}`))})]})}):e?h.jsx(He,{as:"div",pl:4,pt:1,children:"Currently no jobs running. Start a Dag and then all active jobs should show up here. Note that after some (configurable) time, jobs are purged from the list."}):t?h.jsx(He,{as:"div",pl:4,pt:1,children:h.jsx(Up,{error:t})}):h.jsx(He,{as:"div",pl:4,pt:1,children:"Loading..."})},Kp=["shift","alt","meta","mod","ctrl","control"],FN={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function nr(e){return(FN[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function Yp(e){return Kp.includes(e)}function Ol(e,t=","){return e.toLowerCase().split(t)}function Il(e,t="+",r=">",n=!1,o){let i=[],s=!1;e=e.trim(),e.includes(r)?(s=!0,i=e.toLocaleLowerCase().split(r).map(c=>nr(c))):i=e.toLocaleLowerCase().split(t).map(c=>nr(c));const a={alt:i.includes("alt"),ctrl:i.includes("ctrl")||i.includes("control"),shift:i.includes("shift"),meta:i.includes("meta"),mod:i.includes("mod"),useKey:n},l=i.filter(c=>!Kp.includes(c));return{...a,keys:l,description:o,isSequence:s,hotkey:e}}typeof document<"u"&&(document.addEventListener("keydown",e=>{e.code!==void 0&&Xp([nr(e.code)])}),document.addEventListener("keyup",e=>{e.code!==void 0&&Qp([nr(e.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{Bt.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{Bt.clear()},0)}));const Bt=new Set;function Tl(e){return Array.isArray(e)}function zN(e,t=","){return(Tl(e)?e:e.split(t)).every(r=>Bt.has(r.trim().toLowerCase()))}function Xp(e){const t=Array.isArray(e)?e:[e];Bt.has("meta")&&Bt.forEach(r=>!Yp(r)&&Bt.delete(r.toLowerCase())),t.forEach(r=>Bt.add(r.toLowerCase()))}function Qp(e){const t=Array.isArray(e)?e:[e];e==="meta"?Bt.clear():t.forEach(r=>Bt.delete(r.toLowerCase()))}function DN(e,t,r){(typeof r=="function"&&r(e,t)||r===!0)&&e.preventDefault()}function MN(e,t,r){return typeof r=="function"?r(e,t):r===!0||r===void 0}const $N=["input","textarea","select","searchbox","slider","spinbutton","menuitem","menuitemcheckbox","menuitemradio","option","radio","textbox"];function WN(e){return Jp(e,$N)}function Jp(e,t=!1){const{target:r,composed:n}=e;let o,i;return BN(r)&&n?(o=e.composedPath()[0]&&e.composedPath()[0].tagName,i=e.composedPath()[0]&&e.composedPath()[0].role):(o=r&&r.tagName,i=r&&r.role),Tl(t)?!!(o&&t&&t.some(s=>s.toLowerCase()===o.toLowerCase()||s===i)):!!(o&&t&&t)}function BN(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function HN(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a '),!0):t?e.some(r=>t.includes(r))||e.includes("*"):!0}const UN=(e,t,r=!1)=>{const{alt:n,meta:o,mod:i,shift:s,ctrl:a,keys:l,useKey:c}=t,{code:u,key:d,ctrlKey:g,metaKey:f,shiftKey:p,altKey:m}=e,v=nr(u);if(c&&l?.length===1&&l.includes(d))return!0;if(!l?.includes(v)&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(v))return!1;if(!r){if(n!==m&&v!=="alt"||s!==p&&v!=="shift")return!1;if(i){if(!f&&!g)return!1}else if(o!==f&&v!=="meta"&&v!=="os"||a!==g&&v!=="ctrl"&&v!=="control")return!1}return l&&l.length===1&&l.includes(v)?!0:l?zN(l):!l},jN=C.createContext(void 0),GN=()=>C.useContext(jN);function Zp(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce((r,n)=>r&&Zp(e[n],t[n]),!0):e===t}const qN=C.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),KN=()=>C.useContext(qN);function YN(e){const t=C.useRef(void 0);return Zp(t.current,e)||(t.current=e),t.current}const em=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},XN=typeof window<"u"?C.useLayoutEffect:C.useEffect;function QN(e,t,r,n){const o=C.useRef(null),i=C.useRef(!1),s=Array.isArray(r)?Array.isArray(n)?void 0:n:r,a=Tl(e)?e.join(s?.delimiter):e,l=Array.isArray(r)?r:Array.isArray(n)?n:void 0,c=C.useCallback(t,l??[]),u=C.useRef(c);l?u.current=c:u.current=t;const d=YN(s),{activeScopes:g}=KN(),f=GN();return XN(()=>{if(d?.enabled===!1||!HN(g,d?.scopes))return;let p=[],m;const v=(S,b=!1)=>{if(!(WN(S)&&!Jp(S,d?.enableOnFormTags))){if(o.current!==null){const O=o.current.getRootNode();if((O instanceof Document||O instanceof ShadowRoot)&&O.activeElement!==o.current&&!o.current.contains(O.activeElement)){em(S);return}}S.target?.isContentEditable&&!d?.enableOnContentEditable||Ol(a,d?.delimiter).forEach(O=>{if(O.includes(d?.splitKey??"+")&&O.includes(d?.sequenceSplitKey??">")){console.warn(`Hotkey ${O} contains both ${d?.splitKey??"+"} and ${d?.sequenceSplitKey??">"} which is not supported.`);return}const T=Il(O,d?.splitKey,d?.sequenceSplitKey,d?.useKey,d?.description);if(T.isSequence){m=setTimeout(()=>{p=[]},d?.sequenceTimeoutMs??1e3);const V=T.useKey?S.key:nr(S.code);if(Yp(V.toLowerCase()))return;p.push(V);const E=T.keys?.[p.length-1];if(V!==E){p=[],m&&clearTimeout(m);return}p.length===T.keys?.length&&(u.current(S,T),m&&clearTimeout(m),p=[])}else if(UN(S,T,d?.ignoreModifiers)||T.keys?.includes("*")){if(d?.ignoreEventWhen?.(S)||b&&i.current)return;if(DN(S,T,d?.preventDefault),!MN(S,T,d?.enabled)){em(S);return}u.current(S,T),b||(i.current=!0)}})}},x=S=>{S.code!==void 0&&(Xp(nr(S.code)),(d?.keydown===void 0&&d?.keyup!==!0||d?.keydown)&&v(S))},k=S=>{S.code!==void 0&&(Qp(nr(S.code)),i.current=!1,d?.keyup&&v(S,!0))},y=o.current||s?.document||document;return y.addEventListener("keyup",k,s?.eventListenerOptions),y.addEventListener("keydown",x,s?.eventListenerOptions),f&&Ol(a,d?.delimiter).forEach(S=>f.addHotkey(Il(S,d?.splitKey,d?.sequenceSplitKey,d?.useKey,d?.description))),()=>{y.removeEventListener("keyup",k,s?.eventListenerOptions),y.removeEventListener("keydown",x,s?.eventListenerOptions),f&&Ol(a,d?.delimiter).forEach(S=>f.removeHotkey(Il(S,d?.splitKey,d?.sequenceSplitKey,d?.useKey,d?.description))),p=[],m&&clearTimeout(m)}},[a,d,g]),o}function JN(e,t,r,n){var o=this,i=C.useRef(null),s=C.useRef(0),a=C.useRef(0),l=C.useRef(null),c=C.useRef([]),u=C.useRef(),d=C.useRef(),g=C.useRef(e),f=C.useRef(!0);g.current=e;var p=typeof window<"u",m=!t&&t!==0&&p;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var v=!!(r=r||{}).leading,x=!("trailing"in r)||!!r.trailing,k="maxWait"in r,y="debounceOnServer"in r&&!!r.debounceOnServer,S=k?Math.max(+r.maxWait||0,t):null;C.useEffect(function(){return f.current=!0,function(){f.current=!1}},[]);var b=C.useMemo(function(){var O=function(A){var L=c.current,z=u.current;return c.current=u.current=null,s.current=A,a.current=a.current||A,d.current=g.current.apply(z,L)},T=function(A,L){m&&cancelAnimationFrame(l.current),l.current=m?requestAnimationFrame(A):setTimeout(A,L)},V=function(A){if(!f.current)return!1;var L=A-i.current;return!i.current||L>=t||L<0||k&&A-s.current>=S},E=function(A){return l.current=null,x&&c.current?O(A):(c.current=u.current=null,d.current)},P=function A(){var L=Date.now();if(v&&a.current===s.current&&N(),V(L))return E(L);if(f.current){var z=t-(L-i.current),U=k?Math.min(z,S-(L-s.current)):z;T(A,U)}},N=function(){},w=function(){if(p||y){var A=Date.now(),L=V(A);if(c.current=[].slice.call(arguments),u.current=o,i.current=A,L){if(!l.current&&f.current)return s.current=i.current,T(P,t),v?O(i.current):d.current;if(k)return T(P,t),O(i.current)}return l.current||T(P,t),d.current}};return w.cancel=function(){var A=l.current;A&&(m?cancelAnimationFrame(l.current):clearTimeout(l.current)),s.current=0,c.current=i.current=u.current=l.current=null},w.isPending=function(){return!!l.current},w.flush=function(){return l.current?E(Date.now()):d.current},w},[v,k,t,S,x,m,p,y,n]);return b}const ZN=200,tm=({buttonProps:e,defaultValue:t,groupProps:r,hideAdvanced:n=!1,hotkeyDisabled:o=!1,onChange:i,placeHolder:s})=>{const a=JN(g=>i(g),ZN),l=C.useRef(null),[c,u]=C.useState(t),d=g=>{u(g.target.value),a(g.target.value)};return QN("mod+k",()=>{l.current?.focus()},{enabled:!o,preventDefault:!0}),h.jsx(mN,{...r,colorPalette:"brand",endElement:h.jsxs(h.Fragment,{children:[c?h.jsx(El,{"aria-label":"Clear search",colorPalette:"brand","data-testid":"clear-search",onClick:()=>{u(""),i("")},size:"xs"}):void 0,n?void 0:h.jsx(Ee,{fontWeight:"normal",height:28,variant:"ghost",...e,children:"Advanced"}),!o&&h.jsx(ug,{size:"sm",children:"⌘K"})]}),startElement:h.jsx(IN,{}),children:h.jsx(lg,{"data-testid":"search-workers",onChange:d,placeholder:s,pr:150,ref:l,value:c})})},e5=({onQueueUpdate:e,workerName:t})=>{const{onClose:r,onOpen:n,open:o}=dr(),[i,s]=C.useState(""),a=YP({onError:c=>{e({description:`Unable to add queue to worker ${t}: ${c}`,title:"Add Queue Failed",type:"error"})},onSuccess:()=>{e({description:`Queue "${i}" was added to worker ${t}.`,title:"Queue Added",type:"success"}),r(),s("")}}),l=()=>{if(!i.trim()){e({description:"Please enter a queue name.",title:"Invalid Input",type:"error"});return}a.mutate({queueName:i.trim(),workerName:t})};return h.jsxs(h.Fragment,{children:[h.jsx(kt,{size:"sm",variant:"ghost",onClick:n,"aria-label":"Add Queue",title:"Add Queue",colorPalette:"success",children:h.jsx(Hp,{})}),h.jsx(Or,{onOpenChange:r,open:o,size:"md",children:h.jsxs(er,{children:[h.jsx(Vr,{}),h.jsx(Ir,{children:h.jsxs(Tr,{children:[h.jsx(Lr,{children:h.jsxs(Pr,{children:["Add Queue to ",t]})}),h.jsx(Rr,{children:h.jsxs(so,{gap:4,align:"stretch",children:[h.jsx(He,{children:"Enter the name of the queue to add to this worker:"}),h.jsx(lg,{placeholder:"Queue name",value:i,onChange:c=>s(c.target.value),onKeyDown:c=>{c.key==="Enter"&&l()}})]})}),h.jsxs(_r,{children:[h.jsx(Ar,{asChild:!0,children:h.jsx(Ee,{variant:"outline",children:"Cancel"})}),h.jsxs(Ee,{onClick:l,colorPalette:"success",loading:a.isPending,loadingText:"Adding queue...",disabled:!i.trim(),children:[h.jsx(Hp,{}),"Add Queue"]})]}),h.jsx(Nr,{asChild:!0,children:h.jsx(tr,{size:"sm"})})]})})]})})]})},t5=({onEditComment:e,workerName:t})=>{const{onClose:r,onOpen:n,open:o}=dr(),[i,s]=C.useState(""),a=XP({onError:c=>{e({description:`Unable to update comments for worker ${t}: ${c}`,title:"Updating Comments failed",type:"error"})},onSuccess:()=>{e({description:`Worker maintenance comments for ${t} were updated.`,title:"Maintenance Comments updated",type:"success"}),r()}}),l=()=>{a.mutate({requestBody:{maintenance_comment:i},workerName:t})};return h.jsxs(h.Fragment,{children:[h.jsx(kt,{size:"sm",variant:"ghost","aria-label":"Edit Comments",title:"Edit Comments",onClick:n,colorPalette:"warning",children:h.jsx(EN,{})}),h.jsx(Or,{onOpenChange:r,open:o,size:"md",children:h.jsxs(er,{children:[h.jsx(Vr,{}),h.jsx(Ir,{children:h.jsxs(Tr,{children:[h.jsx(Lr,{children:h.jsxs(Pr,{children:["Edit maintenance comments for worker ",t]})}),h.jsx(Rr,{children:h.jsx(el,{placeholder:"Change maintenance comment (required)",value:i,onChange:c=>s(c.target.value),required:!0,maxLength:1024,size:"sm"})}),h.jsxs(_r,{children:[h.jsx(Ar,{asChild:!0,children:h.jsx(Ee,{variant:"outline",children:"Cancel"})}),h.jsx(Ee,{onClick:l,disabled:!i.trim(),children:"Update Comments"})]}),h.jsx(Nr,{asChild:!0,children:h.jsx(tr,{size:"sm"})})]})})]})})]})};function rm(e){return re({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 r5(e){return re({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 n5=({onEnterMaintenance:e,workerName:t})=>{const{onClose:r,onOpen:n,open:o}=dr(),[i,s]=C.useState(""),a=qP({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 h.jsxs(h.Fragment,{children:[h.jsx(kt,{size:"sm",variant:"ghost","aria-label":"Enter Maintenance",title:"Enter Maintenance",onClick:n,colorPalette:"warning",children:h.jsx(rm,{})}),h.jsx(Or,{onOpenChange:r,open:o,size:"md",children:h.jsxs(er,{children:[h.jsx(Vr,{}),h.jsx(Ir,{children:h.jsxs(Tr,{children:[h.jsx(Lr,{children:h.jsxs(Pr,{children:["Set maintenance for worker ",t]})}),h.jsx(Rr,{children:h.jsx(el,{placeholder:"Enter maintenance comment (required)",value:i,onChange:c=>s(c.target.value),required:!0,maxLength:1024,size:"sm"})}),h.jsxs(_r,{children:[h.jsx(Ar,{asChild:!0,children:h.jsx(Ee,{variant:"outline",children:"Cancel"})}),h.jsx(Ee,{onClick:l,disabled:!i.trim(),children:"Confirm Maintenance"})]}),h.jsx(Nr,{asChild:!0,children:h.jsx(tr,{size:"sm"})})]})})]})})]})};function o5(e){return re({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 i5=({onExitMaintenance:e,workerName:t})=>{const{onClose:r,onOpen:n,open:o}=dr(),i=QP({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"}),r()}}),s=()=>{i.mutate({workerName:t})};return h.jsxs(h.Fragment,{children:[h.jsx(kt,{size:"sm",variant:"ghost",onClick:n,"aria-label":"Exit Maintenance",title:"Exit Maintenance",colorPalette:"warning",children:h.jsx(o5,{})}),h.jsx(Or,{onOpenChange:r,open:o,size:"md",children:h.jsxs(er,{children:[h.jsx(Vr,{}),h.jsx(Ir,{children:h.jsxs(Tr,{children:[h.jsx(Lr,{children:h.jsxs(Pr,{children:["Exit maintenance for worker ",t]})}),h.jsx(Rr,{children:h.jsxs(He,{children:["Are you sure you want to exit maintenance mode for worker ",t,"?"]})}),h.jsxs(_r,{children:[h.jsx(Ar,{asChild:!0,children:h.jsx(Ee,{variant:"outline",children:"No"})}),h.jsx(Ee,{onClick:s,children:"Yes"})]}),h.jsx(Nr,{asChild:!0,children:h.jsx(tr,{size:"sm"})})]})})]})})]})},s5=({onQueueUpdate:e,worker:t})=>{const{onClose:r,onOpen:n,open:o}=dr(),[i,s]=C.useState(""),a=ZP({onError:u=>{e({description:`Unable to remove queue from worker ${t.worker_name}: ${u}`,title:"Remove Queue Failed",type:"error"})},onSuccess:()=>{e({description:`Queue "${i}" was removed from worker ${t.worker_name}.`,title:"Queue Removed",type:"success"}),r(),s("")}}),l=()=>{if(!i){e({description:"Please select a queue to remove.",title:"Invalid Selection",type:"error"});return}a.mutate({queueName:i,workerName:t.worker_name})},c=t.queues||[];return c.length===0?null:h.jsxs(h.Fragment,{children:[h.jsx(kt,{size:"sm",variant:"ghost",onClick:n,"aria-label":"Remove Queue",title:"Remove Queue",colorPalette:"danger",children:h.jsx(Bp,{})}),h.jsx(Or,{onOpenChange:r,open:o,size:"md",children:h.jsxs(er,{children:[h.jsx(Vr,{}),h.jsx(Ir,{children:h.jsxs(Tr,{children:[h.jsx(Lr,{children:h.jsxs(Pr,{children:["Remove Queue from ",t.worker_name]})}),h.jsx(Rr,{children:h.jsxs(so,{gap:4,align:"stretch",children:[h.jsx(He,{children:"Select a queue to remove from this worker:"}),h.jsx(so,{gap:2,align:"stretch",children:h.jsx(K2,{each:c,children:u=>h.jsx(Ee,{variant:i===u?"solid":"outline",colorPalette:i===u?"blue":"gray",onClick:()=>s(u),justifyContent:"flex-start",children:u},u)})})]})}),h.jsxs(_r,{children:[h.jsx(Ar,{asChild:!0,children:h.jsx(Ee,{variant:"outline",children:"Cancel"})}),h.jsxs(Ee,{onClick:l,colorPalette:"danger",loading:a.isPending,loadingText:"Removing queue...",disabled:!i,children:[h.jsx(Bp,{}),"Remove Queue"]})]}),h.jsx(Nr,{asChild:!0,children:h.jsx(tr,{size:"sm"})})]})})]})})]})};function nm(e){return re({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M170.5 51.6L151.5 80l145 0-19-28.4c-1.5-2.2-4-3.6-6.7-3.6l-93.7 0c-2.7 0-5.2 1.3-6.7 3.6zm147-26.6L354.2 80 368 80l48 0 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-8 0 0 304c0 44.2-35.8 80-80 80l-224 0c-44.2 0-80-35.8-80-80l0-304-8 0c-13.3 0-24-10.7-24-24S10.7 80 24 80l8 0 48 0 13.8 0 36.7-55.1C140.9 9.4 158.4 0 177.1 0l93.7 0c18.7 0 36.2 9.4 46.6 24.9zM80 128l0 304c0 17.7 14.3 32 32 32l224 0c17.7 0 32-14.3 32-32l0-304L80 128zm80 64l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16z"},child:[]}]})(e)}const om=({onDelete:e,workerName:t})=>{const{onClose:r,onOpen:n,open:o}=dr(),i=JP({onError:a=>{e({description:`Unable to delete worker ${t}: ${a}`,title:"Delete Worker Failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} has been deleted from the system.`,title:"Worker Deleted",type:"success"}),r()}}),s=()=>{i.mutate({workerName:t})};return h.jsxs(h.Fragment,{children:[h.jsx(kt,{size:"sm",variant:"ghost",onClick:n,"aria-label":"Delete Worker",title:"Delete Worker",colorPalette:"danger",children:h.jsx(nm,{})}),h.jsx(Or,{onOpenChange:r,open:o,size:"md",children:h.jsxs(er,{children:[h.jsx(Vr,{}),h.jsx(Ir,{children:h.jsxs(Tr,{children:[h.jsx(Lr,{children:h.jsxs(Pr,{children:["Delete worker ",t]})}),h.jsxs(Rr,{children:[h.jsxs(He,{children:["Are you sure you want to delete worker ",t,"?"]}),h.jsx(He,{fontSize:"sm",color:"red.500",mt:2,children:"This will permanently remove the worker record from the system. This action cannot be undone."})]}),h.jsxs(_r,{children:[h.jsx(Ar,{asChild:!0,children:h.jsx(Ee,{variant:"outline",children:"Cancel"})}),h.jsxs(Ee,{onClick:s,colorPalette:"danger",loading:i.isPending,loadingText:"Deleting...",children:[h.jsx(nm,{style:{marginRight:"8px"}}),"Delete Worker"]})]}),h.jsx(Nr,{asChild:!0,children:h.jsx(tr,{size:"sm"})})]})})]})})]})};function im(e){return re({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z"},child:[]}]})(e)}const sm=({onShutdown:e,workerName:t})=>{const{onClose:r,onOpen:n,open:o}=dr(),i=KP({onError:a=>{e({description:`Unable to request shutdown for worker ${t}: ${a}`,title:"Shutdown Request Failed",type:"error"})},onSuccess:()=>{e({description:`Worker ${t} was requested to shutdown.`,title:"Shutdown Request Sent",type:"success"}),r()}}),s=()=>{i.mutate({workerName:t})};return h.jsxs(h.Fragment,{children:[h.jsx(kt,{size:"sm",variant:"ghost",onClick:n,"aria-label":"Shutdown Worker",title:"Shutdown Worker",colorPalette:"danger",children:h.jsx(im,{})}),h.jsx(Or,{onOpenChange:r,open:o,size:"md",children:h.jsxs(er,{children:[h.jsx(Vr,{}),h.jsx(Ir,{children:h.jsxs(Tr,{children:[h.jsx(Lr,{children:h.jsxs(Pr,{children:["Shutdown worker ",t]})}),h.jsxs(Rr,{children:[h.jsxs(He,{children:["Are you sure you want to request shutdown for worker ",t,"?"]}),h.jsx(He,{fontSize:"sm",color:"red.500",mt:2,children:"This stops the worker on the remote edge. You can't restart it from the UI — you need to start it remotely instead."})]}),h.jsxs(_r,{children:[h.jsx(Ar,{asChild:!0,children:h.jsx(Ee,{variant:"outline",children:"Cancel"})}),h.jsxs(Ee,{onClick:s,colorPalette:"danger",loading:i.isPending,loadingText:"Shutting down...",children:[h.jsx(im,{style:{marginRight:"8px"}}),"Shutdown Worker"]})]}),h.jsx(Nr,{asChild:!0,children:h.jsx(tr,{size:"sm"})})]})})]})})]})},a5=({onOperations:e,worker:t})=>{const r=t.worker_name,n=t.state,o=i=>{pN.create(i),e()};return n==="idle"||n==="running"?h.jsxs(io,{justifyContent:"end",gap:2,children:[h.jsx(e5,{onQueueUpdate:o,workerName:r}),h.jsx(s5,{onQueueUpdate:o,worker:t}),h.jsx(n5,{onEnterMaintenance:o,workerName:r}),h.jsx(sm,{onShutdown:o,workerName:r})]}):n==="maintenance pending"||n==="maintenance mode"||n==="maintenance request"||n==="offline maintenance"?h.jsxs(so,{gap:2,align:"stretch",children:[h.jsx(Tn,{fontSize:"sm",whiteSpace:"pre-wrap",children:t.maintenance_comments||"No comment"}),h.jsxs(io,{justifyContent:"end",gap:2,children:[h.jsx(t5,{onEditComment:o,workerName:r}),h.jsx(i5,{onExitMaintenance:o,workerName:r}),n==="offline maintenance"?h.jsx(om,{onDelete:o,workerName:r}):h.jsx(sm,{onShutdown:o,workerName:r})]})]}):n==="offline"||n==="unknown"?h.jsx(io,{justifyContent:"end",children:h.jsx(om,{onDelete:o,workerName:r})}):null};function l5(e){return re({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 c5(e){return re({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 u5(e){return re({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 d5=({state:e,...t})=>{switch(e){case"starting":return h.jsx(Gp,{...t});case"running":return h.jsx(jp,{...t});case"idle":return h.jsx(l5,{...t});case"shutdown request":case"terminating":return h.jsx(kN,{...t});case"offline":return h.jsx(c5,{...t});case"unknown":return h.jsx(u5,{...t});case"maintenance request":case"maintenance pending":case"maintenance exit":return h.jsx(r5,{...t});case"maintenance mode":case"offline maintenance":return h.jsx(rm,{...t});default:return h.jsx(Wp,{...t})}},h5=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"}},f5=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 is issued. It will be picked-up on the next heartbeat, tasks will drain and then worker will terminate.";case"terminating":return"Edge Worker is completing work (draining running tasks) 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 or got disconnected.";case"maintenance request":return"Worker was requested to enter maintenance mode. Once worker receives this message it will pause fetching tasks and drain tasks.";case"maintenance pending":return"Edge Worker received the request for maintenance, waiting for tasks to finish. Once tasks are finished will move to 'maintenance mode'.";case"maintenance mode":return"Edge Worker is in maintenance mode. It is online but pauses fetching tasks.";case"maintenance exit":return"Request Worker is requested to exit maintenance mode. Once the worker receives this state it will un-pause and fetch new tasks.";case"offline maintenance":return"Worker was shut down in maintenance mode. It will be in maintenance mode when restarted.";default:return}},Pl=D.forwardRef(({children:e,state:t,...r},n)=>h.jsxs(Ja,{borderRadius:"full",colorPalette:h5(t),fontSize:"sm",px:e===void 0?1:2,py:1,ref:n,title:f5(t),variant:"solid",...r,children:[t===void 0?void 0:h.jsx(d5,{state:t}),e]})),g5={enum:["starting","running","idle","shutdown request","terminating","offline","unknown","maintenance request","maintenance pending","maintenance mode","maintenance exit","offline maintenance"]},p5=e=>e.split(/[\s_]+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" "),am=lS({items:[{label:"All States",value:"all"},...g5.enum.map(e=>({label:p5(e),value:e}))]}),m5=()=>{const[e,t]=C.useState(""),[r,n]=C.useState(""),[o,i]=C.useState([]),s=o.length>0,{data:a,error:l,refetch:c}=jP({queueNamePattern:r||void 0,state:s?o:void 0,workerNamePattern:e||void 0},void 0,{enabled:!0,refetchInterval:qp}),u=f=>{t(f)},d=f=>{n(f)},g=C.useCallback(({value:f})=>{const[p,...m]=f;(p===void 0||p==="all")&&m.length===0?i([]):i(f.filter(v=>v!=="all"))},[]);return h.jsxs(Tn,{p:2,children:[h.jsxs(_i,{gap:4,mb:4,children:[h.jsx(tm,{buttonProps:{disabled:!0},defaultValue:e,hideAdvanced:!0,hotkeyDisabled:!0,onChange:u,placeHolder:"Search workers"}),h.jsx(tm,{buttonProps:{disabled:!0},defaultValue:r,hideAdvanced:!0,hotkeyDisabled:!0,onChange:d,placeHolder:"Search queues"}),h.jsxs(vo.Root,{collection:am,maxW:"450px",multiple:!0,onValueChange:g,value:s?o:["all"],children:[h.jsx(vo.Trigger,{...s?{clearable:!0}:{},colorPalette:"brand",isActive:!!o,children:h.jsx(vo.ValueText,{children:()=>s?h.jsx(_i,{flexWrap:"wrap",fontSize:"sm",gap:"4px",paddingY:"8px",children:o.map(f=>h.jsx(Pl,{state:f,children:f},f))}):"All States"})}),h.jsx(vo.Content,{children:am.items.map(f=>h.jsx(vo.Item,{item:f,children:f.value==="all"?f.label:h.jsx(Pl,{state:f.value,children:f.label})},f.label))})]})]}),l?h.jsx(Up,{error:l}):a?a.workers&&a.workers.length>0?h.jsxs(h.Fragment,{children:[h.jsxs(mg,{size:"sm",interactive:!0,stickyHeader:!0,striped:!0,children:[h.jsx(vg,{children:h.jsxs(Li,{children:[h.jsx(Oe,{children:"Worker Name"}),h.jsx(Oe,{children:"State"}),h.jsx(Oe,{children:"Queues"}),h.jsx(Oe,{children:"First Online"}),h.jsx(Oe,{children:"Last Heartbeat"}),h.jsx(Oe,{children:"Active Jobs"}),h.jsx(Oe,{children:"System Information"}),h.jsx(Oe,{children:"Operations"})]})}),h.jsx(bg,{children:a.workers.map(f=>h.jsxs(Li,{id:f.worker_name,children:[h.jsx(Ie,{children:f.worker_name}),h.jsx(Ie,{children:h.jsx(Pl,{state:f.state,children:f.state})}),h.jsx(Ie,{children:f.queues?h.jsx(fg,{children:f.queues.map(p=>h.jsx(gg,{children:p},p))}):"(all queues)"}),h.jsx(Ie,{children:f.first_online?h.jsx(Zi,{date:f.first_online,live:!1}):void 0}),h.jsx(Ie,{children:f.last_heartbeat?h.jsx(Zi,{date:f.last_heartbeat,live:!1}):void 0}),h.jsx(Ie,{children:f.jobs_active}),h.jsx(Ie,{children:f.sysinfo?h.jsx(fg,{children:Object.entries(f.sysinfo).map(([p,m])=>h.jsxs(gg,{children:[p,": ",m]},p))}):"N/A"}),h.jsx(Ie,{children:h.jsx(a5,{worker:f,onOperations:c})})]},f.worker_name))})]}),h.jsx(vN,{})]}):h.jsxs(He,{as:"div",pl:2,pt:1,children:["No known workers. Start one via ",h.jsx(sg,{children:"airflow edge worker [...]"}),". See"," ",h.jsxs(dg,{target:"_blank",variant:"underline",color:"fg.info",href:"https://airflow.apache.org/docs/apache-airflow-providers-edge3/stable/deployment.html",children:["Edge Worker Deployment docs ",h.jsx(dN,{})]})," ","how to deploy a new worker."]}):h.jsx(He,{as:"div",pl:2,pt:1,children:"Loading..."})]})},v5=({tabs:e})=>{const t=C.useRef(null),r=_N(t);return h.jsx(io,{alignItems:"center",borderBottomWidth:1,mb:2,ref:t,children:e.map(({icon:n,label:o,value:i})=>h.jsx(st.NavLink,{end:!0,title:o,to:i,children:({isActive:s})=>h.jsx(ig,{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:r>600||!n?o:n})},i))})},b5=()=>{const e=[{label:"Edge Worker",value:"worker"},{label:"Edge Jobs",value:"jobs"}];return h.jsxs(Tn,{p:2,children:[h.jsx(v5,{tabs:e}),h.jsxs(st.Routes,{children:[h.jsx(st.Route,{index:!0,element:h.jsx(st.Navigate,{to:"worker",replace:!0})}),h.jsx(st.Route,{path:"worker",element:h.jsx(m5,{})}),h.jsx(st.Route,{path:"jobs",element:h.jsx(LN,{})})]})]})},G=(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}`}}}),y5=Ha({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:G("brand"),danger:G("red"),info:G("blue"),warning:G("amber"),error:G("red"),active:G("blue"),success:G("green"),failed:G("red"),queued:G("stone"),skipped:G("pink"),up_for_reschedule:G("sky"),up_for_retry:G("yellow"),upstream_failed:G("orange"),running:G("cyan"),restarting:G("violet"),deferred:G("purple"),scheduled:G("zinc"),none:G("gray"),removed:G("slate"),red:G("red"),orange:G("orange"),amber:G("amber"),yellow:G("yellow"),lime:G("lime"),green:G("green"),emerald:G("emerald"),teal:G("teal"),cyan:G("cyan"),sky:G("sky"),blue:G("blue"),indigo:G("indigo"),violet:G("violet"),purple:G("purple"),fuchsia:G("fuchsia"),pink:G("pink"),rose:G("rose"),slate:G("slate"),gray:G("gray"),zinc:G("zinc"),neutral:G("neutral"),stone:G("stone")}}}}),x5=Lf(Xf,y5);return()=>{const e=document.querySelector("head > base")?.getAttribute("href")??"",t=new URL(e,globalThis.location.origin);Et.BASE=t.pathname.replace(/\/$/,"");const r=new zI({defaultOptions:{queries:{staleTime:1/0}}});return h.jsx(mv,{value:x5,children:h.jsx(DI,{client:r,children:h.jsx(oT,{children:h.jsx(b5,{})})})})}})); diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/package.json b/providers/edge3/src/airflow/providers/edge3/plugins/www/package.json index 911d5353f5d41..9c2be2e99a68c 100644 --- a/providers/edge3/src/airflow/providers/edge3/plugins/www/package.json +++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/package.json @@ -75,7 +75,10 @@ "vite": "^7.2.4", "vite-plugin-css-injected-by-js": "^3.5.2", "vite-plugin-dts": "^4.5.4", - "vitest": "^4.0.13" + "vitest": "^4.0.13", + "@typescript-eslint/eslint-plugin": "8.50.0", + "@typescript-eslint/utils": "^8.50.0", + "@typescript-eslint/parser": "8.50.0" }, "pnpm": { "onlyBuiltDependencies": [ diff --git a/providers/edge3/src/airflow/providers/edge3/plugins/www/pnpm-lock.yaml b/providers/edge3/src/airflow/providers/edge3/plugins/www/pnpm-lock.yaml index 3ef0a250a3caf..417d1937045ff 100644 --- a/providers/edge3/src/airflow/providers/edge3/plugins/www/pnpm-lock.yaml +++ b/providers/edge3/src/airflow/providers/edge3/plugins/www/pnpm-lock.yaml @@ -75,6 +75,15 @@ importers: '@types/react-dom': specifier: ^19.2.3 version: 19.2.3(@types/react@19.2.6) + '@typescript-eslint/eslint-plugin': + specifier: 8.50.0 + version: 8.50.0(@typescript-eslint/parser@8.50.0(eslint@9.39.1(jiti@1.21.7))(typescript@5.8.3))(eslint@9.39.1(jiti@1.21.7))(typescript@5.8.3) + '@typescript-eslint/parser': + specifier: 8.50.0 + version: 8.50.0(eslint@9.39.1(jiti@1.21.7))(typescript@5.8.3) + '@typescript-eslint/utils': + specifier: ^8.50.0 + version: 8.50.0(eslint@9.39.1(jiti@1.21.7))(typescript@5.8.3) '@vitejs/plugin-react-swc': specifier: ^4.2.2 version: 4.2.2(@swc/helpers@0.5.17)(vite@7.2.4(@types/node@24.10.1)(jiti@1.21.7)) @@ -933,6 +942,14 @@ packages: eslint: ^8.57.0 || ^9.0.0 typescript: '>=4.8.4 <6.0.0' + '@typescript-eslint/eslint-plugin@8.50.0': + resolution: {integrity: sha512-O7QnmOXYKVtPrfYzMolrCTfkezCJS9+ljLdKW/+DCvRsc3UAz+sbH6Xcsv7p30+0OwUbeWfUDAQE0vpabZ3QLg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + '@typescript-eslint/parser': ^8.50.0 + eslint: ^8.57.0 || ^9.0.0 + typescript: '>=4.8.4 <6.0.0' + '@typescript-eslint/parser@8.47.0': resolution: {integrity: sha512-lJi3PfxVmo0AkEY93ecfN+r8SofEqZNGByvHAI3GBLrvt1Cw6H5k1IM02nSzu0RfUafr2EvFSw0wAsZgubNplQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -940,22 +957,45 @@ packages: eslint: ^8.57.0 || ^9.0.0 typescript: '>=4.8.4 <6.0.0' + '@typescript-eslint/parser@8.50.0': + resolution: {integrity: sha512-6/cmF2piao+f6wSxUsJLZjck7OQsYyRtcOZS02k7XINSNlz93v6emM8WutDQSXnroG2xwYlEVHJI+cPA7CPM3Q==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 + typescript: '>=4.8.4 <6.0.0' + '@typescript-eslint/project-service@8.47.0': resolution: {integrity: sha512-2X4BX8hUeB5JcA1TQJ7GjcgulXQ+5UkNb0DL8gHsHUHdFoiCTJoYLTpib3LtSDPZsRET5ygN4qqIWrHyYIKERA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '>=4.8.4 <6.0.0' + '@typescript-eslint/project-service@8.50.0': + resolution: {integrity: sha512-Cg/nQcL1BcoTijEWyx4mkVC56r8dj44bFDvBdygifuS20f3OZCHmFbjF34DPSi07kwlFvqfv/xOLnJ5DquxSGQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + typescript: '>=4.8.4 <6.0.0' + '@typescript-eslint/scope-manager@8.47.0': resolution: {integrity: sha512-a0TTJk4HXMkfpFkL9/WaGTNuv7JWfFTQFJd6zS9dVAjKsojmv9HT55xzbEpnZoY+VUb+YXLMp+ihMLz/UlZfDg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@typescript-eslint/scope-manager@8.50.0': + resolution: {integrity: sha512-xCwfuCZjhIqy7+HKxBLrDVT5q/iq7XBVBXLn57RTIIpelLtEIZHXAF/Upa3+gaCpeV1NNS5Z9A+ID6jn50VD4A==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@typescript-eslint/tsconfig-utils@8.47.0': resolution: {integrity: sha512-ybUAvjy4ZCL11uryalkKxuT3w3sXJAuWhOoGS3T/Wu+iUu1tGJmk5ytSY8gbdACNARmcYEB0COksD2j6hfGK2g==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '>=4.8.4 <6.0.0' + '@typescript-eslint/tsconfig-utils@8.50.0': + resolution: {integrity: sha512-vxd3G/ybKTSlm31MOA96gqvrRGv9RJ7LGtZCn2Vrc5htA0zCDvcMqUkifcjrWNNKXHUU3WCkYOzzVSFBd0wa2w==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + typescript: '>=4.8.4 <6.0.0' + '@typescript-eslint/type-utils@8.47.0': resolution: {integrity: sha512-QC9RiCmZ2HmIdCEvhd1aJELBlD93ErziOXXlHEZyuBo3tBiAZieya0HLIxp+DoDWlsQqDawyKuNEhORyku+P8A==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -963,6 +1003,13 @@ packages: eslint: ^8.57.0 || ^9.0.0 typescript: '>=4.8.4 <6.0.0' + '@typescript-eslint/type-utils@8.50.0': + resolution: {integrity: sha512-7OciHT2lKCewR0mFoBrvZJ4AXTMe/sYOe87289WAViOocEmDjjv8MvIOT2XESuKj9jp8u3SZYUSh89QA4S1kQw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 + typescript: '>=4.8.4 <6.0.0' + '@typescript-eslint/types@8.47.0': resolution: {integrity: sha512-nHAE6bMKsizhA2uuYZbEbmp5z2UpffNrPEqiKIeN7VsV6UY/roxanWfoRrf6x/k9+Obf+GQdkm0nPU+vnMXo9A==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -971,12 +1018,22 @@ packages: resolution: {integrity: sha512-cQMcGQQH7kwKoVswD1xdOytxQR60MWKM1di26xSUtxehaDs/32Zpqsu5WJlXTtTTqyAVK8R7hvsUnIXRS+bjvA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@typescript-eslint/types@8.50.0': + resolution: {integrity: sha512-iX1mgmGrXdANhhITbpp2QQM2fGehBse9LbTf0sidWK6yg/NE+uhV5dfU1g6EYPlcReYmkE9QLPq/2irKAmtS9w==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@typescript-eslint/typescript-estree@8.47.0': resolution: {integrity: sha512-k6ti9UepJf5NpzCjH31hQNLHQWupTRPhZ+KFF8WtTuTpy7uHPfeg2NM7cP27aCGajoEplxJDFVCEm9TGPYyiVg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '>=4.8.4 <6.0.0' + '@typescript-eslint/typescript-estree@8.50.0': + resolution: {integrity: sha512-W7SVAGBR/IX7zm1t70Yujpbk+zdPq/u4soeFSknWFdXIFuWsBGBOUu/Tn/I6KHSKvSh91OiMuaSnYp3mtPt5IQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + typescript: '>=4.8.4 <6.0.0' + '@typescript-eslint/utils@8.47.0': resolution: {integrity: sha512-g7XrNf25iL4TJOiPqatNuaChyqt49a/onq5YsJ9+hXeugK+41LVg7AxikMfM02PC6jbNtZLCJj6AUcQXJS/jGQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} @@ -984,10 +1041,21 @@ packages: eslint: ^8.57.0 || ^9.0.0 typescript: '>=4.8.4 <6.0.0' + '@typescript-eslint/utils@8.50.0': + resolution: {integrity: sha512-87KgUXET09CRjGCi2Ejxy3PULXna63/bMYv72tCAlDJC3Yqwln0HiFJ3VJMst2+mEtNtZu5oFvX4qJGjKsnAgg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 + typescript: '>=4.8.4 <6.0.0' + '@typescript-eslint/visitor-keys@8.47.0': resolution: {integrity: sha512-SIV3/6eftCy1bNzCQoPmbWsRLujS8t5iDIZ4spZOBHqrM+yfX2ogg8Tt3PDTAVKw3sSCiUgg30uOAvK2r9zGjQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@typescript-eslint/visitor-keys@8.50.0': + resolution: {integrity: sha512-Xzmnb58+Db78gT/CCj/PVCvK+zxbnsw6F+O1oheYszJbBSdEjVhQi3C/Xttzxgi/GLmpvOggRs1RFpiJ8+c34Q==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@vitejs/plugin-react-swc@4.2.2': resolution: {integrity: sha512-x+rE6tsxq/gxrEJN3Nv3dIV60lFflPj94c90b+NNo6n1QV1QQUTLoL0MpaOVasUZ0zqVBn7ead1B5ecx1JAGfA==} engines: {node: ^20.19.0 || >=22.12.0} @@ -4000,6 +4068,22 @@ snapshots: transitivePeerDependencies: - supports-color + '@typescript-eslint/eslint-plugin@8.50.0(@typescript-eslint/parser@8.50.0(eslint@9.39.1(jiti@1.21.7))(typescript@5.8.3))(eslint@9.39.1(jiti@1.21.7))(typescript@5.8.3)': + dependencies: + '@eslint-community/regexpp': 4.12.2 + '@typescript-eslint/parser': 8.50.0(eslint@9.39.1(jiti@1.21.7))(typescript@5.8.3) + '@typescript-eslint/scope-manager': 8.50.0 + '@typescript-eslint/type-utils': 8.50.0(eslint@9.39.1(jiti@1.21.7))(typescript@5.8.3) + '@typescript-eslint/utils': 8.50.0(eslint@9.39.1(jiti@1.21.7))(typescript@5.8.3) + '@typescript-eslint/visitor-keys': 8.50.0 + eslint: 9.39.1(jiti@1.21.7) + ignore: 7.0.5 + natural-compare: 1.4.0 + ts-api-utils: 2.1.0(typescript@5.8.3) + typescript: 5.8.3 + transitivePeerDependencies: + - supports-color + '@typescript-eslint/parser@8.47.0(eslint@9.39.1(jiti@1.21.7))(typescript@5.8.3)': dependencies: '@typescript-eslint/scope-manager': 8.47.0 @@ -4012,10 +4096,31 @@ snapshots: transitivePeerDependencies: - supports-color + '@typescript-eslint/parser@8.50.0(eslint@9.39.1(jiti@1.21.7))(typescript@5.8.3)': + dependencies: + '@typescript-eslint/scope-manager': 8.50.0 + '@typescript-eslint/types': 8.50.0 + '@typescript-eslint/typescript-estree': 8.50.0(typescript@5.8.3) + '@typescript-eslint/visitor-keys': 8.50.0 + debug: 4.4.3 + eslint: 9.39.1(jiti@1.21.7) + typescript: 5.8.3 + transitivePeerDependencies: + - supports-color + '@typescript-eslint/project-service@8.47.0(typescript@5.8.3)': dependencies: '@typescript-eslint/tsconfig-utils': 8.47.0(typescript@5.8.3) - '@typescript-eslint/types': 8.47.0 + '@typescript-eslint/types': 8.48.0 + debug: 4.4.3 + typescript: 5.8.3 + transitivePeerDependencies: + - supports-color + + '@typescript-eslint/project-service@8.50.0(typescript@5.8.3)': + dependencies: + '@typescript-eslint/tsconfig-utils': 8.50.0(typescript@5.8.3) + '@typescript-eslint/types': 8.50.0 debug: 4.4.3 typescript: 5.8.3 transitivePeerDependencies: @@ -4026,10 +4131,19 @@ snapshots: '@typescript-eslint/types': 8.47.0 '@typescript-eslint/visitor-keys': 8.47.0 + '@typescript-eslint/scope-manager@8.50.0': + dependencies: + '@typescript-eslint/types': 8.50.0 + '@typescript-eslint/visitor-keys': 8.50.0 + '@typescript-eslint/tsconfig-utils@8.47.0(typescript@5.8.3)': dependencies: typescript: 5.8.3 + '@typescript-eslint/tsconfig-utils@8.50.0(typescript@5.8.3)': + dependencies: + typescript: 5.8.3 + '@typescript-eslint/type-utils@8.47.0(eslint@9.39.1(jiti@1.21.7))(typescript@5.8.3)': dependencies: '@typescript-eslint/types': 8.47.0 @@ -4042,10 +4156,24 @@ snapshots: transitivePeerDependencies: - supports-color + '@typescript-eslint/type-utils@8.50.0(eslint@9.39.1(jiti@1.21.7))(typescript@5.8.3)': + dependencies: + '@typescript-eslint/types': 8.50.0 + '@typescript-eslint/typescript-estree': 8.50.0(typescript@5.8.3) + '@typescript-eslint/utils': 8.50.0(eslint@9.39.1(jiti@1.21.7))(typescript@5.8.3) + debug: 4.4.3 + eslint: 9.39.1(jiti@1.21.7) + ts-api-utils: 2.1.0(typescript@5.8.3) + typescript: 5.8.3 + transitivePeerDependencies: + - supports-color + '@typescript-eslint/types@8.47.0': {} '@typescript-eslint/types@8.48.0': {} + '@typescript-eslint/types@8.50.0': {} + '@typescript-eslint/typescript-estree@8.47.0(typescript@5.8.3)': dependencies: '@typescript-eslint/project-service': 8.47.0(typescript@5.8.3) @@ -4062,6 +4190,21 @@ snapshots: transitivePeerDependencies: - supports-color + '@typescript-eslint/typescript-estree@8.50.0(typescript@5.8.3)': + dependencies: + '@typescript-eslint/project-service': 8.50.0(typescript@5.8.3) + '@typescript-eslint/tsconfig-utils': 8.50.0(typescript@5.8.3) + '@typescript-eslint/types': 8.50.0 + '@typescript-eslint/visitor-keys': 8.50.0 + debug: 4.4.3 + minimatch: 9.0.5 + semver: 7.7.3 + tinyglobby: 0.2.15 + ts-api-utils: 2.1.0(typescript@5.8.3) + typescript: 5.8.3 + transitivePeerDependencies: + - supports-color + '@typescript-eslint/utils@8.47.0(eslint@9.39.1(jiti@1.21.7))(typescript@5.8.3)': dependencies: '@eslint-community/eslint-utils': 4.9.0(eslint@9.39.1(jiti@1.21.7)) @@ -4073,11 +4216,27 @@ snapshots: transitivePeerDependencies: - supports-color + '@typescript-eslint/utils@8.50.0(eslint@9.39.1(jiti@1.21.7))(typescript@5.8.3)': + dependencies: + '@eslint-community/eslint-utils': 4.9.0(eslint@9.39.1(jiti@1.21.7)) + '@typescript-eslint/scope-manager': 8.50.0 + '@typescript-eslint/types': 8.50.0 + '@typescript-eslint/typescript-estree': 8.50.0(typescript@5.8.3) + eslint: 9.39.1(jiti@1.21.7) + typescript: 5.8.3 + transitivePeerDependencies: + - supports-color + '@typescript-eslint/visitor-keys@8.47.0': dependencies: '@typescript-eslint/types': 8.47.0 eslint-visitor-keys: 4.2.1 + '@typescript-eslint/visitor-keys@8.50.0': + dependencies: + '@typescript-eslint/types': 8.50.0 + eslint-visitor-keys: 4.2.1 + '@vitejs/plugin-react-swc@4.2.2(@swc/helpers@0.5.17)(vite@7.2.4(@types/node@24.10.1)(jiti@1.21.7))': dependencies: '@rolldown/pluginutils': 1.0.0-beta.47 @@ -5277,7 +5436,7 @@ snapshots: eslint-plugin-perfectionist@4.15.1(eslint@9.39.1(jiti@1.21.7))(typescript@5.8.3): dependencies: '@typescript-eslint/types': 8.47.0 - '@typescript-eslint/utils': 8.47.0(eslint@9.39.1(jiti@1.21.7))(typescript@5.8.3) + '@typescript-eslint/utils': 8.50.0(eslint@9.39.1(jiti@1.21.7))(typescript@5.8.3) eslint: 9.39.1(jiti@1.21.7) natural-orderby: 5.0.0 transitivePeerDependencies: diff --git a/providers/edge3/www-hash.txt b/providers/edge3/www-hash.txt index d71f388e496b5..04e02fe673266 100644 --- a/providers/edge3/www-hash.txt +++ b/providers/edge3/www-hash.txt @@ -1 +1 @@ -c8817a364febb85bea2a80df205b2b8075caf07101cfb971330dc559c4b160bf +ff79d6ee4e42699682e6d8a851d9681b80c797913a83780e9e53102aa3af2424