Reading from NEAR testnet…
Reading from NEAR testnet…
D8JXEUZSA9WiCSwb5EXvcPw9ydQTVLK57tePMenWQCbr
web4.nearbuilders.testnet to web4.nearbuilders.testnet · failed
fs_store()
0:"#9d174d",800:"#831843",900:"#500724"},cyan:{25:"#ecfeff",50:"#cffafe",100:"#a5f3fc",200:"#67e8f9",300:"#22d3ee",400:"#06b6d4",500:"#0891b2",600:"#0e7490",700:"#155e75",800:"#164e63",900:"#083344"}},alpha:{100:"ff",90:"e5",80:"cc",70:"b3",60:"99",50:"80",40:"66",30:"4d",20:"33",10:"1a",0:"00"},font:{size:{"2xs":"calc(var(--tsrd-font-size) * 0.625)",xs:"calc(var(--tsrd-font-size) * 0.75)",sm:"calc(var(--tsrd-font-size) * 0.875)",md:"var(--tsrd-font-size)",lg:"calc(var(--tsrd-font-size) * 1.125)",xl:"calc(var(--tsrd-font-size) * 1.25)","2xl":"calc(var(--tsrd-font-size) * 1.5)","3xl":"calc(var(--tsrd-font-size) * 1.875)","4xl":"calc(var(--tsrd-font-size) * 2.25)","5xl":"calc(var(--tsrd-font-size) * 3)","6xl":"calc(var(--tsrd-font-size) * 3.75)","7xl":"calc(var(--tsrd-font-size) * 4.5)","8xl":"calc(var(--tsrd-font-size) * 6)","9xl":"calc(var(--tsrd-font-size) * 8)"},lineHeight:{"3xs":"calc(var(--tsrd-font-size) * 0.75)","2xs":"calc(var(--tsrd-font-size) * 0.875)",xs:"calc(var(--tsrd-font-size) * 1)",sm:"calc(var(--tsrd-font-size) * 1.25)",md:"calc(var(--tsrd-font-size) * 1.5)",lg:"calc(var(--tsrd-font-size) * 1.75)",xl:"calc(var(--tsrd-font-size) * 2)","2xl":"calc(var(--tsrd-font-size) * 2.25)","3xl":"calc(var(--tsrd-font-size) * 2.5)","4xl":"calc(var(--tsrd-font-size) * 2.75)","5xl":"calc(var(--tsrd-font-size) * 3)","6xl":"calc(var(--tsrd-font-size) * 3.25)","7xl":"calc(var(--tsrd-font-size) * 3.5)","8xl":"calc(var(--tsrd-font-size) * 3.75)","9xl":"calc(var(--tsrd-font-size) * 4)"},weight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},fontFamily:{sans:"ui-sans-serif, Inter, system-ui, sans-serif, sans-serif",mono:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace"}},breakpoints:{xs:"320px",sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},border:{radius:{none:"0px",xs:"calc(var(--tsrd-font-size) * 0.125)",sm:"calc(var(--tsrd-font-size) * 0.25)",md:"calc(var(--tsrd-font-size) * 0.375)",lg:"calc(var(--tsrd-font-size) * 0.5)",xl:"calc(var(--tsrd-font-size) * 0.75)","2xl":"calc(var(--tsrd-font-size) * 1)","3xl":"calc(var(--tsrd-font-size) * 1.5)",full:"9999px"}},size:{0:"0px",.25:"calc(var(--tsrd-font-size) * 0.0625)",.5:"calc(var(--tsrd-font-size) * 0.125)",1:"calc(var(--tsrd-font-size) * 0.25)",1.5:"calc(var(--tsrd-font-size) * 0.375)",2:"calc(var(--tsrd-font-size) * 0.5)",2.5:"calc(var(--tsrd-font-size) * 0.625)",3:"calc(var(--tsrd-font-size) * 0.75)",3.5:"calc(var(--tsrd-font-size) * 0.875)",4:"calc(var(--tsrd-font-size) * 1)",4.5:"calc(var(--tsrd-font-size) * 1.125)",5:"calc(var(--tsrd-font-size) * 1.25)",5.5:"calc(var(--tsrd-font-size) * 1.375)",6:"calc(var(--tsrd-font-size) * 1.5)",6.5:"calc(var(--tsrd-font-size) * 1.625)",7:"calc(var(--tsrd-font-size) * 1.75)",8:"calc(var(--tsrd-font-size) * 2)",9:"calc(var(--tsrd-font-size) * 2.25)",10:"calc(var(--tsrd-font-size) * 2.5)",11:"calc(var(--tsrd-font-size) * 2.75)",12:"calc(var(--tsrd-font-size) * 3)",14:"calc(var(--tsrd-font-size) * 3.5)",16:"calc(var(--tsrd-font-size) * 4)",20:"calc(var(--tsrd-font-size) * 5)",24:"calc(var(--tsrd-font-size) * 6)",28:"calc(var(--tsrd-font-size) * 7)",32:"calc(var(--tsrd-font-size) * 8)",36:"calc(var(--tsrd-font-size) * 9)",40:"calc(var(--tsrd-font-size) * 10)",44:"calc(var(--tsrd-font-size) * 11)",48:"calc(var(--tsrd-font-size) * 12)",52:"calc(var(--tsrd-font-size) * 13)",56:"calc(var(--tsrd-font-size) * 14)",60:"calc(var(--tsrd-font-size) * 15)",64:"calc(var(--tsrd-font-size) * 16)",72:"calc(var(--tsrd-font-size) * 18)",80:"calc(var(--tsrd-font-size) * 20)",96:"calc(var(--tsrd-font-size) * 24)"},shadow:{xs:(Mn="rgb(0 0 0 / 0.1)")=>"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:(Mn="rgb(0 0 0 / 0.1)")=>`0 1px 3px 0 ${Mn}, 0 1px 2px -1px ${Mn}`,md:(Mn="rgb(0 0 0 / 0.1)")=>`0 4px 6px -1px ${Mn}, 0 2px 4px -2px ${Mn}`,lg:(Mn="rgb(0 0 0 / 0.1)")=>`0 10px 15px -3px ${Mn}, 0 4px 6px -4px ${Mn}`,xl:(Mn="rgb(0 0 0 / 0.1)")=>`0 20px 25px -5px ${Mn}, 0 8px 10px -6px ${Mn}`,"2xl":(Mn="rgb(0 0 0 / 0.25)")=>`0 25px 50px -12px ${Mn}`,inner:(Mn="rgb(0 0 0 / 0.05)")=>`inset 0 2px 4px 0 ${Mn}`,none:()=>"none"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800}},ShadowDomTargetContext=React$1.createContext(void 0),DevtoolsOnCloseContext=React$1.createContext(void 0),useDevtoolsOnClose=()=>{const Mn=React$1.useContext(DevtoolsOnCloseContext);if(!Mn)throw new Error("useDevtoolsOnClose must be used within a TanStackRouterDevtools component");return Mn},Expander=({expanded:Mn,style:Fn={}})=>{const io=useStyles$1();return jsxRuntimeExports$1.jsx("span",{className:io.expander,children:jsxRuntimeExports$1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",fill:"none",viewBox:"0 0 24 24",className:clsx$1(io.expanderIcon(Mn)),children:jsxRuntimeExports$1.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M9 18l6-6-6-6"})})})};function chunkArray(Mn,Fn){if(Fn<1)return[];let io=0;const fo=[];for(;io<Mn.length;)fo.push(Mn.slice(io,io+Fn)),io=io+Fn;return fo}const DefaultRenderer=({handleEntry:Mn,label:Fn,value:io,subEntries:fo=[],subEntryPages:$o=[],type:mo,expanded:Ao=!1,toggleExpanded:jo,pageSize:Lo,renderer:Ho})=>{const[zo,Go]=reactExports$1.useState([]),[Vo,Yo]=reactExports$1.useState(void 0),Xo=useStyles$1(),is=()=>{Yo(io())};return jsxRuntimeExports$1.jsx("div",{className:Xo.entry,children:$o.length?jsxRuntimeExports$1.jsxs(jsxRuntimeExports$1.Fragment,{children:[jsxRuntimeExports$1.jsxs("button",{className:Xo.expandButton,onClick:()=>jo(),children:[jsxRuntimeExports$1.jsx(Expander,{expanded:Ao}),Fn,jsxRuntimeExports$1.jsxs("span",{className:Xo.info,children:[String(mo).toLowerCase()==="iterable"?"(Iterable) ":"",fo.length," ",fo.length>1?"items":"item"]})]}),Ao?$o.length===1?jsxRuntimeExports$1.jsx("div",{className:Xo.subEntries,children:fo.map((yl,us)=>Mn(yl))}):jsxRuntimeExports$1.jsx("div",{className:Xo.subEntries,children:$o.map((yl,us)=>jsxRuntimeExports$1.jsx("div",{children:jsxRuntimeExports$1.jsxs("div",{className:Xo.entry,children:[jsxRuntimeExports$1.jsxs("button",{className:clsx$1(Xo.labelButton,"labelButton"),onClick:()=>Go(hs=>hs.includes(us)?hs.filter(_l=>_l!==us):[...hs,us]),children:[jsxRuntimeExports$1.jsx(Expander,{expanded:zo.includes(us)})," ","[",us*Lo," ..."," ",us*Lo+Lo-1,"]"]}),zo.includes(us)?jsxRuntimeExports$1.jsx("div",{className:Xo.subEntries,children:yl.map(hs=>Mn(hs))}):null]})},us))}):null]}):mo==="function"?jsxRuntimeExports$1.jsx(jsxRuntimeExports$1.Fragment,{children:jsxRuntimeExports$1.jsx(Explorer,{renderer:Ho,label:jsxRuntimeExports$1.jsxs("button",{onClick:is,className:Xo.refreshValueBtn,children:[jsxRuntimeExports$1.jsx("span",{children:Fn})," 🔄"," "]}),value:Vo,defaultExpanded:{}})}):jsxRuntimeExports$1.jsxs(jsxRuntimeExports$1.Fragment,{children:[jsxRuntimeExports$1.jsxs("span",{children:[Fn,":"]})," ",jsxRuntimeExports$1.jsx("span",{className:Xo.value,children:displayValue(io)})]})})};function isIterable(Mn){return Symbol.iterator in Mn}function Explorer({value:Mn,defaultExpanded:Fn,renderer:io=DefaultRenderer,pageSize:fo=100,filterSubEntries:$o,...mo}){const[Ao,jo]=reactExports$1.useState(!!Fn),Lo=reactExports$1.useCallback(()=>jo(Yo=>!Yo),[]);let Ho=typeof Mn,zo=[];const Go=Yo=>{const Xo=Fn===!0?{[Yo.label]:!0}:Fn==null?void 0:Fn[Yo.label];return{...Yo,defaultExpanded:Xo}};Array.isArray(Mn)?(Ho="array",zo=Mn.map((Yo,Xo)=>Go({label:Xo.toString(),value:Yo}))):Mn!==null&&typeof Mn=="object"&&isIterable(Mn)&&typeof Mn[Symbol.iterator]=="function"?(Ho="Iterable",zo=Array.from(Mn,(Yo,Xo)=>Go({label:Xo.toString(),value:Yo}))):typeof Mn=="object"&&Mn!==null&&(Ho="object",zo=Object.entries(Mn).map(([Yo,Xo])=>Go({label:Yo,value:Xo}))),zo=$o?$o(zo):zo;const Vo=chunkArray(zo,fo);return io({handleEntry:Yo=>jsxRuntimeExports$1.jsx(Explorer,{value:Mn,renderer:io,filterSubEntries:$o,...mo,...Yo},Yo.label),type:Ho,subEntries:zo,subEntryPages:Vo,value:Mn,expanded:Ao,toggleExpanded:Lo,pageSize:fo,...mo})}const stylesFactory$1=Mn=>{const{colors:Fn,font:io,size:fo,alpha:$o,shadow:mo,border:Ao}=tokens,{fontFamily:jo,lineHeight:Lo,size:Ho}=io,zo=Mn?u$5.bind({target:Mn}):u$5;return{entry:zo`
font-family: ${jo.mono};
font-size: ${Ho.xs};
line-height: ${Lo.sm};
outline: none;
word-break: break-word;
`,labelButton:zo`
cursor: pointer;
color: inherit;
font: inherit;
outline: inherit;
background: transparent;
border: none;
padding: 0;
`,expander:zo`
display: inline-flex;
align-items: center;
justify-content: center;
width: ${fo[3]};
height: ${fo[3]};
padding-left: 3px;
box-sizing: content-box;
`,expanderIcon:Go=>Go?zo`
transform: rotate(90deg);
transition: transform 0.1s ease;
`:zo`
transform: rotate(0deg);
transition: transform 0.1s ease;
`,expandButton:zo`
display: flex;
gap: ${fo[1]};
align-items: center;
cursor: pointer;
color: inherit;
font: inherit;
outline: inherit;
background: transparent;
border: none;
padding: 0;
`,value:zo`
color: ${Fn.purple[400]};
`,subEntries:zo`
margin-left: ${fo[2]};
padding-left: ${fo[2]};
border-left: 2px solid ${Fn.darkGray[400]};
`,info:zo`
color: ${Fn.gray[500]};
font-size: ${Ho["2xs"]};
padding-left: ${fo[1]};
`,refreshValueBtn:zo`
appearance: none;
border: 0;
cursor: pointer;
background: transparent;
color: inherit;
padding: 0;
font-family: ${jo.mono};
font-size: ${Ho.xs};
`}};let _styles$1=null;function useStyles$1(){const Mn=reactExports$1.useContext(ShadowDomTargetContext);return _styles$1||(_styles$1=stylesFactory$1(Mn),_styles$1)}function TanStackLogo(){const Mn=React$1.useId();return jsxRuntimeExports$1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 634 633",viewBox:"0 0 634 633",children:jsxRuntimeExports$1.jsxs("g",{transform:"translate(1)",children:[jsxRuntimeExports$1.jsxs("linearGradient",{id:`a-${Mn}`,x1:"-641.486",x2:"-641.486",y1:"856.648",y2:"855.931",gradientTransform:"matrix(633 0 0 -633 406377 542258)",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports$1.jsx("stop",{offset:"0",stopColor:"#6bdaff"}),jsxRuntimeExports$1.jsx("stop",{offset:"0.319",stopColor:"#f9ffb5"}),jsxRuntimeExports$1.jsx("stop",{offset:"0.706",stopColor:"#ffa770"}),jsxRuntimeExports$1.jsx("stop",{offset:"1",stopColor:"#ff7373"})]}),jsxRuntimeExports$1.jsx("circle",{cx:"316.5",cy:"316.5",r:"316.5",fill:`url(#a-${Mn})`,fillRule:"evenodd",clipRule:"evenodd"}),jsxRuntimeExports$1.jsx("defs",{children:jsxRuntimeExports$1.jsx("filter",{id:`b-${Mn}`,width:"454",height:"396.9",x:"-137.5",y:"412",filterUnits:"userSpaceOnUse",children:jsxRuntimeExports$1.jsx("feColorMatrix",{values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"})})}),jsxRuntimeExports$1.jsx("mask",{id:`c-${Mn}`,width:"454",height:"396.9",x:"-137.5",y:"412",maskUnits:"userSpaceOnUse",children:jsxRuntimeExports$1.jsx("g",{filter:`url(#b-${Mn})`,children:jsxRuntimeExports$1.jsx("circle",{cx:"316.5",cy:"316.5",r:"316.5",fill:"#FFF",fillRule:"evenodd",clipRule:"evenodd"})})}),jsxRuntimeExports$1.jsx("ellipse",{cx:"89.5",cy:"610.5",fill:"#015064",fillRule:"evenodd",stroke:"#00CFE2",strokeWidth:"25",clipRule:"evenodd",mask:`url(#c-${Mn})`,rx:"214.5",ry:"186"}),jsxRuntimeExports$1.jsx("defs",{children:jsxRuntimeExports$1.jsx("filter",{id:`d-${Mn}`,width:"454",height:"396.9",x:"316.5",y:"412",filterUnits:"userSpaceOnUse",children:jsxRuntimeExports$1.jsx("feColorMatrix",{values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"})})}),jsxRuntimeExports$1.jsx("mask",{id:`e-${Mn}`,width:"454",height:"396.9",x:"316.5",y:"412",maskUnits:"userSpaceOnUse",children:jsxRuntimeExports$1.jsx("g",{filter:`url(#d-${Mn})`,children:jsxRuntimeExports$1.jsx("circle",{cx:"316.5",cy:"316.5",r:"316.5",fill:"#FFF",fillRule:"evenodd",clipRule:"evenodd"})})}),jsxRuntimeExports$1.jsx("ellipse",{cx:"543.5",cy:"610.5",fill:"#015064",fillRule:"evenodd",stroke:"#00CFE2",strokeWidth:"25",clipRule:"evenodd",mask:`url(#e-${Mn})`,rx:"214.5",ry:"186"}),jsxRuntimeExports$1.jsx("defs",{children:jsxRuntimeExports$1.jsx("filter",{id:`f-${Mn}`,width:"454",height:"396.9",x:"-137.5",y:"450",filterUnits:"userSpaceOnUse",children:jsxRuntimeExports$1.jsx("feColorMatrix",{values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"})})}),jsxRuntimeExports$1.jsx("mask",{id:`g-${Mn}`,width:"454",height:"396.9",x:"-137.5",y:"450",maskUnits:"userSpaceOnUse",children:jsxRuntimeExports$1.jsx("g",{filter:`url(#f-${Mn})`,children:jsxRuntimeExports$1.jsx("circle",{cx:"316.5",cy:"316.5",r:"316.5",fill:"#FFF",fillRule:"evenodd",clipRule:"evenodd"})})}),jsxRuntimeExports$1.jsx("ellipse",{cx:"89.5",cy:"648.5",fill:"#015064",fillRule:"evenodd",stroke:"#00A8B8",strokeWidth:"25",clipRule:"evenodd",mask:`url(#g-${Mn})`,rx:"214.5",ry:"186"}),jsxRuntimeExports$1.jsx("defs",{children:jsxRuntimeExports$1.jsx("filter",{id:`h-${Mn}`,width:"454",height:"396.9",x:"316.5",y:"450",filterUnits:"userSpaceOnUse",children:jsxRuntimeExports$1.jsx("feColorMatrix",{values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"})})}),jsxRuntimeExports$1.jsx("mask",{id:`i-${Mn}`,width:"454",height:"396.9",x:"316.5",y:"450",maskUnits:"userSpaceOnUse",children:jsxRuntimeExports$1.jsx("g",{filter:`url(#h-${Mn})`,children:jsxRuntimeExports$1.jsx("circle",{cx:"316.5",cy:"316.5",r:"316.5",fill:"#FFF",fillRule:"evenodd",clipRule:"evenodd"})})}),jsxRuntimeExports$1.jsx("ellipse",{cx:"543.5",cy:"648.5",fill:"#015064",fillRule:"evenodd",stroke:"#00A8B8",strokeWidth:"25",clipRule:"evenodd",mask:`url(#i-${Mn})`,rx:"214.5",ry:"186"}),jsxRuntimeExports$1.jsx("defs",{children:jsxRuntimeExports$1.jsx("filter",{id:`j-${Mn}`,width:"454",height:"396.9",x:"-137.5",y:"486",filterUnits:"userSpaceOnUse",children:jsxRuntimeExports$1.jsx("feColorMatrix",{values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"})})}),jsxRuntimeExports$1.jsx("mask",{id:`k-${Mn}`,width:"454",height:"396.9",x:"-137.5",y:"486",maskUnits:"userSpaceOnUse",children:jsxRuntimeExports$1.jsx("g",{filter:`url(#j-${Mn})`,children:jsxRuntimeExports$1.jsx("circle",{cx:"316.5",cy:"316.5",r:"316.5",fill:"#FFF",fillRule:"evenodd",clipRule:"evenodd"})})}),jsxRuntimeExports$1.jsx("ellipse",{cx:"89.5",cy:"684.5",fill:"#015064",fillRule:"evenodd",stroke:"#007782",strokeWidth:"25",clipRule:"evenodd",mask:`url(#k-${Mn})`,rx:"214.5",ry:"186"}),jsxRuntimeExports$1.jsx("defs",{children:jsxRuntimeExports$1.jsx("filter",{id:`l-${Mn}`,width:"454",height:"396.9",x:"316.5",y:"486",filterUnits:"userSpaceOnUse",children:jsxRuntimeExports$1.jsx("feColorMatrix",{values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"})})}),jsxRuntimeExports$1.jsx("mask",{id:`m-${Mn}`,width:"454",height:"396.9",x:"316.5",y:"486",maskUnits:"userSpaceOnUse",children:jsxRuntimeExports$1.jsx("g",{filter:`url(#l-${Mn})`,children:jsxRuntimeExports$1.jsx("circle",{cx:"316.5",cy:"316.5",r:"316.5",fill:"#FFF",fillRule:"evenodd",clipRule:"evenodd"})})}),jsxRuntimeExports$1.jsx("ellipse",{cx:"543.5",cy:"684.5",fill:"#015064",fillRule:"evenodd",stroke:"#007782",strokeWidth:"25",clipRule:"evenodd",mask:`url(#m-${Mn})`,rx:"214.5",ry:"186"}),jsxRuntimeExports$1.jsx("defs",{children:jsxRuntimeExports$1.jsx("filter",{id:`n-${Mn}`,width:"176.9",height:"129.3",x:"272.2",y:"308",filterUnits:"userSpaceOnUse",children:jsxRuntimeExports$1.jsx("feColorMatrix",{values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"})})}),jsxRuntimeExports$1.jsx("mask",{id:`o-${Mn}`,width:"176.9",height:"129.3",x:"272.2",y:"308",maskUnits:"userSpaceOnUse",children:jsxRuntimeExports$1.jsx("g",{filter:`url(#n-${Mn})`,children:jsxRuntimeExports$1.jsx("circle",{cx:"316.5",cy:"316.5",r:"316.5",fill:"#FFF",fillRule:"evenodd",clipRule:"evenodd"})})}),jsxRuntimeExports$1.jsxs("g",{mask:`url(#o-${Mn})`,children:[jsxRuntimeExports$1.jsx("path",{fill:"none",stroke:"#000",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:"11",d:"M436 403.2l-5 28.6m-140-90.3l-10.9 62m52.8-19.4l-4.3 27.1"}),jsxRuntimeExports$1.jsxs("linearGradient",{id:`p-${Mn}`,x1:"-645.656",x2:"-646.499",y1:"854.878",y2:"854.788",gradientTransform:"matrix(-184.159 -32.4722 11.4608 -64.9973 -128419.844 34938.836)",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports$1.jsx("stop",{offset:"0",stopColor:"#ee2700"}),jsxRuntimeExports$1.jsx("stop",{offset:"1",stopColor:"#ff008e"})]}),jsxRuntimeExports$1.jsx("path",{fill:`url(#p-${Mn})`,fillRule:"evenodd",d:"M344.1 363l97.7 17.2c5.8 2.1 8.2 6.2 7.1 12.1-1 5.9-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1.8-12.8 3.7-3.7 8.3-4.4 13.7-2.1l55.2 53.6z",clipRule:"evenodd"}),jsxRuntimeExports$1.jsx("path",{fill:"#D8D8D8",fillRule:"evenodd",stroke:"#FFF",strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:"7",d:"M428.3 384.5l.9-6.5m-33.9 1.5l.9-6.5m-34 .5l.9-6.1m-38.9-16.1l4.2-3.9m-25.2-16.1l4.2-3.9",clipRule:"evenodd"})]}),jsxRuntimeExports$1.jsx("defs",{children:jsxRuntimeExports$1.jsx("filter",{id:`q-${Mn}`,width:"280.6",height:"317.4",x:"73.2",y:"113.9",filterUnits:"userSpaceOnUse",children:jsxRuntimeExports$1.jsx("feColorMatrix",{values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"})})}),jsxRuntimeExports$1.jsx("mask",{id:`r-${Mn}`,width:"280.6",height:"317.4",x:"73.2",y:"113.9",maskUnits:"userSpaceOnUse",children:jsxRuntimeExports$1.jsx("g",{filter:`url(#q-${Mn})`,children:jsxRuntimeExports$1.jsx("circle",{cx:"316.5",cy:"316.5",r:"316.5",fill:"#FFF",fillRule:"evenodd",clipRule:"evenodd"})})}),jsxRuntimeExports$1.jsxs("g",{mask:`url(#r-${Mn})`,children:[jsxRuntimeExports$1.jsxs("linearGradient",{id:`s-${Mn}`,x1:"-646.8",x2:"-646.8",y1:"854.844",y2:"853.844",gradientTransform:"matrix(-100.1751 48.8587 -97.9753 -200.879 19124.773 203538.61)",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports$1.jsx("stop",{offset:"0",stopColor:"#a17500"}),jsxRuntimeExports$1.jsx("stop",{offset:"1",stopColor:"#5d2100"})]}),jsxRuntimeExports$1.jsx("path",{fill:`url(#s-${Mn})`,fillRule:"evenodd",d:"M192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.2-2.9 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6-3.4-18.7-10.8-51.8-22.2-99.6l-25.3 4.6",clipRule:"evenodd"}),jsxRuntimeExports$1.jsxs("linearGradient",{id:`t-${Mn}`,x1:"-635.467",x2:"-635.467",y1:"852.115",y2:"851.115",gradientTransform:"matrix(92.6873 4.8575 2.0257 -38.6535 57323.695 36176.047)",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports$1.jsx("stop",{offset:"0",stopColor:"#2f8a00"}),jsxRuntimeExports$1.jsx("stop",{offset:"1",stopColor:"#90ff57"})]}),jsxRuntimeExports$1.jsx("path",{fill:`url(#t-${Mn})`,fillRule:"evenodd",stroke:"#2F8A00",strokeWidth:"13",d:"M195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z",clipRule:"evenodd"}),jsxRuntimeExports$1.jsxs("linearGradient",{id:`u-${Mn}`,x1:"-636.573",x2:"-636.573",y1:"855.444",y2:"854.444",gradientTransform:"matrix(109.9945 5.7646 6.3597 -121.3507 64719.133 107659.336)",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports$1.jsx("stop",{offset:"0",stopColor:"#2f8a00"}),jsxRuntimeExports$1.jsx("stop",{offset:"1",stopColor:"#90ff57"})]}),jsxRuntimeExports$1.jsx("path",{fill:`url(#u-${Mn})`,fillRule:"evenodd",stroke:"#2F8A00",strokeWidth:"13",d:"M194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.3 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20 49.6-53.1 49.6-53.1z",clipRule:"evenodd"}),jsxRuntimeExports$1.jsxs("linearGradient",{id:`v-${Mn}`,x1:"-632.145",x2:"-632.145",y1:"854.174",y2:"853.174",gradientTransform:"matrix(62.9558 3.2994 3.5021 -66.8246 37035.367 59284.227)",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports$1.jsx("stop",{offset:"0",stopColor:"#2f8a00"}),jsxRuntimeExports$1.jsx("stop",{offset:"1",stopColor:"#90ff57"})]}),jsxRuntimeExports$1.jsx("path",{fill:`url(#v-${Mn})`,fillRule:"evenodd",stroke:"#2F8A00",strokeWidth:"13",d:"M195 183.9c-.8-21.9 6-38 20.6-48.2 14.6-10.2 29.8-15.3 45.5-15.3-6.1 21.4-14.5 35.8-25.2 43.4-10.7 7.5-24.4 14.2-40.9 20.1z",clipRule:"evenodd"}),jsxRuntimeExports$1.jsxs("linearGradient",{id:`w-${Mn}`,x1:"-638.224",x2:"-638.224",y1:"853.801",y2:"852.801",gradientTransform:"matrix(152.4666 7.9904 3.0934 -59.0251 94939.86 55646.855)",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports$1.jsx("stop",{offset:"0",stopColor:"#2f8a00"}),jsxRuntimeExports$1.jsx("stop",{offset:"1",stopColor:"#90ff57"})]}),jsxRuntimeExports$1.jsx("path",{fill:`url(#w-${Mn})`,fillRule:"evenodd",stroke:"#2F8A00",strokeWidth:"13",d:"M194.9 184.5c31.9-30 64.1-39.7 96.7-29 32.6 10.7 50.8 30.4 54.6 59.1-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z",clipRule:"evenodd"}),jsxRuntimeExports$1.jsxs("linearGradient",{id:`x-${Mn}`,x1:"-637.723",x2:"-637.723",y1:"855.103",y2:"854.103",gradientTransform:"matrix(136.467 7.1519 5.2165 -99.5377 82830.875 89859.578)",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports$1.jsx("stop",{offset:"0",stopColor:"#2f8a00"}),jsxRuntimeExports$1.jsx("stop",{offset:"1",stopColor:"#90ff57"})]}),jsxRuntimeExports$1.jsx("path",{fill:`url(#x-${Mn})`,fillRule:"evenodd",stroke:"#2F8A00",strokeWidth:"13",d:"M194.9 184.5c35.8-7.6 65.6-.2 89.2 22 23.6 22.2 37.7 49 42.3 80.3-39.8-9.7-68.3-23.8-85.5-42.4-17.2-18.5-32.5-38.5-46-59.9z",clipRule:"evenodd"}),jsxRuntimeExports$1.jsxs("linearGradient",{id:`y-${Mn}`,x1:"-631.79",x2:"-631.79",y1:"855.872",y2:"854.872",gradientTransform:"matrix(60.8683 3.19 8.7771 -167.4773 31110.818 145537.61)",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports$1.jsx("stop",{offset:"0",stopColor:"#2f8a00"}),jsxRuntimeExports$1.jsx("stop",{offset:"1",stopColor:"#90ff57"})]}),jsxRuntimeExports$1.jsx("path",{fill:`url(#y-${Mn})`,fillRule:"evenodd",stroke:"#2F8A00",strokeWidth:"13",d:"M194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6-6.5 29.9-3.6 63.1 8.7 99.6 27.4-40.3 43.2-69.6 47.4-88 4.2-18.3 5.5-44.1 4-77.2z",clipRule:"evenodd"}),jsxRuntimeExports$1.jsx("path",{fill:"none",stroke:"#2F8A00",strokeLinecap:"round",strokeWidth:"8",d:"M196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4-5.7 18-9.4 33-11.1 45.1"}),jsxRuntimeExports$1.jsx("path",{fill:"none",stroke:"#2F8A00",strokeLinecap:"round",strokeWidth:"8",d:"M194.8 185.7c-24.4 1.7-43.8 9-58.1 21.8-14.3 12.8-24.7 25.4-31.3 37.8m99.1-68.9c29.7-6.7 52-8.4 67-5 15 3.4 26.9 8.7 35.8 15.9m-110.8-5.9c20.3 9.9 38.2 20.5 53.9 31.9 15.7 11.4 27.4 22.1 35.1 32"})]}),jsxRuntimeExports$1.jsx("defs",{children:jsxRuntimeExports$1.jsx("filter",{id:`z-${Mn}`,width:"532",height:"633",x:"50.5",y:"399",filterUnits:"userSpaceOnUse",children:jsxRuntimeExports$1.jsx("feColorMatrix",{values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"})})}),jsxRuntimeExports$1.jsx("mask",{id:`A-${Mn}`,width:"532",height:"633",x:"50.5",y:"399",maskUnits:"userSpaceOnUse",children:jsxRuntimeExports$1.jsx("g",{filter:`url(#z-${Mn})`,children:jsxRuntimeExports$1.jsx("circle",{cx:"316.5",cy:"316.5",r:"316.5",fill:"#FFF",fillRule:"evenodd",clipRule:"evenodd"})})}),jsxRuntimeExports$1.jsxs("linearGradient",{id:`B-${Mn}`,x1:"-641.104",x2:"-641.278",y1:"856.577",y2:"856.183",gradientTransform:"matrix(532 0 0 -633 341484.5 542657)",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports$1.jsx("stop",{offset:"0",stopColor:"#fff400"}),jsxRuntimeExports$1.jsx("stop",{offset:"1",stopColor:"#3c8700"})]}),jsxRuntimeExports$1.jsx("ellipse",{cx:"316.5",cy:"715.5",fill:`url(#B-${Mn})`,fillRule:"evenodd",clipRule:"evenodd",mask:`url(#A-${Mn})`,rx:"266",ry:"316.5"}),jsxRuntimeExports$1.jsx("defs",{children:jsxRuntimeExports$1.jsx("filter",{id:`C-${Mn}`,width:"288",height:"283",x:"391",y:"-24",filterUnits:"userSpaceOnUse",children:jsxRuntimeExports$1.jsx("feColorMatrix",{values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"})})}),jsxRuntimeExports$1.jsx("mask",{id:`D-${Mn}`,width:"288",height:"283",x:"391",y:"-24",maskUnits:"userSpaceOnUse",children:jsxRuntimeExports$1.jsx("g",{filter:`url(#C-${Mn})`,children:jsxRuntimeExports$1.jsx("circle",{cx:"316.5",cy:"316.5",r:"316.5",fill:"#FFF",fillRule:"evenodd",clipRule:"evenodd"})})}),jsxRuntimeExports$1.jsx("g",{mask:`url(#D-${Mn})`,children:jsxRuntimeExports$1.jsxs("g",{transform:"translate(397 -24)",children:[jsxRuntimeExports$1.jsxs("linearGradient",{id:`E-${Mn}`,x1:"-1036.672",x2:"-1036.672",y1:"880.018",y2:"879.018",gradientTransform:"matrix(227 0 0 -227 235493 199764)",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports$1.jsx("stop",{offset:"0",stopColor:"#ffdf00"}),jsxRuntimeExports$1.jsx("stop",{offset:"1",stopColor:"#ff9d00"})]}),jsxRuntimeExports$1.jsx("circle",{cx:"168.5",cy:"113.5",r:"113.5",fill:`url(#E-${Mn})`,fillRule:"evenodd",clipRule:"evenodd"}),jsxRuntimeExports$1.jsxs("linearGradient",{id:`F-${Mn}`,x1:"-1017.329",x2:"-1018.602",y1:"658.003",y2:"657.998",gradientTransform:"matrix(30 0 0 -1 30558 771)",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports$1.jsx("stop",{offset:"0",stopColor:"#ffa400"}),jsxRuntimeExports$1.jsx("stop",{offset:"1",stopColor:"#ff5e00"})]}),jsxRuntimeExports$1.jsx("path",{fill:"none",stroke:`url(#F-${Mn})`,strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:"12",d:"M30 113H0"}),jsxRuntimeExports$1.jsxs("linearGradient",{id:`G-${Mn}`,x1:"-1014.501",x2:"-1015.774",y1:"839.985",y2:"839.935",gradientTransform:"matrix(26.5 0 0 -5.5 26925 4696.5)",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports$1.jsx("stop",{offset:"0",stopColor:"#ffa400"}),jsxRuntimeExports$1.jsx("stop",{offset:"1",stopColor:"#ff5e00"})]}),jsxRuntimeExports$1.jsx("path",{fill:"none",stroke:`url(#G-${Mn})`,strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:"12",d:"M33.5 79.5L7 74"}),jsxRuntimeExports$1.jsxs("linearGradient",{id:`H-${Mn}`,x1:"-1016.59",x2:"-1017.862",y1:"852.671",y2:"852.595",gradientTransform:"matrix(29 0 0 -8 29523 6971)",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports$1.jsx("stop",{offset:"0",stopColor:"#ffa400"}),jsxRuntimeExports$1.jsx("stop",{offset:"1",stopColor:"#ff5e00"})]}),jsxRuntimeExports$1.jsx("path",{fill:"none",stroke:`url(#H-${Mn})`,strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:"12",d:"M34 146l-29 8"}),jsxRuntimeExports$1.jsxs("linearGradient",{id:`I-${Mn}`,x1:"-1011.984",x2:"-1013.257",y1:"863.523",y2:"863.229",gradientTransform:"matrix(24 0 0 -13 24339 11407)",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports$1.jsx("stop",{offset:"0",stopColor:"#ffa400"}),jsxRuntimeExports$1.jsx("stop",{offset:"1",stopColor:"#ff5e00"})]}),jsxRuntimeExports$1.jsx("path",{fill:"none",stroke:`url(#I-${Mn})`,strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:"12",d:"M45 177l-24 13"}),jsxRuntimeExports$1.jsxs("linearGradient",{id:`J-${Mn}`,x1:"-1006.673",x2:"-1007.946",y1:"869.279",y2:"868.376",gradientTransform:"matrix(20 0 0 -19 20205 16720)",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports$1.jsx("stop",{offset:"0",stopColor:"#ffa400"}),jsxRuntimeExports$1.jsx("stop",{offset:"1",stopColor:"#ff5e00"})]}),jsxRuntimeExports$1.jsx("path",{fill:"none",stroke:`url(#J-${Mn})`,strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:"12",d:"M67 204l-20 19"}),jsxRuntimeExports$1.jsxs("linearGradient",{id:`K-${Mn}`,x1:"-992.85",x2:"-993.317",y1:"871.258",y2:"870.258",gradientTransform:"matrix(13.8339 0 0 -22.8467 13825.796 20131.938)",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports$1.jsx("stop",{offset:"0",stopColor:"#ffa400"}),jsxRuntimeExports$1.jsx("stop",{offset:"1",stopColor:"#ff5e00"})]}),jsxRuntimeExports$1.jsx("path",{fill:"none",stroke:`url(#K-${Mn})`,strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:"12",d:"M94.4 227l-13.8 22.8"}),jsxRuntimeExports$1.jsxs("linearGradient",{id:`L-${Mn}`,x1:"-953.835",x2:"-953.965",y1:"871.9",y2:"870.9",gradientTransform:"matrix(7.5 0 0 -24.5 7278 21605)",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports$1.jsx("stop",{offset:"0",stopColor:"#ffa400"}),jsxRuntimeExports$1.jsx("stop",{offset:"1",stopColor:"#ff5e00"})]}),jsxRuntimeExports$1.jsx("path",{fill:"none",stroke:`url(#L-${Mn})`,strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:"12",d:"M127.5 243.5L120 268"}),jsxRuntimeExports$1.jsxs("linearGradient",{id:`M-${Mn}`,x1:"244.504",x2:"244.496",y1:"871.898",y2:"870.898",gradientTransform:"matrix(.5 0 0 -24.5 45.5 21614)",gradientUnits:"userSpaceOnUse",children:[jsxRuntimeExports$1.jsx("stop",{offset:"0",stopColor:"#ffa400"}),jsxRuntimeExports$1.jsx("stop",{offset:"1",stopColor:"#ff5e00"})]}),jsxRuntimeExports$1.jsx("path",{fill:"none",stroke:`url(#M-${Mn})`,strokeLinecap:"round",strokeLinejoin:"bevel",strokeWidth:"12",d:"M167.5 252.5l.5 24.5"})]})})]})})}function Logo(Mn){const{className:Fn,...io}=Mn,fo=useStyles();return jsxRuntimeExports$1.jsxs("button",{...io,className:clsx$1(fo.logo,Fn),children:[jsxRuntimeExports$1.jsx("div",{className:fo.tanstackLogo,children:"TANSTACK"}),jsxRuntimeExports$1.jsx("div",{className:fo.routerLogo,children:"React Router v1"})]})}function TanStackRouterDevtools(Mn){const{shadowDOMTarget:Fn}=Mn;return jsxRuntimeExports$1.jsx(ShadowDomTargetContext.Provider,{value:Fn,children:jsxRuntimeExports$1.jsx(FloatingTanStackRouterDevtools,{...Mn})})}function FloatingTanStackRouterDevtools({initialIsOpen:Mn,panelProps:Fn={},closeButtonProps:io={},toggleButtonProps:fo={},position:$o="bottom-left",containerElement:mo="footer",router:Ao,shadowDOMTarget:jo}){const[Lo,Ho]=React$1.useState(),zo=React$1.useRef(null),[Go,Vo]=useLocalStorage("tanstackRouterDevtoolsOpen",Mn),[Yo,Xo]=useLocalStorage("tanstackRouterDevtoolsHeight",null),[is,yl]=useSafeState(!1),[us,hs]=useSafeState(!1),_l=useIsMounted(),xl=useStyles(),Il=(ps,_c)=>{if(_c.button!==0)return;hs(!0);const $l={originalHeight:(ps==null?void 0:ps.getBoundingClientRect().height)??0,pageY:_c.pageY},El=os=>{const Al=$l.pageY-os.pageY,Ul=$l.originalHeight+Al;Xo(Ul),Ul<70?Vo(!1):Vo(!0)},ds=()=>{hs(!1),document.removeEventListener("mousemove",El),document.removeEventListener("mouseUp",ds)};document.addEventListener("mousemove",El),document.addEventListener("mouseup",ds)},Ol=Go??!1;React$1.useEffect(()=>{yl(Go??!1)},[Go,is,yl]),React$1.useEffect(()=>{var ps;if(is){const _c=(ps=Lo==null?void 0:Lo.parentElement)==null?void 0:ps.style.paddingBottom,$l=()=>{var El;const ds=(El=zo.current)==null?void 0:El.getBoundingClientRect().height;Lo!=null&&Lo.parentElement&&(Lo.parentElement.style.paddingBottom=`${ds}px`)};if($l(),typeof window<"u")return window.addEventListener("resize",$l),()=>{window.removeEventListener("resize",$l),Lo!=null&&Lo.parentElement&&typeof _c=="string"&&(Lo.parentElement.style.paddingBottom=_c)}}},[is,Lo==null?void 0:Lo.parentElement]),React$1.useEffect(()=>{if(Lo){const ps=Lo,_c=getComputedStyle(ps).fontSize;ps.style.setProperty("--tsrd-font-size",_c)}},[Lo]);const{style:Tl={},...Cl}=Fn,{style:Nl={},onClick:Wl,...Dl}=io,{onClick:Rl,className:Qo,...Jo}=fo;if(!_l())return null;const rs=Yo??500;return jsxRuntimeExports$1.jsxs(mo,{ref:Ho,className:"TanStackRouterDevtools",children:[jsxRuntimeExports$1.jsx(DevtoolsOnCloseContext.Provider,{value:{onCloseClick:Wl??(()=>{})},children:jsxRuntimeExports$1.jsx(BaseTanStackRouterDevtoolsPanel,{ref:zo,...Cl,router:Ao,className:clsx$1(xl.devtoolsPanelContainer,xl.devtoolsPanelContainerVisibility(!!Go),xl.devtoolsPanelContainerResizing(us),xl.devtoolsPanelContainerAnimation(is,rs+16)),style:{height:rs,...Tl},isOpen:is,setIsOpen:Vo,handleDragStart:ps=>Il(zo.current,ps),shadowDOMTarget:jo})}),jsxRuntimeExports$1.jsxs("button",{type:"button",...Jo,"aria-label":"Open TanStack Router Devtools",onClick:ps=>{Vo(!0),Rl&&Rl(ps)},className:clsx$1(xl.mainCloseBtn,xl.mainCloseBtnPosition($o),xl.mainCloseBtnAnimation(!Ol),Qo),children:[jsxRuntimeExports$1.jsxs("div",{className:xl.mainCloseBtnIconContainer,children:[jsxRuntimeExports$1.jsx("div",{className:xl.mainCloseBtnIconOuter,children:jsxRuntimeExports$1.jsx(TanStackLogo,{})}),jsxRuntimeExports$1.jsx("div",{className:xl.mainCloseBtnIconInner,children:jsxRuntimeExports$1.jsx(TanStackLogo,{})})]}),jsxRuntimeExports$1.jsx("div",{className:xl.mainCloseBtnDivider,children:"-"}),jsxRuntimeExports$1.jsx("div",{className:xl.routerLogoCloseButton,children:"TanStack Router"})]})]})}React$1.forwardRef(function(Fn,io){const{shadowDOMTarget:fo}=Fn;return jsxRuntimeExports$1.jsx(ShadowDomTargetContext.Provider,{value:fo,children:jsxRuntimeExports$1.jsx(DevtoolsOnCloseContext.Provider,{value:{onCloseClick:()=>{}},children:jsxRuntimeExports$1.jsx(BaseTanStackRouterDevtoolsPanel,{ref:io,...Fn})})})});function RouteComp({router:Mn,route:Fn,isRoot:io,activeId:fo,setActiveId:$o}){var mo;const Ao=useRouterState({router:Mn}),jo=useStyles(),Lo=Ao.pendingMatches||Ao.matches,Ho=Ao.matches.find(Go=>Go.routeId===Fn.id),zo=React$1.useMemo(()=>{try{if(Ho!=null&&Ho.params){const Go=Ho.params,Vo=Fn.path||trimPath(Fn.id);if(Vo.startsWith("$")){const Yo=Vo.slice(1);if(Go[Yo])return`(${Go[Yo]})`}}return""}catch{return""}},[Ho,Fn]);return jsxRuntimeExports$1.jsxs("div",{children:[jsxRuntimeExports$1.jsxs("div",{role:"button","aria-label":`Open match details for ${Fn.id}`,onClick:()=>{Ho&&$o(fo===Fn.id?"":Fn.id)},className:clsx$1(jo.routesRowContainer(Fn.id===fo,!!Ho)),children:[jsxRuntimeExports$1.jsx("div",{className:clsx$1(jo.matchIndicator(getRouteStatusColor(Lo,Fn)))}),jsxRuntimeExports$1.jsxs("div",{className:clsx$1(jo.routesRow(!!Ho)),children:[jsxRuntimeExports$1.jsxs("div",{children:[jsxRuntimeExports$1.jsxs("code",{className:jo.code,children:[io?rootRouteId:Fn.path||trimPath(Fn.id)," "]}),jsxRuntimeExports$1.jsx("code",{className:jo.routeParamInfo,children:zo})]}),jsxRuntimeExports$1.jsx(AgeTicker,{match:Ho,router:Mn})]})]}),(mo=Fn.children)!=null&&mo.length?jsxRuntimeExports$1.jsx("div",{className:jo.nestedRouteRow(!!io),children:[...Fn.children].sort((Go,Vo)=>Go.rank-Vo.rank).map(Go=>jsxRuntimeExports$1.jsx(RouteComp,{router:Mn,route:Go,activeId:fo,setActiveId:$o},Go.id))}):null]})}const BaseTanStackRouterDevtoolsPanel=React$1.forwardRef(function(Fn,io){var fo,$o;const{isOpen:mo=!0,setIsOpen:Ao,handleDragStart:jo,router:Lo,shadowDOMTarget:Ho,...zo}=Fn,{onCloseClick:Go}=useDevtoolsOnClose(),Vo=useStyles(),{className:Yo,...Xo}=zo,is=useRouter({warn:!1}),yl=Lo??is,us=useRouterState({router:yl});invariant$1(yl);const[hs,_l]=useLocalStorage("tanstackRouterDevtoolsShowMatches",!0),[xl,Il]=useLocalStorage("tanstackRouterDevtoolsActiveRouteId",""),Ol=React$1.useMemo(()=>[...us.pendingMatches??[],...us.matches,...us.cachedMatches].find(Wl=>Wl.routeId===xl||Wl.id===xl),[xl,us.cachedMatches,us.matches,us.pendingMatches]),Tl=Object.keys(us.location.search).length,Cl={...yl,state:yl.state};return jsxRuntimeExports$1.jsxs("div",{ref:io,className:clsx$1(Vo.devtoolsPanel,"TanStackRouterDevtoolsPanel",Yo),...Xo,children:[jo?jsxRuntimeExports$1.jsx("div",{className:Vo.dragHandle,onMouseDown:jo}):null,jsxRuntimeExports$1.jsx("button",{className:Vo.panelCloseBtn,onClick:Nl=>{Ao(!1),Go(Nl)},children:jsxRuntimeExports$1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"6",fill:"none",viewBox:"0 0 10 6",className:Vo.panelCloseBtnIcon,children:jsxRuntimeExports$1.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.667",d:"M1 1l4 4 4-4"})})}),jsxRuntimeExports$1.jsxs("div",{className:Vo.firstContainer,children:[jsxRuntimeExports$1.jsx("div",{className:Vo.row,children:jsxRuntimeExports$1.jsx(Logo,{"aria-hidden":!0,onClick:Nl=>{Ao(!1),Go(Nl)}})}),jsxRuntimeExports$1.jsx("div",{className:Vo.routerExplorerContainer,children:jsxRuntimeExports$1.jsx("div",{className:Vo.routerExplorer,children:jsxRuntimeExports$1.jsx(Explorer,{label:"Router",value:Object.fromEntries(multiSortBy(Object.keys(Cl),["state","routesById","routesByPath","flatRoutes","options","manifest"].map(Nl=>Wl=>Wl!==Nl)).map(Nl=>[Nl,Cl[Nl]]).filter(Nl=>typeof Nl[1]!="function"&&!["__store","basepath","injectedHtml","subscribers","latestLoadPromise","navigateTimeout","resetNextScroll","tempLocationKey","latestLocation","routeTree","history"].includes(Nl[0]))),defaultExpanded:{state:{},context:{},options:{}},filterSubEntries:Nl=>Nl.filter(Wl=>typeof Wl.value!="function")})})})]}),jsxRuntimeExports$1.jsxs("div",{className:Vo.secondContainer,children:[jsxRuntimeExports$1.jsxs("div",{className:Vo.matchesContainer,children:[jsxRuntimeExports$1.jsxs("div",{className:Vo.detailsHeader,children:[jsxRuntimeExports$1.jsx("span",{children:"Pathname"}),us.location.maskedLocation?jsxRuntimeExports$1.jsx("div",{className:Vo.maskedBadgeContainer,children:jsxRuntimeExports$1.jsx("span",{className:Vo.maskedBadge,children:"masked"})}):null]}),jsxRuntimeExports$1.jsxs("div",{className:Vo.detailsContent,children:[jsxRuntimeExports$1.jsx("code",{children:us.location.pathname}),us.location.maskedLocation?jsxRuntimeExports$1.jsx("code",{className:Vo.maskedLocation,children:us.location.maskedLocation.pathname}):null]}),jsxRuntimeExports$1.jsxs("div",{className:Vo.detailsHeader,children:[jsxRuntimeExports$1.jsxs("div",{className:Vo.routeMatchesToggle,children:[jsxRuntimeExports$1.jsx("button",{type:"button",onClick:()=>{_l(!1)},disabled:!hs,className:clsx$1(Vo.routeMatchesToggleBtn(!hs,!0)),children:"Routes"}),jsxRuntimeExports$1.jsx("button",{type:"button",onClick:()=>{_l(!0)},disabled:hs,className:clsx$1(Vo.routeMatchesToggleBtn(!!hs,!1)),children:"Matches"})]}),jsxRuntimeExports$1.jsx("div",{className:Vo.detailsHeaderInfo,children:jsxRuntimeExports$1.jsx("div",{children:"age / staleTime / gcTime"})})]}),jsxRuntimeExports$1.jsx("div",{className:clsx$1(Vo.routesContainer),children:hs?jsxRuntimeExports$1.jsx("div",{children:((fo=us.pendingMatches)!=null&&fo.length?us.pendingMatches:us.matches).map((Nl,Wl)=>jsxRuntimeExports$1.jsxs("div",{role:"button","aria-label":`Open match details for ${Nl.id}`,onClick:()=>Il(xl===Nl.id?"":Nl.id),className:clsx$1(Vo.matchRow(Nl===Ol)),children:[jsxRuntimeExports$1.jsx("div",{className:clsx$1(Vo.matchIndicator(getStatusColor(Nl)))}),jsxRuntimeExports$1.jsx("code",{className:Vo.matchID,children:`${Nl.routeId===rootRouteId?rootRouteId:Nl.pathname}`}),jsxRuntimeExports$1.jsx(AgeTicker,{match:Nl,router:yl})]},Nl.id||Wl))}):jsxRuntimeExports$1.jsx(RouteComp,{router:yl,route:yl.routeTree,isRoot:!0,activeId:xl,setActiveId:Il})})]}),us.cachedMatches.length?jsxRuntimeExports$1.jsxs("div",{className:Vo.cachedMatchesContainer,children:[jsxRuntimeExports$1.jsxs("div",{className:Vo.detailsHeader,children:[jsxRuntimeExports$1.jsx("div",{children:"Cached Matches"}),jsxRuntimeExports$1.jsx("div",{className:Vo.detailsHeaderInfo,children:"age / staleTime / gcTime"})]}),jsxRuntimeExports$1.jsx("div",{children:us.cachedMatches.map(Nl=>jsxRuntimeExports$1.jsxs("div",{role:"button","aria-label":`Open match details for ${Nl.id}`,onClick:()=>Il(xl===Nl.id?"":Nl.id),className:clsx$1(Vo.matchRow(Nl===Ol)),children:[jsxRuntimeExports$1.jsx("div",{className:clsx$1(Vo.matchIndicator(getStatusColor(Nl)))}),jsxRuntimeExports$1.jsx("code",{className:Vo.matchID,children:`${Nl.id}`}),jsxRuntimeExports$1.jsx(AgeTicker,{match:Nl,router:yl})]},Nl.id))})]}):null]}),Ol?jsxRuntimeExports$1.jsxs("div",{className:Vo.thirdContainer,children:[jsxRuntimeExports$1.jsx("div",{className:Vo.detailsHeader,children:"Match Details"}),jsxRuntimeExports$1.jsx("div",{children:jsxRuntimeExports$1.jsxs("div",{className:Vo.matchDetails,children:[jsxRuntimeExports$1.jsx("div",{className:Vo.matchStatus(Ol.status,Ol.isFetching),children:jsxRuntimeExports$1.jsx("div",{children:Ol.status==="success"&&Ol.isFetching?"fetching":Ol.status})}),jsxRuntimeExports$1.jsxs("div",{className:Vo.matchDetailsInfoLabel,children:[jsxRuntimeExports$1.jsx("div",{children:"ID:"}),jsxRuntimeExports$1.jsx("div",{className:Vo.matchDetailsInfo,children:jsxRuntimeExports$1.jsx("code",{children:Ol.id})})]}),jsxRuntimeExports$1.jsxs("div",{className:Vo.matchDetailsInfoLabel,children:[jsxRuntimeExports$1.jsx("div",{children:"State:"}),jsxRuntimeExports$1.jsx("div",{className:Vo.matchDetailsInfo,children:($o=us.pendingMatches)!=null&&$o.find(Nl=>Nl.id===Ol.id)?"Pending":us.matches.find(Nl=>Nl.id===Ol.id)?"Active":"Cached"})]}),jsxRuntimeExports$1.jsxs("div",{className:Vo.matchDetailsInfoLabel,children:[jsxRuntimeExports$1.jsx("div",{children:"Last Updated:"}),jsxRuntimeExports$1.jsx("div",{className:Vo.matchDetailsInfo,children:Ol.updatedAt?new Date(Ol.updatedAt).toLocaleTimeString():"N/A"})]})]})}),Ol.loaderData?jsxRuntimeExports$1.jsxs(jsxRuntimeExports$1.Fragment,{children:[jsxRuntimeExports$1.jsx("div",{className:Vo.detailsHeader,children:"Loader Data"}),jsxRuntimeExports$1.jsx("div",{className:Vo.detailsContent,children:jsxRuntimeExports$1.jsx(Explorer,{label:"loaderData",value:Ol.loaderData,defaultExpanded:{}})})]}):null,jsxRuntimeExports$1.jsx("div",{className:Vo.detailsHeader,children:"Explorer"}),jsxRuntimeExports$1.jsx("div",{className:Vo.detailsContent,children:jsxRuntimeExports$1.jsx(Explorer,{label:"Match",value:Ol,defaultExpanded:{}})})]}):null,Tl?jsxRuntimeExports$1.jsxs("div",{className:Vo.fourthContainer,children:[jsxRuntimeExports$1.jsx("div",{className:Vo.detailsHeader,children:"Search Params"}),jsxRuntimeExports$1.jsx("div",{className:Vo.detailsContent,children:jsxRuntimeExports$1.jsx(Explorer,{value:us.location.search,defaultExpanded:Object.keys(us.location.search).reduce((Nl,Wl)=>(Nl[Wl]={},Nl),{})})})]}):null]})});function AgeTicker({match:Mn,router:Fn}){const io=useStyles(),fo=React$1.useReducer(()=>({}),()=>({}))[1];if(React$1.useEffect(()=>{const Lo=setInterval(()=>{fo()},1e3);return()=>{clearInterval(Lo)}},[fo]),!Mn)return null;const $o=Fn.looseRoutesById[Mn.routeId];if(!$o.options.loader)return null;const mo=Date.now()-Mn.updatedAt,Ao=$o.options.staleTime??Fn.options.defaultStaleTime??0,jo=$o.options.gcTime??Fn.options.defaultGcTime??30*60*1e3;return jsxRuntimeExports$1.jsxs("div",{className:clsx$1(io.ageTicker(mo>Ao)),children:[jsxRuntimeExports$1.jsx("div",{children:formatTime(mo)}),jsxRuntimeExports$1.jsx("div",{children:"/"}),jsxRuntimeExports$1.jsx("div",{children:formatTime(Ao)}),jsxRuntimeExports$1.jsx("div",{children:"/"}),jsxRuntimeExports$1.jsx("div",{children:formatTime(jo)})]})}function formatTime(Mn){const Fn=["s","min","h","d"],io=[Mn/1e3,Mn/6e4,Mn/36e5,Mn/864e5];let fo=0;for(let mo=1;mo<io.length&&!(io[mo]<1);mo++)fo=mo;return new Intl.NumberFormat(navigator.language,{compactDisplay:"short",notation:"compact",maximumFractionDigits:0}).format(io[fo])+Fn[fo]}const stylesFactory=Mn=>{const{colors:Fn,font:io,size:fo,alpha:$o,shadow:mo,border:Ao}=tokens,{fontFamily:jo,lineHeight:Lo,size:Ho}=io,zo=Mn?u$5.bind({target:Mn}):u$5;return{devtoolsPanelContainer:zo`
direction: ltr;
position: fixed;
bottom: 0;
right: 0;
z-index: 99999;
width: 100%;
max-height: 90%;
border-top: 1px solid ${Fn.gray[700]};
transform-origin: top;
`,devtoolsPanelContainerVisibility:Go=>zo`
visibility: ${Go?"visible":"hidden"};
`,devtoolsPanelContainerResizing:Go=>Go?zo`
transition: none;
`:zo`
transition: all 0.4s ease;
`,devtoolsPanelContainerAnimation:(Go,Vo)=>Go?zo`
pointer-events: auto;
transform: translateY(0);
`:zo`
pointer-events: none;
transform: translateY(${Vo}px);
`,logo:zo`
cursor: pointer;
display: flex;
flex-direction: column;
background-color: transparent;
border: none;
font-family: ${jo.sans};
gap: ${tokens.size[.5]};
padding: 0px;
&:hover {
opacity: 0.7;
}
&:focus-visible {
outline-offset: 4px;
border-radius: ${Ao.radius.xs};
outline: 2px solid ${Fn.blue[800]};
}
`,tanstackLogo:zo`
font-size: ${io.size.md};
font-weight: ${io.weight.bold};
line-height: ${io.lineHeight.xs};
white-space: nowrap;
color: ${Fn.gray[300]};
`,routerLogo:zo`
font-weight: ${io.weight.semibold};
font-size: ${io.size.xs};
background: linear-gradient(to right, #84cc16, #10b981);
background-clip: text;
-webkit-background-clip: text;
line-height: 1;
-webkit-text-fill-color: transparent;
white-space: nowrap;
`,devtoolsPanel:zo`
display: flex;
font-size: ${Ho.sm};
font-family: ${jo.sans};
background-color: ${Fn.darkGray[700]};
color: ${Fn.gray[300]};
@media (max-width: 700px) {
flex-direction: column;
}
@media (max-width: 600px) {
font-size: ${Ho.xs};
}
`,dragHandle:zo`
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 4px;
cursor: row-resize;
z-index: 100000;
&:hover {
background-color: ${Fn.purple[400]}${$o[90]};
}
`,firstContainer:zo`
flex: 1 1 500px;
min-height: 40%;
max-height: 100%;
overflow: auto;
border-right: 1px solid ${Fn.gray[700]};
display: flex;
flex-direction: column;
`,routerExplorerContainer:zo`
overflow-y: auto;
flex: 1;
`,routerExplorer:zo`
padding: ${tokens.size[2]};
`,row:zo`
display: flex;
align-items: center;
padding: ${tokens.size[2]} ${tokens.size[2.5]};
gap: ${tokens.size[2.5]};
border-bottom: ${Fn.darkGray[500]} 1px solid;
align-items: center;
`,detailsHeader:zo`
font-family: ui-sans-serif, Inter, system-ui, sans-serif, sans-serif;
position: sticky;
top: 0;
z-index: 2;
background-color: ${Fn.darkGray[600]};
padding: 0px ${tokens.size[2]};
font-weight: ${io.weight.medium};
font-size: ${io.size.xs};
min-height: ${tokens.size[8]};
line-height: ${io.lineHeight.xs};
text-align: left;
display: flex;
align-items: center;
`,maskedBadge:zo`
background: ${Fn.yellow[900]}${$o[70]};
color: ${Fn.yellow[300]};
display: inline-block;
padding: ${tokens.size[0]} ${tokens.size[2.5]};
border-radius: ${Ao.radius.full};
font-size: ${io.size.xs};
font-weight: ${io.weight.normal};
border: 1px solid ${Fn.yellow[300]};
`,maskedLocation:zo`
color: ${Fn.yellow[300]};
`,detailsContent:zo`
padding: ${tokens.size[1.5]} ${tokens.size[2]};
display: flex;
align-items: center;
justify-content: space-between;
font-size: ${io.size.xs};
`,routeMatchesToggle:zo`
display: flex;
align-items: center;
border: 1px solid ${Fn.gray[500]};
border-radius: ${Ao.radius.sm};
overflow: hidden;
`,routeMatchesToggleBtn:(Go,Vo)=>{const Xo=[zo`
appearance: none;
border: none;
font-size: 12px;
padding: 4px 8px;
background: transparent;
cursor: pointer;
font-family: ${jo.sans};
font-weight: ${io.weight.medium};
`];if(Go){const is=zo`
background: ${Fn.darkGray[400]};
color: ${Fn.gray[300]};
`;Xo.push(is)}else{const is=zo`
color: ${Fn.gray[500]};
background: ${Fn.darkGray[800]}${$o[20]};
`;Xo.push(is)}return Vo&&Xo.push(zo`
border-right: 1px solid ${tokens.colors.gray[500]};
`),Xo},detailsHeaderInfo:zo`
flex: 1;
justify-content: flex-end;
display: flex;
align-items: center;
font-weight: ${io.weight.normal};
color: ${Fn.gray[400]};
`,matchRow:Go=>{const Yo=[zo`
display: flex;
border-bottom: 1px solid ${Fn.darkGray[400]};
cursor: pointer;
align-items: center;
padding: ${fo[1]} ${fo[2]};
gap: ${fo[2]};
font-size: ${Ho.xs};
color: ${Fn.gray[300]};
`];if(Go){const Xo=zo`
background: ${Fn.darkGray[500]};
`;Yo.push(Xo)}return Yo},matchIndicator:Go=>{const Yo=[zo`
flex: 0 0 auto;
width: ${fo[3]};
height: ${fo[3]};
background: ${Fn[Go][900]};
border: 1px solid ${Fn[Go][500]};
border-radius: ${Ao.radius.full};
transition: all 0.25s ease-out;
box-sizing: border-box;
`];if(Go==="gray"){const Xo=zo`
background: ${Fn.gray[700]};
border-color: ${Fn.gray[400]};
`;Yo.push(Xo)}return Yo},matchID:zo`
flex: 1;
line-height: ${Lo.xs};
`,ageTicker:Go=>{const Yo=[zo`
display: flex;
gap: ${fo[1]};
font-size: ${Ho.xs};
color: ${Fn.gray[400]};
font-variant-numeric: tabular-nums;
line-height: ${Lo.xs};
`];if(Go){const Xo=zo`
color: ${Fn.yellow[400]};
`;Yo.push(Xo)}return Yo},secondContainer:zo`
flex: 1 1 500px;
min-height: 40%;
max-height: 100%;
overflow: auto;
border-right: 1px solid ${Fn.gray[700]};
display: flex;
flex-direction: column;
`,thirdContainer:zo`
flex: 1 1 500px;
overflow: auto;
display: flex;
flex-direction: column;
height: 100%;
border-right: 1px solid ${Fn.gray[700]};
@media (max-width: 700px) {
border-top: 2px solid ${Fn.gray[700]};
}
`,fourthContainer:zo`
flex: 1 1 500px;
min-height: 40%;
max-height: 100%;
overflow: auto;
display: flex;
flex-direction: column;
`,routesContainer:zo`
overflow-x: auto;
overflow-y: visible;
`,routesRowContainer:(Go,Vo)=>{const Xo=[zo`
display: flex;
border-bottom: 1px solid ${Fn.darkGray[400]};
align-items: center;
padding: ${fo[1]} ${fo[2]};
gap: ${fo[2]};
font-size: ${Ho.xs};
color: ${Fn.gray[300]};
cursor: ${Vo?"pointer":"default"};
line-height: ${Lo.xs};
`];if(Go){const is=zo`
background: ${Fn.darkGray[500]};
`;Xo.push(is)}return Xo},routesRow:Go=>{const Yo=[zo`
flex: 1 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
font-size: ${Ho.xs};
line-height: ${Lo.xs};
`];if(!Go){const Xo=zo`
color: ${Fn.gray[400]};
`;Yo.push(Xo)}return Yo},routeParamInfo:zo`
color: ${Fn.gray[400]};
font-size: ${Ho.xs};
line-height: ${Lo.xs};
`,nestedRouteRow:Go=>zo`
margin-left: ${Go?0:fo[3.5]};
border-left: ${Go?"":`solid 1px ${Fn.gray[700]}`};
`,code:zo`
font-size: ${Ho.xs};
line-height: ${Lo.xs};
`,matchesContainer:zo`
flex: 1 1 auto;
overflow-y: auto;
`,cachedMatchesContainer:zo`
flex: 1 1 auto;
overflow-y: auto;
max-height: 50%;
`,maskedBadgeContainer:zo`
flex: 1;
justify-content: flex-end;
display: flex;
`,matchDetails:zo`
display: flex;
flex-direction: column;
padding: ${tokens.size[2]};
font-size: ${tokens.font.size.xs};
color: ${tokens.colors.gray[300]};
line-height: ${tokens.font.lineHeight.sm};
`,matchStatus:(Go,Vo)=>{const Xo=Vo&&Go==="success"?Vo==="beforeLoad"?"purple":"blue":{pending:"yellow",success:"green",error:"red",notFound:"purple",redirected:"gray"}[Go];return zo`
display: flex;
justify-content: center;
align-items: center;
height: 40px;
border-radius: ${tokens.border.radius.sm};
font-weight: ${tokens.font.weight.normal};
background-color: ${tokens.colors[Xo][900]}${tokens.alpha[90]};
color: ${tokens.colors[Xo][300]};
border: 1px solid ${tokens.colors[Xo][600]};
margin-bottom: ${tokens.size[2]};
transition: all 0.25s ease-out;
`},matchDetailsInfo:zo`
display: flex;
justify-content: flex-end;
flex: 1;
`,matchDetailsInfoLabel:zo`
display: flex;
`,mainCloseBtn:zo`
background: ${Fn.darkGray[700]};
padding: ${fo[1]} ${fo[2]} ${fo[1]} ${fo[1.5]};
border-radius: ${Ao.radius.md};
position: fixed;
z-index: 99999;
display: inline-flex;
width: fit-content;
cursor: pointer;
appearance: none;
border: 0;
gap: 8px;
align-items: center;
border: 1px solid ${Fn.gray[500]};
font-size: ${io.size.xs};
cursor: pointer;
transition: all 0.25s ease-out;
&:hover {
background: ${Fn.darkGray[500]};
}
`,mainCloseBtnPosition:Go=>zo`
${Go==="top-left"?`top: ${fo[2]}; left: ${fo[2]};`:""}
${Go==="top-right"?`top: ${fo[2]}; right: ${fo[2]};`:""}
${Go==="bottom-left"?`bottom: ${fo[2]}; left: ${fo[2]};`:""}
${Go==="bottom-right"?`bottom: ${fo[2]}; right: ${fo[2]};`:""}
`,mainCloseBtnAnimation:Go=>Go?zo`
opacity: 1;
pointer-events: auto;
visibility: visible;
`:zo`
opacity: 0;
pointer-events: none;
visibility: hidden;
`,routerLogoCloseButton:zo`
font-weight: ${io.weight.semibold};
font-size: ${io.size.xs};
background: linear-gradient(to right, #98f30c, #00f4a3);
background-clip: text;
-webkit-background-clip: text;
line-height: 1;
-webkit-text-fill-color: transparent;
white-space: nowrap;
`,mainCloseBtnDivider:zo`
width: 1px;
background: ${tokens.colors.gray[600]};
height: 100%;
border-radius: 999999px;
color: transparent;
`,mainCloseBtnIconContainer:zo`
position: relative;
width: ${fo[5]};
height: ${fo[5]};
background: pink;
border-radius: 999999px;
overflow: hidden;
`,mainCloseBtnIconOuter:zo`
width: ${fo[5]};
height: ${fo[5]};
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
filter: blur(3px) saturate(1.8) contrast(2);
`,mainCloseBtnIconInner:zo`
width: ${fo[4]};
height: ${fo[4]};
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
`,panelCloseBtn:zo`
position: absolute;
cursor: pointer;
z-index: 100001;
display: flex;
align-items: center;
justify-content: center;
outline: none;
background-color: ${Fn.darkGray[700]};
&:hover {
background-color: ${Fn.darkGray[500]};
}
top: 0;
right: ${fo[2]};
transform: translate(0, -100%);
border-right: ${Fn.darkGray[300]} 1px solid;
border-left: ${Fn.darkGray[300]} 1px solid;
border-top: ${Fn.darkGray[300]} 1px solid;
border-bottom: none;
border-radius: ${Ao.radius.sm} ${Ao.radius.sm} 0px 0px;
padding: ${fo[1]} ${fo[1.5]} ${fo[.5]} ${fo[1.5]};
&::after {
content: ' ';
position: absolute;
top: 100%;
left: -${fo[2.5]};
height: ${fo[1.5]};
width: calc(100% + ${fo[5]});
}
`,panelCloseBtnIcon:zo`
color: ${Fn.gray[400]};
width: ${fo[2]};
height: ${fo[2]};
`}};let _styles=null;function useStyles(){const Mn=React$1.useContext(ShadowDomTargetContext);return _styles||(_styles=stylesFactory(Mn),_styles)}function setRef(Mn,Fn){typeof Mn=="function"?Mn(Fn):Mn!=null&&(Mn.current=Fn)}function composeRefs(...Mn){return Fn=>Mn.forEach(io=>setRef(io,Fn))}function useComposedRefs(...Mn){return reactExports$1.useCallback(composeRefs(...Mn),Mn)}var Slot=reactExports$1.forwardRef((Mn,Fn)=>{const{children:io,...fo}=Mn,$o=reactExports$1.Children.toArray(io),mo=$o.find(isSlottable);if(mo){const Ao=mo.props.children,jo=$o.map(Lo=>Lo===mo?reactExports$1.Children.count(Ao)>1?reactExports$1.Children.only(null):reactExports$1.isValidElement(Ao)?Ao.props.children:null:Lo);return jsxRuntimeExports$1.jsx(SlotClone,{...fo,ref:Fn,children:reactExports$1.isValidElement(Ao)?reactExports$1.cloneElement(Ao,void 0,jo):null})}return jsxRuntimeExports$1.jsx(SlotClone,{...fo,ref:Fn,children:io})});Slot.displayName="Slot";var SlotClone=reactExports$1.forwardRef((Mn,Fn)=>{const{children:io,...fo}=Mn;if(reactExports$1.isValidElement(io)){const $o=getElementRef$1(io);return reactExports$1.cloneElement(io,{...mergeProps(fo,io.props),ref:Fn?composeRefs(Fn,$o):$o})}return reactExports$1.Children.count(io)>1?reactExports$1.Children.only(null):null});SlotClone.displayName="SlotClone";var Slottable=({children:Mn})=>jsxRuntimeExports$1.jsx(jsxRuntimeExports$1.Fragment,{children:Mn});function isSlottable(Mn){return reactExports$1.isValidElement(Mn)&&Mn.type===Slottable}function mergeProps(Mn,Fn){const io={...Fn};for(const fo in Fn){const $o=Mn[fo],mo=Fn[fo];/^on[A-Z]/.test(fo)?$o&&mo?io[fo]=(...jo)=>{mo(...jo),$o(...jo)}:$o&&(io[fo]=$o):fo==="style"?io[fo]={...$o,...mo}:fo==="className"&&(io[fo]=[$o,mo].filter(Boolean).join(" "))}return{...Mn,...io}}function getElementRef$1(Mn){var fo,$o;let Fn=(fo=Object.getOwnPropertyDescriptor(Mn.props,"ref"))==null?void 0:fo.get,io=Fn&&"isReactWarning"in Fn&&Fn.isReactWarning;return io?Mn.ref:(Fn=($o=Object.getOwnPropertyDescriptor(Mn,"ref"))==null?void 0:$o.get,io=Fn&&"isReactWarning"in Fn&&Fn.isReactWarning,io?Mn.props.ref:Mn.props.ref||Mn.ref)}function r$b(Mn){var Fn,io,fo="";if(typeof Mn=="string"||typeof Mn=="number")fo+=Mn;else if(typeof Mn=="object")if(Array.isArray(Mn))for(Fn=0;Fn<Mn.length;Fn++)Mn[Fn]&&(io=r$b(Mn[Fn]))&&(fo&&(fo+=" "),fo+=io);else for(Fn in Mn)Mn[Fn]&&(fo&&(fo+=" "),fo+=Fn);return fo}function clsx(){for(var Mn,Fn,io=0,fo="";io<arguments.length;)(Mn=arguments[io++])&&(Fn=r$b(Mn))&&(fo&&(fo+=" "),fo+=Fn);return fo}const falsyToString=Mn=>typeof Mn=="boolean"?"".concat(Mn):Mn===0?"0":Mn,cx=clsx,cva=(Mn,Fn)=>io=>{var fo;if((Fn==null?void 0:Fn.variants)==null)return cx(Mn,io==null?void 0:io.class,io==null?void 0:io.className);const{variants:$o,defaultVariants:mo}=Fn,Ao=Object.keys($o).map(Ho=>{const zo=io==null?void 0:io[Ho],Go=mo==null?void 0:mo[Ho];if(zo===null)return null;const Vo=falsyToString(zo)||falsyToString(Go);return $o[Ho][Vo]}),jo=io&&Object.entries(io).reduce((Ho,zo)=>{let[Go,Vo]=zo;return Vo===void 0||(Ho[Go]=Vo),Ho},{}),Lo=Fn==null||(fo=Fn.compoundVariants)===null||fo===void 0?void 0:fo.reduce((Ho,zo)=>{let{class:Go,className:Vo,...Yo}=zo;return Object.entries(Yo).every(Xo=>{let[is,yl]=Xo;return Array.isArray(yl)?yl.includes({...mo,...jo}[is]):{...mo,...jo}[is]===yl})?[...Ho,Go,Vo]:Ho},[]);return cx(Mn,Ao,Lo,io==null?void 0:io.class,io==null?void 0:io.className)},CLASS_PART_SEPARATOR="-",createClassGroupUtils=Mn=>{const Fn=createClassMap(Mn),{conflictingClassGroups:io,conflictingClassGroupModifiers:fo}=Mn;return{getClassGroupId:Ao=>{const jo=Ao.split(CLASS_PART_SEPARATOR);return jo[0]===""&&jo.length!==1&&jo.shift(),getGroupRecursive(jo,Fn)||getGroupIdForArbitraryProperty(Ao)},getConflictingClassGroupIds:(Ao,jo)=>{const Lo=io[Ao]||[];return jo&&fo[Ao]?[...Lo,...fo[Ao]]:Lo}}},getGroupRecursive=(Mn,Fn)=>{var Ao;if(Mn.length===0)return Fn.classGroupId;const io=Mn[0],fo=Fn.nextPart.get(io),$o=fo?getGroupRecursive(Mn.slice(1),fo):void 0;if($o)return $o;if(Fn.validators.length===0)return;const mo=Mn.join(CLASS_PART_SEPARATOR);return(Ao=Fn.validators.find(({validator:jo})=>jo(mo)))==null?void 0:Ao.classGroupId},arbitraryPropertyRegex=/^\[(.+)\]$/,getGroupIdForArbitraryProperty=Mn=>{if(arbitraryPropertyRegex.test(Mn)){const Fn=arbitraryPropertyRegex.exec(Mn)[1],io=Fn==null?void 0:Fn.substring(0,Fn.indexOf(":"));if(io)return"arbitrary.."+io}},createClassMap=Mn=>{const{theme:Fn,prefix:io}=Mn,fo={nextPart:new Map,validators:[]};return getPrefixedClassGroupEntries(Object.entries(Mn.classGroups),io).forEach(([mo,Ao])=>{processClassesRecursively(Ao,fo,mo,Fn)}),fo},processClassesRecursively=(Mn,Fn,io,fo)=>{Mn.forEach($o=>{if(typeof $o=="string"){const mo=$o===""?Fn:getPart(Fn,$o);mo.classGroupId=io;return}if(typeof $o=="function"){if(isThemeGetter($o)){processClassesRecursively($o(fo),Fn,io,fo);return}Fn.validators.push({validator:$o,classGroupId:io});return}Object.entries($o).forEach(([mo,Ao])=>{processClassesRecursively(Ao,getPart(Fn,mo),io,fo)})})},getPart=(Mn,Fn)=>{let io=Mn;return Fn.split(CLASS_PART_SEPARATOR).forEach(fo=>{io.nextPart.has(fo)||io.nextPart.set(fo,{nextPart:new Map,validators:[]}),io=io.nextPart.get(fo)}),io},isThemeGetter=Mn=>Mn.isThemeGetter,getPrefixedClassGroupEntries=(Mn,Fn)=>Fn?Mn.map(([io,fo])=>{const $o=fo.map(mo=>typeof mo=="string"?Fn+mo:typeof mo=="object"?Object.fromEntries(Object.entries(mo).map(([Ao,jo])=>[Fn+Ao,jo])):mo);return[io,$o]}):Mn,createLruCache=Mn=>{if(Mn<1)return{get:()=>{},set:()=>{}};let Fn=0,io=new Map,fo=new Map;const $o=(mo,Ao)=>{io.set(mo,Ao),Fn++,Fn>Mn&&(Fn=0,fo=io,io=new Map)};return{get(mo){let Ao=io.get(mo);if(Ao!==void 0)return Ao;if((Ao=fo.get(mo))!==void 0)return $o(mo,Ao),Ao},set(mo,Ao){io.has(mo)?io.set(mo,Ao):$o(mo,Ao)}}},IMPORTANT_MODIFIER="!",createParseClassName=Mn=>{const{separator:Fn,experimentalParseClassName:io}=Mn,fo=Fn.length===1,$o=Fn[0],mo=Fn.length,Ao=jo=>{const Lo=[];let Ho=0,zo=0,Go;for(let yl=0;yl<jo.length;yl++){let us=jo[yl];if(Ho===0){if(us===$o&&(fo||jo.slice(yl,yl+mo)===Fn)){Lo.push(jo.slice(zo,yl)),zo=yl+mo;continue}if(us==="/"){Go=yl;continue}}us==="["?Ho++:us==="]"&&Ho--}const Vo=Lo.length===0?jo:jo.substring(zo),Yo=Vo.startsWith(IMPORTANT_MODIFIER),Xo=Yo?Vo.substring(1):Vo,is=Go&&Go>zo?Go-zo:void 0;return{modifiers:Lo,hasImportantModifier:Yo,baseClassName:Xo,maybePostfixModifierPosition:is}};return io?jo=>io({className:jo,parseClassName:Ao}):Ao},sortModifiers=Mn=>{if(Mn.length<=1)return Mn;const Fn=[];let io=[];return Mn.forEach(fo=>{fo[0]==="["?(Fn.push(...io.sort(),fo),io=[]):io.push(fo)}),Fn.push(...io.sort()),Fn},createConfigUtils=Mn=>({cache:createLruCache(Mn.cacheSize),parseClassName:createParseClassName(Mn),...createClassGroupUtils(Mn)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=(Mn,Fn)=>{const{parseClassName:io,getClassGroupId:fo,getConflictingClassGroupIds:$o}=Fn,mo=[],Ao=Mn.trim().split(SPLIT_CLASSES_REGEX);let jo="";for(let Lo=Ao.length-1;Lo>=0;Lo-=1){const Ho=Ao[Lo],{modifiers:zo,hasImportantModifier:Go,baseClassName:Vo,maybePostfixModifierPosition:Yo}=io(Ho);let Xo=!!Yo,is=fo(Xo?Vo.substring(0,Yo):Vo);if(!is){if(!Xo){jo=Ho+(jo.length>0?" "+jo:jo);continue}if(is=fo(Vo),!is){jo=Ho+(jo.length>0?" "+jo:jo);continue}Xo=!1}const yl=sortModifiers(zo).join(":"),us=Go?yl+IMPORTANT_MODIFIER:yl,hs=us+is;if(mo.includes(hs))continue;mo.push(hs);const _l=$o(is,Xo);for(let xl=0;xl<_l.length;++xl){const Il=_l[xl];mo.push(us+Il)}jo=Ho+(jo.length>0?" "+jo:jo)}return jo};function twJoin(){let Mn=0,Fn,io,fo="";for(;Mn<arguments.length;)(Fn=arguments[Mn++])&&(io=toValue(Fn))&&(fo&&(fo+=" "),fo+=io);return fo}const toValue=Mn=>{if(typeof Mn=="string")return Mn;let Fn,io="";for(let fo=0;fo<Mn.length;fo++)Mn[fo]&&(Fn=toValue(Mn[fo]))&&(io&&(io+=" "),io+=Fn);return io};function createTailwindMerge(Mn,...Fn){let io,fo,$o,mo=Ao;function Ao(Lo){const Ho=Fn.reduce((zo,Go)=>Go(zo),Mn());return io=createConfigUtils(Ho),fo=io.cache.get,$o=io.cache.set,mo=jo,jo(Lo)}function jo(Lo){const Ho=fo(Lo);if(Ho)return Ho;const zo=mergeClassList(Lo,io);return $o(Lo,zo),zo}return function(){return mo(twJoin.apply(null,arguments))}}const fromTheme=Mn=>{const Fn=io=>io[Mn]||[];return Fn.isThemeGetter=!0,Fn},arbitraryValueRegex=/^\[(?:([a-z-]+):)?(.+)\]$/i,fractionRegex=/^\d+\/\d+$/,stringLengths=new Set(["px","full","screen"]),tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isLength=Mn=>isNumber$2(Mn)||stringLengths.has(Mn)||fractionRegex.test(Mn),isArbitraryLength=Mn=>getIsArbitraryValue(Mn,"length",isLengthOnly),isNumber$2=Mn=>!!Mn&&!Number.isNaN(Number(Mn)),isArbitraryNumber=Mn=>getIsArbitraryValue(Mn,"number",isNumber$2),isInteger=Mn=>!!Mn&&Number.isInteger(Number(Mn)),isPercent=Mn=>Mn.endsWith("%")&&isNumber$2(Mn.slice(0,-1)),isArbitraryValue=Mn=>arbitraryValueRegex.test(Mn),isTshirtSize=Mn=>tshirtUnitRegex.test(Mn),sizeLabels=new Set(["length","size","percentage"]),isArbitrarySize=Mn=>getIsArbitraryValue(Mn,sizeLabels,isNever),isArbitraryPosition=Mn=>getIsArbitraryValue(Mn,"position",isNever),imageLabels=new Set(["image","url"]),isArbitraryImage=Mn=>getIsArbitraryValue(Mn,imageLabels,isImage),isArbitraryShadow=Mn=>getIsArbitraryValue(Mn,"",isShadow),isAny=()=>!0,getIsArbitraryValue=(Mn,Fn,io)=>{const fo=arbitraryValueRegex.exec(Mn);return fo?fo[1]?typeof Fn=="string"?fo[1]===Fn:Fn.has(fo[1]):io(fo[2]):!1},isLengthOnly=Mn=>lengthUnitRegex.test(Mn)&&!colorFunctionRegex.test(Mn),isNever=()=>!1,isShadow=Mn=>shadowRegex.test(Mn),isImage=Mn=>imageRegex.test(Mn),getDefaultConfig=()=>{const Mn=fromTheme("colors"),Fn=fromTheme("spacing"),io=fromTheme("blur"),fo=fromTheme("brightness"),$o=fromTheme("borderColor"),mo=fromTheme("borderRadius"),Ao=fromTheme("borderSpacing"),jo=fromTheme("borderWidth"),Lo=fromTheme("contrast"),Ho=fromTheme("grayscale"),zo=fromTheme("hueRotate"),Go=fromTheme("invert"),Vo=fromTheme("gap"),Yo=fromTheme("gradientColorStops"),Xo=fromTheme("gradientColorStopPositions"),is=fromTheme("inset"),yl=fromTheme("margin"),us=fromTheme("opacity"),hs=fromTheme("padding"),_l=fromTheme("saturate"),xl=fromTheme("scale"),Il=fromTheme("sepia"),Ol=fromTheme("skew"),Tl=fromTheme("space"),Cl=fromTheme("translate"),Nl=()=>["auto","contain","none"],Wl=()=>["auto","hidden","clip","visible","scroll"],Dl=()=>["auto",isArbitraryValue,Fn],Rl=()=>[isArbitraryValue,Fn],Qo=()=>["",isLength,isArbitraryLength],Jo=()=>["auto",isNumber$2,isArbitraryValue],rs=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ps=()=>["solid","dashed","dotted","double","none"],_c=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$l=()=>["start","end","center","between","around","evenly","stretch"],El=()=>["","0",isArbitraryValue],ds=()=>["auto","avoid","all","avoid-page","page","left","right","column"],os=()=>[isNumber$2,isArbitraryValue];return{cacheSize:500,separator:":",theme:{colors:[isAny],spacing:[isLength,isArbitraryLength],blur:["none","",isTshirtSize,isArbitraryValue],brightness:os(),borderColor:[Mn],borderRadius:["none","","full",isTshirtSize,isArbitraryValue],borderSpacing:Rl(),borderWidth:Qo(),contrast:os(),grayscale:El(),hueRotate:os(),invert:El(),gap:Rl(),gradientColorStops:[Mn],gradientColorStopPositions:[isPercent,isArbitraryLength],inset:Dl(),margin:Dl(),opacity:os(),padding:Rl(),saturate:os(),scale:os(),sepia:El(),skew:os(),space:Rl(),translate:Rl()},classGroups:{aspect:[{aspect:["auto","square","video",isArbitraryValue]}],container:["container"],columns:[{columns:[isTshirtSize]}],"break-after":[{"break-after":ds()}],"break-before":[{"break-before":ds()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...rs(),isArbitraryValue]}],overflow:[{overflow:Wl()}],"overflow-x":[{"overflow-x":Wl()}],"overflow-y":[{"overflow-y":Wl()}],overscroll:[{overscroll:Nl()}],"overscroll-x":[{"overscroll-x":Nl()}],"overscroll-y":[{"overscroll-y":Nl()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[is]}],"inset-x":[{"inset-x":[is]}],"inset-y":[{"inset-y":[is]}],start:[{start:[is]}],end:[{end:[is]}],top:[{top:[is]}],right:[{right:[is]}],bottom:[{bottom:[is]}],left:[{left:[is]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",isInteger,isArbitraryValue]}],basis:[{basis:Dl()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",isArbitraryValue]}],grow:[{grow:El()}],shrink:[{shrink:El()}],order:[{order:["first","last","none",isInteger,isArbitraryValue]}],"grid-cols":[{"grid-cols":[isAny]}],"col-start-end":[{col:["auto",{span:["full",isInteger,isArbitraryValue]},isArbitraryValue]}],"col-start":[{"col-start":Jo()}],"col-end":[{"col-end":Jo()}],"grid-rows":[{"grid-rows":[isAny]}],"row-start-end":[{row:["auto",{span:[isInteger,isArbitraryValue]},isArbitraryValue]}],"row-start":[{"row-start":Jo()}],"row-end":[{"row-end":Jo()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",isArbitraryValue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",isArbitraryValue]}],gap:[{gap:[Vo]}],"gap-x":[{"gap-x":[Vo]}],"gap-y":[{"gap-y":[Vo]}],"justify-content":[{justify:["normal",...$l()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...$l(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...$l(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[hs]}],px:[{px:[hs]}],py:[{py:[hs]}],ps:[{ps:[hs]}],pe:[{pe:[hs]}],pt:[{pt:[hs]}],pr:[{pr:[hs]}],pb:[{pb:[hs]}],pl:[{pl:[hs]}],m:[{m:[yl]}],mx:[{mx:[yl]}],my:[{my:[yl]}],ms:[{ms:[yl]}],me:[{me:[yl]}],mt:[{mt:[yl]}],mr:[{mr:[yl]}],mb:[{mb:[yl]}],ml:[{ml:[yl]}],"space-x":[{"space-x":[Tl]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Tl]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",isArbitraryValue,Fn]}],"min-w":[{"min-w":[isArbitraryValue,Fn,"min","max","fit"]}],"max-w":[{"max-w":[isArbitraryValue,Fn,"none","full","min","max","fit","prose",{screen:[isTshirtSize]},isTshirtSize]}],h:[{h:[isArbitraryValue,Fn,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[isArbitraryValue,Fn,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[isArbitraryValue,Fn,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[isArbitraryValue,Fn,"auto","min","max","fit"]}],"font-size":[{text:["base",isTshirtSize,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",isArbitraryNumber]}],"font-family":[{font:[isAny]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",isArbitraryValue]}],"line-clamp":[{"line-clamp":["none",isNumber$2,isArbitraryNumber]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",isLength,isArbitraryValue]}],"list-image":[{"list-image":["none",isArbitraryValue]}],"list-style-type":[{list:["none","disc","decimal",isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[Mn]}],"placeholder-opacity":[{"placeholder-opacity":[us]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[Mn]}],"text-opacity":[{"text-opacity":[us]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ps(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",isLength,isArbitraryLength]}],"underline-offset":[{"underline-offset":["auto",isLength,isArbitraryValue]}],"text-decoration-color":[{decoration:[Mn]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Rl()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[us]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...rs(),isArbitraryPosition]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",isArbitrarySize]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},isArbitraryImage]}],"bg-color":[{bg:[Mn]}],"gradient-from-pos":[{from:[Xo]}],"gradient-via-pos":[{via:[Xo]}],"gradient-to-pos":[{to:[Xo]}],"gradient-from":[{from:[Yo]}],"gradient-via":[{via:[Yo]}],"gradient-to":[{to:[Yo]}],rounded:[{rounded:[mo]}],"rounded-s":[{"rounded-s":[mo]}],"rounded-e":[{"rounded-e":[mo]}],"rounded-t":[{"rounded-t":[mo]}],"rounded-r":[{"rounded-r":[mo]}],"rounded-b":[{"rounded-b":[mo]}],"rounded-l":[{"rounded-l":[mo]}],"rounded-ss":[{"rounded-ss":[mo]}],"rounded-se":[{"rounded-se":[mo]}],"rounded-ee":[{"rounded-ee":[mo]}],"rounded-es":[{"rounded-es":[mo]}],"rounded-tl":[{"rounded-tl":[mo]}],"rounded-tr":[{"rounded-tr":[mo]}],"rounded-br":[{"rounded-br":[mo]}],"rounded-bl":[{"rounded-bl":[mo]}],"border-w":[{border:[jo]}],"border-w-x":[{"border-x":[jo]}],"border-w-y":[{"border-y":[jo]}],"border-w-s":[{"border-s":[jo]}],"border-w-e":[{"border-e":[jo]}],"border-w-t":[{"border-t":[jo]}],"border-w-r":[{"border-r":[jo]}],"border-w-b":[{"border-b":[jo]}],"border-w-l":[{"border-l":[jo]}],"border-opacity":[{"border-opacity":[us]}],"border-style":[{border:[...ps(),"hidden"]}],"divide-x":[{"divide-x":[jo]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[jo]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[us]}],"divide-style":[{divide:ps()}],"border-color":[{border:[$o]}],"border-color-x":[{"border-x":[$o]}],"border-color-y":[{"border-y":[$o]}],"border-color-s":[{"border-s":[$o]}],"border-color-e":[{"border-e":[$o]}],"border-color-t":[{"border-t":[$o]}],"border-color-r":[{"border-r":[$o]}],"border-color-b":[{"border-b":[$o]}],"border-color-l":[{"border-l":[$o]}],"divide-color":[{divide:[$o]}],"outline-style":[{outline:["",...ps()]}],"outline-offset":[{"outline-offset":[isLength,isArbitraryValue]}],"outline-w":[{outline:[isLength,isArbitraryLength]}],"outline-color":[{outline:[Mn]}],"ring-w":[{ring:Qo()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[Mn]}],"ring-opacity":[{"ring-opacity":[us]}],"ring-offset-w":[{"ring-offset":[isLength,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":[Mn]}],shadow:[{shadow:["","inner","none",isTshirtSize,isArbitraryShadow]}],"shadow-color":[{shadow:[isAny]}],opacity:[{opacity:[us]}],"mix-blend":[{"mix-blend":[..._c(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":_c()}],filter:[{filter:["","none"]}],blur:[{blur:[io]}],brightness:[{brightness:[fo]}],contrast:[{contrast:[Lo]}],"drop-shadow":[{"drop-shadow":["","none",isTshirtSize,isArbitraryValue]}],grayscale:[{grayscale:[Ho]}],"hue-rotate":[{"hue-rotate":[zo]}],invert:[{invert:[Go]}],saturate:[{saturate:[_l]}],sepia:[{sepia:[Il]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[io]}],"backdrop-brightness":[{"backdrop-brightness":[fo]}],"backdrop-contrast":[{"backdrop-contrast":[Lo]}],"backdrop-grayscale":[{"backdrop-grayscale":[Ho]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[zo]}],"backdrop-invert":[{"backdrop-invert":[Go]}],"backdrop-opacity":[{"backdrop-opacity":[us]}],"backdrop-saturate":[{"backdrop-saturate":[_l]}],"backdrop-sepia":[{"backdrop-sepia":[Il]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[Ao]}],"border-spacing-x":[{"border-spacing-x":[Ao]}],"border-spacing-y":[{"border-spacing-y":[Ao]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",isArbitraryValue]}],duration:[{duration:os()}],ease:[{ease:["linear","in","out","in-out",isArbitraryValue]}],delay:[{delay:os()}],animate:[{animate:["none","spin","ping","pulse","bounce",isArbitraryValue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[xl]}],"scale-x":[{"scale-x":[xl]}],"scale-y":[{"scale-y":[xl]}],rotate:[{rotate:[isInteger,isArbitraryValue]}],"translate-x":[{"translate-x":[Cl]}],"translate-y":[{"translate-y":[Cl]}],"skew-x":[{"skew-x":[Ol]}],"skew-y":[{"skew-y":[Ol]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",isArbitraryValue]}],accent:[{accent:["auto",Mn]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryValue]}],"caret-color":[{caret:[Mn]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Rl()}],"scroll-mx":[{"scroll-mx":Rl()}],"scroll-my":[{"scroll-my":Rl()}],"scroll-ms":[{"scroll-ms":Rl()}],"scroll-me":[{"scroll-me":Rl()}],"scroll-mt":[{"scroll-mt":Rl()}],"scroll-mr":[{"scroll-mr":Rl()}],"scroll-mb":[{"scroll-mb":Rl()}],"scroll-ml":[{"scroll-ml":Rl()}],"scroll-p":[{"scroll-p":Rl()}],"scroll-px":[{"scroll-px":Rl()}],"scroll-py":[{"scroll-py":Rl()}],"scroll-ps":[{"scroll-ps":Rl()}],"scroll-pe":[{"scroll-pe":Rl()}],"scroll-pt":[{"scroll-pt":Rl()}],"scroll-pr":[{"scroll-pr":Rl()}],"scroll-pb":[{"scroll-pb":Rl()}],"scroll-pl":[{"scroll-pl":Rl()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryValue]}],fill:[{fill:[Mn,"none"]}],"stroke-w":[{stroke:[isLength,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:[Mn,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},twMerge=createTailwindMerge(getDefaultConfig);function cn$1(...Mn){return twMerge(clsx$1(Mn))}const buttonVariants=cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Button=reactExports$1.forwardRef(({className:Mn,variant:Fn,size:io,asChild:fo=!1,...$o},mo)=>{const Ao=fo?Slot:"button";return jsxRuntimeExports$1.jsx(Ao,{className:cn$1(buttonVariants({variant:Fn,size:io,className:Mn})),ref:mo,...$o})});Button.displayName="Button";/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const toKebabCase=Mn=>Mn.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mergeClasses=(...Mn)=>Mn.filter((Fn,io,fo)=>!!Fn&&fo.indexOf(Fn)===io).join(" ");/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var defaultAttributes={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Icon=reactExports$1.forwardRef(({color:Mn="currentColor",size:Fn=24,strokeWidth:io=2,absoluteStrokeWidth:fo,className:$o="",children:mo,iconNode:Ao,...jo},Lo)=>reactExports$1.createElement("svg",{ref:Lo,...defaultAttributes,width:Fn,height:Fn,stroke:Mn,strokeWidth:fo?Number(io)*24/Number(Fn):io,className:mergeClasses("lucide",$o),...jo},[...Ao.map(([Ho,zo])=>reactExports$1.createElement(Ho,zo)),...Array.isArray(mo)?mo:[mo]]));/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const createLucideIcon=(Mn,Fn)=>{const io=reactExports$1.forwardRef(({className:fo,...$o},mo)=>reactExports$1.createElement(Icon,{ref:mo,iconNode:Fn,className:mergeClasses(`lucide-${toKebabCase(Mn)}`,fo),...$o}));return io.displayName=`${Mn}`,io};/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Moon=createLucideIcon("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
* @license lucide-react v0.453.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Sun=createLucideIcon("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);function composeEventHandlers(Mn,Fn,{checkForDefaultPrevented:io=!0}={}){return function($o){if(Mn==null||Mn($o),io===!1||!$o.defaultPrevented)return Fn==null?void 0:Fn($o)}}function createContextScope$1(Mn,Fn=[]){let io=[];function fo(mo,Ao){const jo=reactExports$1.createContext(Ao),Lo=io.length;io=[...io,Ao];const Ho=Go=>{var us;const{scope:Vo,children:Yo,...Xo}=Go,is=((us=Vo==null?void 0:Vo[Mn])==null?void 0:us[Lo])||jo,yl=reactExports$1.useMemo(()=>Xo,Object.values(Xo));return jsxRuntimeExports$1.jsx(is.Provider,{value:yl,children:Yo})};Ho.displayName=mo+"Provider";function zo(Go,Vo){var is;const Yo=((is=Vo==null?void 0:Vo[Mn])==null?void 0:is[Lo])||jo,Xo=reactExports$1.useContext(Yo);if(Xo)return Xo;if(Ao!==void 0)return Ao;throw new Error(`\`${Go}\` must be used within \`${mo}\``)}return[Ho,zo]}const $o=()=>{const mo=io.map(Ao=>reactExports$1.createContext(Ao));return function(jo){const Lo=(jo==null?void 0:jo[Mn])||mo;return reactExports$1.useMemo(()=>({[`__scope${Mn}`]:{...jo,[Mn]:Lo}}),[jo,Lo])}};return $o.scopeName=Mn,[fo,composeContextScopes$1($o,...Fn)]}function composeContextScopes$1(...Mn){const Fn=Mn[0];if(Mn.length===1)return Fn;const io=()=>{const fo=Mn.map($o=>({useScope:$o(),scopeName:$o.scopeName}));return function(mo){const Ao=fo.reduce((jo,{useScope:Lo,scopeName:Ho})=>{const Go=Lo(mo)[`__scope${Ho}`];return{...jo,...Go}},{});return reactExports$1.useMemo(()=>({[`__scope${Fn.scopeName}`]:Ao}),[Ao])}};return io.scopeName=Fn.scopeName,io}function useCallbackRef$1(Mn){const Fn=reactExports$1.useRef(Mn);return reactExports$1.useEffect(()=>{Fn.current=Mn}),reactExports$1.useMemo(()=>(...io)=>{var fo;return(fo=Fn.current)==null?void 0:fo.call(Fn,...io)},[])}function useControllableState({prop:Mn,defaultProp:Fn,onChange:io=()=>{}}){const[fo,$o]=useUncontrolledState({defaultProp:Fn,onChange:io}),mo=Mn!==void 0,Ao=mo?Mn:fo,jo=useCallbackRef$1(io),Lo=reactExports$1.useCallback(Ho=>{if(mo){const Go=typeof Ho=="function"?Ho(Mn):Ho;Go!==Mn&&jo(Go)}else $o(Ho)},[mo,Mn,$o,jo]);return[Ao,Lo]}function useUncontrolledState({defaultProp:Mn,onChange:Fn}){const io=reactExports$1.useState(Mn),[fo]=io,$o=reactExports$1.useRef(fo),mo=useCallbackRef$1(Fn);return reactExports$1.useEffect(()=>{$o.current!==fo&&(mo(fo),$o.current=fo)},[fo,$o,mo]),io}var NODES=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Primitive=NODES.reduce((Mn,Fn)=>{const io=reactExports$1.forwardRef((fo,$o)=>{const{asChild:mo,...Ao}=fo,jo=mo?Slot:Fn;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),jsxRuntimeExports$1.jsx(jo,{...Ao,ref:$o})});return io.displayName=`Primitive.${Fn}`,{...Mn,[Fn]:io}},{});function dispatchDiscreteCustomEvent(Mn,Fn){Mn&&reactDomExports$1.flushSync(()=>Mn.dispatchEvent(Fn))}function createContextScope(Mn,Fn=[]){let io=[];function fo(mo,Ao){const jo=reactExports$1.createContext(Ao),Lo=io.length;io=[...io,Ao];function Ho(Go){const{scope:Vo,children:Yo,...Xo}=Go,is=(Vo==null?void 0:Vo[Mn][Lo])||jo,yl=reactExports$1.useMemo(()=>Xo,Object.values(Xo));return jsxRuntimeExports$1.jsx(is.Provider,{value:yl,children:Yo})}function zo(Go,Vo){const Yo=(Vo==null?void 0:Vo[Mn][Lo])||jo,Xo=reactExports$1.useContext(Yo);if(Xo)return Xo;if(Ao!==void 0)return Ao;throw new Error(`\`${Go}\` must be used within \`${mo}\``)}return Ho.displayName=mo+"Provider",[Ho,zo]}const $o=()=>{const mo=io.map(Ao=>reactExports$1.createContext(Ao));return function(jo){const Lo=(jo==null?void 0:jo[Mn])||mo;return reactExports$1.useMemo(()=>({[`__scope${Mn}`]:{...jo,[Mn]:Lo}}),[jo,Lo])}};return $o.scopeName=Mn,[fo,composeContextScopes($o,...Fn)]}function composeContextScopes(...Mn){const Fn=Mn[0];if(Mn.length===1)return Fn;const io=()=>{const fo=Mn.map($o=>({useScope:$o(),scopeName:$o.scopeName}));return function(mo){const Ao=fo.reduce((jo,{useScope:Lo,scopeName:Ho})=>{const Go=Lo(mo)[`__scope${Ho}`];return{...jo,...Go}},{});return reactExports$1.useMemo(()=>({[`__scope${Fn.scopeName}`]:Ao}),[Ao])}};return io.scopeName=Fn.scopeName,io}function createCollection(Mn){const Fn=Mn+"CollectionProvider",[io,fo]=createContextScope(Fn),[$o,mo]=io(Fn,{collectionRef:{current:null},itemMap:new Map}),Ao=Yo=>{const{scope:Xo,children:is}=Yo,yl=React$1.useRef(null),us=React$1.useRef(new Map).current;return jsxRuntimeExports$1.jsx($o,{scope:Xo,itemMap:us,collectionRef:yl,children:is})};Ao.displayName=Fn;const jo=Mn+"CollectionSlot",Lo=React$1.forwardRef((Yo,Xo)=>{const{scope:is,children:yl}=Yo,us=mo(jo,is),hs=useComposedRefs(Xo,us.collectionRef);return jsxRuntimeExports$1.jsx(Slot,{ref:hs,children:yl})});Lo.displayName=jo;const Ho=Mn+"CollectionItemSlot",zo="data-radix-collection-item",Go=React$1.forwardRef((Yo,Xo)=>{const{scope:is,children:yl,...us}=Yo,hs=React$1.useRef(null),_l=useComposedRefs(Xo,hs),xl=mo(Ho,is);return React$1.useEffect(()=>(xl.itemMap.set(hs,{ref:hs,...us}),()=>void xl.itemMap.delete(hs))),jsxRuntimeExports$1.jsx(Slot,{[zo]:"",ref:_l,children:yl})});Go.displayName=Ho;function Vo(Yo){const Xo=mo(Mn+"CollectionConsumer",Yo);return React$1.useCallback(()=>{const yl=Xo.collectionRef.current;if(!yl)return[];const us=Array.from(yl.querySelectorAll(`[${zo}]`));return Array.from(Xo.itemMap.values()).sort((xl,Il)=>us.indexOf(xl.ref.current)-us.indexOf(Il.ref.current))},[Xo.collectionRef,Xo.itemMap])}return[{Provider:Ao,Slot:Lo,ItemSlot:Go},Vo,fo]}var DirectionContext=reactExports$1.createContext(void 0);function useDirection(Mn){const Fn=reactExports$1.useContext(DirectionContext);return Mn||Fn||"ltr"}function useEscapeKeydown(Mn,Fn=globalThis==null?void 0:globalThis.document){const io=useCallbackRef$1(Mn);reactExports$1.useEffect(()=>{const fo=$o=>{$o.key==="Escape"&&io($o)};return Fn.addEventListener("keydown",fo,{capture:!0}),()=>Fn.removeEventListener("keydown",fo,{capture:!0})},[io,Fn])}var DISMISSABLE_LAYER_NAME="DismissableLayer",CONTEXT_UPDATE="dismissableLayer.update",POINTER_DOWN_OUTSIDE="dismissableLayer.pointerDownOutside",FOCUS_OUTSIDE="dismissableLayer.focusOutside",originalBodyPointerEvents,DismissableLayerContext=reactExports$1.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),DismissableLayer=reactExports$1.forwardRef((Mn,Fn)=>{const{disableOutsidePointerEvents:io=!1,onEscapeKeyDown:fo,onPointerDownOutside:$o,onFocusOutside:mo,onInteractOutside:Ao,onDismiss:jo,...Lo}=Mn,Ho=reactExports$1.useContext(DismissableLayerContext),[zo,Go]=reactExports$1.useState(null),Vo=(zo==null?void 0:zo.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,Yo]=reactExports$1.useState({}),Xo=useComposedRefs(Fn,Tl=>Go(Tl)),is=Array.from(Ho.layers),[yl]=[...Ho.layersWithOutsidePointerEventsDisabled].slice(-1),us=is.indexOf(yl),hs=zo?is.indexOf(zo):-1,_l=Ho.layersWithOutsidePointerEventsDisabled.size>0,xl=hs>=us,Il=usePointerDownOutside(Tl=>{const Cl=Tl.target,Nl=[...Ho.branches].some(Wl=>Wl.contains(Cl));!xl||Nl||($o==null||$o(Tl),Ao==null||Ao(Tl),Tl.defaultPrevented||jo==null||jo())},Vo),Ol=useFocusOutside(Tl=>{const Cl=Tl.target;[...Ho.branches].some(Wl=>Wl.contains(Cl))||(mo==null||mo(Tl),Ao==null||Ao(Tl),Tl.defaultPrevented||jo==null||jo())},Vo);return useEscapeKeydown(Tl=>{hs===Ho.layers.size-1&&(fo==null||fo(Tl),!Tl.defaultPrevented&&jo&&(Tl.preventDefault(),jo()))},Vo),reactExports$1.useEffect(()=>{if(zo)return io&&(Ho.layersWithOutsidePointerEventsDisabled.size===0&&(originalBodyPointerEvents=Vo.body.style.pointerEvents,Vo.body.style.pointerEvents="none"),Ho.layersWithOutsidePointerEventsDisabled.add(zo)),Ho.layers.add(zo),dispatchUpdate(),()=>{io&&Ho.layersWithOutsidePointerEventsDisabled.size===1&&(Vo.body.style.pointerEvents=originalBodyPointerEvents)}},[zo,Vo,io,Ho]),reactExports$1.useEffect(()=>()=>{zo&&(Ho.layers.delete(zo),Ho.layersWithOutsidePointerEventsDisabled.delete(zo),dispatchUpdate())},[zo,Ho]),reactExports$1.useEffect(()=>{const Tl=()=>Yo({});return document.addEventListener(CONTEXT_UPDATE,Tl),()=>document.removeEventListener(CONTEXT_UPDATE,Tl)},[]),jsxRuntimeExports$1.jsx(Primitive.div,{...Lo,ref:Xo,style:{pointerEvents:_l?xl?"auto":"none":void 0,...Mn.style},onFocusCapture:composeEventHandlers(Mn.onFocusCapture,Ol.onFocusCapture),onBlurCapture:composeEventHandlers(Mn.onBlurCapture,Ol.onBlurCapture),onPointerDownCapture:composeEventHandlers(Mn.onPointerDownCapture,Il.onPointerDownCapture)})});DismissableLayer.displayName=DISMISSABLE_LAYER_NAME;var BRANCH_NAME="DismissableLayerBranch",DismissableLayerBranch=reactExports$1.forwardRef((Mn,Fn)=>{const io=reactExports$1.useContext(DismissableLayerContext),fo=reactExports$1.useRef(null),$o=useComposedRefs(Fn,fo);return reactExports$1.useEffect(()=>{const mo=fo.current;if(mo)return io.branches.add(mo),()=>{io.branches.delete(mo)}},[io.branches]),jsxRuntimeExports$1.jsx(Primitive.div,{...Mn,ref:$o})});DismissableLayerBranch.displayName=BRANCH_NAME;function usePointerDownOutside(Mn,Fn=globalThis==null?void 0:globalThis.document){const io=useCallbackRef$1(Mn),fo=reactExports$1.useRef(!1),$o=reactExports$1.useRef(()=>{});return reactExports$1.useEffect(()=>{const mo=jo=>{if(jo.target&&!fo.current){let Lo=function(){handleAndDispatchCustomEvent(POINTER_DOWN_OUTSIDE,io,Ho,{discrete:!0})};const Ho={originalEvent:jo};jo.pointerType==="touch"?(Fn.removeEventListener("click",$o.current),$o.current=Lo,Fn.addEventListener("click",$o.current,{once:!0})):Lo()}else Fn.removeEventListener("click",$o.current);fo.current=!1},Ao=window.setTimeout(()=>{Fn.addEventListener("pointerdown",mo)},0);return()=>{window.clearTimeout(Ao),Fn.removeEventListener("pointerdown",mo),Fn.removeEventListener("click",$o.current)}},[Fn,io]),{onPointerDownCapture:()=>fo.current=!0}}function useFocusOutside(Mn,Fn=globalThis==null?void 0:globalThis.document){const io=useCallbackRef$1(Mn),fo=reactExports$1.useRef(!1);return reactExports$1.useEffect(()=>{const $o=mo=>{mo.target&&!fo.current&&handleAndDispatchCustomEvent(FOCUS_OUTSIDE,io,{originalEvent:mo},{discrete:!1})};return Fn.addEventListener("focusin",$o),()=>Fn.removeEventListener("focusin",$o)},[Fn,io]),{onFocusCapture:()=>fo.current=!0,onBlurCapture:()=>fo.current=!1}}function dispatchUpdate(){const Mn=new CustomEvent(CONTEXT_UPDATE);document.dispatchEvent(Mn)}function handleAndDispatchCustomEvent(Mn,Fn,io,{discrete:fo}){const $o=io.originalEvent.target,mo=new CustomEvent(Mn,{bubbles:!1,cancelable:!0,detail:io});Fn&&$o.addEventListener(Mn,Fn,{once:!0}),fo?dispatchDiscreteCustomEvent($o,mo):$o.dispatchEvent(mo)}var count$1=0;function useFocusGuards(){reactExports$1.useEffect(()=>{const Mn=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",Mn[0]??createFocusGuard()),document.body.insertAdjacentElement("beforeend",Mn[1]??createFocusGuard()),count$1++,()=>{count$1===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(Fn=>Fn.remove()),count$1--}},[])}function createFocusGuard(){const Mn=document.createElement("span");return Mn.setAttribute("data-radix-focus-guard",""),Mn.tabIndex=0,Mn.style.outline="none",Mn.style.opacity="0",Mn.style.position="fixed",Mn.style.pointerEvents="none",Mn}var AUTOFOCUS_ON_MOUNT="focusScope.autoFocusOnMount",AUTOFOCUS_ON_UNMOUNT="focusScope.autoFocusOnUnmount",EVENT_OPTIONS$1={bubbles:!1,cancelable:!0},FOCUS_SCOPE_NAME="FocusScope",FocusScope=reactExports$1.forwardRef((Mn,Fn)=>{const{loop:io=!1,trapped:fo=!1,onMountAutoFocus:$o,onUnmountAutoFocus:mo,...Ao}=Mn,[jo,Lo]=reactExports$1.useState(null),Ho=useCallbackRef$1($o),zo=useCallbackRef$1(mo),Go=reactExports$1.useRef(null),Vo=useComposedRefs(Fn,is=>Lo(is)),Yo=reactExports$1.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;reactExports$1.useEffect(()=>{if(fo){let is=function(_l){if(Yo.paused||!jo)return;const xl=_l.target;jo.contains(xl)?Go.current=xl:focus(Go.current,{select:!0})},yl=function(_l){if(Yo.paused||!jo)return;const xl=_l.relatedTarget;xl!==null&&(jo.contains(xl)||focus(Go.current,{select:!0}))},us=function(_l){if(document.activeElement===document.body)for(const Il of _l)Il.removedNodes.length>0&&focus(jo)};document.addEventListener("focusin",is),document.addEventListener("focusout",yl);const hs=new MutationObserver(us);return jo&&hs.observe(jo,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",is),document.removeEventListener("focusout",yl),hs.disconnect()}}},[fo,jo,Yo.paused]),reactExports$1.useEffect(()=>{if(jo){focusScopesStack.add(Yo);const is=document.activeElement;if(!jo.contains(is)){const us=new CustomEvent(AUTOFOCUS_ON_MOUNT,EVENT_OPTIONS$1);jo.addEventListener(AUTOFOCUS_ON_MOUNT,Ho),jo.dispatchEvent(us),us.defaultPrevented||(focusFirst$2(removeLinks(getTabbableCandidates(jo)),{select:!0}),document.activeElement===is&&focus(jo))}return()=>{jo.removeEventListener(AUTOFOCUS_ON_MOUNT,Ho),setTimeout(()=>{const us=new CustomEvent(AUTOFOCUS_ON_UNMOUNT,EVENT_OPTIONS$1);jo.addEventListener(AUTOFOCUS_ON_UNMOUNT,zo),jo.dispatchEvent(us),us.defaultPrevented||focus(is??document.body,{select:!0}),jo.removeEventListener(AUTOFOCUS_ON_UNMOUNT,zo),focusScopesStack.remove(Yo)},0)}}},[jo,Ho,zo,Yo]);const Xo=reactExports$1.useCallback(is=>{if(!io&&!fo||Yo.paused)return;const yl=is.key==="Tab"&&!is.altKey&&!is.ctrlKey&&!is.metaKey,us=document.activeElement;if(yl&&us){const hs=is.currentTarget,[_l,xl]=getTabbableEdges(hs);_l&&xl?!is.shiftKey&&us===xl?(is.preventDefault(),io&&focus(_l,{select:!0})):is.shiftKey&&us===_l&&(is.preventDefault(),io&&focus(xl,{select:!0})):us===hs&&is.preventDefault()}},[io,fo,Yo.paused]);return jsxRuntimeExports$1.jsx(Primitive.div,{tabIndex:-1,...Ao,ref:Vo,onKeyDown:Xo})});FocusScope.displayName=FOCUS_SCOPE_NAME;function focusFirst$2(Mn,{select:Fn=!1}={}){const io=document.activeElement;for(const fo of Mn)if(focus(fo,{select:Fn}),document.activeElement!==io)return}function getTabbableEdges(Mn){const Fn=getTabbableCandidates(Mn),io=findVisible(Fn,Mn),fo=findVisible(Fn.reverse(),Mn);return[io,fo]}function getTabbableCandidates(Mn){const Fn=[],io=document.createTreeWalker(Mn,NodeFilter.SHOW_ELEMENT,{acceptNode:fo=>{const $o=fo.tagName==="INPUT"&&fo.type==="hidden";return fo.disabled||fo.hidden||$o?NodeFilter.FILTER_SKIP:fo.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;io.nextNode();)Fn.push(io.currentNode);return Fn}function findVisible(Mn,Fn){for(const io of Mn)if(!isHidden(io,{upTo:Fn}))return io}function isHidden(Mn,{upTo:Fn}){if(getComputedStyle(Mn).visibility==="hidden")return!0;for(;Mn;){if(Fn!==void 0&&Mn===Fn)return!1;if(getComputedStyle(Mn).display==="none")return!0;Mn=Mn.parentElement}return!1}function isSelectableInput(Mn){return Mn instanceof HTMLInputElement&&"select"in Mn}function focus(Mn,{select:Fn=!1}={}){if(Mn&&Mn.focus){const io=document.activeElement;Mn.focus({preventScroll:!0}),Mn!==io&&isSelectableInput(Mn)&&Fn&&Mn.select()}}var focusScopesStack=createFocusScopesStack();function createFocusScopesStack(){let Mn=[];return{add(Fn){const io=Mn[0];Fn!==io&&(io==null||io.pause()),Mn=arrayRemove(Mn,Fn),Mn.unshift(Fn)},remove(Fn){var io;Mn=arrayRemove(Mn,Fn),(io=Mn[0])==null||io.resume()}}}function arrayRemove(Mn,Fn){const io=[...Mn],fo=io.indexOf(Fn);return fo!==-1&&io.splice(fo,1),io}function removeLinks(Mn){return Mn.filter(Fn=>Fn.tagName!=="A")}var useLayoutEffect2=globalThis!=null&&globalThis.document?reactExports$1.useLayoutEffect:()=>{},useReactId=React$2.useId||(()=>{}),count=0;function useId(Mn){const[Fn,io]=reactExports$1.useState(useReactId());return useLayoutEffect2(()=>{Mn||io(fo=>fo??String(count++))},[Mn]),Mn||(Fn?`radix-${Fn}`:"")}const sides=["top","right","bottom","left"],min$d=Math.min,max$d=Math.max,round$3=Math.round,floor$e=Math.floor,createCoords=Mn=>({x:Mn,y:Mn}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp$1(Mn,Fn,io){return max$d(Mn,min$d(Fn,io))}function evaluate(Mn,Fn){return typeof Mn=="function"?Mn(Fn):Mn}function getSide(Mn){return Mn.split("-")[0]}function getAlignment(Mn){return Mn.split("-")[1]}function getOppositeAxis(Mn){return Mn==="x"?"y":"x"}function getAxisLength(Mn){return Mn==="y"?"height":"width"}function getSideAxis(Mn){return["top","bottom"].includes(getSide(Mn))?"y":"x"}function getAlignmentAxis(Mn){return getOppositeAxis(getSideAxis(Mn))}function getAlignmentSides(Mn,Fn,io){io===void 0&&(io=!1);const fo=getAlignment(Mn),$o=getAlignmentAxis(Mn),mo=getAxisLength($o);let Ao=$o==="x"?fo===(io?"end":"start")?"right":"left":fo==="start"?"bottom":"top";return Fn.reference[mo]>Fn.floating[mo]&&(Ao=getOppositePlacement(Ao)),[Ao,getOppositePlacement(Ao)]}function getExpandedPlacements(Mn){const Fn=getOppositePlacement(Mn);return[getOppositeAlignmentPlacement(Mn),Fn,getOppositeAlignmentPlacement(Fn)]}function getOppositeAlignmentPlacement(Mn){return Mn.replace(/start|end/g,Fn=>oppositeAlignmentMap[Fn])}function getSideList(Mn,Fn,io){const fo=["left","right"],$o=["right","left"],mo=["top","bottom"],Ao=["bottom","top"];switch(Mn){case"top":case"bottom":return io?Fn?$o:fo:Fn?fo:$o;case"left":case"right":return Fn?mo:Ao;default:return[]}}function getOppositeAxisPlacements(Mn,Fn,io,fo){const $o=getAlignment(Mn);let mo=getSideList(getSide(Mn),io==="start",fo);return $o&&(mo=mo.map(Ao=>Ao+"-"+$o),Fn&&(mo=mo.concat(mo.map(getOppositeAlignmentPlacement)))),mo}function getOppositePlacement(Mn){return Mn.replace(/left|right|bottom|top/g,Fn=>oppositeSideMap[Fn])}function expandPaddingObject(Mn){return{top:0,right:0,bottom:0,left:0,...Mn}}function getPaddingObject(Mn){return typeof Mn!="number"?expandPaddingObject(Mn):{top:Mn,right:Mn,bottom:Mn,left:Mn}}function rectToClientRect(Mn){const{x:Fn,y:io,width:fo,height:$o}=Mn;return{width:fo,height:$o,top:io,left:Fn,right:Fn+fo,bottom:io+$o,x:Fn,y:io}}function computeCoordsFromPlacement(Mn,Fn,io){let{reference:fo,floating:$o}=Mn;const mo=getSideAxis(Fn),Ao=getAlignmentAxis(Fn),jo=getAxisLength(Ao),Lo=getSide(Fn),Ho=mo==="y",zo=fo.x+fo.width/2-$o.width/2,Go=fo.y+fo.height/2-$o.height/2,Vo=fo[jo]/2-$o[jo]/2;let Yo;switch(Lo){case"top":Yo={x:zo,y:fo.y-$o.height};break;case"bottom":Yo={x:zo,y:fo.y+fo.height};break;case"right":Yo={x:fo.x+fo.width,y:Go};break;case"left":Yo={x:fo.x-$o.width,y:Go};break;default:Yo={x:fo.x,y:fo.y}}switch(getAlignment(Fn)){case"start":Yo[Ao]-=Vo*(io&&Ho?-1:1);break;case"end":Yo[Ao]+=Vo*(io&&Ho?-1:1);break}return Yo}const computePosition$1=async(Mn,Fn,io)=>{const{placement:fo="bottom",strategy:$o="absolute",middleware:mo=[],platform:Ao}=io,jo=mo.filter(Boolean),Lo=await(Ao.isRTL==null?void 0:Ao.isRTL(Fn));let Ho=await Ao.getElementRects({reference:Mn,floating:Fn,strategy:$o}),{x:zo,y:Go}=computeCoordsFromPlacement(Ho,fo,Lo),Vo=fo,Yo={},Xo=0;for(let is=0;is<jo.length;is++){const{name:yl,fn:us}=jo[is],{x:hs,y:_l,data:xl,reset:Il}=await us({x:zo,y:Go,initialPlacement:fo,placement:Vo,strategy:$o,middlewareData:Yo,rects:Ho,platform:Ao,elements:{reference:Mn,floating:Fn}});zo=hs??zo,Go=_l??Go,Yo={...Yo,[yl]:{...Yo[yl],...xl}},Il&&Xo<=50&&(Xo++,typeof Il=="object"&&(Il.placement&&(Vo=Il.placement),Il.rects&&(Ho=Il.rects===!0?await Ao.getElementRects({reference:Mn,floating:Fn,strategy:$o}):Il.rects),{x:zo,y:Go}=computeCoordsFromPlacement(Ho,Vo,Lo)),is=-1)}return{x:zo,y:Go,placement:Vo,strategy:$o,middlewareData:Yo}};async function detectOverflow(Mn,Fn){var io;Fn===void 0&&(Fn={});const{x:fo,y:$o,platform:mo,rects:Ao,elements:jo,strategy:Lo}=Mn,{boundary:Ho="clippingAncestors",rootBoundary:zo="viewport",elementContext:Go="floating",altBoundary:Vo=!1,padding:Yo=0}=evaluate(Fn,Mn),Xo=getPaddingObject(Yo),yl=jo[Vo?Go==="floating"?"reference":"floating":Go],us=rectToClientRect(await mo.getClippingRect({element:(io=await(mo.isElement==null?void 0:mo.isElement(yl)))==null||io?yl:yl.contextElement||await(mo.getDocumentElement==null?void 0:mo.getDocumentElement(jo.floating)),boundary:Ho,rootBoundary:zo,strategy:Lo})),hs=Go==="floating"?{x:fo,y:$o,width:Ao.floating.width,height:Ao.floating.height}:Ao.reference,_l=await(mo.getOffsetParent==null?void 0:mo.getOffsetParent(jo.floating)),xl=await(mo.isElement==null?void 0:mo.isElement(_l))?await(mo.getScale==null?void 0:mo.getScale(_l))||{x:1,y:1}:{x:1,y:1},Il=rectToClientRect(mo.convertOffsetParentRelativeRectToViewportRelativeRect?await mo.convertOffsetParentRelativeRectToViewportRelativeRect({elements:jo,rect:hs,offsetParent:_l,strategy:Lo}):hs);return{top:(us.top-Il.top+Xo.top)/xl.y,bottom:(Il.bottom-us.bottom+Xo.bottom)/xl.y,left:(us.left-Il.left+Xo.left)/xl.x,right:(Il.right-us.right+Xo.right)/xl.x}}const arrow$3=Mn=>({name:"arrow",options:Mn,async fn(Fn){const{x:io,y:fo,placement:$o,rects:mo,platform:Ao,elements:jo,middlewareData:Lo}=Fn,{element:Ho,padding:zo=0}=evaluate(Mn,Fn)||{};if(Ho==null)return{};const Go=getPaddingObject(zo),Vo={x:io,y:fo},Yo=getAlignmentAxis($o),Xo=getAxisLength(Yo),is=await Ao.getDimensions(Ho),yl=Yo==="y",us=yl?"top":"left",hs=yl?"bottom":"right",_l=yl?"clientHeight":"clientWidth",xl=mo.reference[Xo]+mo.reference[Yo]-Vo[Yo]-mo.floating[Xo],Il=Vo[Yo]-mo.reference[Yo],Ol=await(Ao.getOffsetParent==null?void 0:Ao.getOffsetParent(Ho));let Tl=Ol?Ol[_l]:0;(!Tl||!await(Ao.isElement==null?void 0:Ao.isElement(Ol)))&&(Tl=jo.floating[_l]||mo.floating[Xo]);const Cl=xl/2-Il/2,Nl=Tl/2-is[Xo]/2-1,Wl=min$d(Go[us],Nl),Dl=min$d(Go[hs],Nl),Rl=Wl,Qo=Tl-is[Xo]-Dl,Jo=Tl/2-is[Xo]/2+Cl,rs=clamp$1(Rl,Jo,Qo),ps=!Lo.arrow&&getAlignment($o)!=null&&Jo!==rs&&mo.reference[Xo]/2-(Jo<Rl?Wl:Dl)-is[Xo]/2<0,_c=ps?Jo<Rl?Jo-Rl:Jo-Qo:0;return{[Yo]:Vo[Yo]+_c,data:{[Yo]:rs,centerOffset:Jo-rs-_c,...ps&&{alignmentOffset:_c}},reset:ps}}}),flip$2=function(Mn){return Mn===void 0&&(Mn={}),{name:"flip",options:Mn,async fn(Fn){var io,fo;const{placement:$o,middlewareData:mo,rects:Ao,initialPlacement:jo,platform:Lo,elements:Ho}=Fn,{mainAxis:zo=!0,crossAxis:Go=!0,fallbackPlacements:Vo,fallbackStrategy:Yo="bestFit",fallbackAxisSideDirection:Xo="none",flipAlignment:is=!0,...yl}=evaluate(Mn,Fn);if((io=mo.arrow)!=null&&io.alignmentOffset)return{};const us=getSide($o),hs=getSideAxis(jo),_l=getSide(jo)===jo,xl=await(Lo.isRTL==null?void 0:Lo.isRTL(Ho.floating)),Il=Vo||(_l||!is?[getOppositePlacement(jo)]:getExpandedPlacements(jo)),Ol=Xo!=="none";!Vo&&Ol&&Il.push(...getOppositeAxisPlacements(jo,is,Xo,xl));const Tl=[jo,...Il],Cl=await detectOverflow(Fn,yl),Nl=[];let Wl=((fo=mo.flip)==null?void 0:fo.overflows)||[];if(zo&&Nl.push(Cl[us]),Go){const Jo=getAlignmentSides($o,Ao,xl);Nl.push(Cl[Jo[0]],Cl[Jo[1]])}if(Wl=[...Wl,{placement:$o,overflows:Nl}],!Nl.every(Jo=>Jo<=0)){var Dl,Rl;const Jo=(((Dl=mo.flip)==null?void 0:Dl.index)||0)+1,rs=Tl[Jo];if(rs)return{data:{index:Jo,overflows:Wl},reset:{placement:rs}};let ps=(Rl=Wl.filter(_c=>_c.overflows[0]<=0).sort((_c,$l)=>_c.overflows[1]-$l.overflows[1])[0])==null?void 0:Rl.placement;if(!ps)switch(Yo){case"bestFit":{var Qo;const _c=(Qo=Wl.filter($l=>{if(Ol){const El=getSideAxis($l.placement);return El===hs||El==="y"}return!0}).map($l=>[$l.placement,$l.overflows.filter(El=>El>0).reduce((El,ds)=>El+ds,0)]).sort(($l,El)=>$l[1]-El[1])[0])==null?void 0:Qo[0];_c&&(ps=_c);break}case"initialPlacement":ps=jo;break}if($o!==ps)return{reset:{placement:ps}}}return{}}}};function getSideOffsets(Mn,Fn){return{top:Mn.top-Fn.height,right:Mn.right-Fn.width,bottom:Mn.bottom-Fn.height,left:Mn.left-Fn.width}}function isAnySideFullyClipped(Mn){return sides.some(Fn=>Mn[Fn]>=0)}const hide$2=function(Mn){return Mn===void 0&&(Mn={}),{name:"hide",options:Mn,async fn(Fn){const{rects:io}=Fn,{strategy:fo="referenceHidden",...$o}=evaluate(Mn,Fn);switch(fo){case"referenceHidden":{const mo=await detectOverflow(Fn,{...$o,elementContext:"reference"}),Ao=getSideOffsets(mo,io.reference);return{data:{referenceHiddenOffsets:Ao,referenceHidden:isAnySideFullyClipped(Ao)}}}case"escaped":{const mo=await detectOverflow(Fn,{...$o,altBoundary:!0}),Ao=getSideOffsets(mo,io.floating);return{data:{escapedOffsets:Ao,escaped:isAnySideFullyClipped(Ao)}}}default:return{}}}}};async function convertValueToCoords(Mn,Fn){const{placement:io,platform:fo,elements:$o}=Mn,mo=await(fo.isRTL==null?void 0:fo.isRTL($o.floating)),Ao=getSide(io),jo=getAlignment(io),Lo=getSideAxis(io)==="y",Ho=["left","top"].includes(Ao)?-1:1,zo=mo&&Lo?-1:1,Go=evaluate(Fn,Mn);let{mainAxis:Vo,crossAxis:Yo,alignmentAxis:Xo}=typeof Go=="number"?{mainAxis:Go,crossAxis:0,alignmentAxis:null}:{mainAxis:Go.mainAxis||0,crossAxis:Go.crossAxis||0,alignmentAxis:Go.alignmentAxis};return jo&&typeof Xo=="number"&&(Yo=jo==="end"?Xo*-1:Xo),Lo?{x:Yo*zo,y:Vo*Ho}:{x:Vo*Ho,y:Yo*zo}}const offset$2=function(Mn){return Mn===void 0&&(Mn=0),{name:"offset",options:Mn,async fn(Fn){var io,fo;const{x:$o,y:mo,placement:Ao,middlewareData:jo}=Fn,Lo=await convertValueToCoords(Fn,Mn);return Ao===((io=jo.offset)==null?void 0:io.placement)&&(fo=jo.arrow)!=null&&fo.alignmentOffset?{}:{x:$o+Lo.x,y:mo+Lo.y,data:{...Lo,placement:Ao}}}}},shift$2=function(Mn){return Mn===void 0&&(Mn={}),{name:"shift",options:Mn,async fn(Fn){const{x:io,y:fo,placement:$o}=Fn,{mainAxis:mo=!0,crossAxis:Ao=!1,limiter:jo={fn:yl=>{let{x:us,y:hs}=yl;return{x:us,y:hs}}},...Lo}=evaluate(Mn,Fn),Ho={x:io,y:fo},zo=await detectOverflow(Fn,Lo),Go=getSideAxis(getSide($o)),Vo=getOppositeAxis(Go);let Yo=Ho[Vo],Xo=Ho[Go];if(mo){const yl=Vo==="y"?"top":"left",us=Vo==="y"?"bottom":"right",hs=Yo+zo[yl],_l=Yo-zo[us];Yo=clamp$1(hs,Yo,_l)}if(Ao){const yl=Go==="y"?"top":"left",us=Go==="y"?"bottom":"right",hs=Xo+zo[yl],_l=Xo-zo[us];Xo=clamp$1(hs,Xo,_l)}const is=jo.fn({...Fn,[Vo]:Yo,[Go]:Xo});return{...is,data:{x:is.x-io,y:is.y-fo,enabled:{[Vo]:mo,[Go]:Ao}}}}}},limitShift$2=function(Mn){return Mn===void 0&&(Mn={}),{options:Mn,fn(Fn){const{x:io,y:fo,placement:$o,rects:mo,middlewareData:Ao}=Fn,{offset:jo=0,mainAxis:Lo=!0,crossAxis:Ho=!0}=evaluate(Mn,Fn),zo={x:io,y:fo},Go=getSideAxis($o),Vo=getOppositeAxis(Go);let Yo=zo[Vo],Xo=zo[Go];const is=evaluate(jo,Fn),yl=typeof is=="number"?{mainAxis:is,crossAxis:0}:{mainAxis:0,crossAxis:0,...is};if(Lo){const _l=Vo==="y"?"height":"width",xl=mo.reference[Vo]-mo.floating[_l]+yl.mainAxis,Il=mo.reference[Vo]+mo.reference[_l]-yl.mainAxis;Yo<xl?Yo=xl:Yo>Il&&(Yo=Il)}if(Ho){var us,hs;const _l=Vo==="y"?"width":"height",xl=["top","left"].includes(getSide($o)),Il=mo.reference[Go]-mo.floating[_l]+(xl&&((us=Ao.offset)==null?void 0:us[Go])||0)+(xl?0:yl.crossAxis),Ol=mo.reference[Go]+mo.reference[_l]+(xl?0:((hs=Ao.offset)==null?void 0:hs[Go])||0)-(xl?yl.crossAxis:0);Xo<Il?Xo=Il:Xo>Ol&&(Xo=Ol)}return{[Vo]:Yo,[Go]:Xo}}}},size$6=function(Mn){return Mn===void 0&&(Mn={}),{name:"size",options:Mn,async fn(Fn){var io,fo;const{placement:$o,rects:mo,platform:Ao,elements:jo}=Fn,{apply:Lo=()=>{},...Ho}=evaluate(Mn,Fn),zo=await detectOverflow(Fn,Ho),Go=getSide($o),Vo=getAlignment($o),Yo=getSideAxis($o)==="y",{width:Xo,height:is}=mo.floating;let yl,us;Go==="top"||Go==="bottom"?(yl=Go,us=Vo===(await(Ao.isRTL==null?void 0:Ao.isRTL(jo.floating))?"start":"end")?"left":"right"):(us=Go,yl=Vo==="end"?"top":"bottom");const hs=is-zo.top-zo.bottom,_l=Xo-zo.left-zo.right,xl=min$d(is-zo[yl],hs),Il=min$d(Xo-zo[us],_l),Ol=!Fn.middlewareData.shift;let Tl=xl,Cl=Il;if((io=Fn.middlewareData.shift)!=null&&io.enabled.x&&(Cl=_l),(fo=Fn.middlewareData.shift)!=null&&fo.enabled.y&&(Tl=hs),Ol&&!Vo){const Wl=max$d(zo.left,0),Dl=max$d(zo.right,0),Rl=max$d(zo.top,0),Qo=max$d(zo.bottom,0);Yo?Cl=Xo-2*(Wl!==0||Dl!==0?Wl+Dl:max$d(zo.left,zo.right)):Tl=is-2*(Rl!==0||Qo!==0?Rl+Qo:max$d(zo.top,zo.bottom))}await Lo({...Fn,availableWidth:Cl,availableHeight:Tl});const Nl=await Ao.getDimensions(jo.floating);return Xo!==Nl.width||is!==Nl.height?{reset:{rects:!0}}:{}}}};function hasWindow(){return typeof window<"u"}function getNodeName(Mn){return isNode(Mn)?(Mn.nodeName||"").toLowerCase():"#document"}function getWindow(Mn){var Fn;return(Mn==null||(Fn=Mn.ownerDocument)==null?void 0:Fn.defaultView)||window}function getDocumentElement(Mn){var Fn;return(Fn=(isNode(Mn)?Mn.ownerDocument:Mn.document)||window.document)==null?void 0:Fn.documentElement}function isNode(Mn){return hasWindow()?Mn instanceof Node||Mn instanceof getWindow(Mn).Node:!1}function isElement$1(Mn){return hasWindow()?Mn instanceof Element||Mn instanceof getWindow(Mn).Element:!1}function isHTMLElement(Mn){return hasWindow()?Mn instanceof HTMLElement||Mn instanceof getWindow(Mn).HTMLElement:!1}function isShadowRoot(Mn){return!hasWindow()||typeof ShadowRoot>"u"?!1:Mn instanceof ShadowRoot||Mn instanceof getWindow(Mn).ShadowRoot}function isOverflowElement(Mn){const{overflow:Fn,overflowX:io,overflowY:fo,display:$o}=getComputedStyle$2(Mn);return/auto|scroll|overlay|hidden|clip/.test(Fn+fo+io)&&!["inline","contents"].includes($o)}function isTableElement(Mn){return["table","td","th"].includes(getNodeName(Mn))}function isTopLayer(Mn){return[":popover-open",":modal"].some(Fn=>{try{return Mn.matches(Fn)}catch{return!1}})}function isContainingBlock(Mn){const Fn=isWebKit(),io=isElement$1(Mn)?getComputedStyle$2(Mn):Mn;return io.transform!=="none"||io.perspective!=="none"||(io.containerType?io.containerType!=="normal":!1)||!Fn&&(io.backdropFilter?io.backdropFilter!=="none":!1)||!Fn&&(io.filter?io.filter!=="none":!1)||["transform","perspective","filter"].some(fo=>(io.willChange||"").includes(fo))||["paint","layout","strict","content"].some(fo=>(io.contain||"").includes(fo))}function getContainingBlock(Mn){let Fn=getParentNode(Mn);for(;isHTMLElement(Fn)&&!isLastTraversableNode(Fn);){if(isContainingBlock(Fn))return Fn;if(isTopLayer(Fn))return null;Fn=getParentNode(Fn)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(Mn){return["html","body","#document"].includes(getNodeName(Mn))}function getComputedStyle$2(Mn){return getWindow(Mn).getComputedStyle(Mn)}function getNodeScroll(Mn){return isElement$1(Mn)?{scrollLeft:Mn.scrollLeft,scrollTop:Mn.scrollTop}:{scrollLeft:Mn.scrollX,scrollTop:Mn.scrollY}}function getParentNode(Mn){if(getNodeName(Mn)==="html")return Mn;const Fn=Mn.assignedSlot||Mn.parentNode||isShadowRoot(Mn)&&Mn.host||getDocumentElement(Mn);return isShadowRoot(Fn)?Fn.host:Fn}function getNearestOverflowAncestor(Mn){const Fn=getParentNode(Mn);return isLastTraversableNode(Fn)?Mn.ownerDocument?Mn.ownerDocument.body:Mn.body:isHTMLElement(Fn)&&isOverflowElement(Fn)?Fn:getNearestOverflowAncestor(Fn)}function getOverflowAncestors(Mn,Fn,io){var fo;Fn===void 0&&(Fn=[]),io===void 0&&(io=!0);const $o=getNearestOverflowAncestor(Mn),mo=$o===((fo=Mn.ownerDocument)==null?void 0:fo.body),Ao=getWindow($o);if(mo){const jo=getFrameElement(Ao);return Fn.concat(Ao,Ao.visualViewport||[],isOverflowElement($o)?$o:[],jo&&io?getOverflowAncestors(jo):[])}return Fn.concat($o,getOverflowAncestors($o,[],io))}function getFrameElement(Mn){return Mn.parent&&Object.getPrototypeOf(Mn.parent)?Mn.frameElement:null}function getCssDimensions(Mn){const Fn=getComputedStyle$2(Mn);let io=parseFloat(Fn.width)||0,fo=parseFloat(Fn.height)||0;const $o=isHTMLElement(Mn),mo=$o?Mn.offsetWidth:io,Ao=$o?Mn.offsetHeight:fo,jo=round$3(io)!==mo||round$3(fo)!==Ao;return jo&&(io=mo,fo=Ao),{width:io,height:fo,$:jo}}function unwrapElement(Mn){return isElement$1(Mn)?Mn:Mn.contextElement}function getScale(Mn){const Fn=unwrapElement(Mn);if(!isHTMLElement(Fn))return createCoords(1);const io=Fn.getBoundingClientRect(),{width:fo,height:$o,$:mo}=getCssDimensions(Fn);let Ao=(mo?round$3(io.width):io.width)/fo,jo=(mo?round$3(io.height):io.height)/$o;return(!Ao||!Number.isFinite(Ao))&&(Ao=1),(!jo||!Number.isFinite(jo))&&(jo=1),{x:Ao,y:jo}}const noOffsets=createCoords(0);function getVisualOffsets(Mn){const Fn=getWindow(Mn);return!isWebKit()||!Fn.visualViewport?noOffsets:{x:Fn.visualViewport.offsetLeft,y:Fn.visualViewport.offsetTop}}function shouldAddVisualOffsets(Mn,Fn,io){return Fn===void 0&&(Fn=!1),!io||Fn&&io!==getWindow(Mn)?!1:Fn}function getBoundingClientRect(Mn,Fn,io,fo){Fn===void 0&&(Fn=!1),io===void 0&&(io=!1);const $o=Mn.getBoundingClientRect(),mo=unwrapElement(Mn);let Ao=createCoords(1);Fn&&(fo?isElement$1(fo)&&(Ao=getScale(fo)):Ao=getScale(Mn));const jo=shouldAddVisualOffsets(mo,io,fo)?getVisualOffsets(mo):createCoords(0);let Lo=($o.left+jo.x)/Ao.x,Ho=($o.top+jo.y)/Ao.y,zo=$o.width/Ao.x,Go=$o.height/Ao.y;if(mo){const Vo=getWindow(mo),Yo=fo&&isElement$1(fo)?getWindow(fo):fo;let Xo=Vo,is=getFrameElement(Xo);for(;is&&fo&&Yo!==Xo;){const yl=getScale(is),us=is.getBoundingClientRect(),hs=getComputedStyle$2(is),_l=us.left+(is.clientLeft+parseFloat(hs.paddingLeft))*yl.x,xl=us.top+(is.clientTop+parseFloat(hs.paddingTop))*yl.y;Lo*=yl.x,Ho*=yl.y,zo*=yl.x,Go*=yl.y,Lo+=_l,Ho+=xl,Xo=getWindow(is),is=getFrameElement(Xo)}}return rectToClientRect({width:zo,height:Go,x:Lo,y:Ho})}function convertOffsetParentRelativeRectToViewportRelativeRect(Mn){let{elements:Fn,rect:io,offsetParent:fo,strategy:$o}=Mn;const mo=$o==="fixed",Ao=getDocumentElement(fo),jo=Fn?isTopLayer(Fn.floating):!1;if(fo===Ao||jo&&mo)return io;let Lo={scrollLeft:0,scrollTop:0},Ho=createCoords(1);const zo=createCoords(0),Go=isHTMLElement(fo);if((Go||!Go&&!mo)&&((getNodeName(fo)!=="body"||isOverflowElement(Ao))&&(Lo=getNodeScroll(fo)),isHTMLElement(fo))){const Vo=getBoundingClientRect(fo);Ho=getScale(fo),zo.x=Vo.x+fo.clientLeft,zo.y=Vo.y+fo.clientTop}return{width:io.width*Ho.x,height:io.height*Ho.y,x:io.x*Ho.x-Lo.scrollLeft*Ho.x+zo.x,y:io.y*Ho.y-Lo.scrollTop*Ho.y+zo.y}}function getClientRects(Mn){return Array.from(Mn.getClientRects())}function getWindowScrollBarX(Mn,Fn){const io=getNodeScroll(Mn).scrollLeft;return Fn?Fn.left+io:getBoundingClientRect(getDocumentElement(Mn)).left+io}function getDocumentRect(Mn){const Fn=getDocumentElement(Mn),io=getNodeScroll(Mn),fo=Mn.ownerDocument.body,$o=max$d(Fn.scrollWidth,Fn.clientWidth,fo.scrollWidth,fo.clientWidth),mo=max$d(Fn.scrollHeight,Fn.clientHeight,fo.scrollHeight,fo.clientHeight);let Ao=-io.scrollLeft+getWindowScrollBarX(Mn);const jo=-io.scrollTop;return getComputedStyle$2(fo).direction==="rtl"&&(Ao+=max$d(Fn.clientWidth,fo.clientWidth)-$o),{width:$o,height:mo,x:Ao,y:jo}}function getViewportRect(Mn,Fn){const io=getWindow(Mn),fo=getDocumentElement(Mn),$o=io.visualViewport;let mo=fo.clientWidth,Ao=fo.clientHeight,jo=0,Lo=0;if($o){mo=$o.width,Ao=$o.height;const Ho=isWebKit();(!Ho||Ho&&Fn==="fixed")&&(jo=$o.offsetLeft,Lo=$o.offsetTop)}return{width:mo,height:Ao,x:jo,y:Lo}}function getInnerBoundingClientRect(Mn,Fn){const io=getBoundingClientRect(Mn,!0,Fn==="fixed"),fo=io.top+Mn.clientTop,$o=io.left+Mn.clientLeft,mo=isHTMLElement(Mn)?getScale(Mn):createCoords(1),Ao=Mn.clientWidth*mo.x,jo=Mn.clientHeight*mo.y,Lo=$o*mo.x,Ho=fo*mo.y;return{width:Ao,height:jo,x:Lo,y:Ho}}function getClientRectFromClippingAncestor(Mn,Fn,io){let fo;if(Fn==="viewport")fo=getViewportRect(Mn,io);else if(Fn==="document")fo=getDocumentRect(getDocumentElement(Mn));else if(isElement$1(Fn))fo=getInnerBoundingClientRect(Fn,io);else{const $o=getVisualOffsets(Mn);fo={...Fn,x:Fn.x-$o.x,y:Fn.y-$o.y}}return rectToClientRect(fo)}function hasFixedPositionAncestor(Mn,Fn){const io=getParentNode(Mn);return io===Fn||!isElement$1(io)||isLastTraversableNode(io)?!1:getComputedStyle$2(io).position==="fixed"||hasFixedPositionAncestor(io,Fn)}function getClippingElementAncestors(Mn,Fn){const io=Fn.get(Mn);if(io)return io;let fo=getOverflowAncestors(Mn,[],!1).filter(jo=>isElement$1(jo)&&getNodeName(jo)!=="body"),$o=null;const mo=getComputedStyle$2(Mn).position==="fixed";let Ao=mo?getParentNode(Mn):Mn;for(;isElement$1(Ao)&&!isLastTraversableNode(Ao);){const jo=getComputedStyle$2(Ao),Lo=isContainingBlock(Ao);!Lo&&jo.position==="fixed"&&($o=null),(mo?!Lo&&!$o:!Lo&&jo.position==="static"&&!!$o&&["absolute","fixed"].includes($o.position)||isOverflowElement(Ao)&&!Lo&&hasFixedPositionAncestor(Mn,Ao))?fo=fo.filter(zo=>zo!==Ao):$o=jo,Ao=getParentNode(Ao)}return Fn.set(Mn,fo),fo}function getClippingRect(Mn){let{element:Fn,boundary:io,rootBoundary:fo,strategy:$o}=Mn;const Ao=[...io==="clippingAncestors"?isTopLayer(Fn)?[]:getClippingElementAncestors(Fn,this._c):[].concat(io),fo],jo=Ao[0],Lo=Ao.reduce((Ho,zo)=>{const Go=getClientRectFromClippingAncestor(Fn,zo,$o);return Ho.top=max$d(Go.top,Ho.top),Ho.right=min$d(Go.right,Ho.right),Ho.bottom=min$d(Go.bottom,Ho.bottom),Ho.left=max$d(Go.left,Ho.left),Ho},getClientRectFromClippingAncestor(Fn,jo,$o));return{width:Lo.right-Lo.left,height:Lo.bottom-Lo.top,x:Lo.left,y:Lo.top}}function getDimensions(Mn){const{width:Fn,height:io}=getCssDimensions(Mn);return{width:Fn,height:io}}function getRectRelativeToOffsetParent(Mn,Fn,io){const fo=isHTMLElement(Fn),$o=getDocumentElement(Fn),mo=io==="fixed",Ao=getBoundingClientRect(Mn,!0,mo,Fn);let jo={scrollLeft:0,scrollTop:0};const Lo=createCoords(0);if(fo||!fo&&!mo)if((getNodeName(Fn)!=="body"||isOverflowElement($o))&&(jo=getNodeScroll(Fn)),fo){const Yo=getBoundingClientRect(Fn,!0,mo,Fn);Lo.x=Yo.x+Fn.clientLeft,Lo.y=Yo.y+Fn.clientTop}else $o&&(Lo.x=getWindowScrollBarX($o));let Ho=0,zo=0;if($o&&!fo&&!mo){const Yo=$o.getBoundingClientRect();zo=Yo.top+jo.scrollTop,Ho=Yo.left+jo.scrollLeft-getWindowScrollBarX($o,Yo)}const Go=Ao.left+jo.scrollLeft-Lo.x-Ho,Vo=Ao.top+jo.scrollTop-Lo.y-zo;return{x:Go,y:Vo,width:Ao.width,height:Ao.height}}function isStaticPositioned(Mn){return getComputedStyle$2(Mn).position==="static"}function getTrueOffsetParent(Mn,Fn){if(!isHTMLElement(Mn)||getComputedStyle$2(Mn).position==="fixed")return null;if(Fn)return Fn(Mn);let io=Mn.offsetParent;return getDocumentElement(Mn)===io&&(io=io.ownerDocument.body),io}function getOffsetParent(Mn,Fn){const io=getWindow(Mn);if(isTopLayer(Mn))return io;if(!isHTMLElement(Mn)){let $o=getParentNode(Mn);for(;$o&&!isLastTraversableNode($o);){if(isElement$1($o)&&!isStaticPositioned($o))return $o;$o=getParentNode($o)}return io}let fo=getTrueOffsetParent(Mn,Fn);for(;fo&&isTableElement(fo)&&isStaticPositioned(fo);)fo=getTrueOffsetParent(fo,Fn);return fo&&isLastTraversableNode(fo)&&isStaticPositioned(fo)&&!isContainingBlock(fo)?io:fo||getContainingBlock(Mn)||io}const getElementRects=async function(Mn){const Fn=this.getOffsetParent||getOffsetParent,io=this.getDimensions,fo=await io(Mn.floating);return{reference:getRectRelativeToOffsetParent(Mn.reference,await Fn(Mn.floating),Mn.strategy),floating:{x:0,y:0,width:fo.width,height:fo.height}}};function isRTL(Mn){return getComputedStyle$2(Mn).direction==="rtl"}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement:isElement$1,isRTL};function observeMove(Mn,Fn){let io=null,fo;const $o=getDocumentElement(Mn);function mo(){var jo;clearTimeout(fo),(jo=io)==null||jo.disconnect(),io=null}function Ao(jo,Lo){jo===void 0&&(jo=!1),Lo===void 0&&(Lo=1),mo();const{left:Ho,top:zo,width:Go,height:Vo}=Mn.getBoundingClientRect();if(jo||Fn(),!Go||!Vo)return;const Yo=floor$e(zo),Xo=floor$e($o.clientWidth-(Ho+Go)),is=floor$e($o.clientHeight-(zo+Vo)),yl=floor$e(Ho),hs={rootMargin:-Yo+"px "+-Xo+"px "+-is+"px "+-yl+"px",threshold:max$d(0,min$d(1,Lo))||1};let _l=!0;function xl(Il){const Ol=Il[0].intersectionRatio;if(Ol!==Lo){if(!_l)return Ao();Ol?Ao(!1,Ol):fo=setTimeout(()=>{Ao(!1,1e-7)},1e3)}_l=!1}try{io=new IntersectionObserver(xl,{...hs,root:$o.ownerDocument})}catch{io=new IntersectionObserver(xl,hs)}io.observe(Mn)}return Ao(!0),mo}function autoUpdate(Mn,Fn,io,fo){fo===void 0&&(fo={});const{ancestorScroll:$o=!0,ancestorResize:mo=!0,elementResize:Ao=typeof ResizeObserver=="function",layoutShift:jo=typeof IntersectionObserver=="function",animationFrame:Lo=!1}=fo,Ho=unwrapElement(Mn),zo=$o||mo?[...Ho?getOverflowAncestors(Ho):[],...getOverflowAncestors(Fn)]:[];zo.forEach(us=>{$o&&us.addEventListener("scroll",io,{passive:!0}),mo&&us.addEventListener("resize",io)});const Go=Ho&&jo?observeMove(Ho,io):null;let Vo=-1,Yo=null;Ao&&(Yo=new ResizeObserver(us=>{let[hs]=us;hs&&hs.target===Ho&&Yo&&(Yo.unobserve(Fn),cancelAnimationFrame(Vo),Vo=requestAnimationFrame(()=>{var _l;(_l=Yo)==null||_l.observe(Fn)})),io()}),Ho&&!Lo&&Yo.observe(Ho),Yo.observe(Fn));let Xo,is=Lo?getBoundingClientRect(Mn):null;Lo&&yl();function yl(){const us=getBoundingClientRect(Mn);is&&(us.x!==is.x||us.y!==is.y||us.width!==is.width||us.height!==is.height)&&io(),is=us,Xo=requestAnimationFrame(yl)}return io(),()=>{var us;zo.forEach(hs=>{$o&&hs.removeEventListener("scroll",io),mo&&hs.removeEventListener("resize",io)}),Go==null||Go(),(us=Yo)==null||us.disconnect(),Yo=null,Lo&&cancelAnimationFrame(Xo)}}const offset$1=offset$2,shift$1=shift$2,flip$1=flip$2,size$5=size$6,hide$1=hide$2,arrow$2=arrow$3,limitShift$1=limitShift$2,computePosition=(Mn,Fn,io)=>{const fo=new Map,$o={platform,...io},mo={...$o.platform,_c:fo};return computePosition$1(Mn,Fn,{...$o,platform:mo})};var index$2=typeof document<"u"?reactExports$1.useLayoutEffect:reactExports$1.useEffect;function deepEqual$1(Mn,Fn){if(Mn===Fn)return!0;if(typeof Mn!=typeof Fn)return!1;if(typeof Mn=="function"&&Mn.toString()===Fn.toString())return!0;let io,fo,$o;if(Mn&&Fn&&typeof Mn=="object"){if(Array.isArray(Mn)){if(io=Mn.length,io!==Fn.length)return!1;for(fo=io;fo--!==0;)if(!deepEqual$1(Mn[fo],Fn[fo]))return!1;return!0}if($o=Object.keys(Mn),io=$o.length,io!==Object.keys(Fn).length)return!1;for(fo=io;fo--!==0;)if(!{}.hasOwnProperty.call(Fn,$o[fo]))return!1;for(fo=io;fo--!==0;){const mo=$o[fo];if(!(mo==="_owner"&&Mn.$$typeof)&&!deepEqual$1(Mn[mo],Fn[mo]))return!1}return!0}return Mn!==Mn&&Fn!==Fn}function getDPR(Mn){return typeof window>"u"?1:(Mn.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(Mn,Fn){const io=getDPR(Mn);return Math.round(Fn*io)/io}function useLatestRef(Mn){const Fn=reactExports$1.useRef(Mn);return index$2(()=>{Fn.current=Mn}),Fn}function useFloating(Mn){Mn===void 0&&(Mn={});const{placement:Fn="bottom",strategy:io="absolute",middleware:fo=[],platform:$o,elements:{reference:mo,floating:Ao}={},transform:jo=!0,whileElementsMounted:Lo,open:Ho}=Mn,[zo,Go]=reactExports$1.useState({x:0,y:0,strategy:io,placement:Fn,middlewareData:{},isPositioned:!1}),[Vo,Yo]=reactExports$1.useState(fo);deepEqual$1(Vo,fo)||Yo(fo);const[Xo,is]=reactExports$1.useState(null),[yl,us]=reactExports$1.useState(null),hs=reactExports$1.useCallback($l=>{$l!==Ol.current&&(Ol.current=$l,is($l))},[]),_l=reactExports$1.useCallback($l=>{$l!==Tl.current&&(Tl.current=$l,us($l))},[]),xl=mo||Xo,Il=Ao||yl,Ol=reactExports$1.useRef(null),Tl=reactExports$1.useRef(null),Cl=reactExports$1.useRef(zo),Nl=Lo!=null,Wl=useLatestRef(Lo),Dl=useLatestRef($o),Rl=useLatestRef(Ho),Qo=reactExports$1.useCallback(()=>{if(!Ol.current||!Tl.current)return;const $l={placement:Fn,strategy:io,middleware:Vo};Dl.current&&($l.platform=Dl.current),computePosition(Ol.current,Tl.current,$l).then(El=>{const ds={...El,isPositioned:Rl.current!==!1};Jo.current&&!deepEqual$1(Cl.current,ds)&&(Cl.current=ds,reactDomExports$1.flushSync(()=>{Go(ds)}))})},[Vo,Fn,io,Dl,Rl]);index$2(()=>{Ho===!1&&Cl.current.isPositioned&&(Cl.current.isPositioned=!1,Go($l=>({...$l,isPositioned:!1})))},[Ho]);const Jo=reactExports$1.useRef(!1);index$2(()=>(Jo.current=!0,()=>{Jo.current=!1}),[]),index$2(()=>{if(xl&&(Ol.current=xl),Il&&(Tl.current=Il),xl&&Il){if(Wl.current)return Wl.current(xl,Il,Qo);Qo()}},[xl,Il,Qo,Wl,Nl]);const rs=reactExports$1.useMemo(()=>({reference:Ol,floating:Tl,setReference:hs,setFloating:_l}),[hs,_l]),ps=reactExports$1.useMemo(()=>({reference:xl,floating:Il}),[xl,Il]),_c=reactExports$1.useMemo(()=>{const $l={position:io,left:0,top:0};if(!ps.floating)return $l;const El=roundByDPR(ps.floating,zo.x),ds=roundByDPR(ps.floating,zo.y);return jo?{...$l,transform:"translate("+El+"px, "+ds+"px)",...getDPR(ps.floating)>=1.5&&{willChange:"transform"}}:{position:io,left:El,top:ds}},[io,jo,ps.floating,zo.x,zo.y]);return reactExports$1.useMemo(()=>({...zo,update:Qo,refs:rs,elements:ps,floatingStyles:_c}),[zo,Qo,rs,ps,_c])}const arrow$1=Mn=>{function Fn(io){return{}.hasOwnProperty.call(io,"current")}return{name:"arrow",options:Mn,fn(io){const{element:fo,padding:$o}=typeof Mn=="function"?Mn(io):Mn;return fo&&Fn(fo)?fo.current!=null?arrow$2({element:fo.current,padding:$o}).fn(io):{}:fo?arrow$2({element:fo,padding:$o}).fn(io):{}}}},offset=(Mn,Fn)=>({...offset$1(Mn),options:[Mn,Fn]}),shift=(Mn,Fn)=>({...shift$1(Mn),options:[Mn,Fn]}),limitShift=(Mn,Fn)=>({...limitShift$1(Mn),options:[Mn,Fn]}),flip=(Mn,Fn)=>({...flip$1(Mn),options:[Mn,Fn]}),size$4=(Mn,Fn)=>({...size$5(Mn),options:[Mn,Fn]}),hide=(Mn,Fn)=>({...hide$1(Mn),options:[Mn,Fn]}),arrow=(Mn,Fn)=>({...arrow$1(Mn),options:[Mn,Fn]});var NAME$3="Arrow",Arrow$1=reactExports$1.forwardRef((Mn,Fn)=>{const{children:io,width:fo=10,height:$o=5,...mo}=Mn;return jsxRuntimeExports$1.jsx(Primitive.svg,{...mo,ref:Fn,width:fo,height:$o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:Mn.asChild?io:jsxRuntimeExports$1.jsx("polygon",{points:"0,0 30,0 15,10"})})});Arrow$1.displayName=NAME$3;var Root$1=Arrow$1;function useSize(Mn){const[Fn,io]=reactExports$1.useState(void 0);return useLayoutEffect2(()=>{if(Mn){io({width:Mn.offsetWidth,height:Mn.offsetHeight});const fo=new ResizeObserver($o=>{if(!Array.isArray($o)||!$o.length)return;const mo=$o[0];let Ao,jo;if("borderBoxSize"in mo){const Lo=mo.borderBoxSize,Ho=Array.isArray(Lo)?Lo[0]:Lo;Ao=Ho.inlineSize,jo=Ho.blockSize}else Ao=Mn.offsetWidth,jo=Mn.offsetHeight;io({width:Ao,height:jo})});return fo.observe(Mn,{box:"border-box"}),()=>fo.unobserve(Mn)}else io(void 0)},[Mn]),Fn}var POPPER_NAME="Popper",[createPopperContext,createPopperScope]=createContextScope(POPPER_NAME),[PopperProvider,usePopperContext]=createPopperContext(POPPER_NAME),Popper=Mn=>{const{__scopePopper:Fn,children:io}=Mn,[fo,$o]=reactExports$1.useState(null);return jsxRuntimeExports$1.jsx(PopperProvider,{scope:Fn,anchor:fo,onAnchorChange:$o,children:io})};Popper.displayName=POPPER_NAME;var ANCHOR_NAME$1="PopperAnchor",PopperAnchor=reactExports$1.forwardRef((Mn,Fn)=>{const{__scopePopper:io,virtualRef:fo,...$o}=Mn,mo=usePopperContext(ANCHOR_NAME$1,io),Ao=reactExports$1.useRef(null),jo=useComposedRefs(Fn,Ao);return reactExports$1.useEffect(()=>{mo.onAnchorChange((fo==null?void 0:fo.current)||Ao.current)}),fo?null:jsxRuntimeExports$1.jsx(Primitive.div,{...$o,ref:jo})});PopperAnchor.displayName=ANCHOR_NAME$1;var CONTENT_NAME$3="PopperContent",[PopperContentProvider,useContentContext]=createPopperContext(CONTENT_NAME$3),PopperContent=reactExports$1.forwardRef((Mn,Fn)=>{var Ml,Fl,Yl,Bl,Kl,Gl;const{__scopePopper:io,side:fo="bottom",sideOffset:$o=0,align:mo="center",alignOffset:Ao=0,arrowPadding:jo=0,avoidCollisions:Lo=!0,collisionBoundary:Ho=[],collisionPadding:zo=0,sticky:Go="partial",hideWhenDetached:Vo=!1,updatePositionStrategy:Yo="optimized",onPlaced:Xo,...is}=Mn,yl=usePopperContext(CONTENT_NAME$3,io),[us,hs]=reactExports$1.useState(null),_l=useComposedRefs(Fn,fu=>hs(fu)),[xl,Il]=reactExports$1.useState(null),Ol=useSize(xl),Tl=(Ol==null?void 0:Ol.width)??0,Cl=(Ol==null?void 0:Ol.height)??0,Nl=fo+(mo!=="center"?"-"+mo:""),Wl=typeof zo=="number"?zo:{top:0,right:0,bottom:0,left:0,...zo},Dl=Array.isArray(Ho)?Ho:[Ho],Rl=Dl.length>0,Qo={padding:Wl,boundary:Dl.filter(isNotNull$1),altBoundary:Rl},{refs:Jo,floatingStyles:rs,placement:ps,isPositioned:_c,middlewareData:$l}=useFloating({strategy:"fixed",placement:Nl,whileElementsMounted:(...fu)=>autoUpdate(...fu,{animationFrame:Yo==="always"}),elements:{reference:yl.anchor},middleware:[offset({mainAxis:$o+Cl,alignmentAxis:Ao}),Lo&&shift({mainAxis:!0,crossAxis:!1,limiter:Go==="partial"?limitShift():void 0,...Qo}),Lo&&flip({...Qo}),size$4({...Qo,apply:({elements:fu,rects:bu,availableWidth:rp,availableHeight:tp})=>{const{width:op,height:vp}=bu.reference,ip=fu.floating.style;ip.setProperty("--radix-popper-available-width",`${rp}px`),ip.setProperty("--radix-popper-available-height",`${tp}px`),ip.setProperty("--radix-popper-anchor-width",`${op}px`),ip.setProperty("--radix-popper-anchor-height",`${vp}px`)}}),xl&&arrow({element:xl,padding:jo}),transformOrigin({arrowWidth:Tl,arrowHeight:Cl}),Vo&&hide({strategy:"referenceHidden",...Qo})]}),[El,ds]=getSideAndAlignFromPlacement(ps),os=useCallbackRef$1(Xo);useLayoutEffect2(()=>{_c&&(os==null||os())},[_c,os]);const Al=(Ml=$l.arrow)==null?void 0:Ml.x,Ul=(Fl=$l.arrow)==null?void 0:Fl.y,Zl=((Yl=$l.arrow)==null?void 0:Yl.centerOffset)!==0,[Pl,Hl]=reactExports$1.useState();return useLayoutEffect2(()=>{us&&Hl(window.getComputedStyle(us).zIndex)},[us]),jsxRuntimeExports$1.jsx("div",{ref:Jo.setFloating,"data-radix-popper-content-wrapper":"",style:{...rs,transform:_c?rs.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Pl,"--radix-popper-transform-origin":[(Bl=$l.transformOrigin)==null?void 0:Bl.x,(Kl=$l.transformOrigin)==null?void 0:Kl.y].join(" "),...((Gl=$l.hide)==null?void 0:Gl.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:Mn.dir,children:jsxRuntimeExports$1.jsx(PopperContentProvider,{scope:io,placedSide:El,onArrowChange:Il,arrowX:Al,arrowY:Ul,shouldHideArrow:Zl,children:jsxRuntimeExports$1.jsx(Primitive.div,{"data-side":El,"data-align":ds,...is,ref:_l,style:{...is.style,animation:_c?void 0:"none"}})})})});PopperContent.displayName=CONTENT_NAME$3;var ARROW_NAME$2="PopperArrow",OPPOSITE_SIDE={top:"bottom",right:"left",bottom:"top",left:"right"},PopperArrow=reactExports$1.forwardRef(function(Fn,io){const{__scopePopper:fo,...$o}=Fn,mo=useContentContext(ARROW_NAME$2,fo),Ao=OPPOSITE_SIDE[mo.placedSide];return jsxRuntimeExports$1.jsx("span",{ref:mo.onArrowChange,style:{position:"absolute",left:mo.arrowX,top:mo.arrowY,[Ao]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[mo.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[mo.placedSide],visibility:mo.shouldHideArrow?"hidden":void 0},children:jsxRuntimeExports$1.jsx(Root$1,{...$o,ref:io,style:{...$o.style,display:"block"}})})});PopperArrow.displayName=ARROW_NAME$2;function isNotNull$1(Mn){return Mn!==null}var transformOrigin=Mn=>({name:"transformOrigin",options:Mn,fn(Fn){var yl,us,hs;const{placement:io,rects:fo,middlewareData:$o}=Fn,Ao=((yl=$o.arrow)==null?void 0:yl.centerOffset)!==0,jo=Ao?0:Mn.arrowWidth,Lo=Ao?0:Mn.arrowHeight,[Ho,zo]=getSideAndAlignFromPlacement(io),Go={start:"0%",center:"50%",end:"100%"}[zo],Vo=(((us=$o.arrow)==null?void 0:us.x)??0)+jo/2,Yo=(((hs=$o.arrow)==null?void 0:hs.y)??0)+Lo/2;let Xo="",is="";return Ho==="bottom"?(Xo=Ao?Go:`${Vo}px`,is=`${-Lo}px`):Ho==="top"?(Xo=Ao?Go:`${Vo}px`,is=`${fo.floating.height+Lo}px`):Ho==="right"?(Xo=`${-Lo}px`,is=Ao?Go:`${Yo}px`):Ho==="left"&&(Xo=`${fo.floating.width+Lo}px`,is=Ao?Go:`${Yo}px`),{data:{x:Xo,y:is}}}});function getSideAndAlignFromPlacement(Mn){const[Fn,io="center"]=Mn.split("-");return[Fn,io]}var Root2$2=Popper,Anchor=PopperAnchor,Content$1=PopperContent,Arrow=PopperArrow,PORTAL_NAME$2="Portal",Portal$1=reactExports$1.forwardRef((Mn,Fn)=>{var jo;const{container:io,...fo}=Mn,[$o,mo]=reactExports$1.useState(!1);useLayoutEffect2(()=>mo(!0),[]);const Ao=io||$o&&((jo=globalThis==null?void 0:globalThis.document)==null?void 0:jo.body);return Ao?ReactDOM.createPortal(jsxRuntimeExports$1.jsx(Primitive.div,{...fo,ref:Fn}),Ao):null});Portal$1.displayName=PORTAL_NAME$2;function useStateMachine(Mn,Fn){return reactExports$1.useReducer((io,fo)=>Fn[io][fo]??io,Mn)}var Presence=Mn=>{const{present:Fn,children:io}=Mn,fo=usePresence$1(Fn),$o=typeof io=="function"?io({present:fo.isPresent}):reactExports$1.Children.only(io),mo=useComposedRefs(fo.ref,getElementRef($o));return typeof io=="function"||fo.isPresent?reactExports$1.cloneElement($o,{ref:mo}):null};Presence.displayName="Presence";function usePresence$1(Mn){const[Fn,io]=reactExports$1.useState(),fo=reactExports$1.useRef({}),$o=reactExports$1.useRef(Mn),mo=reactExports$1.useRef("none"),Ao=Mn?"mounted":"unmounted",[jo,Lo]=useStateMachine(Ao,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return reactExports$1.useEffect(()=>{const Ho=getAnimationName(fo.current);mo.current=jo==="mounted"?Ho:"none"},[jo]),useLayoutEffect2(()=>{const Ho=fo.current,zo=$o.current;if(zo!==Mn){const Vo=mo.current,Yo=getAnimationName(Ho);Mn?Lo("MOUNT"):Yo==="none"||(Ho==null?void 0:Ho.display)==="none"?Lo("UNMOUNT"):Lo(zo&&Vo!==Yo?"ANIMATION_OUT":"UNMOUNT"),$o.current=Mn}},[Mn,Lo]),useLayoutEffect2(()=>{if(Fn){let Ho;const zo=Fn.ownerDocument.defaultView??window,Go=Yo=>{const is=getAnimationName(fo.current).includes(Yo.animationName);if(Yo.target===Fn&&is&&(Lo("ANIMATION_END"),!$o.current)){const yl=Fn.style.animationFillMode;Fn.style.animationFillMode="forwards",Ho=zo.setTimeout(()=>{Fn.style.animationFillMode==="forwards"&&(Fn.style.animationFillMode=yl)})}},Vo=Yo=>{Yo.target===Fn&&(mo.current=getAnimationName(fo.current))};return Fn.addEventListener("animationstart",Vo),Fn.addEventListener("animationcancel",Go),Fn.addEventListener("animationend",Go),()=>{zo.clearTimeout(Ho),Fn.removeEventListener("animationstart",Vo),Fn.removeEventListener("animationcancel",Go),Fn.removeEventListener("animationend",Go)}}else Lo("ANIMATION_END")},[Fn,Lo]),{isPresent:["mounted","unmountSuspended"].includes(jo),ref:reactExports$1.useCallback(Ho=>{Ho&&(fo.current=getComputedStyle(Ho)),io(Ho)},[])}}function getAnimationName(Mn){return(Mn==null?void 0:Mn.animationName)||"none"}function getElementRef(Mn){var fo,$o;let Fn=(fo=Object.getOwnPropertyDescriptor(Mn.props,"ref"))==null?void 0:fo.get,io=Fn&&"isReactWarning"in Fn&&Fn.isReactWarning;return io?Mn.ref:(Fn=($o=Object.getOwnPropertyDescriptor(Mn,"ref"))==null?void 0:$o.get,io=Fn&&"isReactWarning"in Fn&&Fn.isReactWarning,io?Mn.props.ref:Mn.props.ref||Mn.ref)}var ENTRY_FOCUS="rovingFocusGroup.onEntryFocus",EVENT_OPTIONS={bubbles:!1,cancelable:!0},GROUP_NAME$2="RovingFocusGroup",[Collection$9,useCollection$1,createCollectionScope$1]=createCollection(GROUP_NAME$2),[createRovingFocusGroupContext,createRovingFocusGroupScope]=createContextScope(GROUP_NAME$2,[createCollectionScope$1]),[RovingFocusProvider,useRovingFocusContext]=createRovingFocusGroupContext(GROUP_NAME$2),RovingFocusGroup=reactExports$1.forwardRef((Mn,Fn)=>jsxRuntimeExports$1.jsx(Collection$9.Provider,{scope:Mn.__scopeRovingFocusGroup,children:jsxRuntimeExports$1.jsx(Collection$9.Slot,{scope:Mn.__scopeRovingFocusGroup,children:jsxRuntimeExports$1.jsx(RovingFocusGroupImpl,{...Mn,ref:Fn})})}));RovingFocusGroup.displayName=GROUP_NAME$2;var RovingFocusGroupImpl=reactExports$1.forwardRef((Mn,Fn)=>{const{__scopeRovingFocusGroup:io,orientation:fo,loop:$o=!1,dir:mo,currentTabStopId:Ao,defaultCurrentTabStopId:jo,onCurrentTabStopIdChange:Lo,onEntryFocus:Ho,preventScrollOnEntryFocus:zo=!1,...Go}=Mn,Vo=reactExports$1.useRef(null),Yo=useComposedRefs(Fn,Vo),Xo=useDirection(mo),[is=null,yl]=useControllableState({prop:Ao,defaultProp:jo,onChange:Lo}),[us,hs]=reactExports$1.useState(!1),_l=useCallbackRef$1(Ho),xl=useCollection$1(io),Il=reactExports$1.useRef(!1),[Ol,Tl]=reactExports$1.useState(0);return reactExports$1.useEffect(()=>{const Cl=Vo.current;if(Cl)return Cl.addEventListener(ENTRY_FOCUS,_l),()=>Cl.removeEventListener(ENTRY_FOCUS,_l)},[_l]),jsxRuntimeExports$1.jsx(RovingFocusProvider,{scope:io,orientation:fo,dir:Xo,loop:$o,currentTabStopId:is,onItemFocus:reactExports$1.useCallback(Cl=>yl(Cl),[yl]),onItemShiftTab:reactExports$1.useCallback(()=>hs(!0),[]),onFocusableItemAdd:reactExports$1.useCallback(()=>Tl(Cl=>Cl+1),[]),onFocusableItemRemove:reactExports$1.useCallback(()=>Tl(Cl=>Cl-1),[]),children:jsxRuntimeExports$1.jsx(Primitive.div,{tabIndex:us||Ol===0?-1:0,"data-orientation":fo,...Go,ref:Yo,style:{outline:"none",...Mn.style},onMouseDown:composeEventHandlers(Mn.onMouseDown,()=>{Il.current=!0}),onFocus:composeEventHandlers(Mn.onFocus,Cl=>{const Nl=!Il.current;if(Cl.target===Cl.currentTarget&&Nl&&!us){const Wl=new CustomEvent(ENTRY_FOCUS,EVENT_OPTIONS);if(Cl.currentTarget.dispatchEvent(Wl),!Wl.defaultPrevented){const Dl=xl().filter(ps=>ps.focusable),Rl=Dl.find(ps=>ps.active),Qo=Dl.find(ps=>ps.id===is),rs=[Rl,Qo,...Dl].filter(Boolean).map(ps=>ps.ref.current);focusFirst$1(rs,zo)}}Il.current=!1}),onBlur:composeEventHandlers(Mn.onBlur,()=>hs(!1))})})}),ITEM_NAME$2="RovingFocusGroupItem",RovingFocusGroupItem=reactExports$1.forwardRef((Mn,Fn)=>{const{__scopeRovingFocusGroup:io,focusable:fo=!0,active:$o=!1,tabStopId:mo,...Ao}=Mn,jo=useId(),Lo=mo||jo,Ho=useRovingFocusContext(ITEM_NAME$2,io),zo=Ho.currentTabStopId===Lo,Go=useCollection$1(io),{onFocusableItemAdd:Vo,onFocusableItemRemove:Yo}=Ho;return reactExports$1.useEffect(()=>{if(fo)return Vo(),()=>Yo()},[fo,Vo,Yo]),jsxRuntimeExports$1.jsx(Collection$9.ItemSlot,{scope:io,id:Lo,focusable:fo,active:$o,children:jsxRuntimeExports$1.jsx(Primitive.span,{tabIndex:zo?0:-1,"data-orientation":Ho.orientation,...Ao,ref:Fn,onMouseDown:composeEventHandlers(Mn.onMouseDown,Xo=>{fo?Ho.onItemFocus(Lo):Xo.preventDefault()}),onFocus:composeEventHandlers(Mn.onFocus,()=>Ho.onItemFocus(Lo)),onKeyDown:composeEventHandlers(Mn.onKeyDown,Xo=>{if(Xo.key==="Tab"&&Xo.shiftKey){Ho.onItemShiftTab();return}if(Xo.target!==Xo.currentTarget)return;const is=getFocusIntent(Xo,Ho.orientation,Ho.dir);if(is!==void 0){if(Xo.metaKey||Xo.ctrlKey||Xo.altKey||Xo.shiftKey)return;Xo.preventDefault();let us=Go().filter(hs=>hs.focusable).map(hs=>hs.ref.current);if(is==="last")us.reverse();else if(is==="prev"||is==="next"){is==="prev"&&us.reverse();const hs=us.indexOf(Xo.currentTarget);us=Ho.loop?wrapArray$1(us,hs+1):us.slice(hs+1)}setTimeout(()=>focusFirst$1(us))}})})})});RovingFocusGroupItem.displayName=ITEM_NAME$2;var MAP_KEY_TO_FOCUS_INTENT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function getDirectionAwareKey(Mn,Fn){return Fn!=="rtl"?Mn:Mn==="ArrowLeft"?"ArrowRight":Mn==="ArrowRight"?"ArrowLeft":Mn}function getFocusIntent(Mn,Fn,io){const fo=getDirectionAwareKey(Mn.key,io);if(!(Fn==="vertical"&&["ArrowLeft","ArrowRight"].includes(fo))&&!(Fn==="horizontal"&&["ArrowUp","ArrowDown"].includes(fo)))return MAP_KEY_TO_FOCUS_INTENT[fo]}function focusFirst$1(Mn,Fn=!1){const io=document.activeElement;for(const fo of Mn)if(fo===io||(fo.focus({preventScroll:Fn}),document.activeElement!==io))return}function wrapArray$1(Mn,Fn){return Mn.map((io,fo)=>Mn[(Fn+fo)%Mn.length])}var Root=RovingFocusGroup,Item$1=RovingFocusGroupItem,getDefaultParent=function(Mn){if(typeof document>"u")return null;var Fn=Array.isArray(Mn)?Mn[0]:Mn;return Fn.ownerDocument.body},counterMap=new WeakMap,uncontrolledNodes=new WeakMap,markerMap={},lockCount=0,unwrapHost=function(Mn){return Mn&&(Mn.host||unwrapHost(Mn.parentNode))},correctTargets=function(Mn,Fn){return Fn.map(function(io){if(Mn.contains(io))return io;var fo=unwrapHost(io);return fo&&Mn.contains(fo)?fo:(console.error("aria-hidden",io,"in not contained inside",Mn,". Doing nothing"),null)}).filter(function(io){return!!io})},applyAttributeToOthers=function(Mn,Fn,io,fo){var $o=correctTargets(Fn,Array.isArray(Mn)?Mn:[Mn]);markerMap[io]||(markerMap[io]=new WeakMap);var mo=markerMap[io],Ao=[],jo=new Set,Lo=new Set($o),Ho=function(Go){!Go||jo.has(Go)||(jo.add(Go),Ho(Go.parentNode))};$o.forEach(Ho);var zo=function(Go){!Go||Lo.has(Go)||Array.prototype.forEach.call(Go.children,function(Vo){if(jo.has(Vo))zo(Vo);else try{var Yo=Vo.getAttribute(fo),Xo=Yo!==null&&Yo!=="false",is=(counterMap.get(Vo)||0)+1,yl=(mo.get(Vo)||0)+1;counterMap.set(Vo,is),mo.set(Vo,yl),Ao.push(Vo),is===1&&Xo&&uncontrolledNodes.set(Vo,!0),yl===1&&Vo.setAttribute(io,"true"),Xo||Vo.setAttribute(fo,"true")}catch(us){console.error("aria-hidden: cannot operate on ",Vo,us)}})};return zo(Fn),jo.clear(),lockCount++,function(){Ao.forEach(function(Go){var Vo=counterMap.get(Go)-1,Yo=mo.get(Go)-1;counterMap.set(Go,Vo),mo.set(Go,Yo),Vo||(uncontrolledNodes.has(Go)||Go.removeAttribute(fo),uncontrolledNodes.delete(Go)),Yo||Go.removeAttribute(io)}),lockCount--,lockCount||(counterMap=new WeakMap,counterMap=new WeakMap,uncontrolledNodes=new WeakMap,markerMap={})}},hideOthers=function(Mn,Fn,io){io===void 0&&(io="data-aria-hidden");var fo=Array.from(Array.isArray(Mn)?Mn:[Mn]),$o=getDefaultParent(Mn);return $o?(fo.push.apply(fo,Array.from($o.querySelectorAll("[aria-live]"))),applyAttributeToOthers(fo,$o,io,"aria-hidden")):function(){return null}},extendStatics$1=function(Mn,Fn){return extendStatics$1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(io,fo){io.__proto__=fo}||function(io,fo){for(var $o in fo)Object.prototype.hasOwnProperty.call(fo,$o)&&(io[$o]=fo[$o])},extendStatics$1(Mn,Fn)};function __extends$5(Mn,Fn){if(typeof Fn!="function"&&Fn!==null)throw new TypeError("Class extends value "+String(Fn)+" is not a constructor or null");extendStatics$1(Mn,Fn);function io(){this.constructor=Mn}Mn.prototype=Fn===null?Object.create(Fn):(io.prototype=Fn.prototype,new io)}var __assign$2=function(){return __assign$2=Object.assign||function(Fn){for(var io,fo=1,$o=arguments.length;fo<$o;fo++){io=arguments[fo];for(var mo in io)Object.prototype.hasOwnProperty.call(io,mo)&&(Fn[mo]=io[mo])}return Fn},__assign$2.apply(this,arguments)};function __rest$8(Mn,Fn){var io={};for(var fo in Mn)Object.prototype.hasOwnProperty.call(Mn,fo)&&Fn.indexOf(fo)<0&&(io[fo]=Mn[fo]);if(Mn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $o=0,fo=Object.getOwnPropertySymbols(Mn);$o<fo.length;$o++)Fn.indexOf(fo[$o])<0&&Object.prototype.propertyIsEnumerable.call(Mn,fo[$o])&&(io[fo[$o]]=Mn[fo[$o]]);return io}function __values$1(Mn){var Fn=typeof Symbol=="function"&&Symbol.iterator,io=Fn&&Mn[Fn],fo=0;if(io)return io.call(Mn);if(Mn&&typeof Mn.length=="number")return{next:function(){return Mn&&fo>=Mn.length&&(Mn=void 0),{value:Mn&&Mn[fo++],done:!Mn}}};throw new TypeError(Fn?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read$1(Mn,Fn){var io=typeof Symbol=="function"&&Mn[Symbol.iterator];if(!io)return Mn;var fo=io.call(Mn),$o,mo=[],Ao;try{for(;(Fn===void 0||Fn-- >0)&&!($o=fo.next()).done;)mo.push($o.value)}catch(jo){Ao={error:jo}}finally{try{$o&&!$o.done&&(io=fo.return)&&io.call(fo)}finally{if(Ao)throw Ao.error}}return mo}function __spreadArray$1(Mn,Fn,io){if(io||arguments.length===2)for(var fo=0,$o=Fn.length,mo;fo<$o;fo++)(mo||!(fo in Fn))&&(mo||(mo=Array.prototype.slice.call(Fn,0,fo)),mo[fo]=Fn[fo]);return Mn.concat(mo||Array.prototype.slice.call(Fn))}typeof SuppressedError=="function"&&SuppressedError;var zeroRightClassName="right-scroll-bar-position",fullWidthClassName="width-before-scroll-bar",noScrollbarsClassName="with-scroll-bars-hidden",removedBarSizeVariable="--removed-body-scroll-bar-size";function assignRef(Mn,Fn){return typeof Mn=="function"?Mn(Fn):Mn&&(Mn.current=Fn),Mn}function useCallbackRef(Mn,Fn){var io=reactExports$1.useState(function(){return{value:Mn,callback:Fn,facade:{get current(){return io.value},set current(fo){var $o=io.value;$o!==fo&&(io.value=fo,io.callback(fo,$o))}}}})[0];return io.callback=Fn,io.facade}var useIsomorphicLayoutEffect$1=typeof window<"u"?reactExports$1.useLayoutEffect:reactExports$1.useEffect,currentValues=new WeakMap;function useMergeRefs(Mn,Fn){var io=useCallbackRef(null,function(fo){return Mn.forEach(function($o){return assignRef($o,fo)})});return useIsomorphicLayoutEffect$1(function(){var fo=currentValues.get(io);if(fo){var $o=new Set(fo),mo=new Set(Mn),Ao=io.current;$o.forEach(function(jo){mo.has(jo)||assignRef(jo,null)}),mo.forEach(function(jo){$o.has(jo)||assignRef(jo,Ao)})}currentValues.set(io,Mn)},[Mn]),io}function ItoI(Mn){return Mn}function innerCreateMedium(Mn,Fn){Fn===void 0&&(Fn=ItoI);var io=[],fo=!1,$o={read:function(){if(fo)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return io.length?io[io.length-1]:Mn},useMedium:function(mo){var Ao=Fn(mo,fo);return io.push(Ao),function(){io=io.filter(function(jo){return jo!==Ao})}},assignSyncMedium:function(mo){for(fo=!0;io.length;){var Ao=io;io=[],Ao.forEach(mo)}io={push:function(jo){return mo(jo)},filter:function(){return io}}},assignMedium:function(mo){fo=!0;var Ao=[];if(io.length){var jo=io;io=[],jo.forEach(mo),Ao=io}var Lo=function(){var zo=Ao;Ao=[],zo.forEach(mo)},Ho=function(){return Promise.resolve().then(Lo)};Ho(),io={push:function(zo){Ao.push(zo),Ho()},filter:function(zo){return Ao=Ao.filter(zo),io}}}};return $o}function createSidecarMedium(Mn){Mn===void 0&&(Mn={});var Fn=innerCreateMedium(null);return Fn.options=__assign$2({async:!0,ssr:!1},Mn),Fn}var SideCar$1=function(Mn){var Fn=Mn.sideCar,io=__rest$8(Mn,["sideCar"]);if(!Fn)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var fo=Fn.read();if(!fo)throw new Error("Sidecar medium not found");return reactExports$1.createElement(fo,__assign$2({},io))};SideCar$1.isSideCarExport=!0;function exportSidecar(Mn,Fn){return Mn.useMedium(Fn),SideCar$1}var effectCar=createSidecarMedium(),nothing=function(){},RemoveScroll=reactExports$1.forwardRef(function(Mn,Fn){var io=reactExports$1.useRef(null),fo=reactExports$1.useState({onScrollCapture:nothing,onWheelCapture:nothing,onTouchMoveCapture:nothing}),$o=fo[0],mo=fo[1],Ao=Mn.forwardProps,jo=Mn.children,Lo=Mn.className,Ho=Mn.removeScrollBar,zo=Mn.enabled,Go=Mn.shards,Vo=Mn.sideCar,Yo=Mn.noIsolation,Xo=Mn.inert,is=Mn.allowPinchZoom,yl=Mn.as,us=yl===void 0?"div":yl,hs=Mn.gapMode,_l=__rest$8(Mn,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),xl=Vo,Il=useMergeRefs([io,Fn]),Ol=__assign$2(__assign$2({},_l),$o);return reactExports$1.createElement(reactExports$1.Fragment,null,zo&&reactExports$1.createElement(xl,{sideCar:effectCar,removeScrollBar:Ho,shards:Go,noIsolation:Yo,inert:Xo,setCallbacks:mo,allowPinchZoom:!!is,lockRef:io,gapMode:hs}),Ao?reactExports$1.cloneElement(reactExports$1.Children.only(jo),__assign$2(__assign$2({},Ol),{ref:Il})):reactExports$1.createElement(us,__assign$2({},Ol,{className:Lo,ref:Il}),jo))});RemoveScroll.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};RemoveScroll.classNames={fullWidth:fullWidthClassName,zeroRight:zeroRightClassName};var getNonce=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function makeStyleTag(){if(!document)return null;var Mn=document.createElement("style");Mn.type="text/css";var Fn=getNonce();return Fn&&Mn.setAttribute("nonce",Fn),Mn}function injectStyles(Mn,Fn){Mn.styleSheet?Mn.styleSheet.cssText=Fn:Mn.appendChild(document.createTextNode(Fn))}function insertStyleTag(Mn){var Fn=document.head||document.getElementsByTagName("head")[0];Fn.appendChild(Mn)}var stylesheetSingleton=function(){var Mn=0,Fn=null;return{add:function(io){Mn==0&&(Fn=makeStyleTag())&&(injectStyles(Fn,io),insertStyleTag(Fn)),Mn++},remove:function(){Mn--,!Mn&&Fn&&(Fn.parentNode&&Fn.parentNode.removeChild(Fn),Fn=null)}}},styleHookSingleton=function(){var Mn=stylesheetSingleton();return function(Fn,io){reactExports$1.useEffect(function(){return Mn.add(Fn),function(){Mn.remove()}},[Fn&&io])}},styleSingleton=function(){var Mn=styleHookSingleton(),Fn=function(io){var fo=io.styles,$o=io.dynamic;return Mn(fo,$o),null};return Fn},zeroGap={left:0,top:0,right:0,gap:0},parse$a=function(Mn){return parseInt(Mn||"",10)||0},getOffset=function(Mn){var Fn=window.getComputedStyle(document.body),io=Fn[Mn==="padding"?"paddingLeft":"marginLeft"],fo=Fn[Mn==="padding"?"paddingTop":"marginTop"],$o=Fn[Mn==="padding"?"paddingRight":"marginRight"];return[parse$a(io),parse$a(fo),parse$a($o)]},getGapWidth=function(Mn){if(Mn===void 0&&(Mn="margin"),typeof window>"u")return zeroGap;var Fn=getOffset(Mn),io=document.documentElement.clientWidth,fo=window.innerWidth;return{left:Fn[0],top:Fn[1],right:Fn[2],gap:Math.max(0,fo-io+Fn[2]-Fn[0])}},Style=styleSingleton(),lockAttribute="data-scroll-locked",getStyles=function(Mn,Fn,io,fo){var $o=Mn.left,mo=Mn.top,Ao=Mn.right,jo=Mn.gap;return io===void 0&&(io="margin"),`
.`.concat(noScrollbarsClassName,` {
overflow: hidden `).concat(fo,`;
padding-right: `).concat(jo,"px ").concat(fo,`;
}
body[`).concat(lockAttribute,`] {
overflow: hidden `).concat(fo,`;
overscroll-behavior: contain;
`).concat([Fn&&"position: relative ".concat(fo,";"),io==="margin"&&`
padding-left: `.concat($o,`px;
padding-top: `).concat(mo,`px;
padding-right: `).concat(Ao,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(jo,"px ").concat(fo,`;
`),io==="padding"&&"padding-right: ".concat(jo,"px ").concat(fo,";")].filter(Boolean).join(""),`
}
.`).concat(zeroRightClassName,` {
right: `).concat(jo,"px ").concat(fo,`;
}
.`).concat(fullWidthClassName,` {
margin-right: `).concat(jo,"px ").concat(fo,`;
}
.`).concat(zeroRightClassName," .").concat(zeroRightClassName,` {
right: 0 `).concat(fo,`;
}
.`).concat(fullWidthClassName," .").concat(fullWidthClassName,` {
margin-right: 0 `).concat(fo,`;
}
body[`).concat(lockAttribute,`] {
`).concat(removedBarSizeVariable,": ").concat(jo,`px;
}
`)},getCurrentUseCounter=function(){var Mn=parseInt(document.body.getAttribute(lockAttribute)||"0",10);return isFinite(Mn)?Mn:0},useLockAttribute=function(){reactExports$1.useEffect(function(){return document.body.setAttribute(lockAttribute,(getCurrentUseCounter()+1).toString()),function(){var Mn=getCurrentUseCounter()-1;Mn<=0?document.body.removeAttribute(lockAttribute):document.body.setAttribute(lockAttribute,Mn.toString())}},[])},RemoveScrollBar=function(Mn){var Fn=Mn.noRelative,io=Mn.noImportant,fo=Mn.gapMode,$o=fo===void 0?"margin":fo;useLockAttribute();var mo=reactExports$1.useMemo(function(){return getGapWidth($o)},[$o]);return reactExports$1.createElement(Style,{styles:getStyles(mo,!Fn,$o,io?"":"!important")})},passiveSupported=!1;if(typeof window<"u")try{var options$1=Object.defineProperty({},"passive",{get:function(){return passiveSupported=!0,!0}});window.addEventListener("test",options$1,options$1),window.removeEventListener("test",options$1,options$1)}catch{passiveSupported=!1}var nonPassive=passiveSupported?{passive:!1}:!1,alwaysContainsScroll=function(Mn){return Mn.tagName==="TEXTAREA"},elementCanBeScrolled=function(Mn,Fn){if(!(Mn instanceof Element))return!1;var io=window.getComputedStyle(Mn);return io[Fn]!=="hidden"&&!(io.overflowY===io.overflowX&&!alwaysContainsScroll(Mn)&&io[Fn]==="visible")},elementCouldBeVScrolled=function(Mn){return elementCanBeScrolled(Mn,"overflowY")},elementCouldBeHScrolled=function(Mn){return elementCanBeScrolled(Mn,"overflowX")},locationCouldBeScrolled=function(Mn,Fn){var io=Fn.ownerDocument,fo=Fn;do{typeof ShadowRoot<"u"&&fo instanceof ShadowRoot&&(fo=fo.host);var $o=elementCouldBeScrolled(Mn,fo);if($o){var mo=getScrollVariables(Mn,fo),Ao=mo[1],jo=mo[2];if(Ao>jo)return!0}fo=fo.parentNode}while(fo&&fo!==io.body);return!1},getVScrollVariables=function(Mn){var Fn=Mn.scrollTop,io=Mn.scrollHeight,fo=Mn.clientHeight;return[Fn,io,fo]},getHScrollVariables=function(Mn){var Fn=Mn.scrollLeft,io=Mn.scrollWidth,fo=Mn.clientWidth;return[Fn,io,fo]},elementCouldBeScrolled=function(Mn,Fn){return Mn==="v"?elementCouldBeVScrolled(Fn):elementCouldBeHScrolled(Fn)},getScrollVariables=function(Mn,Fn){return Mn==="v"?getVScrollVariables(Fn):getHScrollVariables(Fn)},getDirectionFactor=function(Mn,Fn){return Mn==="h"&&Fn==="rtl"?-1:1},handleScroll=function(Mn,Fn,io,fo,$o){var mo=getDirectionFactor(Mn,window.getComputedStyle(Fn).direction),Ao=mo*fo,jo=io.target,Lo=Fn.contains(jo),Ho=!1,zo=Ao>0,Go=0,Vo=0;do{var Yo=getScrollVariables(Mn,jo),Xo=Yo[0],is=Yo[1],yl=Yo[2],us=is-yl-mo*Xo;(Xo||us)&&elementCouldBeScrolled(Mn,jo)&&(Go+=us,Vo+=Xo),jo instanceof ShadowRoot?jo=jo.host:jo=jo.parentNode}while(!Lo&&jo!==document.body||Lo&&(Fn.contains(jo)||Fn===jo));return(zo&&(Math.abs(Go)<1||!$o)||!zo&&(Math.abs(Vo)<1||!$o))&&(Ho=!0),Ho},getTouchXY=function(Mn){return"changedTouches"in Mn?[Mn.changedTouches[0].clientX,Mn.changedTouches[0].clientY]:[0,0]},getDeltaXY=function(Mn){return[Mn.deltaX,Mn.deltaY]},extractRef=function(Mn){return Mn&&"current"in Mn?Mn.current:Mn},deltaCompare=function(Mn,Fn){return Mn[0]===Fn[0]&&Mn[1]===Fn[1]},generateStyle=function(Mn){return`
.block-interactivity-`.concat(Mn,` {pointer-events: none;}
.allow-interactivity-`).concat(Mn,` {pointer-events: all;}
`)},idCounter=0,lockStack=[];function RemoveScrollSideCar(Mn){var Fn=reactExports$1.useRef([]),io=reactExports$1.useRef([0,0]),fo=reactExports$1.useRef(),$o=reactExports$1.useState(idCounter++)[0],mo=reactExports$1.useState(styleSingleton)[0],Ao=reactExports$1.useRef(Mn);reactExports$1.useEffect(function(){Ao.current=Mn},[Mn]),reactExports$1.useEffect(function(){if(Mn.inert){document.body.classList.add("block-interactivity-".concat($o));var is=__spreadArray$1([Mn.lockRef.current],(Mn.shards||[]).map(extractRef),!0).filter(Boolean);return is.forEach(function(yl){return yl.classList.add("allow-interactivity-".concat($o))}),function(){document.body.classList.remove("block-interactivity-".concat($o)),is.forEach(function(yl){return yl.classList.remove("allow-interactivity-".concat($o))})}}},[Mn.inert,Mn.lockRef.current,Mn.shards]);var jo=reactExports$1.useCallback(function(is,yl){if("touches"in is&&is.touches.length===2||is.type==="wheel"&&is.ctrlKey)return!Ao.current.allowPinchZoom;var us=getTouchXY(is),hs=io.current,_l="deltaX"in is?is.deltaX:hs[0]-us[0],xl="deltaY"in is?is.deltaY:hs[1]-us[1],Il,Ol=is.target,Tl=Math.abs(_l)>Math.abs(xl)?"h":"v";if("touches"in is&&Tl==="h"&&Ol.type==="range")return!1;var Cl=locationCouldBeScrolled(Tl,Ol);if(!Cl)return!0;if(Cl?Il=Tl:(Il=Tl==="v"?"h":"v",Cl=locationCouldBeScrolled(Tl,Ol)),!Cl)return!1;if(!fo.current&&"changedTouches"in is&&(_l||xl)&&(fo.current=Il),!Il)return!0;var Nl=fo.current||Il;return handleScroll(Nl,yl,is,Nl==="h"?_l:xl,!0)},[]),Lo=reactExports$1.useCallback(function(is){var yl=is;if(!(!lockStack.length||lockStack[lockStack.length-1]!==mo)){var us="deltaY"in yl?getDeltaXY(yl):getTouchXY(yl),hs=Fn.current.filter(function(Il){return Il.name===yl.type&&(Il.target===yl.target||yl.target===Il.shadowParent)&&deltaCompare(Il.delta,us)})[0];if(hs&&hs.should){yl.cancelable&&yl.preventDefault();return}if(!hs){var _l=(Ao.current.shards||[]).map(extractRef).filter(Boolean).filter(function(Il){return Il.contains(yl.target)}),xl=_l.length>0?jo(yl,_l[0]):!Ao.current.noIsolation;xl&&yl.cancelable&&yl.preventDefault()}}},[]),Ho=reactExports$1.useCallback(function(is,yl,us,hs){var _l={name:is,delta:yl,target:us,should:hs,shadowParent:getOutermostShadowParent(us)};Fn.current.push(_l),setTimeout(function(){Fn.current=Fn.current.filter(function(xl){return xl!==_l})},1)},[]),zo=reactExports$1.useCallback(function(is){io.current=getTouchXY(is),fo.current=void 0},[]),Go=reactExports$1.useCallback(function(is){Ho(is.type,getDeltaXY(is),is.target,jo(is,Mn.lockRef.current))},[]),Vo=reactExports$1.useCallback(function(is){Ho(is.type,getTouchXY(is),is.target,jo(is,Mn.lockRef.current))},[]);reactExports$1.useEffect(function(){return lockStack.push(mo),Mn.setCallbacks({onScrollCapture:Go,onWheelCapture:Go,onTouchMoveCapture:Vo}),document.addEventListener("wheel",Lo,nonPassive),document.addEventListener("touchmove",Lo,nonPassive),document.addEventListener("touchstart",zo,nonPassive),function(){lockStack=lockStack.filter(function(is){return is!==mo}),document.removeEventListener("wheel",Lo,nonPassive),document.removeEventListener("touchmove",Lo,nonPassive),document.removeEventListener("touchstart",zo,nonPassive)}},[]);var Yo=Mn.removeScrollBar,Xo=Mn.inert;return reactExports$1.createElement(reactExports$1.Fragment,null,Xo?reactExports$1.createElement(mo,{styles:generateStyle($o)}):null,Yo?reactExports$1.createElement(RemoveScrollBar,{gapMode:Mn.gapMode}):null)}function getOutermostShadowParent(Mn){for(var Fn=null;Mn!==null;)Mn instanceof ShadowRoot&&(Fn=Mn.host,Mn=Mn.host),Mn=Mn.parentNode;return Fn}const SideCar=exportSidecar(effectCar,RemoveScrollSideCar);var ReactRemoveScroll=reactExports$1.forwardRef(function(Mn,Fn){return reactExports$1.createElement(RemoveScroll,__assign$2({},Mn,{ref:Fn,sideCar:SideCar}))});ReactRemoveScroll.classNames=RemoveScroll.classNames;var SELECTION_KEYS=["Enter"," "],FIRST_KEYS=["ArrowDown","PageUp","Home"],LAST_KEYS=["ArrowUp","PageDown","End"],FIRST_LAST_KEYS=[...FIRST_KEYS,...LAST_KEYS],SUB_OPEN_KEYS={ltr:[...SELECTION_KEYS,"ArrowRight"],rtl:[...SELECTION_KEYS,"ArrowLeft"]},SUB_CLOSE_KEYS={ltr:["ArrowLeft"],rtl:["ArrowRight"]},MENU_NAME="Menu",[Collection$8,useCollection,createCollectionScope]=createCollection(MENU_NAME),[createMenuContext,createMenuScope]=createContextScope$1(MENU_NAME,[createCollectionScope,createPopperScope,createRovingFocusGroupScope]),usePopperScope=createPopperScope(),useRovingFocusGroupScope$1=createRovingFocusGroupScope(),[MenuProvider,useMenuContext]=createMenuContext(MENU_NAME),[MenuRootProvider,useMenuRootContext]=createMenuContext(MENU_NAME),Menu=Mn=>{const{__scopeMenu:Fn,open:io=!1,children:fo,dir:$o,onOpenChange:mo,modal:Ao=!0}=Mn,jo=usePopperScope(Fn),[Lo,Ho]=reactExports$1.useState(null),zo=reactExports$1.useRef(!1),Go=useCallbackRef$1(mo),Vo=useDirection($o);return reactExports$1.useEffect(()=>{const Yo=()=>{zo.current=!0,document.addEventListener("pointerdown",Xo,{capture:!0,once:!0}),document.addEventListener("pointermove",Xo,{capture:!0,once:!0})},Xo=()=>zo.current=!1;return document.addEventListener("keydown",Yo,{capture:!0}),()=>{document.removeEventListener("keydown",Yo,{capture:!0}),document.removeEventListener("pointerdown",Xo,{capture:!0}),document.removeEventListener("pointermove",Xo,{capture:!0})}},[]),jsxRuntimeExports$1.jsx(Root2$2,{...jo,children:jsxRuntimeExports$1.jsx(MenuProvider,{scope:Fn,open:io,onOpenChange:Go,content:Lo,onContentChange:Ho,children:jsxRuntimeExports$1.jsx(MenuRootProvider,{scope:Fn,onClose:reactExports$1.useCallback(()=>Go(!1),[Go]),isUsingKeyboardRef:zo,dir:Vo,modal:Ao,children:fo})})})};Menu.displayName=MENU_NAME;var ANCHOR_NAME="MenuAnchor",MenuAnchor=reactExports$1.forwardRef((Mn,Fn)=>{const{__scopeMenu:io,...fo}=Mn,$o=usePopperScope(io);return jsxRuntimeExports$1.jsx(Anchor,{...$o,...fo,ref:Fn})});MenuAnchor.displayName=ANCHOR_NAME;var PORTAL_NAME$1="MenuPortal",[PortalProvider,usePortalContext]=createMenuContext(PORTAL_NAME$1,{forceMount:void 0}),MenuPortal=Mn=>{const{__scopeMenu:Fn,forceMount:io,children:fo,container:$o}=Mn,mo=useMenuContext(PORTAL_NAME$1,Fn);return jsxRuntimeExports$1.jsx(PortalProvider,{scope:Fn,forceMount:io,children:jsxRuntimeExports$1.jsx(Presence,{present:io||mo.open,children:jsxRuntimeExports$1.jsx(Portal$1,{asChild:!0,container:$o,children:fo})})})};MenuPortal.displayName=PORTAL_NAME$1;var CONTENT_NAME$2="MenuContent",[MenuContentProvider,useMenuContentContext]=createMenuContext(CONTENT_NAME$2),MenuContent=reactExports$1.forwardRef((Mn,Fn)=>{const io=usePortalContext(CONTENT_NAME$2,Mn.__scopeMenu),{forceMount:fo=io.forceMount,...$o}=Mn,mo=useMenuContext(CONTENT_NAME$2,Mn.__scopeMenu),Ao=useMenuRootContext(CONTENT_NAME$2,Mn.__scopeMenu);return jsxRuntimeExports$1.jsx(Collection$8.Provider,{scope:Mn.__scopeMenu,children:jsxRuntimeExports$1.jsx(Presence,{present:fo||mo.open,children:jsxRuntimeExports$1.jsx(Collection$8.Slot,{scope:Mn.__scopeMenu,children:Ao.modal?jsxRuntimeExports$1.jsx(MenuRootContentModal,{...$o,ref:Fn}):jsxRuntimeExports$1.jsx(MenuRootContentNonModal,{...$o,ref:Fn})})})})}),MenuRootContentModal=reactExports$1.forwardRef((Mn,Fn)=>{const io=useMenuContext(CONTENT_NAME$2,Mn.__scopeMenu),fo=reactExports$1.useRef(null),$o=useComposedRefs(Fn,fo);return reactExports$1.useEffect(()=>{const mo=fo.current;if(mo)return hideOthers(mo)},[]),jsxRuntimeExports$1.jsx(MenuContentImpl,{...Mn,ref:$o,trapFocus:io.open,disableOutsidePointerEvents:io.open,disableOutsideScroll:!0,onFocusOutside:composeEventHandlers(Mn.onFocusOutside,mo=>mo.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>io.onOpenChange(!1)})}),MenuRootContentNonModal=reactExports$1.forwardRef((Mn,Fn)=>{const io=useMenuContext(CONTENT_NAME$2,Mn.__scopeMenu);return jsxRuntimeExports$1.jsx(MenuContentImpl,{...Mn,ref:Fn,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>io.onOpenChange(!1)})}),MenuContentImpl=reactExports$1.forwardRef((Mn,Fn)=>{const{__scopeMenu:io,loop:fo=!1,trapFocus:$o,onOpenAutoFocus:mo,onCloseAutoFocus:Ao,disableOutsidePointerEvents:jo,onEntryFocus:Lo,onEscapeKeyDown:Ho,onPointerDownOutside:zo,onFocusOutside:Go,onInteractOutside:Vo,onDismiss:Yo,disableOutsideScroll:Xo,...is}=Mn,yl=useMenuContext(CONTENT_NAME$2,io),us=useMenuRootContext(CONTENT_NAME$2,io),hs=usePopperScope(io),_l=useRovingFocusGroupScope$1(io),xl=useCollection(io),[Il,Ol]=reactExports$1.useState(null),Tl=reactExports$1.useRef(null),Cl=useComposedRefs(Fn,Tl,yl.onContentChange),Nl=reactExports$1.useRef(0),Wl=reactExports$1.useRef(""),Dl=reactExports$1.useRef(0),Rl=reactExports$1.useRef(null),Qo=reactExports$1.useRef("right"),Jo=reactExports$1.useRef(0),rs=Xo?ReactRemoveScroll:reactExports$1.Fragment,ps=Xo?{as:Slot,allowPinchZoom:!0}:void 0,_c=El=>{var Ml,Fl;const ds=Wl.current+El,os=xl().filter(Yl=>!Yl.disabled),Al=document.activeElement,Ul=(Ml=os.find(Yl=>Yl.ref.current===Al))==null?void 0:Ml.textValue,Zl=os.map(Yl=>Yl.textValue),Pl=getNextMatch(Zl,ds,Ul),Hl=(Fl=os.find(Yl=>Yl.textValue===Pl))==null?void 0:Fl.ref.current;(function Yl(Bl){Wl.current=Bl,window.clearTimeout(Nl.current),Bl!==""&&(Nl.current=window.setTimeout(()=>Yl(""),1e3))})(ds),Hl&&setTimeout(()=>Hl.focus())};reactExports$1.useEffect(()=>()=>window.clearTimeout(Nl.current),[]),useFocusGuards();const $l=reactExports$1.useCallback(El=>{var os,Al;return Qo.current===((os=Rl.current)==null?void 0:os.side)&&isPointerInGraceArea(El,(Al=Rl.current)==null?void 0:Al.area)},[]);return jsxRuntimeExports$1.jsx(MenuContentProvider,{scope:io,searchRef:Wl,onItemEnter:reactExports$1.useCallback(El=>{$l(El)&&El.preventDefault()},[$l]),onItemLeave:reactExports$1.useCallback(El=>{var ds;$l(El)||((ds=Tl.current)==null||ds.focus(),Ol(null))},[$l]),onTriggerLeave:reactExports$1.useCallback(El=>{$l(El)&&El.preventDefault()},[$l]),pointerGraceTimerRef:Dl,onPointerGraceIntentChange:reactExports$1.useCallback(El=>{Rl.current=El},[]),children:jsxRuntimeExports$1.jsx(rs,{...ps,children:jsxRuntimeExports$1.jsx(FocusScope,{asChild:!0,trapped:$o,onMountAutoFocus:composeEventHandlers(mo,El=>{var ds;El.preventDefault(),(ds=Tl.current)==null||ds.focus({preventScroll:!0})}),onUnmountAutoFocus:Ao,children:jsxRuntimeExports$1.jsx(DismissableLayer,{asChild:!0,disableOutsidePointerEvents:jo,onEscapeKeyDown:Ho,onPointerDownOutside:zo,onFocusOutside:Go,onInteractOutside:Vo,onDismiss:Yo,children:jsxRuntimeExports$1.jsx(Root,{asChild:!0,..._l,dir:us.dir,orientation:"vertical",loop:fo,currentTabStopId:Il,onCurrentTabStopIdChange:Ol,onEntryFocus:composeEventHandlers(Lo,El=>{us.isUsingKeyboardRef.current||El.preventDefault()}),preventScrollOnEntryFocus:!0,children:jsxRuntimeExports$1.jsx(Content$1,{role:"menu","aria-orientation":"vertical","data-state":getOpenState(yl.open),"data-radix-menu-content":"",dir:us.dir,...hs,...is,ref:Cl,style:{outline:"none",...is.style},onKeyDown:composeEventHandlers(is.onKeyDown,El=>{const os=El.target.closest("[data-radix-menu-content]")===El.currentTarget,Al=El.ctrlKey||El.altKey||El.metaKey,Ul=El.key.length===1;os&&(El.key==="Tab"&&El.preventDefault(),!Al&&Ul&&_c(El.key));const Zl=Tl.current;if(El.target!==Zl||!FIRST_LAST_KEYS.includes(El.key))return;El.preventDefault();const Hl=xl().filter(Ml=>!Ml.disabled).map(Ml=>Ml.ref.current);LAST_KEYS.includes(El.key)&&Hl.reverse(),focusFirst(Hl)}),onBlur:composeEventHandlers(Mn.onBlur,El=>{El.currentTarget.contains(El.target)||(window.clearTimeout(Nl.current),Wl.current="")}),onPointerMove:composeEventHandlers(Mn.onPointerMove,whenMouse(El=>{const ds=El.target,os=Jo.current!==El.clientX;if(El.currentTarget.contains(ds)&&os){const Al=El.clientX>Jo.current?"right":"left";Qo.current=Al,Jo.current=El.clientX}}))})})})})})})});MenuContent.displayName=CONTENT_NAME$2;var GROUP_NAME$1="MenuGroup",MenuGroup=reactExports$1.forwardRef((Mn,Fn)=>{const{__scopeMenu:io,...fo}=Mn;return jsxRuntimeExports$1.jsx(Primitive.div,{role:"group",...fo,ref:Fn})});MenuGroup.displayName=GROUP_NAME$1;var LABEL_NAME$1="MenuLabel",MenuLabel=reactExports$1.forwardRef((Mn,Fn)=>{const{__scopeMenu:io,...fo}=Mn;return jsxRuntimeExports$1.jsx(Primitive.div,{...fo,ref:Fn})});MenuLabel.displayName=LABEL_NAME$1;var ITEM_NAME$1="MenuItem",ITEM_SELECT="menu.itemSelect",MenuItem=reactExports$1.forwardRef((Mn,Fn)=>{const{disabled:io=!1,onSelect:fo,...$o}=Mn,mo=reactExports$1.useRef(null),Ao=useMenuRootContext(ITEM_NAME$1,Mn.__scopeMenu),jo=useMenuContentContext(ITEM_NAME$1,Mn.__scopeMenu),Lo=useComposedRefs(Fn,mo),Ho=reactExports$1.useRef(!1),zo=()=>{const Go=mo.current;if(!io&&Go){const Vo=new CustomEvent(ITEM_SELECT,{bubbles:!0,cancelable:!0});Go.addEventListener(ITEM_SELECT,Yo=>fo==null?void 0:fo(Yo),{once:!0}),dispatchDiscreteCustomEvent(Go,Vo),Vo.defaultPrevented?Ho.current=!1:Ao.onClose()}};return jsxRuntimeExports$1.jsx(MenuItemImpl,{...$o,ref:Lo,disabled:io,onClick:composeEventHandlers(Mn.onClick,zo),onPointerDown:Go=>{var Vo;(Vo=Mn.onPointerDown)==null||Vo.call(Mn,Go),Ho.current=!0},onPointerUp:composeEventHandlers(Mn.onPointerUp,Go=>{var Vo;Ho.current||(Vo=Go.currentTarget)==null||Vo.click()}),onKeyDown:composeEventHandlers(Mn.onKeyDown,Go=>{const Vo=jo.searchRef.current!=="";io||Vo&&Go.key===" "||SELECTION_KEYS.includes(Go.key)&&(Go.currentTarget.click(),Go.preventDefault())})})});MenuItem.displayName=ITEM_NAME$1;var MenuItemImpl=reactExports$1.forwardRef((Mn,Fn)=>{const{__scopeMenu:io,disabled:fo=!1,textValue:$o,...mo}=Mn,Ao=useMenuContentContext(ITEM_NAME$1,io),jo=useRovingFocusGroupScope$1(io),Lo=reactExports$1.useRef(null),Ho=useComposedRefs(Fn,Lo),[zo,Go]=reactExports$1.useState(!1),[Vo,Yo]=reactExports$1.useState("");return reactExports$1.useEffect(()=>{const Xo=Lo.current;Xo&&Yo((Xo.textContent??"").trim())},[mo.children]),jsxRuntimeExports$1.jsx(Collection$8.ItemSlot,{scope:io,disabled:fo,textValue:$o??Vo,children:jsxRuntimeExports$1.jsx(Item$1,{asChild:!0,...jo,focusable:!fo,children:jsxRuntimeExports$1.jsx(Primitive.div,{role:"menuitem","data-highlighted":zo?"":void 0,"aria-disabled":fo||void 0,"data-disabled":fo?"":void 0,...mo,ref:Ho,onPointerMove:composeEventHandlers(Mn.onPointerMove,whenMouse(Xo=>{fo?Ao.onItemLeave(Xo):(Ao.onItemEnter(Xo),Xo.defaultPrevented||Xo.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:composeEventHandlers(Mn.onPointerLeave,whenMouse(Xo=>Ao.onItemLeave(Xo))),onFocus:composeEventHandlers(Mn.onFocus,()=>Go(!0)),onBlur:composeEventHandlers(Mn.onBlur,()=>Go(!1))})})})}),CHECKBOX_ITEM_NAME$1="MenuCheckboxItem",MenuCheckboxItem=reactExports$1.forwardRef((Mn,Fn)=>{const{checked:io=!1,onCheckedChange:fo,...$o}=Mn;return jsxRuntimeExports$1.jsx(ItemIndicatorProvider,{scope:Mn.__scopeMenu,checked:io,children:jsxRuntimeExports$1.jsx(MenuItem,{role:"menuitemcheckbox","aria-checked":isIndeterminate(io)?"mixed":io,...$o,ref:Fn,"data-state":getCheckedState(io),onSelect:composeEventHandlers($o.onSelect,()=>fo==null?void 0:fo(isIndeterminate(io)?!0:!io),{checkForDefaultPrevented:!1})})})});MenuCheckboxItem.displayName=CHECKBOX_ITEM_NAME$1;var RADIO_GROUP_NAME$1="MenuRadioGroup",[RadioGroupProvider,useRadioGroupContext]=createMenuContext(RADIO_GROUP_NAME$1,{value:void 0,onValueChange:()=>{}}),MenuRadioGroup=reactExports$1.forwardRef((Mn,Fn)=>{const{value:io,onValueChange:fo,...$o}=Mn,mo=useCallbackRef$1(fo);return jsxRuntimeExports$1.jsx(RadioGroupProvider,{scope:Mn.__scopeMenu,value:io,onValueChange:mo,children:jsxRuntimeExports$1.jsx(MenuGroup,{...$o,ref:Fn})})});MenuRadioGroup.displayName=RADIO_GROUP_NAME$1;var RADIO_ITEM_NAME$1="MenuRadioItem",MenuRadioItem=reactExports$1.forwardRef((Mn,Fn)=>{const{value:io,...fo}=Mn,$o=useRadioGroupContext(RADIO_ITEM_NAME$1,Mn.__scopeMenu),mo=io===$o.value;return jsxRuntimeExports$1.jsx(ItemIndicatorProvider,{scope:Mn.__scopeMenu,checked:mo,children:jsxRuntimeExports$1.jsx(MenuItem,{role:"menuitemradio","aria-checked":mo,...fo,ref:Fn,"data-state":getCheckedState(mo),onSelect:composeEventHandlers(fo.onSelect,()=>{var Ao;return(Ao=$o.onValueChange)==null?void 0:Ao.call($o,io)},{checkForDefaultPrevented:!1})})})});MenuRadioItem.displayName=RADIO_ITEM_NAME$1;var ITEM_INDICATOR_NAME="MenuItemIndicator",[ItemIndicatorProvider,useItemIndicatorContext]=createMenuContext(ITEM_INDICATOR_NAME,{checked:!1}),MenuItemIndicator=reactExports$1.forwardRef((Mn,Fn)=>{const{__scopeMenu:io,forceMount:fo,...$o}=Mn,mo=useItemIndicatorContext(ITEM_INDICATOR_NAME,io);return jsxRuntimeExports$1.jsx(Presence,{present:fo||isIndeterminate(mo.checked)||mo.checked===!0,children:jsxRuntimeExports$1.jsx(Primitive.span,{...$o,ref:Fn,"data-state":getCheckedState(mo.checked)})})});MenuItemIndicator.displayName=ITEM_INDICATOR_NAME;var SEPARATOR_NAME$1="MenuSeparator",MenuSeparator=reactExports$1.forwardRef((Mn,Fn)=>{const{__scopeMenu:io,...fo}=Mn;return jsxRuntimeExports$1.jsx(Primitive.div,{role:"separator","aria-orientation":"horizontal",...fo,ref:Fn})});MenuSeparator.displayName=SEPARATOR_NAME$1;var ARROW_NAME$1="MenuArrow",MenuArrow=reactExports$1.forwardRef((Mn,Fn)=>{const{__scopeMenu:io,...fo}=Mn,$o=usePopperScope(io);return jsxRuntimeExports$1.jsx(Arrow,{...$o,...fo,ref:Fn})});MenuArrow.displayName=ARROW_NAME$1;var SUB_NAME="MenuSub",[MenuSubProvider,useMenuSubContext]=createMenuContext(SUB_NAME),SUB_TRIGGER_NAME$1="MenuSubTrigger",MenuSubTrigger=reactExports$1.forwardRef((Mn,Fn)=>{const io=useMenuContext(SUB_TRIGGER_NAME$1,Mn.__scopeMenu),fo=useMenuRootContext(SUB_TRIGGER_NAME$1,Mn.__scopeMenu),$o=useMenuSubContext(SUB_TRIGGER_NAME$1,Mn.__scopeMenu),mo=useMenuContentContext(SUB_TRIGGER_NAME$1,Mn.__scopeMenu),Ao=reactExports$1.useRef(null),{pointerGraceTimerRef:jo,onPointerGraceIntentChange:Lo}=mo,Ho={__scopeMenu:Mn.__scopeMenu},zo=reactExports$1.useCallback(()=>{Ao.current&&window.clearTimeout(Ao.current),Ao.current=null},[]);return reactExports$1.useEffect(()=>zo,[zo]),reactExports$1.useEffect(()=>{const Go=jo.current;return()=>{window.clearTimeout(Go),Lo(null)}},[jo,Lo]),jsxRuntimeExports$1.jsx(MenuAnchor,{asChild:!0,...Ho,children:jsxRuntimeExports$1.jsx(MenuItemImpl,{id:$o.triggerId,"aria-haspopup":"menu","aria-expanded":io.open,"aria-controls":$o.contentId,"data-state":getOpenState(io.open),...Mn,ref:composeRefs(Fn,$o.onTriggerChange),onClick:Go=>{var Vo;(Vo=Mn.onClick)==null||Vo.call(Mn,Go),!(Mn.disabled||Go.defaultPrevented)&&(Go.currentTarget.focus(),io.open||io.onOpenChange(!0))},onPointerMove:composeEventHandlers(Mn.onPointerMove,whenMouse(Go=>{mo.onItemEnter(Go),!Go.defaultPrevented&&!Mn.disabled&&!io.open&&!Ao.current&&(mo.onPointerGraceIntentChange(null),Ao.current=window.setTimeout(()=>{io.onOpenChange(!0),zo()},100))})),onPointerLeave:composeEventHandlers(Mn.onPointerLeave,whenMouse(Go=>{var Yo,Xo;zo();const Vo=(Yo=io.content)==null?void 0:Yo.getBoundingClientRect();if(Vo){const is=(Xo=io.content)==null?void 0:Xo.dataset.side,yl=is==="right",us=yl?-5:5,hs=Vo[yl?"left":"right"],_l=Vo[yl?"right":"left"];mo.onPointerGraceIntentChange({area:[{x:Go.clientX+us,y:Go.clientY},{x:hs,y:Vo.top},{x:_l,y:Vo.top},{x:_l,y:Vo.bottom},{x:hs,y:Vo.bottom}],side:is}),window.clearTimeout(jo.current),jo.current=window.setTimeout(()=>mo.onPointerGraceIntentChange(null),300)}else{if(mo.onTriggerLeave(Go),Go.defaultPrevented)return;mo.onPointerGraceIntentChange(null)}})),onKeyDown:composeEventHandlers(Mn.onKeyDown,Go=>{var Yo;const Vo=mo.searchRef.current!=="";Mn.disabled||Vo&&Go.key===" "||SUB_OPEN_KEYS[fo.dir].includes(Go.key)&&(io.onOpenChange(!0),(Yo=io.content)==null||Yo.focus(),Go.preventDefault())})})})});MenuSubTrigger.displayName=SUB_TRIGGER_NAME$1;var SUB_CONTENT_NAME$1="MenuSubContent",MenuSubContent=reactExports$1.forwardRef((Mn,Fn)=>{const io=usePortalContext(CONTENT_NAME$2,Mn.__scopeMenu),{forceMount:fo=io.forceMount,...$o}=Mn,mo=useMenuContext(CONTENT_NAME$2,Mn.__scopeMenu),Ao=useMenuRootContext(CONTENT_NAME$2,Mn.__scopeMenu),jo=useMenuSubContext(SUB_CONTENT_NAME$1,Mn.__scopeMenu),Lo=reactExports$1.useRef(null),Ho=useComposedRefs(Fn,Lo);return jsxRuntimeExports$1.jsx(Collection$8.Provider,{scope:Mn.__scopeMenu,children:jsxRuntimeExports$1.jsx(Presence,{present:fo||mo.open,children:jsxRuntimeExports$1.jsx(Collection$8.Slot,{scope:Mn.__scopeMenu,children:jsxRuntimeExports$1.jsx(MenuContentImpl,{id:jo.contentId,"aria-labelledby":jo.triggerId,...$o,ref:Ho,align:"start",side:Ao.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:zo=>{var Go;Ao.isUsingKeyboardRef.current&&((Go=Lo.current)==null||Go.focus()),zo.preventDefault()},onCloseAutoFocus:zo=>zo.preventDefault(),onFocusOutside:composeEventHandlers(Mn.onFocusOutside,zo=>{zo.target!==jo.trigger&&mo.onOpenChange(!1)}),onEscapeKeyDown:composeEventHandlers(Mn.onEscapeKeyDown,zo=>{Ao.onClose(),zo.preventDefault()}),onKeyDown:composeEventHandlers(Mn.onKeyDown,zo=>{var Yo;const Go=zo.currentTarget.contains(zo.target),Vo=SUB_CLOSE_KEYS[Ao.dir].includes(zo.key);Go&&Vo&&(mo.onOpenChange(!1),(Yo=jo.trigger)==null||Yo.focus(),zo.preventDefault())})})})})})});MenuSubContent.displayName=SUB_CONTENT_NAME$1;function getOpenState(Mn){return Mn?"open":"closed"}function isIndeterminate(Mn){return Mn==="indeterminate"}function getCheckedState(Mn){return isIndeterminate(Mn)?"indeterminate":Mn?"checked":"unchecked"}function focusFirst(Mn){const Fn=document.activeElement;for(const io of Mn)if(io===Fn||(io.focus(),document.activeElement!==Fn))return}function wrapArray(Mn,Fn){return Mn.map((io,fo)=>Mn[(Fn+fo)%Mn.length])}function getNextMatch(Mn,Fn,io){const $o=Fn.length>1&&Array.from(Fn).every(Ho=>Ho===Fn[0])?Fn[0]:Fn,mo=io?Mn.indexOf(io):-1;let Ao=wrapArray(Mn,Math.max(mo,0));$o.length===1&&(Ao=Ao.filter(Ho=>Ho!==io));const Lo=Ao.find(Ho=>Ho.toLowerCase().startsWith($o.toLowerCase()));return Lo!==io?Lo:void 0}function isPointInPolygon(Mn,Fn){const{x:io,y:fo}=Mn;let $o=!1;for(let mo=0,Ao=Fn.length-1;mo<Fn.length;Ao=mo++){const jo=Fn[mo].x,Lo=Fn[mo].y,Ho=Fn[Ao].x,zo=Fn[Ao].y;Lo>fo!=zo>fo&&io<(Ho-jo)*(fo-Lo)/(zo-Lo)+jo&&($o=!$o)}return $o}function isPointerInGraceArea(Mn,Fn){if(!Fn)return!1;const io={x:Mn.clientX,y:Mn.clientY};return isPointInPolygon(io,Fn)}function whenMouse(Mn){return Fn=>Fn.pointerType==="mouse"?Mn(Fn):void 0}var Root3=Menu,Anchor2=MenuAnchor,Portal=MenuPortal,Content2$1=MenuContent,Group=MenuGroup,Label=MenuLabel,Item2$1=MenuItem,CheckboxItem=MenuCheckboxItem,RadioGroup=MenuRadioGroup,RadioItem=MenuRadioItem,ItemIndicator=MenuItemIndicator,Separator=MenuSeparator,Arrow2=MenuArrow,SubTrigger=MenuSubTrigger,SubContent=MenuSubContent,DROPDOWN_MENU_NAME="DropdownMenu",[createDropdownMenuContext,createDropdownMenuScope]=createContextScope$1(DROPDOWN_MENU_NAME,[createMenuScope]),useMenuScope=createMenuScope(),[DropdownMenuProvider,useDropdownMenuContext]=createDropdownMenuContext(DROPDOWN_MENU_NAME),DropdownMenu$1=Mn=>{const{__scopeDropdownMenu:Fn,children:io,dir:fo,open:$o,defaultOpen:mo,onOpenChange:Ao,modal:jo=!0}=Mn,Lo=useMenuScope(Fn),Ho=reactExports$1.useRef(null),[zo=!1,Go]=useControllableState({prop:$o,defaultProp:mo,onChange:Ao});return jsxRuntimeExports$1.jsx(DropdownMenuProvider,{scope:Fn,triggerId:useId(),triggerRef:Ho,contentId:useId(),open:zo,onOpenChange:Go,onOpenToggle:reactExports$1.useCallback(()=>Go(Vo=>!Vo),[Go]),modal:jo,children:jsxRuntimeExports$1.jsx(Root3,{...Lo,open:zo,onOpenChange:Go,dir:fo,modal:jo,children:io})})};DropdownMenu$1.displayName=DROPDOWN_MENU_NAME;var TRIGGER_NAME$1="DropdownMenuTrigger",DropdownMenuTrigger$1=reactExports$1.forwardRef((Mn,Fn)=>{const{__scopeDropdownMenu:io,disabled:fo=!1,...$o}=Mn,mo=useDropdownMenuContext(TRIGGER_NAME$1,io),Ao=useMenuScope(io);return jsxRuntimeExports$1.jsx(Anchor2,{asChild:!0,...Ao,children:jsxRuntimeExports$1.jsx(Primitive.button,{type:"button",id:mo.triggerId,"aria-haspopup":"menu","aria-expanded":mo.open,"aria-controls":mo.open?mo.contentId:void 0,"data-state":mo.open?"open":"closed","data-disabled":fo?"":void 0,disabled:fo,...$o,ref:composeRefs(Fn,mo.triggerRef),onPointerDown:composeEventHandlers(Mn.onPointerDown,jo=>{!fo&&jo.button===0&&jo.ctrlKey===!1&&(mo.onOpenToggle(),mo.open||jo.preventDefault())}),onKeyDown:composeEventHandlers(Mn.onKeyDown,jo=>{fo||(["Enter"," "].includes(jo.key)&&mo.onOpenToggle(),jo.key==="ArrowDown"&&mo.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(jo.key)&&jo.preventDefault())})})})});DropdownMenuTrigger$1.displayName=TRIGGER_NAME$1;var PORTAL_NAME="DropdownMenuPortal",DropdownMenuPortal=Mn=>{const{__scopeDropdownMenu:Fn,...io}=Mn,fo=useMenuScope(Fn);return jsxRuntimeExports$1.jsx(Portal,{...fo,...io})};DropdownMenuPortal.displayName=PORTAL_NAME;var CONTENT_NAME$1="DropdownMenuContent",DropdownMenuContent$1=reactExports$1.forwardRef((Mn,Fn)=>{const{__scopeDropdownMenu:io,...fo}=Mn,$o=useDropdownMenuContext(CONTENT_NAME$1,io),mo=useMenuScope(io),Ao=reactExports$1.useRef(!1);return jsxRuntimeExports$1.jsx(Content2$1,{id:$o.contentId,"aria-labelledby":$o.triggerId,...mo,...fo,ref:Fn,onCloseAutoFocus:composeEventHandlers(Mn.onCloseAutoFocus,jo=>{var Lo;Ao.current||(Lo=$o.triggerRef.current)==null||Lo.focus(),Ao.current=!1,jo.preventDefault()}),onInteractOutside:composeEventHandlers(Mn.onInteractOutside,jo=>{const Lo=jo.detail.originalEvent,Ho=Lo.button===0&&Lo.ctrlKey===!0,zo=Lo.button===2||Ho;(!$o.modal||zo)&&(Ao.current=!0)}),style:{...Mn.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});DropdownMenuContent$1.displayName=CONTENT_NAME$1;var GROUP_NAME="DropdownMenuGroup",DropdownMenuGroup=reactExports$1.forwardRef((Mn,Fn)=>{const{__scopeDropdownMenu:io,...fo}=Mn,$o=useMenuScope(io);return jsxRuntimeExports$1.jsx(Group,{...$o,...fo,ref:Fn})});DropdownMenuGroup.displayName=GROUP_NAME;var LABEL_NAME="DropdownMenuLabel",DropdownMenuLabel$1=reactExports$1.forwardRef((Mn,Fn)=>{const{__scopeDropdownMenu:io,...fo}=Mn,$o=useMenuScope(io);return jsxRuntimeExports$1.jsx(Label,{...$o,...fo,ref:Fn})});DropdownMenuLabel$1.displayName=LABEL_NAME;var ITEM_NAME="DropdownMenuItem",DropdownMenuItem$1=reactExports$1.forwardRef((Mn,Fn)=>{const{__scopeDropdownMenu:io,...fo}=Mn,$o=useMenuScope(io);return jsxRuntimeExports$1.jsx(Item2$1,{...$o,...fo,ref:Fn})});DropdownMenuItem$1.displayName=ITEM_NAME;var CHECKBOX_ITEM_NAME="DropdownMenuCheckboxItem",DropdownMenuCheckboxItem$1=reactExports$1.forwardRef((Mn,Fn)=>{const{__scopeDropdownMenu:io,...fo}=Mn,$o=useMenuScope(io);return jsxRuntimeExports$1.jsx(CheckboxItem,{...$o,...fo,ref:Fn})});DropdownMenuCheckboxItem$1.displayName=CHECKBOX_ITEM_NAME;var RADIO_GROUP_NAME="DropdownMenuRadioGroup",DropdownMenuRadioGroup=reactExports$1.forwardRef((Mn,Fn)=>{const{__scopeDropdownMenu:io,...fo}=Mn,$o=useMenuScope(io);return jsxRuntimeExports$1.jsx(RadioGroup,{...$o,...fo,ref:Fn})});DropdownMenuRadioGroup.displayName=RADIO_GROUP_NAME;var RADIO_ITEM_NAME="DropdownMenuRadioItem",DropdownMenuRadioItem$1=reactExports$1.forwardRef((Mn,Fn)=>{const{__scopeDropdownMenu:io,...fo}=Mn,$o=useMenuScope(io);return jsxRuntimeExports$1.jsx(RadioItem,{...$o,...fo,ref:Fn})});DropdownMenuRadioItem$1.displayName=RADIO_ITEM_NAME;var INDICATOR_NAME="DropdownMenuItemIndicator",DropdownMenuItemIndicator=reactExports$1.forwardRef((Mn,Fn)=>{const{__scopeDropdownMenu:io,...fo}=Mn,$o=useMenuScope(io);return jsxRuntimeExports$1.jsx(ItemIndicator,{...$o,...fo,ref:Fn})});DropdownMenuItemIndicator.displayName=INDICATOR_NAME;var SEPARATOR_NAME="DropdownMenuSeparator",DropdownMenuSeparator$1=reactExports$1.forwardRef((Mn,Fn)=>{const{__scopeDropdownMenu:io,...fo}=Mn,$o=useMenuScope(io);return jsxRuntimeExports$1.jsx(Separator,{...$o,...fo,ref:Fn})});DropdownMenuSeparator$1.displayName=SEPARATOR_NAME;var ARROW_NAME="DropdownMenuArrow",DropdownMenuArrow=reactExports$1.forwardRef((Mn,Fn)=>{const{__scopeDropdownMenu:io,...fo}=Mn,$o=useMenuScope(io);return jsxRuntimeExports$1.jsx(Arrow2,{...$o,...fo,ref:Fn})});DropdownMenuArrow.displayName=ARROW_NAME;var SUB_TRIGGER_NAME="DropdownMenuSubTrigger",DropdownMenuSubTrigger$1=reactExports$1.forwardRef((Mn,Fn)=>{const{__scopeDropdownMenu:io,...fo}=Mn,$o=useMenuScope(io);return jsxRuntimeExports$1.jsx(SubTrigger,{...$o,...fo,ref:Fn})});DropdownMenuSubTrigger$1.displayName=SUB_TRIGGER_NAME;var SUB_CONTENT_NAME="DropdownMenuSubContent",DropdownMenuSubContent$1=reactExports$1.forwardRef((Mn,Fn)=>{const{__scopeDropdownMenu:io,...fo}=Mn,$o=useMenuScope(io);return jsxRuntimeExports$1.jsx(SubContent,{...$o,...fo,ref:Fn,style:{...Mn.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});DropdownMenuSubContent$1.displayName=SUB_CONTENT_NAME;var Root2$1=DropdownMenu$1,Trigger$1=DropdownMenuTrigger$1,Portal2=DropdownMenuPortal,Content2=DropdownMenuContent$1,Label2=DropdownMenuLabel$1,Item2=DropdownMenuItem$1,CheckboxItem2=DropdownMenuCheckboxItem$1,RadioItem2=DropdownMenuRadioItem$1,ItemIndicator2=DropdownMenuItemIndicator,Separator2=DropdownMenuSeparator$1,SubTrigger2=DropdownMenuSubTrigger$1,SubContent2=DropdownMenuSubContent$1;function _objectWithoutPropertiesLoose(Mn,Fn){if(Mn==null)return{};var io={},fo=Object.keys(Mn),$o,mo;for(mo=0;mo<fo.length;mo++)$o=fo[mo],!(Fn.indexOf($o)>=0)&&(io[$o]=Mn[$o]);return io}var _excluded$T=["color"],CheckIcon=reactExports$1.forwardRef(function(Mn,Fn){var io=Mn.color,fo=io===void 0?"currentColor":io,$o=_objectWithoutPropertiesLoose(Mn,_excluded$T);return reactExports$1.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$o,{ref:Fn}),reactExports$1.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:fo,fillRule:"evenodd",clipRule:"evenodd"}))}),_excluded$Y=["color"],ChevronRightIcon=reactExports$1.forwardRef(function(Mn,Fn){var io=Mn.color,fo=io===void 0?"currentColor":io,$o=_objectWithoutPropertiesLoose(Mn,_excluded$Y);return reactExports$1.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$o,{ref:Fn}),reactExports$1.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:fo,fillRule:"evenodd",clipRule:"evenodd"}))}),_excluded$1I=["color"],DotFilledIcon=reactExports$1.forwardRef(function(Mn,Fn){var io=Mn.color,fo=io===void 0?"currentColor":io,$o=_objectWithoutPropertiesLoose(Mn,_excluded$1I);return reactExports$1.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$o,{ref:Fn}),reactExports$1.createElement("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:fo}))});const DropdownMenu=Root2$1,DropdownMenuTrigger=Trigger$1,DropdownMenuSubTrigger=reactExports$1.forwardRef(({className:Mn,inset:Fn,children:io,...fo},$o)=>jsxRuntimeExports$1.jsxs(SubTrigger2,{ref:$o,className:cn$1("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",Fn&&"pl-8",Mn),...fo,children:[io,jsxRuntimeExports$1.jsx(ChevronRightIcon,{className:"ml-auto h-4 w-4"})]}));DropdownMenuSubTrigger.displayName=SubTrigger2.displayName;const DropdownMenuSubContent=reactExports$1.forwardRef(({className:Mn,...Fn},io)=>jsxRuntimeExports$1.jsx(SubContent2,{ref:io,className:cn$1("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",Mn),...Fn}));DropdownMenuSubContent.displayName=SubContent2.displayName;const DropdownMenuContent=reactExports$1.forwardRef(({className:Mn,sideOffset:Fn=4,...io},fo)=>jsxRuntimeExports$1.jsx(Portal2,{children:jsxRuntimeExports$1.jsx(Content2,{ref:fo,sideOffset:Fn,className:cn$1("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",Mn),...io})}));DropdownMenuContent.displayName=Content2.displayName;const DropdownMenuItem=reactExports$1.forwardRef(({className:Mn,inset:Fn,...io},fo)=>jsxRuntimeExports$1.jsx(Item2,{ref:fo,className:cn$1("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",Fn&&"pl-8",Mn),...io}));DropdownMenuItem.displayName=Item2.displayName;const DropdownMenuCheckboxItem=reactExports$1.forwardRef(({className:Mn,children:Fn,checked:io,...fo},$o)=>jsxRuntimeExports$1.jsxs(CheckboxItem2,{ref:$o,className:cn$1("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Mn),checked:io,...fo,children:[jsxRuntimeExports$1.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntimeExports$1.jsx(ItemIndicator2,{children:jsxRuntimeExports$1.jsx(CheckIcon,{className:"h-4 w-4"})})}),Fn]}));DropdownMenuCheckboxItem.displayName=CheckboxItem2.displayName;const DropdownMenuRadioItem=reactExports$1.forwardRef(({className:Mn,children:Fn,...io},fo)=>jsxRuntimeExports$1.jsxs(RadioItem2,{ref:fo,className:cn$1("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Mn),...io,children:[jsxRuntimeExports$1.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntimeExports$1.jsx(ItemIndicator2,{children:jsxRuntimeExports$1.jsx(DotFilledIcon,{className:"h-4 w-4 fill-current"})})}),Fn]}));DropdownMenuRadioItem.displayName=RadioItem2.displayName;const DropdownMenuLabel=reactExports$1.forwardRef(({className:Mn,inset:Fn,...io},fo)=>jsxRuntimeExports$1.jsx(Label2,{ref:fo,className:cn$1("px-2 py-1.5 text-sm font-semibold",Fn&&"pl-8",Mn),...io}));DropdownMenuLabel.displayName=Label2.displayName;const DropdownMenuSeparator=reactExports$1.forwardRef(({className:Mn,...Fn},io)=>jsxRuntimeExports$1.jsx(Separator2,{ref:io,className:cn$1("-mx-1 my-1 h-px bg-muted",Mn),...Fn}));DropdownMenuSeparator.displayName=Separator2.displayName;const initialState$1={theme:"system",setTheme:()=>null},ThemeProviderContext=reactExports$1.createContext(initialState$1);function ThemeProvider({children:Mn,defaultTheme:Fn="system",storageKey:io="vite-ui-theme",...fo}){const[$o,mo]=reactExports$1.useState(()=>localStorage.getItem(io)||Fn);reactExports$1.useEffect(()=>{const jo=window.document.documentElement;if(jo.classList.remove("light","dark"),$o==="system"){const Lo=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";jo.classList.add(Lo);return}jo.classList.add($o)},[$o]);const Ao={theme:$o,setTheme:jo=>{localStorage.setItem(io,jo),mo(jo)}};return jsxRuntimeExports$1.jsx(ThemeProviderContext.Provider,{...fo,value:Ao,children:Mn})}const useTheme=()=>{const Mn=reactExports$1.useContext(ThemeProviderContext);if(Mn===void 0)throw new Error("useTheme must be used within a ThemeProvider");return Mn};function ModeToggle(){const{theme:Mn,setTheme:Fn}=useTheme();return jsxRuntimeExports$1.jsxs(DropdownMenu,{children:[jsxRuntimeExports$1.jsx(DropdownMenuTrigger,{asChild:!0,children:jsxRuntimeExports$1.jsxs(Button,{variant:"ghost",className:"focus-visible:ring-0",size:"icon",children:[jsxRuntimeExports$1.jsx(Sun,{className:`h-[1.2rem] w-[1.2rem] transition-all ${Mn==="dark"?"rotate-90 scale-0":"rotate-0 scale-100"}`}),jsxRuntimeExports$1.jsx(Moon,{className:`absolute h-[1.2rem] w-[1.2rem] scale-0 transition-all ${Mn==="dark"?"rotate-0 scale-100":"rotate-90 scale-0"}`}),jsxRuntimeExports$1.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),jsxRuntimeExports$1.jsxs(DropdownMenuContent,{className:"mt-1 rounded-md shadow-lg",children:[jsxRuntimeExports$1.jsx(DropdownMenuItem,{onClick:()=>Fn("light"),children:"Light"}),jsxRuntimeExports$1.jsx(DropdownMenuItem,{onClick:()=>Fn("dark"),children:"Dark"})]})]})}const DEFAULT_FUNCTION_CALL_GAS=30000000000000n,GasLimitExceeded$3="Exceeded the maximum amount of gas allowed to burn per contract",MethodEmptyName$3="Method name is empty",WasmerCompileError$3="Wasmer compilation error: {{msg}}",GuestPanic$3="Smart contract panicked: {{panic_msg}}",Memory$3="Error creating Wasm memory",GasExceeded$3="Exceeded the prepaid gas",MethodUTF8Error$3="Method name is not valid UTF8 string",BadUTF16$3="String encoding is bad UTF-16 sequence",WasmTrap$3="WebAssembly trap: {{msg}}",GasInstrumentation$3="Gas instrumentation failed or contract has denied instructions.",InvalidPromiseIndex$3="{{promise_idx}} does not correspond to existing promises",InvalidPromiseResultIndex$3="Accessed invalid promise result index: {{result_idx}}",Deserialization$3="Error happened while deserializing the module",MethodNotFound$3="Contract method is not found",InvalidRegisterId$3="Accessed invalid register id: {{register_id}}",InvalidReceiptIndex$3="VM Logic returned an invalid receipt index: {{receipt_index}}",EmptyMethodName$3="Method name is empty in contract call",CannotReturnJointPromise$3="Returning joint promise is currently prohibited",StackHeightInstrumentation$3="Stack instrumentation failed",CodeDoesNotExist$3="Cannot find contract code for account {{account_id}}",MethodInvalidSignature$3="Invalid method signature",IntegerOverflow$3="Integer overflow happened during contract execution",MemoryAccessViolation$3="MemoryAccessViolation",InvalidIteratorIndex$3="Iterator index {{iterator_index}} does not exist",IteratorWasInvalidated$3="Iterator {{iterator_index}} was invalidated after its creation by performing a mutable operation on trie",InvalidAccountId$3="VM Logic returned an invalid account id",Serialization$3="Error happened while serializing the module",CannotAppendActionToJointPromise$3="Actions can only be appended to non-joint promise.",InternalMemoryDeclared$3="Internal memory declaration has been found in the module",Instantiate$3="Error happened during instantiation",ProhibitedInView$3="{{method_name}} is not allowed in view calls",InvalidMethodName$3="VM Logic returned an invalid method name",BadUTF8$3="String encoding is bad UTF-8 sequence",BalanceExceeded$3="Exceeded the account balance",LinkError$3="Wasm contract link error: {{msg}}",InvalidPublicKey$3="VM Logic provided an invalid public key",ActorNoPermission$3="Actor {{actor_id}} doesn't have permission to account {{account_id}} to complete the action",LackBalanceForState$3="The account {{account_id}} wouldn't have enough balance to cover storage, required to have {{amount}} yoctoNEAR more",ReceiverMismatch$3="Wrong AccessKey used for transaction: transaction is sent to receiver_id={{tx_receiver}}, but is signed with function call access key that restricted to only use with receiver_id={{ak_receiver}}. Either change receiver_id in your transaction or switch to use a FullAccessKey.",CostOverflow$3="Transaction gas or balance cost is too high",InvalidSignature$3="Transaction is not signed with the given public key",AccessKeyNotFound$3=`Signer "{{account_id}}" doesn't have access key with the given public_key {{public_key}}`,NotEnoughBalance$3="Sender {{signer_id}} does not have enough balance {{#formatNear}}{{balance}}{{/formatNear}} for operation costing {{#formatNear}}{{cost}}{{/formatNear}}",NotEnoughAllowance$3="Access Key {account_id}:{public_key} does not have enough balance {{#formatNear}}{{allowance}}{{/formatNear}} for transaction costing {{#formatNear}}{{cost}}{{/formatNear}}",Expired$3="Transaction has expired",DeleteAccountStaking$3="Account {{account_id}} is staking and can not be deleted",SignerDoesNotExist$3="Signer {{signer_id}} does not exist",TriesToStake$3="Account {{account_id}} tried to stake {{#formatNear}}{{stake}}{{/formatNear}}, but has staked {{#formatNear}}{{locked}}{{/formatNear}} and only has {{#formatNear}}{{balance}}{{/formatNear}}",AddKeyAlreadyExists$3="The public key {{public_key}} is already used for an existing access key",InvalidSigner$3="Invalid signer account ID {{signer_id}} according to requirements",CreateAccountNotAllowed$3="The new account_id {{account_id}} can't be created by {{predecessor_id}}",RequiresFullAccess$3="The transaction contains more then one action, but it was signed with an access key which allows transaction to apply only one specific action. To apply more then one actions TX must be signed with a full access key",TriesToUnstake$3="Account {{account_id}} is not yet staked, but tried to unstake",InvalidNonce$3="Transaction nonce {{tx_nonce}} must be larger than nonce of the used access key {{ak_nonce}}",AccountAlreadyExists$3="Can't create a new account {{account_id}}, because it already exists",InvalidChain$3="Transaction parent block hash doesn't belong to the current chain",AccountDoesNotExist$3="Can't complete the action because account {{account_id}} doesn't exist",AccessKeyDoesNotExist$3="Can't complete the action because access key {{public_key}} doesn't exist",MethodNameMismatch$3="Transaction method name {{method_name}} isn't allowed by the access key",DeleteAccountHasRent$3="Account {{account_id}} can't be deleted. It has {{#formatNear}}{{balance}}{{/formatNear}}, which is enough to cover the rent",DeleteAccountHasEnoughBalance$3="Account {{account_id}} can't be deleted. It has {{#formatNear}}{{balance}}{{/formatNear}}, which is enough to cover it's storage",InvalidReceiver$3="Invalid receiver account ID {{receiver_id}} according to requirements",DeleteKeyDoesNotExist$3="Account {{account_id}} tries to remove an access key that doesn't exist",Timeout$3="Timeout exceeded",Closed$3="Connection closed",ShardCongested$2="Shard {{shard_id}} rejected the transaction due to congestion level {{congestion_level}}, try again later",ShardStuck$2="Shard {{shard_id}} rejected the transaction because it missed {{missed_chunks}} chunks and needs to recover before accepting new transactions, try again later",ErrorMessagesJson={GasLimitExceeded:GasLimitExceeded$3,MethodEmptyName:MethodEmptyName$3,WasmerCompileError:WasmerCompileError$3,GuestPanic:GuestPanic$3,Memory:Memory$3,GasExceeded:GasExceeded$3,MethodUTF8Error:MethodUTF8Error$3,BadUTF16:BadUTF16$3,WasmTrap:WasmTrap$3,GasInstrumentation:GasInstrumentation$3,InvalidPromiseIndex:InvalidPromiseIndex$3,InvalidPromiseResultIndex:InvalidPromiseResultIndex$3,Deserialization:Deserialization$3,MethodNotFound:MethodNotFound$3,InvalidRegisterId:InvalidRegisterId$3,InvalidReceiptIndex:InvalidReceiptIndex$3,EmptyMethodName:EmptyMethodName$3,CannotReturnJointPromise:CannotReturnJointPromise$3,StackHeightInstrumentation:StackHeightInstrumentation$3,CodeDoesNotExist:CodeDoesNotExist$3,MethodInvalidSignature:MethodInvalidSignature$3,IntegerOverflow:IntegerOverflow$3,MemoryAccessViolation:MemoryAccessViolation$3,InvalidIteratorIndex:InvalidIteratorIndex$3,IteratorWasInvalidated:IteratorWasInvalidated$3,InvalidAccountId:InvalidAccountId$3,Serialization:Serialization$3,CannotAppendActionToJointPromise:CannotAppendActionToJointPromise$3,InternalMemoryDeclared:InternalMemoryDeclared$3,Instantiate:Instantiate$3,ProhibitedInView:ProhibitedInView$3,InvalidMethodName:InvalidMethodName$3,BadUTF8:BadUTF8$3,BalanceExceeded:BalanceExceeded$3,LinkError:LinkError$3,InvalidPublicKey:InvalidPublicKey$3,ActorNoPermission:ActorNoPermission$3,LackBalanceForState:LackBalanceForState$3,ReceiverMismatch:ReceiverMismatch$3,CostOverflow:CostOverflow$3,InvalidSignature:InvalidSignature$3,AccessKeyNotFound:AccessKeyNotFound$3,NotEnoughBalance:NotEnoughBalance$3,NotEnoughAllowance:NotEnoughAllowance$3,Expired:Expired$3,DeleteAccountStaking:DeleteAccountStaking$3,SignerDoesNotExist:SignerDoesNotExist$3,TriesToStake:TriesToStake$3,AddKeyAlreadyExists:AddKeyAlreadyExists$3,InvalidSigner:InvalidSigner$3,CreateAccountNotAllowed:CreateAccountNotAllowed$3,RequiresFullAccess:RequiresFullAccess$3,TriesToUnstake:TriesToUnstake$3,InvalidNonce:InvalidNonce$3,AccountAlreadyExists:AccountAlreadyExists$3,InvalidChain:InvalidChain$3,AccountDoesNotExist:AccountDoesNotExist$3,AccessKeyDoesNotExist:AccessKeyDoesNotExist$3,MethodNameMismatch:MethodNameMismatch$3,DeleteAccountHasRent:DeleteAccountHasRent$3,DeleteAccountHasEnoughBalance:DeleteAccountHasEnoughBalance$3,InvalidReceiver:InvalidReceiver$3,DeleteKeyDoesNotExist:DeleteKeyDoesNotExist$3,Timeout:Timeout$3,Closed:Closed$3,ShardCongested:ShardCongested$2,ShardStuck:ShardStuck$2},ErrorMessages=ErrorMessagesJson;let Assignable$2=class{constructor(Fn){Object.keys(Fn).map(io=>{this[io]=Fn[io]})}},Enum$5=class{constructor(Fn){if(Object.keys(Fn).length!==1)throw new Error("Enum can only take single value");Object.keys(Fn).map(io=>{this[io]=Fn[io]})}},PositionalArgsError$2=class extends Error{constructor(){super("Contract method calls expect named arguments wrapped in object, e.g. { argName1: argValue1, argName2: argValue2 }")}},ArgumentTypeError$2=class extends Error{constructor(Fn,io,fo){super(`Expected ${io} for '${Fn}' argument, but got '${JSON.stringify(fo)}'`)}},TypedError$2=class extends Error{constructor(io,fo,$o){super(io);ap(this,"type");ap(this,"context");this.type=fo||"UntypedError",this.context=$o}},ErrorContext$2=class{constructor(Fn){ap(this,"transactionHash");this.transactionHash=Fn}};var IdType$1;(function(Mn){Mn.Transaction="transaction",Mn.Receipt="receipt"})(IdType$1||(IdType$1={}));var ExecutionStatusBasic$1;(function(Mn){Mn.Unknown="Unknown",Mn.Pending="Pending",Mn.Failure="Failure"})(ExecutionStatusBasic$1||(ExecutionStatusBasic$1={}));var FinalExecutionStatusBasic$1;(function(Mn){Mn.NotStarted="NotStarted",Mn.Started="Started",Mn.Failure="Failure"})(FinalExecutionStatusBasic$1||(FinalExecutionStatusBasic$1={}));const esm$6=Object.freeze(Object.defineProperty({__proto__:null,ArgumentTypeError:ArgumentTypeError$2,Assignable:Assignable$2,Enum:Enum$5,ErrorContext:ErrorContext$2,get ExecutionStatusBasic(){return ExecutionStatusBasic$1},get FinalExecutionStatusBasic(){return FinalExecutionStatusBasic$1},get IdType(){return IdType$1},PositionalArgsError:PositionalArgsError$2,TypedError:TypedError$2},Symbol.toStringTag,{value:"Module"}));var mustache={exports:{}};(function(Mn,Fn){(function(io,fo){Mn.exports=fo()})(commonjsGlobal$c,function(){/*!
* mustache.js - Logic-less {{mustache}} templates with JavaScript
* http://github.com/janl/mustache.js
*/var io=Object.prototype.toString,fo=Array.isArray||function(Qo){return io.call(Qo)==="[object Array]"};function $o(Rl){return typeof Rl=="function"}function mo(Rl){return fo(Rl)?"array":typeof Rl}function Ao(Rl){return Rl.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function jo(Rl,Qo){return Rl!=null&&typeof Rl=="object"&&Qo in Rl}function Lo(Rl,Qo){return Rl!=null&&typeof Rl!="object"&&Rl.hasOwnProperty&&Rl.hasOwnProperty(Qo)}var Ho=RegExp.prototype.test;function zo(Rl,Qo){return Ho.call(Rl,Qo)}var Go=/\S/;function Vo(Rl){return!zo(Go,Rl)}var Yo={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};function Xo(Rl){return String(Rl).replace(/[&<>"'`=\/]/g,function(Jo){return Yo[Jo]})}var is=/\s*/,yl=/\s+/,us=/\s*=/,hs=/\s*\}/,_l=/#|\^|\/|>|\{|&|=|!/;function xl(Rl,Qo){if(!Rl)return[];var Jo=!1,rs=[],ps=[],_c=[],$l=!1,El=!1,ds="",os=0;function Al(){if($l&&!El)for(;_c.length;)delete ps[_c.pop()];else _c=[];$l=!1,El=!1}var Ul,Zl,Pl;function Hl(tp){if(typeof tp=="string"&&(tp=tp.split(yl,2)),!fo(tp)||tp.length!==2)throw new Error("Invalid tags: "+tp);Ul=new RegExp(Ao(tp[0])+"\\s*"),Zl=new RegExp("\\s*"+Ao(tp[1])),Pl=new RegExp("\\s*"+Ao("}"+tp[1]))}Hl(Qo||Wl.tags);for(var Ml=new Tl(Rl),Fl,Yl,Bl,Kl,Gl,fu;!Ml.eos();){if(Fl=Ml.pos,Bl=Ml.scanUntil(Ul),Bl)for(var bu=0,rp=Bl.length;bu<rp;++bu)Kl=Bl.charAt(bu),Vo(Kl)?(_c.push(ps.length),ds+=Kl):(El=!0,Jo=!0,ds+=" "),ps.push(["text",Kl,Fl,Fl+1]),Fl+=1,Kl===`
`&&(Al(),ds="",os=0,Jo=!1);if(!Ml.scan(Ul))break;if($l=!0,Yl=Ml.scan(_l)||"name",Ml.scan(is),Yl==="="?(Bl=Ml.scanUntil(us),Ml.scan(us),Ml.scanUntil(Zl)):Yl==="{"?(Bl=Ml.scanUntil(Pl),Ml.scan(hs),Ml.scanUntil(Zl),Yl="&"):Bl=Ml.scanUntil(Zl),!Ml.scan(Zl))throw new Error("Unclosed tag at "+Ml.pos);if(Yl==">"?Gl=[Yl,Bl,Fl,Ml.pos,ds,os,Jo]:Gl=[Yl,Bl,Fl,Ml.pos],os++,ps.push(Gl),Yl==="#"||Yl==="^")rs.push(Gl);else if(Yl==="/"){if(fu=rs.pop(),!fu)throw new Error('Unopened section "'+Bl+'" at '+Fl);if(fu[1]!==Bl)throw new Error('Unclosed section "'+fu[1]+'" at '+Fl)}else Yl==="name"||Yl==="{"||Yl==="&"?El=!0:Yl==="="&&Hl(Bl)}if(Al(),fu=rs.pop(),fu)throw new Error('Unclosed section "'+fu[1]+'" at '+Ml.pos);return Ol(Il(ps))}function Il(Rl){for(var Qo=[],Jo,rs,ps=0,_c=Rl.length;ps<_c;++ps)Jo=Rl[ps],Jo&&(Jo[0]==="text"&&rs&&rs[0]==="text"?(rs[1]+=Jo[1],rs[3]=Jo[3]):(Qo.push(Jo),rs=Jo));return Qo}function Ol(Rl){for(var Qo=[],Jo=Qo,rs=[],ps,_c,$l=0,El=Rl.length;$l<El;++$l)switch(ps=Rl[$l],ps[0]){case"#":case"^":Jo.push(ps),rs.push(ps),Jo=ps[4]=[];break;case"/":_c=rs.pop(),_c[5]=ps[2],Jo=rs.length>0?rs[rs.length-1][4]:Qo;break;default:Jo.push(ps)}return Qo}function Tl(Rl){this.string=Rl,this.tail=Rl,this.pos=0}Tl.prototype.eos=function(){return this.tail===""},Tl.prototype.scan=function(Qo){var Jo=this.tail.match(Qo);if(!Jo||Jo.index!==0)return"";var rs=Jo[0];return this.tail=this.tail.substring(rs.length),this.pos+=rs.length,rs},Tl.prototype.scanUntil=function(Qo){var Jo=this.tail.search(Qo),rs;switch(Jo){case-1:rs=this.tail,this.tail="";break;case 0:rs="";break;default:rs=this.tail.substring(0,Jo),this.tail=this.tail.substring(Jo)}return this.pos+=rs.length,rs};function Cl(Rl,Qo){this.view=Rl,this.cache={".":this.view},this.parent=Qo}Cl.prototype.push=function(Qo){return new Cl(Qo,this)},Cl.prototype.lookup=function(Qo){var Jo=this.cache,rs;if(Jo.hasOwnProperty(Qo))rs=Jo[Qo];else{for(var ps=this,_c,$l,El,ds=!1;ps;){if(Qo.indexOf(".")>0)for(_c=ps.view,$l=Qo.split("."),El=0;_c!=null&&El<$l.length;)El===$l.length-1&&(ds=jo(_c,$l[El])||Lo(_c,$l[El])),_c=_c[$l[El++]];else _c=ps.view[Qo],ds=jo(ps.view,Qo);if(ds){rs=_c;break}ps=ps.parent}Jo[Qo]=rs}return $o(rs)&&(rs=rs.call(this.view)),rs};function Nl(){this.templateCache={_cache:{},set:function(Qo,Jo){this._cache[Qo]=Jo},get:function(Qo){return this._cache[Qo]},clear:function(){this._cache={}}}}Nl.prototype.clearCache=function(){typeof this.templateCache<"u"&&this.templateCache.clear()},Nl.prototype.parse=function(Qo,Jo){var rs=this.templateCache,ps=Qo+":"+(Jo||Wl.tags).join(":"),_c=typeof rs<"u",$l=_c?rs.get(ps):void 0;return $l==null&&($l=xl(Qo,Jo),_c&&rs.set(ps,$l)),$l},Nl.prototype.render=function(Qo,Jo,rs,ps){var _c=this.parse(Qo,ps),$l=Jo instanceof Cl?Jo:new Cl(Jo,void 0);return this.renderTokens(_c,$l,rs,Qo,ps)},Nl.prototype.renderTokens=function(Qo,Jo,rs,ps,_c){for(var $l="",El,ds,os,Al=0,Ul=Qo.length;Al<Ul;++Al)os=void 0,El=Qo[Al],ds=El[0],ds==="#"?os=this.renderSection(El,Jo,rs,ps):ds==="^"?os=this.renderInverted(El,Jo,rs,ps):ds===">"?os=this.renderPartial(El,Jo,rs,_c):ds==="&"?os=this.unescapedValue(El,Jo):ds==="name"?os=this.escapedValue(El,Jo):ds==="text"&&(os=this.rawValue(El)),os!==void 0&&($l+=os);return $l},Nl.prototype.renderSection=function(Qo,Jo,rs,ps){var _c=this,$l="",El=Jo.lookup(Qo[1]);function ds(Ul){return _c.render(Ul,Jo,rs)}if(El){if(fo(El))for(var os=0,Al=El.length;os<Al;++os)$l+=this.renderTokens(Qo[4],Jo.push(El[os]),rs,ps);else if(typeof El=="object"||typeof El=="string"||typeof El=="number")$l+=this.renderTokens(Qo[4],Jo.push(El),rs,ps);else if($o(El)){if(typeof ps!="string")throw new Error("Cannot use higher-order sections without the original template");El=El.call(Jo.view,ps.slice(Qo[3],Qo[5]),ds),El!=null&&($l+=El)}else $l+=this.renderTokens(Qo[4],Jo,rs,ps);return $l}},Nl.prototype.renderInverted=function(Qo,Jo,rs,ps){var _c=Jo.lookup(Qo[1]);if(!_c||fo(_c)&&_c.length===0)return this.renderTokens(Qo[4],Jo,rs,ps)},Nl.prototype.indentPartial=function(Qo,Jo,rs){for(var ps=Jo.replace(/[^ \t]/g,""),_c=Qo.split(`
`),$l=0;$l<_c.length;$l++)_c[$l].length&&($l>0||!rs)&&(_c[$l]=ps+_c[$l]);return _c.join(`
`)},Nl.prototype.renderPartial=function(Qo,Jo,rs,ps){if(rs){var _c=$o(rs)?rs(Qo[1]):rs[Qo[1]];if(_c!=null){var $l=Qo[6],El=Qo[5],ds=Qo[4],os=_c;return El==0&&ds&&(os=this.indentPartial(_c,ds,$l)),this.renderTokens(this.parse(os,ps),Jo,rs,os)}}},Nl.prototype.unescapedValue=function(Qo,Jo){var rs=Jo.lookup(Qo[1]);if(rs!=null)return rs},Nl.prototype.escapedValue=function(Qo,Jo){var rs=Jo.lookup(Qo[1]);if(rs!=null)return Wl.escape(rs)},Nl.prototype.rawValue=function(Qo){return Qo[1]};var Wl={name:"mustache.js",version:"4.0.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(Rl){Dl.templateCache=Rl},get templateCache(){return Dl.templateCache}},Dl=new Nl;return Wl.clearCache=function(){return Dl.clearCache()},Wl.parse=function(Qo,Jo){return Dl.parse(Qo,Jo)},Wl.render=function(Qo,Jo,rs,ps){if(typeof Qo!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+mo(Qo)+'" was given as the first argument for mustache#render(template, view, partials)');return Dl.render(Qo,Jo,rs,ps)},Wl.escape=Xo,Wl.Scanner=Tl,Wl.Context=Cl,Wl.Writer=Nl,Wl})})(mustache);var mustacheExports=mustache.exports;const Mustache=getDefaultExportFromCjs$1(mustacheExports);var safeBuffer$2={exports:{}},buffer$4={},base64Js={};base64Js.byteLength=byteLength;base64Js.toByteArray=toByteArray;base64Js.fromByteArray=fromByteArray;var lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i$8=0,len=code.length;i$8<len;++i$8)lookup[i$8]=code[i$8],revLookup[code.charCodeAt(i$8)]=i$8;revLookup[45]=62;revLookup[95]=63;function getLens(Mn){var Fn=Mn.length;if(Fn%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var io=Mn.indexOf("=");io===-1&&(io=Fn);var fo=io===Fn?0:4-io%4;return[io,fo]}function byteLength(Mn){var Fn=getLens(Mn),io=Fn[0],fo=Fn[1];return(io+fo)*3/4-fo}function _byteLength(Mn,Fn,io){return(Fn+io)*3/4-io}function toByteArray(Mn){var Fn,io=getLens(Mn),fo=io[0],$o=io[1],mo=new Arr(_byteLength(Mn,fo,$o)),Ao=0,jo=$o>0?fo-4:fo,Lo;for(Lo=0;Lo<jo;Lo+=4)Fn=revLookup[Mn.charCodeAt(Lo)]<<18|revLookup[Mn.charCodeAt(Lo+1)]<<12|revLookup[Mn.charCodeAt(Lo+2)]<<6|revLookup[Mn.charCodeAt(Lo+3)],mo[Ao++]=Fn>>16&255,mo[Ao++]=Fn>>8&255,mo[Ao++]=Fn&255;return $o===2&&(Fn=revLookup[Mn.charCodeAt(Lo)]<<2|revLookup[Mn.charCodeAt(Lo+1)]>>4,mo[Ao++]=Fn&255),$o===1&&(Fn=revLookup[Mn.charCodeAt(Lo)]<<10|revLookup[Mn.charCodeAt(Lo+1)]<<4|revLookup[Mn.charCodeAt(Lo+2)]>>2,mo[Ao++]=Fn>>8&255,mo[Ao++]=Fn&255),mo}function tripletToBase64(Mn){return lookup[Mn>>18&63]+lookup[Mn>>12&63]+lookup[Mn>>6&63]+lookup[Mn&63]}function encodeChunk(Mn,Fn,io){for(var fo,$o=[],mo=Fn;mo<io;mo+=3)fo=(Mn[mo]<<16&16711680)+(Mn[mo+1]<<8&65280)+(Mn[mo+2]&255),$o.push(tripletToBase64(fo));return $o.join("")}function fromByteArray(Mn){for(var Fn,io=Mn.length,fo=io%3,$o=[],mo=16383,Ao=0,jo=io-fo;Ao<jo;Ao+=mo)$o.push(encodeChunk(Mn,Ao,Ao+mo>jo?jo:Ao+mo));return fo===1?(Fn=Mn[io-1],$o.push(lookup[Fn>>2]+lookup[Fn<<4&63]+"==")):fo===2&&(Fn=(Mn[io-2]<<8)+Mn[io-1],$o.push(lookup[Fn>>10]+lookup[Fn>>4&63]+lookup[Fn<<2&63]+"=")),$o.join("")}var ieee754$3={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ieee754$3.read=function(Mn,Fn,io,fo,$o){var mo,Ao,jo=$o*8-fo-1,Lo=(1<<jo)-1,Ho=Lo>>1,zo=-7,Go=io?$o-1:0,Vo=io?-1:1,Yo=Mn[Fn+Go];for(Go+=Vo,mo=Yo&(1<<-zo)-1,Yo>>=-zo,zo+=jo;zo>0;mo=mo*256+Mn[Fn+Go],Go+=Vo,zo-=8);for(Ao=mo&(1<<-zo)-1,mo>>=-zo,zo+=fo;zo>0;Ao=Ao*256+Mn[Fn+Go],Go+=Vo,zo-=8);if(mo===0)mo=1-Ho;else{if(mo===Lo)return Ao?NaN:(Yo?-1:1)*(1/0);Ao=Ao+Math.pow(2,fo),mo=mo-Ho}return(Yo?-1:1)*Ao*Math.pow(2,mo-fo)};ieee754$3.write=function(Mn,Fn,io,fo,$o,mo){var Ao,jo,Lo,Ho=mo*8-$o-1,zo=(1<<Ho)-1,Go=zo>>1,Vo=$o===23?Math.pow(2,-24)-Math.pow(2,-77):0,Yo=fo?0:mo-1,Xo=fo?1:-1,is=Fn<0||Fn===0&&1/Fn<0?1:0;for(Fn=Math.abs(Fn),isNaN(Fn)||Fn===1/0?(jo=isNaN(Fn)?1:0,Ao=zo):(Ao=Math.floor(Math.log(Fn)/Math.LN2),Fn*(Lo=Math.pow(2,-Ao))<1&&(Ao--,Lo*=2),Ao+Go>=1?Fn+=Vo/Lo:Fn+=Vo*Math.pow(2,1-Go),Fn*Lo>=2&&(Ao++,Lo/=2),Ao+Go>=zo?(jo=0,Ao=zo):Ao+Go>=1?(jo=(Fn*Lo-1)*Math.pow(2,$o),Ao=Ao+Go):(jo=Fn*Math.pow(2,Go-1)*Math.pow(2,$o),Ao=0));$o>=8;Mn[io+Yo]=jo&255,Yo+=Xo,jo/=256,$o-=8);for(Ao=Ao<<$o|jo,Ho+=$o;Ho>0;Mn[io+Yo]=Ao&255,Yo+=Xo,Ao/=256,Ho-=8);Mn[io+Yo-Xo]|=is*128};/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/(function(Mn){const Fn=base64Js,io=ieee754$3,fo=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Mn.Buffer=zo,Mn.SlowBuffer=Il,Mn.INSPECT_MAX_BYTES=50;const $o=2147483647;Mn.kMaxLength=$o;const{Uint8Array:mo,ArrayBuffer:Ao,SharedArrayBuffer:jo}=globalThis;zo.TYPED_ARRAY_SUPPORT=Lo(),!zo.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Lo(){try{const Xl=new mo(1),Vl={foo:function(){return 42}};return Object.setPrototypeOf(Vl,mo.prototype),Object.setPrototypeOf(Xl,Vl),Xl.foo()===42}catch{return!1}}Object.defineProperty(zo.prototype,"parent",{enumerable:!0,get:function(){if(zo.isBuffer(this))return this.buffer}}),Object.defineProperty(zo.prototype,"offset",{enumerable:!0,get:function(){if(zo.isBuffer(this))return this.byteOffset}});function Ho(Xl){if(Xl>$o)throw new RangeError('The value "'+Xl+'" is invalid for option "size"');const Vl=new mo(Xl);return Object.setPrototypeOf(Vl,zo.prototype),Vl}function zo(Xl,Vl,Jl){if(typeof Xl=="number"){if(typeof Vl=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Xo(Xl)}return Go(Xl,Vl,Jl)}zo.poolSize=8192;function Go(Xl,Vl,Jl){if(typeof Xl=="string")return is(Xl,Vl);if(Ao.isView(Xl))return us(Xl);if(Xl==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Xl);if(mp(Xl,Ao)||Xl&&mp(Xl.buffer,Ao)||typeof jo<"u"&&(mp(Xl,jo)||Xl&&mp(Xl.buffer,jo)))return hs(Xl,Vl,Jl);if(typeof Xl=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const wu=Xl.valueOf&&Xl.valueOf();if(wu!=null&&wu!==Xl)return zo.from(wu,Vl,Jl);const ep=_l(Xl);if(ep)return ep;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Xl[Symbol.toPrimitive]=="function")return zo.from(Xl[Symbol.toPrimitive]("string"),Vl,Jl);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Xl)}zo.from=function(Xl,Vl,Jl){return Go(Xl,Vl,Jl)},Object.setPrototypeOf(zo.prototype,mo.prototype),Object.setPrototypeOf(zo,mo);function Vo(Xl){if(typeof Xl!="number")throw new TypeError('"size" argument must be of type number');if(Xl<0)throw new RangeError('The value "'+Xl+'" is invalid for option "size"')}function Yo(Xl,Vl,Jl){return Vo(Xl),Xl<=0?Ho(Xl):Vl!==void 0?typeof Jl=="string"?Ho(Xl).fill(Vl,Jl):Ho(Xl).fill(Vl):Ho(Xl)}zo.alloc=function(Xl,Vl,Jl){return Yo(Xl,Vl,Jl)};function Xo(Xl){return Vo(Xl),Ho(Xl<0?0:xl(Xl)|0)}zo.allocUnsafe=function(Xl){return Xo(Xl)},zo.allocUnsafeSlow=function(Xl){return Xo(Xl)};function is(Xl,Vl){if((typeof Vl!="string"||Vl==="")&&(Vl="utf8"),!zo.isEncoding(Vl))throw new TypeError("Unknown encoding: "+Vl);const Jl=Ol(Xl,Vl)|0;let wu=Ho(Jl);const ep=wu.write(Xl,Vl);return ep!==Jl&&(wu=wu.slice(0,ep)),wu}function yl(Xl){const Vl=Xl.length<0?0:xl(Xl.length)|0,Jl=Ho(Vl);for(let wu=0;wu<Vl;wu+=1)Jl[wu]=Xl[wu]&255;return Jl}function us(Xl){if(mp(Xl,mo)){const Vl=new mo(Xl);return hs(Vl.buffer,Vl.byteOffset,Vl.byteLength)}return yl(Xl)}function hs(Xl,Vl,Jl){if(Vl<0||Xl.byteLength<Vl)throw new RangeError('"offset" is outside of buffer bounds');if(Xl.byteLength<Vl+(Jl||0))throw new RangeError('"length" is outside of buffer bounds');let wu;return Vl===void 0&&Jl===void 0?wu=new mo(Xl):Jl===void 0?wu=new mo(Xl,Vl):wu=new mo(Xl,Vl,Jl),Object.setPrototypeOf(wu,zo.prototype),wu}function _l(Xl){if(zo.isBuffer(Xl)){const Vl=xl(Xl.length)|0,Jl=Ho(Vl);return Jl.length===0||Xl.copy(Jl,0,0,Vl),Jl}if(Xl.length!==void 0)return typeof Xl.length!="number"||wp(Xl.length)?Ho(0):yl(Xl);if(Xl.type==="Buffer"&&Array.isArray(Xl.data))return yl(Xl.data)}function xl(Xl){if(Xl>=$o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+$o.toString(16)+" bytes");return Xl|0}function Il(Xl){return+Xl!=Xl&&(Xl=0),zo.alloc(+Xl)}zo.isBuffer=function(Vl){return Vl!=null&&Vl._isBuffer===!0&&Vl!==zo.prototype},zo.compare=function(Vl,Jl){if(mp(Vl,mo)&&(Vl=zo.from(Vl,Vl.offset,Vl.byteLength)),mp(Jl,mo)&&(Jl=zo.from(Jl,Jl.offset,Jl.byteLength)),!zo.isBuffer(Vl)||!zo.isBuffer(Jl))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Vl===Jl)return 0;let wu=Vl.length,ep=Jl.length;for(let sp=0,dp=Math.min(wu,ep);sp<dp;++sp)if(Vl[sp]!==Jl[sp]){wu=Vl[sp],ep=Jl[sp];break}return wu<ep?-1:ep<wu?1:0},zo.isEncoding=function(Vl){switch(String(Vl).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},zo.concat=function(Vl,Jl){if(!Array.isArray(Vl))throw new TypeError('"list" argument must be an Array of Buffers');if(Vl.length===0)return zo.alloc(0);let wu;if(Jl===void 0)for(Jl=0,wu=0;wu<Vl.length;++wu)Jl+=Vl[wu].length;const ep=zo.allocUnsafe(Jl);let sp=0;for(wu=0;wu<Vl.length;++wu){let dp=Vl[wu];if(mp(dp,mo))sp+dp.length>ep.length?(zo.isBuffer(dp)||(dp=zo.from(dp)),dp.copy(ep,sp)):mo.prototype.set.call(ep,dp,sp);else if(zo.isBuffer(dp))dp.copy(ep,sp);else throw new TypeError('"list" argument must be an Array of Buffers');sp+=dp.length}return ep};function Ol(Xl,Vl){if(zo.isBuffer(Xl))return Xl.length;if(Ao.isView(Xl)||mp(Xl,Ao))return Xl.byteLength;if(typeof Xl!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Xl);const Jl=Xl.length,wu=arguments.length>2&&arguments[2]===!0;if(!wu&&Jl===0)return 0;let ep=!1;for(;;)switch(Vl){case"ascii":case"latin1":case"binary":return Jl;case"utf8":case"utf-8":return up(Xl).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Jl*2;case"hex":return Jl>>>1;case"base64":return yp(Xl).length;default:if(ep)return wu?-1:up(Xl).length;Vl=(""+Vl).toLowerCase(),ep=!0}}zo.byteLength=Ol;function Tl(Xl,Vl,Jl){let wu=!1;if((Vl===void 0||Vl<0)&&(Vl=0),Vl>this.length||((Jl===void 0||Jl>this.length)&&(Jl=this.length),Jl<=0)||(Jl>>>=0,Vl>>>=0,Jl<=Vl))return"";for(Xl||(Xl="utf8");;)switch(Xl){case"hex":return Al(this,Vl,Jl);case"utf8":case"utf-8":return _c(this,Vl,Jl);case"ascii":return ds(this,Vl,Jl);case"latin1":case"binary":return os(this,Vl,Jl);case"base64":return ps(this,Vl,Jl);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ul(this,Vl,Jl);default:if(wu)throw new TypeError("Unknown encoding: "+Xl);Xl=(Xl+"").toLowerCase(),wu=!0}}zo.prototype._isBuffer=!0;function Cl(Xl,Vl,Jl){const wu=Xl[Vl];Xl[Vl]=Xl[Jl],Xl[Jl]=wu}zo.prototype.swap16=function(){const Vl=this.length;if(Vl%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Jl=0;Jl<Vl;Jl+=2)Cl(this,Jl,Jl+1);return this},zo.prototype.swap32=function(){const Vl=this.length;if(Vl%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let Jl=0;Jl<Vl;Jl+=4)Cl(this,Jl,Jl+3),Cl(this,Jl+1,Jl+2);return this},zo.prototype.swap64=function(){const Vl=this.length;if(Vl%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let Jl=0;Jl<Vl;Jl+=8)Cl(this,Jl,Jl+7),Cl(this,Jl+1,Jl+6),Cl(this,Jl+2,Jl+5),Cl(this,Jl+3,Jl+4);return this},zo.prototype.toString=function(){const Vl=this.length;return Vl===0?"":arguments.length===0?_c(this,0,Vl):Tl.apply(this,arguments)},zo.prototype.toLocaleString=zo.prototype.toString,zo.prototype.equals=function(Vl){if(!zo.isBuffer(Vl))throw new TypeError("Argument must be a Buffer");return this===Vl?!0:zo.compare(this,Vl)===0},zo.prototype.inspect=function(){let Vl="";const Jl=Mn.INSPECT_MAX_BYTES;return Vl=this.toString("hex",0,Jl).replace(/(.{2})/g,"$1 ").trim(),this.length>Jl&&(Vl+=" ... "),"<Buffer "+Vl+">"},fo&&(zo.prototype[fo]=zo.prototype.inspect),zo.prototype.compare=function(Vl,Jl,wu,ep,sp){if(mp(Vl,mo)&&(Vl=zo.from(Vl,Vl.offset,Vl.byteLength)),!zo.isBuffer(Vl))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Vl);if(Jl===void 0&&(Jl=0),wu===void 0&&(wu=Vl?Vl.length:0),ep===void 0&&(ep=0),sp===void 0&&(sp=this.length),Jl<0||wu>Vl.length||ep<0||sp>this.length)throw new RangeError("out of range index");if(ep>=sp&&Jl>=wu)return 0;if(ep>=sp)return-1;if(Jl>=wu)return 1;if(Jl>>>=0,wu>>>=0,ep>>>=0,sp>>>=0,this===Vl)return 0;let dp=sp-ep,xp=wu-Jl;const Op=Math.min(dp,xp),Lp=this.slice(ep,sp),Mp=Vl.slice(Jl,wu);for(let Pp=0;Pp<Op;++Pp)if(Lp[Pp]!==Mp[Pp]){dp=Lp[Pp],xp=Mp[Pp];break}return dp<xp?-1:xp<dp?1:0};function Nl(Xl,Vl,Jl,wu,ep){if(Xl.length===0)return-1;if(typeof Jl=="string"?(wu=Jl,Jl=0):Jl>2147483647?Jl=2147483647:Jl<-2147483648&&(Jl=-2147483648),Jl=+Jl,wp(Jl)&&(Jl=ep?0:Xl.length-1),Jl<0&&(Jl=Xl.length+Jl),Jl>=Xl.length){if(ep)return-1;Jl=Xl.length-1}else if(Jl<0)if(ep)Jl=0;else return-1;if(typeof Vl=="string"&&(Vl=zo.from(Vl,wu)),zo.isBuffer(Vl))return Vl.length===0?-1:Wl(Xl,Vl,Jl,wu,ep);if(typeof Vl=="number")return Vl=Vl&255,typeof mo.prototype.indexOf=="function"?ep?mo.prototype.indexOf.call(Xl,Vl,Jl):mo.prototype.lastIndexOf.call(Xl,Vl,Jl):Wl(Xl,[Vl],Jl,wu,ep);throw new TypeError("val must be string, number or Buffer")}function Wl(Xl,Vl,Jl,wu,ep){let sp=1,dp=Xl.length,xp=Vl.length;if(wu!==void 0&&(wu=String(wu).toLowerCase(),wu==="ucs2"||wu==="ucs-2"||wu==="utf16le"||wu==="utf-16le")){if(Xl.length<2||Vl.length<2)return-1;sp=2,dp/=2,xp/=2,Jl/=2}function Op(Mp,Pp){return sp===1?Mp[Pp]:Mp.readUInt16BE(Pp*sp)}let Lp;if(ep){let Mp=-1;for(Lp=Jl;Lp<dp;Lp++)if(Op(Xl,Lp)===Op(Vl,Mp===-1?0:Lp-Mp)){if(Mp===-1&&(Mp=Lp),Lp-Mp+1===xp)return Mp*sp}else Mp!==-1&&(Lp-=Lp-Mp),Mp=-1}else for(Jl+xp>dp&&(Jl=dp-xp),Lp=Jl;Lp>=0;Lp--){let Mp=!0;for(let Pp=0;Pp<xp;Pp++)if(Op(Xl,Lp+Pp)!==Op(Vl,Pp)){Mp=!1;break}if(Mp)return Lp}return-1}zo.prototype.includes=function(Vl,Jl,wu){return this.indexOf(Vl,Jl,wu)!==-1},zo.prototype.indexOf=function(Vl,Jl,wu){return Nl(this,Vl,Jl,wu,!0)},zo.prototype.lastIndexOf=function(Vl,Jl,wu){return Nl(this,Vl,Jl,wu,!1)};function Dl(Xl,Vl,Jl,wu){Jl=Number(Jl)||0;const ep=Xl.length-Jl;wu?(wu=Number(wu),wu>ep&&(wu=ep)):wu=ep;const sp=Vl.length;wu>sp/2&&(wu=sp/2);let dp;for(dp=0;dp<wu;++dp){const xp=parseInt(Vl.substr(dp*2,2),16);if(wp(xp))return dp;Xl[Jl+dp]=xp}return dp}function Rl(Xl,Vl,Jl,wu){return _p(up(Vl,Xl.length-Jl),Xl,Jl,wu)}function Qo(Xl,Vl,Jl,wu){return _p($p(Vl),Xl,Jl,wu)}function Jo(Xl,Vl,Jl,wu){return _p(yp(Vl),Xl,Jl,wu)}function rs(Xl,Vl,Jl,wu){return _p(gp(Vl,Xl.length-Jl),Xl,Jl,wu)}zo.prototype.write=function(Vl,Jl,wu,ep){if(Jl===void 0)ep="utf8",wu=this.length,Jl=0;else if(wu===void 0&&typeof Jl=="string")ep=Jl,wu=this.length,Jl=0;else if(isFinite(Jl))Jl=Jl>>>0,isFinite(wu)?(wu=wu>>>0,ep===void 0&&(ep="utf8")):(ep=wu,wu=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const sp=this.length-Jl;if((wu===void 0||wu>sp)&&(wu=sp),Vl.length>0&&(wu<0||Jl<0)||Jl>this.length)throw new RangeError("Attempt to write outside buffer bounds");ep||(ep="utf8");let dp=!1;for(;;)switch(ep){case"hex":return Dl(this,Vl,Jl,wu);case"utf8":case"utf-8":return Rl(this,Vl,Jl,wu);case"ascii":case"latin1":case"binary":return Qo(this,Vl,Jl,wu);case"base64":return Jo(this,Vl,Jl,wu);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rs(this,Vl,Jl,wu);default:if(dp)throw new TypeError("Unknown encoding: "+ep);ep=(""+ep).toLowerCase(),dp=!0}},zo.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ps(Xl,Vl,Jl){return Vl===0&&Jl===Xl.length?Fn.fromByteArray(Xl):Fn.fromByteArray(Xl.slice(Vl,Jl))}function _c(Xl,Vl,Jl){Jl=Math.min(Xl.length,Jl);const wu=[];let ep=Vl;for(;ep<Jl;){const sp=Xl[ep];let dp=null,xp=sp>239?4:sp>223?3:sp>191?2:1;if(ep+xp<=Jl){let Op,Lp,Mp,Pp;switch(xp){case 1:sp<128&&(dp=sp);break;case 2:Op=Xl[ep+1],(Op&192)===128&&(Pp=(sp&31)<<6|Op&63,Pp>127&&(dp=Pp));break;case 3:Op=Xl[ep+1],Lp=Xl[ep+2],(Op&192)===128&&(Lp&192)===128&&(Pp=(sp&15)<<12|(Op&63)<<6|Lp&63,Pp>2047&&(Pp<55296||Pp>57343)&&(dp=Pp));break;case 4:Op=Xl[ep+1],Lp=Xl[ep+2],Mp=Xl[ep+3],(Op&192)===128&&(Lp&192)===128&&(Mp&192)===128&&(Pp=(sp&15)<<18|(Op&63)<<12|(Lp&63)<<6|Mp&63,Pp>65535&&Pp<1114112&&(dp=Pp))}}dp===null?(dp=65533,xp=1):dp>65535&&(dp-=65536,wu.push(dp>>>10&1023|55296),dp=56320|dp&1023),wu.push(dp),ep+=xp}return El(wu)}const $l=4096;function El(Xl){const Vl=Xl.length;if(Vl<=$l)return String.fromCharCode.apply(String,Xl);let Jl="",wu=0;for(;wu<Vl;)Jl+=String.fromCharCode.apply(String,Xl.slice(wu,wu+=$l));return Jl}function ds(Xl,Vl,Jl){let wu="";Jl=Math.min(Xl.length,Jl);for(let ep=Vl;ep<Jl;++ep)wu+=String.fromCharCode(Xl[ep]&127);return wu}function os(Xl,Vl,Jl){let wu="";Jl=Math.min(Xl.length,Jl);for(let ep=Vl;ep<Jl;++ep)wu+=String.fromCharCode(Xl[ep]);return wu}function Al(Xl,Vl,Jl){const wu=Xl.length;(!Vl||Vl<0)&&(Vl=0),(!Jl||Jl<0||Jl>wu)&&(Jl=wu);let ep="";for(let sp=Vl;sp<Jl;++sp)ep+=Sp[Xl[sp]];return ep}function Ul(Xl,Vl,Jl){const wu=Xl.slice(Vl,Jl);let ep="";for(let sp=0;sp<wu.length-1;sp+=2)ep+=String.fromCharCode(wu[sp]+wu[sp+1]*256);return ep}zo.prototype.slice=function(Vl,Jl){const wu=this.length;Vl=~~Vl,Jl=Jl===void 0?wu:~~Jl,Vl<0?(Vl+=wu,Vl<0&&(Vl=0)):Vl>wu&&(Vl=wu),Jl<0?(Jl+=wu,Jl<0&&(Jl=0)):Jl>wu&&(Jl=wu),Jl<Vl&&(Jl=Vl);const ep=this.subarray(Vl,Jl);return Object.setPrototypeOf(ep,zo.prototype),ep};function Zl(Xl,Vl,Jl){if(Xl%1!==0||Xl<0)throw new RangeError("offset is not uint");if(Xl+Vl>Jl)throw new RangeError("Trying to access beyond buffer length")}zo.prototype.readUintLE=zo.prototype.readUIntLE=function(Vl,Jl,wu){Vl=Vl>>>0,Jl=Jl>>>0,wu||Zl(Vl,Jl,this.length);let ep=this[Vl],sp=1,dp=0;for(;++dp<Jl&&(sp*=256);)ep+=this[Vl+dp]*sp;return ep},zo.prototype.readUintBE=zo.prototype.readUIntBE=function(Vl,Jl,wu){Vl=Vl>>>0,Jl=Jl>>>0,wu||Zl(Vl,Jl,this.length);let ep=this[Vl+--Jl],sp=1;for(;Jl>0&&(sp*=256);)ep+=this[Vl+--Jl]*sp;return ep},zo.prototype.readUint8=zo.prototype.readUInt8=function(Vl,Jl){return Vl=Vl>>>0,Jl||Zl(Vl,1,this.length),this[Vl]},zo.prototype.readUint16LE=zo.prototype.readUInt16LE=function(Vl,Jl){return Vl=Vl>>>0,Jl||Zl(Vl,2,this.length),this[Vl]|this[Vl+1]<<8},zo.prototype.readUint16BE=zo.prototype.readUInt16BE=function(Vl,Jl){return Vl=Vl>>>0,Jl||Zl(Vl,2,this.length),this[Vl]<<8|this[Vl+1]},zo.prototype.readUint32LE=zo.prototype.readUInt32LE=function(Vl,Jl){return Vl=Vl>>>0,Jl||Zl(Vl,4,this.length),(this[Vl]|this[Vl+1]<<8|this[Vl+2]<<16)+this[Vl+3]*16777216},zo.prototype.readUint32BE=zo.prototype.readUInt32BE=function(Vl,Jl){return Vl=Vl>>>0,Jl||Zl(Vl,4,this.length),this[Vl]*16777216+(this[Vl+1]<<16|this[Vl+2]<<8|this[Vl+3])},zo.prototype.readBigUInt64LE=bp(function(Vl){Vl=Vl>>>0,tp(Vl,"offset");const Jl=this[Vl],wu=this[Vl+7];(Jl===void 0||wu===void 0)&&op(Vl,this.length-8);const ep=Jl+this[++Vl]*2**8+this[++Vl]*2**16+this[++Vl]*2**24,sp=this[++Vl]+this[++Vl]*2**8+this[++Vl]*2**16+wu*2**24;return BigInt(ep)+(BigInt(sp)<<BigInt(32))}),zo.prototype.readBigUInt64BE=bp(function(Vl){Vl=Vl>>>0,tp(Vl,"offset");const Jl=this[Vl],wu=this[Vl+7];(Jl===void 0||wu===void 0)&&op(Vl,this.length-8);const ep=Jl*2**24+this[++Vl]*2**16+this[++Vl]*2**8+this[++Vl],sp=this[++Vl]*2**24+this[++Vl]*2**16+this[++Vl]*2**8+wu;return(BigInt(ep)<<BigInt(32))+BigInt(sp)}),zo.prototype.readIntLE=function(Vl,Jl,wu){Vl=Vl>>>0,Jl=Jl>>>0,wu||Zl(Vl,Jl,this.length);let ep=this[Vl],sp=1,dp=0;for(;++dp<Jl&&(sp*=256);)ep+=this[Vl+dp]*sp;return sp*=128,ep>=sp&&(ep-=Math.pow(2,8*Jl)),ep},zo.prototype.readIntBE=function(Vl,Jl,wu){Vl=Vl>>>0,Jl=Jl>>>0,wu||Zl(Vl,Jl,this.length);let ep=Jl,sp=1,dp=this[Vl+--ep];for(;ep>0&&(sp*=256);)dp+=this[Vl+--ep]*sp;return sp*=128,dp>=sp&&(dp-=Math.pow(2,8*Jl)),dp},zo.prototype.readInt8=function(Vl,Jl){return Vl=Vl>>>0,Jl||Zl(Vl,1,this.length),this[Vl]&128?(255-this[Vl]+1)*-1:this[Vl]},zo.prototype.readInt16LE=function(Vl,Jl){Vl=Vl>>>0,Jl||Zl(Vl,2,this.length);const wu=this[Vl]|this[Vl+1]<<8;return wu&32768?wu|4294901760:wu},zo.prototype.readInt16BE=function(Vl,Jl){Vl=Vl>>>0,Jl||Zl(Vl,2,this.length);const wu=this[Vl+1]|this[Vl]<<8;return wu&32768?wu|4294901760:wu},zo.prototype.readInt32LE=function(Vl,Jl){return Vl=Vl>>>0,Jl||Zl(Vl,4,this.length),this[Vl]|this[Vl+1]<<8|this[Vl+2]<<16|this[Vl+3]<<24},zo.prototype.readInt32BE=function(Vl,Jl){return Vl=Vl>>>0,Jl||Zl(Vl,4,this.length),this[Vl]<<24|this[Vl+1]<<16|this[Vl+2]<<8|this[Vl+3]},zo.prototype.readBigInt64LE=bp(function(Vl){Vl=Vl>>>0,tp(Vl,"offset");const Jl=this[Vl],wu=this[Vl+7];(Jl===void 0||wu===void 0)&&op(Vl,this.length-8);const ep=this[Vl+4]+this[Vl+5]*2**8+this[Vl+6]*2**16+(wu<<24);return(BigInt(ep)<<BigInt(32))+BigInt(Jl+this[++Vl]*2**8+this[++Vl]*2**16+this[++Vl]*2**24)}),zo.prototype.readBigInt64BE=bp(function(Vl){Vl=Vl>>>0,tp(Vl,"offset");const Jl=this[Vl],wu=this[Vl+7];(Jl===void 0||wu===void 0)&&op(Vl,this.length-8);const ep=(Jl<<24)+this[++Vl]*2**16+this[++Vl]*2**8+this[++Vl];return(BigInt(ep)<<BigInt(32))+BigInt(this[++Vl]*2**24+this[++Vl]*2**16+this[++Vl]*2**8+wu)}),zo.prototype.readFloatLE=function(Vl,Jl){return Vl=Vl>>>0,Jl||Zl(Vl,4,this.length),io.read(this,Vl,!0,23,4)},zo.prototype.readFloatBE=function(Vl,Jl){return Vl=Vl>>>0,Jl||Zl(Vl,4,this.length),io.read(this,Vl,!1,23,4)},zo.prototype.readDoubleLE=function(Vl,Jl){return Vl=Vl>>>0,Jl||Zl(Vl,8,this.length),io.read(this,Vl,!0,52,8)},zo.prototype.readDoubleBE=function(Vl,Jl){return Vl=Vl>>>0,Jl||Zl(Vl,8,this.length),io.read(this,Vl,!1,52,8)};function Pl(Xl,Vl,Jl,wu,ep,sp){if(!zo.isBuffer(Xl))throw new TypeError('"buffer" argument must be a Buffer instance');if(Vl>ep||Vl<sp)throw new RangeError('"value" argument is out of bounds');if(Jl+wu>Xl.length)throw new RangeError("Index out of range")}zo.prototype.writeUintLE=zo.prototype.writeUIntLE=function(Vl,Jl,wu,ep){if(Vl=+Vl,Jl=Jl>>>0,wu=wu>>>0,!ep){const xp=Math.pow(2,8*wu)-1;Pl(this,Vl,Jl,wu,xp,0)}let sp=1,dp=0;for(this[Jl]=Vl&255;++dp<wu&&(sp*=256);)this[Jl+dp]=Vl/sp&255;return Jl+wu},zo.prototype.writeUintBE=zo.prototype.writeUIntBE=function(Vl,Jl,wu,ep){if(Vl=+Vl,Jl=Jl>>>0,wu=wu>>>0,!ep){const xp=Math.pow(2,8*wu)-1;Pl(this,Vl,Jl,wu,xp,0)}let sp=wu-1,dp=1;for(this[Jl+sp]=Vl&255;--sp>=0&&(dp*=256);)this[Jl+sp]=Vl/dp&255;return Jl+wu},zo.prototype.writeUint8=zo.prototype.writeUInt8=function(Vl,Jl,wu){return Vl=+Vl,Jl=Jl>>>0,wu||Pl(this,Vl,Jl,1,255,0),this[Jl]=Vl&255,Jl+1},zo.prototype.writeUint16LE=zo.prototype.writeUInt16LE=function(Vl,Jl,wu){return Vl=+Vl,Jl=Jl>>>0,wu||Pl(this,Vl,Jl,2,65535,0),this[Jl]=Vl&255,this[Jl+1]=Vl>>>8,Jl+2},zo.prototype.writeUint16BE=zo.prototype.writeUInt16BE=function(Vl,Jl,wu){return Vl=+Vl,Jl=Jl>>>0,wu||Pl(this,Vl,Jl,2,65535,0),this[Jl]=Vl>>>8,this[Jl+1]=Vl&255,Jl+2},zo.prototype.writeUint32LE=zo.prototype.writeUInt32LE=function(Vl,Jl,wu){return Vl=+Vl,Jl=Jl>>>0,wu||Pl(this,Vl,Jl,4,4294967295,0),this[Jl+3]=Vl>>>24,this[Jl+2]=Vl>>>16,this[Jl+1]=Vl>>>8,this[Jl]=Vl&255,Jl+4},zo.prototype.writeUint32BE=zo.prototype.writeUInt32BE=function(Vl,Jl,wu){return Vl=+Vl,Jl=Jl>>>0,wu||Pl(this,Vl,Jl,4,4294967295,0),this[Jl]=Vl>>>24,this[Jl+1]=Vl>>>16,this[Jl+2]=Vl>>>8,this[Jl+3]=Vl&255,Jl+4};function Hl(Xl,Vl,Jl,wu,ep){rp(Vl,wu,ep,Xl,Jl,7);let sp=Number(Vl&BigInt(4294967295));Xl[Jl++]=sp,sp=sp>>8,Xl[Jl++]=sp,sp=sp>>8,Xl[Jl++]=sp,sp=sp>>8,Xl[Jl++]=sp;let dp=Number(Vl>>BigInt(32)&BigInt(4294967295));return Xl[Jl++]=dp,dp=dp>>8,Xl[Jl++]=dp,dp=dp>>8,Xl[Jl++]=dp,dp=dp>>8,Xl[Jl++]=dp,Jl}function Ml(Xl,Vl,Jl,wu,ep){rp(Vl,wu,ep,Xl,Jl,7);let sp=Number(Vl&BigInt(4294967295));Xl[Jl+7]=sp,sp=sp>>8,Xl[Jl+6]=sp,sp=sp>>8,Xl[Jl+5]=sp,sp=sp>>8,Xl[Jl+4]=sp;let dp=Number(Vl>>BigInt(32)&BigInt(4294967295));return Xl[Jl+3]=dp,dp=dp>>8,Xl[Jl+2]=dp,dp=dp>>8,Xl[Jl+1]=dp,dp=dp>>8,Xl[Jl]=dp,Jl+8}zo.prototype.writeBigUInt64LE=bp(function(Vl,Jl=0){return Hl(this,Vl,Jl,BigInt(0),BigInt("0xffffffffffffffff"))}),zo.prototype.writeBigUInt64BE=bp(function(Vl,Jl=0){return Ml(this,Vl,Jl,BigInt(0),BigInt("0xffffffffffffffff"))}),zo.prototype.writeIntLE=function(Vl,Jl,wu,ep){if(Vl=+Vl,Jl=Jl>>>0,!ep){const Op=Math.pow(2,8*wu-1);Pl(this,Vl,Jl,wu,Op-1,-Op)}let sp=0,dp=1,xp=0;for(this[Jl]=Vl&255;++sp<wu&&(dp*=256);)Vl<0&&xp===0&&this[Jl+sp-1]!==0&&(xp=1),this[Jl+sp]=(Vl/dp>>0)-xp&255;return Jl+wu},zo.prototype.writeIntBE=function(Vl,Jl,wu,ep){if(Vl=+Vl,Jl=Jl>>>0,!ep){const Op=Math.pow(2,8*wu-1);Pl(this,Vl,Jl,wu,Op-1,-Op)}let sp=wu-1,dp=1,xp=0;for(this[Jl+sp]=Vl&255;--sp>=0&&(dp*=256);)Vl<0&&xp===0&&this[Jl+sp+1]!==0&&(xp=1),this[Jl+sp]=(Vl/dp>>0)-xp&255;return Jl+wu},zo.prototype.writeInt8=function(Vl,Jl,wu){return Vl=+Vl,Jl=Jl>>>0,wu||Pl(this,Vl,Jl,1,127,-128),Vl<0&&(Vl=255+Vl+1),this[Jl]=Vl&255,Jl+1},zo.prototype.writeInt16LE=function(Vl,Jl,wu){return Vl=+Vl,Jl=Jl>>>0,wu||Pl(this,Vl,Jl,2,32767,-32768),this[Jl]=Vl&255,this[Jl+1]=Vl>>>8,Jl+2},zo.prototype.writeInt16BE=function(Vl,Jl,wu){return Vl=+Vl,Jl=Jl>>>0,wu||Pl(this,Vl,Jl,2,32767,-32768),this[Jl]=Vl>>>8,this[Jl+1]=Vl&255,Jl+2},zo.prototype.writeInt32LE=function(Vl,Jl,wu){return Vl=+Vl,Jl=Jl>>>0,wu||Pl(this,Vl,Jl,4,2147483647,-2147483648),this[Jl]=Vl&255,this[Jl+1]=Vl>>>8,this[Jl+2]=Vl>>>16,this[Jl+3]=Vl>>>24,Jl+4},zo.prototype.writeInt32BE=function(Vl,Jl,wu){return Vl=+Vl,Jl=Jl>>>0,wu||Pl(this,Vl,Jl,4,2147483647,-2147483648),Vl<0&&(Vl=4294967295+Vl+1),this[Jl]=Vl>>>24,this[Jl+1]=Vl>>>16,this[Jl+2]=Vl>>>8,this[Jl+3]=Vl&255,Jl+4},zo.prototype.writeBigInt64LE=bp(function(Vl,Jl=0){return Hl(this,Vl,Jl,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),zo.prototype.writeBigInt64BE=bp(function(Vl,Jl=0){return Ml(this,Vl,Jl,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Fl(Xl,Vl,Jl,wu,ep,sp){if(Jl+wu>Xl.length)throw new RangeError("Index out of range");if(Jl<0)throw new RangeError("Index out of range")}function Yl(Xl,Vl,Jl,wu,ep){return Vl=+Vl,Jl=Jl>>>0,ep||Fl(Xl,Vl,Jl,4),io.write(Xl,Vl,Jl,wu,23,4),Jl+4}zo.prototype.writeFloatLE=function(Vl,Jl,wu){return Yl(this,Vl,Jl,!0,wu)},zo.prototype.writeFloatBE=function(Vl,Jl,wu){return Yl(this,Vl,Jl,!1,wu)};function Bl(Xl,Vl,Jl,wu,ep){return Vl=+Vl,Jl=Jl>>>0,ep||Fl(Xl,Vl,Jl,8),io.write(Xl,Vl,Jl,wu,52,8),Jl+8}zo.prototype.writeDoubleLE=function(Vl,Jl,wu){return Bl(this,Vl,Jl,!0,wu)},zo.prototype.writeDoubleBE=function(Vl,Jl,wu){return Bl(this,Vl,Jl,!1,wu)},zo.prototype.copy=function(Vl,Jl,wu,ep){if(!zo.isBuffer(Vl))throw new TypeError("argument should be a Buffer");if(wu||(wu=0),!ep&&ep!==0&&(ep=this.length),Jl>=Vl.length&&(Jl=Vl.length),Jl||(Jl=0),ep>0&&ep<wu&&(ep=wu),ep===wu||Vl.length===0||this.length===0)return 0;if(Jl<0)throw new RangeError("targetStart out of bounds");if(wu<0||wu>=this.length)throw new RangeError("Index out of range");if(ep<0)throw new RangeError("sourceEnd out of bounds");ep>this.length&&(ep=this.length),Vl.length-Jl<ep-wu&&(ep=Vl.length-Jl+wu);const sp=ep-wu;return this===Vl&&typeof mo.prototype.copyWithin=="function"?this.copyWithin(Jl,wu,ep):mo.prototype.set.call(Vl,this.subarray(wu,ep),Jl),sp},zo.prototype.fill=function(Vl,Jl,wu,ep){if(typeof Vl=="string"){if(typeof Jl=="string"?(ep=Jl,Jl=0,wu=this.length):typeof wu=="string"&&(ep=wu,wu=this.length),ep!==void 0&&typeof ep!="string")throw new TypeError("encoding must be a string");if(typeof ep=="string"&&!zo.isEncoding(ep))throw new TypeError("Unknown encoding: "+ep);if(Vl.length===1){const dp=Vl.charCodeAt(0);(ep==="utf8"&&dp<128||ep==="latin1")&&(Vl=dp)}}else typeof Vl=="number"?Vl=Vl&255:typeof Vl=="boolean"&&(Vl=Number(Vl));if(Jl<0||this.length<Jl||this.length<wu)throw new RangeError("Out of range index");if(wu<=Jl)return this;Jl=Jl>>>0,wu=wu===void 0?this.length:wu>>>0,Vl||(Vl=0);let sp;if(typeof Vl=="number")for(sp=Jl;sp<wu;++sp)this[sp]=Vl;else{const dp=zo.isBuffer(Vl)?Vl:zo.from(Vl,ep),xp=dp.length;if(xp===0)throw new TypeError('The value "'+Vl+'" is invalid for argument "value"');for(sp=0;sp<wu-Jl;++sp)this[sp+Jl]=dp[sp%xp]}return this};const Kl={};function Gl(Xl,Vl,Jl){Kl[Xl]=class extends Jl{constructor(){super(),Object.defineProperty(this,"message",{value:Vl.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${Xl}]`,this.stack,delete this.name}get code(){return Xl}set code(ep){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ep,writable:!0})}toString(){return`${this.name} [${Xl}]: ${this.message}`}}}Gl("ERR_BUFFER_OUT_OF_BOUNDS",function(Xl){return Xl?`${Xl} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Gl("ERR_INVALID_ARG_TYPE",function(Xl,Vl){return`The "${Xl}" argument must be of type number. Received type ${typeof Vl}`},TypeError),Gl("ERR_OUT_OF_RANGE",function(Xl,Vl,Jl){let wu=`The value of "${Xl}" is out of range.`,ep=Jl;return Number.isInteger(Jl)&&Math.abs(Jl)>2**32?ep=fu(String(Jl)):typeof Jl=="bigint"&&(ep=String(Jl),(Jl>BigInt(2)**BigInt(32)||Jl<-(BigInt(2)**BigInt(32)))&&(ep=fu(ep)),ep+="n"),wu+=` It must be ${Vl}. Received ${ep}`,wu},RangeError);function fu(Xl){let Vl="",Jl=Xl.length;const wu=Xl[0]==="-"?1:0;for(;Jl>=wu+4;Jl-=3)Vl=`_${Xl.slice(Jl-3,Jl)}${Vl}`;return`${Xl.slice(0,Jl)}${Vl}`}function bu(Xl,Vl,Jl){tp(Vl,"offset"),(Xl[Vl]===void 0||Xl[Vl+Jl]===void 0)&&op(Vl,Xl.length-(Jl+1))}function rp(Xl,Vl,Jl,wu,ep,sp){if(Xl>Jl||Xl<Vl){const dp=typeof Vl=="bigint"?"n":"";let xp;throw Vl===0||Vl===BigInt(0)?xp=`>= 0${dp} and < 2${dp} ** ${(sp+1)*8}${dp}`:xp=`>= -(2${dp} ** ${(sp+1)*8-1}${dp}) and < 2 ** ${(sp+1)*8-1}${dp}`,new Kl.ERR_OUT_OF_RANGE("value",xp,Xl)}bu(wu,ep,sp)}function tp(Xl,Vl){if(typeof Xl!="number")throw new Kl.ERR_INVALID_ARG_TYPE(Vl,"number",Xl)}function op(Xl,Vl,Jl){throw Math.floor(Xl)!==Xl?(tp(Xl,Jl),new Kl.ERR_OUT_OF_RANGE("offset","an integer",Xl)):Vl<0?new Kl.ERR_BUFFER_OUT_OF_BOUNDS:new Kl.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${Vl}`,Xl)}const vp=/[^+/0-9A-Za-z-_]/g;function ip(Xl){if(Xl=Xl.split("=")[0],Xl=Xl.trim().replace(vp,""),Xl.length<2)return"";for(;Xl.length%4!==0;)Xl=Xl+"=";return Xl}function up(Xl,Vl){Vl=Vl||1/0;let Jl;const wu=Xl.length;let ep=null;const sp=[];for(let dp=0;dp<wu;++dp){if(Jl=Xl.charCodeAt(dp),Jl>55295&&Jl<57344){if(!ep){if(Jl>56319){(Vl-=3)>-1&&sp.push(239,191,189);continue}else if(dp+1===wu){(Vl-=3)>-1&&sp.push(239,191,189);continue}ep=Jl;continue}if(Jl<56320){(Vl-=3)>-1&&sp.push(239,191,189),ep=Jl;continue}Jl=(ep-55296<<10|Jl-56320)+65536}else ep&&(Vl-=3)>-1&&sp.push(239,191,189);if(ep=null,Jl<128){if((Vl-=1)<0)break;sp.push(Jl)}else if(Jl<2048){if((Vl-=2)<0)break;sp.push(Jl>>6|192,Jl&63|128)}else if(Jl<65536){if((Vl-=3)<0)break;sp.push(Jl>>12|224,Jl>>6&63|128,Jl&63|128)}else if(Jl<1114112){if((Vl-=4)<0)break;sp.push(Jl>>18|240,Jl>>12&63|128,Jl>>6&63|128,Jl&63|128)}else throw new Error("Invalid code point")}return sp}function $p(Xl){const Vl=[];for(let Jl=0;Jl<Xl.length;++Jl)Vl.push(Xl.charCodeAt(Jl)&255);return Vl}function gp(Xl,Vl){let Jl,wu,ep;const sp=[];for(let dp=0;dp<Xl.length&&!((Vl-=2)<0);++dp)Jl=Xl.charCodeAt(dp),wu=Jl>>8,ep=Jl%256,sp.push(ep),sp.push(wu);return sp}function yp(Xl){return Fn.toByteArray(ip(Xl))}function _p(Xl,Vl,Jl,wu){let ep;for(ep=0;ep<wu&&!(ep+Jl>=Vl.length||ep>=Xl.length);++ep)Vl[ep+Jl]=Xl[ep];return ep}function mp(Xl,Vl){return Xl instanceof Vl||Xl!=null&&Xl.constructor!=null&&Xl.constructor.name!=null&&Xl.constructor.name===Vl.name}function wp(Xl){return Xl!==Xl}const Sp=function(){const Xl="0123456789abcdef",Vl=new Array(256);for(let Jl=0;Jl<16;++Jl){const wu=Jl*16;for(let ep=0;ep<16;++ep)Vl[wu+ep]=Xl[Jl]+Xl[ep]}return Vl}();function bp(Xl){return typeof BigInt>"u"?Ap:Xl}function Ap(){throw new Error("BigInt not supported")}})(buffer$4);const Buffer$D=buffer$4.Buffer,Blob$1=buffer$4.Blob,BlobOptions=buffer$4.BlobOptions,Buffer$1$1=buffer$4.Buffer,File=buffer$4.File,FileOptions=buffer$4.FileOptions,INSPECT_MAX_BYTES=buffer$4.INSPECT_MAX_BYTES,SlowBuffer=buffer$4.SlowBuffer,TranscodeEncoding=buffer$4.TranscodeEncoding,atob$1=buffer$4.atob,btoa$1=buffer$4.btoa,constants$d=buffer$4.constants,isAscii=buffer$4.isAscii,isUtf8=buffer$4.isUtf8,kMaxLength=buffer$4.kMaxLength,kStringMaxLength=buffer$4.kStringMaxLength,resolveObjectURL=buffer$4.resolveObjectURL,transcode=buffer$4.transcode,dist=Object.freeze(Object.defineProperty({__proto__:null,Blob:Blob$1,BlobOptions,Buffer:Buffer$1$1,File,FileOptions,INSPECT_MAX_BYTES,SlowBuffer,TranscodeEncoding,atob:atob$1,btoa:btoa$1,constants:constants$d,default:Buffer$D,isAscii,isUtf8,kMaxLength,kStringMaxLength,resolveObjectURL,transcode},Symbol.toStringTag,{value:"Module"})),require$$1$8=getAugmentedNamespace(dist);/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(Mn,Fn){var io=require$$1$8,fo=io.Buffer;function $o(Ao,jo){for(var Lo in Ao)jo[Lo]=Ao[Lo]}fo.from&&fo.alloc&&fo.allocUnsafe&&fo.allocUnsafeSlow?Mn.exports=io:($o(io,Fn),Fn.Buffer=mo);function mo(Ao,jo,Lo){return fo(Ao,jo,Lo)}mo.prototype=Object.create(fo.prototype),$o(fo,mo),mo.from=function(Ao,jo,Lo){if(typeof Ao=="number")throw new TypeError("Argument must not be a number");return fo(Ao,jo,Lo)},mo.alloc=function(Ao,jo,Lo){if(typeof Ao!="number")throw new TypeError("Argument must be a number");var Ho=fo(Ao);return jo!==void 0?typeof Lo=="string"?Ho.fill(jo,Lo):Ho.fill(jo):Ho.fill(0),Ho},mo.allocUnsafe=function(Ao){if(typeof Ao!="number")throw new TypeError("Argument must be a number");return fo(Ao)},mo.allocUnsafeSlow=function(Ao){if(typeof Ao!="number")throw new TypeError("Argument must be a number");return io.SlowBuffer(Ao)}})(safeBuffer$2,safeBuffer$2.exports);var safeBufferExports$1=safeBuffer$2.exports,Buffer$C=safeBufferExports$1.Buffer,baseX$1=function(Fn){for(var io={},fo=Fn.length,$o=Fn.charAt(0),mo=0;mo<Fn.length;mo++){var Ao=Fn.charAt(mo);if(io[Ao]!==void 0)throw new TypeError(Ao+" is ambiguous");io[Ao]=mo}function jo(zo){if(zo.length===0)return"";for(var Go=[0],Vo=0;Vo<zo.length;++Vo){for(var Yo=0,Xo=zo[Vo];Yo<Go.length;++Yo)Xo+=Go[Yo]<<8,Go[Yo]=Xo%fo,Xo=Xo/fo|0;for(;Xo>0;)Go.push(Xo%fo),Xo=Xo/fo|0}for(var is="",yl=0;zo[yl]===0&&yl<zo.length-1;++yl)is+=Fn[0];for(var us=Go.length-1;us>=0;--us)is+=Fn[Go[us]];return is}function Lo(zo){if(zo.length===0)return Buffer$C.allocUnsafe(0);for(var Go=[0],Vo=0;Vo<zo.length;Vo++){var Yo=io[zo[Vo]];if(Yo===void 0)return;for(var Xo=0,is=Yo;Xo<Go.length;++Xo)is+=Go[Xo]*fo,Go[Xo]=is&255,is>>=8;for(;is>0;)Go.push(is&255),is>>=8}for(var yl=0;zo[yl]===$o&&yl<zo.length-1;++yl)Go.push(0);return Buffer$C.from(Go.reverse())}function Ho(zo){var Go=Lo(zo);if(Go)return Go;throw new Error("Non-base"+fo+" character")}return{encode:jo,decodeUnsafe:Lo,decode:Ho}},basex$2=baseX$1,ALPHABET$2="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",bs58$3=basex$2(ALPHABET$2);const bs58$4=getDefaultExportFromCjs$1(bs58$3),NEAR_NOMINATION_EXP=24,NEAR_NOMINATION=10n**BigInt(NEAR_NOMINATION_EXP),ROUNDING_OFFSETS=[],BN10=10n;for(let Mn=0,Fn=5n;Mn<NEAR_NOMINATION_EXP;Mn++,Fn=Fn*BN10)ROUNDING_OFFSETS[Mn]=Fn;function formatNearAmount(Mn,Fn=NEAR_NOMINATION_EXP){let io=BigInt(Mn);if(Fn!==NEAR_NOMINATION_EXP){const mo=NEAR_NOMINATION_EXP-Fn-1;mo>0&&(io+=ROUNDING_OFFSETS[mo])}Mn=io.toString();const fo=Mn.substring(0,Mn.length-NEAR_NOMINATION_EXP)||"0",$o=Mn.substring(Mn.length-NEAR_NOMINATION_EXP).padStart(NEAR_NOMINATION_EXP,"0").substring(0,Fn);return trimTrailingZeroes(`${formatWithCommas(fo)}.${$o}`)}function parseNearAmount(Mn){if(!Mn)return null;Mn=cleanupAmount(Mn);const Fn=Mn.split("."),io=Fn[0],fo=Fn[1]||"";if(Fn.length>2||fo.length>NEAR_NOMINATION_EXP)throw new Error(`Cannot parse '${Mn}' as NEAR amount`);return trimLeadingZeroes(io+fo.padEnd(NEAR_NOMINATION_EXP,"0"))}function cleanupAmount(Mn){return Mn.replace(/,/g,"").trim()}function trimTrailingZeroes(Mn){return Mn.replace(/\.?0*$/,"")}function trimLeadingZeroes(Mn){return Mn=Mn.replace(/^0+/,""),Mn===""?"0":Mn}function formatWithCommas(Mn){const Fn=/(-?\d+)(\d{3})/;for(;Fn.test(Mn);)Mn=Mn.replace(Fn,"$1,$2");return Mn}function baseEncode$1(Mn){if(typeof Mn=="string"){const Fn=[];for(let io=0;io<Mn.length;io++)Fn.push(Mn.charCodeAt(io));Mn=new Uint8Array(Fn)}return bs58$4.encode(Mn)}function baseDecode$1(Mn){return new Uint8Array(bs58$4.decode(Mn))}const schema$6={AccessKeyNotFound:{name:"AccessKeyNotFound",subtypes:[],props:{account_id:"",public_key:""}},AccountAlreadyExists:{name:"AccountAlreadyExists",subtypes:[],props:{account_id:""}},AccountDoesNotExist:{name:"AccountDoesNotExist",subtypes:[],props:{account_id:""}},ActionError:{name:"ActionError",subtypes:["AccountAlreadyExists","AccountDoesNotExist","CreateAccountOnlyByRegistrar","CreateAccountNotAllowed","ActorNoPermission","DeleteKeyDoesNotExist","AddKeyAlreadyExists","DeleteAccountStaking","LackBalanceForState","TriesToUnstake","TriesToStake","InsufficientStake","FunctionCallError","NewReceiptValidationError","OnlyImplicitAccountCreationAllowed","DeleteAccountWithLargeState","DelegateActionInvalidSignature","DelegateActionSenderDoesNotMatchTxReceiver","DelegateActionExpired","DelegateActionAccessKeyError","DelegateActionInvalidNonce","DelegateActionNonceTooLarge"],props:{index:""}},ActionsValidationError:{name:"ActionsValidationError",subtypes:["DeleteActionMustBeFinal","TotalPrepaidGasExceeded","TotalNumberOfActionsExceeded","AddKeyMethodNamesNumberOfBytesExceeded","AddKeyMethodNameLengthExceeded","IntegerOverflow","InvalidAccountId","ContractSizeExceeded","FunctionCallMethodNameLengthExceeded","FunctionCallArgumentsLengthExceeded","UnsuitableStakingKey","FunctionCallZeroAttachedGas","DelegateActionMustBeOnlyOne","UnsupportedProtocolFeature"],props:{}},ActorNoPermission:{name:"ActorNoPermission",subtypes:[],props:{account_id:"",actor_id:""}},AddKeyAlreadyExists:{name:"AddKeyAlreadyExists",subtypes:[],props:{account_id:"",public_key:""}},AddKeyMethodNameLengthExceeded:{name:"AddKeyMethodNameLengthExceeded",subtypes:[],props:{length:"",limit:""}},AddKeyMethodNamesNumberOfBytesExceeded:{name:"AddKeyMethodNamesNumberOfBytesExceeded",subtypes:[],props:{limit:"",total_number_of_bytes:""}},AltBn128InvalidInput:{name:"AltBn128InvalidInput",subtypes:[],props:{msg:""}},BadUTF16:{name:"BadUTF16",subtypes:[],props:{}},BadUTF8:{name:"BadUTF8",subtypes:[],props:{}},BalanceExceeded:{name:"BalanceExceeded",subtypes:[],props:{}},BalanceMismatchError:{name:"BalanceMismatchError",subtypes:[],props:{final_accounts_balance:"",final_postponed_receipts_balance:"",forwarded_buffered_receipts_balance:"",incoming_receipts_balance:"",incoming_validator_rewards:"",initial_accounts_balance:"",initial_postponed_receipts_balance:"",new_buffered_receipts_balance:"",new_delayed_receipts_balance:"",other_burnt_amount:"",outgoing_receipts_balance:"",processed_delayed_receipts_balance:"",slashed_burnt_amount:"",tx_burnt_amount:""}},CallIndirectOOB:{name:"CallIndirectOOB",subtypes:[],props:{}},CannotAppendActionToJointPromise:{name:"CannotAppendActionToJointPromise",subtypes:[],props:{}},CannotReturnJointPromise:{name:"CannotReturnJointPromise",subtypes:[],props:{}},CodeDoesNotExist:{name:"CodeDoesNotExist",subtypes:[],props:{account_id:""}},CompilationError:{name:"CompilationError",subtypes:["CodeDoesNotExist","PrepareError","WasmerCompileError"],props:{}},ContractSizeExceeded:{name:"ContractSizeExceeded",subtypes:[],props:{limit:"",size:""}},CostOverflow:{name:"CostOverflow",subtypes:[],props:{}},CreateAccountNotAllowed:{name:"CreateAccountNotAllowed",subtypes:[],props:{account_id:"",predecessor_id:""}},CreateAccountOnlyByRegistrar:{name:"CreateAccountOnlyByRegistrar",subtypes:[],props:{account_id:"",predecessor_id:"",registrar_account_id:""}},DelegateActionExpired:{name:"DelegateActionExpired",subtypes:[],props:{}},DelegateActionInvalidNonce:{name:"DelegateActionInvalidNonce",subtypes:[],props:{ak_nonce:"",delegate_nonce:""}},DelegateActionInvalidSignature:{name:"DelegateActionInvalidSignature",subtypes:[],props:{}},DelegateActionMustBeOnlyOne:{name:"DelegateActionMustBeOnlyOne",subtypes:[],props:{}},DelegateActionNonceTooLarge:{name:"DelegateActionNonceTooLarge",subtypes:[],props:{delegate_nonce:"",upper_bound:""}},DelegateActionSenderDoesNotMatchTxReceiver:{name:"DelegateActionSenderDoesNotMatchTxReceiver",subtypes:[],props:{receiver_id:"",sender_id:""}},DeleteAccountStaking:{name:"DeleteAccountStaking",subtypes:[],props:{account_id:""}},DeleteAccountWithLargeState:{name:"DeleteAccountWithLargeState",subtypes:[],props:{account_id:""}},DeleteActionMustBeFinal:{name:"DeleteActionMustBeFinal",subtypes:[],props:{}},DeleteKeyDoesNotExist:{name:"DeleteKeyDoesNotExist",subtypes:[],props:{account_id:"",public_key:""}},DepositWithFunctionCall:{name:"DepositWithFunctionCall",subtypes:[],props:{}},Deprecated:{name:"Deprecated",subtypes:[],props:{method_name:""}},Deserialization:{name:"Deserialization",subtypes:[],props:{}},ECRecoverError:{name:"ECRecoverError",subtypes:[],props:{msg:""}},Ed25519VerifyInvalidInput:{name:"Ed25519VerifyInvalidInput",subtypes:[],props:{msg:""}},EmptyMethodName:{name:"EmptyMethodName",subtypes:[],props:{}},Expired:{name:"Expired",subtypes:[],props:{}},FunctionCallArgumentsLengthExceeded:{name:"FunctionCallArgumentsLengthExceeded",subtypes:[],props:{length:"",limit:""}},FunctionCallMethodNameLengthExceeded:{name:"FunctionCallMethodNameLengthExceeded",subtypes:[],props:{length:"",limit:""}},FunctionCallZeroAttachedGas:{name:"FunctionCallZeroAttachedGas",subtypes:[],props:{}},GasExceeded:{name:"GasExceeded",subtypes:[],props:{}},GasInstrumentation:{name:"GasInstrumentation",subtypes:[],props:{}},GasLimitExceeded:{name:"GasLimitExceeded",subtypes:[],props:{}},GenericTrap:{name:"GenericTrap",subtypes:[],props:{}},GuestPanic:{name:"GuestPanic",subtypes:[],props:{panic_msg:""}},HostError:{name:"HostError",subtypes:["BadUTF16","BadUTF8","GasExceeded","GasLimitExceeded","BalanceExceeded","EmptyMethodName","GuestPanic","IntegerOverflow","InvalidPromiseIndex","CannotAppendActionToJointPromise","CannotReturnJointPromise","InvalidPromiseResultIndex","InvalidRegisterId","IteratorWasInvalidated","MemoryAccessViolation","InvalidReceiptIndex","InvalidIteratorIndex","InvalidAccountId","InvalidMethodName","InvalidPublicKey","ProhibitedInView","NumberOfLogsExceeded","KeyLengthExceeded","ValueLengthExceeded","TotalLogLengthExceeded","NumberPromisesExceeded","NumberInputDataDependenciesExceeded","ReturnedValueLengthExceeded","ContractSizeExceeded","Deprecated","ECRecoverError","AltBn128InvalidInput","Ed25519VerifyInvalidInput"],props:{}},IllegalArithmetic:{name:"IllegalArithmetic",subtypes:[],props:{}},IncorrectCallIndirectSignature:{name:"IncorrectCallIndirectSignature",subtypes:[],props:{}},IndirectCallToNull:{name:"IndirectCallToNull",subtypes:[],props:{}},Instantiate:{name:"Instantiate",subtypes:[],props:{}},InsufficientStake:{name:"InsufficientStake",subtypes:[],props:{account_id:"",minimum_stake:"",stake:""}},IntegerOverflow:{name:"IntegerOverflow",subtypes:[],props:{}},InternalMemoryDeclared:{name:"InternalMemoryDeclared",subtypes:[],props:{}},InvalidAccessKeyError:{name:"InvalidAccessKeyError",subtypes:["AccessKeyNotFound","ReceiverMismatch","MethodNameMismatch","RequiresFullAccess","NotEnoughAllowance","DepositWithFunctionCall"],props:{}},InvalidAccountId:{name:"InvalidAccountId",subtypes:[],props:{}},InvalidChain:{name:"InvalidChain",subtypes:[],props:{}},InvalidDataReceiverId:{name:"InvalidDataReceiverId",subtypes:[],props:{account_id:""}},InvalidIteratorIndex:{name:"InvalidIteratorIndex",subtypes:[],props:{iterator_index:""}},InvalidMethodName:{name:"InvalidMethodName",subtypes:[],props:{}},InvalidNonce:{name:"InvalidNonce",subtypes:[],props:{ak_nonce:"",tx_nonce:""}},InvalidPredecessorId:{name:"InvalidPredecessorId",subtypes:[],props:{account_id:""}},InvalidPromiseIndex:{name:"InvalidPromiseIndex",subtypes:[],props:{promise_idx:""}},InvalidPromiseResultIndex:{name:"InvalidPromiseResultIndex",subtypes:[],props:{result_idx:""}},InvalidPublicKey:{name:"InvalidPublicKey",subtypes:[],props:{}},InvalidReceiptIndex:{name:"InvalidReceiptIndex",subtypes:[],props:{receipt_index:""}},InvalidReceiverId:{name:"InvalidReceiverId",subtypes:[],props:{account_id:""}},InvalidRegisterId:{name:"InvalidRegisterId",subtypes:[],props:{register_id:""}},InvalidSignature:{name:"InvalidSignature",subtypes:[],props:{}},InvalidSignerId:{name:"InvalidSignerId",subtypes:[],props:{account_id:""}},InvalidTxError:{name:"InvalidTxError",subtypes:["InvalidAccessKeyError","InvalidSignerId","SignerDoesNotExist","InvalidNonce","NonceTooLarge","InvalidReceiverId","InvalidSignature","NotEnoughBalance","LackBalanceForState","CostOverflow","InvalidChain","Expired","ActionsValidation","TransactionSizeExceeded","StorageError","ShardCongested","ShardStuck"],props:{}},IteratorWasInvalidated:{name:"IteratorWasInvalidated",subtypes:[],props:{iterator_index:""}},KeyLengthExceeded:{name:"KeyLengthExceeded",subtypes:[],props:{length:"",limit:""}},LackBalanceForState:{name:"LackBalanceForState",subtypes:[],props:{account_id:"",amount:""}},Memory:{name:"Memory",subtypes:[],props:{}},MemoryAccessViolation:{name:"MemoryAccessViolation",subtypes:[],props:{}},MemoryOutOfBounds:{name:"MemoryOutOfBounds",subtypes:[],props:{}},MethodEmptyName:{name:"MethodEmptyName",subtypes:[],props:{}},MethodInvalidSignature:{name:"MethodInvalidSignature",subtypes:[],props:{}},MethodNameMismatch:{name:"MethodNameMismatch",subtypes:[],props:{method_name:""}},MethodNotFound:{name:"MethodNotFound",subtypes:[],props:{}},MethodResolveError:{name:"MethodResolveError",subtypes:["MethodEmptyName","MethodNotFound","MethodInvalidSignature"],props:{}},MisalignedAtomicAccess:{name:"MisalignedAtomicAccess",subtypes:[],props:{}},NonceTooLarge:{name:"NonceTooLarge",subtypes:[],props:{tx_nonce:"",upper_bound:""}},NotEnoughAllowance:{name:"NotEnoughAllowance",subtypes:[],props:{account_id:"",allowance:"",cost:"",public_key:""}},NotEnoughBalance:{name:"NotEnoughBalance",subtypes:[],props:{balance:"",cost:"",signer_id:""}},NumberInputDataDependenciesExceeded:{name:"NumberInputDataDependenciesExceeded",subtypes:[],props:{limit:"",number_of_input_data_dependencies:""}},NumberOfLogsExceeded:{name:"NumberOfLogsExceeded",subtypes:[],props:{limit:""}},NumberPromisesExceeded:{name:"NumberPromisesExceeded",subtypes:[],props:{limit:"",number_of_promises:""}},OnlyImplicitAccountCreationAllowed:{name:"OnlyImplicitAccountCreationAllowed",subtypes:[],props:{account_id:""}},PrepareError:{name:"PrepareError",subtypes:["Serialization","Deserialization","InternalMemoryDeclared","GasInstrumentation","StackHeightInstrumentation","Instantiate","Memory","TooManyFunctions","TooManyLocals"],props:{}},ProhibitedInView:{name:"ProhibitedInView",subtypes:[],props:{method_name:""}},ReceiptSizeExceeded:{name:"ReceiptSizeExceeded",subtypes:[],props:{limit:"",size:""}},ReceiptValidationError:{name:"ReceiptValidationError",subtypes:["InvalidPredecessorId","InvalidReceiverId","InvalidSignerId","InvalidDataReceiverId","ReturnedValueLengthExceeded","NumberInputDataDependenciesExceeded","ActionsValidation","ReceiptSizeExceeded"],props:{}},ReceiverMismatch:{name:"ReceiverMismatch",subtypes:[],props:{ak_receiver:"",tx_receiver:""}},RequiresFullAccess:{name:"RequiresFullAccess",subtypes:[],props:{}},ReturnedValueLengthExceeded:{name:"ReturnedValueLengthExceeded",subtypes:[],props:{length:"",limit:""}},Serialization:{name:"Serialization",subtypes:[],props:{}},ShardCongested:{name:"ShardCongested",subtypes:[],props:{congestion_level:"",shard_id:""}},ShardStuck:{name:"ShardStuck",subtypes:[],props:{missed_chunks:"",shard_id:""}},SignerDoesNotExist:{name:"SignerDoesNotExist",subtypes:[],props:{signer_id:""}},StackHeightInstrumentation:{name:"StackHeightInstrumentation",subtypes:[],props:{}},StackOverflow:{name:"StackOverflow",subtypes:[],props:{}},TooManyFunctions:{name:"TooManyFunctions",subtypes:[],props:{}},TooManyLocals:{name:"TooManyLocals",subtypes:[],props:{}},TotalLogLengthExceeded:{name:"TotalLogLengthExceeded",subtypes:[],props:{length:"",limit:""}},TotalNumberOfActionsExceeded:{name:"TotalNumberOfActionsExceeded",subtypes:[],props:{limit:"",total_number_of_actions:""}},TotalPrepaidGasExceeded:{name:"TotalPrepaidGasExceeded",subtypes:[],props:{limit:"",total_prepaid_gas:""}},TransactionSizeExceeded:{name:"TransactionSizeExceeded",subtypes:[],props:{limit:"",size:""}},TriesToStake:{name:"TriesToStake",subtypes:[],props:{account_id:"",balance:"",locked:"",stake:""}},TriesToUnstake:{name:"TriesToUnstake",subtypes:[],props:{account_id:""}},TxExecutionError:{name:"TxExecutionError",subtypes:["ActionError","InvalidTxError"],props:{}},Unreachable:{name:"Unreachable",subtypes:[],props:{}},UnsuitableStakingKey:{name:"UnsuitableStakingKey",subtypes:[],props:{public_key:""}},UnsupportedProtocolFeature:{name:"UnsupportedProtocolFeature",subtypes:[],props:{protocol_feature:"",version:""}},ValueLengthExceeded:{name:"ValueLengthExceeded",subtypes:[],props:{length:"",limit:""}},WasmTrap:{name:"WasmTrap",subtypes:["Unreachable","IncorrectCallIndirectSignature","MemoryOutOfBounds","CallIndirectOOB","IllegalArithmetic","MisalignedAtomicAccess","IndirectCallToNull","StackOverflow","GenericTrap"],props:{}},WasmerCompileError:{name:"WasmerCompileError",subtypes:[],props:{msg:""}},Closed:{name:"Closed",subtypes:[],props:{}},ServerError:{name:"ServerError",subtypes:["TxExecutionError","Timeout","Closed"],props:{}},Timeout:{name:"Timeout",subtypes:[],props:{}}},schema$7={schema:schema$6},mustacheHelpers$3={formatNear:()=>(Mn,Fn)=>formatNearAmount(Fn(Mn))};let ServerError$3=class extends TypedError$2{},ServerTransactionError$3=class extends ServerError$3{constructor(){super(...arguments);ap(this,"transaction_outcome")}};function parseRpcError$3(Mn){const Fn={},io=walkSubtype$3(Mn,schema$7.schema,Fn,""),fo=new ServerError$3(formatError$3(io,Fn),io);return Object.assign(fo,Fn),fo}function parseResultError$3(Mn){const Fn=parseRpcError$3(Mn.status.Failure),io=new ServerTransactionError$3;return Object.assign(io,Fn),io.type=Fn.type,io.message=Fn.message,io.transaction_outcome=Mn.transaction_outcome,io}function formatError$3(Mn,Fn){return typeof ErrorMessages[Mn]=="string"?Mustache.render(ErrorMessages[Mn],{...Fn,...mustacheHelpers$3}):JSON.stringify(Fn)}function walkSubtype$3(Mn,Fn,io,fo){let $o,mo,Ao;for(const jo in Fn){if(isString$5(Mn[jo]))return Mn[jo];if(isObject$u(Mn[jo]))$o=Mn[jo],mo=Fn[jo],Ao=jo;else if(isObj{"ActionError":{"index":0,"kind":{"FunctionCallError":{"CompilationError":{"CodeDoesNotExist":{"account_id":"web4.nearbuilders.testnet"}}}}}}
1 automatic refund step from the network not shown.
This page reads FastNEAR's public transaction index and stores nothing. This command asks a NEAR archival node for the same transaction and needs no keys.
curl -s https://archival-rpc.testnet.fastnear.com -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"tx","params":{"tx_hash":"D8JXEUZSA9WiCSwb5EXvcPw9ydQTVLK57tePMenWQCbr","sender_account_id":"web4.nearbuilders.testnet","wait_until":"FINAL"}}'Vouch has its own page because testnet.nearblocks.io stopped indexing on 27 Sep 2026, so it can't show newer transactions.