@commercetools/nimbus 0.0.5-rc5-experimental → 0.0.5-rc7-experimental

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,11 +1,119 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@chakra-ui/react"),C=require("@commercetools/nimbus-tokens"),a=require("react"),n=require("react/jsx-runtime"),b=require("react-aria"),R=require("react-aria-components"),ne=require("react-stately"),T=require("@commercetools/nimbus-icons");function at(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const k=at(a),Ee=i.defineRecipe({className:"avatar",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",overflow:"hidden",userSelect:"none",borderRadius:"full",flexShrink:0,fontWeight:"600",backgroundColor:"colorPalette.3",colorPalette:"primary",color:"colorPalette.11",focusVisibleRing:"outside","button&":{cursor:"button"},_disabled:{layerStyle:"disabled"}},variants:{size:{md:{width:1e3,height:1e3,textStyle:"sm"},xs:{width:800,height:800,textStyle:"xs"},"2xs":{width:600,height:600,textStyle:"xs"}}},defaultVariants:{size:"md"}}),{withContext:lt}=i.createRecipeContext({recipe:Ee}),st=lt("figure");function ct(e,t){return e.split("")[0].toUpperCase()+t.split("")[0].toUpperCase()}const De=a.forwardRef((e,t)=>{const{firstName:o,lastName:r,src:c,alt:l,...u}=e,s=`${o} ${r}`,p={"aria-label":`${s} avatar`,ref:t,...u};return n.jsx(st,{...p,children:c?n.jsx(i.Image,{src:c,alt:l||s}):ct(o,r)})});De.displayName="Avatar";const I=a.forwardRef((e,t)=>n.jsx(i.Box,{ref:t,...e}));I.displayName="Box";const B=i.defineRecipe({className:"nimbus-button",base:{borderRadius:"200",display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"500",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"600",minW:"600",fontSize:"300",fontWeight:"500",lineHeight:"400",px:"200",gap:"100",_icon:{width:"400",height:"400"}},xs:{h:"800",minW:"800",fontSize:"350",fontWeight:"500",lineHeight:"400",px:"300",gap:"100",_icon:{width:"500",height:"500"}},md:{h:"1000",minW:"1000",fontSize:"400",lineHeight:"500",px:"400",gap:"200",_icon:{width:"600",height:"600"}}},variant:{solid:{bg:"colorPalette.9",color:"colorPalette.contrast",_hover:{bg:"colorPalette.10"},_expanded:{bg:"colorPalette.10"}},subtle:{bg:"colorPalette.3",color:"colorPalette.11",_hover:{bg:"colorPalette.4"},_expanded:{bg:"colorPalette.4"}},outline:{borderWidth:"1px",borderColor:"colorPalette.7",color:"colorPalette.11",transitionProperty:"background-color, border-color, color",transitionDuration:"moderate",_hover:{bg:"colorPalette.3",borderColor:"colorPalette.8"},_expanded:{bg:"colorPalette.subtle"}},ghost:{color:"colorPalette.11",_hover:{bg:"colorPalette.4"},_expanded:{bg:"colorPalette.4"}},link:{color:"colorPalette.11",_hover:{textDecoration:"underline"}}},tone:{primary:{colorPalette:"primary"},critical:{colorPalette:"critical"},neutral:{colorPalette:"neutral"},info:{colorPalette:"info"}}},defaultVariants:{size:"md",variant:"subtle"}});function dt(e){var t=Object.create(null);return function(o){return t[o]===void 0&&(t[o]=e(o)),t[o]}}var ut=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,pt=dt(function(e){return ut.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});const{withContext:ft}=i.createRecipeContext({recipe:B}),mt=ft("button",{defaultProps:{type:"button"},shouldForwardProp(e,t){const o=!(t!=null&&t.includes(e))&&!i.defaultSystem.isValidProperty(e);return pt(e)&&o&&!e.includes("onPress")}}),q=a.forwardRef((e,t)=>{const{as:o,asChild:r,children:c,...l}=e,u=a.useRef(null),s=b.useObjectRef(i.mergeRefs(u,t)),p=o||(r?"a":"button")||"button",{buttonProps:m}=b.useButton({...l,elementType:p},s);return n.jsx(mt,{...b.mergeProps(l,m,{as:o,asChild:r,ref:s}),children:c})});q.displayName="Button";const gt=a.forwardRef(function(t,o){const{children:r,portalled:c=!0,portalRef:l,backdrop:u=!0,...s}=t;return n.jsxs(i.Portal,{disabled:!c,container:l,children:[u&&n.jsx(i.Dialog.Backdrop,{}),n.jsx(i.Dialog.Positioner,{children:n.jsx(i.Dialog.Content,{ref:o,...s,asChild:!1,children:r})})]})}),ht=a.forwardRef(function(t,o){return n.jsx(i.Dialog.CloseTrigger,{position:"absolute",top:"2",insetEnd:"2",...t,asChild:!0,children:n.jsx(q,{size:"xs",ref:o,children:t.children})})}),bt=i.Dialog.Root,xt=i.Dialog.Footer,vt=i.Dialog.Header,yt=i.Dialog.Body,Ct=i.Dialog.Backdrop,wt=i.Dialog.Title,St=i.Dialog.Description,kt=i.Dialog.Trigger,Rt=i.Dialog.ActionTrigger,W=a.forwardRef(({children:e,...t},o)=>n.jsx(q,{px:0,py:0,ref:o,...t,children:e}));W.displayName="IconButton";const ze=i.defineRecipe({className:"nimbus-link",base:{display:"inline-flex",alignItems:"center",color:"colorPalette.11",borderRadius:"100",focusVisibleRing:"outside",bg:"transparent",outline:"none",cursor:"pointer",textDecoration:"underline",textUnderlineOffset:"3px",_hover:{textDecorationThickness:"12%"}},variants:{size:{xs:{fontSize:"300",lineHeight:"450"},sm:{fontSize:"350",lineHeight:"500"},md:{fontSize:"400",lineHeight:"600"}},fontColor:{primary:{color:"primary"},inherit:{color:"inherit"}}}}),{withContext:Pt}=i.createRecipeContext({recipe:ze}),Tt=Pt("a"),Ie=a.forwardRef((e,t)=>{const{as:o,asChild:r,children:c,...l}=e,u=a.useRef(null),s=b.useObjectRef(i.mergeRefs(u,t)),p=o||(r?"span":"a")||"a",{linkProps:m}=b.useLink({...l,elementType:p},s);return n.jsx(Tt,{...b.mergeProps(l,m,{as:o,asChild:r,ref:s}),children:c})});Ie.displayName="Link";const jt=e=>n.jsx(i.List.Root,{...e}),At=e=>n.jsx(i.List.Item,{...e}),He=a.forwardRef((e,t)=>n.jsx(i.SimpleGrid,{ref:t,...e}));He.displayName="SimpleGrid";const Et=Object.assign(He,{Item:i.GridItem}),Dt=e=>n.jsx(i.Table.Root,{...e}),zt=e=>n.jsx(i.Table.ColumnGroup,{...e}),It=e=>n.jsx(i.Table.Column,{...e}),Ht=e=>n.jsx(i.Table.Header,{...e}),Nt=e=>n.jsx(i.Table.Footer,{...e}),Lt=e=>n.jsx(i.Table.Row,{...e}),Ft=e=>n.jsx(i.Table.Cell,{...e}),Bt=e=>n.jsx(i.Table.Body,{...e}),Ot=e=>n.jsx(i.Table.ColumnHeader,{...e}),Ne=a.forwardRef((e,t)=>n.jsx(i.Text,{ref:t,...e}));Ne.displayName="Text";const Le=i.defineRecipe({className:"nimbus-tooltip",base:{color:"white",textStyle:"xs",fontWeight:"400",background:"slate.12",display:"inline-flex",alignItems:"center",borderRadius:"100",paddingX:"300",paddingY:"100",margin:"100",maxW:"6400",boxShadow:"1"}}),{withContext:_t}=i.createRecipeContext({recipe:Le}),Wt=_t("div"),Fe=a.forwardRef(function({children:t,placement:o="bottom",...r},c){return n.jsx(Wt,{ref:c,asChild:!0,...r,children:n.jsx(R.Tooltip,{placement:o,...r,children:t})})});Fe.displayName="Tooltip";const Be=R.TooltipTrigger;Be.displayName="TooltipTrigger";const Oe=a.forwardRef(function(t,o){const r=a.useRef(null),c=b.useObjectRef(i.mergeRefs(r,o)),{focusableProps:l}=b.useFocusable(t,c);if(a.isValidElement(t.children))return a.cloneElement(t.children,b.mergeProps(l,t.children.props,{ref:c}))});Oe.displayName="MakeElementFocusable";var Vt=(e,t,o,r,c,l,u,s)=>{let p=document.documentElement,m=["light","dark"];function g(d){(Array.isArray(e)?e:[e]).forEach(x=>{let w=x==="class",P=w&&l?c.map(S=>l[S]||S):c;w?(p.classList.remove(...P),p.classList.add(l&&l[d]?l[d]:d)):p.setAttribute(x,d)}),y(d)}function y(d){s&&m.includes(d)&&(p.style.colorScheme=d)}function f(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)g(r);else try{let d=localStorage.getItem(t)||o,x=u&&d==="system"?f():d;g(x)}catch{}},we=["light","dark"],_e="(prefers-color-scheme: dark)",Mt=typeof window>"u",ie=k.createContext(void 0),Gt={setTheme:e=>{},themes:[]},$t=()=>{var e;return(e=k.useContext(ie))!=null?e:Gt},Kt=e=>k.useContext(ie)?k.createElement(k.Fragment,null,e.children):k.createElement(qt,{...e}),Ut=["light","dark"],qt=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:o=!0,enableColorScheme:r=!0,storageKey:c="theme",themes:l=Ut,defaultTheme:u=o?"system":"light",attribute:s="data-theme",value:p,children:m,nonce:g,scriptProps:y})=>{let[f,d]=k.useState(()=>Yt(c,u)),[x,w]=k.useState(()=>f==="system"?J():f),P=p?Object.values(p):l,S=k.useCallback(v=>{let h=v;if(!h)return;v==="system"&&o&&(h=J());let j=p?p[h]:h,_=t?Jt(g):null,A=document.documentElement,U=z=>{z==="class"?(A.classList.remove(...P),j&&A.classList.add(j)):z.startsWith("data-")&&(j?A.setAttribute(z,j):A.removeAttribute(z))};if(Array.isArray(s)?s.forEach(U):U(s),r){let z=we.includes(u)?u:null,F=we.includes(h)?h:z;A.style.colorScheme=F}_==null||_()},[g]),E=k.useCallback(v=>{let h=typeof v=="function"?v(f):v;d(h);try{localStorage.setItem(c,h)}catch{}},[f]),D=k.useCallback(v=>{let h=J(v);w(h),f==="system"&&o&&!e&&S("system")},[f,e]);k.useEffect(()=>{let v=window.matchMedia(_e);return v.addListener(D),D(v),()=>v.removeListener(D)},[D]),k.useEffect(()=>{let v=h=>{h.key===c&&(h.newValue?d(h.newValue):E(u))};return window.addEventListener("storage",v),()=>window.removeEventListener("storage",v)},[E]),k.useEffect(()=>{S(e??f)},[e,f]);let H=k.useMemo(()=>({theme:f,setTheme:E,forcedTheme:e,resolvedTheme:f==="system"?x:f,themes:o?[...l,"system"]:l,systemTheme:o?x:void 0}),[f,E,e,x,o,l]);return k.createElement(ie.Provider,{value:H},k.createElement(Xt,{forcedTheme:e,storageKey:c,attribute:s,enableSystem:o,enableColorScheme:r,defaultTheme:u,value:p,themes:l,nonce:g,scriptProps:y}),m)},Xt=k.memo(({forcedTheme:e,storageKey:t,attribute:o,enableSystem:r,enableColorScheme:c,defaultTheme:l,value:u,themes:s,nonce:p,scriptProps:m})=>{let g=JSON.stringify([o,t,l,e,s,u,r,c]).slice(1,-1);return k.createElement("script",{...m,suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(${Vt.toString()})(${g})`}})}),Yt=(e,t)=>{if(Mt)return;let o;try{o=localStorage.getItem(e)||void 0}catch{}return o||t},Jt=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)}},J=e=>(e||(e=window.matchMedia(_e)),e.matches?"dark":"light");function Zt(e){return n.jsx(Kt,{attribute:"class",disableTransitionOnChange:!0,...e})}function ae(){const{resolvedTheme:e,setTheme:t}=$t();return{colorMode:e,setColorMode:t,toggleColorMode:()=>{t(e==="light"?"dark":"light")}}}function Qt(e,t){const{colorMode:o}=ae();return o==="light"?e:t}function eo(){const{colorMode:e}=ae();return e==="light"?"Light Theme":"DarkTheme"}function to({children:e,...t}){return n.jsx(Zt,{enableSystem:!1,...t,children:n.jsx(n.Fragment,{children:e})})}function X(e){const t={},o={...e};return Object.keys(e).forEach(r=>{Object.prototype.hasOwnProperty.call(e,r)&&i.defaultSystem.isValidProperty(r)&&(t[r]=e[r],delete o[r])}),[t,o]}const oo=i.defineSlotRecipe({slots:["root","label","indicator"],className:"nimbus-checkbox",base:{root:{colorPalette:"primary",display:"inline-flex",gap:"200",alignItems:"center",verticalAlign:"top",minWidth:"600",minHeight:"600","&[data-disabled='true']":{layerStyle:"disabled"}},label:{flexShrink:0,userSelect:"none",color:"neutral.11","&[data-invalid='true']":{color:"critical.11"}},indicator:{position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",border:"solid-50",borderRadius:"50",focusRing:"outside",borderColor:"neutral.9",bg:"transparent",color:"neutral.11",_icon:{w:"350",h:"350"},"&:hover":{borderColor:"neutral.10"},"&[data-invalid='true']":{bg:"transparent",borderColor:"critical.9",color:"critical.11","&:hover":{borderColor:"critical.10"}},"&[data-selected='true'], &[data-indeterminate='true']":{bg:"colorPalette.9",borderColor:"colorPalette.9",color:"colorPalette.contrast","&:hover":{bg:"colorPalette.10",borderColor:"colorPalette.10"},"&[data-invalid='true']":{bg:"critical.9",borderColor:"critical.9",color:"critical.contrast","&:hover":{bg:"critical.10",borderColor:"critical.10"}}}}},variants:{size:{md:{label:{fontSize:"350",fontWeight:"400",lineHeight:"400"},indicator:{w:"400",h:"400",zIndex:1,_after:{position:"absolute",content:"''",width:"600",height:"600",zIndex:0}}}}},defaultVariants:{size:"md"}}),{withProvider:ro,withContext:We}=i.createSlotRecipeContext({key:"checkbox"}),no=ro("label","root"),io=We("span","label"),ao=We("span","indicator"),Ve=a.forwardRef((e,t)=>{const o=a.useRef(null),r=b.useObjectRef(i.mergeRefs(o,t)),c=i.useSlotRecipe({key:"checkbox"}),[l]=c.splitVariantProps(e),[u,s]=X(e),p=ne.useToggleState(e),{inputProps:m}=b.useCheckbox(s,p,r),{isFocused:g,focusProps:y}=b.useFocusRing(),f=p.isSelected&&!e.isIndeterminate,d=e.isIndeterminate,x={"data-selected":f,"data-indeterminate":d,"data-invalid":e.isInvalid,"data-disabled":e.isDisabled,"data-focus":g||void 0};return n.jsxs(no,{"data-slot":"root",...l,...x,...u,children:[n.jsxs(ao,{"data-slot":"indicator",...x,children:[f&&n.jsx(T.Check,{}),d&&n.jsx(T.Remove,{}),n.jsx(le,{as:"span",children:n.jsx("input",{...b.mergeProps(m,y),ref:r})})]}),e.children&&n.jsx(io,{"data-slot":"label",...x,children:e.children})]})});Ve.displayName="Checkbox";const Y=a.forwardRef((e,t)=>n.jsx(i.Stack,{ref:t,...e}));Y.displayName="Stack";const le=e=>{const{as:t="div",...o}=e;return n.jsx(b.VisuallyHidden,{elementType:t,...o})};le.displayName="VisuallyHidden";const se=i.defineRecipe({className:"nimbus-text-input",base:{display:"block",borderRadius:"200",colorPalette:"neutral",focusVisibleRing:"outside",bg:"transparent",outline:"none",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)",_placeholder:{opacity:.5,color:"currentColor"},_disabled:{layerStyle:"disabled"},"&[data-invalid='true']":{"--border-color":"colors.critical.7",color:"critical.11"}},variants:{size:{sm:{h:800,textStyle:"sm",px:300},md:{h:1e3,textStyle:"md",px:400}},variant:{solid:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",backgroundColor:"neutral.1",_hover:{backgroundColor:"primary.2"}},ghost:{_hover:{backgroundColor:"primary.2"}}}},defaultVariants:{size:"md",variant:"solid"}}),{withContext:lo}=i.createRecipeContext({recipe:se}),so=lo("input"),Me=a.forwardRef((e,t)=>{const o=a.useRef(null),r=b.useObjectRef(i.mergeRefs(o,t)),c=i.useRecipe({recipe:se}),[l,u]=c.splitVariantProps(e),[s,p]=X(u);return n.jsx(R.TextField,{...p,children:n.jsx(so,{ref:r,...l,...s,asChild:!0,children:n.jsx(R.Input,{})})})});Me.displayName="TextInput";const Ge=a.forwardRef((e,t)=>n.jsx(i.Grid,{ref:t,...e}));Ge.displayName="Grid";const co=Object.assign(Ge,{Item:i.GridItem}),$e=i.defineSlotRecipe({slots:["root","trigger","triggerLabel","options","optionGroup","option"],className:"nimbus-select",base:{root:{colorPalette:"primary",display:"inline-block",position:"relative",maxWidth:"100%",borderRadius:"200","&[data-disabled]":{layerStyle:"disabled",pointerEvents:"none"}},trigger:{cursor:"button",display:"inline-flex",focusRing:"outside",alignItems:"flex-start",borderRadius:"200",color:"neutral.12",width:"100%",userSelect:"none",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)","& span":{display:"inline-block",my:"auto"},'& [slot="description"]':{display:"none"},"[data-invalid] &":{"--border-width":"sizes.50","--border-color":"colors.critical.7"}},triggerLabel:{"--button-safespace":"sizes.1400",color:"neutral.12",textAlign:"left",marginRight:"var(--button-safespace)",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","&[data-placeholder]":{opacity:.5},"[data-invalid] &":{color:"critical.11"}},options:{"--scrollbar-color":"colors.neutral.8","--scrollbar-bg":"colors.neutral.3",bg:"bg",borderRadius:"200",boxShadow:"5",minWidth:"var(--trigger-width)",p:"200",focusRing:"outside",maxHeight:"40svh",overflowY:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--scrollbar-color) var(--scrollbar-bg)"},optionGroup:{textStyle:"xs",color:"neutral.11",fontWeight:"600",lineHeight:"350",letterSpacing:"25",textTransform:"uppercase",p:"200",borderBottom:"solid-25",borderColor:"neutral.6",mx:"-200",mt:"200",mb:"300"},option:{focusRing:"outside",cursor:"menuitem",color:"neutral.12",textStyle:"sm",p:"200",borderRadius:"200",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",'&[aria-selected="true"], &[data-focused="true"]':{bg:"primary.4"},'& [slot="label"]':{display:"block"},'& [slot="description"]':{display:"block",color:"neutral.11",textStyle:"xs"},'&[data-disabled="true"]':{layerStyle:"disabled"}}},variants:{size:{sm:{root:{},trigger:{h:"800",px:"400",textStyle:"sm"}},md:{root:{},trigger:{h:"1000",px:"400",textStyle:"md"}}},variant:{outline:{root:{bg:"bg","&:hover":{bg:"primary.2"}},trigger:{"--border-width":"sizes.25","--border-color":"colors.neutral.7"}},ghost:{root:{bg:"transparent","&:hover":{bg:"primaryAlpha.2"}},trigger:{"--border-width":"sizes.25","--border-color":"transparent"}}}},defaultVariants:{size:"md",variant:"outline"}}),{withProvider:uo,withContext:V}=i.createSlotRecipeContext({key:"select"}),po=uo("div","root"),fo=V("button","trigger"),mo=V("span","triggerLabel"),go=V("div","options"),ho=V("div","option"),bo=V("div","optionGroup"),Ke=()=>{const e=a.useContext(R.SelectStateContext);if(!(e!=null&&e.selectedKey))return null;const t=()=>{e==null||e.setSelectedKey(null)};return n.jsx(W,{pointerEvents:"all",size:"2xs",variant:"ghost",tone:"primary","aria-label":"Clear Selection",onPress:t,children:n.jsx(T.Close,{})})};Ke.displayName="Select.ClearButton";const ce=a.forwardRef(({children:e,isLoading:t,isDisabled:o,...r},c)=>{const l=i.useSlotRecipe({recipe:$e}),[u,s]=l.splitVariantProps(r),[p,m]=X(s),g={...m,isDisabled:t||o};return n.jsx(po,{asChild:!0,ref:c,...u,...p,children:n.jsxs(R.Select,{...g,children:[n.jsxs(i.chakra.div,{position:"relative",children:[n.jsx(fo,{zIndex:0,asChild:!0,children:n.jsx(R.Button,{children:n.jsx(mo,{asChild:!0,children:n.jsx(R.SelectValue,{})})})}),n.jsxs(i.Flex,{position:"absolute",top:"0",bottom:"0",zIndex:1,right:"400",pointerEvents:"none",children:[n.jsx(i.Flex,{width:"600",my:"auto",children:n.jsx(Ke,{})}),n.jsx(i.Flex,{my:"auto",w:"600",h:"600",pointerEvents:"none",children:n.jsx(I,{color:"neutral.9",asChild:!0,m:"auto",w:"400",h:"400",children:t?n.jsx(I,{asChild:!0,animation:"spin",animationDuration:"slowest",children:n.jsx(T.Loop,{})}):n.jsx(T.KeyboardArrowDown,{})})})]})]}),n.jsx(R.Popover,{children:e})]})})});ce.displayName="Select.Root";const de=e=>a.forwardRef(e),ue=de((e,t)=>{const[o,r]=X(e);return n.jsx(go,{asChild:!0,...o,children:n.jsx(R.ListBox,{ref:t,...r})})});ue.displayName="Select.Options";const pe=de((e,t)=>n.jsx(ho,{asChild:!0,ref:t,children:n.jsx(R.ListBoxItem,{...e})}));pe.displayName="Select.Option";const fe=de(({label:e,items:t,children:o,...r},c)=>{if(t&&typeof o!="function")throw new Error('SelectOptionGroup: When "items" is provided, "children" must be a function');return n.jsxs(R.ListBoxSection,{ref:c,...r,children:[n.jsx(bo,{asChild:!0,children:n.jsx(R.Header,{children:e})}),t?n.jsx(R.Collection,{items:t,children:l=>typeof o=="function"?o(l):null}):o]})});fe.displayName="Select.OptionGroup";const xo={Root:ce,Options:ue,Option:pe,OptionGroup:fe},{withProvider:vo,withContext:M}=i.createSlotRecipeContext({key:"accordion"}),yo=vo("div","root"),Co=M("div","disclosure"),wo=M("button","trigger"),So=M("div","panel"),ko=M("div","accordionTitle"),oe=M("div","headerContentRight"),me=a.createContext(null),Ue=a.createContext(null),Ro=a.forwardRef(({children:e,onExpandedChange:t,...o},r)=>{const c=ne.useDisclosureGroupState({...o,onExpandedChange:s=>{t==null||t(s.size>0)}}),l=i.useSlotRecipe({key:"accordion"}),[u]=l.splitVariantProps(o);return n.jsx(Ue.Provider,{value:c,children:n.jsx(yo,{"data-slot":"root",ref:r,...u,children:e})})}),Po=a.forwardRef(({children:e},t)=>{const o=a.useContext(me);if(!o)throw new Error("Accordion.Header must be used within Accordion.Item");const r=a.Children.toArray(e).reduce((c,l)=>(a.isValidElement(l)&&l.type===oe?c.rightContent.push(l):c.main.push(l),c),{main:[],rightContent:[]});return n.jsxs(i.Flex,{justifyContent:"space-between",alignItems:"center",borderBottom:"solid-25",borderColor:"neutral.4",children:[n.jsxs(wo,{ref:i.mergeRefs(o.triggerRef,t),...o.buttonProps,"data-slot":"trigger",outline:o.isFocusVisible?void 0:"none",children:[n.jsx(T.KeyboardArrowRight,{}),n.jsx(ko,{"data-slot":"accordionTitle",children:r.main})]}),r.rightContent.length>0&&n.jsx(oe,{"data-slot":"headerContentRight",children:r.rightContent})]})}),To=a.forwardRef((e,t)=>{const o=a.useContext(me),r=b.useObjectRef(i.mergeRefs(o==null?void 0:o.panelRef,t));return n.jsx(So,{ref:r,...i.mergeProps({...o==null?void 0:o.panelProps,...e}),"data-slot":"panel",children:e.children})}),jo=a.forwardRef(({children:e,id:t,isDisabled:o,isExpanded:r,onExpandedChange:c,value:l},u)=>{const s=b.useId(),m=l||(t||s),g=a.useContext(Ue),y=g?g.expandedKeys.has(m):r,f=ne.useDisclosureState({isExpanded:y,onExpandedChange:h=>{g&&g.toggleKey(m),c==null||c(h)}}),d=a.useRef(null),x=a.useRef(null),w=o||(g==null?void 0:g.isDisabled)||!1,{buttonProps:P,panelProps:S}=b.useDisclosure({isExpanded:f.isExpanded,isDisabled:w},f,d),{buttonProps:E}=b.useButton(P,x),{focusProps:D,isFocusVisible:H}=b.useFocusRing(),v={isExpanded:f.isExpanded,triggerRef:x,panelRef:d,buttonProps:b.mergeProps(E,D),panelProps:S,isFocusVisible:H};return n.jsx(me.Provider,{value:v,children:n.jsx(Co,{"data-slot":"disclosure","data-value":m,"data-expanded":f.isExpanded,ref:u,children:e})})}),Ao={Root:Ro,Item:jo,Header:Po,Content:To,HeaderRightContent:oe},Eo=i.defineSlotRecipe({slots:["root","disclosure","trigger","panel","accordionTitle","headerContentRight"],className:"nimbus-accordion",base:{root:{width:"100%"},disclosure:{width:"100%"},trigger:{fontSize:"var(--font-size)",focusVisibleRing:"outside",minHeight:"1200",bg:"none",flexGrow:1,display:"flex",alignItems:"center",gap:"8px",width:"auto","& svg":{width:"var(--width)",height:"var(--height)",rotate:"0deg",transition:"rotate 200ms"},'&[aria-expanded="true"] svg':{rotate:"90deg"},"&[disabled]":{layerStyle:"disabled"}},panel:{paddingTop:"var(--padding-top)",paddingBottom:"var(--padding-bottom)",paddingLeft:"var(--padding-left)",'&[aria-hidden="true"]':{display:"none"}},accordionTitle:{fontWeight:"700"}},variants:{size:{md:{trigger:{"--font-size":"fontSizes.500","& svg":{"--width":"sizes.600","--height":"sizes.600"}},panel:{"--padding-top":"spacing.600","--padding-bottom":"spacing.800","--padding-left":"spacing.800"}},sm:{trigger:{"--font-size":"fontSizes.400","& svg":{"--width":"sizes.500","--height":"sizes.500"}},panel:{"--padding-top":"spacing.400","--padding-bottom":"spacing.600","--padding-left":"spacing.700"}}}},defaultVariants:{size:"md"}}),Do=i.defineRecipe({className:"nimbus-loading-spinner",base:{display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{overflow:"visible",transform:"scale(calc(1 - 2/12))"},"& svg [data-svg-path='spinner-pointer']":{stroke:"colorPalette.10",animationName:"spin",animationDuration:"0.5s",animationTimingFunction:"linear",animationIterationCount:"infinite",transformOrigin:"center center 0"},"& svg [data-svg-path='spinner-circle']":{stroke:"colorPalette.5"}},variants:{size:{"2xs":{width:"350",height:"350"},xs:{width:"500",height:"500"},sm:{width:"600",height:"600"},md:{width:"800",height:"800"},lg:{width:"1000",height:"1000"}},tone:{primary:{colorPalette:"ctvioletAlpha"},white:{colorPalette:"whiteAlpha"}}},defaultVariants:{size:"sm",tone:"primary"}}),{withContext:zo}=i.createRecipeContext({recipe:Do}),Io=zo("div"),Ho="M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.7079 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 10.6211 1.77159 9.25574 2.29927 7.98182C2.82694 6.7079 3.60037 5.55039 4.57538 4.57538C5.5504 3.60036 6.70791 2.82694 7.98183 2.29926C9.25575 1.77159 10.6211 1.5 12 1.5C13.3789 1.5 14.7443 1.77159 16.0182 2.29927C17.2921 2.82694 18.4496 3.60037 19.4246 4.57538C20.3996 5.5504 21.1731 6.70791 21.7007 7.98183C22.2284 9.25575 22.5 10.6211 22.5 12L22.5 12Z",No="M12 1.5C13.3789 1.5 14.7443 1.77159 16.0182 2.29927C17.2921 2.82694 18.4496 3.60036 19.4246 4.57538C20.3996 5.55039 21.1731 6.70791 21.7007 7.98183C22.2284 9.25574 22.5 10.6211 22.5 12",qe=a.forwardRef(({"aria-label":e="Loading data",...t},o)=>{const{progressBarProps:r}=b.useProgressBar({isIndeterminate:!0,"aria-label":e,...t});return n.jsx(Io,{ref:o,...b.mergeProps(t,r),"aria-label":e,children:n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",children:[n.jsx("path",{d:Ho,"data-svg-path":"spinner-circle",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),n.jsx("path",{d:No,"data-svg-path":"spinner-pointer",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})})});qe.displayName="LoadingSpinner";const Lo=i.defineSlotRecipe({slots:["root","header","content"],className:"nimbus-card",base:{root:{colorPalette:"slate",display:"inline-flex",alignItems:"flex-start",borderRadius:"300",focusVisibleRing:"outside"}},variants:{cardPadding:{sm:{root:{padding:"200"}},md:{root:{padding:"400"}},lg:{root:{padding:"600"}}},borderStyle:{none:{},outlined:{root:{border:"solid-25",borderColor:"colorPalette.3"}}},elevation:{none:{},elevated:{root:{shadow:"1"}}},backgroundStyle:{default:{root:{backgroundColor:"colorPalette.contrast"}},muted:{root:{backgroundColor:"colorPalette.2"}}}}}),{withProvider:Fo,withContext:Xe}=i.createSlotRecipeContext({recipe:Lo}),Bo=Fo("div","root"),Oo=Xe("div","header"),_o=Xe("div","content"),ge=a.createContext(void 0),he=a.forwardRef(({children:e,...t},o)=>{const{isFocused:r,isFocusVisible:c,focusProps:l}=b.useFocusRing(),[u,s]=a.useState(null),[p,m]=a.useState(null),g=a.useMemo(()=>({setHeader:s,setContent:m}),[s,m]);return n.jsx(ge.Provider,{value:g,children:n.jsxs(Bo,{ref:o,...b.mergeProps(t,l),"data-focus":r||void 0,"data-focus-visible":c||void 0,tabIndex:0,children:[n.jsxs(Y,{direction:"column",gap:"200",children:[u,p]}),e]})})});he.displayName="Card.Root";const be=({children:e,...t})=>{const o=a.useContext(ge);return a.useEffect(()=>{if(o){const r=n.jsx(Oo,{...t,children:e});return o.setHeader(r),()=>o.setHeader(null)}},[e,t]),null};be.displayName="Card.Header";const xe=({children:e,...t})=>{const o=a.useContext(ge);return a.useEffect(()=>{if(o){const r=n.jsx(_o,{...t,children:e});return o.setContent(r),()=>o.setContent(null)}},[e,t]),null};xe.displayName="Card.Content";const Wo={Root:he,Header:be,Content:xe},Vo=i.defineRecipe({className:"nimbus-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"200",justifyContent:"center",whiteSpace:"nowrap",verticalAlign:"middle",py:"25",fontWeight:"500",backgroundColor:"colorPalette.3",color:"colorPalette.11",w:"auto",userSelect:"none",_icon:{flexShrink:"0"}},variants:{size:{"2xs":{fontSize:"300",gap:"100",h:"600",lineHeight:"350",px:"200",_icon:{width:"400",height:"400"}},xs:{fontSize:"350",gap:"100",h:"800",lineHeight:"400",px:"300",_icon:{width:"500",height:"500"}},md:{fontSize:"400",gap:"200",h:"1000",lineHeight:"500",px:"400",_icon:{width:"600",height:"600"}}}},defaultVariants:{size:"md"}}),{withContext:Mo}=i.createRecipeContext({recipe:Vo}),Go=Mo("span"),$o=a.forwardRef((e,t)=>{const{as:o,asChild:r,children:c,...l}=e,u=a.useRef(null),s=b.useObjectRef(i.mergeRefs(u,t)),p=o||"span";return n.jsx(Go,{as:p,...b.mergeProps(l,{ref:s}),children:c})}),Ko=i.defineSlotRecipe({slots:["root","title","description","icon","actions","dismissButton"],className:"nimbus-alert",base:{root:{display:"inline-flex",flexDirection:"row",gap:"200",width:"100%"},icon:{marginTop:"50","& svg":{width:"500",height:"500",color:"colorPalette.11"}},title:{color:"colorPalette.11"},description:{color:"colorPalette.11"}},variants:{tone:{critical:{root:{colorPalette:"critical"}},info:{root:{colorPalette:"info"}},warning:{root:{colorPalette:"amber"}},positive:{root:{colorPalette:"positive"}}},variant:{flat:{},outlined:{root:{border:"solid-25",borderColor:"colorPalette.5",backgroundColor:"colorPalette.2",padding:"200",borderRadius:"200"}}}}}),{withProvider:Uo,withContext:G}=i.createSlotRecipeContext({recipe:Ko}),qo=Uo("div","root"),Xo=G("div","title"),Yo=G("div","description"),Jo=G("div","icon"),Zo=G("div","actions"),Qo=G("div","dismissButton"),er=e=>{switch(e){case"critical":return n.jsx(T.ErrorOutline,{});case"info":return n.jsx(T.Info,{});case"warning":return n.jsx(T.WarningAmber,{});case"positive":return n.jsx(T.CheckCircleOutline,{});default:return null}},$=a.createContext(void 0),Ye=a.forwardRef(({children:e,...t},o)=>{const[r,c]=a.useState(null),[l,u]=a.useState(null),[s,p]=a.useState(null),[m,g]=a.useState(null),y=a.useMemo(()=>({setTitle:c,setDescription:u,setActions:p,setDismiss:g}),[c,u,p,g]);return n.jsx($.Provider,{value:y,children:n.jsxs(qo,{ref:o,...t,role:"alert",children:[n.jsx(Jo,{alignItems:"flex-start",children:er(t.tone)}),n.jsxs(Y,{flex:"1",gap:"200",children:[n.jsxs(I,{children:[r,l]}),s]}),m,e]})})});Ye.displayName="Alert.Root";const Je=({children:e,...t})=>{const o=a.useContext($);return a.useEffect(()=>{if(o){const r=n.jsx(Xo,{...t,fontWeight:"600",children:e});return o.setTitle(r),()=>o.setTitle(null)}},[e,t]),null};Je.displayName="Alert.Title";const Ze=({children:e,...t})=>{const o=a.useContext($);return a.useEffect(()=>{if(o){const r=n.jsx(Yo,{...t,children:e});return o.setDescription(r),()=>o.setDescription(null)}},[e,t]),null};Ze.displayName="Alert.Description";const Qe=({children:e,...t})=>{const o=a.useContext($);return a.useEffect(()=>{if(o){const r=n.jsx(Zo,{...t,children:e});return o.setActions(r),()=>o.setActions(null)}},[e,t]),null};Qe.displayName="Alert.Actions";const et=({children:e,...t})=>{const o=a.useContext($);return a.useEffect(()=>{if(o){const r=n.jsx(Qo,{children:n.jsx(W,{"aria-label":"Dismiss",...t,variant:"ghost",size:"2xs",children:n.jsx(T.Clear,{role:"img"})})});return o.setDismiss(r),()=>o.setDismiss(null)}},[e,t]),null};et.displayName="Alert.DismissButton";const tr={Root:Ye,Title:Je,Description:Ze,Actions:Qe,DismissButton:et};var Pe,Te,je,Ae;const or=i.defineSlotRecipe({slots:["root","button"],className:"nimbus-toggle-button-group",base:{root:{display:"inline-flex"},button:{...B.base,...(Pe=B.variants)==null?void 0:Pe.variant.outline,borderRadius:"0",borderRightWidth:"0","&:first-of-type":{borderLeftRadius:"200"},"&:last-of-type":{borderRightWidth:"1px",borderRightRadius:"200"},"&[data-selected=true]":(Te=B.variants)==null?void 0:Te.variant.solid}},variants:{size:{xs:{button:(je=B.variants)==null?void 0:je.size.xs},md:{button:(Ae=B.variants)==null?void 0:Ae.size.md}},tone:{primary:{button:{colorPalette:"primary"}},critical:{button:{colorPalette:"critical"}},neutral:{button:{colorPalette:"neutral"}}}},defaultVariants:{size:"md"}}),{withContext:rr,withProvider:nr}=i.createSlotRecipeContext({recipe:or}),ir=nr(R.ToggleButtonGroup,"root"),ar=rr(R.ToggleButton,"button"),ve=a.forwardRef(({children:e,...t},o)=>n.jsx(ir,{ref:o,...t,children:e}));ve.displayName="ToggleButtonGroup.Root";const ye=a.forwardRef(({children:e,...t},o)=>n.jsx(ar,{...t,ref:o,children:e}));ye.displayName="ToggleButtonGroup.Button";const lr={Root:ve,Button:ye},sr=`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ie=require("@commercetools/nimbus-tokens"),lt=require("@commercetools/nimbus-icons");function U0(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(n,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Hi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _o={exports:{}},In={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Uc;function G0(){if(Uc)return In;Uc=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,i){var a=null;if(i!==void 0&&(a=""+i),o.key!==void 0&&(a=""+o.key),"key"in o){i={};for(var s in o)s!=="key"&&(i[s]=o[s])}else i=o;return o=i.ref,{$$typeof:e,type:n,key:a,ref:o!==void 0?o:null,props:i}}return In.Fragment=t,In.jsx=r,In.jsxs=r,In}var Nn={},Ao={exports:{}},ie={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Gc;function Y0(){if(Gc)return ie;Gc=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator;function u(y){return y===null||typeof y!="object"?null:(y=f&&y[f]||y["@@iterator"],typeof y=="function"?y:null)}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,m={};function v(y,I,W){this.props=y,this.context=I,this.refs=m,this.updater=W||p}v.prototype.isReactComponent={},v.prototype.setState=function(y,I){if(typeof y!="object"&&typeof y!="function"&&y!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,y,I,"setState")},v.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};function x(){}x.prototype=v.prototype;function E(y,I,W){this.props=y,this.context=I,this.refs=m,this.updater=W||p}var P=E.prototype=new x;P.constructor=E,h(P,v.prototype),P.isPureReactComponent=!0;var T=Array.isArray,C={H:null,A:null,T:null,S:null,V:null},k=Object.prototype.hasOwnProperty;function D(y,I,W,G,Z,te){return W=te.ref,{$$typeof:e,type:y,key:I,ref:W!==void 0?W:null,props:te}}function R(y,I){return D(y.type,I,void 0,void 0,void 0,y.props)}function _(y){return typeof y=="object"&&y!==null&&y.$$typeof===e}function N(y){var I={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(W){return I[W]})}var S=/\/+/g;function M(y,I){return typeof y=="object"&&y!==null&&y.key!=null?N(""+y.key):I.toString(36)}function j(){}function z(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(j,j):(y.status="pending",y.then(function(I){y.status==="pending"&&(y.status="fulfilled",y.value=I)},function(I){y.status==="pending"&&(y.status="rejected",y.reason=I)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function F(y,I,W,G,Z){var te=typeof y;(te==="undefined"||te==="boolean")&&(y=null);var ee=!1;if(y===null)ee=!0;else switch(te){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(y.$$typeof){case e:case t:ee=!0;break;case d:return ee=y._init,F(ee(y._payload),I,W,G,Z)}}if(ee)return Z=Z(y),ee=G===""?"."+M(y,0):G,T(Z)?(W="",ee!=null&&(W=ee.replace(S,"$&/")+"/"),F(Z,I,W,"",function(H){return H})):Z!=null&&(_(Z)&&(Z=R(Z,W+(Z.key==null||y&&y.key===Z.key?"":(""+Z.key).replace(S,"$&/")+"/")+ee)),I.push(Z)),1;ee=0;var Ne=G===""?".":G+":";if(T(y))for(var B=0;B<y.length;B++)G=y[B],te=Ne+M(G,B),ee+=F(G,I,W,te,Z);else if(B=u(y),typeof B=="function")for(y=B.call(y),B=0;!(G=y.next()).done;)G=G.value,te=Ne+M(G,B++),ee+=F(G,I,W,te,Z);else if(te==="object"){if(typeof y.then=="function")return F(z(y),I,W,G,Z);throw I=String(y),Error("Objects are not valid as a React child (found: "+(I==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":I)+"). If you meant to render a collection of children, use an array instead.")}return ee}function w(y,I,W){if(y==null)return y;var G=[],Z=0;return F(y,G,"","",function(te){return I.call(W,te,Z++)}),G}function L(y){if(y._status===-1){var I=y._result;I=I(),I.then(function(W){(y._status===0||y._status===-1)&&(y._status=1,y._result=W)},function(W){(y._status===0||y._status===-1)&&(y._status=2,y._result=W)}),y._status===-1&&(y._status=0,y._result=I)}if(y._status===1)return y._result.default;throw y._result}var $=typeof reportError=="function"?reportError:function(y){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var I=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof y=="object"&&y!==null&&typeof y.message=="string"?String(y.message):String(y),error:y});if(!window.dispatchEvent(I))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",y);return}console.error(y)};function K(){}return ie.Children={map:w,forEach:function(y,I,W){w(y,function(){I.apply(this,arguments)},W)},count:function(y){var I=0;return w(y,function(){I++}),I},toArray:function(y){return w(y,function(I){return I})||[]},only:function(y){if(!_(y))throw Error("React.Children.only expected to receive a single React element child.");return y}},ie.Component=v,ie.Fragment=r,ie.Profiler=o,ie.PureComponent=E,ie.StrictMode=n,ie.Suspense=l,ie.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,ie.__COMPILER_RUNTIME={__proto__:null,c:function(y){return C.H.useMemoCache(y)}},ie.cache=function(y){return function(){return y.apply(null,arguments)}},ie.cloneElement=function(y,I,W){if(y==null)throw Error("The argument must be a React element, but you passed "+y+".");var G=h({},y.props),Z=y.key,te=void 0;if(I!=null)for(ee in I.ref!==void 0&&(te=void 0),I.key!==void 0&&(Z=""+I.key),I)!k.call(I,ee)||ee==="key"||ee==="__self"||ee==="__source"||ee==="ref"&&I.ref===void 0||(G[ee]=I[ee]);var ee=arguments.length-2;if(ee===1)G.children=W;else if(1<ee){for(var Ne=Array(ee),B=0;B<ee;B++)Ne[B]=arguments[B+2];G.children=Ne}return D(y.type,Z,void 0,void 0,te,G)},ie.createContext=function(y){return y={$$typeof:a,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null},y.Provider=y,y.Consumer={$$typeof:i,_context:y},y},ie.createElement=function(y,I,W){var G,Z={},te=null;if(I!=null)for(G in I.key!==void 0&&(te=""+I.key),I)k.call(I,G)&&G!=="key"&&G!=="__self"&&G!=="__source"&&(Z[G]=I[G]);var ee=arguments.length-2;if(ee===1)Z.children=W;else if(1<ee){for(var Ne=Array(ee),B=0;B<ee;B++)Ne[B]=arguments[B+2];Z.children=Ne}if(y&&y.defaultProps)for(G in ee=y.defaultProps,ee)Z[G]===void 0&&(Z[G]=ee[G]);return D(y,te,void 0,void 0,null,Z)},ie.createRef=function(){return{current:null}},ie.forwardRef=function(y){return{$$typeof:s,render:y}},ie.isValidElement=_,ie.lazy=function(y){return{$$typeof:d,_payload:{_status:-1,_result:y},_init:L}},ie.memo=function(y,I){return{$$typeof:c,type:y,compare:I===void 0?null:I}},ie.startTransition=function(y){var I=C.T,W={};C.T=W;try{var G=y(),Z=C.S;Z!==null&&Z(W,G),typeof G=="object"&&G!==null&&typeof G.then=="function"&&G.then(K,$)}catch(te){$(te)}finally{C.T=I}},ie.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},ie.use=function(y){return C.H.use(y)},ie.useActionState=function(y,I,W){return C.H.useActionState(y,I,W)},ie.useCallback=function(y,I){return C.H.useCallback(y,I)},ie.useContext=function(y){return C.H.useContext(y)},ie.useDebugValue=function(){},ie.useDeferredValue=function(y,I){return C.H.useDeferredValue(y,I)},ie.useEffect=function(y,I,W){var G=C.H;if(typeof W=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return G.useEffect(y,I)},ie.useId=function(){return C.H.useId()},ie.useImperativeHandle=function(y,I,W){return C.H.useImperativeHandle(y,I,W)},ie.useInsertionEffect=function(y,I){return C.H.useInsertionEffect(y,I)},ie.useLayoutEffect=function(y,I){return C.H.useLayoutEffect(y,I)},ie.useMemo=function(y,I){return C.H.useMemo(y,I)},ie.useOptimistic=function(y,I){return C.H.useOptimistic(y,I)},ie.useReducer=function(y,I,W){return C.H.useReducer(y,I,W)},ie.useRef=function(y){return C.H.useRef(y)},ie.useState=function(y){return C.H.useState(y)},ie.useSyncExternalStore=function(y,I,W){return C.H.useSyncExternalStore(y,I,W)},ie.useTransition=function(){return C.H.useTransition()},ie.version="19.1.0",ie}var jn={exports:{}};/**
18
+ * @license React
19
+ * react.development.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */jn.exports;var Yc;function q0(){return Yc||(Yc=1,function(e,t){process.env.NODE_ENV!=="production"&&function(){function r(b,A){Object.defineProperty(i.prototype,b,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",A[0],A[1])}})}function n(b){return b===null||typeof b!="object"?null:(b=q&&b[q]||b["@@iterator"],typeof b=="function"?b:null)}function o(b,A){b=(b=b.constructor)&&(b.displayName||b.name)||"ReactClass";var Y=b+"."+A;U[Y]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",A,b),U[Y]=!0)}function i(b,A,Y){this.props=b,this.context=A,this.refs=Et,this.updater=Y||ge}function a(){}function s(b,A,Y){this.props=b,this.context=A,this.refs=Et,this.updater=Y||ge}function l(b){return""+b}function c(b){try{l(b);var A=!1}catch{A=!0}if(A){A=console;var Y=A.error,X=typeof Symbol=="function"&&Symbol.toStringTag&&b[Symbol.toStringTag]||b.constructor.name||"Object";return Y.call(A,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",X),l(b)}}function d(b){if(b==null)return null;if(typeof b=="function")return b.$$typeof===Ea?null:b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case y:return"Fragment";case W:return"Profiler";case I:return"StrictMode";case ee:return"Suspense";case Ne:return"SuspenseList";case ne:return"Activity"}if(typeof b=="object")switch(typeof b.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),b.$$typeof){case K:return"Portal";case Z:return(b.displayName||"Context")+".Provider";case G:return(b._context.displayName||"Context")+".Consumer";case te:var A=b.render;return b=b.displayName,b||(b=A.displayName||A.name||"",b=b!==""?"ForwardRef("+b+")":"ForwardRef"),b;case B:return A=b.displayName||null,A!==null?A:d(b.type)||"Memo";case H:A=b._payload,b=b._init;try{return d(b(A))}catch{}}return null}function f(b){if(b===y)return"<>";if(typeof b=="object"&&b!==null&&b.$$typeof===H)return"<...>";try{var A=d(b);return A?"<"+A+">":"<...>"}catch{return"<...>"}}function u(){var b=ae.A;return b===null?null:b.getOwner()}function p(){return Error("react-stack-top-frame")}function h(b){if(jr.call(b,"key")){var A=Object.getOwnPropertyDescriptor(b,"key").get;if(A&&A.isReactWarning)return!1}return b.key!==void 0}function m(b,A){function Y(){On||(On=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",A))}Y.isReactWarning=!0,Object.defineProperty(b,"key",{get:Y,configurable:!0})}function v(){var b=d(this.type);return Vc[b]||(Vc[b]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),b=this.props.ref,b!==void 0?b:null}function x(b,A,Y,X,Q,fe,se,Se){return Y=fe.ref,b={$$typeof:$,type:b,key:A,props:fe,_owner:Q},(Y!==void 0?Y:null)!==null?Object.defineProperty(b,"ref",{enumerable:!1,get:v}):Object.defineProperty(b,"ref",{enumerable:!1,value:null}),b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(b,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(b,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:se}),Object.defineProperty(b,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Se}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b}function E(b,A){return A=x(b.type,A,void 0,void 0,b._owner,b.props,b._debugStack,b._debugTask),b._store&&(A._store.validated=b._store.validated),A}function P(b){return typeof b=="object"&&b!==null&&b.$$typeof===$}function T(b){var A={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(Y){return A[Y]})}function C(b,A){return typeof b=="object"&&b!==null&&b.key!=null?(c(b.key),T(""+b.key)):A.toString(36)}function k(){}function D(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status=="string"?b.then(k,k):(b.status="pending",b.then(function(A){b.status==="pending"&&(b.status="fulfilled",b.value=A)},function(A){b.status==="pending"&&(b.status="rejected",b.reason=A)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function R(b,A,Y,X,Q){var fe=typeof b;(fe==="undefined"||fe==="boolean")&&(b=null);var se=!1;if(b===null)se=!0;else switch(fe){case"bigint":case"string":case"number":se=!0;break;case"object":switch(b.$$typeof){case $:case K:se=!0;break;case H:return se=b._init,R(se(b._payload),A,Y,X,Q)}}if(se){se=b,Q=Q(se);var Se=X===""?"."+C(se,0):X;return Tn(Q)?(Y="",Se!=null&&(Y=Se.replace(Wc,"$&/")+"/"),R(Q,A,Y,"",function(rr){return rr})):Q!=null&&(P(Q)&&(Q.key!=null&&(se&&se.key===Q.key||c(Q.key)),Y=E(Q,Y+(Q.key==null||se&&se.key===Q.key?"":(""+Q.key).replace(Wc,"$&/")+"/")+Se),X!==""&&se!=null&&P(se)&&se.key==null&&se._store&&!se._store.validated&&(Y._store.validated=2),Q=Y),A.push(Q)),1}if(se=0,Se=X===""?".":X+":",Tn(b))for(var ue=0;ue<b.length;ue++)X=b[ue],fe=Se+C(X,ue),se+=R(X,A,Y,fe,Q);else if(ue=n(b),typeof ue=="function")for(ue===b.entries&&(Bc||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Bc=!0),b=ue.call(b),ue=0;!(X=b.next()).done;)X=X.value,fe=Se+C(X,ue++),se+=R(X,A,Y,fe,Q);else if(fe==="object"){if(typeof b.then=="function")return R(D(b),A,Y,X,Q);throw A=String(b),Error("Objects are not valid as a React child (found: "+(A==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":A)+"). If you meant to render a collection of children, use an array instead.")}return se}function _(b,A,Y){if(b==null)return b;var X=[],Q=0;return R(b,X,"","",function(fe){return A.call(Y,fe,Q++)}),X}function N(b){if(b._status===-1){var A=b._result;A=A(),A.then(function(Y){(b._status===0||b._status===-1)&&(b._status=1,b._result=Y)},function(Y){(b._status===0||b._status===-1)&&(b._status=2,b._result=Y)}),b._status===-1&&(b._status=0,b._result=A)}if(b._status===1)return A=b._result,A===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
26
+
27
+ Your code should look like:
28
+ const MyComponent = lazy(() => import('./MyComponent'))
29
+
30
+ Did you accidentally put curly braces around the import?`,A),"default"in A||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
31
+
32
+ Your code should look like:
33
+ const MyComponent = lazy(() => import('./MyComponent'))`,A),A.default;throw b._result}function S(){var b=ae.H;return b===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
34
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
35
+ 2. You might be breaking the Rules of Hooks
36
+ 3. You might have more than one copy of React in the same app
37
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),b}function M(){}function j(b){if(Io===null)try{var A=("require"+Math.random()).slice(0,7);Io=(e&&e[A]).call(e,"timers").setImmediate}catch{Io=function(X){Kc===!1&&(Kc=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Q=new MessageChannel;Q.port1.onmessage=X,Q.port2.postMessage(void 0)}}return Io(b)}function z(b){return 1<b.length&&typeof AggregateError=="function"?new AggregateError(b):b[0]}function F(b,A){A!==No-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),No=A}function w(b,A,Y){var X=ae.actQueue;if(X!==null)if(X.length!==0)try{L(X),j(function(){return w(b,A,Y)});return}catch(Q){ae.thrownErrors.push(Q)}else ae.actQueue=null;0<ae.thrownErrors.length?(X=z(ae.thrownErrors),ae.thrownErrors.length=0,Y(X)):A(b)}function L(b){if(!Ca){Ca=!0;var A=0;try{for(;A<b.length;A++){var Y=b[A];do{ae.didUsePromise=!1;var X=Y(!1);if(X!==null){if(ae.didUsePromise){b[A]=Y,b.splice(0,A);return}Y=X}else break}while(!0)}b.length=0}catch(Q){b.splice(0,A+1),ae.thrownErrors.push(Q)}finally{Ca=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var $=Symbol.for("react.transitional.element"),K=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),Ne=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),q=Symbol.iterator,U={},ge={isMounted:function(){return!1},enqueueForceUpdate:function(b){o(b,"forceUpdate")},enqueueReplaceState:function(b){o(b,"replaceState")},enqueueSetState:function(b){o(b,"setState")}},_e=Object.assign,Et={};Object.freeze(Et),i.prototype.isReactComponent={},i.prototype.setState=function(b,A){if(typeof b!="object"&&typeof b!="function"&&b!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,b,A,"setState")},i.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};var Fe={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Kr;for(Kr in Fe)Fe.hasOwnProperty(Kr)&&r(Kr,Fe[Kr]);a.prototype=i.prototype,Fe=s.prototype=new a,Fe.constructor=s,_e(Fe,i.prototype),Fe.isPureReactComponent=!0;var Tn=Array.isArray,Ea=Symbol.for("react.client.reference"),ae={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},jr=Object.prototype.hasOwnProperty,Rn=console.createTask?console.createTask:function(){return null};Fe={"react-stack-bottom-frame":function(b){return b()}};var On,Ur,Vc={},W0=Fe["react-stack-bottom-frame"].bind(Fe,p)(),H0=Rn(f(p)),Bc=!1,Wc=/\/+/g,Hc=typeof reportError=="function"?reportError:function(b){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var A=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b),error:b});if(!window.dispatchEvent(A))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)},Kc=!1,Io=null,No=0,Do=!1,Ca=!1,jc=typeof queueMicrotask=="function"?function(b){queueMicrotask(function(){return queueMicrotask(b)})}:j;Fe=Object.freeze({__proto__:null,c:function(b){return S().useMemoCache(b)}}),t.Children={map:_,forEach:function(b,A,Y){_(b,function(){A.apply(this,arguments)},Y)},count:function(b){var A=0;return _(b,function(){A++}),A},toArray:function(b){return _(b,function(A){return A})||[]},only:function(b){if(!P(b))throw Error("React.Children.only expected to receive a single React element child.");return b}},t.Component=i,t.Fragment=y,t.Profiler=W,t.PureComponent=s,t.StrictMode=I,t.Suspense=ee,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ae,t.__COMPILER_RUNTIME=Fe,t.act=function(b){var A=ae.actQueue,Y=No;No++;var X=ae.actQueue=A!==null?A:[],Q=!1;try{var fe=b()}catch(ue){ae.thrownErrors.push(ue)}if(0<ae.thrownErrors.length)throw F(A,Y),b=z(ae.thrownErrors),ae.thrownErrors.length=0,b;if(fe!==null&&typeof fe=="object"&&typeof fe.then=="function"){var se=fe;return jc(function(){Q||Do||(Do=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(ue,rr){Q=!0,se.then(function(Gr){if(F(A,Y),Y===0){try{L(X),j(function(){return w(Gr,ue,rr)})}catch(j0){ae.thrownErrors.push(j0)}if(0<ae.thrownErrors.length){var K0=z(ae.thrownErrors);ae.thrownErrors.length=0,rr(K0)}}else ue(Gr)},function(Gr){F(A,Y),0<ae.thrownErrors.length&&(Gr=z(ae.thrownErrors),ae.thrownErrors.length=0),rr(Gr)})}}}var Se=fe;if(F(A,Y),Y===0&&(L(X),X.length!==0&&jc(function(){Q||Do||(Do=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),ae.actQueue=null),0<ae.thrownErrors.length)throw b=z(ae.thrownErrors),ae.thrownErrors.length=0,b;return{then:function(ue,rr){Q=!0,Y===0?(ae.actQueue=X,j(function(){return w(Se,ue,rr)})):ue(Se)}}},t.cache=function(b){return function(){return b.apply(null,arguments)}},t.captureOwnerStack=function(){var b=ae.getCurrentStack;return b===null?null:b()},t.cloneElement=function(b,A,Y){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var X=_e({},b.props),Q=b.key,fe=b._owner;if(A!=null){var se;e:{if(jr.call(A,"ref")&&(se=Object.getOwnPropertyDescriptor(A,"ref").get)&&se.isReactWarning){se=!1;break e}se=A.ref!==void 0}se&&(fe=u()),h(A)&&(c(A.key),Q=""+A.key);for(Se in A)!jr.call(A,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&A.ref===void 0||(X[Se]=A[Se])}var Se=arguments.length-2;if(Se===1)X.children=Y;else if(1<Se){se=Array(Se);for(var ue=0;ue<Se;ue++)se[ue]=arguments[ue+2];X.children=se}for(X=x(b.type,Q,void 0,void 0,fe,X,b._debugStack,b._debugTask),Q=2;Q<arguments.length;Q++)fe=arguments[Q],P(fe)&&fe._store&&(fe._store.validated=1);return X},t.createContext=function(b){return b={$$typeof:Z,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:G,_context:b},b._currentRenderer=null,b._currentRenderer2=null,b},t.createElement=function(b,A,Y){for(var X=2;X<arguments.length;X++){var Q=arguments[X];P(Q)&&Q._store&&(Q._store.validated=1)}if(X={},Q=null,A!=null)for(ue in Ur||!("__self"in A)||"key"in A||(Ur=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),h(A)&&(c(A.key),Q=""+A.key),A)jr.call(A,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(X[ue]=A[ue]);var fe=arguments.length-2;if(fe===1)X.children=Y;else if(1<fe){for(var se=Array(fe),Se=0;Se<fe;Se++)se[Se]=arguments[Se+2];Object.freeze&&Object.freeze(se),X.children=se}if(b&&b.defaultProps)for(ue in fe=b.defaultProps,fe)X[ue]===void 0&&(X[ue]=fe[ue]);Q&&m(X,typeof b=="function"?b.displayName||b.name||"Unknown":b);var ue=1e4>ae.recentlyCreatedOwnerStacks++;return x(b,Q,void 0,void 0,u(),X,ue?Error("react-stack-top-frame"):W0,ue?Rn(f(b)):H0)},t.createRef=function(){var b={current:null};return Object.seal(b),b},t.forwardRef=function(b){b!=null&&b.$$typeof===B?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof b!="function"?console.error("forwardRef requires a render function but was given %s.",b===null?"null":typeof b):b.length!==0&&b.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",b.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),b!=null&&b.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var A={$$typeof:te,render:b},Y;return Object.defineProperty(A,"displayName",{enumerable:!1,configurable:!0,get:function(){return Y},set:function(X){Y=X,b.name||b.displayName||(Object.defineProperty(b,"name",{value:X}),b.displayName=X)}}),A},t.isValidElement=P,t.lazy=function(b){return{$$typeof:H,_payload:{_status:-1,_result:b},_init:N}},t.memo=function(b,A){b==null&&console.error("memo: The first argument must be a component. Instead received: %s",b===null?"null":typeof b),A={$$typeof:B,type:b,compare:A===void 0?null:A};var Y;return Object.defineProperty(A,"displayName",{enumerable:!1,configurable:!0,get:function(){return Y},set:function(X){Y=X,b.name||b.displayName||(Object.defineProperty(b,"name",{value:X}),b.displayName=X)}}),A},t.startTransition=function(b){var A=ae.T,Y={};ae.T=Y,Y._updatedFibers=new Set;try{var X=b(),Q=ae.S;Q!==null&&Q(Y,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(M,Hc)}catch(fe){Hc(fe)}finally{A===null&&Y._updatedFibers&&(b=Y._updatedFibers.size,Y._updatedFibers.clear(),10<b&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),ae.T=A}},t.unstable_useCacheRefresh=function(){return S().useCacheRefresh()},t.use=function(b){return S().use(b)},t.useActionState=function(b,A,Y){return S().useActionState(b,A,Y)},t.useCallback=function(b,A){return S().useCallback(b,A)},t.useContext=function(b){var A=S();return b.$$typeof===G&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),A.useContext(b)},t.useDebugValue=function(b,A){return S().useDebugValue(b,A)},t.useDeferredValue=function(b,A){return S().useDeferredValue(b,A)},t.useEffect=function(b,A,Y){b==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var X=S();if(typeof Y=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return X.useEffect(b,A)},t.useId=function(){return S().useId()},t.useImperativeHandle=function(b,A,Y){return S().useImperativeHandle(b,A,Y)},t.useInsertionEffect=function(b,A){return b==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),S().useInsertionEffect(b,A)},t.useLayoutEffect=function(b,A){return b==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),S().useLayoutEffect(b,A)},t.useMemo=function(b,A){return S().useMemo(b,A)},t.useOptimistic=function(b,A){return S().useOptimistic(b,A)},t.useReducer=function(b,A,Y){return S().useReducer(b,A,Y)},t.useRef=function(b){return S().useRef(b)},t.useState=function(b){return S().useState(b)},t.useSyncExternalStore=function(b,A,Y){return S().useSyncExternalStore(b,A,Y)},t.useTransition=function(){return S().useTransition()},t.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()}(jn,jn.exports)),jn.exports}var qc;function xn(){return qc||(qc=1,process.env.NODE_ENV==="production"?Ao.exports=Y0():Ao.exports=q0()),Ao.exports}/**
38
+ * @license React
39
+ * react-jsx-runtime.development.js
40
+ *
41
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
42
+ *
43
+ * This source code is licensed under the MIT license found in the
44
+ * LICENSE file in the root directory of this source tree.
45
+ */var Xc;function X0(){return Xc||(Xc=1,process.env.NODE_ENV!=="production"&&function(){function e(y){if(y==null)return null;if(typeof y=="function")return y.$$typeof===N?null:y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case m:return"Fragment";case x:return"Profiler";case v:return"StrictMode";case C:return"Suspense";case k:return"SuspenseList";case _:return"Activity"}if(typeof y=="object")switch(typeof y.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),y.$$typeof){case h:return"Portal";case P:return(y.displayName||"Context")+".Provider";case E:return(y._context.displayName||"Context")+".Consumer";case T:var I=y.render;return y=y.displayName,y||(y=I.displayName||I.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case D:return I=y.displayName||null,I!==null?I:e(y.type)||"Memo";case R:I=y._payload,y=y._init;try{return e(y(I))}catch{}}return null}function t(y){return""+y}function r(y){try{t(y);var I=!1}catch{I=!0}if(I){I=console;var W=I.error,G=typeof Symbol=="function"&&Symbol.toStringTag&&y[Symbol.toStringTag]||y.constructor.name||"Object";return W.call(I,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",G),t(y)}}function n(y){if(y===m)return"<>";if(typeof y=="object"&&y!==null&&y.$$typeof===R)return"<...>";try{var I=e(y);return I?"<"+I+">":"<...>"}catch{return"<...>"}}function o(){var y=S.A;return y===null?null:y.getOwner()}function i(){return Error("react-stack-top-frame")}function a(y){if(M.call(y,"key")){var I=Object.getOwnPropertyDescriptor(y,"key").get;if(I&&I.isReactWarning)return!1}return y.key!==void 0}function s(y,I){function W(){F||(F=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",I))}W.isReactWarning=!0,Object.defineProperty(y,"key",{get:W,configurable:!0})}function l(){var y=e(this.type);return w[y]||(w[y]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),y=this.props.ref,y!==void 0?y:null}function c(y,I,W,G,Z,te,ee,Ne){return W=te.ref,y={$$typeof:p,type:y,key:I,props:te,_owner:Z},(W!==void 0?W:null)!==null?Object.defineProperty(y,"ref",{enumerable:!1,get:l}):Object.defineProperty(y,"ref",{enumerable:!1,value:null}),y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(y,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(y,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ee}),Object.defineProperty(y,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ne}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y}function d(y,I,W,G,Z,te,ee,Ne){var B=I.children;if(B!==void 0)if(G)if(j(B)){for(G=0;G<B.length;G++)f(B[G]);Object.freeze&&Object.freeze(B)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(B);if(M.call(I,"key")){B=e(y);var H=Object.keys(I).filter(function(q){return q!=="key"});G=0<H.length?"{key: someKey, "+H.join(": ..., ")+": ...}":"{key: someKey}",K[B+G]||(H=0<H.length?"{"+H.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
46
+ let props = %s;
47
+ <%s {...props} />
48
+ React keys must be passed directly to JSX without using spread:
49
+ let props = %s;
50
+ <%s key={someKey} {...props} />`,G,B,H,B),K[B+G]=!0)}if(B=null,W!==void 0&&(r(W),B=""+W),a(I)&&(r(I.key),B=""+I.key),"key"in I){W={};for(var ne in I)ne!=="key"&&(W[ne]=I[ne])}else W=I;return B&&s(W,typeof y=="function"?y.displayName||y.name||"Unknown":y),c(y,B,te,Z,o(),W,ee,Ne)}function f(y){typeof y=="object"&&y!==null&&y.$$typeof===p&&y._store&&(y._store.validated=1)}var u=xn(),p=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),P=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),N=Symbol.for("react.client.reference"),S=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,j=Array.isArray,z=console.createTask?console.createTask:function(){return null};u={"react-stack-bottom-frame":function(y){return y()}};var F,w={},L=u["react-stack-bottom-frame"].bind(u,i)(),$=z(n(i)),K={};Nn.Fragment=m,Nn.jsx=function(y,I,W,G,Z){var te=1e4>S.recentlyCreatedOwnerStacks++;return d(y,I,W,!1,G,Z,te?Error("react-stack-top-frame"):L,te?z(n(y)):$)},Nn.jsxs=function(y,I,W,G,Z){var te=1e4>S.recentlyCreatedOwnerStacks++;return d(y,I,W,!0,G,Z,te?Error("react-stack-top-frame"):L,te?z(n(y)):$)}}()),Nn}var Zc;function Z0(){return Zc||(Zc=1,process.env.NODE_ENV==="production"?_o.exports=G0():_o.exports=X0()),_o.exports}var O=Z0(),g=xn();const V=Hi(g),Jc=U0({__proto__:null,default:V},[g]),yt=(...e)=>e.filter(Boolean).map(t=>t.trim()).join(" ");function J0(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function Qn(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:a}=e,s=g.createContext(a);s.displayName=t;function l(){var d;const c=g.useContext(s);if(!c&&r){const f=new Error(i??J0(n,o));throw f.name="ContextError",(d=Error.captureStackTrace)==null||d.call(Error,f,l),f}return c}return[s.Provider,l,s]}function Q0(...e){return function(...r){e.forEach(n=>n==null?void 0:n(...r))}}const ex=(...e)=>e.map(t=>{var r;return(r=t==null?void 0:t.trim)==null?void 0:r.call(t)}).filter(Boolean).join(" "),tx=/^on[A-Z]/;function oo(...e){let t={};for(let r of e){for(let n in t){if(tx.test(n)&&typeof t[n]=="function"&&typeof r[n]=="function"){t[n]=Q0(t[n],r[n]);continue}if(n==="className"||n==="class"){t[n]=ex(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 rx=Object.freeze({}),nx=Object.freeze({});function Gp(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var ox=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Yp=Gp(function(e){return ox.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function ix(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function ax(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var sx=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ax(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=ix(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Xe="-ms-",bi="-moz-",he="-webkit-",qp="comm",nl="rule",ol="decl",lx="@import",Xp="@keyframes",cx="@layer",ux=Math.abs,Ki=String.fromCharCode,dx=Object.assign;function fx(e,t){return Ue(e,0)^45?(((t<<2^Ue(e,0))<<2^Ue(e,1))<<2^Ue(e,2))<<2^Ue(e,3):0}function Zp(e){return e.trim()}function px(e,t){return(e=t.exec(e))?e[0]:e}function ve(e,t,r){return e.replace(t,r)}function ps(e,t){return e.indexOf(t)}function Ue(e,t){return e.charCodeAt(t)|0}function io(e,t,r){return e.slice(t,r)}function Nt(e){return e.length}function il(e){return e.length}function Lo(e,t){return t.push(e),e}function gx(e,t){return e.map(t).join("")}var ji=1,mn=1,Jp=0,it=0,Me=0,Sn="";function Ui(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:ji,column:mn,length:a,return:""}}function Dn(e,t){return dx(Ui("",null,null,"",null,null,0),e,{length:-e.length},t)}function hx(){return Me}function mx(){return Me=it>0?Ue(Sn,--it):0,mn--,Me===10&&(mn=1,ji--),Me}function ut(){return Me=it<Jp?Ue(Sn,it++):0,mn++,Me===10&&(mn=1,ji++),Me}function At(){return Ue(Sn,it)}function ni(){return it}function vo(e,t){return io(Sn,e,t)}function ao(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Qp(e){return ji=mn=1,Jp=Nt(Sn=e),it=0,[]}function eg(e){return Sn="",e}function oi(e){return Zp(vo(it-1,gs(e===91?e+2:e===40?e+1:e)))}function vx(e){for(;(Me=At())&&Me<33;)ut();return ao(e)>2||ao(Me)>3?"":" "}function bx(e,t){for(;--t&&ut()&&!(Me<48||Me>102||Me>57&&Me<65||Me>70&&Me<97););return vo(e,ni()+(t<6&&At()==32&&ut()==32))}function gs(e){for(;ut();)switch(Me){case e:return it;case 34:case 39:e!==34&&e!==39&&gs(Me);break;case 40:e===41&&gs(e);break;case 92:ut();break}return it}function yx(e,t){for(;ut()&&e+Me!==57;)if(e+Me===84&&At()===47)break;return"/*"+vo(t,it-1)+"*"+Ki(e===47?e:ut())}function xx(e){for(;!ao(At());)ut();return vo(e,it)}function Sx(e){return eg(ii("",null,null,null,[""],e=Qp(e),0,[0],e))}function ii(e,t,r,n,o,i,a,s,l){for(var c=0,d=0,f=a,u=0,p=0,h=0,m=1,v=1,x=1,E=0,P="",T=o,C=i,k=n,D=P;v;)switch(h=E,E=ut()){case 40:if(h!=108&&Ue(D,f-1)==58){ps(D+=ve(oi(E),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:D+=oi(E);break;case 9:case 10:case 13:case 32:D+=vx(h);break;case 92:D+=bx(ni()-1,7);continue;case 47:switch(At()){case 42:case 47:Lo(wx(yx(ut(),ni()),t,r),l);break;default:D+="/"}break;case 123*m:s[c++]=Nt(D)*x;case 125*m:case 59:case 0:switch(E){case 0:case 125:v=0;case 59+d:x==-1&&(D=ve(D,/\f/g,"")),p>0&&Nt(D)-f&&Lo(p>32?eu(D+";",n,r,f-1):eu(ve(D," ","")+";",n,r,f-2),l);break;case 59:D+=";";default:if(Lo(k=Qc(D,t,r,c,d,o,s,P,T=[],C=[],f),i),E===123)if(d===0)ii(D,t,k,k,T,i,f,s,C);else switch(u===99&&Ue(D,3)===110?100:u){case 100:case 108:case 109:case 115:ii(e,k,k,n&&Lo(Qc(e,k,k,0,0,o,s,P,o,T=[],f),C),o,C,f,s,n?T:C);break;default:ii(D,k,k,k,[""],C,0,s,C)}}c=d=p=0,m=x=1,P=D="",f=a;break;case 58:f=1+Nt(D),p=h;default:if(m<1){if(E==123)--m;else if(E==125&&m++==0&&mx()==125)continue}switch(D+=Ki(E),E*m){case 38:x=d>0?1:(D+="\f",-1);break;case 44:s[c++]=(Nt(D)-1)*x,x=1;break;case 64:At()===45&&(D+=oi(ut())),u=At(),d=f=Nt(P=D+=xx(ni())),E++;break;case 45:h===45&&Nt(D)==2&&(m=0)}}return i}function Qc(e,t,r,n,o,i,a,s,l,c,d){for(var f=o-1,u=o===0?i:[""],p=il(u),h=0,m=0,v=0;h<n;++h)for(var x=0,E=io(e,f+1,f=ux(m=a[h])),P=e;x<p;++x)(P=Zp(m>0?u[x]+" "+E:ve(E,/&\f/g,u[x])))&&(l[v++]=P);return Ui(e,t,r,o===0?nl:s,l,c,d)}function wx(e,t,r){return Ui(e,t,r,qp,Ki(hx()),io(e,2,-2),0)}function eu(e,t,r,n){return Ui(e,t,r,ol,io(e,0,n),io(e,n+1,-1),n)}function un(e,t){for(var r="",n=il(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Ex(e,t,r,n){switch(e.type){case cx:if(e.children.length)break;case lx:case ol:return e.return=e.return||e.value;case qp:return"";case Xp:return e.return=e.value+"{"+un(e.children,n)+"}";case nl:e.value=e.props.join(",")}return Nt(r=un(e.children,n))?e.return=e.value+"{"+r+"}":""}function Cx(e){var t=il(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}function Px(e){return function(t){t.root||(t=t.return)&&e(t)}}var kx=function(t,r,n){for(var o=0,i=0;o=i,i=At(),o===38&&i===12&&(r[n]=1),!ao(i);)ut();return vo(t,it)},$x=function(t,r){var n=-1,o=44;do switch(ao(o)){case 0:o===38&&At()===12&&(r[n]=1),t[n]+=kx(it-1,r,n);break;case 2:t[n]+=oi(o);break;case 4:if(o===44){t[++n]=At()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Ki(o)}while(o=ut());return t},Tx=function(t,r){return eg($x(Qp(t),r))},tu=new WeakMap,Rx=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!tu.get(n))&&!o){tu.set(t,!0);for(var i=[],a=Tx(r,i),s=n.props,l=0,c=0;l<a.length;l++)for(var d=0;d<s.length;d++,c++)t.props[c]=i[l]?a[l].replace(/&\f/g,s[d]):s[d]+" "+a[l]}}},Ox=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function tg(e,t){switch(fx(e,t)){case 5103:return he+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return he+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return he+e+bi+e+Xe+e+e;case 6828:case 4268:return he+e+Xe+e+e;case 6165:return he+e+Xe+"flex-"+e+e;case 5187:return he+e+ve(e,/(\w+).+(:[^]+)/,he+"box-$1$2"+Xe+"flex-$1$2")+e;case 5443:return he+e+Xe+"flex-item-"+ve(e,/flex-|-self/,"")+e;case 4675:return he+e+Xe+"flex-line-pack"+ve(e,/align-content|flex-|-self/,"")+e;case 5548:return he+e+Xe+ve(e,"shrink","negative")+e;case 5292:return he+e+Xe+ve(e,"basis","preferred-size")+e;case 6060:return he+"box-"+ve(e,"-grow","")+he+e+Xe+ve(e,"grow","positive")+e;case 4554:return he+ve(e,/([^-])(transform)/g,"$1"+he+"$2")+e;case 6187:return ve(ve(ve(e,/(zoom-|grab)/,he+"$1"),/(image-set)/,he+"$1"),e,"")+e;case 5495:case 3959:return ve(e,/(image-set\([^]*)/,he+"$1$`$1");case 4968:return ve(ve(e,/(.+:)(flex-)?(.*)/,he+"box-pack:$3"+Xe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+he+e+e;case 4095:case 3583:case 4068:case 2532:return ve(e,/(.+)-inline(.+)/,he+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Nt(e)-1-t>6)switch(Ue(e,t+1)){case 109:if(Ue(e,t+4)!==45)break;case 102:return ve(e,/(.+:)(.+)-([^]+)/,"$1"+he+"$2-$3$1"+bi+(Ue(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ps(e,"stretch")?tg(ve(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ue(e,t+1)!==115)break;case 6444:switch(Ue(e,Nt(e)-3-(~ps(e,"!important")&&10))){case 107:return ve(e,":",":"+he)+e;case 101:return ve(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+he+(Ue(e,14)===45?"inline-":"")+"box$3$1"+he+"$2$3$1"+Xe+"$2box$3")+e}break;case 5936:switch(Ue(e,t+11)){case 114:return he+e+Xe+ve(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return he+e+Xe+ve(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return he+e+Xe+ve(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return he+e+Xe+e+e}return e}var Ix=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case ol:t.return=tg(t.value,t.length);break;case Xp:return un([Dn(t,{value:ve(t.value,"@","@"+he)})],o);case nl:if(t.length)return gx(t.props,function(i){switch(px(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return un([Dn(t,{props:[ve(i,/:(read-\w+)/,":"+bi+"$1")]})],o);case"::placeholder":return un([Dn(t,{props:[ve(i,/:(plac\w+)/,":"+he+"input-$1")]}),Dn(t,{props:[ve(i,/:(plac\w+)/,":"+bi+"$1")]}),Dn(t,{props:[ve(i,/:(plac\w+)/,Xe+"input-$1")]})],o)}return""})}},Nx=[Ix],Dx=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||Nx,i={},a,s=[];a=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<v.length;x++)i[v[x]]=!0;s.push(m)});var l,c=[Rx,Ox];{var d,f=[Ex,Px(function(m){d.insert(m)})],u=Cx(c.concat(o,f)),p=function(v){return un(Sx(v),u)};l=function(v,x,E,P){d=E,p(v?v+"{"+x.styles+"}":x.styles),P&&(h.inserted[x.name]=!0)}}var h={key:r,sheet:new sx({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return h.sheet.hydrate(s),h},Mo={exports:{}},ye={};/** @license React v16.13.1
51
+ * react-is.production.min.js
52
+ *
53
+ * Copyright (c) Facebook, Inc. and its affiliates.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE file in the root directory of this source tree.
57
+ */var ru;function _x(){if(ru)return ye;ru=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function P(C){if(typeof C=="object"&&C!==null){var k=C.$$typeof;switch(k){case t:switch(C=C.type,C){case l:case c:case n:case i:case o:case f:return C;default:switch(C=C&&C.$$typeof,C){case s:case d:case h:case p:case a:return C;default:return k}}case r:return k}}}function T(C){return P(C)===c}return ye.AsyncMode=l,ye.ConcurrentMode=c,ye.ContextConsumer=s,ye.ContextProvider=a,ye.Element=t,ye.ForwardRef=d,ye.Fragment=n,ye.Lazy=h,ye.Memo=p,ye.Portal=r,ye.Profiler=i,ye.StrictMode=o,ye.Suspense=f,ye.isAsyncMode=function(C){return T(C)||P(C)===l},ye.isConcurrentMode=T,ye.isContextConsumer=function(C){return P(C)===s},ye.isContextProvider=function(C){return P(C)===a},ye.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},ye.isForwardRef=function(C){return P(C)===d},ye.isFragment=function(C){return P(C)===n},ye.isLazy=function(C){return P(C)===h},ye.isMemo=function(C){return P(C)===p},ye.isPortal=function(C){return P(C)===r},ye.isProfiler=function(C){return P(C)===i},ye.isStrictMode=function(C){return P(C)===o},ye.isSuspense=function(C){return P(C)===f},ye.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===c||C===i||C===o||C===f||C===u||typeof C=="object"&&C!==null&&(C.$$typeof===h||C.$$typeof===p||C.$$typeof===a||C.$$typeof===s||C.$$typeof===d||C.$$typeof===v||C.$$typeof===x||C.$$typeof===E||C.$$typeof===m)},ye.typeOf=P,ye}var xe={};/** @license React v16.13.1
58
+ * react-is.development.js
59
+ *
60
+ * Copyright (c) Facebook, Inc. and its affiliates.
61
+ *
62
+ * This source code is licensed under the MIT license found in the
63
+ * LICENSE file in the root directory of this source tree.
64
+ */var nu;function Ax(){return nu||(nu=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function P(U){return typeof U=="string"||typeof U=="function"||U===n||U===c||U===i||U===o||U===f||U===u||typeof U=="object"&&U!==null&&(U.$$typeof===h||U.$$typeof===p||U.$$typeof===a||U.$$typeof===s||U.$$typeof===d||U.$$typeof===v||U.$$typeof===x||U.$$typeof===E||U.$$typeof===m)}function T(U){if(typeof U=="object"&&U!==null){var ge=U.$$typeof;switch(ge){case t:var _e=U.type;switch(_e){case l:case c:case n:case i:case o:case f:return _e;default:var Et=_e&&_e.$$typeof;switch(Et){case s:case d:case h:case p:case a:return Et;default:return ge}}case r:return ge}}}var C=l,k=c,D=s,R=a,_=t,N=d,S=n,M=h,j=p,z=r,F=i,w=o,L=f,$=!1;function K(U){return $||($=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),y(U)||T(U)===l}function y(U){return T(U)===c}function I(U){return T(U)===s}function W(U){return T(U)===a}function G(U){return typeof U=="object"&&U!==null&&U.$$typeof===t}function Z(U){return T(U)===d}function te(U){return T(U)===n}function ee(U){return T(U)===h}function Ne(U){return T(U)===p}function B(U){return T(U)===r}function H(U){return T(U)===i}function ne(U){return T(U)===o}function q(U){return T(U)===f}xe.AsyncMode=C,xe.ConcurrentMode=k,xe.ContextConsumer=D,xe.ContextProvider=R,xe.Element=_,xe.ForwardRef=N,xe.Fragment=S,xe.Lazy=M,xe.Memo=j,xe.Portal=z,xe.Profiler=F,xe.StrictMode=w,xe.Suspense=L,xe.isAsyncMode=K,xe.isConcurrentMode=y,xe.isContextConsumer=I,xe.isContextProvider=W,xe.isElement=G,xe.isForwardRef=Z,xe.isFragment=te,xe.isLazy=ee,xe.isMemo=Ne,xe.isPortal=B,xe.isProfiler=H,xe.isStrictMode=ne,xe.isSuspense=q,xe.isValidElementType=P,xe.typeOf=T}()),xe}var ou;function Lx(){return ou||(ou=1,process.env.NODE_ENV==="production"?Mo.exports=_x():Mo.exports=Ax()),Mo.exports}var Pa,iu;function Mx(){if(iu)return Pa;iu=1;var e=Lx(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=n,i[e.Memo]=o;function a(h){return e.isMemo(h)?o:i[h.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,u=Object.prototype;function p(h,m,v){if(typeof m!="string"){if(u){var x=f(m);x&&x!==u&&p(h,x,v)}var E=l(m);c&&(E=E.concat(c(m)));for(var P=a(h),T=a(m),C=0;C<E.length;++C){var k=E[C];if(!r[k]&&!(v&&v[k])&&!(T&&T[k])&&!(P&&P[k])){var D=d(m,k);try{s(h,k,D)}catch{}}}}return h}return Pa=p,Pa}Mx();var Fx=!0;function rg(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var al=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||Fx===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},sl=function(t,r,n){al(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function zx(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Vx={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},Bx=/[A-Z]|^ms/g,Wx=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ng=function(t){return t.charCodeAt(1)===45},au=function(t){return t!=null&&typeof t!="boolean"},ka=Gp(function(e){return ng(e)?e:e.replace(Bx,"-$&").toLowerCase()}),su=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Wx,function(n,o,i){return Dt={name:o,styles:i,next:Dt},o})}return Vx[t]!==1&&!ng(t)&&typeof r=="number"&&r!==0?r+"px":r};function so(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 Dt={name:o.name,styles:o.styles,next:Dt},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Dt={name:a.name,styles:a.styles,next:Dt},a=a.next;var s=i.styles+";";return s}return Hx(e,t,r)}case"function":{if(e!==void 0){var l=Dt,c=r(e);return Dt=l,so(e,t,c)}break}}var d=r;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function Hx(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=so(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":au(s)&&(n+=ka(i)+":"+su(i,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)au(a[l])&&(n+=ka(i)+":"+su(i,a[l])+";");else{var c=so(e,t,a);switch(i){case"animation":case"animationName":{n+=ka(i)+":"+c+";";break}default:n+=i+"{"+c+"}"}}}return n}var lu=/label:\s*([^\s;{]+)\s*(;|$)/g,Dt;function ll(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";Dt=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=so(r,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=so(r,t,e[s]),n){var l=i;o+=l[s]}lu.lastIndex=0;for(var c="",d;(d=lu.exec(o))!==null;)c+="-"+d[1];var f=zx(o)+c;return{name:f,styles:o,next:Dt}}var Kx=function(t){return t()},og=Jc.useInsertionEffect?Jc.useInsertionEffect:!1,ig=og||Kx,cu=og||g.useLayoutEffect,ag=g.createContext(typeof HTMLElement<"u"?Dx({key:"css"}):null);ag.Provider;var cl=function(t){return g.forwardRef(function(r,n){var o=g.useContext(ag);return t(r,o,n)})},ul=g.createContext({}),dl={}.hasOwnProperty,hs="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",jx=function(t,r){var n={};for(var o in r)dl.call(r,o)&&(n[o]=r[o]);return n[hs]=t,n},Ux=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return al(r,n,o),ig(function(){return sl(r,n,o)}),null},Gx=cl(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[hs],i=[n],a="";typeof e.className=="string"?a=rg(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var s=ll(i,void 0,g.useContext(ul));a+=t.key+"-"+s.name;var l={};for(var c in e)dl.call(e,c)&&c!=="css"&&c!==hs&&(l[c]=e[c]);return l.className=a,r&&(l.ref=r),g.createElement(g.Fragment,null,g.createElement(Ux,{cache:t,serialized:s,isStringTag:typeof o=="string"}),g.createElement(o,l))}),Yx=Gx,uu=function(t,r){var n=arguments;if(r==null||!dl.call(r,"css"))return g.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=Yx,i[1]=jx(t,r);for(var a=2;a<o;a++)i[a]=n[a];return g.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(uu||(uu={}));var du=cl(function(e,t){var r=e.styles,n=ll([r],void 0,g.useContext(ul)),o=g.useRef();return cu(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",i),a.hydrate([l])),o.current=[a,s],function(){a.flush()}},[t]),cu(function(){var i=o.current,a=i[0],s=i[1];if(s){i[1]=!1;return}if(n.next!==void 0&&sl(t,n.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});function qx(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Qt(...e){return t=>{e.forEach(r=>{qx(r,t)})}}function wn(e){const t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Xx(e){return e.default||e}const rt=e=>e!=null&&typeof e=="object"&&!Array.isArray(e),Zx=e=>/^var\(--.+\)$/.test(e),Mt=e=>typeof e=="string",fl=e=>typeof e=="function";function Jx(e){var r;const t=g.version;return!Mt(t)||t.startsWith("18.")?e==null?void 0:e.ref:(r=e==null?void 0:e.props)==null?void 0:r.ref}const[Qx,bo]=Qn({name:"ChakraContext",strict:!0,providerName:"<ChakraProvider />"});function e1(e){const{value:t,children:r}=e;return O.jsxs(Qx,{value:t,children:[!t._config.disableLayers&&O.jsx(du,{styles:t.layers.atRule}),O.jsx(du,{styles:t._global}),r]})}const t1=(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]},dn=(e,t)=>{const r=fl(t)?t:n=>t.includes(n);return t1(e,r)},r1=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function n1(e){return typeof e=="string"&&r1.has(e)}function o1(e,t,r){const{css:n,isValidProperty:o}=bo(),{children:i,...a}=e,s=g.useMemo(()=>{const[u,p]=dn(a,E=>r(E,t.variantKeys)),[h,m]=dn(p,t.variantKeys),[v,x]=dn(m,o);return{forwardedProps:u,variantProps:h,styleProps:v,elementProps:x}},[t.variantKeys,r,a,o]),{css:l,...c}=s.styleProps,d=g.useMemo(()=>{const u={...s.variantProps};return t.variantKeys.includes("colorPalette")||(u.colorPalette=a.colorPalette),t.variantKeys.includes("orientation")||(u.orientation=a.orientation),t(u)},[t,s.variantProps,a.colorPalette,a.orientation]);return{styles:g.useMemo(()=>n(d,...i1(l),c),[n,d,l,c]),props:{...s.forwardedProps,...s.elementProps,children:i}}}const i1=e=>(Array.isArray(e)?e:[e]).filter(Boolean).flat(),a1=Xx(Yp),s1=a1,l1=e=>e!=="theme",c1=(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 u1=typeof document<"u";const fu=({cache:e,serialized:t,isStringTag:r})=>{al(e,t,r);const n=ig(()=>sl(e,t,r));if(!u1&&n!==void 0){let o=t.name,i=t.next;for(;i!==void 0;)o=yt(o,i.name),i=i.next;return O.jsx("style",{"data-emotion":yt(e.key,o),dangerouslySetInnerHTML:{__html:n},nonce:e.sheet.nonce})}return null},d1=(e,t={},r={})=>{if(process.env.NODE_ENV!=="production"&&e===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
65
+ You may have forgotten to import it.`);const n=e.__emotion_real===e,o=n&&e.__emotion_base||e;let i,a;r!==void 0&&(i=r.label,a=r.target);let s=[];const l=cl((c,d,f)=>{var z;const{cva:u,isValidProperty:p}=bo(),h=t.__cva__?t:u(t),m=p1(e.__emotion_cva,h),v=F=>(w,L)=>F.includes(w)?!0:!(L!=null&&L.includes(w))&&!p(w);!r.shouldForwardProp&&r.forwardProps&&(r.shouldForwardProp=v(r.forwardProps));const x=(F,w)=>{const L=typeof e=="string"&&e.charCodeAt(0)>96?s1:l1,$=!(w!=null&&w.includes(F))&&!p(F);return L(F)&&$},E=c1(e,r,n)||x,P=g.useMemo(()=>Object.assign({},r.defaultProps,wn(c)),[c]),{props:T,styles:C}=o1(P,m,E);let k="",D=[C],R=T;if(T.theme==null){R={};for(let F in T)R[F]=T[F];R.theme=g.useContext(ul)}typeof T.className=="string"?k=rg(d.registered,D,T.className):T.className!=null&&(k=yt(k,T.className));const _=ll(s.concat(D),d.registered,R);k=yt(k,`${d.key}-${_.name}`),a!==void 0&&(k=yt(k,a));const N=!E("as");let S=N&&T.as||o,M={};for(let F in T)if(!(N&&F==="as")){if(n1(F)){const w=F.replace("html","").toLowerCase();M[w]=T[F];continue}E(F)&&(M[F]=T[F])}M.className=k.trim(),M.ref=f;const j=r.forwardAsChild||((z=r.forwardProps)==null?void 0:z.includes("asChild"));if(T.asChild&&!j){const F=g.Children.only(T.children);S=F.type,M.children=null,Reflect.deleteProperty(M,"asChild"),M=oo(M,F.props),M.ref=Qt(f,Jx(F))}return M.as&&j?(M.as=void 0,O.jsxs(g.Fragment,{children:[O.jsx(fu,{cache:d,serialized:_,isStringTag:typeof S=="string"}),O.jsx(S,{asChild:!0,...M,children:O.jsx(T.as,{children:M.children})})]})):O.jsxs(g.Fragment,{children:[O.jsx(fu,{cache:d,serialized:_,isStringTag:typeof S=="string"}),O.jsx(S,{...M})]})});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 a===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":`.${a}`}}),l},$a=d1.bind(),Ta=new Map,f1=new Proxy($a,{apply(e,t,r){return $a(...r)},get(e,t){return Ta.has(t)||Ta.set(t,$a(t)),Ta.get(t)}}),Qe=f1,p1=(e,t)=>e&&!t?e:!e&&t?t:e.merge(t);function sg(e){const{key:t,recipe:r}=e,n=bo();return g.useMemo(()=>{const o=r||(t!=null?n.getRecipe(t):{});return n.cva(structuredClone(o))},[t,r,n])}const g1=e=>e.charAt(0).toUpperCase()+e.slice(1);function St(e){const{key:t,recipe:r}=e,n=g1(t||r.className||"Component"),[o,i]=Qn({strict:!1,name:`${n}PropsContext`,providerName:`${n}PropsContext`});function a(c){const{unstyled:d,...f}=c,u=sg({key:t,recipe:f.recipe||r}),[p,h]=g.useMemo(()=>u.splitVariantProps(f),[u,f]);return{styles:d?rx:u(p),className:u.className,props:h}}const s=(c,d)=>{const f=Qe(c,{},d),u=g.forwardRef((p,h)=>{const m=i(),v=g.useMemo(()=>oo(m,p),[p,m]),{styles:x,className:E,props:P}=a(v);return O.jsx(f,{...P,ref:h,css:[x,v.css],className:yt(E,v.className)})});return u.displayName=c.displayName||c.name,u};function l(){return o}return{withContext:s,PropsProvider:o,withPropsProvider:l,usePropsContext:i,useRecipeResult:a}}const lg=g.forwardRef(function(t,r){const{templateAreas:n,column:o,row:i,autoFlow:a,autoRows:s,templateRows:l,autoColumns:c,templateColumns:d,inline:f,...u}=t;return O.jsx(Qe.div,{...u,ref:r,css:[{display:f?"inline-grid":"grid",gridTemplateAreas:n,gridAutoColumns:c,gridColumn:o,gridRow:i,gridAutoFlow:a,gridAutoRows:s,gridTemplateRows:l,gridTemplateColumns:d},t.css]})});var pu=e=>Math.max(0,Math.min(1,e)),h1=(e,t)=>e.map((r,n)=>e[(Math.max(t,0)+n)%e.length]),cg=()=>{},Gi=e=>typeof e=="object"&&e!==null,m1=2147483647,v1=1,b1=9,y1=11,Ze=e=>Gi(e)&&e.nodeType===v1&&typeof e.nodeName=="string",pl=e=>Gi(e)&&e.nodeType===b1,x1=e=>Gi(e)&&e===e.window,ug=e=>Ze(e)?e.localName||"":"#document";function S1(e){return["html","body","#document"].includes(ug(e))}var w1=e=>Gi(e)&&e.nodeType!==void 0,vn=e=>w1(e)&&e.nodeType===y1&&"host"in e,E1=e=>Ze(e)&&e.localName==="input",C1=e=>Ze(e)?e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0:!1,P1=/(textarea|select)/;function dg(e){if(e==null||!Ze(e))return!1;try{return E1(e)&&e.selectionStart!=null||P1.test(e.localName)||e.isContentEditable||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")===""}catch{return!1}}function bn(e,t){var n;if(!e||!t||!Ze(e)||!Ze(t))return!1;const r=(n=t.getRootNode)==null?void 0:n.call(t);if(e===t||e.contains(t))return!0;if(r&&vn(r)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function wt(e){return pl(e)?e:x1(e)?e.document:(e==null?void 0:e.ownerDocument)??document}function k1(e){return wt(e).documentElement}function et(e){var t;return vn(e)?et(e.host):pl(e)?e.defaultView??window:Ze(e)?((t=e.ownerDocument)==null?void 0:t.defaultView)??window:window}function fg(e){let t=e.activeElement;for(;t!=null&&t.shadowRoot;){const r=t.shadowRoot.activeElement;if(r===t)break;t=r}return t}function $1(e){if(ug(e)==="html")return e;const t=e.assignedSlot||e.parentNode||vn(e)&&e.host||k1(e);return vn(t)?t.host:t}var Ra=new WeakMap;function gl(e){return Ra.has(e)||Ra.set(e,et(e).getComputedStyle(e)),Ra.get(e)}var Yi=()=>typeof document<"u";function T1(){const e=navigator.userAgentData;return(e==null?void 0:e.platform)??navigator.platform}function R1(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:r})=>`${t}/${r}`).join(" "):navigator.userAgent}var hl=e=>Yi()&&e.test(T1()),pg=e=>Yi()&&e.test(R1()),O1=e=>Yi()&&e.test(navigator.vendor),gu=()=>Yi()&&!!navigator.maxTouchPoints,I1=()=>hl(/^iPhone/i),N1=()=>hl(/^iPad/i)||Xi()&&navigator.maxTouchPoints>1,qi=()=>I1()||N1(),D1=()=>Xi()||qi(),Xi=()=>hl(/^Mac/i),gg=()=>D1()&&O1(/apple/i),_1=()=>pg(/Firefox/i),A1=()=>pg(/Android/i);function L1(e){var t,r,n;return((t=e.composedPath)==null?void 0:t.call(e))??((n=(r=e.nativeEvent)==null?void 0:r.composedPath)==null?void 0:n.call(r))}function bt(e){const t=L1(e);return(t==null?void 0:t[0])??e.target}function M1(e){return B1(e).isComposing||e.keyCode===229}function F1(e){return e.mozInputSource===0&&e.isTrusted?!0:A1()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}var z1=e=>e.button===2||Xi()&&e.ctrlKey&&e.button===0,V1=e=>"touches"in e&&e.touches.length>0;function B1(e){return e.nativeEvent??e}function W1(e,t="client"){const r=V1(e)?e.touches[0]||e.changedTouches[0]:e;return{x:r[`${t}X`],y:r[`${t}Y`]}}var Oe=(e,t,r,n)=>{const o=typeof e=="function"?e():e;return o==null||o.addEventListener(t,r,n),()=>{o==null||o.removeEventListener(t,r,n)}};function H1(e,t){const{type:r="HTMLInputElement",property:n="value"}=t,o=et(e)[r].prototype;return Object.getOwnPropertyDescriptor(o,n)??{}}function K1(e){if(e.localName==="input")return"HTMLInputElement";if(e.localName==="textarea")return"HTMLTextAreaElement";if(e.localName==="select")return"HTMLSelectElement"}function Zi(e,t,r="value"){var o;if(!e)return;const n=K1(e);n&&((o=H1(e,{type:n,property:r}).set)==null||o.call(e,t)),e.setAttribute(r,t)}function j1(e,t){const{value:r,bubbles:n=!0}=t;if(!e)return;const o=et(e);e instanceof o.HTMLInputElement&&(Zi(e,`${r}`),e.dispatchEvent(new o.Event("input",{bubbles:n})))}function U1(e){return G1(e)?e.form:e.closest("form")}function G1(e){return e.matches("textarea, input, select, button")}function Y1(e,t){if(!e)return;const r=U1(e),n=o=>{o.defaultPrevented||t()};return r==null||r.addEventListener("reset",n,{passive:!0}),()=>r==null?void 0:r.removeEventListener("reset",n)}function q1(e,t){const r=e==null?void 0:e.closest("fieldset");if(!r)return;t(r.disabled);const n=et(r),o=new n.MutationObserver(()=>t(r.disabled));return o.observe(r,{attributes:!0,attributeFilter:["disabled"]}),()=>o.disconnect()}function ml(e,t){if(!e)return;const{onFieldsetDisabledChange:r,onFormReset:n}=t,o=[Y1(e,n),q1(e,r)];return()=>o.forEach(i=>i==null?void 0:i())}var hg=e=>Ze(e)&&e.tagName==="IFRAME",X1=e=>!Number.isNaN(parseInt(e.getAttribute("tabindex")||"0",10)),Z1=e=>parseInt(e.getAttribute("tabindex")||"0",10)<0,vl="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",mg=(e,t=!1)=>{if(!e)return[];const r=Array.from(e.querySelectorAll(vl));(t==!0||t=="if-empty"&&r.length===0)&&Ze(e)&&lr(e)&&r.unshift(e);const o=r.filter(lr);return o.forEach((i,a)=>{if(hg(i)&&i.contentDocument){const s=i.contentDocument.body;o.splice(a,1,...mg(s))}}),o};function lr(e){return!e||e.closest("[inert]")?!1:e.matches(vl)&&C1(e)}function bl(e,t){if(!e)return[];const n=Array.from(e.querySelectorAll(vl)).filter($r);return n.forEach((o,i)=>{if(hg(o)&&o.contentDocument){const a=o.contentDocument.body,s=bl(a);n.splice(i,1,...s)}}),n.length,n}function $r(e){return e!=null&&e.tabIndex>0?!0:lr(e)&&!Z1(e)}function _n(e){return e.tabIndex<0&&(/^(audio|video|details)$/.test(e.localName)||dg(e))&&!X1(e)?0:e.tabIndex}function yl(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==null?void 0:t.querySelector("[data-autofocus],[autofocus]")),!i){const a=bl(t);i=n?a.filter(n)[0]:a[0]}return i||t||void 0}function vg(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 Ee(e){let t;const r=globalThis.requestAnimationFrame(()=>{t=e()});return()=>{globalThis.cancelAnimationFrame(r),t==null||t()}}function J1(e,t,r){const n=Ee(()=>{e.removeEventListener(t,o,!0),r()}),o=()=>{n(),r()};return e.addEventListener(t,o,{once:!0,capture:!0}),n}function Q1(e,t){if(!e)return;const{attributes:r,callback:n}=t,o=e.ownerDocument.defaultView||window,i=new o.MutationObserver(a=>{for(const s of a)s.type==="attributes"&&s.attributeName&&r.includes(s.attributeName)&&n(s)});return i.observe(e,{attributes:!0,attributeFilter:r}),()=>i.disconnect()}function xl(e,t){const{defer:r}=t,n=r?Ee:i=>i(),o=[];return o.push(n(()=>{const i=typeof e=="function"?e():e;o.push(Q1(i,t))})),()=>{o.forEach(i=>i==null?void 0:i())}}function eS(e){const t=()=>e.click();_1()?J1(e,"keyup",t):queueMicrotask(t)}function yi(e){const t=$1(e);return S1(t)?wt(t).body:Ze(t)&&Sl(t)?t:yi(t)}function bg(e,t=[]){const r=yi(e),n=r===e.ownerDocument.body,o=et(r);return n?t.concat(o,o.visualViewport||[],Sl(r)?r:[]):t.concat(r,bg(r,[]))}var tS=/auto|scroll|overlay|hidden|clip/;function Sl(e){const t=et(e),{overflow:r,overflowX:n,overflowY:o,display:i}=t.getComputedStyle(e);return tS.test(r+o+n)&&!["inline","contents"].includes(i)}function rS(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function yg(e,t){const{rootEl:r,...n}=t||{};!e||!r||!Sl(r)||!rS(r)||e.scrollIntoView(n)}function xg(e,t){const{left:r,top:n,width:o,height:i}=t.getBoundingClientRect(),a={x:e.x-r,y:e.y-n},s={x:pu(a.x/o),y:pu(a.y/i)};function l(c={}){const{dir:d="ltr",orientation:f="horizontal",inverted:u}=c,p=typeof u=="object"?u.x:u,h=typeof u=="object"?u.y:u;return f==="horizontal"?d==="rtl"||p?1-s.x:s.x:h?1-s.y:s.y}return{offset:a,percent:s,getPercentValue:l}}function nS(e,t){const r=e.body,n="pointerLockElement"in e||"mozPointerLockElement"in e,o=()=>!!e.pointerLockElement;function i(){}function a(l){o(),console.error("PointerLock error occurred:",l),e.exitPointerLock()}if(!n)return;try{r.requestPointerLock()}catch{}const s=[Oe(e,"pointerlockchange",i,!1),Oe(e,"pointerlockerror",a,!1)];return()=>{s.forEach(l=>l()),e.exitPointerLock()}}var on="default",ms="",ai=new WeakMap;function oS(e={}){const{target:t,doc:r}=e,n=r??document,o=n.documentElement;return qi()?(on==="default"&&(ms=o.style.webkitUserSelect,o.style.webkitUserSelect="none"),on="disabled"):t&&(ai.set(t,t.style.userSelect),t.style.userSelect="none"),()=>iS({target:t,doc:n})}function iS(e={}){const{target:t,doc:r}=e,o=(r??document).documentElement;if(qi()){if(on!=="disabled")return;on="restoring",setTimeout(()=>{vg(()=>{on==="restoring"&&(o.style.webkitUserSelect==="none"&&(o.style.webkitUserSelect=ms||""),ms="",on="default")})},300)}else if(t&&ai.has(t)){const i=ai.get(t);t.style.userSelect==="none"&&(t.style.userSelect=i??""),t.getAttribute("style")===""&&t.removeAttribute("style"),ai.delete(t)}}function Sg(e={}){const{defer:t,target:r,...n}=e,o=t?Ee:a=>a(),i=[];return i.push(o(()=>{const a=typeof r=="function"?r():r;i.push(oS({...n,target:a}))})),()=>{i.forEach(a=>a==null?void 0:a())}}function aS(e,t){const{onPointerMove:r,onPointerUp:n}=t,i=[Oe(e,"pointermove",a=>{const s=W1(a),l=Math.sqrt(s.x**2+s.y**2),c=a.pointerType==="touch"?10:5;if(!(l<c)){if(a.pointerType==="mouse"&&a.button===0){n();return}r({point:s,event:a})}},!1),Oe(e,"pointerup",n,!1),Oe(e,"pointercancel",n,!1),Oe(e,"contextmenu",n,!1),Sg({doc:e})];return()=>{i.forEach(a=>a())}}function xi(e,t){return Array.from((e==null?void 0:e.querySelectorAll(t))??[])}var wl=e=>e.id;function sS(e,t,r=wl){return e.find(n=>r(n)===t)}function El(e,t,r=wl){const n=sS(e,t,r);return n?e.indexOf(n):-1}function lS(e,t,r=!0){let n=El(e,t);return n=r?(n+1)%e.length:Math.min(n+1,e.length-1),e[n]}function cS(e,t,r=!0){let n=El(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 uS=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(),dS=e=>{var t;return uS(((t=e.dataset)==null?void 0:t.valuetext)??e.textContent??"")},fS=(e,t)=>e.trim().toLowerCase().startsWith(t.toLowerCase());function pS(e,t,r,n=wl){const o=r?El(e,r,n):-1;let i=r?h1(e,o):e;return t.length===1&&(i=i.filter(s=>n(s)!==r)),i.find(s=>fS(dS(s),t))}function Si(e,t){if(!e)return cg;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 gS(e,t,r){if(!e)return cg;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 hS(e,t){const{state:r,activeId:n,key:o,timeout:i=350,itemToId:a}=t,s=r.keysSoFar+o,c=s.length>1&&Array.from(s).every(h=>h===s[0])?s[0]:s;let d=e.slice();const f=pS(d,c,n,a);function u(){clearTimeout(r.timer),r.timer=-1}function p(h){r.keysSoFar=h,u(),h!==""&&(r.timer=+setTimeout(()=>{p(""),u()},i))}return p(s),f}var Cl=Object.assign(hS,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:mS});function mS(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}var vS=1e3/60;function bS(e,t){const r=e();if(Ze(r)&&r.isConnected)return t(r),()=>{};{const n=setInterval(()=>{const o=e();Ze(o)&&o.isConnected&&(t(o),clearInterval(n))},vS);return()=>clearInterval(n)}}function yS(e,t){const r=[];return e==null||e.forEach(n=>{const o=bS(n,t);r.push(o)}),()=>{r.forEach(n=>n())}}function xS(e,t){return`${e} returned \`undefined\`. Seems you forgot to wrap component within ${t}`}function yo(e={}){const{name:t,strict:r=!0,hookName:n="useContext",providerName:o="Provider",errorMessage:i,defaultValue:a}=e,s=g.createContext(a);s.displayName=t;function l(){var d;const c=g.useContext(s);if(!c&&r){const f=new Error(i??xS(n,o));throw f.name="ContextError",(d=Error.captureStackTrace)==null||d.call(Error,f,l),f}return c}return[s.Provider,l,s]}const[GD,SS]=yo({name:"LocaleContext",hookName:"useLocaleContext",providerName:"<LocaleProvider />",strict:!1,defaultValue:{dir:"ltr",locale:"en-US"}});function Pl(...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 wS(e){return e?Array.isArray(e)?e:[e]:[]}var wg=e=>e[0],Eg=e=>e[e.length-1],ES=(e,t)=>e.indexOf(t)!==-1,Cg=(e,...t)=>e.concat(t),Pg=(e,...t)=>e.filter(r=>!t.includes(r)),hu=(e,t)=>ES(e,t)?Pg(e,t):Cg(e,t);function kg(e,t,r={}){const{step:n=1,loop:o=!0}=r,i=t+n,a=e.length,s=a-1;return t===-1?n>0?0:s:i<0?o?s:0:i>=a?o?0:t>a?a:t:i}function CS(e,t,r={}){return e[kg(e,t,r)]}function PS(e,t,r={}){const{step:n=1,loop:o=!0}=r;return kg(e,t,{step:-n,loop:o})}function kS(e,t,r={}){return e[PS(e,t,r)]}var mu=e=>(e==null?void 0:e.constructor.name)==="Array",$S=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!xo(e[r],t[r]))return!1;return!0},xo=(e,t)=>{if(Object.is(e,t))return!0;if(e==null&&t!=null||e!=null&&t==null)return!1;if(typeof(e==null?void 0:e.isEqual)=="function"&&typeof(t==null?void 0:t.isEqual)=="function")return e.isEqual(t);if(typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();if(mu(e)&&mu(t))return $S(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;o<n;o++)if(!Reflect.has(e,r[o]))return!1;for(let o=0;o<n;o++){const i=r[o];if(!xo(e[i],t[i]))return!1}return!0},TS=e=>Array.isArray(e),RS=e=>e!=null&&typeof e=="object",Oa=e=>RS(e)&&!TS(e),si=e=>typeof e=="string",an=e=>typeof e=="function",OS=e=>e==null,Ia=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),IS=Function.prototype.toString;IS.call(Object);var NS=(e,...t)=>(typeof e=="function"?e(...t):e)??void 0,DS=e=>e(),_S=()=>{},wi=(...e)=>(...t)=>{e.forEach(function(r){r==null||r(...t)})},$g=(e,t)=>{var r;try{return e()}catch(n){return n instanceof Error&&((r=Error.captureStackTrace)==null||r.call(Error,n,$g)),t==null?void 0:t()}},{floor:vs,abs:vu,round:Ji,min:AS,max:LS,pow:MS,sign:FS}=Math,Un=e=>Number.isNaN(e),Yt=e=>Un(e)?0:e,Tg=(e,t)=>(e%t+t)%t,zS=(e,t)=>(e%t+t)%t,VS=(e,t)=>Yt(e)>=t,BS=(e,t)=>Yt(e)<=t,WS=(e,t,r)=>Yt(e)>=t&&Yt(e)<=r,HS=(e,t,r)=>Ji((Yt(e)-t)/r)*r+t,ot=(e,t,r)=>AS(LS(Yt(e),t),r),KS=(e,t,r)=>(Yt(e)-t)/(r-t),jS=(e,t,r,n)=>ot(HS(e*(r-t)+t,t,n),t,r),Fo=(e,t)=>{let r=e,n=t.toString(),o=n.indexOf("."),i=o>=0?n.length-o:0;if(i>0){let a=MS(10,i);r=Ji(r*a)/a}return r},Na=(e,t)=>typeof t=="number"?vs(e*t+.5)/t:Ji(e),bu=(e,t,r,n)=>{t=Number(t),r=Number(r);let o=(e-(Un(t)?0:t))%n,i=Fo(vu(o)*2>=n?e+FS(o)*(n-vu(o)):e-o,n);return Un(t)?!Un(r)&&i>r&&(i=t+vs(Fo((r-t)/n,n))*n):i<t?i=t:!Un(r)&&i>r&&(i=t+vs(Fo((r-t)/n,n))*n),Fo(i,n)},ke=(e,t=0,r=10)=>{const n=Math.pow(r,t);return Ji(e*n)/n},yu=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},Rg=(e,t,r)=>{let n=t==="+"?e+r:e-r;if(e%1!==0||r%1!==0){const o=10**Math.max(yu(e),yu(r));e=Math.round(e*o),r=Math.round(r*o),n=t==="+"?e+r:e-r,n/=o}return n},US=(e,t)=>Rg(Yt(e),"+",t),GS=(e,t)=>Rg(Yt(e),"-",t);function kl(e){if(!YS(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]=kl(o))}return r}var YS=e=>e&&typeof e=="object"&&e.constructor===Object;function Ei(...e){const t=e.length===1?e[0]:e[1];(e.length===2?e[0]:!0)&&process.env.NODE_ENV!=="production"&&console.warn(t)}function qS(e,t){if(e==null)throw new Error(t())}var XS=(...e)=>e.map(t=>{var r;return(r=t==null?void 0:t.trim)==null?void 0:r.call(t)}).filter(Boolean).join(" "),ZS=/((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g,xu=e=>{const t={};let r;for(;r=ZS.exec(e);)t[r[1]]=r[2];return t},JS=(e,t)=>{if(si(e)){if(si(t))return`${e};${t}`;e=xu(e)}else si(t)&&(t=xu(t));return Object.assign({},e??{},t??{})};function zt(...e){let t={};for(let r of e){for(let n in t){if(n.startsWith("on")&&typeof t[n]=="function"&&typeof r[n]=="function"){t[n]=wi(r[n],t[n]);continue}if(n==="className"||n==="class"){t[n]=XS(t[n],r[n]);continue}if(n==="style"){t[n]=JS(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}function Su(e,t,r){let n=[],o;return i=>{const a=e(i);return(a.length!==n.length||a.some((l,c)=>!xo(n[c],l)))&&(n=a,o=t(...a)),o}}function Lr(){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 QS(){return{guards:Lr(),createMachine:e=>e,choose:e=>function({choose:r}){var n;return(n=r(e))==null?void 0:n.actions}}}var en=(e=>(e.NotStarted="Not Started",e.Started="Started",e.Stopped="Stopped",e))(en||{}),Da="__init__";function ew(e){const t=()=>{var s;return((s=e.getRootNode)==null?void 0:s.call(e))??document},r=()=>wt(t()),n=()=>r().defaultView??window,o=()=>fg(t());return{...e,getRootNode:t,getDoc:r,getWin:n,getActiveElement:o,isActiveElement:s=>s===o(),getById:s=>t().getElementById(s)}}function tw(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const _a=e=>{const t=g.memo(g.forwardRef((r,n)=>{const{asChild:o,children:i,...a}=r;if(!o)return g.createElement(e,{...a,ref:n},i);const s=g.Children.only(i);if(!g.isValidElement(s))return null;const l=tw(s);return g.cloneElement(s,{...zt(a,s.props),ref:n?Pl(n,l):l})}));return t.displayName=e.displayName||e.name,t},rw=()=>{const e=new Map;return new Proxy(_a,{apply(t,r,n){return _a(n[0])},get(t,r){const n=r;return e.has(n)||e.set(n,_a(n)),e.get(n)}})},Mr=rw(),Og=()=>(e,t)=>t.reduce((r,n)=>{const[o,i]=r,a=n;return i[a]!==void 0&&(o[a]=i[a]),delete i[a],[o,i]},[{},{...e}]),Ig=e=>Og()(e,["immediate","lazyMount","onExitComplete","present","skipAnimationOnMount","unmountOnExit"]);function nw(e){return new Proxy({},{get(t,r){return r==="style"?n=>e({style:n}).style:e}})}var ce=()=>e=>Array.from(new Set(e));function ow(e,t){const{state:r,send:n,context:o}=e,i=r.matches("mounted","unmountSuspended");return{skip:!o.get("initial"),present:i,setNode(a){a&&n({type:"NODE.SET",node:a})},unmount(){n({type:"UNMOUNT"})}}}var iw={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,action:t,prop:r}){e([()=>r("present")],()=>{t(["setInitial","syncPresence"])})},on:{"NODE.SET":{actions:["setNode","setStyles"]}},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)},cleanupNode:({refs:e})=>{e.set("node",null),e.set("styles",null)},invokeOnExitComplete:({prop:e})=>{var t;(t=e("onExitComplete"))==null||t()},setNode:({refs:e,event:t})=>{e.set("node",t.node)},setStyles:({refs:e,event:t})=>{e.set("styles",gl(t.node))},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==null?void 0:i.ownerDocument.visibilityState)==="hidden")return r({type:"UNMOUNT",src:"visibilitychange"});Ee(()=>{var s,l;const a=zo(t.get("styles"));e.set("unmountAnimationName",a),a==="none"||a===e.get("prevAnimationName")||((s=t.get("styles"))==null?void 0:s.display)==="none"||((l=t.get("styles"))==null?void 0:l.animationDuration)==="0s"?r({type:"UNMOUNT",src:"presence.changed"}):r({type:"UNMOUNT.SUSPEND"})})},setPrevAnimationName:({context:e,refs:t})=>{Ee(()=>{e.set("prevAnimationName",zo(t.get("styles")))})},clearPrevAnimationName:({context:e})=>{e.set("prevAnimationName",null)}},effects:{trackAnimationEvents:({context:e,refs:t,send:r})=>{const n=t.get("node");if(!n)return;const o=s=>{var c,d;(((d=(c=s.composedPath)==null?void 0:c.call(s))==null?void 0:d[0])??s.target)===n&&e.set("prevAnimationName",zo(t.get("styles")))},i=s=>{const l=zo(t.get("styles"));bt(s)===n&&l===e.get("unmountAnimationName")&&r({type:"UNMOUNT",src:"animationend"})};n.addEventListener("animationstart",o),n.addEventListener("animationcancel",i),n.addEventListener("animationend",i);const a=Si(n,{animationFillMode:"forwards"});return()=>{n.removeEventListener("animationstart",o),n.removeEventListener("animationcancel",i),n.removeEventListener("animationend",i),vg(()=>a())}}}}};function zo(e){return(e==null?void 0:e.animationName)||"none"}ce()(["onExitComplete","present","immediate"]);var Vo={exports:{}},Ye={};/**
66
+ * @license React
67
+ * react-dom.production.js
68
+ *
69
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
70
+ *
71
+ * This source code is licensed under the MIT license found in the
72
+ * LICENSE file in the root directory of this source tree.
73
+ */var wu;function aw(){if(wu)return Ye;wu=1;var e=xn();function t(l){var c="https://react.dev/errors/"+l;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)c+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+l+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function i(l,c,d){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:f==null?null:""+f,children:l,containerInfo:c,implementation:d}}var a=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function s(l,c){if(l==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return Ye.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,Ye.createPortal=function(l,c){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(t(299));return i(l,c,null,d)},Ye.flushSync=function(l){var c=a.T,d=n.p;try{if(a.T=null,n.p=2,l)return l()}finally{a.T=c,n.p=d,n.d.f()}},Ye.preconnect=function(l,c){typeof l=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,n.d.C(l,c))},Ye.prefetchDNS=function(l){typeof l=="string"&&n.d.D(l)},Ye.preinit=function(l,c){if(typeof l=="string"&&c&&typeof c.as=="string"){var d=c.as,f=s(d,c.crossOrigin),u=typeof c.integrity=="string"?c.integrity:void 0,p=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;d==="style"?n.d.S(l,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:f,integrity:u,fetchPriority:p}):d==="script"&&n.d.X(l,{crossOrigin:f,integrity:u,fetchPriority:p,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},Ye.preinitModule=function(l,c){if(typeof l=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var d=s(c.as,c.crossOrigin);n.d.M(l,{crossOrigin:d,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&n.d.M(l)},Ye.preload=function(l,c){if(typeof l=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var d=c.as,f=s(d,c.crossOrigin);n.d.L(l,d,{crossOrigin:f,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},Ye.preloadModule=function(l,c){if(typeof l=="string")if(c){var d=s(c.as,c.crossOrigin);n.d.m(l,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:d,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else n.d.m(l)},Ye.requestFormReset=function(l){n.d.r(l)},Ye.unstable_batchedUpdates=function(l,c){return l(c)},Ye.useFormState=function(l,c,d){return a.H.useFormState(l,c,d)},Ye.useFormStatus=function(){return a.H.useHostTransitionStatus()},Ye.version="19.1.0",Ye}var qe={};/**
74
+ * @license React
75
+ * react-dom.development.js
76
+ *
77
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
78
+ *
79
+ * This source code is licensed under the MIT license found in the
80
+ * LICENSE file in the root directory of this source tree.
81
+ */var Eu;function sw(){return Eu||(Eu=1,process.env.NODE_ENV!=="production"&&function(){function e(){}function t(f){return""+f}function r(f,u,p){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(h);var m=!1}catch{m=!0}return m&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object"),t(h)),{$$typeof:c,key:h==null?null:""+h,children:f,containerInfo:u,implementation:p}}function n(f,u){if(f==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}function o(f){return f===null?"`null`":f===void 0?"`undefined`":f===""?"an empty string":'something with type "'+typeof f+'"'}function i(f){return f===null?"`null`":f===void 0?"`undefined`":f===""?"an empty string":typeof f=="string"?JSON.stringify(f):typeof f=="number"?"`"+f+"`":'something with type "'+typeof f+'"'}function a(){var f=d.H;return f===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
82
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
83
+ 2. You might be breaking the Rules of Hooks
84
+ 3. You might have more than one copy of React in the same app
85
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),f}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=xn(),l={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},c=Symbol.for("react.portal"),d=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),qe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,qe.createPortal=function(f,u){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error("Target container is not a DOM element.");return r(f,u,null,p)},qe.flushSync=function(f){var u=d.T,p=l.p;try{if(d.T=null,l.p=2,f)return f()}finally{d.T=u,l.p=p,l.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},qe.preconnect=function(f,u){typeof f=="string"&&f?u!=null&&typeof u!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",i(u)):u!=null&&typeof u.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(u.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(f)),typeof f=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,l.d.C(f,u))},qe.prefetchDNS=function(f){if(typeof f!="string"||!f)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(f));else if(1<arguments.length){var u=arguments[1];typeof u=="object"&&u.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(u)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",i(u))}typeof f=="string"&&l.d.D(f)},qe.preinit=function(f,u){if(typeof f=="string"&&f?u==null||typeof u!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",i(u)):u.as!=="style"&&u.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',i(u.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(f)),typeof f=="string"&&u&&typeof u.as=="string"){var p=u.as,h=n(p,u.crossOrigin),m=typeof u.integrity=="string"?u.integrity:void 0,v=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;p==="style"?l.d.S(f,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:h,integrity:m,fetchPriority:v}):p==="script"&&l.d.X(f,{crossOrigin:h,integrity:m,fetchPriority:v,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},qe.preinitModule=function(f,u){var p="";if(typeof f=="string"&&f||(p+=" The `href` argument encountered was "+o(f)+"."),u!==void 0&&typeof u!="object"?p+=" The `options` argument encountered was "+o(u)+".":u&&"as"in u&&u.as!=="script"&&(p+=" The `as` option encountered was "+i(u.as)+"."),p)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",p);else switch(p=u&&typeof u.as=="string"?u.as:"script",p){case"script":break;default:p=i(p),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',p,f)}typeof f=="string"&&(typeof u=="object"&&u!==null?(u.as==null||u.as==="script")&&(p=n(u.as,u.crossOrigin),l.d.M(f,{crossOrigin:p,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})):u==null&&l.d.M(f))},qe.preload=function(f,u){var p="";if(typeof f=="string"&&f||(p+=" The `href` argument encountered was "+o(f)+"."),u==null||typeof u!="object"?p+=" The `options` argument encountered was "+o(u)+".":typeof u.as=="string"&&u.as||(p+=" The `as` option encountered was "+o(u.as)+"."),p&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',p),typeof f=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){p=u.as;var h=n(p,u.crossOrigin);l.d.L(f,p,{crossOrigin:h,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},qe.preloadModule=function(f,u){var p="";typeof f=="string"&&f||(p+=" The `href` argument encountered was "+o(f)+"."),u!==void 0&&typeof u!="object"?p+=" The `options` argument encountered was "+o(u)+".":u&&"as"in u&&typeof u.as!="string"&&(p+=" The `as` option encountered was "+o(u.as)+"."),p&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',p),typeof f=="string"&&(u?(p=n(u.as,u.crossOrigin),l.d.m(f,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:p,integrity:typeof u.integrity=="string"?u.integrity:void 0})):l.d.m(f))},qe.requestFormReset=function(f){l.d.r(f)},qe.unstable_batchedUpdates=function(f,u){return f(u)},qe.useFormState=function(f,u,p){return a().useFormState(f,u,p)},qe.useFormStatus=function(){return a().useHostTransitionStatus()},qe.version="19.1.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),qe}var Cu;function lw(){if(Cu)return Vo.exports;Cu=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}return process.env.NODE_ENV==="production"?(e(),Vo.exports=aw()):Vo.exports=sw(),Vo.exports}var Vt=lw();const Ng=Hi(Vt);var Dg=typeof globalThis.document<"u"?g.useLayoutEffect:g.useEffect;function Ci(e){const t=e().value??e().defaultValue,r=e().isEqual??Object.is,[n]=g.useState(t),[o,i]=g.useState(n),a=e().value!==void 0,s=g.useRef(o);s.current=a?e().value:o;const l=g.useRef(s.current);Dg(()=>{l.current=s.current},[o,e().value]);const c=f=>{var h,m;const u=l.current,p=an(f)?f(u):f;e().debug&&console.log(`[bindable > ${e().debug}] setValue`,{next:p,prev:u}),a||i(p),r(p,u)||(m=(h=e()).onChange)==null||m.call(h,p,u)};function d(){return a?e().value:o}return{initial:n,ref:s,get:d,set(f){(e().sync?Vt.flushSync:DS)(()=>c(f))},invoke(f,u){var p,h;(h=(p=e()).onChange)==null||h.call(p,f,u)},hash(f){var u,p;return((p=(u=e()).hash)==null?void 0:p.call(u,f))??String(f)}}}Ci.cleanup=e=>{g.useEffect(()=>e,[])};Ci.ref=e=>{const t=g.useRef(e);return{get:()=>t.current,set:r=>{t.current=r}}};function cw(e){const t=g.useRef(e);return{get(r){return t.current[r]},set(r,n){t.current[r]=n}}}var uw=(e,t)=>{const r=g.useRef(!1),n=g.useRef(!1);g.useEffect(()=>{if(r.current&&n.current)return t();n.current=!0},[...(e??[]).map(o=>typeof o=="function"?o():o)]),g.useEffect(()=>(r.current=!0,()=>{r.current=!1}),[])};function _g(e,t={}){var S,M,j,z;const r=g.useMemo(()=>{const{id:F,ids:w,getRootNode:L}=t;return ew({id:F,ids:w,getRootNode:L})},[t]),n=(...F)=>{e.debug&&console.log(...F)},o=((S=e.props)==null?void 0:S.call(e,{props:kl(t),scope:r}))??t,i=dw(o),a=(M=e.context)==null?void 0:M.call(e,{prop:i,bindable:Ci,scope:r,flush:Pu,getContext(){return l},getComputed(){return C},getRefs(){return m}}),s=Ag(a),l={get(F){var w;return(w=s.current)==null?void 0:w[F].ref.current},set(F,w){var L;(L=s.current)==null||L[F].set(w)},initial(F){var w;return(w=s.current)==null?void 0:w[F].initial},hash(F){var L,$;const w=(L=s.current)==null?void 0:L[F].get();return($=s.current)==null?void 0:$[F].hash(w)}},c=g.useRef(new Map),d=g.useRef(null),f=g.useRef(null),u=g.useRef({type:""}),p=()=>({...u.current,current(){return u.current},previous(){return f.current}}),h=()=>({...k,matches(...F){return F.includes(k.ref.current)},hasTag(F){var w,L;return!!((L=(w=e.states[k.ref.current])==null?void 0:w.tags)!=null&&L.includes(F))}}),m=cw(((j=e.refs)==null?void 0:j.call(e,{prop:i,context:l}))??{}),v=()=>({state:h(),context:l,event:p(),prop:i,send:N,action:x,guard:E,track:uw,refs:m,computed:C,flush:Pu,scope:r,choose:T}),x=F=>{const w=an(F)?F(v()):F;if(!w)return;const L=w.map($=>{var y,I;const K=(I=(y=e.implementations)==null?void 0:y.actions)==null?void 0:I[$];return K||Ei(`[zag-js] No implementation found for action "${JSON.stringify($)}"`),K});for(const $ of L)$==null||$(v())},E=F=>{var w,L;return an(F)?F(v()):(L=(w=e.implementations)==null?void 0:w.guards)==null?void 0:L[F](v())},P=F=>{const w=an(F)?F(v()):F;if(!w)return;const L=w.map(K=>{var I,W;const y=(W=(I=e.implementations)==null?void 0:I.effects)==null?void 0:W[K];return y||Ei(`[zag-js] No implementation found for effect "${JSON.stringify(K)}"`),y}),$=[];for(const K of L){const y=K==null?void 0:K(v());y&&$.push(y)}return()=>$.forEach(K=>K==null?void 0:K())},T=F=>wS(F).find(w=>{let L=!w.guard;return si(w.guard)?L=!!E(w.guard):an(w.guard)&&(L=w.guard(v())),L}),C=F=>{qS(e.computed,()=>"[zag-js] No computed object found on machine");const w=e.computed[F];return w({context:l,event:p(),prop:i,refs:m,scope:r,computed:C})},k=Ci(()=>({defaultValue:e.initialState({prop:i}),onChange(F,w){var $,K,y,I;if(w){const W=c.current.get(w);W==null||W(),c.current.delete(w)}w&&x(($=e.states[w])==null?void 0:$.exit),x((K=d.current)==null?void 0:K.actions);const L=P((y=e.states[F])==null?void 0:y.effects);if(L&&c.current.set(F,L),w===Da){x(e.entry);const W=P(e.effects);W&&c.current.set(Da,W)}x((I=e.states[F])==null?void 0:I.entry)}})),D=g.useRef(void 0),R=g.useRef(en.NotStarted);Dg(()=>{queueMicrotask(()=>{const L=R.current===en.Started;R.current=en.Started,n(L?"rehydrating...":"initializing...");const $=D.current??k.initial;k.invoke($,L?k.get():Da)});const F=c.current,w=k.ref.current;return()=>{n("unmounting..."),D.current=w,R.current=en.Stopped,F.forEach(L=>L==null?void 0:L()),c.current=new Map,d.current=null,queueMicrotask(()=>{x(e.exit)})}},[]);const _=()=>"ref"in k?k.ref.current:k.get(),N=F=>{queueMicrotask(()=>{var I,W;if(R.current!==en.Started)return;f.current=u.current,u.current=F,n("send",F);let w=_();const L=((I=e.states[w].on)==null?void 0:I[F.type])??((W=e.on)==null?void 0:W[F.type]),$=T(L);if(!$)return;d.current=$;const K=$.target??w;n("transition",$);const y=K!==w;y?Vt.flushSync(()=>k.set(K)):$.reenter&&!y?k.invoke(w,w):x($.actions??[])})};return(z=e.watch)==null||z.call(e,v()),{state:h(),send:N,context:l,prop:i,scope:r,refs:m,computed:C,event:p(),getStatus:()=>R.current}}function Ag(e){const t=g.useRef(e);return t.current=e,t}function dw(e){const t=Ag(e);return function(n){return t.current[n]}}function Pu(e){queueMicrotask(()=>{Vt.flushSync(()=>e())})}var fw=nw(e=>e);function pw(e,t={}){const{sync:r=!1}=t,n=gw(e);return g.useCallback((...o)=>{var i;return r?queueMicrotask(()=>{var a;return(a=n.current)==null?void 0:a.call(n,...o)}):(i=n.current)==null?void 0:i.call(n,...o)},[r,n])}function gw(e){const t=g.useRef(e);return t.current=e,t}const $l=(e={})=>{const{lazyMount:t,unmountOnExit:r,present:n,skipAnimationOnMount:o=!1,...i}=e,a=g.useRef(!1),s={...i,present:n,onExitComplete:pw(e.onExitComplete)},l=_g(iw,s),c=ow(l);c.present&&(a.current=!0);const d=!c.present&&!a.current&&t||r&&!c.present&&a.current,f=()=>({"data-state":c.skip&&o?void 0:n?"open":"closed",hidden:!c.present});return{ref:c.setNode,getPresenceProps:f,present:c.present,unmounted:d}},[Lg,Tl]=yo({name:"PresenceContext",hookName:"usePresenceContext",providerName:"<PresenceProvider />"});var oe=(e,t=[])=>({parts:(...r)=>{if(hw(t))return oe(e,r);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...r)=>oe(e,[...t,...r]),rename:r=>oe(r,t),keys:()=>t,build:()=>[...new Set(t)].reduce((r,n)=>Object.assign(r,{[n]:{selector:[`&[data-scope="${Yr(e)}"][data-part="${Yr(n)}"]`,`& [data-scope="${Yr(e)}"][data-part="${Yr(n)}"]`].join(", "),attrs:{"data-scope":Yr(e),"data-part":Yr(n)}}}),{})}),Yr=e=>e.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),hw=e=>e.length===0,Mg=oe("collapsible").parts("root","trigger","content","indicator");Mg.build();ce()(["dir","disabled","getRootNode","id","ids","onExitComplete","onOpenChange","defaultOpen","open"]);const[YD,Fg]=yo({name:"EnvironmentContext",hookName:"useEnvironmentContext",providerName:"<EnvironmentProvider />",strict:!1,defaultValue:{getRootNode:()=>document,getDocument:()=>document,getWindow:()=>window}});var mw=Object.defineProperty,vw=(e,t,r)=>t in e?mw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rl=(e,t,r)=>vw(e,t+"",r),bw=(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},Ol=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 KS(r,n,o)}getChannelPercentValue(e,t){const{minValue:r,maxValue:n,step:o}=this.getChannelRange(e),i=jS(t,r,n,o);return bu(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]=ot(t,r,n),o}throw new Error("Unsupported color channel: "+e)}getColorAxes(e){let{xChannel:t,yChannel:r}=e,n=t||this.getChannels().find(a=>a!==r),o=r||this.getChannels().find(a=>a!==n),i=this.getChannels().find(a=>a!==n&&a!==o);return{xChannel:n,yChannel:o,zChannel:i}}incrementChannel(e,t){const{minValue:r,maxValue:n,step:o}=this.getChannelRange(e),i=bu(ot(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 bw(this.toJSON(),e.toJSON())&&this.getChannelValue("alpha")===e.getChannelValue("alpha")}},zg=class li extends Ol{constructor(t,r,n,o){super(),this.red=t,this.green=r,this.blue=n,this.alpha=o}static parse(t){let r=[];if(/^#[\da-f]+$/i.test(t)&&[4,5,7,9].includes(t.length)){const o=(t.length<6?t.replace(/[^#]/gi,"$&$&"):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(/^rgba?\((.*)\)$/);return n!=null&&n[1]&&(r=n[1].split(",").map(o=>Number(o.trim())).map((o,i)=>ot(o,0,i<3?255:1))),r.length<3?void 0:new li(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),a=i-o,s=i===0?0:a/i;let l=0;if(a!==0){switch(i){case t:l=(r-n)/a+(r<n?6:0);break;case r:l=(n-t)/a+2;break;case n:l=(t-r)/a+4;break}l/=6}return new Dl(ke(l*360,2),ke(s*100,2),ke(i*100,2),ke(this.alpha,2))}toHSL(){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),a=(i+o)/2,s=i-o;let l=-1,c=-1;if(s===0)l=c=0;else{switch(c=s/(a<.5?i+o:2-i-o),i){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;case n:l=(t-r)/s+4;break}l/=6}return new Nl(ke(l*360,2),ke(c*100,2),ke(a*100,2),ke(this.alpha,2))}clone(){return new li(this.red,this.green,this.blue,this.alpha)}getChannelFormatOptions(t){switch(t){case"red":case"green":case"blue":return{style:"decimal"};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 new Intl.NumberFormat(r,n).format(o)}getChannelRange(t){switch(t){case"red":case"green":case"blue":return{minValue:0,maxValue:255,step:1,pageSize:17};case"alpha":return{minValue:0,maxValue:1,step:.01,pageSize:.1};default:throw new Error("Unknown color channel: "+t)}}toJSON(){return{r:this.red,g:this.green,b:this.blue,a:this.alpha}}getFormat(){return"rgba"}getChannels(){return li.colorChannels}};Rl(zg,"colorChannels",["red","green","blue"]);var Il=zg,yw=/hsl\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%)\)|hsla\(([-+]?\d+(?:.\d+)?\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d+(?:.\d+)?%\s*,\s*[-+]?\d(.\d+)?)\)/,Vg=class ci extends Ol{constructor(t,r,n,o){super(),this.hue=t,this.saturation=r,this.lightness=n,this.alpha=o}static parse(t){let r;if(r=t.match(yw)){const[n,o,i,a]=(r[1]??r[2]).split(",").map(s=>Number(s.trim().replace("%","")));return new ci(Tg(n,360),ot(o,0,100),ot(i,0,100),ot(a??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}, ${ke(this.saturation,2)}%, ${ke(this.lightness,2)}%)`;case"css":case"hsla":return`hsla(${this.hue}, ${ke(this.saturation,2)}%, ${ke(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 Dl(ke(this.hue,2),ke(t*100,2),ke(n*100,2),ke(this.alpha,2))}toRGB(){let t=this.hue,r=this.saturation/100,n=this.lightness/100,o=r*Math.min(n,1-n),i=(a,s=(a+t/30)%12)=>n-o*Math.max(Math.min(s-3,9-s,1),-1);return new Il(Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255),ke(this.alpha,2))}clone(){return new ci(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 ci.colorChannels}};Rl(Vg,"colorChannels",["hue","saturation","lightness"]);var Nl=Vg,xw=/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+)?)\)/,Bg=class ui extends Ol{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(xw)){const[n,o,i,a]=(r[1]??r[2]).split(",").map(s=>Number(s.trim().replace("%","")));return new ui(Tg(n,360),ot(o,0,100),ot(i,0,100),ot(a??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}, ${ke(this.saturation,2)}%, ${ke(this.brightness,2)}%)`;case"hsba":return`hsba(${this.hue}, ${ke(this.saturation,2)}%, ${ke(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 Nl(ke(this.hue,2),ke(t*100,2),ke(n*100,2),ke(this.alpha,2))}toRGB(){let t=this.hue,r=this.saturation/100,n=this.brightness/100,o=(i,a=(i+t/60)%6)=>n-r*n*Math.max(Math.min(a,4-a,1),0);return new Il(Math.round(o(5)*255),Math.round(o(3)*255),Math.round(o(1)*255),ke(this.alpha,2))}clone(){return new ui(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 ui.colorChannels}};Rl(Bg,"colorChannels",["hue","saturation","brightness"]);var Dl=Bg,Sw="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",ww=e=>{const t=new Map,r=e.split(",");for(let n=0;n<r.length;n++){const[o,i]=r[n].split(":");t.set(o,`#${i}`),o.includes("gray")&&t.set(o.replace("gray","grey"),`#${i}`)}return t},ku=ww(Sw),Pi=e=>{var r;if(ku.has(e))return Pi(ku.get(e));const t=Il.parse(e)||Dl.parse(e)||Nl.parse(e);if(!t){const n=new Error("Invalid color value: "+e);throw(r=Error.captureStackTrace)==null||r.call(Error,n,Pi),n}return t};const Ew=["top","right","bottom","left"],cr=Math.min,st=Math.max,ki=Math.round,Bo=Math.floor,Lt=e=>({x:e,y:e}),Cw={left:"right",right:"left",bottom:"top",top:"bottom"},Pw={start:"end",end:"start"};function bs(e,t,r){return st(e,cr(t,r))}function qt(e,t){return typeof e=="function"?e(t):e}function Xt(e){return e.split("-")[0]}function En(e){return e.split("-")[1]}function _l(e){return e==="x"?"y":"x"}function Al(e){return e==="y"?"height":"width"}function ur(e){return["top","bottom"].includes(Xt(e))?"y":"x"}function Ll(e){return _l(ur(e))}function kw(e,t,r){r===void 0&&(r=!1);const n=En(e),o=Ll(e),i=Al(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=$i(a)),[a,$i(a)]}function $w(e){const t=$i(e);return[ys(e),t,ys(t)]}function ys(e){return e.replace(/start|end/g,t=>Pw[t])}function Tw(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:a;default:return[]}}function Rw(e,t,r,n){const o=En(e);let i=Tw(Xt(e),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(ys)))),i}function $i(e){return e.replace(/left|right|bottom|top/g,t=>Cw[t])}function Ow(e){return{top:0,right:0,bottom:0,left:0,...e}}function Wg(e){return typeof e!="number"?Ow(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 $u(e,t,r){let{reference:n,floating:o}=e;const i=ur(t),a=Ll(t),s=Al(a),l=Xt(t),c=i==="y",d=n.x+n.width/2-o.width/2,f=n.y+n.height/2-o.height/2,u=n[s]/2-o[s]/2;let p;switch(l){case"top":p={x:d,y:n.y-o.height};break;case"bottom":p={x:d,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:f};break;case"left":p={x:n.x-o.width,y:f};break;default:p={x:n.x,y:n.y}}switch(En(t)){case"start":p[a]-=u*(r&&c?-1:1);break;case"end":p[a]+=u*(r&&c?-1:1);break}return p}const Iw=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=$u(c,n,l),u=n,p={},h=0;for(let m=0;m<s.length;m++){const{name:v,fn:x}=s[m],{x:E,y:P,data:T,reset:C}=await x({x:d,y:f,initialPlacement:n,placement:u,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});d=E??d,f=P??f,p={...p,[v]:{...p[v],...T}},C&&h<=50&&(h++,typeof C=="object"&&(C.placement&&(u=C.placement),C.rects&&(c=C.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:d,y:f}=$u(c,u,l)),m=-1)}return{x:d,y:f,placement:u,strategy:o,middlewareData:p}};async function lo(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:u=!1,padding:p=0}=qt(t,e),h=Wg(p),v=s[u?f==="floating"?"reference":"floating":f],x=Ti(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(v)))==null||r?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),E=f==="floating"?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),T=await(i.isElement==null?void 0:i.isElement(P))?await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1}:{x:1,y:1},C=Ti(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:E,offsetParent:P,strategy:l}):E);return{top:(x.top-C.top+h.top)/T.y,bottom:(C.bottom-x.bottom+h.bottom)/T.y,left:(x.left-C.left+h.left)/T.x,right:(C.right-x.right+h.right)/T.x}}const Nw=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:d=0}=qt(e,t)||{};if(c==null)return{};const f=Wg(d),u={x:r,y:n},p=Ll(o),h=Al(p),m=await a.getDimensions(c),v=p==="y",x=v?"top":"left",E=v?"bottom":"right",P=v?"clientHeight":"clientWidth",T=i.reference[h]+i.reference[p]-u[p]-i.floating[h],C=u[p]-i.reference[p],k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let D=k?k[P]:0;(!D||!await(a.isElement==null?void 0:a.isElement(k)))&&(D=s.floating[P]||i.floating[h]);const R=T/2-C/2,_=D/2-m[h]/2-1,N=cr(f[x],_),S=cr(f[E],_),M=N,j=D-m[h]-S,z=D/2-m[h]/2+R,F=bs(M,z,j),w=!l.arrow&&En(o)!=null&&z!==F&&i.reference[h]/2-(z<M?N:S)-m[h]/2<0,L=w?z<M?z-M:z-j:0;return{[p]:u[p]+L,data:{[p]:F,centerOffset:z-F-L,...w&&{alignmentOffset:L}},reset:w}}}),Dw=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:u,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...v}=qt(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const x=Xt(o),E=ur(s),P=Xt(s)===s,T=await(l.isRTL==null?void 0:l.isRTL(c.floating)),C=u||(P||!m?[$i(s)]:$w(s)),k=h!=="none";!u&&k&&C.push(...Rw(s,m,h,T));const D=[s,...C],R=await lo(t,v),_=[];let N=((n=i.flip)==null?void 0:n.overflows)||[];if(d&&_.push(R[x]),f){const z=kw(o,a,T);_.push(R[z[0]],R[z[1]])}if(N=[...N,{placement:o,overflows:_}],!_.every(z=>z<=0)){var S,M;const z=(((S=i.flip)==null?void 0:S.index)||0)+1,F=D[z];if(F)return{data:{index:z,overflows:N},reset:{placement:F}};let w=(M=N.filter(L=>L.overflows[0]<=0).sort((L,$)=>L.overflows[1]-$.overflows[1])[0])==null?void 0:M.placement;if(!w)switch(p){case"bestFit":{var j;const L=(j=N.filter($=>{if(k){const K=ur($.placement);return K===E||K==="y"}return!0}).map($=>[$.placement,$.overflows.filter(K=>K>0).reduce((K,y)=>K+y,0)]).sort(($,K)=>$[1]-K[1])[0])==null?void 0:j[0];L&&(w=L);break}case"initialPlacement":w=s;break}if(o!==w)return{reset:{placement:w}}}return{}}}};function Tu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ru(e){return Ew.some(t=>e[t]>=0)}const _w=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=qt(e,t);switch(n){case"referenceHidden":{const i=await lo(t,{...o,elementContext:"reference"}),a=Tu(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ru(a)}}}case"escaped":{const i=await lo(t,{...o,altBoundary:!0}),a=Tu(i,r.floating);return{data:{escapedOffsets:a,escaped:Ru(a)}}}default:return{}}}}};async function Aw(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Xt(r),s=En(r),l=ur(r)==="y",c=["left","top"].includes(a)?-1:1,d=i&&l?-1:1,f=qt(t,e);let{mainAxis:u,crossAxis:p,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof h=="number"&&(p=s==="end"?h*-1:h),l?{x:p*d,y:u*c}:{x:u*c,y:p*d}}const Lw=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await Aw(t,e);return a===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},Mw=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:a=!1,limiter:s={fn:v=>{let{x,y:E}=v;return{x,y:E}}},...l}=qt(e,t),c={x:r,y:n},d=await lo(t,l),f=ur(Xt(o)),u=_l(f);let p=c[u],h=c[f];if(i){const v=u==="y"?"top":"left",x=u==="y"?"bottom":"right",E=p+d[v],P=p-d[x];p=bs(E,p,P)}if(a){const v=f==="y"?"top":"left",x=f==="y"?"bottom":"right",E=h+d[v],P=h-d[x];h=bs(E,h,P)}const m=s.fn({...t,[u]:p,[f]:h});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[u]:i,[f]:a}}}}}},Fw=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=qt(e,t),d={x:r,y:n},f=ur(o),u=_l(f);let p=d[u],h=d[f];const m=qt(s,t),v=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const P=u==="y"?"height":"width",T=i.reference[u]-i.floating[P]+v.mainAxis,C=i.reference[u]+i.reference[P]-v.mainAxis;p<T?p=T:p>C&&(p=C)}if(c){var x,E;const P=u==="y"?"width":"height",T=["top","left"].includes(Xt(o)),C=i.reference[f]-i.floating[P]+(T&&((x=a.offset)==null?void 0:x[f])||0)+(T?0:v.crossAxis),k=i.reference[f]+i.reference[P]+(T?0:((E=a.offset)==null?void 0:E[f])||0)-(T?v.crossAxis:0);h<C?h=C:h>k&&(h=k)}return{[u]:p,[f]:h}}}},zw=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...c}=qt(e,t),d=await lo(t,c),f=Xt(o),u=En(o),p=ur(o)==="y",{width:h,height:m}=i.floating;let v,x;f==="top"||f==="bottom"?(v=f,x=u===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(x=f,v=u==="end"?"top":"bottom");const E=m-d.top-d.bottom,P=h-d.left-d.right,T=cr(m-d[v],E),C=cr(h-d[x],P),k=!t.middlewareData.shift;let D=T,R=C;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(R=P),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(D=E),k&&!u){const N=st(d.left,0),S=st(d.right,0),M=st(d.top,0),j=st(d.bottom,0);p?R=h-2*(N!==0||S!==0?N+S:st(d.left,d.right)):D=m-2*(M!==0||j!==0?M+j:st(d.top,d.bottom))}await l({...t,availableWidth:R,availableHeight:D});const _=await a.getDimensions(s.floating);return h!==_.width||m!==_.height?{reset:{rects:!0}}:{}}}};function Qi(){return typeof window<"u"}function Cn(e){return Hg(e)?(e.nodeName||"").toLowerCase():"#document"}function dt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Bt(e){var t;return(t=(Hg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Hg(e){return Qi()?e instanceof Node||e instanceof dt(e).Node:!1}function $t(e){return Qi()?e instanceof Element||e instanceof dt(e).Element:!1}function Ft(e){return Qi()?e instanceof HTMLElement||e instanceof dt(e).HTMLElement:!1}function Ou(e){return!Qi()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof dt(e).ShadowRoot}function So(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=Tt(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function Vw(e){return["table","td","th"].includes(Cn(e))}function ea(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ml(e){const t=Fl(),r=$t(e)?Tt(e):e;return["transform","translate","scale","rotate","perspective"].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)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Bw(e){let t=dr(e);for(;Ft(t)&&!yn(t);){if(Ml(t))return t;if(ea(t))return null;t=dr(t)}return null}function Fl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function yn(e){return["html","body","#document"].includes(Cn(e))}function Tt(e){return dt(e).getComputedStyle(e)}function ta(e){return $t(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function dr(e){if(Cn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ou(e)&&e.host||Bt(e);return Ou(t)?t.host:t}function Kg(e){const t=dr(e);return yn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ft(t)&&So(t)?t:Kg(t)}function co(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Kg(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),a=dt(o);if(i){const s=xs(a);return t.concat(a,a.visualViewport||[],So(o)?o:[],s&&r?co(s):[])}return t.concat(o,co(o,[],r))}function xs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function jg(e){const t=Tt(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=Ft(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=ki(r)!==i||ki(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function zl(e){return $t(e)?e:e.contextElement}function fn(e){const t=zl(e);if(!Ft(t))return Lt(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=jg(t);let a=(i?ki(r.width):r.width)/n,s=(i?ki(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Ww=Lt(0);function Ug(e){const t=dt(e);return!Fl()||!t.visualViewport?Ww:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Hw(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==dt(e)?!1:t}function Ir(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),i=zl(e);let a=Lt(1);t&&(n?$t(n)&&(a=fn(n)):a=fn(e));const s=Hw(i,r,n)?Ug(i):Lt(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,d=o.width/a.x,f=o.height/a.y;if(i){const u=dt(i),p=n&&$t(n)?dt(n):n;let h=u,m=xs(h);for(;m&&n&&p!==h;){const v=fn(m),x=m.getBoundingClientRect(),E=Tt(m),P=x.left+(m.clientLeft+parseFloat(E.paddingLeft))*v.x,T=x.top+(m.clientTop+parseFloat(E.paddingTop))*v.y;l*=v.x,c*=v.y,d*=v.x,f*=v.y,l+=P,c+=T,h=dt(m),m=xs(h)}}return Ti({width:d,height:f,x:l,y:c})}function Vl(e,t){const r=ta(e).scrollLeft;return t?t.left+r:Ir(Bt(e)).left+r}function Gg(e,t,r){r===void 0&&(r=!1);const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-(r?0:Vl(e,n)),i=n.top+t.scrollTop;return{x:o,y:i}}function Kw(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i=o==="fixed",a=Bt(n),s=t?ea(t.floating):!1;if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},c=Lt(1);const d=Lt(0),f=Ft(n);if((f||!f&&!i)&&((Cn(n)!=="body"||So(a))&&(l=ta(n)),Ft(n))){const p=Ir(n);c=fn(n),d.x=p.x+n.clientLeft,d.y=p.y+n.clientTop}const u=a&&!f&&!i?Gg(a,l,!0):Lt(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+d.x+u.x,y:r.y*c.y-l.scrollTop*c.y+d.y+u.y}}function jw(e){return Array.from(e.getClientRects())}function Uw(e){const t=Bt(e),r=ta(e),n=e.ownerDocument.body,o=st(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=st(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+Vl(e);const s=-r.scrollTop;return Tt(n).direction==="rtl"&&(a+=st(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}function Gw(e,t){const r=dt(e),n=Bt(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const c=Fl();(!c||c&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}function Yw(e,t){const r=Ir(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Ft(e)?fn(e):Lt(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,c=n*i.y;return{width:a,height:s,x:l,y:c}}function Iu(e,t,r){let n;if(t==="viewport")n=Gw(e,r);else if(t==="document")n=Uw(Bt(e));else if($t(t))n=Yw(t,r);else{const o=Ug(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ti(n)}function Yg(e,t){const r=dr(e);return r===t||!$t(r)||yn(r)?!1:Tt(r).position==="fixed"||Yg(r,t)}function qw(e,t){const r=t.get(e);if(r)return r;let n=co(e,[],!1).filter(s=>$t(s)&&Cn(s)!=="body"),o=null;const i=Tt(e).position==="fixed";let a=i?dr(e):e;for(;$t(a)&&!yn(a);){const s=Tt(a),l=Ml(a);!l&&s.position==="fixed"&&(o=null),(i?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||So(a)&&!l&&Yg(e,a))?n=n.filter(d=>d!==a):o=s,a=dr(a)}return t.set(e,n),n}function Xw(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?ea(t)?[]:qw(t,this._c):[].concat(r),n],s=a[0],l=a.reduce((c,d)=>{const f=Iu(t,d,o);return c.top=st(f.top,c.top),c.right=cr(f.right,c.right),c.bottom=cr(f.bottom,c.bottom),c.left=st(f.left,c.left),c},Iu(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Zw(e){const{width:t,height:r}=jg(e);return{width:t,height:r}}function Jw(e,t,r){const n=Ft(t),o=Bt(t),i=r==="fixed",a=Ir(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Lt(0);if(n||!n&&!i)if((Cn(t)!=="body"||So(o))&&(s=ta(t)),n){const u=Ir(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else o&&(l.x=Vl(o));const c=o&&!n&&!i?Gg(o,s):Lt(0),d=a.left+s.scrollLeft-l.x-c.x,f=a.top+s.scrollTop-l.y-c.y;return{x:d,y:f,width:a.width,height:a.height}}function Aa(e){return Tt(e).position==="static"}function Nu(e,t){if(!Ft(e)||Tt(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Bt(e)===r&&(r=r.ownerDocument.body),r}function qg(e,t){const r=dt(e);if(ea(e))return r;if(!Ft(e)){let o=dr(e);for(;o&&!yn(o);){if($t(o)&&!Aa(o))return o;o=dr(o)}return r}let n=Nu(e,t);for(;n&&Vw(n)&&Aa(n);)n=Nu(n,t);return n&&yn(n)&&Aa(n)&&!Ml(n)?r:n||Bw(e)||r}const Qw=async function(e){const t=this.getOffsetParent||qg,r=this.getDimensions,n=await r(e.floating);return{reference:Jw(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function eE(e){return Tt(e).direction==="rtl"}const tE={convertOffsetParentRelativeRectToViewportRelativeRect:Kw,getDocumentElement:Bt,getClippingRect:Xw,getOffsetParent:qg,getElementRects:Qw,getClientRects:jw,getDimensions:Zw,getScale:fn,isElement:$t,isRTL:eE};function Xg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rE(e,t){let r=null,n;const o=Bt(e);function i(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:d,top:f,width:u,height:p}=c;if(s||t(),!u||!p)return;const h=Bo(f),m=Bo(o.clientWidth-(d+u)),v=Bo(o.clientHeight-(f+p)),x=Bo(d),P={rootMargin:-h+"px "+-m+"px "+-v+"px "+-x+"px",threshold:st(0,cr(1,l))||1};let T=!0;function C(k){const D=k[0].intersectionRatio;if(D!==l){if(!T)return a();D?a(!1,D):n=setTimeout(()=>{a(!1,1e-7)},1e3)}D===1&&!Xg(c,e.getBoundingClientRect())&&a(),T=!1}try{r=new IntersectionObserver(C,{...P,root:o.ownerDocument})}catch{r=new IntersectionObserver(C,P)}r.observe(e)}return a(!0),i}function nE(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=zl(e),d=o||i?[...c?co(c):[],...co(t)]:[];d.forEach(x=>{o&&x.addEventListener("scroll",r,{passive:!0}),i&&x.addEventListener("resize",r)});const f=c&&s?rE(c,r):null;let u=-1,p=null;a&&(p=new ResizeObserver(x=>{let[E]=x;E&&E.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var P;(P=p)==null||P.observe(t)})),r()}),c&&!l&&p.observe(c),p.observe(t));let h,m=l?Ir(e):null;l&&v();function v(){const x=Ir(e);m&&!Xg(m,x)&&r(),m=x,h=requestAnimationFrame(v)}return r(),()=>{var x;d.forEach(E=>{o&&E.removeEventListener("scroll",r),i&&E.removeEventListener("resize",r)}),f==null||f(),(x=p)==null||x.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const oE=Lw,iE=Mw,aE=Dw,sE=zw,lE=_w,cE=Nw,uE=Fw,dE=(e,t,r)=>{const n=new Map,o={platform:tE,...r},i={...o.platform,_c:n};return Iw(e,t,{...o,platform:i})};function Du(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 fE(e){if(!e)return Du();const{x:t,y:r,width:n,height:o}=e;return Du(t,r,n,o)}function pE(e,t){return{contextElement:Ze(e)?e:void 0,getBoundingClientRect:()=>{const r=e,n=t==null?void 0:t(r);return n||!r?fE(n):r.getBoundingClientRect()}}}var _u=e=>({variable:e,reference:`var(${e})`}),Zg={transformOrigin:_u("--transform-origin"),arrowOffset:_u("--arrow-offset")},gE=e=>({top:"bottom center","top-start":e?`${e.x}px bottom`:"left bottom","top-end":e?`${e.x}px bottom`:"right bottom",bottom:"top center","bottom-start":e?`${e.x}px top`:"top left","bottom-end":e?`${e.x}px top`:"top right",left:"right center","left-start":e?`right ${e.y}px`:"right top","left-end":e?`right ${e.y}px`:"right bottom",right:"left center","right-start":e?`left ${e.y}px`:"left top","right-end":e?`left ${e.y}px`:"left bottom"}),hE={name:"transformOrigin",fn({placement:e,elements:t,middlewareData:r}){const{arrow:n}=r,o=gE(n)[e],{floating:i}=t;return i.style.setProperty(Zg.transformOrigin.variable,o),{data:{transformOrigin:o}}}},mE={name:"rects",fn({rects:e}){return{data:e}}},vE=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% + ${Zg.arrowOffset.reference})`}),{}}}};function bE(e){const[t,r]=e.split("-");return{side:t,align:r,hasAlign:r!=null}}function yE(e){return e.split("-")[0]}var xE={strategy:"absolute",placement:"bottom",listeners:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function Au(e,t){const r=e.devicePixelRatio||1;return Math.round(t*r)/r}function Jg(e){return NS(e.boundary)}function SE(e,t){if(e)return cE({element:e,padding:t.arrowPadding})}function wE(e,t){if(!OS(t.offset??t.gutter))return oE(({placement:r})=>{var c,d;const n=((e==null?void 0:e.clientHeight)||0)/2,o=((c=t.offset)==null?void 0:c.mainAxis)??t.gutter,i=typeof o=="number"?o+n:o??n,{hasAlign:a}=bE(r),s=a?void 0:t.shift,l=((d=t.offset)==null?void 0:d.crossAxis)??s;return kl({crossAxis:l,mainAxis:i,alignmentAxis:t.shift})})}function EE(e){if(e.flip)return aE({boundary:Jg(e),padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip})}function CE(e){if(!(!e.slide&&!e.overlap))return iE({boundary:Jg(e),mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:uE()})}function PE(e){return sE({padding:e.overflowPadding,apply({elements:t,rects:r,availableHeight:n,availableWidth:o}){const i=t.floating,a=Math.round(r.reference.width);o=Math.floor(o),n=Math.floor(n),i.style.setProperty("--reference-width",`${a}px`),i.style.setProperty("--available-width",`${o}px`),i.style.setProperty("--available-height",`${n}px`)}})}function kE(e){var t;if(e.hideWhenDetached)return lE({strategy:"referenceHidden",boundary:((t=e.boundary)==null?void 0:t.call(e))??"clippingAncestors"})}function $E(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}function TE(e,t,r={}){const n=pE(e,r.getAnchorRect);if(!t||!n)return;const o=Object.assign({},xE,r),i=t.querySelector("[data-part=arrow]"),a=[wE(i,o),EE(o),CE(o),SE(i,o),vE(i),hE,PE(o),kE(o),mE],{placement:s,strategy:l,onComplete:c,onPositioned:d}=o,f=async()=>{var T;if(!n||!t)return;const m=await dE(n,t,{placement:s,middleware:a,strategy:l});c==null||c(m),d==null||d({placed:!0});const v=et(t),x=Au(v,m.x),E=Au(v,m.y);t.style.setProperty("--x",`${x}px`),t.style.setProperty("--y",`${E}px`),o.hideWhenDetached&&(((T=m.middlewareData.hide)==null?void 0:T.referenceHidden)?(t.style.setProperty("visibility","hidden"),t.style.setProperty("pointer-events","none")):(t.style.removeProperty("visibility"),t.style.removeProperty("pointer-events")));const P=t.firstElementChild;if(P){const C=gl(P);t.style.setProperty("--z-index",C.zIndex)}},u=async()=>{r.updatePosition?(await r.updatePosition({updatePosition:f}),d==null||d({placed:!0})):await f()},p=$E(o.listeners),h=o.listeners?nE(n,t,u,p):_S;return u(),()=>{h==null||h(),d==null||d({placed:!1})}}function Zt(e,t,r={}){const{defer:n,...o}=r,i=n?Ee:s=>s(),a=[];return a.push(i(()=>{const s=typeof e=="function"?e():e,l=typeof t=="function"?t():t;a.push(TE(s,l,o))})),()=>{a.forEach(s=>s==null?void 0:s())}}function RE(e){const t={each(r){var n;for(let o=0;o<((n=e.frames)==null?void 0:n.length);o+=1){const i=e.frames[o];i&&r(i)}},addEventListener(r,n,o){return t.each(i=>{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 OE(e){const t=e.frameElement!=null?e.parent:null;return{addEventListener:(r,n,o)=>{try{t==null||t.addEventListener(r,n,o)}catch{}return()=>{try{t==null||t.removeEventListener(r,n,o)}catch{}}},removeEventListener:(r,n,o)=>{try{t==null||t.removeEventListener(r,n,o)}catch{}}}}var Lu="pointerdown.outside",Mu="focus.outside";function IE(e){for(const t of e)if(Ze(t)&&lr(t))return!0;return!1}var Qg=e=>"clientY"in e;function NE(e,t){if(!Qg(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 DE(e,t){return e.y<=t.y&&t.y<=e.y+e.height&&e.x<=t.x&&t.x<=e.x+e.width}function Fu(e,t){if(!t||!Qg(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,a={x:t.offsetLeft,y:t.offsetTop,width:t.clientWidth+(r?16:0),height:t.clientHeight+(o?16:0)},s={x:e.clientX,y:e.clientY};return DE(a,s)?n||i:!1}function _E(e,t){const{exclude:r,onFocusOutside:n,onPointerDownOutside:o,onInteractOutside:i,defer:a}=t;if(!e)return;const s=wt(e),l=et(e),c=RE(l),d=OE(l);function f(E,P){if(!Ze(P)||!P.isConnected||bn(e,P)||NE(e,E))return!1;const T=s.querySelector(`[aria-controls="${e.id}"]`);if(T){const k=yi(T);if(Fu(E,k))return!1}const C=yi(e);return Fu(E,C)?!1:!(r!=null&&r(P))}const u=new Set,p=vn(e==null?void 0:e.getRootNode());function h(E){function P(T){var R;const C=a&&!gu()?Ee:_=>_(),k=T??E,D=((R=k==null?void 0:k.composedPath)==null?void 0:R.call(k))??[k==null?void 0:k.target];C(()=>{const _=p?D[0]:bt(E);if(!(!e||!f(E,_))){if(o||i){const N=wi(o,i);e.addEventListener(Lu,N,{once:!0})}zu(e,Lu,{bubbles:!1,cancelable:!0,detail:{originalEvent:k,contextmenu:z1(k),focusable:IE(D),target:_}})}})}E.pointerType==="touch"?(u.forEach(T=>T()),u.add(Oe(s,"click",P,{once:!0})),u.add(d.addEventListener("click",P,{once:!0})),u.add(c.addEventListener("click",P,{once:!0}))):P()}const m=new Set,v=setTimeout(()=>{m.add(Oe(s,"pointerdown",h,!0)),m.add(d.addEventListener("pointerdown",h,!0)),m.add(c.addEventListener("pointerdown",h,!0))},0);function x(E){(a?Ee:T=>T())(()=>{const T=bt(E);if(!(!e||!f(E,T))){if(n||i){const C=wi(n,i);e.addEventListener(Mu,C,{once:!0})}zu(e,Mu,{bubbles:!1,cancelable:!0,detail:{originalEvent:E,contextmenu:!1,focusable:lr(T),target:T}})}})}return gu()||(m.add(Oe(s,"focusin",x,!0)),m.add(d.addEventListener("focusin",x,!0)),m.add(c.addEventListener("focusin",x,!0))),()=>{clearTimeout(v),u.forEach(E=>E()),m.forEach(E=>E())}}function AE(e,t){const{defer:r}=t,n=r?Ee:i=>i(),o=[];return o.push(n(()=>{const i=typeof e=="function"?e():e;o.push(_E(i,t))})),()=>{o.forEach(i=>i==null?void 0:i())}}function zu(e,t,r){const n=e.ownerDocument.defaultView||window,o=new n.CustomEvent(t,r);return e.dispatchEvent(o)}function LE(e,t){const r=n=>{n.key==="Escape"&&(n.isComposing||t==null||t(n))};return Oe(wt(e),"keydown",r,{capture:!0})}var Ct={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(e=>e.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(e){var n;const t=this.indexOf(e),r=this.topMostPointerBlockingLayer()?this.indexOf((n=this.topMostPointerBlockingLayer())==null?void 0:n.node):-1;return t<r},isTopMost(e){const t=this.layers[this.count()-1];return(t==null?void 0:t.node)===e},getNestedLayers(e){return Array.from(this.layers).slice(this.indexOf(e)+1)},isInNestedLayer(e,t){return this.getNestedLayers(e).some(r=>bn(r.node,t))},isInBranch(e){return Array.from(this.branches).some(t=>bn(t,e))},add(e){const t=this.layers.push(e);e.node.style.setProperty("--layer-index",`${t}`)},addBranch(e){this.branches.push(e)},remove(e){const t=this.indexOf(e);t<0||(t<this.count()-1&&this.getNestedLayers(e).forEach(n=>n.dismiss()),this.layers.splice(t,1),e.style.removeProperty("--layer-index"))},removeBranch(e){const t=this.branches.indexOf(e);t>=0&&this.branches.splice(t,1)},indexOf(e){return this.layers.findIndex(t=>t.node===e)},dismiss(e){var t;(t=this.layers[this.indexOf(e)])==null||t.dismiss()},clear(){this.remove(this.layers[0].node)}},Vu;function Bu(){Ct.layers.forEach(({node:e})=>{e.style.pointerEvents=Ct.isBelowPointerBlockingLayer(e)?"none":"auto"})}function ME(e){e.style.pointerEvents=""}function FE(e,t){const r=wt(e),n=[];if(Ct.hasPointerBlockingLayer()&&!r.body.hasAttribute("data-inert")&&(Vu=document.body.style.pointerEvents,queueMicrotask(()=>{r.body.style.pointerEvents="none",r.body.setAttribute("data-inert","")})),t){const o=yS(t,i=>{n.push(Si(i,{pointerEvents:"auto"}))});n.push(o)}return()=>{Ct.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 zE(e,t){const{warnOnMissingNode:r=!0}=t;if(r&&!e){Ei("[@zag-js/dismissable] node is `null` or `undefined`");return}if(!e)return;const{onDismiss:n,pointerBlocking:o,exclude:i,debug:a}=t,s={dismiss:n,node:e,pointerBlocking:o};Ct.add(s),Bu();function l(p){var m,v;const h=bt(p.detail.originalEvent);Ct.isBelowPointerBlockingLayer(e)||Ct.isInBranch(h)||((m=t.onPointerDownOutside)==null||m.call(t,p),(v=t.onInteractOutside)==null||v.call(t,p),!p.defaultPrevented&&(a&&console.log("onPointerDownOutside:",p.detail.originalEvent),n==null||n()))}function c(p){var m,v;const h=bt(p.detail.originalEvent);Ct.isInBranch(h)||((m=t.onFocusOutside)==null||m.call(t,p),(v=t.onInteractOutside)==null||v.call(t,p),!p.defaultPrevented&&(a&&console.log("onFocusOutside:",p.detail.originalEvent),n==null||n()))}function d(p){var h;Ct.isTopMost(e)&&((h=t.onEscapeKeyDown)==null||h.call(t,p),!p.defaultPrevented&&n&&(p.preventDefault(),n()))}function f(p){var x;if(!e)return!1;const h=typeof i=="function"?i():i,m=Array.isArray(h)?h:[h],v=(x=t.persistentElements)==null?void 0:x.map(E=>E()).filter(Ze);return v&&m.push(...v),m.some(E=>bn(E,p))||Ct.isInNestedLayer(e,p)}const u=[o?FE(e,t.persistentElements):void 0,LE(e,d),AE(e,{exclude:f,onFocusOutside:c,onPointerDownOutside:l,defer:t.defer})];return()=>{Ct.remove(e),Bu(),ME(e),u.forEach(p=>p==null?void 0:p())}}function wo(e,t){const{defer:r}=t,n=r?Ee:i=>i(),o=[];return o.push(n(()=>{const i=an(e)?e():e;o.push(zE(i,t))})),()=>{o.forEach(i=>i==null?void 0:i())}}var eh=oe("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"]);eh.build();var VE=e=>{var t;return((t=e.ids)==null?void 0:t.hiddenInput)??`color-picker:${e.id}:hidden-input`},BE=e=>{var t;return((t=e.ids)==null?void 0:t.control)??`color-picker:${e.id}:control`},WE=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`color-picker:${e.id}:trigger`},HE=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`color-picker:${e.id}:content`},KE=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`color-picker:${e.id}:positioner`},jE=e=>{var t;return((t=e.ids)==null?void 0:t.formatSelect)??`color-picker:${e.id}:format-select`},UE=e=>{var t;return((t=e.ids)==null?void 0:t.area)??`color-picker:${e.id}:area`},GE=e=>{var t;return((t=e.ids)==null?void 0:t.areaThumb)??`color-picker:${e.id}:area-thumb`},YE=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.channelSliderTrack)==null?void 0:n.call(r,t))??`color-picker:${e.id}:slider-track:${t}`},qE=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.channelSliderThumb)==null?void 0:n.call(r,t))??`color-picker:${e.id}:slider-thumb:${t}`},di=e=>e.getById(HE(e)),XE=e=>e.getById(GE(e)),ZE=(e,t)=>e.getById(qE(e,t)),JE=e=>e.getById(jE(e)),Wu=e=>e.getById(VE(e)),QE=e=>e.getById(UE(e)),eC=(e,t)=>{const r=QE(e);if(!r)return;const{percent:n}=xg(t,r);return n},tC=e=>e.getById(BE(e)),La=e=>e.getById(WE(e)),rC=e=>e.getById(KE(e)),nC=(e,t)=>e.getById(YE(e,t)),oC=(e,t,r)=>{const n=nC(e,r);if(!n)return;const{percent:o}=xg(t,n);return o},iC=e=>[...xi(di(e),"input[data-channel]"),...xi(tC(e),"input[data-channel]")];function aC(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 Hu=e=>Pi(e),{and:sC}=Lr();sC("isOpenControlled","closeOnSelect");function Ku(e,t,r){const n=iC(e);Ee(()=>{n.forEach(o=>{const i=o.dataset.channel;Zi(o,aC(r||t,i))})})}function lC(e,t){const r=JE(e);r&&Ee(()=>Zi(r,t))}ce()(["closeOnSelect","dir","disabled","format","defaultFormat","getRootNode","id","ids","initialFocusEl","name","positioning","onFocusOutside","onFormatChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","onValueChangeEnd","defaultOpen","open","positioning","required","readOnly","value","defaultValue","invalid","openAutoFocus"]);ce()(["xChannel","yChannel"]);ce()(["channel","orientation"]);ce()(["value","disabled"]);ce()(["value","respectAlpha"]);ce()(["size"]);function cC(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function uC(e,t,r){cC(e,t),t.set(e,r)}const[th,dC]=yo({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"}),rh=e=>Og()(e,["lazyMount","unmountOnExit"]);var nh=oe("accordion").parts("root","item","itemTrigger","itemContent","itemIndicator");nh.build();var oh=e=>{var t;return((t=e.ids)==null?void 0:t.root)??`accordion:${e.id}`},ih=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.itemTrigger)==null?void 0:n.call(r,t))??`accordion:${e.id}:trigger:${t}`},fC=e=>e.getById(oh(e)),ra=e=>{const r=`[aria-controls][data-ownedby='${CSS.escape(oh(e))}']:not([disabled])`;return xi(fC(e),r)},pC=e=>wg(ra(e)),gC=e=>Eg(ra(e)),hC=(e,t)=>lS(ra(e),ih(e,t)),mC=(e,t)=>cS(ra(e),ih(e,t)),{and:vC,not:bC}=Lr();vC("isExpanded","canToggle"),bC("isExpanded");ce()(["collapsible","dir","disabled","getRootNode","id","ids","multiple","onFocusChange","onValueChange","orientation","value","defaultValue"]);ce()(["value","disabled"]);var Gn=(e,t)=>({x:e,y:t});function yC(e){const{x:t,y:r,width:n,height:o}=e,i=t+n/2,a=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:a,center:Gn(i,a)}}function xC(e){const t=Gn(e.minX,e.minY),r=Gn(e.maxX,e.minY),n=Gn(e.maxX,e.maxY),o=Gn(e.minX,e.maxY);return{top:t,right:r,bottom:n,left:o}}function SC(e,t){const r=yC(e),{top:n,right:o,left:i,bottom:a}=xC(r),[s]=t.split("-");return{top:[i,n,o,a],right:[n,o,a,i],bottom:[n,i,a,o],left:[o,n,i,a]}[s]}function wC(e,t){const{x:r,y:n}=t;let o=!1;for(let i=0,a=e.length-1;i<e.length;a=i++){const s=e[i].x,l=e[i].y,c=e[a].x,d=e[a].y;l>n!=d>n&&r<(c-s)*(n-l)/(d-l)+s&&(o=!o)}return o}var ah=oe("avatar").parts("root","image","fallback");ah.build();ce()(["dir","id","ids","onStatusChange","getRootNode"]);function EC(e){return!(e.metaKey||!Xi()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}var CC=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function PC(e,t,r){const n=r?bt(r):null,o=et(n);return e=e||n instanceof o.HTMLInputElement&&!CC.has(n==null?void 0:n.type)||n instanceof o.HTMLTextAreaElement||n instanceof o.HTMLElement&&n.isContentEditable,!(e&&t==="keyboard"&&r instanceof o.KeyboardEvent&&!Reflect.has(kC,r.key))}var Fr=null,Ss=new Set,eo=new Map,Nr=!1,ws=!1,kC={Tab:!0,Escape:!0};function na(e,t){for(let r of Ss)r(e,t)}function Ri(e){Nr=!0,EC(e)&&(Fr="keyboard",na("keyboard",e))}function mt(e){Fr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Nr=!0,na("pointer",e))}function sh(e){F1(e)&&(Nr=!0,Fr="virtual")}function lh(e){const t=bt(e);t===et(t)||t===wt(t)||(!Nr&&!ws&&(Fr="virtual",na("virtual",e)),Nr=!1,ws=!1)}function ch(){Nr=!1,ws=!0}function $C(e){if(typeof window>"u"||eo.get(et(e)))return;const t=et(e),r=wt(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Fr="virtual",na("virtual",null),Nr=!0,n.apply(this,arguments)},r.addEventListener("keydown",Ri,!0),r.addEventListener("keyup",Ri,!0),r.addEventListener("click",sh,!0),t.addEventListener("focus",lh,!0),t.addEventListener("blur",ch,!1),typeof t.PointerEvent<"u"?(r.addEventListener("pointerdown",mt,!0),r.addEventListener("pointermove",mt,!0),r.addEventListener("pointerup",mt,!0)):(r.addEventListener("mousedown",mt,!0),r.addEventListener("mousemove",mt,!0),r.addEventListener("mouseup",mt,!0)),t.addEventListener("beforeunload",()=>{TC(e)},{once:!0}),eo.set(t,{focus:n})}var TC=(e,t)=>{const r=et(e),n=wt(e);eo.has(r)&&(r.HTMLElement.prototype.focus=eo.get(r).focus,n.removeEventListener("keydown",Ri,!0),n.removeEventListener("keyup",Ri,!0),n.removeEventListener("click",sh,!0),r.removeEventListener("focus",lh,!0),r.removeEventListener("blur",ch,!1),typeof r.PointerEvent<"u"?(n.removeEventListener("pointerdown",mt,!0),n.removeEventListener("pointermove",mt,!0),n.removeEventListener("pointerup",mt,!0)):(n.removeEventListener("mousedown",mt,!0),n.removeEventListener("mousemove",mt,!0),n.removeEventListener("mouseup",mt,!0)),eo.delete(r))};function ju(){return Fr==="keyboard"}function RC(e={}){const{isTextInput:t,autoFocus:r,onChange:n,root:o}=e;$C(o),n==null||n({isFocusVisible:r||ju(),modality:Fr});const i=(a,s)=>{PC(!!t,a,s)&&(n==null||n({isFocusVisible:ju(),modality:a}))};return Ss.add(i),()=>{Ss.delete(i)}}var uh=oe("checkbox").parts("root","label","control","indicator");uh.build();ce()(["defaultChecked","checked","dir","disabled","form","getRootNode","id","ids","invalid","name","onCheckedChange","readOnly","required","value"]);const OC=uh.extendWith("group"),IC=eh.extendWith("view");var NC=Object.defineProperty,DC=(e,t,r)=>t in e?NC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,le=(e,t,r)=>DC(e,typeof t!="symbol"?t+"":t,r),fi={itemToValue(e){return typeof e=="string"?e:Oa(e)&&Ia(e,"value")?e.value:""},itemToString(e){return typeof e=="string"?e:Oa(e)&&Ia(e,"label")?e.label:fi.itemToValue(e)},isItemDisabled(e){return Oa(e)&&Ia(e,"disabled")?!!e.disabled:!1}},dh=class fh{constructor(t){this.options=t,le(this,"items"),le(this,"copy",r=>new fh({...this.options,items:r??[...this.items]})),le(this,"isEqual",r=>xo(this.items,r.items)),le(this,"setItems",r=>this.copy(r)),le(this,"getValues",(r=this.items)=>Array.from(r).map(n=>this.getItemValue(n)).filter(Boolean)),le(this,"find",r=>{if(r==null)return null;const n=this.items.findIndex(o=>this.getItemValue(o)===r);return n!=null?this.items[n]:null}),le(this,"findMany",r=>Array.from(r).map(n=>this.find(n)).filter(n=>n!=null)),le(this,"at",r=>this.items[r]??null),le(this,"sortFn",(r,n)=>{const o=this.indexOf(r),i=this.indexOf(n);return(o??0)-(i??0)}),le(this,"sort",r=>[...r].sort(this.sortFn.bind(this))),le(this,"getItemValue",r=>{var n,o;return r==null?null:((o=(n=this.options).itemToValue)==null?void 0:o.call(n,r))??fi.itemToValue(r)}),le(this,"getItemDisabled",r=>{var n,o;return r==null?!1:((o=(n=this.options).isItemDisabled)==null?void 0:o.call(n,r))??fi.isItemDisabled(r)}),le(this,"stringifyItem",r=>{var n,o;return r==null?null:((o=(n=this.options).itemToString)==null?void 0:o.call(n,r))??fi.itemToString(r)}),le(this,"stringify",r=>r==null?null:this.stringifyItem(this.find(r))),le(this,"stringifyItems",(r,n=", ")=>Array.from(r).map(o=>this.stringifyItem(o)).filter(Boolean).join(n)),le(this,"stringifyMany",(r,n)=>this.stringifyItems(this.findMany(r),n)),le(this,"has",r=>this.indexOf(r)!==-1),le(this,"hasItem",r=>r==null?!1:this.has(this.getItemValue(r))),le(this,"group",()=>{const{groupBy:r,groupSort:n}=this.options;if(!r)return[["",[...this.items]]];const o=new Map;this.items.forEach((a,s)=>{const l=r(a,s);o.has(l)||o.set(l,[]),o.get(l).push(a)});let i=Array.from(o.entries());return n&&i.sort(([a],[s])=>{if(typeof n=="function")return n(a,s);if(Array.isArray(n)){const l=n.indexOf(a),c=n.indexOf(s);return l===-1?1:c===-1?-1:l-c}return n==="asc"?a.localeCompare(s):n==="desc"?s.localeCompare(a):0}),i}),le(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))}),le(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))}),le(this,"indexOf",r=>r==null?-1:this.items.findIndex(n=>this.getItemValue(n)===r)),le(this,"getByText",(r,n)=>{let o=n!=null?AC(this.items,this.indexOf(n)):this.items;return r.length===1&&(o=o.filter(a=>this.getItemValue(a)!==n)),o.find(a=>_C(this.stringifyItem(a),r))}),le(this,"search",(r,n)=>{const{state:o,currentValue:i,timeout:a=350}=n,s=o.keysSoFar+r,c=s.length>1&&Array.from(s).every(h=>h===s[0])?s[0]:s,d=this.getByText(c,i),f=this.getItemValue(d);function u(){clearTimeout(o.timer),o.timer=-1}function p(h){o.keysSoFar=h,u(),h!==""&&(o.timer=+setTimeout(()=>{p(""),u()},a))}return p(s),f}),le(this,"update",(r,n)=>{let o=this.items.findIndex(i=>this.getItemValue(i)===r);return o===-1?this:this.copy([...this.items.slice(0,o),n,...this.items.slice(o+1)])}),le(this,"insert",(r,...n)=>this.copy(An(this.items,r,...n))),le(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(An(this.items,o,...n))}),le(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(An(this.items,o+1,...n))}),le(this,"prepend",(...r)=>this.copy(An(this.items,0,...r))),le(this,"append",(...r)=>this.copy(An(this.items,this.items.length,...r))),le(this,"filter",r=>{const n=this.items.filter((o,i)=>r(this.stringifyItem(o),i));return this.copy(n)}),le(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)}))}),le(this,"move",(r,n)=>{const o=this.indexOf(r);return o===-1?this:this.copy(Uu(this.items,[o],n))}),le(this,"reorder",(r,n)=>this.copy(Uu(this.items,[r],n))),le(this,"compareValue",(r,n)=>{const o=this.indexOf(r),i=this.indexOf(n);return o<i?-1:o>i?1:0}),le(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[]}),le(this,"getValueRange",(r,n)=>r&&n?this.compareValue(r,n)<=0?this.range(r,n):this.range(n,r):[]),le(this,"toString",()=>{let r="";for(const n of this.items){const o=this.getItemValue(n),i=this.stringifyItem(n),a=this.getItemDisabled(n),s=[o,i,a].filter(Boolean).join(":");r+=s+","}return r}),le(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}},_C=(e,t)=>!!(e!=null&&e.toLowerCase().startsWith(t.toLowerCase())),AC=(e,t)=>e.map((r,n)=>e[(Math.max(t,0)+n)%e.length]);function An(e,t,...r){return[...e.slice(0,t),...r,...e.slice(t)]}function Uu(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<r).length),[...e.slice(0,r),...n,...e.slice(r)]}var qr=new WeakMap,Wo=new WeakMap,Ho={},Ma=0,ph=e=>e&&(e.host||ph(e.parentNode)),LC=(e,t)=>t.map(r=>{if(e.contains(r))return r;const n=ph(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),MC=e=>e.localName==="next-route-announcer"||e.localName==="script"||e.hasAttribute("aria-live")?!0:e.matches("[data-live-announcer]"),FC=(e,t)=>{const{parentNode:r,markerName:n,controlAttribute:o}=t,i=LC(r,Array.isArray(e)?e:[e]);Ho[n]||(Ho[n]=new WeakMap);const a=Ho[n],s=[],l=new Set,c=new Set(i),d=u=>{!u||l.has(u)||(l.add(u),d(u.parentNode))};i.forEach(d);const f=u=>{!u||c.has(u)||Array.prototype.forEach.call(u.children,p=>{if(l.has(p))f(p);else try{if(MC(p))return;const m=p.getAttribute(o)==="true",v=(qr.get(p)||0)+1,x=(a.get(p)||0)+1;qr.set(p,v),a.set(p,x),s.push(p),v===1&&m&&Wo.set(p,!0),x===1&&p.setAttribute(n,""),m||p.setAttribute(o,"true")}catch(h){console.error("[zag-js > ariaHidden] cannot operate on ",p,h)}})};return f(r),l.clear(),Ma++,()=>{s.forEach(u=>{const p=qr.get(u)-1,h=a.get(u)-1;qr.set(u,p),a.set(u,h),p||(Wo.has(u)||u.removeAttribute(o),Wo.delete(u)),h||u.removeAttribute(n)}),Ma--,Ma||(qr=new WeakMap,qr=new WeakMap,Wo=new WeakMap,Ho={})}},zC=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body,VC=(e,t=zC(e),r="data-aria-hidden")=>{if(t)return FC(e,{parentNode:t,markerName:r,controlAttribute:"aria-hidden"})},BC=e=>{const t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)};function WC(e,t={}){const{defer:r=!0}=t,n=r?BC:i=>i(),o=[];return o.push(n(()=>{const a=(typeof e=="function"?e():e).filter(Boolean);a.length!==0&&o.push(VC(a))})),()=>{o.forEach(i=>i==null?void 0:i())}}const[gh,hr]=yo({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"}),hh=g.forwardRef((e,t)=>{const r=hr(),n=dC(),o=$l({...n,present:r.open}),i=zt(r.getBackdropProps(),o.getPresenceProps(),e);return o.unmounted?null:O.jsx(Mr.div,{...i,ref:Pl(o.ref,t)})});hh.displayName="DialogBackdrop";const mh=g.forwardRef((e,t)=>{const r=hr(),n=zt(r.getCloseTriggerProps(),e);return O.jsx(Mr.button,{...n,ref:t})});mh.displayName="DialogCloseTrigger";const vh=g.forwardRef((e,t)=>{const r=hr(),n=Tl(),o=zt(r.getContentProps(),n.getPresenceProps(),e);return n.unmounted?null:O.jsx(Mr.div,{...o,ref:Pl(n.ref,t)})});vh.displayName="DialogContent";const bh=g.forwardRef((e,t)=>{const r=hr(),n=zt(r.getDescriptionProps(),e);return O.jsx(Mr.div,{...n,ref:t})});bh.displayName="DialogDescription";const yh=g.forwardRef((e,t)=>{const r=hr(),n=zt(r.getPositionerProps(),e);return Tl().unmounted?null:O.jsx(Mr.div,{...n,ref:t})});yh.displayName="DialogPositioner";var HC=Object.defineProperty,KC=(e,t,r)=>t in e?HC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Re=(e,t,r)=>KC(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()}},jC=[],UC=class{constructor(e,t){Re(this,"trapStack"),Re(this,"config"),Re(this,"doc"),Re(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),Re(this,"listenerCleanups",[]),Re(this,"handleFocus",n=>{const o=bt(n),i=this.findContainerIndex(o,n)>=0;if(i||pl(o))i&&(this.state.mostRecentlyFocusedNode=o);else{n.stopImmediatePropagation();let a,s=!0;if(this.state.mostRecentlyFocusedNode)if(_n(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(f=>f===this.state.mostRecentlyFocusedNode);d>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?d+1<c.length&&(a=c[d+1],s=!1):d-1>=0&&(a=c[d-1],s=!1))}}else this.state.containerGroups.some(l=>l.tabbableNodes.some(c=>_n(c)>0))||(s=!1);else s=!1;s&&(a=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),a?this.tryFocus(a):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),Re(this,"handlePointerDown",n=>{const o=bt(n);if(!(this.findContainerIndex(o,n)>=0)){if(Mn(this.config.clickOutsideDeactivates,n)){this.deactivate({returnFocus:this.config.returnFocusOnDeactivate});return}Mn(this.config.allowOutsideClick,n)||n.preventDefault()}}),Re(this,"handleClick",n=>{const o=bt(n);this.findContainerIndex(o,n)>=0||Mn(this.config.clickOutsideDeactivates,n)||Mn(this.config.allowOutsideClick,n)||(n.preventDefault(),n.stopImmediatePropagation())}),Re(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;Ln(n)&&n.preventDefault(),this.tryFocus(i)}}),Re(this,"handleEscapeKey",n=>{GC(n)&&Mn(this.config.escapeDeactivates,n)!==!1&&(n.preventDefault(),this.deactivate())}),Re(this,"_mutationObserver"),Re(this,"setupMutationObserver",()=>{const n=this.doc.defaultView||window;this._mutationObserver=new n.MutationObserver(o=>{o.some(a=>Array.from(a.removedNodes).some(l=>l===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode())})}),Re(this,"updateObservedNodes",()=>{var n;(n=this._mutationObserver)==null||n.disconnect(),this.state.active&&!this.state.paused&&this.state.containers.map(o=>{var i;(i=this._mutationObserver)==null||i.observe(o,{subtree:!0,childList:!0})})}),Re(this,"getInitialFocusNode",()=>{let n=this.getNodeForOption("initialFocus",{hasFallback:!0});if(n===!1)return!1;if(n===void 0||n&&!lr(n))if(this.findContainerIndex(this.doc.activeElement)>=0)n=this.doc.activeElement;else{const o=this.state.tabbableGroups[0];n=o&&o.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}),Re(this,"tryFocus",n=>{if(n!==!1&&n!==fg(this.doc)){if(!n||!n.focus){this.tryFocus(this.getInitialFocusNode());return}n.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=n,YC(n)&&n.select()}}),Re(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);const i=this.getOption(o,"onDeactivate"),a=this.getOption(o,"onPostDeactivate"),s=this.getOption(o,"checkCanReturnFocus"),l=this.getOption(o,"returnFocus","returnFocusOnDeactivate");i==null||i();const c=()=>{Yu(()=>{if(l){const d=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(d)}a==null||a()})};if(l&&s){const d=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);return s(d).then(c,c),this}return c(),this}),Re(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==null||o(),this.removeListeners(),this.updateObservedNodes(),i==null||i(),this}),Re(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==null||o(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i==null||i(),this}),Re(this,"updateContainerElements",n=>(this.state.containers=Array.isArray(n)?n.filter(Boolean):[n].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),Re(this,"getReturnFocusNode",n=>{const o=this.getNodeForOption("setReturnFocus",{params:[n]});return o||(o===!1?!1:n)}),Re(this,"getOption",(n,o,i)=>n&&n[o]!==void 0?n[o]:this.config[i||o]),Re(this,"getNodeForOption",(n,{hasFallback:o=!1,params:i=[]}={})=>{let a=this.config[n];if(typeof a=="function"&&(a=a(...i)),a===!0&&(a=void 0),!a){if(a===void 0||a===!1)return a;throw new Error(`\`${n}\` was specified but was not a node, or did not return a node`)}let s=a;if(typeof a=="string"){try{s=this.doc.querySelector(a)}catch(l){throw new Error(`\`${n}\` appears to be an invalid selector; error="${l.message}"`)}if(!s&&!o)throw new Error(`\`${n}\` as selector refers to no known node`)}return s}),Re(this,"findNextNavNode",n=>{const{event:o,isBackward:i=!1}=n,a=n.target||bt(o);this.updateTabbableNodes();let s=null;if(this.state.tabbableGroups.length>0){const l=this.findContainerIndex(a,o),c=l>=0?this.state.containerGroups[l]:void 0;if(l<0)i?s=this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:s=this.state.tabbableGroups[0].firstTabbableNode;else if(i){let d=this.state.tabbableGroups.findIndex(({firstTabbableNode:f})=>a===f);if(d<0&&((c==null?void 0:c.container)===a||lr(a)&&!$r(a)&&!(c!=null&&c.nextTabbableNode(a,!1)))&&(d=l),d>=0){const f=d===0?this.state.tabbableGroups.length-1:d-1,u=this.state.tabbableGroups[f];s=_n(a)>=0?u.lastTabbableNode:u.lastDomTabbableNode}else Ln(o)||(s=c==null?void 0:c.nextTabbableNode(a,!1))}else{let d=this.state.tabbableGroups.findIndex(({lastTabbableNode:f})=>a===f);if(d<0&&((c==null?void 0:c.container)===a||lr(a)&&!$r(a)&&!(c!=null&&c.nextTabbableNode(a)))&&(d=l),d>=0){const f=d===this.state.tabbableGroups.length-1?0:d+1,u=this.state.tabbableGroups[f];s=_n(a)>=0?u.firstTabbableNode:u.firstDomTabbableNode}else Ln(o)||(s=c==null?void 0:c.nextTabbableNode(a))}}else s=this.getNodeForOption("fallbackFocus");return s}),this.trapStack=t.trapStack||jC;const r={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward(n){return Ln(n)&&!n.shiftKey},isKeyBackward(n){return Ln(n)&&n.shiftKey},...t};this.doc=r.document||wt(Array.isArray(e)?e[0]:e),this.config=r,this.updateContainerElements(e),this.setupMutationObserver()}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){const r=typeof(t==null?void 0:t.composedPath)=="function"?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:n,tabbableNodes:o})=>n.contains(e)||(r==null?void 0:r.includes(n))||o.find(i=>i===e))}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{const t=bl(e),r=mg(e),n=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,i=r.find(c=>$r(c)),a=r.slice().reverse().find(c=>$r(c)),s=!!t.find(c=>_n(c)>0);function l(c,d=!0){const f=t.indexOf(c);return f<0?d?r.slice(r.indexOf(c)+1).find(u=>$r(u)):r.slice(0,r.indexOf(c)).reverse().find(u=>$r(u)):t[f+(d?1:-1)]}return{container:e,tabbableNodes:t,focusableNodes:r,posTabIndexesFound:s,firstTabbableNode:n,lastTabbableNode:o,firstDomTabbableNode:i,lastDomTabbableNode:a,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?Yu(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push(Oe(this.doc,"focusin",this.handleFocus,!0),Oe(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),Oe(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),Oe(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),Oe(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),Oe(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=this.doc.activeElement||null,t==null||t();const o=()=>{n&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),r==null||r()};return n?(n(this.state.containers.concat()).then(o,o),this):(o(),this)}},Ln=e=>e.key==="Tab",Mn=(e,...t)=>typeof e=="function"?e(...t):e,GC=e=>!e.isComposing&&e.key==="Escape",Yu=e=>setTimeout(e,0),YC=e=>e.localName==="input"&&"select"in e&&typeof e.select=="function";function qC(e,t={}){let r;const n=Ee(()=>{const o=typeof e=="function"?e():e;if(o){r=new UC(o,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:o,...t,document:wt(o)});try{r.activate()}catch{}}});return function(){r==null||r.deactivate(),n()}}var Fa="data-scroll-lock";function XC(e){const t=e.getBoundingClientRect().left;return Math.round(t)+e.scrollLeft?"paddingLeft":"paddingRight"}function ZC(e){const t=e??document,r=t.defaultView??window,{documentElement:n,body:o}=t;if(o.hasAttribute(Fa))return;o.setAttribute(Fa,"");const a=r.innerWidth-n.clientWidth,s=()=>gS(n,"--scrollbar-width",`${a}px`),l=XC(n),c=()=>Si(o,{overflow:"hidden",[l]:`${a}px`}),d=()=>{const{scrollX:u,scrollY:p,visualViewport:h}=r,m=(h==null?void 0:h.offsetLeft)??0,v=(h==null?void 0:h.offsetTop)??0,x=Si(o,{position:"fixed",overflow:"hidden",top:`${-(p-Math.floor(v))}px`,left:`${-(u-Math.floor(m))}px`,right:"0",[l]:`${a}px`});return()=>{x==null||x(),r.scrollTo({left:u,top:p,behavior:"instant"})}},f=[s(),qi()?d():c()];return()=>{f.forEach(u=>u==null?void 0:u()),o.removeAttribute(Fa)}}var Bl=oe("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),yr=Bl.build(),xh=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`dialog:${e.id}:positioner`},Sh=e=>{var t;return((t=e.ids)==null?void 0:t.backdrop)??`dialog:${e.id}:backdrop`},Es=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`dialog:${e.id}:content`},wh=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`dialog:${e.id}:trigger`},Cs=e=>{var t;return((t=e.ids)==null?void 0:t.title)??`dialog:${e.id}:title`},Ps=e=>{var t;return((t=e.ids)==null?void 0:t.description)??`dialog:${e.id}:description`},Eh=e=>{var t;return((t=e.ids)==null?void 0:t.closeTrigger)??`dialog:${e.id}:close`},Ko=e=>e.getById(Es(e)),JC=e=>e.getById(xh(e)),QC=e=>e.getById(Sh(e)),eP=e=>e.getById(wh(e)),tP=e=>e.getById(Cs(e)),rP=e=>e.getById(Ps(e)),nP=e=>e.getById(Eh(e));function oP(e,t){const{state:r,send:n,context:o,prop:i,scope:a}=e,s=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({...yr.trigger.attrs,dir:i("dir"),id:wh(a),"aria-haspopup":"dialog",type:"button","aria-expanded":l,"data-state":l?"open":"closed","aria-controls":Es(a),onClick(c){c.defaultPrevented||n({type:"TOGGLE"})}})},getBackdropProps(){return t.element({...yr.backdrop.attrs,dir:i("dir"),hidden:!l,id:Sh(a),"data-state":l?"open":"closed"})},getPositionerProps(){return t.element({...yr.positioner.attrs,dir:i("dir"),id:xh(a),style:{pointerEvents:l?void 0:"none"}})},getContentProps(){const c=o.get("rendered");return t.element({...yr.content.attrs,dir:i("dir"),role:i("role"),hidden:!l,id:Es(a),tabIndex:-1,"data-state":l?"open":"closed","aria-modal":!0,"aria-label":s||void 0,"aria-labelledby":s||!c.title?void 0:Cs(a),"aria-describedby":c.description?Ps(a):void 0})},getTitleProps(){return t.element({...yr.title.attrs,dir:i("dir"),id:Cs(a)})},getDescriptionProps(){return t.element({...yr.description.attrs,dir:i("dir"),id:Ps(a)})},getCloseTriggerProps(){return t.button({...yr.closeTrigger.attrs,dir:i("dir"),id:Eh(a),type:"button",onClick(c){c.defaultPrevented||(c.stopPropagation(),n({type:"CLOSE"}))}})}}}var iP={props({props:e,scope:t}){const r=e.role==="alertdialog";return{role:"dialog",modal:!0,trapFocus:!0,preventScroll:!0,closeOnInteractOutside:!r,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:r?()=>nP(t):void 0,...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 wo(()=>Ko(e),{defer:!0,pointerBlocking:r("modal"),exclude:[eP(e)],onInteractOutside(o){var i;(i=r("onInteractOutside"))==null||i(o),r("closeOnInteractOutside")||o.preventDefault()},persistentElements:r("persistentElements"),onFocusOutside:r("onFocusOutside"),onPointerDownOutside:r("onPointerDownOutside"),onEscapeKeyDown(o){var i;(i=r("onEscapeKeyDown"))==null||i(o),r("closeOnEscape")||o.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}})},preventScroll({scope:e,prop:t}){if(t("preventScroll"))return ZC(e.getDoc())},trapFocus({scope:e,prop:t}){return!t("trapFocus")||!t("modal")?void 0:qC(()=>Ko(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:n=>{var o;return((o=t("finalFocusEl"))==null?void 0:o())??n}})},hideContentBelow({scope:e,prop:t}){return t("modal")?WC(()=>[Ko(e)],{defer:!0}):void 0}},actions:{checkRenderedElements({context:e,scope:t}){Ee(()=>{e.set("rendered",{title:!!tP(t),description:!!rP(t)})})},syncZIndex({scope:e}){Ee(()=>{const t=Ko(e);if(!t)return;const r=gl(t);[JC(e),QC(e)].forEach(o=>{o==null||o.style.setProperty("--z-index",r.zIndex)})})},invokeOnClose({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!1})},invokeOnOpen({prop:e}){var t;(t=e("onOpenChange"))==null||t({open:!0})},toggleVisibility({prop:e,send:t,event:r}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:r})}}}};ce()(["aria-label","closeOnEscape","closeOnInteractOutside","dir","finalFocusEl","getRootNode","getRootNode","id","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","preventScroll","restoreFocus","role","trapFocus"]);const aP=e=>{const t=g.useId(),{getRootNode:r}=Fg(),{dir:n}=SS(),o={id:t,getRootNode:r,dir:n,...e},i=_g(iP,o);return oP(i,fw)},sP=e=>{const[t,{children:r,...n}]=Ig(e),[o]=rh(t),i=aP(n),a=$l(zt({present:i.open},t));return O.jsx(gh,{value:i,children:O.jsx(th,{value:o,children:O.jsx(Lg,{value:a,children:r})})})},lP=e=>{const[t,{value:r,children:n}]=Ig(e),[o]=rh(t),i=$l(zt({present:r.open},t));return O.jsx(gh,{value:r,children:O.jsx(th,{value:o,children:O.jsx(Lg,{value:i,children:n})})})},Ch=g.forwardRef((e,t)=>{const r=hr(),n=zt(r.getTitleProps(),e);return O.jsx(Mr.h2,{...n,ref:t})});Ch.displayName="DialogTitle";const Ph=g.forwardRef((e,t)=>{const r=hr(),n=Tl(),o=zt({...r.getTriggerProps(),"aria-controls":n.unmounted?void 0:r.getTriggerProps()["aria-controls"]},e);return O.jsx(Mr.button,{...o,ref:t})});Ph.displayName="DialogTrigger";var kh=oe("editable").parts("root","area","label","preview","input","editTrigger","submitTrigger","cancelTrigger","control");kh.build();ce()(["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 $h=oe("field").parts("root","errorText","helperText","input","label","select","textarea","requiredIndicator");$h.build();const Th=oe("fieldset").parts("root","errorText","helperText","legend");Th.build();var Rh=oe("file-upload").parts("root","dropzone","item","itemDeleteTrigger","itemGroup","itemName","itemPreview","itemPreviewImage","itemSizeText","label","trigger","clearTrigger");Rh.build();ce()(["accept","allowDrop","capture","dir","directory","disabled","getRootNode","id","ids","locale","maxFiles","maxFileSize","minFileSize","name","invalid","onFileAccept","onFileReject","onFileChange","preventDocumentDrop","required","translations","validate"]);ce()(["file"]);const cP=Symbol(),qu=Object.getPrototypeOf,ks=new WeakMap,uP=e=>e&&(ks.has(e)?ks.get(e):qu(e)===Object.prototype||qu(e)===Array.prototype),dP=e=>uP(e)&&e[cP]||null,Xu=(e,t=!0)=>{ks.set(e,t)};function fP(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function Oh(e,t){const r=fP();return r?(r[e]||(r[e]=t()),r[e]):t()}var pi=Oh("__zag__refSet",()=>new WeakSet),pP=e=>typeof e=="object"&&e!==null&&"$$typeof"in e&&"props"in e,gP=e=>typeof e=="object"&&e!==null&&"__v_isVNode"in e,hP=e=>typeof e=="object"&&e!==null&&"nodeType"in e&&typeof e.nodeName=="string",mP=e=>pP(e)||gP(e)||hP(e),$s=e=>e!==null&&typeof e=="object",Zu=e=>$s(e)&&!pi.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!mP(e)&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)&&!(e instanceof Promise),Oi=()=>process.env.NODE_ENV!=="production",Tr=Oh("__zag__proxyStateMap",()=>new WeakMap),vP=(e=Object.is,t=(s,l)=>new Proxy(s,l),r=new WeakMap,n=(s,l)=>{const c=r.get(s);if((c==null?void 0:c[0])===l)return c[1];const d=Array.isArray(s)?[]:Object.create(Object.getPrototypeOf(s));return Xu(d,!0),r.set(s,[l,d]),Reflect.ownKeys(s).forEach(f=>{const u=Reflect.get(s,f);pi.has(u)?(Xu(u,!1),d[f]=u):Tr.has(u)?d[f]=xP(u):d[f]=u}),Object.freeze(d)},o=new WeakMap,i=[1,1],a=s=>{if(!$s(s))throw new Error("object required");const l=o.get(s);if(l)return l;let c=i[0];const d=new Set,f=(D,R=++i[0])=>{c!==R&&(c=R,d.forEach(_=>_(D,R)))};let u=i[1];const p=(D=++i[1])=>(u!==D&&!d.size&&(u=D,m.forEach(([R])=>{const _=R[1](D);_>c&&(c=_)})),c),h=D=>(R,_)=>{const N=[...R];N[1]=[D,...N[1]],f(N,_)},m=new Map,v=(D,R)=>{if(Oi()&&m.has(D))throw new Error("prop listener already exists");if(d.size){const _=R[3](h(D));m.set(D,[R,_])}else m.set(D,[R])},x=D=>{var _;const R=m.get(D);R&&(m.delete(D),(_=R[1])==null||_.call(R))},E=D=>(d.add(D),d.size===1&&m.forEach(([_,N],S)=>{if(Oi()&&N)throw new Error("remove already exists");const M=_[3](h(S));m.set(S,[_,M])}),()=>{d.delete(D),d.size===0&&m.forEach(([_,N],S)=>{N&&(N(),m.set(S,[_]))})}),P=Array.isArray(s)?[]:Object.create(Object.getPrototypeOf(s)),C=t(P,{deleteProperty(D,R){const _=Reflect.get(D,R);x(R);const N=Reflect.deleteProperty(D,R);return N&&f(["delete",[R],_]),N},set(D,R,_,N){var z;const S=Reflect.has(D,R),M=Reflect.get(D,R,N);if(S&&(e(M,_)||o.has(_)&&e(M,o.get(_))))return!0;x(R),$s(_)&&(_=dP(_)||_);let j=_;if(!((z=Object.getOwnPropertyDescriptor(D,R))!=null&&z.set)){!Tr.has(_)&&Zu(_)&&(j=Ih(_));const F=!pi.has(j)&&Tr.get(j);F&&v(R,F)}return Reflect.set(D,R,j,N),f(["set",[R],_,M]),!0}});o.set(s,C);const k=[P,p,n,E];return Tr.set(C,k),Reflect.ownKeys(s).forEach(D=>{const R=Object.getOwnPropertyDescriptor(s,D);R.get||R.set?Object.defineProperty(P,D,R):C[D]=s[D]}),C})=>[a,Tr,pi,e,t,Zu,r,n,o,i],[bP]=vP();function Ih(e={}){return bP(e)}function yP(e,t,r){const n=Tr.get(e);Oi()&&!n&&console.warn("Please use proxy object");let o;const i=[],a=n[3];let s=!1;const c=a(d=>{i.push(d),o||(o=Promise.resolve().then(()=>{o=void 0,s&&t(i.splice(0))}))});return s=!0,()=>{s=!1,c()}}function xP(e){const t=Tr.get(e);Oi()&&!t&&console.warn("Please use proxy object");const[r,n,o]=t;return o(r,n())}var Nh=(e,t)=>{const r=[],n=(o,i,a)=>{i-o>0&&r.push({start:o,end:i,match:a})};if(e.length===0)n(0,t,!1);else{let o=0;for(const i of e)n(o,i.start,!1),n(i.start,i.end,!0),o=i.end;n(o,t,!1)}return r};function SP(e){const{text:t,query:r,ignoreCase:n}=e,o=n?t.toLowerCase():t,i=n&&typeof r=="string"?r.toLowerCase():r,a=typeof o=="string"?o.indexOf(i):-1;if(a===-1)return[{text:t,match:!1}];const s=a+i.length;return Nh([{start:a,end:s}],t.length).map(c=>({text:t.slice(c.start,c.end),match:!!c.match}))}var wP=e=>e.replace(/[|\\{}()[\]^$+*?.-]/g,t=>`\\${t}`),EP=(e,t)=>{const r=e.filter(Boolean).map(n=>wP(n));return new RegExp(`(${r.join("|")})`,t)},CP=(e,t=!0)=>`${e?"i":""}${t?"g":""}`;function PP(e){const{text:t,query:r,ignoreCase:n,matchAll:o}=e;if(r.length===0)return[{text:t,match:!1}];const i=CP(n,o),a=EP(Array.isArray(r)?r:[r],i),s=[...t.matchAll(a)].map(l=>({start:l.index||0,end:(l.index||0)+l[0].length}));return Nh(s,e.text.length).map(l=>({text:e.text.slice(l.start,l.end),match:!!l.match}))}var kP=e=>{if(e.matchAll==null&&(e.matchAll=Array.isArray(e.query)),!e.matchAll&&Array.isArray(e.query))throw new Error("matchAll must be true when using multiple queries");return e.matchAll?PP(e):SP(e)};const $P=e=>g.useMemo(()=>kP(e),[e]);var Dh=oe("hoverCard").parts("arrow","arrowTip","trigger","positioner","content");Dh.build();var TP=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`hover-card:${e.id}:trigger`},RP=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`hover-card:${e.id}:content`},OP=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`hover-card:${e.id}:popper`},za=e=>e.getById(TP(e)),IP=e=>e.getById(RP(e)),Ju=e=>e.getById(OP(e)),{not:jo,and:Qu}=Lr();Qu("isOpenControlled",jo("isPointer")),jo("isPointer"),Qu("isOpenControlled",jo("isPointer")),jo("isPointer");ce()(["closeDelay","dir","getRootNode","id","ids","onOpenChange","defaultOpen","open","openDelay","positioning","onInteractOutside","onPointerDownOutside","onFocusOutside"]);var _h=oe("menu").parts("arrow","arrowTip","content","contextTrigger","indicator","item","itemGroup","itemGroupLabel","itemIndicator","itemText","positioner","separator","trigger","triggerItem");_h.build();var Ah=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`menu:${e.id}:trigger`},NP=e=>{var t;return((t=e.ids)==null?void 0:t.contextTrigger)??`menu:${e.id}:ctx-trigger`},Lh=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`menu:${e.id}:content`},DP=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`menu:${e.id}:popper`},Ts=(e,t)=>`${e.id}/${t}`,xr=e=>(e==null?void 0:e.dataset.value)??null,or=e=>e.getById(Lh(e)),ed=e=>e.getById(DP(e)),Uo=e=>e.getById(Ah(e)),_P=(e,t)=>t?e.getById(Ts(e,t)):null,td=e=>e.getById(NP(e)),Eo=e=>{const r=`[role^="menuitem"][data-ownedby=${CSS.escape(Lh(e))}]:not([data-disabled])`;return xi(or(e),r)},AP=e=>wg(Eo(e)),LP=e=>Eg(Eo(e)),Wl=(e,t)=>t?e.id===t||e.dataset.value===t:!1,MP=(e,t)=>{const r=Eo(e),n=r.findIndex(o=>Wl(o,t.value));return CS(r,n,{loop:t.loop??t.loopFocus})},FP=(e,t)=>{const r=Eo(e),n=r.findIndex(o=>Wl(o,t.value));return kS(r,n,{loop:t.loop??t.loopFocus})},zP=(e,t)=>{const r=Eo(e),n=r.find(o=>Wl(o,t.value));return Cl(r,{state:t.typeaheadState,key:t.key,activeId:(n==null?void 0:n.id)??null})},VP=e=>{var t;return!!((t=e==null?void 0:e.getAttribute("role"))!=null&&t.startsWith("menuitem"))&&!!(e!=null&&e.hasAttribute("aria-controls"))},BP="menu:select";function WP(e,t){if(!e)return;const r=et(e),n=new r.CustomEvent(BP,{detail:{value:t}});e.dispatchEvent(n)}var{not:gt,and:Xr,or:HP}=Lr();gt("isSubmenu"),HP("isOpenAutoFocusEvent","isArrowDownEvent"),Xr(gt("isTriggerItem"),"isOpenControlled"),gt("isTriggerItem"),Xr("isSubmenu","isOpenControlled"),gt("isPointerSuspended"),Xr(gt("isPointerSuspended"),gt("isTriggerItem")),Xr(gt("isTriggerItemHighlighted"),gt("isHighlightedItemEditable"),"closeOnSelect","isOpenControlled"),Xr(gt("isTriggerItemHighlighted"),gt("isHighlightedItemEditable"),"closeOnSelect"),Xr(gt("isTriggerItemHighlighted"),gt("isHighlightedItemEditable"));function rd(e){let t=e.parent;for(;t&&t.computed("isSubmenu");)t=t.refs.get("parent");t==null||t.send({type:"CLOSE"})}function KP(e,t){return e?wC(e,t):!1}function jP(e,t,r){const n=Object.keys(e).length>0;if(!t)return null;if(!n)return Ts(r,t);for(const o in e){const i=e[o],a=Ah(i.scope);if(a===t)return a}return Ts(r,t)}ce()(["anchorPoint","aria-label","closeOnSelect","composite","defaultHighlightedValue","defaultOpen","dir","getRootNode","highlightedValue","id","ids","loopFocus","navigate","onEscapeKeyDown","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onSelect","open","positioning","typeahead"]);ce()(["closeOnSelect","disabled","value","valueText"]);ce()(["htmlFor"]);ce()(["id"]);ce()(["checked","closeOnSelect","disabled","onCheckedChange","type","value","valueText"]);let Va=new Map,Rs=!1;try{Rs=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Ii=!1;try{Ii=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Mh={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Fh{format(t){let r="";if(!Rs&&this.options.signDisplay!=null?r=GP(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!Ii){var n;let{unit:o,unitDisplay:i="short",locale:a}=this.resolvedOptions();if(!o)return r;let s=(n=Mh[o])===null||n===void 0?void 0:n[i];r+=s[a]||s.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<t)throw new RangeError("End date must be >= 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<t)throw new RangeError("End date must be >= 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!Rs&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Ii&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,r={}){this.numberFormatter=UP(t,r),this.options=r}}function UP(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!Ii){var n;let{unit:a,unitDisplay:s="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=Mh[a])===null||n===void 0)&&n[s]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,s)=>a[0]<s[0]?-1:1).join():"");if(Va.has(o))return Va.get(o);let i=new Intl.NumberFormat(e,t);return Va.set(o,i),i}function GP(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>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),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(r)}}const YP=new RegExp("^.*\\(.*\\).*$"),qP=["latn","arab","hanidec","deva","beng"];class zh{parse(t){return Ba(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,r,n){return Ba(this.locale,this.options,t).isValidPartialNumber(t,r,n)}getNumberingSystem(t){return Ba(this.locale,this.options,t).options.numberingSystem}constructor(t,r={}){this.locale=t,this.options=r}}const nd=new Map;function Ba(e,t,r){let n=od(e,t);if(!e.includes("-nu-")&&!n.isValidPartialNumber(r)){for(let o of qP)if(o!==n.options.numberingSystem){let i=od(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(r))return i}}return n}function od(e,t){let r=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),n=nd.get(r);return n||(n=new XP(e,t),nd.set(r,n)),n}class XP{parse(t){let r=this.sanitize(t);if(this.symbols.group&&(r=Fn(r,this.symbols.group,"")),this.symbols.decimal&&(r=r.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(r=r.replace(this.symbols.minusSign,"-")),r=r.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let a=r.indexOf("-");r=r.replace("-","");let s=r.indexOf(".");s===-1&&(s=r.length),r=r.replace(".",""),s-2===0?r=`0.${r}`:s-2===-1?r=`0.0${r}`:s-2===-2?r="0.00":r=`${r.slice(0,s-2)}.${r.slice(s-2)}`,a>-1&&(r=`-${r}`)}let n=r?+r:NaN;if(isNaN(n))return NaN;if(this.options.style==="percent"){var o,i;let a={...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 zh(this.locale,a).parse(new Fh(this.locale,a).format(n))}return this.options.currencySign==="accounting"&&YP.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=Fn(t,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(t=Fn(t," ",this.symbols.group),t=Fn(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=Fn(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,this.formatter=new Intl.NumberFormat(t,r),this.options=this.formatter.resolvedOptions(),this.symbols=JP(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 id=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),ZP=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function JP(e,t,r,n){var o,i,a,s;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),f=ZP.map(N=>l.formatToParts(N));var u;let p=(u=(o=c.find(N=>N.type==="minusSign"))===null||o===void 0?void 0:o.value)!==null&&u!==void 0?u:"-",h=(i=d.find(N=>N.type==="plusSign"))===null||i===void 0?void 0:i.value;!h&&((n==null?void 0:n.signDisplay)==="exceptZero"||(n==null?void 0:n.signDisplay)==="always")&&(h="+");let v=(a=new Intl.NumberFormat(e,{...r,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(N=>N.type==="decimal"))===null||a===void 0?void 0:a.value,x=(s=c.find(N=>N.type==="group"))===null||s===void 0?void 0:s.value,E=c.filter(N=>!id.has(N.type)).map(N=>ad(N.value)),P=f.flatMap(N=>N.filter(S=>!id.has(S.type)).map(S=>ad(S.value))),T=[...new Set([...E,...P])].sort((N,S)=>S.length-N.length),C=T.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${T.join("|")}|[\\p{White_Space}]`,"gu"),k=[...new Intl.NumberFormat(r.locale,{useGrouping:!1}).format(9876543210)].reverse(),D=new Map(k.map((N,S)=>[N,S])),R=new RegExp(`[${k.join("")}]`,"g");return{minusSign:p,plusSign:h,decimal:v,group:x,literals:C,numeral:R,index:N=>String(D.get(N))}}function Fn(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function ad(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var Vh=oe("numberInput").parts("root","label","input","control","valueText","incrementTrigger","decrementTrigger","scrubber");Vh.build();var QP=e=>{var t;return((t=e.ids)==null?void 0:t.input)??`number-input:${e.id}:input`},ek=e=>{var t;return((t=e.ids)==null?void 0:t.incrementTrigger)??`number-input:${e.id}:inc`},tk=e=>{var t;return((t=e.ids)==null?void 0:t.decrementTrigger)??`number-input:${e.id}:dec`},Bh=e=>`number-input:${e.id}:cursor`,Go=e=>e.getById(QP(e)),rk=e=>e.getById(ek(e)),nk=e=>e.getById(tk(e)),Wh=e=>e.getDoc().getElementById(Bh(e)),ok=(e,t)=>{let r=null;return t==="increment"&&(r=rk(e)),t==="decrement"&&(r=nk(e)),r},ik=(e,t)=>{if(!gg())return lk(e,t),()=>{var r;(r=Wh(e))==null||r.remove()}},ak=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")}},sk=(e,t)=>{const{point:r,isRtl:n,event:o}=t,i=e.getWin(),a=Na(o.movementX,i.devicePixelRatio),s=Na(o.movementY,i.devicePixelRatio);let l=a>0?"increment":a<0?"decrement":null;n&&l==="increment"&&(l="decrement"),n&&l==="decrement"&&(l="increment");const c={x:r.x+a,y:r.y+s},d=i.innerWidth,f=Na(7.5,i.devicePixelRatio);return c.x=zS(c.x+f,d)-f,{hint:l,point:c}},lk=(e,t)=>{const r=e.getDoc(),n=r.createElement("div");n.className="scrubber--cursor",n.id=Bh(e),Object.assign(n.style,{width:"15px",height:"15px",position:"fixed",pointerEvents:"none",left:"0px",top:"0px",zIndex:m1,transform:t?`translate3d(${t.x}px, ${t.y}px, 0px)`:void 0,willChange:"transform"}),n.innerHTML=`
86
+ <svg width="46" height="15" style="left: -15.5px; position: absolute; top: 0; filter: drop-shadow(rgba(0, 0, 0, 0.4) 0px 1px 1.1px);">
87
+ <g transform="translate(2 3)">
88
+ <path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z" style="stroke-width: 2px; stroke: white;"></path>
89
+ <path fill-rule="evenodd" d="M 15 4.5L 15 2L 11.5 5.5L 15 9L 15 6.5L 31 6.5L 31 9L 34.5 5.5L 31 2L 31 4.5Z"></path>
90
+ </g>
91
+ </svg>`,r.body.appendChild(n)};function ck(e){if(!(!e||e.ownerDocument.activeElement!==e))try{const{selectionStart:t,selectionEnd:r,value:n}=e,o=n.substring(0,t),i=n.substring(r);return{start:t,end:r,value:n,beforeTxt:o,afterTxt:i}}catch{}}function uk(e,t){if(!(!e||e.ownerDocument.activeElement!==e)){if(!t){e.setSelectionRange(e.value.length,e.value.length);return}try{const{value:r}=e,{beforeTxt:n="",afterTxt:o="",start:i}=t;let a=r.length;if(r.endsWith(o))a=r.length-o.length;else if(r.startsWith(n))a=n.length;else if(i!=null){const s=n[i-1],l=r.indexOf(s,i-1);l!==-1&&(a=l+1)}e.setSelectionRange(a,a)}catch{}}}var dk=(e,t={})=>new Intl.NumberFormat(e,t),fk=(e,t={})=>new zh(e,t),Wa=(e,t)=>{const{prop:r,computed:n}=t;return r("formatOptions")?n("parser").parse(String(e)):parseFloat(e)},Sr=(e,t)=>{const{prop:r,computed:n}=t;return Number.isNaN(e)?"":r("formatOptions")?n("formatter").format(e):e.toString()},pk=(e,t)=>{let r=e!==void 0&&!Number.isNaN(e)?e:1;return(t==null?void 0:t.style)==="percent"&&(e===void 0||Number.isNaN(e))&&(r=.01),r},{choose:gk,guards:hk,createMachine:mk}=QS(),{not:sd,and:ld}=hk;mk({props({props:e}){const t=pk(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){var a;const o=r(),i=Wa(n,{computed:o,prop:e});(a=e("onValueChange"))==null||a({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})=>Wa(e.get("value"),{computed:t,prop:r}),formattedValue:({computed:e,prop:t})=>Sr(e("valueAsNumber"),{computed:e,prop:t}),isAtMin:({computed:e,prop:t})=>BS(e("valueAsNumber"),t("min")),isAtMax:({computed:e,prop:t})=>VS(e("valueAsNumber"),t("max")),isOutOfRange:({computed:e,prop:t})=>!WS(e("valueAsNumber"),t("min"),t("max")),isValueEmpty:({context:e})=>e.get("value")==="",isDisabled:({prop:e,context:t})=>!!e("disabled")||t.get("fieldsetDisabled"),canIncrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMax"),canDecrement:({prop:e,computed:t})=>e("allowOverflow")||!t("isAtMin"),valueText:({prop:e,context:t})=>{var r,n;return(n=(r=e("translations")).valueText)==null?void 0:n.call(r,t.get("value"))},formatter:Su(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>dk(e,t)),parser:Su(({prop:e})=>[e("locale"),e("formatOptions")],(e,t)=>fk(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:ld("clampValueOnBlur",sd("isInRange")),target:"idle",actions:["setClampedValue","clearHint","invokeOnBlur"]},{guard:sd("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:gk([{guard:"isIncrementHint",actions:["increment"]},{guard:"isDecrementHint",actions:["decrement"]}]),on:{CHANGE_DELAY:{target:"spinning",guard:ld("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=Go(t);return ml(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 ik(t,r)},preventTextSelection({scope:e}){return ak(e)},trackButtonDisabled({context:e,scope:t,send:r}){const n=e.get("hint"),o=ok(t,n);return xl(o,{attributes:["disabled"],callback(){r({type:"TRIGGER.PRESS_UP",src:"attr"})}})},attachWheelListener({scope:e,send:t,prop:r}){const n=Go(e);if(!n||!e.isActiveElement(n)||!r("allowMouseWheel"))return;function o(i){i.preventDefault();const a=Math.sign(i.deltaY)*-1;a===1?t({type:"VALUE.INCREMENT"}):a===-1&&t({type:"VALUE.DECREMENT"})}return Oe(n,"wheel",o,{passive:!1})},activatePointerLock({scope:e}){if(!gg())return nS(e.getDoc())},trackMousemove({scope:e,send:t,context:r,computed:n}){const o=e.getDoc();function i(s){const l=r.get("scrubberCursorPoint"),c=n("isRtl"),d=sk(e,{point:l,isRtl:c,event:s});d.hint&&t({type:"SCRUBBER.POINTER_MOVE",hint:d.hint,point:d.point})}function a(){t({type:"SCRUBBER.POINTER_UP"})}return wi(Oe(o,"mousemove",i,!1),Oe(o,"mouseup",a,!1))}},actions:{focusInput({scope:e,prop:t}){if(!t("focusInputOnChange"))return;const r=Go(e);e.isActiveElement(r)||Ee(()=>r==null?void 0:r.focus({preventScroll:!0}))},increment({context:e,event:t,prop:r,computed:n}){let o=US(n("valueAsNumber"),t.step??r("step"));r("allowOverflow")||(o=ot(o,r("min"),r("max"))),e.set("value",Sr(o,{computed:n,prop:r}))},decrement({context:e,event:t,prop:r,computed:n}){let o=GS(n("valueAsNumber"),t.step??r("step"));r("allowOverflow")||(o=ot(o,r("min"),r("max"))),e.set("value",Sr(o,{computed:n,prop:r}))},setClampedValue({context:e,prop:t,computed:r}){const n=ot(r("valueAsNumber"),t("min"),t("max"));e.set("value",Sr(n,{computed:r,prop:t}))},setRawValue({context:e,event:t,prop:r,computed:n}){let o=Wa(t.value,{computed:n,prop:r});r("allowOverflow")||(o=ot(o,r("min"),r("max"))),e.set("value",Sr(o,{computed:n,prop:r}))},setValue({context:e,event:t}){var n;const r=((n=t.target)==null?void 0:n.value)??t.value;e.set("value",r)},clearValue({context:e}){e.set("value","")},incrementToMax({context:e,prop:t,computed:r}){const n=Sr(t("max"),{computed:r,prop:t});e.set("value",n)},decrementToMin({context:e,prop:t,computed:r}){const n=Sr(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}){var r;(r=t("onFocusChange"))==null||r({focused:!0,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnBlur({computed:e,prop:t}){var r;(r=t("onFocusChange"))==null||r({focused:!1,value:e("formattedValue"),valueAsNumber:e("valueAsNumber")})},invokeOnInvalid({computed:e,prop:t,event:r}){var o;if(r.type==="INPUT.CHANGE")return;const n=e("valueAsNumber")>t("max")?"rangeOverflow":"rangeUnderflow";(o=t("onValueInvalid"))==null||o({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=Go(n),a=ck(i);Ee(()=>{Zi(i,o),uk(i,a)})},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=Wh(t),n=e.get("scrubberCursorPoint");!r||!n||(r.style.transform=`translate3d(${n.x}px, ${n.y}px, 0px)`)}}}});ce()(["allowMouseWheel","allowOverflow","clampValueOnBlur","dir","disabled","focusInputOnChange","form","formatOptions","getRootNode","id","ids","inputMode","invalid","locale","max","min","name","onFocusChange","onValueChange","onValueInvalid","pattern","required","readOnly","spinOnPress","step","translations","value","defaultValue"]);var Hh=oe("pinInput").parts("root","label","input","control");Hh.build();ce()(["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 Kh=oe("popover").parts("arrow","arrowTip","anchor","trigger","indicator","positioner","content","title","description","closeTrigger");Kh.build();ce()(["autoFocus","closeOnEscape","closeOnInteractOutside","dir","getRootNode","id","ids","initialFocusEl","modal","onEscapeKeyDown","onFocusOutside","onInteractOutside","onOpenChange","onPointerDownOutside","defaultOpen","open","persistentElements","portalled","positioning"]);const vk=e=>{var l;const{children:t,disabled:r}=e,[n,o]=g.useState((l=e.container)==null?void 0:l.current),i=g.useSyncExternalStore(yk,()=>!1,()=>!0),{getRootNode:a}=Fg();if(g.useEffect(()=>{o(()=>{var c;return(c=e.container)==null?void 0:c.current})},[e.container]),i||r)return O.jsx(O.Fragment,{children:t});const s=n??bk(a);return O.jsx(O.Fragment,{children:g.Children.map(t,c=>Vt.createPortal(c,s))})},bk=e=>{const t=e==null?void 0:e(),r=t.getRootNode();return vn(r)?r:wt(t).body},yk=()=>()=>{};var Hl=oe("progress").parts("root","label","track","range","valueText","view","circle","circleTrack","circleRange");Hl.build();ce()(["dir","getRootNode","id","ids","max","min","orientation","translations","value","onValueChange","defaultValue","formatOptions","locale"]);var jh=oe("qr-code").parts("root","frame","pattern","overlay","downloadTrigger");jh.build();ce()(["ids","defaultValue","value","id","encoding","dir","getRootNode","onValueChange","pixelSize"]);var Kl=oe("radio-group").parts("root","label","item","itemText","itemControl","indicator");Kl.build();ce()(["dir","disabled","form","getRootNode","id","ids","name","onValueChange","orientation","readOnly","value","defaultValue"]);ce()(["value","disabled","invalid"]);var Uh=oe("rating-group").parts("root","label","item","control");Uh.build();ce()(["allowHalf","autoFocus","count","dir","disabled","form","getRootNode","id","ids","name","onHoverChange","onValueChange","required","readOnly","translations","value","defaultValue"]);ce()(["index"]);const Gh=Kl.rename("segment-group");Gh.build();var Yh=oe("select").parts("label","positioner","trigger","indicator","clearTrigger","item","itemText","itemIndicator","itemGroup","itemGroupLabel","list","content","root","control","valueText");Yh.build();var qh=e=>new dh(e);qh.empty=()=>new dh({items:[]});var xk=e=>{var t;return((t=e.ids)==null?void 0:t.content)??`select:${e.id}:content`},Sk=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`select:${e.id}:trigger`},wk=e=>{var t;return((t=e.ids)==null?void 0:t.clearTrigger)??`select:${e.id}:clear-trigger`},Ek=(e,t)=>{var r,n;return((n=(r=e.ids)==null?void 0:r.item)==null?void 0:n.call(r,t))??`select:${e.id}:option:${t}`},Ck=e=>{var t;return((t=e.ids)==null?void 0:t.hiddenSelect)??`select:${e.id}:select`},Pk=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`select:${e.id}:positioner`},Ha=e=>e.getById(Ck(e)),zn=e=>e.getById(xk(e)),Yo=e=>e.getById(Sk(e)),kk=e=>e.getById(wk(e)),cd=e=>e.getById(Pk(e)),$k=(e,t)=>e.getById(Ek(e,t)),{and:Vn,not:wr,or:Tk}=Lr();Tk("isTriggerArrowDownEvent","isTriggerEnterEvent"),Vn(wr("multiple"),"hasSelectedItems"),wr("multiple"),Vn(wr("multiple"),"hasSelectedItems"),wr("multiple"),wr("multiple"),wr("multiple"),wr("multiple"),Vn("closeOnSelect","isOpenControlled"),Vn("hasHighlightedItem","loop","isLastItemHighlighted"),Vn("hasHighlightedItem","loop","isFirstItemHighlighted");function ud(e){var r;const t=e.restoreFocus??((r=e.previousEvent)==null?void 0:r.restoreFocus);return t==null||!!t}ce()(["closeOnSelect","collection","dir","disabled","deselectable","form","getRootNode","highlightedValue","id","ids","invalid","loopFocus","multiple","name","onFocusOutside","onHighlightChange","onInteractOutside","onOpenChange","onPointerDownOutside","onValueChange","defaultOpen","open","composite","positioning","required","readOnly","scrollToIndexFn","value","defaultValue","defaultHighlightedValue"]);ce()(["item","persistFocus"]);ce()(["id"]);ce()(["htmlFor"]);var Xh=oe("slider").parts("root","label","thumb","valueText","track","range","control","markerGroup","marker","draggingIndicator");Xh.build();ce()(["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"]);ce()(["index","name"]);var Zh=oe("switch").parts("root","label","control","thumb");Zh.build();ce()(["checked","defaultChecked","dir","disabled","form","getRootNode","id","ids","invalid","label","name","onCheckedChange","readOnly","required","value"]);var Jh=oe("tooltip").parts("trigger","arrow","arrowTip","positioner","content");Jh.build();var Rk=e=>{var t;return((t=e.ids)==null?void 0:t.trigger)??`tooltip:${e.id}:trigger`},Ok=e=>{var t;return((t=e.ids)==null?void 0:t.positioner)??`tooltip:${e.id}:popper`},Ka=e=>e.getById(Rk(e)),dd=e=>e.getById(Ok(e)),Er=Ih({id:null}),{and:Ik,not:fd}=Lr();Ik("noVisibleTooltip",fd("hasPointerMoveOpened")),fd("hasPointerMoveOpened");ce()(["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 Nk=(e,t)=>{var l;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=(l=t.raw(`opacity.${n}`))==null?void 0:l.value;if(!i&&isNaN(Number(n)))return{invalid:!0,value:r};const a=i?Number(i)*100+"%":`${n}%`,s=o??r;return{invalid:!1,color:s,value:`color-mix(in srgb, ${s} ${a}, transparent)`}},Pe=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 Os(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(r=>Os(r));const t=Object.create(Object.getPrototypeOf(e));for(const r of Object.keys(e))t[r]=Os(e[r]);return t}function Is(e,t){if(t==null)return e;for(const r of Object.keys(t))if(!(t[r]===void 0||r==="__proto__"))if(!rt(e[r])&&rt(t[r]))Object.assign(e,{[r]:t[r]});else if(e[r]&&rt(t[r]))Is(e[r],t[r]);else if(Array.isArray(t[r])&&Array.isArray(e[r])){let n=0;for(;n<t[r].length;n++)rt(e[r][n])&&rt(t[r][n])?Is(e[r][n],t[r][n]):e[r][n]=t[r][n]}else Object.assign(e,{[r]:t[r]});return e}function Pn(e,...t){for(const r of t)Is(e,r);return e}const Dk=e=>e,we=e=>e,J=e=>e,_k=e=>e,em=e=>e,tm=e=>e,rm=e=>e,nm=e=>e,om=e=>e;function im(){const e=t=>t;return new Proxy(e,{get(){return e}})}const de=im(),kn=im(),jl=e=>e,am=(...e)=>Pn({},...e.map(Os)),Ak=/[^a-zA-Z0-9_\u0081-\uffff-]/g;function Lk(e){return`${e}`.replace(Ak,t=>`\\${t}`)}const Mk=/[A-Z]/g;function Fk(e){return e.replace(Mk,t=>`-${t.toLowerCase()}`)}function sm(e,t={}){const{fallback:r="",prefix:n=""}=t,o=Fk(["-",n,Lk(e)].filter(Boolean).join("-"));return{var:o,ref:`var(${o}${r?`, ${r}`:""})`}}const zk=e=>/^var\(--.+\)$/.test(e),Be=(e,t)=>t!=null?`${e}(${t})`:t,Cr=e=>{if(zk(e)||e==null)return e;const t=typeof e=="string"&&!e.endsWith("deg");return typeof e=="number"||t?`${e}deg`:e},pd=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]??{}}}),Vk=Pe("borderColor"),Kt=e=>({transition:e,transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}),Bk=Dk({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"}),sn=sm("bg-currentcolor"),gd=e=>e===sn.ref||e==="currentBg",Ce=e=>({...e("colors"),currentBg:sn}),lm=jl({conditions:Bk,utilities:{background:{values:Ce,shorthand:["bg"],transform(e,t){if(gd(t.raw))return{background:sn.ref};const r=Pe("background")(e,t);return{...r,[sn.var]:r==null?void 0:r.background}}},backgroundColor:{values:Ce,shorthand:["bgColor"],transform(e,t){if(gd(t.raw))return{backgroundColor:sn.ref};const r=Pe("backgroundColor")(e,t);return{...r,[sn.var]:r==null?void 0: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:Ce,transform:Pe("--gradient-from")},gradientTo:{values:Ce,transform:Pe("--gradient-to")},gradientVia:{values:Ce,transform(e,t){return{...Pe("--gradient-via")(e,t),"--gradient-via-stops":"var(--gradient-from), var(--gradient-via), var(--gradient-to)"}}},backgroundImage:{values(e){return{...e("gradients"),...e("assets")}},shorthand:["bgImg","bgImage"]},border:{values:"borders"},borderTop:{values:"borders"},borderLeft:{values:"borders"},borderBlockStart:{values:"borders"},borderRight:{values:"borders"},borderBottom:{values:"borders"},borderBlockEnd:{values:"borders"},borderInlineStart:{values:"borders",shorthand:["borderStart"]},borderInlineEnd:{values:"borders",shorthand:["borderEnd"]},borderInline:{values:"borders",shorthand:["borderX"]},borderBlock:{values:"borders",shorthand:["borderY"]},borderColor:{values:Ce,transform:Pe("borderColor")},borderTopColor:{values:Ce,transform:Pe("borderTopColor")},borderBlockStartColor:{values:Ce,transform:Pe("borderBlockStartColor")},borderBottomColor:{values:Ce,transform:Pe("borderBottomColor")},borderBlockEndColor:{values:Ce,transform:Pe("borderBlockEndColor")},borderLeftColor:{values:Ce,transform:Pe("borderLeftColor")},borderInlineStartColor:{values:Ce,shorthand:["borderStartColor"],transform:Pe("borderInlineStartColor")},borderRightColor:{values:Ce,transform:Pe("borderRightColor")},borderInlineEndColor:{values:Ce,shorthand:["borderEndColor"],transform:Pe("borderInlineEndColor")},borderStyle:{values:"borderStyles"},borderTopStyle:{values:"borderStyles"},borderBlockStartStyle:{values:"borderStyles"},borderBottomStyle:{values:"borderStyles"},borderBlockEndStyle:{values:"borderStyles"},borderInlineStartStyle:{values:"borderStyles",shorthand:["borderStartStyle"]},borderInlineEndStyle:{values:"borderStyles",shorthand:["borderEndStyle"]},borderLeftStyle:{values:"borderStyles"},borderRightStyle:{values:"borderStyles"},borderRadius:{values:"radii",shorthand:["rounded"]},borderTopLeftRadius:{values:"radii",shorthand:["roundedTopLeft"]},borderStartStartRadius:{values:"radii",shorthand:["roundedStartStart","borderTopStartRadius"]},borderEndStartRadius:{values:"radii",shorthand:["roundedEndStart","borderBottomStartRadius"]},borderTopRightRadius:{values:"radii",shorthand:["roundedTopRight"]},borderStartEndRadius:{values:"radii",shorthand:["roundedStartEnd","borderTopEndRadius"]},borderEndEndRadius:{values:"radii",shorthand:["roundedEndEnd","borderBottomEndRadius"]},borderBottomLeftRadius:{values:"radii",shorthand:["roundedBottomLeft"]},borderBottomRightRadius:{values:"radii",shorthand:["roundedBottomRight"]},borderInlineStartRadius:{values:"radii",property:"borderRadius",shorthand:["roundedStart","borderStartRadius"],transform:e=>({borderStartStartRadius:e,borderEndStartRadius:e})},borderInlineEndRadius:{values:"radii",property:"borderRadius",shorthand:["roundedEnd","borderEndRadius"],transform:e=>({borderStartEndRadius:e,borderEndEndRadius:e})},borderTopRadius:{values:"radii",property:"borderRadius",shorthand:["roundedTop"],transform:e=>({borderTopLeftRadius:e,borderTopRightRadius:e})},borderBottomRadius:{values:"radii",property:"borderRadius",shorthand:["roundedBottom"],transform:e=>({borderBottomLeftRadius:e,borderBottomRightRadius:e})},borderLeftRadius:{values:"radii",property:"borderRadius",shorthand:["roundedLeft"],transform:e=>({borderTopLeftRadius:e,borderBottomLeftRadius:e})},borderRightRadius:{values:"radii",property:"borderRadius",shorthand:["roundedRight"],transform:e=>({borderTopRightRadius:e,borderBottomRightRadius:e})},borderWidth:{values:"borderWidths"},borderBlockStartWidth:{values:"borderWidths"},borderTopWidth:{values:"borderWidths"},borderBottomWidth:{values:"borderWidths"},borderBlockEndWidth:{values:"borderWidths"},borderRightWidth:{values:"borderWidths"},borderInlineWidth:{values:"borderWidths",shorthand:["borderXWidth"]},borderInlineStartWidth:{values:"borderWidths",shorthand:["borderStartWidth"]},borderInlineEndWidth:{values:"borderWidths",shorthand:["borderEndWidth"]},borderLeftWidth:{values:"borderWidths"},borderBlockWidth:{values:"borderWidths",shorthand:["borderYWidth"]},color:{values:Ce,transform:Pe("color")},fill:{values:Ce,transform:Pe("fill")},stroke:{values:Ce,transform:Pe("stroke")},accentColor:{values:Ce,transform:Pe("accentColor")},divideX:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderInlineStartWidth:e,borderInlineEndWidth:"0px"}}}},divideY:{values:{type:"string"},transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderTopWidth:e,borderBottomWidth:"0px"}}}},divideColor:{values:Ce,transform(e,t){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":Vk(e,t)}}},divideStyle:{property:"borderStyle",transform(e){return{"& > :not(style, [hidden]) ~ :not(style, [hidden])":{borderStyle:e}}}},boxShadow:{values:"shadows",shorthand:["shadow"]},boxShadowColor:{values:Ce,transform:Pe("--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":Be("blur",e)})},brightness:{transform:e=>({"--brightness":Be("brightness",e)})},contrast:{transform:e=>({"--contrast":Be("contrast",e)})},grayscale:{transform:e=>({"--grayscale":Be("grayscale",e)})},hueRotate:{transform:e=>({"--hue-rotate":Be("hue-rotate",Cr(e))})},invert:{transform:e=>({"--invert":Be("invert",e)})},saturate:{transform:e=>({"--saturate":Be("saturate",e)})},sepia:{transform:e=>({"--sepia":Be("sepia",e)})},dropShadow:{transform:e=>({"--drop-shadow":Be("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":Be("blur",e)})},backdropBrightness:{transform:e=>({"--backdrop-brightness":Be("brightness",e)})},backdropContrast:{transform:e=>({"--backdrop-contrast":Be("contrast",e)})},backdropGrayscale:{transform:e=>({"--backdrop-grayscale":Be("grayscale",e)})},backdropHueRotate:{transform:e=>({"--backdrop-hue-rotate":Be("hue-rotate",Cr(e))})},backdropInvert:{transform:e=>({"--backdrop-invert":Be("invert",e)})},backdropOpacity:{transform:e=>({"--backdrop-opacity":Be("opacity",e)})},backdropSaturate:{transform:e=>({"--backdrop-saturate":Be("saturate",e)})},backdropSepia:{transform:e=>({"--backdrop-sepia":Be("sepia",e)})},flexBasis:{values:"sizes"},gap:{values:"spacing"},rowGap:{values:"spacing",shorthand:["gapY"]},columnGap:{values:"spacing",shorthand:["gapX"]},flexDirection:{shorthand:["flexDir"]},gridGap:{values:"spacing"},gridColumnGap:{values:"spacing"},gridRowGap:{values:"spacing"},outlineColor:{values:Ce,transform:Pe("outlineColor")},focusRing:pd("&:is(:focus, [data-focus])"),focusVisibleRing:pd("&:is(:focus-visible, [data-focus-visible])"),focusRingColor:{values:Ce,transform:Pe("--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:Ce,transform:Pe("scrollbarColor")},scrollbarGutter:{values:"spacing"},scrollbarWidth:{values:"sizes"},scrollMargin:{values:"spacing"},scrollMarginTop:{values:"spacing"},scrollMarginBottom:{values:"spacing"},scrollMarginLeft:{values:"spacing"},scrollMarginRight:{values:"spacing"},scrollMarginX:{values:"spacing",transform:e=>({scrollMarginLeft:e,scrollMarginRight:e})},scrollMarginY:{values:"spacing",transform:e=>({scrollMarginTop:e,scrollMarginBottom:e})},scrollPadding:{values:"spacing"},scrollPaddingTop:{values:"spacing"},scrollPaddingBottom:{values:"spacing"},scrollPaddingLeft:{values:"spacing"},scrollPaddingRight:{values:"spacing"},scrollPaddingInline:{values:"spacing",shorthand:["scrollPaddingX"]},scrollPaddingBlock:{values:"spacing",shorthand:["scrollPaddingY"]},scrollSnapType:{values:{none:"none",x:"x var(--scroll-snap-strictness)",y:"y var(--scroll-snap-strictness)",both:"both var(--scroll-snap-strictness)"}},scrollSnapStrictness:{values:["mandatory","proximity"],transform:e=>({"--scroll-snap-strictness":e})},scrollSnapMargin:{values:"spacing"},scrollSnapMarginTop:{values:"spacing"},scrollSnapMarginBottom:{values:"spacing"},scrollSnapMarginLeft:{values:"spacing"},scrollSnapMarginRight:{values:"spacing"},listStylePosition:{shorthand:["listStylePos"]},listStyleImage:{values:"assets",shorthand:["listStyleImg"]},position:{shorthand:["pos"]},zIndex:{values:"zIndex"},inset:{values:"spacing"},insetInline:{values:"spacing",shorthand:["insetX"]},insetBlock:{values:"spacing",shorthand:["insetY"]},top:{values:"spacing"},insetBlockStart:{values:"spacing"},bottom:{values:"spacing"},insetBlockEnd:{values:"spacing"},left:{values:"spacing"},right:{values:"spacing"},insetInlineStart:{values:"spacing",shorthand:["insetStart"]},insetInlineEnd:{values:"spacing",shorthand:["insetEnd"]},ring:{transform(e){return{"--ring-offset-shadow":"var(--ring-inset) 0 0 0 var(--ring-offset-width) var(--ring-offset-color)","--ring-shadow":"var(--ring-inset) 0 0 0 calc(var(--ring-width) + var(--ring-offset-width)) var(--ring-color)","--ring-width":e,boxShadow:"var(--ring-offset-shadow), var(--ring-shadow), var(--shadow, 0 0 #0000)"}}},ringColor:{values:Ce,transform:Pe("--ring-color")},ringOffset:{transform:e=>({"--ring-offset-width":e})},ringOffsetColor:{values:Ce,transform:Pe("--ring-offset-color")},ringInset:{transform:e=>({"--ring-inset":e})},margin:{values:"spacing",shorthand:["m"]},marginTop:{values:"spacing",shorthand:["mt"]},marginBlockStart:{values:"spacing"},marginRight:{values:"spacing",shorthand:["mr"]},marginBottom:{values:"spacing",shorthand:["mb"]},marginBlockEnd:{values:"spacing"},marginLeft:{values:"spacing",shorthand:["ml"]},marginInlineStart:{values:"spacing",shorthand:["ms","marginStart"]},marginInlineEnd:{values:"spacing",shorthand:["me","marginEnd"]},marginInline:{values:"spacing",shorthand:["mx","marginX"]},marginBlock:{values:"spacing",shorthand:["my","marginY"]},padding:{values:"spacing",shorthand:["p"]},paddingTop:{values:"spacing",shorthand:["pt"]},paddingRight:{values:"spacing",shorthand:["pr"]},paddingBottom:{values:"spacing",shorthand:["pb"]},paddingBlockStart:{values:"spacing"},paddingBlockEnd:{values:"spacing"},paddingLeft:{values:"spacing",shorthand:["pl"]},paddingInlineStart:{values:"spacing",shorthand:["ps","paddingStart"]},paddingInlineEnd:{values:"spacing",shorthand:["pe","paddingEnd"]},paddingInline:{values:"spacing",shorthand:["px","paddingX"]},paddingBlock:{values:"spacing",shorthand:["py","paddingY"]},textDecoration:{shorthand:["textDecor"]},textDecorationColor:{values:Ce,transform:Pe("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":Cr(e)})},skewY:{transform:e=>({"--skew-y":Cr(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:Cr(e)}:{rotate:"var(--rotate-x, 0) var(--rotate-y, 0) var(--rotate-z, 0)"}}},rotateX:{transform(e){return{"--rotate-x":Cr(e)}}},rotateY:{transform(e){return{"--rotate-y":Cr(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 Kt("all");case"position":return Kt("left, right, top, bottom, inset-inline, inset-block");case"colors":return Kt("color, background-color, border-color, text-decoration-color, fill, stroke");case"opacity":return Kt("opacity");case"shadow":return Kt("box-shadow");case"transform":return Kt("transform");case"size":return Kt("width, height");case"backgrounds":return Kt("background, background-color, background-image, background-position");case"common":return Kt("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"}}},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:Ce,transform:Pe("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 Hk="",Kk=Hk.split(","),jk="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",Uk=jk.split(",").concat(Kk),Gk=new Map(Uk.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 qk=/&|@/,Xk=Yk(e=>Gk.has(e)||e.startsWith("--")||qk.test(e));const Zk=e=>e!=null;function Jt(e,t,r={}){const{stop:n,getKey:o}=r;function i(a,s=[]){if(rt(a)||Array.isArray(a)){const l={};for(const[c,d]of Object.entries(a)){const f=(o==null?void 0:o(c,d))??c,u=[...s,f];if(n!=null&&n(a,u))return t(a,s);const p=i(d,u);Zk(p)&&(l[f]=p)}return l}return t(a,s)}return i(e)}function Ut(e,t){return Array.isArray(e)?e.map(r=>t(r)):rt(e)?Jt(e,r=>t(r)):e!=null?t(e):e}function Jk(e,t){const r={};return Jt(e,(n,o)=>{n&&(r[o.join(".")]=n.value)},{stop:t}),r}var ja,hd;function Qk(){if(hd)return ja;hd=1,ja=i,i.default=i,i.stable=c,i.stableStringify=c;var e="[...]",t="[Circular]",r=[],n=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(u,p,h,m){typeof m>"u"&&(m=o()),s(u,"",0,[],void 0,0,m);var v;try{n.length===0?v=JSON.stringify(u,p,h):v=JSON.stringify(u,f(p),h)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var x=r.pop();x.length===4?Object.defineProperty(x[0],x[1],x[3]):x[0][x[1]]=x[2]}}return v}function a(u,p,h,m){var v=Object.getOwnPropertyDescriptor(m,h);v.get!==void 0?v.configurable?(Object.defineProperty(m,h,{value:u}),r.push([m,h,p,v])):n.push([p,h,u]):(m[h]=u,r.push([m,h,p]))}function s(u,p,h,m,v,x,E){x+=1;var P;if(typeof u=="object"&&u!==null){for(P=0;P<m.length;P++)if(m[P]===u){a(t,u,p,v);return}if(typeof E.depthLimit<"u"&&x>E.depthLimit){a(e,u,p,v);return}if(typeof E.edgesLimit<"u"&&h+1>E.edgesLimit){a(e,u,p,v);return}if(m.push(u),Array.isArray(u))for(P=0;P<u.length;P++)s(u[P],P,P,m,u,x,E);else{var T=Object.keys(u);for(P=0;P<T.length;P++){var C=T[P];s(u[C],C,P,m,u,x,E)}}m.pop()}}function l(u,p){return u<p?-1:u>p?1:0}function c(u,p,h,m){typeof m>"u"&&(m=o());var v=d(u,"",0,[],void 0,0,m)||u,x;try{n.length===0?x=JSON.stringify(v,p,h):x=JSON.stringify(v,f(p),h)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var E=r.pop();E.length===4?Object.defineProperty(E[0],E[1],E[3]):E[0][E[1]]=E[2]}}return x}function d(u,p,h,m,v,x,E){x+=1;var P;if(typeof u=="object"&&u!==null){for(P=0;P<m.length;P++)if(m[P]===u){a(t,u,p,v);return}try{if(typeof u.toJSON=="function")return}catch{return}if(typeof E.depthLimit<"u"&&x>E.depthLimit){a(e,u,p,v);return}if(typeof E.edgesLimit<"u"&&h+1>E.edgesLimit){a(e,u,p,v);return}if(m.push(u),Array.isArray(u))for(P=0;P<u.length;P++)d(u[P],P,P,m,u,x,E);else{var T={},C=Object.keys(u).sort(l);for(P=0;P<C.length;P++){var k=C[P];d(u[k],k,P,m,u,x,E),T[k]=u[k]}if(typeof v<"u")r.push([v,p,u]),v[p]=T;else return T}m.pop()}}function f(u){return u=typeof u<"u"?u:function(p,h){return h},function(p,h){if(n.length>0)for(var m=0;m<n.length;m++){var v=n[m];if(v[1]===p&&v[0]===h){h=v[2],n.splice(m,1);break}}return u.call(this,p,h)}}return ja}var e$=Qk();const t$=Hi(e$),kt=e=>{const t=Object.create(null);function r(...n){const o=n.map(i=>t$(i)).join("|");return t[o]===void 0&&(t[o]=e(...n)),t[o]}return r},cm=16,Ni="px",Ul="em",to="rem";function um(e=""){const t=new RegExp(String.raw`-?\d+(?:\.\d+|\d*)`),r=new RegExp(`${Ni}|${Ul}|${to}`),n=e.match(new RegExp(`${t.source}(${r.source})`));return n==null?void 0:n[1]}function dm(e=""){if(typeof e=="number")return`${e}px`;const t=um(e);if(!t||t===Ni)return e;if(t===Ul||t===to)return`${parseFloat(e)*cm}${Ni}`}function fm(e=""){const t=um(e);if(!t||t===to)return e;if(t===Ul)return`${parseFloat(e)}${to}`;if(t===Ni)return`${parseFloat(e)/cm}${to}`}const r$=e=>e.charAt(0).toUpperCase()+e.slice(1);function n$(e){const t=o$(e),r=Object.fromEntries(t);function n(u){return r[u]}function o(u){return Zr(n(u))}function i(){const u=Object.keys(r),p=i$(u),h=u.flatMap(m=>{const v=n(m),x=[`${m}Down`,Zr({max:gi(v.min)})],E=[m,Zr({min:v.min})],P=[`${m}Only`,o(m)];return[E,P,x]}).filter(([,m])=>m!=="").concat(p.map(([m,v])=>{const x=n(m),E=n(v);return[`${m}To${r$(v)}`,Zr({min:x.min,max:gi(E.min)})]}));return Object.fromEntries(h)}function a(){const u=i();return Object.fromEntries(Object.entries(u))}const s=a(),l=u=>s[u];function c(){return["base",...Object.keys(r)]}function d(u){return Zr({min:n(u).min})}function f(u){return Zr({max:gi(n(u).min)})}return{values:Object.values(r),only:o,keys:c,conditions:s,getCondition:l,up:d,down:f}}function gi(e){const t=parseFloat(dm(e)??"")-.04;return fm(`${t}px`)}function o$(e){return Object.entries(e).sort(([,r],[,n])=>parseInt(r,10)<parseInt(n,10)?-1:1).map(([r,n],o,i)=>{var s;let a=null;return o<=i.length-1&&(a=(s=i[o+1])==null?void 0:s[1]),a!=null&&(a=gi(a)),[r,{name:r,min:fm(n),max:a}]})}function i$(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 Zr({min:e,max:t}){return e==null&&t==null?"":["@media screen",e&&`(min-width: ${e})`,t&&`(max-width: ${t})`].filter(Boolean).join(" and ")}const a$=(e,t)=>Object.fromEntries(Object.entries(e).map(([r,n])=>t(r,n))),s$=e=>{const{breakpoints:t,conditions:r={}}=e,n=a$(r,(d,f)=>[`_${d}`,f]),o=Object.assign({},n,t.conditions);function i(){return Object.keys(o)}function a(d){return i().includes(d)||/^@|&|&$/.test(d)||d.startsWith("_")}function s(d){return d.filter(f=>f!=="base").sort((f,u)=>{const p=a(f),h=a(u);return p&&!h?1:!p&&h?-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:s,has:a,resolve:c,breakpoints:t.keys(),expandAtRule:l}},pm=e=>({minMax:new RegExp(`(!?\\(\\s*min(-device-)?-${e})(.|
92
+ )+\\(\\s*max(-device)?-${e}`,"i"),min:new RegExp(`\\(\\s*min(-device)?-${e}`,"i"),maxMin:new RegExp(`(!?\\(\\s*max(-device)?-${e})(.|
93
+ )+\\(\\s*min(-device)?-${e}`,"i"),max:new RegExp(`\\(\\s*max(-device)?-${e}`,"i")}),l$=pm("width"),c$=pm("height"),gm=e=>({isMin:Sd(e.minMax,e.maxMin,e.min),isMax:Sd(e.maxMin,e.minMax,e.max)}),{isMin:Ns,isMax:md}=gm(l$),{isMin:Ds,isMax:vd}=gm(c$),bd=/print/i,yd=/^print$/i,u$=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/,d$=/(\d)/,Yn=Number.MAX_VALUE,f$={ch:8.8984375,em:16,rem:16,ex:8.296875,px:1};function xd(e){const t=u$.exec(e)||(Ns(e)||Ds(e)?d$.exec(e):null);if(!t)return Yn;if(t[0]==="0")return 0;const r=parseFloat(t[1]),n=t[2];return r*(f$[n]||1)}function Sd(e,t,r){return n=>e.test(n)||!t.test(n)&&r.test(n)}function p$(e,t){const r=bd.test(e),n=yd.test(e),o=bd.test(t),i=yd.test(t);return r&&o?!n&&i?1:n&&!i?-1:e.localeCompare(t):r?1:o?-1:null}const g$=kt((e,t)=>{const r=p$(e,t);if(r!==null)return r;const n=Ns(e)||Ds(e),o=md(e)||vd(e),i=Ns(t)||Ds(t),a=md(t)||vd(t);if(n&&a)return-1;if(o&&i)return 1;const s=xd(e),l=xd(t);return s===Yn&&l===Yn?e.localeCompare(t):s===Yn?1:l===Yn?-1:s!==l?s>l?o?-1:1:o?1:-1:e.localeCompare(t)});function wd(e){return e.sort(([t],[r])=>g$(t,r))}function hm(e){const t=[],r=[],n={};for(const[a,s]of Object.entries(e))a.startsWith("@media")?t.push([a,s]):a.startsWith("@container")?r.push([a,s]):rt(s)?n[a]=hm(s):n[a]=s;const o=wd(t),i=wd(r);return{...n,...Object.fromEntries(o),...Object.fromEntries(i)}}const mm=/\s*!(important)?/i,h$=e=>Mt(e)?mm.test(e):!1,m$=e=>Mt(e)?e.replace(mm,"").trim():e;function vm(e){const{transform:t,conditions:r,normalize:n}=e,o=y$(e);return kt(function(...a){const s=o(...a),l=n(s),c=Object.create(null);return Jt(l,(d,f)=>{const u=h$(d);if(d==null)return;const[p,...h]=r.sort(f).map(r.resolve);u&&(d=m$(d));let m=t(p,d)??Object.create(null);m=Jt(m,v=>Mt(v)&&u?`${v} !important`:v,{getKey:v=>r.expandAtRule(v)}),v$(c,h.flat(),m)}),hm(c)})}function v$(e,t,r){let n=e;for(const o of t)o&&(n[o]||(n[o]=Object.create(null)),n=n[o]);Pn(n,r)}function b$(...e){return e.filter(t=>rt(t)&&Object.keys(wn(t)).length>0)}function y$(e){function t(r){const n=b$(...r);return n.length===1?n:n.map(o=>e.normalize(o))}return kt(function(...n){return Pn({},...t(n))})}const x$=(...e)=>{const t=e.filter(Boolean);return Array.from(new Set(t))},bm=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function S$(e){const{css:t,conditions:r,normalize:n,layers:o}=e;function i(s={}){const{base:l,variants:c,defaultVariants:d,compoundVariants:f}=bm(s),u=vm({conditions:r,normalize:n,transform(E,P){var T;return(T=c[E])==null?void 0:T[P]}}),p=(E={})=>{const P=n({...d,...wn(E)});let T={...l};Pn(T,u(P));const C=a(f,P);return o.wrap("recipes",t(T,C))},h=Object.keys(c),m=E=>{const P=Qh(E,["recipe"]),[T,C]=dn(P,h);return h.includes("colorPalette")||(T.colorPalette=E.colorPalette||d.colorPalette),h.includes("orientation")&&(C.orientation=E.orientation),[T,C]},v=Object.fromEntries(Object.entries(c).map(([E,P])=>[E,Object.keys(P)]));return Object.assign(E=>t(p(E)),{className:s.className,__cva__:!0,variantMap:v,variantKeys:h,raw:p,config:s,splitVariantProps:m,merge(E){return i(w$(e)(this,E))}})}function a(s,l){let c={};return s.forEach(d=>{Object.entries(d).every(([u,p])=>u==="css"?!0:(Array.isArray(p)?p:[p]).some(m=>l[u]===m))&&(c=t(c,d.css))}),c}return i}function w$(e){const{css:t}=e;return function(n,o){const i=bm(o.config),a=x$(n.variantKeys,Object.keys(o.variants)),s=t(n.base,i.base),l=Object.fromEntries(a.map(u=>[u,t(n.config.variants[u],i.variants[u])])),c=Pn(n.config.defaultVariants,i.defaultVariants),d=[...n.compoundVariants,...i.compoundVariants];return{className:yt(n.className,o.className),base:s,variants:l,defaultVariants:c,compoundVariants:d}}}const E$={reset:"reset",base:"base",tokens:"tokens",recipes:"recipes"},Ed={reset:0,base:1,tokens:2,recipes:3};function C$(e){const t=e.layers??E$,n=Object.values(t).sort((o,i)=>Ed[o]-Ed[i]);return{names:n,atRule:`@layer ${n.join(", ")};`,wrap(o,i){return e.disableLayers?i:{[`@layer ${t[o]}`]:i}}}}function P$(e){const{utility:t,normalize:r}=e,{hasShorthand:n,resolveShorthand:o}=t;return function(i){return Jt(i,r,{stop:a=>Array.isArray(a),getKey:n?o:void 0})}}function k$(e){const{preflight:t}=e;if(!t)return{};const{scope:r="",level:n="parent"}=rt(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"}},a={[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 s=Object.entries(i).reduce((l,[c,d])=>(l[c]={[o]:d},l),{});Object.assign(a,s)}else o?a[o]=i:Object.assign(a,i);return a}function $$(e){const{conditions:t,isValidProperty:r}=e;return function(o){return Jt(o,i=>i,{getKey:(i,a)=>rt(a)&&!t.has(i)&&!r(i)?T$(i).map(s=>"&"+s).join(", "):i})}}function T$(e){const t=[];let r=0,n="",o=!1;for(let i=0;i<e.length;i++){const a=e[i];if(a==="\\"&&!o){o=!0,n+=a;continue}if(o){o=!1,n+=a;continue}a==="("?r++:a===")"&&r--,a===","&&r===0?(t.push(n.trim()),n=""):n+=a}return n&&t.push(n.trim()),t}const R$=(e={})=>{const t=o=>{var i;return{base:((i=e.base)==null?void 0:i[o])??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?O$(e.compoundVariants,o):[]}},n=(e.slots??[]).map(o=>[o,t(o)]);for(const[o,i]of Object.entries(e.variants??{}))for(const[a,s]of Object.entries(i))n.forEach(([l,c])=>{var d;(d=c.variants)[o]??(d[o]={}),c.variants[o][a]=s[l]??{}});return Object.fromEntries(n)},O$=(e,t)=>e.filter(r=>r.css[t]).map(r=>({...r,css:r.css[t]}));function I$(e){const{cva:t}=e;return function(n={}){const o=Object.entries(R$(n)).map(([f,u])=>[f,t(u)]);function i(f){const u=o.map(([p,h])=>[p,h(f)]);return Object.fromEntries(u)}const a=n.variants??{},s=Object.keys(a);function l(f){var m;const u=Qh(f,["recipe"]),[p,h]=dn(u,s);return s.includes("colorPalette")||(p.colorPalette=f.colorPalette||((m=n.defaultVariants)==null?void 0:m.colorPalette)),s.includes("orientation")&&(h.orientation=f.orientation),[p,h]}const c=Object.fromEntries(Object.entries(a).map(([f,u])=>[f,Object.keys(u)]));let d={};return n.className&&(d=Object.fromEntries(n.slots.map(f=>[f,`${n.className}__${f}`]))),Object.assign(i,{variantMap:c,variantKeys:s,splitVariantProps:l,classNameMap:d})}}const N$=()=>e=>Array.from(new Set(e)),D$=/([\0-\x1f\x7f]|^-?\d)|^-$|^-|[^\x80-\uFFFF\w-]/g,_$=function(e,t){return t?e==="\0"?"�":e==="-"&&e.length===1?"\\-":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16):"\\"+e},ym=e=>(e+"").replace(D$,_$),xm=(e,t)=>{let r="",n=0,o="char",i="",a="";const s=[];for(;n<e.length;){const l=e[n];if(l==="{"){const d=e.indexOf("}",n);if(d===-1)break;const f=e.slice(n+1,d),u=t(f);r+=u??f,n=d+1;continue}if(o==="token"&&l===","){e[n]===""&&n++,o="fallback",s.push(o);const d=t(i);d!=null&&d.endsWith(")")&&(r+=d.slice(0,-1)),i="",a="";continue}if(o==="fallback"&&a+l===", var("){const u=A$(e.slice(n+1))+n+1,p=e.slice(n+1,u);if(u===-1)break;r+=", var("+p+")",n=u+1,o=s.pop()??o,a="";continue}if(o==="token"||o==="fallback"){if(n++,l===")"){o=s.pop()??o??"char",a+=l;const d=i&&(t(i)??ym(i));if(a){if(a=a.slice(1).trim(),!a.startsWith("token(")&&a.endsWith(")")&&(a=a.slice(0,-1)),a.includes("token(")){const u=xm(a,t);u&&(a=u.slice(0,-1))}else if(a){const u=t(a);u&&(a=u)}}const f=r.at(-1);a?f!=null&&f.trim()?r+=d.slice(0,-1)+(", "+a+")"):r+=a:r+=d||")",i="",a="",o="char";continue}o==="token"&&(i+=l),o==="fallback"&&(a+=l);continue}const c=e.indexOf("token(",n);if(c!==-1){const d=c+6;r+=e.slice(n,c),n=d,o="token",s.push(o);continue}r+=l,n++}return r},A$=e=>{let t=0;const r=["("];for(;t<e.length;){const n=e[t];if(n==="(")r.push(n);else if(n===")"&&(r.pop(),r.length===0))return t;t++}return t};function Sm(e){const t={};return e.forEach((r,n)=>{r instanceof Map?t[n]=Object.fromEntries(r):t[n]=r}),t}const wm=/({([^}]*)})/g,L$=/[{}]/g,M$=/\w+\.\w+/,Em=e=>{if(!Mt(e))return[];const t=e.match(wm);return t?t.map(r=>r.replace(L$,"")).map(r=>r.trim()):[]},F$=e=>wm.test(e);function Cm(e){var r,n,o;if(!((r=e.extensions)!=null&&r.references))return((o=(n=e.extensions)==null?void 0:n.cssVar)==null?void 0:o.ref)??e.value;const t=e.extensions.references??{};return e.value=Object.keys(t).reduce((i,a)=>{const s=t[a];if(s.extensions.conditions)return i;const l=Cm(s);return i.replace(`{${a}}`,l)},e.value),delete e.extensions.references,e.value}function Pm(e){return rt(e)&&e.reference?e.reference:String(e)}const oa=(e,...t)=>t.map(Pm).join(` ${e} `).replace(/calc/g,""),Cd=(...e)=>`calc(${oa("+",...e)})`,Pd=(...e)=>`calc(${oa("-",...e)})`,_s=(...e)=>`calc(${oa("*",...e)})`,kd=(...e)=>`calc(${oa("/",...e)})`,$d=e=>{const t=Pm(e);return t!=null&&!Number.isNaN(parseFloat(t))?String(t).startsWith("-")?String(t).slice(1):`-${t}`:_s(t,-1)},tn=Object.assign(e=>({add:(...t)=>tn(Cd(e,...t)),subtract:(...t)=>tn(Pd(e,...t)),multiply:(...t)=>tn(_s(e,...t)),divide:(...t)=>tn(kd(e,...t)),negate:()=>tn($d(e)),toString:()=>e.toString()}),{add:Cd,subtract:Pd,multiply:_s,divide:kd,negate:$d}),z$={enforce:"pre",transform(e){const{prefix:t,allTokens:r,formatCssVar:n,formatTokenName:o,registerToken:i}=e;r.filter(({extensions:s})=>s.category==="spacing").forEach(s=>{const l=s.path.slice(),c=n(l,t);if(Mt(s.value)&&s.value==="0rem")return;const d=structuredClone(s);Object.assign(d.extensions,{negative:!0,prop:`-${s.extensions.prop}`,originalPath:l}),d.value=tn.negate(c.ref);const f=d.path[d.path.length-1];f!=null&&(d.path[d.path.length-1]=`-${f}`),d.path&&(d.name=o(d.path)),i(d)})}},V$=new Set(["spacing","sizes","borderWidths","fontSizes","radii"]),B$={enforce:"post",transform(e){e.allTokens.filter(r=>V$.has(r.extensions.category)&&!r.extensions.negative).forEach(r=>{Object.assign(r.extensions,{pixelValue:dm(r.value)})})}},W$={enforce:"post",transform(e){const{allTokens:t,registerToken:r,formatTokenName:n}=e,o=t.filter(({extensions:s})=>s.category==="colors"),i=new Map,a=new Map;o.forEach(s=>{const{colorPalette:l}=s.extensions;l&&(l.keys.forEach(c=>{i.set(n(c),c)}),l.roots.forEach(c=>{var u;const d=n(c),f=a.get(d)||[];if(f.push(s),a.set(d,f),s.extensions.default&&c.length===1){const p=(u=l.keys[0])==null?void 0:u.filter(Boolean);if(!p.length)return;const h=c.concat(p);i.set(n(h),[])}}))}),i.forEach(s=>{const l=["colors","colorPalette",...s].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")})}},H$={enforce:"post",transform(e){e.allTokens=e.allTokens.filter(t=>t.value!=="")}},K$=[z$,W$,B$,H$],j$={type:"extensions",enforce:"pre",name:"tokens/css-var",transform(e,t){const{prefix:r,formatCssVar:n}=t,{negative:o,originalPath:i}=e.extensions,a=o?i:e.path;return{cssVar:n(a.filter(Boolean),r)}}},U$={enforce:"post",type:"value",name:"tokens/conditionals",transform(e,t){const{prefix:r,formatCssVar:n}=t,o=Em(e.value);return o.length&&o.forEach(i=>{const a=n(i.split("."),r);e.value=e.value.replace(`{${a.ref}}`,a)}),e.value}},G$={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 s=[...e.path];s.shift(),r=s}if(r.length===0)return{};const n=r.reduce((s,l,c,d)=>{const f=d.slice(0,c+1);return s.push(f),s},[]),o=r[0],i=t.formatTokenName(r),a=e.path.slice(e.path.indexOf(o)+1).reduce((s,l,c,d)=>(s.push(d.slice(c)),s),[]);return a.length===0&&a.push([""]),{colorPalette:{value:i,roots:n,keys:a}}}},Y$=[j$,U$,G$],Td=e=>rt(e)&&Object.prototype.hasOwnProperty.call(e,"value");function q$(e){return e?{breakpoints:Ut(e,t=>({value:t})),sizes:Object.fromEntries(Object.entries(e).map(([t,r])=>[`breakpoint-${t}`,{value:r}]))}:{breakpoints:{},sizes:{}}}function X$(e){const{prefix:t="",tokens:r={},semanticTokens:n={},breakpoints:o={}}=e,i=B=>B.join("."),a=(B,H)=>sm(B.join("-"),{prefix:H}),s=[],l=new Map,c=new Map,d=new Map,f=new Map,u=new Map,p=new Map,h=new Map,m=new Map,v=[];function x(B,H){s.push(B),l.set(B.name,B),H&&m.forEach(ne=>{ne.enforce===H&&y(ne,B)})}const E=q$(o),P=wn({...r,breakpoints:E.breakpoints,sizes:{...r.sizes,...E.sizes}});function T(){Jt(P,(B,H)=>{const ne=H.includes("DEFAULT");H=Rd(H);const q=H[0],U=i(H),ge=Mt(B)?{value:B}:B,_e={value:ge.value,originalValue:ge.value,name:U,path:H,extensions:{condition:"base",originalPath:H,category:q,prop:i(H.slice(1))}};ne&&(_e.extensions.default=!0),x(_e)},{stop:Td}),Jt(n,(B,H)=>{const ne=H.includes("DEFAULT");H=km(Rd(H));const q=H[0],U=i(H),ge=Mt(B.value)?{value:{base:B.value}}:B,_e={value:ge.value.base||"",originalValue:ge.value.base||"",name:U,path:H,extensions:{originalPath:H,category:q,conditions:ge.value,condition:"base",prop:i(H.slice(1))}};ne&&(_e.extensions.default=!0),x(_e)},{stop:Td})}function C(B){return l.get(B)}function k(B){const{condition:H}=B.extensions;H&&(c.has(H)||c.set(H,new Set),c.get(H).add(B))}function D(B){const{category:H,prop:ne}=B.extensions;H&&(h.has(H)||h.set(H,new Map),h.get(H).set(ne,B))}function R(B){const{condition:H,negative:ne,virtual:q,cssVar:U}=B.extensions;ne||q||!H||!U||(d.has(H)||d.set(H,new Map),d.get(H).set(U.var,B.value))}function _(B){const{category:H,prop:ne,cssVar:q,negative:U}=B.extensions;if(!H)return;p.has(H)||p.set(H,new Map);const ge=U?B.extensions.conditions?B.originalValue:B.value:q.ref;p.get(H).set(ne,ge),u.set([H,ne].join("."),ge)}function N(B){const{colorPalette:H,virtual:ne,default:q}=B.extensions;!H||ne||H.roots.forEach(U=>{var Tn;const ge=i(U);f.has(ge)||f.set(ge,new Map);const _e=J$([...B.path],[...U]),Et=i(_e),Fe=C(Et);if(!Fe||!Fe.extensions.cssVar)return;const{var:Kr}=Fe.extensions.cssVar;if(f.get(ge).set(Kr,B.extensions.cssVar.ref),q&&U.length===1){const Ea=i(["colors","colorPalette"]),ae=C(Ea);if(!ae)return;const jr=i(B.path),Rn=C(jr);if(!Rn)return;const On=(Tn=H.keys[0])==null?void 0:Tn.filter(Boolean);if(!On.length)return;const Ur=i(U.concat(On));f.has(Ur)||f.set(Ur,new Map),f.get(Ur).set(ae.extensions.cssVar.var,Rn.extensions.cssVar.ref)}})}let S={};function M(){s.forEach(B=>{k(B),D(B),R(B),_(B),N(B)}),S=Sm(p)}const j=(B,H)=>{var Fe;if(!B||typeof B!="string")return{invalid:!0,value:B};const[ne,q]=B.split("/");if(!ne||!q)return{invalid:!0,value:ne};const U=H(ne),ge=(Fe=C(`opacity.${q}`))==null?void 0:Fe.value;if(!ge&&isNaN(Number(q)))return{invalid:!0,value:ne};const _e=ge?Number(ge)*100+"%":`${q}%`,Et=U??ne;return{invalid:!1,color:Et,value:`color-mix(in srgb, ${Et} ${_e}, transparent)`}},z=kt((B,H)=>u.get(B)??H),F=kt(B=>S[B]||null),w=kt(B=>xm(B,H=>{if(!H)return;if(H.includes("/")){const q=j(H,U=>z(U));if(q.invalid)throw new Error("Invalid color mix at "+H+": "+q.value);return q.value}const ne=z(H);return ne||(M$.test(H)?ym(H):H)})),L={prefix:t,allTokens:s,tokenMap:l,registerToken:x,getByName:C,formatTokenName:i,formatCssVar:a,flatMap:u,cssVarMap:d,categoryMap:h,colorPaletteMap:f,getVar:z,getCategoryValues:F,expandReferenceInValue:w};function $(...B){B.forEach(H=>{m.set(H.name,H)})}function K(...B){v.push(...B)}function y(B,H){if(H.extensions.references||fl(B.match)&&!B.match(H))return;const q=(U=>B.transform(U,L))(H);switch(!0){case B.type==="extensions":Object.assign(H.extensions,q);break;case B.type==="value":H.value=q;break;default:H[B.type]=q;break}}function I(B){v.forEach(H=>{H.enforce===B&&H.transform(L)})}function W(B){m.forEach(H=>{H.enforce===B&&s.forEach(ne=>{y(H,ne)})})}function G(){s.forEach(B=>{const H=Z$(B);!H||H.length===0||H.forEach(ne=>{x(ne)})})}function Z(B){return Em(B).map(ne=>C(ne)).filter(Boolean)}function te(){s.forEach(B=>{if(!F$(B.value))return;const H=Z(B.value);B.extensions.references=H.reduce((ne,q)=>(ne[q.name]=q,ne),{})})}function ee(){s.forEach(B=>{Cm(B)})}function Ne(){I("pre"),W("pre"),G(),te(),ee(),I("post"),W("post"),M()}return T(),$(...Y$),K(...K$),Ne(),L}function Rd(e){return e[0]==="DEFAULT"?e:e.filter(t=>t!=="DEFAULT")}function km(e){return e.filter(t=>t!=="base")}function Z$(e){if(!e.extensions.conditions)return;const{conditions:t}=e.extensions,r=[];return Jt(t,(n,o)=>{const i=km(o);if(!i.length)return;const a=structuredClone(e);a.value=n,a.extensions.condition=i.join(":"),r.push(a)}),r}function J$(e,t){const r=e.findIndex((n,o)=>t.every((i,a)=>e[o+a]===i));return r===-1||(e.splice(r,t.length),e.splice(r,0,"colorPalette")),e}N$()(["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 Q$(e){return Object.fromEntries(Object.entries(e).map(([t,r])=>[t,r]))}function eT(e){const t=Q$(e.config),r=e.tokens,n=new Map,o=new Map;function i(R,_){t[R]=_,a(R,_)}const a=(R,_)=>{const N=m(_);N&&(o.set(R,N),f(R,_))},s=()=>{for(const[R,_]of Object.entries(t))_&&a(R,_)},l=()=>{for(const[R,_]of Object.entries(t)){const{shorthand:N}=_??{};if(!N)continue;(Array.isArray(N)?N:[N]).forEach(M=>n.set(M,R))}},c=()=>{const R=Sm(r.colorPaletteMap);i("colorPalette",{values:Object.keys(R),transform:kt(_=>R[_])})},d=new Map,f=(R,_)=>{if(!_)return;const N=m(_,M=>`type:Tokens["${M}"]`);if(typeof N=="object"&&N.type){d.set(R,new Set([`type:${N.type}`]));return}if(N){const M=new Set(Object.keys(N));d.set(R,M)}const S=d.get(R)??new Set;_.property&&d.set(R,S.add(`CssProperties["${_.property}"]`))},u=()=>{for(const[R,_]of Object.entries(t))_&&f(R,_)},p=(R,_)=>{const N=d.get(R)??new Set;d.set(R,new Set([...N,..._]))},h=()=>{const R=new Map;for(const[_,N]of d.entries()){if(N.size===0){R.set(_,["string"]);continue}const S=Array.from(N).map(M=>M.startsWith("CssProperties")?M:M.startsWith("type:")?M.replace("type:",""):JSON.stringify(M));R.set(_,S)}return R},m=(R,_)=>{const{values:N}=R,S=M=>{const j=_==null?void 0:_(M);return j?{[j]:j}:void 0};return Mt(N)?(S==null?void 0:S(N))??r.getCategoryValues(N)??{}:Array.isArray(N)?N.reduce((M,j)=>(M[j]=j,M),{}):fl(N)?N(_?S:r.getCategoryValues):N},v=kt((R,_)=>({[R]:R.startsWith("--")?r.getVar(_,_):_})),x=Object.assign(r.getVar,{raw:R=>r.getByName(R)}),E=kt((R,_)=>{var z;const N=C(R);Mt(_)&&!_.includes("_EMO_")&&(_=r.expandReferenceInValue(_));const S=t[N];if(!S)return v(N,_);const M=(z=o.get(N))==null?void 0:z[_];if(!S.transform)return v(R,M??_);const j=F=>Nk(F,x);return S.transform(M??_,{raw:_,token:x,utils:{colorMix:j}})});function P(){l(),c(),s(),u()}P();const T=n.size>0,C=kt(R=>n.get(R)??R);return{keys:()=>[...Array.from(n.keys()),...Object.keys(t)],hasShorthand:T,transform:E,shorthands:n,resolveShorthand:C,register:i,getTypes:h,addPropertyType:p}}function $m(...e){const t=am(...e),{theme:r={},utilities:n={},globalCss:o={},cssVarsRoot:i=":where(:root, :host)",cssVarsPrefix:a="chakra",preflight:s}=t,l=C$(t),c=X$({breakpoints:r.breakpoints,tokens:r.tokens,semanticTokens:r.semanticTokens,prefix:a}),d=n$(r.breakpoints??{}),f=s$({conditions:t.conditions??{},breakpoints:d}),u=eT({config:n,tokens:c});function p(){const{textStyles:$,layerStyles:K,animationStyles:y}=r,I=wn({textStyle:$,layerStyle:K,animationStyle:y});for(const[W,G]of Object.entries(I)){const Z=Jk(G??{},te=>rt(te)&&"value"in te);u.register(W,{values:Object.keys(Z),transform(te){return P(Z[te])}})}}p(),u.addPropertyType("animationName",Object.keys(r.keyframes??{}));const h=new Set(["css",...u.keys(),...f.keys()]),m=kt($=>h.has($)||Xk($)),v=$=>Array.isArray($)?$.reduce((K,y,I)=>{const W=f.breakpoints[I];return y!=null&&(K[W]=y),K},{}):$,x=P$({utility:u,normalize:v}),E=$$({conditions:f,isValidProperty:m}),P=vm({transform:u.transform,conditions:f,normalize:x}),T=S$({css:P,conditions:f,normalize:x,layers:l}),C=I$({cva:T});function k(){const $={};for(const[K,y]of c.cssVarMap.entries()){const I=Object.fromEntries(y);if(Object.keys(I).length===0)continue;const W=K==="base"?i:f.resolve(K),G=P(E({[W]:I}));Pn($,G)}return l.wrap("tokens",$)}function D(){const $=Object.fromEntries(Object.entries(r.keyframes??{}).map(([y,I])=>[`@keyframes ${y}`,I])),K=Object.assign({},$,P(E(o)));return l.wrap("base",K)}function R($){return dn($,m)}function _(){const $=k$({preflight:s});return l.wrap("reset",$)}const N=tT(c),S=($,K)=>{var y;return((y=N.get($))==null?void 0:y.value)||K};S.var=($,K)=>{var y;return((y=N.get($))==null?void 0:y.variable)||K};function M($,K){var y;return((y=r.recipes)==null?void 0:y[$])??K}function j($,K){var y;return((y=r.slotRecipes)==null?void 0:y[$])??K}function z($){return Object.hasOwnProperty.call(r.recipes??{},$)}function F($){return Object.hasOwnProperty.call(r.slotRecipes??{},$)}function w($){return z($)||F($)}const L=[_(),D(),k()];return{$$chakra:!0,_config:t,_global:L,breakpoints:d,tokens:c,conditions:f,utility:u,token:S,properties:h,layers:l,isValidProperty:m,splitCssProps:R,normalizeValue:v,getTokenCss:k,getGlobalCss:D,getPreflightCss:_,css:P,cva:T,sva:C,getRecipe:M,getSlotRecipe:j,hasRecipe:w,isRecipe:z,isSlotRecipe:F}}function tT(e){const t=new Map;return e.allTokens.forEach(r=>{const{cssVar:n,virtual:o,conditions:i}=r.extensions,a=i||o?n.ref:r.value;t.set(r.name,{value:a,variable:n.ref})}),t}const rT={sm:"480px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Ua="var(--chakra-empty,/*!*/ /*!*/)",nT=em({"*":{fontFeatureSettings:'"cv11"',"--ring-inset":Ua,"--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}`,Ua])),...Object.fromEntries(["blur","brightness","contrast","grayscale","hue-rotate","invert","opacity","saturate","sepia"].map(e=>[`--backdrop-${e}`,Ua])),"--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"}}),oT=om({"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:{}}}),iT=nm({"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"}}}),Gl=we({className:"chakra-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"l2",gap:"1",fontWeight:"medium",fontVariantNumeric:"tabular-nums",whiteSpace:"nowrap",userSelect:"none"},variants:{variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast"},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"1",minH:"4"},sm:{textStyle:"xs",px:"1.5",minH:"5"},md:{textStyle:"sm",px:"2",minH:"6"},lg:{textStyle:"sm",px:"2.5",minH:"7"}}},defaultVariants:{variant:"subtle",size:"sm"}}),aT=we({className:"chakra-button",base:{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",borderRadius:"l2",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"medium",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"6",minW:"6",textStyle:"xs",px:"2",gap:"1",_icon:{width:"3.5",height:"3.5"}},xs:{h:"8",minW:"8",textStyle:"xs",px:"2.5",gap:"1",_icon:{width:"4",height:"4"}},sm:{h:"9",minW:"9",px:"3.5",textStyle:"sm",gap:"2",_icon:{width:"4",height:"4"}},md:{h:"10",minW:"10",textStyle:"sm",px:"4",gap:"2",_icon:{width:"5",height:"5"}},lg:{h:"11",minW:"11",textStyle:"md",px:"5",gap:"3",_icon:{width:"5",height:"5"}},xl:{h:"12",minW:"12",textStyle:"md",px:"5",gap:"2.5",_icon:{width:"5",height:"5"}},"2xl":{h:"16",minW:"16",textStyle:"lg",px:"7",gap:"3",_icon:{width:"6",height:"6"}}},variant:{solid:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"transparent",_hover:{bg:"colorPalette.solid/90"},_expanded:{bg:"colorPalette.solid/90"}},subtle:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"transparent",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted",_hover:{bg:"colorPalette.muted"},_expanded:{bg:"colorPalette.muted"}},outline:{borderWidth:"1px",borderColor:"colorPalette.muted",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},ghost:{bg:"transparent",color:"colorPalette.fg",_hover:{bg:"colorPalette.subtle"},_expanded:{bg:"colorPalette.subtle"}},plain:{color:"colorPalette.fg"}}},defaultVariants:{size:"md",variant:"solid"}}),Ke=we({className:"chakra-checkmark",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",color:"white",borderWidth:"1px",borderColor:"transparent",borderRadius:"l1",focusVisibleRing:"outside",_icon:{boxSize:"full"},_invalid:{colorPalette:"red",borderColor:"border.error"},_disabled:{opacity:"0.5"}},variants:{size:{xs:{boxSize:"3"},sm:{boxSize:"4"},md:{boxSize:"5",p:"0.5"},lg:{boxSize:"6",p:"0.5"}},variant:{solid:{borderColor:"border","&: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"}}}},defaultVariants:{variant:"solid",size:"md"}}),{variants:sT,defaultVariants:lT}=Gl,cT=we({className:"chakra-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"l2"},variants:sT,defaultVariants:lT}),Tm=we({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"}}),uT=we({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"}}}}),dT=we({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"}}),fT=we({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"}}),Ae=we({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)"}}}},defaultVariants:{size:"md",variant:"outline"}}),pT=we({className:"chakra-input-addon",base:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap",alignSelf:"stretch",borderRadius:"l2"},variants:{size:Ae.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"}}),gT=we({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"}}),hT=we({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"}}),mT=we({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:{}}}}),je=we({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",_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"}}},defaultVariants:{variant:"solid",size:"md"}}),vT=we({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"}}),bT=we({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}}),yT=we({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"}}}),xT=we({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"}}),ST=we({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"}}),wT={badge:Gl,button:aT,code:cT,container:uT,heading:dT,input:Ae,inputAddon:pT,kbd:gT,link:hT,mark:mT,separator:vT,skeleton:bT,skipNavLink:yT,spinner:xT,textarea:ST,icon:fT,checkmark:Ke,radiomark:je,colorSwatch:Tm},ET=kn.colors({bg:{DEFAULT:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},emphasized:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},inverted:{value:{_light:"{colors.black}",_dark:"{colors.white}"}},panel:{value:{_light:"{colors.white}",_dark:"{colors.gray.950}"}},error:{value:{_light:"{colors.red.50}",_dark:"{colors.red.950}"}},warning:{value:{_light:"{colors.orange.50}",_dark:"{colors.orange.950}"}},success:{value:{_light:"{colors.green.50}",_dark:"{colors.green.950}"}},info:{value:{_light:"{colors.blue.50}",_dark:"{colors.blue.950}"}}},fg:{DEFAULT:{value:{_light:"{colors.black}",_dark:"{colors.gray.50}"}},muted:{value:{_light:"{colors.gray.600}",_dark:"{colors.gray.400}"}},subtle:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.500}"}},inverted:{value:{_light:"{colors.gray.50}",_dark:"{colors.black}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.600}",_dark:"{colors.orange.300}"}},success:{value:{_light:"{colors.green.600}",_dark:"{colors.green.300}"}},info:{value:{_light:"{colors.blue.600}",_dark:"{colors.blue.300}"}}},border:{DEFAULT:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},muted:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},subtle:{value:{_light:"{colors.gray.50}",_dark:"{colors.gray.950}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},inverted:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},error:{value:{_light:"{colors.red.500}",_dark:"{colors.red.400}"}},warning:{value:{_light:"{colors.orange.500}",_dark:"{colors.orange.400}"}},success:{value:{_light:"{colors.green.500}",_dark:"{colors.green.400}"}},info:{value:{_light:"{colors.blue.500}",_dark:"{colors.blue.400}"}}},gray:{contrast:{value:{_light:"{colors.white}",_dark:"{colors.black}"}},fg:{value:{_light:"{colors.gray.800}",_dark:"{colors.gray.200}"}},subtle:{value:{_light:"{colors.gray.100}",_dark:"{colors.gray.900}"}},muted:{value:{_light:"{colors.gray.200}",_dark:"{colors.gray.800}"}},emphasized:{value:{_light:"{colors.gray.300}",_dark:"{colors.gray.700}"}},solid:{value:{_light:"{colors.gray.900}",_dark:"{colors.white}"}},focusRing:{value:{_light:"{colors.gray.400}",_dark:"{colors.gray.400}"}}},red:{contrast:{value:{_light:"white",_dark:"white"}},fg:{value:{_light:"{colors.red.700}",_dark:"{colors.red.300}"}},subtle:{value:{_light:"{colors.red.100}",_dark:"{colors.red.900}"}},muted:{value:{_light:"{colors.red.200}",_dark:"{colors.red.800}"}},emphasized:{value:{_light:"{colors.red.300}",_dark:"{colors.red.700}"}},solid:{value:{_light:"{colors.red.600}",_dark:"{colors.red.600}"}},focusRing:{value:{_light:"{colors.red.400}",_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.400}",_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.400}",_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.400}",_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.400}",_dark:"{colors.yellow.400}"}}},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.400}",_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.400}",_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.400}",_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.400}",_dark:"{colors.cyan.400}"}}}}),CT=kn.radii({l1:{value:"{radii.xs}"},l2:{value:"{radii.sm}"},l3:{value:"{radii.md}"}}),PT=kn.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}"}}}),kT=nh.extendWith("itemBody"),$T=oe("action-bar").parts("positioner","content","separator","selectionTrigger","closeTrigger"),TT=oe("alert").parts("title","description","root","indicator","content"),RT=oe("breadcrumb").parts("link","currentLink","item","list","root","ellipsis","separator"),OT=oe("blockquote").parts("root","icon","content","caption"),IT=oe("card").parts("root","header","body","footer","title","description"),NT=oe("checkbox-card",["root","control","label","description","addon","indicator","content"]),DT=oe("data-list").parts("root","item","itemLabel","itemValue"),_T=Bl.extendWith("header","body","footer","backdrop"),AT=Bl.extendWith("header","body","footer","backdrop"),LT=kh.extendWith("textarea"),MT=oe("empty-state",["root","content","indicator","title","description"]),FT=$h.extendWith("requiredIndicator"),zT=Th.extendWith("content"),VT=Rh.extendWith("itemContent","dropzoneContent","fileText"),BT=oe("list").parts("root","item","indicator"),WT=_h.extendWith("itemCommand"),HT=oe("select").parts("root","field","indicator"),KT=Kh.extendWith("header","body","footer"),Rm=Kl.extendWith("itemAddon","itemIndicator"),jT=Rm.extendWith("itemContent","itemDescription"),UT=Uh.extendWith("itemIndicator"),GT=Yh.extendWith("indicatorGroup"),YT=Xh.extendWith("markerIndicator"),qT=oe("stat").parts("root","label","helpText","valueText","valueUnit","indicator"),XT=oe("status").parts("root","indicator"),ZT=oe("steps",["root","list","item","trigger","indicator","separator","content","title","description","nextTrigger","prevTrigger","progress"]),JT=Zh.extendWith("indicator"),QT=oe("table").parts("root","header","body","row","columnHeader","cell","footer","caption"),eR=oe("toast").parts("root","title","description","indicator","closeTrigger","actionTrigger"),tR=oe("tabs").parts("root","trigger","list","content","contentGroup","indicator"),rR=oe("tag").parts("root","label","closeTrigger","startElement","endElement"),nR=oe("timeline").parts("root","item","content","separator","indicator","connector","title","description"),oR=IC.extendWith("channelText"),iR=J({className:"chakra-accordion",slots:kT.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"}}),aR=J({className:"chakra-action-bar",slots:$T.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"}}}),sR=J({slots:TT.keys(),className:"chakra-alert",base:{root:{width:"full",display:"flex",alignItems:"flex-start",position:"relative",borderRadius:"l3"},title:{fontWeight:"medium"},description:{display:"inline"},indicator:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:"0",width:"1em",height:"1em",_icon:{boxSize:"full"}},content:{display:"flex",flex:"1",gap:"1"}},variants:{status:{info:{root:{colorPalette:"blue"}},warning:{root:{colorPalette:"orange"}},success:{root:{colorPalette:"green"}},error:{root:{colorPalette:"red"}},neutral:{root:{colorPalette:"gray"}}},inline:{true:{content:{display:"inline-flex",flexDirection:"row",alignItems:"center"}},false:{content:{display:"flex",flexDirection:"column"}}},variant:{subtle:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg"}},surface:{root:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},indicator:{color:"colorPalette.fg"}},solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"},indicator:{color:"colorPalette.contrast"}}},size:{sm:{root:{gap:"2",px:"3",py:"3",textStyle:"xs"},indicator:{textStyle:"lg"}},md:{root:{gap:"3",px:"4",py:"4",textStyle:"sm"},indicator:{textStyle:"xl"}},lg:{root:{gap:"3",px:"4",py:"4",textStyle:"md"},indicator:{textStyle:"2xl"}}}},defaultVariants:{status:"info",variant:"subtle",size:"md",inline:!1}}),lR=J({slots:ah.keys(),className:"chakra-avatar",base:{root:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"medium",position:"relative",verticalAlign:"top",flexShrink:"0",userSelect:"none",width:"var(--avatar-size)",height:"var(--avatar-size)",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)","&[data-group-item]":{borderWidth:"2px",borderColor:"bg"}},image:{width:"100%",height:"100%",objectFit:"cover",borderRadius:"var(--avatar-radius)"},fallback:{lineHeight:"1",textTransform:"uppercase",fontWeight:"medium",fontSize:"var(--avatar-font-size)",borderRadius:"var(--avatar-radius)"}},variants:{size:{full:{root:{"--avatar-size":"100%","--avatar-font-size":"100%"}},"2xs":{root:{"--avatar-font-size":"fontSizes.2xs","--avatar-size":"sizes.6"}},xs:{root:{"--avatar-font-size":"fontSizes.xs","--avatar-size":"sizes.8"}},sm:{root:{"--avatar-font-size":"fontSizes.sm","--avatar-size":"sizes.9"}},md:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.10"}},lg:{root:{"--avatar-font-size":"fontSizes.md","--avatar-size":"sizes.11"}},xl:{root:{"--avatar-font-size":"fontSizes.lg","--avatar-size":"sizes.12"}},"2xl":{root:{"--avatar-font-size":"fontSizes.xl","--avatar-size":"sizes.16"}}},variant:{solid:{root:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},subtle:{root:{bg:"colorPalette.muted",color:"colorPalette.fg"}},outline:{root:{color:"colorPalette.fg",borderWidth:"1px",borderColor:"colorPalette.muted"}}},shape:{square:{},rounded:{root:{"--avatar-radius":"radii.l3"}},full:{root:{"--avatar-radius":"radii.full"}}},borderless:{true:{root:{"&[data-group-item]":{borderWidth:"0px"}}}}},defaultVariants:{size:"md",shape:"full",variant:"subtle"}}),cR=J({className:"chakra-blockquote",slots:OT.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"}}),uR=J({className:"chakra-breadcrumb",slots:RT.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"}}),dR=J({className:"chakra-card",slots:IT.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"}});var _f,Af,Lf,Mf,Ff,zf,Vf,Bf,Wf,Hf,Kf,jf,Uf,Gf;const fR=J({slots:OC.keys(),className:"chakra-checkbox",base:{root:{display:"inline-flex",gap:"2",alignItems:"center",verticalAlign:"top",position:"relative"},control:Ke.base,label:{fontWeight:"medium",userSelect:"none",_disabled:{opacity:"0.5"}}},variants:{size:{xs:{root:{gap:"1.5"},label:{textStyle:"xs"},control:(Af=(_f=Ke.variants)==null?void 0:_f.size)==null?void 0:Af.xs},sm:{root:{gap:"2"},label:{textStyle:"sm"},control:(Mf=(Lf=Ke.variants)==null?void 0:Lf.size)==null?void 0:Mf.sm},md:{root:{gap:"2.5"},label:{textStyle:"sm"},control:(zf=(Ff=Ke.variants)==null?void 0:Ff.size)==null?void 0:zf.md},lg:{root:{gap:"3"},label:{textStyle:"md"},control:(Bf=(Vf=Ke.variants)==null?void 0:Vf.size)==null?void 0:Bf.lg}},variant:{outline:{control:(Hf=(Wf=Ke.variants)==null?void 0:Wf.variant)==null?void 0:Hf.outline},solid:{control:(jf=(Kf=Ke.variants)==null?void 0:Kf.variant)==null?void 0:jf.solid},subtle:{control:(Gf=(Uf=Ke.variants)==null?void 0:Uf.variant)==null?void 0:Gf.subtle}}},defaultVariants:{variant:"solid",size:"md"}});var Yf,qf,Xf,Zf,Jf,Qf,ep;const pR=J({slots:NT.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:Ke.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:(Yf=Ke.variants)==null?void 0:Yf.size.sm},md:{root:{textStyle:"sm"},control:{padding:"4",gap:"2.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:(qf=Ke.variants)==null?void 0:qf.size.md},lg:{root:{textStyle:"md"},control:{padding:"4",gap:"3.5"},addon:{px:"4",py:"2",borderTopWidth:"1px"},indicator:(Xf=Ke.variants)==null?void 0:Xf.size.lg}},variant:{surface:{root:{borderWidth:"1px",borderColor:"border",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"},_disabled:{bg:"bg.muted"}},indicator:(Zf=Ke.variants)==null?void 0:Zf.variant.solid},subtle:{root:{bg:"bg.muted"},control:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},indicator:(Jf=Ke.variants)==null?void 0:Jf.variant.plain},outline:{root:{borderWidth:"1px",borderColor:"border",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},indicator:(Qf=Ke.variants)==null?void 0:Qf.variant.solid},solid:{root:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},indicator:(ep=Ke.variants)==null?void 0:ep.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"}}),gR=J({slots:Mg.keys(),className:"chakra-collapsible",base:{content:{overflow:"hidden",_open:{animationName:"expand-height, fade-in",animationDuration:"moderate"},_closed:{animationName:"collapse-height, fade-out",animationDuration:"moderate"}}}});var tp,rp,np,op,ip,ap,sp,lp,cp,up,dp,fp,pp,gp,hp,mp,vp,bp;const hR=J({className:"colorPicker",slots:oR.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:{...Tm.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:{...Ae.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:(rp=(tp=Ae.variants)==null?void 0:tp.size)==null?void 0:rp["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:(op=(np=Ae.variants)==null?void 0:np.size)==null?void 0:op.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:(ap=(ip=Ae.variants)==null?void 0:ip.size)==null?void 0:ap.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:(lp=(sp=Ae.variants)==null?void 0:sp.size)==null?void 0:lp.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:(up=(cp=Ae.variants)==null?void 0:cp.size)==null?void 0:up.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:(fp=(dp=Ae.variants)==null?void 0:dp.size)==null?void 0:fp.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:(gp=(pp=Ae.variants)==null?void 0:pp.size)==null?void 0:gp["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:(mp=(hp=Ae.variants)==null?void 0:hp.variant)==null?void 0:mp.outline,trigger:{borderWidth:"1px"}},subtle:{channelInput:(bp=(vp=Ae.variants)==null?void 0:vp.variant)==null?void 0:bp.subtle,trigger:{borderWidth:"1px",borderColor:"transparent",bg:"bg.muted"}}}},defaultVariants:{size:"md",variant:"outline"}}),mR=J({slots:DT.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"}}),vR=J({slots:_T.keys(),className:"chakra-dialog",base:{backdrop:{bg:"blackAlpha.500",pos:"fixed",left: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",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:"100vw",minH:"100vh","--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"}}),bR=J({slots:AT.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"},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"},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-right-full, fade-out"}}}},top:{positioner:{alignItems:"flex-start"},content:{maxW:"100%",_open:{animationName:"slide-from-top-full, fade-in"},_closed:{animationName:"slide-to-top-full, fade-out"}}},bottom:{positioner:{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"}}),Od=tm({fontSize:"inherit",fontWeight:"inherit",textAlign:"inherit",bg:"transparent",borderRadius:"l2"}),yR=J({slots:LT.keys(),className:"chakra-editable",base:{root:{display:"inline-flex",alignItems:"center",position:"relative",gap:"1.5",width:"full"},preview:{...Od,py:"1",px:"1",display:"inline-flex",alignItems:"center",transitionProperty:"common",transitionDuration:"normal",cursor:"text",_hover:{bg:"bg.muted"},_disabled:{userSelect:"none"}},input:{...Od,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"}}),xR=J({slots:MT.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"}}),SR=J({className:"chakra-field",slots:FT.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"}}),wR=J({className:"fieldset",slots:zT.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"}}),ER=J({className:"chakra-file-upload",slots:VT.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:{}}),CR=J({className:"chakra-hover-card",slots:Dh.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--hovercard-bg":"colors.bg.panel",bg:"var(--hovercard-bg)",boxShadow:"lg",maxWidth:"80",borderRadius:"l3",zIndex:"popover",transformOrigin:"var(--transform-origin)",outline:"0",_open:{animationStyle:"slide-fade-in",animationDuration:"fast"},_closed:{animationStyle:"slide-fade-out",animationDuration:"faster"}},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--hovercard-bg)"},arrowTip:{borderTopWidth:"0.5px",borderInlineStartWidth:"0.5px"}},variants:{size:{xs:{content:{padding:"3"}},sm:{content:{padding:"4"}},md:{content:{padding:"5"}},lg:{content:{padding:"6"}}}},defaultVariants:{size:"md"}}),PR=J({className:"chakra-list",slots:BT.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"}}),kR=J({className:"chakra-menu",slots:WT.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"},item:{gap:"1",textStyle:"xs",py:"1",px:"1.5"}},md:{content:{minW:"8rem",padding:"1.5"},item:{gap:"2",textStyle:"sm",py:"1.5",px:"2"}}}},defaultVariants:{size:"md",variant:"subtle"}}),hi=J({className:"chakra-select",slots:GT.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",right:"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"}});var yp,xp;const $R=J({className:"chakra-native-select",slots:HT.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",_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:(yp=hi.variants)==null?void 0:yp.variant.outline.trigger},subtle:{field:(xp=hi.variants)==null?void 0:xp.variant.subtle.trigger},plain:{field:{bg:"transparent",color:"fg",focusRingWidth:"2px"}}},size:{xs:{field:{textStyle:"xs",ps:"2",pe:"6",height:"6"},indicator:{textStyle:"sm",insetEnd:"1.5"}},sm:{field:{textStyle:"sm",ps:"2.5",pe:"8",height:"8"},indicator:{textStyle:"md",insetEnd:"2"}},md:{field:{textStyle:"sm",ps:"3",pe:"8",height:"10"},indicator:{textStyle:"lg",insetEnd:"2"}},lg:{field:{textStyle:"md",ps:"4",pe:"8",height:"11"},indicator:{textStyle:"xl",insetEnd:"3"}},xl:{field:{textStyle:"md",ps:"4.5",pe:"10",height:"12"},indicator:{textStyle:"xl",insetEnd:"3"}}}},defaultVariants:hi.defaultVariants});function As(e,t){const r={};for(const n in e){const o=t(n,e[n]);r[o[0]]=o[1]}return r}const Id=tm({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"}}),TR=J({className:"chakra-number-input",slots:Vh.keys(),base:{root:{position:"relative",zIndex:"0",isolation:"isolate"},input:{...Ae.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:{...Id,borderTopEndRadius:"var(--stepper-radius)"},decrementTrigger:{...Id,borderBottomEndRadius:"var(--stepper-radius)"},valueText:{fontWeight:"medium",fontFeatureSettings:"pnum",fontVariantNumeric:"proportional-nums"}},variants:{size:{xs:{input:Ae.variants.size.xs,control:{fontSize:"2xs","--stepper-width":"sizes.4"}},sm:{input:Ae.variants.size.sm,control:{fontSize:"xs","--stepper-width":"sizes.5"}},md:{input:Ae.variants.size.md,control:{fontSize:"sm","--stepper-width":"sizes.6"}},lg:{input:Ae.variants.size.lg,control:{fontSize:"sm","--stepper-width":"sizes.6"}}},variant:As(Ae.variants.variant,(e,t)=>[e,{input:t}])},defaultVariants:{size:"md",variant:"outline"}}),{variants:Nd,defaultVariants:RR}=Ae,OR=J({className:"chakra-pin-input",slots:Hh.keys(),base:{input:{...Ae.base,textAlign:"center",width:"var(--input-height)"},control:{display:"inline-flex",gap:"2",isolation:"isolate"}},variants:{size:As(Nd.size,(e,t)=>[e,{input:t}]),variant:As(Nd.variant,(e,t)=>[e,{input:t}]),attached:{true:{control:{gap:"0",spaceX:"-1px"},input:{_notFirst:{borderStartRadius:"0"},_notLast:{borderEndRadius:"0"},_focusVisible:{zIndex:"1"}}}}},defaultVariants:RR}),IR=J({className:"chakra-popover",slots:KT.keys(),base:{content:{position:"relative",display:"flex",flexDirection:"column",textStyle:"sm","--popover-bg":"colors.bg.panel",bg:"var(--popover-bg)",boxShadow:"lg","--popover-size":"sizes.xs","--popover-mobile-size":"calc(100dvw - 1rem)",width:{base:"min(var(--popover-mobile-size), var(--popover-size))",sm:"var(--popover-size)"},borderRadius:"l3","--popover-z-index":"zIndex.popover",zIndex:"calc(var(--popover-z-index) + var(--layer-index, 0))",outline:"0",transformOrigin:"var(--transform-origin)",maxHeight:"var(--available-height)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"faster"}},header:{paddingInline:"var(--popover-padding)",paddingTop:"var(--popover-padding)"},body:{padding:"var(--popover-padding)",flex:"1"},footer:{display:"flex",alignItems:"center",paddingInline:"var(--popover-padding)",paddingBottom:"var(--popover-padding)"},arrow:{"--arrow-size":"sizes.3","--arrow-background":"var(--popover-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px"}},variants:{size:{xs:{content:{"--popover-padding":"spacing.3"}},sm:{content:{"--popover-padding":"spacing.4"}},md:{content:{"--popover-padding":"spacing.5"}},lg:{content:{"--popover-padding":"spacing.6"}}}},defaultVariants:{size:"md"}}),NR=J({slots:Hl.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"}}),DR=J({className:"chakra-progress-circle",slots:Hl.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-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"}}),_R=J({slots:jh.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"}});var Sp,wp,Ep,Cp,Pp,kp,$p;const AR=J({className:"chakra-radio-card",slots:jT.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:je.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:(Sp=je.variants)==null?void 0:Sp.size.sm},md:{item:{textStyle:"sm"},itemControl:{padding:"4",gap:"2.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:(wp=je.variants)==null?void 0:wp.size.md},lg:{item:{textStyle:"md"},itemControl:{padding:"4",gap:"3.5"},itemAddon:{px:"4",py:"2",borderTopWidth:"1px"},itemIndicator:(Ep=je.variants)==null?void 0:Ep.size.lg}},variant:{surface:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.subtle",color:"colorPalette.fg",borderColor:"colorPalette.muted"}},itemIndicator:(Cp=je.variants)==null?void 0:Cp.variant.solid},subtle:{item:{bg:"bg.muted"},itemControl:{_checked:{bg:"colorPalette.muted",color:"colorPalette.fg"}},itemIndicator:(Pp=je.variants)==null?void 0:Pp.variant.outline},outline:{item:{borderWidth:"1px",_checked:{boxShadow:"0 0 0 1px var(--shadow-color)",boxShadowColor:"colorPalette.solid",borderColor:"colorPalette.solid"}},itemIndicator:(kp=je.variants)==null?void 0:kp.variant.solid},solid:{item:{borderWidth:"1px",_checked:{bg:"colorPalette.solid",color:"colorPalette.contrast",borderColor:"colorPalette.solid"}},itemIndicator:($p=je.variants)==null?void 0:$p.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"}});var Tp,Rp,Op,Ip,Np,Dp,_p,Ap,Lp,Mp,Fp,zp,Vp,Bp;const LR=J({className:"chakra-radio-group",slots:Rm.keys(),base:{item:{display:"inline-flex",alignItems:"center",position:"relative",fontWeight:"medium",_disabled:{cursor:"disabled"}},itemControl:je.base,label:{userSelect:"none",textStyle:"sm",_disabled:{opacity:"0.5"}}},variants:{variant:{outline:{itemControl:(Rp=(Tp=je.variants)==null?void 0:Tp.variant)==null?void 0:Rp.outline},subtle:{itemControl:(Ip=(Op=je.variants)==null?void 0:Op.variant)==null?void 0:Ip.subtle},solid:{itemControl:(Dp=(Np=je.variants)==null?void 0:Np.variant)==null?void 0:Dp.solid}},size:{xs:{item:{textStyle:"xs",gap:"1.5"},itemControl:(Ap=(_p=je.variants)==null?void 0:_p.size)==null?void 0:Ap.xs},sm:{item:{textStyle:"sm",gap:"2"},itemControl:(Mp=(Lp=je.variants)==null?void 0:Lp.size)==null?void 0:Mp.sm},md:{item:{textStyle:"sm",gap:"2.5"},itemControl:(zp=(Fp=je.variants)==null?void 0:Fp.size)==null?void 0:zp.md},lg:{item:{textStyle:"md",gap:"3"},itemControl:(Bp=(Vp=je.variants)==null?void 0:Vp.size)==null?void 0:Bp.lg}}},defaultVariants:{size:"md",variant:"solid"}}),MR=J({className:"chakra-rating-group",slots:UT.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"}}),FR=J({className:"chakra-segment-group",slots:Gh.keys(),base:{root:{"--segment-radius":"radii.l2",borderRadius:"l2",display:"inline-flex",boxShadow:"inset",minW:"max-content",textAlign:"center",position:"relative",isolation:"isolate",bg:"bg.muted",_vertical:{flexDirection:"column"}},item:{display:"flex",alignItems:"center",justifyContent:"center",userSelect:"none",fontSize:"sm",position:"relative",color:"fg",borderRadius:"var(--segment-radius)",_disabled:{opacity:"0.5"},"&:has(input:focus-visible)":{focusRing:"outside"},_before:{content:'""',position:"absolute",bg:"border",transition:"opacity 0.2s"},_horizontal:{_before:{insetInlineStart:0,insetBlock:"1.5",width:"1px"}},_vertical:{_before:{insetBlockStart:0,insetInline:"1.5",height:"1px"}},"& + &[data-state=checked], &[data-state=checked] + &, &:first-of-type":{_before:{opacity:"0"}},"&[data-state=checked][data-ssr]":{shadow:"sm",bg:"bg",borderRadius:"var(--segment-radius)"}},indicator:{shadow:"sm",pos:"absolute",bg:{_light:"bg",_dark:"bg.emphasized"},width:"var(--width)",height:"var(--height)",top:"var(--top)",left:"var(--left)",zIndex:-1,borderRadius:"var(--segment-radius)"}},variants:{size:{xs:{item:{textStyle:"xs",px:"3",gap:"1",height:"6"}},sm:{item:{textStyle:"sm",px:"4",gap:"2",height:"8"}},md:{item:{textStyle:"sm",px:"4",gap:"2",height:"10"}},lg:{item:{textStyle:"md",px:"4.5",gap:"3",height:"11"}}}},defaultVariants:{size:"md"}}),zR=J({className:"chakra-slider",slots:YT.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"}}),VR=J({className:"chakra-stat",slots:qT.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"}}),BR=J({className:"chakra-status",slots:XT.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"}}),WR=J({className:"chakra-steps",slots:ZT.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"}}),HR=J({slots:JT.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"}}),KR=J({className:"chakra-table",slots:QT.keys(),base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"2",py:"2"},cell:{px:"2",py:"2"}},md:{root:{textStyle:"sm"},columnHeader:{px:"3",py:"3"},cell:{px:"3",py:"3"}},lg:{root:{textStyle:"md"},columnHeader:{px:"4",py:"3"},cell:{px:"4",py:"3"}}}},defaultVariants:{variant:"line",size:"md"}}),jR=J({slots:tR.keys(),className:"chakra-tabs",base:{root:{"--tabs-trigger-radius":"radii.l2",position:"relative",_horizontal:{display:"block"},_vertical:{display:"flex"}},list:{display:"inline-flex",position:"relative",isolation:"isolate","--tabs-indicator-shadow":"shadows.xs","--tabs-indicator-bg":"colors.bg",minH:"var(--tabs-height)",_horizontal:{flexDirection:"row"},_vertical:{flexDirection:"column"}},trigger:{outline:"0",minW:"var(--tabs-height)",height:"var(--tabs-height)",display:"flex",alignItems:"center",fontWeight:"medium",position:"relative",cursor:"button",gap:"2",_focusVisible:{zIndex:1,outline:"2px solid",outlineColor:"colorPalette.focusRing"},_disabled:{cursor:"not-allowed",opacity:.5}},content:{focusVisibleRing:"inside",_horizontal:{width:"100%",pt:"var(--tabs-content-padding)"},_vertical:{height:"100%",ps:"var(--tabs-content-padding)"}},indicator:{width:"var(--width)",height:"var(--height)",borderRadius:"var(--tabs-indicator-radius)",bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",zIndex:-1}},variants:{fitted:{true:{list:{display:"flex"},trigger:{flex:1,textAlign:"center",justifyContent:"center"}}},justify:{start:{list:{justifyContent:"flex-start"}},center:{list:{justifyContent:"center"}},end:{list:{justifyContent:"flex-end"}}},size:{sm:{root:{"--tabs-height":"sizes.9","--tabs-content-padding":"spacing.3"},trigger:{py:"1",px:"3",textStyle:"sm"}},md:{root:{"--tabs-height":"sizes.10","--tabs-content-padding":"spacing.4"},trigger:{py:"2",px:"4",textStyle:"sm"}},lg:{root:{"--tabs-height":"sizes.11","--tabs-content-padding":"spacing.4.5"},trigger:{py:"2",px:"4.5",textStyle:"md"}}},variant:{line:{list:{display:"flex",borderColor:"border",_horizontal:{borderBottomWidth:"1px"},_vertical:{borderEndWidth:"1px"}},trigger:{color:"fg.muted",_disabled:{_active:{bg:"initial"}},_selected:{color:"fg",_horizontal:{layerStyle:"indicator.bottom","--indicator-offset-y":"-1px","--indicator-color":"colors.colorPalette.solid"},_vertical:{layerStyle:"indicator.end","--indicator-offset-x":"-1px"}}}},subtle:{trigger:{borderRadius:"var(--tabs-trigger-radius)",color:"fg.muted",_selected:{bg:"colorPalette.subtle",color:"colorPalette.fg"}}},enclosed:{list:{bg:"bg.muted",padding:"1",borderRadius:"l3",minH:"calc(var(--tabs-height) - 4px)"},trigger:{justifyContent:"center",color:"fg.muted",borderRadius:"var(--tabs-trigger-radius)",_selected:{bg:"bg",color:"colorPalette.fg",shadow:"xs"}}},outline:{list:{"--line-thickness":"1px","--line-offset":"calc(var(--line-thickness) * -1)",borderColor:"border",display:"flex",_horizontal:{_before:{content:'""',position:"absolute",bottom:"0px",width:"100%",borderBottomWidth:"var(--line-thickness)",borderBottomColor:"border"}},_vertical:{_before:{content:'""',position:"absolute",insetInline:"var(--line-offset)",height:"calc(100% - calc(var(--line-thickness) * 2))",borderEndWidth:"var(--line-thickness)",borderEndColor:"border"}}},trigger:{color:"fg.muted",borderWidth:"1px",borderColor:"transparent",_selected:{bg:"currentBg",color:"colorPalette.fg"},_horizontal:{borderTopRadius:"var(--tabs-trigger-radius)",marginBottom:"var(--line-offset)",marginEnd:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderBottomColor:"transparent"}},_vertical:{borderStartRadius:"var(--tabs-trigger-radius)",marginEnd:"var(--line-offset)",marginBottom:{_notLast:"var(--line-offset)"},_selected:{borderColor:"border",borderEndColor:"transparent"}}}},plain:{trigger:{color:"fg.muted",_selected:{color:"colorPalette.fg"},borderRadius:"var(--tabs-trigger-radius)","&[data-selected][data-ssr]":{bg:"var(--tabs-indicator-bg)",shadow:"var(--tabs-indicator-shadow)",borderRadius:"var(--tabs-indicator-radius)"}}}}},defaultVariants:{size:"md",variant:"line"}});var Wp;const ht=(Wp=Gl.variants)==null?void 0:Wp.variant,UR=J({slots:rR.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:ht==null?void 0:ht.subtle},solid:{root:ht==null?void 0:ht.solid},outline:{root:ht==null?void 0:ht.outline},surface:{root:ht==null?void 0:ht.surface}}},defaultVariants:{size:"md",variant:"surface"}}),GR=J({slots:nR.keys(),className:"chakra-timeline",base:{root:{display:"flex",flexDirection:"column",width:"full","--timeline-thickness":"1px","--timeline-gutter":"4px"},item:{display:"flex",position:"relative",alignItems:"flex-start",flexShrink:0,gap:"4",_last:{"& :where(.chakra-timeline__separator)":{display:"none"}}},separator:{position:"absolute",borderStartWidth:"var(--timeline-thickness)",ms:"calc(-1 * var(--timeline-thickness) / 2)",insetInlineStart:"calc(var(--timeline-indicator-size) / 2)",insetBlock:"0",borderColor:"border"},indicator:{outline:"2px solid {colors.bg}",position:"relative",flexShrink:"0",boxSize:"var(--timeline-indicator-size)",fontSize:"var(--timeline-font-size)",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",fontWeight:"medium"},connector:{alignSelf:"stretch",position:"relative"},content:{pb:"6",display:"flex",flexDirection:"column",width:"full",gap:"2"},title:{display:"flex",fontWeight:"medium",flexWrap:"wrap",gap:"1.5",alignItems:"center",mt:"var(--timeline-margin)"},description:{color:"fg.muted",textStyle:"xs"}},variants:{variant:{subtle:{indicator:{bg:"colorPalette.muted"}},solid:{indicator:{bg:"colorPalette.solid",color:"colorPalette.contrast"}},outline:{indicator:{bg:"currentBg",borderWidth:"1px",borderColor:"colorPalette.muted"}},plain:{}},size:{sm:{root:{"--timeline-indicator-size":"sizes.4","--timeline-font-size":"fontSizes.2xs"},title:{textStyle:"xs"}},md:{root:{"--timeline-indicator-size":"sizes.5","--timeline-font-size":"fontSizes.xs"},title:{textStyle:"sm"}},lg:{root:{"--timeline-indicator-size":"sizes.6","--timeline-font-size":"fontSizes.xs"},title:{mt:"0.5",textStyle:"sm"}},xl:{root:{"--timeline-indicator-size":"sizes.8","--timeline-font-size":"fontSizes.sm"},title:{mt:"1.5",textStyle:"sm"}}}},defaultVariants:{size:"md",variant:"solid"}}),YR=J({slots:eR.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"}}}}),qR=J({slots:Jh.keys(),className:"chakra-tooltip",base:{content:{"--tooltip-bg":"colors.bg.inverted",bg:"var(--tooltip-bg)",color:"fg.inverted",px:"2.5",py:"1",borderRadius:"l2",fontWeight:"medium",textStyle:"xs",boxShadow:"md",maxW:"xs",zIndex:"tooltip",transformOrigin:"var(--transform-origin)",_open:{animationStyle:"scale-fade-in",animationDuration:"fast"},_closed:{animationStyle:"scale-fade-out",animationDuration:"fast"}},arrow:{"--arrow-size":"sizes.2","--arrow-background":"var(--tooltip-bg)"},arrowTip:{borderTopWidth:"1px",borderInlineStartWidth:"1px",borderColor:"var(--tooltip-bg)"}}}),XR={accordion:iR,actionBar:aR,alert:sR,avatar:lR,blockquote:cR,breadcrumb:uR,card:dR,checkbox:fR,checkboxCard:pR,collapsible:gR,dataList:mR,dialog:vR,drawer:bR,editable:yR,emptyState:xR,field:SR,fieldset:wR,fileUpload:ER,hoverCard:CR,list:PR,menu:kR,nativeSelect:$R,numberInput:TR,pinInput:OR,popover:IR,progress:NR,progressCircle:DR,radioCard:AR,radioGroup:LR,ratingGroup:MR,segmentGroup:FR,select:hi,slider:zR,stat:VR,steps:WR,switch:HR,table:KR,tabs:jR,tag:UR,toast:YR,tooltip:qR,status:BR,timeline:GR,colorPicker:hR,qrCode:_R},ZR=rm({"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"}}}),JR=de.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"}}),QR=de.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"}}),e4=de.blurs({none:{value:" "},sm:{value:"4px"},md:{value:"8px"},lg:{value:"12px"},xl:{value:"16px"},"2xl":{value:"24px"},"3xl":{value:"40px"},"4xl":{value:"64px"}}),t4=de.borders({xs:{value:"0.5px solid"},sm:{value:"1px solid"},md:{value:"2px solid"},lg:{value:"4px solid"},xl:{value:"8px solid"}}),r4=de.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"}}}),n4=de.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"}}),o4=de.durations({fastest:{value:"50ms"},faster:{value:"100ms"},fast:{value:"150ms"},moderate:{value:"200ms"},slow:{value:"300ms"},slower:{value:"400ms"},slowest:{value:"500ms"}}),i4=de.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)"}}),a4=de.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"}}),s4=de.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"}}),Dd='-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',l4=de.fonts({heading:{value:`Inter, ${Dd}`},body:{value:`Inter, ${Dd}`},mono:{value:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'}}),c4=_k({spin:{"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}},pulse:{"50%":{opacity:"0.5"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}},"bg-position":{from:{backgroundPosition:"var(--animate-from, 1rem) 0"},to:{backgroundPosition:"var(--animate-to, 0) 0"}},position:{from:{insetInlineStart:"var(--animate-from-x)",insetBlockStart:"var(--animate-from-y)"},to:{insetInlineStart:"var(--animate-to-x)",insetBlockStart:"var(--animate-to-y)"}},"circular-progress":{"0%":{strokeDasharray:"1, 400",strokeDashoffset:"0"},"50%":{strokeDasharray:"400, 400",strokeDashoffset:"-100%"},"100%":{strokeDasharray:"400, 400",strokeDashoffset:"-260%"}},"expand-height":{from:{height:"0"},to:{height:"var(--height)"}},"collapse-height":{from:{height:"var(--height)"},to:{height:"0"}},"expand-width":{from:{width:"0"},to:{width:"var(--width)"}},"collapse-width":{from:{height:"var(--width)"},to:{height:"0"}},"fade-in":{from:{opacity:0},to:{opacity:1}},"fade-out":{from:{opacity:1},to:{opacity:0}},"slide-from-left-full":{from:{translate:"-100% 0"},to:{translate:"0 0"}},"slide-from-right-full":{from:{translate:"100% 0"},to:{translate:"0 0"}},"slide-from-top-full":{from:{translate:"0 -100%"},to:{translate:"0 0"}},"slide-from-bottom-full":{from:{translate:"0 100%"},to:{translate:"0 0"}},"slide-to-left-full":{from:{translate:"0 0"},to:{translate:"-100% 0"}},"slide-to-right-full":{from:{translate:"0 0"},to:{translate:"100% 0"}},"slide-to-top-full":{from:{translate:"0 0"},to:{translate:"0 -100%"}},"slide-to-bottom-full":{from:{translate:"0 0"},to:{translate:"0 100%"}},"slide-from-top":{"0%":{translate:"0 -0.5rem"},to:{translate:"0"}},"slide-from-bottom":{"0%":{translate:"0 0.5rem"},to:{translate:"0"}},"slide-from-left":{"0%":{translate:"-0.5rem 0"},to:{translate:"0"}},"slide-from-right":{"0%":{translate:"0.5rem 0"},to:{translate:"0"}},"slide-to-top":{"0%":{translate:"0"},to:{translate:"0 -0.5rem"}},"slide-to-bottom":{"0%":{translate:"0"},to:{translate:"0 0.5rem"}},"slide-to-left":{"0%":{translate:"0"},to:{translate:"-0.5rem 0"}},"slide-to-right":{"0%":{translate:"0"},to:{translate:"0.5rem 0"}},"scale-in":{from:{scale:"0.95"},to:{scale:"1"}},"scale-out":{from:{scale:"1"},to:{scale:"0.95"}}}),u4=de.letterSpacings({tighter:{value:"-0.05em"},tight:{value:"-0.025em"},wide:{value:"0.025em"},wider:{value:"0.05em"},widest:{value:"0.1em"}}),d4=de.lineHeights({shorter:{value:1.25},short:{value:1.375},moderate:{value:1.5},tall:{value:1.625},taller:{value:2}}),f4=de.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"}}),Om=de.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"}}),p4=de.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"}}),g4=de.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"}}),h4=de.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%"}}),m4=de.sizes({...p4,...Om,...h4,...g4}),v4=de.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}}),b4=jl({preflight:!0,cssVarsPrefix:"chakra",cssVarsRoot:":where(html, .chakra-theme)",globalCss:nT,theme:{breakpoints:rT,keyframes:c4,tokens:{aspectRatios:QR,animations:JR,blurs:e4,borders:t4,colors:r4,durations:o4,easings:i4,fonts:l4,fontSizes:a4,fontWeights:s4,letterSpacings:u4,lineHeights:d4,radii:f4,spacing:Om,sizes:m4,zIndex:v4,cursor:n4},semanticTokens:{colors:ET,shadows:PT,radii:CT},recipes:wT,slotRecipes:XR,textStyles:ZR,layerStyles:oT,animationStyles:iT}}),y4=am(lm,b4),Im=$m(y4);function ia(e){const{key:t,recipe:r}=e,n=bo();return g.useMemo(()=>{const o=r||(t!=null?n.getSlotRecipe(t):{});return n.sva(structuredClone(o))},[t,r,n])}const x4=e=>e.charAt(0).toUpperCase()+e.slice(1),Wt=e=>{const{key:t,recipe:r}=e,n=x4(t||r.className||"Component"),[o,i]=Qn({name:`${n}StylesContext`,errorMessage:`use${n}Styles returned is 'undefined'. Seems you forgot to wrap the components in "<${n}.Root />" `}),[a,s]=Qn({name:`${n}ClassNameContext`,errorMessage:`use${n}ClassNames returned is 'undefined'. Seems you forgot to wrap the components in "<${n}.Root />" `,strict:!1}),[l,c]=Qn({strict:!1,name:`${n}PropsContext`,providerName:`${n}PropsContext`,defaultValue:{}});function d(h){const{unstyled:m,...v}=h,x=ia({key:t,recipe:v.recipe||r}),[E,P]=g.useMemo(()=>x.splitVariantProps(v),[v,x]);return{styles:g.useMemo(()=>m?nx:x(E),[m,E,x]),classNames:x.classNameMap,props:P}}function f(h,m={}){const{defaultProps:v}=m,x=E=>{const P=c(),T=g.useMemo(()=>oo(v,P,E),[P,E]),{styles:C,classNames:k,props:D}=d(T);return O.jsx(o,{value:C,children:O.jsx(a,{value:k,children:O.jsx(h,{...D})})})};return x.displayName=h.displayName||h.name,x}return{StylesProvider:o,ClassNamesProvider:a,PropsProvider:l,usePropsContext:c,useRecipeResult:d,withProvider:(h,m,v)=>{const{defaultProps:x,...E}=v??{},P=Qe(h,{},E),T=g.forwardRef((C,k)=>{var z;const D=c(),R=g.useMemo(()=>oo(x??{},D,C),[D,C]),{styles:_,props:N,classNames:S}=d(R),M=S[m],j=O.jsx(o,{value:_,children:O.jsx(a,{value:S,children:O.jsx(P,{ref:k,...N,css:[_[m],R.css],className:yt(R.className,M)})})});return((z=v==null?void 0:v.wrapElement)==null?void 0:z.call(v,j,R))??j});return T.displayName=h.displayName||h.name,T},withContext:(h,m,v)=>{const x=Qe(h,{},v),E=g.forwardRef((P,T)=>{const C=i(),k=s(),D=k==null?void 0:k[m];return O.jsx(x,{...P,css:[m?C[m]:void 0,P.css],ref:T,className:yt(P.className,D)})});return E.displayName=h.displayName||h.name,E},withRootProvider:f,useStyles:i,useClassNames:s}},S4="cm,mm,Q,in,pc,pt,px,em,ex,ch,rem,lh,rlh,vw,vh,vmin,vmax,vb,vi,svw,svh,lvw,lvh,dvw,dvh,cqw,cqh,cqi,cqb,cqmin,cqmax,%",w4=`(?:${S4.split(",").join("|")})`,E4=new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${w4}$`),C4=e=>typeof e=="string"&&E4.test(e),qo=e=>C4(e)||Zx(e)?e:`token(spacing.${e}, ${e})`,P4=g.forwardRef(function(t,r){const{inline:n,inlineStart:o,inlineEnd:i,block:a,blockStart:s,blockEnd:l,...c}=t;return O.jsx(Qe.div,{ref:r,...c,css:{"--bleed-inline-start":Ut(n??o,qo),"--bleed-inline-end":Ut(n??i,qo),"--bleed-block-start":Ut(a??s,qo),"--bleed-block-end":Ut(a??l,qo),marginInlineStart:"calc(var(--bleed-inline-start, 0) * -1)",marginInlineEnd:"calc(var(--bleed-inline-end, 0) * -1)",marginBlockStart:"calc(var(--bleed-block-start, 0) * -1)",marginBlockEnd:"calc(var(--bleed-block-end, 0) * -1)"}})}),Nm=Qe("div");Nm.displayName="Box";const{withContext:k4}=St({key:"code"}),$4=k4("code");function T4(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{"&":Ut(r,o=>n[o])}}function R4(e){return g.Children.toArray(e).filter(t=>g.isValidElement(t))}const O4=g.forwardRef(function(t,r){const{direction:n="column",align:o,justify:i,gap:a="0.5rem",wrap:s,children:l,separator:c,className:d,...f}=t,u=g.useMemo(()=>T4({gap:a,direction:n}),[a,n]),p=g.useMemo(()=>c?R4(l).map((h,m,v)=>{const x=typeof h.key<"u"?h.key:m,E=g.cloneElement(c,{css:[u,c.props.css]});return O.jsxs(g.Fragment,{children:[h,m===v.length-1?null:E]},x)}):l,[l,c,u]);return O.jsx(Qe.div,{ref:r,display:"flex",alignItems:o,justifyContent:i,flexDirection:n,flexWrap:s,gap:c?void 0:a,className:yt("chakra-stack",d),...f,children:p})}),{withRootProvider:Dm,withContext:Ht}=Wt({key:"dialog"});Dm(lP,{defaultProps:{unmountOnExit:!0,lazyMount:!0}});const I4=Dm(sP,{defaultProps:{unmountOnExit:!0,lazyMount:!0}}),N4=Ht(Ph,"trigger",{forwardAsChild:!0}),D4=Ht(yh,"positioner",{forwardAsChild:!0}),_4=Ht(vh,"content",{forwardAsChild:!0}),A4=Ht(bh,"description",{forwardAsChild:!0}),L4=Ht(Ch,"title",{forwardAsChild:!0}),M4=Ht(mh,"closeTrigger",{forwardAsChild:!0}),F4=g.forwardRef(function(t,r){const n=hr();return O.jsx(Qe.button,{...t,ref:r,onClick:()=>n.setOpen(!1)})}),_m=Ht(hh,"backdrop",{forwardAsChild:!0}),z4=Ht("div","body"),V4=Ht("div","footer"),B4=Ht("div","header");function W4(e){const{each:t,fallback:r,children:n}=e;return(t==null?void 0:t.length)===0?r||null:t==null?void 0:t.map(n)}const ro=g.forwardRef(function(t,r){const{direction:n,align:o,justify:i,wrap:a,basis:s,grow:l,shrink:c,inline:d,...f}=t;return O.jsx(Qe.div,{ref:r,...f,css:{display:d?"inline-flex":"flex",flexDirection:n,alignItems:o,justifyContent:i,flexWrap:a,flexBasis:s,flexGrow:l,flexShrink:c,...t.css}})});function _d(e){return Ut(e,t=>t==="auto"?"auto":`span ${t}/span ${t}`)}const Am=g.forwardRef(function(t,r){const{area:n,colSpan:o,colStart:i,colEnd:a,rowEnd:s,rowSpan:l,rowStart:c,...d}=t,f=wn({gridArea:n,gridColumn:_d(o),gridRow:_d(l),gridColumnStart:i,gridColumnEnd:a,gridRowStart:c,gridRowEnd:s});return O.jsx(Qe.div,{ref:r,css:f,...d})}),H4=g.forwardRef(function(t,r){const{columns:n,minChildWidth:o,...i}=t,a=bo(),s=o?j4(o,a):U4(n);return O.jsx(lg,{ref:r,templateColumns:s,...i})});function K4(e){return typeof e=="number"?`${e}px`:e}function j4(e,t){return Ut(e,r=>{const n=t.tokens.getVar(`sizes.${r}`,K4(r));return r===null?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}function U4(e){return Ut(e,t=>t===null?null:`repeat(${t}, minmax(0, 1fr))`)}const{withContext:G4}=St({key:"mark"}),Y4=G4("mark");function q4(e){const{children:t,query:r,ignoreCase:n,matchAll:o,styles:i}=e;if(typeof t!="string")throw new Error("The children prop of Highlight must be a string");const a=$P({query:r,text:t,matchAll:o,ignoreCase:n});return O.jsx(W4,{each:a,children:(s,l)=>s.match?O.jsx(Y4,{css:i,children:s.text},l):O.jsx(g.Fragment,{children:s.text},l)})}const X4=g.forwardRef(function(t,r){const{align:n,fit:o="cover",...i}=t;return O.jsx(Qe.img,{ref:r,objectFit:o,objectPosition:n,className:yt("chakra-image",t.className),...i})}),{withContext:Z4}=St({key:"kbd"}),J4=Z4("kbd"),{withProvider:Q4,withContext:Lm,PropsProvider:e2}=Wt({key:"list"}),Mm=Q4("ul","root",{defaultProps:{role:"list"}}),t2=e2,Fm=Lm("li","item"),r2=Lm("span","indicator"),n2=Object.freeze(Object.defineProperty({__proto__:null,Indicator:r2,Item:Fm,Root:Mm,RootPropsProvider:t2},Symbol.toStringTag,{value:"Module"})),{StylesProvider:o2,ClassNamesProvider:i2,useRecipeResult:a2,withContext:er,PropsProvider:s2}=Wt({key:"table"}),zm=g.forwardRef(function({native:t,...r},n){const{styles:o,props:i,classNames:a}=a2(r),s=g.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 O.jsx(i2,{value:a,children:O.jsx(o2,{value:o,children:O.jsx(Qe.table,{ref:n,...i,css:[s,r.css],className:yt(a==null?void 0:a.root,r.className)})})})}),l2=s2,Vm=er("tr","row"),c2=Qe("div",{base:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflow:"auto",maxWidth:"100%"}}),Bm=er("thead","header"),Wm=er("tfoot","footer"),Hm=er("th","columnHeader"),Km=er("td","cell"),u2=er("caption","caption",{defaultProps:{captionSide:"bottom"}}),jm=er("tbody","body"),Um=er("colgroup"),Gm=er("col"),d2=Object.freeze(Object.defineProperty({__proto__:null,Body:jm,Caption:u2,Cell:Km,Column:Gm,ColumnGroup:Um,ColumnHeader:Hm,Footer:Wm,Header:Bm,Root:zm,RootPropsProvider:l2,Row:Vm,ScrollArea:c2},Symbol.toStringTag,{value:"Module"})),{withContext:f2}=St({key:"heading"}),p2=f2("h2"),{withContext:g2}=St({key:"text"}),h2=g2("p"),m2=Qe("em",{base:{fontStyle:"italic"}}),Ym=we({className:"avatar",base:{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",overflow:"hidden",userSelect:"none",borderRadius:"full",flexShrink:0,fontWeight:"600",backgroundColor:"colorPalette.3",colorPalette:"primary",color:"colorPalette.11",focusVisibleRing:"outside","button&":{cursor:"button"},_disabled:{layerStyle:"disabled"}},variants:{size:{md:{width:1e3,height:1e3,textStyle:"sm"},xs:{width:800,height:800,textStyle:"xs"},"2xs":{width:600,height:600,textStyle:"xs"}}},defaultVariants:{size:"md"}}),{withContext:v2}=St({recipe:Ym}),b2=v2("figure");function y2(e,t){return e.split("")[0].toUpperCase()+t.split("")[0].toUpperCase()}const qm=g.forwardRef((e,t)=>{const{firstName:r,lastName:n,src:o,alt:i,...a}=e,s=`${r} ${n}`,l={"aria-label":`${s} avatar`,ref:t,...a};return O.jsx(b2,{...l,children:o?O.jsx(X4,{src:o,alt:i||s}):y2(r,n)})});qm.displayName="Avatar";const Gt=g.forwardRef((e,t)=>O.jsx(Nm,{ref:t,...e}));Gt.displayName="Box";const pe=typeof document<"u"?V.useLayoutEffect:()=>{};function ze(e){const t=g.useRef(null);return pe(()=>{t.current=e},[e]),g.useCallback((...r)=>{const n=t.current;return n==null?void 0:n(...r)},[])}function x2(e){let[t,r]=g.useState(e),n=g.useRef(null),o=ze(()=>{if(!n.current)return;let a=n.current.next();if(a.done){n.current=null;return}t===a.value?o():r(a.value)});pe(()=>{n.current&&o()});let i=ze(a=>{n.current=a(t),o()});return[t,i]}const Di={prefix:String(Math.round(Math.random()*1e10)),current:0},Xm=V.createContext(Di),S2=V.createContext(!1);let w2=!!(typeof window<"u"&&window.document&&window.document.createElement),Ga=new WeakMap;function E2(e=!1){let t=g.useContext(Xm),r=g.useRef(null);if(r.current===null&&!e){var n,o;let i=(o=V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(i){let a=Ga.get(i);a==null?Ga.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==a.state&&(t.current=a.id,Ga.delete(i))}r.current=++t.current}return r.current}function C2(e){let t=g.useContext(Xm);t===Di&&!w2&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=E2(!!e),n=t===Di&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`}function P2(e){let t=V.useId(),[r]=g.useState(zr()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Di.prefix}`;return e||`${n}-${t}`}const k2=typeof V.useId=="function"?P2:C2;function $2(){return!1}function T2(){return!0}function R2(e){return()=>{}}function zr(){return typeof V.useSyncExternalStore=="function"?V.useSyncExternalStore(R2,$2,T2):g.useContext(S2)}let O2=!!(typeof window<"u"&&window.document&&window.document.createElement),pn=new Map,qn;typeof FinalizationRegistry<"u"&&(qn=new FinalizationRegistry(e=>{pn.delete(e)}));function He(e){let[t,r]=g.useState(e),n=g.useRef(null),o=k2(t),i=g.useRef(null);if(qn&&qn.register(i,o),O2){const a=pn.get(o);a&&!a.includes(n)?a.push(n):pn.set(o,[n])}return pe(()=>{let a=o;return()=>{qn&&qn.unregister(i),pn.delete(a)}},[o]),g.useEffect(()=>{let a=n.current;return a&&r(a),()=>{a&&(n.current=null)}}),o}function I2(e,t){if(e===t)return e;let r=pn.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=pn.get(t);return n?(n.forEach(o=>o.current=e),e):t}function uo(e=[]){let t=He(),[r,n]=x2(t),o=g.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return pe(o,[t,o,...e]),r}function fr(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const be=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Je=e=>e&&"window"in e&&e.window===e?e:be(e).defaultView||window;function N2(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function D2(e){return N2(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let _2=!1;function aa(){return _2}function Te(e,t){if(!aa())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:D2(r)?r=r.host:r=r.parentNode}return!1}const Ge=(e=document)=>{var t;if(!aa())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((t=r.shadowRoot)===null||t===void 0)&&t.activeElement);)r=r.shadowRoot.activeElement;return r};function me(e){return aa()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class A2{get currentNode(){return this._currentNode}set currentNode(t){if(!Te(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let n=t,o=t;for(this._currentNode=t;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const a=n,s=this._doc.createTreeWalker(a,this.whatToShow,{acceptNode:this._acceptNode});r.push(s),s.currentNode=o,this._currentSetFor.add(s),n=o=a.host}else n=n.parentNode;const i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(i),i.currentNode=o,this._currentSetFor.add(i),this._walkerStack=r}get doc(){return this._doc}firstChild(){let t=this.currentNode,r=this.nextNode();return Te(t,r)?(r&&(this.currentNode=r),r):(this.currentNode=t,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(t):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(t)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let i=this.nextNode();return i&&(this.currentNode=i),i}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}const r=t.previousNode();if(r){if(r.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(r):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(r)),i===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let a=this.lastChild();return a&&(this.currentNode=a),a}return r&&(this.currentNode=r),r}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,r,n,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=a=>{if(a.nodeType===Node.ELEMENT_NODE){const l=a.shadowRoot;if(l){const c=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(c),NodeFilter.FILTER_ACCEPT}else{var s;if(typeof this.filter=="function")return this.filter(a);if(!((s=this.filter)===null||s===void 0)&&s.acceptNode)return this.filter.acceptNode(a);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=r,this.filter=o??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(t.createTreeWalker(r,n,this._acceptNode));const i=r.shadowRoot;if(i){const a=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(a)}}}function L2(e,t,r,n){return aa()?new A2(e,t,r,n):e.createTreeWalker(t,r,n)}function Zm(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Zm(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function M2(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Zm(e))&&(n&&(n+=" "),n+=t);return n}function re(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],a=n[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=fr(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=M2(i,a):o==="id"&&i&&a?t.id=I2(i,a):t[o]=a!==void 0?a:i}}return t}function Jm(...e){return e.length===1&&e[0]?e[0]:t=>{for(let r of e)typeof r=="function"?r(t):r!=null&&(r.current=t)}}const F2=new Set(["id"]),z2=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),V2=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),B2=/^(data-.*)$/;function Ve(e,t={}){let{labelable:r,isLink:n,propNames:o}=t,i={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(F2.has(a)||r&&z2.has(a)||n&&V2.has(a)||o!=null&&o.has(a)||B2.test(a))&&(i[a]=e[a]);return i}function Rt(e){if(W2())e.focus({preventScroll:!0});else{let t=H2(e);e.focus(),K2(t)}}let Xo=null;function W2(){if(Xo==null){Xo=!1;try{document.createElement("div").focus({get preventScroll(){return Xo=!0,!0}})}catch{}}return Xo}function H2(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function K2(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function sa(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function Yl(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function tr(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const pr=tr(function(){return Yl(/^Mac/i)}),j2=tr(function(){return Yl(/^iPhone/i)}),Qm=tr(function(){return Yl(/^iPad/i)||pr()&&navigator.maxTouchPoints>1}),la=tr(function(){return j2()||Qm()}),U2=tr(function(){return pr()||la()}),ql=tr(function(){return sa(/AppleWebKit/i)&&!ev()}),ev=tr(function(){return sa(/Chrome/i)}),Xl=tr(function(){return sa(/Android/i)}),G2=tr(function(){return sa(/Firefox/i)}),Y2=g.createContext({isNative:!0,open:Z2,useHref:e=>e});function ca(){return g.useContext(Y2)}function q2(e,t){let r=e.getAttribute("target");return(!r||r==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Dr(e,t,r=!0){var n,o;let{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}=t;G2()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(pr()?i=!0:a=!0);let c=ql()&&pr()&&!Qm()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:a,altKey:s,shiftKey:l,bubbles:!0,cancelable:!0});Dr.isOpening=r,Rt(e),e.dispatchEvent(c),Dr.isOpening=!1}Dr.isOpening=!1;function X2(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function Z2(e,t){X2(e,r=>Dr(r,t))}function tv(e){let t=ca();var r;const n=t.useHref((r=e==null?void 0:e.href)!==null&&r!==void 0?r:"");return{href:e!=null&&e.href?n:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let rn=new Map,Ls=new Set;function Ad(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=rn.get(n.target);o||(o=new Set,rn.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=rn.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),rn.delete(n.target)),rn.size===0)){for(let i of Ls)i();Ls.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Ad():document.addEventListener("DOMContentLoaded",Ad));function rv(e){requestAnimationFrame(()=>{rn.size===0?e():Ls.add(e)})}function ua(){let e=g.useRef(new Map),t=g.useCallback((o,i,a,s)=>{let l=s!=null&&s.once?(...c)=>{e.current.delete(a),a(...c)}:a;e.current.set(a,{type:i,eventTarget:o,fn:l,options:s}),o.addEventListener(i,l,s)},[]),r=g.useCallback((o,i,a,s)=>{var l;let c=((l=e.current.get(a))===null||l===void 0?void 0:l.fn)||a;o.removeEventListener(i,c,s),e.current.delete(a)},[]),n=g.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return g.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function nv(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=He(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function pt(e){const t=g.useRef(null);return g.useMemo(()=>({get current(){return t.current},set current(r){t.current=r,typeof e=="function"?e(r):e&&(e.current=r)}}),[e])}function Ld(e,t){const r=g.useRef(!0),n=g.useRef(null);pe(()=>(r.current=!0,()=>{r.current=!1}),[]),pe(()=>{r.current?r.current=!1:(!n.current||t.some((o,i)=>!Object.is(o,n[i])))&&e(),n.current=t},t)}function J2(){return typeof window.ResizeObserver<"u"}function Ms(e){const{ref:t,box:r,onResize:n}=e;g.useEffect(()=>{let o=t==null?void 0:t.current;if(o)if(J2()){const i=new window.ResizeObserver(a=>{a.length&&n()});return i.observe(o,{box:r}),()=>{o&&i.unobserve(o)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t,r])}function Zl(e,t){pe(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function fo(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function ov(e,t){let r=e;for(fo(r,t)&&(r=r.parentElement);r&&!fo(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function Q2(e,t){const r=[];for(;e&&e!==document.documentElement;)fo(e,t)&&r.push(e),e=e.parentElement;return r}let e5=0;const Ya=new Map;function t5(e){let[t,r]=g.useState();return pe(()=>{if(!e)return;let n=Ya.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${e5++}`;r(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),n={refCount:0,element:i},Ya.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),Ya.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Xn(e,t,r,n){let o=ze(r),i=r==null;g.useEffect(()=>{if(i||!e.current)return;let a=e.current;return a.addEventListener(t,o,n),()=>{a.removeEventListener(t,o,n)}},[e,t,n,i,o])}function iv(e,t){let r=Md(e,t,"left"),n=Md(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,{borderTopWidth:l,borderLeftWidth:c,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:u,scrollPaddingLeft:p}=getComputedStyle(e),h=a+parseInt(c,10),m=s+parseInt(l,10),v=h+e.clientWidth,x=m+e.clientHeight,E=parseInt(d,10)||0,P=parseInt(u,10)||0,T=parseInt(f,10)||0,C=parseInt(p,10)||0;r<=a+C?a=r-parseInt(c,10)-C:r+o>v-T&&(a+=r+o-v+T),n<=m+E?s=n-parseInt(l,10)-E:n+i>x-P&&(s+=n+i-x+P),e.scrollLeft=a,e.scrollTop=s}function Md(e,t,r){const n=r==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function Fd(e,t){if(e&&document.contains(e)){let a=document.scrollingElement||document.documentElement;if(window.getComputedStyle(a).overflow==="hidden"){let l=Q2(e);for(let c of l)iv(c,e)}else{var r;let{left:l,top:c}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:d,top:f}=e.getBoundingClientRect();if(Math.abs(l-d)>1||Math.abs(c-f)>1){var n,o,i;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function Fs(e){return e.mozInputSource===0&&e.isTrusted?!0:Xl()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function r5(e){return!Xl()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Jl(e,t,r){let n=g.useRef(t),o=ze(()=>{r&&r(n.current)});g.useEffect(()=>{var i;let a=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return a==null||a.addEventListener("reset",o),()=>{a==null||a.removeEventListener("reset",o)}},[e,o])}const n5="react-aria-clear-focus",o5="react-aria-focus";function nn(e){return pr()?e.metaKey:e.ctrlKey}function av(e,t=!0){let[r,n]=g.useState(!0),o=r&&t;return pe(()=>{if(o&&e.current&&"getAnimations"in e.current)for(let i of e.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[e,o]),lv(e,o,g.useCallback(()=>n(!1),[])),o}function sv(e,t){let[r,n]=g.useState(t?"open":"closed");switch(r){case"open":t||n("exiting");break;case"closed":case"exiting":t&&n("open");break}let o=r==="exiting";return lv(e,o,g.useCallback(()=>{n(i=>i==="exiting"?"closed":i)},[])),o}function lv(e,t,r){pe(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){r();return}let n=e.current.getAnimations();if(n.length===0){r();return}let o=!1;return Promise.all(n.map(i=>i.finished)).then(()=>{o||Vt.flushSync(()=>{r()})}).catch(()=>{}),()=>{o=!0}}},[e,t,r])}const Ql=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'],i5=Ql.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Ql.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const a5=Ql.join(':not([hidden]):not([tabindex="-1"]),');function cv(e){return e.matches(i5)}function s5(e){return e.matches(a5)}function mr(e,t,r){let[n,o]=g.useState(e||t),i=g.useRef(e!==void 0),a=e!==void 0;g.useEffect(()=>{let c=i.current;c!==a&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}.`),i.current=a},[a]);let s=a?e:n,l=g.useCallback((c,...d)=>{let f=(u,...p)=>{r&&(Object.is(s,u)||r(u,...p)),a||(s=u)};typeof c=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((p,...h)=>{let m=c(a?s:p,...h);return f(m,...d),a?p:m})):(a||o(c),f(c,...d))},[a,s,r]);return[s,l]}function _i(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function ec(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function uv(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function dv(e){let t=g.useRef({isFocused:!1,observer:null});pe(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=ze(n=>{e==null||e(n)});return g.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,i=a=>{if(t.current.isFocused=!1,o.disabled){let s=ec(a);r(s)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let Ai=!1;function zd(e){for(;e&&!cv(e);)e=e.parentElement;let t=Je(e),r=t.document.activeElement;if(!r||r===e)return;Ai=!0;let n=!1,o=d=>{(d.target===r||n)&&d.stopImmediatePropagation()},i=d=>{(d.target===r||n)&&(d.stopImmediatePropagation(),!e&&!n&&(n=!0,Rt(r),l()))},a=d=>{(d.target===e||n)&&d.stopImmediatePropagation()},s=d=>{(d.target===e||n)&&(d.stopImmediatePropagation(),n||(n=!0,Rt(r),l()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",s,!0),t.addEventListener("focus",a,!0);let l=()=>{cancelAnimationFrame(c),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",s,!0),t.removeEventListener("focus",a,!0),Ai=!1,n=!1},c=requestAnimationFrame(l);return l}let ln="default",zs="",mi=new WeakMap;function Vd(e){if(la()){if(ln==="default"){const t=be(e);zs=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}ln="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";mi.set(e,e.style[t]),e.style[t]="none"}}function qa(e){if(la()){if(ln!=="disabled")return;ln="restoring",setTimeout(()=>{rv(()=>{if(ln==="restoring"){const t=be(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=zs||""),zs="",ln="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&mi.has(e)){let t=mi.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),mi.delete(e)}}const po=V.createContext({register:()=>{}});po.displayName="PressResponderContext";function l5(e,t){return t.get?t.get.call(e):t.value}function fv(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function c5(e,t){var r=fv(e,t,"get");return l5(e,r)}function u5(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function Bd(e,t,r){var n=fv(e,t,"set");return u5(e,n,r),r}function d5(e){let t=g.useContext(po);if(t){let{register:r,...n}=t;e=re(n,e),r()}return Zl(t,e.ref),e}var Zo=new WeakMap;class Jo{continuePropagation(){Bd(this,Zo,!1)}get shouldStopPropagation(){return c5(this,Zo)}constructor(t,r,n,o){uC(this,Zo,{writable:!0,value:void 0}),Bd(this,Zo,!0);var i;let a=(i=o==null?void 0:o.target)!==null&&i!==void 0?i:n.currentTarget;const s=a==null?void 0:a.getBoundingClientRect();let l,c=0,d,f=null;n.clientX!=null&&n.clientY!=null&&(d=n.clientX,f=n.clientY),s&&(d!=null&&f!=null?(l=d-s.left,c=f-s.top):(l=s.width/2,c=s.height/2)),this.type=t,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=l,this.y=c}}const Wd=Symbol("linkClicked");function _r(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,onClick:a,isDisabled:s,isPressed:l,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:u,...p}=d5(e),[h,m]=g.useState(!1),v=g.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:x,removeAllGlobalListeners:E}=ua(),P=ze((S,M)=>{let j=v.current;if(s||j.didFirePressStart)return!1;let z=!0;if(j.isTriggeringEvent=!0,n){let F=new Jo("pressstart",M,S);n(F),z=F.shouldStopPropagation}return r&&r(!0),j.isTriggeringEvent=!1,j.didFirePressStart=!0,m(!0),z}),T=ze((S,M,j=!0)=>{let z=v.current;if(!z.didFirePressStart)return!1;z.didFirePressStart=!1,z.isTriggeringEvent=!0;let F=!0;if(o){let w=new Jo("pressend",M,S);o(w),F=w.shouldStopPropagation}if(r&&r(!1),m(!1),t&&j&&!s){let w=new Jo("press",M,S);t(w),F&&(F=w.shouldStopPropagation)}return z.isTriggeringEvent=!1,F}),C=ze((S,M)=>{let j=v.current;if(s)return!1;if(i){j.isTriggeringEvent=!0;let z=new Jo("pressup",M,S);return i(z),j.isTriggeringEvent=!1,z.shouldStopPropagation}return!0}),k=ze(S=>{let M=v.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&T(Jr(M.target,S),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,E(),f||qa(M.target);for(let j of M.disposables)j();M.disposables=[]}}),D=ze(S=>{d&&k(S)}),R=ze(S=>{a==null||a(S)}),_=ze((S,M)=>{if(a){let j=new MouseEvent("click",S);uv(j,M),a(ec(j))}}),N=g.useMemo(()=>{let S=v.current,M={onKeyDown(z){if(Xa(z.nativeEvent,z.currentTarget)&&Te(z.currentTarget,me(z.nativeEvent))){var F;jd(me(z.nativeEvent),z.key)&&z.preventDefault();let w=!0;if(!S.isPressed&&!z.repeat){S.target=z.currentTarget,S.isPressed=!0,S.pointerType="keyboard",w=P(z,"keyboard");let L=z.currentTarget,$=K=>{Xa(K,L)&&!K.repeat&&Te(L,me(K))&&S.target&&C(Jr(S.target,K),"keyboard")};x(be(z.currentTarget),"keyup",fr($,j),!0)}w&&z.stopPropagation(),z.metaKey&&pr()&&((F=S.metaKeyEvents)===null||F===void 0||F.set(z.key,z.nativeEvent))}else z.key==="Meta"&&(S.metaKeyEvents=new Map)},onClick(z){if(!(z&&!Te(z.currentTarget,me(z.nativeEvent)))&&z&&z.button===0&&!S.isTriggeringEvent&&!Dr.isOpening){let F=!0;if(s&&z.preventDefault(),!S.ignoreEmulatedMouseEvents&&!S.isPressed&&(S.pointerType==="virtual"||Fs(z.nativeEvent))){let w=P(z,"virtual"),L=C(z,"virtual"),$=T(z,"virtual");R(z),F=w&&L&&$}else if(S.isPressed&&S.pointerType!=="keyboard"){let w=S.pointerType||z.nativeEvent.pointerType||"virtual";F=T(Jr(z.currentTarget,z),w,!0),S.isOverTarget=!1,R(z),k(z)}S.ignoreEmulatedMouseEvents=!1,F&&z.stopPropagation()}}},j=z=>{var F;if(S.isPressed&&S.target&&Xa(z,S.target)){var w;jd(me(z),z.key)&&z.preventDefault();let $=me(z),K=Te(S.target,me(z));T(Jr(S.target,z),"keyboard",K),K&&_(z,S.target),E(),z.key!=="Enter"&&tc(S.target)&&Te(S.target,$)&&!z[Wd]&&(z[Wd]=!0,Dr(S.target,z,!1)),S.isPressed=!1,(w=S.metaKeyEvents)===null||w===void 0||w.delete(z.key)}else if(z.key==="Meta"&&(!((F=S.metaKeyEvents)===null||F===void 0)&&F.size)){var L;let $=S.metaKeyEvents;S.metaKeyEvents=void 0;for(let K of $.values())(L=S.target)===null||L===void 0||L.dispatchEvent(new KeyboardEvent("keyup",K))}};if(typeof PointerEvent<"u"){M.onPointerDown=w=>{if(w.button!==0||!Te(w.currentTarget,me(w.nativeEvent)))return;if(r5(w.nativeEvent)){S.pointerType="virtual";return}S.pointerType=w.pointerType;let L=!0;if(!S.isPressed){S.isPressed=!0,S.isOverTarget=!0,S.activePointerId=w.pointerId,S.target=w.currentTarget,f||Vd(S.target),L=P(w,S.pointerType);let $=me(w.nativeEvent);"releasePointerCapture"in $&&$.releasePointerCapture(w.pointerId),x(be(w.currentTarget),"pointerup",z,!1),x(be(w.currentTarget),"pointercancel",F,!1)}L&&w.stopPropagation()},M.onMouseDown=w=>{if(Te(w.currentTarget,me(w.nativeEvent))&&w.button===0){if(c){let L=zd(w.target);L&&S.disposables.push(L)}w.stopPropagation()}},M.onPointerUp=w=>{!Te(w.currentTarget,me(w.nativeEvent))||S.pointerType==="virtual"||w.button===0&&C(w,S.pointerType||w.pointerType)},M.onPointerEnter=w=>{w.pointerId===S.activePointerId&&S.target&&!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,P(Jr(S.target,w),S.pointerType))},M.onPointerLeave=w=>{w.pointerId===S.activePointerId&&S.target&&S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,T(Jr(S.target,w),S.pointerType,!1),D(w))};let z=w=>{if(w.pointerId===S.activePointerId&&S.isPressed&&w.button===0&&S.target){if(Te(S.target,me(w))&&S.pointerType!=null){let L=!1,$=setTimeout(()=>{S.isPressed&&S.target instanceof HTMLElement&&(L?k(w):(Rt(S.target),S.target.click()))},80);x(w.currentTarget,"click",()=>L=!0,!0),S.disposables.push(()=>clearTimeout($))}else k(w);S.isOverTarget=!1}},F=w=>{k(w)};M.onDragStart=w=>{Te(w.currentTarget,me(w.nativeEvent))&&k(w)}}else if(process.env.NODE_ENV==="test"){M.onMouseDown=w=>{if(w.button!==0||!Te(w.currentTarget,me(w.nativeEvent)))return;if(S.ignoreEmulatedMouseEvents){w.stopPropagation();return}if(S.isPressed=!0,S.isOverTarget=!0,S.target=w.currentTarget,S.pointerType=Fs(w.nativeEvent)?"virtual":"mouse",Vt.flushSync(()=>P(w,S.pointerType))&&w.stopPropagation(),c){let $=zd(w.target);$&&S.disposables.push($)}x(be(w.currentTarget),"mouseup",z,!1)},M.onMouseEnter=w=>{if(!Te(w.currentTarget,me(w.nativeEvent)))return;let L=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!0,L=P(w,S.pointerType)),L&&w.stopPropagation()},M.onMouseLeave=w=>{if(!Te(w.currentTarget,me(w.nativeEvent)))return;let L=!0;S.isPressed&&!S.ignoreEmulatedMouseEvents&&S.pointerType!=null&&(S.isOverTarget=!1,L=T(w,S.pointerType,!1),D(w)),L&&w.stopPropagation()},M.onMouseUp=w=>{Te(w.currentTarget,me(w.nativeEvent))&&!S.ignoreEmulatedMouseEvents&&w.button===0&&C(w,S.pointerType||"mouse")};let z=w=>{if(w.button===0){if(S.ignoreEmulatedMouseEvents){S.ignoreEmulatedMouseEvents=!1;return}S.target&&S.target.contains(w.target)&&S.pointerType!=null||k(w),S.isOverTarget=!1}};M.onTouchStart=w=>{if(!Te(w.currentTarget,me(w.nativeEvent)))return;let L=f5(w.nativeEvent);if(!L)return;S.activePointerId=L.identifier,S.ignoreEmulatedMouseEvents=!0,S.isOverTarget=!0,S.isPressed=!0,S.target=w.currentTarget,S.pointerType="touch",f||Vd(S.target),P(nr(S.target,w),S.pointerType)&&w.stopPropagation(),x(Je(w.currentTarget),"scroll",F,!0)},M.onTouchMove=w=>{if(!Te(w.currentTarget,me(w.nativeEvent)))return;if(!S.isPressed){w.stopPropagation();return}let L=Hd(w.nativeEvent,S.activePointerId),$=!0;L&&Kd(L,w.currentTarget)?!S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!0,$=P(nr(S.target,w),S.pointerType)):S.isOverTarget&&S.pointerType!=null&&(S.isOverTarget=!1,$=T(nr(S.target,w),S.pointerType,!1),D(nr(S.target,w))),$&&w.stopPropagation()},M.onTouchEnd=w=>{if(!Te(w.currentTarget,me(w.nativeEvent)))return;if(!S.isPressed){w.stopPropagation();return}let L=Hd(w.nativeEvent,S.activePointerId),$=!0;L&&Kd(L,w.currentTarget)&&S.pointerType!=null?(C(nr(S.target,w),S.pointerType),$=T(nr(S.target,w),S.pointerType),_(w.nativeEvent,S.target)):S.isOverTarget&&S.pointerType!=null&&($=T(nr(S.target,w),S.pointerType,!1)),$&&w.stopPropagation(),S.isPressed=!1,S.activePointerId=null,S.isOverTarget=!1,S.ignoreEmulatedMouseEvents=!0,S.target&&!f&&qa(S.target),E()},M.onTouchCancel=w=>{Te(w.currentTarget,me(w.nativeEvent))&&(w.stopPropagation(),S.isPressed&&k(nr(S.target,w)))};let F=w=>{S.isPressed&&Te(me(w),S.target)&&k({currentTarget:S.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};M.onDragStart=w=>{Te(w.currentTarget,me(w.nativeEvent))&&k(w)}}return M},[x,s,c,E,f,k,D,T,P,C,R,_]);return g.useEffect(()=>{let S=u==null?void 0:u.current;S&&S instanceof Je(S).Element&&Je(S).getComputedStyle(S).touchAction==="auto"&&(S.style.touchAction="pan-x pan-y pinch-zoom")},[u]),g.useEffect(()=>{let S=v.current;return()=>{var M;f||qa((M=S.target)!==null&&M!==void 0?M:void 0);for(let j of S.disposables)j();S.disposables=[]}},[f]),{isPressed:l||h,pressProps:re(p,N)}}function tc(e){return e.tagName==="A"&&e.hasAttribute("href")}function Xa(e,t){const{key:r,code:n}=e,o=t,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof Je(o).HTMLInputElement&&!pv(o,r)||o instanceof Je(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&tc(o))&&r!=="Enter")}function f5(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Hd(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function nr(e,t){let r=0,n=0;return t.targetTouches&&t.targetTouches.length===1&&(r=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function Jr(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function p5(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function g5(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Kd(e,t){let r=t.getBoundingClientRect(),n=p5(e);return g5(r,n)}function h5(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!tc(e)}function jd(e,t){return e instanceof HTMLInputElement?!pv(e,t):h5(e)}const m5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function pv(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":m5.has(e.type)}let Vr=null,Vs=new Set,no=new Map,Ar=!1,Bs=!1;const v5={Tab:!0,Escape:!0};function da(e,t){for(let r of Vs)r(e,t)}function b5(e){return!(e.metaKey||!pr()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Li(e){Ar=!0,b5(e)&&(Vr="keyboard",da("keyboard",e))}function vt(e){Vr="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ar=!0,da("pointer",e))}function gv(e){Fs(e)&&(Ar=!0,Vr="virtual")}function hv(e){e.target===window||e.target===document||Ai||!e.isTrusted||(!Ar&&!Bs&&(Vr="virtual",da("virtual",e)),Ar=!1,Bs=!1)}function mv(){Ai||(Ar=!1,Bs=!0)}function Ws(e){if(typeof window>"u"||no.get(Je(e)))return;const t=Je(e),r=be(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ar=!0,n.apply(this,arguments)},r.addEventListener("keydown",Li,!0),r.addEventListener("keyup",Li,!0),r.addEventListener("click",gv,!0),t.addEventListener("focus",hv,!0),t.addEventListener("blur",mv,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",vt,!0),r.addEventListener("pointermove",vt,!0),r.addEventListener("pointerup",vt,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",vt,!0),r.addEventListener("mousemove",vt,!0),r.addEventListener("mouseup",vt,!0)),t.addEventListener("beforeunload",()=>{vv(e)},{once:!0}),no.set(t,{focus:n})}const vv=(e,t)=>{const r=Je(e),n=be(e);t&&n.removeEventListener("DOMContentLoaded",t),no.has(r)&&(r.HTMLElement.prototype.focus=no.get(r).focus,n.removeEventListener("keydown",Li,!0),n.removeEventListener("keyup",Li,!0),n.removeEventListener("click",gv,!0),r.removeEventListener("focus",hv,!0),r.removeEventListener("blur",mv,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",vt,!0),n.removeEventListener("pointermove",vt,!0),n.removeEventListener("pointerup",vt,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",vt,!0),n.removeEventListener("mousemove",vt,!0),n.removeEventListener("mouseup",vt,!0)),no.delete(r))};function y5(e){const t=be(e);let r;return t.readyState!=="loading"?Ws(e):(r=()=>{Ws(e)},t.addEventListener("DOMContentLoaded",r)),()=>vv(e,r)}typeof document<"u"&&y5();function go(){return Vr!=="pointer"}function ho(){return Vr}function bv(e){Vr=e,da(e,null)}const x5=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function S5(e,t,r){let n=be(r==null?void 0:r.target);const o=typeof window<"u"?Je(r==null?void 0:r.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?Je(r==null?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?Je(r==null?void 0:r.target).HTMLElement:HTMLElement,s=typeof window<"u"?Je(r==null?void 0:r.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof o&&!x5.has(n.activeElement.type)||n.activeElement instanceof i||n.activeElement instanceof a&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof s&&!v5[r.key])}function w5(e,t,r){Ws(),g.useEffect(()=>{let n=(o,i)=>{S5(!!(r!=null&&r.isTextInput),o,i)&&e(go())};return Vs.add(n),()=>{Vs.delete(n)}},t)}function gr(e){const t=be(e),r=Ge(t);if(ho()==="virtual"){let n=r;rv(()=>{Ge(t)===n&&e.isConnected&&Rt(e)})}else Rt(e)}function yv(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const i=g.useCallback(l=>{if(l.target===l.currentTarget)return n&&n(l),o&&o(!1),!0},[n,o]),a=dv(i),s=g.useCallback(l=>{const c=be(l.target),d=c?Ge(c):Ge();l.target===l.currentTarget&&d===me(l.nativeEvent)&&(r&&r(l),o&&o(!0),a(l))},[o,r,a]);return{focusProps:{onFocus:!t&&(r||o||n)?s:void 0,onBlur:!t&&(n||o)?i:void 0}}}function Ud(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(n),t&&r.stopPropagation()}}function E5(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Ud(e.onKeyDown),onKeyUp:Ud(e.onKeyUp)}}}let Mi=V.createContext(null);function C5(e){let t=g.useContext(Mi)||{};Zl(t,e);let{ref:r,...n}=t;return n}const P5=V.forwardRef(function(t,r){let{children:n,...o}=t,i=pt(r),a={...o,ref:i};return V.createElement(Mi.Provider,{value:a},n)});function $n(e,t){let{focusProps:r}=yv(e),{keyboardProps:n}=E5(e),o=re(r,n),i=C5(t),a=e.isDisabled?{}:i,s=g.useRef(e.autoFocus);g.useEffect(()=>{s.current&&t.current&&gr(t.current),s.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:re({...o,tabIndex:l},a)}}const k5=V.forwardRef(({children:e,...t},r)=>{let n=g.useRef(!1),o=g.useContext(po);r=pt(r||(o==null?void 0:o.ref));let i=re(o||{},{...t,ref:r,register(){n.current=!0,o&&o.register()}});return Zl(o,r),g.useEffect(()=>{n.current||(process.env.NODE_ENV!=="production"&&console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),n.current=!0)},[]),V.createElement(po.Provider,{value:i},e)});function $5({children:e}){let t=g.useMemo(()=>({register:()=>{}}),[]);return V.createElement(po.Provider,{value:t},e)}function fa(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,i=g.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:s}=ua(),l=g.useCallback(f=>{f.currentTarget.contains(f.target)&&i.current.isFocusWithin&&!f.currentTarget.contains(f.relatedTarget)&&(i.current.isFocusWithin=!1,s(),r&&r(f),o&&o(!1))},[r,o,i,s]),c=dv(l),d=g.useCallback(f=>{if(!f.currentTarget.contains(f.target))return;const u=be(f.target),p=Ge(u);if(!i.current.isFocusWithin&&p===me(f.nativeEvent)){n&&n(f),o&&o(!0),i.current.isFocusWithin=!0,c(f);let h=f.currentTarget;a(u,"focus",m=>{if(i.current.isFocusWithin&&!Te(h,m.target)){let v=new u.defaultView.FocusEvent("blur",{relatedTarget:m.target});uv(v,h);let x=ec(v);l(x)}},{capture:!0})}},[n,o,c,a,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:l}}}let Fi=!1,Za=0;function Hs(){Fi=!0,setTimeout(()=>{Fi=!1},50)}function Gd(e){e.pointerType==="touch"&&Hs()}function T5(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Gd):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Hs),Za++,()=>{Za--,!(Za>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Gd):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Hs))}}function Br(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[i,a]=g.useState(!1),s=g.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;g.useEffect(T5,[]);let{addGlobalListener:l,removeAllGlobalListeners:c}=ua(),{hoverProps:d,triggerHoverEnd:f}=g.useMemo(()=>{let u=(m,v)=>{if(s.pointerType=v,o||v==="touch"||s.isHovered||!m.currentTarget.contains(m.target))return;s.isHovered=!0;let x=m.currentTarget;s.target=x,l(be(m.target),"pointerover",E=>{s.isHovered&&s.target&&!Te(s.target,E.target)&&p(E,E.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:x,pointerType:v}),r&&r(!0),a(!0)},p=(m,v)=>{let x=s.target;s.pointerType="",s.target=null,!(v==="touch"||!s.isHovered||!x)&&(s.isHovered=!1,c(),n&&n({type:"hoverend",target:x,pointerType:v}),r&&r(!1),a(!1))},h={};return typeof PointerEvent<"u"?(h.onPointerEnter=m=>{Fi&&m.pointerType==="mouse"||u(m,m.pointerType)},h.onPointerLeave=m=>{!o&&m.currentTarget.contains(m.target)&&p(m,m.pointerType)}):process.env.NODE_ENV==="test"&&(h.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},h.onMouseEnter=m=>{!s.ignoreEmulatedMouseEvents&&!Fi&&u(m,"mouse"),s.ignoreEmulatedMouseEvents=!1},h.onMouseLeave=m=>{!o&&m.currentTarget.contains(m.target)&&p(m,"mouse")}),{hoverProps:h,triggerHoverEnd:p}},[t,r,n,o,s,l,c]);return g.useEffect(()=>{o&&f({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:d,isHovered:i}}function R5(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,i=g.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),a=ze(l=>{r&&Qo(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),s=ze(l=>{r&&r(l)});g.useEffect(()=>{let l=i.current;if(n)return;const c=t.current,d=be(c);if(typeof PointerEvent<"u"){let f=u=>{l.isPointerDown&&Qo(u,t)&&s(u),l.isPointerDown=!1};return d.addEventListener("pointerdown",a,!0),d.addEventListener("pointerup",f,!0),()=>{d.removeEventListener("pointerdown",a,!0),d.removeEventListener("pointerup",f,!0)}}else if(process.env.NODE_ENV==="test"){let f=p=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&Qo(p,t)&&s(p),l.isPointerDown=!1},u=p=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&Qo(p,t)&&s(p),l.isPointerDown=!1};return d.addEventListener("mousedown",a,!0),d.addEventListener("mouseup",f,!0),d.addEventListener("touchstart",a,!0),d.addEventListener("touchend",u,!0),()=>{d.removeEventListener("mousedown",a,!0),d.removeEventListener("mouseup",f,!0),d.removeEventListener("touchstart",a,!0),d.removeEventListener("touchend",u,!0)}}},[t,n,a,s])}function Qo(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}const O5=500;function xv(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:i=O5,accessibilityDescription:a}=e;const s=g.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:c}=ua(),{pressProps:d}=_r({isDisabled:t,onPressStart(u){if(u.continuePropagation(),(u.pointerType==="mouse"||u.pointerType==="touch")&&(r&&r({...u,type:"longpressstart"}),s.current=setTimeout(()=>{u.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),be(u.target).activeElement!==u.target&&Rt(u.target),o&&o({...u,type:"longpress"}),s.current=void 0},i),u.pointerType==="touch")){let p=h=>{h.preventDefault()};l(u.target,"contextmenu",p,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{c(u.target,"contextmenu",p)},30)},{once:!0})}},onPressEnd(u){s.current&&clearTimeout(s.current),n&&(u.pointerType==="mouse"||u.pointerType==="touch")&&n({...u,type:"longpressend"})}}),f=t5(o&&!t?a:void 0);return{longPressProps:re(d,f)}}function I5(e,t){let{elementType:r="a",onPress:n,onPressStart:o,onPressEnd:i,onClick:a,isDisabled:s,...l}=e,c={};r!=="a"&&(c={role:"link",tabIndex:s?void 0:0});let{focusableProps:d}=$n(e,t),{pressProps:f,isPressed:u}=_r({onPress:n,onPressStart:o,onPressEnd:i,onClick:a,isDisabled:s,ref:t}),p=Ve(l,{labelable:!0}),h=re(d,f),m=ca(),v=tv(e);return{isPressed:u,linkProps:re(p,v,{...h,...c,"aria-disabled":s||void 0,"aria-current":e["aria-current"],onClick:x=>{var E;(E=f.onClick)===null||E===void 0||E.call(f,x),!m.isNative&&x.currentTarget instanceof HTMLAnchorElement&&x.currentTarget.href&&!x.isDefaultPrevented()&&q2(x.currentTarget,x)&&e.href&&(x.preventDefault(),m.open(x.currentTarget,x,e.href,e.routerOptions))}})}}const N5=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),D5=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function _5(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return N5.has(r.script)}let t=e.split("-")[0];return D5.has(t)}const A5=Symbol.for("react-aria.i18n.locale");function Sv(){let e=typeof window<"u"&&window[A5]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:_5(e)?"rtl":"ltr"}}let Ks=Sv(),Zn=new Set;function Yd(){Ks=Sv();for(let e of Zn)e(Ks)}function L5(){let e=zr(),[t,r]=g.useState(Ks);return g.useEffect(()=>(Zn.size===0&&window.addEventListener("languagechange",Yd),Zn.add(r),()=>{Zn.delete(r),Zn.size===0&&window.removeEventListener("languagechange",Yd)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const M5=V.createContext(null);function vr(){let e=L5();return g.useContext(M5)||e}const F5=Symbol.for("react-aria.i18n.locale"),z5=Symbol.for("react-aria.i18n.strings");let Qr;class pa{getStringForLocale(t,r){let o=this.getStringsForLocale(r)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${r} locale`);return o}getStringsForLocale(t){let r=this.strings[t];return r||(r=V5(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[F5];if(Qr===void 0){let o=window[z5];if(!o)return null;Qr={};for(let i in o)Qr[i]=new pa({[r]:o[i]},r)}let n=Qr==null?void 0:Qr[t];if(!n)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,n])=>n)),this.defaultLocale=r}}function V5(e,t,r="en-US"){if(t[e])return t[e];let n=B5(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function B5(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const qd=new Map,Xd=new Map;class W5{format(t,r){let n=this.strings.getStringForLocale(t,this.locale);return typeof n=="function"?n(r,this):n}plural(t,r,n="cardinal"){let o=r["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+n,a=qd.get(i);a||(a=new Intl.PluralRules(this.locale,{type:n}),qd.set(i,a));let s=a.select(t);return o=r[s]||r.other,typeof o=="function"?o():o}number(t){let r=Xd.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),Xd.set(this.locale,r)),r.format(t)}select(t,r){let n=t[r]||t.other;return typeof n=="function"?n():n}constructor(t,r){this.locale=t,this.strings=r}}const Zd=new WeakMap;function H5(e){let t=Zd.get(e);return t||(t=new pa(e),Zd.set(e,t)),t}function K5(e,t){return t&&pa.getGlobalDictionaryForPackage(t)||H5(e)}function rc(e,t){let{locale:r}=vr(),n=K5(e,t);return g.useMemo(()=>new W5(r,n),[r,n])}function j5(e={}){let{locale:t}=vr();return g.useMemo(()=>new Fh(t,e),[t,e])}let Ja=new Map;function nc(e){let{locale:t}=vr(),r=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(Ja.has(r))return Ja.get(r);let n=new Intl.Collator(t,e);return Ja.set(r,n),n}function ga(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:a,onPressUp:s,onPressChange:l,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:f,href:u,target:p,rel:h,type:m="button"}=e,v;r==="button"?v={type:m,disabled:n}:v={role:"button",href:r==="a"&&!n?u:void 0,target:r==="a"?p:void 0,type:r==="input"?m:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?h:void 0};let{pressProps:x,isPressed:E}=_r({onPressStart:i,onPressEnd:a,onPressChange:l,onPress:o,onPressUp:s,onClick:f,isDisabled:n,preventFocusOnPress:c,ref:t}),{focusableProps:P}=$n(e,t);d&&(P.tabIndex=n?-1:P.tabIndex);let T=re(P,x,Ve(e,{labelable:!0}));return{isPressed:E,buttonProps:re(v,T,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}function wv(e,t,r){const{isSelected:n}=t,{isPressed:o,buttonProps:i}=ga({...e,onPress:fr(t.toggle,e.onPress)},r);return{isPressed:o,isSelected:n,isDisabled:e.isDisabled||!1,buttonProps:re(i,{"aria-pressed":n})}}function U5(e){const t=Je(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:a,visibility:s}=i(e);o=a!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function G5(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Ev(e,t){return e.nodeName!=="#comment"&&U5(e)&&G5(e,t)&&(!e.parentElement||Ev(e.parentElement,e))}const Jd=V.createContext(null),js="react-aria-focus-scope-restore";let $e=null;function Cv(e){let{children:t,contain:r,restoreFocus:n,autoFocus:o}=e,i=g.useRef(null),a=g.useRef(null),s=g.useRef([]),{parentNode:l}=g.useContext(Jd)||{},c=g.useMemo(()=>new Gs({scopeRef:s}),[s]);pe(()=>{let u=l||Le.root;if(Le.getTreeNode(u.scopeRef)&&$e&&!zi($e,u.scopeRef)){let p=Le.getTreeNode($e);p&&(u=p)}u.addChild(c),Le.addNode(c)},[c,l]),pe(()=>{let u=Le.getTreeNode(s);u&&(u.contain=!!r)},[r]),pe(()=>{var u;let p=(u=i.current)===null||u===void 0?void 0:u.nextSibling,h=[],m=v=>v.stopPropagation();for(;p&&p!==a.current;)h.push(p),p.addEventListener(js,m),p=p.nextSibling;return s.current=h,()=>{for(let v of h)v.removeEventListener(js,m)}},[t]),J5(s,n,r),q5(s,r),Q5(s,n,r),Z5(s,o),g.useEffect(()=>{const u=Ge(be(s.current?s.current[0]:void 0));let p=null;if(xt(u,s.current)){for(let h of Le.traverse())h.scopeRef&&xt(u,h.scopeRef.current)&&(p=h);p===Le.getTreeNode(s)&&($e=p.scopeRef)}},[s]),pe(()=>()=>{var u,p,h;let m=(h=(p=Le.getTreeNode(s))===null||p===void 0||(u=p.parent)===null||u===void 0?void 0:u.scopeRef)!==null&&h!==void 0?h:null;(s===$e||zi(s,$e))&&(!m||Le.getTreeNode(m))&&($e=m),Le.removeTreeNode(s)},[s]);let d=g.useMemo(()=>Y5(s),[]),f=g.useMemo(()=>({focusManager:d,parentNode:c}),[c,d]);return V.createElement(Jd.Provider,{value:f},V.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,V.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function Y5(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:a}=t;var s;let l=n||Ge(be((s=r[0])!==null&&s!==void 0?s:void 0)),c=r[0].previousElementSibling,d=Or(r),f=ct(d,{tabbable:o,accept:a},r);f.currentNode=xt(l,r)?l:c;let u=f.nextNode();return!u&&i&&(f.currentNode=c,u=f.nextNode()),u&&nt(u,!0),u},focusPrevious(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:a}=t;var s;let l=n||Ge(be((s=r[0])!==null&&s!==void 0?s:void 0)),c=r[r.length-1].nextElementSibling,d=Or(r),f=ct(d,{tabbable:o,accept:a},r);f.currentNode=xt(l,r)?l:c;let u=f.previousNode();return!u&&i&&(f.currentNode=c,u=f.previousNode()),u&&nt(u,!0),u},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=Or(r),a=ct(i,{tabbable:n,accept:o},r);a.currentNode=r[0].previousElementSibling;let s=a.nextNode();return s&&nt(s,!0),s},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=Or(r),a=ct(i,{tabbable:n,accept:o},r);a.currentNode=r[r.length-1].nextElementSibling;let s=a.previousNode();return s&&nt(s,!0),s}}}function Or(e){return e[0].parentElement}function Jn(e){let t=Le.getTreeNode($e);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function q5(e,t){let r=g.useRef(void 0),n=g.useRef(void 0);pe(()=>{let o=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}const i=be(o?o[0]:void 0);let a=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!Jn(e)||c.isComposing)return;let d=Ge(i),f=e.current;if(!f||!xt(d,f))return;let u=Or(f),p=ct(u,{tabbable:!0},f);if(!d)return;p.currentNode=d;let h=c.shiftKey?p.previousNode():p.nextNode();h||(p.currentNode=c.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,h=c.shiftKey?p.previousNode():p.nextNode()),c.preventDefault(),h&&nt(h,!0)},s=c=>{(!$e||zi($e,e))&&xt(me(c),e.current)?($e=e,r.current=me(c)):Jn(e)&&!ir(me(c),e)?r.current?r.current.focus():$e&&$e.current&&Us($e.current):Jn(e)&&(r.current=me(c))},l=c=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let d=ho(),f=(d==="virtual"||d===null)&&Xl()&&ev(),u=Ge(i);if(!f&&u&&Jn(e)&&!ir(u,e)){$e=e;let h=me(c);if(h&&h.isConnected){var p;r.current=h,(p=r.current)===null||p===void 0||p.focus()}else $e.current&&Us($e.current)}})};return i.addEventListener("keydown",a,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(c=>c.addEventListener("focusin",s,!1)),o==null||o.forEach(c=>c.addEventListener("focusout",l,!1)),()=>{i.removeEventListener("keydown",a,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(c=>c.removeEventListener("focusin",s,!1)),o==null||o.forEach(c=>c.removeEventListener("focusout",l,!1))}},[e,t]),pe(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function Pv(e){return ir(e)}function xt(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function ir(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of Le.traverse(Le.getTreeNode(t)))if(r&&xt(e,r.current))return!0;return!1}function X5(e){return ir(e,$e)}function zi(e,t){var r;let n=(r=Le.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function nt(e,t=!1){if(e!=null&&!t)try{gr(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function kv(e,t=!0){let r=e[0].previousElementSibling,n=Or(e),o=ct(n,{tabbable:t},e);o.currentNode=r;let i=o.nextNode();return t&&!i&&(n=Or(e),o=ct(n,{tabbable:!1},e),o.currentNode=r,i=o.nextNode()),i}function Us(e,t=!0){nt(kv(e,t))}function Z5(e,t){const r=V.useRef(t);g.useEffect(()=>{if(r.current){$e=e;const n=be(e.current?e.current[0]:void 0);!xt(Ge(n),$e.current)&&e.current&&Us(e.current)}r.current=!1},[e])}function J5(e,t,r){pe(()=>{if(t||r)return;let n=e.current;const o=be(n?n[0]:void 0);let i=a=>{let s=me(a);xt(s,e.current)?$e=e:Pv(s)||($e=null)};return o.addEventListener("focusin",i,!1),n==null||n.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),n==null||n.forEach(a=>a.removeEventListener("focusin",i,!1))}},[e,t,r])}function Qd(e){let t=Le.getTreeNode($e);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function Q5(e,t,r){const n=g.useRef(typeof document<"u"?Ge(be(e.current?e.current[0]:void 0)):null);pe(()=>{let o=e.current;const i=be(o?o[0]:void 0);if(!t||r)return;let a=()=>{(!$e||zi($e,e))&&xt(Ge(i),e.current)&&($e=e)};return i.addEventListener("focusin",a,!1),o==null||o.forEach(s=>s.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",a,!1))}},[e,r]),pe(()=>{const o=be(e.current?e.current[0]:void 0);if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!Jn(e)||a.isComposing)return;let s=o.activeElement;if(!ir(s,e)||!Qd(e))return;let l=Le.getTreeNode(e);if(!l)return;let c=l.nodeToRestore,d=ct(o.body,{tabbable:!0});d.currentNode=s;let f=a.shiftKey?d.previousNode():d.nextNode();if((!c||!c.isConnected||c===o.body)&&(c=void 0,l.nodeToRestore=void 0),(!f||!ir(f,e))&&c){d.currentNode=c;do f=a.shiftKey?d.previousNode():d.nextNode();while(ir(f,e));a.preventDefault(),a.stopPropagation(),f?nt(f,!0):Pv(c)?nt(c,!0):s.blur()}};return r||o.addEventListener("keydown",i,!0),()=>{r||o.removeEventListener("keydown",i,!0)}},[e,t,r]),pe(()=>{const o=be(e.current?e.current[0]:void 0);if(!t)return;let i=Le.getTreeNode(e);if(i){var a;return i.nodeToRestore=(a=n.current)!==null&&a!==void 0?a:void 0,()=>{let s=Le.getTreeNode(e);if(!s)return;let l=s.nodeToRestore,c=Ge(o);if(t&&l&&(c&&ir(c,e)||c===o.body&&Qd(e))){let d=Le.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let f=d.getTreeNode(e);for(;f;){if(f.nodeToRestore&&f.nodeToRestore.isConnected){ef(f.nodeToRestore);return}f=f.parent}for(f=d.getTreeNode(e);f;){if(f.scopeRef&&f.scopeRef.current&&Le.getTreeNode(f.scopeRef)){let u=kv(f.scopeRef.current,!0);ef(u);return}f=f.parent}}})}}}},[e,t])}function ef(e){e.dispatchEvent(new CustomEvent(js,{bubbles:!0,cancelable:!0}))&&nt(e)}function ct(e,t,r){let n=t!=null&&t.tabbable?s5:cv,o=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,i=be(o),a=L2(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(s){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(s)?NodeFilter.FILTER_REJECT:n(s)&&Ev(s)&&(!r||xt(s,r))&&(!(t!=null&&t.accept)||t.accept(s))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(a.currentNode=t.from),a}function eO(e,t={}){return{focusNext(r={}){let n=e.current;if(!n)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=r,l=o||Ge(be(n)),c=ct(n,{tabbable:i,accept:s});n.contains(l)&&(c.currentNode=l);let d=c.nextNode();return!d&&a&&(c.currentNode=n,d=c.nextNode()),d&&nt(d,!0),d},focusPrevious(r=t){let n=e.current;if(!n)return null;let{from:o,tabbable:i=t.tabbable,wrap:a=t.wrap,accept:s=t.accept}=r,l=o||Ge(be(n)),c=ct(n,{tabbable:i,accept:s});if(n.contains(l))c.currentNode=l;else{let f=Qa(c);return f&&nt(f,!0),f??null}let d=c.previousNode();if(!d&&a){c.currentNode=n;let f=Qa(c);if(!f)return null;d=f}return d&&nt(d,!0),d??null},focusFirst(r=t){let n=e.current;if(!n)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=r,s=ct(n,{tabbable:o,accept:i}).nextNode();return s&&nt(s,!0),s},focusLast(r=t){let n=e.current;if(!n)return null;let{tabbable:o=t.tabbable,accept:i=t.accept}=r,a=ct(n,{tabbable:o,accept:i}),s=Qa(a);return s&&nt(s,!0),s??null}}}function Qa(e){let t,r;do r=e.lastChild(),r&&(t=r);while(r);return t}class oc{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let i=new Gs({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),n&&(i.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&xt(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(i=>n&&n.addChild(i))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new oc;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new Gs({scopeRef:null}),this.fastMap.set(null,this.root)}}class Gs{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Le=new oc;function br(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=g.useRef({isFocused:!1,isFocusVisible:t||go()}),[i,a]=g.useState(!1),[s,l]=g.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=g.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),d=g.useCallback(p=>{o.current.isFocused=p,a(p),c()},[c]);w5(p=>{o.current.isFocusVisible=p,c()},[],{isTextInput:r});let{focusProps:f}=yv({isDisabled:n,onFocusChange:d}),{focusWithinProps:u}=fa({isDisabled:!n,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:s,focusProps:n?u:f}}function $v(e){let t=nO(be(e));t!==e&&(t&&tO(t,e),e&&rO(e,t))}function tO(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function rO(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function nO(e){let t=Ge(e),r=t==null?void 0:t.getAttribute("aria-activedescendant");return r&&e.getElementById(r)||t}function oO(e,t){const{"aria-label":r,"aria-labelledby":n,orientation:o="horizontal"}=e;let[i,a]=g.useState(!1);pe(()=>{var h;a(!!(t.current&&(!((h=t.current.parentElement)===null||h===void 0)&&h.closest('[role="toolbar"]'))))});const{direction:s}=vr(),l=s==="rtl"&&o==="horizontal";let c=eO(t);const d=h=>{if(h.currentTarget.contains(h.target)){if(o==="horizontal"&&h.key==="ArrowRight"||o==="vertical"&&h.key==="ArrowDown")l?c.focusPrevious():c.focusNext();else if(o==="horizontal"&&h.key==="ArrowLeft"||o==="vertical"&&h.key==="ArrowUp")l?c.focusNext():c.focusPrevious();else if(h.key==="Tab"){h.stopPropagation(),f.current=document.activeElement,h.shiftKey?c.focusFirst():c.focusLast();return}else return;h.stopPropagation(),h.preventDefault()}},f=g.useRef(null),u=h=>{!h.currentTarget.contains(h.relatedTarget)&&!f.current&&(f.current=h.target)},p=h=>{var m;if(f.current&&!h.currentTarget.contains(h.relatedTarget)&&(!((m=t.current)===null||m===void 0)&&m.contains(h.target))){var v;(v=f.current)===null||v===void 0||v.focus(),f.current=null}};return{toolbarProps:{...Ve(e,{labelable:!0}),role:i?"group":"toolbar","aria-orientation":o,"aria-label":r,"aria-labelledby":r==null?n:void 0,onKeyDownCapture:i?void 0:d,onFocusCapture:i?void 0:p,onBlurCapture:i?void 0:u}}}function iO(e,t,r){let{isDisabled:n}=e,{toolbarProps:o}=oO(e,r);return{groupProps:{...o,role:t.selectionMode==="single"?"radiogroup":o.role,"aria-disabled":n}}}function aO(e,t,r){let n={isSelected:t.selectedKeys.has(e.id),setSelected(l){t.setSelected(e.id,l)},toggle(){t.toggleKey(e.id)}},{isPressed:o,isSelected:i,isDisabled:a,buttonProps:s}=wv({...e,id:void 0,isDisabled:e.isDisabled||t.isDisabled},n,r);return t.selectionMode==="single"&&(s.role="radio",s["aria-checked"]=n.isSelected,delete s["aria-pressed"]),{isPressed:o,isSelected:i,isDisabled:a,buttonProps:s}}const Tv=7e3;let Ot=null;function tf(e,t="assertive",r=Tv){Ot?Ot.announce(e,t,r):(Ot=new sO,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?Ot.announce(e,t,r):setTimeout(()=>{Ot!=null&&Ot.isAttached()&&(Ot==null||Ot.announce(e,t,r))},100))}class sO{isAttached(){var t;return(t=this.node)===null||t===void 0?void 0:t.isConnected}createLog(t){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",t),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,r="assertive",n=Tv){var o,i;if(!this.node)return;let a=document.createElement("div");typeof t=="object"?(a.setAttribute("role","img"),a.setAttribute("aria-labelledby",t["aria-labelledby"])):a.textContent=t,r==="assertive"?(o=this.assertiveLog)===null||o===void 0||o.appendChild(a):(i=this.politeLog)===null||i===void 0||i.appendChild(a),t!==""&&setTimeout(()=>{a.remove()},n)}clear(t){this.node&&((!t||t==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}}const Rv={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Ov={...Rv,customError:!0,valid:!1},Bn={isInvalid:!1,validationDetails:Rv,validationErrors:[]},lO=g.createContext({}),Ys="__formValidationState"+Date.now();function ic(e){if(e[Ys]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}=e[Ys];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}}return cO(e)}function cO(e){let{isInvalid:t,validationState:r,name:n,value:o,builtinValidation:i,validate:a,validationBehavior:s="aria"}=e;r&&(t||(t=r==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:Ov}:null,c=g.useMemo(()=>{if(!a||o==null)return null;let N=uO(a,o);return rf(N)},[a,o]);i!=null&&i.validationDetails.valid&&(i=void 0);let d=g.useContext(lO),f=g.useMemo(()=>n?Array.isArray(n)?n.flatMap(N=>qs(d[N])):qs(d[n]):[],[d,n]),[u,p]=g.useState(d),[h,m]=g.useState(!1);d!==u&&(p(d),m(!1));let v=g.useMemo(()=>rf(h?[]:f),[h,f]),x=g.useRef(Bn),[E,P]=g.useState(Bn),T=g.useRef(Bn),C=()=>{if(!k)return;D(!1);let N=c||i||x.current;es(N,T.current)||(T.current=N,P(N))},[k,D]=g.useState(!1);return g.useEffect(C),{realtimeValidation:l||v||c||i||Bn,displayValidation:s==="native"?l||v||E:l||v||c||i||E,updateValidation(N){s==="aria"&&!es(E,N)?P(N):x.current=N},resetValidation(){let N=Bn;es(N,T.current)||(T.current=N,P(N)),s==="native"&&D(!1),m(!0)},commitValidation(){s==="native"&&D(!0),m(!0)}}}function qs(e){return e?Array.isArray(e)?e:[e]:[]}function uO(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return qs(r)}return[]}function rf(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Ov}:null}function es(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,n)=>r===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([r,n])=>t.validationDetails[r]===n)}function ac(e,t,r){let{validationBehavior:n,focus:o}=e;pe(()=>{if(n==="native"&&(r!=null&&r.current)&&!r.current.disabled){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(l),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(fO(r.current))}});let i=ze(()=>{t.resetValidation()}),a=ze(l=>{var c;t.displayValidation.isInvalid||t.commitValidation();let d=r==null||(c=r.current)===null||c===void 0?void 0:c.form;if(!l.defaultPrevented&&r&&d&&pO(d)===r.current){var f;o?o():(f=r.current)===null||f===void 0||f.focus(),bv("keyboard")}l.preventDefault()}),s=ze(()=>{t.commitValidation()});g.useEffect(()=>{let l=r==null?void 0:r.current;if(!l)return;let c=l.form;return l.addEventListener("invalid",a),l.addEventListener("change",s),c==null||c.addEventListener("reset",i),()=>{l.removeEventListener("invalid",a),l.removeEventListener("change",s),c==null||c.removeEventListener("reset",i)}},[r,a,s,i,n])}function dO(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function fO(e){return{isInvalid:!e.validity.valid,validationDetails:dO(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function pO(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}function gO(e,t,r){let{isDisabled:n=!1,isReadOnly:o=!1,value:i,name:a,children:s,"aria-label":l,"aria-labelledby":c,validationState:d="valid",isInvalid:f}=e,u=k=>{k.stopPropagation(),t.setSelected(k.target.checked)},p=s!=null,h=l!=null||c!=null;!p&&!h&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:m,isPressed:v}=_r({isDisabled:n}),{pressProps:x,isPressed:E}=_r({onPress(){var k;t.toggle(),(k=r.current)===null||k===void 0||k.focus()},isDisabled:n||o}),{focusableProps:P}=$n(e,r),T=re(m,P),C=Ve(e,{labelable:!0});return Jl(r,t.isSelected,t.setSelected),{labelProps:re(x,{onClick:k=>k.preventDefault()}),inputProps:re(C,{"aria-invalid":f||d==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:u,disabled:n,...i==null?{}:{value:i},name:a,type:"checkbox",...T}),isSelected:t.isSelected,isPressed:v||E,isDisabled:n,isReadOnly:o,isInvalid:f||d==="invalid"}}function hO(e,t,r){let n=ic({...e,value:t.isSelected}),{isInvalid:o,validationErrors:i,validationDetails:a}=n.displayValidation,{labelProps:s,inputProps:l,isSelected:c,isPressed:d,isDisabled:f,isReadOnly:u}=gO({...e,isInvalid:o},t,r);ac(e,n,r);let{isIndeterminate:p,isRequired:h,validationBehavior:m="aria"}=e;g.useEffect(()=>{r.current&&(r.current.indeterminate=!!p)});let{pressProps:v}=_r({isDisabled:f||u,onPress(){let{[Ys]:x}=e,{commitValidation:E}=x||n;E()}});return{labelProps:re(s,v),inputProps:{...l,checked:c,"aria-required":h&&m==="aria"||void 0,required:h&&m==="native"},isSelected:c,isPressed:d,isDisabled:f,isReadOnly:u,isInvalid:o,validationErrors:i,validationDetails:a}}function sc(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=e;t=He(t);let a=He(),s={};r?(n=n?`${a} ${n}`:a,s={id:a,htmlFor:i==="label"?t:void 0}):!n&&!o&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=nv({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:s,fieldProps:l}}function lc(e){let{description:t,errorMessage:r,isInvalid:n,validationState:o}=e,{labelProps:i,fieldProps:a}=sc(e),s=uo([!!t,!!r,n,o]),l=uo([!!t,!!r,n,o]);return a=re(a,{"aria-describedby":[s,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:a,descriptionProps:{id:s},errorMessageProps:{id:l}}}function Iv(e={}){let{isReadOnly:t}=e,[r,n]=mr(e.isSelected,e.defaultSelected||!1,e.onChange);function o(a){t||n(a)}function i(){t||n(!r)}return{isSelected:r,setSelected:o,toggle:i}}function mO(e){let{selectionMode:t="single",disallowEmptySelection:r,isDisabled:n=!1}=e,[o,i]=mr(g.useMemo(()=>e.selectedKeys?new Set(e.selectedKeys):void 0,[e.selectedKeys]),g.useMemo(()=>e.defaultSelectedKeys?new Set(e.defaultSelectedKeys):new Set,[e.defaultSelectedKeys]),e.onSelectionChange);return{selectionMode:t,isDisabled:n,selectedKeys:o,setSelectedKeys:i,toggleKey(a){let s;t==="multiple"?(s=new Set(o),s.has(a)&&(!r||s.size>1)?s.delete(a):s.add(a)):s=new Set(o.has(a)&&!r?[]:[a]),i(s)},setSelected(a,s){s!==o.has(a)&&this.toggleKey(a)}}}const nf={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Nv(e={}){let{style:t,isFocusable:r}=e,[n,o]=g.useState(!1),{focusWithinProps:i}=fa({isDisabled:!r,onFocusWithinChange:s=>o(s)}),a=g.useMemo(()=>n?t:t?{...nf,...t}:nf,[n]);return{visuallyHiddenProps:{...i,style:a}}}function Dv(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...i}=e,{visuallyHiddenProps:a}=Nv(e);return V.createElement(r,re(i,a),t)}function vO(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:o=!1,isReadOnly:i=!1,type:a="text",validationBehavior:s="aria"}=e,[l,c]=mr(e.value,e.defaultValue||"",e.onChange),{focusableProps:d}=$n(e,t),f=ic({...e,value:l}),{isInvalid:u,validationErrors:p,validationDetails:h}=f.displayValidation,{labelProps:m,fieldProps:v,descriptionProps:x,errorMessageProps:E}=lc({...e,isInvalid:u,errorMessage:e.errorMessage||p}),P=Ve(e,{labelable:!0});const T={type:a,pattern:e.pattern};return Jl(t,l,c),ac(e,f,t),g.useEffect(()=>{if(t.current instanceof Je(t.current).HTMLTextAreaElement){let C=t.current;Object.defineProperty(C,"defaultValue",{get:()=>C.value,set:()=>{},configurable:!0})}},[t]),{labelProps:m,inputProps:re(P,r==="input"?T:void 0,{disabled:n,readOnly:i,required:o&&s==="native","aria-required":o&&s==="aria"||void 0,"aria-invalid":u||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:C=>c(C.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(V.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...d,...v}),descriptionProps:x,errorMessageProps:E,isInvalid:u,validationErrors:p,validationDetails:h}}const _t={top:"top",bottom:"top",left:"left",right:"left"},Vi={top:"bottom",bottom:"top",left:"right",right:"left"},bO={top:"left",left:"top"},Xs={top:"height",left:"width"},_v={width:"totalWidth",height:"totalHeight"},ei={};let We=typeof document<"u"?window.visualViewport:null;function of(e){let t=0,r=0,n=0,o=0,i=0,a=0,s={};var l;let c=((l=We==null?void 0:We.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let h=document.documentElement;n=h.clientWidth,o=h.clientHeight;var d;t=(d=We==null?void 0:We.width)!==null&&d!==void 0?d:n;var f;r=(f=We==null?void 0:We.height)!==null&&f!==void 0?f:o,s.top=h.scrollTop||e.scrollTop,s.left=h.scrollLeft||e.scrollLeft,We&&(i=We.offsetTop,a=We.offsetLeft)}else({width:t,height:r,top:i,left:a}=gn(e)),s.top=e.scrollTop,s.left=e.scrollLeft,n=t,o=r;if(ql()&&(e.tagName==="BODY"||e.tagName==="HTML")&&c){s.top=0,s.left=0;var u;i=(u=We==null?void 0:We.pageTop)!==null&&u!==void 0?u:0;var p;a=(p=We==null?void 0:We.pageLeft)!==null&&p!==void 0?p:0}return{width:t,height:r,totalWidth:n,totalHeight:o,scroll:s,top:i,left:a}}function yO(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function af(e,t,r,n,o,i,a){var s;let l=(s=o.scroll[e])!==null&&s!==void 0?s:0,c=n[Xs[e]],d=n.scroll[_t[e]]+i,f=c+n.scroll[_t[e]]-i,u=t-l+a[e]-n[_t[e]],p=t-l+r+a[e]-n[_t[e]];return u<d?d-u:p>f?Math.max(f-p,d-u):0}function xO(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function sf(e){if(ei[e])return ei[e];let[t,r]=e.split(" "),n=_t[t]||"right",o=bO[n];_t[r]||(r="center");let i=Xs[n],a=Xs[o];return ei[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:i,crossSize:a},ei[e]}function ts(e,t,r,n,o,i,a,s,l,c){let{placement:d,crossPlacement:f,axis:u,crossAxis:p,size:h,crossSize:m}=n,v={};var x;v[p]=(x=e[p])!==null&&x!==void 0?x:0;var E,P,T,C;f==="center"?v[p]+=(((E=e[m])!==null&&E!==void 0?E:0)-((P=r[m])!==null&&P!==void 0?P:0))/2:f!==p&&(v[p]+=((T=e[m])!==null&&T!==void 0?T:0)-((C=r[m])!==null&&C!==void 0?C:0)),v[p]+=i;const k=e[p]-r[m]+l+c,D=e[p]+e[m]-l-c;if(v[p]=_i(v[p],k,D),d===u){const R=s?a[h]:t[_v[h]];v[Vi[u]]=Math.floor(R-e[u]+o)}else v[u]=Math.floor(e[u]+e[h]+o);return v}function SO(e,t,r,n,o,i,a,s){const l=n?r.height:t[_v.height];var c;let d=e.top!=null?r.top+e.top:r.top+(l-((c=e.bottom)!==null&&c!==void 0?c:0)-a);var f,u,p,h,m,v;let x=s!=="top"?Math.max(0,t.height+t.top+((f=t.scroll.top)!==null&&f!==void 0?f:0)-d-(((u=o.top)!==null&&u!==void 0?u:0)+((p=o.bottom)!==null&&p!==void 0?p:0)+i)):Math.max(0,d+a-(t.top+((h=t.scroll.top)!==null&&h!==void 0?h:0))-(((m=o.top)!==null&&m!==void 0?m:0)+((v=o.bottom)!==null&&v!==void 0?v:0)+i));return Math.min(t.height-i*2,x)}function lf(e,t,r,n,o,i){let{placement:a,axis:s,size:l}=i;var c,d;if(a===s)return Math.max(0,r[s]-e[s]-((c=e.scroll[s])!==null&&c!==void 0?c:0)+t[s]-((d=n[s])!==null&&d!==void 0?d:0)-n[Vi[s]]-o);var f;return Math.max(0,e[l]+e[s]+e.scroll[s]-t[s]-r[s]-r[l]-((f=n[s])!==null&&f!==void 0?f:0)-n[Vi[s]]-o)}function wO(e,t,r,n,o,i,a,s,l,c,d,f,u,p,h,m){let v=sf(e),{size:x,crossAxis:E,crossSize:P,placement:T,crossPlacement:C}=v,k=ts(t,s,r,v,d,f,c,u,h,m),D=d,R=lf(s,c,t,o,i+d,v);if(a&&n[x]>R){let Z=sf(`${Vi[T]} ${C}`),te=ts(t,s,r,Z,d,f,c,u,h,m);lf(s,c,t,o,i+d,Z)>R&&(v=Z,k=te,D=d)}let _="bottom";v.axis==="top"?v.placement==="top"?_="top":v.placement==="bottom"&&(_="bottom"):v.crossAxis==="top"&&(v.crossPlacement==="top"?_="bottom":v.crossPlacement==="bottom"&&(_="top"));let N=af(E,k[E],r[P],s,l,i,c);k[E]+=N;let S=SO(k,s,c,u,o,i,r.height,_);p&&p<S&&(S=p),r.height=Math.min(r.height,S),k=ts(t,s,r,v,D,f,c,u,h,m),N=af(E,k[E],r[P],s,l,i,c),k[E]+=N;let M={},j=t[E]+.5*t[P]-k[E]-o[_t[E]];const z=h/2+m;var F,w,L,$;const K=_t[E]==="left"?((F=o.left)!==null&&F!==void 0?F:0)+((w=o.right)!==null&&w!==void 0?w:0):((L=o.top)!==null&&L!==void 0?L:0)+(($=o.bottom)!==null&&$!==void 0?$:0),y=r[P]-K-h/2-m,I=t[E]+h/2-(k[E]+o[_t[E]]),W=t[E]+t[P]-h/2-(k[E]+o[_t[E]]),G=_i(j,I,W);return M[E]=_i(G,z,y),{position:k,maxHeight:S,arrowOffsetLeft:M.left,arrowOffsetTop:M.top,placement:v.placement}}function EO(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:o,padding:i,shouldFlip:a,boundaryElement:s,offset:l,crossOffset:c,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:u=0}=e,p=n instanceof HTMLElement?CO(n):document.documentElement,h=p===document.documentElement;const m=window.getComputedStyle(p).position;let v=!!m&&m!=="static",x=h?gn(r):cf(r,p);if(!h){let{marginTop:M,marginLeft:j}=window.getComputedStyle(r);x.top+=parseInt(M,10)||0,x.left+=parseInt(j,10)||0}let E=gn(n),P=xO(n);var T,C;E.width+=((T=P.left)!==null&&T!==void 0?T:0)+((C=P.right)!==null&&C!==void 0?C:0);var k,D;E.height+=((k=P.top)!==null&&k!==void 0?k:0)+((D=P.bottom)!==null&&D!==void 0?D:0);let R=yO(o),_=of(s),N=of(p),S=s.tagName==="BODY"?gn(p):cf(p,s);return p.tagName==="HTML"&&s.tagName==="BODY"&&(N.scroll.top=0,N.scroll.left=0),wO(t,x,E,R,P,i,a,_,N,S,l,c,v,d,f,u)}function gn(e){let{top:t,left:r,width:n,height:o}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:a,clientTop:s,clientLeft:l}=document.documentElement;return{top:t+i-s,left:r+a-l,width:n,height:o}}function cf(e,t){let r=window.getComputedStyle(e),n;if(r.position==="fixed"){let{top:o,left:i,width:a,height:s}=e.getBoundingClientRect();n={top:o,left:i,width:a,height:s}}else{n=gn(e);let o=gn(t),i=window.getComputedStyle(t);o.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,o.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,n.top-=o.top,n.left-=o.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function CO(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!uf(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!uf(t);)t=t.parentElement;return t||document.documentElement}function uf(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const Av=new WeakMap;function PO(e){let{triggerRef:t,isOpen:r,onClose:n}=e;g.useEffect(()=>{if(!r||n===null)return;let o=i=>{let a=i.target;if(!t.current||a instanceof Node&&!a.contains(t.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let s=n||Av.get(t.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,t])}let De=typeof document<"u"?window.visualViewport:null;function Lv(e){let{direction:t}=vr(),{arrowSize:r=0,targetRef:n,overlayRef:o,scrollRef:i=o,placement:a="bottom",containerPadding:s=12,shouldFlip:l=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:u=!0,isOpen:p=!0,onClose:h,maxHeight:m,arrowBoundaryOffset:v=0}=e,[x,E]=g.useState(null),P=[u,a,o.current,n.current,i.current,s,l,c,d,f,p,t,m,v,r],T=g.useRef(De==null?void 0:De.scale);g.useEffect(()=>{p&&(T.current=De==null?void 0:De.scale)},[p]);let C=g.useCallback(()=>{if(u===!1||!p||!o.current||!n.current||!c||(De==null?void 0:De.scale)!==T.current)return;let N=null;if(i.current&&i.current.contains(document.activeElement)){var S;let $=(S=document.activeElement)===null||S===void 0?void 0:S.getBoundingClientRect(),K=i.current.getBoundingClientRect();var M;if(N={type:"top",offset:((M=$==null?void 0:$.top)!==null&&M!==void 0?M:0)-K.top},N.offset>K.height/2){N.type="bottom";var j;N.offset=((j=$==null?void 0:$.bottom)!==null&&j!==void 0?j:0)-K.bottom}}let z=o.current;if(!m&&o.current){var F;z.style.top="0px",z.style.bottom="";var w;z.style.maxHeight=((w=(F=window.visualViewport)===null||F===void 0?void 0:F.height)!==null&&w!==void 0?w:window.innerHeight)+"px"}let L=EO({placement:$O(a,t),overlayNode:o.current,targetNode:n.current,scrollNode:i.current||o.current,padding:s,shouldFlip:l,boundaryElement:c,offset:d,crossOffset:f,maxHeight:m,arrowSize:r,arrowBoundaryOffset:v});if(L.position){if(z.style.top="",z.style.bottom="",z.style.left="",z.style.right="",Object.keys(L.position).forEach($=>z.style[$]=L.position[$]+"px"),z.style.maxHeight=L.maxHeight!=null?L.maxHeight+"px":"",N&&document.activeElement&&i.current){let $=document.activeElement.getBoundingClientRect(),K=i.current.getBoundingClientRect(),y=$[N.type]-K[N.type];i.current.scrollTop+=y-N.offset}E(L)}},P);pe(C,P),kO(C),Ms({ref:o,onResize:C}),Ms({ref:n,onResize:C});let k=g.useRef(!1);pe(()=>{let N,S=()=>{k.current=!0,clearTimeout(N),N=setTimeout(()=>{k.current=!1},500),C()},M=()=>{k.current&&S()};return De==null||De.addEventListener("resize",S),De==null||De.addEventListener("scroll",M),()=>{De==null||De.removeEventListener("resize",S),De==null||De.removeEventListener("scroll",M)}},[C]);let D=g.useCallback(()=>{k.current||h==null||h()},[h,k]);PO({triggerRef:n,isOpen:p,onClose:h&&D});var R,_;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...x==null?void 0:x.position,maxHeight:(R=x==null?void 0:x.maxHeight)!==null&&R!==void 0?R:"100vh"}},placement:(_=x==null?void 0:x.placement)!==null&&_!==void 0?_:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:x==null?void 0:x.arrowOffsetLeft,top:x==null?void 0:x.arrowOffsetTop}},updatePosition:C}}function kO(e){pe(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function $O(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const It=[];function TO(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:a=!1,shouldCloseOnInteractOutside:s}=e;g.useEffect(()=>{if(o&&!It.includes(t))return It.push(t),()=>{let h=It.indexOf(t);h>=0&&It.splice(h,1)}},[o,t]);let l=()=>{It[It.length-1]===t&&r&&r()},c=h=>{(!s||s(h.target))&&It[It.length-1]===t&&(h.stopPropagation(),h.preventDefault())},d=h=>{(!s||s(h.target))&&(It[It.length-1]===t&&(h.stopPropagation(),h.preventDefault()),l())},f=h=>{h.key==="Escape"&&!a&&!h.nativeEvent.isComposing&&(h.stopPropagation(),h.preventDefault(),l())};R5({ref:t,onInteractOutside:i&&o?d:void 0,onInteractOutsideStart:c});let{focusWithinProps:u}=fa({isDisabled:!n,onBlurWithin:h=>{!h.relatedTarget||X5(h.relatedTarget)||(!s||s(h.relatedTarget))&&(r==null||r())}}),p=h=>{h.target===h.currentTarget&&h.preventDefault()};return{overlayProps:{onKeyDown:f,...u},underlayProps:{onPointerDown:p}}}function Mv(e,t,r){let{type:n}=e,{isOpen:o}=t;g.useEffect(()=>{r&&r.current&&Av.set(r.current,t.close)});let i;n==="menu"?i=!0:n==="listbox"&&(i="listbox");let a=He();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?a:void 0,onPress:t.toggle},overlayProps:{id:a}}}const rs=typeof document<"u"&&window.visualViewport,RO=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let ti=0,ns;function OO(e={}){let{isDisabled:t}=e;pe(()=>{if(!t)return ti++,ti===1&&(la()?ns=NO():ns=IO()),()=>{ti--,ti===0&&ns()}},[t])}function IO(){return fr(cn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),cn(document.documentElement,"overflow","hidden"))}function NO(){let e,t,r=c=>{e=ov(c.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=cn(e,"overscrollBehavior","contain"))},n=c=>{if(!e||e===document.documentElement||e===document.body){c.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&c.preventDefault()},o=()=>{t&&t()},i=c=>{let d=c.target;DO(d)&&(s(),d.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{d.style.transform="",rs&&(rs.height<window.innerHeight?requestAnimationFrame(()=>{df(d)}):rs.addEventListener("resize",()=>df(d),{once:!0}))}))},a=null,s=()=>{if(a)return;let c=()=>{window.scrollTo(0,0)},d=window.pageXOffset,f=window.pageYOffset;a=fr(Wn(window,"scroll",c),cn(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),cn(document.documentElement,"overflow","hidden"),cn(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(d,f)}),window.scrollTo(0,0)},l=fr(Wn(document,"touchstart",r,{passive:!1,capture:!0}),Wn(document,"touchmove",n,{passive:!1,capture:!0}),Wn(document,"touchend",o,{passive:!1,capture:!0}),Wn(document,"focus",i,!0));return()=>{t==null||t(),a==null||a(),l()}}function cn(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function Wn(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function df(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let n=ov(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let o=n.getBoundingClientRect().top,i=r.getBoundingClientRect().top;i>o+r.clientHeight&&(n.scrollTop+=i-o)}r=n.parentElement}}function DO(e){return e instanceof HTMLInputElement&&!RO.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const _O=g.createContext({});function Fv(){var e;return(e=g.useContext(_O))!==null&&e!==void 0?e:{}}const Zs=V.createContext(null);function AO(e){let{children:t}=e,r=g.useContext(Zs),[n,o]=g.useState(0),i=g.useMemo(()=>({parent:r,modalCount:n,addModal(){o(a=>a+1),r&&r.addModal()},removeModal(){o(a=>a-1),r&&r.removeModal()}}),[r,n]);return V.createElement(Zs.Provider,{value:i},t)}function LO(){let e=g.useContext(Zs);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function MO(e){let{modalProviderProps:t}=LO();return V.createElement("div",{"data-overlay-container":!0,...e,...t})}function FO(e){return V.createElement(AO,null,V.createElement(MO,e))}function zO(e){let t=zr(),{portalContainer:r=t?null:document.body,...n}=e,{getContainer:o}=Fv();if(!e.portalContainer&&o&&(r=o()),V.useEffect(()=>{if(r!=null&&r.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let i=V.createElement(FO,n);return Ng.createPortal(i,r)}var zv={};zv={dismiss:"تجاهل"};var Vv={};Vv={dismiss:"Отхвърляне"};var Bv={};Bv={dismiss:"Odstranit"};var Wv={};Wv={dismiss:"Luk"};var Hv={};Hv={dismiss:"Schließen"};var Kv={};Kv={dismiss:"Απόρριψη"};var jv={};jv={dismiss:"Dismiss"};var Uv={};Uv={dismiss:"Descartar"};var Gv={};Gv={dismiss:"Lõpeta"};var Yv={};Yv={dismiss:"Hylkää"};var qv={};qv={dismiss:"Rejeter"};var Xv={};Xv={dismiss:"התעלם"};var Zv={};Zv={dismiss:"Odbaci"};var Jv={};Jv={dismiss:"Elutasítás"};var Qv={};Qv={dismiss:"Ignora"};var eb={};eb={dismiss:"閉じる"};var tb={};tb={dismiss:"무시"};var rb={};rb={dismiss:"Atmesti"};var nb={};nb={dismiss:"Nerādīt"};var ob={};ob={dismiss:"Lukk"};var ib={};ib={dismiss:"Negeren"};var ab={};ab={dismiss:"Zignoruj"};var sb={};sb={dismiss:"Descartar"};var lb={};lb={dismiss:"Dispensar"};var cb={};cb={dismiss:"Revocare"};var ub={};ub={dismiss:"Пропустить"};var db={};db={dismiss:"Zrušiť"};var fb={};fb={dismiss:"Opusti"};var pb={};pb={dismiss:"Odbaci"};var gb={};gb={dismiss:"Avvisa"};var hb={};hb={dismiss:"Kapat"};var mb={};mb={dismiss:"Скасувати"};var vb={};vb={dismiss:"取消"};var bb={};bb={dismiss:"關閉"};var yb={};yb={"ar-AE":zv,"bg-BG":Vv,"cs-CZ":Bv,"da-DK":Wv,"de-DE":Hv,"el-GR":Kv,"en-US":jv,"es-ES":Uv,"et-EE":Gv,"fi-FI":Yv,"fr-FR":qv,"he-IL":Xv,"hr-HR":Zv,"hu-HU":Jv,"it-IT":Qv,"ja-JP":eb,"ko-KR":tb,"lt-LT":rb,"lv-LV":nb,"nb-NO":ob,"nl-NL":ib,"pl-PL":ab,"pt-BR":sb,"pt-PT":lb,"ro-RO":cb,"ru-RU":ub,"sk-SK":db,"sl-SI":fb,"sr-SP":pb,"sv-SE":gb,"tr-TR":hb,"uk-UA":mb,"zh-CN":vb,"zh-TW":bb};function VO(e){return e&&e.__esModule?e.default:e}function ff(e){let{onDismiss:t,...r}=e,n=rc(VO(yb),"@react-aria/overlays"),o=nv(r,n.format("dismiss")),i=()=>{t&&t()};return V.createElement(Dv,null,V.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}let Hn=new WeakMap,tt=[];function BO(e,t=document.body){let r=new Set(e),n=new Set,o=l=>{for(let u of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))r.add(u);let c=u=>{if(r.has(u)||u.parentElement&&n.has(u.parentElement)&&u.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let p of r)if(u.contains(p))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),f=c(l);if(f===NodeFilter.FILTER_ACCEPT&&i(l),f!==NodeFilter.FILTER_REJECT){let u=d.nextNode();for(;u!=null;)i(u),u=d.nextNode()}},i=l=>{var c;let d=(c=Hn.get(l))!==null&&c!==void 0?c:0;l.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&l.setAttribute("aria-hidden","true"),n.add(l),Hn.set(l,d+1))};tt.length&&tt[tt.length-1].disconnect(),o(t);let a=new MutationObserver(l=>{for(let c of l)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...r,...n].some(d=>d.contains(c.target))){for(let d of c.removedNodes)d instanceof Element&&(r.delete(d),n.delete(d));for(let d of c.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?r.add(d):d instanceof Element&&o(d)}});a.observe(t,{childList:!0,subtree:!0});let s={visibleNodes:r,hiddenNodes:n,observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return tt.push(s),()=>{a.disconnect();for(let l of n){let c=Hn.get(l);c!=null&&(c===1?(l.removeAttribute("aria-hidden"),Hn.delete(l)):Hn.set(l,c-1))}s===tt[tt.length-1]?(tt.pop(),tt.length&&tt[tt.length-1].observe()):tt.splice(tt.indexOf(s),1)}}function WO(e){let t=tt[tt.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}function HO(e,t){let{triggerRef:r,popoverRef:n,groupRef:o,isNonModal:i,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:s,...l}=e,c=l.trigger==="SubmenuTrigger",{overlayProps:d,underlayProps:f}=TO({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i||c,isKeyboardDismissDisabled:a,shouldCloseOnInteractOutside:s},o??n),{overlayProps:u,arrowProps:p,placement:h}=Lv({...l,targetRef:r,overlayRef:n,isOpen:t.isOpen,onClose:i&&!c?t.close:null});return OO({isDisabled:i||!t.isOpen}),pe(()=>{if(t.isOpen&&n.current){var m,v;return i?WO((m=o==null?void 0:o.current)!==null&&m!==void 0?m:n.current):BO([(v=o==null?void 0:o.current)!==null&&v!==void 0?v:n.current])}},[i,t.isOpen,n,o]),{popoverProps:re(d,u),arrowProps:p,underlayProps:f,placement:h}}const xb=V.createContext(null);function pf(e){let t=zr(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[o,i]=g.useState(!1),a=g.useMemo(()=>({contain:o,setContain:i}),[o,i]),{getContainer:s}=Fv();if(!e.portalContainer&&s&&(r=s()),!r)return null;let l=e.children;return e.disableFocusManagement||(l=V.createElement(Cv,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!n},l)),l=V.createElement(xb.Provider,{value:a},V.createElement($5,null,l)),Ng.createPortal(l,r)}function KO(){let e=g.useContext(xb),t=e==null?void 0:e.setContain;pe(()=>{t==null||t(!0)},[t])}const cc=new WeakMap;function jO(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function UO(e,t){let r=cc.get(e);if(!r)throw new Error("Unknown list");return`${r.id}-option-${jO(t)}`}function Js(e){return U2()?e.altKey:e.ctrlKey}function vi(e,t){var r,n;let o=`[data-key="${CSS.escape(String(t))}"]`,i=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return i&&(o=`[data-collection="${CSS.escape(i)}"]${o}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(o)}const Sb=new WeakMap;function GO(e){let t=He();return Sb.set(e,t),t}function YO(e){return Sb.get(e)}const qO=1e3;function wb(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=g.useRef({search:"",timeout:void 0}).current,i=a=>{let s=XO(a.key);if(!(!s||a.ctrlKey||a.metaKey||!a.currentTarget.contains(a.target))){if(s===" "&&o.search.trim().length>0&&(a.preventDefault(),"continuePropagation"in a||a.stopPropagation()),o.search+=s,t.getKeyForSearch!=null){let l=t.getKeyForSearch(o.search,r.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(r.setFocusedKey(l),n&&n(l))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},qO)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0}}}function XO(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function ZO(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:s=!1,escapeKeyBehavior:l="clearSelection",selectOnFocus:c=t.selectionBehavior==="replace",disallowTypeAhead:d=!1,shouldUseVirtualFocus:f,allowsTabNavigation:u=!1,isVirtualized:p,scrollRef:h=n,linkBehavior:m="action"}=e,{direction:v}=vr(),x=ca(),E=w=>{var L;if(w.altKey&&w.key==="Tab"&&w.preventDefault(),!(!((L=n.current)===null||L===void 0)&&L.contains(w.target)))return;const $=(q,U)=>{if(q!=null){if(t.isLink(q)&&m==="selection"&&c&&!Js(w)){Vt.flushSync(()=>{t.setFocusedKey(q,U)});let ge=vi(n,q),_e=t.getItemProps(q);ge&&x.open(ge,w,_e.href,_e.routerOptions);return}if(t.setFocusedKey(q,U),t.isLink(q)&&m==="override")return;w.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(q):c&&!Js(w)&&t.replaceSelection(q)}};switch(w.key){case"ArrowDown":if(r.getKeyBelow){var K,y,I;let q=t.focusedKey!=null?(K=r.getKeyBelow)===null||K===void 0?void 0:K.call(r,t.focusedKey):(y=r.getFirstKey)===null||y===void 0?void 0:y.call(r);q==null&&i&&(q=(I=r.getFirstKey)===null||I===void 0?void 0:I.call(r,t.focusedKey)),q!=null&&(w.preventDefault(),$(q))}break;case"ArrowUp":if(r.getKeyAbove){var W,G,Z;let q=t.focusedKey!=null?(W=r.getKeyAbove)===null||W===void 0?void 0:W.call(r,t.focusedKey):(G=r.getLastKey)===null||G===void 0?void 0:G.call(r);q==null&&i&&(q=(Z=r.getLastKey)===null||Z===void 0?void 0:Z.call(r,t.focusedKey)),q!=null&&(w.preventDefault(),$(q))}break;case"ArrowLeft":if(r.getKeyLeftOf){var te,ee,Ne;let q=t.focusedKey!=null?(te=r.getKeyLeftOf)===null||te===void 0?void 0:te.call(r,t.focusedKey):null;q==null&&i&&(q=v==="rtl"?(ee=r.getFirstKey)===null||ee===void 0?void 0:ee.call(r,t.focusedKey):(Ne=r.getLastKey)===null||Ne===void 0?void 0:Ne.call(r,t.focusedKey)),q!=null&&(w.preventDefault(),$(q,v==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var B,H,ne;let q=t.focusedKey!=null?(B=r.getKeyRightOf)===null||B===void 0?void 0:B.call(r,t.focusedKey):null;q==null&&i&&(q=v==="rtl"?(H=r.getLastKey)===null||H===void 0?void 0:H.call(r,t.focusedKey):(ne=r.getFirstKey)===null||ne===void 0?void 0:ne.call(r,t.focusedKey)),q!=null&&(w.preventDefault(),$(q,v==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&w.shiftKey)return;w.preventDefault();let q=r.getFirstKey(t.focusedKey,nn(w));t.setFocusedKey(q),q!=null&&(nn(w)&&w.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(q):c&&t.replaceSelection(q))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&w.shiftKey)return;w.preventDefault();let q=r.getLastKey(t.focusedKey,nn(w));t.setFocusedKey(q),q!=null&&(nn(w)&&w.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(q):c&&t.replaceSelection(q))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let q=r.getKeyPageBelow(t.focusedKey);q!=null&&(w.preventDefault(),$(q))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let q=r.getKeyPageAbove(t.focusedKey);q!=null&&(w.preventDefault(),$(q))}break;case"a":nn(w)&&t.selectionMode==="multiple"&&s!==!0&&(w.preventDefault(),t.selectAll());break;case"Escape":l==="clearSelection"&&!a&&t.selectedKeys.size!==0&&(w.stopPropagation(),w.preventDefault(),t.clearSelection());break;case"Tab":if(!u){if(w.shiftKey)n.current.focus();else{let q=ct(n.current,{tabbable:!0}),U,ge;do ge=q.lastChild(),ge&&(U=ge);while(ge);U&&!U.contains(document.activeElement)&&Rt(U)}break}}},P=g.useRef({top:0,left:0});Xn(h,"scroll",p?void 0:()=>{var w,L,$,K;P.current={top:($=(w=h.current)===null||w===void 0?void 0:w.scrollTop)!==null&&$!==void 0?$:0,left:(K=(L=h.current)===null||L===void 0?void 0:L.scrollLeft)!==null&&K!==void 0?K:0}});let T=w=>{if(t.isFocused){w.currentTarget.contains(w.target)||t.setFocused(!1);return}if(w.currentTarget.contains(w.target)){if(t.setFocused(!0),t.focusedKey==null){var L,$;let I=G=>{G!=null&&(t.setFocusedKey(G),c&&!t.isSelected(G)&&t.replaceSelection(G))},W=w.relatedTarget;var K,y;W&&w.currentTarget.compareDocumentPosition(W)&Node.DOCUMENT_POSITION_FOLLOWING?I((K=t.lastSelectedKey)!==null&&K!==void 0?K:(L=r.getLastKey)===null||L===void 0?void 0:L.call(r)):I((y=t.firstSelectedKey)!==null&&y!==void 0?y:($=r.getFirstKey)===null||$===void 0?void 0:$.call(r))}else!p&&h.current&&(h.current.scrollTop=P.current.top,h.current.scrollLeft=P.current.left);if(t.focusedKey!=null&&h.current){let I=vi(n,t.focusedKey);I instanceof HTMLElement&&(!I.contains(document.activeElement)&&!f&&Rt(I),ho()==="keyboard"&&Fd(I,{containingElement:n.current}))}}},C=w=>{w.currentTarget.contains(w.relatedTarget)||t.setFocused(!1)},k=g.useRef(!1);Xn(n,o5,f?w=>{let{detail:L}=w;w.stopPropagation(),t.setFocused(!0),(L==null?void 0:L.focusStrategy)==="first"&&(k.current=!0)}:void 0);let D=ze(()=>{var w,L;let $=(L=(w=r.getFirstKey)===null||w===void 0?void 0:w.call(r))!==null&&L!==void 0?L:null;$==null?($v(n.current),t.collection.size>0&&(k.current=!1)):(t.setFocusedKey($),k.current=!1)});Ld(()=>{k.current&&D()},[t.collection,D]);let R=ze(()=>{t.collection.size>0&&(k.current=!1)});Ld(()=>{R()},[t.focusedKey,R]),Xn(n,n5,f?w=>{var L;w.stopPropagation(),t.setFocused(!1),!((L=w.detail)===null||L===void 0)&&L.clearFocusKey&&t.setFocusedKey(null)}:void 0);const _=g.useRef(o),N=g.useRef(!1);g.useEffect(()=>{if(_.current){var w,L;let y=null;var $;o==="first"&&(y=($=(w=r.getFirstKey)===null||w===void 0?void 0:w.call(r))!==null&&$!==void 0?$:null);var K;o==="last"&&(y=(K=(L=r.getLastKey)===null||L===void 0?void 0:L.call(r))!==null&&K!==void 0?K:null);let I=t.selectedKeys;if(I.size){for(let W of I)if(t.canSelectItem(W)){y=W;break}}t.setFocused(!0),t.setFocusedKey(y),y==null&&!f&&n.current&&gr(n.current),t.collection.size>0&&(_.current=!1,N.current=!0)}});let S=g.useRef(t.focusedKey);g.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==S.current||N.current)&&h.current&&n.current){let w=ho(),L=vi(n,t.focusedKey);if(!(L instanceof HTMLElement))return;(w==="keyboard"||N.current)&&(iv(h.current,L),w!=="virtual"&&Fd(L,{containingElement:n.current}))}!f&&t.isFocused&&t.focusedKey==null&&S.current!=null&&n.current&&gr(n.current),S.current=t.focusedKey,N.current=!1}),Xn(n,"react-aria-focus-scope-restore",w=>{w.preventDefault(),t.setFocused(!0)});let M={onKeyDown:E,onFocus:T,onBlur:C,onMouseDown(w){h.current===w.target&&w.preventDefault()}},{typeSelectProps:j}=wb({keyboardDelegate:r,selectionManager:t});d||(M=re(j,M));let z;f||(z=t.focusedKey==null?0:-1);let F=GO(t.collection);return{collectionProps:re(M,{tabIndex:z,"data-collection":F})}}function JO(e){let{id:t,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:a,focus:s,isDisabled:l,onAction:c,allowsDifferentPressOrigin:d,linkBehavior:f="action"}=e,u=ca();t=He(t);let p=$=>{if($.pointerType==="keyboard"&&Js($))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(f==="selection"&&o.current){let K=r.getItemProps(n);u.open(o.current,$,K.href,K.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(f==="override"||f==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):$&&$.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||$&&(nn($)||$.pointerType==="touch"||$.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};g.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(a?$v(o.current):s?s():document.activeElement!==o.current&&o.current&&gr(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,a]),l=l||r.isDisabled(n);let h={};!a&&!l?h={tabIndex:n===r.focusedKey?0:-1,onFocus($){$.target===o.current&&r.setFocusedKey(n)}}:l&&(h.onMouseDown=$=>{$.preventDefault()});let m=r.isLink(n)&&f==="override",v=r.isLink(n)&&f!=="selection"&&f!=="none",x=!l&&r.canSelectItem(n)&&!m,E=(c||v)&&!l,P=E&&(r.selectionBehavior==="replace"?!x:!x||r.isEmpty),T=E&&x&&r.selectionBehavior==="replace",C=P||T,k=g.useRef(null),D=C&&x,R=g.useRef(!1),_=g.useRef(!1),N=$=>{if(c&&c(),v&&o.current){let K=r.getItemProps(n);u.open(o.current,$,K.href,K.routerOptions)}},S={ref:o};i?(S.onPressStart=$=>{k.current=$.pointerType,R.current=D,$.pointerType==="keyboard"&&(!C||hf())&&p($)},d?(S.onPressUp=P?void 0:$=>{$.pointerType==="mouse"&&x&&p($)},S.onPress=P?N:$=>{$.pointerType!=="keyboard"&&$.pointerType!=="mouse"&&x&&p($)}):S.onPress=$=>{if(P||T&&$.pointerType!=="mouse"){if($.pointerType==="keyboard"&&!gf())return;N($)}else $.pointerType!=="keyboard"&&x&&p($)}):(S.onPressStart=$=>{k.current=$.pointerType,R.current=D,_.current=P,x&&($.pointerType==="mouse"&&!P||$.pointerType==="keyboard"&&(!E||hf()))&&p($)},S.onPress=$=>{($.pointerType==="touch"||$.pointerType==="pen"||$.pointerType==="virtual"||$.pointerType==="keyboard"&&C&&gf()||$.pointerType==="mouse"&&_.current)&&(C?N($):x&&p($))}),h["data-collection"]=YO(r.collection),h["data-key"]=n,S.preventFocusOnPress=a,a&&(S=re(S,{onPressStart($){$.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress($){$.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}}));let{pressProps:M,isPressed:j}=_r(S),z=T?$=>{k.current==="mouse"&&($.stopPropagation(),$.preventDefault(),N($))}:void 0,{longPressProps:F}=xv({isDisabled:!D,onLongPress($){$.pointerType==="touch"&&(p($),r.setSelectionBehavior("toggle"))}}),w=$=>{k.current==="touch"&&R.current&&$.preventDefault()},L=r.isLink(n)?$=>{Dr.isOpening||$.preventDefault()}:void 0;return{itemProps:re(h,x||P||a?M:{},D?F:{},{onDoubleClick:z,onDragStartCapture:w,onClick:L,id:t},a?{onMouseDown:$=>$.preventDefault()}:void 0),isPressed:j,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:l,allowsSelection:x,hasAction:C}}function gf(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function hf(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class mf{getItemRect(t){let r=this.ref.current;if(!r)return null;let n=t!=null?vi(this.ref,t):null;if(!n)return null;let o=r.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-o.left+r.scrollLeft,y:i.top-o.top+r.scrollTop,width:i.width,height:i.height}}getContentSize(){let t=this.ref.current;var r,n;return{width:(r=t==null?void 0:t.scrollWidth)!==null&&r!==void 0?r:0,height:(n=t==null?void 0:t.scrollHeight)!==null&&n!==void 0?n:0}}getVisibleRect(){let t=this.ref.current;var r,n,o,i;return{x:(r=t==null?void 0:t.scrollLeft)!==null&&r!==void 0?r:0,y:(n=t==null?void 0:t.scrollTop)!==null&&n!==void 0?n:0,width:(o=t==null?void 0:t.offsetWidth)!==null&&o!==void 0?o:0,height:(i=t==null?void 0:t.offsetHeight)!==null&&i!==void 0?i:0}}constructor(t){this.ref=t}}class uc{isDisabled(t){var r;return this.disabledBehavior==="all"&&(((r=t.props)===null||r===void 0?void 0:r.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,r){let n=t;for(;n!=null;){let o=this.collection.getItem(n);if((o==null?void 0:o.type)==="item"&&!this.isDisabled(o))return n;n=r(n)}return null}getNextKey(t){let r=t;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,n=>this.collection.getKeyAfter(n))}getPreviousKey(t){let r=t;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,n=>this.collection.getKeyBefore(n))}findKey(t,r,n){let o=t,i=this.layoutDelegate.getItemRect(o);if(!i||o==null)return null;let a=i;do{if(o=r(o),o==null)break;i=this.layoutDelegate.getItemRect(o)}while(i&&n(a,i)&&o!=null);return o}isSameRow(t,r){return t.y===r.y||t.x!==r.x}isSameColumn(t,r){return t.x===r.x||t.y!==r.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,r){return r?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}getKeyPageAbove(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!fo(r))return this.getFirstKey();let o=t;if(this.orientation==="horizontal"){let i=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getFirstKey()}getKeyPageBelow(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!fo(r))return this.getLastKey();let o=t;if(this.orientation==="horizontal"){let i=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getLastKey()}getKeyForSearch(t,r){if(!this.collator)return null;let n=this.collection,o=r||this.getFirstKey();for(;o!=null;){let i=n.getItem(o);if(!i)return null;let a=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(a,t)===0)return o;o=this.getNextKey(o)}return null}constructor(...t){if(t.length===1){let r=t[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation||"vertical",this.direction=r.direction,this.layout=r.layout||"stack",this.layoutDelegate=r.layoutDelegate||new mf(r.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new mf(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function QO(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:i,layoutDelegate:a}=e,s=nc({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,c=g.useMemo(()=>i||new uc({collection:r,disabledKeys:n,disabledBehavior:l,ref:o,collator:s,layoutDelegate:a}),[i,a,r,n,o,s,l]),{collectionProps:d}=ZO({...e,ref:o,selectionManager:t,keyboardDelegate:c});return{listProps:d}}function e3(e,t,r){let n=Ve(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&i==="action"&&(i="override");let{listProps:a}=QO({...e,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:s}=fa({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=He(e.id);cc.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i});let{labelProps:c,fieldProps:d}=sc({...e,id:l,labelElementType:"span"});return{labelProps:c,listBoxProps:re(n,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...re(d,a)})}}class t3{build(t,r){return this.context=r,vf(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:n}=t;if(V.isValidElement(r)&&r.type===V.Fragment)yield*this.iterateCollection({children:r.props.children,items:n});else if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");let o=0;for(let i of n)yield*this.getFullNode({value:i,index:o},{renderer:r}),o++}else{let o=[];V.Children.forEach(r,a=>{a&&o.push(a)});let i=0;for(let a of o){let s=this.getFullNode({element:a,index:i},{});for(let l of s)i++,yield l}}}getKey(t,r,n,o){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${o}${r.key}`;let i=r.value;if(i!=null){var a;let s=(a=i.key)!==null&&a!==void 0?a:i.id;if(s==null)throw new Error("No key found for item");return s}return o?`${o}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,n,o){if(V.isValidElement(t.element)&&t.element.type===V.Fragment){let v=[];V.Children.forEach(t.element.props.children,E=>{v.push(E)});var i;let x=(i=t.index)!==null&&i!==void 0?i:0;for(const E of v)yield*this.getFullNode({element:E,index:x++},r,n,o);return}let a=t.element;if(!a&&t.value&&r&&r.renderer){let v=this.cache.get(t.value);if(v&&(!v.shouldInvalidate||!v.shouldInvalidate(this.context))){v.index=t.index,v.parentKey=o?o.key:null,yield v;return}a=r.renderer(t.value)}if(V.isValidElement(a)){let v=a.type;if(typeof v!="function"&&typeof v.getCollectionNode!="function"){let T=a.type;throw new Error(`Unknown element <${T}> in collection.`)}let x=v.getCollectionNode(a.props,this.context);var s;let E=(s=t.index)!==null&&s!==void 0?s:0,P=x.next();for(;!P.done&&P.value;){let T=P.value;t.index=E;var l;let C=(l=T.key)!==null&&l!==void 0?l:null;C==null&&(C=T.element?null:this.getKey(a,t,r,n));let D=[...this.getFullNode({...T,key:C,index:E,wrapper:r3(t.wrapper,T.wrapper)},this.getChildState(r,T),n?`${n}${a.key}`:a.key,o)];for(let R of D){var c,d;R.value=(d=(c=T.value)!==null&&c!==void 0?c:t.value)!==null&&d!==void 0?d:null,R.value&&this.cache.set(R.value,R);var f;if(t.type&&R.type!==t.type)throw new Error(`Unsupported type <${os(R.type)}> in <${os((f=o==null?void 0:o.type)!==null&&f!==void 0?f:"unknown parent type")}>. Only <${os(t.type)}> is supported.`);E++,yield R}P=x.next(D)}return}if(t.key==null||t.type==null)return;let u=this;var p,h;let m={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:(p=t.value)!==null&&p!==void 0?p:null,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:(h=t.textValue)!==null&&h!==void 0?h:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:vf(function*(){if(!t.hasChildNodes||!t.childNodes)return;let v=0;for(let x of t.childNodes()){x.key!=null&&(x.key=`${m.key}${x.key}`);let E=u.getFullNode({...x,index:v},u.getChildState(r,x),m.key,m);for(let P of E)v++,yield P}})};yield m}constructor(){this.cache=new WeakMap}}function vf(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function r3(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function os(e){return e[0].toUpperCase()+e.slice(1)}function n3(e,t,r){let n=g.useMemo(()=>new t3,[]),{children:o,items:i,collection:a}=e;return g.useMemo(()=>{if(a)return a;let l=n.build({children:o,items:i},r);return t(l)},[n,o,i,a,r,t])}function Eb(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function o3(e){return i3(e)}function i3(e,t){for(let r of e)return r}function is(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...bf(e,t),t],o=[...bf(e,r),r],i=n.slice(0,o.length).findIndex((a,s)=>a!==o[s]);return i!==-1?(t=n[i],r=o[i],t.index-r.index):n.findIndex(a=>a===r)>=0?1:(o.findIndex(a=>a===t)>=0,-1)}function bf(e,t){let r=[],n=t;for(;(n==null?void 0:n.parentKey)!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}const yf=new WeakMap;function a3(e){let t=yf.get(e);if(t!=null)return t;let r=0,n=o=>{for(let i of o)i.type==="section"?n(Eb(i,e)):r++};return n(e),yf.set(e,r),r}function s3(e,t,r){var n,o;let{key:i}=e,a=cc.get(t);var s;let l=(s=e.isDisabled)!==null&&s!==void 0?s:t.selectionManager.isDisabled(i);var c;let d=(c=e.isSelected)!==null&&c!==void 0?c:t.selectionManager.isSelected(i);var f;let u=(f=e.shouldSelectOnPressUp)!==null&&f!==void 0?f:a==null?void 0:a.shouldSelectOnPressUp;var p;let h=(p=e.shouldFocusOnHover)!==null&&p!==void 0?p:a==null?void 0:a.shouldFocusOnHover;var m;let v=(m=e.shouldUseVirtualFocus)!==null&&m!==void 0?m:a==null?void 0:a.shouldUseVirtualFocus;var x;let E=(x=e.isVirtualized)!==null&&x!==void 0?x:a==null?void 0:a.isVirtualized,P=uo(),T=uo(),C={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?d:void 0};pr()&&ql()||(C["aria-label"]=e["aria-label"],C["aria-labelledby"]=P,C["aria-describedby"]=T);let k=t.collection.getItem(i);if(E){let L=Number(k==null?void 0:k.index);C["aria-posinset"]=Number.isNaN(L)?void 0:L+1,C["aria-setsize"]=a3(t.collection)}let D=a!=null&&a.onAction?()=>{var L;return a==null||(L=a.onAction)===null||L===void 0?void 0:L.call(a,i)}:void 0,R=UO(t,i),{itemProps:_,isPressed:N,isFocused:S,hasAction:M,allowsSelection:j}=JO({selectionManager:t.selectionManager,key:i,ref:r,shouldSelectOnPressUp:u,allowsDifferentPressOrigin:u&&h,isVirtualized:E,shouldUseVirtualFocus:v,isDisabled:l,onAction:D||!(k==null||(n=k.props)===null||n===void 0)&&n.onAction?fr(k==null||(o=k.props)===null||o===void 0?void 0:o.onAction,D):void 0,linkBehavior:a==null?void 0:a.linkBehavior,id:R}),{hoverProps:z}=Br({isDisabled:l||!h,onHoverStart(){go()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(i))}}),F=Ve(k==null?void 0:k.props);delete F.id;let w=tv(k==null?void 0:k.props);return{optionProps:{...C,...re(F,_,z,w),id:R},labelProps:{id:P},descriptionProps:{id:T},isFocused:S,isFocusVisible:S&&t.selectionManager.isFocused&&go(),isSelected:d,isDisabled:l,isPressed:N,allowsSelection:j,hasAction:M}}function l3(e){let{heading:t,"aria-label":r}=e,n=He();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}var Cb={};Cb={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Pb={};Pb={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var kb={};kb={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var $b={};$b={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Tb={};Tb={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Rb={};Rb={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Ob={};Ob={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Ib={};Ib={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Nb={};Nb={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Db={};Db={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var _b={};_b={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var Ab={};Ab={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var Lb={};Lb={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var Mb={};Mb={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var Fb={};Fb={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var zb={};zb={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var Vb={};Vb={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var Bb={};Bb={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var Wb={};Wb={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var Hb={};Hb={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var Kb={};Kb={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var jb={};jb={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var Ub={};Ub={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var Gb={};Gb={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var Yb={};Yb={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var qb={};qb={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var Xb={};Xb={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var Zb={};Zb={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Jb={};Jb={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Qb={};Qb={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var ey={};ey={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var ty={};ty={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var ry={};ry={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var ny={};ny={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var oy={};oy={"ar-AE":Cb,"bg-BG":Pb,"cs-CZ":kb,"da-DK":$b,"de-DE":Tb,"el-GR":Rb,"en-US":Ob,"es-ES":Ib,"et-EE":Nb,"fi-FI":Db,"fr-FR":_b,"he-IL":Ab,"hr-HR":Lb,"hu-HU":Mb,"it-IT":Fb,"ja-JP":zb,"ko-KR":Vb,"lt-LT":Bb,"lv-LV":Wb,"nb-NO":Hb,"nl-NL":Kb,"pl-PL":jb,"pt-BR":Ub,"pt-PT":Gb,"ro-RO":Yb,"ru-RU":qb,"sk-SK":Xb,"sl-SI":Zb,"sr-SP":Jb,"sv-SE":Qb,"tr-TR":ey,"uk-UA":ty,"zh-CN":ry,"zh-TW":ny};function c3(e){return e&&e.__esModule?e.default:e}function u3(e,t,r){let{type:n="menu",isDisabled:o,trigger:i="press"}=e,a=He(),{triggerProps:s,overlayProps:l}=Mv({type:n},t,r),c=p=>{if(!o&&!(i==="longPress"&&!p.altKey)&&r&&r.current)switch(p.key){case"Enter":case" ":if(i==="longPress")return;case"ArrowDown":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),t.toggle("last");break;default:"continuePropagation"in p&&p.continuePropagation()}},d=rc(c3(oy),"@react-aria/menu"),{longPressProps:f}=xv({isDisabled:o||i!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),u={preventFocusOnPress:!0,onPressStart(p){p.pointerType!=="touch"&&p.pointerType!=="keyboard"&&!o&&(Rt(p.target),t.open(p.pointerType==="virtual"?"first":null))},onPress(p){p.pointerType==="touch"&&!o&&(Rt(p.target),t.toggle())}};return delete s.onPress,{menuTriggerProps:{...s,...i==="press"?u:f,id:a,onKeyDown:c},menuProps:{...l,"aria-labelledby":a,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function d3(e,t){let{role:r="dialog"}=e,n=uo();n=e["aria-label"]?void 0:n;let o=g.useRef(!1);return g.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){gr(t.current);let i=setTimeout(()=>{document.activeElement===t.current&&(o.current=!0,t.current&&(t.current.blur(),gr(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),KO(),{dialogProps:{...Ve(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:n}}}function f3(e,t,r){let{isDisabled:n}=e,o=He(),i=He(),s=!zr()&&"onbeforematch"in document.body,l=g.useRef(null),c=g.useCallback(()=>{l.current=requestAnimationFrame(()=>{r.current&&r.current.setAttribute("hidden","until-found")}),Vt.flushSync(()=>{t.toggle()})},[r,t]);return Xn(r,"beforematch",s?c:null),pe(()=>{l.current&&cancelAnimationFrame(l.current),s&&r.current&&!n&&(t.isExpanded?r.current.removeAttribute("hidden"):r.current.setAttribute("hidden","until-found"))},[n,r,t.isExpanded,s]),g.useEffect(()=>()=>{l.current&&cancelAnimationFrame(l.current)},[]),{buttonProps:{id:o,"aria-expanded":t.isExpanded,"aria-controls":i,onPress:d=>{!n&&d.pointerType!=="keyboard"&&t.toggle()},isDisabled:n,onPressStart(d){d.pointerType==="keyboard"&&!n&&t.toggle()}},panelProps:{id:i,role:"group","aria-labelledby":o,"aria-hidden":!t.isExpanded,hidden:s?!0:!t.isExpanded}}}var ri={exports:{}},as={};/**
94
+ * @license React
95
+ * use-sync-external-store-shim.production.js
96
+ *
97
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
98
+ *
99
+ * This source code is licensed under the MIT license found in the
100
+ * LICENSE file in the root directory of this source tree.
101
+ */var xf;function p3(){if(xf)return as;xf=1;var e=xn();function t(f,u){return f===u&&(f!==0||1/f===1/u)||f!==f&&u!==u}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(f,u){var p=u(),h=n({inst:{value:p,getSnapshot:u}}),m=h[0].inst,v=h[1];return i(function(){m.value=p,m.getSnapshot=u,l(m)&&v({inst:m})},[f,p,u]),o(function(){return l(m)&&v({inst:m}),f(function(){l(m)&&v({inst:m})})},[f]),a(p),p}function l(f){var u=f.getSnapshot;f=f.value;try{var p=u();return!r(f,p)}catch{return!0}}function c(f,u){return u()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return as.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,as}var ss={};/**
102
+ * @license React
103
+ * use-sync-external-store-shim.development.js
104
+ *
105
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
106
+ *
107
+ * This source code is licensed under the MIT license found in the
108
+ * LICENSE file in the root directory of this source tree.
109
+ */var Sf;function g3(){return Sf||(Sf=1,process.env.NODE_ENV!=="production"&&function(){function e(p,h){return p===h&&(p!==0||1/p===1/h)||p!==p&&h!==h}function t(p,h){d||o.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=h();if(!f){var v=h();i(m,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}v=a({inst:{value:m,getSnapshot:h}});var x=v[0].inst,E=v[1];return l(function(){x.value=m,x.getSnapshot=h,r(x)&&E({inst:x})},[p,m,h]),s(function(){return r(x)&&E({inst:x}),p(function(){r(x)&&E({inst:x})})},[p]),c(m),m}function r(p){var h=p.getSnapshot;p=p.value;try{var m=h();return!i(p,m)}catch{return!0}}function n(p,h){return h()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=xn(),i=typeof Object.is=="function"?Object.is:e,a=o.useState,s=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,d=!1,f=!1,u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;ss.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:u,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),ss}var wf;function h3(){return wf||(wf=1,process.env.NODE_ENV==="production"?ri.exports=p3():ri.exports=g3()),ri.exports}var m3=h3();function v3(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:o,isIndeterminate:i,formatOptions:a={style:"percent"}}=e,s=Ve(e,{labelable:!0}),{labelProps:l,fieldProps:c}=sc({...e,labelElementType:"span"});t=_i(t,r,n);let d=(t-r)/(n-r),f=j5(a);if(!i&&!o){let u=a.style==="percent"?d:t;o=f.format(u)}return{progressBarProps:re(s,{...c,"aria-valuenow":i?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":i?void 0:o,role:"progressbar"}),labelProps:l}}const iy=new WeakMap;function b3(e,t,r){let{keyboardDelegate:n,isDisabled:o,isRequired:i,name:a,validationBehavior:s="aria"}=e,l=nc({usage:"search",sensitivity:"base"}),c=g.useMemo(()=>n||new uc(t.collection,t.disabledKeys,r,l),[n,t.collection,t.disabledKeys,l,r]),{menuTriggerProps:d,menuProps:f}=u3({isDisabled:o,type:"listbox"},t,r),u=R=>{switch(R.key){case"ArrowLeft":{var _,N;R.preventDefault();let j=t.selectedKey!=null?(_=c.getKeyAbove)===null||_===void 0?void 0:_.call(c,t.selectedKey):(N=c.getFirstKey)===null||N===void 0?void 0:N.call(c);j&&t.setSelectedKey(j);break}case"ArrowRight":{var S,M;R.preventDefault();let j=t.selectedKey!=null?(S=c.getKeyBelow)===null||S===void 0?void 0:S.call(c,t.selectedKey):(M=c.getFirstKey)===null||M===void 0?void 0:M.call(c);j&&t.setSelectedKey(j);break}}},{typeSelectProps:p}=wb({keyboardDelegate:c,selectionManager:t.selectionManager,onTypeSelect(R){t.setSelectedKey(R)}}),{isInvalid:h,validationErrors:m,validationDetails:v}=t.displayValidation,{labelProps:x,fieldProps:E,descriptionProps:P,errorMessageProps:T}=lc({...e,labelElementType:"span",isInvalid:h,errorMessage:e.errorMessage||m});p.onKeyDown=p.onKeyDownCapture,delete p.onKeyDownCapture;let C=Ve(e,{labelable:!0}),k=re(p,d,E),D=He();return iy.set(t,{isDisabled:o,isRequired:i,name:a,validationBehavior:s}),{labelProps:{...x,onClick:()=>{if(!e.isDisabled){var R;(R=r.current)===null||R===void 0||R.focus(),bv("keyboard")}}},triggerProps:re(C,{...k,isDisabled:o,onKeyDown:fr(k.onKeyDown,u,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[D,k["aria-labelledby"],k["aria-label"]&&!k["aria-labelledby"]?k.id:null].filter(Boolean).join(" "),onFocus(R){t.isFocused||(e.onFocus&&e.onFocus(R),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(R){t.isOpen||(e.onBlur&&e.onBlur(R),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:D},menuProps:{...f,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:R=>{R.currentTarget.contains(R.relatedTarget)||(e.onBlur&&e.onBlur(R),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[E["aria-labelledby"],k["aria-label"]&&!E["aria-labelledby"]?k.id:null].filter(Boolean).join(" ")},descriptionProps:P,errorMessageProps:T,isInvalid:h,validationErrors:m,validationDetails:v}}function y3(e,t,r){let n=iy.get(t)||{},{autoComplete:o,name:i=n.name,isDisabled:a=n.isDisabled}=e,{validationBehavior:s,isRequired:l}=n,{visuallyHiddenProps:c}=Nv();Jl(e.selectRef,t.selectedKey,t.setSelectedKey),ac({validationBehavior:s,focus:()=>{var f;return(f=r.current)===null||f===void 0?void 0:f.focus()}},t,e.selectRef);var d;return{containerProps:{...c,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{tabIndex:-1,autoComplete:o,disabled:a,required:s==="native"&&l,name:i,value:(d=t.selectedKey)!==null&&d!==void 0?d:void 0,onChange:f=>t.setSelectedKey(f.target.value)}}}function x3(e){let{state:t,triggerRef:r,label:n,name:o,isDisabled:i}=e,a=g.useRef(null),{containerProps:s,selectProps:l}=y3({...e,selectRef:a},t,r);var c;return t.collection.size<=300?V.createElement("div",{...s,"data-testid":"hidden-select-container"},V.createElement("label",null,n,V.createElement("select",{...l,ref:a},V.createElement("option",null),[...t.collection.getKeys()].map(d=>{let f=t.collection.getItem(d);if(f&&f.type==="item")return V.createElement("option",{key:f.key,value:f.key},f.textValue)})))):o?V.createElement("input",{type:"hidden",autoComplete:l.autoComplete,name:o,disabled:i,value:(c=t.selectedKey)!==null&&c!==void 0?c:""}):null}function S3(e,t){let r=Ve(e,{labelable:!0}),{hoverProps:n}=Br({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:re(r,n,{role:"tooltip"})}}function w3(e,t,r){let{isDisabled:n,trigger:o}=e,i=He(),a=g.useRef(!1),s=g.useRef(!1),l=()=>{(a.current||s.current)&&t.open(s.current)},c=x=>{!a.current&&!s.current&&t.close(x)};g.useEffect(()=>{let x=E=>{r&&r.current&&E.key==="Escape"&&(E.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",x,!0),()=>{document.removeEventListener("keydown",x,!0)}},[r,t]);let d=()=>{o!=="focus"&&(ho()==="pointer"?a.current=!0:a.current=!1,l())},f=()=>{o!=="focus"&&(s.current=!1,a.current=!1,c())},u=()=>{s.current=!1,a.current=!1,c(!0)},p=()=>{go()&&(s.current=!0,l())},h=()=>{s.current=!1,a.current=!1,c(!0)},{hoverProps:m}=Br({isDisabled:n,onHoverStart:d,onHoverEnd:f}),{focusableProps:v}=$n({isDisabled:n,onFocus:p,onBlur:h},r);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...re(v,m,{onPointerDown:u,onKeyDown:u,tabIndex:void 0})},tooltipProps:{id:i}}}const Rr=we({className:"nimbus-button",base:{borderRadius:"200",display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",borderWidth:"1px",borderColor:"transparent",cursor:"button",flexShrink:"0",outline:"0",lineHeight:"1.2",isolation:"isolate",fontWeight:"500",transitionProperty:"common",transitionDuration:"moderate",focusVisibleRing:"outside",_disabled:{layerStyle:"disabled"},_icon:{flexShrink:"0"}},variants:{size:{"2xs":{h:"600",minW:"600",fontSize:"300",fontWeight:"500",lineHeight:"400",px:"200",gap:"100",_icon:{width:"400",height:"400"}},xs:{h:"800",minW:"800",fontSize:"350",fontWeight:"500",lineHeight:"400",px:"300",gap:"100",_icon:{width:"500",height:"500"}},md:{h:"1000",minW:"1000",fontSize:"400",lineHeight:"500",px:"400",gap:"200",_icon:{width:"600",height:"600"}}},variant:{solid:{bg:"colorPalette.9",color:"colorPalette.contrast",_hover:{bg:"colorPalette.10"},_expanded:{bg:"colorPalette.10"}},subtle:{bg:"colorPalette.3",color:"colorPalette.11",_hover:{bg:"colorPalette.4"},_expanded:{bg:"colorPalette.4"}},outline:{borderWidth:"1px",borderColor:"colorPalette.7",color:"colorPalette.11",transitionProperty:"background-color, border-color, color",transitionDuration:"moderate",_hover:{bg:"colorPalette.3",borderColor:"colorPalette.8"},_expanded:{bg:"colorPalette.subtle"}},ghost:{color:"colorPalette.11",_hover:{bg:"colorPalette.4"},_expanded:{bg:"colorPalette.4"}},link:{color:"colorPalette.11",_hover:{textDecoration:"underline"}}},tone:{primary:{colorPalette:"primary"},critical:{colorPalette:"critical"},neutral:{colorPalette:"neutral"},info:{colorPalette:"info"}}},defaultVariants:{size:"md",variant:"subtle"}}),{withContext:E3}=St({recipe:Rr}),C3=E3("button",{defaultProps:{type:"button"},shouldForwardProp(e,t){const r=!(t!=null&&t.includes(e))&&!Im.isValidProperty(e);return Yp(e)&&r&&!e.includes("onPress")}}),ha=g.forwardRef((e,t)=>{const{as:r,asChild:n,children:o,...i}=e,a=g.useRef(null),s=pt(Qt(a,t)),l=r||(n?"a":"button")||"button",{buttonProps:c}=ga({...i,elementType:l},s);return O.jsx(C3,{...re(i,c,{as:r,asChild:n,ref:s}),children:o})});ha.displayName="Button";const P3=g.forwardRef(function(t,r){const{children:n,portalled:o=!0,portalRef:i,backdrop:a=!0,...s}=t;return O.jsxs(vk,{disabled:!o,container:i,children:[a&&O.jsx(_m,{}),O.jsx(D4,{children:O.jsx(_4,{ref:r,...s,asChild:!1,children:n})})]})}),k3=g.forwardRef(function(t,r){return O.jsx(M4,{position:"absolute",top:"2",insetEnd:"2",...t,asChild:!0,children:O.jsx(ha,{size:"xs",ref:r,children:t.children})})}),$3=I4,T3=V4,R3=B4,O3=z4,I3=_m,N3=L4,D3=A4,_3=N4,A3=F4,Co=g.forwardRef(({children:e,...t},r)=>O.jsx(ha,{px:0,py:0,ref:r,...t,children:e}));Co.displayName="IconButton";const ay=we({className:"nimbus-link",base:{display:"inline-flex",alignItems:"center",color:"colorPalette.11",borderRadius:"100",focusVisibleRing:"outside",bg:"transparent",outline:"none",cursor:"pointer",textDecoration:"underline",textUnderlineOffset:"3px",_hover:{textDecorationThickness:"12%"}},variants:{size:{xs:{fontSize:"300",lineHeight:"450"},sm:{fontSize:"350",lineHeight:"500"},md:{fontSize:"400",lineHeight:"600"}},fontColor:{primary:{color:"primary"},inherit:{color:"inherit"}}}}),{withContext:L3}=St({recipe:ay}),M3=L3("a"),sy=g.forwardRef((e,t)=>{const{as:r,asChild:n,children:o,...i}=e,a=g.useRef(null),s=pt(Qt(a,t)),l=r||(n?"span":"a")||"a",{linkProps:c}=I5({...i,elementType:l},s);return O.jsx(M3,{...re(i,c,{as:r,asChild:n,ref:s}),children:o})});sy.displayName="Link";const F3=e=>O.jsx(Mm,{...e}),z3=e=>O.jsx(Fm,{...e}),ly=g.forwardRef((e,t)=>O.jsx(H4,{ref:t,...e}));ly.displayName="SimpleGrid";const V3=Object.assign(ly,{Item:Am}),B3=e=>O.jsx(zm,{...e}),W3=e=>O.jsx(Um,{...e}),H3=e=>O.jsx(Gm,{...e}),K3=e=>O.jsx(Bm,{...e}),j3=e=>O.jsx(Wm,{...e}),U3=e=>O.jsx(Vm,{...e}),G3=e=>O.jsx(Km,{...e}),Y3=e=>O.jsx(jm,{...e}),q3=e=>O.jsx(Hm,{...e}),cy=g.forwardRef((e,t)=>O.jsx(h2,{ref:t,...e}));cy.displayName="Text";g.createContext(null);g.createContext(null);g.createContext(null);g.createContext(null);g.createContext(null);const X3=g.createContext({}),Bi=Symbol("default");function Wr({values:e,children:t}){for(let[r,n]of e)t=V.createElement(r.Provider,{value:n},t);return t}function at(e){let{className:t,style:r,children:n,defaultClassName:o,defaultChildren:i,defaultStyle:a,values:s}=e;return g.useMemo(()=>{let l,c,d;return typeof t=="function"?l=t({...s,defaultClassName:o}):l=t,typeof r=="function"?c=r({...s,defaultStyle:a||{}}):c=r,typeof n=="function"?d=n({...s,defaultChildren:i}):n==null?d=i:d=n,{className:l??o,style:c||a?{...a,...c}:void 0,children:d??i,"data-rac":""}},[t,r,n,o,i,a,s])}function ma(e,t){let r=g.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=t||Bi;if(!r.slots[n]){let o=new Intl.ListFormat().format(Object.keys(r.slots).map(a=>`"${a}"`)),i=t?`Invalid slot "${t}".`:"A slot prop is required.";throw new Error(`${i} Valid slot names are ${o}.`)}return r.slots[n]}return r}function ft(e,t,r){let n=ma(r,e.slot)||{},{ref:o,...i}=n,a=pt(g.useMemo(()=>Jm(t,o),[t,o])),s=re(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?s.style=l=>{let c=typeof i.style=="function"?i.style(l):i.style,d={...l.defaultStyle,...c},f=typeof e.style=="function"?e.style({...l,defaultStyle:d}):e.style;return{...d,...f}}:s.style={...i.style,...e.style}),[s,a]}function dc(e=!0){let[t,r]=g.useState(e),n=g.useRef(!1),o=g.useCallback(i=>{n.current=!0,r(!!i)},[]);return pe(()=>{n.current||r(!1)},[]),[o,t]}function uy(e){const t=/^(data-.*)$/;let r={};for(const n in e)t.test(n)||(r[n]=e[n]);return r}class fc{get childNodes(){throw new Error("childNodes is not supported")}clone(){let t=new fc(this.type,this.key);return t.value=this.value,t.level=this.level,t.hasChildNodes=this.hasChildNodes,t.rendered=this.rendered,t.textValue=this.textValue,t["aria-label"]=this["aria-label"],t.index=this.index,t.parentKey=this.parentKey,t.prevKey=this.prevKey,t.nextKey=this.nextKey,t.firstChildKey=this.firstChildKey,t.lastChildKey=this.lastChildKey,t.props=this.props,t.render=this.render,t.colSpan=this.colSpan,t.colIndex=this.colIndex,t}constructor(t,r){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=t,this.key=r}}class pc{get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let t=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;t;)yield t,t=t.nextKey!=null?this.keyMap.get(t.nextKey):void 0}getChildren(t){let r=this.keyMap;return{*[Symbol.iterator](){let n=r.get(t),o=(n==null?void 0:n.firstChildKey)!=null?r.get(n.firstChildKey):null;for(;o;)yield o,o=o.nextKey!=null?r.get(o.nextKey):void 0}}}getKeyBefore(t){let r=this.keyMap.get(t);if(!r)return null;if(r.prevKey!=null){for(r=this.keyMap.get(r.prevKey);r&&r.type!=="item"&&r.lastChildKey!=null;)r=this.keyMap.get(r.lastChildKey);var n;return(n=r==null?void 0:r.key)!==null&&n!==void 0?n:null}return r.parentKey}getKeyAfter(t){let r=this.keyMap.get(t);if(!r)return null;if(r.type!=="item"&&r.firstChildKey!=null)return r.firstChildKey;for(;r;){if(r.nextKey!=null)return r.nextKey;if(r.parentKey!=null)r=this.keyMap.get(r.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let t=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(t==null?void 0:t.lastChildKey)!=null;)t=this.keyMap.get(t.lastChildKey);var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(){throw new Error("Not implemented")}clone(){let t=this.constructor,r=new t;return r.keyMap=new Map(this.keyMap),r.firstKey=this.firstKey,r.lastKey=this.lastKey,r}addNode(t){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");this.keyMap.set(t.key,t)}removeNode(t){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");this.keyMap.delete(t)}commit(t,r,n=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=t,this.lastKey=r,this.frozen=!n}UNSTABLE_filter(t){let r=new pc,n=null;for(let o of this)if(o.type==="section"&&o.hasChildNodes){let i=o.clone(),a=null;for(let s of this.getChildren(o.key))if(Ef(s,t,this,r)){let l=s.clone();a==null&&(i.firstChildKey=l.key),r.firstKey==null&&(r.firstKey=i.key),a&&a.parentKey===l.parentKey?(a.nextKey=l.key,l.prevKey=a.key):l.prevKey=null,l.nextKey=null,r.addNode(l),a=l}a&&(a.type!=="header"?(i.lastChildKey=a.key,n==null?i.prevKey=null:(n.type==="section"||n.type==="separator")&&(n.nextKey=i.key,i.prevKey=n.key),i.nextKey=null,n=i,r.addNode(i)):(r.firstKey===i.key&&(r.firstKey=null),r.removeNode(a.key)))}else if(o.type==="separator"){let i=o.clone();i.nextKey=null,(n==null?void 0:n.type)==="section"&&(n.nextKey=i.key,i.prevKey=n.key,n=i,r.addNode(i))}else{let i=o.clone();Ef(i,t,this,r)&&(r.firstKey==null&&(r.firstKey=i.key),n!=null&&n.type!=="section"&&n.type!=="separator"&&n.parentKey===i.parentKey?(n.nextKey=i.key,i.prevKey=n.key):i.prevKey=null,i.nextKey=null,r.addNode(i),n=i)}if((n==null?void 0:n.type)==="separator"&&n.nextKey===null){let o;n.prevKey!=null&&(o=r.getItem(n.prevKey),o.nextKey=null),r.removeNode(n.key),n=o}return r.lastKey=(n==null?void 0:n.key)||null,r}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1}}function Ef(e,t,r,n){if(e.type==="subdialogtrigger"||e.type==="submenutrigger"){let o=[...r.getChildren(e.key)][0];if(o&&t(o.textValue)){let i=o.clone();return n.addNode(i),!0}else return!1}else return e.type==="header"?!0:t(e.textValue)}class dy{*[Symbol.iterator](){let t=this.firstChild;for(;t;)yield t,t=t.nextSibling}get firstChild(){return this._firstChild}set firstChild(t){this._firstChild=t,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(t){this._lastChild=t,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(t){this._previousSibling=t,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(t){this._nextSibling=t,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(t){this._parentNode=t,this.ownerDocument.markDirty(this)}get isConnected(){var t;return((t=this.parentNode)===null||t===void 0?void 0:t.isConnected)||!1}invalidateChildIndices(t){(this._minInvalidChildIndex==null||t.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=t)}updateChildIndices(){let t=this._minInvalidChildIndex;for(;t;)t.index=t.previousSibling?t.previousSibling.index+1:0,t=t.nextSibling;this._minInvalidChildIndex=null}appendChild(t){t.parentNode&&t.parentNode.removeChild(t),this.firstChild==null&&(this.firstChild=t),this.lastChild?(this.lastChild.nextSibling=t,t.index=this.lastChild.index+1,t.previousSibling=this.lastChild):(t.previousSibling=null,t.index=0),t.parentNode=this,t.nextSibling=null,this.lastChild=t,this.ownerDocument.markDirty(this),this.ownerDocument.queueUpdate()}insertBefore(t,r){if(r==null)return this.appendChild(t);t.parentNode&&t.parentNode.removeChild(t),t.nextSibling=r,t.previousSibling=r.previousSibling,t.index=r.index,this.firstChild===r?this.firstChild=t:r.previousSibling&&(r.previousSibling.nextSibling=t),r.previousSibling=t,t.parentNode=r.parentNode,this.invalidateChildIndices(r),this.ownerDocument.queueUpdate()}removeChild(t){t.parentNode!==this||!this.ownerDocument.isMounted||(t.nextSibling&&(this.invalidateChildIndices(t.nextSibling),t.nextSibling.previousSibling=t.previousSibling),t.previousSibling&&(t.previousSibling.nextSibling=t.nextSibling),this.firstChild===t&&(this.firstChild=t.nextSibling),this.lastChild===t&&(this.lastChild=t.previousSibling),t.parentNode=null,t.nextSibling=null,t.previousSibling=null,t.index=0,this.ownerDocument.markDirty(t),this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let t=this.previousSibling;for(;t&&t.isHidden;)t=t.previousSibling;return t}get nextVisibleSibling(){let t=this.nextSibling;for(;t&&t.isHidden;)t=t.nextSibling;return t}get firstVisibleChild(){let t=this.firstChild;for(;t&&t.isHidden;)t=t.nextSibling;return t}get lastVisibleChild(){let t=this.lastChild;for(;t&&t.isHidden;)t=t.previousSibling;return t}constructor(t){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=t}}class hn extends dy{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){return this.parentNode instanceof hn?this.parentNode.level+(this.node.type==="item"?1:0):0}getMutableNode(){return this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node}updateNode(){var t,r,n;let o=this.nextVisibleSibling,i=this.getMutableNode();i.index=this.index,i.level=this.level,i.parentKey=this.parentNode instanceof hn?this.parentNode.node.key:null;var a;i.prevKey=(a=(t=this.previousVisibleSibling)===null||t===void 0?void 0:t.node.key)!==null&&a!==void 0?a:null;var s;i.nextKey=(s=o==null?void 0:o.node.key)!==null&&s!==void 0?s:null,i.hasChildNodes=!!this.firstChild;var l;i.firstChildKey=(l=(r=this.firstVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&l!==void 0?l:null;var c;if(i.lastChildKey=(c=(n=this.lastVisibleChild)===null||n===void 0?void 0:n.node.key)!==null&&c!==void 0?c:null,(i.colSpan!=null||i.colIndex!=null)&&o){var d,f;let u=((d=i.colIndex)!==null&&d!==void 0?d:i.index)+((f=i.colSpan)!==null&&f!==void 0?f:1);if(u!==o.node.colIndex){let p=o.getMutableNode();p.colIndex=u}}}setProps(t,r,n,o){let i=this.getMutableNode(),{value:a,textValue:s,id:l,...c}=t;if(c.ref=r,i.props=c,i.rendered=n,i.render=o,i.value=a,i.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",l!=null&&l!==i.key){if(this.hasSetProps)throw new Error("Cannot change the id of an item");i.key=l}c.colSpan!=null&&(i.colSpan=c.colSpan),this.hasSetProps=!0,this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(r){let n=r==="none";if(t.isHidden!==n){var o,i;(((o=t.parentNode)===null||o===void 0?void 0:o.firstVisibleChild)===t||((i=t.parentNode)===null||i===void 0?void 0:i.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let a=t.previousVisibleSibling,s=t.nextVisibleSibling;a&&t.ownerDocument.markDirty(a),s&&t.ownerDocument.markDirty(s),t.isHidden=n,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.hasSetProps=!1,this.isHidden=!1,this.node=new fc(t,`react-aria-${++r.nodeId}`)}}class Z3 extends dy{get isConnected(){return this.isMounted}createElement(t){return new hn(t,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(t){this.dirtyNodes.add(t)}addNode(t){if(t.isHidden)return;let r=this.getMutableCollection();if(!r.getItem(t.node.key))for(let n of t)this.addNode(n);r.addNode(t.node)}removeNode(t){for(let n of t)this.removeNode(n);this.getMutableCollection().removeNode(t.node.key)}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let i of this.dirtyNodes)i instanceof hn&&(!i.isConnected||i.isHidden)?this.removeNode(i):i.updateChildIndices();for(let i of this.dirtyNodes)i instanceof hn&&(i.isConnected&&!i.isHidden&&(i.updateNode(),this.addNode(i)),i.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var t,r,n,o;this.nextCollection.commit((n=(t=this.firstVisibleChild)===null||t===void 0?void 0:t.node.key)!==null&&n!==void 0?n:null,(o=(r=this.lastVisibleChild)===null||r===void 0?void 0:r.node.key)!==null&&o!==void 0?o:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let t of this.subscriptions)t();this.inSubscription=!1}}subscribe(t){return this.subscriptions.add(t),()=>this.subscriptions.delete(t)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(t){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=t,this.nextCollection=t}}function fy(e){let{children:t,items:r,idScope:n,addIdAndValue:o,dependencies:i=[]}=e,a=g.useMemo(()=>new WeakMap,i);return g.useMemo(()=>{if(r&&typeof t=="function"){let c=[];for(let d of r){let f=a.get(d);if(!f){f=t(d);var s,l;let u=(l=(s=f.props.id)!==null&&s!==void 0?s:d.key)!==null&&l!==void 0?l:d.id;if(u==null)throw new Error("Could not determine key for item");n&&(u=n+":"+u),f=g.cloneElement(f,o?{key:u,id:u,value:d}:{key:u}),a.set(d,f)}c.push(f)}return c}else if(typeof t!="function")return t},[t,r,a,n,o])}if(typeof HTMLTemplateElement<"u"){const e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}const Wi=g.createContext(!1);function J3(e){if(g.useContext(Wi))return V.createElement(V.Fragment,null,e.children);let r=V.createElement(Wi.Provider,{value:!0},e.children);return V.createElement("template",{"data-react-aria-hidden":!0},r)}function gc(e){let t=(r,n)=>g.useContext(Wi)?null:e(r,n);return t.displayName=e.displayName||e.name,g.forwardRef(t)}function Q3(){return g.useContext(Wi)}const py=g.createContext(!1),mo=g.createContext(null);function gy(e){if(g.useContext(mo))return e.content;let{collection:r,document:n}=nI(e.createCollection);return V.createElement(V.Fragment,null,V.createElement(J3,null,V.createElement(mo.Provider,{value:n},e.content)),V.createElement(eI,{render:e.children,collection:r}))}function eI({collection:e,render:t}){return t(e)}function tI(e,t,r){let n=zr(),o=g.useRef(n);o.current=n;let i=g.useCallback(()=>o.current?r():t(),[t,r]);return m3.useSyncExternalStore(e,i)}const rI=typeof V.useSyncExternalStore=="function"?V.useSyncExternalStore:tI;function nI(e){let[t]=g.useState(()=>new Z3((e==null?void 0:e())||new pc)),r=g.useCallback(a=>t.subscribe(a),[t]),n=g.useCallback(()=>{let a=t.getCollection();return t.isSSR&&t.resetAfterSSR(),a},[t]),o=g.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),i=rI(r,n,o);return pe(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:i,document:t}}const Qs=g.createContext(null);function hy(e,t,r,n,o,i){let a=g.useCallback(l=>{l==null||l.setProps(t,r,n,i)},[t,r,n,i]),s=g.useContext(Qs);if(s){let l=s.ownerDocument.nodesByProps.get(t);return l||(l=s.ownerDocument.createElement(e),l.setProps(t,r,n,i),s.appendChild(l),s.ownerDocument.updateCollection(),s.ownerDocument.nodesByProps.set(t,l)),o?V.createElement(Qs.Provider,{value:l},o):null}return V.createElement(e,{ref:a},o)}function my(e,t){let r=({node:o})=>t(o.props,o.props.ref,o),n=g.forwardRef((o,i)=>{let a=g.useContext(Mi);if(!g.useContext(py)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(o,i)}return hy(e,o,i,"children"in o?o.children:null,null,l=>V.createElement(Mi.Provider,{value:a},V.createElement(r,{node:l})))});return n.displayName=t.name,n}function oI(e,t,r=vy){let n=({node:i})=>t(i.props,i.props.ref,i),o=g.forwardRef((i,a)=>{let s=r(i);var l;return(l=hy(e,i,a,null,s,c=>V.createElement(n,{node:c})))!==null&&l!==void 0?l:V.createElement(V.Fragment,null)});return o.displayName=t.name,o}function vy(e){return fy({...e,addIdAndValue:!0})}const Cf=g.createContext(null);function by(e){let t=g.useContext(Cf),r=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies),n=e.idScope||(t==null?void 0:t.idScope),o=vy({...e,idScope:n,dependencies:r});return g.useContext(mo)&&(o=V.createElement(iI,null,o)),t=g.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),V.createElement(Cf.Provider,{value:t},o)}function iI({children:e}){let t=g.useContext(mo),r=g.useMemo(()=>V.createElement(mo.Provider,{value:null},V.createElement(py.Provider,{value:!0},e)),[e]);return zr()?V.createElement(Qs.Provider,{value:t},r):Vt.createPortal(r,t)}const el=g.createContext({});let aI=e=>{let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,...o}=e;return o};const sI=gc(function(t,r){[t,r]=ft(t,r,el);let{hoverProps:n,isHovered:o}=Br(t),{isFocused:i,isFocusVisible:a,focusProps:s}=br({isTextInput:!0,autoFocus:t.autoFocus}),l=!!t["aria-invalid"]&&t["aria-invalid"]!=="false",c=at({...t,values:{isHovered:o,isFocused:i,isFocusVisible:a,isDisabled:t.disabled||!1,isInvalid:l},defaultClassName:"react-aria-Input"});return V.createElement("input",{...re(aI(t),s,n),...c,ref:r,"data-focused":i||void 0,"data-disabled":t.disabled||void 0,"data-hovered":o||void 0,"data-focus-visible":a||void 0,"data-invalid":l||void 0})}),yy=g.createContext({}),lI=g.createContext(null),cI=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget","name","value"]),hc=g.createContext({}),uI=gc(function(t,r){[t,r]=ft(t,r,hc),t=dI(t);let n=t,{isPending:o}=n,{buttonProps:i,isPressed:a}=ga(t,r),{focusProps:s,isFocused:l,isFocusVisible:c}=br(t),{hoverProps:d,isHovered:f}=Br({...t,isDisabled:t.isDisabled||o}),u={isHovered:f,isPressed:(n.isPressed||a)&&!o,isFocused:l,isFocusVisible:c,isDisabled:t.isDisabled||!1,isPending:o??!1},p=at({...t,values:u,defaultClassName:"react-aria-Button"}),h=He(i.id),m=He(),v=i["aria-labelledby"];o&&(v?v=`${v} ${m}`:i["aria-label"]&&(v=`${h} ${m}`));let x=g.useRef(o);return g.useEffect(()=>{let E={"aria-labelledby":v||h};(!x.current&&l&&o||x.current&&l&&!o)&&tf(E,"assertive"),x.current=o},[o,l,v,h]),V.createElement("button",{...Ve(t,{propNames:cI}),...re(i,s,d),...p,type:i.type==="submit"&&o?"button":i.type,id:h,ref:r,"aria-labelledby":v,slot:t.slot||void 0,"aria-disabled":o?"true":i["aria-disabled"],"data-disabled":t.isDisabled||void 0,"data-pressed":u.isPressed||void 0,"data-hovered":f||void 0,"data-focused":l||void 0,"data-pending":o||void 0,"data-focus-visible":c||void 0},V.createElement(lI.Provider,{value:{id:m}},p.children))});function dI(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}const va=g.createContext({}),xy=g.createContext(null);class Pf{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);var n;return r&&(n=r.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(t){let r=this.keyMap.get(t);var n;return r&&(n=r.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){let r=this.keyMap.get(t);return(r==null?void 0:r.childNodes)||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let s of a.childNodes)r(s)};for(let a of t)r(a);let n=null,o=0;for(let[a,s]of this.keyMap)n?(n.nextKey=a,s.prevKey=n.key):(this.firstKey=a,s.prevKey=void 0),s.type==="item"&&(s.index=o++),n=s,n.nextKey=void 0;var i;this.lastKey=(i=n==null?void 0:n.key)!==null&&i!==void 0?i:null}}class Pt extends Set{constructor(t,r,n){super(t),t instanceof Pt?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}}function fI(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function pI(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,a=g.useRef(!1),[,s]=g.useState(!1),l=g.useRef(null),c=g.useRef(null),[,d]=g.useState(null),f=g.useMemo(()=>kf(e.selectedKeys),[e.selectedKeys]),u=g.useMemo(()=>kf(e.defaultSelectedKeys,new Pt),[e.defaultSelectedKeys]),[p,h]=mr(f,u,e.onSelectionChange),m=g.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[v,x]=g.useState(o);o==="replace"&&v==="toggle"&&typeof p=="object"&&p.size===0&&x("replace");let E=g.useRef(o);return g.useEffect(()=>{o!==E.current&&(x(o),E.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:v,setSelectionBehavior:x,get isFocused(){return a.current},setFocused(P){a.current=P,s(P)},get focusedKey(){return l.current},get childFocusStrategy(){return c.current},setFocusedKey(P,T="first"){l.current=P,c.current=T,d(P)},selectedKeys:p,setSelectedKeys(P){(n||!fI(P,p))&&h(P)},disabledKeys:m,disabledBehavior:i}}function kf(e,t){return e?e==="all"?"all":new Pt(e):t}class mc{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&is(this.collection,o,t)<0)&&(t=o)}var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&is(this.collection,o,t)>0)&&(t=o)}var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new Pt([r],r,r);else{let a=this.state.selectedKeys;var o;let s=(o=a.anchorKey)!==null&&o!==void 0?o:r;n=new Pt(a,s,r);var i;for(let l of this.getKeyRange(s,(i=a.currentKey)!==null&&i!==void 0?i:r))n.delete(l);for(let l of this.getKeyRange(r,s))this.canSelectItem(l)&&n.add(l)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?is(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let o=[],i=t;for(;i!=null;){let a=this.collection.getItem(i);if(a&&(a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&o.push(i),i===r)return o;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new Pt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new Pt([r],r,r):new Pt;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new Pt;for(let n of t){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var o;let a=this.collection.getItem(n);(a==null?void 0:a.type)==="item"&&t.push(n);var i;a!=null&&a.hasChildNodes&&(this.allowsCellSelection||a.type!=="item")&&r((i=(o=o3(Eb(a,this.collection)))===null||o===void 0?void 0:o.key)!==null&&i!==void 0?i:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Pt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}withCollection(t){return new mc(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n==null?void 0:n.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=(n==null?void 0:n.layoutDelegate)||null}}function Sy(e){let{filter:t,layoutDelegate:r}=e,n=pI(e),o=g.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=g.useCallback(c=>t?new Pf(t(c)):new Pf(c),[t]),a=g.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),s=n3(e,i,a),l=g.useMemo(()=>new mc(s,n,{layoutDelegate:r}),[s,n,r]);return wy(s,l),{collection:s,disabledKeys:o,selectionManager:l}}function gI(e,t){let r=g.useMemo(()=>t?e.collection.UNSTABLE_filter(t):e.collection,[e.collection,t]),n=e.selectionManager.withCollection(r);return wy(r,n),{collection:r,selectionManager:n,disabledKeys:e.disabledKeys}}function wy(e,t){const r=g.useRef(null);g.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&r.current){const d=r.current.getItem(t.focusedKey),f=[...r.current.getKeys()].map(x=>{const E=r.current.getItem(x);return(E==null?void 0:E.type)==="item"?E:null}).filter(x=>x!==null),u=[...e.getKeys()].map(x=>{const E=e.getItem(x);return(E==null?void 0:E.type)==="item"?E:null}).filter(x=>x!==null);var n,o;const p=((n=f==null?void 0:f.length)!==null&&n!==void 0?n:0)-((o=u==null?void 0:u.length)!==null&&o!==void 0?o:0);var i,a,s;let h=Math.min(p>1?Math.max(((i=d==null?void 0:d.index)!==null&&i!==void 0?i:0)-p+1,0):(a=d==null?void 0:d.index)!==null&&a!==void 0?a:0,((s=u==null?void 0:u.length)!==null&&s!==void 0?s:0)-1),m=null,v=!1;for(;h>=0;){if(!t.isDisabled(u[h].key)){m=u[h];break}if(h<u.length-1&&!v)h++;else{v=!0;var l,c;h>((l=d==null?void 0:d.index)!==null&&l!==void 0?l:0)&&(h=(c=d==null?void 0:d.index)!==null&&c!==void 0?c:0),h--}}t.setFocusedKey(m?m.key:null)}r.current=e},[e,t])}function hI(e){var t;let[r,n]=mr(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=g.useMemo(()=>r!=null?[r]:[],[r]),{collection:i,disabledKeys:a,selectionManager:s}=Sy({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:c=>{if(c==="all")return;var d;let f=(d=c.values().next().value)!==null&&d!==void 0?d:null;f===r&&e.onSelectionChange&&e.onSelectionChange(f),n(f)}}),l=r!=null?i.getItem(r):null;return{collection:i,disabledKeys:a,selectionManager:s,selectedKey:r,setSelectedKey:n,selectedItem:l}}function ba(e){let[t,r]=mr(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const n=g.useCallback(()=>{r(!0)},[r]),o=g.useCallback(()=>{r(!1)},[r]),i=g.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:o,toggle:i}}function mI(e){let[t,r]=mr(e.isExpanded,e.defaultExpanded||!1,e.onExpandedChange);const n=g.useCallback(()=>{r(!0)},[r]),o=g.useCallback(()=>{r(!1)},[r]),i=g.useCallback(()=>{r(!t)},[r,t]);return{isExpanded:t,setExpanded:r,expand:n,collapse:o,toggle:i}}function vI(e){let{allowsMultipleExpanded:t=!1,isDisabled:r=!1}=e,[n,o]=mr(g.useMemo(()=>e.expandedKeys?new Set(e.expandedKeys):void 0,[e.expandedKeys]),g.useMemo(()=>e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,[e.defaultExpandedKeys]),e.onExpandedChange);return g.useEffect(()=>{!t&&n.size>1&&o(new Set([n.values().next().value]))}),{allowsMultipleExpanded:t,isDisabled:r,expandedKeys:n,setExpandedKeys:o,toggleKey(i){let a;t?(a=new Set(n),a.has(i)?a.delete(i):a.add(i)):a=new Set(n.has(i)?[]:[i]),o(a)}}}function bI(e){let t=ba(e),[r,n]=g.useState(null),[o,i]=g.useState([]),a=()=>{i([]),t.close()};return{focusStrategy:r,...t,open(c=null){n(c),t.open()},toggle(c=null){n(c),t.toggle()},close(){a()},expandedKeysStack:o,openSubmenu:(c,d)=>{i(f=>d>f.length?f:[...f.slice(0,d),c])},closeSubmenu:(c,d)=>{i(f=>f[d]===c?f.slice(0,d):f)}}}function yI(e){let t=ba(e),[r,n]=g.useState(null),o=hI({...e,onSelectionChange:l=>{e.onSelectionChange!=null&&e.onSelectionChange(l),t.close(),i.commitValidation()}}),i=ic({...e,value:o.selectedKey}),[a,s]=g.useState(!1);return{...i,...o,...t,focusStrategy:r,open(l=null){o.collection.size!==0&&(n(l),t.open())},toggle(l=null){o.collection.size!==0&&(n(l),t.toggle())},isFocused:a,setFocused:s}}const xI=1500,$f=500;let Pr={},SI=0,Kn=!1,jt=null,kr=null;function Ey(e={}){let{delay:t=xI,closeDelay:r=$f}=e,{isOpen:n,open:o,close:i}=ba(e),a=g.useMemo(()=>`${++SI}`,[]),s=g.useRef(null),l=g.useRef(i),c=()=>{Pr[a]=u},d=()=>{for(let h in Pr)h!==a&&(Pr[h](!0),delete Pr[h])},f=()=>{s.current&&clearTimeout(s.current),s.current=null,d(),c(),Kn=!0,o(),jt&&(clearTimeout(jt),jt=null),kr&&(clearTimeout(kr),kr=null)},u=h=>{h||r<=0?(s.current&&clearTimeout(s.current),s.current=null,l.current()):s.current||(s.current=setTimeout(()=>{s.current=null,l.current()},r)),jt&&(clearTimeout(jt),jt=null),Kn&&(kr&&clearTimeout(kr),kr=setTimeout(()=>{delete Pr[a],kr=null,Kn=!1},Math.max($f,r)))},p=()=>{d(),c(),!n&&!jt&&!Kn?jt=setTimeout(()=>{jt=null,Kn=!0,f()},t):n||f()};return g.useEffect(()=>{l.current=i},[i]),g.useEffect(()=>()=>{s.current&&clearTimeout(s.current),Pr[a]&&delete Pr[a]},[a]),{isOpen:n,open:h=>{!h&&t>0&&!s.current?p():f()},close:u}}const Cy=g.createContext(null),wI=g.createContext({}),EI=g.createContext(null),CI=gc(function(t,r){[t,r]=ft(t,r,EI);let{validationBehavior:n}=ma(Cy)||{};var o,i;let a=(i=(o=t.validationBehavior)!==null&&o!==void 0?o:n)!==null&&i!==void 0?i:"native",s=g.useRef(null),[l,c]=ft({},s,el),[d,f]=dc(!t["aria-label"]&&!t["aria-labelledby"]),[u,p]=g.useState("input"),{labelProps:h,inputProps:m,descriptionProps:v,errorMessageProps:x,...E}=vO({...uy(t),inputElementType:u,label:f,validationBehavior:a},c),P=g.useCallback(k=>{c.current=k,k&&p(k instanceof HTMLTextAreaElement?"textarea":"input")},[c]),T=at({...t,values:{isDisabled:t.isDisabled||!1,isInvalid:E.isInvalid,isReadOnly:t.isReadOnly||!1,isRequired:t.isRequired||!1},defaultClassName:"react-aria-TextField"}),C=Ve(t);return delete C.id,V.createElement("div",{...C,...T,ref:r,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":E.isInvalid||void 0,"data-readonly":t.isReadOnly||void 0,"data-required":t.isRequired||void 0},V.createElement(Wr,{values:[[yy,{...h,ref:d}],[el,{...re(m,l),ref:P}],[wI,{...m,ref:P}],[va,{slots:{description:v,errorMessage:x}}],[xy,E]]},T.children))}),PI=g.createContext(null),kI=g.createContext(null),$I={CollectionRoot({collection:e,renderDropIndicator:t}){return Tf(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return Tf(e,t,r)}};function Tf(e,t,r){return fy({items:t?e.getChildren(t.key):e,dependencies:[r],children(n){var o;let i=n.render(n);if(!r||n.type!=="item")return i;let a=n.key,s=e.getKeyAfter(a);return V.createElement(V.Fragment,null,r({type:"item",key:a,dropPosition:"before"}),i,(s==null||((o=e.getItem(s))===null||o===void 0?void 0:o.type)!=="item")&&r({type:"item",key:a,dropPosition:"after"}))}})}const vc=g.createContext($I);var Py={};Py={colorSwatchPicker:"تغييرات الألوان",dropzoneLabel:"DropZone",selectPlaceholder:"حدد عنصرًا",tableResizer:"أداة تغيير الحجم"};var ky={};ky={colorSwatchPicker:"Цветови мостри",dropzoneLabel:"DropZone",selectPlaceholder:"Изберете предмет",tableResizer:"Преоразмерител"};var $y={};$y={colorSwatchPicker:"Vzorky barev",dropzoneLabel:"Místo pro přetažení",selectPlaceholder:"Vyberte položku",tableResizer:"Změna velikosti"};var Ty={};Ty={colorSwatchPicker:"Farveprøver",dropzoneLabel:"DropZone",selectPlaceholder:"Vælg et element",tableResizer:"Størrelsesændring"};var Ry={};Ry={colorSwatchPicker:"Farbfelder",dropzoneLabel:"Ablegebereich",selectPlaceholder:"Element wählen",tableResizer:"Größenanpassung"};var Oy={};Oy={colorSwatchPicker:"Χρωματικά δείγματα",dropzoneLabel:"DropZone",selectPlaceholder:"Επιλέξτε ένα αντικείμενο",tableResizer:"Αλλαγή μεγέθους"};var Iy={};Iy={selectPlaceholder:"Select an item",tableResizer:"Resizer",dropzoneLabel:"DropZone",colorSwatchPicker:"Color swatches"};var Ny={};Ny={colorSwatchPicker:"Muestras de colores",dropzoneLabel:"DropZone",selectPlaceholder:"Seleccionar un artículo",tableResizer:"Cambiador de tamaño"};var Dy={};Dy={colorSwatchPicker:"Värvinäidised",dropzoneLabel:"DropZone",selectPlaceholder:"Valige üksus",tableResizer:"Suuruse muutja"};var _y={};_y={colorSwatchPicker:"Värimallit",dropzoneLabel:"DropZone",selectPlaceholder:"Valitse kohde",tableResizer:"Koon muuttaja"};var Ay={};Ay={colorSwatchPicker:"Échantillons de couleurs",dropzoneLabel:"DropZone",selectPlaceholder:"Sélectionner un élément",tableResizer:"Redimensionneur"};var Ly={};Ly={colorSwatchPicker:"דוגמיות צבע",dropzoneLabel:"DropZone",selectPlaceholder:"בחר פריט",tableResizer:"שינוי גודל"};var My={};My={colorSwatchPicker:"Uzorci boja",dropzoneLabel:"Zona spuštanja",selectPlaceholder:"Odaberite stavku",tableResizer:"Promjena veličine"};var Fy={};Fy={colorSwatchPicker:"Színtárak",dropzoneLabel:"DropZone",selectPlaceholder:"Válasszon ki egy elemet",tableResizer:"Átméretező"};var zy={};zy={colorSwatchPicker:"Campioni di colore",dropzoneLabel:"Zona di rilascio",selectPlaceholder:"Seleziona un elemento",tableResizer:"Ridimensionamento"};var Vy={};Vy={colorSwatchPicker:"カラースウォッチ",dropzoneLabel:"ドロップゾーン",selectPlaceholder:"項目を選択",tableResizer:"サイズ変更ツール"};var By={};By={colorSwatchPicker:"색상 견본",dropzoneLabel:"드롭 영역",selectPlaceholder:"항목 선택",tableResizer:"크기 조정기"};var Wy={};Wy={colorSwatchPicker:"Spalvų pavyzdžiai",dropzoneLabel:"„DropZone“",selectPlaceholder:"Pasirinkite elementą",tableResizer:"Dydžio keitiklis"};var Hy={};Hy={colorSwatchPicker:"Krāsu paraugi",dropzoneLabel:"DropZone",selectPlaceholder:"Izvēlēties vienumu",tableResizer:"Izmēra mainītājs"};var Ky={};Ky={colorSwatchPicker:"Fargekart",dropzoneLabel:"Droppsone",selectPlaceholder:"Velg et element",tableResizer:"Størrelsesendrer"};var jy={};jy={colorSwatchPicker:"kleurstalen",dropzoneLabel:"DropZone",selectPlaceholder:"Selecteer een item",tableResizer:"Resizer"};var Uy={};Uy={colorSwatchPicker:"Próbki kolorów",dropzoneLabel:"Strefa upuszczania",selectPlaceholder:"Wybierz element",tableResizer:"Zmiana rozmiaru"};var Gy={};Gy={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var Yy={};Yy={colorSwatchPicker:"Amostras de cores",dropzoneLabel:"DropZone",selectPlaceholder:"Selecione um item",tableResizer:"Redimensionador"};var qy={};qy={colorSwatchPicker:"Specimene de culoare",dropzoneLabel:"Zonă de plasare",selectPlaceholder:"Selectați un element",tableResizer:"Instrument de redimensionare"};var Xy={};Xy={colorSwatchPicker:"Цветовые образцы",dropzoneLabel:"DropZone",selectPlaceholder:"Выберите элемент",tableResizer:"Средство изменения размера"};var Zy={};Zy={colorSwatchPicker:"Vzorkovníky farieb",dropzoneLabel:"DropZone",selectPlaceholder:"Vyberte položku",tableResizer:"Nástroj na zmenu veľkosti"};var Jy={};Jy={colorSwatchPicker:"Barvne palete",dropzoneLabel:"DropZone",selectPlaceholder:"Izberite element",tableResizer:"Spreminjanje velikosti"};var Qy={};Qy={colorSwatchPicker:"Uzorci boje",dropzoneLabel:"DropZone",selectPlaceholder:"Izaberite stavku",tableResizer:"Promena veličine"};var e0={};e0={colorSwatchPicker:"Färgrutor",dropzoneLabel:"DropZone",selectPlaceholder:"Välj en artikel",tableResizer:"Storleksändrare"};var t0={};t0={colorSwatchPicker:"Renk örnekleri",dropzoneLabel:"Bırakma Bölgesi",selectPlaceholder:"Bir öğe seçin",tableResizer:"Yeniden boyutlandırıcı"};var r0={};r0={colorSwatchPicker:"Зразки кольорів",dropzoneLabel:"DropZone",selectPlaceholder:"Виберіть елемент",tableResizer:"Засіб змінення розміру"};var n0={};n0={colorSwatchPicker:"颜色色板",dropzoneLabel:"放置区域",selectPlaceholder:"选择一个项目",tableResizer:"尺寸调整器"};var o0={};o0={colorSwatchPicker:"色票",dropzoneLabel:"放置區",selectPlaceholder:"選取項目",tableResizer:"大小調整器"};var i0={};i0={"ar-AE":Py,"bg-BG":ky,"cs-CZ":$y,"da-DK":Ty,"de-DE":Ry,"el-GR":Oy,"en-US":Iy,"es-ES":Ny,"et-EE":Dy,"fi-FI":_y,"fr-FR":Ay,"he-IL":Ly,"hr-HR":My,"hu-HU":Fy,"it-IT":zy,"ja-JP":Vy,"ko-KR":By,"lt-LT":Wy,"lv-LV":Hy,"nb-NO":Ky,"nl-NL":jy,"pl-PL":Uy,"pt-BR":Gy,"pt-PT":Yy,"ro-RO":qy,"ru-RU":Xy,"sk-SK":Zy,"sl-SI":Jy,"sr-SP":Qy,"sv-SE":e0,"tr-TR":t0,"uk-UA":r0,"zh-CN":n0,"zh-TW":o0};const ya=g.createContext({}),a0=g.createContext(null),TI=g.forwardRef(function(t,r){let{render:n}=g.useContext(a0);return V.createElement(V.Fragment,null,n(t,r))});function s0(e,t){var r;let n=e==null?void 0:e.renderDropIndicator,o=e==null||(r=e.isVirtualDragging)===null||r===void 0?void 0:r.call(e),i=g.useCallback(a=>{if(o||t!=null&&t.isDropTarget(a))return n?n(a):V.createElement(TI,{target:a})},[t==null?void 0:t.target,o,n]);return e!=null&&e.useDropIndicator?i:void 0}function RI(e,t,r){var n,o;let i=e.focusedKey,a=null;if(!(t==null||(n=t.isVirtualDragging)===null||n===void 0)&&n.call(t)&&(r==null||(o=r.target)===null||o===void 0?void 0:o.type)==="item"){a=r.target.key;var s;r.target.dropPosition==="after"&&(a=(s=r.collection.getKeyAfter(a))!==null&&s!==void 0?s:a)}return g.useMemo(()=>new Set([i,a].filter(l=>l!=null)),[i,a])}const l0=g.createContext({}),OI=my("header",function(t,r){return[t,r]=ft(t,r,l0),V.createElement("header",{className:"react-aria-Header",...t,ref:r},t.children)}),II=g.createContext({}),bc=g.createContext(null),Po=g.createContext(null),NI=g.forwardRef(function(t,r){[t,r]=ft(t,r,bc);let n=g.useContext(Po);return n?V.createElement(c0,{state:n,props:t,listBoxRef:r}):V.createElement(gy,{content:V.createElement(by,t)},o=>V.createElement(DI,{props:t,listBoxRef:r,collection:o}))});function DI({props:e,listBoxRef:t,collection:r}){e={...e,collection:r,children:null,items:null};let{layoutDelegate:n}=g.useContext(vc),o=Sy({...e,layoutDelegate:n});return V.createElement(c0,{state:o,props:e,listBoxRef:t})}function c0({state:e,props:t,listBoxRef:r}){let{filter:n,collectionProps:o,collectionRef:i}=g.useContext(PI)||{};t=g.useMemo(()=>o?{...t,...o}:t,[t,o]);let{dragAndDropHooks:a,layout:s="stack",orientation:l="vertical"}=t;r=pt(g.useMemo(()=>Jm(r,i!==void 0?i:null),[i,r]));let c=gI(e,n),{collection:d,selectionManager:f}=c,u=!!(a!=null&&a.useDraggableCollectionState),p=!!(a!=null&&a.useDroppableCollectionState),{direction:h}=vr(),{disabledBehavior:m,disabledKeys:v}=f,x=nc({usage:"search",sensitivity:"base"}),{isVirtualized:E,layoutDelegate:P,dropTargetDelegate:T,CollectionRoot:C}=g.useContext(vc),k=g.useMemo(()=>t.keyboardDelegate||new uc({collection:d,collator:x,ref:r,disabledKeys:v,disabledBehavior:m,layout:s,orientation:l,direction:h,layoutDelegate:P}),[d,x,r,m,v,l,h,t.keyboardDelegate,s,P]),{listBoxProps:D}=e3({...t,shouldSelectOnPressUp:u||t.shouldSelectOnPressUp,keyboardDelegate:k,isVirtualized:E},c,r),R=g.useRef(u),_=g.useRef(p);g.useEffect(()=>{process.env.NODE_ENV!=="production"&&(R.current!==u&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),_.current!==p&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[u,p]);let N,S,M,j=!1,z=null,F=g.useRef(null);if(u&&a){N=a.useDraggableCollectionState({collection:d,selectionManager:f,preview:a.renderDragPreview?F:void 0}),a.useDraggableCollection({},N,r);let W=a.DragPreview;z=a.renderDragPreview?V.createElement(W,{ref:F},a.renderDragPreview):null}if(p&&a){S=a.useDroppableCollectionState({collection:d,selectionManager:f});let W=a.dropTargetDelegate||T||new a.ListDropTargetDelegate(d,r,{orientation:l,layout:s,direction:h});M=a.useDroppableCollection({keyboardDelegate:k,dropTargetDelegate:W},S,r),j=S.isDropTarget({type:"root"})}let{focusProps:w,isFocused:L,isFocusVisible:$}=br(),K={isDropTarget:j,isEmpty:c.collection.size===0,isFocused:L,isFocusVisible:$,layout:t.layout||"stack",state:c},y=at({className:t.className,style:t.style,defaultClassName:"react-aria-ListBox",values:K}),I=null;return c.collection.size===0&&t.renderEmptyState&&(I=V.createElement("div",{role:"option",style:{display:"contents"}},t.renderEmptyState(K))),V.createElement(Cv,null,V.createElement("div",{...Ve(t),...re(D,w,M==null?void 0:M.collectionProps),...y,ref:r,slot:t.slot||void 0,onScroll:t.onScroll,"data-drop-target":j||void 0,"data-empty":c.collection.size===0||void 0,"data-focused":L||void 0,"data-focus-visible":$||void 0,"data-layout":t.layout||"stack","data-orientation":t.orientation||"vertical"},V.createElement(Wr,{values:[[bc,t],[Po,c],[ya,{dragAndDropHooks:a,dragState:N,dropState:S}],[II,{elementType:"div"}],[a0,{render:LI}],[kI,{name:"ListBoxSection",render:u0}]]},V.createElement(C,{collection:d,scrollRef:r,persistedKeys:RI(f,a,S),renderDropIndicator:s0(a,S)})),I,z))}function u0(e,t,r,n="react-aria-ListBoxSection"){let o=g.useContext(Po),{dragAndDropHooks:i,dropState:a}=g.useContext(ya),{CollectionBranch:s}=g.useContext(vc),[l,c]=dc();var d;let{headingProps:f,groupProps:u}=l3({heading:c,"aria-label":(d=e["aria-label"])!==null&&d!==void 0?d:void 0}),p=at({defaultClassName:n,className:e.className,style:e.style,values:{}});return V.createElement("section",{...Ve(e),...u,...p,ref:t},V.createElement(l0.Provider,{value:{...f,ref:l}},V.createElement(s,{collection:o.collection,parent:r,renderDropIndicator:s0(i,a)})))}const _I=oI("section",u0),AI=my("item",function(t,r,n){let o=pt(r),i=g.useContext(Po),{dragAndDropHooks:a,dragState:s,dropState:l}=g.useContext(ya),{optionProps:c,labelProps:d,descriptionProps:f,...u}=s3({key:n.key,"aria-label":t==null?void 0:t["aria-label"]},i,o),{hoverProps:p,isHovered:h}=Br({isDisabled:!u.allowsSelection&&!u.hasAction,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),m=null;s&&a&&(m=a.useDraggableItem({key:n.key},s));let v=null;l&&a&&(v=a.useDroppableItem({target:{type:"item",key:n.key,dropPosition:"on"}},l,o));let x=s&&s.isDragging(n.key),E=at({...t,id:void 0,children:t.children,defaultClassName:"react-aria-ListBoxItem",values:{...u,isHovered:h,selectionMode:i.selectionManager.selectionMode,selectionBehavior:i.selectionManager.selectionBehavior,allowsDragging:!!s,isDragging:x,isDropTarget:v==null?void 0:v.isDropTarget}});g.useEffect(()=>{!n.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[n.textValue]);let P=t.href?"a":"div";return V.createElement(P,{...re(c,p,m==null?void 0:m.dragProps,v==null?void 0:v.dropProps),...E,ref:o,"data-allows-dragging":!!s||void 0,"data-selected":u.isSelected||void 0,"data-disabled":u.isDisabled||void 0,"data-hovered":h||void 0,"data-focused":u.isFocused||void 0,"data-focus-visible":u.isFocusVisible||void 0,"data-pressed":u.isPressed||void 0,"data-dragging":x||void 0,"data-drop-target":(v==null?void 0:v.isDropTarget)||void 0,"data-selection-mode":i.selectionManager.selectionMode==="none"?void 0:i.selectionManager.selectionMode},V.createElement(Wr,{values:[[va,{slots:{[Bi]:d,label:d,description:f}}]]},E.children))});function LI(e,t){t=pt(t);let{dragAndDropHooks:r,dropState:n}=g.useContext(ya),{dropIndicatorProps:o,isHidden:i,isDropTarget:a}=r.useDropIndicator(e,n,t);return i?null:V.createElement(FI,{...e,dropIndicatorProps:o,isDropTarget:a,ref:t})}function MI(e,t){let{dropIndicatorProps:r,isDropTarget:n,...o}=e,i=at({...o,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:n}});return V.createElement("div",{...r,...i,role:"option",ref:t,"data-drop-target":n||void 0})}const FI=g.forwardRef(MI),d0=g.createContext({placement:"bottom"}),yc=g.createContext(null),Rf=g.createContext(null),f0=g.forwardRef(function(t,r){[t,r]=ft(t,r,yc);let n=g.useContext(xa),o=ba(t),i=t.isOpen!=null||t.defaultOpen!=null||!n?o:n,a=sv(r,i.isOpen)||t.isExiting||!1,s=Q3(),{direction:l}=vr();if(s){let c=t.children;return typeof c=="function"&&(c=c({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),V.createElement(V.Fragment,null,c)}return i&&!i.isOpen&&!a?null:V.createElement(zI,{...t,triggerRef:t.triggerRef,state:i,popoverRef:r,isExiting:a,dir:l})});function zI({state:e,isExiting:t,UNSTABLE_portalContainer:r,...n}){let o=g.useRef(null),[i,a]=g.useState(0),s=g.useRef(null),l=g.useContext(Rf),c=l&&n.trigger==="SubmenuTrigger";pe(()=>{o.current&&e.isOpen&&a(o.current.getBoundingClientRect().width)},[e.isOpen,o]);var d;let{popoverProps:f,underlayProps:u,arrowProps:p,placement:h}=HO({...n,offset:(d=n.offset)!==null&&d!==void 0?d:8,arrowSize:i,groupRef:c?l:s},e),m=n.popoverRef,v=av(m,!!h)||n.isEntering||!1,x=at({...n,defaultClassName:"react-aria-Popover",values:{trigger:n.trigger||null,placement:h,isEntering:v,isExiting:t}}),E=!n.isNonModal||n.trigger==="SubmenuTrigger",[P,T]=g.useState(!1);pe(()=>{m.current&&T(E&&!m.current.querySelector("[role=dialog]"))},[m,E]),g.useEffect(()=>{P&&m.current&&!m.current.contains(document.activeElement)&&gr(m.current)},[P,m]);let C={...f.style,...x.style},k=V.createElement("div",{...re(Ve(n),f),...x,role:P?"dialog":void 0,tabIndex:P?-1:void 0,"aria-label":n["aria-label"],"aria-labelledby":n["aria-labelledby"],ref:m,slot:n.slot||void 0,style:C,dir:n.dir,"data-trigger":n.trigger,"data-placement":h,"data-entering":v||void 0,"data-exiting":t||void 0},!n.isNonModal&&V.createElement(ff,{onDismiss:e.close}),V.createElement(d0.Provider,{value:{...p,placement:h,ref:o}},x.children),V.createElement(ff,{onDismiss:e.close}));if(!c)return V.createElement(pf,{...n,shouldContainFocus:P,isExiting:t,portalContainer:r},!n.isNonModal&&e.isOpen&&V.createElement("div",{"data-testid":"underlay",...u,style:{position:"fixed",inset:0}}),V.createElement("div",{ref:s,style:{display:"contents"}},V.createElement(Rf.Provider,{value:s},k)));var D;return V.createElement(pf,{...n,shouldContainFocus:P,isExiting:t,portalContainer:(D=r??(l==null?void 0:l.current))!==null&&D!==void 0?D:void 0},k)}const VI=g.createContext(null),p0=g.createContext(null),xa=g.createContext(null);function BI(e){let t=bI(e),r=g.useRef(null),{triggerProps:n,overlayProps:o}=Mv({type:"dialog"},t,r);return n.id=He(),o["aria-labelledby"]=n.id,V.createElement(Wr,{values:[[xa,t],[VI,t],[p0,o],[yc,{trigger:"DialogTrigger",triggerRef:r,"aria-labelledby":o["aria-labelledby"]}]]},V.createElement(k5,{...n,ref:r,isPressed:t.isOpen},e.children))}const WI=g.forwardRef(function(t,r){let n=t["aria-labelledby"];[t,r]=ft(t,r,p0);let{dialogProps:o,titleProps:i}=d3({...t,"aria-labelledby":n},r),a=g.useContext(xa);!o["aria-label"]&&!o["aria-labelledby"]&&(t["aria-labelledby"]?o["aria-labelledby"]=t["aria-labelledby"]:process.env.NODE_ENV!=="production"&&console.warn('If a Dialog does not contain a <Heading slot="title">, it must have an aria-label or aria-labelledby attribute for accessibility.'));let s=at({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:(a==null?void 0:a.close)||(()=>{})}});return V.createElement("section",{...Ve(t),...o,...s,ref:r,slot:t.slot||void 0},V.createElement(Wr,{values:[[X3,{slots:{[Bi]:{},title:{...i,level:2}}}],[hc,{slots:{[Bi]:{},close:{onPress:()=>a==null?void 0:a.close()}}}]]},s.children))});function HI(e){return e&&e.__esModule?e.default:e}const xc=g.createContext(null),Sc=g.createContext(null),KI=g.forwardRef(function(t,r){[t,r]=ft(t,r,xc);let{children:n,isDisabled:o=!1,isInvalid:i=!1,isRequired:a=!1}=t,s=g.useMemo(()=>typeof n=="function"?n({isOpen:!1,isDisabled:o,isInvalid:i,isRequired:a,isFocused:!1,isFocusVisible:!1,defaultChildren:null}):n,[n,o,i,a]);return V.createElement(gy,{content:s},l=>V.createElement(jI,{props:t,collection:l,selectRef:r}))});function jI({props:e,selectRef:t,collection:r}){let{validationBehavior:n}=ma(Cy)||{};var o,i;let a=(i=(o=e.validationBehavior)!==null&&o!==void 0?o:n)!==null&&i!==void 0?i:"native",s=yI({...e,collection:r,children:void 0,validationBehavior:a}),{isFocusVisible:l,focusProps:c}=br({within:!0}),d=g.useRef(null),[f,u]=dc(!e["aria-label"]&&!e["aria-labelledby"]),{labelProps:p,triggerProps:h,valueProps:m,menuProps:v,descriptionProps:x,errorMessageProps:E,...P}=b3({...uy(e),label:u,validationBehavior:a},s,d),[T,C]=g.useState(null),k=g.useCallback(()=>{d.current&&C(d.current.offsetWidth+"px")},[d]);Ms({ref:d,onResize:k});let D=g.useMemo(()=>({isOpen:s.isOpen,isFocused:s.isFocused,isFocusVisible:l,isDisabled:e.isDisabled||!1,isInvalid:P.isInvalid||!1,isRequired:e.isRequired||!1}),[s.isOpen,s.isFocused,l,e.isDisabled,P.isInvalid,e.isRequired]),R=at({...e,values:D,defaultClassName:"react-aria-Select"}),_=Ve(e);delete _.id;let N=g.useRef(null);return V.createElement(Wr,{values:[[xc,e],[Sc,s],[g0,m],[yy,{...p,ref:f,elementType:"span"}],[hc,{...h,ref:d,isPressed:s.isOpen}],[xa,s],[yc,{trigger:"Select",triggerRef:d,scrollRef:N,placement:"bottom start",style:{"--trigger-width":T},"aria-labelledby":v["aria-labelledby"]}],[bc,{...v,ref:N}],[Po,s],[va,{slots:{description:x,errorMessage:E}}],[xy,P]]},V.createElement("div",{..._,...R,...c,ref:t,slot:e.slot||void 0,"data-focused":s.isFocused||void 0,"data-focus-visible":l||void 0,"data-open":s.isOpen||void 0,"data-disabled":e.isDisabled||void 0,"data-invalid":P.isInvalid||void 0,"data-required":e.isRequired||void 0}),V.createElement(x3,{autoComplete:e.autoComplete,state:s,triggerRef:d,label:u,name:e.name,isDisabled:e.isDisabled}))}const g0=g.createContext(null),UI=g.forwardRef(function(t,r){var n,o;[t,r]=ft(t,r,g0);let i=g.useContext(Sc),{placeholder:a}=ma(xc),s=i.selectedKey!=null?i.collection.getItem(i.selectedKey):null,l=s==null?void 0:s.props.children;typeof l=="function"&&(l=l({isHovered:!1,isPressed:!1,isSelected:!1,isFocused:!1,isFocusVisible:!1,isDisabled:!1,selectionMode:"single",selectionBehavior:"toggle"}));let c=rc(HI(i0),"react-aria-components");var d,f,u;let p=at({...t,defaultChildren:(d=l??a)!==null&&d!==void 0?d:c.format("selectPlaceholder"),defaultClassName:"react-aria-SelectValue",values:{selectedItem:(f=(n=i.selectedItem)===null||n===void 0?void 0:n.value)!==null&&f!==void 0?f:null,selectedText:(u=(o=i.selectedItem)===null||o===void 0?void 0:o.textValue)!==null&&u!==void 0?u:null,isPlaceholder:!s}}),h=Ve(t);return V.createElement("span",{ref:r,...h,...p,"data-placeholder":!s||void 0},V.createElement(va.Provider,{value:void 0},p.children))}),GI=g.createContext({}),h0=g.createContext(null),YI=g.forwardRef(function(t,r){[t,r]=ft(t,r,GI);let n=mO(t),{groupProps:o}=iO(t,n,r),i=at({...t,values:{isDisabled:n.isDisabled,state:n},defaultClassName:"react-aria-ToggleButtonGroup"});return V.createElement("div",{...o,...i,ref:r,slot:t.slot||void 0,"data-orientation":t.orientation||"horizontal","data-disabled":t.isDisabled||void 0},V.createElement(h0.Provider,{value:n},i.children))}),qI=g.createContext({}),XI=g.forwardRef(function(t,r){[t,r]=ft(t,r,qI);let n=g.useContext(h0),o=Iv(n&&t.id!=null?{isSelected:n.selectedKeys.has(t.id),onChange(m){n.setSelected(t.id,m)}}:t),{buttonProps:i,isPressed:a,isSelected:s,isDisabled:l}=n&&t.id!=null?aO({...t,id:t.id},n,r):wv({...t,id:t.id!=null?String(t.id):void 0},o,r),{focusProps:c,isFocused:d,isFocusVisible:f}=br(t),{hoverProps:u,isHovered:p}=Br(t),h=at({...t,id:void 0,values:{isHovered:p,isPressed:a,isFocused:d,isSelected:o.isSelected,isFocusVisible:f,isDisabled:l,state:o},defaultClassName:"react-aria-ToggleButton"});return V.createElement("button",{...re(i,c,u),...h,ref:r,slot:t.slot||void 0,"data-focused":d||void 0,"data-disabled":l||void 0,"data-pressed":a||void 0,"data-selected":s||void 0,"data-hovered":p||void 0,"data-focus-visible":f||void 0})}),wc=g.createContext(null),m0=g.createContext(null);function ZI(e){let t=Ey(e),r=g.useRef(null),{triggerProps:n,tooltipProps:o}=w3(e,t,r);return V.createElement(Wr,{values:[[wc,t],[m0,{...o,triggerRef:r}]]},V.createElement(P5,{...n,ref:r},e.children))}const JI=g.forwardRef(function({UNSTABLE_portalContainer:t,...r},n){[r,n]=ft(r,n,m0);let o=g.useContext(wc),i=Ey(r),a=r.isOpen!=null||r.defaultOpen!=null||!o?i:o,s=sv(n,a.isOpen)||r.isExiting||!1;return!a.isOpen&&!s?null:V.createElement(zO,{portalContainer:t},V.createElement(QI,{...r,tooltipRef:n,isExiting:s}))});function QI(e){let t=g.useContext(wc),r=g.useRef(null),[n,o]=g.useState(0);pe(()=>{r.current&&t.isOpen&&o(r.current.getBoundingClientRect().width)},[t.isOpen,r]);let{overlayProps:i,arrowProps:a,placement:s}=Lv({placement:e.placement||"top",targetRef:e.triggerRef,overlayRef:e.tooltipRef,offset:e.offset,crossOffset:e.crossOffset,isOpen:t.isOpen,arrowSize:n,arrowBoundaryOffset:e.arrowBoundaryOffset,shouldFlip:e.shouldFlip,onClose:()=>t.close(!0)}),l=av(e.tooltipRef,!!s)||e.isEntering||!1,c=at({...e,defaultClassName:"react-aria-Tooltip",values:{placement:s,isEntering:l,isExiting:e.isExiting,state:t}});e=re(e,i);let{tooltipProps:d}=S3(e,t);return V.createElement("div",{...d,ref:e.tooltipRef,...c,style:{...i.style,...c.style},"data-placement":s??void 0,"data-entering":l||void 0,"data-exiting":e.isExiting||void 0},V.createElement(d0.Provider,{value:{...a,placement:s,ref:r}},c.children))}const v0=we({className:"nimbus-tooltip",base:{color:"white",textStyle:"xs",fontWeight:"400",background:"slate.12",display:"inline-flex",alignItems:"center",borderRadius:"100",paddingX:"300",paddingY:"100",margin:"100",maxW:"6400",boxShadow:"1"}}),{withContext:e6}=St({recipe:v0}),t6=e6("div"),b0=g.forwardRef(function({children:t,placement:r="bottom",...n},o){return O.jsx(t6,{ref:o,asChild:!0,...n,children:O.jsx(JI,{placement:r,...n,children:t})})});b0.displayName="Tooltip";const y0=ZI;y0.displayName="TooltipTrigger";const x0=g.forwardRef(function(t,r){const n=g.useRef(null),o=pt(Qt(n,r)),{focusableProps:i}=$n(t,o);if(g.isValidElement(t.children))return g.cloneElement(t.children,re(i,t.children.props,{ref:o}))});x0.displayName="MakeElementFocusable";var r6=(e,t,r,n,o,i,a,s)=>{let l=document.documentElement,c=["light","dark"];function d(p){(Array.isArray(e)?e:[e]).forEach(h=>{let m=h==="class",v=m&&i?o.map(x=>i[x]||x):o;m?(l.classList.remove(...v),l.classList.add(i&&i[p]?i[p]:p)):l.setAttribute(h,p)}),f(p)}function f(p){s&&c.includes(p)&&(l.style.colorScheme=p)}function u(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)d(n);else try{let p=localStorage.getItem(t)||r,h=a&&p==="system"?u():p;d(h)}catch{}},Of=["light","dark"],S0="(prefers-color-scheme: dark)",n6=typeof window>"u",Ec=g.createContext(void 0),o6={setTheme:e=>{},themes:[]},i6=()=>{var e;return(e=g.useContext(Ec))!=null?e:o6},a6=e=>g.useContext(Ec)?g.createElement(g.Fragment,null,e.children):g.createElement(l6,{...e}),s6=["light","dark"],l6=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:n=!0,storageKey:o="theme",themes:i=s6,defaultTheme:a=r?"system":"light",attribute:s="data-theme",value:l,children:c,nonce:d,scriptProps:f})=>{let[u,p]=g.useState(()=>u6(o,a)),[h,m]=g.useState(()=>u==="system"?ls():u),v=l?Object.values(l):i,x=g.useCallback(C=>{let k=C;if(!k)return;C==="system"&&r&&(k=ls());let D=l?l[k]:k,R=t?d6(d):null,_=document.documentElement,N=S=>{S==="class"?(_.classList.remove(...v),D&&_.classList.add(D)):S.startsWith("data-")&&(D?_.setAttribute(S,D):_.removeAttribute(S))};if(Array.isArray(s)?s.forEach(N):N(s),n){let S=Of.includes(a)?a:null,M=Of.includes(k)?k:S;_.style.colorScheme=M}R==null||R()},[d]),E=g.useCallback(C=>{let k=typeof C=="function"?C(u):C;p(k);try{localStorage.setItem(o,k)}catch{}},[u]),P=g.useCallback(C=>{let k=ls(C);m(k),u==="system"&&r&&!e&&x("system")},[u,e]);g.useEffect(()=>{let C=window.matchMedia(S0);return C.addListener(P),P(C),()=>C.removeListener(P)},[P]),g.useEffect(()=>{let C=k=>{k.key===o&&(k.newValue?p(k.newValue):E(a))};return window.addEventListener("storage",C),()=>window.removeEventListener("storage",C)},[E]),g.useEffect(()=>{x(e??u)},[e,u]);let T=g.useMemo(()=>({theme:u,setTheme:E,forcedTheme:e,resolvedTheme:u==="system"?h:u,themes:r?[...i,"system"]:i,systemTheme:r?h:void 0}),[u,E,e,h,r,i]);return g.createElement(Ec.Provider,{value:T},g.createElement(c6,{forcedTheme:e,storageKey:o,attribute:s,enableSystem:r,enableColorScheme:n,defaultTheme:a,value:l,themes:i,nonce:d,scriptProps:f}),c)},c6=g.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:o,defaultTheme:i,value:a,themes:s,nonce:l,scriptProps:c})=>{let d=JSON.stringify([r,t,i,e,s,a,n,o]).slice(1,-1);return g.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${r6.toString()})(${d})`}})}),u6=(e,t)=>{if(n6)return;let r;try{r=localStorage.getItem(e)||void 0}catch{}return r||t},d6=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)}},ls=e=>(e||(e=window.matchMedia(S0)),e.matches?"dark":"light");function f6(e){return O.jsx(a6,{attribute:"class",disableTransitionOnChange:!0,...e})}function Cc(){const{resolvedTheme:e,setTheme:t}=i6();return{colorMode:e,setColorMode:t,toggleColorMode:()=>{t(e==="light"?"dark":"light")}}}function p6(e,t){const{colorMode:r}=Cc();return r==="light"?e:t}function g6(){const{colorMode:e}=Cc();return e==="light"?"Light Theme":"DarkTheme"}const h6=nm({"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"}}});function m6(e){var r;const t={};for(const n in e)(r=e[n])!=null&&r.value?t[n]=e[n].value:t[n]=e[n];return t}const v6=m6(Ie.themeTokens.breakpoints),b6=em({"*":{fontFeatureSettings:'"liga", "calt", "case", "ss01", "ss07", "ss08", "tnum"',"--ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--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","--focus-ring-color":"colors.primary.7","--brightness":"var(--chakra-empty,/*!*/ /*!*/)","--contrast":"var(--chakra-empty,/*!*/ /*!*/)","--grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--invert":"var(--chakra-empty,/*!*/ /*!*/)","--saturate":"var(--chakra-empty,/*!*/ /*!*/)","--sepia":"var(--chakra-empty,/*!*/ /*!*/)","--drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},"code *":{fontFeatureSettings:'"calt", "case", "ss01", "ss07", "ss08", "tnum"'},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"neutral"},"*::placeholder":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.9",color:"colorPalette.contrast"}}),y6={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)"}},"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"}}},x6=om({disabled:{value:{opacity:"0.5",cursor:"not-allowed"}}}),S6=we({className:"nimbus-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"100"},variants:{variant:{solid:{bg:"colorPalette.4",color:"colorPalette.11"},subtle:{bg:"colorPalette.3",color:"colorPalette.11"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"100",minH:"400"},sm:{textStyle:"xs",px:"150",minH:"500"},md:{textStyle:"sm",px:"200",minH:"600"},lg:{textStyle:"sm",px:"250",minH:"700"}}},defaultVariants:{variant:"solid",size:"md"}}),w6=we({className:"nimbus-heading",base:{fontFamily:"heading",fontWeight:"600"},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"}}),E6=we({className:"nimbus-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"100",borderRadius:"100"},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:"450"},md:{textStyle:"sm",height:"500"},lg:{textStyle:"md",height:"600"}}},defaultVariants:{size:"md",variant:"raised"}}),Pc=we({className:"nimbus-text-input",base:{display:"block",borderRadius:"200",colorPalette:"neutral",focusVisibleRing:"outside",bg:"transparent",outline:"none",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)",_placeholder:{opacity:.5,color:"currentColor"},_disabled:{layerStyle:"disabled"},"&[data-invalid='true']":{"--border-color":"colors.critical.7",color:"critical.11"}},variants:{size:{sm:{h:800,textStyle:"sm",px:300},md:{h:1e3,textStyle:"md",px:400}},variant:{solid:{"--border-width":"sizes.25","--border-color":"colors.neutral.7",backgroundColor:"neutral.1",_hover:{backgroundColor:"primary.2"}},ghost:{_hover:{backgroundColor:"primary.2"}}}},defaultVariants:{size:"md",variant:"solid"}}),C6={avatar:Ym,button:Rr,code:S6,heading:w6,kbd:E6,link:ay,tooltip:v0,textInput:Pc},P6=kn.colors({bg:{DEFAULT:{value:{_light:"{colors.neutral.1}",_dark:"{colors.neutral.1}"}}},fg:{DEFAULT:{value:{_light:"{colors.neutral.12}",_dark:"{colors.neutral.12}"}}},border:{DEFAULT:{value:"{colors.neutral.6}"},muted:{value:"{colors.neutral.7}"},subtle:{value:"{colors.neutral.6}"},emphasized:{value:"{colors.neutral.8}"},inverted:{value:"{colors.neutral.9}"},critical:{value:"{colors.critical.8}"},warning:{value:"{colors.warning.8}"},positive:{value:"{colors.positive.8}"},info:{value:"{colors.ingo.8}"}},...Ie.themeTokens.color["system-palettes"],...Ie.themeTokens.color["brand-palettes"],...Ie.themeTokens.color["semantic-palettes"]}),k6=kn.shadows(Ie.themeTokens.shadow),$6=kn.radii({}),T6={colors:P6,shadows:k6,radii:$6},R6=J({slots:["trigger","backdrop","positioner","content","title","description","closeTrigger","header","body","footer","backdrop"],className:"nimbus-dialog",base:{backdrop:{bg:{_dark:"bg/50",_light:"fg/50"},pos:"fixed",left:0,top:0,w:"100vw",h:"100dvh",zIndex:"modal",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",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:"200",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",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{flex:0,px:"600",pt:"600",pb:"400"},body:{flex:"1",px:"600",pt:"200",pb:"600"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"300",px:"600",pt:"200",pb:"400"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.1600",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.1600",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:"1000"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100vw",minH:"100vh","--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"}}),O6=J({className:"chakra-list",slots:["root","item","indicator"],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:"200",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert",listStylePosition:"inside"},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"}}),I6=J({className:"chakra-table",slots:["root","header","body","row","columnHeader","cell","footer","caption"],base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"200",py:"200"},cell:{px:"200",py:"200"}},md:{root:{textStyle:"sm"},columnHeader:{px:"300",py:"300"},cell:{px:"300",py:"300"}},lg:{root:{textStyle:"md"},columnHeader:{px:"400",py:"300"},cell:{px:"400",py:"300"}}}},defaultVariants:{variant:"line",size:"md"}}),N6=J({slots:["root","label","indicator"],className:"nimbus-checkbox",base:{root:{colorPalette:"primary",display:"inline-flex",gap:"200",alignItems:"center",verticalAlign:"top",minWidth:"600",minHeight:"600","&[data-disabled='true']":{layerStyle:"disabled"}},label:{flexShrink:0,userSelect:"none",color:"neutral.11","&[data-invalid='true']":{color:"critical.11"}},indicator:{position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",border:"solid-50",borderRadius:"50",focusRing:"outside",borderColor:"neutral.9",bg:"transparent",color:"neutral.11",_icon:{w:"350",h:"350"},"&:hover":{borderColor:"neutral.10"},"&[data-invalid='true']":{bg:"transparent",borderColor:"critical.9",color:"critical.11","&:hover":{borderColor:"critical.10"}},"&[data-selected='true'], &[data-indeterminate='true']":{bg:"colorPalette.9",borderColor:"colorPalette.9",color:"colorPalette.contrast","&:hover":{bg:"colorPalette.10",borderColor:"colorPalette.10"},"&[data-invalid='true']":{bg:"critical.9",borderColor:"critical.9",color:"critical.contrast","&:hover":{bg:"critical.10",borderColor:"critical.10"}}}}},variants:{size:{md:{label:{fontSize:"350",fontWeight:"400",lineHeight:"400"},indicator:{w:"400",h:"400",zIndex:1,_after:{position:"absolute",content:"''",width:"600",height:"600",zIndex:0}}}}},defaultVariants:{size:"md"}}),w0=J({slots:["root","trigger","triggerLabel","options","optionGroup","option"],className:"nimbus-select",base:{root:{colorPalette:"primary",display:"inline-block",position:"relative",maxWidth:"100%",borderRadius:"200","&[data-disabled]":{layerStyle:"disabled",pointerEvents:"none"}},trigger:{cursor:"button",display:"inline-flex",focusRing:"outside",alignItems:"flex-start",borderRadius:"200",color:"neutral.12",width:"100%",userSelect:"none",boxShadow:"inset 0 0 0 var(--border-width) var(--border-color)","& span":{display:"inline-block",my:"auto"},'& [slot="description"]':{display:"none"},"[data-invalid] &":{"--border-width":"sizes.50","--border-color":"colors.critical.7"}},triggerLabel:{"--button-safespace":"sizes.1400",color:"neutral.12",textAlign:"left",marginRight:"var(--button-safespace)",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","&[data-placeholder]":{opacity:.5},"[data-invalid] &":{color:"critical.11"}},options:{"--scrollbar-color":"colors.neutral.8","--scrollbar-bg":"colors.neutral.3",bg:"bg",borderRadius:"200",boxShadow:"5",minWidth:"var(--trigger-width)",p:"200",focusRing:"outside",maxHeight:"40svh",overflowY:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--scrollbar-color) var(--scrollbar-bg)"},optionGroup:{textStyle:"xs",color:"neutral.11",fontWeight:"600",lineHeight:"350",letterSpacing:"25",textTransform:"uppercase",p:"200",borderBottom:"solid-25",borderColor:"neutral.6",mx:"-200",mt:"200",mb:"300"},option:{focusRing:"outside",cursor:"menuitem",color:"neutral.12",textStyle:"sm",p:"200",borderRadius:"200",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",'&[aria-selected="true"], &[data-focused="true"]':{bg:"primary.4"},'& [slot="label"]':{display:"block"},'& [slot="description"]':{display:"block",color:"neutral.11",textStyle:"xs"},'&[data-disabled="true"]':{layerStyle:"disabled"}}},variants:{size:{sm:{root:{},trigger:{h:"800",px:"400",textStyle:"sm"}},md:{root:{},trigger:{h:"1000",px:"400",textStyle:"md"}}},variant:{outline:{root:{bg:"bg","&:hover":{bg:"primary.2"}},trigger:{"--border-width":"sizes.25","--border-color":"colors.neutral.7"}},ghost:{root:{bg:"transparent","&:hover":{bg:"primaryAlpha.2"}},trigger:{"--border-width":"sizes.25","--border-color":"transparent"}}}},defaultVariants:{size:"md",variant:"outline"}}),D6=J({slots:["root","disclosure","trigger","panel","accordionTitle","headerContentRight"],className:"nimbus-accordion",base:{root:{width:"100%"},disclosure:{width:"100%"},trigger:{fontSize:"var(--font-size)",focusVisibleRing:"outside",minHeight:"1200",bg:"none",flexGrow:1,display:"flex",alignItems:"center",gap:"8px",width:"auto","& svg":{width:"var(--width)",height:"var(--height)",rotate:"0deg",transition:"rotate 200ms"},'&[aria-expanded="true"] svg':{rotate:"90deg"},"&[disabled]":{layerStyle:"disabled"}},panel:{paddingTop:"var(--padding-top)",paddingBottom:"var(--padding-bottom)",paddingLeft:"var(--padding-left)",'&[aria-hidden="true"]':{display:"none"}},accordionTitle:{fontWeight:"700"}},variants:{size:{md:{trigger:{"--font-size":"fontSizes.500","& svg":{"--width":"sizes.600","--height":"sizes.600"}},panel:{"--padding-top":"spacing.600","--padding-bottom":"spacing.800","--padding-left":"spacing.800"}},sm:{trigger:{"--font-size":"fontSizes.400","& svg":{"--width":"sizes.500","--height":"sizes.500"}},panel:{"--padding-top":"spacing.400","--padding-bottom":"spacing.600","--padding-left":"spacing.700"}}}},defaultVariants:{size:"md"}}),_6={dialog:R6,list:O6,table:I6,checkbox:N6,select:w0,accordion:D6},A6=rm(Ie.themeTokens.textStyle),L6=de.durations(Ie.themeTokens.aspectRatio),M6=de.animations(Ie.themeTokens.animation),F6=de.blurs(Ie.themeTokens.blur),z6=de.borders(Ie.themeTokens.border),V6=de.colors({...Ie.themeTokens.color["blacks-and-whites"]}),B6=de.durations(Ie.themeTokens.duration),W6=de.easings(Ie.themeTokens.easing),H6=de.fonts(Ie.themeTokens.fontFamily),K6=de.fontSizes(Ie.themeTokens.fontSize),j6=de.fontWeights(Ie.themeTokens.fontWeight),U6=e=>Object.keys(e).reduce((t,r)=>{const o=parseFloat(e[r].value)/100;return t[r]={value:`${o}em`},t},{}),G6=de.letterSpacings(U6(Ie.themeTokens.letterSpacing)),Y6=de.lineHeights(Ie.themeTokens.lineHeight),q6=de.radii(Ie.themeTokens.borderRadius),X6=de.spacing(Ie.themeTokens.spacing),Z6=de.sizes({...Ie.themeTokens.size,"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%"},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"}}),J6=de.zIndex(Ie.themeTokens.zIndex),Q6=de.cursor(Ie.themeTokens.cursor),eN={aspectRatios:L6,animations:M6,blurs:F6,borders:z6,colors:V6,durations:B6,easings:W6,fonts:H6,fontSizes:K6,fontWeights:j6,letterSpacings:G6,lineHeights:Y6,radii:q6,spacing:X6,sizes:Z6,zIndex:J6,cursor:Q6},tN=jl({preflight:!0,cssVarsPrefix:"nimbus",cssVarsRoot:":where(:root, :host)",globalCss:b6,theme:{breakpoints:v6,keyframes:y6,tokens:eN,semanticTokens:T6,recipes:C6,slotRecipes:_6,textStyles:A6,layerStyles:x6,animationStyles:h6}}),E0=$m(lm,tN);function rN(){const[e,t]=g.useState(r());function r(){return document.documentElement.style.getPropertyValue("color-scheme")||localStorage.getItem("theme")||"light"}return g.useEffect(()=>{const n=document.documentElement,o=new MutationObserver(()=>{const i=r();t(i)});return o.observe(n,{attributes:!0,attributeFilter:["style"]}),()=>o.disconnect()},[]),e}function nN({children:e,...t}){return O.jsx(e1,{value:E0,children:O.jsx(f6,{enableSystem:!1,...t,children:O.jsx(O.Fragment,{children:e})})})}function Sa(e){const t={},r={...e};return Object.keys(e).forEach(n=>{Object.prototype.hasOwnProperty.call(e,n)&&Im.isValidProperty(n)&&(t[n]=e[n],delete r[n])}),[t,r]}const{withProvider:oN,withContext:C0}=Wt({key:"checkbox"}),iN=oN("label","root"),aN=C0("span","label"),sN=C0("span","indicator"),P0=g.forwardRef((e,t)=>{const r=g.useRef(null),n=pt(Qt(r,t)),o=ia({key:"checkbox"}),[i]=o.splitVariantProps(e),[a,s]=Sa(e),l=Iv(e),{inputProps:c}=hO(s,l,n),{isFocused:d,focusProps:f}=br(),u=l.isSelected&&!e.isIndeterminate,p=e.isIndeterminate,h={"data-selected":u,"data-indeterminate":p,"data-invalid":e.isInvalid,"data-disabled":e.isDisabled,"data-focus":d||void 0};return O.jsxs(iN,{"data-slot":"root",...i,...h,...a,children:[O.jsxs(sN,{"data-slot":"indicator",...h,children:[u&&O.jsx(lt.Check,{}),p&&O.jsx(lt.Remove,{}),O.jsx(kc,{as:"span",children:O.jsx("input",{...re(c,f),ref:n})})]}),e.children&&O.jsx(aN,{"data-slot":"label",...h,children:e.children})]})});P0.displayName="Checkbox";const wa=g.forwardRef((e,t)=>O.jsx(O4,{ref:t,...e}));wa.displayName="Stack";const kc=e=>{const{as:t="div",...r}=e;return O.jsx(Dv,{elementType:t,...r})};kc.displayName="VisuallyHidden";const{withContext:lN}=St({recipe:Pc}),cN=lN("input"),k0=g.forwardRef((e,t)=>{const r=g.useRef(null),n=pt(Qt(r,t)),o=sg({recipe:Pc}),[i,a]=o.splitVariantProps(e),[s,l]=Sa(a);return O.jsx(CI,{...l,children:O.jsx(cN,{ref:n,...i,...s,asChild:!0,children:O.jsx(sI,{})})})});k0.displayName="TextInput";const $0=g.forwardRef((e,t)=>O.jsx(lg,{ref:t,...e}));$0.displayName="Grid";const uN=Object.assign($0,{Item:Am}),{withProvider:dN,withContext:ko}=Wt({key:"select"}),fN=dN("div","root"),pN=ko("button","trigger"),gN=ko("span","triggerLabel"),hN=ko("div","options"),mN=ko("div","option"),vN=ko("div","optionGroup"),T0=()=>{const e=g.useContext(Sc);if(!(e!=null&&e.selectedKey))return null;const t=()=>{e==null||e.setSelectedKey(null)};return O.jsx(Co,{pointerEvents:"all",size:"2xs",variant:"ghost",tone:"primary","aria-label":"Clear Selection",onPress:t,children:O.jsx(lt.Close,{})})};T0.displayName="Select.ClearButton";const $c=g.forwardRef(({children:e,isLoading:t,isDisabled:r,...n},o)=>{const i=ia({recipe:w0}),[a,s]=i.splitVariantProps(n),[l,c]=Sa(s),d={...c,isDisabled:t||r};return O.jsx(fN,{asChild:!0,ref:o,...a,...l,children:O.jsxs(KI,{...d,children:[O.jsxs(Qe.div,{position:"relative",children:[O.jsx(pN,{zIndex:0,asChild:!0,children:O.jsx(uI,{children:O.jsx(gN,{asChild:!0,children:O.jsx(UI,{})})})}),O.jsxs(ro,{position:"absolute",top:"0",bottom:"0",zIndex:1,right:"400",pointerEvents:"none",children:[O.jsx(ro,{width:"600",my:"auto",children:O.jsx(T0,{})}),O.jsx(ro,{my:"auto",w:"600",h:"600",pointerEvents:"none",children:O.jsx(Gt,{color:"neutral.9",asChild:!0,m:"auto",w:"400",h:"400",children:t?O.jsx(Gt,{asChild:!0,animation:"spin",animationDuration:"slowest",children:O.jsx(lt.Loop,{})}):O.jsx(lt.KeyboardArrowDown,{})})})]})]}),O.jsx(f0,{children:e})]})})});$c.displayName="Select.Root";const Tc=e=>g.forwardRef(e),Rc=Tc((e,t)=>{const[r,n]=Sa(e);return O.jsx(hN,{asChild:!0,...r,children:O.jsx(NI,{ref:t,...n})})});Rc.displayName="Select.Options";const Oc=Tc((e,t)=>O.jsx(mN,{asChild:!0,ref:t,children:O.jsx(AI,{...e})}));Oc.displayName="Select.Option";const Ic=Tc(({label:e,items:t,children:r,...n},o)=>{if(t&&typeof r!="function")throw new Error('SelectOptionGroup: When "items" is provided, "children" must be a function');return O.jsxs(_I,{ref:o,...n,children:[O.jsx(vN,{asChild:!0,children:O.jsx(OI,{children:e})}),t?O.jsx(by,{items:t,children:i=>typeof r=="function"?r(i):null}):r]})});Ic.displayName="Select.OptionGroup";const bN={Root:$c,Options:Rc,Option:Oc,OptionGroup:Ic},{withProvider:yN,withContext:$o}=Wt({key:"accordion"}),xN=yN("div","root"),SN=$o("div","disclosure"),wN=$o("button","trigger"),EN=$o("div","panel"),CN=$o("div","accordionTitle"),tl=$o("div","headerContentRight"),Nc=g.createContext(null),R0=g.createContext(null),PN=g.forwardRef(({children:e,onExpandedChange:t,...r},n)=>{const o=vI({...r,onExpandedChange:s=>{t==null||t(s.size>0)}}),i=ia({key:"accordion"}),[a]=i.splitVariantProps(r);return O.jsx(R0.Provider,{value:o,children:O.jsx(xN,{"data-slot":"root",ref:n,...a,children:e})})}),kN=g.forwardRef(({children:e},t)=>{const r=g.useContext(Nc);if(!r)throw new Error("Accordion.Header must be used within Accordion.Item");const n=V.Children.toArray(e).reduce((o,i)=>(V.isValidElement(i)&&i.type===tl?o.rightContent.push(i):o.main.push(i),o),{main:[],rightContent:[]});return O.jsxs(ro,{justifyContent:"space-between",alignItems:"center",borderBottom:"solid-25",borderColor:"neutral.4",children:[O.jsxs(wN,{ref:Qt(r.triggerRef,t),...r.buttonProps,"data-slot":"trigger",outline:r.isFocusVisible?void 0:"none",children:[O.jsx(lt.KeyboardArrowRight,{}),O.jsx(CN,{"data-slot":"accordionTitle",children:n.main})]}),n.rightContent.length>0&&O.jsx(tl,{"data-slot":"headerContentRight",children:n.rightContent})]})}),$N=g.forwardRef((e,t)=>{const r=g.useContext(Nc),n=pt(Qt(r==null?void 0:r.panelRef,t));return O.jsx(EN,{ref:n,...oo({...r==null?void 0:r.panelProps,...e}),"data-slot":"panel",children:e.children})}),TN=g.forwardRef(({children:e,id:t,isDisabled:r,isExpanded:n,onExpandedChange:o,value:i},a)=>{const s=He(),c=i||(t||s),d=g.useContext(R0),f=d?d.expandedKeys.has(c):n,u=mI({isExpanded:f,onExpandedChange:k=>{d&&d.toggleKey(c),o==null||o(k)}}),p=g.useRef(null),h=g.useRef(null),m=r||(d==null?void 0:d.isDisabled)||!1,{buttonProps:v,panelProps:x}=f3({isExpanded:u.isExpanded,isDisabled:m},u,p),{buttonProps:E}=ga(v,h),{focusProps:P,isFocusVisible:T}=br(),C={isExpanded:u.isExpanded,triggerRef:h,panelRef:p,buttonProps:re(E,P),panelProps:x,isFocusVisible:T};return O.jsx(Nc.Provider,{value:C,children:O.jsx(SN,{"data-slot":"disclosure","data-value":c,"data-expanded":u.isExpanded,ref:a,children:e})})}),RN={Root:PN,Item:TN,Header:kN,Content:$N,HeaderRightContent:tl},ON=we({className:"nimbus-loading-spinner",base:{display:"inline-flex",alignItems:"center",justifyContent:"center","& svg":{overflow:"visible",transform:"scale(calc(1 - 2/12))"},"& svg [data-svg-path='spinner-pointer']":{stroke:"colorPalette.10",animationName:"spin",animationDuration:"0.5s",animationTimingFunction:"linear",animationIterationCount:"infinite",transformOrigin:"center center 0"},"& svg [data-svg-path='spinner-circle']":{stroke:"colorPalette.5"}},variants:{size:{"2xs":{width:"350",height:"350"},xs:{width:"500",height:"500"},sm:{width:"600",height:"600"},md:{width:"800",height:"800"},lg:{width:"1000",height:"1000"}},tone:{primary:{colorPalette:"ctvioletAlpha"},white:{colorPalette:"whiteAlpha"}}},defaultVariants:{size:"sm",tone:"primary"}}),{withContext:IN}=St({recipe:ON}),NN=IN("div"),DN="M22.5 12C22.5 13.3789 22.2284 14.7443 21.7007 16.0182C21.1731 17.2921 20.3996 18.4496 19.4246 19.4246C18.4496 20.3996 17.2921 21.1731 16.0182 21.7007C14.7443 22.2284 13.3789 22.5 12 22.5C10.6211 22.5 9.25574 22.2284 7.98182 21.7007C6.7079 21.1731 5.55039 20.3996 4.57538 19.4246C3.60036 18.4496 2.82694 17.2921 2.29926 16.0182C1.77159 14.7443 1.5 13.3789 1.5 12C1.5 10.6211 1.77159 9.25574 2.29927 7.98182C2.82694 6.7079 3.60037 5.55039 4.57538 4.57538C5.5504 3.60036 6.70791 2.82694 7.98183 2.29926C9.25575 1.77159 10.6211 1.5 12 1.5C13.3789 1.5 14.7443 1.77159 16.0182 2.29927C17.2921 2.82694 18.4496 3.60037 19.4246 4.57538C20.3996 5.5504 21.1731 6.70791 21.7007 7.98183C22.2284 9.25575 22.5 10.6211 22.5 12L22.5 12Z",_N="M12 1.5C13.3789 1.5 14.7443 1.77159 16.0182 2.29927C17.2921 2.82694 18.4496 3.60036 19.4246 4.57538C20.3996 5.55039 21.1731 6.70791 21.7007 7.98183C22.2284 9.25574 22.5 10.6211 22.5 12",O0=g.forwardRef(({"aria-label":e="Loading data",...t},r)=>{const{progressBarProps:n}=v3({isIndeterminate:!0,"aria-label":e,...t});return O.jsx(NN,{ref:r,...re(t,n),"aria-label":e,children:O.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",children:[O.jsx("path",{d:DN,"data-svg-path":"spinner-circle",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),O.jsx("path",{d:_N,"data-svg-path":"spinner-pointer",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})})});O0.displayName="LoadingSpinner";const AN=J({slots:["root","header","content"],className:"nimbus-card",base:{root:{colorPalette:"slate",display:"inline-flex",alignItems:"flex-start",borderRadius:"300",focusVisibleRing:"outside"}},variants:{cardPadding:{sm:{root:{padding:"200"}},md:{root:{padding:"400"}},lg:{root:{padding:"600"}}},borderStyle:{none:{},outlined:{root:{border:"solid-25",borderColor:"colorPalette.3"}}},elevation:{none:{},elevated:{root:{shadow:"1"}}},backgroundStyle:{default:{root:{backgroundColor:"colorPalette.contrast"}},muted:{root:{backgroundColor:"colorPalette.2"}}}}}),{withProvider:LN,withContext:I0}=Wt({recipe:AN}),MN=LN("div","root"),FN=I0("div","header"),zN=I0("div","content"),Dc=g.createContext(void 0),_c=g.forwardRef(({children:e,...t},r)=>{const{isFocused:n,isFocusVisible:o,focusProps:i}=br(),[a,s]=g.useState(null),[l,c]=g.useState(null),d=g.useMemo(()=>({setHeader:s,setContent:c}),[s,c]);return O.jsx(Dc.Provider,{value:d,children:O.jsxs(MN,{ref:r,...re(t,i),"data-focus":n||void 0,"data-focus-visible":o||void 0,tabIndex:0,children:[O.jsxs(wa,{direction:"column",gap:"200",children:[a,l]}),e]})})});_c.displayName="Card.Root";const Ac=({children:e,...t})=>{const r=g.useContext(Dc);return g.useEffect(()=>{if(r){const n=O.jsx(FN,{...t,children:e});return r.setHeader(n),()=>r.setHeader(null)}},[e,t]),null};Ac.displayName="Card.Header";const Lc=({children:e,...t})=>{const r=g.useContext(Dc);return g.useEffect(()=>{if(r){const n=O.jsx(zN,{...t,children:e});return r.setContent(n),()=>r.setContent(null)}},[e,t]),null};Lc.displayName="Card.Content";const VN={Root:_c,Header:Ac,Content:Lc},BN=we({className:"nimbus-badge",base:{display:"inline-flex",alignItems:"center",borderRadius:"200",justifyContent:"center",whiteSpace:"nowrap",verticalAlign:"middle",py:"25",fontWeight:"500",backgroundColor:"colorPalette.3",color:"colorPalette.11",w:"auto",userSelect:"none",_icon:{flexShrink:"0"}},variants:{size:{"2xs":{fontSize:"300",gap:"100",h:"600",lineHeight:"350",px:"200",_icon:{width:"400",height:"400"}},xs:{fontSize:"350",gap:"100",h:"800",lineHeight:"400",px:"300",_icon:{width:"500",height:"500"}},md:{fontSize:"400",gap:"200",h:"1000",lineHeight:"500",px:"400",_icon:{width:"600",height:"600"}}}},defaultVariants:{size:"md"}}),{withContext:WN}=St({recipe:BN}),HN=WN("span"),KN=g.forwardRef((e,t)=>{const{as:r,asChild:n,children:o,...i}=e,a=g.useRef(null),s=pt(Qt(a,t)),l=r||"span";return O.jsx(HN,{as:l,...re(i,{ref:s}),children:o})}),jN=J({slots:["root","title","description","icon","actions","dismissButton"],className:"nimbus-alert",base:{root:{display:"inline-flex",flexDirection:"row",gap:"200",width:"100%"},icon:{marginTop:"50","& svg":{width:"500",height:"500",color:"colorPalette.11"}},title:{color:"colorPalette.11"},description:{color:"colorPalette.11"}},variants:{tone:{critical:{root:{colorPalette:"critical"}},info:{root:{colorPalette:"info"}},warning:{root:{colorPalette:"amber"}},positive:{root:{colorPalette:"positive"}}},variant:{flat:{},outlined:{root:{border:"solid-25",borderColor:"colorPalette.5",backgroundColor:"colorPalette.2",padding:"200",borderRadius:"200"}}}}}),{withProvider:UN,withContext:To}=Wt({recipe:jN}),GN=UN("div","root"),YN=To("div","title"),qN=To("div","description"),XN=To("div","icon"),ZN=To("div","actions"),JN=To("div","dismissButton"),QN=e=>{switch(e){case"critical":return O.jsx(lt.ErrorOutline,{});case"info":return O.jsx(lt.Info,{});case"warning":return O.jsx(lt.WarningAmber,{});case"positive":return O.jsx(lt.CheckCircleOutline,{});default:return null}},Ro=g.createContext(void 0),N0=g.forwardRef(({children:e,...t},r)=>{const[n,o]=g.useState(null),[i,a]=g.useState(null),[s,l]=g.useState(null),[c,d]=g.useState(null),f=g.useMemo(()=>({setTitle:o,setDescription:a,setActions:l,setDismiss:d}),[o,a,l,d]);return O.jsx(Ro.Provider,{value:f,children:O.jsxs(GN,{ref:r,...t,role:"alert",children:[O.jsx(XN,{alignItems:"flex-start",children:QN(t.tone)}),O.jsxs(wa,{flex:"1",gap:"200",children:[O.jsxs(Gt,{children:[n,i]}),s]}),c,e]})})});N0.displayName="Alert.Root";const D0=({children:e,...t})=>{const r=g.useContext(Ro);return g.useEffect(()=>{if(r){const n=O.jsx(YN,{...t,fontWeight:"600",children:e});return r.setTitle(n),()=>r.setTitle(null)}},[e,t]),null};D0.displayName="Alert.Title";const _0=({children:e,...t})=>{const r=g.useContext(Ro);return g.useEffect(()=>{if(r){const n=O.jsx(qN,{...t,children:e});return r.setDescription(n),()=>r.setDescription(null)}},[e,t]),null};_0.displayName="Alert.Description";const A0=({children:e,...t})=>{const r=g.useContext(Ro);return g.useEffect(()=>{if(r){const n=O.jsx(ZN,{...t,children:e});return r.setActions(n),()=>r.setActions(null)}},[e,t]),null};A0.displayName="Alert.Actions";const L0=({children:e,...t})=>{const r=g.useContext(Ro);return g.useEffect(()=>{if(r){const n=O.jsx(JN,{children:O.jsx(Co,{"aria-label":"Dismiss",...t,variant:"ghost",size:"2xs",children:O.jsx(lt.Clear,{role:"img"})})});return r.setDismiss(n),()=>r.setDismiss(null)}},[e,t]),null};L0.displayName="Alert.DismissButton";const eD={Root:N0,Title:D0,Description:_0,Actions:A0,DismissButton:L0};var Hp,Kp,jp,Up;const tD=J({slots:["root","button"],className:"nimbus-toggle-button-group",base:{root:{display:"inline-flex"},button:{...Rr.base,...(Hp=Rr.variants)==null?void 0:Hp.variant.outline,borderRadius:"0",borderRightWidth:"0","&:first-of-type":{borderLeftRadius:"200"},"&:last-of-type":{borderRightWidth:"1px",borderRightRadius:"200"},"&[data-selected=true]":(Kp=Rr.variants)==null?void 0:Kp.variant.solid}},variants:{size:{xs:{button:(jp=Rr.variants)==null?void 0:jp.size.xs},md:{button:(Up=Rr.variants)==null?void 0:Up.size.md}},tone:{primary:{button:{colorPalette:"primary"}},critical:{button:{colorPalette:"critical"}},neutral:{button:{colorPalette:"neutral"}}}},defaultVariants:{size:"md"}}),{withContext:rD,withProvider:nD}=Wt({recipe:tD}),oD=nD(YI,"root"),iD=rD(XI,"button"),Mc=g.forwardRef(({children:e,...t},r)=>O.jsx(oD,{ref:r,...t,children:e}));Mc.displayName="ToggleButtonGroup.Root";const Fc=g.forwardRef(({children:e,...t},r)=>O.jsx(iD,{...t,ref:r,children:e}));Fc.displayName="ToggleButtonGroup.Button";const aD={Root:Mc,Button:Fc},sD=`
2
110
  "label"
3
111
  "input"
4
112
  "description"
5
113
  "error"
6
- `,cr=`
114
+ `,lD=`
7
115
  "label input"
8
116
  "label description"
9
117
  "label error"
10
- `,dr=i.defineSlotRecipe({slots:["root","label","input","description","error","popover"],className:"nimbus-ui-form-field",base:{root:{"--grid-gap":"spacing.100",display:"grid",width:"auto"},label:{gridArea:"label",fontWeight:"500",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},input:{gridArea:"input"},description:{gridArea:"description",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},error:{gridArea:"error",color:"critical.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},popover:{"--scrollbar-color":"colors.neutral.8","--scrollbar-bg":"colors.neutral.3",bg:"neutral.1",maxWidth:"xl",borderRadius:"200",boxShadow:"6",border:"solid-25",borderColor:"neutral.8",maxHeight:"40svh",overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--scrollbar-color) var(--scrollbar-bg)",focusRing:"outside"}},variants:{size:{md:{root:{"--form-field-font-size":"fontSizes.350","--form-field-line-height":"lineHeights.500"}},sm:{root:{"--form-field-font-size":"fontSizes.300","--form-field-line-height":"lineHeights.450"}}},direction:{column:{root:{gridTemplateAreas:sr},input:{mt:"var(--grid-gap)"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}},row:{root:{gridTemplateAreas:cr,gridTemplateColumns:"auto 1fr",gridColumnGap:"200"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}}}},defaultVariants:{direction:"column",size:"md"}}),{withProvider:ur,withContext:K}=i.createSlotRecipeContext({recipe:dr}),pr=ur("div","root"),fr=K("div","label"),mr=K("div","input"),gr=K("div","description"),hr=K("div","error"),br=K("div","popover"),xr=a.forwardRef(({isInvalid:e,isRequired:t,isDisabled:o,isReadOnly:r,children:c,...l},u)=>{const[s,p]=a.useState({label:null,description:null,error:null,info:null,input:null,isInvalid:e,isRequired:t,isDisabled:o,isReadOnly:r}),{labelProps:m,fieldProps:g,descriptionProps:y,errorMessageProps:f}=b.useField({label:s.label,description:s.description,errorMessage:s.error});a.useEffect(()=>{p(x=>({...x,isInvalid:e,isRequired:t,isDisabled:o,isReadOnly:r}))},[e,t,o,r]);const d={...g,isInvalid:e,isRequired:t,isDisabled:o,isReadOnly:r};return n.jsx(O.Provider,{value:{context:s,setContext:p},children:n.jsxs(pr,{ref:u,...l,children:[s.label&&n.jsxs(fr,{...s.labelSlotProps,children:[n.jsxs("label",{...m,children:[s.label,t&&n.jsx("sup",{"aria-hidden":"true",children:"*"})]}),s.info&&n.jsxs(R.DialogTrigger,{children:[n.jsx(I,{as:"span",display:"inline-block",position:"relative",width:"1ch",height:"1ch",ml:"200",children:n.jsx(I,{as:"span",display:"inline-flex",position:"absolute",top:"50%",right:"50%",transform:"translate(50%, -50%)",children:n.jsx(W,{"aria-label":"__MORE INFO",size:"2xs",tone:"info",variant:"link",children:n.jsx(T.HelpOutline,{})})})}),n.jsx(R.Popover,{children:n.jsx(br,{asChild:!0,children:n.jsx(R.Dialog,{children:n.jsx(I,{p:"300",children:s.info})})})})]})]}),s.input&&n.jsx(mr,{...s.inputSlotProps,children:a.Children.map(s.input,x=>a.isValidElement(x)?a.cloneElement(x,d):x)}),s.description&&n.jsx(gr,{...y,...s.descriptionSlotProps,children:s.description}),e&&s.error&&n.jsxs(hr,{...f,...s.errorSlotProps,children:[n.jsx(I,{as:T.ErrorOutline,display:"inline-flex",boxSize:"400",verticalAlign:"text-bottom",mr:"100"}),s.error]}),c]})})}),vr=({children:e,...t})=>{const{setContext:o}=a.useContext(O);return a.useEffect(()=>{o(r=>({...r,label:e,labelSlotProps:t}))},[e,o]),null},yr=({children:e,...t})=>{const{setContext:o}=a.useContext(O);return a.useEffect(()=>{o(r=>({...r,input:e,inputSlotProps:t}))},[e,o]),null},Cr=({children:e,...t})=>{const{setContext:o}=a.useContext(O);return a.useEffect(()=>{o(r=>({...r,description:e,descriptionSlotProps:t}))},[e,o]),null},wr=({children:e,...t})=>{const{setContext:o}=a.useContext(O);return a.useEffect(()=>{o(r=>({...r,error:e,errorSlotProps:t}))},[e,o]),null},Sr=({children:e})=>{const{setContext:t}=a.useContext(O);return a.useEffect(()=>{t(o=>({...o,info:e}))},[e,t]),null},O=a.createContext({context:{label:null,description:null,error:null,info:null,input:null},setContext:()=>{}}),kr={Root:xr,Label:vr,Input:yr,Description:Cr,Error:wr,InfoBox:Sr};function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)({}).hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},re.apply(null,arguments)}var tt=["shift","alt","meta","mod","ctrl"],Rr={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function N(e){return(e&&Rr[e]||e||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function Pr(e){return tt.includes(e)}function Z(e,t){return t===void 0&&(t=","),e.split(t)}function Q(e,t,o){t===void 0&&(t="+");var r=e.toLocaleLowerCase().split(t).map(function(u){return N(u)}),c={alt:r.includes("alt"),ctrl:r.includes("ctrl")||r.includes("control"),shift:r.includes("shift"),meta:r.includes("meta"),mod:r.includes("mod")},l=r.filter(function(u){return!tt.includes(u)});return re({},c,{keys:l,description:o,hotkey:e})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&ot([N(e.key),N(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&rt([N(e.key),N(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){L.clear()})})();var L=new Set;function Ce(e){return Array.isArray(e)}function Tr(e,t){t===void 0&&(t=",");var o=Ce(e)?e:e.split(t);return o.every(function(r){return L.has(r.trim().toLowerCase())})}function ot(e){var t=Array.isArray(e)?e:[e];L.has("meta")&&L.forEach(function(o){return!Pr(o)&&L.delete(o.toLowerCase())}),t.forEach(function(o){return L.add(o.toLowerCase())})}function rt(e){var t=Array.isArray(e)?e:[e];e==="meta"?L.clear():t.forEach(function(o){return L.delete(o.toLowerCase())})}function jr(e,t,o){(typeof o=="function"&&o(e,t)||o===!0)&&e.preventDefault()}function Ar(e,t,o){return typeof o=="function"?o(e,t):o===!0||o===void 0}function Er(e){return nt(e,["input","textarea","select"])}function nt(e,t){t===void 0&&(t=!1);var o=e.target,r=e.composed,c=null;return Dr(o)&&r?c=e.composedPath()[0]&&e.composedPath()[0].tagName:c=o&&o.tagName,Ce(t)?!!(c&&t&&t.some(function(l){var u;return l.toLowerCase()===((u=c)==null?void 0:u.toLowerCase())})):!!(c&&t&&t)}function Dr(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function zr(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 <HotkeysProvider>'),!0):t?e.some(function(o){return t.includes(o)})||e.includes("*"):!0}var Ir=function(t,o,r){r===void 0&&(r=!1);var c=o.alt,l=o.meta,u=o.mod,s=o.shift,p=o.ctrl,m=o.keys,g=t.key,y=t.code,f=t.ctrlKey,d=t.metaKey,x=t.shiftKey,w=t.altKey,P=N(y),S=g.toLowerCase();if(!(m!=null&&m.includes(P))&&!(m!=null&&m.includes(S))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(P))return!1;if(!r){if(c===!w&&S!=="alt"||s===!x&&S!=="shift")return!1;if(u){if(!d&&!f)return!1}else if(l===!d&&S!=="meta"&&S!=="os"||p===!f&&S!=="ctrl"&&S!=="control")return!1}return m&&m.length===1&&(m.includes(S)||m.includes(P))?!0:m?Tr(m):!m},Hr=a.createContext(void 0),Nr=function(){return a.useContext(Hr)};function it(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(o,r){return o&&it(e[r],t[r])},!0):e===t}var Lr=a.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),Fr=function(){return a.useContext(Lr)};function Br(e){var t=a.useRef(void 0);return it(t.current,e)||(t.current=e),t.current}var Se=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},Or=typeof window<"u"?a.useLayoutEffect:a.useEffect;function _r(e,t,o,r){var c=a.useState(null),l=c[0],u=c[1],s=a.useRef(!1),p=o instanceof Array?r instanceof Array?void 0:r:o,m=Ce(e)?e.join(p==null?void 0:p.splitKey):e,g=o instanceof Array?o:r instanceof Array?r:void 0,y=a.useCallback(t,g??[]),f=a.useRef(y);g?f.current=y:f.current=t;var d=Br(p),x=Fr(),w=x.enabledScopes,P=Nr();return Or(function(){if(!((d==null?void 0:d.enabled)===!1||!zr(w,d==null?void 0:d.scopes))){var S=function(h,j){var _;if(j===void 0&&(j=!1),!(Er(h)&&!nt(h,d==null?void 0:d.enableOnFormTags))){if(l!==null){var A=l.getRootNode();if((A instanceof Document||A instanceof ShadowRoot)&&A.activeElement!==l&&!l.contains(A.activeElement)){Se(h);return}}(_=h.target)!=null&&_.isContentEditable&&!(d!=null&&d.enableOnContentEditable)||Z(m,d==null?void 0:d.splitKey).forEach(function(U){var z,F=Q(U,d==null?void 0:d.combinationKey);if(Ir(h,F,d==null?void 0:d.ignoreModifiers)||(z=F.keys)!=null&&z.includes("*")){if(d!=null&&d.ignoreEventWhen!=null&&d.ignoreEventWhen(h)||j&&s.current)return;if(jr(h,F,d==null?void 0:d.preventDefault),!Ar(h,F,d==null?void 0:d.enabled)){Se(h);return}f.current(h,F),j||(s.current=!0)}})}},E=function(h){h.key!==void 0&&(ot(N(h.code)),((d==null?void 0:d.keydown)===void 0&&(d==null?void 0:d.keyup)!==!0||d!=null&&d.keydown)&&S(h))},D=function(h){h.key!==void 0&&(rt(N(h.code)),s.current=!1,d!=null&&d.keyup&&S(h,!0))},H=l||(p==null?void 0:p.document)||document;return H.addEventListener("keyup",D),H.addEventListener("keydown",E),P&&Z(m,d==null?void 0:d.splitKey).forEach(function(v){return P.addHotkey(Q(v,d==null?void 0:d.combinationKey,d==null?void 0:d.description))}),function(){H.removeEventListener("keyup",D),H.removeEventListener("keydown",E),P&&Z(m,d==null?void 0:d.splitKey).forEach(function(v){return P.removeHotkey(Q(v,d==null?void 0:d.combinationKey,d==null?void 0:d.description))})}}},[l,m,d,w]),u}function Wr(){var e=a.useRef(!1),t=a.useCallback(function(){return e.current},[]);return a.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}var Vr=function(e){e===void 0&&(e={});var t=a.useState(e),o=t[0],r=t[1],c=a.useCallback(function(l){r(function(u){return Object.assign({},u,l instanceof Function?l(u):l)})},[]);return[o,c]};function Mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ee,ke;function Gr(){return ke||(ke=1,ee=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,o=[],r=0;r<e.rangeCount;r++)o.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||o.forEach(function(c){e.addRange(c)}),t&&t.focus()}}),ee}var te,Re;function $r(){if(Re)return te;Re=1;var e=Gr(),t={"text/plain":"Text","text/html":"Url",default:"Text"},o="Copy to clipboard: #{key}, Enter";function r(l){var u=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return l.replace(/#{\s*key\s*}/g,u)}function c(l,u){var s,p,m,g,y,f,d=!1;u||(u={}),s=u.debug||!1;try{m=e(),g=document.createRange(),y=document.getSelection(),f=document.createElement("span"),f.textContent=l,f.ariaHidden="true",f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",function(w){if(w.stopPropagation(),u.format)if(w.preventDefault(),typeof w.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var P=t[u.format]||t.default;window.clipboardData.setData(P,l)}else w.clipboardData.clearData(),w.clipboardData.setData(u.format,l);u.onCopy&&(w.preventDefault(),u.onCopy(w.clipboardData))}),document.body.appendChild(f),g.selectNodeContents(f),y.addRange(g);var x=document.execCommand("copy");if(!x)throw new Error("copy command was unsuccessful");d=!0}catch(w){s&&console.error("unable to copy using execCommand: ",w),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(u.format||"text",l),u.onCopy&&u.onCopy(window.clipboardData),d=!0}catch(P){s&&console.error("unable to copy using clipboardData: ",P),s&&console.error("falling back to prompt"),p=r("message"in u?u.message:o),window.prompt(p,l)}}finally{y&&(typeof y.removeRange=="function"?y.removeRange(g):y.removeAllRanges()),f&&document.body.removeChild(f),m()}return d}return te=c,te}var Kr=$r();const Ur=Mr(Kr);var qr=function(){var e=Wr(),t=Vr({value:void 0,error:void 0,noUserInteraction:!0}),o=t[0],r=t[1],c=a.useCallback(function(l){if(e()){var u,s;try{if(typeof l!="string"&&typeof l!="number"){var p=new Error("Cannot copy typeof "+typeof l+" to clipboard, must be a string");process.env.NODE_ENV==="development"&&console.error(p),r({value:l,error:p,noUserInteraction:!0});return}else if(l===""){var p=new Error("Cannot copy empty string to clipboard.");process.env.NODE_ENV==="development"&&console.error(p),r({value:l,error:p,noUserInteraction:!0});return}s=l.toString(),u=Ur(s),r({value:s,error:void 0,noUserInteraction:u})}catch(m){r({value:s,error:m,noUserInteraction:u})}}},[]);return[o,c]};const Xr=i.defineAnimationStyles({"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"}}});function Yr(e){var o;const t={};for(const r in e)(o=e[r])!=null&&o.value?t[r]=e[r].value:t[r]=e[r];return t}const Jr=Yr(C.themeTokens.breakpoints),Zr=i.defineGlobalStyles({"*":{fontFeatureSettings:'"liga", "calt", "case", "ss01", "ss07", "ss08", "tnum"',"--ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--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","--focus-ring-color":"colors.primary.7","--brightness":"var(--chakra-empty,/*!*/ /*!*/)","--contrast":"var(--chakra-empty,/*!*/ /*!*/)","--grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--invert":"var(--chakra-empty,/*!*/ /*!*/)","--saturate":"var(--chakra-empty,/*!*/ /*!*/)","--sepia":"var(--chakra-empty,/*!*/ /*!*/)","--drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--global-font-mono":"fonts.mono","--global-font-body":"fonts.body","--global-color-border":"colors.border"},"code *":{fontFeatureSettings:'"calt", "case", "ss01", "ss07", "ss08", "tnum"'},html:{color:"fg",bg:"bg",lineHeight:"1.5",colorPalette:"neutral"},"*::placeholder":{color:"fg.muted/80"},"*::selection":{bg:"colorPalette.9",color:"colorPalette.contrast"}}),Qr={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)"}},"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"}}},en=i.defineLayerStyles({disabled:{value:{opacity:"0.5",cursor:"not-allowed"}}}),tn=i.defineRecipe({className:"nimbus-code",base:{fontFamily:"mono",alignItems:"center",display:"inline-flex",borderRadius:"100"},variants:{variant:{solid:{bg:"colorPalette.4",color:"colorPalette.11"},subtle:{bg:"colorPalette.3",color:"colorPalette.11"},outline:{color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},surface:{bg:"colorPalette.subtle",color:"colorPalette.fg",shadow:"inset 0 0 0px 1px var(--shadow-color)",shadowColor:"colorPalette.muted"},plain:{color:"colorPalette.fg"}},size:{xs:{textStyle:"2xs",px:"100",minH:"400"},sm:{textStyle:"xs",px:"150",minH:"500"},md:{textStyle:"sm",px:"200",minH:"600"},lg:{textStyle:"sm",px:"250",minH:"700"}}},defaultVariants:{variant:"solid",size:"md"}}),on=i.defineRecipe({className:"nimbus-heading",base:{fontFamily:"heading",fontWeight:"600"},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"}}),rn=i.defineRecipe({className:"nimbus-kbd",base:{display:"inline-flex",alignItems:"center",fontWeight:"medium",fontFamily:"mono",flexShrink:"0",whiteSpace:"nowrap",wordSpacing:"-0.5em",userSelect:"none",px:"100",borderRadius:"100"},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:"450"},md:{textStyle:"sm",height:"500"},lg:{textStyle:"md",height:"600"}}},defaultVariants:{size:"md",variant:"raised"}}),nn={avatar:Ee,button:B,code:tn,heading:on,kbd:rn,link:ze,tooltip:Le,textInput:se},an=i.defineSemanticTokens.colors({bg:{DEFAULT:{value:{_light:"{colors.neutral.1}",_dark:"{colors.neutral.1}"}}},fg:{DEFAULT:{value:{_light:"{colors.neutral.12}",_dark:"{colors.neutral.12}"}}},border:{DEFAULT:{value:"{colors.neutral.6}"},muted:{value:"{colors.neutral.7}"},subtle:{value:"{colors.neutral.6}"},emphasized:{value:"{colors.neutral.8}"},inverted:{value:"{colors.neutral.9}"},critical:{value:"{colors.critical.8}"},warning:{value:"{colors.warning.8}"},positive:{value:"{colors.positive.8}"},info:{value:"{colors.ingo.8}"}},...C.themeTokens.color["system-palettes"],...C.themeTokens.color["brand-palettes"],...C.themeTokens.color["semantic-palettes"]}),ln=i.defineSemanticTokens.shadows(C.themeTokens.shadow),sn=i.defineSemanticTokens.radii({}),cn={colors:an,shadows:ln,radii:sn},dn=i.defineSlotRecipe({slots:["trigger","backdrop","positioner","content","title","description","closeTrigger","header","body","footer","backdrop"],className:"nimbus-dialog",base:{backdrop:{bg:{_dark:"bg/50",_light:"fg/50"},pos:"fixed",left:0,top:0,w:"100vw",h:"100dvh",zIndex:"modal",_open:{animationName:"fade-in",animationDuration:"slow"},_closed:{animationName:"fade-out",animationDuration:"moderate"}},positioner:{display:"flex",width:"100vw",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:"200",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",boxShadow:"lg",_open:{animationDuration:"moderate"},_closed:{animationDuration:"faster"}},header:{flex:0,px:"600",pt:"600",pb:"400"},body:{flex:"1",px:"600",pt:"200",pb:"600"},footer:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"300",px:"600",pt:"200",pb:"400"},title:{textStyle:"lg",fontWeight:"semibold"},description:{color:"fg.muted"}},variants:{placement:{center:{positioner:{alignItems:"center"},content:{"--dialog-base-margin":"auto",mx:"auto"}},top:{positioner:{alignItems:"flex-start"},content:{"--dialog-base-margin":"spacing.1600",mx:"auto"}},bottom:{positioner:{alignItems:"flex-end"},content:{"--dialog-base-margin":"spacing.1600",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:"1000"},content:{width:"100%",height:"100%","--dialog-margin":"0"}},full:{content:{maxW:"100vw",minH:"100vh","--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"}}),un=i.defineSlotRecipe({className:"chakra-list",slots:["root","item","indicator"],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:"200",minHeight:"1lh",flexShrink:0,display:"inline-block",verticalAlign:"middle"}},variants:{variant:{marker:{root:{listStyle:"revert",listStylePosition:"inside"},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"}}),pn=i.defineSlotRecipe({className:"chakra-table",slots:["root","header","body","row","columnHeader","cell","footer","caption"],base:{root:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full",textAlign:"start",verticalAlign:"top"},row:{_selected:{bg:"colorPalette.subtle"}},cell:{textAlign:"start",alignItems:"center"},columnHeader:{fontWeight:"medium",textAlign:"start",color:"fg"},caption:{fontWeight:"medium",textStyle:"xs"},footer:{fontWeight:"medium"}},variants:{interactive:{true:{body:{"& tr":{_hover:{bg:"colorPalette.subtle"}}}}},stickyHeader:{true:{header:{"& :where(tr)":{top:"var(--table-sticky-offset, 0)",position:"sticky",zIndex:1}}}},striped:{true:{row:{"&:nth-of-type(odd) td":{bg:"bg.muted"}}}},showColumnBorder:{true:{columnHeader:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}},cell:{"&:not(:last-of-type)":{borderInlineEndWidth:"1px"}}}},variant:{line:{columnHeader:{borderBottomWidth:"1px"},cell:{borderBottomWidth:"1px"},row:{bg:"bg"}},outline:{root:{boxShadow:"0 0 0 1px {colors.border}",overflow:"hidden"},columnHeader:{borderBottomWidth:"1px"},header:{bg:"bg.muted"},row:{"&:not(:last-of-type)":{borderBottomWidth:"1px"}},footer:{borderTopWidth:"1px"}}},size:{sm:{root:{textStyle:"sm"},columnHeader:{px:"200",py:"200"},cell:{px:"200",py:"200"}},md:{root:{textStyle:"sm"},columnHeader:{px:"300",py:"300"},cell:{px:"300",py:"300"}},lg:{root:{textStyle:"md"},columnHeader:{px:"400",py:"300"},cell:{px:"400",py:"300"}}}},defaultVariants:{variant:"line",size:"md"}}),fn={dialog:dn,list:un,table:pn,checkbox:oo,select:$e,accordion:Eo},mn=i.defineTextStyles(C.themeTokens.textStyle),gn=i.defineTokens.durations(C.themeTokens.aspectRatio),hn=i.defineTokens.animations(C.themeTokens.animation),bn=i.defineTokens.blurs(C.themeTokens.blur),xn=i.defineTokens.borders(C.themeTokens.border),vn=i.defineTokens.colors({...C.themeTokens.color["blacks-and-whites"]}),yn=i.defineTokens.durations(C.themeTokens.duration),Cn=i.defineTokens.easings(C.themeTokens.easing),wn=i.defineTokens.fonts(C.themeTokens.fontFamily),Sn=i.defineTokens.fontSizes(C.themeTokens.fontSize),kn=i.defineTokens.fontWeights(C.themeTokens.fontWeight),Rn=e=>Object.keys(e).reduce((t,o)=>{const c=parseFloat(e[o].value)/100;return t[o]={value:`${c}em`},t},{}),Pn=i.defineTokens.letterSpacings(Rn(C.themeTokens.letterSpacing)),Tn=i.defineTokens.lineHeights(C.themeTokens.lineHeight),jn=i.defineTokens.radii(C.themeTokens.borderRadius),An=i.defineTokens.spacing(C.themeTokens.spacing),En=i.defineTokens.sizes({...C.themeTokens.size,"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%"},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"}}),Dn=i.defineTokens.zIndex(C.themeTokens.zIndex),zn=i.defineTokens.cursor(C.themeTokens.cursor),In={aspectRatios:gn,animations:hn,blurs:bn,borders:xn,colors:vn,durations:yn,easings:Cn,fonts:wn,fontSizes:Sn,fontWeights:kn,letterSpacings:Pn,lineHeights:Tn,radii:jn,spacing:An,sizes:En,zIndex:Dn,cursor:zn},Hn=i.defineConfig({preflight:!0,cssVarsPrefix:"nimbus",cssVarsRoot:":where(:root, :host)",globalCss:Zr,theme:{breakpoints:Jr,keyframes:Qr,tokens:In,semanticTokens:cn,recipes:nn,slotRecipes:fn,textStyles:mn,layerStyles:en,animationStyles:Xr}}),Nn=i.createSystem(i.defaultBaseConfig,Hn);Object.defineProperty(exports,"Bleed",{enumerable:!0,get:()=>i.Bleed});Object.defineProperty(exports,"Code",{enumerable:!0,get:()=>i.Code});Object.defineProperty(exports,"Em",{enumerable:!0,get:()=>i.Em});Object.defineProperty(exports,"Flex",{enumerable:!0,get:()=>i.Flex});Object.defineProperty(exports,"Heading",{enumerable:!0,get:()=>i.Heading});Object.defineProperty(exports,"Highlight",{enumerable:!0,get:()=>i.Highlight});Object.defineProperty(exports,"Kbd",{enumerable:!0,get:()=>i.Kbd});Object.defineProperty(exports,"List",{enumerable:!0,get:()=>i.List});Object.defineProperty(exports,"Table",{enumerable:!0,get:()=>i.Table});exports.Accordion=Ao;exports.Alert=tr;exports.Avatar=De;exports.Badge=$o;exports.Box=I;exports.Button=q;exports.Card=Wo;exports.CardContent=xe;exports.CardHeader=be;exports.CardRoot=he;exports.Checkbox=Ve;exports.ColorModeLabel=eo;exports.DialogActionTrigger=Rt;exports.DialogBackdrop=Ct;exports.DialogBody=yt;exports.DialogCloseTrigger=ht;exports.DialogContent=gt;exports.DialogDescription=St;exports.DialogFooter=xt;exports.DialogHeader=vt;exports.DialogRoot=bt;exports.DialogTitle=wt;exports.DialogTrigger=kt;exports.FormField=kr;exports.FormFieldContext=O;exports.Grid=co;exports.IconButton=W;exports.Link=Ie;exports.ListItem=At;exports.ListRoot=jt;exports.LoadingSpinner=qe;exports.MakeElementFocusable=Oe;exports.NimbusProvider=to;exports.Select=xo;exports.SimpleGrid=Et;exports.Stack=Y;exports.TableBody=Bt;exports.TableCell=Ft;exports.TableColumn=It;exports.TableColumnGroup=zt;exports.TableColumnHeader=Ot;exports.TableFooter=Nt;exports.TableHeader=Ht;exports.TableRoot=Dt;exports.TableRow=Lt;exports.Text=Ne;exports.TextInput=Me;exports.ToggleButtonGroup=lr;exports.ToggleButtonGroupButton=ye;exports.ToggleButtonGroupRoot=ve;exports.Tooltip=Fe;exports.TooltipTrigger=Be;exports.VisuallyHidden=le;exports._SelectOption=pe;exports._SelectOptionGroup=fe;exports._SelectOptions=ue;exports._SelectRoot=ce;exports.system=Nn;exports.useColorMode=ae;exports.useColorModeValue=Qt;exports.useCopyToClipboard=qr;exports.useHotkeys=_r;
118
+ `,cD=J({slots:["root","label","input","description","error","popover"],className:"nimbus-ui-form-field",base:{root:{"--grid-gap":"spacing.100",display:"grid",width:"auto"},label:{gridArea:"label",fontWeight:"500",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},input:{gridArea:"input"},description:{gridArea:"description",color:"neutral.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},error:{gridArea:"error",color:"critical.11",fontSize:"var(--form-field-font-size)",lineHeight:"var(--form-field-line-height)"},popover:{"--scrollbar-color":"colors.neutral.8","--scrollbar-bg":"colors.neutral.3",bg:"neutral.1",maxWidth:"xl",borderRadius:"200",boxShadow:"6",border:"solid-25",borderColor:"neutral.8",maxHeight:"40svh",overflow:"auto",scrollbarWidth:"thin",scrollbarColor:"var(--scrollbar-color) var(--scrollbar-bg)",focusRing:"outside"}},variants:{size:{md:{root:{"--form-field-font-size":"fontSizes.350","--form-field-line-height":"lineHeights.500"}},sm:{root:{"--form-field-font-size":"fontSizes.300","--form-field-line-height":"lineHeights.450"}}},direction:{column:{root:{gridTemplateAreas:sD},input:{mt:"var(--grid-gap)"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}},row:{root:{gridTemplateAreas:lD,gridTemplateColumns:"auto 1fr",gridColumnGap:"200"},description:{mt:"var(--grid-gap)"},error:{mt:"var(--grid-gap)"}}}},defaultVariants:{direction:"column",size:"md"}}),{withProvider:uD,withContext:Oo}=Wt({recipe:cD}),dD=uD("div","root"),fD=Oo("div","label"),pD=Oo("div","input"),gD=Oo("div","description"),hD=Oo("div","error"),mD=Oo("div","popover"),vD=g.forwardRef(({isInvalid:e,isRequired:t,isDisabled:r,isReadOnly:n,children:o,...i},a)=>{const[s,l]=g.useState({label:null,description:null,error:null,info:null,input:null,isInvalid:e,isRequired:t,isDisabled:r,isReadOnly:n}),{labelProps:c,fieldProps:d,descriptionProps:f,errorMessageProps:u}=lc({label:s.label,description:s.description,errorMessage:s.error});g.useEffect(()=>{l(h=>({...h,isInvalid:e,isRequired:t,isDisabled:r,isReadOnly:n}))},[e,t,r,n]);const p={...d,isInvalid:e,isRequired:t,isDisabled:r,isReadOnly:n};return O.jsx(Hr.Provider,{value:{context:s,setContext:l},children:O.jsxs(dD,{ref:a,...i,children:[s.label&&O.jsxs(fD,{...s.labelSlotProps,children:[O.jsxs("label",{...c,children:[s.label,t&&O.jsx("sup",{"aria-hidden":"true",children:"*"})]}),s.info&&O.jsxs(BI,{children:[O.jsx(Gt,{as:"span",display:"inline-block",position:"relative",width:"1ch",height:"1ch",ml:"200",children:O.jsx(Gt,{as:"span",display:"inline-flex",position:"absolute",top:"50%",right:"50%",transform:"translate(50%, -50%)",children:O.jsx(Co,{"aria-label":"__MORE INFO",size:"2xs",tone:"info",variant:"link",children:O.jsx(lt.HelpOutline,{})})})}),O.jsx(f0,{children:O.jsx(mD,{asChild:!0,children:O.jsx(WI,{children:O.jsx(Gt,{p:"300",children:s.info})})})})]})]}),s.input&&O.jsx(pD,{...s.inputSlotProps,children:g.Children.map(s.input,h=>g.isValidElement(h)?g.cloneElement(h,p):h)}),s.description&&O.jsx(gD,{...f,...s.descriptionSlotProps,children:s.description}),e&&s.error&&O.jsxs(hD,{...u,...s.errorSlotProps,children:[O.jsx(Gt,{as:lt.ErrorOutline,display:"inline-flex",boxSize:"400",verticalAlign:"text-bottom",mr:"100"}),s.error]}),o]})})}),bD=({children:e,...t})=>{const{setContext:r}=g.useContext(Hr);return g.useEffect(()=>{r(n=>({...n,label:e,labelSlotProps:t}))},[e,r]),null},yD=({children:e,...t})=>{const{setContext:r}=g.useContext(Hr);return g.useEffect(()=>{r(n=>({...n,input:e,inputSlotProps:t}))},[e,r]),null},xD=({children:e,...t})=>{const{setContext:r}=g.useContext(Hr);return g.useEffect(()=>{r(n=>({...n,description:e,descriptionSlotProps:t}))},[e,r]),null},SD=({children:e,...t})=>{const{setContext:r}=g.useContext(Hr);return g.useEffect(()=>{r(n=>({...n,error:e,errorSlotProps:t}))},[e,r]),null},wD=({children:e})=>{const{setContext:t}=g.useContext(Hr);return g.useEffect(()=>{t(r=>({...r,info:e}))},[e,t]),null},Hr=g.createContext({context:{label:null,description:null,error:null,info:null,input:null},setContext:()=>{}}),ED={Root:vD,Label:bD,Input:yD,Description:xD,Error:SD,InfoBox:wD};function rl(){return rl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rl.apply(null,arguments)}var M0=["shift","alt","meta","mod","ctrl"],CD={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function ar(e){return(e&&CD[e]||e||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function PD(e){return M0.includes(e)}function cs(e,t){return t===void 0&&(t=","),e.split(t)}function us(e,t,r){t===void 0&&(t="+");var n=e.toLocaleLowerCase().split(t).map(function(a){return ar(a)}),o={alt:n.includes("alt"),ctrl:n.includes("ctrl")||n.includes("control"),shift:n.includes("shift"),meta:n.includes("meta"),mod:n.includes("mod")},i=n.filter(function(a){return!M0.includes(a)});return rl({},o,{keys:i,description:r,hotkey:e})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&F0([ar(e.key),ar(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&z0([ar(e.key),ar(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){sr.clear()})})();var sr=new Set;function zc(e){return Array.isArray(e)}function kD(e,t){t===void 0&&(t=",");var r=zc(e)?e:e.split(t);return r.every(function(n){return sr.has(n.trim().toLowerCase())})}function F0(e){var t=Array.isArray(e)?e:[e];sr.has("meta")&&sr.forEach(function(r){return!PD(r)&&sr.delete(r.toLowerCase())}),t.forEach(function(r){return sr.add(r.toLowerCase())})}function z0(e){var t=Array.isArray(e)?e:[e];e==="meta"?sr.clear():t.forEach(function(r){return sr.delete(r.toLowerCase())})}function $D(e,t,r){(typeof r=="function"&&r(e,t)||r===!0)&&e.preventDefault()}function TD(e,t,r){return typeof r=="function"?r(e,t):r===!0||r===void 0}function RD(e){return V0(e,["input","textarea","select"])}function V0(e,t){t===void 0&&(t=!1);var r=e.target,n=e.composed,o=null;return OD(r)&&n?o=e.composedPath()[0]&&e.composedPath()[0].tagName:o=r&&r.tagName,zc(t)?!!(o&&t&&t.some(function(i){var a;return i.toLowerCase()===((a=o)==null?void 0:a.toLowerCase())})):!!(o&&t&&t)}function OD(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function ID(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 <HotkeysProvider>'),!0):t?e.some(function(r){return t.includes(r)})||e.includes("*"):!0}var ND=function(t,r,n){n===void 0&&(n=!1);var o=r.alt,i=r.meta,a=r.mod,s=r.shift,l=r.ctrl,c=r.keys,d=t.key,f=t.code,u=t.ctrlKey,p=t.metaKey,h=t.shiftKey,m=t.altKey,v=ar(f),x=d.toLowerCase();if(!(c!=null&&c.includes(v))&&!(c!=null&&c.includes(x))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(v))return!1;if(!n){if(o===!m&&x!=="alt"||s===!h&&x!=="shift")return!1;if(a){if(!p&&!u)return!1}else if(i===!p&&x!=="meta"&&x!=="os"||l===!u&&x!=="ctrl"&&x!=="control")return!1}return c&&c.length===1&&(c.includes(x)||c.includes(v))?!0:c?kD(c):!c},DD=g.createContext(void 0),_D=function(){return g.useContext(DD)};function B0(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(r,n){return r&&B0(e[n],t[n])},!0):e===t}var AD=g.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),LD=function(){return g.useContext(AD)};function MD(e){var t=g.useRef(void 0);return B0(t.current,e)||(t.current=e),t.current}var If=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},FD=typeof window<"u"?g.useLayoutEffect:g.useEffect;function zD(e,t,r,n){var o=g.useState(null),i=o[0],a=o[1],s=g.useRef(!1),l=r instanceof Array?n instanceof Array?void 0:n:r,c=zc(e)?e.join(l==null?void 0:l.splitKey):e,d=r instanceof Array?r:n instanceof Array?n:void 0,f=g.useCallback(t,d??[]),u=g.useRef(f);d?u.current=f:u.current=t;var p=MD(l),h=LD(),m=h.enabledScopes,v=_D();return FD(function(){if(!((p==null?void 0:p.enabled)===!1||!ID(m,p==null?void 0:p.scopes))){var x=function(k,D){var R;if(D===void 0&&(D=!1),!(RD(k)&&!V0(k,p==null?void 0:p.enableOnFormTags))){if(i!==null){var _=i.getRootNode();if((_ instanceof Document||_ instanceof ShadowRoot)&&_.activeElement!==i&&!i.contains(_.activeElement)){If(k);return}}(R=k.target)!=null&&R.isContentEditable&&!(p!=null&&p.enableOnContentEditable)||cs(c,p==null?void 0:p.splitKey).forEach(function(N){var S,M=us(N,p==null?void 0:p.combinationKey);if(ND(k,M,p==null?void 0:p.ignoreModifiers)||(S=M.keys)!=null&&S.includes("*")){if(p!=null&&p.ignoreEventWhen!=null&&p.ignoreEventWhen(k)||D&&s.current)return;if($D(k,M,p==null?void 0:p.preventDefault),!TD(k,M,p==null?void 0:p.enabled)){If(k);return}u.current(k,M),D||(s.current=!0)}})}},E=function(k){k.key!==void 0&&(F0(ar(k.code)),((p==null?void 0:p.keydown)===void 0&&(p==null?void 0:p.keyup)!==!0||p!=null&&p.keydown)&&x(k))},P=function(k){k.key!==void 0&&(z0(ar(k.code)),s.current=!1,p!=null&&p.keyup&&x(k,!0))},T=i||(l==null?void 0:l.document)||document;return T.addEventListener("keyup",P,l==null?void 0:l.eventListenerOptions),T.addEventListener("keydown",E,l==null?void 0:l.eventListenerOptions),v&&cs(c,p==null?void 0:p.splitKey).forEach(function(C){return v.addHotkey(us(C,p==null?void 0:p.combinationKey,p==null?void 0:p.description))}),function(){T.removeEventListener("keyup",P,l==null?void 0:l.eventListenerOptions),T.removeEventListener("keydown",E,l==null?void 0:l.eventListenerOptions),v&&cs(c,p==null?void 0:p.splitKey).forEach(function(C){return v.removeHotkey(us(C,p==null?void 0:p.combinationKey,p==null?void 0:p.description))})}}},[i,c,p,m]),a}function VD(){var e=g.useRef(!1),t=g.useCallback(function(){return e.current},[]);return g.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}var BD=function(e){e===void 0&&(e={});var t=g.useState(e),r=t[0],n=t[1],o=g.useCallback(function(i){n(function(a){return Object.assign({},a,i instanceof Function?i(a):i)})},[]);return[r,o]},ds,Nf;function WD(){return Nf||(Nf=1,ds=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(o){e.addRange(o)}),t&&t.focus()}}),ds}var fs,Df;function HD(){if(Df)return fs;Df=1;var e=WD(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(i){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return i.replace(/#{\s*key\s*}/g,a)}function o(i,a){var s,l,c,d,f,u,p=!1;a||(a={}),s=a.debug||!1;try{c=e(),d=document.createRange(),f=document.getSelection(),u=document.createElement("span"),u.textContent=i,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",function(m){if(m.stopPropagation(),a.format)if(m.preventDefault(),typeof m.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var v=t[a.format]||t.default;window.clipboardData.setData(v,i)}else m.clipboardData.clearData(),m.clipboardData.setData(a.format,i);a.onCopy&&(m.preventDefault(),a.onCopy(m.clipboardData))}),document.body.appendChild(u),d.selectNodeContents(u),f.addRange(d);var h=document.execCommand("copy");if(!h)throw new Error("copy command was unsuccessful");p=!0}catch(m){s&&console.error("unable to copy using execCommand: ",m),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",i),a.onCopy&&a.onCopy(window.clipboardData),p=!0}catch(v){s&&console.error("unable to copy using clipboardData: ",v),s&&console.error("falling back to prompt"),l=n("message"in a?a.message:r),window.prompt(l,i)}}finally{f&&(typeof f.removeRange=="function"?f.removeRange(d):f.removeAllRanges()),u&&document.body.removeChild(u),c()}return p}return fs=o,fs}var KD=HD();const jD=Hi(KD);var UD=function(){var e=VD(),t=BD({value:void 0,error:void 0,noUserInteraction:!0}),r=t[0],n=t[1],o=g.useCallback(function(i){if(e()){var a,s;try{if(typeof i!="string"&&typeof i!="number"){var l=new Error("Cannot copy typeof "+typeof i+" to clipboard, must be a string");process.env.NODE_ENV==="development"&&console.error(l),n({value:i,error:l,noUserInteraction:!0});return}else if(i===""){var l=new Error("Cannot copy empty string to clipboard.");process.env.NODE_ENV==="development"&&console.error(l),n({value:i,error:l,noUserInteraction:!0});return}s=i.toString(),a=jD(s),n({value:s,error:void 0,noUserInteraction:a})}catch(c){n({value:s,error:c,noUserInteraction:a})}}},[]);return[r,o]};exports.Accordion=RN;exports.Alert=eD;exports.Avatar=qm;exports.Badge=KN;exports.Bleed=P4;exports.Box=Gt;exports.Button=ha;exports.Card=VN;exports.CardContent=Lc;exports.CardHeader=Ac;exports.CardRoot=_c;exports.Checkbox=P0;exports.Code=$4;exports.ColorModeLabel=g6;exports.DialogActionTrigger=A3;exports.DialogBackdrop=I3;exports.DialogBody=O3;exports.DialogCloseTrigger=k3;exports.DialogContent=P3;exports.DialogDescription=D3;exports.DialogFooter=T3;exports.DialogHeader=R3;exports.DialogRoot=$3;exports.DialogTitle=N3;exports.DialogTrigger=_3;exports.Em=m2;exports.Flex=ro;exports.FormField=ED;exports.FormFieldContext=Hr;exports.Grid=uN;exports.Heading=p2;exports.Highlight=q4;exports.IconButton=Co;exports.Kbd=J4;exports.Link=sy;exports.List=n2;exports.ListItem=z3;exports.ListRoot=F3;exports.LoadingSpinner=O0;exports.MakeElementFocusable=x0;exports.NimbusProvider=nN;exports.Select=bN;exports.SimpleGrid=V3;exports.Stack=wa;exports.Table=d2;exports.TableBody=Y3;exports.TableCell=G3;exports.TableColumn=H3;exports.TableColumnGroup=W3;exports.TableColumnHeader=q3;exports.TableFooter=j3;exports.TableHeader=K3;exports.TableRoot=B3;exports.TableRow=U3;exports.Text=cy;exports.TextInput=k0;exports.ToggleButtonGroup=aD;exports.ToggleButtonGroupButton=Fc;exports.ToggleButtonGroupRoot=Mc;exports.Tooltip=b0;exports.TooltipTrigger=y0;exports.VisuallyHidden=kc;exports._SelectOption=Oc;exports._SelectOptionGroup=Ic;exports._SelectOptions=Rc;exports._SelectRoot=$c;exports.system=E0;exports.useColorMode=Cc;exports.useColorModeValue=p6;exports.useColorScheme=rN;exports.useCopyToClipboard=UD;exports.useHotkeys=zD;
11
119
  //# sourceMappingURL=index.cjs.map