@nextui-org/react 1.0.2-beta.5 → 1.0.3-beta.5
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/cjs/theme/stitches.config.js +1 -1
- package/esm/theme/stitches.config.js +1 -1
- package/package.json +1 -1
- package/types/backdrop/backdrop.d.ts +1 -1
- package/types/button/button.styles.d.ts +0 -1
- package/types/checkbox/checkbox.styles.d.ts +0 -1
- package/types/collapse/collapse.styles.d.ts +0 -1
- package/types/input/input-password.d.ts +1 -1
- package/types/progress/progress.d.ts +1 -1
- package/types/switch/switch.d.ts +1 -1
- package/types/table/table-column-header.d.ts +0 -1
- package/types/table/table.styles.d.ts +0 -5
- package/types/theme/stitches.config.d.ts +0 -1
- package/types/tooltip/tooltip.d.ts +1 -1
- package/umd/nextui.js +0 -9
- package/umd/nextui.min.js +1 -1
package/umd/nextui.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see nextui.min.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.NextUI=t(require("react"),require("react-dom")):e.NextUI=t(e.React,e.ReactDOM)}(self,(function(e,t){return(()=>{"use strict";var n={753:e=>{var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,l=o(e),c=1;c<arguments.length;c++){for(var u in a=Object(arguments[c]))n.call(a,u)&&(l[u]=a[u]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(l[s[d]]=a[s[d]])}}return l}},460:(e,t,n)=>{n(753);var r=n(787),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},570:(e,t,n)=>{e.exports=n(460)},787:t=>{t.exports=e},156:e=>{e.exports=t}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{o.r(i),o.d(i,{Avatar:()=>la,Backdrop:()=>yh,Button:()=>gc,Card:()=>Mc,Checkbox:()=>Uc,Code:()=>Jc,Col:()=>eu,Collapse:()=>Sd,Container:()=>Td,CssBaseline:()=>dt,Divider:()=>Rd,Grid:()=>Wd,Image:()=>Sc,Input:()=>am,KeyCode:()=>Qe,KeyMod:()=>et,Link:()=>Tp,Loading:()=>Fp,Modal:()=>af,NextUIProvider:()=>qi,Pagination:()=>Cf,Progress:()=>Lh,Radio:()=>th,Row:()=>mp,Snippet:()=>pp,Spacer:()=>Hd,Spinner:()=>jp,StyledAvatar:()=>Zi,StyledAvatarGroup:()=>oa,StyledAvatarGroupCount:()=>ra,StyledBackdrop:()=>mh,StyledBackdropContent:()=>fh,StyledBackdropLayer:()=>gh,StyledButton:()=>sc,StyledButtonGroup:()=>dc,StyledButtonIcon:()=>rc,StyledCard:()=>kc,StyledCardBody:()=>Cc,StyledCardFooter:()=>Tc,StyledCardHeader:()=>Ec,StyledCheckboxContainer:()=>Dc,StyledCheckboxGroup:()=>Fc,StyledCheckboxInput:()=>_c,StyledCheckboxLabel:()=>Lc,StyledCheckboxMask:()=>Oc,StyledCheckboxText:()=>jc,StyledCode:()=>Gc,StyledCol:()=>qc,StyledCollapse:()=>tu,StyledCollapseContent:()=>ru,StyledCollapseGroup:()=>iu,StyledCollapseIcon:()=>ou,StyledCollapseView:()=>nu,StyledContainer:()=>Cd,StyledDivider:()=>Id,StyledDividerText:()=>Md,StyledGridContainer:()=>Ld,StyledGridItem:()=>Dd,StyledHelperText:()=>_g,StyledHelperTextContainer:()=>jg,StyledIconCheck:()=>Kc,StyledIconCheckFirstLine:()=>zc,StyledIconCheckSecondLine:()=>Ac,StyledImage:()=>yc,StyledImageContainer:()=>bc,StyledImageSkeleton:()=>$c,StyledInput:()=>Kg,StyledInputBlockLabel:()=>Wg,StyledInputClearButton:()=>Hg,StyledInputContainer:()=>Ag,StyledInputContent:()=>Vg,StyledInputLabel:()=>Bg,StyledInputMainContainer:()=>zg,StyledInputPlaceholder:()=>Fg,StyledInputWrapper:()=>Og,StyledLink:()=>wp,StyledLinkIcon:()=>xp,StyledLoading:()=>Ap,StyledLoadingContainer:()=>Rp,StyledLoadingLabel:()=>Kp,StyledModal:()=>Vh,StyledModalBody:()=>Wh,StyledModalCloseButton:()=>_h,StyledModalFooter:()=>Bh,StyledModalHeader:()=>Fh,StyledModalHideTab:()=>jh,StyledPagination:()=>ff,StyledPaginationEllipsis:()=>cf,StyledPaginationHighlight:()=>hf,StyledPaginationIcon:()=>uf,StyledPaginationItem:()=>pf,StyledPaginationItemContent:()=>df,StyledPre:()=>Yc,StyledProgress:()=>Mh,StyledProgressBar:()=>Nh,StyledRadio:()=>Gp,StyledRadioDescription:()=>Xp,StyledRadioGroup:()=>Yp,StyledRadioInput:()=>Vp,StyledRadioLabel:()=>Hp,StyledRadioPoint:()=>Up,StyledRow:()=>hp,StyledSnippetCopyButton:()=>lp,StyledSnippetCopyButtonIcon:()=>sp,StyledSnippetPre:()=>ap,StyledSpacer:()=>Bd,StyledSpinner:()=>Dp,StyledSpinnerContainer:()=>Lp,StyledSpinnerSpan:()=>zp,StyledSwitch:()=>dh,StyledSwitchCircle:()=>uh,StyledSwitchContainer:()=>lh,StyledSwitchInput:()=>ch,StyledTable:()=>kx,StyledTableCell:()=>xx,StyledTableHeaderCell:()=>yx,StyledTableRow:()=>wx,StyledText:()=>nh,StyledTooltip:()=>Qd,StyledTooltipArrow:()=>Zd,StyledTooltipContent:()=>ep,StyledTooltipTrigger:()=>qd,StyledUser:()=>$h,StyledUserDesc:()=>wh,StyledUserInfo:()=>vh,StyledUserLink:()=>Sh,StyledUserName:()=>xh,Switch:()=>hh,Table:()=>ww,Text:()=>sh,Textarea:()=>em,Tooltip:()=>op,User:()=>Ph,changeTheme:()=>Ji,config:()=>Ie,createTheme:()=>Le,css:()=>Ce,defaultTheme:()=>Pe,excludedInputPropsForTextarea:()=>p,excludedTableProps:()=>h,extendedColors:()=>r,extendedColorsNoGradient:()=>a,extraColors:()=>s,getCssText:()=>Te,getDocumentTheme:()=>Yi,getTokenValue:()=>Gi,globalCss:()=>ke,keyframes:()=>Ee,normalColors:()=>t,normalLoaders:()=>l,normalWeights:()=>c,sharedFocus:()=>Me,sharedVisuallyHidden:()=>Re,simpleColors:()=>n,stitchesConfig:()=>Ie,styled:()=>Se,textTransforms:()=>d,textWeights:()=>u,theme:()=>Pe,tuple:()=>e,useAsyncList:()=>bt,useBodyScroll:()=>Ue,useClickAnywhere:()=>qe,useClickAway:()=>Ge,useClipboard:()=>Je,useCollator:()=>Di,useCurrentState:()=>m,useInput:()=>Ze,useKeyboard:()=>rt,useModal:()=>sf,usePagination:()=>at,usePortal:()=>We,useRealShape:()=>y,useResize:()=>$,useSSR:()=>Ke,useTheme:()=>Ae});const e=(...e)=>e,t=(e("xs","sm","md","lg","xl"),e("default","primary","secondary","success","warning","error","gradient")),n=e("default","primary","secondary","success","warning","error"),r=e("default","primary","secondary","success","warning","error","invert","gradient"),a=e("default","primary","secondary","success","warning","error","invert"),s=e("default","primary","secondary","success","warning","error","dark","lite","alert","purple","violet","gradient","cyan"),l=e("default","points","points-opacity","gradient","spinner"),c=e("light","normal","bold","extrabold","black"),u=e("normal","bold","lighter","bolder","inherit","initial","revert","unset"),d=e("none","capitalize","uppercase","lowercase","full-width","full-size-kana","inherit","initial","revert","unset"),p=(e("default","slient","prevent"),e("hover","click"),e("top","topStart","topEnd","left","leftStart","leftEnd","bottom","bottomStart","bottomEnd","right","rightStart","rightEnd"),e("static","relative","absolute","fixed","sticky","inherit","initial","revert","unset"),e("contain","cover","fill","none","scale-down","inherit","initial","revert","unset"),e("start","center","end","left","right"),e("flex-start","center","flex-end","space-between","space-around","space-evenly"),e("flex-start","flex-end","center","stretch","baseline"),e("stretch","center","flex-start","flex-end","space-between","space-around"),e("row","row-reverse","column","column-reverse"),e("nowrap","wrap","wrap-reverse"),e("flex","block","grid","inline","inline-block","inline-flex","inline-grid"),e("left","right"),e("start","center","end"),e("clearable","as","rounded","labelLeft","labelRight","contentLeft","contentRight","contentClickable","contentLeftStyling","contentRightStyling","onContentClick","onClearClick","css")),h=e("items","disabledKeys","allowDuplicateSelectionEvents","disallowEmptySelection","defaultSelectedKeys","sortDescriptor","onSortChange");e("toggle","replace"),e("none","single","multiple");var f=o(787),g=o.n(f);const m=e=>{const[t,n]=(0,f.useState)((()=>"function"==typeof e?e():e)),r=(0,f.useRef)(e);return(0,f.useEffect)((()=>{r.current=t}),[t]),[t,e=>{const t="function"==typeof e?e(r.current):e;r.current=t,n(t)},r]},b=(e,t)=>{if(!e)return 0;const n=e.includes("px")?+e.split("px")[0]:e.includes("%")?+e.split("%")[0]*t*.01:e;return Number.isNaN(+n)?0:+n},y=e=>{const[t,n]=(0,f.useState)({width:0,height:0}),r=()=>{const{width:t,height:r}=(e=>{if(!e||"undefined"==typeof window)return{width:0,height:0};const t=e.getBoundingClientRect(),{width:n,height:r}=window.getComputedStyle(e);return{width:b(`${n}`,t.width),height:b(`${r}`,t.height)}})(e.current);n({width:t,height:r})};return(0,f.useEffect)((()=>r()),[e.current]),[t,r]},$=(e,t=!0)=>{(0,f.useEffect)((()=>{const n=()=>e();return t&&n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)}),[])};var v="colors",x="sizes",w="space",S={gap:w,gridGap:w,columnGap:w,gridColumnGap:w,rowGap:w,gridRowGap:w,inset:w,insetBlock:w,insetBlockEnd:w,insetBlockStart:w,insetInline:w,insetInlineEnd:w,insetInlineStart:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,marginBlock:w,marginBlockEnd:w,marginBlockStart:w,marginInline:w,marginInlineEnd:w,marginInlineStart:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,paddingBlock:w,paddingBlockEnd:w,paddingBlockStart:w,paddingInline:w,paddingInlineEnd:w,paddingInlineStart:w,top:w,right:w,bottom:w,left:w,scrollMargin:w,scrollMarginTop:w,scrollMarginRight:w,scrollMarginBottom:w,scrollMarginLeft:w,scrollMarginX:w,scrollMarginY:w,scrollMarginBlock:w,scrollMarginBlockEnd:w,scrollMarginBlockStart:w,scrollMarginInline:w,scrollMarginInlineEnd:w,scrollMarginInlineStart:w,scrollPadding:w,scrollPaddingTop:w,scrollPaddingRight:w,scrollPaddingBottom:w,scrollPaddingLeft:w,scrollPaddingX:w,scrollPaddingY:w,scrollPaddingBlock:w,scrollPaddingBlockEnd:w,scrollPaddingBlockStart:w,scrollPaddingInline:w,scrollPaddingInlineEnd:w,scrollPaddingInlineStart:w,fontSize:"fontSizes",background:v,backgroundColor:v,backgroundImage:v,borderImage:v,border:v,borderBlock:v,borderBlockEnd:v,borderBlockStart:v,borderBottom:v,borderBottomColor:v,borderColor:v,borderInline:v,borderInlineEnd:v,borderInlineStart:v,borderLeft:v,borderLeftColor:v,borderRight:v,borderRightColor:v,borderTop:v,borderTopColor:v,caretColor:v,color:v,columnRuleColor:v,fill:v,outline:v,outlineColor:v,stroke:v,textDecorationColor:v,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:x,minBlockSize:x,maxBlockSize:x,inlineSize:x,minInlineSize:x,maxInlineSize:x,width:x,minWidth:x,maxWidth:x,height:x,minHeight:x,maxHeight:x,flexBasis:x,gridTemplateColumns:x,gridTemplateRows:x,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},C=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,k=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(e=>JSON.stringify(e,C))(t);return o in e?e[o]:e[o]=n(t,...r)}},E=Symbol.for("sxs.internal"),T=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),P=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:I}=Object.prototype,M=e=>e.includes("-")?e:e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),N=/\s+(?![^()]*\))/,R=e=>t=>e(..."string"==typeof t?String(t).split(N):[t]),L={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:R(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:R(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:R(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:R(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:R(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:R(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},D=/([\d.]+)([^]*)/,z=(e,t)=>e.length?e.reduce(((e,n)=>(e.push(...t.map((e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(n)&&/&.*&/.test(e)?`:is(${n})`:n):n+" "+e))),e)),[]):t,A=(e,t)=>e in K&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((t,n,r,o)=>n+("stretch"===r?`-moz-available${o};${M(e)}:${n}-webkit-fill-available`:`-moz-fit-content${o};${M(e)}:${n}fit-content`)+o)):String(t),K={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},O=e=>e?e+"-":"",j=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((e,r,o,i,a)=>"$"==i==!!o?e:(r||"--"==i?"calc(":"")+"var(--"+("$"===i?O(t)+(a.includes("$")?"":O(n))+a.replace(/\$/g,"-"):a)+")"+(r||"--"==i?"*"+(r||"")+(o||"1")+")":""))),_=/\s*,\s*(?![^()]*\))/,F=Object.prototype.toString,W=(e,t,n,r,o)=>{let i,a,s;const l=(e,t,n)=>{let c,u;const d=e=>{for(c in e){const f=64===c.charCodeAt(0),g=f&&Array.isArray(e[c])?e[c]:[e[c]];for(u of g){const e=/[A-Z]/.test(h=c)?h:h.replace(/-[^]/g,(e=>e[1].toUpperCase())),g="object"==typeof u&&u&&u.toString===F&&(!r.utils[e]||!t.length);if(e in r.utils&&!g){const t=r.utils[e];if(t!==a){a=t,d(t(u)),a=null;continue}}else if(e in L){const t=L[e];if(t!==s){s=t,d(t(u)),s=null;continue}}if(f&&(p=c.slice(1)in r.media?"@media "+r.media[c.slice(1)]:c,c=p.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((e,t,n,r,o,i)=>{const a=D.test(t),s=.0625*(a?-1:1),[l,c]=a?[r,t]:[t,r];return"("+("="===n[0]?"":">"===n[0]===a?"max-":"min-")+l+":"+("="!==n[0]&&1===n.length?c.replace(D,((e,t,r)=>Number(t)+s*(">"===n?1:-1)+r)):c)+(o?") and ("+(">"===o[0]?"min-":"max-")+l+":"+(1===o.length?i.replace(D,((e,t,n)=>Number(t)+s*(">"===o?-1:1)+n)):i):"")+")"}))),g){const e=f?n.concat(c):[...n],r=f?[...t]:z(t,c.split(_));void 0!==i&&o(B(...i)),i=void 0,l(u,r,e)}else void 0===i&&(i=[[],t,n]),c=f||36!==c.charCodeAt(0)?c:`--${O(r.prefix)}${c.slice(1).replace(/\$/g,"-")}`,u=g?u:"number"==typeof u?u&&e in V?String(u)+"px":String(u):j(A(e,null==u?"":u),r.prefix,r.themeMap[e]),i[0].push(`${f?`${c} `:`${M(c)}:`}${u}`)}}var p,h};d(e),void 0!==i&&o(B(...i)),i=void 0};l(e,t,n)},B=(e,t,n)=>`${n.map((e=>`${e}{`)).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,V={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},H=e=>String.fromCharCode(e+(e>25?39:97)),U=e=>(e=>{let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=H(t%52)+n;return H(t%52)+n})(((e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e})(5381,JSON.stringify(e))>>>0),G=["themed","global","styled","onevar","resonevar","allvar","inline"],Y=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return e.cssRules,!0}catch(e){return!1}},X=e=>{let t;const n=()=>{if(t){const{rules:e,sheet:n}=t;if(!n.deleteRule){for(;3===Object(Object(n.cssRules)[0]).type;)n.cssRules.splice(0,1);n.cssRules=[]}for(const t in e)delete e[t]}const r=Object(e).styleSheets||[];for(const e of r)if(Y(e)){for(let r=0,o=e.cssRules;o[r];++r){const i=Object(o[r]);if(1!==i.type)continue;const a=Object(o[r+1]);if(4!==a.type)continue;++r;const{cssText:s}=i;if(!s.startsWith("--sxs"))continue;const l=s.slice(14,-3).trim().split(/\s+/),c=G[l[0]];c&&(t||(t={sheet:e,reset:n,rules:{}}),t.rules[c]={group:a,index:r,cache:new Set(l)})}if(t)break}if(!t){const r=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,r(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,(e=>e.cssText)).join("")}}`:e}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:r("","text/css"),rules:{},reset:n,toString(){const{cssRules:e}=t.sheet;return[].map.call(e,((n,r)=>{const{cssText:o}=n;let i="";if(o.startsWith("--sxs"))return"";if(e[r-1]&&(i=e[r-1].cssText).startsWith("--sxs")){if(!n.cssRules.length)return"";for(const e in t.rules)if(t.rules[e].group===n)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${o}`;return n.cssRules.length?`${i}${o}`:""}return o})).join("")}}}const{sheet:o,rules:i}=t;for(let e=G.length-1;e>=0;--e){const t=G[e];if(!i[t]){const n=G[e+1],r=i[n]?i[n].index:o.cssRules.length;o.insertRule("@media{}",r),o.insertRule(`--sxs{--sxs:${e}}`,r),i[t]={group:o.cssRules[r+1],index:r,cache:new Set([e])}}J(i[t])}};return n(),t},J=e=>{const t=e.group;let n=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,n),++n}catch{}}},q=Symbol(),Z=k(),Q=(e,t)=>Z(e,(()=>(...n)=>{let r={type:null,composers:new Set};for(const t of n)if(null!=t)if(t[E]){null==r.type&&(r.type=t[E].type);for(const e of t[E].composers)r.composers.add(e)}else t.constructor!==Object||t.$$typeof?null==r.type&&(r.type=t):r.composers.add(ee(t,e));return null==r.type&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),te(e,r,t)})),ee=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${O(o.prefix)}c-${U(r)}`,a=[],s=[],l=Object.create(null),c=[];for(const e in n)l[e]=String(n[e]);if("object"==typeof e&&e)for(const t in e){u=l,d=t,I.call(u,d)||(l[t]="undefined");const n=e[t];for(const e in n){const r={[t]:String(e)};"undefined"===String(e)&&c.push(t);const o=n[e],i=[r,o,!P(o)];a.push(i)}}var u,d;if("object"==typeof t&&t)for(const e of t){let{css:t,...n}=e;t="object"==typeof t&&t||{};for(const e in n)n[e]=String(n[e]);const r=[n,t,!P(t)];s.push(r)}return[i,r,a,s,l,c]},te=(e,t,n)=>{const[r,o,i,a]=ne(t.composers),s="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let n=0;n<t[q].length;n++){const[r,o]=t[q][n];e.rules[r].apply(o)}return t[q]=[],null}return t[q]=[],t.rules={},G.forEach((e=>t.rules[e]={apply:n=>t[q].push([e,n])})),t})(n):null,l=(s||n).rules,c=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,u=u=>{u="object"==typeof u&&u||oe;const{css:d,...p}=u,h={};for(const e in i)if(delete p[e],e in u){let t=u[e];"object"==typeof t&&t?h[e]={"@initial":i[e],...t}:(t=String(t),h[e]="undefined"!==t||a.has(e)?t:i[e])}else h[e]=i[e];const f=new Set([...o]);for(const[r,o,i,a]of t.composers){n.rules.styled.cache.has(r)||(n.rules.styled.cache.add(r),W(o,[`.${r}`],[],e,(e=>{l.styled.apply(e)})));const t=re(i,h,e.media),s=re(a,h,e.media,!0);for(const o of t)if(void 0!==o)for(const[t,i,a]of o){const o=`${r}-${U(i)}-${t}`;f.add(o);const s=(a?n.rules.resonevar:n.rules.onevar).cache,c=a?l.resonevar:l.onevar;s.has(o)||(s.add(o),W(i,[`.${o}`],[],e,(e=>{c.apply(e)})))}for(const t of s)if(void 0!==t)for(const[o,i]of t){const t=`${r}-${U(i)}-${o}`;f.add(t),n.rules.allvar.cache.has(t)||(n.rules.allvar.cache.add(t),W(i,[`.${t}`],[],e,(e=>{l.allvar.apply(e)})))}}if("object"==typeof d&&d){const t=`${r}-i${U(d)}-css`;f.add(t),n.rules.inline.cache.has(t)||(n.rules.inline.cache.add(t),W(d,[`.${t}`],[],e,(e=>{l.inline.apply(e)})))}for(const e of String(u.className||"").trim().split(/\s+/))e&&f.add(e);const g=p.className=[...f].join(" ");return{type:t.type,className:g,selector:c,props:p,toString:()=>g,deferredInjector:s}};return T(u,{className:r,selector:c,[E]:t,toString:()=>(n.rules.styled.cache.has(r)||u(),r)})},ne=e=>{let t="";const n=[],r={},o=[];for(const[i,,,,a,s]of e){""===t&&(t=i),n.push(i),o.push(...s);for(const e in a){const t=a[e];(void 0===r[e]||"undefined"!==t||s.includes(t))&&(r[e]=t)}}return[t,n,r,new Set(o)]},re=(e,t,n,r)=>{const o=[];e:for(let[i,a,s]of e){if(s)continue;let e,l=0,c=!1;for(e in i){const r=i[e];let o=t[e];if(o!==r){if("object"!=typeof o||!o)continue e;{let e,t,i=0;for(const a in o){if(r===String(o[a])){if("@initial"!==a){const e=a.slice(1);(t=t||[]).push(e in n?n[e]:a.replace(/^@media ?/,"")),c=!0}l+=i,e=!0}++i}if(t&&t.length&&(a={["@media "+t.join(", ")]:a}),!e)continue e}}}(o[l]=o[l]||[]).push([r?"cv":`${e}-${i[e]}`,a,c])}return o},oe={},ie=k(),ae=(e,t)=>ie(e,(()=>(...n)=>{const r=()=>{for(let r of n){r="object"==typeof r&&r||{};let n=U(r);if(!t.rules.global.cache.has(n)){if(t.rules.global.cache.add(n),"@import"in r){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let n of[].concat(r["@import"]))n=n.includes('"')||n.includes("'")?n:`"${n}"`,t.sheet.insertRule(`@import ${n};`,e++);delete r["@import"]}W(r,[],[],e,(e=>{t.rules.global.apply(e)}))}}return""};return T(r,{toString:r})})),se=k(),le=(e,t)=>se(e,(()=>n=>{const r=`${O(e.prefix)}k-${U(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const o=[];W(n,[],[],e,(e=>o.push(e)));const i=`@keyframes ${r}{${o.join("")}}`;t.rules.global.apply(i)}return r};return T(o,{get name(){return o()},toString:o})})),ce=class{constructor(e,t,n,r){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==n?"":String(n),this.prefix=null==r?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+O(this.prefix)+O(this.scale)+this.token}toString(){return this.computedValue}},ue=k(),de=(e,t)=>ue(e,(()=>(n,r)=>{r="object"==typeof n&&n||Object(r);const o=`.${n=(n="string"==typeof n?n:"")||`${O(e.prefix)}t-${U(r)}`}`,i={},a=[];for(const t in r){i[t]={};for(const n in r[t]){const o=`--${O(e.prefix)}${t}-${n}`,s=j(String(r[t][n]),e.prefix,t);i[t][n]=new ce(n,s,t,e.prefix),a.push(`${o}:${s}`)}}const s=()=>{if(a.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const o=`${r===e.theme?":root,":""}.${n}{${a.join(";")}}`;t.rules.themed.apply(o)}return n};return{...i,get className(){return s()},selector:o,toString:s}})),pe=k(),he=k();const fe={fonts:{sans:"-apple-system, BlinkMacSystemFont, 'Segoe UI','Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans','Helvetica Neue', sans-serif;",mono:"Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono','Courier New', monospace;"},fontSizes:{tiny:".75rem",xs:"0.875rem",base:"1rem",sm:"1.25rem",md:"1.5rem",lg:"2.25rem",xl:"3rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},lineHeights:{xs:1,sm:1.25,md:1.5,lg:1.625,xl:1.75},letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},space:{0:"0rem",xs:"0.5rem",sm:"0.75rem",md:"1rem",lg:"1.25rem",xl:"2.25rem",px:"1px",1:"0.125rem",2:"0.25rem",3:"0.375rem",4:"0.5rem",5:"0.625rem",6:"0.75rem",7:"0.875rem",8:"1rem",9:"1.25rem",10:"1.5rem",11:"1.75rem",12:"2rem",13:"2.25rem",14:"2.5rem",15:"2.75rem",16:"3rem",17:"3.5rem",18:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},radii:{xs:"7px",sm:"9px",md:"12px",base:"14px",lg:"14px",xl:"18px",squared:"33%",rounded:"50%",pill:"9999px"},zIndices:{1:"100",2:"200",3:"300",4:"400",5:"500",10:"1000",max:"9999"},borderWeights:{light:"1px",normal:"2px",bold:"3px",extrabold:"4px",black:"5px"},transitions:{default:"all 250ms ease"},breakpoints:{xs:"650px",sm:"960px",md:"1280px",lg:"1400px",xl:"1920px"}},ge={xs:`(min-width: ${fe.breakpoints.xs})`,sm:`(min-width: ${fe.breakpoints.sm})`,md:`(min-width: ${fe.breakpoints.md})`,lg:`(min-width: ${fe.breakpoints.lg})`,xl:`(min-width: ${fe.breakpoints.xl})`,xsMax:`(max-width: ${fe.breakpoints.xs})`,smMax:`(max-width: ${fe.breakpoints.sm})`,mdMax:`(max-width: ${fe.breakpoints.md})`,lgMax:`(max-width: ${fe.breakpoints.lg})`,xlMax:`(max-width: ${fe.breakpoints.xl})`,motion:"(prefers-reduced-motion)",safari:"not all and (min-resolution:.001dpcm)",hover:"(any-hover: hover)",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)"},me={...S,width:"space",height:"space",minWidth:"space",maxWidth:"space",minHeight:"space",maxHeight:"space",flexBasis:"space",gridTemplateColumns:"space",gridTemplateRows:"space",blockSize:"space",minBlockSize:"space",maxBlockSize:"space",inlineSize:"space",minInlineSize:"space",maxInlineSize:"space",borderWidth:"borderWeights"},be={prefix:"nextui",theme:{...fe,colors:{white:"#ffffff",black:"#000000",blue100:"#bfd8fc",blue200:"#98D5FD",blue300:"#64B8FB",blue400:"#3D9CF7",blue500:"#0070F3",blue600:"#0056D0",blue700:"#0040AE",blue800:"#002D8C",blue900:"#002074",purple100:"#dbc8f0",purple200:"#DDA9F9",purple300:"#C17CEF",purple400:"#A258DF",purple500:"#7928ca",purple600:"#5E1DAD",purple700:"#461491",purple800:"#310C75",purple900:"#220760",green100:"#dafee8",green200:"#A1F9AC",green300:"#6FEE8D",green400:"#4ADE7B",green500:"#17c964",green600:"#10AC63",green700:"#0B905F",green800:"#077457",green900:"#046050",yellow100:"#fce6c7",yellow200:"#FEE7A6",yellow300:"#FCD57A",yellow400:"#F9C258",yellow500:"#f5a623",yellow600:"#D28519",yellow700:"#B06811",yellow800:"#8E4D0B",yellow900:"#753A06",red100:"#fbc4d5",red200:"#FDA0A5",red300:"#FB7085",red400:"#F74C77",red500:"#f21361",red600:"#D00D65",red700:"#AE0963",red800:"#8C065C",red900:"#740357",cyan100:"#EEFFF4",cyan200:"#DDFFED",cyan300:"#CCFFE9",cyan400:"#BFFFEA",cyan500:"#AAFFEC",cyan600:"#7CDBCF",cyan700:"#55B7B4",cyan800:"#368D93",cyan900:"#206C7A",pink100:"#FFDBE7",pink200:"#FFB8D6",pink300:"#FF94CC",pink400:"#FF7ACC",pink500:"#ff4ecd",pink600:"#DB39BD",pink700:"#B727AA",pink800:"#921893",pink900:"#6E0E7A",gray100:"#F4F4F4",gray200:"#EAEAEA",gray300:"#C1C1C1",gray400:"#999999",gray500:"#888888",gray600:"#666666",gray700:"#444444",gray800:"#333333",gray900:"#111111",primaryLight:"$blue100",primary:"$blue500",primaryDark:"$blue600",primaryShadow:"$blue100",secondaryLight:"$purple100",secondary:"$purple500",secondaryDark:"$purple600",secondaryShadow:"$purple100",successLight:"$green100",success:"$green500",successDark:"$green600",successShadow:"$green100",warningLight:"$yellow100",warning:"$yellow500",warningDark:"$yellow600",warningShadow:"$yellow100",errorLight:"$red100",error:"$red500",errorDark:"$red600",errorShadow:"$red100",gradient:"linear-gradient(112deg, $cyan500 -63.59%, $pink500 -20.3%, $blue500 70.46%)",link:"$blue500"},shadows:{}},media:ge,utils:{p:e=>({padding:e}),pt:e=>({paddingTop:e}),pr:e=>({paddingRight:e}),pb:e=>({paddingBottom:e}),pl:e=>({paddingLeft:e}),px:e=>({paddingLeft:e,paddingRight:e}),py:e=>({paddingTop:e,paddingBottom:e}),m:e=>({margin:e}),mt:e=>({marginTop:e}),mr:e=>({marginRight:e}),mb:e=>({marginBottom:e}),ml:e=>({marginLeft:e}),mx:e=>({marginLeft:e,marginRight:e}),my:e=>({marginTop:e,marginBottom:e}),ta:e=>({textAlign:e}),tt:e=>({textTransform:e}),to:e=>({textOverflow:e}),d:e=>({display:e}),dflex:e=>({display:"flex",alignItems:e,justifyContent:e}),fd:e=>({flexDirection:e}),fw:e=>({flexWrap:e}),ai:e=>({alignItems:e}),ac:e=>({alignContent:e}),jc:e=>({justifyContent:e}),as:e=>({alignSelf:e}),fg:e=>({flexGrow:e}),fs:e=>({fontSize:e}),fb:e=>({flexBasis:e}),bc:e=>({backgroundColor:e}),bf:e=>({backdropFilter:e}),bg:e=>({background:e}),bgBlur:e=>({bf:"saturate(180%) blur(10px)",bg:`${e}66`}),bgColor:e=>({backgroundColor:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),bgClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),br:e=>({borderRadius:e}),bw:e=>({borderWidth:e}),btrr:e=>({borderTopRightRadius:e}),bbrr:e=>({borderBottomRightRadius:e}),bblr:e=>({borderBottomLeftRadius:e}),btlr:e=>({borderTopLeftRadius:e}),bs:e=>({boxShadow:e}),normalShadow:e=>({boxShadow:`0 4px 14px 0 $colors${e}`}),normalShadowVar:e=>({boxShadow:`0 4px 14px 0 ${e}`}),lh:e=>({lineHeight:e}),ov:e=>({overflow:e}),ox:e=>({overflowX:e}),oy:e=>({overflowY:e}),pe:e=>({pointerEvents:e}),events:e=>({pointerEvents:e}),us:e=>({WebkitUserSelect:e,userSelect:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),w:e=>({width:e}),h:e=>({height:e}),mw:e=>({maxWidth:e}),maxW:e=>({maxWidth:e}),mh:e=>({maxHeight:e}),maxH:e=>({maxHeight:e}),size:e=>({width:e,height:e}),minSize:e=>({minWidth:e,minHeight:e,width:e,height:e}),sizeMin:e=>({minWidth:e,minHeight:e,width:e,height:e}),maxSize:e=>({maxWidth:e,maxHeight:e}),sizeMax:e=>({maxWidth:e,maxHeight:e}),appearance:e=>({WebkitAppearance:e,appearance:e}),scale:e=>({transform:`scale(${e})`}),linearGradient:e=>({backgroundImage:`linear-gradient(${e})`}),tdl:e=>({textDecorationLine:e}),textGradient:e=>({backgroundImage:`linear-gradient(${e})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent","&::selection":{WebkitTextFillColor:"$colors$text"}})},themeMap:me},ye={colors:{accents1:"$gray100",accents2:"$gray200",accents3:"$gray300",accents4:"$gray400",accents5:"$gray500",accents6:"$gray600",accents7:"$gray700",accents8:"$gray800",accents9:"$gray900",text:"$gray800",background:"$white",foreground:"$black",codeLight:"$pink100",code:"$pink600",border:"$gray200",selection:"$blue200"},shadows:{xs:"-4px 0 4px rgb(0 0 0 / 5%);",sm:"0 5px 20px -5px rgba(0, 0, 0, 0.1)",md:"0 8px 30px rgba(0, 0, 0, 0.15)",lg:"0 30px 60px rgba(0, 0, 0, 0.15)",xl:"0 40px 80px rgba(0, 0, 0, 0.25)"}},$e={colors:{accents1:"$gray900",accents2:"$gray800",accents3:"$gray700",accents4:"$gray600",accents5:"$gray500",accents6:"$gray400",accents7:"$gray300",accents8:"$gray200",accents9:"$gray100",text:"$white",blue900:"#001835",purple900:"#1c0631",green900:"#033116",yellow900:"#3d2705",red900:"#3c0216",primaryLight:"$blue900",primaryShadow:"$blue600",secondaryLight:"$purple900",secondaryShadow:"$purple600",successLight:"$green900",successShadow:"$green600",warningLight:"$yellow900",warningShadow:"$yellow600",errorLight:"$red900",errorShadow:"$red600",background:"$black",foreground:"$white",codeLight:"#16272e",code:"#6cc0e1",border:"$gray700",selection:"#ff4ecd"},shadows:{xs:"-4px 0 15px rgb(0 0 0 / 50%)",sm:"0 5px 20px -5px rgba(20, 20, 20, 0.1)",md:"0 8px 30px rgba(20, 20, 20, 0.15)",lg:"0 30px 60px rgba(20, 20, 20, 0.15)",xl:"0 40px 80px rgba(20, 20, 20, 0.25)"}};function ve(e){for(var t,n,r=Array.prototype.slice.call(arguments,1);r.length;)for(n in t=r.shift())t.hasOwnProperty(n)&&("object"==typeof e[n]&&e[n]&&"[object Array]"!==Object.prototype.toString.call(e[n])&&"object"==typeof t[n]&&null!==t[n]?e[n]=ve({},e[n],t[n]):e[n]=t[n]);return e}const xe=(e=>{const t=(e=>{let t=!1;const n=pe(e,(e=>{t=!0;const n="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",r="object"==typeof e.media&&e.media||{},o="object"==typeof e.root?e.root||null:globalThis.document||null,i="object"==typeof e.theme&&e.theme||{},a={prefix:n,media:r,theme:i,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...S},utils:"object"==typeof e.utils&&e.utils||{}},s=X(o),l={css:Q(a,s),globalCss:ae(a,s),keyframes:le(a,s),createTheme:de(a,s),reset(){s.reset(),l.theme.toString()},theme:{},sheet:s,config:a,prefix:n,getCssText:s.toString,toString:s.toString};return String(l.theme=l.createTheme(i)),l}));return t||n.reset(),n})(e);return t.styled=(({config:e,sheet:t})=>he(e,(()=>{const n=Q(e,t);return(...e)=>{const t=n(...e),r=t[E].type,o=f.forwardRef(((e,n)=>{const o=e&&e.as||r,{props:i,deferredInjector:a}=t(e);return delete i.as,i.ref=n,a?f.createElement(f.Fragment,null,f.createElement(o,i),f.createElement(a,null)):f.createElement(o,i)}));return o.className=t.className,o.displayName=`Styled.${r.displayName||r.name||r}`,o.selector=t.selector,o.toString=()=>t.selector,o[E]=t[E],o}})))(t),t})({...be,theme:{...be.theme,shadows:{...ye.shadows},colors:{...be.theme.colors,...ye.colors}}}),we=xe.createTheme,Se=xe.styled,Ce=xe.css,ke=xe.globalCss,Ee=xe.keyframes,Te=xe.getCssText,Pe=xe.theme,Ie=xe.config,Me=Ce({WebkitTapHighlightColor:"transparent","&:focus:not(&:focus-visible)":{boxShadow:"none"},"&:focus":{outline:"none",boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},"@safari":{WebkitTapHighlightColor:"transparent",outline:"none"}}),Ne=Ce({transition:"box-shadow 0.25s ease 0s","@motion":{transition:"none"},variants:{animated:{false:{transition:"none"}},isFocusVisible:{true:{outline:"transparent solid 2px",outlineOffset:"2px",boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},false:{outline:"none"}}}}),Re=Ce({border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"}),Le=({type:e,theme:t,className:n})=>{if(!e)throw new Error("Theme type is required");return we(n||`${e}-theme`,ve("dark"===e?$e:ye,t))},De={isDark:!1,theme:Pe,type:"light"},ze=g().createContext(De),Ae=()=>g().useContext(ze),Ke=()=>{const[e,t]=(0,f.useState)(!1);return(0,f.useEffect)((()=>{t(Boolean("undefined"!=typeof window&&window.document&&window.document.createElement))}),[]),{isBrowser:e,isServer:!e}},Oe=(e,t)=>(g().Children.map(e,(e=>g().isValidElement(e)?e.type:null))||[]).includes(t),je=(e,t)=>{let n=[];return[g().Children.map(e,(e=>g().isValidElement(e)&&e.type===t?(n.push(e),null):e)),n.length>=0?n:void 0]},_e=()=>!!Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)&&navigator.platform.toUpperCase().indexOf("MAC")>=0,Fe=e=>{const t=document.createElement("div");return t.setAttribute("id",e),t},We=(e=(()=>Math.random().toString(32).slice(2,10))(),t)=>{const n=`nextui-${e}`,{isBrowser:r}=Ke(),[o,i]=(0,f.useState)(r?Fe(n):null);return(0,f.useEffect)((()=>{const e=(t?t():null)||document.body,r=e.querySelector(`#${n}`),o=r||Fe(n);r||e.appendChild(o),i(o)}),[]),o},Be={scrollLayer:!1},Ve=new Map,He=e=>!!(e.touches&&e.touches.length>1)||(e.preventDefault(),!1),Ue=(e,t)=>{if("undefined"==typeof document)return[!1,e=>e];const n=e||(0,f.useRef)(document.body),[r,o]=(0,f.useState)(!1),i={...Be,...t||{}},a=()=>!i.scrollLayer&&!("undefined"==typeof window||!window.navigator)&&/iP(ad|hone|od)/.test(window.navigator.platform);return(0,f.useEffect)((()=>{if(!n||!n.current)return;const e=n.current.style.overflow;if(r){if(Ve.has(n.current))return;return a()?document.addEventListener("touchmove",He,{passive:!1}):n.current.style.overflow="hidden",void Ve.set(n.current,{last:e})}if(Ve.has(n.current)){if(a())document.removeEventListener("touchmove",He);else{const e=Ve.get(n.current);n.current.style.overflow=e.last}Ve.delete(n.current)}}),[r,n]),[r,o]},Ge=(e,t)=>{(0,f.useEffect)((()=>{const n=n=>{const r=e.current;n&&r&&!r.contains(n.target)&&t(n)};return document.addEventListener("click",n),()=>document.removeEventListener("click",n)}),[e,t])},Ye={},Xe={onError:()=>false},Je=(e=Xe)=>{const t=We("clipboard"),n=(0,f.useCallback)((n=>{((t,n)=>{if(!t||!n)return;const r=window.getSelection();if(!r)return;t.style.whiteSpace="pre",t.textContent=n;const o=window.document.createRange();r.removeAllRanges(),o.selectNode(t),r.addRange(o);try{window.document.execCommand("copy")}catch(t){e.onError&&e.onError()}r.removeAllRanges(),t&&(t.textContent="")})(t,n)}),[t]);return{copy:n}},qe=e=>{(0,f.useEffect)((()=>{const t=t=>e(t);return document.addEventListener("click",t),()=>document.removeEventListener("click",t)}),[e])},Ze=e=>{const[t,n,r]=m(e);return{value:t,setValue:n,currentRef:r,reset:()=>n(e),bindings:{value:t,onChange:e=>{"object"==typeof e&&e.target?n(e.target.value):n(e)}}}},Qe={Unknown:0,Backspace:8,Tab:9,Enter:13,Shift:16,Ctrl:17,Alt:18,PauseBreak:19,CapsLock:20,Escape:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,LeftArrow:37,UpArrow:38,RightArrow:39,DownArrow:40,Insert:45,Delete:46,KEY_0:48,KEY_1:49,KEY_2:50,KEY_3:51,KEY_4:52,KEY_5:53,KEY_6:54,KEY_7:55,KEY_8:56,KEY_9:57,KEY_A:65,KEY_B:66,KEY_C:67,KEY_D:68,KEY_E:69,KEY_F:70,KEY_G:71,KEY_H:72,KEY_I:73,KEY_J:74,KEY_K:75,KEY_L:76,KEY_M:77,KEY_N:78,KEY_O:79,KEY_P:80,KEY_Q:81,KEY_R:82,KEY_S:83,KEY_T:84,KEY_U:85,KEY_V:86,KEY_W:87,KEY_X:88,KEY_Y:89,KEY_Z:90,Meta:91,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NumLock:144,ScrollLock:145,Equal:187,Minus:189,Backquote:192,Backslash:220},et={CtrlCmd:2048,Shift:1024,Alt:512,WinCtrl:256},tt=e=>e&&"object"==typeof e,nt=(e,t)=>tt(e)?e instanceof Array?[...e]:e[t]:e,rt=(e,t,n={})=>{const r=Array.isArray(t)?t:[t],{disableGlobalEvent:o=!1,capture:i=!1,stopPropagation:a=!1,preventDefault:s=!1,event:l="keydown"}=n,c=(e=>{const t=e.filter((e=>!!nt(et,e))),n={CtrlCmd:!1,Shift:!1,Alt:!1,WinCtrl:!1};return t.forEach((e=>{const t=nt(et,e);n[t]=!0})),n})(r),u=r.filter((e=>!nt(et,e))),{CtrlCmd:d,WinCtrl:p}={CtrlCmd:_e()?"metaKey":"ctrlKey",WinCtrl:_e()?"ctrlKey":"metaKey"},h=t=>{c.Shift&&!t.shiftKey||c.Alt&&!t.altKey||c.CtrlCmd&&!t[d]||c.WinCtrl&&!t[p]||u.length>0&&!u.includes(t.keyCode)||(a&&t.stopPropagation(),s&&t.preventDefault(),e&&e(t))};(0,f.useEffect)((()=>(o||document.addEventListener(l,h),()=>{document.removeEventListener(l,h)})),[o]);const g=(e,t=!1)=>e!==l||t!==i?()=>{}:e=>h(e);return{bindings:{onKeyDown:g("keydown"),onKeyDownCapture:g("keydown",!0),onKeyPress:g("keypress"),onKeyPressCapture:g("keypress",!0),onKeyUp:g("keyup"),onKeyUpCapture:g("keyup",!0)}}};function ot(e,t){const n=t-e+1;return Array.from({length:n},((t,n)=>n+e))}const it="dots",at=({page:e,total:t,siblings:n=1,boundaries:r=1,initialPage:o=1,onChange:i})=>{const[a,s]=(0,f.useState)(e||o);(0,f.useEffect)((()=>{e&&e!==a&&s(e)}),[e]);const l=(0,f.useCallback)((e=>{var n;s(n=e<=0?1:e>t?t:e),i&&i(n)}),[t]);return{range:(0,f.useMemo)((()=>{if(2*n+3+2*r>=t)return ot(1,t);const e=Math.max(a-n,r),o=Math.min(a+n,t-r),i=e>r+2,s=o<t-(r+1);if(!i&&s)return[...ot(1,2*n+r+2),it,...ot(t-(r-1),t)];if(i&&!s){const e=r+1+2*n;return[...ot(1,r),it,...ot(t-e,t)]}return[...ot(1,r),it,...ot(e,o),it,...ot(t-r+1,t)]}),[t,n,a]),active:a,setPage:l,next:()=>l(a+1),previous:()=>l(a-1),first:()=>l(1),last:()=>l(t)}};var st=o(570);const lt=ke({"*, *:before, *:after":{boxSizing:"border-box",textRendering:"geometricPrecision",WebkitTapHighlightColor:"transparent"},html:{fontSize:"$base"},body:{margin:0,padding:0,minHeight:"100%",position:"relative",overflowX:"hidden",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",fontSize:"$base",lineHeight:"$md",fontFamily:"$sans"},"html, body":{backgroundColor:"$background",color:"$text"},"p, small":{color:"inherit",letterSpacing:"$tighter",fontWeight:"$normal",fontFamily:"$sans"},p:{margin:"$md 0",fontSize:"$base",lineHeight:"$lg"},small:{margin:0,lineHeight:"$md",fontSize:"$xs"},b:{fontWeight:"$semibold"},span:{fontSize:"inherit",color:"inherit",fontWeight:"inherit"},img:{maxWidth:"100%"},a:{cursor:"pointer",fontSize:"inherit",WebkitTouchCallout:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitBoxAlign:"center",alignItems:"center",color:"$link",textDecoration:"none"},"a:hover":{textDecoration:"none"},"ul,ol":{padding:0,listStyleType:"none",margin:"$sm $sm $sm $lg",color:"$foreground"},ol:{listStyleType:"decimal"},li:{marginBottom:"$5",fontSize:"$base",lineHeight:"$lg"},"h1,h2,h3,h4,h5,h6":{color:"inherit",margin:"0 0 $5 0"},h1:{letterSpacing:"$tighter",lineHeight:"$md",fontSize:"$xl",fontWeight:"$bold"},h2:{letterSpacing:"$tighter",fontSize:"$lg",fontWeight:"$semibold"},h3:{letterSpacing:"$tighter",fontSize:"$md",fontWeight:"$semibold"},h4:{letterSpacing:"$tighter",fontSize:"$sm",fontWeight:"$semibold"},h5:{letterSpacing:"$tight",fontSize:"$base",fontWeight:"$semibold"},h6:{letterSpacing:"$tight",fontSize:"$xs",fontWeight:"$semibold"},"button, input, select,textarea":{fontFamily:"inherit",fontSize:"inherit",lineHeight:"inherit",color:"inherit",margin:0},"button:focus, input:focus, select:focus,textarea:focus":{outline:"none"},code:{color:"$code",padding:"$1 $2",borderRadius:"$xs",bg:"$codeLight",fontFamily:"$mono",fontSize:"$xs",whiteSpace:"pre-wrap",transition:"$default"},"code:hover":{opacity:.8},pre:{overflow:"auto",whiteSpace:"pre",textAlign:"left",fontSize:"$xs",borderRadius:"$lg",padding:"$md $lg",margin:"$lg 0 ",fontFamily:"$mono",lineHeight:"$md",webkitOverflowScrolling:"touch"},"pre code":{color:"$foreground",fontSize:"$xs",lineHeight:"$sm",whiteSpace:"pre"},"pre code:before,pre code:after":{display:"none"},"pre p":{margin:0},"pre::-webkit-scrollbar":{display:"none",width:0,height:0,background:"transparent"},hr:{borderColor:"$accents2"},details:{backgroundColor:"$accents1",border:"none"},"details:focus, details:hover, details:active":{outline:"none"},summary:{cursor:"pointer",userSelect:"none",listStyle:"none",outline:"none"},"summary::-webkit-details-marker, summary::before":{display:"none"},"summary::-moz-list-bullet":{fontSize:0},"summary:focus, summary:hover, summary:active":{outline:"none",listStyle:"none"},"::selection":{backgroundColor:"$selection"},blockquote:{padding:"$md $lg",color:"$accents5",backgroundColor:"$accents1",borderRadius:"$lg",margin:"$10 0"},"blockquote *:first-child":{marginTop:0},"blockquote *:last-child":{marginBottom:0}}),ct=({children:e})=>(lt(),(0,st.jsx)(g().Fragment,{children:e})),ut=g().memo(ct);ut.flush=()=>(0,st.jsx)("style",{id:"stitches",dangerouslySetInnerHTML:{__html:Te()}});const dt=ut;function pt(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function ht(e,t){let{cursor:n,getKey:r}=e;return{setSelectedKeys(e){t((t=>({...t,selectedKeys:e})))},setFilterText(e){t((t=>({...t,filterText:e})))},insert(e,...n){t((t=>ft(t,e,...n)))},insertBefore(e,...n){t((t=>{let o=t.items.findIndex((t=>r(t)===e));if(-1!==o)return ft(t,o,...n)}))},insertAfter(e,...n){t((t=>{let o=t.items.findIndex((t=>r(t)===e));if(-1!==o)return ft(t,o+1,...n)}))},prepend(...e){t((t=>ft(t,0,...e)))},append(...e){t((t=>ft(t,t.items.length,...e)))},remove(...e){t((t=>{let o=new Set(e),i=t.items.filter((e=>!o.has(r(e)))),a="all";if("all"!==t.selectedKeys){a=new Set(t.selectedKeys);for(let t of e)a.delete(t)}return null==n&&0===i.length&&(a=new Set),{...t,items:i,selectedKeys:a}}))},removeSelectedItems(){t((e=>{if("all"===e.selectedKeys)return{...e,items:[],selectedKeys:new Set};let t=e.selectedKeys,n=e.items.filter((e=>!t.has(r(e))));return{...e,items:n,selectedKeys:new Set}}))},move(e,n){t((t=>{let o=t.items.findIndex((t=>r(t)===e));if(-1===o)return t;let i=t.items.slice(),[a]=i.splice(o,1);return i.splice(n,0,a),{...t,items:i}}))},moveBefore(e,n){t((t=>{let o=t.items.findIndex((t=>r(t)===e));if(-1===o)return t;let i=n.map((e=>t.items.findIndex((t=>r(t)===e)))).sort();return gt(t,i,o)}))},moveAfter(e,n){t((t=>{let o=t.items.findIndex((t=>r(t)===e));if(-1===o)return t;let i=n.map((e=>t.items.findIndex((t=>r(t)===e)))).sort();return gt(t,i,o+1)}))},update(e,n){t((t=>{let o=t.items.findIndex((t=>r(t)===e));return-1===o?t:{...t,items:[...t.items.slice(0,o),n,...t.items.slice(o+1)]}}))}}}function ft(e,t,...n){return{...e,items:[...e.items.slice(0,t),...n,...e.items.slice(t)]}}function gt(e,t,n){for(let e of t)e<n&&n--;let r=t.map((e=>({from:e,to:n++})));for(let e=0;e<r.length;e++){let t=r[e].from;for(let n=e;n<r.length;n++)r[n].from>t&&r[n].from--}for(let e=0;e<r.length;e++){let t=r[e];for(let n=r.length-1;n>e;n--){let e=r[n];e.from<t.to?t.to++:e.from++}}let o=e.items.slice();for(let e of r){let[t]=o.splice(e.from,1);o.splice(e.to,0,t)}return{...e,items:o}}function mt(e,t){let n;switch(e.state){case"idle":case"error":switch(t.type){case"loading":case"loadingMore":case"sorting":case"filtering":var r,o;return{...e,filterText:null!==(r=t.filterText)&&void 0!==r?r:e.filterText,state:t.type,items:"loading"===t.type?[]:e.items,sortDescriptor:null!==(o=t.sortDescriptor)&&void 0!==o?o:e.sortDescriptor,abortController:t.abortController};case"update":return{...e,...t.updater(e)};case"success":case"error":return e;default:throw new Error(`Invalid action "${t.type}" in state "${e.state}"`)}case"loading":case"sorting":case"filtering":switch(t.type){case"success":return t.abortController!==e.abortController?e:(n=null!==(i=t.selectedKeys)&&void 0!==i?i:e.selectedKeys,{...e,filterText:null!==(a=t.filterText)&&void 0!==a?a:e.filterText,state:"idle",items:[...t.items],selectedKeys:"all"===n?"all":new Set(n),sortDescriptor:null!==(s=t.sortDescriptor)&&void 0!==s?s:e.sortDescriptor,abortController:null,cursor:t.cursor});var i,a,s;case"error":return t.abortController!==e.abortController?e:{...e,state:"error",error:t.error,abortController:null};case"loading":case"loadingMore":case"sorting":case"filtering":var l;return e.abortController.abort(),{...e,filterText:null!==(l=t.filterText)&&void 0!==l?l:e.filterText,state:t.type,items:"loading"===t.type?[]:e.items,abortController:t.abortController};case"update":return{...e,...t.updater(e)};default:throw new Error(`Invalid action "${t.type}" in state "${e.state}"`)}case"loadingMore":switch(t.type){case"success":var c,u;return n="all"===e.selectedKeys||"all"===t.selectedKeys?"all":new Set([...e.selectedKeys,...null!==(c=t.selectedKeys)&&void 0!==c?c:[]]),{...e,state:"idle",items:[...e.items,...t.items],selectedKeys:n,sortDescriptor:null!==(u=t.sortDescriptor)&&void 0!==u?u:e.sortDescriptor,abortController:null,cursor:t.cursor};case"error":return t.abortController!==e.abortController?e:{...e,state:"error",error:t.error};case"loading":case"sorting":case"filtering":var d;return e.abortController.abort(),{...e,filterText:null!==(d=t.filterText)&&void 0!==d?d:e.filterText,state:t.type,items:"loading"===t.type?[]:e.items,abortController:t.abortController};case"loadingMore":return t.abortController.abort(),e;case"update":return{...e,...t.updater(e)};default:throw new Error(`Invalid action "${t.type}" in state "${e.state}"`)}default:throw new Error(`Invalid state "${e.state}"`)}}function bt(e){const{load:t,sort:n,initialSelectedKeys:r,initialSortDescriptor:o,getKey:i=(e=>e.id||e.key),initialFilterText:a=""}=e;let[s,l]=(0,f.useReducer)(mt,{state:"idle",error:null,items:[],selectedKeys:"all"===r?"all":new Set(r),sortDescriptor:o,filterText:a});const c=async(e,n)=>{let r=new AbortController;try{var o;l({...e,abortController:r});let u=null!==(o=e.filterText)&&void 0!==o?o:s.filterText;var i;let d=await n({items:s.items.slice(),selectedKeys:s.selectedKeys,sortDescriptor:null!==(i=e.sortDescriptor)&&void 0!==i?i:s.sortDescriptor,signal:r.signal,cursor:"loadingMore"===e.type?s.cursor:null,filterText:u});var a;let p=null!==(a=d.filterText)&&void 0!==a?a:u;l({type:"success",...d,abortController:r}),p&&p!==u&&!r.signal.aborted&&c({type:"filtering",filterText:p},t)}catch(e){l({type:"error",error:e,abortController:r})}};return(0,f.useEffect)((()=>{c({type:"loading"},t)}),[]),{items:s.items,selectedKeys:s.selectedKeys,sortDescriptor:s.sortDescriptor,isLoading:"loading"===s.state||"loadingMore"===s.state||"sorting"===s.state||"filtering"===s.state,loadingState:s.state,error:s.error,filterText:s.filterText,getItem:e=>s.items.find((t=>i(t)===e)),reload(){c({type:"loading"},t)},loadMore(){"loadingMore"!==s.state&&"filtering"!==s.state&&null!=s.cursor&&c({type:"loadingMore"},t)},sort(e){c({type:"sorting",sortDescriptor:e},n||t)},...ht({...e,getKey:i,cursor:s.cursor},(e=>{l({type:"update",updater:e})})),setFilterText(e){c({type:"filtering",filterText:e},t)}}}function yt(e){let{initialItems:t=[],initialSelectedKeys:n,getKey:r=(e=>e.id||e.key),getChildren:o=(e=>e.children)}=e,i=(0,f.useMemo)((()=>new Map),[]),a=(0,f.useMemo)((()=>d(t)),[]),[s,l]=(0,f.useState)(a),[c,u]=(0,f.useState)(new Set(n||[]));function d(e=[],t){return e.map((e=>{let n={key:r(e),parentKey:t,value:e,children:null};return n.children=d(o(e),n.key),i.set(n.key,n),n}))}function p(e,t,n){let r=i.get(t);if(!r)return e;let o=n(r);for(null==o?g(r):h(o);r.parentKey;){let e=i.get(r.parentKey),t={key:e.key,parentKey:e.parentKey,value:e.value,children:null},n=e.children;null==o&&(n=n.filter((e=>e!==r))),t.children=n.map((e=>e===r?o:e)),i.set(t.key,t),o=t,r=e}return null==o&&(e=e.filter((e=>e!==r))),e.map((e=>e===r?o:e))}function h(e){i.set(e.key,e);for(let t of e.children)h(t)}function g(e){i.delete(e.key);for(let t of e.children)g(t)}return{items:s,selectedKeys:c,setSelectedKeys:u,getItem:e=>i.get(e),insert(e,t,...n){l((r=>{let o=d(n,e);return null==e?[...r.slice(0,t),...o,...r.slice(t)]:p(r,e,(e=>({key:e.key,parentKey:e.parentKey,value:e.value,children:[...e.children.slice(0,t),...o,...e.children.slice(t)]})))}))},insertBefore(e,...t){let n=i.get(e);if(!n)return;let r=i.get(n.parentKey),o=(r?r.children:s).indexOf(n);this.insert(null==r?void 0:r.key,o,...t)},insertAfter(e,...t){let n=i.get(e);if(!n)return;let r=i.get(n.parentKey),o=(r?r.children:s).indexOf(n);this.insert(null==r?void 0:r.key,o+1,...t)},prepend(e,...t){this.insert(e,0,...t)},append(e,...t){if(null==e)this.insert(null,s.length,...t);else{let n=i.get(e);if(!n)return;this.insert(e,n.children.length,...t)}},remove(...e){let t=s;for(let n of e)t=p(t,n,(()=>null));l(t);let n=new Set(c);for(let e of c)i.has(e)||n.delete(e);u(n)},removeSelectedItems(){this.remove(...c)},move(e,t,n){l((r=>{let o=i.get(e);if(!o)return r;r=p(r,e,(()=>null));const a={...o,parentKey:t};return p(r,t,(e=>({key:e.key,parentKey:e.parentKey,value:e.value,children:[...e.children.slice(0,n),a,...e.children.slice(n)]})))}))},update(e,t){l((n=>p(n,e,(e=>{let n={key:e.key,parentKey:e.parentKey,value:t,children:null};return n.children=d(o(t),n.key),n}))))}}}function $t(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}pt({},"useAsyncList",(()=>bt)),pt({},"useTreeData",(()=>yt));var vt={};$t(vt,"SSRProvider",(()=>St)),$t(vt,"useSSRSafeId",(()=>kt)),$t(vt,"useIsSSR",(()=>Et));const xt={prefix:String(Math.round(1e10*Math.random())),current:0},wt=g().createContext(xt);function St(e){let t=(0,f.useContext)(wt),n=(0,f.useMemo)((()=>({prefix:t===xt?"":`${t.prefix}-${++t.current}`,current:0})),[t]);return g().createElement(wt.Provider,{value:n},e.children)}let Ct=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function kt(e){let t=(0,f.useContext)(wt);return t!==xt||Ct||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),(0,f.useMemo)((()=>e||`react-aria${t.prefix}-${++t.current}`),[e])}function Et(){let e=(0,f.useContext)(wt)!==xt,[t,n]=(0,f.useState)(e);return"undefined"!=typeof window&&e&&(0,f.useLayoutEffect)((()=>{n(!1)}),[]),t}var Tt=function(e,t){return Tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Tt(e,t)};function Pt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Tt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var It,Mt,Nt,Rt=function(){return Rt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Rt.apply(this,arguments)};function Lt(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function Dt(e){return e.type===Mt.literal}function zt(e){return e.type===Mt.argument}function At(e){return e.type===Mt.number}function Kt(e){return e.type===Mt.date}function Ot(e){return e.type===Mt.time}function jt(e){return e.type===Mt.select}function _t(e){return e.type===Mt.plural}function Ft(e){return e.type===Mt.pound}function Wt(e){return e.type===Mt.tag}function Bt(e){return!(!e||"object"!=typeof e||e.type!==Nt.number)}function Vt(e){return!(!e||"object"!=typeof e||e.type!==Nt.dateTime)}Object.create,Object.create,function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(It||(It={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(Mt||(Mt={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(Nt||(Nt={}));var Ht=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ut=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Gt(e){var t={};return e.replace(Ut,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var Yt,Xt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Jt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,qt=/^(@+)?(\+|#+)?[rs]?$/g,Zt=/(\*)(0+)|(#+)(0+)|(0+)/g,Qt=/^(0+)$/;function en(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(qt,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function tn(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function nn(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Qt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function rn(e){return tn(e)||{}}function on(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=Rt(Rt(Rt({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return Rt(Rt({},e),rn(t))}),{}));continue;case"engineering":t=Rt(Rt(Rt({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return Rt(Rt({},e),rn(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Zt,(function(e,n,r,o,i,a){if(n)t.minimumIntegerDigits=r.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(Qt.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(Jt.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Jt,(function(e,n,r,o,i,a){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var i=o.options[0];"w"===i?t=Rt(Rt({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=Rt(Rt({},t),en(i)))}else if(qt.test(o.stem))t=Rt(Rt({},t),en(o.stem));else{var a=tn(o.stem);a&&(t=Rt(Rt({},t),a));var s=nn(o.stem);s&&(t=Rt(Rt({},t),s))}}return t}var an=new RegExp("^".concat(Ht.source,"*")),sn=new RegExp("".concat(Ht.source,"*$"));function ln(e,t){return{start:e,end:t}}var cn=!!String.prototype.startsWith,un=!!String.fromCodePoint,dn=!!Object.fromEntries,pn=!!String.prototype.codePointAt,hn=!!String.prototype.trimStart,fn=!!String.prototype.trimEnd,gn=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},mn=!0;try{mn="a"===(null===(Yt=Cn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Yt?void 0:Yt[0])}catch(e){mn=!1}var bn,yn=cn?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},$n=un?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,i=0;o>i;){if((n=e[i++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},vn=dn?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],i=o[0],a=o[1];t[i]=a}return t},xn=pn?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},wn=hn?function(e){return e.trimStart()}:function(e){return e.replace(an,"")},Sn=fn?function(e){return e.trimEnd()}:function(e){return e.replace(sn,"")};function Cn(e,t){return new RegExp(e,t)}if(mn){var kn=Cn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");bn=function(e,t){var n;return kn.lastIndex=t,null!==(n=kn.exec(e)[1])&&void 0!==n?n:""}}else bn=function(e,t){for(var n=[];;){var r=xn(e,t);if(void 0===r||In(r)||Mn(r))break;n.push(r),t+=r>=65536?2:1}return $n.apply(void 0,n)};var En=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(It.UNMATCHED_CLOSING_TAG,ln(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Tn(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;r.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}}else{var a=this.clonePosition();this.bump(),r.push({type:Mt.pound,location:ln(a,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Mt.literal,value:"<".concat(r,"/>"),location:ln(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Tn(this.char()))return this.error(It.INVALID_TAG,ln(a,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error(It.UNMATCHED_CLOSING_TAG,ln(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Mt.tag,value:r,children:i,location:ln(n,this.clonePosition())},err:null}:this.error(It.INVALID_TAG,ln(a,this.clonePosition())))}return this.error(It.UNCLOSED_TAG,ln(n,this.clonePosition()))}return this.error(It.INVALID_TAG,ln(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Pn(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{var i=this.tryParseUnquoted(e,t);if(i)r+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}var s=ln(n,this.clonePosition());return{val:{type:Mt.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Tn(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return $n.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),$n(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(It.EXPECT_ARGUMENT_CLOSING_BRACE,ln(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(It.EMPTY_ARGUMENT,ln(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(It.MALFORMED_ARGUMENT,ln(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(It.EXPECT_ARGUMENT_CLOSING_BRACE,ln(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Mt.argument,value:r,location:ln(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(It.EXPECT_ARGUMENT_CLOSING_BRACE,ln(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(It.MALFORMED_ARGUMENT,ln(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=bn(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:ln(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(It.EXPECT_ARGUMENT_TYPE,ln(i,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((m=this.parseSimpleArgStyleIfPossible()).err)return m;if(0===(p=Sn(m.val)).length)return this.error(It.EXPECT_ARGUMENT_STYLE,ln(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:ln(c,this.clonePosition())}}if((b=this.tryParseArgumentClose(r)).err)return b;var u=ln(r,this.clonePosition());if(l&&yn(null==l?void 0:l.style,"::",0)){var d=wn(l.style.slice(2));if("number"===a)return(m=this.parseNumberSkeletonFromString(d,l.styleLocation)).err?m:{val:{type:Mt.number,value:n,location:u,style:m.val},err:null};if(0===d.length)return this.error(It.EXPECT_DATE_TIME_SKELETON,u);var p={type:Nt.dateTime,pattern:d,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Gt(d):{}};return{val:{type:"date"===a?Mt.date:Mt.time,value:n,location:u,style:p},err:null}}return{val:{type:"number"===a?Mt.number:"date"===a?Mt.date:Mt.time,value:n,location:u,style:null!==(o=null==l?void 0:l.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var h=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(It.EXPECT_SELECT_ARGUMENT_OPTIONS,ln(h,Rt({},h)));this.bumpSpace();var f=this.parseIdentifierIfPossible(),g=0;if("select"!==a&&"offset"===f.value){if(!this.bumpIf(":"))return this.error(It.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ln(this.clonePosition(),this.clonePosition()));var m;if(this.bumpSpace(),(m=this.tryParseDecimalInteger(It.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,It.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return m;this.bumpSpace(),f=this.parseIdentifierIfPossible(),g=m.val}var b,y=this.tryParsePluralOrSelectOptions(e,a,t,f);if(y.err)return y;if((b=this.tryParseArgumentClose(r)).err)return b;var $=ln(r,this.clonePosition());return"select"===a?{val:{type:Mt.select,value:n,options:vn(y.val),location:$},err:null}:{val:{type:Mt.plural,value:n,options:vn(y.val),offset:g,pluralType:"plural"===a?"cardinal":"ordinal",location:$},err:null};default:return this.error(It.INVALID_ARGUMENT_TYPE,ln(i,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(It.EXPECT_ARGUMENT_CLOSING_BRACE,ln(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(It.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ln(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Xt).filter((function(e){return e.length>0})),n=[],r=0,o=t;r<o.length;r++){var i=o[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var a=i[0],s=i.slice(1),l=0,c=s;l<c.length;l++)if(0===c[l].length)throw new Error("Invalid number skeleton");n.push({stem:a,options:s})}return n}(e)}catch(e){return this.error(It.INVALID_NUMBER_SKELETON,t)}return{val:{type:Nt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?on(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o,i=!1,a=[],s=new Set,l=r.value,c=r.location;;){if(0===l.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(It.EXPECT_PLURAL_ARGUMENT_SELECTOR,It.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=ln(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}if(s.has(l))return this.error("select"===t?It.DUPLICATE_SELECT_ARGUMENT_SELECTOR:It.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(i=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?It.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:It.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ln(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(e+1,t,n);if(h.err)return h;var f=this.tryParseArgumentClose(p);if(f.err)return f;a.push([l,{value:h.val,location:ln(p,this.clonePosition())}]),s.add(l),this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,c=o.location}return 0===a.length?this.error("select"===t?It.EXPECT_SELECT_ARGUMENT_SELECTOR:It.EXPECT_PLURAL_ARGUMENT_SELECTOR,ln(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(It.MISSING_OTHER_CLAUSE,ln(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=ln(r,this.clonePosition());return o?gn(i*=n)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=xn(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(yn(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&In(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function Tn(e){return e>=97&&e<=122||e>=65&&e<=90}function Pn(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function In(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Mn(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Nn(e){e.forEach((function(e){if(delete e.location,jt(e)||_t(e))for(var t in e.options)delete e.options[t].location,Nn(e.options[t].value);else At(e)&&Bt(e.style)||(Kt(e)||Ot(e))&&Vt(e.style)?delete e.style.location:Wt(e)&&Nn(e.children)}))}function Rn(e,t){void 0===t&&(t={}),t=Rt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new En(e,t).parse();if(n.err){var r=SyntaxError(It[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||Nn(n.val),n.val}function Ln(e,t){var n=t&&t.cache?t.cache:Fn,r=t&&t.serializer?t.serializer:On;return(t&&t.strategy?t.strategy:Kn)(e,{cache:n,serializer:r})}function Dn(e,t,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),a=t.get(i);return void 0===a&&(a=e.call(this,r),t.set(i,a)),a}function zn(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function An(e,t,n,r,o){return n.bind(t,e,r,o)}function Kn(e,t){return An(e,this,1===e.length?Dn:zn,t.cache.create(),t.serializer)}var On=function(){return JSON.stringify(arguments)};function jn(){this.cache=Object.create(null)}jn.prototype.get=function(e){return this.cache[e]},jn.prototype.set=function(e,t){this.cache[e]=t};var _n,Fn={create:function(){return new jn}},Wn={variadic:function(e,t){return An(e,this,zn,t.cache.create(),t.serializer)},monadic:function(e,t){return An(e,this,Dn,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(_n||(_n={}));var Bn,Vn=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.code=n,o.originalMessage=r,o}return Pt(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Hn=function(e){function t(t,n,r,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),_n.INVALID_VALUE,o)||this}return Pt(t,e),t}(Vn),Un=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),_n.INVALID_VALUE,r)||this}return Pt(t,e),t}(Vn),Gn=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),_n.MISSING_VALUE,n)||this}return Pt(t,e),t}(Vn);function Yn(e){return"function"==typeof e}function Xn(e,t,n,r,o,i,a){if(1===e.length&&Dt(e[0]))return[{type:Bn.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Dt(u))s.push({type:Bn.literal,value:u.value});else if(Ft(u))"number"==typeof i&&s.push({type:Bn.literal,value:n.getNumberFormat(t).format(i)});else{var d=u.value;if(!o||!(d in o))throw new Gn(d,a);var p=o[d];if(zt(u))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),s.push({type:"string"==typeof p?Bn.literal:Bn.object,value:p});else if(Kt(u)){var h="string"==typeof u.style?r.date[u.style]:Vt(u.style)?u.style.parsedOptions:void 0;s.push({type:Bn.literal,value:n.getDateTimeFormat(t,h).format(p)})}else if(Ot(u))h="string"==typeof u.style?r.time[u.style]:Vt(u.style)?u.style.parsedOptions:void 0,s.push({type:Bn.literal,value:n.getDateTimeFormat(t,h).format(p)});else if(At(u))(h="string"==typeof u.style?r.number[u.style]:Bt(u.style)?u.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),s.push({type:Bn.literal,value:n.getNumberFormat(t,h).format(p)});else{if(Wt(u)){var f=u.children,g=u.value,m=o[g];if(!Yn(m))throw new Un(g,"function",a);var b=m(Xn(f,t,n,r,o,i).map((function(e){return e.value})));Array.isArray(b)||(b=[b]),s.push.apply(s,b.map((function(e){return{type:"string"==typeof e?Bn.literal:Bn.object,value:e}})))}if(jt(u)){if(!(y=u.options[p]||u.options.other))throw new Hn(u.value,p,Object.keys(u.options),a);s.push.apply(s,Xn(y.value,t,n,r,o))}else if(_t(u)){var y;if(!(y=u.options["=".concat(p)])){if(!Intl.PluralRules)throw new Vn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',_n.MISSING_INTL_API,a);var $=n.getPluralRules(t,{type:u.pluralType}).select(p-(u.offset||0));y=u.options[$]||u.options.other}if(!y)throw new Hn(u.value,p,Object.keys(u.options),a);s.push.apply(s,Xn(y.value,t,n,r,o,p-(u.offset||0)))}}}}return(v=s).length<2?v:v.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===Bn.literal&&t.type===Bn.literal?n.value+=t.value:e.push(t),e}),[]);var v}function Jn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Bn||(Bn={}));var qn=function(){function e(t,n,r,o){var i,a,s,l=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=l.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===Bn.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return Xn(l.ast,l.locales,l.formatters,l.formats,e,void 0,l.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(l.locales)[0]}},this.getAst=function(){return l.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==o?void 0:o.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(a=e.formats,(s=r)?Object.keys(a).reduce((function(e,t){var n,r;return e[t]=(n=a[t],(r=s[t])?Rt(Rt(Rt({},n||{}),r||{}),Object.keys(n).reduce((function(e,t){return e[t]=Rt(Rt({},n[t]),r[t]||{}),e}),{})):n),e}),Rt({},a)):a),this.locales=n,this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ln((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Lt([void 0],t,!1)))}),{cache:Jn(i.number),strategy:Wn.variadic}),getDateTimeFormat:Ln((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Lt([void 0],t,!1)))}),{cache:Jn(i.dateTime),strategy:Wn.variadic}),getPluralRules:Ln((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Lt([void 0],t,!1)))}),{cache:Jn(i.pluralRules),strategy:Wn.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.__parse=Rn,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const Zn=qn;function Qn(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}Qn({},"MessageDictionary",(()=>er));class er{getStringForLocale(e,t){let n=this.messages[t];n||(n=function(e,t,n="en-US"){if(t[e])return t[e];let r=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);for(let e in t)if(e.startsWith(r+"-"))return t[e];return t[n]}(t,this.messages,this.defaultLocale),this.messages[t]=n);let r=n[e];if(!r)throw new Error(`Could not find intl message ${e} in ${t} locale`);return r}constructor(e,t="en-US"){this.messages={...e},this.defaultLocale=t}}Qn({},"MessageFormatter",(()=>tr));class tr{format(e,t){let n,r=this.cache[e];if(!r){let t=this.messages.getStringForLocale(e,this.locale);if(!t)throw new Error(`Could not find intl message ${e} in ${this.locale} locale`);r=new Zn(t,this.locale),this.cache[e]=r}return t&&(n=Object.keys(t).reduce(((e,n)=>(e[n]=null!=t[n]&&t[n],e)),{})),r.format(n)}constructor(e,t){this.locale=e,this.messages=t,this.cache={}}}function nr(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var rr={};nr(rr,"CalendarDate",(()=>qo)),nr(rr,"Time",(()=>Qo)),nr(rr,"CalendarDateTime",(()=>ti)),nr(rr,"ZonedDateTime",(()=>ri));var or={};nr(or,"epochFromDate",(()=>Vr)),nr(or,"toCalendar",(()=>lo)),nr(or,"getTimeZoneOffset",(()=>Ur)),nr(or,"possibleAbsolutes",(()=>Jr)),nr(or,"toAbsolute",(()=>Zr)),nr(or,"toCalendarDateTime",(()=>ao)),nr(or,"toDate",(()=>Qr)),nr(or,"fromAbsolute",(()=>eo)),nr(or,"fromDate",(()=>to)),nr(or,"fromDateToLocal",(()=>no)),nr(or,"toCalendarDate",(()=>ro)),nr(or,"toDateFields",(()=>oo)),nr(or,"toTimeFields",(()=>io)),nr(or,"toTime",(()=>so)),nr(or,"toZoned",(()=>co)),nr(or,"toTimeZone",(()=>po)),nr(or,"zonedToDate",(()=>uo)),nr(or,"toLocalTimeZone",(()=>ho));var ir={};nr(ir,"isSameDay",(()=>sr)),nr(ir,"isSameMonth",(()=>lr)),nr(ir,"startOfMonth",(()=>Sr)),nr(ir,"isSameYear",(()=>cr)),nr(ir,"startOfYear",(()=>kr)),nr(ir,"isEqualDay",(()=>ur)),nr(ir,"isEqualMonth",(()=>dr)),nr(ir,"isEqualYear",(()=>pr)),nr(ir,"isToday",(()=>hr)),nr(ir,"today",(()=>mr)),nr(ir,"getDayOfWeek",(()=>fr)),nr(ir,"now",(()=>gr)),nr(ir,"compareDate",(()=>br)),nr(ir,"compareTime",(()=>yr)),nr(ir,"getHoursInDay",(()=>vr)),nr(ir,"getLocalTimeZone",(()=>wr)),nr(ir,"endOfMonth",(()=>Cr)),nr(ir,"endOfYear",(()=>Er)),nr(ir,"getMinimumMonthInYear",(()=>Tr)),nr(ir,"getMinimumDayInMonth",(()=>Pr)),nr(ir,"startOfWeek",(()=>Ir)),nr(ir,"endOfWeek",(()=>Mr)),nr(ir,"getWeeksInMonth",(()=>Lr)),nr(ir,"minDate",(()=>Dr)),nr(ir,"maxDate",(()=>zr)),nr(ir,"isWeekend",(()=>Kr)),nr(ir,"isWeekday",(()=>Or));const ar={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AT:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function sr(e,t){return t=lo(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function lr(e,t){return t=lo(t,e.calendar),e=Sr(e),t=Sr(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function cr(e,t){return t=lo(t,e.calendar),e=kr(e),t=kr(t),e.era===t.era&&e.year===t.year}function ur(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function dr(e,t){return e=Sr(e),t=Sr(t),e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month}function pr(e,t){return e=kr(e),t=kr(t),e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year}function hr(e,t){return sr(e,mr(t))}function fr(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-function(e){let t=Rr(e);return ar[t]||0}(t))%7;return r<0&&(r+=7),r}function gr(e){return eo(Date.now(),e)}function mr(e){return ro(gr(e))}function br(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function yr(e,t){return $r(e)-$r(t)}function $r(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}function vr(e,t){let n=Zr(e,t);return(Zr(e.add({days:1}),t)-n)/36e5}let xr=null;function wr(){return null==xr&&(xr=(new Intl.DateTimeFormat).resolvedOptions().timeZone),xr}function Sr(e){return e.subtract({days:e.day-1})}function Cr(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function kr(e){return Sr(e.subtract({months:e.month-1}))}function Er(e){return Cr(e.add({months:e.calendar.getMonthsInYear(e)-e.month}))}function Tr(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function Pr(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function Ir(e,t){let n=fr(e,t);return e.subtract({days:n})}function Mr(e,t){return Ir(e,t).add({days:6})}const Nr=new Map;function Rr(e){if(Intl.Locale){let t=Nr.get(e);return t||(t=new Intl.Locale(e).maximize().region,Nr.set(e,t)),t}let t=e.split("-")[1];return"u"===t?null:t}function Lr(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((fr(Sr(e),t)+n)/7)}function Dr(e,t){return e.compare(t)<=0?e:t}function zr(e,t){return e.compare(t)>=0?e:t}const Ar={AF:[4,5],AE:[5,6],BH:[5,6],DZ:[5,6],EG:[5,6],IL:[5,6],IQ:[5,6],IR:[5,5],JO:[5,6],KW:[5,6],LY:[5,6],OM:[5,6],QA:[5,6],SA:[5,6],SD:[5,6],SY:[5,6],YE:[5,6]};function Kr(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1)%7;r<0&&(r+=7);let o=Rr(t),[i,a]=Ar[o]||[6,0];return r===i||r===a}function Or(e,t){return!Kr(e,t)}function jr(e,t){return e-t*Math.floor(e/t)}function _r(e,t,n){let r=e-1,o=-2;return t<=2?o=0:Fr(e)&&(o=-1),1721425+365*r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400)+Math.floor((367*t-362)/12+o+n)}function Fr(e){return e%4==0&&(e%100!=0||e%400==0)}const Wr={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Br{fromJulianDay(e){let t=e,n=t-1721426,r=Math.floor(n/146097),o=jr(n,146097),i=Math.floor(o/36524),a=jr(o,36524),s=Math.floor(a/1461),l=jr(a,1461),c=Math.floor(l/365),u=400*r+100*i+4*s+c+(4!==i&&4!==c?1:0),d=t-_r(u,1,1),p=2;t<_r(u,3,1)?p=0:Fr(u)&&(p=1);let h=Math.floor((12*(d+p)+373)/367),f=t-_r(u,h,1)+1;return new qo(this,u,h,f)}toJulianDay(e){return _r(e.year,e.month,e.day)}getDaysInMonth(e){return Wr[Fr(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return Fr(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}getYearsToAdd(e,t){return"BC"===e.era?-t:t}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}function Vr(e){return Hr((e=lo(e,new Br)).year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Hr(e,t,n,r,o,i,a){let s=new Date;return s.setUTCHours(r,o,i,a),s.setUTCFullYear(e,t-1,n),s.getTime()}function Ur(e,t){if(t===wr())return-6e4*new Date(e).getTimezoneOffset();let{year:n,month:r,day:o,hour:i,minute:a,second:s}=Yr(e,t);return Hr(n,r,o,i,a,s,0)-1e3*Math.floor(e/1e3)}const Gr=new Map;function Yr(e,t){let n=Gr.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Gr.set(t,n));let r=n.formatToParts(new Date(e)),o={};for(let e of r)"literal"!==e.type&&(o[e.type]=e.value);return{year:"BC"===o.era?1-o.year:+o.year,month:+o.month,day:+o.day,hour:"24"===o.hour?0:+o.hour,minute:+o.minute,second:+o.second}}const Xr=864e5;function Jr(e,t){let n=Vr(e);return qr(e,t,n-Ur(n-Xr,t),n-Ur(n+Xr,t))}function qr(e,t,n,r){return(n===r?[n]:[n,r]).filter((n=>function(e,t,n){let r=Yr(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}(e,t,n)))}function Zr(e,t,n="compatible"){let r=ao(e);if(t===wr()&&"compatible"===n){r=lo(r,new Br);let e=new Date;return e.setFullYear(r.year,r.month-1,r.day),e.setHours(r.hour,r.minute,r.second,r.millisecond),e.getTime()}let o=Vr(r),i=Ur(o-Xr,t),a=Ur(o+Xr,t),s=qr(r,t,o-i,o-a);if(1===s.length)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(o-i,o-a);case"compatible":case"later":return Math.max(o-i,o-a);case"reject":throw new RangeError("No such absolute time found")}}function Qr(e,t,n="compatible"){return new Date(Zr(e,t,n))}function eo(e,t){let n=Ur(e,t),r=new Date(e+n),o=r.getUTCFullYear(),i=r.getUTCMonth()+1,a=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),c=r.getUTCSeconds(),u=r.getUTCMilliseconds();return new ri(o,i,a,t,n,s,l,c,u)}function to(e,t){return eo(e.getTime(),t)}function no(e){return to(e,wr())}function ro(e){return new qo(e.calendar,e.era,e.year,e.month,e.day)}function oo(e){return{era:e.era,year:e.year,month:e.month,day:e.day}}function io(e){return{hour:e.hour,minute:e.minute,second:e.second,millisecond:e.millisecond}}function ao(e,t){let n=0,r=0,o=0,i=0;if("timeZone"in e)({hour:n,minute:r,second:o,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:o,millisecond:i}=t),new ti(e.calendar,e.era,e.year,e.month,e.day,n,r,o,i)}function so(e){return new Qo(e.hour,e.minute,e.second,e.millisecond)}function lo(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,r}function co(e,t,n){return e instanceof ri?e.timeZone===t?e:po(e,t):eo(Zr(e,t,n),t)}function uo(e){let t=Vr(e)-e.offset;return new Date(t)}function po(e,t){return lo(eo(Vr(e)-e.offset,t),e.calendar)}function ho(e){return po(e,wr())}const fo=36e5;function go(e,t){let n=e.copy(),r="hour"in e?Eo(e,t):0;return mo(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,bo(n),yo(n),n.day+=7*(t.weeks||0),n.day+=t.days||0,n.day+=r,function(e){for(;e.day<1;)e.month--,bo(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,bo(e)}(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n}function mo(e,t){e.calendar.getYearsToAdd&&(t=e.calendar.getYearsToAdd(e,t)),e.year+=t}function bo(e){for(;e.month<1;)mo(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,mo(e,1)}function yo(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function $o(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),yo(e)}function vo(e){let t={};for(let n in e)"number"==typeof e[n]&&(t[n]=-e[n]);return t}function xo(e,t){return go(e,vo(t))}function wo(e,t){let n=e.copy();return null!=t.era&&(n.era=t.era),null!=t.year&&(n.year=t.year),null!=t.month&&(n.month=t.month),null!=t.day&&(n.day=t.day),$o(n),n}function So(e,t){let n=e.copy();return null!=t.hour&&(n.hour=t.hour),null!=t.minute&&(n.minute=t.minute),null!=t.second&&(n.second=t.second),null!=t.millisecond&&(n.millisecond=t.millisecond),Co(n),n}function Co(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function ko(e,t){let n=e%t;return n<0&&(n+=t),n}function Eo(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,function(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=ko(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=ko(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=ko(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=ko(e.hour,24),t}(e)}function To(e,t){let n=e.copy();return Eo(n,t),n}function Po(e,t,n,r){let o=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),i=t.indexOf(e.era);if(i<0)throw new Error("Invalid era: "+e.era);i=Mo(i,n,0,t.length-1,null==r?void 0:r.round),o.era=t[i],$o(o);break}case"year":o.calendar.getYearsToAdd&&(n=o.calendar.getYearsToAdd(o,n)),o.year=Mo(e.year,n,-1/0,9999,null==r?void 0:r.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=Mo(e.month,n,1,e.calendar.getMonthsInYear(e),null==r?void 0:r.round);break;case"day":o.day=Mo(e.day,n,1,e.calendar.getDaysInMonth(e),null==r?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),$o(o),o}function Io(e,t,n,r){let o=e.copy();switch(t){case"hour":{let t=e.hour,i=0,a=23;if(12===(null==r?void 0:r.hourCycle)){let e=t>=12;i=e?12:0,a=e?23:11}o.hour=Mo(t,n,i,a,null==r?void 0:r.round);break}case"minute":o.minute=Mo(e.minute,n,0,59,null==r?void 0:r.round);break;case"second":o.second=Mo(e.second,n,0,59,null==r?void 0:r.round);break;case"millisecond":o.millisecond=Mo(e.millisecond,n,0,999,null==r?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return o}function Mo(e,t,n,r,o=!1){if(o){(e+=Math.sign(t))<n&&(e=r);let o=Math.abs(t);(e=t>0?Math.ceil(e/o)*o:Math.floor(e/o)*o)>r&&(e=n)}else(e+=t)<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function No(e,t){let n;return n=null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.days&&0!==t.days?Zr(go(ao(e),{years:t.years,months:t.months,days:t.days}),e.timeZone):Vr(e)-e.offset,n+=t.milliseconds||0,n+=1e3*(t.seconds||0),n+=6e4*(t.minutes||0),n+=36e5*(t.hours||0),lo(eo(n,e.timeZone),e.calendar)}var Ro={};nr(Ro,"parseTime",(()=>Oo)),nr(Ro,"parseDate",(()=>jo)),nr(Ro,"parseDateTime",(()=>_o)),nr(Ro,"parseZonedDateTime",(()=>Fo)),nr(Ro,"dateTimeToString",(()=>Go)),nr(Ro,"parseAbsolute",(()=>Wo)),nr(Ro,"parseAbsoluteToLocal",(()=>Bo)),nr(Ro,"timeToString",(()=>Ho)),nr(Ro,"dateToString",(()=>Uo)),nr(Ro,"zonedDateTimeToString",(()=>Xo));const Lo=/^(\d{2})(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,Do=/^(\d{4})-(\d{2})-(\d{2})$/,zo=/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,Ao=/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:([+-]\d{2})(?::(\d{2}))?)?\[(.*?)\]$/,Ko=/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::(\d{2}))?)|Z)$/;function Oo(e){let t=e.match(Lo);if(!t)throw new Error("Invalid ISO 8601 time string: "+e);return new Qo(Vo(t[1],0,23),t[2]?Vo(t[2],0,59):0,t[3]?Vo(t[3],0,59):0,t[4]?1e3*Vo(t[4],0,1/0):0)}function jo(e){let t=e.match(Do);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new qo(Vo(t[1],0,9999),Vo(t[2],1,12),1);return n.day=Vo(t[3],0,n.calendar.getDaysInMonth(n)),n}function _o(e){let t=e.match(zo);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=new ti(Vo(t[1],1,9999),Vo(t[2],1,12),1,t[4]?Vo(t[4],0,23):0,t[5]?Vo(t[5],0,59):0,t[6]?Vo(t[6],0,59):0,t[7]?1e3*Vo(t[7],0,1/0):0);return n.day=Vo(t[3],0,n.calendar.getDaysInMonth(n)),n}function Fo(e,t){let n=e.match(Ao);if(!n)throw new Error("Invalid ISO 8601 date time string: "+e);let r=new ri(Vo(n[1],1,9999),Vo(n[2],1,12),1,n[10],0,n[4]?Vo(n[4],0,23):0,n[5]?Vo(n[5],0,59):0,n[6]?Vo(n[6],0,59):0,n[7]?1e3*Vo(n[7],0,1/0):0);r.day=Vo(n[3],0,r.calendar.getDaysInMonth(r));let o,i=ao(r);var a;if(n[8]){if(r.offset=36e5*Vo(n[8],-23,23)+6e4*Vo(null!==(a=n[9])&&void 0!==a?a:"0",0,59),o=Vr(r)-r.offset,!Jr(i,r.timeZone).includes(o))throw new Error(`Offset ${Yo(r.offset)} is invalid for ${Go(r)} in ${r.timeZone}`)}else o=Zr(ao(i),r.timeZone,t);return eo(o,r.timeZone)}function Wo(e,t){let n=e.match(Ko);if(!n)throw new Error("Invalid ISO 8601 date time string: "+e);let r=new ri(Vo(n[1],1,9999),Vo(n[2],1,12),1,t,0,n[4]?Vo(n[4],0,23):0,n[5]?Vo(n[5],0,59):0,n[6]?Vo(n[6],0,59):0,n[7]?1e3*Vo(n[7],0,1/0):0);var o;return r.day=Vo(n[3],0,r.calendar.getDaysInMonth(r)),n[8]&&(r.offset=36e5*Vo(n[8],-23,23)+6e4*Vo(null!==(o=n[9])&&void 0!==o?o:"0",0,59)),po(r,t)}function Bo(e){return Wo(e,wr())}function Vo(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function Ho(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function Uo(e){let t=lo(e,new Br);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Go(e){return`${Uo(e)}T${Ho(e)}`}function Yo(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function Xo(e){return`${Go(e)}${Yo(e.offset)}[${e.timeZone}]`}function Jo(e){let t,n="object"==typeof e[0]?e.shift():new Br;if("string"==typeof e[0])t=e.shift();else{let e=n.getEras();t=e[e.length-1]}return[n,t,e.shift(),e.shift(),e.shift()]}class qo{copy(){return this.era?new qo(this.calendar,this.era,this.year,this.month,this.day):new qo(this.calendar,this.year,this.month,this.day)}add(e){return go(this,e)}subtract(e){return xo(this,e)}set(e){return wo(this,e)}cycle(e,t,n){return Po(this,e,t,n)}toDate(e){return Qr(this,e)}toString(){return Uo(this)}compare(e){return br(this,e)}constructor(...e){Zo.set(this,{writable:!0,value:void 0});let[t,n,r,o,i]=Jo(e);this.calendar=t,this.era=n,this.year=r,this.month=o,this.day=i,$o(this)}}var Zo=new WeakMap;class Qo{copy(){return new Qo(this.hour,this.minute,this.second,this.millisecond)}add(e){return To(this,e)}subtract(e){return function(e,t){return To(e,vo(t))}(this,e)}set(e){return So(this,e)}cycle(e,t,n){return Io(this,e,t,n)}toString(){return Ho(this)}compare(e){return yr(this,e)}constructor(e=0,t=0,n=0,r=0){ei.set(this,{writable:!0,value:void 0}),this.hour=e,this.minute=t,this.second=n,this.millisecond=r,Co(this)}}var ei=new WeakMap;class ti{copy(){return this.era?new ti(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new ti(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return go(this,e)}subtract(e){return xo(this,e)}set(e){return wo(So(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return Po(this,e,t,n);default:return Io(this,e,t,n)}}toDate(e){return Qr(this,e)}toString(){return Go(this)}compare(e){let t=br(this,e);return 0===t?yr(this,ao(e)):t}constructor(...e){ni.set(this,{writable:!0,value:void 0});let[t,n,r,o,i]=Jo(e);this.calendar=t,this.era=n,this.year=r,this.month=o,this.day=i,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,$o(this)}}var ni=new WeakMap;class ri{copy(){return this.era?new ri(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new ri(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return No(this,e)}subtract(e){return function(e,t){return No(e,vo(t))}(this,e)}set(e,t){return function(e,t,n){let r=ao(e),o=So(wo(r,t),t);return 0===o.compare(r)?e:lo(eo(Zr(o,e.timeZone,n),e.timeZone),e.calendar)}(this,e,t)}cycle(e,t,n){return function(e,t,n,r){switch(t){case"hour":{let t=0,o=23;if(12===(null==r?void 0:r.hourCycle)){let n=e.hour>=12;t=n?12:0,o=n?23:11}let i=ao(e),a=lo(So(i,{hour:t}),new Br),s=[Zr(a,e.timeZone,"earlier"),Zr(a,e.timeZone,"later")].filter((t=>eo(t,e.timeZone).day===a.day))[0],l=lo(So(i,{hour:o}),new Br),c=[Zr(l,e.timeZone,"earlier"),Zr(l,e.timeZone,"later")].filter((t=>eo(t,e.timeZone).day===l.day)).pop(),u=Vr(e)-e.offset,d=Math.floor(u/fo),p=u%fo;return u=Mo(d,n,Math.floor(s/fo),Math.floor(c/fo),null==r?void 0:r.round)*fo+p,lo(eo(u,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Io(e,t,n,r);case"era":case"year":case"month":case"day":return lo(eo(Zr(Po(ao(e),t,n,r),e.timeZone),e.timeZone),e.calendar);default:throw new Error("Unsupported field "+t)}}(this,e,t,n)}toDate(){return uo(this)}toString(){return Xo(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-co(e,this.timeZone).toDate().getTime()}constructor(...e){oi.set(this,{writable:!0,value:void 0});let[t,n,r,o,i]=Jo(e),a=e.shift(),s=e.shift();this.calendar=t,this.era=n,this.year=r,this.month=o,this.day=i,this.timeZone=a,this.offset=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,$o(this)}}var oi=new WeakMap;nr({},"DateFormatter",(()=>ai));let ii=new Map;class ai{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let n=this.formatter.formatToParts(e),r=this.formatter.formatToParts(t);return[...n.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...r.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return null==ui&&(ui="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle),ui&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let n=li(e+=(e.includes("-u-")?"":"-u")+"-nu-latn",{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find((e=>"hour"===e.type)).value,10),o=parseInt(n.formatToParts(new Date(2020,2,3,23)).find((e=>"hour"===e.type)).value,10);if(0===r&&23===o)return"h23";if(24===r&&23===o)return"h24";if(0===r&&11===o)return"h11";if(12===r&&11===o)return"h12";throw new Error("Unexpected hour cycle result")}(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),e}constructor(e,t={}){this.formatter=li(e,t),this.options=t}}const si={true:{ja:"h11"},false:{}};function li(e,t={}){if("boolean"==typeof t.hour12&&(null==ci&&(ci="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))),ci)){t={...t};let n=si[String(t.hour12)][e.split("-")[0]],r=t.hour12?"h12":"h23";t.hourCycle=null!=n?n:r,delete t.hour12}let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(ii.has(n))return ii.get(n);let r=new Intl.DateTimeFormat(e,t);return ii.set(n,r),r}let ci=null,ui=null,di=new Map,pi=!1;try{pi="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch(v){}let hi=!1;try{hi="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch(e){}const fi={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class gi{format(e){let t="";if(t=pi||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,n){if("auto"===t)return e.format(n);if("never"===t)return e.format(Math.abs(n));{let r=!1;if("always"===t?r=n>0||Object.is(n,0):"exceptZero"===t&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let t=e.format(-n),r=e.format(n),o=t.replace(r,"").replace(/\u200e|\u061C/,"");return 1!==[...o].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(r,"!!!").replace(o,"+").replace("!!!",r)}return e.format(n)}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!hi){var n;let{unit:e,unitDisplay:r="short",locale:o}=this.resolvedOptions(),i=null===(n=fi[e])||void 0===n?void 0:n[r];t+=i[o]||i.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return pi||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),hi||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:n}=t;if(n&&-1===e.indexOf("-u-nu-")&&(e=`${e}-u-nu-${n}`),"unit"===t.style&&!hi){var r;let{unit:e,unitDisplay:n="short"}=t;if(!e)throw new Error('unit option must be provided with style: "unit"');if(!(null===(r=fi[e])||void 0===r?void 0:r[n]))throw new Error(`Unsupported unit ${e} with unitDisplay = ${n}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(di.has(o))return di.get(o);let i=new Intl.NumberFormat(e,t);return di.set(o,i),i}(e,t),this.options=t}}function mi(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}new Map,new Set(["decimal","fraction","integer","minusSign","plusSign","group"]);var bi={};mi(bi,"I18nProvider",(()=>Ti)),mi(bi,"useLocale",(()=>Pi));const yi=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),$i=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function vi(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return yi.has(t)}let t=e.split("-")[0];return $i.has(t)}function xi(){let e="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:vi(e)?"rtl":"ltr"}}let wi=xi(),Si=new Set;function Ci(){wi=xi();for(let e of Si)e(wi)}function ki(){let e=Et(),[t,n]=(0,f.useState)(wi);return(0,f.useEffect)((()=>(0===Si.size&&window.addEventListener("languagechange",Ci),Si.add(n),()=>{Si.delete(n),0===Si.size&&window.removeEventListener("languagechange",Ci)})),[]),e?{locale:"en-US",direction:"ltr"}:t}const Ei=g().createContext(null);function Ti(e){let{locale:t,children:n}=e,r=ki(),o=t?{locale:t,direction:vi(t)?"rtl":"ltr"}:r;return g().createElement(Ei.Provider,{value:o},n)}function Pi(){let e=ki();return(0,f.useContext)(Ei)||e}mi({},"useMessageFormatter",(()=>Mi));const Ii=new WeakMap;function Mi(e){let{locale:t}=Pi(),n=(0,f.useMemo)((()=>function(e){let t=Ii.get(e);return t||(t=new er(e),Ii.set(e,t)),t}(e)),[e]),r=(0,f.useMemo)((()=>new tr(t,n)),[t,n]);return(0,f.useCallback)(((e,t)=>r.format(e,t)),[r])}function Ni(e){let t=(0,f.useRef)(null);e&&t.current&&function(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0}(e,t.current)&&(e=t.current),t.current=e;let{locale:n}=Pi();return(0,f.useMemo)((()=>new ai(n,e)),[n,e])}function Ri(e={}){let{locale:t}=Pi();return(0,f.useMemo)((()=>new gi(t,e)),[t,e])}mi({},"useDateFormatter",(()=>Ni)),mi({},"useNumberFormatter",(()=>Ri)),mi({},"useCollator",(()=>Di));let Li=new Map;function Di(e){let{locale:t}=Pi(),n=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(Li.has(n))return Li.get(n);let r=new Intl.Collator(t,e);return Li.set(n,r),r}function zi(e){let t=Di({usage:"search",...e});return{startsWith:(e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(0,n.length),n)),endsWith:(e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(-n.length),n)),contains(e,n){if(0===n.length)return!0;e=e.normalize("NFC");let r=0,o=(n=n.normalize("NFC")).length;for(;r+o<=e.length;r++){let i=e.slice(r,r+o);if(0===t.compare(n,i))return!0}return!1}}}function Ai(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}mi({},"useFilter",(()=>zi));var Ki={};Ai(Ki,"SSRProvider",(()=>_i)),Ai(Ki,"useSSRSafeId",(()=>Wi)),Ai(Ki,"useIsSSR",(()=>Bi));const Oi={prefix:String(Math.round(1e10*Math.random())),current:0},ji=g().createContext(Oi);function _i(e){let t=(0,f.useContext)(ji),n=(0,f.useMemo)((()=>({prefix:t===Oi?"":`${t.prefix}-${++t.current}`,current:0})),[t]);return g().createElement(ji.Provider,{value:n},e.children)}let Fi=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function Wi(e){let t=(0,f.useContext)(ji);return t!==Oi||Fi||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),(0,f.useMemo)((()=>e||`react-aria${t.prefix}-${++t.current}`),[e])}function Bi(){let e=(0,f.useContext)(ji)!==Oi,[t,n]=(0,f.useState)(e);return"undefined"!=typeof window&&e&&(0,f.useLayoutEffect)((()=>{n(!1)}),[]),t}const Vi=(e,t)=>(e.defaultProps=t,e);function Hi(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Hi(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ui(...e){for(var t,n,r=0,o="";r<e.length;)(t=e[r++])&&(n=Hi(t))&&(o&&(o+=" "),o+=n);return o}const Gi=(e,t)=>{if(!document||!e)return"";let n=getComputedStyle(document.documentElement);const r=`--${be.prefix}-${e}-${t}`,o=n.getPropertyValue(r);return o&&o.includes("var")&&Gi(e,o),o},Yi=e=>{var t;const n=(null==e||null==(t=e.getAttribute("style"))?void 0:t.split(";").map((e=>e.trim())).filter((e=>e.includes("color-scheme"))))||[],r=n.length>0?n[0].replace("color-scheme: ","").replace(";",""):"";return(null==e?void 0:e.getAttribute("data-theme"))||r},Xi=e=>"string"==typeof e&&null!=e&&e.includes("-theme")?null==e?void 0:e.replace("-theme",""):e,Ji=e=>{var t,n;if(!document)return;const r=document.documentElement,o=(null==r||null==(t=r.getAttribute("class"))?void 0:t.split(" ").filter((e=>!e.includes("theme")&&!e.includes("light")&&!e.includes("dark"))))||[],i=(null==r||null==(n=r.getAttribute("style"))?void 0:n.split(";").filter((e=>!e.includes("color-scheme")&&e.length)).map((e=>`${e};`)))||[];null==r||r.setAttribute("class",Ui(o,`${Xi(e)}-theme`)),null==r||r.setAttribute("style",Ui(i,`color-scheme: ${e};`))},qi=Vi((({theme:e,disableBaseline:t,children:n})=>{const{isBrowser:r}=Ke(),[o,i]=(0,f.useState)(De.type),a=e=>{i((t=>t!==e?e:t))},s=e=>{const t=Yi(e);t&&a(t)},l=(0,f.useMemo)((()=>{const e=r?(()=>{const e=[...Object.keys(be.theme.colors),...Object.keys(ye.colors)],t=Object.keys(ye.shadows);return{colors:e.reduce(((e,t)=>{const n=Gi("colors",t);return n&&(e[t]={prefix:be.prefix,scale:"colors",token:t,value:n}),e}),{}),shadows:t.reduce(((e,t)=>{const n=Gi("shadows",t);return n&&(e[t]={prefix:be.prefix,scale:"shadows",token:t,value:n}),e}),{})}})():{},t=ve(tt(n=De.theme)?n instanceof Array?[...n]:{...n}:n,e);var n;const i=Xi(o);return{theme:t,type:i,isDark:"dark"===i}}),[o,r]);return(0,f.useEffect)((()=>{var e,t,n;s(null==(e=document)?void 0:e.documentElement);const r=new MutationObserver((e=>{var t;if(e&&e.length>0&&"BODY"===(null==(t=e[0])?void 0:t.target.nodeName)){var n,r,o;const e=null==(n=document)||null==(r=n.body)||null==(o=r.dataset)?void 0:o.theme;e&&a(e)}else{var i;s(null==(i=document)?void 0:i.documentElement)}}));return r.observe(null==(t=document)?void 0:t.documentElement,{attributes:!0,attributeFilter:["data-theme","style"]}),r.observe(null==(n=document)?void 0:n.body,{attributes:!0,attributeFilter:["data-theme","style"]}),()=>r.disconnect()}),[]),(0,f.useEffect)((()=>{r&&e&&null!=e&&e.className&&(Ji(e.className),a(Xi(e.className)))}),[r,e]),(0,st.jsx)(_i,{children:(0,st.jsxs)(ze.Provider,{value:l,children:[!t&&(0,st.jsx)(dt,{}),n]})})}),{disableBaseline:!1}),Zi=Se("span",{dflex:"center",position:"relative",zIndex:"$1",boxSizing:"border-box",overflow:"hidden",verticalAlign:"top",cursor:"auto",transition:"$default","&:first-child":{margin:0},"&:hover .nextui-avatar-bg":{boxShadow:" inset 0 0 40px 0 rgb(0 0 0 / 14%)"},".nextui-avatar-img":{opacity:0,zIndex:"$3",display:"flex",bg:"$background",transition:"transform 250ms ease 0ms, opacity 200ms ease-in 0ms",width:"100%",height:"100%",objectFit:"cover"},'&[data-state="ready"] .nextui-avatar-img':{opacity:1},".nextui-avatar-bg":{position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:"$2",transition:"$default",size:"100%"},".nextui-avatar-icon":{display:"flex",position:"absolute",left:"50%",top:"50%",ta:"center",zIndex:"$2",transform:"translate(-50%, -50%)",whiteSpace:"nowrap",us:"none"},".nextui-avatar-text":{position:"absolute",zIndex:"$2",left:"50%",top:"50%",ta:"center",transform:"translate(-50%, -50%) scale(0.65)",whiteSpace:"nowrap",us:"none"},"@motion":{transition:"none",".nextui-avatar-bg, .nextui-avatar-img":{transition:"none"}},variants:{color:{default:{".nextui-avatar-bg":{bg:"$accents2"}},primary:{".nextui-avatar-bg":{bg:"$primary"},".nextui-avatar-text":{color:"$background"}},secondary:{".nextui-avatar-bg":{bg:"$secondary"},".nextui-avatar-text":{color:"$background"}},success:{".nextui-avatar-bg":{bg:"$success"},".nextui-avatar-text":{color:"$background"}},warning:{".nextui-avatar-bg":{bg:"$warning"},".nextui-avatar-text":{color:"$background"}},error:{".nextui-avatar-bg":{bg:"$error"},".nextui-avatar-text":{color:"$background"}},gradient:{".nextui-avatar-bg":{bg:"$gradient"},".nextui-avatar-text":{color:"$background"}}},textColor:{default:{".nextui-avatar-text":{color:"$text"}},primary:{".nextui-avatar-text":{color:"$primary"}},secondary:{".nextui-avatar-text":{color:"$secondary"}},success:{".nextui-avatar-text":{color:"$success"}},warning:{".nextui-avatar-text":{color:"$warning"}},error:{".nextui-avatar-text":{color:"$error"}}},size:{xs:{$$avatarXs:"$space$9",sizeMin:"$$avatarXs",".nextui-avatar-text":{fontSize:"$xs"}},sm:{$$avatarSm:"$space$11",sizeMin:"$$avatarSm",".nextui-avatar-text":{fontSize:"$base"}},md:{$$avatarMd:"$space$14",sizeMin:"$$avatarMd",".nextui-avatar-text":{fontSize:"$sm"}},lg:{$$avatarLg:"$space$16",sizeMin:"$$avatarLg",".nextui-avatar-text":{fontSize:"$sm"}},xl:{$$avatarXl:"$space$18",sizeMin:"$$avatarXl",".nextui-avatar-text":{fontSize:"$md"}}},borderWeight:{light:{".nextui-avatar-img":{borderWidth:"$light"}},normal:{".nextui-avatar-img":{borderWidth:"$normal"}},bold:{".nextui-avatar-img":{borderWidth:"$normal"}},extrabold:{".nextui-avatar-img":{borderWidth:"$normal"}},black:{".nextui-avatar-img":{borderWidth:"$normal"}}},bordered:{true:{"&:hover:not(.only-text-avatar) .nextui-avatar-bg":{opacity:"0.6"},".nextui-avatar-img":{borderStyle:"solid",borderColor:"$background"}}},stacked:{true:{ml:"-$5"}},pointer:{true:{cursor:"pointer"}},rounded:{true:{borderRadius:"$rounded",".nextui-avatar-img":{borderRadius:"$rounded"}}},squared:{true:{borderRadius:"$squared",".nextui-avatar-img":{borderRadius:"$squared"}}},zoomed:{true:{"&:hover .nextui-avatar-img":{transform:"scale(1.125)"}}}},compoundVariants:[{bordered:!0,borderWeight:"light",css:{padding:"calc($1/2)"}},{bordered:!0,borderWeight:"normal",css:{padding:"$1"}},{bordered:!0,borderWeight:"bold",css:{padding:"calc($2/1.5)"}},{bordered:!0,borderWeight:"extrabold",css:{padding:"$2"}},{bordered:!0,borderWeight:"black",css:{padding:"calc($3/1.5)"}},{rounded:!0,squared:!0,css:{borderRadius:"$squared",".nextui-avatar-img":{borderRadius:"$squared"}}}],defaultVariants:{size:"md",rounded:!0,color:"default",textColor:"default",borderWeight:"normal"}}),Qi=Zi,ea=e=>(null==e?void 0:e.length)<=4?e:null==e?void 0:e.slice(0,3),ta=({src:e,text:t,icon:n,alt:r,className:o,...i})=>{const a=!e,[s,l]=(0,f.useState)(!1),c=(0,f.useRef)(null);(0,f.useEffect)((()=>{var e;(null==c||null==(e=c.current)?void 0:e.complete)&&l(!0)}),[]);const u=(0,f.useMemo)((()=>!s&&e?"loading":"ready"),[e,s]);return(0,st.jsxs)(Qi,{className:Ui({"only-text-avatar":a},o),"data-state":u,...i,children:[(0,st.jsx)("span",{className:"nextui-avatar-bg"}),!a&&(0,st.jsx)("img",{ref:c,className:Ui("nextui-avatar-img",`nextui-avatar--${u}`,{"nextui-avatar-ready":s}),src:e,alt:r,"data-state":u,onLoad:()=>l(!0)}),a&&!n&&t&&(0,st.jsx)("span",{className:"nextui-avatar-text",children:ea(t)}),n&&(0,st.jsx)("span",{className:"nextui-avatar-icon",children:n})]})};ta.toString=()=>".nextui-avatar";const na=ta,ra=Se("span",{fontSize:"$xs",display:"inline-flex",alignItems:"center",marginLeft:"$3",color:"$text"}),oa=Se("div",{dflex:"center",height:"auto",width:"max-content","@motion":{transition:"none"},[`& ${Qi}`]:{marginLeft:"-$space$5",transition:"$default",".only-text-avatar":{boxShadow:"$xs"}},".only-text-avatar":{boxShadow:"$xs"},variants:{animated:{true:{[`& ${Qi}:hover`]:{transform:"translate(-$space$5)"}}}},defaultVariants:{animated:!0}}),ia=oa,aa=({count:e,children:t,...n})=>(0,st.jsxs)(ia,{...n,children:[t,e&&(0,st.jsxs)(ra,{className:"nextui-avatar-group-count",children:["+",e]})]});aa.toString=()=>".nextui-avatar-group";const sa=aa;na.Group=sa;const la=na;function ca(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var ua={};ca(ua,"SSRProvider",(()=>ha)),ca(ua,"useSSRSafeId",(()=>ga)),ca(ua,"useIsSSR",(()=>ma));const da={prefix:String(Math.round(1e10*Math.random())),current:0},pa=g().createContext(da);function ha(e){let t=(0,f.useContext)(pa),n=(0,f.useMemo)((()=>({prefix:t===da?"":`${t.prefix}-${++t.current}`,current:0})),[t]);return g().createElement(pa.Provider,{value:n},e.children)}let fa=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function ga(e){let t=(0,f.useContext)(pa);return t!==da||fa||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),(0,f.useMemo)((()=>e||`react-aria${t.prefix}-${++t.current}`),[e])}function ma(){let e=(0,f.useContext)(pa)!==da,[t,n]=(0,f.useState)(e);return"undefined"!=typeof window&&e&&(0,f.useLayoutEffect)((()=>{n(!1)}),[]),t}function ba(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ba(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ya(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ba(e))&&(r&&(r+=" "),r+=t);return r}function $a(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function va(e,t,n){let[r,o]=(0,f.useState)(e||t),i=(0,f.useRef)(void 0!==e),a=i.current,s=void 0!==e,l=(0,f.useRef)(r);a!==s&&console.warn(`WARN: A component changed from ${a?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s;let c=(0,f.useCallback)(((e,...t)=>{let r=(e,...t)=>{n&&(Object.is(l.current,e)||n(e,...t)),s||(l.current=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o(((n,...o)=>{let i=e(s?l.current:n,...o);return r(i,...t),s?n:i}))):(s||o(e),r(e,...t))}),[s,n]);return s?l.current=e:e=r,[e,c]}$a({},"useControlledState",(()=>va));var xa={};function wa(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Sa(e,t,n,r){let o=(e-(isNaN(t)?0:t))%r,i=2*Math.abs(o)>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o;isNaN(t)?!isNaN(n)&&i>n&&(i=Math.floor(n/r)*r):i<t?i=t:!isNaN(n)&&i>n&&(i=t+Math.floor((n-t)/r)*r);let a=r.toString(),s=a.indexOf("."),l=s>=0?a.length-s:0;if(l>0){let e=Math.pow(10,l);i=Math.round(i*e)/e}return i}function Ca(e,t,n=10){const r=Math.pow(n,t);return Math.round(e*r)/r}function ka(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}$a(xa,"clamp",(()=>wa)),$a(xa,"snapValueToStep",(()=>Sa)),$a(xa,"toFixedNumber",(()=>Ca));var Ea={};ka(Ea,"useId",(()=>Ia)),ka(Ea,"mergeIds",(()=>Ma)),ka(Ea,"useSlotId",(()=>Na)),ka({},"useLayoutEffect",(()=>Ta));const Ta="undefined"!=typeof window?g().useLayoutEffect:()=>{};let Pa=new Map;function Ia(e){let t=(0,f.useRef)(!0);t.current=!0;let[n,r]=(0,f.useState)(e),o=(0,f.useRef)(null),i=ga(n),a=e=>{t.current?o.current=e:r(e)};return Pa.set(i,a),Ta((()=>{t.current=!1}),[a]),Ta((()=>{let e=i;return()=>{Pa.delete(e)}}),[i]),(0,f.useEffect)((()=>{let e=o.current;e&&(r(e),o.current=null)}),[r,a]),i}function Ma(e,t){if(e===t)return e;let n=Pa.get(e);if(n)return n(t),t;let r=Pa.get(t);return r?(r(e),e):t}function Na(e=[]){let t=Ia(),[n,r]=vs(t),o=(0,f.useCallback)((()=>{r((function*(){yield t,yield document.getElementById(t)?t:null}))}),[t,r]);return Ta(o,[t,o,...e]),n}function Ra(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function La(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],o=r[e];"function"==typeof n&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Ra(n,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof o?"id"===e&&n&&o?t.id=Ma(n,o):t[e]=void 0!==o?o:n:t[e]=ya(n,o)}}return t}ka({},"chain",(()=>Ra)),ka({},"mergeProps",(()=>La)),ka({},"filterDOMProps",(()=>Ka));const Da=new Set(["id"]),za=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Aa=/^(data-.*)$/;function Ka(e,t={}){let{labelable:n,propNames:r}=t,o={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Da.has(t)||n&&za.has(t)||(null==r?void 0:r.has(t))||Aa.test(t))&&(o[t]=e[t]);return o}function Oa(e){if(function(){if(null==ja){ja=!1;try{document.createElement("div").focus({get preventScroll(){return ja=!0,!0}})}catch(e){}}return ja}())e.focus({preventScroll:!0});else{let t=function(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}ka({},"focusWithoutScrolling",(()=>Oa));let ja=null;function _a(e,t,n="horizontal"){let r=e.getBoundingClientRect();return t?"horizontal"===n?r.right:r.bottom:"horizontal"===n?r.left:r.top}ka({},"getOffset",(()=>_a));var Fa={};ka(Fa,"clamp",(()=>wa)),ka(Fa,"snapValueToStep",(()=>Sa)),ka({},"runAfterTransition",(()=>Ha));let Wa=new Map,Ba=new Set;function Va(){if("undefined"==typeof window)return;let e=t=>{let n=Wa.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),Wa.delete(t.target)),0===Wa.size)){for(let e of Ba)e();Ba.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=Wa.get(t.target);n||(n=new Set,Wa.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function Ha(e){requestAnimationFrame((()=>{0===Wa.size?e():Ba.add(e)}))}"undefined"!=typeof document&&("loading"!==document.readyState?Va():document.addEventListener("DOMContentLoaded",Va)),ka({},"useDrag1D",(()=>Ga));const Ua=[];function Ga(e){console.warn("useDrag1D is deprecated, please use `useMove` instead https://react-spectrum.adobe.com/react-aria/useMove.html");let{containerRef:t,reverse:n,orientation:r,onHover:o,onDrag:i,onPositionChange:a,onIncrement:s,onDecrement:l,onIncrementToMax:c,onDecrementToMin:u,onCollapseToggle:d}=e,p=e=>{let o=_a(t.current,n,r),i=(e=>"horizontal"===r?e.clientX:e.clientY)(e);return n?o-i:i-o},h=(0,f.useRef)(!1),g=(0,f.useRef)(0),m=(0,f.useRef)({onPositionChange:a,onDrag:i});m.current.onDrag=i,m.current.onPositionChange=a;let b=e=>{e.preventDefault();let t=p(e);h.current||(h.current=!0,m.current.onDrag&&m.current.onDrag(!0),m.current.onPositionChange&&m.current.onPositionChange(t)),g.current!==t&&(g.current=t,a&&a(t))},y=e=>{const t=e.target;h.current=!1;let n=p(e);m.current.onDrag&&m.current.onDrag(!1),m.current.onPositionChange&&m.current.onPositionChange(n),Ua.splice(Ua.indexOf(t),1),window.removeEventListener("mouseup",y,!1),window.removeEventListener("mousemove",b,!1)};return{onMouseDown:e=>{const t=e.currentTarget;Ua.some((e=>t.contains(e)))||(Ua.push(t),window.addEventListener("mousemove",b,!1),window.addEventListener("mouseup",y,!1))},onMouseEnter:()=>{o&&o(!0)},onMouseOut:()=>{o&&o(!1)},onKeyDown:e=>{switch(e.key){case"Left":case"ArrowLeft":"horizontal"===r&&(e.preventDefault(),l&&!n?l():s&&n&&s());break;case"Up":case"ArrowUp":"vertical"===r&&(e.preventDefault(),l&&!n?l():s&&n&&s());break;case"Right":case"ArrowRight":"horizontal"===r&&(e.preventDefault(),s&&!n?s():l&&n&&l());break;case"Down":case"ArrowDown":"vertical"===r&&(e.preventDefault(),s&&!n?s():l&&n&&l());break;case"Home":e.preventDefault(),u&&u();break;case"End":e.preventDefault(),c&&c();break;case"Enter":e.preventDefault(),d&&d()}}}}function Ya(){let e=(0,f.useRef)(new Map),t=(0,f.useCallback)(((t,n,r,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,r,o)}),[]),n=(0,f.useCallback)(((t,n,r,o)=>{var i;let a=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(n,a,o),e.current.delete(r)}),[]),r=(0,f.useCallback)((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return(0,f.useEffect)((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Xa(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;if(n=Ia(n),o&&r){let e=new Set([...o.trim().split(/\s+/),n]);o=[...e].join(" ")}else o&&(o=o.trim().split(/\s+/).join(" "));return r||o||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function Ja(e){const t=(0,f.useRef)();return Ta((()=>{e&&("function"==typeof e?e(t.current):e.current=t.current)}),[e]),t}function qa(e,t){const n=(0,f.useRef)(!0);(0,f.useEffect)((()=>{n.current?n.current=!1:e()}),t)}function Za(e){const{ref:t,onResize:n}=e;(0,f.useEffect)((()=>{let e=null==t?void 0:t.current;if(e){if(void 0===window.ResizeObserver)return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)};{const t=new window.ResizeObserver((e=>{e.length&&n()}));return t.observe(e),()=>{e&&t.unobserve(e)}}}}),[n,t])}function Qa(e,t){Ta((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}function es(e){for(;e&&!ts(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function ts(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}ka({},"useGlobalListeners",(()=>Ya)),ka({},"useLabels",(()=>Xa)),ka({},"useObjectRef",(()=>Ja)),ka({},"useUpdateEffect",(()=>qa)),ka({},"useResizeObserver",(()=>Za)),ka({},"useSyncRef",(()=>Qa)),ka({},"getScrollParent",(()=>es)),ka({},"useViewportSize",(()=>rs));let ns="undefined"!=typeof window&&window.visualViewport;function rs(){let[e,t]=(0,f.useState)((()=>os()));return(0,f.useEffect)((()=>{let e=()=>{t((e=>{let t=os();return t.width===e.width&&t.height===e.height?e:t}))};return ns?ns.addEventListener("resize",e):window.addEventListener("resize",e),()=>{ns?ns.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),e}function os(){return{width:(null==ns?void 0:ns.width)||window.innerWidth,height:(null==ns?void 0:ns.height)||window.innerHeight}}ka({},"useDescription",(()=>ss));let is=0;const as=new Map;function ss(e){let[t,n]=(0,f.useState)(null);return Ta((()=>{if(!e)return;let t=as.get(e);if(t)n(t.element.id);else{let r="react-aria-description-"+is++;n(r);let o=document.createElement("div");o.id=r,o.style.display="none",o.textContent=e,document.body.appendChild(o),t={refCount:0,element:o},as.set(e,t)}return t.refCount++,()=>{0==--t.refCount&&(t.element.remove(),as.delete(e))}}),[e]),{"aria-describedby":e?t:void 0}}var ls={};function cs(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function us(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test((window.navigator.userAgentData||window.navigator).platform)}function ds(){return us(/^Mac/i)}function ps(){return us(/^iPhone/i)}function hs(){return us(/^iPad/i)||ds()&&navigator.maxTouchPoints>1}function fs(){return ps()||hs()}function gs(){return ds()||fs()}function ms(){return cs(/AppleWebKit/i)&&!bs()}function bs(){return cs(/Chrome/i)}function ys(){return cs(/Android/i)}function $s(e,t,n,r){let o=(0,f.useRef)(n);o.current=n;let i=null==n;(0,f.useEffect)((()=>{if(i)return;let n=e.current,a=e=>o.current.call(this,e);return n.addEventListener(t,a,r),()=>{n.removeEventListener(t,a,r)}}),[e,t,r,i])}function vs(e){let[t,n]=(0,f.useState)(e),r=(0,f.useRef)(t),o=(0,f.useRef)(null);r.current=t;let i=(0,f.useRef)(null);i.current=()=>{let e=o.current.next();e.done?o.current=null:t===e.value?i.current():n(e.value)},Ta((()=>{o.current&&i.current()}));let a=(0,f.useCallback)((e=>{o.current=e(r.current),i.current()}),[o,i]);return[t,a]}function xs(e,t){let n=ws(e,t,"left"),r=ws(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,l=a+e.offsetWidth,c=s+e.offsetHeight;n<=a?a=n:n+o>l&&(a+=n+o-l),r<=s?s=r:r+i>c&&(s+=r+i-c),e.scrollLeft=a,e.scrollTop=s}function ws(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function Ss(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}ka(ls,"isMac",(()=>ds)),ka(ls,"isIPhone",(()=>ps)),ka(ls,"isIPad",(()=>hs)),ka(ls,"isIOS",(()=>fs)),ka(ls,"isAppleDevice",(()=>gs)),ka(ls,"isWebKit",(()=>ms)),ka(ls,"isChrome",(()=>bs)),ka(ls,"isAndroid",(()=>ys)),ka({},"useEvent",(()=>$s)),ka({},"useValueEffect",(()=>vs)),ka({},"scrollIntoView",(()=>xs)),Ss({},"Pressable",(()=>js)),Ss({},"usePress",(()=>Ns));let Cs="default",ks="",Es=new WeakMap;function Ts(e){fs()?("default"===Cs&&(ks=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),Cs="disabled"):e&&(Es.set(e,e.style.userSelect),e.style.userSelect="none")}function Ps(e){if(fs()){if("disabled"!==Cs)return;Cs="restoring",setTimeout((()=>{Ha((()=>{"restoring"===Cs&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=ks||""),ks="",Cs="default")}))}),300)}else if(e&&Es.has(e)){let t=Es.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),Es.delete(e)}}function Is(e){return!(0!==e.mozInputSource||!e.isTrusted)||0===e.detail&&!e.pointerType}const Ms=g().createContext(null);function Ns(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:a,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:u,ref:d,...p}=function(e){let t=(0,f.useContext)(Ms);if(t){let{register:n,...r}=t;e=La(r,e),n()}return Qa(t,e.ref),e}(e),h=(0,f.useRef)(null);h.current={onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:a,shouldCancelOnPointerExit:c};let[g,m]=(0,f.useState)(!1),b=(0,f.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:y,removeAllGlobalListeners:$}=Ya(),v=(0,f.useMemo)((()=>{let e=b.current,t=(t,n)=>{let{onPressStart:r,onPressChange:o,isDisabled:i}=h.current;i||e.didFirePressStart||(r&&r({type:"pressstart",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),o&&o(!0),e.didFirePressStart=!0,m(!0))},n=(t,n,r=!0)=>{let{onPressEnd:o,onPressChange:i,onPress:a,isDisabled:s}=h.current;e.didFirePressStart&&(e.ignoreClickAfterPress=!0,e.didFirePressStart=!1,o&&o({type:"pressend",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),i&&i(!1),m(!1),a&&r&&!s&&a({type:"press",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}))},r=(e,t)=>{let{onPressUp:n,isDisabled:r}=h.current;r||n&&n({type:"pressup",pointerType:t,target:e.currentTarget,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})},o=t=>{e.isPressed&&(e.isOverTarget&&n(zs(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,$(),u||Ps(e.target))},i={onKeyDown(n){Ls(n.nativeEvent)&&n.currentTarget.contains(n.target)&&(Os(n.target)&&n.preventDefault(),n.stopPropagation(),e.isPressed||n.repeat||(e.target=n.currentTarget,e.isPressed=!0,t(n,"keyboard"),y(document,"keyup",s,!1)))},onKeyUp(t){Ls(t.nativeEvent)&&!t.repeat&&t.currentTarget.contains(t.target)&&r(zs(e.target,t),"keyboard")},onClick(o){o&&!o.currentTarget.contains(o.target)||o&&0===o.button&&(o.stopPropagation(),a&&o.preventDefault(),e.ignoreClickAfterPress||e.ignoreEmulatedMouseEvents||"virtual"!==e.pointerType&&!Is(o.nativeEvent)||(a||l||Oa(o.currentTarget),t(o,"virtual"),r(o,"virtual"),n(o,"virtual")),e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1)}},s=t=>{if(e.isPressed&&Ls(t)){Os(t.target)&&t.preventDefault(),t.stopPropagation(),e.isPressed=!1;let r=t.target;n(zs(e.target,t),"keyboard",e.target.contains(r)),$(),(e.target.contains(r)&&Rs(e.target)||"link"===e.target.getAttribute("role"))&&e.target.click()}};if("undefined"!=typeof PointerEvent){i.onPointerDown=n=>{var r;0===n.button&&n.currentTarget.contains(n.target)&&(0===(r=n.nativeEvent).width&&0===r.height||1===r.width&&1===r.height&&0===r.pressure&&0===r.detail?e.pointerType="virtual":(Ks(n.currentTarget)&&n.preventDefault(),e.pointerType=n.pointerType,n.stopPropagation(),e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=n.pointerId,e.target=n.currentTarget,a||l||Oa(n.currentTarget),u||Ts(e.target),t(n,e.pointerType),y(document,"pointermove",s,!1),y(document,"pointerup",c,!1),y(document,"pointercancel",d,!1))))},i.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(Ks(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},i.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&As(t,t.currentTarget)&&r(t,e.pointerType||t.pointerType)};let s=r=>{r.pointerId===e.activePointerId&&(As(r,e.target)?e.isOverTarget||(e.isOverTarget=!0,t(zs(e.target,r),e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,n(zs(e.target,r),e.pointerType,!1),h.current.shouldCancelOnPointerExit&&o(r)))},c=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&(As(t,e.target)?n(zs(e.target,t),e.pointerType):e.isOverTarget&&n(zs(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,$(),u||Ps(e.target))},d=e=>{o(e)};i.onDragStart=e=>{e.currentTarget.contains(e.target)&&o(e)}}else{i.onMouseDown=n=>{0===n.button&&n.currentTarget.contains(n.target)&&(Ks(n.currentTarget)&&n.preventDefault(),n.stopPropagation(),e.ignoreEmulatedMouseEvents||(e.isPressed=!0,e.isOverTarget=!0,e.target=n.currentTarget,e.pointerType=Is(n.nativeEvent)?"virtual":"mouse",a||l||Oa(n.currentTarget),t(n,e.pointerType),y(document,"mouseup",s,!1)))},i.onMouseEnter=n=>{n.currentTarget.contains(n.target)&&(n.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!0,t(n,e.pointerType)))},i.onMouseLeave=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!1,n(t,e.pointerType,!1),h.current.shouldCancelOnPointerExit&&o(t)))},i.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||r(t,e.pointerType))};let s=t=>{0===t.button&&(e.isPressed=!1,$(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(As(t,e.target)?n(zs(e.target,t),e.pointerType):e.isOverTarget&&n(zs(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};i.onTouchStart=n=>{if(!n.currentTarget.contains(n.target))return;n.stopPropagation();let r=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(n.nativeEvent);r&&(e.activePointerId=r.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=n.currentTarget,e.pointerType="touch",a||l||Oa(n.currentTarget),u||Ts(e.target),t(n,e.pointerType),y(window,"scroll",c,!0))},i.onTouchMove=r=>{if(!r.currentTarget.contains(r.target))return;if(r.stopPropagation(),!e.isPressed)return;let i=Ds(r.nativeEvent,e.activePointerId);i&&As(i,r.currentTarget)?e.isOverTarget||(e.isOverTarget=!0,t(r,e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,n(r,e.pointerType,!1),h.current.shouldCancelOnPointerExit&&o(r))},i.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(t.stopPropagation(),!e.isPressed)return;let o=Ds(t.nativeEvent,e.activePointerId);o&&As(o,t.currentTarget)?(r(t,e.pointerType),n(t,e.pointerType)):e.isOverTarget&&n(t,e.pointerType,!1),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,u||Ps(e.target),$()},i.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&o(t))};let c=t=>{e.isPressed&&t.target.contains(e.target)&&o({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};i.onDragStart=e=>{e.currentTarget.contains(e.target)&&o(e)}}return i}),[y,a,l,$,u]);return(0,f.useEffect)((()=>()=>{u||Ps(b.current.target)}),[u]),{isPressed:s||g,pressProps:La(p,v)}}function Rs(e){return"A"===e.tagName&&e.hasAttribute("href")}function Ls(e){const{key:t,code:n,target:r}=e,o=r,{tagName:i,isContentEditable:a}=o,s=o.getAttribute("role");return!("Enter"!==t&&" "!==t&&"Spacebar"!==t&&"Space"!==n||"INPUT"===i||"TEXTAREA"===i||!0===a||Rs(o)&&("button"!==s||"Enter"===t)||"link"===s&&"Enter"!==t)}function Ds(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const r=n[e];if(r.identifier===t)return r}return null}function zs(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function As(e,t){let n=t.getBoundingClientRect(),r=function(e){let t=e.width/2||e.radiusX||0,n=e.height/2||e.radiusY||0;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return function(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}(n,r)}function Ks(e){return!e.draggable}function Os(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&"submit"===e.type)}Ms.displayName="PressResponderContext";const js=g().forwardRef((({children:e,...t},n)=>{let r=(0,f.useRef)();n=null!=n?n:r;let{pressProps:o}=Ns({...t,ref:n}),i=g().Children.only(e);return g().cloneElement(i,{ref:n,...La(i.props,o)})}));Ss({},"PressResponder",(()=>_s));const _s=g().forwardRef((({children:e,...t},n)=>{let r=(0,f.useRef)(!1),o=(0,f.useContext)(Ms),i=La(o||{},{...t,ref:n||(null==o?void 0:o.ref),register(){r.current=!0,o&&o.register()}});return Qa(o,n),(0,f.useEffect)((()=>{r.current||console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component.")}),[]),g().createElement(Ms.Provider,{value:i},e)}));function Fs(e){if(e.isDisabled)return{focusProps:{}};let t,n;return(e.onFocus||e.onFocusChange)&&(t=t=>{t.target===t.currentTarget&&(e.onFocus&&e.onFocus(t),e.onFocusChange&&e.onFocusChange(!0))}),(e.onBlur||e.onFocusChange)&&(n=t=>{t.target===t.currentTarget&&(e.onBlur&&e.onBlur(t),e.onFocusChange&&e.onFocusChange(!1))}),{focusProps:{onFocus:t,onBlur:n}}}Ss({},"useFocus",(()=>Fs));var Ws={};Ss(Ws,"isFocusVisible",(()=>nl)),Ss(Ws,"getInteractionModality",(()=>rl)),Ss(Ws,"setInteractionModality",(()=>ol)),Ss(Ws,"useInteractionModality",(()=>il)),Ss(Ws,"useFocusVisible",(()=>al)),Ss(Ws,"useFocusVisibleListener",(()=>sl));let Bs=null,Vs=new Set,Hs=!1,Us=!1,Gs=!1;const Ys={Tab:!0,Escape:!0};function Xs(e,t){for(let n of Vs)n(e,t)}function Js(e){Us=!0,function(e){return!(e.metaKey||!ds()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Bs="keyboard",Xs("keyboard",e))}function qs(e){Bs="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Us=!0,Xs("pointer",e))}function Zs(e){Is(e)&&(Us=!0,Bs="virtual")}function Qs(e){e.target!==window&&e.target!==document&&(Us||Gs||(Bs="virtual",Xs("virtual",e)),Us=!1,Gs=!1)}function el(){Us=!1,Gs=!0}function tl(){if("undefined"==typeof window||Hs)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Us=!0,e.apply(this,arguments)},document.addEventListener("keydown",Js,!0),document.addEventListener("keyup",Js,!0),document.addEventListener("click",Zs,!0),window.addEventListener("focus",Qs,!0),window.addEventListener("blur",el,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",qs,!0),document.addEventListener("pointermove",qs,!0),document.addEventListener("pointerup",qs,!0)):(document.addEventListener("mousedown",qs,!0),document.addEventListener("mousemove",qs,!0),document.addEventListener("mouseup",qs,!0)),Hs=!0}function nl(){return"pointer"!==Bs}function rl(){return Bs}function ol(e){Bs=e,Xs(e,null)}function il(){tl();let[e,t]=(0,f.useState)(Bs);return(0,f.useEffect)((()=>{let e=()=>{t(Bs)};return Vs.add(e),()=>{Vs.delete(e)}}),[]),e}function al(e={}){let{isTextInput:t,autoFocus:n}=e,[r,o]=(0,f.useState)(n||nl());return sl((e=>{o(e)}),[t],{isTextInput:t}),{isFocusVisible:r}}function sl(e,t,n){tl(),(0,f.useEffect)((()=>{let t=(t,r)=>{(function(e,t,n){return!(e&&"keyboard"===t&&n instanceof KeyboardEvent&&!Ys[n.key])})(null==n?void 0:n.isTextInput,t,r)&&e(nl())};return Vs.add(t),()=>{Vs.delete(t)}}),t)}function ll(e){let t=(0,f.useRef)({isFocusWithin:!1}).current;return e.isDisabled?{focusWithinProps:{}}:{focusWithinProps:{onFocus:n=>{t.isFocusWithin||(e.onFocusWithin&&e.onFocusWithin(n),e.onFocusWithinChange&&e.onFocusWithinChange(!0),t.isFocusWithin=!0)},onBlur:n=>{t.isFocusWithin&&!n.currentTarget.contains(n.relatedTarget)&&(e.onBlurWithin&&e.onBlurWithin(n),e.onFocusWithinChange&&e.onFocusWithinChange(!1),t.isFocusWithin=!1)}}}}"undefined"!=typeof document&&("loading"!==document.readyState?tl():document.addEventListener("DOMContentLoaded",tl)),Ss({},"useFocusWithin",(()=>ll)),Ss({},"useHover",(()=>fl));let cl=!1,ul=0;function dl(){cl=!0,setTimeout((()=>{cl=!1}),50)}function pl(e){"touch"===e.pointerType&&dl()}function hl(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",pl):document.addEventListener("touchend",dl),ul++,()=>{ul--,ul>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",pl):document.removeEventListener("touchend",dl))}}function fl(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,a]=(0,f.useState)(!1),s=(0,f.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,f.useEffect)(hl,[]);let{hoverProps:l,triggerHoverEnd:c}=(0,f.useMemo)((()=>{let e=(e,r)=>{if(s.pointerType=r,o||"touch"===r||s.isHovered||!e.currentTarget.contains(e.target))return;s.isHovered=!0;let i=e.currentTarget;s.target=i,t&&t({type:"hoverstart",target:i,pointerType:r}),n&&n(!0),a(!0)},i=(e,t)=>{if(s.pointerType="",s.target=null,"touch"===t||!s.isHovered)return;s.isHovered=!1;let o=e.currentTarget;r&&r({type:"hoverend",target:o,pointerType:t}),n&&n(!1),a(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=t=>{cl&&"mouse"===t.pointerType||e(t,t.pointerType)},l.onPointerLeave=e=>{!o&&e.currentTarget.contains(e.target)&&i(e,e.pointerType)}):(l.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=t=>{s.ignoreEmulatedMouseEvents||cl||e(t,"mouse"),s.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!o&&e.currentTarget.contains(e.target)&&i(e,"mouse")}),{hoverProps:l,triggerHoverEnd:i}}),[t,n,r,o,s]);return(0,f.useEffect)((()=>{o&&c({currentTarget:s.target},s.pointerType)}),[o]),{hoverProps:l,isHovered:i}}function gl(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=(0,f.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:n,onInteractOutsideStart:o}).current;i.onInteractOutside=n,i.onInteractOutsideStart=o,(0,f.useEffect)((()=>{if(r)return;let e=e=>{ml(e,t)&&i.onInteractOutside&&(i.onInteractOutsideStart&&i.onInteractOutsideStart(e),i.isPointerDown=!0)};if("undefined"!=typeof PointerEvent){let n=e=>{i.isPointerDown&&i.onInteractOutside&&ml(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))};return document.addEventListener("pointerdown",e,!0),document.addEventListener("pointerup",n,!0),()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("pointerup",n,!0)}}{let n=e=>{i.ignoreEmulatedMouseEvents?i.ignoreEmulatedMouseEvents=!1:i.isPointerDown&&i.onInteractOutside&&ml(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))},r=e=>{i.ignoreEmulatedMouseEvents=!0,i.onInteractOutside&&i.isPointerDown&&ml(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))};return document.addEventListener("mousedown",e,!0),document.addEventListener("mouseup",n,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("touchend",r,!0),()=>{document.removeEventListener("mousedown",e,!0),document.removeEventListener("mouseup",n,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("touchend",r,!0)}}}),[t,i,r])}function ml(e,t){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return!1}return t.current&&!t.current.contains(e.target)}function bl(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function yl(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:bl(e.onKeyDown),onKeyUp:bl(e.onKeyUp)}}}function $l(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,o=(0,f.useRef)({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:a}=Ya(),s=(0,f.useMemo)((()=>{let e={},s=()=>{Ts(),o.current.didMove=!1},l=(e,r,i,a)=>{0===i&&0===a||(o.current.didMove||(o.current.didMove=!0,null==t||t({type:"movestart",pointerType:r,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),n({type:"move",pointerType:r,deltaX:i,deltaY:a,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))},c=(e,t)=>{Ps(),o.current.didMove&&(null==r||r({type:"moveend",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))};if("undefined"==typeof PointerEvent){let t=e=>{0===e.button&&(l(e,"mouse",e.pageX-o.current.lastPosition.pageX,e.pageY-o.current.lastPosition.pageY),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY})},n=e=>{0===e.button&&(c(e,"mouse"),a(window,"mousemove",t,!1),a(window,"mouseup",n,!1))};e.onMouseDown=e=>{0===e.button&&(s(),e.stopPropagation(),e.preventDefault(),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY},i(window,"mousemove",t,!1),i(window,"mouseup",n,!1))};let r=e=>{let t=[...e.changedTouches].findIndex((({identifier:e})=>e===o.current.id));if(t>=0){let{pageX:n,pageY:r}=e.changedTouches[t];l(e,"touch",n-o.current.lastPosition.pageX,r-o.current.lastPosition.pageY),o.current.lastPosition={pageX:n,pageY:r}}},u=e=>{[...e.changedTouches].findIndex((({identifier:e})=>e===o.current.id))>=0&&(c(e,"touch"),o.current.id=null,a(window,"touchmove",r),a(window,"touchend",u),a(window,"touchcancel",u))};e.onTouchStart=e=>{if(0===e.changedTouches.length||null!=o.current.id)return;let{pageX:t,pageY:n,identifier:a}=e.changedTouches[0];s(),e.stopPropagation(),e.preventDefault(),o.current.lastPosition={pageX:t,pageY:n},o.current.id=a,i(window,"touchmove",r,!1),i(window,"touchend",u,!1),i(window,"touchcancel",u,!1)}}else{let t=e=>{if(e.pointerId===o.current.id){let t=e.pointerType||"mouse";l(e,t,e.pageX-o.current.lastPosition.pageX,e.pageY-o.current.lastPosition.pageY),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}},n=e=>{if(e.pointerId===o.current.id){let r=e.pointerType||"mouse";c(e,r),o.current.id=null,a(window,"pointermove",t,!1),a(window,"pointerup",n,!1),a(window,"pointercancel",n,!1)}};e.onPointerDown=e=>{0===e.button&&null==o.current.id&&(s(),e.stopPropagation(),e.preventDefault(),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY},o.current.id=e.pointerId,i(window,"pointermove",t,!1),i(window,"pointerup",n,!1),i(window,"pointercancel",n,!1))}}let u=(e,t,n)=>{s(),l(e,"keyboard",t,n),c(e,"keyboard")};return e.onKeyDown=e=>{switch(e.key){case"Left":case"ArrowLeft":e.preventDefault(),e.stopPropagation(),u(e,-1,0);break;case"Right":case"ArrowRight":e.preventDefault(),e.stopPropagation(),u(e,1,0);break;case"Up":case"ArrowUp":e.preventDefault(),e.stopPropagation(),u(e,0,-1);break;case"Down":case"ArrowDown":e.preventDefault(),e.stopPropagation(),u(e,0,1)}},e}),[o,t,n,r,i,a]);return{moveProps:s}}function vl(e,t){let{onScroll:n,isDisabled:r}=e,o=(0,f.useCallback)((e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))}),[n]);$s(t,"wheel",r?null:o)}Ss({},"useInteractOutside",(()=>gl)),Ss({},"useKeyboard",(()=>yl)),Ss({},"useMove",(()=>$l)),Ss({},"useScrollWheel",(()=>vl)),Ss({},"useLongPress",(()=>wl));const xl=500;function wl(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=xl,accessibilityDescription:a}=e;const s=(0,f.useRef)(null);let{addGlobalListener:l,removeGlobalListener:c}=Ya(),{pressProps:u}=Ns({isDisabled:t,onPressStart(e){if(("mouse"===e.pointerType||"touch"===e.pointerType)&&(n&&n({...e,type:"longpressstart"}),s.current=setTimeout((()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...e,type:"longpress"}),s.current=null}),i),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};l(e.target,"contextmenu",t,{once:!0}),l(window,"pointerup",(()=>{setTimeout((()=>{c(e.target,"contextmenu",t)}),30)}),{once:!0})}},onPressEnd(e){s.current&&clearTimeout(s.current),!r||"mouse"!==e.pointerType&&"touch"!==e.pointerType||r({...e,type:"longpressend"})}});return{longPressProps:La(u,ss(o&&!t?a:null))}}function Sl(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Cl={};function kl(e){if("virtual"===rl()){let t=document.activeElement;Ha((()=>{document.activeElement===t&&document.contains(e)&&Oa(e)}))}else Oa(e)}function El(e,t){return"#comment"!==e.nodeName&&function(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,r="none"!==t&&"hidden"!==n&&"collapse"!==n;if(r){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:o}=t(e);r="none"!==n&&"hidden"!==o&&"collapse"!==o}return r}(e)&&function(e,t){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||El(e.parentElement,e))}Sl(Cl,"FocusScope",(()=>Ml)),Sl(Cl,"useFocusManager",(()=>Nl)),Sl(Cl,"getFocusableTreeWalker",(()=>Fl)),Sl(Cl,"createFocusManager",(()=>Wl)),Sl({},"focusSafely",(()=>kl));const Tl=g().createContext(null);let Pl=null,Il=new Map;function Ml(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=(0,f.useRef)(),a=(0,f.useRef)(),s=(0,f.useRef)([]),l=(0,f.useContext)(Tl)?.scopeRef;Ta((()=>{let e=i.current.nextSibling,t=[];for(;e&&e!==a.current;)t.push(e),e=e.nextSibling;s.current=t}),[t,l]),Ta((()=>(Il.set(s,l),()=>{s!==Pl&&!Ol(s,Pl)||l&&!Il.has(l)||(Pl=l),Il.delete(s)})),[s,l]),function(e,t){let n=(0,f.useRef)(),r=(0,f.useRef)(null);Ta((()=>{let o=e.current;if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||e!==Pl)return;let n=document.activeElement,r=e.current;if(!Al(n,r))return;let o=Fl(zl(r),{tabbable:!0},r);o.currentNode=n;let i=t.shiftKey?o.previousNode():o.nextNode();i||(o.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,i=t.shiftKey?o.previousNode():o.nextNode()),t.preventDefault(),i&&jl(i,!0)},a=t=>{!Pl||Ol(Pl,e)?(Pl=e,n.current=t.target):e!==Pl||Kl(t.target,e)?e===Pl&&(n.current=t.target):n.current?n.current.focus():Pl&&_l(Pl.current)},s=t=>{r.current=requestAnimationFrame((()=>{e!==Pl||Kl(document.activeElement,e)||(Pl=e,n.current=t.target,n.current.focus())}))};return document.addEventListener("keydown",i,!1),document.addEventListener("focusin",a,!1),o.forEach((e=>e.addEventListener("focusin",a,!1))),o.forEach((e=>e.addEventListener("focusout",s,!1))),()=>{document.removeEventListener("keydown",i,!1),document.removeEventListener("focusin",a,!1),o.forEach((e=>e.removeEventListener("focusin",a,!1))),o.forEach((e=>e.removeEventListener("focusout",s,!1)))}}),[e,t]),(0,f.useEffect)((()=>()=>cancelAnimationFrame(r.current)),[r])}(s,n),function(e,t,n){const r=(0,f.useRef)("undefined"!=typeof document?document.activeElement:null);Ta((()=>{let o=r.current;if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey)return;let n=document.activeElement;if(!Al(n,e.current))return;let r=Fl(document.body,{tabbable:!0});r.currentNode=n;let i=t.shiftKey?r.previousNode():r.nextNode();if(document.body.contains(o)&&o!==document.body||(o=null),(!i||!Al(i,e.current))&&o){r.currentNode=o;do{i=t.shiftKey?r.previousNode():r.nextNode()}while(Al(i,e.current));t.preventDefault(),t.stopPropagation(),i?jl(i,!0):function(e){for(let t of Il.keys())if(Al(e,t.current))return!0;return!1}(o)?jl(o,!0):n.blur()}};return n||document.addEventListener("keydown",i,!0),()=>{n||document.removeEventListener("keydown",i,!0),t&&o&&Al(document.activeElement,e.current)&&requestAnimationFrame((()=>{document.body.contains(o)&&jl(o)}))}}),[e,t,n])}(s,r,n),function(e,t){const n=g().useRef(t);(0,f.useEffect)((()=>{n.current&&(Pl=e,Al(document.activeElement,Pl.current)||_l(e.current)),n.current=!1}),[])}(s,o);let c=function(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,s=n[0].previousElementSibling,l=Fl(zl(n),{tabbable:o},n);l.currentNode=Al(a,n)?a:s;let c=l.nextNode();return!c&&i&&(l.currentNode=s,c=l.nextNode()),c&&jl(c,!0),c},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,s=n[n.length-1].nextElementSibling,l=Fl(zl(n),{tabbable:o},n);l.currentNode=Al(a,n)?a:s;let c=l.previousNode();return!c&&i&&(l.currentNode=s,c=l.previousNode()),c&&jl(c,!0),c},focusFirst(t={}){let n=e.current,{tabbable:r}=t,o=Fl(zl(n),{tabbable:r},n);o.currentNode=n[0].previousElementSibling;let i=o.nextNode();return i&&jl(i,!0),i},focusLast(t={}){let n=e.current,{tabbable:r}=t,o=Fl(zl(n),{tabbable:r},n);o.currentNode=n[n.length-1].nextElementSibling;let i=o.previousNode();return i&&jl(i,!0),i}}}(s);return g().createElement(Tl.Provider,{value:{scopeRef:s,focusManager:c}},g().createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,g().createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function Nl(){return(0,f.useContext)(Tl)?.focusManager}const Rl=["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]"],Ll=Rl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Rl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Dl=Rl.join(':not([hidden]):not([tabindex="-1"]),');function zl(e){return e[0].parentElement}function Al(e,t){return t.some((t=>t.contains(e)))}function Kl(e,t){for(let n of Il.keys())if((n===t||Ol(t,n))&&Al(e,n.current))return!0;return!1}function Ol(e,t){let n=Il.get(t);return!!n&&(n===e||Ol(e,n))}function jl(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{kl(e)}catch(e){}}function _l(e){let t=e[0].previousElementSibling,n=Fl(zl(e),{tabbable:!0},e);n.currentNode=t,jl(n.nextNode())}function Fl(e,t,n){let r=t?.tabbable?Dl:Ll,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>t?.from?.contains(e)?NodeFilter.FILTER_REJECT:e.matches(r)&&El(e)&&(!n||Al(e,n))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});return t?.from&&(o.currentNode=t.from),o}function Wl(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,s=Fl(n,{tabbable:o});n.contains(a)&&(s.currentNode=a);let l=s.nextNode();return!l&&i&&(s.currentNode=n,l=s.nextNode()),l&&jl(l,!0),l},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,s=Fl(n,{tabbable:o});if(!n.contains(a)){let e=Bl(s);return e&&jl(e,!0),e}s.currentNode=a;let l=s.previousNode();return!l&&i&&(s.currentNode=n,l=Bl(s)),l&&jl(l,!0),l},focusFirst(t={}){let n=e.current,{tabbable:r}=t,o=Fl(n,{tabbable:r}).nextNode();return o&&jl(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r}=t,o=Bl(Fl(n,{tabbable:r}));return o&&jl(o,!0),o}}}function Bl(e){let t,n;do{n=e.lastChild(),n&&(t=n)}while(n);return t}function Vl(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=(0,f.useRef)({isFocused:!1,isFocusVisible:t||nl()}).current,[i,a]=(0,f.useState)(!1),[s,l]=(0,f.useState)((()=>o.isFocused&&o.isFocusVisible)),c=()=>l(o.isFocused&&o.isFocusVisible),u=e=>{o.isFocused=e,a(e),c()};sl((e=>{o.isFocusVisible=e,c()}),[],{isTextInput:n});let{focusProps:d}=Fs({isDisabled:r,onFocusChange:u}),{focusWithinProps:p}=ll({isDisabled:!r,onFocusWithinChange:u});return{isFocused:i,isFocusVisible:o.isFocused&&s,focusProps:r?p:d}}function Hl(e){let{children:t,focusClass:n,focusRingClass:r}=e,{isFocused:o,isFocusVisible:i,focusProps:a}=Vl(e),s=g().Children.only(t);return g().cloneElement(s,La(s.props,{...a,className:ya({[n||""]:o,[r||""]:i})}))}Sl({},"FocusRing",(()=>Hl)),Sl({},"useFocusRing",(()=>Vl));var Ul={};Sl(Ul,"FocusableProvider",(()=>Xl)),Sl(Ul,"useFocusable",(()=>Jl));let Gl=g().createContext(null);function Yl(e,t){let{children:n,...r}=e,o={...r,ref:t};return g().createElement(Gl.Provider,{value:o},n)}let Xl=g().forwardRef(Yl);function Jl(e,t){let{focusProps:n}=Fs(e),{keyboardProps:r}=yl(e),o=La(n,r),i=function(e){let t=(0,f.useContext)(Gl)||{};Qa(t,e);let{ref:n,...r}=t;return r}(t),a=e.isDisabled?{}:i,s=(0,f.useRef)(e.autoFocus);return(0,f.useEffect)((()=>{s.current&&t.current&&t.current.focus(),s.current=!1}),[]),{focusableProps:La({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}const ql=Ee({"0%":{opacity:0,transform:"scale(0.25)"},"30%":{opacity:1},"80%":{opacity:.5},"100%":{transform:"scale(28)",opacity:0}}),Zl=Se("div",{position:"absolute",left:0,right:0,top:0,bottom:0,"& svg":{position:"absolute",animation:`350ms linear ${ql}`,animationFillMode:"forwards",width:"$md",height:"$md"}}),Ql=({visible:e,x:t,y:n,color:r,onCompleted:o,className:i,...a})=>{const s=(0,f.useRef)(null),l=Number.isNaN(+n)?0:n-10,c=Number.isNaN(+t)?0:t-10;return(0,f.useEffect)((()=>{if(s.current)return s.current.addEventListener("animationend",o),()=>{s.current&&s.current.removeEventListener("animationend",o)}})),e?(0,st.jsx)(Zl,{ref:s,className:Ui("nextui-drip",i),...a,children:(0,st.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",style:{top:l,left:c},children:(0,st.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,st.jsx)("g",{className:"nextui-drip-filler",fill:r,children:(0,st.jsx)("rect",{width:"100%",height:"100%",rx:"10"})})})})}):null},ec=Vi(g().memo(Ql),{visible:!1,x:0,y:0,className:""}),tc={isButtonGroup:!1,disabled:!1},nc=g().createContext(tc),rc=Se("span",{dflex:"center",position:"absolute",left:"$$buttonPadding",right:"auto",top:"50%",transform:"translateY(-50%)",color:"inherit",zIndex:"$1","& svg":{background:"transparent"},variants:{isAuto:{true:{position:"relative",transform:"none",top:"0%"}},isRight:{true:{right:"$$buttonPadding",left:"auto"}},isSingle:{true:{position:"static",transform:"none",m:0}}},compoundVariants:[{isAuto:!0,isRight:!0,css:{order:2,ml:"$$buttonPadding",right:"0%",left:"0%"}},{isAuto:!0,isRight:!1,css:{order:0,mr:"$$buttonPadding",right:"0%",left:"0%"}},{isAuto:!0,isSingle:!0,css:{m:0}}]}),oc=({children:e,className:t,...n})=>(0,st.jsx)(rc,{className:Ui("nextui-button-icon",t),...n,children:e});oc.toString=()=>".nextui-button-icon";const ic=Vi(g().memo(oc),{className:""}),ac=(e=!1,t)=>{const[n,r]=(0,f.useState)(e),[o,i]=(0,f.useState)(0),[a,s]=(0,f.useState)(0);return{visible:n,x:o,y:a,onClick:e=>{if(!t.current)return;const n=t.current.getBoundingClientRect();r(!0),i(e.clientX-n.left),s(e.clientY-n.top)},onCompleted:()=>{r(!1),i(0),s(0)}}},sc=Se("button",{dflex:"center",appearance:"none",boxSizing:" border-box",fontWeight:"$medium",us:"none",lineHeight:"$sm",ta:"center",whiteSpace:"nowrap",transition:"$default",position:"relative",overflow:"hidden",border:"none",cursor:"pointer",pe:"auto",p:0,"&:hover":{opacity:.85},"@motion":{transition:"none"},".nextui-button-text":{dflex:"center",zIndex:"$2","p, pre, div":{margin:0}},[`& ${Zl}`]:{zIndex:"$1",".nextui-drip-filler":{opacity:.25,fill:"$accents2"}},variants:{bordered:{true:{bg:"transparent",borderStyle:"solid",color:"$text"}},ghost:{true:{"&:hover":{color:"$white"}}},color:{default:{bg:"$primary",color:"$white"},primary:{bg:"$primary",color:"$white"},secondary:{bg:"$secondary",color:"$white"},success:{bg:"$success",color:"$white"},warning:{bg:"$warning",color:"$white"},error:{bg:"$error",color:"$white"},gradient:{bg:"$gradient",color:"$white"}},size:{xs:{$$buttonPadding:"$space$3",px:"$3",height:"$10",lh:"$space$10",width:"auto",minWidth:"$20",fontSize:"$tiny",br:"$xs"},sm:{$$buttonPadding:"$space$5",px:"$5",height:"$12",lh:"$space$14",width:"auto",minWidth:"$36",fontSize:"$xs",br:"$sm"},md:{$$buttonPadding:"$space$7",px:"$7",height:"$14",lh:"$space$14",width:"auto",minWidth:"$48",fontSize:"$xs",br:"$md"},lg:{$$buttonPadding:"$space$9",px:"$9",height:"$15",lh:"$space$15",width:"auto",minWidth:"$60",fontSize:"$base",br:"$base"},xl:{$$buttonPadding:"$space$10",px:"$10",height:"$17",lh:"$space$17",width:"auto",minWidth:"$72",fontSize:"$sm",br:"$xl"}},borderWeight:{light:{bw:"$light"},normal:{bw:"$normal"},bold:{bw:"$bold"},extrabold:{bw:"$extrabold"},black:{bw:"$black"}},flat:{true:{color:"$text"}},light:{true:{bg:"transparent",[`& ${Zl}`]:{".nextui-drip-filler":{opacity:.8,fill:"$accents2"}}}},shadow:{true:{bs:"$sm"}},disabled:{true:{bg:"$accents2",color:"$accents4",cursor:"not-allowed",pe:"auto","&:hover":{opacity:1}}},clickable:{false:{cursor:"default",pe:"none"}},animated:{true:{"&:active":{transform:"scale(0.97)"}},false:{transition:"none"}},auto:{true:{width:"auto",minWidth:"min-content"}},rounded:{true:{br:"$pill"}}},compoundVariants:[{auto:!0,size:"xs",css:{px:"$5",minWidth:"min-content"}},{auto:!0,size:"sm",css:{px:"$8",minWidth:"min-content"}},{auto:!0,size:"md",css:{px:"$9",minWidth:"min-content"}},{auto:!0,size:"lg",css:{px:"$10",minWidth:"min-content"}},{auto:!0,size:"xl",css:{px:"$11",minWidth:"min-content"}},{animated:!0,disabled:!0,css:{"&:active":{transform:"none"}}},{shadow:!0,color:"default",css:{normalShadow:"$primaryShadow"}},{shadow:!0,color:"primary",css:{normalShadow:"$primaryShadow"}},{shadow:!0,color:"secondary",css:{normalShadow:"$secondaryShadow"}},{shadow:!0,color:"warning",css:{normalShadow:"$warningShadow"}},{shadow:!0,color:"success",css:{normalShadow:"$successShadow"}},{shadow:!0,color:"error",css:{normalShadow:"$errorShadow"}},{shadow:!0,color:"gradient",css:{normalShadow:"$primaryShadow"}},{light:!0,color:"default",css:{bg:"transparent",color:"$text"}},{light:!0,color:"primary",css:{bg:"transparent",color:"$primary"}},{light:!0,color:"secondary",css:{bg:"transparent",color:"$secondary"}},{light:!0,color:"warning",css:{bg:"transparent",color:"$warning"}},{light:!0,color:"success",css:{bg:"transparent",color:"$success"}},{light:!0,color:"error",css:{bg:"transparent",color:"$error"}},{bordered:!0,color:"default",css:{bg:"transparent",borderColor:"$primary",color:"$primary",[`& ${Zl}`]:{".nextui-drip-filler":{fill:"$primary"}}}},{bordered:!0,color:"primary",css:{bg:"transparent",borderColor:"$primary",color:"$primary",[`& ${Zl}`]:{".nextui-drip-filler":{fill:"$primary"}}}},{bordered:!0,color:"secondary",css:{bg:"transparent",borderColor:"$secondary",color:"$secondary",[`& ${Zl}`]:{".nextui-drip-filler":{fill:"$secondary"}}}},{bordered:!0,color:"success",css:{bg:"transparent",borderColor:"$success",color:"$success",[`& ${Zl}`]:{".nextui-drip-filler":{fill:"$success"}}}},{bordered:!0,color:"warning",css:{bg:"transparent",borderColor:"$warning",color:"$warning",[`& ${Zl}`]:{".nextui-drip-filler":{fill:"$warning"}}}},{bordered:!0,color:"error",css:{bg:"transparent",borderColor:"$error",color:"$error",[`& ${Zl}`]:{".nextui-drip-filler":{fill:"$error"}}}},{bordered:!0,color:"gradient",css:{bg:"transparent",color:"$text",padding:"$1",bgClip:"content-box, border-box",borderColor:"$primary",backgroundImage:"linear-gradient($background, $background), $gradient",border:"none",[`& ${Zl}`]:{".nextui-drip-filler":{fill:"$secondary"}}}},{ghost:!0,color:"default",css:{"&:hover":{bg:"$primary"}}},{ghost:!0,color:"primary",css:{"&:hover":{bg:"$primary"}}},{ghost:!0,color:"secondary",css:{"&:hover":{bg:"$secondary"}}},{ghost:!0,color:"success",css:{"&:hover":{bg:"$success"}}},{ghost:!0,color:"warning",css:{"&:hover":{bg:"$warning"}}},{ghost:!0,color:"error",css:{"&:hover":{bg:"$error"}}},{ghost:!0,color:"gradient",css:{"&:hover":{bg:"$gradient"}}},{flat:!0,color:"default",css:{bg:"$primaryLight",color:"$primary",[`& ${Zl}`]:{".nextui-drip-filler":{opacity:.4,fill:"$primary"}}}},{flat:!0,color:"primary",css:{bg:"$primaryLight",color:"$primary",[`& ${Zl}`]:{".nextui-drip-filler":{opacity:.4,fill:"$primary"}}}},{flat:!0,color:"secondary",css:{bg:"$secondaryLight",color:"$secondary",[`& ${Zl}`]:{".nextui-drip-filler":{opacity:.4,fill:"$secondary"}}}},{flat:!0,color:"success",css:{bg:"$successLight",color:"$success",[`& ${Zl}`]:{".nextui-drip-filler":{opacity:.4,fill:"$success"}}}},{flat:!0,color:"warning",css:{bg:"$warningLight",color:"$warning",[`& ${Zl}`]:{".nextui-drip-filler":{opacity:.4,fill:"$warning"}}}},{flat:!0,color:"error",css:{bg:"$errorLight",color:"$error",[`& ${Zl}`]:{".nextui-drip-filler":{opacity:.4,fill:"$error"}}}},{bordered:!0,color:"gradient",borderWeight:"light",css:{padding:"$borderWeights$light"}},{bordered:!0,color:"gradient",borderWeight:"normal",css:{padding:"$borderWeights$normal"}},{bordered:!0,color:"gradient",borderWeight:"bold",css:{padding:"$borderWeights$bold"}},{bordered:!0,color:"gradient",borderWeight:"extrabold",css:{padding:"$borderWeights$extrabold"}},{bordered:!0,color:"gradient",borderWeight:"black",css:{padding:"$borderWeights$black"}},{auto:!0,color:"gradient",bordered:!0,size:"xs",css:{px:"$1",py:"$1",".nextui-button-text":{px:"$5"}}},{auto:!0,color:"gradient",bordered:!0,size:"sm",css:{px:"$1",py:"$1",".nextui-button-text":{px:"$8"}}},{auto:!0,color:"gradient",bordered:!0,size:"md",css:{px:"$1",py:"$1",".nextui-button-text":{px:"$9"}}},{auto:!0,color:"gradient",bordered:!0,size:"lg",css:{px:"$1",py:"$1",".nextui-button-text":{px:"$14"}}},{auto:!0,color:"gradient",bordered:!0,size:"xl",css:{px:"$1",py:"$1",".nextui-button-text":{px:"$12"}}},{rounded:!0,size:"xs",css:{br:"$pill"}},{rounded:!0,size:"sm",css:{br:"$pill"}},{rounded:!0,size:"md",css:{br:"$pill"}},{rounded:!0,size:"lg",css:{br:"$pill"}},{rounded:!0,size:"xl",css:{br:"$pill"}}],defaultVariants:{color:"default",borderWeight:"normal",animated:!0,size:"md"}},Ne),lc=sc,cc=g().forwardRef((({...e},t)=>{const n=(0,f.useRef)(null);(0,f.useImperativeHandle)(t,(()=>n.current));const r=((e,t)=>{var n,r,o,i,a,s,l,c,u,d,p;return t.isButtonGroup?{...e,auto:!0,shadow:!1,bordered:null!=(n=t.bordered)?n:e.bordered,borderWeight:null!=(r=t.borderWeight)?r:e.borderWeight,ghost:null!=(o=t.ghost)?o:e.ghost,ripple:null!=(i=t.ripple)?i:e.ripple,flat:null!=(a=t.flat)?a:e.flat,animated:null!=(s=t.animated)?s:e.animated,rounded:null!=(l=t.rounded)?l:e.rounded,light:null!=(c=t.light)?c:e.light,size:null!=(u=t.size)?u:e.size,color:null!=(d=t.color)?d:e.color,disabled:null!=(p=t.disabled)?p:e.disabled}:e})(e,g().useContext(nc)),{flat:o,children:i,disabled:a,animated:s,light:l,ripple:c,bordered:u,auto:d,borderWeight:p,onClick:h,icon:m,iconRight:b,ghost:y,clickable:$,className:v,...x}=r,w=m||b,S=Boolean(b),{isFocusVisible:C,focusProps:k}=Vl(),{onClick:E,...T}=ac(!1,n),P=(0,f.useMemo)((()=>a?"disabled":"ready"),[a]);return(0,st.jsxs)(lc,{ref:n,borderWeight:p,auto:d,flat:o,light:l,ghost:y,bordered:u||y,clickable:$,"data-state":P,disabled:a,animated:s,onClick:e=>{!a&&$&&(s&&c&&n.current&&E(e),h&&h(e))},isFocusVisible:C,className:Ui("nextui-button",`nextui-button--${P}`,v),...k,...x,children:[0===g().Children.count(i)?(0,st.jsx)(ic,{isAuto:d,isRight:S,isSingle:!0,children:w}):w?(0,st.jsxs)(st.Fragment,{children:[(0,st.jsx)(ic,{isAuto:d,isRight:S,children:w}),(0,st.jsx)("div",{className:Ui("nextui-button-text",{"nextui-button-text-right":S,"nextui-button-text-left":!S}),children:i})]}):(0,st.jsx)("span",{className:"nextui-button-text",children:i}),(0,st.jsx)(ec,{color:"white",...T})]})}));cc.toString=()=>".nextui-button";const uc=Vi(cc,{clickable:!0,ghost:!1,bordered:!1,ripple:!0,animated:!0,disabled:!1,auto:!1,className:"",type:"button"}),dc=Se("div",{display:"inline-flex",margin:"$3",backgroundColor:"transparent",height:"min-content",[`& ${lc}`]:{".nextui-button-text":{top:0}},variants:{vertical:{true:{fd:"column",[`& ${lc}`]:{"&:not(:first-child)":{btlr:0,btrr:0},"&:not(:last-child)":{bblr:0,bbrr:0}}},false:{fd:"row",[`& ${lc}`]:{"&:not(:first-child)":{btlr:0,bblr:0},"&:not(:last-child)":{btrr:0,bbrr:0}}}},size:{xs:{br:"$xs"},sm:{br:"$sm"},md:{br:"$md"},lg:{br:"$base"},xl:{br:"$xl"}},rounded:{true:{br:"$pill"}},bordered:{true:{bg:"transparent"}},gradient:{true:{pl:0}}},defaultVariants:{vertical:!1},compoundVariants:[{bordered:!0,vertical:!0,css:{[`& ${lc}`]:{"&:not(:last-child)":{borderBottom:"none",paddingBottom:"0"}}}},{bordered:!0,vertical:!1,css:{[`& ${lc}`]:{"&:not(:first-child)":{borderLeft:"none"}}}},{gradient:!0,vertical:!1,css:{[`& ${lc}`]:{"&:not(:last-child)&:not(:first-child)":{pl:0,filter:"hue-rotate(310deg)"},"&:last-child":{pl:0,filter:"hue-rotate(250deg)"}}}}]}),pc=dc,hc=e=>{const{disabled:t,size:n,color:r,bordered:o,ghost:i,light:a,flat:s,shadow:l,auto:c,animated:u,rounded:d,ripple:p,borderWeight:h,children:g,...m}=e,b=(0,f.useMemo)((()=>({disabled:t,size:n,color:r,bordered:o,light:a,ghost:i,flat:s,shadow:l,auto:c,borderWeight:h,animated:u,rounded:d,ripple:p,isButtonGroup:!0})),[t,u,n,p,r,o,a,i,s,h]);return(0,st.jsx)(nc.Provider,{value:b,children:(0,st.jsx)(pc,{size:n,bordered:o||i,gradient:"gradient"===e.color,...m,children:g})})};hc.toString=()=>".nextui-button-group";const fc=Vi(g().memo(hc),{borderWeight:"normal",size:"md",color:"default"});uc.Group=fc;const gc=uc,mc=Ee({"0%":{backgroundPosition:"200% 0"},to:{backgroundPosition:"-200% 0"}}),bc=Se("div",{opacity:0,margin:"0 auto",position:"relative",br:"$lg",overflow:"hidden",maxWidth:"100%",transition:"transform 250ms ease 0ms, opacity 200ms ease-in 0ms","@motion":{transition:"none"},variants:{ready:{true:{opacity:1},false:{opacity:0}}}}),yc=Se("img",{size:"100%",display:"block"}),$c=Se("div",{position:"absolute",top:0,left:0,right:0,bottom:0,size:"100%",borderRadius:"inherit",backgroundImage:"linear-gradient(270deg, $colors$accents1, $colors$accents2, $colors$accents2, $colors$accents1)",backgroundSize:"400% 100%",animation:`${mc} 5s ease-in-out infinite`,transition:"opacity 300ms ease-out"}),vc=g().memo((({opacity:e,css:t,className:n,...r})=>(0,st.jsx)($c,{css:{opacity:e,...t},className:Ui("nextui-image-skeleton",n),...r})));vc.toString=()=>".nextui-image-skeleton";const xc=Vi(vc,{opacity:.5,className:""}),wc=({src:e,width:t,height:n,showSkeleton:r,className:o,maxDelay:i,autoResize:a,objectFit:s,containerCss:l,css:c,...u})=>{const[d,p]=(0,f.useState)(!0),[h,g]=(0,f.useState)(r),{w:b,h:v}=(0,f.useMemo)((()=>({w:t?"number"==typeof t?`${t}px`:t:"auto",h:n?"number"==typeof n?`${n}px`:n:"auto"})),[t,n]),[x,w,S]=m(v),C=(0,f.useRef)(null),[k,E]=y(C),T=r&&!!t&&!!n;(0,f.useEffect)((()=>{C.current&&C.current.complete&&(p(!1),g(!1))})),(0,f.useEffect)((()=>{const e=setTimeout((()=>{T&&g(!1),clearTimeout(e)}),i);return()=>clearTimeout(e)}),[d]),(0,f.useEffect)((()=>{if(!a)return;const e=0===k.width,r="auto"===S.current;!e&&t&&n&&(k.width<t?!r&&w("auto"):r&&w(v))}),[k,t]),$((()=>{a&&E()}));const P=(0,f.useMemo)((()=>d?"loading":"ready"),[d]);return(0,st.jsxs)(bc,{className:Ui("nextui-image-container",`nextui-image--${P}`,o),"data-state":P,ready:!d||h,css:{...l,width:b,height:x},children:[h&&(0,st.jsx)(xc,{opacity:1}),(0,st.jsx)(yc,{ref:C,className:"nextui-image",width:t,height:n,onLoad:()=>{p(!1)},src:e,"data-state":P,alt:u.alt||"",css:{objectFit:s,...c},...u})]})};wc.toString=()=>".nextui-image",wc.defaultProps={showSkeleton:!0,autoResize:!1,objectFit:"scale-down",maxDelay:3e3,className:""};const Sc=g().memo(wc),Cc=Se("div",{d:"flex",w:"100%",h:"auto",flex:"1 1 auto",fd:"column",jc:"inherit",ai:"inherit",ac:"inherit",p:"$sm $lg",oy:"auto",position:"relative",ta:"left","*:first-child":{mt:0},"*:last-child":{mb:0}}),kc=Se("div",{m:0,p:0,br:"$lg",position:"relative",display:"flex",overflow:"hidden",fd:"column",width:"100%",height:"auto",boxSizing:"border-box","@motion":{transition:"none"},".nextui-image":{width:"100%"},[`& ${Zl}`]:{zIndex:"$1",".nextui-drip-filler":{opacity:.25,fill:"$accents6"}},variants:{color:{default:{$$cardColor:"$colors$background",bg:"$$cardColor"},primary:{$$cardColor:"$colors$primary",color:"$white",bg:"$$cardColor"},secondary:{$$cardColor:"$colors$secondary",color:"$white",bg:"$$cardColor"},success:{$$cardColor:"$colors$success",color:"$white",bg:"$$cardColor"},warning:{$$cardColor:"$colors$warning",color:"$white",bg:"$$cardColor"},error:{$$cardColor:"$colors$error",color:"$white",bg:"$$cardColor"},gradient:{$$cardColor:"$colors$gradient",color:"$white",bg:"$$cardColor"}},shadow:{true:{boxShadow:"$md"}},bordered:{true:{borderStyle:"solid",borderColor:"$border"},false:{bw:0}},borderWeight:{light:{bw:"$light"},normal:{bw:"$normal"},bold:{bw:"$bold"},extrabold:{bw:"$extrabold"},black:{bw:"$black"}},animated:{true:{transition:"$default"},false:{transition:"none"}},clickable:{true:{cursor:"pointer",us:"none",WebkitTapHighlightColor:"transparent","&:focus:not(&:focus-visible)":{boxShadow:"none"},"&:focus":{outline:"none",boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},"@safari":{WebkitTapHighlightColor:"transparent",outline:"none"}}},hoverable:{true:{"&:hover":{transform:"translateY(-2px)",boxShadow:"$lg"}}},cover:{true:{".nextui-image":{objectFit:"cover !important"},[`& ${Cc}`]:{p:0}},false:{".nextui-image, .nextui-image-container":{bblr:"0 !important",bbrr:"0 !important"}}},isDark:{true:{}}},compoundVariants:[{color:"default",isDark:!0,css:{$$cardColor:"$colors$accents1"}},{color:"default",shadow:!0,isDark:!1,css:{$$cardColor:"$colors$background",bg:"$$cardColor"}},{color:"default",shadow:!0,isDark:!0,css:{$$cardColor:"$colors$accents1",bg:"$$cardColor"}},{clickable:!0,animated:!0,css:{"&:active":{scale:.97}}}],defaultVariants:{color:"default",borderWeight:"normal",animated:!0,bordered:!1,shadow:!0}}),Ec=Se("div",{w:"100%",display:"flex",flexShrink:0,zIndex:"$1",jc:"flex-start",ai:"center",overflow:"hidden",color:"inherit",fontSize:"$xs",p:"$sm","*:first-child":{mt:0},"*:last-child":{mb:0}}),Tc=Se("div",{w:"100%",h:"auto",p:"$sm $lg",d:"flex",ai:"center",overflow:"hidden",color:"inherit",fontSize:"$xs",bblr:"$lg",bbrr:"$lg","*":{mt:0,mb:0},variants:{blur:{true:{bf:"saturate(180%) blur(10px)",bg:"$$cardColor"}}}}),Pc=g().forwardRef((({...e},t)=>{const{children:n,cover:r,animated:o,ripple:i,clickable:a,onClick:s,preventDefault:l,...c}=e,u=(0,f.useRef)(null);(0,f.useImperativeHandle)(t,(()=>u.current));const{isDark:d}=Ae(),{onClick:p,...h}=ac(!1,u),[g,m]=je(n,Ec),[b,y]=je(g,Tc),[$,v]=je(b,Sc),x=Oe($,Cc),w=Oe(n,Ec),S=e=>{o&&u.current&&p(e),s&&s(e)},{bindings:C}=rt((e=>{a&&S(e)}),[Qe.Enter,Qe.Space],{disableGlobalEvent:!0,preventDefault:l});return(0,st.jsxs)(kc,{ref:u,role:a?"button":"section",cover:r,animated:o,clickable:a,tabIndex:a?0:-1,onClick:S,isDark:d,...c,...C,children:[w?(0,st.jsxs)(st.Fragment,{children:[m,v]}):v,x?$:r?null:(0,st.jsx)(Cc,{children:$}),a&&o&&i&&(0,st.jsx)(ec,{...h}),y]})}));Pc.toString=()=>".nextui-card";const Ic=Vi(Pc,{animated:!0,ripple:!0,cover:!1,preventDefault:!1});Ic.Header=Ec,Ic.Body=Cc,Ic.Footer=Tc,Ic.Image=Sc;const Mc=Ic,Nc={color:"default",labelColor:"default",size:"md",disabledAll:!1,inGroup:!1,values:[]},Rc=g().createContext(Nc),Lc=Se("label",{d:"inline-flex",jc:"flex-start",ai:"center",position:"relative",w:"auto",cursor:"pointer",transition:"$default",zIndex:"$1",opacity:1,$$checkboxBorderColor:"$colors$border","@motion":{transition:"none"},variants:{size:{xs:{$$checkboxSize:"$space$7"},sm:{$$checkboxSize:"$space$8"},md:{$$checkboxSize:"$space$9"},lg:{$$checkboxSize:"$space$10"},xl:{$$checkboxSize:"$space$11"}},disabled:{true:{opacity:.75,cursor:"not-allowed"}},animated:{false:{transition:"none"}}},defaultVariants:{size:"md"}}),Dc=Se("div",{br:"$squared",position:"relative",sizeMin:"$$checkboxSize",opacity:1,transition:"$default",zIndex:"$1","@motion":{transition:"none"},variants:{color:{default:{$$checkboxColor:"$colors$primary",$$checkboxColorHover:"$colors$primaryDark"},primary:{$$checkboxColor:"$colors$primary",$$checkboxColorHover:"$colors$primaryDark"},secondary:{$$checkboxColor:"$colors$secondary",$$checkboxColorHover:"$colors$secondaryDark"},success:{$$checkboxColor:"$colors$success",$$checkboxColorHover:"$colors$successDark"},warning:{$$checkboxColor:"$colors$warning",$$checkboxColorHover:"$colors$warningDark"},error:{$$checkboxColor:"$colors$error",$$checkboxColorHover:"$colors$errorDark"},gradient:{$$checkboxColor:"$colors$gradient",$$checkboxColorHover:"$colors$gradient"}},rounded:{true:{br:"$pill"}},disabled:{true:{opacity:.4,cursor:"not-allowed"}},animated:{false:{transition:"none"}}},defaultVariants:{color:"default"}},Ne),zc=Se("div",{content:"",background:"transparent",position:"absolute",width:"8px",height:"1px",transition:"$default",br:"5px",zIndex:"$1",bottom:"0px","&:after":{content:"",position:"absolute",left:"0px",width:"0%",height:"2px",background:"$white",transition:"$default",br:"5px 0px 0px 5px"},"@motion":{transition:"none","&:after":{transition:"none"}},variants:{indeterminate:{true:{display:"none"}},checked:{true:{"&:after":{width:"100%",transition:"all 0.25s ease 0.1s"}}},animated:{false:{transition:"none","&:after":{transition:"none"}}}},compoundVariants:[{checked:!0,animated:!1,css:{"&:after":{transition:"none"}}}]}),Ac=Se("div",{content:"",position:"absolute",h:"13px",br:"5px",bottom:"0",right:"0",zIndex:"$1",background:"transparent",transition:"$default",width:"2px","&:after":{content:"",position:"absolute",width:"2px",height:"0%",background:"$white",transition:"$default",left:"0px",bottom:"0px",br:"5px 5px 0px 0px"},"@motion":{transition:"none","&:after":{transition:"none"}},variants:{indeterminate:{true:{display:"none"}},checked:{true:{"&:after":{height:"100%",transition:"all 0.2s ease 0.3s"}}},animated:{false:{transition:"none","&:after":{transition:"none"}}}},compoundVariants:[{checked:!0,animated:!1,css:{"&:after":{transition:"none"}}}]}),Kc=Se("i",{size:"$$checkboxSize",dflex:"center",br:"inherit",opacity:0,zIndex:"$2",transition:"transform 0.35s ease","&:after":{content:"",opacity:0,position:"relative",width:"10px",height:"2px",br:"1px",background:"$white",display:"block"},"@motion":{transition:"none","&:after":{transition:"none"}},variants:{indeterminate:{true:{transform:"rotate(0deg)",width:"auto",height:"auto",margin:"0px","&:after":{opacity:1}},false:{width:"8px",height:"14px",display:"block",position:"relative",marginTop:"-4px"}},size:{xs:{marginTop:"-2px",transform:"rotate(45deg) scale(0.5)"},sm:{marginTop:"-2px",transform:"rotate(45deg) scale(0.5)"},md:{transform:"rotate(45deg) scale(0.8)"},lg:{transform:"rotate(45deg)"},xl:{transform:"rotate(45deg)"}},checked:{true:{opacity:1}},animated:{false:{transition:"none","&:after":{transition:"none"}}}},compoundVariants:[{indeterminate:!0,size:"xs",css:{scale:"0.5"}},{indeterminate:!0,size:"sm",css:{scale:"0.5"}},{indeterminate:!0,size:"md",css:{scale:"0.8"}},{indeterminate:!0,size:"lg",css:{transform:"none"}},{indeterminate:!0,size:"lg",css:{transform:"none"}}]}),Oc=Se("div",{size:"100%",position:"absolute",pe:"none",boxSizing:"border-box",dflex:"center",zIndex:"-$1",br:"inherit",transition:"$default",color:"$$checkboxBorderColor","&:before":{content:"",position:"absolute",top:"0px",left:"0px",size:"100%",br:"inherit",transition:"$transitions$default",zIndex:"-$1",border:"$borderWeights$normal solid currentColor",boxSizing:"border-box"},"&:after":{content:"",position:"absolute",top:"0px",left:"0px",size:"100%",bg:"$$checkboxColor",scale:.5,br:"inherit",opacity:0,transition:"$default",zIndex:"-$1"},"@motion":{transition:"none","&:before":{transition:"none"},"&:after":{transition:"none"}},variants:{checked:{true:{"&:before":{opacity:0,scale:1.2},"&:after":{opacity:1,scale:1}}},animated:{false:{transition:"none","&:before":{transition:"none"},"&:after":{transition:"none"}}}}}),jc=Se("span",{position:"relative",dflex:"center",color:"$text",opacity:1,pl:"calc($$checkboxSize * 0.57)",ln:"$$checkboxSize",fontSize:"$$checkboxSize",us:"none","@motion":{"&:before":{transition:"none"}},variants:{color:{default:{color:"$text"},primary:{color:"$primary"},secondary:{color:"$secondary"},success:{color:"$success"},warning:{color:"$warning"},error:{color:"$error"}},line:{true:{"&:before":{content:"",position:"absolute",width:"0px",height:"2px",background:"$text",transition:"$default"}}},checked:{true:{"&:before":{opacity:.8}}},disabled:{true:{color:"$accents4"}},animated:{false:{"&:before":{transition:"none"}}}},compoundVariants:[{line:!0,checked:!0,css:{opacity:.6,"&:before":{w:"calc(100% - 10px)"}}}]}),_c=Se("input",{position:"absolute",width:"100%",height:"100%",top:"0px",left:"0px",margin:"0px",padding:"0px",opacity:0,zIndex:"$1",cursor:"pointer","&:active":{[`& ~${Oc}:before`]:{bg:"$border"}},"&:hover":{[`& ~${Oc}:before`]:{bg:"$$checkboxBorderColor",border:"2px solid transparent"},[`& ~${Oc}:after`]:{bg:"$$checkboxColorHover"}},"&:disabled":{cursor:"not-allowed"}}),Fc=Se("div",{display:"flex",flexDirection:"column",variants:{size:{xs:{$$checkboxSize:"$space$7"},sm:{$$checkboxSize:"$space$8"},md:{$$checkboxSize:"$space$9"},lg:{$$checkboxSize:"$space$10"},xl:{$$checkboxSize:"$space$11"}},row:{true:{flexDirection:"row",mt:0,[`& ${Lc}`]:{mr:"$$checkboxSize"}},false:{mr:0,flexDirection:"column",[`& ${Lc}`]:{mt:"$$checkboxSize"}}}},defaultVariants:{row:!1}}),Wc=g().forwardRef((({checked:e,initialChecked:t,line:n,rounded:r,indeterminate:o,disabled:i,onChange:a,size:s,className:l,children:c,label:u,color:d,labelColor:p,animated:h,value:m,preventDefault:b,...y},$)=>{const[v,x]=(0,f.useState)(t),[w,S]=(0,f.useState)(o),C=(0,f.useRef)(null);(0,f.useImperativeHandle)($,(()=>null==C?void 0:C.current));const{color:k,labelColor:E,size:T,updateState:P,inGroup:I,disabledAll:M,values:N}=g().useContext(Rc),{isFocusVisible:R,focusProps:L}=Vl(),D=I&&M||i,z="default"!==d?d:k,A="md"!==s?s:T,K="default"!==p?p:E;I&&(0,f.useEffect)((()=>{const e=N.includes(m);e!==v&&x(e)}),[N.join(",")]),(0,f.useEffect)((()=>{S(o)}),[o]);const O=(0,f.useCallback)((e=>{if(D)return;const t={target:{checked:!v},stopPropagation:e.stopPropagation,preventDefault:e.preventDefault,nativeEvent:e};I&&P&&P&&P(m,!v),w?(S(!1),x(!0)):x(!v),a&&a(t)}),[P,a,D,v,w]);(0,f.useEffect)((()=>{void 0!==e&&x(e)}),[e]);const j=(0,f.useMemo)((()=>v&&w?"mixed":v?"checked":"uncheked"),[v,w]);return(0,st.jsxs)(Lc,{size:A,disabled:D,animated:h,className:Ui("nextui-checkbox-label",`nextui-checkbox--${j}`,l),css:y.css,children:[(0,st.jsxs)(Dc,{className:"nextui-checkbox-container",tabIndex:D?-1:0,color:z,rounded:r,disabled:D,animated:h,isFocusVisible:R,...L,children:[(0,st.jsx)(_c,{ref:C,type:"checkbox",className:"nextui-checkbox-input",tabIndex:-1,"data-state":j,disabled:D,checked:v,"aria-checked":v&&w?"mixed":v,"aria-disabled":D,onChange:O,...y}),(0,st.jsx)(Oc,{checked:v,animated:h,className:"nextui-checkbox-mask",children:(0,st.jsxs)(Kc,{size:A,indeterminate:w,checked:v,animated:h,className:"nextui-icon-check",children:[(0,st.jsx)(zc,{indeterminate:w,checked:v,animated:h,className:"nextui-icon-check-line1"}),(0,st.jsx)(Ac,{indeterminate:w,checked:v,animated:h,className:"nextui-icon-check-line2"})]})})]}),(c||u)&&(0,st.jsx)(jc,{className:"nextui-checkbox-text",color:K,line:n,checked:v,disabled:D,animated:h,children:c||u})]})}));Wc.defaultProps={value:"",size:"md",color:"default",labelColor:"default",disabled:!1,preventDefault:!0,initialChecked:!1,indeterminate:!1,rounded:!1,line:!1,animated:!0,className:""},Wc.toString=()=>".nextui-checkbox";const Bc=Wc,Vc=({color:e,labelColor:t,disabled:n,onChange:r,value:o,size:i,children:a,className:s,style:l,...c})=>{const[u,d]=(0,f.useState)([]),p=(e,t)=>{const n=u.filter((t=>t!==e)),o=t?[...n,e]:n;d(o),r&&r(o)},h=(0,f.useMemo)((()=>({updateState:p,color:e,labelColor:t,size:i,disabledAll:n,inGroup:!0,values:u})),[n,u]);return(0,f.useEffect)((()=>{d(o)}),[o.join(",")]),(0,st.jsx)(Rc.Provider,{value:h,children:(0,st.jsx)(Fc,{role:"group",size:i,...c,children:a})})};Vc.toString=()=>".nextui-checkbox-group";const Hc=Vi(Vc,{color:"default",labelColor:"default",disabled:!1,size:"md"});Bc.Group=Hc;const Uc=Bc,Gc=Se("code",{}),Yc=Se("pre",{width:"initial",mw:"100"}),Xc=({block:e,children:t,...n})=>e?(0,st.jsx)(Yc,{...n,children:(0,st.jsx)(Gc,{children:t})}):(0,st.jsx)(Gc,{...n,children:t});Xc.toString=()=>".nextui-code";const Jc=Vi(g().memo(Xc),{block:!1}),qc=Se("div",{float:"left",boxSizing:"border-box",pl:"calc($$rowGap / 2)",pr:"calc($$rowGap / 2)"}),Zc=qc,Qc=({children:e,span:t,offset:n,css:r,...o})=>(0,st.jsx)(Zc,{css:{width:100/12*t+"%",marginLeft:100/12*n+"%",...r},...o,children:e});Qc.toString=()=>".nextui-column";const eu=Vi(g().memo(Qc),{span:12,offset:0}),tu=Se("div",{transition:"$default",".nextui-collapse-title-content":{w:"100%","h1,h2,h3,h4,h5,h6,p,span,b":{margin:0}},".nextui-collapse-title-container":{d:"flex",jc:"space-between",ai:"center"},".nextui-collapse-title":{color:"$foreground"},".nextui-collapse-subtitle":{color:"$accents5",margin:0,"*":{margin:0}},".nextui-collapse-title-content-left":{mr:"$sm"},".nextui-collapse-title-content-left, .nextui-collapse-title-content-right":{d:"flex",ai:"center"},"@motion":{transition:"none",".nextui-collapse-title-content-right ":{svg:{transition:"none"}}},variants:{shadow:{true:{border:"none",boxShadow:"$md",br:"$lg",p:"0 $lg",bg:"$background"}},borderWeight:{light:{$$collapseBorderWidth:"$borderWeights$light"},normal:{$$collapseBorderWidth:"$borderWeights$normal"},bold:{$$collapseBorderWidth:"$borderWeights$bold"},extrabold:{$$collapseBorderWidth:"$borderWeights$extrabold"},black:{$$collapseBorderWidth:"$borderWeights$black"}},divider:{true:{borderTop:"$$collapseBorderWidth solid $border",borderBottom:"$$collapseBorderWidth solid $border"}},bordered:{true:{br:"$lg",p:"0 $lg",border:"$$collapseBorderWidth solid $border"}},animated:{true:{".nextui-collapse-title-content-right ":{svg:{transition:"transform 200ms ease"}}},false:{transition:"none"}},visible:{true:{".nextui-collapse-title-content-right ":{svg:{transform:"rotateZ(-90deg)"}}},false:{".nextui-collapse-title-content-right":{svg:{transform:"rotateZ(0deg)"}}}},isDark:{true:{}}},defaultVariants:{borderWeight:"light"},compoundVariants:[{isDark:!0,shadow:!0,css:{bg:"$accents1"}}]},Me),nu=Se("div",{w:"100%",d:"block",ta:"left",bg:"transparent",border:"none",cursor:"pointer",outline:"none",padding:"$lg 0",variants:{disabled:{true:{cursor:"not-allowed",".nextui-collapse-title, .nextui-collapse-subtitle":{opacity:.5}}}}},Ne),ru=Se("div",{fontSize:"$base",lineHeight:"$lg",pb:"$lg","*:first-child":{mt:0},"*:last-child":{mb:0}}),ou=Se("svg",{path:{stroke:"$accents5"}}),iu=Se("div",{width:"auto",padding:"0 $sm","div + div":{borderTop:"none"},[`& ${tu}:first-child`]:{borderTop:"none"},[`& ${tu}:last-child`]:{borderBottom:"none"},variants:{borderWeight:{light:{$$collapseGroupBorderWidth:"$borderWeights$light"},normal:{$$collapseGroupBorderWidth:"$borderWeights$normal"},bold:{$$collapseGroupBorderWidth:"$borderWeights$bold"},extrabold:{$$collapseGroupBorderWidth:"$borderWeights$extrabold"},black:{$$collapseGroupBorderWidth:"$borderWeights$black"}},shadow:{true:{br:"$lg",border:"none",boxShadow:"$md",p:"0 $lg",bg:"$background"}},bordered:{true:{br:"$lg",p:"0 $lg",border:"$$collapseGroupBorderWidth solid $border"}},splitted:{true:{[`& ${tu}`]:{br:"$lg",border:"none",bg:"$background",boxShadow:"$md",p:"0 $lg",margin:"$md 0"}}},isDark:{true:{}}},defaultVariants:{borderWeight:"light",shadow:!1,bordered:!1,splitted:!1},compoundVariants:[{isDark:!0,shadow:!0,css:{bg:"$accents1"}},{isDark:!0,splitted:!0,css:{[`& ${tu}`]:{bg:"$accents1"}}}]}),au=({...e})=>(0,st.jsx)(ou,{role:"presentation",focusable:"false",className:"nextui-collapse-icon",width:"20",height:"20",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,st.jsx)("path",{d:"M15.5 19l-7-7 7-7",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})});au.toString=()=>".nextui-collapse-icon";const su=g().memo(au),lu=Se("div",{p:0,m:0,h:0,opacity:0,overflow:"hidden",variants:{expanded:{true:{opacity:1}}}}),cu=Vi((({isExpanded:e,delay:t,animated:n,css:r,children:o})=>{const[i,a]=(0,f.useState)(e?"auto":"0"),[s,l]=(0,f.useState)(e),c=(0,f.useRef)(null),u=(0,f.useRef)(),d=(0,f.useRef)(),p=(0,f.useRef)(),[h,g]=y(c);return(0,f.useEffect)((()=>a(`${h.height}px`)),[h.height]),(0,f.useEffect)((()=>{if(e!==s)return e||(g(),a(`${h.height}px`)),u.current=window.setTimeout((()=>{l(e),clearTimeout(u.current)}),30),e?p.current=window.setTimeout((()=>{a("auto"),clearTimeout(p.current)}),t):d.current=window.setTimeout((()=>{clearTimeout(d.current)}),t/2),()=>{clearTimeout(u.current),clearTimeout(d.current),clearTimeout(p.current)}}),[e]),(0,st.jsx)(lu,{expanded:s,css:{height:s?i:"0",transition:n?`height ${t}ms ease 0ms,\n opacity ${1.5*t}ms ease 0ms;`:"none",...r},children:(0,st.jsx)("div",{ref:c,className:"nextui-expand-content",children:o})})}),{isExpanded:!1,animated:!0,delay:200}),uu={values:[]},du=g().createContext(uu);function pu(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var hu={};pu(hu,"SSRProvider",(()=>mu)),pu(hu,"useSSRSafeId",(()=>yu)),pu(hu,"useIsSSR",(()=>$u));const fu={prefix:String(Math.round(1e10*Math.random())),current:0},gu=g().createContext(fu);function mu(e){let t=(0,f.useContext)(gu),n=(0,f.useMemo)((()=>({prefix:t===fu?"":`${t.prefix}-${++t.current}`,current:0})),[t]);return g().createElement(gu.Provider,{value:n},e.children)}let bu=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function yu(e){let t=(0,f.useContext)(gu);return t!==fu||bu||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),(0,f.useMemo)((()=>e||`react-aria${t.prefix}-${++t.current}`),[e])}function $u(){let e=(0,f.useContext)(gu)!==fu,[t,n]=(0,f.useState)(e);return"undefined"!=typeof window&&e&&(0,f.useLayoutEffect)((()=>{n(!1)}),[]),t}function vu(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var xu={};vu(xu,"useId",(()=>Cu)),vu(xu,"mergeIds",(()=>ku)),vu(xu,"useSlotId",(()=>Eu)),vu({},"useLayoutEffect",(()=>wu));const wu="undefined"!=typeof window?g().useLayoutEffect:()=>{};let Su=new Map;function Cu(e){let t=(0,f.useRef)(!0);t.current=!0;let[n,r]=(0,f.useState)(e),o=(0,f.useRef)(null),i=yu(n),a=e=>{t.current?o.current=e:r(e)};return Su.set(i,a),wu((()=>{t.current=!1}),[a]),wu((()=>{let e=i;return()=>{Su.delete(e)}}),[i]),(0,f.useEffect)((()=>{let e=o.current;e&&(r(e),o.current=null)}),[r,a]),i}function ku(e,t){if(e===t)return e;let n=Su.get(e);if(n)return n(t),t;let r=Su.get(t);return r?(r(e),e):t}function Eu(e=[]){let t=Cu(),[n,r]=gd(t),o=(0,f.useCallback)((()=>{r((function*(){yield t,yield document.getElementById(t)?t:null}))}),[t,r]);return wu(o,[t,o,...e]),n}function Tu(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function Pu(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],o=r[e];"function"==typeof n&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Tu(n,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof o?"id"===e&&n&&o?t.id=ku(n,o):t[e]=void 0!==o?o:n:t[e]=ya(n,o)}}return t}vu({},"chain",(()=>Tu)),vu({},"mergeProps",(()=>Pu)),vu({},"filterDOMProps",(()=>Ru));const Iu=new Set(["id"]),Mu=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Nu=/^(data-.*)$/;function Ru(e,t={}){let{labelable:n,propNames:r}=t,o={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Iu.has(t)||n&&Mu.has(t)||r?.has(t)||Nu.test(t))&&(o[t]=e[t]);return o}function Lu(e){if(function(){if(null==Du){Du=!1;try{document.createElement("div").focus({get preventScroll(){return Du=!0,!0}})}catch(e){}}return Du}())e.focus({preventScroll:!0});else{let t=function(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}vu({},"focusWithoutScrolling",(()=>Lu));let Du=null;function zu(e,t,n="horizontal"){let r=e.getBoundingClientRect();return t?"horizontal"===n?r.right:r.bottom:"horizontal"===n?r.left:r.top}vu({},"getOffset",(()=>zu));var Au={};vu(Au,"clamp",(()=>wa)),vu(Au,"snapValueToStep",(()=>Sa)),vu({},"runAfterTransition",(()=>_u));let Ku=new Map,Ou=new Set;function ju(){if("undefined"==typeof window)return;let e=t=>{let n=Ku.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),Ku.delete(t.target)),0===Ku.size)){for(let e of Ou)e();Ou.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=Ku.get(t.target);n||(n=new Set,Ku.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function _u(e){requestAnimationFrame((()=>{0===Ku.size?e():Ou.add(e)}))}"undefined"!=typeof document&&("loading"!==document.readyState?ju():document.addEventListener("DOMContentLoaded",ju)),vu({},"useDrag1D",(()=>Wu));const Fu=[];function Wu(e){console.warn("useDrag1D is deprecated, please use `useMove` instead https://react-spectrum.adobe.com/react-aria/useMove.html");let{containerRef:t,reverse:n,orientation:r,onHover:o,onDrag:i,onPositionChange:a,onIncrement:s,onDecrement:l,onIncrementToMax:c,onDecrementToMin:u,onCollapseToggle:d}=e,p=e=>{let o=zu(t.current,n,r),i=(e=>"horizontal"===r?e.clientX:e.clientY)(e);return n?o-i:i-o},h=(0,f.useRef)(!1),g=(0,f.useRef)(0),m=(0,f.useRef)({onPositionChange:a,onDrag:i});m.current.onDrag=i,m.current.onPositionChange=a;let b=e=>{e.preventDefault();let t=p(e);h.current||(h.current=!0,m.current.onDrag&&m.current.onDrag(!0),m.current.onPositionChange&&m.current.onPositionChange(t)),g.current!==t&&(g.current=t,a&&a(t))},y=e=>{const t=e.target;h.current=!1;let n=p(e);m.current.onDrag&&m.current.onDrag(!1),m.current.onPositionChange&&m.current.onPositionChange(n),Fu.splice(Fu.indexOf(t),1),window.removeEventListener("mouseup",y,!1),window.removeEventListener("mousemove",b,!1)};return{onMouseDown:e=>{const t=e.currentTarget;Fu.some((e=>t.contains(e)))||(Fu.push(t),window.addEventListener("mousemove",b,!1),window.addEventListener("mouseup",y,!1))},onMouseEnter:()=>{o&&o(!0)},onMouseOut:()=>{o&&o(!1)},onKeyDown:e=>{switch(e.key){case"Left":case"ArrowLeft":"horizontal"===r&&(e.preventDefault(),l&&!n?l():s&&n&&s());break;case"Up":case"ArrowUp":"vertical"===r&&(e.preventDefault(),l&&!n?l():s&&n&&s());break;case"Right":case"ArrowRight":"horizontal"===r&&(e.preventDefault(),s&&!n?s():l&&n&&l());break;case"Down":case"ArrowDown":"vertical"===r&&(e.preventDefault(),s&&!n?s():l&&n&&l());break;case"Home":e.preventDefault(),u&&u();break;case"End":e.preventDefault(),c&&c();break;case"Enter":e.preventDefault(),d&&d()}}}}function Bu(){let e=(0,f.useRef)(new Map),t=(0,f.useCallback)(((t,n,r,o)=>{let i=o?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,r,o)}),[]),n=(0,f.useCallback)(((t,n,r,o)=>{let i=e.current.get(r)?.fn||r;t.removeEventListener(n,i,o),e.current.delete(r)}),[]),r=(0,f.useCallback)((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return(0,f.useEffect)((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Vu(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;if(n=Cu(n),o&&r){let e=new Set([...o.trim().split(/\s+/),n]);o=[...e].join(" ")}else o&&(o=o.trim().split(/\s+/).join(" "));return r||o||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function Hu(e){const t=(0,f.useRef)();return wu((()=>{e&&("function"==typeof e?e(t.current):e.current=t.current)}),[e]),t}function Uu(e,t){const n=(0,f.useRef)(!0);(0,f.useEffect)((()=>{n.current?n.current=!1:e()}),t)}function Gu(e){const{ref:t,onResize:n}=e;(0,f.useEffect)((()=>{let e=t?.current;if(e){if(void 0===window.ResizeObserver)return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)};{const t=new window.ResizeObserver((e=>{e.length&&n()}));return t.observe(e),()=>{e&&t.unobserve(e)}}}}),[n,t])}function Yu(e,t){wu((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}function Xu(e){for(;e&&!Ju(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function Ju(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}vu({},"useGlobalListeners",(()=>Bu)),vu({},"useLabels",(()=>Vu)),vu({},"useObjectRef",(()=>Hu)),vu({},"useUpdateEffect",(()=>Uu)),vu({},"useResizeObserver",(()=>Gu)),vu({},"useSyncRef",(()=>Yu)),vu({},"getScrollParent",(()=>Xu)),vu({},"useViewportSize",(()=>Zu));let qu="undefined"!=typeof window&&window.visualViewport;function Zu(){let[e,t]=(0,f.useState)((()=>Qu()));return(0,f.useEffect)((()=>{let e=()=>{t((e=>{let t=Qu();return t.width===e.width&&t.height===e.height?e:t}))};return qu?qu.addEventListener("resize",e):window.addEventListener("resize",e),()=>{qu?qu.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),e}function Qu(){return{width:qu?.width||window.innerWidth,height:qu?.height||window.innerHeight}}vu({},"useDescription",(()=>nd));let ed=0;const td=new Map;function nd(e){let[t,n]=(0,f.useState)(null);return wu((()=>{if(!e)return;let t=td.get(e);if(t)n(t.element.id);else{let r="react-aria-description-"+ed++;n(r);let o=document.createElement("div");o.id=r,o.style.display="none",o.textContent=e,document.body.appendChild(o),t={refCount:0,element:o},td.set(e,t)}return t.refCount++,()=>{0==--t.refCount&&(t.element.remove(),td.delete(e))}}),[e]),{"aria-describedby":e?t:void 0}}var rd={};function od(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.userAgent)}function id(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.platform)}function ad(){return id(/^Mac/)}function sd(){return id(/^iPhone/)}function ld(){return id(/^iPad/)||ad()&&navigator.maxTouchPoints>1}function cd(){return sd()||ld()}function ud(){return ad()||cd()}function dd(){return od(/AppleWebKit/)&&!pd()}function pd(){return od(/Chrome/)}function hd(){return od(/Android/)}function fd(e,t,n,r){let o=(0,f.useRef)(n);o.current=n;let i=null==n;(0,f.useEffect)((()=>{if(i)return;let n=e.current,a=e=>o.current.call(this,e);return n.addEventListener(t,a,r),()=>{n.removeEventListener(t,a,r)}}),[e,t,r,i])}function gd(e){let[t,n]=(0,f.useState)(e),r=(0,f.useRef)(t),o=(0,f.useRef)(null);r.current=t;let i=(0,f.useRef)(null);i.current=()=>{let e=o.current.next();e.done?o.current=null:t===e.value?i.current():n(e.value)},wu((()=>{o.current&&i.current()}));let a=(0,f.useCallback)((e=>{o.current=e(r.current),i.current()}),[o,i]);return[t,a]}function md(e,t){let n=bd(e,t,"left"),r=bd(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,l=a+e.offsetWidth,c=s+e.offsetHeight;n<=a?a=n:n+o>l&&(a+=n+o-l),r<=s?s=r:r+i>c&&(s+=r+i-c),e.scrollLeft=a,e.scrollTop=s}function bd(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}vu(rd,"isMac",(()=>ad)),vu(rd,"isIPhone",(()=>sd)),vu(rd,"isIPad",(()=>ld)),vu(rd,"isIOS",(()=>cd)),vu(rd,"isAppleDevice",(()=>ud)),vu(rd,"isWebKit",(()=>dd)),vu(rd,"isChrome",(()=>pd)),vu(rd,"isAndroid",(()=>hd)),vu({},"useEvent",(()=>fd)),vu({},"useValueEffect",(()=>gd)),vu({},"scrollIntoView",(()=>md));const yd="nextui-collapse",$d=({children:e,title:t,subtitle:n,expanded:r,shadow:o,className:i,divider:a,arrowIcon:s,showArrow:l,disabled:c,onChange:u,bordered:d,contentLeft:p,preventDefault:h,animated:b,borderWeight:y,index:$,...v})=>{const[x,w,S]=m(r),{isDark:C}=Ae(),{values:k,divider:E,animated:T,updateValues:P}=g().useContext(du),{isFocusVisible:I,focusProps:M}=Vl();t||((e,t)=>{const n=`[Next UI]${t?` [${t}]`:" "}: ${e}`;"undefined"!=typeof console&&(Ye[n]||(Ye[n]=!0,console.warn(n)))})('"title" is required.',"Collapse"),(0,f.useEffect)((()=>{x!==r&&w(r)}),[r]),(0,f.useEffect)((()=>{if(!k.length)return;const e=!!k.find((e=>e===$));w(e)}),[k.join(",")]);const N=Cu(),R=Cu(),L=(0,f.useMemo)((()=>l?s||(0,st.jsx)(su,{}):null),[s,l]),D=void 0===E?a:E,z=(0,f.useMemo)((()=>void 0===T?b:T),[T,b]),A=e=>{if(c)return;const t=!S.current;w(t),P&&P($,t),u&&u(e,$,t)},{bindings:K}=rt((e=>{A(e)}),[Qe.Enter,Qe.Space],{disableGlobalEvent:!0,preventDefault:h}),O=(0,f.useMemo)((()=>x?"open":"closed"),[x]);return(0,st.jsxs)(tu,{tabIndex:-1,shadow:o,bordered:d,animated:z,divider:D,borderWeight:y,visible:x,"data-state":O,className:Ui(i,yd,`${yd}--${O}`),isDark:C,...v,children:[(0,st.jsx)(nu,{role:"button",tabIndex:c?-1:0,id:N,className:`${yd}-view`,"data-state":O,disabled:c,"aria-disabled":c,"aria-expanded":x,"aria-controls":R,isFocusVisible:I,onClick:A,...M,...K,children:(0,st.jsxs)("div",{className:Ui(`${yd}-title-container`),children:[p&&(0,st.jsx)("div",{className:`${yd}-title-content-left`,children:p}),(0,st.jsxs)("div",{className:`${yd}-title-content`,children:[g().isValidElement(t)?t:(0,st.jsx)("h3",{className:`${yd}-title`,children:t}),n&&(0,st.jsx)("div",{className:`${yd}-subtitle`,children:n})]}),(0,st.jsx)("div",{className:`${yd}-title-content-right`,children:L})]})}),(0,st.jsx)(cu,{isExpanded:x,animated:z,children:(0,st.jsx)(ru,{role:"region",tabIndex:-1,id:R,"aria-labelledby":N,className:`${yd}-content`,children:e})})]})};$d.toString=()=>".nextui-collapse";const vd=Vi($d,{shadow:!1,divider:!0,bordered:!1,showArrow:!0,animated:!0,disabled:!1,preventDefault:!0,expanded:!1}),xd=({children:e,accordion:t,animated:n,divider:r,onChange:o,...i})=>{const[a,s,l]=m([]),{isDark:c}=Ae(),u=(e,n)=>{const r=l.current.find((t=>t===e));if(o&&o(e,n),t)return s(n?[e]:[]);if(n){if(r)return;return s([...l.current,e])}s(l.current.filter((t=>t!==e)))},d=(0,f.useMemo)((()=>({values:a,updateValues:u,divider:r,animated:n})),[a.join(",")]),p=(0,f.useMemo)((()=>((e,t=[])=>{if(0===g().Children.count(e))return[];const n=0===t.length,r=(e,t={})=>g().cloneElement(e,t);let o=0;return g().Children.map(e,(e=>{if(!g().isValidElement(e))return e;if(o+=1,n)return r(e,{index:o});const i=t.find((t=>t===e.type));return i?r(e,{index:o}):(o-=1,e)}))})(e,[vd])),[e]);return(0,st.jsx)(du.Provider,{value:d,children:(0,st.jsx)(iu,{isDark:c,...i,children:p})})};xd.toString=()=>".nextui-collapse-group";const wd=Vi(xd,{accordion:!0});vd.Group=wd;const Sd=vd,Cd=Se("div",{w:"100%",mr:"auto",ml:"auto",variants:{fluid:{true:{maxWidth:"100%"}},responsive:{true:{"@xs":{maxWidth:"$breakpoints$xs"},"@sm":{maxWidth:"$breakpoints$sm"},"@md":{maxWidth:"$breakpoints$md"},"@lg":{maxWidth:"$breakpoints$lg"},"@xl":{maxWidth:"$breakpoints$xl"}}}},defaultVariants:{fluid:!1,responsive:!0}}),kd=Cd,Ed=({xs:e,sm:t,md:n,lg:r,xl:o,wrap:i,gap:a,as:s,display:l,justify:c,direction:u,alignItems:d,alignContent:p,children:h,responsive:g,fluid:m,css:b,...y})=>{const $=(0,f.useMemo)((()=>`calc(${a} * $space$sm)`),[a]);return(0,st.jsx)(kd,{css:{px:$,maxWidth:e?"$breakpoints$xs":t?"$breakpoints$sm":n?"$breakpoints$md":r?"$breakpoints$lg":o?"$breakpoints$xl":"",alignItems:d,alignContent:p,flexWrap:i,display:l,justifyContent:c,flexDirection:u,...b},responsive:g,fluid:m,...y,children:h})};Ed.toString=()=>".nextui-container",Ed.defaultProps={gap:2,xs:!1,sm:!1,md:!1,lg:!1,xl:!1,responsive:!0,fluid:!1,wrap:"wrap",as:"div",display:"block"};const Td=g().memo(Ed),Pd=e=>`calc(${15.25*e}pt + 1px * ${e-1})`,Id=Se("div",{width:"100%",maxWidth:"100%",position:"relative",variants:{color:{default:{bg:"$border"},primary:{bg:"$primary"},secondary:{bg:"$secondary"},success:{bg:"$success"},warning:{bg:"$warning"},error:{bg:"$error"}}},defaultVariants:{color:"default"}}),Md=Se("span",{position:"absolute",left:"50%",top:"50%",minHeight:"100%",display:"inline-flex",jc:"center",ai:"center",transform:"translate(-50%, -50%)",padding:"0 $lg",fontSize:"$base",fontWeight:"bold",textTransform:"capitalize",backgroundColor:"$background",zIndex:"$1",variants:{color:{default:{color:"$text"},primary:{color:"$primary"},secondary:{color:"$secondary"},success:{color:"$success"},warning:{color:"$warning"},error:{color:"$error"}}}}),Nd=({height:e,x:t,y:n,align:r,children:o,textColor:i,css:a,...s})=>{const l=(0,f.useMemo)((()=>r&&"center"!==r?"left"===r||"start"===r?{transform:"translateY(-50%)",left:"7%"}:{transform:"translateY(-50%)",left:"auto",right:"7%"}:""),[r]),c=n?Pd(n/2):0,u=t?Pd(t/2):0;return(0,st.jsx)(Id,{role:"separator",css:{margin:`${c} ${u}`,height:`calc(${e} * 1px)`,...a},...s,children:o&&(0,st.jsx)(Md,{css:{...l},color:i,className:"nextui-divider-text",children:o})})};Nd.toString=()=>".nextui-divider";const Rd=Vi(g().memo(Nd),{x:0,y:0,height:1,align:"center"}),Ld=Se("div",{}),Dd=Se("div",{margin:0,boxSizing:"border-box",padding:"$$gridGapUnit"}),zd=e=>{const t=0===e?"none":"inherit";if("number"==typeof e){const n=100/12*e,r=n>100?"100%":n<0?"0":`${n}%`;return{flexGrow:0,display:t,maxWidth:r,flexBasis:r}}return{flexGrow:1,display:t,maxWidth:"100%",flexBasis:"0"}},Ad=g().forwardRef((({xs:e,sm:t,md:n,lg:r,xl:o,css:i,justify:a,direction:s,alignItems:l,alignContent:c,children:u,className:d,...p},h)=>{const g=(0,f.useMemo)((()=>{const i={xs:e,sm:t,md:n,lg:r,xl:o};return Object.keys(i).reduce(((e,t)=>void 0!==i[t]&&!1!==i[t]?`${e} ${t}`:e),"").trim()}),[e,t,n,r,o]);return(0,st.jsx)(Dd,{ref:h,className:Ui("nextui-grid-item",g,d),css:{alignItems:l,alignContent:c,justifyContent:a,flexDirection:s,"&.xs":{...zd(e)},"@xsMax":{"&.xs":{...zd(e)}},"@sm":{"&.sm":{...zd(t)}},"@md":{"&.md":{...zd(n)}},"@lg":{"&.lg":{...zd(r)}},"@xl":{"&.xl":{...zd(o)}},...i},...p,children:u})}));Ad.displayName="NextUI - Grid Item",Ad.toString=()=>".nextui-grid-item";const Kd=Vi(Ad,{xs:!1,sm:!1,md:!1,lg:!1,xl:!1,className:""}),Od=g().forwardRef((({children:e,css:t,...n},r)=>(0,st.jsx)(Kd,{ref:r,css:{...t},...n,children:e})));Od.displayName="NextUI - Grid",Od.toString=()=>".nextui-grid";const jd=Od,_d=g().forwardRef((({gap:e,wrap:t,css:n,children:r,className:o,...i},a)=>{const s=(0,f.useMemo)((()=>`calc(${e} * $space$3)`),[e]);return(0,st.jsx)(Kd,{ref:a,className:Ui("nextui-grid-container",o),css:{$$gridGapUnit:s,display:"flex",flexWrap:t,boxZizing:"border-box",margin:"calc(-1 * $$gridGapUnit)",width:"calc(100% + $$gridGapUnit * 2)",...n},...i,children:r})}));_d.displayName="NextUI - GridContainer",_d.toString=()=>".nextui-grid-container";const Fd=Vi(_d,{gap:0,wrap:"wrap",className:""});jd.Container=Fd;const Wd=jd,Bd=Se("span",{size:"1px",variants:{inline:{true:{display:"inline-block"},false:{display:"block"}}},defaultVariants:{inline:!1}}),Vd=({x:e,y:t,inline:n,css:r,...o})=>{const i=Pd(e),a=Pd(t);return(0,st.jsx)(Bd,{css:{marginLeft:`${i} !important`,marginTop:`${a} !important`,...r},"aria-hidden":"true",...o})};Vd.toString=()=>".nextui-spacer";const Hd=Vi(g().memo(Vd),{x:1,y:1});var Ud=o(156),Gd=o.n(Ud);const Yd=Vi((({children:e,className:t,visible:n,enterTime:r,leaveTime:o,clearTime:i,name:a,...s})=>{const[l,c]=(0,f.useState)(""),[u,d]=(0,f.useState)(n);return(0,f.useEffect)((()=>{const e=n?"enter":"leave",t=n?r:o;n&&!u&&d(!0),c(`${a}-${e}`);const s=setTimeout((()=>{c(`${a}-${e} ${a}-${e}-active`),clearTimeout(s)}),t),l=setTimeout((()=>{n||(c(""),d(!1)),clearTimeout(l)}),t+i);return()=>{clearTimeout(s),clearTimeout(l)}}),[n,u]),g().isValidElement(e)&&u?g().cloneElement(e,{...s,className:Ui(e.props.className,t,l)}):null}),{visible:!1,enterTime:60,leaveTime:60,clearTime:60,className:"",name:"transition"}),Xd={top:-1e3,left:-1e3,right:-1e3,bottom:-1e3,width:0,height:0},Jd={top:"-1000px",left:"-1000px",transform:"none"},qd=Se("div",{width:"max-content",display:"inherit"}),Zd=Se("span",{display:"none",content:"",size:"$5",zIndex:"-2",background:"$$tooltipColor",br:"0px 0px 2px 0px",position:"absolute"}),Qd=Se("div",{position:"relative",fs:"$xs",padding:0,variants:{hideArrow:{false:{[`& ${Zd}`]:{display:"block"}}}}}),ep=Se("div",{position:"absolute",width:"auto",padding:"$3 $sm",opacity:0,zIndex:"$10",br:"$lg","@motion":{transition:"none"},variants:{color:{default:{$$tooltipColor:"$colors$background",bg:"$$tooltipColor"},primary:{$$tooltipColor:"$colors$primary",bg:"$$tooltipColor"},secondary:{$$tooltipColor:"$colors$secondary",bg:"$$tooltipColor"},success:{$$tooltipColor:"$colors$success",bg:"$$tooltipColor"},warning:{$$tooltipColor:"$colors$warning",bg:"$$tooltipColor"},error:{$$tooltipColor:"$colors$error",bg:"$$tooltipColor"},invert:{$$tooltipColor:"$colors$foreground",bg:"$$tooltipColor"}},contentColor:{default:{$$tooltipTextColor:"$colors$text",color:"$$tooltipTextColor"},primary:{$$tooltipTextColor:"$colors$primary",color:"$$tooltipTextColor"},secondary:{$$tooltipTextColor:"$colors$secondary",color:"$$tooltipTextColor"},success:{$$tooltipTextColor:"$colors$success",color:"$$tooltipTextColor"},warning:{$$tooltipTextColor:"$colors$warning",color:"$$tooltipTextColor"},error:{$$tooltipTextColor:"$colors$error",color:"$$tooltipTextColor"},invert:{$$tooltipTextColor:"$colors$invert",color:"$$tooltipTextColor"}},rounded:{true:{br:"$pill"}},shadow:{true:{bs:"$md"}},animated:{true:{transition:"opacity 0.25s ease 0s, top 0.25s ease 0s"},false:{transition:"none"}}},compoundVariants:[{color:"primary",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"secondary",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"success",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"error",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"invert",contentColor:"default",css:{$$tooltipTextColor:"$colors$background"}}],defaultVariants:{color:"default",contentColor:"default"}}),tp=({children:e,parent:t,visible:n,offset:r,placement:o,rounded:i,animated:a,className:s,hideArrow:l,css:c,...u})=>{const d=We("tooltip"),p=(0,f.useRef)(null),[h,g]=(0,f.useState)(Jd);if(!t)return null;const m=()=>{const e=((e,t,n)=>{const r={top:{top:t.top-n+"px",left:`${t.left+t.width/2}px`,transform:"translate(-50%, -100%)"},topStart:{top:t.top-n+"px",left:`${t.left}px`,transform:"translate(0, -100%)"},topEnd:{top:t.top-n+"px",left:`${t.left+t.width}px`,transform:"translate(-100%, -100%)"},bottom:{top:`${t.bottom+n}px`,left:`${t.left+t.width/2}px`,transform:"translate(-50%, 0)"},bottomStart:{top:`${t.bottom+n}px`,left:`${t.left}px`,transform:"translate(0, 0)"},bottomEnd:{top:`${t.bottom+n}px`,left:`${t.left+t.width}px`,transform:"translate(-100%, 0)"},left:{top:`${t.top+t.height/2}px`,left:t.left-n+"px",transform:"translate(-100%, -50%)"},leftStart:{top:`${t.top}px`,left:t.left-n+"px",transform:"translate(-100%, 0)"},leftEnd:{top:`${t.top+t.height}px`,left:t.left-n+"px",transform:"translate(-100%, -100%)"},right:{top:`${t.top+t.height/2}px`,left:`${t.right+n}px`,transform:"translate(0, -50%)"},rightStart:{top:`${t.top}px`,left:`${t.right+n}px`,transform:"translate(0, 0)"},rightEnd:{top:`${t.top+t.height}px`,left:`${t.right+n}px`,transform:"translate(0, -100%)"}};return r[e]||r.top})(o,(e=>{if(!e||!e.current)return Xd;const t=e.current.getBoundingClientRect();return{...t,width:t.width||t.right-t.left,height:t.height||t.bottom-t.top,top:t.top+document.documentElement.scrollTop,bottom:t.bottom+document.documentElement.scrollTop,left:t.left+document.documentElement.scrollLeft,right:t.right+document.documentElement.scrollLeft}})(t),r);g(e)},{transform:b,top:y,left:v,right:x,bottom:w}=(0,f.useMemo)((()=>((e,t)=>{const n={top:{top:"auto",right:"auto",left:"50%",bottom:"0px",transform:"translate(-50%, 100%) rotate(45deg)"},topStart:{top:"auto",right:"auto",left:"8%",bottom:"0px",transform:"translate(8%, 100%) rotate(45deg)"},topEnd:{top:"auto",right:"8%",left:"auto",bottom:"0px",transform:"translate(8%, 100%) rotate(45deg)"},bottom:{top:"0px",right:"auto",left:"50%",bottom:"auto",transform:"translate(-50%, -100%) rotate(225deg)"},bottomStart:{top:"0px",right:"auto",left:"8%",bottom:"auto",transform:"translate(8%, -100%) rotate(225deg)"},bottomEnd:{top:"0px",right:"8%",left:"auto",bottom:"auto",transform:"translate(8%, -100%) rotate(225deg)"},left:{top:"50%",right:"-4px",left:"auto",bottom:"auto",transform:"translate(100%, -50%) rotate(-45deg)"},leftStart:{top:"calc(15% + 1px)",right:"-4px",left:"auto",bottom:"auto",transform:"translate(100%, 0) rotate(-45deg)"},leftEnd:{top:"auto",right:"-4px",left:"auto",bottom:"calc(15% + 1px)",transform:"translate(100%, 0) rotate(-45deg)"},right:{top:"50%",right:"auto",left:"-4px",bottom:"auto",transform:"translate(-100%, -50%) rotate(135deg)"},rightStart:{top:"calc(15% + 1px)",right:"auto",left:"-4px",bottom:"auto",transform:"translate(-100%, 0) rotate(135deg)"},rightEnd:{top:"auto",right:"auto",left:"-4px",bottom:"calc(15% + 1px)",transform:"translate(-100%, 0) rotate(135deg)"}};return n[e]||n.top})(o)),[o]);$(m),qe((()=>m())),(0,f.useEffect)((()=>{m()}),[n]);const S=(0,f.useMemo)((()=>n?"open":"closed"),[n]);return d?(0,Ud.createPortal)((0,st.jsx)(Yd,{name:"nextui-tooltip-wrapper",visible:n,enterTime:20,leaveTime:20,children:(0,st.jsx)(ep,{className:Ui("nextui-tooltip-content",`nextui-tooltip--${S}`,s),"data-state":S,ref:p,onClick:e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()},animated:a,css:{left:h.left,top:`calc(${h.top} + 6px)`,transform:h.transform,"&.nextui-tooltip-wrapper-enter-active":{opacity:1,top:h.top},...c},...u,children:(0,st.jsxs)(Qd,{role:"tooltip","data-state":S,hideArrow:l,className:Ui("nextui-tooltip",{"nextui-tooltip--with-arrow":!l}),children:[(0,st.jsx)(Zd,{className:"nextui-tooltip-arrow",css:{left:v,top:y,right:x,bottom:w,transform:b}}),e]})})}),d):null};tp.toString=()=>".nextui-tooltip-content";const np=Vi(tp,{placement:"top",offset:12,className:""}),rp=({children:e,initialVisible:t,content:n,offset:r,placement:o,portalClassName:i,enterDelay:a,leaveDelay:s,trigger:l,rounded:c,animated:u,shadow:d,className:p,color:h,contentColor:g,onVisibleChange:m,hideArrow:b,css:y,triggerCss:$,onClick:v,keepMounted:x,visible:w,...S})=>{const C=(0,f.useRef)(),k=(0,f.useRef)(null),[E,T]=(0,f.useState)(t),P={animated:u,visible:E,css:y,shadow:d,offset:r,placement:o,rounded:c,color:h,contentColor:g,hideArrow:b,parent:k,className:i},I=e=>{const t=()=>{clearTimeout(C.current),C.current=void 0},n=e=>{T(e),m(e),t()};t(),C.current=e?window.setTimeout((()=>n(!0)),a):window.setTimeout((()=>n(!1)),s)},M=e=>{"hover"===l&&I(e)};return Ge(k,(()=>"click"===l&&!x&&I(!1))),(0,f.useEffect)((()=>{void 0!==w&&I(w)}),[w]),(0,st.jsxs)(qd,{ref:k,role:"button",tabIndex:-1,className:`nextui-tooltip-button ${p}`,onClick:()=>{"click"===l&&I(!E),null==v||v()},onKeyUp:()=>M(!0),onMouseEnter:()=>M(!0),onMouseLeave:()=>M(!1),onFocus:()=>M(!0),onBlur:()=>M(!1),css:{...$},...S,children:[e,n&&(0,st.jsx)(np,{...P,children:n})]})};rp.toString=()=>".nextui-tooltip";const op=Vi(rp,{initialVisible:!1,hideArrow:!1,animated:!0,shadow:!0,rounded:!1,keepMounted:!1,trigger:"hover",enterDelay:0,leaveDelay:0,className:"",portalClassName:"",onVisibleChange:()=>{}}),ip=Se("div",{display:"flex",position:"relative",width:"initial",maxWidth:"100%",padding:"calc($space$lg * 0.75) $space$lg",br:"$lg",bg:"$background",variants:{color:{default:{$$snippetBorderColor:"$border",$$snippetBgColor:"$background",color:"$text"},primary:{$$snippetBorderColor:"$border",$$snippetBgColor:"$primary",color:"$text"},success:{$$snippetBorderColor:"$success",$$snippetBgColor:"$background",color:"$success"},warning:{$$snippetBorderColor:"$warning",$$snippetBgColor:"$background",color:"$warning"},error:{$$snippetBorderColor:"$error",$$snippetBgColor:"$background",color:"$error"},secondary:{$$snippetBorderColor:"$secondary",$$snippetBgColor:"$background",color:"$secondary"},invert:{$$snippetBorderColor:"$foreground",$$snippetBgColor:"$foreground",color:"$background"}},borderWeight:{light:{$$borderWeight:"$light"},normal:{$$borderWeight:"$normal"},bold:{$$borderWeight:"$bold"},extrabold:{$$borderWeight:"$extrabold"},black:{$$borderWeight:"$black"}},bordered:{true:{border:"$$borderWeight solid $$snippetBorderColor"}},filled:{true:{backgroundColor:"$$snippetBgColor"}}},defaultVariants:{color:"default",borderWeight:"normal",filled:!1}}),ap=Se("pre",{margin:0,padding:0,border:"none",br:0,bgColor:"transparent",color:"inherit",fontSize:"$xs","*":{margin:0,padding:0,fontSize:"inherit",color:"inherit"},variants:{withCopyButton:{true:{width:"calc(100% - 2 * $lg)"},false:{width:"100%"}}}}),sp=Se("svg",{}),lp=Se("button",{display:"inline-flex",jc:"center",border:"none",ai:"flex-start",bg:"transparent",width:"calc(2 * $space$lg)",br:"$xs",color:"inherit",transition:"opacity 0.2s ease 0s",cursor:"pointer",us:"none","@motion":{transition:"none"},"&:hover":{opacity:"0.7"},[`& ${sp}`]:{path:{fill:"$accents6"}}},Me),cp=({size:e,fill:t,width:n,height:r,...o})=>(0,st.jsx)(sp,{xmlns:"http://www.w3.org/2000/svg",width:e||n,height:e||r,viewBox:"0 0 24 24",...o,children:(0,st.jsx)("path",{fill:t,d:"M20 2H10c-1.103 0-2 .897-2 2v4H4c-1.103 0-2 .897-2 2v10c0 1.103.897 2 2 2h10c1.103 0 2-.897 2-2v-4h4c1.103 0 2-.897 2-2V4c0-1.103-.897-2-2-2zM4 20V10h10l.002 10H4zm16-6h-4v-4c0-1.103-.897-2-2-2h-4V4h10v10z"})});cp.toString=()=>".nextui-snippet-copy-icon";const up=Vi(f.memo(cp),{width:18,height:18}),dp=({bordered:e,children:t,symbol:n,showTooltip:r,text:o,tooltipCopyText:i,tooltipCopiedText:a,tooltipColor:s,copy:l,...c})=>{const[u,d]=(0,f.useState)(!1),{copy:p}=Je(),h=(0,f.useRef)(null),g=o&&Array.isArray(o),m=(0,f.useMemo)((()=>"prevent"!==l),[l]),b=(0,f.useMemo)((()=>g?(e=>e.reduce(((e,t)=>t?e?`${e}\n${t}`:t:e),""))(o):t?h.current?h.current.textContent:"":o),[h.current,t,o]),y=(0,f.useMemo)((()=>{const e=n.trim();return e?`${e} `:""}),[n]),$=()=>{b&&m&&(p(b),"slient"!==l&&d(!0))};return(0,st.jsxs)(ip,{...c,children:[g?o.map(((e,t)=>(0,st.jsx)(ap,{css:{"&:before":{content:y,us:"none"}},className:"nextui-snippet-pre",children:e},`${t}-${e}`))):(0,st.jsx)(ap,{css:{"&:before":{content:y,us:"none"}},className:"nextui-snippet-pre",ref:h,children:t||o}),m&&"slient"!==l?(0,st.jsx)(op,{hideArrow:!0,rounded:!0,color:s,content:u?a:i,onVisibleChange:()=>{setTimeout((()=>{u&&d(!1)}),400)},children:(0,st.jsx)(lp,{className:"nextui-snippet-copy-button",onClick:$,children:(0,st.jsx)(up,{})})}):"prevent"!==l&&(0,st.jsx)(lp,{className:"nextui-snippet-copy-button",onClick:$,children:(0,st.jsx)(up,{})})]})};dp.toString=()=>".nextui-snippet";const pp=Vi(g().memo(dp),{symbol:"$",showTooltip:!0,copy:"default",tooltipColor:"default",tooltipCopyText:"Copy",tooltipCopiedText:"Copied"}),hp=Se("div",{display:"flex",position:"relative",boxSizing:"border-box",variants:{fluid:{true:{width:"100%"}}},defaultVariants:{fluid:!0}}),fp=hp,gp=({children:e,gap:t,justify:n,align:r,wrap:o,css:i,...a})=>(0,st.jsx)(fp,{css:{flexWrap:o,$$rowGap:`calc(${t} * $space$lg)`,marginLeft:`calc(${t} * $space$lg / 2)`,marginRight:`calc(${t} * $space$lg / 2)`,justifyContent:n,alignItems:r,...i},...a,children:e});gp.toString=()=>".nextui-row";const mp=Vi(g().memo(gp),{gap:0,wrap:"nowrap",justify:"flex-start",align:"flex-start"}),bp=e=>{if("undefined"!=typeof document||!e){const t=yp(e)?e.replace("var(","").replace(")",""):`--${e}`;return getComputedStyle(document.documentElement).getPropertyValue(t)}return""},yp=e=>!(!e||0!==(null==e?void 0:e.indexOf("var(")));var $p,vp;const xp=Se("svg",{ml:"$1",as:"center",display:"inline-flex",color:"currentColor"}),wp=Se("a",{display:"inline-flex",alignItems:"baseline",lineHeight:"inherit",textDecoration:"none",width:"fitContent","&:hover":{opacity:.8},"@motion":{transition:"none"},variants:{color:{default:{color:"$link"},text:{color:"$text"},primary:{color:"$primary"},secondary:{color:"$secondary"},success:{color:"$success"},warning:{color:"$warning"},error:{color:"$error"}},underline:{true:{"&:hover, &:active, &:focus":{textDecoration:"underline"}}},block:{true:{padding:"$2 $4",borderRadius:"$base"}},animated:{true:{transition:"$default"}}},compoundVariants:[{color:"default",block:!0,css:{"&:hover":{backgroundColor:((e,t=1)=>{if(!e)return"";const n=yp(e)?bp(e):e;if(/#[a-fA-F0-9]{3,6}/g.test(n))return((e,t=1)=>{let n=0,r=0,o=0;return 4==e.length?(n="0x"+e[1]+e[1],r="0x"+e[2]+e[2],o="0x"+e[3]+e[3]):7==e.length&&(n="0x"+e[1]+e[2],r="0x"+e[3]+e[4],o="0x"+e[5]+e[6]),`rgba(${+n}, ${+r},${+o},${t})`})(n,t);if(!/^#|rgb|RGB/.test(n))return n;const[r,o,i]=(e=>{const t=yp(e)?bp(e):e;if("#"===t.charAt(0))return(e=>{const t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,n,r)=>`${t}${t}${n}${n}${r}${r}`)),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!n)throw new Error(`Next UI: Unsupported ${e} color.`);return[Number.parseInt(n[1],16),Number.parseInt(n[2],16),Number.parseInt(n[3],16)]})(t);const n=t.replace(/ /g,""),r=t.substr(0,4),o=n.match(/\((.+)\)/);if(!r.startsWith("rgb")||!o)throw new Error('Next UI: Only support ["RGB", "RGBA", "HEX"] color.');return o[1].split(",").map((e=>Number.parseFloat(e)))})(n);return`rgba(${r}, ${o}, ${i}, ${t>1?1:t<0?0:t})`})(null==($p=Pe.colors)||null==(vp=$p.link)?void 0:vp.value,.2)}}},{color:"primary",block:!0,css:{"&:hover":{backgroundColor:"$primaryLight"}}},{color:"secondary",block:!0,css:{"&:hover":{backgroundColor:"$secondaryLight"}}},{color:"success",block:!0,css:{"&:hover":{backgroundColor:"$successLight"}}},{color:"warning",block:!0,css:{"&:hover":{backgroundColor:"$warningLight"}}},{color:"error",block:!0,css:{"&:hover":{backgroundColor:"$errorLight"}}}],defaultVariants:{color:"default",animated:!0}}),Sp=wp,Cp=()=>(0,st.jsxs)(xp,{viewBox:"0 0 24 24",width:"1em",height:"1em",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",shapeRendering:"geometricPrecision",className:"nextui-link-icon",children:[(0,st.jsx)("path",{d:"M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"}),(0,st.jsx)("path",{d:"M15 3h6v6"}),(0,st.jsx)("path",{d:"M10 14L21 3"})]});Cp.toString=()=>".nextui-link-icon";const kp=g().memo(Cp),Ep=g().forwardRef((({children:e,icon:t,...n},r)=>(0,st.jsxs)(Sp,{...n,ref:r,children:[e,t&&(0,st.jsx)(kp,{})]})));Ep.toString=()=>".nextui-link";const Tp=Vi(Ep,{icon:!1}),Pp=Ee({"0%":{opacity:"0.2"},"20%":{opacity:1},"100%":{opacity:"0.2"}}),Ip=Ee({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Mp=Ee({"0%":{transform:"translate(0px, 0px)"},"50%":{transform:"translate(0, calc(-$$loadingSize * 1.4))"},"100%":{transform:"translate(0px, 0px)"}}),Np=Ee({"0%":{opacity:1},"100%":{opacity:.15}}),Rp=Se("div",{d:"inline-flex",fd:"column",ai:"center",position:"relative",variants:{color:{white:{$$loadingColor:"$colors$white"},default:{$$loadingColor:"$colors$primary"},primary:{$$loadingColor:"$colors$primary"},secondary:{$$loadingColor:"$colors$secondary"},success:{$$loadingColor:"$colors$success"},warning:{$$loadingColor:"$colors$warning"},error:{$$loadingColor:"$colors$error"}},textColor:{white:{$$loadingTextColor:"$colors$white"},default:{$$loadingTextColor:"$colors$text"},primary:{$$loadingTextColor:"$colors$primary"},secondary:{$$loadingTextColor:"$colors$secondary"},success:{$$loadingTextColor:"$colors$success"},warning:{$$loadingTextColor:"$colors$warning"},error:{$$loadingTextColor:"$colors$error"}}},defaultVariants:{color:"default",textColor:"default"}}),Lp=Se("div",{size:"100%",position:"relative",left:"50%",top:"50%"}),Dp=Se("div",{d:"flex",fd:"column",jc:"center",ai:"center",position:"relative",variants:{size:{xs:{size:"$6"},sm:{size:"$8"},md:{size:"$9"},lg:{size:"$11"},xl:{size:"$12"}}}}),zp=Se("span",{bg:"$$loadingColor",position:"absolute",top:"-3.9%",width:"24%",height:"8%",left:"-10%",br:"$lg",animation:`${Np} 1.2s linear 0s infinite normal none running`,"&:nth-child(1)":{animationDelay:"-1.2s",transform:"rotate(0deg) translate(146%)"},"&:nth-child(2)":{animationDelay:"-1.1s",transform:"rotate(30deg) translate(146%)"},"&:nth-child(3)":{animationDelay:"-1s",transform:"rotate(60deg) translate(146%)"},"&:nth-child(4)":{animationDelay:"-0.9s",transform:"rotate(90deg) translate(146%)"},"&:nth-child(5)":{animationDelay:"-0.8s",transform:"rotate(120deg) translate(146%)"},"&:nth-child(6)":{animationDelay:"-0.7s",transform:"rotate(150deg) translate(146%)"},"&:nth-child(7)":{animationDelay:"-0.6s",transform:"rotate(180deg) translate(146%)"},"&:nth-child(8)":{animationDelay:"-0.5s",transform:"rotate(210deg) translate(146%)"},"&:nth-child(9)":{animationDelay:"-0.4s",transform:"rotate(240deg) translate(146%)"},"&:nth-child(10)":{animationDelay:"-0.3s",transform:"rotate(270deg) translate(146%)"},"&:nth-child(11)":{animationDelay:"-0.2s",transform:"rotate(300deg) translate(146%)"},"&:nth-child(12)":{animationDelay:"-0.1s",transform:"rotate(330deg) translate(146%)"}}),Ap=Se("span",{position:"absolute",top:0,left:0,right:0,bottom:0,size:"100%",dflex:"center",bgColor:"transparent",us:"none",variants:{size:{xs:{$$loadingSize:"$space$8",$$loadingBorder:"$space$1"},sm:{$$loadingSize:"$space$10",$$loadingBorder:"$space$1"},md:{$$loadingSize:"$space$12",$$loadingBorder:"calc($space$1 * 1.5)"},lg:{$$loadingSize:"$space$15",$$loadingBorder:"$space$2"},xl:{$$loadingSize:"$space$18",$$loadingBorder:"$space$3"}},type:{default:{d:"flex",br:"$rounded",position:"relative",size:"$$loadingSize",i:{top:"0px",size:"100%",position:"absolute",br:"inherit"},"._1":{border:"$$loadingBorder solid $$loadingColor",borderTop:"$$loadingBorder solid transparent",borderLeft:"$$loadingBorder solid transparent",borderRight:"$$loadingBorder solid transparent",animation:`${Ip} 0.8s ease infinite`},"._2":{border:"$$loadingBorder dotted $$loadingColor",borderTop:"$$loadingBorder solid transparent",borderLeft:"$$loadingBorder solid transparent",borderRight:"$$loadingBorder solid transparent",animation:`${Ip} 0.8s linear infinite`,opacity:.5},"._3":{display:"none"}},points:{d:"flex",position:"relative",transform:"translate(0, calc($$loadingSize * 0.6))",i:{size:"$$loadingSize",margin:"0 3px",bg:"$$loadingColor"},"._1":{br:"$rounded",animation:`${Mp} 0.75s ease infinite`},"._2":{br:"$rounded",animation:`${Mp} 0.75s ease infinite 0.25s`},"._3":{br:"$rounded",animation:`${Mp} 0.75s ease infinite 0.5s`}},"points-opacity":{d:"flex",position:"relative",i:{display:"inline-block",size:"$$loadingSize",br:"$rounded",bg:"$$loadingColor",margin:"0 1px",animation:`${Pp} 1.4s infinite both`},"._2":{animationDelay:"0.2s"},"._3":{animationDelay:"0.4s"}},spinner:{},gradient:{display:"flex",position:"relative",size:"$$loadingSize","._1":{position:"absolute",size:"100%",border:"0px",animation:`${Ip} 1s linear infinite`,top:"0px",br:"$rounded",bg:"linear-gradient(0deg, $background 33%,$$loadingColor 100%)"},"._2":{top:"2px",position:"absolute",size:"calc(100% - 4px)",border:"0px",bg:"$background",br:"$rounded"},"._3":{display:"none"}}}},compoundVariants:[{size:"xs",type:"points-opacity",css:{$$loadingSize:"$space$1"}},{size:"sm",type:"points-opacity",css:{$$loadingSize:"$space$2"}},{size:"md",type:"points-opacity",css:{$$loadingSize:"$space$3"}},{size:"lg",type:"points-opacity",css:{$$loadingSize:"$space$4"}},{size:"xl",type:"points-opacity",css:{$$loadingSize:"$space$5"}},{size:"xs",type:"points",css:{$$loadingSize:"$space$1"}},{size:"sm",type:"points",css:{$$loadingSize:"$space$2"}},{size:"md",type:"points",css:{$$loadingSize:"$space$3"}},{size:"lg",type:"points",css:{$$loadingSize:"$space$4"}},{size:"xl",type:"points",css:{$$loadingSize:"$space$5"}}],defaultVariants:{type:"default"}}),Kp=Se("label",{mt:"$1",color:"$$loadingTextColor",fontSize:"$$loadingSize","*":{margin:0},variants:{size:{xs:{fontSize:"$space$5",marginTop:"$2"},sm:{fontSize:"$space$6",marginTop:"$3"},md:{fontSize:"$base",marginTop:"$4"},lg:{fontSize:"$space$10",marginTop:"$4"},xl:{fontSize:"$space$11",marginTop:"$5"}}}}),Op=({children:e,size:t,color:n,textColor:r,className:o,...i})=>{const a=Array.isArray(e)?(null==e?void 0:e.length)>1&&void 0!==e[0]:void 0!==e,s=e&&a?"":"Loading";return(0,st.jsxs)(Dp,{className:Ui("nextui-spinner",o),color:n,size:t,...i,children:[(0,st.jsx)(Lp,{className:"nextui-spinner-container","aria-label":s,children:[...new Array(12)].map(((e,t)=>(0,st.jsx)(zp,{},`nextui-spinner-${t}`)))}),e&&(0,st.jsx)(Kp,{size:t,color:r,children:e})]})};Op.toString=()=>".nextui-spinner";const jp=Op,_p=({children:e,size:t,gradientBackground:n,loadingCss:r,type:o,...i})=>{const a=e?"":"Loading",s=(0,f.useMemo)((()=>"gradient"===o?{"._2":{bg:n}}:{}),[o]);return(0,st.jsx)(Rp,{...i,children:"spinner"===o?(0,st.jsx)(jp,{size:t,children:e}):(0,st.jsxs)(st.Fragment,{children:[(0,st.jsxs)(Ap,{className:`nextui-loading nextui-loading-${o}`,css:{...r,...s},type:o,size:t,"aria-label":a,children:[(0,st.jsx)("i",{className:"_1"}),(0,st.jsx)("i",{className:"_2"}),(0,st.jsx)("i",{className:"_3"})]}),e&&(0,st.jsx)(Kp,{size:t,className:"nextui-loading-label",children:e})]})})};_p.toString=()=>".nextui-loading";const Fp=Vi(g().memo(_p),{size:"md",type:"default"}),Wp={color:"primary",size:"md",textColor:"default",disabledAll:!1,inGroup:!1},Bp=g().createContext(Wp),Vp=Se("input",{},Re),Hp=Se("span",{fontSize:"$$radioSize",us:"none",d:"inline-flex",ai:"center",variants:{color:{default:{color:"$text"},primary:{color:"$primary"},secondary:{color:"$secondary"},success:{color:"$success"},warning:{color:"$warning"},error:{color:"$error"}},disabled:{true:{color:"$accents4"}}}}),Up=Se("span",{size:"$$radioSize",br:"$$radioRadii",position:"relative",d:"inline-block",mr:"calc($$radioSize * 0.375)","&:after":{content:"",d:"block",position:"absolute",size:"$$radioSize",br:"$$radioRadii",boxSizing:"border-box",border:"2px solid $border"}},Me),Gp=Se("label",{d:"flex",w:"initial",ai:"flex-start",position:"relative",fd:"column",jc:"flex-start",cursor:"pointer","@motion":{[`& ${Up}`]:{transition:"none","&:after":{transition:"none"}}},variants:{color:{default:{$$radioColor:"$colors$primary",$$radioColorHover:"$colors$primaryDark"},primary:{$$radioColor:"$colors$primary",$$radioColorHover:"$colors$primaryDark"},secondary:{$$radioColor:"$colors$secondary",$$radioColorHover:"$colors$secondaryDark"},success:{$$radioColor:"$colors$success",$$radioColorHover:"$colors$successDark"},warning:{$$radioColor:"$colors$warning",$$radioColorHover:"$colors$warningDark"},error:{$$radioColor:"$colors$error",$$radioColorHover:"$colors$errorDark"}},size:{xs:{$$radioSize:"$space$7"},sm:{$$radioSize:"$space$8"},md:{$$radioSize:"$space$9"},lg:{$$radioSize:"$space$10"},xl:{$$radioSize:"$space$11"}},disabled:{true:{cursor:"not-allowed",$$radioColor:"$colors$accents4"}},squared:{true:{$$radioRadii:"$space$1"},false:{$$radioRadii:"$radii$rounded"}},active:{true:{[`& ${Up}`]:{"&:after":{border:"calc($$radioSize * 0.34) solid $$radioColor"}},"&:hover":{[`& ${Up}`]:{"&:after":{border:"calc($$radioSize * 0.34) solid $$radioColorHover"}}}}},animated:{true:{[`& ${Up}`]:{transition:"$default","&:after":{transition:"$default"}}},false:{[`& ${Up}`]:{transition:"none","&:after":{transition:"none"}}}}},defaultVariants:{size:"md",squared:!1,animated:!0},compoundVariants:[{active:!1,disabled:!1,css:{"&:hover":{[`& ${Up}`]:{bg:"$border"}}}}]}),Yp=Se("div",{border:0,margin:0,padding:0,display:"flex",fd:"column",variants:{size:{xs:{$$radioGroupGap:"$space$7"},sm:{$$radioGroupGap:"$space$8"},md:{$$radioGroupGap:"$space$9"},lg:{$$radioGroupGap:"$space$10"},xl:{$$radioGroupGap:"$space$11"}},row:{true:{fd:"row",[`& ${Gp}`]:{marginTop:0,marginRight:"$$radioGroupGap"}},false:{[`& ${Gp}`]:{marginTop:"$$radioGroupGap",marginRight:0}}}},defaultVariants:{row:!1}}),Xp=Se("span",{color:"$accents4",fontSize:"calc($$radioSize * 0.85)",paddingLeft:"calc($$radioSize + $$radioSize * 0.375)"}),Jp={size:"md",color:"default",textColor:"default",disabled:!1,preventDefault:!0},qp=({checked:e,onChange:t,disabled:n,color:r,size:o,textColor:i,value:a,preventDefault:s,children:l,...c})=>{const[u,d]=(0,f.useState)(!!e),{value:p,disabledAll:h,inGroup:m,color:b,size:y,textColor:$,updateState:v}=g().useContext(Bp),[x,w]=je(l,Xp);(0,f.useEffect)((()=>{d(p===a)}),[p,a]);const S=(0,f.useMemo)((()=>n||h),[n,h]),C="default"!==r?r:b,k="md"!==o?o:y,E="default"!==i?i:$,T=e=>{if(S||m&&u)return;const n={target:{checked:!u},stopPropagation:e.stopPropagation,preventDefault:e.preventDefault,nativeEvent:e};d(!u),m&&v&&v(a),t&&t(n)},{bindings:P}=rt((e=>{T(e)}),[Qe.Enter,Qe.Space],{disableGlobalEvent:!0,preventDefault:s});return(0,f.useEffect)((()=>{void 0!==e&&d(Boolean(e))}),[e]),(0,st.jsxs)(Gp,{"aria-checked":u,disabled:S,active:u,size:k,color:C,...c,...P,children:[(0,st.jsx)(Vp,{type:"radio",tabIndex:-1,value:a,checked:u,onChange:T,className:"nextui-radio-input",...c}),(0,st.jsxs)(Hp,{color:E,disabled:S,className:"nextui-radio-name",children:[(0,st.jsx)(Up,{tabIndex:S?-1:0,className:Ui("nextui-radio-point",{"nextui-radio-active":u,"nextui-radio-disabled":S})}),x]}),w&&w]})};qp.defaultProps=Jp,qp.toString=()=>".nextui-radio";const Zp=Vi(qp,Jp),Qp=({disabled:e,onChange:t,value:n,size:r,color:o,textColor:i,children:a,initialValue:s,...l})=>{const[c,u]=(0,f.useState)(s),d=e=>{u(e),t&&t(e)},p=(0,f.useMemo)((()=>({updateState:d,disabledAll:e,inGroup:!0,size:r,color:o,textColor:i,value:c})),[e,c]);return(0,f.useEffect)((()=>{void 0!==n&&u(n)}),[n]),(0,st.jsx)(Bp.Provider,{value:p,children:(0,st.jsx)(Yp,{role:"radiogroup",size:r,...l,children:a})})};Qp.toString=()=>".nextui-radio-group";const eh=Vi(Qp,{disabled:!1,size:"md",color:"default",textColor:"default"});Zp.Group=eh,Zp.Description=Xp,Zp.Desc=Xp;const th=Zp,nh=Se("p",{variants:{weight:{hairline:{fontWeight:"$hairline"},thin:{fontWeight:"$thin"},light:{fontWeight:"$light"},normal:{fontWeight:"$normal"},medium:{fontWeight:"$medium"},semibold:{fontWeight:"$semibold"},bold:{fontWeight:"$bold"},extrabold:{fontWeight:"$extrabold"},black:{fontWeight:"$black"}}}}),rh=({children:e,tag:n,color:r,transform:o,margin:i,size:a,css:s,...l})=>{const c=(0,f.useMemo)((()=>(e=>null!=t.find((t=>t===e)))(r)?"default"===r?"$text":`$${r}`:r),[r]),u=(0,f.useMemo)((()=>a?"number"==typeof a?`${a}px`:a:"inherit"),[a]),d=(0,f.useMemo)((()=>i?"number"==typeof i?`${a}px`:i:"inherit"),[i]);return(0,st.jsx)(nh,{as:n,css:{color:c,fontSize:a?u:"",margin:d,tt:o,...s},...l,children:e})};rh.toString=()=>".nextui-text-child";const oh=Vi(g().memo(rh),{color:"default"}),ih=(e,t,n,r)=>{if(!e.length)return t;const o=e.slice(1,e.length);return(0,st.jsx)(oh,{tag:e[0],size:n,transform:r,children:ih(o,t,n)})},ah=({h1:e,h2:t,h3:n,h4:r,h5:o,h6:i,b:a,small:s,i:l,span:c,del:u,em:d,blockquote:p,transform:h,size:g,margin:m,children:b,...y})=>{const $={h1:e,h2:t,h3:n,h4:r,h5:o,h6:i,blockquote:p},v={span:c,small:s,b:a,em:d,i:l,del:u},x=Object.keys($).filter((e=>$[e])),w=Object.keys(v).filter((e=>v[e])),S=(0,f.useMemo)((()=>x[0]?x[0]:w[0]?w[0]:"p"),[x,w]),C=w.filter((e=>e!==S)),k=(0,f.useMemo)((()=>C.length?ih(C,b,g,h):b),[C,b,g,h]);return(0,st.jsx)(oh,{transform:h,tag:S,margin:m,size:g,...y,children:k})};ah.toString=()=>".nextui-text";const sh=Vi(g().memo(ah),{h1:!1,h2:!1,h3:!1,h4:!1,h5:!1,h6:!1,b:!1,small:!1,transform:"none",i:!1,span:!1,del:!1,em:!1,blockquote:!1,color:"default"}),lh=Se("label",{WebkitTapHighlightColor:"transparent",d:"inline-block",verticalAlign:"center",whiteSpace:"nowrap",us:"none",transition:"$default",padding:"$1 0",position:"relative",cursor:"pointer","@motion":{transition:"none"},variants:{color:{default:{$$switchColor:"$colors$primary",$$switchColorShadow:"$colors$primaryShadow",$$switchColorHover:"$colors$primaryDark"},primary:{$$switchColor:"$colors$primary",$$switchColorShadow:"$colors$primaryShadow",$$switchColorHover:"$colors$primaryDark"},secondary:{$$switchColor:"$colors$secondary",$$switchColorShadow:"$colors$secondaryShadow",$$switchColorHover:"$colors$secondaryDark"},success:{$$switchColor:"$colors$success",$$switchColorShadow:"$colors$successShadow",$$switchColorHover:"$colors$successDark"},warning:{$$switchColor:"$colors$warning",$$switchColorShadow:"$colors$warningShadow",$$switchColorHover:"$colors$warningDark"},error:{$$switchColor:"$colors$error",$$switchColorShadow:"$colors$errorShadow",$$switchColorHover:"$colors$errorDark"}},size:{xs:{$$switchWidth:"$space$12",$$switchHeight:"$space$9",width:" $$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},sm:{$$switchWidth:"$space$14",$$switchHeight:"$space$10",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},md:{$$switchWidth:"$space$15",$$switchHeight:"$space$11",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},lg:{$$switchWidth:"$space$17",$$switchHeight:"$space$12",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},xl:{$$switchWidth:"$space$18",$$switchHeight:"$space$13",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"}},borderWeight:{light:{$$switchBorderW:"$borderWeights$light"},normal:{$$switchBorderW:"$borderWeights$normal"},bold:{$$switchBorderW:"$borderWeights$bold"},extrabold:{$$switchBorderW:"$borderWeights$extrabold"},black:{$$switchBorderW:"$borderWeights$black"}},disabled:{true:{cursor:"not-allowed"}},animated:{false:{transition:"none"}}},defaultVariants:{color:"default",size:"md",borderWeight:"normal"}}),ch=Se("input",{},Re),uh=Se("span",{position:"absolute",display:"flex",size:"calc($$switchHeight * 0.7)",jc:"center",ai:"center",top:"50%",transform:"translateY(-50%)",left:"calc($$switchWidth / 15)",transition:"left 0.25s ease, width 0.2s ease",bg:"$background",br:"$pill","& svg":{bg:"transparent",size:"calc($$switchHeight * 0.44)"},"@motion":{transition:"none"}}),dh=Se("div",{opacity:1,width:"$$switchWidth",height:"$$switchHeight",transition:"$default",position:"relative",overflow:"hidden",padding:0,br:"$pill",bg:"$accents2","@motion":{transition:"none"},variants:{checked:{true:{bg:"$$switchColor",[`& ${uh}`]:{left:"calc(100% - ($$switchWidth / 15) - $$switchHeight * 0.7)"},"&:hover:not(&:active)":{bg:"$$switchColorHover"}}},bordered:{true:{bg:"transparent",border:"$$switchBorderW solid $border","&:hover":{borderColor:"$$switchColor"},[`& ${uh}`]:{left:"calc(($$switchWidth / 15) - ($$switchBorderW / 2))",bg:"$accents2"}}},squared:{true:{br:"2px",[`& ${uh}`]:{br:"2px"}}},shadow:{true:{}},disabled:{true:{borderColor:"$accents2",bg:"$accents2",[`& ${uh}`]:{bg:"$accents3"}}},animated:{true:{"&:active":{[`& ${uh}`]:{width:"calc($$switchHeight * 0.7 + ($$switchWidth / 10))"}}},false:{transition:"none",[`& ${uh}`]:{transition:"none"}}}},compoundVariants:[{checked:!0,disabled:!0,css:{bg:"$accents3",[`& ${uh}`]:{bg:"$accents2"},"&:hover:not(&:active)":{bg:"$accents3"}}},{shadow:!0,checked:!0,css:{normalShadowVar:"$$switchColorShadow"}},{animated:!0,checked:!1,css:{"&:active":{[`& ${uh}`]:{left:"calc($$switchWidth / 7.5)"}}}},{animated:!0,checked:!0,css:{"&:active":{[`& ${uh}`]:{left:"calc(100% - ($$switchWidth / 5) - $$switchHeight * 0.7)"}}}},{checked:!0,bordered:!0,css:{bg:"$$switchColor",border:"$$switchBorderW solid transparent","&:hover:not(&:active)":{borderColor:"transparent"},[`& ${uh}`]:{left:"calc(100% - ($$switchWidth / 15) - $$switchHeight * 0.7 + ($$switchBorderW / 2))",bg:"$background"}}}]},Me),ph=({initialChecked:e,checked:t,disabled:n,onChange:r,squared:o,bordered:i,shadow:a,icon:s,iconOn:l,iconOff:c,animated:u,preventDefault:d,...p})=>{const[h,g]=(0,f.useState)(e),m=(0,f.useCallback)((e=>{if(n)return;const t={target:{checked:!h},stopPropagation:e.stopPropagation,preventDefault:e.preventDefault,nativeEvent:e};g(!h),r&&r(t)}),[n,h,r]),{bindings:b}=rt((e=>{m(e)}),[Qe.Enter,Qe.Space],{disableGlobalEvent:!0,preventDefault:d}),y=(0,f.useMemo)((()=>{const e=s||l||c,t=Boolean(l),n=Boolean(c);return e?t&&h?l:n&&!h?c:e:null}),[h,s,l,c]);(0,f.useEffect)((()=>{void 0!==t&&g(t)}),[t]);const $=(0,f.useMemo)((()=>h?"checked":"unchecked"),[h]);return(0,st.jsxs)(lh,{"data-state":$,disabled:n,animated:u,...p,children:[(0,st.jsx)(ch,{tabIndex:-1,type:"checkbox",className:Ui("nextui-switch-input"),"data-state":$,disabled:n,checked:h,onChange:m}),(0,st.jsx)(dh,{role:"switch",tabIndex:n?-1:0,checked:h,"aria-checked":h,"aria-disabled":n,animated:u,disabled:n,squared:o,bordered:i,shadow:a,"data-state":$,className:Ui("nextui-switch",`nextui-switch--${$}`,{"nextui-switch-checked":h,"nextui-switch-disabled":n}),...b,children:(0,st.jsx)(uh,{className:"nextui-switch-circle",children:y})})]})};ph.toString=()=>".nextui-switch";const hh=Vi(g().memo(ph),{disabled:!1,bordered:!1,shadow:!1,squared:!1,animated:!0,preventDefault:!0,initialChecked:!1}),fh=Se("div",{position:"relative",display:"inline-block",zIndex:"$max",outline:"none",width:"100%",margin:"$9 auto",verticalAlign:"middle","@sm":{width:"90%",maxWidth:"90%"}}),gh=Se("div",{position:"fixed",top:0,left:0,right:0,bottom:0,size:"100%",pe:"none",zIndex:"$max","@motion":{transition:"none"},variants:{blur:{true:{opacity:1,transition:"background 0.35s cubic-bezier(0.4, 0, 0.2, 1)",backdropFilter:"saturate(180%) blur(20px)",bg:"rgba(0, 0, 0, 0.1)"},false:{bg:"$black",opacity:"$$backdropOpacity",transition:"opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1)"}},animated:{false:{transition:"none"}}}}),mh=Se("div",{position:"fixed",top:0,left:0,right:0,bottom:0,overflow:"auto",zIndex:"$max",WebkitOverflowScrolling:"touch",boxSizing:"border-box",textAlign:"center","&:before":{content:"",display:"inline-block",width:0,height:"100%",verticalAlign:"middle"},".nextui-backdrop-wrapper-enter .nextui-backdrop-layer-default":{opacity:0},".nextui-backdrop-wrapper-enter-active .nextui-backdrop-layer-default":{opacity:"$$backdropOpacity"},".nextui-backdrop-wrapper-leave .nextui-backdrop-layer-default":{opacity:"$$backdropOpacity"},".nextui-backdrop-wrapper-leave-active .nextui-backdrop-layer-default":{opacity:0},".nextui-backdrop-wrapper-enter .nextui-backdrop-layer-blur":{bg:"rgba(0, 0, 0, 0.1)"},".nextui-backdrop-wrapper-enter-active .nextui-backdrop-layer-blur":{bg:"rgba(0, 0, 0, 0.4)"},".nextui-backdrop-wrapper-leave .nextui-backdrop-layer-blur":{bg:"rgba(0, 0, 0, 0.4)"},".nextui-backdrop-wrapper-leave-active .nextui-backdrop-layer-blur":{bg:"rgba(0, 0, 0, 0.1)"},variants:{fullScreen:{true:{display:"inline-flex",overflow:"hidden",[`& ${fh}`]:{width:"100vw",maxWidth:"100vw",height:"100vh",margin:0},[`& ${gh}`]:{display:"none"}}}},defaultVariants:{fullScreen:!1}}),bh=g().memo((({children:e,onClick:t,onKeyPress:n,visible:r,maxWidth:o,blur:i,animated:a,opacity:s,preventDefault:l,className:c,css:u,...d})=>{const[,p,h]=m(!1),g=e=>{h.current||t&&t(e)},b=(0,f.useCallback)((e=>{e.stopPropagation()}),[]),y=()=>{if(!h.current)return;const e=setTimeout((()=>{p(!1),clearTimeout(e)}),0)},{bindings:$}=rt((e=>{n&&n(e)}),[Qe.Escape,Qe.Space],{disableGlobalEvent:!0,preventDefault:l}),v=(0,f.useMemo)((()=>r?"open":"closed"),[r]),x=(0,f.useMemo)((()=>(0,st.jsxs)(mh,{tabIndex:-1,role:"button","aria-hidden":!0,"data-state":v,onClick:g,onMouseUp:y,css:{$$backdropOpacity:s,...u},className:Ui("nextui-backdrop",`nextui-backdrop--${v}`,c),...$,...d,children:[(0,st.jsx)(gh,{className:Ui("nextui-backdrop-layer",i?"nextui-backdrop-layer-blur":"nextui-backdrop-layer-default"),animated:a,blur:i}),(0,st.jsx)(fh,{className:"nextui-backdrop-content",onClick:b,css:{maxWidth:o},onMouseDown:()=>p(!0),children:e})]})),[e]);return(0,st.jsx)(st.Fragment,{children:a?(0,st.jsx)(Yd,{name:"nextui-backdrop-wrapper",visible:r,enterTime:20,leaveTime:20,clearTime:150,children:x}):r?x:null})}));bh.toString=()=>".nextui-backdrop";const yh=Vi(bh,{onClick:()=>{},visible:!1,blur:!1,animated:!0,preventDefault:!0,opacity:.5,className:""}),$h=Se("div",{d:"inline-flex",p:"0 $sm",jc:"center",ai:"center",w:"max-content",maxWidth:"100%"}),vh=Se("div",{ml:"$sm",d:"inline-flex",fd:"column",whiteSpace:"nowrap"}),xh=Se("span",{fontSize:"$xs",color:"$text",lh:"$sm",tt:"capitalize",fontWeight:"$medium",maxW:"$60",to:"ellipsis",ov:"hidden"}),wh=Se("span",{fontSize:"$tiny",color:"$accents4","*:first-child":{mt:0},"*:last-child":{mb:0}}),Sh=Se("a",{a:{"&:hover":{opacity:.7}}}),Ch=({src:e,text:t,name:n,children:r,altText:o,color:i,squared:a,bordered:s,size:l,description:c,...u})=>(0,st.jsxs)($h,{...u,children:[(0,st.jsx)(la,{className:"nextui-user-avatar",src:e,color:i,squared:a,zoomed:u.zoomed,pointer:u.pointer,bordered:s,text:t,size:l,alt:o}),(0,st.jsxs)(vh,{className:"nextui-user-info",children:[(0,st.jsx)(xh,{className:"nextui-user-name",children:n}),(0,st.jsx)(wh,{className:"nextui-user-desc",children:c||r})]})]});Ch.toString=()=>".nextui-user";const kh=g().memo(Ch),Eh=g().forwardRef((({href:e,className:t,children:n,...r},o)=>(0,st.jsx)(Sh,{...r,children:(0,st.jsx)(Tp,{ref:o,href:e,color:"primary",target:"_blank",rel:"noopener",children:n})})));Eh.toString=()=>".nextui-user-link";const Th=g().memo(Eh);kh.Link=Th;const Ph=kh,Ih=Ee({"0%":{left:"-40%"},"100%":{left:"100%"}}),Mh=Se("div",{margin:0,padding:0,width:"100%",position:"relative",overflow:"visible",variants:{color:{default:{$$progressColor:"$colors$primary",$$progressShadowColor:"$colors$primaryShadow"},primary:{$$progressColor:"$colors$primary",$$progressShadowColor:"$colors$primaryShadow"},secondary:{$$progressColor:"$colors$secondary",$$progressShadowColor:"$colors$secondaryShadow"},success:{$$progressColor:"$colors$success",$$progressShadowColor:"$colors$successShadow"},warning:{$$progressColor:"$colors$warning",$$progressShadowColor:"$colors$warningShadow"},error:{$$progressColor:"$colors$error",$$progressShadowColor:"$colors$errorShadow"},gradient:{$$progressColor:"$colors$gradient",$$progressShadowColor:"$colors$primaryShadow"}},status:{default:{bg:"$accents2"},primary:{bg:"$primaryLight"},secondary:{bg:"$secondaryLight"},success:{bg:"$successLight"},warning:{bg:"$warningLight"},error:{bg:"$errorLight"}},size:{xs:{$$progressHeight:"$space$2",height:"$$progressHeight",br:"$$progressHeight"},sm:{$$progressHeight:"$space$4",height:"$$progressHeight",br:"$$progressHeight"},md:{$$progressHeight:"$space$8",height:"$$progressHeight",br:"$$progressHeight"},lg:{$$progressHeight:"$space$10",height:"$$progressHeight",br:"$$progressHeight"},xl:{$$progressHeight:"$space$11",height:"$$progressHeight",br:"$$progressHeight"}},indeterminated:{true:{overflow:"hidden"}},squared:{true:{br:"calc($$progressHeight * 0.25)"}}},defaultVariants:{color:"defuault",status:"default",size:"md"}}),Nh=Se("div",{margin:0,padding:0,width:0,opacity:0,height:"100%",minWidth:"inherit",bg:"$$progressColor",br:"inherit",transition:"width 0.5s cubic-bezier(0.4, 0, 0.2, 1)","@motion":{transition:"none"},variants:{animated:{false:{transition:"none"}},shadow:{true:{normalShadowVar:"$$progressShadowColor"}},striped:{true:{backgroundImage:"linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1) 75%, transparent 75%, transparent)",backgroundSize:"$space$lg $space$lg"}},indeterminated:{true:{position:"absolute",width:"0%",transitionProperty:"background-color, width, left, border-color,opacity, shadow, transform",transitionDuration:"300ms",willChange:"left",minWidth:"50%",animation:`1s ease 0s infinite normal none running ${Ih}`}}}}),Rh=({value:e,max:t,min:n,striped:r,animated:o,shadow:i,indeterminated:a,css:s,...l})=>{const c=(0,f.useMemo)((()=>e>t?t:e<n?n:e),[e,n,t]),u=(0,f.useMemo)((()=>function(e,t,n){return 100*(e-t)/(n-t)}(c,n,t)),[c,n,t]);return(0,st.jsx)(Mh,{role:"progressbar",indeterminated:a,css:{"nextui-progress-wrapper-enter":{opacity:0},".nextui-progress-wrapper-enter-active":{opacity:1,width:`${u}%`},...s},...l,children:(0,st.jsx)(Yd,{visible:!0,name:"nextui-progress-wrapper",enterTime:10,leaveTime:20,clearTime:300,children:(0,st.jsx)(Nh,{className:Ui("nextui-progress-bar",{"nextui-progress-striped":r,"nextui-progress-indeterminated":a}),"aria-valuenow":c,"aria-valuemin":n,"aria-valuemax":t,striped:r,animated:o,shadow:i,indeterminated:a,...l})})})};Rh.toString=()=>".nextui-progress";const Lh=Vi(g().memo(Rh),{striped:!1,animated:!0,shadow:!1,indeterminated:!1,value:0,min:0,max:100}),Dh=({size:e,fill:t,plain:n,width:r,height:o,className:i,...a})=>n?(0,st.jsx)("svg",{width:e||r,height:e||o,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:i,...a,children:(0,st.jsx)("path",{d:"M18 6L6 18M6 6l12 12"})}):(0,st.jsx)("svg",{width:e||r,height:e||o,viewBox:"0 0 24 24",className:i,...a,children:(0,st.jsx)("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:t})}),zh=Vi(f.memo(Dh),{width:24,height:24,plain:!1,className:""}),Ah=Ee({"0%":{transform:"scale(0.95)"},"40%":{transform:"scale(1.02)"},"80%":{transform:"scale(0.98)"},"100%":{transform:"scale(1)"}}),Kh=Ee({"0%":{opacity:0,transform:"scale(0.95)"},"60%":{opacity:.75,transform:"scale(1.02)"},"100%":{opacity:1,transform:"scale(1)"}}),Oh=Ee({"0%":{opacity:1,transform:"scale(1)"},"100%":{opacity:0,transform:"scale(0.95)"}}),jh=Se("div",{outline:"none",overflow:"hidden",width:0,height:0,opacity:0}),_h=Se("button",{position:"absolute",background:"transparent",border:"none",zIndex:"$1",top:"$space$3",right:"$space$2",margin:0,d:"inline-flex",ai:"center",height:"auto",cursor:"pointer",boxSizing:"border-box",transition:"$default",padding:"calc($space$sm * 0.5)",color:"$accents4",br:"$space$5",svg:{color:"currentColor"},"&:hover":{svg:{opacity:.8}},variants:{disabled:{true:{cursor:"not-allowed"}}}},Me),Fh=Se("div",{display:"flex",flexShrink:0,ai:"center",ov:"hidden",color:"inherit",padding:"$sm $10",fs:"$xs",variants:{noPadding:{true:{padding:0}},autoMargin:{true:{"> *:first-child":{mt:0},"> *:last-child":{mb:0}}}}}),Wh=Se("div",{display:"flex",flexDirection:"column",flex:"1 1 auto",padding:"$sm $10",oy:"auto",position:"relative",ta:"left",variants:{noPadding:{true:{flex:1,padding:0}},autoMargin:{true:{"> *:first-child":{mt:0},"> *":{mb:"$8"},"> *:last-child":{mb:0}}}}}),Bh=Se("div",{d:"flex",flexWrap:"wrap",flexShrink:0,overflow:"hidden",color:"inherit",ai:"center",fs:"$xs",padding:"$sm $lg",variants:{noPadding:{true:{padding:0}},autoMargin:{true:{"> *":{m:"$2"}}}}}),Vh=Se("section",{maxWidth:"100%",verticalAlign:"middle",overflow:"hidden",height:"fit-content(20em)",maxHeight:"inherit",display:"flex",outline:"none",flexDirection:"column",position:"relative",boxSizing:"border-box",color:"$foreground",br:"$lg",boxShadow:"$lg",bg:"$background",animationFillMode:"forwards","&.nextui-modal-wrapper-enter:not(.nextui-modal-rendered)":{animationName:Kh,animationDuration:"200ms",animationTimingFunction:"ease-in",animationDirection:"normal"},"&.nextui-modal-wrapper-leave":{animationName:Oh,animationDuration:"50ms",animationTimingFunction:"ease-out"},variants:{fullScreen:{true:{size:"100%",maxHeight:"100%"},false:{"&.nextui-modal-rebound":{animationDuration:"250ms",animationName:Ah,animationTimingFunction:"ease",animationFillMode:"forwards"}}},scroll:{true:{maxHeight:"calc(100vh - 200px)"}},closeButton:{true:{paddingTop:"$lg",[`& ${_h}`]:{svg:{size:"$10"}}}},isDark:{true:{bg:"$accents1"}}},compoundVariants:[{scroll:!0,fullScreen:!0,css:{maxHeight:"100%"}}]}),Hh=({onClick:e,...t})=>(0,st.jsx)(_h,{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),e&&e(t)},className:"nextui-modal-close-icon","aria-label":"Close",...t,children:(0,st.jsx)(zh,{plain:!0,size:18,className:"nextui-modal-close-icon-svg",fill:"currentColor","aria-hidden":!0})});Hh.toString=()=>".nextui-modal-close-icon";const Uh=g().memo(Hh),Gh=({className:e,children:t,visible:n,fullScreen:r,closeButton:o,rebound:i,animated:a,onCloseButtonClick:s,scroll:l,...c})=>{const u=(0,f.useRef)(null),d=(0,f.useRef)(null),p=(0,f.useRef)(null),[h,g]=(0,f.useState)(!1),{isDark:m}=Ae();(0,f.useEffect)((()=>{const e=setTimeout((()=>{g(!0),clearTimeout(e)}),300);return()=>clearTimeout(e)}),[]),(0,f.useEffect)((()=>{if(!n)return;const e=document.activeElement,t=((e,t)=>{if(!e||!t)return!1;let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1})(u.current,e);t||d.current&&d.current.focus()}),[n]);const b=e=>{const t=e.keyCode===Qe.Tab;if(!n||!t)return;const r=document.activeElement;e.shiftKey?r===d.current&&p.current&&p.current.focus():r===p.current&&d.current&&d.current.focus()},y=()=>{s&&s()},$=(0,f.useMemo)((()=>n?"open":"closed"),[n]),v=(0,f.useMemo)((()=>(0,st.jsxs)(Vh,{role:"dialog",tabIndex:-1,"aria-modal":n,ref:u,"data-state":$,fullScreen:r,scroll:l,closeButton:o,isDark:m,className:Ui("nextui-modal",`nextui-modal--${$}`,{"nextui-modal-fullscreen":r,"nextui-modal-with-close-button":o,"nextui-modal-rebound":i,"nextui-modal-rendered":h},e),...c,onKeyDown:b,children:[(0,st.jsx)(jh,{role:"button",tabIndex:0,className:"nextui-modal-hide-tab","aria-hidden":"true",ref:d}),o&&(0,st.jsx)(Uh,{onClick:y}),t,(0,st.jsx)(jh,{role:"button",tabIndex:0,className:"nextui-modal-hide-tab","aria-hidden":"true",ref:p})]})),[i,t]);return(0,st.jsx)(st.Fragment,{children:a?(0,st.jsx)(Yd,{name:"nextui-modal-wrapper",visible:n,enterTime:20,leaveTime:20,clearTime:300,children:v}):n?v:null})};Gh.toString=()=>".nextui-modal-wrapper";const Yh=Vi(Gh,{className:"",visible:!1,rebound:!1}),Xh={},Jh=g().createContext(Xh),qh=({children:e,onClose:t,onOpen:n,open:r,autoMargin:o,width:i,className:a,preventClose:s,blur:l,animated:c,fullScreen:u,noPadding:d,...p})=>{const h=We("modal"),[,g]=Ue(null,{scrollLayer:!0}),[b,y,$]=m(!1),[v,x]=(0,f.useState)(!1),w=()=>{t&&t(),y(!1),g(!1)};(0,f.useEffect)((()=>{void 0!==r&&(r&&n&&n(),!r&&$.current&&t&&t(),y(r),g(r))}),[r]);const S=()=>{x(!0);const e=setTimeout((()=>{x(!1),clearTimeout(e)}),300)},{bindings:C}=rt((()=>{s?S():w()}),Qe.Escape,{disableGlobalEvent:!0,preventDefault:!0}),k=(0,f.useMemo)((()=>({close:w,autoMargin:o,noPadding:d})),[]);return h?(0,Ud.createPortal)((0,st.jsx)(Jh.Provider,{value:k,children:(0,st.jsx)(yh,{onClick:()=>{s?S():w()},visible:b,maxWidth:i,fullScreen:u,blur:l,animated:c,...C,children:(0,st.jsx)(Yh,{visible:b,onCloseButtonClick:w,className:a,fullScreen:u,rebound:v,animated:c,...p,children:e})})}),h):null};qh.toString=()=>".nextui-modal",qh.defaultProps={width:"400px",className:"",preventClose:!1,fullScreen:!1,closeButton:!1,animated:!0,blur:!1,scroll:!1,noPadding:!1};const Zh=qh,Qh=({children:e,className:t,justify:n,autoMargin:r,css:o,...i})=>{const{autoMargin:a,noPadding:s}=(0,f.useContext)(Jh),l=(0,f.useMemo)((()=>void 0!==a?a:r),[r,a]);return(0,st.jsx)(Fh,{className:Ui("nextui-modal-header",{"nextui-modal-header-auto-margin":l,"nextui-modal-header-no-padding":s},t),noPadding:s,autoMargin:l,css:{justifyContent:n,...o},...i,children:e})};Qh.toString=()=>".nextui-modal-header";const ef=Vi(g().memo(Qh),{className:"",justify:"center",autoMargin:!0}),tf=({className:e,children:t,autoMargin:n,...r})=>{const{autoMargin:o,noPadding:i}=(0,f.useContext)(Jh),a=(0,f.useMemo)((()=>void 0!==o?o:n),[n,o]);return(0,st.jsx)(Wh,{className:Ui("nextui-modal-body",{"nextui-modal-body-auto-margin":a,"nextui-modal-body-no-padding":i},e),autoMargin:a,noPadding:i,...r,children:t})};tf.toString=()=>".nextui-modal-body";const nf=Vi(g().memo(tf),{className:"",autoMargin:!0}),rf=({children:e,className:t,justify:n,autoMargin:r,css:o,...i})=>{const{autoMargin:a,noPadding:s}=(0,f.useContext)(Jh),l=(0,f.useMemo)((()=>void 0!==a?a:r),[r,a]);return(0,st.jsx)(Bh,{className:Ui("nextui-modal-footer",{"nextui-modal-footer-auto-margin":l,"nextui-modal-footer-no-padding":s},t),noPadding:s,autoMargin:l,css:{justifyContent:n,...o},...i,children:e})};rf.toString=()=>".nextui-modal-footer";const of=Vi(g().memo(rf),{className:"",justify:"flex-end",autoMargin:!0});Zh.Header=ef,Zh.Body=nf,Zh.Footer=of;const af=Zh,sf=(e=!1)=>{const[t,n,r]=m(e);return{visible:t,setVisible:n,currentRef:r,bindings:{open:t,onClose:()=>n(!1)}}},lf=Ee({"0%":{transform:"scale(1)"},"60%":{transform:"scale($$paginationScaleTransform)"},"100%":{transform:"scale(1)"}}),cf=Se("svg",{color:"currentColor",stroke:"currentColor",variants:{isEllipsis:{true:{transform:"0deg"}},isBefore:{true:{}}},compoundVariants:[{isEllipsis:!0,isBefore:!0,css:{transform:"rotate(180deg)"}}]}),uf=Se("svg",{transform:"rotate(180deg)",variants:{isPrev:{true:{transform:"rotate(0deg)"}}}}),df=Se("span",{position:"relative",display:"inline-flex",alignItems:"center",top:0,left:0,zIndex:"$2"}),pf=Se("button",{border:"none",position:"relative",display:"inline-flex",margin:"0 $$paginationItemMargin",ai:"center",jc:"center",padding:0,boxSizing:"border-box",tt:"capitalize",us:"none",whiteSpace:"nowrap",ta:"center",verticalAlign:"middle",bs:"none",outline:"none",height:"$$paginationSize",minWidth:"$$paginationSize",fs:"inherit",cursor:"pointer",br:"$$paginationItemRadius",color:"$text",bg:"$accents1","@motion":{transition:"none"},"&:hover":{bg:"$accents2"},[`& ${uf}`]:{size:"$$paginationFontSize"},[`& ${cf}`]:{size:"$$paginationFontSize"},variants:{active:{true:{fontWeight:"$bold",cursor:"default",boxShadow:"$sm",[`& ${df}`]:{color:"$white"}}},disabled:{true:{color:"$accents4",cursor:"not-allowed"}},bordered:{true:{bg:"transparent",border:"$$paginationItemBorderWeight solid $accents2"}},onlyDots:{true:{}},preserveContent:{true:{}},animated:{true:{transition:"transform 0.25s ease 0s, background 0.25s ease 0s, box-shadow 0.25s ease 0s"},false:{transition:"none"}}},compoundVariants:[{onlyDots:!0,preserveContent:!1,css:{[`& ${df}`]:{display:"none"}}},{animated:!0,disabled:!1,active:!1,css:{"&:active":{transform:"scale($$paginationScaleTransform)",fs:"calc($$paginationFontSize * 0.9)"}}}]},Me),hf=Se("div",{position:"absolute",contain:"strict",top:"0px",zIndex:"$1",bg:"$$paginationColor",br:"$$paginationItemRadius",height:"$$paginationSize",minWidth:"$$paginationSize",animationName:`${lf}`,animationDirection:"normal","&.nextui-pagination-highlight--moving":{transform:"scale($$paginationScaleTransform)"},"@motion":{transition:"none","&.nextui-pagination-highlight--moving":{transform:"scale(1)"}},variants:{animated:{true:{animationDuration:"350ms",animationTimingFunction:"ease",transition:"left 350ms ease 0s, transform 300ms ease 0s"},false:{animationDuration:"none",animationTimingFunction:"none",transition:"none","&.nextui-pagination-highlight--moving":{transform:"scale(1)"}}},noMargin:{true:{br:"$squared"}},rounded:{true:{}},shadow:{true:{normalShadowVar:"$$paginationShadowColor"}}},compoundVariants:[{rounded:!0,noMargin:!0,css:{br:"$pill"}}]}),ff=Se("nav",{m:0,p:0,d:"inline-flex",position:"relative",fontVariant:"tabular-nums",fontFeatureSettings:"tnum",variants:{color:{default:{$$paginationColor:"$colors$primary",$$paginationShadowColor:"$colors$primaryShadow"},primary:{$$paginationColor:"$colors$primary",$$paginationShadowColor:"$colors$primaryShadow"},secondary:{$$paginationColor:"$colors$secondary",$$paginationShadowColor:"$colors$secondaryShadow"},success:{$$paginationColor:"$colors$success",$$paginationShadowColor:"$colors$successShadow"},warning:{$$paginationColor:"$colors$warning",$$paginationShadowColor:"$colors$warningShadow"},error:{$$paginationColor:"$colors$error",$$paginationShadowColor:"$colors$errorShadow"},gradient:{$$paginationColor:"$colors$gradient",$$paginationShadowColor:"$colors$primaryShadow"}},size:{xs:{$$paginationWidth:"$space$10",$$paginationFontSize:"$space$5",fs:"$$paginationFontSize"},sm:{$$paginationWidth:"$space$12",$$paginationFontSize:"$space$6",fs:"$$paginationFontSize"},md:{$$paginationWidth:"$space$13",$$paginationFontSize:"$space$7",fs:"$$paginationFontSize"},lg:{$$paginationWidth:"$space$14",$$paginationFontSize:"$space$8",fs:"$$paginationFontSize"},xl:{$$paginationWidth:"$space$15",$$paginationFontSize:"$space$9",fs:"$$paginationFontSize"}},borderWeight:{light:{$$paginationItemBorderWeight:"$borderWeights$light"},normal:{$$paginationItemBorderWeight:"$borderWeights$normal"},bold:{$$paginationItemBorderWeight:"$borderWeights$bold"},extrabold:{$$paginationItemBorderWeight:"$borderWeights$extrabold"},black:{$$paginationItemBorderWeight:"$borderWeights$black"}},bordered:{true:{}},onlyDots:{true:{$$paginationSize:"calc($$paginationWidth / 2)",$$paginationItemRadius:"$radii$pill",$$paginationScaleTransform:1.05},false:{$$paginationSize:"$$paginationWidth",$$paginationScaleTransform:1.1}},rounded:{true:{$$paginationItemRadius:"$radii$pill"},false:{$$paginationItemRadius:"$radii$squared"}},noMargin:{true:{$$paginationItemRadius:"0px",$$paginationItemMargin:"0",[`& ${pf}:first-of-type`]:{btlr:"$squared",bblr:"$squared"},[`& ${pf}:last-of-type`]:{btrr:"$squared",bbrr:"$squared"}},false:{$$paginationItemMargin:"$space$1"}}},compoundVariants:[{bordered:!0,noMargin:!0,css:{[`& ${pf}:not(:last-child)`]:{borderRight:0}}},{noMargin:!0,rounded:!0,css:{$$paginationItemRadius:"0px"}}],defaultVariants:{color:"default",size:"md",borderWeight:"normal",onlyDots:!1,noMargin:!1,rounded:!1}}),gf=e=>{if(e)switch(e){case it:return"dots element";case"<":return"previous page button";case">":return"next page button";case"first":return"first page button";case"last":return"last page button";default:return`${e} item`}},mf=({active:e,value:t,children:n,disabled:r,animated:o,bordered:i,onClick:a,onlyDots:s,preserveContent:l,...c})=>{const u=(0,f.useMemo)((()=>e?`${gf(t)} active`:gf(t)),[t,e]);return(0,st.jsx)(pf,{className:Ui("nextui-pagination-item",{"nextui-pagination-item-active":e,"nextui-pagination-item-animated":o,"nextui-pagination-item-disabled":r,"nextui-pagination-item-bordered":i,"nextui-pagination-item-only-dots":s,"nextui-pagination-item-preserve-content":l}),animated:o,active:e,disabled:r,bordered:i,onlyDots:s,preserveContent:l,onClick:e=>{r||a&&a(e)},"aria-label":u,tabIndex:r?-1:0,...c,children:(0,st.jsx)(df,{className:"nextui-pagination-item-content",children:n})})};mf.toString=()=>".nextui-pagination-item";const bf=Vi(mf,{preserveContent:!1}),yf=({value:e,isBefore:t,onlyDots:n,animated:r,bordered:o,onClick:i})=>{const[a,s]=(0,f.useState)(!1);return(0,st.jsx)(bf,{value:e,onlyDots:n,animated:r,bordered:o,onClick:e=>i&&i(e),onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:a?(0,st.jsxs)(cf,{role:"presentation",focusable:"false",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",shapeRendering:"geometricPrecision",className:"nextui-pagination-ellipsis",isEllipsis:!0,isBefore:t,children:[(0,st.jsx)("path",{d:"M13 17l5-5-5-5"}),(0,st.jsx)("path",{d:"M6 17l5-5-5-5"})]}):(0,st.jsxs)(cf,{viewBox:"0 0 24 24",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",shapeRendering:"geometricPrecision",isEllipsis:!1,isBefore:t,children:[(0,st.jsx)("circle",{cx:"12",cy:"12",r:"1",fill:"currentColor"}),(0,st.jsx)("circle",{cx:"19",cy:"12",r:"1",fill:"currentColor"}),(0,st.jsx)("circle",{cx:"5",cy:"12",r:"1",fill:"currentColor"})]})})},$f=({isPrev:e,disabled:t,onlyDots:n,animated:r,bordered:o,onClick:i,...a})=>(0,st.jsx)(bf,{preserveContent:!0,value:e?"<":">",bordered:o,animated:r,onlyDots:n,disabled:t,onClick:e=>i&&i(e),children:(0,st.jsx)(uf,{role:"presentation",focusable:"false",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"nextui-pagination-icon",isPrev:e,...a,children:(0,st.jsx)("path",{d:"M15.5 19l-7-7 7-7",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})});$f.toString=()=>".nextui-pagination-icon";const vf=g().memo($f),xf=({active:e,shadow:t,noMargin:n,rounded:r,css:o,...i})=>{const[a,s]=(0,f.useState)(e),[l,c]=(0,f.useState)("");(0,f.useEffect)((()=>{if(e!==a){s(e),c("nextui-pagination-highlight--moving");const t=setTimeout((()=>{c(""),clearTimeout(t)}),350)}}),[e]);const u=(0,f.useMemo)((()=>n?`var(--nextui--paginationSize) * ${a}`:`var(--nextui--paginationSize) * ${a} + ${4*a+2}px`),[a,n]);return(0,st.jsx)(hf,{"aria-hidden":!0,shadow:t,rounded:r,className:Ui("nextui-pagination-highlight",l,{"nextui-pagination-highlight--rounded":r,"nextui-pagination-highlight--active":e,"nextui-pagination-highlight--no-margin":n,"nextui-pagination-highlight--shadow":t},i.className),noMargin:n,style:Pu({"--nextui--paginationLeft":`calc(${u})`},(null==i?void 0:i.style)||{}),css:{left:"var(--nextui--paginationLeft)",...o},...i})};xf.toString=()=>".nextui-pagination-highlight";const wf=xf,Sf=({page:e,initialPage:t,onlyDots:n,total:r,loop:o,siblings:i,boundaries:a,shadow:s,animated:l,bordered:c,dotsJump:u,controls:d,noMargin:p,onChange:h,rounded:g,...m})=>{const{range:b,active:y,setPage:$,previous:v,next:x,first:w,last:S}=at({page:e,initialPage:t,siblings:n?10:i,boundaries:n?10:a,total:r,onChange:h}),C=(0,f.useCallback)(((e,t)=>{if(e===it){const o=t<b.indexOf(y);return(0,st.jsx)(yf,{value:e,bordered:c,animated:l,isBefore:o,onlyDots:n,onClick:()=>$(o?y-u>=1?y-u:1:y+u<=r?y+u:r)},`nextui-pagination-item-${e}-${t}`)}return(0,st.jsx)(bf,{value:e,animated:l,bordered:c,active:e===y,onClick:()=>e!==y&&$(e),onlyDots:n,children:e},`nextui-pagination-item-${e}-${t}`)}),[r,n,y,c,l]);return(0,st.jsxs)(ff,{noMargin:p,bordered:c,rounded:g,onlyDots:n,className:Ui("nextui-pagination",{"nextui-pagination--no-margin":p,"nextui-pagination--bordered":c,"nextui-pagination--shadow":s,"nextui-pagination--rounded":g}),...m,children:[d&&(0,st.jsx)(vf,{isPrev:!0,bordered:c,animated:l,onlyDots:n,onClick:()=>o&&1===y?S():v(),disabled:!o&&1===y}),(0,st.jsx)(wf,{noMargin:p,animated:l,shadow:s,rounded:g,active:d?b.indexOf(y)+1:b.indexOf(y)}),b.map(C),d&&(0,st.jsx)(vf,{bordered:c,animated:l,onlyDots:n,onClick:()=>o&&y===r?w():x(),disabled:!o&&y===r})]})};Sf.defaultProps={shadow:!1,controls:!0,bordered:!1,initialPage:1,siblings:1,boundaries:1,dotsJump:5,total:1,loop:!1,animated:!0,onlyDots:!1,noMargin:!1,rounded:!1},Sf.toString=()=>".nextui-pagination";const Cf=g().memo(Sf);function kf(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Ef={};kf(Ef,"SSRProvider",(()=>If)),kf(Ef,"useSSRSafeId",(()=>Nf)),kf(Ef,"useIsSSR",(()=>Rf));const Tf={prefix:String(Math.round(1e10*Math.random())),current:0},Pf=g().createContext(Tf);function If(e){let t=(0,f.useContext)(Pf),n=(0,f.useMemo)((()=>({prefix:t===Tf?"":`${t.prefix}-${++t.current}`,current:0})),[t]);return g().createElement(Pf.Provider,{value:n},e.children)}let Mf=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function Nf(e){let t=(0,f.useContext)(Pf);return t!==Tf||Mf||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),(0,f.useMemo)((()=>e||`react-aria${t.prefix}-${++t.current}`),[e])}function Rf(){let e=(0,f.useContext)(Pf)!==Tf,[t,n]=(0,f.useState)(e);return"undefined"!=typeof window&&e&&(0,f.useLayoutEffect)((()=>{n(!1)}),[]),t}function Lf(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Df={};Lf(Df,"useId",(()=>Kf)),Lf(Df,"mergeIds",(()=>Of)),Lf(Df,"useSlotId",(()=>jf)),Lf({},"useLayoutEffect",(()=>zf));const zf="undefined"!=typeof window?g().useLayoutEffect:()=>{};let Af=new Map;function Kf(e){let t=(0,f.useRef)(!0);t.current=!0;let[n,r]=(0,f.useState)(e),o=(0,f.useRef)(null),i=Nf(n),a=e=>{t.current?o.current=e:r(e)};return Af.set(i,a),zf((()=>{t.current=!1}),[a]),zf((()=>{let e=i;return()=>{Af.delete(e)}}),[i]),(0,f.useEffect)((()=>{let e=o.current;e&&(r(e),o.current=null)}),[r,a]),i}function Of(e,t){if(e===t)return e;let n=Af.get(e);if(n)return n(t),t;let r=Af.get(t);return r?(r(e),e):t}function jf(e=[]){let t=Kf(),[n,r]=Pg(t),o=(0,f.useCallback)((()=>{r((function*(){yield t,yield document.getElementById(t)?t:null}))}),[t,r]);return zf(o,[t,o,...e]),n}function _f(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function Ff(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],o=r[e];"function"==typeof n&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=_f(n,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof o?"id"===e&&n&&o?t.id=Of(n,o):t[e]=void 0!==o?o:n:t[e]=ya(n,o)}}return t}Lf({},"chain",(()=>_f)),Lf({},"mergeProps",(()=>Ff)),Lf({},"filterDOMProps",(()=>Hf));const Wf=new Set(["id"]),Bf=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Vf=/^(data-.*)$/;function Hf(e,t={}){let{labelable:n,propNames:r}=t,o={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Wf.has(t)||n&&Bf.has(t)||(null==r?void 0:r.has(t))||Vf.test(t))&&(o[t]=e[t]);return o}function Uf(e){if(function(){if(null==Gf){Gf=!1;try{document.createElement("div").focus({get preventScroll(){return Gf=!0,!0}})}catch(e){}}return Gf}())e.focus({preventScroll:!0});else{let t=function(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}Lf({},"focusWithoutScrolling",(()=>Uf));let Gf=null;function Yf(e,t,n="horizontal"){let r=e.getBoundingClientRect();return t?"horizontal"===n?r.right:r.bottom:"horizontal"===n?r.left:r.top}Lf({},"getOffset",(()=>Yf));var Xf={};Lf(Xf,"clamp",(()=>wa)),Lf(Xf,"snapValueToStep",(()=>Sa)),Lf({},"runAfterTransition",(()=>Qf));let Jf=new Map,qf=new Set;function Zf(){if("undefined"==typeof window)return;let e=t=>{let n=Jf.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),Jf.delete(t.target)),0===Jf.size)){for(let e of qf)e();qf.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=Jf.get(t.target);n||(n=new Set,Jf.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function Qf(e){requestAnimationFrame((()=>{0===Jf.size?e():qf.add(e)}))}"undefined"!=typeof document&&("loading"!==document.readyState?Zf():document.addEventListener("DOMContentLoaded",Zf)),Lf({},"useDrag1D",(()=>tg));const eg=[];function tg(e){console.warn("useDrag1D is deprecated, please use `useMove` instead https://react-spectrum.adobe.com/react-aria/useMove.html");let{containerRef:t,reverse:n,orientation:r,onHover:o,onDrag:i,onPositionChange:a,onIncrement:s,onDecrement:l,onIncrementToMax:c,onDecrementToMin:u,onCollapseToggle:d}=e,p=e=>{let o=Yf(t.current,n,r),i=(e=>"horizontal"===r?e.clientX:e.clientY)(e);return n?o-i:i-o},h=(0,f.useRef)(!1),g=(0,f.useRef)(0),m=(0,f.useRef)({onPositionChange:a,onDrag:i});m.current.onDrag=i,m.current.onPositionChange=a;let b=e=>{e.preventDefault();let t=p(e);h.current||(h.current=!0,m.current.onDrag&&m.current.onDrag(!0),m.current.onPositionChange&&m.current.onPositionChange(t)),g.current!==t&&(g.current=t,a&&a(t))},y=e=>{const t=e.target;h.current=!1;let n=p(e);m.current.onDrag&&m.current.onDrag(!1),m.current.onPositionChange&&m.current.onPositionChange(n),eg.splice(eg.indexOf(t),1),window.removeEventListener("mouseup",y,!1),window.removeEventListener("mousemove",b,!1)};return{onMouseDown:e=>{const t=e.currentTarget;eg.some((e=>t.contains(e)))||(eg.push(t),window.addEventListener("mousemove",b,!1),window.addEventListener("mouseup",y,!1))},onMouseEnter:()=>{o&&o(!0)},onMouseOut:()=>{o&&o(!1)},onKeyDown:e=>{switch(e.key){case"Left":case"ArrowLeft":"horizontal"===r&&(e.preventDefault(),l&&!n?l():s&&n&&s());break;case"Up":case"ArrowUp":"vertical"===r&&(e.preventDefault(),l&&!n?l():s&&n&&s());break;case"Right":case"ArrowRight":"horizontal"===r&&(e.preventDefault(),s&&!n?s():l&&n&&l());break;case"Down":case"ArrowDown":"vertical"===r&&(e.preventDefault(),s&&!n?s():l&&n&&l());break;case"Home":e.preventDefault(),u&&u();break;case"End":e.preventDefault(),c&&c();break;case"Enter":e.preventDefault(),d&&d()}}}}function ng(){let e=(0,f.useRef)(new Map),t=(0,f.useCallback)(((t,n,r,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,r,o)}),[]),n=(0,f.useCallback)(((t,n,r,o)=>{var i;let a=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(n,a,o),e.current.delete(r)}),[]),r=(0,f.useCallback)((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return(0,f.useEffect)((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function rg(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;if(n=Kf(n),o&&r){let e=new Set([...o.trim().split(/\s+/),n]);o=[...e].join(" ")}else o&&(o=o.trim().split(/\s+/).join(" "));return r||o||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function og(e){const t=(0,f.useRef)();return zf((()=>{e&&("function"==typeof e?e(t.current):e.current=t.current)}),[e]),t}function ig(e,t){const n=(0,f.useRef)(!0);(0,f.useEffect)((()=>{n.current?n.current=!1:e()}),t)}function ag(e){const{ref:t,onResize:n}=e;(0,f.useEffect)((()=>{let e=null==t?void 0:t.current;if(e){if(void 0===window.ResizeObserver)return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)};{const t=new window.ResizeObserver((e=>{e.length&&n()}));return t.observe(e),()=>{e&&t.unobserve(e)}}}}),[n,t])}function sg(e,t){zf((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}function lg(e){for(;e&&!cg(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function cg(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}Lf({},"useGlobalListeners",(()=>ng)),Lf({},"useLabels",(()=>rg)),Lf({},"useObjectRef",(()=>og)),Lf({},"useUpdateEffect",(()=>ig)),Lf({},"useResizeObserver",(()=>ag)),Lf({},"useSyncRef",(()=>sg)),Lf({},"getScrollParent",(()=>lg)),Lf({},"useViewportSize",(()=>dg));let ug="undefined"!=typeof window&&window.visualViewport;function dg(){let[e,t]=(0,f.useState)((()=>pg()));return(0,f.useEffect)((()=>{let e=()=>{t((e=>{let t=pg();return t.width===e.width&&t.height===e.height?e:t}))};return ug?ug.addEventListener("resize",e):window.addEventListener("resize",e),()=>{ug?ug.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),e}function pg(){return{width:(null==ug?void 0:ug.width)||window.innerWidth,height:(null==ug?void 0:ug.height)||window.innerHeight}}Lf({},"useDescription",(()=>gg));let hg=0;const fg=new Map;function gg(e){let[t,n]=(0,f.useState)(null);return zf((()=>{if(!e)return;let t=fg.get(e);if(t)n(t.element.id);else{let r="react-aria-description-"+hg++;n(r);let o=document.createElement("div");o.id=r,o.style.display="none",o.textContent=e,document.body.appendChild(o),t={refCount:0,element:o},fg.set(e,t)}return t.refCount++,()=>{0==--t.refCount&&(t.element.remove(),fg.delete(e))}}),[e]),{"aria-describedby":e?t:void 0}}var mg={};function bg(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function yg(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test((window.navigator.userAgentData||window.navigator).platform)}function $g(){return yg(/^Mac/i)}function vg(){return yg(/^iPhone/i)}function xg(){return yg(/^iPad/i)||$g()&&navigator.maxTouchPoints>1}function wg(){return vg()||xg()}function Sg(){return $g()||wg()}function Cg(){return bg(/AppleWebKit/i)&&!kg()}function kg(){return bg(/Chrome/i)}function Eg(){return bg(/Android/i)}function Tg(e,t,n,r){let o=(0,f.useRef)(n);o.current=n;let i=null==n;(0,f.useEffect)((()=>{if(i)return;let n=e.current,a=e=>o.current.call(this,e);return n.addEventListener(t,a,r),()=>{n.removeEventListener(t,a,r)}}),[e,t,r,i])}function Pg(e){let[t,n]=(0,f.useState)(e),r=(0,f.useRef)(t),o=(0,f.useRef)(null);r.current=t;let i=(0,f.useRef)(null);i.current=()=>{let e=o.current.next();e.done?o.current=null:t===e.value?i.current():n(e.value)},zf((()=>{o.current&&i.current()}));let a=(0,f.useCallback)((e=>{o.current=e(r.current),i.current()}),[o,i]);return[t,a]}function Ig(e,t){let n=Mg(e,t,"left"),r=Mg(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,l=a+e.offsetWidth,c=s+e.offsetHeight;n<=a?a=n:n+o>l&&(a+=n+o-l),r<=s?s=r:r+i>c&&(s+=r+i-c),e.scrollLeft=a,e.scrollTop=s}function Mg(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function Ng(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function Rg(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=Kf(t);let a=Kf(),s={};return n?(r=r?`${r} ${a}`:a,s={id:a,htmlFor:"label"===i?t:void 0}):r||o||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:s,fieldProps:rg({id:t,"aria-label":o,"aria-labelledby":r})}}function Lg(e){let{description:t,errorMessage:n,validationState:r}=e,{labelProps:o,fieldProps:i}=Rg(e),a=jf([Boolean(t),Boolean(n),r]),s=jf([Boolean(t),Boolean(n),r]);return i=Ff(i,{"aria-describedby":[a,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:i,descriptionProps:{id:a},errorMessageProps:{id:s}}}Lf(mg,"isMac",(()=>$g)),Lf(mg,"isIPhone",(()=>vg)),Lf(mg,"isIPad",(()=>xg)),Lf(mg,"isIOS",(()=>wg)),Lf(mg,"isAppleDevice",(()=>Sg)),Lf(mg,"isWebKit",(()=>Cg)),Lf(mg,"isChrome",(()=>kg)),Lf(mg,"isAndroid",(()=>Eg)),Lf({},"useEvent",(()=>Tg)),Lf({},"useValueEffect",(()=>Pg)),Lf({},"scrollIntoView",(()=>Ig)),Ng({},"useField",(()=>Lg)),Ng({},"useLabel",(()=>Rg));const Dg={disabled:!1,bordered:!1,readOnly:!1,clearable:!1,rounded:!1,animated:!0,underlined:!1,shadow:!0,fullWidth:!1,contentClickable:!1,contentRightStyling:!0,contentLeftStyling:!0,required:!1,width:"initial",size:"md",color:"default",helperColor:"default",status:"default",borderWeight:"normal",autoComplete:"off",className:"",placeholder:"",initialValue:""},zg=Se("div",{$$inputColor:"$colors$accents1",$$inputTextColor:"$colors$text",$$inputPlaceholderColor:"$colors$accents3",$$inputPlaceholderOpacity:1,$$inputShadow:"$shadows$sm",$$inputBorderColor:"$colors$border",$$inputHoverBorderColor:"$colors$foreground",$$inputLabelColor:"$$inputHoverBorderColor",display:"inline-flex",flexDirection:"column",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitBoxAlign:"center",variants:{color:{default:{},primary:{$$inputHoverBorderColor:"$colors$primary",$$inputLabelColor:"$colors$primary"},secondary:{$$inputHoverBorderColor:"$colors$secondary",$$inputLabelColor:"$colors$secondary"},success:{$$inputHoverBorderColor:"$colors$success",$$inputLabelColor:"$colors$success"},warning:{$$inputHoverBorderColor:"$colors$warning",$$inputLabelColor:"$colors$warning"},error:{$$inputHoverBorderColor:"$colors$error",$$inputLabelColor:"$colors$error"}},status:{default:{},primary:{$$inputColor:"$colors$primaryLight",$$inputPlaceholderColor:"$colors$primary",$$inputTextColor:"$colors$primary",$$inputLabelColor:"$$inputTextColor",$$inputHoverBorderColor:"$colors$primary",$$inputPlaceholderOpacity:.5},secondary:{$$inputColor:"$colors$secondaryLight",$$inputPlaceholderColor:"$colors$secondary",$$inputTextColor:"$colors$secondary",$$inputLabelColor:"$$inputTextColor",$$inputHoverBorderColor:"$colors$secondary",$$inputPlaceholderOpacity:.5},success:{$$inputColor:"$colors$successLight",$$inputPlaceholderColor:"$colors$success",$$inputTextColor:"$colors$success",$$inputLabelColor:"$$inputTextColor",$$inputHoverBorderColor:"$colors$success",$$inputPlaceholderOpacity:.5},warning:{$$inputColor:"$colors$warningLight",$$inputPlaceholderColor:"$colors$warning",$$inputTextColor:"$colors$warning",$$inputLabelColor:"$$inputTextColor",$$inputHoverBorderColor:"$colors$warning",$$inputPlaceholderOpacity:.5},error:{$$inputColor:"$colors$errorLight",$$inputPlaceholderColor:"$colors$error",$$inputTextColor:"$colors$error",$$inputLabelColor:"$$inputTextColor",$$inputHoverBorderColor:"$colors$error",$$inputPlaceholderOpacity:.5}},helperColor:{default:{$$inputHelperColor:"$colors$text"},primary:{$$inputHelperColor:"$colors$primary"},secondary:{$$inputHelperColor:"$colors$secondary"},success:{$$inputHelperColor:"$colors$success"},warning:{$$inputHelperColor:"$colors$warning"},error:{$$inputHelperColor:"$colors$error"}},borderWeight:{light:{$$inputBorderWeight:"$borderWeights$light"},normal:{$$inputBorderWeight:"$borderWeights$normal"},bold:{$$inputBorderWeight:"$borderWeights$bold"},extrabold:{$$inputBorderWeight:"$borderWeights$extrabold"},black:{$$inputBorderWeight:"$borderWeights$black"}},size:{xs:{$$inputBorderRadius:"$space$3",$$inputFontSize:"$fontSizes$tiny",$$inputHeightRatio:"1.2",br:"$$inputBorderRadius"},sm:{$$inputBorderRadius:"$space$4",$$inputFontSize:"$fontSizes$tiny",$$inputHeightRatio:"1.6",br:"$$inputBorderRadius"},md:{$$inputBorderRadius:"$space$6",$$inputFontSize:"$fontSizes$xs",$$inputHeightRatio:"2",br:"$$inputBorderRadius"},lg:{$$inputBorderRadius:"$space$7",$$inputFontSize:"$fontSizes$base",$$inputHeightRatio:"2.2",br:"$$inputBorderRadius"},xl:{$$inputBorderRadius:"$space$8",$$inputFontSize:"$fontSizes$sm",$$inputHeightRatio:"2.6",br:"$$inputBorderRadius"}},rounded:{true:{$$inputBorderRadius:"$radii$pill"}},disabled:{true:{$$inputColor:"$colors$accents2",$$inputTextColor:"$colors$accents3",$$inputPlaceholderColor:"$colors$accents3",$$inputShadow:"$shadows$sm"}}}}),Ag=Se("div",{width:"100%",br:"$$inputBorderRadius","@motion":{transition:"none"},variants:{isTextarea:{false:{display:"inline-flex",alignItems:"center",height:"calc($$inputHeightRatio * $9)"}},focused:{true:{}},isReadOnly:{false:{}},underlined:{true:{}},animated:{true:{transition:"$default"},false:{transition:"none"}}},compoundVariants:[{isReadOnly:!1,underlined:!0,css:{transform:"none"}},{focused:!0,animated:!0,isReadOnly:!1,underlined:!1,css:{transform:"translateY(-$space$1)"}}]}),Kg=Se("input",{padding:0,fontSize:"$$inputFontSize",bg:"transparent",border:"none",color:"$$inputTextColor",br:0,outline:"none",size:"100%",minWidth:0,WebkitAppearance:"none","::placeholder":{color:"$$inputPlaceholderColor",transition:"opacity 0.25s ease 0s",MozTransition:"opacity 0.25s ease 0s",MsTransition:"opacity 0.25s ease 0s",WebkitTransition:"opacity 0.25s ease 0s"},"@motion":{transition:"none","&::placeholder":{transition:"none"}},"&:disabled":{pe:"none",color:"$accents4",cursor:"not-allowed"},variants:{isTextarea:{true:{boxShadow:"none",display:"block",size:"100%",resize:"none",border:"none",outline:"none"}},focused:{true:{"&::placeholder":{opacity:0,transition:"opacity 0.25s ease 0s"}}},bordered:{true:{padding:"0 $3"}},rounded:{true:{padding:"0 $3"}},animated:{false:{transition:"none","::placeholder":{transition:"none"}}},hasLeftContent:{true:{ml:0}},hasRightContent:{true:{mr:0}}}}),Og=Se("div",{flex:1,position:"relative",br:"$$inputBorderRadius",bg:"$$inputColor",display:"inline-flex",verticalAlign:"middle",alignItems:"center",userSelect:"none","@motion":{transition:"none","&:before":{transition:"none"},"&:after":{transition:"none"}},variants:{focused:{true:{}},isReadOnly:{true:{}},bordered:{true:{bg:"transparent",border:"none",boxShadow:"0 0 0 $$inputBorderWeight $$inputBorderColor",transition:"box-shadow 0.25s ease"}},shadow:{true:{transition:"$default"}},disabled:{true:{cursor:"not-allowed"}},underlined:{true:{bg:"transparent",[`& ${Kg}`]:{margin:"$2 $3"},"&:before":{content:"",position:"absolute",zIndex:"$2",width:0,bottom:0,height:"$1",left:"50%",transform:"translate(-50%)",background:"$$inputHoverBorderColor",transition:"width 0.25s ease"},"&:after":{content:"",position:"absolute",zIndex:"$1",bottom:0,width:"100%",height:"$$inputBorderWeight",bg:"$$inputBorderColor"}},false:{[`& ${Kg}`]:{margin:"$2 $5"}}},animated:{false:{transition:"none","&:before":{transition:"none"},"&:after":{transition:"none"}}},isTextarea:{true:{boxSizing:"border-box",width:"100%",maxWidth:"100%",height:"auto"},false:{height:"100%"}}},compoundVariants:[{bordered:!0,underlined:!0,css:{boxShadow:"0 0 0 0px $$inputBorderColor"}},{focused:!0,underlined:!0,css:{"&:before":{width:"100%"}}},{focused:!0,shadow:!0,isReadOnly:!1,underlined:!1,css:{boxShadow:"$$inputShadow"}},{focused:!0,bordered:!0,isReadOnly:!1,underlined:!1,css:{boxShadow:"0 0 0 $$inputBorderWeight $$inputHoverBorderColor"}},{bordered:!0,isReadOnly:!1,underlined:!1,css:{"&:hover":{boxShadow:"0 0 0 $$inputBorderWeight $$inputHoverBorderColor"}}},{isTextarea:!0,underlined:!1,css:{[`& ${Kg}`]:{margin:"$xs $sm"}}}]}),jg=Se("div",{position:"absolute",opacity:0,bottom:"calc($$inputHeightRatio * -$space$5)","@motion":{transition:"none"},variants:{animated:{true:{transition:"opacity 0.25s ease"},false:{transition:"none"}},withValue:{true:{opacity:1}}}}),_g=Se("p",{margin:"$1 0 0 $5",fontSize:"$space$5",color:"$$inputHelperColor"}),Fg=Se("span",{},Re),Wg=Se("label",{d:"block",fontWeight:"$normal",color:"$$inputLabelColor",p:"0 0 0 $2",mb:"$3",fs:"$$inputFontSize",lh:"$md",WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",us:"none","> *:first-child":{marginTop:0},"> *:last-child":{mb:0},"@motion":{transition:"none"},variants:{rounded:{true:{padding:"0 0 0 $3"}},asPlaceholder:{true:{position:"absolute",padding:0,zIndex:"$1",left:"$space$6",top:"20%",mb:0,cursor:"text",color:"$$inputPlaceholderColor",transition:"left 0.25s ease 0s, color 0.25s ease 0s, top 0.25s ease 0s"}},animated:{false:{transition:"none"}},focused:{true:{color:"$$inputHoverBorderColor"}},underlined:{true:{}},withValue:{true:{}},isTextarea:{true:{}},bordered:{true:{}},hasContentLeft:{true:{}}},compoundVariants:[{underlined:!0,asPlaceholder:!0,css:{left:"$space$2"}},{asPlaceholder:!0,focused:!0,underlined:!1,isTextarea:!1,css:{top:"-72%",left:"$2",cursor:"inherit"}},{asPlaceholder:!0,focused:!0,underlined:!0,isTextarea:!1,css:{top:"-72%",left:"0px",cursor:"inherit"}},{asPlaceholder:!0,withValue:!0,underlined:!1,isTextarea:!1,css:{color:"$$inputTextColor",top:"-72%",left:"$2",cursor:"inherit"}},{asPlaceholder:!0,withValue:!0,underlined:!0,isTextarea:!1,css:{color:"$$inputTextColor",top:"-72%",left:"0px",cursor:"inherit"}},{asPlaceholder:!0,isTextarea:!0,css:{top:"$5"}},{asPlaceholder:!0,hasContentLeft:!0,css:{left:"calc($space$6 + $$inputHeightRatio * $space$7)"}},{asPlaceholder:!0,isTextarea:!0,focused:!0,css:{top:"calc(-$space$10 - $space$3)",left:"$2"}},{asPlaceholder:!0,isTextarea:!0,withValue:!0,css:{top:"-$11"}},{asPlaceholder:!0,focused:!0,isTextarea:!0,bordered:!0,css:{top:"-$12"}}],defaultVariants:{asPlaceholder:!1}}),Bg=Se("span",{position:"relative",display:"inline-flex",width:"initial",height:"100%",fontWeight:"$medium",ai:"center",pe:"none",margin:0,padding:"0 $sm",color:"$$inputPlaceholderColor",fontSize:"$$inputFontSize",lineHeight:"$xs",variants:{isRight:{true:{btrr:"$$inputBorderRadius",bbrr:"$$inputBorderRadius"},false:{btlr:"$$inputBorderRadius",bblr:"$$inputBorderRadius"}},isDark:{true:{}},isDefaultStatus:{true:{}},underlined:{true:{bg:"transparent"}},bordered:{true:{"&:after":{display:"none"},"&:before":{display:"none"}}}},compoundVariants:[{isRight:!0,underlined:!0,css:{borderLeftColor:"$$inputPlaceholderColor",borderLeftStyle:"solid",marginLeft:"$2",borderLeftWidth:"calc($$inputBorderWeight / 2)",height:"40%"}},{isRight:!1,underlined:!0,css:{borderRightColor:"$$inputPlaceholderColor",borderRightStyle:"solid",marginRight:"$2",borderRightWidth:"calc($$inputBorderWeight / 1)",height:"40%"}},{isDefaultStatus:!0,bordered:!1,underlined:!1,css:{bg:"$accents2"}},{isDefaultStatus:!0,bordered:!1,underlined:!1,isDark:!0,css:{color:"$accents6"}},{isDefaultStatus:!1,bordered:!0,underlined:!1,css:{bg:"$$inputColor"}},{bordered:!0,isRight:!0,css:{peddingRight:"$sm",paddingLeft:0}},{bordered:!0,isRight:!1,css:{peddingLeft:"$sm",paddingRight:0}}],defaultVariants:{isRight:!1}}),Vg=Se("span",{variants:{applyStyles:{true:{display:"flex",boxSizing:"content-box",width:"calc($$inputHeightRatio * $space$4)",height:"100%",alignItems:"center",verticalAlign:"center",margin:0,padding:"0 calc($$inputHeightRatio * $3)",color:"$$inputTextColor",lineHeight:"$xs",position:"relative",cursor:"default",pe:"none"}},clickable:{true:{cursor:"pointer",pe:"auto"}}}}),Hg=Se("button",{position:"absolute",right:0,margin:0,d:"inline-flex",ai:"center",border:"none",bg:"transparent",width:"auto",height:"auto",cursor:"pointer",boxSizing:"border-box",transition:"color 250ms ease 0s, transform 250ms ease 0s, opacity 250ms ease 0s",color:"$$inputPlaceholderColor",visibility:"hidden",transform:"translateX(20%)",opacity:0,"&:hover":{opacity:.85},svg:{color:"currentColor",size:"calc($space$5 * $$inputHeightRatio)"},"@motion":{transition:"none"},variants:{visible:{true:{visibility:"visible",transform:"translateX(0)",opacity:1}},underlined:{true:{padding:"0 $1"}},animated:{false:{transition:"none"}},hasContentRight:{true:{padding:0,position:"relative",transform:"translateX(30%)"}},disabled:{true:{cursor:"not-allowed","&:hover":{color:"$accents3"}}}}}),Ug=g().forwardRef((({as:e="input",label:t,labelPlaceholder:n,labelLeft:r,labelRight:o,size:i,helperText:a,color:s,helperColor:l,status:c,contentLeft:u,contentRight:d,contentClickable:p,contentLeftStyling:h,contentRightStyling:g,onContentClick:m,initialValue:b,onChange:y,readOnly:$,value:v,onClearClick:x,clearable:w,shadow:S,animated:C,required:k,width:E,className:T,onBlur:P,onFocus:I,autoComplete:M,placeholder:N,fullWidth:R,borderWeight:L,disabled:D,bordered:z,underlined:A,rounded:K,css:O,...j},_)=>{const F=(0,f.useRef)(null);(0,f.useImperativeHandle)(_,(()=>F.current));const[W,B]=(0,f.useState)(b),[V,H]=(0,f.useState)(!1),{isDark:U}=Ae(),G=(0,f.useMemo)((()=>void 0!==v),[v]),Y=(0,f.useMemo)((()=>t||n),[t,n]),X=(0,f.useMemo)((()=>n?"":N),[N,n]),J=(0,f.useMemo)((()=>R?"100%":E||"initial"),[R,E]),q=(e,t)=>{D||m&&m(e,t)};(0,f.useEffect)((()=>{G&&B(v)}));const Z=(0,f.useMemo)((()=>"textarea"===e),[e]),Q={...j,...G?{value:W}:{defaultValue:b}},{labelProps:ee,fieldProps:te}=Rg({...Q,label:Y}),ne=(0,f.useMemo)((()=>V?"hover":D?"disabled":$?"read-only":W?"with-value":"normal"),[V,D,$,W]);return(0,st.jsxs)(zg,{color:s,"data-state":ne,helperColor:l,borderWeight:L,status:c,size:i,rounded:K,disabled:D,css:{width:J,...O},className:Ui("nextui-input-main-container",`nextui-input-main-container--${ne}`),children:[Y&&(0,st.jsx)(Wg,{id:ee.id,className:"nextui-input-block-label",htmlFor:ee.htmlFor,isTextarea:Z,underlined:A,animated:C,bordered:z,rounded:K,hasContentLeft:!!u,withValue:!!W,asPlaceholder:!!n,focused:V,children:Y}),(0,st.jsx)(Ag,{animated:C,isTextarea:Z,underlined:A,isReadOnly:$,focused:V,className:Ui("nextui-input-container",`nextui-input-container--${ne}`,{"nextui-input-container--input":!Z,"nextui-input-container--textarea":Z,"nextui-input-container--read-only":$},T),children:(0,st.jsxs)(Og,{as:Y?"div":"label",animated:C,bordered:z,shadow:S,disabled:D,focused:V,isReadOnly:$,underlined:A,isTextarea:Z,className:Ui("nextui-input-wrapper",`nextui-input-wrapper--${ne}`,{"nextui-input-wrapper--bordered":z,"nextui-input-wrapper--underlined":A,"nextui-input-wrapper--shadow":S}),children:[!Y&&N&&(0,st.jsx)(Fg,{className:"nextui-input-placeholder",children:N}),r&&(0,st.jsx)(Bg,{className:"nextui-input-label--left",isDefaultStatus:"default"===c,underlined:A,bordered:z,isDark:U,children:r}),u&&(0,st.jsx)(Vg,{className:Ui("nextui-input-content","nextui-input-content--left"),applyStyles:h,clickable:p,onClick:e=>q("left",e),children:u}),(0,st.jsx)(Kg,{type:"text",as:e,ref:F,className:Ui({"nextui-input":!Z,"nextui-input-textarea":Z,"nextui-input-disabled":D,"nextui-input-rounded":K,"nextui-input-nextui-input-right-content":d,"nextui-input-left-content":u}),isTextarea:Z,focused:V,bordered:z,placeholder:X,disabled:D,readOnly:$,onFocus:e=>{H(!0),I&&I(e)},onBlur:e=>{H(!1),P&&P(e)},onChange:e=>{D||$||(B(e.target.value),y&&y(e))},autoComplete:M,hasLeftContent:!!u,hasRightContent:!!d,"data-state":ne,"aria-placeholder":X,"aria-readonly":$,"aria-required":k,"aria-multiline":Z,...Q,...te}),w&&(0,st.jsx)(Hg,{type:"button",className:"nextui-input-clear-button",animated:C,underlined:A,visible:Boolean(W),hasContentRight:!!d,disabled:D||$,onClick:e=>{if(e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),B(""),x&&x(e),!F.current)return;const t=((e,t)=>({...t,target:e,currentTarget:e}))(F.current,e);t.target.value="",y&&y(t),F.current.focus()},children:(0,st.jsx)(zh,{fill:"currentColor"})}),d&&(0,st.jsx)(Vg,{className:Ui("nextui-input-content","nextui-input-content--right"),applyStyles:g,clickable:p,onClick:e=>q("right",e),children:d}),o&&(0,st.jsx)(Bg,{className:"nextui-input-label--right",isDefaultStatus:"default"===c,underlined:A,bordered:z,isRight:!0,isDark:U,children:o})]})}),(0,st.jsx)(jg,{className:"nextui-input-helper-text-container",withValue:!!a,children:a&&(0,st.jsx)(_g,{className:"nextui-input-helper-text",children:a})})]})}));Ug.displayName="NextUI - Input",Ug.defaultProps=Dg,Ug.toString=()=>".nextui-input";const Gg=Ug,Yg=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],Xg={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},Jg="undefined"!=typeof document&&!!document.documentElement.currentStyle,qg=e=>{Object.keys(Xg).forEach((t=>{e.style.setProperty(t,Xg[t],"important")}))};let Zg=null;const Qg=g().forwardRef(((e,t)=>{const n=(0,f.useRef)(null),r=g().useRef(0),o=g().useRef(),{cacheMeasurements:i,rows:a,maxRows:s,minRows:l,onChange:c,onHeightChange:u,css:d,...h}=e;Object.keys(h).forEach((e=>{p.indexOf(e)>-1&&delete h[e]}));const m=void 0!==h.value;(0,f.useImperativeHandle)(t,(()=>n.current));const b=()=>{const e=n.current,t=i&&o.current?o.current:(e=>{const t=window.getComputedStyle(e);if(null===t)return null;const n=(r=t,Yg.reduce(((e,t)=>(e[t]=r[t],e)),{}));var r;const{boxSizing:o}=n;return""===o?null:(Jg&&"border-box"===o&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px"),{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)})})(e);if(!t)return;o.current=t;const[c,d]=((e,t,n=1,r=1/0)=>{Zg||(Zg=document.createElement("textarea"),Zg.setAttribute("tabindex","-1"),Zg.setAttribute("aria-hidden","true"),qg(Zg)),null===Zg.parentNode&&document.body.appendChild(Zg);const{paddingSize:o,borderSize:i,sizingStyle:a}=e,{boxSizing:s}=a;Object.keys(a).forEach((e=>{const t=e;Zg.style[t]=a[t]})),qg(Zg),Zg.value=t;let l=((e,t)=>{const n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize})(Zg,e);Zg.value="x";const c=Zg.scrollHeight-o;let u=c*n;"border-box"===s&&(u=u+o+i),l=Math.max(u,l);let d=c*r;return"border-box"===s&&(d=d+o+i),l=Math.min(d,l),[l,c]})(t,e.value||e.placeholder||"x",a||l,a||s);r.current!==c&&(r.current=c,e.style.setProperty("height",`${c}px`,"important"),u&&u(c,{rowHeight:d}))};return"undefined"!=typeof document&&((0,f.useLayoutEffect)(b),$(b)),(0,st.jsx)(am,{as:"textarea",ref:n,onChange:e=>{m||b(),c&&c(e)},css:{...d},...h})}));Qg.toString=()=>".nextui-textarea";const em=Vi(Qg,{minRows:3,maxRows:6,cacheMeasurements:!0,initialValue:""}),tm=({visible:e})=>(0,st.jsx)("svg",{viewBox:"0 0 24 24",width:"16",height:"16",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",className:"nextui-input-password-icon",shapeRendering:"geometricPrecision",style:{color:"currentColor"},children:e?(0,st.jsxs)(st.Fragment,{children:[(0,st.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24"}),(0,st.jsx)("path",{d:"M1 1l22 22"})]}):(0,st.jsxs)(st.Fragment,{children:[(0,st.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,st.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}),nm=g().memo(tm),rm={...Dg,hideToggle:!1,visibleIcon:(0,st.jsx)(nm,{visible:!0}),hiddenIcon:(0,st.jsx)(nm,{visible:!1})},om=g().forwardRef((({hideToggle:e,visibleIcon:t,hiddenIcon:n,children:r,...o},i)=>{const a=(0,f.useRef)(null),[s,l]=(0,f.useState)(!1);(0,f.useImperativeHandle)(i,(()=>a.current));const c=()=>{l((e=>!e))},u=(0,f.useMemo)((()=>({...o,ref:a,className:Ui("nextui-input-password",o.className),contentClickable:!0,onContentClick:c,type:s?"text":"password"})),[o,c,s,a]),d=(0,f.useMemo)((()=>e?null:s?t:n),[e,s,t,n]);return(0,st.jsx)(Gg,{contentRight:d,...u,children:r})}));om.toString=()=>".nextui-input-password";const im=Vi(om,rm);Gg.Textarea=em,Gg.Password=im;const am=Gg;function sm(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}sm({},"Layout",(()=>lm));class lm{shouldInvalidate(e,t){return e.width!==t.width||e.height!==t.height}validate(e){}getInitialLayoutInfo(e){return e}getFinalLayoutInfo(e){return e}}sm({},"LayoutInfo",(()=>cm));class cm{copy(){let e=new cm(this.type,this.key,this.rect.copy());return e.estimatedSize=this.estimatedSize,e.opacity=this.opacity,e.transform=this.transform,e.parentKey=this.parentKey,e.isSticky=this.isSticky,e.zIndex=this.zIndex,e.allowOverflow=this.allowOverflow,e}constructor(e,t,n){this.type=e,this.key=t,this.parentKey=null,this.rect=n,this.estimatedSize=!1,this.isSticky=!1,this.opacity=1,this.transform=null,this.zIndex=0,this.allowOverflow=!1}}sm({},"Point",(()=>um));class um{copy(){return new um(this.x,this.y)}equals(e){return this.x===e.x&&this.y===e.y}isOrigin(){return 0===this.x&&0===this.y}constructor(e=0,t=0){this.x=e,this.y=t}}sm({},"Rect",(()=>dm));class dm{get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new um(this.x,this.y)}get topRight(){return new um(this.maxX,this.y)}get bottomLeft(){return new um(this.x,this.maxY)}get bottomRight(){return new um(this.maxX,this.maxY)}intersects(e){return this.x<=e.x+e.width&&e.x<=this.x+this.width&&this.y<=e.y+e.height&&e.y<=this.y+this.height}containsRect(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.maxX&&this.maxY>=e.maxY}containsPoint(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.x&&this.maxY>=e.y}getCornerInRect(e){for(let t of["topLeft","topRight","bottomLeft","bottomRight"])if(e.containsPoint(this[t]))return t;return null}equals(e){return e.x===this.x&&e.y===this.y&&e.width===this.width&&e.height===this.height}pointEquals(e){return this.x===e.x&&this.y===e.y}sizeEquals(e){return this.width===e.width&&this.height===e.height}copy(){return new dm(this.x,this.y,this.width,this.height)}constructor(e=0,t=0,n=0,r=0){this.x=e,this.y=t,this.width=n,this.height=r}}sm({},"Size",(()=>pm));class pm{copy(){return new pm(this.width,this.height)}equals(e){return this.width===e.width&&this.height===e.height}constructor(e=0,t=0){this.width=e,this.height=t}}sm({},"ReusableView",(()=>fm));let hm=0;class fm{prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null}constructor(e){this.virtualizer=e,this.key=++hm}}sm({},"useVirtualizerState",(()=>km));let gm,mm="undefined"!=typeof window?window.performance:null,bm=mm&&(mm.now||mm.webkitNow||mm.msNow||mm.mozNow),ym=bm?bm.bind(mm):function(){return Date.now?Date.now():(new Date).getTime()};function $m(e){return Math.sin(e*Math.PI/2)}function vm(e,t){let n=new Set;for(let r of e.keys())t.has(r)||n.add(r);return n}class xm{addSample(e){this.count++,this.value+=(e-this.value)/this.count}constructor(){this.count=0,this.value=0}}class wm{setVisibleRect(e){let t=performance.now()-this.startTime;t<500&&(this.averageTime.addSample(t),e.x!==this.visibleRect.x&&t>0&&(this.velocity.x=(e.x-this.visibleRect.x)/t),e.y!==this.visibleRect.y&&t>0&&(this.velocity.y=(e.y-this.visibleRect.y)/t)),this.startTime=performance.now(),this.visibleRect=e}collectMetrics(){let e=performance.now()-this.startTime;if(e<500&&this.averagePerf.addSample(e),this.visibleRect.height>0){let e=Math.abs(this.velocity.y*(this.averageTime.value+this.averagePerf.value));this.overscanY.addSample(e)}if(this.visibleRect.width>0){let e=Math.abs(this.velocity.x*(this.averageTime.value+this.averagePerf.value));this.overscanX.addSample(e)}}getOverscannedRect(){let e=this.visibleRect.copy(),t=100*Math.round(Math.min(2*this.visibleRect.height,this.overscanY.value)/100);this.velocity.y>0?(e.y-=.2*t,e.height+=t+.2*t):(e.y-=t,e.height+=t+.2*t);let n=100*Math.round(Math.min(2*this.visibleRect.width,this.overscanX.value)/100);return this.velocity.x>0?(e.x-=.2*n,e.width+=n+.2*n):(e.x-=n,e.width+=n+.2*n),e}constructor(){this.startTime=0,this.averagePerf=new xm,this.averageTime=new xm,this.velocity=new um(5,5),this.overscanX=new xm,this.overscanY=new xm,this.visibleRect=new dm}}class Sm{constructor(){this.level=0,this.actions=[],this.animated=!0,this.initialMap=new Map,this.finalMap=new Map,this.initialLayoutInfo=new Map,this.finalLayoutInfo=new Map,this.removed=new Map,this.toRemove=new Map}}class Cm{_setContentSize(e){this._contentSize=e,this.delegate.setContentSize(e)}_setContentOffset(e){let t=new dm(e.x,e.y,this._visibleRect.width,this._visibleRect.height);this.delegate.setVisibleRect(t)}get contentSize(){return this._contentSize}get visibleRect(){return this._visibleRect}set visibleRect(e){this._setVisibleRect(e)}_setVisibleRect(e,t=!1){let n=this._visibleRect;if(e.equals(n))return;this.shouldOverscan&&this._overscanManager.setVisibleRect(e);let r=this.layout&&this.layout.shouldInvalidate(e,this._visibleRect);this._resetAnimatedContentOffset(),this._visibleRect=e,r?this.relayout({offsetChanged:!e.pointEquals(n),sizeChanged:!e.sizeEquals(n)}):this.updateSubviews(t)}get collection(){return this._collection}set collection(e){this._setData(e)}_setData(e){e!==this._collection&&(this._collection?this._runTransaction((()=>{this._collection=e}),this.transitionDuration>0):(this._collection=e,this.reloadData()))}reloadData(){this.relayout({contentChanged:!0})}getItem(e){return this._collection?this._collection.getItem(e):null}get layout(){return this._layout}set layout(e){this.setLayout(e)}setLayout(e,t=!1){if(e===this._layout)return;let n=()=>{this._layout&&(this._layout.virtualizer=null),e.virtualizer=this,this._layout=e};t?this._runTransaction(n):(n(),this.relayout())}_getReuseType(e,t){if("item"===e.type&&t){let n=this.delegate.getType?this.delegate.getType(t):"item";return{type:n,reuseType:"item"===n?"item":e.type+"_"+n}}return{type:e.type,reuseType:e.type}}getReusableView(e){let t=this.getItem(e.key),{reuseType:n}=this._getReuseType(e,t);this._reusableViews[n]||(this._reusableViews[n]=[]);let r=this._reusableViews[n],o=r.length>0?r.pop():new fm(this);return o.viewType=n,this._animatedContentOffset.isOrigin()||((e=e.copy()).rect.x+=this._animatedContentOffset.x,e.rect.y+=this._animatedContentOffset.y),o.layoutInfo=e,this._renderView(o),o}_renderView(e){let{type:t,key:n}=e.layoutInfo;e.content=this.getItem(n),e.rendered=this._renderContent(t,e.content)}_renderContent(e,t){let n=this._renderedContent.get(t);if(null!=n)return n;let r=this.delegate.renderView(e,t);return t&&this._renderedContent.set(t,r),r}get visibleViews(){return Array.from(this._visibleViews.values())}getView(e){return this._visibleViews.get(e)||null}getViewsOfType(e){return this.visibleViews.filter((t=>t.layoutInfo&&t.layoutInfo.type===e))}keyForView(e){return e&&e.layoutInfo?e.layoutInfo.key:null}keyAtPoint(e){let t=new dm(e.x,e.y,1,1),n=this.layout.getVisibleLayoutInfos(t)[0];return n?n.key:null}willUnmount(){cancelAnimationFrame(this._relayoutRaf)}relayout(e={}){this._scrollAnimation||"undefined"==typeof requestAnimationFrame||(this._invalidationContext?Object.assign(this._invalidationContext,e):(this._invalidationContext=e,this._relayoutRaf=requestAnimationFrame((()=>{this._relayoutRaf=null,this.relayoutNow()}))))}relayoutNow(e=this._invalidationContext||{}){if(this._relayoutRaf&&(cancelAnimationFrame(this._relayoutRaf),this._relayoutRaf=null,e={...this._invalidationContext,...e}),this._invalidationContext=null,!this.layout||!this._collection||this._scrollAnimation)return;let t=this._getScrollAnchor();"function"==typeof e.beforeLayout&&e.beforeLayout(),this.layout.validate(e),this._setContentSize(this.layout.getContentSize()),"function"==typeof e.afterLayout&&e.afterLayout();let n=this.getVisibleRect(),r=this._restoreScrollAnchor(t,e),o=e.contentChanged?0:r.x,i=e.contentChanged?0:r.y;o=Math.max(0,Math.min(this.contentSize.width-n.width,o)),i=Math.max(0,Math.min(this.contentSize.height-n.height,i));let a=!1;if(o!==n.x||i!==n.y?e.animated||!this._animatedContentOffset.isOrigin()?(this._animatedContentOffset.x+=n.x-o,this._animatedContentOffset.y+=n.y-i,a=this.updateSubviews(e.contentChanged)):this._setContentOffset(new um(o,i)):a=this.updateSubviews(e.contentChanged),e.transaction&&e.animated||this._applyLayoutInfos(),e.animated&&a){this._enableTransitions();let t=()=>{if(this._disableTransitions(),!this._animatedContentOffset.isOrigin()){let{x:e,y:t}=this.getVisibleRect();this._resetAnimatedContentOffset(),this._setContentOffset(new um(e,t))}"function"==typeof e.afterAnimation&&e.afterAnimation()};setTimeout(t,this.transitionDuration+100)}else"function"==typeof e.afterAnimation&&e.afterAnimation()}_correctItemOrder(){if(!this._isScrolling&&!this._transaction)for(let e of this._visibleLayoutInfos.keys()){let t=this._visibleViews.get(e);this._children.delete(t),this._children.add(t)}}_enableTransitions(){this.delegate.beginAnimations()}_disableTransitions(){this.delegate.endAnimations()}_getScrollAnchor(){if(!this.anchorScrollPosition)return null;let e=this.getVisibleRect();if(this.delegate.getScrollAnchor){let t=this.delegate.getScrollAnchor(e);if(null!=t){let n=this.layout.getLayoutInfo(t),r=n.rect.getCornerInRect(e);if(r)return{key:n.key,layoutInfo:n,corner:r,offset:n.rect[r].y-e.y}}}if(0===e.y&&!this.anchorScrollPositionAtTop)return null;let t=null;for(let[n,r]of this._visibleViews){let o=r.layoutInfo;if(o&&o.rect.area>0){let r=o.rect.getCornerInRect(e);if(r){let i=o.rect[r].y-e.y;(!t||i<t.offset)&&(t={key:n,layoutInfo:o,corner:r,offset:i})}}}return t}_restoreScrollAnchor(e,t){let n=this.getVisibleRect();if(e){var r;let o=(null===(r=t.transaction)||void 0===r?void 0:r.animated)?t.transaction.finalMap.get(e.key):this.layout.getLayoutInfo(e.layoutInfo.key);if(o){let t=o.rect[e.corner].y-n.y-e.offset;n.y+=t}}return n}getVisibleRect(){let e=this.visibleRect,t=e.x-this._animatedContentOffset.x,n=e.y-this._animatedContentOffset.y;return new dm(t,n,e.width,e.height)}getVisibleLayoutInfos(){let e=this.shouldOverscan?this._overscanManager.getOverscannedRect():this.getVisibleRect();return this._visibleLayoutInfos=this._getLayoutInfoMap(e),this._visibleLayoutInfos}_getLayoutInfoMap(e,t=!1){let n=this.layout.getVisibleLayoutInfos(e),r=new Map;for(let e of n)t&&(e=e.copy()),r.set(e.key,e);return r}updateSubviews(e=!1){if(!this._collection)return;let t,n,r,o=this.getVisibleLayoutInfos(),i=this._visibleViews;if(e)t=o,n=i,r=new Set;else{({toAdd:t,toRemove:n,toUpdate:r}=function(e,t){let n=vm(e,t),r=vm(t,e),o=new Set;for(let n of e.keys())t.has(n)&&o.add(n);return{toRemove:n,toAdd:r,toUpdate:o}}(i,o));for(let e of r){let a=i.get(e);if(!a||!a.layoutInfo)continue;let s=this.getItem(o.get(e).key);if(a.content===s)r.delete(e);else{let{reuseType:o}=this._getReuseType(a.layoutInfo,s);a.viewType!==o&&(r.delete(e),t.add(e),n.add(e))}}if(0===t.size&&0===n.size&&0===r.size)return void(this._transaction&&this._applyLayoutInfos())}let a=new Set;for(let e of n.keys()){let t=this._visibleViews.get(e);t&&(a.add(t),this._visibleViews.delete(e),this._transaction?this._transaction.toRemove.set(e,t):this.reuseView(t))}for(let e of t.keys()){let t,n=o.get(e);this._transaction&&(this._transaction.initialLayoutInfo.has(e)&&(n=this._transaction.initialLayoutInfo.get(e)),t=this._transaction.toRemove.get(e),t&&(this._transaction.toRemove.delete(e),this._applyLayoutInfo(t,n))),t||(t=this.getReusableView(n),a.has(t)||this._children.add(t)),this._visibleViews.set(e,t),a.delete(t)}for(let e of r){let t=i.get(e);this._renderedContent.delete(e),this._renderView(t)}this._transaction||this.removeViews(a),this._correctItemOrder(),this._flushVisibleViews();let s=this._transaction&&(t.size>0||n.size>0||this._hasLayoutUpdates());return s&&requestAnimationFrame((()=>{this._transaction&&requestAnimationFrame((()=>this._applyLayoutInfos()))})),s}afterRender(){this.shouldOverscan&&this._overscanManager.collectMetrics()}_flushVisibleViews(){let e=new Map([[null,[]]]);for(let t of this._children)e.has(t.layoutInfo.parentKey)||e.set(t.layoutInfo.parentKey,[]),e.get(t.layoutInfo.parentKey).push(t),e.has(t.layoutInfo.key)||e.set(t.layoutInfo.key,[]);let t=(n,r)=>r.map((r=>{let o=e.get(r.layoutInfo.key);return this.delegate.renderWrapper(n,r,o,(e=>t(r,e)))})),n=t(null,e.get(null));this.delegate.setVisibleViews(n)}_applyLayoutInfo(e,t){return e.layoutInfo!==t&&(e.layoutInfo=t,!0)}_applyLayoutInfos(){let e=!1;for(let t of this._visibleViews.values()){let n=t.layoutInfo;if(n){let r=this.layout.getLayoutInfo(n.key);this._applyLayoutInfo(t,r)&&(e=!0)}}if(this._transaction){for(let t of this._transaction.toRemove.values()){let n=t.layoutInfo,r=this.layout.getLayoutInfo(n.key);this._applyLayoutInfo(t,r)&&(e=!0)}for(let t of this._transaction.removed.values()){let n=t.layoutInfo,r=this._transaction.finalLayoutInfo.get(n.key)||n;r=this.layout.getFinalLayoutInfo(r.copy()),this._applyLayoutInfo(t,r)&&(e=!0)}}e&&this._flushVisibleViews()}_hasLayoutUpdates(){if(!this._transaction)return!1;for(let e of this._visibleViews.values()){let t=e.layoutInfo;if(!t)return!0;let n=this.layout.getLayoutInfo(t.key);if(!t.rect.equals(n.rect)||t.opacity!==n.opacity||t.transform!==n.transform)return!0}return!1}reuseView(e){e.prepareForReuse(),this._reusableViews[e.viewType].push(e)}removeViews(e){for(let t of e)this._children.delete(t)}updateItemSize(e,t){this.layout.updateItemSize&&(this._scrollAnimation?this._sizeUpdateQueue.set(e,t):this.layout.updateItemSize(e,t)&&this.relayout())}startScrolling(){this._isScrolling=!0}endScrolling(){this._isScrolling=!1,this._correctItemOrder(),this._flushVisibleViews()}_resetAnimatedContentOffset(){this._animatedContentOffset.isOrigin()||(this._animatedContentOffset=new um(0,0),this._applyLayoutInfos())}scrollToItem(e,t){if(null==e)return;let n=this.layout.getLayoutInfo(e);if(!n)return;let{duration:r=300,shouldScrollX:o=!0,shouldScrollY:i=!0,offsetX:a=0,offsetY:s=0}=t,l=this.visibleRect.x,c=this.visibleRect.y,u=n.rect.x-a,d=n.rect.y-s,p=l+this.visibleRect.width,h=c+this.visibleRect.height;return o&&(u<=l||0===p?l=u:n.rect.maxX>p&&(l+=n.rect.maxX-p)),i&&(d<=c||0===h?c=d:n.rect.maxY>h&&(c+=n.rect.maxY-h)),this.scrollTo(new um(l,c),r)}scrollTo(e,t=300){return this._scrollAnimation&&(this._scrollAnimation.cancel(),this._scrollAnimation=null),t<=0||this.visibleRect.pointEquals(e)?(this._setContentOffset(e),Promise.resolve()):(this.startScrolling(),this._scrollAnimation=function(e,t,n,r,o){let i,a=!1,s=new Promise((s=>{let l=ym(),c=t.x-e.x,u=t.y-e.y;i=requestAnimationFrame((function d(p){null==gm&&(gm=p>1e12!=ym()>1e12),gm&&(p=ym());let h=p-l;h>n?(o(t),s()):!1===o(new um(e.x+c*r(h/n),e.y+u*r(h/n)))||a||(i=requestAnimationFrame(d))}))}));return s.cancel=function(){a=!0,cancelAnimationFrame(i)},s}(this.visibleRect,e,t,$m,(e=>{this._setContentOffset(e)})),this._scrollAnimation.then((()=>{this._scrollAnimation=null;for(let[e,t]of this._sizeUpdateQueue)this.updateItemSize(e,t);this._sizeUpdateQueue.clear(),this.relayout(),this._processTransactionQueue(),this.endScrolling()})),this._scrollAnimation)}_runTransaction(e,t){this._startTransaction(),this._nextTransaction&&this._nextTransaction.actions.push(e),this._endTransaction(t)}_startTransaction(){this._nextTransaction||(this._nextTransaction=new Sm),this._nextTransaction.level++}_endTransaction(e){return!(!this._nextTransaction||(null!=e&&(this._nextTransaction.animated=e),--this._nextTransaction.level>0||(0===this._nextTransaction.actions.length?(this._nextTransaction=null,1):(null==this._nextTransaction.animated&&(this._nextTransaction.animated=!0),this._transactionQueue.push(this._nextTransaction),this._nextTransaction=null,this._processTransactionQueue(),0))))}_processTransactionQueue(){if(this._transaction||this._scrollAnimation)return;let e=this._transactionQueue.shift();e&&this._performTransaction(e)}_getContentRect(){return new dm(0,0,this.contentSize.width,this.contentSize.height)}_performTransaction(e){this._transaction=e,this.relayoutNow({transaction:e,animated:e.animated,beforeLayout:()=>{e.animated&&(e.initialMap=this._getLayoutInfoMap(this._getContentRect(),!0));for(let t of e.actions)t()},afterLayout:()=>{e.animated?(e.finalMap=this._getLayoutInfoMap(this._getContentRect()),this._setupTransactionAnimations(e)):this._transaction=null},afterAnimation:()=>{if(e.toRemove.size>0||e.removed.size>0)for(let t of function*(...e){for(let t of e)yield*t}(e.toRemove.values(),e.removed.values()))this._children.delete(t),this.reuseView(t);this._transaction=null,this._correctItemOrder(),this._flushVisibleViews(),this._processTransactionQueue()}})}_setupTransactionAnimations(e){let{initialMap:t,finalMap:n}=e;for(let[r,o]of t)n.has(r)?e.initialLayoutInfo.set(r,o):e.finalLayoutInfo.set(o.key,o);for(let[r,o]of n)if(!t.has(r)){let t=this.layout.getInitialLayoutInfo(o.copy());e.initialLayoutInfo.set(r,t)}for(let[t,r]of this._visibleViews)n.has(t)||(e.removed.set(t,r),this._visibleViews.delete(t),r.layoutInfo&&(e.finalLayoutInfo.has(r.layoutInfo.key)||e.finalLayoutInfo.set(r.layoutInfo.key,r.layoutInfo)))}constructor(e={}){var t;this._contentSize=new pm,this._visibleRect=new dm,this._reusableViews={},this._visibleLayoutInfos=new Map,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._children=new Set,this._invalidationContext=null,this._overscanManager=new wm,this._scrollAnimation=null,this._isScrolling=!1,this._sizeUpdateQueue=new Map,this._animatedContentOffset=new um(0,0),this._transaction=null,this._nextTransaction=null,this._transactionQueue=[],this.transitionDuration=null!==(t=e.transitionDuration)&&void 0!==t?t:500,this.anchorScrollPosition=e.anchorScrollPosition||!1,this.anchorScrollPositionAtTop=e.anchorScrollPositionAtTop||!1,this.shouldOverscan=!1!==e.shouldOverscan;for(let t of["delegate","size","layout","collection"])e[t]&&(this[t]=e[t])}}function km(e){let[t,n]=(0,f.useState)([]),[r,o]=(0,f.useState)(new pm),[i,a]=(0,f.useState)(!1),[s,l]=(0,f.useState)(!1),c=(0,f.useMemo)((()=>new Cm),[]);return c.delegate={setVisibleViews:n,setVisibleRect(t){c.visibleRect=t,e.onVisibleRectChange(t)},setContentSize:o,renderView:e.renderView,renderWrapper:e.renderWrapper,beginAnimations:()=>a(!0),endAnimations:()=>a(!1),getScrollAnchor:e.getScrollAnchor},c.layout=e.layout,c.collection=e.collection,c.transitionDuration=e.transitionDuration,zf((()=>{c.afterRender()})),(0,f.useEffect)((()=>()=>c.willUnmount()),[]),{virtualizer:c,visibleViews:t,setVisibleRect:(0,f.useCallback)((e=>{c.visibleRect=e}),[c]),contentSize:r,isAnimating:i,isScrolling:s,startScrolling:(0,f.useCallback)((()=>{c.startScrolling(),l(!0)}),[c]),endScrolling:(0,f.useCallback)((()=>{c.endScrolling(),l(!1)}),[c])}}function Em(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}Em({},"Pressable",(()=>Wm)),Em({},"usePress",(()=>Dm));let Tm="default",Pm="",Im=new WeakMap;function Mm(e){wg()?("default"===Tm&&(Pm=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),Tm="disabled"):e&&(Im.set(e,e.style.userSelect),e.style.userSelect="none")}function Nm(e){if(wg()){if("disabled"!==Tm)return;Tm="restoring",setTimeout((()=>{Qf((()=>{"restoring"===Tm&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=Pm||""),Pm="",Tm="default")}))}),300)}else if(e&&Im.has(e)){let t=Im.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),Im.delete(e)}}function Rm(e){return!(0!==e.mozInputSource||!e.isTrusted)||0===e.detail&&!e.pointerType}const Lm=g().createContext(null);function Dm(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:a,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:u,ref:d,...p}=function(e){let t=(0,f.useContext)(Lm);if(t){let{register:n,...r}=t;e=Ff(r,e),n()}return sg(t,e.ref),e}(e),h=(0,f.useRef)(null);h.current={onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:a,shouldCancelOnPointerExit:c};let[g,m]=(0,f.useState)(!1),b=(0,f.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:y,removeAllGlobalListeners:$}=ng(),v=(0,f.useMemo)((()=>{let e=b.current,t=(t,n)=>{let{onPressStart:r,onPressChange:o,isDisabled:i}=h.current;i||e.didFirePressStart||(r&&r({type:"pressstart",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),o&&o(!0),e.didFirePressStart=!0,m(!0))},n=(t,n,r=!0)=>{let{onPressEnd:o,onPressChange:i,onPress:a,isDisabled:s}=h.current;e.didFirePressStart&&(e.ignoreClickAfterPress=!0,e.didFirePressStart=!1,o&&o({type:"pressend",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),i&&i(!1),m(!1),a&&r&&!s&&a({type:"press",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}))},r=(e,t)=>{let{onPressUp:n,isDisabled:r}=h.current;r||n&&n({type:"pressup",pointerType:t,target:e.currentTarget,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})},o=t=>{e.isPressed&&(e.isOverTarget&&n(Om(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,$(),u||Nm(e.target))},i={onKeyDown(n){Am(n.nativeEvent)&&n.currentTarget.contains(n.target)&&(Fm(n.target)&&n.preventDefault(),n.stopPropagation(),e.isPressed||n.repeat||(e.target=n.currentTarget,e.isPressed=!0,t(n,"keyboard"),y(document,"keyup",s,!1)))},onKeyUp(t){Am(t.nativeEvent)&&!t.repeat&&t.currentTarget.contains(t.target)&&r(Om(e.target,t),"keyboard")},onClick(o){o&&!o.currentTarget.contains(o.target)||o&&0===o.button&&(o.stopPropagation(),a&&o.preventDefault(),e.ignoreClickAfterPress||e.ignoreEmulatedMouseEvents||"virtual"!==e.pointerType&&!Rm(o.nativeEvent)||(a||l||Uf(o.currentTarget),t(o,"virtual"),r(o,"virtual"),n(o,"virtual")),e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1)}},s=t=>{if(e.isPressed&&Am(t)){Fm(t.target)&&t.preventDefault(),t.stopPropagation(),e.isPressed=!1;let r=t.target;n(Om(e.target,t),"keyboard",e.target.contains(r)),$(),(e.target.contains(r)&&zm(e.target)||"link"===e.target.getAttribute("role"))&&e.target.click()}};if("undefined"!=typeof PointerEvent){i.onPointerDown=n=>{var r;0===n.button&&n.currentTarget.contains(n.target)&&(0===(r=n.nativeEvent).width&&0===r.height||1===r.width&&1===r.height&&0===r.pressure&&0===r.detail?e.pointerType="virtual":(_m(n.currentTarget)&&n.preventDefault(),e.pointerType=n.pointerType,n.stopPropagation(),e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=n.pointerId,e.target=n.currentTarget,a||l||Uf(n.currentTarget),u||Mm(e.target),t(n,e.pointerType),y(document,"pointermove",s,!1),y(document,"pointerup",c,!1),y(document,"pointercancel",d,!1))))},i.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(_m(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},i.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&jm(t,t.currentTarget)&&r(t,e.pointerType||t.pointerType)};let s=r=>{r.pointerId===e.activePointerId&&(jm(r,e.target)?e.isOverTarget||(e.isOverTarget=!0,t(Om(e.target,r),e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,n(Om(e.target,r),e.pointerType,!1),h.current.shouldCancelOnPointerExit&&o(r)))},c=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&(jm(t,e.target)?n(Om(e.target,t),e.pointerType):e.isOverTarget&&n(Om(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,$(),u||Nm(e.target))},d=e=>{o(e)};i.onDragStart=e=>{e.currentTarget.contains(e.target)&&o(e)}}else{i.onMouseDown=n=>{0===n.button&&n.currentTarget.contains(n.target)&&(_m(n.currentTarget)&&n.preventDefault(),n.stopPropagation(),e.ignoreEmulatedMouseEvents||(e.isPressed=!0,e.isOverTarget=!0,e.target=n.currentTarget,e.pointerType=Rm(n.nativeEvent)?"virtual":"mouse",a||l||Uf(n.currentTarget),t(n,e.pointerType),y(document,"mouseup",s,!1)))},i.onMouseEnter=n=>{n.currentTarget.contains(n.target)&&(n.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!0,t(n,e.pointerType)))},i.onMouseLeave=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!1,n(t,e.pointerType,!1),h.current.shouldCancelOnPointerExit&&o(t)))},i.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||r(t,e.pointerType))};let s=t=>{0===t.button&&(e.isPressed=!1,$(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(jm(t,e.target)?n(Om(e.target,t),e.pointerType):e.isOverTarget&&n(Om(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};i.onTouchStart=n=>{if(!n.currentTarget.contains(n.target))return;n.stopPropagation();let r=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(n.nativeEvent);r&&(e.activePointerId=r.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=n.currentTarget,e.pointerType="touch",a||l||Uf(n.currentTarget),u||Mm(e.target),t(n,e.pointerType),y(window,"scroll",c,!0))},i.onTouchMove=r=>{if(!r.currentTarget.contains(r.target))return;if(r.stopPropagation(),!e.isPressed)return;let i=Km(r.nativeEvent,e.activePointerId);i&&jm(i,r.currentTarget)?e.isOverTarget||(e.isOverTarget=!0,t(r,e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,n(r,e.pointerType,!1),h.current.shouldCancelOnPointerExit&&o(r))},i.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(t.stopPropagation(),!e.isPressed)return;let o=Km(t.nativeEvent,e.activePointerId);o&&jm(o,t.currentTarget)?(r(t,e.pointerType),n(t,e.pointerType)):e.isOverTarget&&n(t,e.pointerType,!1),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,u||Nm(e.target),$()},i.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&o(t))};let c=t=>{e.isPressed&&t.target.contains(e.target)&&o({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};i.onDragStart=e=>{e.currentTarget.contains(e.target)&&o(e)}}return i}),[y,a,l,$,u]);return(0,f.useEffect)((()=>()=>{u||Nm(b.current.target)}),[u]),{isPressed:s||g,pressProps:Ff(p,v)}}function zm(e){return"A"===e.tagName&&e.hasAttribute("href")}function Am(e){const{key:t,code:n,target:r}=e,o=r,{tagName:i,isContentEditable:a}=o,s=o.getAttribute("role");return!("Enter"!==t&&" "!==t&&"Spacebar"!==t&&"Space"!==n||"INPUT"===i||"TEXTAREA"===i||!0===a||zm(o)&&("button"!==s||"Enter"===t)||"link"===s&&"Enter"!==t)}function Km(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const r=n[e];if(r.identifier===t)return r}return null}function Om(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function jm(e,t){let n=t.getBoundingClientRect(),r=function(e){let t=e.width/2||e.radiusX||0,n=e.height/2||e.radiusY||0;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return function(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}(n,r)}function _m(e){return!e.draggable}function Fm(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&"submit"===e.type)}Lm.displayName="PressResponderContext";const Wm=g().forwardRef((({children:e,...t},n)=>{let r=(0,f.useRef)();n=null!=n?n:r;let{pressProps:o}=Dm({...t,ref:n}),i=g().Children.only(e);return g().cloneElement(i,{ref:n,...Ff(i.props,o)})}));Em({},"PressResponder",(()=>Bm));const Bm=g().forwardRef((({children:e,...t},n)=>{let r=(0,f.useRef)(!1),o=(0,f.useContext)(Lm),i=Ff(o||{},{...t,ref:n||(null==o?void 0:o.ref),register(){r.current=!0,o&&o.register()}});return sg(o,n),(0,f.useEffect)((()=>{r.current||console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component.")}),[]),g().createElement(Lm.Provider,{value:i},e)}));function Vm(e){if(e.isDisabled)return{focusProps:{}};let t,n;return(e.onFocus||e.onFocusChange)&&(t=t=>{t.target===t.currentTarget&&(e.onFocus&&e.onFocus(t),e.onFocusChange&&e.onFocusChange(!0))}),(e.onBlur||e.onFocusChange)&&(n=t=>{t.target===t.currentTarget&&(e.onBlur&&e.onBlur(t),e.onFocusChange&&e.onFocusChange(!1))}),{focusProps:{onFocus:t,onBlur:n}}}Em({},"useFocus",(()=>Vm));var Hm={};Em(Hm,"isFocusVisible",(()=>ib)),Em(Hm,"getInteractionModality",(()=>ab)),Em(Hm,"setInteractionModality",(()=>sb)),Em(Hm,"useInteractionModality",(()=>lb)),Em(Hm,"useFocusVisible",(()=>cb)),Em(Hm,"useFocusVisibleListener",(()=>ub));let Um=null,Gm=new Set,Ym=!1,Xm=!1,Jm=!1;const qm={Tab:!0,Escape:!0};function Zm(e,t){for(let n of Gm)n(e,t)}function Qm(e){Xm=!0,function(e){return!(e.metaKey||!$g()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Um="keyboard",Zm("keyboard",e))}function eb(e){Um="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Xm=!0,Zm("pointer",e))}function tb(e){Rm(e)&&(Xm=!0,Um="virtual")}function nb(e){e.target!==window&&e.target!==document&&(Xm||Jm||(Um="virtual",Zm("virtual",e)),Xm=!1,Jm=!1)}function rb(){Xm=!1,Jm=!0}function ob(){if("undefined"==typeof window||Ym)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Xm=!0,e.apply(this,arguments)},document.addEventListener("keydown",Qm,!0),document.addEventListener("keyup",Qm,!0),document.addEventListener("click",tb,!0),window.addEventListener("focus",nb,!0),window.addEventListener("blur",rb,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",eb,!0),document.addEventListener("pointermove",eb,!0),document.addEventListener("pointerup",eb,!0)):(document.addEventListener("mousedown",eb,!0),document.addEventListener("mousemove",eb,!0),document.addEventListener("mouseup",eb,!0)),Ym=!0}function ib(){return"pointer"!==Um}function ab(){return Um}function sb(e){Um=e,Zm(e,null)}function lb(){ob();let[e,t]=(0,f.useState)(Um);return(0,f.useEffect)((()=>{let e=()=>{t(Um)};return Gm.add(e),()=>{Gm.delete(e)}}),[]),e}function cb(e={}){let{isTextInput:t,autoFocus:n}=e,[r,o]=(0,f.useState)(n||ib());return ub((e=>{o(e)}),[t],{isTextInput:t}),{isFocusVisible:r}}function ub(e,t,n){ob(),(0,f.useEffect)((()=>{let t=(t,r)=>{(function(e,t,n){return!(e&&"keyboard"===t&&n instanceof KeyboardEvent&&!qm[n.key])})(null==n?void 0:n.isTextInput,t,r)&&e(ib())};return Gm.add(t),()=>{Gm.delete(t)}}),t)}function db(e){let t=(0,f.useRef)({isFocusWithin:!1}).current;return e.isDisabled?{focusWithinProps:{}}:{focusWithinProps:{onFocus:n=>{t.isFocusWithin||(e.onFocusWithin&&e.onFocusWithin(n),e.onFocusWithinChange&&e.onFocusWithinChange(!0),t.isFocusWithin=!0)},onBlur:n=>{t.isFocusWithin&&!n.currentTarget.contains(n.relatedTarget)&&(e.onBlurWithin&&e.onBlurWithin(n),e.onFocusWithinChange&&e.onFocusWithinChange(!1),t.isFocusWithin=!1)}}}}"undefined"!=typeof document&&("loading"!==document.readyState?ob():document.addEventListener("DOMContentLoaded",ob)),Em({},"useFocusWithin",(()=>db)),Em({},"useHover",(()=>bb));let pb=!1,hb=0;function fb(){pb=!0,setTimeout((()=>{pb=!1}),50)}function gb(e){"touch"===e.pointerType&&fb()}function mb(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",gb):document.addEventListener("touchend",fb),hb++,()=>{hb--,hb>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",gb):document.removeEventListener("touchend",fb))}}function bb(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,a]=(0,f.useState)(!1),s=(0,f.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,f.useEffect)(mb,[]);let{hoverProps:l,triggerHoverEnd:c}=(0,f.useMemo)((()=>{let e=(e,r)=>{if(s.pointerType=r,o||"touch"===r||s.isHovered||!e.currentTarget.contains(e.target))return;s.isHovered=!0;let i=e.currentTarget;s.target=i,t&&t({type:"hoverstart",target:i,pointerType:r}),n&&n(!0),a(!0)},i=(e,t)=>{if(s.pointerType="",s.target=null,"touch"===t||!s.isHovered)return;s.isHovered=!1;let o=e.currentTarget;r&&r({type:"hoverend",target:o,pointerType:t}),n&&n(!1),a(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=t=>{pb&&"mouse"===t.pointerType||e(t,t.pointerType)},l.onPointerLeave=e=>{!o&&e.currentTarget.contains(e.target)&&i(e,e.pointerType)}):(l.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=t=>{s.ignoreEmulatedMouseEvents||pb||e(t,"mouse"),s.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!o&&e.currentTarget.contains(e.target)&&i(e,"mouse")}),{hoverProps:l,triggerHoverEnd:i}}),[t,n,r,o,s]);return(0,f.useEffect)((()=>{o&&c({currentTarget:s.target},s.pointerType)}),[o]),{hoverProps:l,isHovered:i}}function yb(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=(0,f.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:n,onInteractOutsideStart:o}).current;i.onInteractOutside=n,i.onInteractOutsideStart=o,(0,f.useEffect)((()=>{if(r)return;let e=e=>{$b(e,t)&&i.onInteractOutside&&(i.onInteractOutsideStart&&i.onInteractOutsideStart(e),i.isPointerDown=!0)};if("undefined"!=typeof PointerEvent){let n=e=>{i.isPointerDown&&i.onInteractOutside&&$b(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))};return document.addEventListener("pointerdown",e,!0),document.addEventListener("pointerup",n,!0),()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("pointerup",n,!0)}}{let n=e=>{i.ignoreEmulatedMouseEvents?i.ignoreEmulatedMouseEvents=!1:i.isPointerDown&&i.onInteractOutside&&$b(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))},r=e=>{i.ignoreEmulatedMouseEvents=!0,i.onInteractOutside&&i.isPointerDown&&$b(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))};return document.addEventListener("mousedown",e,!0),document.addEventListener("mouseup",n,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("touchend",r,!0),()=>{document.removeEventListener("mousedown",e,!0),document.removeEventListener("mouseup",n,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("touchend",r,!0)}}}),[t,i,r])}function $b(e,t){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return!1}return t.current&&!t.current.contains(e.target)}function vb(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function xb(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:vb(e.onKeyDown),onKeyUp:vb(e.onKeyUp)}}}function wb(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,o=(0,f.useRef)({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:a}=ng(),s=(0,f.useMemo)((()=>{let e={},s=()=>{Mm(),o.current.didMove=!1},l=(e,r,i,a)=>{0===i&&0===a||(o.current.didMove||(o.current.didMove=!0,null==t||t({type:"movestart",pointerType:r,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),n({type:"move",pointerType:r,deltaX:i,deltaY:a,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))},c=(e,t)=>{Nm(),o.current.didMove&&(null==r||r({type:"moveend",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))};if("undefined"==typeof PointerEvent){let t=e=>{0===e.button&&(l(e,"mouse",e.pageX-o.current.lastPosition.pageX,e.pageY-o.current.lastPosition.pageY),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY})},n=e=>{0===e.button&&(c(e,"mouse"),a(window,"mousemove",t,!1),a(window,"mouseup",n,!1))};e.onMouseDown=e=>{0===e.button&&(s(),e.stopPropagation(),e.preventDefault(),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY},i(window,"mousemove",t,!1),i(window,"mouseup",n,!1))};let r=e=>{let t=[...e.changedTouches].findIndex((({identifier:e})=>e===o.current.id));if(t>=0){let{pageX:n,pageY:r}=e.changedTouches[t];l(e,"touch",n-o.current.lastPosition.pageX,r-o.current.lastPosition.pageY),o.current.lastPosition={pageX:n,pageY:r}}},u=e=>{[...e.changedTouches].findIndex((({identifier:e})=>e===o.current.id))>=0&&(c(e,"touch"),o.current.id=null,a(window,"touchmove",r),a(window,"touchend",u),a(window,"touchcancel",u))};e.onTouchStart=e=>{if(0===e.changedTouches.length||null!=o.current.id)return;let{pageX:t,pageY:n,identifier:a}=e.changedTouches[0];s(),e.stopPropagation(),e.preventDefault(),o.current.lastPosition={pageX:t,pageY:n},o.current.id=a,i(window,"touchmove",r,!1),i(window,"touchend",u,!1),i(window,"touchcancel",u,!1)}}else{let t=e=>{if(e.pointerId===o.current.id){let t=e.pointerType||"mouse";l(e,t,e.pageX-o.current.lastPosition.pageX,e.pageY-o.current.lastPosition.pageY),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}},n=e=>{if(e.pointerId===o.current.id){let r=e.pointerType||"mouse";c(e,r),o.current.id=null,a(window,"pointermove",t,!1),a(window,"pointerup",n,!1),a(window,"pointercancel",n,!1)}};e.onPointerDown=e=>{0===e.button&&null==o.current.id&&(s(),e.stopPropagation(),e.preventDefault(),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY},o.current.id=e.pointerId,i(window,"pointermove",t,!1),i(window,"pointerup",n,!1),i(window,"pointercancel",n,!1))}}let u=(e,t,n)=>{s(),l(e,"keyboard",t,n),c(e,"keyboard")};return e.onKeyDown=e=>{switch(e.key){case"Left":case"ArrowLeft":e.preventDefault(),e.stopPropagation(),u(e,-1,0);break;case"Right":case"ArrowRight":e.preventDefault(),e.stopPropagation(),u(e,1,0);break;case"Up":case"ArrowUp":e.preventDefault(),e.stopPropagation(),u(e,0,-1);break;case"Down":case"ArrowDown":e.preventDefault(),e.stopPropagation(),u(e,0,1)}},e}),[o,t,n,r,i,a]);return{moveProps:s}}function Sb(e,t){let{onScroll:n,isDisabled:r}=e,o=(0,f.useCallback)((e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))}),[n]);Tg(t,"wheel",r?null:o)}Em({},"useInteractOutside",(()=>yb)),Em({},"useKeyboard",(()=>xb)),Em({},"useMove",(()=>wb)),Em({},"useScrollWheel",(()=>Sb)),Em({},"useLongPress",(()=>kb));const Cb=500;function kb(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=Cb,accessibilityDescription:a}=e;const s=(0,f.useRef)(null);let{addGlobalListener:l,removeGlobalListener:c}=ng(),{pressProps:u}=Dm({isDisabled:t,onPressStart(e){if(("mouse"===e.pointerType||"touch"===e.pointerType)&&(n&&n({...e,type:"longpressstart"}),s.current=setTimeout((()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...e,type:"longpress"}),s.current=null}),i),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};l(e.target,"contextmenu",t,{once:!0}),l(window,"pointerup",(()=>{setTimeout((()=>{c(e.target,"contextmenu",t)}),30)}),{once:!0})}},onPressEnd(e){s.current&&clearTimeout(s.current),!r||"mouse"!==e.pointerType&&"touch"!==e.pointerType||r({...e,type:"longpressend"})}});return{longPressProps:Ff(u,gg(o&&!t?a:null))}}function Eb(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Tb={};Eb(Tb,"useVisuallyHidden",(()=>Ib)),Eb(Tb,"VisuallyHidden",(()=>Mb));const Pb={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:1,whiteSpace:"nowrap"};function Ib(e={}){let{style:t,isFocusable:n}=e,[r,o]=(0,f.useState)(!1),{focusProps:i}=Vm({isDisabled:!n,onFocusChange:o});return{visuallyHiddenProps:{...i,style:(0,f.useMemo)((()=>r?t:t?{...Pb,...t}:Pb),[r])}}}function Mb(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:a}=Ib(e);return g().createElement(n,Ff(i,a),t)}function Nb(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Rb={};Nb(Rb,"announce",(()=>Ab)),Nb(Rb,"clearAnnouncer",(()=>Kb)),Nb(Rb,"destroyAnnouncer",(()=>Ob));let Lb=g().createRef(),Db=null,zb=0;function Ab(e,t="assertive",n=7e3){jb((r=>r.announce(e,t,n)))}function Kb(e){jb((t=>t.clear(e)))}function Ob(){Lb.current&&(Gd().unmountComponentAtNode(Db),document.body.removeChild(Db),Db=null)}function jb(e){Lb.current?e(Lb.current):(Db=document.createElement("div"),Db.dataset.liveAnnouncer="true",document.body.prepend(Db),Gd().render(g().createElement(_b,{ref:Lb}),Db,(()=>e(Lb.current))))}const _b=g().forwardRef(((e,t)=>{let[n,r]=(0,f.useState)([]),[o,i]=(0,f.useState)([]),a=e=>{e&&"assertive"!==e||r([]),e&&"polite"!==e||i([])},s=(e,t="assertive",n=7e3)=>{let o=zb++;"assertive"===t?r((t=>[...t,{id:o,text:e}])):i((t=>[...t,{id:o,text:e}])),""!==e&&setTimeout((()=>{"assertive"===t?r((e=>e.filter((e=>e.id!==o)))):i((e=>e.filter((e=>e.id!==o))))}),n)};return(0,f.useImperativeHandle)(t,(()=>({announce:s,clear:a}))),g().createElement(f.Fragment,null,g().createElement(Fb,{"aria-live":"assertive"},n.map((e=>g().createElement("div",{key:e.id},e.text)))),g().createElement(Fb,{"aria-live":"polite"},o.map((e=>g().createElement("div",{key:e.id},e.text)))))}));function Fb({children:e,"aria-live":t}){return g().createElement(Mb,{role:"log","aria-live":t,"aria-relevant":"additions"},e)}function Wb(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Bb={};Wb(Bb,"I18nProvider",(()=>Qb)),Wb(Bb,"useLocale",(()=>ey));const Vb=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Hb=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Ub(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return Vb.has(t)}let t=e.split("-")[0];return Hb.has(t)}function Gb(){let e="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:Ub(e)?"rtl":"ltr"}}let Yb=Gb(),Xb=new Set;function Jb(){Yb=Gb();for(let e of Xb)e(Yb)}function qb(){let e=Rf(),[t,n]=(0,f.useState)(Yb);return(0,f.useEffect)((()=>(0===Xb.size&&window.addEventListener("languagechange",Jb),Xb.add(n),()=>{Xb.delete(n),0===Xb.size&&window.removeEventListener("languagechange",Jb)})),[]),e?{locale:"en-US",direction:"ltr"}:t}const Zb=g().createContext(null);function Qb(e){let{locale:t,children:n}=e,r=qb(),o=t?{locale:t,direction:Ub(t)?"rtl":"ltr"}:r;return g().createElement(Zb.Provider,{value:o},n)}function ey(){let e=qb();return(0,f.useContext)(Zb)||e}Wb({},"useMessageFormatter",(()=>ny));const ty=new WeakMap;function ny(e){let{locale:t}=ey(),n=(0,f.useMemo)((()=>function(e){let t=ty.get(e);return t||(t=new er(e),ty.set(e,t)),t}(e)),[e]),r=(0,f.useMemo)((()=>new tr(t,n)),[t,n]);return(0,f.useCallback)(((e,t)=>r.format(e,t)),[r])}function ry(e){let t=(0,f.useRef)(null);e&&t.current&&function(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0}(e,t.current)&&(e=t.current),t.current=e;let{locale:n}=ey();return(0,f.useMemo)((()=>new ai(n,e)),[n,e])}function oy(e={}){let{locale:t}=ey();return(0,f.useMemo)((()=>new gi(t,e)),[t,e])}Wb({},"useDateFormatter",(()=>ry)),Wb({},"useNumberFormatter",(()=>oy)),Wb({},"useCollator",(()=>ay));let iy=new Map;function ay(e){let{locale:t}=ey(),n=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(iy.has(n))return iy.get(n);let r=new Intl.Collator(t,e);return iy.set(n,r),r}function sy(e){let t=ay({usage:"search",...e});return{startsWith:(e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(0,n.length),n)),endsWith:(e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(-n.length),n)),contains(e,n){if(0===n.length)return!0;e=e.normalize("NFC");let r=0,o=(n=n.normalize("NFC")).length;for(;r+o<=e.length;r++){let i=e.slice(r,r+o);if(0===t.compare(n,i))return!0}return!1}}}function ly(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}Wb({},"useFilter",(()=>sy));var cy={};function uy(e){if("virtual"===ab()){let t=document.activeElement;Qf((()=>{document.activeElement===t&&document.contains(e)&&Uf(e)}))}else Uf(e)}function dy(e,t){return"#comment"!==e.nodeName&&function(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,r="none"!==t&&"hidden"!==n&&"collapse"!==n;if(r){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:o}=t(e);r="none"!==n&&"hidden"!==o&&"collapse"!==o}return r}(e)&&function(e,t){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||dy(e.parentElement,e))}ly(cy,"FocusScope",(()=>gy)),ly(cy,"useFocusManager",(()=>my)),ly(cy,"getFocusableTreeWalker",(()=>Ey)),ly(cy,"createFocusManager",(()=>Ty)),ly({},"focusSafely",(()=>uy));const py=g().createContext(null);let hy=null,fy=new Map;function gy(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=(0,f.useRef)(),a=(0,f.useRef)(),s=(0,f.useRef)([]),l=(0,f.useContext)(py),c=null==l?void 0:l.scopeRef;zf((()=>{let e=i.current.nextSibling,t=[];for(;e&&e!==a.current;)t.push(e),e=e.nextSibling;s.current=t}),[t,c]),zf((()=>(fy.set(s,c),()=>{s!==hy&&!Sy(s,hy)||c&&!fy.has(c)||(hy=c),fy.delete(s)})),[s,c]),function(e,t){let n=(0,f.useRef)(),r=(0,f.useRef)(null);zf((()=>{let o=e.current;if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||e!==hy)return;let n=document.activeElement,r=e.current;if(!xy(n,r))return;let o=Ey(vy(r),{tabbable:!0},r);o.currentNode=n;let i=t.shiftKey?o.previousNode():o.nextNode();i||(o.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,i=t.shiftKey?o.previousNode():o.nextNode()),t.preventDefault(),i&&Cy(i,!0)},a=t=>{!hy||Sy(hy,e)?(hy=e,n.current=t.target):e!==hy||wy(t.target,e)?e===hy&&(n.current=t.target):n.current?n.current.focus():hy&&ky(hy.current)},s=t=>{r.current=requestAnimationFrame((()=>{e!==hy||wy(document.activeElement,e)||(hy=e,n.current=t.target,n.current.focus())}))};return document.addEventListener("keydown",i,!1),document.addEventListener("focusin",a,!1),o.forEach((e=>e.addEventListener("focusin",a,!1))),o.forEach((e=>e.addEventListener("focusout",s,!1))),()=>{document.removeEventListener("keydown",i,!1),document.removeEventListener("focusin",a,!1),o.forEach((e=>e.removeEventListener("focusin",a,!1))),o.forEach((e=>e.removeEventListener("focusout",s,!1)))}}),[e,t]),(0,f.useEffect)((()=>()=>cancelAnimationFrame(r.current)),[r])}(s,n),function(e,t,n){const r=(0,f.useRef)("undefined"!=typeof document?document.activeElement:null);zf((()=>{let o=r.current;if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey)return;let n=document.activeElement;if(!xy(n,e.current))return;let r=Ey(document.body,{tabbable:!0});r.currentNode=n;let i=t.shiftKey?r.previousNode():r.nextNode();if(document.body.contains(o)&&o!==document.body||(o=null),(!i||!xy(i,e.current))&&o){r.currentNode=o;do{i=t.shiftKey?r.previousNode():r.nextNode()}while(xy(i,e.current));t.preventDefault(),t.stopPropagation(),i?Cy(i,!0):function(e){for(let t of fy.keys())if(xy(e,t.current))return!0;return!1}(o)?Cy(o,!0):n.blur()}};return n||document.addEventListener("keydown",i,!0),()=>{n||document.removeEventListener("keydown",i,!0),t&&o&&xy(document.activeElement,e.current)&&requestAnimationFrame((()=>{document.body.contains(o)&&Cy(o)}))}}),[e,t,n])}(s,r,n),function(e,t){const n=g().useRef(t);(0,f.useEffect)((()=>{n.current&&(hy=e,xy(document.activeElement,hy.current)||ky(e.current)),n.current=!1}),[])}(s,o);let u=function(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,s=n[0].previousElementSibling,l=Ey(vy(n),{tabbable:o},n);l.currentNode=xy(a,n)?a:s;let c=l.nextNode();return!c&&i&&(l.currentNode=s,c=l.nextNode()),c&&Cy(c,!0),c},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,s=n[n.length-1].nextElementSibling,l=Ey(vy(n),{tabbable:o},n);l.currentNode=xy(a,n)?a:s;let c=l.previousNode();return!c&&i&&(l.currentNode=s,c=l.previousNode()),c&&Cy(c,!0),c},focusFirst(t={}){let n=e.current,{tabbable:r}=t,o=Ey(vy(n),{tabbable:r},n);o.currentNode=n[0].previousElementSibling;let i=o.nextNode();return i&&Cy(i,!0),i},focusLast(t={}){let n=e.current,{tabbable:r}=t,o=Ey(vy(n),{tabbable:r},n);o.currentNode=n[n.length-1].nextElementSibling;let i=o.previousNode();return i&&Cy(i,!0),i}}}(s);return g().createElement(py.Provider,{value:{scopeRef:s,focusManager:u}},g().createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,g().createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function my(){var e;return null===(e=(0,f.useContext)(py))||void 0===e?void 0:e.focusManager}const by=["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]"],yy=by.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";by.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const $y=by.join(':not([hidden]):not([tabindex="-1"]),');function vy(e){return e[0].parentElement}function xy(e,t){return t.some((t=>t.contains(e)))}function wy(e,t){for(let n of fy.keys())if((n===t||Sy(t,n))&&xy(e,n.current))return!0;return!1}function Sy(e,t){let n=fy.get(t);return!!n&&(n===e||Sy(e,n))}function Cy(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{uy(e)}catch(e){}}function ky(e){let t=e[0].previousElementSibling,n=Ey(vy(e),{tabbable:!0},e);n.currentNode=t,Cy(n.nextNode())}function Ey(e,t,n){let r=(null==t?void 0:t.tabbable)?$y:yy,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var o;return(null==t||null===(o=t.from)||void 0===o?void 0:o.contains(e))?NodeFilter.FILTER_REJECT:e.matches(r)&&dy(e)&&(!n||xy(e,n))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return(null==t?void 0:t.from)&&(o.currentNode=t.from),o}function Ty(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,s=Ey(n,{tabbable:o});n.contains(a)&&(s.currentNode=a);let l=s.nextNode();return!l&&i&&(s.currentNode=n,l=s.nextNode()),l&&Cy(l,!0),l},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,s=Ey(n,{tabbable:o});if(!n.contains(a)){let e=Py(s);return e&&Cy(e,!0),e}s.currentNode=a;let l=s.previousNode();return!l&&i&&(s.currentNode=n,l=Py(s)),l&&Cy(l,!0),l},focusFirst(t={}){let n=e.current,{tabbable:r}=t,o=Ey(n,{tabbable:r}).nextNode();return o&&Cy(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r}=t,o=Py(Ey(n,{tabbable:r}));return o&&Cy(o,!0),o}}}function Py(e){let t,n;do{n=e.lastChild(),n&&(t=n)}while(n);return t}function Iy(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=(0,f.useRef)({isFocused:!1,isFocusVisible:t||ib()}).current,[i,a]=(0,f.useState)(!1),[s,l]=(0,f.useState)((()=>o.isFocused&&o.isFocusVisible)),c=()=>l(o.isFocused&&o.isFocusVisible),u=e=>{o.isFocused=e,a(e),c()};ub((e=>{o.isFocusVisible=e,c()}),[],{isTextInput:n});let{focusProps:d}=Vm({isDisabled:r,onFocusChange:u}),{focusWithinProps:p}=db({isDisabled:!r,onFocusWithinChange:u});return{isFocused:i,isFocusVisible:o.isFocused&&s,focusProps:r?p:d}}function My(e){let{children:t,focusClass:n,focusRingClass:r}=e,{isFocused:o,isFocusVisible:i,focusProps:a}=Iy(e),s=g().Children.only(t);return g().cloneElement(s,Ff(s.props,{...a,className:ya({[n||""]:o,[r||""]:i})}))}ly({},"FocusRing",(()=>My)),ly({},"useFocusRing",(()=>Iy));var Ny={};ly(Ny,"FocusableProvider",(()=>Dy)),ly(Ny,"useFocusable",(()=>zy));let Ry=g().createContext(null);function Ly(e,t){let{children:n,...r}=e,o={...r,ref:t};return g().createElement(Ry.Provider,{value:o},n)}let Dy=g().forwardRef(Ly);function zy(e,t){let{focusProps:n}=Vm(e),{keyboardProps:r}=xb(e),o=Ff(n,r),i=function(e){let t=(0,f.useContext)(Ry)||{};sg(t,e);let{ref:n,...r}=t;return r}(t),a=e.isDisabled?{}:i,s=(0,f.useRef)(e.autoFocus);return(0,f.useEffect)((()=>{s.current&&t.current&&t.current.focus(),s.current=!1}),[]),{focusableProps:Ff({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}function Ay(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function Ky(e){return Sg()?e.altKey:e.ctrlKey}function Oy(e){return $g()?e.metaKey:e.ctrlKey}function jy(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=(0,f.useRef)({search:"",timeout:null}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let i=function(e){return 1!==e.length&&/^[A-Z]/i.test(e)?"":e}(e.key);if(!i||e.ctrlKey||e.metaKey)return;" "===i&&o.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),o.search+=i;let a=t.getKeyForSearch(o.search,n.focusedKey);null==a&&(a=t.getKeyForSearch(o.search)),null!=a&&(n.setFocusedKey(a),r&&r(a)),clearTimeout(o.timeout),o.timeout=setTimeout((()=>{o.search=""}),500)}:null}}}function _y(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:s=!1,selectOnFocus:l="replace"===t.selectionBehavior,disallowTypeAhead:c=!1,shouldUseVirtualFocus:u,allowsTabNavigation:d=!1,isVirtualized:p,scrollRef:h=r}=e,{direction:g}=ey(),m=(0,f.useRef)({top:0,left:0});Tg(h,"scroll",p?null:()=>{m.current={top:h.current.scrollTop,left:h.current.scrollLeft}});const b=(0,f.useRef)(o);(0,f.useEffect)((()=>{if(b.current){let e=null;"first"===o&&(e=n.getFirstKey()),"last"===o&&(e=n.getLastKey());let i=t.selectedKeys;i.size&&(e=i.values().next().value),t.setFocused(!0),t.setFocusedKey(e),null!=e||u||uy(r.current)}b.current=!1}),[]),(0,f.useEffect)((()=>{if(!p&&t.focusedKey&&(null==h?void 0:h.current)){let e=h.current.querySelector(`[data-key="${t.focusedKey}"]`);e&&Ig(h.current,e)}}),[p,h,t.focusedKey]);let y,$={onKeyDown:e=>{if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!r.current.contains(e.target))return;const o=(n,r)=>{null!=n&&(t.setFocusedKey(n,r),e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(n):l&&!Ky(e)&&t.replaceSelection(n))};switch(e.key){case"ArrowDown":if(n.getKeyBelow){var c,u;e.preventDefault();let r=null!=t.focusedKey?n.getKeyBelow(t.focusedKey):null===(c=n.getFirstKey)||void 0===c?void 0:c.call(n);null==r&&i&&(r=null===(u=n.getFirstKey)||void 0===u?void 0:u.call(n,t.focusedKey)),o(r)}break;case"ArrowUp":if(n.getKeyAbove){var p,h;e.preventDefault();let r=null!=t.focusedKey?n.getKeyAbove(t.focusedKey):null===(p=n.getLastKey)||void 0===p?void 0:p.call(n);null==r&&i&&(r=null===(h=n.getLastKey)||void 0===h?void 0:h.call(n,t.focusedKey)),o(r)}break;case"ArrowLeft":n.getKeyLeftOf&&(e.preventDefault(),o(n.getKeyLeftOf(t.focusedKey),"rtl"===g?"first":"last"));break;case"ArrowRight":n.getKeyRightOf&&(e.preventDefault(),o(n.getKeyRightOf(t.focusedKey),"rtl"===g?"last":"first"));break;case"Home":if(n.getFirstKey){e.preventDefault();let r=n.getFirstKey(t.focusedKey,Oy(e));t.setFocusedKey(r),Oy(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(r):l&&t.replaceSelection(r)}break;case"End":if(n.getLastKey){e.preventDefault();let r=n.getLastKey(t.focusedKey,Oy(e));t.setFocusedKey(r),Oy(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(r):l&&t.replaceSelection(r)}break;case"PageDown":n.getKeyPageBelow&&(e.preventDefault(),o(n.getKeyPageBelow(t.focusedKey)));break;case"PageUp":n.getKeyPageAbove&&(e.preventDefault(),o(n.getKeyPageAbove(t.focusedKey)));break;case"a":Oy(e)&&"multiple"===t.selectionMode&&!0!==s&&(e.preventDefault(),t.selectAll());break;case"Escape":e.preventDefault(),a||t.clearSelection();break;case"Tab":if(!d){if(e.shiftKey)r.current.focus();else{let e,t,n=Ey(r.current,{tabbable:!0});do{t=n.lastChild(),t&&(e=t)}while(t);e&&!e.contains(document.activeElement)&&Uf(e)}break}}},onFocus:e=>{if(t.isFocused)e.currentTarget.contains(e.target)||t.setFocused(!1);else if(e.currentTarget.contains(e.target))if(t.setFocused(!0),null==t.focusedKey){let i=e=>{null!=e&&(t.setFocusedKey(e),l&&t.replaceSelection(e))},a=e.relatedTarget;var r,o;a&&e.currentTarget.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?i(null!==(r=t.lastSelectedKey)&&void 0!==r?r:n.getLastKey()):i(null!==(o=t.firstSelectedKey)&&void 0!==o?o:n.getFirstKey())}else if(!p){h.current.scrollTop=m.current.top,h.current.scrollLeft=m.current.left;let e=h.current.querySelector(`[data-key="${t.focusedKey}"]`);e&&(Uf(e),Ig(h.current,e))}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},onMouseDown(e){e.currentTarget.contains(e.target)&&e.preventDefault()}},{typeSelectProps:v}=jy({keyboardDelegate:n,selectionManager:t});return c||($=Ff(v,$)),u||(y=null==t.focusedKey?0:-1),{collectionProps:{...$,tabIndex:y}}}function Fy(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,isVirtualized:i,shouldUseVirtualFocus:a,focus:s,isDisabled:l,onAction:c,allowsDifferentPressOrigin:u}=e,d=e=>{if("keyboard"===e.pointerType&&Ky(e))t.toggleSelection(n);else{if("none"===t.selectionMode)return;"single"===t.selectionMode?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):e&&e.shiftKey?t.extendSelection(n):"toggle"===t.selectionBehavior||e&&(Oy(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?t.toggleSelection(n):t.replaceSelection(n)}},p=n===t.focusedKey;(0,f.useEffect)((()=>{p&&t.isFocused&&!a&&document.activeElement!==r.current&&(s?s():uy(r.current))}),[r,p,t.focusedKey,t.childFocusStrategy,t.isFocused,a]);let h={};a||(h={tabIndex:p?0:-1,onFocus(e){e.target===r.current&&t.setFocusedKey(n)}});let g=(0,f.useRef)(null),m=c&&"none"===t.selectionMode,b=c&&"none"!==t.selectionMode&&"replace"===t.selectionBehavior,y=!l&&t.canSelectItem(n),$={};o?($.onPressStart=e=>{g.current=e.pointerType,"keyboard"===e.pointerType&&d(e)},u?($.onPressUp=e=>{"keyboard"!==e.pointerType&&d(e)},$.onPress=m?()=>c():null):$.onPress=e=>{"keyboard"!==e.pointerType&&d(e),m&&c()}):($.onPressStart=e=>{g.current=e.pointerType,"touch"!==e.pointerType&&"virtual"!==e.pointerType&&d(e)},$.onPress=e=>{("touch"===e.pointerType||"virtual"===e.pointerType||m)&&(m||b?c():d(e))}),i||(h["data-key"]=n),$.preventFocusOnPress=a;let{pressProps:v,isPressed:x}=Dm($),w=b?e=>{"mouse"===g.current&&(e.stopPropagation(),e.preventDefault(),c())}:void 0,{longPressProps:S}=kb({isDisabled:!b,onLongPress(e){"touch"===e.pointerType&&(d(e),t.setSelectionBehavior("toggle"))}}),C=b?e=>{"Enter"===e.key&&c()}:void 0;return{itemProps:Ff(h,y||m?v:{},b?S:{},{onKeyUp:C,onDoubleClick:w}),isPressed:x}}Ay({},"useSelectableCollection",(()=>_y)),Ay({},"useTypeSelect",(()=>jy)),Ay({},"useSelectableItem",(()=>Fy)),Ay({},"useSelectableList",(()=>By)),Ay({},"ListKeyboardDelegate",(()=>Wy));class Wy{getKeyBelow(e){for(e=this.collection.getKeyAfter(e);null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}}getKeyAbove(e){for(e=this.collection.getKeyBefore(e);null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}}getFirstKey(){let e=this.collection.getFirstKey();for(;null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}}getLastKey(){let e=this.collection.getLastKey();for(;null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}}getItem(e){return this.ref.current.querySelector(`[data-key="${e}"]`)}getKeyPageAbove(e){let t=this.ref.current,n=this.getItem(e);if(!n)return null;let r=Math.max(0,n.offsetTop+n.offsetHeight-t.offsetHeight);for(;n&&n.offsetTop>r;)e=this.getKeyAbove(e),n=this.getItem(e);return e}getKeyPageBelow(e){let t=this.ref.current,n=this.getItem(e);if(!n)return null;let r=Math.min(t.scrollHeight,n.offsetTop-n.offsetHeight+t.offsetHeight);for(;n&&n.offsetTop<r;)e=this.getKeyBelow(e),n=this.getItem(e);return e}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;null!=r;){let t=n.getItem(r),o=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(o,e))return r;r=this.getKeyBelow(r)}return null}constructor(e,t,n,r){this.collection=e,this.disabledKeys=t,this.ref=n,this.collator=r}}function By(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i,autoFocus:a,shouldFocusWrap:s,isVirtualized:l,disallowEmptySelection:c,selectOnFocus:u=!1,disallowTypeAhead:d,shouldUseVirtualFocus:p,allowsTabNavigation:h}=e,g=ay({usage:"search",sensitivity:"base"}),m=(0,f.useMemo)((()=>i||new Wy(n,r,o,g)),[i,n,r,o,g]),{collectionProps:b}=_y({ref:o,selectionManager:t,keyboardDelegate:m,autoFocus:a,shouldFocusWrap:s,disallowEmptySelection:c,selectOnFocus:u,disallowTypeAhead:d,shouldUseVirtualFocus:p,allowsTabNavigation:h,isVirtualized:l,scrollRef:o});return{listProps:b}}function Vy(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function Hy(e){return e&&e.__esModule?e.default:e}Vy({},"GridKeyboardDelegate",(()=>Uy));class Uy{isCell(e){return"cell"===e.type}isRow(e){return"row"===e.type||"item"===e.type}findPreviousKey(e,t){let n=null!=e?this.collection.getKeyBefore(e):this.collection.getLastKey();for(;null!=n;){let e=this.collection.getItem(n);if(!t||t(e))return n;n=this.collection.getKeyBefore(n)}}findNextKey(e,t){let n=null!=e?this.collection.getKeyAfter(e):this.collection.getFirstKey();for(;null!=n;){let e=this.collection.getItem(n);if(!t||t(e))return n;n=this.collection.getKeyAfter(n)}}getKeyBelow(e){let t=this.collection.getItem(e);if(t&&(this.isCell(t)&&(e=t.parentKey),null!=(e=this.findNextKey(e)))){if(this.isCell(t))return[...this.collection.getItem(e).childNodes][t.index].key;if("row"===this.focusMode)return e}}getKeyAbove(e){let t=this.collection.getItem(e);if(t&&(this.isCell(t)&&(e=t.parentKey),null!=(e=this.findPreviousKey(e)))){if(this.isCell(t))return[...this.collection.getItem(e).childNodes][t.index].key;if("row"===this.focusMode)return e}}getKeyRightOf(e){let t=this.collection.getItem(e);if(t){if(this.isRow(t)){let e=[...t.childNodes];return"rtl"===this.direction?e[e.length-1].key:e[0].key}if(this.isCell(t)){let n=[...this.collection.getItem(t.parentKey).childNodes],r="rtl"===this.direction?n[t.index-1]:n[t.index+1];return r?r.key:"row"===this.focusMode?t.parentKey:"rtl"===this.direction?this.getFirstKey(e):this.getLastKey(e)}}}getKeyLeftOf(e){let t=this.collection.getItem(e);if(t){if(this.isRow(t)){let e=[...t.childNodes];return"rtl"===this.direction?e[0].key:e[e.length-1].key}if(this.isCell(t)){let n=[...this.collection.getItem(t.parentKey).childNodes],r="rtl"===this.direction?n[t.index+1]:n[t.index-1];return r?r.key:"row"===this.focusMode?t.parentKey:"rtl"===this.direction?this.getLastKey(e):this.getFirstKey(e)}}}getFirstKey(e,t){let n;if(null!=e){if(n=this.collection.getItem(e),!n)return;if(this.isCell(n)&&!t)return[...this.collection.getItem(n.parentKey).childNodes][0].key}return(null!=(e=this.findNextKey())&&n&&this.isCell(n)&&t||"cell"===this.focusMode)&&(e=[...this.collection.getItem(e).childNodes][0].key),e}getLastKey(e,t){let n;if(null!=e){if(n=this.collection.getItem(e),!n)return;if(this.isCell(n)&&!t){let e=[...this.collection.getItem(n.parentKey).childNodes];return e[e.length-1].key}}if(null!=(e=this.findPreviousKey())&&n&&this.isCell(n)&&t||"cell"===this.focusMode){let t=[...this.collection.getItem(e).childNodes];e=t[t.length-1].key}return e}getItem(e){return this.ref.current.querySelector(`[data-key="${e}"]`)}getItemRect(e){var t;if(this.layout)return null===(t=this.layout.getLayoutInfo(e))||void 0===t?void 0:t.rect;let n=this.getItem(e);return n?new dm(n.offsetLeft,n.offsetTop,n.offsetWidth,n.offsetHeight):void 0}getPageHeight(){var e,t,n;return this.layout?null===(e=this.layout.virtualizer)||void 0===e?void 0:e.visibleRect.height:null===(t=this.ref)||void 0===t||null===(n=t.current)||void 0===n?void 0:n.offsetHeight}getContentHeight(){var e,t;return this.layout?this.layout.getContentSize().height:null===(e=this.ref)||void 0===e||null===(t=e.current)||void 0===t?void 0:t.scrollHeight}getKeyPageAbove(e){let t=this.getItemRect(e);if(!t)return null;let n=Math.max(0,t.maxY-this.getPageHeight());for(;t&&t.y>n;)e=this.getKeyAbove(e),t=this.getItemRect(e);return e}getKeyPageBelow(e){let t=this.getItemRect(e);if(!t)return null;let n=this.getPageHeight(),r=Math.min(this.getContentHeight(),t.y+n);for(;t&&t.maxY<r;){let n=this.getKeyBelow(e);t=this.getItemRect(n),null!=n&&(e=n)}return e}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=null!=t?t:this.getFirstKey(),o=n.getItem(r);"cell"===o.type&&(r=o.parentKey);let i=!1;for(;null!=r;){let t=n.getItem(r);if(t.textValue){let n=t.textValue.slice(0,e.length);if(0===this.collator.compare(n,e))return this.isRow(t)&&"cell"===this.focusMode?[...t.childNodes][0].key:t.key}r=this.findNextKey(r),null!=r||i||(r=this.getFirstKey(),i=!0)}return null}constructor(e){this.collection=e.collection,this.disabledKeys=e.disabledKeys,this.ref=e.ref,this.direction=e.direction,this.collator=e.collator,this.layout=e.layout,this.focusMode=e.focusMode||"row"}}Vy({},"useGrid",(()=>I$));const Gy=new WeakMap;var Yy,Xy,Jy,qy,Zy,Qy,e$,t$,n$,r$,o$,i$,a$,s$,l$,c$,u$,d$,p$,h$,f$,g$,m$,b$,y$,$$,v$,x$,w$,S$,C$,k$,E$,T$,P$;function I$(e,t,n){let{isVirtualized:r,keyboardDelegate:o,focusMode:i,getRowText:a=(e=>{var n;return null===(n=t.collection.getItem(e))||void 0===n?void 0:n.textValue}),scrollRef:s,onRowAction:l,onCellAction:c}=e,u=ny(Hy(Yy));e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let d=ay({usage:"search",sensitivity:"base"}),{direction:p}=ey(),h=(0,f.useMemo)((()=>o||new Uy({collection:t.collection,disabledKeys:t.disabledKeys,ref:n,direction:p,collator:d,focusMode:i})),[o,t.collection,t.disabledKeys,n,p,d,i]),{collectionProps:g}=_y({ref:n,selectionManager:t.selectionManager,keyboardDelegate:h,isVirtualized:r,scrollRef:s}),m=Kf();Gy.set(t,{keyboardDelegate:h,actions:{onRowAction:l,onCellAction:c}});let b=function(e){let t=ny(Hy(Yy)),n=lb(),r=("pointer"===n||"virtual"===n||null==n)&&"undefined"!=typeof window&&"ontouchstart"in window;return gg((0,f.useMemo)((()=>{let n,o=e.selectionManager.selectionMode,i=e.selectionManager.selectionBehavior;return r&&(n=t("longPressToSelect")),"replace"===i&&"none"!==o&&e.hasItemActions?n:void 0}),[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,r]))}({selectionManager:t.selectionManager,hasItemActions:!(!l&&!c)}),y=Ff(Hf(e,{labelable:!0}),{role:"grid",id:m,"aria-multiselectable":"multiple"===t.selectionManager.selectionMode?"true":void 0},g,b);r&&(y["aria-rowcount"]=t.collection.size,y["aria-colcount"]=t.collection.columnCount);let $=t.selectionManager.rawSelection,v=(0,f.useRef)($);return ig((()=>{var e;if(!t.selectionManager.isFocused)return void(v.current=$);let n=M$($,v.current),r=M$(v.current,$),o="replace"===t.selectionManager.selectionBehavior,i=[];if(1===t.selectionManager.selectedKeys.size&&o){if(t.collection.getItem(t.selectionManager.selectedKeys.keys().next().value)){let e=a(t.selectionManager.selectedKeys.keys().next().value);e&&i.push(u("selectedItem",{item:e}))}}else if(1===n.size&&0===r.size){let e=a(n.keys().next().value);e&&i.push(u("selectedItem",{item:e}))}else if(1===r.size&&0===n.size&&t.collection.getItem(r.keys().next().value)){let e=a(r.keys().next().value);e&&i.push(u("deselectedItem",{item:e}))}"multiple"===t.selectionManager.selectionMode&&(0===i.length||"all"===$||$.size>1||"all"===v.current||(null===(e=v.current)||void 0===e?void 0:e.size)>1)&&i.push("all"===$?u("selectedAll"):u("selectedCount",{count:$.size})),i.length>0&&Ab(i.join(" ")),v.current=$}),[$]),{gridProps:y}}function M$(e,t){let n=new Set;if("all"===e||"all"===t)return n;for(let r of e.keys())t.has(r)||n.add(r);return n}function N$(){return{rowGroupProps:{role:"rowgroup"}}}function R$(e,t,n){let{node:r,isVirtualized:o,shouldSelectOnPressUp:i,onAction:a}=e,{actions:{onRowAction:s}}=Gy.get(t),{itemProps:l,isPressed:c}=Fy({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:o,shouldSelectOnPressUp:i,onAction:s?()=>s(r.key):a}),u=t.selectionManager.isSelected(r.key),d={role:"row","aria-selected":"none"!==t.selectionManager.selectionMode?u:void 0,...l};return o&&(d["aria-rowindex"]=r.index+1),{rowProps:d,isPressed:c}}function L$(e,t,n){let{node:r,isVirtualized:o,focusMode:i="child",shouldSelectOnPressUp:a,onAction:s}=e,{direction:l}=ey(),{keyboardDelegate:c,actions:{onCellAction:u}}=Gy.get(t),d=()=>{let e=Ey(n.current);if("child"===i){let n="last"===t.selectionManager.childFocusStrategy?D$(e):e.firstChild();if(n)return void uy(n)}n.current.contains(document.activeElement)||uy(n.current)},{itemProps:p,isPressed:h}=Fy({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:o,focus:d,shouldSelectOnPressUp:a,onAction:u?()=>u(r.key):s}),f=Ff(p,{role:"gridcell",onKeyDownCapture:e=>{if(!e.currentTarget.contains(e.target))return;let t=Ey(n.current);switch(t.currentNode=document.activeElement,e.key){case"ArrowLeft":{let o="rtl"===l?t.nextNode():t.previousNode();if("child"===i&&o===n.current&&(o=null),o)e.preventDefault(),e.stopPropagation(),uy(o);else{if(c.getKeyLeftOf(r.key)!==r.key)break;e.preventDefault(),e.stopPropagation(),"cell"===i&&"rtl"===l?uy(n.current):(t.currentNode=n.current,o="rtl"===l?t.firstChild():D$(t),o&&uy(o))}break}case"ArrowRight":{let o="rtl"===l?t.previousNode():t.nextNode();if("child"===i&&o===n.current&&(o=null),o)e.preventDefault(),e.stopPropagation(),uy(o);else{if(c.getKeyRightOf(r.key)!==r.key)break;e.preventDefault(),e.stopPropagation(),"cell"===i&&"ltr"===l?uy(n.current):(t.currentNode=n.current,o="rtl"===l?D$(t):t.firstChild(),o&&uy(o))}break}case"ArrowUp":case"ArrowDown":!e.altKey&&n.current.contains(e.target)&&(e.stopPropagation(),e.preventDefault(),n.current.parentElement.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent)))}},onFocus:e=>{e.target===n.current?requestAnimationFrame((()=>{"child"===i&&document.activeElement===n.current&&d()})):ib()||t.selectionManager.setFocusedKey(r.key)}});return o&&(f["aria-colindex"]=r.index+1),{gridCellProps:f,isPressed:h}}function D$(e){let t,n;do{n=e.lastChild(),n&&(t=n)}while(n);return t}function z$(e,t){let{key:n}=e,r=t.selectionManager,o=Kf(),i=t.disabledKeys.has(n),a=t.selectionManager.isSelected(n);return{checkboxProps:{id:o,"aria-label":ny(Hy(Yy))("select"),isSelected:a,isDisabled:i||"none"===r.selectionMode,onChange:()=>r.select(n)}}}function A$(e){return e&&e.__esModule?e.default:e}function K$(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}Xy=JSON.parse('{"deselectedItem":"{item} غير المحدد","longPressToSelect":"اضغط مطولًا للدخول إلى وضع التحديد.","select":"تحديد","selectedAll":"جميع العناصر المحددة.","selectedCount":"{count, plural, =0 {لم يتم تحديد عناصر} one {# عنصر محدد} other {# عنصر محدد}}.","selectedItem":"{item} المحدد"}'),Jy=JSON.parse('{"deselectedItem":"{item} не е избран.","longPressToSelect":"Натиснете и задръжте за да влезете в избирателен режим.","select":"Изберете","selectedAll":"Всички елементи са избрани.","selectedCount":"{count, plural, =0 {Няма избрани елементи} one {# избран елемент} other {# избрани елементи}}.","selectedItem":"{item} избран."}'),qy=JSON.parse('{"deselectedItem":"Položka {item} není vybrána.","longPressToSelect":"Dlouhým stisknutím přejdete do režimu výběru.","select":"Vybrat","selectedAll":"Vybrány všechny položky.","selectedCount":"{count, plural, =0 {Nevybrány žádné položky} one {Vybrána # položka} other {Vybráno # položek}}.","selectedItem":"Vybrána položka {item}."}'),Zy=JSON.parse('{"deselectedItem":"{item} ikke valgt.","longPressToSelect":"Lav et langt tryk for at aktivere valgtilstand.","select":"Vælg","selectedAll":"Alle elementer valgt.","selectedCount":"{count, plural, =0 {Ingen elementer valgt} one {# element valgt} other {# elementer valgt}}.","selectedItem":"{item} valgt."}'),Qy=JSON.parse('{"deselectedItem":"{item} nicht ausgewählt.","longPressToSelect":"Gedrückt halten, um Auswahlmodus zu öffnen.","select":"Auswählen","selectedAll":"Alle Elemente ausgewählt.","selectedCount":"{count, plural, =0 {Keine Elemente ausgewählt} one {# Element ausgewählt} other {# Elemente ausgewählt}}.","selectedItem":"{item} ausgewählt."}'),e$=JSON.parse('{"deselectedItem":"Δεν επιλέχθηκε το στοιχείο {item}.","longPressToSelect":"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.","select":"Επιλογή","selectedAll":"Επιλέχθηκαν όλα τα στοιχεία.","selectedCount":"{count, plural, =0 {Δεν επιλέχθηκαν στοιχεία} one {Επιλέχθηκε # στοιχείο} other {Επιλέχθηκαν # στοιχεία}}.","selectedItem":"Επιλέχθηκε το στοιχείο {item}."}'),t$=JSON.parse('{"deselectedItem":"{item} not selected.","select":"Select","selectedCount":"{count, plural, =0 {No items selected} one {# item selected} other {# items selected}}.","selectedAll":"All items selected.","selectedItem":"{item} selected.","longPressToSelect":"Long press to enter selection mode."}'),n$=JSON.parse('{"deselectedItem":"{item} no seleccionado.","longPressToSelect":"Mantenga pulsado para abrir el modo de selección.","select":"Seleccionar","selectedAll":"Todos los elementos seleccionados.","selectedCount":"{count, plural, =0 {Ningún elemento seleccionado} one {# elemento seleccionado} other {# elementos seleccionados}}.","selectedItem":"{item} seleccionado."}'),r$=JSON.parse('{"deselectedItem":"{item} pole valitud.","longPressToSelect":"Valikurežiimi sisenemiseks vajutage pikalt.","select":"Vali","selectedAll":"Kõik üksused valitud.","selectedCount":"{count, plural, =0 {Üksusi pole valitud} one {# üksus valitud} other {# üksust valitud}}.","selectedItem":"{item} valitud."}'),o$=JSON.parse('{"deselectedItem":"Kohdetta {item} ei valittu.","longPressToSelect":"Siirry valintatilaan painamalla pitkään.","select":"Valitse","selectedAll":"Kaikki kohteet valittu.","selectedCount":"{count, plural, =0 {Ei yhtään kohdetta valittu} one {# kohde valittu} other {# kohdetta valittu}}.","selectedItem":"{item} valittu."}'),i$=JSON.parse('{"deselectedItem":"{item} non sélectionné.","longPressToSelect":"Appuyez de manière prolongée pour passer en mode de sélection.","select":"Sélectionner","selectedAll":"Tous les éléments sélectionnés.","selectedCount":"{count, plural, =0 {Aucun élément sélectionné} one {# élément sélectionné} other {# éléments sélectionnés}}.","selectedItem":"{item} sélectionné."}'),a$=JSON.parse('{"deselectedItem":"{item} לא נבחר.","longPressToSelect":"הקשה ארוכה לכניסה למצב בחירה.","select":"בחר","selectedAll":"כל הפריטים נבחרו.","selectedCount":"{count, plural, =0 {לא נבחרו פריטים} one {פריט # נבחר} other {# פריטים נבחרו}}.","selectedItem":"{item} נבחר."}'),s$=JSON.parse('{"deselectedItem":"Stavka {item} nije odabrana.","longPressToSelect":"Dugo pritisnite za ulazak u način odabira.","select":"Odaberite","selectedAll":"Odabrane su sve stavke.","selectedCount":"{count, plural, =0 {Nije odabrana nijedna stavka} one {Odabrana je # stavka} other {Odabrano je # stavki}}.","selectedItem":"Stavka {item} je odabrana."}'),l$=JSON.parse('{"deselectedItem":"{item} nincs kijelölve.","longPressToSelect":"Nyomja hosszan a kijelöléshez.","select":"Kijelölés","selectedAll":"Az összes elem kijelölve.","selectedCount":"{count, plural, =0 {Egy elem sincs kijelölve} one {# elem kijelölve} other {# elem kijelölve}}.","selectedItem":"{item} kijelölve."}'),c$=JSON.parse('{"deselectedItem":"{item} non selezionato.","longPressToSelect":"Premi a lungo per passare alla modalità di selezione.","select":"Seleziona","selectedAll":"Tutti gli elementi selezionati.","selectedCount":"{count, plural, =0 {Nessun elemento selezionato} one {# elemento selezionato} other {# elementi selezionati}}.","selectedItem":"{item} selezionato."}'),u$=JSON.parse('{"deselectedItem":"{item} が選択されていません。","longPressToSelect":"長押しして選択モードを開きます。","select":"選択","selectedAll":"すべての項目を選択しました。","selectedCount":"{count, plural, =0 {項目が選択されていません} one {# 項目を選択しました} other {# 項目を選択しました}}。","selectedItem":"{item} を選択しました。"}'),d$=JSON.parse('{"deselectedItem":"{item}이(가) 선택되지 않았습니다.","longPressToSelect":"선택 모드로 들어가려면 길게 누르십시오.","select":"선택","selectedAll":"모든 항목이 선택되었습니다.","selectedCount":"{count, plural, =0 {선택된 항목이 없습니다} one {#개 항목이 선택되었습니다} other {#개 항목이 선택되었습니다}}.","selectedItem":"{item}이(가) 선택되었습니다."}'),p$=JSON.parse('{"deselectedItem":"{item} nepasirinkta.","longPressToSelect":"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.","select":"Pasirinkti","selectedAll":"Pasirinkti visi elementai.","selectedCount":"{count, plural, =0 {Nepasirinktas nė vienas elementas} one {Pasirinktas # elementas} other {Pasirinkta elementų: #}}.","selectedItem":"Pasirinkta: {item}."}'),h$=JSON.parse('{"deselectedItem":"Vienums {item} nav atlasīts.","longPressToSelect":"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.","select":"Atlasīt","selectedAll":"Atlasīti visi vienumi.","selectedCount":"{count, plural, =0 {Nav atlasīts neviens vienums} one {Atlasīto vienumu skaits: #} other {Atlasīto vienumu skaits: #}}.","selectedItem":"Atlasīts vienums {item}."}'),f$=JSON.parse('{"deselectedItem":"{item} er ikke valgt.","longPressToSelect":"Bruk et langt trykk for å gå inn i valgmodus.","select":"Velg","selectedAll":"Alle elementer er valgt.","selectedCount":"{count, plural, =0 {Ingen elementer er valgt} one {# element er valgt} other {# elementer er valgt}}.","selectedItem":"{item} er valgt."}'),g$=JSON.parse('{"deselectedItem":"{item} niet geselecteerd.","longPressToSelect":"Druk lang om de selectiemodus te openen.","select":"Selecteren","selectedAll":"Alle items geselecteerd.","selectedCount":"{count, plural, =0 {Geen items geselecteerd} one {# item geselecteerd} other {# items geselecteerd}}.","selectedItem":"{item} geselecteerd."}'),m$=JSON.parse('{"deselectedItem":"Nie zaznaczono {item}.","longPressToSelect":"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.","select":"Zaznacz","selectedAll":"Wszystkie zaznaczone elementy.","selectedCount":"{count, plural, =0 {Nie zaznaczono żadnych elementów} one {# zaznaczony element} other {# zaznaczonych elementów}}.","selectedItem":"Zaznaczono {item}."}'),b$=JSON.parse('{"deselectedItem":"{item} não selecionado.","longPressToSelect":"Mantenha pressionado para entrar no modo de seleção.","select":"Selecionar","selectedAll":"Todos os itens selecionados.","selectedCount":"{count, plural, =0 {Nenhum item selecionado} one {# item selecionado} other {# itens selecionados}}.","selectedItem":"{item} selecionado."}'),y$=JSON.parse('{"deselectedItem":"{item} não selecionado.","longPressToSelect":"Prima continuamente para entrar no modo de seleção.","select":"Selecionar","selectedAll":"Todos os itens selecionados.","selectedCount":"{count, plural, =0 {Nenhum item selecionado} one {# item selecionado} other {# itens selecionados}}.","selectedItem":"{item} selecionado."}'),$$=JSON.parse('{"deselectedItem":"{item} neselectat.","longPressToSelect":"Apăsați lung pentru a intra în modul de selectare.","select":"Selectare","selectedAll":"Toate elementele selectate.","selectedCount":"{count, plural, =0 {Niciun element selectat} one {# element selectat} other {# elemente selectate}}.","selectedItem":"{item} selectat."}'),v$=JSON.parse('{"deselectedItem":"{item} не выбрано.","longPressToSelect":"Нажмите и удерживайте для входа в режим выбора.","select":"Выбрать","selectedAll":"Выбраны все элементы.","selectedCount":"{count, plural, =0 {Нет выбранных элементов} one {# элемент выбран} other {# элементов выбрано}}.","selectedItem":"{item} выбрано."}'),x$=JSON.parse('{"deselectedItem":"Nevybraté položky: {item}.","longPressToSelect":"Dlhším stlačením prejdite do režimu výberu.","select":"Vybrať","selectedAll":"Všetky vybraté položky.","selectedCount":"{count, plural, =0 {Žiadne vybraté položky} one {# vybratá položka} other {Počet vybratých položiek:#}}.","selectedItem":"Vybraté položky: {item}."}'),w$=JSON.parse('{"deselectedItem":"Element {item} ni izbran.","longPressToSelect":"Za izbirni način pritisnite in dlje časa držite.","select":"Izberite","selectedAll":"Vsi elementi so izbrani.","selectedCount":"{count, plural, =0 {Noben element ni izbran} one {# element je izbran} other {# elementov je izbranih}}.","selectedItem":"Element {item} je izbran."}'),S$=JSON.parse('{"deselectedItem":"{item} nije izabrano.","longPressToSelect":"Dugo pritisnite za ulazak u režim biranja.","select":"Izaberite","selectedAll":"Izabrane su sve stavke.","selectedCount":"{count, plural, =0 {Nije izabrana nijedna stavka} one {Izabrana je # stavka} other {Izabrano je # stavki}}.","selectedItem":"{item} je izabrano."}'),C$=JSON.parse('{"deselectedItem":"{item} ej markerat.","longPressToSelect":"Tryck länge när du vill öppna väljarläge.","select":"Markera","selectedAll":"Alla markerade objekt.","selectedCount":"{count, plural, =0 {Inga markerade objekt} one {# markerat objekt} other {# markerade objekt}}.","selectedItem":"{item} markerat."}'),k$=JSON.parse('{"deselectedItem":"{item} seçilmedi.","longPressToSelect":"Seçim moduna girmek için uzun basın.","select":"Seç","selectedAll":"Tüm ögeler seçildi.","selectedCount":"{count, plural, =0 {Hiçbir öge seçilmedi} one {# öge seçildi} other {# öge seçildi}}.","selectedItem":"{item} seçildi."}'),E$=JSON.parse('{"deselectedItem":"{item} не вибрано.","longPressToSelect":"Виконайте довге натиснення, щоб перейти в режим вибору.","select":"Вибрати","selectedAll":"Усі елементи вибрано.","selectedCount":"{count, plural, =0 {Жодних елементів не вибрано} one {# елемент вибрано} other {Вибрано елементів: #}}.","selectedItem":"{item} вибрано."}'),T$=JSON.parse('{"deselectedItem":"未选择 {item}。","longPressToSelect":"长按以进入选择模式。","select":"选择","selectedAll":"已选择所有项目。","selectedCount":"{count, plural, =0 {未选择项目} one {已选择 # 个项目} other {已选择 # 个项目}}。","selectedItem":"已选择 {item}。"}'),P$=JSON.parse('{"deselectedItem":"未選取「{item}」。","longPressToSelect":"長按以進入選擇模式。","select":"選取","selectedAll":"已選取所有項目。","selectedCount":"{count, plural, =0 {未選取任何項目} one {已選取 # 個項目} other {已選取 # 個項目}}。","selectedItem":"已選取「{item}」。"}'),Yy={"ar-AE":Xy,"bg-BG":Jy,"cs-CZ":qy,"da-DK":Zy,"de-DE":Qy,"el-GR":e$,"en-US":t$,"es-ES":n$,"et-EE":r$,"fi-FI":o$,"fr-FR":i$,"he-IL":a$,"hr-HR":s$,"hu-HU":l$,"it-IT":c$,"ja-JP":u$,"ko-KR":d$,"lt-LT":p$,"lv-LV":h$,"nb-NO":f$,"nl-NL":g$,"pl-PL":m$,"pt-BR":b$,"pt-PT":y$,"ro-RO":$$,"ru-RU":v$,"sk-SK":x$,"sl-SI":w$,"sr-SP":S$,"sv-SE":C$,"tr-TR":k$,"uk-UA":E$,"zh-CN":T$,"zh-TW":P$},Vy({},"useGridRowGroup",(()=>N$)),Vy({},"useGridRow",(()=>R$)),Vy({},"useGridCell",(()=>L$)),Vy({},"useGridSelectionCheckbox",(()=>z$)),K$({},"useTable",(()=>kv));const O$=new WeakMap;function j$(e){return"string"==typeof e?e.replace(/\s*/g,""):""+e}function _$(e,t){let n=O$.get(e);if(!n)throw new Error("Unknown grid");return`${n}-${j$(t)}`}function F$(e,t,n){let r=O$.get(e);if(!r)throw new Error("Unknown grid");return`${r}-${j$(t)}-${j$(n)}`}function W$(e,t){return[...e.collection.rowHeaderColumnKeys].map((n=>F$(e,t,n))).join(" ")}var B$,V$,H$,U$,G$,Y$,X$,J$,q$,Z$,Q$,ev,tv,nv,rv,ov,iv,av,sv,lv,cv,uv,dv,pv,hv,fv,gv,mv,bv,yv,$v,vv,xv,wv,Sv;V$=JSON.parse('{"ascending":"تصاعدي","ascendingSort":"ترتيب حسب العمود {columnName} بترتيب تصاعدي","descending":"تنازلي","descendingSort":"ترتيب حسب العمود {columnName} بترتيب تنازلي","select":"تحديد","selectAll":"تحديد الكل","sortable":"عمود قابل للترتيب"}'),H$=JSON.parse('{"ascending":"възходящ","ascendingSort":"сортирано по колона {columnName} във възходящ ред","descending":"низходящ","descendingSort":"сортирано по колона {columnName} в низходящ ред","select":"Изберете","selectAll":"Изберете всичко","sortable":"сортираща колона"}'),U$=JSON.parse('{"ascending":"vzestupně","ascendingSort":"řazeno vzestupně podle sloupce {columnName}","descending":"sestupně","descendingSort":"řazeno sestupně podle sloupce {columnName}","select":"Vybrat","selectAll":"Vybrat vše","sortable":"sloupec s možností řazení"}'),G$=JSON.parse('{"ascending":"stigende","ascendingSort":"sorteret efter kolonne {columnName} i stigende rækkefølge","descending":"faldende","descendingSort":"sorteret efter kolonne {columnName} i faldende rækkefølge","select":"Vælg","selectAll":"Vælg alle","sortable":"sorterbar kolonne"}'),Y$=JSON.parse('{"ascending":"aufsteigend","ascendingSort":"sortiert nach Spalte {columnName} in aufsteigender Reihenfolge","descending":"absteigend","descendingSort":"sortiert nach Spalte {columnName} in absteigender Reihenfolge","select":"Auswählen","selectAll":"Alles auswählen","sortable":"sortierbare Spalte"}'),X$=JSON.parse('{"ascending":"αύξουσα","ascendingSort":"διαλογή ανά στήλη {columnName} σε αύξουσα σειρά","descending":"φθίνουσα","descendingSort":"διαλογή ανά στήλη {columnName} σε φθίνουσα σειρά","select":"Επιλογή","selectAll":"Επιλογή όλων","sortable":"Στήλη διαλογής"}'),J$=JSON.parse('{"select":"Select","selectAll":"Select All","sortable":"sortable column","ascending":"ascending","descending":"descending","ascendingSort":"sorted by column {columnName} in ascending order","descendingSort":"sorted by column {columnName} in descending order"}'),q$=JSON.parse('{"ascending":"de subida","ascendingSort":"ordenado por columna {columnName} en orden de subida","descending":"de bajada","descendingSort":"ordenado por columna {columnName} en orden de bajada","select":"Seleccionar","selectAll":"Seleccionar todos","sortable":"columna ordenable"}'),Z$=JSON.parse('{"ascending":"tõusev järjestus","ascendingSort":"sorditud veeru järgi {columnName} tõusvas järjestuses","descending":"laskuv järjestus","descendingSort":"sorditud veeru järgi {columnName} laskuvas järjestuses","select":"Vali","selectAll":"Vali kõik","sortable":"sorditav veerg"}'),Q$=JSON.parse('{"ascending":"nouseva","ascendingSort":"lajiteltu sarakkeen {columnName} mukaan nousevassa järjestyksessä","descending":"laskeva","descendingSort":"lajiteltu sarakkeen {columnName} mukaan laskevassa järjestyksessä","select":"Valitse","selectAll":"Valitse kaikki","sortable":"lajiteltava sarake"}'),ev=JSON.parse('{"ascending":"croissant","ascendingSort":"trié en fonction de la colonne {columnName} par ordre croissant","descending":"décroissant","descendingSort":"trié en fonction de la colonne {columnName} par ordre décroissant","select":"Sélectionner","selectAll":"Sélectionner tout","sortable":"colonne triable"}'),tv=JSON.parse('{"ascending":"עולה","ascendingSort":"מוין לפי עמודה {columnName} בסדר עולה","descending":"יורד","descendingSort":"מוין לפי עמודה {columnName} בסדר יורד","select":"בחר","selectAll":"בחר הכול","sortable":"עמודה שניתן למיין"}'),nv=JSON.parse('{"ascending":"rastući","ascendingSort":"razvrstano po stupcima {columnName} rastućem redoslijedom","descending":"padajući","descendingSort":"razvrstano po stupcima {columnName} padajućim redoslijedom","select":"Odaberite","selectAll":"Odaberite sve","sortable":"stupac koji se može razvrstati"}'),rv=JSON.parse('{"ascending":"növekvő","ascendingSort":"rendezve a(z) {columnName} oszlop szerint, növekvő sorrendben","descending":"csökkenő","descendingSort":"rendezve a(z) {columnName} oszlop szerint, csökkenő sorrendben","select":"Kijelölés","selectAll":"Összes kijelölése","sortable":"rendezendő oszlop"}'),ov=JSON.parse('{"ascending":"crescente","ascendingSort":"in ordine crescente in base alla colonna {columnName}","descending":"decrescente","descendingSort":"in ordine decrescente in base alla colonna {columnName}","select":"Seleziona","selectAll":"Seleziona tutto","sortable":"colonna ordinabile"}'),iv=JSON.parse('{"ascending":"昇順","ascendingSort":"列 {columnName} を昇順で並べ替え","descending":"降順","descendingSort":"列 {columnName} を降順で並べ替え","select":"選択","selectAll":"すべて選択","sortable":"並べ替え可能な列"}'),av=JSON.parse('{"ascending":"오름차순","ascendingSort":"{columnName} 열을 기준으로 오름차순으로 정렬됨","descending":"내림차순","descendingSort":"{columnName} 열을 기준으로 내림차순으로 정렬됨","select":"선택","selectAll":"모두 선택","sortable":"정렬 가능한 열"}'),sv=JSON.parse('{"ascending":"didėjančia tvarka","ascendingSort":"surikiuota pagal stulpelį {columnName} didėjančia tvarka","descending":"mažėjančia tvarka","descendingSort":"surikiuota pagal stulpelį {columnName} mažėjančia tvarka","select":"Pasirinkti","selectAll":"Pasirinkti viską","sortable":"rikiuojamas stulpelis"}'),lv=JSON.parse('{"ascending":"augošā secībā","ascendingSort":"kārtots pēc kolonnas {columnName} augošā secībā","descending":"dilstošā secībā","descendingSort":"kārtots pēc kolonnas {columnName} dilstošā secībā","select":"Atlasīt","selectAll":"Atlasīt visu","sortable":"kārtojamā kolonna"}'),cv=JSON.parse('{"ascending":"stigende","ascendingSort":"sortert etter kolonne {columnName} i stigende rekkefølge","descending":"synkende","descendingSort":"sortert etter kolonne {columnName} i synkende rekkefølge","select":"Velg","selectAll":"Velg alle","sortable":"kolonne som kan sorteres"}'),uv=JSON.parse('{"ascending":"oplopend","ascendingSort":"gesorteerd in oplopende volgorde in kolom {columnName}","descending":"aflopend","descendingSort":"gesorteerd in aflopende volgorde in kolom {columnName}","select":"Selecteren","selectAll":"Alles selecteren","sortable":"sorteerbare kolom"}'),dv=JSON.parse('{"ascending":"rosnąco","ascendingSort":"posortowano według kolumny {columnName} w porządku rosnącym","descending":"malejąco","descendingSort":"posortowano według kolumny {columnName} w porządku malejącym","select":"Zaznacz","selectAll":"Zaznacz wszystko","sortable":"kolumna z możliwością sortowania"}'),pv=JSON.parse('{"ascending":"crescente","ascendingSort":"classificado pela coluna {columnName} em ordem crescente","descending":"decrescente","descendingSort":"classificado pela coluna {columnName} em ordem decrescente","select":"Selecionar","selectAll":"Selecionar tudo","sortable":"coluna classificável"}'),hv=JSON.parse('{"ascending":"ascendente","ascendingSort":"Ordenar por coluna {columnName} em ordem ascendente","descending":"descendente","descendingSort":"Ordenar por coluna {columnName} em ordem descendente","select":"Selecionar","selectAll":"Selecionar tudo","sortable":"Coluna ordenável"}'),fv=JSON.parse('{"ascending":"crescătoare","ascendingSort":"sortate după coloana {columnName} în ordine crescătoare","descending":"descrescătoare","descendingSort":"sortate după coloana {columnName} în ordine descrescătoare","select":"Selectare","selectAll":"Selectare totală","sortable":"coloană sortabilă"}'),gv=JSON.parse('{"ascending":"возрастание","ascendingSort":"сортировать столбец {columnName} в порядке возрастания","descending":"убывание","descendingSort":"сортировать столбец {columnName} в порядке убывания","select":"Выбрать","selectAll":"Выбрать все","sortable":"сортируемый столбец"}'),mv=JSON.parse('{"ascending":"vzostupne","ascendingSort":"zoradené zostupne podľa stĺpca {columnName}","descending":"zostupne","descendingSort":"zoradené zostupne podľa stĺpca {columnName}","select":"Vybrať","selectAll":"Vybrať všetko","sortable":"zoraditeľný stĺpec"}'),bv=JSON.parse('{"ascending":"naraščajoče","ascendingSort":"razvrščeno po stolpcu {columnName} v naraščajočem vrstnem redu","descending":"padajoče","descendingSort":"razvrščeno po stolpcu {columnName} v padajočem vrstnem redu","select":"Izberite","selectAll":"Izberite vse","sortable":"razvrstljivi stolpec"}'),yv=JSON.parse('{"ascending":"rastući","ascendingSort":"sortirano po kolonama {columnName} rastućim redosledom","descending":"padajući","descendingSort":"sortirano po kolonama {columnName} padajućim redosledom","select":"Izaberite","selectAll":"Izaberite sve","sortable":"kolona koja se može sortirati"}'),$v=JSON.parse('{"ascending":"stigande","ascendingSort":"sorterat på kolumn {columnName} i stigande ordning","descending":"fallande","descendingSort":"sorterat på kolumn {columnName} i fallande ordning","select":"Markera","selectAll":"Markera allt","sortable":"sorterbar kolumn"}'),vv=JSON.parse('{"ascending":"artan sırada","ascendingSort":"{columnName} sütuna göre artan düzende sırala","descending":"azalan sırada","descendingSort":"{columnName} sütuna göre azalan düzende sırala","select":"Seç","selectAll":"Tümünü Seç","sortable":"Sıralanabilir sütun"}'),xv=JSON.parse('{"ascending":"висхідний","ascendingSort":"відсортовано за стовпцем {columnName} у висхідному порядку","descending":"низхідний","descendingSort":"відсортовано за стовпцем {columnName} у низхідному порядку","select":"Вибрати","selectAll":"Вибрати все","sortable":"сортувальний стовпець"}'),wv=JSON.parse('{"ascending":"升序","ascendingSort":"按列 {columnName} 升序排序","descending":"降序","descendingSort":"按列 {columnName} 降序排序","select":"选择","selectAll":"全选","sortable":"可排序的列"}'),Sv=JSON.parse('{"ascending":"遞增","ascendingSort":"已依據「{columnName}」欄遞增排序","descending":"遞減","descendingSort":"已依據「{columnName}」欄遞減排序","select":"選取","selectAll":"全選","sortable":"可排序的欄"}'),B$={"ar-AE":V$,"bg-BG":H$,"cs-CZ":U$,"da-DK":G$,"de-DE":Y$,"el-GR":X$,"en-US":J$,"es-ES":q$,"et-EE":Z$,"fi-FI":Q$,"fr-FR":ev,"he-IL":tv,"hr-HR":nv,"hu-HU":rv,"it-IT":ov,"ja-JP":iv,"ko-KR":av,"lt-LT":sv,"lv-LV":lv,"nb-NO":cv,"nl-NL":uv,"pl-PL":dv,"pt-BR":pv,"pt-PT":hv,"ro-RO":fv,"ru-RU":gv,"sk-SK":mv,"sl-SI":bv,"sr-SP":yv,"sv-SE":$v,"tr-TR":vv,"uk-UA":xv,"zh-CN":wv,"zh-TW":Sv};class Cv extends Uy{isCell(e){return"cell"===e.type||"rowheader"===e.type||"column"===e.type}getKeyBelow(e){let t=this.collection.getItem(e);if(t){if("column"===t.type){let e=[...t.childNodes][0];if(e)return e.key;let n=this.getFirstKey();if(null==n)return;return[...this.collection.getItem(n).childNodes][t.index].key}return super.getKeyBelow(e)}}getKeyAbove(e){let t=this.collection.getItem(e);if(!t)return;if("column"===t.type){let e=this.collection.getItem(t.parentKey);return e&&"column"===e.type?e.key:void 0}let n=super.getKeyAbove(e);return null!=n&&"headerrow"!==this.collection.getItem(n).type?n:this.isCell(t)?this.collection.columns[t.index].key:this.collection.columns[0].key}findNextColumnKey(e){let t=this.findNextKey(e.key,(e=>"column"===e.type));if(null!=t)return t;let n=this.collection.headerRows[e.level];for(let e of n.childNodes)if("column"===e.type)return e.key}findPreviousColumnKey(e){let t=this.findPreviousKey(e.key,(e=>"column"===e.type));if(null!=t)return t;let n=[...this.collection.headerRows[e.level].childNodes];for(let e=n.length-1;e>=0;e--){let t=n[e];if("column"===t.type)return t.key}}getKeyRightOf(e){let t=this.collection.getItem(e);if(t)return"column"===t.type?"rtl"===this.direction?this.findPreviousColumnKey(t):this.findNextColumnKey(t):super.getKeyRightOf(e)}getKeyLeftOf(e){let t=this.collection.getItem(e);if(t)return"column"===t.type?"rtl"===this.direction?this.findNextColumnKey(t):this.findPreviousColumnKey(t):super.getKeyLeftOf(e)}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t??this.getFirstKey();if(null==r)return null;let o=n.getItem(r);"cell"===o.type&&(r=o.parentKey);let i=!1;for(;null!=r;){let a=n.getItem(r);for(let r of a.childNodes){let i=n.columns[r.index];if(n.rowHeaderColumnKeys.has(i.key)&&r.textValue){let i=r.textValue.slice(0,e.length);if(0===this.collator.compare(i,e))return"cell"===(null!=t?n.getItem(t):o).type?r.key:a.key}}r=this.getKeyBelow(r),null!=r||i||(r=this.getFirstKey(),i=!0)}return null}}function kv(e,t,n){let{keyboardDelegate:r,isVirtualized:o,layout:i}=e,a=ay({usage:"search",sensitivity:"base"}),{direction:s}=ey(),l=(0,f.useMemo)((()=>r||new Cv({collection:t.collection,disabledKeys:t.disabledKeys,ref:n,direction:s,collator:a,layout:i})),[r,t.collection,t.disabledKeys,n,s,a,i]),c=Kf();O$.set(t,c);let{gridProps:u}=I$({...e,id:c,keyboardDelegate:l,getRowText(e){let n=t.collection.getItem(e);if(!n)return"";if(null!=n.textValue)return n.textValue;let r=t.collection.rowHeaderColumnKeys;if(r){let e=[];for(let o of n.childNodes){let n=t.collection.columns[o.index];if(r.has(n.key)&&o.textValue&&e.push(o.textValue),e.length===r.size)break}return e.join(" ")}return""}},t,n);o&&(u["aria-rowcount"]=t.collection.size+t.collection.headerRows.length);let{column:d,direction:p}=t.sortDescriptor||{},h=ny(A$(B$)),g=(0,f.useMemo)((()=>{let e=t.collection.columns.find((e=>e.key===d))?.textValue;return p&&d?h(`${p}Sort`,{columnName:e}):void 0}),[p,d,t.collection.columns]),m=gg(g);return ig((()=>{Ab(g,"assertive",500)}),[g]),{gridProps:Ff(u,m,{"aria-describedby":[m["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")})}}function Ev(e,t,n){let{node:r}=e,o=r.props.allowsSorting,{gridCellProps:i}=L$(e,t,n),a=r.props.isSelectionCell&&"single"===t.selectionManager.selectionMode,{pressProps:s}=Dm({isDisabled:!o||a,onPress(){t.sort(r.key)}}),{focusableProps:l}=zy({},n),c=null,u=t.sortDescriptor?.column===r.key,d=t.sortDescriptor?.direction;r.props.allowsSorting&&!Eg()&&(c=u?d:"none");let p,h=ny(A$(B$));return o&&(p=`${h("sortable")}`,u&&d&&Eg()&&(p=`${p}, ${h(d)}`)),{columnHeaderProps:{...Ff(i,s,l,gg(p)),role:"columnheader",id:_$(t,r.key),"aria-colspan":r.colspan&&r.colspan>1?r.colspan:null,"aria-sort":c}}}function Tv(e,t,n){let{node:r}=e,{rowProps:o,isPressed:i}=R$(e,t,n);return{rowProps:{...o,"aria-labelledby":W$(t,r.key)},isPressed:i}}function Pv(e,t,n){let{node:r,isVirtualized:o}=e,i={role:"row"};return o&&(i["aria-rowindex"]=r.index+1),{rowProps:i}}function Iv(e,t,n){let{gridCellProps:r,isPressed:o}=L$(e,t,n),i=e.node.column.key;return t.collection.rowHeaderColumnKeys.has(i)&&(r.role="rowheader",r.id=F$(t,e.node.parentKey,i)),{gridCellProps:r,isPressed:o}}K$({},"useTableColumnHeader",(()=>Ev)),K$({},"useTableRow",(()=>Tv)),K$({},"useTableHeaderRow",(()=>Pv)),K$({},"useTableCell",(()=>Iv));var Mv={};function Nv(e,t){let{key:n}=e;const{checkboxProps:r}=z$(e,t);return{checkboxProps:{...r,"aria-labelledby":`${r.id} ${W$(t,n)}`}}}function Rv(e){let{isEmpty:t,isSelectAll:n,selectionMode:r}=e.selectionManager;return{checkboxProps:{"aria-label":ny(A$(B$))("single"===r?"select":"selectAll"),isSelected:n,isDisabled:"multiple"!==r,isIndeterminate:!t&&!n,onChange:()=>e.selectionManager.toggleSelectAll()}}}function Lv(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function Dv(e){return null}function zv(e){return null!=e.hasChildItems?e.hasChildItems:!!e.childItems||!!(e.title&&g().Children.count(e.children)>0)}K$(Mv,"useTableSelectionCheckbox",(()=>Nv)),K$(Mv,"useTableSelectAllCheckbox",(()=>Rv)),Lv({},"Item",(()=>Av)),Dv.getCollectionNode=function*(e,t){let{childItems:n,title:r,children:o}=e,i=e.title||e.children,a=e.textValue||("string"==typeof i?i:"")||e["aria-label"]||"";a||(null==t?void 0:t.suppressTextValueWarning)||console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:e,rendered:i,textValue:a,"aria-label":e["aria-label"],hasChildNodes:zv(e),*childNodes(){if(n)for(let e of n)yield{type:"item",value:e};else if(r){let e=[];g().Children.forEach(o,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let Av=Dv;function Kv(e){return null}Lv({},"Section",(()=>Ov)),Kv.getCollectionNode=function*(e){let{children:t,title:n,items:r}=e;yield{type:"section",hasChildNodes:!0,rendered:n,"aria-label":e["aria-label"],*childNodes(){if("function"==typeof t){if(!r)throw new Error("props.children was a function but props.items is missing");for(let e of r)yield{type:"item",value:e,renderer:t}}else{let e=[];g().Children.forEach(t,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let Ov=Kv;Lv({},"useCollection",(()=>Bv));class jv{build(e,t){return this.context=t,_v((()=>this.iterateCollection(e)))}*iterateCollection(e){let{children:t,items:n}=e;if("function"==typeof t){if(!n)throw new Error("props.children was a function but props.items is missing");for(let n of e.items)yield*this.getFullNode({value:n},{renderer:t})}else{let e=[];g().Children.forEach(t,(t=>{e.push(t)}));let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e)n++,yield t}}}getKey(e,t,n,r){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${r}${t.key}`;let o=t.value;if(null!=o){var i;let e=null!==(i=o.key)&&void 0!==i?i:o.id;if(null==e)throw new Error("No key found for item");return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,r){let o=e.element;if(!o&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context)))return n.index=e.index,n.parentKey=r?r.key:null,void(yield n);o=t.renderer(e.value)}if(g().isValidElement(o)){let i=o.type;if("function"!=typeof i&&"function"!=typeof i.getCollectionNode){let e="function"==typeof o.type?o.type.name:o.type;throw new Error(`Unknown element <${e}> in collection.`)}let a=i.getCollectionNode(o.props,this.context),s=e.index,l=a.next();for(;!l.done&&l.value;){let i=l.value;e.index=s;let c=i.key;c||(c=i.element?null:this.getKey(o,e,t,n));let u=[...this.getFullNode({...i,key:c,index:s,wrapper:Fv(e.wrapper,i.wrapper)},this.getChildState(t,i),n?`${n}${o.key}`:o.key,r)];for(let t of u){if(t.value=i.value||e.value,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw new Error(`Unsupported type <${Wv(t.type)}> in <${Wv(r.type)}>. Only <${Wv(e.type)}> is supported.`);s++,yield t}l=a.next(u)}return}if(null==e.key)return;let i=this,a={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:e.value,level:r?r.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:_v((function*(){if(!e.hasChildNodes)return;let n=0;for(let r of e.childNodes()){null!=r.key&&(r.key=`${a.key}${r.key}`),r.index=n;let e=i.getFullNode(r,i.getChildState(t,r),a.key,a);for(let t of e)n++,yield t}}))};yield a}constructor(){this.cache=new WeakMap}}function _v(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||(n=e());for(let e of n)t.push(e),yield e}}}function Fv(e,t){return e&&t?n=>e(t(n)):e||t||void 0}function Wv(e){return e[0].toUpperCase()+e.slice(1)}function Bv(e,t,n,r=[]){let o=(0,f.useMemo)((()=>new jv),[]),i=(0,f.useRef)(null);return(0,f.useMemo)((()=>{let r=o.build(e,n);return i.current=t(r,i.current),i.current}),[o,e.children,e.items,n,...r])}Lv({},"getItemCount",(()=>Hv));const Vv=new WeakMap;function Hv(e){let t=Vv.get(e);if(null!=t)return t;t=0;for(let n of e)"section"===n.type?t+=Hv(n.childNodes):t++;return Vv.set(e,t),t}function Uv(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}Uv({},"useMultipleSelectionState",(()=>Yv));class Gv extends Set{constructor(e,t,n){super(e),e instanceof Gv?(this.anchorKey=t||e.anchorKey,this.currentKey=n||e.currentKey):(this.anchorKey=t,this.currentKey=n)}}function Yv(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r}=e,o=(0,f.useRef)(!1),[,i]=(0,f.useState)(!1),a=(0,f.useRef)(null),s=(0,f.useRef)(null),[,l]=(0,f.useState)(null),c=(0,f.useMemo)((()=>Xv(e.selectedKeys)),[e.selectedKeys]),u=(0,f.useMemo)((()=>Xv(e.defaultSelectedKeys,new Gv)),[e.defaultSelectedKeys]),[d,p]=va(c,u,e.onSelectionChange),h=(0,f.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),[g,m]=(0,f.useState)(e.selectionBehavior||"toggle");return"replace"===e.selectionBehavior&&"toggle"===g&&"object"==typeof d&&0===d.size&&m("replace"),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:g,setSelectionBehavior:m,get isFocused(){return o.current},setFocused(e){o.current=e,i(e)},get focusedKey(){return a.current},get childFocusStrategy(){return s.current},setFocusedKey(e,t="first"){a.current=e,s.current=t,l(e)},selectedKeys:d,setSelectedKeys(e){!r&&function(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(e,d)||p(e)},disabledKeys:h}}function Xv(e,t){return e?"all"===e?"all":new Gv(e):t}Uv({},"SelectionManager",(()=>Jv));class Jv{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?!this.state.disabledKeys.has(e):this.state.selectedKeys.has(e))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every((e=>t.has(e))),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||(null==n?void 0:n.index)<e.index)&&(e=n)}return null==e?void 0:e.key}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||(null==n?void 0:n.index)>e.index)&&(e=n)}return null==e?void 0:e.key}extendSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode)return void this.replaceSelection(e);let t;if(e=this.getKey(e),"all"===this.state.selectedKeys)t=new Gv([e],e,e);else{let n=this.state.selectedKeys,r=n.anchorKey||e;t=new Gv(n,r,e);for(let o of this.getKeyRange(r,n.currentKey||e))t.delete(o);for(let n of this.getKeyRange(e,r))this.state.disabledKeys.has(n)||t.add(n)}this.state.setSelectedKeys(t)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?n.index<=r.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let n=[],r=e;for(;r;){let e=this.collection.getItem(r);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&n.push(r),r===t)return n;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t)return e;if("cell"===t.type&&this.allowsCellSelection)return e;for(;"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e))return void this.replaceSelection(e);if(null==(e=this.getKey(e)))return;let t=new Gv("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){"none"!==this.selectionMode&&null!=(e=this.getKey(e))&&this.state.setSelectedKeys(new Gv([e],e,e))}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new Gv;for(let n of e)if(n=this.getKey(n),null!=n&&(t.add(n),"single"===this.selectionMode))break;this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;n;){if(!this.state.disabledKeys.has(n)){let r=this.collection.getItem(n);"item"===r.type&&e.push(n),r.hasChildNodes&&(this.allowsCellSelection||"item"!==r.type)&&t([...r.childNodes][0].key)}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}selectAll(){"multiple"===this.selectionMode&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Gv)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let t=this.collection.getItem(e);return!(!t||"cell"===t.type&&!this.allowsCellSelection)}constructor(e,t,n){var r;this.collection=e,this.state=t,this.allowsCellSelection=null!==(r=null==n?void 0:n.allowsCellSelection)&&void 0!==r&&r,this._isSelectAll=null}}function qv(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function Zv(e){let{collection:t,focusMode:n}=e,r=Yv(e),o=(0,f.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),i=r.setFocusedKey;return r.setFocusedKey=(e,r)=>{if("cell"===n&&null!=e){let n=t.getItem(e);if("item"===(null==n?void 0:n.type)){var o,a;let t=[...n.childNodes];e="last"===r?null===(o=t[t.length-1])||void 0===o?void 0:o.key:null===(a=t[0])||void 0===a?void 0:a.key}}i(e,r)},(0,f.useEffect)((()=>{null==r.focusedKey||t.getItem(r.focusedKey)||r.setFocusedKey(null)}),[t,r.focusedKey]),{collection:t,disabledKeys:o,selectionManager:new Jv(t,r)}}qv({},"useGridState",(()=>Zv)),qv({},"GridCollection",(()=>ex));var Qv=Symbol.iterator;class ex{*[Qv](){yield*[...this.rows]}get size(){return[...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){var e;return null===(e=[...this.rows][0])||void 0===e?void 0:e.key}getLastKey(){var e;let t=[...this.rows];return null===(e=t[t.length-1])||void 0===e?void 0:e.key}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}constructor(e){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=null==e?void 0:e.columnCount,this.rows=[];let t,n=t=>{let o=this.keyMap.get(t.key);e.visitNode&&(t=e.visitNode(t)),this.keyMap.set(t.key,t);let i,a=new Set;for(let e of t.childNodes)"cell"===e.type&&null==e.parentKey&&(e.parentKey=t.key),a.add(e.key),i?(i.nextKey=e.key,e.prevKey=i.key):e.prevKey=null,n(e),i=e;if(i&&(i.nextKey=null),o)for(let e of o.childNodes)a.has(e.key)||r(e)},r=e=>{this.keyMap.delete(e.key);for(let t of e.childNodes)this.keyMap.get(t.key)===t&&r(t)};e.items.forEach(((e,r)=>{let o={level:0,key:"row-"+r,type:"row",value:void 0,hasChildNodes:!0,childNodes:[...e.childNodes],rendered:void 0,textValue:void 0,...e,index:r};t?(t.nextKey=o.key,o.prevKey=t.key):o.prevKey=null,this.rows.push(o),n(o),t=o})),t&&(t.nextKey=null)}}function tx(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}tx({},"useTableState",(()=>ix));const nx="row-header-column-"+Math.random().toString(36).slice(2);class rx extends ex{constructor(e,t,n){let r,o=new Set,i=[];if(n?.showSelectionCheckboxes){let e={type:"column",key:nx,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};i.unshift(e)}let a=[],s=new Map,l=e=>{switch(e.type){case"body":r=e;break;case"column":s.set(e.key,e),e.hasChildNodes||(i.push(e),e.props.isRowHeader&&o.add(e.key));break;case"item":return void a.push(e)}for(let t of e.childNodes)l(t)};for(let t of e)l(t);let c=function(e,t){let n=[],r=new Map;for(let o of t){let t=o.parentKey,i=[o];for(;t;){let n=e.get(t);if(r.has(n)){n.colspan++;let{column:e,index:t}=r.get(n);if(t>i.length)break;for(let n=t;n<i.length;n++)e.splice(n,0,null);for(let t=i.length;t<e.length;t++)e[t]&&r.has(e[t])&&(r.get(e[t]).index=t)}else n.colspan=1,i.push(n),r.set(n,{column:i,index:i.length-1});t=n.parentKey}n.push(i),o.index=n.length-1}let o=Math.max(...n.map((e=>e.length))),i=Array(o).fill(0).map((()=>[])),a=0;for(let e of n){let t=o-1;for(let n of e){if(n){let e=i[t],r=e.reduce(((e,t)=>e+t.colspan),0);if(r<a){let o={type:"placeholder",key:"placeholder-"+n.key,colspan:a-r,index:r,value:null,rendered:null,level:t,hasChildNodes:!1,childNodes:[],textValue:null};e.length>0&&(e[e.length-1].nextKey=o.key,o.prevKey=e[e.length-1].key),e.push(o)}e.length>0&&(e[e.length-1].nextKey=n.key,n.prevKey=e[e.length-1].key),n.level=t,n.index=a,e.push(n)}t--}a++}let s=0;for(let e of i){let n=e.reduce(((e,t)=>e+t.colspan),0);if(n<t.length){let r={type:"placeholder",key:"placeholder-"+e[e.length-1].key,colspan:t.length-n,index:n,value:null,rendered:null,level:s,hasChildNodes:!1,childNodes:[],textValue:null,prevKey:e[e.length-1].key};e.push(r)}s++}return i.map(((e,t)=>({type:"headerrow",key:"headerrow-"+t,index:t,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:e,textValue:null})))}(s,i);c.forEach(((e,t)=>a.splice(t,0,e))),super({columnCount:i.length,items:a,visitNode:e=>(e.column=i[e.index],e)}),this.columns=i,this.rowHeaderColumnKeys=o,this.body=r,this.headerRows=c,0===this.rowHeaderColumnKeys.size&&this.rowHeaderColumnKeys.add(this.columns[n?.showSelectionCheckboxes?1:0].key)}*[Symbol.iterator](){yield*this.body.childNodes}get size(){return[...this.body.childNodes].length}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){return[...this.body.childNodes][0]?.key}getLastKey(){let e=[...this.body.childNodes];return e[e.length-1]?.key}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}}const ox={ascending:"descending",descending:"ascending"};function ix(e){let{selectionMode:t="none"}=e,n=(0,f.useMemo)((()=>({showSelectionCheckboxes:e.showSelectionCheckboxes&&"none"!==t,selectionMode:t,columns:[]})),[e.children,e.showSelectionCheckboxes,t]),r=Bv(e,((e,t)=>new rx(e,t,n)),n),{disabledKeys:o,selectionManager:i}=Zv({...e,collection:r});return{collection:r,disabledKeys:o,selectionManager:i,showSelectionCheckboxes:e.showSelectionCheckboxes||!1,sortDescriptor:e.sortDescriptor,sort(t){e.onSortChange({column:t,direction:e.sortDescriptor?.column===t?ox[e.sortDescriptor.direction]:"ascending"})}}}function ax(e){return null}tx({},"TableHeader",(()=>sx)),ax.getCollectionNode=function*(e){let{children:t,columns:n}=e;if("function"==typeof t){if(!n)throw new Error("props.children was a function but props.columns is missing");for(let e of n)yield{type:"column",value:e,renderer:t}}else{let e=[];g().Children.forEach(t,(t=>{e.push({type:"column",element:t})})),yield*e}};let sx=ax;function lx(e){return null}tx({},"TableBody",(()=>cx)),lx.getCollectionNode=function*(e){let{children:t,items:n}=e;yield{type:"body",hasChildNodes:!0,props:e,*childNodes(){if("function"==typeof t){if(!n)throw new Error("props.children was a function but props.items is missing");for(let e of n)yield{type:"item",value:e,renderer:t}}else{let e=[];g().Children.forEach(t,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let cx=lx;function ux(e){return null}tx({},"Column",(()=>dx)),ux.getCollectionNode=function*(e,t){let{title:n,children:r,childColumns:o}=e,i=n||r,a=e.textValue||("string"==typeof i?i:"")||e["aria-label"],s=yield{type:"column",hasChildNodes:!!o||n&&g().Children.count(r)>0,rendered:i,textValue:a,props:e,*childNodes(){if(o)for(let e of o)yield{type:"column",value:e};else if(n){let e=[];g().Children.forEach(r,(t=>{e.push({type:"column",element:t})})),yield*e}},shouldInvalidate:e=>(l(e),!1)},l=e=>{for(let t of s)t.hasChildNodes||e.columns.push(t)};l(t)};let dx=ux;function px(e){return null}tx({},"Row",(()=>hx)),px.getCollectionNode=function*(e,t){let{children:n,textValue:r}=e;yield{type:"item",props:e,textValue:r,"aria-label":e["aria-label"],hasChildNodes:!0,*childNodes(){if(t.showSelectionCheckboxes&&"none"!==t.selectionMode&&(yield{type:"cell",key:"header",props:{isSelectionCell:!0}}),"function"==typeof n)for(let e of t.columns)yield{type:"cell",element:n(e.key),key:e.key};else{let e=[];if(g().Children.forEach(n,(t=>{e.push({type:"cell",element:t})})),e.length!==t.columns.length)throw new Error(`Cell count must match column count. Found ${e.length} cells and ${t.columns.length} columns.`);yield*e}},shouldInvalidate:e=>e.columns.length!==t.columns.length||e.columns.some(((e,n)=>e.key!==t.columns[n].key))||e.showSelectionCheckboxes!==t.showSelectionCheckboxes||e.selectionMode!==t.selectionMode}};let hx=px;function fx(e){return null}tx({},"Cell",(()=>gx)),fx.getCollectionNode=function*(e){let{children:t}=e,n=e.textValue||("string"==typeof t?t:"")||e["aria-label"]||"";yield{type:"cell",props:e,rendered:t,textValue:n,"aria-label":e["aria-label"],hasChildNodes:!1}};let gx=fx;const mx=Se("tr",{ov:"visible"}),bx=Se("th",{height:"$14",cursor:"default",bg:"$accents1",color:"$accents6",fontSize:"$tiny",textAlign:"left",transition:"$default",position:"relative","@motion":{transition:"none"},"&:first-child":{pl:"$8",br:"$md 0 0 $md"},"&:last-child":{pr:"$8",br:"0 $md $md 0"},variants:{align:{start:{textAlign:"left"},center:{textAlign:"center"},end:{textAlign:"right"}},animated:{false:{transition:"none"}},allowsSorting:{true:{transition:"$default",cursor:"pointer","@motion":{transition:"none"},"&:hover":{color:"$accents7",bg:"$accents2"}}}},defaultVariants:{align:"left",animated:!0},compoundVariants:[{animated:!1,allowsSorting:!0,css:{transition:"none"}}]},Ne),yx=Se(bx,Ne),$x=Se("tfoot",{height:"$14",variants:{align:{start:{textAlign:"left"},center:{textAlign:"center"},end:{textAlign:"right"}}},defaultVariants:{align:"right"}}),vx=Se("td",{}),xx=Se(vx,{position:"relative",userSelect:"none",py:"$5",zIndex:"$2",transition:"$default",ov:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&:first-child":{pl:"$8"},"&:last-child":{pr:"$8"},"&:before":{zIndex:"-$1",transition:"$default",content:'""',position:"absolute",size:"100%",top:0,left:0,opacity:0},variants:{align:{start:{textAlign:"left"},center:{textAlign:"center"},end:{textAlign:"right"}}}},Ne),wx=Se("tr",{ov:"visible",color:"$text",variants:{isDisabled:{true:{color:"$accents3",pointerEvents:"none",cursor:"not-allowed"}},isSelected:{true:{color:"$$tableRowTextColor",[`& ${xx}:before`]:{opacity:1,bg:"$$tableRowColor"}}}}},Ne),Sx=Se("thead",{variants:{isFixed:{true:{display:"table",width:"100%",tableLayout:"fixed"}},isInfinityScroll:{true:{display:"block",height:"100%",overflow:"auto",[`& ${wx}`]:{display:"table",width:"100%",tableLayout:"fixed"}}}},defaultVariants:{isInfinityScroll:!1}}),Cx=Se("tr",{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",height:"calc(100% - $space$14)",variants:{isAtEnd:{true:{height:"$space$18"}},isAbsolute:{true:{position:"absolute",left:"0",top:"$10"}}}}),kx=Se("table",{borderCollapse:"separate",borderSpacing:0,width:"100%",p:"$md $sm","@motion":{[`& ${xx}`]:{transition:"none"},[`& ${xx}:before`]:{transition:"none"}},variants:{animated:{false:{[`& ${xx}`]:{transition:"none"},[`& ${xx}:before`]:{transition:"none"}}},color:{primary:{$$tableRowColor:"$colors$primaryLight",$$tableRowTextColor:"$colors$primary"},secondary:{$$tableRowColor:"$colors$secondaryLight",$$tableRowTextColor:"$colors$secondary"},success:{$$tableRowColor:"$colors$successLight",$$tableRowTextColor:"$colors$success"},warning:{$$tableRowColor:"$colors$warningLight",$$tableRowTextColor:"$colors$warning"},error:{$$tableRowColor:"$colors$errorLight",$$tableRowTextColor:"$colors$error"}},striped:{true:{[`& ${wx}[aria-selected=false]:nth-child(even)`]:{[`& ${xx}`]:{bg:"$accents1"}},[`& ${wx}:nth-child(even)`]:{[`& ${xx}:first-child`]:{br:"$lg 0 0 $lg"},[`& ${xx}:last-child`]:{br:"0 $lg $lg 0"}}}},sticked:{true:{p:0,[`& ${bx}:first-child`]:{br:"$lg 0 0 0"},[`& ${bx}:last-child`]:{br:"0 $lg 0 0"}}},lineWeight:{light:{$$tableLineWeight:"$borderWeights$light"},normal:{$$tableLineWeight:"$borderWeights$normal"},bold:{$$tableLineWeight:"$borderWeights$bold"},extrabold:{$$tableLineWeight:"$borderWeights$extrabold"},black:{$$tableLineWeight:"$borderWeights$black"}},headerLined:{true:{[`& ${bx}`]:{position:"relative",bg:"transparent","&:after":{content:"",position:"absolute",left:0,right:0,bottom:0,height:"calc($$tableLineWeight * 1.5)",bg:"$accents2"},"&:first-child":{ml:"$12",br:"0","&:after":{left:"$space$md"}},"&:last-child":{br:"0","&:after":{right:"$space$md"}}}}},lined:{true:{[`& ${wx}:not(:last-child)`]:{position:"relative",[`& ${xx}:after`]:{content:"",position:"absolute",bottom:0,left:0,right:0,height:"$$tableLineWeight",bg:"$border"},[`& ${xx}:first-child`]:{"&:after":{left:"$space$md"}},[`& ${xx}:last-child`]:{"&:after":{right:"$space$md"}}},[`& ${wx}[aria-selected=true]:not(last-child)`]:{[`& ${xx}:after`]:{bg:"$$tableRowTextColor",opacity:.3}}}},fixed:{true:{tableLayout:"fixed"}},hoverable:{true:{[`& ${xx}:first-child`]:{br:"$md 0 0 $md"},[`& ${xx}:last-child`]:{br:"0 $md $md 0"},[`& ${wx}`]:{cursor:"pointer"},[`& ${wx}[aria-selected=false]`]:{"&:hover":{[`& ${xx}:before`]:{opacity:1,bg:"$accents1"}}},[`& ${wx}[aria-selected=true]`]:{"&:hover":{[`& ${xx}:before`]:{opacity:.8}}}},false:{[`& ${xx}`]:{userSelect:"all"}}},isMultiple:{true:{}},hasPagination:{true:{}},shadow:{true:{}},compact:{true:{[`& ${xx}`]:{py:"$1"},[`& ${bx}`]:{height:"$12","&:first-child":{br:"$sm 0 0 $sm"},"&:last-child":{br:"0 $sm $sm 0"}}}}},compoundVariants:[{isMultiple:!0,hoverable:!0,css:{[`& ${wx}:not(:first-child):not(:last-child)`]:{[`& ${xx}:first-child`]:{br:0},[`& ${xx}:last-child`]:{br:0}},[`& ${wx}:first-child`]:{[`& ${xx}:first-child`]:{br:"$md 0 0 0"},[`& ${xx}:last-child`]:{br:"0 $md 0 0"}},[`& ${wx}:last-child`]:{[`& ${xx}:first-child`]:{br:"0 0 0 $md"},[`& ${xx}:last-child`]:{br:"0 0 $md 0"}}}},{isMultiple:!0,hoverable:!0,sticked:!0,css:{[`& ${wx}:first-child`]:{[`& ${xx}:first-child`]:{br:"0"},[`& ${xx}:last-child`]:{br:"0"}}}},{compact:!0,shadow:!0,css:{p:"$md $sm"}},{compact:!0,sticked:!0,css:{p:0}},{sticked:!0,isMultiple:!1,hoverable:!0,hasPagination:!1,css:{[`& ${wx}:not(:last-child)`]:{[`& ${xx}`]:{br:"0"}},[`& ${wx}:last-child`]:{[`& ${xx}:first-child`]:{br:"0 0 0 $md"},[`& ${xx}:last-child`]:{br:"0 0 $md 0"}}}},{sticked:!0,isMultiple:!1,hoverable:!0,hasPagination:!0,css:{[`& ${wx}`]:{[`& ${xx}`]:{br:"0"}}}},{sticked:!0,hasPagination:!0,css:{pb:"$5"}},{sticked:!0,hasPagination:!0,isMultiple:!0,hoverable:!0,css:{[`& ${wx}:last-child`]:{[`& ${xx}:first-child`]:{br:"0"},[`& ${xx}:last-child`]:{br:"0"}}}}],defaultVariants:{sticked:!1,color:"primary",lineWeight:"light"}}),Ex=Se("div",{display:"flex",flexDirection:"column",br:"$xl",overflowX:"scroll",variants:{shadow:{true:{bs:"$md"}},bordered:{true:{borderStyle:"solid",borderColor:"$border"},false:{bw:0}},borderWeight:{light:{bw:"$light"},normal:{bw:"$normal"},bold:{bw:"$bold"},extrabold:{bw:"$extrabold"},black:{bw:"$black"}}},defaultVariants:{shadow:!0,borderWeight:"normal"}}),Tx=Vi((({children:e,...t})=>{const{rowGroupProps:n}={rowGroupProps:{role:"rowgroup"}};return(0,st.jsx)(Sx,{className:Ui("nextui-table-row-group",t.className),...t,...n,children:e})}),{as:"thead"});function Px(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Ix={};Px(Ix,"useVisuallyHidden",(()=>Nx)),Px(Ix,"VisuallyHidden",(()=>Rx));const Mx={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:1,whiteSpace:"nowrap"};function Nx(e={}){let{style:t,isFocusable:n}=e,[r,o]=(0,f.useState)(!1),{focusProps:i}=Vm({isDisabled:!n,onFocusChange:o});return{visuallyHiddenProps:{...i,style:(0,f.useMemo)((()=>r?t:t?{...Mx,...t}:Mx),[r])}}}function Rx(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:a}=Nx(e);return g().createElement(n,Ff(i,a),t)}const Lx=Se("svg",{opacity:0,transition:"$default",path:{fill:"$$tableRowTextColor"},variants:{visible:{true:{opacity:1}},ascending:{true:{transform:"rotate(180deg)"}}}}),Dx=e=>(0,st.jsx)(Lx,{role:"presentation","aria-hidden":"true",focusable:"false",className:"nextui-table-sort-icon",width:22,height:22,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,st.jsx)("path",{d:"M12 2C6.49 2 2 6.49 2 12C2 17.51 6.49 22 12 22C17.51 22 22 17.51 22 12C22 6.49 17.51 2 12 2ZM16.06 11.27L12.53 14.8C12.38 14.95 12.19 15.02 12 15.02C11.81 15.02 11.62 14.95 11.47 14.8L7.94 11.27C7.65 10.98 7.65 10.5 7.94 10.21C8.23 9.92 8.71 9.92 9 10.21L12 13.21L15 10.21C15.29 9.92 15.77 9.92 16.06 10.21C16.35 10.5 16.35 10.97 16.06 11.27Z"})}),zx=g().forwardRef((({column:e,state:t,...n},r)=>{var o,i;const a=(0,f.useRef)(null);(0,f.useImperativeHandle)(r,(()=>null==a?void 0:a.current));const{columnHeaderProps:s}=Ev({node:e},t,a),{isFocusVisible:l,focusProps:c}=Vl();return(0,st.jsxs)(bx,{ref:a,isFocusVisible:l,colSpan:e.colspan,className:Ui("nextui-table-column-header",n.className),...Pu(n,s,c,e.props),children:[e.props.hideHeader?(0,st.jsx)(Rx,{children:e.rendered}):e.rendered,e.props.allowsSorting&&(0,st.jsx)(Dx,{visible:(null==(o=t.sortDescriptor)?void 0:o.column)===e.key,ascending:"ascending"===(null==(i=t.sortDescriptor)?void 0:i.direction),css:{position:"absolute",m:"0 $2",bottom:"calc(50% - 11px)"}})]})}));zx.displayName="NextUI - TableColumnHeader",zx.toString=()=>".nextui-table-column-header";const Ax=zx,Kx=g().forwardRef((({children:e,item:t,state:n,...r},o)=>{const i=(0,f.useRef)(null);(0,f.useImperativeHandle)(o,(()=>null==i?void 0:i.current));const{rowProps:a}=Pv({node:t});return(0,st.jsx)(mx,{ref:i,className:Ui("nextui-table-header-row",r.className),...r,...a,children:e})}));Kx.displayName="NextUI - TableHeaderRow",Kx.toString=()=>".nextui-table-header-row";const Ox=Kx;function jx(e={}){let{isReadOnly:t}=e,[n,r]=va(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:n,setSelected:function(e){t||r(e)},toggle:function(){t||r(!n)}}}function _x(e,t,n){let{isDisabled:r=!1,isRequired:o,isReadOnly:i,value:a,name:s,children:l,"aria-label":c,"aria-labelledby":u,validationState:d="valid"}=e;null!=l||null!=c||null!=u||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:p}=Dm({isDisabled:r}),{focusableProps:h}=zy(e,n),f=Ff(p,h);return{inputProps:Ff(Hf(e,{labelable:!0}),{"aria-invalid":"invalid"===d||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":i||void 0,"aria-required":o||void 0,onChange:e=>{e.stopPropagation(),t.setSelected(e.target.checked)},disabled:r,value:a,name:s,type:"checkbox",...f})}}function Fx(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function Wx(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=Kf(t);let a=Kf(),s={};return n?(r=r?`${r} ${a}`:a,s={id:a,htmlFor:"label"===i?t:void 0}):r||o||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:s,fieldProps:rg({id:t,"aria-label":o,"aria-labelledby":r})}}function Bx(e){let{description:t,errorMessage:n,validationState:r}=e,{labelProps:o,fieldProps:i}=Wx(e),a=jf([Boolean(t),Boolean(n),r]),s=jf([Boolean(t),Boolean(n),r]);return i=Ff(i,{"aria-describedby":[a,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:i,descriptionProps:{id:a},errorMessageProps:{id:s}}}function Vx(e={}){let{isReadOnly:t}=e,[n,r]=va(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:n,setSelected:function(e){t||r(e)},toggle:function(){t||r(!n)}}}function Hx(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function Ux(e,t,n){let{inputProps:r}=_x(e,t,n),{isSelected:o}=t,{isIndeterminate:i}=e;return(0,f.useEffect)((()=>{n.current&&(n.current.indeterminate=i)})),{inputProps:{...r,checked:o,"aria-checked":i?"mixed":o}}}Object.defineProperty({},"useToggleState",{get:()=>jx,set:void 0,enumerable:!0,configurable:!0}),Object.defineProperty({},"useToggle",{get:()=>_x,set:void 0,enumerable:!0,configurable:!0}),Fx({},"useField",(()=>Bx)),Fx({},"useLabel",(()=>Wx)),Object.defineProperty({},"useToggleState",{get:()=>Vx,set:void 0,enumerable:!0,configurable:!0}),Hx({},"useCheckbox",(()=>Ux)),Hx({},"useCheckboxGroup",(()=>Yx));const Gx=new WeakMap;function Yx(e,t){let{isDisabled:n,name:r}=e,{labelProps:o,fieldProps:i}=Wx({...e,labelElementType:"span"}),a=Hf(e,{labelable:!0});return Gx.set(t,r),{groupProps:Ff(a,{role:"group","aria-disabled":n||void 0,...i}),labelProps:o}}function Xx(e,t,n){const r=Vx({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(n){n?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(n)}});let{inputProps:o}=Ux({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||Gx.get(t)},r,n);return{inputProps:o}}Hx({},"useCheckboxGroupItem",(()=>Xx));const Jx=g().forwardRef((({column:e,state:t,color:n,animated:r,...o},i)=>{const a=(0,f.useRef)(null);(0,f.useImperativeHandle)(i,(()=>null==a?void 0:a.current));const s="single"===t.selectionManager.selectionMode,{columnHeaderProps:l}=Ev({node:e},t,a),{checkboxProps:c}=Rv(t),{isFocusVisible:u,focusProps:d}=Vl(),p=(0,f.useRef)(null),{inputProps:h}=Ux(c,jx({...c,isSelected:c.isSelected||c.isIndeterminate}),p);return(0,st.jsx)(yx,{ref:a,isFocusVisible:u,className:Ui("nextui-table-select-all-checkbox",o.className),...Pu(l,d,o),children:s?(0,st.jsx)(Rx,{children:h["aria-label"]}):(0,st.jsx)(Uc,{ref:p,...h,indeterminate:c.isIndeterminate,color:n,animated:r,css:{display:"inherit",$$checkboxBorderColor:"$colors$accents3"}})})}));Jx.displayName="NextUI - TableSelectAllCheckbox",Jx.toString=()=>".nextui-table-select-all-checkbox";const qx=Jx,Zx={footerAlign:"end",rowsPerPage:0,currentPage:1,animated:!0},Qx=g().createContext(Zx),ew=()=>g().useContext(Qx),tw=({children:e,defaultValues:t})=>{const[n,r]=g().useState((null==t?void 0:t.footerAlign)||Zx.footerAlign),[o,i]=g().useState(void 0===(null==t?void 0:t.animated)?Zx.animated:null==t?void 0:t.animated),[a,s]=g().useState(null==t?void 0:t.collection),[l,c]=g().useState(Zx.rowsPerPage),[u,d]=g().useState(Zx.currentPage),[p,h]=g().useState(null==t?void 0:t.color),f=g().useMemo((()=>({animated:o,footerAlign:n,collection:a,rowsPerPage:l,currentPage:u,color:p,setFooterAlign:r,setCollection:s,setAnimated:i,setRowsPerPage:c,setColor:h,setCurrentPage:d})),[o,p,a,n,l,u]);return(0,st.jsx)(Qx.Provider,{value:f,children:e})},nw=(Qx.Consumer,({align:e,rowsPerPage:t,onPageChange:n,...r})=>{const{color:o,animated:i,collection:a,footerAlign:s,rowsPerPage:l,setFooterAlign:c,setRowsPerPage:u,setCurrentPage:d}=ew();g().useEffect((()=>{e&&e!==s&&(null==c||c(e))}),[e,s]),g().useEffect((()=>{t&&t!==l&&(null==u||u(t))}),[l,t]);const p=(0,f.useMemo)((()=>{var e;const t=null!=a&&a.body?[...null==a||null==(e=a.body)?void 0:e.childNodes].length:0;return l>0?Math.ceil(t/l):1}),[a,l]);return(0,st.jsx)(Cf,{total:p,animated:i,onChange:e=>{null==d||d(e),null==n||n(e)},color:r.color||o,className:Ui("nextui-table-pagination",r.className),...r})});nw.displayName="NextUI - TablePagination",nw.toString=()=>".nextui-table-pagination";const rw=nw,ow=g().forwardRef((({children:e,...t},n)=>{const r=(0,f.useRef)(null);(0,f.useImperativeHandle)(n,(()=>null==r?void 0:r.current));const{footerAlign:o}=ew();return(0,st.jsx)($x,{ref:r,role:"rowgroup",align:t.align||o,className:Ui("nextui-table-footer",t.className),...t,children:e})}));ow.displayName="NextUI - TableFooter",ow.toString=()=>".nextui-table-footer";const iw=ow,aw=g().forwardRef((({children:e,item:t,state:n,...r},o)=>{const i=(0,f.useRef)(null);(0,f.useImperativeHandle)(o,(()=>null==i?void 0:i.current));const{rowProps:a}=Tv({node:t},n,i),{isFocusVisible:s,focusProps:l}=Vl(),c=n.disabledKeys.has(t.key);return(0,st.jsx)(wx,{ref:i,isFocusVisible:s,isSelected:!!a["aria-selected"],isDisabled:c,className:Ui("nextui-table-row",{"nextui-table-row--animated":r.animated,"nextui-table-row--selected":a["aria-selected"],"nextui-table-row--disabled":c},r.className),css:t.props.css,...Pu(a,l,r),children:e})}));aw.displayName="NextUI - TableRow",aw.toString=()=>".nextui-table-row";const sw=aw,lw=g().forwardRef((({cell:e,state:t,...n},r)=>{const o=(0,f.useRef)(null);(0,f.useImperativeHandle)(r,(()=>null==o?void 0:o.current));const{gridCellProps:i}=Iv({node:e},t,o),{isFocusVisible:a,focusProps:s}=Vl();return(0,st.jsx)(xx,{ref:o,isFocusVisible:a,className:Ui("nextui-table-cell",n.className),css:e.props.css,...Pu(i,s,n),children:e.rendered})}));lw.displayName="NextUI - TableCell",lw.toString=()=>".nextui-table-cell";const cw=lw,uw=g().forwardRef((({cell:e,state:t,color:n,animated:r,...o},i)=>{const a=(0,f.useRef)(null);(0,f.useImperativeHandle)(i,(()=>null==a?void 0:a.current));const{gridCellProps:s}=Iv({node:e},t,a),{checkboxProps:l}=Nv({key:(null==e?void 0:e.parentKey)||e.key},t),{isFocusVisible:c,focusProps:u}=Vl(),d=(0,f.useRef)(null),{inputProps:p}=Ux(l,jx(l),d);return(0,st.jsx)(xx,{ref:a,isFocusVisible:c,className:Ui("nextui-table-checkbox-cell",o.className),...Pu(s,u,o),children:(0,st.jsx)(Uc,{...p,ref:d,color:n,animated:r,css:{display:"inherit"}})})}));uw.displayName="NextUI - TableCheckboxCell",uw.toString=()=>".nextui-table-checkbox-cell";const dw=uw,pw=e=>{var t;const n=null==(t=e.body)?void 0:t.props;return void 0!==(null==n?void 0:n.loadingState)&&"function"==typeof(null==n?void 0:n.onLoadMore)},hw=({children:e,collection:t,state:n,animated:r,color:o,hasPagination:i,hideLoading:a,...s})=>{var l,c,u,d,p,h;const{currentPage:g,rowsPerPage:m}=ew(),b=(0,f.useMemo)((()=>pw(t)),[t.body.props]),y="loading"===(null==(l=t.body)||null==(c=l.props)?void 0:c.loadingState)||"loadingMore"===(null==(u=t.body)||null==(d=u.props)?void 0:d.loadingState),$=(0,f.useMemo)((()=>{const e=[...t.body.childNodes];return i?null==e?void 0:e.slice((g-1)*m,g*m):e}),[i,t,g,m]),v=(0,f.useMemo)((()=>{const e=$.length;return e>=m&&!b?null:(0,st.jsx)("tr",{role:"row",className:"nextui-table-hidden-row","aria-hidden":"true",children:(0,st.jsx)(vx,{"aria-hidden":"true",colSpan:t.columnCount,style:Pu({"--nextui--tableBodyEmptySpaceHeight":b?"var(--nextui-space-10)":`calc(${m-e} * var(--nextui-space-14))`},(null==s?void 0:s.style)||{}),css:{height:"var(--nextui--tableBodyEmptySpaceHeight)"}})})}),[t.columnCount,$,m,b]);return(0,st.jsxs)(Tx,{as:"tbody",className:Ui("nextui-table-body",s.className),isInfinityScroll:b,onScroll:e=>{if(!b)return;const n=e.target;var r,o;n.scrollHeight-(n.scrollTop+40)<=n.clientHeight&&!y&&(null==(r=t.body)||null==(o=r.props)||null==o.onLoadMore||o.onLoadMore())},css:{pb:"$10",position:"relative",...s.css,...null==(p=t.body)||null==(h=p.props)?void 0:h.css},...s,children:[e,null==$?void 0:$.map((e=>e.hasChildNodes?(0,st.jsx)(sw,{"aria-hidden":"false",item:e,state:n,animated:r,children:[...e.childNodes].map((e=>{var t;return null!=e&&null!=(t=e.props)&&t.isSelectionCell?(0,st.jsx)(dw,{cell:e,state:n,color:o,animated:r},null==e?void 0:e.key):(0,st.jsx)(cw,{cell:e,state:n},null==e?void 0:e.key)}))},null==e?void 0:e.key):null)),!a&&y&&(0,st.jsx)(Cx,{role:"row",className:"nextui-table-hidden-row","aria-hidden":"true",isAtEnd:$.length>0,isAbsolute:!b,children:(0,st.jsx)(vx,{"aria-hidden":"true",colSpan:t.columnCount,children:(0,st.jsx)(Fp,{color:o})})}),v]})};hw.displayName="NextUI - TableBody",hw.toString=()=>".nextui-table-body";const fw=hw,gw=g().forwardRef(((e,t)=>{const{selectionMode:n,selectionBehavior:r,hideLoading:o,children:i,shadow:a,borderWeight:s,bordered:l,...c}=e,[u,d]=((e,t)=>{const[n,r]=je(e,t);let o=null;return r&&r.length>=1&&(o=r.length>=0?r[0]:void 0),[n,o]})(i,rw),p=Oe(i,rw),m=ix({...e,children:u,showSelectionCheckboxes:void 0!==e.showSelectionCheckboxes?e.showSelectionCheckboxes:"multiple"===n&&"replace"!==r});Object.keys(c).forEach((e=>{h.indexOf(e)>-1&&delete c[e]}));const b=(0,f.useRef)(null);(0,f.useImperativeHandle)(t,(()=>null==b?void 0:b.current));const{collection:y}=m,{gridProps:$}=kv(e,m,b),v=g().useMemo((()=>({collection:y,color:c.color,animated:c.animated})),[y,c.animated,c.color]);return(0,st.jsx)(tw,{defaultValues:v,children:(0,st.jsx)(Ex,{shadow:a,borderWeight:s,bordered:l,className:"nextui-table-container",css:{...c.containerCss},children:(0,st.jsxs)(kx,{ref:b,shadow:a,hoverable:"none"!==n||c.hoverable,isMultiple:"multiple"===n,hasPagination:p,className:Ui("nextui-table",c.className),...$,...c,children:[(0,st.jsxs)(Tx,{as:"thead",isFixed:pw(y),children:[y.headerRows.map((e=>(0,st.jsx)(Ox,{item:e,state:m,children:[...e.childNodes].map((e=>{var t;return null!=e&&null!=(t=e.props)&&t.isSelectionCell?(0,st.jsx)(qx,{column:e,state:m,color:c.color,animated:c.animated},null==e?void 0:e.key):(0,st.jsx)(Ax,{column:e,state:m,animated:c.animated},null==e?void 0:e.key)}))},null==e?void 0:e.key))),!c.sticked&&(0,st.jsx)(Hd,{as:"tr",className:"nextui-table-hidden-row",y:.4})]}),(0,st.jsx)(fw,{state:m,color:c.color,collection:y,animated:c.animated,hasPagination:p,hideLoading:o}),p&&(0,st.jsxs)(iw,{children:[(0,st.jsx)(Hd,{as:"tr",className:"nextui-table-hidden-row",y:.6}),(0,st.jsx)("tr",{role:"row",children:(0,st.jsx)("th",{tabIndex:-1,role:"columnheader",colSpan:y.columnCount,children:d})})]})]})})})}));gw.displayName="NextUI - Table",gw.toString=()=>".nextui-table";const mw=Vi(gw,{animated:!0,hideLoading:!1,selectionMode:"none",selectionBehavior:"toggle"}),bw=gx,yw=dx,$w=sx,vw=hx,xw=cx;mw.Cell=bw,mw.Column=yw,mw.Header=$w,mw.Row=vw,mw.Body=xw,mw.Pagination=rw;const ww=mw})(),i})()}));
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.NextUI=t(require("react"),require("react-dom")):e.NextUI=t(e.React,e.ReactDOM)}(self,(function(e,t){return(()=>{"use strict";var n={753:e=>{var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,s,l=o(e),c=1;c<arguments.length;c++){for(var u in a=Object(arguments[c]))n.call(a,u)&&(l[u]=a[u]);if(t){s=t(a);for(var d=0;d<s.length;d++)r.call(a,s[d])&&(l[s[d]]=a[s[d]])}}return l}},460:(e,t,n)=>{n(753);var r=n(787),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},570:(e,t,n)=>{e.exports=n(460)},787:t=>{t.exports=e},156:e=>{e.exports=t}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{o.r(i),o.d(i,{Avatar:()=>la,Backdrop:()=>yh,Button:()=>gc,Card:()=>Mc,Checkbox:()=>Uc,Code:()=>Jc,Col:()=>eu,Collapse:()=>Sd,Container:()=>Td,CssBaseline:()=>dt,Divider:()=>Rd,Grid:()=>Wd,Image:()=>Sc,Input:()=>am,KeyCode:()=>Qe,KeyMod:()=>et,Link:()=>Tp,Loading:()=>Fp,Modal:()=>af,NextUIProvider:()=>qi,Pagination:()=>Cf,Progress:()=>Lh,Radio:()=>th,Row:()=>mp,Snippet:()=>pp,Spacer:()=>Hd,Spinner:()=>jp,StyledAvatar:()=>Zi,StyledAvatarGroup:()=>oa,StyledAvatarGroupCount:()=>ra,StyledBackdrop:()=>mh,StyledBackdropContent:()=>fh,StyledBackdropLayer:()=>gh,StyledButton:()=>sc,StyledButtonGroup:()=>dc,StyledButtonIcon:()=>rc,StyledCard:()=>kc,StyledCardBody:()=>Cc,StyledCardFooter:()=>Tc,StyledCardHeader:()=>Ec,StyledCheckboxContainer:()=>Dc,StyledCheckboxGroup:()=>Fc,StyledCheckboxInput:()=>_c,StyledCheckboxLabel:()=>Lc,StyledCheckboxMask:()=>Oc,StyledCheckboxText:()=>jc,StyledCode:()=>Gc,StyledCol:()=>qc,StyledCollapse:()=>tu,StyledCollapseContent:()=>ru,StyledCollapseGroup:()=>iu,StyledCollapseIcon:()=>ou,StyledCollapseView:()=>nu,StyledContainer:()=>Cd,StyledDivider:()=>Id,StyledDividerText:()=>Md,StyledGridContainer:()=>Ld,StyledGridItem:()=>Dd,StyledHelperText:()=>_g,StyledHelperTextContainer:()=>jg,StyledIconCheck:()=>Kc,StyledIconCheckFirstLine:()=>zc,StyledIconCheckSecondLine:()=>Ac,StyledImage:()=>yc,StyledImageContainer:()=>bc,StyledImageSkeleton:()=>$c,StyledInput:()=>Kg,StyledInputBlockLabel:()=>Wg,StyledInputClearButton:()=>Hg,StyledInputContainer:()=>Ag,StyledInputContent:()=>Vg,StyledInputLabel:()=>Bg,StyledInputMainContainer:()=>zg,StyledInputPlaceholder:()=>Fg,StyledInputWrapper:()=>Og,StyledLink:()=>wp,StyledLinkIcon:()=>xp,StyledLoading:()=>Ap,StyledLoadingContainer:()=>Rp,StyledLoadingLabel:()=>Kp,StyledModal:()=>Vh,StyledModalBody:()=>Wh,StyledModalCloseButton:()=>_h,StyledModalFooter:()=>Bh,StyledModalHeader:()=>Fh,StyledModalHideTab:()=>jh,StyledPagination:()=>ff,StyledPaginationEllipsis:()=>cf,StyledPaginationHighlight:()=>hf,StyledPaginationIcon:()=>uf,StyledPaginationItem:()=>pf,StyledPaginationItemContent:()=>df,StyledPre:()=>Yc,StyledProgress:()=>Mh,StyledProgressBar:()=>Nh,StyledRadio:()=>Gp,StyledRadioDescription:()=>Xp,StyledRadioGroup:()=>Yp,StyledRadioInput:()=>Vp,StyledRadioLabel:()=>Hp,StyledRadioPoint:()=>Up,StyledRow:()=>hp,StyledSnippetCopyButton:()=>lp,StyledSnippetCopyButtonIcon:()=>sp,StyledSnippetPre:()=>ap,StyledSpacer:()=>Bd,StyledSpinner:()=>Dp,StyledSpinnerContainer:()=>Lp,StyledSpinnerSpan:()=>zp,StyledSwitch:()=>dh,StyledSwitchCircle:()=>uh,StyledSwitchContainer:()=>lh,StyledSwitchInput:()=>ch,StyledTable:()=>kx,StyledTableCell:()=>xx,StyledTableHeaderCell:()=>yx,StyledTableRow:()=>wx,StyledText:()=>nh,StyledTooltip:()=>Qd,StyledTooltipArrow:()=>Zd,StyledTooltipContent:()=>ep,StyledTooltipTrigger:()=>qd,StyledUser:()=>$h,StyledUserDesc:()=>wh,StyledUserInfo:()=>vh,StyledUserLink:()=>Sh,StyledUserName:()=>xh,Switch:()=>hh,Table:()=>ww,Text:()=>sh,Textarea:()=>em,Tooltip:()=>op,User:()=>Ph,changeTheme:()=>Ji,config:()=>Ie,createTheme:()=>Le,css:()=>Ce,defaultTheme:()=>Pe,excludedInputPropsForTextarea:()=>p,excludedTableProps:()=>h,extendedColors:()=>r,extendedColorsNoGradient:()=>a,extraColors:()=>s,getCssText:()=>Te,getDocumentTheme:()=>Yi,getTokenValue:()=>Gi,globalCss:()=>ke,keyframes:()=>Ee,normalColors:()=>t,normalLoaders:()=>l,normalWeights:()=>c,sharedFocus:()=>Me,sharedVisuallyHidden:()=>Re,simpleColors:()=>n,stitchesConfig:()=>Ie,styled:()=>Se,textTransforms:()=>d,textWeights:()=>u,theme:()=>Pe,tuple:()=>e,useAsyncList:()=>bt,useBodyScroll:()=>Ue,useClickAnywhere:()=>qe,useClickAway:()=>Ge,useClipboard:()=>Je,useCollator:()=>Di,useCurrentState:()=>m,useInput:()=>Ze,useKeyboard:()=>rt,useModal:()=>sf,usePagination:()=>at,usePortal:()=>We,useRealShape:()=>y,useResize:()=>$,useSSR:()=>Ke,useTheme:()=>Ae});const e=(...e)=>e,t=(e("xs","sm","md","lg","xl"),e("default","primary","secondary","success","warning","error","gradient")),n=e("default","primary","secondary","success","warning","error"),r=e("default","primary","secondary","success","warning","error","invert","gradient"),a=e("default","primary","secondary","success","warning","error","invert"),s=e("default","primary","secondary","success","warning","error","dark","lite","alert","purple","violet","gradient","cyan"),l=e("default","points","points-opacity","gradient","spinner"),c=e("light","normal","bold","extrabold","black"),u=e("normal","bold","lighter","bolder","inherit","initial","revert","unset"),d=e("none","capitalize","uppercase","lowercase","full-width","full-size-kana","inherit","initial","revert","unset"),p=(e("default","slient","prevent"),e("hover","click"),e("top","topStart","topEnd","left","leftStart","leftEnd","bottom","bottomStart","bottomEnd","right","rightStart","rightEnd"),e("static","relative","absolute","fixed","sticky","inherit","initial","revert","unset"),e("contain","cover","fill","none","scale-down","inherit","initial","revert","unset"),e("start","center","end","left","right"),e("flex-start","center","flex-end","space-between","space-around","space-evenly"),e("flex-start","flex-end","center","stretch","baseline"),e("stretch","center","flex-start","flex-end","space-between","space-around"),e("row","row-reverse","column","column-reverse"),e("nowrap","wrap","wrap-reverse"),e("flex","block","grid","inline","inline-block","inline-flex","inline-grid"),e("left","right"),e("start","center","end"),e("clearable","as","rounded","labelLeft","labelRight","contentLeft","contentRight","contentClickable","contentLeftStyling","contentRightStyling","onContentClick","onClearClick","css")),h=e("items","disabledKeys","allowDuplicateSelectionEvents","disallowEmptySelection","defaultSelectedKeys","sortDescriptor","onSortChange");e("toggle","replace"),e("none","single","multiple");var f=o(787),g=o.n(f);const m=e=>{const[t,n]=(0,f.useState)((()=>"function"==typeof e?e():e)),r=(0,f.useRef)(e);return(0,f.useEffect)((()=>{r.current=t}),[t]),[t,e=>{const t="function"==typeof e?e(r.current):e;r.current=t,n(t)},r]},b=(e,t)=>{if(!e)return 0;const n=e.includes("px")?+e.split("px")[0]:e.includes("%")?+e.split("%")[0]*t*.01:e;return Number.isNaN(+n)?0:+n},y=e=>{const[t,n]=(0,f.useState)({width:0,height:0}),r=()=>{const{width:t,height:r}=(e=>{if(!e||"undefined"==typeof window)return{width:0,height:0};const t=e.getBoundingClientRect(),{width:n,height:r}=window.getComputedStyle(e);return{width:b(`${n}`,t.width),height:b(`${r}`,t.height)}})(e.current);n({width:t,height:r})};return(0,f.useEffect)((()=>r()),[e.current]),[t,r]},$=(e,t=!0)=>{(0,f.useEffect)((()=>{const n=()=>e();return t&&n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)}),[])};var v="colors",x="sizes",w="space",S={gap:w,gridGap:w,columnGap:w,gridColumnGap:w,rowGap:w,gridRowGap:w,inset:w,insetBlock:w,insetBlockEnd:w,insetBlockStart:w,insetInline:w,insetInlineEnd:w,insetInlineStart:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,marginBlock:w,marginBlockEnd:w,marginBlockStart:w,marginInline:w,marginInlineEnd:w,marginInlineStart:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,paddingBlock:w,paddingBlockEnd:w,paddingBlockStart:w,paddingInline:w,paddingInlineEnd:w,paddingInlineStart:w,top:w,right:w,bottom:w,left:w,scrollMargin:w,scrollMarginTop:w,scrollMarginRight:w,scrollMarginBottom:w,scrollMarginLeft:w,scrollMarginX:w,scrollMarginY:w,scrollMarginBlock:w,scrollMarginBlockEnd:w,scrollMarginBlockStart:w,scrollMarginInline:w,scrollMarginInlineEnd:w,scrollMarginInlineStart:w,scrollPadding:w,scrollPaddingTop:w,scrollPaddingRight:w,scrollPaddingBottom:w,scrollPaddingLeft:w,scrollPaddingX:w,scrollPaddingY:w,scrollPaddingBlock:w,scrollPaddingBlockEnd:w,scrollPaddingBlockStart:w,scrollPaddingInline:w,scrollPaddingInlineEnd:w,scrollPaddingInlineStart:w,fontSize:"fontSizes",background:v,backgroundColor:v,backgroundImage:v,borderImage:v,border:v,borderBlock:v,borderBlockEnd:v,borderBlockStart:v,borderBottom:v,borderBottomColor:v,borderColor:v,borderInline:v,borderInlineEnd:v,borderInlineStart:v,borderLeft:v,borderLeftColor:v,borderRight:v,borderRightColor:v,borderTop:v,borderTopColor:v,caretColor:v,color:v,columnRuleColor:v,fill:v,outline:v,outlineColor:v,stroke:v,textDecorationColor:v,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:x,minBlockSize:x,maxBlockSize:x,inlineSize:x,minInlineSize:x,maxInlineSize:x,width:x,minWidth:x,maxWidth:x,height:x,minHeight:x,maxHeight:x,flexBasis:x,gridTemplateColumns:x,gridTemplateRows:x,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},C=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,k=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(e=>JSON.stringify(e,C))(t);return o in e?e[o]:e[o]=n(t,...r)}},E=Symbol.for("sxs.internal"),T=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),P=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:I}=Object.prototype,M=e=>e.includes("-")?e:e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),N=/\s+(?![^()]*\))/,R=e=>t=>e(..."string"==typeof t?String(t).split(N):[t]),L={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:R(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:R(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:R(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:R(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:R(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:R(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},D=/([\d.]+)([^]*)/,z=(e,t)=>e.length?e.reduce(((e,n)=>(e.push(...t.map((e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(n)&&/&.*&/.test(e)?`:is(${n})`:n):n+" "+e))),e)),[]):t,A=(e,t)=>e in K&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((t,n,r,o)=>n+("stretch"===r?`-moz-available${o};${M(e)}:${n}-webkit-fill-available`:`-moz-fit-content${o};${M(e)}:${n}fit-content`)+o)):String(t),K={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},O=e=>e?e+"-":"",j=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((e,r,o,i,a)=>"$"==i==!!o?e:(r||"--"==i?"calc(":"")+"var(--"+("$"===i?O(t)+(a.includes("$")?"":O(n))+a.replace(/\$/g,"-"):a)+")"+(r||"--"==i?"*"+(r||"")+(o||"1")+")":""))),_=/\s*,\s*(?![^()]*\))/,F=Object.prototype.toString,W=(e,t,n,r,o)=>{let i,a,s;const l=(e,t,n)=>{let c,u;const d=e=>{for(c in e){const f=64===c.charCodeAt(0),g=f&&Array.isArray(e[c])?e[c]:[e[c]];for(u of g){const e=/[A-Z]/.test(h=c)?h:h.replace(/-[^]/g,(e=>e[1].toUpperCase())),g="object"==typeof u&&u&&u.toString===F&&(!r.utils[e]||!t.length);if(e in r.utils&&!g){const t=r.utils[e];if(t!==a){a=t,d(t(u)),a=null;continue}}else if(e in L){const t=L[e];if(t!==s){s=t,d(t(u)),s=null;continue}}if(f&&(p=c.slice(1)in r.media?"@media "+r.media[c.slice(1)]:c,c=p.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((e,t,n,r,o,i)=>{const a=D.test(t),s=.0625*(a?-1:1),[l,c]=a?[r,t]:[t,r];return"("+("="===n[0]?"":">"===n[0]===a?"max-":"min-")+l+":"+("="!==n[0]&&1===n.length?c.replace(D,((e,t,r)=>Number(t)+s*(">"===n?1:-1)+r)):c)+(o?") and ("+(">"===o[0]?"min-":"max-")+l+":"+(1===o.length?i.replace(D,((e,t,n)=>Number(t)+s*(">"===o?-1:1)+n)):i):"")+")"}))),g){const e=f?n.concat(c):[...n],r=f?[...t]:z(t,c.split(_));void 0!==i&&o(B(...i)),i=void 0,l(u,r,e)}else void 0===i&&(i=[[],t,n]),c=f||36!==c.charCodeAt(0)?c:`--${O(r.prefix)}${c.slice(1).replace(/\$/g,"-")}`,u=g?u:"number"==typeof u?u&&e in V?String(u)+"px":String(u):j(A(e,null==u?"":u),r.prefix,r.themeMap[e]),i[0].push(`${f?`${c} `:`${M(c)}:`}${u}`)}}var p,h};d(e),void 0!==i&&o(B(...i)),i=void 0};l(e,t,n)},B=(e,t,n)=>`${n.map((e=>`${e}{`)).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,V={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},H=e=>String.fromCharCode(e+(e>25?39:97)),U=e=>(e=>{let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=H(t%52)+n;return H(t%52)+n})(((e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e})(5381,JSON.stringify(e))>>>0),G=["themed","global","styled","onevar","resonevar","allvar","inline"],Y=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return e.cssRules,!0}catch(e){return!1}},X=e=>{let t;const n=()=>{if(t){const{rules:e,sheet:n}=t;if(!n.deleteRule){for(;3===Object(Object(n.cssRules)[0]).type;)n.cssRules.splice(0,1);n.cssRules=[]}for(const t in e)delete e[t]}const r=Object(e).styleSheets||[];for(const e of r)if(Y(e)){for(let r=0,o=e.cssRules;o[r];++r){const i=Object(o[r]);if(1!==i.type)continue;const a=Object(o[r+1]);if(4!==a.type)continue;++r;const{cssText:s}=i;if(!s.startsWith("--sxs"))continue;const l=s.slice(14,-3).trim().split(/\s+/),c=G[l[0]];c&&(t||(t={sheet:e,reset:n,rules:{}}),t.rules[c]={group:a,index:r,cache:new Set(l)})}if(t)break}if(!t){const r=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,r(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,(e=>e.cssText)).join("")}}`:e}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:r("","text/css"),rules:{},reset:n,toString(){const{cssRules:e}=t.sheet;return[].map.call(e,((n,r)=>{const{cssText:o}=n;let i="";if(o.startsWith("--sxs"))return"";if(e[r-1]&&(i=e[r-1].cssText).startsWith("--sxs")){if(!n.cssRules.length)return"";for(const e in t.rules)if(t.rules[e].group===n)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${o}`;return n.cssRules.length?`${i}${o}`:""}return o})).join("")}}}const{sheet:o,rules:i}=t;for(let e=G.length-1;e>=0;--e){const t=G[e];if(!i[t]){const n=G[e+1],r=i[n]?i[n].index:o.cssRules.length;o.insertRule("@media{}",r),o.insertRule(`--sxs{--sxs:${e}}`,r),i[t]={group:o.cssRules[r+1],index:r,cache:new Set([e])}}J(i[t])}};return n(),t},J=e=>{const t=e.group;let n=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,n),++n}catch{}}},q=Symbol(),Z=k(),Q=(e,t)=>Z(e,(()=>(...n)=>{let r={type:null,composers:new Set};for(const t of n)if(null!=t)if(t[E]){null==r.type&&(r.type=t[E].type);for(const e of t[E].composers)r.composers.add(e)}else t.constructor!==Object||t.$$typeof?null==r.type&&(r.type=t):r.composers.add(ee(t,e));return null==r.type&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),te(e,r,t)})),ee=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${O(o.prefix)}c-${U(r)}`,a=[],s=[],l=Object.create(null),c=[];for(const e in n)l[e]=String(n[e]);if("object"==typeof e&&e)for(const t in e){u=l,d=t,I.call(u,d)||(l[t]="undefined");const n=e[t];for(const e in n){const r={[t]:String(e)};"undefined"===String(e)&&c.push(t);const o=n[e],i=[r,o,!P(o)];a.push(i)}}var u,d;if("object"==typeof t&&t)for(const e of t){let{css:t,...n}=e;t="object"==typeof t&&t||{};for(const e in n)n[e]=String(n[e]);const r=[n,t,!P(t)];s.push(r)}return[i,r,a,s,l,c]},te=(e,t,n)=>{const[r,o,i,a]=ne(t.composers),s="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let n=0;n<t[q].length;n++){const[r,o]=t[q][n];e.rules[r].apply(o)}return t[q]=[],null}return t[q]=[],t.rules={},G.forEach((e=>t.rules[e]={apply:n=>t[q].push([e,n])})),t})(n):null,l=(s||n).rules,c=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,u=u=>{u="object"==typeof u&&u||oe;const{css:d,...p}=u,h={};for(const e in i)if(delete p[e],e in u){let t=u[e];"object"==typeof t&&t?h[e]={"@initial":i[e],...t}:(t=String(t),h[e]="undefined"!==t||a.has(e)?t:i[e])}else h[e]=i[e];const f=new Set([...o]);for(const[r,o,i,a]of t.composers){n.rules.styled.cache.has(r)||(n.rules.styled.cache.add(r),W(o,[`.${r}`],[],e,(e=>{l.styled.apply(e)})));const t=re(i,h,e.media),s=re(a,h,e.media,!0);for(const o of t)if(void 0!==o)for(const[t,i,a]of o){const o=`${r}-${U(i)}-${t}`;f.add(o);const s=(a?n.rules.resonevar:n.rules.onevar).cache,c=a?l.resonevar:l.onevar;s.has(o)||(s.add(o),W(i,[`.${o}`],[],e,(e=>{c.apply(e)})))}for(const t of s)if(void 0!==t)for(const[o,i]of t){const t=`${r}-${U(i)}-${o}`;f.add(t),n.rules.allvar.cache.has(t)||(n.rules.allvar.cache.add(t),W(i,[`.${t}`],[],e,(e=>{l.allvar.apply(e)})))}}if("object"==typeof d&&d){const t=`${r}-i${U(d)}-css`;f.add(t),n.rules.inline.cache.has(t)||(n.rules.inline.cache.add(t),W(d,[`.${t}`],[],e,(e=>{l.inline.apply(e)})))}for(const e of String(u.className||"").trim().split(/\s+/))e&&f.add(e);const g=p.className=[...f].join(" ");return{type:t.type,className:g,selector:c,props:p,toString:()=>g,deferredInjector:s}};return T(u,{className:r,selector:c,[E]:t,toString:()=>(n.rules.styled.cache.has(r)||u(),r)})},ne=e=>{let t="";const n=[],r={},o=[];for(const[i,,,,a,s]of e){""===t&&(t=i),n.push(i),o.push(...s);for(const e in a){const t=a[e];(void 0===r[e]||"undefined"!==t||s.includes(t))&&(r[e]=t)}}return[t,n,r,new Set(o)]},re=(e,t,n,r)=>{const o=[];e:for(let[i,a,s]of e){if(s)continue;let e,l=0,c=!1;for(e in i){const r=i[e];let o=t[e];if(o!==r){if("object"!=typeof o||!o)continue e;{let e,t,i=0;for(const a in o){if(r===String(o[a])){if("@initial"!==a){const e=a.slice(1);(t=t||[]).push(e in n?n[e]:a.replace(/^@media ?/,"")),c=!0}l+=i,e=!0}++i}if(t&&t.length&&(a={["@media "+t.join(", ")]:a}),!e)continue e}}}(o[l]=o[l]||[]).push([r?"cv":`${e}-${i[e]}`,a,c])}return o},oe={},ie=k(),ae=(e,t)=>ie(e,(()=>(...n)=>{const r=()=>{for(let r of n){r="object"==typeof r&&r||{};let n=U(r);if(!t.rules.global.cache.has(n)){if(t.rules.global.cache.add(n),"@import"in r){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let n of[].concat(r["@import"]))n=n.includes('"')||n.includes("'")?n:`"${n}"`,t.sheet.insertRule(`@import ${n};`,e++);delete r["@import"]}W(r,[],[],e,(e=>{t.rules.global.apply(e)}))}}return""};return T(r,{toString:r})})),se=k(),le=(e,t)=>se(e,(()=>n=>{const r=`${O(e.prefix)}k-${U(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const o=[];W(n,[],[],e,(e=>o.push(e)));const i=`@keyframes ${r}{${o.join("")}}`;t.rules.global.apply(i)}return r};return T(o,{get name(){return o()},toString:o})})),ce=class{constructor(e,t,n,r){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==n?"":String(n),this.prefix=null==r?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+O(this.prefix)+O(this.scale)+this.token}toString(){return this.computedValue}},ue=k(),de=(e,t)=>ue(e,(()=>(n,r)=>{r="object"==typeof n&&n||Object(r);const o=`.${n=(n="string"==typeof n?n:"")||`${O(e.prefix)}t-${U(r)}`}`,i={},a=[];for(const t in r){i[t]={};for(const n in r[t]){const o=`--${O(e.prefix)}${t}-${n}`,s=j(String(r[t][n]),e.prefix,t);i[t][n]=new ce(n,s,t,e.prefix),a.push(`${o}:${s}`)}}const s=()=>{if(a.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const o=`${r===e.theme?":root,":""}.${n}{${a.join(";")}}`;t.rules.themed.apply(o)}return n};return{...i,get className(){return s()},selector:o,toString:s}})),pe=k(),he=k();const fe={fonts:{sans:"-apple-system, BlinkMacSystemFont, 'Segoe UI','Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans','Helvetica Neue', sans-serif;",mono:"Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono','Courier New', monospace;"},fontSizes:{tiny:".75rem",xs:"0.875rem",base:"1rem",sm:"1.25rem",md:"1.5rem",lg:"2.25rem",xl:"3rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},lineHeights:{xs:1,sm:1.25,md:1.5,lg:1.625,xl:1.75},letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},space:{0:"0rem",xs:"0.5rem",sm:"0.75rem",md:"1rem",lg:"1.25rem",xl:"2.25rem",px:"1px",1:"0.125rem",2:"0.25rem",3:"0.375rem",4:"0.5rem",5:"0.625rem",6:"0.75rem",7:"0.875rem",8:"1rem",9:"1.25rem",10:"1.5rem",11:"1.75rem",12:"2rem",13:"2.25rem",14:"2.5rem",15:"2.75rem",16:"3rem",17:"3.5rem",18:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},radii:{xs:"7px",sm:"9px",md:"12px",base:"14px",lg:"14px",xl:"18px",squared:"33%",rounded:"50%",pill:"9999px"},zIndices:{1:"100",2:"200",3:"300",4:"400",5:"500",10:"1000",max:"9999"},borderWeights:{light:"1px",normal:"2px",bold:"3px",extrabold:"4px",black:"5px"},transitions:{default:"all 250ms ease"},breakpoints:{xs:"650px",sm:"960px",md:"1280px",lg:"1400px",xl:"1920px"}},ge={xs:`(min-width: ${fe.breakpoints.xs})`,sm:`(min-width: ${fe.breakpoints.sm})`,md:`(min-width: ${fe.breakpoints.md})`,lg:`(min-width: ${fe.breakpoints.lg})`,xl:`(min-width: ${fe.breakpoints.xl})`,xsMax:`(max-width: ${fe.breakpoints.xs})`,smMax:`(max-width: ${fe.breakpoints.sm})`,mdMax:`(max-width: ${fe.breakpoints.md})`,lgMax:`(max-width: ${fe.breakpoints.lg})`,xlMax:`(max-width: ${fe.breakpoints.xl})`,motion:"(prefers-reduced-motion)",safari:"not all and (min-resolution:.001dpcm)",hover:"(any-hover: hover)",dark:"(prefers-color-scheme: dark)",light:"(prefers-color-scheme: light)"},me={...S,width:"space",height:"space",minWidth:"space",maxWidth:"space",minHeight:"space",maxHeight:"space",flexBasis:"space",gridTemplateColumns:"space",gridTemplateRows:"space",blockSize:"space",minBlockSize:"space",maxBlockSize:"space",inlineSize:"space",minInlineSize:"space",maxInlineSize:"space",borderWidth:"borderWeights"},be={prefix:"nextui",theme:{...fe,colors:{white:"#ffffff",black:"#000000",blue100:"#bfd8fc",blue200:"#98D5FD",blue300:"#64B8FB",blue400:"#3D9CF7",blue500:"#0070F3",blue600:"#0056D0",blue700:"#0040AE",blue800:"#002D8C",blue900:"#002074",purple100:"#dbc8f0",purple200:"#DDA9F9",purple300:"#C17CEF",purple400:"#A258DF",purple500:"#7928ca",purple600:"#5E1DAD",purple700:"#461491",purple800:"#310C75",purple900:"#220760",green100:"#dafee8",green200:"#A1F9AC",green300:"#6FEE8D",green400:"#4ADE7B",green500:"#17c964",green600:"#10AC63",green700:"#0B905F",green800:"#077457",green900:"#046050",yellow100:"#fce6c7",yellow200:"#FEE7A6",yellow300:"#FCD57A",yellow400:"#F9C258",yellow500:"#f5a623",yellow600:"#D28519",yellow700:"#B06811",yellow800:"#8E4D0B",yellow900:"#753A06",red100:"#fbc4d5",red200:"#FDA0A5",red300:"#FB7085",red400:"#F74C77",red500:"#f21361",red600:"#D00D65",red700:"#AE0963",red800:"#8C065C",red900:"#740357",cyan100:"#EEFFF4",cyan200:"#DDFFED",cyan300:"#CCFFE9",cyan400:"#BFFFEA",cyan500:"#AAFFEC",cyan600:"#7CDBCF",cyan700:"#55B7B4",cyan800:"#368D93",cyan900:"#206C7A",pink100:"#FFDBE7",pink200:"#FFB8D6",pink300:"#FF94CC",pink400:"#FF7ACC",pink500:"#ff4ecd",pink600:"#DB39BD",pink700:"#B727AA",pink800:"#921893",pink900:"#6E0E7A",gray100:"#F4F4F4",gray200:"#EAEAEA",gray300:"#C1C1C1",gray400:"#999999",gray500:"#888888",gray600:"#666666",gray700:"#444444",gray800:"#333333",gray900:"#111111",primaryLight:"$blue100",primary:"$blue500",primaryDark:"$blue600",primaryShadow:"$blue100",secondaryLight:"$purple100",secondary:"$purple500",secondaryDark:"$purple600",secondaryShadow:"$purple100",successLight:"$green100",success:"$green500",successDark:"$green600",successShadow:"$green100",warningLight:"$yellow100",warning:"$yellow500",warningDark:"$yellow600",warningShadow:"$yellow100",errorLight:"$red100",error:"$red500",errorDark:"$red600",errorShadow:"$red100",gradient:"linear-gradient(112deg, $cyan500 -63.59%, $pink500 -20.3%, $blue500 70.46%)",link:"$blue500"},shadows:{}},media:ge,utils:{p:e=>({padding:e}),pt:e=>({paddingTop:e}),pr:e=>({paddingRight:e}),pb:e=>({paddingBottom:e}),pl:e=>({paddingLeft:e}),px:e=>({paddingLeft:e,paddingRight:e}),py:e=>({paddingTop:e,paddingBottom:e}),m:e=>({margin:e}),mt:e=>({marginTop:e}),mr:e=>({marginRight:e}),mb:e=>({marginBottom:e}),ml:e=>({marginLeft:e}),mx:e=>({marginLeft:e,marginRight:e}),my:e=>({marginTop:e,marginBottom:e}),ta:e=>({textAlign:e}),tt:e=>({textTransform:e}),to:e=>({textOverflow:e}),d:e=>({display:e}),dflex:e=>({display:"flex",alignItems:e,justifyContent:e}),fd:e=>({flexDirection:e}),fw:e=>({flexWrap:e}),ai:e=>({alignItems:e}),ac:e=>({alignContent:e}),jc:e=>({justifyContent:e}),as:e=>({alignSelf:e}),fg:e=>({flexGrow:e}),fs:e=>({fontSize:e}),fb:e=>({flexBasis:e}),bc:e=>({backgroundColor:e}),bf:e=>({backdropFilter:e}),bg:e=>({background:e}),bgBlur:e=>({bf:"saturate(180%) blur(10px)",bg:`${e}66`}),bgColor:e=>({backgroundColor:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),bgClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),br:e=>({borderRadius:e}),bw:e=>({borderWidth:e}),btrr:e=>({borderTopRightRadius:e}),bbrr:e=>({borderBottomRightRadius:e}),bblr:e=>({borderBottomLeftRadius:e}),btlr:e=>({borderTopLeftRadius:e}),bs:e=>({boxShadow:e}),normalShadow:e=>({boxShadow:`0 4px 14px 0 $colors${e}`}),normalShadowVar:e=>({boxShadow:`0 4px 14px 0 ${e}`}),lh:e=>({lineHeight:e}),ov:e=>({overflow:e}),ox:e=>({overflowX:e}),oy:e=>({overflowY:e}),pe:e=>({pointerEvents:e}),events:e=>({pointerEvents:e}),us:e=>({WebkitUserSelect:e,userSelect:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),w:e=>({width:e}),h:e=>({height:e}),mw:e=>({maxWidth:e}),maxW:e=>({maxWidth:e}),mh:e=>({maxHeight:e}),maxH:e=>({maxHeight:e}),size:e=>({width:e,height:e}),minSize:e=>({minWidth:e,minHeight:e,width:e,height:e}),sizeMin:e=>({minWidth:e,minHeight:e,width:e,height:e}),maxSize:e=>({maxWidth:e,maxHeight:e}),sizeMax:e=>({maxWidth:e,maxHeight:e}),appearance:e=>({WebkitAppearance:e,appearance:e}),scale:e=>({transform:`scale(${e})`}),linearGradient:e=>({backgroundImage:`linear-gradient(${e})`}),tdl:e=>({textDecorationLine:e}),textGradient:e=>({backgroundImage:`linear-gradient(${e})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent","&::selection":{WebkitTextFillColor:"$colors$text"}})},themeMap:me},ye={colors:{accents1:"$gray100",accents2:"$gray200",accents3:"$gray300",accents4:"$gray400",accents5:"$gray500",accents6:"$gray600",accents7:"$gray700",accents8:"$gray800",accents9:"$gray900",text:"$gray800",background:"$white",foreground:"$black",codeLight:"$pink100",code:"$pink600",border:"$gray200",selection:"$blue200"},shadows:{xs:"-4px 0 4px rgb(0 0 0 / 5%);",sm:"0 5px 20px -5px rgba(0, 0, 0, 0.1)",md:"0 8px 30px rgba(0, 0, 0, 0.15)",lg:"0 30px 60px rgba(0, 0, 0, 0.15)",xl:"0 40px 80px rgba(0, 0, 0, 0.25)"}},$e={colors:{accents1:"$gray900",accents2:"$gray800",accents3:"$gray700",accents4:"$gray600",accents5:"$gray500",accents6:"$gray400",accents7:"$gray300",accents8:"$gray200",accents9:"$gray100",text:"$white",blue900:"#001835",purple900:"#1c0631",green900:"#033116",yellow900:"#3d2705",red900:"#3c0216",primaryLight:"$blue900",primaryShadow:"$blue600",secondaryLight:"$purple900",secondaryShadow:"$purple600",successLight:"$green900",successShadow:"$green600",warningLight:"$yellow900",warningShadow:"$yellow600",errorLight:"$red900",errorShadow:"$red600",background:"$black",foreground:"$white",codeLight:"#16272e",code:"#6cc0e1",border:"$gray700",selection:"#ff4ecd"},shadows:{xs:"-4px 0 15px rgb(0 0 0 / 50%)",sm:"0 5px 20px -5px rgba(20, 20, 20, 0.1)",md:"0 8px 30px rgba(20, 20, 20, 0.15)",lg:"0 30px 60px rgba(20, 20, 20, 0.15)",xl:"0 40px 80px rgba(20, 20, 20, 0.25)"}};function ve(e){for(var t,n,r=Array.prototype.slice.call(arguments,1);r.length;)for(n in t=r.shift())t.hasOwnProperty(n)&&("object"==typeof e[n]&&e[n]&&"[object Array]"!==Object.prototype.toString.call(e[n])&&"object"==typeof t[n]&&null!==t[n]?e[n]=ve({},e[n],t[n]):e[n]=t[n]);return e}const xe=(e=>{const t=(e=>{let t=!1;const n=pe(e,(e=>{t=!0;const n="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",r="object"==typeof e.media&&e.media||{},o="object"==typeof e.root?e.root||null:globalThis.document||null,i="object"==typeof e.theme&&e.theme||{},a={prefix:n,media:r,theme:i,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...S},utils:"object"==typeof e.utils&&e.utils||{}},s=X(o),l={css:Q(a,s),globalCss:ae(a,s),keyframes:le(a,s),createTheme:de(a,s),reset(){s.reset(),l.theme.toString()},theme:{},sheet:s,config:a,prefix:n,getCssText:s.toString,toString:s.toString};return String(l.theme=l.createTheme(i)),l}));return t||n.reset(),n})(e);return t.styled=(({config:e,sheet:t})=>he(e,(()=>{const n=Q(e,t);return(...e)=>{const t=n(...e),r=t[E].type,o=f.forwardRef(((e,n)=>{const o=e&&e.as||r,{props:i,deferredInjector:a}=t(e);return delete i.as,i.ref=n,a?f.createElement(f.Fragment,null,f.createElement(o,i),f.createElement(a,null)):f.createElement(o,i)}));return o.className=t.className,o.displayName=`Styled.${r.displayName||r.name||r}`,o.selector=t.selector,o.toString=()=>t.selector,o[E]=t[E],o}})))(t),t})({...be,theme:{...be.theme,shadows:{...ye.shadows},colors:{...be.theme.colors,...ye.colors}}}),we=xe.createTheme,Se=xe.styled,Ce=xe.css,ke=xe.globalCss,Ee=xe.keyframes,Te=xe.getCssText,Pe=xe.theme,Ie=xe.config,Me=Ce({WebkitTapHighlightColor:"transparent","&:focus:not(&:focus-visible)":{boxShadow:"none"},"&:focus":{outline:"none",boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},"@safari":{WebkitTapHighlightColor:"transparent",outline:"none"}}),Ne=Ce({variants:{isFocusVisible:{true:{outline:"transparent solid 2px",outlineOffset:"2px",boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},false:{outline:"none"}}}}),Re=Ce({border:"0px",clip:"rect(0px, 0px, 0px, 0px)",height:"1px",width:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"}),Le=({type:e,theme:t,className:n})=>{if(!e)throw new Error("Theme type is required");return we(n||`${e}-theme`,ve("dark"===e?$e:ye,t))},De={isDark:!1,theme:Pe,type:"light"},ze=g().createContext(De),Ae=()=>g().useContext(ze),Ke=()=>{const[e,t]=(0,f.useState)(!1);return(0,f.useEffect)((()=>{t(Boolean("undefined"!=typeof window&&window.document&&window.document.createElement))}),[]),{isBrowser:e,isServer:!e}},Oe=(e,t)=>(g().Children.map(e,(e=>g().isValidElement(e)?e.type:null))||[]).includes(t),je=(e,t)=>{let n=[];return[g().Children.map(e,(e=>g().isValidElement(e)&&e.type===t?(n.push(e),null):e)),n.length>=0?n:void 0]},_e=()=>!!Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)&&navigator.platform.toUpperCase().indexOf("MAC")>=0,Fe=e=>{const t=document.createElement("div");return t.setAttribute("id",e),t},We=(e=(()=>Math.random().toString(32).slice(2,10))(),t)=>{const n=`nextui-${e}`,{isBrowser:r}=Ke(),[o,i]=(0,f.useState)(r?Fe(n):null);return(0,f.useEffect)((()=>{const e=(t?t():null)||document.body,r=e.querySelector(`#${n}`),o=r||Fe(n);r||e.appendChild(o),i(o)}),[]),o},Be={scrollLayer:!1},Ve=new Map,He=e=>!!(e.touches&&e.touches.length>1)||(e.preventDefault(),!1),Ue=(e,t)=>{if("undefined"==typeof document)return[!1,e=>e];const n=e||(0,f.useRef)(document.body),[r,o]=(0,f.useState)(!1),i={...Be,...t||{}},a=()=>!i.scrollLayer&&!("undefined"==typeof window||!window.navigator)&&/iP(ad|hone|od)/.test(window.navigator.platform);return(0,f.useEffect)((()=>{if(!n||!n.current)return;const e=n.current.style.overflow;if(r){if(Ve.has(n.current))return;return a()?document.addEventListener("touchmove",He,{passive:!1}):n.current.style.overflow="hidden",void Ve.set(n.current,{last:e})}if(Ve.has(n.current)){if(a())document.removeEventListener("touchmove",He);else{const e=Ve.get(n.current);n.current.style.overflow=e.last}Ve.delete(n.current)}}),[r,n]),[r,o]},Ge=(e,t)=>{(0,f.useEffect)((()=>{const n=n=>{const r=e.current;n&&r&&!r.contains(n.target)&&t(n)};return document.addEventListener("click",n),()=>document.removeEventListener("click",n)}),[e,t])},Ye={},Xe={onError:()=>false},Je=(e=Xe)=>{const t=We("clipboard"),n=(0,f.useCallback)((n=>{((t,n)=>{if(!t||!n)return;const r=window.getSelection();if(!r)return;t.style.whiteSpace="pre",t.textContent=n;const o=window.document.createRange();r.removeAllRanges(),o.selectNode(t),r.addRange(o);try{window.document.execCommand("copy")}catch(t){e.onError&&e.onError()}r.removeAllRanges(),t&&(t.textContent="")})(t,n)}),[t]);return{copy:n}},qe=e=>{(0,f.useEffect)((()=>{const t=t=>e(t);return document.addEventListener("click",t),()=>document.removeEventListener("click",t)}),[e])},Ze=e=>{const[t,n,r]=m(e);return{value:t,setValue:n,currentRef:r,reset:()=>n(e),bindings:{value:t,onChange:e=>{"object"==typeof e&&e.target?n(e.target.value):n(e)}}}},Qe={Unknown:0,Backspace:8,Tab:9,Enter:13,Shift:16,Ctrl:17,Alt:18,PauseBreak:19,CapsLock:20,Escape:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,LeftArrow:37,UpArrow:38,RightArrow:39,DownArrow:40,Insert:45,Delete:46,KEY_0:48,KEY_1:49,KEY_2:50,KEY_3:51,KEY_4:52,KEY_5:53,KEY_6:54,KEY_7:55,KEY_8:56,KEY_9:57,KEY_A:65,KEY_B:66,KEY_C:67,KEY_D:68,KEY_E:69,KEY_F:70,KEY_G:71,KEY_H:72,KEY_I:73,KEY_J:74,KEY_K:75,KEY_L:76,KEY_M:77,KEY_N:78,KEY_O:79,KEY_P:80,KEY_Q:81,KEY_R:82,KEY_S:83,KEY_T:84,KEY_U:85,KEY_V:86,KEY_W:87,KEY_X:88,KEY_Y:89,KEY_Z:90,Meta:91,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NumLock:144,ScrollLock:145,Equal:187,Minus:189,Backquote:192,Backslash:220},et={CtrlCmd:2048,Shift:1024,Alt:512,WinCtrl:256},tt=e=>e&&"object"==typeof e,nt=(e,t)=>tt(e)?e instanceof Array?[...e]:e[t]:e,rt=(e,t,n={})=>{const r=Array.isArray(t)?t:[t],{disableGlobalEvent:o=!1,capture:i=!1,stopPropagation:a=!1,preventDefault:s=!1,event:l="keydown"}=n,c=(e=>{const t=e.filter((e=>!!nt(et,e))),n={CtrlCmd:!1,Shift:!1,Alt:!1,WinCtrl:!1};return t.forEach((e=>{const t=nt(et,e);n[t]=!0})),n})(r),u=r.filter((e=>!nt(et,e))),{CtrlCmd:d,WinCtrl:p}={CtrlCmd:_e()?"metaKey":"ctrlKey",WinCtrl:_e()?"ctrlKey":"metaKey"},h=t=>{c.Shift&&!t.shiftKey||c.Alt&&!t.altKey||c.CtrlCmd&&!t[d]||c.WinCtrl&&!t[p]||u.length>0&&!u.includes(t.keyCode)||(a&&t.stopPropagation(),s&&t.preventDefault(),e&&e(t))};(0,f.useEffect)((()=>(o||document.addEventListener(l,h),()=>{document.removeEventListener(l,h)})),[o]);const g=(e,t=!1)=>e!==l||t!==i?()=>{}:e=>h(e);return{bindings:{onKeyDown:g("keydown"),onKeyDownCapture:g("keydown",!0),onKeyPress:g("keypress"),onKeyPressCapture:g("keypress",!0),onKeyUp:g("keyup"),onKeyUpCapture:g("keyup",!0)}}};function ot(e,t){const n=t-e+1;return Array.from({length:n},((t,n)=>n+e))}const it="dots",at=({page:e,total:t,siblings:n=1,boundaries:r=1,initialPage:o=1,onChange:i})=>{const[a,s]=(0,f.useState)(e||o);(0,f.useEffect)((()=>{e&&e!==a&&s(e)}),[e]);const l=(0,f.useCallback)((e=>{var n;s(n=e<=0?1:e>t?t:e),i&&i(n)}),[t]);return{range:(0,f.useMemo)((()=>{if(2*n+3+2*r>=t)return ot(1,t);const e=Math.max(a-n,r),o=Math.min(a+n,t-r),i=e>r+2,s=o<t-(r+1);if(!i&&s)return[...ot(1,2*n+r+2),it,...ot(t-(r-1),t)];if(i&&!s){const e=r+1+2*n;return[...ot(1,r),it,...ot(t-e,t)]}return[...ot(1,r),it,...ot(e,o),it,...ot(t-r+1,t)]}),[t,n,a]),active:a,setPage:l,next:()=>l(a+1),previous:()=>l(a-1),first:()=>l(1),last:()=>l(t)}};var st=o(570);const lt=ke({"*, *:before, *:after":{boxSizing:"border-box",textRendering:"geometricPrecision",WebkitTapHighlightColor:"transparent"},html:{fontSize:"$base"},body:{margin:0,padding:0,minHeight:"100%",position:"relative",overflowX:"hidden",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",textRendering:"optimizeLegibility",fontSize:"$base",lineHeight:"$md",fontFamily:"$sans"},"html, body":{backgroundColor:"$background",color:"$text"},"p, small":{color:"inherit",letterSpacing:"$tighter",fontWeight:"$normal",fontFamily:"$sans"},p:{margin:"$md 0",fontSize:"$base",lineHeight:"$lg"},small:{margin:0,lineHeight:"$md",fontSize:"$xs"},b:{fontWeight:"$semibold"},span:{fontSize:"inherit",color:"inherit",fontWeight:"inherit"},img:{maxWidth:"100%"},a:{cursor:"pointer",fontSize:"inherit",WebkitTouchCallout:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitBoxAlign:"center",alignItems:"center",color:"$link",textDecoration:"none"},"a:hover":{textDecoration:"none"},"ul,ol":{padding:0,listStyleType:"none",margin:"$sm $sm $sm $lg",color:"$foreground"},ol:{listStyleType:"decimal"},li:{marginBottom:"$5",fontSize:"$base",lineHeight:"$lg"},"h1,h2,h3,h4,h5,h6":{color:"inherit",margin:"0 0 $5 0"},h1:{letterSpacing:"$tighter",lineHeight:"$md",fontSize:"$xl",fontWeight:"$bold"},h2:{letterSpacing:"$tighter",fontSize:"$lg",fontWeight:"$semibold"},h3:{letterSpacing:"$tighter",fontSize:"$md",fontWeight:"$semibold"},h4:{letterSpacing:"$tighter",fontSize:"$sm",fontWeight:"$semibold"},h5:{letterSpacing:"$tight",fontSize:"$base",fontWeight:"$semibold"},h6:{letterSpacing:"$tight",fontSize:"$xs",fontWeight:"$semibold"},"button, input, select,textarea":{fontFamily:"inherit",fontSize:"inherit",lineHeight:"inherit",color:"inherit",margin:0},"button:focus, input:focus, select:focus,textarea:focus":{outline:"none"},code:{color:"$code",padding:"$1 $2",borderRadius:"$xs",bg:"$codeLight",fontFamily:"$mono",fontSize:"$xs",whiteSpace:"pre-wrap",transition:"$default"},"code:hover":{opacity:.8},pre:{overflow:"auto",whiteSpace:"pre",textAlign:"left",fontSize:"$xs",borderRadius:"$lg",padding:"$md $lg",margin:"$lg 0 ",fontFamily:"$mono",lineHeight:"$md",webkitOverflowScrolling:"touch"},"pre code":{color:"$foreground",fontSize:"$xs",lineHeight:"$sm",whiteSpace:"pre"},"pre code:before,pre code:after":{display:"none"},"pre p":{margin:0},"pre::-webkit-scrollbar":{display:"none",width:0,height:0,background:"transparent"},hr:{borderColor:"$accents2"},details:{backgroundColor:"$accents1",border:"none"},"details:focus, details:hover, details:active":{outline:"none"},summary:{cursor:"pointer",userSelect:"none",listStyle:"none",outline:"none"},"summary::-webkit-details-marker, summary::before":{display:"none"},"summary::-moz-list-bullet":{fontSize:0},"summary:focus, summary:hover, summary:active":{outline:"none",listStyle:"none"},"::selection":{backgroundColor:"$selection"},blockquote:{padding:"$md $lg",color:"$accents5",backgroundColor:"$accents1",borderRadius:"$lg",margin:"$10 0"},"blockquote *:first-child":{marginTop:0},"blockquote *:last-child":{marginBottom:0}}),ct=({children:e})=>(lt(),(0,st.jsx)(g().Fragment,{children:e})),ut=g().memo(ct);ut.flush=()=>(0,st.jsx)("style",{id:"stitches",dangerouslySetInnerHTML:{__html:Te()}});const dt=ut;function pt(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function ht(e,t){let{cursor:n,getKey:r}=e;return{setSelectedKeys(e){t((t=>({...t,selectedKeys:e})))},setFilterText(e){t((t=>({...t,filterText:e})))},insert(e,...n){t((t=>ft(t,e,...n)))},insertBefore(e,...n){t((t=>{let o=t.items.findIndex((t=>r(t)===e));if(-1!==o)return ft(t,o,...n)}))},insertAfter(e,...n){t((t=>{let o=t.items.findIndex((t=>r(t)===e));if(-1!==o)return ft(t,o+1,...n)}))},prepend(...e){t((t=>ft(t,0,...e)))},append(...e){t((t=>ft(t,t.items.length,...e)))},remove(...e){t((t=>{let o=new Set(e),i=t.items.filter((e=>!o.has(r(e)))),a="all";if("all"!==t.selectedKeys){a=new Set(t.selectedKeys);for(let t of e)a.delete(t)}return null==n&&0===i.length&&(a=new Set),{...t,items:i,selectedKeys:a}}))},removeSelectedItems(){t((e=>{if("all"===e.selectedKeys)return{...e,items:[],selectedKeys:new Set};let t=e.selectedKeys,n=e.items.filter((e=>!t.has(r(e))));return{...e,items:n,selectedKeys:new Set}}))},move(e,n){t((t=>{let o=t.items.findIndex((t=>r(t)===e));if(-1===o)return t;let i=t.items.slice(),[a]=i.splice(o,1);return i.splice(n,0,a),{...t,items:i}}))},moveBefore(e,n){t((t=>{let o=t.items.findIndex((t=>r(t)===e));if(-1===o)return t;let i=n.map((e=>t.items.findIndex((t=>r(t)===e)))).sort();return gt(t,i,o)}))},moveAfter(e,n){t((t=>{let o=t.items.findIndex((t=>r(t)===e));if(-1===o)return t;let i=n.map((e=>t.items.findIndex((t=>r(t)===e)))).sort();return gt(t,i,o+1)}))},update(e,n){t((t=>{let o=t.items.findIndex((t=>r(t)===e));return-1===o?t:{...t,items:[...t.items.slice(0,o),n,...t.items.slice(o+1)]}}))}}}function ft(e,t,...n){return{...e,items:[...e.items.slice(0,t),...n,...e.items.slice(t)]}}function gt(e,t,n){for(let e of t)e<n&&n--;let r=t.map((e=>({from:e,to:n++})));for(let e=0;e<r.length;e++){let t=r[e].from;for(let n=e;n<r.length;n++)r[n].from>t&&r[n].from--}for(let e=0;e<r.length;e++){let t=r[e];for(let n=r.length-1;n>e;n--){let e=r[n];e.from<t.to?t.to++:e.from++}}let o=e.items.slice();for(let e of r){let[t]=o.splice(e.from,1);o.splice(e.to,0,t)}return{...e,items:o}}function mt(e,t){let n;switch(e.state){case"idle":case"error":switch(t.type){case"loading":case"loadingMore":case"sorting":case"filtering":var r,o;return{...e,filterText:null!==(r=t.filterText)&&void 0!==r?r:e.filterText,state:t.type,items:"loading"===t.type?[]:e.items,sortDescriptor:null!==(o=t.sortDescriptor)&&void 0!==o?o:e.sortDescriptor,abortController:t.abortController};case"update":return{...e,...t.updater(e)};case"success":case"error":return e;default:throw new Error(`Invalid action "${t.type}" in state "${e.state}"`)}case"loading":case"sorting":case"filtering":switch(t.type){case"success":return t.abortController!==e.abortController?e:(n=null!==(i=t.selectedKeys)&&void 0!==i?i:e.selectedKeys,{...e,filterText:null!==(a=t.filterText)&&void 0!==a?a:e.filterText,state:"idle",items:[...t.items],selectedKeys:"all"===n?"all":new Set(n),sortDescriptor:null!==(s=t.sortDescriptor)&&void 0!==s?s:e.sortDescriptor,abortController:null,cursor:t.cursor});var i,a,s;case"error":return t.abortController!==e.abortController?e:{...e,state:"error",error:t.error,abortController:null};case"loading":case"loadingMore":case"sorting":case"filtering":var l;return e.abortController.abort(),{...e,filterText:null!==(l=t.filterText)&&void 0!==l?l:e.filterText,state:t.type,items:"loading"===t.type?[]:e.items,abortController:t.abortController};case"update":return{...e,...t.updater(e)};default:throw new Error(`Invalid action "${t.type}" in state "${e.state}"`)}case"loadingMore":switch(t.type){case"success":var c,u;return n="all"===e.selectedKeys||"all"===t.selectedKeys?"all":new Set([...e.selectedKeys,...null!==(c=t.selectedKeys)&&void 0!==c?c:[]]),{...e,state:"idle",items:[...e.items,...t.items],selectedKeys:n,sortDescriptor:null!==(u=t.sortDescriptor)&&void 0!==u?u:e.sortDescriptor,abortController:null,cursor:t.cursor};case"error":return t.abortController!==e.abortController?e:{...e,state:"error",error:t.error};case"loading":case"sorting":case"filtering":var d;return e.abortController.abort(),{...e,filterText:null!==(d=t.filterText)&&void 0!==d?d:e.filterText,state:t.type,items:"loading"===t.type?[]:e.items,abortController:t.abortController};case"loadingMore":return t.abortController.abort(),e;case"update":return{...e,...t.updater(e)};default:throw new Error(`Invalid action "${t.type}" in state "${e.state}"`)}default:throw new Error(`Invalid state "${e.state}"`)}}function bt(e){const{load:t,sort:n,initialSelectedKeys:r,initialSortDescriptor:o,getKey:i=(e=>e.id||e.key),initialFilterText:a=""}=e;let[s,l]=(0,f.useReducer)(mt,{state:"idle",error:null,items:[],selectedKeys:"all"===r?"all":new Set(r),sortDescriptor:o,filterText:a});const c=async(e,n)=>{let r=new AbortController;try{var o;l({...e,abortController:r});let u=null!==(o=e.filterText)&&void 0!==o?o:s.filterText;var i;let d=await n({items:s.items.slice(),selectedKeys:s.selectedKeys,sortDescriptor:null!==(i=e.sortDescriptor)&&void 0!==i?i:s.sortDescriptor,signal:r.signal,cursor:"loadingMore"===e.type?s.cursor:null,filterText:u});var a;let p=null!==(a=d.filterText)&&void 0!==a?a:u;l({type:"success",...d,abortController:r}),p&&p!==u&&!r.signal.aborted&&c({type:"filtering",filterText:p},t)}catch(e){l({type:"error",error:e,abortController:r})}};return(0,f.useEffect)((()=>{c({type:"loading"},t)}),[]),{items:s.items,selectedKeys:s.selectedKeys,sortDescriptor:s.sortDescriptor,isLoading:"loading"===s.state||"loadingMore"===s.state||"sorting"===s.state||"filtering"===s.state,loadingState:s.state,error:s.error,filterText:s.filterText,getItem:e=>s.items.find((t=>i(t)===e)),reload(){c({type:"loading"},t)},loadMore(){"loadingMore"!==s.state&&"filtering"!==s.state&&null!=s.cursor&&c({type:"loadingMore"},t)},sort(e){c({type:"sorting",sortDescriptor:e},n||t)},...ht({...e,getKey:i,cursor:s.cursor},(e=>{l({type:"update",updater:e})})),setFilterText(e){c({type:"filtering",filterText:e},t)}}}function yt(e){let{initialItems:t=[],initialSelectedKeys:n,getKey:r=(e=>e.id||e.key),getChildren:o=(e=>e.children)}=e,i=(0,f.useMemo)((()=>new Map),[]),a=(0,f.useMemo)((()=>d(t)),[]),[s,l]=(0,f.useState)(a),[c,u]=(0,f.useState)(new Set(n||[]));function d(e=[],t){return e.map((e=>{let n={key:r(e),parentKey:t,value:e,children:null};return n.children=d(o(e),n.key),i.set(n.key,n),n}))}function p(e,t,n){let r=i.get(t);if(!r)return e;let o=n(r);for(null==o?g(r):h(o);r.parentKey;){let e=i.get(r.parentKey),t={key:e.key,parentKey:e.parentKey,value:e.value,children:null},n=e.children;null==o&&(n=n.filter((e=>e!==r))),t.children=n.map((e=>e===r?o:e)),i.set(t.key,t),o=t,r=e}return null==o&&(e=e.filter((e=>e!==r))),e.map((e=>e===r?o:e))}function h(e){i.set(e.key,e);for(let t of e.children)h(t)}function g(e){i.delete(e.key);for(let t of e.children)g(t)}return{items:s,selectedKeys:c,setSelectedKeys:u,getItem:e=>i.get(e),insert(e,t,...n){l((r=>{let o=d(n,e);return null==e?[...r.slice(0,t),...o,...r.slice(t)]:p(r,e,(e=>({key:e.key,parentKey:e.parentKey,value:e.value,children:[...e.children.slice(0,t),...o,...e.children.slice(t)]})))}))},insertBefore(e,...t){let n=i.get(e);if(!n)return;let r=i.get(n.parentKey),o=(r?r.children:s).indexOf(n);this.insert(null==r?void 0:r.key,o,...t)},insertAfter(e,...t){let n=i.get(e);if(!n)return;let r=i.get(n.parentKey),o=(r?r.children:s).indexOf(n);this.insert(null==r?void 0:r.key,o+1,...t)},prepend(e,...t){this.insert(e,0,...t)},append(e,...t){if(null==e)this.insert(null,s.length,...t);else{let n=i.get(e);if(!n)return;this.insert(e,n.children.length,...t)}},remove(...e){let t=s;for(let n of e)t=p(t,n,(()=>null));l(t);let n=new Set(c);for(let e of c)i.has(e)||n.delete(e);u(n)},removeSelectedItems(){this.remove(...c)},move(e,t,n){l((r=>{let o=i.get(e);if(!o)return r;r=p(r,e,(()=>null));const a={...o,parentKey:t};return p(r,t,(e=>({key:e.key,parentKey:e.parentKey,value:e.value,children:[...e.children.slice(0,n),a,...e.children.slice(n)]})))}))},update(e,t){l((n=>p(n,e,(e=>{let n={key:e.key,parentKey:e.parentKey,value:t,children:null};return n.children=d(o(t),n.key),n}))))}}}function $t(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}pt({},"useAsyncList",(()=>bt)),pt({},"useTreeData",(()=>yt));var vt={};$t(vt,"SSRProvider",(()=>St)),$t(vt,"useSSRSafeId",(()=>kt)),$t(vt,"useIsSSR",(()=>Et));const xt={prefix:String(Math.round(1e10*Math.random())),current:0},wt=g().createContext(xt);function St(e){let t=(0,f.useContext)(wt),n=(0,f.useMemo)((()=>({prefix:t===xt?"":`${t.prefix}-${++t.current}`,current:0})),[t]);return g().createElement(wt.Provider,{value:n},e.children)}let Ct=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function kt(e){let t=(0,f.useContext)(wt);return t!==xt||Ct||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),(0,f.useMemo)((()=>e||`react-aria${t.prefix}-${++t.current}`),[e])}function Et(){let e=(0,f.useContext)(wt)!==xt,[t,n]=(0,f.useState)(e);return"undefined"!=typeof window&&e&&(0,f.useLayoutEffect)((()=>{n(!1)}),[]),t}var Tt=function(e,t){return Tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Tt(e,t)};function Pt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Tt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var It,Mt,Nt,Rt=function(){return Rt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Rt.apply(this,arguments)};function Lt(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function Dt(e){return e.type===Mt.literal}function zt(e){return e.type===Mt.argument}function At(e){return e.type===Mt.number}function Kt(e){return e.type===Mt.date}function Ot(e){return e.type===Mt.time}function jt(e){return e.type===Mt.select}function _t(e){return e.type===Mt.plural}function Ft(e){return e.type===Mt.pound}function Wt(e){return e.type===Mt.tag}function Bt(e){return!(!e||"object"!=typeof e||e.type!==Nt.number)}function Vt(e){return!(!e||"object"!=typeof e||e.type!==Nt.dateTime)}Object.create,Object.create,function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(It||(It={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(Mt||(Mt={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(Nt||(Nt={}));var Ht=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ut=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Gt(e){var t={};return e.replace(Ut,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var Yt,Xt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Jt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,qt=/^(@+)?(\+|#+)?[rs]?$/g,Zt=/(\*)(0+)|(#+)(0+)|(0+)/g,Qt=/^(0+)$/;function en(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(qt,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function tn(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function nn(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Qt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function rn(e){return tn(e)||{}}function on(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=Rt(Rt(Rt({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return Rt(Rt({},e),rn(t))}),{}));continue;case"engineering":t=Rt(Rt(Rt({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return Rt(Rt({},e),rn(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Zt,(function(e,n,r,o,i,a){if(n)t.minimumIntegerDigits=r.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(Qt.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(Jt.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Jt,(function(e,n,r,o,i,a){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var i=o.options[0];"w"===i?t=Rt(Rt({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=Rt(Rt({},t),en(i)))}else if(qt.test(o.stem))t=Rt(Rt({},t),en(o.stem));else{var a=tn(o.stem);a&&(t=Rt(Rt({},t),a));var s=nn(o.stem);s&&(t=Rt(Rt({},t),s))}}return t}var an=new RegExp("^".concat(Ht.source,"*")),sn=new RegExp("".concat(Ht.source,"*$"));function ln(e,t){return{start:e,end:t}}var cn=!!String.prototype.startsWith,un=!!String.fromCodePoint,dn=!!Object.fromEntries,pn=!!String.prototype.codePointAt,hn=!!String.prototype.trimStart,fn=!!String.prototype.trimEnd,gn=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},mn=!0;try{mn="a"===(null===(Yt=Cn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Yt?void 0:Yt[0])}catch(e){mn=!1}var bn,yn=cn?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},$n=un?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",o=e.length,i=0;o>i;){if((n=e[i++])>1114111)throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},vn=dn?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],i=o[0],a=o[1];t[i]=a}return t},xn=pn?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},wn=hn?function(e){return e.trimStart()}:function(e){return e.replace(an,"")},Sn=fn?function(e){return e.trimEnd()}:function(e){return e.replace(sn,"")};function Cn(e,t){return new RegExp(e,t)}if(mn){var kn=Cn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");bn=function(e,t){var n;return kn.lastIndex=t,null!==(n=kn.exec(e)[1])&&void 0!==n?n:""}}else bn=function(e,t){for(var n=[];;){var r=xn(e,t);if(void 0===r||In(r)||Mn(r))break;n.push(r),t+=r>=65536?2:1}return $n.apply(void 0,n)};var En=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(It.UNMATCHED_CLOSING_TAG,ln(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Tn(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;r.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}}else{var a=this.clonePosition();this.bump(),r.push({type:Mt.pound,location:ln(a,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Mt.literal,value:"<".concat(r,"/>"),location:ln(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Tn(this.char()))return this.error(It.INVALID_TAG,ln(a,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error(It.UNMATCHED_CLOSING_TAG,ln(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Mt.tag,value:r,children:i,location:ln(n,this.clonePosition())},err:null}:this.error(It.INVALID_TAG,ln(a,this.clonePosition())))}return this.error(It.UNCLOSED_TAG,ln(n,this.clonePosition()))}return this.error(It.INVALID_TAG,ln(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Pn(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{var i=this.tryParseUnquoted(e,t);if(i)r+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}var s=ln(n,this.clonePosition());return{val:{type:Mt.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Tn(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return $n.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),$n(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(It.EXPECT_ARGUMENT_CLOSING_BRACE,ln(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(It.EMPTY_ARGUMENT,ln(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(It.MALFORMED_ARGUMENT,ln(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(It.EXPECT_ARGUMENT_CLOSING_BRACE,ln(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Mt.argument,value:r,location:ln(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(It.EXPECT_ARGUMENT_CLOSING_BRACE,ln(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(It.MALFORMED_ARGUMENT,ln(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=bn(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:ln(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(It.EXPECT_ARGUMENT_TYPE,ln(i,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((m=this.parseSimpleArgStyleIfPossible()).err)return m;if(0===(p=Sn(m.val)).length)return this.error(It.EXPECT_ARGUMENT_STYLE,ln(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:ln(c,this.clonePosition())}}if((b=this.tryParseArgumentClose(r)).err)return b;var u=ln(r,this.clonePosition());if(l&&yn(null==l?void 0:l.style,"::",0)){var d=wn(l.style.slice(2));if("number"===a)return(m=this.parseNumberSkeletonFromString(d,l.styleLocation)).err?m:{val:{type:Mt.number,value:n,location:u,style:m.val},err:null};if(0===d.length)return this.error(It.EXPECT_DATE_TIME_SKELETON,u);var p={type:Nt.dateTime,pattern:d,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?Gt(d):{}};return{val:{type:"date"===a?Mt.date:Mt.time,value:n,location:u,style:p},err:null}}return{val:{type:"number"===a?Mt.number:"date"===a?Mt.date:Mt.time,value:n,location:u,style:null!==(o=null==l?void 0:l.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var h=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(It.EXPECT_SELECT_ARGUMENT_OPTIONS,ln(h,Rt({},h)));this.bumpSpace();var f=this.parseIdentifierIfPossible(),g=0;if("select"!==a&&"offset"===f.value){if(!this.bumpIf(":"))return this.error(It.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ln(this.clonePosition(),this.clonePosition()));var m;if(this.bumpSpace(),(m=this.tryParseDecimalInteger(It.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,It.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return m;this.bumpSpace(),f=this.parseIdentifierIfPossible(),g=m.val}var b,y=this.tryParsePluralOrSelectOptions(e,a,t,f);if(y.err)return y;if((b=this.tryParseArgumentClose(r)).err)return b;var $=ln(r,this.clonePosition());return"select"===a?{val:{type:Mt.select,value:n,options:vn(y.val),location:$},err:null}:{val:{type:Mt.plural,value:n,options:vn(y.val),offset:g,pluralType:"plural"===a?"cardinal":"ordinal",location:$},err:null};default:return this.error(It.INVALID_ARGUMENT_TYPE,ln(i,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(It.EXPECT_ARGUMENT_CLOSING_BRACE,ln(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(It.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ln(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Xt).filter((function(e){return e.length>0})),n=[],r=0,o=t;r<o.length;r++){var i=o[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var a=i[0],s=i.slice(1),l=0,c=s;l<c.length;l++)if(0===c[l].length)throw new Error("Invalid number skeleton");n.push({stem:a,options:s})}return n}(e)}catch(e){return this.error(It.INVALID_NUMBER_SKELETON,t)}return{val:{type:Nt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?on(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o,i=!1,a=[],s=new Set,l=r.value,c=r.location;;){if(0===l.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(It.EXPECT_PLURAL_ARGUMENT_SELECTOR,It.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=ln(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}if(s.has(l))return this.error("select"===t?It.DUPLICATE_SELECT_ARGUMENT_SELECTOR:It.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(i=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?It.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:It.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ln(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(e+1,t,n);if(h.err)return h;var f=this.tryParseArgumentClose(p);if(f.err)return f;a.push([l,{value:h.val,location:ln(p,this.clonePosition())}]),s.add(l),this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,c=o.location}return 0===a.length?this.error("select"===t?It.EXPECT_SELECT_ARGUMENT_SELECTOR:It.EXPECT_PLURAL_ARGUMENT_SELECTOR,ln(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(It.MISSING_OTHER_CLAUSE,ln(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=ln(r,this.clonePosition());return o?gn(i*=n)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=xn(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(yn(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&In(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function Tn(e){return e>=97&&e<=122||e>=65&&e<=90}function Pn(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function In(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Mn(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Nn(e){e.forEach((function(e){if(delete e.location,jt(e)||_t(e))for(var t in e.options)delete e.options[t].location,Nn(e.options[t].value);else At(e)&&Bt(e.style)||(Kt(e)||Ot(e))&&Vt(e.style)?delete e.style.location:Wt(e)&&Nn(e.children)}))}function Rn(e,t){void 0===t&&(t={}),t=Rt({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new En(e,t).parse();if(n.err){var r=SyntaxError(It[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||Nn(n.val),n.val}function Ln(e,t){var n=t&&t.cache?t.cache:Fn,r=t&&t.serializer?t.serializer:On;return(t&&t.strategy?t.strategy:Kn)(e,{cache:n,serializer:r})}function Dn(e,t,n,r){var o,i=null==(o=r)||"number"==typeof o||"boolean"==typeof o?r:n(r),a=t.get(i);return void 0===a&&(a=e.call(this,r),t.set(i,a)),a}function zn(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function An(e,t,n,r,o){return n.bind(t,e,r,o)}function Kn(e,t){return An(e,this,1===e.length?Dn:zn,t.cache.create(),t.serializer)}var On=function(){return JSON.stringify(arguments)};function jn(){this.cache=Object.create(null)}jn.prototype.get=function(e){return this.cache[e]},jn.prototype.set=function(e,t){this.cache[e]=t};var _n,Fn={create:function(){return new jn}},Wn={variadic:function(e,t){return An(e,this,zn,t.cache.create(),t.serializer)},monadic:function(e,t){return An(e,this,Dn,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(_n||(_n={}));var Bn,Vn=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.code=n,o.originalMessage=r,o}return Pt(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Hn=function(e){function t(t,n,r,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),_n.INVALID_VALUE,o)||this}return Pt(t,e),t}(Vn),Un=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),_n.INVALID_VALUE,r)||this}return Pt(t,e),t}(Vn),Gn=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),_n.MISSING_VALUE,n)||this}return Pt(t,e),t}(Vn);function Yn(e){return"function"==typeof e}function Xn(e,t,n,r,o,i,a){if(1===e.length&&Dt(e[0]))return[{type:Bn.literal,value:e[0].value}];for(var s=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Dt(u))s.push({type:Bn.literal,value:u.value});else if(Ft(u))"number"==typeof i&&s.push({type:Bn.literal,value:n.getNumberFormat(t).format(i)});else{var d=u.value;if(!o||!(d in o))throw new Gn(d,a);var p=o[d];if(zt(u))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),s.push({type:"string"==typeof p?Bn.literal:Bn.object,value:p});else if(Kt(u)){var h="string"==typeof u.style?r.date[u.style]:Vt(u.style)?u.style.parsedOptions:void 0;s.push({type:Bn.literal,value:n.getDateTimeFormat(t,h).format(p)})}else if(Ot(u))h="string"==typeof u.style?r.time[u.style]:Vt(u.style)?u.style.parsedOptions:void 0,s.push({type:Bn.literal,value:n.getDateTimeFormat(t,h).format(p)});else if(At(u))(h="string"==typeof u.style?r.number[u.style]:Bt(u.style)?u.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),s.push({type:Bn.literal,value:n.getNumberFormat(t,h).format(p)});else{if(Wt(u)){var f=u.children,g=u.value,m=o[g];if(!Yn(m))throw new Un(g,"function",a);var b=m(Xn(f,t,n,r,o,i).map((function(e){return e.value})));Array.isArray(b)||(b=[b]),s.push.apply(s,b.map((function(e){return{type:"string"==typeof e?Bn.literal:Bn.object,value:e}})))}if(jt(u)){if(!(y=u.options[p]||u.options.other))throw new Hn(u.value,p,Object.keys(u.options),a);s.push.apply(s,Xn(y.value,t,n,r,o))}else if(_t(u)){var y;if(!(y=u.options["=".concat(p)])){if(!Intl.PluralRules)throw new Vn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',_n.MISSING_INTL_API,a);var $=n.getPluralRules(t,{type:u.pluralType}).select(p-(u.offset||0));y=u.options[$]||u.options.other}if(!y)throw new Hn(u.value,p,Object.keys(u.options),a);s.push.apply(s,Xn(y.value,t,n,r,o,p-(u.offset||0)))}}}}return(v=s).length<2?v:v.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===Bn.literal&&t.type===Bn.literal?n.value+=t.value:e.push(t),e}),[]);var v}function Jn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Bn||(Bn={}));var qn=function(){function e(t,n,r,o){var i,a,s,l=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=l.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===Bn.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return Xn(l.ast,l.locales,l.formatters,l.formats,e,void 0,l.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(l.locales)[0]}},this.getAst=function(){return l.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:null==o?void 0:o.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(a=e.formats,(s=r)?Object.keys(a).reduce((function(e,t){var n,r;return e[t]=(n=a[t],(r=s[t])?Rt(Rt(Rt({},n||{}),r||{}),Object.keys(n).reduce((function(e,t){return e[t]=Rt(Rt({},n[t]),r[t]||{}),e}),{})):n),e}),Rt({},a)):a),this.locales=n,this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ln((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Lt([void 0],t,!1)))}),{cache:Jn(i.number),strategy:Wn.variadic}),getDateTimeFormat:Ln((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Lt([void 0],t,!1)))}),{cache:Jn(i.dateTime),strategy:Wn.variadic}),getPluralRules:Ln((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Lt([void 0],t,!1)))}),{cache:Jn(i.pluralRules),strategy:Wn.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.__parse=Rn,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const Zn=qn;function Qn(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}Qn({},"MessageDictionary",(()=>er));class er{getStringForLocale(e,t){let n=this.messages[t];n||(n=function(e,t,n="en-US"){if(t[e])return t[e];let r=function(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}(e);for(let e in t)if(e.startsWith(r+"-"))return t[e];return t[n]}(t,this.messages,this.defaultLocale),this.messages[t]=n);let r=n[e];if(!r)throw new Error(`Could not find intl message ${e} in ${t} locale`);return r}constructor(e,t="en-US"){this.messages={...e},this.defaultLocale=t}}Qn({},"MessageFormatter",(()=>tr));class tr{format(e,t){let n,r=this.cache[e];if(!r){let t=this.messages.getStringForLocale(e,this.locale);if(!t)throw new Error(`Could not find intl message ${e} in ${this.locale} locale`);r=new Zn(t,this.locale),this.cache[e]=r}return t&&(n=Object.keys(t).reduce(((e,n)=>(e[n]=null!=t[n]&&t[n],e)),{})),r.format(n)}constructor(e,t){this.locale=e,this.messages=t,this.cache={}}}function nr(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var rr={};nr(rr,"CalendarDate",(()=>qo)),nr(rr,"Time",(()=>Qo)),nr(rr,"CalendarDateTime",(()=>ti)),nr(rr,"ZonedDateTime",(()=>ri));var or={};nr(or,"epochFromDate",(()=>Vr)),nr(or,"toCalendar",(()=>lo)),nr(or,"getTimeZoneOffset",(()=>Ur)),nr(or,"possibleAbsolutes",(()=>Jr)),nr(or,"toAbsolute",(()=>Zr)),nr(or,"toCalendarDateTime",(()=>ao)),nr(or,"toDate",(()=>Qr)),nr(or,"fromAbsolute",(()=>eo)),nr(or,"fromDate",(()=>to)),nr(or,"fromDateToLocal",(()=>no)),nr(or,"toCalendarDate",(()=>ro)),nr(or,"toDateFields",(()=>oo)),nr(or,"toTimeFields",(()=>io)),nr(or,"toTime",(()=>so)),nr(or,"toZoned",(()=>co)),nr(or,"toTimeZone",(()=>po)),nr(or,"zonedToDate",(()=>uo)),nr(or,"toLocalTimeZone",(()=>ho));var ir={};nr(ir,"isSameDay",(()=>sr)),nr(ir,"isSameMonth",(()=>lr)),nr(ir,"startOfMonth",(()=>Sr)),nr(ir,"isSameYear",(()=>cr)),nr(ir,"startOfYear",(()=>kr)),nr(ir,"isEqualDay",(()=>ur)),nr(ir,"isEqualMonth",(()=>dr)),nr(ir,"isEqualYear",(()=>pr)),nr(ir,"isToday",(()=>hr)),nr(ir,"today",(()=>mr)),nr(ir,"getDayOfWeek",(()=>fr)),nr(ir,"now",(()=>gr)),nr(ir,"compareDate",(()=>br)),nr(ir,"compareTime",(()=>yr)),nr(ir,"getHoursInDay",(()=>vr)),nr(ir,"getLocalTimeZone",(()=>wr)),nr(ir,"endOfMonth",(()=>Cr)),nr(ir,"endOfYear",(()=>Er)),nr(ir,"getMinimumMonthInYear",(()=>Tr)),nr(ir,"getMinimumDayInMonth",(()=>Pr)),nr(ir,"startOfWeek",(()=>Ir)),nr(ir,"endOfWeek",(()=>Mr)),nr(ir,"getWeeksInMonth",(()=>Lr)),nr(ir,"minDate",(()=>Dr)),nr(ir,"maxDate",(()=>zr)),nr(ir,"isWeekend",(()=>Kr)),nr(ir,"isWeekday",(()=>Or));const ar={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AT:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function sr(e,t){return t=lo(t,e.calendar),e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function lr(e,t){return t=lo(t,e.calendar),e=Sr(e),t=Sr(t),e.era===t.era&&e.year===t.year&&e.month===t.month}function cr(e,t){return t=lo(t,e.calendar),e=kr(e),t=kr(t),e.era===t.era&&e.year===t.year}function ur(e,t){return e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month&&e.day===t.day}function dr(e,t){return e=Sr(e),t=Sr(t),e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year&&e.month===t.month}function pr(e,t){return e=kr(e),t=kr(t),e.calendar.identifier===t.calendar.identifier&&e.era===t.era&&e.year===t.year}function hr(e,t){return sr(e,mr(t))}function fr(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1-function(e){let t=Rr(e);return ar[t]||0}(t))%7;return r<0&&(r+=7),r}function gr(e){return eo(Date.now(),e)}function mr(e){return ro(gr(e))}function br(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function yr(e,t){return $r(e)-$r(t)}function $r(e){return 36e5*e.hour+6e4*e.minute+1e3*e.second+e.millisecond}function vr(e,t){let n=Zr(e,t);return(Zr(e.add({days:1}),t)-n)/36e5}let xr=null;function wr(){return null==xr&&(xr=(new Intl.DateTimeFormat).resolvedOptions().timeZone),xr}function Sr(e){return e.subtract({days:e.day-1})}function Cr(e){return e.add({days:e.calendar.getDaysInMonth(e)-e.day})}function kr(e){return Sr(e.subtract({months:e.month-1}))}function Er(e){return Cr(e.add({months:e.calendar.getMonthsInYear(e)-e.month}))}function Tr(e){return e.calendar.getMinimumMonthInYear?e.calendar.getMinimumMonthInYear(e):1}function Pr(e){return e.calendar.getMinimumDayInMonth?e.calendar.getMinimumDayInMonth(e):1}function Ir(e,t){let n=fr(e,t);return e.subtract({days:n})}function Mr(e,t){return Ir(e,t).add({days:6})}const Nr=new Map;function Rr(e){if(Intl.Locale){let t=Nr.get(e);return t||(t=new Intl.Locale(e).maximize().region,Nr.set(e,t)),t}let t=e.split("-")[1];return"u"===t?null:t}function Lr(e,t){let n=e.calendar.getDaysInMonth(e);return Math.ceil((fr(Sr(e),t)+n)/7)}function Dr(e,t){return e.compare(t)<=0?e:t}function zr(e,t){return e.compare(t)>=0?e:t}const Ar={AF:[4,5],AE:[5,6],BH:[5,6],DZ:[5,6],EG:[5,6],IL:[5,6],IQ:[5,6],IR:[5,5],JO:[5,6],KW:[5,6],LY:[5,6],OM:[5,6],QA:[5,6],SA:[5,6],SD:[5,6],SY:[5,6],YE:[5,6]};function Kr(e,t){let n=e.calendar.toJulianDay(e),r=Math.ceil(n+1)%7;r<0&&(r+=7);let o=Rr(t),[i,a]=Ar[o]||[6,0];return r===i||r===a}function Or(e,t){return!Kr(e,t)}function jr(e,t){return e-t*Math.floor(e/t)}function _r(e,t,n){let r=e-1,o=-2;return t<=2?o=0:Fr(e)&&(o=-1),1721425+365*r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400)+Math.floor((367*t-362)/12+o+n)}function Fr(e){return e%4==0&&(e%100!=0||e%400==0)}const Wr={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]};class Br{fromJulianDay(e){let t=e,n=t-1721426,r=Math.floor(n/146097),o=jr(n,146097),i=Math.floor(o/36524),a=jr(o,36524),s=Math.floor(a/1461),l=jr(a,1461),c=Math.floor(l/365),u=400*r+100*i+4*s+c+(4!==i&&4!==c?1:0),d=t-_r(u,1,1),p=2;t<_r(u,3,1)?p=0:Fr(u)&&(p=1);let h=Math.floor((12*(d+p)+373)/367),f=t-_r(u,h,1)+1;return new qo(this,u,h,f)}toJulianDay(e){return _r(e.year,e.month,e.day)}getDaysInMonth(e){return Wr[Fr(e.year)?"leapyear":"standard"][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return Fr(e.year)?366:365}getYearsInEra(e){return 9999}getEras(){return["BC","AD"]}getYearsToAdd(e,t){return"BC"===e.era?-t:t}balanceDate(e){e.year<=0&&(e.era="BC"===e.era?"AD":"BC",e.year=1-e.year)}constructor(){this.identifier="gregory"}}function Vr(e){return Hr((e=lo(e,new Br)).year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function Hr(e,t,n,r,o,i,a){let s=new Date;return s.setUTCHours(r,o,i,a),s.setUTCFullYear(e,t-1,n),s.getTime()}function Ur(e,t){if(t===wr())return-6e4*new Date(e).getTimezoneOffset();let{year:n,month:r,day:o,hour:i,minute:a,second:s}=Yr(e,t);return Hr(n,r,o,i,a,s,0)-1e3*Math.floor(e/1e3)}const Gr=new Map;function Yr(e,t){let n=Gr.get(t);n||(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),Gr.set(t,n));let r=n.formatToParts(new Date(e)),o={};for(let e of r)"literal"!==e.type&&(o[e.type]=e.value);return{year:"BC"===o.era?1-o.year:+o.year,month:+o.month,day:+o.day,hour:"24"===o.hour?0:+o.hour,minute:+o.minute,second:+o.second}}const Xr=864e5;function Jr(e,t){let n=Vr(e);return qr(e,t,n-Ur(n-Xr,t),n-Ur(n+Xr,t))}function qr(e,t,n,r){return(n===r?[n]:[n,r]).filter((n=>function(e,t,n){let r=Yr(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}(e,t,n)))}function Zr(e,t,n="compatible"){let r=ao(e);if(t===wr()&&"compatible"===n){r=lo(r,new Br);let e=new Date;return e.setFullYear(r.year,r.month-1,r.day),e.setHours(r.hour,r.minute,r.second,r.millisecond),e.getTime()}let o=Vr(r),i=Ur(o-Xr,t),a=Ur(o+Xr,t),s=qr(r,t,o-i,o-a);if(1===s.length)return s[0];if(s.length>1)switch(n){case"compatible":case"earlier":return s[0];case"later":return s[s.length-1];case"reject":throw new RangeError("Multiple possible absolute times found")}switch(n){case"earlier":return Math.min(o-i,o-a);case"compatible":case"later":return Math.max(o-i,o-a);case"reject":throw new RangeError("No such absolute time found")}}function Qr(e,t,n="compatible"){return new Date(Zr(e,t,n))}function eo(e,t){let n=Ur(e,t),r=new Date(e+n),o=r.getUTCFullYear(),i=r.getUTCMonth()+1,a=r.getUTCDate(),s=r.getUTCHours(),l=r.getUTCMinutes(),c=r.getUTCSeconds(),u=r.getUTCMilliseconds();return new ri(o,i,a,t,n,s,l,c,u)}function to(e,t){return eo(e.getTime(),t)}function no(e){return to(e,wr())}function ro(e){return new qo(e.calendar,e.era,e.year,e.month,e.day)}function oo(e){return{era:e.era,year:e.year,month:e.month,day:e.day}}function io(e){return{hour:e.hour,minute:e.minute,second:e.second,millisecond:e.millisecond}}function ao(e,t){let n=0,r=0,o=0,i=0;if("timeZone"in e)({hour:n,minute:r,second:o,millisecond:i}=e);else if("hour"in e&&!t)return e;return t&&({hour:n,minute:r,second:o,millisecond:i}=t),new ti(e.calendar,e.era,e.year,e.month,e.day,n,r,o,i)}function so(e){return new Qo(e.hour,e.minute,e.second,e.millisecond)}function lo(e,t){if(e.calendar.identifier===t.identifier)return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,r}function co(e,t,n){return e instanceof ri?e.timeZone===t?e:po(e,t):eo(Zr(e,t,n),t)}function uo(e){let t=Vr(e)-e.offset;return new Date(t)}function po(e,t){return lo(eo(Vr(e)-e.offset,t),e.calendar)}function ho(e){return po(e,wr())}const fo=36e5;function go(e,t){let n=e.copy(),r="hour"in e?Eo(e,t):0;return mo(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,bo(n),yo(n),n.day+=7*(t.weeks||0),n.day+=t.days||0,n.day+=r,function(e){for(;e.day<1;)e.month--,bo(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,bo(e)}(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n}function mo(e,t){e.calendar.getYearsToAdd&&(t=e.calendar.getYearsToAdd(e,t)),e.year+=t}function bo(e){for(;e.month<1;)mo(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,mo(e,1)}function yo(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function $o(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),yo(e)}function vo(e){let t={};for(let n in e)"number"==typeof e[n]&&(t[n]=-e[n]);return t}function xo(e,t){return go(e,vo(t))}function wo(e,t){let n=e.copy();return null!=t.era&&(n.era=t.era),null!=t.year&&(n.year=t.year),null!=t.month&&(n.month=t.month),null!=t.day&&(n.day=t.day),$o(n),n}function So(e,t){let n=e.copy();return null!=t.hour&&(n.hour=t.hour),null!=t.minute&&(n.minute=t.minute),null!=t.second&&(n.second=t.second),null!=t.millisecond&&(n.millisecond=t.millisecond),Co(n),n}function Co(e){e.millisecond=Math.max(0,Math.min(e.millisecond,1e3)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function ko(e,t){let n=e%t;return n<0&&(n+=t),n}function Eo(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,function(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=ko(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=ko(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=ko(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=ko(e.hour,24),t}(e)}function To(e,t){let n=e.copy();return Eo(n,t),n}function Po(e,t,n,r){let o=e.copy();switch(t){case"era":{let t=e.calendar.getEras(),i=t.indexOf(e.era);if(i<0)throw new Error("Invalid era: "+e.era);i=Mo(i,n,0,t.length-1,null==r?void 0:r.round),o.era=t[i],$o(o);break}case"year":o.calendar.getYearsToAdd&&(n=o.calendar.getYearsToAdd(o,n)),o.year=Mo(e.year,n,-1/0,9999,null==r?void 0:r.round),o.year===-1/0&&(o.year=1),o.calendar.balanceYearMonth&&o.calendar.balanceYearMonth(o,e);break;case"month":o.month=Mo(e.month,n,1,e.calendar.getMonthsInYear(e),null==r?void 0:r.round);break;case"day":o.day=Mo(e.day,n,1,e.calendar.getDaysInMonth(e),null==r?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(o),$o(o),o}function Io(e,t,n,r){let o=e.copy();switch(t){case"hour":{let t=e.hour,i=0,a=23;if(12===(null==r?void 0:r.hourCycle)){let e=t>=12;i=e?12:0,a=e?23:11}o.hour=Mo(t,n,i,a,null==r?void 0:r.round);break}case"minute":o.minute=Mo(e.minute,n,0,59,null==r?void 0:r.round);break;case"second":o.second=Mo(e.second,n,0,59,null==r?void 0:r.round);break;case"millisecond":o.millisecond=Mo(e.millisecond,n,0,999,null==r?void 0:r.round);break;default:throw new Error("Unsupported field "+t)}return o}function Mo(e,t,n,r,o=!1){if(o){(e+=Math.sign(t))<n&&(e=r);let o=Math.abs(t);(e=t>0?Math.ceil(e/o)*o:Math.floor(e/o)*o)>r&&(e=n)}else(e+=t)<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function No(e,t){let n;return n=null!=t.years&&0!==t.years||null!=t.months&&0!==t.months||null!=t.days&&0!==t.days?Zr(go(ao(e),{years:t.years,months:t.months,days:t.days}),e.timeZone):Vr(e)-e.offset,n+=t.milliseconds||0,n+=1e3*(t.seconds||0),n+=6e4*(t.minutes||0),n+=36e5*(t.hours||0),lo(eo(n,e.timeZone),e.calendar)}var Ro={};nr(Ro,"parseTime",(()=>Oo)),nr(Ro,"parseDate",(()=>jo)),nr(Ro,"parseDateTime",(()=>_o)),nr(Ro,"parseZonedDateTime",(()=>Fo)),nr(Ro,"dateTimeToString",(()=>Go)),nr(Ro,"parseAbsolute",(()=>Wo)),nr(Ro,"parseAbsoluteToLocal",(()=>Bo)),nr(Ro,"timeToString",(()=>Ho)),nr(Ro,"dateToString",(()=>Uo)),nr(Ro,"zonedDateTimeToString",(()=>Xo));const Lo=/^(\d{2})(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,Do=/^(\d{4})-(\d{2})-(\d{2})$/,zo=/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,Ao=/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:([+-]\d{2})(?::(\d{2}))?)?\[(.*?)\]$/,Ko=/^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::(\d{2}))?)|Z)$/;function Oo(e){let t=e.match(Lo);if(!t)throw new Error("Invalid ISO 8601 time string: "+e);return new Qo(Vo(t[1],0,23),t[2]?Vo(t[2],0,59):0,t[3]?Vo(t[3],0,59):0,t[4]?1e3*Vo(t[4],0,1/0):0)}function jo(e){let t=e.match(Do);if(!t)throw new Error("Invalid ISO 8601 date string: "+e);let n=new qo(Vo(t[1],0,9999),Vo(t[2],1,12),1);return n.day=Vo(t[3],0,n.calendar.getDaysInMonth(n)),n}function _o(e){let t=e.match(zo);if(!t)throw new Error("Invalid ISO 8601 date time string: "+e);let n=new ti(Vo(t[1],1,9999),Vo(t[2],1,12),1,t[4]?Vo(t[4],0,23):0,t[5]?Vo(t[5],0,59):0,t[6]?Vo(t[6],0,59):0,t[7]?1e3*Vo(t[7],0,1/0):0);return n.day=Vo(t[3],0,n.calendar.getDaysInMonth(n)),n}function Fo(e,t){let n=e.match(Ao);if(!n)throw new Error("Invalid ISO 8601 date time string: "+e);let r=new ri(Vo(n[1],1,9999),Vo(n[2],1,12),1,n[10],0,n[4]?Vo(n[4],0,23):0,n[5]?Vo(n[5],0,59):0,n[6]?Vo(n[6],0,59):0,n[7]?1e3*Vo(n[7],0,1/0):0);r.day=Vo(n[3],0,r.calendar.getDaysInMonth(r));let o,i=ao(r);var a;if(n[8]){if(r.offset=36e5*Vo(n[8],-23,23)+6e4*Vo(null!==(a=n[9])&&void 0!==a?a:"0",0,59),o=Vr(r)-r.offset,!Jr(i,r.timeZone).includes(o))throw new Error(`Offset ${Yo(r.offset)} is invalid for ${Go(r)} in ${r.timeZone}`)}else o=Zr(ao(i),r.timeZone,t);return eo(o,r.timeZone)}function Wo(e,t){let n=e.match(Ko);if(!n)throw new Error("Invalid ISO 8601 date time string: "+e);let r=new ri(Vo(n[1],1,9999),Vo(n[2],1,12),1,t,0,n[4]?Vo(n[4],0,23):0,n[5]?Vo(n[5],0,59):0,n[6]?Vo(n[6],0,59):0,n[7]?1e3*Vo(n[7],0,1/0):0);var o;return r.day=Vo(n[3],0,r.calendar.getDaysInMonth(r)),n[8]&&(r.offset=36e5*Vo(n[8],-23,23)+6e4*Vo(null!==(o=n[9])&&void 0!==o?o:"0",0,59)),po(r,t)}function Bo(e){return Wo(e,wr())}function Vo(e,t,n){let r=Number(e);if(r<t||r>n)throw new RangeError(`Value out of range: ${t} <= ${r} <= ${n}`);return r}function Ho(e){return`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}:${String(e.second).padStart(2,"0")}${e.millisecond?String(e.millisecond/1e3).slice(1):""}`}function Uo(e){let t=lo(e,new Br);return`${String(t.year).padStart(4,"0")}-${String(t.month).padStart(2,"0")}-${String(t.day).padStart(2,"0")}`}function Go(e){return`${Uo(e)}T${Ho(e)}`}function Yo(e){let t=Math.sign(e)<0?"-":"+";e=Math.abs(e);let n=Math.floor(e/36e5),r=e%36e5/6e4;return`${t}${String(n).padStart(2,"0")}:${String(r).padStart(2,"0")}`}function Xo(e){return`${Go(e)}${Yo(e.offset)}[${e.timeZone}]`}function Jo(e){let t,n="object"==typeof e[0]?e.shift():new Br;if("string"==typeof e[0])t=e.shift();else{let e=n.getEras();t=e[e.length-1]}return[n,t,e.shift(),e.shift(),e.shift()]}class qo{copy(){return this.era?new qo(this.calendar,this.era,this.year,this.month,this.day):new qo(this.calendar,this.year,this.month,this.day)}add(e){return go(this,e)}subtract(e){return xo(this,e)}set(e){return wo(this,e)}cycle(e,t,n){return Po(this,e,t,n)}toDate(e){return Qr(this,e)}toString(){return Uo(this)}compare(e){return br(this,e)}constructor(...e){Zo.set(this,{writable:!0,value:void 0});let[t,n,r,o,i]=Jo(e);this.calendar=t,this.era=n,this.year=r,this.month=o,this.day=i,$o(this)}}var Zo=new WeakMap;class Qo{copy(){return new Qo(this.hour,this.minute,this.second,this.millisecond)}add(e){return To(this,e)}subtract(e){return function(e,t){return To(e,vo(t))}(this,e)}set(e){return So(this,e)}cycle(e,t,n){return Io(this,e,t,n)}toString(){return Ho(this)}compare(e){return yr(this,e)}constructor(e=0,t=0,n=0,r=0){ei.set(this,{writable:!0,value:void 0}),this.hour=e,this.minute=t,this.second=n,this.millisecond=r,Co(this)}}var ei=new WeakMap;class ti{copy(){return this.era?new ti(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new ti(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return go(this,e)}subtract(e){return xo(this,e)}set(e){return wo(So(this,e),e)}cycle(e,t,n){switch(e){case"era":case"year":case"month":case"day":return Po(this,e,t,n);default:return Io(this,e,t,n)}}toDate(e){return Qr(this,e)}toString(){return Go(this)}compare(e){let t=br(this,e);return 0===t?yr(this,ao(e)):t}constructor(...e){ni.set(this,{writable:!0,value:void 0});let[t,n,r,o,i]=Jo(e);this.calendar=t,this.era=n,this.year=r,this.month=o,this.day=i,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,$o(this)}}var ni=new WeakMap;class ri{copy(){return this.era?new ri(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new ri(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return No(this,e)}subtract(e){return function(e,t){return No(e,vo(t))}(this,e)}set(e,t){return function(e,t,n){let r=ao(e),o=So(wo(r,t),t);return 0===o.compare(r)?e:lo(eo(Zr(o,e.timeZone,n),e.timeZone),e.calendar)}(this,e,t)}cycle(e,t,n){return function(e,t,n,r){switch(t){case"hour":{let t=0,o=23;if(12===(null==r?void 0:r.hourCycle)){let n=e.hour>=12;t=n?12:0,o=n?23:11}let i=ao(e),a=lo(So(i,{hour:t}),new Br),s=[Zr(a,e.timeZone,"earlier"),Zr(a,e.timeZone,"later")].filter((t=>eo(t,e.timeZone).day===a.day))[0],l=lo(So(i,{hour:o}),new Br),c=[Zr(l,e.timeZone,"earlier"),Zr(l,e.timeZone,"later")].filter((t=>eo(t,e.timeZone).day===l.day)).pop(),u=Vr(e)-e.offset,d=Math.floor(u/fo),p=u%fo;return u=Mo(d,n,Math.floor(s/fo),Math.floor(c/fo),null==r?void 0:r.round)*fo+p,lo(eo(u,e.timeZone),e.calendar)}case"minute":case"second":case"millisecond":return Io(e,t,n,r);case"era":case"year":case"month":case"day":return lo(eo(Zr(Po(ao(e),t,n,r),e.timeZone),e.timeZone),e.calendar);default:throw new Error("Unsupported field "+t)}}(this,e,t,n)}toDate(){return uo(this)}toString(){return Xo(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-co(e,this.timeZone).toDate().getTime()}constructor(...e){oi.set(this,{writable:!0,value:void 0});let[t,n,r,o,i]=Jo(e),a=e.shift(),s=e.shift();this.calendar=t,this.era=n,this.year=r,this.month=o,this.day=i,this.timeZone=a,this.offset=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,$o(this)}}var oi=new WeakMap;nr({},"DateFormatter",(()=>ai));let ii=new Map;class ai{format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if("function"==typeof this.formatter.formatRange)return this.formatter.formatRange(e,t);if(t<e)throw new RangeError("End date must be >= start date");return`${this.formatter.format(e)} – ${this.formatter.format(t)}`}formatRangeToParts(e,t){if("function"==typeof this.formatter.formatRangeToParts)return this.formatter.formatRangeToParts(e,t);if(t<e)throw new RangeError("End date must be >= start date");let n=this.formatter.formatToParts(e),r=this.formatter.formatToParts(t);return[...n.map((e=>({...e,source:"startRange"}))),{type:"literal",value:" – ",source:"shared"},...r.map((e=>({...e,source:"endRange"})))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return null==ui&&(ui="h12"===new Intl.DateTimeFormat("fr",{hour:"numeric",hour12:!1}).resolvedOptions().hourCycle),ui&&(this.resolvedHourCycle||(this.resolvedHourCycle=function(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,"");let n=li(e+=(e.includes("-u-")?"":"-u")+"-nu-latn",{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find((e=>"hour"===e.type)).value,10),o=parseInt(n.formatToParts(new Date(2020,2,3,23)).find((e=>"hour"===e.type)).value,10);if(0===r&&23===o)return"h23";if(24===r&&23===o)return"h24";if(0===r&&11===o)return"h11";if(12===r&&11===o)return"h12";throw new Error("Unexpected hour cycle result")}(e.locale,this.options)),e.hourCycle=this.resolvedHourCycle,e.hour12="h11"===this.resolvedHourCycle||"h12"===this.resolvedHourCycle),e}constructor(e,t={}){this.formatter=li(e,t),this.options=t}}const si={true:{ja:"h11"},false:{}};function li(e,t={}){if("boolean"==typeof t.hour12&&(null==ci&&(ci="24"===new Intl.DateTimeFormat("en-US",{hour:"numeric",hour12:!1}).format(new Date(2020,2,3,0))),ci)){t={...t};let n=si[String(t.hour12)][e.split("-")[0]],r=t.hour12?"h12":"h23";t.hourCycle=null!=n?n:r,delete t.hour12}let n=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(ii.has(n))return ii.get(n);let r=new Intl.DateTimeFormat(e,t);return ii.set(n,r),r}let ci=null,ui=null,di=new Map,pi=!1;try{pi="exceptZero"===new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay}catch(v){}let hi=!1;try{hi="unit"===new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style}catch(e){}const fi={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class gi{format(e){let t="";if(t=pi||null==this.options.signDisplay?this.numberFormatter.format(e):function(e,t,n){if("auto"===t)return e.format(n);if("never"===t)return e.format(Math.abs(n));{let r=!1;if("always"===t?r=n>0||Object.is(n,0):"exceptZero"===t&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let t=e.format(-n),r=e.format(n),o=t.replace(r,"").replace(/\u200e|\u061C/,"");return 1!==[...o].length&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),t.replace(r,"!!!").replace(o,"+").replace("!!!",r)}return e.format(n)}}(this.numberFormatter,this.options.signDisplay,e),"unit"===this.options.style&&!hi){var n;let{unit:e,unitDisplay:r="short",locale:o}=this.resolvedOptions(),i=null===(n=fi[e])||void 0===n?void 0:n[r];t+=i[o]||i.default}return t}formatToParts(e){return this.numberFormatter.formatToParts(e)}resolvedOptions(){let e=this.numberFormatter.resolvedOptions();return pi||null==this.options.signDisplay||(e={...e,signDisplay:this.options.signDisplay}),hi||"unit"!==this.options.style||(e={...e,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),e}constructor(e,t={}){this.numberFormatter=function(e,t={}){let{numberingSystem:n}=t;if(n&&-1===e.indexOf("-u-nu-")&&(e=`${e}-u-nu-${n}`),"unit"===t.style&&!hi){var r;let{unit:e,unitDisplay:n="short"}=t;if(!e)throw new Error('unit option must be provided with style: "unit"');if(!(null===(r=fi[e])||void 0===r?void 0:r[n]))throw new Error(`Unsupported unit ${e} with unitDisplay = ${n}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(di.has(o))return di.get(o);let i=new Intl.NumberFormat(e,t);return di.set(o,i),i}(e,t),this.options=t}}function mi(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}new Map,new Set(["decimal","fraction","integer","minusSign","plusSign","group"]);var bi={};mi(bi,"I18nProvider",(()=>Ti)),mi(bi,"useLocale",(()=>Pi));const yi=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),$i=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function vi(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return yi.has(t)}let t=e.split("-")[0];return $i.has(t)}function xi(){let e="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:vi(e)?"rtl":"ltr"}}let wi=xi(),Si=new Set;function Ci(){wi=xi();for(let e of Si)e(wi)}function ki(){let e=Et(),[t,n]=(0,f.useState)(wi);return(0,f.useEffect)((()=>(0===Si.size&&window.addEventListener("languagechange",Ci),Si.add(n),()=>{Si.delete(n),0===Si.size&&window.removeEventListener("languagechange",Ci)})),[]),e?{locale:"en-US",direction:"ltr"}:t}const Ei=g().createContext(null);function Ti(e){let{locale:t,children:n}=e,r=ki(),o=t?{locale:t,direction:vi(t)?"rtl":"ltr"}:r;return g().createElement(Ei.Provider,{value:o},n)}function Pi(){let e=ki();return(0,f.useContext)(Ei)||e}mi({},"useMessageFormatter",(()=>Mi));const Ii=new WeakMap;function Mi(e){let{locale:t}=Pi(),n=(0,f.useMemo)((()=>function(e){let t=Ii.get(e);return t||(t=new er(e),Ii.set(e,t)),t}(e)),[e]),r=(0,f.useMemo)((()=>new tr(t,n)),[t,n]);return(0,f.useCallback)(((e,t)=>r.format(e,t)),[r])}function Ni(e){let t=(0,f.useRef)(null);e&&t.current&&function(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0}(e,t.current)&&(e=t.current),t.current=e;let{locale:n}=Pi();return(0,f.useMemo)((()=>new ai(n,e)),[n,e])}function Ri(e={}){let{locale:t}=Pi();return(0,f.useMemo)((()=>new gi(t,e)),[t,e])}mi({},"useDateFormatter",(()=>Ni)),mi({},"useNumberFormatter",(()=>Ri)),mi({},"useCollator",(()=>Di));let Li=new Map;function Di(e){let{locale:t}=Pi(),n=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(Li.has(n))return Li.get(n);let r=new Intl.Collator(t,e);return Li.set(n,r),r}function zi(e){let t=Di({usage:"search",...e});return{startsWith:(e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(0,n.length),n)),endsWith:(e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(-n.length),n)),contains(e,n){if(0===n.length)return!0;e=e.normalize("NFC");let r=0,o=(n=n.normalize("NFC")).length;for(;r+o<=e.length;r++){let i=e.slice(r,r+o);if(0===t.compare(n,i))return!0}return!1}}}function Ai(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}mi({},"useFilter",(()=>zi));var Ki={};Ai(Ki,"SSRProvider",(()=>_i)),Ai(Ki,"useSSRSafeId",(()=>Wi)),Ai(Ki,"useIsSSR",(()=>Bi));const Oi={prefix:String(Math.round(1e10*Math.random())),current:0},ji=g().createContext(Oi);function _i(e){let t=(0,f.useContext)(ji),n=(0,f.useMemo)((()=>({prefix:t===Oi?"":`${t.prefix}-${++t.current}`,current:0})),[t]);return g().createElement(ji.Provider,{value:n},e.children)}let Fi=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function Wi(e){let t=(0,f.useContext)(ji);return t!==Oi||Fi||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),(0,f.useMemo)((()=>e||`react-aria${t.prefix}-${++t.current}`),[e])}function Bi(){let e=(0,f.useContext)(ji)!==Oi,[t,n]=(0,f.useState)(e);return"undefined"!=typeof window&&e&&(0,f.useLayoutEffect)((()=>{n(!1)}),[]),t}const Vi=(e,t)=>(e.defaultProps=t,e);function Hi(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Hi(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ui(...e){for(var t,n,r=0,o="";r<e.length;)(t=e[r++])&&(n=Hi(t))&&(o&&(o+=" "),o+=n);return o}const Gi=(e,t)=>{if(!document||!e)return"";let n=getComputedStyle(document.documentElement);const r=`--${be.prefix}-${e}-${t}`,o=n.getPropertyValue(r);return o&&o.includes("var")&&Gi(e,o),o},Yi=e=>{var t;const n=(null==e||null==(t=e.getAttribute("style"))?void 0:t.split(";").map((e=>e.trim())).filter((e=>e.includes("color-scheme"))))||[],r=n.length>0?n[0].replace("color-scheme: ","").replace(";",""):"";return(null==e?void 0:e.getAttribute("data-theme"))||r},Xi=e=>"string"==typeof e&&null!=e&&e.includes("-theme")?null==e?void 0:e.replace("-theme",""):e,Ji=e=>{var t,n;if(!document)return;const r=document.documentElement,o=(null==r||null==(t=r.getAttribute("class"))?void 0:t.split(" ").filter((e=>!e.includes("theme")&&!e.includes("light")&&!e.includes("dark"))))||[],i=(null==r||null==(n=r.getAttribute("style"))?void 0:n.split(";").filter((e=>!e.includes("color-scheme")&&e.length)).map((e=>`${e};`)))||[];null==r||r.setAttribute("class",Ui(o,`${Xi(e)}-theme`)),null==r||r.setAttribute("style",Ui(i,`color-scheme: ${e};`))},qi=Vi((({theme:e,disableBaseline:t,children:n})=>{const{isBrowser:r}=Ke(),[o,i]=(0,f.useState)(De.type),a=e=>{i((t=>t!==e?e:t))},s=e=>{const t=Yi(e);t&&a(t)},l=(0,f.useMemo)((()=>{const e=r?(()=>{const e=[...Object.keys(be.theme.colors),...Object.keys(ye.colors)],t=Object.keys(ye.shadows);return{colors:e.reduce(((e,t)=>{const n=Gi("colors",t);return n&&(e[t]={prefix:be.prefix,scale:"colors",token:t,value:n}),e}),{}),shadows:t.reduce(((e,t)=>{const n=Gi("shadows",t);return n&&(e[t]={prefix:be.prefix,scale:"shadows",token:t,value:n}),e}),{})}})():{},t=ve(tt(n=De.theme)?n instanceof Array?[...n]:{...n}:n,e);var n;const i=Xi(o);return{theme:t,type:i,isDark:"dark"===i}}),[o,r]);return(0,f.useEffect)((()=>{var e,t,n;s(null==(e=document)?void 0:e.documentElement);const r=new MutationObserver((e=>{var t;if(e&&e.length>0&&"BODY"===(null==(t=e[0])?void 0:t.target.nodeName)){var n,r,o;const e=null==(n=document)||null==(r=n.body)||null==(o=r.dataset)?void 0:o.theme;e&&a(e)}else{var i;s(null==(i=document)?void 0:i.documentElement)}}));return r.observe(null==(t=document)?void 0:t.documentElement,{attributes:!0,attributeFilter:["data-theme","style"]}),r.observe(null==(n=document)?void 0:n.body,{attributes:!0,attributeFilter:["data-theme","style"]}),()=>r.disconnect()}),[]),(0,f.useEffect)((()=>{r&&e&&null!=e&&e.className&&(Ji(e.className),a(Xi(e.className)))}),[r,e]),(0,st.jsx)(_i,{children:(0,st.jsxs)(ze.Provider,{value:l,children:[!t&&(0,st.jsx)(dt,{}),n]})})}),{disableBaseline:!1}),Zi=Se("span",{dflex:"center",position:"relative",zIndex:"$1",boxSizing:"border-box",overflow:"hidden",verticalAlign:"top",cursor:"auto",transition:"$default","&:first-child":{margin:0},"&:hover .nextui-avatar-bg":{boxShadow:" inset 0 0 40px 0 rgb(0 0 0 / 14%)"},".nextui-avatar-img":{opacity:0,zIndex:"$3",display:"flex",bg:"$background",transition:"transform 250ms ease 0ms, opacity 200ms ease-in 0ms",width:"100%",height:"100%",objectFit:"cover"},'&[data-state="ready"] .nextui-avatar-img':{opacity:1},".nextui-avatar-bg":{position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:"$2",transition:"$default",size:"100%"},".nextui-avatar-icon":{display:"flex",position:"absolute",left:"50%",top:"50%",ta:"center",zIndex:"$2",transform:"translate(-50%, -50%)",whiteSpace:"nowrap",us:"none"},".nextui-avatar-text":{position:"absolute",zIndex:"$2",left:"50%",top:"50%",ta:"center",transform:"translate(-50%, -50%) scale(0.65)",whiteSpace:"nowrap",us:"none"},"@motion":{transition:"none",".nextui-avatar-bg, .nextui-avatar-img":{transition:"none"}},variants:{color:{default:{".nextui-avatar-bg":{bg:"$accents2"}},primary:{".nextui-avatar-bg":{bg:"$primary"},".nextui-avatar-text":{color:"$background"}},secondary:{".nextui-avatar-bg":{bg:"$secondary"},".nextui-avatar-text":{color:"$background"}},success:{".nextui-avatar-bg":{bg:"$success"},".nextui-avatar-text":{color:"$background"}},warning:{".nextui-avatar-bg":{bg:"$warning"},".nextui-avatar-text":{color:"$background"}},error:{".nextui-avatar-bg":{bg:"$error"},".nextui-avatar-text":{color:"$background"}},gradient:{".nextui-avatar-bg":{bg:"$gradient"},".nextui-avatar-text":{color:"$background"}}},textColor:{default:{".nextui-avatar-text":{color:"$text"}},primary:{".nextui-avatar-text":{color:"$primary"}},secondary:{".nextui-avatar-text":{color:"$secondary"}},success:{".nextui-avatar-text":{color:"$success"}},warning:{".nextui-avatar-text":{color:"$warning"}},error:{".nextui-avatar-text":{color:"$error"}}},size:{xs:{$$avatarXs:"$space$9",sizeMin:"$$avatarXs",".nextui-avatar-text":{fontSize:"$xs"}},sm:{$$avatarSm:"$space$11",sizeMin:"$$avatarSm",".nextui-avatar-text":{fontSize:"$base"}},md:{$$avatarMd:"$space$14",sizeMin:"$$avatarMd",".nextui-avatar-text":{fontSize:"$sm"}},lg:{$$avatarLg:"$space$16",sizeMin:"$$avatarLg",".nextui-avatar-text":{fontSize:"$sm"}},xl:{$$avatarXl:"$space$18",sizeMin:"$$avatarXl",".nextui-avatar-text":{fontSize:"$md"}}},borderWeight:{light:{".nextui-avatar-img":{borderWidth:"$light"}},normal:{".nextui-avatar-img":{borderWidth:"$normal"}},bold:{".nextui-avatar-img":{borderWidth:"$normal"}},extrabold:{".nextui-avatar-img":{borderWidth:"$normal"}},black:{".nextui-avatar-img":{borderWidth:"$normal"}}},bordered:{true:{"&:hover:not(.only-text-avatar) .nextui-avatar-bg":{opacity:"0.6"},".nextui-avatar-img":{borderStyle:"solid",borderColor:"$background"}}},stacked:{true:{ml:"-$5"}},pointer:{true:{cursor:"pointer"}},rounded:{true:{borderRadius:"$rounded",".nextui-avatar-img":{borderRadius:"$rounded"}}},squared:{true:{borderRadius:"$squared",".nextui-avatar-img":{borderRadius:"$squared"}}},zoomed:{true:{"&:hover .nextui-avatar-img":{transform:"scale(1.125)"}}}},compoundVariants:[{bordered:!0,borderWeight:"light",css:{padding:"calc($1/2)"}},{bordered:!0,borderWeight:"normal",css:{padding:"$1"}},{bordered:!0,borderWeight:"bold",css:{padding:"calc($2/1.5)"}},{bordered:!0,borderWeight:"extrabold",css:{padding:"$2"}},{bordered:!0,borderWeight:"black",css:{padding:"calc($3/1.5)"}},{rounded:!0,squared:!0,css:{borderRadius:"$squared",".nextui-avatar-img":{borderRadius:"$squared"}}}],defaultVariants:{size:"md",rounded:!0,color:"default",textColor:"default",borderWeight:"normal"}}),Qi=Zi,ea=e=>(null==e?void 0:e.length)<=4?e:null==e?void 0:e.slice(0,3),ta=({src:e,text:t,icon:n,alt:r,className:o,...i})=>{const a=!e,[s,l]=(0,f.useState)(!1),c=(0,f.useRef)(null);(0,f.useEffect)((()=>{var e;(null==c||null==(e=c.current)?void 0:e.complete)&&l(!0)}),[]);const u=(0,f.useMemo)((()=>!s&&e?"loading":"ready"),[e,s]);return(0,st.jsxs)(Qi,{className:Ui({"only-text-avatar":a},o),"data-state":u,...i,children:[(0,st.jsx)("span",{className:"nextui-avatar-bg"}),!a&&(0,st.jsx)("img",{ref:c,className:Ui("nextui-avatar-img",`nextui-avatar--${u}`,{"nextui-avatar-ready":s}),src:e,alt:r,"data-state":u,onLoad:()=>l(!0)}),a&&!n&&t&&(0,st.jsx)("span",{className:"nextui-avatar-text",children:ea(t)}),n&&(0,st.jsx)("span",{className:"nextui-avatar-icon",children:n})]})};ta.toString=()=>".nextui-avatar";const na=ta,ra=Se("span",{fontSize:"$xs",display:"inline-flex",alignItems:"center",marginLeft:"$3",color:"$text"}),oa=Se("div",{dflex:"center",height:"auto",width:"max-content","@motion":{transition:"none"},[`& ${Qi}`]:{marginLeft:"-$space$5",transition:"$default",".only-text-avatar":{boxShadow:"$xs"}},".only-text-avatar":{boxShadow:"$xs"},variants:{animated:{true:{[`& ${Qi}:hover`]:{transform:"translate(-$space$5)"}}}},defaultVariants:{animated:!0}}),ia=oa,aa=({count:e,children:t,...n})=>(0,st.jsxs)(ia,{...n,children:[t,e&&(0,st.jsxs)(ra,{className:"nextui-avatar-group-count",children:["+",e]})]});aa.toString=()=>".nextui-avatar-group";const sa=aa;na.Group=sa;const la=na;function ca(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var ua={};ca(ua,"SSRProvider",(()=>ha)),ca(ua,"useSSRSafeId",(()=>ga)),ca(ua,"useIsSSR",(()=>ma));const da={prefix:String(Math.round(1e10*Math.random())),current:0},pa=g().createContext(da);function ha(e){let t=(0,f.useContext)(pa),n=(0,f.useMemo)((()=>({prefix:t===da?"":`${t.prefix}-${++t.current}`,current:0})),[t]);return g().createElement(pa.Provider,{value:n},e.children)}let fa=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function ga(e){let t=(0,f.useContext)(pa);return t!==da||fa||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),(0,f.useMemo)((()=>e||`react-aria${t.prefix}-${++t.current}`),[e])}function ma(){let e=(0,f.useContext)(pa)!==da,[t,n]=(0,f.useState)(e);return"undefined"!=typeof window&&e&&(0,f.useLayoutEffect)((()=>{n(!1)}),[]),t}function ba(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ba(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ya(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ba(e))&&(r&&(r+=" "),r+=t);return r}function $a(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function va(e,t,n){let[r,o]=(0,f.useState)(e||t),i=(0,f.useRef)(void 0!==e),a=i.current,s=void 0!==e,l=(0,f.useRef)(r);a!==s&&console.warn(`WARN: A component changed from ${a?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s;let c=(0,f.useCallback)(((e,...t)=>{let r=(e,...t)=>{n&&(Object.is(l.current,e)||n(e,...t)),s||(l.current=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o(((n,...o)=>{let i=e(s?l.current:n,...o);return r(i,...t),s?n:i}))):(s||o(e),r(e,...t))}),[s,n]);return s?l.current=e:e=r,[e,c]}$a({},"useControlledState",(()=>va));var xa={};function wa(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Sa(e,t,n,r){let o=(e-(isNaN(t)?0:t))%r,i=2*Math.abs(o)>=r?e+Math.sign(o)*(r-Math.abs(o)):e-o;isNaN(t)?!isNaN(n)&&i>n&&(i=Math.floor(n/r)*r):i<t?i=t:!isNaN(n)&&i>n&&(i=t+Math.floor((n-t)/r)*r);let a=r.toString(),s=a.indexOf("."),l=s>=0?a.length-s:0;if(l>0){let e=Math.pow(10,l);i=Math.round(i*e)/e}return i}function Ca(e,t,n=10){const r=Math.pow(n,t);return Math.round(e*r)/r}function ka(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}$a(xa,"clamp",(()=>wa)),$a(xa,"snapValueToStep",(()=>Sa)),$a(xa,"toFixedNumber",(()=>Ca));var Ea={};ka(Ea,"useId",(()=>Ia)),ka(Ea,"mergeIds",(()=>Ma)),ka(Ea,"useSlotId",(()=>Na)),ka({},"useLayoutEffect",(()=>Ta));const Ta="undefined"!=typeof window?g().useLayoutEffect:()=>{};let Pa=new Map;function Ia(e){let t=(0,f.useRef)(!0);t.current=!0;let[n,r]=(0,f.useState)(e),o=(0,f.useRef)(null),i=ga(n),a=e=>{t.current?o.current=e:r(e)};return Pa.set(i,a),Ta((()=>{t.current=!1}),[a]),Ta((()=>{let e=i;return()=>{Pa.delete(e)}}),[i]),(0,f.useEffect)((()=>{let e=o.current;e&&(r(e),o.current=null)}),[r,a]),i}function Ma(e,t){if(e===t)return e;let n=Pa.get(e);if(n)return n(t),t;let r=Pa.get(t);return r?(r(e),e):t}function Na(e=[]){let t=Ia(),[n,r]=vs(t),o=(0,f.useCallback)((()=>{r((function*(){yield t,yield document.getElementById(t)?t:null}))}),[t,r]);return Ta(o,[t,o,...e]),n}function Ra(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function La(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],o=r[e];"function"==typeof n&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Ra(n,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof o?"id"===e&&n&&o?t.id=Ma(n,o):t[e]=void 0!==o?o:n:t[e]=ya(n,o)}}return t}ka({},"chain",(()=>Ra)),ka({},"mergeProps",(()=>La)),ka({},"filterDOMProps",(()=>Ka));const Da=new Set(["id"]),za=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Aa=/^(data-.*)$/;function Ka(e,t={}){let{labelable:n,propNames:r}=t,o={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Da.has(t)||n&&za.has(t)||(null==r?void 0:r.has(t))||Aa.test(t))&&(o[t]=e[t]);return o}function Oa(e){if(function(){if(null==ja){ja=!1;try{document.createElement("div").focus({get preventScroll(){return ja=!0,!0}})}catch(e){}}return ja}())e.focus({preventScroll:!0});else{let t=function(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}ka({},"focusWithoutScrolling",(()=>Oa));let ja=null;function _a(e,t,n="horizontal"){let r=e.getBoundingClientRect();return t?"horizontal"===n?r.right:r.bottom:"horizontal"===n?r.left:r.top}ka({},"getOffset",(()=>_a));var Fa={};ka(Fa,"clamp",(()=>wa)),ka(Fa,"snapValueToStep",(()=>Sa)),ka({},"runAfterTransition",(()=>Ha));let Wa=new Map,Ba=new Set;function Va(){if("undefined"==typeof window)return;let e=t=>{let n=Wa.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),Wa.delete(t.target)),0===Wa.size)){for(let e of Ba)e();Ba.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=Wa.get(t.target);n||(n=new Set,Wa.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function Ha(e){requestAnimationFrame((()=>{0===Wa.size?e():Ba.add(e)}))}"undefined"!=typeof document&&("loading"!==document.readyState?Va():document.addEventListener("DOMContentLoaded",Va)),ka({},"useDrag1D",(()=>Ga));const Ua=[];function Ga(e){console.warn("useDrag1D is deprecated, please use `useMove` instead https://react-spectrum.adobe.com/react-aria/useMove.html");let{containerRef:t,reverse:n,orientation:r,onHover:o,onDrag:i,onPositionChange:a,onIncrement:s,onDecrement:l,onIncrementToMax:c,onDecrementToMin:u,onCollapseToggle:d}=e,p=e=>{let o=_a(t.current,n,r),i=(e=>"horizontal"===r?e.clientX:e.clientY)(e);return n?o-i:i-o},h=(0,f.useRef)(!1),g=(0,f.useRef)(0),m=(0,f.useRef)({onPositionChange:a,onDrag:i});m.current.onDrag=i,m.current.onPositionChange=a;let b=e=>{e.preventDefault();let t=p(e);h.current||(h.current=!0,m.current.onDrag&&m.current.onDrag(!0),m.current.onPositionChange&&m.current.onPositionChange(t)),g.current!==t&&(g.current=t,a&&a(t))},y=e=>{const t=e.target;h.current=!1;let n=p(e);m.current.onDrag&&m.current.onDrag(!1),m.current.onPositionChange&&m.current.onPositionChange(n),Ua.splice(Ua.indexOf(t),1),window.removeEventListener("mouseup",y,!1),window.removeEventListener("mousemove",b,!1)};return{onMouseDown:e=>{const t=e.currentTarget;Ua.some((e=>t.contains(e)))||(Ua.push(t),window.addEventListener("mousemove",b,!1),window.addEventListener("mouseup",y,!1))},onMouseEnter:()=>{o&&o(!0)},onMouseOut:()=>{o&&o(!1)},onKeyDown:e=>{switch(e.key){case"Left":case"ArrowLeft":"horizontal"===r&&(e.preventDefault(),l&&!n?l():s&&n&&s());break;case"Up":case"ArrowUp":"vertical"===r&&(e.preventDefault(),l&&!n?l():s&&n&&s());break;case"Right":case"ArrowRight":"horizontal"===r&&(e.preventDefault(),s&&!n?s():l&&n&&l());break;case"Down":case"ArrowDown":"vertical"===r&&(e.preventDefault(),s&&!n?s():l&&n&&l());break;case"Home":e.preventDefault(),u&&u();break;case"End":e.preventDefault(),c&&c();break;case"Enter":e.preventDefault(),d&&d()}}}}function Ya(){let e=(0,f.useRef)(new Map),t=(0,f.useCallback)(((t,n,r,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,r,o)}),[]),n=(0,f.useCallback)(((t,n,r,o)=>{var i;let a=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(n,a,o),e.current.delete(r)}),[]),r=(0,f.useCallback)((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return(0,f.useEffect)((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Xa(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;if(n=Ia(n),o&&r){let e=new Set([...o.trim().split(/\s+/),n]);o=[...e].join(" ")}else o&&(o=o.trim().split(/\s+/).join(" "));return r||o||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function Ja(e){const t=(0,f.useRef)();return Ta((()=>{e&&("function"==typeof e?e(t.current):e.current=t.current)}),[e]),t}function qa(e,t){const n=(0,f.useRef)(!0);(0,f.useEffect)((()=>{n.current?n.current=!1:e()}),t)}function Za(e){const{ref:t,onResize:n}=e;(0,f.useEffect)((()=>{let e=null==t?void 0:t.current;if(e){if(void 0===window.ResizeObserver)return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)};{const t=new window.ResizeObserver((e=>{e.length&&n()}));return t.observe(e),()=>{e&&t.unobserve(e)}}}}),[n,t])}function Qa(e,t){Ta((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}function es(e){for(;e&&!ts(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function ts(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}ka({},"useGlobalListeners",(()=>Ya)),ka({},"useLabels",(()=>Xa)),ka({},"useObjectRef",(()=>Ja)),ka({},"useUpdateEffect",(()=>qa)),ka({},"useResizeObserver",(()=>Za)),ka({},"useSyncRef",(()=>Qa)),ka({},"getScrollParent",(()=>es)),ka({},"useViewportSize",(()=>rs));let ns="undefined"!=typeof window&&window.visualViewport;function rs(){let[e,t]=(0,f.useState)((()=>os()));return(0,f.useEffect)((()=>{let e=()=>{t((e=>{let t=os();return t.width===e.width&&t.height===e.height?e:t}))};return ns?ns.addEventListener("resize",e):window.addEventListener("resize",e),()=>{ns?ns.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),e}function os(){return{width:(null==ns?void 0:ns.width)||window.innerWidth,height:(null==ns?void 0:ns.height)||window.innerHeight}}ka({},"useDescription",(()=>ss));let is=0;const as=new Map;function ss(e){let[t,n]=(0,f.useState)(null);return Ta((()=>{if(!e)return;let t=as.get(e);if(t)n(t.element.id);else{let r="react-aria-description-"+is++;n(r);let o=document.createElement("div");o.id=r,o.style.display="none",o.textContent=e,document.body.appendChild(o),t={refCount:0,element:o},as.set(e,t)}return t.refCount++,()=>{0==--t.refCount&&(t.element.remove(),as.delete(e))}}),[e]),{"aria-describedby":e?t:void 0}}var ls={};function cs(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function us(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test((window.navigator.userAgentData||window.navigator).platform)}function ds(){return us(/^Mac/i)}function ps(){return us(/^iPhone/i)}function hs(){return us(/^iPad/i)||ds()&&navigator.maxTouchPoints>1}function fs(){return ps()||hs()}function gs(){return ds()||fs()}function ms(){return cs(/AppleWebKit/i)&&!bs()}function bs(){return cs(/Chrome/i)}function ys(){return cs(/Android/i)}function $s(e,t,n,r){let o=(0,f.useRef)(n);o.current=n;let i=null==n;(0,f.useEffect)((()=>{if(i)return;let n=e.current,a=e=>o.current.call(this,e);return n.addEventListener(t,a,r),()=>{n.removeEventListener(t,a,r)}}),[e,t,r,i])}function vs(e){let[t,n]=(0,f.useState)(e),r=(0,f.useRef)(t),o=(0,f.useRef)(null);r.current=t;let i=(0,f.useRef)(null);i.current=()=>{let e=o.current.next();e.done?o.current=null:t===e.value?i.current():n(e.value)},Ta((()=>{o.current&&i.current()}));let a=(0,f.useCallback)((e=>{o.current=e(r.current),i.current()}),[o,i]);return[t,a]}function xs(e,t){let n=ws(e,t,"left"),r=ws(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,l=a+e.offsetWidth,c=s+e.offsetHeight;n<=a?a=n:n+o>l&&(a+=n+o-l),r<=s?s=r:r+i>c&&(s+=r+i-c),e.scrollLeft=a,e.scrollTop=s}function ws(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function Ss(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}ka(ls,"isMac",(()=>ds)),ka(ls,"isIPhone",(()=>ps)),ka(ls,"isIPad",(()=>hs)),ka(ls,"isIOS",(()=>fs)),ka(ls,"isAppleDevice",(()=>gs)),ka(ls,"isWebKit",(()=>ms)),ka(ls,"isChrome",(()=>bs)),ka(ls,"isAndroid",(()=>ys)),ka({},"useEvent",(()=>$s)),ka({},"useValueEffect",(()=>vs)),ka({},"scrollIntoView",(()=>xs)),Ss({},"Pressable",(()=>js)),Ss({},"usePress",(()=>Ns));let Cs="default",ks="",Es=new WeakMap;function Ts(e){fs()?("default"===Cs&&(ks=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),Cs="disabled"):e&&(Es.set(e,e.style.userSelect),e.style.userSelect="none")}function Ps(e){if(fs()){if("disabled"!==Cs)return;Cs="restoring",setTimeout((()=>{Ha((()=>{"restoring"===Cs&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=ks||""),ks="",Cs="default")}))}),300)}else if(e&&Es.has(e)){let t=Es.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),Es.delete(e)}}function Is(e){return!(0!==e.mozInputSource||!e.isTrusted)||0===e.detail&&!e.pointerType}const Ms=g().createContext(null);function Ns(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:a,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:u,ref:d,...p}=function(e){let t=(0,f.useContext)(Ms);if(t){let{register:n,...r}=t;e=La(r,e),n()}return Qa(t,e.ref),e}(e),h=(0,f.useRef)(null);h.current={onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:a,shouldCancelOnPointerExit:c};let[g,m]=(0,f.useState)(!1),b=(0,f.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:y,removeAllGlobalListeners:$}=Ya(),v=(0,f.useMemo)((()=>{let e=b.current,t=(t,n)=>{let{onPressStart:r,onPressChange:o,isDisabled:i}=h.current;i||e.didFirePressStart||(r&&r({type:"pressstart",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),o&&o(!0),e.didFirePressStart=!0,m(!0))},n=(t,n,r=!0)=>{let{onPressEnd:o,onPressChange:i,onPress:a,isDisabled:s}=h.current;e.didFirePressStart&&(e.ignoreClickAfterPress=!0,e.didFirePressStart=!1,o&&o({type:"pressend",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),i&&i(!1),m(!1),a&&r&&!s&&a({type:"press",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}))},r=(e,t)=>{let{onPressUp:n,isDisabled:r}=h.current;r||n&&n({type:"pressup",pointerType:t,target:e.currentTarget,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})},o=t=>{e.isPressed&&(e.isOverTarget&&n(zs(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,$(),u||Ps(e.target))},i={onKeyDown(n){Ls(n.nativeEvent)&&n.currentTarget.contains(n.target)&&(Os(n.target)&&n.preventDefault(),n.stopPropagation(),e.isPressed||n.repeat||(e.target=n.currentTarget,e.isPressed=!0,t(n,"keyboard"),y(document,"keyup",s,!1)))},onKeyUp(t){Ls(t.nativeEvent)&&!t.repeat&&t.currentTarget.contains(t.target)&&r(zs(e.target,t),"keyboard")},onClick(o){o&&!o.currentTarget.contains(o.target)||o&&0===o.button&&(o.stopPropagation(),a&&o.preventDefault(),e.ignoreClickAfterPress||e.ignoreEmulatedMouseEvents||"virtual"!==e.pointerType&&!Is(o.nativeEvent)||(a||l||Oa(o.currentTarget),t(o,"virtual"),r(o,"virtual"),n(o,"virtual")),e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1)}},s=t=>{if(e.isPressed&&Ls(t)){Os(t.target)&&t.preventDefault(),t.stopPropagation(),e.isPressed=!1;let r=t.target;n(zs(e.target,t),"keyboard",e.target.contains(r)),$(),(e.target.contains(r)&&Rs(e.target)||"link"===e.target.getAttribute("role"))&&e.target.click()}};if("undefined"!=typeof PointerEvent){i.onPointerDown=n=>{var r;0===n.button&&n.currentTarget.contains(n.target)&&(0===(r=n.nativeEvent).width&&0===r.height||1===r.width&&1===r.height&&0===r.pressure&&0===r.detail?e.pointerType="virtual":(Ks(n.currentTarget)&&n.preventDefault(),e.pointerType=n.pointerType,n.stopPropagation(),e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=n.pointerId,e.target=n.currentTarget,a||l||Oa(n.currentTarget),u||Ts(e.target),t(n,e.pointerType),y(document,"pointermove",s,!1),y(document,"pointerup",c,!1),y(document,"pointercancel",d,!1))))},i.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(Ks(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},i.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&As(t,t.currentTarget)&&r(t,e.pointerType||t.pointerType)};let s=r=>{r.pointerId===e.activePointerId&&(As(r,e.target)?e.isOverTarget||(e.isOverTarget=!0,t(zs(e.target,r),e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,n(zs(e.target,r),e.pointerType,!1),h.current.shouldCancelOnPointerExit&&o(r)))},c=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&(As(t,e.target)?n(zs(e.target,t),e.pointerType):e.isOverTarget&&n(zs(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,$(),u||Ps(e.target))},d=e=>{o(e)};i.onDragStart=e=>{e.currentTarget.contains(e.target)&&o(e)}}else{i.onMouseDown=n=>{0===n.button&&n.currentTarget.contains(n.target)&&(Ks(n.currentTarget)&&n.preventDefault(),n.stopPropagation(),e.ignoreEmulatedMouseEvents||(e.isPressed=!0,e.isOverTarget=!0,e.target=n.currentTarget,e.pointerType=Is(n.nativeEvent)?"virtual":"mouse",a||l||Oa(n.currentTarget),t(n,e.pointerType),y(document,"mouseup",s,!1)))},i.onMouseEnter=n=>{n.currentTarget.contains(n.target)&&(n.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!0,t(n,e.pointerType)))},i.onMouseLeave=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!1,n(t,e.pointerType,!1),h.current.shouldCancelOnPointerExit&&o(t)))},i.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||r(t,e.pointerType))};let s=t=>{0===t.button&&(e.isPressed=!1,$(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(As(t,e.target)?n(zs(e.target,t),e.pointerType):e.isOverTarget&&n(zs(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};i.onTouchStart=n=>{if(!n.currentTarget.contains(n.target))return;n.stopPropagation();let r=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(n.nativeEvent);r&&(e.activePointerId=r.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=n.currentTarget,e.pointerType="touch",a||l||Oa(n.currentTarget),u||Ts(e.target),t(n,e.pointerType),y(window,"scroll",c,!0))},i.onTouchMove=r=>{if(!r.currentTarget.contains(r.target))return;if(r.stopPropagation(),!e.isPressed)return;let i=Ds(r.nativeEvent,e.activePointerId);i&&As(i,r.currentTarget)?e.isOverTarget||(e.isOverTarget=!0,t(r,e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,n(r,e.pointerType,!1),h.current.shouldCancelOnPointerExit&&o(r))},i.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(t.stopPropagation(),!e.isPressed)return;let o=Ds(t.nativeEvent,e.activePointerId);o&&As(o,t.currentTarget)?(r(t,e.pointerType),n(t,e.pointerType)):e.isOverTarget&&n(t,e.pointerType,!1),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,u||Ps(e.target),$()},i.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&o(t))};let c=t=>{e.isPressed&&t.target.contains(e.target)&&o({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};i.onDragStart=e=>{e.currentTarget.contains(e.target)&&o(e)}}return i}),[y,a,l,$,u]);return(0,f.useEffect)((()=>()=>{u||Ps(b.current.target)}),[u]),{isPressed:s||g,pressProps:La(p,v)}}function Rs(e){return"A"===e.tagName&&e.hasAttribute("href")}function Ls(e){const{key:t,code:n,target:r}=e,o=r,{tagName:i,isContentEditable:a}=o,s=o.getAttribute("role");return!("Enter"!==t&&" "!==t&&"Spacebar"!==t&&"Space"!==n||"INPUT"===i||"TEXTAREA"===i||!0===a||Rs(o)&&("button"!==s||"Enter"===t)||"link"===s&&"Enter"!==t)}function Ds(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const r=n[e];if(r.identifier===t)return r}return null}function zs(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function As(e,t){let n=t.getBoundingClientRect(),r=function(e){let t=e.width/2||e.radiusX||0,n=e.height/2||e.radiusY||0;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return function(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}(n,r)}function Ks(e){return!e.draggable}function Os(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&"submit"===e.type)}Ms.displayName="PressResponderContext";const js=g().forwardRef((({children:e,...t},n)=>{let r=(0,f.useRef)();n=null!=n?n:r;let{pressProps:o}=Ns({...t,ref:n}),i=g().Children.only(e);return g().cloneElement(i,{ref:n,...La(i.props,o)})}));Ss({},"PressResponder",(()=>_s));const _s=g().forwardRef((({children:e,...t},n)=>{let r=(0,f.useRef)(!1),o=(0,f.useContext)(Ms),i=La(o||{},{...t,ref:n||(null==o?void 0:o.ref),register(){r.current=!0,o&&o.register()}});return Qa(o,n),(0,f.useEffect)((()=>{r.current||console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component.")}),[]),g().createElement(Ms.Provider,{value:i},e)}));function Fs(e){if(e.isDisabled)return{focusProps:{}};let t,n;return(e.onFocus||e.onFocusChange)&&(t=t=>{t.target===t.currentTarget&&(e.onFocus&&e.onFocus(t),e.onFocusChange&&e.onFocusChange(!0))}),(e.onBlur||e.onFocusChange)&&(n=t=>{t.target===t.currentTarget&&(e.onBlur&&e.onBlur(t),e.onFocusChange&&e.onFocusChange(!1))}),{focusProps:{onFocus:t,onBlur:n}}}Ss({},"useFocus",(()=>Fs));var Ws={};Ss(Ws,"isFocusVisible",(()=>nl)),Ss(Ws,"getInteractionModality",(()=>rl)),Ss(Ws,"setInteractionModality",(()=>ol)),Ss(Ws,"useInteractionModality",(()=>il)),Ss(Ws,"useFocusVisible",(()=>al)),Ss(Ws,"useFocusVisibleListener",(()=>sl));let Bs=null,Vs=new Set,Hs=!1,Us=!1,Gs=!1;const Ys={Tab:!0,Escape:!0};function Xs(e,t){for(let n of Vs)n(e,t)}function Js(e){Us=!0,function(e){return!(e.metaKey||!ds()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Bs="keyboard",Xs("keyboard",e))}function qs(e){Bs="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Us=!0,Xs("pointer",e))}function Zs(e){Is(e)&&(Us=!0,Bs="virtual")}function Qs(e){e.target!==window&&e.target!==document&&(Us||Gs||(Bs="virtual",Xs("virtual",e)),Us=!1,Gs=!1)}function el(){Us=!1,Gs=!0}function tl(){if("undefined"==typeof window||Hs)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Us=!0,e.apply(this,arguments)},document.addEventListener("keydown",Js,!0),document.addEventListener("keyup",Js,!0),document.addEventListener("click",Zs,!0),window.addEventListener("focus",Qs,!0),window.addEventListener("blur",el,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",qs,!0),document.addEventListener("pointermove",qs,!0),document.addEventListener("pointerup",qs,!0)):(document.addEventListener("mousedown",qs,!0),document.addEventListener("mousemove",qs,!0),document.addEventListener("mouseup",qs,!0)),Hs=!0}function nl(){return"pointer"!==Bs}function rl(){return Bs}function ol(e){Bs=e,Xs(e,null)}function il(){tl();let[e,t]=(0,f.useState)(Bs);return(0,f.useEffect)((()=>{let e=()=>{t(Bs)};return Vs.add(e),()=>{Vs.delete(e)}}),[]),e}function al(e={}){let{isTextInput:t,autoFocus:n}=e,[r,o]=(0,f.useState)(n||nl());return sl((e=>{o(e)}),[t],{isTextInput:t}),{isFocusVisible:r}}function sl(e,t,n){tl(),(0,f.useEffect)((()=>{let t=(t,r)=>{(function(e,t,n){return!(e&&"keyboard"===t&&n instanceof KeyboardEvent&&!Ys[n.key])})(null==n?void 0:n.isTextInput,t,r)&&e(nl())};return Vs.add(t),()=>{Vs.delete(t)}}),t)}function ll(e){let t=(0,f.useRef)({isFocusWithin:!1}).current;return e.isDisabled?{focusWithinProps:{}}:{focusWithinProps:{onFocus:n=>{t.isFocusWithin||(e.onFocusWithin&&e.onFocusWithin(n),e.onFocusWithinChange&&e.onFocusWithinChange(!0),t.isFocusWithin=!0)},onBlur:n=>{t.isFocusWithin&&!n.currentTarget.contains(n.relatedTarget)&&(e.onBlurWithin&&e.onBlurWithin(n),e.onFocusWithinChange&&e.onFocusWithinChange(!1),t.isFocusWithin=!1)}}}}"undefined"!=typeof document&&("loading"!==document.readyState?tl():document.addEventListener("DOMContentLoaded",tl)),Ss({},"useFocusWithin",(()=>ll)),Ss({},"useHover",(()=>fl));let cl=!1,ul=0;function dl(){cl=!0,setTimeout((()=>{cl=!1}),50)}function pl(e){"touch"===e.pointerType&&dl()}function hl(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",pl):document.addEventListener("touchend",dl),ul++,()=>{ul--,ul>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",pl):document.removeEventListener("touchend",dl))}}function fl(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,a]=(0,f.useState)(!1),s=(0,f.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,f.useEffect)(hl,[]);let{hoverProps:l,triggerHoverEnd:c}=(0,f.useMemo)((()=>{let e=(e,r)=>{if(s.pointerType=r,o||"touch"===r||s.isHovered||!e.currentTarget.contains(e.target))return;s.isHovered=!0;let i=e.currentTarget;s.target=i,t&&t({type:"hoverstart",target:i,pointerType:r}),n&&n(!0),a(!0)},i=(e,t)=>{if(s.pointerType="",s.target=null,"touch"===t||!s.isHovered)return;s.isHovered=!1;let o=e.currentTarget;r&&r({type:"hoverend",target:o,pointerType:t}),n&&n(!1),a(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=t=>{cl&&"mouse"===t.pointerType||e(t,t.pointerType)},l.onPointerLeave=e=>{!o&&e.currentTarget.contains(e.target)&&i(e,e.pointerType)}):(l.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=t=>{s.ignoreEmulatedMouseEvents||cl||e(t,"mouse"),s.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!o&&e.currentTarget.contains(e.target)&&i(e,"mouse")}),{hoverProps:l,triggerHoverEnd:i}}),[t,n,r,o,s]);return(0,f.useEffect)((()=>{o&&c({currentTarget:s.target},s.pointerType)}),[o]),{hoverProps:l,isHovered:i}}function gl(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=(0,f.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:n,onInteractOutsideStart:o}).current;i.onInteractOutside=n,i.onInteractOutsideStart=o,(0,f.useEffect)((()=>{if(r)return;let e=e=>{ml(e,t)&&i.onInteractOutside&&(i.onInteractOutsideStart&&i.onInteractOutsideStart(e),i.isPointerDown=!0)};if("undefined"!=typeof PointerEvent){let n=e=>{i.isPointerDown&&i.onInteractOutside&&ml(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))};return document.addEventListener("pointerdown",e,!0),document.addEventListener("pointerup",n,!0),()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("pointerup",n,!0)}}{let n=e=>{i.ignoreEmulatedMouseEvents?i.ignoreEmulatedMouseEvents=!1:i.isPointerDown&&i.onInteractOutside&&ml(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))},r=e=>{i.ignoreEmulatedMouseEvents=!0,i.onInteractOutside&&i.isPointerDown&&ml(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))};return document.addEventListener("mousedown",e,!0),document.addEventListener("mouseup",n,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("touchend",r,!0),()=>{document.removeEventListener("mousedown",e,!0),document.removeEventListener("mouseup",n,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("touchend",r,!0)}}}),[t,i,r])}function ml(e,t){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return!1}return t.current&&!t.current.contains(e.target)}function bl(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function yl(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:bl(e.onKeyDown),onKeyUp:bl(e.onKeyUp)}}}function $l(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,o=(0,f.useRef)({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:a}=Ya(),s=(0,f.useMemo)((()=>{let e={},s=()=>{Ts(),o.current.didMove=!1},l=(e,r,i,a)=>{0===i&&0===a||(o.current.didMove||(o.current.didMove=!0,null==t||t({type:"movestart",pointerType:r,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),n({type:"move",pointerType:r,deltaX:i,deltaY:a,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))},c=(e,t)=>{Ps(),o.current.didMove&&(null==r||r({type:"moveend",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))};if("undefined"==typeof PointerEvent){let t=e=>{0===e.button&&(l(e,"mouse",e.pageX-o.current.lastPosition.pageX,e.pageY-o.current.lastPosition.pageY),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY})},n=e=>{0===e.button&&(c(e,"mouse"),a(window,"mousemove",t,!1),a(window,"mouseup",n,!1))};e.onMouseDown=e=>{0===e.button&&(s(),e.stopPropagation(),e.preventDefault(),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY},i(window,"mousemove",t,!1),i(window,"mouseup",n,!1))};let r=e=>{let t=[...e.changedTouches].findIndex((({identifier:e})=>e===o.current.id));if(t>=0){let{pageX:n,pageY:r}=e.changedTouches[t];l(e,"touch",n-o.current.lastPosition.pageX,r-o.current.lastPosition.pageY),o.current.lastPosition={pageX:n,pageY:r}}},u=e=>{[...e.changedTouches].findIndex((({identifier:e})=>e===o.current.id))>=0&&(c(e,"touch"),o.current.id=null,a(window,"touchmove",r),a(window,"touchend",u),a(window,"touchcancel",u))};e.onTouchStart=e=>{if(0===e.changedTouches.length||null!=o.current.id)return;let{pageX:t,pageY:n,identifier:a}=e.changedTouches[0];s(),e.stopPropagation(),e.preventDefault(),o.current.lastPosition={pageX:t,pageY:n},o.current.id=a,i(window,"touchmove",r,!1),i(window,"touchend",u,!1),i(window,"touchcancel",u,!1)}}else{let t=e=>{if(e.pointerId===o.current.id){let t=e.pointerType||"mouse";l(e,t,e.pageX-o.current.lastPosition.pageX,e.pageY-o.current.lastPosition.pageY),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}},n=e=>{if(e.pointerId===o.current.id){let r=e.pointerType||"mouse";c(e,r),o.current.id=null,a(window,"pointermove",t,!1),a(window,"pointerup",n,!1),a(window,"pointercancel",n,!1)}};e.onPointerDown=e=>{0===e.button&&null==o.current.id&&(s(),e.stopPropagation(),e.preventDefault(),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY},o.current.id=e.pointerId,i(window,"pointermove",t,!1),i(window,"pointerup",n,!1),i(window,"pointercancel",n,!1))}}let u=(e,t,n)=>{s(),l(e,"keyboard",t,n),c(e,"keyboard")};return e.onKeyDown=e=>{switch(e.key){case"Left":case"ArrowLeft":e.preventDefault(),e.stopPropagation(),u(e,-1,0);break;case"Right":case"ArrowRight":e.preventDefault(),e.stopPropagation(),u(e,1,0);break;case"Up":case"ArrowUp":e.preventDefault(),e.stopPropagation(),u(e,0,-1);break;case"Down":case"ArrowDown":e.preventDefault(),e.stopPropagation(),u(e,0,1)}},e}),[o,t,n,r,i,a]);return{moveProps:s}}function vl(e,t){let{onScroll:n,isDisabled:r}=e,o=(0,f.useCallback)((e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))}),[n]);$s(t,"wheel",r?null:o)}Ss({},"useInteractOutside",(()=>gl)),Ss({},"useKeyboard",(()=>yl)),Ss({},"useMove",(()=>$l)),Ss({},"useScrollWheel",(()=>vl)),Ss({},"useLongPress",(()=>wl));const xl=500;function wl(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=xl,accessibilityDescription:a}=e;const s=(0,f.useRef)(null);let{addGlobalListener:l,removeGlobalListener:c}=Ya(),{pressProps:u}=Ns({isDisabled:t,onPressStart(e){if(("mouse"===e.pointerType||"touch"===e.pointerType)&&(n&&n({...e,type:"longpressstart"}),s.current=setTimeout((()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...e,type:"longpress"}),s.current=null}),i),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};l(e.target,"contextmenu",t,{once:!0}),l(window,"pointerup",(()=>{setTimeout((()=>{c(e.target,"contextmenu",t)}),30)}),{once:!0})}},onPressEnd(e){s.current&&clearTimeout(s.current),!r||"mouse"!==e.pointerType&&"touch"!==e.pointerType||r({...e,type:"longpressend"})}});return{longPressProps:La(u,ss(o&&!t?a:null))}}function Sl(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Cl={};function kl(e){if("virtual"===rl()){let t=document.activeElement;Ha((()=>{document.activeElement===t&&document.contains(e)&&Oa(e)}))}else Oa(e)}function El(e,t){return"#comment"!==e.nodeName&&function(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,r="none"!==t&&"hidden"!==n&&"collapse"!==n;if(r){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:o}=t(e);r="none"!==n&&"hidden"!==o&&"collapse"!==o}return r}(e)&&function(e,t){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||El(e.parentElement,e))}Sl(Cl,"FocusScope",(()=>Ml)),Sl(Cl,"useFocusManager",(()=>Nl)),Sl(Cl,"getFocusableTreeWalker",(()=>Fl)),Sl(Cl,"createFocusManager",(()=>Wl)),Sl({},"focusSafely",(()=>kl));const Tl=g().createContext(null);let Pl=null,Il=new Map;function Ml(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=(0,f.useRef)(),a=(0,f.useRef)(),s=(0,f.useRef)([]),l=(0,f.useContext)(Tl)?.scopeRef;Ta((()=>{let e=i.current.nextSibling,t=[];for(;e&&e!==a.current;)t.push(e),e=e.nextSibling;s.current=t}),[t,l]),Ta((()=>(Il.set(s,l),()=>{s!==Pl&&!Ol(s,Pl)||l&&!Il.has(l)||(Pl=l),Il.delete(s)})),[s,l]),function(e,t){let n=(0,f.useRef)(),r=(0,f.useRef)(null);Ta((()=>{let o=e.current;if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||e!==Pl)return;let n=document.activeElement,r=e.current;if(!Al(n,r))return;let o=Fl(zl(r),{tabbable:!0},r);o.currentNode=n;let i=t.shiftKey?o.previousNode():o.nextNode();i||(o.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,i=t.shiftKey?o.previousNode():o.nextNode()),t.preventDefault(),i&&jl(i,!0)},a=t=>{!Pl||Ol(Pl,e)?(Pl=e,n.current=t.target):e!==Pl||Kl(t.target,e)?e===Pl&&(n.current=t.target):n.current?n.current.focus():Pl&&_l(Pl.current)},s=t=>{r.current=requestAnimationFrame((()=>{e!==Pl||Kl(document.activeElement,e)||(Pl=e,n.current=t.target,n.current.focus())}))};return document.addEventListener("keydown",i,!1),document.addEventListener("focusin",a,!1),o.forEach((e=>e.addEventListener("focusin",a,!1))),o.forEach((e=>e.addEventListener("focusout",s,!1))),()=>{document.removeEventListener("keydown",i,!1),document.removeEventListener("focusin",a,!1),o.forEach((e=>e.removeEventListener("focusin",a,!1))),o.forEach((e=>e.removeEventListener("focusout",s,!1)))}}),[e,t]),(0,f.useEffect)((()=>()=>cancelAnimationFrame(r.current)),[r])}(s,n),function(e,t,n){const r=(0,f.useRef)("undefined"!=typeof document?document.activeElement:null);Ta((()=>{let o=r.current;if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey)return;let n=document.activeElement;if(!Al(n,e.current))return;let r=Fl(document.body,{tabbable:!0});r.currentNode=n;let i=t.shiftKey?r.previousNode():r.nextNode();if(document.body.contains(o)&&o!==document.body||(o=null),(!i||!Al(i,e.current))&&o){r.currentNode=o;do{i=t.shiftKey?r.previousNode():r.nextNode()}while(Al(i,e.current));t.preventDefault(),t.stopPropagation(),i?jl(i,!0):function(e){for(let t of Il.keys())if(Al(e,t.current))return!0;return!1}(o)?jl(o,!0):n.blur()}};return n||document.addEventListener("keydown",i,!0),()=>{n||document.removeEventListener("keydown",i,!0),t&&o&&Al(document.activeElement,e.current)&&requestAnimationFrame((()=>{document.body.contains(o)&&jl(o)}))}}),[e,t,n])}(s,r,n),function(e,t){const n=g().useRef(t);(0,f.useEffect)((()=>{n.current&&(Pl=e,Al(document.activeElement,Pl.current)||_l(e.current)),n.current=!1}),[])}(s,o);let c=function(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,s=n[0].previousElementSibling,l=Fl(zl(n),{tabbable:o},n);l.currentNode=Al(a,n)?a:s;let c=l.nextNode();return!c&&i&&(l.currentNode=s,c=l.nextNode()),c&&jl(c,!0),c},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,s=n[n.length-1].nextElementSibling,l=Fl(zl(n),{tabbable:o},n);l.currentNode=Al(a,n)?a:s;let c=l.previousNode();return!c&&i&&(l.currentNode=s,c=l.previousNode()),c&&jl(c,!0),c},focusFirst(t={}){let n=e.current,{tabbable:r}=t,o=Fl(zl(n),{tabbable:r},n);o.currentNode=n[0].previousElementSibling;let i=o.nextNode();return i&&jl(i,!0),i},focusLast(t={}){let n=e.current,{tabbable:r}=t,o=Fl(zl(n),{tabbable:r},n);o.currentNode=n[n.length-1].nextElementSibling;let i=o.previousNode();return i&&jl(i,!0),i}}}(s);return g().createElement(Tl.Provider,{value:{scopeRef:s,focusManager:c}},g().createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,g().createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function Nl(){return(0,f.useContext)(Tl)?.focusManager}const Rl=["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]"],Ll=Rl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Rl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Dl=Rl.join(':not([hidden]):not([tabindex="-1"]),');function zl(e){return e[0].parentElement}function Al(e,t){return t.some((t=>t.contains(e)))}function Kl(e,t){for(let n of Il.keys())if((n===t||Ol(t,n))&&Al(e,n.current))return!0;return!1}function Ol(e,t){let n=Il.get(t);return!!n&&(n===e||Ol(e,n))}function jl(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{kl(e)}catch(e){}}function _l(e){let t=e[0].previousElementSibling,n=Fl(zl(e),{tabbable:!0},e);n.currentNode=t,jl(n.nextNode())}function Fl(e,t,n){let r=t?.tabbable?Dl:Ll,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>t?.from?.contains(e)?NodeFilter.FILTER_REJECT:e.matches(r)&&El(e)&&(!n||Al(e,n))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});return t?.from&&(o.currentNode=t.from),o}function Wl(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,s=Fl(n,{tabbable:o});n.contains(a)&&(s.currentNode=a);let l=s.nextNode();return!l&&i&&(s.currentNode=n,l=s.nextNode()),l&&jl(l,!0),l},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,s=Fl(n,{tabbable:o});if(!n.contains(a)){let e=Bl(s);return e&&jl(e,!0),e}s.currentNode=a;let l=s.previousNode();return!l&&i&&(s.currentNode=n,l=Bl(s)),l&&jl(l,!0),l},focusFirst(t={}){let n=e.current,{tabbable:r}=t,o=Fl(n,{tabbable:r}).nextNode();return o&&jl(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r}=t,o=Bl(Fl(n,{tabbable:r}));return o&&jl(o,!0),o}}}function Bl(e){let t,n;do{n=e.lastChild(),n&&(t=n)}while(n);return t}function Vl(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=(0,f.useRef)({isFocused:!1,isFocusVisible:t||nl()}).current,[i,a]=(0,f.useState)(!1),[s,l]=(0,f.useState)((()=>o.isFocused&&o.isFocusVisible)),c=()=>l(o.isFocused&&o.isFocusVisible),u=e=>{o.isFocused=e,a(e),c()};sl((e=>{o.isFocusVisible=e,c()}),[],{isTextInput:n});let{focusProps:d}=Fs({isDisabled:r,onFocusChange:u}),{focusWithinProps:p}=ll({isDisabled:!r,onFocusWithinChange:u});return{isFocused:i,isFocusVisible:o.isFocused&&s,focusProps:r?p:d}}function Hl(e){let{children:t,focusClass:n,focusRingClass:r}=e,{isFocused:o,isFocusVisible:i,focusProps:a}=Vl(e),s=g().Children.only(t);return g().cloneElement(s,La(s.props,{...a,className:ya({[n||""]:o,[r||""]:i})}))}Sl({},"FocusRing",(()=>Hl)),Sl({},"useFocusRing",(()=>Vl));var Ul={};Sl(Ul,"FocusableProvider",(()=>Xl)),Sl(Ul,"useFocusable",(()=>Jl));let Gl=g().createContext(null);function Yl(e,t){let{children:n,...r}=e,o={...r,ref:t};return g().createElement(Gl.Provider,{value:o},n)}let Xl=g().forwardRef(Yl);function Jl(e,t){let{focusProps:n}=Fs(e),{keyboardProps:r}=yl(e),o=La(n,r),i=function(e){let t=(0,f.useContext)(Gl)||{};Qa(t,e);let{ref:n,...r}=t;return r}(t),a=e.isDisabled?{}:i,s=(0,f.useRef)(e.autoFocus);return(0,f.useEffect)((()=>{s.current&&t.current&&t.current.focus(),s.current=!1}),[]),{focusableProps:La({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}const ql=Ee({"0%":{opacity:0,transform:"scale(0.25)"},"30%":{opacity:1},"80%":{opacity:.5},"100%":{transform:"scale(28)",opacity:0}}),Zl=Se("div",{position:"absolute",left:0,right:0,top:0,bottom:0,"& svg":{position:"absolute",animation:`350ms linear ${ql}`,animationFillMode:"forwards",width:"$md",height:"$md"}}),Ql=({visible:e,x:t,y:n,color:r,onCompleted:o,className:i,...a})=>{const s=(0,f.useRef)(null),l=Number.isNaN(+n)?0:n-10,c=Number.isNaN(+t)?0:t-10;return(0,f.useEffect)((()=>{if(s.current)return s.current.addEventListener("animationend",o),()=>{s.current&&s.current.removeEventListener("animationend",o)}})),e?(0,st.jsx)(Zl,{ref:s,className:Ui("nextui-drip",i),...a,children:(0,st.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",style:{top:l,left:c},children:(0,st.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,st.jsx)("g",{className:"nextui-drip-filler",fill:r,children:(0,st.jsx)("rect",{width:"100%",height:"100%",rx:"10"})})})})}):null},ec=Vi(g().memo(Ql),{visible:!1,x:0,y:0,className:""}),tc={isButtonGroup:!1,disabled:!1},nc=g().createContext(tc),rc=Se("span",{dflex:"center",position:"absolute",left:"$$buttonPadding",right:"auto",top:"50%",transform:"translateY(-50%)",color:"inherit",zIndex:"$1","& svg":{background:"transparent"},variants:{isAuto:{true:{position:"relative",transform:"none",top:"0%"}},isRight:{true:{right:"$$buttonPadding",left:"auto"}},isSingle:{true:{position:"static",transform:"none",m:0}}},compoundVariants:[{isAuto:!0,isRight:!0,css:{order:2,ml:"$$buttonPadding",right:"0%",left:"0%"}},{isAuto:!0,isRight:!1,css:{order:0,mr:"$$buttonPadding",right:"0%",left:"0%"}},{isAuto:!0,isSingle:!0,css:{m:0}}]}),oc=({children:e,className:t,...n})=>(0,st.jsx)(rc,{className:Ui("nextui-button-icon",t),...n,children:e});oc.toString=()=>".nextui-button-icon";const ic=Vi(g().memo(oc),{className:""}),ac=(e=!1,t)=>{const[n,r]=(0,f.useState)(e),[o,i]=(0,f.useState)(0),[a,s]=(0,f.useState)(0);return{visible:n,x:o,y:a,onClick:e=>{if(!t.current)return;const n=t.current.getBoundingClientRect();r(!0),i(e.clientX-n.left),s(e.clientY-n.top)},onCompleted:()=>{r(!1),i(0),s(0)}}},sc=Se("button",{dflex:"center",appearance:"none",boxSizing:" border-box",fontWeight:"$medium",us:"none",lineHeight:"$sm",ta:"center",whiteSpace:"nowrap",transition:"$default",position:"relative",overflow:"hidden",border:"none",cursor:"pointer",pe:"auto",p:0,"&:hover":{opacity:.85},"@motion":{transition:"none"},".nextui-button-text":{dflex:"center",zIndex:"$2","p, pre, div":{margin:0}},[`& ${Zl}`]:{zIndex:"$1",".nextui-drip-filler":{opacity:.25,fill:"$accents2"}},variants:{bordered:{true:{bg:"transparent",borderStyle:"solid",color:"$text"}},ghost:{true:{"&:hover":{color:"$white"}}},color:{default:{bg:"$primary",color:"$white"},primary:{bg:"$primary",color:"$white"},secondary:{bg:"$secondary",color:"$white"},success:{bg:"$success",color:"$white"},warning:{bg:"$warning",color:"$white"},error:{bg:"$error",color:"$white"},gradient:{bg:"$gradient",color:"$white"}},size:{xs:{$$buttonPadding:"$space$3",px:"$3",height:"$10",lh:"$space$10",width:"auto",minWidth:"$20",fontSize:"$tiny",br:"$xs"},sm:{$$buttonPadding:"$space$5",px:"$5",height:"$12",lh:"$space$14",width:"auto",minWidth:"$36",fontSize:"$xs",br:"$sm"},md:{$$buttonPadding:"$space$7",px:"$7",height:"$14",lh:"$space$14",width:"auto",minWidth:"$48",fontSize:"$xs",br:"$md"},lg:{$$buttonPadding:"$space$9",px:"$9",height:"$15",lh:"$space$15",width:"auto",minWidth:"$60",fontSize:"$base",br:"$base"},xl:{$$buttonPadding:"$space$10",px:"$10",height:"$17",lh:"$space$17",width:"auto",minWidth:"$72",fontSize:"$sm",br:"$xl"}},borderWeight:{light:{bw:"$light"},normal:{bw:"$normal"},bold:{bw:"$bold"},extrabold:{bw:"$extrabold"},black:{bw:"$black"}},flat:{true:{color:"$text"}},light:{true:{bg:"transparent",[`& ${Zl}`]:{".nextui-drip-filler":{opacity:.8,fill:"$accents2"}}}},shadow:{true:{bs:"$sm"}},disabled:{true:{bg:"$accents2",color:"$accents4",cursor:"not-allowed",pe:"auto","&:hover":{opacity:1}}},clickable:{false:{cursor:"default",pe:"none"}},animated:{true:{"&:active":{transform:"scale(0.97)"}},false:{transition:"none"}},auto:{true:{width:"auto",minWidth:"min-content"}},rounded:{true:{br:"$pill"}}},compoundVariants:[{auto:!0,size:"xs",css:{px:"$5",minWidth:"min-content"}},{auto:!0,size:"sm",css:{px:"$8",minWidth:"min-content"}},{auto:!0,size:"md",css:{px:"$9",minWidth:"min-content"}},{auto:!0,size:"lg",css:{px:"$10",minWidth:"min-content"}},{auto:!0,size:"xl",css:{px:"$11",minWidth:"min-content"}},{animated:!0,disabled:!0,css:{"&:active":{transform:"none"}}},{shadow:!0,color:"default",css:{normalShadow:"$primaryShadow"}},{shadow:!0,color:"primary",css:{normalShadow:"$primaryShadow"}},{shadow:!0,color:"secondary",css:{normalShadow:"$secondaryShadow"}},{shadow:!0,color:"warning",css:{normalShadow:"$warningShadow"}},{shadow:!0,color:"success",css:{normalShadow:"$successShadow"}},{shadow:!0,color:"error",css:{normalShadow:"$errorShadow"}},{shadow:!0,color:"gradient",css:{normalShadow:"$primaryShadow"}},{light:!0,color:"default",css:{bg:"transparent",color:"$text"}},{light:!0,color:"primary",css:{bg:"transparent",color:"$primary"}},{light:!0,color:"secondary",css:{bg:"transparent",color:"$secondary"}},{light:!0,color:"warning",css:{bg:"transparent",color:"$warning"}},{light:!0,color:"success",css:{bg:"transparent",color:"$success"}},{light:!0,color:"error",css:{bg:"transparent",color:"$error"}},{bordered:!0,color:"default",css:{bg:"transparent",borderColor:"$primary",color:"$primary",[`& ${Zl}`]:{".nextui-drip-filler":{fill:"$primary"}}}},{bordered:!0,color:"primary",css:{bg:"transparent",borderColor:"$primary",color:"$primary",[`& ${Zl}`]:{".nextui-drip-filler":{fill:"$primary"}}}},{bordered:!0,color:"secondary",css:{bg:"transparent",borderColor:"$secondary",color:"$secondary",[`& ${Zl}`]:{".nextui-drip-filler":{fill:"$secondary"}}}},{bordered:!0,color:"success",css:{bg:"transparent",borderColor:"$success",color:"$success",[`& ${Zl}`]:{".nextui-drip-filler":{fill:"$success"}}}},{bordered:!0,color:"warning",css:{bg:"transparent",borderColor:"$warning",color:"$warning",[`& ${Zl}`]:{".nextui-drip-filler":{fill:"$warning"}}}},{bordered:!0,color:"error",css:{bg:"transparent",borderColor:"$error",color:"$error",[`& ${Zl}`]:{".nextui-drip-filler":{fill:"$error"}}}},{bordered:!0,color:"gradient",css:{bg:"transparent",color:"$text",padding:"$1",bgClip:"content-box, border-box",borderColor:"$primary",backgroundImage:"linear-gradient($background, $background), $gradient",border:"none",[`& ${Zl}`]:{".nextui-drip-filler":{fill:"$secondary"}}}},{ghost:!0,color:"default",css:{"&:hover":{bg:"$primary"}}},{ghost:!0,color:"primary",css:{"&:hover":{bg:"$primary"}}},{ghost:!0,color:"secondary",css:{"&:hover":{bg:"$secondary"}}},{ghost:!0,color:"success",css:{"&:hover":{bg:"$success"}}},{ghost:!0,color:"warning",css:{"&:hover":{bg:"$warning"}}},{ghost:!0,color:"error",css:{"&:hover":{bg:"$error"}}},{ghost:!0,color:"gradient",css:{"&:hover":{bg:"$gradient"}}},{flat:!0,color:"default",css:{bg:"$primaryLight",color:"$primary",[`& ${Zl}`]:{".nextui-drip-filler":{opacity:.4,fill:"$primary"}}}},{flat:!0,color:"primary",css:{bg:"$primaryLight",color:"$primary",[`& ${Zl}`]:{".nextui-drip-filler":{opacity:.4,fill:"$primary"}}}},{flat:!0,color:"secondary",css:{bg:"$secondaryLight",color:"$secondary",[`& ${Zl}`]:{".nextui-drip-filler":{opacity:.4,fill:"$secondary"}}}},{flat:!0,color:"success",css:{bg:"$successLight",color:"$success",[`& ${Zl}`]:{".nextui-drip-filler":{opacity:.4,fill:"$success"}}}},{flat:!0,color:"warning",css:{bg:"$warningLight",color:"$warning",[`& ${Zl}`]:{".nextui-drip-filler":{opacity:.4,fill:"$warning"}}}},{flat:!0,color:"error",css:{bg:"$errorLight",color:"$error",[`& ${Zl}`]:{".nextui-drip-filler":{opacity:.4,fill:"$error"}}}},{bordered:!0,color:"gradient",borderWeight:"light",css:{padding:"$borderWeights$light"}},{bordered:!0,color:"gradient",borderWeight:"normal",css:{padding:"$borderWeights$normal"}},{bordered:!0,color:"gradient",borderWeight:"bold",css:{padding:"$borderWeights$bold"}},{bordered:!0,color:"gradient",borderWeight:"extrabold",css:{padding:"$borderWeights$extrabold"}},{bordered:!0,color:"gradient",borderWeight:"black",css:{padding:"$borderWeights$black"}},{auto:!0,color:"gradient",bordered:!0,size:"xs",css:{px:"$1",py:"$1",".nextui-button-text":{px:"$5"}}},{auto:!0,color:"gradient",bordered:!0,size:"sm",css:{px:"$1",py:"$1",".nextui-button-text":{px:"$8"}}},{auto:!0,color:"gradient",bordered:!0,size:"md",css:{px:"$1",py:"$1",".nextui-button-text":{px:"$9"}}},{auto:!0,color:"gradient",bordered:!0,size:"lg",css:{px:"$1",py:"$1",".nextui-button-text":{px:"$14"}}},{auto:!0,color:"gradient",bordered:!0,size:"xl",css:{px:"$1",py:"$1",".nextui-button-text":{px:"$12"}}},{rounded:!0,size:"xs",css:{br:"$pill"}},{rounded:!0,size:"sm",css:{br:"$pill"}},{rounded:!0,size:"md",css:{br:"$pill"}},{rounded:!0,size:"lg",css:{br:"$pill"}},{rounded:!0,size:"xl",css:{br:"$pill"}}],defaultVariants:{color:"default",borderWeight:"normal",animated:!0,size:"md"}},Ne),lc=sc,cc=g().forwardRef((({...e},t)=>{const n=(0,f.useRef)(null);(0,f.useImperativeHandle)(t,(()=>n.current));const r=((e,t)=>{var n,r,o,i,a,s,l,c,u,d,p;return t.isButtonGroup?{...e,auto:!0,shadow:!1,bordered:null!=(n=t.bordered)?n:e.bordered,borderWeight:null!=(r=t.borderWeight)?r:e.borderWeight,ghost:null!=(o=t.ghost)?o:e.ghost,ripple:null!=(i=t.ripple)?i:e.ripple,flat:null!=(a=t.flat)?a:e.flat,animated:null!=(s=t.animated)?s:e.animated,rounded:null!=(l=t.rounded)?l:e.rounded,light:null!=(c=t.light)?c:e.light,size:null!=(u=t.size)?u:e.size,color:null!=(d=t.color)?d:e.color,disabled:null!=(p=t.disabled)?p:e.disabled}:e})(e,g().useContext(nc)),{flat:o,children:i,disabled:a,animated:s,light:l,ripple:c,bordered:u,auto:d,borderWeight:p,onClick:h,icon:m,iconRight:b,ghost:y,clickable:$,className:v,...x}=r,w=m||b,S=Boolean(b),{isFocusVisible:C,focusProps:k}=Vl(),{onClick:E,...T}=ac(!1,n),P=(0,f.useMemo)((()=>a?"disabled":"ready"),[a]);return(0,st.jsxs)(lc,{ref:n,borderWeight:p,auto:d,flat:o,light:l,ghost:y,bordered:u||y,clickable:$,"data-state":P,disabled:a,animated:s,onClick:e=>{!a&&$&&(s&&c&&n.current&&E(e),h&&h(e))},isFocusVisible:C,className:Ui("nextui-button",`nextui-button--${P}`,v),...k,...x,children:[0===g().Children.count(i)?(0,st.jsx)(ic,{isAuto:d,isRight:S,isSingle:!0,children:w}):w?(0,st.jsxs)(st.Fragment,{children:[(0,st.jsx)(ic,{isAuto:d,isRight:S,children:w}),(0,st.jsx)("div",{className:Ui("nextui-button-text",{"nextui-button-text-right":S,"nextui-button-text-left":!S}),children:i})]}):(0,st.jsx)("span",{className:"nextui-button-text",children:i}),(0,st.jsx)(ec,{color:"white",...T})]})}));cc.toString=()=>".nextui-button";const uc=Vi(cc,{clickable:!0,ghost:!1,bordered:!1,ripple:!0,animated:!0,disabled:!1,auto:!1,className:"",type:"button"}),dc=Se("div",{display:"inline-flex",margin:"$3",backgroundColor:"transparent",height:"min-content",[`& ${lc}`]:{".nextui-button-text":{top:0}},variants:{vertical:{true:{fd:"column",[`& ${lc}`]:{"&:not(:first-child)":{btlr:0,btrr:0},"&:not(:last-child)":{bblr:0,bbrr:0}}},false:{fd:"row",[`& ${lc}`]:{"&:not(:first-child)":{btlr:0,bblr:0},"&:not(:last-child)":{btrr:0,bbrr:0}}}},size:{xs:{br:"$xs"},sm:{br:"$sm"},md:{br:"$md"},lg:{br:"$base"},xl:{br:"$xl"}},rounded:{true:{br:"$pill"}},bordered:{true:{bg:"transparent"}},gradient:{true:{pl:0}}},defaultVariants:{vertical:!1},compoundVariants:[{bordered:!0,vertical:!0,css:{[`& ${lc}`]:{"&:not(:last-child)":{borderBottom:"none",paddingBottom:"0"}}}},{bordered:!0,vertical:!1,css:{[`& ${lc}`]:{"&:not(:first-child)":{borderLeft:"none"}}}},{gradient:!0,vertical:!1,css:{[`& ${lc}`]:{"&:not(:last-child)&:not(:first-child)":{pl:0,filter:"hue-rotate(310deg)"},"&:last-child":{pl:0,filter:"hue-rotate(250deg)"}}}}]}),pc=dc,hc=e=>{const{disabled:t,size:n,color:r,bordered:o,ghost:i,light:a,flat:s,shadow:l,auto:c,animated:u,rounded:d,ripple:p,borderWeight:h,children:g,...m}=e,b=(0,f.useMemo)((()=>({disabled:t,size:n,color:r,bordered:o,light:a,ghost:i,flat:s,shadow:l,auto:c,borderWeight:h,animated:u,rounded:d,ripple:p,isButtonGroup:!0})),[t,u,n,p,r,o,a,i,s,h]);return(0,st.jsx)(nc.Provider,{value:b,children:(0,st.jsx)(pc,{size:n,bordered:o||i,gradient:"gradient"===e.color,...m,children:g})})};hc.toString=()=>".nextui-button-group";const fc=Vi(g().memo(hc),{borderWeight:"normal",size:"md",color:"default"});uc.Group=fc;const gc=uc,mc=Ee({"0%":{backgroundPosition:"200% 0"},to:{backgroundPosition:"-200% 0"}}),bc=Se("div",{opacity:0,margin:"0 auto",position:"relative",br:"$lg",overflow:"hidden",maxWidth:"100%",transition:"transform 250ms ease 0ms, opacity 200ms ease-in 0ms","@motion":{transition:"none"},variants:{ready:{true:{opacity:1},false:{opacity:0}}}}),yc=Se("img",{size:"100%",display:"block"}),$c=Se("div",{position:"absolute",top:0,left:0,right:0,bottom:0,size:"100%",borderRadius:"inherit",backgroundImage:"linear-gradient(270deg, $colors$accents1, $colors$accents2, $colors$accents2, $colors$accents1)",backgroundSize:"400% 100%",animation:`${mc} 5s ease-in-out infinite`,transition:"opacity 300ms ease-out"}),vc=g().memo((({opacity:e,css:t,className:n,...r})=>(0,st.jsx)($c,{css:{opacity:e,...t},className:Ui("nextui-image-skeleton",n),...r})));vc.toString=()=>".nextui-image-skeleton";const xc=Vi(vc,{opacity:.5,className:""}),wc=({src:e,width:t,height:n,showSkeleton:r,className:o,maxDelay:i,autoResize:a,objectFit:s,containerCss:l,css:c,...u})=>{const[d,p]=(0,f.useState)(!0),[h,g]=(0,f.useState)(r),{w:b,h:v}=(0,f.useMemo)((()=>({w:t?"number"==typeof t?`${t}px`:t:"auto",h:n?"number"==typeof n?`${n}px`:n:"auto"})),[t,n]),[x,w,S]=m(v),C=(0,f.useRef)(null),[k,E]=y(C),T=r&&!!t&&!!n;(0,f.useEffect)((()=>{C.current&&C.current.complete&&(p(!1),g(!1))})),(0,f.useEffect)((()=>{const e=setTimeout((()=>{T&&g(!1),clearTimeout(e)}),i);return()=>clearTimeout(e)}),[d]),(0,f.useEffect)((()=>{if(!a)return;const e=0===k.width,r="auto"===S.current;!e&&t&&n&&(k.width<t?!r&&w("auto"):r&&w(v))}),[k,t]),$((()=>{a&&E()}));const P=(0,f.useMemo)((()=>d?"loading":"ready"),[d]);return(0,st.jsxs)(bc,{className:Ui("nextui-image-container",`nextui-image--${P}`,o),"data-state":P,ready:!d||h,css:{...l,width:b,height:x},children:[h&&(0,st.jsx)(xc,{opacity:1}),(0,st.jsx)(yc,{ref:C,className:"nextui-image",width:t,height:n,onLoad:()=>{p(!1)},src:e,"data-state":P,alt:u.alt||"",css:{objectFit:s,...c},...u})]})};wc.toString=()=>".nextui-image",wc.defaultProps={showSkeleton:!0,autoResize:!1,objectFit:"scale-down",maxDelay:3e3,className:""};const Sc=g().memo(wc),Cc=Se("div",{d:"flex",w:"100%",h:"auto",flex:"1 1 auto",fd:"column",jc:"inherit",ai:"inherit",ac:"inherit",p:"$sm $lg",oy:"auto",position:"relative",ta:"left","*:first-child":{mt:0},"*:last-child":{mb:0}}),kc=Se("div",{m:0,p:0,br:"$lg",position:"relative",display:"flex",overflow:"hidden",fd:"column",width:"100%",height:"auto",boxSizing:"border-box","@motion":{transition:"none"},".nextui-image":{width:"100%"},[`& ${Zl}`]:{zIndex:"$1",".nextui-drip-filler":{opacity:.25,fill:"$accents6"}},variants:{color:{default:{$$cardColor:"$colors$background",bg:"$$cardColor"},primary:{$$cardColor:"$colors$primary",color:"$white",bg:"$$cardColor"},secondary:{$$cardColor:"$colors$secondary",color:"$white",bg:"$$cardColor"},success:{$$cardColor:"$colors$success",color:"$white",bg:"$$cardColor"},warning:{$$cardColor:"$colors$warning",color:"$white",bg:"$$cardColor"},error:{$$cardColor:"$colors$error",color:"$white",bg:"$$cardColor"},gradient:{$$cardColor:"$colors$gradient",color:"$white",bg:"$$cardColor"}},shadow:{true:{boxShadow:"$md"}},bordered:{true:{borderStyle:"solid",borderColor:"$border"},false:{bw:0}},borderWeight:{light:{bw:"$light"},normal:{bw:"$normal"},bold:{bw:"$bold"},extrabold:{bw:"$extrabold"},black:{bw:"$black"}},animated:{true:{transition:"$default"},false:{transition:"none"}},clickable:{true:{cursor:"pointer",us:"none",WebkitTapHighlightColor:"transparent","&:focus:not(&:focus-visible)":{boxShadow:"none"},"&:focus":{outline:"none",boxShadow:"0 0 0 2px $colors$background, 0 0 0 4px $colors$primary"},"@safari":{WebkitTapHighlightColor:"transparent",outline:"none"}}},hoverable:{true:{"&:hover":{transform:"translateY(-2px)",boxShadow:"$lg"}}},cover:{true:{".nextui-image":{objectFit:"cover !important"},[`& ${Cc}`]:{p:0}},false:{".nextui-image, .nextui-image-container":{bblr:"0 !important",bbrr:"0 !important"}}},isDark:{true:{}}},compoundVariants:[{color:"default",isDark:!0,css:{$$cardColor:"$colors$accents1"}},{color:"default",shadow:!0,isDark:!1,css:{$$cardColor:"$colors$background",bg:"$$cardColor"}},{color:"default",shadow:!0,isDark:!0,css:{$$cardColor:"$colors$accents1",bg:"$$cardColor"}},{clickable:!0,animated:!0,css:{"&:active":{scale:.97}}}],defaultVariants:{color:"default",borderWeight:"normal",animated:!0,bordered:!1,shadow:!0}}),Ec=Se("div",{w:"100%",display:"flex",flexShrink:0,zIndex:"$1",jc:"flex-start",ai:"center",overflow:"hidden",color:"inherit",fontSize:"$xs",p:"$sm","*:first-child":{mt:0},"*:last-child":{mb:0}}),Tc=Se("div",{w:"100%",h:"auto",p:"$sm $lg",d:"flex",ai:"center",overflow:"hidden",color:"inherit",fontSize:"$xs",bblr:"$lg",bbrr:"$lg","*":{mt:0,mb:0},variants:{blur:{true:{bf:"saturate(180%) blur(10px)",bg:"$$cardColor"}}}}),Pc=g().forwardRef((({...e},t)=>{const{children:n,cover:r,animated:o,ripple:i,clickable:a,onClick:s,preventDefault:l,...c}=e,u=(0,f.useRef)(null);(0,f.useImperativeHandle)(t,(()=>u.current));const{isDark:d}=Ae(),{onClick:p,...h}=ac(!1,u),[g,m]=je(n,Ec),[b,y]=je(g,Tc),[$,v]=je(b,Sc),x=Oe($,Cc),w=Oe(n,Ec),S=e=>{o&&u.current&&p(e),s&&s(e)},{bindings:C}=rt((e=>{a&&S(e)}),[Qe.Enter,Qe.Space],{disableGlobalEvent:!0,preventDefault:l});return(0,st.jsxs)(kc,{ref:u,role:a?"button":"section",cover:r,animated:o,clickable:a,tabIndex:a?0:-1,onClick:S,isDark:d,...c,...C,children:[w?(0,st.jsxs)(st.Fragment,{children:[m,v]}):v,x?$:r?null:(0,st.jsx)(Cc,{children:$}),a&&o&&i&&(0,st.jsx)(ec,{...h}),y]})}));Pc.toString=()=>".nextui-card";const Ic=Vi(Pc,{animated:!0,ripple:!0,cover:!1,preventDefault:!1});Ic.Header=Ec,Ic.Body=Cc,Ic.Footer=Tc,Ic.Image=Sc;const Mc=Ic,Nc={color:"default",labelColor:"default",size:"md",disabledAll:!1,inGroup:!1,values:[]},Rc=g().createContext(Nc),Lc=Se("label",{d:"inline-flex",jc:"flex-start",ai:"center",position:"relative",w:"auto",cursor:"pointer",transition:"$default",zIndex:"$1",opacity:1,$$checkboxBorderColor:"$colors$border","@motion":{transition:"none"},variants:{size:{xs:{$$checkboxSize:"$space$7"},sm:{$$checkboxSize:"$space$8"},md:{$$checkboxSize:"$space$9"},lg:{$$checkboxSize:"$space$10"},xl:{$$checkboxSize:"$space$11"}},disabled:{true:{opacity:.75,cursor:"not-allowed"}},animated:{false:{transition:"none"}}},defaultVariants:{size:"md"}}),Dc=Se("div",{br:"$squared",position:"relative",sizeMin:"$$checkboxSize",opacity:1,transition:"$default",zIndex:"$1","@motion":{transition:"none"},variants:{color:{default:{$$checkboxColor:"$colors$primary",$$checkboxColorHover:"$colors$primaryDark"},primary:{$$checkboxColor:"$colors$primary",$$checkboxColorHover:"$colors$primaryDark"},secondary:{$$checkboxColor:"$colors$secondary",$$checkboxColorHover:"$colors$secondaryDark"},success:{$$checkboxColor:"$colors$success",$$checkboxColorHover:"$colors$successDark"},warning:{$$checkboxColor:"$colors$warning",$$checkboxColorHover:"$colors$warningDark"},error:{$$checkboxColor:"$colors$error",$$checkboxColorHover:"$colors$errorDark"},gradient:{$$checkboxColor:"$colors$gradient",$$checkboxColorHover:"$colors$gradient"}},rounded:{true:{br:"$pill"}},disabled:{true:{opacity:.4,cursor:"not-allowed"}},animated:{false:{transition:"none"}}},defaultVariants:{color:"default"}},Ne),zc=Se("div",{content:"",background:"transparent",position:"absolute",width:"8px",height:"1px",transition:"$default",br:"5px",zIndex:"$1",bottom:"0px","&:after":{content:"",position:"absolute",left:"0px",width:"0%",height:"2px",background:"$white",transition:"$default",br:"5px 0px 0px 5px"},"@motion":{transition:"none","&:after":{transition:"none"}},variants:{indeterminate:{true:{display:"none"}},checked:{true:{"&:after":{width:"100%",transition:"all 0.25s ease 0.1s"}}},animated:{false:{transition:"none","&:after":{transition:"none"}}}},compoundVariants:[{checked:!0,animated:!1,css:{"&:after":{transition:"none"}}}]}),Ac=Se("div",{content:"",position:"absolute",h:"13px",br:"5px",bottom:"0",right:"0",zIndex:"$1",background:"transparent",transition:"$default",width:"2px","&:after":{content:"",position:"absolute",width:"2px",height:"0%",background:"$white",transition:"$default",left:"0px",bottom:"0px",br:"5px 5px 0px 0px"},"@motion":{transition:"none","&:after":{transition:"none"}},variants:{indeterminate:{true:{display:"none"}},checked:{true:{"&:after":{height:"100%",transition:"all 0.2s ease 0.3s"}}},animated:{false:{transition:"none","&:after":{transition:"none"}}}},compoundVariants:[{checked:!0,animated:!1,css:{"&:after":{transition:"none"}}}]}),Kc=Se("i",{size:"$$checkboxSize",dflex:"center",br:"inherit",opacity:0,zIndex:"$2",transition:"transform 0.35s ease","&:after":{content:"",opacity:0,position:"relative",width:"10px",height:"2px",br:"1px",background:"$white",display:"block"},"@motion":{transition:"none","&:after":{transition:"none"}},variants:{indeterminate:{true:{transform:"rotate(0deg)",width:"auto",height:"auto",margin:"0px","&:after":{opacity:1}},false:{width:"8px",height:"14px",display:"block",position:"relative",marginTop:"-4px"}},size:{xs:{marginTop:"-2px",transform:"rotate(45deg) scale(0.5)"},sm:{marginTop:"-2px",transform:"rotate(45deg) scale(0.5)"},md:{transform:"rotate(45deg) scale(0.8)"},lg:{transform:"rotate(45deg)"},xl:{transform:"rotate(45deg)"}},checked:{true:{opacity:1}},animated:{false:{transition:"none","&:after":{transition:"none"}}}},compoundVariants:[{indeterminate:!0,size:"xs",css:{scale:"0.5"}},{indeterminate:!0,size:"sm",css:{scale:"0.5"}},{indeterminate:!0,size:"md",css:{scale:"0.8"}},{indeterminate:!0,size:"lg",css:{transform:"none"}},{indeterminate:!0,size:"lg",css:{transform:"none"}}]}),Oc=Se("div",{size:"100%",position:"absolute",pe:"none",boxSizing:"border-box",dflex:"center",zIndex:"-$1",br:"inherit",transition:"$default",color:"$$checkboxBorderColor","&:before":{content:"",position:"absolute",top:"0px",left:"0px",size:"100%",br:"inherit",transition:"$transitions$default",zIndex:"-$1",border:"$borderWeights$normal solid currentColor",boxSizing:"border-box"},"&:after":{content:"",position:"absolute",top:"0px",left:"0px",size:"100%",bg:"$$checkboxColor",scale:.5,br:"inherit",opacity:0,transition:"$default",zIndex:"-$1"},"@motion":{transition:"none","&:before":{transition:"none"},"&:after":{transition:"none"}},variants:{checked:{true:{"&:before":{opacity:0,scale:1.2},"&:after":{opacity:1,scale:1}}},animated:{false:{transition:"none","&:before":{transition:"none"},"&:after":{transition:"none"}}}}}),jc=Se("span",{position:"relative",dflex:"center",color:"$text",opacity:1,pl:"calc($$checkboxSize * 0.57)",ln:"$$checkboxSize",fontSize:"$$checkboxSize",us:"none","@motion":{"&:before":{transition:"none"}},variants:{color:{default:{color:"$text"},primary:{color:"$primary"},secondary:{color:"$secondary"},success:{color:"$success"},warning:{color:"$warning"},error:{color:"$error"}},line:{true:{"&:before":{content:"",position:"absolute",width:"0px",height:"2px",background:"$text",transition:"$default"}}},checked:{true:{"&:before":{opacity:.8}}},disabled:{true:{color:"$accents4"}},animated:{false:{"&:before":{transition:"none"}}}},compoundVariants:[{line:!0,checked:!0,css:{opacity:.6,"&:before":{w:"calc(100% - 10px)"}}}]}),_c=Se("input",{position:"absolute",width:"100%",height:"100%",top:"0px",left:"0px",margin:"0px",padding:"0px",opacity:0,zIndex:"$1",cursor:"pointer","&:active":{[`& ~${Oc}:before`]:{bg:"$border"}},"&:hover":{[`& ~${Oc}:before`]:{bg:"$$checkboxBorderColor",border:"2px solid transparent"},[`& ~${Oc}:after`]:{bg:"$$checkboxColorHover"}},"&:disabled":{cursor:"not-allowed"}}),Fc=Se("div",{display:"flex",flexDirection:"column",variants:{size:{xs:{$$checkboxSize:"$space$7"},sm:{$$checkboxSize:"$space$8"},md:{$$checkboxSize:"$space$9"},lg:{$$checkboxSize:"$space$10"},xl:{$$checkboxSize:"$space$11"}},row:{true:{flexDirection:"row",mt:0,[`& ${Lc}`]:{mr:"$$checkboxSize"}},false:{mr:0,flexDirection:"column",[`& ${Lc}`]:{mt:"$$checkboxSize"}}}},defaultVariants:{row:!1}}),Wc=g().forwardRef((({checked:e,initialChecked:t,line:n,rounded:r,indeterminate:o,disabled:i,onChange:a,size:s,className:l,children:c,label:u,color:d,labelColor:p,animated:h,value:m,preventDefault:b,...y},$)=>{const[v,x]=(0,f.useState)(t),[w,S]=(0,f.useState)(o),C=(0,f.useRef)(null);(0,f.useImperativeHandle)($,(()=>null==C?void 0:C.current));const{color:k,labelColor:E,size:T,updateState:P,inGroup:I,disabledAll:M,values:N}=g().useContext(Rc),{isFocusVisible:R,focusProps:L}=Vl(),D=I&&M||i,z="default"!==d?d:k,A="md"!==s?s:T,K="default"!==p?p:E;I&&(0,f.useEffect)((()=>{const e=N.includes(m);e!==v&&x(e)}),[N.join(",")]),(0,f.useEffect)((()=>{S(o)}),[o]);const O=(0,f.useCallback)((e=>{if(D)return;const t={target:{checked:!v},stopPropagation:e.stopPropagation,preventDefault:e.preventDefault,nativeEvent:e};I&&P&&P&&P(m,!v),w?(S(!1),x(!0)):x(!v),a&&a(t)}),[P,a,D,v,w]);(0,f.useEffect)((()=>{void 0!==e&&x(e)}),[e]);const j=(0,f.useMemo)((()=>v&&w?"mixed":v?"checked":"uncheked"),[v,w]);return(0,st.jsxs)(Lc,{size:A,disabled:D,animated:h,className:Ui("nextui-checkbox-label",`nextui-checkbox--${j}`,l),css:y.css,children:[(0,st.jsxs)(Dc,{className:"nextui-checkbox-container",tabIndex:D?-1:0,color:z,rounded:r,disabled:D,animated:h,isFocusVisible:R,...L,children:[(0,st.jsx)(_c,{ref:C,type:"checkbox",className:"nextui-checkbox-input",tabIndex:-1,"data-state":j,disabled:D,checked:v,"aria-checked":v&&w?"mixed":v,"aria-disabled":D,onChange:O,...y}),(0,st.jsx)(Oc,{checked:v,animated:h,className:"nextui-checkbox-mask",children:(0,st.jsxs)(Kc,{size:A,indeterminate:w,checked:v,animated:h,className:"nextui-icon-check",children:[(0,st.jsx)(zc,{indeterminate:w,checked:v,animated:h,className:"nextui-icon-check-line1"}),(0,st.jsx)(Ac,{indeterminate:w,checked:v,animated:h,className:"nextui-icon-check-line2"})]})})]}),(c||u)&&(0,st.jsx)(jc,{className:"nextui-checkbox-text",color:K,line:n,checked:v,disabled:D,animated:h,children:c||u})]})}));Wc.defaultProps={value:"",size:"md",color:"default",labelColor:"default",disabled:!1,preventDefault:!0,initialChecked:!1,indeterminate:!1,rounded:!1,line:!1,animated:!0,className:""},Wc.toString=()=>".nextui-checkbox";const Bc=Wc,Vc=({color:e,labelColor:t,disabled:n,onChange:r,value:o,size:i,children:a,className:s,style:l,...c})=>{const[u,d]=(0,f.useState)([]),p=(e,t)=>{const n=u.filter((t=>t!==e)),o=t?[...n,e]:n;d(o),r&&r(o)},h=(0,f.useMemo)((()=>({updateState:p,color:e,labelColor:t,size:i,disabledAll:n,inGroup:!0,values:u})),[n,u]);return(0,f.useEffect)((()=>{d(o)}),[o.join(",")]),(0,st.jsx)(Rc.Provider,{value:h,children:(0,st.jsx)(Fc,{role:"group",size:i,...c,children:a})})};Vc.toString=()=>".nextui-checkbox-group";const Hc=Vi(Vc,{color:"default",labelColor:"default",disabled:!1,size:"md"});Bc.Group=Hc;const Uc=Bc,Gc=Se("code",{}),Yc=Se("pre",{width:"initial",mw:"100"}),Xc=({block:e,children:t,...n})=>e?(0,st.jsx)(Yc,{...n,children:(0,st.jsx)(Gc,{children:t})}):(0,st.jsx)(Gc,{...n,children:t});Xc.toString=()=>".nextui-code";const Jc=Vi(g().memo(Xc),{block:!1}),qc=Se("div",{float:"left",boxSizing:"border-box",pl:"calc($$rowGap / 2)",pr:"calc($$rowGap / 2)"}),Zc=qc,Qc=({children:e,span:t,offset:n,css:r,...o})=>(0,st.jsx)(Zc,{css:{width:100/12*t+"%",marginLeft:100/12*n+"%",...r},...o,children:e});Qc.toString=()=>".nextui-column";const eu=Vi(g().memo(Qc),{span:12,offset:0}),tu=Se("div",{transition:"$default",".nextui-collapse-title-content":{w:"100%","h1,h2,h3,h4,h5,h6,p,span,b":{margin:0}},".nextui-collapse-title-container":{d:"flex",jc:"space-between",ai:"center"},".nextui-collapse-title":{color:"$foreground"},".nextui-collapse-subtitle":{color:"$accents5",margin:0,"*":{margin:0}},".nextui-collapse-title-content-left":{mr:"$sm"},".nextui-collapse-title-content-left, .nextui-collapse-title-content-right":{d:"flex",ai:"center"},"@motion":{transition:"none",".nextui-collapse-title-content-right ":{svg:{transition:"none"}}},variants:{shadow:{true:{border:"none",boxShadow:"$md",br:"$lg",p:"0 $lg",bg:"$background"}},borderWeight:{light:{$$collapseBorderWidth:"$borderWeights$light"},normal:{$$collapseBorderWidth:"$borderWeights$normal"},bold:{$$collapseBorderWidth:"$borderWeights$bold"},extrabold:{$$collapseBorderWidth:"$borderWeights$extrabold"},black:{$$collapseBorderWidth:"$borderWeights$black"}},divider:{true:{borderTop:"$$collapseBorderWidth solid $border",borderBottom:"$$collapseBorderWidth solid $border"}},bordered:{true:{br:"$lg",p:"0 $lg",border:"$$collapseBorderWidth solid $border"}},animated:{true:{".nextui-collapse-title-content-right ":{svg:{transition:"transform 200ms ease"}}},false:{transition:"none"}},visible:{true:{".nextui-collapse-title-content-right ":{svg:{transform:"rotateZ(-90deg)"}}},false:{".nextui-collapse-title-content-right":{svg:{transform:"rotateZ(0deg)"}}}},isDark:{true:{}}},defaultVariants:{borderWeight:"light"},compoundVariants:[{isDark:!0,shadow:!0,css:{bg:"$accents1"}}]},Me),nu=Se("div",{w:"100%",d:"block",ta:"left",bg:"transparent",border:"none",cursor:"pointer",outline:"none",padding:"$lg 0",variants:{disabled:{true:{cursor:"not-allowed",".nextui-collapse-title, .nextui-collapse-subtitle":{opacity:.5}}}}},Ne),ru=Se("div",{fontSize:"$base",lineHeight:"$lg",pb:"$lg","*:first-child":{mt:0},"*:last-child":{mb:0}}),ou=Se("svg",{path:{stroke:"$accents5"}}),iu=Se("div",{width:"auto",padding:"0 $sm","div + div":{borderTop:"none"},[`& ${tu}:first-child`]:{borderTop:"none"},[`& ${tu}:last-child`]:{borderBottom:"none"},variants:{borderWeight:{light:{$$collapseGroupBorderWidth:"$borderWeights$light"},normal:{$$collapseGroupBorderWidth:"$borderWeights$normal"},bold:{$$collapseGroupBorderWidth:"$borderWeights$bold"},extrabold:{$$collapseGroupBorderWidth:"$borderWeights$extrabold"},black:{$$collapseGroupBorderWidth:"$borderWeights$black"}},shadow:{true:{br:"$lg",border:"none",boxShadow:"$md",p:"0 $lg",bg:"$background"}},bordered:{true:{br:"$lg",p:"0 $lg",border:"$$collapseGroupBorderWidth solid $border"}},splitted:{true:{[`& ${tu}`]:{br:"$lg",border:"none",bg:"$background",boxShadow:"$md",p:"0 $lg",margin:"$md 0"}}},isDark:{true:{}}},defaultVariants:{borderWeight:"light",shadow:!1,bordered:!1,splitted:!1},compoundVariants:[{isDark:!0,shadow:!0,css:{bg:"$accents1"}},{isDark:!0,splitted:!0,css:{[`& ${tu}`]:{bg:"$accents1"}}}]}),au=({...e})=>(0,st.jsx)(ou,{role:"presentation",focusable:"false",className:"nextui-collapse-icon",width:"20",height:"20",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,st.jsx)("path",{d:"M15.5 19l-7-7 7-7",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})});au.toString=()=>".nextui-collapse-icon";const su=g().memo(au),lu=Se("div",{p:0,m:0,h:0,opacity:0,overflow:"hidden",variants:{expanded:{true:{opacity:1}}}}),cu=Vi((({isExpanded:e,delay:t,animated:n,css:r,children:o})=>{const[i,a]=(0,f.useState)(e?"auto":"0"),[s,l]=(0,f.useState)(e),c=(0,f.useRef)(null),u=(0,f.useRef)(),d=(0,f.useRef)(),p=(0,f.useRef)(),[h,g]=y(c);return(0,f.useEffect)((()=>a(`${h.height}px`)),[h.height]),(0,f.useEffect)((()=>{if(e!==s)return e||(g(),a(`${h.height}px`)),u.current=window.setTimeout((()=>{l(e),clearTimeout(u.current)}),30),e?p.current=window.setTimeout((()=>{a("auto"),clearTimeout(p.current)}),t):d.current=window.setTimeout((()=>{clearTimeout(d.current)}),t/2),()=>{clearTimeout(u.current),clearTimeout(d.current),clearTimeout(p.current)}}),[e]),(0,st.jsx)(lu,{expanded:s,css:{height:s?i:"0",transition:n?`height ${t}ms ease 0ms,\n opacity ${1.5*t}ms ease 0ms;`:"none",...r},children:(0,st.jsx)("div",{ref:c,className:"nextui-expand-content",children:o})})}),{isExpanded:!1,animated:!0,delay:200}),uu={values:[]},du=g().createContext(uu);function pu(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var hu={};pu(hu,"SSRProvider",(()=>mu)),pu(hu,"useSSRSafeId",(()=>yu)),pu(hu,"useIsSSR",(()=>$u));const fu={prefix:String(Math.round(1e10*Math.random())),current:0},gu=g().createContext(fu);function mu(e){let t=(0,f.useContext)(gu),n=(0,f.useMemo)((()=>({prefix:t===fu?"":`${t.prefix}-${++t.current}`,current:0})),[t]);return g().createElement(gu.Provider,{value:n},e.children)}let bu=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function yu(e){let t=(0,f.useContext)(gu);return t!==fu||bu||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),(0,f.useMemo)((()=>e||`react-aria${t.prefix}-${++t.current}`),[e])}function $u(){let e=(0,f.useContext)(gu)!==fu,[t,n]=(0,f.useState)(e);return"undefined"!=typeof window&&e&&(0,f.useLayoutEffect)((()=>{n(!1)}),[]),t}function vu(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var xu={};vu(xu,"useId",(()=>Cu)),vu(xu,"mergeIds",(()=>ku)),vu(xu,"useSlotId",(()=>Eu)),vu({},"useLayoutEffect",(()=>wu));const wu="undefined"!=typeof window?g().useLayoutEffect:()=>{};let Su=new Map;function Cu(e){let t=(0,f.useRef)(!0);t.current=!0;let[n,r]=(0,f.useState)(e),o=(0,f.useRef)(null),i=yu(n),a=e=>{t.current?o.current=e:r(e)};return Su.set(i,a),wu((()=>{t.current=!1}),[a]),wu((()=>{let e=i;return()=>{Su.delete(e)}}),[i]),(0,f.useEffect)((()=>{let e=o.current;e&&(r(e),o.current=null)}),[r,a]),i}function ku(e,t){if(e===t)return e;let n=Su.get(e);if(n)return n(t),t;let r=Su.get(t);return r?(r(e),e):t}function Eu(e=[]){let t=Cu(),[n,r]=gd(t),o=(0,f.useCallback)((()=>{r((function*(){yield t,yield document.getElementById(t)?t:null}))}),[t,r]);return wu(o,[t,o,...e]),n}function Tu(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function Pu(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],o=r[e];"function"==typeof n&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Tu(n,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof o?"id"===e&&n&&o?t.id=ku(n,o):t[e]=void 0!==o?o:n:t[e]=ya(n,o)}}return t}vu({},"chain",(()=>Tu)),vu({},"mergeProps",(()=>Pu)),vu({},"filterDOMProps",(()=>Ru));const Iu=new Set(["id"]),Mu=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Nu=/^(data-.*)$/;function Ru(e,t={}){let{labelable:n,propNames:r}=t,o={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Iu.has(t)||n&&Mu.has(t)||r?.has(t)||Nu.test(t))&&(o[t]=e[t]);return o}function Lu(e){if(function(){if(null==Du){Du=!1;try{document.createElement("div").focus({get preventScroll(){return Du=!0,!0}})}catch(e){}}return Du}())e.focus({preventScroll:!0});else{let t=function(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}vu({},"focusWithoutScrolling",(()=>Lu));let Du=null;function zu(e,t,n="horizontal"){let r=e.getBoundingClientRect();return t?"horizontal"===n?r.right:r.bottom:"horizontal"===n?r.left:r.top}vu({},"getOffset",(()=>zu));var Au={};vu(Au,"clamp",(()=>wa)),vu(Au,"snapValueToStep",(()=>Sa)),vu({},"runAfterTransition",(()=>_u));let Ku=new Map,Ou=new Set;function ju(){if("undefined"==typeof window)return;let e=t=>{let n=Ku.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),Ku.delete(t.target)),0===Ku.size)){for(let e of Ou)e();Ou.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=Ku.get(t.target);n||(n=new Set,Ku.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function _u(e){requestAnimationFrame((()=>{0===Ku.size?e():Ou.add(e)}))}"undefined"!=typeof document&&("loading"!==document.readyState?ju():document.addEventListener("DOMContentLoaded",ju)),vu({},"useDrag1D",(()=>Wu));const Fu=[];function Wu(e){console.warn("useDrag1D is deprecated, please use `useMove` instead https://react-spectrum.adobe.com/react-aria/useMove.html");let{containerRef:t,reverse:n,orientation:r,onHover:o,onDrag:i,onPositionChange:a,onIncrement:s,onDecrement:l,onIncrementToMax:c,onDecrementToMin:u,onCollapseToggle:d}=e,p=e=>{let o=zu(t.current,n,r),i=(e=>"horizontal"===r?e.clientX:e.clientY)(e);return n?o-i:i-o},h=(0,f.useRef)(!1),g=(0,f.useRef)(0),m=(0,f.useRef)({onPositionChange:a,onDrag:i});m.current.onDrag=i,m.current.onPositionChange=a;let b=e=>{e.preventDefault();let t=p(e);h.current||(h.current=!0,m.current.onDrag&&m.current.onDrag(!0),m.current.onPositionChange&&m.current.onPositionChange(t)),g.current!==t&&(g.current=t,a&&a(t))},y=e=>{const t=e.target;h.current=!1;let n=p(e);m.current.onDrag&&m.current.onDrag(!1),m.current.onPositionChange&&m.current.onPositionChange(n),Fu.splice(Fu.indexOf(t),1),window.removeEventListener("mouseup",y,!1),window.removeEventListener("mousemove",b,!1)};return{onMouseDown:e=>{const t=e.currentTarget;Fu.some((e=>t.contains(e)))||(Fu.push(t),window.addEventListener("mousemove",b,!1),window.addEventListener("mouseup",y,!1))},onMouseEnter:()=>{o&&o(!0)},onMouseOut:()=>{o&&o(!1)},onKeyDown:e=>{switch(e.key){case"Left":case"ArrowLeft":"horizontal"===r&&(e.preventDefault(),l&&!n?l():s&&n&&s());break;case"Up":case"ArrowUp":"vertical"===r&&(e.preventDefault(),l&&!n?l():s&&n&&s());break;case"Right":case"ArrowRight":"horizontal"===r&&(e.preventDefault(),s&&!n?s():l&&n&&l());break;case"Down":case"ArrowDown":"vertical"===r&&(e.preventDefault(),s&&!n?s():l&&n&&l());break;case"Home":e.preventDefault(),u&&u();break;case"End":e.preventDefault(),c&&c();break;case"Enter":e.preventDefault(),d&&d()}}}}function Bu(){let e=(0,f.useRef)(new Map),t=(0,f.useCallback)(((t,n,r,o)=>{let i=o?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,r,o)}),[]),n=(0,f.useCallback)(((t,n,r,o)=>{let i=e.current.get(r)?.fn||r;t.removeEventListener(n,i,o),e.current.delete(r)}),[]),r=(0,f.useCallback)((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return(0,f.useEffect)((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Vu(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;if(n=Cu(n),o&&r){let e=new Set([...o.trim().split(/\s+/),n]);o=[...e].join(" ")}else o&&(o=o.trim().split(/\s+/).join(" "));return r||o||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function Hu(e){const t=(0,f.useRef)();return wu((()=>{e&&("function"==typeof e?e(t.current):e.current=t.current)}),[e]),t}function Uu(e,t){const n=(0,f.useRef)(!0);(0,f.useEffect)((()=>{n.current?n.current=!1:e()}),t)}function Gu(e){const{ref:t,onResize:n}=e;(0,f.useEffect)((()=>{let e=t?.current;if(e){if(void 0===window.ResizeObserver)return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)};{const t=new window.ResizeObserver((e=>{e.length&&n()}));return t.observe(e),()=>{e&&t.unobserve(e)}}}}),[n,t])}function Yu(e,t){wu((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}function Xu(e){for(;e&&!Ju(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function Ju(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}vu({},"useGlobalListeners",(()=>Bu)),vu({},"useLabels",(()=>Vu)),vu({},"useObjectRef",(()=>Hu)),vu({},"useUpdateEffect",(()=>Uu)),vu({},"useResizeObserver",(()=>Gu)),vu({},"useSyncRef",(()=>Yu)),vu({},"getScrollParent",(()=>Xu)),vu({},"useViewportSize",(()=>Zu));let qu="undefined"!=typeof window&&window.visualViewport;function Zu(){let[e,t]=(0,f.useState)((()=>Qu()));return(0,f.useEffect)((()=>{let e=()=>{t((e=>{let t=Qu();return t.width===e.width&&t.height===e.height?e:t}))};return qu?qu.addEventListener("resize",e):window.addEventListener("resize",e),()=>{qu?qu.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),e}function Qu(){return{width:qu?.width||window.innerWidth,height:qu?.height||window.innerHeight}}vu({},"useDescription",(()=>nd));let ed=0;const td=new Map;function nd(e){let[t,n]=(0,f.useState)(null);return wu((()=>{if(!e)return;let t=td.get(e);if(t)n(t.element.id);else{let r="react-aria-description-"+ed++;n(r);let o=document.createElement("div");o.id=r,o.style.display="none",o.textContent=e,document.body.appendChild(o),t={refCount:0,element:o},td.set(e,t)}return t.refCount++,()=>{0==--t.refCount&&(t.element.remove(),td.delete(e))}}),[e]),{"aria-describedby":e?t:void 0}}var rd={};function od(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.userAgent)}function id(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.platform)}function ad(){return id(/^Mac/)}function sd(){return id(/^iPhone/)}function ld(){return id(/^iPad/)||ad()&&navigator.maxTouchPoints>1}function cd(){return sd()||ld()}function ud(){return ad()||cd()}function dd(){return od(/AppleWebKit/)&&!pd()}function pd(){return od(/Chrome/)}function hd(){return od(/Android/)}function fd(e,t,n,r){let o=(0,f.useRef)(n);o.current=n;let i=null==n;(0,f.useEffect)((()=>{if(i)return;let n=e.current,a=e=>o.current.call(this,e);return n.addEventListener(t,a,r),()=>{n.removeEventListener(t,a,r)}}),[e,t,r,i])}function gd(e){let[t,n]=(0,f.useState)(e),r=(0,f.useRef)(t),o=(0,f.useRef)(null);r.current=t;let i=(0,f.useRef)(null);i.current=()=>{let e=o.current.next();e.done?o.current=null:t===e.value?i.current():n(e.value)},wu((()=>{o.current&&i.current()}));let a=(0,f.useCallback)((e=>{o.current=e(r.current),i.current()}),[o,i]);return[t,a]}function md(e,t){let n=bd(e,t,"left"),r=bd(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,l=a+e.offsetWidth,c=s+e.offsetHeight;n<=a?a=n:n+o>l&&(a+=n+o-l),r<=s?s=r:r+i>c&&(s+=r+i-c),e.scrollLeft=a,e.scrollTop=s}function bd(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}vu(rd,"isMac",(()=>ad)),vu(rd,"isIPhone",(()=>sd)),vu(rd,"isIPad",(()=>ld)),vu(rd,"isIOS",(()=>cd)),vu(rd,"isAppleDevice",(()=>ud)),vu(rd,"isWebKit",(()=>dd)),vu(rd,"isChrome",(()=>pd)),vu(rd,"isAndroid",(()=>hd)),vu({},"useEvent",(()=>fd)),vu({},"useValueEffect",(()=>gd)),vu({},"scrollIntoView",(()=>md));const yd="nextui-collapse",$d=({children:e,title:t,subtitle:n,expanded:r,shadow:o,className:i,divider:a,arrowIcon:s,showArrow:l,disabled:c,onChange:u,bordered:d,contentLeft:p,preventDefault:h,animated:b,borderWeight:y,index:$,...v})=>{const[x,w,S]=m(r),{isDark:C}=Ae(),{values:k,divider:E,animated:T,updateValues:P}=g().useContext(du),{isFocusVisible:I,focusProps:M}=Vl();t||((e,t)=>{const n=`[Next UI]${t?` [${t}]`:" "}: ${e}`;"undefined"!=typeof console&&(Ye[n]||(Ye[n]=!0,console.warn(n)))})('"title" is required.',"Collapse"),(0,f.useEffect)((()=>{x!==r&&w(r)}),[r]),(0,f.useEffect)((()=>{if(!k.length)return;const e=!!k.find((e=>e===$));w(e)}),[k.join(",")]);const N=Cu(),R=Cu(),L=(0,f.useMemo)((()=>l?s||(0,st.jsx)(su,{}):null),[s,l]),D=void 0===E?a:E,z=(0,f.useMemo)((()=>void 0===T?b:T),[T,b]),A=e=>{if(c)return;const t=!S.current;w(t),P&&P($,t),u&&u(e,$,t)},{bindings:K}=rt((e=>{A(e)}),[Qe.Enter,Qe.Space],{disableGlobalEvent:!0,preventDefault:h}),O=(0,f.useMemo)((()=>x?"open":"closed"),[x]);return(0,st.jsxs)(tu,{tabIndex:-1,shadow:o,bordered:d,animated:z,divider:D,borderWeight:y,visible:x,"data-state":O,className:Ui(i,yd,`${yd}--${O}`),isDark:C,...v,children:[(0,st.jsx)(nu,{role:"button",tabIndex:c?-1:0,id:N,className:`${yd}-view`,"data-state":O,disabled:c,"aria-disabled":c,"aria-expanded":x,"aria-controls":R,isFocusVisible:I,onClick:A,...M,...K,children:(0,st.jsxs)("div",{className:Ui(`${yd}-title-container`),children:[p&&(0,st.jsx)("div",{className:`${yd}-title-content-left`,children:p}),(0,st.jsxs)("div",{className:`${yd}-title-content`,children:[g().isValidElement(t)?t:(0,st.jsx)("h3",{className:`${yd}-title`,children:t}),n&&(0,st.jsx)("div",{className:`${yd}-subtitle`,children:n})]}),(0,st.jsx)("div",{className:`${yd}-title-content-right`,children:L})]})}),(0,st.jsx)(cu,{isExpanded:x,animated:z,children:(0,st.jsx)(ru,{role:"region",tabIndex:-1,id:R,"aria-labelledby":N,className:`${yd}-content`,children:e})})]})};$d.toString=()=>".nextui-collapse";const vd=Vi($d,{shadow:!1,divider:!0,bordered:!1,showArrow:!0,animated:!0,disabled:!1,preventDefault:!0,expanded:!1}),xd=({children:e,accordion:t,animated:n,divider:r,onChange:o,...i})=>{const[a,s,l]=m([]),{isDark:c}=Ae(),u=(e,n)=>{const r=l.current.find((t=>t===e));if(o&&o(e,n),t)return s(n?[e]:[]);if(n){if(r)return;return s([...l.current,e])}s(l.current.filter((t=>t!==e)))},d=(0,f.useMemo)((()=>({values:a,updateValues:u,divider:r,animated:n})),[a.join(",")]),p=(0,f.useMemo)((()=>((e,t=[])=>{if(0===g().Children.count(e))return[];const n=0===t.length,r=(e,t={})=>g().cloneElement(e,t);let o=0;return g().Children.map(e,(e=>{if(!g().isValidElement(e))return e;if(o+=1,n)return r(e,{index:o});const i=t.find((t=>t===e.type));return i?r(e,{index:o}):(o-=1,e)}))})(e,[vd])),[e]);return(0,st.jsx)(du.Provider,{value:d,children:(0,st.jsx)(iu,{isDark:c,...i,children:p})})};xd.toString=()=>".nextui-collapse-group";const wd=Vi(xd,{accordion:!0});vd.Group=wd;const Sd=vd,Cd=Se("div",{w:"100%",mr:"auto",ml:"auto",variants:{fluid:{true:{maxWidth:"100%"}},responsive:{true:{"@xs":{maxWidth:"$breakpoints$xs"},"@sm":{maxWidth:"$breakpoints$sm"},"@md":{maxWidth:"$breakpoints$md"},"@lg":{maxWidth:"$breakpoints$lg"},"@xl":{maxWidth:"$breakpoints$xl"}}}},defaultVariants:{fluid:!1,responsive:!0}}),kd=Cd,Ed=({xs:e,sm:t,md:n,lg:r,xl:o,wrap:i,gap:a,as:s,display:l,justify:c,direction:u,alignItems:d,alignContent:p,children:h,responsive:g,fluid:m,css:b,...y})=>{const $=(0,f.useMemo)((()=>`calc(${a} * $space$sm)`),[a]);return(0,st.jsx)(kd,{css:{px:$,maxWidth:e?"$breakpoints$xs":t?"$breakpoints$sm":n?"$breakpoints$md":r?"$breakpoints$lg":o?"$breakpoints$xl":"",alignItems:d,alignContent:p,flexWrap:i,display:l,justifyContent:c,flexDirection:u,...b},responsive:g,fluid:m,...y,children:h})};Ed.toString=()=>".nextui-container",Ed.defaultProps={gap:2,xs:!1,sm:!1,md:!1,lg:!1,xl:!1,responsive:!0,fluid:!1,wrap:"wrap",as:"div",display:"block"};const Td=g().memo(Ed),Pd=e=>`calc(${15.25*e}pt + 1px * ${e-1})`,Id=Se("div",{width:"100%",maxWidth:"100%",position:"relative",variants:{color:{default:{bg:"$border"},primary:{bg:"$primary"},secondary:{bg:"$secondary"},success:{bg:"$success"},warning:{bg:"$warning"},error:{bg:"$error"}}},defaultVariants:{color:"default"}}),Md=Se("span",{position:"absolute",left:"50%",top:"50%",minHeight:"100%",display:"inline-flex",jc:"center",ai:"center",transform:"translate(-50%, -50%)",padding:"0 $lg",fontSize:"$base",fontWeight:"bold",textTransform:"capitalize",backgroundColor:"$background",zIndex:"$1",variants:{color:{default:{color:"$text"},primary:{color:"$primary"},secondary:{color:"$secondary"},success:{color:"$success"},warning:{color:"$warning"},error:{color:"$error"}}}}),Nd=({height:e,x:t,y:n,align:r,children:o,textColor:i,css:a,...s})=>{const l=(0,f.useMemo)((()=>r&&"center"!==r?"left"===r||"start"===r?{transform:"translateY(-50%)",left:"7%"}:{transform:"translateY(-50%)",left:"auto",right:"7%"}:""),[r]),c=n?Pd(n/2):0,u=t?Pd(t/2):0;return(0,st.jsx)(Id,{role:"separator",css:{margin:`${c} ${u}`,height:`calc(${e} * 1px)`,...a},...s,children:o&&(0,st.jsx)(Md,{css:{...l},color:i,className:"nextui-divider-text",children:o})})};Nd.toString=()=>".nextui-divider";const Rd=Vi(g().memo(Nd),{x:0,y:0,height:1,align:"center"}),Ld=Se("div",{}),Dd=Se("div",{margin:0,boxSizing:"border-box",padding:"$$gridGapUnit"}),zd=e=>{const t=0===e?"none":"inherit";if("number"==typeof e){const n=100/12*e,r=n>100?"100%":n<0?"0":`${n}%`;return{flexGrow:0,display:t,maxWidth:r,flexBasis:r}}return{flexGrow:1,display:t,maxWidth:"100%",flexBasis:"0"}},Ad=g().forwardRef((({xs:e,sm:t,md:n,lg:r,xl:o,css:i,justify:a,direction:s,alignItems:l,alignContent:c,children:u,className:d,...p},h)=>{const g=(0,f.useMemo)((()=>{const i={xs:e,sm:t,md:n,lg:r,xl:o};return Object.keys(i).reduce(((e,t)=>void 0!==i[t]&&!1!==i[t]?`${e} ${t}`:e),"").trim()}),[e,t,n,r,o]);return(0,st.jsx)(Dd,{ref:h,className:Ui("nextui-grid-item",g,d),css:{alignItems:l,alignContent:c,justifyContent:a,flexDirection:s,"&.xs":{...zd(e)},"@xsMax":{"&.xs":{...zd(e)}},"@sm":{"&.sm":{...zd(t)}},"@md":{"&.md":{...zd(n)}},"@lg":{"&.lg":{...zd(r)}},"@xl":{"&.xl":{...zd(o)}},...i},...p,children:u})}));Ad.displayName="NextUI - Grid Item",Ad.toString=()=>".nextui-grid-item";const Kd=Vi(Ad,{xs:!1,sm:!1,md:!1,lg:!1,xl:!1,className:""}),Od=g().forwardRef((({children:e,css:t,...n},r)=>(0,st.jsx)(Kd,{ref:r,css:{...t},...n,children:e})));Od.displayName="NextUI - Grid",Od.toString=()=>".nextui-grid";const jd=Od,_d=g().forwardRef((({gap:e,wrap:t,css:n,children:r,className:o,...i},a)=>{const s=(0,f.useMemo)((()=>`calc(${e} * $space$3)`),[e]);return(0,st.jsx)(Kd,{ref:a,className:Ui("nextui-grid-container",o),css:{$$gridGapUnit:s,display:"flex",flexWrap:t,boxZizing:"border-box",margin:"calc(-1 * $$gridGapUnit)",width:"calc(100% + $$gridGapUnit * 2)",...n},...i,children:r})}));_d.displayName="NextUI - GridContainer",_d.toString=()=>".nextui-grid-container";const Fd=Vi(_d,{gap:0,wrap:"wrap",className:""});jd.Container=Fd;const Wd=jd,Bd=Se("span",{size:"1px",variants:{inline:{true:{display:"inline-block"},false:{display:"block"}}},defaultVariants:{inline:!1}}),Vd=({x:e,y:t,inline:n,css:r,...o})=>{const i=Pd(e),a=Pd(t);return(0,st.jsx)(Bd,{css:{marginLeft:`${i} !important`,marginTop:`${a} !important`,...r},"aria-hidden":"true",...o})};Vd.toString=()=>".nextui-spacer";const Hd=Vi(g().memo(Vd),{x:1,y:1});var Ud=o(156),Gd=o.n(Ud);const Yd=Vi((({children:e,className:t,visible:n,enterTime:r,leaveTime:o,clearTime:i,name:a,...s})=>{const[l,c]=(0,f.useState)(""),[u,d]=(0,f.useState)(n);return(0,f.useEffect)((()=>{const e=n?"enter":"leave",t=n?r:o;n&&!u&&d(!0),c(`${a}-${e}`);const s=setTimeout((()=>{c(`${a}-${e} ${a}-${e}-active`),clearTimeout(s)}),t),l=setTimeout((()=>{n||(c(""),d(!1)),clearTimeout(l)}),t+i);return()=>{clearTimeout(s),clearTimeout(l)}}),[n,u]),g().isValidElement(e)&&u?g().cloneElement(e,{...s,className:Ui(e.props.className,t,l)}):null}),{visible:!1,enterTime:60,leaveTime:60,clearTime:60,className:"",name:"transition"}),Xd={top:-1e3,left:-1e3,right:-1e3,bottom:-1e3,width:0,height:0},Jd={top:"-1000px",left:"-1000px",transform:"none"},qd=Se("div",{width:"max-content",display:"inherit"}),Zd=Se("span",{display:"none",content:"",size:"$5",zIndex:"-2",background:"$$tooltipColor",br:"0px 0px 2px 0px",position:"absolute"}),Qd=Se("div",{position:"relative",fs:"$xs",padding:0,variants:{hideArrow:{false:{[`& ${Zd}`]:{display:"block"}}}}}),ep=Se("div",{position:"absolute",width:"auto",padding:"$3 $sm",opacity:0,zIndex:"$10",br:"$lg","@motion":{transition:"none"},variants:{color:{default:{$$tooltipColor:"$colors$background",bg:"$$tooltipColor"},primary:{$$tooltipColor:"$colors$primary",bg:"$$tooltipColor"},secondary:{$$tooltipColor:"$colors$secondary",bg:"$$tooltipColor"},success:{$$tooltipColor:"$colors$success",bg:"$$tooltipColor"},warning:{$$tooltipColor:"$colors$warning",bg:"$$tooltipColor"},error:{$$tooltipColor:"$colors$error",bg:"$$tooltipColor"},invert:{$$tooltipColor:"$colors$foreground",bg:"$$tooltipColor"}},contentColor:{default:{$$tooltipTextColor:"$colors$text",color:"$$tooltipTextColor"},primary:{$$tooltipTextColor:"$colors$primary",color:"$$tooltipTextColor"},secondary:{$$tooltipTextColor:"$colors$secondary",color:"$$tooltipTextColor"},success:{$$tooltipTextColor:"$colors$success",color:"$$tooltipTextColor"},warning:{$$tooltipTextColor:"$colors$warning",color:"$$tooltipTextColor"},error:{$$tooltipTextColor:"$colors$error",color:"$$tooltipTextColor"},invert:{$$tooltipTextColor:"$colors$invert",color:"$$tooltipTextColor"}},rounded:{true:{br:"$pill"}},shadow:{true:{bs:"$md"}},animated:{true:{transition:"opacity 0.25s ease 0s, top 0.25s ease 0s"},false:{transition:"none"}}},compoundVariants:[{color:"primary",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"secondary",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"success",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"error",contentColor:"default",css:{$$tooltipTextColor:"$colors$white"}},{color:"invert",contentColor:"default",css:{$$tooltipTextColor:"$colors$background"}}],defaultVariants:{color:"default",contentColor:"default"}}),tp=({children:e,parent:t,visible:n,offset:r,placement:o,rounded:i,animated:a,className:s,hideArrow:l,css:c,...u})=>{const d=We("tooltip"),p=(0,f.useRef)(null),[h,g]=(0,f.useState)(Jd);if(!t)return null;const m=()=>{const e=((e,t,n)=>{const r={top:{top:t.top-n+"px",left:`${t.left+t.width/2}px`,transform:"translate(-50%, -100%)"},topStart:{top:t.top-n+"px",left:`${t.left}px`,transform:"translate(0, -100%)"},topEnd:{top:t.top-n+"px",left:`${t.left+t.width}px`,transform:"translate(-100%, -100%)"},bottom:{top:`${t.bottom+n}px`,left:`${t.left+t.width/2}px`,transform:"translate(-50%, 0)"},bottomStart:{top:`${t.bottom+n}px`,left:`${t.left}px`,transform:"translate(0, 0)"},bottomEnd:{top:`${t.bottom+n}px`,left:`${t.left+t.width}px`,transform:"translate(-100%, 0)"},left:{top:`${t.top+t.height/2}px`,left:t.left-n+"px",transform:"translate(-100%, -50%)"},leftStart:{top:`${t.top}px`,left:t.left-n+"px",transform:"translate(-100%, 0)"},leftEnd:{top:`${t.top+t.height}px`,left:t.left-n+"px",transform:"translate(-100%, -100%)"},right:{top:`${t.top+t.height/2}px`,left:`${t.right+n}px`,transform:"translate(0, -50%)"},rightStart:{top:`${t.top}px`,left:`${t.right+n}px`,transform:"translate(0, 0)"},rightEnd:{top:`${t.top+t.height}px`,left:`${t.right+n}px`,transform:"translate(0, -100%)"}};return r[e]||r.top})(o,(e=>{if(!e||!e.current)return Xd;const t=e.current.getBoundingClientRect();return{...t,width:t.width||t.right-t.left,height:t.height||t.bottom-t.top,top:t.top+document.documentElement.scrollTop,bottom:t.bottom+document.documentElement.scrollTop,left:t.left+document.documentElement.scrollLeft,right:t.right+document.documentElement.scrollLeft}})(t),r);g(e)},{transform:b,top:y,left:v,right:x,bottom:w}=(0,f.useMemo)((()=>((e,t)=>{const n={top:{top:"auto",right:"auto",left:"50%",bottom:"0px",transform:"translate(-50%, 100%) rotate(45deg)"},topStart:{top:"auto",right:"auto",left:"8%",bottom:"0px",transform:"translate(8%, 100%) rotate(45deg)"},topEnd:{top:"auto",right:"8%",left:"auto",bottom:"0px",transform:"translate(8%, 100%) rotate(45deg)"},bottom:{top:"0px",right:"auto",left:"50%",bottom:"auto",transform:"translate(-50%, -100%) rotate(225deg)"},bottomStart:{top:"0px",right:"auto",left:"8%",bottom:"auto",transform:"translate(8%, -100%) rotate(225deg)"},bottomEnd:{top:"0px",right:"8%",left:"auto",bottom:"auto",transform:"translate(8%, -100%) rotate(225deg)"},left:{top:"50%",right:"-4px",left:"auto",bottom:"auto",transform:"translate(100%, -50%) rotate(-45deg)"},leftStart:{top:"calc(15% + 1px)",right:"-4px",left:"auto",bottom:"auto",transform:"translate(100%, 0) rotate(-45deg)"},leftEnd:{top:"auto",right:"-4px",left:"auto",bottom:"calc(15% + 1px)",transform:"translate(100%, 0) rotate(-45deg)"},right:{top:"50%",right:"auto",left:"-4px",bottom:"auto",transform:"translate(-100%, -50%) rotate(135deg)"},rightStart:{top:"calc(15% + 1px)",right:"auto",left:"-4px",bottom:"auto",transform:"translate(-100%, 0) rotate(135deg)"},rightEnd:{top:"auto",right:"auto",left:"-4px",bottom:"calc(15% + 1px)",transform:"translate(-100%, 0) rotate(135deg)"}};return n[e]||n.top})(o)),[o]);$(m),qe((()=>m())),(0,f.useEffect)((()=>{m()}),[n]);const S=(0,f.useMemo)((()=>n?"open":"closed"),[n]);return d?(0,Ud.createPortal)((0,st.jsx)(Yd,{name:"nextui-tooltip-wrapper",visible:n,enterTime:20,leaveTime:20,children:(0,st.jsx)(ep,{className:Ui("nextui-tooltip-content",`nextui-tooltip--${S}`,s),"data-state":S,ref:p,onClick:e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()},animated:a,css:{left:h.left,top:`calc(${h.top} + 6px)`,transform:h.transform,"&.nextui-tooltip-wrapper-enter-active":{opacity:1,top:h.top},...c},...u,children:(0,st.jsxs)(Qd,{role:"tooltip","data-state":S,hideArrow:l,className:Ui("nextui-tooltip",{"nextui-tooltip--with-arrow":!l}),children:[(0,st.jsx)(Zd,{className:"nextui-tooltip-arrow",css:{left:v,top:y,right:x,bottom:w,transform:b}}),e]})})}),d):null};tp.toString=()=>".nextui-tooltip-content";const np=Vi(tp,{placement:"top",offset:12,className:""}),rp=({children:e,initialVisible:t,content:n,offset:r,placement:o,portalClassName:i,enterDelay:a,leaveDelay:s,trigger:l,rounded:c,animated:u,shadow:d,className:p,color:h,contentColor:g,onVisibleChange:m,hideArrow:b,css:y,triggerCss:$,onClick:v,keepMounted:x,visible:w,...S})=>{const C=(0,f.useRef)(),k=(0,f.useRef)(null),[E,T]=(0,f.useState)(t),P={animated:u,visible:E,css:y,shadow:d,offset:r,placement:o,rounded:c,color:h,contentColor:g,hideArrow:b,parent:k,className:i},I=e=>{const t=()=>{clearTimeout(C.current),C.current=void 0},n=e=>{T(e),m(e),t()};t(),C.current=e?window.setTimeout((()=>n(!0)),a):window.setTimeout((()=>n(!1)),s)},M=e=>{"hover"===l&&I(e)};return Ge(k,(()=>"click"===l&&!x&&I(!1))),(0,f.useEffect)((()=>{void 0!==w&&I(w)}),[w]),(0,st.jsxs)(qd,{ref:k,role:"button",tabIndex:-1,className:`nextui-tooltip-button ${p}`,onClick:()=>{"click"===l&&I(!E),null==v||v()},onKeyUp:()=>M(!0),onMouseEnter:()=>M(!0),onMouseLeave:()=>M(!1),onFocus:()=>M(!0),onBlur:()=>M(!1),css:{...$},...S,children:[e,n&&(0,st.jsx)(np,{...P,children:n})]})};rp.toString=()=>".nextui-tooltip";const op=Vi(rp,{initialVisible:!1,hideArrow:!1,animated:!0,shadow:!0,rounded:!1,keepMounted:!1,trigger:"hover",enterDelay:0,leaveDelay:0,className:"",portalClassName:"",onVisibleChange:()=>{}}),ip=Se("div",{display:"flex",position:"relative",width:"initial",maxWidth:"100%",padding:"calc($space$lg * 0.75) $space$lg",br:"$lg",bg:"$background",variants:{color:{default:{$$snippetBorderColor:"$border",$$snippetBgColor:"$background",color:"$text"},primary:{$$snippetBorderColor:"$border",$$snippetBgColor:"$primary",color:"$text"},success:{$$snippetBorderColor:"$success",$$snippetBgColor:"$background",color:"$success"},warning:{$$snippetBorderColor:"$warning",$$snippetBgColor:"$background",color:"$warning"},error:{$$snippetBorderColor:"$error",$$snippetBgColor:"$background",color:"$error"},secondary:{$$snippetBorderColor:"$secondary",$$snippetBgColor:"$background",color:"$secondary"},invert:{$$snippetBorderColor:"$foreground",$$snippetBgColor:"$foreground",color:"$background"}},borderWeight:{light:{$$borderWeight:"$light"},normal:{$$borderWeight:"$normal"},bold:{$$borderWeight:"$bold"},extrabold:{$$borderWeight:"$extrabold"},black:{$$borderWeight:"$black"}},bordered:{true:{border:"$$borderWeight solid $$snippetBorderColor"}},filled:{true:{backgroundColor:"$$snippetBgColor"}}},defaultVariants:{color:"default",borderWeight:"normal",filled:!1}}),ap=Se("pre",{margin:0,padding:0,border:"none",br:0,bgColor:"transparent",color:"inherit",fontSize:"$xs","*":{margin:0,padding:0,fontSize:"inherit",color:"inherit"},variants:{withCopyButton:{true:{width:"calc(100% - 2 * $lg)"},false:{width:"100%"}}}}),sp=Se("svg",{}),lp=Se("button",{display:"inline-flex",jc:"center",border:"none",ai:"flex-start",bg:"transparent",width:"calc(2 * $space$lg)",br:"$xs",color:"inherit",transition:"opacity 0.2s ease 0s",cursor:"pointer",us:"none","@motion":{transition:"none"},"&:hover":{opacity:"0.7"},[`& ${sp}`]:{path:{fill:"$accents6"}}},Me),cp=({size:e,fill:t,width:n,height:r,...o})=>(0,st.jsx)(sp,{xmlns:"http://www.w3.org/2000/svg",width:e||n,height:e||r,viewBox:"0 0 24 24",...o,children:(0,st.jsx)("path",{fill:t,d:"M20 2H10c-1.103 0-2 .897-2 2v4H4c-1.103 0-2 .897-2 2v10c0 1.103.897 2 2 2h10c1.103 0 2-.897 2-2v-4h4c1.103 0 2-.897 2-2V4c0-1.103-.897-2-2-2zM4 20V10h10l.002 10H4zm16-6h-4v-4c0-1.103-.897-2-2-2h-4V4h10v10z"})});cp.toString=()=>".nextui-snippet-copy-icon";const up=Vi(f.memo(cp),{width:18,height:18}),dp=({bordered:e,children:t,symbol:n,showTooltip:r,text:o,tooltipCopyText:i,tooltipCopiedText:a,tooltipColor:s,copy:l,...c})=>{const[u,d]=(0,f.useState)(!1),{copy:p}=Je(),h=(0,f.useRef)(null),g=o&&Array.isArray(o),m=(0,f.useMemo)((()=>"prevent"!==l),[l]),b=(0,f.useMemo)((()=>g?(e=>e.reduce(((e,t)=>t?e?`${e}\n${t}`:t:e),""))(o):t?h.current?h.current.textContent:"":o),[h.current,t,o]),y=(0,f.useMemo)((()=>{const e=n.trim();return e?`${e} `:""}),[n]),$=()=>{b&&m&&(p(b),"slient"!==l&&d(!0))};return(0,st.jsxs)(ip,{...c,children:[g?o.map(((e,t)=>(0,st.jsx)(ap,{css:{"&:before":{content:y,us:"none"}},className:"nextui-snippet-pre",children:e},`${t}-${e}`))):(0,st.jsx)(ap,{css:{"&:before":{content:y,us:"none"}},className:"nextui-snippet-pre",ref:h,children:t||o}),m&&"slient"!==l?(0,st.jsx)(op,{hideArrow:!0,rounded:!0,color:s,content:u?a:i,onVisibleChange:()=>{setTimeout((()=>{u&&d(!1)}),400)},children:(0,st.jsx)(lp,{className:"nextui-snippet-copy-button",onClick:$,children:(0,st.jsx)(up,{})})}):"prevent"!==l&&(0,st.jsx)(lp,{className:"nextui-snippet-copy-button",onClick:$,children:(0,st.jsx)(up,{})})]})};dp.toString=()=>".nextui-snippet";const pp=Vi(g().memo(dp),{symbol:"$",showTooltip:!0,copy:"default",tooltipColor:"default",tooltipCopyText:"Copy",tooltipCopiedText:"Copied"}),hp=Se("div",{display:"flex",position:"relative",boxSizing:"border-box",variants:{fluid:{true:{width:"100%"}}},defaultVariants:{fluid:!0}}),fp=hp,gp=({children:e,gap:t,justify:n,align:r,wrap:o,css:i,...a})=>(0,st.jsx)(fp,{css:{flexWrap:o,$$rowGap:`calc(${t} * $space$lg)`,marginLeft:`calc(${t} * $space$lg / 2)`,marginRight:`calc(${t} * $space$lg / 2)`,justifyContent:n,alignItems:r,...i},...a,children:e});gp.toString=()=>".nextui-row";const mp=Vi(g().memo(gp),{gap:0,wrap:"nowrap",justify:"flex-start",align:"flex-start"}),bp=e=>{if("undefined"!=typeof document||!e){const t=yp(e)?e.replace("var(","").replace(")",""):`--${e}`;return getComputedStyle(document.documentElement).getPropertyValue(t)}return""},yp=e=>!(!e||0!==(null==e?void 0:e.indexOf("var(")));var $p,vp;const xp=Se("svg",{ml:"$1",as:"center",display:"inline-flex",color:"currentColor"}),wp=Se("a",{display:"inline-flex",alignItems:"baseline",lineHeight:"inherit",textDecoration:"none",width:"fitContent","&:hover":{opacity:.8},"@motion":{transition:"none"},variants:{color:{default:{color:"$link"},text:{color:"$text"},primary:{color:"$primary"},secondary:{color:"$secondary"},success:{color:"$success"},warning:{color:"$warning"},error:{color:"$error"}},underline:{true:{"&:hover, &:active, &:focus":{textDecoration:"underline"}}},block:{true:{padding:"$2 $4",borderRadius:"$base"}},animated:{true:{transition:"$default"}}},compoundVariants:[{color:"default",block:!0,css:{"&:hover":{backgroundColor:((e,t=1)=>{if(!e)return"";const n=yp(e)?bp(e):e;if(/#[a-fA-F0-9]{3,6}/g.test(n))return((e,t=1)=>{let n=0,r=0,o=0;return 4==e.length?(n="0x"+e[1]+e[1],r="0x"+e[2]+e[2],o="0x"+e[3]+e[3]):7==e.length&&(n="0x"+e[1]+e[2],r="0x"+e[3]+e[4],o="0x"+e[5]+e[6]),`rgba(${+n}, ${+r},${+o},${t})`})(n,t);if(!/^#|rgb|RGB/.test(n))return n;const[r,o,i]=(e=>{const t=yp(e)?bp(e):e;if("#"===t.charAt(0))return(e=>{const t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,n,r)=>`${t}${t}${n}${n}${r}${r}`)),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!n)throw new Error(`Next UI: Unsupported ${e} color.`);return[Number.parseInt(n[1],16),Number.parseInt(n[2],16),Number.parseInt(n[3],16)]})(t);const n=t.replace(/ /g,""),r=t.substr(0,4),o=n.match(/\((.+)\)/);if(!r.startsWith("rgb")||!o)throw new Error('Next UI: Only support ["RGB", "RGBA", "HEX"] color.');return o[1].split(",").map((e=>Number.parseFloat(e)))})(n);return`rgba(${r}, ${o}, ${i}, ${t>1?1:t<0?0:t})`})(null==($p=Pe.colors)||null==(vp=$p.link)?void 0:vp.value,.2)}}},{color:"primary",block:!0,css:{"&:hover":{backgroundColor:"$primaryLight"}}},{color:"secondary",block:!0,css:{"&:hover":{backgroundColor:"$secondaryLight"}}},{color:"success",block:!0,css:{"&:hover":{backgroundColor:"$successLight"}}},{color:"warning",block:!0,css:{"&:hover":{backgroundColor:"$warningLight"}}},{color:"error",block:!0,css:{"&:hover":{backgroundColor:"$errorLight"}}}],defaultVariants:{color:"default",animated:!0}}),Sp=wp,Cp=()=>(0,st.jsxs)(xp,{viewBox:"0 0 24 24",width:"1em",height:"1em",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",shapeRendering:"geometricPrecision",className:"nextui-link-icon",children:[(0,st.jsx)("path",{d:"M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"}),(0,st.jsx)("path",{d:"M15 3h6v6"}),(0,st.jsx)("path",{d:"M10 14L21 3"})]});Cp.toString=()=>".nextui-link-icon";const kp=g().memo(Cp),Ep=g().forwardRef((({children:e,icon:t,...n},r)=>(0,st.jsxs)(Sp,{...n,ref:r,children:[e,t&&(0,st.jsx)(kp,{})]})));Ep.toString=()=>".nextui-link";const Tp=Vi(Ep,{icon:!1}),Pp=Ee({"0%":{opacity:"0.2"},"20%":{opacity:1},"100%":{opacity:"0.2"}}),Ip=Ee({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Mp=Ee({"0%":{transform:"translate(0px, 0px)"},"50%":{transform:"translate(0, calc(-$$loadingSize * 1.4))"},"100%":{transform:"translate(0px, 0px)"}}),Np=Ee({"0%":{opacity:1},"100%":{opacity:.15}}),Rp=Se("div",{d:"inline-flex",fd:"column",ai:"center",position:"relative",variants:{color:{white:{$$loadingColor:"$colors$white"},default:{$$loadingColor:"$colors$primary"},primary:{$$loadingColor:"$colors$primary"},secondary:{$$loadingColor:"$colors$secondary"},success:{$$loadingColor:"$colors$success"},warning:{$$loadingColor:"$colors$warning"},error:{$$loadingColor:"$colors$error"}},textColor:{white:{$$loadingTextColor:"$colors$white"},default:{$$loadingTextColor:"$colors$text"},primary:{$$loadingTextColor:"$colors$primary"},secondary:{$$loadingTextColor:"$colors$secondary"},success:{$$loadingTextColor:"$colors$success"},warning:{$$loadingTextColor:"$colors$warning"},error:{$$loadingTextColor:"$colors$error"}}},defaultVariants:{color:"default",textColor:"default"}}),Lp=Se("div",{size:"100%",position:"relative",left:"50%",top:"50%"}),Dp=Se("div",{d:"flex",fd:"column",jc:"center",ai:"center",position:"relative",variants:{size:{xs:{size:"$6"},sm:{size:"$8"},md:{size:"$9"},lg:{size:"$11"},xl:{size:"$12"}}}}),zp=Se("span",{bg:"$$loadingColor",position:"absolute",top:"-3.9%",width:"24%",height:"8%",left:"-10%",br:"$lg",animation:`${Np} 1.2s linear 0s infinite normal none running`,"&:nth-child(1)":{animationDelay:"-1.2s",transform:"rotate(0deg) translate(146%)"},"&:nth-child(2)":{animationDelay:"-1.1s",transform:"rotate(30deg) translate(146%)"},"&:nth-child(3)":{animationDelay:"-1s",transform:"rotate(60deg) translate(146%)"},"&:nth-child(4)":{animationDelay:"-0.9s",transform:"rotate(90deg) translate(146%)"},"&:nth-child(5)":{animationDelay:"-0.8s",transform:"rotate(120deg) translate(146%)"},"&:nth-child(6)":{animationDelay:"-0.7s",transform:"rotate(150deg) translate(146%)"},"&:nth-child(7)":{animationDelay:"-0.6s",transform:"rotate(180deg) translate(146%)"},"&:nth-child(8)":{animationDelay:"-0.5s",transform:"rotate(210deg) translate(146%)"},"&:nth-child(9)":{animationDelay:"-0.4s",transform:"rotate(240deg) translate(146%)"},"&:nth-child(10)":{animationDelay:"-0.3s",transform:"rotate(270deg) translate(146%)"},"&:nth-child(11)":{animationDelay:"-0.2s",transform:"rotate(300deg) translate(146%)"},"&:nth-child(12)":{animationDelay:"-0.1s",transform:"rotate(330deg) translate(146%)"}}),Ap=Se("span",{position:"absolute",top:0,left:0,right:0,bottom:0,size:"100%",dflex:"center",bgColor:"transparent",us:"none",variants:{size:{xs:{$$loadingSize:"$space$8",$$loadingBorder:"$space$1"},sm:{$$loadingSize:"$space$10",$$loadingBorder:"$space$1"},md:{$$loadingSize:"$space$12",$$loadingBorder:"calc($space$1 * 1.5)"},lg:{$$loadingSize:"$space$15",$$loadingBorder:"$space$2"},xl:{$$loadingSize:"$space$18",$$loadingBorder:"$space$3"}},type:{default:{d:"flex",br:"$rounded",position:"relative",size:"$$loadingSize",i:{top:"0px",size:"100%",position:"absolute",br:"inherit"},"._1":{border:"$$loadingBorder solid $$loadingColor",borderTop:"$$loadingBorder solid transparent",borderLeft:"$$loadingBorder solid transparent",borderRight:"$$loadingBorder solid transparent",animation:`${Ip} 0.8s ease infinite`},"._2":{border:"$$loadingBorder dotted $$loadingColor",borderTop:"$$loadingBorder solid transparent",borderLeft:"$$loadingBorder solid transparent",borderRight:"$$loadingBorder solid transparent",animation:`${Ip} 0.8s linear infinite`,opacity:.5},"._3":{display:"none"}},points:{d:"flex",position:"relative",transform:"translate(0, calc($$loadingSize * 0.6))",i:{size:"$$loadingSize",margin:"0 3px",bg:"$$loadingColor"},"._1":{br:"$rounded",animation:`${Mp} 0.75s ease infinite`},"._2":{br:"$rounded",animation:`${Mp} 0.75s ease infinite 0.25s`},"._3":{br:"$rounded",animation:`${Mp} 0.75s ease infinite 0.5s`}},"points-opacity":{d:"flex",position:"relative",i:{display:"inline-block",size:"$$loadingSize",br:"$rounded",bg:"$$loadingColor",margin:"0 1px",animation:`${Pp} 1.4s infinite both`},"._2":{animationDelay:"0.2s"},"._3":{animationDelay:"0.4s"}},spinner:{},gradient:{display:"flex",position:"relative",size:"$$loadingSize","._1":{position:"absolute",size:"100%",border:"0px",animation:`${Ip} 1s linear infinite`,top:"0px",br:"$rounded",bg:"linear-gradient(0deg, $background 33%,$$loadingColor 100%)"},"._2":{top:"2px",position:"absolute",size:"calc(100% - 4px)",border:"0px",bg:"$background",br:"$rounded"},"._3":{display:"none"}}}},compoundVariants:[{size:"xs",type:"points-opacity",css:{$$loadingSize:"$space$1"}},{size:"sm",type:"points-opacity",css:{$$loadingSize:"$space$2"}},{size:"md",type:"points-opacity",css:{$$loadingSize:"$space$3"}},{size:"lg",type:"points-opacity",css:{$$loadingSize:"$space$4"}},{size:"xl",type:"points-opacity",css:{$$loadingSize:"$space$5"}},{size:"xs",type:"points",css:{$$loadingSize:"$space$1"}},{size:"sm",type:"points",css:{$$loadingSize:"$space$2"}},{size:"md",type:"points",css:{$$loadingSize:"$space$3"}},{size:"lg",type:"points",css:{$$loadingSize:"$space$4"}},{size:"xl",type:"points",css:{$$loadingSize:"$space$5"}}],defaultVariants:{type:"default"}}),Kp=Se("label",{mt:"$1",color:"$$loadingTextColor",fontSize:"$$loadingSize","*":{margin:0},variants:{size:{xs:{fontSize:"$space$5",marginTop:"$2"},sm:{fontSize:"$space$6",marginTop:"$3"},md:{fontSize:"$base",marginTop:"$4"},lg:{fontSize:"$space$10",marginTop:"$4"},xl:{fontSize:"$space$11",marginTop:"$5"}}}}),Op=({children:e,size:t,color:n,textColor:r,className:o,...i})=>{const a=Array.isArray(e)?(null==e?void 0:e.length)>1&&void 0!==e[0]:void 0!==e,s=e&&a?"":"Loading";return(0,st.jsxs)(Dp,{className:Ui("nextui-spinner",o),color:n,size:t,...i,children:[(0,st.jsx)(Lp,{className:"nextui-spinner-container","aria-label":s,children:[...new Array(12)].map(((e,t)=>(0,st.jsx)(zp,{},`nextui-spinner-${t}`)))}),e&&(0,st.jsx)(Kp,{size:t,color:r,children:e})]})};Op.toString=()=>".nextui-spinner";const jp=Op,_p=({children:e,size:t,gradientBackground:n,loadingCss:r,type:o,...i})=>{const a=e?"":"Loading",s=(0,f.useMemo)((()=>"gradient"===o?{"._2":{bg:n}}:{}),[o]);return(0,st.jsx)(Rp,{...i,children:"spinner"===o?(0,st.jsx)(jp,{size:t,children:e}):(0,st.jsxs)(st.Fragment,{children:[(0,st.jsxs)(Ap,{className:`nextui-loading nextui-loading-${o}`,css:{...r,...s},type:o,size:t,"aria-label":a,children:[(0,st.jsx)("i",{className:"_1"}),(0,st.jsx)("i",{className:"_2"}),(0,st.jsx)("i",{className:"_3"})]}),e&&(0,st.jsx)(Kp,{size:t,className:"nextui-loading-label",children:e})]})})};_p.toString=()=>".nextui-loading";const Fp=Vi(g().memo(_p),{size:"md",type:"default"}),Wp={color:"primary",size:"md",textColor:"default",disabledAll:!1,inGroup:!1},Bp=g().createContext(Wp),Vp=Se("input",{},Re),Hp=Se("span",{fontSize:"$$radioSize",us:"none",d:"inline-flex",ai:"center",variants:{color:{default:{color:"$text"},primary:{color:"$primary"},secondary:{color:"$secondary"},success:{color:"$success"},warning:{color:"$warning"},error:{color:"$error"}},disabled:{true:{color:"$accents4"}}}}),Up=Se("span",{size:"$$radioSize",br:"$$radioRadii",position:"relative",d:"inline-block",mr:"calc($$radioSize * 0.375)","&:after":{content:"",d:"block",position:"absolute",size:"$$radioSize",br:"$$radioRadii",boxSizing:"border-box",border:"2px solid $border"}},Me),Gp=Se("label",{d:"flex",w:"initial",ai:"flex-start",position:"relative",fd:"column",jc:"flex-start",cursor:"pointer","@motion":{[`& ${Up}`]:{transition:"none","&:after":{transition:"none"}}},variants:{color:{default:{$$radioColor:"$colors$primary",$$radioColorHover:"$colors$primaryDark"},primary:{$$radioColor:"$colors$primary",$$radioColorHover:"$colors$primaryDark"},secondary:{$$radioColor:"$colors$secondary",$$radioColorHover:"$colors$secondaryDark"},success:{$$radioColor:"$colors$success",$$radioColorHover:"$colors$successDark"},warning:{$$radioColor:"$colors$warning",$$radioColorHover:"$colors$warningDark"},error:{$$radioColor:"$colors$error",$$radioColorHover:"$colors$errorDark"}},size:{xs:{$$radioSize:"$space$7"},sm:{$$radioSize:"$space$8"},md:{$$radioSize:"$space$9"},lg:{$$radioSize:"$space$10"},xl:{$$radioSize:"$space$11"}},disabled:{true:{cursor:"not-allowed",$$radioColor:"$colors$accents4"}},squared:{true:{$$radioRadii:"$space$1"},false:{$$radioRadii:"$radii$rounded"}},active:{true:{[`& ${Up}`]:{"&:after":{border:"calc($$radioSize * 0.34) solid $$radioColor"}},"&:hover":{[`& ${Up}`]:{"&:after":{border:"calc($$radioSize * 0.34) solid $$radioColorHover"}}}}},animated:{true:{[`& ${Up}`]:{transition:"$default","&:after":{transition:"$default"}}},false:{[`& ${Up}`]:{transition:"none","&:after":{transition:"none"}}}}},defaultVariants:{size:"md",squared:!1,animated:!0},compoundVariants:[{active:!1,disabled:!1,css:{"&:hover":{[`& ${Up}`]:{bg:"$border"}}}}]}),Yp=Se("div",{border:0,margin:0,padding:0,display:"flex",fd:"column",variants:{size:{xs:{$$radioGroupGap:"$space$7"},sm:{$$radioGroupGap:"$space$8"},md:{$$radioGroupGap:"$space$9"},lg:{$$radioGroupGap:"$space$10"},xl:{$$radioGroupGap:"$space$11"}},row:{true:{fd:"row",[`& ${Gp}`]:{marginTop:0,marginRight:"$$radioGroupGap"}},false:{[`& ${Gp}`]:{marginTop:"$$radioGroupGap",marginRight:0}}}},defaultVariants:{row:!1}}),Xp=Se("span",{color:"$accents4",fontSize:"calc($$radioSize * 0.85)",paddingLeft:"calc($$radioSize + $$radioSize * 0.375)"}),Jp={size:"md",color:"default",textColor:"default",disabled:!1,preventDefault:!0},qp=({checked:e,onChange:t,disabled:n,color:r,size:o,textColor:i,value:a,preventDefault:s,children:l,...c})=>{const[u,d]=(0,f.useState)(!!e),{value:p,disabledAll:h,inGroup:m,color:b,size:y,textColor:$,updateState:v}=g().useContext(Bp),[x,w]=je(l,Xp);(0,f.useEffect)((()=>{d(p===a)}),[p,a]);const S=(0,f.useMemo)((()=>n||h),[n,h]),C="default"!==r?r:b,k="md"!==o?o:y,E="default"!==i?i:$,T=e=>{if(S||m&&u)return;const n={target:{checked:!u},stopPropagation:e.stopPropagation,preventDefault:e.preventDefault,nativeEvent:e};d(!u),m&&v&&v(a),t&&t(n)},{bindings:P}=rt((e=>{T(e)}),[Qe.Enter,Qe.Space],{disableGlobalEvent:!0,preventDefault:s});return(0,f.useEffect)((()=>{void 0!==e&&d(Boolean(e))}),[e]),(0,st.jsxs)(Gp,{"aria-checked":u,disabled:S,active:u,size:k,color:C,...c,...P,children:[(0,st.jsx)(Vp,{type:"radio",tabIndex:-1,value:a,checked:u,onChange:T,className:"nextui-radio-input",...c}),(0,st.jsxs)(Hp,{color:E,disabled:S,className:"nextui-radio-name",children:[(0,st.jsx)(Up,{tabIndex:S?-1:0,className:Ui("nextui-radio-point",{"nextui-radio-active":u,"nextui-radio-disabled":S})}),x]}),w&&w]})};qp.defaultProps=Jp,qp.toString=()=>".nextui-radio";const Zp=Vi(qp,Jp),Qp=({disabled:e,onChange:t,value:n,size:r,color:o,textColor:i,children:a,initialValue:s,...l})=>{const[c,u]=(0,f.useState)(s),d=e=>{u(e),t&&t(e)},p=(0,f.useMemo)((()=>({updateState:d,disabledAll:e,inGroup:!0,size:r,color:o,textColor:i,value:c})),[e,c]);return(0,f.useEffect)((()=>{void 0!==n&&u(n)}),[n]),(0,st.jsx)(Bp.Provider,{value:p,children:(0,st.jsx)(Yp,{role:"radiogroup",size:r,...l,children:a})})};Qp.toString=()=>".nextui-radio-group";const eh=Vi(Qp,{disabled:!1,size:"md",color:"default",textColor:"default"});Zp.Group=eh,Zp.Description=Xp,Zp.Desc=Xp;const th=Zp,nh=Se("p",{variants:{weight:{hairline:{fontWeight:"$hairline"},thin:{fontWeight:"$thin"},light:{fontWeight:"$light"},normal:{fontWeight:"$normal"},medium:{fontWeight:"$medium"},semibold:{fontWeight:"$semibold"},bold:{fontWeight:"$bold"},extrabold:{fontWeight:"$extrabold"},black:{fontWeight:"$black"}}}}),rh=({children:e,tag:n,color:r,transform:o,margin:i,size:a,css:s,...l})=>{const c=(0,f.useMemo)((()=>(e=>null!=t.find((t=>t===e)))(r)?"default"===r?"$text":`$${r}`:r),[r]),u=(0,f.useMemo)((()=>a?"number"==typeof a?`${a}px`:a:"inherit"),[a]),d=(0,f.useMemo)((()=>i?"number"==typeof i?`${a}px`:i:"inherit"),[i]);return(0,st.jsx)(nh,{as:n,css:{color:c,fontSize:a?u:"",margin:d,tt:o,...s},...l,children:e})};rh.toString=()=>".nextui-text-child";const oh=Vi(g().memo(rh),{color:"default"}),ih=(e,t,n,r)=>{if(!e.length)return t;const o=e.slice(1,e.length);return(0,st.jsx)(oh,{tag:e[0],size:n,transform:r,children:ih(o,t,n)})},ah=({h1:e,h2:t,h3:n,h4:r,h5:o,h6:i,b:a,small:s,i:l,span:c,del:u,em:d,blockquote:p,transform:h,size:g,margin:m,children:b,...y})=>{const $={h1:e,h2:t,h3:n,h4:r,h5:o,h6:i,blockquote:p},v={span:c,small:s,b:a,em:d,i:l,del:u},x=Object.keys($).filter((e=>$[e])),w=Object.keys(v).filter((e=>v[e])),S=(0,f.useMemo)((()=>x[0]?x[0]:w[0]?w[0]:"p"),[x,w]),C=w.filter((e=>e!==S)),k=(0,f.useMemo)((()=>C.length?ih(C,b,g,h):b),[C,b,g,h]);return(0,st.jsx)(oh,{transform:h,tag:S,margin:m,size:g,...y,children:k})};ah.toString=()=>".nextui-text";const sh=Vi(g().memo(ah),{h1:!1,h2:!1,h3:!1,h4:!1,h5:!1,h6:!1,b:!1,small:!1,transform:"none",i:!1,span:!1,del:!1,em:!1,blockquote:!1,color:"default"}),lh=Se("label",{WebkitTapHighlightColor:"transparent",d:"inline-block",verticalAlign:"center",whiteSpace:"nowrap",us:"none",transition:"$default",padding:"$1 0",position:"relative",cursor:"pointer","@motion":{transition:"none"},variants:{color:{default:{$$switchColor:"$colors$primary",$$switchColorShadow:"$colors$primaryShadow",$$switchColorHover:"$colors$primaryDark"},primary:{$$switchColor:"$colors$primary",$$switchColorShadow:"$colors$primaryShadow",$$switchColorHover:"$colors$primaryDark"},secondary:{$$switchColor:"$colors$secondary",$$switchColorShadow:"$colors$secondaryShadow",$$switchColorHover:"$colors$secondaryDark"},success:{$$switchColor:"$colors$success",$$switchColorShadow:"$colors$successShadow",$$switchColorHover:"$colors$successDark"},warning:{$$switchColor:"$colors$warning",$$switchColorShadow:"$colors$warningShadow",$$switchColorHover:"$colors$warningDark"},error:{$$switchColor:"$colors$error",$$switchColorShadow:"$colors$errorShadow",$$switchColorHover:"$colors$errorDark"}},size:{xs:{$$switchWidth:"$space$12",$$switchHeight:"$space$9",width:" $$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},sm:{$$switchWidth:"$space$14",$$switchHeight:"$space$10",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},md:{$$switchWidth:"$space$15",$$switchHeight:"$space$11",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},lg:{$$switchWidth:"$space$17",$$switchHeight:"$space$12",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"},xl:{$$switchWidth:"$space$18",$$switchHeight:"$space$13",width:"$$switchWidth",maxWidth:"$$switchWidth",height:"$$switchHeight"}},borderWeight:{light:{$$switchBorderW:"$borderWeights$light"},normal:{$$switchBorderW:"$borderWeights$normal"},bold:{$$switchBorderW:"$borderWeights$bold"},extrabold:{$$switchBorderW:"$borderWeights$extrabold"},black:{$$switchBorderW:"$borderWeights$black"}},disabled:{true:{cursor:"not-allowed"}},animated:{false:{transition:"none"}}},defaultVariants:{color:"default",size:"md",borderWeight:"normal"}}),ch=Se("input",{},Re),uh=Se("span",{position:"absolute",display:"flex",size:"calc($$switchHeight * 0.7)",jc:"center",ai:"center",top:"50%",transform:"translateY(-50%)",left:"calc($$switchWidth / 15)",transition:"left 0.25s ease, width 0.2s ease",bg:"$background",br:"$pill","& svg":{bg:"transparent",size:"calc($$switchHeight * 0.44)"},"@motion":{transition:"none"}}),dh=Se("div",{opacity:1,width:"$$switchWidth",height:"$$switchHeight",transition:"$default",position:"relative",overflow:"hidden",padding:0,br:"$pill",bg:"$accents2","@motion":{transition:"none"},variants:{checked:{true:{bg:"$$switchColor",[`& ${uh}`]:{left:"calc(100% - ($$switchWidth / 15) - $$switchHeight * 0.7)"},"&:hover:not(&:active)":{bg:"$$switchColorHover"}}},bordered:{true:{bg:"transparent",border:"$$switchBorderW solid $border","&:hover":{borderColor:"$$switchColor"},[`& ${uh}`]:{left:"calc(($$switchWidth / 15) - ($$switchBorderW / 2))",bg:"$accents2"}}},squared:{true:{br:"2px",[`& ${uh}`]:{br:"2px"}}},shadow:{true:{}},disabled:{true:{borderColor:"$accents2",bg:"$accents2",[`& ${uh}`]:{bg:"$accents3"}}},animated:{true:{"&:active":{[`& ${uh}`]:{width:"calc($$switchHeight * 0.7 + ($$switchWidth / 10))"}}},false:{transition:"none",[`& ${uh}`]:{transition:"none"}}}},compoundVariants:[{checked:!0,disabled:!0,css:{bg:"$accents3",[`& ${uh}`]:{bg:"$accents2"},"&:hover:not(&:active)":{bg:"$accents3"}}},{shadow:!0,checked:!0,css:{normalShadowVar:"$$switchColorShadow"}},{animated:!0,checked:!1,css:{"&:active":{[`& ${uh}`]:{left:"calc($$switchWidth / 7.5)"}}}},{animated:!0,checked:!0,css:{"&:active":{[`& ${uh}`]:{left:"calc(100% - ($$switchWidth / 5) - $$switchHeight * 0.7)"}}}},{checked:!0,bordered:!0,css:{bg:"$$switchColor",border:"$$switchBorderW solid transparent","&:hover:not(&:active)":{borderColor:"transparent"},[`& ${uh}`]:{left:"calc(100% - ($$switchWidth / 15) - $$switchHeight * 0.7 + ($$switchBorderW / 2))",bg:"$background"}}}]},Me),ph=({initialChecked:e,checked:t,disabled:n,onChange:r,squared:o,bordered:i,shadow:a,icon:s,iconOn:l,iconOff:c,animated:u,preventDefault:d,...p})=>{const[h,g]=(0,f.useState)(e),m=(0,f.useCallback)((e=>{if(n)return;const t={target:{checked:!h},stopPropagation:e.stopPropagation,preventDefault:e.preventDefault,nativeEvent:e};g(!h),r&&r(t)}),[n,h,r]),{bindings:b}=rt((e=>{m(e)}),[Qe.Enter,Qe.Space],{disableGlobalEvent:!0,preventDefault:d}),y=(0,f.useMemo)((()=>{const e=s||l||c,t=Boolean(l),n=Boolean(c);return e?t&&h?l:n&&!h?c:e:null}),[h,s,l,c]);(0,f.useEffect)((()=>{void 0!==t&&g(t)}),[t]);const $=(0,f.useMemo)((()=>h?"checked":"unchecked"),[h]);return(0,st.jsxs)(lh,{"data-state":$,disabled:n,animated:u,...p,children:[(0,st.jsx)(ch,{tabIndex:-1,type:"checkbox",className:Ui("nextui-switch-input"),"data-state":$,disabled:n,checked:h,onChange:m}),(0,st.jsx)(dh,{role:"switch",tabIndex:n?-1:0,checked:h,"aria-checked":h,"aria-disabled":n,animated:u,disabled:n,squared:o,bordered:i,shadow:a,"data-state":$,className:Ui("nextui-switch",`nextui-switch--${$}`,{"nextui-switch-checked":h,"nextui-switch-disabled":n}),...b,children:(0,st.jsx)(uh,{className:"nextui-switch-circle",children:y})})]})};ph.toString=()=>".nextui-switch";const hh=Vi(g().memo(ph),{disabled:!1,bordered:!1,shadow:!1,squared:!1,animated:!0,preventDefault:!0,initialChecked:!1}),fh=Se("div",{position:"relative",display:"inline-block",zIndex:"$max",outline:"none",width:"100%",margin:"$9 auto",verticalAlign:"middle","@sm":{width:"90%",maxWidth:"90%"}}),gh=Se("div",{position:"fixed",top:0,left:0,right:0,bottom:0,size:"100%",pe:"none",zIndex:"$max","@motion":{transition:"none"},variants:{blur:{true:{opacity:1,transition:"background 0.35s cubic-bezier(0.4, 0, 0.2, 1)",backdropFilter:"saturate(180%) blur(20px)",bg:"rgba(0, 0, 0, 0.1)"},false:{bg:"$black",opacity:"$$backdropOpacity",transition:"opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1)"}},animated:{false:{transition:"none"}}}}),mh=Se("div",{position:"fixed",top:0,left:0,right:0,bottom:0,overflow:"auto",zIndex:"$max",WebkitOverflowScrolling:"touch",boxSizing:"border-box",textAlign:"center","&:before":{content:"",display:"inline-block",width:0,height:"100%",verticalAlign:"middle"},".nextui-backdrop-wrapper-enter .nextui-backdrop-layer-default":{opacity:0},".nextui-backdrop-wrapper-enter-active .nextui-backdrop-layer-default":{opacity:"$$backdropOpacity"},".nextui-backdrop-wrapper-leave .nextui-backdrop-layer-default":{opacity:"$$backdropOpacity"},".nextui-backdrop-wrapper-leave-active .nextui-backdrop-layer-default":{opacity:0},".nextui-backdrop-wrapper-enter .nextui-backdrop-layer-blur":{bg:"rgba(0, 0, 0, 0.1)"},".nextui-backdrop-wrapper-enter-active .nextui-backdrop-layer-blur":{bg:"rgba(0, 0, 0, 0.4)"},".nextui-backdrop-wrapper-leave .nextui-backdrop-layer-blur":{bg:"rgba(0, 0, 0, 0.4)"},".nextui-backdrop-wrapper-leave-active .nextui-backdrop-layer-blur":{bg:"rgba(0, 0, 0, 0.1)"},variants:{fullScreen:{true:{display:"inline-flex",overflow:"hidden",[`& ${fh}`]:{width:"100vw",maxWidth:"100vw",height:"100vh",margin:0},[`& ${gh}`]:{display:"none"}}}},defaultVariants:{fullScreen:!1}}),bh=g().memo((({children:e,onClick:t,onKeyPress:n,visible:r,maxWidth:o,blur:i,animated:a,opacity:s,preventDefault:l,className:c,css:u,...d})=>{const[,p,h]=m(!1),g=e=>{h.current||t&&t(e)},b=(0,f.useCallback)((e=>{e.stopPropagation()}),[]),y=()=>{if(!h.current)return;const e=setTimeout((()=>{p(!1),clearTimeout(e)}),0)},{bindings:$}=rt((e=>{n&&n(e)}),[Qe.Escape,Qe.Space],{disableGlobalEvent:!0,preventDefault:l}),v=(0,f.useMemo)((()=>r?"open":"closed"),[r]),x=(0,f.useMemo)((()=>(0,st.jsxs)(mh,{tabIndex:-1,role:"button","aria-hidden":!0,"data-state":v,onClick:g,onMouseUp:y,css:{$$backdropOpacity:s,...u},className:Ui("nextui-backdrop",`nextui-backdrop--${v}`,c),...$,...d,children:[(0,st.jsx)(gh,{className:Ui("nextui-backdrop-layer",i?"nextui-backdrop-layer-blur":"nextui-backdrop-layer-default"),animated:a,blur:i}),(0,st.jsx)(fh,{className:"nextui-backdrop-content",onClick:b,css:{maxWidth:o},onMouseDown:()=>p(!0),children:e})]})),[e]);return(0,st.jsx)(st.Fragment,{children:a?(0,st.jsx)(Yd,{name:"nextui-backdrop-wrapper",visible:r,enterTime:20,leaveTime:20,clearTime:150,children:x}):r?x:null})}));bh.toString=()=>".nextui-backdrop";const yh=Vi(bh,{onClick:()=>{},visible:!1,blur:!1,animated:!0,preventDefault:!0,opacity:.5,className:""}),$h=Se("div",{d:"inline-flex",p:"0 $sm",jc:"center",ai:"center",w:"max-content",maxWidth:"100%"}),vh=Se("div",{ml:"$sm",d:"inline-flex",fd:"column",whiteSpace:"nowrap"}),xh=Se("span",{fontSize:"$xs",color:"$text",lh:"$sm",tt:"capitalize",fontWeight:"$medium",maxW:"$60",to:"ellipsis",ov:"hidden"}),wh=Se("span",{fontSize:"$tiny",color:"$accents4","*:first-child":{mt:0},"*:last-child":{mb:0}}),Sh=Se("a",{a:{"&:hover":{opacity:.7}}}),Ch=({src:e,text:t,name:n,children:r,altText:o,color:i,squared:a,bordered:s,size:l,description:c,...u})=>(0,st.jsxs)($h,{...u,children:[(0,st.jsx)(la,{className:"nextui-user-avatar",src:e,color:i,squared:a,zoomed:u.zoomed,pointer:u.pointer,bordered:s,text:t,size:l,alt:o}),(0,st.jsxs)(vh,{className:"nextui-user-info",children:[(0,st.jsx)(xh,{className:"nextui-user-name",children:n}),(0,st.jsx)(wh,{className:"nextui-user-desc",children:c||r})]})]});Ch.toString=()=>".nextui-user";const kh=g().memo(Ch),Eh=g().forwardRef((({href:e,className:t,children:n,...r},o)=>(0,st.jsx)(Sh,{...r,children:(0,st.jsx)(Tp,{ref:o,href:e,color:"primary",target:"_blank",rel:"noopener",children:n})})));Eh.toString=()=>".nextui-user-link";const Th=g().memo(Eh);kh.Link=Th;const Ph=kh,Ih=Ee({"0%":{left:"-40%"},"100%":{left:"100%"}}),Mh=Se("div",{margin:0,padding:0,width:"100%",position:"relative",overflow:"visible",variants:{color:{default:{$$progressColor:"$colors$primary",$$progressShadowColor:"$colors$primaryShadow"},primary:{$$progressColor:"$colors$primary",$$progressShadowColor:"$colors$primaryShadow"},secondary:{$$progressColor:"$colors$secondary",$$progressShadowColor:"$colors$secondaryShadow"},success:{$$progressColor:"$colors$success",$$progressShadowColor:"$colors$successShadow"},warning:{$$progressColor:"$colors$warning",$$progressShadowColor:"$colors$warningShadow"},error:{$$progressColor:"$colors$error",$$progressShadowColor:"$colors$errorShadow"},gradient:{$$progressColor:"$colors$gradient",$$progressShadowColor:"$colors$primaryShadow"}},status:{default:{bg:"$accents2"},primary:{bg:"$primaryLight"},secondary:{bg:"$secondaryLight"},success:{bg:"$successLight"},warning:{bg:"$warningLight"},error:{bg:"$errorLight"}},size:{xs:{$$progressHeight:"$space$2",height:"$$progressHeight",br:"$$progressHeight"},sm:{$$progressHeight:"$space$4",height:"$$progressHeight",br:"$$progressHeight"},md:{$$progressHeight:"$space$8",height:"$$progressHeight",br:"$$progressHeight"},lg:{$$progressHeight:"$space$10",height:"$$progressHeight",br:"$$progressHeight"},xl:{$$progressHeight:"$space$11",height:"$$progressHeight",br:"$$progressHeight"}},indeterminated:{true:{overflow:"hidden"}},squared:{true:{br:"calc($$progressHeight * 0.25)"}}},defaultVariants:{color:"defuault",status:"default",size:"md"}}),Nh=Se("div",{margin:0,padding:0,width:0,opacity:0,height:"100%",minWidth:"inherit",bg:"$$progressColor",br:"inherit",transition:"width 0.5s cubic-bezier(0.4, 0, 0.2, 1)","@motion":{transition:"none"},variants:{animated:{false:{transition:"none"}},shadow:{true:{normalShadowVar:"$$progressShadowColor"}},striped:{true:{backgroundImage:"linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1) 75%, transparent 75%, transparent)",backgroundSize:"$space$lg $space$lg"}},indeterminated:{true:{position:"absolute",width:"0%",transitionProperty:"background-color, width, left, border-color,opacity, shadow, transform",transitionDuration:"300ms",willChange:"left",minWidth:"50%",animation:`1s ease 0s infinite normal none running ${Ih}`}}}}),Rh=({value:e,max:t,min:n,striped:r,animated:o,shadow:i,indeterminated:a,css:s,...l})=>{const c=(0,f.useMemo)((()=>e>t?t:e<n?n:e),[e,n,t]),u=(0,f.useMemo)((()=>function(e,t,n){return 100*(e-t)/(n-t)}(c,n,t)),[c,n,t]);return(0,st.jsx)(Mh,{role:"progressbar",indeterminated:a,css:{"nextui-progress-wrapper-enter":{opacity:0},".nextui-progress-wrapper-enter-active":{opacity:1,width:`${u}%`},...s},...l,children:(0,st.jsx)(Yd,{visible:!0,name:"nextui-progress-wrapper",enterTime:10,leaveTime:20,clearTime:300,children:(0,st.jsx)(Nh,{className:Ui("nextui-progress-bar",{"nextui-progress-striped":r,"nextui-progress-indeterminated":a}),"aria-valuenow":c,"aria-valuemin":n,"aria-valuemax":t,striped:r,animated:o,shadow:i,indeterminated:a,...l})})})};Rh.toString=()=>".nextui-progress";const Lh=Vi(g().memo(Rh),{striped:!1,animated:!0,shadow:!1,indeterminated:!1,value:0,min:0,max:100}),Dh=({size:e,fill:t,plain:n,width:r,height:o,className:i,...a})=>n?(0,st.jsx)("svg",{width:e||r,height:e||o,viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:i,...a,children:(0,st.jsx)("path",{d:"M18 6L6 18M6 6l12 12"})}):(0,st.jsx)("svg",{width:e||r,height:e||o,viewBox:"0 0 24 24",className:i,...a,children:(0,st.jsx)("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:t})}),zh=Vi(f.memo(Dh),{width:24,height:24,plain:!1,className:""}),Ah=Ee({"0%":{transform:"scale(0.95)"},"40%":{transform:"scale(1.02)"},"80%":{transform:"scale(0.98)"},"100%":{transform:"scale(1)"}}),Kh=Ee({"0%":{opacity:0,transform:"scale(0.95)"},"60%":{opacity:.75,transform:"scale(1.02)"},"100%":{opacity:1,transform:"scale(1)"}}),Oh=Ee({"0%":{opacity:1,transform:"scale(1)"},"100%":{opacity:0,transform:"scale(0.95)"}}),jh=Se("div",{outline:"none",overflow:"hidden",width:0,height:0,opacity:0}),_h=Se("button",{position:"absolute",background:"transparent",border:"none",zIndex:"$1",top:"$space$3",right:"$space$2",margin:0,d:"inline-flex",ai:"center",height:"auto",cursor:"pointer",boxSizing:"border-box",transition:"$default",padding:"calc($space$sm * 0.5)",color:"$accents4",br:"$space$5",svg:{color:"currentColor"},"&:hover":{svg:{opacity:.8}},variants:{disabled:{true:{cursor:"not-allowed"}}}},Me),Fh=Se("div",{display:"flex",flexShrink:0,ai:"center",ov:"hidden",color:"inherit",padding:"$sm $10",fs:"$xs",variants:{noPadding:{true:{padding:0}},autoMargin:{true:{"> *:first-child":{mt:0},"> *:last-child":{mb:0}}}}}),Wh=Se("div",{display:"flex",flexDirection:"column",flex:"1 1 auto",padding:"$sm $10",oy:"auto",position:"relative",ta:"left",variants:{noPadding:{true:{flex:1,padding:0}},autoMargin:{true:{"> *:first-child":{mt:0},"> *":{mb:"$8"},"> *:last-child":{mb:0}}}}}),Bh=Se("div",{d:"flex",flexWrap:"wrap",flexShrink:0,overflow:"hidden",color:"inherit",ai:"center",fs:"$xs",padding:"$sm $lg",variants:{noPadding:{true:{padding:0}},autoMargin:{true:{"> *":{m:"$2"}}}}}),Vh=Se("section",{maxWidth:"100%",verticalAlign:"middle",overflow:"hidden",height:"fit-content(20em)",maxHeight:"inherit",display:"flex",outline:"none",flexDirection:"column",position:"relative",boxSizing:"border-box",color:"$foreground",br:"$lg",boxShadow:"$lg",bg:"$background",animationFillMode:"forwards","&.nextui-modal-wrapper-enter:not(.nextui-modal-rendered)":{animationName:Kh,animationDuration:"200ms",animationTimingFunction:"ease-in",animationDirection:"normal"},"&.nextui-modal-wrapper-leave":{animationName:Oh,animationDuration:"50ms",animationTimingFunction:"ease-out"},variants:{fullScreen:{true:{size:"100%",maxHeight:"100%"},false:{"&.nextui-modal-rebound":{animationDuration:"250ms",animationName:Ah,animationTimingFunction:"ease",animationFillMode:"forwards"}}},scroll:{true:{maxHeight:"calc(100vh - 200px)"}},closeButton:{true:{paddingTop:"$lg",[`& ${_h}`]:{svg:{size:"$10"}}}},isDark:{true:{bg:"$accents1"}}},compoundVariants:[{scroll:!0,fullScreen:!0,css:{maxHeight:"100%"}}]}),Hh=({onClick:e,...t})=>(0,st.jsx)(_h,{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),t.nativeEvent.stopImmediatePropagation(),e&&e(t)},className:"nextui-modal-close-icon","aria-label":"Close",...t,children:(0,st.jsx)(zh,{plain:!0,size:18,className:"nextui-modal-close-icon-svg",fill:"currentColor","aria-hidden":!0})});Hh.toString=()=>".nextui-modal-close-icon";const Uh=g().memo(Hh),Gh=({className:e,children:t,visible:n,fullScreen:r,closeButton:o,rebound:i,animated:a,onCloseButtonClick:s,scroll:l,...c})=>{const u=(0,f.useRef)(null),d=(0,f.useRef)(null),p=(0,f.useRef)(null),[h,g]=(0,f.useState)(!1),{isDark:m}=Ae();(0,f.useEffect)((()=>{const e=setTimeout((()=>{g(!0),clearTimeout(e)}),300);return()=>clearTimeout(e)}),[]),(0,f.useEffect)((()=>{if(!n)return;const e=document.activeElement,t=((e,t)=>{if(!e||!t)return!1;let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1})(u.current,e);t||d.current&&d.current.focus()}),[n]);const b=e=>{const t=e.keyCode===Qe.Tab;if(!n||!t)return;const r=document.activeElement;e.shiftKey?r===d.current&&p.current&&p.current.focus():r===p.current&&d.current&&d.current.focus()},y=()=>{s&&s()},$=(0,f.useMemo)((()=>n?"open":"closed"),[n]),v=(0,f.useMemo)((()=>(0,st.jsxs)(Vh,{role:"dialog",tabIndex:-1,"aria-modal":n,ref:u,"data-state":$,fullScreen:r,scroll:l,closeButton:o,isDark:m,className:Ui("nextui-modal",`nextui-modal--${$}`,{"nextui-modal-fullscreen":r,"nextui-modal-with-close-button":o,"nextui-modal-rebound":i,"nextui-modal-rendered":h},e),...c,onKeyDown:b,children:[(0,st.jsx)(jh,{role:"button",tabIndex:0,className:"nextui-modal-hide-tab","aria-hidden":"true",ref:d}),o&&(0,st.jsx)(Uh,{onClick:y}),t,(0,st.jsx)(jh,{role:"button",tabIndex:0,className:"nextui-modal-hide-tab","aria-hidden":"true",ref:p})]})),[i,t]);return(0,st.jsx)(st.Fragment,{children:a?(0,st.jsx)(Yd,{name:"nextui-modal-wrapper",visible:n,enterTime:20,leaveTime:20,clearTime:300,children:v}):n?v:null})};Gh.toString=()=>".nextui-modal-wrapper";const Yh=Vi(Gh,{className:"",visible:!1,rebound:!1}),Xh={},Jh=g().createContext(Xh),qh=({children:e,onClose:t,onOpen:n,open:r,autoMargin:o,width:i,className:a,preventClose:s,blur:l,animated:c,fullScreen:u,noPadding:d,...p})=>{const h=We("modal"),[,g]=Ue(null,{scrollLayer:!0}),[b,y,$]=m(!1),[v,x]=(0,f.useState)(!1),w=()=>{t&&t(),y(!1),g(!1)};(0,f.useEffect)((()=>{void 0!==r&&(r&&n&&n(),!r&&$.current&&t&&t(),y(r),g(r))}),[r]);const S=()=>{x(!0);const e=setTimeout((()=>{x(!1),clearTimeout(e)}),300)},{bindings:C}=rt((()=>{s?S():w()}),Qe.Escape,{disableGlobalEvent:!0,preventDefault:!0}),k=(0,f.useMemo)((()=>({close:w,autoMargin:o,noPadding:d})),[]);return h?(0,Ud.createPortal)((0,st.jsx)(Jh.Provider,{value:k,children:(0,st.jsx)(yh,{onClick:()=>{s?S():w()},visible:b,maxWidth:i,fullScreen:u,blur:l,animated:c,...C,children:(0,st.jsx)(Yh,{visible:b,onCloseButtonClick:w,className:a,fullScreen:u,rebound:v,animated:c,...p,children:e})})}),h):null};qh.toString=()=>".nextui-modal",qh.defaultProps={width:"400px",className:"",preventClose:!1,fullScreen:!1,closeButton:!1,animated:!0,blur:!1,scroll:!1,noPadding:!1};const Zh=qh,Qh=({children:e,className:t,justify:n,autoMargin:r,css:o,...i})=>{const{autoMargin:a,noPadding:s}=(0,f.useContext)(Jh),l=(0,f.useMemo)((()=>void 0!==a?a:r),[r,a]);return(0,st.jsx)(Fh,{className:Ui("nextui-modal-header",{"nextui-modal-header-auto-margin":l,"nextui-modal-header-no-padding":s},t),noPadding:s,autoMargin:l,css:{justifyContent:n,...o},...i,children:e})};Qh.toString=()=>".nextui-modal-header";const ef=Vi(g().memo(Qh),{className:"",justify:"center",autoMargin:!0}),tf=({className:e,children:t,autoMargin:n,...r})=>{const{autoMargin:o,noPadding:i}=(0,f.useContext)(Jh),a=(0,f.useMemo)((()=>void 0!==o?o:n),[n,o]);return(0,st.jsx)(Wh,{className:Ui("nextui-modal-body",{"nextui-modal-body-auto-margin":a,"nextui-modal-body-no-padding":i},e),autoMargin:a,noPadding:i,...r,children:t})};tf.toString=()=>".nextui-modal-body";const nf=Vi(g().memo(tf),{className:"",autoMargin:!0}),rf=({children:e,className:t,justify:n,autoMargin:r,css:o,...i})=>{const{autoMargin:a,noPadding:s}=(0,f.useContext)(Jh),l=(0,f.useMemo)((()=>void 0!==a?a:r),[r,a]);return(0,st.jsx)(Bh,{className:Ui("nextui-modal-footer",{"nextui-modal-footer-auto-margin":l,"nextui-modal-footer-no-padding":s},t),noPadding:s,autoMargin:l,css:{justifyContent:n,...o},...i,children:e})};rf.toString=()=>".nextui-modal-footer";const of=Vi(g().memo(rf),{className:"",justify:"flex-end",autoMargin:!0});Zh.Header=ef,Zh.Body=nf,Zh.Footer=of;const af=Zh,sf=(e=!1)=>{const[t,n,r]=m(e);return{visible:t,setVisible:n,currentRef:r,bindings:{open:t,onClose:()=>n(!1)}}},lf=Ee({"0%":{transform:"scale(1)"},"60%":{transform:"scale($$paginationScaleTransform)"},"100%":{transform:"scale(1)"}}),cf=Se("svg",{color:"currentColor",stroke:"currentColor",variants:{isEllipsis:{true:{transform:"0deg"}},isBefore:{true:{}}},compoundVariants:[{isEllipsis:!0,isBefore:!0,css:{transform:"rotate(180deg)"}}]}),uf=Se("svg",{transform:"rotate(180deg)",variants:{isPrev:{true:{transform:"rotate(0deg)"}}}}),df=Se("span",{position:"relative",display:"inline-flex",alignItems:"center",top:0,left:0,zIndex:"$2"}),pf=Se("button",{border:"none",position:"relative",display:"inline-flex",margin:"0 $$paginationItemMargin",ai:"center",jc:"center",padding:0,boxSizing:"border-box",tt:"capitalize",us:"none",whiteSpace:"nowrap",ta:"center",verticalAlign:"middle",bs:"none",outline:"none",height:"$$paginationSize",minWidth:"$$paginationSize",fs:"inherit",cursor:"pointer",br:"$$paginationItemRadius",color:"$text",bg:"$accents1","@motion":{transition:"none"},"&:hover":{bg:"$accents2"},[`& ${uf}`]:{size:"$$paginationFontSize"},[`& ${cf}`]:{size:"$$paginationFontSize"},variants:{active:{true:{fontWeight:"$bold",cursor:"default",boxShadow:"$sm",[`& ${df}`]:{color:"$white"}}},disabled:{true:{color:"$accents4",cursor:"not-allowed"}},bordered:{true:{bg:"transparent",border:"$$paginationItemBorderWeight solid $accents2"}},onlyDots:{true:{}},preserveContent:{true:{}},animated:{true:{transition:"transform 0.25s ease 0s, background 0.25s ease 0s, box-shadow 0.25s ease 0s"},false:{transition:"none"}}},compoundVariants:[{onlyDots:!0,preserveContent:!1,css:{[`& ${df}`]:{display:"none"}}},{animated:!0,disabled:!1,active:!1,css:{"&:active":{transform:"scale($$paginationScaleTransform)",fs:"calc($$paginationFontSize * 0.9)"}}}]},Me),hf=Se("div",{position:"absolute",contain:"strict",top:"0px",zIndex:"$1",bg:"$$paginationColor",br:"$$paginationItemRadius",height:"$$paginationSize",minWidth:"$$paginationSize",animationName:`${lf}`,animationDirection:"normal","&.nextui-pagination-highlight--moving":{transform:"scale($$paginationScaleTransform)"},"@motion":{transition:"none","&.nextui-pagination-highlight--moving":{transform:"scale(1)"}},variants:{animated:{true:{animationDuration:"350ms",animationTimingFunction:"ease",transition:"left 350ms ease 0s, transform 300ms ease 0s"},false:{animationDuration:"none",animationTimingFunction:"none",transition:"none","&.nextui-pagination-highlight--moving":{transform:"scale(1)"}}},noMargin:{true:{br:"$squared"}},rounded:{true:{}},shadow:{true:{normalShadowVar:"$$paginationShadowColor"}}},compoundVariants:[{rounded:!0,noMargin:!0,css:{br:"$pill"}}]}),ff=Se("nav",{m:0,p:0,d:"inline-flex",position:"relative",fontVariant:"tabular-nums",fontFeatureSettings:"tnum",variants:{color:{default:{$$paginationColor:"$colors$primary",$$paginationShadowColor:"$colors$primaryShadow"},primary:{$$paginationColor:"$colors$primary",$$paginationShadowColor:"$colors$primaryShadow"},secondary:{$$paginationColor:"$colors$secondary",$$paginationShadowColor:"$colors$secondaryShadow"},success:{$$paginationColor:"$colors$success",$$paginationShadowColor:"$colors$successShadow"},warning:{$$paginationColor:"$colors$warning",$$paginationShadowColor:"$colors$warningShadow"},error:{$$paginationColor:"$colors$error",$$paginationShadowColor:"$colors$errorShadow"},gradient:{$$paginationColor:"$colors$gradient",$$paginationShadowColor:"$colors$primaryShadow"}},size:{xs:{$$paginationWidth:"$space$10",$$paginationFontSize:"$space$5",fs:"$$paginationFontSize"},sm:{$$paginationWidth:"$space$12",$$paginationFontSize:"$space$6",fs:"$$paginationFontSize"},md:{$$paginationWidth:"$space$13",$$paginationFontSize:"$space$7",fs:"$$paginationFontSize"},lg:{$$paginationWidth:"$space$14",$$paginationFontSize:"$space$8",fs:"$$paginationFontSize"},xl:{$$paginationWidth:"$space$15",$$paginationFontSize:"$space$9",fs:"$$paginationFontSize"}},borderWeight:{light:{$$paginationItemBorderWeight:"$borderWeights$light"},normal:{$$paginationItemBorderWeight:"$borderWeights$normal"},bold:{$$paginationItemBorderWeight:"$borderWeights$bold"},extrabold:{$$paginationItemBorderWeight:"$borderWeights$extrabold"},black:{$$paginationItemBorderWeight:"$borderWeights$black"}},bordered:{true:{}},onlyDots:{true:{$$paginationSize:"calc($$paginationWidth / 2)",$$paginationItemRadius:"$radii$pill",$$paginationScaleTransform:1.05},false:{$$paginationSize:"$$paginationWidth",$$paginationScaleTransform:1.1}},rounded:{true:{$$paginationItemRadius:"$radii$pill"},false:{$$paginationItemRadius:"$radii$squared"}},noMargin:{true:{$$paginationItemRadius:"0px",$$paginationItemMargin:"0",[`& ${pf}:first-of-type`]:{btlr:"$squared",bblr:"$squared"},[`& ${pf}:last-of-type`]:{btrr:"$squared",bbrr:"$squared"}},false:{$$paginationItemMargin:"$space$1"}}},compoundVariants:[{bordered:!0,noMargin:!0,css:{[`& ${pf}:not(:last-child)`]:{borderRight:0}}},{noMargin:!0,rounded:!0,css:{$$paginationItemRadius:"0px"}}],defaultVariants:{color:"default",size:"md",borderWeight:"normal",onlyDots:!1,noMargin:!1,rounded:!1}}),gf=e=>{if(e)switch(e){case it:return"dots element";case"<":return"previous page button";case">":return"next page button";case"first":return"first page button";case"last":return"last page button";default:return`${e} item`}},mf=({active:e,value:t,children:n,disabled:r,animated:o,bordered:i,onClick:a,onlyDots:s,preserveContent:l,...c})=>{const u=(0,f.useMemo)((()=>e?`${gf(t)} active`:gf(t)),[t,e]);return(0,st.jsx)(pf,{className:Ui("nextui-pagination-item",{"nextui-pagination-item-active":e,"nextui-pagination-item-animated":o,"nextui-pagination-item-disabled":r,"nextui-pagination-item-bordered":i,"nextui-pagination-item-only-dots":s,"nextui-pagination-item-preserve-content":l}),animated:o,active:e,disabled:r,bordered:i,onlyDots:s,preserveContent:l,onClick:e=>{r||a&&a(e)},"aria-label":u,tabIndex:r?-1:0,...c,children:(0,st.jsx)(df,{className:"nextui-pagination-item-content",children:n})})};mf.toString=()=>".nextui-pagination-item";const bf=Vi(mf,{preserveContent:!1}),yf=({value:e,isBefore:t,onlyDots:n,animated:r,bordered:o,onClick:i})=>{const[a,s]=(0,f.useState)(!1);return(0,st.jsx)(bf,{value:e,onlyDots:n,animated:r,bordered:o,onClick:e=>i&&i(e),onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),children:a?(0,st.jsxs)(cf,{role:"presentation",focusable:"false",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",shapeRendering:"geometricPrecision",className:"nextui-pagination-ellipsis",isEllipsis:!0,isBefore:t,children:[(0,st.jsx)("path",{d:"M13 17l5-5-5-5"}),(0,st.jsx)("path",{d:"M6 17l5-5-5-5"})]}):(0,st.jsxs)(cf,{viewBox:"0 0 24 24",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",shapeRendering:"geometricPrecision",isEllipsis:!1,isBefore:t,children:[(0,st.jsx)("circle",{cx:"12",cy:"12",r:"1",fill:"currentColor"}),(0,st.jsx)("circle",{cx:"19",cy:"12",r:"1",fill:"currentColor"}),(0,st.jsx)("circle",{cx:"5",cy:"12",r:"1",fill:"currentColor"})]})})},$f=({isPrev:e,disabled:t,onlyDots:n,animated:r,bordered:o,onClick:i,...a})=>(0,st.jsx)(bf,{preserveContent:!0,value:e?"<":">",bordered:o,animated:r,onlyDots:n,disabled:t,onClick:e=>i&&i(e),children:(0,st.jsx)(uf,{role:"presentation",focusable:"false",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"nextui-pagination-icon",isPrev:e,...a,children:(0,st.jsx)("path",{d:"M15.5 19l-7-7 7-7",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})})});$f.toString=()=>".nextui-pagination-icon";const vf=g().memo($f),xf=({active:e,shadow:t,noMargin:n,rounded:r,css:o,...i})=>{const[a,s]=(0,f.useState)(e),[l,c]=(0,f.useState)("");(0,f.useEffect)((()=>{if(e!==a){s(e),c("nextui-pagination-highlight--moving");const t=setTimeout((()=>{c(""),clearTimeout(t)}),350)}}),[e]);const u=(0,f.useMemo)((()=>n?`var(--nextui--paginationSize) * ${a}`:`var(--nextui--paginationSize) * ${a} + ${4*a+2}px`),[a,n]);return(0,st.jsx)(hf,{"aria-hidden":!0,shadow:t,rounded:r,className:Ui("nextui-pagination-highlight",l,{"nextui-pagination-highlight--rounded":r,"nextui-pagination-highlight--active":e,"nextui-pagination-highlight--no-margin":n,"nextui-pagination-highlight--shadow":t},i.className),noMargin:n,style:Pu({"--nextui--paginationLeft":`calc(${u})`},(null==i?void 0:i.style)||{}),css:{left:"var(--nextui--paginationLeft)",...o},...i})};xf.toString=()=>".nextui-pagination-highlight";const wf=xf,Sf=({page:e,initialPage:t,onlyDots:n,total:r,loop:o,siblings:i,boundaries:a,shadow:s,animated:l,bordered:c,dotsJump:u,controls:d,noMargin:p,onChange:h,rounded:g,...m})=>{const{range:b,active:y,setPage:$,previous:v,next:x,first:w,last:S}=at({page:e,initialPage:t,siblings:n?10:i,boundaries:n?10:a,total:r,onChange:h}),C=(0,f.useCallback)(((e,t)=>{if(e===it){const o=t<b.indexOf(y);return(0,st.jsx)(yf,{value:e,bordered:c,animated:l,isBefore:o,onlyDots:n,onClick:()=>$(o?y-u>=1?y-u:1:y+u<=r?y+u:r)},`nextui-pagination-item-${e}-${t}`)}return(0,st.jsx)(bf,{value:e,animated:l,bordered:c,active:e===y,onClick:()=>e!==y&&$(e),onlyDots:n,children:e},`nextui-pagination-item-${e}-${t}`)}),[r,n,y,c,l]);return(0,st.jsxs)(ff,{noMargin:p,bordered:c,rounded:g,onlyDots:n,className:Ui("nextui-pagination",{"nextui-pagination--no-margin":p,"nextui-pagination--bordered":c,"nextui-pagination--shadow":s,"nextui-pagination--rounded":g}),...m,children:[d&&(0,st.jsx)(vf,{isPrev:!0,bordered:c,animated:l,onlyDots:n,onClick:()=>o&&1===y?S():v(),disabled:!o&&1===y}),(0,st.jsx)(wf,{noMargin:p,animated:l,shadow:s,rounded:g,active:d?b.indexOf(y)+1:b.indexOf(y)}),b.map(C),d&&(0,st.jsx)(vf,{bordered:c,animated:l,onlyDots:n,onClick:()=>o&&y===r?w():x(),disabled:!o&&y===r})]})};Sf.defaultProps={shadow:!1,controls:!0,bordered:!1,initialPage:1,siblings:1,boundaries:1,dotsJump:5,total:1,loop:!1,animated:!0,onlyDots:!1,noMargin:!1,rounded:!1},Sf.toString=()=>".nextui-pagination";const Cf=g().memo(Sf);function kf(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Ef={};kf(Ef,"SSRProvider",(()=>If)),kf(Ef,"useSSRSafeId",(()=>Nf)),kf(Ef,"useIsSSR",(()=>Rf));const Tf={prefix:String(Math.round(1e10*Math.random())),current:0},Pf=g().createContext(Tf);function If(e){let t=(0,f.useContext)(Pf),n=(0,f.useMemo)((()=>({prefix:t===Tf?"":`${t.prefix}-${++t.current}`,current:0})),[t]);return g().createElement(Pf.Provider,{value:n},e.children)}let Mf=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function Nf(e){let t=(0,f.useContext)(Pf);return t!==Tf||Mf||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),(0,f.useMemo)((()=>e||`react-aria${t.prefix}-${++t.current}`),[e])}function Rf(){let e=(0,f.useContext)(Pf)!==Tf,[t,n]=(0,f.useState)(e);return"undefined"!=typeof window&&e&&(0,f.useLayoutEffect)((()=>{n(!1)}),[]),t}function Lf(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Df={};Lf(Df,"useId",(()=>Kf)),Lf(Df,"mergeIds",(()=>Of)),Lf(Df,"useSlotId",(()=>jf)),Lf({},"useLayoutEffect",(()=>zf));const zf="undefined"!=typeof window?g().useLayoutEffect:()=>{};let Af=new Map;function Kf(e){let t=(0,f.useRef)(!0);t.current=!0;let[n,r]=(0,f.useState)(e),o=(0,f.useRef)(null),i=Nf(n),a=e=>{t.current?o.current=e:r(e)};return Af.set(i,a),zf((()=>{t.current=!1}),[a]),zf((()=>{let e=i;return()=>{Af.delete(e)}}),[i]),(0,f.useEffect)((()=>{let e=o.current;e&&(r(e),o.current=null)}),[r,a]),i}function Of(e,t){if(e===t)return e;let n=Af.get(e);if(n)return n(t),t;let r=Af.get(t);return r?(r(e),e):t}function jf(e=[]){let t=Kf(),[n,r]=Pg(t),o=(0,f.useCallback)((()=>{r((function*(){yield t,yield document.getElementById(t)?t:null}))}),[t,r]);return zf(o,[t,o,...e]),n}function _f(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function Ff(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],o=r[e];"function"==typeof n&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=_f(n,o):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof o?"id"===e&&n&&o?t.id=Of(n,o):t[e]=void 0!==o?o:n:t[e]=ya(n,o)}}return t}Lf({},"chain",(()=>_f)),Lf({},"mergeProps",(()=>Ff)),Lf({},"filterDOMProps",(()=>Hf));const Wf=new Set(["id"]),Bf=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Vf=/^(data-.*)$/;function Hf(e,t={}){let{labelable:n,propNames:r}=t,o={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Wf.has(t)||n&&Bf.has(t)||(null==r?void 0:r.has(t))||Vf.test(t))&&(o[t]=e[t]);return o}function Uf(e){if(function(){if(null==Gf){Gf=!1;try{document.createElement("div").focus({get preventScroll(){return Gf=!0,!0}})}catch(e){}}return Gf}())e.focus({preventScroll:!0});else{let t=function(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}Lf({},"focusWithoutScrolling",(()=>Uf));let Gf=null;function Yf(e,t,n="horizontal"){let r=e.getBoundingClientRect();return t?"horizontal"===n?r.right:r.bottom:"horizontal"===n?r.left:r.top}Lf({},"getOffset",(()=>Yf));var Xf={};Lf(Xf,"clamp",(()=>wa)),Lf(Xf,"snapValueToStep",(()=>Sa)),Lf({},"runAfterTransition",(()=>Qf));let Jf=new Map,qf=new Set;function Zf(){if("undefined"==typeof window)return;let e=t=>{let n=Jf.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),Jf.delete(t.target)),0===Jf.size)){for(let e of qf)e();qf.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=Jf.get(t.target);n||(n=new Set,Jf.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function Qf(e){requestAnimationFrame((()=>{0===Jf.size?e():qf.add(e)}))}"undefined"!=typeof document&&("loading"!==document.readyState?Zf():document.addEventListener("DOMContentLoaded",Zf)),Lf({},"useDrag1D",(()=>tg));const eg=[];function tg(e){console.warn("useDrag1D is deprecated, please use `useMove` instead https://react-spectrum.adobe.com/react-aria/useMove.html");let{containerRef:t,reverse:n,orientation:r,onHover:o,onDrag:i,onPositionChange:a,onIncrement:s,onDecrement:l,onIncrementToMax:c,onDecrementToMin:u,onCollapseToggle:d}=e,p=e=>{let o=Yf(t.current,n,r),i=(e=>"horizontal"===r?e.clientX:e.clientY)(e);return n?o-i:i-o},h=(0,f.useRef)(!1),g=(0,f.useRef)(0),m=(0,f.useRef)({onPositionChange:a,onDrag:i});m.current.onDrag=i,m.current.onPositionChange=a;let b=e=>{e.preventDefault();let t=p(e);h.current||(h.current=!0,m.current.onDrag&&m.current.onDrag(!0),m.current.onPositionChange&&m.current.onPositionChange(t)),g.current!==t&&(g.current=t,a&&a(t))},y=e=>{const t=e.target;h.current=!1;let n=p(e);m.current.onDrag&&m.current.onDrag(!1),m.current.onPositionChange&&m.current.onPositionChange(n),eg.splice(eg.indexOf(t),1),window.removeEventListener("mouseup",y,!1),window.removeEventListener("mousemove",b,!1)};return{onMouseDown:e=>{const t=e.currentTarget;eg.some((e=>t.contains(e)))||(eg.push(t),window.addEventListener("mousemove",b,!1),window.addEventListener("mouseup",y,!1))},onMouseEnter:()=>{o&&o(!0)},onMouseOut:()=>{o&&o(!1)},onKeyDown:e=>{switch(e.key){case"Left":case"ArrowLeft":"horizontal"===r&&(e.preventDefault(),l&&!n?l():s&&n&&s());break;case"Up":case"ArrowUp":"vertical"===r&&(e.preventDefault(),l&&!n?l():s&&n&&s());break;case"Right":case"ArrowRight":"horizontal"===r&&(e.preventDefault(),s&&!n?s():l&&n&&l());break;case"Down":case"ArrowDown":"vertical"===r&&(e.preventDefault(),s&&!n?s():l&&n&&l());break;case"Home":e.preventDefault(),u&&u();break;case"End":e.preventDefault(),c&&c();break;case"Enter":e.preventDefault(),d&&d()}}}}function ng(){let e=(0,f.useRef)(new Map),t=(0,f.useCallback)(((t,n,r,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,r,o)}),[]),n=(0,f.useCallback)(((t,n,r,o)=>{var i;let a=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(n,a,o),e.current.delete(r)}),[]),r=(0,f.useCallback)((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return(0,f.useEffect)((()=>r),[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function rg(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;if(n=Kf(n),o&&r){let e=new Set([...o.trim().split(/\s+/),n]);o=[...e].join(" ")}else o&&(o=o.trim().split(/\s+/).join(" "));return r||o||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function og(e){const t=(0,f.useRef)();return zf((()=>{e&&("function"==typeof e?e(t.current):e.current=t.current)}),[e]),t}function ig(e,t){const n=(0,f.useRef)(!0);(0,f.useEffect)((()=>{n.current?n.current=!1:e()}),t)}function ag(e){const{ref:t,onResize:n}=e;(0,f.useEffect)((()=>{let e=null==t?void 0:t.current;if(e){if(void 0===window.ResizeObserver)return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)};{const t=new window.ResizeObserver((e=>{e.length&&n()}));return t.observe(e),()=>{e&&t.unobserve(e)}}}}),[n,t])}function sg(e,t){zf((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}function lg(e){for(;e&&!cg(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function cg(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}Lf({},"useGlobalListeners",(()=>ng)),Lf({},"useLabels",(()=>rg)),Lf({},"useObjectRef",(()=>og)),Lf({},"useUpdateEffect",(()=>ig)),Lf({},"useResizeObserver",(()=>ag)),Lf({},"useSyncRef",(()=>sg)),Lf({},"getScrollParent",(()=>lg)),Lf({},"useViewportSize",(()=>dg));let ug="undefined"!=typeof window&&window.visualViewport;function dg(){let[e,t]=(0,f.useState)((()=>pg()));return(0,f.useEffect)((()=>{let e=()=>{t((e=>{let t=pg();return t.width===e.width&&t.height===e.height?e:t}))};return ug?ug.addEventListener("resize",e):window.addEventListener("resize",e),()=>{ug?ug.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),e}function pg(){return{width:(null==ug?void 0:ug.width)||window.innerWidth,height:(null==ug?void 0:ug.height)||window.innerHeight}}Lf({},"useDescription",(()=>gg));let hg=0;const fg=new Map;function gg(e){let[t,n]=(0,f.useState)(null);return zf((()=>{if(!e)return;let t=fg.get(e);if(t)n(t.element.id);else{let r="react-aria-description-"+hg++;n(r);let o=document.createElement("div");o.id=r,o.style.display="none",o.textContent=e,document.body.appendChild(o),t={refCount:0,element:o},fg.set(e,t)}return t.refCount++,()=>{0==--t.refCount&&(t.element.remove(),fg.delete(e))}}),[e]),{"aria-describedby":e?t:void 0}}var mg={};function bg(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function yg(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test((window.navigator.userAgentData||window.navigator).platform)}function $g(){return yg(/^Mac/i)}function vg(){return yg(/^iPhone/i)}function xg(){return yg(/^iPad/i)||$g()&&navigator.maxTouchPoints>1}function wg(){return vg()||xg()}function Sg(){return $g()||wg()}function Cg(){return bg(/AppleWebKit/i)&&!kg()}function kg(){return bg(/Chrome/i)}function Eg(){return bg(/Android/i)}function Tg(e,t,n,r){let o=(0,f.useRef)(n);o.current=n;let i=null==n;(0,f.useEffect)((()=>{if(i)return;let n=e.current,a=e=>o.current.call(this,e);return n.addEventListener(t,a,r),()=>{n.removeEventListener(t,a,r)}}),[e,t,r,i])}function Pg(e){let[t,n]=(0,f.useState)(e),r=(0,f.useRef)(t),o=(0,f.useRef)(null);r.current=t;let i=(0,f.useRef)(null);i.current=()=>{let e=o.current.next();e.done?o.current=null:t===e.value?i.current():n(e.value)},zf((()=>{o.current&&i.current()}));let a=(0,f.useCallback)((e=>{o.current=e(r.current),i.current()}),[o,i]);return[t,a]}function Ig(e,t){let n=Mg(e,t,"left"),r=Mg(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,a=e.scrollLeft,s=e.scrollTop,l=a+e.offsetWidth,c=s+e.offsetHeight;n<=a?a=n:n+o>l&&(a+=n+o-l),r<=s?s=r:r+i>c&&(s+=r+i-c),e.scrollLeft=a,e.scrollTop=s}function Mg(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function Ng(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function Rg(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=Kf(t);let a=Kf(),s={};return n?(r=r?`${r} ${a}`:a,s={id:a,htmlFor:"label"===i?t:void 0}):r||o||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:s,fieldProps:rg({id:t,"aria-label":o,"aria-labelledby":r})}}function Lg(e){let{description:t,errorMessage:n,validationState:r}=e,{labelProps:o,fieldProps:i}=Rg(e),a=jf([Boolean(t),Boolean(n),r]),s=jf([Boolean(t),Boolean(n),r]);return i=Ff(i,{"aria-describedby":[a,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:i,descriptionProps:{id:a},errorMessageProps:{id:s}}}Lf(mg,"isMac",(()=>$g)),Lf(mg,"isIPhone",(()=>vg)),Lf(mg,"isIPad",(()=>xg)),Lf(mg,"isIOS",(()=>wg)),Lf(mg,"isAppleDevice",(()=>Sg)),Lf(mg,"isWebKit",(()=>Cg)),Lf(mg,"isChrome",(()=>kg)),Lf(mg,"isAndroid",(()=>Eg)),Lf({},"useEvent",(()=>Tg)),Lf({},"useValueEffect",(()=>Pg)),Lf({},"scrollIntoView",(()=>Ig)),Ng({},"useField",(()=>Lg)),Ng({},"useLabel",(()=>Rg));const Dg={disabled:!1,bordered:!1,readOnly:!1,clearable:!1,rounded:!1,animated:!0,underlined:!1,shadow:!0,fullWidth:!1,contentClickable:!1,contentRightStyling:!0,contentLeftStyling:!0,required:!1,width:"initial",size:"md",color:"default",helperColor:"default",status:"default",borderWeight:"normal",autoComplete:"off",className:"",placeholder:"",initialValue:""},zg=Se("div",{$$inputColor:"$colors$accents1",$$inputTextColor:"$colors$text",$$inputPlaceholderColor:"$colors$accents3",$$inputPlaceholderOpacity:1,$$inputShadow:"$shadows$sm",$$inputBorderColor:"$colors$border",$$inputHoverBorderColor:"$colors$foreground",$$inputLabelColor:"$$inputHoverBorderColor",display:"inline-flex",flexDirection:"column",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitBoxAlign:"center",variants:{color:{default:{},primary:{$$inputHoverBorderColor:"$colors$primary",$$inputLabelColor:"$colors$primary"},secondary:{$$inputHoverBorderColor:"$colors$secondary",$$inputLabelColor:"$colors$secondary"},success:{$$inputHoverBorderColor:"$colors$success",$$inputLabelColor:"$colors$success"},warning:{$$inputHoverBorderColor:"$colors$warning",$$inputLabelColor:"$colors$warning"},error:{$$inputHoverBorderColor:"$colors$error",$$inputLabelColor:"$colors$error"}},status:{default:{},primary:{$$inputColor:"$colors$primaryLight",$$inputPlaceholderColor:"$colors$primary",$$inputTextColor:"$colors$primary",$$inputLabelColor:"$$inputTextColor",$$inputHoverBorderColor:"$colors$primary",$$inputPlaceholderOpacity:.5},secondary:{$$inputColor:"$colors$secondaryLight",$$inputPlaceholderColor:"$colors$secondary",$$inputTextColor:"$colors$secondary",$$inputLabelColor:"$$inputTextColor",$$inputHoverBorderColor:"$colors$secondary",$$inputPlaceholderOpacity:.5},success:{$$inputColor:"$colors$successLight",$$inputPlaceholderColor:"$colors$success",$$inputTextColor:"$colors$success",$$inputLabelColor:"$$inputTextColor",$$inputHoverBorderColor:"$colors$success",$$inputPlaceholderOpacity:.5},warning:{$$inputColor:"$colors$warningLight",$$inputPlaceholderColor:"$colors$warning",$$inputTextColor:"$colors$warning",$$inputLabelColor:"$$inputTextColor",$$inputHoverBorderColor:"$colors$warning",$$inputPlaceholderOpacity:.5},error:{$$inputColor:"$colors$errorLight",$$inputPlaceholderColor:"$colors$error",$$inputTextColor:"$colors$error",$$inputLabelColor:"$$inputTextColor",$$inputHoverBorderColor:"$colors$error",$$inputPlaceholderOpacity:.5}},helperColor:{default:{$$inputHelperColor:"$colors$text"},primary:{$$inputHelperColor:"$colors$primary"},secondary:{$$inputHelperColor:"$colors$secondary"},success:{$$inputHelperColor:"$colors$success"},warning:{$$inputHelperColor:"$colors$warning"},error:{$$inputHelperColor:"$colors$error"}},borderWeight:{light:{$$inputBorderWeight:"$borderWeights$light"},normal:{$$inputBorderWeight:"$borderWeights$normal"},bold:{$$inputBorderWeight:"$borderWeights$bold"},extrabold:{$$inputBorderWeight:"$borderWeights$extrabold"},black:{$$inputBorderWeight:"$borderWeights$black"}},size:{xs:{$$inputBorderRadius:"$space$3",$$inputFontSize:"$fontSizes$tiny",$$inputHeightRatio:"1.2",br:"$$inputBorderRadius"},sm:{$$inputBorderRadius:"$space$4",$$inputFontSize:"$fontSizes$tiny",$$inputHeightRatio:"1.6",br:"$$inputBorderRadius"},md:{$$inputBorderRadius:"$space$6",$$inputFontSize:"$fontSizes$xs",$$inputHeightRatio:"2",br:"$$inputBorderRadius"},lg:{$$inputBorderRadius:"$space$7",$$inputFontSize:"$fontSizes$base",$$inputHeightRatio:"2.2",br:"$$inputBorderRadius"},xl:{$$inputBorderRadius:"$space$8",$$inputFontSize:"$fontSizes$sm",$$inputHeightRatio:"2.6",br:"$$inputBorderRadius"}},rounded:{true:{$$inputBorderRadius:"$radii$pill"}},disabled:{true:{$$inputColor:"$colors$accents2",$$inputTextColor:"$colors$accents3",$$inputPlaceholderColor:"$colors$accents3",$$inputShadow:"$shadows$sm"}}}}),Ag=Se("div",{width:"100%",br:"$$inputBorderRadius","@motion":{transition:"none"},variants:{isTextarea:{false:{display:"inline-flex",alignItems:"center",height:"calc($$inputHeightRatio * $9)"}},focused:{true:{}},isReadOnly:{false:{}},underlined:{true:{}},animated:{true:{transition:"$default"},false:{transition:"none"}}},compoundVariants:[{isReadOnly:!1,underlined:!0,css:{transform:"none"}},{focused:!0,animated:!0,isReadOnly:!1,underlined:!1,css:{transform:"translateY(-$space$1)"}}]}),Kg=Se("input",{padding:0,fontSize:"$$inputFontSize",bg:"transparent",border:"none",color:"$$inputTextColor",br:0,outline:"none",size:"100%",minWidth:0,WebkitAppearance:"none","::placeholder":{color:"$$inputPlaceholderColor",transition:"opacity 0.25s ease 0s",MozTransition:"opacity 0.25s ease 0s",MsTransition:"opacity 0.25s ease 0s",WebkitTransition:"opacity 0.25s ease 0s"},"@motion":{transition:"none","&::placeholder":{transition:"none"}},"&:disabled":{pe:"none",color:"$accents4",cursor:"not-allowed"},variants:{isTextarea:{true:{boxShadow:"none",display:"block",size:"100%",resize:"none",border:"none",outline:"none"}},focused:{true:{"&::placeholder":{opacity:0,transition:"opacity 0.25s ease 0s"}}},bordered:{true:{padding:"0 $3"}},rounded:{true:{padding:"0 $3"}},animated:{false:{transition:"none","::placeholder":{transition:"none"}}},hasLeftContent:{true:{ml:0}},hasRightContent:{true:{mr:0}}}}),Og=Se("div",{flex:1,position:"relative",br:"$$inputBorderRadius",bg:"$$inputColor",display:"inline-flex",verticalAlign:"middle",alignItems:"center",userSelect:"none","@motion":{transition:"none","&:before":{transition:"none"},"&:after":{transition:"none"}},variants:{focused:{true:{}},isReadOnly:{true:{}},bordered:{true:{bg:"transparent",border:"none",boxShadow:"0 0 0 $$inputBorderWeight $$inputBorderColor",transition:"box-shadow 0.25s ease"}},shadow:{true:{transition:"$default"}},disabled:{true:{cursor:"not-allowed"}},underlined:{true:{bg:"transparent",[`& ${Kg}`]:{margin:"$2 $3"},"&:before":{content:"",position:"absolute",zIndex:"$2",width:0,bottom:0,height:"$1",left:"50%",transform:"translate(-50%)",background:"$$inputHoverBorderColor",transition:"width 0.25s ease"},"&:after":{content:"",position:"absolute",zIndex:"$1",bottom:0,width:"100%",height:"$$inputBorderWeight",bg:"$$inputBorderColor"}},false:{[`& ${Kg}`]:{margin:"$2 $5"}}},animated:{false:{transition:"none","&:before":{transition:"none"},"&:after":{transition:"none"}}},isTextarea:{true:{boxSizing:"border-box",width:"100%",maxWidth:"100%",height:"auto"},false:{height:"100%"}}},compoundVariants:[{bordered:!0,underlined:!0,css:{boxShadow:"0 0 0 0px $$inputBorderColor"}},{focused:!0,underlined:!0,css:{"&:before":{width:"100%"}}},{focused:!0,shadow:!0,isReadOnly:!1,underlined:!1,css:{boxShadow:"$$inputShadow"}},{focused:!0,bordered:!0,isReadOnly:!1,underlined:!1,css:{boxShadow:"0 0 0 $$inputBorderWeight $$inputHoverBorderColor"}},{bordered:!0,isReadOnly:!1,underlined:!1,css:{"&:hover":{boxShadow:"0 0 0 $$inputBorderWeight $$inputHoverBorderColor"}}},{isTextarea:!0,underlined:!1,css:{[`& ${Kg}`]:{margin:"$xs $sm"}}}]}),jg=Se("div",{position:"absolute",opacity:0,bottom:"calc($$inputHeightRatio * -$space$5)","@motion":{transition:"none"},variants:{animated:{true:{transition:"opacity 0.25s ease"},false:{transition:"none"}},withValue:{true:{opacity:1}}}}),_g=Se("p",{margin:"$1 0 0 $5",fontSize:"$space$5",color:"$$inputHelperColor"}),Fg=Se("span",{},Re),Wg=Se("label",{d:"block",fontWeight:"$normal",color:"$$inputLabelColor",p:"0 0 0 $2",mb:"$3",fs:"$$inputFontSize",lh:"$md",WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",MsUserSelect:"none",us:"none","> *:first-child":{marginTop:0},"> *:last-child":{mb:0},"@motion":{transition:"none"},variants:{rounded:{true:{padding:"0 0 0 $3"}},asPlaceholder:{true:{position:"absolute",padding:0,zIndex:"$1",left:"$space$6",top:"20%",mb:0,cursor:"text",color:"$$inputPlaceholderColor",transition:"left 0.25s ease 0s, color 0.25s ease 0s, top 0.25s ease 0s"}},animated:{false:{transition:"none"}},focused:{true:{color:"$$inputHoverBorderColor"}},underlined:{true:{}},withValue:{true:{}},isTextarea:{true:{}},bordered:{true:{}},hasContentLeft:{true:{}}},compoundVariants:[{underlined:!0,asPlaceholder:!0,css:{left:"$space$2"}},{asPlaceholder:!0,focused:!0,underlined:!1,isTextarea:!1,css:{top:"-72%",left:"$2",cursor:"inherit"}},{asPlaceholder:!0,focused:!0,underlined:!0,isTextarea:!1,css:{top:"-72%",left:"0px",cursor:"inherit"}},{asPlaceholder:!0,withValue:!0,underlined:!1,isTextarea:!1,css:{color:"$$inputTextColor",top:"-72%",left:"$2",cursor:"inherit"}},{asPlaceholder:!0,withValue:!0,underlined:!0,isTextarea:!1,css:{color:"$$inputTextColor",top:"-72%",left:"0px",cursor:"inherit"}},{asPlaceholder:!0,isTextarea:!0,css:{top:"$5"}},{asPlaceholder:!0,hasContentLeft:!0,css:{left:"calc($space$6 + $$inputHeightRatio * $space$7)"}},{asPlaceholder:!0,isTextarea:!0,focused:!0,css:{top:"calc(-$space$10 - $space$3)",left:"$2"}},{asPlaceholder:!0,isTextarea:!0,withValue:!0,css:{top:"-$11"}},{asPlaceholder:!0,focused:!0,isTextarea:!0,bordered:!0,css:{top:"-$12"}}],defaultVariants:{asPlaceholder:!1}}),Bg=Se("span",{position:"relative",display:"inline-flex",width:"initial",height:"100%",fontWeight:"$medium",ai:"center",pe:"none",margin:0,padding:"0 $sm",color:"$$inputPlaceholderColor",fontSize:"$$inputFontSize",lineHeight:"$xs",variants:{isRight:{true:{btrr:"$$inputBorderRadius",bbrr:"$$inputBorderRadius"},false:{btlr:"$$inputBorderRadius",bblr:"$$inputBorderRadius"}},isDark:{true:{}},isDefaultStatus:{true:{}},underlined:{true:{bg:"transparent"}},bordered:{true:{"&:after":{display:"none"},"&:before":{display:"none"}}}},compoundVariants:[{isRight:!0,underlined:!0,css:{borderLeftColor:"$$inputPlaceholderColor",borderLeftStyle:"solid",marginLeft:"$2",borderLeftWidth:"calc($$inputBorderWeight / 2)",height:"40%"}},{isRight:!1,underlined:!0,css:{borderRightColor:"$$inputPlaceholderColor",borderRightStyle:"solid",marginRight:"$2",borderRightWidth:"calc($$inputBorderWeight / 1)",height:"40%"}},{isDefaultStatus:!0,bordered:!1,underlined:!1,css:{bg:"$accents2"}},{isDefaultStatus:!0,bordered:!1,underlined:!1,isDark:!0,css:{color:"$accents6"}},{isDefaultStatus:!1,bordered:!0,underlined:!1,css:{bg:"$$inputColor"}},{bordered:!0,isRight:!0,css:{peddingRight:"$sm",paddingLeft:0}},{bordered:!0,isRight:!1,css:{peddingLeft:"$sm",paddingRight:0}}],defaultVariants:{isRight:!1}}),Vg=Se("span",{variants:{applyStyles:{true:{display:"flex",boxSizing:"content-box",width:"calc($$inputHeightRatio * $space$4)",height:"100%",alignItems:"center",verticalAlign:"center",margin:0,padding:"0 calc($$inputHeightRatio * $3)",color:"$$inputTextColor",lineHeight:"$xs",position:"relative",cursor:"default",pe:"none"}},clickable:{true:{cursor:"pointer",pe:"auto"}}}}),Hg=Se("button",{position:"absolute",right:0,margin:0,d:"inline-flex",ai:"center",border:"none",bg:"transparent",width:"auto",height:"auto",cursor:"pointer",boxSizing:"border-box",transition:"color 250ms ease 0s, transform 250ms ease 0s, opacity 250ms ease 0s",color:"$$inputPlaceholderColor",visibility:"hidden",transform:"translateX(20%)",opacity:0,"&:hover":{opacity:.85},svg:{color:"currentColor",size:"calc($space$5 * $$inputHeightRatio)"},"@motion":{transition:"none"},variants:{visible:{true:{visibility:"visible",transform:"translateX(0)",opacity:1}},underlined:{true:{padding:"0 $1"}},animated:{false:{transition:"none"}},hasContentRight:{true:{padding:0,position:"relative",transform:"translateX(30%)"}},disabled:{true:{cursor:"not-allowed","&:hover":{color:"$accents3"}}}}}),Ug=g().forwardRef((({as:e="input",label:t,labelPlaceholder:n,labelLeft:r,labelRight:o,size:i,helperText:a,color:s,helperColor:l,status:c,contentLeft:u,contentRight:d,contentClickable:p,contentLeftStyling:h,contentRightStyling:g,onContentClick:m,initialValue:b,onChange:y,readOnly:$,value:v,onClearClick:x,clearable:w,shadow:S,animated:C,required:k,width:E,className:T,onBlur:P,onFocus:I,autoComplete:M,placeholder:N,fullWidth:R,borderWeight:L,disabled:D,bordered:z,underlined:A,rounded:K,css:O,...j},_)=>{const F=(0,f.useRef)(null);(0,f.useImperativeHandle)(_,(()=>F.current));const[W,B]=(0,f.useState)(b),[V,H]=(0,f.useState)(!1),{isDark:U}=Ae(),G=(0,f.useMemo)((()=>void 0!==v),[v]),Y=(0,f.useMemo)((()=>t||n),[t,n]),X=(0,f.useMemo)((()=>n?"":N),[N,n]),J=(0,f.useMemo)((()=>R?"100%":E||"initial"),[R,E]),q=(e,t)=>{D||m&&m(e,t)};(0,f.useEffect)((()=>{G&&B(v)}));const Z=(0,f.useMemo)((()=>"textarea"===e),[e]),Q={...j,...G?{value:W}:{defaultValue:b}},{labelProps:ee,fieldProps:te}=Rg({...Q,label:Y}),ne=(0,f.useMemo)((()=>V?"hover":D?"disabled":$?"read-only":W?"with-value":"normal"),[V,D,$,W]);return(0,st.jsxs)(zg,{color:s,"data-state":ne,helperColor:l,borderWeight:L,status:c,size:i,rounded:K,disabled:D,css:{width:J,...O},className:Ui("nextui-input-main-container",`nextui-input-main-container--${ne}`),children:[Y&&(0,st.jsx)(Wg,{id:ee.id,className:"nextui-input-block-label",htmlFor:ee.htmlFor,isTextarea:Z,underlined:A,animated:C,bordered:z,rounded:K,hasContentLeft:!!u,withValue:!!W,asPlaceholder:!!n,focused:V,children:Y}),(0,st.jsx)(Ag,{animated:C,isTextarea:Z,underlined:A,isReadOnly:$,focused:V,className:Ui("nextui-input-container",`nextui-input-container--${ne}`,{"nextui-input-container--input":!Z,"nextui-input-container--textarea":Z,"nextui-input-container--read-only":$},T),children:(0,st.jsxs)(Og,{as:Y?"div":"label",animated:C,bordered:z,shadow:S,disabled:D,focused:V,isReadOnly:$,underlined:A,isTextarea:Z,className:Ui("nextui-input-wrapper",`nextui-input-wrapper--${ne}`,{"nextui-input-wrapper--bordered":z,"nextui-input-wrapper--underlined":A,"nextui-input-wrapper--shadow":S}),children:[!Y&&N&&(0,st.jsx)(Fg,{className:"nextui-input-placeholder",children:N}),r&&(0,st.jsx)(Bg,{className:"nextui-input-label--left",isDefaultStatus:"default"===c,underlined:A,bordered:z,isDark:U,children:r}),u&&(0,st.jsx)(Vg,{className:Ui("nextui-input-content","nextui-input-content--left"),applyStyles:h,clickable:p,onClick:e=>q("left",e),children:u}),(0,st.jsx)(Kg,{type:"text",as:e,ref:F,className:Ui({"nextui-input":!Z,"nextui-input-textarea":Z,"nextui-input-disabled":D,"nextui-input-rounded":K,"nextui-input-nextui-input-right-content":d,"nextui-input-left-content":u}),isTextarea:Z,focused:V,bordered:z,placeholder:X,disabled:D,readOnly:$,onFocus:e=>{H(!0),I&&I(e)},onBlur:e=>{H(!1),P&&P(e)},onChange:e=>{D||$||(B(e.target.value),y&&y(e))},autoComplete:M,hasLeftContent:!!u,hasRightContent:!!d,"data-state":ne,"aria-placeholder":X,"aria-readonly":$,"aria-required":k,"aria-multiline":Z,...Q,...te}),w&&(0,st.jsx)(Hg,{type:"button",className:"nextui-input-clear-button",animated:C,underlined:A,visible:Boolean(W),hasContentRight:!!d,disabled:D||$,onClick:e=>{if(e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),B(""),x&&x(e),!F.current)return;const t=((e,t)=>({...t,target:e,currentTarget:e}))(F.current,e);t.target.value="",y&&y(t),F.current.focus()},children:(0,st.jsx)(zh,{fill:"currentColor"})}),d&&(0,st.jsx)(Vg,{className:Ui("nextui-input-content","nextui-input-content--right"),applyStyles:g,clickable:p,onClick:e=>q("right",e),children:d}),o&&(0,st.jsx)(Bg,{className:"nextui-input-label--right",isDefaultStatus:"default"===c,underlined:A,bordered:z,isRight:!0,isDark:U,children:o})]})}),(0,st.jsx)(jg,{className:"nextui-input-helper-text-container",withValue:!!a,children:a&&(0,st.jsx)(_g,{className:"nextui-input-helper-text",children:a})})]})}));Ug.displayName="NextUI - Input",Ug.defaultProps=Dg,Ug.toString=()=>".nextui-input";const Gg=Ug,Yg=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],Xg={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},Jg="undefined"!=typeof document&&!!document.documentElement.currentStyle,qg=e=>{Object.keys(Xg).forEach((t=>{e.style.setProperty(t,Xg[t],"important")}))};let Zg=null;const Qg=g().forwardRef(((e,t)=>{const n=(0,f.useRef)(null),r=g().useRef(0),o=g().useRef(),{cacheMeasurements:i,rows:a,maxRows:s,minRows:l,onChange:c,onHeightChange:u,css:d,...h}=e;Object.keys(h).forEach((e=>{p.indexOf(e)>-1&&delete h[e]}));const m=void 0!==h.value;(0,f.useImperativeHandle)(t,(()=>n.current));const b=()=>{const e=n.current,t=i&&o.current?o.current:(e=>{const t=window.getComputedStyle(e);if(null===t)return null;const n=(r=t,Yg.reduce(((e,t)=>(e[t]=r[t],e)),{}));var r;const{boxSizing:o}=n;return""===o?null:(Jg&&"border-box"===o&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px"),{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)})})(e);if(!t)return;o.current=t;const[c,d]=((e,t,n=1,r=1/0)=>{Zg||(Zg=document.createElement("textarea"),Zg.setAttribute("tabindex","-1"),Zg.setAttribute("aria-hidden","true"),qg(Zg)),null===Zg.parentNode&&document.body.appendChild(Zg);const{paddingSize:o,borderSize:i,sizingStyle:a}=e,{boxSizing:s}=a;Object.keys(a).forEach((e=>{const t=e;Zg.style[t]=a[t]})),qg(Zg),Zg.value=t;let l=((e,t)=>{const n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize})(Zg,e);Zg.value="x";const c=Zg.scrollHeight-o;let u=c*n;"border-box"===s&&(u=u+o+i),l=Math.max(u,l);let d=c*r;return"border-box"===s&&(d=d+o+i),l=Math.min(d,l),[l,c]})(t,e.value||e.placeholder||"x",a||l,a||s);r.current!==c&&(r.current=c,e.style.setProperty("height",`${c}px`,"important"),u&&u(c,{rowHeight:d}))};return"undefined"!=typeof document&&((0,f.useLayoutEffect)(b),$(b)),(0,st.jsx)(am,{as:"textarea",ref:n,onChange:e=>{m||b(),c&&c(e)},css:{...d},...h})}));Qg.toString=()=>".nextui-textarea";const em=Vi(Qg,{minRows:3,maxRows:6,cacheMeasurements:!0,initialValue:""}),tm=({visible:e})=>(0,st.jsx)("svg",{viewBox:"0 0 24 24",width:"16",height:"16",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",className:"nextui-input-password-icon",shapeRendering:"geometricPrecision",style:{color:"currentColor"},children:e?(0,st.jsxs)(st.Fragment,{children:[(0,st.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24"}),(0,st.jsx)("path",{d:"M1 1l22 22"})]}):(0,st.jsxs)(st.Fragment,{children:[(0,st.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,st.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}),nm=g().memo(tm),rm={...Dg,hideToggle:!1,visibleIcon:(0,st.jsx)(nm,{visible:!0}),hiddenIcon:(0,st.jsx)(nm,{visible:!1})},om=g().forwardRef((({hideToggle:e,visibleIcon:t,hiddenIcon:n,children:r,...o},i)=>{const a=(0,f.useRef)(null),[s,l]=(0,f.useState)(!1);(0,f.useImperativeHandle)(i,(()=>a.current));const c=()=>{l((e=>!e))},u=(0,f.useMemo)((()=>({...o,ref:a,className:Ui("nextui-input-password",o.className),contentClickable:!0,onContentClick:c,type:s?"text":"password"})),[o,c,s,a]),d=(0,f.useMemo)((()=>e?null:s?t:n),[e,s,t,n]);return(0,st.jsx)(Gg,{contentRight:d,...u,children:r})}));om.toString=()=>".nextui-input-password";const im=Vi(om,rm);Gg.Textarea=em,Gg.Password=im;const am=Gg;function sm(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}sm({},"Layout",(()=>lm));class lm{shouldInvalidate(e,t){return e.width!==t.width||e.height!==t.height}validate(e){}getInitialLayoutInfo(e){return e}getFinalLayoutInfo(e){return e}}sm({},"LayoutInfo",(()=>cm));class cm{copy(){let e=new cm(this.type,this.key,this.rect.copy());return e.estimatedSize=this.estimatedSize,e.opacity=this.opacity,e.transform=this.transform,e.parentKey=this.parentKey,e.isSticky=this.isSticky,e.zIndex=this.zIndex,e.allowOverflow=this.allowOverflow,e}constructor(e,t,n){this.type=e,this.key=t,this.parentKey=null,this.rect=n,this.estimatedSize=!1,this.isSticky=!1,this.opacity=1,this.transform=null,this.zIndex=0,this.allowOverflow=!1}}sm({},"Point",(()=>um));class um{copy(){return new um(this.x,this.y)}equals(e){return this.x===e.x&&this.y===e.y}isOrigin(){return 0===this.x&&0===this.y}constructor(e=0,t=0){this.x=e,this.y=t}}sm({},"Rect",(()=>dm));class dm{get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new um(this.x,this.y)}get topRight(){return new um(this.maxX,this.y)}get bottomLeft(){return new um(this.x,this.maxY)}get bottomRight(){return new um(this.maxX,this.maxY)}intersects(e){return this.x<=e.x+e.width&&e.x<=this.x+this.width&&this.y<=e.y+e.height&&e.y<=this.y+this.height}containsRect(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.maxX&&this.maxY>=e.maxY}containsPoint(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.x&&this.maxY>=e.y}getCornerInRect(e){for(let t of["topLeft","topRight","bottomLeft","bottomRight"])if(e.containsPoint(this[t]))return t;return null}equals(e){return e.x===this.x&&e.y===this.y&&e.width===this.width&&e.height===this.height}pointEquals(e){return this.x===e.x&&this.y===e.y}sizeEquals(e){return this.width===e.width&&this.height===e.height}copy(){return new dm(this.x,this.y,this.width,this.height)}constructor(e=0,t=0,n=0,r=0){this.x=e,this.y=t,this.width=n,this.height=r}}sm({},"Size",(()=>pm));class pm{copy(){return new pm(this.width,this.height)}equals(e){return this.width===e.width&&this.height===e.height}constructor(e=0,t=0){this.width=e,this.height=t}}sm({},"ReusableView",(()=>fm));let hm=0;class fm{prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null}constructor(e){this.virtualizer=e,this.key=++hm}}sm({},"useVirtualizerState",(()=>km));let gm,mm="undefined"!=typeof window?window.performance:null,bm=mm&&(mm.now||mm.webkitNow||mm.msNow||mm.mozNow),ym=bm?bm.bind(mm):function(){return Date.now?Date.now():(new Date).getTime()};function $m(e){return Math.sin(e*Math.PI/2)}function vm(e,t){let n=new Set;for(let r of e.keys())t.has(r)||n.add(r);return n}class xm{addSample(e){this.count++,this.value+=(e-this.value)/this.count}constructor(){this.count=0,this.value=0}}class wm{setVisibleRect(e){let t=performance.now()-this.startTime;t<500&&(this.averageTime.addSample(t),e.x!==this.visibleRect.x&&t>0&&(this.velocity.x=(e.x-this.visibleRect.x)/t),e.y!==this.visibleRect.y&&t>0&&(this.velocity.y=(e.y-this.visibleRect.y)/t)),this.startTime=performance.now(),this.visibleRect=e}collectMetrics(){let e=performance.now()-this.startTime;if(e<500&&this.averagePerf.addSample(e),this.visibleRect.height>0){let e=Math.abs(this.velocity.y*(this.averageTime.value+this.averagePerf.value));this.overscanY.addSample(e)}if(this.visibleRect.width>0){let e=Math.abs(this.velocity.x*(this.averageTime.value+this.averagePerf.value));this.overscanX.addSample(e)}}getOverscannedRect(){let e=this.visibleRect.copy(),t=100*Math.round(Math.min(2*this.visibleRect.height,this.overscanY.value)/100);this.velocity.y>0?(e.y-=.2*t,e.height+=t+.2*t):(e.y-=t,e.height+=t+.2*t);let n=100*Math.round(Math.min(2*this.visibleRect.width,this.overscanX.value)/100);return this.velocity.x>0?(e.x-=.2*n,e.width+=n+.2*n):(e.x-=n,e.width+=n+.2*n),e}constructor(){this.startTime=0,this.averagePerf=new xm,this.averageTime=new xm,this.velocity=new um(5,5),this.overscanX=new xm,this.overscanY=new xm,this.visibleRect=new dm}}class Sm{constructor(){this.level=0,this.actions=[],this.animated=!0,this.initialMap=new Map,this.finalMap=new Map,this.initialLayoutInfo=new Map,this.finalLayoutInfo=new Map,this.removed=new Map,this.toRemove=new Map}}class Cm{_setContentSize(e){this._contentSize=e,this.delegate.setContentSize(e)}_setContentOffset(e){let t=new dm(e.x,e.y,this._visibleRect.width,this._visibleRect.height);this.delegate.setVisibleRect(t)}get contentSize(){return this._contentSize}get visibleRect(){return this._visibleRect}set visibleRect(e){this._setVisibleRect(e)}_setVisibleRect(e,t=!1){let n=this._visibleRect;if(e.equals(n))return;this.shouldOverscan&&this._overscanManager.setVisibleRect(e);let r=this.layout&&this.layout.shouldInvalidate(e,this._visibleRect);this._resetAnimatedContentOffset(),this._visibleRect=e,r?this.relayout({offsetChanged:!e.pointEquals(n),sizeChanged:!e.sizeEquals(n)}):this.updateSubviews(t)}get collection(){return this._collection}set collection(e){this._setData(e)}_setData(e){e!==this._collection&&(this._collection?this._runTransaction((()=>{this._collection=e}),this.transitionDuration>0):(this._collection=e,this.reloadData()))}reloadData(){this.relayout({contentChanged:!0})}getItem(e){return this._collection?this._collection.getItem(e):null}get layout(){return this._layout}set layout(e){this.setLayout(e)}setLayout(e,t=!1){if(e===this._layout)return;let n=()=>{this._layout&&(this._layout.virtualizer=null),e.virtualizer=this,this._layout=e};t?this._runTransaction(n):(n(),this.relayout())}_getReuseType(e,t){if("item"===e.type&&t){let n=this.delegate.getType?this.delegate.getType(t):"item";return{type:n,reuseType:"item"===n?"item":e.type+"_"+n}}return{type:e.type,reuseType:e.type}}getReusableView(e){let t=this.getItem(e.key),{reuseType:n}=this._getReuseType(e,t);this._reusableViews[n]||(this._reusableViews[n]=[]);let r=this._reusableViews[n],o=r.length>0?r.pop():new fm(this);return o.viewType=n,this._animatedContentOffset.isOrigin()||((e=e.copy()).rect.x+=this._animatedContentOffset.x,e.rect.y+=this._animatedContentOffset.y),o.layoutInfo=e,this._renderView(o),o}_renderView(e){let{type:t,key:n}=e.layoutInfo;e.content=this.getItem(n),e.rendered=this._renderContent(t,e.content)}_renderContent(e,t){let n=this._renderedContent.get(t);if(null!=n)return n;let r=this.delegate.renderView(e,t);return t&&this._renderedContent.set(t,r),r}get visibleViews(){return Array.from(this._visibleViews.values())}getView(e){return this._visibleViews.get(e)||null}getViewsOfType(e){return this.visibleViews.filter((t=>t.layoutInfo&&t.layoutInfo.type===e))}keyForView(e){return e&&e.layoutInfo?e.layoutInfo.key:null}keyAtPoint(e){let t=new dm(e.x,e.y,1,1),n=this.layout.getVisibleLayoutInfos(t)[0];return n?n.key:null}willUnmount(){cancelAnimationFrame(this._relayoutRaf)}relayout(e={}){this._scrollAnimation||"undefined"==typeof requestAnimationFrame||(this._invalidationContext?Object.assign(this._invalidationContext,e):(this._invalidationContext=e,this._relayoutRaf=requestAnimationFrame((()=>{this._relayoutRaf=null,this.relayoutNow()}))))}relayoutNow(e=this._invalidationContext||{}){if(this._relayoutRaf&&(cancelAnimationFrame(this._relayoutRaf),this._relayoutRaf=null,e={...this._invalidationContext,...e}),this._invalidationContext=null,!this.layout||!this._collection||this._scrollAnimation)return;let t=this._getScrollAnchor();"function"==typeof e.beforeLayout&&e.beforeLayout(),this.layout.validate(e),this._setContentSize(this.layout.getContentSize()),"function"==typeof e.afterLayout&&e.afterLayout();let n=this.getVisibleRect(),r=this._restoreScrollAnchor(t,e),o=e.contentChanged?0:r.x,i=e.contentChanged?0:r.y;o=Math.max(0,Math.min(this.contentSize.width-n.width,o)),i=Math.max(0,Math.min(this.contentSize.height-n.height,i));let a=!1;if(o!==n.x||i!==n.y?e.animated||!this._animatedContentOffset.isOrigin()?(this._animatedContentOffset.x+=n.x-o,this._animatedContentOffset.y+=n.y-i,a=this.updateSubviews(e.contentChanged)):this._setContentOffset(new um(o,i)):a=this.updateSubviews(e.contentChanged),e.transaction&&e.animated||this._applyLayoutInfos(),e.animated&&a){this._enableTransitions();let t=()=>{if(this._disableTransitions(),!this._animatedContentOffset.isOrigin()){let{x:e,y:t}=this.getVisibleRect();this._resetAnimatedContentOffset(),this._setContentOffset(new um(e,t))}"function"==typeof e.afterAnimation&&e.afterAnimation()};setTimeout(t,this.transitionDuration+100)}else"function"==typeof e.afterAnimation&&e.afterAnimation()}_correctItemOrder(){if(!this._isScrolling&&!this._transaction)for(let e of this._visibleLayoutInfos.keys()){let t=this._visibleViews.get(e);this._children.delete(t),this._children.add(t)}}_enableTransitions(){this.delegate.beginAnimations()}_disableTransitions(){this.delegate.endAnimations()}_getScrollAnchor(){if(!this.anchorScrollPosition)return null;let e=this.getVisibleRect();if(this.delegate.getScrollAnchor){let t=this.delegate.getScrollAnchor(e);if(null!=t){let n=this.layout.getLayoutInfo(t),r=n.rect.getCornerInRect(e);if(r)return{key:n.key,layoutInfo:n,corner:r,offset:n.rect[r].y-e.y}}}if(0===e.y&&!this.anchorScrollPositionAtTop)return null;let t=null;for(let[n,r]of this._visibleViews){let o=r.layoutInfo;if(o&&o.rect.area>0){let r=o.rect.getCornerInRect(e);if(r){let i=o.rect[r].y-e.y;(!t||i<t.offset)&&(t={key:n,layoutInfo:o,corner:r,offset:i})}}}return t}_restoreScrollAnchor(e,t){let n=this.getVisibleRect();if(e){var r;let o=(null===(r=t.transaction)||void 0===r?void 0:r.animated)?t.transaction.finalMap.get(e.key):this.layout.getLayoutInfo(e.layoutInfo.key);if(o){let t=o.rect[e.corner].y-n.y-e.offset;n.y+=t}}return n}getVisibleRect(){let e=this.visibleRect,t=e.x-this._animatedContentOffset.x,n=e.y-this._animatedContentOffset.y;return new dm(t,n,e.width,e.height)}getVisibleLayoutInfos(){let e=this.shouldOverscan?this._overscanManager.getOverscannedRect():this.getVisibleRect();return this._visibleLayoutInfos=this._getLayoutInfoMap(e),this._visibleLayoutInfos}_getLayoutInfoMap(e,t=!1){let n=this.layout.getVisibleLayoutInfos(e),r=new Map;for(let e of n)t&&(e=e.copy()),r.set(e.key,e);return r}updateSubviews(e=!1){if(!this._collection)return;let t,n,r,o=this.getVisibleLayoutInfos(),i=this._visibleViews;if(e)t=o,n=i,r=new Set;else{({toAdd:t,toRemove:n,toUpdate:r}=function(e,t){let n=vm(e,t),r=vm(t,e),o=new Set;for(let n of e.keys())t.has(n)&&o.add(n);return{toRemove:n,toAdd:r,toUpdate:o}}(i,o));for(let e of r){let a=i.get(e);if(!a||!a.layoutInfo)continue;let s=this.getItem(o.get(e).key);if(a.content===s)r.delete(e);else{let{reuseType:o}=this._getReuseType(a.layoutInfo,s);a.viewType!==o&&(r.delete(e),t.add(e),n.add(e))}}if(0===t.size&&0===n.size&&0===r.size)return void(this._transaction&&this._applyLayoutInfos())}let a=new Set;for(let e of n.keys()){let t=this._visibleViews.get(e);t&&(a.add(t),this._visibleViews.delete(e),this._transaction?this._transaction.toRemove.set(e,t):this.reuseView(t))}for(let e of t.keys()){let t,n=o.get(e);this._transaction&&(this._transaction.initialLayoutInfo.has(e)&&(n=this._transaction.initialLayoutInfo.get(e)),t=this._transaction.toRemove.get(e),t&&(this._transaction.toRemove.delete(e),this._applyLayoutInfo(t,n))),t||(t=this.getReusableView(n),a.has(t)||this._children.add(t)),this._visibleViews.set(e,t),a.delete(t)}for(let e of r){let t=i.get(e);this._renderedContent.delete(e),this._renderView(t)}this._transaction||this.removeViews(a),this._correctItemOrder(),this._flushVisibleViews();let s=this._transaction&&(t.size>0||n.size>0||this._hasLayoutUpdates());return s&&requestAnimationFrame((()=>{this._transaction&&requestAnimationFrame((()=>this._applyLayoutInfos()))})),s}afterRender(){this.shouldOverscan&&this._overscanManager.collectMetrics()}_flushVisibleViews(){let e=new Map([[null,[]]]);for(let t of this._children)e.has(t.layoutInfo.parentKey)||e.set(t.layoutInfo.parentKey,[]),e.get(t.layoutInfo.parentKey).push(t),e.has(t.layoutInfo.key)||e.set(t.layoutInfo.key,[]);let t=(n,r)=>r.map((r=>{let o=e.get(r.layoutInfo.key);return this.delegate.renderWrapper(n,r,o,(e=>t(r,e)))})),n=t(null,e.get(null));this.delegate.setVisibleViews(n)}_applyLayoutInfo(e,t){return e.layoutInfo!==t&&(e.layoutInfo=t,!0)}_applyLayoutInfos(){let e=!1;for(let t of this._visibleViews.values()){let n=t.layoutInfo;if(n){let r=this.layout.getLayoutInfo(n.key);this._applyLayoutInfo(t,r)&&(e=!0)}}if(this._transaction){for(let t of this._transaction.toRemove.values()){let n=t.layoutInfo,r=this.layout.getLayoutInfo(n.key);this._applyLayoutInfo(t,r)&&(e=!0)}for(let t of this._transaction.removed.values()){let n=t.layoutInfo,r=this._transaction.finalLayoutInfo.get(n.key)||n;r=this.layout.getFinalLayoutInfo(r.copy()),this._applyLayoutInfo(t,r)&&(e=!0)}}e&&this._flushVisibleViews()}_hasLayoutUpdates(){if(!this._transaction)return!1;for(let e of this._visibleViews.values()){let t=e.layoutInfo;if(!t)return!0;let n=this.layout.getLayoutInfo(t.key);if(!t.rect.equals(n.rect)||t.opacity!==n.opacity||t.transform!==n.transform)return!0}return!1}reuseView(e){e.prepareForReuse(),this._reusableViews[e.viewType].push(e)}removeViews(e){for(let t of e)this._children.delete(t)}updateItemSize(e,t){this.layout.updateItemSize&&(this._scrollAnimation?this._sizeUpdateQueue.set(e,t):this.layout.updateItemSize(e,t)&&this.relayout())}startScrolling(){this._isScrolling=!0}endScrolling(){this._isScrolling=!1,this._correctItemOrder(),this._flushVisibleViews()}_resetAnimatedContentOffset(){this._animatedContentOffset.isOrigin()||(this._animatedContentOffset=new um(0,0),this._applyLayoutInfos())}scrollToItem(e,t){if(null==e)return;let n=this.layout.getLayoutInfo(e);if(!n)return;let{duration:r=300,shouldScrollX:o=!0,shouldScrollY:i=!0,offsetX:a=0,offsetY:s=0}=t,l=this.visibleRect.x,c=this.visibleRect.y,u=n.rect.x-a,d=n.rect.y-s,p=l+this.visibleRect.width,h=c+this.visibleRect.height;return o&&(u<=l||0===p?l=u:n.rect.maxX>p&&(l+=n.rect.maxX-p)),i&&(d<=c||0===h?c=d:n.rect.maxY>h&&(c+=n.rect.maxY-h)),this.scrollTo(new um(l,c),r)}scrollTo(e,t=300){return this._scrollAnimation&&(this._scrollAnimation.cancel(),this._scrollAnimation=null),t<=0||this.visibleRect.pointEquals(e)?(this._setContentOffset(e),Promise.resolve()):(this.startScrolling(),this._scrollAnimation=function(e,t,n,r,o){let i,a=!1,s=new Promise((s=>{let l=ym(),c=t.x-e.x,u=t.y-e.y;i=requestAnimationFrame((function d(p){null==gm&&(gm=p>1e12!=ym()>1e12),gm&&(p=ym());let h=p-l;h>n?(o(t),s()):!1===o(new um(e.x+c*r(h/n),e.y+u*r(h/n)))||a||(i=requestAnimationFrame(d))}))}));return s.cancel=function(){a=!0,cancelAnimationFrame(i)},s}(this.visibleRect,e,t,$m,(e=>{this._setContentOffset(e)})),this._scrollAnimation.then((()=>{this._scrollAnimation=null;for(let[e,t]of this._sizeUpdateQueue)this.updateItemSize(e,t);this._sizeUpdateQueue.clear(),this.relayout(),this._processTransactionQueue(),this.endScrolling()})),this._scrollAnimation)}_runTransaction(e,t){this._startTransaction(),this._nextTransaction&&this._nextTransaction.actions.push(e),this._endTransaction(t)}_startTransaction(){this._nextTransaction||(this._nextTransaction=new Sm),this._nextTransaction.level++}_endTransaction(e){return!(!this._nextTransaction||(null!=e&&(this._nextTransaction.animated=e),--this._nextTransaction.level>0||(0===this._nextTransaction.actions.length?(this._nextTransaction=null,1):(null==this._nextTransaction.animated&&(this._nextTransaction.animated=!0),this._transactionQueue.push(this._nextTransaction),this._nextTransaction=null,this._processTransactionQueue(),0))))}_processTransactionQueue(){if(this._transaction||this._scrollAnimation)return;let e=this._transactionQueue.shift();e&&this._performTransaction(e)}_getContentRect(){return new dm(0,0,this.contentSize.width,this.contentSize.height)}_performTransaction(e){this._transaction=e,this.relayoutNow({transaction:e,animated:e.animated,beforeLayout:()=>{e.animated&&(e.initialMap=this._getLayoutInfoMap(this._getContentRect(),!0));for(let t of e.actions)t()},afterLayout:()=>{e.animated?(e.finalMap=this._getLayoutInfoMap(this._getContentRect()),this._setupTransactionAnimations(e)):this._transaction=null},afterAnimation:()=>{if(e.toRemove.size>0||e.removed.size>0)for(let t of function*(...e){for(let t of e)yield*t}(e.toRemove.values(),e.removed.values()))this._children.delete(t),this.reuseView(t);this._transaction=null,this._correctItemOrder(),this._flushVisibleViews(),this._processTransactionQueue()}})}_setupTransactionAnimations(e){let{initialMap:t,finalMap:n}=e;for(let[r,o]of t)n.has(r)?e.initialLayoutInfo.set(r,o):e.finalLayoutInfo.set(o.key,o);for(let[r,o]of n)if(!t.has(r)){let t=this.layout.getInitialLayoutInfo(o.copy());e.initialLayoutInfo.set(r,t)}for(let[t,r]of this._visibleViews)n.has(t)||(e.removed.set(t,r),this._visibleViews.delete(t),r.layoutInfo&&(e.finalLayoutInfo.has(r.layoutInfo.key)||e.finalLayoutInfo.set(r.layoutInfo.key,r.layoutInfo)))}constructor(e={}){var t;this._contentSize=new pm,this._visibleRect=new dm,this._reusableViews={},this._visibleLayoutInfos=new Map,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._children=new Set,this._invalidationContext=null,this._overscanManager=new wm,this._scrollAnimation=null,this._isScrolling=!1,this._sizeUpdateQueue=new Map,this._animatedContentOffset=new um(0,0),this._transaction=null,this._nextTransaction=null,this._transactionQueue=[],this.transitionDuration=null!==(t=e.transitionDuration)&&void 0!==t?t:500,this.anchorScrollPosition=e.anchorScrollPosition||!1,this.anchorScrollPositionAtTop=e.anchorScrollPositionAtTop||!1,this.shouldOverscan=!1!==e.shouldOverscan;for(let t of["delegate","size","layout","collection"])e[t]&&(this[t]=e[t])}}function km(e){let[t,n]=(0,f.useState)([]),[r,o]=(0,f.useState)(new pm),[i,a]=(0,f.useState)(!1),[s,l]=(0,f.useState)(!1),c=(0,f.useMemo)((()=>new Cm),[]);return c.delegate={setVisibleViews:n,setVisibleRect(t){c.visibleRect=t,e.onVisibleRectChange(t)},setContentSize:o,renderView:e.renderView,renderWrapper:e.renderWrapper,beginAnimations:()=>a(!0),endAnimations:()=>a(!1),getScrollAnchor:e.getScrollAnchor},c.layout=e.layout,c.collection=e.collection,c.transitionDuration=e.transitionDuration,zf((()=>{c.afterRender()})),(0,f.useEffect)((()=>()=>c.willUnmount()),[]),{virtualizer:c,visibleViews:t,setVisibleRect:(0,f.useCallback)((e=>{c.visibleRect=e}),[c]),contentSize:r,isAnimating:i,isScrolling:s,startScrolling:(0,f.useCallback)((()=>{c.startScrolling(),l(!0)}),[c]),endScrolling:(0,f.useCallback)((()=>{c.endScrolling(),l(!1)}),[c])}}function Em(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}Em({},"Pressable",(()=>Wm)),Em({},"usePress",(()=>Dm));let Tm="default",Pm="",Im=new WeakMap;function Mm(e){wg()?("default"===Tm&&(Pm=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),Tm="disabled"):e&&(Im.set(e,e.style.userSelect),e.style.userSelect="none")}function Nm(e){if(wg()){if("disabled"!==Tm)return;Tm="restoring",setTimeout((()=>{Qf((()=>{"restoring"===Tm&&("none"===document.documentElement.style.webkitUserSelect&&(document.documentElement.style.webkitUserSelect=Pm||""),Pm="",Tm="default")}))}),300)}else if(e&&Im.has(e)){let t=Im.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),Im.delete(e)}}function Rm(e){return!(0!==e.mozInputSource||!e.isTrusted)||0===e.detail&&!e.pointerType}const Lm=g().createContext(null);function Dm(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:a,isPressed:s,preventFocusOnPress:l,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:u,ref:d,...p}=function(e){let t=(0,f.useContext)(Lm);if(t){let{register:n,...r}=t;e=Ff(r,e),n()}return sg(t,e.ref),e}(e),h=(0,f.useRef)(null);h.current={onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:a,shouldCancelOnPointerExit:c};let[g,m]=(0,f.useState)(!1),b=(0,f.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:y,removeAllGlobalListeners:$}=ng(),v=(0,f.useMemo)((()=>{let e=b.current,t=(t,n)=>{let{onPressStart:r,onPressChange:o,isDisabled:i}=h.current;i||e.didFirePressStart||(r&&r({type:"pressstart",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),o&&o(!0),e.didFirePressStart=!0,m(!0))},n=(t,n,r=!0)=>{let{onPressEnd:o,onPressChange:i,onPress:a,isDisabled:s}=h.current;e.didFirePressStart&&(e.ignoreClickAfterPress=!0,e.didFirePressStart=!1,o&&o({type:"pressend",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}),i&&i(!1),m(!1),a&&r&&!s&&a({type:"press",pointerType:n,target:t.currentTarget,shiftKey:t.shiftKey,metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey}))},r=(e,t)=>{let{onPressUp:n,isDisabled:r}=h.current;r||n&&n({type:"pressup",pointerType:t,target:e.currentTarget,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})},o=t=>{e.isPressed&&(e.isOverTarget&&n(Om(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,$(),u||Nm(e.target))},i={onKeyDown(n){Am(n.nativeEvent)&&n.currentTarget.contains(n.target)&&(Fm(n.target)&&n.preventDefault(),n.stopPropagation(),e.isPressed||n.repeat||(e.target=n.currentTarget,e.isPressed=!0,t(n,"keyboard"),y(document,"keyup",s,!1)))},onKeyUp(t){Am(t.nativeEvent)&&!t.repeat&&t.currentTarget.contains(t.target)&&r(Om(e.target,t),"keyboard")},onClick(o){o&&!o.currentTarget.contains(o.target)||o&&0===o.button&&(o.stopPropagation(),a&&o.preventDefault(),e.ignoreClickAfterPress||e.ignoreEmulatedMouseEvents||"virtual"!==e.pointerType&&!Rm(o.nativeEvent)||(a||l||Uf(o.currentTarget),t(o,"virtual"),r(o,"virtual"),n(o,"virtual")),e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1)}},s=t=>{if(e.isPressed&&Am(t)){Fm(t.target)&&t.preventDefault(),t.stopPropagation(),e.isPressed=!1;let r=t.target;n(Om(e.target,t),"keyboard",e.target.contains(r)),$(),(e.target.contains(r)&&zm(e.target)||"link"===e.target.getAttribute("role"))&&e.target.click()}};if("undefined"!=typeof PointerEvent){i.onPointerDown=n=>{var r;0===n.button&&n.currentTarget.contains(n.target)&&(0===(r=n.nativeEvent).width&&0===r.height||1===r.width&&1===r.height&&0===r.pressure&&0===r.detail?e.pointerType="virtual":(_m(n.currentTarget)&&n.preventDefault(),e.pointerType=n.pointerType,n.stopPropagation(),e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=n.pointerId,e.target=n.currentTarget,a||l||Uf(n.currentTarget),u||Mm(e.target),t(n,e.pointerType),y(document,"pointermove",s,!1),y(document,"pointerup",c,!1),y(document,"pointercancel",d,!1))))},i.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(_m(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},i.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&jm(t,t.currentTarget)&&r(t,e.pointerType||t.pointerType)};let s=r=>{r.pointerId===e.activePointerId&&(jm(r,e.target)?e.isOverTarget||(e.isOverTarget=!0,t(Om(e.target,r),e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,n(Om(e.target,r),e.pointerType,!1),h.current.shouldCancelOnPointerExit&&o(r)))},c=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&(jm(t,e.target)?n(Om(e.target,t),e.pointerType):e.isOverTarget&&n(Om(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,$(),u||Nm(e.target))},d=e=>{o(e)};i.onDragStart=e=>{e.currentTarget.contains(e.target)&&o(e)}}else{i.onMouseDown=n=>{0===n.button&&n.currentTarget.contains(n.target)&&(_m(n.currentTarget)&&n.preventDefault(),n.stopPropagation(),e.ignoreEmulatedMouseEvents||(e.isPressed=!0,e.isOverTarget=!0,e.target=n.currentTarget,e.pointerType=Rm(n.nativeEvent)?"virtual":"mouse",a||l||Uf(n.currentTarget),t(n,e.pointerType),y(document,"mouseup",s,!1)))},i.onMouseEnter=n=>{n.currentTarget.contains(n.target)&&(n.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!0,t(n,e.pointerType)))},i.onMouseLeave=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&!e.ignoreEmulatedMouseEvents&&(e.isOverTarget=!1,n(t,e.pointerType,!1),h.current.shouldCancelOnPointerExit&&o(t)))},i.onMouseUp=t=>{t.currentTarget.contains(t.target)&&(e.ignoreEmulatedMouseEvents||0!==t.button||r(t,e.pointerType))};let s=t=>{0===t.button&&(e.isPressed=!1,$(),e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:(jm(t,e.target)?n(Om(e.target,t),e.pointerType):e.isOverTarget&&n(Om(e.target,t),e.pointerType,!1),e.isOverTarget=!1))};i.onTouchStart=n=>{if(!n.currentTarget.contains(n.target))return;n.stopPropagation();let r=function(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}(n.nativeEvent);r&&(e.activePointerId=r.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=n.currentTarget,e.pointerType="touch",a||l||Uf(n.currentTarget),u||Mm(e.target),t(n,e.pointerType),y(window,"scroll",c,!0))},i.onTouchMove=r=>{if(!r.currentTarget.contains(r.target))return;if(r.stopPropagation(),!e.isPressed)return;let i=Km(r.nativeEvent,e.activePointerId);i&&jm(i,r.currentTarget)?e.isOverTarget||(e.isOverTarget=!0,t(r,e.pointerType)):e.isOverTarget&&(e.isOverTarget=!1,n(r,e.pointerType,!1),h.current.shouldCancelOnPointerExit&&o(r))},i.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(t.stopPropagation(),!e.isPressed)return;let o=Km(t.nativeEvent,e.activePointerId);o&&jm(o,t.currentTarget)?(r(t,e.pointerType),n(t,e.pointerType)):e.isOverTarget&&n(t,e.pointerType,!1),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,u||Nm(e.target),$()},i.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&o(t))};let c=t=>{e.isPressed&&t.target.contains(e.target)&&o({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};i.onDragStart=e=>{e.currentTarget.contains(e.target)&&o(e)}}return i}),[y,a,l,$,u]);return(0,f.useEffect)((()=>()=>{u||Nm(b.current.target)}),[u]),{isPressed:s||g,pressProps:Ff(p,v)}}function zm(e){return"A"===e.tagName&&e.hasAttribute("href")}function Am(e){const{key:t,code:n,target:r}=e,o=r,{tagName:i,isContentEditable:a}=o,s=o.getAttribute("role");return!("Enter"!==t&&" "!==t&&"Spacebar"!==t&&"Space"!==n||"INPUT"===i||"TEXTAREA"===i||!0===a||zm(o)&&("button"!==s||"Enter"===t)||"link"===s&&"Enter"!==t)}function Km(e,t){const n=e.changedTouches;for(let e=0;e<n.length;e++){const r=n[e];if(r.identifier===t)return r}return null}function Om(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function jm(e,t){let n=t.getBoundingClientRect(),r=function(e){let t=e.width/2||e.radiusX||0,n=e.height/2||e.radiusY||0;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);return function(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}(n,r)}function _m(e){return!e.draggable}function Fm(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&"submit"===e.type)}Lm.displayName="PressResponderContext";const Wm=g().forwardRef((({children:e,...t},n)=>{let r=(0,f.useRef)();n=null!=n?n:r;let{pressProps:o}=Dm({...t,ref:n}),i=g().Children.only(e);return g().cloneElement(i,{ref:n,...Ff(i.props,o)})}));Em({},"PressResponder",(()=>Bm));const Bm=g().forwardRef((({children:e,...t},n)=>{let r=(0,f.useRef)(!1),o=(0,f.useContext)(Lm),i=Ff(o||{},{...t,ref:n||(null==o?void 0:o.ref),register(){r.current=!0,o&&o.register()}});return sg(o,n),(0,f.useEffect)((()=>{r.current||console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component.")}),[]),g().createElement(Lm.Provider,{value:i},e)}));function Vm(e){if(e.isDisabled)return{focusProps:{}};let t,n;return(e.onFocus||e.onFocusChange)&&(t=t=>{t.target===t.currentTarget&&(e.onFocus&&e.onFocus(t),e.onFocusChange&&e.onFocusChange(!0))}),(e.onBlur||e.onFocusChange)&&(n=t=>{t.target===t.currentTarget&&(e.onBlur&&e.onBlur(t),e.onFocusChange&&e.onFocusChange(!1))}),{focusProps:{onFocus:t,onBlur:n}}}Em({},"useFocus",(()=>Vm));var Hm={};Em(Hm,"isFocusVisible",(()=>ib)),Em(Hm,"getInteractionModality",(()=>ab)),Em(Hm,"setInteractionModality",(()=>sb)),Em(Hm,"useInteractionModality",(()=>lb)),Em(Hm,"useFocusVisible",(()=>cb)),Em(Hm,"useFocusVisibleListener",(()=>ub));let Um=null,Gm=new Set,Ym=!1,Xm=!1,Jm=!1;const qm={Tab:!0,Escape:!0};function Zm(e,t){for(let n of Gm)n(e,t)}function Qm(e){Xm=!0,function(e){return!(e.metaKey||!$g()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Um="keyboard",Zm("keyboard",e))}function eb(e){Um="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(Xm=!0,Zm("pointer",e))}function tb(e){Rm(e)&&(Xm=!0,Um="virtual")}function nb(e){e.target!==window&&e.target!==document&&(Xm||Jm||(Um="virtual",Zm("virtual",e)),Xm=!1,Jm=!1)}function rb(){Xm=!1,Jm=!0}function ob(){if("undefined"==typeof window||Ym)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Xm=!0,e.apply(this,arguments)},document.addEventListener("keydown",Qm,!0),document.addEventListener("keyup",Qm,!0),document.addEventListener("click",tb,!0),window.addEventListener("focus",nb,!0),window.addEventListener("blur",rb,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",eb,!0),document.addEventListener("pointermove",eb,!0),document.addEventListener("pointerup",eb,!0)):(document.addEventListener("mousedown",eb,!0),document.addEventListener("mousemove",eb,!0),document.addEventListener("mouseup",eb,!0)),Ym=!0}function ib(){return"pointer"!==Um}function ab(){return Um}function sb(e){Um=e,Zm(e,null)}function lb(){ob();let[e,t]=(0,f.useState)(Um);return(0,f.useEffect)((()=>{let e=()=>{t(Um)};return Gm.add(e),()=>{Gm.delete(e)}}),[]),e}function cb(e={}){let{isTextInput:t,autoFocus:n}=e,[r,o]=(0,f.useState)(n||ib());return ub((e=>{o(e)}),[t],{isTextInput:t}),{isFocusVisible:r}}function ub(e,t,n){ob(),(0,f.useEffect)((()=>{let t=(t,r)=>{(function(e,t,n){return!(e&&"keyboard"===t&&n instanceof KeyboardEvent&&!qm[n.key])})(null==n?void 0:n.isTextInput,t,r)&&e(ib())};return Gm.add(t),()=>{Gm.delete(t)}}),t)}function db(e){let t=(0,f.useRef)({isFocusWithin:!1}).current;return e.isDisabled?{focusWithinProps:{}}:{focusWithinProps:{onFocus:n=>{t.isFocusWithin||(e.onFocusWithin&&e.onFocusWithin(n),e.onFocusWithinChange&&e.onFocusWithinChange(!0),t.isFocusWithin=!0)},onBlur:n=>{t.isFocusWithin&&!n.currentTarget.contains(n.relatedTarget)&&(e.onBlurWithin&&e.onBlurWithin(n),e.onFocusWithinChange&&e.onFocusWithinChange(!1),t.isFocusWithin=!1)}}}}"undefined"!=typeof document&&("loading"!==document.readyState?ob():document.addEventListener("DOMContentLoaded",ob)),Em({},"useFocusWithin",(()=>db)),Em({},"useHover",(()=>bb));let pb=!1,hb=0;function fb(){pb=!0,setTimeout((()=>{pb=!1}),50)}function gb(e){"touch"===e.pointerType&&fb()}function mb(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",gb):document.addEventListener("touchend",fb),hb++,()=>{hb--,hb>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",gb):document.removeEventListener("touchend",fb))}}function bb(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,a]=(0,f.useState)(!1),s=(0,f.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,f.useEffect)(mb,[]);let{hoverProps:l,triggerHoverEnd:c}=(0,f.useMemo)((()=>{let e=(e,r)=>{if(s.pointerType=r,o||"touch"===r||s.isHovered||!e.currentTarget.contains(e.target))return;s.isHovered=!0;let i=e.currentTarget;s.target=i,t&&t({type:"hoverstart",target:i,pointerType:r}),n&&n(!0),a(!0)},i=(e,t)=>{if(s.pointerType="",s.target=null,"touch"===t||!s.isHovered)return;s.isHovered=!1;let o=e.currentTarget;r&&r({type:"hoverend",target:o,pointerType:t}),n&&n(!1),a(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=t=>{pb&&"mouse"===t.pointerType||e(t,t.pointerType)},l.onPointerLeave=e=>{!o&&e.currentTarget.contains(e.target)&&i(e,e.pointerType)}):(l.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=t=>{s.ignoreEmulatedMouseEvents||pb||e(t,"mouse"),s.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!o&&e.currentTarget.contains(e.target)&&i(e,"mouse")}),{hoverProps:l,triggerHoverEnd:i}}),[t,n,r,o,s]);return(0,f.useEffect)((()=>{o&&c({currentTarget:s.target},s.pointerType)}),[o]),{hoverProps:l,isHovered:i}}function yb(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=(0,f.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1,onInteractOutside:n,onInteractOutsideStart:o}).current;i.onInteractOutside=n,i.onInteractOutsideStart=o,(0,f.useEffect)((()=>{if(r)return;let e=e=>{$b(e,t)&&i.onInteractOutside&&(i.onInteractOutsideStart&&i.onInteractOutsideStart(e),i.isPointerDown=!0)};if("undefined"!=typeof PointerEvent){let n=e=>{i.isPointerDown&&i.onInteractOutside&&$b(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))};return document.addEventListener("pointerdown",e,!0),document.addEventListener("pointerup",n,!0),()=>{document.removeEventListener("pointerdown",e,!0),document.removeEventListener("pointerup",n,!0)}}{let n=e=>{i.ignoreEmulatedMouseEvents?i.ignoreEmulatedMouseEvents=!1:i.isPointerDown&&i.onInteractOutside&&$b(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))},r=e=>{i.ignoreEmulatedMouseEvents=!0,i.onInteractOutside&&i.isPointerDown&&$b(e,t)&&(i.isPointerDown=!1,i.onInteractOutside(e))};return document.addEventListener("mousedown",e,!0),document.addEventListener("mouseup",n,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("touchend",r,!0),()=>{document.removeEventListener("mousedown",e,!0),document.removeEventListener("mouseup",n,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("touchend",r,!0)}}}),[t,i,r])}function $b(e,t){if(e.button>0)return!1;if(e.target){const t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target))return!1}return t.current&&!t.current.contains(e.target)}function vb(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function xb(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:vb(e.onKeyDown),onKeyUp:vb(e.onKeyUp)}}}function wb(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,o=(0,f.useRef)({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:a}=ng(),s=(0,f.useMemo)((()=>{let e={},s=()=>{Mm(),o.current.didMove=!1},l=(e,r,i,a)=>{0===i&&0===a||(o.current.didMove||(o.current.didMove=!0,null==t||t({type:"movestart",pointerType:r,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey})),n({type:"move",pointerType:r,deltaX:i,deltaY:a,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))},c=(e,t)=>{Nm(),o.current.didMove&&(null==r||r({type:"moveend",pointerType:t,shiftKey:e.shiftKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey,altKey:e.altKey}))};if("undefined"==typeof PointerEvent){let t=e=>{0===e.button&&(l(e,"mouse",e.pageX-o.current.lastPosition.pageX,e.pageY-o.current.lastPosition.pageY),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY})},n=e=>{0===e.button&&(c(e,"mouse"),a(window,"mousemove",t,!1),a(window,"mouseup",n,!1))};e.onMouseDown=e=>{0===e.button&&(s(),e.stopPropagation(),e.preventDefault(),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY},i(window,"mousemove",t,!1),i(window,"mouseup",n,!1))};let r=e=>{let t=[...e.changedTouches].findIndex((({identifier:e})=>e===o.current.id));if(t>=0){let{pageX:n,pageY:r}=e.changedTouches[t];l(e,"touch",n-o.current.lastPosition.pageX,r-o.current.lastPosition.pageY),o.current.lastPosition={pageX:n,pageY:r}}},u=e=>{[...e.changedTouches].findIndex((({identifier:e})=>e===o.current.id))>=0&&(c(e,"touch"),o.current.id=null,a(window,"touchmove",r),a(window,"touchend",u),a(window,"touchcancel",u))};e.onTouchStart=e=>{if(0===e.changedTouches.length||null!=o.current.id)return;let{pageX:t,pageY:n,identifier:a}=e.changedTouches[0];s(),e.stopPropagation(),e.preventDefault(),o.current.lastPosition={pageX:t,pageY:n},o.current.id=a,i(window,"touchmove",r,!1),i(window,"touchend",u,!1),i(window,"touchcancel",u,!1)}}else{let t=e=>{if(e.pointerId===o.current.id){let t=e.pointerType||"mouse";l(e,t,e.pageX-o.current.lastPosition.pageX,e.pageY-o.current.lastPosition.pageY),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY}}},n=e=>{if(e.pointerId===o.current.id){let r=e.pointerType||"mouse";c(e,r),o.current.id=null,a(window,"pointermove",t,!1),a(window,"pointerup",n,!1),a(window,"pointercancel",n,!1)}};e.onPointerDown=e=>{0===e.button&&null==o.current.id&&(s(),e.stopPropagation(),e.preventDefault(),o.current.lastPosition={pageX:e.pageX,pageY:e.pageY},o.current.id=e.pointerId,i(window,"pointermove",t,!1),i(window,"pointerup",n,!1),i(window,"pointercancel",n,!1))}}let u=(e,t,n)=>{s(),l(e,"keyboard",t,n),c(e,"keyboard")};return e.onKeyDown=e=>{switch(e.key){case"Left":case"ArrowLeft":e.preventDefault(),e.stopPropagation(),u(e,-1,0);break;case"Right":case"ArrowRight":e.preventDefault(),e.stopPropagation(),u(e,1,0);break;case"Up":case"ArrowUp":e.preventDefault(),e.stopPropagation(),u(e,0,-1);break;case"Down":case"ArrowDown":e.preventDefault(),e.stopPropagation(),u(e,0,1)}},e}),[o,t,n,r,i,a]);return{moveProps:s}}function Sb(e,t){let{onScroll:n,isDisabled:r}=e,o=(0,f.useCallback)((e=>{e.ctrlKey||(e.preventDefault(),e.stopPropagation(),n&&n({deltaX:e.deltaX,deltaY:e.deltaY}))}),[n]);Tg(t,"wheel",r?null:o)}Em({},"useInteractOutside",(()=>yb)),Em({},"useKeyboard",(()=>xb)),Em({},"useMove",(()=>wb)),Em({},"useScrollWheel",(()=>Sb)),Em({},"useLongPress",(()=>kb));const Cb=500;function kb(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=Cb,accessibilityDescription:a}=e;const s=(0,f.useRef)(null);let{addGlobalListener:l,removeGlobalListener:c}=ng(),{pressProps:u}=Dm({isDisabled:t,onPressStart(e){if(("mouse"===e.pointerType||"touch"===e.pointerType)&&(n&&n({...e,type:"longpressstart"}),s.current=setTimeout((()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...e,type:"longpress"}),s.current=null}),i),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};l(e.target,"contextmenu",t,{once:!0}),l(window,"pointerup",(()=>{setTimeout((()=>{c(e.target,"contextmenu",t)}),30)}),{once:!0})}},onPressEnd(e){s.current&&clearTimeout(s.current),!r||"mouse"!==e.pointerType&&"touch"!==e.pointerType||r({...e,type:"longpressend"})}});return{longPressProps:Ff(u,gg(o&&!t?a:null))}}function Eb(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Tb={};Eb(Tb,"useVisuallyHidden",(()=>Ib)),Eb(Tb,"VisuallyHidden",(()=>Mb));const Pb={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:1,whiteSpace:"nowrap"};function Ib(e={}){let{style:t,isFocusable:n}=e,[r,o]=(0,f.useState)(!1),{focusProps:i}=Vm({isDisabled:!n,onFocusChange:o});return{visuallyHiddenProps:{...i,style:(0,f.useMemo)((()=>r?t:t?{...Pb,...t}:Pb),[r])}}}function Mb(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:a}=Ib(e);return g().createElement(n,Ff(i,a),t)}function Nb(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Rb={};Nb(Rb,"announce",(()=>Ab)),Nb(Rb,"clearAnnouncer",(()=>Kb)),Nb(Rb,"destroyAnnouncer",(()=>Ob));let Lb=g().createRef(),Db=null,zb=0;function Ab(e,t="assertive",n=7e3){jb((r=>r.announce(e,t,n)))}function Kb(e){jb((t=>t.clear(e)))}function Ob(){Lb.current&&(Gd().unmountComponentAtNode(Db),document.body.removeChild(Db),Db=null)}function jb(e){Lb.current?e(Lb.current):(Db=document.createElement("div"),Db.dataset.liveAnnouncer="true",document.body.prepend(Db),Gd().render(g().createElement(_b,{ref:Lb}),Db,(()=>e(Lb.current))))}const _b=g().forwardRef(((e,t)=>{let[n,r]=(0,f.useState)([]),[o,i]=(0,f.useState)([]),a=e=>{e&&"assertive"!==e||r([]),e&&"polite"!==e||i([])},s=(e,t="assertive",n=7e3)=>{let o=zb++;"assertive"===t?r((t=>[...t,{id:o,text:e}])):i((t=>[...t,{id:o,text:e}])),""!==e&&setTimeout((()=>{"assertive"===t?r((e=>e.filter((e=>e.id!==o)))):i((e=>e.filter((e=>e.id!==o))))}),n)};return(0,f.useImperativeHandle)(t,(()=>({announce:s,clear:a}))),g().createElement(f.Fragment,null,g().createElement(Fb,{"aria-live":"assertive"},n.map((e=>g().createElement("div",{key:e.id},e.text)))),g().createElement(Fb,{"aria-live":"polite"},o.map((e=>g().createElement("div",{key:e.id},e.text)))))}));function Fb({children:e,"aria-live":t}){return g().createElement(Mb,{role:"log","aria-live":t,"aria-relevant":"additions"},e)}function Wb(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Bb={};Wb(Bb,"I18nProvider",(()=>Qb)),Wb(Bb,"useLocale",(()=>ey));const Vb=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Hb=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Ub(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return Vb.has(t)}let t=e.split("-")[0];return Hb.has(t)}function Gb(){let e="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";return{locale:e,direction:Ub(e)?"rtl":"ltr"}}let Yb=Gb(),Xb=new Set;function Jb(){Yb=Gb();for(let e of Xb)e(Yb)}function qb(){let e=Rf(),[t,n]=(0,f.useState)(Yb);return(0,f.useEffect)((()=>(0===Xb.size&&window.addEventListener("languagechange",Jb),Xb.add(n),()=>{Xb.delete(n),0===Xb.size&&window.removeEventListener("languagechange",Jb)})),[]),e?{locale:"en-US",direction:"ltr"}:t}const Zb=g().createContext(null);function Qb(e){let{locale:t,children:n}=e,r=qb(),o=t?{locale:t,direction:Ub(t)?"rtl":"ltr"}:r;return g().createElement(Zb.Provider,{value:o},n)}function ey(){let e=qb();return(0,f.useContext)(Zb)||e}Wb({},"useMessageFormatter",(()=>ny));const ty=new WeakMap;function ny(e){let{locale:t}=ey(),n=(0,f.useMemo)((()=>function(e){let t=ty.get(e);return t||(t=new er(e),ty.set(e,t)),t}(e)),[e]),r=(0,f.useMemo)((()=>new tr(t,n)),[t,n]);return(0,f.useCallback)(((e,t)=>r.format(e,t)),[r])}function ry(e){let t=(0,f.useRef)(null);e&&t.current&&function(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(t[r]!==e[r])return!1;return!0}(e,t.current)&&(e=t.current),t.current=e;let{locale:n}=ey();return(0,f.useMemo)((()=>new ai(n,e)),[n,e])}function oy(e={}){let{locale:t}=ey();return(0,f.useMemo)((()=>new gi(t,e)),[t,e])}Wb({},"useDateFormatter",(()=>ry)),Wb({},"useNumberFormatter",(()=>oy)),Wb({},"useCollator",(()=>ay));let iy=new Map;function ay(e){let{locale:t}=ey(),n=t+(e?Object.entries(e).sort(((e,t)=>e[0]<t[0]?-1:1)).join():"");if(iy.has(n))return iy.get(n);let r=new Intl.Collator(t,e);return iy.set(n,r),r}function sy(e){let t=ay({usage:"search",...e});return{startsWith:(e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(0,n.length),n)),endsWith:(e,n)=>0===n.length||(e=e.normalize("NFC"),n=n.normalize("NFC"),0===t.compare(e.slice(-n.length),n)),contains(e,n){if(0===n.length)return!0;e=e.normalize("NFC");let r=0,o=(n=n.normalize("NFC")).length;for(;r+o<=e.length;r++){let i=e.slice(r,r+o);if(0===t.compare(n,i))return!0}return!1}}}function ly(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}Wb({},"useFilter",(()=>sy));var cy={};function uy(e){if("virtual"===ab()){let t=document.activeElement;Qf((()=>{document.activeElement===t&&document.contains(e)&&Uf(e)}))}else Uf(e)}function dy(e,t){return"#comment"!==e.nodeName&&function(e){if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,r="none"!==t&&"hidden"!==n&&"collapse"!==n;if(r){const{getComputedStyle:t}=e.ownerDocument.defaultView;let{display:n,visibility:o}=t(e);r="none"!==n&&"hidden"!==o&&"collapse"!==o}return r}(e)&&function(e,t){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))}(e,t)&&(!e.parentElement||dy(e.parentElement,e))}ly(cy,"FocusScope",(()=>gy)),ly(cy,"useFocusManager",(()=>my)),ly(cy,"getFocusableTreeWalker",(()=>Ey)),ly(cy,"createFocusManager",(()=>Ty)),ly({},"focusSafely",(()=>uy));const py=g().createContext(null);let hy=null,fy=new Map;function gy(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=(0,f.useRef)(),a=(0,f.useRef)(),s=(0,f.useRef)([]),l=(0,f.useContext)(py),c=null==l?void 0:l.scopeRef;zf((()=>{let e=i.current.nextSibling,t=[];for(;e&&e!==a.current;)t.push(e),e=e.nextSibling;s.current=t}),[t,c]),zf((()=>(fy.set(s,c),()=>{s!==hy&&!Sy(s,hy)||c&&!fy.has(c)||(hy=c),fy.delete(s)})),[s,c]),function(e,t){let n=(0,f.useRef)(),r=(0,f.useRef)(null);zf((()=>{let o=e.current;if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||e!==hy)return;let n=document.activeElement,r=e.current;if(!xy(n,r))return;let o=Ey(vy(r),{tabbable:!0},r);o.currentNode=n;let i=t.shiftKey?o.previousNode():o.nextNode();i||(o.currentNode=t.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,i=t.shiftKey?o.previousNode():o.nextNode()),t.preventDefault(),i&&Cy(i,!0)},a=t=>{!hy||Sy(hy,e)?(hy=e,n.current=t.target):e!==hy||wy(t.target,e)?e===hy&&(n.current=t.target):n.current?n.current.focus():hy&&ky(hy.current)},s=t=>{r.current=requestAnimationFrame((()=>{e!==hy||wy(document.activeElement,e)||(hy=e,n.current=t.target,n.current.focus())}))};return document.addEventListener("keydown",i,!1),document.addEventListener("focusin",a,!1),o.forEach((e=>e.addEventListener("focusin",a,!1))),o.forEach((e=>e.addEventListener("focusout",s,!1))),()=>{document.removeEventListener("keydown",i,!1),document.removeEventListener("focusin",a,!1),o.forEach((e=>e.removeEventListener("focusin",a,!1))),o.forEach((e=>e.removeEventListener("focusout",s,!1)))}}),[e,t]),(0,f.useEffect)((()=>()=>cancelAnimationFrame(r.current)),[r])}(s,n),function(e,t,n){const r=(0,f.useRef)("undefined"!=typeof document?document.activeElement:null);zf((()=>{let o=r.current;if(!t)return;let i=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey)return;let n=document.activeElement;if(!xy(n,e.current))return;let r=Ey(document.body,{tabbable:!0});r.currentNode=n;let i=t.shiftKey?r.previousNode():r.nextNode();if(document.body.contains(o)&&o!==document.body||(o=null),(!i||!xy(i,e.current))&&o){r.currentNode=o;do{i=t.shiftKey?r.previousNode():r.nextNode()}while(xy(i,e.current));t.preventDefault(),t.stopPropagation(),i?Cy(i,!0):function(e){for(let t of fy.keys())if(xy(e,t.current))return!0;return!1}(o)?Cy(o,!0):n.blur()}};return n||document.addEventListener("keydown",i,!0),()=>{n||document.removeEventListener("keydown",i,!0),t&&o&&xy(document.activeElement,e.current)&&requestAnimationFrame((()=>{document.body.contains(o)&&Cy(o)}))}}),[e,t,n])}(s,r,n),function(e,t){const n=g().useRef(t);(0,f.useEffect)((()=>{n.current&&(hy=e,xy(document.activeElement,hy.current)||ky(e.current)),n.current=!1}),[])}(s,o);let u=function(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,s=n[0].previousElementSibling,l=Ey(vy(n),{tabbable:o},n);l.currentNode=xy(a,n)?a:s;let c=l.nextNode();return!c&&i&&(l.currentNode=s,c=l.nextNode()),c&&Cy(c,!0),c},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,s=n[n.length-1].nextElementSibling,l=Ey(vy(n),{tabbable:o},n);l.currentNode=xy(a,n)?a:s;let c=l.previousNode();return!c&&i&&(l.currentNode=s,c=l.previousNode()),c&&Cy(c,!0),c},focusFirst(t={}){let n=e.current,{tabbable:r}=t,o=Ey(vy(n),{tabbable:r},n);o.currentNode=n[0].previousElementSibling;let i=o.nextNode();return i&&Cy(i,!0),i},focusLast(t={}){let n=e.current,{tabbable:r}=t,o=Ey(vy(n),{tabbable:r},n);o.currentNode=n[n.length-1].nextElementSibling;let i=o.previousNode();return i&&Cy(i,!0),i}}}(s);return g().createElement(py.Provider,{value:{scopeRef:s,focusManager:u}},g().createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,g().createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:a}))}function my(){var e;return null===(e=(0,f.useContext)(py))||void 0===e?void 0:e.focusManager}const by=["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]"],yy=by.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";by.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const $y=by.join(':not([hidden]):not([tabindex="-1"]),');function vy(e){return e[0].parentElement}function xy(e,t){return t.some((t=>t.contains(e)))}function wy(e,t){for(let n of fy.keys())if((n===t||Sy(t,n))&&xy(e,n.current))return!0;return!1}function Sy(e,t){let n=fy.get(t);return!!n&&(n===e||Sy(e,n))}function Cy(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{uy(e)}catch(e){}}function ky(e){let t=e[0].previousElementSibling,n=Ey(vy(e),{tabbable:!0},e);n.currentNode=t,Cy(n.nextNode())}function Ey(e,t,n){let r=(null==t?void 0:t.tabbable)?$y:yy,o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var o;return(null==t||null===(o=t.from)||void 0===o?void 0:o.contains(e))?NodeFilter.FILTER_REJECT:e.matches(r)&&dy(e)&&(!n||xy(e,n))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return(null==t?void 0:t.from)&&(o.currentNode=t.from),o}function Ty(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,s=Ey(n,{tabbable:o});n.contains(a)&&(s.currentNode=a);let l=s.nextNode();return!l&&i&&(s.currentNode=n,l=s.nextNode()),l&&Cy(l,!0),l},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i}=t,a=r||document.activeElement,s=Ey(n,{tabbable:o});if(!n.contains(a)){let e=Py(s);return e&&Cy(e,!0),e}s.currentNode=a;let l=s.previousNode();return!l&&i&&(s.currentNode=n,l=Py(s)),l&&Cy(l,!0),l},focusFirst(t={}){let n=e.current,{tabbable:r}=t,o=Ey(n,{tabbable:r}).nextNode();return o&&Cy(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r}=t,o=Py(Ey(n,{tabbable:r}));return o&&Cy(o,!0),o}}}function Py(e){let t,n;do{n=e.lastChild(),n&&(t=n)}while(n);return t}function Iy(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=(0,f.useRef)({isFocused:!1,isFocusVisible:t||ib()}).current,[i,a]=(0,f.useState)(!1),[s,l]=(0,f.useState)((()=>o.isFocused&&o.isFocusVisible)),c=()=>l(o.isFocused&&o.isFocusVisible),u=e=>{o.isFocused=e,a(e),c()};ub((e=>{o.isFocusVisible=e,c()}),[],{isTextInput:n});let{focusProps:d}=Vm({isDisabled:r,onFocusChange:u}),{focusWithinProps:p}=db({isDisabled:!r,onFocusWithinChange:u});return{isFocused:i,isFocusVisible:o.isFocused&&s,focusProps:r?p:d}}function My(e){let{children:t,focusClass:n,focusRingClass:r}=e,{isFocused:o,isFocusVisible:i,focusProps:a}=Iy(e),s=g().Children.only(t);return g().cloneElement(s,Ff(s.props,{...a,className:ya({[n||""]:o,[r||""]:i})}))}ly({},"FocusRing",(()=>My)),ly({},"useFocusRing",(()=>Iy));var Ny={};ly(Ny,"FocusableProvider",(()=>Dy)),ly(Ny,"useFocusable",(()=>zy));let Ry=g().createContext(null);function Ly(e,t){let{children:n,...r}=e,o={...r,ref:t};return g().createElement(Ry.Provider,{value:o},n)}let Dy=g().forwardRef(Ly);function zy(e,t){let{focusProps:n}=Vm(e),{keyboardProps:r}=xb(e),o=Ff(n,r),i=function(e){let t=(0,f.useContext)(Ry)||{};sg(t,e);let{ref:n,...r}=t;return r}(t),a=e.isDisabled?{}:i,s=(0,f.useRef)(e.autoFocus);return(0,f.useEffect)((()=>{s.current&&t.current&&t.current.focus(),s.current=!1}),[]),{focusableProps:Ff({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}function Ay(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function Ky(e){return Sg()?e.altKey:e.ctrlKey}function Oy(e){return $g()?e.metaKey:e.ctrlKey}function jy(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=(0,f.useRef)({search:"",timeout:null}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let i=function(e){return 1!==e.length&&/^[A-Z]/i.test(e)?"":e}(e.key);if(!i||e.ctrlKey||e.metaKey)return;" "===i&&o.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),o.search+=i;let a=t.getKeyForSearch(o.search,n.focusedKey);null==a&&(a=t.getKeyForSearch(o.search)),null!=a&&(n.setFocusedKey(a),r&&r(a)),clearTimeout(o.timeout),o.timeout=setTimeout((()=>{o.search=""}),500)}:null}}}function _y(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:a=!1,disallowSelectAll:s=!1,selectOnFocus:l="replace"===t.selectionBehavior,disallowTypeAhead:c=!1,shouldUseVirtualFocus:u,allowsTabNavigation:d=!1,isVirtualized:p,scrollRef:h=r}=e,{direction:g}=ey(),m=(0,f.useRef)({top:0,left:0});Tg(h,"scroll",p?null:()=>{m.current={top:h.current.scrollTop,left:h.current.scrollLeft}});const b=(0,f.useRef)(o);(0,f.useEffect)((()=>{if(b.current){let e=null;"first"===o&&(e=n.getFirstKey()),"last"===o&&(e=n.getLastKey());let i=t.selectedKeys;i.size&&(e=i.values().next().value),t.setFocused(!0),t.setFocusedKey(e),null!=e||u||uy(r.current)}b.current=!1}),[]),(0,f.useEffect)((()=>{if(!p&&t.focusedKey&&(null==h?void 0:h.current)){let e=h.current.querySelector(`[data-key="${t.focusedKey}"]`);e&&Ig(h.current,e)}}),[p,h,t.focusedKey]);let y,$={onKeyDown:e=>{if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!r.current.contains(e.target))return;const o=(n,r)=>{null!=n&&(t.setFocusedKey(n,r),e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(n):l&&!Ky(e)&&t.replaceSelection(n))};switch(e.key){case"ArrowDown":if(n.getKeyBelow){var c,u;e.preventDefault();let r=null!=t.focusedKey?n.getKeyBelow(t.focusedKey):null===(c=n.getFirstKey)||void 0===c?void 0:c.call(n);null==r&&i&&(r=null===(u=n.getFirstKey)||void 0===u?void 0:u.call(n,t.focusedKey)),o(r)}break;case"ArrowUp":if(n.getKeyAbove){var p,h;e.preventDefault();let r=null!=t.focusedKey?n.getKeyAbove(t.focusedKey):null===(p=n.getLastKey)||void 0===p?void 0:p.call(n);null==r&&i&&(r=null===(h=n.getLastKey)||void 0===h?void 0:h.call(n,t.focusedKey)),o(r)}break;case"ArrowLeft":n.getKeyLeftOf&&(e.preventDefault(),o(n.getKeyLeftOf(t.focusedKey),"rtl"===g?"first":"last"));break;case"ArrowRight":n.getKeyRightOf&&(e.preventDefault(),o(n.getKeyRightOf(t.focusedKey),"rtl"===g?"last":"first"));break;case"Home":if(n.getFirstKey){e.preventDefault();let r=n.getFirstKey(t.focusedKey,Oy(e));t.setFocusedKey(r),Oy(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(r):l&&t.replaceSelection(r)}break;case"End":if(n.getLastKey){e.preventDefault();let r=n.getLastKey(t.focusedKey,Oy(e));t.setFocusedKey(r),Oy(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(r):l&&t.replaceSelection(r)}break;case"PageDown":n.getKeyPageBelow&&(e.preventDefault(),o(n.getKeyPageBelow(t.focusedKey)));break;case"PageUp":n.getKeyPageAbove&&(e.preventDefault(),o(n.getKeyPageAbove(t.focusedKey)));break;case"a":Oy(e)&&"multiple"===t.selectionMode&&!0!==s&&(e.preventDefault(),t.selectAll());break;case"Escape":e.preventDefault(),a||t.clearSelection();break;case"Tab":if(!d){if(e.shiftKey)r.current.focus();else{let e,t,n=Ey(r.current,{tabbable:!0});do{t=n.lastChild(),t&&(e=t)}while(t);e&&!e.contains(document.activeElement)&&Uf(e)}break}}},onFocus:e=>{if(t.isFocused)e.currentTarget.contains(e.target)||t.setFocused(!1);else if(e.currentTarget.contains(e.target))if(t.setFocused(!0),null==t.focusedKey){let i=e=>{null!=e&&(t.setFocusedKey(e),l&&t.replaceSelection(e))},a=e.relatedTarget;var r,o;a&&e.currentTarget.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?i(null!==(r=t.lastSelectedKey)&&void 0!==r?r:n.getLastKey()):i(null!==(o=t.firstSelectedKey)&&void 0!==o?o:n.getFirstKey())}else if(!p){h.current.scrollTop=m.current.top,h.current.scrollLeft=m.current.left;let e=h.current.querySelector(`[data-key="${t.focusedKey}"]`);e&&(Uf(e),Ig(h.current,e))}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},onMouseDown(e){e.currentTarget.contains(e.target)&&e.preventDefault()}},{typeSelectProps:v}=jy({keyboardDelegate:n,selectionManager:t});return c||($=Ff(v,$)),u||(y=null==t.focusedKey?0:-1),{collectionProps:{...$,tabIndex:y}}}function Fy(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,isVirtualized:i,shouldUseVirtualFocus:a,focus:s,isDisabled:l,onAction:c,allowsDifferentPressOrigin:u}=e,d=e=>{if("keyboard"===e.pointerType&&Ky(e))t.toggleSelection(n);else{if("none"===t.selectionMode)return;"single"===t.selectionMode?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):e&&e.shiftKey?t.extendSelection(n):"toggle"===t.selectionBehavior||e&&(Oy(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?t.toggleSelection(n):t.replaceSelection(n)}},p=n===t.focusedKey;(0,f.useEffect)((()=>{p&&t.isFocused&&!a&&document.activeElement!==r.current&&(s?s():uy(r.current))}),[r,p,t.focusedKey,t.childFocusStrategy,t.isFocused,a]);let h={};a||(h={tabIndex:p?0:-1,onFocus(e){e.target===r.current&&t.setFocusedKey(n)}});let g=(0,f.useRef)(null),m=c&&"none"===t.selectionMode,b=c&&"none"!==t.selectionMode&&"replace"===t.selectionBehavior,y=!l&&t.canSelectItem(n),$={};o?($.onPressStart=e=>{g.current=e.pointerType,"keyboard"===e.pointerType&&d(e)},u?($.onPressUp=e=>{"keyboard"!==e.pointerType&&d(e)},$.onPress=m?()=>c():null):$.onPress=e=>{"keyboard"!==e.pointerType&&d(e),m&&c()}):($.onPressStart=e=>{g.current=e.pointerType,"touch"!==e.pointerType&&"virtual"!==e.pointerType&&d(e)},$.onPress=e=>{("touch"===e.pointerType||"virtual"===e.pointerType||m)&&(m||b?c():d(e))}),i||(h["data-key"]=n),$.preventFocusOnPress=a;let{pressProps:v,isPressed:x}=Dm($),w=b?e=>{"mouse"===g.current&&(e.stopPropagation(),e.preventDefault(),c())}:void 0,{longPressProps:S}=kb({isDisabled:!b,onLongPress(e){"touch"===e.pointerType&&(d(e),t.setSelectionBehavior("toggle"))}}),C=b?e=>{"Enter"===e.key&&c()}:void 0;return{itemProps:Ff(h,y||m?v:{},b?S:{},{onKeyUp:C,onDoubleClick:w}),isPressed:x}}Ay({},"useSelectableCollection",(()=>_y)),Ay({},"useTypeSelect",(()=>jy)),Ay({},"useSelectableItem",(()=>Fy)),Ay({},"useSelectableList",(()=>By)),Ay({},"ListKeyboardDelegate",(()=>Wy));class Wy{getKeyBelow(e){for(e=this.collection.getKeyAfter(e);null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}}getKeyAbove(e){for(e=this.collection.getKeyBefore(e);null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}}getFirstKey(){let e=this.collection.getFirstKey();for(;null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}}getLastKey(){let e=this.collection.getLastKey();for(;null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}}getItem(e){return this.ref.current.querySelector(`[data-key="${e}"]`)}getKeyPageAbove(e){let t=this.ref.current,n=this.getItem(e);if(!n)return null;let r=Math.max(0,n.offsetTop+n.offsetHeight-t.offsetHeight);for(;n&&n.offsetTop>r;)e=this.getKeyAbove(e),n=this.getItem(e);return e}getKeyPageBelow(e){let t=this.ref.current,n=this.getItem(e);if(!n)return null;let r=Math.min(t.scrollHeight,n.offsetTop-n.offsetHeight+t.offsetHeight);for(;n&&n.offsetTop<r;)e=this.getKeyBelow(e),n=this.getItem(e);return e}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;null!=r;){let t=n.getItem(r),o=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(o,e))return r;r=this.getKeyBelow(r)}return null}constructor(e,t,n,r){this.collection=e,this.disabledKeys=t,this.ref=n,this.collator=r}}function By(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:o,keyboardDelegate:i,autoFocus:a,shouldFocusWrap:s,isVirtualized:l,disallowEmptySelection:c,selectOnFocus:u=!1,disallowTypeAhead:d,shouldUseVirtualFocus:p,allowsTabNavigation:h}=e,g=ay({usage:"search",sensitivity:"base"}),m=(0,f.useMemo)((()=>i||new Wy(n,r,o,g)),[i,n,r,o,g]),{collectionProps:b}=_y({ref:o,selectionManager:t,keyboardDelegate:m,autoFocus:a,shouldFocusWrap:s,disallowEmptySelection:c,selectOnFocus:u,disallowTypeAhead:d,shouldUseVirtualFocus:p,allowsTabNavigation:h,isVirtualized:l,scrollRef:o});return{listProps:b}}function Vy(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function Hy(e){return e&&e.__esModule?e.default:e}Vy({},"GridKeyboardDelegate",(()=>Uy));class Uy{isCell(e){return"cell"===e.type}isRow(e){return"row"===e.type||"item"===e.type}findPreviousKey(e,t){let n=null!=e?this.collection.getKeyBefore(e):this.collection.getLastKey();for(;null!=n;){let e=this.collection.getItem(n);if(!t||t(e))return n;n=this.collection.getKeyBefore(n)}}findNextKey(e,t){let n=null!=e?this.collection.getKeyAfter(e):this.collection.getFirstKey();for(;null!=n;){let e=this.collection.getItem(n);if(!t||t(e))return n;n=this.collection.getKeyAfter(n)}}getKeyBelow(e){let t=this.collection.getItem(e);if(t&&(this.isCell(t)&&(e=t.parentKey),null!=(e=this.findNextKey(e)))){if(this.isCell(t))return[...this.collection.getItem(e).childNodes][t.index].key;if("row"===this.focusMode)return e}}getKeyAbove(e){let t=this.collection.getItem(e);if(t&&(this.isCell(t)&&(e=t.parentKey),null!=(e=this.findPreviousKey(e)))){if(this.isCell(t))return[...this.collection.getItem(e).childNodes][t.index].key;if("row"===this.focusMode)return e}}getKeyRightOf(e){let t=this.collection.getItem(e);if(t){if(this.isRow(t)){let e=[...t.childNodes];return"rtl"===this.direction?e[e.length-1].key:e[0].key}if(this.isCell(t)){let n=[...this.collection.getItem(t.parentKey).childNodes],r="rtl"===this.direction?n[t.index-1]:n[t.index+1];return r?r.key:"row"===this.focusMode?t.parentKey:"rtl"===this.direction?this.getFirstKey(e):this.getLastKey(e)}}}getKeyLeftOf(e){let t=this.collection.getItem(e);if(t){if(this.isRow(t)){let e=[...t.childNodes];return"rtl"===this.direction?e[0].key:e[e.length-1].key}if(this.isCell(t)){let n=[...this.collection.getItem(t.parentKey).childNodes],r="rtl"===this.direction?n[t.index+1]:n[t.index-1];return r?r.key:"row"===this.focusMode?t.parentKey:"rtl"===this.direction?this.getLastKey(e):this.getFirstKey(e)}}}getFirstKey(e,t){let n;if(null!=e){if(n=this.collection.getItem(e),!n)return;if(this.isCell(n)&&!t)return[...this.collection.getItem(n.parentKey).childNodes][0].key}return(null!=(e=this.findNextKey())&&n&&this.isCell(n)&&t||"cell"===this.focusMode)&&(e=[...this.collection.getItem(e).childNodes][0].key),e}getLastKey(e,t){let n;if(null!=e){if(n=this.collection.getItem(e),!n)return;if(this.isCell(n)&&!t){let e=[...this.collection.getItem(n.parentKey).childNodes];return e[e.length-1].key}}if(null!=(e=this.findPreviousKey())&&n&&this.isCell(n)&&t||"cell"===this.focusMode){let t=[...this.collection.getItem(e).childNodes];e=t[t.length-1].key}return e}getItem(e){return this.ref.current.querySelector(`[data-key="${e}"]`)}getItemRect(e){var t;if(this.layout)return null===(t=this.layout.getLayoutInfo(e))||void 0===t?void 0:t.rect;let n=this.getItem(e);return n?new dm(n.offsetLeft,n.offsetTop,n.offsetWidth,n.offsetHeight):void 0}getPageHeight(){var e,t,n;return this.layout?null===(e=this.layout.virtualizer)||void 0===e?void 0:e.visibleRect.height:null===(t=this.ref)||void 0===t||null===(n=t.current)||void 0===n?void 0:n.offsetHeight}getContentHeight(){var e,t;return this.layout?this.layout.getContentSize().height:null===(e=this.ref)||void 0===e||null===(t=e.current)||void 0===t?void 0:t.scrollHeight}getKeyPageAbove(e){let t=this.getItemRect(e);if(!t)return null;let n=Math.max(0,t.maxY-this.getPageHeight());for(;t&&t.y>n;)e=this.getKeyAbove(e),t=this.getItemRect(e);return e}getKeyPageBelow(e){let t=this.getItemRect(e);if(!t)return null;let n=this.getPageHeight(),r=Math.min(this.getContentHeight(),t.y+n);for(;t&&t.maxY<r;){let n=this.getKeyBelow(e);t=this.getItemRect(n),null!=n&&(e=n)}return e}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=null!=t?t:this.getFirstKey(),o=n.getItem(r);"cell"===o.type&&(r=o.parentKey);let i=!1;for(;null!=r;){let t=n.getItem(r);if(t.textValue){let n=t.textValue.slice(0,e.length);if(0===this.collator.compare(n,e))return this.isRow(t)&&"cell"===this.focusMode?[...t.childNodes][0].key:t.key}r=this.findNextKey(r),null!=r||i||(r=this.getFirstKey(),i=!0)}return null}constructor(e){this.collection=e.collection,this.disabledKeys=e.disabledKeys,this.ref=e.ref,this.direction=e.direction,this.collator=e.collator,this.layout=e.layout,this.focusMode=e.focusMode||"row"}}Vy({},"useGrid",(()=>I$));const Gy=new WeakMap;var Yy,Xy,Jy,qy,Zy,Qy,e$,t$,n$,r$,o$,i$,a$,s$,l$,c$,u$,d$,p$,h$,f$,g$,m$,b$,y$,$$,v$,x$,w$,S$,C$,k$,E$,T$,P$;function I$(e,t,n){let{isVirtualized:r,keyboardDelegate:o,focusMode:i,getRowText:a=(e=>{var n;return null===(n=t.collection.getItem(e))||void 0===n?void 0:n.textValue}),scrollRef:s,onRowAction:l,onCellAction:c}=e,u=ny(Hy(Yy));e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let d=ay({usage:"search",sensitivity:"base"}),{direction:p}=ey(),h=(0,f.useMemo)((()=>o||new Uy({collection:t.collection,disabledKeys:t.disabledKeys,ref:n,direction:p,collator:d,focusMode:i})),[o,t.collection,t.disabledKeys,n,p,d,i]),{collectionProps:g}=_y({ref:n,selectionManager:t.selectionManager,keyboardDelegate:h,isVirtualized:r,scrollRef:s}),m=Kf();Gy.set(t,{keyboardDelegate:h,actions:{onRowAction:l,onCellAction:c}});let b=function(e){let t=ny(Hy(Yy)),n=lb(),r=("pointer"===n||"virtual"===n||null==n)&&"undefined"!=typeof window&&"ontouchstart"in window;return gg((0,f.useMemo)((()=>{let n,o=e.selectionManager.selectionMode,i=e.selectionManager.selectionBehavior;return r&&(n=t("longPressToSelect")),"replace"===i&&"none"!==o&&e.hasItemActions?n:void 0}),[e.selectionManager.selectionMode,e.selectionManager.selectionBehavior,e.hasItemActions,t,r]))}({selectionManager:t.selectionManager,hasItemActions:!(!l&&!c)}),y=Ff(Hf(e,{labelable:!0}),{role:"grid",id:m,"aria-multiselectable":"multiple"===t.selectionManager.selectionMode?"true":void 0},g,b);r&&(y["aria-rowcount"]=t.collection.size,y["aria-colcount"]=t.collection.columnCount);let $=t.selectionManager.rawSelection,v=(0,f.useRef)($);return ig((()=>{var e;if(!t.selectionManager.isFocused)return void(v.current=$);let n=M$($,v.current),r=M$(v.current,$),o="replace"===t.selectionManager.selectionBehavior,i=[];if(1===t.selectionManager.selectedKeys.size&&o){if(t.collection.getItem(t.selectionManager.selectedKeys.keys().next().value)){let e=a(t.selectionManager.selectedKeys.keys().next().value);e&&i.push(u("selectedItem",{item:e}))}}else if(1===n.size&&0===r.size){let e=a(n.keys().next().value);e&&i.push(u("selectedItem",{item:e}))}else if(1===r.size&&0===n.size&&t.collection.getItem(r.keys().next().value)){let e=a(r.keys().next().value);e&&i.push(u("deselectedItem",{item:e}))}"multiple"===t.selectionManager.selectionMode&&(0===i.length||"all"===$||$.size>1||"all"===v.current||(null===(e=v.current)||void 0===e?void 0:e.size)>1)&&i.push("all"===$?u("selectedAll"):u("selectedCount",{count:$.size})),i.length>0&&Ab(i.join(" ")),v.current=$}),[$]),{gridProps:y}}function M$(e,t){let n=new Set;if("all"===e||"all"===t)return n;for(let r of e.keys())t.has(r)||n.add(r);return n}function N$(){return{rowGroupProps:{role:"rowgroup"}}}function R$(e,t,n){let{node:r,isVirtualized:o,shouldSelectOnPressUp:i,onAction:a}=e,{actions:{onRowAction:s}}=Gy.get(t),{itemProps:l,isPressed:c}=Fy({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:o,shouldSelectOnPressUp:i,onAction:s?()=>s(r.key):a}),u=t.selectionManager.isSelected(r.key),d={role:"row","aria-selected":"none"!==t.selectionManager.selectionMode?u:void 0,...l};return o&&(d["aria-rowindex"]=r.index+1),{rowProps:d,isPressed:c}}function L$(e,t,n){let{node:r,isVirtualized:o,focusMode:i="child",shouldSelectOnPressUp:a,onAction:s}=e,{direction:l}=ey(),{keyboardDelegate:c,actions:{onCellAction:u}}=Gy.get(t),d=()=>{let e=Ey(n.current);if("child"===i){let n="last"===t.selectionManager.childFocusStrategy?D$(e):e.firstChild();if(n)return void uy(n)}n.current.contains(document.activeElement)||uy(n.current)},{itemProps:p,isPressed:h}=Fy({selectionManager:t.selectionManager,key:r.key,ref:n,isVirtualized:o,focus:d,shouldSelectOnPressUp:a,onAction:u?()=>u(r.key):s}),f=Ff(p,{role:"gridcell",onKeyDownCapture:e=>{if(!e.currentTarget.contains(e.target))return;let t=Ey(n.current);switch(t.currentNode=document.activeElement,e.key){case"ArrowLeft":{let o="rtl"===l?t.nextNode():t.previousNode();if("child"===i&&o===n.current&&(o=null),o)e.preventDefault(),e.stopPropagation(),uy(o);else{if(c.getKeyLeftOf(r.key)!==r.key)break;e.preventDefault(),e.stopPropagation(),"cell"===i&&"rtl"===l?uy(n.current):(t.currentNode=n.current,o="rtl"===l?t.firstChild():D$(t),o&&uy(o))}break}case"ArrowRight":{let o="rtl"===l?t.previousNode():t.nextNode();if("child"===i&&o===n.current&&(o=null),o)e.preventDefault(),e.stopPropagation(),uy(o);else{if(c.getKeyRightOf(r.key)!==r.key)break;e.preventDefault(),e.stopPropagation(),"cell"===i&&"ltr"===l?uy(n.current):(t.currentNode=n.current,o="rtl"===l?D$(t):t.firstChild(),o&&uy(o))}break}case"ArrowUp":case"ArrowDown":!e.altKey&&n.current.contains(e.target)&&(e.stopPropagation(),e.preventDefault(),n.current.parentElement.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent)))}},onFocus:e=>{e.target===n.current?requestAnimationFrame((()=>{"child"===i&&document.activeElement===n.current&&d()})):ib()||t.selectionManager.setFocusedKey(r.key)}});return o&&(f["aria-colindex"]=r.index+1),{gridCellProps:f,isPressed:h}}function D$(e){let t,n;do{n=e.lastChild(),n&&(t=n)}while(n);return t}function z$(e,t){let{key:n}=e,r=t.selectionManager,o=Kf(),i=t.disabledKeys.has(n),a=t.selectionManager.isSelected(n);return{checkboxProps:{id:o,"aria-label":ny(Hy(Yy))("select"),isSelected:a,isDisabled:i||"none"===r.selectionMode,onChange:()=>r.select(n)}}}function A$(e){return e&&e.__esModule?e.default:e}function K$(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}Xy=JSON.parse('{"deselectedItem":"{item} غير المحدد","longPressToSelect":"اضغط مطولًا للدخول إلى وضع التحديد.","select":"تحديد","selectedAll":"جميع العناصر المحددة.","selectedCount":"{count, plural, =0 {لم يتم تحديد عناصر} one {# عنصر محدد} other {# عنصر محدد}}.","selectedItem":"{item} المحدد"}'),Jy=JSON.parse('{"deselectedItem":"{item} не е избран.","longPressToSelect":"Натиснете и задръжте за да влезете в избирателен режим.","select":"Изберете","selectedAll":"Всички елементи са избрани.","selectedCount":"{count, plural, =0 {Няма избрани елементи} one {# избран елемент} other {# избрани елементи}}.","selectedItem":"{item} избран."}'),qy=JSON.parse('{"deselectedItem":"Položka {item} není vybrána.","longPressToSelect":"Dlouhým stisknutím přejdete do režimu výběru.","select":"Vybrat","selectedAll":"Vybrány všechny položky.","selectedCount":"{count, plural, =0 {Nevybrány žádné položky} one {Vybrána # položka} other {Vybráno # položek}}.","selectedItem":"Vybrána položka {item}."}'),Zy=JSON.parse('{"deselectedItem":"{item} ikke valgt.","longPressToSelect":"Lav et langt tryk for at aktivere valgtilstand.","select":"Vælg","selectedAll":"Alle elementer valgt.","selectedCount":"{count, plural, =0 {Ingen elementer valgt} one {# element valgt} other {# elementer valgt}}.","selectedItem":"{item} valgt."}'),Qy=JSON.parse('{"deselectedItem":"{item} nicht ausgewählt.","longPressToSelect":"Gedrückt halten, um Auswahlmodus zu öffnen.","select":"Auswählen","selectedAll":"Alle Elemente ausgewählt.","selectedCount":"{count, plural, =0 {Keine Elemente ausgewählt} one {# Element ausgewählt} other {# Elemente ausgewählt}}.","selectedItem":"{item} ausgewählt."}'),e$=JSON.parse('{"deselectedItem":"Δεν επιλέχθηκε το στοιχείο {item}.","longPressToSelect":"Πατήστε παρατεταμένα για να μπείτε σε λειτουργία επιλογής.","select":"Επιλογή","selectedAll":"Επιλέχθηκαν όλα τα στοιχεία.","selectedCount":"{count, plural, =0 {Δεν επιλέχθηκαν στοιχεία} one {Επιλέχθηκε # στοιχείο} other {Επιλέχθηκαν # στοιχεία}}.","selectedItem":"Επιλέχθηκε το στοιχείο {item}."}'),t$=JSON.parse('{"deselectedItem":"{item} not selected.","select":"Select","selectedCount":"{count, plural, =0 {No items selected} one {# item selected} other {# items selected}}.","selectedAll":"All items selected.","selectedItem":"{item} selected.","longPressToSelect":"Long press to enter selection mode."}'),n$=JSON.parse('{"deselectedItem":"{item} no seleccionado.","longPressToSelect":"Mantenga pulsado para abrir el modo de selección.","select":"Seleccionar","selectedAll":"Todos los elementos seleccionados.","selectedCount":"{count, plural, =0 {Ningún elemento seleccionado} one {# elemento seleccionado} other {# elementos seleccionados}}.","selectedItem":"{item} seleccionado."}'),r$=JSON.parse('{"deselectedItem":"{item} pole valitud.","longPressToSelect":"Valikurežiimi sisenemiseks vajutage pikalt.","select":"Vali","selectedAll":"Kõik üksused valitud.","selectedCount":"{count, plural, =0 {Üksusi pole valitud} one {# üksus valitud} other {# üksust valitud}}.","selectedItem":"{item} valitud."}'),o$=JSON.parse('{"deselectedItem":"Kohdetta {item} ei valittu.","longPressToSelect":"Siirry valintatilaan painamalla pitkään.","select":"Valitse","selectedAll":"Kaikki kohteet valittu.","selectedCount":"{count, plural, =0 {Ei yhtään kohdetta valittu} one {# kohde valittu} other {# kohdetta valittu}}.","selectedItem":"{item} valittu."}'),i$=JSON.parse('{"deselectedItem":"{item} non sélectionné.","longPressToSelect":"Appuyez de manière prolongée pour passer en mode de sélection.","select":"Sélectionner","selectedAll":"Tous les éléments sélectionnés.","selectedCount":"{count, plural, =0 {Aucun élément sélectionné} one {# élément sélectionné} other {# éléments sélectionnés}}.","selectedItem":"{item} sélectionné."}'),a$=JSON.parse('{"deselectedItem":"{item} לא נבחר.","longPressToSelect":"הקשה ארוכה לכניסה למצב בחירה.","select":"בחר","selectedAll":"כל הפריטים נבחרו.","selectedCount":"{count, plural, =0 {לא נבחרו פריטים} one {פריט # נבחר} other {# פריטים נבחרו}}.","selectedItem":"{item} נבחר."}'),s$=JSON.parse('{"deselectedItem":"Stavka {item} nije odabrana.","longPressToSelect":"Dugo pritisnite za ulazak u način odabira.","select":"Odaberite","selectedAll":"Odabrane su sve stavke.","selectedCount":"{count, plural, =0 {Nije odabrana nijedna stavka} one {Odabrana je # stavka} other {Odabrano je # stavki}}.","selectedItem":"Stavka {item} je odabrana."}'),l$=JSON.parse('{"deselectedItem":"{item} nincs kijelölve.","longPressToSelect":"Nyomja hosszan a kijelöléshez.","select":"Kijelölés","selectedAll":"Az összes elem kijelölve.","selectedCount":"{count, plural, =0 {Egy elem sincs kijelölve} one {# elem kijelölve} other {# elem kijelölve}}.","selectedItem":"{item} kijelölve."}'),c$=JSON.parse('{"deselectedItem":"{item} non selezionato.","longPressToSelect":"Premi a lungo per passare alla modalità di selezione.","select":"Seleziona","selectedAll":"Tutti gli elementi selezionati.","selectedCount":"{count, plural, =0 {Nessun elemento selezionato} one {# elemento selezionato} other {# elementi selezionati}}.","selectedItem":"{item} selezionato."}'),u$=JSON.parse('{"deselectedItem":"{item} が選択されていません。","longPressToSelect":"長押しして選択モードを開きます。","select":"選択","selectedAll":"すべての項目を選択しました。","selectedCount":"{count, plural, =0 {項目が選択されていません} one {# 項目を選択しました} other {# 項目を選択しました}}。","selectedItem":"{item} を選択しました。"}'),d$=JSON.parse('{"deselectedItem":"{item}이(가) 선택되지 않았습니다.","longPressToSelect":"선택 모드로 들어가려면 길게 누르십시오.","select":"선택","selectedAll":"모든 항목이 선택되었습니다.","selectedCount":"{count, plural, =0 {선택된 항목이 없습니다} one {#개 항목이 선택되었습니다} other {#개 항목이 선택되었습니다}}.","selectedItem":"{item}이(가) 선택되었습니다."}'),p$=JSON.parse('{"deselectedItem":"{item} nepasirinkta.","longPressToSelect":"Norėdami įjungti pasirinkimo režimą, paspauskite ir palaikykite.","select":"Pasirinkti","selectedAll":"Pasirinkti visi elementai.","selectedCount":"{count, plural, =0 {Nepasirinktas nė vienas elementas} one {Pasirinktas # elementas} other {Pasirinkta elementų: #}}.","selectedItem":"Pasirinkta: {item}."}'),h$=JSON.parse('{"deselectedItem":"Vienums {item} nav atlasīts.","longPressToSelect":"Ilgi turiet nospiestu. lai ieslēgtu atlases režīmu.","select":"Atlasīt","selectedAll":"Atlasīti visi vienumi.","selectedCount":"{count, plural, =0 {Nav atlasīts neviens vienums} one {Atlasīto vienumu skaits: #} other {Atlasīto vienumu skaits: #}}.","selectedItem":"Atlasīts vienums {item}."}'),f$=JSON.parse('{"deselectedItem":"{item} er ikke valgt.","longPressToSelect":"Bruk et langt trykk for å gå inn i valgmodus.","select":"Velg","selectedAll":"Alle elementer er valgt.","selectedCount":"{count, plural, =0 {Ingen elementer er valgt} one {# element er valgt} other {# elementer er valgt}}.","selectedItem":"{item} er valgt."}'),g$=JSON.parse('{"deselectedItem":"{item} niet geselecteerd.","longPressToSelect":"Druk lang om de selectiemodus te openen.","select":"Selecteren","selectedAll":"Alle items geselecteerd.","selectedCount":"{count, plural, =0 {Geen items geselecteerd} one {# item geselecteerd} other {# items geselecteerd}}.","selectedItem":"{item} geselecteerd."}'),m$=JSON.parse('{"deselectedItem":"Nie zaznaczono {item}.","longPressToSelect":"Naciśnij i przytrzymaj, aby wejść do trybu wyboru.","select":"Zaznacz","selectedAll":"Wszystkie zaznaczone elementy.","selectedCount":"{count, plural, =0 {Nie zaznaczono żadnych elementów} one {# zaznaczony element} other {# zaznaczonych elementów}}.","selectedItem":"Zaznaczono {item}."}'),b$=JSON.parse('{"deselectedItem":"{item} não selecionado.","longPressToSelect":"Mantenha pressionado para entrar no modo de seleção.","select":"Selecionar","selectedAll":"Todos os itens selecionados.","selectedCount":"{count, plural, =0 {Nenhum item selecionado} one {# item selecionado} other {# itens selecionados}}.","selectedItem":"{item} selecionado."}'),y$=JSON.parse('{"deselectedItem":"{item} não selecionado.","longPressToSelect":"Prima continuamente para entrar no modo de seleção.","select":"Selecionar","selectedAll":"Todos os itens selecionados.","selectedCount":"{count, plural, =0 {Nenhum item selecionado} one {# item selecionado} other {# itens selecionados}}.","selectedItem":"{item} selecionado."}'),$$=JSON.parse('{"deselectedItem":"{item} neselectat.","longPressToSelect":"Apăsați lung pentru a intra în modul de selectare.","select":"Selectare","selectedAll":"Toate elementele selectate.","selectedCount":"{count, plural, =0 {Niciun element selectat} one {# element selectat} other {# elemente selectate}}.","selectedItem":"{item} selectat."}'),v$=JSON.parse('{"deselectedItem":"{item} не выбрано.","longPressToSelect":"Нажмите и удерживайте для входа в режим выбора.","select":"Выбрать","selectedAll":"Выбраны все элементы.","selectedCount":"{count, plural, =0 {Нет выбранных элементов} one {# элемент выбран} other {# элементов выбрано}}.","selectedItem":"{item} выбрано."}'),x$=JSON.parse('{"deselectedItem":"Nevybraté položky: {item}.","longPressToSelect":"Dlhším stlačením prejdite do režimu výberu.","select":"Vybrať","selectedAll":"Všetky vybraté položky.","selectedCount":"{count, plural, =0 {Žiadne vybraté položky} one {# vybratá položka} other {Počet vybratých položiek:#}}.","selectedItem":"Vybraté položky: {item}."}'),w$=JSON.parse('{"deselectedItem":"Element {item} ni izbran.","longPressToSelect":"Za izbirni način pritisnite in dlje časa držite.","select":"Izberite","selectedAll":"Vsi elementi so izbrani.","selectedCount":"{count, plural, =0 {Noben element ni izbran} one {# element je izbran} other {# elementov je izbranih}}.","selectedItem":"Element {item} je izbran."}'),S$=JSON.parse('{"deselectedItem":"{item} nije izabrano.","longPressToSelect":"Dugo pritisnite za ulazak u režim biranja.","select":"Izaberite","selectedAll":"Izabrane su sve stavke.","selectedCount":"{count, plural, =0 {Nije izabrana nijedna stavka} one {Izabrana je # stavka} other {Izabrano je # stavki}}.","selectedItem":"{item} je izabrano."}'),C$=JSON.parse('{"deselectedItem":"{item} ej markerat.","longPressToSelect":"Tryck länge när du vill öppna väljarläge.","select":"Markera","selectedAll":"Alla markerade objekt.","selectedCount":"{count, plural, =0 {Inga markerade objekt} one {# markerat objekt} other {# markerade objekt}}.","selectedItem":"{item} markerat."}'),k$=JSON.parse('{"deselectedItem":"{item} seçilmedi.","longPressToSelect":"Seçim moduna girmek için uzun basın.","select":"Seç","selectedAll":"Tüm ögeler seçildi.","selectedCount":"{count, plural, =0 {Hiçbir öge seçilmedi} one {# öge seçildi} other {# öge seçildi}}.","selectedItem":"{item} seçildi."}'),E$=JSON.parse('{"deselectedItem":"{item} не вибрано.","longPressToSelect":"Виконайте довге натиснення, щоб перейти в режим вибору.","select":"Вибрати","selectedAll":"Усі елементи вибрано.","selectedCount":"{count, plural, =0 {Жодних елементів не вибрано} one {# елемент вибрано} other {Вибрано елементів: #}}.","selectedItem":"{item} вибрано."}'),T$=JSON.parse('{"deselectedItem":"未选择 {item}。","longPressToSelect":"长按以进入选择模式。","select":"选择","selectedAll":"已选择所有项目。","selectedCount":"{count, plural, =0 {未选择项目} one {已选择 # 个项目} other {已选择 # 个项目}}。","selectedItem":"已选择 {item}。"}'),P$=JSON.parse('{"deselectedItem":"未選取「{item}」。","longPressToSelect":"長按以進入選擇模式。","select":"選取","selectedAll":"已選取所有項目。","selectedCount":"{count, plural, =0 {未選取任何項目} one {已選取 # 個項目} other {已選取 # 個項目}}。","selectedItem":"已選取「{item}」。"}'),Yy={"ar-AE":Xy,"bg-BG":Jy,"cs-CZ":qy,"da-DK":Zy,"de-DE":Qy,"el-GR":e$,"en-US":t$,"es-ES":n$,"et-EE":r$,"fi-FI":o$,"fr-FR":i$,"he-IL":a$,"hr-HR":s$,"hu-HU":l$,"it-IT":c$,"ja-JP":u$,"ko-KR":d$,"lt-LT":p$,"lv-LV":h$,"nb-NO":f$,"nl-NL":g$,"pl-PL":m$,"pt-BR":b$,"pt-PT":y$,"ro-RO":$$,"ru-RU":v$,"sk-SK":x$,"sl-SI":w$,"sr-SP":S$,"sv-SE":C$,"tr-TR":k$,"uk-UA":E$,"zh-CN":T$,"zh-TW":P$},Vy({},"useGridRowGroup",(()=>N$)),Vy({},"useGridRow",(()=>R$)),Vy({},"useGridCell",(()=>L$)),Vy({},"useGridSelectionCheckbox",(()=>z$)),K$({},"useTable",(()=>kv));const O$=new WeakMap;function j$(e){return"string"==typeof e?e.replace(/\s*/g,""):""+e}function _$(e,t){let n=O$.get(e);if(!n)throw new Error("Unknown grid");return`${n}-${j$(t)}`}function F$(e,t,n){let r=O$.get(e);if(!r)throw new Error("Unknown grid");return`${r}-${j$(t)}-${j$(n)}`}function W$(e,t){return[...e.collection.rowHeaderColumnKeys].map((n=>F$(e,t,n))).join(" ")}var B$,V$,H$,U$,G$,Y$,X$,J$,q$,Z$,Q$,ev,tv,nv,rv,ov,iv,av,sv,lv,cv,uv,dv,pv,hv,fv,gv,mv,bv,yv,$v,vv,xv,wv,Sv;V$=JSON.parse('{"ascending":"تصاعدي","ascendingSort":"ترتيب حسب العمود {columnName} بترتيب تصاعدي","descending":"تنازلي","descendingSort":"ترتيب حسب العمود {columnName} بترتيب تنازلي","select":"تحديد","selectAll":"تحديد الكل","sortable":"عمود قابل للترتيب"}'),H$=JSON.parse('{"ascending":"възходящ","ascendingSort":"сортирано по колона {columnName} във възходящ ред","descending":"низходящ","descendingSort":"сортирано по колона {columnName} в низходящ ред","select":"Изберете","selectAll":"Изберете всичко","sortable":"сортираща колона"}'),U$=JSON.parse('{"ascending":"vzestupně","ascendingSort":"řazeno vzestupně podle sloupce {columnName}","descending":"sestupně","descendingSort":"řazeno sestupně podle sloupce {columnName}","select":"Vybrat","selectAll":"Vybrat vše","sortable":"sloupec s možností řazení"}'),G$=JSON.parse('{"ascending":"stigende","ascendingSort":"sorteret efter kolonne {columnName} i stigende rækkefølge","descending":"faldende","descendingSort":"sorteret efter kolonne {columnName} i faldende rækkefølge","select":"Vælg","selectAll":"Vælg alle","sortable":"sorterbar kolonne"}'),Y$=JSON.parse('{"ascending":"aufsteigend","ascendingSort":"sortiert nach Spalte {columnName} in aufsteigender Reihenfolge","descending":"absteigend","descendingSort":"sortiert nach Spalte {columnName} in absteigender Reihenfolge","select":"Auswählen","selectAll":"Alles auswählen","sortable":"sortierbare Spalte"}'),X$=JSON.parse('{"ascending":"αύξουσα","ascendingSort":"διαλογή ανά στήλη {columnName} σε αύξουσα σειρά","descending":"φθίνουσα","descendingSort":"διαλογή ανά στήλη {columnName} σε φθίνουσα σειρά","select":"Επιλογή","selectAll":"Επιλογή όλων","sortable":"Στήλη διαλογής"}'),J$=JSON.parse('{"select":"Select","selectAll":"Select All","sortable":"sortable column","ascending":"ascending","descending":"descending","ascendingSort":"sorted by column {columnName} in ascending order","descendingSort":"sorted by column {columnName} in descending order"}'),q$=JSON.parse('{"ascending":"de subida","ascendingSort":"ordenado por columna {columnName} en orden de subida","descending":"de bajada","descendingSort":"ordenado por columna {columnName} en orden de bajada","select":"Seleccionar","selectAll":"Seleccionar todos","sortable":"columna ordenable"}'),Z$=JSON.parse('{"ascending":"tõusev järjestus","ascendingSort":"sorditud veeru järgi {columnName} tõusvas järjestuses","descending":"laskuv järjestus","descendingSort":"sorditud veeru järgi {columnName} laskuvas järjestuses","select":"Vali","selectAll":"Vali kõik","sortable":"sorditav veerg"}'),Q$=JSON.parse('{"ascending":"nouseva","ascendingSort":"lajiteltu sarakkeen {columnName} mukaan nousevassa järjestyksessä","descending":"laskeva","descendingSort":"lajiteltu sarakkeen {columnName} mukaan laskevassa järjestyksessä","select":"Valitse","selectAll":"Valitse kaikki","sortable":"lajiteltava sarake"}'),ev=JSON.parse('{"ascending":"croissant","ascendingSort":"trié en fonction de la colonne {columnName} par ordre croissant","descending":"décroissant","descendingSort":"trié en fonction de la colonne {columnName} par ordre décroissant","select":"Sélectionner","selectAll":"Sélectionner tout","sortable":"colonne triable"}'),tv=JSON.parse('{"ascending":"עולה","ascendingSort":"מוין לפי עמודה {columnName} בסדר עולה","descending":"יורד","descendingSort":"מוין לפי עמודה {columnName} בסדר יורד","select":"בחר","selectAll":"בחר הכול","sortable":"עמודה שניתן למיין"}'),nv=JSON.parse('{"ascending":"rastući","ascendingSort":"razvrstano po stupcima {columnName} rastućem redoslijedom","descending":"padajući","descendingSort":"razvrstano po stupcima {columnName} padajućim redoslijedom","select":"Odaberite","selectAll":"Odaberite sve","sortable":"stupac koji se može razvrstati"}'),rv=JSON.parse('{"ascending":"növekvő","ascendingSort":"rendezve a(z) {columnName} oszlop szerint, növekvő sorrendben","descending":"csökkenő","descendingSort":"rendezve a(z) {columnName} oszlop szerint, csökkenő sorrendben","select":"Kijelölés","selectAll":"Összes kijelölése","sortable":"rendezendő oszlop"}'),ov=JSON.parse('{"ascending":"crescente","ascendingSort":"in ordine crescente in base alla colonna {columnName}","descending":"decrescente","descendingSort":"in ordine decrescente in base alla colonna {columnName}","select":"Seleziona","selectAll":"Seleziona tutto","sortable":"colonna ordinabile"}'),iv=JSON.parse('{"ascending":"昇順","ascendingSort":"列 {columnName} を昇順で並べ替え","descending":"降順","descendingSort":"列 {columnName} を降順で並べ替え","select":"選択","selectAll":"すべて選択","sortable":"並べ替え可能な列"}'),av=JSON.parse('{"ascending":"오름차순","ascendingSort":"{columnName} 열을 기준으로 오름차순으로 정렬됨","descending":"내림차순","descendingSort":"{columnName} 열을 기준으로 내림차순으로 정렬됨","select":"선택","selectAll":"모두 선택","sortable":"정렬 가능한 열"}'),sv=JSON.parse('{"ascending":"didėjančia tvarka","ascendingSort":"surikiuota pagal stulpelį {columnName} didėjančia tvarka","descending":"mažėjančia tvarka","descendingSort":"surikiuota pagal stulpelį {columnName} mažėjančia tvarka","select":"Pasirinkti","selectAll":"Pasirinkti viską","sortable":"rikiuojamas stulpelis"}'),lv=JSON.parse('{"ascending":"augošā secībā","ascendingSort":"kārtots pēc kolonnas {columnName} augošā secībā","descending":"dilstošā secībā","descendingSort":"kārtots pēc kolonnas {columnName} dilstošā secībā","select":"Atlasīt","selectAll":"Atlasīt visu","sortable":"kārtojamā kolonna"}'),cv=JSON.parse('{"ascending":"stigende","ascendingSort":"sortert etter kolonne {columnName} i stigende rekkefølge","descending":"synkende","descendingSort":"sortert etter kolonne {columnName} i synkende rekkefølge","select":"Velg","selectAll":"Velg alle","sortable":"kolonne som kan sorteres"}'),uv=JSON.parse('{"ascending":"oplopend","ascendingSort":"gesorteerd in oplopende volgorde in kolom {columnName}","descending":"aflopend","descendingSort":"gesorteerd in aflopende volgorde in kolom {columnName}","select":"Selecteren","selectAll":"Alles selecteren","sortable":"sorteerbare kolom"}'),dv=JSON.parse('{"ascending":"rosnąco","ascendingSort":"posortowano według kolumny {columnName} w porządku rosnącym","descending":"malejąco","descendingSort":"posortowano według kolumny {columnName} w porządku malejącym","select":"Zaznacz","selectAll":"Zaznacz wszystko","sortable":"kolumna z możliwością sortowania"}'),pv=JSON.parse('{"ascending":"crescente","ascendingSort":"classificado pela coluna {columnName} em ordem crescente","descending":"decrescente","descendingSort":"classificado pela coluna {columnName} em ordem decrescente","select":"Selecionar","selectAll":"Selecionar tudo","sortable":"coluna classificável"}'),hv=JSON.parse('{"ascending":"ascendente","ascendingSort":"Ordenar por coluna {columnName} em ordem ascendente","descending":"descendente","descendingSort":"Ordenar por coluna {columnName} em ordem descendente","select":"Selecionar","selectAll":"Selecionar tudo","sortable":"Coluna ordenável"}'),fv=JSON.parse('{"ascending":"crescătoare","ascendingSort":"sortate după coloana {columnName} în ordine crescătoare","descending":"descrescătoare","descendingSort":"sortate după coloana {columnName} în ordine descrescătoare","select":"Selectare","selectAll":"Selectare totală","sortable":"coloană sortabilă"}'),gv=JSON.parse('{"ascending":"возрастание","ascendingSort":"сортировать столбец {columnName} в порядке возрастания","descending":"убывание","descendingSort":"сортировать столбец {columnName} в порядке убывания","select":"Выбрать","selectAll":"Выбрать все","sortable":"сортируемый столбец"}'),mv=JSON.parse('{"ascending":"vzostupne","ascendingSort":"zoradené zostupne podľa stĺpca {columnName}","descending":"zostupne","descendingSort":"zoradené zostupne podľa stĺpca {columnName}","select":"Vybrať","selectAll":"Vybrať všetko","sortable":"zoraditeľný stĺpec"}'),bv=JSON.parse('{"ascending":"naraščajoče","ascendingSort":"razvrščeno po stolpcu {columnName} v naraščajočem vrstnem redu","descending":"padajoče","descendingSort":"razvrščeno po stolpcu {columnName} v padajočem vrstnem redu","select":"Izberite","selectAll":"Izberite vse","sortable":"razvrstljivi stolpec"}'),yv=JSON.parse('{"ascending":"rastući","ascendingSort":"sortirano po kolonama {columnName} rastućim redosledom","descending":"padajući","descendingSort":"sortirano po kolonama {columnName} padajućim redosledom","select":"Izaberite","selectAll":"Izaberite sve","sortable":"kolona koja se može sortirati"}'),$v=JSON.parse('{"ascending":"stigande","ascendingSort":"sorterat på kolumn {columnName} i stigande ordning","descending":"fallande","descendingSort":"sorterat på kolumn {columnName} i fallande ordning","select":"Markera","selectAll":"Markera allt","sortable":"sorterbar kolumn"}'),vv=JSON.parse('{"ascending":"artan sırada","ascendingSort":"{columnName} sütuna göre artan düzende sırala","descending":"azalan sırada","descendingSort":"{columnName} sütuna göre azalan düzende sırala","select":"Seç","selectAll":"Tümünü Seç","sortable":"Sıralanabilir sütun"}'),xv=JSON.parse('{"ascending":"висхідний","ascendingSort":"відсортовано за стовпцем {columnName} у висхідному порядку","descending":"низхідний","descendingSort":"відсортовано за стовпцем {columnName} у низхідному порядку","select":"Вибрати","selectAll":"Вибрати все","sortable":"сортувальний стовпець"}'),wv=JSON.parse('{"ascending":"升序","ascendingSort":"按列 {columnName} 升序排序","descending":"降序","descendingSort":"按列 {columnName} 降序排序","select":"选择","selectAll":"全选","sortable":"可排序的列"}'),Sv=JSON.parse('{"ascending":"遞增","ascendingSort":"已依據「{columnName}」欄遞增排序","descending":"遞減","descendingSort":"已依據「{columnName}」欄遞減排序","select":"選取","selectAll":"全選","sortable":"可排序的欄"}'),B$={"ar-AE":V$,"bg-BG":H$,"cs-CZ":U$,"da-DK":G$,"de-DE":Y$,"el-GR":X$,"en-US":J$,"es-ES":q$,"et-EE":Z$,"fi-FI":Q$,"fr-FR":ev,"he-IL":tv,"hr-HR":nv,"hu-HU":rv,"it-IT":ov,"ja-JP":iv,"ko-KR":av,"lt-LT":sv,"lv-LV":lv,"nb-NO":cv,"nl-NL":uv,"pl-PL":dv,"pt-BR":pv,"pt-PT":hv,"ro-RO":fv,"ru-RU":gv,"sk-SK":mv,"sl-SI":bv,"sr-SP":yv,"sv-SE":$v,"tr-TR":vv,"uk-UA":xv,"zh-CN":wv,"zh-TW":Sv};class Cv extends Uy{isCell(e){return"cell"===e.type||"rowheader"===e.type||"column"===e.type}getKeyBelow(e){let t=this.collection.getItem(e);if(t){if("column"===t.type){let e=[...t.childNodes][0];if(e)return e.key;let n=this.getFirstKey();if(null==n)return;return[...this.collection.getItem(n).childNodes][t.index].key}return super.getKeyBelow(e)}}getKeyAbove(e){let t=this.collection.getItem(e);if(!t)return;if("column"===t.type){let e=this.collection.getItem(t.parentKey);return e&&"column"===e.type?e.key:void 0}let n=super.getKeyAbove(e);return null!=n&&"headerrow"!==this.collection.getItem(n).type?n:this.isCell(t)?this.collection.columns[t.index].key:this.collection.columns[0].key}findNextColumnKey(e){let t=this.findNextKey(e.key,(e=>"column"===e.type));if(null!=t)return t;let n=this.collection.headerRows[e.level];for(let e of n.childNodes)if("column"===e.type)return e.key}findPreviousColumnKey(e){let t=this.findPreviousKey(e.key,(e=>"column"===e.type));if(null!=t)return t;let n=[...this.collection.headerRows[e.level].childNodes];for(let e=n.length-1;e>=0;e--){let t=n[e];if("column"===t.type)return t.key}}getKeyRightOf(e){let t=this.collection.getItem(e);if(t)return"column"===t.type?"rtl"===this.direction?this.findPreviousColumnKey(t):this.findNextColumnKey(t):super.getKeyRightOf(e)}getKeyLeftOf(e){let t=this.collection.getItem(e);if(t)return"column"===t.type?"rtl"===this.direction?this.findNextColumnKey(t):this.findPreviousColumnKey(t):super.getKeyLeftOf(e)}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t??this.getFirstKey();if(null==r)return null;let o=n.getItem(r);"cell"===o.type&&(r=o.parentKey);let i=!1;for(;null!=r;){let a=n.getItem(r);for(let r of a.childNodes){let i=n.columns[r.index];if(n.rowHeaderColumnKeys.has(i.key)&&r.textValue){let i=r.textValue.slice(0,e.length);if(0===this.collator.compare(i,e))return"cell"===(null!=t?n.getItem(t):o).type?r.key:a.key}}r=this.getKeyBelow(r),null!=r||i||(r=this.getFirstKey(),i=!0)}return null}}function kv(e,t,n){let{keyboardDelegate:r,isVirtualized:o,layout:i}=e,a=ay({usage:"search",sensitivity:"base"}),{direction:s}=ey(),l=(0,f.useMemo)((()=>r||new Cv({collection:t.collection,disabledKeys:t.disabledKeys,ref:n,direction:s,collator:a,layout:i})),[r,t.collection,t.disabledKeys,n,s,a,i]),c=Kf();O$.set(t,c);let{gridProps:u}=I$({...e,id:c,keyboardDelegate:l,getRowText(e){let n=t.collection.getItem(e);if(!n)return"";if(null!=n.textValue)return n.textValue;let r=t.collection.rowHeaderColumnKeys;if(r){let e=[];for(let o of n.childNodes){let n=t.collection.columns[o.index];if(r.has(n.key)&&o.textValue&&e.push(o.textValue),e.length===r.size)break}return e.join(" ")}return""}},t,n);o&&(u["aria-rowcount"]=t.collection.size+t.collection.headerRows.length);let{column:d,direction:p}=t.sortDescriptor||{},h=ny(A$(B$)),g=(0,f.useMemo)((()=>{let e=t.collection.columns.find((e=>e.key===d))?.textValue;return p&&d?h(`${p}Sort`,{columnName:e}):void 0}),[p,d,t.collection.columns]),m=gg(g);return ig((()=>{Ab(g,"assertive",500)}),[g]),{gridProps:Ff(u,m,{"aria-describedby":[m["aria-describedby"],u["aria-describedby"]].filter(Boolean).join(" ")})}}function Ev(e,t,n){let{node:r}=e,o=r.props.allowsSorting,{gridCellProps:i}=L$(e,t,n),a=r.props.isSelectionCell&&"single"===t.selectionManager.selectionMode,{pressProps:s}=Dm({isDisabled:!o||a,onPress(){t.sort(r.key)}}),{focusableProps:l}=zy({},n),c=null,u=t.sortDescriptor?.column===r.key,d=t.sortDescriptor?.direction;r.props.allowsSorting&&!Eg()&&(c=u?d:"none");let p,h=ny(A$(B$));return o&&(p=`${h("sortable")}`,u&&d&&Eg()&&(p=`${p}, ${h(d)}`)),{columnHeaderProps:{...Ff(i,s,l,gg(p)),role:"columnheader",id:_$(t,r.key),"aria-colspan":r.colspan&&r.colspan>1?r.colspan:null,"aria-sort":c}}}function Tv(e,t,n){let{node:r}=e,{rowProps:o,isPressed:i}=R$(e,t,n);return{rowProps:{...o,"aria-labelledby":W$(t,r.key)},isPressed:i}}function Pv(e,t,n){let{node:r,isVirtualized:o}=e,i={role:"row"};return o&&(i["aria-rowindex"]=r.index+1),{rowProps:i}}function Iv(e,t,n){let{gridCellProps:r,isPressed:o}=L$(e,t,n),i=e.node.column.key;return t.collection.rowHeaderColumnKeys.has(i)&&(r.role="rowheader",r.id=F$(t,e.node.parentKey,i)),{gridCellProps:r,isPressed:o}}K$({},"useTableColumnHeader",(()=>Ev)),K$({},"useTableRow",(()=>Tv)),K$({},"useTableHeaderRow",(()=>Pv)),K$({},"useTableCell",(()=>Iv));var Mv={};function Nv(e,t){let{key:n}=e;const{checkboxProps:r}=z$(e,t);return{checkboxProps:{...r,"aria-labelledby":`${r.id} ${W$(t,n)}`}}}function Rv(e){let{isEmpty:t,isSelectAll:n,selectionMode:r}=e.selectionManager;return{checkboxProps:{"aria-label":ny(A$(B$))("single"===r?"select":"selectAll"),isSelected:n,isDisabled:"multiple"!==r,isIndeterminate:!t&&!n,onChange:()=>e.selectionManager.toggleSelectAll()}}}function Lv(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function Dv(e){return null}function zv(e){return null!=e.hasChildItems?e.hasChildItems:!!e.childItems||!!(e.title&&g().Children.count(e.children)>0)}K$(Mv,"useTableSelectionCheckbox",(()=>Nv)),K$(Mv,"useTableSelectAllCheckbox",(()=>Rv)),Lv({},"Item",(()=>Av)),Dv.getCollectionNode=function*(e,t){let{childItems:n,title:r,children:o}=e,i=e.title||e.children,a=e.textValue||("string"==typeof i?i:"")||e["aria-label"]||"";a||(null==t?void 0:t.suppressTextValueWarning)||console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:e,rendered:i,textValue:a,"aria-label":e["aria-label"],hasChildNodes:zv(e),*childNodes(){if(n)for(let e of n)yield{type:"item",value:e};else if(r){let e=[];g().Children.forEach(o,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let Av=Dv;function Kv(e){return null}Lv({},"Section",(()=>Ov)),Kv.getCollectionNode=function*(e){let{children:t,title:n,items:r}=e;yield{type:"section",hasChildNodes:!0,rendered:n,"aria-label":e["aria-label"],*childNodes(){if("function"==typeof t){if(!r)throw new Error("props.children was a function but props.items is missing");for(let e of r)yield{type:"item",value:e,renderer:t}}else{let e=[];g().Children.forEach(t,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let Ov=Kv;Lv({},"useCollection",(()=>Bv));class jv{build(e,t){return this.context=t,_v((()=>this.iterateCollection(e)))}*iterateCollection(e){let{children:t,items:n}=e;if("function"==typeof t){if(!n)throw new Error("props.children was a function but props.items is missing");for(let n of e.items)yield*this.getFullNode({value:n},{renderer:t})}else{let e=[];g().Children.forEach(t,(t=>{e.push(t)}));let n=0;for(let t of e){let e=this.getFullNode({element:t,index:n},{});for(let t of e)n++,yield t}}}getKey(e,t,n,r){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${r}${t.key}`;let o=t.value;if(null!=o){var i;let e=null!==(i=o.key)&&void 0!==i?i:o.id;if(null==e)throw new Error("No key found for item");return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,r){let o=e.element;if(!o&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context)))return n.index=e.index,n.parentKey=r?r.key:null,void(yield n);o=t.renderer(e.value)}if(g().isValidElement(o)){let i=o.type;if("function"!=typeof i&&"function"!=typeof i.getCollectionNode){let e="function"==typeof o.type?o.type.name:o.type;throw new Error(`Unknown element <${e}> in collection.`)}let a=i.getCollectionNode(o.props,this.context),s=e.index,l=a.next();for(;!l.done&&l.value;){let i=l.value;e.index=s;let c=i.key;c||(c=i.element?null:this.getKey(o,e,t,n));let u=[...this.getFullNode({...i,key:c,index:s,wrapper:Fv(e.wrapper,i.wrapper)},this.getChildState(t,i),n?`${n}${o.key}`:o.key,r)];for(let t of u){if(t.value=i.value||e.value,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw new Error(`Unsupported type <${Wv(t.type)}> in <${Wv(r.type)}>. Only <${Wv(e.type)}> is supported.`);s++,yield t}l=a.next(u)}return}if(null==e.key)return;let i=this,a={type:e.type,props:e.props,key:e.key,parentKey:r?r.key:null,value:e.value,level:r?r.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:_v((function*(){if(!e.hasChildNodes)return;let n=0;for(let r of e.childNodes()){null!=r.key&&(r.key=`${a.key}${r.key}`),r.index=n;let e=i.getFullNode(r,i.getChildState(t,r),a.key,a);for(let t of e)n++,yield t}}))};yield a}constructor(){this.cache=new WeakMap}}function _v(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;n||(n=e());for(let e of n)t.push(e),yield e}}}function Fv(e,t){return e&&t?n=>e(t(n)):e||t||void 0}function Wv(e){return e[0].toUpperCase()+e.slice(1)}function Bv(e,t,n,r=[]){let o=(0,f.useMemo)((()=>new jv),[]),i=(0,f.useRef)(null);return(0,f.useMemo)((()=>{let r=o.build(e,n);return i.current=t(r,i.current),i.current}),[o,e.children,e.items,n,...r])}Lv({},"getItemCount",(()=>Hv));const Vv=new WeakMap;function Hv(e){let t=Vv.get(e);if(null!=t)return t;t=0;for(let n of e)"section"===n.type?t+=Hv(n.childNodes):t++;return Vv.set(e,t),t}function Uv(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}Uv({},"useMultipleSelectionState",(()=>Yv));class Gv extends Set{constructor(e,t,n){super(e),e instanceof Gv?(this.anchorKey=t||e.anchorKey,this.currentKey=n||e.currentKey):(this.anchorKey=t,this.currentKey=n)}}function Yv(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r}=e,o=(0,f.useRef)(!1),[,i]=(0,f.useState)(!1),a=(0,f.useRef)(null),s=(0,f.useRef)(null),[,l]=(0,f.useState)(null),c=(0,f.useMemo)((()=>Xv(e.selectedKeys)),[e.selectedKeys]),u=(0,f.useMemo)((()=>Xv(e.defaultSelectedKeys,new Gv)),[e.defaultSelectedKeys]),[d,p]=va(c,u,e.onSelectionChange),h=(0,f.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),[g,m]=(0,f.useState)(e.selectionBehavior||"toggle");return"replace"===e.selectionBehavior&&"toggle"===g&&"object"==typeof d&&0===d.size&&m("replace"),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:g,setSelectionBehavior:m,get isFocused(){return o.current},setFocused(e){o.current=e,i(e)},get focusedKey(){return a.current},get childFocusStrategy(){return s.current},setFocusedKey(e,t="first"){a.current=e,s.current=t,l(e)},selectedKeys:d,setSelectedKeys(e){!r&&function(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(e,d)||p(e)},disabledKeys:h}}function Xv(e,t){return e?"all"===e?"all":new Gv(e):t}Uv({},"SelectionManager",(()=>Jv));class Jv{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?!this.state.disabledKeys.has(e):this.state.selectedKeys.has(e))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every((e=>t.has(e))),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||(null==n?void 0:n.index)<e.index)&&(e=n)}return null==e?void 0:e.key}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let n=this.collection.getItem(t);(!e||(null==n?void 0:n.index)>e.index)&&(e=n)}return null==e?void 0:e.key}extendSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode)return void this.replaceSelection(e);let t;if(e=this.getKey(e),"all"===this.state.selectedKeys)t=new Gv([e],e,e);else{let n=this.state.selectedKeys,r=n.anchorKey||e;t=new Gv(n,r,e);for(let o of this.getKeyRange(r,n.currentKey||e))t.delete(o);for(let n of this.getKeyRange(e,r))this.state.disabledKeys.has(n)||t.add(n)}this.state.setSelectedKeys(t)}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?n.index<=r.index?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let n=[],r=e;for(;r;){let e=this.collection.getItem(r);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&n.push(r),r===t)return n;r=this.collection.getKeyAfter(r)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t)return e;if("cell"===t.type&&this.allowsCellSelection)return e;for(;"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e))return void this.replaceSelection(e);if(null==(e=this.getKey(e)))return;let t=new Gv("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){"none"!==this.selectionMode&&null!=(e=this.getKey(e))&&this.state.setSelectedKeys(new Gv([e],e,e))}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new Gv;for(let n of e)if(n=this.getKey(n),null!=n&&(t.add(n),"single"===this.selectionMode))break;this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=n=>{for(;n;){if(!this.state.disabledKeys.has(n)){let r=this.collection.getItem(n);"item"===r.type&&e.push(n),r.hasChildNodes&&(this.allowsCellSelection||"item"!==r.type)&&t([...r.childNodes][0].key)}n=this.collection.getKeyAfter(n)}};return t(this.collection.getFirstKey()),e}selectAll(){"multiple"===this.selectionMode&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Gv)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let t=this.collection.getItem(e);return!(!t||"cell"===t.type&&!this.allowsCellSelection)}constructor(e,t,n){var r;this.collection=e,this.state=t,this.allowsCellSelection=null!==(r=null==n?void 0:n.allowsCellSelection)&&void 0!==r&&r,this._isSelectAll=null}}function qv(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function Zv(e){let{collection:t,focusMode:n}=e,r=Yv(e),o=(0,f.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),i=r.setFocusedKey;return r.setFocusedKey=(e,r)=>{if("cell"===n&&null!=e){let n=t.getItem(e);if("item"===(null==n?void 0:n.type)){var o,a;let t=[...n.childNodes];e="last"===r?null===(o=t[t.length-1])||void 0===o?void 0:o.key:null===(a=t[0])||void 0===a?void 0:a.key}}i(e,r)},(0,f.useEffect)((()=>{null==r.focusedKey||t.getItem(r.focusedKey)||r.setFocusedKey(null)}),[t,r.focusedKey]),{collection:t,disabledKeys:o,selectionManager:new Jv(t,r)}}qv({},"useGridState",(()=>Zv)),qv({},"GridCollection",(()=>ex));var Qv=Symbol.iterator;class ex{*[Qv](){yield*[...this.rows]}get size(){return[...this.rows].length}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){var e;return null===(e=[...this.rows][0])||void 0===e?void 0:e.key}getLastKey(){var e;let t=[...this.rows];return null===(e=t[t.length-1])||void 0===e?void 0:e.key}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}constructor(e){this.keyMap=new Map,this.keyMap=new Map,this.columnCount=null==e?void 0:e.columnCount,this.rows=[];let t,n=t=>{let o=this.keyMap.get(t.key);e.visitNode&&(t=e.visitNode(t)),this.keyMap.set(t.key,t);let i,a=new Set;for(let e of t.childNodes)"cell"===e.type&&null==e.parentKey&&(e.parentKey=t.key),a.add(e.key),i?(i.nextKey=e.key,e.prevKey=i.key):e.prevKey=null,n(e),i=e;if(i&&(i.nextKey=null),o)for(let e of o.childNodes)a.has(e.key)||r(e)},r=e=>{this.keyMap.delete(e.key);for(let t of e.childNodes)this.keyMap.get(t.key)===t&&r(t)};e.items.forEach(((e,r)=>{let o={level:0,key:"row-"+r,type:"row",value:void 0,hasChildNodes:!0,childNodes:[...e.childNodes],rendered:void 0,textValue:void 0,...e,index:r};t?(t.nextKey=o.key,o.prevKey=t.key):o.prevKey=null,this.rows.push(o),n(o),t=o})),t&&(t.nextKey=null)}}function tx(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}tx({},"useTableState",(()=>ix));const nx="row-header-column-"+Math.random().toString(36).slice(2);class rx extends ex{constructor(e,t,n){let r,o=new Set,i=[];if(n?.showSelectionCheckboxes){let e={type:"column",key:nx,value:null,textValue:"",level:0,index:0,hasChildNodes:!1,rendered:null,childNodes:[],props:{isSelectionCell:!0}};i.unshift(e)}let a=[],s=new Map,l=e=>{switch(e.type){case"body":r=e;break;case"column":s.set(e.key,e),e.hasChildNodes||(i.push(e),e.props.isRowHeader&&o.add(e.key));break;case"item":return void a.push(e)}for(let t of e.childNodes)l(t)};for(let t of e)l(t);let c=function(e,t){let n=[],r=new Map;for(let o of t){let t=o.parentKey,i=[o];for(;t;){let n=e.get(t);if(r.has(n)){n.colspan++;let{column:e,index:t}=r.get(n);if(t>i.length)break;for(let n=t;n<i.length;n++)e.splice(n,0,null);for(let t=i.length;t<e.length;t++)e[t]&&r.has(e[t])&&(r.get(e[t]).index=t)}else n.colspan=1,i.push(n),r.set(n,{column:i,index:i.length-1});t=n.parentKey}n.push(i),o.index=n.length-1}let o=Math.max(...n.map((e=>e.length))),i=Array(o).fill(0).map((()=>[])),a=0;for(let e of n){let t=o-1;for(let n of e){if(n){let e=i[t],r=e.reduce(((e,t)=>e+t.colspan),0);if(r<a){let o={type:"placeholder",key:"placeholder-"+n.key,colspan:a-r,index:r,value:null,rendered:null,level:t,hasChildNodes:!1,childNodes:[],textValue:null};e.length>0&&(e[e.length-1].nextKey=o.key,o.prevKey=e[e.length-1].key),e.push(o)}e.length>0&&(e[e.length-1].nextKey=n.key,n.prevKey=e[e.length-1].key),n.level=t,n.index=a,e.push(n)}t--}a++}let s=0;for(let e of i){let n=e.reduce(((e,t)=>e+t.colspan),0);if(n<t.length){let r={type:"placeholder",key:"placeholder-"+e[e.length-1].key,colspan:t.length-n,index:n,value:null,rendered:null,level:s,hasChildNodes:!1,childNodes:[],textValue:null,prevKey:e[e.length-1].key};e.push(r)}s++}return i.map(((e,t)=>({type:"headerrow",key:"headerrow-"+t,index:t,value:null,rendered:null,level:0,hasChildNodes:!0,childNodes:e,textValue:null})))}(s,i);c.forEach(((e,t)=>a.splice(t,0,e))),super({columnCount:i.length,items:a,visitNode:e=>(e.column=i[e.index],e)}),this.columns=i,this.rowHeaderColumnKeys=o,this.body=r,this.headerRows=c,0===this.rowHeaderColumnKeys.size&&this.rowHeaderColumnKeys.add(this.columns[n?.showSelectionCheckboxes?1:0].key)}*[Symbol.iterator](){yield*this.body.childNodes}get size(){return[...this.body.childNodes].length}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){return[...this.body.childNodes][0]?.key}getLastKey(){let e=[...this.body.childNodes];return e[e.length-1]?.key}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}}const ox={ascending:"descending",descending:"ascending"};function ix(e){let{selectionMode:t="none"}=e,n=(0,f.useMemo)((()=>({showSelectionCheckboxes:e.showSelectionCheckboxes&&"none"!==t,selectionMode:t,columns:[]})),[e.children,e.showSelectionCheckboxes,t]),r=Bv(e,((e,t)=>new rx(e,t,n)),n),{disabledKeys:o,selectionManager:i}=Zv({...e,collection:r});return{collection:r,disabledKeys:o,selectionManager:i,showSelectionCheckboxes:e.showSelectionCheckboxes||!1,sortDescriptor:e.sortDescriptor,sort(t){e.onSortChange({column:t,direction:e.sortDescriptor?.column===t?ox[e.sortDescriptor.direction]:"ascending"})}}}function ax(e){return null}tx({},"TableHeader",(()=>sx)),ax.getCollectionNode=function*(e){let{children:t,columns:n}=e;if("function"==typeof t){if(!n)throw new Error("props.children was a function but props.columns is missing");for(let e of n)yield{type:"column",value:e,renderer:t}}else{let e=[];g().Children.forEach(t,(t=>{e.push({type:"column",element:t})})),yield*e}};let sx=ax;function lx(e){return null}tx({},"TableBody",(()=>cx)),lx.getCollectionNode=function*(e){let{children:t,items:n}=e;yield{type:"body",hasChildNodes:!0,props:e,*childNodes(){if("function"==typeof t){if(!n)throw new Error("props.children was a function but props.items is missing");for(let e of n)yield{type:"item",value:e,renderer:t}}else{let e=[];g().Children.forEach(t,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let cx=lx;function ux(e){return null}tx({},"Column",(()=>dx)),ux.getCollectionNode=function*(e,t){let{title:n,children:r,childColumns:o}=e,i=n||r,a=e.textValue||("string"==typeof i?i:"")||e["aria-label"],s=yield{type:"column",hasChildNodes:!!o||n&&g().Children.count(r)>0,rendered:i,textValue:a,props:e,*childNodes(){if(o)for(let e of o)yield{type:"column",value:e};else if(n){let e=[];g().Children.forEach(r,(t=>{e.push({type:"column",element:t})})),yield*e}},shouldInvalidate:e=>(l(e),!1)},l=e=>{for(let t of s)t.hasChildNodes||e.columns.push(t)};l(t)};let dx=ux;function px(e){return null}tx({},"Row",(()=>hx)),px.getCollectionNode=function*(e,t){let{children:n,textValue:r}=e;yield{type:"item",props:e,textValue:r,"aria-label":e["aria-label"],hasChildNodes:!0,*childNodes(){if(t.showSelectionCheckboxes&&"none"!==t.selectionMode&&(yield{type:"cell",key:"header",props:{isSelectionCell:!0}}),"function"==typeof n)for(let e of t.columns)yield{type:"cell",element:n(e.key),key:e.key};else{let e=[];if(g().Children.forEach(n,(t=>{e.push({type:"cell",element:t})})),e.length!==t.columns.length)throw new Error(`Cell count must match column count. Found ${e.length} cells and ${t.columns.length} columns.`);yield*e}},shouldInvalidate:e=>e.columns.length!==t.columns.length||e.columns.some(((e,n)=>e.key!==t.columns[n].key))||e.showSelectionCheckboxes!==t.showSelectionCheckboxes||e.selectionMode!==t.selectionMode}};let hx=px;function fx(e){return null}tx({},"Cell",(()=>gx)),fx.getCollectionNode=function*(e){let{children:t}=e,n=e.textValue||("string"==typeof t?t:"")||e["aria-label"]||"";yield{type:"cell",props:e,rendered:t,textValue:n,"aria-label":e["aria-label"],hasChildNodes:!1}};let gx=fx;const mx=Se("tr",{ov:"visible"}),bx=Se("th",{height:"$14",cursor:"default",bg:"$accents1",color:"$accents6",fontSize:"$tiny",textAlign:"left",transition:"$default",position:"relative","@motion":{transition:"none"},"&:first-child":{pl:"$8",br:"$md 0 0 $md"},"&:last-child":{pr:"$8",br:"0 $md $md 0"},variants:{align:{start:{textAlign:"left"},center:{textAlign:"center"},end:{textAlign:"right"}},animated:{false:{transition:"none"}},allowsSorting:{true:{transition:"$default",cursor:"pointer","@motion":{transition:"none"},"&:hover":{color:"$accents7",bg:"$accents2"}}}},defaultVariants:{align:"left",animated:!0},compoundVariants:[{animated:!1,allowsSorting:!0,css:{transition:"none"}}]},Ne),yx=Se(bx,Ne),$x=Se("tfoot",{height:"$14",variants:{align:{start:{textAlign:"left"},center:{textAlign:"center"},end:{textAlign:"right"}}},defaultVariants:{align:"right"}}),vx=Se("td",{}),xx=Se(vx,{position:"relative",userSelect:"none",py:"$5",zIndex:"$2",transition:"$default",ov:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&:first-child":{pl:"$8"},"&:last-child":{pr:"$8"},"&:before":{zIndex:"-$1",transition:"$default",content:'""',position:"absolute",size:"100%",top:0,left:0,opacity:0},variants:{align:{start:{textAlign:"left"},center:{textAlign:"center"},end:{textAlign:"right"}}}},Ne),wx=Se("tr",{ov:"visible",color:"$text",variants:{isDisabled:{true:{color:"$accents3",pointerEvents:"none",cursor:"not-allowed"}},isSelected:{true:{color:"$$tableRowTextColor",[`& ${xx}:before`]:{opacity:1,bg:"$$tableRowColor"}}}}},Ne),Sx=Se("thead",{variants:{isFixed:{true:{display:"table",width:"100%",tableLayout:"fixed"}},isInfinityScroll:{true:{display:"block",height:"100%",overflow:"auto",[`& ${wx}`]:{display:"table",width:"100%",tableLayout:"fixed"}}}},defaultVariants:{isInfinityScroll:!1}}),Cx=Se("tr",{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",height:"calc(100% - $space$14)",variants:{isAtEnd:{true:{height:"$space$18"}},isAbsolute:{true:{position:"absolute",left:"0",top:"$10"}}}}),kx=Se("table",{borderCollapse:"separate",borderSpacing:0,width:"100%",p:"$md $sm","@motion":{[`& ${xx}`]:{transition:"none"},[`& ${xx}:before`]:{transition:"none"}},variants:{animated:{false:{[`& ${xx}`]:{transition:"none"},[`& ${xx}:before`]:{transition:"none"}}},color:{primary:{$$tableRowColor:"$colors$primaryLight",$$tableRowTextColor:"$colors$primary"},secondary:{$$tableRowColor:"$colors$secondaryLight",$$tableRowTextColor:"$colors$secondary"},success:{$$tableRowColor:"$colors$successLight",$$tableRowTextColor:"$colors$success"},warning:{$$tableRowColor:"$colors$warningLight",$$tableRowTextColor:"$colors$warning"},error:{$$tableRowColor:"$colors$errorLight",$$tableRowTextColor:"$colors$error"}},striped:{true:{[`& ${wx}[aria-selected=false]:nth-child(even)`]:{[`& ${xx}`]:{bg:"$accents1"}},[`& ${wx}:nth-child(even)`]:{[`& ${xx}:first-child`]:{br:"$lg 0 0 $lg"},[`& ${xx}:last-child`]:{br:"0 $lg $lg 0"}}}},sticked:{true:{p:0,[`& ${bx}:first-child`]:{br:"$lg 0 0 0"},[`& ${bx}:last-child`]:{br:"0 $lg 0 0"}}},lineWeight:{light:{$$tableLineWeight:"$borderWeights$light"},normal:{$$tableLineWeight:"$borderWeights$normal"},bold:{$$tableLineWeight:"$borderWeights$bold"},extrabold:{$$tableLineWeight:"$borderWeights$extrabold"},black:{$$tableLineWeight:"$borderWeights$black"}},headerLined:{true:{[`& ${bx}`]:{position:"relative",bg:"transparent","&:after":{content:"",position:"absolute",left:0,right:0,bottom:0,height:"calc($$tableLineWeight * 1.5)",bg:"$accents2"},"&:first-child":{ml:"$12",br:"0","&:after":{left:"$space$md"}},"&:last-child":{br:"0","&:after":{right:"$space$md"}}}}},lined:{true:{[`& ${wx}:not(:last-child)`]:{position:"relative",[`& ${xx}:after`]:{content:"",position:"absolute",bottom:0,left:0,right:0,height:"$$tableLineWeight",bg:"$border"},[`& ${xx}:first-child`]:{"&:after":{left:"$space$md"}},[`& ${xx}:last-child`]:{"&:after":{right:"$space$md"}}},[`& ${wx}[aria-selected=true]:not(last-child)`]:{[`& ${xx}:after`]:{bg:"$$tableRowTextColor",opacity:.3}}}},fixed:{true:{tableLayout:"fixed"}},hoverable:{true:{[`& ${xx}:first-child`]:{br:"$md 0 0 $md"},[`& ${xx}:last-child`]:{br:"0 $md $md 0"},[`& ${wx}`]:{cursor:"pointer"},[`& ${wx}[aria-selected=false]`]:{"&:hover":{[`& ${xx}:before`]:{opacity:1,bg:"$accents1"}}},[`& ${wx}[aria-selected=true]`]:{"&:hover":{[`& ${xx}:before`]:{opacity:.8}}}},false:{[`& ${xx}`]:{userSelect:"all"}}},isMultiple:{true:{}},hasPagination:{true:{}},shadow:{true:{}},compact:{true:{[`& ${xx}`]:{py:"$1"},[`& ${bx}`]:{height:"$12","&:first-child":{br:"$sm 0 0 $sm"},"&:last-child":{br:"0 $sm $sm 0"}}}}},compoundVariants:[{isMultiple:!0,hoverable:!0,css:{[`& ${wx}:not(:first-child):not(:last-child)`]:{[`& ${xx}:first-child`]:{br:0},[`& ${xx}:last-child`]:{br:0}},[`& ${wx}:first-child`]:{[`& ${xx}:first-child`]:{br:"$md 0 0 0"},[`& ${xx}:last-child`]:{br:"0 $md 0 0"}},[`& ${wx}:last-child`]:{[`& ${xx}:first-child`]:{br:"0 0 0 $md"},[`& ${xx}:last-child`]:{br:"0 0 $md 0"}}}},{isMultiple:!0,hoverable:!0,sticked:!0,css:{[`& ${wx}:first-child`]:{[`& ${xx}:first-child`]:{br:"0"},[`& ${xx}:last-child`]:{br:"0"}}}},{compact:!0,shadow:!0,css:{p:"$md $sm"}},{compact:!0,sticked:!0,css:{p:0}},{sticked:!0,isMultiple:!1,hoverable:!0,hasPagination:!1,css:{[`& ${wx}:not(:last-child)`]:{[`& ${xx}`]:{br:"0"}},[`& ${wx}:last-child`]:{[`& ${xx}:first-child`]:{br:"0 0 0 $md"},[`& ${xx}:last-child`]:{br:"0 0 $md 0"}}}},{sticked:!0,isMultiple:!1,hoverable:!0,hasPagination:!0,css:{[`& ${wx}`]:{[`& ${xx}`]:{br:"0"}}}},{sticked:!0,hasPagination:!0,css:{pb:"$5"}},{sticked:!0,hasPagination:!0,isMultiple:!0,hoverable:!0,css:{[`& ${wx}:last-child`]:{[`& ${xx}:first-child`]:{br:"0"},[`& ${xx}:last-child`]:{br:"0"}}}}],defaultVariants:{sticked:!1,color:"primary",lineWeight:"light"}}),Ex=Se("div",{display:"flex",flexDirection:"column",br:"$xl",overflowX:"scroll",variants:{shadow:{true:{bs:"$md"}},bordered:{true:{borderStyle:"solid",borderColor:"$border"},false:{bw:0}},borderWeight:{light:{bw:"$light"},normal:{bw:"$normal"},bold:{bw:"$bold"},extrabold:{bw:"$extrabold"},black:{bw:"$black"}}},defaultVariants:{shadow:!0,borderWeight:"normal"}}),Tx=Vi((({children:e,...t})=>{const{rowGroupProps:n}={rowGroupProps:{role:"rowgroup"}};return(0,st.jsx)(Sx,{className:Ui("nextui-table-row-group",t.className),...t,...n,children:e})}),{as:"thead"});function Px(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Ix={};Px(Ix,"useVisuallyHidden",(()=>Nx)),Px(Ix,"VisuallyHidden",(()=>Rx));const Mx={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:1,whiteSpace:"nowrap"};function Nx(e={}){let{style:t,isFocusable:n}=e,[r,o]=(0,f.useState)(!1),{focusProps:i}=Vm({isDisabled:!n,onFocusChange:o});return{visuallyHiddenProps:{...i,style:(0,f.useMemo)((()=>r?t:t?{...Mx,...t}:Mx),[r])}}}function Rx(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:a}=Nx(e);return g().createElement(n,Ff(i,a),t)}const Lx=Se("svg",{opacity:0,transition:"$default",path:{fill:"$$tableRowTextColor"},variants:{visible:{true:{opacity:1}},ascending:{true:{transform:"rotate(180deg)"}}}}),Dx=e=>(0,st.jsx)(Lx,{role:"presentation","aria-hidden":"true",focusable:"false",className:"nextui-table-sort-icon",width:22,height:22,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,st.jsx)("path",{d:"M12 2C6.49 2 2 6.49 2 12C2 17.51 6.49 22 12 22C17.51 22 22 17.51 22 12C22 6.49 17.51 2 12 2ZM16.06 11.27L12.53 14.8C12.38 14.95 12.19 15.02 12 15.02C11.81 15.02 11.62 14.95 11.47 14.8L7.94 11.27C7.65 10.98 7.65 10.5 7.94 10.21C8.23 9.92 8.71 9.92 9 10.21L12 13.21L15 10.21C15.29 9.92 15.77 9.92 16.06 10.21C16.35 10.5 16.35 10.97 16.06 11.27Z"})}),zx=g().forwardRef((({column:e,state:t,...n},r)=>{var o,i;const a=(0,f.useRef)(null);(0,f.useImperativeHandle)(r,(()=>null==a?void 0:a.current));const{columnHeaderProps:s}=Ev({node:e},t,a),{isFocusVisible:l,focusProps:c}=Vl();return(0,st.jsxs)(bx,{ref:a,isFocusVisible:l,colSpan:e.colspan,className:Ui("nextui-table-column-header",n.className),...Pu(n,s,c,e.props),children:[e.props.hideHeader?(0,st.jsx)(Rx,{children:e.rendered}):e.rendered,e.props.allowsSorting&&(0,st.jsx)(Dx,{visible:(null==(o=t.sortDescriptor)?void 0:o.column)===e.key,ascending:"ascending"===(null==(i=t.sortDescriptor)?void 0:i.direction),css:{position:"absolute",m:"0 $2",bottom:"calc(50% - 11px)"}})]})}));zx.displayName="NextUI - TableColumnHeader",zx.toString=()=>".nextui-table-column-header";const Ax=zx,Kx=g().forwardRef((({children:e,item:t,state:n,...r},o)=>{const i=(0,f.useRef)(null);(0,f.useImperativeHandle)(o,(()=>null==i?void 0:i.current));const{rowProps:a}=Pv({node:t});return(0,st.jsx)(mx,{ref:i,className:Ui("nextui-table-header-row",r.className),...r,...a,children:e})}));Kx.displayName="NextUI - TableHeaderRow",Kx.toString=()=>".nextui-table-header-row";const Ox=Kx;function jx(e={}){let{isReadOnly:t}=e,[n,r]=va(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:n,setSelected:function(e){t||r(e)},toggle:function(){t||r(!n)}}}function _x(e,t,n){let{isDisabled:r=!1,isRequired:o,isReadOnly:i,value:a,name:s,children:l,"aria-label":c,"aria-labelledby":u,validationState:d="valid"}=e;null!=l||null!=c||null!=u||console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:p}=Dm({isDisabled:r}),{focusableProps:h}=zy(e,n),f=Ff(p,h);return{inputProps:Ff(Hf(e,{labelable:!0}),{"aria-invalid":"invalid"===d||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":i||void 0,"aria-required":o||void 0,onChange:e=>{e.stopPropagation(),t.setSelected(e.target.checked)},disabled:r,value:a,name:s,type:"checkbox",...f})}}function Fx(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function Wx(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":o,labelElementType:i="label"}=e;t=Kf(t);let a=Kf(),s={};return n?(r=r?`${r} ${a}`:a,s={id:a,htmlFor:"label"===i?t:void 0}):r||o||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:s,fieldProps:rg({id:t,"aria-label":o,"aria-labelledby":r})}}function Bx(e){let{description:t,errorMessage:n,validationState:r}=e,{labelProps:o,fieldProps:i}=Wx(e),a=jf([Boolean(t),Boolean(n),r]),s=jf([Boolean(t),Boolean(n),r]);return i=Ff(i,{"aria-describedby":[a,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:i,descriptionProps:{id:a},errorMessageProps:{id:s}}}function Vx(e={}){let{isReadOnly:t}=e,[n,r]=va(e.isSelected,e.defaultSelected||!1,e.onChange);return{isSelected:n,setSelected:function(e){t||r(e)},toggle:function(){t||r(!n)}}}function Hx(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function Ux(e,t,n){let{inputProps:r}=_x(e,t,n),{isSelected:o}=t,{isIndeterminate:i}=e;return(0,f.useEffect)((()=>{n.current&&(n.current.indeterminate=i)})),{inputProps:{...r,checked:o,"aria-checked":i?"mixed":o}}}Object.defineProperty({},"useToggleState",{get:()=>jx,set:void 0,enumerable:!0,configurable:!0}),Object.defineProperty({},"useToggle",{get:()=>_x,set:void 0,enumerable:!0,configurable:!0}),Fx({},"useField",(()=>Bx)),Fx({},"useLabel",(()=>Wx)),Object.defineProperty({},"useToggleState",{get:()=>Vx,set:void 0,enumerable:!0,configurable:!0}),Hx({},"useCheckbox",(()=>Ux)),Hx({},"useCheckboxGroup",(()=>Yx));const Gx=new WeakMap;function Yx(e,t){let{isDisabled:n,name:r}=e,{labelProps:o,fieldProps:i}=Wx({...e,labelElementType:"span"}),a=Hf(e,{labelable:!0});return Gx.set(t,r),{groupProps:Ff(a,{role:"group","aria-disabled":n||void 0,...i}),labelProps:o}}function Xx(e,t,n){const r=Vx({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),onChange(n){n?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(n)}});let{inputProps:o}=Ux({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||Gx.get(t)},r,n);return{inputProps:o}}Hx({},"useCheckboxGroupItem",(()=>Xx));const Jx=g().forwardRef((({column:e,state:t,color:n,animated:r,...o},i)=>{const a=(0,f.useRef)(null);(0,f.useImperativeHandle)(i,(()=>null==a?void 0:a.current));const s="single"===t.selectionManager.selectionMode,{columnHeaderProps:l}=Ev({node:e},t,a),{checkboxProps:c}=Rv(t),{isFocusVisible:u,focusProps:d}=Vl(),p=(0,f.useRef)(null),{inputProps:h}=Ux(c,jx({...c,isSelected:c.isSelected||c.isIndeterminate}),p);return(0,st.jsx)(yx,{ref:a,isFocusVisible:u,className:Ui("nextui-table-select-all-checkbox",o.className),...Pu(l,d,o),children:s?(0,st.jsx)(Rx,{children:h["aria-label"]}):(0,st.jsx)(Uc,{ref:p,...h,indeterminate:c.isIndeterminate,color:n,animated:r,css:{display:"inherit",$$checkboxBorderColor:"$colors$accents3"}})})}));Jx.displayName="NextUI - TableSelectAllCheckbox",Jx.toString=()=>".nextui-table-select-all-checkbox";const qx=Jx,Zx={footerAlign:"end",rowsPerPage:0,currentPage:1,animated:!0},Qx=g().createContext(Zx),ew=()=>g().useContext(Qx),tw=({children:e,defaultValues:t})=>{const[n,r]=g().useState((null==t?void 0:t.footerAlign)||Zx.footerAlign),[o,i]=g().useState(void 0===(null==t?void 0:t.animated)?Zx.animated:null==t?void 0:t.animated),[a,s]=g().useState(null==t?void 0:t.collection),[l,c]=g().useState(Zx.rowsPerPage),[u,d]=g().useState(Zx.currentPage),[p,h]=g().useState(null==t?void 0:t.color),f=g().useMemo((()=>({animated:o,footerAlign:n,collection:a,rowsPerPage:l,currentPage:u,color:p,setFooterAlign:r,setCollection:s,setAnimated:i,setRowsPerPage:c,setColor:h,setCurrentPage:d})),[o,p,a,n,l,u]);return(0,st.jsx)(Qx.Provider,{value:f,children:e})},nw=(Qx.Consumer,({align:e,rowsPerPage:t,onPageChange:n,...r})=>{const{color:o,animated:i,collection:a,footerAlign:s,rowsPerPage:l,setFooterAlign:c,setRowsPerPage:u,setCurrentPage:d}=ew();g().useEffect((()=>{e&&e!==s&&(null==c||c(e))}),[e,s]),g().useEffect((()=>{t&&t!==l&&(null==u||u(t))}),[l,t]);const p=(0,f.useMemo)((()=>{var e;const t=null!=a&&a.body?[...null==a||null==(e=a.body)?void 0:e.childNodes].length:0;return l>0?Math.ceil(t/l):1}),[a,l]);return(0,st.jsx)(Cf,{total:p,animated:i,onChange:e=>{null==d||d(e),null==n||n(e)},color:r.color||o,className:Ui("nextui-table-pagination",r.className),...r})});nw.displayName="NextUI - TablePagination",nw.toString=()=>".nextui-table-pagination";const rw=nw,ow=g().forwardRef((({children:e,...t},n)=>{const r=(0,f.useRef)(null);(0,f.useImperativeHandle)(n,(()=>null==r?void 0:r.current));const{footerAlign:o}=ew();return(0,st.jsx)($x,{ref:r,role:"rowgroup",align:t.align||o,className:Ui("nextui-table-footer",t.className),...t,children:e})}));ow.displayName="NextUI - TableFooter",ow.toString=()=>".nextui-table-footer";const iw=ow,aw=g().forwardRef((({children:e,item:t,state:n,...r},o)=>{const i=(0,f.useRef)(null);(0,f.useImperativeHandle)(o,(()=>null==i?void 0:i.current));const{rowProps:a}=Tv({node:t},n,i),{isFocusVisible:s,focusProps:l}=Vl(),c=n.disabledKeys.has(t.key);return(0,st.jsx)(wx,{ref:i,isFocusVisible:s,isSelected:!!a["aria-selected"],isDisabled:c,className:Ui("nextui-table-row",{"nextui-table-row--animated":r.animated,"nextui-table-row--selected":a["aria-selected"],"nextui-table-row--disabled":c},r.className),css:t.props.css,...Pu(a,l,r),children:e})}));aw.displayName="NextUI - TableRow",aw.toString=()=>".nextui-table-row";const sw=aw,lw=g().forwardRef((({cell:e,state:t,...n},r)=>{const o=(0,f.useRef)(null);(0,f.useImperativeHandle)(r,(()=>null==o?void 0:o.current));const{gridCellProps:i}=Iv({node:e},t,o),{isFocusVisible:a,focusProps:s}=Vl();return(0,st.jsx)(xx,{ref:o,isFocusVisible:a,className:Ui("nextui-table-cell",n.className),css:e.props.css,...Pu(i,s,n),children:e.rendered})}));lw.displayName="NextUI - TableCell",lw.toString=()=>".nextui-table-cell";const cw=lw,uw=g().forwardRef((({cell:e,state:t,color:n,animated:r,...o},i)=>{const a=(0,f.useRef)(null);(0,f.useImperativeHandle)(i,(()=>null==a?void 0:a.current));const{gridCellProps:s}=Iv({node:e},t,a),{checkboxProps:l}=Nv({key:(null==e?void 0:e.parentKey)||e.key},t),{isFocusVisible:c,focusProps:u}=Vl(),d=(0,f.useRef)(null),{inputProps:p}=Ux(l,jx(l),d);return(0,st.jsx)(xx,{ref:a,isFocusVisible:c,className:Ui("nextui-table-checkbox-cell",o.className),...Pu(s,u,o),children:(0,st.jsx)(Uc,{...p,ref:d,color:n,animated:r,css:{display:"inherit"}})})}));uw.displayName="NextUI - TableCheckboxCell",uw.toString=()=>".nextui-table-checkbox-cell";const dw=uw,pw=e=>{var t;const n=null==(t=e.body)?void 0:t.props;return void 0!==(null==n?void 0:n.loadingState)&&"function"==typeof(null==n?void 0:n.onLoadMore)},hw=({children:e,collection:t,state:n,animated:r,color:o,hasPagination:i,hideLoading:a,...s})=>{var l,c,u,d,p,h;const{currentPage:g,rowsPerPage:m}=ew(),b=(0,f.useMemo)((()=>pw(t)),[t.body.props]),y="loading"===(null==(l=t.body)||null==(c=l.props)?void 0:c.loadingState)||"loadingMore"===(null==(u=t.body)||null==(d=u.props)?void 0:d.loadingState),$=(0,f.useMemo)((()=>{const e=[...t.body.childNodes];return i?null==e?void 0:e.slice((g-1)*m,g*m):e}),[i,t,g,m]),v=(0,f.useMemo)((()=>{const e=$.length;return e>=m&&!b?null:(0,st.jsx)("tr",{role:"row",className:"nextui-table-hidden-row","aria-hidden":"true",children:(0,st.jsx)(vx,{"aria-hidden":"true",colSpan:t.columnCount,style:Pu({"--nextui--tableBodyEmptySpaceHeight":b?"var(--nextui-space-10)":`calc(${m-e} * var(--nextui-space-14))`},(null==s?void 0:s.style)||{}),css:{height:"var(--nextui--tableBodyEmptySpaceHeight)"}})})}),[t.columnCount,$,m,b]);return(0,st.jsxs)(Tx,{as:"tbody",className:Ui("nextui-table-body",s.className),isInfinityScroll:b,onScroll:e=>{if(!b)return;const n=e.target;var r,o;n.scrollHeight-(n.scrollTop+40)<=n.clientHeight&&!y&&(null==(r=t.body)||null==(o=r.props)||null==o.onLoadMore||o.onLoadMore())},css:{pb:"$10",position:"relative",...s.css,...null==(p=t.body)||null==(h=p.props)?void 0:h.css},...s,children:[e,null==$?void 0:$.map((e=>e.hasChildNodes?(0,st.jsx)(sw,{"aria-hidden":"false",item:e,state:n,animated:r,children:[...e.childNodes].map((e=>{var t;return null!=e&&null!=(t=e.props)&&t.isSelectionCell?(0,st.jsx)(dw,{cell:e,state:n,color:o,animated:r},null==e?void 0:e.key):(0,st.jsx)(cw,{cell:e,state:n},null==e?void 0:e.key)}))},null==e?void 0:e.key):null)),!a&&y&&(0,st.jsx)(Cx,{role:"row",className:"nextui-table-hidden-row","aria-hidden":"true",isAtEnd:$.length>0,isAbsolute:!b,children:(0,st.jsx)(vx,{"aria-hidden":"true",colSpan:t.columnCount,children:(0,st.jsx)(Fp,{color:o})})}),v]})};hw.displayName="NextUI - TableBody",hw.toString=()=>".nextui-table-body";const fw=hw,gw=g().forwardRef(((e,t)=>{const{selectionMode:n,selectionBehavior:r,hideLoading:o,children:i,shadow:a,borderWeight:s,bordered:l,...c}=e,[u,d]=((e,t)=>{const[n,r]=je(e,t);let o=null;return r&&r.length>=1&&(o=r.length>=0?r[0]:void 0),[n,o]})(i,rw),p=Oe(i,rw),m=ix({...e,children:u,showSelectionCheckboxes:void 0!==e.showSelectionCheckboxes?e.showSelectionCheckboxes:"multiple"===n&&"replace"!==r});Object.keys(c).forEach((e=>{h.indexOf(e)>-1&&delete c[e]}));const b=(0,f.useRef)(null);(0,f.useImperativeHandle)(t,(()=>null==b?void 0:b.current));const{collection:y}=m,{gridProps:$}=kv(e,m,b),v=g().useMemo((()=>({collection:y,color:c.color,animated:c.animated})),[y,c.animated,c.color]);return(0,st.jsx)(tw,{defaultValues:v,children:(0,st.jsx)(Ex,{shadow:a,borderWeight:s,bordered:l,className:"nextui-table-container",css:{...c.containerCss},children:(0,st.jsxs)(kx,{ref:b,shadow:a,hoverable:"none"!==n||c.hoverable,isMultiple:"multiple"===n,hasPagination:p,className:Ui("nextui-table",c.className),...$,...c,children:[(0,st.jsxs)(Tx,{as:"thead",isFixed:pw(y),children:[y.headerRows.map((e=>(0,st.jsx)(Ox,{item:e,state:m,children:[...e.childNodes].map((e=>{var t;return null!=e&&null!=(t=e.props)&&t.isSelectionCell?(0,st.jsx)(qx,{column:e,state:m,color:c.color,animated:c.animated},null==e?void 0:e.key):(0,st.jsx)(Ax,{column:e,state:m,animated:c.animated},null==e?void 0:e.key)}))},null==e?void 0:e.key))),!c.sticked&&(0,st.jsx)(Hd,{as:"tr",className:"nextui-table-hidden-row",y:.4})]}),(0,st.jsx)(fw,{state:m,color:c.color,collection:y,animated:c.animated,hasPagination:p,hideLoading:o}),p&&(0,st.jsxs)(iw,{children:[(0,st.jsx)(Hd,{as:"tr",className:"nextui-table-hidden-row",y:.6}),(0,st.jsx)("tr",{role:"row",children:(0,st.jsx)("th",{tabIndex:-1,role:"columnheader",colSpan:y.columnCount,children:d})})]})]})})})}));gw.displayName="NextUI - Table",gw.toString=()=>".nextui-table";const mw=Vi(gw,{animated:!0,hideLoading:!1,selectionMode:"none",selectionBehavior:"toggle"}),bw=gx,yw=dx,$w=sx,vw=hx,xw=cx;mw.Cell=bw,mw.Column=yw,mw.Header=$w,mw.Row=vw,mw.Body=xw,mw.Pagination=rw;const ww=mw})(),i})()}));
|