@sesamehr/react-design-system 2.0.0-beta.2 → 2.0.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/README.md +34 -0
  2. package/dist/Data/Table/TableBody/TableBody.d.ts +3 -0
  3. package/dist/Data/Table/TableHead/TableHead.d.ts +25 -1
  4. package/dist/Data/Table/TableScrollbar/TableScrollbar.d.ts +19 -0
  5. package/dist/Data/Table/TableVirtualized/TableVirtualized.d.ts +45 -0
  6. package/dist/Data/Table/TableVirtualized/index.d.ts +2 -0
  7. package/dist/Data/Table/hooks/index.d.ts +3 -0
  8. package/dist/Data/Table/hooks/useDragToScroll/useDragToScroll.d.ts +12 -2
  9. package/dist/Data/Table/hooks/useTableVirtual/context.d.ts +16 -0
  10. package/dist/Data/Table/hooks/useTableVirtual/index.d.ts +3 -0
  11. package/dist/Data/Table/hooks/useTableVirtual/useTableVirtual.d.ts +36 -0
  12. package/dist/Data/Table/hooks/useTableVirtual/useTableVirtual.types.d.ts +61 -0
  13. package/dist/Data/Table/index.d.ts +2 -1
  14. package/dist/Display/Badge/Badge.d.ts +3 -2
  15. package/dist/Display/Badge/index.d.ts +10 -1
  16. package/dist/Display/ChatBubble/ChatBubble.d.ts +11 -0
  17. package/dist/Display/ChatBubble/ChatBubbleStatus/ChatBubbleStatus.d.ts +8 -0
  18. package/dist/Display/ChatBubble/ChatBubbleStatus/index.d.ts +10 -0
  19. package/dist/Display/ChatBubble/index.d.ts +13 -0
  20. package/dist/Display/Chip/Chip.d.ts +14 -4
  21. package/dist/Display/Chip/index.d.ts +14 -10
  22. package/dist/Forms/Field/Counter/Counter.d.ts +9 -0
  23. package/dist/Forms/Field/Counter/index.d.ts +13 -0
  24. package/dist/lib/cssModules.d.ts +13 -0
  25. package/dist/main.d.ts +5 -3
  26. package/dist/preflight.css +391 -0
  27. package/dist/react-design-system.css +1 -1
  28. package/dist/react-design-system.js +10369 -8860
  29. package/dist/react-design-system.umd.cjs +52 -39
  30. package/package.json +2 -1
  31. package/dist/Display/Tag/Tag.d.ts +0 -19
  32. package/dist/Display/Tag/index.d.ts +0 -2
@@ -1,123 +1,133 @@
1
- (function(D,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],h):(D=typeof globalThis<"u"?globalThis:D||self,h(D.SesameReactDesignSystem={},D.jsxRuntime,D.React,D.ReactDOM))})(this,(function(D,h,b,Ze){"use strict";var I0=D=>{throw TypeError(D)};var A0=(D,h,b)=>h.has(D)||I0("Cannot "+b);var Ve=(D,h,b)=>(A0(D,h,"read from private field"),b?b.call(D):h.get(D)),O0=(D,h,b)=>h.has(D)?I0("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(D):h.set(D,b),Vc=(D,h,b,Ze)=>(A0(D,h,"write to private field"),Ze?Ze.call(D,b):h.set(D,b),b);var w0,Ee,ot;function Hc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const g=Hc(b),mn=Hc(Ze);function Bc(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Bc(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Gc(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Bc(e))&&(o&&(o+=" "),o+=t);return o}const si="-",D0=e=>{const t=k0(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{const a=i.split(si);return a[0]===""&&a.length!==1&&a.shift(),jc(a,t)||N0(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&o[i]?[...l,...o[i]]:l}}},jc=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),r=o?jc(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;const s=e.join(si);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},Uc=/^\[(.+)\]$/,N0=e=>{if(Uc.test(e)){const t=Uc.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},k0=e=>{const{theme:t,classGroups:n}=e,o={nextPart:new Map,validators:[]};for(const r in n)ii(n[r],o,r,t);return o},ii=(e,t,n,o)=>{e.forEach(r=>{if(typeof r=="string"){const s=r===""?t:Wc(t,r);s.classGroupId=n;return}if(typeof r=="function"){if($0(r)){ii(r(o),t,n,o);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([s,i])=>{ii(i,Wc(t,s),n,o)})})},Wc=(e,t)=>{let n=e;return t.split(si).forEach(o=>{n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n},$0=e=>e.isThemeGetter,M0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;const r=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,o=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return r(s,i),i},set(s,i){n.has(s)?n.set(s,i):r(s,i)}}},ai="!",li=":",R0=li.length,L0=e=>{const{prefix:t,experimentalParseClassName:n}=e;let o=r=>{const s=[];let i=0,a=0,l=0,c;for(let v=0;v<r.length;v++){let m=r[v];if(i===0&&a===0){if(m===li){s.push(r.slice(l,v)),l=v+R0;continue}if(m==="/"){c=v;continue}}m==="["?i++:m==="]"?i--:m==="("?a++:m===")"&&a--}const u=s.length===0?r:r.substring(l),d=F0(u),f=d!==u,p=c&&c>l?c-l:void 0;return{modifiers:s,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:p}};if(t){const r=t+li,s=o;o=i=>i.startsWith(r)?s(i.substring(r.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(n){const r=o;o=s=>n({className:s,parseClassName:r})}return o},F0=e=>e.endsWith(ai)?e.substring(0,e.length-1):e.startsWith(ai)?e.substring(1):e,z0=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const r=[];let s=[];return o.forEach(i=>{i[0]==="["||t[i]?(r.push(...s.sort(),i),s=[]):s.push(i)}),r.push(...s.sort()),r}},V0=e=>({cache:M0(e.cacheSize),parseClassName:L0(e),sortModifiers:z0(e),...D0(e)}),H0=/\s+/,B0=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:s}=t,i=[],a=e.trim().split(H0);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:d,modifiers:f,hasImportantModifier:p,baseClassName:v,maybePostfixModifierPosition:m}=n(u);if(d){l=u+(l.length>0?" "+l:l);continue}let x=!!m,y=o(x?v.substring(0,m):v);if(!y){if(!x){l=u+(l.length>0?" "+l:l);continue}if(y=o(v),!y){l=u+(l.length>0?" "+l:l);continue}x=!1}const S=s(f).join(":"),C=p?S+ai:S,_=C+y;if(i.includes(_))continue;i.push(_);const w=r(y,x);for(let T=0;T<w.length;++T){const E=w[T];i.push(C+E)}l=u+(l.length>0?" "+l:l)}return l};function G0(){let e=0,t,n,o="";for(;e<arguments.length;)(t=arguments[e++])&&(n=qc(t))&&(o&&(o+=" "),o+=n);return o}const qc=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=qc(e[o]))&&(n&&(n+=" "),n+=t);return n};function j0(e,...t){let n,o,r,s=i;function i(l){const c=t.reduce((u,d)=>d(u),e());return n=V0(c),o=n.cache.get,r=n.cache.set,s=a,a(l)}function a(l){const c=o(l);if(c)return c;const u=B0(l,n);return r(l,u),u}return function(){return s(G0.apply(null,arguments))}}const Pe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Kc=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Xc=/^\((?:(\w[\w-]*):)?(.+)\)$/i,U0=/^\d+\/\d+$/,W0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,q0=/\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$/,K0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,X0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Y0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Vn=e=>U0.test(e),fe=e=>!!e&&!Number.isNaN(Number(e)),Zt=e=>!!e&&Number.isInteger(Number(e)),ci=e=>e.endsWith("%")&&fe(e.slice(0,-1)),Mt=e=>W0.test(e),Z0=()=>!0,J0=e=>q0.test(e)&&!K0.test(e),Yc=()=>!1,Q0=e=>X0.test(e),ex=e=>Y0.test(e),tx=e=>!ne(e)&&!oe(e),nx=e=>Hn(e,tu,Yc),ne=e=>Kc.test(e),vn=e=>Hn(e,nu,J0),ui=e=>Hn(e,ax,fe),Zc=e=>Hn(e,Qc,Yc),ox=e=>Hn(e,eu,ex),Sr=e=>Hn(e,ou,Q0),oe=e=>Xc.test(e),$o=e=>Bn(e,nu),rx=e=>Bn(e,lx),Jc=e=>Bn(e,Qc),sx=e=>Bn(e,tu),ix=e=>Bn(e,eu),_r=e=>Bn(e,ou,!0),Hn=(e,t,n)=>{const o=Kc.exec(e);return o?o[1]?t(o[1]):n(o[2]):!1},Bn=(e,t,n=!1)=>{const o=Xc.exec(e);return o?o[1]?t(o[1]):n:!1},Qc=e=>e==="position"||e==="percentage",eu=e=>e==="image"||e==="url",tu=e=>e==="length"||e==="size"||e==="bg-size",nu=e=>e==="length",ax=e=>e==="number",lx=e=>e==="family-name",ou=e=>e==="shadow",cx=j0(()=>{const e=Pe("color"),t=Pe("font"),n=Pe("text"),o=Pe("font-weight"),r=Pe("tracking"),s=Pe("leading"),i=Pe("breakpoint"),a=Pe("container"),l=Pe("spacing"),c=Pe("radius"),u=Pe("shadow"),d=Pe("inset-shadow"),f=Pe("text-shadow"),p=Pe("drop-shadow"),v=Pe("blur"),m=Pe("perspective"),x=Pe("aspect"),y=Pe("ease"),S=Pe("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[..._(),oe,ne],T=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],P=()=>[oe,ne,l],A=()=>[Vn,"full","auto",...P()],R=()=>[Zt,"none","subgrid",oe,ne],B=()=>["auto",{span:["full",Zt,oe,ne]},Zt,oe,ne],V=()=>[Zt,"auto",oe,ne],K=()=>["auto","min","max","fr",oe,ne],U=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],X=()=>["auto",...P()],q=()=>[Vn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],z=()=>[e,oe,ne],ee=()=>[..._(),Jc,Zc,{position:[oe,ne]}],F=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Y=()=>["auto","cover","contain",sx,nx,{size:[oe,ne]}],O=()=>[ci,$o,vn],I=()=>["","none","full",c,oe,ne],k=()=>["",fe,$o,vn],M=()=>["solid","dashed","dotted","double"],L=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>[fe,ci,Jc,Zc],$=()=>["","none",v,oe,ne],G=()=>["none",fe,oe,ne],W=()=>["none",fe,oe,ne],te=()=>[fe,oe,ne],H=()=>[Vn,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Mt],breakpoint:[Mt],color:[Z0],container:[Mt],"drop-shadow":[Mt],ease:["in","out","in-out"],font:[tx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Mt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Mt],shadow:[Mt],spacing:["px",fe],text:[Mt],"text-shadow":[Mt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Vn,ne,oe,x]}],container:["container"],columns:[{columns:[fe,ne,oe,a]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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"],sr:["sr-only","not-sr-only"],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:w()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{start:A()}],end:[{end:A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[Zt,"auto",oe,ne]}],basis:[{basis:[Vn,"full","auto",a,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[fe,Vn,"auto","initial","none",ne]}],grow:[{grow:["",fe,oe,ne]}],shrink:[{shrink:["",fe,oe,ne]}],order:[{order:[Zt,"first","last","none",oe,ne]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":K()}],"auto-rows":[{"auto-rows":K()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...U(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...U()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":U()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:X()}],mx:[{mx:X()}],my:[{my:X()}],ms:[{ms:X()}],me:[{me:X()}],mt:[{mt:X()}],mr:[{mr:X()}],mb:[{mb:X()}],ml:[{ml:X()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],w:[{w:[a,"screen",...q()]}],"min-w":[{"min-w":[a,"screen","none",...q()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",n,$o,vn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,oe,ui]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ci,ne]}],"font-family":[{font:[rx,ne,t]}],"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-fractions"],tracking:[{tracking:[r,oe,ne]}],"line-clamp":[{"line-clamp":[fe,"none",oe,ui]}],leading:[{leading:[s,...P()]}],"list-image":[{"list-image":["none",oe,ne]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",oe,ne]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:z()}],"text-color":[{text:z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...M(),"wavy"]}],"text-decoration-thickness":[{decoration:[fe,"from-font","auto",oe,vn]}],"text-decoration-color":[{decoration:z()}],"underline-offset":[{"underline-offset":[fe,"auto",oe,ne]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",oe,ne]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",oe,ne]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ee()}],"bg-repeat":[{bg:F()}],"bg-size":[{bg:Y()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Zt,oe,ne],radial:["",oe,ne],conic:[Zt,oe,ne]},ix,ox]}],"bg-color":[{bg:z()}],"gradient-from-pos":[{from:O()}],"gradient-via-pos":[{via:O()}],"gradient-to-pos":[{to:O()}],"gradient-from":[{from:z()}],"gradient-via":[{via:z()}],"gradient-to":[{to:z()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:k()}],"border-w-x":[{"border-x":k()}],"border-w-y":[{"border-y":k()}],"border-w-s":[{"border-s":k()}],"border-w-e":[{"border-e":k()}],"border-w-t":[{"border-t":k()}],"border-w-r":[{"border-r":k()}],"border-w-b":[{"border-b":k()}],"border-w-l":[{"border-l":k()}],"divide-x":[{"divide-x":k()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":k()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...M(),"hidden","none"]}],"divide-style":[{divide:[...M(),"hidden","none"]}],"border-color":[{border:z()}],"border-color-x":[{"border-x":z()}],"border-color-y":[{"border-y":z()}],"border-color-s":[{"border-s":z()}],"border-color-e":[{"border-e":z()}],"border-color-t":[{"border-t":z()}],"border-color-r":[{"border-r":z()}],"border-color-b":[{"border-b":z()}],"border-color-l":[{"border-l":z()}],"divide-color":[{divide:z()}],"outline-style":[{outline:[...M(),"none","hidden"]}],"outline-offset":[{"outline-offset":[fe,oe,ne]}],"outline-w":[{outline:["",fe,$o,vn]}],"outline-color":[{outline:z()}],shadow:[{shadow:["","none",u,_r,Sr]}],"shadow-color":[{shadow:z()}],"inset-shadow":[{"inset-shadow":["none",d,_r,Sr]}],"inset-shadow-color":[{"inset-shadow":z()}],"ring-w":[{ring:k()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:z()}],"ring-offset-w":[{"ring-offset":[fe,vn]}],"ring-offset-color":[{"ring-offset":z()}],"inset-ring-w":[{"inset-ring":k()}],"inset-ring-color":[{"inset-ring":z()}],"text-shadow":[{"text-shadow":["none",f,_r,Sr]}],"text-shadow-color":[{"text-shadow":z()}],opacity:[{opacity:[fe,oe,ne]}],"mix-blend":[{"mix-blend":[...L(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":L()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[fe]}],"mask-image-linear-from-pos":[{"mask-linear-from":N()}],"mask-image-linear-to-pos":[{"mask-linear-to":N()}],"mask-image-linear-from-color":[{"mask-linear-from":z()}],"mask-image-linear-to-color":[{"mask-linear-to":z()}],"mask-image-t-from-pos":[{"mask-t-from":N()}],"mask-image-t-to-pos":[{"mask-t-to":N()}],"mask-image-t-from-color":[{"mask-t-from":z()}],"mask-image-t-to-color":[{"mask-t-to":z()}],"mask-image-r-from-pos":[{"mask-r-from":N()}],"mask-image-r-to-pos":[{"mask-r-to":N()}],"mask-image-r-from-color":[{"mask-r-from":z()}],"mask-image-r-to-color":[{"mask-r-to":z()}],"mask-image-b-from-pos":[{"mask-b-from":N()}],"mask-image-b-to-pos":[{"mask-b-to":N()}],"mask-image-b-from-color":[{"mask-b-from":z()}],"mask-image-b-to-color":[{"mask-b-to":z()}],"mask-image-l-from-pos":[{"mask-l-from":N()}],"mask-image-l-to-pos":[{"mask-l-to":N()}],"mask-image-l-from-color":[{"mask-l-from":z()}],"mask-image-l-to-color":[{"mask-l-to":z()}],"mask-image-x-from-pos":[{"mask-x-from":N()}],"mask-image-x-to-pos":[{"mask-x-to":N()}],"mask-image-x-from-color":[{"mask-x-from":z()}],"mask-image-x-to-color":[{"mask-x-to":z()}],"mask-image-y-from-pos":[{"mask-y-from":N()}],"mask-image-y-to-pos":[{"mask-y-to":N()}],"mask-image-y-from-color":[{"mask-y-from":z()}],"mask-image-y-to-color":[{"mask-y-to":z()}],"mask-image-radial":[{"mask-radial":[oe,ne]}],"mask-image-radial-from-pos":[{"mask-radial-from":N()}],"mask-image-radial-to-pos":[{"mask-radial-to":N()}],"mask-image-radial-from-color":[{"mask-radial-from":z()}],"mask-image-radial-to-color":[{"mask-radial-to":z()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":_()}],"mask-image-conic-pos":[{"mask-conic":[fe]}],"mask-image-conic-from-pos":[{"mask-conic-from":N()}],"mask-image-conic-to-pos":[{"mask-conic-to":N()}],"mask-image-conic-from-color":[{"mask-conic-from":z()}],"mask-image-conic-to-color":[{"mask-conic-to":z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ee()}],"mask-repeat":[{mask:F()}],"mask-size":[{mask:Y()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",oe,ne]}],filter:[{filter:["","none",oe,ne]}],blur:[{blur:$()}],brightness:[{brightness:[fe,oe,ne]}],contrast:[{contrast:[fe,oe,ne]}],"drop-shadow":[{"drop-shadow":["","none",p,_r,Sr]}],"drop-shadow-color":[{"drop-shadow":z()}],grayscale:[{grayscale:["",fe,oe,ne]}],"hue-rotate":[{"hue-rotate":[fe,oe,ne]}],invert:[{invert:["",fe,oe,ne]}],saturate:[{saturate:[fe,oe,ne]}],sepia:[{sepia:["",fe,oe,ne]}],"backdrop-filter":[{"backdrop-filter":["","none",oe,ne]}],"backdrop-blur":[{"backdrop-blur":$()}],"backdrop-brightness":[{"backdrop-brightness":[fe,oe,ne]}],"backdrop-contrast":[{"backdrop-contrast":[fe,oe,ne]}],"backdrop-grayscale":[{"backdrop-grayscale":["",fe,oe,ne]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[fe,oe,ne]}],"backdrop-invert":[{"backdrop-invert":["",fe,oe,ne]}],"backdrop-opacity":[{"backdrop-opacity":[fe,oe,ne]}],"backdrop-saturate":[{"backdrop-saturate":[fe,oe,ne]}],"backdrop-sepia":[{"backdrop-sepia":["",fe,oe,ne]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",oe,ne]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[fe,"initial",oe,ne]}],ease:[{ease:["linear","initial",y,oe,ne]}],delay:[{delay:[fe,oe,ne]}],animate:[{animate:["none",S,oe,ne]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,oe,ne]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:G()}],"rotate-x":[{"rotate-x":G()}],"rotate-y":[{"rotate-y":G()}],"rotate-z":[{"rotate-z":G()}],scale:[{scale:W()}],"scale-x":[{"scale-x":W()}],"scale-y":[{"scale-y":W()}],"scale-z":[{"scale-z":W()}],"scale-3d":["scale-3d"],skew:[{skew:te()}],"skew-x":[{"skew-x":te()}],"skew-y":[{"skew-y":te()}],transform:[{transform:[oe,ne,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:H()}],"translate-x":[{"translate-x":H()}],"translate-y":[{"translate-y":H()}],"translate-z":[{"translate-z":H()}],"translate-none":["translate-none"],accent:[{accent:z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:z()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",oe,ne]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",oe,ne]}],fill:[{fill:["none",...z()]}],"stroke-w":[{stroke:[fe,$o,vn,ui]}],stroke:[{stroke:["none",...z()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function j(...e){return cx(Gc(e))}function Mo(){return Mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Mo.apply(null,arguments)}function di(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function fi(e,t){return fi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},fi(e,t)}function pi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fi(e,t)}function ux(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tr={exports:{}},Er={exports:{}},me={};/** @license React v16.13.1
1
+ (function(O,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],h):(O=typeof globalThis<"u"?globalThis:O||self,h(O.SesameReactDesignSystem={},O.jsxRuntime,O.React,O.ReactDOM))})(this,(function(O,h,y,Ye){"use strict";var a0=O=>{throw TypeError(O)};var l0=(O,h,y)=>h.has(O)||a0("Cannot "+y);var Ge=(O,h,y)=>(l0(O,h,"read from private field"),y?y.call(O):h.get(O)),c0=(O,h,y)=>h.has(O)?a0("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(O):h.set(O,y),tu=(O,h,y,Ye)=>(l0(O,h,"write to private field"),Ye?Ye.call(O,y):h.set(O,y),y);var n0,Ie,it;function nu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const v=nu(y),xn=nu(Ye);function ou(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=ou(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function ru(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=ou(e))&&(o&&(o+=" "),o+=t);return o}const mi="-",u0=e=>{const t=f0(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{const a=i.split(mi);return a[0]===""&&a.length!==1&&a.shift(),su(a,t)||d0(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&o[i]?[...l,...o[i]]:l}}},su=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),r=o?su(e.slice(1),o):void 0;if(r)return r;if(t.validators.length===0)return;const s=e.join(mi);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},iu=/^\[(.+)\]$/,d0=e=>{if(iu.test(e)){const t=iu.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},f0=e=>{const{theme:t,classGroups:n}=e,o={nextPart:new Map,validators:[]};for(const r in n)vi(n[r],o,r,t);return o},vi=(e,t,n,o)=>{e.forEach(r=>{if(typeof r=="string"){const s=r===""?t:au(t,r);s.classGroupId=n;return}if(typeof r=="function"){if(p0(r)){vi(r(o),t,n,o);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([s,i])=>{vi(i,au(t,s),n,o)})})},au=(e,t)=>{let n=e;return t.split(mi).forEach(o=>{n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n},p0=e=>e.isThemeGetter,g0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;const r=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,o=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return r(s,i),i},set(s,i){n.has(s)?n.set(s,i):r(s,i)}}},xi="!",bi=":",h0=bi.length,m0=e=>{const{prefix:t,experimentalParseClassName:n}=e;let o=r=>{const s=[];let i=0,a=0,l=0,c;for(let m=0;m<r.length;m++){let g=r[m];if(i===0&&a===0){if(g===bi){s.push(r.slice(l,m)),l=m+h0;continue}if(g==="/"){c=m;continue}}g==="["?i++:g==="]"?i--:g==="("?a++:g===")"&&a--}const u=s.length===0?r:r.substring(l),d=v0(u),f=d!==u,p=c&&c>l?c-l:void 0;return{modifiers:s,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:p}};if(t){const r=t+bi,s=o;o=i=>i.startsWith(r)?s(i.substring(r.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(n){const r=o;o=s=>n({className:s,parseClassName:r})}return o},v0=e=>e.endsWith(xi)?e.substring(0,e.length-1):e.startsWith(xi)?e.substring(1):e,x0=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const r=[];let s=[];return o.forEach(i=>{i[0]==="["||t[i]?(r.push(...s.sort(),i),s=[]):s.push(i)}),r.push(...s.sort()),r}},b0=e=>({cache:g0(e.cacheSize),parseClassName:m0(e),sortModifiers:x0(e),...u0(e)}),y0=/\s+/,C0=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:r,sortModifiers:s}=t,i=[],a=e.trim().split(y0);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:d,modifiers:f,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:g}=n(u);if(d){l=u+(l.length>0?" "+l:l);continue}let x=!!g,b=o(x?m.substring(0,g):m);if(!b){if(!x){l=u+(l.length>0?" "+l:l);continue}if(b=o(m),!b){l=u+(l.length>0?" "+l:l);continue}x=!1}const S=s(f).join(":"),C=p?S+xi:S,_=C+b;if(i.includes(_))continue;i.push(_);const w=r(b,x);for(let T=0;T<w.length;++T){const E=w[T];i.push(C+E)}l=u+(l.length>0?" "+l:l)}return l};function S0(){let e=0,t,n,o="";for(;e<arguments.length;)(t=arguments[e++])&&(n=lu(t))&&(o&&(o+=" "),o+=n);return o}const lu=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=lu(e[o]))&&(n&&(n+=" "),n+=t);return n};function w0(e,...t){let n,o,r,s=i;function i(l){const c=t.reduce((u,d)=>d(u),e());return n=b0(c),o=n.cache.get,r=n.cache.set,s=a,a(l)}function a(l){const c=o(l);if(c)return c;const u=C0(l,n);return r(l,u),u}return function(){return s(S0.apply(null,arguments))}}const Ae=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},cu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,uu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_0=/^\d+\/\d+$/,T0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,E0=/\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$/,P0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,I0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,A0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,jn=e=>_0.test(e),pe=e=>!!e&&!Number.isNaN(Number(e)),Qt=e=>!!e&&Number.isInteger(Number(e)),yi=e=>e.endsWith("%")&&pe(e.slice(0,-1)),Lt=e=>T0.test(e),O0=()=>!0,D0=e=>E0.test(e)&&!P0.test(e),du=()=>!1,N0=e=>I0.test(e),k0=e=>A0.test(e),M0=e=>!te(e)&&!ne(e),$0=e=>Wn(e,mu,du),te=e=>cu.test(e),bn=e=>Wn(e,vu,D0),Ci=e=>Wn(e,V0,pe),fu=e=>Wn(e,gu,du),R0=e=>Wn(e,hu,k0),Or=e=>Wn(e,xu,N0),ne=e=>uu.test(e),Lo=e=>Un(e,vu),L0=e=>Un(e,B0),pu=e=>Un(e,gu),F0=e=>Un(e,mu),z0=e=>Un(e,hu),Dr=e=>Un(e,xu,!0),Wn=(e,t,n)=>{const o=cu.exec(e);return o?o[1]?t(o[1]):n(o[2]):!1},Un=(e,t,n=!1)=>{const o=uu.exec(e);return o?o[1]?t(o[1]):n:!1},gu=e=>e==="position"||e==="percentage",hu=e=>e==="image"||e==="url",mu=e=>e==="length"||e==="size"||e==="bg-size",vu=e=>e==="length",V0=e=>e==="number",B0=e=>e==="family-name",xu=e=>e==="shadow",H0=w0(()=>{const e=Ae("color"),t=Ae("font"),n=Ae("text"),o=Ae("font-weight"),r=Ae("tracking"),s=Ae("leading"),i=Ae("breakpoint"),a=Ae("container"),l=Ae("spacing"),c=Ae("radius"),u=Ae("shadow"),d=Ae("inset-shadow"),f=Ae("text-shadow"),p=Ae("drop-shadow"),m=Ae("blur"),g=Ae("perspective"),x=Ae("aspect"),b=Ae("ease"),S=Ae("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[..._(),ne,te],T=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],P=()=>[ne,te,l],I=()=>[jn,"full","auto",...P()],N=()=>[Qt,"none","subgrid",ne,te],H=()=>["auto",{span:["full",Qt,ne,te]},Qt,ne,te],L=()=>[Qt,"auto",ne,te],X=()=>["auto","min","max","fr",ne,te],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],Y=()=>["auto",...P()],q=()=>[jn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],z=()=>[e,ne,te],Q=()=>[..._(),pu,fu,{position:[ne,te]}],F=()=>["no-repeat",{repeat:["","x","y","space","round"]}],K=()=>["auto","cover","contain",F0,$0,{size:[ne,te]}],D=()=>[yi,Lo,bn],A=()=>["","none","full",c,ne,te],k=()=>["",pe,Lo,bn],$=()=>["solid","dashed","dotted","double"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],M=()=>[pe,yi,pu,fu],R=()=>["","none",m,ne,te],j=()=>["none",pe,ne,te],U=()=>["none",pe,ne,te],ee=()=>[pe,ne,te],B=()=>[jn,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Lt],breakpoint:[Lt],color:[O0],container:[Lt],"drop-shadow":[Lt],ease:["in","out","in-out"],font:[M0],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Lt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Lt],shadow:[Lt],spacing:["px",pe],text:[Lt],"text-shadow":[Lt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",jn,te,ne,x]}],container:["container"],columns:[{columns:[pe,te,ne,a]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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"],sr:["sr-only","not-sr-only"],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:w()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[Qt,"auto",ne,te]}],basis:[{basis:[jn,"full","auto",a,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[pe,jn,"auto","initial","none",te]}],grow:[{grow:["",pe,ne,te]}],shrink:[{shrink:["",pe,ne,te]}],order:[{order:[Qt,"first","last","none",ne,te]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:H()}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:H()}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":X()}],"auto-rows":[{"auto-rows":X()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:Y()}],mx:[{mx:Y()}],my:[{my:Y()}],ms:[{ms:Y()}],me:[{me:Y()}],mt:[{mt:Y()}],mr:[{mr:Y()}],mb:[{mb:Y()}],ml:[{ml:Y()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],w:[{w:[a,"screen",...q()]}],"min-w":[{"min-w":[a,"screen","none",...q()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",n,Lo,bn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,ne,Ci]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",yi,te]}],"font-family":[{font:[L0,te,t]}],"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-fractions"],tracking:[{tracking:[r,ne,te]}],"line-clamp":[{"line-clamp":[pe,"none",ne,Ci]}],leading:[{leading:[s,...P()]}],"list-image":[{"list-image":["none",ne,te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ne,te]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:z()}],"text-color":[{text:z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:[pe,"from-font","auto",ne,bn]}],"text-decoration-color":[{decoration:z()}],"underline-offset":[{"underline-offset":[pe,"auto",ne,te]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ne,te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ne,te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Q()}],"bg-repeat":[{bg:F()}],"bg-size":[{bg:K()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Qt,ne,te],radial:["",ne,te],conic:[Qt,ne,te]},z0,R0]}],"bg-color":[{bg:z()}],"gradient-from-pos":[{from:D()}],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:z()}],"gradient-via":[{via:z()}],"gradient-to":[{to:z()}],rounded:[{rounded:A()}],"rounded-s":[{"rounded-s":A()}],"rounded-e":[{"rounded-e":A()}],"rounded-t":[{"rounded-t":A()}],"rounded-r":[{"rounded-r":A()}],"rounded-b":[{"rounded-b":A()}],"rounded-l":[{"rounded-l":A()}],"rounded-ss":[{"rounded-ss":A()}],"rounded-se":[{"rounded-se":A()}],"rounded-ee":[{"rounded-ee":A()}],"rounded-es":[{"rounded-es":A()}],"rounded-tl":[{"rounded-tl":A()}],"rounded-tr":[{"rounded-tr":A()}],"rounded-br":[{"rounded-br":A()}],"rounded-bl":[{"rounded-bl":A()}],"border-w":[{border:k()}],"border-w-x":[{"border-x":k()}],"border-w-y":[{"border-y":k()}],"border-w-s":[{"border-s":k()}],"border-w-e":[{"border-e":k()}],"border-w-t":[{"border-t":k()}],"border-w-r":[{"border-r":k()}],"border-w-b":[{"border-b":k()}],"border-w-l":[{"border-l":k()}],"divide-x":[{"divide-x":k()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":k()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...$(),"hidden","none"]}],"divide-style":[{divide:[...$(),"hidden","none"]}],"border-color":[{border:z()}],"border-color-x":[{"border-x":z()}],"border-color-y":[{"border-y":z()}],"border-color-s":[{"border-s":z()}],"border-color-e":[{"border-e":z()}],"border-color-t":[{"border-t":z()}],"border-color-r":[{"border-r":z()}],"border-color-b":[{"border-b":z()}],"border-color-l":[{"border-l":z()}],"divide-color":[{divide:z()}],"outline-style":[{outline:[...$(),"none","hidden"]}],"outline-offset":[{"outline-offset":[pe,ne,te]}],"outline-w":[{outline:["",pe,Lo,bn]}],"outline-color":[{outline:z()}],shadow:[{shadow:["","none",u,Dr,Or]}],"shadow-color":[{shadow:z()}],"inset-shadow":[{"inset-shadow":["none",d,Dr,Or]}],"inset-shadow-color":[{"inset-shadow":z()}],"ring-w":[{ring:k()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:z()}],"ring-offset-w":[{"ring-offset":[pe,bn]}],"ring-offset-color":[{"ring-offset":z()}],"inset-ring-w":[{"inset-ring":k()}],"inset-ring-color":[{"inset-ring":z()}],"text-shadow":[{"text-shadow":["none",f,Dr,Or]}],"text-shadow-color":[{"text-shadow":z()}],opacity:[{opacity:[pe,ne,te]}],"mix-blend":[{"mix-blend":[...V(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":V()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":M()}],"mask-image-linear-to-pos":[{"mask-linear-to":M()}],"mask-image-linear-from-color":[{"mask-linear-from":z()}],"mask-image-linear-to-color":[{"mask-linear-to":z()}],"mask-image-t-from-pos":[{"mask-t-from":M()}],"mask-image-t-to-pos":[{"mask-t-to":M()}],"mask-image-t-from-color":[{"mask-t-from":z()}],"mask-image-t-to-color":[{"mask-t-to":z()}],"mask-image-r-from-pos":[{"mask-r-from":M()}],"mask-image-r-to-pos":[{"mask-r-to":M()}],"mask-image-r-from-color":[{"mask-r-from":z()}],"mask-image-r-to-color":[{"mask-r-to":z()}],"mask-image-b-from-pos":[{"mask-b-from":M()}],"mask-image-b-to-pos":[{"mask-b-to":M()}],"mask-image-b-from-color":[{"mask-b-from":z()}],"mask-image-b-to-color":[{"mask-b-to":z()}],"mask-image-l-from-pos":[{"mask-l-from":M()}],"mask-image-l-to-pos":[{"mask-l-to":M()}],"mask-image-l-from-color":[{"mask-l-from":z()}],"mask-image-l-to-color":[{"mask-l-to":z()}],"mask-image-x-from-pos":[{"mask-x-from":M()}],"mask-image-x-to-pos":[{"mask-x-to":M()}],"mask-image-x-from-color":[{"mask-x-from":z()}],"mask-image-x-to-color":[{"mask-x-to":z()}],"mask-image-y-from-pos":[{"mask-y-from":M()}],"mask-image-y-to-pos":[{"mask-y-to":M()}],"mask-image-y-from-color":[{"mask-y-from":z()}],"mask-image-y-to-color":[{"mask-y-to":z()}],"mask-image-radial":[{"mask-radial":[ne,te]}],"mask-image-radial-from-pos":[{"mask-radial-from":M()}],"mask-image-radial-to-pos":[{"mask-radial-to":M()}],"mask-image-radial-from-color":[{"mask-radial-from":z()}],"mask-image-radial-to-color":[{"mask-radial-to":z()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":_()}],"mask-image-conic-pos":[{"mask-conic":[pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":M()}],"mask-image-conic-to-pos":[{"mask-conic-to":M()}],"mask-image-conic-from-color":[{"mask-conic-from":z()}],"mask-image-conic-to-color":[{"mask-conic-to":z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Q()}],"mask-repeat":[{mask:F()}],"mask-size":[{mask:K()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ne,te]}],filter:[{filter:["","none",ne,te]}],blur:[{blur:R()}],brightness:[{brightness:[pe,ne,te]}],contrast:[{contrast:[pe,ne,te]}],"drop-shadow":[{"drop-shadow":["","none",p,Dr,Or]}],"drop-shadow-color":[{"drop-shadow":z()}],grayscale:[{grayscale:["",pe,ne,te]}],"hue-rotate":[{"hue-rotate":[pe,ne,te]}],invert:[{invert:["",pe,ne,te]}],saturate:[{saturate:[pe,ne,te]}],sepia:[{sepia:["",pe,ne,te]}],"backdrop-filter":[{"backdrop-filter":["","none",ne,te]}],"backdrop-blur":[{"backdrop-blur":R()}],"backdrop-brightness":[{"backdrop-brightness":[pe,ne,te]}],"backdrop-contrast":[{"backdrop-contrast":[pe,ne,te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",pe,ne,te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[pe,ne,te]}],"backdrop-invert":[{"backdrop-invert":["",pe,ne,te]}],"backdrop-opacity":[{"backdrop-opacity":[pe,ne,te]}],"backdrop-saturate":[{"backdrop-saturate":[pe,ne,te]}],"backdrop-sepia":[{"backdrop-sepia":["",pe,ne,te]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ne,te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[pe,"initial",ne,te]}],ease:[{ease:["linear","initial",b,ne,te]}],delay:[{delay:[pe,ne,te]}],animate:[{animate:["none",S,ne,te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,ne,te]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:j()}],"rotate-x":[{"rotate-x":j()}],"rotate-y":[{"rotate-y":j()}],"rotate-z":[{"rotate-z":j()}],scale:[{scale:U()}],"scale-x":[{"scale-x":U()}],"scale-y":[{"scale-y":U()}],"scale-z":[{"scale-z":U()}],"scale-3d":["scale-3d"],skew:[{skew:ee()}],"skew-x":[{"skew-x":ee()}],"skew-y":[{"skew-y":ee()}],transform:[{transform:[ne,te,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:B()}],"translate-x":[{"translate-x":B()}],"translate-y":[{"translate-y":B()}],"translate-z":[{"translate-z":B()}],"translate-none":["translate-none"],accent:[{accent:z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:z()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",ne,te]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",ne,te]}],fill:[{fill:["none",...z()]}],"stroke-w":[{stroke:[pe,Lo,bn,Ci]}],stroke:[{stroke:["none",...z()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function G(...e){return H0(ru(e))}function Fo(){return Fo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Fo.apply(null,arguments)}function Si(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function wi(e,t){return wi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},wi(e,t)}function _i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wi(e,t)}function G0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nr={exports:{}},kr={exports:{}},xe={};/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
- */var ru;function dx(){if(ru)return me;ru=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function C(w){if(typeof w=="object"&&w!==null){var T=w.$$typeof;switch(T){case t:switch(w=w.type,w){case l:case c:case o:case s:case r:case d:return w;default:switch(w=w&&w.$$typeof,w){case a:case u:case v:case p:case i:return w;default:return T}}case n:return T}}}function _(w){return C(w)===c}return me.AsyncMode=l,me.ConcurrentMode=c,me.ContextConsumer=a,me.ContextProvider=i,me.Element=t,me.ForwardRef=u,me.Fragment=o,me.Lazy=v,me.Memo=p,me.Portal=n,me.Profiler=s,me.StrictMode=r,me.Suspense=d,me.isAsyncMode=function(w){return _(w)||C(w)===l},me.isConcurrentMode=_,me.isContextConsumer=function(w){return C(w)===a},me.isContextProvider=function(w){return C(w)===i},me.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},me.isForwardRef=function(w){return C(w)===u},me.isFragment=function(w){return C(w)===o},me.isLazy=function(w){return C(w)===v},me.isMemo=function(w){return C(w)===p},me.isPortal=function(w){return C(w)===n},me.isProfiler=function(w){return C(w)===s},me.isStrictMode=function(w){return C(w)===r},me.isSuspense=function(w){return C(w)===d},me.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===o||w===c||w===s||w===r||w===d||w===f||typeof w=="object"&&w!==null&&(w.$$typeof===v||w.$$typeof===p||w.$$typeof===i||w.$$typeof===a||w.$$typeof===u||w.$$typeof===x||w.$$typeof===y||w.$$typeof===S||w.$$typeof===m)},me.typeOf=C,me}var ve={};/** @license React v16.13.1
8
+ */var bu;function j0(){if(bu)return xe;bu=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function C(w){if(typeof w=="object"&&w!==null){var T=w.$$typeof;switch(T){case t:switch(w=w.type,w){case l:case c:case o:case s:case r:case d:return w;default:switch(w=w&&w.$$typeof,w){case a:case u:case m:case p:case i:return w;default:return T}}case n:return T}}}function _(w){return C(w)===c}return xe.AsyncMode=l,xe.ConcurrentMode=c,xe.ContextConsumer=a,xe.ContextProvider=i,xe.Element=t,xe.ForwardRef=u,xe.Fragment=o,xe.Lazy=m,xe.Memo=p,xe.Portal=n,xe.Profiler=s,xe.StrictMode=r,xe.Suspense=d,xe.isAsyncMode=function(w){return _(w)||C(w)===l},xe.isConcurrentMode=_,xe.isContextConsumer=function(w){return C(w)===a},xe.isContextProvider=function(w){return C(w)===i},xe.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},xe.isForwardRef=function(w){return C(w)===u},xe.isFragment=function(w){return C(w)===o},xe.isLazy=function(w){return C(w)===m},xe.isMemo=function(w){return C(w)===p},xe.isPortal=function(w){return C(w)===n},xe.isProfiler=function(w){return C(w)===s},xe.isStrictMode=function(w){return C(w)===r},xe.isSuspense=function(w){return C(w)===d},xe.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===o||w===c||w===s||w===r||w===d||w===f||typeof w=="object"&&w!==null&&(w.$$typeof===m||w.$$typeof===p||w.$$typeof===i||w.$$typeof===a||w.$$typeof===u||w.$$typeof===x||w.$$typeof===b||w.$$typeof===S||w.$$typeof===g)},xe.typeOf=C,xe}var be={};/** @license React v16.13.1
9
9
  * react-is.development.js
10
10
  *
11
11
  * Copyright (c) Facebook, Inc. and its affiliates.
12
12
  *
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
- */var su;function fx(){return su||(su=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function C(H){return typeof H=="string"||typeof H=="function"||H===o||H===c||H===s||H===r||H===d||H===f||typeof H=="object"&&H!==null&&(H.$$typeof===v||H.$$typeof===p||H.$$typeof===i||H.$$typeof===a||H.$$typeof===u||H.$$typeof===x||H.$$typeof===y||H.$$typeof===S||H.$$typeof===m)}function _(H){if(typeof H=="object"&&H!==null){var Q=H.$$typeof;switch(Q){case t:var J=H.type;switch(J){case l:case c:case o:case s:case r:case d:return J;default:var se=J&&J.$$typeof;switch(se){case a:case u:case v:case p:case i:return se;default:return Q}}case n:return Q}}}var w=l,T=c,E=a,P=i,A=t,R=u,B=o,V=v,K=p,U=n,Z=s,X=r,q=d,z=!1;function ee(H){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),F(H)||_(H)===l}function F(H){return _(H)===c}function Y(H){return _(H)===a}function O(H){return _(H)===i}function I(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function k(H){return _(H)===u}function M(H){return _(H)===o}function L(H){return _(H)===v}function N(H){return _(H)===p}function $(H){return _(H)===n}function G(H){return _(H)===s}function W(H){return _(H)===r}function te(H){return _(H)===d}ve.AsyncMode=w,ve.ConcurrentMode=T,ve.ContextConsumer=E,ve.ContextProvider=P,ve.Element=A,ve.ForwardRef=R,ve.Fragment=B,ve.Lazy=V,ve.Memo=K,ve.Portal=U,ve.Profiler=Z,ve.StrictMode=X,ve.Suspense=q,ve.isAsyncMode=ee,ve.isConcurrentMode=F,ve.isContextConsumer=Y,ve.isContextProvider=O,ve.isElement=I,ve.isForwardRef=k,ve.isFragment=M,ve.isLazy=L,ve.isMemo=N,ve.isPortal=$,ve.isProfiler=G,ve.isStrictMode=W,ve.isSuspense=te,ve.isValidElementType=C,ve.typeOf=_})()),ve}var iu;function au(){return iu||(iu=1,process.env.NODE_ENV==="production"?Er.exports=dx():Er.exports=fx()),Er.exports}/*
15
+ */var yu;function W0(){return yu||(yu=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function C(B){return typeof B=="string"||typeof B=="function"||B===o||B===c||B===s||B===r||B===d||B===f||typeof B=="object"&&B!==null&&(B.$$typeof===m||B.$$typeof===p||B.$$typeof===i||B.$$typeof===a||B.$$typeof===u||B.$$typeof===x||B.$$typeof===b||B.$$typeof===S||B.$$typeof===g)}function _(B){if(typeof B=="object"&&B!==null){var Z=B.$$typeof;switch(Z){case t:var ue=B.type;switch(ue){case l:case c:case o:case s:case r:case d:return ue;default:var me=ue&&ue.$$typeof;switch(me){case a:case u:case m:case p:case i:return me;default:return Z}}case n:return Z}}}var w=l,T=c,E=a,P=i,I=t,N=u,H=o,L=m,X=p,W=n,J=s,Y=r,q=d,z=!1;function Q(B){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),F(B)||_(B)===l}function F(B){return _(B)===c}function K(B){return _(B)===a}function D(B){return _(B)===i}function A(B){return typeof B=="object"&&B!==null&&B.$$typeof===t}function k(B){return _(B)===u}function $(B){return _(B)===o}function V(B){return _(B)===m}function M(B){return _(B)===p}function R(B){return _(B)===n}function j(B){return _(B)===s}function U(B){return _(B)===r}function ee(B){return _(B)===d}be.AsyncMode=w,be.ConcurrentMode=T,be.ContextConsumer=E,be.ContextProvider=P,be.Element=I,be.ForwardRef=N,be.Fragment=H,be.Lazy=L,be.Memo=X,be.Portal=W,be.Profiler=J,be.StrictMode=Y,be.Suspense=q,be.isAsyncMode=Q,be.isConcurrentMode=F,be.isContextConsumer=K,be.isContextProvider=D,be.isElement=A,be.isForwardRef=k,be.isFragment=$,be.isLazy=V,be.isMemo=M,be.isPortal=R,be.isProfiler=j,be.isStrictMode=U,be.isSuspense=ee,be.isValidElementType=C,be.typeOf=_})()),be}var Cu;function Su(){return Cu||(Cu=1,process.env.NODE_ENV==="production"?kr.exports=j0():kr.exports=W0()),kr.exports}/*
16
16
  object-assign
17
17
  (c) Sindre Sorhus
18
18
  @license MIT
19
- */var gi,lu;function px(){if(lu)return gi;lu=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function r(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var i={},a=0;a<10;a++)i["_"+String.fromCharCode(a)]=a;var l=Object.getOwnPropertyNames(i).map(function(u){return i[u]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return gi=r()?Object.assign:function(s,i){for(var a,l=o(s),c,u=1;u<arguments.length;u++){a=Object(arguments[u]);for(var d in a)t.call(a,d)&&(l[d]=a[d]);if(e){c=e(a);for(var f=0;f<c.length;f++)n.call(a,c[f])&&(l[c[f]]=a[c[f]])}}return l},gi}var hi,cu;function mi(){if(cu)return hi;cu=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return hi=e,hi}var vi,uu;function du(){return uu||(uu=1,vi=Function.call.bind(Object.prototype.hasOwnProperty)),vi}var xi,fu;function gx(){if(fu)return xi;fu=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=mi(),n={},o=du();e=function(s){var i="Warning: "+s;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function r(s,i,a,l,c){if(process.env.NODE_ENV!=="production"){for(var u in s)if(o(s,u)){var d;try{if(typeof s[u]!="function"){var f=Error((l||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=s[u](i,u,l,a,null,t)}catch(v){d=v}if(d&&!(d instanceof Error)&&e((l||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=c?c():"";e("Failed "+a+" type: "+d.message+(p??""))}}}}return r.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},xi=r,xi}var bi,pu;function hx(){if(pu)return bi;pu=1;var e=au(),t=px(),n=mi(),o=du(),r=gx(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function i(){return null}return bi=function(a,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(F){var Y=F&&(c&&F[c]||F[u]);if(typeof Y=="function")return Y}var f="<<anonymous>>",p={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:S(),arrayOf:C,element:_(),elementType:w(),instanceOf:T,node:R(),objectOf:P,oneOf:E,oneOfType:A,shape:V,exact:K};function v(F,Y){return F===Y?F!==0||1/F===1/Y:F!==F&&Y!==Y}function m(F,Y){this.message=F,this.data=Y&&typeof Y=="object"?Y:{},this.stack=""}m.prototype=Error.prototype;function x(F){if(process.env.NODE_ENV!=="production")var Y={},O=0;function I(M,L,N,$,G,W,te){if($=$||f,W=W||N,te!==n){if(l){var H=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw H.name="Invariant Violation",H}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Q=$+":"+N;!Y[Q]&&O<3&&(s("You are manually calling a React.PropTypes validation function for the `"+W+"` prop on `"+$+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Y[Q]=!0,O++)}}return L[N]==null?M?L[N]===null?new m("The "+G+" `"+W+"` is marked as required "+("in `"+$+"`, but its value is `null`.")):new m("The "+G+" `"+W+"` is marked as required in "+("`"+$+"`, but its value is `undefined`.")):null:F(L,N,$,G,W)}var k=I.bind(null,!1);return k.isRequired=I.bind(null,!0),k}function y(F){function Y(O,I,k,M,L,N){var $=O[I],G=X($);if(G!==F){var W=q($);return new m("Invalid "+M+" `"+L+"` of type "+("`"+W+"` supplied to `"+k+"`, expected ")+("`"+F+"`."),{expectedType:F})}return null}return x(Y)}function S(){return x(i)}function C(F){function Y(O,I,k,M,L){if(typeof F!="function")return new m("Property `"+L+"` of component `"+k+"` has invalid PropType notation inside arrayOf.");var N=O[I];if(!Array.isArray(N)){var $=X(N);return new m("Invalid "+M+" `"+L+"` of type "+("`"+$+"` supplied to `"+k+"`, expected an array."))}for(var G=0;G<N.length;G++){var W=F(N,G,k,M,L+"["+G+"]",n);if(W instanceof Error)return W}return null}return x(Y)}function _(){function F(Y,O,I,k,M){var L=Y[O];if(!a(L)){var N=X(L);return new m("Invalid "+k+" `"+M+"` of type "+("`"+N+"` supplied to `"+I+"`, expected a single ReactElement."))}return null}return x(F)}function w(){function F(Y,O,I,k,M){var L=Y[O];if(!e.isValidElementType(L)){var N=X(L);return new m("Invalid "+k+" `"+M+"` of type "+("`"+N+"` supplied to `"+I+"`, expected a single ReactElement type."))}return null}return x(F)}function T(F){function Y(O,I,k,M,L){if(!(O[I]instanceof F)){var N=F.name||f,$=ee(O[I]);return new m("Invalid "+M+" `"+L+"` of type "+("`"+$+"` supplied to `"+k+"`, expected ")+("instance of `"+N+"`."))}return null}return x(Y)}function E(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),i;function Y(O,I,k,M,L){for(var N=O[I],$=0;$<F.length;$++)if(v(N,F[$]))return null;var G=JSON.stringify(F,function(te,H){var Q=q(H);return Q==="symbol"?String(H):H});return new m("Invalid "+M+" `"+L+"` of value `"+String(N)+"` "+("supplied to `"+k+"`, expected one of "+G+"."))}return x(Y)}function P(F){function Y(O,I,k,M,L){if(typeof F!="function")return new m("Property `"+L+"` of component `"+k+"` has invalid PropType notation inside objectOf.");var N=O[I],$=X(N);if($!=="object")return new m("Invalid "+M+" `"+L+"` of type "+("`"+$+"` supplied to `"+k+"`, expected an object."));for(var G in N)if(o(N,G)){var W=F(N,G,k,M,L+"."+G,n);if(W instanceof Error)return W}return null}return x(Y)}function A(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var Y=0;Y<F.length;Y++){var O=F[Y];if(typeof O!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+z(O)+" at index "+Y+"."),i}function I(k,M,L,N,$){for(var G=[],W=0;W<F.length;W++){var te=F[W],H=te(k,M,L,N,$,n);if(H==null)return null;H.data&&o(H.data,"expectedType")&&G.push(H.data.expectedType)}var Q=G.length>0?", expected one of type ["+G.join(", ")+"]":"";return new m("Invalid "+N+" `"+$+"` supplied to "+("`"+L+"`"+Q+"."))}return x(I)}function R(){function F(Y,O,I,k,M){return U(Y[O])?null:new m("Invalid "+k+" `"+M+"` supplied to "+("`"+I+"`, expected a ReactNode."))}return x(F)}function B(F,Y,O,I,k){return new m((F||"React class")+": "+Y+" type `"+O+"."+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+k+"`.")}function V(F){function Y(O,I,k,M,L){var N=O[I],$=X(N);if($!=="object")return new m("Invalid "+M+" `"+L+"` of type `"+$+"` "+("supplied to `"+k+"`, expected `object`."));for(var G in F){var W=F[G];if(typeof W!="function")return B(k,M,L,G,q(W));var te=W(N,G,k,M,L+"."+G,n);if(te)return te}return null}return x(Y)}function K(F){function Y(O,I,k,M,L){var N=O[I],$=X(N);if($!=="object")return new m("Invalid "+M+" `"+L+"` of type `"+$+"` "+("supplied to `"+k+"`, expected `object`."));var G=t({},O[I],F);for(var W in G){var te=F[W];if(o(F,W)&&typeof te!="function")return B(k,M,L,W,q(te));if(!te)return new m("Invalid "+M+" `"+L+"` key `"+W+"` supplied to `"+k+"`.\nBad object: "+JSON.stringify(O[I],null," ")+`
20
- Valid keys: `+JSON.stringify(Object.keys(F),null," "));var H=te(N,W,k,M,L+"."+W,n);if(H)return H}return null}return x(Y)}function U(F){switch(typeof F){case"number":case"string":case"undefined":return!0;case"boolean":return!F;case"object":if(Array.isArray(F))return F.every(U);if(F===null||a(F))return!0;var Y=d(F);if(Y){var O=Y.call(F),I;if(Y!==F.entries){for(;!(I=O.next()).done;)if(!U(I.value))return!1}else for(;!(I=O.next()).done;){var k=I.value;if(k&&!U(k[1]))return!1}}else return!1;return!0;default:return!1}}function Z(F,Y){return F==="symbol"?!0:Y?Y["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Y instanceof Symbol:!1}function X(F){var Y=typeof F;return Array.isArray(F)?"array":F instanceof RegExp?"object":Z(Y,F)?"symbol":Y}function q(F){if(typeof F>"u"||F===null)return""+F;var Y=X(F);if(Y==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return Y}function z(F){var Y=q(F);switch(Y){case"array":case"object":return"an "+Y;case"boolean":case"date":case"regexp":return"a "+Y;default:return Y}}function ee(F){return!F.constructor||!F.constructor.name?f:F.constructor.name}return p.checkPropTypes=r,p.resetWarningCache=r.resetWarningCache,p.PropTypes=p,p},bi}var yi,gu;function mx(){if(gu)return yi;gu=1;var e=mi();function t(){}function n(){}return n.resetWarningCache=t,yi=function(){function o(i,a,l,c,u,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}o.isRequired=o;function r(){return o}var s={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},yi}var hu;function vx(){if(hu)return Tr.exports;if(hu=1,process.env.NODE_ENV!=="production"){var e=au(),t=!0;Tr.exports=hx()(e.isElement,t)}else Tr.exports=mx()();return Tr.exports}var xx=vx();const ie=ux(xx);function bx(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function yx(e,t){e.classList?e.classList.add(t):bx(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function mu(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Cx(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=mu(e.className,t):e.setAttribute("class",mu(e.className&&e.className.baseVal||"",t))}const vu={disabled:!1};var wx=process.env.NODE_ENV!=="production"?ie.oneOfType([ie.number,ie.shape({enter:ie.number,exit:ie.number,appear:ie.number}).isRequired]):null,Sx=process.env.NODE_ENV!=="production"?ie.oneOfType([ie.string,ie.shape({enter:ie.string,exit:ie.string,active:ie.string}),ie.shape({enter:ie.string,enterDone:ie.string,enterActive:ie.string,exit:ie.string,exitDone:ie.string,exitActive:ie.string})]):null;const Pr=b.createContext(null);var xu=function(t){return t.scrollTop},Ro="unmounted",xn="exited",bn="entering",Gn="entered",Ci="exiting",Ct=(function(e){pi(t,e);function t(o,r){var s;s=e.call(this,o,r)||this;var i=r,a=i&&!i.isMounting?o.enter:o.appear,l;return s.appearStatus=null,o.in?a?(l=xn,s.appearStatus=bn):l=Gn:o.unmountOnExit||o.mountOnEnter?l=Ro:l=xn,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(r,s){var i=r.in;return i&&s.status===Ro?{status:xn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var s=null;if(r!==this.props){var i=this.state.status;this.props.in?i!==bn&&i!==Gn&&(s=bn):(i===bn||i===Gn)&&(s=Ci)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,s,i,a;return s=i=a=r,r!=null&&typeof r!="number"&&(s=r.exit,i=r.enter,a=r.appear!==void 0?r.appear:i),{exit:s,enter:i,appear:a}},n.updateStatus=function(r,s){if(r===void 0&&(r=!1),s!==null)if(this.cancelNextCallback(),s===bn){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Ze.findDOMNode(this);i&&xu(i)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xn&&this.setState({status:Ro})},n.performEnter=function(r){var s=this,i=this.props.enter,a=this.context?this.context.isMounting:r,l=this.props.nodeRef?[a]:[Ze.findDOMNode(this),a],c=l[0],u=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!r&&!i||vu.disabled){this.safeSetState({status:Gn},function(){s.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:bn},function(){s.props.onEntering(c,u),s.onTransitionEnd(f,function(){s.safeSetState({status:Gn},function(){s.props.onEntered(c,u)})})})},n.performExit=function(){var r=this,s=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:Ze.findDOMNode(this);if(!s||vu.disabled){this.safeSetState({status:xn},function(){r.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Ci},function(){r.props.onExiting(a),r.onTransitionEnd(i.exit,function(){r.safeSetState({status:xn},function(){r.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,s){s=this.setNextCallback(s),this.setState(r,s)},n.setNextCallback=function(r){var s=this,i=!0;return this.nextCallback=function(a){i&&(i=!1,s.nextCallback=null,r(a))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(r,s){this.setNextCallback(s);var i=this.props.nodeRef?this.props.nodeRef.current:Ze.findDOMNode(this),a=r==null&&!this.props.addEndListener;if(!i||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===Ro)return null;var s=this.props,i=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var a=di(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return b.createElement(Pr.Provider,{value:null},typeof i=="function"?i(r,a):b.cloneElement(b.Children.only(i),a))},t})(b.Component);Ct.contextType=Pr,Ct.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:ie.shape({current:typeof Element>"u"?ie.any:function(e,t,n,o,r,s){var i=e[t];return ie.instanceOf(i&&"ownerDocument"in i?i.ownerDocument.defaultView.Element:Element)(e,t,n,o,r,s)}}),children:ie.oneOfType([ie.func.isRequired,ie.element.isRequired]).isRequired,in:ie.bool,mountOnEnter:ie.bool,unmountOnExit:ie.bool,appear:ie.bool,enter:ie.bool,exit:ie.bool,timeout:function(t){var n=wx;t.addEndListener||(n=n.isRequired);for(var o=arguments.length,r=new Array(o>1?o-1:0),s=1;s<o;s++)r[s-1]=arguments[s];return n.apply(void 0,[t].concat(r))},addEndListener:ie.func,onEnter:ie.func,onEntering:ie.func,onEntered:ie.func,onExit:ie.func,onExiting:ie.func,onExited:ie.func}:{};function jn(){}Ct.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:jn,onEntering:jn,onEntered:jn,onExit:jn,onExiting:jn,onExited:jn},Ct.UNMOUNTED=Ro,Ct.EXITED=xn,Ct.ENTERING=bn,Ct.ENTERED=Gn,Ct.EXITING=Ci;var _x=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return yx(t,o)})},wi=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return Cx(t,o)})},Ir=(function(e){pi(t,e);function t(){for(var o,r=arguments.length,s=new Array(r),i=0;i<r;i++)s[i]=arguments[i];return o=e.call.apply(e,[this].concat(s))||this,o.appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(a,l){var c=o.resolveArguments(a,l),u=c[0],d=c[1];o.removeClasses(u,"exit"),o.addClass(u,d?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(a,l)},o.onEntering=function(a,l){var c=o.resolveArguments(a,l),u=c[0],d=c[1],f=d?"appear":"enter";o.addClass(u,f,"active"),o.props.onEntering&&o.props.onEntering(a,l)},o.onEntered=function(a,l){var c=o.resolveArguments(a,l),u=c[0],d=c[1],f=d?"appear":"enter";o.removeClasses(u,f),o.addClass(u,f,"done"),o.props.onEntered&&o.props.onEntered(a,l)},o.onExit=function(a){var l=o.resolveArguments(a),c=l[0];o.removeClasses(c,"appear"),o.removeClasses(c,"enter"),o.addClass(c,"exit","base"),o.props.onExit&&o.props.onExit(a)},o.onExiting=function(a){var l=o.resolveArguments(a),c=l[0];o.addClass(c,"exit","active"),o.props.onExiting&&o.props.onExiting(a)},o.onExited=function(a){var l=o.resolveArguments(a),c=l[0];o.removeClasses(c,"exit"),o.addClass(c,"exit","done"),o.props.onExited&&o.props.onExited(a)},o.resolveArguments=function(a,l){return o.props.nodeRef?[o.props.nodeRef.current,a]:[a,l]},o.getClassNames=function(a){var l=o.props.classNames,c=typeof l=="string",u=c&&l?l+"-":"",d=c?""+u+a:l[a],f=c?d+"-active":l[a+"Active"],p=c?d+"-done":l[a+"Done"];return{baseClassName:d,activeClassName:f,doneClassName:p}},o}var n=t.prototype;return n.addClass=function(r,s,i){var a=this.getClassNames(s)[i+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;s==="appear"&&i==="done"&&c&&(a+=" "+c),i==="active"&&r&&xu(r),a&&(this.appliedClasses[s][i]=a,_x(r,a))},n.removeClasses=function(r,s){var i=this.appliedClasses[s],a=i.base,l=i.active,c=i.done;this.appliedClasses[s]={},a&&wi(r,a),l&&wi(r,l),c&&wi(r,c)},n.render=function(){var r=this.props;r.classNames;var s=di(r,["classNames"]);return b.createElement(Ct,Mo({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(b.Component);Ir.defaultProps={classNames:""},Ir.propTypes=process.env.NODE_ENV!=="production"?Mo({},Ct.propTypes,{classNames:Sx,onEnter:ie.func,onEntering:ie.func,onEntered:ie.func,onExit:ie.func,onExiting:ie.func,onExited:ie.func}):{};function Tx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Si(e,t){var n=function(s){return t&&b.isValidElement(s)?t(s):s},o=Object.create(null);return e&&b.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function Ex(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var o=Object.create(null),r=[];for(var s in e)s in t?r.length&&(o[s]=r,r=[]):r.push(s);var i,a={};for(var l in t){if(o[l])for(i=0;i<o[l].length;i++){var c=o[l][i];a[o[l][i]]=n(c)}a[l]=n(l)}for(i=0;i<r.length;i++)a[r[i]]=n(r[i]);return a}function yn(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Px(e,t){return Si(e.children,function(n){return b.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:yn(n,"appear",e),enter:yn(n,"enter",e),exit:yn(n,"exit",e)})})}function Ix(e,t,n){var o=Si(e.children),r=Ex(t,o);return Object.keys(r).forEach(function(s){var i=r[s];if(b.isValidElement(i)){var a=s in t,l=s in o,c=t[s],u=b.isValidElement(c)&&!c.props.in;l&&(!a||u)?r[s]=b.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:yn(i,"exit",e),enter:yn(i,"enter",e)}):!l&&a&&!u?r[s]=b.cloneElement(i,{in:!1}):l&&a&&b.isValidElement(c)&&(r[s]=b.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:yn(i,"exit",e),enter:yn(i,"enter",e)}))}}),r}var Ax=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Ox={component:"div",childFactory:function(t){return t}},_i=(function(e){pi(t,e);function t(o,r){var s;s=e.call(this,o,r)||this;var i=s.handleExited.bind(Tx(s));return s.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,s){var i=s.children,a=s.handleExited,l=s.firstRender;return{children:l?Px(r,a):Ix(r,i,a),firstRender:!1}},n.handleExited=function(r,s){var i=Si(this.props.children);r.key in i||(r.props.onExited&&r.props.onExited(s),this.mounted&&this.setState(function(a){var l=Mo({},a.children);return delete l[r.key],{children:l}}))},n.render=function(){var r=this.props,s=r.component,i=r.childFactory,a=di(r,["component","childFactory"]),l=this.state.contextValue,c=Ax(this.state.children).map(i);return delete a.appear,delete a.enter,delete a.exit,s===null?b.createElement(Pr.Provider,{value:l},c):b.createElement(Pr.Provider,{value:l},b.createElement(s,a,c))},t})(b.Component);_i.propTypes=process.env.NODE_ENV!=="production"?{component:ie.any,children:ie.node,appear:ie.bool,enter:ie.bool,exit:ie.bool,childFactory:ie.func}:{},_i.defaultProps=Ox;function Un({in:e=!1,appear:t=!1,unmountOnExit:n=!0,mountOnEnter:o=!0,classNames:r,timeout:s,styleVars:i,children:a}){const l=b.useRef(null),c=b.Children.only(a),u=b.cloneElement(c,{ref:l,style:{...c.props.style??{},...i}});return h.jsx(Ir,{nodeRef:l,in:e,appear:t,timeout:s,classNames:r,mountOnEnter:o,unmountOnExit:n,children:u})}function bu({enterDuration:e=500,leaveDuration:t=300,...n}){return h.jsx(Un,{classNames:"bounce",timeout:{enter:e,exit:t,appear:e},styleVars:{"--bounce-enter-duration":`${e}ms`,"--bounce-leave-duration":`${t}ms`},...n})}bu.displayName="OxTransitionBounce";function yu({enterDuration:e=300,leaveDuration:t=300,distance:n="100%",direction:o="right",leaveDirection:r="left",...s}){return h.jsx(Un,{classNames:"slide-x",timeout:{enter:e,exit:t,appear:e},styleVars:{"--slide-x-enter-duration":`${e}ms`,"--slide-x-leave-duration":`${t}ms`,"--slide-x-distance":n,"--slide-x-enter-direction":o==="right"?"1":"-1","--slide-x-leave-direction":r==="right"?"1":"-1"},...s})}yu.displayName="OxTransitionSlideX";function Cu({enterDuration:e=300,leaveDuration:t=300,...n}){return h.jsx(Un,{classNames:"fade",timeout:{enter:e,exit:t,appear:e},styleVars:{"--fade-enter-duration":`${e}ms`,"--fade-leave-duration":`${t}ms`},...n})}Cu.displayName="OxTransitionFade";function wu({enterDuration:e=300,leaveDuration:t=300,distance:n="100%",direction:o="top",leaveDirection:r="bottom",...s}){return h.jsx(Un,{classNames:"slide-y",timeout:{enter:e,exit:t,appear:e},styleVars:{"--slide-y-enter-duration":`${e}ms`,"--slide-y-leave-duration":`${t}ms`,"--slide-y-distance":n,"--slide-y-enter-direction":o==="bottom"?"1":"-1","--slide-y-leave-direction":r==="bottom"?"1":"-1"},...s})}wu.displayName="OxTransitionSlideY";function Su({enterDuration:e=300,leaveDuration:t=300,...n}){return h.jsx(Un,{classNames:"expand",timeout:{enter:e,exit:t,appear:e},styleVars:{"--expand-enter-duration":`${e}ms`,"--expand-leave-duration":`${t}ms`},...n})}Su.displayName="OxTransitionExpand";function _u({enterDuration:e=500,leaveDuration:t=500,axis:n="y",enterDegrees:o=90,...r}){const s=n==="x"?"rotateX":"rotateY";return h.jsx(Un,{classNames:`flip-${n}`,timeout:{enter:e,exit:t,appear:e},styleVars:{"--flip-enter-duration":`${e}ms`,"--flip-leave-duration":`${t}ms`,"--flip-enter-transform":`${s}(${o}deg)`,"--flip-leave-transform":`${s}(${-o}deg)`},...r})}_u.displayName="OxTransitionFlip";const Tu=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Eu=Gc,at=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return Eu(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:s}=t,i=Object.keys(r).map(c=>{const u=n==null?void 0:n[c],d=s==null?void 0:s[c];if(u===null)return null;const f=Tu(u)||Tu(d);return r[c][f]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((c,u)=>{let{class:d,className:f,...p}=u;return Object.entries(p).every(v=>{let[m,x]=v;return Array.isArray(x)?x.includes({...s,...a}[m]):{...s,...a}[m]===x})?[...c,d,f]:c},[]);return Eu(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)};function Pu(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Wn(...e){return t=>{let n=!1;const o=e.map(r=>{const s=Pu(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():Pu(e[r],null)}}}}function ye(...e){return g.useCallback(Wn(...e),e)}function qn(e){const t=g.forwardRef((n,o)=>{let{children:r,...s}=n,i=null,a=!1;const l=[];Au(r)&&typeof Or=="function"&&(r=Or(r._payload)),g.Children.forEach(r,f=>{var p;if(Mx(f)){a=!0;const v=f;let m="child"in v.props?v.props.child:v.props.children;Au(m)&&typeof Or=="function"&&(m=Or(m._payload)),i=Nx(v,m),l.push((p=i==null?void 0:i.props)==null?void 0:p.children)}else l.push(f)}),i?i=g.cloneElement(i,void 0,l):!a&&g.Children.count(r)===1&&g.isValidElement(r)&&(i=r);const c=i?$x(i):void 0,u=ye(o,c);if(!i){if(r||r===0)throw new Error(a?zx(e):Fx(e));return r}const d=kx(s,i.props??{});return i.type!==g.Fragment&&(d.ref=o?u:c),g.cloneElement(i,d)});return t.displayName=`${e}.Slot`,t}var Ar=qn("Slot"),Iu=Symbol.for("radix.slottable");function Dx(e){const t=n=>"child"in n?n.children(n.child):n.children;return t.displayName=`${e}.Slottable`,t.__radixId=Iu,t}var Nx=(e,t)=>{if("child"in e.props){const n=e.props.child;return g.isValidElement(n)?g.cloneElement(n,void 0,e.props.children(n.props.children)):null}return g.isValidElement(t)?t:null};function kx(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{const l=s(...a);return r(...a),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function $x(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Mx(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Iu}var Rx=Symbol.for("react.lazy");function Au(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Rx&&"_payload"in e&&Lx(e._payload)}function Lx(e){return typeof e=="object"&&e!==null&&"then"in e}var Fx=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,zx=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Or=g[" use ".trim().toString()];const Ou=b.forwardRef(({className:e,variant:t="default",size:n="md",asChild:o=!1,...r},s)=>{const i=o?Ar:"button";return h.jsx(i,{ref:s,"data-slot":"button",className:j(Du({variant:t,size:n}),e),...r})});Ou.displayName="OxButton";const Du=at("inline-flex items-center justify-center whitespace-nowrap font-normal transition-all cursor-pointer disabled:pointer-events-none disabled:opacity-50 active:opacity-60 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error",{variants:{variant:{default:"bg-brand text-brand-foreground hover:bg-brand-hover",destructive:"bg-error text-error-foreground hover:bg-error/90 focus-visible:ring-error/20",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20",outline:"border border-border-default text-font-primary bg-transparent hover:bg-brand-100",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"text-brand bg-transparent hover:bg-brand-100",link:"text-brand underline-offset-4 hover:underline"},size:{xs:"h-6 gap-1 px-2 text-xs rounded-md [&_svg]:size-4",sm:"h-10 gap-2 px-4 text-base rounded-[12px] [&_svg]:size-6",md:"h-12 gap-2 px-5 text-base rounded-lg [&_svg]:size-8",lg:"h-14 gap-2 px-6 text-xl rounded-lg [&_svg]:size-8",icon:"size-9 rounded-md [&_svg]:size-4"}},defaultVariants:{variant:"default",size:"md"}}),Vx={oxCard:"_oxCard_spxee_2"},Nu=b.forwardRef(({className:e,asChild:t=!1,tone:n="default",flat:o=!1,dataTestid:r,...s},i)=>{const a=t?Ar:"div";return h.jsx(a,{ref:i,"data-slot":"card","data-testid":r,"data-flat":o,className:j(Vx.oxCard,ku({tone:n}),e),...s})});Nu.displayName="OxCard";const ku=at("",{variants:{tone:{default:"bg-card",muted:"bg-bg-subtle"}},defaultVariants:{tone:"default"}}),wt={oxCardStack:"_oxCardStack_1ek2i_2",oxCardStackInner:"_oxCardStackInner_1ek2i_2",oxCardStackSlot:"_oxCardStackSlot_1ek2i_2",oxCardStackCard:"_oxCardStackCard_1ek2i_2",oxNextEnter:"_oxNextEnter_1ek2i_2",oxNextExitActive:"_oxNextExitActive_1ek2i_2",oxPrevEnter:"_oxPrevEnter_1ek2i_2",oxPrevExitActive:"_oxPrevExitActive_1ek2i_2",oxExit:"_oxExit_1ek2i_2"},$u=b.forwardRef(({className:e,index:t=0,dataTestid:n,children:o,...r},s)=>{const i=b.Children.toArray(o).filter(b.isValidElement).map((f,p)=>({key:f.key??String(p),node:f})),a=jx(i,t),l=b.useRef(t),c=Ux(l.current,t,i.length);l.current=t;const u=b.useRef(new Map),d=c==="next"?{enter:wt.oxNextEnter,exit:wt.oxExit,exitActive:wt.oxNextExitActive}:{enter:wt.oxPrevEnter,exit:wt.oxExit,exitActive:wt.oxPrevExitActive};return h.jsx("div",{ref:s,"data-slot":"card-stack","data-testid":n,className:j(wt.oxCardStack,e),style:{"--ox-card-stack-behind":a.length-1},...r,children:h.jsx(_i,{className:wt.oxCardStackInner,children:a.map((f,p)=>{const v=String(f.key),m=x=>{u.current.set(v,x)};return h.jsx(Ir,{timeout:460,classNames:d,nodeRef:{get current(){return u.current.get(v)??null}},children:h.jsx("div",{ref:m,className:wt.oxCardStackSlot,style:{zIndex:Ti-p},children:h.jsx("div",{className:wt.oxCardStackCard,"data-slot":"card-stack-card","data-depth":p,"aria-hidden":p>0?"true":void 0,"data-testid":`${n}-card-${p}`,style:{transform:Gx(p)},children:f.node})})},v)})})})});$u.displayName="OxCardStack";const Ti=3,Hx=10,Bx=.055,Gx=e=>`translateY(${e*Hx}px) scale(${1-e*Bx})`,jx=(e,t)=>{const n=e.length;if(n===0)return[];const o=Math.min(Ti,n),r=(Math.trunc(t)%n+n)%n;return Array.from({length:o},(s,i)=>e[(r+i)%n])},Ux=(e,t,n)=>n<2?"next":(t-e+n)%n===n-1?"prev":"next",Wx={oxDivider:"_oxDivider_bamml_2"},Mu=b.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!1,asChild:o=!1,dataTestid:r,...s},i)=>{const a=o?Ar:"div";return h.jsx(a,{ref:i,"data-slot":"divider","data-testid":r,"data-orientation":t,role:n?"none":"separator","aria-orientation":n||t==="horizontal"?void 0:"vertical",className:j(Wx.oxDivider,e),...s})});Mu.displayName="OxDivider";const Dr=b.createContext(null);Dr.displayName="PanelGroupContext";const Ce={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},Ei=10,Cn=b.useLayoutEffect,Ru=g.useId,qx=typeof Ru=="function"?Ru:()=>null;let Kx=0;function Pi(e=null){const t=qx(),n=b.useRef(e||t||null);return n.current===null&&(n.current=""+Kx++),e??n.current}function Lu({children:e,className:t="",collapsedSize:n,collapsible:o,defaultSize:r,forwardedRef:s,id:i,maxSize:a,minSize:l,onCollapse:c,onExpand:u,onResize:d,order:f,style:p,tagName:v="div",...m}){const x=b.useContext(Dr);if(x===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:y,expandPanel:S,getPanelSize:C,getPanelStyle:_,groupId:w,isPanelCollapsed:T,reevaluatePanelConstraints:E,registerPanel:P,resizePanel:A,unregisterPanel:R}=x,B=Pi(i),V=b.useRef({callbacks:{onCollapse:c,onExpand:u,onResize:d},constraints:{collapsedSize:n,collapsible:o,defaultSize:r,maxSize:a,minSize:l},id:B,idIsFromProps:i!==void 0,order:f});b.useRef({didLogMissingDefaultSizeWarning:!1}),Cn(()=>{const{callbacks:U,constraints:Z}=V.current,X={...Z};V.current.id=B,V.current.idIsFromProps=i!==void 0,V.current.order=f,U.onCollapse=c,U.onExpand=u,U.onResize=d,Z.collapsedSize=n,Z.collapsible=o,Z.defaultSize=r,Z.maxSize=a,Z.minSize=l,(X.collapsedSize!==Z.collapsedSize||X.collapsible!==Z.collapsible||X.maxSize!==Z.maxSize||X.minSize!==Z.minSize)&&E(V.current,X)}),Cn(()=>{const U=V.current;return P(U),()=>{R(U)}},[f,B,P,R]),b.useImperativeHandle(s,()=>({collapse:()=>{y(V.current)},expand:U=>{S(V.current,U)},getId(){return B},getSize(){return C(V.current)},isCollapsed(){return T(V.current)},isExpanded(){return!T(V.current)},resize:U=>{A(V.current,U)}}),[y,S,C,T,B,A]);const K=_(V.current,r);return b.createElement(v,{...m,children:e,className:t,id:B,style:{...K,...p},[Ce.groupId]:w,[Ce.panel]:"",[Ce.panelCollapsible]:o||void 0,[Ce.panelId]:B,[Ce.panelSize]:parseFloat(""+K.flexGrow).toFixed(1)})}const Fu=b.forwardRef((e,t)=>b.createElement(Lu,{...e,forwardedRef:t}));Lu.displayName="Panel",Fu.displayName="forwardRef(Panel)";let Ii=null,Nr=-1,Jt=null;function Xx(e,t){if(t){const n=(t&Wu)!==0,o=(t&qu)!==0,r=(t&Ku)!==0,s=(t&Xu)!==0;if(n)return r?"se-resize":s?"ne-resize":"e-resize";if(o)return r?"sw-resize":s?"nw-resize":"w-resize";if(r)return"s-resize";if(s)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Yx(){Jt!==null&&(document.head.removeChild(Jt),Ii=null,Jt=null,Nr=-1)}function Ai(e,t){var n,o;const r=Xx(e,t);if(Ii!==r){if(Ii=r,Jt===null&&(Jt=document.createElement("style"),document.head.appendChild(Jt)),Nr>=0){var s;(s=Jt.sheet)===null||s===void 0||s.removeRule(Nr)}Nr=(n=(o=Jt.sheet)===null||o===void 0?void 0:o.insertRule(`*{cursor: ${r} !important;}`))!==null&&n!==void 0?n:-1}}function zu(e){return e.type==="keydown"}function Vu(e){return e.type.startsWith("pointer")}function Hu(e){return e.type.startsWith("mouse")}function kr(e){if(Vu(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(Hu(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function Zx(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Jx(e,t,n){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function Qx(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:ju(e),b:ju(t)};let o;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),o=e;de(o,"Stacking order can only be calculated for elements with a common ancestor");const r={a:Gu(Bu(n.a)),b:Gu(Bu(n.b))};if(r.a===r.b){const s=o.childNodes,i={a:n.a.at(-1),b:n.b.at(-1)};let a=s.length;for(;a--;){const l=s[a];if(l===i.a)return 1;if(l===i.b)return-1}}return Math.sign(r.a-r.b)}const eb=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function tb(e){var t;const n=getComputedStyle((t=Uu(e))!==null&&t!==void 0?t:e).display;return n==="flex"||n==="inline-flex"}function nb(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||tb(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||eb.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function Bu(e){let t=e.length;for(;t--;){const n=e[t];if(de(n,"Missing node"),nb(n))return n}return null}function Gu(e){return e&&Number(getComputedStyle(e).zIndex)||0}function ju(e){const t=[];for(;e;)t.push(e),e=Uu(e);return t}function Uu(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const Wu=1,qu=2,Ku=4,Xu=8,ob=Zx()==="coarse";let ft=[],Kn=!1,wn=new Map,$r=new Map;const Lo=new Set;function rb(e,t,n,o,r){var s;const{ownerDocument:i}=t,a={direction:n,element:t,hitAreaMargins:o,setResizeHandlerState:r},l=(s=wn.get(i))!==null&&s!==void 0?s:0;return wn.set(i,l+1),Lo.add(a),Mr(),function(){var u;$r.delete(e),Lo.delete(a);const d=(u=wn.get(i))!==null&&u!==void 0?u:1;if(wn.set(i,d-1),Mr(),d===1&&wn.delete(i),ft.includes(a)){const f=ft.indexOf(a);f>=0&&ft.splice(f,1),$i(),r("up",!0,null)}}}function sb(e){const{target:t}=e,{x:n,y:o}=kr(e);Kn=!0,Ni({target:t,x:n,y:o}),Mr(),ft.length>0&&(Rr("down",e),e.preventDefault(),Yu(t)||e.stopImmediatePropagation())}function Oi(e){const{x:t,y:n}=kr(e);if(Kn&&e.buttons===0&&(Kn=!1,Rr("up",e)),!Kn){const{target:o}=e;Ni({target:o,x:t,y:n})}Rr("move",e),$i(),ft.length>0&&e.preventDefault()}function Di(e){const{target:t}=e,{x:n,y:o}=kr(e);$r.clear(),Kn=!1,ft.length>0&&(e.preventDefault(),Yu(t)||e.stopImmediatePropagation()),Rr("up",e),Ni({target:t,x:n,y:o}),$i(),Mr()}function Yu(e){let t=e;for(;t;){if(t.hasAttribute(Ce.resizeHandle))return!0;t=t.parentElement}return!1}function Ni({target:e,x:t,y:n}){ft.splice(0);let o=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(o=e),Lo.forEach(r=>{const{element:s,hitAreaMargins:i}=r,a=s.getBoundingClientRect(),{bottom:l,left:c,right:u,top:d}=a,f=ob?i.coarse:i.fine;if(t>=c-f&&t<=u+f&&n>=d-f&&n<=l+f){if(o!==null&&document.contains(o)&&s!==o&&!s.contains(o)&&!o.contains(s)&&Qx(o,s)>0){let v=o,m=!1;for(;v&&!v.contains(s);){if(Jx(v.getBoundingClientRect(),a)){m=!0;break}v=v.parentElement}if(m)return}ft.push(r)}})}function ki(e,t){$r.set(e,t)}function $i(){let e=!1,t=!1;ft.forEach(o=>{const{direction:r}=o;r==="horizontal"?e=!0:t=!0});let n=0;$r.forEach(o=>{n|=o}),e&&t?Ai("intersection",n):e?Ai("horizontal",n):t?Ai("vertical",n):Yx()}let Mi=new AbortController;function Mr(){Mi.abort(),Mi=new AbortController;const e={capture:!0,signal:Mi.signal};Lo.size&&(Kn?(ft.length>0&&wn.forEach((t,n)=>{const{body:o}=n;t>0&&(o.addEventListener("contextmenu",Di,e),o.addEventListener("pointerleave",Oi,e),o.addEventListener("pointermove",Oi,e))}),window.addEventListener("pointerup",Di,e),window.addEventListener("pointercancel",Di,e)):wn.forEach((t,n)=>{const{body:o}=n;t>0&&(o.addEventListener("pointerdown",sb,e),o.addEventListener("pointermove",Oi,e))}))}function Rr(e,t){Lo.forEach(n=>{const{setResizeHandlerState:o}=n,r=ft.includes(n);o(e,r,t)})}function ib(){const[e,t]=b.useState(0);return b.useCallback(()=>t(n=>n+1),[])}function de(e,t){if(!e)throw console.error(t),Error(t)}function Sn(e,t,n=Ei){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function Rt(e,t,n=Ei){return Sn(e,t,n)===0}function Je(e,t,n){return Sn(e,t,n)===0}function ab(e,t,n){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++){const r=e[o],s=t[o];if(!Je(r,s,n))return!1}return!0}function Xn({panelConstraints:e,panelIndex:t,size:n}){const o=e[t];de(o!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:r=0,collapsible:s,maxSize:i=100,minSize:a=0}=o;if(Sn(n,a)<0)if(s){const l=(r+a)/2;Sn(n,l)<0?n=r:n=a}else n=a;return n=Math.min(i,n),n=parseFloat(n.toFixed(Ei)),n}function Fo({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:o,prevLayout:r,trigger:s}){if(Je(e,0))return t;const i=[...t],[a,l]=o;de(a!=null,"Invalid first pivot index"),de(l!=null,"Invalid second pivot index");let c=0;if(s==="keyboard"){{const d=e<0?l:a,f=n[d];de(f,`Panel constraints not found for index ${d}`);const{collapsedSize:p=0,collapsible:v,minSize:m=0}=f;if(v){const x=t[d];if(de(x!=null,`Previous layout not found for panel index ${d}`),Je(x,p)){const y=m-x;Sn(y,Math.abs(e))>0&&(e=e<0?0-y:y)}}}{const d=e<0?a:l,f=n[d];de(f,`No panel constraints found for index ${d}`);const{collapsedSize:p=0,collapsible:v,minSize:m=0}=f;if(v){const x=t[d];if(de(x!=null,`Previous layout not found for panel index ${d}`),Je(x,m)){const y=x-p;Sn(y,Math.abs(e))>0&&(e=e<0?0-y:y)}}}}{const d=e<0?1:-1;let f=e<0?l:a,p=0;for(;;){const m=t[f];de(m!=null,`Previous layout not found for panel index ${f}`);const y=Xn({panelConstraints:n,panelIndex:f,size:100})-m;if(p+=y,f+=d,f<0||f>=n.length)break}const v=Math.min(Math.abs(e),Math.abs(p));e=e<0?0-v:v}{let f=e<0?a:l;for(;f>=0&&f<n.length;){const p=Math.abs(e)-Math.abs(c),v=t[f];de(v!=null,`Previous layout not found for panel index ${f}`);const m=v-p,x=Xn({panelConstraints:n,panelIndex:f,size:m});if(!Je(v,x)&&(c+=v-x,i[f]=x,c.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?f--:f++}}if(ab(r,i))return r;{const d=e<0?l:a,f=t[d];de(f!=null,`Previous layout not found for panel index ${d}`);const p=f+c,v=Xn({panelConstraints:n,panelIndex:d,size:p});if(i[d]=v,!Je(v,p)){let m=p-v,y=e<0?l:a;for(;y>=0&&y<n.length;){const S=i[y];de(S!=null,`Previous layout not found for panel index ${y}`);const C=S+m,_=Xn({panelConstraints:n,panelIndex:y,size:C});if(Je(S,_)||(m-=_-S,i[y]=_),Je(m,0))break;e>0?y--:y++}}}const u=i.reduce((d,f)=>f+d,0);return Je(u,100)?i:r}function lb({layout:e,panelsArray:t,pivotIndices:n}){let o=0,r=100,s=0,i=0;const a=n[0];de(a!=null,"No pivot index found"),t.forEach((d,f)=>{const{constraints:p}=d,{maxSize:v=100,minSize:m=0}=p;f===a?(o=m,r=v):(s+=m,i+=v)});const l=Math.min(r,100-s),c=Math.max(o,100-i),u=e[a];return{valueMax:l,valueMin:c,valueNow:u}}function zo(e,t=document){return Array.from(t.querySelectorAll(`[${Ce.resizeHandleId}][data-panel-group-id="${e}"]`))}function Zu(e,t,n=document){const r=zo(e,n).findIndex(s=>s.getAttribute(Ce.resizeHandleId)===t);return r??null}function Ju(e,t,n){const o=Zu(e,t,n);return o!=null?[o,o+1]:[-1,-1]}function Qu(e,t=document){var n;if(t instanceof HTMLElement&&(t==null||(n=t.dataset)===null||n===void 0?void 0:n.panelGroupId)==e)return t;const o=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return o||null}function Lr(e,t=document){const n=t.querySelector(`[${Ce.resizeHandleId}="${e}"]`);return n||null}function cb(e,t,n,o=document){var r,s,i,a;const l=Lr(t,o),c=zo(e,o),u=l?c.indexOf(l):-1,d=(r=(s=n[u])===null||s===void 0?void 0:s.id)!==null&&r!==void 0?r:null,f=(i=(a=n[u+1])===null||a===void 0?void 0:a.id)!==null&&i!==void 0?i:null;return[d,f]}function ub({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:o,panelDataArray:r,panelGroupElement:s,setLayout:i}){b.useRef({didWarnAboutMissingResizeHandle:!1}),Cn(()=>{if(!s)return;const a=zo(n,s);for(let l=0;l<r.length-1;l++){const{valueMax:c,valueMin:u,valueNow:d}=lb({layout:o,panelsArray:r,pivotIndices:[l,l+1]}),f=a[l];if(f!=null){const p=r[l];de(p,`No panel data found for index "${l}"`),f.setAttribute("aria-controls",p.id),f.setAttribute("aria-valuemax",""+Math.round(c)),f.setAttribute("aria-valuemin",""+Math.round(u)),f.setAttribute("aria-valuenow",d!=null?""+Math.round(d):"")}}return()=>{a.forEach((l,c)=>{l.removeAttribute("aria-controls"),l.removeAttribute("aria-valuemax"),l.removeAttribute("aria-valuemin"),l.removeAttribute("aria-valuenow")})}},[n,o,r,s]),b.useEffect(()=>{if(!s)return;const a=t.current;de(a,"Eager values not found");const{panelDataArray:l}=a,c=Qu(n,s);de(c!=null,`No group found for id "${n}"`);const u=zo(n,s);de(u,`No resize handles found for group id "${n}"`);const d=u.map(f=>{const p=f.getAttribute(Ce.resizeHandleId);de(p,"Resize handle element has no handle id attribute");const[v,m]=cb(n,p,l,s);if(v==null||m==null)return()=>{};const x=y=>{if(!y.defaultPrevented)switch(y.key){case"Enter":{y.preventDefault();const S=l.findIndex(C=>C.id===v);if(S>=0){const C=l[S];de(C,`No panel data found for index ${S}`);const _=o[S],{collapsedSize:w=0,collapsible:T,minSize:E=0}=C.constraints;if(_!=null&&T){const P=Fo({delta:Je(_,w)?E-w:w-_,initialLayout:o,panelConstraints:l.map(A=>A.constraints),pivotIndices:Ju(n,p,s),prevLayout:o,trigger:"keyboard"});o!==P&&i(P)}}break}}};return f.addEventListener("keydown",x),()=>{f.removeEventListener("keydown",x)}});return()=>{d.forEach(f=>f())}},[s,e,t,n,o,r,i])}function ed(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function td(e,t){const n=e==="horizontal",{x:o,y:r}=kr(t);return n?o:r}function db(e,t,n,o,r){const s=n==="horizontal",i=Lr(t,r);de(i,`No resize handle element found for id "${t}"`);const a=i.getAttribute(Ce.groupId);de(a,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=o;const c=td(n,e),u=Qu(a,r);de(u,`No group element found for id "${a}"`);const d=u.getBoundingClientRect(),f=s?d.width:d.height;return(c-l)/f*100}function fb(e,t,n,o,r,s){if(zu(e)){const i=n==="horizontal";let a=0;e.shiftKey?a=100:r!=null?a=r:a=10;let l=0;switch(e.key){case"ArrowDown":l=i?0:a;break;case"ArrowLeft":l=i?-a:0;break;case"ArrowRight":l=i?a:0;break;case"ArrowUp":l=i?0:-a;break;case"End":l=100;break;case"Home":l=-100;break}return l}else return o==null?0:db(e,t,n,o,s)}function pb({panelDataArray:e}){const t=Array(e.length),n=e.map(s=>s.constraints);let o=0,r=100;for(let s=0;s<e.length;s++){const i=n[s];de(i,`Panel constraints not found for index ${s}`);const{defaultSize:a}=i;a!=null&&(o++,t[s]=a,r-=a)}for(let s=0;s<e.length;s++){const i=n[s];de(i,`Panel constraints not found for index ${s}`);const{defaultSize:a}=i;if(a!=null)continue;const l=e.length-o,c=r/l;o++,t[s]=c,r-=c}return t}function Yn(e,t,n){t.forEach((o,r)=>{const s=e[r];de(s,`Panel data not found for index ${r}`);const{callbacks:i,constraints:a,id:l}=s,{collapsedSize:c=0,collapsible:u}=a,d=n[l];if(d==null||o!==d){n[l]=o;const{onCollapse:f,onExpand:p,onResize:v}=i;v&&v(o,d),u&&(f||p)&&(p&&(d==null||Rt(d,c))&&!Rt(o,c)&&p(),f&&(d==null||!Rt(d,c))&&Rt(o,c)&&f())}})}function Fr(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function gb({defaultSize:e,dragState:t,layout:n,panelData:o,panelIndex:r,precision:s=3}){const i=n[r];let a;return i==null?a=e!=null?e.toPrecision(s):"1":o.length===1?a="1":a=i.toPrecision(s),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}function hb(e,t=10){let n=null;return(...r)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}function nd(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function od(e){return`react-resizable-panels:${e}`}function rd(e){return e.map(t=>{const{constraints:n,id:o,idIsFromProps:r,order:s}=t;return r?o:s?`${s}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function sd(e,t){try{const n=od(e),o=t.getItem(n);if(o){const r=JSON.parse(o);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function mb(e,t,n){var o,r;const s=(o=sd(e,n))!==null&&o!==void 0?o:{},i=rd(t);return(r=s[i])!==null&&r!==void 0?r:null}function vb(e,t,n,o,r){var s;const i=od(e),a=rd(t),l=(s=sd(e,r))!==null&&s!==void 0?s:{};l[a]={expandToSizes:Object.fromEntries(n.entries()),layout:o};try{r.setItem(i,JSON.stringify(l))}catch(c){console.error(c)}}function id({layout:e,panelConstraints:t}){const n=[...e],o=n.reduce((s,i)=>s+i,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(s=>`${s}%`).join(", ")}`);if(!Je(o,100)&&n.length>0)for(let s=0;s<t.length;s++){const i=n[s];de(i!=null,`No layout data found for index ${s}`);const a=100/o*i;n[s]=a}let r=0;for(let s=0;s<t.length;s++){const i=n[s];de(i!=null,`No layout data found for index ${s}`);const a=Xn({panelConstraints:t,panelIndex:s,size:i});i!=a&&(r+=i-a,n[s]=a)}if(!Je(r,0))for(let s=0;s<t.length;s++){const i=n[s];de(i!=null,`No layout data found for index ${s}`);const a=i+r,l=Xn({panelConstraints:t,panelIndex:s,size:a});if(i!==l&&(r-=l-i,n[s]=l,Je(r,0)))break}return n}const xb=100,Vo={getItem:e=>(nd(Vo),Vo.getItem(e)),setItem:(e,t)=>{nd(Vo),Vo.setItem(e,t)}},ad={};function ld({autoSaveId:e=null,children:t,className:n="",direction:o,forwardedRef:r,id:s=null,onLayout:i=null,keyboardResizeBy:a=null,storage:l=Vo,style:c,tagName:u="div",...d}){const f=Pi(s),p=b.useRef(null),[v,m]=b.useState(null),[x,y]=b.useState([]),S=ib(),C=b.useRef({}),_=b.useRef(new Map),w=b.useRef(0),T=b.useRef({autoSaveId:e,direction:o,dragState:v,id:f,keyboardResizeBy:a,onLayout:i,storage:l}),E=b.useRef({layout:x,panelDataArray:[],panelDataArrayChanged:!1});b.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),b.useImperativeHandle(r,()=>({getId:()=>T.current.id,getLayout:()=>{const{layout:I}=E.current;return I},setLayout:I=>{const{onLayout:k}=T.current,{layout:M,panelDataArray:L}=E.current,N=id({layout:I,panelConstraints:L.map($=>$.constraints)});ed(M,N)||(y(N),E.current.layout=N,k&&k(N),Yn(L,N,C.current))}}),[]),Cn(()=>{T.current.autoSaveId=e,T.current.direction=o,T.current.dragState=v,T.current.id=f,T.current.onLayout=i,T.current.storage=l}),ub({committedValuesRef:T,eagerValuesRef:E,groupId:f,layout:x,panelDataArray:E.current.panelDataArray,setLayout:y,panelGroupElement:p.current}),b.useEffect(()=>{const{panelDataArray:I}=E.current;if(e){if(x.length===0||x.length!==I.length)return;let k=ad[e];k==null&&(k=hb(vb,xb),ad[e]=k);const M=[...I],L=new Map(_.current);k(e,M,L,x,l)}},[e,x,l]),b.useEffect(()=>{});const P=b.useCallback(I=>{const{onLayout:k}=T.current,{layout:M,panelDataArray:L}=E.current;if(I.constraints.collapsible){const N=L.map(te=>te.constraints),{collapsedSize:$=0,panelSize:G,pivotIndices:W}=_n(L,I,M);if(de(G!=null,`Panel size not found for panel "${I.id}"`),!Rt(G,$)){_.current.set(I.id,G);const H=Zn(L,I)===L.length-1?G-$:$-G,Q=Fo({delta:H,initialLayout:M,panelConstraints:N,pivotIndices:W,prevLayout:M,trigger:"imperative-api"});Fr(M,Q)||(y(Q),E.current.layout=Q,k&&k(Q),Yn(L,Q,C.current))}}},[]),A=b.useCallback((I,k)=>{const{onLayout:M}=T.current,{layout:L,panelDataArray:N}=E.current;if(I.constraints.collapsible){const $=N.map(J=>J.constraints),{collapsedSize:G=0,panelSize:W=0,minSize:te=0,pivotIndices:H}=_n(N,I,L),Q=k??te;if(Rt(W,G)){const J=_.current.get(I.id),se=J!=null&&J>=Q?J:Q,be=Zn(N,I)===N.length-1?W-se:se-W,xe=Fo({delta:be,initialLayout:L,panelConstraints:$,pivotIndices:H,prevLayout:L,trigger:"imperative-api"});Fr(L,xe)||(y(xe),E.current.layout=xe,M&&M(xe),Yn(N,xe,C.current))}}},[]),R=b.useCallback(I=>{const{layout:k,panelDataArray:M}=E.current,{panelSize:L}=_n(M,I,k);return de(L!=null,`Panel size not found for panel "${I.id}"`),L},[]),B=b.useCallback((I,k)=>{const{panelDataArray:M}=E.current,L=Zn(M,I);return gb({defaultSize:k,dragState:v,layout:x,panelData:M,panelIndex:L})},[v,x]),V=b.useCallback(I=>{const{layout:k,panelDataArray:M}=E.current,{collapsedSize:L=0,collapsible:N,panelSize:$}=_n(M,I,k);return de($!=null,`Panel size not found for panel "${I.id}"`),N===!0&&Rt($,L)},[]),K=b.useCallback(I=>{const{layout:k,panelDataArray:M}=E.current,{collapsedSize:L=0,collapsible:N,panelSize:$}=_n(M,I,k);return de($!=null,`Panel size not found for panel "${I.id}"`),!N||Sn($,L)>0},[]),U=b.useCallback(I=>{const{panelDataArray:k}=E.current;k.push(I),k.sort((M,L)=>{const N=M.order,$=L.order;return N==null&&$==null?0:N==null?-1:$==null?1:N-$}),E.current.panelDataArrayChanged=!0,S()},[S]);Cn(()=>{if(E.current.panelDataArrayChanged){E.current.panelDataArrayChanged=!1;const{autoSaveId:I,onLayout:k,storage:M}=T.current,{layout:L,panelDataArray:N}=E.current;let $=null;if(I){const W=mb(I,N,M);W&&(_.current=new Map(Object.entries(W.expandToSizes)),$=W.layout)}$==null&&($=pb({panelDataArray:N}));const G=id({layout:$,panelConstraints:N.map(W=>W.constraints)});ed(L,G)||(y(G),E.current.layout=G,k&&k(G),Yn(N,G,C.current))}}),Cn(()=>{const I=E.current;return()=>{I.layout=[]}},[]);const Z=b.useCallback(I=>{let k=!1;const M=p.current;return M&&window.getComputedStyle(M,null).getPropertyValue("direction")==="rtl"&&(k=!0),function(N){N.preventDefault();const $=p.current;if(!$)return()=>null;const{direction:G,dragState:W,id:te,keyboardResizeBy:H,onLayout:Q}=T.current,{layout:J,panelDataArray:se}=E.current,{initialLayout:re}=W??{},be=Ju(te,I,$);let xe=fb(N,I,G,W,H,$);const Nt=G==="horizontal";Nt&&k&&(xe=-xe);const Xe=se.map(ri=>ri.constraints),Ye=Fo({delta:xe,initialLayout:re??J,panelConstraints:Xe,pivotIndices:be,prevLayout:J,trigger:zu(N)?"keyboard":"mouse-or-touch"}),Me=!Fr(J,Ye);(Vu(N)||Hu(N))&&w.current!=xe&&(w.current=xe,!Me&&xe!==0?Nt?ki(I,xe<0?Wu:qu):ki(I,xe<0?Ku:Xu):ki(I,0)),Me&&(y(Ye),E.current.layout=Ye,Q&&Q(Ye),Yn(se,Ye,C.current))}},[]),X=b.useCallback((I,k)=>{const{onLayout:M}=T.current,{layout:L,panelDataArray:N}=E.current,$=N.map(J=>J.constraints),{panelSize:G,pivotIndices:W}=_n(N,I,L);de(G!=null,`Panel size not found for panel "${I.id}"`);const H=Zn(N,I)===N.length-1?G-k:k-G,Q=Fo({delta:H,initialLayout:L,panelConstraints:$,pivotIndices:W,prevLayout:L,trigger:"imperative-api"});Fr(L,Q)||(y(Q),E.current.layout=Q,M&&M(Q),Yn(N,Q,C.current))},[]),q=b.useCallback((I,k)=>{const{layout:M,panelDataArray:L}=E.current,{collapsedSize:N=0,collapsible:$}=k,{collapsedSize:G=0,collapsible:W,maxSize:te=100,minSize:H=0}=I.constraints,{panelSize:Q}=_n(L,I,M);Q!=null&&($&&W&&Rt(Q,N)?Rt(N,G)||X(I,G):Q<H?X(I,H):Q>te&&X(I,te))},[X]),z=b.useCallback((I,k)=>{const{direction:M}=T.current,{layout:L}=E.current;if(!p.current)return;const N=Lr(I,p.current);de(N,`Drag handle element not found for id "${I}"`);const $=td(M,k);m({dragHandleId:I,dragHandleRect:N.getBoundingClientRect(),initialCursorPosition:$,initialLayout:L})},[]),ee=b.useCallback(()=>{m(null)},[]),F=b.useCallback(I=>{const{panelDataArray:k}=E.current,M=Zn(k,I);M>=0&&(k.splice(M,1),delete C.current[I.id],E.current.panelDataArrayChanged=!0,S())},[S]),Y=b.useMemo(()=>({collapsePanel:P,direction:o,dragState:v,expandPanel:A,getPanelSize:R,getPanelStyle:B,groupId:f,isPanelCollapsed:V,isPanelExpanded:K,reevaluatePanelConstraints:q,registerPanel:U,registerResizeHandle:Z,resizePanel:X,startDragging:z,stopDragging:ee,unregisterPanel:F,panelGroupElement:p.current}),[P,v,o,A,R,B,f,V,K,q,U,Z,X,z,ee,F]),O={display:"flex",flexDirection:o==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return b.createElement(Dr.Provider,{value:Y},b.createElement(u,{...d,children:t,className:n,id:s,ref:p,style:{...O,...c},[Ce.group]:"",[Ce.groupDirection]:o,[Ce.groupId]:f}))}const cd=b.forwardRef((e,t)=>b.createElement(ld,{...e,forwardedRef:t}));ld.displayName="PanelGroup",cd.displayName="forwardRef(PanelGroup)";function Zn(e,t){return e.findIndex(n=>n===t||n.id===t.id)}function _n(e,t,n){const o=Zn(e,t),s=o===e.length-1?[o-1,o]:[o,o+1],i=n[o];return{...t.constraints,panelSize:i,pivotIndices:s}}function bb({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:o}){b.useEffect(()=>{if(e||n==null||o==null)return;const r=Lr(t,o);if(r==null)return;const s=i=>{if(!i.defaultPrevented)switch(i.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{i.preventDefault(),n(i);break}case"F6":{i.preventDefault();const a=r.getAttribute(Ce.groupId);de(a,`No group element found for id "${a}"`);const l=zo(a,o),c=Zu(a,t,o);de(c!==null,`No resize element found for id "${t}"`);const u=i.shiftKey?c>0?c-1:l.length-1:c+1<l.length?c+1:0;l[u].focus();break}}};return r.addEventListener("keydown",s),()=>{r.removeEventListener("keydown",s)}},[o,e,t,n])}function ud({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:o,id:r,onBlur:s,onClick:i,onDragging:a,onFocus:l,onPointerDown:c,onPointerUp:u,style:d={},tabIndex:f=0,tagName:p="div",...v}){var m,x;const y=b.useRef(null),S=b.useRef({onClick:i,onDragging:a,onPointerDown:c,onPointerUp:u});b.useEffect(()=>{S.current.onClick=i,S.current.onDragging=a,S.current.onPointerDown=c,S.current.onPointerUp=u});const C=b.useContext(Dr);if(C===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:_,groupId:w,registerResizeHandle:T,startDragging:E,stopDragging:P,panelGroupElement:A}=C,R=Pi(r),[B,V]=b.useState("inactive"),[K,U]=b.useState(!1),[Z,X]=b.useState(null),q=b.useRef({state:B});Cn(()=>{q.current.state=B}),b.useEffect(()=>{if(n)X(null);else{const Y=T(R);X(()=>Y)}},[n,R,T]);const z=(m=o==null?void 0:o.coarse)!==null&&m!==void 0?m:15,ee=(x=o==null?void 0:o.fine)!==null&&x!==void 0?x:5;b.useEffect(()=>{if(n||Z==null)return;const Y=y.current;de(Y,"Element ref not attached");let O=!1;return rb(R,Y,_,{coarse:z,fine:ee},(k,M,L)=>{if(!M){V("inactive");return}switch(k){case"down":{V("drag"),O=!1,de(L,'Expected event to be defined for "down" action'),E(R,L);const{onDragging:N,onPointerDown:$}=S.current;N==null||N(!0),$==null||$();break}case"move":{const{state:N}=q.current;O=!0,N!=="drag"&&V("hover"),de(L,'Expected event to be defined for "move" action'),Z(L);break}case"up":{V("hover"),P();const{onClick:N,onDragging:$,onPointerUp:G}=S.current;$==null||$(!1),G==null||G(),O||N==null||N();break}}})},[z,_,n,ee,T,R,Z,E,P]),bb({disabled:n,handleId:R,resizeHandler:Z,panelGroupElement:A});const F={touchAction:"none",userSelect:"none"};return b.createElement(p,{...v,children:e,className:t,id:r,onBlur:()=>{U(!1),s==null||s()},onFocus:()=>{U(!0),l==null||l()},ref:y,role:"separator",style:{...F,...d},tabIndex:f,[Ce.groupDirection]:_,[Ce.groupId]:w,[Ce.resizeHandle]:"",[Ce.resizeHandleActive]:B==="drag"?"pointer":K?"keyboard":void 0,[Ce.resizeHandleEnabled]:!n,[Ce.resizeHandleId]:R,[Ce.resizeHandleState]:B})}ud.displayName="PanelResizeHandle";const yb={oxResizable:"_oxResizable_v00cx_2"},dd=b.forwardRef(({className:e,direction:t="horizontal",keyboardResizeBy:n=10,dataTestid:o,...r},s)=>h.jsx(cd,{ref:s,direction:t,keyboardResizeBy:n,"data-slot":"resizable","data-testid":o,"data-orientation":t,className:j(yb.oxResizable,e),...r}));dd.displayName="OxResizable";const Cb={oxResizablePanel:"_oxResizablePanel_1xocv_2"},fd=b.forwardRef(({className:e,collapsible:t=!1,dataTestid:n,...o},r)=>h.jsx(Fu,{ref:r,collapsible:t,"data-slot":"resizable-panel","data-testid":n,className:j(Cb.oxResizablePanel,e),...o}));fd.displayName="OxResizablePanel";/**
19
+ */var Ti,wu;function U0(){if(wu)return Ti;wu=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function r(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var i={},a=0;a<10;a++)i["_"+String.fromCharCode(a)]=a;var l=Object.getOwnPropertyNames(i).map(function(u){return i[u]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ti=r()?Object.assign:function(s,i){for(var a,l=o(s),c,u=1;u<arguments.length;u++){a=Object(arguments[u]);for(var d in a)t.call(a,d)&&(l[d]=a[d]);if(e){c=e(a);for(var f=0;f<c.length;f++)n.call(a,c[f])&&(l[c[f]]=a[c[f]])}}return l},Ti}var Ei,_u;function Pi(){if(_u)return Ei;_u=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ei=e,Ei}var Ii,Tu;function Eu(){return Tu||(Tu=1,Ii=Function.call.bind(Object.prototype.hasOwnProperty)),Ii}var Ai,Pu;function q0(){if(Pu)return Ai;Pu=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Pi(),n={},o=Eu();e=function(s){var i="Warning: "+s;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function r(s,i,a,l,c){if(process.env.NODE_ENV!=="production"){for(var u in s)if(o(s,u)){var d;try{if(typeof s[u]!="function"){var f=Error((l||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=s[u](i,u,l,a,null,t)}catch(m){d=m}if(d&&!(d instanceof Error)&&e((l||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=c?c():"";e("Failed "+a+" type: "+d.message+(p??""))}}}}return r.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ai=r,Ai}var Oi,Iu;function K0(){if(Iu)return Oi;Iu=1;var e=Su(),t=U0(),n=Pi(),o=Eu(),r=q0(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function i(){return null}return Oi=function(a,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(F){var K=F&&(c&&F[c]||F[u]);if(typeof K=="function")return K}var f="<<anonymous>>",p={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:S(),arrayOf:C,element:_(),elementType:w(),instanceOf:T,node:N(),objectOf:P,oneOf:E,oneOfType:I,shape:L,exact:X};function m(F,K){return F===K?F!==0||1/F===1/K:F!==F&&K!==K}function g(F,K){this.message=F,this.data=K&&typeof K=="object"?K:{},this.stack=""}g.prototype=Error.prototype;function x(F){if(process.env.NODE_ENV!=="production")var K={},D=0;function A($,V,M,R,j,U,ee){if(R=R||f,U=U||M,ee!==n){if(l){var B=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw B.name="Invariant Violation",B}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Z=R+":"+M;!K[Z]&&D<3&&(s("You are manually calling a React.PropTypes validation function for the `"+U+"` prop on `"+R+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),K[Z]=!0,D++)}}return V[M]==null?$?V[M]===null?new g("The "+j+" `"+U+"` is marked as required "+("in `"+R+"`, but its value is `null`.")):new g("The "+j+" `"+U+"` is marked as required in "+("`"+R+"`, but its value is `undefined`.")):null:F(V,M,R,j,U)}var k=A.bind(null,!1);return k.isRequired=A.bind(null,!0),k}function b(F){function K(D,A,k,$,V,M){var R=D[A],j=Y(R);if(j!==F){var U=q(R);return new g("Invalid "+$+" `"+V+"` of type "+("`"+U+"` supplied to `"+k+"`, expected ")+("`"+F+"`."),{expectedType:F})}return null}return x(K)}function S(){return x(i)}function C(F){function K(D,A,k,$,V){if(typeof F!="function")return new g("Property `"+V+"` of component `"+k+"` has invalid PropType notation inside arrayOf.");var M=D[A];if(!Array.isArray(M)){var R=Y(M);return new g("Invalid "+$+" `"+V+"` of type "+("`"+R+"` supplied to `"+k+"`, expected an array."))}for(var j=0;j<M.length;j++){var U=F(M,j,k,$,V+"["+j+"]",n);if(U instanceof Error)return U}return null}return x(K)}function _(){function F(K,D,A,k,$){var V=K[D];if(!a(V)){var M=Y(V);return new g("Invalid "+k+" `"+$+"` of type "+("`"+M+"` supplied to `"+A+"`, expected a single ReactElement."))}return null}return x(F)}function w(){function F(K,D,A,k,$){var V=K[D];if(!e.isValidElementType(V)){var M=Y(V);return new g("Invalid "+k+" `"+$+"` of type "+("`"+M+"` supplied to `"+A+"`, expected a single ReactElement type."))}return null}return x(F)}function T(F){function K(D,A,k,$,V){if(!(D[A]instanceof F)){var M=F.name||f,R=Q(D[A]);return new g("Invalid "+$+" `"+V+"` of type "+("`"+R+"` supplied to `"+k+"`, expected ")+("instance of `"+M+"`."))}return null}return x(K)}function E(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),i;function K(D,A,k,$,V){for(var M=D[A],R=0;R<F.length;R++)if(m(M,F[R]))return null;var j=JSON.stringify(F,function(ee,B){var Z=q(B);return Z==="symbol"?String(B):B});return new g("Invalid "+$+" `"+V+"` of value `"+String(M)+"` "+("supplied to `"+k+"`, expected one of "+j+"."))}return x(K)}function P(F){function K(D,A,k,$,V){if(typeof F!="function")return new g("Property `"+V+"` of component `"+k+"` has invalid PropType notation inside objectOf.");var M=D[A],R=Y(M);if(R!=="object")return new g("Invalid "+$+" `"+V+"` of type "+("`"+R+"` supplied to `"+k+"`, expected an object."));for(var j in M)if(o(M,j)){var U=F(M,j,k,$,V+"."+j,n);if(U instanceof Error)return U}return null}return x(K)}function I(F){if(!Array.isArray(F))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var K=0;K<F.length;K++){var D=F[K];if(typeof D!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+z(D)+" at index "+K+"."),i}function A(k,$,V,M,R){for(var j=[],U=0;U<F.length;U++){var ee=F[U],B=ee(k,$,V,M,R,n);if(B==null)return null;B.data&&o(B.data,"expectedType")&&j.push(B.data.expectedType)}var Z=j.length>0?", expected one of type ["+j.join(", ")+"]":"";return new g("Invalid "+M+" `"+R+"` supplied to "+("`"+V+"`"+Z+"."))}return x(A)}function N(){function F(K,D,A,k,$){return W(K[D])?null:new g("Invalid "+k+" `"+$+"` supplied to "+("`"+A+"`, expected a ReactNode."))}return x(F)}function H(F,K,D,A,k){return new g((F||"React class")+": "+K+" type `"+D+"."+A+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+k+"`.")}function L(F){function K(D,A,k,$,V){var M=D[A],R=Y(M);if(R!=="object")return new g("Invalid "+$+" `"+V+"` of type `"+R+"` "+("supplied to `"+k+"`, expected `object`."));for(var j in F){var U=F[j];if(typeof U!="function")return H(k,$,V,j,q(U));var ee=U(M,j,k,$,V+"."+j,n);if(ee)return ee}return null}return x(K)}function X(F){function K(D,A,k,$,V){var M=D[A],R=Y(M);if(R!=="object")return new g("Invalid "+$+" `"+V+"` of type `"+R+"` "+("supplied to `"+k+"`, expected `object`."));var j=t({},D[A],F);for(var U in j){var ee=F[U];if(o(F,U)&&typeof ee!="function")return H(k,$,V,U,q(ee));if(!ee)return new g("Invalid "+$+" `"+V+"` key `"+U+"` supplied to `"+k+"`.\nBad object: "+JSON.stringify(D[A],null," ")+`
20
+ Valid keys: `+JSON.stringify(Object.keys(F),null," "));var B=ee(M,U,k,$,V+"."+U,n);if(B)return B}return null}return x(K)}function W(F){switch(typeof F){case"number":case"string":case"undefined":return!0;case"boolean":return!F;case"object":if(Array.isArray(F))return F.every(W);if(F===null||a(F))return!0;var K=d(F);if(K){var D=K.call(F),A;if(K!==F.entries){for(;!(A=D.next()).done;)if(!W(A.value))return!1}else for(;!(A=D.next()).done;){var k=A.value;if(k&&!W(k[1]))return!1}}else return!1;return!0;default:return!1}}function J(F,K){return F==="symbol"?!0:K?K["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&K instanceof Symbol:!1}function Y(F){var K=typeof F;return Array.isArray(F)?"array":F instanceof RegExp?"object":J(K,F)?"symbol":K}function q(F){if(typeof F>"u"||F===null)return""+F;var K=Y(F);if(K==="object"){if(F instanceof Date)return"date";if(F instanceof RegExp)return"regexp"}return K}function z(F){var K=q(F);switch(K){case"array":case"object":return"an "+K;case"boolean":case"date":case"regexp":return"a "+K;default:return K}}function Q(F){return!F.constructor||!F.constructor.name?f:F.constructor.name}return p.checkPropTypes=r,p.resetWarningCache=r.resetWarningCache,p.PropTypes=p,p},Oi}var Di,Au;function X0(){if(Au)return Di;Au=1;var e=Pi();function t(){}function n(){}return n.resetWarningCache=t,Di=function(){function o(i,a,l,c,u,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}o.isRequired=o;function r(){return o}var s={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Di}var Ou;function Y0(){if(Ou)return Nr.exports;if(Ou=1,process.env.NODE_ENV!=="production"){var e=Su(),t=!0;Nr.exports=K0()(e.isElement,t)}else Nr.exports=X0()();return Nr.exports}var J0=Y0();const se=G0(J0);function Z0(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Q0(e,t){e.classList?e.classList.add(t):Z0(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Du(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function eb(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Du(e.className,t):e.setAttribute("class",Du(e.className&&e.className.baseVal||"",t))}const Nu={disabled:!1};var tb=process.env.NODE_ENV!=="production"?se.oneOfType([se.number,se.shape({enter:se.number,exit:se.number,appear:se.number}).isRequired]):null,nb=process.env.NODE_ENV!=="production"?se.oneOfType([se.string,se.shape({enter:se.string,exit:se.string,active:se.string}),se.shape({enter:se.string,enterDone:se.string,enterActive:se.string,exit:se.string,exitDone:se.string,exitActive:se.string})]):null;const Mr=y.createContext(null);var ku=function(t){return t.scrollTop},zo="unmounted",yn="exited",Cn="entering",qn="entered",Ni="exiting",_t=(function(e){_i(t,e);function t(o,r){var s;s=e.call(this,o,r)||this;var i=r,a=i&&!i.isMounting?o.enter:o.appear,l;return s.appearStatus=null,o.in?a?(l=yn,s.appearStatus=Cn):l=qn:o.unmountOnExit||o.mountOnEnter?l=zo:l=yn,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(r,s){var i=r.in;return i&&s.status===zo?{status:yn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var s=null;if(r!==this.props){var i=this.state.status;this.props.in?i!==Cn&&i!==qn&&(s=Cn):(i===Cn||i===qn)&&(s=Ni)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,s,i,a;return s=i=a=r,r!=null&&typeof r!="number"&&(s=r.exit,i=r.enter,a=r.appear!==void 0?r.appear:i),{exit:s,enter:i,appear:a}},n.updateStatus=function(r,s){if(r===void 0&&(r=!1),s!==null)if(this.cancelNextCallback(),s===Cn){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Ye.findDOMNode(this);i&&ku(i)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===yn&&this.setState({status:zo})},n.performEnter=function(r){var s=this,i=this.props.enter,a=this.context?this.context.isMounting:r,l=this.props.nodeRef?[a]:[Ye.findDOMNode(this),a],c=l[0],u=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!r&&!i||Nu.disabled){this.safeSetState({status:qn},function(){s.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Cn},function(){s.props.onEntering(c,u),s.onTransitionEnd(f,function(){s.safeSetState({status:qn},function(){s.props.onEntered(c,u)})})})},n.performExit=function(){var r=this,s=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:Ye.findDOMNode(this);if(!s||Nu.disabled){this.safeSetState({status:yn},function(){r.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Ni},function(){r.props.onExiting(a),r.onTransitionEnd(i.exit,function(){r.safeSetState({status:yn},function(){r.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,s){s=this.setNextCallback(s),this.setState(r,s)},n.setNextCallback=function(r){var s=this,i=!0;return this.nextCallback=function(a){i&&(i=!1,s.nextCallback=null,r(a))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(r,s){this.setNextCallback(s);var i=this.props.nodeRef?this.props.nodeRef.current:Ye.findDOMNode(this),a=r==null&&!this.props.addEndListener;if(!i||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===zo)return null;var s=this.props,i=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var a=Si(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return y.createElement(Mr.Provider,{value:null},typeof i=="function"?i(r,a):y.cloneElement(y.Children.only(i),a))},t})(y.Component);_t.contextType=Mr,_t.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:se.shape({current:typeof Element>"u"?se.any:function(e,t,n,o,r,s){var i=e[t];return se.instanceOf(i&&"ownerDocument"in i?i.ownerDocument.defaultView.Element:Element)(e,t,n,o,r,s)}}),children:se.oneOfType([se.func.isRequired,se.element.isRequired]).isRequired,in:se.bool,mountOnEnter:se.bool,unmountOnExit:se.bool,appear:se.bool,enter:se.bool,exit:se.bool,timeout:function(t){var n=tb;t.addEndListener||(n=n.isRequired);for(var o=arguments.length,r=new Array(o>1?o-1:0),s=1;s<o;s++)r[s-1]=arguments[s];return n.apply(void 0,[t].concat(r))},addEndListener:se.func,onEnter:se.func,onEntering:se.func,onEntered:se.func,onExit:se.func,onExiting:se.func,onExited:se.func}:{};function Kn(){}_t.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Kn,onEntering:Kn,onEntered:Kn,onExit:Kn,onExiting:Kn,onExited:Kn},_t.UNMOUNTED=zo,_t.EXITED=yn,_t.ENTERING=Cn,_t.ENTERED=qn,_t.EXITING=Ni;var ob=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return Q0(t,o)})},ki=function(t,n){return t&&n&&n.split(" ").forEach(function(o){return eb(t,o)})},$r=(function(e){_i(t,e);function t(){for(var o,r=arguments.length,s=new Array(r),i=0;i<r;i++)s[i]=arguments[i];return o=e.call.apply(e,[this].concat(s))||this,o.appliedClasses={appear:{},enter:{},exit:{}},o.onEnter=function(a,l){var c=o.resolveArguments(a,l),u=c[0],d=c[1];o.removeClasses(u,"exit"),o.addClass(u,d?"appear":"enter","base"),o.props.onEnter&&o.props.onEnter(a,l)},o.onEntering=function(a,l){var c=o.resolveArguments(a,l),u=c[0],d=c[1],f=d?"appear":"enter";o.addClass(u,f,"active"),o.props.onEntering&&o.props.onEntering(a,l)},o.onEntered=function(a,l){var c=o.resolveArguments(a,l),u=c[0],d=c[1],f=d?"appear":"enter";o.removeClasses(u,f),o.addClass(u,f,"done"),o.props.onEntered&&o.props.onEntered(a,l)},o.onExit=function(a){var l=o.resolveArguments(a),c=l[0];o.removeClasses(c,"appear"),o.removeClasses(c,"enter"),o.addClass(c,"exit","base"),o.props.onExit&&o.props.onExit(a)},o.onExiting=function(a){var l=o.resolveArguments(a),c=l[0];o.addClass(c,"exit","active"),o.props.onExiting&&o.props.onExiting(a)},o.onExited=function(a){var l=o.resolveArguments(a),c=l[0];o.removeClasses(c,"exit"),o.addClass(c,"exit","done"),o.props.onExited&&o.props.onExited(a)},o.resolveArguments=function(a,l){return o.props.nodeRef?[o.props.nodeRef.current,a]:[a,l]},o.getClassNames=function(a){var l=o.props.classNames,c=typeof l=="string",u=c&&l?l+"-":"",d=c?""+u+a:l[a],f=c?d+"-active":l[a+"Active"],p=c?d+"-done":l[a+"Done"];return{baseClassName:d,activeClassName:f,doneClassName:p}},o}var n=t.prototype;return n.addClass=function(r,s,i){var a=this.getClassNames(s)[i+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;s==="appear"&&i==="done"&&c&&(a+=" "+c),i==="active"&&r&&ku(r),a&&(this.appliedClasses[s][i]=a,ob(r,a))},n.removeClasses=function(r,s){var i=this.appliedClasses[s],a=i.base,l=i.active,c=i.done;this.appliedClasses[s]={},a&&ki(r,a),l&&ki(r,l),c&&ki(r,c)},n.render=function(){var r=this.props;r.classNames;var s=Si(r,["classNames"]);return y.createElement(_t,Fo({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(y.Component);$r.defaultProps={classNames:""},$r.propTypes=process.env.NODE_ENV!=="production"?Fo({},_t.propTypes,{classNames:nb,onEnter:se.func,onEntering:se.func,onEntered:se.func,onExit:se.func,onExiting:se.func,onExited:se.func}):{};function rb(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mi(e,t){var n=function(s){return t&&y.isValidElement(s)?t(s):s},o=Object.create(null);return e&&y.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function sb(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var o=Object.create(null),r=[];for(var s in e)s in t?r.length&&(o[s]=r,r=[]):r.push(s);var i,a={};for(var l in t){if(o[l])for(i=0;i<o[l].length;i++){var c=o[l][i];a[o[l][i]]=n(c)}a[l]=n(l)}for(i=0;i<r.length;i++)a[r[i]]=n(r[i]);return a}function Sn(e,t,n){return n[t]!=null?n[t]:e.props[t]}function ib(e,t){return Mi(e.children,function(n){return y.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Sn(n,"appear",e),enter:Sn(n,"enter",e),exit:Sn(n,"exit",e)})})}function ab(e,t,n){var o=Mi(e.children),r=sb(t,o);return Object.keys(r).forEach(function(s){var i=r[s];if(y.isValidElement(i)){var a=s in t,l=s in o,c=t[s],u=y.isValidElement(c)&&!c.props.in;l&&(!a||u)?r[s]=y.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:Sn(i,"exit",e),enter:Sn(i,"enter",e)}):!l&&a&&!u?r[s]=y.cloneElement(i,{in:!1}):l&&a&&y.isValidElement(c)&&(r[s]=y.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:Sn(i,"exit",e),enter:Sn(i,"enter",e)}))}}),r}var lb=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},cb={component:"div",childFactory:function(t){return t}},$i=(function(e){_i(t,e);function t(o,r){var s;s=e.call(this,o,r)||this;var i=s.handleExited.bind(rb(s));return s.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,s){var i=s.children,a=s.handleExited,l=s.firstRender;return{children:l?ib(r,a):ab(r,i,a),firstRender:!1}},n.handleExited=function(r,s){var i=Mi(this.props.children);r.key in i||(r.props.onExited&&r.props.onExited(s),this.mounted&&this.setState(function(a){var l=Fo({},a.children);return delete l[r.key],{children:l}}))},n.render=function(){var r=this.props,s=r.component,i=r.childFactory,a=Si(r,["component","childFactory"]),l=this.state.contextValue,c=lb(this.state.children).map(i);return delete a.appear,delete a.enter,delete a.exit,s===null?y.createElement(Mr.Provider,{value:l},c):y.createElement(Mr.Provider,{value:l},y.createElement(s,a,c))},t})(y.Component);$i.propTypes=process.env.NODE_ENV!=="production"?{component:se.any,children:se.node,appear:se.bool,enter:se.bool,exit:se.bool,childFactory:se.func}:{},$i.defaultProps=cb;function Xn({in:e=!1,appear:t=!1,unmountOnExit:n=!0,mountOnEnter:o=!0,classNames:r,timeout:s,styleVars:i,children:a}){const l=y.useRef(null),c=y.Children.only(a),u=y.cloneElement(c,{ref:l,style:{...c.props.style??{},...i}});return h.jsx($r,{nodeRef:l,in:e,appear:t,timeout:s,classNames:r,mountOnEnter:o,unmountOnExit:n,children:u})}function Mu({enterDuration:e=500,leaveDuration:t=300,...n}){return h.jsx(Xn,{classNames:"ox-bounce",timeout:{enter:e,exit:t,appear:e},styleVars:{"--bounce-enter-duration":`${e}ms`,"--bounce-leave-duration":`${t}ms`},...n})}Mu.displayName="OxTransitionBounce";function $u({enterDuration:e=300,leaveDuration:t=300,distance:n="100%",direction:o="right",leaveDirection:r="left",...s}){return h.jsx(Xn,{classNames:"ox-slide-x",timeout:{enter:e,exit:t,appear:e},styleVars:{"--slide-x-enter-duration":`${e}ms`,"--slide-x-leave-duration":`${t}ms`,"--slide-x-distance":n,"--slide-x-enter-direction":o==="right"?"1":"-1","--slide-x-leave-direction":r==="right"?"1":"-1"},...s})}$u.displayName="OxTransitionSlideX";function Ru({enterDuration:e=300,leaveDuration:t=300,...n}){return h.jsx(Xn,{classNames:"ox-fade",timeout:{enter:e,exit:t,appear:e},styleVars:{"--fade-enter-duration":`${e}ms`,"--fade-leave-duration":`${t}ms`},...n})}Ru.displayName="OxTransitionFade";function Lu({enterDuration:e=300,leaveDuration:t=300,distance:n="100%",direction:o="top",leaveDirection:r="bottom",...s}){return h.jsx(Xn,{classNames:"ox-slide-y",timeout:{enter:e,exit:t,appear:e},styleVars:{"--slide-y-enter-duration":`${e}ms`,"--slide-y-leave-duration":`${t}ms`,"--slide-y-distance":n,"--slide-y-enter-direction":o==="bottom"?"1":"-1","--slide-y-leave-direction":r==="bottom"?"1":"-1"},...s})}Lu.displayName="OxTransitionSlideY";function Fu({enterDuration:e=300,leaveDuration:t=300,...n}){return h.jsx(Xn,{classNames:"ox-expand",timeout:{enter:e,exit:t,appear:e},styleVars:{"--expand-enter-duration":`${e}ms`,"--expand-leave-duration":`${t}ms`},...n})}Fu.displayName="OxTransitionExpand";function zu({enterDuration:e=500,leaveDuration:t=500,axis:n="y",enterDegrees:o=90,...r}){const s=n==="x"?"rotateX":"rotateY";return h.jsx(Xn,{classNames:`ox-flip-${n}`,timeout:{enter:e,exit:t,appear:e},styleVars:{"--flip-enter-duration":`${e}ms`,"--flip-leave-duration":`${t}ms`,"--flip-enter-transform":`${s}(${o}deg)`,"--flip-leave-transform":`${s}(${-o}deg)`},...r})}zu.displayName="OxTransitionFlip";const Vu=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Bu=ru,je=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return Bu(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:s}=t,i=Object.keys(r).map(c=>{const u=n==null?void 0:n[c],d=s==null?void 0:s[c];if(u===null)return null;const f=Vu(u)||Vu(d);return r[c][f]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((c,u)=>{let{class:d,className:f,...p}=u;return Object.entries(p).every(m=>{let[g,x]=m;return Array.isArray(x)?x.includes({...s,...a}[g]):{...s,...a}[g]===x})?[...c,d,f]:c},[]);return Bu(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)};function Hu(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Yn(...e){return t=>{let n=!1;const o=e.map(r=>{const s=Hu(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():Hu(e[r],null)}}}}function Se(...e){return v.useCallback(Yn(...e),e)}function Jn(e){const t=v.forwardRef((n,o)=>{let{children:r,...s}=n,i=null,a=!1;const l=[];ju(r)&&typeof Lr=="function"&&(r=Lr(r._payload)),v.Children.forEach(r,f=>{var p;if(gb(f)){a=!0;const m=f;let g="child"in m.props?m.props.child:m.props.children;ju(g)&&typeof Lr=="function"&&(g=Lr(g._payload)),i=db(m,g),l.push((p=i==null?void 0:i.props)==null?void 0:p.children)}else l.push(f)}),i?i=v.cloneElement(i,void 0,l):!a&&v.Children.count(r)===1&&v.isValidElement(r)&&(i=r);const c=i?pb(i):void 0,u=Se(o,c);if(!i){if(r||r===0)throw new Error(a?xb(e):vb(e));return r}const d=fb(s,i.props??{});return i.type!==v.Fragment&&(d.ref=o?u:c),v.cloneElement(i,d)});return t.displayName=`${e}.Slot`,t}var Rr=Jn("Slot"),Gu=Symbol.for("radix.slottable");function ub(e){const t=n=>"child"in n?n.children(n.child):n.children;return t.displayName=`${e}.Slottable`,t.__radixId=Gu,t}var db=(e,t)=>{if("child"in e.props){const n=e.props.child;return v.isValidElement(n)?v.cloneElement(n,void 0,e.props.children(n.props.children)):null}return v.isValidElement(t)?t:null};function fb(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{const l=s(...a);return r(...a),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function pb(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function gb(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Gu}var hb=Symbol.for("react.lazy");function ju(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===hb&&"_payload"in e&&mb(e._payload)}function mb(e){return typeof e=="object"&&e!==null&&"then"in e}var vb=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,xb=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,Lr=v[" use ".trim().toString()];const We=(e,t)=>(t??"").split(/\s+/).filter(Boolean).map(n=>e[n]??n).join(" "),bb={"ox-button":"_ox-button_bmhet_2","ox-button--default":"_ox-button--default_bmhet_2","ox-button--destructive":"_ox-button--destructive_bmhet_2","ox-button--success":"_ox-button--success_bmhet_2","ox-button--outline":"_ox-button--outline_bmhet_2","ox-button--secondary":"_ox-button--secondary_bmhet_2","ox-button--ghost":"_ox-button--ghost_bmhet_2","ox-button--link":"_ox-button--link_bmhet_2","ox-button--xs":"_ox-button--xs_bmhet_2","ox-button--sm":"_ox-button--sm_bmhet_2","ox-button--md":"_ox-button--md_bmhet_2","ox-button--lg":"_ox-button--lg_bmhet_2","ox-button--icon":"_ox-button--icon_bmhet_2"},Wu=y.forwardRef(({className:e,variant:t="default",size:n="md",asChild:o=!1,...r},s)=>{const i=o?Rr:"button";return h.jsx(i,{ref:s,"data-slot":"button",className:G(We(bb,Uu({variant:t,size:n})),e),...r})});Wu.displayName="OxButton";const Uu=je("ox-button",{variants:{variant:{default:"ox-button--default",destructive:"ox-button--destructive",success:"ox-button--success",outline:"ox-button--outline",secondary:"ox-button--secondary",ghost:"ox-button--ghost",link:"ox-button--link"},size:{xs:"ox-button--xs",sm:"ox-button--sm",md:"ox-button--md",lg:"ox-button--lg",icon:"ox-button--icon"}},defaultVariants:{variant:"default",size:"md"}}),qu={oxCard:"_oxCard_1e3y8_2","ox-card--default":"_ox-card--default_1e3y8_2","ox-card--muted":"_ox-card--muted_1e3y8_2"},Ku=y.forwardRef(({className:e,asChild:t=!1,tone:n="default",flat:o=!1,dataTestid:r,...s},i)=>{const a=t?Rr:"div";return h.jsx(a,{ref:i,"data-slot":"card","data-testid":r,"data-flat":o,className:G(qu.oxCard,We(qu,Xu({tone:n})),e),...s})});Ku.displayName="OxCard";const Xu=je("",{variants:{tone:{default:"ox-card--default",muted:"ox-card--muted"}},defaultVariants:{tone:"default"}}),Tt={oxCardStack:"_oxCardStack_1ek2i_2",oxCardStackInner:"_oxCardStackInner_1ek2i_2",oxCardStackSlot:"_oxCardStackSlot_1ek2i_2",oxCardStackCard:"_oxCardStackCard_1ek2i_2",oxNextEnter:"_oxNextEnter_1ek2i_2",oxNextExitActive:"_oxNextExitActive_1ek2i_2",oxPrevEnter:"_oxPrevEnter_1ek2i_2",oxPrevExitActive:"_oxPrevExitActive_1ek2i_2",oxExit:"_oxExit_1ek2i_2"},Yu=y.forwardRef(({className:e,index:t=0,dataTestid:n,children:o,...r},s)=>{const i=y.Children.toArray(o).filter(y.isValidElement).map((f,p)=>({key:f.key??String(p),node:f})),a=wb(i,t),l=y.useRef(t),c=_b(l.current,t,i.length);l.current=t;const u=y.useRef(new Map),d=c==="next"?{enter:Tt.oxNextEnter,exit:Tt.oxExit,exitActive:Tt.oxNextExitActive}:{enter:Tt.oxPrevEnter,exit:Tt.oxExit,exitActive:Tt.oxPrevExitActive};return h.jsx("div",{ref:s,"data-slot":"card-stack","data-testid":n,className:G(Tt.oxCardStack,e),style:{"--ox-card-stack-behind":a.length-1},...r,children:h.jsx($i,{className:Tt.oxCardStackInner,children:a.map((f,p)=>{const m=String(f.key),g=x=>{u.current.set(m,x)};return h.jsx($r,{timeout:460,classNames:d,nodeRef:{get current(){return u.current.get(m)??null}},children:h.jsx("div",{ref:g,className:Tt.oxCardStackSlot,style:{zIndex:Ri-p},children:h.jsx("div",{className:Tt.oxCardStackCard,"data-slot":"card-stack-card","data-depth":p,"aria-hidden":p>0?"true":void 0,"data-testid":`${n}-card-${p}`,style:{transform:Sb(p)},children:f.node})})},m)})})})});Yu.displayName="OxCardStack";const Ri=3,yb=10,Cb=.055,Sb=e=>`translateY(${e*yb}px) scale(${1-e*Cb})`,wb=(e,t)=>{const n=e.length;if(n===0)return[];const o=Math.min(Ri,n),r=(Math.trunc(t)%n+n)%n;return Array.from({length:o},(s,i)=>e[(r+i)%n])},_b=(e,t,n)=>n<2?"next":(t-e+n)%n===n-1?"prev":"next",Tb={oxDivider:"_oxDivider_bamml_2"},Ju=y.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!1,asChild:o=!1,dataTestid:r,...s},i)=>{const a=o?Rr:"div";return h.jsx(a,{ref:i,"data-slot":"divider","data-testid":r,"data-orientation":t,role:n?"none":"separator","aria-orientation":n||t==="horizontal"?void 0:"vertical",className:G(Tb.oxDivider,e),...s})});Ju.displayName="OxDivider";const Fr=y.createContext(null);Fr.displayName="PanelGroupContext";const we={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},Li=10,wn=y.useLayoutEffect,Zu=v.useId,Eb=typeof Zu=="function"?Zu:()=>null;let Pb=0;function Fi(e=null){const t=Eb(),n=y.useRef(e||t||null);return n.current===null&&(n.current=""+Pb++),e??n.current}function Qu({children:e,className:t="",collapsedSize:n,collapsible:o,defaultSize:r,forwardedRef:s,id:i,maxSize:a,minSize:l,onCollapse:c,onExpand:u,onResize:d,order:f,style:p,tagName:m="div",...g}){const x=y.useContext(Fr);if(x===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:b,expandPanel:S,getPanelSize:C,getPanelStyle:_,groupId:w,isPanelCollapsed:T,reevaluatePanelConstraints:E,registerPanel:P,resizePanel:I,unregisterPanel:N}=x,H=Fi(i),L=y.useRef({callbacks:{onCollapse:c,onExpand:u,onResize:d},constraints:{collapsedSize:n,collapsible:o,defaultSize:r,maxSize:a,minSize:l},id:H,idIsFromProps:i!==void 0,order:f});y.useRef({didLogMissingDefaultSizeWarning:!1}),wn(()=>{const{callbacks:W,constraints:J}=L.current,Y={...J};L.current.id=H,L.current.idIsFromProps=i!==void 0,L.current.order=f,W.onCollapse=c,W.onExpand=u,W.onResize=d,J.collapsedSize=n,J.collapsible=o,J.defaultSize=r,J.maxSize=a,J.minSize=l,(Y.collapsedSize!==J.collapsedSize||Y.collapsible!==J.collapsible||Y.maxSize!==J.maxSize||Y.minSize!==J.minSize)&&E(L.current,Y)}),wn(()=>{const W=L.current;return P(W),()=>{N(W)}},[f,H,P,N]),y.useImperativeHandle(s,()=>({collapse:()=>{b(L.current)},expand:W=>{S(L.current,W)},getId(){return H},getSize(){return C(L.current)},isCollapsed(){return T(L.current)},isExpanded(){return!T(L.current)},resize:W=>{I(L.current,W)}}),[b,S,C,T,H,I]);const X=_(L.current,r);return y.createElement(m,{...g,children:e,className:t,id:H,style:{...X,...p},[we.groupId]:w,[we.panel]:"",[we.panelCollapsible]:o||void 0,[we.panelId]:H,[we.panelSize]:parseFloat(""+X.flexGrow).toFixed(1)})}const ed=y.forwardRef((e,t)=>y.createElement(Qu,{...e,forwardedRef:t}));Qu.displayName="Panel",ed.displayName="forwardRef(Panel)";let zi=null,zr=-1,en=null;function Ib(e,t){if(t){const n=(t&ld)!==0,o=(t&cd)!==0,r=(t&ud)!==0,s=(t&dd)!==0;if(n)return r?"se-resize":s?"ne-resize":"e-resize";if(o)return r?"sw-resize":s?"nw-resize":"w-resize";if(r)return"s-resize";if(s)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Ab(){en!==null&&(document.head.removeChild(en),zi=null,en=null,zr=-1)}function Vi(e,t){var n,o;const r=Ib(e,t);if(zi!==r){if(zi=r,en===null&&(en=document.createElement("style"),document.head.appendChild(en)),zr>=0){var s;(s=en.sheet)===null||s===void 0||s.removeRule(zr)}zr=(n=(o=en.sheet)===null||o===void 0?void 0:o.insertRule(`*{cursor: ${r} !important;}`))!==null&&n!==void 0?n:-1}}function td(e){return e.type==="keydown"}function nd(e){return e.type.startsWith("pointer")}function od(e){return e.type.startsWith("mouse")}function Vr(e){if(nd(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(od(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function Ob(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Db(e,t,n){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function Nb(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:id(e),b:id(t)};let o;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),o=e;fe(o,"Stacking order can only be calculated for elements with a common ancestor");const r={a:sd(rd(n.a)),b:sd(rd(n.b))};if(r.a===r.b){const s=o.childNodes,i={a:n.a.at(-1),b:n.b.at(-1)};let a=s.length;for(;a--;){const l=s[a];if(l===i.a)return 1;if(l===i.b)return-1}}return Math.sign(r.a-r.b)}const kb=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Mb(e){var t;const n=getComputedStyle((t=ad(e))!==null&&t!==void 0?t:e).display;return n==="flex"||n==="inline-flex"}function $b(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||Mb(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||kb.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function rd(e){let t=e.length;for(;t--;){const n=e[t];if(fe(n,"Missing node"),$b(n))return n}return null}function sd(e){return e&&Number(getComputedStyle(e).zIndex)||0}function id(e){const t=[];for(;e;)t.push(e),e=ad(e);return t}function ad(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const ld=1,cd=2,ud=4,dd=8,Rb=Ob()==="coarse";let ht=[],Zn=!1,_n=new Map,Br=new Map;const Vo=new Set;function Lb(e,t,n,o,r){var s;const{ownerDocument:i}=t,a={direction:n,element:t,hitAreaMargins:o,setResizeHandlerState:r},l=(s=_n.get(i))!==null&&s!==void 0?s:0;return _n.set(i,l+1),Vo.add(a),Hr(),function(){var u;Br.delete(e),Vo.delete(a);const d=(u=_n.get(i))!==null&&u!==void 0?u:1;if(_n.set(i,d-1),Hr(),d===1&&_n.delete(i),ht.includes(a)){const f=ht.indexOf(a);f>=0&&ht.splice(f,1),Wi(),r("up",!0,null)}}}function Fb(e){const{target:t}=e,{x:n,y:o}=Vr(e);Zn=!0,Gi({target:t,x:n,y:o}),Hr(),ht.length>0&&(Gr("down",e),e.preventDefault(),fd(t)||e.stopImmediatePropagation())}function Bi(e){const{x:t,y:n}=Vr(e);if(Zn&&e.buttons===0&&(Zn=!1,Gr("up",e)),!Zn){const{target:o}=e;Gi({target:o,x:t,y:n})}Gr("move",e),Wi(),ht.length>0&&e.preventDefault()}function Hi(e){const{target:t}=e,{x:n,y:o}=Vr(e);Br.clear(),Zn=!1,ht.length>0&&(e.preventDefault(),fd(t)||e.stopImmediatePropagation()),Gr("up",e),Gi({target:t,x:n,y:o}),Wi(),Hr()}function fd(e){let t=e;for(;t;){if(t.hasAttribute(we.resizeHandle))return!0;t=t.parentElement}return!1}function Gi({target:e,x:t,y:n}){ht.splice(0);let o=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(o=e),Vo.forEach(r=>{const{element:s,hitAreaMargins:i}=r,a=s.getBoundingClientRect(),{bottom:l,left:c,right:u,top:d}=a,f=Rb?i.coarse:i.fine;if(t>=c-f&&t<=u+f&&n>=d-f&&n<=l+f){if(o!==null&&document.contains(o)&&s!==o&&!s.contains(o)&&!o.contains(s)&&Nb(o,s)>0){let m=o,g=!1;for(;m&&!m.contains(s);){if(Db(m.getBoundingClientRect(),a)){g=!0;break}m=m.parentElement}if(g)return}ht.push(r)}})}function ji(e,t){Br.set(e,t)}function Wi(){let e=!1,t=!1;ht.forEach(o=>{const{direction:r}=o;r==="horizontal"?e=!0:t=!0});let n=0;Br.forEach(o=>{n|=o}),e&&t?Vi("intersection",n):e?Vi("horizontal",n):t?Vi("vertical",n):Ab()}let Ui=new AbortController;function Hr(){Ui.abort(),Ui=new AbortController;const e={capture:!0,signal:Ui.signal};Vo.size&&(Zn?(ht.length>0&&_n.forEach((t,n)=>{const{body:o}=n;t>0&&(o.addEventListener("contextmenu",Hi,e),o.addEventListener("pointerleave",Bi,e),o.addEventListener("pointermove",Bi,e))}),window.addEventListener("pointerup",Hi,e),window.addEventListener("pointercancel",Hi,e)):_n.forEach((t,n)=>{const{body:o}=n;t>0&&(o.addEventListener("pointerdown",Fb,e),o.addEventListener("pointermove",Bi,e))}))}function Gr(e,t){Vo.forEach(n=>{const{setResizeHandlerState:o}=n,r=ht.includes(n);o(e,r,t)})}function zb(){const[e,t]=y.useState(0);return y.useCallback(()=>t(n=>n+1),[])}function fe(e,t){if(!e)throw console.error(t),Error(t)}function Tn(e,t,n=Li){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function Ft(e,t,n=Li){return Tn(e,t,n)===0}function nt(e,t,n){return Tn(e,t,n)===0}function Vb(e,t,n){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++){const r=e[o],s=t[o];if(!nt(r,s,n))return!1}return!0}function Qn({panelConstraints:e,panelIndex:t,size:n}){const o=e[t];fe(o!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:r=0,collapsible:s,maxSize:i=100,minSize:a=0}=o;if(Tn(n,a)<0)if(s){const l=(r+a)/2;Tn(n,l)<0?n=r:n=a}else n=a;return n=Math.min(i,n),n=parseFloat(n.toFixed(Li)),n}function Bo({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:o,prevLayout:r,trigger:s}){if(nt(e,0))return t;const i=[...t],[a,l]=o;fe(a!=null,"Invalid first pivot index"),fe(l!=null,"Invalid second pivot index");let c=0;if(s==="keyboard"){{const d=e<0?l:a,f=n[d];fe(f,`Panel constraints not found for index ${d}`);const{collapsedSize:p=0,collapsible:m,minSize:g=0}=f;if(m){const x=t[d];if(fe(x!=null,`Previous layout not found for panel index ${d}`),nt(x,p)){const b=g-x;Tn(b,Math.abs(e))>0&&(e=e<0?0-b:b)}}}{const d=e<0?a:l,f=n[d];fe(f,`No panel constraints found for index ${d}`);const{collapsedSize:p=0,collapsible:m,minSize:g=0}=f;if(m){const x=t[d];if(fe(x!=null,`Previous layout not found for panel index ${d}`),nt(x,g)){const b=x-p;Tn(b,Math.abs(e))>0&&(e=e<0?0-b:b)}}}}{const d=e<0?1:-1;let f=e<0?l:a,p=0;for(;;){const g=t[f];fe(g!=null,`Previous layout not found for panel index ${f}`);const b=Qn({panelConstraints:n,panelIndex:f,size:100})-g;if(p+=b,f+=d,f<0||f>=n.length)break}const m=Math.min(Math.abs(e),Math.abs(p));e=e<0?0-m:m}{let f=e<0?a:l;for(;f>=0&&f<n.length;){const p=Math.abs(e)-Math.abs(c),m=t[f];fe(m!=null,`Previous layout not found for panel index ${f}`);const g=m-p,x=Qn({panelConstraints:n,panelIndex:f,size:g});if(!nt(m,x)&&(c+=m-x,i[f]=x,c.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?f--:f++}}if(Vb(r,i))return r;{const d=e<0?l:a,f=t[d];fe(f!=null,`Previous layout not found for panel index ${d}`);const p=f+c,m=Qn({panelConstraints:n,panelIndex:d,size:p});if(i[d]=m,!nt(m,p)){let g=p-m,b=e<0?l:a;for(;b>=0&&b<n.length;){const S=i[b];fe(S!=null,`Previous layout not found for panel index ${b}`);const C=S+g,_=Qn({panelConstraints:n,panelIndex:b,size:C});if(nt(S,_)||(g-=_-S,i[b]=_),nt(g,0))break;e>0?b--:b++}}}const u=i.reduce((d,f)=>f+d,0);return nt(u,100)?i:r}function Bb({layout:e,panelsArray:t,pivotIndices:n}){let o=0,r=100,s=0,i=0;const a=n[0];fe(a!=null,"No pivot index found"),t.forEach((d,f)=>{const{constraints:p}=d,{maxSize:m=100,minSize:g=0}=p;f===a?(o=g,r=m):(s+=g,i+=m)});const l=Math.min(r,100-s),c=Math.max(o,100-i),u=e[a];return{valueMax:l,valueMin:c,valueNow:u}}function Ho(e,t=document){return Array.from(t.querySelectorAll(`[${we.resizeHandleId}][data-panel-group-id="${e}"]`))}function pd(e,t,n=document){const r=Ho(e,n).findIndex(s=>s.getAttribute(we.resizeHandleId)===t);return r??null}function gd(e,t,n){const o=pd(e,t,n);return o!=null?[o,o+1]:[-1,-1]}function hd(e,t=document){var n;if(t instanceof HTMLElement&&(t==null||(n=t.dataset)===null||n===void 0?void 0:n.panelGroupId)==e)return t;const o=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return o||null}function jr(e,t=document){const n=t.querySelector(`[${we.resizeHandleId}="${e}"]`);return n||null}function Hb(e,t,n,o=document){var r,s,i,a;const l=jr(t,o),c=Ho(e,o),u=l?c.indexOf(l):-1,d=(r=(s=n[u])===null||s===void 0?void 0:s.id)!==null&&r!==void 0?r:null,f=(i=(a=n[u+1])===null||a===void 0?void 0:a.id)!==null&&i!==void 0?i:null;return[d,f]}function Gb({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:o,panelDataArray:r,panelGroupElement:s,setLayout:i}){y.useRef({didWarnAboutMissingResizeHandle:!1}),wn(()=>{if(!s)return;const a=Ho(n,s);for(let l=0;l<r.length-1;l++){const{valueMax:c,valueMin:u,valueNow:d}=Bb({layout:o,panelsArray:r,pivotIndices:[l,l+1]}),f=a[l];if(f!=null){const p=r[l];fe(p,`No panel data found for index "${l}"`),f.setAttribute("aria-controls",p.id),f.setAttribute("aria-valuemax",""+Math.round(c)),f.setAttribute("aria-valuemin",""+Math.round(u)),f.setAttribute("aria-valuenow",d!=null?""+Math.round(d):"")}}return()=>{a.forEach((l,c)=>{l.removeAttribute("aria-controls"),l.removeAttribute("aria-valuemax"),l.removeAttribute("aria-valuemin"),l.removeAttribute("aria-valuenow")})}},[n,o,r,s]),y.useEffect(()=>{if(!s)return;const a=t.current;fe(a,"Eager values not found");const{panelDataArray:l}=a,c=hd(n,s);fe(c!=null,`No group found for id "${n}"`);const u=Ho(n,s);fe(u,`No resize handles found for group id "${n}"`);const d=u.map(f=>{const p=f.getAttribute(we.resizeHandleId);fe(p,"Resize handle element has no handle id attribute");const[m,g]=Hb(n,p,l,s);if(m==null||g==null)return()=>{};const x=b=>{if(!b.defaultPrevented)switch(b.key){case"Enter":{b.preventDefault();const S=l.findIndex(C=>C.id===m);if(S>=0){const C=l[S];fe(C,`No panel data found for index ${S}`);const _=o[S],{collapsedSize:w=0,collapsible:T,minSize:E=0}=C.constraints;if(_!=null&&T){const P=Bo({delta:nt(_,w)?E-w:w-_,initialLayout:o,panelConstraints:l.map(I=>I.constraints),pivotIndices:gd(n,p,s),prevLayout:o,trigger:"keyboard"});o!==P&&i(P)}}break}}};return f.addEventListener("keydown",x),()=>{f.removeEventListener("keydown",x)}});return()=>{d.forEach(f=>f())}},[s,e,t,n,o,r,i])}function md(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function vd(e,t){const n=e==="horizontal",{x:o,y:r}=Vr(t);return n?o:r}function jb(e,t,n,o,r){const s=n==="horizontal",i=jr(t,r);fe(i,`No resize handle element found for id "${t}"`);const a=i.getAttribute(we.groupId);fe(a,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=o;const c=vd(n,e),u=hd(a,r);fe(u,`No group element found for id "${a}"`);const d=u.getBoundingClientRect(),f=s?d.width:d.height;return(c-l)/f*100}function Wb(e,t,n,o,r,s){if(td(e)){const i=n==="horizontal";let a=0;e.shiftKey?a=100:r!=null?a=r:a=10;let l=0;switch(e.key){case"ArrowDown":l=i?0:a;break;case"ArrowLeft":l=i?-a:0;break;case"ArrowRight":l=i?a:0;break;case"ArrowUp":l=i?0:-a;break;case"End":l=100;break;case"Home":l=-100;break}return l}else return o==null?0:jb(e,t,n,o,s)}function Ub({panelDataArray:e}){const t=Array(e.length),n=e.map(s=>s.constraints);let o=0,r=100;for(let s=0;s<e.length;s++){const i=n[s];fe(i,`Panel constraints not found for index ${s}`);const{defaultSize:a}=i;a!=null&&(o++,t[s]=a,r-=a)}for(let s=0;s<e.length;s++){const i=n[s];fe(i,`Panel constraints not found for index ${s}`);const{defaultSize:a}=i;if(a!=null)continue;const l=e.length-o,c=r/l;o++,t[s]=c,r-=c}return t}function eo(e,t,n){t.forEach((o,r)=>{const s=e[r];fe(s,`Panel data not found for index ${r}`);const{callbacks:i,constraints:a,id:l}=s,{collapsedSize:c=0,collapsible:u}=a,d=n[l];if(d==null||o!==d){n[l]=o;const{onCollapse:f,onExpand:p,onResize:m}=i;m&&m(o,d),u&&(f||p)&&(p&&(d==null||Ft(d,c))&&!Ft(o,c)&&p(),f&&(d==null||!Ft(d,c))&&Ft(o,c)&&f())}})}function Wr(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function qb({defaultSize:e,dragState:t,layout:n,panelData:o,panelIndex:r,precision:s=3}){const i=n[r];let a;return i==null?a=e!=null?e.toPrecision(s):"1":o.length===1?a="1":a=i.toPrecision(s),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}function Kb(e,t=10){let n=null;return(...r)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}function xd(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,n)=>{localStorage.setItem(t,n)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function bd(e){return`react-resizable-panels:${e}`}function yd(e){return e.map(t=>{const{constraints:n,id:o,idIsFromProps:r,order:s}=t;return r?o:s?`${s}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((t,n)=>t.localeCompare(n)).join(",")}function Cd(e,t){try{const n=bd(e),o=t.getItem(n);if(o){const r=JSON.parse(o);if(typeof r=="object"&&r!=null)return r}}catch{}return null}function Xb(e,t,n){var o,r;const s=(o=Cd(e,n))!==null&&o!==void 0?o:{},i=yd(t);return(r=s[i])!==null&&r!==void 0?r:null}function Yb(e,t,n,o,r){var s;const i=bd(e),a=yd(t),l=(s=Cd(e,r))!==null&&s!==void 0?s:{};l[a]={expandToSizes:Object.fromEntries(n.entries()),layout:o};try{r.setItem(i,JSON.stringify(l))}catch(c){console.error(c)}}function Sd({layout:e,panelConstraints:t}){const n=[...e],o=n.reduce((s,i)=>s+i,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(s=>`${s}%`).join(", ")}`);if(!nt(o,100)&&n.length>0)for(let s=0;s<t.length;s++){const i=n[s];fe(i!=null,`No layout data found for index ${s}`);const a=100/o*i;n[s]=a}let r=0;for(let s=0;s<t.length;s++){const i=n[s];fe(i!=null,`No layout data found for index ${s}`);const a=Qn({panelConstraints:t,panelIndex:s,size:i});i!=a&&(r+=i-a,n[s]=a)}if(!nt(r,0))for(let s=0;s<t.length;s++){const i=n[s];fe(i!=null,`No layout data found for index ${s}`);const a=i+r,l=Qn({panelConstraints:t,panelIndex:s,size:a});if(i!==l&&(r-=l-i,n[s]=l,nt(r,0)))break}return n}const Jb=100,Go={getItem:e=>(xd(Go),Go.getItem(e)),setItem:(e,t)=>{xd(Go),Go.setItem(e,t)}},wd={};function _d({autoSaveId:e=null,children:t,className:n="",direction:o,forwardedRef:r,id:s=null,onLayout:i=null,keyboardResizeBy:a=null,storage:l=Go,style:c,tagName:u="div",...d}){const f=Fi(s),p=y.useRef(null),[m,g]=y.useState(null),[x,b]=y.useState([]),S=zb(),C=y.useRef({}),_=y.useRef(new Map),w=y.useRef(0),T=y.useRef({autoSaveId:e,direction:o,dragState:m,id:f,keyboardResizeBy:a,onLayout:i,storage:l}),E=y.useRef({layout:x,panelDataArray:[],panelDataArrayChanged:!1});y.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),y.useImperativeHandle(r,()=>({getId:()=>T.current.id,getLayout:()=>{const{layout:A}=E.current;return A},setLayout:A=>{const{onLayout:k}=T.current,{layout:$,panelDataArray:V}=E.current,M=Sd({layout:A,panelConstraints:V.map(R=>R.constraints)});md($,M)||(b(M),E.current.layout=M,k&&k(M),eo(V,M,C.current))}}),[]),wn(()=>{T.current.autoSaveId=e,T.current.direction=o,T.current.dragState=m,T.current.id=f,T.current.onLayout=i,T.current.storage=l}),Gb({committedValuesRef:T,eagerValuesRef:E,groupId:f,layout:x,panelDataArray:E.current.panelDataArray,setLayout:b,panelGroupElement:p.current}),y.useEffect(()=>{const{panelDataArray:A}=E.current;if(e){if(x.length===0||x.length!==A.length)return;let k=wd[e];k==null&&(k=Kb(Yb,Jb),wd[e]=k);const $=[...A],V=new Map(_.current);k(e,$,V,x,l)}},[e,x,l]),y.useEffect(()=>{});const P=y.useCallback(A=>{const{onLayout:k}=T.current,{layout:$,panelDataArray:V}=E.current;if(A.constraints.collapsible){const M=V.map(ee=>ee.constraints),{collapsedSize:R=0,panelSize:j,pivotIndices:U}=En(V,A,$);if(fe(j!=null,`Panel size not found for panel "${A.id}"`),!Ft(j,R)){_.current.set(A.id,j);const B=to(V,A)===V.length-1?j-R:R-j,Z=Bo({delta:B,initialLayout:$,panelConstraints:M,pivotIndices:U,prevLayout:$,trigger:"imperative-api"});Wr($,Z)||(b(Z),E.current.layout=Z,k&&k(Z),eo(V,Z,C.current))}}},[]),I=y.useCallback((A,k)=>{const{onLayout:$}=T.current,{layout:V,panelDataArray:M}=E.current;if(A.constraints.collapsible){const R=M.map(ue=>ue.constraints),{collapsedSize:j=0,panelSize:U=0,minSize:ee=0,pivotIndices:B}=En(M,A,V),Z=k??ee;if(Ft(U,j)){const ue=_.current.get(A.id),me=ue!=null&&ue>=Z?ue:Z,Ne=to(M,A)===M.length-1?U-me:me-U,ye=Bo({delta:Ne,initialLayout:V,panelConstraints:R,pivotIndices:B,prevLayout:V,trigger:"imperative-api"});Wr(V,ye)||(b(ye),E.current.layout=ye,$&&$(ye),eo(M,ye,C.current))}}},[]),N=y.useCallback(A=>{const{layout:k,panelDataArray:$}=E.current,{panelSize:V}=En($,A,k);return fe(V!=null,`Panel size not found for panel "${A.id}"`),V},[]),H=y.useCallback((A,k)=>{const{panelDataArray:$}=E.current,V=to($,A);return qb({defaultSize:k,dragState:m,layout:x,panelData:$,panelIndex:V})},[m,x]),L=y.useCallback(A=>{const{layout:k,panelDataArray:$}=E.current,{collapsedSize:V=0,collapsible:M,panelSize:R}=En($,A,k);return fe(R!=null,`Panel size not found for panel "${A.id}"`),M===!0&&Ft(R,V)},[]),X=y.useCallback(A=>{const{layout:k,panelDataArray:$}=E.current,{collapsedSize:V=0,collapsible:M,panelSize:R}=En($,A,k);return fe(R!=null,`Panel size not found for panel "${A.id}"`),!M||Tn(R,V)>0},[]),W=y.useCallback(A=>{const{panelDataArray:k}=E.current;k.push(A),k.sort(($,V)=>{const M=$.order,R=V.order;return M==null&&R==null?0:M==null?-1:R==null?1:M-R}),E.current.panelDataArrayChanged=!0,S()},[S]);wn(()=>{if(E.current.panelDataArrayChanged){E.current.panelDataArrayChanged=!1;const{autoSaveId:A,onLayout:k,storage:$}=T.current,{layout:V,panelDataArray:M}=E.current;let R=null;if(A){const U=Xb(A,M,$);U&&(_.current=new Map(Object.entries(U.expandToSizes)),R=U.layout)}R==null&&(R=Ub({panelDataArray:M}));const j=Sd({layout:R,panelConstraints:M.map(U=>U.constraints)});md(V,j)||(b(j),E.current.layout=j,k&&k(j),eo(M,j,C.current))}}),wn(()=>{const A=E.current;return()=>{A.layout=[]}},[]);const J=y.useCallback(A=>{let k=!1;const $=p.current;return $&&window.getComputedStyle($,null).getPropertyValue("direction")==="rtl"&&(k=!0),function(M){M.preventDefault();const R=p.current;if(!R)return()=>null;const{direction:j,dragState:U,id:ee,keyboardResizeBy:B,onLayout:Z}=T.current,{layout:ue,panelDataArray:me}=E.current,{initialLayout:Ce}=U??{},Ne=gd(ee,A,R);let ye=Wb(M,A,j,U,B,R);const at=j==="horizontal";at&&k&&(ye=-ye);const oe=me.map(tt=>tt.constraints),ie=Bo({delta:ye,initialLayout:Ce??ue,panelConstraints:oe,pivotIndices:Ne,prevLayout:ue,trigger:td(M)?"keyboard":"mouse-or-touch"}),re=!Wr(ue,ie);(nd(M)||od(M))&&w.current!=ye&&(w.current=ye,!re&&ye!==0?at?ji(A,ye<0?ld:cd):ji(A,ye<0?ud:dd):ji(A,0)),re&&(b(ie),E.current.layout=ie,Z&&Z(ie),eo(me,ie,C.current))}},[]),Y=y.useCallback((A,k)=>{const{onLayout:$}=T.current,{layout:V,panelDataArray:M}=E.current,R=M.map(ue=>ue.constraints),{panelSize:j,pivotIndices:U}=En(M,A,V);fe(j!=null,`Panel size not found for panel "${A.id}"`);const B=to(M,A)===M.length-1?j-k:k-j,Z=Bo({delta:B,initialLayout:V,panelConstraints:R,pivotIndices:U,prevLayout:V,trigger:"imperative-api"});Wr(V,Z)||(b(Z),E.current.layout=Z,$&&$(Z),eo(M,Z,C.current))},[]),q=y.useCallback((A,k)=>{const{layout:$,panelDataArray:V}=E.current,{collapsedSize:M=0,collapsible:R}=k,{collapsedSize:j=0,collapsible:U,maxSize:ee=100,minSize:B=0}=A.constraints,{panelSize:Z}=En(V,A,$);Z!=null&&(R&&U&&Ft(Z,M)?Ft(M,j)||Y(A,j):Z<B?Y(A,B):Z>ee&&Y(A,ee))},[Y]),z=y.useCallback((A,k)=>{const{direction:$}=T.current,{layout:V}=E.current;if(!p.current)return;const M=jr(A,p.current);fe(M,`Drag handle element not found for id "${A}"`);const R=vd($,k);g({dragHandleId:A,dragHandleRect:M.getBoundingClientRect(),initialCursorPosition:R,initialLayout:V})},[]),Q=y.useCallback(()=>{g(null)},[]),F=y.useCallback(A=>{const{panelDataArray:k}=E.current,$=to(k,A);$>=0&&(k.splice($,1),delete C.current[A.id],E.current.panelDataArrayChanged=!0,S())},[S]),K=y.useMemo(()=>({collapsePanel:P,direction:o,dragState:m,expandPanel:I,getPanelSize:N,getPanelStyle:H,groupId:f,isPanelCollapsed:L,isPanelExpanded:X,reevaluatePanelConstraints:q,registerPanel:W,registerResizeHandle:J,resizePanel:Y,startDragging:z,stopDragging:Q,unregisterPanel:F,panelGroupElement:p.current}),[P,m,o,I,N,H,f,L,X,q,W,J,Y,z,Q,F]),D={display:"flex",flexDirection:o==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return y.createElement(Fr.Provider,{value:K},y.createElement(u,{...d,children:t,className:n,id:s,ref:p,style:{...D,...c},[we.group]:"",[we.groupDirection]:o,[we.groupId]:f}))}const Td=y.forwardRef((e,t)=>y.createElement(_d,{...e,forwardedRef:t}));_d.displayName="PanelGroup",Td.displayName="forwardRef(PanelGroup)";function to(e,t){return e.findIndex(n=>n===t||n.id===t.id)}function En(e,t,n){const o=to(e,t),s=o===e.length-1?[o-1,o]:[o,o+1],i=n[o];return{...t.constraints,panelSize:i,pivotIndices:s}}function Zb({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:o}){y.useEffect(()=>{if(e||n==null||o==null)return;const r=jr(t,o);if(r==null)return;const s=i=>{if(!i.defaultPrevented)switch(i.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{i.preventDefault(),n(i);break}case"F6":{i.preventDefault();const a=r.getAttribute(we.groupId);fe(a,`No group element found for id "${a}"`);const l=Ho(a,o),c=pd(a,t,o);fe(c!==null,`No resize element found for id "${t}"`);const u=i.shiftKey?c>0?c-1:l.length-1:c+1<l.length?c+1:0;l[u].focus();break}}};return r.addEventListener("keydown",s),()=>{r.removeEventListener("keydown",s)}},[o,e,t,n])}function Ed({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:o,id:r,onBlur:s,onClick:i,onDragging:a,onFocus:l,onPointerDown:c,onPointerUp:u,style:d={},tabIndex:f=0,tagName:p="div",...m}){var g,x;const b=y.useRef(null),S=y.useRef({onClick:i,onDragging:a,onPointerDown:c,onPointerUp:u});y.useEffect(()=>{S.current.onClick=i,S.current.onDragging=a,S.current.onPointerDown=c,S.current.onPointerUp=u});const C=y.useContext(Fr);if(C===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:_,groupId:w,registerResizeHandle:T,startDragging:E,stopDragging:P,panelGroupElement:I}=C,N=Fi(r),[H,L]=y.useState("inactive"),[X,W]=y.useState(!1),[J,Y]=y.useState(null),q=y.useRef({state:H});wn(()=>{q.current.state=H}),y.useEffect(()=>{if(n)Y(null);else{const K=T(N);Y(()=>K)}},[n,N,T]);const z=(g=o==null?void 0:o.coarse)!==null&&g!==void 0?g:15,Q=(x=o==null?void 0:o.fine)!==null&&x!==void 0?x:5;y.useEffect(()=>{if(n||J==null)return;const K=b.current;fe(K,"Element ref not attached");let D=!1;return Lb(N,K,_,{coarse:z,fine:Q},(k,$,V)=>{if(!$){L("inactive");return}switch(k){case"down":{L("drag"),D=!1,fe(V,'Expected event to be defined for "down" action'),E(N,V);const{onDragging:M,onPointerDown:R}=S.current;M==null||M(!0),R==null||R();break}case"move":{const{state:M}=q.current;D=!0,M!=="drag"&&L("hover"),fe(V,'Expected event to be defined for "move" action'),J(V);break}case"up":{L("hover"),P();const{onClick:M,onDragging:R,onPointerUp:j}=S.current;R==null||R(!1),j==null||j(),D||M==null||M();break}}})},[z,_,n,Q,T,N,J,E,P]),Zb({disabled:n,handleId:N,resizeHandler:J,panelGroupElement:I});const F={touchAction:"none",userSelect:"none"};return y.createElement(p,{...m,children:e,className:t,id:r,onBlur:()=>{W(!1),s==null||s()},onFocus:()=>{W(!0),l==null||l()},ref:b,role:"separator",style:{...F,...d},tabIndex:f,[we.groupDirection]:_,[we.groupId]:w,[we.resizeHandle]:"",[we.resizeHandleActive]:H==="drag"?"pointer":X?"keyboard":void 0,[we.resizeHandleEnabled]:!n,[we.resizeHandleId]:N,[we.resizeHandleState]:H})}Ed.displayName="PanelResizeHandle";const Qb={oxResizable:"_oxResizable_v00cx_2"},Pd=y.forwardRef(({className:e,direction:t="horizontal",keyboardResizeBy:n=10,dataTestid:o,...r},s)=>h.jsx(Td,{ref:s,direction:t,keyboardResizeBy:n,"data-slot":"resizable","data-testid":o,"data-orientation":t,className:G(Qb.oxResizable,e),...r}));Pd.displayName="OxResizable";const ey={oxResizablePanel:"_oxResizablePanel_1xocv_2"},Id=y.forwardRef(({className:e,collapsible:t=!1,dataTestid:n,...o},r)=>h.jsx(ed,{ref:r,collapsible:t,"data-slot":"resizable-panel","data-testid":n,className:G(ey.oxResizablePanel,e),...o}));Id.displayName="OxResizablePanel";/**
21
21
  * @license lucide-react v0.511.0 - ISC
22
22
  *
23
23
  * This source code is licensed under the ISC license.
24
24
  * See the LICENSE file in the root directory of this source tree.
25
- */const wb=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Sb=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase()),pd=e=>{const t=Sb(e);return t.charAt(0).toUpperCase()+t.slice(1)},gd=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim(),_b=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
25
+ */const ty=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ny=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase()),Ad=e=>{const t=ny(e);return t.charAt(0).toUpperCase()+t.slice(1)},Od=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim(),oy=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
26
26
  * @license lucide-react v0.511.0 - ISC
27
27
  *
28
28
  * This source code is licensed under the ISC license.
29
29
  * See the LICENSE file in the root directory of this source tree.
30
- */var Tb={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"};/**
30
+ */var ry={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"};/**
31
31
  * @license lucide-react v0.511.0 - ISC
32
32
  *
33
33
  * This source code is licensed under the ISC license.
34
34
  * See the LICENSE file in the root directory of this source tree.
35
- */const Eb=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:r="",children:s,iconNode:i,...a},l)=>b.createElement("svg",{ref:l,...Tb,width:t,height:t,stroke:e,strokeWidth:o?Number(n)*24/Number(t):n,className:gd("lucide",r),...!s&&!_b(a)&&{"aria-hidden":"true"},...a},[...i.map(([c,u])=>b.createElement(c,u)),...Array.isArray(s)?s:[s]]));/**
35
+ */const sy=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:r="",children:s,iconNode:i,...a},l)=>y.createElement("svg",{ref:l,...ry,width:t,height:t,stroke:e,strokeWidth:o?Number(n)*24/Number(t):n,className:Od("lucide",r),...!s&&!oy(a)&&{"aria-hidden":"true"},...a},[...i.map(([c,u])=>y.createElement(c,u)),...Array.isArray(s)?s:[s]]));/**
36
36
  * @license lucide-react v0.511.0 - ISC
37
37
  *
38
38
  * This source code is licensed under the ISC license.
39
39
  * See the LICENSE file in the root directory of this source tree.
40
- */const Ue=(e,t)=>{const n=b.forwardRef(({className:o,...r},s)=>b.createElement(Eb,{ref:s,iconNode:t,className:gd(`lucide-${wb(pd(e))}`,`lucide-${e}`,o),...r}));return n.displayName=pd(e),n};/**
40
+ */const ze=(e,t)=>{const n=y.forwardRef(({className:o,...r},s)=>y.createElement(sy,{ref:s,iconNode:t,className:Od(`lucide-${ty(Ad(e))}`,`lucide-${e}`,o),...r}));return n.displayName=Ad(e),n};/**
41
41
  * @license lucide-react v0.511.0 - ISC
42
42
  *
43
43
  * This source code is licensed under the ISC license.
44
44
  * See the LICENSE file in the root directory of this source tree.
45
- */const Ri=Ue("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
45
+ */const Dd=ze("check-check",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);/**
46
46
  * @license lucide-react v0.511.0 - ISC
47
47
  *
48
48
  * This source code is licensed under the ISC license.
49
49
  * See the LICENSE file in the root directory of this source tree.
50
- */const Tn=Ue("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
50
+ */const Ur=ze("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
51
51
  * @license lucide-react v0.511.0 - ISC
52
52
  *
53
53
  * This source code is licensed under the ISC license.
54
54
  * See the LICENSE file in the root directory of this source tree.
55
- */const Pb=Ue("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
55
+ */const Pn=ze("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
56
56
  * @license lucide-react v0.511.0 - ISC
57
57
  *
58
58
  * This source code is licensed under the ISC license.
59
59
  * See the LICENSE file in the root directory of this source tree.
60
- */const Ib=Ue("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
60
+ */const iy=ze("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
61
61
  * @license lucide-react v0.511.0 - ISC
62
62
  *
63
63
  * This source code is licensed under the ISC license.
64
64
  * See the LICENSE file in the root directory of this source tree.
65
- */const hd=Ue("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
65
+ */const ay=ze("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
66
66
  * @license lucide-react v0.511.0 - ISC
67
67
  *
68
68
  * This source code is licensed under the ISC license.
69
69
  * See the LICENSE file in the root directory of this source tree.
70
- */const Ab=Ue("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
70
+ */const Nd=ze("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
71
71
  * @license lucide-react v0.511.0 - ISC
72
72
  *
73
73
  * This source code is licensed under the ISC license.
74
74
  * See the LICENSE file in the root directory of this source tree.
75
- */const Ob=Ue("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
75
+ */const ly=ze("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
76
76
  * @license lucide-react v0.511.0 - ISC
77
77
  *
78
78
  * This source code is licensed under the ISC license.
79
79
  * See the LICENSE file in the root directory of this source tree.
80
- */const Db=Ue("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
80
+ */const cy=ze("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
81
81
  * @license lucide-react v0.511.0 - ISC
82
82
  *
83
83
  * This source code is licensed under the ISC license.
84
84
  * See the LICENSE file in the root directory of this source tree.
85
- */const Nb=Ue("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
85
+ */const uy=ze("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
86
86
  * @license lucide-react v0.511.0 - ISC
87
87
  *
88
88
  * This source code is licensed under the ISC license.
89
89
  * See the LICENSE file in the root directory of this source tree.
90
- */const md=Ue("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
90
+ */const dy=ze("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
91
91
  * @license lucide-react v0.511.0 - ISC
92
92
  *
93
93
  * This source code is licensed under the ISC license.
94
94
  * See the LICENSE file in the root directory of this source tree.
95
- */const kb=Ue("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
95
+ */const fy=ze("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
96
96
  * @license lucide-react v0.511.0 - ISC
97
97
  *
98
98
  * This source code is licensed under the ISC license.
99
99
  * See the LICENSE file in the root directory of this source tree.
100
- */const $b=Ue("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
100
+ */const kd=ze("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
101
101
  * @license lucide-react v0.511.0 - ISC
102
102
  *
103
103
  * This source code is licensed under the ISC license.
104
104
  * See the LICENSE file in the root directory of this source tree.
105
- */const Mb=Ue("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
105
+ */const py=ze("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
106
106
  * @license lucide-react v0.511.0 - ISC
107
107
  *
108
108
  * This source code is licensed under the ISC license.
109
109
  * See the LICENSE file in the root directory of this source tree.
110
- */const Li=Ue("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Fi={oxResizableHandle:"_oxResizableHandle_mi1bf_2",oxResizableHandleBar:"_oxResizableHandleBar_mi1bf_2",oxResizableHandleIcon:"_oxResizableHandleIcon_mi1bf_2"},vd=({className:e,orientation:t="horizontal",children:n,dataTestid:o,...r})=>h.jsx(ud,{"data-slot":"resizable-handle","data-testid":o,"data-orientation":t,className:j(Fi.oxResizableHandle,e),...r,children:h.jsx("div",{className:Fi.oxResizableHandleBar,children:n??h.jsx(md,{className:Fi.oxResizableHandleIcon})})});vd.displayName="OxResizableHandle";const xd=e=>{if(e)try{return Intl.getCanonicalLocales(e.replace(/_/g,"-"))[0]}catch{return}},bd=b.createContext(void 0),zi=()=>b.useContext(bd),yd=({locale:e,children:t})=>{const n=b.useMemo(()=>xd(e),[e]);return h.jsx(bd.Provider,{value:n,children:t})};yd.displayName="OxLocaleProvider";const zr=b.forwardRef(({className:e,size:t="24",color:n="active",dataTestid:o,...r},s)=>h.jsx("div",{ref:s,"data-slot":"bullet","data-testid":o,className:j(Cd({size:t,color:n}),e),...r}));zr.displayName="OxBullet";const Cd=at("rounded-full border-2 overflow-hidden",{variants:{size:{24:"size-6",16:"size-4",12:"size-3",8:"size-2"},color:{active:"bg-brand-accent-300 border-white",info:"bg-chart-3 border-white",warning:"bg-warning border-white",neutral:"bg-neutral-200 border-white"}},defaultVariants:{size:"24",color:"active"}}),Rb={xs:"8",sm:"8",md:"12",lg:"16",xl:"16"};function wd(e){return{bulletSize:Rb[e]}}const Jn={oxAvatarRoundedImage:"_oxAvatarRoundedImage_grmw9_2",oxAvatarRoundedContent:"_oxAvatarRoundedContent_grmw9_2",oxAvatarRounded:"_oxAvatarRounded_grmw9_2",oxAvatarRoundedBullet:"_oxAvatarRoundedBullet_grmw9_2",oxAvatarRoundedAction:"_oxAvatarRoundedAction_grmw9_2",oxAvatarRoundedLabel:"_oxAvatarRoundedLabel_grmw9_2"},Vr=b.forwardRef(({className:e,src:t,size:n="md",tone:o="brand",disabled:r=!1,status:s,alt:i="",action:a,label:l,children:c,dataTestid:u,...d},f)=>{const{bulletSize:p}=wd(n??"md");return h.jsxs("span",{ref:f,"data-slot":"avatar","data-testid":u,className:j(Jn.oxAvatarRounded,_d({size:n,tone:o,disabled:r}),e),...d,children:[t?h.jsx("img",{className:Jn.oxAvatarRoundedImage,"data-testid":`${u}-image`,src:t,alt:i}):h.jsx("span",{className:Jn.oxAvatarRoundedContent,children:c}),s&&h.jsx(zr,{className:Jn.oxAvatarRoundedBullet,dataTestid:`${u}-bullet`,color:s,size:p}),a&&h.jsx("span",{className:Jn.oxAvatarRoundedAction,children:a}),l&&h.jsx("span",{className:Jn.oxAvatarRoundedLabel,children:l})]})});Vr.displayName="OxAvatarRounded";const Qn={oxAvatarSquareImage:"_oxAvatarSquareImage_i349w_2",oxAvatarSquareContent:"_oxAvatarSquareContent_i349w_2",oxAvatarSquare:"_oxAvatarSquare_i349w_2",oxAvatarSquareBullet:"_oxAvatarSquareBullet_i349w_2",oxAvatarSquareAction:"_oxAvatarSquareAction_i349w_2",oxAvatarSquareLabel:"_oxAvatarSquareLabel_i349w_2"},Vi=b.forwardRef(({className:e,src:t,size:n="md",tone:o="brand",disabled:r=!1,status:s,alt:i="",action:a,label:l,children:c,dataTestid:u,...d},f)=>{const{bulletSize:p}=wd(n??"md");return h.jsxs("span",{ref:f,"data-slot":"avatar","data-testid":u,className:j(Qn.oxAvatarSquare,Sd({size:n,tone:o,disabled:r}),e),...d,children:[t?h.jsx("img",{className:Qn.oxAvatarSquareImage,"data-testid":`${u}-image`,src:t,alt:i}):h.jsx("span",{className:Qn.oxAvatarSquareContent,children:c}),s&&h.jsx(zr,{className:Qn.oxAvatarSquareBullet,dataTestid:`${u}-bullet`,color:s,size:p}),a&&h.jsx("span",{className:Qn.oxAvatarSquareAction,children:a}),l&&h.jsx("span",{className:Qn.oxAvatarSquareLabel,children:l})]})});Vi.displayName="OxAvatarSquare";const Sd=at("relative inline-flex shrink-0 items-center justify-center",{variants:{size:{xs:"size-6 rounded-md text-xs",sm:"size-8 rounded-lg text-sm",md:"size-12 rounded-xl text-2xl",lg:"size-16 rounded-2xl text-3xl",xl:"size-20 rounded-3xl text-4xl"},tone:{brand:"bg-brand-200 text-brand",neutral:"bg-muted text-primary"},disabled:{true:"opacity-40",false:""}},defaultVariants:{size:"md",tone:"brand",disabled:!1}}),_d=at("relative inline-flex shrink-0 items-center justify-center rounded-full border-2 border-primary-foreground",{variants:{size:{xs:"size-6 text-xs",sm:"size-8 text-sm",md:"size-12 text-2xl",lg:"size-16 text-3xl",xl:"size-20 text-4xl"},tone:{brand:"bg-brand-200 text-brand",neutral:"bg-muted text-primary"},disabled:{true:"opacity-40",false:""}},defaultVariants:{size:"md",tone:"brand",disabled:!1}}),Ho={oxAvatarGroup:"_oxAvatarGroup_knrx0_2",oxAvatarGroupInteractive:"_oxAvatarGroupInteractive_knrx0_2",oxAvatarGroupStack:"_oxAvatarGroupStack_knrx0_2",oxAvatarGroupItem:"_oxAvatarGroupItem_knrx0_2"},Td=b.forwardRef(({className:e,avatars:t,max:n=3,interactive:o=!0,onClick:r,dataTestid:s,...i},a)=>{const l=b.useMemo(()=>t.slice(0,n),[t,n]),c=b.useMemo(()=>{const u=t.length;return u>n?u-n:0},[t,n]);return h.jsx("button",{ref:a,type:"button","data-slot":"avatar-group","data-testid":s,className:j(Ho.oxAvatarGroup,o&&Ho.oxAvatarGroupInteractive,e),onClick:u=>{o&&(r==null||r(u))},...i,children:h.jsxs("div",{className:Ho.oxAvatarGroupStack,children:[l.map((u,d)=>h.jsx("div",{className:Ho.oxAvatarGroupItem,style:{zIndex:d},children:h.jsx(Vr,{dataTestid:`${s}-avatar-${d}`,src:u.src,size:"xs",disabled:u.disabled,children:u.initials})},d)),c>0&&h.jsx("div",{className:Ho.oxAvatarGroupItem,style:{zIndex:l.length},children:h.jsxs(Vr,{dataTestid:`${s}-count`,size:"xs",tone:"neutral",children:["+",c]})})]})})});Td.displayName="OxAvatarGroup";const Hi=b.forwardRef(({className:e,variant:t="default",dataTestid:n,...o},r)=>h.jsx("span",{ref:r,"data-slot":"badge","data-testid":n,className:j(Ed({variant:t}),e),...o}));Hi.displayName="OxBadge";const Ed=at("inline-flex items-center gap-1 rounded-lg px-2 py-0.5 text-xs font-semibold leading-normal transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 [&_svg]:size-3 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",brand:"bg-brand text-brand-foreground hover:bg-brand-hover",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",outline:"border border-border bg-background text-foreground hover:bg-accent",destructive:"bg-error text-error-foreground hover:bg-error/90"}},defaultVariants:{variant:"default"}}),Bi={oxCalendarDate:"_oxCalendarDate_1ms0i_2",oxCalendarDateDay:"_oxCalendarDateDay_1ms0i_2",oxCalendarDateMonth:"_oxCalendarDateMonth_1ms0i_2"},Lb=e=>{const t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),o=String(e.getDate()).padStart(2,"0");return`${t}-${n}-${o}`},Fb=(e,t)=>new Intl.DateTimeFormat(t,{month:"short"}).format(e),Pd=b.forwardRef(({className:e,date:t,active:n=!1,month:o,dataTestid:r,...s},i)=>{const a=zi();return h.jsxs("time",{ref:i,dateTime:Lb(t),"data-slot":"calendar-date","data-testid":r,className:j(Bi.oxCalendarDate,Id({active:n}),e),...s,children:[h.jsx("span",{className:Bi.oxCalendarDateDay,"data-slot":"calendar-date-day","data-testid":`${r}-day`,children:t.getDate()}),h.jsx("span",{className:Bi.oxCalendarDateMonth,"data-slot":"calendar-date-month","data-testid":`${r}-month`,children:o??Fb(t,a)})]})});Pd.displayName="OxCalendarDate";const Id=at("",{variants:{active:{true:"bg-brand text-brand-foreground",false:"bg-brand-50 text-font-primary"}},defaultVariants:{active:!1}}),zb=String.raw,Vb=(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0})(),Hb=typeof CSS<"u"&&CSS.supports&&CSS.supports("line-height","mod(1,1)"),Ad=typeof matchMedia<"u"?matchMedia("(prefers-reduced-motion: reduce)"):null,Hr="--_number-flow-d-opacity",Gi="--_number-flow-d-width",Br="--_number-flow-dx",ji="--_number-flow-d",Bb=(()=>{try{return CSS.registerProperty({name:Hr,syntax:"<number>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:Br,syntax:"<length>",inherits:!0,initialValue:"0px"}),CSS.registerProperty({name:Gi,syntax:"<number>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:ji,syntax:"<number>",inherits:!0,initialValue:"0"}),!0}catch{return!1}})(),Ui="round(nearest, calc(var(--number-flow-mask-height, 0.25em) / 2), 1px)",En=`calc(${Ui} * 2)`,Wi="var(--number-flow-mask-width, 0.5em)",Pn=`calc(${Wi} / var(--scale-x))`,Gr="#000 0, transparent 71%",Gb=zb`:host{display:inline-block;direction:ltr;white-space:nowrap;isolation:isolate;line-height:1}.number,.number__inner{display:inline-block;transform-origin:left top}:host([data-will-change]) :is(.number,.number__inner,.section,.digit,.digit__num,.symbol){will-change:transform}.number{--scale-x:calc(1 + var(${Gi}) / var(--width));transform:translateX(var(${Br})) scaleX(var(--scale-x));margin:0 calc(-1 * ${Wi});position:relative;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 ${Pn},#000 calc(100% - ${Pn}),transparent ),linear-gradient(to bottom,transparent 0,#000 ${En},#000 calc(100% - ${En}),transparent 100% ),radial-gradient(at bottom right,${Gr}),radial-gradient(at bottom left,${Gr}),radial-gradient(at top left,${Gr}),radial-gradient(at top right,${Gr});-webkit-mask-size:100% calc(100% - ${En} * 2),calc(100% - ${Pn} * 2) 100%,${Pn} ${En},${Pn} ${En},${Pn} ${En},${Pn} ${En};-webkit-mask-position:center,center,top left,top right,bottom right,bottom left;-webkit-mask-repeat:no-repeat}.number__inner{padding:${Ui} ${Wi};transform:scaleX(calc(1 / var(--scale-x))) translateX(calc(-1 * var(${Br})))}:host > :not(.number){z-index:5}.section,.symbol{display:inline-block;position:relative;isolation:isolate}.section::after{content:'\200b';display:inline-block}.section--justify-left{transform-origin:center left}.section--justify-right{transform-origin:center right}.section > [inert],.symbol > [inert]{margin:0 !important;position:absolute !important;z-index:-1}.digit{display:inline-block;position:relative;--c:var(--current) + var(${ji})}.digit__num,.number .section::after{padding:${Ui} 0}.digit__num{display:inline-block;--offset-raw:mod(var(--length) + var(--n) - mod(var(--c),var(--length)),var(--length));--offset:calc( var(--offset-raw) - var(--length) * round(down,var(--offset-raw) / (var(--length) / 2),1) );--y:clamp(-100%,var(--offset) * 100%,100%);transform:translateY(var(--y))}.digit__num[inert]{position:absolute;top:0;left:50%;transform:translateX(-50%) translateY(var(--y))}.digit:not(.is-spinning) .digit__num[inert]{display:none}.symbol__value{display:inline-block;mix-blend-mode:plus-lighter;white-space:pre}.section--justify-left .symbol > [inert]{left:0}.section--justify-right .symbol > [inert]{right:0}.animate-presence{opacity:calc(1 + var(${Hr}))}`,jb=typeof HTMLElement<"u"?HTMLElement:class{},Qt=(e,t,n)=>{const o=document.createElement(e),[r,s]=Array.isArray(t)?[void 0,t]:[t,n];return r&&Object.assign(o,r),s==null||s.forEach(i=>o.appendChild(i)),o},Ub=(e,t)=>{var n;return t==="left"?e.offsetLeft:(((n=e.offsetParent instanceof HTMLElement?e.offsetParent:null)==null?void 0:n.offsetWidth)??0)-e.offsetWidth-e.offsetLeft},Wb=e=>e.offsetWidth>0&&e.offsetHeight>0,qb=(e,t)=>{typeof HTMLElement<"u"&&typeof customElements<"u"&&!customElements.get(e)&&customElements.define(e,t)};function Kb(e,t,{reverse:n=!1}={}){const o=e.length;for(let r=n?o-1:0;n?r>=0:r<o;n?r--:r++)t(e[r],r)}function Xb(e,t,n,o){const r=t.formatToParts(e);n&&r.unshift({type:"prefix",value:n}),o&&r.push({type:"suffix",value:o});const s=[],i=[],a=[],l=[],c={},u=m=>`${m}:${c[m]=(c[m]??-1)+1}`;let d="",f=!1,p=!1;for(const m of r){d+=m.value;const x=m.type==="minusSign"||m.type==="plusSign"?"sign":m.type;x==="integer"?(f=!0,i.push(...m.value.split("").map(y=>({type:x,value:parseInt(y)})))):x==="group"?i.push({type:x,value:m.value}):x==="decimal"?(p=!0,a.push({type:x,value:m.value,key:u(x)})):x==="fraction"?a.push(...m.value.split("").map(y=>({type:x,value:parseInt(y),key:u(x),pos:-1-c[x]}))):(f||p?l:s).push({type:x,value:m.value,key:u(x)})}const v=[];for(let m=i.length-1;m>=0;m--){const x=i[m];v.unshift(x.type==="integer"?{...x,key:u(x.type),pos:c[x.type]}:{...x,key:u(x.type)})}return{pre:s,integer:v,fraction:a,post:l,valueAsString:d,value:typeof e=="string"?parseFloat(e):e}}const Od=Hb&&Vb&&Bb;let Dd=class extends jb{constructor(){super(),this.created=!1,this.batched=!1,this._preUpdated=!1;const{animated:t,...n}=this.constructor.defaultProps;this._animated=this.computedAnimated=t,Object.assign(this,n)}get animated(){return this._animated}set animated(t){var n;this.animated!==t&&(this._animated=t,(n=this.shadowRoot)==null||n.getAnimations().forEach(o=>o.finish()))}set data(t){var n,o;if(t==null||t===this._data)return;const{pre:r,integer:s,fraction:i,post:a,value:l}=t;if(this.created){const c=this._data;this._data=t,this.computedTrend=typeof this.trend=="function"?this.trend(c.value,l):this.trend,this.computedAnimated=Od&&this._animated&&(!this.respectMotionPreference||!((n=Ad)!=null&&n.matches))&&Wb(this)&&this.ownerDocument.visibilityState==="visible",(o=this.plugins)==null||o.forEach(u=>{var d;return(d=u.onUpdate)==null?void 0:d.call(u,t,c,this)}),this.batched||this.willUpdate(),this._pre.update(r),this._num.update({integer:s,fraction:i}),this._post.update(a),this.batched||this.didUpdate()}else{this._data=t,this.attachShadow({mode:"open"});try{this._internals??(this._internals=this.attachInternals()),this._internals.role="img"}catch{}const c=document.createElement("style");this.nonce&&(c.nonce=this.nonce),c.textContent=Gb,this.shadowRoot.appendChild(c),this._pre=new $d(this,r,{justify:"right",part:"left"}),this.shadowRoot.appendChild(this._pre.el),this._num=new Yb(this,s,i),this.shadowRoot.appendChild(this._num.el),this._post=new $d(this,a,{justify:"left",part:"right"}),this.shadowRoot.appendChild(this._post.el),this.created=!0}try{this._internals.ariaLabel=t.valueAsString}catch{}}willUpdate(){var t;this._preUpdated=Od&&this._animated&&(!this.respectMotionPreference||!((t=Ad)!=null&&t.matches))&&this.ownerDocument.visibilityState==="visible",this._preUpdated&&(this._pre.willUpdate(),this._num.willUpdate(),this._post.willUpdate())}didUpdate(){if(!this.computedAnimated||!this._preUpdated)return;this._abortAnimationsFinish?this._abortAnimationsFinish.abort():this.dispatchEvent(new Event("animationsstart")),this._pre.didUpdate(),this._num.didUpdate(),this._post.didUpdate();const t=new AbortController;Promise.all(this.shadowRoot.getAnimations().map(n=>n.finished)).then(()=>{t.signal.aborted||(this.dispatchEvent(new Event("animationsfinish")),this._abortAnimationsFinish=void 0)}),this._abortAnimationsFinish=t}};Dd.defaultProps={transformTiming:{duration:900,easing:"linear(0,.005,.019,.039,.066,.096,.129,.165,.202,.24,.278,.316,.354,.39,.426,.461,.494,.526,.557,.586,.614,.64,.665,.689,.711,.731,.751,.769,.786,.802,.817,.831,.844,.856,.867,.877,.887,.896,.904,.912,.919,.925,.931,.937,.942,.947,.951,.955,.959,.962,.965,.968,.971,.973,.976,.978,.98,.981,.983,.984,.986,.987,.988,.989,.99,.991,.992,.992,.993,.994,.994,.995,.995,.996,.996,.9963,.9967,.9969,.9972,.9975,.9977,.9979,.9981,.9982,.9984,.9985,.9987,.9988,.9989,1)"},spinTiming:void 0,opacityTiming:{duration:450,easing:"ease-out"},animated:!0,trend:(e,t)=>Math.sign(t-e),respectMotionPreference:!0,plugins:void 0,digits:void 0};class Yb{constructor(t,n,o,{className:r,...s}={}){this.flow=t,this._integer=new kd(t,n,{justify:"right",part:"integer"}),this._fraction=new kd(t,o,{justify:"left",part:"fraction"}),this._inner=Qt("span",{className:"number__inner"},[this._integer.el,this._fraction.el]),this.el=Qt("span",{...s,part:"number",className:`number ${r??""}`},[this._inner])}willUpdate(){this._prevWidth=this.el.offsetWidth,this._prevLeft=this.el.getBoundingClientRect().left,this._integer.willUpdate(),this._fraction.willUpdate()}update({integer:t,fraction:n}){this._integer.update(t),this._fraction.update(n)}didUpdate(){const t=this.el.getBoundingClientRect();this._integer.didUpdate(),this._fraction.didUpdate();const n=this._prevLeft-t.left,o=this.el.offsetWidth,r=this._prevWidth-o;this.el.style.setProperty("--width",String(o)),this.el.animate({[Br]:[`${n}px`,"0px"],[Gi]:[r,0]},{...this.flow.transformTiming,composite:"accumulate"})}}class Nd{constructor(t,n,{justify:o,className:r,...s},i){this.flow=t,this.children=new Map,this.onCharRemove=l=>()=>{this.children.delete(l)},this.justify=o;const a=n.map(l=>this.addChar(l).el);this.el=Qt("span",{...s,className:`section section--justify-${o} ${r??""}`},i?i(a):a)}addChar(t,{startDigitsAtZero:n=!1,...o}={}){const r=t.type==="integer"||t.type==="fraction"?new Rd(this,t.type,n?0:t.value,t.pos,{...o,onRemove:this.onCharRemove(t.key)}):new Zb(this,t.type,t.value,{...o,onRemove:this.onCharRemove(t.key)});return this.children.set(t.key,r),r}unpop(t){t.el.removeAttribute("inert"),t.el.style.top="",t.el.style[this.justify]=""}pop(t){t.forEach(n=>{n.el.style.top=`${n.el.offsetTop}px`,n.el.style[this.justify]=`${Ub(n.el,this.justify)}px`}),t.forEach(n=>{n.el.setAttribute("inert",""),n.present=!1})}addNewAndUpdateExisting(t){const n=new Map,o=new Map,r=this.justify==="left",s=r?"prepend":"append";if(Kb(t,i=>{let a;this.children.has(i.key)?(a=this.children.get(i.key),o.set(i,a),this.unpop(a),a.present=!0):(a=this.addChar(i,{startDigitsAtZero:!0,animateIn:!0}),n.set(i,a)),this.el[s](a.el)},{reverse:r}),this.flow.computedAnimated){const i=this.el.getBoundingClientRect();n.forEach(a=>{a.willUpdate(i)})}n.forEach((i,a)=>{i.update(a.value)}),o.forEach((i,a)=>{i.update(a.value)})}willUpdate(){const t=this.el.getBoundingClientRect();this._prevOffset=t[this.justify],this.children.forEach(n=>n.willUpdate(t))}didUpdate(){const t=this.el.getBoundingClientRect();this.children.forEach(r=>r.didUpdate(t));const n=t[this.justify],o=this._prevOffset-n;o&&this.children.size&&this.el.animate({transform:[`translateX(${o}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}class kd extends Nd{update(t){const n=new Map;this.children.forEach((o,r)=>{t.find(s=>s.key===r)||n.set(r,o),this.unpop(o)}),this.addNewAndUpdateExisting(t),n.forEach(o=>{o instanceof Rd&&o.update(0)}),this.pop(n)}}let $d=class extends Nd{update(t){const n=new Map;this.children.forEach((o,r)=>{t.find(s=>s.key===r)||n.set(r,o)}),this.pop(n),this.addNewAndUpdateExisting(t)}};class qi{constructor(t,n,{onRemove:o,animateIn:r=!1}={}){this.flow=t,this.el=n,this._present=!0,this._remove=()=>{var s;this.el.remove(),(s=this._onRemove)==null||s.call(this)},this.el.classList.add("animate-presence"),this.flow.computedAnimated&&r&&this.el.animate({[Hr]:[-.9999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),this._onRemove=o}get present(){return this._present}set present(t){if(this._present!==t){if(this._present=t,t?this.el.removeAttribute("inert"):this.el.setAttribute("inert",""),!this.flow.computedAnimated){t||this._remove();return}this.el.style.setProperty("--_number-flow-d-opacity",t?"0":"-.999"),this.el.animate({[Hr]:t?[-.9999,0]:[.999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),t?this.flow.removeEventListener("animationsfinish",this._remove):this.flow.addEventListener("animationsfinish",this._remove,{once:!0})}}}class Md extends qi{constructor(t,n,o,r){super(t.flow,o,r),this.section=t,this.value=n,this.el=o}}class Rd extends Md{constructor(t,n,o,r,s){var i,a;const l=(((a=(i=t.flow.digits)==null?void 0:i[r])==null?void 0:a.max)??9)+1,c=Array.from({length:l}).map((d,f)=>{const p=Qt("span",{className:"digit__num"},[document.createTextNode(String(f))]);return f!==o&&p.setAttribute("inert",""),p.style.setProperty("--n",String(f)),p}),u=Qt("span",{part:`digit ${n}-digit`,className:"digit"},c);u.style.setProperty("--current",String(o)),u.style.setProperty("--length",String(l)),super(t,o,u,s),this.pos=r,this._onAnimationsFinish=()=>{this.el.classList.remove("is-spinning")},this._numbers=c,this.length=l}willUpdate(t){const n=this.el.getBoundingClientRect();this._prevValue=this.value;const o=n[this.section.justify]-t[this.section.justify],r=n.width/2;this._prevCenter=this.section.justify==="left"?o+r:o-r}update(t){this.el.style.setProperty("--current",String(t)),this._numbers.forEach((n,o)=>o===t?n.removeAttribute("inert"):n.setAttribute("inert","")),this.value=t}didUpdate(t){const n=this.el.getBoundingClientRect(),o=n[this.section.justify]-t[this.section.justify],r=n.width/2,s=this.section.justify==="left"?o+r:o-r,i=this._prevCenter-s;i&&this.el.animate({transform:[`translateX(${i}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"});const a=this.getDelta();a&&(this.el.classList.add("is-spinning"),this.el.animate({[ji]:[-a,0]},{...this.flow.spinTiming??this.flow.transformTiming,composite:"accumulate"}),this.flow.addEventListener("animationsfinish",this._onAnimationsFinish,{once:!0}))}getDelta(){var t;if(this.flow.plugins)for(const r of this.flow.plugins){const s=(t=r.getDelta)==null?void 0:t.call(r,this.value,this._prevValue,this);if(s!=null)return s}const n=this.value-this._prevValue,o=this.flow.computedTrend||Math.sign(n);return o<0&&this.value>this._prevValue?this.value-this.length-this._prevValue:o>0&&this.value<this._prevValue?this.length-this._prevValue+this.value:n}}class Zb extends Md{constructor(t,n,o,r){const s=Qt("span",{className:"symbol__value",textContent:o});super(t,o,Qt("span",{part:`symbol ${n}`,className:"symbol"},[s]),r),this.type=n,this._children=new Map,this._onChildRemove=i=>()=>{this._children.delete(i)},this._children.set(o,new qi(this.flow,s,{onRemove:this._onChildRemove(o)}))}willUpdate(t){if(this.type==="decimal")return;const n=this.el.getBoundingClientRect();this._prevOffset=n[this.section.justify]-t[this.section.justify]}update(t){if(this.value!==t){const n=this._children.get(this.value);n&&(n.present=!1);const o=this._children.get(t);if(o)o.present=!0;else{const r=Qt("span",{className:"symbol__value",textContent:t});this.el.appendChild(r),this._children.set(t,new qi(this.flow,r,{animateIn:!0,onRemove:this._onChildRemove(t)}))}}this.value=t}didUpdate(t){if(this.type==="decimal")return;const n=this.el.getBoundingClientRect()[this.section.justify]-t[this.section.justify],o=this._prevOffset-n;o&&this.el.animate({transform:[`translateX(${o}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}const Ki=parseInt((w0=g.version.match(/^(\d+)\./))==null?void 0:w0[1])>=19,Jb=["data","digits"];class Xi extends Dd{attributeChangedCallback(t,n,o){this[t]=JSON.parse(o)}}Xi.observedAttributes=Ki?[]:Jb,qb("number-flow-react",Xi);const Yi={};function Qb(e){return e}const Ld=Ki?Qb:JSON.stringify;function Fd(e){const{transformTiming:t,spinTiming:n,opacityTiming:o,animated:r,respectMotionPreference:s,trend:i,plugins:a,...l}=e;return[{transformTiming:t,spinTiming:n,opacityTiming:o,animated:r,respectMotionPreference:s,trend:i,plugins:a},l]}class ey extends g.Component{updateProperties(t){if(!this.el)return;this.el.batched=!this.props.isolate;const[n]=Fd(this.props);Object.entries(n).forEach(([o,r])=>{this.el[o]=r??Xi.defaultProps[o]}),t!=null&&t.onAnimationsStart&&this.el.removeEventListener("animationsstart",t.onAnimationsStart),this.props.onAnimationsStart&&this.el.addEventListener("animationsstart",this.props.onAnimationsStart),t!=null&&t.onAnimationsFinish&&this.el.removeEventListener("animationsfinish",t.onAnimationsFinish),this.props.onAnimationsFinish&&this.el.addEventListener("animationsfinish",this.props.onAnimationsFinish)}componentDidMount(){this.updateProperties(),Ki&&this.el&&(this.el.digits=this.props.digits,this.el.data=this.props.data)}getSnapshotBeforeUpdate(t){var n;if(this.updateProperties(t),t.data!==this.props.data){if(this.props.group)return this.props.group.willUpdate(),()=>{var o;return(o=this.props.group)==null?void 0:o.didUpdate()};if(!this.props.isolate)return(n=this.el)==null||n.willUpdate(),()=>{var o;return(o=this.el)==null?void 0:o.didUpdate()}}return null}componentDidUpdate(t,n,o){o==null||o()}handleRef(t){this.props.innerRef&&(this.props.innerRef.current=t),this.el=t}render(){const[t,{innerRef:n,className:o,data:r,nonce:s,willChange:i,isolate:a,group:l,digits:c,onAnimationsStart:u,onAnimationsFinish:d,...f}]=Fd(this.props);return g.createElement("number-flow-react",{ref:this.handleRef,"data-will-change":i?"":void 0,class:o,nonce:s,...f,dangerouslySetInnerHTML:{__html:""},suppressHydrationWarning:!0,digits:Ld(c),data:Ld(r)})}constructor(t){super(t),this.handleRef=this.handleRef.bind(this)}}const ty=g.forwardRef(function({value:t,locales:n,format:o,prefix:r,suffix:s,...i},a){g.useImperativeHandle(a,()=>l.current,[]);const l=g.useRef(void 0),c=g.useContext(ny);c==null||c.useRegister(l);const u=g.useMemo(()=>n?JSON.stringify(n):"",[n]),d=g.useMemo(()=>o?JSON.stringify(o):"",[o]),f=g.useMemo(()=>{var v;const p=Yi[v=`${u}:${d}`]??(Yi[v]=new Intl.NumberFormat(n,o));return Xb(t,p,r,s)},[t,u,d,r,s]);return g.createElement(ey,{...i,group:c,data:f,innerRef:l})}),ny=g.createContext(void 0),oy={oxNumberFlow:"_oxNumberFlow_1gbln_2"},zd=b.forwardRef(({className:e,preset:t="number",value:n,dataTestid:o,...r},s)=>{const i=Hd(t),a=zi(),l=i.locales??a;return h.jsx(ty,{ref:s,value:n,format:i.format,locales:l,trend:i.trend,digits:i.digits,"data-slot":"number-flow","data-testid":o,className:j(oy.oxNumberFlow,e),...r})});zd.displayName="OxNumberFlow";const Vd={number:{},currency:{format:{style:"currency",currency:"EUR"}},percent:{format:{style:"percent",maximumFractionDigits:1}},compact:{format:{notation:"compact",compactDisplay:"short"}},time:{format:{minimumIntegerDigits:2},digits:{1:{max:5}}}},Hd=(e="number")=>typeof e=="string"?Vd[e]:e,ry=Object.keys(Vd),sy="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='320'%20height='84'%20fill='none'%20viewBox='0%200%2018%204'%3e%3cpath%20fill='%23fff'%20d='m5.64156%201.68819.00197.0005c.27061.06058.62132.17466.61437.55514.00268.07837-.01394.15618-.04836.22643-.03443.07025-.08557.13072-.14884.17596-.14298.10083-.31439.15203-.48853.14593-.3364%200-.58748-.14629-.70544-.39069-.00331-.00706-.00386-.01513-.00155-.02259s.00731-.01377.01401-.01765l.27191-.15982c.00343-.00207.00723-.00344.01117-.00403.00395-.00059.00798-.00039.01185.0006.00388.00098.00751.00273.01072.00514.0032.00241.0059.00544.00795.00891.00045.00095.00103.0019.00148.0029.03139.07314.0849.1343.15283.17467.06792.04037.14674.05788.22512.04999.20052%200%20.29886-.06766.29886-.19966%200-.11412-.14791-.1815-.33413-.22783-.26371-.06766-.6189-.17447-.61187-.54828-.00255-.07581.0127-.15115.04448-.21984.03179-.06869.07922-.12877.13839-.1753.16643-.122199.374-.172472.57704-.139762.20304.032709.38493.145722.50568.314192.00446.00623.00882.01251.01309.01883.00202.00352.00335.00741.00389.01144.00053.00403.00028.00814-.00075.01207-.00103.00394-.00281.00763-.00525.01087s-.00549.00596-.00896.008l-.0005.00027-.26406.14975c-.00713.00418-.0156.00533-.02357.0032-.00796-.00214-.01477-.00738-.01892-.01459-.03064-.05692-.07683-.10368-.13304-.13471-.05621-.03102-.12007-.04499-.18392-.04022-.14418%200-.25672.06412-.25672.18868%200%20.11729.14723.17778.32969.23114M6.94987%202.01967c-.00408.00003-.00812.00087-.01188.00249-.00375.00161-.00716.00396-.01002.00691-.00286.00296-.00511.00645-.00663.01029-.00152.00383-.00226.00794-.00221.01207-.00001.00292.00039.00582.00121.00862.06834.24503.27576.38003.55288.38003.08323.00454.16633-.0111.24239-.04563s.14289-.08695.1949-.15289c.00451-.00607.01106-.01025.01841-.01178.00734-.00152.01499-.00027.02149.00352l.26053.15428c.00703.00421.01212.01108.01416.0191.00203.00801.00084.01652-.00332.02364-.00043.00079-.00093.00155-.00147.00227-.08538.11889-.19888.21417-.33008.27709-.13121.06293-.27592.09149-.42087.08306-.12702.00523-.25378-.01539-.37279-.06064s-.22784-.11422-.32006-.20281c-.16874-.18077-.26304-.41989-.26368-.66861s.09243-.48833.26024-.66999c.08652-.08985.19067-.16034.30574-.206955.11507-.046611.23851-.0683.36237-.063672.1188-.003205.23688.019637.34615.066959.10927.047318.20715.118008.28691.207208.1652.18088.25469.41958.24964.66589-.00041.04456-.00381.08904-.01017.13314-.00105.00742-.0047.01422-.01029.01914-.00559.00493-.01274.00765-.02014.00767zm.95307-.31333c.00408-.00004.00811-.00089.01186-.00251.00376-.00162.00716-.00397.01002-.00692.00285-.00295.0051-.00644.00663-.01027.00152-.00383.00228-.00793.00224-.01206%200-.00254-.00033-.00508-.00099-.00753-.02174-.11535-.08359-.21899-.17432-.29215-.09074-.07315-.20435-.11098-.32026-.10662-.11943-.00646-.23728.02997-.33279.10286s-.16254.17757-.1893.29559c-.00106.00398-.00134.00813-.00082.01222.00053.00408.00183.00803.00386.0116.00202.00357.00473.00671.00795.00922.00322.00252.00691.00437.01084.00544.00256.00069.0052.00105.00785.00109zM9.34382%201.68819l.00197.0005c.27066.06058.62141.17465.61438.55513.00266.07837-.01397.15618-.04839.22642-.03443.07025-.08556.13072-.14881.17598-.14298.10083-.31439.15203-.48853.14593-.3365%200-.58753-.14629-.70553-.39069-.00332-.00707-.00388-.01515-.00156-.02261.00232-.00747.00734-.01377.01406-.01764l.27183-.15981c.00341-.00208.0072-.00344.01113-.00403.00394-.00059.00796-.00038.01182.0006.00386.00099.00749.00274.01068.00515s.00588.00543.00791.00889c.00058.00093.0011.0019.00153.00291.03141.07316.08494.13434.1529.17472s.14682.05786.22523.04993c.20034%200%20.29886-.06765.29886-.19965%200-.11412-.14768-.18151-.33413-.22783-.26371-.06766-.61886-.17448-.61187-.54829-.00254-.0758.0127-.15114.04448-.21982.03178-.06869.07919-.12877.13834-.17531.16643-.122242.374-.172547.57706-.139853.20307.032693.38499.145703.50576.314183.00445.00627.00882.01259.01313.01897.00201.00354.00333.00744.00386.01149s.00026.00816-.00079.01211c-.00104.00394-.00285.00764-.0053.01088-.00246.00324-.00553.00595-.00902.00799h-.00041l-.26397.14974c-.00353.00208-.00743.00344-.01148.00399-.00405.00056-.00817.0003-.01212-.00076s-.00765-.00289-.0109-.0054-.00598-.00564-.00803-.00922c-.03064-.0569-.07682-.10367-.13303-.13469-.0562-.03103-.12005-.04499-.18389-.04023-.14418%200-.25672.06412-.25672.18867%200%20.1173.14718.17779.3296.23115M11.7375.965888h.3182c.0081%200%20.0159.003275.0217.009104.0057.005829.009.013735.009.021979V2.71505c0%20.00409-.0008.00813-.0024.01191-.0015.00378-.0038.00721-.0066.0101-.0029.00289-.0062.00518-.01.00675-.0037.00156-.0077.00237-.0117.00237h-.3182c-.0041%200-.0081-.00081-.0118-.00237-.0037-.00157-.0071-.00386-.01-.00675-.0028-.00289-.0051-.00632-.0066-.0101-.0016-.00378-.0024-.00782-.0023-.01191v-.13703c0-.00625-.0019-.01236-.0053-.01752-.0035-.00517-.0084-.00915-.0142-.01144-.0057-.00228-.012-.00276-.018-.00136-.006.00139-.0115.00459-.0157.00917-.0708.07869-.158.1406-.2551.18132-.0972.04071-.2021.05923-.3071.05423-.1162.00171-.2314-.02152-.3381-.06815-.1066-.04663-.2024-.1156-.2808-.20238-.1651-.18146-.2568-.41917-.2568-.6659s.0917-.48444.2568-.6659c.0784-.08681.1741-.15581.2808-.202452.1067-.046646.2219-.069879.3381-.06817.1049-.004871.2095.013483.3067.053782.0971.0403.1844.10157.2557.17954.0042.00456.0097.00773.0157.0091s.0123.00088.018-.00142c.0058-.0023.0107-.00629.0141-.01145.0035-.00517.0053-.01127.0053-.01751V.996608c0-.008243.0032-.016149.009-.021979.0057-.005829.0136-.009104.0217-.009104zm-.586%201.459622c.0735.00204.1467-.01112.215-.03867.0684-.02756.1304-.06893.1824-.1216.0521-.054.0929-.11802.1201-.18827.0272-.07026.0402-.14533.0382-.22075.0023-.07501-.0105-.14971-.0377-.21952s-.0682-.13324-.1206-.18642c-.1063-.10498-.2489-.16374-.3974-.16374s-.2911.05876-.3974.16374c-.0523.05317-.0933.11661-.1205.18642-.0272.0698-.0401.14451-.0377.21952-.002.07542.011.15049.0381.22075.0272.07025.068.13428.1201.18827.052.05266.1141.09404.1824.1216.0683.02755.1414.04071.215.03867M15.1489%201.64227v1.07261c0%20.00824-.0033.01615-.009.02199-.0058.00584-.0136.00912-.0217.00913H14.8c-.0082%200-.016-.00327-.0217-.0091-.0058-.00583-.009-.01373-.009-.02198V1.66673c0-.24571-.13-.38801-.3411-.38801-.2357%200-.3834.15668-.3834.47v.96588c0%20.00825-.0032.01615-.009.02198-.0057.00583-.0135.00911-.0217.00911h-.3182c-.0081%200-.016-.00328-.0217-.00911-.0058-.00583-.009-.01373-.009-.02198V1.66682c0-.24571-.1195-.38801-.3305-.38801-.2286%200-.3903.16018-.3903.47001v.96587c0%20.00826-.0033.01616-.009.02199-.0058.00582-.0136.0091-.0218.0091h-.3182c-.004%200-.008-.0008-.0117-.00235-.0038-.00156-.0072-.00385-.01-.00674-.0029-.00288-.0052-.00631-.0067-.01009-.0016-.00377-.0024-.00782-.0024-.01191V.99684c0-.004088.0008-.008134.0024-.011909.0015-.003774.0038-.007202.0067-.010089.0028-.002886.0062-.005174.01-.006733.0037-.001559.0077-.002358.0117-.002352h.3182c.0082%200%20.016.003272.0218.009099.0057.005826.009.013732.009.021984v.09075c0%20.00629.0019.01243.0054.01761.0035.00517.0085.00914.0143.01137s.0122.00261.0182.0011.0114-.00485.0156-.00957c.0564-.06312.126-.112769.2037-.145372s.1616-.047345.2456-.043164c.0933-.005037.1864.01476.2698.057422.0835.042664.1545.106704.2059.185754.0022.00325.005.00603.0082.00819.0033.00215.0069.00364.0107.00436.0039.00073.0078.00069.0116-.00012.0038-.0008.0074-.00236.0106-.00458.0028-.00189.0052-.00425.0072-.00699.0585-.08101.1362-.14582.2259-.188465s.1886-.061755.2875-.055571c.3973%200%20.6646.281336.6646.722976M15.9423%202.01966c-.0048.00002-.0095.00117-.0138.00336s-.008.00536-.0108.00925c-.0029.0039-.0048.00842-.0057.0132-.0008.00478-.0005.0097.0008.01435.0684.24503.2758.38003.5529.38003.0833.00453.1664-.01112.2424-.04564.0761-.03453.1429-.08695.1949-.15288.0045-.00606.0111-.01025.0184-.01177s.015-.00027.0215.00351l.2605.15428c.0035.00208.0066.00484.009.00811.0024.00328.0042.00701.0052.01098s.0013.0081.0007.01216-.002.00796-.004.01149c-.0004.00077-.001.00154-.0014.00227-.0854.1189-.1989.21418-.3302.2771-.1312.06293-.2759.09149-.4209.08305-.127.00523-.2537-.01539-.3727-.06065-.119-.04525-.2278-.11421-.32-.2028-.1688-.18075-.2631-.41986-.2638-.66858-.0006-.24873.0924-.48835.2602-.67002.0865-.08985.1907-.16034.3058-.206955.115-.04661.2385-.0683.3623-.063672.1188-.003201.2369.019642.3462.066964.1092.047323.2071.118003.2869.207203.1652.18089.2546.41958.2496.66589-.0004.04456-.0038.08905-.0102.13314-.001.00742-.0047.01422-.0103.01914-.0056.00493-.0127.00765-.0201.00767zm.9531-.31332c.004-.00004.0081-.0009.0118-.00252.0038-.00162.0072-.00397.01-.00692.0029-.00295.0051-.00644.0066-.01027s.0023-.00793.0023-.01205c-.0001-.00259-.0004-.00517-.001-.00767-.0218-.11535-.0837-.21899-.1744-.29215-.0908-.07315-.2044-.11097-.3203-.10662-.1194-.00646-.2373.02995-.3328.10284-.0955.07288-.1625.17755-.1892.29556-.0011.00399-.0014.00814-.0009.01223.0006.00409.0019.00803.0039.01161.002.00357.0048.00671.008.00922s.0069.00436.0108.00542c.0026.00069.0053.00105.0079.00109zM2.48199%203.62801c-.05187%200-.10258-.01558-.14572-.04476-.04313-.02918-.07675-.07065-.09661-.11917-.01985-.04853-.02505-.10192-.01494-.15344.01012-.05151.03509-.09883.07177-.13598l.83896-.84944c.02436-.02466.05328-.04423.08511-.05757.03183-.01335.06593-.02021.10038-.02021s.06857.00687.1004.02022c.03182.01335.06073.03292.08509.05758s.04369.05394.05687.08617c.01318.03222.01996.06676.01996.10163-.00001.03488-.00679.06942-.01997.10164-.01319.03222-.03252.0615-.05688.08616l-.839.8494c-.02432.02469-.05322.04427-.08504.05762s-.06593.0202-.10038.02015'/%3e%3cpath%20fill='%23fff'%20d='M1.83927%203.68436c-.02319.00001-.04629-.00304-.06868-.00907l-.92854-.24957C.720375%203.3928.60944%203.32844.520333%203.23906c-.089108-.08938-.153269-.20065-.186075-.32269L.0243037%201.75605c-.0324748-.12215-.03240286-.25072.0002043-.37284.0326071-.12212.096609-.23352.185606-.32305L1.05695.210719c.08926-.089227.2003-.1534007.32202-.186111.12173-.03271037.24989-.03281201.37167-.000295l1.15687.310873c.12167.032929.2326.097296.32172.186674.08911.089378.15329.200639.18612.322674l.24883.931306c.009.03368.0113.06882.00676.10339-.00454.03458-.01582.06792-.0332.09812-.01739.03021-.04053.05668-.06812.07791-.02758.02123-.05907.03681-.09266.04583-.03358.00903-.06861.01134-.10308.00679-.03448-.00456-.06772-.01587-.09783-.03331-.03012-.01743-.0565-.04065-.07767-.06831-.02117-.02767-.03671-.05925-.04571-.09293L2.90385.982024c-.00864-.03205-.02551-.06127-.04892-.084742s-.05255-.040376-.0845-.049027L1.6136.537382c-.03197-.008541-.06562-.008518-.09759.000065-.03196.008584-.06111.025428-.08455.048851l-.846882.849442c-.023361.02351-.040166.05275-.048732.08481-.008566.03205-.008593.0658-.000083.09788l.309993%201.16031c.008613.03204.025462.06126.048859.08472.023396.02347.052522.04037.084469.04901l.928546.24957c.06198.01672.1158.05546.15145.109.03564.05355.05069.11826.04233.18209-.00836.06384-.03955.12246-.08777.16496-.04822.04249-.11018.06616-.17437.06627'/%3e%3c/svg%3e",Qe={oxPaymentCardLogo:"_oxPaymentCardLogo_43yqn_2",oxPaymentCardLogoDefault:"_oxPaymentCardLogoDefault_43yqn_2",oxPaymentCardLogoCompact:"_oxPaymentCardLogoCompact_43yqn_2",oxPaymentCardBadge:"_oxPaymentCardBadge_43yqn_2",oxPaymentCardInfo:"_oxPaymentCardInfo_43yqn_2",oxPaymentCardNumber:"_oxPaymentCardNumber_43yqn_2",oxPaymentCardDetail:"_oxPaymentCardDetail_43yqn_2",oxPaymentCardDigits:"_oxPaymentCardDigits_43yqn_2",oxPaymentCardSchemeCompact:"_oxPaymentCardSchemeCompact_43yqn_2",oxPaymentCardFooter:"_oxPaymentCardFooter_43yqn_2",oxPaymentCardScheme:"_oxPaymentCardScheme_43yqn_2"},iy={cardNumber:"0000 00** **** 0000",cardholderName:"Nombre del empleado",expiryDate:"00/00",cvc:"CVC ***",lastFourDigits:"7661"},ay={background:"linear-gradient(59.34deg, rgb(26, 26, 18) 0%, rgb(51, 65, 85) 100%)"},ly={virtual:"Virtual",physical:"Physical",subscription:"Subscription"},Bd=b.forwardRef(({className:e,size:t="default",disabled:n=!1,badgeType:o,cardData:r=iy,dataTestid:s,...i},a)=>h.jsxs("div",{ref:a,"data-slot":"payment-card","data-testid":s,className:j(Gd({size:t,disabled:n}),e),style:ay,...i,children:[h.jsx("img",{src:sy,alt:"Sesame",className:j(Qe.oxPaymentCardLogo,t==="default"?Qe.oxPaymentCardLogoDefault:Qe.oxPaymentCardLogoCompact)}),t==="default"&&o&&h.jsx(Hi,{dataTestid:`${s}-badge`,className:Qe.oxPaymentCardBadge,children:ly[o]}),t==="default"&&h.jsxs("div",{className:Qe.oxPaymentCardInfo,children:[h.jsx("span",{className:Qe.oxPaymentCardNumber,children:r.cardNumber}),h.jsx("span",{className:Qe.oxPaymentCardDetail,children:r.cardholderName})]}),t==="compact"&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:Qe.oxPaymentCardDigits,children:r.lastFourDigits}),h.jsxs("svg",{className:Qe.oxPaymentCardSchemeCompact,viewBox:"0 0 40 24",fill:"none",children:[h.jsx("circle",{cx:"14",cy:"12",r:"10",fill:"#E33A24",fillOpacity:"0.6"}),h.jsx("circle",{cx:"26",cy:"12",r:"10",fill:"#F8CB2E",fillOpacity:"0.6"})]})]}),t==="default"&&h.jsxs("div",{className:Qe.oxPaymentCardFooter,children:[h.jsx("span",{className:Qe.oxPaymentCardDetail,children:r.expiryDate}),h.jsx("span",{className:Qe.oxPaymentCardDetail,children:r.cvc}),h.jsxs("svg",{className:Qe.oxPaymentCardScheme,viewBox:"0 0 40 24",fill:"none",children:[h.jsx("circle",{cx:"14",cy:"12",r:"10",fill:"#E33A24"}),h.jsx("circle",{cx:"26",cy:"12",r:"10",fill:"#F8CB2E",fillOpacity:"0.6"})]})]})]}));Bd.displayName="OxPaymentCard";const Gd=at("relative overflow-hidden font-sans",{variants:{size:{default:"w-[293px] h-[173px] rounded-2xl",compact:"w-[54px] h-8 rounded-[3px]"},disabled:{true:"opacity-20",false:""}},defaultVariants:{size:"default",disabled:!1}}),cy={oxTag:"_oxTag_6s6b2_2"},jd=b.forwardRef(({className:e,active:t=!1,dragged:n=!1,dataTestid:o,...r},s)=>h.jsx("button",{ref:s,type:"button","data-slot":"tag","aria-pressed":t,"data-active":t||void 0,"data-dragged":n||void 0,"data-testid":o,className:j(cy.oxTag,e),...r}));jd.displayName="OxTag";const uy={oxChip:"_oxChip_1dn4n_2"},Ud=b.forwardRef(({className:e,tone:t="neutral",dataTestid:n,children:o,...r},s)=>h.jsx("span",{ref:s,"data-slot":"chip","data-testid":n,className:j(uy.oxChip,Wd({tone:t}),e),...r,children:o}));Ud.displayName="OxChip";const Wd=at("",{variants:{tone:{neutral:"bg-bg-muted text-font-primary",brand:"bg-brand/10 text-brand",success:"bg-success/10 text-success",warning:"bg-warning/10 text-warning",error:"bg-error/10 text-error"}},defaultVariants:{tone:"neutral"}}),dy={oxPointMarker:"_oxPointMarker_14jrw_2"},qd=b.forwardRef(({className:e,color:t="category-1",dataTestid:n,...o},r)=>h.jsx("span",{ref:r,"data-slot":"point-marker","data-testid":n,className:j(dy.oxPointMarker,e),...o,children:h.jsx("span",{"data-slot":"point-marker-center","data-testid":`${n}-center`,className:Kd({color:t})})}));qd.displayName="OxPointMarker";const Kd=at("size-2 shrink-0 rounded-full",{variants:{color:{"category-1":"bg-category-1","category-2":"bg-category-2","category-3":"bg-category-3","category-4":"bg-category-4","category-5":"bg-category-5","category-6":"bg-category-6","category-7":"bg-category-7","category-8":"bg-category-8","category-9":"bg-category-9","category-10":"bg-category-10","category-11":"bg-category-11","category-12":"bg-category-12","category-13":"bg-category-13","category-14":"bg-category-14","category-15":"bg-category-15","category-16":"bg-category-16","category-17":"bg-category-17","category-18":"bg-category-18","category-19":"bg-category-19"}},defaultVariants:{color:"category-1"}}),fy={draft:"Draft",active:"Active",paused:"Paused",completed:"Completed",scheduled:"Scheduled",deleted:"Deleted"},Xd=b.forwardRef(({className:e,status:t="draft",children:n,dataTestid:o,...r},s)=>h.jsxs("span",{ref:s,"data-slot":"status-badge","data-testid":o,className:j(Yd({status:t}),e),...r,children:[h.jsx("span",{"data-testid":`${o}-indicator`,className:Zd({status:t})}),n??fy[t??"draft"]]}));Xd.displayName="OxStatusBadge";const Yd=at("inline-flex items-center gap-1 h-5 px-2 py-1 rounded border text-[10px] font-normal leading-[1.25]",{variants:{status:{draft:"border-neutral-500 text-font-secondary",active:"border-success text-font-success",paused:"border-warning text-font-warning",completed:"border-chart-5 text-chart-5",scheduled:"border-chart-2 text-chart-2",deleted:"border-error text-error"}},defaultVariants:{status:"draft"}}),Zd=at("size-1.5 rounded-full",{variants:{status:{draft:"bg-neutral-500",active:"bg-success",paused:"bg-warning",completed:"bg-chart-5",scheduled:"bg-chart-2",deleted:"bg-error"}},defaultVariants:{status:"draft"}});var py=Object.defineProperty,lt=(e,t)=>py(e,"name",{value:t,configurable:!0});function gy(e,t){const n=g.createContext(t);n.displayName=e+"Context";const o=lt(s=>{const{children:i,...a}=s,l=g.useMemo(()=>a,Object.values(a));return h.jsx(n.Provider,{value:l,children:i})},"Provider");o.displayName=e+"Provider";function r(s,i={}){const{optional:a=!1}=i,l=g.useContext(n);if(l)return l;if(t!==void 0)return t;if(!a)throw new Error(`\`${s}\` must be used within \`${e}\``)}return lt(r,"useContext"),[o,r]}lt(gy,"createContext");function eo(e,t=[]){let n=[];function o(s,i){const a=g.createContext(i);a.displayName=s+"Context";const l=n.length;n=[...n,i];const c=lt(d=>{var y;const{scope:f,children:p,...v}=d,m=((y=f==null?void 0:f[e])==null?void 0:y[l])||a,x=g.useMemo(()=>v,Object.values(v));return h.jsx(m.Provider,{value:x,children:p})},"Provider");c.displayName=s+"Provider";function u(d,f,p={}){var y;const{optional:v=!1}=p,m=((y=f==null?void 0:f[e])==null?void 0:y[l])||a,x=g.useContext(m);if(x)return x;if(i!==void 0)return i;if(!v)throw new Error(`\`${d}\` must be used within \`${s}\``)}return lt(u,"useContext"),[c,u]}lt(o,"createContext");const r=lt(()=>{const s=n.map(i=>g.createContext(i));return lt(function(a){const l=(a==null?void 0:a[e])||s;return g.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])},"useScope")},"createScope");return r.scopeName=e,[o,Jd(r,...t)]}lt(eo,"createContextScope");function Jd(...e){const t=e[0];if(e.length===1)return t;const n=lt(()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return lt(function(s){const i=o.reduce((a,{useScope:l,scopeName:c})=>{const d=l(s)[`__scope${c}`];return{...a,...d}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}lt(Jd,"composeContextScopes");var hy=Object.defineProperty,Zi=(e,t)=>hy(e,"name",{value:t,configurable:!0});function Ji(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Zi(Ji,"setRef");function Qd(...e){return t=>{let n=!1;const o=e.map(r=>{const s=Ji(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():Ji(e[r],null)}}}}Zi(Qd,"composeRefs");function we(...e){return g.useCallback(Qd(...e),e)}Zi(we,"useComposedRefs");var my=Object.defineProperty,pt=(e,t)=>my(e,"name",{value:t,configurable:!0});function In(e){const t=g.forwardRef((n,o)=>{let{children:r,...s}=n,i=null,a=!1;const l=[];Qi(r)&&typeof jr=="function"&&(r=jr(r._payload)),g.Children.forEach(r,f=>{var p;if(of(f)){a=!0;const v=f;let m="child"in v.props?v.props.child:v.props.children;Qi(m)&&typeof jr=="function"&&(m=jr(m._payload)),i=xy(v,m),l.push((p=i==null?void 0:i.props)==null?void 0:p.children)}else l.push(f)}),i?i=g.cloneElement(i,void 0,l):!a&&g.Children.count(r)===1&&g.isValidElement(r)&&(i=r);const c=i?nf(i):void 0,u=we(o,c);if(!i){if(r||r===0)throw new Error(a?Cy(e):yy(e));return r}const d=tf(s,i.props??{});return i.type!==g.Fragment&&(d.ref=o?u:c),g.cloneElement(i,d)});return t.displayName=`${e}.Slot`,t}pt(In,"createSlot");var ef=Symbol.for("radix.slottable");function vy(e){const t=pt(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=ef,t}pt(vy,"createSlottable");var xy=pt((e,t)=>{if("child"in e.props){const n=e.props.child;return g.isValidElement(n)?g.cloneElement(n,void 0,e.props.children(n.props.children)):null}return g.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function tf(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{const l=s(...a);return r(...a),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}pt(tf,"mergeProps");function nf(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}pt(nf,"getElementRef");function of(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ef}pt(of,"isSlottable");var by=Symbol.for("react.lazy");function Qi(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===by&&"_payload"in e&&rf(e._payload)}pt(Qi,"isLazyComponent");function rf(e){return typeof e=="object"&&e!==null&&"then"in e}pt(rf,"isPromiseLike");var yy=pt(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),Cy=pt(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),jr=g[" use ".trim().toString()],wy=Object.defineProperty,Sy=(e,t)=>wy(e,"name",{value:t,configurable:!0}),_y=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Te=_y.reduce((e,t)=>{const n=In(`Primitive.${t}`),o=g.forwardRef((r,s)=>{const{asChild:i,...a}=r,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(l,{...a,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function sf(e,t){e&&mn.flushSync(()=>e.dispatchEvent(t))}Sy(sf,"dispatchDiscreteCustomEvent");var Ty=Object.defineProperty,Lt=(e,t)=>Ty(e,"name",{value:t,configurable:!0}),af="Progress",ea=100,[Ey,RO]=eo(af),[Py,Iy]=Ey(af),Ay=g.forwardRef(Lt(function(t,n){const{__scopeProgress:o,value:r=null,max:s,getValueLabel:i=lf,...a}=t;(s||s===0)&&!na(s)&&console.error(cf(`${s}`,"Progress"));const l=na(s)?s:ea;r!==null&&!oa(r,l)&&console.error(uf(`${r}`,"Progress"));const c=oa(r,l)?r:null,u=Bo(c)?i(c,l):void 0;return h.jsx(Py,{scope:o,value:c,max:l,children:h.jsx(Te.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":Bo(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":ta(c,l),"data-value":c??void 0,"data-max":l,...a,ref:n})})},"Progress")),Oy="ProgressIndicator",Dy=g.forwardRef(Lt(function(t,n){const{__scopeProgress:o,...r}=t,s=Iy(Oy,o);return h.jsx(Te.div,{"data-state":ta(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...r,ref:n})},"ProgressIndicator"));function lf(e,t){return`${Math.round(e/t*100)}%`}Lt(lf,"defaultGetValueLabel");function ta(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}Lt(ta,"getProgressState");function Bo(e){return typeof e=="number"}Lt(Bo,"isNumber");function na(e){return Bo(e)&&!isNaN(e)&&e>0}Lt(na,"isValidMaxNumber");function oa(e,t){return Bo(e)&&!isNaN(e)&&e<=t&&e>=0}Lt(oa,"isValidValueNumber");function cf(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${ea}\`.`}Lt(cf,"getInvalidMaxError");function uf(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
110
+ */const gy=ze("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
111
+ * @license lucide-react v0.511.0 - ISC
112
+ *
113
+ * This source code is licensed under the ISC license.
114
+ * See the LICENSE file in the root directory of this source tree.
115
+ */const hy=ze("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
116
+ * @license lucide-react v0.511.0 - ISC
117
+ *
118
+ * This source code is licensed under the ISC license.
119
+ * See the LICENSE file in the root directory of this source tree.
120
+ */const qi=ze("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Ki={oxResizableHandle:"_oxResizableHandle_mi1bf_2",oxResizableHandleBar:"_oxResizableHandleBar_mi1bf_2",oxResizableHandleIcon:"_oxResizableHandleIcon_mi1bf_2"},Md=({className:e,orientation:t="horizontal",children:n,dataTestid:o,...r})=>h.jsx(Ed,{"data-slot":"resizable-handle","data-testid":o,"data-orientation":t,className:G(Ki.oxResizableHandle,e),...r,children:h.jsx("div",{className:Ki.oxResizableHandleBar,children:n??h.jsx(kd,{className:Ki.oxResizableHandleIcon})})});Md.displayName="OxResizableHandle";const $d=e=>{if(e)try{return Intl.getCanonicalLocales(e.replace(/_/g,"-"))[0]}catch{return}},Rd=y.createContext(void 0),Xi=()=>y.useContext(Rd),Ld=({locale:e,children:t})=>{const n=y.useMemo(()=>$d(e),[e]);return h.jsx(Rd.Provider,{value:n,children:t})};Ld.displayName="OxLocaleProvider";const my={"ox-bullet":"_ox-bullet_2x4cd_2","ox-bullet--24":"_ox-bullet--24_2x4cd_2","ox-bullet--16":"_ox-bullet--16_2x4cd_2","ox-bullet--12":"_ox-bullet--12_2x4cd_2","ox-bullet--8":"_ox-bullet--8_2x4cd_2","ox-bullet--active":"_ox-bullet--active_2x4cd_2","ox-bullet--info":"_ox-bullet--info_2x4cd_2","ox-bullet--warning":"_ox-bullet--warning_2x4cd_2","ox-bullet--neutral":"_ox-bullet--neutral_2x4cd_2"},qr=y.forwardRef(({className:e,size:t="24",color:n="active",dataTestid:o,...r},s)=>h.jsx("div",{ref:s,"data-slot":"bullet","data-testid":o,className:G(We(my,Fd({size:t,color:n})),e),...r}));qr.displayName="OxBullet";const Fd=je("ox-bullet",{variants:{size:{24:"ox-bullet--24",16:"ox-bullet--16",12:"ox-bullet--12",8:"ox-bullet--8"},color:{active:"ox-bullet--active",info:"ox-bullet--info",warning:"ox-bullet--warning",neutral:"ox-bullet--neutral"}},defaultVariants:{size:"24",color:"active"}}),vy={xs:"8",sm:"8",md:"12",lg:"16",xl:"16"};function zd(e){return{bulletSize:vy[e]}}const In={oxAvatarRoundedImage:"_oxAvatarRoundedImage_89zl0_2",oxAvatarRoundedContent:"_oxAvatarRoundedContent_89zl0_2",oxAvatarRounded:"_oxAvatarRounded_89zl0_2",oxAvatarRoundedBullet:"_oxAvatarRoundedBullet_89zl0_2",oxAvatarRoundedAction:"_oxAvatarRoundedAction_89zl0_2",oxAvatarRoundedLabel:"_oxAvatarRoundedLabel_89zl0_2","ox-avatar-rounded--xs":"_ox-avatar-rounded--xs_89zl0_2","ox-avatar-rounded--sm":"_ox-avatar-rounded--sm_89zl0_2","ox-avatar-rounded--md":"_ox-avatar-rounded--md_89zl0_2","ox-avatar-rounded--lg":"_ox-avatar-rounded--lg_89zl0_2","ox-avatar-rounded--xl":"_ox-avatar-rounded--xl_89zl0_2","ox-avatar-rounded--brand":"_ox-avatar-rounded--brand_89zl0_2","ox-avatar-rounded--neutral":"_ox-avatar-rounded--neutral_89zl0_2","ox-avatar-rounded--disabled":"_ox-avatar-rounded--disabled_89zl0_2"},Kr=y.forwardRef(({className:e,src:t,size:n="md",tone:o="brand",disabled:r=!1,status:s,alt:i="",action:a,label:l,children:c,dataTestid:u,...d},f)=>{const{bulletSize:p}=zd(n??"md");return h.jsxs("span",{ref:f,"data-slot":"avatar","data-testid":u,className:G(In.oxAvatarRounded,We(In,Bd({size:n,tone:o,disabled:r})),e),...d,children:[t?h.jsx("img",{className:In.oxAvatarRoundedImage,"data-testid":`${u}-image`,src:t,alt:i}):h.jsx("span",{className:In.oxAvatarRoundedContent,children:c}),s&&h.jsx(qr,{className:In.oxAvatarRoundedBullet,dataTestid:`${u}-bullet`,color:s,size:p}),a&&h.jsx("span",{className:In.oxAvatarRoundedAction,children:a}),l&&h.jsx("span",{className:In.oxAvatarRoundedLabel,children:l})]})});Kr.displayName="OxAvatarRounded";const An={oxAvatarSquareImage:"_oxAvatarSquareImage_7zh6v_2",oxAvatarSquareContent:"_oxAvatarSquareContent_7zh6v_2",oxAvatarSquare:"_oxAvatarSquare_7zh6v_2",oxAvatarSquareBullet:"_oxAvatarSquareBullet_7zh6v_2",oxAvatarSquareAction:"_oxAvatarSquareAction_7zh6v_2",oxAvatarSquareLabel:"_oxAvatarSquareLabel_7zh6v_2","ox-avatar-square--xs":"_ox-avatar-square--xs_7zh6v_2","ox-avatar-square--sm":"_ox-avatar-square--sm_7zh6v_2","ox-avatar-square--md":"_ox-avatar-square--md_7zh6v_2","ox-avatar-square--lg":"_ox-avatar-square--lg_7zh6v_2","ox-avatar-square--xl":"_ox-avatar-square--xl_7zh6v_2","ox-avatar-square--brand":"_ox-avatar-square--brand_7zh6v_2","ox-avatar-square--neutral":"_ox-avatar-square--neutral_7zh6v_2","ox-avatar-square--disabled":"_ox-avatar-square--disabled_7zh6v_2"},Yi=y.forwardRef(({className:e,src:t,size:n="md",tone:o="brand",disabled:r=!1,status:s,alt:i="",action:a,label:l,children:c,dataTestid:u,...d},f)=>{const{bulletSize:p}=zd(n??"md");return h.jsxs("span",{ref:f,"data-slot":"avatar","data-testid":u,className:G(An.oxAvatarSquare,We(An,Vd({size:n,tone:o,disabled:r})),e),...d,children:[t?h.jsx("img",{className:An.oxAvatarSquareImage,"data-testid":`${u}-image`,src:t,alt:i}):h.jsx("span",{className:An.oxAvatarSquareContent,children:c}),s&&h.jsx(qr,{className:An.oxAvatarSquareBullet,dataTestid:`${u}-bullet`,color:s,size:p}),a&&h.jsx("span",{className:An.oxAvatarSquareAction,children:a}),l&&h.jsx("span",{className:An.oxAvatarSquareLabel,children:l})]})});Yi.displayName="OxAvatarSquare";const Vd=je("",{variants:{size:{xs:"ox-avatar-square--xs",sm:"ox-avatar-square--sm",md:"ox-avatar-square--md",lg:"ox-avatar-square--lg",xl:"ox-avatar-square--xl"},tone:{brand:"ox-avatar-square--brand",neutral:"ox-avatar-square--neutral"},disabled:{true:"ox-avatar-square--disabled",false:""}},defaultVariants:{size:"md",tone:"brand",disabled:!1}}),Bd=je("",{variants:{size:{xs:"ox-avatar-rounded--xs",sm:"ox-avatar-rounded--sm",md:"ox-avatar-rounded--md",lg:"ox-avatar-rounded--lg",xl:"ox-avatar-rounded--xl"},tone:{brand:"ox-avatar-rounded--brand",neutral:"ox-avatar-rounded--neutral"},disabled:{true:"ox-avatar-rounded--disabled",false:""}},defaultVariants:{size:"md",tone:"brand",disabled:!1}}),jo={oxAvatarGroup:"_oxAvatarGroup_knrx0_2",oxAvatarGroupInteractive:"_oxAvatarGroupInteractive_knrx0_2",oxAvatarGroupStack:"_oxAvatarGroupStack_knrx0_2",oxAvatarGroupItem:"_oxAvatarGroupItem_knrx0_2"},Hd=y.forwardRef(({className:e,avatars:t,max:n=3,interactive:o=!0,onClick:r,dataTestid:s,...i},a)=>{const l=y.useMemo(()=>t.slice(0,n),[t,n]),c=y.useMemo(()=>{const u=t.length;return u>n?u-n:0},[t,n]);return h.jsx("button",{ref:a,type:"button","data-slot":"avatar-group","data-testid":s,className:G(jo.oxAvatarGroup,o&&jo.oxAvatarGroupInteractive,e),onClick:u=>{o&&(r==null||r(u))},...i,children:h.jsxs("div",{className:jo.oxAvatarGroupStack,children:[l.map((u,d)=>h.jsx("div",{className:jo.oxAvatarGroupItem,style:{zIndex:d},children:h.jsx(Kr,{dataTestid:`${s}-avatar-${d}`,src:u.src,size:"xs",disabled:u.disabled,children:u.initials})},d)),c>0&&h.jsx("div",{className:jo.oxAvatarGroupItem,style:{zIndex:l.length},children:h.jsxs(Kr,{dataTestid:`${s}-count`,size:"xs",tone:"neutral",children:["+",c]})})]})})});Hd.displayName="OxAvatarGroup";const xy={"ox-badge":"_ox-badge_1kgwp_2","ox-badge--sm":"_ox-badge--sm_1kgwp_2","ox-badge--md":"_ox-badge--md_1kgwp_2","ox-badge--lg":"_ox-badge--lg_1kgwp_2"},Gd=y.forwardRef(({className:e,size:t="md",dataTestid:n,...o},r)=>h.jsx("span",{ref:r,"data-slot":"badge","data-testid":n,className:G(We(xy,jd({size:t})),e),...o}));Gd.displayName="OxBadge";const jd=je("ox-badge",{variants:{size:{sm:"ox-badge--sm",md:"ox-badge--md",lg:"ox-badge--lg"}},defaultVariants:{size:"md"}}),Xr={oxCalendarDate:"_oxCalendarDate_18qnw_2",oxCalendarDateDay:"_oxCalendarDateDay_18qnw_2",oxCalendarDateMonth:"_oxCalendarDateMonth_18qnw_2","ox-calendar-date--active":"_ox-calendar-date--active_18qnw_2","ox-calendar-date--idle":"_ox-calendar-date--idle_18qnw_2"},by=e=>{const t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),o=String(e.getDate()).padStart(2,"0");return`${t}-${n}-${o}`},yy=(e,t)=>new Intl.DateTimeFormat(t,{month:"short"}).format(e),Wd=y.forwardRef(({className:e,date:t,active:n=!1,month:o,dataTestid:r,...s},i)=>{const a=Xi();return h.jsxs("time",{ref:i,dateTime:by(t),"data-slot":"calendar-date","data-testid":r,className:G(Xr.oxCalendarDate,We(Xr,Ud({active:n})),e),...s,children:[h.jsx("span",{className:Xr.oxCalendarDateDay,"data-slot":"calendar-date-day","data-testid":`${r}-day`,children:t.getDate()}),h.jsx("span",{className:Xr.oxCalendarDateMonth,"data-slot":"calendar-date-month","data-testid":`${r}-month`,children:o??yy(t,a)})]})});Wd.displayName="OxCalendarDate";const Ud=je("",{variants:{active:{true:"ox-calendar-date--active",false:"ox-calendar-date--idle"}},defaultVariants:{active:!1}}),Cy=String.raw,Sy=(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0})(),wy=typeof CSS<"u"&&CSS.supports&&CSS.supports("line-height","mod(1,1)"),qd=typeof matchMedia<"u"?matchMedia("(prefers-reduced-motion: reduce)"):null,Yr="--_number-flow-d-opacity",Ji="--_number-flow-d-width",Jr="--_number-flow-dx",Zi="--_number-flow-d",_y=(()=>{try{return CSS.registerProperty({name:Yr,syntax:"<number>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:Jr,syntax:"<length>",inherits:!0,initialValue:"0px"}),CSS.registerProperty({name:Ji,syntax:"<number>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:Zi,syntax:"<number>",inherits:!0,initialValue:"0"}),!0}catch{return!1}})(),Qi="round(nearest, calc(var(--number-flow-mask-height, 0.25em) / 2), 1px)",On=`calc(${Qi} * 2)`,ea="var(--number-flow-mask-width, 0.5em)",Dn=`calc(${ea} / var(--scale-x))`,Zr="#000 0, transparent 71%",Ty=Cy`:host{display:inline-block;direction:ltr;white-space:nowrap;isolation:isolate;line-height:1}.number,.number__inner{display:inline-block;transform-origin:left top}:host([data-will-change]) :is(.number,.number__inner,.section,.digit,.digit__num,.symbol){will-change:transform}.number{--scale-x:calc(1 + var(${Ji}) / var(--width));transform:translateX(var(${Jr})) scaleX(var(--scale-x));margin:0 calc(-1 * ${ea});position:relative;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 ${Dn},#000 calc(100% - ${Dn}),transparent ),linear-gradient(to bottom,transparent 0,#000 ${On},#000 calc(100% - ${On}),transparent 100% ),radial-gradient(at bottom right,${Zr}),radial-gradient(at bottom left,${Zr}),radial-gradient(at top left,${Zr}),radial-gradient(at top right,${Zr});-webkit-mask-size:100% calc(100% - ${On} * 2),calc(100% - ${Dn} * 2) 100%,${Dn} ${On},${Dn} ${On},${Dn} ${On},${Dn} ${On};-webkit-mask-position:center,center,top left,top right,bottom right,bottom left;-webkit-mask-repeat:no-repeat}.number__inner{padding:${Qi} ${ea};transform:scaleX(calc(1 / var(--scale-x))) translateX(calc(-1 * var(${Jr})))}:host > :not(.number){z-index:5}.section,.symbol{display:inline-block;position:relative;isolation:isolate}.section::after{content:'\200b';display:inline-block}.section--justify-left{transform-origin:center left}.section--justify-right{transform-origin:center right}.section > [inert],.symbol > [inert]{margin:0 !important;position:absolute !important;z-index:-1}.digit{display:inline-block;position:relative;--c:var(--current) + var(${Zi})}.digit__num,.number .section::after{padding:${Qi} 0}.digit__num{display:inline-block;--offset-raw:mod(var(--length) + var(--n) - mod(var(--c),var(--length)),var(--length));--offset:calc( var(--offset-raw) - var(--length) * round(down,var(--offset-raw) / (var(--length) / 2),1) );--y:clamp(-100%,var(--offset) * 100%,100%);transform:translateY(var(--y))}.digit__num[inert]{position:absolute;top:0;left:50%;transform:translateX(-50%) translateY(var(--y))}.digit:not(.is-spinning) .digit__num[inert]{display:none}.symbol__value{display:inline-block;mix-blend-mode:plus-lighter;white-space:pre}.section--justify-left .symbol > [inert]{left:0}.section--justify-right .symbol > [inert]{right:0}.animate-presence{opacity:calc(1 + var(${Yr}))}`,Ey=typeof HTMLElement<"u"?HTMLElement:class{},tn=(e,t,n)=>{const o=document.createElement(e),[r,s]=Array.isArray(t)?[void 0,t]:[t,n];return r&&Object.assign(o,r),s==null||s.forEach(i=>o.appendChild(i)),o},Py=(e,t)=>{var n;return t==="left"?e.offsetLeft:(((n=e.offsetParent instanceof HTMLElement?e.offsetParent:null)==null?void 0:n.offsetWidth)??0)-e.offsetWidth-e.offsetLeft},Iy=e=>e.offsetWidth>0&&e.offsetHeight>0,Ay=(e,t)=>{typeof HTMLElement<"u"&&typeof customElements<"u"&&!customElements.get(e)&&customElements.define(e,t)};function Oy(e,t,{reverse:n=!1}={}){const o=e.length;for(let r=n?o-1:0;n?r>=0:r<o;n?r--:r++)t(e[r],r)}function Dy(e,t,n,o){const r=t.formatToParts(e);n&&r.unshift({type:"prefix",value:n}),o&&r.push({type:"suffix",value:o});const s=[],i=[],a=[],l=[],c={},u=g=>`${g}:${c[g]=(c[g]??-1)+1}`;let d="",f=!1,p=!1;for(const g of r){d+=g.value;const x=g.type==="minusSign"||g.type==="plusSign"?"sign":g.type;x==="integer"?(f=!0,i.push(...g.value.split("").map(b=>({type:x,value:parseInt(b)})))):x==="group"?i.push({type:x,value:g.value}):x==="decimal"?(p=!0,a.push({type:x,value:g.value,key:u(x)})):x==="fraction"?a.push(...g.value.split("").map(b=>({type:x,value:parseInt(b),key:u(x),pos:-1-c[x]}))):(f||p?l:s).push({type:x,value:g.value,key:u(x)})}const m=[];for(let g=i.length-1;g>=0;g--){const x=i[g];m.unshift(x.type==="integer"?{...x,key:u(x.type),pos:c[x.type]}:{...x,key:u(x.type)})}return{pre:s,integer:m,fraction:a,post:l,valueAsString:d,value:typeof e=="string"?parseFloat(e):e}}const Kd=wy&&Sy&&_y;let Xd=class extends Ey{constructor(){super(),this.created=!1,this.batched=!1,this._preUpdated=!1;const{animated:t,...n}=this.constructor.defaultProps;this._animated=this.computedAnimated=t,Object.assign(this,n)}get animated(){return this._animated}set animated(t){var n;this.animated!==t&&(this._animated=t,(n=this.shadowRoot)==null||n.getAnimations().forEach(o=>o.finish()))}set data(t){var n,o;if(t==null||t===this._data)return;const{pre:r,integer:s,fraction:i,post:a,value:l}=t;if(this.created){const c=this._data;this._data=t,this.computedTrend=typeof this.trend=="function"?this.trend(c.value,l):this.trend,this.computedAnimated=Kd&&this._animated&&(!this.respectMotionPreference||!((n=qd)!=null&&n.matches))&&Iy(this)&&this.ownerDocument.visibilityState==="visible",(o=this.plugins)==null||o.forEach(u=>{var d;return(d=u.onUpdate)==null?void 0:d.call(u,t,c,this)}),this.batched||this.willUpdate(),this._pre.update(r),this._num.update({integer:s,fraction:i}),this._post.update(a),this.batched||this.didUpdate()}else{this._data=t,this.attachShadow({mode:"open"});try{this._internals??(this._internals=this.attachInternals()),this._internals.role="img"}catch{}const c=document.createElement("style");this.nonce&&(c.nonce=this.nonce),c.textContent=Ty,this.shadowRoot.appendChild(c),this._pre=new Zd(this,r,{justify:"right",part:"left"}),this.shadowRoot.appendChild(this._pre.el),this._num=new Ny(this,s,i),this.shadowRoot.appendChild(this._num.el),this._post=new Zd(this,a,{justify:"left",part:"right"}),this.shadowRoot.appendChild(this._post.el),this.created=!0}try{this._internals.ariaLabel=t.valueAsString}catch{}}willUpdate(){var t;this._preUpdated=Kd&&this._animated&&(!this.respectMotionPreference||!((t=qd)!=null&&t.matches))&&this.ownerDocument.visibilityState==="visible",this._preUpdated&&(this._pre.willUpdate(),this._num.willUpdate(),this._post.willUpdate())}didUpdate(){if(!this.computedAnimated||!this._preUpdated)return;this._abortAnimationsFinish?this._abortAnimationsFinish.abort():this.dispatchEvent(new Event("animationsstart")),this._pre.didUpdate(),this._num.didUpdate(),this._post.didUpdate();const t=new AbortController;Promise.all(this.shadowRoot.getAnimations().map(n=>n.finished)).then(()=>{t.signal.aborted||(this.dispatchEvent(new Event("animationsfinish")),this._abortAnimationsFinish=void 0)}),this._abortAnimationsFinish=t}};Xd.defaultProps={transformTiming:{duration:900,easing:"linear(0,.005,.019,.039,.066,.096,.129,.165,.202,.24,.278,.316,.354,.39,.426,.461,.494,.526,.557,.586,.614,.64,.665,.689,.711,.731,.751,.769,.786,.802,.817,.831,.844,.856,.867,.877,.887,.896,.904,.912,.919,.925,.931,.937,.942,.947,.951,.955,.959,.962,.965,.968,.971,.973,.976,.978,.98,.981,.983,.984,.986,.987,.988,.989,.99,.991,.992,.992,.993,.994,.994,.995,.995,.996,.996,.9963,.9967,.9969,.9972,.9975,.9977,.9979,.9981,.9982,.9984,.9985,.9987,.9988,.9989,1)"},spinTiming:void 0,opacityTiming:{duration:450,easing:"ease-out"},animated:!0,trend:(e,t)=>Math.sign(t-e),respectMotionPreference:!0,plugins:void 0,digits:void 0};class Ny{constructor(t,n,o,{className:r,...s}={}){this.flow=t,this._integer=new Jd(t,n,{justify:"right",part:"integer"}),this._fraction=new Jd(t,o,{justify:"left",part:"fraction"}),this._inner=tn("span",{className:"number__inner"},[this._integer.el,this._fraction.el]),this.el=tn("span",{...s,part:"number",className:`number ${r??""}`},[this._inner])}willUpdate(){this._prevWidth=this.el.offsetWidth,this._prevLeft=this.el.getBoundingClientRect().left,this._integer.willUpdate(),this._fraction.willUpdate()}update({integer:t,fraction:n}){this._integer.update(t),this._fraction.update(n)}didUpdate(){const t=this.el.getBoundingClientRect();this._integer.didUpdate(),this._fraction.didUpdate();const n=this._prevLeft-t.left,o=this.el.offsetWidth,r=this._prevWidth-o;this.el.style.setProperty("--width",String(o)),this.el.animate({[Jr]:[`${n}px`,"0px"],[Ji]:[r,0]},{...this.flow.transformTiming,composite:"accumulate"})}}class Yd{constructor(t,n,{justify:o,className:r,...s},i){this.flow=t,this.children=new Map,this.onCharRemove=l=>()=>{this.children.delete(l)},this.justify=o;const a=n.map(l=>this.addChar(l).el);this.el=tn("span",{...s,className:`section section--justify-${o} ${r??""}`},i?i(a):a)}addChar(t,{startDigitsAtZero:n=!1,...o}={}){const r=t.type==="integer"||t.type==="fraction"?new ef(this,t.type,n?0:t.value,t.pos,{...o,onRemove:this.onCharRemove(t.key)}):new ky(this,t.type,t.value,{...o,onRemove:this.onCharRemove(t.key)});return this.children.set(t.key,r),r}unpop(t){t.el.removeAttribute("inert"),t.el.style.top="",t.el.style[this.justify]=""}pop(t){t.forEach(n=>{n.el.style.top=`${n.el.offsetTop}px`,n.el.style[this.justify]=`${Py(n.el,this.justify)}px`}),t.forEach(n=>{n.el.setAttribute("inert",""),n.present=!1})}addNewAndUpdateExisting(t){const n=new Map,o=new Map,r=this.justify==="left",s=r?"prepend":"append";if(Oy(t,i=>{let a;this.children.has(i.key)?(a=this.children.get(i.key),o.set(i,a),this.unpop(a),a.present=!0):(a=this.addChar(i,{startDigitsAtZero:!0,animateIn:!0}),n.set(i,a)),this.el[s](a.el)},{reverse:r}),this.flow.computedAnimated){const i=this.el.getBoundingClientRect();n.forEach(a=>{a.willUpdate(i)})}n.forEach((i,a)=>{i.update(a.value)}),o.forEach((i,a)=>{i.update(a.value)})}willUpdate(){const t=this.el.getBoundingClientRect();this._prevOffset=t[this.justify],this.children.forEach(n=>n.willUpdate(t))}didUpdate(){const t=this.el.getBoundingClientRect();this.children.forEach(r=>r.didUpdate(t));const n=t[this.justify],o=this._prevOffset-n;o&&this.children.size&&this.el.animate({transform:[`translateX(${o}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}class Jd extends Yd{update(t){const n=new Map;this.children.forEach((o,r)=>{t.find(s=>s.key===r)||n.set(r,o),this.unpop(o)}),this.addNewAndUpdateExisting(t),n.forEach(o=>{o instanceof ef&&o.update(0)}),this.pop(n)}}let Zd=class extends Yd{update(t){const n=new Map;this.children.forEach((o,r)=>{t.find(s=>s.key===r)||n.set(r,o)}),this.pop(n),this.addNewAndUpdateExisting(t)}};class ta{constructor(t,n,{onRemove:o,animateIn:r=!1}={}){this.flow=t,this.el=n,this._present=!0,this._remove=()=>{var s;this.el.remove(),(s=this._onRemove)==null||s.call(this)},this.el.classList.add("animate-presence"),this.flow.computedAnimated&&r&&this.el.animate({[Yr]:[-.9999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),this._onRemove=o}get present(){return this._present}set present(t){if(this._present!==t){if(this._present=t,t?this.el.removeAttribute("inert"):this.el.setAttribute("inert",""),!this.flow.computedAnimated){t||this._remove();return}this.el.style.setProperty("--_number-flow-d-opacity",t?"0":"-.999"),this.el.animate({[Yr]:t?[-.9999,0]:[.999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),t?this.flow.removeEventListener("animationsfinish",this._remove):this.flow.addEventListener("animationsfinish",this._remove,{once:!0})}}}class Qd extends ta{constructor(t,n,o,r){super(t.flow,o,r),this.section=t,this.value=n,this.el=o}}class ef extends Qd{constructor(t,n,o,r,s){var i,a;const l=(((a=(i=t.flow.digits)==null?void 0:i[r])==null?void 0:a.max)??9)+1,c=Array.from({length:l}).map((d,f)=>{const p=tn("span",{className:"digit__num"},[document.createTextNode(String(f))]);return f!==o&&p.setAttribute("inert",""),p.style.setProperty("--n",String(f)),p}),u=tn("span",{part:`digit ${n}-digit`,className:"digit"},c);u.style.setProperty("--current",String(o)),u.style.setProperty("--length",String(l)),super(t,o,u,s),this.pos=r,this._onAnimationsFinish=()=>{this.el.classList.remove("is-spinning")},this._numbers=c,this.length=l}willUpdate(t){const n=this.el.getBoundingClientRect();this._prevValue=this.value;const o=n[this.section.justify]-t[this.section.justify],r=n.width/2;this._prevCenter=this.section.justify==="left"?o+r:o-r}update(t){this.el.style.setProperty("--current",String(t)),this._numbers.forEach((n,o)=>o===t?n.removeAttribute("inert"):n.setAttribute("inert","")),this.value=t}didUpdate(t){const n=this.el.getBoundingClientRect(),o=n[this.section.justify]-t[this.section.justify],r=n.width/2,s=this.section.justify==="left"?o+r:o-r,i=this._prevCenter-s;i&&this.el.animate({transform:[`translateX(${i}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"});const a=this.getDelta();a&&(this.el.classList.add("is-spinning"),this.el.animate({[Zi]:[-a,0]},{...this.flow.spinTiming??this.flow.transformTiming,composite:"accumulate"}),this.flow.addEventListener("animationsfinish",this._onAnimationsFinish,{once:!0}))}getDelta(){var t;if(this.flow.plugins)for(const r of this.flow.plugins){const s=(t=r.getDelta)==null?void 0:t.call(r,this.value,this._prevValue,this);if(s!=null)return s}const n=this.value-this._prevValue,o=this.flow.computedTrend||Math.sign(n);return o<0&&this.value>this._prevValue?this.value-this.length-this._prevValue:o>0&&this.value<this._prevValue?this.length-this._prevValue+this.value:n}}class ky extends Qd{constructor(t,n,o,r){const s=tn("span",{className:"symbol__value",textContent:o});super(t,o,tn("span",{part:`symbol ${n}`,className:"symbol"},[s]),r),this.type=n,this._children=new Map,this._onChildRemove=i=>()=>{this._children.delete(i)},this._children.set(o,new ta(this.flow,s,{onRemove:this._onChildRemove(o)}))}willUpdate(t){if(this.type==="decimal")return;const n=this.el.getBoundingClientRect();this._prevOffset=n[this.section.justify]-t[this.section.justify]}update(t){if(this.value!==t){const n=this._children.get(this.value);n&&(n.present=!1);const o=this._children.get(t);if(o)o.present=!0;else{const r=tn("span",{className:"symbol__value",textContent:t});this.el.appendChild(r),this._children.set(t,new ta(this.flow,r,{animateIn:!0,onRemove:this._onChildRemove(t)}))}}this.value=t}didUpdate(t){if(this.type==="decimal")return;const n=this.el.getBoundingClientRect()[this.section.justify]-t[this.section.justify],o=this._prevOffset-n;o&&this.el.animate({transform:[`translateX(${o}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}const na=parseInt((n0=v.version.match(/^(\d+)\./))==null?void 0:n0[1])>=19,My=["data","digits"];class oa extends Xd{attributeChangedCallback(t,n,o){this[t]=JSON.parse(o)}}oa.observedAttributes=na?[]:My,Ay("number-flow-react",oa);const ra={};function $y(e){return e}const tf=na?$y:JSON.stringify;function nf(e){const{transformTiming:t,spinTiming:n,opacityTiming:o,animated:r,respectMotionPreference:s,trend:i,plugins:a,...l}=e;return[{transformTiming:t,spinTiming:n,opacityTiming:o,animated:r,respectMotionPreference:s,trend:i,plugins:a},l]}class Ry extends v.Component{updateProperties(t){if(!this.el)return;this.el.batched=!this.props.isolate;const[n]=nf(this.props);Object.entries(n).forEach(([o,r])=>{this.el[o]=r??oa.defaultProps[o]}),t!=null&&t.onAnimationsStart&&this.el.removeEventListener("animationsstart",t.onAnimationsStart),this.props.onAnimationsStart&&this.el.addEventListener("animationsstart",this.props.onAnimationsStart),t!=null&&t.onAnimationsFinish&&this.el.removeEventListener("animationsfinish",t.onAnimationsFinish),this.props.onAnimationsFinish&&this.el.addEventListener("animationsfinish",this.props.onAnimationsFinish)}componentDidMount(){this.updateProperties(),na&&this.el&&(this.el.digits=this.props.digits,this.el.data=this.props.data)}getSnapshotBeforeUpdate(t){var n;if(this.updateProperties(t),t.data!==this.props.data){if(this.props.group)return this.props.group.willUpdate(),()=>{var o;return(o=this.props.group)==null?void 0:o.didUpdate()};if(!this.props.isolate)return(n=this.el)==null||n.willUpdate(),()=>{var o;return(o=this.el)==null?void 0:o.didUpdate()}}return null}componentDidUpdate(t,n,o){o==null||o()}handleRef(t){this.props.innerRef&&(this.props.innerRef.current=t),this.el=t}render(){const[t,{innerRef:n,className:o,data:r,nonce:s,willChange:i,isolate:a,group:l,digits:c,onAnimationsStart:u,onAnimationsFinish:d,...f}]=nf(this.props);return v.createElement("number-flow-react",{ref:this.handleRef,"data-will-change":i?"":void 0,class:o,nonce:s,...f,dangerouslySetInnerHTML:{__html:""},suppressHydrationWarning:!0,digits:tf(c),data:tf(r)})}constructor(t){super(t),this.handleRef=this.handleRef.bind(this)}}const Ly=v.forwardRef(function({value:t,locales:n,format:o,prefix:r,suffix:s,...i},a){v.useImperativeHandle(a,()=>l.current,[]);const l=v.useRef(void 0),c=v.useContext(Fy);c==null||c.useRegister(l);const u=v.useMemo(()=>n?JSON.stringify(n):"",[n]),d=v.useMemo(()=>o?JSON.stringify(o):"",[o]),f=v.useMemo(()=>{var m;const p=ra[m=`${u}:${d}`]??(ra[m]=new Intl.NumberFormat(n,o));return Dy(t,p,r,s)},[t,u,d,r,s]);return v.createElement(Ry,{...i,group:c,data:f,innerRef:l})}),Fy=v.createContext(void 0),zy={oxNumberFlow:"_oxNumberFlow_1gbln_2"},of=y.forwardRef(({className:e,preset:t="number",value:n,dataTestid:o,...r},s)=>{const i=sf(t),a=Xi(),l=i.locales??a;return h.jsx(Ly,{ref:s,value:n,format:i.format,locales:l,trend:i.trend,digits:i.digits,"data-slot":"number-flow","data-testid":o,className:G(zy.oxNumberFlow,e),...r})});of.displayName="OxNumberFlow";const rf={number:{},currency:{format:{style:"currency",currency:"EUR"}},percent:{format:{style:"percent",maximumFractionDigits:1}},compact:{format:{notation:"compact",compactDisplay:"short"}},time:{format:{minimumIntegerDigits:2},digits:{1:{max:5}}}},sf=(e="number")=>typeof e=="string"?rf[e]:e,Vy=Object.keys(rf),By="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='320'%20height='84'%20fill='none'%20viewBox='0%200%2018%204'%3e%3cpath%20fill='%23fff'%20d='m5.64156%201.68819.00197.0005c.27061.06058.62132.17466.61437.55514.00268.07837-.01394.15618-.04836.22643-.03443.07025-.08557.13072-.14884.17596-.14298.10083-.31439.15203-.48853.14593-.3364%200-.58748-.14629-.70544-.39069-.00331-.00706-.00386-.01513-.00155-.02259s.00731-.01377.01401-.01765l.27191-.15982c.00343-.00207.00723-.00344.01117-.00403.00395-.00059.00798-.00039.01185.0006.00388.00098.00751.00273.01072.00514.0032.00241.0059.00544.00795.00891.00045.00095.00103.0019.00148.0029.03139.07314.0849.1343.15283.17467.06792.04037.14674.05788.22512.04999.20052%200%20.29886-.06766.29886-.19966%200-.11412-.14791-.1815-.33413-.22783-.26371-.06766-.6189-.17447-.61187-.54828-.00255-.07581.0127-.15115.04448-.21984.03179-.06869.07922-.12877.13839-.1753.16643-.122199.374-.172472.57704-.139762.20304.032709.38493.145722.50568.314192.00446.00623.00882.01251.01309.01883.00202.00352.00335.00741.00389.01144.00053.00403.00028.00814-.00075.01207-.00103.00394-.00281.00763-.00525.01087s-.00549.00596-.00896.008l-.0005.00027-.26406.14975c-.00713.00418-.0156.00533-.02357.0032-.00796-.00214-.01477-.00738-.01892-.01459-.03064-.05692-.07683-.10368-.13304-.13471-.05621-.03102-.12007-.04499-.18392-.04022-.14418%200-.25672.06412-.25672.18868%200%20.11729.14723.17778.32969.23114M6.94987%202.01967c-.00408.00003-.00812.00087-.01188.00249-.00375.00161-.00716.00396-.01002.00691-.00286.00296-.00511.00645-.00663.01029-.00152.00383-.00226.00794-.00221.01207-.00001.00292.00039.00582.00121.00862.06834.24503.27576.38003.55288.38003.08323.00454.16633-.0111.24239-.04563s.14289-.08695.1949-.15289c.00451-.00607.01106-.01025.01841-.01178.00734-.00152.01499-.00027.02149.00352l.26053.15428c.00703.00421.01212.01108.01416.0191.00203.00801.00084.01652-.00332.02364-.00043.00079-.00093.00155-.00147.00227-.08538.11889-.19888.21417-.33008.27709-.13121.06293-.27592.09149-.42087.08306-.12702.00523-.25378-.01539-.37279-.06064s-.22784-.11422-.32006-.20281c-.16874-.18077-.26304-.41989-.26368-.66861s.09243-.48833.26024-.66999c.08652-.08985.19067-.16034.30574-.206955.11507-.046611.23851-.0683.36237-.063672.1188-.003205.23688.019637.34615.066959.10927.047318.20715.118008.28691.207208.1652.18088.25469.41958.24964.66589-.00041.04456-.00381.08904-.01017.13314-.00105.00742-.0047.01422-.01029.01914-.00559.00493-.01274.00765-.02014.00767zm.95307-.31333c.00408-.00004.00811-.00089.01186-.00251.00376-.00162.00716-.00397.01002-.00692.00285-.00295.0051-.00644.00663-.01027.00152-.00383.00228-.00793.00224-.01206%200-.00254-.00033-.00508-.00099-.00753-.02174-.11535-.08359-.21899-.17432-.29215-.09074-.07315-.20435-.11098-.32026-.10662-.11943-.00646-.23728.02997-.33279.10286s-.16254.17757-.1893.29559c-.00106.00398-.00134.00813-.00082.01222.00053.00408.00183.00803.00386.0116.00202.00357.00473.00671.00795.00922.00322.00252.00691.00437.01084.00544.00256.00069.0052.00105.00785.00109zM9.34382%201.68819l.00197.0005c.27066.06058.62141.17465.61438.55513.00266.07837-.01397.15618-.04839.22642-.03443.07025-.08556.13072-.14881.17598-.14298.10083-.31439.15203-.48853.14593-.3365%200-.58753-.14629-.70553-.39069-.00332-.00707-.00388-.01515-.00156-.02261.00232-.00747.00734-.01377.01406-.01764l.27183-.15981c.00341-.00208.0072-.00344.01113-.00403.00394-.00059.00796-.00038.01182.0006.00386.00099.00749.00274.01068.00515s.00588.00543.00791.00889c.00058.00093.0011.0019.00153.00291.03141.07316.08494.13434.1529.17472s.14682.05786.22523.04993c.20034%200%20.29886-.06765.29886-.19965%200-.11412-.14768-.18151-.33413-.22783-.26371-.06766-.61886-.17448-.61187-.54829-.00254-.0758.0127-.15114.04448-.21982.03178-.06869.07919-.12877.13834-.17531.16643-.122242.374-.172547.57706-.139853.20307.032693.38499.145703.50576.314183.00445.00627.00882.01259.01313.01897.00201.00354.00333.00744.00386.01149s.00026.00816-.00079.01211c-.00104.00394-.00285.00764-.0053.01088-.00246.00324-.00553.00595-.00902.00799h-.00041l-.26397.14974c-.00353.00208-.00743.00344-.01148.00399-.00405.00056-.00817.0003-.01212-.00076s-.00765-.00289-.0109-.0054-.00598-.00564-.00803-.00922c-.03064-.0569-.07682-.10367-.13303-.13469-.0562-.03103-.12005-.04499-.18389-.04023-.14418%200-.25672.06412-.25672.18867%200%20.1173.14718.17779.3296.23115M11.7375.965888h.3182c.0081%200%20.0159.003275.0217.009104.0057.005829.009.013735.009.021979V2.71505c0%20.00409-.0008.00813-.0024.01191-.0015.00378-.0038.00721-.0066.0101-.0029.00289-.0062.00518-.01.00675-.0037.00156-.0077.00237-.0117.00237h-.3182c-.0041%200-.0081-.00081-.0118-.00237-.0037-.00157-.0071-.00386-.01-.00675-.0028-.00289-.0051-.00632-.0066-.0101-.0016-.00378-.0024-.00782-.0023-.01191v-.13703c0-.00625-.0019-.01236-.0053-.01752-.0035-.00517-.0084-.00915-.0142-.01144-.0057-.00228-.012-.00276-.018-.00136-.006.00139-.0115.00459-.0157.00917-.0708.07869-.158.1406-.2551.18132-.0972.04071-.2021.05923-.3071.05423-.1162.00171-.2314-.02152-.3381-.06815-.1066-.04663-.2024-.1156-.2808-.20238-.1651-.18146-.2568-.41917-.2568-.6659s.0917-.48444.2568-.6659c.0784-.08681.1741-.15581.2808-.202452.1067-.046646.2219-.069879.3381-.06817.1049-.004871.2095.013483.3067.053782.0971.0403.1844.10157.2557.17954.0042.00456.0097.00773.0157.0091s.0123.00088.018-.00142c.0058-.0023.0107-.00629.0141-.01145.0035-.00517.0053-.01127.0053-.01751V.996608c0-.008243.0032-.016149.009-.021979.0057-.005829.0136-.009104.0217-.009104zm-.586%201.459622c.0735.00204.1467-.01112.215-.03867.0684-.02756.1304-.06893.1824-.1216.0521-.054.0929-.11802.1201-.18827.0272-.07026.0402-.14533.0382-.22075.0023-.07501-.0105-.14971-.0377-.21952s-.0682-.13324-.1206-.18642c-.1063-.10498-.2489-.16374-.3974-.16374s-.2911.05876-.3974.16374c-.0523.05317-.0933.11661-.1205.18642-.0272.0698-.0401.14451-.0377.21952-.002.07542.011.15049.0381.22075.0272.07025.068.13428.1201.18827.052.05266.1141.09404.1824.1216.0683.02755.1414.04071.215.03867M15.1489%201.64227v1.07261c0%20.00824-.0033.01615-.009.02199-.0058.00584-.0136.00912-.0217.00913H14.8c-.0082%200-.016-.00327-.0217-.0091-.0058-.00583-.009-.01373-.009-.02198V1.66673c0-.24571-.13-.38801-.3411-.38801-.2357%200-.3834.15668-.3834.47v.96588c0%20.00825-.0032.01615-.009.02198-.0057.00583-.0135.00911-.0217.00911h-.3182c-.0081%200-.016-.00328-.0217-.00911-.0058-.00583-.009-.01373-.009-.02198V1.66682c0-.24571-.1195-.38801-.3305-.38801-.2286%200-.3903.16018-.3903.47001v.96587c0%20.00826-.0033.01616-.009.02199-.0058.00582-.0136.0091-.0218.0091h-.3182c-.004%200-.008-.0008-.0117-.00235-.0038-.00156-.0072-.00385-.01-.00674-.0029-.00288-.0052-.00631-.0067-.01009-.0016-.00377-.0024-.00782-.0024-.01191V.99684c0-.004088.0008-.008134.0024-.011909.0015-.003774.0038-.007202.0067-.010089.0028-.002886.0062-.005174.01-.006733.0037-.001559.0077-.002358.0117-.002352h.3182c.0082%200%20.016.003272.0218.009099.0057.005826.009.013732.009.021984v.09075c0%20.00629.0019.01243.0054.01761.0035.00517.0085.00914.0143.01137s.0122.00261.0182.0011.0114-.00485.0156-.00957c.0564-.06312.126-.112769.2037-.145372s.1616-.047345.2456-.043164c.0933-.005037.1864.01476.2698.057422.0835.042664.1545.106704.2059.185754.0022.00325.005.00603.0082.00819.0033.00215.0069.00364.0107.00436.0039.00073.0078.00069.0116-.00012.0038-.0008.0074-.00236.0106-.00458.0028-.00189.0052-.00425.0072-.00699.0585-.08101.1362-.14582.2259-.188465s.1886-.061755.2875-.055571c.3973%200%20.6646.281336.6646.722976M15.9423%202.01966c-.0048.00002-.0095.00117-.0138.00336s-.008.00536-.0108.00925c-.0029.0039-.0048.00842-.0057.0132-.0008.00478-.0005.0097.0008.01435.0684.24503.2758.38003.5529.38003.0833.00453.1664-.01112.2424-.04564.0761-.03453.1429-.08695.1949-.15288.0045-.00606.0111-.01025.0184-.01177s.015-.00027.0215.00351l.2605.15428c.0035.00208.0066.00484.009.00811.0024.00328.0042.00701.0052.01098s.0013.0081.0007.01216-.002.00796-.004.01149c-.0004.00077-.001.00154-.0014.00227-.0854.1189-.1989.21418-.3302.2771-.1312.06293-.2759.09149-.4209.08305-.127.00523-.2537-.01539-.3727-.06065-.119-.04525-.2278-.11421-.32-.2028-.1688-.18075-.2631-.41986-.2638-.66858-.0006-.24873.0924-.48835.2602-.67002.0865-.08985.1907-.16034.3058-.206955.115-.04661.2385-.0683.3623-.063672.1188-.003201.2369.019642.3462.066964.1092.047323.2071.118003.2869.207203.1652.18089.2546.41958.2496.66589-.0004.04456-.0038.08905-.0102.13314-.001.00742-.0047.01422-.0103.01914-.0056.00493-.0127.00765-.0201.00767zm.9531-.31332c.004-.00004.0081-.0009.0118-.00252.0038-.00162.0072-.00397.01-.00692.0029-.00295.0051-.00644.0066-.01027s.0023-.00793.0023-.01205c-.0001-.00259-.0004-.00517-.001-.00767-.0218-.11535-.0837-.21899-.1744-.29215-.0908-.07315-.2044-.11097-.3203-.10662-.1194-.00646-.2373.02995-.3328.10284-.0955.07288-.1625.17755-.1892.29556-.0011.00399-.0014.00814-.0009.01223.0006.00409.0019.00803.0039.01161.002.00357.0048.00671.008.00922s.0069.00436.0108.00542c.0026.00069.0053.00105.0079.00109zM2.48199%203.62801c-.05187%200-.10258-.01558-.14572-.04476-.04313-.02918-.07675-.07065-.09661-.11917-.01985-.04853-.02505-.10192-.01494-.15344.01012-.05151.03509-.09883.07177-.13598l.83896-.84944c.02436-.02466.05328-.04423.08511-.05757.03183-.01335.06593-.02021.10038-.02021s.06857.00687.1004.02022c.03182.01335.06073.03292.08509.05758s.04369.05394.05687.08617c.01318.03222.01996.06676.01996.10163-.00001.03488-.00679.06942-.01997.10164-.01319.03222-.03252.0615-.05688.08616l-.839.8494c-.02432.02469-.05322.04427-.08504.05762s-.06593.0202-.10038.02015'/%3e%3cpath%20fill='%23fff'%20d='M1.83927%203.68436c-.02319.00001-.04629-.00304-.06868-.00907l-.92854-.24957C.720375%203.3928.60944%203.32844.520333%203.23906c-.089108-.08938-.153269-.20065-.186075-.32269L.0243037%201.75605c-.0324748-.12215-.03240286-.25072.0002043-.37284.0326071-.12212.096609-.23352.185606-.32305L1.05695.210719c.08926-.089227.2003-.1534007.32202-.186111.12173-.03271037.24989-.03281201.37167-.000295l1.15687.310873c.12167.032929.2326.097296.32172.186674.08911.089378.15329.200639.18612.322674l.24883.931306c.009.03368.0113.06882.00676.10339-.00454.03458-.01582.06792-.0332.09812-.01739.03021-.04053.05668-.06812.07791-.02758.02123-.05907.03681-.09266.04583-.03358.00903-.06861.01134-.10308.00679-.03448-.00456-.06772-.01587-.09783-.03331-.03012-.01743-.0565-.04065-.07767-.06831-.02117-.02767-.03671-.05925-.04571-.09293L2.90385.982024c-.00864-.03205-.02551-.06127-.04892-.084742s-.05255-.040376-.0845-.049027L1.6136.537382c-.03197-.008541-.06562-.008518-.09759.000065-.03196.008584-.06111.025428-.08455.048851l-.846882.849442c-.023361.02351-.040166.05275-.048732.08481-.008566.03205-.008593.0658-.000083.09788l.309993%201.16031c.008613.03204.025462.06126.048859.08472.023396.02347.052522.04037.084469.04901l.928546.24957c.06198.01672.1158.05546.15145.109.03564.05355.05069.11826.04233.18209-.00836.06384-.03955.12246-.08777.16496-.04822.04249-.11018.06616-.17437.06627'/%3e%3c/svg%3e",Je={oxPaymentCardLogo:"_oxPaymentCardLogo_hff9o_2",oxPaymentCardLogoDefault:"_oxPaymentCardLogoDefault_hff9o_2",oxPaymentCardLogoCompact:"_oxPaymentCardLogoCompact_hff9o_2",oxPaymentCardBadge:"_oxPaymentCardBadge_hff9o_2",oxPaymentCardInfo:"_oxPaymentCardInfo_hff9o_2",oxPaymentCardNumber:"_oxPaymentCardNumber_hff9o_2",oxPaymentCardDetail:"_oxPaymentCardDetail_hff9o_2",oxPaymentCardDigits:"_oxPaymentCardDigits_hff9o_2",oxPaymentCardSchemeCompact:"_oxPaymentCardSchemeCompact_hff9o_2",oxPaymentCardFooter:"_oxPaymentCardFooter_hff9o_2",oxPaymentCardScheme:"_oxPaymentCardScheme_hff9o_2","ox-payment-card":"_ox-payment-card_hff9o_2","ox-payment-card--default":"_ox-payment-card--default_hff9o_2","ox-payment-card--compact":"_ox-payment-card--compact_hff9o_2","ox-payment-card--disabled":"_ox-payment-card--disabled_hff9o_2"},Hy={cardNumber:"0000 00** **** 0000",cardholderName:"Nombre del empleado",expiryDate:"00/00",cvc:"CVC ***",lastFourDigits:"7661"},Gy={background:"linear-gradient(59.34deg, rgb(26, 26, 18) 0%, rgb(51, 65, 85) 100%)"},jy={virtual:"Virtual",physical:"Physical",subscription:"Subscription"},af=y.forwardRef(({className:e,size:t="default",disabled:n=!1,badgeType:o,cardData:r=Hy,dataTestid:s,...i},a)=>h.jsxs("div",{ref:a,"data-slot":"payment-card","data-testid":s,className:G(We(Je,lf({size:t,disabled:n})),e),style:Gy,...i,children:[h.jsx("img",{src:By,alt:"Sesame",className:G(Je.oxPaymentCardLogo,t==="default"?Je.oxPaymentCardLogoDefault:Je.oxPaymentCardLogoCompact)}),t==="default"&&o&&h.jsx("span",{"data-testid":`${s}-badge`,className:Je.oxPaymentCardBadge,children:jy[o]}),t==="default"&&h.jsxs("div",{className:Je.oxPaymentCardInfo,children:[h.jsx("span",{className:Je.oxPaymentCardNumber,children:r.cardNumber}),h.jsx("span",{className:Je.oxPaymentCardDetail,children:r.cardholderName})]}),t==="compact"&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:Je.oxPaymentCardDigits,children:r.lastFourDigits}),h.jsxs("svg",{className:Je.oxPaymentCardSchemeCompact,viewBox:"0 0 40 24",fill:"none",children:[h.jsx("circle",{cx:"14",cy:"12",r:"10",fill:"#E33A24",fillOpacity:"0.6"}),h.jsx("circle",{cx:"26",cy:"12",r:"10",fill:"#F8CB2E",fillOpacity:"0.6"})]})]}),t==="default"&&h.jsxs("div",{className:Je.oxPaymentCardFooter,children:[h.jsx("span",{className:Je.oxPaymentCardDetail,children:r.expiryDate}),h.jsx("span",{className:Je.oxPaymentCardDetail,children:r.cvc}),h.jsxs("svg",{className:Je.oxPaymentCardScheme,viewBox:"0 0 40 24",fill:"none",children:[h.jsx("circle",{cx:"14",cy:"12",r:"10",fill:"#E33A24"}),h.jsx("circle",{cx:"26",cy:"12",r:"10",fill:"#F8CB2E",fillOpacity:"0.6"})]})]})]}));af.displayName="OxPaymentCard";const lf=je("ox-payment-card",{variants:{size:{default:"ox-payment-card--default",compact:"ox-payment-card--compact"},disabled:{true:"ox-payment-card--disabled",false:""}},defaultVariants:{size:"default",disabled:!1}}),sa={"ox-chat-bubble":"_ox-chat-bubble_ax1tt_2","ox-chat-bubble-body":"_ox-chat-bubble-body_ax1tt_2","ox-chat-bubble-meta":"_ox-chat-bubble-meta_ax1tt_2","ox-chat-bubble--user":"_ox-chat-bubble--user_ax1tt_2","ox-chat-bubble--other":"_ox-chat-bubble--other_ax1tt_2"},cf=y.forwardRef(({className:e,author:t="other",meta:n,children:o,dataTestid:r,...s},i)=>h.jsxs("div",{ref:i,className:G(We(sa,uf({author:t})),e),"data-slot":"chat-bubble","data-testid":r,...s,children:[h.jsx("div",{className:sa["ox-chat-bubble-body"],"data-slot":"description",children:o}),n?h.jsx("div",{className:sa["ox-chat-bubble-meta"],children:n}):null]}));cf.displayName="OxChatBubble";const uf=je("ox-chat-bubble",{variants:{author:{user:"ox-chat-bubble--user",other:"ox-chat-bubble--other"}},defaultVariants:{author:"other"}}),Wy={"ox-chat-bubble-status":"_ox-chat-bubble-status_18ze1_2","ox-chat-bubble-status--pending":"_ox-chat-bubble-status--pending_18ze1_2","ox-chat-bubble-status--sent":"_ox-chat-bubble-status--sent_18ze1_2","ox-chat-bubble-status--delivered":"_ox-chat-bubble-status--delivered_18ze1_2","ox-chat-bubble-status--read":"_ox-chat-bubble-status--read_18ze1_2"},Uy={pending:uy,sent:Ur,delivered:Dd,read:Dd},qy={pending:"Sending",sent:"Sent",delivered:"Delivered",read:"Read"},df=y.forwardRef(({className:e,status:t="sent",dataTestid:n,...o},r)=>{const s=Uy[t];return h.jsx(s,{ref:r,className:G(We(Wy,ff({status:t})),e),"data-slot":"icon","data-testid":n,"aria-label":qy[t],role:"img",...o})});df.displayName="OxChatBubbleStatus";const ff=je("ox-chat-bubble-status",{variants:{status:{pending:"ox-chat-bubble-status--pending",sent:"ox-chat-bubble-status--sent",delivered:"ox-chat-bubble-status--delivered",read:"ox-chat-bubble-status--read"}},defaultVariants:{status:"sent"}}),Ky={"ox-chip":"_ox-chip_1fat1_2","ox-chip--sm":"_ox-chip--sm_1fat1_2","ox-chip--lg":"_ox-chip--lg_1fat1_2","ox-chip--icon-sm":"_ox-chip--icon-sm_1fat1_2","ox-chip--icon-lg":"_ox-chip--icon-lg_1fat1_2","ox-chip--square":"_ox-chip--square_1fat1_2","ox-chip--rounded":"_ox-chip--rounded_1fat1_2"},pf=y.forwardRef(({className:e,size:t="sm",shape:n="square",dragged:o=!1,dataTestid:r,children:s,...i},a)=>h.jsx("button",{ref:a,type:"button","data-slot":"chip","data-dragged":o||void 0,"data-testid":r,className:G(We(Ky,gf({size:t,shape:n})),e),...i,children:s}));pf.displayName="OxChip";const gf=je("ox-chip",{variants:{size:{sm:"ox-chip--sm",lg:"ox-chip--lg","icon-sm":"ox-chip--icon-sm","icon-lg":"ox-chip--icon-lg"},shape:{square:"ox-chip--square",rounded:"ox-chip--rounded"}},defaultVariants:{size:"sm",shape:"square"}}),hf={oxPointMarker:"_oxPointMarker_1u39i_2","ox-point-marker-dot":"_ox-point-marker-dot_1u39i_2","ox-point-marker-dot--category-1":"_ox-point-marker-dot--category-1_1u39i_2","ox-point-marker-dot--category-2":"_ox-point-marker-dot--category-2_1u39i_2","ox-point-marker-dot--category-3":"_ox-point-marker-dot--category-3_1u39i_2","ox-point-marker-dot--category-4":"_ox-point-marker-dot--category-4_1u39i_2","ox-point-marker-dot--category-5":"_ox-point-marker-dot--category-5_1u39i_2","ox-point-marker-dot--category-6":"_ox-point-marker-dot--category-6_1u39i_2","ox-point-marker-dot--category-7":"_ox-point-marker-dot--category-7_1u39i_2","ox-point-marker-dot--category-8":"_ox-point-marker-dot--category-8_1u39i_2","ox-point-marker-dot--category-9":"_ox-point-marker-dot--category-9_1u39i_2","ox-point-marker-dot--category-10":"_ox-point-marker-dot--category-10_1u39i_2","ox-point-marker-dot--category-11":"_ox-point-marker-dot--category-11_1u39i_2","ox-point-marker-dot--category-12":"_ox-point-marker-dot--category-12_1u39i_2","ox-point-marker-dot--category-13":"_ox-point-marker-dot--category-13_1u39i_2","ox-point-marker-dot--category-14":"_ox-point-marker-dot--category-14_1u39i_2","ox-point-marker-dot--category-15":"_ox-point-marker-dot--category-15_1u39i_2","ox-point-marker-dot--category-16":"_ox-point-marker-dot--category-16_1u39i_2","ox-point-marker-dot--category-17":"_ox-point-marker-dot--category-17_1u39i_2","ox-point-marker-dot--category-18":"_ox-point-marker-dot--category-18_1u39i_2","ox-point-marker-dot--category-19":"_ox-point-marker-dot--category-19_1u39i_2"},mf=y.forwardRef(({className:e,color:t="category-1",dataTestid:n,...o},r)=>h.jsx("span",{ref:r,"data-slot":"point-marker","data-testid":n,className:G(hf.oxPointMarker,e),...o,children:h.jsx("span",{"data-slot":"point-marker-center","data-testid":`${n}-center`,className:We(hf,vf({color:t}))})}));mf.displayName="OxPointMarker";const vf=je("ox-point-marker-dot",{variants:{color:{"category-1":"ox-point-marker-dot--category-1","category-2":"ox-point-marker-dot--category-2","category-3":"ox-point-marker-dot--category-3","category-4":"ox-point-marker-dot--category-4","category-5":"ox-point-marker-dot--category-5","category-6":"ox-point-marker-dot--category-6","category-7":"ox-point-marker-dot--category-7","category-8":"ox-point-marker-dot--category-8","category-9":"ox-point-marker-dot--category-9","category-10":"ox-point-marker-dot--category-10","category-11":"ox-point-marker-dot--category-11","category-12":"ox-point-marker-dot--category-12","category-13":"ox-point-marker-dot--category-13","category-14":"ox-point-marker-dot--category-14","category-15":"ox-point-marker-dot--category-15","category-16":"ox-point-marker-dot--category-16","category-17":"ox-point-marker-dot--category-17","category-18":"ox-point-marker-dot--category-18","category-19":"ox-point-marker-dot--category-19"}},defaultVariants:{color:"category-1"}}),xf={"ox-status-badge":"_ox-status-badge_1iass_2","ox-status-badge-dot":"_ox-status-badge-dot_1iass_2","ox-status-badge--draft":"_ox-status-badge--draft_1iass_2","ox-status-badge-dot--draft":"_ox-status-badge-dot--draft_1iass_2","ox-status-badge--active":"_ox-status-badge--active_1iass_2","ox-status-badge-dot--active":"_ox-status-badge-dot--active_1iass_2","ox-status-badge--paused":"_ox-status-badge--paused_1iass_2","ox-status-badge-dot--paused":"_ox-status-badge-dot--paused_1iass_2","ox-status-badge--completed":"_ox-status-badge--completed_1iass_2","ox-status-badge-dot--completed":"_ox-status-badge-dot--completed_1iass_2","ox-status-badge--scheduled":"_ox-status-badge--scheduled_1iass_2","ox-status-badge-dot--scheduled":"_ox-status-badge-dot--scheduled_1iass_2","ox-status-badge--deleted":"_ox-status-badge--deleted_1iass_2","ox-status-badge-dot--deleted":"_ox-status-badge-dot--deleted_1iass_2"},Xy={draft:"Draft",active:"Active",paused:"Paused",completed:"Completed",scheduled:"Scheduled",deleted:"Deleted"},bf=y.forwardRef(({className:e,status:t="draft",children:n,dataTestid:o,...r},s)=>h.jsxs("span",{ref:s,"data-slot":"status-badge","data-testid":o,className:G(We(xf,yf({status:t})),e),...r,children:[h.jsx("span",{"data-testid":`${o}-indicator`,className:We(xf,Cf({status:t}))}),n??Xy[t??"draft"]]}));bf.displayName="OxStatusBadge";const yf=je("ox-status-badge",{variants:{status:{draft:"ox-status-badge--draft",active:"ox-status-badge--active",paused:"ox-status-badge--paused",completed:"ox-status-badge--completed",scheduled:"ox-status-badge--scheduled",deleted:"ox-status-badge--deleted"}},defaultVariants:{status:"draft"}}),Cf=je("ox-status-badge-dot",{variants:{status:{draft:"ox-status-badge-dot--draft",active:"ox-status-badge-dot--active",paused:"ox-status-badge-dot--paused",completed:"ox-status-badge-dot--completed",scheduled:"ox-status-badge-dot--scheduled",deleted:"ox-status-badge-dot--deleted"}},defaultVariants:{status:"draft"}});var Yy=Object.defineProperty,dt=(e,t)=>Yy(e,"name",{value:t,configurable:!0});function Jy(e,t){const n=v.createContext(t);n.displayName=e+"Context";const o=dt(s=>{const{children:i,...a}=s,l=v.useMemo(()=>a,Object.values(a));return h.jsx(n.Provider,{value:l,children:i})},"Provider");o.displayName=e+"Provider";function r(s,i={}){const{optional:a=!1}=i,l=v.useContext(n);if(l)return l;if(t!==void 0)return t;if(!a)throw new Error(`\`${s}\` must be used within \`${e}\``)}return dt(r,"useContext"),[o,r]}dt(Jy,"createContext");function no(e,t=[]){let n=[];function o(s,i){const a=v.createContext(i);a.displayName=s+"Context";const l=n.length;n=[...n,i];const c=dt(d=>{var b;const{scope:f,children:p,...m}=d,g=((b=f==null?void 0:f[e])==null?void 0:b[l])||a,x=v.useMemo(()=>m,Object.values(m));return h.jsx(g.Provider,{value:x,children:p})},"Provider");c.displayName=s+"Provider";function u(d,f,p={}){var b;const{optional:m=!1}=p,g=((b=f==null?void 0:f[e])==null?void 0:b[l])||a,x=v.useContext(g);if(x)return x;if(i!==void 0)return i;if(!m)throw new Error(`\`${d}\` must be used within \`${s}\``)}return dt(u,"useContext"),[c,u]}dt(o,"createContext");const r=dt(()=>{const s=n.map(i=>v.createContext(i));return dt(function(a){const l=(a==null?void 0:a[e])||s;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])},"useScope")},"createScope");return r.scopeName=e,[o,Sf(r,...t)]}dt(no,"createContextScope");function Sf(...e){const t=e[0];if(e.length===1)return t;const n=dt(()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return dt(function(s){const i=o.reduce((a,{useScope:l,scopeName:c})=>{const d=l(s)[`__scope${c}`];return{...a,...d}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}dt(Sf,"composeContextScopes");var Zy=Object.defineProperty,ia=(e,t)=>Zy(e,"name",{value:t,configurable:!0});function aa(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}ia(aa,"setRef");function wf(...e){return t=>{let n=!1;const o=e.map(r=>{const s=aa(r,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let r=0;r<o.length;r++){const s=o[r];typeof s=="function"?s():aa(e[r],null)}}}}ia(wf,"composeRefs");function _e(...e){return v.useCallback(wf(...e),e)}ia(_e,"useComposedRefs");var Qy=Object.defineProperty,mt=(e,t)=>Qy(e,"name",{value:t,configurable:!0});function Nn(e){const t=v.forwardRef((n,o)=>{let{children:r,...s}=n,i=null,a=!1;const l=[];la(r)&&typeof Qr=="function"&&(r=Qr(r._payload)),v.Children.forEach(r,f=>{var p;if(Pf(f)){a=!0;const m=f;let g="child"in m.props?m.props.child:m.props.children;la(g)&&typeof Qr=="function"&&(g=Qr(g._payload)),i=tC(m,g),l.push((p=i==null?void 0:i.props)==null?void 0:p.children)}else l.push(f)}),i?i=v.cloneElement(i,void 0,l):!a&&v.Children.count(r)===1&&v.isValidElement(r)&&(i=r);const c=i?Ef(i):void 0,u=_e(o,c);if(!i){if(r||r===0)throw new Error(a?rC(e):oC(e));return r}const d=Tf(s,i.props??{});return i.type!==v.Fragment&&(d.ref=o?u:c),v.cloneElement(i,d)});return t.displayName=`${e}.Slot`,t}mt(Nn,"createSlot");var _f=Symbol.for("radix.slottable");function eC(e){const t=mt(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=_f,t}mt(eC,"createSlottable");var tC=mt((e,t)=>{if("child"in e.props){const n=e.props.child;return v.isValidElement(n)?v.cloneElement(n,void 0,e.props.children(n.props.children)):null}return v.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function Tf(e,t){const n={...t};for(const o in t){const r=e[o],s=t[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...a)=>{const l=s(...a);return r(...a),l}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}mt(Tf,"mergeProps");function Ef(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}mt(Ef,"getElementRef");function Pf(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===_f}mt(Pf,"isSlottable");var nC=Symbol.for("react.lazy");function la(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===nC&&"_payload"in e&&If(e._payload)}mt(la,"isLazyComponent");function If(e){return typeof e=="object"&&e!==null&&"then"in e}mt(If,"isPromiseLike");var oC=mt(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),rC=mt(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Qr=v[" use ".trim().toString()],sC=Object.defineProperty,iC=(e,t)=>sC(e,"name",{value:t,configurable:!0}),aC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Pe=aC.reduce((e,t)=>{const n=Nn(`Primitive.${t}`),o=v.forwardRef((r,s)=>{const{asChild:i,...a}=r,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(l,{...a,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Af(e,t){e&&xn.flushSync(()=>e.dispatchEvent(t))}iC(Af,"dispatchDiscreteCustomEvent");var lC=Object.defineProperty,zt=(e,t)=>lC(e,"name",{value:t,configurable:!0}),Of="Progress",ca=100,[cC,HD]=no(Of),[uC,dC]=cC(Of),fC=v.forwardRef(zt(function(t,n){const{__scopeProgress:o,value:r=null,max:s,getValueLabel:i=Df,...a}=t;(s||s===0)&&!da(s)&&console.error(Nf(`${s}`,"Progress"));const l=da(s)?s:ca;r!==null&&!fa(r,l)&&console.error(kf(`${r}`,"Progress"));const c=fa(r,l)?r:null,u=Wo(c)?i(c,l):void 0;return h.jsx(uC,{scope:o,value:c,max:l,children:h.jsx(Pe.div,{"aria-valuemax":l,"aria-valuemin":0,"aria-valuenow":Wo(c)?c:void 0,"aria-valuetext":u,role:"progressbar","data-state":ua(c,l),"data-value":c??void 0,"data-max":l,...a,ref:n})})},"Progress")),pC="ProgressIndicator",gC=v.forwardRef(zt(function(t,n){const{__scopeProgress:o,...r}=t,s=dC(pC,o);return h.jsx(Pe.div,{"data-state":ua(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...r,ref:n})},"ProgressIndicator"));function Df(e,t){return`${Math.round(e/t*100)}%`}zt(Df,"defaultGetValueLabel");function ua(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}zt(ua,"getProgressState");function Wo(e){return typeof e=="number"}zt(Wo,"isNumber");function da(e){return Wo(e)&&!isNaN(e)&&e>0}zt(da,"isValidMaxNumber");function fa(e,t){return Wo(e)&&!isNaN(e)&&e<=t&&e>=0}zt(fa,"isValidValueNumber");function Nf(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${ca}\`.`}zt(Nf,"getInvalidMaxError");function kf(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
111
121
  - a positive number
112
- - less than the value passed to \`max\` (or ${ea} if no \`max\` prop is set)
122
+ - less than the value passed to \`max\` (or ${ca} if no \`max\` prop is set)
113
123
  - \`null\` or \`undefined\` if the progress is indeterminate.
114
124
 
115
- Defaulting to \`null\`.`}Lt(uf,"getInvalidValueError");var Ny=Ay,ky=Dy;const df={oxProgress:"_oxProgress_cgux7_2",oxProgressIndicator:"_oxProgressIndicator_cgux7_2"},ff=e=>Math.min(100,Math.max(0,e)),pf=b.forwardRef(({className:e,value:t=0,dataTestid:n,...o},r)=>h.jsx(Ny,{ref:r,value:ff(t),"data-slot":"progress","data-testid":n,className:j(df.oxProgress,e),...o,children:h.jsx(ky,{"data-slot":"progress-indicator","data-testid":`${n}-indicator`,className:df.oxProgressIndicator,style:{transform:`translateX(-${100-ff(t)}%)`}})}));pf.displayName="OxProgress";const gf={oxAlert:"_oxAlert_1dk3o_2","oxAlert-warning":"_oxAlert-warning_1dk3o_2","oxAlert-error":"_oxAlert-error_1dk3o_2","oxAlert-info":"_oxAlert-info_1dk3o_2","oxAlert-success":"_oxAlert-success_1dk3o_2"},hf=b.createContext({variant:"info",isDismissed:!1,isOpen:!0,dismissible:!1,collapsible:!1,handleDismiss:()=>{},handleToggle:()=>{}}),Ur=()=>b.useContext(hf),mf=b.forwardRef(({className:e,variant:t="info",dismissible:n=!1,collapsible:o=!1,isOpen:r=!0,onDismissed:s,onOpenChange:i,onToggled:a,children:l,...c},u)=>{const[d,f]=b.useState(!1),p=()=>{f(!0),s==null||s()},v=()=>{i==null||i(!r),a==null||a(!r)};return d?null:h.jsx(hf.Provider,{value:{variant:t,isDismissed:d,isOpen:r,dismissible:n,collapsible:o,handleDismiss:p,handleToggle:v},children:h.jsx("div",{ref:u,className:j(gf.oxAlert,gf[`alert-${t}`],e),role:"alert","aria-live":t==="error"?"assertive":"polite","aria-atomic":"true",...c,children:l})})});mf.displayName="OxAlert";const $y={oxAlertCloseBtn:"_oxAlertCloseBtn_1habq_2"},vf=b.forwardRef(({className:e,onClick:t,children:n,...o},r)=>{const{handleDismiss:s}=Ur();return h.jsx("button",{ref:r,type:"button",className:j($y.oxAlertCloseBtn,e),"data-slot":"controller","aria-label":"Close alert",onClick:i=>{s(),t==null||t(i)},...o,children:n})});vf.displayName="OxAlertClose";const My={oxAlertDescription:"_oxAlertDescription_1par1_2"},xf=b.forwardRef(({className:e,children:t,...n},o)=>{const{collapsible:r,isOpen:s}=Ur();return!r||s?h.jsx("div",{ref:o,className:j(My.oxAlertDescription,e),"data-slot":"description",...n,children:t}):null});xf.displayName="OxAlertDescription";const Ry={oxAlertIcon:"_oxAlertIcon_aaap8_2"},Ly={info:kb,warning:Mb,error:Ab,success:Ob},bf=b.forwardRef(({className:e,children:t,dataTestid:n,...o},r)=>{const{variant:s}=Ur(),i=Ly[s];return h.jsx("div",{ref:r,className:j(Ry.oxAlertIcon,e),"data-slot":"icon","data-testid":n,...o,children:t??h.jsx(i,{"data-testid":`${n}-default`})})});bf.displayName="OxAlertIcon";const Fy={oxAlertTitle:"_oxAlertTitle_ktzna_2"},yf=b.forwardRef(({className:e,children:t,...n},o)=>h.jsx("h3",{ref:o,className:j(Fy.oxAlertTitle,e),"data-slot":"label",...n,children:t}));yf.displayName="OxAlertTitle";const zy={oxAlertToggleBtn:"_oxAlertToggleBtn_1t17z_2"},Cf=b.forwardRef(({className:e,onClick:t,children:n,...o},r)=>{const{isOpen:s,handleToggle:i}=Ur();return h.jsx("button",{ref:r,type:"button",className:j(zy.oxAlertToggleBtn,e),"data-slot":"controller","aria-expanded":s,onClick:a=>{i(),t==null||t(a)},...o,children:n})});Cf.displayName="OxAlertToggle";var Vy=Object.defineProperty,to=(e,t)=>Vy(e,"name",{value:t,configurable:!0}),wf=!!(typeof window<"u"&&window.document&&window.document.createElement);function pe(e,t,{checkForDefaultPrevented:n=!0}={}){return to(function(r){if(e==null||e(r),n===!1||!r||!r.defaultPrevented)return t==null?void 0:t(r)},"handleEvent")}to(pe,"composeEventHandlers");function Hy(e){var t;if(!wf)throw new Error("Cannot access window outside of the DOM");return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)??window}to(Hy,"getOwnerWindow");function ra(e){if(!wf)throw new Error("Cannot access document outside of the DOM");return(e==null?void 0:e.ownerDocument)??document}to(ra,"getOwnerDocument");function Sf(e,t=!1){const{activeElement:n}=ra(e);if(!(n!=null&&n.nodeName))return null;if(_f(n)&&n.contentDocument)return Sf(n.contentDocument.body,t);if(t){const o=n.getAttribute("aria-activedescendant");if(o){const r=ra(n).getElementById(o);if(r)return r}}return n}to(Sf,"getActiveElement");function _f(e){return e.tagName==="IFRAME"}to(_f,"isFrame");function ct(e,t=[]){let n=[];function o(s,i){const a=g.createContext(i);a.displayName=s+"Context";const l=n.length;n=[...n,i];const c=d=>{var y;const{scope:f,children:p,...v}=d,m=((y=f==null?void 0:f[e])==null?void 0:y[l])||a,x=g.useMemo(()=>v,Object.values(v));return h.jsx(m.Provider,{value:x,children:p})};c.displayName=s+"Provider";function u(d,f,p={}){var y;const{optional:v=!1}=p,m=((y=f==null?void 0:f[e])==null?void 0:y[l])||a,x=g.useContext(m);if(x)return x;if(i!==void 0)return i;if(!v)throw new Error(`\`${d}\` must be used within \`${s}\``)}return[c,u]}const r=()=>{const s=n.map(i=>g.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return g.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return r.scopeName=e,[o,By(r,...t)]}function By(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const i=o.reduce((a,{useScope:l,scopeName:c})=>{const d=l(s)[`__scope${c}`];return{...a,...d}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var He=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},Gy=g[" useId ".trim().toString()]||(()=>{}),jy=0;function Be(e){const[t,n]=g.useState(Gy());return He(()=>{n(o=>o??String(jy++))},[e]),t?`radix-${t}`:""}var Tf=g[" useEffectEvent ".trim().toString()],Ef=g[" useInsertionEffect ".trim().toString()];function Uy(e){if(typeof Tf=="function")return Tf(e);const t=g.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Ef=="function"?Ef(()=>{t.current=e}):He(()=>{t.current=e}),g.useMemo(()=>((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)}),[])}var Wy=Object.defineProperty,Go=(e,t)=>Wy(e,"name",{value:t,configurable:!0}),qy=g[" useInsertionEffect ".trim().toString()]||He;function gt({prop:e,defaultProp:t,onChange:n=Go(()=>{},"onChange"),caller:o}){const[r,s,i]=Pf({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:r,c=g.useCallback(u=>{var d;if(a){const f=If(u)?u(e):u;f!==e&&((d=i.current)==null||d.call(i,f))}else s(u)},[a,e,s,i]);return[l,c]}Go(gt,"useControllableState");function Pf({defaultProp:e,onChange:t}){const[n,o]=g.useState(e),r=g.useRef(n),s=g.useRef(t);return qy(()=>{s.current=t},[t]),g.useEffect(()=>{var i;r.current!==n&&((i=s.current)==null||i.call(s,n),r.current=n)},[n,r]),[n,o,s]}Go(Pf,"useUncontrolledState");function If(e){return typeof e=="function"}Go(If,"isFunction");var Af=Symbol("RADIX:SYNC_STATE");function Ky(e,t,n,o){const{prop:r,defaultProp:s,onChange:i,caller:a}=t,l=r!==void 0,c=Uy(i),u=[{...n,state:s}];o&&u.push(o);const[d,f]=g.useReducer((x,y)=>{if(y.type===Af)return{...x,state:y.state};const S=e(x,y);return l&&!Object.is(S.state,x.state)&&c(S.state),S},...u),p=d.state,v=g.useRef(p);g.useEffect(()=>{v.current!==p&&(v.current=p,l||c(p))},[p,v,l]);const m=g.useMemo(()=>r!==void 0?{...d,state:r}:d,[d,r]);return g.useEffect(()=>{l&&!Object.is(r,d.state)&&f({type:Af,state:r})},[r,d.state,l]),[m,f]}Go(Ky,"useControllableStateReducer");var Xy=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ce=Xy.reduce((e,t)=>{const n=qn(`Primitive.${t}`),o=g.forwardRef((r,s)=>{const{asChild:i,...a}=r,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(l,{...a,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Yy(e,t){e&&mn.flushSync(()=>e.dispatchEvent(t))}function An(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)}),[])}var Zy=Object.defineProperty,Oe=(e,t)=>Zy(e,"name",{value:t,configurable:!0}),sa="dismissableLayer.update",Jy="dismissableLayer.pointerDownOutside",Qy="dismissableLayer.focusOutside",Of,Df=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),ia=g.forwardRef(Oe(function(t,n){const{disableOutsidePointerEvents:o=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...u}=t,d=g.useContext(Df),[f,p]=g.useState(null),v=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=g.useState({}),x=ye(n,p),y=Array.from(d.layers),[S]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),C=S?y.indexOf(S):-1,_=f?y.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,T=_>=C,E=g.useRef(!1),P=kf(V=>{i==null||i(V),l==null||l(V),V.defaultPrevented||c==null||c()},{ownerDocument:v,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:E,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:g.useCallback(V=>{if(!(V instanceof Node))return!1;const K=[...d.branches].some(U=>U.contains(V));return T&&!K},[d.branches,T])}),A=$f(V=>{if(r&&E.current)return;const K=V.target;[...d.branches].some(Z=>Z.contains(K))||(a==null||a(V),l==null||l(V),V.defaultPrevented||c==null||c())},v),R=f?_===y.length-1:!1,B=An(V=>{V.key==="Escape"&&(s==null||s(V),!V.defaultPrevented&&c&&(V.preventDefault(),c()))});return g.useEffect(()=>{if(R)return v.addEventListener("keydown",B,{capture:!0}),()=>v.removeEventListener("keydown",B,{capture:!0})},[v,R,B]),g.useEffect(()=>{if(f)return o&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Of=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),aa(),()=>{o&&(d.layersWithOutsidePointerEventsDisabled.delete(f),d.layersWithOutsidePointerEventsDisabled.size===0&&(v.body.style.pointerEvents=Of))}},[f,v,o,d]),g.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),aa())},[f,d]),g.useEffect(()=>{const V=Oe(()=>m({}),"handleUpdate");return document.addEventListener(sa,V),()=>document.removeEventListener(sa,V)},[]),h.jsx(ce.div,{...u,ref:x,style:{pointerEvents:w?T?"auto":"none":void 0,...t.style},onFocusCapture:pe(t.onFocusCapture,A.onFocusCapture),onBlurCapture:pe(t.onBlurCapture,A.onBlurCapture),onPointerDownCapture:pe(t.onPointerDownCapture,P.onPointerDownCapture)})},"DismissableLayer"));function Nf(){const e=g.useContext(Df),[t,n]=g.useState(null);return g.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}Oe(Nf,"useDismissableLayerSurface");var eC=Oe(()=>!0,"IS_TRUE");function kf(e,t){const{ownerDocument:n=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:s,shouldHandlePointerDownOutside:i=eC}=t,a=An(e),l=g.useRef(!1),c=g.useRef(!1),u=g.useRef(new Map),d=g.useRef(()=>{});return g.useEffect(()=>{function f(){c.current=!1,r.current=!1,u.current.clear()}Oe(f,"resetOutsideInteraction");function p(){return Array.from(u.current.values()).some(Boolean)}Oe(p,"isOutsideInteractionIntercepted");function v(C){if(!c.current)return;const _=C.target;_ instanceof Node&&[...s].some(T=>T.contains(_))||u.current.set(C.type,!0),C.type==="click"&&window.setTimeout(()=>{c.current&&d.current()},0)}Oe(v,"handleInteractionCapture");function m(C){c.current&&u.current.set(C.type,!1)}Oe(m,"handleInteractionBubble");const x=Oe(C=>{if(C.target&&!l.current){let _=function(){n.removeEventListener("click",d.current);const T=p();f(),T||la(Jy,a,w,{discrete:!0})};if(Oe(_,"handleAndDispatchPointerDownOutsideEvent"),!i(C.target)){n.removeEventListener("click",d.current),f(),l.current=!1;return}const w={originalEvent:C};c.current=!0,r.current=o&&C.button===0,u.current.clear(),!o||C.button!==0?_():(n.removeEventListener("click",d.current),d.current=_,n.addEventListener("click",d.current,{once:!0}))}else n.removeEventListener("click",d.current),f();l.current=!1},"handlePointerDown"),y=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const C of y)n.addEventListener(C,v,!0),n.addEventListener(C,m);const S=window.setTimeout(()=>{n.addEventListener("pointerdown",x)},0);return()=>{window.clearTimeout(S),n.removeEventListener("pointerdown",x),n.removeEventListener("click",d.current);for(const C of y)n.removeEventListener(C,v,!0),n.removeEventListener(C,m)}},[n,a,o,r,s,i]),{onPointerDownCapture:Oe(()=>l.current=!0,"onPointerDownCapture")}}Oe(kf,"usePointerDownOutside");function $f(e,t=globalThis==null?void 0:globalThis.document){const n=An(e),o=g.useRef(!1);return g.useEffect(()=>{const r=Oe(s=>{s.target&&!o.current&&la(Qy,n,{originalEvent:s},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:Oe(()=>o.current=!0,"onFocusCapture"),onBlurCapture:Oe(()=>o.current=!1,"onBlurCapture")}}Oe($f,"useFocusOutside");function aa(){const e=new CustomEvent(sa);document.dispatchEvent(e)}Oe(aa,"dispatchUpdate");function la(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Yy(r,s):r.dispatchEvent(s)}Oe(la,"handleAndDispatchCustomEvent");var tC=Object.defineProperty,Ge=(e,t)=>tC(e,"name",{value:t,configurable:!0}),ca="focusScope.autoFocusOnMount",ua="focusScope.autoFocusOnUnmount",Mf={bubbles:!1,cancelable:!0},Rf=g.forwardRef(Ge(function(t,n){const{loop:o=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...a}=t,[l,c]=g.useState(null),u=An(s),d=An(i),f=g.useRef(null),p=ye(n,c),v=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let x=function(_){if(v.paused||!l)return;const w=_.target;l.contains(w)?f.current=w:Ft(f.current,{select:!0})},y=function(_){if(v.paused||!l)return;const w=_.relatedTarget;w!==null&&(l.contains(w)||Ft(f.current,{select:!0}))},S=function(_){if(document.activeElement===document.body)for(const T of _)T.removedNodes.length>0&&Ft(l)};Ge(x,"handleFocusIn"),Ge(y,"handleFocusOut"),Ge(S,"handleMutations"),document.addEventListener("focusin",x),document.addEventListener("focusout",y);const C=new MutationObserver(S);return l&&C.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",y),C.disconnect()}}},[r,l,v.paused]),g.useEffect(()=>{if(l){Hf.add(v);const x=document.activeElement;if(!l.contains(x)){const S=new CustomEvent(ca,Mf);l.addEventListener(ca,u),l.dispatchEvent(S),S.defaultPrevented||(Lf(Gf(da(l)),{select:!0}),document.activeElement===x&&Ft(l))}return()=>{l.removeEventListener(ca,u),setTimeout(()=>{const S=new CustomEvent(ua,Mf);l.addEventListener(ua,d),l.dispatchEvent(S),S.defaultPrevented||Ft(x??document.body,{select:!0}),l.removeEventListener(ua,d),Hf.remove(v)},0)}}},[l,u,d,v]);const m=g.useCallback(x=>{if(!o&&!r||v.paused)return;const y=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,S=document.activeElement;if(y&&S){const C=x.currentTarget,[_,w]=Ff(C);_&&w?!x.shiftKey&&S===w?(x.preventDefault(),o&&Ft(_,{select:!0})):x.shiftKey&&S===_&&(x.preventDefault(),o&&Ft(w,{select:!0})):S===C&&x.preventDefault()}},[o,r,v.paused]);return h.jsx(ce.div,{tabIndex:-1,...a,ref:p,onKeyDown:m})},"FocusScope"));function Lf(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Ft(o,{select:t}),document.activeElement!==n)return}Ge(Lf,"focusFirst");function Ff(e){const t=da(e),n=fa(t,e),o=fa(t.reverse(),e);return[n,o]}Ge(Ff,"getTabbableEdges");function da(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Ge(o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}Ge(da,"getTabbableCandidates");function fa(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const o of e)if(!(n?!o.checkVisibility({checkVisibilityCSS:!0}):zf(o,{upTo:t})))return o}Ge(fa,"findVisible");function zf(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}Ge(zf,"isHidden");function Vf(e){return e instanceof HTMLInputElement&&"select"in e}Ge(Vf,"isSelectableInput");function Ft(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Vf(e)&&t&&e.select()}}Ge(Ft,"focus");var Hf=Bf();function Bf(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=pa(e,t),e.unshift(t)},remove(t){var n;e=pa(e,t),(n=e[0])==null||n.resume()}}}Ge(Bf,"createFocusScopesStack");function pa(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}Ge(pa,"arrayRemove");function Gf(e){return e.filter(t=>t.tagName!=="A")}Ge(Gf,"removeLinks");var nC=Object.defineProperty,oC=(e,t)=>nC(e,"name",{value:t,configurable:!0}),ga=g.forwardRef(oC(function(t,n){var l;const{container:o,...r}=t,[s,i]=g.useState(!1);He(()=>i(!0),[]);const a=o||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?mn.createPortal(h.jsx(ce.div,{...r,ref:n}),a):null},"Portal")),rC=Object.defineProperty,zt=(e,t)=>rC(e,"name",{value:t,configurable:!0});function jf(e,t){return g.useReducer((n,o)=>t[n][o]??n,e)}zt(jf,"useStateMachine");var ht=zt(e=>{const{present:t,children:n}=e,o=Uf(t),r=typeof n=="function"?n({present:o.isPresent}):g.Children.only(n),s=Wf(o.ref,qf(r));return typeof n=="function"||o.isPresent?g.cloneElement(r,{ref:s}):null},"Presence");function Uf(e){const[t,n]=g.useState(),o=g.useRef(null),r=g.useRef(e),s=g.useRef("none"),i=g.useRef(void 0),a=e?"mounted":"unmounted",[l,c]=jf(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{l==="mounted"?(s.current=i.current??no(o.current),i.current=void 0):s.current="none"},[l]),He(()=>{const u=o.current,d=r.current;if(d!==e){const p=s.current,v=no(u);e?(i.current=v,c("MOUNT")):v==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&p!==v?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),He(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=zt(v=>{const x=no(o.current).includes(CSS.escape(v.animationName));if(v.target===t&&x&&(c("ANIMATION_END"),!r.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},"handleAnimationEnd"),p=zt(v=>{v.target===t&&(s.current=no(o.current))},"handleAnimationStart");return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(u=>{if(u){const d=getComputedStyle(u);o.current=d,i.current=no(d)}else o.current=null;n(u)},[])}}zt(Uf,"usePresence");function ha(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}zt(ha,"setRef");function Wf(...e){const t=g.useRef(e);return t.current=e,g.useCallback(n=>{const o=t.current;let r=!1;const s=o.map(i=>{const a=ha(i,n);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<s.length;i++){const a=s[i];typeof a=="function"?a():ha(o[i],null)}}},[])}zt(Wf,"useStableComposedRefs");function no(e){return(e==null?void 0:e.animationName)||"none"}zt(no,"getAnimationName");function qf(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}zt(qf,"getElementRef");var Wr=0,St=null;function Kf(){g.useEffect(()=>{St||(St={start:Xf(),end:Xf()});const{start:e,end:t}=St;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Wr++,()=>{Wr===1&&(St==null||St.start.remove(),St==null||St.end.remove(),St=null),Wr=Math.max(0,Wr-1)}},[])}function Xf(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var _t=function(){return _t=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},_t.apply(this,arguments)};function Yf(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function sC(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var qr="right-scroll-bar-position",Kr="width-before-scroll-bar",iC="with-scroll-bars-hidden",aC="--removed-body-scroll-bar-size";function ma(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function lC(e,t){var n=b.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var cC=typeof window<"u"?g.useLayoutEffect:g.useEffect,Zf=new WeakMap;function uC(e,t){var n=lC(null,function(o){return e.forEach(function(r){return ma(r,o)})});return cC(function(){var o=Zf.get(n);if(o){var r=new Set(o),s=new Set(e),i=n.current;r.forEach(function(a){s.has(a)||ma(a,null)}),s.forEach(function(a){r.has(a)||ma(a,i)})}Zf.set(n,e)},[e]),n}function dC(e){return e}function fC(e,t){t===void 0&&(t=dC);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,o);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(o=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){o=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var u=i;i=[],u.forEach(s)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){i.push(u),c()},filter:function(u){return i=i.filter(u),n}}}};return r}function pC(e){e===void 0&&(e={});var t=fC(null);return t.options=_t({async:!0,ssr:!1},e),t}var Jf=function(e){var t=e.sideCar,n=Yf(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return g.createElement(o,_t({},n))};Jf.isSideCarExport=!0;function gC(e,t){return e.useMedium(t),Jf}var Qf=pC(),va=function(){},Xr=g.forwardRef(function(e,t){var n=g.useRef(null),o=g.useState({onScrollCapture:va,onWheelCapture:va,onTouchMoveCapture:va}),r=o[0],s=o[1],i=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,v=e.noIsolation,m=e.inert,x=e.allowPinchZoom,y=e.as,S=y===void 0?"div":y,C=e.gapMode,_=Yf(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,T=uC([n,t]),E=_t(_t({},_),r);return g.createElement(g.Fragment,null,u&&g.createElement(w,{sideCar:Qf,removeScrollBar:c,shards:d,noRelative:p,noIsolation:v,inert:m,setCallbacks:s,allowPinchZoom:!!x,lockRef:n,gapMode:C}),i?g.cloneElement(g.Children.only(a),_t(_t({},E),{ref:T})):g.createElement(S,_t({},E,{className:l,ref:T}),a))});Xr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Xr.classNames={fullWidth:Kr,zeroRight:qr};var hC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function mC(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=hC();return t&&e.setAttribute("nonce",t),e}function vC(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function xC(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var bC=function(){var e=0,t=null;return{add:function(n){e==0&&(t=mC())&&(vC(t,n),xC(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},yC=function(){var e=bC();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ep=function(){var e=yC(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},CC={left:0,top:0,right:0,gap:0},xa=function(e){return parseInt(e||"",10)||0},wC=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[xa(n),xa(o),xa(r)]},SC=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return CC;var t=wC(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},_C=ep(),oo="data-scroll-locked",TC=function(e,t,n,o){var r=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
116
- .`.concat(iC,` {
125
+ Defaulting to \`null\`.`}zt(kf,"getInvalidValueError");var hC=fC,mC=gC;const Mf={oxProgress:"_oxProgress_cgux7_2",oxProgressIndicator:"_oxProgressIndicator_cgux7_2"},$f=e=>Math.min(100,Math.max(0,e)),Rf=y.forwardRef(({className:e,value:t=0,dataTestid:n,...o},r)=>h.jsx(hC,{ref:r,value:$f(t),"data-slot":"progress","data-testid":n,className:G(Mf.oxProgress,e),...o,children:h.jsx(mC,{"data-slot":"progress-indicator","data-testid":`${n}-indicator`,className:Mf.oxProgressIndicator,style:{transform:`translateX(-${100-$f(t)}%)`}})}));Rf.displayName="OxProgress";const Lf={oxAlert:"_oxAlert_1dk3o_2","oxAlert-warning":"_oxAlert-warning_1dk3o_2","oxAlert-error":"_oxAlert-error_1dk3o_2","oxAlert-info":"_oxAlert-info_1dk3o_2","oxAlert-success":"_oxAlert-success_1dk3o_2"},Ff=y.createContext({variant:"info",isDismissed:!1,isOpen:!0,dismissible:!1,collapsible:!1,handleDismiss:()=>{},handleToggle:()=>{}}),es=()=>y.useContext(Ff),zf=y.forwardRef(({className:e,variant:t="info",dismissible:n=!1,collapsible:o=!1,isOpen:r=!0,onDismissed:s,onOpenChange:i,onToggled:a,children:l,...c},u)=>{const[d,f]=y.useState(!1),p=()=>{f(!0),s==null||s()},m=()=>{i==null||i(!r),a==null||a(!r)};return d?null:h.jsx(Ff.Provider,{value:{variant:t,isDismissed:d,isOpen:r,dismissible:n,collapsible:o,handleDismiss:p,handleToggle:m},children:h.jsx("div",{ref:u,className:G(Lf.oxAlert,Lf[`alert-${t}`],e),role:"alert","aria-live":t==="error"?"assertive":"polite","aria-atomic":"true",...c,children:l})})});zf.displayName="OxAlert";const vC={oxAlertCloseBtn:"_oxAlertCloseBtn_1habq_2"},Vf=y.forwardRef(({className:e,onClick:t,children:n,...o},r)=>{const{handleDismiss:s}=es();return h.jsx("button",{ref:r,type:"button",className:G(vC.oxAlertCloseBtn,e),"data-slot":"controller","aria-label":"Close alert",onClick:i=>{s(),t==null||t(i)},...o,children:n})});Vf.displayName="OxAlertClose";const xC={oxAlertDescription:"_oxAlertDescription_1par1_2"},Bf=y.forwardRef(({className:e,children:t,...n},o)=>{const{collapsible:r,isOpen:s}=es();return!r||s?h.jsx("div",{ref:o,className:G(xC.oxAlertDescription,e),"data-slot":"description",...n,children:t}):null});Bf.displayName="OxAlertDescription";const bC={oxAlertIcon:"_oxAlertIcon_aaap8_2"},yC={info:py,warning:hy,error:ly,success:cy},Hf=y.forwardRef(({className:e,children:t,dataTestid:n,...o},r)=>{const{variant:s}=es(),i=yC[s];return h.jsx("div",{ref:r,className:G(bC.oxAlertIcon,e),"data-slot":"icon","data-testid":n,...o,children:t??h.jsx(i,{"data-testid":`${n}-default`})})});Hf.displayName="OxAlertIcon";const CC={oxAlertTitle:"_oxAlertTitle_ktzna_2"},Gf=y.forwardRef(({className:e,children:t,...n},o)=>h.jsx("h3",{ref:o,className:G(CC.oxAlertTitle,e),"data-slot":"label",...n,children:t}));Gf.displayName="OxAlertTitle";const SC={oxAlertToggleBtn:"_oxAlertToggleBtn_1t17z_2"},jf=y.forwardRef(({className:e,onClick:t,children:n,...o},r)=>{const{isOpen:s,handleToggle:i}=es();return h.jsx("button",{ref:r,type:"button",className:G(SC.oxAlertToggleBtn,e),"data-slot":"controller","aria-expanded":s,onClick:a=>{i(),t==null||t(a)},...o,children:n})});jf.displayName="OxAlertToggle";var wC=Object.defineProperty,oo=(e,t)=>wC(e,"name",{value:t,configurable:!0}),Wf=!!(typeof window<"u"&&window.document&&window.document.createElement);function ge(e,t,{checkForDefaultPrevented:n=!0}={}){return oo(function(r){if(e==null||e(r),n===!1||!r||!r.defaultPrevented)return t==null?void 0:t(r)},"handleEvent")}oo(ge,"composeEventHandlers");function _C(e){var t;if(!Wf)throw new Error("Cannot access window outside of the DOM");return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)??window}oo(_C,"getOwnerWindow");function pa(e){if(!Wf)throw new Error("Cannot access document outside of the DOM");return(e==null?void 0:e.ownerDocument)??document}oo(pa,"getOwnerDocument");function Uf(e,t=!1){const{activeElement:n}=pa(e);if(!(n!=null&&n.nodeName))return null;if(qf(n)&&n.contentDocument)return Uf(n.contentDocument.body,t);if(t){const o=n.getAttribute("aria-activedescendant");if(o){const r=pa(n).getElementById(o);if(r)return r}}return n}oo(Uf,"getActiveElement");function qf(e){return e.tagName==="IFRAME"}oo(qf,"isFrame");function ft(e,t=[]){let n=[];function o(s,i){const a=v.createContext(i);a.displayName=s+"Context";const l=n.length;n=[...n,i];const c=d=>{var b;const{scope:f,children:p,...m}=d,g=((b=f==null?void 0:f[e])==null?void 0:b[l])||a,x=v.useMemo(()=>m,Object.values(m));return h.jsx(g.Provider,{value:x,children:p})};c.displayName=s+"Provider";function u(d,f,p={}){var b;const{optional:m=!1}=p,g=((b=f==null?void 0:f[e])==null?void 0:b[l])||a,x=v.useContext(g);if(x)return x;if(i!==void 0)return i;if(!m)throw new Error(`\`${d}\` must be used within \`${s}\``)}return[c,u]}const r=()=>{const s=n.map(i=>v.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return v.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return r.scopeName=e,[o,TC(r,...t)]}function TC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(s){const i=o.reduce((a,{useScope:l,scopeName:c})=>{const d=l(s)[`__scope${c}`];return{...a,...d}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var Ue=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},EC=v[" useId ".trim().toString()]||(()=>{}),PC=0;function qe(e){const[t,n]=v.useState(EC());return Ue(()=>{n(o=>o??String(PC++))},[e]),t?`radix-${t}`:""}var Kf=v[" useEffectEvent ".trim().toString()],Xf=v[" useInsertionEffect ".trim().toString()];function IC(e){if(typeof Kf=="function")return Kf(e);const t=v.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Xf=="function"?Xf(()=>{t.current=e}):Ue(()=>{t.current=e}),v.useMemo(()=>((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)}),[])}var AC=Object.defineProperty,Uo=(e,t)=>AC(e,"name",{value:t,configurable:!0}),OC=v[" useInsertionEffect ".trim().toString()]||Ue;function vt({prop:e,defaultProp:t,onChange:n=Uo(()=>{},"onChange"),caller:o}){const[r,s,i]=Yf({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:r,c=v.useCallback(u=>{var d;if(a){const f=Jf(u)?u(e):u;f!==e&&((d=i.current)==null||d.call(i,f))}else s(u)},[a,e,s,i]);return[l,c]}Uo(vt,"useControllableState");function Yf({defaultProp:e,onChange:t}){const[n,o]=v.useState(e),r=v.useRef(n),s=v.useRef(t);return OC(()=>{s.current=t},[t]),v.useEffect(()=>{var i;r.current!==n&&((i=s.current)==null||i.call(s,n),r.current=n)},[n,r]),[n,o,s]}Uo(Yf,"useUncontrolledState");function Jf(e){return typeof e=="function"}Uo(Jf,"isFunction");var Zf=Symbol("RADIX:SYNC_STATE");function DC(e,t,n,o){const{prop:r,defaultProp:s,onChange:i,caller:a}=t,l=r!==void 0,c=IC(i),u=[{...n,state:s}];o&&u.push(o);const[d,f]=v.useReducer((x,b)=>{if(b.type===Zf)return{...x,state:b.state};const S=e(x,b);return l&&!Object.is(S.state,x.state)&&c(S.state),S},...u),p=d.state,m=v.useRef(p);v.useEffect(()=>{m.current!==p&&(m.current=p,l||c(p))},[p,m,l]);const g=v.useMemo(()=>r!==void 0?{...d,state:r}:d,[d,r]);return v.useEffect(()=>{l&&!Object.is(r,d.state)&&f({type:Zf,state:r})},[r,d.state,l]),[g,f]}Uo(DC,"useControllableStateReducer");var NC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],de=NC.reduce((e,t)=>{const n=Jn(`Primitive.${t}`),o=v.forwardRef((r,s)=>{const{asChild:i,...a}=r,l=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(l,{...a,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function kC(e,t){e&&xn.flushSync(()=>e.dispatchEvent(t))}function kn(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)}),[])}var MC=Object.defineProperty,ke=(e,t)=>MC(e,"name",{value:t,configurable:!0}),ga="dismissableLayer.update",$C="dismissableLayer.pointerDownOutside",RC="dismissableLayer.focusOutside",Qf,ep=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),ha=v.forwardRef(ke(function(t,n){const{disableOutsidePointerEvents:o=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...u}=t,d=v.useContext(ep),[f,p]=v.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=v.useState({}),x=Se(n,p),b=Array.from(d.layers),[S]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),C=S?b.indexOf(S):-1,_=f?b.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,T=_>=C,E=v.useRef(!1),P=np(L=>{i==null||i(L),l==null||l(L),L.defaultPrevented||c==null||c()},{ownerDocument:m,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:E,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:v.useCallback(L=>{if(!(L instanceof Node))return!1;const X=[...d.branches].some(W=>W.contains(L));return T&&!X},[d.branches,T])}),I=op(L=>{if(r&&E.current)return;const X=L.target;[...d.branches].some(J=>J.contains(X))||(a==null||a(L),l==null||l(L),L.defaultPrevented||c==null||c())},m),N=f?_===b.length-1:!1,H=kn(L=>{L.key==="Escape"&&(s==null||s(L),!L.defaultPrevented&&c&&(L.preventDefault(),c()))});return v.useEffect(()=>{if(N)return m.addEventListener("keydown",H,{capture:!0}),()=>m.removeEventListener("keydown",H,{capture:!0})},[m,N,H]),v.useEffect(()=>{if(f)return o&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Qf=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),ma(),()=>{o&&(d.layersWithOutsidePointerEventsDisabled.delete(f),d.layersWithOutsidePointerEventsDisabled.size===0&&(m.body.style.pointerEvents=Qf))}},[f,m,o,d]),v.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),ma())},[f,d]),v.useEffect(()=>{const L=ke(()=>g({}),"handleUpdate");return document.addEventListener(ga,L),()=>document.removeEventListener(ga,L)},[]),h.jsx(de.div,{...u,ref:x,style:{pointerEvents:w?T?"auto":"none":void 0,...t.style},onFocusCapture:ge(t.onFocusCapture,I.onFocusCapture),onBlurCapture:ge(t.onBlurCapture,I.onBlurCapture),onPointerDownCapture:ge(t.onPointerDownCapture,P.onPointerDownCapture)})},"DismissableLayer"));function tp(){const e=v.useContext(ep),[t,n]=v.useState(null);return v.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}ke(tp,"useDismissableLayerSurface");var LC=ke(()=>!0,"IS_TRUE");function np(e,t){const{ownerDocument:n=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:s,shouldHandlePointerDownOutside:i=LC}=t,a=kn(e),l=v.useRef(!1),c=v.useRef(!1),u=v.useRef(new Map),d=v.useRef(()=>{});return v.useEffect(()=>{function f(){c.current=!1,r.current=!1,u.current.clear()}ke(f,"resetOutsideInteraction");function p(){return Array.from(u.current.values()).some(Boolean)}ke(p,"isOutsideInteractionIntercepted");function m(C){if(!c.current)return;const _=C.target;_ instanceof Node&&[...s].some(T=>T.contains(_))||u.current.set(C.type,!0),C.type==="click"&&window.setTimeout(()=>{c.current&&d.current()},0)}ke(m,"handleInteractionCapture");function g(C){c.current&&u.current.set(C.type,!1)}ke(g,"handleInteractionBubble");const x=ke(C=>{if(C.target&&!l.current){let _=function(){n.removeEventListener("click",d.current);const T=p();f(),T||va($C,a,w,{discrete:!0})};if(ke(_,"handleAndDispatchPointerDownOutsideEvent"),!i(C.target)){n.removeEventListener("click",d.current),f(),l.current=!1;return}const w={originalEvent:C};c.current=!0,r.current=o&&C.button===0,u.current.clear(),!o||C.button!==0?_():(n.removeEventListener("click",d.current),d.current=_,n.addEventListener("click",d.current,{once:!0}))}else n.removeEventListener("click",d.current),f();l.current=!1},"handlePointerDown"),b=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const C of b)n.addEventListener(C,m,!0),n.addEventListener(C,g);const S=window.setTimeout(()=>{n.addEventListener("pointerdown",x)},0);return()=>{window.clearTimeout(S),n.removeEventListener("pointerdown",x),n.removeEventListener("click",d.current);for(const C of b)n.removeEventListener(C,m,!0),n.removeEventListener(C,g)}},[n,a,o,r,s,i]),{onPointerDownCapture:ke(()=>l.current=!0,"onPointerDownCapture")}}ke(np,"usePointerDownOutside");function op(e,t=globalThis==null?void 0:globalThis.document){const n=kn(e),o=v.useRef(!1);return v.useEffect(()=>{const r=ke(s=>{s.target&&!o.current&&va(RC,n,{originalEvent:s},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:ke(()=>o.current=!0,"onFocusCapture"),onBlurCapture:ke(()=>o.current=!1,"onBlurCapture")}}ke(op,"useFocusOutside");function ma(){const e=new CustomEvent(ga);document.dispatchEvent(e)}ke(ma,"dispatchUpdate");function va(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?kC(r,s):r.dispatchEvent(s)}ke(va,"handleAndDispatchCustomEvent");var FC=Object.defineProperty,Ke=(e,t)=>FC(e,"name",{value:t,configurable:!0}),xa="focusScope.autoFocusOnMount",ba="focusScope.autoFocusOnUnmount",rp={bubbles:!1,cancelable:!0},sp=v.forwardRef(Ke(function(t,n){const{loop:o=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...a}=t,[l,c]=v.useState(null),u=kn(s),d=kn(i),f=v.useRef(null),p=Se(n,c),m=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let x=function(_){if(m.paused||!l)return;const w=_.target;l.contains(w)?f.current=w:Vt(f.current,{select:!0})},b=function(_){if(m.paused||!l)return;const w=_.relatedTarget;w!==null&&(l.contains(w)||Vt(f.current,{select:!0}))},S=function(_){if(document.activeElement===document.body)for(const T of _)T.removedNodes.length>0&&Vt(l)};Ke(x,"handleFocusIn"),Ke(b,"handleFocusOut"),Ke(S,"handleMutations"),document.addEventListener("focusin",x),document.addEventListener("focusout",b);const C=new MutationObserver(S);return l&&C.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",b),C.disconnect()}}},[r,l,m.paused]),v.useEffect(()=>{if(l){up.add(m);const x=document.activeElement;if(!l.contains(x)){const S=new CustomEvent(xa,rp);l.addEventListener(xa,u),l.dispatchEvent(S),S.defaultPrevented||(ip(fp(ya(l)),{select:!0}),document.activeElement===x&&Vt(l))}return()=>{l.removeEventListener(xa,u),setTimeout(()=>{const S=new CustomEvent(ba,rp);l.addEventListener(ba,d),l.dispatchEvent(S),S.defaultPrevented||Vt(x??document.body,{select:!0}),l.removeEventListener(ba,d),up.remove(m)},0)}}},[l,u,d,m]);const g=v.useCallback(x=>{if(!o&&!r||m.paused)return;const b=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,S=document.activeElement;if(b&&S){const C=x.currentTarget,[_,w]=ap(C);_&&w?!x.shiftKey&&S===w?(x.preventDefault(),o&&Vt(_,{select:!0})):x.shiftKey&&S===_&&(x.preventDefault(),o&&Vt(w,{select:!0})):S===C&&x.preventDefault()}},[o,r,m.paused]);return h.jsx(de.div,{tabIndex:-1,...a,ref:p,onKeyDown:g})},"FocusScope"));function ip(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Vt(o,{select:t}),document.activeElement!==n)return}Ke(ip,"focusFirst");function ap(e){const t=ya(e),n=Ca(t,e),o=Ca(t.reverse(),e);return[n,o]}Ke(ap,"getTabbableEdges");function ya(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Ke(o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}Ke(ya,"getTabbableCandidates");function Ca(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const o of e)if(!(n?!o.checkVisibility({checkVisibilityCSS:!0}):lp(o,{upTo:t})))return o}Ke(Ca,"findVisible");function lp(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}Ke(lp,"isHidden");function cp(e){return e instanceof HTMLInputElement&&"select"in e}Ke(cp,"isSelectableInput");function Vt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&cp(e)&&t&&e.select()}}Ke(Vt,"focus");var up=dp();function dp(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Sa(e,t),e.unshift(t)},remove(t){var n;e=Sa(e,t),(n=e[0])==null||n.resume()}}}Ke(dp,"createFocusScopesStack");function Sa(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}Ke(Sa,"arrayRemove");function fp(e){return e.filter(t=>t.tagName!=="A")}Ke(fp,"removeLinks");var zC=Object.defineProperty,VC=(e,t)=>zC(e,"name",{value:t,configurable:!0}),wa=v.forwardRef(VC(function(t,n){var l;const{container:o,...r}=t,[s,i]=v.useState(!1);Ue(()=>i(!0),[]);const a=o||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?xn.createPortal(h.jsx(de.div,{...r,ref:n}),a):null},"Portal")),BC=Object.defineProperty,Bt=(e,t)=>BC(e,"name",{value:t,configurable:!0});function pp(e,t){return v.useReducer((n,o)=>t[n][o]??n,e)}Bt(pp,"useStateMachine");var xt=Bt(e=>{const{present:t,children:n}=e,o=gp(t),r=typeof n=="function"?n({present:o.isPresent}):v.Children.only(n),s=hp(o.ref,mp(r));return typeof n=="function"||o.isPresent?v.cloneElement(r,{ref:s}):null},"Presence");function gp(e){const[t,n]=v.useState(),o=v.useRef(null),r=v.useRef(e),s=v.useRef("none"),i=v.useRef(void 0),a=e?"mounted":"unmounted",[l,c]=pp(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{l==="mounted"?(s.current=i.current??ro(o.current),i.current=void 0):s.current="none"},[l]),Ue(()=>{const u=o.current,d=r.current;if(d!==e){const p=s.current,m=ro(u);e?(i.current=m,c("MOUNT")):m==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&p!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),Ue(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=Bt(m=>{const x=ro(o.current).includes(CSS.escape(m.animationName));if(m.target===t&&x&&(c("ANIMATION_END"),!r.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},"handleAnimationEnd"),p=Bt(m=>{m.target===t&&(s.current=ro(o.current))},"handleAnimationStart");return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:v.useCallback(u=>{if(u){const d=getComputedStyle(u);o.current=d,i.current=ro(d)}else o.current=null;n(u)},[])}}Bt(gp,"usePresence");function _a(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Bt(_a,"setRef");function hp(...e){const t=v.useRef(e);return t.current=e,v.useCallback(n=>{const o=t.current;let r=!1;const s=o.map(i=>{const a=_a(i,n);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<s.length;i++){const a=s[i];typeof a=="function"?a():_a(o[i],null)}}},[])}Bt(hp,"useStableComposedRefs");function ro(e){return(e==null?void 0:e.animationName)||"none"}Bt(ro,"getAnimationName");function mp(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Bt(mp,"getElementRef");var ts=0,Et=null;function vp(){v.useEffect(()=>{Et||(Et={start:xp(),end:xp()});const{start:e,end:t}=Et;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),ts++,()=>{ts===1&&(Et==null||Et.start.remove(),Et==null||Et.end.remove(),Et=null),ts=Math.max(0,ts-1)}},[])}function xp(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Pt=function(){return Pt=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Pt.apply(this,arguments)};function bp(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function HC(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var ns="right-scroll-bar-position",os="width-before-scroll-bar",GC="with-scroll-bars-hidden",jC="--removed-body-scroll-bar-size";function Ta(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function WC(e,t){var n=y.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var UC=typeof window<"u"?v.useLayoutEffect:v.useEffect,yp=new WeakMap;function qC(e,t){var n=WC(null,function(o){return e.forEach(function(r){return Ta(r,o)})});return UC(function(){var o=yp.get(n);if(o){var r=new Set(o),s=new Set(e),i=n.current;r.forEach(function(a){s.has(a)||Ta(a,null)}),s.forEach(function(a){r.has(a)||Ta(a,i)})}yp.set(n,e)},[e]),n}function KC(e){return e}function XC(e,t){t===void 0&&(t=KC);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,o);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(o=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){o=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var u=i;i=[],u.forEach(s)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){i.push(u),c()},filter:function(u){return i=i.filter(u),n}}}};return r}function YC(e){e===void 0&&(e={});var t=XC(null);return t.options=Pt({async:!0,ssr:!1},e),t}var Cp=function(e){var t=e.sideCar,n=bp(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return v.createElement(o,Pt({},n))};Cp.isSideCarExport=!0;function JC(e,t){return e.useMedium(t),Cp}var Sp=YC(),Ea=function(){},rs=v.forwardRef(function(e,t){var n=v.useRef(null),o=v.useState({onScrollCapture:Ea,onWheelCapture:Ea,onTouchMoveCapture:Ea}),r=o[0],s=o[1],i=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,g=e.inert,x=e.allowPinchZoom,b=e.as,S=b===void 0?"div":b,C=e.gapMode,_=bp(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,T=qC([n,t]),E=Pt(Pt({},_),r);return v.createElement(v.Fragment,null,u&&v.createElement(w,{sideCar:Sp,removeScrollBar:c,shards:d,noRelative:p,noIsolation:m,inert:g,setCallbacks:s,allowPinchZoom:!!x,lockRef:n,gapMode:C}),i?v.cloneElement(v.Children.only(a),Pt(Pt({},E),{ref:T})):v.createElement(S,Pt({},E,{className:l,ref:T}),a))});rs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},rs.classNames={fullWidth:os,zeroRight:ns};var ZC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function QC(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ZC();return t&&e.setAttribute("nonce",t),e}function eS(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function tS(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var nS=function(){var e=0,t=null;return{add:function(n){e==0&&(t=QC())&&(eS(t,n),tS(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},oS=function(){var e=nS();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},wp=function(){var e=oS(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},rS={left:0,top:0,right:0,gap:0},Pa=function(e){return parseInt(e||"",10)||0},sS=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Pa(n),Pa(o),Pa(r)]},iS=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return rS;var t=sS(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},aS=wp(),so="data-scroll-locked",lS=function(e,t,n,o){var r=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
126
+ .`.concat(GC,` {
117
127
  overflow: hidden `).concat(o,`;
118
128
  padding-right: `).concat(a,"px ").concat(o,`;
119
129
  }
120
- body[`).concat(oo,`] {
130
+ body[`).concat(so,`] {
121
131
  overflow: hidden `).concat(o,`;
122
132
  overscroll-behavior: contain;
123
133
  `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&`
@@ -130,33 +140,36 @@ Defaulting to \`null\`.`}Lt(uf,"getInvalidValueError");var Ny=Ay,ky=Dy;const df=
130
140
  `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(o,";")].filter(Boolean).join(""),`
131
141
  }
132
142
 
133
- .`).concat(qr,` {
143
+ .`).concat(ns,` {
134
144
  right: `).concat(a,"px ").concat(o,`;
135
145
  }
136
146
 
137
- .`).concat(Kr,` {
147
+ .`).concat(os,` {
138
148
  margin-right: `).concat(a,"px ").concat(o,`;
139
149
  }
140
150
 
141
- .`).concat(qr," .").concat(qr,` {
151
+ .`).concat(ns," .").concat(ns,` {
142
152
  right: 0 `).concat(o,`;
143
153
  }
144
154
 
145
- .`).concat(Kr," .").concat(Kr,` {
155
+ .`).concat(os," .").concat(os,` {
146
156
  margin-right: 0 `).concat(o,`;
147
157
  }
148
158
 
149
- body[`).concat(oo,`] {
150
- `).concat(aC,": ").concat(a,`px;
159
+ body[`).concat(so,`] {
160
+ `).concat(jC,": ").concat(a,`px;
151
161
  }
152
- `)},tp=function(){var e=parseInt(document.body.getAttribute(oo)||"0",10);return isFinite(e)?e:0},EC=function(){g.useEffect(function(){return document.body.setAttribute(oo,(tp()+1).toString()),function(){var e=tp()-1;e<=0?document.body.removeAttribute(oo):document.body.setAttribute(oo,e.toString())}},[])},PC=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;EC();var s=g.useMemo(function(){return SC(r)},[r]);return g.createElement(_C,{styles:TC(s,!t,r,n?"":"!important")})},ba=!1;if(typeof window<"u")try{var Yr=Object.defineProperty({},"passive",{get:function(){return ba=!0,!0}});window.addEventListener("test",Yr,Yr),window.removeEventListener("test",Yr,Yr)}catch{ba=!1}var ro=ba?{passive:!1}:!1,IC=function(e){return e.tagName==="TEXTAREA"},np=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!IC(e)&&n[t]==="visible")},AC=function(e){return np(e,"overflowY")},OC=function(e){return np(e,"overflowX")},op=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=rp(e,o);if(r){var s=sp(e,o),i=s[1],a=s[2];if(i>a)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},DC=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},NC=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},rp=function(e,t){return e==="v"?AC(t):OC(t)},sp=function(e,t){return e==="v"?DC(t):NC(t)},kC=function(e,t){return e==="h"&&t==="rtl"?-1:1},$C=function(e,t,n,o,r){var s=kC(e,window.getComputedStyle(t).direction),i=s*o,a=n.target,l=t.contains(a),c=!1,u=i>0,d=0,f=0;do{if(!a)break;var p=sp(e,a),v=p[0],m=p[1],x=p[2],y=m-x-s*v;(v||y)&&rp(e,a)&&(d+=y,f+=v);var S=a.parentNode;a=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(c=!0),c},Zr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ip=function(e){return[e.deltaX,e.deltaY]},ap=function(e){return e&&"current"in e?e.current:e},MC=function(e,t){return e[0]===t[0]&&e[1]===t[1]},RC=function(e){return`
162
+ `)},_p=function(){var e=parseInt(document.body.getAttribute(so)||"0",10);return isFinite(e)?e:0},cS=function(){v.useEffect(function(){return document.body.setAttribute(so,(_p()+1).toString()),function(){var e=_p()-1;e<=0?document.body.removeAttribute(so):document.body.setAttribute(so,e.toString())}},[])},uS=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;cS();var s=v.useMemo(function(){return iS(r)},[r]);return v.createElement(aS,{styles:lS(s,!t,r,n?"":"!important")})},Ia=!1;if(typeof window<"u")try{var ss=Object.defineProperty({},"passive",{get:function(){return Ia=!0,!0}});window.addEventListener("test",ss,ss),window.removeEventListener("test",ss,ss)}catch{Ia=!1}var io=Ia?{passive:!1}:!1,dS=function(e){return e.tagName==="TEXTAREA"},Tp=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!dS(e)&&n[t]==="visible")},fS=function(e){return Tp(e,"overflowY")},pS=function(e){return Tp(e,"overflowX")},Ep=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=Pp(e,o);if(r){var s=Ip(e,o),i=s[1],a=s[2];if(i>a)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},gS=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},hS=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},Pp=function(e,t){return e==="v"?fS(t):pS(t)},Ip=function(e,t){return e==="v"?gS(t):hS(t)},mS=function(e,t){return e==="h"&&t==="rtl"?-1:1},vS=function(e,t,n,o,r){var s=mS(e,window.getComputedStyle(t).direction),i=s*o,a=n.target,l=t.contains(a),c=!1,u=i>0,d=0,f=0;do{if(!a)break;var p=Ip(e,a),m=p[0],g=p[1],x=p[2],b=g-x-s*m;(m||b)&&Pp(e,a)&&(d+=b,f+=m);var S=a.parentNode;a=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(c=!0),c},is=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ap=function(e){return[e.deltaX,e.deltaY]},Op=function(e){return e&&"current"in e?e.current:e},xS=function(e,t){return e[0]===t[0]&&e[1]===t[1]},bS=function(e){return`
153
163
  .block-interactivity-`.concat(e,` {pointer-events: none;}
154
164
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
155
- `)},LC=0,so=[];function FC(e){var t=g.useRef([]),n=g.useRef([0,0]),o=g.useRef(),r=g.useState(LC++)[0],s=g.useState(ep)[0],i=g.useRef(e);g.useEffect(function(){i.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var m=sC([e.lockRef.current],(e.shards||[]).map(ap),!0).filter(Boolean);return m.forEach(function(x){return x.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),m.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=g.useCallback(function(m,x){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!i.current.allowPinchZoom;var y=Zr(m),S=n.current,C="deltaX"in m?m.deltaX:S[0]-y[0],_="deltaY"in m?m.deltaY:S[1]-y[1],w,T=m.target,E=Math.abs(C)>Math.abs(_)?"h":"v";if("touches"in m&&E==="h"&&T.type==="range")return!1;var P=window.getSelection(),A=P&&P.anchorNode,R=A?A===T||A.contains(T):!1;if(R)return!1;var B=op(E,T);if(!B)return!0;if(B?w=E:(w=E==="v"?"h":"v",B=op(E,T)),!B)return!1;if(!o.current&&"changedTouches"in m&&(C||_)&&(o.current=w),!w)return!0;var V=o.current||w;return $C(V,x,m,V==="h"?C:_)},[]),l=g.useCallback(function(m){var x=m;if(!(!so.length||so[so.length-1]!==s)){var y="deltaY"in x?ip(x):Zr(x),S=t.current.filter(function(w){return w.name===x.type&&(w.target===x.target||x.target===w.shadowParent)&&MC(w.delta,y)})[0];if(S&&S.should){x.cancelable&&x.preventDefault();return}if(!S){var C=(i.current.shards||[]).map(ap).filter(Boolean).filter(function(w){return w.contains(x.target)}),_=C.length>0?a(x,C[0]):!i.current.noIsolation;_&&x.cancelable&&x.preventDefault()}}},[]),c=g.useCallback(function(m,x,y,S){var C={name:m,delta:x,target:y,should:S,shadowParent:zC(y)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(_){return _!==C})},1)},[]),u=g.useCallback(function(m){n.current=Zr(m),o.current=void 0},[]),d=g.useCallback(function(m){c(m.type,ip(m),m.target,a(m,e.lockRef.current))},[]),f=g.useCallback(function(m){c(m.type,Zr(m),m.target,a(m,e.lockRef.current))},[]);g.useEffect(function(){return so.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,ro),document.addEventListener("touchmove",l,ro),document.addEventListener("touchstart",u,ro),function(){so=so.filter(function(m){return m!==s}),document.removeEventListener("wheel",l,ro),document.removeEventListener("touchmove",l,ro),document.removeEventListener("touchstart",u,ro)}},[]);var p=e.removeScrollBar,v=e.inert;return g.createElement(g.Fragment,null,v?g.createElement(s,{styles:RC(r)}):null,p?g.createElement(PC,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function zC(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const VC=gC(Qf,FC);var Jr=g.forwardRef(function(e,t){return g.createElement(Xr,_t({},e,{ref:t,sideCar:VC}))});Jr.classNames=Xr.classNames;var HC=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},io=new WeakMap,Qr=new WeakMap,es={},ya=0,lp=function(e){return e&&(e.host||lp(e.parentNode))},BC=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=lp(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},GC=function(e,t,n,o){var r=BC(t,Array.isArray(e)?e:[e]);es[n]||(es[n]=new WeakMap);var s=es[n],i=[],a=new Set,l=new Set(r),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};r.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var p=f.getAttribute(o),v=p!==null&&p!=="false",m=(io.get(f)||0)+1,x=(s.get(f)||0)+1;io.set(f,m),s.set(f,x),i.push(f),m===1&&v&&Qr.set(f,!0),x===1&&f.setAttribute(n,"true"),v||f.setAttribute(o,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return u(t),a.clear(),ya++,function(){i.forEach(function(d){var f=io.get(d)-1,p=s.get(d)-1;io.set(d,f),s.set(d,p),f||(Qr.has(d)||d.removeAttribute(o),Qr.delete(d)),p||d.removeAttribute(n)}),ya--,ya||(io=new WeakMap,io=new WeakMap,Qr=new WeakMap,es={})}},Ca=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=HC(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),GC(o,r,n,"aria-hidden")):function(){return null}},jC=Object.defineProperty,et=(e,t)=>jC(e,"name",{value:t,configurable:!0}),wa="Dialog",[cp]=ct(wa),[UC,mt]=cp(wa),up=et(e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:i=!0}=e,a=g.useRef(null),l=g.useRef(null),[c,u]=gt({prop:o,defaultProp:r??!1,onChange:s,caller:wa}),[d,f]=g.useState(0),[p,v]=g.useState(0);return h.jsx(UC,{scope:t,triggerRef:a,contentRef:l,contentId:Be(),titleId:Be(),descriptionId:Be(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:v,open:c,onOpenChange:u,onOpenToggle:g.useCallback(()=>u(m=>!m),[u]),modal:i,children:n})},"Dialog"),WC="DialogTrigger",qC=g.forwardRef(et(function(t,n){const{__scopeDialog:o,...r}=t,s=mt(WC,o),i=ye(n,s.triggerRef);return h.jsx(ce.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":ts(s.open),...r,ref:i,onClick:pe(t.onClick,s.onOpenToggle)})},"DialogTrigger")),dp="DialogPortal",[KC,fp]=cp(dp,{forceMount:void 0}),Sa=et(e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=mt(dp,t);return h.jsx(KC,{scope:t,forceMount:n,children:g.Children.map(o,i=>h.jsx(ht,{present:n||s.open,children:h.jsx(ga,{asChild:!0,container:r,children:i})}))})},"DialogPortal"),_a="DialogOverlay",pp=g.forwardRef(et(function(t,n){const o=fp(_a,t.__scopeDialog),{forceMount:r=o.forceMount,...s}=t,i=mt(_a,t.__scopeDialog);return i.modal?h.jsx(ht,{present:r||i.open,children:h.jsx(YC,{...s,ref:n})}):null},"DialogOverlay")),XC=qn("DialogOverlay.RemoveScroll"),YC=g.forwardRef(et(function(t,n){const{__scopeDialog:o,...r}=t,s=mt(_a,o),i=Nf(),a=ye(n,i);return h.jsx(Jr,{as:XC,allowPinchZoom:!0,shards:[s.contentRef],children:h.jsx(ce.div,{"data-state":ts(s.open),...r,ref:a,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),jo="DialogContent",Ta=g.forwardRef(et(function(t,n){const o=fp(jo,t.__scopeDialog),{forceMount:r=o.forceMount,...s}=t,i=mt(jo,t.__scopeDialog);return h.jsx(ht,{present:r||i.open,children:i.modal?h.jsx(ZC,{...s,ref:n}):h.jsx(JC,{...s,ref:n})})},"DialogContent")),ZC=g.forwardRef(et(function(t,n){const o=mt(jo,t.__scopeDialog),r=g.useRef(null),s=ye(n,o.contentRef,r);return g.useEffect(()=>{const i=r.current;if(i)return Ca(i)},[]),h.jsx(gp,{...t,ref:s,trapFocus:o.open,disableOutsidePointerEvents:o.open,onCloseAutoFocus:pe(t.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=o.triggerRef.current)==null||a.focus()}),onPointerDownOutside:pe(t.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&i.preventDefault()}),onFocusOutside:pe(t.onFocusOutside,i=>i.preventDefault())})},"DialogContentModal")),JC=g.forwardRef(et(function(t,n){const o=mt(jo,t.__scopeDialog),r=g.useRef(!1),s=g.useRef(!1);return h.jsx(gp,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,l;(a=t.onCloseAutoFocus)==null||a.call(t,i),i.defaultPrevented||(r.current||(l=o.triggerRef.current)==null||l.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var c,u;(c=t.onInteractOutside)==null||c.call(t,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const a=i.target;((u=o.triggerRef.current)==null?void 0:u.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})},"DialogContentNonModal")),gp=g.forwardRef(et(function(t,n){const{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...a}=t,l=mt(jo,o);return Kf(),h.jsx(h.Fragment,{children:h.jsx(Rf,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:h.jsx(ia,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionPresent?l.descriptionId:void 0,"aria-labelledby":l.titlePresent?l.titleId:void 0,"data-state":ts(l.open),...a,ref:n,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1)})})})},"DialogContentImpl")),QC="DialogTitle",ew=g.forwardRef(et(function(t,n){const{__scopeDialog:o,...r}=t,s=mt(QC,o),{setTitleCount:i}=s;return He(()=>(i(a=>a+1),()=>i(a=>a-1)),[i]),h.jsx(ce.h2,{id:s.titleId,...r,ref:n})},"DialogTitle")),tw="DialogDescription",nw=g.forwardRef(et(function(t,n){const{__scopeDialog:o,...r}=t,s=mt(tw,o),{setDescriptionCount:i}=s;return He(()=>(i(a=>a+1),()=>i(a=>a-1)),[i]),h.jsx(ce.p,{id:s.descriptionId,...r,ref:n})},"DialogDescription")),ow="DialogClose",Ea=g.forwardRef(et(function(t,n){const{__scopeDialog:o,...r}=t,s=mt(ow,o);return h.jsx(ce.button,{type:"button",...r,ref:n,onClick:pe(t.onClick,()=>s.onOpenChange(!1))})},"DialogClose"));function ts(e){return e?"open":"closed"}et(ts,"getState");const hp=({children:e,defaultOpen:t=!1,open:n,onOpenChange:o,modal:r=!0})=>h.jsx(up,{"data-slot":"dialog",defaultOpen:t,open:n,onOpenChange:o,modal:r,children:e});hp.displayName="OxDialog";const ns={oxDialogContent:"_oxDialogContent_prbnq_2",oxDialogCloseButton:"_oxDialogCloseButton_prbnq_2",oxDialogCloseIcon:"_oxDialogCloseIcon_prbnq_2",oxDialogCloseLabel:"_oxDialogCloseLabel_prbnq_2"},rw={oxDialogOverlay:"_oxDialogOverlay_12k22_2"},os=b.forwardRef(({className:e,...t},n)=>h.jsx(pp,{ref:n,"data-slot":"dialog-overlay",className:j(rw.oxDialogOverlay,e),...t}));os.displayName="OxDialogOverlay";const mp=b.forwardRef(({className:e,children:t,showCloseButton:n=!0,...o},r)=>h.jsxs(Sa,{children:[h.jsx(os,{}),h.jsxs(Ta,{ref:r,"data-slot":"dialog-content",className:j(ns.oxDialogContent,e),...o,children:[t,n&&h.jsxs(Ea,{"data-slot":"dialog-close",className:ns.oxDialogCloseButton,children:[h.jsx(Li,{className:ns.oxDialogCloseIcon}),h.jsx("span",{className:ns.oxDialogCloseLabel,children:"Close"})]})]})]}));mp.displayName="OxDialogContent";const sw={oxDialogTitle:"_oxDialogTitle_jzndx_2"},vp=b.forwardRef(({className:e,...t},n)=>h.jsx(ew,{ref:n,"data-slot":"dialog-title",className:j(sw.oxDialogTitle,e),...t}));vp.displayName="OxDialogTitle";const iw={oxDialogDescription:"_oxDialogDescription_1955v_2"},xp=b.forwardRef(({className:e,...t},n)=>h.jsx(nw,{ref:n,"data-slot":"dialog-description",className:j(iw.oxDialogDescription,e),...t}));xp.displayName="OxDialogDescription";const ao={oxDialogTwoPanelContent:"_oxDialogTwoPanelContent_1nf6u_2",oxDialogTwoPanelMain:"_oxDialogTwoPanelMain_1nf6u_2",oxDialogTwoPanelAside:"_oxDialogTwoPanelAside_1nf6u_2",oxDialogCloseButton:"_oxDialogCloseButton_1nf6u_2",oxDialogCloseIcon:"_oxDialogCloseIcon_1nf6u_2",oxDialogCloseLabel:"_oxDialogCloseLabel_1nf6u_2"},bp=b.forwardRef(({className:e,children:t,aside:n,showCloseButton:o=!0,...r},s)=>h.jsxs(Sa,{children:[h.jsx(os,{}),h.jsxs(Ta,{ref:s,"data-slot":"dialog-content",className:j(ao.oxDialogTwoPanelContent,e),...r,children:[h.jsx("div",{className:ao.oxDialogTwoPanelMain,children:t}),h.jsx("div",{className:ao.oxDialogTwoPanelAside,children:n}),o&&h.jsxs(Ea,{"data-slot":"dialog-close",className:ao.oxDialogCloseButton,children:[h.jsx(Li,{className:ao.oxDialogCloseIcon}),h.jsx("span",{className:ao.oxDialogCloseLabel,children:"Close"})]})]})]}));bp.displayName="OxDialogTwoPanelContent";const aw=["top","right","bottom","left"],en=Math.min,Vt=Math.max,rs=Math.round,ss=Math.floor,Ht=e=>({x:e,y:e}),lw={left:"right",right:"left",bottom:"top",top:"bottom"};function yp(e,t,n){return Vt(e,en(t,n))}function Bt(e,t){return typeof e=="function"?e(t):e}function tn(e){return e.split("-")[0]}function lo(e){return e.split("-")[1]}function Pa(e){return e==="x"?"y":"x"}function Ia(e){return e==="y"?"height":"width"}function Tt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Aa(e){return Pa(Tt(e))}function cw(e,t,n){n===void 0&&(n=!1);const o=lo(e),r=Aa(e),s=Ia(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=is(i)),[i,is(i)]}function uw(e){const t=is(e);return[Oa(e),t,Oa(t)]}function Oa(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Cp=["left","right"],wp=["right","left"],dw=["top","bottom"],fw=["bottom","top"];function pw(e,t,n){switch(e){case"top":case"bottom":return n?t?wp:Cp:t?Cp:wp;case"left":case"right":return t?dw:fw;default:return[]}}function gw(e,t,n,o){const r=lo(e);let s=pw(tn(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(Oa)))),s}function is(e){const t=tn(e);return lw[t]+e.slice(t.length)}function hw(e){var t,n,o,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function Sp(e){return typeof e!="number"?hw(e):{top:e,right:e,bottom:e,left:e}}function as(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function _p(e,t,n){let{reference:o,floating:r}=e;const s=Tt(t),i=Aa(t),a=Ia(i),l=tn(t),c=s==="y",u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,f=o[a]/2-r[a]/2;let p;switch(l){case"top":p={x:u,y:o.y-r.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}const v=lo(t);return v&&(p[i]+=f*(v==="end"?1:-1)*(n&&c?-1:1)),p}async function mw(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Bt(t,e),v=Sp(p),x=a[f?d==="floating"?"reference":"floating":d],y=as(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),S=d==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),_=await(s.isElement==null?void 0:s.isElement(C))&&await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1},w=as(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:S,offsetParent:C,strategy:l}):S);return{top:(y.top-w.top+v.top)/_.y,bottom:(w.bottom-y.bottom+v.bottom)/_.y,left:(y.left-w.left+v.left)/_.x,right:(w.right-y.right+v.right)/_.x}}const vw=50,xw=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,a=i.detectOverflow?i:{...i,detectOverflow:mw},l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=_p(c,o,l),f=o,p=0;const v={};for(let m=0;m<s.length;m++){const x=s[m];if(!x)continue;const{name:y,fn:S}=x,{x:C,y:_,data:w,reset:T}=await S({x:u,y:d,initialPlacement:o,placement:f,strategy:r,middlewareData:v,rects:c,platform:a,elements:{reference:e,floating:t}});u=C??u,d=_??d,v[y]={...v[y],...w},T&&p<vw&&(p++,typeof T=="object"&&(T.placement&&(f=T.placement),T.rects&&(c=T.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):T.rects),{x:u,y:d}=_p(c,f,l)),m=-1)}return{x:u,y:d,placement:f,strategy:r,middlewareData:v}},bw=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Bt(e,t)||{};if(c==null)return{};const d=Sp(u),f={x:n,y:o},p=Aa(r),v=Ia(p),m=await i.getDimensions(c),x=p==="y",y=x?"top":"left",S=x?"bottom":"right",C=x?"clientHeight":"clientWidth",_=s.reference[v]+s.reference[p]-f[p]-s.floating[v],w=f[p]-s.reference[p],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let E=T?T[C]:0;(!E||!await(i.isElement==null?void 0:i.isElement(T)))&&(E=a.floating[C]||s.floating[v]);const P=_/2-w/2,A=E/2-m[v]/2-1,R=en(d[y],A),B=en(d[S],A),V=E-m[v]-B,K=E/2-m[v]/2+P,U=yp(R,K,V),Z=!l.arrow&&lo(r)!=null&&K!==U&&s.reference[v]/2-(K<R?R:B)-m[v]/2<0,X=Z?K<R?K-R:K-V:0;return{[p]:f[p]+X,data:{[p]:U,centerOffset:K-U-X,...Z&&{alignmentOffset:X}},reset:Z}}}),yw=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...x}=Bt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=tn(r),S=Tt(a),C=tn(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),w=f||(C||!m?[is(a)]:uw(a)),T=v!=="none";!f&&T&&w.push(...gw(a,m,v,_));const E=[a,...w],P=await l.detectOverflow(t,x),A=[];let R=((o=s.flip)==null?void 0:o.overflows)||[];if(u&&A.push(P[y]),d){const U=cw(r,i,_);A.push(P[U[0]],P[U[1]])}if(R=[...R,{placement:r,overflows:A}],!A.every(U=>U<=0)){var B,V;const U=(((B=s.flip)==null?void 0:B.index)||0)+1,Z=E[U];if(Z&&(!(d==="alignment"?S!==Tt(Z):!1)||R.every(z=>Tt(z.placement)===S?z.overflows[0]>0:!0)))return{data:{index:U,overflows:R},reset:{placement:Z}};let X=(V=R.filter(q=>q.overflows[0]<=0).sort((q,z)=>q.overflows[1]-z.overflows[1])[0])==null?void 0:V.placement;if(!X)switch(p){case"bestFit":{var K;const q=(K=R.filter(z=>{if(T){const ee=Tt(z.placement);return ee===S||ee==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(ee=>ee>0).reduce((ee,F)=>ee+F,0)]).sort((z,ee)=>z[1]-ee[1])[0])==null?void 0:K[0];q&&(X=q);break}case"initialPlacement":X=a;break}if(r!==X)return{reset:{placement:X}}}return{}}}};function Tp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ep(e){return aw.some(t=>e[t]>=0)}const Cw=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...s}=Bt(e,t);switch(r){case"referenceHidden":{const i=await o.detectOverflow(t,{...s,elementContext:"reference"}),a=Tp(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ep(a)}}}case"escaped":{const i=await o.detectOverflow(t,{...s,altBoundary:!0}),a=Tp(i,n.floating);return{data:{escapedOffsets:a,escaped:Ep(a)}}}default:return{}}}}},Pp=new Set(["left","top"]);async function ww(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=tn(n),a=lo(n),l=Tt(n)==="y",c=Pp.has(i)?-1:1,u=s&&l?-1:1,d=Bt(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof v=="number"&&(p=a==="end"?v*-1:v),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const Sw=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:a}=t,l=await ww(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:i}}}}},_w=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:S=>{let{x:C,y:_}=S;return{x:C,y:_}}},...c}=Bt(e,t),u={x:n,y:o},d=await s.detectOverflow(t,c),f=Tt(r),p=Pa(f);let v=u[p],m=u[f];const x=(S,C)=>yp(C+d[S==="y"?"top":"left"],C,C-d[S==="y"?"bottom":"right"]);i&&(v=x(p,v)),a&&(m=x(f,m));const y=l.fn({...t,[p]:v,[f]:m});return{...y,data:{x:y.x-n,y:y.y-o,enabled:{[p]:i,[f]:a}}}}}},Tw=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,o;const{x:r,y:s,placement:i,rects:a,middlewareData:l}=t,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=Bt(e,t),f={x:r,y:s},p=Tt(i),v=Pa(p);let m=f[v],x=f[p];const y=Bt(c,t),S=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:(n=y.mainAxis)!=null?n:0,crossAxis:(o=y.crossAxis)!=null?o:0};if(u){const w=v==="y"?"height":"width",T=a.reference[v]-a.floating[w]+S.mainAxis,E=a.reference[v]+a.reference[w]-S.mainAxis;m<T?m=T:m>E&&(m=E)}if(d){var C,_;const w=v==="y"?"width":"height",T=Pp.has(tn(i)),E=a.reference[p]-a.floating[w]+(T&&((C=l.offset)==null?void 0:C[p])||0)+(T?0:S.crossAxis),P=a.reference[p]+a.reference[w]+(T?0:((_=l.offset)==null?void 0:_[p])||0)-(T?S.crossAxis:0);x<E?x=E:x>P&&(x=P)}return{[v]:m,[p]:x}}}},Ew=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:s}=t,{apply:i=()=>{},...a}=Bt(e,t),l=await r.detectOverflow(t,a),c=tn(n),u=lo(n),d=Tt(n)==="y",{width:f,height:p}=o.floating;let v,m;c==="top"||c==="bottom"?(v=c,m=u===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(m=c,v=u==="end"?"top":"bottom");const x=p-l.top-l.bottom,y=f-l.left-l.right,S=en(p-l[v],x),C=en(f-l[m],y),_=t.middlewareData.shift,w=!_;let T=S,E=C;_!=null&&_.enabled.x&&(E=y),_!=null&&_.enabled.y&&(T=x),w&&!u&&(d?E=f-2*Vt(l.left,l.right):T=p-2*Vt(l.top,l.bottom)),await i({...t,availableWidth:E,availableHeight:T});const P=await r.getDimensions(s.floating);return f!==P.width||p!==P.height?{reset:{rects:!0}}:{}}}};function ls(){return typeof window<"u"}function co(e){return Ip(e)?(e.nodeName||"").toLowerCase():"#document"}function We(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Gt(e){var t;return(t=(Ip(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ip(e){return ls()?e instanceof Node||e instanceof We(e).Node:!1}function Et(e){return ls()?e instanceof Element||e instanceof We(e).Element:!1}function nn(e){return ls()?e instanceof HTMLElement||e instanceof We(e).HTMLElement:!1}function Ap(e){return!ls()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof We(e).ShadowRoot}function cs(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Pt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Pw(e){return/^(table|td|th)$/.test(co(e))}function us(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Iw=/transform|translate|scale|rotate|perspective|filter/,Aw=/paint|layout|strict|content/,On=e=>!!e&&e!=="none";let Da;function Na(e){const t=Et(e)?Pt(e):e;return On(t.transform)||On(t.translate)||On(t.scale)||On(t.rotate)||On(t.perspective)||!ka()&&(On(t.backdropFilter)||On(t.filter))||Iw.test(t.willChange||"")||Aw.test(t.contain||"")}function Ow(e){let t=Dn(e);for(;nn(t)&&!Uo(t);){if(Na(t))return t;if(us(t))return null;t=Dn(t)}return null}function ka(){return Da==null&&(Da=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Da}function Uo(e){return/^(html|body|#document)$/.test(co(e))}function Pt(e){return We(e).getComputedStyle(e)}function ds(e){return Et(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Dn(e){if(co(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ap(e)&&e.host||Gt(e);return Ap(t)?t.host:t}function Op(e){const t=Dn(e);return Uo(t)?(e.ownerDocument||e).body:nn(t)&&cs(t)?t:Op(t)}function Wo(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Op(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=We(r);if(s){const a=$a(i);return t.concat(i,i.visualViewport||[],cs(r)?r:[],a&&n?Wo(a):[])}else return t.concat(r,Wo(r,[],n))}function $a(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dp(e){const t=Pt(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=nn(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,a=rs(n)!==s||rs(o)!==i;return a&&(n=s,o=i),{width:n,height:o,$:a}}function Ma(e){return Et(e)?e:e.contextElement}function uo(e){const t=Ma(e);if(!nn(t))return Ht(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=Dp(t);let i=(s?rs(n.width):n.width)/o,a=(s?rs(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Dw=Ht(0);function Np(e){const t=We(e);return!ka()||!t.visualViewport?Dw:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Nw(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===We(e)}function Nn(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=Ma(e);let i=Ht(1);t&&(o?Et(o)&&(i=uo(o)):i=uo(e));const a=Nw(s,n,o)?Np(s):Ht(0);let l=(r.left+a.x)/i.x,c=(r.top+a.y)/i.y,u=r.width/i.x,d=r.height/i.y;if(s&&o){const f=We(s),p=Et(o)?We(o):o;let v=f,m=$a(v);for(;m&&p!==v;){const x=uo(m),y=m.getBoundingClientRect(),S=Pt(m),C=y.left+(m.clientLeft+parseFloat(S.paddingLeft))*x.x,_=y.top+(m.clientTop+parseFloat(S.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=C,c+=_,v=We(m),m=$a(v)}}return as({width:u,height:d,x:l,y:c})}function fs(e,t){const n=ds(e).scrollLeft;return t?t.left+n:Nn(Gt(e)).left+n}function kp(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-fs(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function kw(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=Gt(o),a=t?us(t.floating):!1;if(o===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=Ht(1);const u=Ht(0),d=nn(o);if((d||!s)&&((co(o)!=="body"||cs(i))&&(l=ds(o)),d)){const p=Nn(o);c=uo(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}const f=i&&!d&&!s?kp(i,l):Ht(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function $w(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Mw(e){const t=ds(e),n=e.ownerDocument.body,o=Vt(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=Vt(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-t.scrollLeft+fs(e);const i=-t.scrollTop;return Pt(n).direction==="rtl"&&(s+=Vt(e.clientWidth,n.clientWidth)-o),{width:o,height:r,x:s,y:i}}const Rw=25;function Lw(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=We(e),s=Gt(e),i=r.visualViewport;let a=s.clientWidth,l=s.clientHeight,c=0,u=0;if(i){const f=!ka()||t==="fixed";o?f||(c=-i.offsetLeft,u=-i.offsetTop):(a=i.width,l=i.height,f&&(c=i.offsetLeft,u=i.offsetTop))}if(fs(s)<=0){const f=s.ownerDocument,p=f.body,v=getComputedStyle(p),m=f.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(s.clientWidth-p.clientWidth-m),y=getComputedStyle(s).scrollbarGutter==="stable both-edges"?x/2:x;y<=Rw&&(a-=y)}return{width:a,height:l,x:c,y:u}}function Fw(e,t){const n=Nn(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=uo(e),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=r*s.x,c=o*s.y;return{width:i,height:a,x:l,y:c}}function $p(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=Lw(e,n,t);else if(t==="document")o=Mw(Gt(e));else if(Et(t))o=Fw(t,n);else{const r=Np(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return as(o)}function zw(e,t){const n=t.get(e);if(n)return n;let o=Wo(e,[],!1).filter(a=>Et(a)&&co(a)!=="body"),r=null;const s=Pt(e).position==="fixed";let i=s?Dn(e):e;for(;Et(i)&&!Uo(i);){const a=Pt(i),l=Na(i),c=r?r.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?o=o.filter(d=>d!==i):r=a,i=Dn(i)}return t.set(e,o),o}function Vw(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?us(t)?[]:zw(t,this._c):[].concat(n),o],a=$p(t,i[0],r);let l=a.top,c=a.right,u=a.bottom,d=a.left;for(let f=1;f<i.length;f++){const p=$p(t,i[f],r);l=Vt(p.top,l),c=en(p.right,c),u=en(p.bottom,u),d=Vt(p.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function Hw(e){const{width:t,height:n}=Dp(e);return{width:t,height:n}}function Bw(e,t,n){const o=nn(t),r=Gt(t),s=n==="fixed",i=Nn(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Ht(0);if((o||!s)&&((co(t)!=="body"||cs(r))&&(a=ds(t)),o)){const f=Nn(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}!o&&r&&(l.x=fs(r));const c=r&&!o&&!s?kp(r,a):Ht(0),u=i.left+a.scrollLeft-l.x-c.x,d=i.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:i.width,height:i.height}}function Ra(e){return Pt(e).position==="static"}function Mp(e,t){if(!nn(e)||Pt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Gt(e)===n&&(n=n.ownerDocument.body),n}function Rp(e,t){const n=We(e);if(us(e))return n;if(!nn(e)){let r=Dn(e);for(;r&&!Uo(r);){if(Et(r)&&!Ra(r))return r;r=Dn(r)}return n}let o=Mp(e,t);for(;o&&Pw(o)&&Ra(o);)o=Mp(o,t);return o&&Uo(o)&&Ra(o)&&!Na(o)?n:o||Ow(e)||n}const Gw=async function(e){const t=this.getOffsetParent||Rp,n=this.getDimensions,o=await n(e.floating);return{reference:Bw(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function jw(e){return Pt(e).direction==="rtl"}const Uw={convertOffsetParentRelativeRectToViewportRelativeRect:kw,getDocumentElement:Gt,getClippingRect:Vw,getOffsetParent:Rp,getElementRects:Gw,getClientRects:$w,getDimensions:Hw,getScale:uo,isElement:Et,isRTL:jw};function Lp(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ww(e,t,n){let o=null,r;const s=Gt(e);function i(){var u;clearTimeout(r),(u=o)==null||u.disconnect(),o=null}function a(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),i();const f=e.getBoundingClientRect(),{left:p,top:v,width:m,height:x}=f;if(u||t(),!m||!x)return;const y=ss(v),S=ss(s.clientWidth-(p+m)),C=ss(s.clientHeight-(v+x)),_=ss(p),T={rootMargin:-y+"px "+-S+"px "+-C+"px "+-_+"px",threshold:Vt(0,en(1,d))||1};let E=!0;function P(A){const R=A[0].intersectionRatio;if(!Lp(f,e.getBoundingClientRect()))return a();if(R!==d){if(!E)return a();R?a(!1,R):r=setTimeout(()=>{a(!1,1e-7)},1e3)}E=!1}try{o=new IntersectionObserver(P,{...T,root:s.ownerDocument})}catch{o=new IntersectionObserver(P,T)}o.observe(e)}const l=We(e),c=()=>a(n);return l.addEventListener("resize",c),a(!0),()=>{l.removeEventListener("resize",c),i()}}function Fp(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,c=Ma(e),u=r||s?[...c?Wo(c):[],...t?Wo(t):[]]:[];u.forEach(y=>{r&&y.addEventListener("scroll",n),s&&y.addEventListener("resize",n)});const d=c&&a?Ww(c,n,s):null;let f=-1,p=null;i&&(p=new ResizeObserver(y=>{let[S]=y;S&&S.target===c&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var C;(C=p)==null||C.observe(t)})),n()}),c&&!l&&p.observe(c),t&&p.observe(t));let v,m=l?Nn(e):null;l&&x();function x(){const y=Nn(e);m&&!Lp(m,y)&&n(),m=y,v=requestAnimationFrame(x)}return n(),()=>{var y;u.forEach(S=>{r&&S.removeEventListener("scroll",n),s&&S.removeEventListener("resize",n)}),d==null||d(),(y=p)==null||y.disconnect(),p=null,l&&cancelAnimationFrame(v)}}const qw=Sw,Kw=_w,Xw=yw,Yw=Ew,Zw=Cw,zp=bw,Jw=Tw,Qw=(e,t,n)=>{const o=new Map,r=n??{},s={...Uw,...r.platform,_c:o};return xw(e,t,{...r,platform:s})};var eS=typeof document<"u",tS=function(){},ps=eS?b.useLayoutEffect:tS;function gs(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!gs(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!gs(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Vp(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Hp(e,t){const n=Vp(e);return Math.round(t*n)/n}function La(e){const t=g.useRef(e);return ps(()=>{t.current=e}),t}function Bp(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=g.useState(o);gs(f,o)||p(o);const[v,m]=g.useState(null),[x,y]=g.useState(null),S=g.useCallback(z=>{z!==T.current&&(T.current=z,m(z))},[]),C=g.useCallback(z=>{z!==E.current&&(E.current=z,y(z))},[]),_=s||v,w=i||x,T=g.useRef(null),E=g.useRef(null),P=g.useRef(u),A=l!=null,R=La(l),B=La(r),V=La(c),K=g.useCallback(()=>{if(!T.current||!E.current)return;const z={placement:t,strategy:n,middleware:f};B.current&&(z.platform=B.current),Qw(T.current,E.current,z).then(ee=>{const F={...ee,isPositioned:V.current!==!1};U.current&&!gs(P.current,F)&&(P.current=F,mn.flushSync(()=>{d(F)}))})},[f,t,n,B,V]);ps(()=>{c===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(z=>({...z,isPositioned:!1})))},[c]);const U=g.useRef(!1);ps(()=>(U.current=!0,()=>{U.current=!1}),[]),ps(()=>{if(_&&(T.current=_),w&&(E.current=w),_&&w){if(R.current)return R.current(_,w,K);K()}},[_,w,K,R,A]);const Z=g.useMemo(()=>({reference:T,floating:E,setReference:S,setFloating:C}),[S,C]),X=g.useMemo(()=>({reference:_,floating:w}),[_,w]),q=g.useMemo(()=>{const z={position:n,left:0,top:0};if(!X.floating)return z;const ee=Hp(X.floating,u.x),F=Hp(X.floating,u.y);return a?{...z,transform:"translate("+ee+"px, "+F+"px)",...Vp(X.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ee,top:F}},[n,a,X.floating,u.x,u.y]);return g.useMemo(()=>({...u,update:K,refs:Z,elements:X,floatingStyles:q}),[u,K,Z,X,q])}const nS=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?zp({element:o.current,padding:r}).fn(n):{}:o?zp({element:o,padding:r}).fn(n):{}}}},Gp=(e,t)=>{const n=qw(e);return{name:n.name,fn:n.fn,options:[e,t]}},jp=(e,t)=>{const n=Kw(e);return{name:n.name,fn:n.fn,options:[e,t]}},Up=(e,t)=>({fn:Jw(e).fn,options:[e,t]}),Wp=(e,t)=>{const n=Xw(e);return{name:n.name,fn:n.fn,options:[e,t]}},qp=(e,t)=>{const n=Yw(e);return{name:n.name,fn:n.fn,options:[e,t]}},Kp=(e,t)=>{const n=Zw(e);return{name:n.name,fn:n.fn,options:[e,t]}},Xp=(e,t)=>{const n=nS(e);return{name:n.name,fn:n.fn,options:[e,t]}};var oS=Object.defineProperty,rS=(e,t)=>oS(e,"name",{value:t,configurable:!0}),sS=g.forwardRef(rS(function(t,n){const{children:o,width:r=10,height:s=5,...i}=t;return h.jsx(ce.svg,{...i,ref:n,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?o:h.jsx("polygon",{points:"0,0 30,0 15,10"})})},"Arrow")),iS=sS;function Fa(e){const[t,n]=g.useState(void 0);return He(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,a=c.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var aS=Object.defineProperty,jt=(e,t)=>aS(e,"name",{value:t,configurable:!0}),Yp="Popper",[Zp,hs]=ct(Yp),[lS,Jp]=Zp(Yp),cS=jt(e=>{const{__scopePopper:t,children:n}=e,[o,r]=g.useState(null),[s,i]=g.useState(void 0);return h.jsx(lS,{scope:t,anchor:o,onAnchorChange:r,placementState:s,setPlacementState:i,children:n})},"Popper"),uS="PopperAnchor",dS=g.forwardRef(jt(function(t,n){const{__scopePopper:o,virtualRef:r,...s}=t,i=Jp(uS,o),a=g.useRef(null),l=i.onAnchorChange,c=g.useCallback(m=>{a.current=m,m&&l(m)},[l]),u=ye(n,c),d=g.useRef(null);g.useEffect(()=>{if(!r)return;const m=d.current;d.current=r.current,m!==d.current&&l(d.current)});const f=i.placementState&&ms(i.placementState),p=f==null?void 0:f[0],v=f==null?void 0:f[1];return r?null:h.jsx(ce.div,{"data-radix-popper-side":p,"data-radix-popper-align":v,...s,ref:u})},"PopperAnchor")),Qp="PopperContent",[fS,pS]=Zp(Qp),gS=g.forwardRef(jt(function(t,n){var G,W,te,H,Q,J,se;const{__scopePopper:o,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:v="optimized",onPlaced:m,...x}=t,y=Jp(Qp,o),[S,C]=g.useState(null),_=ye(n,C),[w,T]=g.useState(null),E=Fa(w),P=(E==null?void 0:E.width)??0,A=(E==null?void 0:E.height)??0,R=r+(i!=="center"?"-"+i:""),B=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},V=Array.isArray(u)?u:[u],K=V.length>0,U={padding:B,boundary:V.filter(eg),altBoundary:K},{refs:Z,floatingStyles:X,placement:q,isPositioned:z,middlewareData:ee}=Bp({strategy:"fixed",placement:R,whileElementsMounted:jt((...re)=>Fp(...re,{animationFrame:v==="always"}),"whileElementsMounted"),elements:{reference:y.anchor},middleware:[Gp({mainAxis:s+A,alignmentAxis:a}),c&&jp({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Up():void 0,...U}),c&&Wp({...U}),qp({...U,apply:jt(({elements:re,rects:be,availableWidth:xe,availableHeight:Nt})=>{const{width:Xe,height:Ye}=be.reference,Me=re.floating.style;Me.setProperty("--radix-popper-available-width",`${xe}px`),Me.setProperty("--radix-popper-available-height",`${Nt}px`),Me.setProperty("--radix-popper-anchor-width",`${Xe}px`),Me.setProperty("--radix-popper-anchor-height",`${Ye}px`)},"apply")}),w&&Xp({element:w,padding:l}),xS({arrowWidth:P,arrowHeight:A}),p&&Kp({strategy:"referenceHidden",...U,boundary:K?U.boundary:void 0})]}),F=y.setPlacementState;He(()=>(F(q),()=>{F(void 0)}),[q,F]);const[Y,O]=ms(q),I=An(m);He(()=>{z&&(I==null||I())},[z,I]);const k=(G=ee.arrow)==null?void 0:G.x,M=(W=ee.arrow)==null?void 0:W.y,L=((te=ee.arrow)==null?void 0:te.centerOffset)!==0,[N,$]=g.useState();return He(()=>{S&&$(window.getComputedStyle(S).zIndex)},[S]),h.jsx("div",{ref:Z.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:z?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:N,"--radix-popper-transform-origin":[(H=ee.transformOrigin)==null?void 0:H.x,(Q=ee.transformOrigin)==null?void 0:Q.y].join(" "),...((J=ee.hide)==null?void 0:J.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:h.jsx(fS,{scope:o,placedSide:Y,placedAlign:O,onArrowChange:T,arrowX:k,arrowY:M,shouldHideArrow:L,children:h.jsx(ce.div,{"data-side":Y,"data-align":O,...x,ref:_,style:{...x.style,animation:z?(se=x.style)==null?void 0:se.animation:"none"}})})})},"PopperContent")),hS="PopperArrow",mS={top:"bottom",right:"left",bottom:"top",left:"right"},vS=g.forwardRef(jt(function(t,n){const{__scopePopper:o,...r}=t,s=pS(hS,o),i=mS[s.placedSide];return h.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:h.jsx(iS,{...r,ref:n,style:{...r.style,display:"block"}})})},"PopperArrow"));function eg(e){return e!==null}jt(eg,"isNotNull");var xS=jt(e=>({name:"transformOrigin",options:e,fn(t){var x,y,S;const{placement:n,rects:o,middlewareData:r}=t,i=((x=r.arrow)==null?void 0:x.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,u]=ms(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((y=r.arrow)==null?void 0:y.x)??0)+a/2,p=(((S=r.arrow)==null?void 0:S.y)??0)+l/2;let v="",m="";return c==="bottom"?(v=i?d:`${f}px`,m=`${-l}px`):c==="top"?(v=i?d:`${f}px`,m=`${o.floating.height+l}px`):c==="right"?(v=`${-l}px`,m=i?d:`${p}px`):c==="left"&&(v=`${o.floating.width+l}px`,m=i?d:`${p}px`),{data:{x:v,y:m}}}}),"transformOrigin");function ms(e){const[t,n="center"]=e.split("-");return[t,n]}jt(ms,"getSideAndAlignFromPlacement");var tg=cS,za=dS,ng=gS,og=vS,bS=Object.defineProperty,yS=(e,t)=>bS(e,"name",{value:t,configurable:!0}),CS=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),wS=g.forwardRef(yS(function(t,n){return h.jsx(ce.span,{...t,ref:n,style:{...CS,...t.style}})},"VisuallyHidden")),SS=wS,_S=Object.defineProperty,Ie=(e,t)=>_S(e,"name",{value:t,configurable:!0}),[Va]=ct("Tooltip",[hs]),vs=hs(),TS="TooltipProvider",ES=700,Ha="tooltip.open",[PS,Ba]=Va(TS),IS=Ie(e=>{const{__scopeTooltip:t,delayDuration:n=ES,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:s}=e,i=g.useRef(!0),a=g.useRef(!1),l=g.useRef(0);return g.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),h.jsx(PS,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:g.useCallback(()=>{o<=0||(window.clearTimeout(l.current),i.current=!1)},[o]),onClose:g.useCallback(()=>{o<=0||(window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,o))},[o]),isPointerInTransitRef:a,onPointerInTransitChange:g.useCallback(c=>{a.current=c},[]),disableHoverableContent:r,children:s})},"TooltipProvider"),Ga="Tooltip",[AS,qo]=Va(Ga),OS=Ie(e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r,onOpenChange:s,disableHoverableContent:i,delayDuration:a}=e,l=Ba(Ga,e.__scopeTooltip),c=vs(t),[u,d]=g.useState(null),[f,p]=g.useState(void 0),v=Be(),m=g.useRef(0),x=i??l.disableHoverableContent,y=a??l.delayDuration,S=g.useRef(!1),[C,_]=gt({prop:o,defaultProp:r??!1,onChange:Ie(R=>{R?(l.onOpen(),document.dispatchEvent(new CustomEvent(Ha))):l.onClose(),s==null||s(R)},"onChange"),caller:Ga}),w=g.useMemo(()=>C?S.current?"delayed-open":"instant-open":"closed",[C]),T=g.useCallback(()=>{window.clearTimeout(m.current),m.current=0,S.current=!1,_(!0)},[_]),E=g.useCallback(()=>{window.clearTimeout(m.current),m.current=0,_(!1)},[_]),P=g.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{S.current=!0,_(!0),m.current=0},y)},[y,_]);g.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]);const A=f??v;return h.jsx(tg,{...c,children:h.jsx(AS,{scope:t,contentId:A,setContentId:p,open:C,stateAttribute:w,trigger:u,onTriggerChange:d,onTriggerEnter:g.useCallback(()=>{l.isOpenDelayedRef.current?P():T()},[l.isOpenDelayedRef,P,T]),onTriggerLeave:g.useCallback(()=>{x?E():(window.clearTimeout(m.current),m.current=0)},[E,x]),onOpen:T,onClose:E,disableHoverableContent:x,children:n})})},"Tooltip"),rg="TooltipTrigger",DS=g.forwardRef(Ie(function(t,n){const{__scopeTooltip:o,...r}=t,s=qo(rg,o),i=Ba(rg,o),a=vs(o),l=g.useRef(null),c=ye(n,l,s.onTriggerChange),u=g.useRef(!1),d=g.useRef(!1),f=g.useCallback(()=>u.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),h.jsx(za,{asChild:!0,...a,children:h.jsx(ce.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:c,onPointerMove:pe(t.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:pe(t.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:pe(t.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:pe(t.onFocus,()=>{u.current||s.onOpen()}),onBlur:pe(t.onBlur,s.onClose),onClick:pe(t.onClick,s.onClose)})})},"TooltipTrigger")),sg="TooltipPortal",[NS,kS]=Va(sg,{forceMount:void 0}),$S=Ie(e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:r}=e,s=qo(sg,t);return h.jsx(NS,{scope:t,forceMount:n,children:h.jsx(ht,{present:n||s.open,children:h.jsx(ga,{asChild:!0,container:r,children:o})})})},"TooltipPortal"),Ko="TooltipContent",MS=g.forwardRef(Ie(function(t,n){const o=kS(Ko,t.__scopeTooltip),{forceMount:r=o.forceMount,side:s="top",...i}=t,a=qo(Ko,t.__scopeTooltip);return h.jsx(ht,{present:r||a.open,children:a.disableHoverableContent?h.jsx(ig,{side:s,...i,ref:n}):h.jsx(RS,{side:s,...i,ref:n})})},"TooltipContent")),RS=g.forwardRef(Ie(function(t,n){const o=qo(Ko,t.__scopeTooltip),r=Ba(Ko,t.__scopeTooltip),s=g.useRef(null),i=ye(n,s),[a,l]=g.useState(null),{trigger:c,onClose:u}=o,d=s.current,{onPointerInTransitChange:f}=r,p=g.useCallback(()=>{l(null),f(!1)},[f]),v=g.useCallback((m,x)=>{const y=m.currentTarget,S={x:m.clientX,y:m.clientY},C=ag(S,y.getBoundingClientRect()),_=lg(S,C),w=cg(x.getBoundingClientRect()),T=dg([..._,...w]);l(T),f(!0)},[f]);return g.useEffect(()=>()=>p(),[p]),g.useEffect(()=>{if(c&&d){const m=Ie(y=>v(y,d),"handleTriggerLeave"),x=Ie(y=>v(y,c),"handleContentLeave");return c.addEventListener("pointerleave",m),d.addEventListener("pointerleave",x),()=>{c.removeEventListener("pointerleave",m),d.removeEventListener("pointerleave",x)}}},[c,d,v,p]),g.useEffect(()=>{if(a){const m=Ie(x=>{const y=x.target,S={x:x.clientX,y:x.clientY},C=(c==null?void 0:c.contains(y))||(d==null?void 0:d.contains(y)),_=!ug(S,a);C?p():_&&(p(),u())},"handleTrackPointerGrace");return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,d,a,u,p]),h.jsx(ig,{...t,ref:i})},"TooltipContentHoverable")),LS=Dx("TooltipContent"),ig=g.forwardRef(Ie(function(t,n){const{__scopeTooltip:o,children:r,"aria-label":s,id:i,onEscapeKeyDown:a,onPointerDownOutside:l,...c}=t,u=qo(Ko,o),d=vs(o),{onClose:f}=u;g.useEffect(()=>(document.addEventListener(Ha,f),()=>document.removeEventListener(Ha,f)),[f]),g.useEffect(()=>{if(u.trigger){const v=Ie(m=>{m.target instanceof Node&&m.target.contains(u.trigger)&&f()},"handleScroll");return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[u.trigger,f]);const{setContentId:p}=u;return He(()=>(p(i),()=>{p(void 0)}),[i,p]),h.jsx(ia,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:v=>v.preventDefault(),onDismiss:f,children:h.jsxs(ng,{"data-state":u.stateAttribute,role:s?void 0:"tooltip",id:s?void 0:u.contentId,...d,...c,ref:n,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[h.jsx(LS,{children:r}),s?h.jsx(SS,{id:u.contentId,role:"tooltip",children:s}):null]})})},"TooltipContentImpl")),FS=g.forwardRef(Ie(function(t,n){const{__scopeTooltip:o,...r}=t,s=vs(o);return h.jsx(og,{...s,...r,ref:n})},"TooltipArrow"));function ag(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,o,r,s)){case s:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}Ie(ag,"getExitSideFromRect");function lg(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}Ie(lg,"getPaddedExitPoints");function cg(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}Ie(cg,"getPointsFromRect");function ug(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],l=t[i],c=a.x,u=a.y,d=l.x,f=l.y;u>o!=f>o&&n<(d-c)*(o-u)/(f-u)+c&&(r=!r)}return r}Ie(ug,"isPointInPolygon");function dg(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),fg(t)}Ie(dg,"getHull");function fg(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}Ie(fg,"getHullPresorted");var zS=IS,VS=OS,HS=DS,BS=$S,GS=MS,jS=FS;const pg=({trigger:e,children:t,defaultOpen:n=!1,open:o,onOpenChange:r,delayDuration:s=300,skipDelayDuration:i=300,disableHoverableContent:a=!1})=>h.jsx(zS,{delayDuration:s,skipDelayDuration:i,disableHoverableContent:a,children:h.jsxs(VS,{defaultOpen:n,open:o,onOpenChange:r,children:[h.jsx(HS,{asChild:!0,children:e}),t]})});pg.displayName="OxTooltip";const gg={oxTooltipContent:"_oxTooltipContent_10r73_2",oxTooltipArrow:"_oxTooltipArrow_10r73_2"},hg=b.forwardRef(({className:e,children:t,side:n="top",sideOffset:o=6,align:r="center",showArrow:s=!0,dataTestid:i,...a},l)=>h.jsx(BS,{children:h.jsxs(GS,{ref:l,"data-slot":"tooltip-content","data-testid":i,className:j(gg.oxTooltipContent,e),side:n,sideOffset:o,align:r,...a,children:[t,s&&h.jsx(jS,{className:gg.oxTooltipArrow,width:10,height:5})]})}));hg.displayName="OxTooltipContent";var US=Object.defineProperty,vt=(e,t)=>US(e,"name",{value:t,configurable:!0}),ja="Popover",[mg]=ct(ja,[hs]),Xo=hs(),[WS,on]=mg(ja),qS=vt(e=>{const{__scopePopover:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:i=!1}=e,a=Xo(t),l=g.useRef(null),[c,u]=g.useState(!1),[d,f]=gt({prop:o,defaultProp:r??!1,onChange:s,caller:ja});return h.jsx(tg,{...a,children:h.jsx(WS,{scope:t,contentId:Be(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:g.useCallback(()=>f(p=>!p),[f]),hasCustomAnchor:c,onCustomAnchorAdd:g.useCallback(()=>u(!0),[]),onCustomAnchorRemove:g.useCallback(()=>u(!1),[]),modal:i,children:n})})},"Popover"),KS="PopoverAnchor",XS=g.forwardRef(vt(function(t,n){const{__scopePopover:o,...r}=t,s=on(KS,o),i=Xo(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:l}=s;return g.useEffect(()=>(a(),()=>l()),[a,l]),h.jsx(za,{...i,...r,ref:n})},"PopoverAnchor")),YS="PopoverTrigger",ZS=g.forwardRef(vt(function(t,n){const{__scopePopover:o,...r}=t,s=on(YS,o),i=Xo(o),a=ye(n,s.triggerRef),l=h.jsx(ce.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":Ua(s.open),...r,ref:a,onClick:pe(t.onClick,s.onOpenToggle)});return s.hasCustomAnchor?l:h.jsx(za,{asChild:!0,...i,children:l})},"PopoverTrigger")),vg="PopoverPortal",[JS,QS]=mg(vg,{forceMount:void 0}),e1=vt(e=>{const{__scopePopover:t,forceMount:n,children:o,container:r}=e,s=on(vg,t);return h.jsx(JS,{scope:t,forceMount:n,children:h.jsx(ht,{present:n||s.open,children:h.jsx(ga,{asChild:!0,container:r,children:o})})})},"PopoverPortal"),Yo="PopoverContent",t1=g.forwardRef(vt(function(t,n){const o=QS(Yo,t.__scopePopover),{forceMount:r=o.forceMount,...s}=t,i=on(Yo,t.__scopePopover);return h.jsx(ht,{present:r||i.open,children:i.modal?h.jsx(o1,{...s,ref:n}):h.jsx(r1,{...s,ref:n})})},"PopoverContent")),n1=qn("PopoverContent.RemoveScroll"),o1=g.forwardRef(vt(function(t,n){const o=on(Yo,t.__scopePopover),r=g.useRef(null),s=ye(n,r),i=g.useRef(!1);return g.useEffect(()=>{const a=r.current;if(a)return Ca(a)},[]),h.jsx(Jr,{as:n1,allowPinchZoom:!0,children:h.jsx(xg,{...t,ref:s,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:pe(t.onCloseAutoFocus,a=>{var l;a.preventDefault(),i.current||(l=o.triggerRef.current)==null||l.focus()}),onPointerDownOutside:pe(t.onPointerDownOutside,a=>{const l=a.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:pe(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),r1=g.forwardRef(vt(function(t,n){const o=on(Yo,t.__scopePopover),r=g.useRef(!1),s=g.useRef(!1);return h.jsx(xg,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,l;(a=t.onCloseAutoFocus)==null||a.call(t,i),i.defaultPrevented||(r.current||(l=o.triggerRef.current)==null||l.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var c,u;(c=t.onInteractOutside)==null||c.call(t,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const a=i.target;((u=o.triggerRef.current)==null?void 0:u.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})},"PopoverContentNonModal")),xg=g.forwardRef(vt(function(t,n){const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:d,...f}=t,p=on(Yo,o),v=Xo(o);return Kf(),h.jsx(Rf,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:h.jsx(ia,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>p.onOpenChange(!1),deferPointerDownOutside:!0,children:h.jsx(ng,{"data-state":Ua(p.open),role:"dialog",id:p.contentId,...v,...f,ref:n,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl")),s1="PopoverClose",i1=g.forwardRef(vt(function(t,n){const{__scopePopover:o,...r}=t,s=on(s1,o);return h.jsx(ce.button,{type:"button",...r,ref:n,onClick:pe(t.onClick,()=>s.onOpenChange(!1))})},"PopoverClose")),a1=g.forwardRef(vt(function(t,n){const{__scopePopover:o,...r}=t,s=Xo(o);return h.jsx(og,{...s,...r,ref:n})},"PopoverArrow"));function Ua(e){return e?"open":"closed"}vt(Ua,"getState");var bg=qS,yg=XS,Wa=ZS,Cg=e1,wg=t1,l1=a1;const Sg=({trigger:e,children:t,defaultOpen:n=!1,open:o,onOpenChange:r,modal:s=!1})=>h.jsxs(bg,{defaultOpen:n,open:o,onOpenChange:r,modal:s,children:[h.jsx(Wa,{asChild:!0,children:e}),t]});Sg.displayName="OxPopover";const _g={oxPopoverContent:"_oxPopoverContent_1kkry_2",oxPopoverArrow:"_oxPopoverArrow_1kkry_2"},Tg=b.forwardRef(({className:e,children:t,side:n="bottom",sideOffset:o=6,align:r="center",showArrow:s=!1,dataTestid:i,...a},l)=>h.jsx(Cg,{children:h.jsxs(wg,{ref:l,"data-slot":"popover-content","data-testid":i,className:j(_g.oxPopoverContent,e),side:n,sideOffset:o,align:r,...a,children:[t,s&&h.jsx(l1,{className:_g.oxPopoverArrow,width:12,height:6})]})}));Tg.displayName="OxPopoverContent";function Eg(e){const t=e+"CollectionProvider",[n,o]=ct(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=m=>{const{scope:x,children:y}=m,S=g.useRef(null),C=g.useRef(new Map).current;return h.jsx(r,{scope:x,itemMap:C,collectionRef:S,children:y})};i.displayName=t;const a=e+"CollectionSlot",l=qn(a),c=g.forwardRef((m,x)=>{const{scope:y,children:S}=m,C=s(a,y),_=ye(x,C.collectionRef);return h.jsx(l,{ref:_,children:S})});c.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",f=qn(u),p=g.forwardRef((m,x)=>{const{scope:y,children:S,...C}=m,_=g.useRef(null),w=ye(x,_),T=s(u,y);return g.useEffect(()=>(T.itemMap.set(_,{ref:_,...C}),()=>void T.itemMap.delete(_))),h.jsx(f,{[d]:"",ref:w,children:S})});p.displayName=u;function v(m){const x=s(e+"CollectionConsumer",m);return g.useCallback(()=>{const S=x.collectionRef.current;if(!S)return[];const C=Array.from(S.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((T,E)=>C.indexOf(T.ref.current)-C.indexOf(E.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:c,ItemSlot:p},v,o]}var c1=Object.defineProperty,Zo=(e,t)=>c1(e,"name",{value:t,configurable:!0}),qa="Collapsible",[u1,Pg]=ct(qa),[d1,Ka]=u1(qa),f1=g.forwardRef(Zo(function(t,n){const{__scopeCollapsible:o,open:r,defaultOpen:s,disabled:i,onOpenChange:a,...l}=t,[c,u]=gt({prop:r,defaultProp:s??!1,onChange:a,caller:qa});return h.jsx(d1,{scope:o,disabled:i,contentId:Be(),open:c,onOpenToggle:g.useCallback(()=>u(d=>!d),[u]),children:h.jsx(ce.div,{"data-state":xs(c),"data-disabled":i?"":void 0,...l,ref:n})})},"Collapsible")),p1="CollapsibleTrigger",g1=g.forwardRef(Zo(function(t,n){const{__scopeCollapsible:o,...r}=t,s=Ka(p1,o);return h.jsx(ce.button,{type:"button","aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open||!1,"data-state":xs(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...r,ref:n,onClick:pe(t.onClick,s.onOpenToggle)})},"CollapsibleTrigger")),Ig="CollapsibleContent",h1=g.forwardRef(Zo(function(t,n){const{forceMount:o,...r}=t,s=Ka(Ig,t.__scopeCollapsible);return h.jsx(ht,{present:o||s.open,children:({present:i})=>h.jsx(m1,{...r,ref:n,present:i})})},"CollapsibleContent")),m1=g.forwardRef(Zo(function(t,n){const{__scopeCollapsible:o,present:r,children:s,...i}=t,a=Ka(Ig,o),[l,c]=g.useState(r),u=g.useRef(null),d=ye(n,u),f=g.useRef(0),p=f.current,v=g.useRef(0),m=v.current,x=a.open||l,y=g.useRef(x),S=g.useRef(void 0);return g.useEffect(()=>{const C=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(C)},[]),He(()=>{const C=u.current;if(C){S.current=S.current||{transitionDuration:C.style.transitionDuration,animationName:C.style.animationName},C.style.transitionDuration="0s",C.style.animationName="none";const _=C.getBoundingClientRect();f.current=_.height,v.current=_.width,y.current||(C.style.transitionDuration=S.current.transitionDuration,C.style.animationName=S.current.animationName),c(r)}},[a.open,r]),h.jsx(ce.div,{"data-state":xs(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!x,...i,ref:d,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...t.style},children:x&&s})},"CollapsibleContentImpl"));function xs(e){return e?"open":"closed"}Zo(xs,"getState");var v1=f1,x1=g1,b1=h1,y1=g.createContext(void 0);function bs(e){const t=g.useContext(y1);return e||t||"ltr"}var C1=Object.defineProperty,tt=(e,t)=>C1(e,"name",{value:t,configurable:!0}),It="Accordion",w1=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Xa,S1,_1]=Eg(It),[ys]=ct(It,[_1,Pg]),Ya=Pg(),T1=g.forwardRef(tt(function(t,n){const{type:o,...r}=t,s=r,i=r;return h.jsx(Xa.Provider,{scope:t.__scopeAccordion,children:o==="multiple"?h.jsx(A1,{...i,ref:n}):h.jsx(I1,{...s,ref:n})})},"Accordion")),[Ag,E1]=ys(It),[Og,P1]=ys(It,{collapsible:!1}),I1=g.forwardRef(tt(function(t,n){const{value:o,defaultValue:r,onValueChange:s=tt(()=>{},"onValueChange"),collapsible:i=!1,...a}=t,[l,c]=gt({prop:o,defaultProp:r??"",onChange:s,caller:It});return h.jsx(Ag,{scope:t.__scopeAccordion,value:g.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:g.useCallback(()=>i&&c(""),[i,c]),children:h.jsx(Og,{scope:t.__scopeAccordion,collapsible:i,children:h.jsx(Dg,{...a,ref:n})})})},"AccordionImplSingle")),A1=g.forwardRef(tt(function(t,n){const{value:o,defaultValue:r,onValueChange:s=tt(()=>{},"onValueChange"),...i}=t,[a,l]=gt({prop:o,defaultProp:r??[],onChange:s,caller:It}),c=g.useCallback(d=>l((f=[])=>[...f,d]),[l]),u=g.useCallback(d=>l((f=[])=>f.filter(p=>p!==d)),[l]);return h.jsx(Ag,{scope:t.__scopeAccordion,value:a,onItemOpen:c,onItemClose:u,children:h.jsx(Og,{scope:t.__scopeAccordion,collapsible:!0,children:h.jsx(Dg,{...i,ref:n})})})},"AccordionImplMultiple")),[O1,Cs]=ys(It),Dg=g.forwardRef(tt(function(t,n){const{__scopeAccordion:o,disabled:r,dir:s,orientation:i="vertical",...a}=t,l=g.useRef(null),c=ye(l,n),u=S1(o),f=bs(s)==="ltr",p=pe(t.onKeyDown,v=>{var A;if(!w1.includes(v.key))return;const m=v.target,x=u().filter(R=>{var B;return!((B=R.ref.current)!=null&&B.disabled)}),y=x.findIndex(R=>R.ref.current===m),S=x.length;if(y===-1)return;v.preventDefault();let C=y;const _=0,w=S-1,T=tt(()=>{C=y+1,C>w&&(C=_)},"moveNext"),E=tt(()=>{C=y-1,C<_&&(C=w)},"movePrev");switch(v.key){case"Home":C=_;break;case"End":C=w;break;case"ArrowRight":i==="horizontal"&&(f?T():E());break;case"ArrowDown":i==="vertical"&&T();break;case"ArrowLeft":i==="horizontal"&&(f?E():T());break;case"ArrowUp":i==="vertical"&&E();break}const P=C%S;(A=x[P].ref.current)==null||A.focus()});return h.jsx(O1,{scope:o,disabled:r,direction:s,orientation:i,children:h.jsx(Xa.Slot,{scope:o,children:h.jsx(ce.div,{...a,"data-orientation":i,ref:c,onKeyDown:r?void 0:p})})})},"AccordionImpl")),Za="AccordionItem",[D1,Ja]=ys(Za),N1=g.forwardRef(tt(function(t,n){const{__scopeAccordion:o,value:r,...s}=t,i=Cs(Za,o),a=E1(Za,o),l=Ya(o),c=Be(),u=r&&a.value.includes(r)||!1,d=i.disabled||t.disabled;return h.jsx(D1,{scope:o,open:u,disabled:d,triggerId:c,children:h.jsx(v1,{"data-orientation":i.orientation,"data-state":Qa(u),...l,...s,ref:n,disabled:d,open:u,onOpenChange:f=>{f?a.onItemOpen(r):a.onItemClose(r)}})})},"AccordionItem")),k1="AccordionHeader",$1=g.forwardRef(tt(function(t,n){const{__scopeAccordion:o,...r}=t,s=Cs(It,o),i=Ja(k1,o);return h.jsx(ce.h3,{"data-orientation":s.orientation,"data-state":Qa(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:n})},"AccordionHeader")),Ng="AccordionTrigger",M1=g.forwardRef(tt(function(t,n){const{__scopeAccordion:o,...r}=t,s=Cs(It,o),i=Ja(Ng,o),a=P1(Ng,o),l=Ya(o);return h.jsx(Xa.ItemSlot,{scope:o,children:h.jsx(x1,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":s.orientation,id:i.triggerId,...l,...r,ref:n})})},"AccordionTrigger")),R1="AccordionContent",L1=g.forwardRef(tt(function(t,n){const{__scopeAccordion:o,...r}=t,s=Cs(It,o),i=Ja(R1,o),a=Ya(o);return h.jsx(b1,{role:"region","aria-labelledby":i.triggerId,"data-orientation":s.orientation,...a,...r,ref:n,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})},"AccordionContent"));function Qa(e){return e?"open":"closed"}tt(Qa,"getState");var F1=T1,z1=N1,V1=$1,H1=M1,B1=L1;const G1={oxAccordion:"_oxAccordion_irqe1_2"},kg=b.forwardRef(({className:e,...t},n)=>h.jsx(F1,{ref:n,"data-slot":"accordion",className:j(G1.oxAccordion,e),...t}));kg.displayName="OxAccordion";const j1={oxAccordionItem:"_oxAccordionItem_flqek_2"},$g=b.forwardRef(({className:e,...t},n)=>h.jsx(z1,{ref:n,"data-slot":"accordion-item",className:j(j1.oxAccordionItem,e),...t}));$g.displayName="OxAccordionItem";const el={oxAccordionHeader:"_oxAccordionHeader_1amu3_2",oxAccordionTrigger:"_oxAccordionTrigger_1amu3_2",oxAccordionChevron:"_oxAccordionChevron_1amu3_2"},Mg=b.forwardRef(({className:e,children:t,...n},o)=>h.jsx(V1,{className:el.oxAccordionHeader,children:h.jsxs(H1,{ref:o,"data-slot":"accordion-trigger",className:j(el.oxAccordionTrigger,e),...n,children:[t,h.jsx(Tn,{className:el.oxAccordionChevron})]})}));Mg.displayName="OxAccordionTrigger";const Rg={oxAccordionContent:"_oxAccordionContent_e3t2z_2",oxAccordionContentInner:"_oxAccordionContentInner_e3t2z_2"},Lg=b.forwardRef(({className:e,children:t,...n},o)=>h.jsx(B1,{ref:o,"data-slot":"accordion-content",className:j(Rg.oxAccordionContent,e),...n,children:h.jsx("div",{className:Rg.oxAccordionContentInner,children:t})}));Lg.displayName="OxAccordionContent";var tl=!1;function U1(){const[e,t]=g.useState(tl);return g.useEffect(()=>{tl||(tl=!0,t(!0))},[]),e}var Fg=g[" useSyncExternalStore ".trim().toString()];function W1(){return()=>{}}function q1(){return Fg(W1,()=>!0,()=>!1)}var K1=typeof Fg=="function"?q1:U1,X1=Object.defineProperty,kn=(e,t)=>X1(e,"name",{value:t,configurable:!0}),nl="rovingFocusGroup.onEntryFocus",Y1={bubbles:!1,cancelable:!0},ws="RovingFocusGroup",[ol,zg,Z1]=Eg(ws),[J1,Ss]=ct(ws,[Z1]),[Q1,e_]=J1(ws),t_=g.forwardRef(kn(function(t,n){return h.jsx(ol.Provider,{scope:t.__scopeRovingFocusGroup,children:h.jsx(ol.Slot,{scope:t.__scopeRovingFocusGroup,children:h.jsx(n_,{...t,ref:n})})})},"RovingFocusGroup")),n_=g.forwardRef(kn(function(t,n){const{__scopeRovingFocusGroup:o,orientation:r,loop:s=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=t,p=g.useRef(null),v=ye(n,p),m=bs(i),[x,y]=gt({prop:a,defaultProp:l??null,onChange:c,caller:ws}),[S,C]=g.useState(!1),_=An(u),w=zg(o),T=g.useRef(!1),[E,P]=g.useState(0);return g.useEffect(()=>{const A=p.current;if(A)return A.addEventListener(nl,_),()=>A.removeEventListener(nl,_)},[_]),h.jsx(Q1,{scope:o,orientation:r,dir:m,loop:s,currentTabStopId:x,onItemFocus:g.useCallback(A=>y(A),[y]),onItemShiftTab:g.useCallback(()=>C(!0),[]),onFocusableItemAdd:g.useCallback(()=>P(A=>A+1),[]),onFocusableItemRemove:g.useCallback(()=>P(A=>A-1),[]),children:h.jsx(ce.div,{tabIndex:S||E===0?-1:0,"data-orientation":r,...f,ref:v,style:{outline:"none",...t.style},onMouseDown:pe(t.onMouseDown,()=>{T.current=!0}),onFocus:pe(t.onFocus,A=>{const R=!T.current;if(A.target===A.currentTarget&&R&&!S){const B=new CustomEvent(nl,Y1);if(A.currentTarget.dispatchEvent(B),!B.defaultPrevented){const V=w().filter(q=>q.focusable),K=V.find(q=>q.active),U=V.find(q=>q.id===x),X=[K,U,...V].filter(Boolean).map(q=>q.ref.current);rl(X,d)}}T.current=!1}),onBlur:pe(t.onBlur,()=>C(!1))})})},"RovingFocusGroupImpl")),o_="RovingFocusGroupItem",r_=g.forwardRef(kn(function(t,n){const{__scopeRovingFocusGroup:o,focusable:r=!0,active:s=!1,tabStopId:i,children:a,...l}=t,c=Be(),u=i||c,d=e_(o_,o),f=d.currentTabStopId===u,p=zg(o),{onFocusableItemAdd:v,onFocusableItemRemove:m,currentTabStopId:x}=d,y=K1();return He(()=>{if(!(!y||!r))return v(),()=>m()},[y,r,v,m]),g.useEffect(()=>{if(!(y||!r))return v(),()=>m()},[y,r,v,m]),h.jsx(ol.ItemSlot,{scope:o,id:u,focusable:r,active:s,children:h.jsx(ce.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...l,ref:n,onMouseDown:pe(t.onMouseDown,S=>{r?d.onItemFocus(u):S.preventDefault()}),onFocus:pe(t.onFocus,()=>d.onItemFocus(u)),onKeyDown:pe(t.onKeyDown,S=>{if(S.key==="Tab"&&S.shiftKey){d.onItemShiftTab();return}if(S.target!==S.currentTarget)return;const C=Hg(S,d.orientation,d.dir);if(C!==void 0){if(S.metaKey||S.ctrlKey||S.altKey||S.shiftKey)return;S.preventDefault();let w=p().filter(T=>T.focusable).map(T=>T.ref.current);if(C==="last")w.reverse();else if(C==="prev"||C==="next"){C==="prev"&&w.reverse();const T=w.indexOf(S.currentTarget);w=d.loop?Bg(w,T+1):w.slice(T+1)}setTimeout(()=>rl(w))}}),children:typeof a=="function"?a({isCurrentTabStop:f,hasTabStop:x!=null}):a})})},"RovingFocusGroupItem")),s_={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Vg(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}kn(Vg,"getDirectionAwareKey");function Hg(e,t,n){const o=Vg(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return s_[o]}kn(Hg,"getFocusIntent");function rl(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}kn(rl,"focusFirst");function Bg(e,t){return e.map((n,o)=>e[(t+o)%e.length])}kn(Bg,"wrapArray");var Gg=t_,jg=r_,i_=Object.defineProperty,fo=(e,t)=>i_(e,"name",{value:t,configurable:!0}),sl="Tabs",[a_]=ct(sl,[Ss]),Ug=Ss(),[l_,il]=a_(sl),c_=g.forwardRef(fo(function(t,n){const{__scopeTabs:o,value:r,onValueChange:s,defaultValue:i,orientation:a="horizontal",dir:l,activationMode:c="automatic",...u}=t,d=bs(l),[f,p]=gt({prop:r,onChange:s,defaultProp:i??"",caller:sl});return h.jsx(l_,{scope:o,baseId:Be(),value:f,onValueChange:p,orientation:a,dir:d,activationMode:c,children:h.jsx(ce.div,{dir:d,"data-orientation":a,...u,ref:n})})},"Tabs")),u_="TabsList",d_=g.forwardRef(fo(function(t,n){const{__scopeTabs:o,loop:r=!0,...s}=t,i=il(u_,o),a=Ug(o);return h.jsx(Gg,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:r,children:h.jsx(ce.div,{role:"tablist","aria-orientation":i.orientation,...s,ref:n})})},"TabsList")),f_="TabsTrigger",p_=g.forwardRef(fo(function(t,n){const{__scopeTabs:o,value:r,disabled:s=!1,...i}=t,a=il(f_,o),l=Ug(o),c=al(a.baseId,r),u=ll(a.baseId,r),d=r===a.value;return h.jsx(jg,{asChild:!0,...l,focusable:!s,active:d,children:h.jsx(ce.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:c,...i,ref:n,onMouseDown:pe(t.onMouseDown,f=>{!s&&f.button===0&&f.ctrlKey===!1?a.onValueChange(r):f.preventDefault()}),onKeyDown:pe(t.onKeyDown,f=>{s||f.target!==f.currentTarget||[" ","Enter"].includes(f.key)&&a.onValueChange(r)}),onFocus:pe(t.onFocus,()=>{const f=a.activationMode!=="manual";!d&&!s&&f&&a.onValueChange(r)})})})},"TabsTrigger")),g_="TabsContent",h_=g.forwardRef(fo(function(t,n){const{__scopeTabs:o,value:r,forceMount:s,children:i,...a}=t,l=il(g_,o),c=al(l.baseId,r),u=ll(l.baseId,r),d=r===l.value,f=g.useRef(d);return g.useEffect(()=>{const p=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(p)},[]),h.jsx(ht,{present:s||d,children:({present:p})=>h.jsx(ce.div,{"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!p,id:u,tabIndex:0,...a,ref:n,style:{...t.style,animationDuration:f.current?"0s":void 0},children:p&&i})})},"TabsContent"));function al(e,t){return`${e}-trigger-${t}`}fo(al,"makeTriggerId");function ll(e,t){return`${e}-content-${t}`}fo(ll,"makeContentId");var m_=c_,v_=d_,x_=p_,b_=h_;const y_={oxToggleTabs:"_oxToggleTabs_1grj2_2"},Wg=b.forwardRef(({className:e,orientation:t="horizontal",dataTestid:n,...o},r)=>h.jsx(m_,{ref:r,"data-slot":"toggle-tabs","data-testid":n,orientation:t,className:j(y_.oxToggleTabs,e),...o}));Wg.displayName="OxToggleTabs";const C_={oxToggleTabsList:"_oxToggleTabsList_va6a0_2"},qg=b.forwardRef(({className:e,loop:t=!0,...n},o)=>h.jsx(v_,{ref:o,"data-slot":"toggle-tabs-list",loop:t,className:j(C_.oxToggleTabsList,e),...n}));qg.displayName="OxToggleTabsList";const w_={oxToggleTabsTrigger:"_oxToggleTabsTrigger_ndpkg_2"},Kg=b.forwardRef(({className:e,...t},n)=>h.jsx(x_,{ref:n,"data-slot":"toggle-tabs-trigger",className:j(w_.oxToggleTabsTrigger,e),...t}));Kg.displayName="OxToggleTabsTrigger";const S_={oxToggleTabsContent:"_oxToggleTabsContent_1uvag_2"},Xg=b.forwardRef(({className:e,...t},n)=>h.jsx(b_,{ref:n,"data-slot":"toggle-tabs-content",className:j(S_.oxToggleTabsContent,e),...t}));Xg.displayName="OxToggleTabsContent";const cl={oxPageControl:"_oxPageControl_1086x_2",oxPageControlDot:"_oxPageControlDot_1086x_2",oxPageControlLabel:"_oxPageControlLabel_1086x_2"},Yg=b.forwardRef(({className:e,count:t,index:n=0,interactive:o=!1,onIndexChange:r,dataTestid:s,...i},a)=>{const l=Math.min(Math.max(0,Math.trunc(n)),Math.max(0,t-1));return h.jsx("div",{ref:a,"data-slot":"page-control","data-testid":s,className:j(cl.oxPageControl,e),...i,children:Zg(t,l).map(c=>{const u={className:cl.oxPageControlDot,"data-size":c.size,"data-active":c.index===l,"data-testid":`${s}-dot-${c.index}`};return o?h.jsx("button",{type:"button","data-slot":"page-control-dot","aria-current":c.index===l?"page":void 0,onClick:()=>r==null?void 0:r(c.index),...u,children:h.jsx("span",{className:cl.oxPageControlLabel,children:c.index+1})},c.index):h.jsx("span",{"data-slot":"page-control-dot",...u},c.index)})})});Yg.displayName="OxPageControl";const $n=7,Zg=(e,t)=>{const n=Math.max(0,Math.trunc(e));if(n===0)return[];if(n<=$n)return Array.from({length:n},(l,c)=>({index:c,size:"full"}));const o=Math.min(Math.max(0,Math.trunc(t)),n-1),r=Math.min(Math.max(0,o-Math.floor($n/2)),n-$n),s=r>0,i=r+$n<n,a=$n-1;return Array.from({length:$n},(l,c)=>{let u="full";return s&&c===0?u="small":s&&c===1&&(u="medium"),i&&c===a?u="small":i&&c===a-1&&(u="medium"),{index:r+c,size:u}})},__={oxBreadcrumb:"_oxBreadcrumb_1baee_2"},Jg=b.forwardRef(({className:e,...t},n)=>h.jsx("nav",{ref:n,"data-slot":"breadcrumb","aria-label":"breadcrumb",className:j(__.oxBreadcrumb,e),...t}));Jg.displayName="OxBreadcrumb";const T_={oxBreadcrumbList:"_oxBreadcrumbList_1tsca_2"},Qg=b.forwardRef(({className:e,...t},n)=>h.jsx("ol",{ref:n,"data-slot":"breadcrumb-list",className:j(T_.oxBreadcrumbList,e),...t}));Qg.displayName="OxBreadcrumbList";const E_={oxBreadcrumbItem:"_oxBreadcrumbItem_67rk1_2"},eh=b.forwardRef(({className:e,...t},n)=>h.jsx("li",{ref:n,"data-slot":"breadcrumb-item",className:j(E_.oxBreadcrumbItem,e),...t}));eh.displayName="OxBreadcrumbItem";const th={oxBreadcrumbLink:"_oxBreadcrumbLink_sjo2m_2",oxBreadcrumbLinkCurrent:"_oxBreadcrumbLinkCurrent_sjo2m_2"},nh=b.forwardRef(({className:e,asChild:t=!1,current:n=!1,href:o,...r},s)=>{const i=t?Ar:"a";return h.jsx(i,{ref:s,href:t?void 0:o,"data-slot":"breadcrumb-link",className:j(th.oxBreadcrumbLink,n&&th.oxBreadcrumbLinkCurrent,e),...r})});nh.displayName="OxBreadcrumbLink";const P_={oxBreadcrumbPage:"_oxBreadcrumbPage_13kk4_2"},oh=b.forwardRef(({className:e,...t},n)=>h.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page","data-slot":"breadcrumb-page",className:j(P_.oxBreadcrumbPage,e),...t}));oh.displayName="OxBreadcrumbPage";const rh={oxBreadcrumbSeparator:"_oxBreadcrumbSeparator_10ov8_2",oxBreadcrumbSeparatorIcon:"_oxBreadcrumbSeparatorIcon_10ov8_2"},sh=b.forwardRef(({className:e,children:t,dataTestid:n,...o},r)=>h.jsx("li",{ref:r,role:"presentation","aria-hidden":"true","data-slot":"breadcrumb-separator","data-testid":n,className:j(rh.oxBreadcrumbSeparator,e),...o,children:t??h.jsx("svg",{"data-testid":`${n}-icon`,className:rh.oxBreadcrumbSeparatorIcon,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",children:h.jsx("path",{d:"m9 18 6-6-6-6"})})}));sh.displayName="OxBreadcrumbSeparator";const ul={oxBreadcrumbEllipsis:"_oxBreadcrumbEllipsis_cg9sx_2",oxBreadcrumbEllipsisIcon:"_oxBreadcrumbEllipsisIcon_cg9sx_2",oxSrOnly:"_oxSrOnly_cg9sx_2"},ih=b.forwardRef(({className:e,children:t,dataTestid:n,...o},r)=>h.jsxs("span",{ref:r,role:"presentation","aria-hidden":"true","data-slot":"breadcrumb-ellipsis","data-testid":n,className:j(ul.oxBreadcrumbEllipsis,e),...o,children:[t??h.jsxs("svg",{"data-testid":`${n}-icon`,className:ul.oxBreadcrumbEllipsisIcon,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",children:[h.jsx("circle",{cx:"12",cy:"12",r:"1"}),h.jsx("circle",{cx:"19",cy:"12",r:"1"}),h.jsx("circle",{cx:"5",cy:"12",r:"1"})]}),h.jsx("span",{className:ul.oxSrOnly,children:"More"})]}));ih.displayName="OxBreadcrumbEllipsis";const Jo={oxFieldGroup:"_oxFieldGroup_l4i6z_2",oxFieldGroupError:"_oxFieldGroupError_l4i6z_2",oxFieldGroupWarning:"_oxFieldGroupWarning_l4i6z_2",oxFieldGroupSuccess:"_oxFieldGroupSuccess_l4i6z_2"},I_={default:Jo.fieldGroupDefault,error:Jo.oxFieldGroupError,success:Jo.oxFieldGroupSuccess,warning:Jo.oxFieldGroupWarning},ah=b.forwardRef(({className:e,variant:t="default",children:n,...o},r)=>h.jsx("div",{ref:r,"data-slot":"field-group",className:j(Jo.oxFieldGroup,I_[t],e),...o,children:n}));ah.displayName="OxFieldGroup";const A_={oxFieldLabel:"_oxFieldLabel_1m3uo_2"},lh=b.forwardRef(({className:e,children:t,...n},o)=>h.jsx("label",{ref:o,"data-slot":"label",className:j(A_.oxFieldLabel,e),...n,children:t}));lh.displayName="OxFieldLabel";const _s={oxFieldMessage:"_oxFieldMessage_xoufj_2",oxFieldMessageError:"_oxFieldMessageError_xoufj_2",oxFieldMessageSuccess:"_oxFieldMessageSuccess_xoufj_2",oxFieldMessageWarning:"_oxFieldMessageWarning_xoufj_2"},O_={default:void 0,error:_s.oxFieldMessageError,success:_s.oxFieldMessageSuccess,warning:_s.oxFieldMessageWarning},ch=b.forwardRef(({className:e,message:t="",variant:n="default",children:o,...r},s)=>h.jsx("div",{ref:s,"data-slot":"message",role:n==="error"?"alert":void 0,"aria-live":n==="error"?"polite":void 0,className:j(_s.oxFieldMessage,O_[n],e),...r,children:o??t}));ch.displayName="OxFieldMessage";const D_={oxInputGroup:"_oxInputGroup_2wka9_2"},uh=b.forwardRef(({className:e,children:t,...n},o)=>h.jsx("span",{ref:o,"data-slot":"controller",className:j(D_.oxInputGroup,e),...n,children:t}));uh.displayName="OxInputGroup";const Qo={oxInput:"_oxInput_12jhm_2"},po={sm:"input-sm",md:"input-md",lg:"input-lg"},dh=b.forwardRef(({className:e,size:t="md",field:n,onFieldChange:o,value:r,onChange:s,type:i="text",...a},l)=>h.jsx("input",{ref:l,type:i,"data-slot":"controller",className:j(Qo.oxInput,po[t],e),value:n??r,onChange:c=>{o==null||o(c.target.value),s==null||s(c)},...a}));dh.displayName="OxInputText";const N_={oxInputNumber:"_oxInputNumber_1j8f7_2"},fh=b.createContext(null);function dl(){const e=b.useContext(fh);if(!e)throw new Error("InputNumber components must be used within <InputNumber>.");return e}function fl(e,t,n){let o=e;return t!==void 0&&(o=Math.max(o,t)),n!==void 0&&(o=Math.min(o,n)),o}const ph=b.forwardRef(({className:e,children:t,size:n="md",value:o,defaultValue:r=null,onValueChange:s,min:i,max:a,step:l=1,disabled:c=!1,...u},d)=>{const[f,p]=b.useState(r),v=o!==void 0,m=v?o:f,x=b.useCallback(A=>{v||p(A),s==null||s(A)},[v,s]),y=m??i??0,S=b.useCallback(()=>{c||x(fl(y+l,i,a))},[c,x,y,l,i,a]),C=b.useCallback(()=>{c||x(fl(y-l,i,a))},[c,x,y,l,i,a]),_=b.useCallback(A=>{if(A.trim()===""){x(null);return}const R=Number(A);Number.isNaN(R)||x(fl(R,i,a))},[x,i,a]),w=!c&&(a===void 0||(m??i??0)<a),T=!c&&(i===void 0||(m??i??0)>i),E=m==null?"":String(m),P=b.useMemo(()=>({value:m??null,setInputValue:_,increment:S,decrement:C,canIncrement:w,canDecrement:T,disabled:c,min:i,max:a,step:l,displayValue:E}),[m,_,S,C,w,T,c,i,a,l,E]);return h.jsx(fh.Provider,{value:P,children:h.jsx("div",{ref:d,role:"group","data-slot":"input-number",className:j(N_.oxInputNumber,po[n],e),...u,children:t})})});ph.displayName="OxInputNumber";const k_={oxInputNumberContent:"_oxInputNumberContent_1g6fq_2"},gh=b.forwardRef(({className:e,children:t,...n},o)=>h.jsx("div",{ref:o,"data-slot":"controller",className:j(k_.oxInputNumberContent,e),...n,children:t}));gh.displayName="OxInputNumberContent";const hh={oxNumberFieldStep:"_oxNumberFieldStep_1hxou_2",oxStepIcon:"_oxStepIcon_1hxou_2"},mh=b.forwardRef(({className:e,children:t,onClick:n,disabled:o,...r},s)=>{const{decrement:i,canDecrement:a,disabled:l}=dl(),c=o??(l||!a);return h.jsx("button",{ref:s,type:"button",tabIndex:-1,"data-slot":"decrement",disabled:c,className:j(hh.oxNumberFieldStep,e),onClick:u=>{i(),n==null||n(u)},...r,children:t??h.jsx(Tn,{className:hh.oxStepIcon})})});mh.displayName="OxInputNumberDecrement";const vh={oxNumberFieldStep:"_oxNumberFieldStep_uthfu_2",oxStepIcon:"_oxStepIcon_uthfu_2"},xh=b.forwardRef(({className:e,children:t,onClick:n,disabled:o,...r},s)=>{const{increment:i,canIncrement:a,disabled:l}=dl(),c=o??(l||!a);return h.jsx("button",{ref:s,type:"button",tabIndex:-1,"data-slot":"increment",disabled:c,className:j(vh.oxNumberFieldStep,e),onClick:u=>{i(),n==null||n(u)},...r,children:t??h.jsx(hd,{className:vh.oxStepIcon})})});xh.displayName="OxInputNumberIncrement";const $_={oxNumberFieldInput:"_oxNumberFieldInput_1grlt_2"},bh=b.forwardRef(({className:e,onChange:t,onKeyDown:n,...o},r)=>{const{displayValue:s,setInputValue:i,increment:a,decrement:l,disabled:c,value:u,min:d,max:f}=dl();return h.jsx("input",{ref:r,type:"text",inputMode:"decimal",role:"spinbutton",autoComplete:"off","data-slot":"controller",disabled:c,"aria-valuenow":u??void 0,"aria-valuemin":d,"aria-valuemax":f,value:s,className:j(Qo.oxInput,$_.oxNumberFieldInput,e),onChange:p=>{i(p.target.value),t==null||t(p)},onKeyDown:p=>{p.key==="ArrowUp"?(p.preventDefault(),a()):p.key==="ArrowDown"&&(p.preventDefault(),l()),n==null||n(p)},...o})});bh.displayName="OxInputNumberInput";const M_={oxInputPassword:"_oxInputPassword_v2yoc_2"},yh=b.createContext(null);function pl(){const e=b.useContext(yh);if(!e)throw new Error("InputPassword subcomponents must be used inside an <InputPassword> root.");return e}const Ch=b.forwardRef(({className:e,children:t,size:n="md",field:o,onFieldChange:r,visible:s,onVisibleChange:i,dataTestid:a,...l},c)=>{const[u,d]=b.useState(""),[f,p]=b.useState(!1),v=o??u,m=s??f,x=b.useCallback(C=>{o===void 0&&d(C),r==null||r(C)},[o,r]),y=b.useCallback(()=>{const C=!m;s===void 0&&p(C),i==null||i(C)},[m,s,i]),S=b.useMemo(()=>({field:v,setField:x,visible:m,toggle:y}),[v,x,m,y]);return h.jsx(yh.Provider,{value:S,children:h.jsx("div",{ref:c,"data-slot":"controller","data-testid":a,className:j(M_.oxInputPassword,po[n],e),...l,children:t})})});Ch.displayName="OxInputPassword";const R_={oxInputPasswordInput:"_oxInputPasswordInput_1lf41_2"},wh=b.forwardRef(({className:e,onChange:t,...n},o)=>{const{field:r,setField:s,visible:i}=pl();return h.jsx("input",{ref:o,type:i?"text":"password",value:r,autoComplete:"current-password","data-slot":"controller",className:j(Qo.oxInput,R_.oxInputPasswordInput,e),onChange:a=>{s(a.target.value),t==null||t(a)},...n})});wh.displayName="OxInputPasswordInput";const gl={oxInputPasswordToggle:"_oxInputPasswordToggle_ts9kn_2",oxToggleIcon:"_oxToggleIcon_ts9kn_2"},Sh=b.forwardRef(({className:e,children:t,onClick:n,...o},r)=>{const{visible:s,toggle:i}=pl();return h.jsx("button",{ref:r,type:"button","data-slot":"toggle","aria-pressed":s,"aria-label":s?"Hide password":"Show password",className:j(gl.oxInputPasswordToggle,e),onClick:a=>{i(),n==null||n(a)},...o,children:typeof t=="function"?t({visible:s}):t??(s?h.jsx(Db,{className:gl.oxToggleIcon}):h.jsx(Nb,{className:gl.oxToggleIcon}))})});Sh.displayName="OxInputPasswordToggle";const L_={oxInputOtp:"_oxInputOtp_iklxg_2"},_h=b.createContext(null);function Ts(){const e=b.useContext(_h);if(!e)throw new Error("InputOtp subcomponents must be used inside an <InputOtp> root.");return e}const F_=(e,t)=>t==="number"?/^\d$/.test(e):e.length===1,Th=b.forwardRef(({className:e,children:t,dataTestid:n,size:o="md",type:r="number",otp:s=!0,mask:i=!1,disabled:a=!1,value:l,defaultValue:c="",onValueChange:u,onComplete:d,...f},p)=>{const[v,m]=b.useState(c),x=l??v,y=b.useRef(new Map),[S,C]=b.useState(0),_=b.useRef(0),w=b.useRef(0);_.current=0,w.current=0;const[T,E]=b.useState(()=>[...x]),[P,A]=b.useState(x),R=b.useMemo(()=>Array.from({length:S},(q,z)=>T[z]??""),[T,S]);x!==P&&(A(x),x!==R.join("")&&E([...x]));const B=b.useCallback(q=>{E(q);const z=q.join("");l===void 0&&m(z),z!==x&&(u==null||u(z)),q.length>0&&q.every(Boolean)&&(d==null||d(z))},[l,x,u,d]),V=b.useCallback((q,z)=>{z?y.current.set(q,z):y.current.delete(q),C(y.current.size)},[]),K=b.useCallback(q=>{var z;(z=y.current.get(q))==null||z.focus()},[]),U=b.useCallback((q,z)=>{if(a)return;const ee=[...z].filter(Y=>F_(Y,r));if(ee.length===0)return;const F=[...R];ee.forEach((Y,O)=>{const I=q+O;I<F.length&&(F[I]=Y)}),B(F),K(Math.min(q+ee.length,F.length-1))},[a,r,R,B,K]),Z=b.useCallback(q=>{if(a)return;const z=[...R];z[q]="",B(z)},[a,R,B]),X=b.useMemo(()=>({dataTestid:n,nextGroupIndex:()=>_.current++,nextSeparatorIndex:()=>w.current++,chars:R,slotCount:S,type:r,otp:s,mask:i,disabled:a,registerSlot:V,fillFrom:U,clearSlot:Z,focusSlot:K}),[n,R,S,r,s,i,a,V,U,Z,K]);return h.jsx(_h.Provider,{value:X,children:h.jsx("div",{ref:p,"data-slot":"controller","data-testid":n,"data-disabled":a?"":void 0,className:j(L_.oxInputOtp,po[o],e),...f,children:t})})});Th.displayName="OxInputOtp";const z_={oxInputOtpGroup:"_oxInputOtpGroup_srsfk_2"},Eh=b.forwardRef(({className:e,children:t,...n},o)=>{const{dataTestid:r,nextGroupIndex:s}=Ts(),i=s();return h.jsx("div",{ref:o,"data-slot":"group","data-testid":`${r}-group-${i}`,className:j(z_.oxInputOtpGroup,e),...n,children:t})});Eh.displayName="OxInputOtpGroup";const V_={oxInputOtpSlot:"_oxInputOtpSlot_1wpd9_2"},Ph=b.forwardRef(({className:e,index:t,onKeyDown:n,onPaste:o,...r},s)=>{const{dataTestid:i,chars:a,slotCount:l,type:c,otp:u,mask:d,disabled:f,registerSlot:p,fillFrom:v,clearSlot:m,focusSlot:x}=Ts(),y=b.useRef(null),S=b.useCallback(C=>{y.current=C,typeof s=="function"?s(C):s&&(s.current=C)},[s]);return b.useEffect(()=>(p(t,y.current),()=>p(t,null)),[t,p]),h.jsx("input",{ref:S,type:d?"password":"text",inputMode:c==="number"?"numeric":"text",autoComplete:u?"one-time-code":"off",maxLength:1,disabled:f,"aria-label":`pin input ${t+1} of ${l}`,"data-slot":"controller","data-testid":`${i}-slot-${t}`,value:a[t]??"",className:j(Qo.oxInput,V_.oxInputOtpSlot,e),onChange:C=>{v(t,C.target.value)},onKeyDown:C=>{C.key==="Backspace"?(C.preventDefault(),a[t]?m(t):t>0&&(m(t-1),x(t-1))):C.key==="ArrowLeft"&&t>0?(C.preventDefault(),x(t-1)):C.key==="ArrowRight"&&t<l-1&&(C.preventDefault(),x(t+1)),n==null||n(C)},onPaste:C=>{C.preventDefault(),v(t,C.clipboardData.getData("text")),o==null||o(C)},...r})});Ph.displayName="OxInputOtpSlot";const H_={oxInputOtpSeparator:"_oxInputOtpSeparator_12g3x_2"},Ih=b.forwardRef(({className:e,children:t,...n},o)=>{const{dataTestid:r,nextSeparatorIndex:s}=Ts(),i=s();return h.jsx("div",{ref:o,"aria-hidden":"true","data-slot":"separator","data-testid":`${r}-separator-${i}`,className:j(H_.oxInputOtpSeparator,e),...n,children:t??"–"})});Ih.displayName="OxInputOtpSeparator";const B_={oxCombobox:"_oxCombobox_ziqeo_2"},Ah=b.createContext(null);function Es(){const e=b.useContext(Ah);if(!e)throw new Error("Combobox sub-components must be used within <Combobox>.");return e}const Oh=b.forwardRef(({className:e,value:t,defaultValue:n,onValueChange:o,multiple:r=!1,disabled:s=!1,open:i,defaultOpen:a,onOpenChange:l,children:c,dataTestid:u,...d},f)=>{const[p,v]=b.useState(n??(r?[]:void 0)),[m,x]=b.useState(a??!1),[y,S]=b.useState(""),C=t??p,_=i??m,w=b.useCallback(A=>{t===void 0&&v(A),o==null||o(A)},[t,o]),T=b.useCallback(A=>{i===void 0&&x(A),l==null||l(A)},[i,l]),E=b.useCallback(A=>{if(r){const R=Array.isArray(C)?C:[],B=R.includes(A)?R.filter(V=>V!==A):[...R,A];w(B)}else w(A),T(!1);S("")},[r,C,w,T]),P=b.useMemo(()=>({value:C,select:E,multiple:r,disabled:s,open:_,setOpen:T,search:y,setSearch:S}),[C,E,r,s,_,T,y]);return h.jsx(Ah.Provider,{value:P,children:h.jsx(bg,{open:_,onOpenChange:T,children:h.jsx("div",{ref:f,"data-slot":"combobox","data-testid":u,className:j(B_.oxCombobox,e),...d,children:c})})})});Oh.displayName="OxCombobox";const Ps={oxComboboxAnchor:"_oxComboboxAnchor_1dsic_2",oxComboboxInput:"_oxComboboxInput_1dsic_2",oxComboboxTrigger:"_oxComboboxTrigger_1dsic_2",oxComboboxTriggerIcon:"_oxComboboxTriggerIcon_1dsic_2"},Dh=b.forwardRef(({className:e,placeholder:t="",disabled:n,size:o="md",displayValue:r,trigger:s,...i},a)=>{const{value:l,disabled:c,open:u,setOpen:d,search:f,setSearch:p}=Es(),v=n??c,x=u?f:(r??(y=>y==null?"":String(y)))(l);return h.jsxs(yg,{className:Ps.oxComboboxAnchor,children:[h.jsx("input",{ref:a,role:"combobox","aria-expanded":u,"aria-autocomplete":"list","data-slot":"controller",className:j(Qo.oxInput,po[o],Ps.oxComboboxInput,e),placeholder:t,disabled:v,value:x,onChange:y=>{p(y.target.value),u||d(!0)},onFocus:()=>{v||d(!0)},...i}),h.jsx(Wa,{type:"button","aria-label":"Show popup","aria-haspopup":"listbox",disabled:v,"data-disabled":v?"":void 0,className:Ps.oxComboboxTrigger,children:s??h.jsx(Tn,{className:Ps.oxComboboxTriggerIcon})})]})});Dh.displayName="OxComboboxInput";const go={oxComboboxTagsInput:"_oxComboboxTagsInput_1wfvk_2",oxComboboxChip:"_oxComboboxChip_1wfvk_2",oxComboboxChipRemove:"_oxComboboxChipRemove_1wfvk_2",oxComboboxTagsField:"_oxComboboxTagsField_1wfvk_2",oxComboboxTagsTrigger:"_oxComboboxTagsTrigger_1wfvk_2",oxComboboxTagsTriggerIcon:"_oxComboboxTagsTriggerIcon_1wfvk_2"},Nh=b.forwardRef(({className:e,placeholder:t="",disabled:n,size:o="md",trigger:r,...s},i)=>{const{value:a,multiple:l,select:c,disabled:u,open:d,setOpen:f,search:p,setSearch:v}=Es(),m=n??u,x=l&&Array.isArray(a)?a:[];return h.jsxs(yg,{"data-slot":"controller",className:j(go.oxComboboxTagsInput,po[o],e),children:[x.map(y=>h.jsxs("span",{"data-slot":"combobox-chip",className:go.oxComboboxChip,onClick:S=>{S.stopPropagation(),c(y)},children:[y,h.jsx("button",{type:"button",className:go.oxComboboxChipRemove,"aria-label":`Remove ${y}`,disabled:m,onClick:S=>{S.stopPropagation(),c(y)},children:h.jsx(Li,{})})]},y)),h.jsx("input",{ref:i,role:"combobox","aria-expanded":d,"aria-autocomplete":"list",className:go.oxComboboxTagsField,placeholder:x.length?"":t,disabled:m,value:p,onChange:y=>{v(y.target.value),d||f(!0)},onFocus:()=>{m||f(!0)},...s}),h.jsx(Wa,{type:"button","aria-label":"Show popup","aria-haspopup":"listbox",disabled:m,"data-disabled":m?"":void 0,className:go.oxComboboxTagsTrigger,children:r??h.jsx(Tn,{className:go.oxComboboxTagsTriggerIcon})})]})});Nh.displayName="OxComboboxChipsInput";var kh=1,G_=.9,j_=.8,U_=.17,hl=.1,ml=.999,W_=.9999,q_=.99,K_=/[\\\/_+.#"@\[\(\{&]/,X_=/[\\\/_+.#"@\[\(\{&]/g,Y_=/[\s-]/,$h=/[\s-]/g;function vl(e,t,n,o,r,s,i){if(s===t.length)return r===e.length?kh:q_;var a=`${r},${s}`;if(i[a]!==void 0)return i[a];for(var l=o.charAt(s),c=n.indexOf(l,r),u=0,d,f,p,v;c>=0;)d=vl(e,t,n,o,c+1,s+1,i),d>u&&(c===r?d*=kh:K_.test(e.charAt(c-1))?(d*=j_,p=e.slice(r,c-1).match(X_),p&&r>0&&(d*=Math.pow(ml,p.length))):Y_.test(e.charAt(c-1))?(d*=G_,v=e.slice(r,c-1).match($h),v&&r>0&&(d*=Math.pow(ml,v.length))):(d*=U_,r>0&&(d*=Math.pow(ml,c-r))),e.charAt(c)!==t.charAt(s)&&(d*=W_)),(d<hl&&n.charAt(c-1)===o.charAt(s+1)||o.charAt(s+1)===o.charAt(s)&&n.charAt(c-1)!==o.charAt(s))&&(f=vl(e,t,n,o,c+1,s+2,i),f*hl>d&&(d=f*hl)),d>u&&(u=d),c=n.indexOf(l,c+1);return i[a]=u,u}function Mh(e){return e.toLowerCase().replace($h," ")}function Z_(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,vl(e,t,Mh(e),Mh(t),0,0,{})}var er='[cmdk-group=""]',xl='[cmdk-group-items=""]',J_='[cmdk-group-heading=""]',Rh='[cmdk-item=""]',Lh=`${Rh}:not([aria-disabled="true"])`,bl="cmdk-item-select",ho="data-value",Q_=(e,t,n)=>Z_(e,t,n),Fh=g.createContext(void 0),tr=()=>g.useContext(Fh),zh=g.createContext(void 0),yl=()=>g.useContext(zh),Vh=g.createContext(void 0),Hh=g.forwardRef((e,t)=>{let n=mo(()=>{var O,I;return{search:"",value:(I=(O=e.value)!=null?O:e.defaultValue)!=null?I:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),o=mo(()=>new Set),r=mo(()=>new Map),s=mo(()=>new Map),i=mo(()=>new Set),a=Kh(e),{label:l,children:c,value:u,onValueChange:d,filter:f,shouldFilter:p,loop:v,disablePointerSelection:m=!1,vimBindings:x=!0,...y}=e,S=Be(),C=Be(),_=Be(),w=g.useRef(null),T=sT();Mn(()=>{if(u!==void 0){let O=u.trim();n.current.value=O,E.emit()}},[u]),Mn(()=>{T(6,K)},[]);let E=g.useMemo(()=>({subscribe:O=>(i.current.add(O),()=>i.current.delete(O)),snapshot:()=>n.current,setState:(O,I,k)=>{var M,L,N,$;if(!Object.is(n.current[O],I)){if(n.current[O]=I,O==="search")V(),R(),T(1,B);else if(O==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let G=document.getElementById(_);G?G.focus():(M=document.getElementById(S))==null||M.focus()}if(T(7,()=>{var G;n.current.selectedItemId=(G=U())==null?void 0:G.id,E.emit()}),k||T(5,K),((L=a.current)==null?void 0:L.value)!==void 0){let G=I??"";($=(N=a.current).onValueChange)==null||$.call(N,G);return}}E.emit()}},emit:()=>{i.current.forEach(O=>O())}}),[]),P=g.useMemo(()=>({value:(O,I,k)=>{var M;I!==((M=s.current.get(O))==null?void 0:M.value)&&(s.current.set(O,{value:I,keywords:k}),n.current.filtered.items.set(O,A(I,k)),T(2,()=>{R(),E.emit()}))},item:(O,I)=>(o.current.add(O),I&&(r.current.has(I)?r.current.get(I).add(O):r.current.set(I,new Set([O]))),T(3,()=>{V(),R(),n.current.value||B(),E.emit()}),()=>{s.current.delete(O),o.current.delete(O),n.current.filtered.items.delete(O);let k=U();T(4,()=>{V(),(k==null?void 0:k.getAttribute("id"))===O&&B(),E.emit()})}),group:O=>(r.current.has(O)||r.current.set(O,new Set),()=>{s.current.delete(O),r.current.delete(O)}),filter:()=>a.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:S,inputId:_,labelId:C,listInnerRef:w}),[]);function A(O,I){var k,M;let L=(M=(k=a.current)==null?void 0:k.filter)!=null?M:Q_;return O?L(O,n.current.search,I):0}function R(){if(!n.current.search||a.current.shouldFilter===!1)return;let O=n.current.filtered.items,I=[];n.current.filtered.groups.forEach(M=>{let L=r.current.get(M),N=0;L.forEach($=>{let G=O.get($);N=Math.max(G,N)}),I.push([M,N])});let k=w.current;Z().sort((M,L)=>{var N,$;let G=M.getAttribute("id"),W=L.getAttribute("id");return((N=O.get(W))!=null?N:0)-(($=O.get(G))!=null?$:0)}).forEach(M=>{let L=M.closest(xl);L?L.appendChild(M.parentElement===L?M:M.closest(`${xl} > *`)):k.appendChild(M.parentElement===k?M:M.closest(`${xl} > *`))}),I.sort((M,L)=>L[1]-M[1]).forEach(M=>{var L;let N=(L=w.current)==null?void 0:L.querySelector(`${er}[${ho}="${encodeURIComponent(M[0])}"]`);N==null||N.parentElement.appendChild(N)})}function B(){let O=Z().find(k=>k.getAttribute("aria-disabled")!=="true"),I=O==null?void 0:O.getAttribute(ho);E.setState("value",I||void 0)}function V(){var O,I,k,M;if(!n.current.search||a.current.shouldFilter===!1){n.current.filtered.count=o.current.size;return}n.current.filtered.groups=new Set;let L=0;for(let N of o.current){let $=(I=(O=s.current.get(N))==null?void 0:O.value)!=null?I:"",G=(M=(k=s.current.get(N))==null?void 0:k.keywords)!=null?M:[],W=A($,G);n.current.filtered.items.set(N,W),W>0&&L++}for(let[N,$]of r.current)for(let G of $)if(n.current.filtered.items.get(G)>0){n.current.filtered.groups.add(N);break}n.current.filtered.count=L}function K(){var O,I,k;let M=U();M&&(((O=M.parentElement)==null?void 0:O.firstChild)===M&&((k=(I=M.closest(er))==null?void 0:I.querySelector(J_))==null||k.scrollIntoView({block:"nearest"})),M.scrollIntoView({block:"nearest"}))}function U(){var O;return(O=w.current)==null?void 0:O.querySelector(`${Rh}[aria-selected="true"]`)}function Z(){var O;return Array.from(((O=w.current)==null?void 0:O.querySelectorAll(Lh))||[])}function X(O){let I=Z()[O];I&&E.setState("value",I.getAttribute(ho))}function q(O){var I;let k=U(),M=Z(),L=M.findIndex($=>$===k),N=M[L+O];(I=a.current)!=null&&I.loop&&(N=L+O<0?M[M.length-1]:L+O===M.length?M[0]:M[L+O]),N&&E.setState("value",N.getAttribute(ho))}function z(O){let I=U(),k=I==null?void 0:I.closest(er),M;for(;k&&!M;)k=O>0?oT(k,er):rT(k,er),M=k==null?void 0:k.querySelector(Lh);M?E.setState("value",M.getAttribute(ho)):q(O)}let ee=()=>X(Z().length-1),F=O=>{O.preventDefault(),O.metaKey?ee():O.altKey?z(1):q(1)},Y=O=>{O.preventDefault(),O.metaKey?X(0):O.altKey?z(-1):q(-1)};return g.createElement(ce.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:O=>{var I;(I=y.onKeyDown)==null||I.call(y,O);let k=O.nativeEvent.isComposing||O.keyCode===229;if(!(O.defaultPrevented||k))switch(O.key){case"n":case"j":{x&&O.ctrlKey&&F(O);break}case"ArrowDown":{F(O);break}case"p":case"k":{x&&O.ctrlKey&&Y(O);break}case"ArrowUp":{Y(O);break}case"Home":{O.preventDefault(),X(0);break}case"End":{O.preventDefault(),ee();break}case"Enter":{O.preventDefault();let M=U();if(M){let L=new Event(bl);M.dispatchEvent(L)}}}}},g.createElement("label",{"cmdk-label":"",htmlFor:P.inputId,id:P.labelId,style:aT},l),Is(e,O=>g.createElement(zh.Provider,{value:E},g.createElement(Fh.Provider,{value:P},O))))}),Bh=g.forwardRef((e,t)=>{var n,o;let r=Be(),s=g.useRef(null),i=g.useContext(Vh),a=tr(),l=Kh(e),c=(o=(n=l.current)==null?void 0:n.forceMount)!=null?o:i==null?void 0:i.forceMount;Mn(()=>{if(!c)return a.item(r,i==null?void 0:i.id)},[c]);let u=Xh(r,s,[e.value,e.children,s],e.keywords),d=yl(),f=rn(T=>T.value&&T.value===u.current),p=rn(T=>c||a.filter()===!1?!0:T.search?T.filtered.items.get(r)>0:!0);g.useEffect(()=>{let T=s.current;if(!(!T||e.disabled))return T.addEventListener(bl,v),()=>T.removeEventListener(bl,v)},[p,e.onSelect,e.disabled]);function v(){var T,E;m(),(E=(T=l.current).onSelect)==null||E.call(T,u.current)}function m(){d.setState("value",u.current,!0)}if(!p)return null;let{disabled:x,value:y,onSelect:S,forceMount:C,keywords:_,...w}=e;return g.createElement(ce.div,{ref:Wn(s,t),...w,id:r,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!f,"data-disabled":!!x,"data-selected":!!f,onPointerMove:x||a.getDisablePointerSelection()?void 0:m,onClick:x?void 0:v},e.children)}),Gh=g.forwardRef((e,t)=>{let{heading:n,children:o,forceMount:r,...s}=e,i=Be(),a=g.useRef(null),l=g.useRef(null),c=Be(),u=tr(),d=rn(p=>r||u.filter()===!1?!0:p.search?p.filtered.groups.has(i):!0);Mn(()=>u.group(i),[]),Xh(i,a,[e.value,e.heading,l]);let f=g.useMemo(()=>({id:i,forceMount:r}),[r]);return g.createElement(ce.div,{ref:Wn(a,t),...s,"cmdk-group":"",role:"presentation",hidden:d?void 0:!0},n&&g.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),Is(e,p=>g.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},g.createElement(Vh.Provider,{value:f},p))))}),jh=g.forwardRef((e,t)=>{let{alwaysRender:n,...o}=e,r=g.useRef(null),s=rn(i=>!i.search);return!n&&!s?null:g.createElement(ce.div,{ref:Wn(r,t),...o,"cmdk-separator":"",role:"separator"})}),Uh=g.forwardRef((e,t)=>{let{onValueChange:n,...o}=e,r=e.value!=null,s=yl(),i=rn(c=>c.search),a=rn(c=>c.selectedItemId),l=tr();return g.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),g.createElement(ce.input,{ref:t,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":a,id:l.inputId,type:"text",value:r?e.value:i,onChange:c=>{r||s.setState("search",c.target.value),n==null||n(c.target.value)}})}),Wh=g.forwardRef((e,t)=>{let{children:n,label:o="Suggestions",...r}=e,s=g.useRef(null),i=g.useRef(null),a=rn(c=>c.selectedItemId),l=tr();return g.useEffect(()=>{if(i.current&&s.current){let c=i.current,u=s.current,d,f=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let p=c.offsetHeight;u.style.setProperty("--cmdk-list-height",p.toFixed(1)+"px")})});return f.observe(c),()=>{cancelAnimationFrame(d),f.unobserve(c)}}},[]),g.createElement(ce.div,{ref:Wn(s,t),...r,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":a,"aria-label":o,id:l.listId},Is(e,c=>g.createElement("div",{ref:Wn(i,l.listInnerRef),"cmdk-list-sizer":""},c)))}),eT=g.forwardRef((e,t)=>{let{open:n,onOpenChange:o,overlayClassName:r,contentClassName:s,container:i,...a}=e;return g.createElement(up,{open:n,onOpenChange:o},g.createElement(Sa,{container:i},g.createElement(pp,{"cmdk-overlay":"",className:r}),g.createElement(Ta,{"aria-label":e.label,"cmdk-dialog":"",className:s},g.createElement(Hh,{ref:t,...a}))))}),qh=g.forwardRef((e,t)=>rn(n=>n.filtered.count===0)?g.createElement(ce.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),tT=g.forwardRef((e,t)=>{let{progress:n,children:o,label:r="Loading...",...s}=e;return g.createElement(ce.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r},Is(e,i=>g.createElement("div",{"aria-hidden":!0},i)))}),nT=Object.assign(Hh,{List:Wh,Item:Bh,Input:Uh,Group:Gh,Separator:jh,Dialog:eT,Empty:qh,Loading:tT});function oT(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function rT(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Kh(e){let t=g.useRef(e);return Mn(()=>{t.current=e}),t}var Mn=typeof window>"u"?g.useEffect:g.useLayoutEffect;function mo(e){let t=g.useRef();return t.current===void 0&&(t.current=e()),t}function rn(e){let t=yl(),n=()=>e(t.snapshot());return g.useSyncExternalStore(t.subscribe,n,n)}function Xh(e,t,n,o=[]){let r=g.useRef(),s=tr();return Mn(()=>{var i;let a=(()=>{var c;for(let u of n){if(typeof u=="string")return u.trim();if(typeof u=="object"&&"current"in u)return u.current?(c=u.current.textContent)==null?void 0:c.trim():r.current}})(),l=o.map(c=>c.trim());s.value(e,a,l),(i=t.current)==null||i.setAttribute(ho,a),r.current=a}),r}var sT=()=>{let[e,t]=g.useState(),n=mo(()=>new Map);return Mn(()=>{n.current.forEach(o=>o()),n.current=new Map},[e]),(o,r)=>{n.current.set(o,r),t({})}};function iT(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Is({asChild:e,children:t},n){return e&&g.isValidElement(t)?g.cloneElement(iT(t),{ref:t.ref},n(t.props.children)):n(t)}var aT={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Yh=b.forwardRef(({children:e,side:t="bottom",sideOffset:n=4,align:o="start",...r},s)=>{const{search:i}=Es();return h.jsx(Cg,{children:h.jsx(wg,{ref:s,"data-slot":"combobox-content",side:t,sideOffset:n,align:o,onOpenAutoFocus:a=>a.preventDefault(),...r,children:h.jsxs(nT,{shouldFilter:!0,value:i,children:[h.jsx(Uh,{value:i,className:"combobox-hidden-input"}),h.jsx(Wh,{className:"combobox-viewport",children:e})]})})})});Yh.displayName="OxComboboxContent";const Cl={oxComboboxItem:"_oxComboboxItem_mr3f9_2",oxComboboxItemIndicator:"_oxComboboxItemIndicator_mr3f9_2",oxComboboxCheckIcon:"_oxComboboxCheckIcon_mr3f9_2"},Zh=b.forwardRef(({className:e,value:t,disabled:n=!1,children:o,...r},s)=>{const{value:i,select:a}=Es(),l=Array.isArray(i)?i.includes(t):i===t;return h.jsxs(Bh,{ref:s,"data-slot":"combobox-item","data-state":l?"checked":"unchecked",className:j(Cl.oxComboboxItem,e),value:t,disabled:n,onSelect:a,...r,children:[o,l?h.jsx("span",{className:Cl.oxComboboxItemIndicator,children:h.jsx(Ri,{className:Cl.oxComboboxCheckIcon})}):null]})});Zh.displayName="OxComboboxItem";const lT={oxComboboxEmpty:"_oxComboboxEmpty_1cerj_2"},Jh=b.forwardRef(({className:e,children:t,...n},o)=>h.jsx(qh,{ref:o,"data-slot":"combobox-empty",className:j(lT.oxComboboxEmpty,e),...n,children:t??"No results found."}));Jh.displayName="OxComboboxEmpty";const cT={oxComboboxGroupLabel:"_oxComboboxGroupLabel_121rd_2"},Qh=b.forwardRef(({className:e,label:t,children:n,...o},r)=>h.jsx(Gh,{ref:r,"data-slot":"combobox-group",heading:t?h.jsx("span",{className:cT.oxComboboxGroupLabel,children:t}):void 0,className:j(e),...o,children:n}));Qh.displayName="OxComboboxGroup";const uT={oxComboboxSeparator:"_oxComboboxSeparator_1wx8o_2"},em=b.forwardRef(({className:e,...t},n)=>h.jsx(jh,{ref:n,"data-slot":"combobox-separator",className:j(uT.oxComboboxSeparator,e),...t}));em.displayName="OxComboboxSeparator";var dT=Object.defineProperty,fT=(e,t)=>dT(e,"name",{value:t,configurable:!0});function wl(e,[t,n]){return Math.min(n,Math.max(t,e))}fT(wl,"clamp");var pT=Object.defineProperty,vo=(e,t)=>pT(e,"name",{value:t,configurable:!0}),tm=!!(typeof window<"u"&&window.document&&window.document.createElement);function Se(e,t,{checkForDefaultPrevented:n=!0}={}){return vo(function(r){if(e==null||e(r),n===!1||!r||!r.defaultPrevented)return t==null?void 0:t(r)},"handleEvent")}vo(Se,"composeEventHandlers");function gT(e){var t;if(!tm)throw new Error("Cannot access window outside of the DOM");return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)??window}vo(gT,"getOwnerWindow");function Sl(e){if(!tm)throw new Error("Cannot access document outside of the DOM");return(e==null?void 0:e.ownerDocument)??document}vo(Sl,"getOwnerDocument");function nm(e,t=!1){const{activeElement:n}=Sl(e);if(!(n!=null&&n.nodeName))return null;if(om(n)&&n.contentDocument)return nm(n.contentDocument.body,t);if(t){const o=n.getAttribute("aria-activedescendant");if(o){const r=Sl(n).getElementById(o);if(r)return r}}return n}vo(nm,"getActiveElement");function om(e){return e.tagName==="IFRAME"}vo(om,"isFrame");var hT=Object.defineProperty,De=(e,t)=>hT(e,"name",{value:t,configurable:!0});function rm(e){const t=e+"CollectionProvider",[n,o]=eo(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=De(m=>{const{scope:x,children:y}=m,S=g.useRef(null),C=g.useRef(new Map).current;return h.jsx(r,{scope:x,itemMap:C,collectionRef:S,children:y})},"CollectionProvider");i.displayName=t;const a=e+"CollectionSlot",l=In(a),c=g.forwardRef((m,x)=>{const{scope:y,children:S}=m,C=s(a,y),_=we(x,C.collectionRef);return h.jsx(l,{ref:_,children:S})});c.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",f=In(u),p=g.forwardRef((m,x)=>{const{scope:y,children:S,...C}=m,_=g.useRef(null),w=we(x,_),T=s(u,y);return g.useEffect(()=>(T.itemMap.set(_,{ref:_,...C}),()=>void T.itemMap.delete(_))),h.jsx(f,{[d]:"",ref:w,children:S})});p.displayName=u;function v(m){const x=s(e+"CollectionConsumer",m);return g.useCallback(()=>{const S=x.collectionRef.current;if(!S)return[];const C=Array.from(S.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((T,E)=>C.indexOf(T.ref.current)-C.indexOf(E.ref.current))},[x.collectionRef,x.itemMap])}return De(v,"useCollection"),[{Provider:i,Slot:c,ItemSlot:p},v,o]}De(rm,"createCollection");var sm=new WeakMap,_l=(ot=class extends Map{constructor(n){super(n);O0(this,Ee);Vc(this,Ee,[...super.keys()]),sm.set(this,!0)}set(n,o){return sm.get(this)&&(this.has(n)?Ve(this,Ee)[Ve(this,Ee).indexOf(n)]=n:Ve(this,Ee).push(n)),super.set(n,o),this}insert(n,o,r){const s=this.has(o),i=Ve(this,Ee).length,a=Tl(n);let l=a>=0?a:i+a;const c=l<0||l>=i?-1:l;if(c===this.size||s&&c===this.size-1||c===-1)return this.set(o,r),this;const u=this.size+(s?0:1);a<0&&l++;const d=[...Ve(this,Ee)];let f,p=!1;for(let v=l;v<u;v++)if(l===v){let m=d[v];d[v]===o&&(m=d[v+1]),s&&this.delete(o),f=this.get(m),this.set(o,r)}else{!p&&d[v-1]===o&&(p=!0);const m=d[p?v:v-1],x=f;f=this.get(m),this.delete(m),this.set(m,x)}return this}with(n,o,r){const s=new ot(this);return s.insert(n,o,r),s}before(n){const o=Ve(this,Ee).indexOf(n)-1;if(!(o<0))return this.entryAt(o)}setBefore(n,o,r){const s=Ve(this,Ee).indexOf(n);return s===-1?this:this.insert(s,o,r)}after(n){let o=Ve(this,Ee).indexOf(n);if(o=o===-1||o===this.size-1?-1:o+1,o!==-1)return this.entryAt(o)}setAfter(n,o,r){const s=Ve(this,Ee).indexOf(n);return s===-1?this:this.insert(s+1,o,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return Vc(this,Ee,[]),super.clear()}delete(n){const o=super.delete(n);return o&&Ve(this,Ee).splice(Ve(this,Ee).indexOf(n),1),o}deleteAt(n){const o=this.keyAt(n);return o!==void 0?this.delete(o):!1}at(n){const o=As(Ve(this,Ee),n);if(o!==void 0)return this.get(o)}entryAt(n){const o=As(Ve(this,Ee),n);if(o!==void 0)return[o,this.get(o)]}indexOf(n){return Ve(this,Ee).indexOf(n)}keyAt(n){return As(Ve(this,Ee),n)}from(n,o){const r=this.indexOf(n);if(r===-1)return;let s=r+o;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.at(s)}keyFrom(n,o){const r=this.indexOf(n);if(r===-1)return;let s=r+o;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.keyAt(s)}find(n,o){let r=0;for(const s of this){if(Reflect.apply(n,o,[s,r,this]))return s;r++}}findIndex(n,o){let r=0;for(const s of this){if(Reflect.apply(n,o,[s,r,this]))return r;r++}return-1}filter(n,o){const r=[];let s=0;for(const i of this)Reflect.apply(n,o,[i,s,this])&&r.push(i),s++;return new ot(r)}map(n,o){const r=[];let s=0;for(const i of this)r.push([i[0],Reflect.apply(n,o,[i,s,this])]),s++;return new ot(r)}reduce(...n){const[o,r]=n;let s=0,i=r??this.at(0);for(const a of this)s===0&&n.length===1?i=a:i=Reflect.apply(o,this,[i,a,s,this]),s++;return i}reduceRight(...n){const[o,r]=n;let s=r??this.at(-1);for(let i=this.size-1;i>=0;i--){const a=this.at(i);i===this.size-1&&n.length===1?s=a:s=Reflect.apply(o,this,[s,a,i,this])}return s}toSorted(n){const o=[...this.entries()].sort(n);return new ot(o)}toReversed(){const n=new ot;for(let o=this.size-1;o>=0;o--){const r=this.keyAt(o),s=this.get(r);n.set(r,s)}return n}toSpliced(...n){const o=[...this.entries()];return o.splice(...n),new ot(o)}slice(n,o){const r=new ot;let s=this.size-1;if(n===void 0)return r;n<0&&(n=n+this.size),o!==void 0&&o>0&&(s=o-1);for(let i=n;i<=s;i++){const a=this.keyAt(i),l=this.get(a);r.set(a,l)}return r}every(n,o){let r=0;for(const s of this){if(!Reflect.apply(n,o,[s,r,this]))return!1;r++}return!0}some(n,o){let r=0;for(const s of this){if(Reflect.apply(n,o,[s,r,this]))return!0;r++}return!1}},Ee=new WeakMap,De(ot,"OrderedDict"),ot);function As(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=im(e,t);return n===-1?void 0:e[n]}De(As,"at");function im(e,t){const n=e.length,o=Tl(t),r=o>=0?o:n+o;return r<0||r>=n?-1:r}De(im,"toSafeIndex");function Tl(e){return e!==e||e===0?0:Math.trunc(e)}De(Tl,"toSafeInteger");function mT(e){const t=e+"CollectionProvider",[n,o]=eo(t),[r,s]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new _l,setItemMap:De(()=>{},"setItemMap")}),i=De(({state:C,..._})=>C?h.jsx(l,{..._,state:C}):h.jsx(a,{..._}),"CollectionProvider");i.displayName=t;const a=De(C=>{const _=x();return h.jsx(l,{...C,state:_})},"CollectionInit");a.displayName=t+"Init";const l=De(C=>{const{scope:_,children:w,state:T}=C,E=g.useRef(null),[P,A]=g.useState(null),R=we(E,A),[B,V]=T;return g.useEffect(()=>{if(!P)return;const K=cm(()=>{});return K.observe(P,{childList:!0,subtree:!0}),()=>{K.disconnect()}},[P]),h.jsx(r,{scope:_,itemMap:B,setItemMap:V,collectionRef:R,collectionRefObject:E,collectionElement:P,children:w})},"CollectionProviderImpl");l.displayName=t+"Impl";const c=e+"CollectionSlot",u=In(c),d=g.forwardRef((C,_)=>{const{scope:w,children:T}=C,E=s(c,w),P=we(_,E.collectionRef);return h.jsx(u,{ref:P,children:T})});d.displayName=c;const f=e+"CollectionItemSlot",p="data-radix-collection-item",v=In(f),m=g.forwardRef((C,_)=>{const{scope:w,children:T,...E}=C,P=g.useRef(null),[A,R]=g.useState(null),B=we(_,P,R),V=s(f,w),{setItemMap:K}=V,U=g.useRef(E);am(U.current,E)||(U.current=E);const Z=U.current;return g.useEffect(()=>{const X=Z;return K(q=>A?q.has(A)?q.set(A,{...X,element:A}).toSorted(El):(q.set(A,{...X,element:A}),q.toSorted(El)):q),()=>{K(q=>!A||!q.has(A)?q:(q.delete(A),new _l(q)))}},[A,Z,K]),h.jsx(v,{[p]:"",ref:B,children:T})});m.displayName=f;function x(){return g.useState(new _l)}De(x,"useInitCollection");function y(C){const{itemMap:_}=s(e+"CollectionConsumer",C);return _}return De(y,"useCollection"),[{Provider:i,Slot:d,ItemSlot:m},{createCollectionScope:o,useCollection:y,useInitCollection:x}]}De(mT,"createCollection");function am(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}De(am,"shallowEqual");function lm(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}De(lm,"isElementPreceding");function El(e,t){return!e[1].element||!t[1].element?0:lm(e[1].element,t[1].element)?-1:1}De(El,"sortByDocumentPosition");function cm(e){return new MutationObserver(n=>{for(const o of n)if(o.type==="childList"){e();return}})}De(cm,"getChildListObserver");var vT=Object.defineProperty,xT=(e,t)=>vT(e,"name",{value:t,configurable:!0}),bT=g.createContext(void 0);function um(e){const t=g.useContext(bT);return e||t||"ltr"}xT(um,"useDirection");var yT=Object.defineProperty,CT=(e,t)=>yT(e,"name",{value:t,configurable:!0});function At(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)}),[])}CT(At,"useCallbackRef");var wT=Object.defineProperty,Ne=(e,t)=>wT(e,"name",{value:t,configurable:!0}),Pl="dismissableLayer.update",ST="dismissableLayer.pointerDownOutside",_T="dismissableLayer.focusOutside",dm,fm=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),TT=g.forwardRef(Ne(function(t,n){const{disableOutsidePointerEvents:o=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...u}=t,d=g.useContext(fm),[f,p]=g.useState(null),v=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=g.useState({}),x=we(n,p),y=Array.from(d.layers),[S]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),C=S?y.indexOf(S):-1,_=f?y.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,T=_>=C,E=g.useRef(!1),P=pm(V=>{i==null||i(V),l==null||l(V),V.defaultPrevented||c==null||c()},{ownerDocument:v,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:E,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:g.useCallback(V=>{if(!(V instanceof Node))return!1;const K=[...d.branches].some(U=>U.contains(V));return T&&!K},[d.branches,T])}),A=gm(V=>{if(r&&E.current)return;const K=V.target;[...d.branches].some(Z=>Z.contains(K))||(a==null||a(V),l==null||l(V),V.defaultPrevented||c==null||c())},v),R=f?_===y.length-1:!1,B=At(V=>{V.key==="Escape"&&(s==null||s(V),!V.defaultPrevented&&c&&(V.preventDefault(),c()))});return g.useEffect(()=>{if(R)return v.addEventListener("keydown",B,{capture:!0}),()=>v.removeEventListener("keydown",B,{capture:!0})},[v,R,B]),g.useEffect(()=>{if(f)return o&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(dm=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Il(),()=>{o&&(d.layersWithOutsidePointerEventsDisabled.delete(f),d.layersWithOutsidePointerEventsDisabled.size===0&&(v.body.style.pointerEvents=dm))}},[f,v,o,d]),g.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Il())},[f,d]),g.useEffect(()=>{const V=Ne(()=>m({}),"handleUpdate");return document.addEventListener(Pl,V),()=>document.removeEventListener(Pl,V)},[]),h.jsx(Te.div,{...u,ref:x,style:{pointerEvents:w?T?"auto":"none":void 0,...t.style},onFocusCapture:Se(t.onFocusCapture,A.onFocusCapture),onBlurCapture:Se(t.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Se(t.onPointerDownCapture,P.onPointerDownCapture)})},"DismissableLayer"));function ET(){const e=g.useContext(fm),[t,n]=g.useState(null);return g.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}Ne(ET,"useDismissableLayerSurface");var PT=Ne(()=>!0,"IS_TRUE");function pm(e,t){const{ownerDocument:n=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:s,shouldHandlePointerDownOutside:i=PT}=t,a=At(e),l=g.useRef(!1),c=g.useRef(!1),u=g.useRef(new Map),d=g.useRef(()=>{});return g.useEffect(()=>{function f(){c.current=!1,r.current=!1,u.current.clear()}Ne(f,"resetOutsideInteraction");function p(){return Array.from(u.current.values()).some(Boolean)}Ne(p,"isOutsideInteractionIntercepted");function v(C){if(!c.current)return;const _=C.target;_ instanceof Node&&[...s].some(T=>T.contains(_))||u.current.set(C.type,!0),C.type==="click"&&window.setTimeout(()=>{c.current&&d.current()},0)}Ne(v,"handleInteractionCapture");function m(C){c.current&&u.current.set(C.type,!1)}Ne(m,"handleInteractionBubble");const x=Ne(C=>{if(C.target&&!l.current){let _=function(){n.removeEventListener("click",d.current);const T=p();f(),T||Al(ST,a,w,{discrete:!0})};if(Ne(_,"handleAndDispatchPointerDownOutsideEvent"),!i(C.target)){n.removeEventListener("click",d.current),f(),l.current=!1;return}const w={originalEvent:C};c.current=!0,r.current=o&&C.button===0,u.current.clear(),!o||C.button!==0?_():(n.removeEventListener("click",d.current),d.current=_,n.addEventListener("click",d.current,{once:!0}))}else n.removeEventListener("click",d.current),f();l.current=!1},"handlePointerDown"),y=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const C of y)n.addEventListener(C,v,!0),n.addEventListener(C,m);const S=window.setTimeout(()=>{n.addEventListener("pointerdown",x)},0);return()=>{window.clearTimeout(S),n.removeEventListener("pointerdown",x),n.removeEventListener("click",d.current);for(const C of y)n.removeEventListener(C,v,!0),n.removeEventListener(C,m)}},[n,a,o,r,s,i]),{onPointerDownCapture:Ne(()=>l.current=!0,"onPointerDownCapture")}}Ne(pm,"usePointerDownOutside");function gm(e,t=globalThis==null?void 0:globalThis.document){const n=At(e),o=g.useRef(!1);return g.useEffect(()=>{const r=Ne(s=>{s.target&&!o.current&&Al(_T,n,{originalEvent:s},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:Ne(()=>o.current=!0,"onFocusCapture"),onBlurCapture:Ne(()=>o.current=!1,"onBlurCapture")}}Ne(gm,"useFocusOutside");function Il(){const e=new CustomEvent(Pl);document.dispatchEvent(e)}Ne(Il,"dispatchUpdate");function Al(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?sf(r,s):r.dispatchEvent(s)}Ne(Al,"handleAndDispatchCustomEvent");var IT=Object.defineProperty,Ol=(e,t)=>IT(e,"name",{value:t,configurable:!0}),Os=0,Ot=null;function AT(e){return Dl(),e.children}Ol(AT,"FocusGuards");function Dl(){g.useEffect(()=>{Ot||(Ot={start:Nl(),end:Nl()});const{start:e,end:t}=Ot;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Os++,()=>{Os===1&&(Ot==null||Ot.start.remove(),Ot==null||Ot.end.remove(),Ot=null),Os=Math.max(0,Os-1)}},[])}Ol(Dl,"useFocusGuards");function Nl(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}Ol(Nl,"createFocusGuard");var OT=Object.defineProperty,je=(e,t)=>OT(e,"name",{value:t,configurable:!0}),kl="focusScope.autoFocusOnMount",$l="focusScope.autoFocusOnUnmount",hm={bubbles:!1,cancelable:!0},DT=g.forwardRef(je(function(t,n){const{loop:o=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...a}=t,[l,c]=g.useState(null),u=At(s),d=At(i),f=g.useRef(null),p=we(n,c),v=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let x=function(_){if(v.paused||!l)return;const w=_.target;l.contains(w)?f.current=w:Ut(f.current,{select:!0})},y=function(_){if(v.paused||!l)return;const w=_.relatedTarget;w!==null&&(l.contains(w)||Ut(f.current,{select:!0}))},S=function(_){if(document.activeElement===document.body)for(const T of _)T.removedNodes.length>0&&Ut(l)};je(x,"handleFocusIn"),je(y,"handleFocusOut"),je(S,"handleMutations"),document.addEventListener("focusin",x),document.addEventListener("focusout",y);const C=new MutationObserver(S);return l&&C.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",y),C.disconnect()}}},[r,l,v.paused]),g.useEffect(()=>{if(l){ym.add(v);const x=document.activeElement;if(!l.contains(x)){const S=new CustomEvent(kl,hm);l.addEventListener(kl,u),l.dispatchEvent(S),S.defaultPrevented||(mm(wm(Ml(l)),{select:!0}),document.activeElement===x&&Ut(l))}return()=>{l.removeEventListener(kl,u),setTimeout(()=>{const S=new CustomEvent($l,hm);l.addEventListener($l,d),l.dispatchEvent(S),S.defaultPrevented||Ut(x??document.body,{select:!0}),l.removeEventListener($l,d),ym.remove(v)},0)}}},[l,u,d,v]);const m=g.useCallback(x=>{if(!o&&!r||v.paused)return;const y=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,S=document.activeElement;if(y&&S){const C=x.currentTarget,[_,w]=vm(C);_&&w?!x.shiftKey&&S===w?(x.preventDefault(),o&&Ut(_,{select:!0})):x.shiftKey&&S===_&&(x.preventDefault(),o&&Ut(w,{select:!0})):S===C&&x.preventDefault()}},[o,r,v.paused]);return h.jsx(Te.div,{tabIndex:-1,...a,ref:p,onKeyDown:m})},"FocusScope"));function mm(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Ut(o,{select:t}),document.activeElement!==n)return}je(mm,"focusFirst");function vm(e){const t=Ml(e),n=Rl(t,e),o=Rl(t.reverse(),e);return[n,o]}je(vm,"getTabbableEdges");function Ml(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:je(o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}je(Ml,"getTabbableCandidates");function Rl(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const o of e)if(!(n?!o.checkVisibility({checkVisibilityCSS:!0}):xm(o,{upTo:t})))return o}je(Rl,"findVisible");function xm(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}je(xm,"isHidden");function bm(e){return e instanceof HTMLInputElement&&"select"in e}je(bm,"isSelectableInput");function Ut(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&bm(e)&&t&&e.select()}}je(Ut,"focus");var ym=Cm();function Cm(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ll(e,t),e.unshift(t)},remove(t){var n;e=Ll(e,t),(n=e[0])==null||n.resume()}}}je(Cm,"createFocusScopesStack");function Ll(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}je(Ll,"arrayRemove");function wm(e){return e.filter(t=>t.tagName!=="A")}je(wm,"removeLinks");var ke=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},NT=Object.defineProperty,kT=(e,t)=>NT(e,"name",{value:t,configurable:!0}),$T=g[" useId ".trim().toString()]||(()=>{}),MT=0;function Ds(e){const[t,n]=g.useState($T());return ke(()=>{e||n(o=>o??String(MT++))},[e]),e||(t?`radix-${t}`:"")}kT(Ds,"useId");var RT=Object.defineProperty,LT=(e,t)=>RT(e,"name",{value:t,configurable:!0});function Sm(e){const[t,n]=g.useState(void 0);return ke(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,a=c.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}LT(Sm,"useSize");var FT=Object.defineProperty,sn=(e,t)=>FT(e,"name",{value:t,configurable:!0}),_m="Popper",[Tm,Em]=eo(_m),[zT,Pm]=Tm(_m),VT=sn(e=>{const{__scopePopper:t,children:n}=e,[o,r]=g.useState(null),[s,i]=g.useState(void 0);return h.jsx(zT,{scope:t,anchor:o,onAnchorChange:r,placementState:s,setPlacementState:i,children:n})},"Popper"),HT="PopperAnchor",BT=g.forwardRef(sn(function(t,n){const{__scopePopper:o,virtualRef:r,...s}=t,i=Pm(HT,o),a=g.useRef(null),l=i.onAnchorChange,c=g.useCallback(m=>{a.current=m,m&&l(m)},[l]),u=we(n,c),d=g.useRef(null);g.useEffect(()=>{if(!r)return;const m=d.current;d.current=r.current,m!==d.current&&l(d.current)});const f=i.placementState&&Ns(i.placementState),p=f==null?void 0:f[0],v=f==null?void 0:f[1];return r?null:h.jsx(Te.div,{"data-radix-popper-side":p,"data-radix-popper-align":v,...s,ref:u})},"PopperAnchor")),Im="PopperContent",[GT,wN]=Tm(Im),jT=g.forwardRef(sn(function(t,n){var G,W,te,H,Q,J,se;const{__scopePopper:o,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:v="optimized",onPlaced:m,...x}=t,y=Pm(Im,o),[S,C]=g.useState(null),_=we(n,C),[w,T]=g.useState(null),E=Sm(w),P=(E==null?void 0:E.width)??0,A=(E==null?void 0:E.height)??0,R=r+(i!=="center"?"-"+i:""),B=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},V=Array.isArray(u)?u:[u],K=V.length>0,U={padding:B,boundary:V.filter(Am),altBoundary:K},{refs:Z,floatingStyles:X,placement:q,isPositioned:z,middlewareData:ee}=Bp({strategy:"fixed",placement:R,whileElementsMounted:sn((...re)=>Fp(...re,{animationFrame:v==="always"}),"whileElementsMounted"),elements:{reference:y.anchor},middleware:[Gp({mainAxis:s+A,alignmentAxis:a}),c&&jp({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?Up():void 0,...U}),c&&Wp({...U}),qp({...U,apply:sn(({elements:re,rects:be,availableWidth:xe,availableHeight:Nt})=>{const{width:Xe,height:Ye}=be.reference,Me=re.floating.style;Me.setProperty("--radix-popper-available-width",`${xe}px`),Me.setProperty("--radix-popper-available-height",`${Nt}px`),Me.setProperty("--radix-popper-anchor-width",`${Xe}px`),Me.setProperty("--radix-popper-anchor-height",`${Ye}px`)},"apply")}),w&&Xp({element:w,padding:l}),UT({arrowWidth:P,arrowHeight:A}),p&&Kp({strategy:"referenceHidden",...U,boundary:K?U.boundary:void 0})]}),F=y.setPlacementState;ke(()=>(F(q),()=>{F(void 0)}),[q,F]);const[Y,O]=Ns(q),I=At(m);ke(()=>{z&&(I==null||I())},[z,I]);const k=(G=ee.arrow)==null?void 0:G.x,M=(W=ee.arrow)==null?void 0:W.y,L=((te=ee.arrow)==null?void 0:te.centerOffset)!==0,[N,$]=g.useState();return ke(()=>{S&&$(window.getComputedStyle(S).zIndex)},[S]),h.jsx("div",{ref:Z.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:z?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:N,"--radix-popper-transform-origin":[(H=ee.transformOrigin)==null?void 0:H.x,(Q=ee.transformOrigin)==null?void 0:Q.y].join(" "),...((J=ee.hide)==null?void 0:J.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:h.jsx(GT,{scope:o,placedSide:Y,placedAlign:O,onArrowChange:T,arrowX:k,arrowY:M,shouldHideArrow:L,children:h.jsx(Te.div,{"data-side":Y,"data-align":O,...x,ref:_,style:{...x.style,animation:z?(se=x.style)==null?void 0:se.animation:"none"}})})})},"PopperContent"));function Am(e){return e!==null}sn(Am,"isNotNull");var UT=sn(e=>({name:"transformOrigin",options:e,fn(t){var x,y,S;const{placement:n,rects:o,middlewareData:r}=t,i=((x=r.arrow)==null?void 0:x.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,u]=Ns(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((y=r.arrow)==null?void 0:y.x)??0)+a/2,p=(((S=r.arrow)==null?void 0:S.y)??0)+l/2;let v="",m="";return c==="bottom"?(v=i?d:`${f}px`,m=`${-l}px`):c==="top"?(v=i?d:`${f}px`,m=`${o.floating.height+l}px`):c==="right"?(v=`${-l}px`,m=i?d:`${p}px`):c==="left"&&(v=`${o.floating.width+l}px`,m=i?d:`${p}px`),{data:{x:v,y:m}}}}),"transformOrigin");function Ns(e){const[t,n="center"]=e.split("-");return[t,n]}sn(Ns,"getSideAndAlignFromPlacement");var WT=VT,qT=BT,KT=jT,XT=Object.defineProperty,YT=(e,t)=>XT(e,"name",{value:t,configurable:!0}),ZT=g.forwardRef(YT(function(t,n){var l;const{container:o,...r}=t,[s,i]=g.useState(!1);ke(()=>i(!0),[]);const a=o||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?mn.createPortal(h.jsx(Te.div,{...r,ref:n}),a):null},"Portal")),JT=Object.defineProperty,Wt=(e,t)=>JT(e,"name",{value:t,configurable:!0});function Om(e,t){return g.useReducer((n,o)=>t[n][o]??n,e)}Wt(Om,"useStateMachine");var QT=Wt(e=>{const{present:t,children:n}=e,o=Dm(t),r=typeof n=="function"?n({present:o.isPresent}):g.Children.only(n),s=Nm(o.ref,km(r));return typeof n=="function"||o.isPresent?g.cloneElement(r,{ref:s}):null},"Presence");function Dm(e){const[t,n]=g.useState(),o=g.useRef(null),r=g.useRef(e),s=g.useRef("none"),i=g.useRef(void 0),a=e?"mounted":"unmounted",[l,c]=Om(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{l==="mounted"?(s.current=i.current??xo(o.current),i.current=void 0):s.current="none"},[l]),ke(()=>{const u=o.current,d=r.current;if(d!==e){const p=s.current,v=xo(u);e?(i.current=v,c("MOUNT")):v==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&p!==v?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),ke(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=Wt(v=>{const x=xo(o.current).includes(CSS.escape(v.animationName));if(v.target===t&&x&&(c("ANIMATION_END"),!r.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},"handleAnimationEnd"),p=Wt(v=>{v.target===t&&(s.current=xo(o.current))},"handleAnimationStart");return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:g.useCallback(u=>{if(u){const d=getComputedStyle(u);o.current=d,i.current=xo(d)}else o.current=null;n(u)},[])}}Wt(Dm,"usePresence");function Fl(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Wt(Fl,"setRef");function Nm(...e){const t=g.useRef(e);return t.current=e,g.useCallback(n=>{const o=t.current;let r=!1;const s=o.map(i=>{const a=Fl(i,n);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<s.length;i++){const a=s[i];typeof a=="function"?a():Fl(o[i],null)}}},[])}Wt(Nm,"useStableComposedRefs");function xo(e){return(e==null?void 0:e.animationName)||"none"}Wt(xo,"getAnimationName");function km(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Wt(km,"getElementRef");var eE=Object.defineProperty,tE=(e,t)=>eE(e,"name",{value:t,configurable:!0}),$m=g[" useEffectEvent ".trim().toString()],Mm=g[" useInsertionEffect ".trim().toString()];function Rm(e){if(typeof $m=="function")return $m(e);const t=g.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Mm=="function"?Mm(()=>{t.current=e}):ke(()=>{t.current=e}),g.useMemo(()=>((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)}),[])}tE(Rm,"useEffectEvent");var nE=Object.defineProperty,nr=(e,t)=>nE(e,"name",{value:t,configurable:!0}),oE=g[" useInsertionEffect ".trim().toString()]||ke;function zl({prop:e,defaultProp:t,onChange:n=nr(()=>{},"onChange"),caller:o}){const[r,s,i]=Lm({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:r,c=g.useCallback(u=>{var d;if(a){const f=Fm(u)?u(e):u;f!==e&&((d=i.current)==null||d.call(i,f))}else s(u)},[a,e,s,i]);return[l,c]}nr(zl,"useControllableState");function Lm({defaultProp:e,onChange:t}){const[n,o]=g.useState(e),r=g.useRef(n),s=g.useRef(t);return oE(()=>{s.current=t},[t]),g.useEffect(()=>{var i;r.current!==n&&((i=s.current)==null||i.call(s,n),r.current=n)},[n,r]),[n,o,s]}nr(Lm,"useUncontrolledState");function Fm(e){return typeof e=="function"}nr(Fm,"isFunction");var zm=Symbol("RADIX:SYNC_STATE");function rE(e,t,n,o){const{prop:r,defaultProp:s,onChange:i,caller:a}=t,l=r!==void 0,c=Rm(i),u=[{...n,state:s}];o&&u.push(o);const[d,f]=g.useReducer((x,y)=>{if(y.type===zm)return{...x,state:y.state};const S=e(x,y);return l&&!Object.is(S.state,x.state)&&c(S.state),S},...u),p=d.state,v=g.useRef(p);g.useEffect(()=>{v.current!==p&&(v.current=p,l||c(p))},[p,v,l]);const m=g.useMemo(()=>r!==void 0?{...d,state:r}:d,[d,r]);return g.useEffect(()=>{l&&!Object.is(r,d.state)&&f({type:zm,state:r})},[r,d.state,l]),[m,f]}nr(rE,"useControllableStateReducer");var sE=Object.defineProperty,iE=(e,t)=>sE(e,"name",{value:t,configurable:!0});function Vm(e){const t=g.useRef({value:e,previous:e});return g.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}iE(Vm,"usePrevious");var aE=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),lE=Object.defineProperty,ge=(e,t)=>lE(e,"name",{value:t,configurable:!0}),cE=[" ","Enter","ArrowUp","ArrowDown"],uE=[" ","Enter"],bo="Select",[ks,$s,dE]=rm(bo),[Rn,SN]=eo(bo,[dE,Em]),Vl=Em(),[fE,an]=Rn(bo),[pE,gE]=Rn(bo);function Hm(e){const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:s,value:i,defaultValue:a,onValueChange:l,dir:c,name:u,autoComplete:d,disabled:f,required:p,form:v,internal_do_not_use_render:m}=e,x=Vl(t),[y,S]=g.useState(null),[C,_]=g.useState(null),[w,T]=g.useState(!1),E=um(c),[P,A]=zl({prop:o,defaultProp:r??!1,onChange:s,caller:bo}),[R,B]=zl({prop:i,defaultProp:a,onChange:l,caller:bo}),V=g.useRef(null),K=g.useRef(R);g.useEffect(()=>{const O=v?y==null?void 0:y.ownerDocument.getElementById(v):y==null?void 0:y.form;if(O instanceof HTMLFormElement){const I=ge(()=>B(K.current),"reset");return O.addEventListener("reset",I),()=>O.removeEventListener("reset",I)}},[v,y,B]);const U=y?!!v||!!y.closest("form"):!0,[Z,X]=g.useState(new Set),q=Ds(),z=Array.from(Z).map(O=>O.props.value).join(";"),ee=g.useCallback(O=>{X(I=>new Set(I).add(O))},[]),F=g.useCallback(O=>{X(I=>{const k=new Set(I);return k.delete(O),k})},[]),Y={required:p,trigger:y,onTriggerChange:S,valueNode:C,onValueNodeChange:_,valueNodeHasChildren:w,onValueNodeHasChildrenChange:T,contentId:q,value:R,onValueChange:B,open:P,onOpenChange:A,dir:E,triggerPointerDownPosRef:V,disabled:f,name:u,autoComplete:d,form:v,nativeOptions:Z,nativeSelectKey:z,isFormControl:U};return h.jsx(WT,{...x,children:h.jsx(fE,{scope:t,...Y,children:h.jsx(ks.Provider,{scope:t,children:h.jsx(pE,{scope:t,onNativeOptionAdd:ee,onNativeOptionRemove:F,children:Xm(m)?m(Y):n})})})})}ge(Hm,"SelectProvider");var hE=ge(e=>{const{__scopeSelect:t,children:n,...o}=e;return h.jsx(Hm,{__scopeSelect:t,...o,internal_do_not_use_render:({isFormControl:r})=>h.jsxs(h.Fragment,{children:[n,r?h.jsx(qE,{__scopeSelect:t}):null]})})},"Select"),mE="SelectTrigger",vE=g.forwardRef(ge(function(t,n){const{__scopeSelect:o,disabled:r=!1,...s}=t,i=Vl(o),a=an(mE,o),l=a.disabled||r,c=we(n,a.onTriggerChange),u=$s(o),d=g.useRef("touch"),[f,p,v]=Gl(x=>{const y=u().filter(_=>!_.disabled),S=y.find(_=>_.value===a.value),C=jl(y,x,S);C!==void 0&&a.onValueChange(C.value)}),m=ge(x=>{l||(a.onOpenChange(!0),v()),x&&(a.triggerPointerDownPosRef.current={x:Math.round(x.pageX),y:Math.round(x.pageY)})},"handleOpen");return h.jsx(qT,{asChild:!0,...i,children:h.jsx(Te.button,{type:"button",role:"combobox","aria-controls":a.open?a.contentId:void 0,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":or(a.value)?"":void 0,...s,ref:c,onClick:Se(s.onClick,x=>{x.currentTarget.focus(),d.current!=="mouse"&&m(x)}),onPointerDown:Se(s.onPointerDown,x=>{d.current=x.pointerType;const y=x.target;y.hasPointerCapture(x.pointerId)&&y.releasePointerCapture(x.pointerId),x.button===0&&x.ctrlKey===!1&&x.pointerType==="mouse"&&(m(x),x.preventDefault())}),onKeyDown:Se(s.onKeyDown,x=>{const y=f.current!=="";!(x.ctrlKey||x.altKey||x.metaKey)&&x.key.length===1&&p(x.key),!(y&&x.key===" ")&&cE.includes(x.key)&&(m(),x.preventDefault())})})})},"SelectTrigger")),xE="SelectValue",bE=g.forwardRef(ge(function(t,n){const{__scopeSelect:o,className:r,style:s,children:i,placeholder:a="",...l}=t,c=an(xE,o),{onValueNodeHasChildrenChange:u}=c,d=i!==void 0,f=we(n,c.onValueNodeChange);ke(()=>{u(d)},[u,d]);const p=or(c.value);return h.jsx(Te.span,{...l,asChild:p?!1:l.asChild,ref:f,style:{pointerEvents:"none"},children:h.jsx(g.Fragment,{children:p?a:i},p?"placeholder":"value")})},"SelectValue")),yE=g.forwardRef(ge(function(t,n){const{__scopeSelect:o,children:r,...s}=t;return h.jsx(Te.span,{"aria-hidden":!0,...s,ref:n,children:r||"▼"})},"SelectIcon")),CE="SelectPortal",[wE,SE]=Rn(CE,{forceMount:void 0}),_E=ge(e=>{const{__scopeSelect:t,forceMount:n,...o}=e;return h.jsx(wE,{scope:e.__scopeSelect,forceMount:n,children:h.jsx(ZT,{asChild:!0,...o})})},"SelectPortal"),Ln="SelectContent",TE=g.forwardRef(ge(function(t,n){const o=SE(Ln,t.__scopeSelect),{forceMount:r=o.forceMount,...s}=t,i=an(Ln,t.__scopeSelect),[a,l]=g.useState();return ke(()=>{l(new DocumentFragment)},[]),h.jsx(QT,{present:r||i.open,children:({present:c})=>c?h.jsx(IE,{...s,ref:n}):h.jsx(EE,{...s,fragment:a})})},"SelectContent")),EE=g.forwardRef(ge(function(t,n){const{__scopeSelect:o,children:r,fragment:s}=t;return s?mn.createPortal(h.jsx(Bm,{scope:o,children:h.jsx(ks.Slot,{scope:o,children:h.jsx("div",{ref:n,children:r})})}),s):null},"SelectContentFragment")),xt=10,[Bm,Fn]=Rn(Ln),PE=In("SelectContent.RemoveScroll"),IE=g.forwardRef(ge(function(t,n){const{__scopeSelect:o}=t,{position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:a,side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:v,sticky:m,hideWhenDetached:x,avoidCollisions:y,...S}=t,C=an(Ln,o),[_,w]=g.useState(null),[T,E]=g.useState(null),P=we(n,w),[A,R]=g.useState(null),[B,V]=g.useState(null),K=$s(o),[U,Z]=g.useState(!1),X=g.useRef(!1);g.useEffect(()=>{if(_)return Ca(_)},[_]),Dl();const q=g.useCallback($=>{const[G,...W]=K().map(Q=>Q.ref.current),[te]=W.slice(-1),H=document.activeElement;for(const Q of $)if(Q===H||(Q==null||Q.scrollIntoView({block:"nearest"}),Q===G&&T&&(T.scrollTop=0),Q===te&&T&&(T.scrollTop=T.scrollHeight),Q==null||Q.focus(),document.activeElement!==H))return},[K,T]),z=g.useCallback(()=>q([A,_]),[q,A,_]);g.useEffect(()=>{U&&z()},[U,z]);const{onOpenChange:ee,triggerPointerDownPosRef:F}=C;g.useEffect(()=>{if(_){let $={x:0,y:0};const G=ge(te=>{var H,Q;$={x:Math.abs(Math.round(te.pageX)-(((H=F.current)==null?void 0:H.x)??0)),y:Math.abs(Math.round(te.pageY)-(((Q=F.current)==null?void 0:Q.y)??0))}},"handlePointerMove"),W=ge(te=>{$.x<=10&&$.y<=10?te.preventDefault():te.composedPath().includes(_)||ee(!1),document.removeEventListener("pointermove",G),F.current=null},"handlePointerUp");return F.current!==null&&(document.addEventListener("pointermove",G),document.addEventListener("pointerup",W,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",G),document.removeEventListener("pointerup",W,{capture:!0})}}},[_,ee,F]),g.useEffect(()=>{const $=ge(()=>ee(!1),"close");return window.addEventListener("blur",$),window.addEventListener("resize",$),()=>{window.removeEventListener("blur",$),window.removeEventListener("resize",$)}},[ee]);const[Y,O]=Gl($=>{const G=K().filter(H=>!H.disabled),W=G.find(H=>H.ref.current===document.activeElement),te=jl(G,$,W);te&&setTimeout(()=>{var H;return(H=te.ref.current)==null?void 0:H.focus()})}),I=g.useCallback(($,G,W)=>{const te=!X.current&&!W;(C.value!==void 0&&C.value===G||te)&&(R($),te&&(X.current=!0))},[C.value]),k=g.useCallback(()=>_==null?void 0:_.focus(),[_]),M=g.useCallback(($,G,W)=>{const te=!X.current&&!W;(C.value!==void 0&&C.value===G||te)&&V($)},[C.value]),L=r==="popper"?Gm:AE,N=L===Gm?{side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:v,sticky:m,hideWhenDetached:x,avoidCollisions:y}:{};return h.jsx(Bm,{scope:o,content:_,viewport:T,onViewportChange:E,itemRefCallback:I,selectedItem:A,onItemLeave:k,itemTextRefCallback:M,focusSelectedItem:z,selectedItemText:B,position:r,isPositioned:U,searchRef:Y,children:h.jsx(Jr,{as:PE,allowPinchZoom:!0,children:h.jsx(DT,{asChild:!0,trapped:C.open,onMountAutoFocus:$=>{$.preventDefault()},onUnmountAutoFocus:Se(s,$=>{var G;(G=C.trigger)==null||G.focus({preventScroll:!0}),$.preventDefault()}),children:h.jsx(TT,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:$=>$.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:h.jsx(L,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:$=>$.preventDefault(),...S,...N,onPlaced:()=>Z(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:Se(S.onKeyDown,$=>{const G=$.ctrlKey||$.altKey||$.metaKey;if($.key==="Tab"&&$.preventDefault(),!G&&$.key.length===1&&O($.key),["ArrowUp","ArrowDown","Home","End"].includes($.key)){let te=K().filter(H=>!H.disabled).map(H=>H.ref.current);if(["ArrowUp","End"].includes($.key)&&(te=te.slice().reverse()),["ArrowUp","ArrowDown"].includes($.key)){const H=$.target,Q=te.indexOf(H);te=te.slice(Q+1)}setTimeout(()=>q(te)),$.preventDefault()}})})})})})})},"SelectContentImpl")),AE=g.forwardRef(ge(function(t,n){const{__scopeSelect:o,onPlaced:r,...s}=t,i=an(Ln,o),a=Fn(Ln,o),[l,c]=g.useState(null),[u,d]=g.useState(null),f=we(n,d),p=$s(o),v=g.useRef(!1),m=g.useRef(!0),{viewport:x,selectedItem:y,selectedItemText:S,focusSelectedItem:C}=a,_=g.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&u&&x&&y&&S){const P=i.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),R=i.valueNode.getBoundingClientRect(),B=S.getBoundingClientRect();if(i.dir!=="rtl"){const H=B.left-A.left,Q=R.left-H,J=P.left-Q,se=P.width+J,re=Math.max(se,A.width),be=window.innerWidth-xt,xe=wl(Q,[xt,Math.max(xt,be-re)]);l.style.minWidth=se+"px",l.style.left=xe+"px"}else{const H=A.right-B.right,Q=window.innerWidth-R.right-H,J=window.innerWidth-P.right-Q,se=P.width+J,re=Math.max(se,A.width),be=window.innerWidth-xt,xe=wl(Q,[xt,Math.max(xt,be-re)]);l.style.minWidth=se+"px",l.style.right=xe+"px"}const V=p(),K=window.innerHeight-xt*2,U=x.scrollHeight,Z=window.getComputedStyle(u),X=parseInt(Z.borderTopWidth,10),q=parseInt(Z.paddingTop,10),z=parseInt(Z.borderBottomWidth,10),ee=parseInt(Z.paddingBottom,10),F=X+q+U+ee+z,Y=Math.min(y.offsetHeight*5,F),O=window.getComputedStyle(x),I=parseInt(O.paddingTop,10),k=parseInt(O.paddingBottom,10),M=P.top+P.height/2-xt,L=K-M,N=y.offsetHeight/2,$=y.offsetTop+N,G=X+q+$,W=F-G;if(G<=M){const H=V.length>0&&y===V[V.length-1].ref.current;l.style.bottom="0px";const Q=u.clientHeight-x.offsetTop-x.offsetHeight,J=Math.max(L,N+(H?k:0)+Q+z),se=G+J;l.style.height=se+"px"}else{const H=V.length>0&&y===V[0].ref.current;l.style.top="0px";const J=Math.max(M,X+x.offsetTop+(H?I:0)+N)+W;l.style.height=J+"px",x.scrollTop=G-M+x.offsetTop}l.style.margin=`${xt}px 0`,l.style.minHeight=Y+"px",l.style.maxHeight=K+"px",r==null||r(),requestAnimationFrame(()=>v.current=!0)}},[p,i.trigger,i.valueNode,l,u,x,y,S,i.dir,r]);ke(()=>_(),[_]);const[w,T]=g.useState();ke(()=>{u&&T(window.getComputedStyle(u).zIndex)},[u]);const E=g.useCallback(P=>{P&&m.current===!0&&(_(),C==null||C(),m.current=!1)},[_,C]);return h.jsx(OE,{scope:o,contentWrapper:l,shouldExpandOnScrollRef:v,onScrollButtonChange:E,children:h.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:h.jsx(Te.div,{...s,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})},"SelectItemAlignedPosition")),Gm=g.forwardRef(ge(function(t,n){const{__scopeSelect:o,align:r="start",collisionPadding:s=xt,...i}=t,a=Vl(o);return h.jsx(KT,{...a,...i,ref:n,align:r,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[OE,Hl]=Rn(Ln,{}),jm="SelectViewport",DE=g.forwardRef(ge(function(t,n){const{__scopeSelect:o,nonce:r,...s}=t,i=Fn(jm,o),a=Hl(jm,o),l=we(n,i.onViewportChange),c=g.useRef(0);return h.jsxs(h.Fragment,{children:[h.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),h.jsx(ks.Slot,{scope:o,children:h.jsx(Te.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:Se(s.onScroll,u=>{const d=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:p}=a;if(p!=null&&p.current&&f){const v=Math.abs(c.current-d.scrollTop);if(v>0){const m=window.innerHeight-xt*2,x=parseFloat(f.style.minHeight),y=parseFloat(f.style.height),S=Math.max(x,y);if(S<m){const C=S+v,_=Math.min(m,C),w=C-_;f.style.height=_+"px",f.style.bottom==="0px"&&(d.scrollTop=w>0?w:0,f.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})},"SelectViewport")),NE="SelectGroup",[kE,$E]=Rn(NE),ME=g.forwardRef(ge(function(t,n){const{__scopeSelect:o,...r}=t,s=Ds();return h.jsx(kE,{scope:o,id:s,children:h.jsx(Te.div,{role:"group","aria-labelledby":s,...r,ref:n})})},"SelectGroup")),RE="SelectLabel",LE=g.forwardRef(ge(function(t,n){const{__scopeSelect:o,...r}=t,s=$E(RE,o);return h.jsx(Te.div,{id:s.id,...r,ref:n})},"SelectLabel")),Bl="SelectItem",[FE,Um]=Rn(Bl),zE=g.forwardRef(ge(function(t,n){const{__scopeSelect:o,value:r,disabled:s=!1,textValue:i,...a}=t,l=an(Bl,o),c=Fn(Bl,o),u=l.value===r,[d,f]=g.useState(i??""),[p,v]=g.useState(!1),m=At(_=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,_,r,s)}),x=we(n,m),y=Ds(),S=g.useRef("touch"),C=ge(()=>{s||(l.onValueChange(r),l.onOpenChange(!1))},"handleSelect");return h.jsx(FE,{scope:o,value:r,disabled:s,textId:y,isSelected:u,onItemTextChange:g.useCallback(_=>{f(w=>w||((_==null?void 0:_.textContent)??"").trim())},[]),children:h.jsx(ks.ItemSlot,{scope:o,value:r,disabled:s,textValue:d,children:h.jsx(Te.div,{role:"option","aria-labelledby":y,"data-highlighted":p?"":void 0,"aria-selected":u&&p,"data-state":u?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...a,ref:x,onFocus:Se(a.onFocus,()=>v(!0)),onBlur:Se(a.onBlur,()=>v(!1)),onClick:Se(a.onClick,()=>{S.current!=="mouse"&&C()}),onPointerUp:Se(a.onPointerUp,()=>{S.current==="mouse"&&C()}),onPointerDown:Se(a.onPointerDown,_=>{S.current=_.pointerType}),onPointerMove:Se(a.onPointerMove,_=>{var w;S.current=_.pointerType,s?(w=c.onItemLeave)==null||w.call(c):S.current==="mouse"&&_.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Se(a.onPointerLeave,_=>{var w;_.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:Se(a.onKeyDown,_=>{var T;s||_.target!==_.currentTarget||((T=c.searchRef)==null?void 0:T.current)!==""&&_.key===" "||(uE.includes(_.key)&&C(),_.key===" "&&_.preventDefault())})})})})},"SelectItem")),Ms="SelectItemText",VE=g.forwardRef(ge(function(t,n){const{__scopeSelect:o,className:r,style:s,...i}=t,a=an(Ms,o),l=Fn(Ms,o),c=Um(Ms,o),u=gE(Ms,o),[d,f]=g.useState(null),p=At(C=>{var _;return(_=l.itemTextRefCallback)==null?void 0:_.call(l,C,c.value,c.disabled)}),v=we(n,f,c.onItemTextChange,p),m=d==null?void 0:d.textContent,x=g.useMemo(()=>h.jsx("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:y,onNativeOptionRemove:S}=u;return ke(()=>(y(x),()=>S(x)),[y,S,x]),h.jsxs(h.Fragment,{children:[h.jsx(Te.span,{id:c.textId,...i,ref:v}),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren&&!or(a.value)?mn.createPortal(i.children,a.valueNode):null]})},"SelectItemText")),HE="SelectItemIndicator",BE=g.forwardRef(ge(function(t,n){const{__scopeSelect:o,...r}=t;return Um(HE,o).isSelected?h.jsx(Te.span,{"aria-hidden":!0,...r,ref:n}):null},"SelectItemIndicator")),Wm="SelectScrollUpButton",GE=g.forwardRef(ge(function(t,n){const o=Fn(Wm,t.__scopeSelect),r=Hl(Wm,t.__scopeSelect),[s,i]=g.useState(!1),a=we(n,r.onScrollButtonChange);return ke(()=>{if(o.viewport&&o.isPositioned){let l=function(){const u=c.scrollTop>0;i(u)};ge(l,"handleScroll");const c=o.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[o.viewport,o.isPositioned]),s?h.jsx(Km,{...t,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=o;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null},"SelectScrollUpButton")),qm="SelectScrollDownButton",jE=g.forwardRef(ge(function(t,n){const o=Fn(qm,t.__scopeSelect),r=Hl(qm,t.__scopeSelect),[s,i]=g.useState(!1),a=we(n,r.onScrollButtonChange);return ke(()=>{if(o.viewport&&o.isPositioned){let l=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<u;i(d)};ge(l,"handleScroll");const c=o.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[o.viewport,o.isPositioned]),s?h.jsx(Km,{...t,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=o;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null},"SelectScrollDownButton")),Km=g.forwardRef(ge(function(t,n){const{__scopeSelect:o,onAutoScroll:r,...s}=t,i=Fn("SelectScrollButton",o),a=g.useRef(null),l=$s(o),c=g.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return g.useEffect(()=>()=>c(),[c]),ke(()=>{var d;const u=l().find(f=>f.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[l]),h.jsx(Te.div,{"aria-hidden":!0,...s,ref:n,style:{flexShrink:0,...s.style},onPointerDown:Se(s.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:Se(s.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:Se(s.onPointerLeave,()=>{c()})})},"SelectScrollButtonImpl")),UE=g.forwardRef(ge(function(t,n){const{__scopeSelect:o,...r}=t;return h.jsx(Te.div,{"aria-hidden":!0,...r,ref:n})},"SelectSeparator")),WE="SelectBubbleInput",qE=g.forwardRef(ge(function({__scopeSelect:t,...n},o){const r=an(WE,t),{value:s,onValueChange:i,required:a,disabled:l,name:c,autoComplete:u,form:d}=r,{nativeOptions:f,nativeSelectKey:p}=r,v=g.useRef(null),m=we(o,v),x=s??"",y=Vm(x),S=Array.from(f).some(C=>(C.props.value??"")==="");return g.useEffect(()=>{const C=v.current;if(!C)return;const _=window.HTMLSelectElement.prototype,T=Object.getOwnPropertyDescriptor(_,"value").set;if(y!==x&&T){const E=new Event("change",{bubbles:!0});T.call(C,x),C.dispatchEvent(E)}},[y,x]),h.jsxs(Te.select,{"aria-hidden":!0,required:a,tabIndex:-1,name:c,autoComplete:u,disabled:l,form:d,onChange:C=>i(C.target.value),...n,style:{...aE,...n.style},ref:m,defaultValue:x,children:[or(s)&&!S?h.jsx("option",{value:""}):null,Array.from(f)]},p)},"SelectBubbleInput"));function Xm(e){return typeof e=="function"}ge(Xm,"isFunction");function or(e){return e===""||e===void 0}ge(or,"shouldShowPlaceholder");function Gl(e){const t=At(e),n=g.useRef(""),o=g.useRef(0),r=g.useCallback(i=>{const a=n.current+i;t(a),ge((function l(c){n.current=c,window.clearTimeout(o.current),c!==""&&(o.current=window.setTimeout(()=>l(""),1e3))}),"updateSearch")(a)},[t]),s=g.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,s]}ge(Gl,"useTypeaheadSearch");function jl(e,t,n){const r=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=Ym(e,Math.max(s,0));r.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}ge(jl,"findNextItem");function Ym(e,t){return e.map((n,o)=>e[(t+o)%e.length])}ge(Ym,"wrapArray");const KE={oxSelect:"_oxSelect_usfm0_2"},Zm=b.createContext(null);function Jm(){const e=b.useContext(Zm);if(!e)throw new Error("Select sub-components must be used within <Select>.");return e}const Qm=b.forwardRef(({className:e,value:t,defaultValue:n,onValueChange:o,children:r,dataTestid:s,...i},a)=>{const[l,c]=b.useState(n),[u,d]=b.useState({}),f=t??l,p=b.useCallback((x,y)=>{d(S=>S[x]===y?S:{...S,[x]:y})},[]),v=b.useCallback(x=>{t===void 0&&c(x),o==null||o(x)},[t,o]),m=b.useMemo(()=>({value:f,labels:u,registerLabel:p}),[f,u,p]);return h.jsx(Zm.Provider,{value:m,children:h.jsx(hE,{value:f??"",onValueChange:v,...i,children:h.jsx("div",{ref:a,"data-slot":"select","data-testid":s,className:j(KE.oxSelect,e),children:r})})})});Qm.displayName="OxSelect";const Rs={oxSelectTrigger:"_oxSelectTrigger_z7vvo_2",oxSelectTriggerValue:"_oxSelectTriggerValue_z7vvo_2",oxSelectTriggerIcon:"_oxSelectTriggerIcon_z7vvo_2",oxSelectTriggerGlyph:"_oxSelectTriggerGlyph_z7vvo_2"},ev=b.forwardRef(({className:e,placeholder:t="",disabled:n=!1,icon:o,children:r,...s},i)=>{const{value:a,labels:l}=Jm(),c=a===void 0?"":l[a]??"";return h.jsxs(vE,{ref:i,"data-slot":"controller",className:j(Rs.oxSelectTrigger,e),disabled:n,...s,children:[h.jsx(bE,{className:Rs.oxSelectTriggerValue,placeholder:t,children:r?r({selectedLabel:c,value:a}):void 0}),h.jsx(yE,{asChild:!0,children:h.jsx("span",{"data-slot":"icon",className:Rs.oxSelectTriggerIcon,children:o??h.jsx(Tn,{className:Rs.oxSelectTriggerGlyph})})})]})});ev.displayName="OxSelectTrigger";const tv=b.forwardRef(({children:e,side:t="bottom",sideOffset:n=4,align:o="start",...r},s)=>h.jsx(_E,{children:h.jsxs(TE,{ref:s,"data-slot":"select-content",side:t,sideOffset:n,align:o,position:"popper",...r,children:[h.jsx(GE,{className:"ox-select-scroll-button",children:h.jsx(hd,{className:"ox-select-scroll-icon"})}),h.jsx(DE,{className:"ox-select-viewport",children:e}),h.jsx(jE,{className:"ox-select-scroll-button",children:h.jsx(Tn,{className:"ox-select-scroll-icon"})})]})}));tv.displayName="OxSelectContent";const Ul={oxSelectItem:"_oxSelectItem_1mnbx_2",oxSelectItemIndicator:"_oxSelectItemIndicator_1mnbx_2",oxSelectCheckIcon:"_oxSelectCheckIcon_1mnbx_2"},nv=b.forwardRef(({className:e,value:t,disabled:n=!1,children:o,...r},s)=>{const{registerLabel:i}=Jm(),a=b.useRef(null);return b.useEffect(()=>{var l;i(t,((l=a.current)==null?void 0:l.textContent)??"")},[t,o,i]),h.jsxs(zE,{ref:s,"data-slot":"select-item",className:j(Ul.oxSelectItem,e),value:t,disabled:n,...r,children:[h.jsx(VE,{ref:a,children:o}),h.jsx(BE,{className:Ul.oxSelectItemIndicator,children:h.jsx(Ri,{className:Ul.oxSelectCheckIcon})})]})});nv.displayName="OxSelectItem";const XE={oxSelectGroupLabel:"_oxSelectGroupLabel_5zygj_2"},ov=b.forwardRef(({className:e,label:t,children:n,...o},r)=>h.jsxs(ME,{ref:r,"data-slot":"select-group",className:j(e),...o,children:[t?h.jsx(LE,{className:XE.oxSelectGroupLabel,children:t}):null,n]}));ov.displayName="OxSelectGroup";const YE={oxSelectSeparator:"_oxSelectSeparator_sl48w_2"},rv=b.forwardRef(({className:e,...t},n)=>h.jsx(UE,{ref:n,"data-slot":"select-separator",className:j(YE.oxSelectSeparator,e),...t}));rv.displayName="OxSelectSeparator";const ln={oxPsnSwitch:"_oxPsnSwitch_1qogm_2",oxPsnHandler:"_oxPsnHandler_1qogm_2",oxPsnRegular:"_oxPsnRegular_1qogm_2",oxPsnSmall:"_oxPsnSmall_1qogm_2",oxPsnOn:"_oxPsnOn_1qogm_2",oxPsnOff:"_oxPsnOff_1qogm_2",oxPsnDisabled:"_oxPsnDisabled_1qogm_2",oxPsnEnabled:"_oxPsnEnabled_1qogm_2"},sv=b.forwardRef(({className:e,checked:t=!1,size:n="small",disabled:o=!1,onCheckedChange:r,children:s,...i},a)=>{function l(){o||r==null||r(!t)}return h.jsxs("div",{ref:a,"data-slot":"controller",className:j(ln.oxPsnSwitch,t?ln.oxPsnOn:ln.oxPsnOff,o?ln.oxPsnDisabled:ln.oxPsnEnabled,n==="regular"?ln.oxPsnRegular:ln.oxPsnSmall,e),...i,children:[h.jsx("div",{className:ln.oxPsnHandler}),s,h.jsx("input",{type:"checkbox",checked:t,onChange:c=>{c.stopPropagation(),l()}})]})});sv.displayName="OxSwitch";const ZE=["small","regular"];var JE=Object.defineProperty,qt=(e,t)=>JE(e,"name",{value:t,configurable:!0}),Wl="Checkbox",[QE]=ct(Wl),[eP,ql]=QE(Wl);function iv(e){const{__scopeCheckbox:t,checked:n,children:o,defaultChecked:r,disabled:s,form:i,name:a,onCheckedChange:l,required:c,value:u="on",internal_do_not_use_render:d}=e,[f,p]=gt({prop:n,defaultProp:r??!1,onChange:l,caller:Wl}),[v,m]=g.useState(null),[x,y]=g.useState(null),S=g.useRef(!1),[C,_]=g.useReducer(E=>E+1,0),w=v?!!i||!!v.closest("form"):!0,T={checked:f,disabled:s,setChecked:p,control:v,setControl:m,name:a,form:i,value:u,hasConsumerStoppedPropagationRef:S,userInteractionCount:C,onUserInteraction:_,required:c,defaultChecked:Kt(r)?!1:r,isFormControl:w,bubbleInput:x,setBubbleInput:y};return h.jsx(eP,{scope:t,...T,children:av(d)?d(T):o})}qt(iv,"CheckboxProvider");var tP="CheckboxTrigger",nP=g.forwardRef(qt(function({__scopeCheckbox:t,onKeyDown:n,onClick:o,...r},s){const{control:i,value:a,disabled:l,checked:c,required:u,setControl:d,setChecked:f,hasConsumerStoppedPropagationRef:p,onUserInteraction:v,isFormControl:m,bubbleInput:x}=ql(tP,t),y=ye(s,d),S=g.useRef(c);return g.useEffect(()=>{const C=i==null?void 0:i.form;if(C){const _=qt(()=>f(S.current),"reset");return C.addEventListener("reset",_),()=>C.removeEventListener("reset",_)}},[i,f]),h.jsx(ce.button,{type:"button",role:"checkbox","aria-checked":Kt(c)?"mixed":c,"aria-required":u,"data-state":Kl(c),"data-disabled":l?"":void 0,disabled:l,value:a,...r,ref:y,onKeyDown:pe(n,C=>{C.key==="Enter"&&C.preventDefault()}),onClick:pe(o,C=>{v(),f(_=>Kt(_)?!0:!_),x&&m&&(p.current=C.isPropagationStopped(),p.current||C.stopPropagation())})})},"CheckboxTrigger")),oP=g.forwardRef(qt(function(t,n){const{__scopeCheckbox:o,name:r,checked:s,defaultChecked:i,required:a,disabled:l,value:c,onCheckedChange:u,form:d,...f}=t;return h.jsx(iv,{__scopeCheckbox:o,checked:s,defaultChecked:i,disabled:l,required:a,onCheckedChange:u,name:r,form:d,value:c,internal_do_not_use_render:({isFormControl:p})=>h.jsxs(h.Fragment,{children:[h.jsx(nP,{...f,ref:n,__scopeCheckbox:o}),p&&h.jsx(aP,{__scopeCheckbox:o})]})})},"Checkbox")),rP="CheckboxIndicator",sP=g.forwardRef(qt(function(t,n){const{__scopeCheckbox:o,forceMount:r,...s}=t,i=ql(rP,o);return h.jsx(ht,{present:r||Kt(i.checked)||i.checked===!0,children:h.jsx(ce.span,{"data-state":Kl(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:n,style:{pointerEvents:"none",...t.style}})})},"CheckboxIndicator")),iP="CheckboxBubbleInput",aP=g.forwardRef(qt(function({__scopeCheckbox:t,onClick:n,...o},r){const{control:s,hasConsumerStoppedPropagationRef:i,userInteractionCount:a,checked:l,defaultChecked:c,required:u,disabled:d,name:f,value:p,form:v,bubbleInput:m,setBubbleInput:x}=ql(iP,t),y=ye(r,x),S=Fa(s),C=g.useRef(!1),_=g.useRef(l),w=g.useRef(a);g.useEffect(()=>{const E=m;if(!E)return;const P=window.HTMLInputElement.prototype,R=Object.getOwnPropertyDescriptor(P,"checked").set,B=a!==w.current;w.current=a;const V=_.current!==l;_.current=l;const K=!(B&&i.current);if(V&&R){C.current=!B;const U=new Event("click",{bubbles:K});E.indeterminate=Kt(l),R.call(E,Kt(l)?!1:l),E.dispatchEvent(U),C.current=!1}},[m,l,i,a]);const T=g.useRef(Kt(l)?!1:l);return h.jsx(ce.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??T.current,required:u,disabled:d,name:f,value:p,form:v,...o,tabIndex:-1,ref:y,onClick:pe(n,E=>{C.current&&E.stopPropagation()}),style:{...o.style,...S,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function av(e){return typeof e=="function"}qt(av,"isFunction");function Kt(e){return e==="indeterminate"}qt(Kt,"isIndeterminate");function Kl(e){return Kt(e)?"indeterminate":e?"checked":"unchecked"}qt(Kl,"getState");const rr={oxCheckboxRoot:"_oxCheckboxRoot_zo75a_2",oxCheckboxIcon:"_oxCheckboxIcon_zo75a_2",oxCheckboxIndicator:"_oxCheckboxIndicator_zo75a_2",oxCheckboxRounded:"_oxCheckboxRounded_zo75a_2"},Ls=b.forwardRef(({className:e,variant:t="default",checked:n,...o},r)=>{const s=n==="indeterminate";return h.jsx(oP,{ref:r,"data-slot":"controller",checked:n,className:j(rr.oxCheckboxRoot,t==="rounded"&&rr.oxCheckboxRounded,e),...o,children:h.jsx(sP,{forceMount:s?!0:void 0,className:rr.oxCheckboxIndicator,children:s?h.jsx($b,{className:rr.oxCheckboxIcon}):h.jsx(Ri,{className:rr.oxCheckboxIcon})})})});Ls.displayName="OxCheckbox";var lP=Object.defineProperty,Le=(e,t)=>lP(e,"name",{value:t,configurable:!0}),lv="Radio",[cP,cv]=ct(lv),[uP,Fs]=cP(lv);function uv(e){const{__scopeRadio:t,checked:n=!1,children:o,disabled:r,form:s,name:i,onCheck:a,required:l,value:c="on",internal_do_not_use_render:u}=e,[d,f]=g.useState(null),[p,v]=g.useState(null),m=g.useRef(!1),[x,y]=g.useReducer(_=>_+1,0),S=d?!!s||!!d.closest("form"):!0,C={checked:n,disabled:r,required:l,name:i,form:s,value:c,control:d,setControl:f,hasConsumerStoppedPropagationRef:m,userInteractionCount:x,onUserInteraction:y,isFormControl:S,bubbleInput:p,setBubbleInput:v,onCheck:Le(()=>a==null?void 0:a(),"onCheck")};return h.jsx(uP,{scope:t,...C,children:dv(u)?u(C):o})}Le(uv,"RadioProvider");var dP="RadioTrigger",fP=g.forwardRef(Le(function({__scopeRadio:t,onClick:n,...o},r){const{checked:s,disabled:i,value:a,setControl:l,onCheck:c,hasConsumerStoppedPropagationRef:u,onUserInteraction:d,isFormControl:f,bubbleInput:p}=Fs(dP,t),v=ye(r,l);return h.jsx(ce.button,{type:"button",role:"radio","aria-checked":s,"data-state":Xl(s),"data-disabled":i?"":void 0,disabled:i,value:a,...o,ref:v,onClick:pe(n,m=>{s||(d(),c()),p&&f&&(u.current=m.isPropagationStopped(),u.current||m.stopPropagation())})})},"RadioTrigger")),pP="RadioIndicator",gP=g.forwardRef(Le(function(t,n){const{__scopeRadio:o,forceMount:r,...s}=t,i=Fs(pP,o);return h.jsx(ht,{present:r||i.checked,children:h.jsx(ce.span,{"data-state":Xl(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:n})})},"RadioIndicator")),hP="RadioBubbleInput",mP=g.forwardRef(Le(function({__scopeRadio:t,onClick:n,...o},r){const{control:s,checked:i,required:a,disabled:l,name:c,value:u,form:d,bubbleInput:f,setBubbleInput:p,hasConsumerStoppedPropagationRef:v,userInteractionCount:m}=Fs(hP,t),x=ye(r,p),y=Fa(s),S=g.useRef(!1),C=g.useRef(i),_=g.useRef(m);g.useEffect(()=>{const T=f;if(!T)return;const E=window.HTMLInputElement.prototype,A=Object.getOwnPropertyDescriptor(E,"checked").set,R=m!==_.current;_.current=m;const B=C.current!==i;C.current=i;const V=!(R&&v.current);if(B&&A){S.current=!R;const K=new Event("click",{bubbles:V});A.call(T,i),T.dispatchEvent(K),S.current=!1}},[f,i,v,m]);const w=g.useRef(i);return h.jsx(ce.input,{type:"radio","aria-hidden":!0,defaultChecked:w.current,required:a,disabled:l,name:c,value:u,form:d,...o,tabIndex:-1,ref:x,onClick:pe(n,T=>{S.current&&T.stopPropagation()}),style:{...o.style,...y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"RadioBubbleInput"));function dv(e){return typeof e=="function"}Le(dv,"isFunction");function Xl(e){return e?"checked":"unchecked"}Le(Xl,"getState");var vP=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Yl="RadioGroup",[xP]=ct(Yl,[Ss,cv]),fv=Ss(),zs=cv(),[bP,yP]=xP(Yl),CP=g.forwardRef(Le(function(t,n){const{__scopeRadioGroup:o,name:r,form:s,defaultValue:i,value:a,required:l=!1,disabled:c=!1,orientation:u,dir:d,loop:f=!0,onValueChange:p,...v}=t,m=fv(o),x=bs(d),[y,S]=gt({prop:a,defaultProp:i??null,onChange:p,caller:Yl}),[C,_]=g.useState(null),w=ye(n,_),T=g.useRef(y);return g.useEffect(()=>{const E=s?C==null?void 0:C.ownerDocument.getElementById(s):C==null?void 0:C.closest("form");if(E instanceof HTMLFormElement){const P=Le(()=>S(T.current),"reset");return E.addEventListener("reset",P),()=>E.removeEventListener("reset",P)}},[C,s,S]),h.jsx(bP,{scope:o,name:r,form:s,required:l,disabled:c,value:y,onValueChange:S,children:h.jsx(Gg,{asChild:!0,...m,orientation:u,dir:x,loop:f,children:h.jsx(ce.div,{role:"radiogroup","aria-required":l,"aria-orientation":u,"data-disabled":c?"":void 0,dir:x,...v,ref:w})})})},"RadioGroup")),wP="RadioGroupItemProvider",SP="RadioGroupItemTrigger";function pv(e){const{__scopeRadioGroup:t,value:n,disabled:o,children:r,internal_do_not_use_render:s}=e,i=yP(wP,t),a=zs(t),l=i.disabled||o;return h.jsx(uv,{...a,checked:i.value===n,disabled:l,required:i.required,name:i.name,form:i.form,value:n,onCheck:()=>i.onValueChange(n),internal_do_not_use_render:s,children:r})}Le(pv,"RadioGroupItemProvider");var _P=g.forwardRef(Le(function(t,n){const{__scopeRadioGroup:o,...r}=t,s=fv(o),i=zs(o),{checked:a,disabled:l}=Fs(SP,i.__scopeRadio),c=g.useRef(null),u=ye(n,c),d=g.useRef(!1);return g.useEffect(()=>{const f=Le(v=>{vP.includes(v.key)&&(d.current=!0)},"handleKeyDown"),p=Le(()=>d.current=!1,"handleKeyUp");return document.addEventListener("keydown",f),document.addEventListener("keyup",p),()=>{document.removeEventListener("keydown",f),document.removeEventListener("keyup",p)}},[]),h.jsx(jg,{asChild:!0,...s,focusable:!l,active:a,children:h.jsx(fP,{...i,...r,ref:u,onKeyDown:pe(r.onKeyDown,f=>{f.key==="Enter"&&f.preventDefault()}),onFocus:pe(r.onFocus,()=>{var f;d.current&&((f=c.current)==null||f.click())})})})},"RadioGroupItemTrigger")),TP=g.forwardRef(Le(function(t,n){const{__scopeRadioGroup:o,value:r,disabled:s,...i}=t;return h.jsx(pv,{__scopeRadioGroup:o,value:r,disabled:s,internal_do_not_use_render:({isFormControl:a})=>h.jsxs(h.Fragment,{children:[h.jsx(_P,{...i,ref:n,__scopeRadioGroup:o}),a&&h.jsx(EP,{__scopeRadioGroup:o})]})})},"RadioGroupItem")),EP=g.forwardRef(Le(function(t,n){const{__scopeRadioGroup:o,...r}=t,s=zs(o);return h.jsx(mP,{...s,...r,ref:n})},"RadioGroupItemBubbleInput")),PP=g.forwardRef(Le(function(t,n){const{__scopeRadioGroup:o,...r}=t,s=zs(o);return h.jsx(gP,{...s,...r,ref:n})},"RadioGroupIndicator"));const Zl={oxRadioRoot:"_oxRadioRoot_13eng_2",oxRadioDot:"_oxRadioDot_13eng_2",oxRadioIndicator:"_oxRadioIndicator_13eng_2"},gv=b.forwardRef(({className:e,...t},n)=>h.jsx(TP,{ref:n,"data-slot":"controller",className:j(Zl.oxRadioRoot,e),...t,children:h.jsx(PP,{className:Zl.oxRadioIndicator,children:h.jsx("span",{className:Zl.oxRadioDot})})}));gv.displayName="OxRadioButton";const Jl={oxRadioGroup:"_oxRadioGroup_1tk27_2",oxRadioGroupVertical:"_oxRadioGroupVertical_1tk27_2",oxRadioGroupHorizontal:"_oxRadioGroupHorizontal_1tk27_2"},hv=b.forwardRef(({className:e,orientation:t="vertical",...n},o)=>h.jsx(CP,{ref:o,"data-slot":"controller",orientation:t,className:j(Jl.oxRadioGroup,t==="horizontal"?Jl.oxRadioGroupHorizontal:Jl.oxRadioGroupVertical,e),...n}));hv.displayName="OxRadioGroup";const Ql={oxToggleGroup:"_oxToggleGroup_g360l_2",oxToggleGroupGapSm:"_oxToggleGroupGapSm_g360l_2",oxToggleGroupGapMd:"_oxToggleGroupGapMd_g360l_2",oxToggleGroupGapLg:"_oxToggleGroupGapLg_g360l_2",oxToggleGroupAlignStart:"_oxToggleGroupAlignStart_g360l_2",oxToggleGroupAlignCenter:"_oxToggleGroupAlignCenter_g360l_2"},mv=b.forwardRef(({className:e,align:t="start",gap:n="md",...o},r)=>h.jsx("div",{ref:r,"data-slot":"controller",className:j(Ql.oxToggleGroup,Ql[`toggleGroupAlign${t==="center"?"Center":"Start"}`],Ql[`toggleGroupGap${n==="sm"?"Sm":n==="lg"?"Lg":"Md"}`],e),...o}));mv.displayName="OxToggleGroup";const IP={oxToggleLabel:"_oxToggleLabel_c4wp0_2"},vv=b.forwardRef(({className:e,htmlFor:t,...n},o)=>h.jsx("label",{ref:o,htmlFor:t,"data-slot":"label",className:j(IP.oxToggleLabel,e),...n}));vv.displayName="OxToggleLabel";const xv={oxToggleDescription:"_oxToggleDescription_1itzn_2",oxToggleDescriptionXs:"_oxToggleDescriptionXs_1itzn_2",oxToggleDescriptionSm:"_oxToggleDescriptionSm_1itzn_2",oxToggleDescriptionBase:"_oxToggleDescriptionBase_1itzn_2"},bv=b.forwardRef(({className:e,size:t="sm",...n},o)=>h.jsx("span",{ref:o,"data-slot":"description",className:j(xv.oxToggleDescription,xv[`toggleDescription${t==="xs"?"Xs":t==="base"?"Base":"Sm"}`],e),...n}));bv.displayName="OxToggleDescription";const ue={oxTableRoot:"_oxTableRoot_1uiin_2",oxTableScrollWrapper:"_oxTableScrollWrapper_1uiin_2",oxTableScrollContainer:"_oxTableScrollContainer_1uiin_2",oxTableScrollContainerDraggable:"_oxTableScrollContainerDraggable_1uiin_2",oxTableScrollContainerDragging:"_oxTableScrollContainerDragging_1uiin_2",oxTableScrollWrapperShadowLeft:"_oxTableScrollWrapperShadowLeft_1uiin_2",oxTableScrollWrapperShadowRight:"_oxTableScrollWrapperShadowRight_1uiin_2",oxTableFixedLayout:"_oxTableFixedLayout_1uiin_2",oxTableFixedSection:"_oxTableFixedSection_1uiin_2",oxTableFixedLeft:"_oxTableFixedLeft_1uiin_2",oxTableFixedRight:"_oxTableFixedRight_1uiin_2",oxTableFixedLeftShadow:"_oxTableFixedLeftShadow_1uiin_2",oxTableFixedRightShadow:"_oxTableFixedRightShadow_1uiin_2",oxTableFixedScroll:"_oxTableFixedScroll_1uiin_2",oxTableFixedScrollDraggable:"_oxTableFixedScrollDraggable_1uiin_2",oxTableFixedScrollDragging:"_oxTableFixedScrollDragging_1uiin_2",oxTable:"_oxTable_1uiin_2"};function AP(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return b.useMemo(()=>o=>{t.forEach(r=>r(o))},t)}const Vs=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function yo(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function ec(e){return"nodeType"in e}function qe(e){var t,n;return e?yo(e)?e:ec(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function tc(e){const{Document:t}=qe(e);return e instanceof t}function sr(e){return yo(e)?!1:e instanceof qe(e).HTMLElement}function yv(e){return e instanceof qe(e).SVGElement}function Co(e){return e?yo(e)?e.document:ec(e)?tc(e)?e:sr(e)||yv(e)?e.ownerDocument:document:document:document}const Dt=Vs?b.useLayoutEffect:b.useEffect;function nc(e){const t=b.useRef(e);return Dt(()=>{t.current=e}),b.useCallback(function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return t.current==null?void 0:t.current(...o)},[])}function OP(){const e=b.useRef(null),t=b.useCallback((o,r)=>{e.current=setInterval(o,r)},[]),n=b.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function ir(e,t){t===void 0&&(t=[e]);const n=b.useRef(e);return Dt(()=>{n.current!==e&&(n.current=e)},t),n}function ar(e,t){const n=b.useRef();return b.useMemo(()=>{const o=e(n.current);return n.current=o,o},[...t])}function Hs(e){const t=nc(e),n=b.useRef(null),o=b.useCallback(r=>{r!==n.current&&(t==null||t(r,n.current)),n.current=r},[]);return[n,o]}function oc(e){const t=b.useRef();return b.useEffect(()=>{t.current=e},[e]),t.current}let rc={};function lr(e,t){return b.useMemo(()=>{if(t)return t;const n=rc[e]==null?0:rc[e]+1;return rc[e]=n,e+"-"+n},[e,t])}function Cv(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return o.reduce((s,i)=>{const a=Object.entries(i);for(const[l,c]of a){const u=s[l];u!=null&&(s[l]=u+e*c)}return s},{...t})}}const wo=Cv(1),Bs=Cv(-1);function DP(e){return"clientX"in e&&"clientY"in e}function sc(e){if(!e)return!1;const{KeyboardEvent:t}=qe(e.target);return t&&e instanceof t}function NP(e){if(!e)return!1;const{TouchEvent:t}=qe(e.target);return t&&e instanceof t}function ic(e){if(NP(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return DP(e)?{x:e.clientX,y:e.clientY}:null}const cr=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[cr.Translate.toString(e),cr.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),wv="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function kP(e){return e.matches(wv)?e:e.querySelector(wv)}const $P={display:"none"};function MP(e){let{id:t,value:n}=e;return b.createElement("div",{id:t,style:$P},n)}function RP(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;const r={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return b.createElement("div",{id:t,style:r,role:"status","aria-live":o,"aria-atomic":!0},n)}function LP(){const[e,t]=b.useState("");return{announce:b.useCallback(o=>{o!=null&&t(o)},[]),announcement:e}}const Sv=b.createContext(null);function FP(e){const t=b.useContext(Sv);b.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function zP(){const[e]=b.useState(()=>new Set),t=b.useCallback(o=>(e.add(o),()=>e.delete(o)),[e]);return[b.useCallback(o=>{let{type:r,event:s}=o;e.forEach(i=>{var a;return(a=i[r])==null?void 0:a.call(i,s)})},[e]),t]}const VP={draggable:`
165
+ `)},yS=0,ao=[];function CS(e){var t=v.useRef([]),n=v.useRef([0,0]),o=v.useRef(),r=v.useState(yS++)[0],s=v.useState(wp)[0],i=v.useRef(e);v.useEffect(function(){i.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var g=HC([e.lockRef.current],(e.shards||[]).map(Op),!0).filter(Boolean);return g.forEach(function(x){return x.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),g.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=v.useCallback(function(g,x){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var b=is(g),S=n.current,C="deltaX"in g?g.deltaX:S[0]-b[0],_="deltaY"in g?g.deltaY:S[1]-b[1],w,T=g.target,E=Math.abs(C)>Math.abs(_)?"h":"v";if("touches"in g&&E==="h"&&T.type==="range")return!1;var P=window.getSelection(),I=P&&P.anchorNode,N=I?I===T||I.contains(T):!1;if(N)return!1;var H=Ep(E,T);if(!H)return!0;if(H?w=E:(w=E==="v"?"h":"v",H=Ep(E,T)),!H)return!1;if(!o.current&&"changedTouches"in g&&(C||_)&&(o.current=w),!w)return!0;var L=o.current||w;return vS(L,x,g,L==="h"?C:_)},[]),l=v.useCallback(function(g){var x=g;if(!(!ao.length||ao[ao.length-1]!==s)){var b="deltaY"in x?Ap(x):is(x),S=t.current.filter(function(w){return w.name===x.type&&(w.target===x.target||x.target===w.shadowParent)&&xS(w.delta,b)})[0];if(S&&S.should){x.cancelable&&x.preventDefault();return}if(!S){var C=(i.current.shards||[]).map(Op).filter(Boolean).filter(function(w){return w.contains(x.target)}),_=C.length>0?a(x,C[0]):!i.current.noIsolation;_&&x.cancelable&&x.preventDefault()}}},[]),c=v.useCallback(function(g,x,b,S){var C={name:g,delta:x,target:b,should:S,shadowParent:SS(b)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(_){return _!==C})},1)},[]),u=v.useCallback(function(g){n.current=is(g),o.current=void 0},[]),d=v.useCallback(function(g){c(g.type,Ap(g),g.target,a(g,e.lockRef.current))},[]),f=v.useCallback(function(g){c(g.type,is(g),g.target,a(g,e.lockRef.current))},[]);v.useEffect(function(){return ao.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,io),document.addEventListener("touchmove",l,io),document.addEventListener("touchstart",u,io),function(){ao=ao.filter(function(g){return g!==s}),document.removeEventListener("wheel",l,io),document.removeEventListener("touchmove",l,io),document.removeEventListener("touchstart",u,io)}},[]);var p=e.removeScrollBar,m=e.inert;return v.createElement(v.Fragment,null,m?v.createElement(s,{styles:bS(r)}):null,p?v.createElement(uS,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function SS(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const wS=JC(Sp,CS);var as=v.forwardRef(function(e,t){return v.createElement(rs,Pt({},e,{ref:t,sideCar:wS}))});as.classNames=rs.classNames;var _S=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},lo=new WeakMap,ls=new WeakMap,cs={},Aa=0,Dp=function(e){return e&&(e.host||Dp(e.parentNode))},TS=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=Dp(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ES=function(e,t,n,o){var r=TS(t,Array.isArray(e)?e:[e]);cs[n]||(cs[n]=new WeakMap);var s=cs[n],i=[],a=new Set,l=new Set(r),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};r.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var p=f.getAttribute(o),m=p!==null&&p!=="false",g=(lo.get(f)||0)+1,x=(s.get(f)||0)+1;lo.set(f,g),s.set(f,x),i.push(f),g===1&&m&&ls.set(f,!0),x===1&&f.setAttribute(n,"true"),m||f.setAttribute(o,"true")}catch(b){console.error("aria-hidden: cannot operate on ",f,b)}})};return u(t),a.clear(),Aa++,function(){i.forEach(function(d){var f=lo.get(d)-1,p=s.get(d)-1;lo.set(d,f),s.set(d,p),f||(ls.has(d)||d.removeAttribute(o),ls.delete(d)),p||d.removeAttribute(n)}),Aa--,Aa||(lo=new WeakMap,lo=new WeakMap,ls=new WeakMap,cs={})}},Oa=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=_S(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),ES(o,r,n,"aria-hidden")):function(){return null}},PS=Object.defineProperty,ot=(e,t)=>PS(e,"name",{value:t,configurable:!0}),Da="Dialog",[Np]=ft(Da),[IS,bt]=Np(Da),kp=ot(e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:i=!0}=e,a=v.useRef(null),l=v.useRef(null),[c,u]=vt({prop:o,defaultProp:r??!1,onChange:s,caller:Da}),[d,f]=v.useState(0),[p,m]=v.useState(0);return h.jsx(IS,{scope:t,triggerRef:a,contentRef:l,contentId:qe(),titleId:qe(),descriptionId:qe(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:m,open:c,onOpenChange:u,onOpenToggle:v.useCallback(()=>u(g=>!g),[u]),modal:i,children:n})},"Dialog"),AS="DialogTrigger",OS=v.forwardRef(ot(function(t,n){const{__scopeDialog:o,...r}=t,s=bt(AS,o),i=Se(n,s.triggerRef);return h.jsx(de.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":us(s.open),...r,ref:i,onClick:ge(t.onClick,s.onOpenToggle)})},"DialogTrigger")),Mp="DialogPortal",[DS,$p]=Np(Mp,{forceMount:void 0}),Na=ot(e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,s=bt(Mp,t);return h.jsx(DS,{scope:t,forceMount:n,children:v.Children.map(o,i=>h.jsx(xt,{present:n||s.open,children:h.jsx(wa,{asChild:!0,container:r,children:i})}))})},"DialogPortal"),ka="DialogOverlay",Rp=v.forwardRef(ot(function(t,n){const o=$p(ka,t.__scopeDialog),{forceMount:r=o.forceMount,...s}=t,i=bt(ka,t.__scopeDialog);return i.modal?h.jsx(xt,{present:r||i.open,children:h.jsx(kS,{...s,ref:n})}):null},"DialogOverlay")),NS=Jn("DialogOverlay.RemoveScroll"),kS=v.forwardRef(ot(function(t,n){const{__scopeDialog:o,...r}=t,s=bt(ka,o),i=tp(),a=Se(n,i);return h.jsx(as,{as:NS,allowPinchZoom:!0,shards:[s.contentRef],children:h.jsx(de.div,{"data-state":us(s.open),...r,ref:a,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),qo="DialogContent",Ma=v.forwardRef(ot(function(t,n){const o=$p(qo,t.__scopeDialog),{forceMount:r=o.forceMount,...s}=t,i=bt(qo,t.__scopeDialog);return h.jsx(xt,{present:r||i.open,children:i.modal?h.jsx(MS,{...s,ref:n}):h.jsx($S,{...s,ref:n})})},"DialogContent")),MS=v.forwardRef(ot(function(t,n){const o=bt(qo,t.__scopeDialog),r=v.useRef(null),s=Se(n,o.contentRef,r);return v.useEffect(()=>{const i=r.current;if(i)return Oa(i)},[]),h.jsx(Lp,{...t,ref:s,trapFocus:o.open,disableOutsidePointerEvents:o.open,onCloseAutoFocus:ge(t.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=o.triggerRef.current)==null||a.focus()}),onPointerDownOutside:ge(t.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&i.preventDefault()}),onFocusOutside:ge(t.onFocusOutside,i=>i.preventDefault())})},"DialogContentModal")),$S=v.forwardRef(ot(function(t,n){const o=bt(qo,t.__scopeDialog),r=v.useRef(!1),s=v.useRef(!1);return h.jsx(Lp,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,l;(a=t.onCloseAutoFocus)==null||a.call(t,i),i.defaultPrevented||(r.current||(l=o.triggerRef.current)==null||l.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var c,u;(c=t.onInteractOutside)==null||c.call(t,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const a=i.target;((u=o.triggerRef.current)==null?void 0:u.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})},"DialogContentNonModal")),Lp=v.forwardRef(ot(function(t,n){const{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...a}=t,l=bt(qo,o);return vp(),h.jsx(h.Fragment,{children:h.jsx(sp,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:h.jsx(ha,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionPresent?l.descriptionId:void 0,"aria-labelledby":l.titlePresent?l.titleId:void 0,"data-state":us(l.open),...a,ref:n,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1)})})})},"DialogContentImpl")),RS="DialogTitle",LS=v.forwardRef(ot(function(t,n){const{__scopeDialog:o,...r}=t,s=bt(RS,o),{setTitleCount:i}=s;return Ue(()=>(i(a=>a+1),()=>i(a=>a-1)),[i]),h.jsx(de.h2,{id:s.titleId,...r,ref:n})},"DialogTitle")),FS="DialogDescription",zS=v.forwardRef(ot(function(t,n){const{__scopeDialog:o,...r}=t,s=bt(FS,o),{setDescriptionCount:i}=s;return Ue(()=>(i(a=>a+1),()=>i(a=>a-1)),[i]),h.jsx(de.p,{id:s.descriptionId,...r,ref:n})},"DialogDescription")),VS="DialogClose",$a=v.forwardRef(ot(function(t,n){const{__scopeDialog:o,...r}=t,s=bt(VS,o);return h.jsx(de.button,{type:"button",...r,ref:n,onClick:ge(t.onClick,()=>s.onOpenChange(!1))})},"DialogClose"));function us(e){return e?"open":"closed"}ot(us,"getState");const Fp=({children:e,defaultOpen:t=!1,open:n,onOpenChange:o,modal:r=!0})=>h.jsx(kp,{"data-slot":"dialog",defaultOpen:t,open:n,onOpenChange:o,modal:r,children:e});Fp.displayName="OxDialog";const ds={oxDialogContent:"_oxDialogContent_prbnq_2",oxDialogCloseButton:"_oxDialogCloseButton_prbnq_2",oxDialogCloseIcon:"_oxDialogCloseIcon_prbnq_2",oxDialogCloseLabel:"_oxDialogCloseLabel_prbnq_2"},BS={oxDialogOverlay:"_oxDialogOverlay_12k22_2"},fs=y.forwardRef(({className:e,...t},n)=>h.jsx(Rp,{ref:n,"data-slot":"dialog-overlay",className:G(BS.oxDialogOverlay,e),...t}));fs.displayName="OxDialogOverlay";const zp=y.forwardRef(({className:e,children:t,showCloseButton:n=!0,...o},r)=>h.jsxs(Na,{children:[h.jsx(fs,{}),h.jsxs(Ma,{ref:r,"data-slot":"dialog-content",className:G(ds.oxDialogContent,e),...o,children:[t,n&&h.jsxs($a,{"data-slot":"dialog-close",className:ds.oxDialogCloseButton,children:[h.jsx(qi,{className:ds.oxDialogCloseIcon}),h.jsx("span",{className:ds.oxDialogCloseLabel,children:"Close"})]})]})]}));zp.displayName="OxDialogContent";const HS={oxDialogTitle:"_oxDialogTitle_jzndx_2"},Vp=y.forwardRef(({className:e,...t},n)=>h.jsx(LS,{ref:n,"data-slot":"dialog-title",className:G(HS.oxDialogTitle,e),...t}));Vp.displayName="OxDialogTitle";const GS={oxDialogDescription:"_oxDialogDescription_1955v_2"},Bp=y.forwardRef(({className:e,...t},n)=>h.jsx(zS,{ref:n,"data-slot":"dialog-description",className:G(GS.oxDialogDescription,e),...t}));Bp.displayName="OxDialogDescription";const co={oxDialogTwoPanelContent:"_oxDialogTwoPanelContent_1nf6u_2",oxDialogTwoPanelMain:"_oxDialogTwoPanelMain_1nf6u_2",oxDialogTwoPanelAside:"_oxDialogTwoPanelAside_1nf6u_2",oxDialogCloseButton:"_oxDialogCloseButton_1nf6u_2",oxDialogCloseIcon:"_oxDialogCloseIcon_1nf6u_2",oxDialogCloseLabel:"_oxDialogCloseLabel_1nf6u_2"},Hp=y.forwardRef(({className:e,children:t,aside:n,showCloseButton:o=!0,...r},s)=>h.jsxs(Na,{children:[h.jsx(fs,{}),h.jsxs(Ma,{ref:s,"data-slot":"dialog-content",className:G(co.oxDialogTwoPanelContent,e),...r,children:[h.jsx("div",{className:co.oxDialogTwoPanelMain,children:t}),h.jsx("div",{className:co.oxDialogTwoPanelAside,children:n}),o&&h.jsxs($a,{"data-slot":"dialog-close",className:co.oxDialogCloseButton,children:[h.jsx(qi,{className:co.oxDialogCloseIcon}),h.jsx("span",{className:co.oxDialogCloseLabel,children:"Close"})]})]})]}));Hp.displayName="OxDialogTwoPanelContent";const jS=["top","right","bottom","left"],nn=Math.min,Ht=Math.max,ps=Math.round,gs=Math.floor,Gt=e=>({x:e,y:e}),WS={left:"right",right:"left",bottom:"top",top:"bottom"};function Gp(e,t,n){return Ht(e,nn(t,n))}function jt(e,t){return typeof e=="function"?e(t):e}function on(e){return e.split("-")[0]}function uo(e){return e.split("-")[1]}function Ra(e){return e==="x"?"y":"x"}function La(e){return e==="y"?"height":"width"}function It(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Fa(e){return Ra(It(e))}function US(e,t,n){n===void 0&&(n=!1);const o=uo(e),r=Fa(e),s=La(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=hs(i)),[i,hs(i)]}function qS(e){const t=hs(e);return[za(e),t,za(t)]}function za(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const jp=["left","right"],Wp=["right","left"],KS=["top","bottom"],XS=["bottom","top"];function YS(e,t,n){switch(e){case"top":case"bottom":return n?t?Wp:jp:t?jp:Wp;case"left":case"right":return t?KS:XS;default:return[]}}function JS(e,t,n,o){const r=uo(e);let s=YS(on(e),n==="start",o);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(za)))),s}function hs(e){const t=on(e);return WS[t]+e.slice(t.length)}function ZS(e){var t,n,o,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function Up(e){return typeof e!="number"?ZS(e):{top:e,right:e,bottom:e,left:e}}function ms(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function qp(e,t,n){let{reference:o,floating:r}=e;const s=It(t),i=Fa(t),a=La(i),l=on(t),c=s==="y",u=o.x+o.width/2-r.width/2,d=o.y+o.height/2-r.height/2,f=o[a]/2-r[a]/2;let p;switch(l){case"top":p={x:u,y:o.y-r.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-r.width,y:d};break;default:p={x:o.x,y:o.y}}const m=uo(t);return m&&(p[i]+=f*(m==="end"?1:-1)*(n&&c?-1:1)),p}async function QS(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=jt(t,e),m=Up(p),x=a[f?d==="floating"?"reference":"floating":d],b=ms(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),S=d==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),_=await(s.isElement==null?void 0:s.isElement(C))&&await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1},w=ms(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:S,offsetParent:C,strategy:l}):S);return{top:(b.top-w.top+m.top)/_.y,bottom:(w.bottom-b.bottom+m.bottom)/_.y,left:(b.left-w.left+m.left)/_.x,right:(w.right-b.right+m.right)/_.x}}const ew=50,tw=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:i}=n,a=i.detectOverflow?i:{...i,detectOverflow:QS},l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=qp(c,o,l),f=o,p=0;const m={};for(let g=0;g<s.length;g++){const x=s[g];if(!x)continue;const{name:b,fn:S}=x,{x:C,y:_,data:w,reset:T}=await S({x:u,y:d,initialPlacement:o,placement:f,strategy:r,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});u=C??u,d=_??d,m[b]={...m[b],...w},T&&p<ew&&(p++,typeof T=="object"&&(T.placement&&(f=T.placement),T.rects&&(c=T.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):T.rects),{x:u,y:d}=qp(c,f,l)),g=-1)}return{x:u,y:d,placement:f,strategy:r,middlewareData:m}},nw=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=jt(e,t)||{};if(c==null)return{};const d=Up(u),f={x:n,y:o},p=Fa(r),m=La(p),g=await i.getDimensions(c),x=p==="y",b=x?"top":"left",S=x?"bottom":"right",C=x?"clientHeight":"clientWidth",_=s.reference[m]+s.reference[p]-f[p]-s.floating[m],w=f[p]-s.reference[p],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let E=T?T[C]:0;(!E||!await(i.isElement==null?void 0:i.isElement(T)))&&(E=a.floating[C]||s.floating[m]);const P=_/2-w/2,I=E/2-g[m]/2-1,N=nn(d[b],I),H=nn(d[S],I),L=E-g[m]-H,X=E/2-g[m]/2+P,W=Gp(N,X,L),J=!l.arrow&&uo(r)!=null&&X!==W&&s.reference[m]/2-(X<N?N:H)-g[m]/2<0,Y=J?X<N?X-N:X-L:0;return{[p]:f[p]+Y,data:{[p]:W,centerOffset:X-W-Y,...J&&{alignmentOffset:Y}},reset:J}}}),ow=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...x}=jt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=on(r),S=It(a),C=on(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),w=f||(C||!g?[hs(a)]:qS(a)),T=m!=="none";!f&&T&&w.push(...JS(a,g,m,_));const E=[a,...w],P=await l.detectOverflow(t,x),I=[];let N=((o=s.flip)==null?void 0:o.overflows)||[];if(u&&I.push(P[b]),d){const W=US(r,i,_);I.push(P[W[0]],P[W[1]])}if(N=[...N,{placement:r,overflows:I}],!I.every(W=>W<=0)){var H,L;const W=(((H=s.flip)==null?void 0:H.index)||0)+1,J=E[W];if(J&&(!(d==="alignment"?S!==It(J):!1)||N.every(z=>It(z.placement)===S?z.overflows[0]>0:!0)))return{data:{index:W,overflows:N},reset:{placement:J}};let Y=(L=N.filter(q=>q.overflows[0]<=0).sort((q,z)=>q.overflows[1]-z.overflows[1])[0])==null?void 0:L.placement;if(!Y)switch(p){case"bestFit":{var X;const q=(X=N.filter(z=>{if(T){const Q=It(z.placement);return Q===S||Q==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(Q=>Q>0).reduce((Q,F)=>Q+F,0)]).sort((z,Q)=>z[1]-Q[1])[0])==null?void 0:X[0];q&&(Y=q);break}case"initialPlacement":Y=a;break}if(r!==Y)return{reset:{placement:Y}}}return{}}}};function Kp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Xp(e){return jS.some(t=>e[t]>=0)}const rw=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...s}=jt(e,t);switch(r){case"referenceHidden":{const i=await o.detectOverflow(t,{...s,elementContext:"reference"}),a=Kp(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Xp(a)}}}case"escaped":{const i=await o.detectOverflow(t,{...s,altBoundary:!0}),a=Kp(i,n.floating);return{data:{escapedOffsets:a,escaped:Xp(a)}}}default:return{}}}}},Yp=new Set(["left","top"]);async function sw(e,t){const{placement:n,platform:o,elements:r}=e,s=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=on(n),a=uo(n),l=It(n)==="y",c=Yp.has(i)?-1:1,u=s&&l?-1:1,d=jt(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(p=a==="end"?m*-1:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}const iw=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:s,placement:i,middlewareData:a}=t,l=await sw(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:i}}}}},aw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:S=>{let{x:C,y:_}=S;return{x:C,y:_}}},...c}=jt(e,t),u={x:n,y:o},d=await s.detectOverflow(t,c),f=It(r),p=Ra(f);let m=u[p],g=u[f];const x=(S,C)=>Gp(C+d[S==="y"?"top":"left"],C,C-d[S==="y"?"bottom":"right"]);i&&(m=x(p,m)),a&&(g=x(f,g));const b=l.fn({...t,[p]:m,[f]:g});return{...b,data:{x:b.x-n,y:b.y-o,enabled:{[p]:i,[f]:a}}}}}},lw=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,o;const{x:r,y:s,placement:i,rects:a,middlewareData:l}=t,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=jt(e,t),f={x:r,y:s},p=It(i),m=Ra(p);let g=f[m],x=f[p];const b=jt(c,t),S=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:(n=b.mainAxis)!=null?n:0,crossAxis:(o=b.crossAxis)!=null?o:0};if(u){const w=m==="y"?"height":"width",T=a.reference[m]-a.floating[w]+S.mainAxis,E=a.reference[m]+a.reference[w]-S.mainAxis;g<T?g=T:g>E&&(g=E)}if(d){var C,_;const w=m==="y"?"width":"height",T=Yp.has(on(i)),E=a.reference[p]-a.floating[w]+(T&&((C=l.offset)==null?void 0:C[p])||0)+(T?0:S.crossAxis),P=a.reference[p]+a.reference[w]+(T?0:((_=l.offset)==null?void 0:_[p])||0)-(T?S.crossAxis:0);x<E?x=E:x>P&&(x=P)}return{[m]:g,[p]:x}}}},cw=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:s}=t,{apply:i=()=>{},...a}=jt(e,t),l=await r.detectOverflow(t,a),c=on(n),u=uo(n),d=It(n)==="y",{width:f,height:p}=o.floating;let m,g;c==="top"||c==="bottom"?(m=c,g=u===(await(r.isRTL==null?void 0:r.isRTL(s.floating))?"start":"end")?"left":"right"):(g=c,m=u==="end"?"top":"bottom");const x=p-l.top-l.bottom,b=f-l.left-l.right,S=nn(p-l[m],x),C=nn(f-l[g],b),_=t.middlewareData.shift,w=!_;let T=S,E=C;_!=null&&_.enabled.x&&(E=b),_!=null&&_.enabled.y&&(T=x),w&&!u&&(d?E=f-2*Ht(l.left,l.right):T=p-2*Ht(l.top,l.bottom)),await i({...t,availableWidth:E,availableHeight:T});const P=await r.getDimensions(s.floating);return f!==P.width||p!==P.height?{reset:{rects:!0}}:{}}}};function vs(){return typeof window<"u"}function fo(e){return Jp(e)?(e.nodeName||"").toLowerCase():"#document"}function Ze(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Wt(e){var t;return(t=(Jp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Jp(e){return vs()?e instanceof Node||e instanceof Ze(e).Node:!1}function At(e){return vs()?e instanceof Element||e instanceof Ze(e).Element:!1}function rn(e){return vs()?e instanceof HTMLElement||e instanceof Ze(e).HTMLElement:!1}function Zp(e){return!vs()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ze(e).ShadowRoot}function xs(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Ot(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function uw(e){return/^(table|td|th)$/.test(fo(e))}function bs(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const dw=/transform|translate|scale|rotate|perspective|filter/,fw=/paint|layout|strict|content/,Mn=e=>!!e&&e!=="none";let Va;function Ba(e){const t=At(e)?Ot(e):e;return Mn(t.transform)||Mn(t.translate)||Mn(t.scale)||Mn(t.rotate)||Mn(t.perspective)||!Ha()&&(Mn(t.backdropFilter)||Mn(t.filter))||dw.test(t.willChange||"")||fw.test(t.contain||"")}function pw(e){let t=$n(e);for(;rn(t)&&!Ko(t);){if(Ba(t))return t;if(bs(t))return null;t=$n(t)}return null}function Ha(){return Va==null&&(Va=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Va}function Ko(e){return/^(html|body|#document)$/.test(fo(e))}function Ot(e){return Ze(e).getComputedStyle(e)}function ys(e){return At(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $n(e){if(fo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Zp(e)&&e.host||Wt(e);return Zp(t)?t.host:t}function Qp(e){const t=$n(e);return Ko(t)?(e.ownerDocument||e).body:rn(t)&&xs(t)?t:Qp(t)}function Xo(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=Qp(e),s=r===((o=e.ownerDocument)==null?void 0:o.body),i=Ze(r);if(s){const a=Ga(i);return t.concat(i,i.visualViewport||[],xs(r)?r:[],a&&n?Xo(a):[])}else return t.concat(r,Xo(r,[],n))}function Ga(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eg(e){const t=Ot(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=rn(e),s=r?e.offsetWidth:n,i=r?e.offsetHeight:o,a=ps(n)!==s||ps(o)!==i;return a&&(n=s,o=i),{width:n,height:o,$:a}}function ja(e){return At(e)?e:e.contextElement}function po(e){const t=ja(e);if(!rn(t))return Gt(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:s}=eg(t);let i=(s?ps(n.width):n.width)/o,a=(s?ps(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const gw=Gt(0);function tg(e){const t=Ze(e);return!Ha()||!t.visualViewport?gw:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hw(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Ze(e)}function Rn(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),s=ja(e);let i=Gt(1);t&&(o?At(o)&&(i=po(o)):i=po(e));const a=hw(s,n,o)?tg(s):Gt(0);let l=(r.left+a.x)/i.x,c=(r.top+a.y)/i.y,u=r.width/i.x,d=r.height/i.y;if(s&&o){const f=Ze(s),p=At(o)?Ze(o):o;let m=f,g=Ga(m);for(;g&&p!==m;){const x=po(g),b=g.getBoundingClientRect(),S=Ot(g),C=b.left+(g.clientLeft+parseFloat(S.paddingLeft))*x.x,_=b.top+(g.clientTop+parseFloat(S.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=C,c+=_,m=Ze(g),g=Ga(m)}}return ms({width:u,height:d,x:l,y:c})}function Cs(e,t){const n=ys(e).scrollLeft;return t?t.left+n:Rn(Wt(e)).left+n}function ng(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Cs(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function mw(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const s=r==="fixed",i=Wt(o),a=t?bs(t.floating):!1;if(o===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=Gt(1);const u=Gt(0),d=rn(o);if((d||!s)&&((fo(o)!=="body"||xs(i))&&(l=ys(o)),d)){const p=Rn(o);c=po(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}const f=i&&!d&&!s?ng(i,l):Gt(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function vw(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function xw(e){const t=ys(e),n=e.ownerDocument.body,o=Ht(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=Ht(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let s=-t.scrollLeft+Cs(e);const i=-t.scrollTop;return Ot(n).direction==="rtl"&&(s+=Ht(e.clientWidth,n.clientWidth)-o),{width:o,height:r,x:s,y:i}}const bw=25;function yw(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=Ze(e),s=Wt(e),i=r.visualViewport;let a=s.clientWidth,l=s.clientHeight,c=0,u=0;if(i){const f=!Ha()||t==="fixed";o?f||(c=-i.offsetLeft,u=-i.offsetTop):(a=i.width,l=i.height,f&&(c=i.offsetLeft,u=i.offsetTop))}if(Cs(s)<=0){const f=s.ownerDocument,p=f.body,m=getComputedStyle(p),g=f.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,x=Math.abs(s.clientWidth-p.clientWidth-g),b=getComputedStyle(s).scrollbarGutter==="stable both-edges"?x/2:x;b<=bw&&(a-=b)}return{width:a,height:l,x:c,y:u}}function Cw(e,t){const n=Rn(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,s=po(e),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=r*s.x,c=o*s.y;return{width:i,height:a,x:l,y:c}}function og(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=yw(e,n,t);else if(t==="document")o=xw(Wt(e));else if(At(t))o=Cw(t,n);else{const r=tg(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ms(o)}function Sw(e,t){const n=t.get(e);if(n)return n;let o=Xo(e,[],!1).filter(a=>At(a)&&fo(a)!=="body"),r=null;const s=Ot(e).position==="fixed";let i=s?$n(e):e;for(;At(i)&&!Ko(i);){const a=Ot(i),l=Ba(i),c=r?r.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?o=o.filter(d=>d!==i):r=a,i=$n(i)}return t.set(e,o),o}function ww(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?bs(t)?[]:Sw(t,this._c):[].concat(n),o],a=og(t,i[0],r);let l=a.top,c=a.right,u=a.bottom,d=a.left;for(let f=1;f<i.length;f++){const p=og(t,i[f],r);l=Ht(p.top,l),c=nn(p.right,c),u=nn(p.bottom,u),d=Ht(p.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function _w(e){const{width:t,height:n}=eg(e);return{width:t,height:n}}function Tw(e,t,n){const o=rn(t),r=Wt(t),s=n==="fixed",i=Rn(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Gt(0);if((o||!s)&&((fo(t)!=="body"||xs(r))&&(a=ys(t)),o)){const f=Rn(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}!o&&r&&(l.x=Cs(r));const c=r&&!o&&!s?ng(r,a):Gt(0),u=i.left+a.scrollLeft-l.x-c.x,d=i.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:i.width,height:i.height}}function Wa(e){return Ot(e).position==="static"}function rg(e,t){if(!rn(e)||Ot(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Wt(e)===n&&(n=n.ownerDocument.body),n}function sg(e,t){const n=Ze(e);if(bs(e))return n;if(!rn(e)){let r=$n(e);for(;r&&!Ko(r);){if(At(r)&&!Wa(r))return r;r=$n(r)}return n}let o=rg(e,t);for(;o&&uw(o)&&Wa(o);)o=rg(o,t);return o&&Ko(o)&&Wa(o)&&!Ba(o)?n:o||pw(e)||n}const Ew=async function(e){const t=this.getOffsetParent||sg,n=this.getDimensions,o=await n(e.floating);return{reference:Tw(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Pw(e){return Ot(e).direction==="rtl"}const Iw={convertOffsetParentRelativeRectToViewportRelativeRect:mw,getDocumentElement:Wt,getClippingRect:ww,getOffsetParent:sg,getElementRects:Ew,getClientRects:vw,getDimensions:_w,getScale:po,isElement:At,isRTL:Pw};function ig(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Aw(e,t,n){let o=null,r;const s=Wt(e);function i(){var u;clearTimeout(r),(u=o)==null||u.disconnect(),o=null}function a(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),i();const f=e.getBoundingClientRect(),{left:p,top:m,width:g,height:x}=f;if(u||t(),!g||!x)return;const b=gs(m),S=gs(s.clientWidth-(p+g)),C=gs(s.clientHeight-(m+x)),_=gs(p),T={rootMargin:-b+"px "+-S+"px "+-C+"px "+-_+"px",threshold:Ht(0,nn(1,d))||1};let E=!0;function P(I){const N=I[0].intersectionRatio;if(!ig(f,e.getBoundingClientRect()))return a();if(N!==d){if(!E)return a();N?a(!1,N):r=setTimeout(()=>{a(!1,1e-7)},1e3)}E=!1}try{o=new IntersectionObserver(P,{...T,root:s.ownerDocument})}catch{o=new IntersectionObserver(P,T)}o.observe(e)}const l=Ze(e),c=()=>a(n);return l.addEventListener("resize",c),a(!0),()=>{l.removeEventListener("resize",c),i()}}function ag(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,c=ja(e),u=r||s?[...c?Xo(c):[],...t?Xo(t):[]]:[];u.forEach(b=>{r&&b.addEventListener("scroll",n),s&&b.addEventListener("resize",n)});const d=c&&a?Aw(c,n,s):null;let f=-1,p=null;i&&(p=new ResizeObserver(b=>{let[S]=b;S&&S.target===c&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var C;(C=p)==null||C.observe(t)})),n()}),c&&!l&&p.observe(c),t&&p.observe(t));let m,g=l?Rn(e):null;l&&x();function x(){const b=Rn(e);g&&!ig(g,b)&&n(),g=b,m=requestAnimationFrame(x)}return n(),()=>{var b;u.forEach(S=>{r&&S.removeEventListener("scroll",n),s&&S.removeEventListener("resize",n)}),d==null||d(),(b=p)==null||b.disconnect(),p=null,l&&cancelAnimationFrame(m)}}const Ow=iw,Dw=aw,Nw=ow,kw=cw,Mw=rw,lg=nw,$w=lw,Rw=(e,t,n)=>{const o=new Map,r=n??{},s={...Iw,...r.platform,_c:o};return tw(e,t,{...r,platform:s})};var Lw=typeof document<"u",Fw=function(){},Ss=Lw?y.useLayoutEffect:Fw;function ws(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!ws(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const s=r[o];if(!(s==="_owner"&&e.$$typeof)&&!ws(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function cg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ug(e,t){const n=cg(e);return Math.round(t*n)/n}function Ua(e){const t=v.useRef(e);return Ss(()=>{t.current=e}),t}function dg(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=v.useState(o);ws(f,o)||p(o);const[m,g]=v.useState(null),[x,b]=v.useState(null),S=v.useCallback(z=>{z!==T.current&&(T.current=z,g(z))},[]),C=v.useCallback(z=>{z!==E.current&&(E.current=z,b(z))},[]),_=s||m,w=i||x,T=v.useRef(null),E=v.useRef(null),P=v.useRef(u),I=l!=null,N=Ua(l),H=Ua(r),L=Ua(c),X=v.useCallback(()=>{if(!T.current||!E.current)return;const z={placement:t,strategy:n,middleware:f};H.current&&(z.platform=H.current),Rw(T.current,E.current,z).then(Q=>{const F={...Q,isPositioned:L.current!==!1};W.current&&!ws(P.current,F)&&(P.current=F,xn.flushSync(()=>{d(F)}))})},[f,t,n,H,L]);Ss(()=>{c===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(z=>({...z,isPositioned:!1})))},[c]);const W=v.useRef(!1);Ss(()=>(W.current=!0,()=>{W.current=!1}),[]),Ss(()=>{if(_&&(T.current=_),w&&(E.current=w),_&&w){if(N.current)return N.current(_,w,X);X()}},[_,w,X,N,I]);const J=v.useMemo(()=>({reference:T,floating:E,setReference:S,setFloating:C}),[S,C]),Y=v.useMemo(()=>({reference:_,floating:w}),[_,w]),q=v.useMemo(()=>{const z={position:n,left:0,top:0};if(!Y.floating)return z;const Q=ug(Y.floating,u.x),F=ug(Y.floating,u.y);return a?{...z,transform:"translate("+Q+"px, "+F+"px)",...cg(Y.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Q,top:F}},[n,a,Y.floating,u.x,u.y]);return v.useMemo(()=>({...u,update:X,refs:J,elements:Y,floatingStyles:q}),[u,X,J,Y,q])}const zw=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?lg({element:o.current,padding:r}).fn(n):{}:o?lg({element:o,padding:r}).fn(n):{}}}},fg=(e,t)=>{const n=Ow(e);return{name:n.name,fn:n.fn,options:[e,t]}},pg=(e,t)=>{const n=Dw(e);return{name:n.name,fn:n.fn,options:[e,t]}},gg=(e,t)=>({fn:$w(e).fn,options:[e,t]}),hg=(e,t)=>{const n=Nw(e);return{name:n.name,fn:n.fn,options:[e,t]}},mg=(e,t)=>{const n=kw(e);return{name:n.name,fn:n.fn,options:[e,t]}},vg=(e,t)=>{const n=Mw(e);return{name:n.name,fn:n.fn,options:[e,t]}},xg=(e,t)=>{const n=zw(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Vw=Object.defineProperty,Bw=(e,t)=>Vw(e,"name",{value:t,configurable:!0}),Hw=v.forwardRef(Bw(function(t,n){const{children:o,width:r=10,height:s=5,...i}=t;return h.jsx(de.svg,{...i,ref:n,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?o:h.jsx("polygon",{points:"0,0 30,0 15,10"})})},"Arrow")),Gw=Hw;function qa(e){const[t,n]=v.useState(void 0);return Ue(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,a=c.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var jw=Object.defineProperty,Ut=(e,t)=>jw(e,"name",{value:t,configurable:!0}),bg="Popper",[yg,_s]=ft(bg),[Ww,Cg]=yg(bg),Uw=Ut(e=>{const{__scopePopper:t,children:n}=e,[o,r]=v.useState(null),[s,i]=v.useState(void 0);return h.jsx(Ww,{scope:t,anchor:o,onAnchorChange:r,placementState:s,setPlacementState:i,children:n})},"Popper"),qw="PopperAnchor",Kw=v.forwardRef(Ut(function(t,n){const{__scopePopper:o,virtualRef:r,...s}=t,i=Cg(qw,o),a=v.useRef(null),l=i.onAnchorChange,c=v.useCallback(g=>{a.current=g,g&&l(g)},[l]),u=Se(n,c),d=v.useRef(null);v.useEffect(()=>{if(!r)return;const g=d.current;d.current=r.current,g!==d.current&&l(d.current)});const f=i.placementState&&Ts(i.placementState),p=f==null?void 0:f[0],m=f==null?void 0:f[1];return r?null:h.jsx(de.div,{"data-radix-popper-side":p,"data-radix-popper-align":m,...s,ref:u})},"PopperAnchor")),Sg="PopperContent",[Xw,Yw]=yg(Sg),Jw=v.forwardRef(Ut(function(t,n){var j,U,ee,B,Z,ue,me;const{__scopePopper:o,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:g,...x}=t,b=Cg(Sg,o),[S,C]=v.useState(null),_=Se(n,C),[w,T]=v.useState(null),E=qa(w),P=(E==null?void 0:E.width)??0,I=(E==null?void 0:E.height)??0,N=r+(i!=="center"?"-"+i:""),H=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},L=Array.isArray(u)?u:[u],X=L.length>0,W={padding:H,boundary:L.filter(wg),altBoundary:X},{refs:J,floatingStyles:Y,placement:q,isPositioned:z,middlewareData:Q}=dg({strategy:"fixed",placement:N,whileElementsMounted:Ut((...Ce)=>ag(...Ce,{animationFrame:m==="always"}),"whileElementsMounted"),elements:{reference:b.anchor},middleware:[fg({mainAxis:s+I,alignmentAxis:a}),c&&pg({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?gg():void 0,...W}),c&&hg({...W}),mg({...W,apply:Ut(({elements:Ce,rects:Ne,availableWidth:ye,availableHeight:at})=>{const{width:oe,height:ie}=Ne.reference,re=Ce.floating.style;re.setProperty("--radix-popper-available-width",`${ye}px`),re.setProperty("--radix-popper-available-height",`${at}px`),re.setProperty("--radix-popper-anchor-width",`${oe}px`),re.setProperty("--radix-popper-anchor-height",`${ie}px`)},"apply")}),w&&xg({element:w,padding:l}),t_({arrowWidth:P,arrowHeight:I}),p&&vg({strategy:"referenceHidden",...W,boundary:X?W.boundary:void 0})]}),F=b.setPlacementState;Ue(()=>(F(q),()=>{F(void 0)}),[q,F]);const[K,D]=Ts(q),A=kn(g);Ue(()=>{z&&(A==null||A())},[z,A]);const k=(j=Q.arrow)==null?void 0:j.x,$=(U=Q.arrow)==null?void 0:U.y,V=((ee=Q.arrow)==null?void 0:ee.centerOffset)!==0,[M,R]=v.useState();return Ue(()=>{S&&R(window.getComputedStyle(S).zIndex)},[S]),h.jsx("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:z?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:M,"--radix-popper-transform-origin":[(B=Q.transformOrigin)==null?void 0:B.x,(Z=Q.transformOrigin)==null?void 0:Z.y].join(" "),...((ue=Q.hide)==null?void 0:ue.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:h.jsx(Xw,{scope:o,placedSide:K,placedAlign:D,onArrowChange:T,arrowX:k,arrowY:$,shouldHideArrow:V,children:h.jsx(de.div,{"data-side":K,"data-align":D,...x,ref:_,style:{...x.style,animation:z?(me=x.style)==null?void 0:me.animation:"none"}})})})},"PopperContent")),Zw="PopperArrow",Qw={top:"bottom",right:"left",bottom:"top",left:"right"},e_=v.forwardRef(Ut(function(t,n){const{__scopePopper:o,...r}=t,s=Yw(Zw,o),i=Qw[s.placedSide];return h.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:h.jsx(Gw,{...r,ref:n,style:{...r.style,display:"block"}})})},"PopperArrow"));function wg(e){return e!==null}Ut(wg,"isNotNull");var t_=Ut(e=>({name:"transformOrigin",options:e,fn(t){var x,b,S;const{placement:n,rects:o,middlewareData:r}=t,i=((x=r.arrow)==null?void 0:x.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,u]=Ts(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((b=r.arrow)==null?void 0:b.x)??0)+a/2,p=(((S=r.arrow)==null?void 0:S.y)??0)+l/2;let m="",g="";return c==="bottom"?(m=i?d:`${f}px`,g=`${-l}px`):c==="top"?(m=i?d:`${f}px`,g=`${o.floating.height+l}px`):c==="right"?(m=`${-l}px`,g=i?d:`${p}px`):c==="left"&&(m=`${o.floating.width+l}px`,g=i?d:`${p}px`),{data:{x:m,y:g}}}}),"transformOrigin");function Ts(e){const[t,n="center"]=e.split("-");return[t,n]}Ut(Ts,"getSideAndAlignFromPlacement");var _g=Uw,Ka=Kw,Tg=Jw,Eg=e_,n_=Object.defineProperty,o_=(e,t)=>n_(e,"name",{value:t,configurable:!0}),r_=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),s_=v.forwardRef(o_(function(t,n){return h.jsx(de.span,{...t,ref:n,style:{...r_,...t.style}})},"VisuallyHidden")),i_=s_,a_=Object.defineProperty,Oe=(e,t)=>a_(e,"name",{value:t,configurable:!0}),[Xa]=ft("Tooltip",[_s]),Es=_s(),l_="TooltipProvider",c_=700,Ya="tooltip.open",[u_,Ja]=Xa(l_),d_=Oe(e=>{const{__scopeTooltip:t,delayDuration:n=c_,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:s}=e,i=v.useRef(!0),a=v.useRef(!1),l=v.useRef(0);return v.useEffect(()=>{const c=l.current;return()=>window.clearTimeout(c)},[]),h.jsx(u_,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:v.useCallback(()=>{o<=0||(window.clearTimeout(l.current),i.current=!1)},[o]),onClose:v.useCallback(()=>{o<=0||(window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.current=!0,o))},[o]),isPointerInTransitRef:a,onPointerInTransitChange:v.useCallback(c=>{a.current=c},[]),disableHoverableContent:r,children:s})},"TooltipProvider"),Za="Tooltip",[f_,Yo]=Xa(Za),p_=Oe(e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r,onOpenChange:s,disableHoverableContent:i,delayDuration:a}=e,l=Ja(Za,e.__scopeTooltip),c=Es(t),[u,d]=v.useState(null),[f,p]=v.useState(void 0),m=qe(),g=v.useRef(0),x=i??l.disableHoverableContent,b=a??l.delayDuration,S=v.useRef(!1),[C,_]=vt({prop:o,defaultProp:r??!1,onChange:Oe(N=>{N?(l.onOpen(),document.dispatchEvent(new CustomEvent(Ya))):l.onClose(),s==null||s(N)},"onChange"),caller:Za}),w=v.useMemo(()=>C?S.current?"delayed-open":"instant-open":"closed",[C]),T=v.useCallback(()=>{window.clearTimeout(g.current),g.current=0,S.current=!1,_(!0)},[_]),E=v.useCallback(()=>{window.clearTimeout(g.current),g.current=0,_(!1)},[_]),P=v.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{S.current=!0,_(!0),g.current=0},b)},[b,_]);v.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]);const I=f??m;return h.jsx(_g,{...c,children:h.jsx(f_,{scope:t,contentId:I,setContentId:p,open:C,stateAttribute:w,trigger:u,onTriggerChange:d,onTriggerEnter:v.useCallback(()=>{l.isOpenDelayedRef.current?P():T()},[l.isOpenDelayedRef,P,T]),onTriggerLeave:v.useCallback(()=>{x?E():(window.clearTimeout(g.current),g.current=0)},[E,x]),onOpen:T,onClose:E,disableHoverableContent:x,children:n})})},"Tooltip"),Pg="TooltipTrigger",g_=v.forwardRef(Oe(function(t,n){const{__scopeTooltip:o,...r}=t,s=Yo(Pg,o),i=Ja(Pg,o),a=Es(o),l=v.useRef(null),c=Se(n,l,s.onTriggerChange),u=v.useRef(!1),d=v.useRef(!1),f=v.useCallback(()=>u.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),h.jsx(Ka,{asChild:!0,...a,children:h.jsx(de.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:c,onPointerMove:ge(t.onPointerMove,p=>{p.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),d.current=!0)}),onPointerLeave:ge(t.onPointerLeave,()=>{s.onTriggerLeave(),d.current=!1}),onPointerDown:ge(t.onPointerDown,()=>{s.open&&s.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:ge(t.onFocus,()=>{u.current||s.onOpen()}),onBlur:ge(t.onBlur,s.onClose),onClick:ge(t.onClick,s.onClose)})})},"TooltipTrigger")),Ig="TooltipPortal",[h_,m_]=Xa(Ig,{forceMount:void 0}),v_=Oe(e=>{const{__scopeTooltip:t,forceMount:n,children:o,container:r}=e,s=Yo(Ig,t);return h.jsx(h_,{scope:t,forceMount:n,children:h.jsx(xt,{present:n||s.open,children:h.jsx(wa,{asChild:!0,container:r,children:o})})})},"TooltipPortal"),Jo="TooltipContent",x_=v.forwardRef(Oe(function(t,n){const o=m_(Jo,t.__scopeTooltip),{forceMount:r=o.forceMount,side:s="top",...i}=t,a=Yo(Jo,t.__scopeTooltip);return h.jsx(xt,{present:r||a.open,children:a.disableHoverableContent?h.jsx(Ag,{side:s,...i,ref:n}):h.jsx(b_,{side:s,...i,ref:n})})},"TooltipContent")),b_=v.forwardRef(Oe(function(t,n){const o=Yo(Jo,t.__scopeTooltip),r=Ja(Jo,t.__scopeTooltip),s=v.useRef(null),i=Se(n,s),[a,l]=v.useState(null),{trigger:c,onClose:u}=o,d=s.current,{onPointerInTransitChange:f}=r,p=v.useCallback(()=>{l(null),f(!1)},[f]),m=v.useCallback((g,x)=>{const b=g.currentTarget,S={x:g.clientX,y:g.clientY},C=Og(S,b.getBoundingClientRect()),_=Dg(S,C),w=Ng(x.getBoundingClientRect()),T=Mg([..._,...w]);l(T),f(!0)},[f]);return v.useEffect(()=>()=>p(),[p]),v.useEffect(()=>{if(c&&d){const g=Oe(b=>m(b,d),"handleTriggerLeave"),x=Oe(b=>m(b,c),"handleContentLeave");return c.addEventListener("pointerleave",g),d.addEventListener("pointerleave",x),()=>{c.removeEventListener("pointerleave",g),d.removeEventListener("pointerleave",x)}}},[c,d,m,p]),v.useEffect(()=>{if(a){const g=Oe(x=>{const b=x.target,S={x:x.clientX,y:x.clientY},C=(c==null?void 0:c.contains(b))||(d==null?void 0:d.contains(b)),_=!kg(S,a);C?p():_&&(p(),u())},"handleTrackPointerGrace");return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[c,d,a,u,p]),h.jsx(Ag,{...t,ref:i})},"TooltipContentHoverable")),y_=ub("TooltipContent"),Ag=v.forwardRef(Oe(function(t,n){const{__scopeTooltip:o,children:r,"aria-label":s,id:i,onEscapeKeyDown:a,onPointerDownOutside:l,...c}=t,u=Yo(Jo,o),d=Es(o),{onClose:f}=u;v.useEffect(()=>(document.addEventListener(Ya,f),()=>document.removeEventListener(Ya,f)),[f]),v.useEffect(()=>{if(u.trigger){const m=Oe(g=>{g.target instanceof Node&&g.target.contains(u.trigger)&&f()},"handleScroll");return window.addEventListener("scroll",m,{capture:!0}),()=>window.removeEventListener("scroll",m,{capture:!0})}},[u.trigger,f]);const{setContentId:p}=u;return Ue(()=>(p(i),()=>{p(void 0)}),[i,p]),h.jsx(ha,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:m=>m.preventDefault(),onDismiss:f,children:h.jsxs(Tg,{"data-state":u.stateAttribute,role:s?void 0:"tooltip",id:s?void 0:u.contentId,...d,...c,ref:n,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[h.jsx(y_,{children:r}),s?h.jsx(i_,{id:u.contentId,role:"tooltip",children:s}):null]})})},"TooltipContentImpl")),C_=v.forwardRef(Oe(function(t,n){const{__scopeTooltip:o,...r}=t,s=Es(o);return h.jsx(Eg,{...s,...r,ref:n})},"TooltipArrow"));function Og(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,o,r,s)){case s:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}Oe(Og,"getExitSideFromRect");function Dg(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}Oe(Dg,"getPaddedExitPoints");function Ng(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}Oe(Ng,"getPointsFromRect");function kg(e,t){const{x:n,y:o}=e;let r=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],l=t[i],c=a.x,u=a.y,d=l.x,f=l.y;u>o!=f>o&&n<(d-c)*(o-u)/(f-u)+c&&(r=!r)}return r}Oe(kg,"isPointInPolygon");function Mg(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),$g(t)}Oe(Mg,"getHull");function $g(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(r.y-i.y)>=(s.y-i.y)*(r.x-i.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}Oe($g,"getHullPresorted");var S_=d_,w_=p_,__=g_,T_=v_,E_=x_,P_=C_;const Rg=({trigger:e,children:t,defaultOpen:n=!1,open:o,onOpenChange:r,delayDuration:s=300,skipDelayDuration:i=300,disableHoverableContent:a=!1})=>h.jsx(S_,{delayDuration:s,skipDelayDuration:i,disableHoverableContent:a,children:h.jsxs(w_,{defaultOpen:n,open:o,onOpenChange:r,children:[h.jsx(__,{asChild:!0,children:e}),t]})});Rg.displayName="OxTooltip";const Lg={oxTooltipContent:"_oxTooltipContent_10r73_2",oxTooltipArrow:"_oxTooltipArrow_10r73_2"},Fg=y.forwardRef(({className:e,children:t,side:n="top",sideOffset:o=6,align:r="center",showArrow:s=!0,dataTestid:i,...a},l)=>h.jsx(T_,{children:h.jsxs(E_,{ref:l,"data-slot":"tooltip-content","data-testid":i,className:G(Lg.oxTooltipContent,e),side:n,sideOffset:o,align:r,...a,children:[t,s&&h.jsx(P_,{className:Lg.oxTooltipArrow,width:10,height:5})]})}));Fg.displayName="OxTooltipContent";var I_=Object.defineProperty,yt=(e,t)=>I_(e,"name",{value:t,configurable:!0}),Qa="Popover",[zg]=ft(Qa,[_s]),Zo=_s(),[A_,sn]=zg(Qa),O_=yt(e=>{const{__scopePopover:t,children:n,open:o,defaultOpen:r,onOpenChange:s,modal:i=!1}=e,a=Zo(t),l=v.useRef(null),[c,u]=v.useState(!1),[d,f]=vt({prop:o,defaultProp:r??!1,onChange:s,caller:Qa});return h.jsx(_g,{...a,children:h.jsx(A_,{scope:t,contentId:qe(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:v.useCallback(()=>f(p=>!p),[f]),hasCustomAnchor:c,onCustomAnchorAdd:v.useCallback(()=>u(!0),[]),onCustomAnchorRemove:v.useCallback(()=>u(!1),[]),modal:i,children:n})})},"Popover"),D_="PopoverAnchor",N_=v.forwardRef(yt(function(t,n){const{__scopePopover:o,...r}=t,s=sn(D_,o),i=Zo(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:l}=s;return v.useEffect(()=>(a(),()=>l()),[a,l]),h.jsx(Ka,{...i,...r,ref:n})},"PopoverAnchor")),k_="PopoverTrigger",M_=v.forwardRef(yt(function(t,n){const{__scopePopover:o,...r}=t,s=sn(k_,o),i=Zo(o),a=Se(n,s.triggerRef),l=h.jsx(de.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":el(s.open),...r,ref:a,onClick:ge(t.onClick,s.onOpenToggle)});return s.hasCustomAnchor?l:h.jsx(Ka,{asChild:!0,...i,children:l})},"PopoverTrigger")),Vg="PopoverPortal",[$_,R_]=zg(Vg,{forceMount:void 0}),L_=yt(e=>{const{__scopePopover:t,forceMount:n,children:o,container:r}=e,s=sn(Vg,t);return h.jsx($_,{scope:t,forceMount:n,children:h.jsx(xt,{present:n||s.open,children:h.jsx(wa,{asChild:!0,container:r,children:o})})})},"PopoverPortal"),Qo="PopoverContent",F_=v.forwardRef(yt(function(t,n){const o=R_(Qo,t.__scopePopover),{forceMount:r=o.forceMount,...s}=t,i=sn(Qo,t.__scopePopover);return h.jsx(xt,{present:r||i.open,children:i.modal?h.jsx(V_,{...s,ref:n}):h.jsx(B_,{...s,ref:n})})},"PopoverContent")),z_=Jn("PopoverContent.RemoveScroll"),V_=v.forwardRef(yt(function(t,n){const o=sn(Qo,t.__scopePopover),r=v.useRef(null),s=Se(n,r),i=v.useRef(!1);return v.useEffect(()=>{const a=r.current;if(a)return Oa(a)},[]),h.jsx(as,{as:z_,allowPinchZoom:!0,children:h.jsx(Bg,{...t,ref:s,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ge(t.onCloseAutoFocus,a=>{var l;a.preventDefault(),i.current||(l=o.triggerRef.current)==null||l.focus()}),onPointerDownOutside:ge(t.onPointerDownOutside,a=>{const l=a.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;i.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:ge(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),B_=v.forwardRef(yt(function(t,n){const o=sn(Qo,t.__scopePopover),r=v.useRef(!1),s=v.useRef(!1);return h.jsx(Bg,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,l;(a=t.onCloseAutoFocus)==null||a.call(t,i),i.defaultPrevented||(r.current||(l=o.triggerRef.current)==null||l.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var c,u;(c=t.onInteractOutside)==null||c.call(t,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const a=i.target;((u=o.triggerRef.current)==null?void 0:u.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})},"PopoverContentNonModal")),Bg=v.forwardRef(yt(function(t,n){const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onInteractOutside:d,...f}=t,p=sn(Qo,o),m=Zo(o);return vp(),h.jsx(sp,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:h.jsx(ha,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:d,onEscapeKeyDown:l,onPointerDownOutside:c,onFocusOutside:u,onDismiss:()=>p.onOpenChange(!1),deferPointerDownOutside:!0,children:h.jsx(Tg,{"data-state":el(p.open),role:"dialog",id:p.contentId,...m,...f,ref:n,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl")),H_="PopoverClose",G_=v.forwardRef(yt(function(t,n){const{__scopePopover:o,...r}=t,s=sn(H_,o);return h.jsx(de.button,{type:"button",...r,ref:n,onClick:ge(t.onClick,()=>s.onOpenChange(!1))})},"PopoverClose")),j_=v.forwardRef(yt(function(t,n){const{__scopePopover:o,...r}=t,s=Zo(o);return h.jsx(Eg,{...s,...r,ref:n})},"PopoverArrow"));function el(e){return e?"open":"closed"}yt(el,"getState");var Hg=O_,Gg=N_,tl=M_,jg=L_,Wg=F_,W_=j_;const Ug=({trigger:e,children:t,defaultOpen:n=!1,open:o,onOpenChange:r,modal:s=!1})=>h.jsxs(Hg,{defaultOpen:n,open:o,onOpenChange:r,modal:s,children:[h.jsx(tl,{asChild:!0,children:e}),t]});Ug.displayName="OxPopover";const qg={oxPopoverContent:"_oxPopoverContent_1kkry_2",oxPopoverArrow:"_oxPopoverArrow_1kkry_2"},Kg=y.forwardRef(({className:e,children:t,side:n="bottom",sideOffset:o=6,align:r="center",showArrow:s=!1,dataTestid:i,...a},l)=>h.jsx(jg,{children:h.jsxs(Wg,{ref:l,"data-slot":"popover-content","data-testid":i,className:G(qg.oxPopoverContent,e),side:n,sideOffset:o,align:r,...a,children:[t,s&&h.jsx(W_,{className:qg.oxPopoverArrow,width:12,height:6})]})}));Kg.displayName="OxPopoverContent";function Xg(e){const t=e+"CollectionProvider",[n,o]=ft(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:x,children:b}=g,S=v.useRef(null),C=v.useRef(new Map).current;return h.jsx(r,{scope:x,itemMap:C,collectionRef:S,children:b})};i.displayName=t;const a=e+"CollectionSlot",l=Jn(a),c=v.forwardRef((g,x)=>{const{scope:b,children:S}=g,C=s(a,b),_=Se(x,C.collectionRef);return h.jsx(l,{ref:_,children:S})});c.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",f=Jn(u),p=v.forwardRef((g,x)=>{const{scope:b,children:S,...C}=g,_=v.useRef(null),w=Se(x,_),T=s(u,b);return v.useEffect(()=>(T.itemMap.set(_,{ref:_,...C}),()=>void T.itemMap.delete(_))),h.jsx(f,{[d]:"",ref:w,children:S})});p.displayName=u;function m(g){const x=s(e+"CollectionConsumer",g);return v.useCallback(()=>{const S=x.collectionRef.current;if(!S)return[];const C=Array.from(S.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((T,E)=>C.indexOf(T.ref.current)-C.indexOf(E.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:c,ItemSlot:p},m,o]}var U_=Object.defineProperty,er=(e,t)=>U_(e,"name",{value:t,configurable:!0}),nl="Collapsible",[q_,Yg]=ft(nl),[K_,ol]=q_(nl),X_=v.forwardRef(er(function(t,n){const{__scopeCollapsible:o,open:r,defaultOpen:s,disabled:i,onOpenChange:a,...l}=t,[c,u]=vt({prop:r,defaultProp:s??!1,onChange:a,caller:nl});return h.jsx(K_,{scope:o,disabled:i,contentId:qe(),open:c,onOpenToggle:v.useCallback(()=>u(d=>!d),[u]),children:h.jsx(de.div,{"data-state":Ps(c),"data-disabled":i?"":void 0,...l,ref:n})})},"Collapsible")),Y_="CollapsibleTrigger",J_=v.forwardRef(er(function(t,n){const{__scopeCollapsible:o,...r}=t,s=ol(Y_,o);return h.jsx(de.button,{type:"button","aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open||!1,"data-state":Ps(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...r,ref:n,onClick:ge(t.onClick,s.onOpenToggle)})},"CollapsibleTrigger")),Jg="CollapsibleContent",Z_=v.forwardRef(er(function(t,n){const{forceMount:o,...r}=t,s=ol(Jg,t.__scopeCollapsible);return h.jsx(xt,{present:o||s.open,children:({present:i})=>h.jsx(Q_,{...r,ref:n,present:i})})},"CollapsibleContent")),Q_=v.forwardRef(er(function(t,n){const{__scopeCollapsible:o,present:r,children:s,...i}=t,a=ol(Jg,o),[l,c]=v.useState(r),u=v.useRef(null),d=Se(n,u),f=v.useRef(0),p=f.current,m=v.useRef(0),g=m.current,x=a.open||l,b=v.useRef(x),S=v.useRef(void 0);return v.useEffect(()=>{const C=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(C)},[]),Ue(()=>{const C=u.current;if(C){S.current=S.current||{transitionDuration:C.style.transitionDuration,animationName:C.style.animationName},C.style.transitionDuration="0s",C.style.animationName="none";const _=C.getBoundingClientRect();f.current=_.height,m.current=_.width,b.current||(C.style.transitionDuration=S.current.transitionDuration,C.style.animationName=S.current.animationName),c(r)}},[a.open,r]),h.jsx(de.div,{"data-state":Ps(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!x,...i,ref:d,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...t.style},children:x&&s})},"CollapsibleContentImpl"));function Ps(e){return e?"open":"closed"}er(Ps,"getState");var e1=X_,t1=J_,n1=Z_,o1=v.createContext(void 0);function Is(e){const t=v.useContext(o1);return e||t||"ltr"}var r1=Object.defineProperty,rt=(e,t)=>r1(e,"name",{value:t,configurable:!0}),Dt="Accordion",s1=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[rl,i1,a1]=Xg(Dt),[As]=ft(Dt,[a1,Yg]),sl=Yg(),l1=v.forwardRef(rt(function(t,n){const{type:o,...r}=t,s=r,i=r;return h.jsx(rl.Provider,{scope:t.__scopeAccordion,children:o==="multiple"?h.jsx(f1,{...i,ref:n}):h.jsx(d1,{...s,ref:n})})},"Accordion")),[Zg,c1]=As(Dt),[Qg,u1]=As(Dt,{collapsible:!1}),d1=v.forwardRef(rt(function(t,n){const{value:o,defaultValue:r,onValueChange:s=rt(()=>{},"onValueChange"),collapsible:i=!1,...a}=t,[l,c]=vt({prop:o,defaultProp:r??"",onChange:s,caller:Dt});return h.jsx(Zg,{scope:t.__scopeAccordion,value:v.useMemo(()=>l?[l]:[],[l]),onItemOpen:c,onItemClose:v.useCallback(()=>i&&c(""),[i,c]),children:h.jsx(Qg,{scope:t.__scopeAccordion,collapsible:i,children:h.jsx(eh,{...a,ref:n})})})},"AccordionImplSingle")),f1=v.forwardRef(rt(function(t,n){const{value:o,defaultValue:r,onValueChange:s=rt(()=>{},"onValueChange"),...i}=t,[a,l]=vt({prop:o,defaultProp:r??[],onChange:s,caller:Dt}),c=v.useCallback(d=>l((f=[])=>[...f,d]),[l]),u=v.useCallback(d=>l((f=[])=>f.filter(p=>p!==d)),[l]);return h.jsx(Zg,{scope:t.__scopeAccordion,value:a,onItemOpen:c,onItemClose:u,children:h.jsx(Qg,{scope:t.__scopeAccordion,collapsible:!0,children:h.jsx(eh,{...i,ref:n})})})},"AccordionImplMultiple")),[p1,Os]=As(Dt),eh=v.forwardRef(rt(function(t,n){const{__scopeAccordion:o,disabled:r,dir:s,orientation:i="vertical",...a}=t,l=v.useRef(null),c=Se(l,n),u=i1(o),f=Is(s)==="ltr",p=ge(t.onKeyDown,m=>{var I;if(!s1.includes(m.key))return;const g=m.target,x=u().filter(N=>{var H;return!((H=N.ref.current)!=null&&H.disabled)}),b=x.findIndex(N=>N.ref.current===g),S=x.length;if(b===-1)return;m.preventDefault();let C=b;const _=0,w=S-1,T=rt(()=>{C=b+1,C>w&&(C=_)},"moveNext"),E=rt(()=>{C=b-1,C<_&&(C=w)},"movePrev");switch(m.key){case"Home":C=_;break;case"End":C=w;break;case"ArrowRight":i==="horizontal"&&(f?T():E());break;case"ArrowDown":i==="vertical"&&T();break;case"ArrowLeft":i==="horizontal"&&(f?E():T());break;case"ArrowUp":i==="vertical"&&E();break}const P=C%S;(I=x[P].ref.current)==null||I.focus()});return h.jsx(p1,{scope:o,disabled:r,direction:s,orientation:i,children:h.jsx(rl.Slot,{scope:o,children:h.jsx(de.div,{...a,"data-orientation":i,ref:c,onKeyDown:r?void 0:p})})})},"AccordionImpl")),il="AccordionItem",[g1,al]=As(il),h1=v.forwardRef(rt(function(t,n){const{__scopeAccordion:o,value:r,...s}=t,i=Os(il,o),a=c1(il,o),l=sl(o),c=qe(),u=r&&a.value.includes(r)||!1,d=i.disabled||t.disabled;return h.jsx(g1,{scope:o,open:u,disabled:d,triggerId:c,children:h.jsx(e1,{"data-orientation":i.orientation,"data-state":ll(u),...l,...s,ref:n,disabled:d,open:u,onOpenChange:f=>{f?a.onItemOpen(r):a.onItemClose(r)}})})},"AccordionItem")),m1="AccordionHeader",v1=v.forwardRef(rt(function(t,n){const{__scopeAccordion:o,...r}=t,s=Os(Dt,o),i=al(m1,o);return h.jsx(de.h3,{"data-orientation":s.orientation,"data-state":ll(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:n})},"AccordionHeader")),th="AccordionTrigger",x1=v.forwardRef(rt(function(t,n){const{__scopeAccordion:o,...r}=t,s=Os(Dt,o),i=al(th,o),a=u1(th,o),l=sl(o);return h.jsx(rl.ItemSlot,{scope:o,children:h.jsx(t1,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":s.orientation,id:i.triggerId,...l,...r,ref:n})})},"AccordionTrigger")),b1="AccordionContent",y1=v.forwardRef(rt(function(t,n){const{__scopeAccordion:o,...r}=t,s=Os(Dt,o),i=al(b1,o),a=sl(o);return h.jsx(n1,{role:"region","aria-labelledby":i.triggerId,"data-orientation":s.orientation,...a,...r,ref:n,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})},"AccordionContent"));function ll(e){return e?"open":"closed"}rt(ll,"getState");var C1=l1,S1=h1,w1=v1,_1=x1,T1=y1;const E1={oxAccordion:"_oxAccordion_irqe1_2"},nh=y.forwardRef(({className:e,...t},n)=>h.jsx(C1,{ref:n,"data-slot":"accordion",className:G(E1.oxAccordion,e),...t}));nh.displayName="OxAccordion";const P1={oxAccordionItem:"_oxAccordionItem_flqek_2"},oh=y.forwardRef(({className:e,...t},n)=>h.jsx(S1,{ref:n,"data-slot":"accordion-item",className:G(P1.oxAccordionItem,e),...t}));oh.displayName="OxAccordionItem";const cl={oxAccordionHeader:"_oxAccordionHeader_1amu3_2",oxAccordionTrigger:"_oxAccordionTrigger_1amu3_2",oxAccordionChevron:"_oxAccordionChevron_1amu3_2"},rh=y.forwardRef(({className:e,children:t,...n},o)=>h.jsx(w1,{className:cl.oxAccordionHeader,children:h.jsxs(_1,{ref:o,"data-slot":"accordion-trigger",className:G(cl.oxAccordionTrigger,e),...n,children:[t,h.jsx(Pn,{className:cl.oxAccordionChevron})]})}));rh.displayName="OxAccordionTrigger";const sh={oxAccordionContent:"_oxAccordionContent_e3t2z_2",oxAccordionContentInner:"_oxAccordionContentInner_e3t2z_2"},ih=y.forwardRef(({className:e,children:t,...n},o)=>h.jsx(T1,{ref:o,"data-slot":"accordion-content",className:G(sh.oxAccordionContent,e),...n,children:h.jsx("div",{className:sh.oxAccordionContentInner,children:t})}));ih.displayName="OxAccordionContent";var ul=!1;function I1(){const[e,t]=v.useState(ul);return v.useEffect(()=>{ul||(ul=!0,t(!0))},[]),e}var ah=v[" useSyncExternalStore ".trim().toString()];function A1(){return()=>{}}function O1(){return ah(A1,()=>!0,()=>!1)}var D1=typeof ah=="function"?O1:I1,N1=Object.defineProperty,Ln=(e,t)=>N1(e,"name",{value:t,configurable:!0}),dl="rovingFocusGroup.onEntryFocus",k1={bubbles:!1,cancelable:!0},Ds="RovingFocusGroup",[fl,lh,M1]=Xg(Ds),[$1,Ns]=ft(Ds,[M1]),[R1,L1]=$1(Ds),F1=v.forwardRef(Ln(function(t,n){return h.jsx(fl.Provider,{scope:t.__scopeRovingFocusGroup,children:h.jsx(fl.Slot,{scope:t.__scopeRovingFocusGroup,children:h.jsx(z1,{...t,ref:n})})})},"RovingFocusGroup")),z1=v.forwardRef(Ln(function(t,n){const{__scopeRovingFocusGroup:o,orientation:r,loop:s=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=t,p=v.useRef(null),m=Se(n,p),g=Is(i),[x,b]=vt({prop:a,defaultProp:l??null,onChange:c,caller:Ds}),[S,C]=v.useState(!1),_=kn(u),w=lh(o),T=v.useRef(!1),[E,P]=v.useState(0);return v.useEffect(()=>{const I=p.current;if(I)return I.addEventListener(dl,_),()=>I.removeEventListener(dl,_)},[_]),h.jsx(R1,{scope:o,orientation:r,dir:g,loop:s,currentTabStopId:x,onItemFocus:v.useCallback(I=>b(I),[b]),onItemShiftTab:v.useCallback(()=>C(!0),[]),onFocusableItemAdd:v.useCallback(()=>P(I=>I+1),[]),onFocusableItemRemove:v.useCallback(()=>P(I=>I-1),[]),children:h.jsx(de.div,{tabIndex:S||E===0?-1:0,"data-orientation":r,...f,ref:m,style:{outline:"none",...t.style},onMouseDown:ge(t.onMouseDown,()=>{T.current=!0}),onFocus:ge(t.onFocus,I=>{const N=!T.current;if(I.target===I.currentTarget&&N&&!S){const H=new CustomEvent(dl,k1);if(I.currentTarget.dispatchEvent(H),!H.defaultPrevented){const L=w().filter(q=>q.focusable),X=L.find(q=>q.active),W=L.find(q=>q.id===x),Y=[X,W,...L].filter(Boolean).map(q=>q.ref.current);pl(Y,d)}}T.current=!1}),onBlur:ge(t.onBlur,()=>C(!1))})})},"RovingFocusGroupImpl")),V1="RovingFocusGroupItem",B1=v.forwardRef(Ln(function(t,n){const{__scopeRovingFocusGroup:o,focusable:r=!0,active:s=!1,tabStopId:i,children:a,...l}=t,c=qe(),u=i||c,d=L1(V1,o),f=d.currentTabStopId===u,p=lh(o),{onFocusableItemAdd:m,onFocusableItemRemove:g,currentTabStopId:x}=d,b=D1();return Ue(()=>{if(!(!b||!r))return m(),()=>g()},[b,r,m,g]),v.useEffect(()=>{if(!(b||!r))return m(),()=>g()},[b,r,m,g]),h.jsx(fl.ItemSlot,{scope:o,id:u,focusable:r,active:s,children:h.jsx(de.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...l,ref:n,onMouseDown:ge(t.onMouseDown,S=>{r?d.onItemFocus(u):S.preventDefault()}),onFocus:ge(t.onFocus,()=>d.onItemFocus(u)),onKeyDown:ge(t.onKeyDown,S=>{if(S.key==="Tab"&&S.shiftKey){d.onItemShiftTab();return}if(S.target!==S.currentTarget)return;const C=uh(S,d.orientation,d.dir);if(C!==void 0){if(S.metaKey||S.ctrlKey||S.altKey||S.shiftKey)return;S.preventDefault();let w=p().filter(T=>T.focusable).map(T=>T.ref.current);if(C==="last")w.reverse();else if(C==="prev"||C==="next"){C==="prev"&&w.reverse();const T=w.indexOf(S.currentTarget);w=d.loop?dh(w,T+1):w.slice(T+1)}setTimeout(()=>pl(w))}}),children:typeof a=="function"?a({isCurrentTabStop:f,hasTabStop:x!=null}):a})})},"RovingFocusGroupItem")),H1={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ch(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}Ln(ch,"getDirectionAwareKey");function uh(e,t,n){const o=ch(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return H1[o]}Ln(uh,"getFocusIntent");function pl(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}Ln(pl,"focusFirst");function dh(e,t){return e.map((n,o)=>e[(t+o)%e.length])}Ln(dh,"wrapArray");var fh=F1,ph=B1,G1=Object.defineProperty,go=(e,t)=>G1(e,"name",{value:t,configurable:!0}),gl="Tabs",[j1]=ft(gl,[Ns]),gh=Ns(),[W1,hl]=j1(gl),U1=v.forwardRef(go(function(t,n){const{__scopeTabs:o,value:r,onValueChange:s,defaultValue:i,orientation:a="horizontal",dir:l,activationMode:c="automatic",...u}=t,d=Is(l),[f,p]=vt({prop:r,onChange:s,defaultProp:i??"",caller:gl});return h.jsx(W1,{scope:o,baseId:qe(),value:f,onValueChange:p,orientation:a,dir:d,activationMode:c,children:h.jsx(de.div,{dir:d,"data-orientation":a,...u,ref:n})})},"Tabs")),q1="TabsList",K1=v.forwardRef(go(function(t,n){const{__scopeTabs:o,loop:r=!0,...s}=t,i=hl(q1,o),a=gh(o);return h.jsx(fh,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:r,children:h.jsx(de.div,{role:"tablist","aria-orientation":i.orientation,...s,ref:n})})},"TabsList")),X1="TabsTrigger",Y1=v.forwardRef(go(function(t,n){const{__scopeTabs:o,value:r,disabled:s=!1,...i}=t,a=hl(X1,o),l=gh(o),c=ml(a.baseId,r),u=vl(a.baseId,r),d=r===a.value;return h.jsx(ph,{asChild:!0,...l,focusable:!s,active:d,children:h.jsx(de.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:c,...i,ref:n,onMouseDown:ge(t.onMouseDown,f=>{!s&&f.button===0&&f.ctrlKey===!1?a.onValueChange(r):f.preventDefault()}),onKeyDown:ge(t.onKeyDown,f=>{s||f.target!==f.currentTarget||[" ","Enter"].includes(f.key)&&a.onValueChange(r)}),onFocus:ge(t.onFocus,()=>{const f=a.activationMode!=="manual";!d&&!s&&f&&a.onValueChange(r)})})})},"TabsTrigger")),J1="TabsContent",Z1=v.forwardRef(go(function(t,n){const{__scopeTabs:o,value:r,forceMount:s,children:i,...a}=t,l=hl(J1,o),c=ml(l.baseId,r),u=vl(l.baseId,r),d=r===l.value,f=v.useRef(d);return v.useEffect(()=>{const p=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(p)},[]),h.jsx(xt,{present:s||d,children:({present:p})=>h.jsx(de.div,{"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":c,hidden:!p,id:u,tabIndex:0,...a,ref:n,style:{...t.style,animationDuration:f.current?"0s":void 0},children:p&&i})})},"TabsContent"));function ml(e,t){return`${e}-trigger-${t}`}go(ml,"makeTriggerId");function vl(e,t){return`${e}-content-${t}`}go(vl,"makeContentId");var Q1=U1,eT=K1,tT=Y1,nT=Z1;const oT={oxToggleTabs:"_oxToggleTabs_1grj2_2"},hh=y.forwardRef(({className:e,orientation:t="horizontal",dataTestid:n,...o},r)=>h.jsx(Q1,{ref:r,"data-slot":"toggle-tabs","data-testid":n,orientation:t,className:G(oT.oxToggleTabs,e),...o}));hh.displayName="OxToggleTabs";const rT={oxToggleTabsList:"_oxToggleTabsList_va6a0_2"},mh=y.forwardRef(({className:e,loop:t=!0,...n},o)=>h.jsx(eT,{ref:o,"data-slot":"toggle-tabs-list",loop:t,className:G(rT.oxToggleTabsList,e),...n}));mh.displayName="OxToggleTabsList";const sT={oxToggleTabsTrigger:"_oxToggleTabsTrigger_ndpkg_2"},vh=y.forwardRef(({className:e,...t},n)=>h.jsx(tT,{ref:n,"data-slot":"toggle-tabs-trigger",className:G(sT.oxToggleTabsTrigger,e),...t}));vh.displayName="OxToggleTabsTrigger";const iT={oxToggleTabsContent:"_oxToggleTabsContent_1uvag_2"},xh=y.forwardRef(({className:e,...t},n)=>h.jsx(nT,{ref:n,"data-slot":"toggle-tabs-content",className:G(iT.oxToggleTabsContent,e),...t}));xh.displayName="OxToggleTabsContent";const xl={oxPageControl:"_oxPageControl_1086x_2",oxPageControlDot:"_oxPageControlDot_1086x_2",oxPageControlLabel:"_oxPageControlLabel_1086x_2"},bh=y.forwardRef(({className:e,count:t,index:n=0,interactive:o=!1,onIndexChange:r,dataTestid:s,...i},a)=>{const l=Math.min(Math.max(0,Math.trunc(n)),Math.max(0,t-1));return h.jsx("div",{ref:a,"data-slot":"page-control","data-testid":s,className:G(xl.oxPageControl,e),...i,children:yh(t,l).map(c=>{const u={className:xl.oxPageControlDot,"data-size":c.size,"data-active":c.index===l,"data-testid":`${s}-dot-${c.index}`};return o?h.jsx("button",{type:"button","data-slot":"page-control-dot","aria-current":c.index===l?"page":void 0,onClick:()=>r==null?void 0:r(c.index),...u,children:h.jsx("span",{className:xl.oxPageControlLabel,children:c.index+1})},c.index):h.jsx("span",{"data-slot":"page-control-dot",...u},c.index)})})});bh.displayName="OxPageControl";const Fn=7,yh=(e,t)=>{const n=Math.max(0,Math.trunc(e));if(n===0)return[];if(n<=Fn)return Array.from({length:n},(l,c)=>({index:c,size:"full"}));const o=Math.min(Math.max(0,Math.trunc(t)),n-1),r=Math.min(Math.max(0,o-Math.floor(Fn/2)),n-Fn),s=r>0,i=r+Fn<n,a=Fn-1;return Array.from({length:Fn},(l,c)=>{let u="full";return s&&c===0?u="small":s&&c===1&&(u="medium"),i&&c===a?u="small":i&&c===a-1&&(u="medium"),{index:r+c,size:u}})},aT={oxBreadcrumb:"_oxBreadcrumb_1baee_2"},Ch=y.forwardRef(({className:e,...t},n)=>h.jsx("nav",{ref:n,"data-slot":"breadcrumb","aria-label":"breadcrumb",className:G(aT.oxBreadcrumb,e),...t}));Ch.displayName="OxBreadcrumb";const lT={oxBreadcrumbList:"_oxBreadcrumbList_1tsca_2"},Sh=y.forwardRef(({className:e,...t},n)=>h.jsx("ol",{ref:n,"data-slot":"breadcrumb-list",className:G(lT.oxBreadcrumbList,e),...t}));Sh.displayName="OxBreadcrumbList";const cT={oxBreadcrumbItem:"_oxBreadcrumbItem_67rk1_2"},wh=y.forwardRef(({className:e,...t},n)=>h.jsx("li",{ref:n,"data-slot":"breadcrumb-item",className:G(cT.oxBreadcrumbItem,e),...t}));wh.displayName="OxBreadcrumbItem";const _h={oxBreadcrumbLink:"_oxBreadcrumbLink_sjo2m_2",oxBreadcrumbLinkCurrent:"_oxBreadcrumbLinkCurrent_sjo2m_2"},Th=y.forwardRef(({className:e,asChild:t=!1,current:n=!1,href:o,...r},s)=>{const i=t?Rr:"a";return h.jsx(i,{ref:s,href:t?void 0:o,"data-slot":"breadcrumb-link",className:G(_h.oxBreadcrumbLink,n&&_h.oxBreadcrumbLinkCurrent,e),...r})});Th.displayName="OxBreadcrumbLink";const uT={oxBreadcrumbPage:"_oxBreadcrumbPage_13kk4_2"},Eh=y.forwardRef(({className:e,...t},n)=>h.jsx("span",{ref:n,role:"link","aria-disabled":"true","aria-current":"page","data-slot":"breadcrumb-page",className:G(uT.oxBreadcrumbPage,e),...t}));Eh.displayName="OxBreadcrumbPage";const Ph={oxBreadcrumbSeparator:"_oxBreadcrumbSeparator_10ov8_2",oxBreadcrumbSeparatorIcon:"_oxBreadcrumbSeparatorIcon_10ov8_2"},Ih=y.forwardRef(({className:e,children:t,dataTestid:n,...o},r)=>h.jsx("li",{ref:r,role:"presentation","aria-hidden":"true","data-slot":"breadcrumb-separator","data-testid":n,className:G(Ph.oxBreadcrumbSeparator,e),...o,children:t??h.jsx("svg",{"data-testid":`${n}-icon`,className:Ph.oxBreadcrumbSeparatorIcon,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",children:h.jsx("path",{d:"m9 18 6-6-6-6"})})}));Ih.displayName="OxBreadcrumbSeparator";const bl={oxBreadcrumbEllipsis:"_oxBreadcrumbEllipsis_cg9sx_2",oxBreadcrumbEllipsisIcon:"_oxBreadcrumbEllipsisIcon_cg9sx_2",oxSrOnly:"_oxSrOnly_cg9sx_2"},Ah=y.forwardRef(({className:e,children:t,dataTestid:n,...o},r)=>h.jsxs("span",{ref:r,role:"presentation","aria-hidden":"true","data-slot":"breadcrumb-ellipsis","data-testid":n,className:G(bl.oxBreadcrumbEllipsis,e),...o,children:[t??h.jsxs("svg",{"data-testid":`${n}-icon`,className:bl.oxBreadcrumbEllipsisIcon,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",children:[h.jsx("circle",{cx:"12",cy:"12",r:"1"}),h.jsx("circle",{cx:"19",cy:"12",r:"1"}),h.jsx("circle",{cx:"5",cy:"12",r:"1"})]}),h.jsx("span",{className:bl.oxSrOnly,children:"More"})]}));Ah.displayName="OxBreadcrumbEllipsis";const Oh={"ox-counter":"_ox-counter_42os2_2","ox-counter--over":"_ox-counter--over_42os2_2","ox-counter-value":"_ox-counter-value_42os2_2"},Dh=y.forwardRef(({className:e,value:t,max:n,dataTestid:o,...r},s)=>{const i=t>n?"over":"within";return h.jsxs("span",{ref:s,className:G(We(Oh,Nh({state:i})),e),"data-slot":"counter","data-testid":o,...r,children:[h.jsx("span",{className:Oh["ox-counter-value"],children:t}),"/",n]})});Dh.displayName="OxCounter";const Nh=je("ox-counter",{variants:{state:{within:"ox-counter--within",over:"ox-counter--over"}},defaultVariants:{state:"within"}}),tr={oxFieldGroup:"_oxFieldGroup_l4i6z_2",oxFieldGroupError:"_oxFieldGroupError_l4i6z_2",oxFieldGroupWarning:"_oxFieldGroupWarning_l4i6z_2",oxFieldGroupSuccess:"_oxFieldGroupSuccess_l4i6z_2"},dT={default:tr.fieldGroupDefault,error:tr.oxFieldGroupError,success:tr.oxFieldGroupSuccess,warning:tr.oxFieldGroupWarning},kh=y.forwardRef(({className:e,variant:t="default",children:n,...o},r)=>h.jsx("div",{ref:r,"data-slot":"field-group",className:G(tr.oxFieldGroup,dT[t],e),...o,children:n}));kh.displayName="OxFieldGroup";const fT={oxFieldLabel:"_oxFieldLabel_1m3uo_2"},Mh=y.forwardRef(({className:e,children:t,...n},o)=>h.jsx("label",{ref:o,"data-slot":"label",className:G(fT.oxFieldLabel,e),...n,children:t}));Mh.displayName="OxFieldLabel";const ks={oxFieldMessage:"_oxFieldMessage_xoufj_2",oxFieldMessageError:"_oxFieldMessageError_xoufj_2",oxFieldMessageSuccess:"_oxFieldMessageSuccess_xoufj_2",oxFieldMessageWarning:"_oxFieldMessageWarning_xoufj_2"},pT={default:void 0,error:ks.oxFieldMessageError,success:ks.oxFieldMessageSuccess,warning:ks.oxFieldMessageWarning},$h=y.forwardRef(({className:e,message:t="",variant:n="default",children:o,...r},s)=>h.jsx("div",{ref:s,"data-slot":"message",role:n==="error"?"alert":void 0,"aria-live":n==="error"?"polite":void 0,className:G(ks.oxFieldMessage,pT[n],e),...r,children:o??t}));$h.displayName="OxFieldMessage";const gT={oxInputGroup:"_oxInputGroup_2wka9_2"},Rh=y.forwardRef(({className:e,children:t,...n},o)=>h.jsx("span",{ref:o,"data-slot":"controller",className:G(gT.oxInputGroup,e),...n,children:t}));Rh.displayName="OxInputGroup";const nr={oxInput:"_oxInput_12jhm_2"},ho={sm:"ox-input-sm",md:"ox-input-md",lg:"ox-input-lg"},Lh=y.forwardRef(({className:e,size:t="md",field:n,onFieldChange:o,value:r,onChange:s,type:i="text",...a},l)=>h.jsx("input",{ref:l,type:i,"data-slot":"controller",className:G(nr.oxInput,ho[t],e),value:n??r,onChange:c=>{o==null||o(c.target.value),s==null||s(c)},...a}));Lh.displayName="OxInputText";const hT={oxInputNumber:"_oxInputNumber_1j8f7_2"},Fh=y.createContext(null);function yl(){const e=y.useContext(Fh);if(!e)throw new Error("InputNumber components must be used within <InputNumber>.");return e}function Cl(e,t,n){let o=e;return t!==void 0&&(o=Math.max(o,t)),n!==void 0&&(o=Math.min(o,n)),o}const zh=y.forwardRef(({className:e,children:t,size:n="md",value:o,defaultValue:r=null,onValueChange:s,min:i,max:a,step:l=1,disabled:c=!1,...u},d)=>{const[f,p]=y.useState(r),m=o!==void 0,g=m?o:f,x=y.useCallback(I=>{m||p(I),s==null||s(I)},[m,s]),b=g??i??0,S=y.useCallback(()=>{c||x(Cl(b+l,i,a))},[c,x,b,l,i,a]),C=y.useCallback(()=>{c||x(Cl(b-l,i,a))},[c,x,b,l,i,a]),_=y.useCallback(I=>{if(I.trim()===""){x(null);return}const N=Number(I);Number.isNaN(N)||x(Cl(N,i,a))},[x,i,a]),w=!c&&(a===void 0||(g??i??0)<a),T=!c&&(i===void 0||(g??i??0)>i),E=g==null?"":String(g),P=y.useMemo(()=>({value:g??null,setInputValue:_,increment:S,decrement:C,canIncrement:w,canDecrement:T,disabled:c,min:i,max:a,step:l,displayValue:E}),[g,_,S,C,w,T,c,i,a,l,E]);return h.jsx(Fh.Provider,{value:P,children:h.jsx("div",{ref:d,role:"group","data-slot":"input-number",className:G(hT.oxInputNumber,ho[n],e),...u,children:t})})});zh.displayName="OxInputNumber";const mT={oxInputNumberContent:"_oxInputNumberContent_1g6fq_2"},Vh=y.forwardRef(({className:e,children:t,...n},o)=>h.jsx("div",{ref:o,"data-slot":"controller",className:G(mT.oxInputNumberContent,e),...n,children:t}));Vh.displayName="OxInputNumberContent";const Bh={oxNumberFieldStep:"_oxNumberFieldStep_1hxou_2",oxStepIcon:"_oxStepIcon_1hxou_2"},Hh=y.forwardRef(({className:e,children:t,onClick:n,disabled:o,...r},s)=>{const{decrement:i,canDecrement:a,disabled:l}=yl(),c=o??(l||!a);return h.jsx("button",{ref:s,type:"button",tabIndex:-1,"data-slot":"decrement",disabled:c,className:G(Bh.oxNumberFieldStep,e),onClick:u=>{i(),n==null||n(u)},...r,children:t??h.jsx(Pn,{className:Bh.oxStepIcon})})});Hh.displayName="OxInputNumberDecrement";const Gh={oxNumberFieldStep:"_oxNumberFieldStep_uthfu_2",oxStepIcon:"_oxStepIcon_uthfu_2"},jh=y.forwardRef(({className:e,children:t,onClick:n,disabled:o,...r},s)=>{const{increment:i,canIncrement:a,disabled:l}=yl(),c=o??(l||!a);return h.jsx("button",{ref:s,type:"button",tabIndex:-1,"data-slot":"increment",disabled:c,className:G(Gh.oxNumberFieldStep,e),onClick:u=>{i(),n==null||n(u)},...r,children:t??h.jsx(Nd,{className:Gh.oxStepIcon})})});jh.displayName="OxInputNumberIncrement";const vT={oxNumberFieldInput:"_oxNumberFieldInput_1grlt_2"},Wh=y.forwardRef(({className:e,onChange:t,onKeyDown:n,...o},r)=>{const{displayValue:s,setInputValue:i,increment:a,decrement:l,disabled:c,value:u,min:d,max:f}=yl();return h.jsx("input",{ref:r,type:"text",inputMode:"decimal",role:"spinbutton",autoComplete:"off","data-slot":"controller",disabled:c,"aria-valuenow":u??void 0,"aria-valuemin":d,"aria-valuemax":f,value:s,className:G(nr.oxInput,vT.oxNumberFieldInput,e),onChange:p=>{i(p.target.value),t==null||t(p)},onKeyDown:p=>{p.key==="ArrowUp"?(p.preventDefault(),a()):p.key==="ArrowDown"&&(p.preventDefault(),l()),n==null||n(p)},...o})});Wh.displayName="OxInputNumberInput";const xT={oxInputPassword:"_oxInputPassword_v2yoc_2"},Uh=y.createContext(null);function Sl(){const e=y.useContext(Uh);if(!e)throw new Error("InputPassword subcomponents must be used inside an <InputPassword> root.");return e}const qh=y.forwardRef(({className:e,children:t,size:n="md",field:o,onFieldChange:r,visible:s,onVisibleChange:i,dataTestid:a,...l},c)=>{const[u,d]=y.useState(""),[f,p]=y.useState(!1),m=o??u,g=s??f,x=y.useCallback(C=>{o===void 0&&d(C),r==null||r(C)},[o,r]),b=y.useCallback(()=>{const C=!g;s===void 0&&p(C),i==null||i(C)},[g,s,i]),S=y.useMemo(()=>({field:m,setField:x,visible:g,toggle:b}),[m,x,g,b]);return h.jsx(Uh.Provider,{value:S,children:h.jsx("div",{ref:c,"data-slot":"controller","data-testid":a,className:G(xT.oxInputPassword,ho[n],e),...l,children:t})})});qh.displayName="OxInputPassword";const bT={oxInputPasswordInput:"_oxInputPasswordInput_1lf41_2"},Kh=y.forwardRef(({className:e,onChange:t,...n},o)=>{const{field:r,setField:s,visible:i}=Sl();return h.jsx("input",{ref:o,type:i?"text":"password",value:r,autoComplete:"current-password","data-slot":"controller",className:G(nr.oxInput,bT.oxInputPasswordInput,e),onChange:a=>{s(a.target.value),t==null||t(a)},...n})});Kh.displayName="OxInputPasswordInput";const wl={oxInputPasswordToggle:"_oxInputPasswordToggle_ts9kn_2",oxToggleIcon:"_oxToggleIcon_ts9kn_2"},Xh=y.forwardRef(({className:e,children:t,onClick:n,...o},r)=>{const{visible:s,toggle:i}=Sl();return h.jsx("button",{ref:r,type:"button","data-slot":"toggle","aria-pressed":s,"aria-label":s?"Hide password":"Show password",className:G(wl.oxInputPasswordToggle,e),onClick:a=>{i(),n==null||n(a)},...o,children:typeof t=="function"?t({visible:s}):t??(s?h.jsx(dy,{className:wl.oxToggleIcon}):h.jsx(fy,{className:wl.oxToggleIcon}))})});Xh.displayName="OxInputPasswordToggle";const yT={oxInputOtp:"_oxInputOtp_iklxg_2"},Yh=y.createContext(null);function Ms(){const e=y.useContext(Yh);if(!e)throw new Error("InputOtp subcomponents must be used inside an <InputOtp> root.");return e}const CT=(e,t)=>t==="number"?/^\d$/.test(e):e.length===1,Jh=y.forwardRef(({className:e,children:t,dataTestid:n,size:o="md",type:r="number",otp:s=!0,mask:i=!1,disabled:a=!1,value:l,defaultValue:c="",onValueChange:u,onComplete:d,...f},p)=>{const[m,g]=y.useState(c),x=l??m,b=y.useRef(new Map),[S,C]=y.useState(0),_=y.useRef(0),w=y.useRef(0);_.current=0,w.current=0;const[T,E]=y.useState(()=>[...x]),[P,I]=y.useState(x),N=y.useMemo(()=>Array.from({length:S},(q,z)=>T[z]??""),[T,S]);x!==P&&(I(x),x!==N.join("")&&E([...x]));const H=y.useCallback(q=>{E(q);const z=q.join("");l===void 0&&g(z),z!==x&&(u==null||u(z)),q.length>0&&q.every(Boolean)&&(d==null||d(z))},[l,x,u,d]),L=y.useCallback((q,z)=>{z?b.current.set(q,z):b.current.delete(q),C(b.current.size)},[]),X=y.useCallback(q=>{var z;(z=b.current.get(q))==null||z.focus()},[]),W=y.useCallback((q,z)=>{if(a)return;const Q=[...z].filter(K=>CT(K,r));if(Q.length===0)return;const F=[...N];Q.forEach((K,D)=>{const A=q+D;A<F.length&&(F[A]=K)}),H(F),X(Math.min(q+Q.length,F.length-1))},[a,r,N,H,X]),J=y.useCallback(q=>{if(a)return;const z=[...N];z[q]="",H(z)},[a,N,H]),Y=y.useMemo(()=>({dataTestid:n,nextGroupIndex:()=>_.current++,nextSeparatorIndex:()=>w.current++,chars:N,slotCount:S,type:r,otp:s,mask:i,disabled:a,registerSlot:L,fillFrom:W,clearSlot:J,focusSlot:X}),[n,N,S,r,s,i,a,L,W,J,X]);return h.jsx(Yh.Provider,{value:Y,children:h.jsx("div",{ref:p,"data-slot":"controller","data-testid":n,"data-disabled":a?"":void 0,className:G(yT.oxInputOtp,ho[o],e),...f,children:t})})});Jh.displayName="OxInputOtp";const ST={oxInputOtpGroup:"_oxInputOtpGroup_srsfk_2"},Zh=y.forwardRef(({className:e,children:t,...n},o)=>{const{dataTestid:r,nextGroupIndex:s}=Ms(),i=s();return h.jsx("div",{ref:o,"data-slot":"group","data-testid":`${r}-group-${i}`,className:G(ST.oxInputOtpGroup,e),...n,children:t})});Zh.displayName="OxInputOtpGroup";const wT={oxInputOtpSlot:"_oxInputOtpSlot_1wpd9_2"},Qh=y.forwardRef(({className:e,index:t,onKeyDown:n,onPaste:o,...r},s)=>{const{dataTestid:i,chars:a,slotCount:l,type:c,otp:u,mask:d,disabled:f,registerSlot:p,fillFrom:m,clearSlot:g,focusSlot:x}=Ms(),b=y.useRef(null),S=y.useCallback(C=>{b.current=C,typeof s=="function"?s(C):s&&(s.current=C)},[s]);return y.useEffect(()=>(p(t,b.current),()=>p(t,null)),[t,p]),h.jsx("input",{ref:S,type:d?"password":"text",inputMode:c==="number"?"numeric":"text",autoComplete:u?"one-time-code":"off",maxLength:1,disabled:f,"aria-label":`pin input ${t+1} of ${l}`,"data-slot":"controller","data-testid":`${i}-slot-${t}`,value:a[t]??"",className:G(nr.oxInput,wT.oxInputOtpSlot,e),onChange:C=>{m(t,C.target.value)},onKeyDown:C=>{C.key==="Backspace"?(C.preventDefault(),a[t]?g(t):t>0&&(g(t-1),x(t-1))):C.key==="ArrowLeft"&&t>0?(C.preventDefault(),x(t-1)):C.key==="ArrowRight"&&t<l-1&&(C.preventDefault(),x(t+1)),n==null||n(C)},onPaste:C=>{C.preventDefault(),m(t,C.clipboardData.getData("text")),o==null||o(C)},...r})});Qh.displayName="OxInputOtpSlot";const _T={oxInputOtpSeparator:"_oxInputOtpSeparator_12g3x_2"},em=y.forwardRef(({className:e,children:t,...n},o)=>{const{dataTestid:r,nextSeparatorIndex:s}=Ms(),i=s();return h.jsx("div",{ref:o,"aria-hidden":"true","data-slot":"separator","data-testid":`${r}-separator-${i}`,className:G(_T.oxInputOtpSeparator,e),...n,children:t??"–"})});em.displayName="OxInputOtpSeparator";const TT={oxCombobox:"_oxCombobox_ziqeo_2"},tm=y.createContext(null);function $s(){const e=y.useContext(tm);if(!e)throw new Error("Combobox sub-components must be used within <Combobox>.");return e}const nm=y.forwardRef(({className:e,value:t,defaultValue:n,onValueChange:o,multiple:r=!1,disabled:s=!1,open:i,defaultOpen:a,onOpenChange:l,children:c,dataTestid:u,...d},f)=>{const[p,m]=y.useState(n??(r?[]:void 0)),[g,x]=y.useState(a??!1),[b,S]=y.useState(""),C=t??p,_=i??g,w=y.useCallback(I=>{t===void 0&&m(I),o==null||o(I)},[t,o]),T=y.useCallback(I=>{i===void 0&&x(I),l==null||l(I)},[i,l]),E=y.useCallback(I=>{if(r){const N=Array.isArray(C)?C:[],H=N.includes(I)?N.filter(L=>L!==I):[...N,I];w(H)}else w(I),T(!1);S("")},[r,C,w,T]),P=y.useMemo(()=>({value:C,select:E,multiple:r,disabled:s,open:_,setOpen:T,search:b,setSearch:S}),[C,E,r,s,_,T,b]);return h.jsx(tm.Provider,{value:P,children:h.jsx(Hg,{open:_,onOpenChange:T,children:h.jsx("div",{ref:f,"data-slot":"combobox","data-testid":u,className:G(TT.oxCombobox,e),...d,children:c})})})});nm.displayName="OxCombobox";const Rs={oxComboboxAnchor:"_oxComboboxAnchor_1dsic_2",oxComboboxInput:"_oxComboboxInput_1dsic_2",oxComboboxTrigger:"_oxComboboxTrigger_1dsic_2",oxComboboxTriggerIcon:"_oxComboboxTriggerIcon_1dsic_2"},om=y.forwardRef(({className:e,placeholder:t="",disabled:n,size:o="md",displayValue:r,trigger:s,...i},a)=>{const{value:l,disabled:c,open:u,setOpen:d,search:f,setSearch:p}=$s(),m=n??c,x=u?f:(r??(b=>b==null?"":String(b)))(l);return h.jsxs(Gg,{className:Rs.oxComboboxAnchor,children:[h.jsx("input",{ref:a,role:"combobox","aria-expanded":u,"aria-autocomplete":"list","data-slot":"controller",className:G(nr.oxInput,ho[o],Rs.oxComboboxInput,e),placeholder:t,disabled:m,value:x,onChange:b=>{p(b.target.value),u||d(!0)},onFocus:()=>{m||d(!0)},...i}),h.jsx(tl,{type:"button","aria-label":"Show popup","aria-haspopup":"listbox",disabled:m,"data-disabled":m?"":void 0,className:Rs.oxComboboxTrigger,children:s??h.jsx(Pn,{className:Rs.oxComboboxTriggerIcon})})]})});om.displayName="OxComboboxInput";const mo={oxComboboxTagsInput:"_oxComboboxTagsInput_1wfvk_2",oxComboboxChip:"_oxComboboxChip_1wfvk_2",oxComboboxChipRemove:"_oxComboboxChipRemove_1wfvk_2",oxComboboxTagsField:"_oxComboboxTagsField_1wfvk_2",oxComboboxTagsTrigger:"_oxComboboxTagsTrigger_1wfvk_2",oxComboboxTagsTriggerIcon:"_oxComboboxTagsTriggerIcon_1wfvk_2"},rm=y.forwardRef(({className:e,placeholder:t="",disabled:n,size:o="md",trigger:r,...s},i)=>{const{value:a,multiple:l,select:c,disabled:u,open:d,setOpen:f,search:p,setSearch:m}=$s(),g=n??u,x=l&&Array.isArray(a)?a:[];return h.jsxs(Gg,{"data-slot":"controller",className:G(mo.oxComboboxTagsInput,ho[o],e),children:[x.map(b=>h.jsxs("span",{"data-slot":"combobox-chip",className:mo.oxComboboxChip,onClick:S=>{S.stopPropagation(),c(b)},children:[b,h.jsx("button",{type:"button",className:mo.oxComboboxChipRemove,"aria-label":`Remove ${b}`,disabled:g,onClick:S=>{S.stopPropagation(),c(b)},children:h.jsx(qi,{})})]},b)),h.jsx("input",{ref:i,role:"combobox","aria-expanded":d,"aria-autocomplete":"list",className:mo.oxComboboxTagsField,placeholder:x.length?"":t,disabled:g,value:p,onChange:b=>{m(b.target.value),d||f(!0)},onFocus:()=>{g||f(!0)},...s}),h.jsx(tl,{type:"button","aria-label":"Show popup","aria-haspopup":"listbox",disabled:g,"data-disabled":g?"":void 0,className:mo.oxComboboxTagsTrigger,children:r??h.jsx(Pn,{className:mo.oxComboboxTagsTriggerIcon})})]})});rm.displayName="OxComboboxChipsInput";var sm=1,ET=.9,PT=.8,IT=.17,_l=.1,Tl=.999,AT=.9999,OT=.99,DT=/[\\\/_+.#"@\[\(\{&]/,NT=/[\\\/_+.#"@\[\(\{&]/g,kT=/[\s-]/,im=/[\s-]/g;function El(e,t,n,o,r,s,i){if(s===t.length)return r===e.length?sm:OT;var a=`${r},${s}`;if(i[a]!==void 0)return i[a];for(var l=o.charAt(s),c=n.indexOf(l,r),u=0,d,f,p,m;c>=0;)d=El(e,t,n,o,c+1,s+1,i),d>u&&(c===r?d*=sm:DT.test(e.charAt(c-1))?(d*=PT,p=e.slice(r,c-1).match(NT),p&&r>0&&(d*=Math.pow(Tl,p.length))):kT.test(e.charAt(c-1))?(d*=ET,m=e.slice(r,c-1).match(im),m&&r>0&&(d*=Math.pow(Tl,m.length))):(d*=IT,r>0&&(d*=Math.pow(Tl,c-r))),e.charAt(c)!==t.charAt(s)&&(d*=AT)),(d<_l&&n.charAt(c-1)===o.charAt(s+1)||o.charAt(s+1)===o.charAt(s)&&n.charAt(c-1)!==o.charAt(s))&&(f=El(e,t,n,o,c+1,s+2,i),f*_l>d&&(d=f*_l)),d>u&&(u=d),c=n.indexOf(l,c+1);return i[a]=u,u}function am(e){return e.toLowerCase().replace(im," ")}function MT(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,El(e,t,am(e),am(t),0,0,{})}var or='[cmdk-group=""]',Pl='[cmdk-group-items=""]',$T='[cmdk-group-heading=""]',lm='[cmdk-item=""]',cm=`${lm}:not([aria-disabled="true"])`,Il="cmdk-item-select",vo="data-value",RT=(e,t,n)=>MT(e,t,n),um=v.createContext(void 0),rr=()=>v.useContext(um),dm=v.createContext(void 0),Al=()=>v.useContext(dm),fm=v.createContext(void 0),pm=v.forwardRef((e,t)=>{let n=xo(()=>{var D,A;return{search:"",value:(A=(D=e.value)!=null?D:e.defaultValue)!=null?A:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),o=xo(()=>new Set),r=xo(()=>new Map),s=xo(()=>new Map),i=xo(()=>new Set),a=ym(e),{label:l,children:c,value:u,onValueChange:d,filter:f,shouldFilter:p,loop:m,disablePointerSelection:g=!1,vimBindings:x=!0,...b}=e,S=qe(),C=qe(),_=qe(),w=v.useRef(null),T=HT();zn(()=>{if(u!==void 0){let D=u.trim();n.current.value=D,E.emit()}},[u]),zn(()=>{T(6,X)},[]);let E=v.useMemo(()=>({subscribe:D=>(i.current.add(D),()=>i.current.delete(D)),snapshot:()=>n.current,setState:(D,A,k)=>{var $,V,M,R;if(!Object.is(n.current[D],A)){if(n.current[D]=A,D==="search")L(),N(),T(1,H);else if(D==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let j=document.getElementById(_);j?j.focus():($=document.getElementById(S))==null||$.focus()}if(T(7,()=>{var j;n.current.selectedItemId=(j=W())==null?void 0:j.id,E.emit()}),k||T(5,X),((V=a.current)==null?void 0:V.value)!==void 0){let j=A??"";(R=(M=a.current).onValueChange)==null||R.call(M,j);return}}E.emit()}},emit:()=>{i.current.forEach(D=>D())}}),[]),P=v.useMemo(()=>({value:(D,A,k)=>{var $;A!==(($=s.current.get(D))==null?void 0:$.value)&&(s.current.set(D,{value:A,keywords:k}),n.current.filtered.items.set(D,I(A,k)),T(2,()=>{N(),E.emit()}))},item:(D,A)=>(o.current.add(D),A&&(r.current.has(A)?r.current.get(A).add(D):r.current.set(A,new Set([D]))),T(3,()=>{L(),N(),n.current.value||H(),E.emit()}),()=>{s.current.delete(D),o.current.delete(D),n.current.filtered.items.delete(D);let k=W();T(4,()=>{L(),(k==null?void 0:k.getAttribute("id"))===D&&H(),E.emit()})}),group:D=>(r.current.has(D)||r.current.set(D,new Set),()=>{s.current.delete(D),r.current.delete(D)}),filter:()=>a.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:S,inputId:_,labelId:C,listInnerRef:w}),[]);function I(D,A){var k,$;let V=($=(k=a.current)==null?void 0:k.filter)!=null?$:RT;return D?V(D,n.current.search,A):0}function N(){if(!n.current.search||a.current.shouldFilter===!1)return;let D=n.current.filtered.items,A=[];n.current.filtered.groups.forEach($=>{let V=r.current.get($),M=0;V.forEach(R=>{let j=D.get(R);M=Math.max(j,M)}),A.push([$,M])});let k=w.current;J().sort(($,V)=>{var M,R;let j=$.getAttribute("id"),U=V.getAttribute("id");return((M=D.get(U))!=null?M:0)-((R=D.get(j))!=null?R:0)}).forEach($=>{let V=$.closest(Pl);V?V.appendChild($.parentElement===V?$:$.closest(`${Pl} > *`)):k.appendChild($.parentElement===k?$:$.closest(`${Pl} > *`))}),A.sort(($,V)=>V[1]-$[1]).forEach($=>{var V;let M=(V=w.current)==null?void 0:V.querySelector(`${or}[${vo}="${encodeURIComponent($[0])}"]`);M==null||M.parentElement.appendChild(M)})}function H(){let D=J().find(k=>k.getAttribute("aria-disabled")!=="true"),A=D==null?void 0:D.getAttribute(vo);E.setState("value",A||void 0)}function L(){var D,A,k,$;if(!n.current.search||a.current.shouldFilter===!1){n.current.filtered.count=o.current.size;return}n.current.filtered.groups=new Set;let V=0;for(let M of o.current){let R=(A=(D=s.current.get(M))==null?void 0:D.value)!=null?A:"",j=($=(k=s.current.get(M))==null?void 0:k.keywords)!=null?$:[],U=I(R,j);n.current.filtered.items.set(M,U),U>0&&V++}for(let[M,R]of r.current)for(let j of R)if(n.current.filtered.items.get(j)>0){n.current.filtered.groups.add(M);break}n.current.filtered.count=V}function X(){var D,A,k;let $=W();$&&(((D=$.parentElement)==null?void 0:D.firstChild)===$&&((k=(A=$.closest(or))==null?void 0:A.querySelector($T))==null||k.scrollIntoView({block:"nearest"})),$.scrollIntoView({block:"nearest"}))}function W(){var D;return(D=w.current)==null?void 0:D.querySelector(`${lm}[aria-selected="true"]`)}function J(){var D;return Array.from(((D=w.current)==null?void 0:D.querySelectorAll(cm))||[])}function Y(D){let A=J()[D];A&&E.setState("value",A.getAttribute(vo))}function q(D){var A;let k=W(),$=J(),V=$.findIndex(R=>R===k),M=$[V+D];(A=a.current)!=null&&A.loop&&(M=V+D<0?$[$.length-1]:V+D===$.length?$[0]:$[V+D]),M&&E.setState("value",M.getAttribute(vo))}function z(D){let A=W(),k=A==null?void 0:A.closest(or),$;for(;k&&!$;)k=D>0?VT(k,or):BT(k,or),$=k==null?void 0:k.querySelector(cm);$?E.setState("value",$.getAttribute(vo)):q(D)}let Q=()=>Y(J().length-1),F=D=>{D.preventDefault(),D.metaKey?Q():D.altKey?z(1):q(1)},K=D=>{D.preventDefault(),D.metaKey?Y(0):D.altKey?z(-1):q(-1)};return v.createElement(de.div,{ref:t,tabIndex:-1,...b,"cmdk-root":"",onKeyDown:D=>{var A;(A=b.onKeyDown)==null||A.call(b,D);let k=D.nativeEvent.isComposing||D.keyCode===229;if(!(D.defaultPrevented||k))switch(D.key){case"n":case"j":{x&&D.ctrlKey&&F(D);break}case"ArrowDown":{F(D);break}case"p":case"k":{x&&D.ctrlKey&&K(D);break}case"ArrowUp":{K(D);break}case"Home":{D.preventDefault(),Y(0);break}case"End":{D.preventDefault(),Q();break}case"Enter":{D.preventDefault();let $=W();if($){let V=new Event(Il);$.dispatchEvent(V)}}}}},v.createElement("label",{"cmdk-label":"",htmlFor:P.inputId,id:P.labelId,style:jT},l),Ls(e,D=>v.createElement(dm.Provider,{value:E},v.createElement(um.Provider,{value:P},D))))}),gm=v.forwardRef((e,t)=>{var n,o;let r=qe(),s=v.useRef(null),i=v.useContext(fm),a=rr(),l=ym(e),c=(o=(n=l.current)==null?void 0:n.forceMount)!=null?o:i==null?void 0:i.forceMount;zn(()=>{if(!c)return a.item(r,i==null?void 0:i.id)},[c]);let u=Cm(r,s,[e.value,e.children,s],e.keywords),d=Al(),f=an(T=>T.value&&T.value===u.current),p=an(T=>c||a.filter()===!1?!0:T.search?T.filtered.items.get(r)>0:!0);v.useEffect(()=>{let T=s.current;if(!(!T||e.disabled))return T.addEventListener(Il,m),()=>T.removeEventListener(Il,m)},[p,e.onSelect,e.disabled]);function m(){var T,E;g(),(E=(T=l.current).onSelect)==null||E.call(T,u.current)}function g(){d.setState("value",u.current,!0)}if(!p)return null;let{disabled:x,value:b,onSelect:S,forceMount:C,keywords:_,...w}=e;return v.createElement(de.div,{ref:Yn(s,t),...w,id:r,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!f,"data-disabled":!!x,"data-selected":!!f,onPointerMove:x||a.getDisablePointerSelection()?void 0:g,onClick:x?void 0:m},e.children)}),hm=v.forwardRef((e,t)=>{let{heading:n,children:o,forceMount:r,...s}=e,i=qe(),a=v.useRef(null),l=v.useRef(null),c=qe(),u=rr(),d=an(p=>r||u.filter()===!1?!0:p.search?p.filtered.groups.has(i):!0);zn(()=>u.group(i),[]),Cm(i,a,[e.value,e.heading,l]);let f=v.useMemo(()=>({id:i,forceMount:r}),[r]);return v.createElement(de.div,{ref:Yn(a,t),...s,"cmdk-group":"",role:"presentation",hidden:d?void 0:!0},n&&v.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),Ls(e,p=>v.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},v.createElement(fm.Provider,{value:f},p))))}),mm=v.forwardRef((e,t)=>{let{alwaysRender:n,...o}=e,r=v.useRef(null),s=an(i=>!i.search);return!n&&!s?null:v.createElement(de.div,{ref:Yn(r,t),...o,"cmdk-separator":"",role:"separator"})}),vm=v.forwardRef((e,t)=>{let{onValueChange:n,...o}=e,r=e.value!=null,s=Al(),i=an(c=>c.search),a=an(c=>c.selectedItemId),l=rr();return v.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),v.createElement(de.input,{ref:t,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":a,id:l.inputId,type:"text",value:r?e.value:i,onChange:c=>{r||s.setState("search",c.target.value),n==null||n(c.target.value)}})}),xm=v.forwardRef((e,t)=>{let{children:n,label:o="Suggestions",...r}=e,s=v.useRef(null),i=v.useRef(null),a=an(c=>c.selectedItemId),l=rr();return v.useEffect(()=>{if(i.current&&s.current){let c=i.current,u=s.current,d,f=new ResizeObserver(()=>{d=requestAnimationFrame(()=>{let p=c.offsetHeight;u.style.setProperty("--cmdk-list-height",p.toFixed(1)+"px")})});return f.observe(c),()=>{cancelAnimationFrame(d),f.unobserve(c)}}},[]),v.createElement(de.div,{ref:Yn(s,t),...r,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":a,"aria-label":o,id:l.listId},Ls(e,c=>v.createElement("div",{ref:Yn(i,l.listInnerRef),"cmdk-list-sizer":""},c)))}),LT=v.forwardRef((e,t)=>{let{open:n,onOpenChange:o,overlayClassName:r,contentClassName:s,container:i,...a}=e;return v.createElement(kp,{open:n,onOpenChange:o},v.createElement(Na,{container:i},v.createElement(Rp,{"cmdk-overlay":"",className:r}),v.createElement(Ma,{"aria-label":e.label,"cmdk-dialog":"",className:s},v.createElement(pm,{ref:t,...a}))))}),bm=v.forwardRef((e,t)=>an(n=>n.filtered.count===0)?v.createElement(de.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),FT=v.forwardRef((e,t)=>{let{progress:n,children:o,label:r="Loading...",...s}=e;return v.createElement(de.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":r},Ls(e,i=>v.createElement("div",{"aria-hidden":!0},i)))}),zT=Object.assign(pm,{List:xm,Item:gm,Input:vm,Group:hm,Separator:mm,Dialog:LT,Empty:bm,Loading:FT});function VT(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function BT(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function ym(e){let t=v.useRef(e);return zn(()=>{t.current=e}),t}var zn=typeof window>"u"?v.useEffect:v.useLayoutEffect;function xo(e){let t=v.useRef();return t.current===void 0&&(t.current=e()),t}function an(e){let t=Al(),n=()=>e(t.snapshot());return v.useSyncExternalStore(t.subscribe,n,n)}function Cm(e,t,n,o=[]){let r=v.useRef(),s=rr();return zn(()=>{var i;let a=(()=>{var c;for(let u of n){if(typeof u=="string")return u.trim();if(typeof u=="object"&&"current"in u)return u.current?(c=u.current.textContent)==null?void 0:c.trim():r.current}})(),l=o.map(c=>c.trim());s.value(e,a,l),(i=t.current)==null||i.setAttribute(vo,a),r.current=a}),r}var HT=()=>{let[e,t]=v.useState(),n=xo(()=>new Map);return zn(()=>{n.current.forEach(o=>o()),n.current=new Map},[e]),(o,r)=>{n.current.set(o,r),t({})}};function GT(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Ls({asChild:e,children:t},n){return e&&v.isValidElement(t)?v.cloneElement(GT(t),{ref:t.ref},n(t.props.children)):n(t)}var jT={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Sm=y.forwardRef(({children:e,side:t="bottom",sideOffset:n=4,align:o="start",...r},s)=>{const{search:i}=$s();return h.jsx(jg,{children:h.jsx(Wg,{ref:s,"data-slot":"combobox-content",side:t,sideOffset:n,align:o,onOpenAutoFocus:a=>a.preventDefault(),...r,children:h.jsxs(zT,{shouldFilter:!0,value:i,children:[h.jsx(vm,{value:i,className:"ox-combobox-hidden-input"}),h.jsx(xm,{className:"ox-combobox-viewport",children:e})]})})})});Sm.displayName="OxComboboxContent";const Ol={oxComboboxItem:"_oxComboboxItem_mr3f9_2",oxComboboxItemIndicator:"_oxComboboxItemIndicator_mr3f9_2",oxComboboxCheckIcon:"_oxComboboxCheckIcon_mr3f9_2"},wm=y.forwardRef(({className:e,value:t,disabled:n=!1,children:o,...r},s)=>{const{value:i,select:a}=$s(),l=Array.isArray(i)?i.includes(t):i===t;return h.jsxs(gm,{ref:s,"data-slot":"combobox-item","data-state":l?"checked":"unchecked",className:G(Ol.oxComboboxItem,e),value:t,disabled:n,onSelect:a,...r,children:[o,l?h.jsx("span",{className:Ol.oxComboboxItemIndicator,children:h.jsx(Ur,{className:Ol.oxComboboxCheckIcon})}):null]})});wm.displayName="OxComboboxItem";const WT={oxComboboxEmpty:"_oxComboboxEmpty_1cerj_2"},_m=y.forwardRef(({className:e,children:t,...n},o)=>h.jsx(bm,{ref:o,"data-slot":"combobox-empty",className:G(WT.oxComboboxEmpty,e),...n,children:t??"No results found."}));_m.displayName="OxComboboxEmpty";const UT={oxComboboxGroupLabel:"_oxComboboxGroupLabel_121rd_2"},Tm=y.forwardRef(({className:e,label:t,children:n,...o},r)=>h.jsx(hm,{ref:r,"data-slot":"combobox-group",heading:t?h.jsx("span",{className:UT.oxComboboxGroupLabel,children:t}):void 0,className:G(e),...o,children:n}));Tm.displayName="OxComboboxGroup";const qT={oxComboboxSeparator:"_oxComboboxSeparator_1wx8o_2"},Em=y.forwardRef(({className:e,...t},n)=>h.jsx(mm,{ref:n,"data-slot":"combobox-separator",className:G(qT.oxComboboxSeparator,e),...t}));Em.displayName="OxComboboxSeparator";var KT=Object.defineProperty,XT=(e,t)=>KT(e,"name",{value:t,configurable:!0});function Dl(e,[t,n]){return Math.min(n,Math.max(t,e))}XT(Dl,"clamp");var YT=Object.defineProperty,bo=(e,t)=>YT(e,"name",{value:t,configurable:!0}),Pm=!!(typeof window<"u"&&window.document&&window.document.createElement);function Te(e,t,{checkForDefaultPrevented:n=!0}={}){return bo(function(r){if(e==null||e(r),n===!1||!r||!r.defaultPrevented)return t==null?void 0:t(r)},"handleEvent")}bo(Te,"composeEventHandlers");function JT(e){var t;if(!Pm)throw new Error("Cannot access window outside of the DOM");return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)??window}bo(JT,"getOwnerWindow");function Nl(e){if(!Pm)throw new Error("Cannot access document outside of the DOM");return(e==null?void 0:e.ownerDocument)??document}bo(Nl,"getOwnerDocument");function Im(e,t=!1){const{activeElement:n}=Nl(e);if(!(n!=null&&n.nodeName))return null;if(Am(n)&&n.contentDocument)return Im(n.contentDocument.body,t);if(t){const o=n.getAttribute("aria-activedescendant");if(o){const r=Nl(n).getElementById(o);if(r)return r}}return n}bo(Im,"getActiveElement");function Am(e){return e.tagName==="IFRAME"}bo(Am,"isFrame");var ZT=Object.defineProperty,Me=(e,t)=>ZT(e,"name",{value:t,configurable:!0});function Om(e){const t=e+"CollectionProvider",[n,o]=no(t),[r,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=Me(g=>{const{scope:x,children:b}=g,S=v.useRef(null),C=v.useRef(new Map).current;return h.jsx(r,{scope:x,itemMap:C,collectionRef:S,children:b})},"CollectionProvider");i.displayName=t;const a=e+"CollectionSlot",l=Nn(a),c=v.forwardRef((g,x)=>{const{scope:b,children:S}=g,C=s(a,b),_=_e(x,C.collectionRef);return h.jsx(l,{ref:_,children:S})});c.displayName=a;const u=e+"CollectionItemSlot",d="data-radix-collection-item",f=Nn(u),p=v.forwardRef((g,x)=>{const{scope:b,children:S,...C}=g,_=v.useRef(null),w=_e(x,_),T=s(u,b);return v.useEffect(()=>(T.itemMap.set(_,{ref:_,...C}),()=>void T.itemMap.delete(_))),h.jsx(f,{[d]:"",ref:w,children:S})});p.displayName=u;function m(g){const x=s(e+"CollectionConsumer",g);return v.useCallback(()=>{const S=x.collectionRef.current;if(!S)return[];const C=Array.from(S.querySelectorAll(`[${d}]`));return Array.from(x.itemMap.values()).sort((T,E)=>C.indexOf(T.ref.current)-C.indexOf(E.ref.current))},[x.collectionRef,x.itemMap])}return Me(m,"useCollection"),[{Provider:i,Slot:c,ItemSlot:p},m,o]}Me(Om,"createCollection");var Dm=new WeakMap,kl=(it=class extends Map{constructor(n){super(n);c0(this,Ie);tu(this,Ie,[...super.keys()]),Dm.set(this,!0)}set(n,o){return Dm.get(this)&&(this.has(n)?Ge(this,Ie)[Ge(this,Ie).indexOf(n)]=n:Ge(this,Ie).push(n)),super.set(n,o),this}insert(n,o,r){const s=this.has(o),i=Ge(this,Ie).length,a=Ml(n);let l=a>=0?a:i+a;const c=l<0||l>=i?-1:l;if(c===this.size||s&&c===this.size-1||c===-1)return this.set(o,r),this;const u=this.size+(s?0:1);a<0&&l++;const d=[...Ge(this,Ie)];let f,p=!1;for(let m=l;m<u;m++)if(l===m){let g=d[m];d[m]===o&&(g=d[m+1]),s&&this.delete(o),f=this.get(g),this.set(o,r)}else{!p&&d[m-1]===o&&(p=!0);const g=d[p?m:m-1],x=f;f=this.get(g),this.delete(g),this.set(g,x)}return this}with(n,o,r){const s=new it(this);return s.insert(n,o,r),s}before(n){const o=Ge(this,Ie).indexOf(n)-1;if(!(o<0))return this.entryAt(o)}setBefore(n,o,r){const s=Ge(this,Ie).indexOf(n);return s===-1?this:this.insert(s,o,r)}after(n){let o=Ge(this,Ie).indexOf(n);if(o=o===-1||o===this.size-1?-1:o+1,o!==-1)return this.entryAt(o)}setAfter(n,o,r){const s=Ge(this,Ie).indexOf(n);return s===-1?this:this.insert(s+1,o,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return tu(this,Ie,[]),super.clear()}delete(n){const o=super.delete(n);return o&&Ge(this,Ie).splice(Ge(this,Ie).indexOf(n),1),o}deleteAt(n){const o=this.keyAt(n);return o!==void 0?this.delete(o):!1}at(n){const o=Fs(Ge(this,Ie),n);if(o!==void 0)return this.get(o)}entryAt(n){const o=Fs(Ge(this,Ie),n);if(o!==void 0)return[o,this.get(o)]}indexOf(n){return Ge(this,Ie).indexOf(n)}keyAt(n){return Fs(Ge(this,Ie),n)}from(n,o){const r=this.indexOf(n);if(r===-1)return;let s=r+o;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.at(s)}keyFrom(n,o){const r=this.indexOf(n);if(r===-1)return;let s=r+o;return s<0&&(s=0),s>=this.size&&(s=this.size-1),this.keyAt(s)}find(n,o){let r=0;for(const s of this){if(Reflect.apply(n,o,[s,r,this]))return s;r++}}findIndex(n,o){let r=0;for(const s of this){if(Reflect.apply(n,o,[s,r,this]))return r;r++}return-1}filter(n,o){const r=[];let s=0;for(const i of this)Reflect.apply(n,o,[i,s,this])&&r.push(i),s++;return new it(r)}map(n,o){const r=[];let s=0;for(const i of this)r.push([i[0],Reflect.apply(n,o,[i,s,this])]),s++;return new it(r)}reduce(...n){const[o,r]=n;let s=0,i=r??this.at(0);for(const a of this)s===0&&n.length===1?i=a:i=Reflect.apply(o,this,[i,a,s,this]),s++;return i}reduceRight(...n){const[o,r]=n;let s=r??this.at(-1);for(let i=this.size-1;i>=0;i--){const a=this.at(i);i===this.size-1&&n.length===1?s=a:s=Reflect.apply(o,this,[s,a,i,this])}return s}toSorted(n){const o=[...this.entries()].sort(n);return new it(o)}toReversed(){const n=new it;for(let o=this.size-1;o>=0;o--){const r=this.keyAt(o),s=this.get(r);n.set(r,s)}return n}toSpliced(...n){const o=[...this.entries()];return o.splice(...n),new it(o)}slice(n,o){const r=new it;let s=this.size-1;if(n===void 0)return r;n<0&&(n=n+this.size),o!==void 0&&o>0&&(s=o-1);for(let i=n;i<=s;i++){const a=this.keyAt(i),l=this.get(a);r.set(a,l)}return r}every(n,o){let r=0;for(const s of this){if(!Reflect.apply(n,o,[s,r,this]))return!1;r++}return!0}some(n,o){let r=0;for(const s of this){if(Reflect.apply(n,o,[s,r,this]))return!0;r++}return!1}},Ie=new WeakMap,Me(it,"OrderedDict"),it);function Fs(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=Nm(e,t);return n===-1?void 0:e[n]}Me(Fs,"at");function Nm(e,t){const n=e.length,o=Ml(t),r=o>=0?o:n+o;return r<0||r>=n?-1:r}Me(Nm,"toSafeIndex");function Ml(e){return e!==e||e===0?0:Math.trunc(e)}Me(Ml,"toSafeInteger");function QT(e){const t=e+"CollectionProvider",[n,o]=no(t),[r,s]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new kl,setItemMap:Me(()=>{},"setItemMap")}),i=Me(({state:C,..._})=>C?h.jsx(l,{..._,state:C}):h.jsx(a,{..._}),"CollectionProvider");i.displayName=t;const a=Me(C=>{const _=x();return h.jsx(l,{...C,state:_})},"CollectionInit");a.displayName=t+"Init";const l=Me(C=>{const{scope:_,children:w,state:T}=C,E=v.useRef(null),[P,I]=v.useState(null),N=_e(E,I),[H,L]=T;return v.useEffect(()=>{if(!P)return;const X=$m(()=>{});return X.observe(P,{childList:!0,subtree:!0}),()=>{X.disconnect()}},[P]),h.jsx(r,{scope:_,itemMap:H,setItemMap:L,collectionRef:N,collectionRefObject:E,collectionElement:P,children:w})},"CollectionProviderImpl");l.displayName=t+"Impl";const c=e+"CollectionSlot",u=Nn(c),d=v.forwardRef((C,_)=>{const{scope:w,children:T}=C,E=s(c,w),P=_e(_,E.collectionRef);return h.jsx(u,{ref:P,children:T})});d.displayName=c;const f=e+"CollectionItemSlot",p="data-radix-collection-item",m=Nn(f),g=v.forwardRef((C,_)=>{const{scope:w,children:T,...E}=C,P=v.useRef(null),[I,N]=v.useState(null),H=_e(_,P,N),L=s(f,w),{setItemMap:X}=L,W=v.useRef(E);km(W.current,E)||(W.current=E);const J=W.current;return v.useEffect(()=>{const Y=J;return X(q=>I?q.has(I)?q.set(I,{...Y,element:I}).toSorted($l):(q.set(I,{...Y,element:I}),q.toSorted($l)):q),()=>{X(q=>!I||!q.has(I)?q:(q.delete(I),new kl(q)))}},[I,J,X]),h.jsx(m,{[p]:"",ref:H,children:T})});g.displayName=f;function x(){return v.useState(new kl)}Me(x,"useInitCollection");function b(C){const{itemMap:_}=s(e+"CollectionConsumer",C);return _}return Me(b,"useCollection"),[{Provider:i,Slot:d,ItemSlot:g},{createCollectionScope:o,useCollection:b,useInitCollection:x}]}Me(QT,"createCollection");function km(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}Me(km,"shallowEqual");function Mm(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Me(Mm,"isElementPreceding");function $l(e,t){return!e[1].element||!t[1].element?0:Mm(e[1].element,t[1].element)?-1:1}Me($l,"sortByDocumentPosition");function $m(e){return new MutationObserver(n=>{for(const o of n)if(o.type==="childList"){e();return}})}Me($m,"getChildListObserver");var eE=Object.defineProperty,tE=(e,t)=>eE(e,"name",{value:t,configurable:!0}),nE=v.createContext(void 0);function Rm(e){const t=v.useContext(nE);return e||t||"ltr"}tE(Rm,"useDirection");var oE=Object.defineProperty,rE=(e,t)=>oE(e,"name",{value:t,configurable:!0});function Nt(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)}),[])}rE(Nt,"useCallbackRef");var sE=Object.defineProperty,$e=(e,t)=>sE(e,"name",{value:t,configurable:!0}),Rl="dismissableLayer.update",iE="dismissableLayer.pointerDownOutside",aE="dismissableLayer.focusOutside",Lm,Fm=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),lE=v.forwardRef($e(function(t,n){const{disableOutsidePointerEvents:o=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...u}=t,d=v.useContext(Fm),[f,p]=v.useState(null),m=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=v.useState({}),x=_e(n,p),b=Array.from(d.layers),[S]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),C=S?b.indexOf(S):-1,_=f?b.indexOf(f):-1,w=d.layersWithOutsidePointerEventsDisabled.size>0,T=_>=C,E=v.useRef(!1),P=zm(L=>{i==null||i(L),l==null||l(L),L.defaultPrevented||c==null||c()},{ownerDocument:m,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:E,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:v.useCallback(L=>{if(!(L instanceof Node))return!1;const X=[...d.branches].some(W=>W.contains(L));return T&&!X},[d.branches,T])}),I=Vm(L=>{if(r&&E.current)return;const X=L.target;[...d.branches].some(J=>J.contains(X))||(a==null||a(L),l==null||l(L),L.defaultPrevented||c==null||c())},m),N=f?_===b.length-1:!1,H=Nt(L=>{L.key==="Escape"&&(s==null||s(L),!L.defaultPrevented&&c&&(L.preventDefault(),c()))});return v.useEffect(()=>{if(N)return m.addEventListener("keydown",H,{capture:!0}),()=>m.removeEventListener("keydown",H,{capture:!0})},[m,N,H]),v.useEffect(()=>{if(f)return o&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Lm=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Ll(),()=>{o&&(d.layersWithOutsidePointerEventsDisabled.delete(f),d.layersWithOutsidePointerEventsDisabled.size===0&&(m.body.style.pointerEvents=Lm))}},[f,m,o,d]),v.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Ll())},[f,d]),v.useEffect(()=>{const L=$e(()=>g({}),"handleUpdate");return document.addEventListener(Rl,L),()=>document.removeEventListener(Rl,L)},[]),h.jsx(Pe.div,{...u,ref:x,style:{pointerEvents:w?T?"auto":"none":void 0,...t.style},onFocusCapture:Te(t.onFocusCapture,I.onFocusCapture),onBlurCapture:Te(t.onBlurCapture,I.onBlurCapture),onPointerDownCapture:Te(t.onPointerDownCapture,P.onPointerDownCapture)})},"DismissableLayer"));function cE(){const e=v.useContext(Fm),[t,n]=v.useState(null);return v.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}$e(cE,"useDismissableLayerSurface");var uE=$e(()=>!0,"IS_TRUE");function zm(e,t){const{ownerDocument:n=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:s,shouldHandlePointerDownOutside:i=uE}=t,a=Nt(e),l=v.useRef(!1),c=v.useRef(!1),u=v.useRef(new Map),d=v.useRef(()=>{});return v.useEffect(()=>{function f(){c.current=!1,r.current=!1,u.current.clear()}$e(f,"resetOutsideInteraction");function p(){return Array.from(u.current.values()).some(Boolean)}$e(p,"isOutsideInteractionIntercepted");function m(C){if(!c.current)return;const _=C.target;_ instanceof Node&&[...s].some(T=>T.contains(_))||u.current.set(C.type,!0),C.type==="click"&&window.setTimeout(()=>{c.current&&d.current()},0)}$e(m,"handleInteractionCapture");function g(C){c.current&&u.current.set(C.type,!1)}$e(g,"handleInteractionBubble");const x=$e(C=>{if(C.target&&!l.current){let _=function(){n.removeEventListener("click",d.current);const T=p();f(),T||Fl(iE,a,w,{discrete:!0})};if($e(_,"handleAndDispatchPointerDownOutsideEvent"),!i(C.target)){n.removeEventListener("click",d.current),f(),l.current=!1;return}const w={originalEvent:C};c.current=!0,r.current=o&&C.button===0,u.current.clear(),!o||C.button!==0?_():(n.removeEventListener("click",d.current),d.current=_,n.addEventListener("click",d.current,{once:!0}))}else n.removeEventListener("click",d.current),f();l.current=!1},"handlePointerDown"),b=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const C of b)n.addEventListener(C,m,!0),n.addEventListener(C,g);const S=window.setTimeout(()=>{n.addEventListener("pointerdown",x)},0);return()=>{window.clearTimeout(S),n.removeEventListener("pointerdown",x),n.removeEventListener("click",d.current);for(const C of b)n.removeEventListener(C,m,!0),n.removeEventListener(C,g)}},[n,a,o,r,s,i]),{onPointerDownCapture:$e(()=>l.current=!0,"onPointerDownCapture")}}$e(zm,"usePointerDownOutside");function Vm(e,t=globalThis==null?void 0:globalThis.document){const n=Nt(e),o=v.useRef(!1);return v.useEffect(()=>{const r=$e(s=>{s.target&&!o.current&&Fl(aE,n,{originalEvent:s},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:$e(()=>o.current=!0,"onFocusCapture"),onBlurCapture:$e(()=>o.current=!1,"onBlurCapture")}}$e(Vm,"useFocusOutside");function Ll(){const e=new CustomEvent(Rl);document.dispatchEvent(e)}$e(Ll,"dispatchUpdate");function Fl(e,t,n,{discrete:o}){const r=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),o?Af(r,s):r.dispatchEvent(s)}$e(Fl,"handleAndDispatchCustomEvent");var dE=Object.defineProperty,zl=(e,t)=>dE(e,"name",{value:t,configurable:!0}),zs=0,kt=null;function fE(e){return Vl(),e.children}zl(fE,"FocusGuards");function Vl(){v.useEffect(()=>{kt||(kt={start:Bl(),end:Bl()});const{start:e,end:t}=kt;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),zs++,()=>{zs===1&&(kt==null||kt.start.remove(),kt==null||kt.end.remove(),kt=null),zs=Math.max(0,zs-1)}},[])}zl(Vl,"useFocusGuards");function Bl(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}zl(Bl,"createFocusGuard");var pE=Object.defineProperty,Xe=(e,t)=>pE(e,"name",{value:t,configurable:!0}),Hl="focusScope.autoFocusOnMount",Gl="focusScope.autoFocusOnUnmount",Bm={bubbles:!1,cancelable:!0},gE=v.forwardRef(Xe(function(t,n){const{loop:o=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...a}=t,[l,c]=v.useState(null),u=Nt(s),d=Nt(i),f=v.useRef(null),p=_e(n,c),m=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let x=function(_){if(m.paused||!l)return;const w=_.target;l.contains(w)?f.current=w:qt(f.current,{select:!0})},b=function(_){if(m.paused||!l)return;const w=_.relatedTarget;w!==null&&(l.contains(w)||qt(f.current,{select:!0}))},S=function(_){if(document.activeElement===document.body)for(const T of _)T.removedNodes.length>0&&qt(l)};Xe(x,"handleFocusIn"),Xe(b,"handleFocusOut"),Xe(S,"handleMutations"),document.addEventListener("focusin",x),document.addEventListener("focusout",b);const C=new MutationObserver(S);return l&&C.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",b),C.disconnect()}}},[r,l,m.paused]),v.useEffect(()=>{if(l){Um.add(m);const x=document.activeElement;if(!l.contains(x)){const S=new CustomEvent(Hl,Bm);l.addEventListener(Hl,u),l.dispatchEvent(S),S.defaultPrevented||(Hm(Km(jl(l)),{select:!0}),document.activeElement===x&&qt(l))}return()=>{l.removeEventListener(Hl,u),setTimeout(()=>{const S=new CustomEvent(Gl,Bm);l.addEventListener(Gl,d),l.dispatchEvent(S),S.defaultPrevented||qt(x??document.body,{select:!0}),l.removeEventListener(Gl,d),Um.remove(m)},0)}}},[l,u,d,m]);const g=v.useCallback(x=>{if(!o&&!r||m.paused)return;const b=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,S=document.activeElement;if(b&&S){const C=x.currentTarget,[_,w]=Gm(C);_&&w?!x.shiftKey&&S===w?(x.preventDefault(),o&&qt(_,{select:!0})):x.shiftKey&&S===_&&(x.preventDefault(),o&&qt(w,{select:!0})):S===C&&x.preventDefault()}},[o,r,m.paused]);return h.jsx(Pe.div,{tabIndex:-1,...a,ref:p,onKeyDown:g})},"FocusScope"));function Hm(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(qt(o,{select:t}),document.activeElement!==n)return}Xe(Hm,"focusFirst");function Gm(e){const t=jl(e),n=Wl(t,e),o=Wl(t.reverse(),e);return[n,o]}Xe(Gm,"getTabbableEdges");function jl(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Xe(o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}Xe(jl,"getTabbableCandidates");function Wl(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const o of e)if(!(n?!o.checkVisibility({checkVisibilityCSS:!0}):jm(o,{upTo:t})))return o}Xe(Wl,"findVisible");function jm(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}Xe(jm,"isHidden");function Wm(e){return e instanceof HTMLInputElement&&"select"in e}Xe(Wm,"isSelectableInput");function qt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Wm(e)&&t&&e.select()}}Xe(qt,"focus");var Um=qm();function qm(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ul(e,t),e.unshift(t)},remove(t){var n;e=Ul(e,t),(n=e[0])==null||n.resume()}}}Xe(qm,"createFocusScopesStack");function Ul(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}Xe(Ul,"arrayRemove");function Km(e){return e.filter(t=>t.tagName!=="A")}Xe(Km,"removeLinks");var Re=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},hE=Object.defineProperty,mE=(e,t)=>hE(e,"name",{value:t,configurable:!0}),vE=v[" useId ".trim().toString()]||(()=>{}),xE=0;function Vs(e){const[t,n]=v.useState(vE());return Re(()=>{e||n(o=>o??String(xE++))},[e]),e||(t?`radix-${t}`:"")}mE(Vs,"useId");var bE=Object.defineProperty,yE=(e,t)=>bE(e,"name",{value:t,configurable:!0});function Xm(e){const[t,n]=v.useState(void 0);return Re(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const s=r[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,a=c.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}yE(Xm,"useSize");var CE=Object.defineProperty,ln=(e,t)=>CE(e,"name",{value:t,configurable:!0}),Ym="Popper",[Jm,Zm]=no(Ym),[SE,Qm]=Jm(Ym),wE=ln(e=>{const{__scopePopper:t,children:n}=e,[o,r]=v.useState(null),[s,i]=v.useState(void 0);return h.jsx(SE,{scope:t,anchor:o,onAnchorChange:r,placementState:s,setPlacementState:i,children:n})},"Popper"),_E="PopperAnchor",TE=v.forwardRef(ln(function(t,n){const{__scopePopper:o,virtualRef:r,...s}=t,i=Qm(_E,o),a=v.useRef(null),l=i.onAnchorChange,c=v.useCallback(g=>{a.current=g,g&&l(g)},[l]),u=_e(n,c),d=v.useRef(null);v.useEffect(()=>{if(!r)return;const g=d.current;d.current=r.current,g!==d.current&&l(d.current)});const f=i.placementState&&Bs(i.placementState),p=f==null?void 0:f[0],m=f==null?void 0:f[1];return r?null:h.jsx(Pe.div,{"data-radix-popper-side":p,"data-radix-popper-align":m,...s,ref:u})},"PopperAnchor")),ev="PopperContent",[EE,Ik]=Jm(ev),PE=v.forwardRef(ln(function(t,n){var j,U,ee,B,Z,ue,me;const{__scopePopper:o,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:g,...x}=t,b=Qm(ev,o),[S,C]=v.useState(null),_=_e(n,C),[w,T]=v.useState(null),E=Xm(w),P=(E==null?void 0:E.width)??0,I=(E==null?void 0:E.height)??0,N=r+(i!=="center"?"-"+i:""),H=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},L=Array.isArray(u)?u:[u],X=L.length>0,W={padding:H,boundary:L.filter(tv),altBoundary:X},{refs:J,floatingStyles:Y,placement:q,isPositioned:z,middlewareData:Q}=dg({strategy:"fixed",placement:N,whileElementsMounted:ln((...Ce)=>ag(...Ce,{animationFrame:m==="always"}),"whileElementsMounted"),elements:{reference:b.anchor},middleware:[fg({mainAxis:s+I,alignmentAxis:a}),c&&pg({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?gg():void 0,...W}),c&&hg({...W}),mg({...W,apply:ln(({elements:Ce,rects:Ne,availableWidth:ye,availableHeight:at})=>{const{width:oe,height:ie}=Ne.reference,re=Ce.floating.style;re.setProperty("--radix-popper-available-width",`${ye}px`),re.setProperty("--radix-popper-available-height",`${at}px`),re.setProperty("--radix-popper-anchor-width",`${oe}px`),re.setProperty("--radix-popper-anchor-height",`${ie}px`)},"apply")}),w&&xg({element:w,padding:l}),IE({arrowWidth:P,arrowHeight:I}),p&&vg({strategy:"referenceHidden",...W,boundary:X?W.boundary:void 0})]}),F=b.setPlacementState;Re(()=>(F(q),()=>{F(void 0)}),[q,F]);const[K,D]=Bs(q),A=Nt(g);Re(()=>{z&&(A==null||A())},[z,A]);const k=(j=Q.arrow)==null?void 0:j.x,$=(U=Q.arrow)==null?void 0:U.y,V=((ee=Q.arrow)==null?void 0:ee.centerOffset)!==0,[M,R]=v.useState();return Re(()=>{S&&R(window.getComputedStyle(S).zIndex)},[S]),h.jsx("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:z?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:M,"--radix-popper-transform-origin":[(B=Q.transformOrigin)==null?void 0:B.x,(Z=Q.transformOrigin)==null?void 0:Z.y].join(" "),...((ue=Q.hide)==null?void 0:ue.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:h.jsx(EE,{scope:o,placedSide:K,placedAlign:D,onArrowChange:T,arrowX:k,arrowY:$,shouldHideArrow:V,children:h.jsx(Pe.div,{"data-side":K,"data-align":D,...x,ref:_,style:{...x.style,animation:z?(me=x.style)==null?void 0:me.animation:"none"}})})})},"PopperContent"));function tv(e){return e!==null}ln(tv,"isNotNull");var IE=ln(e=>({name:"transformOrigin",options:e,fn(t){var x,b,S;const{placement:n,rects:o,middlewareData:r}=t,i=((x=r.arrow)==null?void 0:x.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,u]=Bs(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((b=r.arrow)==null?void 0:b.x)??0)+a/2,p=(((S=r.arrow)==null?void 0:S.y)??0)+l/2;let m="",g="";return c==="bottom"?(m=i?d:`${f}px`,g=`${-l}px`):c==="top"?(m=i?d:`${f}px`,g=`${o.floating.height+l}px`):c==="right"?(m=`${-l}px`,g=i?d:`${p}px`):c==="left"&&(m=`${o.floating.width+l}px`,g=i?d:`${p}px`),{data:{x:m,y:g}}}}),"transformOrigin");function Bs(e){const[t,n="center"]=e.split("-");return[t,n]}ln(Bs,"getSideAndAlignFromPlacement");var AE=wE,OE=TE,DE=PE,NE=Object.defineProperty,kE=(e,t)=>NE(e,"name",{value:t,configurable:!0}),ME=v.forwardRef(kE(function(t,n){var l;const{container:o,...r}=t,[s,i]=v.useState(!1);Re(()=>i(!0),[]);const a=o||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?xn.createPortal(h.jsx(Pe.div,{...r,ref:n}),a):null},"Portal")),$E=Object.defineProperty,Kt=(e,t)=>$E(e,"name",{value:t,configurable:!0});function nv(e,t){return v.useReducer((n,o)=>t[n][o]??n,e)}Kt(nv,"useStateMachine");var RE=Kt(e=>{const{present:t,children:n}=e,o=ov(t),r=typeof n=="function"?n({present:o.isPresent}):v.Children.only(n),s=rv(o.ref,sv(r));return typeof n=="function"||o.isPresent?v.cloneElement(r,{ref:s}):null},"Presence");function ov(e){const[t,n]=v.useState(),o=v.useRef(null),r=v.useRef(e),s=v.useRef("none"),i=v.useRef(void 0),a=e?"mounted":"unmounted",[l,c]=nv(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{l==="mounted"?(s.current=i.current??yo(o.current),i.current=void 0):s.current="none"},[l]),Re(()=>{const u=o.current,d=r.current;if(d!==e){const p=s.current,m=yo(u);e?(i.current=m,c("MOUNT")):m==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&p!==m?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),Re(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=Kt(m=>{const x=yo(o.current).includes(CSS.escape(m.animationName));if(m.target===t&&x&&(c("ANIMATION_END"),!r.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},"handleAnimationEnd"),p=Kt(m=>{m.target===t&&(s.current=yo(o.current))},"handleAnimationStart");return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:v.useCallback(u=>{if(u){const d=getComputedStyle(u);o.current=d,i.current=yo(d)}else o.current=null;n(u)},[])}}Kt(ov,"usePresence");function ql(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}Kt(ql,"setRef");function rv(...e){const t=v.useRef(e);return t.current=e,v.useCallback(n=>{const o=t.current;let r=!1;const s=o.map(i=>{const a=ql(i,n);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<s.length;i++){const a=s[i];typeof a=="function"?a():ql(o[i],null)}}},[])}Kt(rv,"useStableComposedRefs");function yo(e){return(e==null?void 0:e.animationName)||"none"}Kt(yo,"getAnimationName");function sv(e){var o,r;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Kt(sv,"getElementRef");var LE=Object.defineProperty,FE=(e,t)=>LE(e,"name",{value:t,configurable:!0}),iv=v[" useEffectEvent ".trim().toString()],av=v[" useInsertionEffect ".trim().toString()];function lv(e){if(typeof iv=="function")return iv(e);const t=v.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof av=="function"?av(()=>{t.current=e}):Re(()=>{t.current=e}),v.useMemo(()=>((...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)}),[])}FE(lv,"useEffectEvent");var zE=Object.defineProperty,sr=(e,t)=>zE(e,"name",{value:t,configurable:!0}),VE=v[" useInsertionEffect ".trim().toString()]||Re;function Kl({prop:e,defaultProp:t,onChange:n=sr(()=>{},"onChange"),caller:o}){const[r,s,i]=cv({defaultProp:t,onChange:n}),a=e!==void 0,l=a?e:r,c=v.useCallback(u=>{var d;if(a){const f=uv(u)?u(e):u;f!==e&&((d=i.current)==null||d.call(i,f))}else s(u)},[a,e,s,i]);return[l,c]}sr(Kl,"useControllableState");function cv({defaultProp:e,onChange:t}){const[n,o]=v.useState(e),r=v.useRef(n),s=v.useRef(t);return VE(()=>{s.current=t},[t]),v.useEffect(()=>{var i;r.current!==n&&((i=s.current)==null||i.call(s,n),r.current=n)},[n,r]),[n,o,s]}sr(cv,"useUncontrolledState");function uv(e){return typeof e=="function"}sr(uv,"isFunction");var dv=Symbol("RADIX:SYNC_STATE");function BE(e,t,n,o){const{prop:r,defaultProp:s,onChange:i,caller:a}=t,l=r!==void 0,c=lv(i),u=[{...n,state:s}];o&&u.push(o);const[d,f]=v.useReducer((x,b)=>{if(b.type===dv)return{...x,state:b.state};const S=e(x,b);return l&&!Object.is(S.state,x.state)&&c(S.state),S},...u),p=d.state,m=v.useRef(p);v.useEffect(()=>{m.current!==p&&(m.current=p,l||c(p))},[p,m,l]);const g=v.useMemo(()=>r!==void 0?{...d,state:r}:d,[d,r]);return v.useEffect(()=>{l&&!Object.is(r,d.state)&&f({type:dv,state:r})},[r,d.state,l]),[g,f]}sr(BE,"useControllableStateReducer");var HE=Object.defineProperty,GE=(e,t)=>HE(e,"name",{value:t,configurable:!0});function fv(e){const t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}GE(fv,"usePrevious");var jE=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),WE=Object.defineProperty,he=(e,t)=>WE(e,"name",{value:t,configurable:!0}),UE=[" ","Enter","ArrowUp","ArrowDown"],qE=[" ","Enter"],Co="Select",[Hs,Gs,KE]=Om(Co),[Vn,Ak]=no(Co,[KE,Zm]),Xl=Zm(),[XE,cn]=Vn(Co),[YE,JE]=Vn(Co);function pv(e){const{__scopeSelect:t,children:n,open:o,defaultOpen:r,onOpenChange:s,value:i,defaultValue:a,onValueChange:l,dir:c,name:u,autoComplete:d,disabled:f,required:p,form:m,internal_do_not_use_render:g}=e,x=Xl(t),[b,S]=v.useState(null),[C,_]=v.useState(null),[w,T]=v.useState(!1),E=Rm(c),[P,I]=Kl({prop:o,defaultProp:r??!1,onChange:s,caller:Co}),[N,H]=Kl({prop:i,defaultProp:a,onChange:l,caller:Co}),L=v.useRef(null),X=v.useRef(N);v.useEffect(()=>{const D=m?b==null?void 0:b.ownerDocument.getElementById(m):b==null?void 0:b.form;if(D instanceof HTMLFormElement){const A=he(()=>H(X.current),"reset");return D.addEventListener("reset",A),()=>D.removeEventListener("reset",A)}},[m,b,H]);const W=b?!!m||!!b.closest("form"):!0,[J,Y]=v.useState(new Set),q=Vs(),z=Array.from(J).map(D=>D.props.value).join(";"),Q=v.useCallback(D=>{Y(A=>new Set(A).add(D))},[]),F=v.useCallback(D=>{Y(A=>{const k=new Set(A);return k.delete(D),k})},[]),K={required:p,trigger:b,onTriggerChange:S,valueNode:C,onValueNodeChange:_,valueNodeHasChildren:w,onValueNodeHasChildrenChange:T,contentId:q,value:N,onValueChange:H,open:P,onOpenChange:I,dir:E,triggerPointerDownPosRef:L,disabled:f,name:u,autoComplete:d,form:m,nativeOptions:J,nativeSelectKey:z,isFormControl:W};return h.jsx(AE,{...x,children:h.jsx(XE,{scope:t,...K,children:h.jsx(Hs.Provider,{scope:t,children:h.jsx(YE,{scope:t,onNativeOptionAdd:Q,onNativeOptionRemove:F,children:Cv(g)?g(K):n})})})})}he(pv,"SelectProvider");var ZE=he(e=>{const{__scopeSelect:t,children:n,...o}=e;return h.jsx(pv,{__scopeSelect:t,...o,internal_do_not_use_render:({isFormControl:r})=>h.jsxs(h.Fragment,{children:[n,r?h.jsx(O2,{__scopeSelect:t}):null]})})},"Select"),QE="SelectTrigger",e2=v.forwardRef(he(function(t,n){const{__scopeSelect:o,disabled:r=!1,...s}=t,i=Xl(o),a=cn(QE,o),l=a.disabled||r,c=_e(n,a.onTriggerChange),u=Gs(o),d=v.useRef("touch"),[f,p,m]=Zl(x=>{const b=u().filter(_=>!_.disabled),S=b.find(_=>_.value===a.value),C=Ql(b,x,S);C!==void 0&&a.onValueChange(C.value)}),g=he(x=>{l||(a.onOpenChange(!0),m()),x&&(a.triggerPointerDownPosRef.current={x:Math.round(x.pageX),y:Math.round(x.pageY)})},"handleOpen");return h.jsx(OE,{asChild:!0,...i,children:h.jsx(Pe.button,{type:"button",role:"combobox","aria-controls":a.open?a.contentId:void 0,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":ir(a.value)?"":void 0,...s,ref:c,onClick:Te(s.onClick,x=>{x.currentTarget.focus(),d.current!=="mouse"&&g(x)}),onPointerDown:Te(s.onPointerDown,x=>{d.current=x.pointerType;const b=x.target;b.hasPointerCapture(x.pointerId)&&b.releasePointerCapture(x.pointerId),x.button===0&&x.ctrlKey===!1&&x.pointerType==="mouse"&&(g(x),x.preventDefault())}),onKeyDown:Te(s.onKeyDown,x=>{const b=f.current!=="";!(x.ctrlKey||x.altKey||x.metaKey)&&x.key.length===1&&p(x.key),!(b&&x.key===" ")&&UE.includes(x.key)&&(g(),x.preventDefault())})})})},"SelectTrigger")),t2="SelectValue",n2=v.forwardRef(he(function(t,n){const{__scopeSelect:o,className:r,style:s,children:i,placeholder:a="",...l}=t,c=cn(t2,o),{onValueNodeHasChildrenChange:u}=c,d=i!==void 0,f=_e(n,c.onValueNodeChange);Re(()=>{u(d)},[u,d]);const p=ir(c.value);return h.jsx(Pe.span,{...l,asChild:p?!1:l.asChild,ref:f,style:{pointerEvents:"none"},children:h.jsx(v.Fragment,{children:p?a:i},p?"placeholder":"value")})},"SelectValue")),o2=v.forwardRef(he(function(t,n){const{__scopeSelect:o,children:r,...s}=t;return h.jsx(Pe.span,{"aria-hidden":!0,...s,ref:n,children:r||"▼"})},"SelectIcon")),r2="SelectPortal",[s2,i2]=Vn(r2,{forceMount:void 0}),a2=he(e=>{const{__scopeSelect:t,forceMount:n,...o}=e;return h.jsx(s2,{scope:e.__scopeSelect,forceMount:n,children:h.jsx(ME,{asChild:!0,...o})})},"SelectPortal"),Bn="SelectContent",l2=v.forwardRef(he(function(t,n){const o=i2(Bn,t.__scopeSelect),{forceMount:r=o.forceMount,...s}=t,i=cn(Bn,t.__scopeSelect),[a,l]=v.useState();return Re(()=>{l(new DocumentFragment)},[]),h.jsx(RE,{present:r||i.open,children:({present:c})=>c?h.jsx(d2,{...s,ref:n}):h.jsx(c2,{...s,fragment:a})})},"SelectContent")),c2=v.forwardRef(he(function(t,n){const{__scopeSelect:o,children:r,fragment:s}=t;return s?xn.createPortal(h.jsx(gv,{scope:o,children:h.jsx(Hs.Slot,{scope:o,children:h.jsx("div",{ref:n,children:r})})}),s):null},"SelectContentFragment")),Ct=10,[gv,Hn]=Vn(Bn),u2=Nn("SelectContent.RemoveScroll"),d2=v.forwardRef(he(function(t,n){const{__scopeSelect:o}=t,{position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:a,side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:m,sticky:g,hideWhenDetached:x,avoidCollisions:b,...S}=t,C=cn(Bn,o),[_,w]=v.useState(null),[T,E]=v.useState(null),P=_e(n,w),[I,N]=v.useState(null),[H,L]=v.useState(null),X=Gs(o),[W,J]=v.useState(!1),Y=v.useRef(!1);v.useEffect(()=>{if(_)return Oa(_)},[_]),Vl();const q=v.useCallback(R=>{const[j,...U]=X().map(Z=>Z.ref.current),[ee]=U.slice(-1),B=document.activeElement;for(const Z of R)if(Z===B||(Z==null||Z.scrollIntoView({block:"nearest"}),Z===j&&T&&(T.scrollTop=0),Z===ee&&T&&(T.scrollTop=T.scrollHeight),Z==null||Z.focus(),document.activeElement!==B))return},[X,T]),z=v.useCallback(()=>q([I,_]),[q,I,_]);v.useEffect(()=>{W&&z()},[W,z]);const{onOpenChange:Q,triggerPointerDownPosRef:F}=C;v.useEffect(()=>{if(_){let R={x:0,y:0};const j=he(ee=>{var B,Z;R={x:Math.abs(Math.round(ee.pageX)-(((B=F.current)==null?void 0:B.x)??0)),y:Math.abs(Math.round(ee.pageY)-(((Z=F.current)==null?void 0:Z.y)??0))}},"handlePointerMove"),U=he(ee=>{R.x<=10&&R.y<=10?ee.preventDefault():ee.composedPath().includes(_)||Q(!1),document.removeEventListener("pointermove",j),F.current=null},"handlePointerUp");return F.current!==null&&(document.addEventListener("pointermove",j),document.addEventListener("pointerup",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",j),document.removeEventListener("pointerup",U,{capture:!0})}}},[_,Q,F]),v.useEffect(()=>{const R=he(()=>Q(!1),"close");return window.addEventListener("blur",R),window.addEventListener("resize",R),()=>{window.removeEventListener("blur",R),window.removeEventListener("resize",R)}},[Q]);const[K,D]=Zl(R=>{const j=X().filter(B=>!B.disabled),U=j.find(B=>B.ref.current===document.activeElement),ee=Ql(j,R,U);ee&&setTimeout(()=>{var B;return(B=ee.ref.current)==null?void 0:B.focus()})}),A=v.useCallback((R,j,U)=>{const ee=!Y.current&&!U;(C.value!==void 0&&C.value===j||ee)&&(N(R),ee&&(Y.current=!0))},[C.value]),k=v.useCallback(()=>_==null?void 0:_.focus(),[_]),$=v.useCallback((R,j,U)=>{const ee=!Y.current&&!U;(C.value!==void 0&&C.value===j||ee)&&L(R)},[C.value]),V=r==="popper"?hv:f2,M=V===hv?{side:l,sideOffset:c,align:u,alignOffset:d,arrowPadding:f,collisionBoundary:p,collisionPadding:m,sticky:g,hideWhenDetached:x,avoidCollisions:b}:{};return h.jsx(gv,{scope:o,content:_,viewport:T,onViewportChange:E,itemRefCallback:A,selectedItem:I,onItemLeave:k,itemTextRefCallback:$,focusSelectedItem:z,selectedItemText:H,position:r,isPositioned:W,searchRef:K,children:h.jsx(as,{as:u2,allowPinchZoom:!0,children:h.jsx(gE,{asChild:!0,trapped:C.open,onMountAutoFocus:R=>{R.preventDefault()},onUnmountAutoFocus:Te(s,R=>{var j;(j=C.trigger)==null||j.focus({preventScroll:!0}),R.preventDefault()}),children:h.jsx(lE,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:R=>R.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:h.jsx(V,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:R=>R.preventDefault(),...S,...M,onPlaced:()=>J(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...S.style},onKeyDown:Te(S.onKeyDown,R=>{const j=R.ctrlKey||R.altKey||R.metaKey;if(R.key==="Tab"&&R.preventDefault(),!j&&R.key.length===1&&D(R.key),["ArrowUp","ArrowDown","Home","End"].includes(R.key)){let ee=X().filter(B=>!B.disabled).map(B=>B.ref.current);if(["ArrowUp","End"].includes(R.key)&&(ee=ee.slice().reverse()),["ArrowUp","ArrowDown"].includes(R.key)){const B=R.target,Z=ee.indexOf(B);ee=ee.slice(Z+1)}setTimeout(()=>q(ee)),R.preventDefault()}})})})})})})},"SelectContentImpl")),f2=v.forwardRef(he(function(t,n){const{__scopeSelect:o,onPlaced:r,...s}=t,i=cn(Bn,o),a=Hn(Bn,o),[l,c]=v.useState(null),[u,d]=v.useState(null),f=_e(n,d),p=Gs(o),m=v.useRef(!1),g=v.useRef(!0),{viewport:x,selectedItem:b,selectedItemText:S,focusSelectedItem:C}=a,_=v.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&u&&x&&b&&S){const P=i.trigger.getBoundingClientRect(),I=u.getBoundingClientRect(),N=i.valueNode.getBoundingClientRect(),H=S.getBoundingClientRect();if(i.dir!=="rtl"){const B=H.left-I.left,Z=N.left-B,ue=P.left-Z,me=P.width+ue,Ce=Math.max(me,I.width),Ne=window.innerWidth-Ct,ye=Dl(Z,[Ct,Math.max(Ct,Ne-Ce)]);l.style.minWidth=me+"px",l.style.left=ye+"px"}else{const B=I.right-H.right,Z=window.innerWidth-N.right-B,ue=window.innerWidth-P.right-Z,me=P.width+ue,Ce=Math.max(me,I.width),Ne=window.innerWidth-Ct,ye=Dl(Z,[Ct,Math.max(Ct,Ne-Ce)]);l.style.minWidth=me+"px",l.style.right=ye+"px"}const L=p(),X=window.innerHeight-Ct*2,W=x.scrollHeight,J=window.getComputedStyle(u),Y=parseInt(J.borderTopWidth,10),q=parseInt(J.paddingTop,10),z=parseInt(J.borderBottomWidth,10),Q=parseInt(J.paddingBottom,10),F=Y+q+W+Q+z,K=Math.min(b.offsetHeight*5,F),D=window.getComputedStyle(x),A=parseInt(D.paddingTop,10),k=parseInt(D.paddingBottom,10),$=P.top+P.height/2-Ct,V=X-$,M=b.offsetHeight/2,R=b.offsetTop+M,j=Y+q+R,U=F-j;if(j<=$){const B=L.length>0&&b===L[L.length-1].ref.current;l.style.bottom="0px";const Z=u.clientHeight-x.offsetTop-x.offsetHeight,ue=Math.max(V,M+(B?k:0)+Z+z),me=j+ue;l.style.height=me+"px"}else{const B=L.length>0&&b===L[0].ref.current;l.style.top="0px";const ue=Math.max($,Y+x.offsetTop+(B?A:0)+M)+U;l.style.height=ue+"px",x.scrollTop=j-$+x.offsetTop}l.style.margin=`${Ct}px 0`,l.style.minHeight=K+"px",l.style.maxHeight=X+"px",r==null||r(),requestAnimationFrame(()=>m.current=!0)}},[p,i.trigger,i.valueNode,l,u,x,b,S,i.dir,r]);Re(()=>_(),[_]);const[w,T]=v.useState();Re(()=>{u&&T(window.getComputedStyle(u).zIndex)},[u]);const E=v.useCallback(P=>{P&&g.current===!0&&(_(),C==null||C(),g.current=!1)},[_,C]);return h.jsx(p2,{scope:o,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:E,children:h.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:w},children:h.jsx(Pe.div,{...s,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})},"SelectItemAlignedPosition")),hv=v.forwardRef(he(function(t,n){const{__scopeSelect:o,align:r="start",collisionPadding:s=Ct,...i}=t,a=Xl(o);return h.jsx(DE,{...a,...i,ref:n,align:r,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})},"SelectPopperPosition")),[p2,Yl]=Vn(Bn,{}),mv="SelectViewport",g2=v.forwardRef(he(function(t,n){const{__scopeSelect:o,nonce:r,...s}=t,i=Hn(mv,o),a=Yl(mv,o),l=_e(n,i.onViewportChange),c=v.useRef(0);return h.jsxs(h.Fragment,{children:[h.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),h.jsx(Hs.Slot,{scope:o,children:h.jsx(Pe.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:Te(s.onScroll,u=>{const d=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:p}=a;if(p!=null&&p.current&&f){const m=Math.abs(c.current-d.scrollTop);if(m>0){const g=window.innerHeight-Ct*2,x=parseFloat(f.style.minHeight),b=parseFloat(f.style.height),S=Math.max(x,b);if(S<g){const C=S+m,_=Math.min(g,C),w=C-_;f.style.height=_+"px",f.style.bottom==="0px"&&(d.scrollTop=w>0?w:0,f.style.justifyContent="flex-end")}}}c.current=d.scrollTop})})})]})},"SelectViewport")),h2="SelectGroup",[m2,v2]=Vn(h2),x2=v.forwardRef(he(function(t,n){const{__scopeSelect:o,...r}=t,s=Vs();return h.jsx(m2,{scope:o,id:s,children:h.jsx(Pe.div,{role:"group","aria-labelledby":s,...r,ref:n})})},"SelectGroup")),b2="SelectLabel",y2=v.forwardRef(he(function(t,n){const{__scopeSelect:o,...r}=t,s=v2(b2,o);return h.jsx(Pe.div,{id:s.id,...r,ref:n})},"SelectLabel")),Jl="SelectItem",[C2,vv]=Vn(Jl),S2=v.forwardRef(he(function(t,n){const{__scopeSelect:o,value:r,disabled:s=!1,textValue:i,...a}=t,l=cn(Jl,o),c=Hn(Jl,o),u=l.value===r,[d,f]=v.useState(i??""),[p,m]=v.useState(!1),g=Nt(_=>{var w;return(w=c.itemRefCallback)==null?void 0:w.call(c,_,r,s)}),x=_e(n,g),b=Vs(),S=v.useRef("touch"),C=he(()=>{s||(l.onValueChange(r),l.onOpenChange(!1))},"handleSelect");return h.jsx(C2,{scope:o,value:r,disabled:s,textId:b,isSelected:u,onItemTextChange:v.useCallback(_=>{f(w=>w||((_==null?void 0:_.textContent)??"").trim())},[]),children:h.jsx(Hs.ItemSlot,{scope:o,value:r,disabled:s,textValue:d,children:h.jsx(Pe.div,{role:"option","aria-labelledby":b,"data-highlighted":p?"":void 0,"aria-selected":u&&p,"data-state":u?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...a,ref:x,onFocus:Te(a.onFocus,()=>m(!0)),onBlur:Te(a.onBlur,()=>m(!1)),onClick:Te(a.onClick,()=>{S.current!=="mouse"&&C()}),onPointerUp:Te(a.onPointerUp,()=>{S.current==="mouse"&&C()}),onPointerDown:Te(a.onPointerDown,_=>{S.current=_.pointerType}),onPointerMove:Te(a.onPointerMove,_=>{var w;S.current=_.pointerType,s?(w=c.onItemLeave)==null||w.call(c):S.current==="mouse"&&_.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Te(a.onPointerLeave,_=>{var w;_.currentTarget===document.activeElement&&((w=c.onItemLeave)==null||w.call(c))}),onKeyDown:Te(a.onKeyDown,_=>{var T;s||_.target!==_.currentTarget||((T=c.searchRef)==null?void 0:T.current)!==""&&_.key===" "||(qE.includes(_.key)&&C(),_.key===" "&&_.preventDefault())})})})})},"SelectItem")),js="SelectItemText",w2=v.forwardRef(he(function(t,n){const{__scopeSelect:o,className:r,style:s,...i}=t,a=cn(js,o),l=Hn(js,o),c=vv(js,o),u=JE(js,o),[d,f]=v.useState(null),p=Nt(C=>{var _;return(_=l.itemTextRefCallback)==null?void 0:_.call(l,C,c.value,c.disabled)}),m=_e(n,f,c.onItemTextChange,p),g=d==null?void 0:d.textContent,x=v.useMemo(()=>h.jsx("option",{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:b,onNativeOptionRemove:S}=u;return Re(()=>(b(x),()=>S(x)),[b,S,x]),h.jsxs(h.Fragment,{children:[h.jsx(Pe.span,{id:c.textId,...i,ref:m}),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren&&!ir(a.value)?xn.createPortal(i.children,a.valueNode):null]})},"SelectItemText")),_2="SelectItemIndicator",T2=v.forwardRef(he(function(t,n){const{__scopeSelect:o,...r}=t;return vv(_2,o).isSelected?h.jsx(Pe.span,{"aria-hidden":!0,...r,ref:n}):null},"SelectItemIndicator")),xv="SelectScrollUpButton",E2=v.forwardRef(he(function(t,n){const o=Hn(xv,t.__scopeSelect),r=Yl(xv,t.__scopeSelect),[s,i]=v.useState(!1),a=_e(n,r.onScrollButtonChange);return Re(()=>{if(o.viewport&&o.isPositioned){let l=function(){const u=c.scrollTop>0;i(u)};he(l,"handleScroll");const c=o.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[o.viewport,o.isPositioned]),s?h.jsx(yv,{...t,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=o;l&&c&&(l.scrollTop=l.scrollTop-c.offsetHeight)}}):null},"SelectScrollUpButton")),bv="SelectScrollDownButton",P2=v.forwardRef(he(function(t,n){const o=Hn(bv,t.__scopeSelect),r=Yl(bv,t.__scopeSelect),[s,i]=v.useState(!1),a=_e(n,r.onScrollButtonChange);return Re(()=>{if(o.viewport&&o.isPositioned){let l=function(){const u=c.scrollHeight-c.clientHeight,d=Math.ceil(c.scrollTop)<u;i(d)};he(l,"handleScroll");const c=o.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[o.viewport,o.isPositioned]),s?h.jsx(yv,{...t,ref:a,onAutoScroll:()=>{const{viewport:l,selectedItem:c}=o;l&&c&&(l.scrollTop=l.scrollTop+c.offsetHeight)}}):null},"SelectScrollDownButton")),yv=v.forwardRef(he(function(t,n){const{__scopeSelect:o,onAutoScroll:r,...s}=t,i=Hn("SelectScrollButton",o),a=v.useRef(null),l=Gs(o),c=v.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return v.useEffect(()=>()=>c(),[c]),Re(()=>{var d;const u=l().find(f=>f.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[l]),h.jsx(Pe.div,{"aria-hidden":!0,...s,ref:n,style:{flexShrink:0,...s.style},onPointerDown:Te(s.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:Te(s.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:Te(s.onPointerLeave,()=>{c()})})},"SelectScrollButtonImpl")),I2=v.forwardRef(he(function(t,n){const{__scopeSelect:o,...r}=t;return h.jsx(Pe.div,{"aria-hidden":!0,...r,ref:n})},"SelectSeparator")),A2="SelectBubbleInput",O2=v.forwardRef(he(function({__scopeSelect:t,...n},o){const r=cn(A2,t),{value:s,onValueChange:i,required:a,disabled:l,name:c,autoComplete:u,form:d}=r,{nativeOptions:f,nativeSelectKey:p}=r,m=v.useRef(null),g=_e(o,m),x=s??"",b=fv(x),S=Array.from(f).some(C=>(C.props.value??"")==="");return v.useEffect(()=>{const C=m.current;if(!C)return;const _=window.HTMLSelectElement.prototype,T=Object.getOwnPropertyDescriptor(_,"value").set;if(b!==x&&T){const E=new Event("change",{bubbles:!0});T.call(C,x),C.dispatchEvent(E)}},[b,x]),h.jsxs(Pe.select,{"aria-hidden":!0,required:a,tabIndex:-1,name:c,autoComplete:u,disabled:l,form:d,onChange:C=>i(C.target.value),...n,style:{...jE,...n.style},ref:g,defaultValue:x,children:[ir(s)&&!S?h.jsx("option",{value:""}):null,Array.from(f)]},p)},"SelectBubbleInput"));function Cv(e){return typeof e=="function"}he(Cv,"isFunction");function ir(e){return e===""||e===void 0}he(ir,"shouldShowPlaceholder");function Zl(e){const t=Nt(e),n=v.useRef(""),o=v.useRef(0),r=v.useCallback(i=>{const a=n.current+i;t(a),he((function l(c){n.current=c,window.clearTimeout(o.current),c!==""&&(o.current=window.setTimeout(()=>l(""),1e3))}),"updateSearch")(a)},[t]),s=v.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,r,s]}he(Zl,"useTypeaheadSearch");function Ql(e,t,n){const r=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=Sv(e,Math.max(s,0));r.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}he(Ql,"findNextItem");function Sv(e,t){return e.map((n,o)=>e[(t+o)%e.length])}he(Sv,"wrapArray");const D2={oxSelect:"_oxSelect_usfm0_2"},wv=y.createContext(null);function _v(){const e=y.useContext(wv);if(!e)throw new Error("Select sub-components must be used within <Select>.");return e}const Tv=y.forwardRef(({className:e,value:t,defaultValue:n,onValueChange:o,children:r,dataTestid:s,...i},a)=>{const[l,c]=y.useState(n),[u,d]=y.useState({}),f=t??l,p=y.useCallback((x,b)=>{d(S=>S[x]===b?S:{...S,[x]:b})},[]),m=y.useCallback(x=>{t===void 0&&c(x),o==null||o(x)},[t,o]),g=y.useMemo(()=>({value:f,labels:u,registerLabel:p}),[f,u,p]);return h.jsx(wv.Provider,{value:g,children:h.jsx(ZE,{value:f??"",onValueChange:m,...i,children:h.jsx("div",{ref:a,"data-slot":"select","data-testid":s,className:G(D2.oxSelect,e),children:r})})})});Tv.displayName="OxSelect";const Ws={oxSelectTrigger:"_oxSelectTrigger_z7vvo_2",oxSelectTriggerValue:"_oxSelectTriggerValue_z7vvo_2",oxSelectTriggerIcon:"_oxSelectTriggerIcon_z7vvo_2",oxSelectTriggerGlyph:"_oxSelectTriggerGlyph_z7vvo_2"},Ev=y.forwardRef(({className:e,placeholder:t="",disabled:n=!1,icon:o,children:r,...s},i)=>{const{value:a,labels:l}=_v(),c=a===void 0?"":l[a]??"";return h.jsxs(e2,{ref:i,"data-slot":"controller",className:G(Ws.oxSelectTrigger,e),disabled:n,...s,children:[h.jsx(n2,{className:Ws.oxSelectTriggerValue,placeholder:t,children:r?r({selectedLabel:c,value:a}):void 0}),h.jsx(o2,{asChild:!0,children:h.jsx("span",{"data-slot":"icon",className:Ws.oxSelectTriggerIcon,children:o??h.jsx(Pn,{className:Ws.oxSelectTriggerGlyph})})})]})});Ev.displayName="OxSelectTrigger";const Pv=y.forwardRef(({children:e,side:t="bottom",sideOffset:n=4,align:o="start",...r},s)=>h.jsx(a2,{children:h.jsxs(l2,{ref:s,"data-slot":"select-content",side:t,sideOffset:n,align:o,position:"popper",...r,children:[h.jsx(E2,{className:"ox-select-scroll-button",children:h.jsx(Nd,{className:"ox-select-scroll-icon"})}),h.jsx(g2,{className:"ox-select-viewport",children:e}),h.jsx(P2,{className:"ox-select-scroll-button",children:h.jsx(Pn,{className:"ox-select-scroll-icon"})})]})}));Pv.displayName="OxSelectContent";const ec={oxSelectItem:"_oxSelectItem_1mnbx_2",oxSelectItemIndicator:"_oxSelectItemIndicator_1mnbx_2",oxSelectCheckIcon:"_oxSelectCheckIcon_1mnbx_2"},Iv=y.forwardRef(({className:e,value:t,disabled:n=!1,children:o,...r},s)=>{const{registerLabel:i}=_v(),a=y.useRef(null);return y.useEffect(()=>{var l;i(t,((l=a.current)==null?void 0:l.textContent)??"")},[t,o,i]),h.jsxs(S2,{ref:s,"data-slot":"select-item",className:G(ec.oxSelectItem,e),value:t,disabled:n,...r,children:[h.jsx(w2,{ref:a,children:o}),h.jsx(T2,{className:ec.oxSelectItemIndicator,children:h.jsx(Ur,{className:ec.oxSelectCheckIcon})})]})});Iv.displayName="OxSelectItem";const N2={oxSelectGroupLabel:"_oxSelectGroupLabel_5zygj_2"},Av=y.forwardRef(({className:e,label:t,children:n,...o},r)=>h.jsxs(x2,{ref:r,"data-slot":"select-group",className:G(e),...o,children:[t?h.jsx(y2,{className:N2.oxSelectGroupLabel,children:t}):null,n]}));Av.displayName="OxSelectGroup";const k2={oxSelectSeparator:"_oxSelectSeparator_sl48w_2"},Ov=y.forwardRef(({className:e,...t},n)=>h.jsx(I2,{ref:n,"data-slot":"select-separator",className:G(k2.oxSelectSeparator,e),...t}));Ov.displayName="OxSelectSeparator";const un={oxPsnSwitch:"_oxPsnSwitch_1qogm_2",oxPsnHandler:"_oxPsnHandler_1qogm_2",oxPsnRegular:"_oxPsnRegular_1qogm_2",oxPsnSmall:"_oxPsnSmall_1qogm_2",oxPsnOn:"_oxPsnOn_1qogm_2",oxPsnOff:"_oxPsnOff_1qogm_2",oxPsnDisabled:"_oxPsnDisabled_1qogm_2",oxPsnEnabled:"_oxPsnEnabled_1qogm_2"},Dv=y.forwardRef(({className:e,checked:t=!1,size:n="small",disabled:o=!1,onCheckedChange:r,children:s,...i},a)=>{function l(){o||r==null||r(!t)}return h.jsxs("div",{ref:a,"data-slot":"controller",className:G(un.oxPsnSwitch,t?un.oxPsnOn:un.oxPsnOff,o?un.oxPsnDisabled:un.oxPsnEnabled,n==="regular"?un.oxPsnRegular:un.oxPsnSmall,e),...i,children:[h.jsx("div",{className:un.oxPsnHandler}),s,h.jsx("input",{type:"checkbox",checked:t,onChange:c=>{c.stopPropagation(),l()}})]})});Dv.displayName="OxSwitch";const M2=["small","regular"];var $2=Object.defineProperty,Xt=(e,t)=>$2(e,"name",{value:t,configurable:!0}),tc="Checkbox",[R2]=ft(tc),[L2,nc]=R2(tc);function Nv(e){const{__scopeCheckbox:t,checked:n,children:o,defaultChecked:r,disabled:s,form:i,name:a,onCheckedChange:l,required:c,value:u="on",internal_do_not_use_render:d}=e,[f,p]=vt({prop:n,defaultProp:r??!1,onChange:l,caller:tc}),[m,g]=v.useState(null),[x,b]=v.useState(null),S=v.useRef(!1),[C,_]=v.useReducer(E=>E+1,0),w=m?!!i||!!m.closest("form"):!0,T={checked:f,disabled:s,setChecked:p,control:m,setControl:g,name:a,form:i,value:u,hasConsumerStoppedPropagationRef:S,userInteractionCount:C,onUserInteraction:_,required:c,defaultChecked:Yt(r)?!1:r,isFormControl:w,bubbleInput:x,setBubbleInput:b};return h.jsx(L2,{scope:t,...T,children:kv(d)?d(T):o})}Xt(Nv,"CheckboxProvider");var F2="CheckboxTrigger",z2=v.forwardRef(Xt(function({__scopeCheckbox:t,onKeyDown:n,onClick:o,...r},s){const{control:i,value:a,disabled:l,checked:c,required:u,setControl:d,setChecked:f,hasConsumerStoppedPropagationRef:p,onUserInteraction:m,isFormControl:g,bubbleInput:x}=nc(F2,t),b=Se(s,d),S=v.useRef(c);return v.useEffect(()=>{const C=i==null?void 0:i.form;if(C){const _=Xt(()=>f(S.current),"reset");return C.addEventListener("reset",_),()=>C.removeEventListener("reset",_)}},[i,f]),h.jsx(de.button,{type:"button",role:"checkbox","aria-checked":Yt(c)?"mixed":c,"aria-required":u,"data-state":oc(c),"data-disabled":l?"":void 0,disabled:l,value:a,...r,ref:b,onKeyDown:ge(n,C=>{C.key==="Enter"&&C.preventDefault()}),onClick:ge(o,C=>{m(),f(_=>Yt(_)?!0:!_),x&&g&&(p.current=C.isPropagationStopped(),p.current||C.stopPropagation())})})},"CheckboxTrigger")),V2=v.forwardRef(Xt(function(t,n){const{__scopeCheckbox:o,name:r,checked:s,defaultChecked:i,required:a,disabled:l,value:c,onCheckedChange:u,form:d,...f}=t;return h.jsx(Nv,{__scopeCheckbox:o,checked:s,defaultChecked:i,disabled:l,required:a,onCheckedChange:u,name:r,form:d,value:c,internal_do_not_use_render:({isFormControl:p})=>h.jsxs(h.Fragment,{children:[h.jsx(z2,{...f,ref:n,__scopeCheckbox:o}),p&&h.jsx(j2,{__scopeCheckbox:o})]})})},"Checkbox")),B2="CheckboxIndicator",H2=v.forwardRef(Xt(function(t,n){const{__scopeCheckbox:o,forceMount:r,...s}=t,i=nc(B2,o);return h.jsx(xt,{present:r||Yt(i.checked)||i.checked===!0,children:h.jsx(de.span,{"data-state":oc(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:n,style:{pointerEvents:"none",...t.style}})})},"CheckboxIndicator")),G2="CheckboxBubbleInput",j2=v.forwardRef(Xt(function({__scopeCheckbox:t,onClick:n,...o},r){const{control:s,hasConsumerStoppedPropagationRef:i,userInteractionCount:a,checked:l,defaultChecked:c,required:u,disabled:d,name:f,value:p,form:m,bubbleInput:g,setBubbleInput:x}=nc(G2,t),b=Se(r,x),S=qa(s),C=v.useRef(!1),_=v.useRef(l),w=v.useRef(a);v.useEffect(()=>{const E=g;if(!E)return;const P=window.HTMLInputElement.prototype,N=Object.getOwnPropertyDescriptor(P,"checked").set,H=a!==w.current;w.current=a;const L=_.current!==l;_.current=l;const X=!(H&&i.current);if(L&&N){C.current=!H;const W=new Event("click",{bubbles:X});E.indeterminate=Yt(l),N.call(E,Yt(l)?!1:l),E.dispatchEvent(W),C.current=!1}},[g,l,i,a]);const T=v.useRef(Yt(l)?!1:l);return h.jsx(de.input,{type:"checkbox","aria-hidden":!0,defaultChecked:c??T.current,required:u,disabled:d,name:f,value:p,form:m,...o,tabIndex:-1,ref:b,onClick:ge(n,E=>{C.current&&E.stopPropagation()}),style:{...o.style,...S,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"CheckboxBubbleInput"));function kv(e){return typeof e=="function"}Xt(kv,"isFunction");function Yt(e){return e==="indeterminate"}Xt(Yt,"isIndeterminate");function oc(e){return Yt(e)?"indeterminate":e?"checked":"unchecked"}Xt(oc,"getState");const ar={oxCheckboxRoot:"_oxCheckboxRoot_zo75a_2",oxCheckboxIcon:"_oxCheckboxIcon_zo75a_2",oxCheckboxIndicator:"_oxCheckboxIndicator_zo75a_2",oxCheckboxRounded:"_oxCheckboxRounded_zo75a_2"},Us=y.forwardRef(({className:e,variant:t="default",checked:n,...o},r)=>{const s=n==="indeterminate";return h.jsx(V2,{ref:r,"data-slot":"controller",checked:n,className:G(ar.oxCheckboxRoot,t==="rounded"&&ar.oxCheckboxRounded,e),...o,children:h.jsx(H2,{forceMount:s?!0:void 0,className:ar.oxCheckboxIndicator,children:s?h.jsx(gy,{className:ar.oxCheckboxIcon}):h.jsx(Ur,{className:ar.oxCheckboxIcon})})})});Us.displayName="OxCheckbox";var W2=Object.defineProperty,Ve=(e,t)=>W2(e,"name",{value:t,configurable:!0}),Mv="Radio",[U2,$v]=ft(Mv),[q2,qs]=U2(Mv);function Rv(e){const{__scopeRadio:t,checked:n=!1,children:o,disabled:r,form:s,name:i,onCheck:a,required:l,value:c="on",internal_do_not_use_render:u}=e,[d,f]=v.useState(null),[p,m]=v.useState(null),g=v.useRef(!1),[x,b]=v.useReducer(_=>_+1,0),S=d?!!s||!!d.closest("form"):!0,C={checked:n,disabled:r,required:l,name:i,form:s,value:c,control:d,setControl:f,hasConsumerStoppedPropagationRef:g,userInteractionCount:x,onUserInteraction:b,isFormControl:S,bubbleInput:p,setBubbleInput:m,onCheck:Ve(()=>a==null?void 0:a(),"onCheck")};return h.jsx(q2,{scope:t,...C,children:Lv(u)?u(C):o})}Ve(Rv,"RadioProvider");var K2="RadioTrigger",X2=v.forwardRef(Ve(function({__scopeRadio:t,onClick:n,...o},r){const{checked:s,disabled:i,value:a,setControl:l,onCheck:c,hasConsumerStoppedPropagationRef:u,onUserInteraction:d,isFormControl:f,bubbleInput:p}=qs(K2,t),m=Se(r,l);return h.jsx(de.button,{type:"button",role:"radio","aria-checked":s,"data-state":rc(s),"data-disabled":i?"":void 0,disabled:i,value:a,...o,ref:m,onClick:ge(n,g=>{s||(d(),c()),p&&f&&(u.current=g.isPropagationStopped(),u.current||g.stopPropagation())})})},"RadioTrigger")),Y2="RadioIndicator",J2=v.forwardRef(Ve(function(t,n){const{__scopeRadio:o,forceMount:r,...s}=t,i=qs(Y2,o);return h.jsx(xt,{present:r||i.checked,children:h.jsx(de.span,{"data-state":rc(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:n})})},"RadioIndicator")),Z2="RadioBubbleInput",Q2=v.forwardRef(Ve(function({__scopeRadio:t,onClick:n,...o},r){const{control:s,checked:i,required:a,disabled:l,name:c,value:u,form:d,bubbleInput:f,setBubbleInput:p,hasConsumerStoppedPropagationRef:m,userInteractionCount:g}=qs(Z2,t),x=Se(r,p),b=qa(s),S=v.useRef(!1),C=v.useRef(i),_=v.useRef(g);v.useEffect(()=>{const T=f;if(!T)return;const E=window.HTMLInputElement.prototype,I=Object.getOwnPropertyDescriptor(E,"checked").set,N=g!==_.current;_.current=g;const H=C.current!==i;C.current=i;const L=!(N&&m.current);if(H&&I){S.current=!N;const X=new Event("click",{bubbles:L});I.call(T,i),T.dispatchEvent(X),S.current=!1}},[f,i,m,g]);const w=v.useRef(i);return h.jsx(de.input,{type:"radio","aria-hidden":!0,defaultChecked:w.current,required:a,disabled:l,name:c,value:u,form:d,...o,tabIndex:-1,ref:x,onClick:ge(n,T=>{S.current&&T.stopPropagation()}),style:{...o.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"RadioBubbleInput"));function Lv(e){return typeof e=="function"}Ve(Lv,"isFunction");function rc(e){return e?"checked":"unchecked"}Ve(rc,"getState");var eP=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],sc="RadioGroup",[tP]=ft(sc,[Ns,$v]),Fv=Ns(),Ks=$v(),[nP,oP]=tP(sc),rP=v.forwardRef(Ve(function(t,n){const{__scopeRadioGroup:o,name:r,form:s,defaultValue:i,value:a,required:l=!1,disabled:c=!1,orientation:u,dir:d,loop:f=!0,onValueChange:p,...m}=t,g=Fv(o),x=Is(d),[b,S]=vt({prop:a,defaultProp:i??null,onChange:p,caller:sc}),[C,_]=v.useState(null),w=Se(n,_),T=v.useRef(b);return v.useEffect(()=>{const E=s?C==null?void 0:C.ownerDocument.getElementById(s):C==null?void 0:C.closest("form");if(E instanceof HTMLFormElement){const P=Ve(()=>S(T.current),"reset");return E.addEventListener("reset",P),()=>E.removeEventListener("reset",P)}},[C,s,S]),h.jsx(nP,{scope:o,name:r,form:s,required:l,disabled:c,value:b,onValueChange:S,children:h.jsx(fh,{asChild:!0,...g,orientation:u,dir:x,loop:f,children:h.jsx(de.div,{role:"radiogroup","aria-required":l,"aria-orientation":u,"data-disabled":c?"":void 0,dir:x,...m,ref:w})})})},"RadioGroup")),sP="RadioGroupItemProvider",iP="RadioGroupItemTrigger";function zv(e){const{__scopeRadioGroup:t,value:n,disabled:o,children:r,internal_do_not_use_render:s}=e,i=oP(sP,t),a=Ks(t),l=i.disabled||o;return h.jsx(Rv,{...a,checked:i.value===n,disabled:l,required:i.required,name:i.name,form:i.form,value:n,onCheck:()=>i.onValueChange(n),internal_do_not_use_render:s,children:r})}Ve(zv,"RadioGroupItemProvider");var aP=v.forwardRef(Ve(function(t,n){const{__scopeRadioGroup:o,...r}=t,s=Fv(o),i=Ks(o),{checked:a,disabled:l}=qs(iP,i.__scopeRadio),c=v.useRef(null),u=Se(n,c),d=v.useRef(!1);return v.useEffect(()=>{const f=Ve(m=>{eP.includes(m.key)&&(d.current=!0)},"handleKeyDown"),p=Ve(()=>d.current=!1,"handleKeyUp");return document.addEventListener("keydown",f),document.addEventListener("keyup",p),()=>{document.removeEventListener("keydown",f),document.removeEventListener("keyup",p)}},[]),h.jsx(ph,{asChild:!0,...s,focusable:!l,active:a,children:h.jsx(X2,{...i,...r,ref:u,onKeyDown:ge(r.onKeyDown,f=>{f.key==="Enter"&&f.preventDefault()}),onFocus:ge(r.onFocus,()=>{var f;d.current&&((f=c.current)==null||f.click())})})})},"RadioGroupItemTrigger")),lP=v.forwardRef(Ve(function(t,n){const{__scopeRadioGroup:o,value:r,disabled:s,...i}=t;return h.jsx(zv,{__scopeRadioGroup:o,value:r,disabled:s,internal_do_not_use_render:({isFormControl:a})=>h.jsxs(h.Fragment,{children:[h.jsx(aP,{...i,ref:n,__scopeRadioGroup:o}),a&&h.jsx(cP,{__scopeRadioGroup:o})]})})},"RadioGroupItem")),cP=v.forwardRef(Ve(function(t,n){const{__scopeRadioGroup:o,...r}=t,s=Ks(o);return h.jsx(Q2,{...s,...r,ref:n})},"RadioGroupItemBubbleInput")),uP=v.forwardRef(Ve(function(t,n){const{__scopeRadioGroup:o,...r}=t,s=Ks(o);return h.jsx(J2,{...s,...r,ref:n})},"RadioGroupIndicator"));const ic={oxRadioRoot:"_oxRadioRoot_13eng_2",oxRadioDot:"_oxRadioDot_13eng_2",oxRadioIndicator:"_oxRadioIndicator_13eng_2"},Vv=y.forwardRef(({className:e,...t},n)=>h.jsx(lP,{ref:n,"data-slot":"controller",className:G(ic.oxRadioRoot,e),...t,children:h.jsx(uP,{className:ic.oxRadioIndicator,children:h.jsx("span",{className:ic.oxRadioDot})})}));Vv.displayName="OxRadioButton";const ac={oxRadioGroup:"_oxRadioGroup_1tk27_2",oxRadioGroupVertical:"_oxRadioGroupVertical_1tk27_2",oxRadioGroupHorizontal:"_oxRadioGroupHorizontal_1tk27_2"},Bv=y.forwardRef(({className:e,orientation:t="vertical",...n},o)=>h.jsx(rP,{ref:o,"data-slot":"controller",orientation:t,className:G(ac.oxRadioGroup,t==="horizontal"?ac.oxRadioGroupHorizontal:ac.oxRadioGroupVertical,e),...n}));Bv.displayName="OxRadioGroup";const lc={oxToggleGroup:"_oxToggleGroup_g360l_2",oxToggleGroupGapSm:"_oxToggleGroupGapSm_g360l_2",oxToggleGroupGapMd:"_oxToggleGroupGapMd_g360l_2",oxToggleGroupGapLg:"_oxToggleGroupGapLg_g360l_2",oxToggleGroupAlignStart:"_oxToggleGroupAlignStart_g360l_2",oxToggleGroupAlignCenter:"_oxToggleGroupAlignCenter_g360l_2"},Hv=y.forwardRef(({className:e,align:t="start",gap:n="md",...o},r)=>h.jsx("div",{ref:r,"data-slot":"controller",className:G(lc.oxToggleGroup,lc[`toggleGroupAlign${t==="center"?"Center":"Start"}`],lc[`toggleGroupGap${n==="sm"?"Sm":n==="lg"?"Lg":"Md"}`],e),...o}));Hv.displayName="OxToggleGroup";const dP={oxToggleLabel:"_oxToggleLabel_c4wp0_2"},Gv=y.forwardRef(({className:e,htmlFor:t,...n},o)=>h.jsx("label",{ref:o,htmlFor:t,"data-slot":"label",className:G(dP.oxToggleLabel,e),...n}));Gv.displayName="OxToggleLabel";const jv={oxToggleDescription:"_oxToggleDescription_1itzn_2",oxToggleDescriptionXs:"_oxToggleDescriptionXs_1itzn_2",oxToggleDescriptionSm:"_oxToggleDescriptionSm_1itzn_2",oxToggleDescriptionBase:"_oxToggleDescriptionBase_1itzn_2"},Wv=y.forwardRef(({className:e,size:t="sm",...n},o)=>h.jsx("span",{ref:o,"data-slot":"description",className:G(jv.oxToggleDescription,jv[`toggleDescription${t==="xs"?"Xs":t==="base"?"Base":"Sm"}`],e),...n}));Wv.displayName="OxToggleDescription";const ce={oxTableRoot:"_oxTableRoot_1e20r_2",oxTableScrollWrapper:"_oxTableScrollWrapper_1e20r_2",oxTableScrollContainer:"_oxTableScrollContainer_1e20r_2",oxTableScrollContainerVirtual:"_oxTableScrollContainerVirtual_1e20r_2",oxTableScrollContainerDraggable:"_oxTableScrollContainerDraggable_1e20r_2",oxTableScrollContainerDragging:"_oxTableScrollContainerDragging_1e20r_2",oxTableScrollWrapperShadowLeft:"_oxTableScrollWrapperShadowLeft_1e20r_2",oxTableScrollWrapperShadowRight:"_oxTableScrollWrapperShadowRight_1e20r_2",oxTableFixedLayout:"_oxTableFixedLayout_1e20r_2",oxTableFixedLayoutVirtual:"_oxTableFixedLayoutVirtual_1e20r_2",oxTableFixedSection:"_oxTableFixedSection_1e20r_2",oxTableFixedLeft:"_oxTableFixedLeft_1e20r_2",oxTableFixedRight:"_oxTableFixedRight_1e20r_2",oxTableFixedLeftShadow:"_oxTableFixedLeftShadow_1e20r_2",oxTableFixedRightShadow:"_oxTableFixedRightShadow_1e20r_2",oxTableFixedScroll:"_oxTableFixedScroll_1e20r_2",oxTableFixedScrollDraggable:"_oxTableFixedScrollDraggable_1e20r_2",oxTableFixedScrollDragging:"_oxTableFixedScrollDragging_1e20r_2",oxTable:"_oxTable_1e20r_2"};function fP(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return y.useMemo(()=>o=>{t.forEach(r=>r(o))},t)}const Xs=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function So(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function cc(e){return"nodeType"in e}function Qe(e){var t,n;return e?So(e)?e:cc(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function uc(e){const{Document:t}=Qe(e);return e instanceof t}function lr(e){return So(e)?!1:e instanceof Qe(e).HTMLElement}function Uv(e){return e instanceof Qe(e).SVGElement}function wo(e){return e?So(e)?e.document:cc(e)?uc(e)?e:lr(e)||Uv(e)?e.ownerDocument:document:document:document}const Mt=Xs?y.useLayoutEffect:y.useEffect;function dc(e){const t=y.useRef(e);return Mt(()=>{t.current=e}),y.useCallback(function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return t.current==null?void 0:t.current(...o)},[])}function pP(){const e=y.useRef(null),t=y.useCallback((o,r)=>{e.current=setInterval(o,r)},[]),n=y.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function cr(e,t){t===void 0&&(t=[e]);const n=y.useRef(e);return Mt(()=>{n.current!==e&&(n.current=e)},t),n}function ur(e,t){const n=y.useRef();return y.useMemo(()=>{const o=e(n.current);return n.current=o,o},[...t])}function Ys(e){const t=dc(e),n=y.useRef(null),o=y.useCallback(r=>{r!==n.current&&(t==null||t(r,n.current)),n.current=r},[]);return[n,o]}function fc(e){const t=y.useRef();return y.useEffect(()=>{t.current=e},[e]),t.current}let pc={};function dr(e,t){return y.useMemo(()=>{if(t)return t;const n=pc[e]==null?0:pc[e]+1;return pc[e]=n,e+"-"+n},[e,t])}function qv(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return o.reduce((s,i)=>{const a=Object.entries(i);for(const[l,c]of a){const u=s[l];u!=null&&(s[l]=u+e*c)}return s},{...t})}}const _o=qv(1),Js=qv(-1);function gP(e){return"clientX"in e&&"clientY"in e}function gc(e){if(!e)return!1;const{KeyboardEvent:t}=Qe(e.target);return t&&e instanceof t}function hP(e){if(!e)return!1;const{TouchEvent:t}=Qe(e.target);return t&&e instanceof t}function hc(e){if(hP(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return gP(e)?{x:e.clientX,y:e.clientY}:null}const fr=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[fr.Translate.toString(e),fr.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),Kv="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function mP(e){return e.matches(Kv)?e:e.querySelector(Kv)}const vP={display:"none"};function xP(e){let{id:t,value:n}=e;return y.createElement("div",{id:t,style:vP},n)}function bP(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;const r={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return y.createElement("div",{id:t,style:r,role:"status","aria-live":o,"aria-atomic":!0},n)}function yP(){const[e,t]=y.useState("");return{announce:y.useCallback(o=>{o!=null&&t(o)},[]),announcement:e}}const Xv=y.createContext(null);function CP(e){const t=y.useContext(Xv);y.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function SP(){const[e]=y.useState(()=>new Set),t=y.useCallback(o=>(e.add(o),()=>e.delete(o)),[e]);return[y.useCallback(o=>{let{type:r,event:s}=o;e.forEach(i=>{var a;return(a=i[r])==null?void 0:a.call(i,s)})},[e]),t]}const wP={draggable:`
156
166
  To pick up a draggable item, press the space bar.
157
167
  While dragging, use the arrow keys to move the item.
158
168
  Press space again to drop the item in its new position, or press escape to cancel.
159
- `},HP={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function BP(e){let{announcements:t=HP,container:n,hiddenTextDescribedById:o,screenReaderInstructions:r=VP}=e;const{announce:s,announcement:i}=LP(),a=lr("DndLiveRegion"),[l,c]=b.useState(!1);if(b.useEffect(()=>{c(!0)},[]),FP(b.useMemo(()=>({onDragStart(d){let{active:f}=d;s(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:p}=d;t.onDragMove&&s(t.onDragMove({active:f,over:p}))},onDragOver(d){let{active:f,over:p}=d;s(t.onDragOver({active:f,over:p}))},onDragEnd(d){let{active:f,over:p}=d;s(t.onDragEnd({active:f,over:p}))},onDragCancel(d){let{active:f,over:p}=d;s(t.onDragCancel({active:f,over:p}))}}),[s,t])),!l)return null;const u=b.createElement(b.Fragment,null,b.createElement(MP,{id:o,value:r.draggable}),b.createElement(RP,{id:a,announcement:i}));return n?Ze.createPortal(u,n):u}var Ae;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Ae||(Ae={}));function Gs(){}function GP(e,t){return b.useMemo(()=>({sensor:e,options:{}}),[e,t])}function jP(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return b.useMemo(()=>[...t].filter(o=>o!=null),[...t])}const bt=Object.freeze({x:0,y:0});function UP(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function WP(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return n-o}function qP(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function KP(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function _v(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const XP=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=_v(t,t.left,t.top),s=[];for(const i of o){const{id:a}=i,l=n.get(a);if(l){const c=UP(_v(l),r);s.push({id:a,data:{droppableContainer:i,value:c}})}}return s.sort(WP)};function YP(e,t){const n=Math.max(t.top,e.top),o=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),i=r-o,a=s-n;if(o<r&&n<s){const l=t.width*t.height,c=e.width*e.height,u=i*a,d=u/(l+c-u);return Number(d.toFixed(4))}return 0}const ZP=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=[];for(const s of o){const{id:i}=s,a=n.get(i);if(a){const l=YP(a,t);l>0&&r.push({id:i,data:{droppableContainer:s,value:l}})}}return r.sort(qP)};function JP(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Tv(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:bt}function QP(e){return function(n){for(var o=arguments.length,r=new Array(o>1?o-1:0),s=1;s<o;s++)r[s-1]=arguments[s];return r.reduce((i,a)=>({...i,top:i.top+e*a.y,bottom:i.bottom+e*a.y,left:i.left+e*a.x,right:i.right+e*a.x}),{...n})}}const e2=QP(1);function t2(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function n2(e,t,n){const o=t2(t);if(!o)return e;const{scaleX:r,scaleY:s,x:i,y:a}=o,l=e.left-i-(1-r)*parseFloat(n),c=e.top-a-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),u=r?e.width/r:e.width,d=s?e.height/s:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}const o2={ignoreTransform:!1};function So(e,t){t===void 0&&(t=o2);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=qe(e).getComputedStyle(e);c&&(n=n2(n,c,u))}const{top:o,left:r,width:s,height:i,bottom:a,right:l}=n;return{top:o,left:r,width:s,height:i,bottom:a,right:l}}function Ev(e){return So(e,{ignoreTransform:!0})}function r2(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function s2(e,t){return t===void 0&&(t=qe(e).getComputedStyle(e)),t.position==="fixed"}function i2(e,t){t===void 0&&(t=qe(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const s=t[r];return typeof s=="string"?n.test(s):!1})}function ac(e,t){const n=[];function o(r){if(t!=null&&n.length>=t||!r)return n;if(tc(r)&&r.scrollingElement!=null&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!sr(r)||yv(r)||n.includes(r))return n;const s=qe(e).getComputedStyle(r);return r!==e&&i2(r,s)&&n.push(r),s2(r,s)?n:o(r.parentNode)}return e?o(e):n}function Pv(e){const[t]=ac(e,1);return t??null}function lc(e){return!Vs||!e?null:yo(e)?e:ec(e)?tc(e)||e===Co(e).scrollingElement?window:sr(e)?e:null:null}function Iv(e){return yo(e)?e.scrollX:e.scrollLeft}function Av(e){return yo(e)?e.scrollY:e.scrollTop}function cc(e){return{x:Iv(e),y:Av(e)}}var $e;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})($e||($e={}));function Ov(e){return!Vs||!e?!1:e===document.scrollingElement}function Dv(e){const t={x:0,y:0},n=Ov(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},r=e.scrollTop<=t.y,s=e.scrollLeft<=t.x,i=e.scrollTop>=o.y,a=e.scrollLeft>=o.x;return{isTop:r,isLeft:s,isBottom:i,isRight:a,maxScroll:o,minScroll:t}}const a2={x:.2,y:.2};function l2(e,t,n,o,r){let{top:s,left:i,right:a,bottom:l}=n;o===void 0&&(o=10),r===void 0&&(r=a2);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=Dv(e),p={x:0,y:0},v={x:0,y:0},m={height:t.height*r.y,width:t.width*r.x};return!c&&s<=t.top+m.height?(p.y=$e.Backward,v.y=o*Math.abs((t.top+m.height-s)/m.height)):!u&&l>=t.bottom-m.height&&(p.y=$e.Forward,v.y=o*Math.abs((t.bottom-m.height-l)/m.height)),!f&&a>=t.right-m.width?(p.x=$e.Forward,v.x=o*Math.abs((t.right-m.width-a)/m.width)):!d&&i<=t.left+m.width&&(p.x=$e.Backward,v.x=o*Math.abs((t.left+m.width-i)/m.width)),{direction:p,speed:v}}function c2(e){if(e===document.scrollingElement){const{innerWidth:s,innerHeight:i}=window;return{top:0,left:0,right:s,bottom:i,width:s,height:i}}const{top:t,left:n,right:o,bottom:r}=e.getBoundingClientRect();return{top:t,left:n,right:o,bottom:r,width:e.clientWidth,height:e.clientHeight}}function Nv(e){return e.reduce((t,n)=>wo(t,cc(n)),bt)}function u2(e){return e.reduce((t,n)=>t+Iv(n),0)}function d2(e){return e.reduce((t,n)=>t+Av(n),0)}function f2(e,t){if(t===void 0&&(t=So),!e)return;const{top:n,left:o,bottom:r,right:s}=t(e);Pv(e)&&(r<=0||s<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const p2=[["x",["left","right"],u2],["y",["top","bottom"],d2]];class uc{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const o=ac(n),r=Nv(o);this.rect={...t},this.width=t.width,this.height=t.height;for(const[s,i,a]of p2)for(const l of i)Object.defineProperty(this,l,{get:()=>{const c=a(o),u=r[s]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ur{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var o;return(o=this.target)==null?void 0:o.removeEventListener(...n)})},this.target=t}add(t,n,o){var r;(r=this.target)==null||r.addEventListener(t,n,o),this.listeners.push([t,n,o])}}function g2(e){const{EventTarget:t}=qe(e);return e instanceof t?e:Co(e)}function dc(e,t){const n=Math.abs(e.x),o=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+o**2)>t:"x"in t&&"y"in t?n>t.x&&o>t.y:"x"in t?n>t.x:"y"in t?o>t.y:!1}var ut;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(ut||(ut={}));function kv(e){e.preventDefault()}function h2(e){e.stopPropagation()}var he;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(he||(he={}));const $v={start:[he.Space,he.Enter],cancel:[he.Esc],end:[he.Space,he.Enter,he.Tab]},m2=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case he.Right:return{...n,x:n.x+25};case he.Left:return{...n,x:n.x-25};case he.Down:return{...n,y:n.y+25};case he.Up:return{...n,y:n.y-25}}};class Mv{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new ur(Co(n)),this.windowListeners=new ur(qe(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ut.Resize,this.handleCancel),this.windowListeners.add(ut.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ut.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,o=t.node.current;o&&f2(o),n(bt)}handleKeyDown(t){if(sc(t)){const{active:n,context:o,options:r}=this.props,{keyboardCodes:s=$v,coordinateGetter:i=m2,scrollBehavior:a="smooth"}=r,{code:l}=t;if(s.end.includes(l)){this.handleEnd(t);return}if(s.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=o.current,u=c?{x:c.left,y:c.top}:bt;this.referenceCoordinates||(this.referenceCoordinates=u);const d=i(t,{active:n,context:o.current,currentCoordinates:u});if(d){const f=Bs(d,u),p={x:0,y:0},{scrollableAncestors:v}=o.current;for(const m of v){const x=t.code,{isTop:y,isRight:S,isLeft:C,isBottom:_,maxScroll:w,minScroll:T}=Dv(m),E=c2(m),P={x:Math.min(x===he.Right?E.right-E.width/2:E.right,Math.max(x===he.Right?E.left:E.left+E.width/2,d.x)),y:Math.min(x===he.Down?E.bottom-E.height/2:E.bottom,Math.max(x===he.Down?E.top:E.top+E.height/2,d.y))},A=x===he.Right&&!S||x===he.Left&&!C,R=x===he.Down&&!_||x===he.Up&&!y;if(A&&P.x!==d.x){const B=m.scrollLeft+f.x,V=x===he.Right&&B<=w.x||x===he.Left&&B>=T.x;if(V&&!f.y){m.scrollTo({left:B,behavior:a});return}V?p.x=m.scrollLeft-B:p.x=x===he.Right?m.scrollLeft-w.x:m.scrollLeft-T.x,p.x&&m.scrollBy({left:-p.x,behavior:a});break}else if(R&&P.y!==d.y){const B=m.scrollTop+f.y,V=x===he.Down&&B<=w.y||x===he.Up&&B>=T.y;if(V&&!f.x){m.scrollTo({top:B,behavior:a});return}V?p.y=m.scrollTop-B:p.y=x===he.Down?m.scrollTop-w.y:m.scrollTop-T.y,p.y&&m.scrollBy({top:-p.y,behavior:a});break}}this.handleMove(t,wo(Bs(d,this.referenceCoordinates),p))}}}handleMove(t,n){const{onMove:o}=this.props;t.preventDefault(),o(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Mv.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=$v,onActivation:r}=t,{active:s}=n;const{code:i}=e.nativeEvent;if(o.start.includes(i)){const a=s.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),r==null||r({event:e.nativeEvent}),!0)}return!1}}];function Rv(e){return!!(e&&"distance"in e)}function Lv(e){return!!(e&&"delay"in e)}class fc{constructor(t,n,o){var r;o===void 0&&(o=g2(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:s}=t,{target:i}=s;this.props=t,this.events=n,this.document=Co(i),this.documentListeners=new ur(this.document),this.listeners=new ur(o),this.windowListeners=new ur(qe(i)),this.initialCoordinates=(r=ic(s))!=null?r:bt,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:o}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(ut.Resize,this.handleCancel),this.windowListeners.add(ut.DragStart,kv),this.windowListeners.add(ut.VisibilityChange,this.handleCancel),this.windowListeners.add(ut.ContextMenu,kv),this.documentListeners.add(ut.Keydown,this.handleKeydown),n){if(o!=null&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Lv(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Rv(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:o,onPending:r}=this.props;r(o,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(ut.Click,h2,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ut.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:o,initialCoordinates:r,props:s}=this,{onMove:i,options:{activationConstraint:a}}=s;if(!r)return;const l=(n=ic(t))!=null?n:bt,c=Bs(r,l);if(!o&&a){if(Rv(a)){if(a.tolerance!=null&&dc(c,a.tolerance))return this.handleCancel();if(dc(c,a.distance))return this.handleStart()}if(Lv(a)&&dc(c,a.tolerance))return this.handleCancel();this.handlePending(a,c);return}t.cancelable&&t.preventDefault(),i(l)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===he.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const v2={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class pc extends fc{constructor(t){const{event:n}=t,o=Co(n.target);super(t,v2,o)}}pc.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!n.isPrimary||n.button!==0?!1:(o==null||o({event:n}),!0)}}];const x2={move:{name:"mousemove"},end:{name:"mouseup"}};var gc;(function(e){e[e.RightClick=2]="RightClick"})(gc||(gc={}));class b2 extends fc{constructor(t){super(t,x2,Co(t.event.target))}}b2.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button===gc.RightClick?!1:(o==null||o({event:n}),!0)}}];const hc={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class y2 extends fc{constructor(t){super(t,hc)}static setup(){return window.addEventListener(hc.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(hc.move.name,t)};function t(){}}}y2.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;const{touches:r}=n;return r.length>1?!1:(o==null||o({event:n}),!0)}}];var dr;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(dr||(dr={}));var js;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(js||(js={}));function C2(e){let{acceleration:t,activator:n=dr.Pointer,canScroll:o,draggingRect:r,enabled:s,interval:i=5,order:a=js.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:d,threshold:f}=e;const p=S2({delta:d,disabled:!s}),[v,m]=OP(),x=b.useRef({x:0,y:0}),y=b.useRef({x:0,y:0}),S=b.useMemo(()=>{switch(n){case dr.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case dr.DraggableRect:return r}},[n,r,l]),C=b.useRef(null),_=b.useCallback(()=>{const T=C.current;if(!T)return;const E=x.current.x*y.current.x,P=x.current.y*y.current.y;T.scrollBy(E,P)},[]),w=b.useMemo(()=>a===js.TreeOrder?[...c].reverse():c,[a,c]);b.useEffect(()=>{if(!s||!c.length||!S){m();return}for(const T of w){if((o==null?void 0:o(T))===!1)continue;const E=c.indexOf(T),P=u[E];if(!P)continue;const{direction:A,speed:R}=l2(T,P,S,t,f);for(const B of["x","y"])p[B][A[B]]||(R[B]=0,A[B]=0);if(R.x>0||R.y>0){m(),C.current=T,v(_,i),x.current=R,y.current=A;return}}x.current={x:0,y:0},y.current={x:0,y:0},m()},[t,_,o,m,s,i,JSON.stringify(S),JSON.stringify(p),v,c,w,u,JSON.stringify(f)])}const w2={x:{[$e.Backward]:!1,[$e.Forward]:!1},y:{[$e.Backward]:!1,[$e.Forward]:!1}};function S2(e){let{delta:t,disabled:n}=e;const o=oc(t);return ar(r=>{if(n||!o||!r)return w2;const s={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[$e.Backward]:r.x[$e.Backward]||s.x===-1,[$e.Forward]:r.x[$e.Forward]||s.x===1},y:{[$e.Backward]:r.y[$e.Backward]||s.y===-1,[$e.Forward]:r.y[$e.Forward]||s.y===1}}},[n,t,o])}function _2(e,t){const n=t!=null?e.get(t):void 0,o=n?n.node.current:null;return ar(r=>{var s;return t==null?null:(s=o??r)!=null?s:null},[o,t])}function T2(e,t){return b.useMemo(()=>e.reduce((n,o)=>{const{sensor:r}=o,s=r.activators.map(i=>({eventName:i.eventName,handler:t(i.handler,o)}));return[...n,...s]},[]),[e,t])}var fr;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(fr||(fr={}));var mc;(function(e){e.Optimized="optimized"})(mc||(mc={}));const Fv=new Map;function E2(e,t){let{dragging:n,dependencies:o,config:r}=t;const[s,i]=b.useState(null),{frequency:a,measure:l,strategy:c}=r,u=b.useRef(e),d=x(),f=ir(d),p=b.useCallback(function(y){y===void 0&&(y=[]),!f.current&&i(S=>S===null?y:S.concat(y.filter(C=>!S.includes(C))))},[f]),v=b.useRef(null),m=ar(y=>{if(d&&!n)return Fv;if(!y||y===Fv||u.current!==e||s!=null){const S=new Map;for(let C of e){if(!C)continue;if(s&&s.length>0&&!s.includes(C.id)&&C.rect.current){S.set(C.id,C.rect.current);continue}const _=C.node.current,w=_?new uc(l(_),_):null;C.rect.current=w,w&&S.set(C.id,w)}return S}return y},[e,s,n,d,l]);return b.useEffect(()=>{u.current=e},[e]),b.useEffect(()=>{d||p()},[n,d]),b.useEffect(()=>{s&&s.length>0&&i(null)},[JSON.stringify(s)]),b.useEffect(()=>{d||typeof a!="number"||v.current!==null||(v.current=setTimeout(()=>{p(),v.current=null},a))},[a,d,p,...o]),{droppableRects:m,measureDroppableContainers:p,measuringScheduled:s!=null};function x(){switch(c){case fr.Always:return!1;case fr.BeforeDragging:return n;default:return!n}}}function zv(e,t){return ar(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function P2(e,t){return zv(e,t)}function I2(e){let{callback:t,disabled:n}=e;const o=nc(t),r=b.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:s}=window;return new s(o)},[o,n]);return b.useEffect(()=>()=>r==null?void 0:r.disconnect(),[r]),r}function Us(e){let{callback:t,disabled:n}=e;const o=nc(t),r=b.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:s}=window;return new s(o)},[n]);return b.useEffect(()=>()=>r==null?void 0:r.disconnect(),[r]),r}function A2(e){return new uc(So(e),e)}function Vv(e,t,n){t===void 0&&(t=A2);const[o,r]=b.useState(null);function s(){r(l=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=l??n)!=null?c:null}const u=t(e);return JSON.stringify(l)===JSON.stringify(u)?l:u})}const i=I2({callback(l){if(e)for(const c of l){const{type:u,target:d}=c;if(u==="childList"&&d instanceof HTMLElement&&d.contains(e)){s();break}}}}),a=Us({callback:s});return Dt(()=>{s(),e?(a==null||a.observe(e),i==null||i.observe(document.body,{childList:!0,subtree:!0})):(a==null||a.disconnect(),i==null||i.disconnect())},[e]),o}function O2(e){const t=zv(e);return Tv(e,t)}const Hv=[];function D2(e){const t=b.useRef(e),n=ar(o=>e?o&&o!==Hv&&e&&t.current&&e.parentNode===t.current.parentNode?o:ac(e):Hv,[e]);return b.useEffect(()=>{t.current=e},[e]),n}function N2(e){const[t,n]=b.useState(null),o=b.useRef(e),r=b.useCallback(s=>{const i=lc(s.target);i&&n(a=>a?(a.set(i,cc(i)),new Map(a)):null)},[]);return b.useEffect(()=>{const s=o.current;if(e!==s){i(s);const a=e.map(l=>{const c=lc(l);return c?(c.addEventListener("scroll",r,{passive:!0}),[c,cc(c)]):null}).filter(l=>l!=null);n(a.length?new Map(a):null),o.current=e}return()=>{i(e),i(s)};function i(a){a.forEach(l=>{const c=lc(l);c==null||c.removeEventListener("scroll",r)})}},[r,e]),b.useMemo(()=>e.length?t?Array.from(t.values()).reduce((s,i)=>wo(s,i),bt):Nv(e):bt,[e,t])}function Bv(e,t){t===void 0&&(t=[]);const n=b.useRef(null);return b.useEffect(()=>{n.current=null},t),b.useEffect(()=>{const o=e!==bt;o&&!n.current&&(n.current=e),!o&&n.current&&(n.current=null)},[e]),n.current?Bs(e,n.current):bt}function k2(e){b.useEffect(()=>{if(!Vs)return;const t=e.map(n=>{let{sensor:o}=n;return o.setup==null?void 0:o.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function $2(e,t){return b.useMemo(()=>e.reduce((n,o)=>{let{eventName:r,handler:s}=o;return n[r]=i=>{s(i,t)},n},{}),[e,t])}function Gv(e){return b.useMemo(()=>e?r2(e):null,[e])}const jv=[];function M2(e,t){t===void 0&&(t=So);const[n]=e,o=Gv(n?qe(n):null),[r,s]=b.useState(jv);function i(){s(()=>e.length?e.map(l=>Ov(l)?o:new uc(t(l),l)):jv)}const a=Us({callback:i});return Dt(()=>{a==null||a.disconnect(),i(),e.forEach(l=>a==null?void 0:a.observe(l))},[e]),r}function R2(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return sr(t)?t:e}function L2(e){let{measure:t}=e;const[n,o]=b.useState(null),r=b.useCallback(c=>{for(const{target:u}of c)if(sr(u)){o(d=>{const f=t(u);return d?{...d,width:f.width,height:f.height}:f});break}},[t]),s=Us({callback:r}),i=b.useCallback(c=>{const u=R2(c);s==null||s.disconnect(),u&&(s==null||s.observe(u)),o(u?t(u):null)},[t,s]),[a,l]=Hs(i);return b.useMemo(()=>({nodeRef:a,rect:n,setRef:l}),[n,a,l])}const F2=[{sensor:pc,options:{}},{sensor:Mv,options:{}}],z2={current:{}},Ws={draggable:{measure:Ev},droppable:{measure:Ev,strategy:fr.WhileDragging,frequency:mc.Optimized},dragOverlay:{measure:So}};class pr extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,o;return(n=(o=this.get(t))==null?void 0:o.node.current)!=null?n:void 0}}const V2={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new pr,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Gs},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ws,measureDroppableContainers:Gs,windowRect:null,measuringScheduled:!1},H2={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Gs,draggableNodes:new Map,over:null,measureDroppableContainers:Gs},qs=b.createContext(H2),Uv=b.createContext(V2);function B2(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new pr}}}function G2(e,t){switch(t.type){case Ae.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Ae.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Ae.DragEnd:case Ae.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Ae.RegisterDroppable:{const{element:n}=t,{id:o}=n,r=new pr(e.droppable.containers);return r.set(o,n),{...e,droppable:{...e.droppable,containers:r}}}case Ae.SetDroppableDisabled:{const{id:n,key:o,disabled:r}=t,s=e.droppable.containers.get(n);if(!s||o!==s.key)return e;const i=new pr(e.droppable.containers);return i.set(n,{...s,disabled:r}),{...e,droppable:{...e.droppable,containers:i}}}case Ae.UnregisterDroppable:{const{id:n,key:o}=t,r=e.droppable.containers.get(n);if(!r||o!==r.key)return e;const s=new pr(e.droppable.containers);return s.delete(n),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function j2(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:r}=b.useContext(qs),s=oc(o),i=oc(n==null?void 0:n.id);return b.useEffect(()=>{if(!t&&!o&&s&&i!=null){if(!sc(s)||document.activeElement===s.target)return;const a=r.get(i);if(!a)return;const{activatorNode:l,node:c}=a;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const u of[l.current,c.current]){if(!u)continue;const d=kP(u);if(d){d.focus();break}}})}},[o,t,r,i,s]),null}function U2(e,t){let{transform:n,...o}=t;return e!=null&&e.length?e.reduce((r,s)=>s({transform:r,...o}),n):n}function W2(e){return b.useMemo(()=>({draggable:{...Ws.draggable,...e==null?void 0:e.draggable},droppable:{...Ws.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Ws.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function q2(e){let{activeNode:t,measure:n,initialRect:o,config:r=!0}=e;const s=b.useRef(!1),{x:i,y:a}=typeof r=="boolean"?{x:r,y:r}:r;Dt(()=>{if(!i&&!a||!t){s.current=!1;return}if(s.current||!o)return;const c=t==null?void 0:t.node.current;if(!c||c.isConnected===!1)return;const u=n(c),d=Tv(u,o);if(i||(d.x=0),a||(d.y=0),s.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const f=Pv(c);f&&f.scrollBy({top:d.y,left:d.x})}},[t,i,a,o,n])}const Wv=b.createContext({...bt,scaleX:1,scaleY:1});var cn;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(cn||(cn={}));const K2=b.memo(function(t){var n,o,r,s;let{id:i,accessibility:a,autoScroll:l=!0,children:c,sensors:u=F2,collisionDetection:d=ZP,measuring:f,modifiers:p,...v}=t;const m=b.useReducer(G2,void 0,B2),[x,y]=m,[S,C]=zP(),[_,w]=b.useState(cn.Uninitialized),T=_===cn.Initialized,{draggable:{active:E,nodes:P,translate:A},droppable:{containers:R}}=x,B=E!=null?P.get(E):null,V=b.useRef({initial:null,translated:null}),K=b.useMemo(()=>{var ze;return E!=null?{id:E,data:(ze=B==null?void 0:B.data)!=null?ze:z2,rect:V}:null},[E,B]),U=b.useRef(null),[Z,X]=b.useState(null),[q,z]=b.useState(null),ee=ir(v,Object.values(v)),F=lr("DndDescribedBy",i),Y=b.useMemo(()=>R.getEnabled(),[R]),O=W2(f),{droppableRects:I,measureDroppableContainers:k,measuringScheduled:M}=E2(Y,{dragging:T,dependencies:[A.x,A.y],config:O.droppable}),L=_2(P,E),N=b.useMemo(()=>q?ic(q):null,[q]),$=SA(),G=P2(L,O.draggable.measure);q2({activeNode:E!=null?P.get(E):null,config:$.layoutShiftCompensation,initialRect:G,measure:O.draggable.measure});const W=Vv(L,O.draggable.measure,G),te=Vv(L?L.parentElement:null),H=b.useRef({activatorEvent:null,active:null,activeNode:L,collisionRect:null,collisions:null,droppableRects:I,draggableNodes:P,draggingNode:null,draggingNodeRect:null,droppableContainers:R,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Q=R.getNodeFor((n=H.current.over)==null?void 0:n.id),J=L2({measure:O.dragOverlay.measure}),se=(o=J.nodeRef.current)!=null?o:L,re=T?(r=J.rect)!=null?r:W:null,be=!!(J.nodeRef.current&&J.rect),xe=O2(be?null:W),Nt=Gv(se?qe(se):null),Xe=D2(T?Q??L:null),Ye=M2(Xe),Me=U2(p,{transform:{x:A.x-xe.x,y:A.y-xe.y,scaleX:1,scaleY:1},activatorEvent:q,active:K,activeNodeRect:W,containerNodeRect:te,draggingNodeRect:re,over:H.current.over,overlayNodeRect:J.rect,scrollableAncestors:Xe,scrollableAncestorRects:Ye,windowRect:Nt}),ri=N?wo(N,A):null,S0=N2(Xe),mA=Bv(S0),vA=Bv(S0,[W]),Do=wo(Me,mA),No=re?e2(re,Me):null,br=K&&No?d({active:K,collisionRect:No,droppableRects:I,droppableContainers:Y,pointerCoordinates:ri}):null,_0=KP(br,"id"),[fn,T0]=b.useState(null),xA=be?Me:wo(Me,vA),bA=JP(xA,(s=fn==null?void 0:fn.rect)!=null?s:null,W),Fc=b.useRef(null),E0=b.useCallback((ze,rt)=>{let{sensor:st,options:pn}=rt;if(U.current==null)return;const dt=P.get(U.current);if(!dt)return;const it=ze.nativeEvent,kt=new st({active:U.current,activeNode:dt,event:it,options:pn,context:H,onAbort(Re){if(!P.get(Re))return;const{onDragAbort:$t}=ee.current,Yt={id:Re};$t==null||$t(Yt),S({type:"onDragAbort",event:Yt})},onPending(Re,gn,$t,Yt){if(!P.get(Re))return;const{onDragPending:Cr}=ee.current,hn={id:Re,constraint:gn,initialCoordinates:$t,offset:Yt};Cr==null||Cr(hn),S({type:"onDragPending",event:hn})},onStart(Re){const gn=U.current;if(gn==null)return;const $t=P.get(gn);if(!$t)return;const{onDragStart:Yt}=ee.current,yr={activatorEvent:it,active:{id:gn,data:$t.data,rect:V}};Ze.unstable_batchedUpdates(()=>{Yt==null||Yt(yr),w(cn.Initializing),y({type:Ae.DragStart,initialCoordinates:Re,active:gn}),S({type:"onDragStart",event:yr}),X(Fc.current),z(it)})},onMove(Re){y({type:Ae.DragMove,coordinates:Re})},onEnd:ko(Ae.DragEnd),onCancel:ko(Ae.DragCancel)});Fc.current=kt;function ko(Re){return async function(){const{active:$t,collisions:Yt,over:yr,scrollAdjustedTranslate:Cr}=H.current;let hn=null;if($t&&Cr){const{cancelDrop:wr}=ee.current;hn={activatorEvent:it,active:$t,collisions:Yt,delta:Cr,over:yr},Re===Ae.DragEnd&&typeof wr=="function"&&await Promise.resolve(wr(hn))&&(Re=Ae.DragCancel)}U.current=null,Ze.unstable_batchedUpdates(()=>{y({type:Re}),w(cn.Uninitialized),T0(null),X(null),z(null),Fc.current=null;const wr=Re===Ae.DragEnd?"onDragEnd":"onDragCancel";if(hn){const zc=ee.current[wr];zc==null||zc(hn),S({type:wr,event:hn})}})}}},[P]),yA=b.useCallback((ze,rt)=>(st,pn)=>{const dt=st.nativeEvent,it=P.get(pn);if(U.current!==null||!it||dt.dndKit||dt.defaultPrevented)return;const kt={active:it};ze(st,rt.options,kt)===!0&&(dt.dndKit={capturedBy:rt.sensor},U.current=pn,E0(st,rt))},[P,E0]),P0=T2(u,yA);k2(u),Dt(()=>{W&&_===cn.Initializing&&w(cn.Initialized)},[W,_]),b.useEffect(()=>{const{onDragMove:ze}=ee.current,{active:rt,activatorEvent:st,collisions:pn,over:dt}=H.current;if(!rt||!st)return;const it={active:rt,activatorEvent:st,collisions:pn,delta:{x:Do.x,y:Do.y},over:dt};Ze.unstable_batchedUpdates(()=>{ze==null||ze(it),S({type:"onDragMove",event:it})})},[Do.x,Do.y]),b.useEffect(()=>{const{active:ze,activatorEvent:rt,collisions:st,droppableContainers:pn,scrollAdjustedTranslate:dt}=H.current;if(!ze||U.current==null||!rt||!dt)return;const{onDragOver:it}=ee.current,kt=pn.get(_0),ko=kt&&kt.rect.current?{id:kt.id,rect:kt.rect.current,data:kt.data,disabled:kt.disabled}:null,Re={active:ze,activatorEvent:rt,collisions:st,delta:{x:dt.x,y:dt.y},over:ko};Ze.unstable_batchedUpdates(()=>{T0(ko),it==null||it(Re),S({type:"onDragOver",event:Re})})},[_0]),Dt(()=>{H.current={activatorEvent:q,active:K,activeNode:L,collisionRect:No,collisions:br,droppableRects:I,draggableNodes:P,draggingNode:se,draggingNodeRect:re,droppableContainers:R,over:fn,scrollableAncestors:Xe,scrollAdjustedTranslate:Do},V.current={initial:re,translated:No}},[K,L,br,No,P,se,re,I,R,fn,Xe,Do]),C2({...$,delta:A,draggingRect:No,pointerCoordinates:ri,scrollableAncestors:Xe,scrollableAncestorRects:Ye});const CA=b.useMemo(()=>({active:K,activeNode:L,activeNodeRect:W,activatorEvent:q,collisions:br,containerNodeRect:te,dragOverlay:J,draggableNodes:P,droppableContainers:R,droppableRects:I,over:fn,measureDroppableContainers:k,scrollableAncestors:Xe,scrollableAncestorRects:Ye,measuringConfiguration:O,measuringScheduled:M,windowRect:Nt}),[K,L,W,q,br,te,J,P,R,I,fn,k,Xe,Ye,O,M,Nt]),wA=b.useMemo(()=>({activatorEvent:q,activators:P0,active:K,activeNodeRect:W,ariaDescribedById:{draggable:F},dispatch:y,draggableNodes:P,over:fn,measureDroppableContainers:k}),[q,P0,K,W,y,F,P,fn,k]);return b.createElement(Sv.Provider,{value:C},b.createElement(qs.Provider,{value:wA},b.createElement(Uv.Provider,{value:CA},b.createElement(Wv.Provider,{value:bA},c)),b.createElement(j2,{disabled:(a==null?void 0:a.restoreFocus)===!1})),b.createElement(BP,{...a,hiddenTextDescribedById:F}));function SA(){const ze=(Z==null?void 0:Z.autoScrollEnabled)===!1,rt=typeof l=="object"?l.enabled===!1:l===!1,st=T&&!ze&&!rt;return typeof l=="object"?{...l,enabled:st}:{enabled:st}}}),X2=b.createContext(null),qv="button",Y2="Draggable";function Z2(e){let{id:t,data:n,disabled:o=!1,attributes:r}=e;const s=lr(Y2),{activators:i,activatorEvent:a,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:f}=b.useContext(qs),{role:p=qv,roleDescription:v="draggable",tabIndex:m=0}=r??{},x=(l==null?void 0:l.id)===t,y=b.useContext(x?Wv:X2),[S,C]=Hs(),[_,w]=Hs(),T=$2(i,t),E=ir(n);Dt(()=>(d.set(t,{id:t,key:s,node:S,activatorNode:_,data:E}),()=>{const A=d.get(t);A&&A.key===s&&d.delete(t)}),[d,t]);const P=b.useMemo(()=>({role:p,tabIndex:m,"aria-disabled":o,"aria-pressed":x&&p===qv?!0:void 0,"aria-roledescription":v,"aria-describedby":u.draggable}),[o,p,m,x,v,u.draggable]);return{active:l,activatorEvent:a,activeNodeRect:c,attributes:P,isDragging:x,listeners:o?void 0:T,node:S,over:f,setNodeRef:C,setActivatorNodeRef:w,transform:y}}function J2(){return b.useContext(Uv)}const Q2="Droppable",eI={timeout:25};function tI(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:r}=e;const s=lr(Q2),{active:i,dispatch:a,over:l,measureDroppableContainers:c}=b.useContext(qs),u=b.useRef({disabled:n}),d=b.useRef(!1),f=b.useRef(null),p=b.useRef(null),{disabled:v,updateMeasurementsFor:m,timeout:x}={...eI,...r},y=ir(m??o),S=b.useCallback(()=>{if(!d.current){d.current=!0;return}p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{c(Array.isArray(y.current)?y.current:[y.current]),p.current=null},x)},[x]),C=Us({callback:S,disabled:v||!i}),_=b.useCallback((P,A)=>{C&&(A&&(C.unobserve(A),d.current=!1),P&&C.observe(P))},[C]),[w,T]=Hs(_),E=ir(t);return b.useEffect(()=>{!C||!w.current||(C.disconnect(),d.current=!1,C.observe(w.current))},[w,C]),b.useEffect(()=>(a({type:Ae.RegisterDroppable,element:{id:o,key:s,disabled:n,node:w,rect:f,data:E}}),()=>a({type:Ae.UnregisterDroppable,key:s,id:o})),[o]),b.useEffect(()=>{n!==u.current.disabled&&(a({type:Ae.SetDroppableDisabled,id:o,key:s,disabled:n}),u.current.disabled=n)},[o,s,n,a]),{active:i,rect:f,isOver:(l==null?void 0:l.id)===o,node:w,over:l,setNodeRef:T}}function vc(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function nI(e,t){return e.reduce((n,o,r)=>{const s=t.get(o);return s&&(n[r]=s),n},Array(e.length))}function Ks(e){return e!==null&&e>=0}function oI(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function rI(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const Kv=e=>{let{rects:t,activeIndex:n,overIndex:o,index:r}=e;const s=vc(t,o,n),i=t[r],a=s[r];return!a||!i?null:{x:a.left-i.left,y:a.top-i.top,scaleX:a.width/i.width,scaleY:a.height/i.height}},Xs={scaleX:1,scaleY:1},sI=e=>{var t;let{activeIndex:n,activeNodeRect:o,index:r,rects:s,overIndex:i}=e;const a=(t=s[n])!=null?t:o;if(!a)return null;if(r===n){const c=s[i];return c?{x:0,y:n<i?c.top+c.height-(a.top+a.height):c.top-a.top,...Xs}:null}const l=iI(s,r,n);return r>n&&r<=i?{x:0,y:-a.height-l,...Xs}:r<n&&r>=i?{x:0,y:a.height+l,...Xs}:{x:0,y:0,...Xs}};function iI(e,t,n){const o=e[t],r=e[t-1],s=e[t+1];return o?n<t?r?o.top-(r.top+r.height):s?s.top-(o.top+o.height):0:s?s.top-(o.top+o.height):r?o.top-(r.top+r.height):0:0}const Xv="Sortable",Yv=b.createContext({activeIndex:-1,containerId:Xv,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Kv,disabled:{draggable:!1,droppable:!1}});function aI(e){let{children:t,id:n,items:o,strategy:r=Kv,disabled:s=!1}=e;const{active:i,dragOverlay:a,droppableRects:l,over:c,measureDroppableContainers:u}=J2(),d=lr(Xv,n),f=a.rect!==null,p=b.useMemo(()=>o.map(T=>typeof T=="object"&&"id"in T?T.id:T),[o]),v=i!=null,m=i?p.indexOf(i.id):-1,x=c?p.indexOf(c.id):-1,y=b.useRef(p),S=!oI(p,y.current),C=x!==-1&&m===-1||S,_=rI(s);Dt(()=>{S&&v&&u(p)},[S,p,v,u]),b.useEffect(()=>{y.current=p},[p]);const w=b.useMemo(()=>({activeIndex:m,containerId:d,disabled:_,disableTransforms:C,items:p,overIndex:x,useDragOverlay:f,sortedRects:nI(p,l),strategy:r}),[m,d,_.draggable,_.droppable,C,p,x,l,f,r]);return b.createElement(Yv.Provider,{value:w},t)}const lI=e=>{let{id:t,items:n,activeIndex:o,overIndex:r}=e;return vc(n,o,r).indexOf(t)},cI=e=>{let{containerId:t,isSorting:n,wasDragging:o,index:r,items:s,newIndex:i,previousItems:a,previousContainerId:l,transition:c}=e;return!c||!o||a!==s&&r===i?!1:n?!0:i!==r&&t===l},uI={duration:200,easing:"ease"},Zv="transform",dI=cr.Transition.toString({property:Zv,duration:0,easing:"linear"}),fI={roleDescription:"sortable"};function pI(e){let{disabled:t,index:n,node:o,rect:r}=e;const[s,i]=b.useState(null),a=b.useRef(n);return Dt(()=>{if(!t&&n!==a.current&&o.current){const l=r.current;if(l){const c=So(o.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&i(u)}}n!==a.current&&(a.current=n)},[t,n,o,r]),b.useEffect(()=>{s&&i(null)},[s]),s}function gI(e){let{animateLayoutChanges:t=cI,attributes:n,disabled:o,data:r,getNewIndex:s=lI,id:i,strategy:a,resizeObserverConfig:l,transition:c=uI}=e;const{items:u,containerId:d,activeIndex:f,disabled:p,disableTransforms:v,sortedRects:m,overIndex:x,useDragOverlay:y,strategy:S}=b.useContext(Yv),C=hI(o,p),_=u.indexOf(i),w=b.useMemo(()=>({sortable:{containerId:d,index:_,items:u},...r}),[d,r,_,u]),T=b.useMemo(()=>u.slice(u.indexOf(i)),[u,i]),{rect:E,node:P,isOver:A,setNodeRef:R}=tI({id:i,data:w,disabled:C.droppable,resizeObserverConfig:{updateMeasurementsFor:T,...l}}),{active:B,activatorEvent:V,activeNodeRect:K,attributes:U,setNodeRef:Z,listeners:X,isDragging:q,over:z,setActivatorNodeRef:ee,transform:F}=Z2({id:i,data:w,attributes:{...fI,...n},disabled:C.draggable}),Y=AP(R,Z),O=!!B,I=O&&!v&&Ks(f)&&Ks(x),k=!y&&q,M=k&&I?F:null,N=I?M??(a??S)({rects:m,activeNodeRect:K,activeIndex:f,overIndex:x,index:_}):null,$=Ks(f)&&Ks(x)?s({id:i,items:u,activeIndex:f,overIndex:x}):_,G=B==null?void 0:B.id,W=b.useRef({activeId:G,items:u,newIndex:$,containerId:d}),te=u!==W.current.items,H=t({active:B,containerId:d,isDragging:q,isSorting:O,id:i,index:_,items:u,newIndex:W.current.newIndex,previousItems:W.current.items,previousContainerId:W.current.containerId,transition:c,wasDragging:W.current.activeId!=null}),Q=pI({disabled:!H,index:_,node:P,rect:E});return b.useEffect(()=>{O&&W.current.newIndex!==$&&(W.current.newIndex=$),d!==W.current.containerId&&(W.current.containerId=d),u!==W.current.items&&(W.current.items=u)},[O,$,d,u]),b.useEffect(()=>{if(G===W.current.activeId)return;if(G!=null&&W.current.activeId==null){W.current.activeId=G;return}const se=setTimeout(()=>{W.current.activeId=G},50);return()=>clearTimeout(se)},[G]),{active:B,activeIndex:f,attributes:U,data:w,rect:E,index:_,newIndex:$,items:u,isOver:A,isSorting:O,isDragging:q,listeners:X,node:P,overIndex:x,over:z,setNodeRef:Y,setActivatorNodeRef:ee,setDroppableNodeRef:R,setDraggableNodeRef:Z,transform:Q??N,transition:J()};function J(){if(Q||te&&W.current.newIndex===_)return dI;if(!(k&&!sc(V)||!c)&&(O||H))return cr.Transition.toString({...c,property:Zv})}}function hI(e,t){var n,o;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(o=e==null?void 0:e.droppable)!=null?o:t.droppable}}he.Down,he.Right,he.Up,he.Left;const Jv={oxTableBody:"_oxTableBody_jtjzq_2"},_o=b.forwardRef(({className:e,children:t,draggable:n=!1,items:o=[],onReorder:r,getItemId:s,...i},a)=>{const l=jP(GP(pc));if(!n)return h.jsx("tbody",{ref:a,className:j(Jv.oxTableBody,e),"data-slot":"body",...i,children:t});const c=o.map((d,f)=>s?s(d,f):f),u=d=>{const{active:f,over:p}=d;if(!p||f.id===p.id)return;const v=c.indexOf(f.id),m=c.indexOf(p.id);v===-1||m===-1||r==null||r(vc(o,v,m))};return h.jsx(K2,{sensors:l,collisionDetection:XP,onDragEnd:u,accessibility:{container:typeof document<"u"?document.body:void 0},children:h.jsx(aI,{items:c,strategy:sI,children:h.jsx("tbody",{ref:a,className:j(Jv.oxTableBody,e),"data-slot":"body",...i,children:t})})})});_o.displayName="OxTableBody";const Ys={oxTableBulkHeader:"_oxTableBulkHeader_4zlo4_2",oxTableBulkHeaderFeedback:"_oxTableBulkHeaderFeedback_4zlo4_2",oxTableBulkHeaderText:"_oxTableBulkHeaderText_4zlo4_2",oxTableBulkHeaderActions:"_oxTableBulkHeaderActions_4zlo4_2"},xc=b.forwardRef(({className:e,selectedCount:t=0,total:n=0,feedback:o,actions:r,...s},i)=>t<=0?null:h.jsxs("div",{ref:i,className:j(Ys.oxTableBulkHeader,e),"data-slot":"table-bulk-header",...s,children:[h.jsx("div",{className:Ys.oxTableBulkHeaderFeedback,children:o?o({selectedCount:t,total:n}):h.jsxs("span",{className:Ys.oxTableBulkHeaderText,children:["Has seleccionado ",t," de ",n," elementos"]})}),h.jsx("div",{className:Ys.oxTableBulkHeaderActions,children:r})]}));xc.displayName="OxTableBulkHeader";const zn={oxTableCell:"_oxTableCell_1jiu2_2",oxTableCellAlignLeft:"_oxTableCellAlignLeft_1jiu2_2",oxTableCellAlignCenter:"_oxTableCellAlignCenter_1jiu2_2",oxTableCellAlignRight:"_oxTableCellAlignRight_1jiu2_2",oxTableCellFixed:"_oxTableCellFixed_1jiu2_2"},mI={left:zn.oxTableCellAlignLeft,center:zn.oxTableCellAlignCenter,right:zn.oxTableCellAlignRight},bc=b.forwardRef(({className:e,align:t="left",fixed:n,fixedOffset:o="0px",style:r,children:s,...i},a)=>h.jsx("td",{ref:a,className:j(zn.oxTableCell,mI[t],n&&["table-cell-fixed",zn.oxTableCellFixed],n==="left"&&["table-cell-fixed-left",zn.oxTableCellFixedLeft],n==="right"&&["table-cell-fixed-right",zn.oxTableCellFixedRight],e),style:n?{[n]:o,...r}:r,"data-slot":"cell",...i,children:s}));bc.displayName="OxTableCell";const gr={oxTableExpandCell:"_oxTableExpandCell_13ruv_2",oxTableExpandCellHeader:"_oxTableExpandCellHeader_13ruv_2",oxTableExpandButton:"_oxTableExpandButton_13ruv_2",oxTableExpandButtonExpanded:"_oxTableExpandButtonExpanded_13ruv_2",oxTableExpandIcon:"_oxTableExpandIcon_13ruv_2"},To=b.forwardRef(({className:e,expanded:t=!1,header:n=!1,onToggle:o,...r},s)=>{const i=n?"th":"td";return h.jsx(i,{ref:s,className:j(gr.oxTableExpandCell,n&&gr.oxTableExpandCellHeader,e),"data-slot":"expand",...r,children:!n&&h.jsx("button",{type:"button",className:j(gr.oxTableExpandButton,t&&gr.oxTableExpandButtonExpanded),onClick:()=>o==null?void 0:o(),children:h.jsx("svg",{className:gr.oxTableExpandIcon,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:h.jsx("path",{d:"M9 18l6-6-6-6"})})})})});To.displayName="OxTableExpandCell";const vI={oxTableHead:"_oxTableHead_1c8pd_2"},Eo=b.forwardRef(({className:e,children:t,...n},o)=>h.jsx("thead",{ref:o,className:j(vI.oxTableHead,e),"data-slot":"head",...n,children:h.jsx("tr",{children:t})}));Eo.displayName="OxTableHead";const _e={oxTableHeaderCell:"_oxTableHeaderCell_cgkgr_2",oxTableHeaderCellAlignLeft:"_oxTableHeaderCellAlignLeft_cgkgr_2",oxTableHeaderCellAlignCenter:"_oxTableHeaderCellAlignCenter_cgkgr_2",oxTableHeaderCellAlignRight:"_oxTableHeaderCellAlignRight_cgkgr_2",oxTableHeaderCellSortable:"_oxTableHeaderCellSortable_cgkgr_2",oxTableHeaderCellSorted:"_oxTableHeaderCellSorted_cgkgr_2",oxTableHeaderCellResizing:"_oxTableHeaderCellResizing_cgkgr_2",oxTableHeaderCellContent:"_oxTableHeaderCellContent_cgkgr_2",oxTableHeaderCellIndicator:"_oxTableHeaderCellIndicator_cgkgr_2",oxTableHeaderCellIcon:"_oxTableHeaderCellIcon_cgkgr_2",oxTableHeaderCellIconUnsorted:"_oxTableHeaderCellIconUnsorted_cgkgr_2",oxTableHeaderCellResizer:"_oxTableHeaderCellResizer_cgkgr_2",oxTableHeaderCellResizerActive:"_oxTableHeaderCellResizerActive_cgkgr_2",oxTableHeaderCellDraggable:"_oxTableHeaderCellDraggable_cgkgr_2",oxTableHeaderCellDragging:"_oxTableHeaderCellDragging_cgkgr_2",oxTableHeaderCellDragOver:"_oxTableHeaderCellDragOver_cgkgr_2",oxTableHeaderCellFixed:"_oxTableHeaderCellFixed_cgkgr_2"},xI={left:_e.oxTableHeaderCellAlignLeft,center:_e.oxTableHeaderCellAlignCenter,right:_e.oxTableHeaderCellAlignRight},yc=b.forwardRef(({className:e,sortable:t=!1,sorted:n=!1,sortDirection:o=null,resizable:r=!1,resizing:s=!1,draggable:i=!1,align:a="left",width:l,fixed:c,fixedOffset:u="0px",onSort:d,onResizeStart:f,onColumnDrop:p,style:v,children:m,...x},y)=>{const[S,C]=b.useState(!1),[_,w]=b.useState(!1),T=()=>{t&&(d==null||d())},E=U=>{U.preventDefault(),U.stopPropagation(),f==null||f(U)},P=U=>{var q;if(!i)return;C(!0);const X=U.currentTarget.dataset.field;X&&((q=U.dataTransfer)==null||q.setData("text/plain",X),U.dataTransfer.effectAllowed="move")},A=()=>{C(!1)},R=U=>{i&&(U.preventDefault(),U.dataTransfer.dropEffect="move",w(!0))},B=()=>{w(!1)},V=U=>{var X;if(!i)return;U.preventDefault(),w(!1);const Z=(X=U.dataTransfer)==null?void 0:X.getData("text/plain");Z&&(p==null||p(Z))},K={...v};return l&&(K.width=l,K.minWidth=l),c&&(K[c]=u),h.jsxs("th",{ref:y,className:j(_e.oxTableHeaderCell,xI[a],t&&_e.oxTableHeaderCellSortable,n&&_e.oxTableHeaderCellSorted,s&&_e.oxTableHeaderCellResizing,i&&_e.oxTableHeaderCellDraggable,S&&_e.oxTableHeaderCellDragging,_&&_e.oxTableHeaderCellDragOver,c&&["table-header-cell-fixed",_e.oxTableHeaderCellFixed],c==="left"&&["table-header-cell-fixed-left",_e.oxTableHeaderCellFixedLeft],c==="right"&&["table-header-cell-fixed-right",_e.oxTableHeaderCellFixedRight],e),style:K,draggable:i,"data-slot":"header-cell","aria-sort":n?o==="asc"?"ascending":"descending":void 0,onClick:T,onDragStart:P,onDragEnd:A,onDragOver:R,onDragLeave:B,onDrop:V,...x,children:[h.jsxs("div",{className:_e.oxTableHeaderCellContent,children:[m,t&&h.jsx("span",{className:_e.oxTableHeaderCellIndicator,children:n?o==="asc"?h.jsx("svg",{className:_e.oxTableHeaderCellIcon,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:h.jsx("path",{d:"M7 14l5-5 5 5"})}):h.jsx("svg",{className:_e.oxTableHeaderCellIcon,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:h.jsx("path",{d:"M7 10l5 5 5-5"})}):h.jsx("svg",{className:j(_e.oxTableHeaderCellIcon,_e.oxTableHeaderCellIconUnsorted),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:h.jsx("path",{d:"M7 15l5 5 5-5M7 9l5-5 5 5"})})})]}),r&&h.jsx("div",{className:j(_e.oxTableHeaderCellResizer,s&&_e.oxTableHeaderCellResizerActive),onMouseDown:E,onTouchStart:E})]})});yc.displayName="OxTableHeaderCell";const Po={oxTableRow:"_oxTableRow_5espm_2",oxTableRowSelected:"_oxTableRowSelected_5espm_2",oxTableRowExpanded:"_oxTableRowExpanded_5espm_2"},Qv=b.createContext(null),Io=b.forwardRef((e,t)=>{if(e.dragId!==void 0)return h.jsx(bI,{...e});const{className:n,selected:o=!1,expanded:r=!1,children:s,dragId:i,...a}=e;return h.jsx("tr",{ref:t,className:j(Po.oxTableRow,o&&Po.oxTableRowSelected,r&&Po.oxTableRowExpanded,n),"data-slot":"row",...a,children:s})});Io.displayName="OxTableRow";function bI({className:e,selected:t=!1,expanded:n=!1,children:o,dragId:r,...s}){const{setNodeRef:i,setActivatorNodeRef:a,transform:l,transition:c,isDragging:u,attributes:d,listeners:f}=gI({id:r}),p={transform:cr.Transform.toString(l),transition:c,...u?{position:"relative",zIndex:2,opacity:.85}:null};return h.jsx(Qv.Provider,{value:{attributes:d,listeners:f,setActivatorNodeRef:a},children:h.jsx("tr",{ref:i,style:p,className:j(Po.oxTableRow,t&&Po.oxTableRowSelected,n&&Po.oxTableRowExpanded,e),"data-slot":"row","data-dragging":u||void 0,...s,children:o})})}const Cc={oxTableRowExpanded:"_oxTableRowExpanded_y3m5z_2",oxTableRowExpandedCell:"_oxTableRowExpandedCell_y3m5z_2",oxTableRowExpandedContent:"_oxTableRowExpandedContent_y3m5z_2"},Ao=b.forwardRef(({className:e,expanded:t=!1,colspan:n=1,children:o,...r},s)=>t?h.jsx("tr",{ref:s,className:j(Cc.oxTableRowExpanded,e),"data-slot":"row-expanded",...r,children:h.jsx("td",{colSpan:n,className:Cc.oxTableRowExpandedCell,children:h.jsx("div",{className:Cc.oxTableRowExpandedContent,children:o})})}):null);Ao.displayName="OxTableRowExpanded";const Zs={oxTableSelectCell:"_oxTableSelectCell_1msp0_2",oxTableSelectCellHeader:"_oxTableSelectCellHeader_1msp0_2",oxTableSelectCellContent:"_oxTableSelectCellContent_1msp0_2",oxTableSelectCellFixed:"_oxTableSelectCellFixed_1msp0_2"},Oo=b.forwardRef(({className:e,checked:t=!1,header:n=!1,fixed:o=!1,fixedOffset:r="0px",onChange:s,style:i,...a},l)=>{const c=n?"th":"td";return h.jsx(c,{ref:l,className:j(Zs.oxTableSelectCell,n&&Zs.oxTableSelectCellHeader,o&&["table-select-cell-fixed",Zs.oxTableSelectCellFixed],e),style:o?{left:r,...i}:i,"data-slot":"select",...a,children:h.jsx("div",{className:Zs.oxTableSelectCellContent,children:h.jsx(Ls,{checked:t,onCheckedChange:u=>s==null?void 0:s(u===!0)})})})});Oo.displayName="OxTableSelectCell";/**
169
+ `},_P={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function TP(e){let{announcements:t=_P,container:n,hiddenTextDescribedById:o,screenReaderInstructions:r=wP}=e;const{announce:s,announcement:i}=yP(),a=dr("DndLiveRegion"),[l,c]=y.useState(!1);if(y.useEffect(()=>{c(!0)},[]),CP(y.useMemo(()=>({onDragStart(d){let{active:f}=d;s(t.onDragStart({active:f}))},onDragMove(d){let{active:f,over:p}=d;t.onDragMove&&s(t.onDragMove({active:f,over:p}))},onDragOver(d){let{active:f,over:p}=d;s(t.onDragOver({active:f,over:p}))},onDragEnd(d){let{active:f,over:p}=d;s(t.onDragEnd({active:f,over:p}))},onDragCancel(d){let{active:f,over:p}=d;s(t.onDragCancel({active:f,over:p}))}}),[s,t])),!l)return null;const u=y.createElement(y.Fragment,null,y.createElement(xP,{id:o,value:r.draggable}),y.createElement(bP,{id:a,announcement:i}));return n?Ye.createPortal(u,n):u}var De;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(De||(De={}));function Zs(){}function EP(e,t){return y.useMemo(()=>({sensor:e,options:{}}),[e,t])}function PP(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return y.useMemo(()=>[...t].filter(o=>o!=null),[...t])}const St=Object.freeze({x:0,y:0});function IP(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function AP(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return n-o}function OP(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function DP(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Yv(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const NP=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=Yv(t,t.left,t.top),s=[];for(const i of o){const{id:a}=i,l=n.get(a);if(l){const c=IP(Yv(l),r);s.push({id:a,data:{droppableContainer:i,value:c}})}}return s.sort(AP)};function kP(e,t){const n=Math.max(t.top,e.top),o=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),i=r-o,a=s-n;if(o<r&&n<s){const l=t.width*t.height,c=e.width*e.height,u=i*a,d=u/(l+c-u);return Number(d.toFixed(4))}return 0}const MP=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=[];for(const s of o){const{id:i}=s,a=n.get(i);if(a){const l=kP(a,t);l>0&&r.push({id:i,data:{droppableContainer:s,value:l}})}}return r.sort(OP)};function $P(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Jv(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:St}function RP(e){return function(n){for(var o=arguments.length,r=new Array(o>1?o-1:0),s=1;s<o;s++)r[s-1]=arguments[s];return r.reduce((i,a)=>({...i,top:i.top+e*a.y,bottom:i.bottom+e*a.y,left:i.left+e*a.x,right:i.right+e*a.x}),{...n})}}const LP=RP(1);function FP(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function zP(e,t,n){const o=FP(t);if(!o)return e;const{scaleX:r,scaleY:s,x:i,y:a}=o,l=e.left-i-(1-r)*parseFloat(n),c=e.top-a-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),u=r?e.width/r:e.width,d=s?e.height/s:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}const VP={ignoreTransform:!1};function To(e,t){t===void 0&&(t=VP);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=Qe(e).getComputedStyle(e);c&&(n=zP(n,c,u))}const{top:o,left:r,width:s,height:i,bottom:a,right:l}=n;return{top:o,left:r,width:s,height:i,bottom:a,right:l}}function Zv(e){return To(e,{ignoreTransform:!0})}function BP(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function HP(e,t){return t===void 0&&(t=Qe(e).getComputedStyle(e)),t.position==="fixed"}function GP(e,t){t===void 0&&(t=Qe(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const s=t[r];return typeof s=="string"?n.test(s):!1})}function mc(e,t){const n=[];function o(r){if(t!=null&&n.length>=t||!r)return n;if(uc(r)&&r.scrollingElement!=null&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!lr(r)||Uv(r)||n.includes(r))return n;const s=Qe(e).getComputedStyle(r);return r!==e&&GP(r,s)&&n.push(r),HP(r,s)?n:o(r.parentNode)}return e?o(e):n}function Qv(e){const[t]=mc(e,1);return t??null}function vc(e){return!Xs||!e?null:So(e)?e:cc(e)?uc(e)||e===wo(e).scrollingElement?window:lr(e)?e:null:null}function ex(e){return So(e)?e.scrollX:e.scrollLeft}function tx(e){return So(e)?e.scrollY:e.scrollTop}function xc(e){return{x:ex(e),y:tx(e)}}var Le;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Le||(Le={}));function nx(e){return!Xs||!e?!1:e===document.scrollingElement}function ox(e){const t={x:0,y:0},n=nx(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},r=e.scrollTop<=t.y,s=e.scrollLeft<=t.x,i=e.scrollTop>=o.y,a=e.scrollLeft>=o.x;return{isTop:r,isLeft:s,isBottom:i,isRight:a,maxScroll:o,minScroll:t}}const jP={x:.2,y:.2};function WP(e,t,n,o,r){let{top:s,left:i,right:a,bottom:l}=n;o===void 0&&(o=10),r===void 0&&(r=jP);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=ox(e),p={x:0,y:0},m={x:0,y:0},g={height:t.height*r.y,width:t.width*r.x};return!c&&s<=t.top+g.height?(p.y=Le.Backward,m.y=o*Math.abs((t.top+g.height-s)/g.height)):!u&&l>=t.bottom-g.height&&(p.y=Le.Forward,m.y=o*Math.abs((t.bottom-g.height-l)/g.height)),!f&&a>=t.right-g.width?(p.x=Le.Forward,m.x=o*Math.abs((t.right-g.width-a)/g.width)):!d&&i<=t.left+g.width&&(p.x=Le.Backward,m.x=o*Math.abs((t.left+g.width-i)/g.width)),{direction:p,speed:m}}function UP(e){if(e===document.scrollingElement){const{innerWidth:s,innerHeight:i}=window;return{top:0,left:0,right:s,bottom:i,width:s,height:i}}const{top:t,left:n,right:o,bottom:r}=e.getBoundingClientRect();return{top:t,left:n,right:o,bottom:r,width:e.clientWidth,height:e.clientHeight}}function rx(e){return e.reduce((t,n)=>_o(t,xc(n)),St)}function qP(e){return e.reduce((t,n)=>t+ex(n),0)}function KP(e){return e.reduce((t,n)=>t+tx(n),0)}function XP(e,t){if(t===void 0&&(t=To),!e)return;const{top:n,left:o,bottom:r,right:s}=t(e);Qv(e)&&(r<=0||s<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const YP=[["x",["left","right"],qP],["y",["top","bottom"],KP]];class bc{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const o=mc(n),r=rx(o);this.rect={...t},this.width=t.width,this.height=t.height;for(const[s,i,a]of YP)for(const l of i)Object.defineProperty(this,l,{get:()=>{const c=a(o),u=r[s]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class pr{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var o;return(o=this.target)==null?void 0:o.removeEventListener(...n)})},this.target=t}add(t,n,o){var r;(r=this.target)==null||r.addEventListener(t,n,o),this.listeners.push([t,n,o])}}function JP(e){const{EventTarget:t}=Qe(e);return e instanceof t?e:wo(e)}function yc(e,t){const n=Math.abs(e.x),o=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+o**2)>t:"x"in t&&"y"in t?n>t.x&&o>t.y:"x"in t?n>t.x:"y"in t?o>t.y:!1}var pt;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(pt||(pt={}));function sx(e){e.preventDefault()}function ZP(e){e.stopPropagation()}var ve;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(ve||(ve={}));const ix={start:[ve.Space,ve.Enter],cancel:[ve.Esc],end:[ve.Space,ve.Enter,ve.Tab]},QP=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case ve.Right:return{...n,x:n.x+25};case ve.Left:return{...n,x:n.x-25};case ve.Down:return{...n,y:n.y+25};case ve.Up:return{...n,y:n.y-25}}};class ax{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new pr(wo(n)),this.windowListeners=new pr(Qe(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(pt.Resize,this.handleCancel),this.windowListeners.add(pt.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(pt.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,o=t.node.current;o&&XP(o),n(St)}handleKeyDown(t){if(gc(t)){const{active:n,context:o,options:r}=this.props,{keyboardCodes:s=ix,coordinateGetter:i=QP,scrollBehavior:a="smooth"}=r,{code:l}=t;if(s.end.includes(l)){this.handleEnd(t);return}if(s.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=o.current,u=c?{x:c.left,y:c.top}:St;this.referenceCoordinates||(this.referenceCoordinates=u);const d=i(t,{active:n,context:o.current,currentCoordinates:u});if(d){const f=Js(d,u),p={x:0,y:0},{scrollableAncestors:m}=o.current;for(const g of m){const x=t.code,{isTop:b,isRight:S,isLeft:C,isBottom:_,maxScroll:w,minScroll:T}=ox(g),E=UP(g),P={x:Math.min(x===ve.Right?E.right-E.width/2:E.right,Math.max(x===ve.Right?E.left:E.left+E.width/2,d.x)),y:Math.min(x===ve.Down?E.bottom-E.height/2:E.bottom,Math.max(x===ve.Down?E.top:E.top+E.height/2,d.y))},I=x===ve.Right&&!S||x===ve.Left&&!C,N=x===ve.Down&&!_||x===ve.Up&&!b;if(I&&P.x!==d.x){const H=g.scrollLeft+f.x,L=x===ve.Right&&H<=w.x||x===ve.Left&&H>=T.x;if(L&&!f.y){g.scrollTo({left:H,behavior:a});return}L?p.x=g.scrollLeft-H:p.x=x===ve.Right?g.scrollLeft-w.x:g.scrollLeft-T.x,p.x&&g.scrollBy({left:-p.x,behavior:a});break}else if(N&&P.y!==d.y){const H=g.scrollTop+f.y,L=x===ve.Down&&H<=w.y||x===ve.Up&&H>=T.y;if(L&&!f.x){g.scrollTo({top:H,behavior:a});return}L?p.y=g.scrollTop-H:p.y=x===ve.Down?g.scrollTop-w.y:g.scrollTop-T.y,p.y&&g.scrollBy({top:-p.y,behavior:a});break}}this.handleMove(t,_o(Js(d,this.referenceCoordinates),p))}}}handleMove(t,n){const{onMove:o}=this.props;t.preventDefault(),o(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}ax.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=ix,onActivation:r}=t,{active:s}=n;const{code:i}=e.nativeEvent;if(o.start.includes(i)){const a=s.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),r==null||r({event:e.nativeEvent}),!0)}return!1}}];function lx(e){return!!(e&&"distance"in e)}function cx(e){return!!(e&&"delay"in e)}class Cc{constructor(t,n,o){var r;o===void 0&&(o=JP(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:s}=t,{target:i}=s;this.props=t,this.events=n,this.document=wo(i),this.documentListeners=new pr(this.document),this.listeners=new pr(o),this.windowListeners=new pr(Qe(i)),this.initialCoordinates=(r=hc(s))!=null?r:St,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:o}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(pt.Resize,this.handleCancel),this.windowListeners.add(pt.DragStart,sx),this.windowListeners.add(pt.VisibilityChange,this.handleCancel),this.windowListeners.add(pt.ContextMenu,sx),this.documentListeners.add(pt.Keydown,this.handleKeydown),n){if(o!=null&&o({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(cx(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(lx(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:o,onPending:r}=this.props;r(o,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(pt.Click,ZP,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(pt.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:o,initialCoordinates:r,props:s}=this,{onMove:i,options:{activationConstraint:a}}=s;if(!r)return;const l=(n=hc(t))!=null?n:St,c=Js(r,l);if(!o&&a){if(lx(a)){if(a.tolerance!=null&&yc(c,a.tolerance))return this.handleCancel();if(yc(c,a.distance))return this.handleStart()}if(cx(a)&&yc(c,a.tolerance))return this.handleCancel();this.handlePending(a,c);return}t.cancelable&&t.preventDefault(),i(l)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===ve.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const eI={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Sc extends Cc{constructor(t){const{event:n}=t,o=wo(n.target);super(t,eI,o)}}Sc.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!n.isPrimary||n.button!==0?!1:(o==null||o({event:n}),!0)}}];const tI={move:{name:"mousemove"},end:{name:"mouseup"}};var wc;(function(e){e[e.RightClick=2]="RightClick"})(wc||(wc={}));class nI extends Cc{constructor(t){super(t,tI,wo(t.event.target))}}nI.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button===wc.RightClick?!1:(o==null||o({event:n}),!0)}}];const _c={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class oI extends Cc{constructor(t){super(t,_c)}static setup(){return window.addEventListener(_c.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(_c.move.name,t)};function t(){}}}oI.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;const{touches:r}=n;return r.length>1?!1:(o==null||o({event:n}),!0)}}];var gr;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(gr||(gr={}));var Qs;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Qs||(Qs={}));function rI(e){let{acceleration:t,activator:n=gr.Pointer,canScroll:o,draggingRect:r,enabled:s,interval:i=5,order:a=Qs.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:d,threshold:f}=e;const p=iI({delta:d,disabled:!s}),[m,g]=pP(),x=y.useRef({x:0,y:0}),b=y.useRef({x:0,y:0}),S=y.useMemo(()=>{switch(n){case gr.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case gr.DraggableRect:return r}},[n,r,l]),C=y.useRef(null),_=y.useCallback(()=>{const T=C.current;if(!T)return;const E=x.current.x*b.current.x,P=x.current.y*b.current.y;T.scrollBy(E,P)},[]),w=y.useMemo(()=>a===Qs.TreeOrder?[...c].reverse():c,[a,c]);y.useEffect(()=>{if(!s||!c.length||!S){g();return}for(const T of w){if((o==null?void 0:o(T))===!1)continue;const E=c.indexOf(T),P=u[E];if(!P)continue;const{direction:I,speed:N}=WP(T,P,S,t,f);for(const H of["x","y"])p[H][I[H]]||(N[H]=0,I[H]=0);if(N.x>0||N.y>0){g(),C.current=T,m(_,i),x.current=N,b.current=I;return}}x.current={x:0,y:0},b.current={x:0,y:0},g()},[t,_,o,g,s,i,JSON.stringify(S),JSON.stringify(p),m,c,w,u,JSON.stringify(f)])}const sI={x:{[Le.Backward]:!1,[Le.Forward]:!1},y:{[Le.Backward]:!1,[Le.Forward]:!1}};function iI(e){let{delta:t,disabled:n}=e;const o=fc(t);return ur(r=>{if(n||!o||!r)return sI;const s={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[Le.Backward]:r.x[Le.Backward]||s.x===-1,[Le.Forward]:r.x[Le.Forward]||s.x===1},y:{[Le.Backward]:r.y[Le.Backward]||s.y===-1,[Le.Forward]:r.y[Le.Forward]||s.y===1}}},[n,t,o])}function aI(e,t){const n=t!=null?e.get(t):void 0,o=n?n.node.current:null;return ur(r=>{var s;return t==null?null:(s=o??r)!=null?s:null},[o,t])}function lI(e,t){return y.useMemo(()=>e.reduce((n,o)=>{const{sensor:r}=o,s=r.activators.map(i=>({eventName:i.eventName,handler:t(i.handler,o)}));return[...n,...s]},[]),[e,t])}var hr;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(hr||(hr={}));var Tc;(function(e){e.Optimized="optimized"})(Tc||(Tc={}));const ux=new Map;function cI(e,t){let{dragging:n,dependencies:o,config:r}=t;const[s,i]=y.useState(null),{frequency:a,measure:l,strategy:c}=r,u=y.useRef(e),d=x(),f=cr(d),p=y.useCallback(function(b){b===void 0&&(b=[]),!f.current&&i(S=>S===null?b:S.concat(b.filter(C=>!S.includes(C))))},[f]),m=y.useRef(null),g=ur(b=>{if(d&&!n)return ux;if(!b||b===ux||u.current!==e||s!=null){const S=new Map;for(let C of e){if(!C)continue;if(s&&s.length>0&&!s.includes(C.id)&&C.rect.current){S.set(C.id,C.rect.current);continue}const _=C.node.current,w=_?new bc(l(_),_):null;C.rect.current=w,w&&S.set(C.id,w)}return S}return b},[e,s,n,d,l]);return y.useEffect(()=>{u.current=e},[e]),y.useEffect(()=>{d||p()},[n,d]),y.useEffect(()=>{s&&s.length>0&&i(null)},[JSON.stringify(s)]),y.useEffect(()=>{d||typeof a!="number"||m.current!==null||(m.current=setTimeout(()=>{p(),m.current=null},a))},[a,d,p,...o]),{droppableRects:g,measureDroppableContainers:p,measuringScheduled:s!=null};function x(){switch(c){case hr.Always:return!1;case hr.BeforeDragging:return n;default:return!n}}}function dx(e,t){return ur(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function uI(e,t){return dx(e,t)}function dI(e){let{callback:t,disabled:n}=e;const o=dc(t),r=y.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:s}=window;return new s(o)},[o,n]);return y.useEffect(()=>()=>r==null?void 0:r.disconnect(),[r]),r}function ei(e){let{callback:t,disabled:n}=e;const o=dc(t),r=y.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:s}=window;return new s(o)},[n]);return y.useEffect(()=>()=>r==null?void 0:r.disconnect(),[r]),r}function fI(e){return new bc(To(e),e)}function fx(e,t,n){t===void 0&&(t=fI);const[o,r]=y.useState(null);function s(){r(l=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=l??n)!=null?c:null}const u=t(e);return JSON.stringify(l)===JSON.stringify(u)?l:u})}const i=dI({callback(l){if(e)for(const c of l){const{type:u,target:d}=c;if(u==="childList"&&d instanceof HTMLElement&&d.contains(e)){s();break}}}}),a=ei({callback:s});return Mt(()=>{s(),e?(a==null||a.observe(e),i==null||i.observe(document.body,{childList:!0,subtree:!0})):(a==null||a.disconnect(),i==null||i.disconnect())},[e]),o}function pI(e){const t=dx(e);return Jv(e,t)}const px=[];function gI(e){const t=y.useRef(e),n=ur(o=>e?o&&o!==px&&e&&t.current&&e.parentNode===t.current.parentNode?o:mc(e):px,[e]);return y.useEffect(()=>{t.current=e},[e]),n}function hI(e){const[t,n]=y.useState(null),o=y.useRef(e),r=y.useCallback(s=>{const i=vc(s.target);i&&n(a=>a?(a.set(i,xc(i)),new Map(a)):null)},[]);return y.useEffect(()=>{const s=o.current;if(e!==s){i(s);const a=e.map(l=>{const c=vc(l);return c?(c.addEventListener("scroll",r,{passive:!0}),[c,xc(c)]):null}).filter(l=>l!=null);n(a.length?new Map(a):null),o.current=e}return()=>{i(e),i(s)};function i(a){a.forEach(l=>{const c=vc(l);c==null||c.removeEventListener("scroll",r)})}},[r,e]),y.useMemo(()=>e.length?t?Array.from(t.values()).reduce((s,i)=>_o(s,i),St):rx(e):St,[e,t])}function gx(e,t){t===void 0&&(t=[]);const n=y.useRef(null);return y.useEffect(()=>{n.current=null},t),y.useEffect(()=>{const o=e!==St;o&&!n.current&&(n.current=e),!o&&n.current&&(n.current=null)},[e]),n.current?Js(e,n.current):St}function mI(e){y.useEffect(()=>{if(!Xs)return;const t=e.map(n=>{let{sensor:o}=n;return o.setup==null?void 0:o.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function vI(e,t){return y.useMemo(()=>e.reduce((n,o)=>{let{eventName:r,handler:s}=o;return n[r]=i=>{s(i,t)},n},{}),[e,t])}function hx(e){return y.useMemo(()=>e?BP(e):null,[e])}const mx=[];function xI(e,t){t===void 0&&(t=To);const[n]=e,o=hx(n?Qe(n):null),[r,s]=y.useState(mx);function i(){s(()=>e.length?e.map(l=>nx(l)?o:new bc(t(l),l)):mx)}const a=ei({callback:i});return Mt(()=>{a==null||a.disconnect(),i(),e.forEach(l=>a==null?void 0:a.observe(l))},[e]),r}function bI(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return lr(t)?t:e}function yI(e){let{measure:t}=e;const[n,o]=y.useState(null),r=y.useCallback(c=>{for(const{target:u}of c)if(lr(u)){o(d=>{const f=t(u);return d?{...d,width:f.width,height:f.height}:f});break}},[t]),s=ei({callback:r}),i=y.useCallback(c=>{const u=bI(c);s==null||s.disconnect(),u&&(s==null||s.observe(u)),o(u?t(u):null)},[t,s]),[a,l]=Ys(i);return y.useMemo(()=>({nodeRef:a,rect:n,setRef:l}),[n,a,l])}const CI=[{sensor:Sc,options:{}},{sensor:ax,options:{}}],SI={current:{}},ti={draggable:{measure:Zv},droppable:{measure:Zv,strategy:hr.WhileDragging,frequency:Tc.Optimized},dragOverlay:{measure:To}};class mr extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,o;return(n=(o=this.get(t))==null?void 0:o.node.current)!=null?n:void 0}}const wI={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new mr,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Zs},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:ti,measureDroppableContainers:Zs,windowRect:null,measuringScheduled:!1},_I={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Zs,draggableNodes:new Map,over:null,measureDroppableContainers:Zs},ni=y.createContext(_I),vx=y.createContext(wI);function TI(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new mr}}}function EI(e,t){switch(t.type){case De.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case De.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case De.DragEnd:case De.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case De.RegisterDroppable:{const{element:n}=t,{id:o}=n,r=new mr(e.droppable.containers);return r.set(o,n),{...e,droppable:{...e.droppable,containers:r}}}case De.SetDroppableDisabled:{const{id:n,key:o,disabled:r}=t,s=e.droppable.containers.get(n);if(!s||o!==s.key)return e;const i=new mr(e.droppable.containers);return i.set(n,{...s,disabled:r}),{...e,droppable:{...e.droppable,containers:i}}}case De.UnregisterDroppable:{const{id:n,key:o}=t,r=e.droppable.containers.get(n);if(!r||o!==r.key)return e;const s=new mr(e.droppable.containers);return s.delete(n),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function PI(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:r}=y.useContext(ni),s=fc(o),i=fc(n==null?void 0:n.id);return y.useEffect(()=>{if(!t&&!o&&s&&i!=null){if(!gc(s)||document.activeElement===s.target)return;const a=r.get(i);if(!a)return;const{activatorNode:l,node:c}=a;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const u of[l.current,c.current]){if(!u)continue;const d=mP(u);if(d){d.focus();break}}})}},[o,t,r,i,s]),null}function II(e,t){let{transform:n,...o}=t;return e!=null&&e.length?e.reduce((r,s)=>s({transform:r,...o}),n):n}function AI(e){return y.useMemo(()=>({draggable:{...ti.draggable,...e==null?void 0:e.draggable},droppable:{...ti.droppable,...e==null?void 0:e.droppable},dragOverlay:{...ti.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function OI(e){let{activeNode:t,measure:n,initialRect:o,config:r=!0}=e;const s=y.useRef(!1),{x:i,y:a}=typeof r=="boolean"?{x:r,y:r}:r;Mt(()=>{if(!i&&!a||!t){s.current=!1;return}if(s.current||!o)return;const c=t==null?void 0:t.node.current;if(!c||c.isConnected===!1)return;const u=n(c),d=Jv(u,o);if(i||(d.x=0),a||(d.y=0),s.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const f=Qv(c);f&&f.scrollBy({top:d.y,left:d.x})}},[t,i,a,o,n])}const xx=y.createContext({...St,scaleX:1,scaleY:1});var dn;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(dn||(dn={}));const DI=y.memo(function(t){var n,o,r,s;let{id:i,accessibility:a,autoScroll:l=!0,children:c,sensors:u=CI,collisionDetection:d=MP,measuring:f,modifiers:p,...m}=t;const g=y.useReducer(EI,void 0,TI),[x,b]=g,[S,C]=SP(),[_,w]=y.useState(dn.Uninitialized),T=_===dn.Initialized,{draggable:{active:E,nodes:P,translate:I},droppable:{containers:N}}=x,H=E!=null?P.get(E):null,L=y.useRef({initial:null,translated:null}),X=y.useMemo(()=>{var He;return E!=null?{id:E,data:(He=H==null?void 0:H.data)!=null?He:SI,rect:L}:null},[E,H]),W=y.useRef(null),[J,Y]=y.useState(null),[q,z]=y.useState(null),Q=cr(m,Object.values(m)),F=dr("DndDescribedBy",i),K=y.useMemo(()=>N.getEnabled(),[N]),D=AI(f),{droppableRects:A,measureDroppableContainers:k,measuringScheduled:$}=cI(K,{dragging:T,dependencies:[I.x,I.y],config:D.droppable}),V=aI(P,E),M=y.useMemo(()=>q?hc(q):null,[q]),R=AO(),j=uI(V,D.draggable.measure);OI({activeNode:E!=null?P.get(E):null,config:R.layoutShiftCompensation,initialRect:j,measure:D.draggable.measure});const U=fx(V,D.draggable.measure,j),ee=fx(V?V.parentElement:null),B=y.useRef({activatorEvent:null,active:null,activeNode:V,collisionRect:null,collisions:null,droppableRects:A,draggableNodes:P,draggingNode:null,draggingNodeRect:null,droppableContainers:N,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Z=N.getNodeFor((n=B.current.over)==null?void 0:n.id),ue=yI({measure:D.dragOverlay.measure}),me=(o=ue.nodeRef.current)!=null?o:V,Ce=T?(r=ue.rect)!=null?r:U:null,Ne=!!(ue.nodeRef.current&&ue.rect),ye=pI(Ne?null:U),at=hx(me?Qe(me):null),oe=gI(T?Z??V:null),ie=xI(oe),re=II(p,{transform:{x:I.x-ye.x,y:I.y-ye.y,scaleX:1,scaleY:1},activatorEvent:q,active:X,activeNodeRect:U,containerNodeRect:ee,draggingNodeRect:Ce,over:B.current.over,overlayNodeRect:ue.rect,scrollableAncestors:oe,scrollableAncestorRects:ie,windowRect:at}),tt=M?_o(M,I):null,Tr=hI(oe),SO=gx(Tr),wO=gx(Tr,[U]),Mo=_o(re,SO),$o=Ce?LP(Ce,re):null,Er=X&&$o?d({active:X,collisionRect:$o,droppableRects:A,droppableContainers:K,pointerCoordinates:tt}):null,o0=DP(Er,"id"),[gn,r0]=y.useState(null),_O=Ne?re:_o(re,wO),TO=$P(_O,(s=gn==null?void 0:gn.rect)!=null?s:null,U),Qc=y.useRef(null),s0=y.useCallback((He,lt)=>{let{sensor:ct,options:hn}=lt;if(W.current==null)return;const gt=P.get(W.current);if(!gt)return;const ut=He.nativeEvent,$t=new ct({active:W.current,activeNode:gt,event:ut,options:hn,context:B,onAbort(Fe){if(!P.get(Fe))return;const{onDragAbort:Rt}=Q.current,Zt={id:Fe};Rt==null||Rt(Zt),S({type:"onDragAbort",event:Zt})},onPending(Fe,mn,Rt,Zt){if(!P.get(Fe))return;const{onDragPending:Ir}=Q.current,vn={id:Fe,constraint:mn,initialCoordinates:Rt,offset:Zt};Ir==null||Ir(vn),S({type:"onDragPending",event:vn})},onStart(Fe){const mn=W.current;if(mn==null)return;const Rt=P.get(mn);if(!Rt)return;const{onDragStart:Zt}=Q.current,Pr={activatorEvent:ut,active:{id:mn,data:Rt.data,rect:L}};Ye.unstable_batchedUpdates(()=>{Zt==null||Zt(Pr),w(dn.Initializing),b({type:De.DragStart,initialCoordinates:Fe,active:mn}),S({type:"onDragStart",event:Pr}),Y(Qc.current),z(ut)})},onMove(Fe){b({type:De.DragMove,coordinates:Fe})},onEnd:Ro(De.DragEnd),onCancel:Ro(De.DragCancel)});Qc.current=$t;function Ro(Fe){return async function(){const{active:Rt,collisions:Zt,over:Pr,scrollAdjustedTranslate:Ir}=B.current;let vn=null;if(Rt&&Ir){const{cancelDrop:Ar}=Q.current;vn={activatorEvent:ut,active:Rt,collisions:Zt,delta:Ir,over:Pr},Fe===De.DragEnd&&typeof Ar=="function"&&await Promise.resolve(Ar(vn))&&(Fe=De.DragCancel)}W.current=null,Ye.unstable_batchedUpdates(()=>{b({type:Fe}),w(dn.Uninitialized),r0(null),Y(null),z(null),Qc.current=null;const Ar=Fe===De.DragEnd?"onDragEnd":"onDragCancel";if(vn){const eu=Q.current[Ar];eu==null||eu(vn),S({type:Ar,event:vn})}})}}},[P]),EO=y.useCallback((He,lt)=>(ct,hn)=>{const gt=ct.nativeEvent,ut=P.get(hn);if(W.current!==null||!ut||gt.dndKit||gt.defaultPrevented)return;const $t={active:ut};He(ct,lt.options,$t)===!0&&(gt.dndKit={capturedBy:lt.sensor},W.current=hn,s0(ct,lt))},[P,s0]),i0=lI(u,EO);mI(u),Mt(()=>{U&&_===dn.Initializing&&w(dn.Initialized)},[U,_]),y.useEffect(()=>{const{onDragMove:He}=Q.current,{active:lt,activatorEvent:ct,collisions:hn,over:gt}=B.current;if(!lt||!ct)return;const ut={active:lt,activatorEvent:ct,collisions:hn,delta:{x:Mo.x,y:Mo.y},over:gt};Ye.unstable_batchedUpdates(()=>{He==null||He(ut),S({type:"onDragMove",event:ut})})},[Mo.x,Mo.y]),y.useEffect(()=>{const{active:He,activatorEvent:lt,collisions:ct,droppableContainers:hn,scrollAdjustedTranslate:gt}=B.current;if(!He||W.current==null||!lt||!gt)return;const{onDragOver:ut}=Q.current,$t=hn.get(o0),Ro=$t&&$t.rect.current?{id:$t.id,rect:$t.rect.current,data:$t.data,disabled:$t.disabled}:null,Fe={active:He,activatorEvent:lt,collisions:ct,delta:{x:gt.x,y:gt.y},over:Ro};Ye.unstable_batchedUpdates(()=>{r0(Ro),ut==null||ut(Fe),S({type:"onDragOver",event:Fe})})},[o0]),Mt(()=>{B.current={activatorEvent:q,active:X,activeNode:V,collisionRect:$o,collisions:Er,droppableRects:A,draggableNodes:P,draggingNode:me,draggingNodeRect:Ce,droppableContainers:N,over:gn,scrollableAncestors:oe,scrollAdjustedTranslate:Mo},L.current={initial:Ce,translated:$o}},[X,V,Er,$o,P,me,Ce,A,N,gn,oe,Mo]),rI({...R,delta:I,draggingRect:$o,pointerCoordinates:tt,scrollableAncestors:oe,scrollableAncestorRects:ie});const PO=y.useMemo(()=>({active:X,activeNode:V,activeNodeRect:U,activatorEvent:q,collisions:Er,containerNodeRect:ee,dragOverlay:ue,draggableNodes:P,droppableContainers:N,droppableRects:A,over:gn,measureDroppableContainers:k,scrollableAncestors:oe,scrollableAncestorRects:ie,measuringConfiguration:D,measuringScheduled:$,windowRect:at}),[X,V,U,q,Er,ee,ue,P,N,A,gn,k,oe,ie,D,$,at]),IO=y.useMemo(()=>({activatorEvent:q,activators:i0,active:X,activeNodeRect:U,ariaDescribedById:{draggable:F},dispatch:b,draggableNodes:P,over:gn,measureDroppableContainers:k}),[q,i0,X,U,b,F,P,gn,k]);return y.createElement(Xv.Provider,{value:C},y.createElement(ni.Provider,{value:IO},y.createElement(vx.Provider,{value:PO},y.createElement(xx.Provider,{value:TO},c)),y.createElement(PI,{disabled:(a==null?void 0:a.restoreFocus)===!1})),y.createElement(TP,{...a,hiddenTextDescribedById:F}));function AO(){const He=(J==null?void 0:J.autoScrollEnabled)===!1,lt=typeof l=="object"?l.enabled===!1:l===!1,ct=T&&!He&&!lt;return typeof l=="object"?{...l,enabled:ct}:{enabled:ct}}}),NI=y.createContext(null),bx="button",kI="Draggable";function MI(e){let{id:t,data:n,disabled:o=!1,attributes:r}=e;const s=dr(kI),{activators:i,activatorEvent:a,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:d,over:f}=y.useContext(ni),{role:p=bx,roleDescription:m="draggable",tabIndex:g=0}=r??{},x=(l==null?void 0:l.id)===t,b=y.useContext(x?xx:NI),[S,C]=Ys(),[_,w]=Ys(),T=vI(i,t),E=cr(n);Mt(()=>(d.set(t,{id:t,key:s,node:S,activatorNode:_,data:E}),()=>{const I=d.get(t);I&&I.key===s&&d.delete(t)}),[d,t]);const P=y.useMemo(()=>({role:p,tabIndex:g,"aria-disabled":o,"aria-pressed":x&&p===bx?!0:void 0,"aria-roledescription":m,"aria-describedby":u.draggable}),[o,p,g,x,m,u.draggable]);return{active:l,activatorEvent:a,activeNodeRect:c,attributes:P,isDragging:x,listeners:o?void 0:T,node:S,over:f,setNodeRef:C,setActivatorNodeRef:w,transform:b}}function $I(){return y.useContext(vx)}const RI="Droppable",LI={timeout:25};function FI(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:r}=e;const s=dr(RI),{active:i,dispatch:a,over:l,measureDroppableContainers:c}=y.useContext(ni),u=y.useRef({disabled:n}),d=y.useRef(!1),f=y.useRef(null),p=y.useRef(null),{disabled:m,updateMeasurementsFor:g,timeout:x}={...LI,...r},b=cr(g??o),S=y.useCallback(()=>{if(!d.current){d.current=!0;return}p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{c(Array.isArray(b.current)?b.current:[b.current]),p.current=null},x)},[x]),C=ei({callback:S,disabled:m||!i}),_=y.useCallback((P,I)=>{C&&(I&&(C.unobserve(I),d.current=!1),P&&C.observe(P))},[C]),[w,T]=Ys(_),E=cr(t);return y.useEffect(()=>{!C||!w.current||(C.disconnect(),d.current=!1,C.observe(w.current))},[w,C]),y.useEffect(()=>(a({type:De.RegisterDroppable,element:{id:o,key:s,disabled:n,node:w,rect:f,data:E}}),()=>a({type:De.UnregisterDroppable,key:s,id:o})),[o]),y.useEffect(()=>{n!==u.current.disabled&&(a({type:De.SetDroppableDisabled,id:o,key:s,disabled:n}),u.current.disabled=n)},[o,s,n,a]),{active:i,rect:f,isOver:(l==null?void 0:l.id)===o,node:w,over:l,setNodeRef:T}}function Ec(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function zI(e,t){return e.reduce((n,o,r)=>{const s=t.get(o);return s&&(n[r]=s),n},Array(e.length))}function oi(e){return e!==null&&e>=0}function VI(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function BI(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const yx=e=>{let{rects:t,activeIndex:n,overIndex:o,index:r}=e;const s=Ec(t,o,n),i=t[r],a=s[r];return!a||!i?null:{x:a.left-i.left,y:a.top-i.top,scaleX:a.width/i.width,scaleY:a.height/i.height}},ri={scaleX:1,scaleY:1},HI=e=>{var t;let{activeIndex:n,activeNodeRect:o,index:r,rects:s,overIndex:i}=e;const a=(t=s[n])!=null?t:o;if(!a)return null;if(r===n){const c=s[i];return c?{x:0,y:n<i?c.top+c.height-(a.top+a.height):c.top-a.top,...ri}:null}const l=GI(s,r,n);return r>n&&r<=i?{x:0,y:-a.height-l,...ri}:r<n&&r>=i?{x:0,y:a.height+l,...ri}:{x:0,y:0,...ri}};function GI(e,t,n){const o=e[t],r=e[t-1],s=e[t+1];return o?n<t?r?o.top-(r.top+r.height):s?s.top-(o.top+o.height):0:s?s.top-(o.top+o.height):r?o.top-(r.top+r.height):0:0}const Cx="Sortable",Sx=y.createContext({activeIndex:-1,containerId:Cx,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:yx,disabled:{draggable:!1,droppable:!1}});function jI(e){let{children:t,id:n,items:o,strategy:r=yx,disabled:s=!1}=e;const{active:i,dragOverlay:a,droppableRects:l,over:c,measureDroppableContainers:u}=$I(),d=dr(Cx,n),f=a.rect!==null,p=y.useMemo(()=>o.map(T=>typeof T=="object"&&"id"in T?T.id:T),[o]),m=i!=null,g=i?p.indexOf(i.id):-1,x=c?p.indexOf(c.id):-1,b=y.useRef(p),S=!VI(p,b.current),C=x!==-1&&g===-1||S,_=BI(s);Mt(()=>{S&&m&&u(p)},[S,p,m,u]),y.useEffect(()=>{b.current=p},[p]);const w=y.useMemo(()=>({activeIndex:g,containerId:d,disabled:_,disableTransforms:C,items:p,overIndex:x,useDragOverlay:f,sortedRects:zI(p,l),strategy:r}),[g,d,_.draggable,_.droppable,C,p,x,l,f,r]);return y.createElement(Sx.Provider,{value:w},t)}const WI=e=>{let{id:t,items:n,activeIndex:o,overIndex:r}=e;return Ec(n,o,r).indexOf(t)},UI=e=>{let{containerId:t,isSorting:n,wasDragging:o,index:r,items:s,newIndex:i,previousItems:a,previousContainerId:l,transition:c}=e;return!c||!o||a!==s&&r===i?!1:n?!0:i!==r&&t===l},qI={duration:200,easing:"ease"},wx="transform",KI=fr.Transition.toString({property:wx,duration:0,easing:"linear"}),XI={roleDescription:"sortable"};function YI(e){let{disabled:t,index:n,node:o,rect:r}=e;const[s,i]=y.useState(null),a=y.useRef(n);return Mt(()=>{if(!t&&n!==a.current&&o.current){const l=r.current;if(l){const c=To(o.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&i(u)}}n!==a.current&&(a.current=n)},[t,n,o,r]),y.useEffect(()=>{s&&i(null)},[s]),s}function JI(e){let{animateLayoutChanges:t=UI,attributes:n,disabled:o,data:r,getNewIndex:s=WI,id:i,strategy:a,resizeObserverConfig:l,transition:c=qI}=e;const{items:u,containerId:d,activeIndex:f,disabled:p,disableTransforms:m,sortedRects:g,overIndex:x,useDragOverlay:b,strategy:S}=y.useContext(Sx),C=ZI(o,p),_=u.indexOf(i),w=y.useMemo(()=>({sortable:{containerId:d,index:_,items:u},...r}),[d,r,_,u]),T=y.useMemo(()=>u.slice(u.indexOf(i)),[u,i]),{rect:E,node:P,isOver:I,setNodeRef:N}=FI({id:i,data:w,disabled:C.droppable,resizeObserverConfig:{updateMeasurementsFor:T,...l}}),{active:H,activatorEvent:L,activeNodeRect:X,attributes:W,setNodeRef:J,listeners:Y,isDragging:q,over:z,setActivatorNodeRef:Q,transform:F}=MI({id:i,data:w,attributes:{...XI,...n},disabled:C.draggable}),K=fP(N,J),D=!!H,A=D&&!m&&oi(f)&&oi(x),k=!b&&q,$=k&&A?F:null,M=A?$??(a??S)({rects:g,activeNodeRect:X,activeIndex:f,overIndex:x,index:_}):null,R=oi(f)&&oi(x)?s({id:i,items:u,activeIndex:f,overIndex:x}):_,j=H==null?void 0:H.id,U=y.useRef({activeId:j,items:u,newIndex:R,containerId:d}),ee=u!==U.current.items,B=t({active:H,containerId:d,isDragging:q,isSorting:D,id:i,index:_,items:u,newIndex:U.current.newIndex,previousItems:U.current.items,previousContainerId:U.current.containerId,transition:c,wasDragging:U.current.activeId!=null}),Z=YI({disabled:!B,index:_,node:P,rect:E});return y.useEffect(()=>{D&&U.current.newIndex!==R&&(U.current.newIndex=R),d!==U.current.containerId&&(U.current.containerId=d),u!==U.current.items&&(U.current.items=u)},[D,R,d,u]),y.useEffect(()=>{if(j===U.current.activeId)return;if(j!=null&&U.current.activeId==null){U.current.activeId=j;return}const me=setTimeout(()=>{U.current.activeId=j},50);return()=>clearTimeout(me)},[j]),{active:H,activeIndex:f,attributes:W,data:w,rect:E,index:_,newIndex:R,items:u,isOver:I,isSorting:D,isDragging:q,listeners:Y,node:P,overIndex:x,over:z,setNodeRef:K,setActivatorNodeRef:Q,setDroppableNodeRef:N,setDraggableNodeRef:J,transform:Z??M,transition:ue()};function ue(){if(Z||ee&&U.current.newIndex===_)return KI;if(!(k&&!gc(L)||!c)&&(D||B))return fr.Transition.toString({...c,property:wx})}}function ZI(e,t){var n,o;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(o=e==null?void 0:e.droppable)!=null?o:t.droppable}}ve.Down,ve.Right,ve.Up,ve.Left;const _x=y.createContext(null);function si(){return y.useContext(_x)}function QI(e){return typeof e=="object"?e.key:e}function eA(e,t){const n=e.length;return new Proxy(e,{get(o,r,s){if(typeof r=="string"){const i=r.charCodeAt(0);if(i>=48&&i<=57){const a=+r;if(Number.isInteger(a)&&a>=0&&a<n){let l=o[a];if(typeof l!="object"){const c=t[a*2];l=o[a]={index:a,key:l,start:c,size:t[a*2+1],end:c+t[a*2+1],lane:0}}return l}}if(r==="length")return n}return Reflect.get(o,r,s)}})}function Eo(e,t,n){let o=n.initialDeps??[],r,s=!0;function i(){var a;const l=process.env.NODE_ENV!=="production"&&!!n.key&&!!((a=n.debug)!=null&&a.call(n));let c=0;l&&(c=Date.now());const u=e();if(!(u.length!==o.length||u.some((p,m)=>o[m]!==p)))return r;o=u;let f=0;if(l&&(f=Date.now()),r=t(...u),l){const p=Math.round((Date.now()-c)*100)/100,m=Math.round((Date.now()-f)*100)/100,g=m/16,x=(b,S)=>{for(b=String(b);b.length<S;)b=" "+b;return b};console.info(`%c⏱ ${x(m,5)} /${x(p,5)} ms`,`
170
+ font-size: .6rem;
171
+ font-weight: bold;
172
+ color: hsl(${Math.max(0,Math.min(120-120*g,120))}deg 100% 31%);`,n==null?void 0:n.key)}return n!=null&&n.onChange&&!(s&&n.skipInitialOnChange)&&n.onChange(r),s=!1,r}return i.updateDeps=a=>{o=a},i}function Tx(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const Ex=(e,t)=>Math.abs(e-t)<1.01,tA=(e,t,n)=>{let o;return Object.assign(function(...r){e.clearTimeout(o),o=e.setTimeout(()=>t.apply(this,r),n)},{cancel:()=>{e.clearTimeout(o)}})};let vr;const Pc=()=>{if(vr!==void 0)return vr;if(typeof navigator>"u")return vr=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return vr=!0;const e=navigator.maxTouchPoints;return vr=navigator.platform==="MacIntel"&&e!==void 0&&e>0},Px=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},nA=e=>e,oA=e=>{const t=Math.max(e.startIndex-e.overscan,0),o=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,r=new Array(o);for(let s=0;s<o;s++)r[s]=t+s;return r},rA=(e,t)=>{const n=e.scrollElement;if(!n)return;const o=e.targetWindow;if(!o)return;const r=i=>{const{width:a,height:l}=i;t({width:Math.round(a),height:Math.round(l)})};if(r(Px(n)),!o.ResizeObserver)return()=>{};const s=new o.ResizeObserver(i=>{const a=()=>{const l=i[0];if(l!=null&&l.borderBoxSize){const c=l.borderBoxSize[0];if(c){r({width:c.inlineSize,height:c.blockSize});return}}r(Px(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()});return s.observe(n,{box:"border-box"}),()=>{s.unobserve(n)}},ii={passive:!0},sA=typeof window>"u"?!0:"onscrollend"in window,iA=(e,t,n)=>{const o=e.scrollElement;if(!o)return;const r=e.targetWindow;if(!r)return;const s=e.options.useScrollendEvent&&sA;let i=0;const a=s?null:tA(r,()=>t(n(o),!1),e.options.isScrollingResetDelay),l=d=>()=>{i=n(o),a==null||a(),t(i,d)},c=l(!0),u=l(!1);return o.addEventListener("scroll",c,ii),s&&o.addEventListener("scrollend",u,ii),()=>{o.removeEventListener("scroll",c),s&&o.removeEventListener("scrollend",u),a==null||a.cancel()}},aA=(e,t)=>iA(e,t,n=>{const{horizontal:o,isRtl:r}=e.options;return o?n.scrollLeft*(r&&-1||1):n.scrollTop}),lA=(e,t,n)=>{if(n.options.useCachedMeasurements){const o=n.indexFromElement(e),r=n.options.getItemKey(o);return n.itemSizeCache.get(r)??n.options.estimateSize(o)}if(t!=null&&t.borderBoxSize){const o=t.borderBoxSize[0];if(o)return Math.round(o[n.options.horizontal?"inlineSize":"blockSize"])}if(!t){const o=n.indexFromElement(e),r=n.options.getItemKey(o),s=n.itemSizeCache.get(r);if(s!==void 0)return s}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},cA=(e,{adjustments:t=0,behavior:n},o)=>{var r,s;(s=(r=o.scrollElement)==null?void 0:r.scrollTo)==null||s.call(r,{[o.options.horizontal?"left":"top"]:e+t,behavior:n})};function uA(e,t,n,o){if(t===0)return!1;const r=o(0),s=new Set;let i=0;for(;i<e;){const l=n(i);if(l===r)break;s.add(l),i++}const a=e-i;if(a===0||a>=t)return!1;for(let l=0;l<a;l++)if(o(l)!==n(i+l))return!1;for(let l=a;l<t;l++)if(s.has(o(l)))return!1;return!0}class dA{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this._clampedAdjustment=null,this.elementsCache=new Map,this.now=()=>{var n,o,r;return((r=(o=(n=this.targetWindow)==null?void 0:n.performance)==null?void 0:o.now)==null?void 0:r.call(o))??Date.now()},this.observer=(()=>{let n=null;const o=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(r=>{r.forEach(s=>{const i=()=>{const a=s.target,l=this.indexFromElement(a);if(!a.isConnected){this.observer.unobserve(a);for(const[c,u]of this.elementsCache)if(u===a){this.elementsCache.delete(c);break}return}this.isIndexInRange(l)&&this.shouldMeasureDuringScroll(l)&&this.resizeItem(l,this.options.measureElement(a,s,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(i):i()})}));return{disconnect:()=>{var r;(r=o())==null||r.disconnect(),n=null},observe:r=>{var s;return(s=o())==null?void 0:s.observe(r,{box:"border-box"})},unobserve:r=>{var s;return(s=o())==null?void 0:s.unobserve(r)}}})(),this.range=null,this.setOptions=n=>{var o;const r={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:nA,rangeExtractor:oA,onChange:()=>{},measureElement:lA,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(const d in n){const f=n[d];f!==void 0&&(r[d]=f)}const s=this.options;let i=null,a=null,l=!1;if(s!==void 0&&s.enabled&&r.enabled&&r.anchorTo==="end"&&this.scrollElement!==null){const d=s.count,f=r.count,p=this.getMeasurements(),m=((o=this._singleLaneMeasurements)==null?void 0:o.items)??p,g=_=>QI(m[_]),x=d>0?g(0):null,b=d>0?g(d-1):null;if(f!==d||d>0&&f>0&&(r.getItemKey(0)!==x||r.getItemKey(f-1)!==b)){l=!0;const _=d>0?this.getVirtualItemForOffset(this.getScrollOffset())??p[0]:null;_&&(i=[_.key,this.getScrollOffset()-_.start]);const w=r.followOnAppend===!0?"auto":r.followOnAppend||null;w&&f>0&&this.isAtEnd(s.scrollEndThreshold)&&(d===0||r.getItemKey(f-1)!==b)&&(f>d||uA(d,f,g,r.getItemKey))&&(a=w)}}this.options=r,l&&(this.pendingMin=0,this.itemSizeCacheVersion++);let c=!1,u=0;if(i&&this.scrollOffset!==null){const[d,f]=i,p=this.getMeasurements(),{count:m,getItemKey:g}=this.options;let x=0;for(;x<m&&g(x)!==d;)x++;if(x<m){const b=p[x];if(b){const S=Math.max(0,b.start+f);!a&&S!==this.scrollOffset&&(u=S-this.scrollOffset,this.scrollOffset=S,c=!0)}}}(c||a)&&(this.pendingScrollAnchor=[c?i[0]:null,c?i[1]:0,a,u])},this.notify=n=>{var o,r;(r=(o=this.options).onChange)==null||r.call(o,this,n)},this.maybeNotify=Eo(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.isScrolling=!1,this.scrollDirection=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._clampedAdjustment=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n,o;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}if(this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,a)=>{if(a&&this._intendedScrollOffset===null&&i===this.scrollOffset)return;this._intendedScrollOffset!==null&&Math.abs(i-this._intendedScrollOffset)<1.5&&(i=this._intendedScrollOffset),this._intendedScrollOffset=null,this._clampedAdjustment!==null&&Math.abs(i-this._clampedAdjustment.maxAtWrite)>=1.5&&(this._clampedAdjustment=null),this.scrollAdjustments=0;const l=this.getScrollOffset();this.scrollDirection=a?l===i?this.scrollDirection:l<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=a,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){const i=this.scrollElement,a=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},l=()=>{this._iosTouching=!1,!(!Pc()||this.targetWindow==null)&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};i.addEventListener("touchstart",a,ii),i.addEventListener("touchend",l,ii),this.unsubs.push(()=>{i.removeEventListener("touchstart",a),i.removeEventListener("touchend",l),this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}const s=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,s&&this.scrollElement&&this.options.enabled){const[i,a,l,c]=s;i!==null&&!l&&(Pc()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?c!==0&&(this._iosDeferredAdjustment+=c):((o=this.scrollState)==null?void 0:o.behavior)==="smooth"&&!Ex(this.getScrollOffset()-c,this.scrollState.lastTargetOffset)||this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),l&&this.scrollToEnd({behavior:l})}this._retryClampedAdjustment()},this._retryClampedAdjustment=()=>{if(this._clampedAdjustment===null||!this.scrollElement||!this.options.enabled)return;const{target:n,maxAtWrite:o}=this._clampedAdjustment,r=this.getMaxScrollOffset();r>o+.5&&(this._clampedAdjustment=n>r+.5?{target:n,maxAtWrite:r}:null,this._scrollToOffset(n,{adjustments:void 0,behavior:void 0}))},this._flushIosDeferredIfReady=()=>{if(this._iosDeferredAdjustment===0||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;const n=this.getScrollOffset(),o=this.getMaxScrollOffset();if(n<0||n>o)return;if(this._iosDeferredAdjustment<0&&n>=o-1){this._iosDeferredAdjustment=0;return}const r=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(n,{adjustments:this.scrollAdjustments+=r,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=Eo(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(n,o,r,s,i,a,l,c)=>(this.prevLanes!==void 0&&this.prevLanes!==a&&(this.lanesChangedFlag=!0),this.prevLanes=a,this.pendingMin=null,{count:n,paddingStart:o,scrollMargin:r,getItemKey:s,enabled:i,lanes:a,laneAssignmentMode:l,gap:c}),{key:!1}),this.isIndexInRange=n=>n>=0&&n<this.options.count,this.getMeasurements=Eo(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:n,paddingStart:o,scrollMargin:r,getItemKey:s,enabled:i,lanes:a,laneAssignmentMode:l,gap:c},u)=>{var d;const f=this.itemSizeCache;if(!i)return this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>n)for(const S of this.laneAssignments.keys())S>=n&&this.laneAssignments.delete(S);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this._singleLaneMeasurements=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(S=>{this.itemSizeCache.set(S.key,S.size)}));const p=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===n&&(this.lanesSettling=!1),a===1){const S=n*2;let C=(d=this._singleLaneMeasurements)==null?void 0:d.flat;if(!C||C.length<S){const E=new Float64Array(S);C&&p>0&&E.set(C.subarray(0,p*2)),C=E}const _=p===0?new Array(n):this._singleLaneMeasurements.items.slice();let w;if(p===0)w=o+r;else{const E=p-1;w=C[E*2]+C[E*2+1]+c}for(let E=p;E<n;E++){const P=s(E);_[E]=P;const I=f.get(P),N=typeof I=="number"?I:this.options.estimateSize(E);C[E*2]=w,C[E*2+1]=N,w+=N+c}this._singleLaneMeasurements={flat:C,items:_};const T=eA(_,C);return this.measurementsCache=T,T}const m=this.measurementsCache.slice(0,p),g=new Array(a).fill(void 0),x=new Float64Array(a);let b=0;for(let S=0;S<p;S++){const C=m[S];C&&(g[C.lane]===void 0&&b++,g[C.lane]=S,x[C.lane]=C.end)}for(let S=p;S<n;S++){const C=s(S),_=this.laneAssignments.get(S);let w,T;const E=l==="estimate"||f.has(C);if(_!==void 0&&this.options.lanes>1){w=_;const H=g[w],L=H!==void 0?m[H]:void 0;T=L?L.end+c:o+r}else if(b===a){let H=0,L=x[0],X=g[0];for(let W=1;W<a;W++){const J=x[W];(J<L||J===L&&g[W]<X)&&(H=W,L=J,X=g[W])}w=H,T=L+c,E&&this.laneAssignments.set(S,w)}else w=S%this.options.lanes,T=o+r,E&&this.laneAssignments.set(S,w);const P=f.get(C),I=typeof P=="number"?P:this.options.estimateSize(S),N=T+I;m[S]={index:S,start:T,size:I,end:N,key:C,lane:w},g[w]===void 0&&b++,g[w]=S,x[w]=N}return this.measurementsCache=m,m},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=Eo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,o,r,s)=>n.length===0||o===0?(this.range=null,null):(this.range=pA(n,o,r,s,s===1&&this._singleLaneMeasurements!==null?this._singleLaneMeasurements.flat:null),this.range),{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=Eo(()=>{let n=null,o=null;const r=this.calculateRange();return r&&(n=r.startIndex,o=r.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,o]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,o]},(n,o,r,s,i)=>s===null||i===null?[]:n({startIndex:s,endIndex:i,overscan:o,count:r}),{key:process.env.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=n=>{const o=this.options.indexAttribute,r=n.getAttribute(o);return r?parseInt(r,10):(console.warn(`Missing attribute name '${o}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=n=>{var o;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const r=this.scrollState.index??((o=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:o.index);if(r!==void 0&&this.range){const s=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),i=Math.max(0,r-s),a=Math.min(this.options.count-1,r+s);return n>=i&&n<=a}return!0},this.measureElement=n=>{if(!n){this.elementsCache.forEach((i,a)=>{i.isConnected||(this.observer.unobserve(i),this.elementsCache.delete(a))});return}const o=this.indexFromElement(n);if(!this.isIndexInRange(o))return;const r=this.options.getItemKey(o),s=this.elementsCache.get(r);s!==n&&(s&&this.observer.unobserve(s),this.observer.observe(n),this.elementsCache.set(r,n)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(o)&&this.resizeItem(o,this.options.measureElement(n,void 0,this))},this.resizeItem=(n,o)=>{var r,s,i;if(!this.isIndexInRange(n))return;let a,l,c;const u=(r=this._singleLaneMeasurements)==null?void 0:r.flat;if(this.options.lanes===1&&u!=null)c=this.options.getItemKey(n),l=u[n*2],a=u[n*2+1];else{const p=this.measurementsCache[n];if(!p)return;c=p.key,l=p.start,a=p.size}const d=this.itemSizeCache.get(c)??a,f=o-d;if(f!==0){const p=this.options.anchorTo==="end"&&((s=this.scrollState)==null?void 0:s.behavior)!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,m=p?this.getTotalSize():0,g=this.getScrollOffset()+this.scrollAdjustments,b=!this.itemSizeCache.has(c)?l<g:l+d<=g&&this.scrollDirection!=="backward",S=((i=this.scrollState)==null?void 0:i.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[n]??{index:n,key:c,start:l,size:a,end:l+a,lane:0},f,this):b);(this.pendingMin===null||n<this.pendingMin)&&(this.pendingMin=n),this.itemSizeCache.set(c,o),this.itemSizeCacheVersion++;let C=!1;p?C=this.applyScrollAdjustment(this.getTotalSize()-m):S&&(C=this.applyScrollAdjustment(f)),this.notify(C),this._retryClampedAdjustment()}},this.getVirtualItems=Eo(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,o)=>{const r=[];for(let s=0,i=n.length;s<i;s++){const a=n[s],l=o[a];r.push(l)}return r},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{var o;const r=this.getMeasurements();if(r.length===0)return;const s=(o=this._singleLaneMeasurements)==null?void 0:o.flat,i=this.options.lanes===1&&s!=null,a=Ix(0,r.length-1,i?l=>s[l*2]:l=>Tx(r[l]).start,n);return Tx(r[a])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const n=this.scrollElement.document.documentElement;return this.options.horizontal?n.scrollWidth-this.scrollElement.innerWidth:n.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(n=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=n,this.getOffsetForAlignment=(n,o,r=0)=>{if(!this.scrollElement)return 0;const s=this.getSize(),i=this.getScrollOffset();o==="auto"&&(o=n>=i+s?"end":"start"),o==="center"?n+=(r-s)/2:o==="end"&&(n-=s);const a=this.getMaxScrollOffset();return Math.max(Math.min(a,n),0)},this.getOffsetForIndex=(n,o="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const r=this.getSize(),s=this.getScrollOffset(),i=this.measurementsCache[n];if(!i)return;if(o==="auto")if(i.end>=s+r-this.options.scrollPaddingEnd)o="end";else if(i.start<=s+this.options.scrollPaddingStart)o="start";else return[s,o];if(o==="end"&&n===this.options.count-1)return[this.getMaxScrollOffset(),o];const a=o==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,o,i.size),o]},this.scrollToOffset=(n,{align:o="start",behavior:r="auto"}={})=>{this._iosDeferredAdjustment=0;const s=this.getOffsetForAlignment(n,o),i=this.now();this.scrollState={index:null,align:o,behavior:r,startedAt:i,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollToIndex=(n,{align:o="auto",behavior:r="auto"}={})=>{this._iosDeferredAdjustment=0,n=Math.max(0,Math.min(n,this.options.count-1));const s=this.getOffsetForIndex(n,o);if(!s)return;const[i,a]=s,l=this.now();this.scrollState={index:n,align:a,behavior:r,startedAt:l,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollBy=(n,{behavior:o="auto"}={})=>{const r=this.getScrollOffset()+n,s=this.now();this.scrollState={index:null,align:"start",behavior:o,startedAt:s,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:o}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:n="auto"}={})=>{if(this.options.count>0){this.scrollToIndex(this.options.count-1,{align:"end",behavior:n});return}this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:n})},this.getTotalSize=()=>{var n,o;const r=this.getMeasurements();let s;if(r.length===0)s=this.options.paddingStart;else if(this.options.lanes===1){const i=r.length-1,a=(n=this._singleLaneMeasurements)==null?void 0:n.flat;a!=null?s=a[i*2]+a[i*2+1]:s=((o=r[i])==null?void 0:o.end)??0}else{const i=Array(this.options.lanes).fill(null);let a=r.length-1;for(;a>=0&&i.some(l=>l===null);){const l=r[a];i[l.lane]===null&&(i[l.lane]=l.end),a--}s=Math.max(...i.filter(l=>l!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{const n=[];if(this.itemSizeCache.size===0)return n;const o=this.getMeasurements();for(const r of o)r&&this.itemSizeCache.has(r.key)&&n.push({index:r.index,key:r.key,start:r.start,size:r.size,end:r.end,lane:r.lane});return n},this._scrollToOffset=(n,{adjustments:o,behavior:r})=>{this._intendedScrollOffset=n+(o??0),this.options.scrollToFn(n,{behavior:r,adjustments:o},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(t)}applyScrollAdjustment(t,n){if(t===0)return!1;if(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",t),Pc()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded))return this._iosDeferredAdjustment+=t,!1;{const o=this.getScrollOffset()+this.scrollAdjustments+t,r=this.scrollElement,s=r!==null&&("scrollHeight"in r||"document"in r)?this.getMaxScrollOffset():null;return this._clampedAdjustment=s!==null&&o>s+.5?{target:o,maxAtWrite:s}:null,this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=t,behavior:n}),this.scrollOffset!==null&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0}}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const o=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,r=o?o[0]:this.scrollState.lastTargetOffset,s=1,i=r!==this.scrollState.lastTargetOffset;if(!i&&Ex(r,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=s){this.getScrollOffset()!==r&&this._scrollToOffset(r,{adjustments:void 0,behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,i){const a=this.getSize()||600,l=Math.abs(r-this.getScrollOffset()),c=this.scrollState.behavior==="smooth"&&l>a;this.scrollState.lastTargetOffset=r,c||(this.scrollState.behavior="auto"),this._scrollToOffset(r,{adjustments:void 0,behavior:c?"smooth":"auto"})}this.scheduleScrollReconcile()}}const Ix=(e,t,n,o)=>{for(;e<=t;){const r=(e+t)/2|0,s=n(r);if(s<o)e=r+1;else if(s>o)t=r-1;else return r}return e>0?e-1:0};function fA(e,t,n){let o=0;for(;o<=t;){const r=(o+t)/2|0,s=e[r*2];if(s<n)o=r+1;else if(s>n)t=r-1;else return r}return o>0?o-1:0}function pA(e,t,n,o,r){const s=e.length-1;if(e.length<=o)return{startIndex:0,endIndex:s};if(o===1&&r!==null){const c=fA(r,s,n);let u=c;const d=n+t;for(;u<s&&r[u*2]+r[u*2+1]<d;)u++;return{startIndex:c,endIndex:u}}let a=Ix(0,s,c=>e[c].start,n),l=a;if(o===1)for(;l<s&&e[l].end<n+t;)l++;else if(o>1){const c=Array(o).fill(0);for(;l<s&&c.some(d=>d<n+t);){const d=e[l];c[d.lane]=d.end,l++}const u=Array(o).fill(n+t);for(;a>=0&&u.some(d=>d>=n);){const d=e[a];u[d.lane]=d.start,a--}a=Math.max(0,a-a%o),l=Math.min(s,l+(o-1-l%o))}return{startIndex:a,endIndex:l}}const Ic=typeof document<"u"?v.useLayoutEffect:v.useEffect;function gA({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:n="transform",...o}){const r=v.useReducer(d=>d+1,0)[1],s=v.useRef({enabled:t,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});s.current.enabled=t,s.current.mode=n;const i=v.useRef(!1),a=d=>{const f=s.current;if(!f.enabled||!f.container)return;const p=d.getTotalSize();if(p!==f.lastSize){f.lastSize=p;const m=d.options.horizontal?"width":"height";f.container.style[m]=`${p}px`}},l=d=>{const f=s.current;if(!f.enabled||!f.container)return;a(d);const p=!!d.options.horizontal,m=f.mode==="transform",g=p?"left":"top",x=d.options.scrollMargin,b=d.getVirtualItems();for(const S of b){const C=S.start-x,_=d.elementsCache.get(S.key);_&&f.lastPositions.get(_)!==C&&(f.lastPositions.set(_,C),m?_.style.transform=p?`translate3d(${C}px, 0, 0)`:`translate3d(0, ${C}px, 0)`:_.style[g]=`${C}px`)}},c={...o,onChange:(d,f)=>{var p;const m=s.current;let g=!0;if(m.enabled){l(d);const x=d.range,b=m.prevRange;g=!b||b.isScrolling!==d.isScrolling||b.startIndex!==(x==null?void 0:x.startIndex)||b.endIndex!==(x==null?void 0:x.endIndex),g&&(m.prevRange=x?{startIndex:x.startIndex,endIndex:x.endIndex,isScrolling:d.isScrolling}:null)}g&&(e&&f&&!i.current?Ye.flushSync(r):r()),(p=o.onChange)==null||p.call(o,d,f)}},[u]=v.useState(()=>{const d=new dA(c),f=d.measureElement;return d.measureElement=p=>{i.current=!0;try{f(p)}finally{i.current=!1}},Object.assign(d,{containerRef:p=>{const m=s.current;if(m.container=p,m.lastSize=null,p&&m.enabled){const g=d.getTotalSize();m.lastSize=g;const x=d.options.horizontal?"width":"height";p.style[x]=`${g}px`}}})});return u.setOptions(c),Ic(()=>u._didMount(),[]),Ic(()=>(a(u),u._willUpdate())),Ic(()=>{l(u)}),u}function hA(e){return gA({observeElementRect:rA,observeElementOffset:aA,scrollToFn:cA,...e})}const mA=48;function vA(e,t={}){const{height:n,estimateSize:o=mA,overscan:r=8}=t,[s,i]=y.useState(null),a=y.useRef(null),l=y.useCallback(g=>{const x=a.current;if(g&&x&&x!==g&&x.isConnected)throw new Error("This useTableVirtual() is already driving another table. Two tables sharing one virtualiser would fight over the scrollport and the first would stop virtualising, silently. Give each table its own useTableVirtual() and its own TableVirtualized.");a.current=g,i(b=>b===g?b:g)},[]),c=hA({count:e.length,getScrollElement:()=>s,estimateSize:()=>o,overscan:r}),u=c.getVirtualItems(),d=c.getTotalSize(),f=y.useCallback(g=>{g&&c.measureElement(g)},[c]),p=y.useCallback(g=>{var x;return((x=u[g])==null?void 0:x.index)??-1},[u]),m=u[u.length-1];return y.useMemo(()=>{var g;return{rows:u.map(x=>e[x.index]),total:e.length,indexOf:p,containerRef:a,claim:l,height:n,padStart:((g=u[0])==null?void 0:g.start)??0,padEnd:m?d-m.end:d,measure:f}},[u,e,p,l,n,m,d,f])}const Ac={oxTableBody:"_oxTableBody_8465s_2",oxTableSpacer:"_oxTableSpacer_8465s_2"},xA=1e3,Po=y.forwardRef(({className:e,children:t,draggable:n=!1,items:o=[],onReorder:r,getItemId:s,...i},a)=>{const l=PP(EP(Sc)),c=si();if(n&&c)throw new Error("A table cannot be both reorderable and virtualised. A row's position in the DOM is not its position in the list once only part of it is rendered, so dropping a row would reorder the wrong ones. Use pagination for a table whose rows can be dragged.");if(!n)return h.jsxs("tbody",{ref:a,className:G(Ac.oxTableBody,e),"data-slot":"body",...i,children:[h.jsx(Ax,{height:(c==null?void 0:c.padStart)??0}),t,h.jsx(Ax,{height:(c==null?void 0:c.padEnd)??0})]});const u=o.map((f,p)=>s?s(f,p):p),d=f=>{const{active:p,over:m}=f;if(!m||p.id===m.id)return;const g=u.indexOf(p.id),x=u.indexOf(m.id);g===-1||x===-1||r==null||r(Ec(o,g,x))};return h.jsx(DI,{sensors:l,collisionDetection:NP,onDragEnd:d,accessibility:{container:typeof document<"u"?document.body:void 0},children:h.jsx(jI,{items:u,strategy:HI,children:h.jsx("tbody",{ref:a,className:G(Ac.oxTableBody,e),"data-slot":"body",...i,children:t})})})});Po.displayName="OxTableBody";function Ax({height:e}){return e<=0?null:h.jsx("tr",{"aria-hidden":"true",className:Ac.oxTableSpacer,"data-spacer":!0,children:h.jsx("td",{colSpan:xA,children:h.jsx("div",{style:{height:`${e}px`}})})})}const xr={oxTableBulkHeader:"_oxTableBulkHeader_4seje_2",oxTableBulkHeaderBar:"_oxTableBulkHeaderBar_4seje_2",oxTableBulkHeaderFeedback:"_oxTableBulkHeaderFeedback_4seje_2",oxTableBulkHeaderText:"_oxTableBulkHeaderText_4seje_2",oxTableBulkHeaderActions:"_oxTableBulkHeaderActions_4seje_2"},Oc=y.forwardRef(({className:e,selectedCount:t=0,total:n=0,feedback:o,actions:r,...s},i)=>t<=0?null:h.jsx("div",{ref:i,className:G(xr.oxTableBulkHeader,e),"data-slot":"table-bulk-header",...s,children:h.jsxs("div",{className:xr.oxTableBulkHeaderBar,children:[h.jsx("div",{className:xr.oxTableBulkHeaderFeedback,children:o?o({selectedCount:t,total:n}):h.jsxs("span",{className:xr.oxTableBulkHeaderText,children:["Has seleccionado ",t," de ",n," elementos"]})}),h.jsx("div",{className:xr.oxTableBulkHeaderActions,children:r})]})}));Oc.displayName="OxTableBulkHeader";const Gn={oxTableCell:"_oxTableCell_1jiu2_2",oxTableCellAlignLeft:"_oxTableCellAlignLeft_1jiu2_2",oxTableCellAlignCenter:"_oxTableCellAlignCenter_1jiu2_2",oxTableCellAlignRight:"_oxTableCellAlignRight_1jiu2_2",oxTableCellFixed:"_oxTableCellFixed_1jiu2_2"},bA={left:Gn.oxTableCellAlignLeft,center:Gn.oxTableCellAlignCenter,right:Gn.oxTableCellAlignRight},Dc=y.forwardRef(({className:e,align:t="left",fixed:n,fixedOffset:o="0px",style:r,children:s,...i},a)=>h.jsx("td",{ref:a,className:G(Gn.oxTableCell,bA[t],n&&["table-cell-fixed",Gn.oxTableCellFixed],n==="left"&&["table-cell-fixed-left",Gn.oxTableCellFixedLeft],n==="right"&&["table-cell-fixed-right",Gn.oxTableCellFixedRight],e),style:n?{[n]:o,...r}:r,"data-slot":"cell",...i,children:s}));Dc.displayName="OxTableCell";const br={oxTableExpandCell:"_oxTableExpandCell_1kg3y_2",oxTableExpandCellHeader:"_oxTableExpandCellHeader_1kg3y_2",oxTableExpandButton:"_oxTableExpandButton_1kg3y_2",oxTableExpandButtonExpanded:"_oxTableExpandButtonExpanded_1kg3y_2",oxTableExpandIcon:"_oxTableExpandIcon_1kg3y_2"},Io=y.forwardRef(({className:e,expanded:t=!1,header:n=!1,onToggle:o,...r},s)=>{const i=n?"th":"td";return h.jsx(i,{ref:s,className:G(br.oxTableExpandCell,n&&br.oxTableExpandCellHeader,e),"data-slot":"expand",...r,children:!n&&h.jsx("button",{type:"button",className:G(br.oxTableExpandButton,t&&br.oxTableExpandButtonExpanded),onClick:()=>o==null?void 0:o(),children:h.jsx("svg",{className:br.oxTableExpandIcon,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:h.jsx("path",{d:"M9 18l6-6-6-6"})})})})});Io.displayName="OxTableExpandCell";const ai={oxTableHead:"_oxTableHead_1en5v_2",oxTableHeadVirtual:"_oxTableHeadVirtual_1en5v_2",oxTableHeadFloat:"_oxTableHeadFloat_1en5v_2",oxTableHeadFloatRow:"_oxTableHeadFloatRow_1en5v_2"};function Ox(e){let t=e.parentElement;for(;t;){const n=getComputedStyle(t);if(n.overflowX!=="visible"||n.overflowY!=="visible")return t;t=t.parentElement}return null}function yA(e){const t=[e,e.parentElement].find(n=>n&&parseFloat(getComputedStyle(n).borderTopLeftRadius)>0);return t?getComputedStyle(t).borderTopLeftRadius:"0px"}const Ao=y.forwardRef(({className:e,children:t,...n},o)=>{const r=si(),s=y.useRef(null),i=y.useRef(null),a=y.useRef(null),l=y.useCallback(()=>{const c=s.current,u=i.current,d=a.current,f=r==null?void 0:r.containerRef.current;if(!c||!u||!d||!f)return;const p=c.closest("table"),m=Ox(c),g=u.offsetParent??document.body;if(!p||!m)return;const x=p.getBoundingClientRect(),b=m.getBoundingClientRect(),S=f.getBoundingClientRect(),C=g.getBoundingClientRect(),_=C.left+g.clientLeft,w=C.top+g.clientTop,T=c.querySelector(":scope > tr"),E=c.querySelectorAll(":scope > tr > *");u.style.left=`${b.left-_}px`,u.style.top=`${S.top+f.clientTop-w}px`,u.style.width=`${b.width}px`,u.style.height=`${(T==null?void 0:T.getBoundingClientRect().height)??0}px`;const P=yA(f);u.style.borderTopLeftRadius=Math.abs(b.left-S.left)<2?P:"0px",u.style.borderTopRightRadius=Math.abs(b.right-S.right)<2?P:"0px",d.style.width=`${x.width}px`,d.style.transform=`translateX(${x.left-b.left}px)`,E.forEach((I,N)=>{const H=d.children[N];H&&(H.style.width=`${I.getBoundingClientRect().width}px`)})},[r]);return y.useEffect(()=>{const c=s.current,u=r==null?void 0:r.containerRef.current;if(!c||!u)return;const d=Ox(c),f=c.closest("table"),p=[u,d].filter((g,x,b)=>!!g&&b.indexOf(g)===x);p.forEach(g=>g.addEventListener("scroll",l,{passive:!0}));const m=new ResizeObserver(l);return[u,d,f].forEach(g=>{g&&m.observe(g)}),l(),()=>{p.forEach(g=>g.removeEventListener("scroll",l)),m.disconnect()}}),h.jsxs(h.Fragment,{children:[h.jsx("thead",{ref:c=>{s.current=c,typeof o=="function"?o(c):o&&(o.current=c)},className:G(ai.oxTableHead,r&&ai.oxTableHeadVirtual,e),"data-slot":"head",...n,children:h.jsx("tr",{"aria-hidden":r?"true":void 0,children:t})}),r&&h.jsx("div",{ref:i,className:ai.oxTableHeadFloat,children:h.jsx("div",{ref:a,className:ai.oxTableHeadFloatRow,children:t})})]})});Ao.displayName="OxTableHead";const Ee={oxTableHeaderCell:"_oxTableHeaderCell_1xzoa_2",oxTableHeaderCellAlignLeft:"_oxTableHeaderCellAlignLeft_1xzoa_2",oxTableHeaderCellAlignCenter:"_oxTableHeaderCellAlignCenter_1xzoa_2",oxTableHeaderCellAlignRight:"_oxTableHeaderCellAlignRight_1xzoa_2",oxTableHeaderCellSortable:"_oxTableHeaderCellSortable_1xzoa_2",oxTableHeaderCellSorted:"_oxTableHeaderCellSorted_1xzoa_2",oxTableHeaderCellResizing:"_oxTableHeaderCellResizing_1xzoa_2",oxTableHeaderCellContent:"_oxTableHeaderCellContent_1xzoa_2",oxTableHeaderCellIndicator:"_oxTableHeaderCellIndicator_1xzoa_2",oxTableHeaderCellIcon:"_oxTableHeaderCellIcon_1xzoa_2",oxTableHeaderCellIconUnsorted:"_oxTableHeaderCellIconUnsorted_1xzoa_2",oxTableHeaderCellResizer:"_oxTableHeaderCellResizer_1xzoa_2",oxTableHeaderCellResizerActive:"_oxTableHeaderCellResizerActive_1xzoa_2",oxTableHeaderCellDraggable:"_oxTableHeaderCellDraggable_1xzoa_2",oxTableHeaderCellDragging:"_oxTableHeaderCellDragging_1xzoa_2",oxTableHeaderCellDragOver:"_oxTableHeaderCellDragOver_1xzoa_2",oxTableHeaderCellFixed:"_oxTableHeaderCellFixed_1xzoa_2"},CA={left:Ee.oxTableHeaderCellAlignLeft,center:Ee.oxTableHeaderCellAlignCenter,right:Ee.oxTableHeaderCellAlignRight},Nc=y.forwardRef(({className:e,sortable:t=!1,sorted:n=!1,sortDirection:o=null,resizable:r=!1,resizing:s=!1,draggable:i=!1,align:a="left",width:l,fixed:c,fixedOffset:u="0px",onSort:d,onResizeStart:f,onColumnDrop:p,style:m,children:g,...x},b)=>{const[S,C]=y.useState(!1),[_,w]=y.useState(!1),T=()=>{t&&(d==null||d())},E=W=>{W.preventDefault(),W.stopPropagation(),f==null||f(W)},P=W=>{var q;if(!i)return;C(!0);const Y=W.currentTarget.dataset.field;Y&&((q=W.dataTransfer)==null||q.setData("text/plain",Y),W.dataTransfer.effectAllowed="move")},I=()=>{C(!1)},N=W=>{i&&(W.preventDefault(),W.dataTransfer.dropEffect="move",w(!0))},H=()=>{w(!1)},L=W=>{var Y;if(!i)return;W.preventDefault(),w(!1);const J=(Y=W.dataTransfer)==null?void 0:Y.getData("text/plain");J&&(p==null||p(J))},X={...m};return l&&(X.width=l,X.minWidth=l),c&&(X[c]=u),h.jsxs("th",{ref:b,className:G(Ee.oxTableHeaderCell,CA[a],t&&Ee.oxTableHeaderCellSortable,n&&Ee.oxTableHeaderCellSorted,s&&Ee.oxTableHeaderCellResizing,i&&Ee.oxTableHeaderCellDraggable,S&&Ee.oxTableHeaderCellDragging,_&&Ee.oxTableHeaderCellDragOver,c&&["table-header-cell-fixed",Ee.oxTableHeaderCellFixed],c==="left"&&["table-header-cell-fixed-left",Ee.oxTableHeaderCellFixedLeft],c==="right"&&["table-header-cell-fixed-right",Ee.oxTableHeaderCellFixedRight],e),style:X,draggable:i,"data-slot":"header-cell","aria-sort":n?o==="asc"?"ascending":"descending":void 0,onClick:T,onDragStart:P,onDragEnd:I,onDragOver:N,onDragLeave:H,onDrop:L,...x,children:[h.jsxs("div",{className:Ee.oxTableHeaderCellContent,children:[g,t&&h.jsx("span",{className:Ee.oxTableHeaderCellIndicator,children:n?o==="asc"?h.jsx("svg",{className:Ee.oxTableHeaderCellIcon,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:h.jsx("path",{d:"M7 14l5-5 5 5"})}):h.jsx("svg",{className:Ee.oxTableHeaderCellIcon,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:h.jsx("path",{d:"M7 10l5 5 5-5"})}):h.jsx("svg",{className:G(Ee.oxTableHeaderCellIcon,Ee.oxTableHeaderCellIconUnsorted),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:h.jsx("path",{d:"M7 15l5 5 5-5M7 9l5-5 5 5"})})})]}),r&&h.jsx("div",{className:G(Ee.oxTableHeaderCellResizer,s&&Ee.oxTableHeaderCellResizerActive),onMouseDown:E,onTouchStart:E})]})});Nc.displayName="OxTableHeaderCell";const Oo={oxTableRow:"_oxTableRow_5espm_2",oxTableRowSelected:"_oxTableRowSelected_5espm_2",oxTableRowExpanded:"_oxTableRowExpanded_5espm_2"},Dx=y.createContext(null),Do=y.forwardRef((e,t)=>{if(e.dragId!==void 0)return h.jsx(SA,{...e});const{className:n,selected:o=!1,expanded:r=!1,children:s,dragId:i,...a}=e;return h.jsx("tr",{ref:t,className:G(Oo.oxTableRow,o&&Oo.oxTableRowSelected,r&&Oo.oxTableRowExpanded,n),"data-slot":"row",...a,children:s})});Do.displayName="OxTableRow";function SA({className:e,selected:t=!1,expanded:n=!1,children:o,dragId:r,...s}){const{setNodeRef:i,setActivatorNodeRef:a,transform:l,transition:c,isDragging:u,attributes:d,listeners:f}=JI({id:r}),p={transform:fr.Transform.toString(l),transition:c,...u?{position:"relative",zIndex:2,opacity:.85}:null};return h.jsx(Dx.Provider,{value:{attributes:d,listeners:f,setActivatorNodeRef:a},children:h.jsx("tr",{ref:i,style:p,className:G(Oo.oxTableRow,t&&Oo.oxTableRowSelected,n&&Oo.oxTableRowExpanded,e),"data-slot":"row","data-dragging":u||void 0,...s,children:o})})}const kc={oxTableRowExpanded:"_oxTableRowExpanded_y3m5z_2",oxTableRowExpandedCell:"_oxTableRowExpandedCell_y3m5z_2",oxTableRowExpandedContent:"_oxTableRowExpandedContent_y3m5z_2"},No=y.forwardRef(({className:e,expanded:t=!1,colspan:n=1,children:o,...r},s)=>t?h.jsx("tr",{ref:s,className:G(kc.oxTableRowExpanded,e),"data-slot":"row-expanded",...r,children:h.jsx("td",{colSpan:n,className:kc.oxTableRowExpandedCell,children:h.jsx("div",{className:kc.oxTableRowExpandedContent,children:o})})}):null);No.displayName="OxTableRowExpanded";const yr={oxTableScrollbar:"_oxTableScrollbar_iuka8_2",oxTableScrollbarVisible:"_oxTableScrollbarVisible_iuka8_2",oxTableScrollbarThumb:"_oxTableScrollbarThumb_iuka8_2",oxTableScrollbarThumbDragging:"_oxTableScrollbarThumbDragging_iuka8_2",oxTableScrollbarNear:"_oxTableScrollbarNear_iuka8_2"},wA=900,_A=40,TA=24,Nx=12,kx=4;function Mc(e,t){e(n=>Object.keys(t).every(o=>n[o]===t[o])?n:t)}function li(){const e=si(),t=y.useRef(null),n=y.useRef(0),o=y.useRef(0),[r,s]=y.useState(!1),[i,a]=y.useState(!1),[l,c]=y.useState(!1),[u,d]=y.useState({top:0,left:0,height:0}),[f,p]=y.useState({top:0,height:0}),m=y.useCallback(()=>{s(!0),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{a(b=>(b||s(!1),b))},wA)},[]),g=y.useCallback(()=>{var N;const b=e==null?void 0:e.containerRef.current,S=t.current;if(!b||!S)return;const C=S.offsetParent??document.body,_=b.getBoundingClientRect(),w=C.getBoundingClientRect(),T=((N=b.querySelector("thead"))==null?void 0:N.getBoundingClientRect().height)??0,E=Math.max(0,b.clientHeight-T-kx*2);Mc(d,{top:_.top+b.clientTop+T+kx-(w.top+C.clientTop),left:_.left+b.clientLeft+b.clientWidth-Nx-(w.left+C.clientLeft),height:E});const P=b.scrollHeight-b.clientHeight;if(P<=0){Mc(p,{top:0,height:0});return}const I=Math.max(TA,E*(b.clientHeight/b.scrollHeight));Mc(p,{height:I,top:b.scrollTop/P*(E-I)})},[e]);y.useEffect(()=>{const b=e==null?void 0:e.containerRef.current;if(!b)return;const S=()=>{g(),m()},C=T=>{const E=b.getBoundingClientRect(),P=E.left+b.clientLeft+b.clientWidth-Nx;c(T.clientX>=P),T.clientX>E.right-_A&&(g(),m())},_=()=>c(!1);b.addEventListener("scroll",S,{passive:!0}),b.addEventListener("mousemove",C,{passive:!0}),b.addEventListener("mouseleave",_,{passive:!0});const w=new ResizeObserver(g);return w.observe(b),g(),()=>{b.removeEventListener("scroll",S),b.removeEventListener("mousemove",C),b.removeEventListener("mouseleave",_),w.disconnect(),window.clearTimeout(n.current)}});const x=b=>{const S=t.current,C=e==null?void 0:e.containerRef.current;if(!S||!C)return;b.preventDefault(),o.current=b.clientY-S.getBoundingClientRect().top-f.top,a(!0),s(!0);const _=T=>{const E=S.getBoundingClientRect(),P=u.height-f.height;if(P<=0)return;const I=T.clientY-E.top-o.current,N=Math.min(1,Math.max(0,I/P));C.scrollTop=N*(C.scrollHeight-C.clientHeight)},w=()=>{a(!1),window.removeEventListener("mousemove",_),window.removeEventListener("mouseup",w),m()};window.addEventListener("mousemove",_),window.addEventListener("mouseup",w)};return e?h.jsx("div",{ref:t,className:G(yr.oxTableScrollbar,(r||i)&&yr.oxTableScrollbarVisible,(l||i)&&yr.oxTableScrollbarNear),style:{top:`${u.top}px`,left:`${u.left}px`,height:`${u.height}px`},"aria-hidden":"true",children:f.height>0&&h.jsx("div",{className:G(yr.oxTableScrollbarThumb,i&&yr.oxTableScrollbarThumbDragging),style:{top:`${f.top}px`,height:`${f.height}px`},onMouseDown:x,onMouseEnter:()=>c(!0)})}):null}li.displayName="OxTableScrollbar";const ci={oxTableSelectCell:"_oxTableSelectCell_8h02t_2",oxTableSelectCellHeader:"_oxTableSelectCellHeader_8h02t_2",oxTableSelectCellContent:"_oxTableSelectCellContent_8h02t_2",oxTableSelectCellFixed:"_oxTableSelectCellFixed_8h02t_2"},ko=y.forwardRef(({className:e,checked:t=!1,header:n=!1,fixed:o=!1,fixedOffset:r="0px",onChange:s,style:i,...a},l)=>{const c=n?"th":"td";return h.jsx(c,{ref:l,className:G(ci.oxTableSelectCell,n&&ci.oxTableSelectCellHeader,o&&["table-select-cell-fixed",ci.oxTableSelectCellFixed],e),style:o?{left:r,...i}:i,"data-slot":"select",...a,children:h.jsx("div",{className:ci.oxTableSelectCellContent,children:h.jsx(Us,{checked:t,onCheckedChange:u=>s==null?void 0:s(u===!0)})})})});ko.displayName="OxTableSelectCell";/**
160
173
  * table-core
161
174
  *
162
175
  * Copyright (c) TanStack
@@ -165,10 +178,10 @@ Defaulting to \`null\`.`}Lt(uf,"getInvalidValueError");var Ny=Ay,ky=Dy;const df=
165
178
  * LICENSE.md file in the root directory of this source tree.
166
179
  *
167
180
  * @license MIT
168
- */function un(e,t){return typeof e=="function"?e(t):e}function nt(e,t){return n=>{t.setState(o=>({...o,[e]:un(n,o[e])}))}}function Js(e){return e instanceof Function}function yI(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function CI(e,t){const n=[],o=r=>{r.forEach(s=>{n.push(s);const i=t(s);i!=null&&i.length&&o(i)})};return o(e),n}function ae(e,t,n){let o=[],r;return s=>{let i;n.key&&n.debug&&(i=Date.now());const a=e(s);if(!(a.length!==o.length||a.some((u,d)=>o[d]!==u)))return r;o=a;let c;if(n.key&&n.debug&&(c=Date.now()),r=t(...a),n==null||n.onChange==null||n.onChange(r),n.key&&n.debug&&n!=null&&n.debug()){const u=Math.round((Date.now()-i)*100)/100,d=Math.round((Date.now()-c)*100)/100,f=d/16,p=(v,m)=>{for(v=String(v);v.length<m;)v=" "+v;return v};console.info(`%c⏱ ${p(d,5)} /${p(u,5)} ms`,`
181
+ */function fn(e,t){return typeof e=="function"?e(t):e}function st(e,t){return n=>{t.setState(o=>({...o,[e]:fn(n,o[e])}))}}function ui(e){return e instanceof Function}function EA(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function PA(e,t){const n=[],o=r=>{r.forEach(s=>{n.push(s);const i=t(s);i!=null&&i.length&&o(i)})};return o(e),n}function ae(e,t,n){let o=[],r;return s=>{let i;n.key&&n.debug&&(i=Date.now());const a=e(s);if(!(a.length!==o.length||a.some((u,d)=>o[d]!==u)))return r;o=a;let c;if(n.key&&n.debug&&(c=Date.now()),r=t(...a),n==null||n.onChange==null||n.onChange(r),n.key&&n.debug&&n!=null&&n.debug()){const u=Math.round((Date.now()-i)*100)/100,d=Math.round((Date.now()-c)*100)/100,f=d/16,p=(m,g)=>{for(m=String(m);m.length<g;)m=" "+m;return m};console.info(`%c⏱ ${p(d,5)} /${p(u,5)} ms`,`
169
182
  font-size: .6rem;
170
183
  font-weight: bold;
171
- color: hsl(${Math.max(0,Math.min(120-120*f,120))}deg 100% 31%);`,n==null?void 0:n.key)}return r}}function le(e,t,n,o){return{debug:()=>{var r;return(r=e==null?void 0:e.debugAll)!=null?r:e[t]},key:process.env.NODE_ENV==="development"&&n,onChange:o}}function wI(e,t,n,o){const r=()=>{var i;return(i=s.getValue())!=null?i:e.options.renderFallbackValue},s={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(o),renderValue:r,getContext:ae(()=>[e,n,t,s],(i,a,l,c)=>({table:i,column:a,row:l,cell:c,getValue:c.getValue,renderValue:c.renderValue}),le(e.options,"debugCells","cell.getContext"))};return e._features.forEach(i=>{i.createCell==null||i.createCell(s,n,t,e)},{}),s}function SI(e,t,n,o){var r,s;const a={...e._getDefaultColumnDef(),...t},l=a.accessorKey;let c=(r=(s=a.id)!=null?s:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?r:typeof a.header=="string"?a.header:void 0,u;if(a.accessorFn?u=a.accessorFn:l&&(l.includes(".")?u=f=>{let p=f;for(const m of l.split(".")){var v;p=(v=p)==null?void 0:v[m],process.env.NODE_ENV!=="production"&&p===void 0&&console.warn(`"${m}" in deeply nested key "${l}" returned undefined.`)}return p}:u=f=>f[a.accessorKey]),!c)throw process.env.NODE_ENV!=="production"?new Error(a.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let d={id:`${String(c)}`,accessorFn:u,parent:o,depth:n,columnDef:a,columns:[],getFlatColumns:ae(()=>[!0],()=>{var f;return[d,...(f=d.columns)==null?void 0:f.flatMap(p=>p.getFlatColumns())]},le(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:ae(()=>[e._getOrderColumnsFn()],f=>{var p;if((p=d.columns)!=null&&p.length){let v=d.columns.flatMap(m=>m.getLeafColumns());return f(v)}return[d]},le(e.options,"debugColumns","column.getLeafColumns"))};for(const f of e._features)f.createColumn==null||f.createColumn(d,e);return d}const Fe="debugHeaders";function e0(e,t,n){var o;let s={id:(o=n.id)!=null?o:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const i=[],a=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(a),i.push(l)};return a(s),i},getContext:()=>({table:e,header:s,column:t})};return e._features.forEach(i=>{i.createHeader==null||i.createHeader(s,e)}),s}const _I={createTable:e=>{e.getHeaderGroups=ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,o,r)=>{var s,i;const a=(s=o==null?void 0:o.map(d=>n.find(f=>f.id===d)).filter(Boolean))!=null?s:[],l=(i=r==null?void 0:r.map(d=>n.find(f=>f.id===d)).filter(Boolean))!=null?i:[],c=n.filter(d=>!(o!=null&&o.includes(d.id))&&!(r!=null&&r.includes(d.id)));return Qs(t,[...a,...c,...l],e)},le(e.options,Fe,"getHeaderGroups")),e.getCenterHeaderGroups=ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,o,r)=>(n=n.filter(s=>!(o!=null&&o.includes(s.id))&&!(r!=null&&r.includes(s.id))),Qs(t,n,e,"center")),le(e.options,Fe,"getCenterHeaderGroups")),e.getLeftHeaderGroups=ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,o)=>{var r;const s=(r=o==null?void 0:o.map(i=>n.find(a=>a.id===i)).filter(Boolean))!=null?r:[];return Qs(t,s,e,"left")},le(e.options,Fe,"getLeftHeaderGroups")),e.getRightHeaderGroups=ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,o)=>{var r;const s=(r=o==null?void 0:o.map(i=>n.find(a=>a.id===i)).filter(Boolean))!=null?r:[];return Qs(t,s,e,"right")},le(e.options,Fe,"getRightHeaderGroups")),e.getFooterGroups=ae(()=>[e.getHeaderGroups()],t=>[...t].reverse(),le(e.options,Fe,"getFooterGroups")),e.getLeftFooterGroups=ae(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),le(e.options,Fe,"getLeftFooterGroups")),e.getCenterFooterGroups=ae(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),le(e.options,Fe,"getCenterFooterGroups")),e.getRightFooterGroups=ae(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),le(e.options,Fe,"getRightFooterGroups")),e.getFlatHeaders=ae(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),le(e.options,Fe,"getFlatHeaders")),e.getLeftFlatHeaders=ae(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),le(e.options,Fe,"getLeftFlatHeaders")),e.getCenterFlatHeaders=ae(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),le(e.options,Fe,"getCenterFlatHeaders")),e.getRightFlatHeaders=ae(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),le(e.options,Fe,"getRightFlatHeaders")),e.getCenterLeafHeaders=ae(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),le(e.options,Fe,"getCenterLeafHeaders")),e.getLeftLeafHeaders=ae(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),le(e.options,Fe,"getLeftLeafHeaders")),e.getRightLeafHeaders=ae(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),le(e.options,Fe,"getRightLeafHeaders")),e.getLeafHeaders=ae(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,o)=>{var r,s,i,a,l,c;return[...(r=(s=t[0])==null?void 0:s.headers)!=null?r:[],...(i=(a=n[0])==null?void 0:a.headers)!=null?i:[],...(l=(c=o[0])==null?void 0:c.headers)!=null?l:[]].map(u=>u.getLeafHeaders()).flat()},le(e.options,Fe,"getLeafHeaders"))}};function Qs(e,t,n,o){var r,s;let i=0;const a=function(f,p){p===void 0&&(p=1),i=Math.max(i,p),f.filter(v=>v.getIsVisible()).forEach(v=>{var m;(m=v.columns)!=null&&m.length&&a(v.columns,p+1)},0)};a(e);let l=[];const c=(f,p)=>{const v={depth:p,id:[o,`${p}`].filter(Boolean).join("_"),headers:[]},m=[];f.forEach(x=>{const y=[...m].reverse()[0],S=x.column.depth===v.depth;let C,_=!1;if(S&&x.column.parent?C=x.column.parent:(C=x.column,_=!0),y&&(y==null?void 0:y.column)===C)y.subHeaders.push(x);else{const w=e0(n,C,{id:[o,p,C.id,x==null?void 0:x.id].filter(Boolean).join("_"),isPlaceholder:_,placeholderId:_?`${m.filter(T=>T.column===C).length}`:void 0,depth:p,index:m.length});w.subHeaders.push(x),m.push(w)}v.headers.push(x),x.headerGroup=v}),l.push(v),p>0&&c(m,p-1)},u=t.map((f,p)=>e0(n,f,{depth:i,index:p}));c(u,i-1),l.reverse();const d=f=>f.filter(v=>v.column.getIsVisible()).map(v=>{let m=0,x=0,y=[0];v.subHeaders&&v.subHeaders.length?(y=[],d(v.subHeaders).forEach(C=>{let{colSpan:_,rowSpan:w}=C;m+=_,y.push(w)})):m=1;const S=Math.min(...y);return x=x+S,v.colSpan=m,v.rowSpan=x,{colSpan:m,rowSpan:x}});return d((r=(s=l[0])==null?void 0:s.headers)!=null?r:[]),l}const TI=(e,t,n,o,r,s,i)=>{let a={id:t,index:o,original:n,depth:r,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(a._valuesCache.hasOwnProperty(l))return a._valuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return a._valuesCache[l]=c.accessorFn(a.original,o),a._valuesCache[l]},getUniqueValues:l=>{if(a._uniqueValuesCache.hasOwnProperty(l))return a._uniqueValuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return c.columnDef.getUniqueValues?(a._uniqueValuesCache[l]=c.columnDef.getUniqueValues(a.original,o),a._uniqueValuesCache[l]):(a._uniqueValuesCache[l]=[a.getValue(l)],a._uniqueValuesCache[l])},renderValue:l=>{var c;return(c=a.getValue(l))!=null?c:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>CI(a.subRows,l=>l.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let l=[],c=a;for(;;){const u=c.getParentRow();if(!u)break;l.push(u),c=u}return l.reverse()},getAllCells:ae(()=>[e.getAllLeafColumns()],l=>l.map(c=>wI(e,a,c,c.id)),le(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:ae(()=>[a.getAllCells()],l=>l.reduce((c,u)=>(c[u.column.id]=u,c),{}),le(e.options,"debugRows","getAllCellsByColumnId"))};for(let l=0;l<e._features.length;l++){const c=e._features[l];c==null||c.createRow==null||c.createRow(a,e)}return a},EI={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},t0=(e,t,n)=>{var o,r;const s=n==null||(o=n.toString())==null?void 0:o.toLowerCase();return!!(!((r=e.getValue(t))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(s))};t0.autoRemove=e=>yt(e);const n0=(e,t,n)=>{var o;return!!(!((o=e.getValue(t))==null||(o=o.toString())==null)&&o.includes(n))};n0.autoRemove=e=>yt(e);const o0=(e,t,n)=>{var o;return((o=e.getValue(t))==null||(o=o.toString())==null?void 0:o.toLowerCase())===(n==null?void 0:n.toLowerCase())};o0.autoRemove=e=>yt(e);const r0=(e,t,n)=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(n)};r0.autoRemove=e=>yt(e);const s0=(e,t,n)=>!n.some(o=>{var r;return!((r=e.getValue(t))!=null&&r.includes(o))});s0.autoRemove=e=>yt(e)||!(e!=null&&e.length);const i0=(e,t,n)=>n.some(o=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(o)});i0.autoRemove=e=>yt(e)||!(e!=null&&e.length);const a0=(e,t,n)=>e.getValue(t)===n;a0.autoRemove=e=>yt(e);const l0=(e,t,n)=>e.getValue(t)==n;l0.autoRemove=e=>yt(e);const wc=(e,t,n)=>{let[o,r]=n;const s=e.getValue(t);return s>=o&&s<=r};wc.resolveFilterValue=e=>{let[t,n]=e,o=typeof t!="number"?parseFloat(t):t,r=typeof n!="number"?parseFloat(n):n,s=t===null||Number.isNaN(o)?-1/0:o,i=n===null||Number.isNaN(r)?1/0:r;if(s>i){const a=s;s=i,i=a}return[s,i]},wc.autoRemove=e=>yt(e)||yt(e[0])&&yt(e[1]);const Xt={includesString:t0,includesStringSensitive:n0,equalsString:o0,arrIncludes:r0,arrIncludesAll:s0,arrIncludesSome:i0,equals:a0,weakEquals:l0,inNumberRange:wc};function yt(e){return e==null||e===""}const PI={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:nt("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=n==null?void 0:n.getValue(e.id);return typeof o=="string"?Xt.includesString:typeof o=="number"?Xt.inNumberRange:typeof o=="boolean"||o!==null&&typeof o=="object"?Xt.equals:Array.isArray(o)?Xt.arrIncludes:Xt.weakEquals},e.getFilterFn=()=>{var n,o;return Js(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(o=t.options.filterFns)==null?void 0:o[e.columnDef.filterFn])!=null?n:Xt[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,o,r;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((o=t.options.enableColumnFilters)!=null?o:!0)&&((r=t.options.enableFilters)!=null?r:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(o=>o.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,o;return(n=(o=t.getState().columnFilters)==null?void 0:o.findIndex(r=>r.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(o=>{const r=e.getFilterFn(),s=o==null?void 0:o.find(u=>u.id===e.id),i=un(n,s?s.value:void 0);if(c0(r,i,e)){var a;return(a=o==null?void 0:o.filter(u=>u.id!==e.id))!=null?a:[]}const l={id:e.id,value:i};if(s){var c;return(c=o==null?void 0:o.map(u=>u.id===e.id?l:u))!=null?c:[]}return o!=null&&o.length?[...o,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),o=r=>{var s;return(s=un(t,r))==null?void 0:s.filter(i=>{const a=n.find(l=>l.id===i.id);if(a){const l=a.getFilterFn();if(c0(l,i.value,a))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(o)},e.resetColumnFilters=t=>{var n,o;e.setColumnFilters(t?[]:(n=(o=e.initialState)==null?void 0:o.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function c0(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const Sc={sum:(e,t,n)=>n.reduce((o,r)=>{const s=r.getValue(e);return o+(typeof s=="number"?s:0)},0),min:(e,t,n)=>{let o;return n.forEach(r=>{const s=r.getValue(e);s!=null&&(o>s||o===void 0&&s>=s)&&(o=s)}),o},max:(e,t,n)=>{let o;return n.forEach(r=>{const s=r.getValue(e);s!=null&&(o<s||o===void 0&&s>=s)&&(o=s)}),o},extent:(e,t,n)=>{let o,r;return n.forEach(s=>{const i=s.getValue(e);i!=null&&(o===void 0?i>=i&&(o=r=i):(o>i&&(o=i),r<i&&(r=i)))}),[o,r]},mean:(e,t)=>{let n=0,o=0;if(t.forEach(r=>{let s=r.getValue(e);s!=null&&(s=+s)>=s&&(++n,o+=s)}),n)return o/n},median:(e,t)=>{if(!t.length)return;const n=t.map(s=>s.getValue(e));if(!yI(n))return;if(n.length===1)return n[0];const o=Math.floor(n.length/2),r=n.sort((s,i)=>s-i);return n.length%2!==0?r[o]:(r[o-1]+r[o])/2},unique:(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(n=>n.getValue(e))).size,count:(e,t)=>t.length},II={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:nt("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(o=>o!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,o;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((o=t.options.enableGrouping)!=null?o:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=n==null?void 0:n.getValue(e.id);if(typeof o=="number")return Sc.sum;if(Object.prototype.toString.call(o)==="[object Date]")return Sc.extent},e.getAggregationFn=()=>{var n,o;if(!e)throw new Error;return Js(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(o=t.options.aggregationFns)==null?void 0:o[e.columnDef.aggregationFn])!=null?n:Sc[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,o;e.setGrouping(t?[]:(n=(o=e.initialState)==null?void 0:o.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const o=t.getColumn(n);return o!=null&&o.columnDef.getGroupingValue?(e._groupingValuesCache[n]=o.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,o)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var r;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((r=n.subRows)!=null&&r.length)}}};function AI(e,t,n){if(!(t!=null&&t.length)||!n)return e;const o=e.filter(s=>!t.includes(s.id));return n==="remove"?o:[...t.map(s=>e.find(i=>i.id===s)).filter(Boolean),...o]}const OI={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:nt("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=ae(n=>[hr(t,n)],n=>n.findIndex(o=>o.id===e.id),le(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var o;return((o=hr(t,n)[0])==null?void 0:o.id)===e.id},e.getIsLastColumn=n=>{var o;const r=hr(t,n);return((o=r[r.length-1])==null?void 0:o.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=ae(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,o)=>r=>{let s=[];if(!(t!=null&&t.length))s=r;else{const i=[...t],a=[...r];for(;a.length&&i.length;){const l=i.shift(),c=a.findIndex(u=>u.id===l);c>-1&&s.push(a.splice(c,1)[0])}s=[...s,...a]}return AI(s,n,o)},le(e.options,"debugTable","_getOrderColumnsFn"))}},_c=()=>({left:[],right:[]}),DI={getInitialState:e=>({columnPinning:_c(),...e}),getDefaultOptions:e=>({onColumnPinningChange:nt("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const o=e.getLeafColumns().map(r=>r.id).filter(Boolean);t.setColumnPinning(r=>{var s,i;if(n==="right"){var a,l;return{left:((a=r==null?void 0:r.left)!=null?a:[]).filter(d=>!(o!=null&&o.includes(d))),right:[...((l=r==null?void 0:r.right)!=null?l:[]).filter(d=>!(o!=null&&o.includes(d))),...o]}}if(n==="left"){var c,u;return{left:[...((c=r==null?void 0:r.left)!=null?c:[]).filter(d=>!(o!=null&&o.includes(d))),...o],right:((u=r==null?void 0:r.right)!=null?u:[]).filter(d=>!(o!=null&&o.includes(d)))}}return{left:((s=r==null?void 0:r.left)!=null?s:[]).filter(d=>!(o!=null&&o.includes(d))),right:((i=r==null?void 0:r.right)!=null?i:[]).filter(d=>!(o!=null&&o.includes(d)))}})},e.getCanPin=()=>e.getLeafColumns().some(o=>{var r,s,i;return((r=o.columnDef.enablePinning)!=null?r:!0)&&((s=(i=t.options.enableColumnPinning)!=null?i:t.options.enablePinning)!=null?s:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(a=>a.id),{left:o,right:r}=t.getState().columnPinning,s=n.some(a=>o==null?void 0:o.includes(a)),i=n.some(a=>r==null?void 0:r.includes(a));return s?"left":i?"right":!1},e.getPinnedIndex=()=>{var n,o;const r=e.getIsPinned();return r?(n=(o=t.getState().columnPinning)==null||(o=o[r])==null?void 0:o.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=ae(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,o,r)=>{const s=[...o??[],...r??[]];return n.filter(i=>!s.includes(i.column.id))},le(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=ae(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,o)=>(o??[]).map(s=>n.find(i=>i.column.id===s)).filter(Boolean).map(s=>({...s,position:"left"})),le(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=ae(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,o)=>(o??[]).map(s=>n.find(i=>i.column.id===s)).filter(Boolean).map(s=>({...s,position:"right"})),le(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,o;return e.setColumnPinning(t?_c():(n=(o=e.initialState)==null?void 0:o.columnPinning)!=null?n:_c())},e.getIsSomeColumnsPinned=t=>{var n;const o=e.getState().columnPinning;if(!t){var r,s;return!!((r=o.left)!=null&&r.length||(s=o.right)!=null&&s.length)}return!!((n=o[t])!=null&&n.length)},e.getLeftLeafColumns=ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(o=>t.find(r=>r.id===o)).filter(Boolean),le(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(o=>t.find(r=>r.id===o)).filter(Boolean),le(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,o)=>{const r=[...n??[],...o??[]];return t.filter(s=>!r.includes(s.id))},le(e.options,"debugColumns","getCenterLeafColumns"))}};function NI(e){return e||(typeof document<"u"?document:null)}const ei={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Tc=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),kI={getDefaultColumnDef:()=>ei,getInitialState:e=>({columnSizing:{},columnSizingInfo:Tc(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:nt("columnSizing",e),onColumnSizingInfoChange:nt("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,o,r;const s=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:ei.minSize,(o=s??e.columnDef.size)!=null?o:ei.size),(r=e.columnDef.maxSize)!=null?r:ei.maxSize)},e.getStart=ae(n=>[n,hr(t,n),t.getState().columnSizing],(n,o)=>o.slice(0,e.getIndex(n)).reduce((r,s)=>r+s.getSize(),0),le(t.options,"debugColumns","getStart")),e.getAfter=ae(n=>[n,hr(t,n),t.getState().columnSizing],(n,o)=>o.slice(e.getIndex(n)+1).reduce((r,s)=>r+s.getSize(),0),le(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:o,...r}=n;return r})},e.getCanResize=()=>{var n,o;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((o=t.options.enableColumnResizing)!=null?o:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const o=r=>{if(r.subHeaders.length)r.subHeaders.forEach(o);else{var s;n+=(s=r.column.getSize())!=null?s:0}};return o(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const o=t.getColumn(e.column.id),r=o==null?void 0:o.getCanResize();return s=>{if(!o||!r||(s.persist==null||s.persist(),Ec(s)&&s.touches&&s.touches.length>1))return;const i=e.getSize(),a=e?e.getLeafHeaders().map(y=>[y.column.id,y.column.getSize()]):[[o.id,o.getSize()]],l=Ec(s)?Math.round(s.touches[0].clientX):s.clientX,c={},u=(y,S)=>{typeof S=="number"&&(t.setColumnSizingInfo(C=>{var _,w;const T=t.options.columnResizeDirection==="rtl"?-1:1,E=(S-((_=C==null?void 0:C.startOffset)!=null?_:0))*T,P=Math.max(E/((w=C==null?void 0:C.startSize)!=null?w:0),-.999999);return C.columnSizingStart.forEach(A=>{let[R,B]=A;c[R]=Math.round(Math.max(B+B*P,0)*100)/100}),{...C,deltaOffset:E,deltaPercentage:P}}),(t.options.columnResizeMode==="onChange"||y==="end")&&t.setColumnSizing(C=>({...C,...c})))},d=y=>u("move",y),f=y=>{u("end",y),t.setColumnSizingInfo(S=>({...S,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},p=NI(n),v={moveHandler:y=>d(y.clientX),upHandler:y=>{p==null||p.removeEventListener("mousemove",v.moveHandler),p==null||p.removeEventListener("mouseup",v.upHandler),f(y.clientX)}},m={moveHandler:y=>(y.cancelable&&(y.preventDefault(),y.stopPropagation()),d(y.touches[0].clientX),!1),upHandler:y=>{var S;p==null||p.removeEventListener("touchmove",m.moveHandler),p==null||p.removeEventListener("touchend",m.upHandler),y.cancelable&&(y.preventDefault(),y.stopPropagation()),f((S=y.touches[0])==null?void 0:S.clientX)}},x=$I()?{passive:!1}:!1;Ec(s)?(p==null||p.addEventListener("touchmove",m.moveHandler,x),p==null||p.addEventListener("touchend",m.upHandler,x)):(p==null||p.addEventListener("mousemove",v.moveHandler,x),p==null||p.addEventListener("mouseup",v.upHandler,x)),t.setColumnSizingInfo(y=>({...y,startOffset:l,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:o.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?Tc():(n=e.initialState.columnSizingInfo)!=null?n:Tc())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((o,r)=>o+r.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((o,r)=>o+r.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((o,r)=>o+r.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((o,r)=>o+r.getSize(),0))!=null?t:0}}};let ti=null;function $I(){if(typeof ti=="boolean")return ti;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return ti=e,ti}function Ec(e){return e.type==="touchstart"}const MI={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:nt("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(o=>({...o,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,o;const r=e.columns;return(n=r.length?r.some(s=>s.getIsVisible()):(o=t.getState().columnVisibility)==null?void 0:o[e.id])!=null?n:!0},e.getCanHide=()=>{var n,o;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((o=t.options.enableHiding)!=null?o:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=ae(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(o=>o.column.getIsVisible()),le(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=ae(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,o,r)=>[...n,...o,...r],le(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(n,o)=>ae(()=>[o(),o().filter(r=>r.getIsVisible()).map(r=>r.id).join("_")],r=>r.filter(s=>s.getIsVisible==null?void 0:s.getIsVisible()),le(e.options,"debugColumns",n));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var o;e.setColumnVisibility(n?{}:(o=e.initialState.columnVisibility)!=null?o:{})},e.toggleAllColumnsVisible=n=>{var o;n=(o=n)!=null?o:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((r,s)=>({...r,[s.id]:n||!(s.getCanHide!=null&&s.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var o;e.toggleAllColumnsVisible((o=n.target)==null?void 0:o.checked)}}};function hr(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const RI={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},LI={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:nt("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const o=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof o=="string"||typeof o=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,o,r,s;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((o=t.options.enableGlobalFilter)!=null?o:!0)&&((r=t.options.enableFilters)!=null?r:!0)&&((s=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?s:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Xt.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:o}=e.options;return Js(o)?o:o==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[o])!=null?t:Xt[o]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},FI={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:nt("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var o,r;if(!t){e._queue(()=>{t=!0});return}if((o=(r=e.options.autoResetAll)!=null?r:e.options.autoResetExpanded)!=null?o:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=o=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(o),e.toggleAllRowsExpanded=o=>{o??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=o=>{var r,s;e.setExpanded(o?{}:(r=(s=e.initialState)==null?void 0:s.expanded)!=null?r:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(o=>o.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>o=>{o.persist==null||o.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const o=e.getState().expanded;return o===!0||Object.values(o).some(Boolean)},e.getIsAllRowsExpanded=()=>{const o=e.getState().expanded;return typeof o=="boolean"?o===!0:!(!Object.keys(o).length||e.getRowModel().flatRows.some(r=>!r.getIsExpanded()))},e.getExpandedDepth=()=>{let o=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(s=>{const i=s.split(".");o=Math.max(o,i.length)}),o},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(o=>{var r;const s=o===!0?!0:!!(o!=null&&o[e.id]);let i={};if(o===!0?Object.keys(t.getRowModel().rowsById).forEach(a=>{i[a]=!0}):i=o,n=(r=n)!=null?r:!s,!s&&n)return{...i,[e.id]:!0};if(s&&!n){const{[e.id]:a,...l}=i;return l}return o})},e.getIsExpanded=()=>{var n;const o=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:o===!0||o!=null&&o[e.id])},e.getCanExpand=()=>{var n,o,r;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((o=t.options.enableExpanding)!=null?o:!0)&&!!((r=e.subRows)!=null&&r.length)},e.getIsAllParentsExpanded=()=>{let n=!0,o=e;for(;n&&o.parentId;)o=t.getRow(o.parentId,!0),n=o.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Pc=0,Ic=10,Ac=()=>({pageIndex:Pc,pageSize:Ic}),zI={getInitialState:e=>({...e,pagination:{...Ac(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:nt("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var o,r;if(!t){e._queue(()=>{t=!0});return}if((o=(r=e.options.autoResetAll)!=null?r:e.options.autoResetPageIndex)!=null?o:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=o=>{const r=s=>un(o,s);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(r)},e.resetPagination=o=>{var r;e.setPagination(o?Ac():(r=e.initialState.pagination)!=null?r:Ac())},e.setPageIndex=o=>{e.setPagination(r=>{let s=un(o,r.pageIndex);const i=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return s=Math.max(0,Math.min(s,i)),{...r,pageIndex:s}})},e.resetPageIndex=o=>{var r,s;e.setPageIndex(o?Pc:(r=(s=e.initialState)==null||(s=s.pagination)==null?void 0:s.pageIndex)!=null?r:Pc)},e.resetPageSize=o=>{var r,s;e.setPageSize(o?Ic:(r=(s=e.initialState)==null||(s=s.pagination)==null?void 0:s.pageSize)!=null?r:Ic)},e.setPageSize=o=>{e.setPagination(r=>{const s=Math.max(1,un(o,r.pageSize)),i=r.pageSize*r.pageIndex,a=Math.floor(i/s);return{...r,pageIndex:a,pageSize:s}})},e.setPageCount=o=>e.setPagination(r=>{var s;let i=un(o,(s=e.options.pageCount)!=null?s:-1);return typeof i=="number"&&(i=Math.max(-1,i)),{...r,pageCount:i}}),e.getPageOptions=ae(()=>[e.getPageCount()],o=>{let r=[];return o&&o>0&&(r=[...new Array(o)].fill(null).map((s,i)=>i)),r},le(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:o}=e.getState().pagination,r=e.getPageCount();return r===-1?!0:r===0?!1:o<r-1},e.previousPage=()=>e.setPageIndex(o=>o-1),e.nextPage=()=>e.setPageIndex(o=>o+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var o;return(o=e.options.pageCount)!=null?o:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var o;return(o=e.options.rowCount)!=null?o:e.getPrePaginationRowModel().rows.length}}},Oc=()=>({top:[],bottom:[]}),VI={getInitialState:e=>({rowPinning:Oc(),...e}),getDefaultOptions:e=>({onRowPinningChange:nt("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,o,r)=>{const s=o?e.getLeafRows().map(l=>{let{id:c}=l;return c}):[],i=r?e.getParentRows().map(l=>{let{id:c}=l;return c}):[],a=new Set([...i,e.id,...s]);t.setRowPinning(l=>{var c,u;if(n==="bottom"){var d,f;return{top:((d=l==null?void 0:l.top)!=null?d:[]).filter(m=>!(a!=null&&a.has(m))),bottom:[...((f=l==null?void 0:l.bottom)!=null?f:[]).filter(m=>!(a!=null&&a.has(m))),...Array.from(a)]}}if(n==="top"){var p,v;return{top:[...((p=l==null?void 0:l.top)!=null?p:[]).filter(m=>!(a!=null&&a.has(m))),...Array.from(a)],bottom:((v=l==null?void 0:l.bottom)!=null?v:[]).filter(m=>!(a!=null&&a.has(m)))}}return{top:((c=l==null?void 0:l.top)!=null?c:[]).filter(m=>!(a!=null&&a.has(m))),bottom:((u=l==null?void 0:l.bottom)!=null?u:[]).filter(m=>!(a!=null&&a.has(m)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:o,enablePinning:r}=t.options;return typeof o=="function"?o(e):(n=o??r)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:o,bottom:r}=t.getState().rowPinning,s=n.some(a=>o==null?void 0:o.includes(a)),i=n.some(a=>r==null?void 0:r.includes(a));return s?"top":i?"bottom":!1},e.getPinnedIndex=()=>{var n,o;const r=e.getIsPinned();if(!r)return-1;const s=(n=r==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(i=>{let{id:a}=i;return a});return(o=s==null?void 0:s.indexOf(e.id))!=null?o:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,o;return e.setRowPinning(t?Oc():(n=(o=e.initialState)==null?void 0:o.rowPinning)!=null?n:Oc())},e.getIsSomeRowsPinned=t=>{var n;const o=e.getState().rowPinning;if(!t){var r,s;return!!((r=o.top)!=null&&r.length||(s=o.bottom)!=null&&s.length)}return!!((n=o[t])!=null&&n.length)},e._getPinnedRows=(t,n,o)=>{var r;return((r=e.options.keepPinnedRows)==null||r?(n??[]).map(i=>{const a=e.getRow(i,!0);return a.getIsAllParentsExpanded()?a:null}):(n??[]).map(i=>t.find(a=>a.id===i))).filter(Boolean).map(i=>({...i,position:o}))},e.getTopRows=ae(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),le(e.options,"debugRows","getTopRows")),e.getBottomRows=ae(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),le(e.options,"debugRows","getBottomRows")),e.getCenterRows=ae(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,o)=>{const r=new Set([...n??[],...o??[]]);return t.filter(s=>!r.has(s.id))},le(e.options,"debugRows","getCenterRows"))}},HI={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:nt("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const o={...n},r=e.getPreGroupedRowModel().flatRows;return t?r.forEach(s=>{s.getCanSelect()&&(o[s.id]=!0)}):r.forEach(s=>{delete o[s.id]}),o})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const o=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),r={...n};return e.getRowModel().rows.forEach(s=>{Dc(r,s.id,o,!0,e)}),r}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=ae(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Nc(e,n):{rows:[],flatRows:[],rowsById:{}},le(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=ae(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Nc(e,n):{rows:[],flatRows:[],rowsById:{}},le(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=ae(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Nc(e,n):{rows:[],flatRows:[],rowsById:{}},le(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let o=!!(t.length&&Object.keys(n).length);return o&&t.some(r=>r.getCanSelect()&&!n[r.id])&&(o=!1),o},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(r=>r.getCanSelect()),{rowSelection:n}=e.getState();let o=!!t.length;return o&&t.some(r=>!n[r.id])&&(o=!1),o},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,o)=>{const r=e.getIsSelected();t.setRowSelection(s=>{var i;if(n=typeof n<"u"?n:!r,e.getCanSelect()&&r===n)return s;const a={...s};return Dc(a,e.id,n,(i=o==null?void 0:o.selectChildren)!=null?i:!0,t),a})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return kc(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return $c(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return $c(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return o=>{var r;n&&e.toggleSelected((r=o.target)==null?void 0:r.checked)}}}},Dc=(e,t,n,o,r)=>{var s;const i=r.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach(a=>delete e[a]),i.getCanSelect()&&(e[t]=!0)):delete e[t],o&&(s=i.subRows)!=null&&s.length&&i.getCanSelectSubRows()&&i.subRows.forEach(a=>Dc(e,a.id,n,o,r))};function Nc(e,t){const n=e.getState().rowSelection,o=[],r={},s=function(i,a){return i.map(l=>{var c;const u=kc(l,n);if(u&&(o.push(l),r[l.id]=l),(c=l.subRows)!=null&&c.length&&(l={...l,subRows:s(l.subRows)}),u)return l}).filter(Boolean)};return{rows:s(t.rows),flatRows:o,rowsById:r}}function kc(e,t){var n;return(n=t[e.id])!=null?n:!1}function $c(e,t,n){var o;if(!((o=e.subRows)!=null&&o.length))return!1;let r=!0,s=!1;return e.subRows.forEach(i=>{if(!(s&&!r)&&(i.getCanSelect()&&(kc(i,t)?s=!0:r=!1),i.subRows&&i.subRows.length)){const a=$c(i,t);a==="all"?s=!0:(a==="some"&&(s=!0),r=!1)}}),r?"all":s?"some":!1}const Mc=/([0-9]+)/gm,BI=(e,t,n)=>u0(dn(e.getValue(n)).toLowerCase(),dn(t.getValue(n)).toLowerCase()),GI=(e,t,n)=>u0(dn(e.getValue(n)),dn(t.getValue(n))),jI=(e,t,n)=>Rc(dn(e.getValue(n)).toLowerCase(),dn(t.getValue(n)).toLowerCase()),UI=(e,t,n)=>Rc(dn(e.getValue(n)),dn(t.getValue(n))),WI=(e,t,n)=>{const o=e.getValue(n),r=t.getValue(n);return o>r?1:o<r?-1:0},qI=(e,t,n)=>Rc(e.getValue(n),t.getValue(n));function Rc(e,t){return e===t?0:e>t?1:-1}function dn(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function u0(e,t){const n=e.split(Mc).filter(Boolean),o=t.split(Mc).filter(Boolean);for(;n.length&&o.length;){const r=n.shift(),s=o.shift(),i=parseInt(r,10),a=parseInt(s,10),l=[i,a].sort();if(isNaN(l[0])){if(r>s)return 1;if(s>r)return-1;continue}if(isNaN(l[1]))return isNaN(i)?-1:1;if(i>a)return 1;if(a>i)return-1}return n.length-o.length}const mr={alphanumeric:BI,alphanumericCaseSensitive:GI,text:jI,textCaseSensitive:UI,datetime:WI,basic:qI},KI=[_I,MI,OI,DI,EI,PI,RI,LI,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:nt("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let o=!1;for(const r of n){const s=r==null?void 0:r.getValue(e.id);if(Object.prototype.toString.call(s)==="[object Date]")return mr.datetime;if(typeof s=="string"&&(o=!0,s.split(Mc).length>1))return mr.alphanumeric}return o?mr.text:mr.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,o;if(!e)throw new Error;return Js(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(o=t.options.sortingFns)==null?void 0:o[e.columnDef.sortingFn])!=null?n:mr[e.columnDef.sortingFn]},e.toggleSorting=(n,o)=>{const r=e.getNextSortingOrder(),s=typeof n<"u"&&n!==null;t.setSorting(i=>{const a=i==null?void 0:i.find(p=>p.id===e.id),l=i==null?void 0:i.findIndex(p=>p.id===e.id);let c=[],u,d=s?n:r==="desc";if(i!=null&&i.length&&e.getCanMultiSort()&&o?a?u="toggle":u="add":i!=null&&i.length&&l!==i.length-1?u="replace":a?u="toggle":u="replace",u==="toggle"&&(s||r||(u="remove")),u==="add"){var f;c=[...i,{id:e.id,desc:d}],c.splice(0,c.length-((f=t.options.maxMultiSortColCount)!=null?f:Number.MAX_SAFE_INTEGER))}else u==="toggle"?c=i.map(p=>p.id===e.id?{...p,desc:d}:p):u==="remove"?c=i.filter(p=>p.id!==e.id):c=[{id:e.id,desc:d}];return c})},e.getFirstSortDir=()=>{var n,o;return((n=(o=e.columnDef.sortDescFirst)!=null?o:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var o,r;const s=e.getFirstSortDir(),i=e.getIsSorted();return i?i!==s&&((o=t.options.enableSortingRemoval)==null||o)&&(!(n&&(r=t.options.enableMultiRemove)!=null)||r)?!1:i==="desc"?"asc":"desc":s},e.getCanSort=()=>{var n,o;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((o=t.options.enableSorting)!=null?o:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,o;return(n=(o=e.columnDef.enableMultiSort)!=null?o:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const o=(n=t.getState().sorting)==null?void 0:n.find(r=>r.id===e.id);return o?o.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,o;return(n=(o=t.getState().sorting)==null?void 0:o.findIndex(r=>r.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(o=>o.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return o=>{n&&(o.persist==null||o.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(o):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,o;e.setSorting(t?[]:(n=(o=e.initialState)==null?void 0:o.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},II,FI,zI,VI,HI,kI];function XI(e){var t,n;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const o=[...KI,...(t=e._features)!=null?t:[]];let r={_features:o};const s=r._features.reduce((f,p)=>Object.assign(f,p.getDefaultOptions==null?void 0:p.getDefaultOptions(r)),{}),i=f=>r.options.mergeOptions?r.options.mergeOptions(s,f):{...s,...f};let l={...{},...(n=e.initialState)!=null?n:{}};r._features.forEach(f=>{var p;l=(p=f.getInitialState==null?void 0:f.getInitialState(l))!=null?p:l});const c=[];let u=!1;const d={_features:o,options:{...s,...e},initialState:l,_queue:f=>{c.push(f),u||(u=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();u=!1}).catch(p=>setTimeout(()=>{throw p})))},reset:()=>{r.setState(r.initialState)},setOptions:f=>{const p=un(f,r.options);r.options=i(p)},getState:()=>r.options.state,setState:f=>{r.options.onStateChange==null||r.options.onStateChange(f)},_getRowId:(f,p,v)=>{var m;return(m=r.options.getRowId==null?void 0:r.options.getRowId(f,p,v))!=null?m:`${v?[v.id,p].join("."):p}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(f,p)=>{let v=(p?r.getPrePaginationRowModel():r.getRowModel()).rowsById[f];if(!v&&(v=r.getCoreRowModel().rowsById[f],!v))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${f}`):new Error;return v},_getDefaultColumnDef:ae(()=>[r.options.defaultColumn],f=>{var p;return f=(p=f)!=null?p:{},{header:v=>{const m=v.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:v=>{var m,x;return(m=(x=v.renderValue())==null||x.toString==null?void 0:x.toString())!=null?m:null},...r._features.reduce((v,m)=>Object.assign(v,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...f}},le(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>r.options.columns,getAllColumns:ae(()=>[r._getColumnDefs()],f=>{const p=function(v,m,x){return x===void 0&&(x=0),v.map(y=>{const S=SI(r,y,x,m),C=y;return S.columns=C.columns?p(C.columns,S,x+1):[],S})};return p(f)},le(e,"debugColumns","getAllColumns")),getAllFlatColumns:ae(()=>[r.getAllColumns()],f=>f.flatMap(p=>p.getFlatColumns()),le(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:ae(()=>[r.getAllFlatColumns()],f=>f.reduce((p,v)=>(p[v.id]=v,p),{}),le(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:ae(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(f,p)=>{let v=f.flatMap(m=>m.getLeafColumns());return p(v)},le(e,"debugColumns","getAllLeafColumns")),getColumn:f=>{const p=r._getAllFlatColumnsById()[f];return process.env.NODE_ENV!=="production"&&!p&&console.error(`[Table] Column with id '${f}' does not exist.`),p}};Object.assign(r,d);for(let f=0;f<r._features.length;f++){const p=r._features[f];p==null||p.createTable==null||p.createTable(r)}return r}function YI(){return e=>ae(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},o=function(r,s,i){s===void 0&&(s=0);const a=[];for(let c=0;c<r.length;c++){const u=TI(e,e._getRowId(r[c],c,i),r[c],c,s,void 0,i==null?void 0:i.id);if(n.flatRows.push(u),n.rowsById[u.id]=u,a.push(u),e.options.getSubRows){var l;u.originalSubRows=e.options.getSubRows(r[c],c),(l=u.originalSubRows)!=null&&l.length&&(u.subRows=o(u.originalSubRows,s+1,u))}}return a};return n.rows=o(t),n},le(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function ZI(e){const t=[],n=o=>{var r;t.push(o),(r=o.subRows)!=null&&r.length&&o.getIsExpanded()&&o.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function JI(e){return t=>ae(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(n,o)=>{if(!o.rows.length)return o;const{pageSize:r,pageIndex:s}=n;let{rows:i,flatRows:a,rowsById:l}=o;const c=r*s,u=c+r;i=i.slice(c,u);let d;t.options.paginateExpandedRows?d={rows:i,flatRows:a,rowsById:l}:d=ZI({rows:i,flatRows:a,rowsById:l}),d.flatRows=[];const f=p=>{d.flatRows.push(p),p.subRows.length&&p.subRows.forEach(f)};return d.rows.forEach(f),d},le(t.options,"debugTable","getPaginationRowModel"))}/**
184
+ color: hsl(${Math.max(0,Math.min(120-120*f,120))}deg 100% 31%);`,n==null?void 0:n.key)}return r}}function le(e,t,n,o){return{debug:()=>{var r;return(r=e==null?void 0:e.debugAll)!=null?r:e[t]},key:process.env.NODE_ENV==="development"&&n,onChange:o}}function IA(e,t,n,o){const r=()=>{var i;return(i=s.getValue())!=null?i:e.options.renderFallbackValue},s={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(o),renderValue:r,getContext:ae(()=>[e,n,t,s],(i,a,l,c)=>({table:i,column:a,row:l,cell:c,getValue:c.getValue,renderValue:c.renderValue}),le(e.options,"debugCells","cell.getContext"))};return e._features.forEach(i=>{i.createCell==null||i.createCell(s,n,t,e)},{}),s}function AA(e,t,n,o){var r,s;const a={...e._getDefaultColumnDef(),...t},l=a.accessorKey;let c=(r=(s=a.id)!=null?s:l?typeof String.prototype.replaceAll=="function"?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)!=null?r:typeof a.header=="string"?a.header:void 0,u;if(a.accessorFn?u=a.accessorFn:l&&(l.includes(".")?u=f=>{let p=f;for(const g of l.split(".")){var m;p=(m=p)==null?void 0:m[g],process.env.NODE_ENV!=="production"&&p===void 0&&console.warn(`"${g}" in deeply nested key "${l}" returned undefined.`)}return p}:u=f=>f[a.accessorKey]),!c)throw process.env.NODE_ENV!=="production"?new Error(a.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let d={id:`${String(c)}`,accessorFn:u,parent:o,depth:n,columnDef:a,columns:[],getFlatColumns:ae(()=>[!0],()=>{var f;return[d,...(f=d.columns)==null?void 0:f.flatMap(p=>p.getFlatColumns())]},le(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:ae(()=>[e._getOrderColumnsFn()],f=>{var p;if((p=d.columns)!=null&&p.length){let m=d.columns.flatMap(g=>g.getLeafColumns());return f(m)}return[d]},le(e.options,"debugColumns","column.getLeafColumns"))};for(const f of e._features)f.createColumn==null||f.createColumn(d,e);return d}const Be="debugHeaders";function Mx(e,t,n){var o;let s={id:(o=n.id)!=null?o:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const i=[],a=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(a),i.push(l)};return a(s),i},getContext:()=>({table:e,header:s,column:t})};return e._features.forEach(i=>{i.createHeader==null||i.createHeader(s,e)}),s}const OA={createTable:e=>{e.getHeaderGroups=ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,o,r)=>{var s,i;const a=(s=o==null?void 0:o.map(d=>n.find(f=>f.id===d)).filter(Boolean))!=null?s:[],l=(i=r==null?void 0:r.map(d=>n.find(f=>f.id===d)).filter(Boolean))!=null?i:[],c=n.filter(d=>!(o!=null&&o.includes(d.id))&&!(r!=null&&r.includes(d.id)));return di(t,[...a,...c,...l],e)},le(e.options,Be,"getHeaderGroups")),e.getCenterHeaderGroups=ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,o,r)=>(n=n.filter(s=>!(o!=null&&o.includes(s.id))&&!(r!=null&&r.includes(s.id))),di(t,n,e,"center")),le(e.options,Be,"getCenterHeaderGroups")),e.getLeftHeaderGroups=ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,o)=>{var r;const s=(r=o==null?void 0:o.map(i=>n.find(a=>a.id===i)).filter(Boolean))!=null?r:[];return di(t,s,e,"left")},le(e.options,Be,"getLeftHeaderGroups")),e.getRightHeaderGroups=ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,o)=>{var r;const s=(r=o==null?void 0:o.map(i=>n.find(a=>a.id===i)).filter(Boolean))!=null?r:[];return di(t,s,e,"right")},le(e.options,Be,"getRightHeaderGroups")),e.getFooterGroups=ae(()=>[e.getHeaderGroups()],t=>[...t].reverse(),le(e.options,Be,"getFooterGroups")),e.getLeftFooterGroups=ae(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),le(e.options,Be,"getLeftFooterGroups")),e.getCenterFooterGroups=ae(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),le(e.options,Be,"getCenterFooterGroups")),e.getRightFooterGroups=ae(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),le(e.options,Be,"getRightFooterGroups")),e.getFlatHeaders=ae(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),le(e.options,Be,"getFlatHeaders")),e.getLeftFlatHeaders=ae(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),le(e.options,Be,"getLeftFlatHeaders")),e.getCenterFlatHeaders=ae(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),le(e.options,Be,"getCenterFlatHeaders")),e.getRightFlatHeaders=ae(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),le(e.options,Be,"getRightFlatHeaders")),e.getCenterLeafHeaders=ae(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),le(e.options,Be,"getCenterLeafHeaders")),e.getLeftLeafHeaders=ae(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),le(e.options,Be,"getLeftLeafHeaders")),e.getRightLeafHeaders=ae(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var o;return!((o=n.subHeaders)!=null&&o.length)}),le(e.options,Be,"getRightLeafHeaders")),e.getLeafHeaders=ae(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,o)=>{var r,s,i,a,l,c;return[...(r=(s=t[0])==null?void 0:s.headers)!=null?r:[],...(i=(a=n[0])==null?void 0:a.headers)!=null?i:[],...(l=(c=o[0])==null?void 0:c.headers)!=null?l:[]].map(u=>u.getLeafHeaders()).flat()},le(e.options,Be,"getLeafHeaders"))}};function di(e,t,n,o){var r,s;let i=0;const a=function(f,p){p===void 0&&(p=1),i=Math.max(i,p),f.filter(m=>m.getIsVisible()).forEach(m=>{var g;(g=m.columns)!=null&&g.length&&a(m.columns,p+1)},0)};a(e);let l=[];const c=(f,p)=>{const m={depth:p,id:[o,`${p}`].filter(Boolean).join("_"),headers:[]},g=[];f.forEach(x=>{const b=[...g].reverse()[0],S=x.column.depth===m.depth;let C,_=!1;if(S&&x.column.parent?C=x.column.parent:(C=x.column,_=!0),b&&(b==null?void 0:b.column)===C)b.subHeaders.push(x);else{const w=Mx(n,C,{id:[o,p,C.id,x==null?void 0:x.id].filter(Boolean).join("_"),isPlaceholder:_,placeholderId:_?`${g.filter(T=>T.column===C).length}`:void 0,depth:p,index:g.length});w.subHeaders.push(x),g.push(w)}m.headers.push(x),x.headerGroup=m}),l.push(m),p>0&&c(g,p-1)},u=t.map((f,p)=>Mx(n,f,{depth:i,index:p}));c(u,i-1),l.reverse();const d=f=>f.filter(m=>m.column.getIsVisible()).map(m=>{let g=0,x=0,b=[0];m.subHeaders&&m.subHeaders.length?(b=[],d(m.subHeaders).forEach(C=>{let{colSpan:_,rowSpan:w}=C;g+=_,b.push(w)})):g=1;const S=Math.min(...b);return x=x+S,m.colSpan=g,m.rowSpan=x,{colSpan:g,rowSpan:x}});return d((r=(s=l[0])==null?void 0:s.headers)!=null?r:[]),l}const DA=(e,t,n,o,r,s,i)=>{let a={id:t,index:o,original:n,depth:r,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(a._valuesCache.hasOwnProperty(l))return a._valuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return a._valuesCache[l]=c.accessorFn(a.original,o),a._valuesCache[l]},getUniqueValues:l=>{if(a._uniqueValuesCache.hasOwnProperty(l))return a._uniqueValuesCache[l];const c=e.getColumn(l);if(c!=null&&c.accessorFn)return c.columnDef.getUniqueValues?(a._uniqueValuesCache[l]=c.columnDef.getUniqueValues(a.original,o),a._uniqueValuesCache[l]):(a._uniqueValuesCache[l]=[a.getValue(l)],a._uniqueValuesCache[l])},renderValue:l=>{var c;return(c=a.getValue(l))!=null?c:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>PA(a.subRows,l=>l.subRows),getParentRow:()=>a.parentId?e.getRow(a.parentId,!0):void 0,getParentRows:()=>{let l=[],c=a;for(;;){const u=c.getParentRow();if(!u)break;l.push(u),c=u}return l.reverse()},getAllCells:ae(()=>[e.getAllLeafColumns()],l=>l.map(c=>IA(e,a,c,c.id)),le(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:ae(()=>[a.getAllCells()],l=>l.reduce((c,u)=>(c[u.column.id]=u,c),{}),le(e.options,"debugRows","getAllCellsByColumnId"))};for(let l=0;l<e._features.length;l++){const c=e._features[l];c==null||c.createRow==null||c.createRow(a,e)}return a},NA={createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},$x=(e,t,n)=>{var o,r;const s=n==null||(o=n.toString())==null?void 0:o.toLowerCase();return!!(!((r=e.getValue(t))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(s))};$x.autoRemove=e=>wt(e);const Rx=(e,t,n)=>{var o;return!!(!((o=e.getValue(t))==null||(o=o.toString())==null)&&o.includes(n))};Rx.autoRemove=e=>wt(e);const Lx=(e,t,n)=>{var o;return((o=e.getValue(t))==null||(o=o.toString())==null?void 0:o.toLowerCase())===(n==null?void 0:n.toLowerCase())};Lx.autoRemove=e=>wt(e);const Fx=(e,t,n)=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(n)};Fx.autoRemove=e=>wt(e);const zx=(e,t,n)=>!n.some(o=>{var r;return!((r=e.getValue(t))!=null&&r.includes(o))});zx.autoRemove=e=>wt(e)||!(e!=null&&e.length);const Vx=(e,t,n)=>n.some(o=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(o)});Vx.autoRemove=e=>wt(e)||!(e!=null&&e.length);const Bx=(e,t,n)=>e.getValue(t)===n;Bx.autoRemove=e=>wt(e);const Hx=(e,t,n)=>e.getValue(t)==n;Hx.autoRemove=e=>wt(e);const $c=(e,t,n)=>{let[o,r]=n;const s=e.getValue(t);return s>=o&&s<=r};$c.resolveFilterValue=e=>{let[t,n]=e,o=typeof t!="number"?parseFloat(t):t,r=typeof n!="number"?parseFloat(n):n,s=t===null||Number.isNaN(o)?-1/0:o,i=n===null||Number.isNaN(r)?1/0:r;if(s>i){const a=s;s=i,i=a}return[s,i]},$c.autoRemove=e=>wt(e)||wt(e[0])&&wt(e[1]);const Jt={includesString:$x,includesStringSensitive:Rx,equalsString:Lx,arrIncludes:Fx,arrIncludesAll:zx,arrIncludesSome:Vx,equals:Bx,weakEquals:Hx,inNumberRange:$c};function wt(e){return e==null||e===""}const kA={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:st("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=n==null?void 0:n.getValue(e.id);return typeof o=="string"?Jt.includesString:typeof o=="number"?Jt.inNumberRange:typeof o=="boolean"||o!==null&&typeof o=="object"?Jt.equals:Array.isArray(o)?Jt.arrIncludes:Jt.weakEquals},e.getFilterFn=()=>{var n,o;return ui(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(o=t.options.filterFns)==null?void 0:o[e.columnDef.filterFn])!=null?n:Jt[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,o,r;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((o=t.options.enableColumnFilters)!=null?o:!0)&&((r=t.options.enableFilters)!=null?r:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(o=>o.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,o;return(n=(o=t.getState().columnFilters)==null?void 0:o.findIndex(r=>r.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(o=>{const r=e.getFilterFn(),s=o==null?void 0:o.find(u=>u.id===e.id),i=fn(n,s?s.value:void 0);if(Gx(r,i,e)){var a;return(a=o==null?void 0:o.filter(u=>u.id!==e.id))!=null?a:[]}const l={id:e.id,value:i};if(s){var c;return(c=o==null?void 0:o.map(u=>u.id===e.id?l:u))!=null?c:[]}return o!=null&&o.length?[...o,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),o=r=>{var s;return(s=fn(t,r))==null?void 0:s.filter(i=>{const a=n.find(l=>l.id===i.id);if(a){const l=a.getFilterFn();if(Gx(l,i.value,a))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(o)},e.resetColumnFilters=t=>{var n,o;e.setColumnFilters(t?[]:(n=(o=e.initialState)==null?void 0:o.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function Gx(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const Rc={sum:(e,t,n)=>n.reduce((o,r)=>{const s=r.getValue(e);return o+(typeof s=="number"?s:0)},0),min:(e,t,n)=>{let o;return n.forEach(r=>{const s=r.getValue(e);s!=null&&(o>s||o===void 0&&s>=s)&&(o=s)}),o},max:(e,t,n)=>{let o;return n.forEach(r=>{const s=r.getValue(e);s!=null&&(o<s||o===void 0&&s>=s)&&(o=s)}),o},extent:(e,t,n)=>{let o,r;return n.forEach(s=>{const i=s.getValue(e);i!=null&&(o===void 0?i>=i&&(o=r=i):(o>i&&(o=i),r<i&&(r=i)))}),[o,r]},mean:(e,t)=>{let n=0,o=0;if(t.forEach(r=>{let s=r.getValue(e);s!=null&&(s=+s)>=s&&(++n,o+=s)}),n)return o/n},median:(e,t)=>{if(!t.length)return;const n=t.map(s=>s.getValue(e));if(!EA(n))return;if(n.length===1)return n[0];const o=Math.floor(n.length/2),r=n.sort((s,i)=>s-i);return n.length%2!==0?r[o]:(r[o-1]+r[o])/2},unique:(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(n=>n.getValue(e))).size,count:(e,t)=>t.length},MA={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:st("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(o=>o!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,o;return((n=e.columnDef.enableGrouping)!=null?n:!0)&&((o=t.options.enableGrouping)!=null?o:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],o=n==null?void 0:n.getValue(e.id);if(typeof o=="number")return Rc.sum;if(Object.prototype.toString.call(o)==="[object Date]")return Rc.extent},e.getAggregationFn=()=>{var n,o;if(!e)throw new Error;return ui(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(o=t.options.aggregationFns)==null?void 0:o[e.columnDef.aggregationFn])!=null?n:Rc[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,o;e.setGrouping(t?[]:(n=(o=e.initialState)==null?void 0:o.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const o=t.getColumn(n);return o!=null&&o.columnDef.getGroupingValue?(e._groupingValuesCache[n]=o.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,o)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var r;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((r=n.subRows)!=null&&r.length)}}};function $A(e,t,n){if(!(t!=null&&t.length)||!n)return e;const o=e.filter(s=>!t.includes(s.id));return n==="remove"?o:[...t.map(s=>e.find(i=>i.id===s)).filter(Boolean),...o]}const RA={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:st("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=ae(n=>[Cr(t,n)],n=>n.findIndex(o=>o.id===e.id),le(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var o;return((o=Cr(t,n)[0])==null?void 0:o.id)===e.id},e.getIsLastColumn=n=>{var o;const r=Cr(t,n);return((o=r[r.length-1])==null?void 0:o.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=ae(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,o)=>r=>{let s=[];if(!(t!=null&&t.length))s=r;else{const i=[...t],a=[...r];for(;a.length&&i.length;){const l=i.shift(),c=a.findIndex(u=>u.id===l);c>-1&&s.push(a.splice(c,1)[0])}s=[...s,...a]}return $A(s,n,o)},le(e.options,"debugTable","_getOrderColumnsFn"))}},Lc=()=>({left:[],right:[]}),LA={getInitialState:e=>({columnPinning:Lc(),...e}),getDefaultOptions:e=>({onColumnPinningChange:st("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const o=e.getLeafColumns().map(r=>r.id).filter(Boolean);t.setColumnPinning(r=>{var s,i;if(n==="right"){var a,l;return{left:((a=r==null?void 0:r.left)!=null?a:[]).filter(d=>!(o!=null&&o.includes(d))),right:[...((l=r==null?void 0:r.right)!=null?l:[]).filter(d=>!(o!=null&&o.includes(d))),...o]}}if(n==="left"){var c,u;return{left:[...((c=r==null?void 0:r.left)!=null?c:[]).filter(d=>!(o!=null&&o.includes(d))),...o],right:((u=r==null?void 0:r.right)!=null?u:[]).filter(d=>!(o!=null&&o.includes(d)))}}return{left:((s=r==null?void 0:r.left)!=null?s:[]).filter(d=>!(o!=null&&o.includes(d))),right:((i=r==null?void 0:r.right)!=null?i:[]).filter(d=>!(o!=null&&o.includes(d)))}})},e.getCanPin=()=>e.getLeafColumns().some(o=>{var r,s,i;return((r=o.columnDef.enablePinning)!=null?r:!0)&&((s=(i=t.options.enableColumnPinning)!=null?i:t.options.enablePinning)!=null?s:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(a=>a.id),{left:o,right:r}=t.getState().columnPinning,s=n.some(a=>o==null?void 0:o.includes(a)),i=n.some(a=>r==null?void 0:r.includes(a));return s?"left":i?"right":!1},e.getPinnedIndex=()=>{var n,o;const r=e.getIsPinned();return r?(n=(o=t.getState().columnPinning)==null||(o=o[r])==null?void 0:o.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=ae(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,o,r)=>{const s=[...o??[],...r??[]];return n.filter(i=>!s.includes(i.column.id))},le(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=ae(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(n,o)=>(o??[]).map(s=>n.find(i=>i.column.id===s)).filter(Boolean).map(s=>({...s,position:"left"})),le(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=ae(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,o)=>(o??[]).map(s=>n.find(i=>i.column.id===s)).filter(Boolean).map(s=>({...s,position:"right"})),le(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,o;return e.setColumnPinning(t?Lc():(n=(o=e.initialState)==null?void 0:o.columnPinning)!=null?n:Lc())},e.getIsSomeColumnsPinned=t=>{var n;const o=e.getState().columnPinning;if(!t){var r,s;return!!((r=o.left)!=null&&r.length||(s=o.right)!=null&&s.length)}return!!((n=o[t])!=null&&n.length)},e.getLeftLeafColumns=ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(o=>t.find(r=>r.id===o)).filter(Boolean),le(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(o=>t.find(r=>r.id===o)).filter(Boolean),le(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,o)=>{const r=[...n??[],...o??[]];return t.filter(s=>!r.includes(s.id))},le(e.options,"debugColumns","getCenterLeafColumns"))}};function FA(e){return e||(typeof document<"u"?document:null)}const fi={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Fc=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),zA={getDefaultColumnDef:()=>fi,getInitialState:e=>({columnSizing:{},columnSizingInfo:Fc(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:st("columnSizing",e),onColumnSizingInfoChange:st("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,o,r;const s=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:fi.minSize,(o=s??e.columnDef.size)!=null?o:fi.size),(r=e.columnDef.maxSize)!=null?r:fi.maxSize)},e.getStart=ae(n=>[n,Cr(t,n),t.getState().columnSizing],(n,o)=>o.slice(0,e.getIndex(n)).reduce((r,s)=>r+s.getSize(),0),le(t.options,"debugColumns","getStart")),e.getAfter=ae(n=>[n,Cr(t,n),t.getState().columnSizing],(n,o)=>o.slice(e.getIndex(n)+1).reduce((r,s)=>r+s.getSize(),0),le(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:o,...r}=n;return r})},e.getCanResize=()=>{var n,o;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((o=t.options.enableColumnResizing)!=null?o:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const o=r=>{if(r.subHeaders.length)r.subHeaders.forEach(o);else{var s;n+=(s=r.column.getSize())!=null?s:0}};return o(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=n=>{const o=t.getColumn(e.column.id),r=o==null?void 0:o.getCanResize();return s=>{if(!o||!r||(s.persist==null||s.persist(),zc(s)&&s.touches&&s.touches.length>1))return;const i=e.getSize(),a=e?e.getLeafHeaders().map(b=>[b.column.id,b.column.getSize()]):[[o.id,o.getSize()]],l=zc(s)?Math.round(s.touches[0].clientX):s.clientX,c={},u=(b,S)=>{typeof S=="number"&&(t.setColumnSizingInfo(C=>{var _,w;const T=t.options.columnResizeDirection==="rtl"?-1:1,E=(S-((_=C==null?void 0:C.startOffset)!=null?_:0))*T,P=Math.max(E/((w=C==null?void 0:C.startSize)!=null?w:0),-.999999);return C.columnSizingStart.forEach(I=>{let[N,H]=I;c[N]=Math.round(Math.max(H+H*P,0)*100)/100}),{...C,deltaOffset:E,deltaPercentage:P}}),(t.options.columnResizeMode==="onChange"||b==="end")&&t.setColumnSizing(C=>({...C,...c})))},d=b=>u("move",b),f=b=>{u("end",b),t.setColumnSizingInfo(S=>({...S,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},p=FA(n),m={moveHandler:b=>d(b.clientX),upHandler:b=>{p==null||p.removeEventListener("mousemove",m.moveHandler),p==null||p.removeEventListener("mouseup",m.upHandler),f(b.clientX)}},g={moveHandler:b=>(b.cancelable&&(b.preventDefault(),b.stopPropagation()),d(b.touches[0].clientX),!1),upHandler:b=>{var S;p==null||p.removeEventListener("touchmove",g.moveHandler),p==null||p.removeEventListener("touchend",g.upHandler),b.cancelable&&(b.preventDefault(),b.stopPropagation()),f((S=b.touches[0])==null?void 0:S.clientX)}},x=VA()?{passive:!1}:!1;zc(s)?(p==null||p.addEventListener("touchmove",g.moveHandler,x),p==null||p.addEventListener("touchend",g.upHandler,x)):(p==null||p.addEventListener("mousemove",m.moveHandler,x),p==null||p.addEventListener("mouseup",m.upHandler,x)),t.setColumnSizingInfo(b=>({...b,startOffset:l,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:o.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?Fc():(n=e.initialState.columnSizingInfo)!=null?n:Fc())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((o,r)=>o+r.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((o,r)=>o+r.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((o,r)=>o+r.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((o,r)=>o+r.getSize(),0))!=null?t:0}}};let pi=null;function VA(){if(typeof pi=="boolean")return pi;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return pi=e,pi}function zc(e){return e.type==="touchstart"}const BA={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:st("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(o=>({...o,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,o;const r=e.columns;return(n=r.length?r.some(s=>s.getIsVisible()):(o=t.getState().columnVisibility)==null?void 0:o[e.id])!=null?n:!0},e.getCanHide=()=>{var n,o;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((o=t.options.enableHiding)!=null?o:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=ae(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(o=>o.column.getIsVisible()),le(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=ae(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,o,r)=>[...n,...o,...r],le(t.options,"debugRows","getVisibleCells"))},createTable:e=>{const t=(n,o)=>ae(()=>[o(),o().filter(r=>r.getIsVisible()).map(r=>r.id).join("_")],r=>r.filter(s=>s.getIsVisible==null?void 0:s.getIsVisible()),le(e.options,"debugColumns",n));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var o;e.setColumnVisibility(n?{}:(o=e.initialState.columnVisibility)!=null?o:{})},e.toggleAllColumnsVisible=n=>{var o;n=(o=n)!=null?o:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((r,s)=>({...r,[s.id]:n||!(s.getCanHide!=null&&s.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var o;e.toggleAllColumnsVisible((o=n.target)==null?void 0:o.checked)}}};function Cr(e,t){return t?t==="center"?e.getCenterVisibleLeafColumns():t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const HA={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},GA={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:st("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const o=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof o=="string"||typeof o=="number"}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,o,r,s;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((o=t.options.enableGlobalFilter)!=null?o:!0)&&((r=t.options.enableFilters)!=null?r:!0)&&((s=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?s:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Jt.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:o}=e.options;return ui(o)?o:o==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[o])!=null?t:Jt[o]},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},jA={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:st("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var o,r;if(!t){e._queue(()=>{t=!0});return}if((o=(r=e.options.autoResetAll)!=null?r:e.options.autoResetExpanded)!=null?o:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=o=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(o),e.toggleAllRowsExpanded=o=>{o??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=o=>{var r,s;e.setExpanded(o?{}:(r=(s=e.initialState)==null?void 0:s.expanded)!=null?r:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(o=>o.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>o=>{o.persist==null||o.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const o=e.getState().expanded;return o===!0||Object.values(o).some(Boolean)},e.getIsAllRowsExpanded=()=>{const o=e.getState().expanded;return typeof o=="boolean"?o===!0:!(!Object.keys(o).length||e.getRowModel().flatRows.some(r=>!r.getIsExpanded()))},e.getExpandedDepth=()=>{let o=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(s=>{const i=s.split(".");o=Math.max(o,i.length)}),o},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(o=>{var r;const s=o===!0?!0:!!(o!=null&&o[e.id]);let i={};if(o===!0?Object.keys(t.getRowModel().rowsById).forEach(a=>{i[a]=!0}):i=o,n=(r=n)!=null?r:!s,!s&&n)return{...i,[e.id]:!0};if(s&&!n){const{[e.id]:a,...l}=i;return l}return o})},e.getIsExpanded=()=>{var n;const o=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:o===!0||o!=null&&o[e.id])},e.getCanExpand=()=>{var n,o,r;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((o=t.options.enableExpanding)!=null?o:!0)&&!!((r=e.subRows)!=null&&r.length)},e.getIsAllParentsExpanded=()=>{let n=!0,o=e;for(;n&&o.parentId;)o=t.getRow(o.parentId,!0),n=o.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Vc=0,Bc=10,Hc=()=>({pageIndex:Vc,pageSize:Bc}),WA={getInitialState:e=>({...e,pagination:{...Hc(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:st("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var o,r;if(!t){e._queue(()=>{t=!0});return}if((o=(r=e.options.autoResetAll)!=null?r:e.options.autoResetPageIndex)!=null?o:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=o=>{const r=s=>fn(o,s);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(r)},e.resetPagination=o=>{var r;e.setPagination(o?Hc():(r=e.initialState.pagination)!=null?r:Hc())},e.setPageIndex=o=>{e.setPagination(r=>{let s=fn(o,r.pageIndex);const i=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return s=Math.max(0,Math.min(s,i)),{...r,pageIndex:s}})},e.resetPageIndex=o=>{var r,s;e.setPageIndex(o?Vc:(r=(s=e.initialState)==null||(s=s.pagination)==null?void 0:s.pageIndex)!=null?r:Vc)},e.resetPageSize=o=>{var r,s;e.setPageSize(o?Bc:(r=(s=e.initialState)==null||(s=s.pagination)==null?void 0:s.pageSize)!=null?r:Bc)},e.setPageSize=o=>{e.setPagination(r=>{const s=Math.max(1,fn(o,r.pageSize)),i=r.pageSize*r.pageIndex,a=Math.floor(i/s);return{...r,pageIndex:a,pageSize:s}})},e.setPageCount=o=>e.setPagination(r=>{var s;let i=fn(o,(s=e.options.pageCount)!=null?s:-1);return typeof i=="number"&&(i=Math.max(-1,i)),{...r,pageCount:i}}),e.getPageOptions=ae(()=>[e.getPageCount()],o=>{let r=[];return o&&o>0&&(r=[...new Array(o)].fill(null).map((s,i)=>i)),r},le(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:o}=e.getState().pagination,r=e.getPageCount();return r===-1?!0:r===0?!1:o<r-1},e.previousPage=()=>e.setPageIndex(o=>o-1),e.nextPage=()=>e.setPageIndex(o=>o+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var o;return(o=e.options.pageCount)!=null?o:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var o;return(o=e.options.rowCount)!=null?o:e.getPrePaginationRowModel().rows.length}}},Gc=()=>({top:[],bottom:[]}),UA={getInitialState:e=>({rowPinning:Gc(),...e}),getDefaultOptions:e=>({onRowPinningChange:st("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,o,r)=>{const s=o?e.getLeafRows().map(l=>{let{id:c}=l;return c}):[],i=r?e.getParentRows().map(l=>{let{id:c}=l;return c}):[],a=new Set([...i,e.id,...s]);t.setRowPinning(l=>{var c,u;if(n==="bottom"){var d,f;return{top:((d=l==null?void 0:l.top)!=null?d:[]).filter(g=>!(a!=null&&a.has(g))),bottom:[...((f=l==null?void 0:l.bottom)!=null?f:[]).filter(g=>!(a!=null&&a.has(g))),...Array.from(a)]}}if(n==="top"){var p,m;return{top:[...((p=l==null?void 0:l.top)!=null?p:[]).filter(g=>!(a!=null&&a.has(g))),...Array.from(a)],bottom:((m=l==null?void 0:l.bottom)!=null?m:[]).filter(g=>!(a!=null&&a.has(g)))}}return{top:((c=l==null?void 0:l.top)!=null?c:[]).filter(g=>!(a!=null&&a.has(g))),bottom:((u=l==null?void 0:l.bottom)!=null?u:[]).filter(g=>!(a!=null&&a.has(g)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:o,enablePinning:r}=t.options;return typeof o=="function"?o(e):(n=o??r)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:o,bottom:r}=t.getState().rowPinning,s=n.some(a=>o==null?void 0:o.includes(a)),i=n.some(a=>r==null?void 0:r.includes(a));return s?"top":i?"bottom":!1},e.getPinnedIndex=()=>{var n,o;const r=e.getIsPinned();if(!r)return-1;const s=(n=r==="top"?t.getTopRows():t.getBottomRows())==null?void 0:n.map(i=>{let{id:a}=i;return a});return(o=s==null?void 0:s.indexOf(e.id))!=null?o:-1}},createTable:e=>{e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,o;return e.setRowPinning(t?Gc():(n=(o=e.initialState)==null?void 0:o.rowPinning)!=null?n:Gc())},e.getIsSomeRowsPinned=t=>{var n;const o=e.getState().rowPinning;if(!t){var r,s;return!!((r=o.top)!=null&&r.length||(s=o.bottom)!=null&&s.length)}return!!((n=o[t])!=null&&n.length)},e._getPinnedRows=(t,n,o)=>{var r;return((r=e.options.keepPinnedRows)==null||r?(n??[]).map(i=>{const a=e.getRow(i,!0);return a.getIsAllParentsExpanded()?a:null}):(n??[]).map(i=>t.find(a=>a.id===i))).filter(Boolean).map(i=>({...i,position:o}))},e.getTopRows=ae(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),le(e.options,"debugRows","getTopRows")),e.getBottomRows=ae(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),le(e.options,"debugRows","getBottomRows")),e.getCenterRows=ae(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,o)=>{const r=new Set([...n??[],...o??[]]);return t.filter(s=>!r.has(s.id))},le(e.options,"debugRows","getCenterRows"))}},qA={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:st("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const o={...n},r=e.getPreGroupedRowModel().flatRows;return t?r.forEach(s=>{s.getCanSelect()&&(o[s.id]=!0)}):r.forEach(s=>{delete o[s.id]}),o})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const o=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),r={...n};return e.getRowModel().rows.forEach(s=>{jc(r,s.id,o,!0,e)}),r}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=ae(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?Wc(e,n):{rows:[],flatRows:[],rowsById:{}},le(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=ae(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?Wc(e,n):{rows:[],flatRows:[],rowsById:{}},le(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=ae(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?Wc(e,n):{rows:[],flatRows:[],rowsById:{}},le(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let o=!!(t.length&&Object.keys(n).length);return o&&t.some(r=>r.getCanSelect()&&!n[r.id])&&(o=!1),o},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(r=>r.getCanSelect()),{rowSelection:n}=e.getState();let o=!!t.length;return o&&t.some(r=>!n[r.id])&&(o=!1),o},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,o)=>{const r=e.getIsSelected();t.setRowSelection(s=>{var i;if(n=typeof n<"u"?n:!r,e.getCanSelect()&&r===n)return s;const a={...s};return jc(a,e.id,n,(i=o==null?void 0:o.selectChildren)!=null?i:!0,t),a})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Uc(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return qc(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return qc(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return o=>{var r;n&&e.toggleSelected((r=o.target)==null?void 0:r.checked)}}}},jc=(e,t,n,o,r)=>{var s;const i=r.getRow(t,!0);n?(i.getCanMultiSelect()||Object.keys(e).forEach(a=>delete e[a]),i.getCanSelect()&&(e[t]=!0)):delete e[t],o&&(s=i.subRows)!=null&&s.length&&i.getCanSelectSubRows()&&i.subRows.forEach(a=>jc(e,a.id,n,o,r))};function Wc(e,t){const n=e.getState().rowSelection,o=[],r={},s=function(i,a){return i.map(l=>{var c;const u=Uc(l,n);if(u&&(o.push(l),r[l.id]=l),(c=l.subRows)!=null&&c.length&&(l={...l,subRows:s(l.subRows)}),u)return l}).filter(Boolean)};return{rows:s(t.rows),flatRows:o,rowsById:r}}function Uc(e,t){var n;return(n=t[e.id])!=null?n:!1}function qc(e,t,n){var o;if(!((o=e.subRows)!=null&&o.length))return!1;let r=!0,s=!1;return e.subRows.forEach(i=>{if(!(s&&!r)&&(i.getCanSelect()&&(Uc(i,t)?s=!0:r=!1),i.subRows&&i.subRows.length)){const a=qc(i,t);a==="all"?s=!0:(a==="some"&&(s=!0),r=!1)}}),r?"all":s?"some":!1}const Kc=/([0-9]+)/gm,KA=(e,t,n)=>jx(pn(e.getValue(n)).toLowerCase(),pn(t.getValue(n)).toLowerCase()),XA=(e,t,n)=>jx(pn(e.getValue(n)),pn(t.getValue(n))),YA=(e,t,n)=>Xc(pn(e.getValue(n)).toLowerCase(),pn(t.getValue(n)).toLowerCase()),JA=(e,t,n)=>Xc(pn(e.getValue(n)),pn(t.getValue(n))),ZA=(e,t,n)=>{const o=e.getValue(n),r=t.getValue(n);return o>r?1:o<r?-1:0},QA=(e,t,n)=>Xc(e.getValue(n),t.getValue(n));function Xc(e,t){return e===t?0:e>t?1:-1}function pn(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function jx(e,t){const n=e.split(Kc).filter(Boolean),o=t.split(Kc).filter(Boolean);for(;n.length&&o.length;){const r=n.shift(),s=o.shift(),i=parseInt(r,10),a=parseInt(s,10),l=[i,a].sort();if(isNaN(l[0])){if(r>s)return 1;if(s>r)return-1;continue}if(isNaN(l[1]))return isNaN(i)?-1:1;if(i>a)return 1;if(a>i)return-1}return n.length-o.length}const Sr={alphanumeric:KA,alphanumericCaseSensitive:XA,text:YA,textCaseSensitive:JA,datetime:ZA,basic:QA},eO=[OA,BA,RA,LA,NA,kA,HA,GA,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:st("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let o=!1;for(const r of n){const s=r==null?void 0:r.getValue(e.id);if(Object.prototype.toString.call(s)==="[object Date]")return Sr.datetime;if(typeof s=="string"&&(o=!0,s.split(Kc).length>1))return Sr.alphanumeric}return o?Sr.text:Sr.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,o;if(!e)throw new Error;return ui(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(o=t.options.sortingFns)==null?void 0:o[e.columnDef.sortingFn])!=null?n:Sr[e.columnDef.sortingFn]},e.toggleSorting=(n,o)=>{const r=e.getNextSortingOrder(),s=typeof n<"u"&&n!==null;t.setSorting(i=>{const a=i==null?void 0:i.find(p=>p.id===e.id),l=i==null?void 0:i.findIndex(p=>p.id===e.id);let c=[],u,d=s?n:r==="desc";if(i!=null&&i.length&&e.getCanMultiSort()&&o?a?u="toggle":u="add":i!=null&&i.length&&l!==i.length-1?u="replace":a?u="toggle":u="replace",u==="toggle"&&(s||r||(u="remove")),u==="add"){var f;c=[...i,{id:e.id,desc:d}],c.splice(0,c.length-((f=t.options.maxMultiSortColCount)!=null?f:Number.MAX_SAFE_INTEGER))}else u==="toggle"?c=i.map(p=>p.id===e.id?{...p,desc:d}:p):u==="remove"?c=i.filter(p=>p.id!==e.id):c=[{id:e.id,desc:d}];return c})},e.getFirstSortDir=()=>{var n,o;return((n=(o=e.columnDef.sortDescFirst)!=null?o:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var o,r;const s=e.getFirstSortDir(),i=e.getIsSorted();return i?i!==s&&((o=t.options.enableSortingRemoval)==null||o)&&(!(n&&(r=t.options.enableMultiRemove)!=null)||r)?!1:i==="desc"?"asc":"desc":s},e.getCanSort=()=>{var n,o;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((o=t.options.enableSorting)!=null?o:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,o;return(n=(o=e.columnDef.enableMultiSort)!=null?o:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const o=(n=t.getState().sorting)==null?void 0:n.find(r=>r.id===e.id);return o?o.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,o;return(n=(o=t.getState().sorting)==null?void 0:o.findIndex(r=>r.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(o=>o.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return o=>{n&&(o.persist==null||o.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(o):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,o;e.setSorting(t?[]:(n=(o=e.initialState)==null?void 0:o.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},MA,jA,WA,UA,qA,zA];function tO(e){var t,n;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const o=[...eO,...(t=e._features)!=null?t:[]];let r={_features:o};const s=r._features.reduce((f,p)=>Object.assign(f,p.getDefaultOptions==null?void 0:p.getDefaultOptions(r)),{}),i=f=>r.options.mergeOptions?r.options.mergeOptions(s,f):{...s,...f};let l={...{},...(n=e.initialState)!=null?n:{}};r._features.forEach(f=>{var p;l=(p=f.getInitialState==null?void 0:f.getInitialState(l))!=null?p:l});const c=[];let u=!1;const d={_features:o,options:{...s,...e},initialState:l,_queue:f=>{c.push(f),u||(u=!0,Promise.resolve().then(()=>{for(;c.length;)c.shift()();u=!1}).catch(p=>setTimeout(()=>{throw p})))},reset:()=>{r.setState(r.initialState)},setOptions:f=>{const p=fn(f,r.options);r.options=i(p)},getState:()=>r.options.state,setState:f=>{r.options.onStateChange==null||r.options.onStateChange(f)},_getRowId:(f,p,m)=>{var g;return(g=r.options.getRowId==null?void 0:r.options.getRowId(f,p,m))!=null?g:`${m?[m.id,p].join("."):p}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(f,p)=>{let m=(p?r.getPrePaginationRowModel():r.getRowModel()).rowsById[f];if(!m&&(m=r.getCoreRowModel().rowsById[f],!m))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${f}`):new Error;return m},_getDefaultColumnDef:ae(()=>[r.options.defaultColumn],f=>{var p;return f=(p=f)!=null?p:{},{header:m=>{const g=m.header.column.columnDef;return g.accessorKey?g.accessorKey:g.accessorFn?g.id:null},cell:m=>{var g,x;return(g=(x=m.renderValue())==null||x.toString==null?void 0:x.toString())!=null?g:null},...r._features.reduce((m,g)=>Object.assign(m,g.getDefaultColumnDef==null?void 0:g.getDefaultColumnDef()),{}),...f}},le(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>r.options.columns,getAllColumns:ae(()=>[r._getColumnDefs()],f=>{const p=function(m,g,x){return x===void 0&&(x=0),m.map(b=>{const S=AA(r,b,x,g),C=b;return S.columns=C.columns?p(C.columns,S,x+1):[],S})};return p(f)},le(e,"debugColumns","getAllColumns")),getAllFlatColumns:ae(()=>[r.getAllColumns()],f=>f.flatMap(p=>p.getFlatColumns()),le(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:ae(()=>[r.getAllFlatColumns()],f=>f.reduce((p,m)=>(p[m.id]=m,p),{}),le(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:ae(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(f,p)=>{let m=f.flatMap(g=>g.getLeafColumns());return p(m)},le(e,"debugColumns","getAllLeafColumns")),getColumn:f=>{const p=r._getAllFlatColumnsById()[f];return process.env.NODE_ENV!=="production"&&!p&&console.error(`[Table] Column with id '${f}' does not exist.`),p}};Object.assign(r,d);for(let f=0;f<r._features.length;f++){const p=r._features[f];p==null||p.createTable==null||p.createTable(r)}return r}function nO(){return e=>ae(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},o=function(r,s,i){s===void 0&&(s=0);const a=[];for(let c=0;c<r.length;c++){const u=DA(e,e._getRowId(r[c],c,i),r[c],c,s,void 0,i==null?void 0:i.id);if(n.flatRows.push(u),n.rowsById[u.id]=u,a.push(u),e.options.getSubRows){var l;u.originalSubRows=e.options.getSubRows(r[c],c),(l=u.originalSubRows)!=null&&l.length&&(u.subRows=o(u.originalSubRows,s+1,u))}}return a};return n.rows=o(t),n},le(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function oO(e){const t=[],n=o=>{var r;t.push(o),(r=o.subRows)!=null&&r.length&&o.getIsExpanded()&&o.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function rO(e){return t=>ae(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(n,o)=>{if(!o.rows.length)return o;const{pageSize:r,pageIndex:s}=n;let{rows:i,flatRows:a,rowsById:l}=o;const c=r*s,u=c+r;i=i.slice(c,u);let d;t.options.paginateExpandedRows?d={rows:i,flatRows:a,rowsById:l}:d=oO({rows:i,flatRows:a,rowsById:l}),d.flatRows=[];const f=p=>{d.flatRows.push(p),p.subRows.length&&p.subRows.forEach(f)};return d.rows.forEach(f),d},le(t.options,"debugTable","getPaginationRowModel"))}/**
172
185
  * react-table
173
186
  *
174
187
  * Copyright (c) TanStack
@@ -177,4 +190,4 @@ Defaulting to \`null\`.`}Lt(uf,"getInvalidValueError");var Ny=Ay,ky=Dy;const df=
177
190
  * LICENSE.md file in the root directory of this source tree.
178
191
  *
179
192
  * @license MIT
180
- */function QI(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=g.useState(()=>({current:XI(t)})),[o,r]=g.useState(()=>n.current.initialState);return n.current.setOptions(s=>({...s,...e,state:{...o,...e.state},onStateChange:i=>{r(i),e.onStateChange==null||e.onStateChange(i)}})),n.current}function Lc(e){return typeof e=="function"?e():e}function eA(e){return e.map(t=>({id:t.field,accessorKey:t.field,header:t.header??t.field,enableSorting:t.sortable??!1,enableResizing:t.resizable??!0,enableHiding:t.enableHiding??!0,size:typeof t.width=="number"?t.width:void 0,minSize:t.minWidth??50,maxSize:t.maxWidth??1e3}))}function tA(e){const{data:t,columns:n=[],mode:o="client",loading:r=!1,rowKey:s="id",selection:i,detailRow:a,sorting:l,columnManager:c,pinning:u}=e,d=b.useCallback((E,P)=>{if(typeof s=="function")return s(E);const A=E[s];return A!=null?String(A):P},[s]),f=Lc(r),p=b.useMemo(()=>Lc(n),[n]),v=b.useMemo(()=>Lc(t),[t]),m=b.useMemo(()=>eA(p),[p]),x=QI({data:v,columns:m,getCoreRowModel:YI(),getRowId:(E,P)=>String(d(E,P)),manualSorting:o==="server",manualPagination:o==="server",manualFiltering:o==="server"});let y;try{y=x.getRowModel().rows.map(E=>E.original)}catch{y=[]}const S=i==null?void 0:i.create(y,d),C=a==null?void 0:a.create(y,d),_=l==null?void 0:l.create(),w=c==null?void 0:c.create(x,()=>p.map(E=>E.field)),T=u==null?void 0:u.create(x,y);return{instance:x,rows:y,columns:p,getRowKey:d,mode:o,loading:f,selection:S,detailRow:C,sorting:_,columnManager:w,pinning:T}}function nA(e={}){return{type:"selection",options:e,create:(t,n)=>oA(t,n,e)}}function oA(e,t,n){const[o,r]=b.useState(()=>{const v={};if(n.initial)for(const m of n.initial)v[String(m)]=!0;return v}),s=b.useMemo(()=>Object.keys(o).filter(v=>o[v]),[o]),i=b.useMemo(()=>e.length===0?!1:e.every((v,m)=>{const x=String(t(v,m));return o[x]===!0}),[e,t,o]),a=s.length>0&&!i,l=b.useCallback(v=>o[String(v)]===!0,[o]),c=b.useCallback(v=>{const m=String(v);r(x=>({...x,[m]:!x[m]}))},[]),u=b.useCallback(()=>{r(()=>{if(i)return{};const v={};for(let m=0;m<e.length;m++){const x=String(t(e[m],m));v[x]=!0}return v})},[i,e,t]),d=b.useCallback(v=>{r(m=>{const x={...m};for(const y of v)x[String(y)]=!0;return x})},[]),f=b.useCallback(v=>{r(m=>{const x={...m};for(const y of v)delete x[String(y)];return x})},[]),p=b.useCallback(()=>{r({})},[]);return{selection:o,isSelected:l,isAllSelected:i,isSomeSelected:a,toggle:c,toggleAll:u,select:d,deselect:f,clear:p,selectedKeys:s}}function rA(e={}){return{type:"sorting",create:()=>sA(e),options:e}}function sA(e){const[t,n]=b.useState(e.initial??null),o=b.useCallback(l=>{n(l)},[]),r=b.useCallback(l=>{n(c=>(c==null?void 0:c.field)!==l?{field:l,direction:"asc"}:c.direction==="asc"?{field:l,direction:"desc"}:null)},[]),s=b.useCallback(()=>{n(null)},[]),i=b.useCallback(l=>(t==null?void 0:t.field)===l,[t]),a=b.useCallback(l=>(t==null?void 0:t.field)===l?t.direction:null,[t]);return{sorting:t,set:o,toggle:r,clear:s,isSorted:i,getDirection:a}}function iA(e){return typeof e=="function"?e():e}function d0(e,t){try{return e()}catch{return t}}function aA(e,t={}){const{initialPageSize:n=10,totalCount:o}=t,{instance:r}=e;b.useEffect(()=>{e.mode==="client"&&r.setOptions(S=>({...S,getPaginationRowModel:S.getPaginationRowModel??JI()})),r.setPageSize(n)},[r,e.mode]);const{pageIndex:s,pageSize:i}=r.getState().pagination,a=s+1,l=o!==void 0?iA(o):d0(()=>r.getPrePaginationRowModel().rows.length,e.rows.length),c=o!==void 0?Math.max(1,Math.ceil(l/i)):d0(()=>{const S=r.getPageCount();return S>0?S:1},Math.max(1,Math.ceil(l/i))),u=a<c,d=a>1,f=b.useCallback(S=>{r.setPageIndex(Math.max(0,S-1))},[r]),p=b.useCallback(S=>{r.setPageSize(S)},[r]),v=b.useCallback(()=>{r.nextPage()},[r]),m=b.useCallback(()=>{r.previousPage()},[r]),x=b.useCallback(()=>{r.setPageIndex(0)},[r]),y=b.useCallback(()=>{r.setPageIndex(c-1)},[r,c]);return{page:a,pageSize:i,pageCount:c,total:l,setPage:f,setPageSize:p,nextPage:v,prevPage:m,firstPage:x,lastPage:y,canNextPage:u,canPrevPage:d}}function lA(e={}){return{type:"detailRow",options:e,create:(t,n)=>cA(t,n,e)}}function cA(e,t,n){const o=n.allowMultiple??!0,r=b.useRef(e);r.current=e;const s=b.useRef(t);s.current=t;const[i,a]=b.useState(()=>{const m={};if(n.initial)for(const x of n.initial)m[String(x)]=!0;return m}),l=b.useCallback(m=>i===!0?!0:i[String(m)]===!0,[i]),c=b.useMemo(()=>e.length===0?!1:i===!0?!0:e.every((m,x)=>{const y=String(t(m,x));return i[y]===!0}),[e,t,i]),u=b.useCallback(m=>{const x=String(m);a(y=>{const S=r.current,C=s.current,_=y===!0?!0:y[x]===!0;if(y===!0){const w={};for(let T=0;T<S.length;T++){const E=String(C(S[T],T));E!==x&&(w[E]=!0)}return w}return o?{...y,[x]:!_}:_?{}:{[x]:!0}})},[o]),d=b.useCallback(()=>{a(c?{}:!0)},[c]),f=b.useCallback(m=>{a(x=>{if(x===!0)return x;const y={...x};for(const S of m)y[String(S)]=!0;return y})},[]),p=b.useCallback(m=>{a(x=>{if(x===!0){const S=r.current,C=s.current,_=new Set(m.map(String)),w={};for(let T=0;T<S.length;T++){const E=String(C(S[T],T));_.has(E)||(w[E]=!0)}return w}const y={...x};for(const S of m)delete y[String(S)];return y})},[]),v=b.useCallback(()=>{a({})},[]);return{expanded:i,isExpanded:l,isAllExpanded:c,toggle:u,toggleAll:d,expand:f,collapse:p,collapseAll:v}}function uA(e){return{type:"pinning",options:e,create:(t,n)=>dA(t,n,e)}}function dA(e,t,n){const{columns:o,initial:r}=n,s=b.useRef(o);s.current=o;const[i,a]=b.useState(()=>{const T=r??{left:o.filter(E=>E.pin==="left").map(E=>E.field),right:o.filter(E=>E.pin==="right").map(E=>E.field)};return{left:T.left??[],right:T.right??[]}}),l=e,c=b.useCallback((w,T)=>{a(E=>{const P={...E};return P.left=(P.left??[]).filter(A=>A!==w),P.right=(P.right??[]).filter(A=>A!==w),T==="left"?P.left=[...P.left??[],w]:P.right=[...P.right??[],w],P})},[]),u=b.useCallback(w=>{a(T=>({left:(T.left??[]).filter(E=>E!==w),right:(T.right??[]).filter(E=>E!==w)}))},[]),d=b.useCallback(w=>{var T,E;return(T=i.left)!=null&&T.includes(w)?"left":(E=i.right)!=null&&E.includes(w)?"right":!1},[i]),f=(w,T)=>{if(typeof w=="number")return w;if(typeof w=="string"){const E=parseInt(w,10);return isNaN(E)?T:E}return T},p=b.useMemo(()=>{const w=o,T=i.left??[];return T.length===0?[]:T.map(E=>{const P=w.find(A=>A.field===E);return P?{columnId:P.field,header:P.header??P.field,width:f(P.width,48)}:null}).filter(E=>E!==null)},[o,i]),v=b.useMemo(()=>{const w=o,T=i.left??[],E=i.right??[],P=[...T,...E];return w.filter(A=>!P.includes(A.field)).map(A=>({columnId:A.field,header:A.header??A.field,width:f(A.width,100)}))},[o,i]),m=b.useMemo(()=>{const w=o,T=i.right??[];return T.length===0?[]:T.map(E=>{const P=w.find(A=>A.field===E);return P?{columnId:P.field,header:P.header??P.field,width:f(P.width,48)}:null}).filter(E=>E!==null)},[o,i]),x=b.useMemo(()=>p.reduce((w,T)=>w+(T.width??0),0),[p]),y=b.useMemo(()=>m.reduce((w,T)=>w+(T.width??0),0),[m]),S=b.useCallback(w=>{const T=i.left??[];if(T.length===0)return[];try{const E=l.getRowModel().rows[w];if(!E)return[];const P=E.getAllCells();return T.map(A=>{const R=P.find(B=>B.column.id===A);return R?{columnId:R.column.id,value:R.getValue(),row:E.original,rowIndex:w}:null}).filter(A=>A!==null)}catch{return[]}},[i,l]),C=b.useCallback(w=>{const T=i.left??[],E=i.right??[],P=[...T,...E];try{const A=l.getRowModel().rows[w];return A?A.getAllCells().filter(R=>!P.includes(R.column.id)).map(R=>({columnId:R.column.id,value:R.getValue(),row:A.original,rowIndex:w})):[]}catch{return[]}},[i,l]),_=b.useCallback(w=>{const T=i.right??[];if(T.length===0)return[];try{const E=l.getRowModel().rows[w];if(!E)return[];const P=E.getAllCells();return T.map(A=>{const R=P.find(B=>B.column.id===A);return R?{columnId:R.column.id,value:R.getValue(),row:E.original,rowIndex:w}:null}).filter(A=>A!==null)}catch{return[]}},[i,l]);return{pinningState:i,pinColumn:c,unpinColumn:u,isPinned:d,getLeftCells:S,getCenterCells:C,getRightCells:_,leftHeaders:p,centerHeaders:v,rightHeaders:m,leftWidth:x,rightWidth:y}}function fA(e={}){return{type:"columns",options:e,create:(t,n)=>pA(t,n,e)}}function pA(e,t,n){const o=b.useRef(t);o.current=t;const[r,s]=b.useState(n.initialVisibility??{}),[i,a]=b.useState(n.initialOrder??[]),[l,c]=b.useState({}),u=b.useCallback(_=>_ in r?r[_]:!0,[r]),d=b.useCallback(_=>{s(w=>({...w,[_]:!(!(_ in w)||w[_])}))},[]),f=b.useCallback(_=>{s(_)},[]),p=b.useCallback(_=>{s(w=>({...w,[_]:!0}))},[]),v=b.useCallback(_=>{s(w=>({...w,[_]:!1}))},[]),m=b.useCallback(_=>{a(_)},[]),x=b.useCallback(()=>{a([])},[]),y=b.useCallback((_,w)=>{a(T=>{const E=T.length>0?[...T]:o.current(),P=E.indexOf(_);return P===-1?T:(E.splice(P,1),E.splice(w,0,_),E)})},[]),S=b.useCallback(_=>l[_]??150,[l]),C=b.useCallback((_,w)=>{c(T=>({...T,[_]:w}))},[]);return{visibility:r,isVisible:u,toggleVisibility:d,setVisibility:f,showColumn:p,hideColumn:v,order:i,setOrder:m,resetOrder:x,moveColumn:y,sizing:l,getSize:S,setSize:C}}function f0(e,t={}){const{threshold:n=1}=t,[o,r]=b.useState(!1),[s,i]=b.useState(!1),a=b.useCallback(()=>{const c=e.current;if(!c){r(!1),i(!1);return}const{scrollLeft:u,scrollWidth:d,clientWidth:f}=c;r(u>n),i(u+f<d-n)},[e,n]),l=b.useRef(a);return l.current=a,b.useEffect(()=>{const c=e.current;if(!c)return;const u=()=>l.current();l.current(),c.addEventListener("scroll",u,{passive:!0});const d=new ResizeObserver(()=>{l.current()});return d.observe(c),()=>{c.removeEventListener("scroll",u),d.disconnect()}},[e]),{showLeftShadow:o,showRightShadow:s,updateShadows:a}}function gA(e){return typeof e=="function"?e():e}function p0(e,t={}){const{enabled:n=!0,cursor:o="grabbing"}=t,[r,s]=b.useState(!1),i=b.useRef(n);i.current=n;const a=b.useRef(o);return a.current=o,b.useEffect(()=>{const l=e.current;if(!l)return;let c=!1,u=0,d=0;function f(x){if(!gA(i.current))return;const y=e.current;y&&x.button===0&&(y.scrollWidth<=y.clientWidth||(c=!0,s(!0),u=x.pageX-y.offsetLeft,d=y.scrollLeft,y.style.cursor=a.current,y.style.userSelect="none",x.preventDefault()))}function p(x){if(!c)return;const y=e.current;if(!y)return;const C=x.pageX-y.offsetLeft-u;y.scrollLeft=d-C}function v(){if(!c)return;const x=e.current;x&&(x.style.cursor="",x.style.userSelect=""),c=!1,s(!1)}function m(){v()}return l.addEventListener("mousedown",f),l.addEventListener("mousemove",p),l.addEventListener("mouseup",v),l.addEventListener("mouseleave",m),()=>{l.removeEventListener("mousedown",f),l.removeEventListener("mousemove",p),l.removeEventListener("mouseup",v),l.removeEventListener("mouseleave",m)}},[e]),{isDragging:r}}function g0(e,t,n){const o=b.useRef(!1),r=b.useCallback(()=>{const i=e.current,a=t.current,l=n.current;if(!i)return;const c=i.querySelectorAll("tr"),u=(a==null?void 0:a.querySelectorAll("tr"))??[],d=(l==null?void 0:l.querySelectorAll("tr"))??[];c.forEach((f,p)=>{f.style.height="",u[p]&&(u[p].style.height=""),d[p]&&(d[p].style.height="")}),c.forEach((f,p)=>{const v=[f.getBoundingClientRect().height];u[p]&&v.push(u[p].getBoundingClientRect().height),d[p]&&v.push(d[p].getBoundingClientRect().height);const x=`${Math.max(...v)}px`;f.style.height=x,u[p]&&(u[p].style.height=x),d[p]&&(d[p].style.height=x)})},[e,t,n]),s=b.useRef(r);return s.current=r,b.useEffect(()=>{const i=e.current,a=t.current,l=n.current;function c(m,x){o.current||(o.current=!0,x.forEach(y=>{y&&y!==m&&(y.scrollTop=m.scrollTop)}),requestAnimationFrame(()=>{o.current=!1}))}function u(){i&&c(i,[a,l])}function d(){a&&c(a,[i,l])}function f(){l&&c(l,[i,a])}i==null||i.addEventListener("scroll",u),a==null||a.addEventListener("scroll",d),l==null||l.addEventListener("scroll",f),s.current();const p=setTimeout(()=>{s.current()},100),v=new ResizeObserver(()=>{s.current()});return i&&v.observe(i),()=>{i==null||i.removeEventListener("scroll",u),a==null||a.removeEventListener("scroll",d),l==null||l.removeEventListener("scroll",f),v.disconnect(),clearTimeout(p)}},[e,t,n]),{syncRowHeights:r}}function hA(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function h0({enableDragToScroll:e=!0,table:t,renderCell:n,renderHeader:o,detailRow:r,bulkHeader:s,bulkActions:i,pagination:a,empty:l,fixedLeft:c,fixedRight:u,children:d}){var W,te,H,Q;const f=(t==null?void 0:t.columns)??[],p=t==null?void 0:t.selection,v=t==null?void 0:t.detailRow,m=t==null?void 0:t.pinning,x=!!t&&f.length>0,y=m==null?void 0:m.pinningState,S=(((W=y==null?void 0:y.left)==null?void 0:W.length)??0)>0||(((te=y==null?void 0:y.right)==null?void 0:te.length)??0)>0,C=(((H=y==null?void 0:y.left)==null?void 0:H.length)??0)>0,_=(((Q=y==null?void 0:y.right)==null?void 0:Q.length)??0)>0,w=m?f.filter(J=>m.isPinned(J.field)==="left"):[],T=m?f.filter(J=>!m.isPinned(J.field)):f,E=m?f.filter(J=>m.isPinned(J.field)==="right"):[],P=T.length;let A=w.length;p&&(A+=1),v&&(A+=1);const R=!!c,B=!!u,V=R||B,K=b.useRef(null),U=b.useRef(null),Z=b.useRef(null),{showLeftShadow:X,showRightShadow:q}=f0(K),{isDragging:z}=p0(K,{enabled:()=>e});g0(K,U,Z);const ee=X||q,F=p?p.isAllSelected?!0:p.isSomeSelected?"indeterminate":!1:!1,Y=p==null?void 0:p.toggleAll;let O=f.length;p&&(O+=1),v&&(O+=1);const I=(J,se)=>t?t.getRowKey(J,se):se,k=(J,se,re)=>{const be=se[J.field];if(n){const xe=n(J.field,{row:se,value:be,rowIndex:re});if(xe!==void 0)return xe}return J.cellSlot?J.cellSlot({row:se,value:be,rowIndex:re}):null},M=J=>{if(o){const se=o(J.field,J);if(se!==void 0)return se}return J.header??J.field},L=j(ue.oxTableRoot,"table-root",X&&"table-root--scroll-left",q&&"table-root--scroll-right"),N=J=>{var se,re;return h.jsx(yc,{width:hA(J.width),align:J.align,sortable:J.sortable,sorted:((se=t==null?void 0:t.sorting)==null?void 0:se.isSorted(J.field))??!1,sortDirection:((re=t==null?void 0:t.sorting)==null?void 0:re.getDirection(J.field))??null,onSort:()=>{var be;return(be=t==null?void 0:t.sorting)==null?void 0:be.toggle(J.field)},children:M(J)},J.field)},$=(J,se,re)=>re.map(be=>h.jsx(bc,{align:be.align,children:k(be,J,se)},be.field)),G=s??(p&&p.selectedKeys.length>0&&t?h.jsx(xc,{selectedCount:p.selectedKeys.length,total:t.rows.length,actions:i}):null);return x&&t&&S?h.jsxs("div",{className:L,"data-slot":"table",children:[G,h.jsxs("div",{className:ue.oxTableFixedLayout,children:[(C||!!p||!!v)&&h.jsx("div",{ref:U,className:j(ue.oxTableFixedSection,ue.oxTableFixedLeft,X&&ue.oxTableFixedLeftShadow),children:h.jsxs("table",{className:ue.oxTable,children:[h.jsxs(Eo,{children:[v&&h.jsx(To,{header:!0}),p&&h.jsx(Oo,{header:!0,checked:F,onChange:Y}),w.map(N)]}),h.jsx(_o,{children:t.rows.map((J,se)=>{const re=I(J,se);return h.jsxs(ni,{children:[h.jsxs(Io,{selected:p==null?void 0:p.isSelected(re),expanded:v==null?void 0:v.isExpanded(re),children:[v&&h.jsx(To,{expanded:v.isExpanded(re),onToggle:()=>v.toggle(re)}),p&&h.jsx(Oo,{checked:p.isSelected(re),onChange:()=>p.toggle(re)}),$(J,se,w)]}),v&&h.jsx(Ao,{expanded:v.isExpanded(re),colspan:A})]},re)})})]})}),h.jsx("div",{ref:K,className:j(ue.oxTableFixedScroll,e&&ee&&ue.oxTableFixedScrollDraggable,z&&ue.oxTableFixedScrollDragging),children:h.jsxs("table",{className:ue.oxTable,children:[h.jsx(Eo,{children:T.map(N)}),h.jsx(_o,{children:t.rows.map((J,se)=>{const re=I(J,se);return h.jsxs(ni,{children:[h.jsx(Io,{selected:p==null?void 0:p.isSelected(re),expanded:v==null?void 0:v.isExpanded(re),children:$(J,se,T)}),v&&h.jsx(Ao,{expanded:v.isExpanded(re),colspan:P,children:r==null?void 0:r({row:J,rowIndex:se})})]},re)})})]})}),_&&h.jsx("div",{ref:Z,className:j(ue.oxTableFixedSection,ue.oxTableFixedRight,q&&ue.oxTableFixedRightShadow),children:h.jsxs("table",{className:ue.oxTable,children:[h.jsx(Eo,{children:E.map(N)}),h.jsx(_o,{children:t.rows.map((J,se)=>{const re=I(J,se);return h.jsxs(ni,{children:[h.jsx(Io,{selected:p==null?void 0:p.isSelected(re),expanded:v==null?void 0:v.isExpanded(re),children:$(J,se,E)}),v&&h.jsx(Ao,{expanded:v.isExpanded(re),colspan:E.length})]},re)})})]})})]}),a,t.rows.length===0&&l]}):x&&t?h.jsxs("div",{className:L,"data-slot":"table",children:[G,h.jsx("div",{className:j(ue.oxTableScrollWrapper,X&&ue.oxTableScrollWrapperShadowLeft,q&&ue.oxTableScrollWrapperShadowRight),children:h.jsx("div",{ref:K,className:j(ue.oxTableScrollContainer,e&&ee&&ue.oxTableScrollContainerDraggable,z&&ue.oxTableScrollContainerDragging),children:h.jsxs("table",{className:ue.oxTable,children:[h.jsxs(Eo,{children:[v&&h.jsx(To,{header:!0}),p&&h.jsx(Oo,{header:!0,checked:F,onChange:Y}),f.map(N)]}),h.jsx(_o,{children:t.rows.map((J,se)=>{const re=I(J,se);return h.jsxs(ni,{children:[h.jsxs(Io,{selected:p==null?void 0:p.isSelected(re),expanded:v==null?void 0:v.isExpanded(re),children:[v&&h.jsx(To,{expanded:v.isExpanded(re),onToggle:()=>v.toggle(re)}),p&&h.jsx(Oo,{checked:p.isSelected(re),onChange:()=>p.toggle(re)}),$(J,se,f)]}),v&&h.jsx(Ao,{expanded:v.isExpanded(re),colspan:O,children:r==null?void 0:r({row:J,rowIndex:se})})]},re)})})]})})}),a,t.rows.length===0&&l]}):V?h.jsxs("div",{className:L,"data-slot":"table",children:[s,h.jsxs("div",{className:ue.oxTableFixedLayout,children:[R&&h.jsx("div",{ref:U,className:j(ue.oxTableFixedSection,ue.oxTableFixedLeft,X&&ue.oxTableFixedLeftShadow),children:h.jsx("table",{className:ue.oxTable,children:c})}),h.jsx("div",{ref:K,className:j(ue.oxTableFixedScroll,e&&ee&&ue.oxTableFixedScrollDraggable,z&&ue.oxTableFixedScrollDragging),children:h.jsx("table",{className:ue.oxTable,children:d})}),B&&h.jsx("div",{ref:Z,className:j(ue.oxTableFixedSection,ue.oxTableFixedRight,q&&ue.oxTableFixedRightShadow),children:h.jsx("table",{className:ue.oxTable,children:u})})]}),a,l]}):h.jsxs("div",{className:L,"data-slot":"table",children:[s,h.jsx("div",{className:j(ue.oxTableScrollWrapper,X&&ue.oxTableScrollWrapperShadowLeft,q&&ue.oxTableScrollWrapperShadowRight),children:h.jsx("div",{ref:K,className:j(ue.oxTableScrollContainer,e&&ee&&ue.oxTableScrollContainerDraggable,z&&ue.oxTableScrollContainerDragging),children:h.jsx("table",{className:ue.oxTable,children:d})})}),a,l]})}function ni({children:e}){return h.jsx(h.Fragment,{children:e})}h0.displayName="OxTable";const vr={oxTableDragCell:"_oxTableDragCell_1tauh_2",oxTableDragCellHeader:"_oxTableDragCellHeader_1tauh_2",oxTableDragCellContent:"_oxTableDragCellContent_1tauh_2",oxTableDragIcon:"_oxTableDragIcon_1tauh_2",oxTableDragCellFixed:"_oxTableDragCellFixed_1tauh_2"},m0=b.forwardRef(({className:e,header:t=!1,fixed:n=!1,fixedOffset:o="0px",style:r,...s},i)=>{const a=t?"th":"td",l=b.useContext(Qv),c=l?{...l.attributes,...l.listeners}:{};return h.jsx(a,{ref:i,className:j(vr.oxTableDragCell,t&&vr.oxTableDragCellHeader,n&&vr.oxTableDragCellFixed,e),style:n?{left:o,...r}:r,"data-slot":"drag",...s,children:!t&&h.jsx("div",{ref:l?l.setActivatorNodeRef:void 0,className:vr.oxTableDragCellContent,style:l?{cursor:"grab",touchAction:"none"}:void 0,...c,children:h.jsx(md,{className:vr.oxTableDragIcon})})})});m0.displayName="OxTableDragCell";const Ke={oxTablePagination:"_oxTablePagination_1c0mc_2",oxTablePaginationInfo:"_oxTablePaginationInfo_1c0mc_2",oxTablePaginationPages:"_oxTablePaginationPages_1c0mc_2",oxTablePaginationBtn:"_oxTablePaginationBtn_1c0mc_2",oxTablePaginationBtnActive:"_oxTablePaginationBtnActive_1c0mc_2",oxTablePaginationIcon:"_oxTablePaginationIcon_1c0mc_2",oxTablePaginationSize:"_oxTablePaginationSize_1c0mc_2",oxTablePaginationSizeLabel:"_oxTablePaginationSizeLabel_1c0mc_2",oxTablePaginationSelectWrapper:"_oxTablePaginationSelectWrapper_1c0mc_2",oxTablePaginationSelect:"_oxTablePaginationSelect_1c0mc_2",oxTablePaginationSelectIcon:"_oxTablePaginationSelectIcon_1c0mc_2"},v0=b.forwardRef(({className:e,page:t=1,pageSize:n=10,pageCount:o,total:r=0,pageSizes:s=[10,20,50,100],onPageChange:i,onPageSizeChange:a,...l},c)=>{const u=o??(Math.ceil(r/n)||1),d=t,f=r===0?0:(t-1)*n+1,p=Math.min(f+n-1,r),v=t>1,m=t<u,x=b.useMemo(()=>{const w=[],T=d,E=u;if(E<=7)for(let P=1;P<=E;P++)w.push(P);else{w.push(1),T>3&&w.push("...");const P=Math.max(2,T-1),A=Math.min(E-1,T+1);for(let R=P;R<=A;R++)w.push(R);T<E-2&&w.push("..."),w.push(E)}return w},[d,u]),y=()=>{v&&(i==null||i(t-1))},S=()=>{m&&(i==null||i(t+1))},C=w=>{w!=="..."&&(i==null||i(w))},_=w=>{a==null||a(Number(w.target.value))};return h.jsxs("div",{ref:c,className:j(Ke.oxTablePagination,e),"data-slot":"pagination",...l,children:[h.jsxs("div",{className:Ke.oxTablePaginationInfo,children:[h.jsxs("span",{children:[f,"-",p]}),h.jsx("span",{children:"de"}),h.jsx("span",{children:r})]}),h.jsxs("div",{className:Ke.oxTablePaginationPages,children:[h.jsx("button",{className:Ke.oxTablePaginationBtn,disabled:!v,onClick:y,children:h.jsx(Pb,{className:Ke.oxTablePaginationIcon})}),x.map((w,T)=>h.jsx("button",{className:j(Ke.oxTablePaginationBtn,w===d&&Ke.oxTablePaginationBtnActive),disabled:w==="...",onClick:()=>C(w),children:w},T)),h.jsx("button",{className:Ke.oxTablePaginationBtn,disabled:!m,onClick:S,children:h.jsx(Ib,{className:Ke.oxTablePaginationIcon})})]}),h.jsxs("div",{className:Ke.oxTablePaginationSize,children:[h.jsx("span",{className:Ke.oxTablePaginationSizeLabel,children:"Rows per page"}),h.jsxs("div",{className:Ke.oxTablePaginationSelectWrapper,children:[h.jsx("select",{className:Ke.oxTablePaginationSelect,value:n,onChange:_,children:s.map(w=>h.jsx("option",{value:w,children:w},w))}),h.jsx(Tn,{className:Ke.oxTablePaginationSelectIcon})]})]})]})});v0.displayName="OxTablePagination";const x0={oxTableEmpty:"_oxTableEmpty_1trmi_2",oxTableEmptyText:"_oxTableEmptyText_1trmi_2"},b0=b.forwardRef(({className:e,children:t,...n},o)=>h.jsx("div",{ref:o,className:j(x0.oxTableEmpty,e),"data-slot":"empty",...n,children:t??h.jsx("p",{className:x0.oxTableEmptyText,children:"No data available"})}));b0.displayName="OxTableEmpty";const oi={oxTableAvatar:"_oxTableAvatar_1s0d3_2",oxTableAvatarInfo:"_oxTableAvatarInfo_1s0d3_2",oxTableAvatarName:"_oxTableAvatarName_1s0d3_2",oxTableAvatarSubtitle:"_oxTableAvatarSubtitle_1s0d3_2"},y0=b.forwardRef(({className:e,src:t,initials:n,disabled:o=!1,name:r,subtitle:s,dataTestid:i,...a},l)=>h.jsxs("div",{ref:l,className:j(oi.oxTableAvatar,e),"data-slot":"table-avatar","data-testid":i,...a,children:[h.jsx(Vi,{dataTestid:`${i}-avatar`,src:t,size:"sm",disabled:o,children:n}),h.jsxs("div",{className:oi.oxTableAvatarInfo,children:[h.jsx("span",{className:oi.oxTableAvatarName,children:r}),s&&h.jsx("span",{className:oi.oxTableAvatarSubtitle,children:s})]})]}));y0.displayName="OxTableAvatar";const xr={oxTableColumnVisibility:"_oxTableColumnVisibility_1abyn_2",oxTableColumnVisibilityHeader:"_oxTableColumnVisibilityHeader_1abyn_2",oxTableColumnVisibilityList:"_oxTableColumnVisibilityList_1abyn_2",oxTableColumnVisibilityItem:"_oxTableColumnVisibilityItem_1abyn_2",oxTableColumnVisibilityLabel:"_oxTableColumnVisibilityLabel_1abyn_2"},C0=b.forwardRef(({className:e,columns:t,visibility:n={},header:o,onToggle:r,...s},i)=>{const a=l=>n[l]!==!1;return h.jsxs("div",{ref:i,className:j(xr.oxTableColumnVisibility,e),"data-slot":"column-visibility",...s,children:[o??h.jsx("div",{className:xr.oxTableColumnVisibilityHeader,children:"Columns"}),h.jsx("div",{className:xr.oxTableColumnVisibilityList,children:t.map(l=>h.jsxs("label",{className:xr.oxTableColumnVisibilityItem,children:[h.jsx(Ls,{checked:a(l.field),onCheckedChange:()=>r==null?void 0:r(l.field)}),h.jsx("span",{className:xr.oxTableColumnVisibilityLabel,children:l.header??l.field})]},l.field))})]})});C0.displayName="OxTableColumnVisibility",D.CARD_STACK_DECK=Ti,D.NUMBER_FLOW_PRESETS=ry,D.OxAccordion=kg,D.OxAccordionContent=Lg,D.OxAccordionItem=$g,D.OxAccordionTrigger=Mg,D.OxAlert=mf,D.OxAlertClose=vf,D.OxAlertDescription=xf,D.OxAlertIcon=bf,D.OxAlertTitle=yf,D.OxAlertToggle=Cf,D.OxAvatarGroup=Td,D.OxAvatarRounded=Vr,D.OxAvatarSquare=Vi,D.OxBadge=Hi,D.OxBreadcrumb=Jg,D.OxBreadcrumbEllipsis=ih,D.OxBreadcrumbItem=eh,D.OxBreadcrumbLink=nh,D.OxBreadcrumbList=Qg,D.OxBreadcrumbPage=oh,D.OxBreadcrumbSeparator=sh,D.OxBullet=zr,D.OxButton=Ou,D.OxCalendarDate=Pd,D.OxCard=Nu,D.OxCardStack=$u,D.OxCheckbox=Ls,D.OxChip=Ud,D.OxCombobox=Oh,D.OxComboboxChipsInput=Nh,D.OxComboboxContent=Yh,D.OxComboboxEmpty=Jh,D.OxComboboxGroup=Qh,D.OxComboboxInput=Dh,D.OxComboboxItem=Zh,D.OxComboboxSeparator=em,D.OxDialog=hp,D.OxDialogClose=Ea,D.OxDialogContent=mp,D.OxDialogDescription=xp,D.OxDialogOverlay=os,D.OxDialogTitle=vp,D.OxDialogTrigger=qC,D.OxDialogTwoPanelContent=bp,D.OxDivider=Mu,D.OxFieldGroup=ah,D.OxFieldLabel=lh,D.OxFieldMessage=ch,D.OxInputGroup=uh,D.OxInputNumber=ph,D.OxInputNumberContent=gh,D.OxInputNumberDecrement=mh,D.OxInputNumberIncrement=xh,D.OxInputNumberInput=bh,D.OxInputOtp=Th,D.OxInputOtpGroup=Eh,D.OxInputOtpSeparator=Ih,D.OxInputOtpSlot=Ph,D.OxInputPassword=Ch,D.OxInputPasswordInput=wh,D.OxInputPasswordToggle=Sh,D.OxInputText=dh,D.OxLocaleProvider=yd,D.OxNumberFlow=zd,D.OxPageControl=Yg,D.OxPaymentCard=Bd,D.OxPointMarker=qd,D.OxPopover=Sg,D.OxPopoverClose=i1,D.OxPopoverContent=Tg,D.OxProgress=pf,D.OxRadioButton=gv,D.OxRadioGroup=hv,D.OxResizable=dd,D.OxResizableHandle=vd,D.OxResizablePanel=fd,D.OxSelect=Qm,D.OxSelectContent=tv,D.OxSelectGroup=ov,D.OxSelectItem=nv,D.OxSelectSeparator=rv,D.OxSelectTrigger=ev,D.OxStatusBadge=Xd,D.OxSwitch=sv,D.OxTable=h0,D.OxTableAvatar=y0,D.OxTableBody=_o,D.OxTableBulkHeader=xc,D.OxTableCell=bc,D.OxTableColumnVisibility=C0,D.OxTableDragCell=m0,D.OxTableEmpty=b0,D.OxTableExpandCell=To,D.OxTableHead=Eo,D.OxTableHeaderCell=yc,D.OxTablePagination=v0,D.OxTableRow=Io,D.OxTableRowExpanded=Ao,D.OxTableSelectCell=Oo,D.OxTag=jd,D.OxToggleDescription=bv,D.OxToggleGroup=mv,D.OxToggleLabel=vv,D.OxToggleTabs=Wg,D.OxToggleTabsContent=Xg,D.OxToggleTabsList=qg,D.OxToggleTabsTrigger=Kg,D.OxTooltip=pg,D.OxTooltipContent=hg,D.OxTransitionBounce=bu,D.OxTransitionExpand=Su,D.OxTransitionFade=Cu,D.OxTransitionFlip=_u,D.OxTransitionSlideX=yu,D.OxTransitionSlideY=wu,D.PAGE_CONTROL_WINDOW=$n,D.SWITCH_SIZES=ZE,D.avatarRoundedVariants=_d,D.avatarSquareVariants=Sd,D.badgeVariants=Ed,D.bulletVariants=Cd,D.buttonVariants=Du,D.calendarDateVariants=Id,D.cardVariants=ku,D.chipVariants=Wd,D.cn=j,D.indicatorVariants=Zd,D.normalizeLocale=xd,D.pageControlDots=Zg,D.paymentCardVariants=Gd,D.pointMarkerVariants=Kd,D.resolveNumberFlowPreset=Hd,D.statusBadgeVariants=Yd,D.useDragToScroll=p0,D.useFixedColumns=g0,D.useInputOtp=Ts,D.useInputPassword=pl,D.useLocale=zi,D.useScrollShadow=f0,D.useTable=tA,D.useTableColumns=fA,D.useTableDetailRow=lA,D.useTablePagination=aA,D.useTablePinning=uA,D.useTableSelection=nA,D.useTableSorting=rA,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})}));
193
+ */function sO(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=v.useState(()=>({current:tO(t)})),[o,r]=v.useState(()=>n.current.initialState);return n.current.setOptions(s=>({...s,...e,state:{...o,...e.state},onStateChange:i=>{r(i),e.onStateChange==null||e.onStateChange(i)}})),n.current}function Yc(e){return typeof e=="function"?e():e}function iO(e){return e.map(t=>({id:t.field,accessorKey:t.field,header:t.header??t.field,enableSorting:t.sortable??!1,enableResizing:t.resizable??!0,enableHiding:t.enableHiding??!0,size:typeof t.width=="number"?t.width:void 0,minSize:t.minWidth??50,maxSize:t.maxWidth??1e3}))}function aO(e){const{data:t,columns:n=[],mode:o="client",loading:r=!1,rowKey:s="id",selection:i,detailRow:a,sorting:l,columnManager:c,pinning:u}=e,d=y.useCallback((E,P)=>{if(typeof s=="function")return s(E);const I=E[s];return I!=null?String(I):P},[s]),f=Yc(r),p=y.useMemo(()=>Yc(n),[n]),m=y.useMemo(()=>Yc(t),[t]),g=y.useMemo(()=>iO(p),[p]),x=sO({data:m,columns:g,getCoreRowModel:nO(),getRowId:(E,P)=>String(d(E,P)),manualSorting:o==="server",manualPagination:o==="server",manualFiltering:o==="server"});let b;try{b=x.getRowModel().rows.map(E=>E.original)}catch{b=[]}const S=i==null?void 0:i.create(b,d),C=a==null?void 0:a.create(b,d),_=l==null?void 0:l.create(),w=c==null?void 0:c.create(x,()=>p.map(E=>E.field)),T=u==null?void 0:u.create(x,b);return{instance:x,rows:b,columns:p,getRowKey:d,mode:o,loading:f,selection:S,detailRow:C,sorting:_,columnManager:w,pinning:T}}function lO(e={}){return{type:"selection",options:e,create:(t,n)=>cO(t,n,e)}}function cO(e,t,n){const[o,r]=y.useState(()=>{const m={};if(n.initial)for(const g of n.initial)m[String(g)]=!0;return m}),s=y.useMemo(()=>Object.keys(o).filter(m=>o[m]),[o]),i=y.useMemo(()=>e.length===0?!1:e.every((m,g)=>{const x=String(t(m,g));return o[x]===!0}),[e,t,o]),a=s.length>0&&!i,l=y.useCallback(m=>o[String(m)]===!0,[o]),c=y.useCallback(m=>{const g=String(m);r(x=>({...x,[g]:!x[g]}))},[]),u=y.useCallback(()=>{r(()=>{if(i)return{};const m={};for(let g=0;g<e.length;g++){const x=String(t(e[g],g));m[x]=!0}return m})},[i,e,t]),d=y.useCallback(m=>{r(g=>{const x={...g};for(const b of m)x[String(b)]=!0;return x})},[]),f=y.useCallback(m=>{r(g=>{const x={...g};for(const b of m)delete x[String(b)];return x})},[]),p=y.useCallback(()=>{r({})},[]);return{selection:o,isSelected:l,isAllSelected:i,isSomeSelected:a,toggle:c,toggleAll:u,select:d,deselect:f,clear:p,selectedKeys:s}}function uO(e={}){return{type:"sorting",create:()=>dO(e),options:e}}function dO(e){const[t,n]=y.useState(e.initial??null),o=y.useCallback(l=>{n(l)},[]),r=y.useCallback(l=>{n(c=>(c==null?void 0:c.field)!==l?{field:l,direction:"asc"}:c.direction==="asc"?{field:l,direction:"desc"}:null)},[]),s=y.useCallback(()=>{n(null)},[]),i=y.useCallback(l=>(t==null?void 0:t.field)===l,[t]),a=y.useCallback(l=>(t==null?void 0:t.field)===l?t.direction:null,[t]);return{sorting:t,set:o,toggle:r,clear:s,isSorted:i,getDirection:a}}function fO(e){return typeof e=="function"?e():e}function Wx(e,t){try{return e()}catch{return t}}function pO(e,t={}){const{initialPageSize:n=10,totalCount:o}=t,{instance:r}=e;y.useEffect(()=>{e.mode==="client"&&r.setOptions(S=>({...S,getPaginationRowModel:S.getPaginationRowModel??rO()})),r.setPageSize(n)},[r,e.mode]);const{pageIndex:s,pageSize:i}=r.getState().pagination,a=s+1,l=o!==void 0?fO(o):Wx(()=>r.getPrePaginationRowModel().rows.length,e.rows.length),c=o!==void 0?Math.max(1,Math.ceil(l/i)):Wx(()=>{const S=r.getPageCount();return S>0?S:1},Math.max(1,Math.ceil(l/i))),u=a<c,d=a>1,f=y.useCallback(S=>{r.setPageIndex(Math.max(0,S-1))},[r]),p=y.useCallback(S=>{r.setPageSize(S)},[r]),m=y.useCallback(()=>{r.nextPage()},[r]),g=y.useCallback(()=>{r.previousPage()},[r]),x=y.useCallback(()=>{r.setPageIndex(0)},[r]),b=y.useCallback(()=>{r.setPageIndex(c-1)},[r,c]);return{page:a,pageSize:i,pageCount:c,total:l,setPage:f,setPageSize:p,nextPage:m,prevPage:g,firstPage:x,lastPage:b,canNextPage:u,canPrevPage:d}}function gO(e={}){return{type:"detailRow",options:e,create:(t,n)=>hO(t,n,e)}}function hO(e,t,n){const o=n.allowMultiple??!0,r=y.useRef(e);r.current=e;const s=y.useRef(t);s.current=t;const[i,a]=y.useState(()=>{const g={};if(n.initial)for(const x of n.initial)g[String(x)]=!0;return g}),l=y.useCallback(g=>i===!0?!0:i[String(g)]===!0,[i]),c=y.useMemo(()=>e.length===0?!1:i===!0?!0:e.every((g,x)=>{const b=String(t(g,x));return i[b]===!0}),[e,t,i]),u=y.useCallback(g=>{const x=String(g);a(b=>{const S=r.current,C=s.current,_=b===!0?!0:b[x]===!0;if(b===!0){const w={};for(let T=0;T<S.length;T++){const E=String(C(S[T],T));E!==x&&(w[E]=!0)}return w}return o?{...b,[x]:!_}:_?{}:{[x]:!0}})},[o]),d=y.useCallback(()=>{a(c?{}:!0)},[c]),f=y.useCallback(g=>{a(x=>{if(x===!0)return x;const b={...x};for(const S of g)b[String(S)]=!0;return b})},[]),p=y.useCallback(g=>{a(x=>{if(x===!0){const S=r.current,C=s.current,_=new Set(g.map(String)),w={};for(let T=0;T<S.length;T++){const E=String(C(S[T],T));_.has(E)||(w[E]=!0)}return w}const b={...x};for(const S of g)delete b[String(S)];return b})},[]),m=y.useCallback(()=>{a({})},[]);return{expanded:i,isExpanded:l,isAllExpanded:c,toggle:u,toggleAll:d,expand:f,collapse:p,collapseAll:m}}function mO(e){return{type:"pinning",options:e,create:(t,n)=>vO(t,n,e)}}function vO(e,t,n){const{columns:o,initial:r}=n,s=y.useRef(o);s.current=o;const[i,a]=y.useState(()=>{const T=r??{left:o.filter(E=>E.pin==="left").map(E=>E.field),right:o.filter(E=>E.pin==="right").map(E=>E.field)};return{left:T.left??[],right:T.right??[]}}),l=e,c=y.useCallback((w,T)=>{a(E=>{const P={...E};return P.left=(P.left??[]).filter(I=>I!==w),P.right=(P.right??[]).filter(I=>I!==w),T==="left"?P.left=[...P.left??[],w]:P.right=[...P.right??[],w],P})},[]),u=y.useCallback(w=>{a(T=>({left:(T.left??[]).filter(E=>E!==w),right:(T.right??[]).filter(E=>E!==w)}))},[]),d=y.useCallback(w=>{var T,E;return(T=i.left)!=null&&T.includes(w)?"left":(E=i.right)!=null&&E.includes(w)?"right":!1},[i]),f=(w,T)=>{if(typeof w=="number")return w;if(typeof w=="string"){const E=parseInt(w,10);return isNaN(E)?T:E}return T},p=y.useMemo(()=>{const w=o,T=i.left??[];return T.length===0?[]:T.map(E=>{const P=w.find(I=>I.field===E);return P?{columnId:P.field,header:P.header??P.field,width:f(P.width,48)}:null}).filter(E=>E!==null)},[o,i]),m=y.useMemo(()=>{const w=o,T=i.left??[],E=i.right??[],P=[...T,...E];return w.filter(I=>!P.includes(I.field)).map(I=>({columnId:I.field,header:I.header??I.field,width:f(I.width,100)}))},[o,i]),g=y.useMemo(()=>{const w=o,T=i.right??[];return T.length===0?[]:T.map(E=>{const P=w.find(I=>I.field===E);return P?{columnId:P.field,header:P.header??P.field,width:f(P.width,48)}:null}).filter(E=>E!==null)},[o,i]),x=y.useMemo(()=>p.reduce((w,T)=>w+(T.width??0),0),[p]),b=y.useMemo(()=>g.reduce((w,T)=>w+(T.width??0),0),[g]),S=y.useCallback(w=>{const T=i.left??[];if(T.length===0)return[];try{const E=l.getRowModel().rows[w];if(!E)return[];const P=E.getAllCells();return T.map(I=>{const N=P.find(H=>H.column.id===I);return N?{columnId:N.column.id,value:N.getValue(),row:E.original,rowIndex:w}:null}).filter(I=>I!==null)}catch{return[]}},[i,l]),C=y.useCallback(w=>{const T=i.left??[],E=i.right??[],P=[...T,...E];try{const I=l.getRowModel().rows[w];return I?I.getAllCells().filter(N=>!P.includes(N.column.id)).map(N=>({columnId:N.column.id,value:N.getValue(),row:I.original,rowIndex:w})):[]}catch{return[]}},[i,l]),_=y.useCallback(w=>{const T=i.right??[];if(T.length===0)return[];try{const E=l.getRowModel().rows[w];if(!E)return[];const P=E.getAllCells();return T.map(I=>{const N=P.find(H=>H.column.id===I);return N?{columnId:N.column.id,value:N.getValue(),row:E.original,rowIndex:w}:null}).filter(I=>I!==null)}catch{return[]}},[i,l]);return{pinningState:i,pinColumn:c,unpinColumn:u,isPinned:d,getLeftCells:S,getCenterCells:C,getRightCells:_,leftHeaders:p,centerHeaders:m,rightHeaders:g,leftWidth:x,rightWidth:b}}function xO(e={}){return{type:"columns",options:e,create:(t,n)=>bO(t,n,e)}}function bO(e,t,n){const o=y.useRef(t);o.current=t;const[r,s]=y.useState(n.initialVisibility??{}),[i,a]=y.useState(n.initialOrder??[]),[l,c]=y.useState({}),u=y.useCallback(_=>_ in r?r[_]:!0,[r]),d=y.useCallback(_=>{s(w=>({...w,[_]:!(!(_ in w)||w[_])}))},[]),f=y.useCallback(_=>{s(_)},[]),p=y.useCallback(_=>{s(w=>({...w,[_]:!0}))},[]),m=y.useCallback(_=>{s(w=>({...w,[_]:!1}))},[]),g=y.useCallback(_=>{a(_)},[]),x=y.useCallback(()=>{a([])},[]),b=y.useCallback((_,w)=>{a(T=>{const E=T.length>0?[...T]:o.current(),P=E.indexOf(_);return P===-1?T:(E.splice(P,1),E.splice(w,0,_),E)})},[]),S=y.useCallback(_=>l[_]??150,[l]),C=y.useCallback((_,w)=>{c(T=>({...T,[_]:w}))},[]);return{visibility:r,isVisible:u,toggleVisibility:d,setVisibility:f,showColumn:p,hideColumn:m,order:i,setOrder:g,resetOrder:x,moveColumn:b,sizing:l,getSize:S,setSize:C}}function Ux(e,t={}){const{threshold:n=1}=t,[o,r]=y.useState(!1),[s,i]=y.useState(!1),a=y.useCallback(()=>{const c=e.current;if(!c){r(!1),i(!1);return}const{scrollLeft:u,scrollWidth:d,clientWidth:f}=c;r(u>n),i(u+f<d-n)},[e,n]),l=y.useRef(a);return l.current=a,y.useEffect(()=>{const c=e.current;if(!c)return;const u=()=>l.current();l.current(),c.addEventListener("scroll",u,{passive:!0});const d=new ResizeObserver(()=>{l.current()});return d.observe(c),()=>{c.removeEventListener("scroll",u),d.disconnect()}},[e]),{showLeftShadow:o,showRightShadow:s,updateShadows:a}}function yO(e){return typeof e=="function"?e():e}function qx(e,t={}){const{enabled:n=!0,cursor:o="grabbing",ignore:r='[data-slot="drag"]'}=t,[s,i]=y.useState(!1),a=y.useRef(n);a.current=n;const l=y.useRef(o);return l.current=o,y.useEffect(()=>{const c=e.current;if(!c)return;let u=!1,d=0,f=0;function p(b){var C;if(!yO(a.current))return;const S=e.current;S&&b.button===0&&(r&&((C=b.target)!=null&&C.closest(r))||S.scrollWidth<=S.clientWidth||(u=!0,i(!0),d=b.pageX-S.offsetLeft,f=S.scrollLeft,S.style.cursor=l.current,S.style.userSelect="none",b.preventDefault()))}function m(b){if(!u)return;const S=e.current;if(!S)return;const _=b.pageX-S.offsetLeft-d;S.scrollLeft=f-_}function g(){if(!u)return;const b=e.current;b&&(b.style.cursor="",b.style.userSelect=""),u=!1,i(!1)}function x(){g()}return c.addEventListener("mousedown",p),c.addEventListener("mousemove",m),c.addEventListener("mouseup",g),c.addEventListener("mouseleave",x),()=>{c.removeEventListener("mousedown",p),c.removeEventListener("mousemove",m),c.removeEventListener("mouseup",g),c.removeEventListener("mouseleave",x)}},[e]),{isDragging:s}}const Jc="tr:not([data-spacer])";function Kx(e,t,n){const o=y.useRef(!1),r=y.useCallback(()=>{const i=e.current,a=t.current,l=n.current;if(!i)return;const c=i.querySelectorAll(Jc),u=(a==null?void 0:a.querySelectorAll(Jc))??[],d=(l==null?void 0:l.querySelectorAll(Jc))??[];c.forEach((f,p)=>{f.style.height="",u[p]&&(u[p].style.height=""),d[p]&&(d[p].style.height="")}),c.forEach((f,p)=>{const m=[f.getBoundingClientRect().height];u[p]&&m.push(u[p].getBoundingClientRect().height),d[p]&&m.push(d[p].getBoundingClientRect().height);const x=`${Math.max(...m)}px`;f.style.height=x,u[p]&&(u[p].style.height=x),d[p]&&(d[p].style.height=x)})},[e,t,n]),s=y.useRef(r);return s.current=r,y.useEffect(()=>{const i=e.current,a=t.current,l=n.current;function c(g,x){o.current||(o.current=!0,x.forEach(b=>{b&&b!==g&&(b.scrollTop=g.scrollTop)}),requestAnimationFrame(()=>{o.current=!1}))}function u(){i&&c(i,[a,l])}function d(){a&&c(a,[i,l])}function f(){l&&c(l,[i,a])}i==null||i.addEventListener("scroll",u),a==null||a.addEventListener("scroll",d),l==null||l.addEventListener("scroll",f),s.current();const p=setTimeout(()=>{s.current()},100),m=new ResizeObserver(()=>{s.current()});return i&&m.observe(i),()=>{i==null||i.removeEventListener("scroll",u),a==null||a.removeEventListener("scroll",d),l==null||l.removeEventListener("scroll",f),m.disconnect(),clearTimeout(p)}},[e,t,n]),{syncRowHeights:r}}function CO(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function Zc({enableDragToScroll:e=!0,table:t,renderCell:n,renderHeader:o,detailRow:r,bulkHeader:s,bulkActions:i,pagination:a,empty:l,fixedLeft:c,fixedRight:u,children:d}){var Ce,Ne,ye,at;const f=(t==null?void 0:t.columns)??[],p=t==null?void 0:t.selection,m=t==null?void 0:t.detailRow,g=t==null?void 0:t.pinning,x=!!t&&f.length>0,b=g==null?void 0:g.pinningState,S=(((Ce=b==null?void 0:b.left)==null?void 0:Ce.length)??0)>0||(((Ne=b==null?void 0:b.right)==null?void 0:Ne.length)??0)>0,C=(((ye=b==null?void 0:b.left)==null?void 0:ye.length)??0)>0,_=(((at=b==null?void 0:b.right)==null?void 0:at.length)??0)>0,w=g?f.filter(oe=>g.isPinned(oe.field)==="left"):[],T=g?f.filter(oe=>!g.isPinned(oe.field)):f,E=g?f.filter(oe=>g.isPinned(oe.field)==="right"):[],P=T.length;let I=w.length;p&&(I+=1),m&&(I+=1);const N=!!c,H=!!u,L=N||H,X=y.useRef(null),W=y.useRef(null),J=y.useRef(null),Y=y.useRef(null),{showLeftShadow:q,showRightShadow:z}=Ux(X),{isDragging:Q}=qx(X,{enabled:()=>e});Kx(X,J,Y);const F=q||z,K=si(),D=y.useRef(K);D.current=K;const A=y.useCallback(oe=>{var ie;X.current=oe,(ie=D.current)==null||ie.claim(oe)},[]),k=y.useCallback(oe=>{var ie;W.current=oe,(ie=D.current)==null||ie.claim(oe)},[]),$=K!=null&&K.height?{height:K.height}:void 0,V=p?p.isAllSelected?!0:p.isSomeSelected?"indeterminate":!1:!1,M=p==null?void 0:p.toggleAll;let R=f.length;p&&(R+=1),m&&(R+=1);const j=(oe,ie)=>t?t.getRowKey(oe,ie):ie,U=(oe,ie,re)=>{const tt=ie[oe.field];if(n){const Tr=n(oe.field,{row:ie,value:tt,rowIndex:re});if(Tr!==void 0)return Tr}return oe.cellSlot?oe.cellSlot({row:ie,value:tt,rowIndex:re}):null},ee=oe=>{if(o){const ie=o(oe.field,oe);if(ie!==void 0)return ie}return oe.header??oe.field},B=G(ce.oxTableRoot,"table-root",q&&"table-root--scroll-left",z&&"table-root--scroll-right"),Z=oe=>{var ie,re;return h.jsx(Nc,{width:CO(oe.width),align:oe.align,sortable:oe.sortable,sorted:((ie=t==null?void 0:t.sorting)==null?void 0:ie.isSorted(oe.field))??!1,sortDirection:((re=t==null?void 0:t.sorting)==null?void 0:re.getDirection(oe.field))??null,onSort:()=>{var tt;return(tt=t==null?void 0:t.sorting)==null?void 0:tt.toggle(oe.field)},children:ee(oe)},oe.field)},ue=(oe,ie,re)=>re.map(tt=>h.jsx(Dc,{align:tt.align,children:U(tt,oe,ie)},tt.field)),me=s??(p&&p.selectedKeys.length>0&&t?h.jsx(Oc,{selectedCount:p.selectedKeys.length,total:t.rows.length,actions:i}):null);return x&&t&&S?h.jsxs("div",{className:B,"data-slot":"table",children:[h.jsxs("div",{ref:k,className:G(ce.oxTableFixedLayout,K&&ce.oxTableFixedLayoutVirtual),style:$,children:[(C||!!p||!!m)&&h.jsx("div",{ref:J,className:G(ce.oxTableFixedSection,ce.oxTableFixedLeft,q&&ce.oxTableFixedLeftShadow),children:h.jsxs("table",{className:ce.oxTable,children:[h.jsxs(Ao,{children:[m&&h.jsx(Io,{header:!0}),p&&h.jsx(ko,{header:!0,checked:V,onChange:M}),w.map(Z)]}),h.jsx(Po,{children:t.rows.map((oe,ie)=>{const re=j(oe,ie);return h.jsxs(gi,{children:[h.jsxs(Do,{selected:p==null?void 0:p.isSelected(re),expanded:m==null?void 0:m.isExpanded(re),children:[m&&h.jsx(Io,{expanded:m.isExpanded(re),onToggle:()=>m.toggle(re)}),p&&h.jsx(ko,{checked:p.isSelected(re),onChange:()=>p.toggle(re)}),ue(oe,ie,w)]}),m&&h.jsx(No,{expanded:m.isExpanded(re),colspan:I})]},re)})})]})}),h.jsx("div",{ref:X,className:G(ce.oxTableFixedScroll,e&&F&&ce.oxTableFixedScrollDraggable,Q&&ce.oxTableFixedScrollDragging),children:h.jsxs("table",{className:ce.oxTable,children:[h.jsx(Ao,{children:T.map(Z)}),h.jsx(Po,{children:t.rows.map((oe,ie)=>{const re=j(oe,ie);return h.jsxs(gi,{children:[h.jsx(Do,{selected:p==null?void 0:p.isSelected(re),expanded:m==null?void 0:m.isExpanded(re),children:ue(oe,ie,T)}),m&&h.jsx(No,{expanded:m.isExpanded(re),colspan:P,children:r==null?void 0:r({row:oe,rowIndex:ie})})]},re)})})]})}),_&&h.jsx("div",{ref:Y,className:G(ce.oxTableFixedSection,ce.oxTableFixedRight,z&&ce.oxTableFixedRightShadow),children:h.jsxs("table",{className:ce.oxTable,children:[h.jsx(Ao,{children:E.map(Z)}),h.jsx(Po,{children:t.rows.map((oe,ie)=>{const re=j(oe,ie);return h.jsxs(gi,{children:[h.jsx(Do,{selected:p==null?void 0:p.isSelected(re),expanded:m==null?void 0:m.isExpanded(re),children:ue(oe,ie,E)}),m&&h.jsx(No,{expanded:m.isExpanded(re),colspan:E.length})]},re)})})]})})]}),K&&h.jsx(li,{}),a,me,t.rows.length===0&&l]}):x&&t?h.jsxs("div",{className:B,"data-slot":"table",children:[h.jsx("div",{className:G(ce.oxTableScrollWrapper,q&&ce.oxTableScrollWrapperShadowLeft,z&&ce.oxTableScrollWrapperShadowRight),children:h.jsx("div",{ref:A,className:G(ce.oxTableScrollContainer,e&&F&&ce.oxTableScrollContainerDraggable,Q&&ce.oxTableScrollContainerDragging,K&&ce.oxTableScrollContainerVirtual),style:$,children:h.jsxs("table",{className:ce.oxTable,children:[h.jsxs(Ao,{children:[m&&h.jsx(Io,{header:!0}),p&&h.jsx(ko,{header:!0,checked:V,onChange:M}),f.map(Z)]}),h.jsx(Po,{children:t.rows.map((oe,ie)=>{const re=j(oe,ie);return h.jsxs(gi,{children:[h.jsxs(Do,{selected:p==null?void 0:p.isSelected(re),expanded:m==null?void 0:m.isExpanded(re),children:[m&&h.jsx(Io,{expanded:m.isExpanded(re),onToggle:()=>m.toggle(re)}),p&&h.jsx(ko,{checked:p.isSelected(re),onChange:()=>p.toggle(re)}),ue(oe,ie,f)]}),m&&h.jsx(No,{expanded:m.isExpanded(re),colspan:R,children:r==null?void 0:r({row:oe,rowIndex:ie})})]},re)})})]})})}),K&&h.jsx(li,{}),a,me,t.rows.length===0&&l]}):L?h.jsxs("div",{className:B,"data-slot":"table",children:[s,h.jsxs("div",{ref:k,className:G(ce.oxTableFixedLayout,K&&ce.oxTableFixedLayoutVirtual),style:$,children:[N&&h.jsx("div",{ref:J,className:G(ce.oxTableFixedSection,ce.oxTableFixedLeft,q&&ce.oxTableFixedLeftShadow),children:h.jsx("table",{className:ce.oxTable,children:c})}),h.jsx("div",{ref:X,className:G(ce.oxTableFixedScroll,e&&F&&ce.oxTableFixedScrollDraggable,Q&&ce.oxTableFixedScrollDragging),children:h.jsx("table",{className:ce.oxTable,children:d})}),H&&h.jsx("div",{ref:Y,className:G(ce.oxTableFixedSection,ce.oxTableFixedRight,z&&ce.oxTableFixedRightShadow),children:h.jsx("table",{className:ce.oxTable,children:u})})]}),l]}):h.jsxs("div",{className:B,"data-slot":"table",children:[s,h.jsx("div",{className:G(ce.oxTableScrollWrapper,q&&ce.oxTableScrollWrapperShadowLeft,z&&ce.oxTableScrollWrapperShadowRight),children:h.jsx("div",{ref:A,className:G(ce.oxTableScrollContainer,e&&F&&ce.oxTableScrollContainerDraggable,Q&&ce.oxTableScrollContainerDragging,K&&ce.oxTableScrollContainerVirtual),style:$,children:h.jsx("table",{className:ce.oxTable,children:d})})}),K&&h.jsx(li,{}),a,l]})}function gi({children:e}){return h.jsx(h.Fragment,{children:e})}Zc.displayName="OxTable";function Xx({virtualizer:e,...t}){return h.jsx(_x.Provider,{value:e,children:h.jsx(Zc,{...t})})}Xx.displayName="OxTableVirtualized";const wr={oxTableDragCell:"_oxTableDragCell_mr7n7_2",oxTableDragCellHeader:"_oxTableDragCellHeader_mr7n7_2",oxTableDragCellContent:"_oxTableDragCellContent_mr7n7_2",oxTableDragIcon:"_oxTableDragIcon_mr7n7_2",oxTableDragCellFixed:"_oxTableDragCellFixed_mr7n7_2"},Yx=y.forwardRef(({className:e,header:t=!1,fixed:n=!1,fixedOffset:o="0px",style:r,...s},i)=>{const a=t?"th":"td",l=y.useContext(Dx),c=l?{...l.attributes,...l.listeners}:{};return h.jsx(a,{ref:i,className:G(wr.oxTableDragCell,t&&wr.oxTableDragCellHeader,n&&wr.oxTableDragCellFixed,e),style:n?{left:o,...r}:r,"data-slot":"drag",...s,children:!t&&h.jsx("div",{ref:l?l.setActivatorNodeRef:void 0,className:wr.oxTableDragCellContent,style:l?{cursor:"grab",touchAction:"none"}:void 0,...c,children:h.jsx(kd,{className:wr.oxTableDragIcon})})})});Yx.displayName="OxTableDragCell";const et={oxTablePagination:"_oxTablePagination_1rwss_2",oxTablePaginationInfo:"_oxTablePaginationInfo_1rwss_2",oxTablePaginationPages:"_oxTablePaginationPages_1rwss_2",oxTablePaginationBtn:"_oxTablePaginationBtn_1rwss_2",oxTablePaginationBtnActive:"_oxTablePaginationBtnActive_1rwss_2",oxTablePaginationIcon:"_oxTablePaginationIcon_1rwss_2",oxTablePaginationSize:"_oxTablePaginationSize_1rwss_2",oxTablePaginationSizeLabel:"_oxTablePaginationSizeLabel_1rwss_2",oxTablePaginationSelectWrapper:"_oxTablePaginationSelectWrapper_1rwss_2",oxTablePaginationSelect:"_oxTablePaginationSelect_1rwss_2",oxTablePaginationSelectIcon:"_oxTablePaginationSelectIcon_1rwss_2"},Jx=y.forwardRef(({className:e,page:t=1,pageSize:n=10,pageCount:o,total:r=0,pageSizes:s=[10,20,50,100],onPageChange:i,onPageSizeChange:a,...l},c)=>{const u=o??(Math.ceil(r/n)||1),d=t,f=r===0?0:(t-1)*n+1,p=Math.min(f+n-1,r),m=t>1,g=t<u,x=y.useMemo(()=>{const w=[],T=d,E=u;if(E<=7)for(let P=1;P<=E;P++)w.push(P);else{w.push(1),T>3&&w.push("...");const P=Math.max(2,T-1),I=Math.min(E-1,T+1);for(let N=P;N<=I;N++)w.push(N);T<E-2&&w.push("..."),w.push(E)}return w},[d,u]),b=()=>{m&&(i==null||i(t-1))},S=()=>{g&&(i==null||i(t+1))},C=w=>{w!=="..."&&(i==null||i(w))},_=w=>{a==null||a(Number(w.target.value))};return h.jsxs("div",{ref:c,className:G(et.oxTablePagination,e),"data-slot":"pagination",...l,children:[h.jsxs("div",{className:et.oxTablePaginationInfo,children:[h.jsxs("span",{children:[f,"-",p]}),h.jsx("span",{children:"de"}),h.jsx("span",{children:r})]}),h.jsxs("div",{className:et.oxTablePaginationPages,children:[h.jsx("button",{className:et.oxTablePaginationBtn,disabled:!m,onClick:b,children:h.jsx(iy,{className:et.oxTablePaginationIcon})}),x.map((w,T)=>h.jsx("button",{className:G(et.oxTablePaginationBtn,w===d&&et.oxTablePaginationBtnActive),disabled:w==="...",onClick:()=>C(w),children:w},T)),h.jsx("button",{className:et.oxTablePaginationBtn,disabled:!g,onClick:S,children:h.jsx(ay,{className:et.oxTablePaginationIcon})})]}),h.jsxs("div",{className:et.oxTablePaginationSize,children:[h.jsx("span",{className:et.oxTablePaginationSizeLabel,children:"Rows per page"}),h.jsxs("div",{className:et.oxTablePaginationSelectWrapper,children:[h.jsx("select",{className:et.oxTablePaginationSelect,value:n,onChange:_,children:s.map(w=>h.jsx("option",{value:w,children:w},w))}),h.jsx(Pn,{className:et.oxTablePaginationSelectIcon})]})]})]})});Jx.displayName="OxTablePagination";const Zx={oxTableEmpty:"_oxTableEmpty_1trmi_2",oxTableEmptyText:"_oxTableEmptyText_1trmi_2"},Qx=y.forwardRef(({className:e,children:t,...n},o)=>h.jsx("div",{ref:o,className:G(Zx.oxTableEmpty,e),"data-slot":"empty",...n,children:t??h.jsx("p",{className:Zx.oxTableEmptyText,children:"No data available"})}));Qx.displayName="OxTableEmpty";const hi={oxTableAvatar:"_oxTableAvatar_1s0d3_2",oxTableAvatarInfo:"_oxTableAvatarInfo_1s0d3_2",oxTableAvatarName:"_oxTableAvatarName_1s0d3_2",oxTableAvatarSubtitle:"_oxTableAvatarSubtitle_1s0d3_2"},e0=y.forwardRef(({className:e,src:t,initials:n,disabled:o=!1,name:r,subtitle:s,dataTestid:i,...a},l)=>h.jsxs("div",{ref:l,className:G(hi.oxTableAvatar,e),"data-slot":"table-avatar","data-testid":i,...a,children:[h.jsx(Yi,{dataTestid:`${i}-avatar`,src:t,size:"sm",disabled:o,children:n}),h.jsxs("div",{className:hi.oxTableAvatarInfo,children:[h.jsx("span",{className:hi.oxTableAvatarName,children:r}),s&&h.jsx("span",{className:hi.oxTableAvatarSubtitle,children:s})]})]}));e0.displayName="OxTableAvatar";const _r={oxTableColumnVisibility:"_oxTableColumnVisibility_1abyn_2",oxTableColumnVisibilityHeader:"_oxTableColumnVisibilityHeader_1abyn_2",oxTableColumnVisibilityList:"_oxTableColumnVisibilityList_1abyn_2",oxTableColumnVisibilityItem:"_oxTableColumnVisibilityItem_1abyn_2",oxTableColumnVisibilityLabel:"_oxTableColumnVisibilityLabel_1abyn_2"},t0=y.forwardRef(({className:e,columns:t,visibility:n={},header:o,onToggle:r,...s},i)=>{const a=l=>n[l]!==!1;return h.jsxs("div",{ref:i,className:G(_r.oxTableColumnVisibility,e),"data-slot":"column-visibility",...s,children:[o??h.jsx("div",{className:_r.oxTableColumnVisibilityHeader,children:"Columns"}),h.jsx("div",{className:_r.oxTableColumnVisibilityList,children:t.map(l=>h.jsxs("label",{className:_r.oxTableColumnVisibilityItem,children:[h.jsx(Us,{checked:a(l.field),onCheckedChange:()=>r==null?void 0:r(l.field)}),h.jsx("span",{className:_r.oxTableColumnVisibilityLabel,children:l.header??l.field})]},l.field))})]})});t0.displayName="OxTableColumnVisibility",O.CARD_STACK_DECK=Ri,O.NUMBER_FLOW_PRESETS=Vy,O.OxAccordion=nh,O.OxAccordionContent=ih,O.OxAccordionItem=oh,O.OxAccordionTrigger=rh,O.OxAlert=zf,O.OxAlertClose=Vf,O.OxAlertDescription=Bf,O.OxAlertIcon=Hf,O.OxAlertTitle=Gf,O.OxAlertToggle=jf,O.OxAvatarGroup=Hd,O.OxAvatarRounded=Kr,O.OxAvatarSquare=Yi,O.OxBadge=Gd,O.OxBreadcrumb=Ch,O.OxBreadcrumbEllipsis=Ah,O.OxBreadcrumbItem=wh,O.OxBreadcrumbLink=Th,O.OxBreadcrumbList=Sh,O.OxBreadcrumbPage=Eh,O.OxBreadcrumbSeparator=Ih,O.OxBullet=qr,O.OxButton=Wu,O.OxCalendarDate=Wd,O.OxCard=Ku,O.OxCardStack=Yu,O.OxChatBubble=cf,O.OxChatBubbleStatus=df,O.OxCheckbox=Us,O.OxChip=pf,O.OxCombobox=nm,O.OxComboboxChipsInput=rm,O.OxComboboxContent=Sm,O.OxComboboxEmpty=_m,O.OxComboboxGroup=Tm,O.OxComboboxInput=om,O.OxComboboxItem=wm,O.OxComboboxSeparator=Em,O.OxCounter=Dh,O.OxDialog=Fp,O.OxDialogClose=$a,O.OxDialogContent=zp,O.OxDialogDescription=Bp,O.OxDialogOverlay=fs,O.OxDialogTitle=Vp,O.OxDialogTrigger=OS,O.OxDialogTwoPanelContent=Hp,O.OxDivider=Ju,O.OxFieldGroup=kh,O.OxFieldLabel=Mh,O.OxFieldMessage=$h,O.OxInputGroup=Rh,O.OxInputNumber=zh,O.OxInputNumberContent=Vh,O.OxInputNumberDecrement=Hh,O.OxInputNumberIncrement=jh,O.OxInputNumberInput=Wh,O.OxInputOtp=Jh,O.OxInputOtpGroup=Zh,O.OxInputOtpSeparator=em,O.OxInputOtpSlot=Qh,O.OxInputPassword=qh,O.OxInputPasswordInput=Kh,O.OxInputPasswordToggle=Xh,O.OxInputText=Lh,O.OxLocaleProvider=Ld,O.OxNumberFlow=of,O.OxPageControl=bh,O.OxPaymentCard=af,O.OxPointMarker=mf,O.OxPopover=Ug,O.OxPopoverClose=G_,O.OxPopoverContent=Kg,O.OxProgress=Rf,O.OxRadioButton=Vv,O.OxRadioGroup=Bv,O.OxResizable=Pd,O.OxResizableHandle=Md,O.OxResizablePanel=Id,O.OxSelect=Tv,O.OxSelectContent=Pv,O.OxSelectGroup=Av,O.OxSelectItem=Iv,O.OxSelectSeparator=Ov,O.OxSelectTrigger=Ev,O.OxStatusBadge=bf,O.OxSwitch=Dv,O.OxTable=Zc,O.OxTableAvatar=e0,O.OxTableBody=Po,O.OxTableBulkHeader=Oc,O.OxTableCell=Dc,O.OxTableColumnVisibility=t0,O.OxTableDragCell=Yx,O.OxTableEmpty=Qx,O.OxTableExpandCell=Io,O.OxTableHead=Ao,O.OxTableHeaderCell=Nc,O.OxTablePagination=Jx,O.OxTableRow=Do,O.OxTableRowExpanded=No,O.OxTableSelectCell=ko,O.OxTableVirtualized=Xx,O.OxToggleDescription=Wv,O.OxToggleGroup=Hv,O.OxToggleLabel=Gv,O.OxToggleTabs=hh,O.OxToggleTabsContent=xh,O.OxToggleTabsList=mh,O.OxToggleTabsTrigger=vh,O.OxTooltip=Rg,O.OxTooltipContent=Fg,O.OxTransitionBounce=Mu,O.OxTransitionExpand=Fu,O.OxTransitionFade=Ru,O.OxTransitionFlip=zu,O.OxTransitionSlideX=$u,O.OxTransitionSlideY=Lu,O.PAGE_CONTROL_WINDOW=Fn,O.SWITCH_SIZES=M2,O.avatarRoundedVariants=Bd,O.avatarSquareVariants=Vd,O.badgeVariants=jd,O.bulletVariants=Fd,O.buttonVariants=Uu,O.calendarDateVariants=Ud,O.cardVariants=Xu,O.chatBubbleStatusVariants=ff,O.chatBubbleVariants=uf,O.chipVariants=gf,O.cn=G,O.counterVariants=Nh,O.indicatorVariants=Cf,O.normalizeLocale=$d,O.pageControlDots=yh,O.paymentCardVariants=lf,O.pointMarkerVariants=vf,O.resolveNumberFlowPreset=sf,O.statusBadgeVariants=yf,O.useDragToScroll=qx,O.useFixedColumns=Kx,O.useInputOtp=Ms,O.useInputPassword=Sl,O.useLocale=Xi,O.useScrollShadow=Ux,O.useTable=aO,O.useTableColumns=xO,O.useTableDetailRow=gO,O.useTablePagination=pO,O.useTablePinning=mO,O.useTableSelection=lO,O.useTableSorting=uO,O.useTableVirtual=vA,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})}));